@tinycloud/cli 1.2.0-beta.0 → 1.2.0-beta.2

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/README.md CHANGED
@@ -62,9 +62,15 @@ tc kv list
62
62
 
63
63
  # Manage network-encrypted secrets on the default network
64
64
  tc secrets network init
65
- tc secrets put ANTHROPIC_API_KEY "sk-..."
65
+ printf '%s' "$ANTHROPIC_API_KEY" | tc secrets put ANTHROPIC_API_KEY --stdin
66
66
  tc secrets get ANTHROPIC_API_KEY
67
67
 
68
+ # Ask the owner for a secret an agent needs, then wait for it
69
+ # (call TinyCloud's CLI by absolute path: a bare `tc` can be iproute2's /usr/sbin/tc)
70
+ TC_BIN="$(npm prefix --global)/bin/tc"
71
+ "$TC_BIN" --profile agent secrets request OPENAI_API_KEY --json # offline; prints the owner's link
72
+ "$TC_BIN" --profile agent secrets wait OPENAI_API_KEY --timeout 9m --json # 0 ready, 8 pending
73
+
68
74
  # Manage spaces
69
75
  tc space list
70
76
  tc space create
@@ -105,6 +111,9 @@ tc delegation create --to did:pkh:eip155:1:0x...
105
111
  | `tc secrets network show` | Show a secrets decryption network |
106
112
  | `tc secrets network init` | Create or fetch the default secrets network |
107
113
  | `tc secrets network grant` | Grant `tinycloud.encryption/decrypt` on a secrets network |
114
+ | `tc secrets request` | Print a Secret Manager link asking the owner to add secrets (offline) |
115
+ | `tc secrets wait` | Wait until secrets exist and are readable (never signs in; needs a stored session; exit 8 pending, 130 interrupted) |
116
+ | `tc secrets manage` | Print or open the Secret Manager page, `{url, opened}` |
108
117
  | `tc vars` | Manage environment variables |
109
118
  | `tc doctor` | Run diagnostic checks |
110
119
  | `tc completion` | Generate shell completions |