@astranova-live/cli 0.1.7 → 0.1.8
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/astra.js +3 -3
- 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
|
-
|
|
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,
|
|
2224
|
-
2. \`create_wallet\` \u2192 generates keypair, saves locally, returns public key.
|
|
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.
|