@jecpdev/cli 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ program.name("jecp").description("Command-line interface for JECP \u2014 Joint E
12
12
  if (cmd.opts().baseUrl) process.env.JECP_BASE_URL = cmd.opts().baseUrl;
13
13
  });
14
14
  program.command("register").description("Register a new agent (interactive or with flags)").option("-n, --name <name>", "Agent name (display label)").option("-t, --type <type>", "Agent type (research, coder, demo, etc.)").option("-d, --description <description>", "Optional description").action(async (opts) => {
15
- const { registerCmd } = await import("./register-QMTWQSCX.js");
15
+ const { registerCmd } = await import("./register-VZIIVYD7.js");
16
16
  await registerCmd(opts);
17
17
  });
18
18
  program.command("login").description("Save existing agent credentials to ~/.jecp/config.json").option("--agent-id <id>", "Agent ID").option("--api-key <key>", "API key").option("--base-url <url>", "Override Hub URL").action(async (opts) => {
@@ -52,12 +52,17 @@ async function registerCmd(opts) {
52
52
  info(` API_KEY: ${reg.api_key}`);
53
53
  info(` Free calls: ${freeCalls}`);
54
54
  info("");
55
- info(bold("Try your first invocation now (uses 1 of your 100 free calls):"));
56
- info(` ${dim("$")} jecp invoke jobdonebot/content-factory translate \\`);
57
- info(` --input '{"text":"Hello","target_lang":"JA"}'`);
55
+ info(bold("Next steps:"));
56
+ info(` 1. Browse the capability catalog (always free):`);
57
+ info(` ${dim("$")} jecp catalog`);
58
58
  info("");
59
- info(` Then explore the catalog:`);
60
- info(` ${dim("$")} jecp catalog`);
59
+ info(` 2. Make your first invocation. ${dim("Each call costs ~$0.005 USDC from your wallet.")}`);
60
+ info(` ${dim("$")} jecp topup 5 ${dim("# add $5 to wallet (Stripe Checkout)")}`);
61
+ info(` ${dim("$")} jecp invoke jobdonebot/content-factory translate \\`);
62
+ info(` --input '{"text":"Hello","target_lang":"JA"}'`);
63
+ info("");
64
+ info(` 3. Check your status anytime:`);
65
+ info(` ${dim("$")} jecp status`);
61
66
  info("");
62
67
  emit({
63
68
  agent_id: reg.agent_id,
@@ -65,10 +70,15 @@ async function registerCmd(opts) {
65
70
  name,
66
71
  free_calls_remaining: freeCalls,
67
72
  config_file: configFilePath(),
68
- next_step: {
69
- command: `jecp invoke jobdonebot/content-factory translate --input '{"text":"Hello","target_lang":"JA"}'`,
70
- description: `Try your first invocation (uses 1 of ${freeCalls} free calls)`
71
- }
73
+ next_steps: [
74
+ { command: "jecp catalog", description: "Browse capabilities (free)" },
75
+ { command: "jecp topup 5", description: "Add $5 USDC to wallet via Stripe" },
76
+ {
77
+ command: `jecp invoke jobdonebot/content-factory translate --input '{"text":"Hello","target_lang":"JA"}'`,
78
+ description: "Make your first invocation (~$0.005 USDC)"
79
+ },
80
+ { command: "jecp status", description: "Check agent state and balance" }
81
+ ]
72
82
  });
73
83
  }
74
84
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jecpdev/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Command-line interface for JECP — register agents, invoke capabilities, manage Providers from your terminal.",
5
5
  "type": "module",
6
6
  "bin": {