@bnbagent/studio-cli 0.0.6-alpha.4 → 0.0.6-alpha.5

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.
@@ -27,8 +27,8 @@ bag init <name> --wallet-kind altana --destination self --no-onboard
27
27
  # Non-TTY defaults to OpenRouter. In a TTY, choose OpenRouter, OpenAI, or
28
28
  # Anthropic from the provider menu; a flag remains available when desired:
29
29
  # bag init <name> --wallet-kind altana --llm-provider anthropic --destination self
30
+ # Edit <name>/.studio/.env.local and set WALLET_PASSWORD first.
30
31
  cd <name>/app/agent
31
- export WALLET_PASSWORD='<strong password>'
32
32
  bag wallet new
33
33
  # fund the printed admin address with gas + U
34
34
  bag wallet session grant
@@ -31,8 +31,9 @@ with "unknown option"); `bag doctor` and `bag deploy prepare` verify the floor.
31
31
 
32
32
  ## 2. Create the wallet — one time, in YOUR terminal
33
33
 
34
- studio can't create it for you (the twak CLI takes the password on argv, upstream
35
- S-8, and studio never puts secrets on argv). Do these steps yourself.
34
+ `bag wallet twak-init` drives creation for you (step 3) so you never type the
35
+ password on a command line; the NaaS setup wizard below still has to be run by
36
+ hand once, because it is interactive.
36
37
 
37
38
  **Every twak command is prefixed with the dedicated home.** Without `HOME=$DH`,
38
39
  twak uses your real `~/.twak` (your MAIN wallet) and macOS pops a login-keychain
@@ -64,20 +65,22 @@ DH=<workspace>/.studio/twak # e.g. ~/proj/.studio/twak
64
65
  your main/real wallet).
65
66
 
66
67
  **3. Create the wallet** (password UPPER + lower + digit, e.g. `Mypasswd01`;
67
- `mypasswd01` is rejected). **RECOMMENDED — let studio drive it with the
68
- password OFF argv** (it resolves the project home from studio.toml, so no
69
- `HOME=` juggling):
68
+ `mypasswd01` is rejected). **RECOMMENDED — let studio drive it so you never
69
+ type the password on a command line** (it resolves the project home from
70
+ studio.toml, so no `HOME=` juggling):
70
71
  ```bash
71
72
  bag wallet twak-init # interactive hidden prompt
72
73
  printf %s "$PW" | bag wallet twak-init --password-stdin # CI / scripts
73
74
  bag wallet twak-init --password-file pw.txt # file must be chmod 600
74
75
  ```
75
- It wraps `twak wallet create --no-keychain` (password reaches twak via env +
76
- piped stdin only), tightens `wallet.json` to mode 600, and adopts the
77
- address into studio.toml in one go so steps 5's `bag wallet new` is
78
- already done.
79
-
80
- Manual alternative (password lands on argv → `ps` / shell history;
76
+ It seeds this home's `credentials.json` from `~/.twak` when step 2 was run
77
+ there, wraps `twak wallet create --password --no-keychain` (twak requires
78
+ the flag on its own argv, so the value reaches that short-lived child — it
79
+ never lands in YOUR shell history), tightens `wallet.json` to mode 600, and
80
+ adopts the address into studio.toml in one go — so step 5's `bag wallet new`
81
+ is already done.
82
+
83
+ Manual alternative (you type the password on argv → `ps` / shell history;
81
84
  acceptable only for a throwaway hot wallet):
82
85
  ```bash
83
86
  HOME="$DH" twak wallet create --password '<StrongPw>' --no-keychain
@@ -249,7 +252,7 @@ registers a `Container` runtime and `app/agent/Dockerfile` builds the image
249
252
  | Custom ERC-8183 targets unavailable | upstream feature request | twak v0.20.0 has no Commerce/Router/Policy address option. Studio doctor/prepare and the SDK fail closed instead of silently executing on canonical contracts; use `evm-local` for a custom ERC-8183 deployment. |
250
253
  | No generic EIP-712 signing | P0 (won't fix) | `[wallet.signing]` is ignored; payments go through the delegated payer's own prechecks + `--max-payment`. Endpoints needing an `Authorization` header *and* x402 are unavailable (e.g. `bag llm key new --initial-usd > 0` — use `--initial-usd 0` + topup + allocate instead, same end state). |
251
254
  | No wallet import | S-6 | Switching wallet kinds changes your address → re-run `bag 8004 register` (new on-chain identity). |
252
- | Programmatic wallet creation forces password onto argv | S-8 | Bridged by `bag wallet twak-init` (password via stdin / 0600 file / hidden prompt never argv); the manual twak commands remain a fallback. |
255
+ | Programmatic wallet creation forces password onto argv | S-8 | Bridged by `bag wallet twak-init` (you supply it via stdin / 0600 file / hidden prompt; studio forwards it on the child's argv because twak requires the flag); the manual twak commands remain a fallback. |
253
256
  | CLI has no daily/monthly caps | — | Studio's policy layer (`[budget].max_per_day_usd`, host allowlist, per-request caps) is the spend authority for both wallet kinds. |
254
257
 
255
258
  ## 7. Quick health checks