mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-22 12:38:08 +00:00
feat(config): add gmgn-cli config command for API Key onboarding
Add a new `gmgn-cli config` command that automates Ed25519 key pair generation for new users. The command reuses an existing keypair.pem if present, or generates a new one, then outputs a pre-filled API Key creation link with the public key embedded. Guidance text is output in the user's system locale (zh-CN, zh-TW, or English). All 6 SKILL.md files are updated with a BEFORE RUNNING ANY COMMAND block that detects missing GMGN_API_KEY, triggers gmgn-cli config, and instructs the Agent to write both GMGN_API_KEY and GMGN_PRIVATE_KEY into ~/.config/gmgn/.env once the user provides their API Key. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
845a8aaa62
commit
e8af4b88b5
@@ -11,6 +11,7 @@ import { registerPortfolioCommands } from "./commands/portfolio.js";
|
||||
import { registerTrackCommands } from "./commands/track.js";
|
||||
import { registerSwapCommands } from "./commands/swap.js";
|
||||
import { registerCookingCommands } from "./commands/cooking.js";
|
||||
import { registerConfigCommands } from "./commands/config.js";
|
||||
|
||||
const proxy = process.env.HTTPS_PROXY ?? process.env.https_proxy
|
||||
?? process.env.HTTP_PROXY ?? process.env.http_proxy;
|
||||
@@ -60,6 +61,7 @@ registerPortfolioCommands(program);
|
||||
registerTrackCommands(program);
|
||||
registerSwapCommands(program);
|
||||
registerCookingCommands(program);
|
||||
registerConfigCommands(program);
|
||||
|
||||
program.parseAsync().catch((err) => {
|
||||
console.error(`[gmgn-cli] ${err.message}`);
|
||||
|
||||
Reference in New Issue
Block a user