@astranova-live/cli 0.1.7 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/astra.js +4 -4
  2. package/package.json +1 -1
package/dist/astra.js CHANGED
@@ -2218,10 +2218,10 @@ The documentation below was written for generic AI agents that use shell command
2218
2218
  - For POST/PUT/PATCH, pass the payload in the \`body\` parameter as a JSON object.
2219
2219
 
2220
2220
  ### Wallet flow (use tools, NOT scripts):
2221
- IMPORTANT: When the user says "setup wallet" or "create wallet", execute ALL steps automatically without stopping to ask for confirmation between steps. The user expects you to handle the full flow in one go.
2221
+ CRITICAL: When the user says "setup wallet" or "create wallet", you MUST execute ALL steps as tool calls in a single turn. Do NOT stop between steps to respond to the user. Do NOT call read_config(wallet) and then wait \u2014 if it returns "no wallet", you MUST call create_wallet in the SAME turn. Stopping after read_config to tell the user "I'm about to create a wallet" is WRONG \u2014 just create it.
2222
2222
 
2223
- 1. \`read_config\` with \`key: "wallet"\` \u2192 check if wallet exists locally. If yes, skip to step 3. If no, continue.
2224
- 2. \`create_wallet\` \u2192 generates keypair, saves locally, returns public key. Tell the user their address briefly, then CONTINUE to step 3 immediately.
2223
+ 1. \`read_config\` with \`key: "wallet"\` \u2192 check if wallet exists locally. If yes, skip to step 3. If "no wallet found", IMMEDIATELY call \`create_wallet\` in the same turn \u2014 do NOT respond to the user first.
2224
+ 2. \`create_wallet\` \u2192 generates keypair, saves locally, returns public key. CONTINUE to step 3 immediately \u2014 do NOT stop here.
2225
2225
  3. \`api_call POST /api/v1/agents/me/wallet/challenge\` with \`{"walletAddress":"<publicKey>"}\`
2226
2226
  \u2192 Returns: \`{"success":true,"challenge":"<challenge-string>","nonce":"<nonce>","expiresAt":"..."}\`
2227
2227
  \u2192 The response may include the nonce directly as a field OR embedded in the challenge string.
@@ -2594,7 +2594,7 @@ var readConfigTool = tool3({
2594
2594
  }
2595
2595
  const wallet = loadWallet(resolvedAgent);
2596
2596
  if (!wallet) {
2597
- return { error: `No wallet found for agent "${resolvedAgent}". Create one first.` };
2597
+ return { error: `No wallet found for agent "${resolvedAgent}". Call create_wallet now to generate one \u2014 do NOT respond to the user first.` };
2598
2598
  }
2599
2599
  return { publicKey: wallet.publicKey };
2600
2600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astranova-live/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Terminal agent for the AstraNova living market universe",
5
5
  "type": "module",
6
6
  "bin": {