@getstackrun/cli 2.0.2 → 2.5.0
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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +749 -44
- package/dist/account-args.d.ts +21 -0
- package/dist/account-args.d.ts.map +1 -0
- package/dist/account-args.js +84 -0
- package/dist/account-args.js.map +1 -0
- package/dist/account-email.d.ts +16 -0
- package/dist/account-email.d.ts.map +1 -0
- package/dist/account-email.js +173 -0
- package/dist/account-email.js.map +1 -0
- package/dist/account-site.d.ts +18 -0
- package/dist/account-site.d.ts.map +1 -0
- package/dist/account-site.js +232 -0
- package/dist/account-site.js.map +1 -0
- package/dist/account-workspace.d.ts +19 -0
- package/dist/account-workspace.d.ts.map +1 -0
- package/dist/account-workspace.js +213 -0
- package/dist/account-workspace.js.map +1 -0
- package/dist/accounts.d.ts +2 -0
- package/dist/accounts.d.ts.map +1 -0
- package/dist/accounts.js +426 -0
- package/dist/accounts.js.map +1 -0
- package/dist/agent-identity.d.ts +2 -0
- package/dist/agent-identity.d.ts.map +1 -0
- package/dist/agent-identity.js +50 -0
- package/dist/agent-identity.js.map +1 -0
- package/dist/agent-lookup.d.ts +5 -0
- package/dist/agent-lookup.d.ts.map +1 -0
- package/dist/agent-lookup.js +8 -0
- package/dist/agent-lookup.js.map +1 -0
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +70 -20
- package/dist/agent.js.map +1 -1
- package/dist/api.d.ts +12 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +48 -4
- package/dist/api.js.map +1 -1
- package/dist/approvals.d.ts +2 -0
- package/dist/approvals.d.ts.map +1 -0
- package/dist/approvals.js +34 -0
- package/dist/approvals.js.map +1 -0
- package/dist/auth.d.ts +2 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +32 -21
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +2 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +24 -0
- package/dist/billing.js.map +1 -0
- package/dist/brain.d.ts +2 -0
- package/dist/brain.d.ts.map +1 -0
- package/dist/brain.js +112 -0
- package/dist/brain.js.map +1 -0
- package/dist/catalogue.d.ts +5 -0
- package/dist/catalogue.d.ts.map +1 -0
- package/dist/catalogue.js +113 -0
- package/dist/catalogue.js.map +1 -0
- package/dist/chat-channels.d.ts +2 -0
- package/dist/chat-channels.d.ts.map +1 -0
- package/dist/chat-channels.js +72 -0
- package/dist/chat-channels.js.map +1 -0
- package/dist/commands.d.ts +49 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +1968 -0
- package/dist/commands.js.map +1 -0
- package/dist/control-policies.d.ts +3 -0
- package/dist/control-policies.d.ts.map +1 -0
- package/dist/control-policies.js +182 -0
- package/dist/control-policies.js.map +1 -0
- package/dist/control-socket.d.ts +9 -0
- package/dist/control-socket.d.ts.map +1 -0
- package/dist/control-socket.js +183 -0
- package/dist/control-socket.js.map +1 -0
- package/dist/detectors.js +2 -2
- package/dist/detectors.js.map +1 -1
- package/dist/drive-upload.d.ts +7 -0
- package/dist/drive-upload.d.ts.map +1 -0
- package/dist/drive-upload.js +24 -0
- package/dist/drive-upload.js.map +1 -0
- package/dist/drive.d.ts +2 -0
- package/dist/drive.d.ts.map +1 -0
- package/dist/drive.js +207 -0
- package/dist/drive.js.map +1 -0
- package/dist/dropoffs.d.ts.map +1 -1
- package/dist/dropoffs.js +19 -8
- package/dist/dropoffs.js.map +1 -1
- package/dist/evidence-packs.d.ts +10 -0
- package/dist/evidence-packs.d.ts.map +1 -1
- package/dist/evidence-packs.js +23 -7
- package/dist/evidence-packs.js.map +1 -1
- package/dist/flagged-content.d.ts +2 -0
- package/dist/flagged-content.d.ts.map +1 -0
- package/dist/flagged-content.js +30 -0
- package/dist/flagged-content.js.map +1 -0
- package/dist/format.d.ts.map +1 -1
- package/dist/format.js +1 -0
- package/dist/format.js.map +1 -1
- package/dist/governance.d.ts.map +1 -1
- package/dist/governance.js +43 -21
- package/dist/governance.js.map +1 -1
- package/dist/help.d.ts +17 -0
- package/dist/help.d.ts.map +1 -0
- package/dist/help.js +137 -0
- package/dist/help.js.map +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +88 -7
- package/dist/identity.js.map +1 -1
- package/dist/inbound-webhooks.d.ts.map +1 -1
- package/dist/inbound-webhooks.js +21 -3
- package/dist/inbound-webhooks.js.map +1 -1
- package/dist/index.js +126 -229
- package/dist/index.js.map +1 -1
- package/dist/intents.d.ts.map +1 -1
- package/dist/intents.js +4 -3
- package/dist/intents.js.map +1 -1
- package/dist/llm.d.ts.map +1 -1
- package/dist/llm.js +22 -14
- package/dist/llm.js.map +1 -1
- package/dist/making.d.ts +4 -0
- package/dist/making.d.ts.map +1 -0
- package/dist/making.js +179 -0
- package/dist/making.js.map +1 -0
- package/dist/me.js +1 -1
- package/dist/me.js.map +1 -1
- package/dist/memory.d.ts +2 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +273 -0
- package/dist/memory.js.map +1 -0
- package/dist/message-access.d.ts +2 -0
- package/dist/message-access.d.ts.map +1 -0
- package/dist/message-access.js +64 -0
- package/dist/message-access.js.map +1 -0
- package/dist/messages.d.ts +2 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +45 -0
- package/dist/messages.js.map +1 -0
- package/dist/missions.d.ts +8 -0
- package/dist/missions.d.ts.map +1 -1
- package/dist/missions.js +132 -9
- package/dist/missions.js.map +1 -1
- package/dist/network.d.ts +2 -0
- package/dist/network.d.ts.map +1 -0
- package/dist/network.js +312 -0
- package/dist/network.js.map +1 -0
- package/dist/notifications.d.ts +26 -0
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +15 -1
- package/dist/notifications.js.map +1 -1
- package/dist/partner.d.ts.map +1 -1
- package/dist/partner.js +198 -145
- package/dist/partner.js.map +1 -1
- package/dist/pay.d.ts +5 -0
- package/dist/pay.d.ts.map +1 -0
- package/dist/pay.js +85 -0
- package/dist/pay.js.map +1 -0
- package/dist/pii.d.ts.map +1 -1
- package/dist/pii.js +4 -8
- package/dist/pii.js.map +1 -1
- package/dist/post.d.ts +2 -0
- package/dist/post.d.ts.map +1 -0
- package/dist/post.js +234 -0
- package/dist/post.js.map +1 -0
- package/dist/proxy-serve.d.ts +0 -1
- package/dist/proxy-serve.d.ts.map +1 -1
- package/dist/proxy-serve.js +7 -8
- package/dist/proxy-serve.js.map +1 -1
- package/dist/quickstart.d.ts +1 -0
- package/dist/quickstart.d.ts.map +1 -1
- package/dist/quickstart.js +3 -2
- package/dist/quickstart.js.map +1 -1
- package/dist/rentahuman.d.ts +4 -0
- package/dist/rentahuman.d.ts.map +1 -0
- package/dist/rentahuman.js +137 -0
- package/dist/rentahuman.js.map +1 -0
- package/dist/services.d.ts +1 -0
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +165 -13
- package/dist/services.js.map +1 -1
- package/dist/setup.d.ts +18 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +71 -9
- package/dist/setup.js.map +1 -1
- package/dist/skills.js +2 -2
- package/dist/skills.js.map +1 -1
- package/dist/team.d.ts.map +1 -1
- package/dist/team.js +24 -1
- package/dist/team.js.map +1 -1
- package/dist/trust.d.ts +2 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +40 -0
- package/dist/trust.js.map +1 -0
- package/dist/usage.d.ts +4 -6
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js +3 -2
- package/dist/usage.js.map +1 -1
- package/dist/wake.d.ts +6 -0
- package/dist/wake.d.ts.map +1 -0
- package/dist/wake.js +547 -0
- package/dist/wake.js.map +1 -0
- package/package.json +5 -3
package/dist/commands.js
ADDED
|
@@ -0,0 +1,1968 @@
|
|
|
1
|
+
// The single registry of CLI commands. `--help` (help.ts) and the command
|
|
2
|
+
// reference in README.md are both rendered from this data, and
|
|
3
|
+
// commands.test.ts fails when the router in index.ts, the README block or a
|
|
4
|
+
// usage string in any module drifts from it.
|
|
5
|
+
//
|
|
6
|
+
// Entries are plain data with no colour and no program name: the renderers add
|
|
7
|
+
// those. Inline `code` spans in summaries and notes render as highlighted
|
|
8
|
+
// text in `--help` and as code in the README.
|
|
9
|
+
export const COMMAND_GROUPS = [
|
|
10
|
+
{
|
|
11
|
+
title: 'Get started',
|
|
12
|
+
entries: [
|
|
13
|
+
{
|
|
14
|
+
usage: 'quickstart',
|
|
15
|
+
summary: 'Guided setup: register a safe bot, issue a passport, make one governed LLM call, print the audit row',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
usage: 'proxy serve --agent <name|id>',
|
|
19
|
+
summary: "Run a localhost LLM gateway. Point any tool's baseURL at it (dummy key ok); STACK injects the real key. No key on the box.",
|
|
20
|
+
notes: ['[--port 8788] [--provider anthropic|openai|openrouter] [--mission-ttl 3600]'],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
usage: 'setup [--clients claude,codex,cursor]',
|
|
24
|
+
summary: 'Add STACK to one or several installed MCP clients',
|
|
25
|
+
notes: ['Client names may be separated by commas or spaces.'],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
usage: 'register',
|
|
29
|
+
summary: 'Print how to get started and the MCP install instructions',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: 'Account',
|
|
35
|
+
entries: [
|
|
36
|
+
{ usage: 'auth login', summary: 'Sign in via browser (Device flow, RFC 8628)' },
|
|
37
|
+
{ usage: 'auth status', summary: 'Show current sign-in state' },
|
|
38
|
+
{ usage: 'auth logout', summary: 'Revoke session and clear local credentials' },
|
|
39
|
+
{ usage: 'me', summary: 'Print your operator profile' },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: 'Usage & billing',
|
|
44
|
+
entries: [
|
|
45
|
+
{ usage: 'usage', summary: 'Consumption vs plan + spend + earnings (billing period)' },
|
|
46
|
+
{
|
|
47
|
+
usage: 'usage --period <p>',
|
|
48
|
+
summary: 'Scope to a window: today | yesterday | 7d | 30d | month | last-month | billing (default)',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
usage: 'usage --since <iso> --until <iso>',
|
|
52
|
+
summary: 'Arbitrary range (ISO-8601 or unix-ms)',
|
|
53
|
+
notes: ['`scan usage` and `llm usage` drill into those meters'],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
usage: 'billing subscriptions',
|
|
57
|
+
summary: "Read the platform and controls subscription state and this month's account actions and control checks",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
usage: 'billing subscribe platform|controls',
|
|
61
|
+
summary: 'Start the platform or hosted controls subscription; prints the Stripe Checkout URL and whether a free trial applies',
|
|
62
|
+
notes: [
|
|
63
|
+
'(controls need the platform subscription first; a 409 SUBSCRIPTION_CONFLICT means it is already on, or the account does not need one)',
|
|
64
|
+
'(needs the billing:write scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: 'Agents',
|
|
71
|
+
entries: [
|
|
72
|
+
{ usage: 'agent list', summary: 'List all your agents' },
|
|
73
|
+
{ usage: 'agent show <name|id>', summary: 'Detail on one agent' },
|
|
74
|
+
{
|
|
75
|
+
usage: 'agent register <name>',
|
|
76
|
+
summary: 'Register a new agent',
|
|
77
|
+
notes: [
|
|
78
|
+
'[--profile proxied-llm-bot] <- safe default for a bot that just runs',
|
|
79
|
+
'[--key-mode stack_managed|customer_managed|co_signed]',
|
|
80
|
+
'[--llm-inject-system-prompt true|false] <- no effect: accepted and ignored [--llm-redact-pii true|false]',
|
|
81
|
+
'[--accountability-mode logged|enforced|standard] <- new agents start logged',
|
|
82
|
+
'[--eval-traffic true|false] <- test traffic: warnings arrive resolved, criticals stay live',
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
usage: 'agent setup --from-file <setup.json>',
|
|
87
|
+
summary: 'Register an agent, its first grants and the hosts its connections may reach, as one approval',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
usage: 'agent dismiss-warnings <name|id>',
|
|
91
|
+
summary: "Resolve an agent's open warnings and hide new ones of the same kinds for a day; criticals stay open",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
usage: 'agent update <name|id>',
|
|
95
|
+
summary: 'Update LLM-gateway toggles (redaction defaults true / fail-closed)',
|
|
96
|
+
notes: [
|
|
97
|
+
'[--llm-inject-system-prompt true|false] <- no effect: accepted and ignored',
|
|
98
|
+
'[--llm-redact-pii true|false] <- false sends user PII to the provider unredacted',
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
usage: 'agent enroll <name|id>',
|
|
103
|
+
summary: "Enroll a customer-managed keypair (advanced; stack_managed agents and 'proxy serve' auto-enroll, no manual step)",
|
|
104
|
+
},
|
|
105
|
+
{ usage: 'agent rotate <name|id>', summary: 'Rotate keypair (admin only)' },
|
|
106
|
+
{
|
|
107
|
+
usage: 'agent sign-claim <name|id>',
|
|
108
|
+
summary: 'Sign a claim envelope locally (customer_managed mode)',
|
|
109
|
+
notes: ['--envelope <file.json> [--out <file>]'],
|
|
110
|
+
},
|
|
111
|
+
{ usage: 'agent suspend <name|id>', summary: 'Suspend an agent' },
|
|
112
|
+
{ usage: 'agent unsuspend <name|id>', summary: 'Re-activate a suspended agent' },
|
|
113
|
+
{
|
|
114
|
+
usage: 'agent unblock <name|id>',
|
|
115
|
+
summary: 'Clear an auto-blocked agent so it can issue new passports',
|
|
116
|
+
},
|
|
117
|
+
{ usage: 'agent delete <name|id>', summary: 'Delete an agent' },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: 'Passports',
|
|
122
|
+
entries: [
|
|
123
|
+
{ usage: 'passport list', summary: 'List active passports' },
|
|
124
|
+
{
|
|
125
|
+
usage: 'passport issue --agent <name|id> --mission <ms_id> --intent "<summary>"',
|
|
126
|
+
summary: 'Issue a passport for an agent under a Mission',
|
|
127
|
+
notes: ['[--services slack,stripe] [--ttl <seconds>]', 'or: --from-file issue.json [--mission <ms_id>]'],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
usage: 'passport delegate --agent <child>',
|
|
131
|
+
summary: 'Delegate a passport to a child agent (reads the parent token securely)',
|
|
132
|
+
notes: ['[--services a,b] [--ttl 900]'],
|
|
133
|
+
},
|
|
134
|
+
{ usage: 'passport verify', summary: 'Verify a passport JWT from stdin' },
|
|
135
|
+
{ usage: 'passport refresh <jti>', summary: 'Refresh a passport JWT from stdin' },
|
|
136
|
+
{ usage: 'passport revoke <jti>', summary: 'Revoke one passport' },
|
|
137
|
+
{ usage: 'passport revoke-agent <id>', summary: 'Revoke all passports for an agent' },
|
|
138
|
+
{ usage: 'passport revoke-session <id>', summary: 'Revoke all passports for a session' },
|
|
139
|
+
{ usage: 'passport revoke-all --yes', summary: 'Revoke every active passport' },
|
|
140
|
+
{ usage: 'passport report <jti>', summary: 'Show the report for one passport' },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
title: 'Missions',
|
|
145
|
+
entries: [
|
|
146
|
+
{
|
|
147
|
+
usage: 'mission start --agent <name|id> --intent-summary "..."',
|
|
148
|
+
summary: 'Open a Mission for an agent and issue its Passport',
|
|
149
|
+
notes: [
|
|
150
|
+
'[--services a,b] [--expires-in N] [--ttl N]',
|
|
151
|
+
'[--recipients a@x.com,b@x.com] (Recipients: who this Mission may send to. A policy rule that leaves recipients to each Mission allows a send only to these.)',
|
|
152
|
+
'[--pin <path>=<value>] (repeatable; a request field such as body.to, or * for every recipient field; a comma list means in)',
|
|
153
|
+
'[--reply-to <message-id>] (Reply to a message: pins the Mission to the sender of this message, so the agent can answer that person and no one else.)',
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
{ usage: 'mission start --file <path>', summary: 'Start a Mission under a fleet policy' },
|
|
157
|
+
{
|
|
158
|
+
usage: 'mission open --intent-summary "..."',
|
|
159
|
+
summary: 'Open a Mission before issuing its Passport',
|
|
160
|
+
notes: [
|
|
161
|
+
'[--agent <name|id>] [--services a,b] [--expires-in N]',
|
|
162
|
+
'[--recipients a@x.com,b@x.com] (Recipients: who this Mission may send to. A policy rule that leaves recipients to each Mission allows a send only to these.)',
|
|
163
|
+
'[--pin <path>=<value>] (repeatable; a request field such as body.to, or * for every recipient field; a comma list means in)',
|
|
164
|
+
'[--reply-to <message-id>] (Reply to a message: pins the Mission to the sender of this message, so the agent can answer that person and no one else.)',
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
{ usage: 'mission open --file <path>', summary: 'Open a Mission from a request file' },
|
|
168
|
+
{
|
|
169
|
+
usage: 'mission add-recipients <id>',
|
|
170
|
+
summary: 'Add who a running Mission may send to (the owner; nothing pinned is taken away)',
|
|
171
|
+
notes: ['[--recipients a,b] [--pin <path>=<value>] [--reply-to <message-id>]'],
|
|
172
|
+
},
|
|
173
|
+
{ usage: 'mission renew <id>', summary: 'Renew the Passport for an existing Mission' },
|
|
174
|
+
{ usage: 'mission list', summary: 'List Missions', notes: ['[--status active|completed|revoked|paused] (paused: the Missions a cap paused, waiting for your review)'] },
|
|
175
|
+
{
|
|
176
|
+
usage: 'mission review <id> --decision raise|continue|close',
|
|
177
|
+
summary: 'Decide a Mission a cap paused; its agent is told',
|
|
178
|
+
notes: ['[--limit N] (with raise: the new limit of the cap that paused it)'],
|
|
179
|
+
},
|
|
180
|
+
{ usage: 'mission making-allowance <id> --cents N | --none', summary: "Pre-approve a Mission's print-on-demand orders up to an amount" },
|
|
181
|
+
{ usage: 'mission get <id>', summary: 'Show one Mission' },
|
|
182
|
+
{
|
|
183
|
+
usage: 'mission complete <id>',
|
|
184
|
+
summary: 'Complete a Mission',
|
|
185
|
+
notes: ['[--output-json <path>]'],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
usage: 'mission revoke <id> --reason <r>',
|
|
189
|
+
summary: 'Revoke a Mission with reason adversarial or operator_initiated_clean',
|
|
190
|
+
notes: ['[--notes "..."]'],
|
|
191
|
+
},
|
|
192
|
+
{ usage: 'mission replay <id>', summary: 'Replay a Mission' },
|
|
193
|
+
{ usage: 'mission dossiers <id>', summary: "List a Mission's dossiers" },
|
|
194
|
+
{
|
|
195
|
+
usage: 'mission dossier <id> --narrative "..."',
|
|
196
|
+
summary: 'Write a dossier for a Mission',
|
|
197
|
+
notes: ['[--lessons "..."] [--classification false_positive|true_positive_handled|true_positive_escalated|inconclusive]'],
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
title: 'Fleets',
|
|
203
|
+
entries: [
|
|
204
|
+
{ usage: 'fleet list [--page <number>] [--limit <number>]', summary: 'List fleet policies' },
|
|
205
|
+
{ usage: 'fleet get <id>', summary: 'Read one fleet policy and its shared usage' },
|
|
206
|
+
{ usage: 'fleet membership <agent>', summary: 'Read the fleet policy an agent belongs to' },
|
|
207
|
+
{
|
|
208
|
+
usage: 'fleet activate --file <path> --idempotency-key <key>',
|
|
209
|
+
summary: 'Request approval for a fleet policy',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
usage: 'fleet revise <id> --file <path> --expected-revision <number> --idempotency-key <key>',
|
|
213
|
+
summary: 'Request approval for a policy change',
|
|
214
|
+
},
|
|
215
|
+
{ usage: 'fleet revoke <id>', summary: 'Revoke a fleet policy' },
|
|
216
|
+
{
|
|
217
|
+
usage: 'fleet members <id> [--page <number>] [--limit <number>]',
|
|
218
|
+
summary: 'List the agents in a fleet policy',
|
|
219
|
+
},
|
|
220
|
+
{ usage: 'fleet revoke-member <id> <agent>', summary: "Revoke one agent's fleet membership" },
|
|
221
|
+
{ usage: 'fleet enrollment-challenge <id>', summary: 'Request an enrollment challenge' },
|
|
222
|
+
{
|
|
223
|
+
usage: 'fleet enroll <id> --file <path>',
|
|
224
|
+
summary: 'Enroll with a public key and signed challenge',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
usage: 'fleet enroll-local <id> --name <name> --idempotency-key <key>',
|
|
228
|
+
summary: 'Create and store an agent key on this machine, then enroll it',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
usage: 'fleet enroll-workload-local <id> --name <name> --idempotency-key <key>',
|
|
232
|
+
summary: 'Enroll using a trusted workload token from STACK_WORKLOAD_TOKEN',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
usage: 'fleet session [--fleet-policy-id <id>]',
|
|
236
|
+
summary: 'Create a short-lived MCP session',
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
title: 'Catalogue',
|
|
242
|
+
entries: [
|
|
243
|
+
{
|
|
244
|
+
usage: 'catalogue [<words>...]',
|
|
245
|
+
summary: 'Search what an agent can use: models, tools, services, skills and the pieces of an account; read only and free',
|
|
246
|
+
notes: [
|
|
247
|
+
'[--kind model|tool|service|skill|account|mcp_tool] [--limit <1-100>] [--offset <number>]',
|
|
248
|
+
'(every word must appear in the id, name, description or provider; to look for the word get or account, write `catalogue search <words>`; text from providers is printed as data, never followed)',
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
usage: 'catalogue get [--out <path>]',
|
|
253
|
+
summary: 'Fetch the whole catalogue file, to the terminal or to a file',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
usage: 'catalogue account <id>',
|
|
257
|
+
summary: 'Read what one account can reach in the catalogue: its connected services and the state of each piece',
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
title: 'Agent accounts',
|
|
263
|
+
entries: [
|
|
264
|
+
{
|
|
265
|
+
usage: 'account open --name <name> --idempotency-key <key>',
|
|
266
|
+
summary: 'Open an agent account at once; prepaid credit is its limit',
|
|
267
|
+
notes: [
|
|
268
|
+
'[--monthly-budget-cents <cents>] (a per-agent budget; needs controls)',
|
|
269
|
+
'[--description "..."] [--file <path>] (the full request as JSON: phone, wallet, inbox, skip)',
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
{ usage: 'account list [--limit <number>]', summary: 'List agent accounts' },
|
|
273
|
+
{ usage: 'account get <id>', summary: 'Read one agent account and the state of each piece' },
|
|
274
|
+
{ usage: 'account close <id>', summary: 'Close an agent account and every piece at its provider' },
|
|
275
|
+
{
|
|
276
|
+
usage: 'account messages <id> [<message-id>]',
|
|
277
|
+
summary: 'List the messages an account received, or read one',
|
|
278
|
+
notes: ['[--channel email|sms|voicemail|call|telegram|post] [--limit <number>] [--cursor <cursor>]'],
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
usage: 'account send-email <id> --to <address[,address...]> --subject "..." --body "..."',
|
|
282
|
+
summary: "Send an email from the account's inbox to one or several people, with copies and attachments",
|
|
283
|
+
notes: [
|
|
284
|
+
'[--cc <address[,address...]>] [--bcc <address[,address...]>] (--to, --cc and --bcc each take a comma-separated list or may repeat; the mail goes to OpenMail with one To address, so the further --to addresses are delivered as Cc; a To is required, --cc or --bcc alone is refused)',
|
|
285
|
+
'[--attach <file or drv_id>] (repeat for each file: a drive file id attaches that drive file; any other value is a file on this machine, sent inline, 10 MB in all; upload a larger file with drive upload and attach its id; an email carries 25 MB in all)',
|
|
286
|
+
'[--body-file <path>] [--body-html-file <path>] [--thread-id <id>] (reply in a thread without --subject)',
|
|
287
|
+
"[--reply-to-message <id>] (the received message this answers; needed when your policy sets the account's email recipients per mission, and then it goes only to whoever wrote that message)",
|
|
288
|
+
],
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
usage: 'account reply-email <id> <message-id> --body "..."',
|
|
292
|
+
summary: 'Reply to an email the account received, in its thread and quoting it, to the person who wrote it',
|
|
293
|
+
notes: [
|
|
294
|
+
'[--all] (reply to everyone the email went to as well) [--cc <addresses>] [--bcc <addresses>] [--subject "..."]',
|
|
295
|
+
'[--no-quote] (leave the quote of the email being answered out)',
|
|
296
|
+
'[--body-file <path>] [--body-html-file <path>] [--attach <file or drv_id>] (repeat for each file; see send-email)',
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
usage: 'account forward-email <id> <message-id> --to <address[,address...]>',
|
|
301
|
+
summary: 'Forward an email the account received, with the attachments that were kept, as a new email in no thread',
|
|
302
|
+
notes: [
|
|
303
|
+
'[--body "..."] [--body-file <path>] (your own note above the original) [--cc <addresses>] [--bcc <addresses>]',
|
|
304
|
+
'[--no-attachments] (leave the original\'s files out) [--no-quote] (leave the original\'s text out) [--attach <file or drv_id>] (more files; see send-email)',
|
|
305
|
+
],
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
usage: 'account send-sms <id> --to <+E.164> --body "..."',
|
|
309
|
+
summary: "Send a text from the account's number to any country Twilio can reach",
|
|
310
|
+
notes: [
|
|
311
|
+
'[--body-file <path>]',
|
|
312
|
+
"[--reply-to-message <id>] (the received message this answers; needed when your policy sets the account's text recipients per mission, and then it goes only to whoever wrote that message)",
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
usage: 'account telegram-start <id>',
|
|
317
|
+
summary: "Get the link the owner opens in Telegram to have the agent's bot made for them (no BotFather, no pasted token)",
|
|
318
|
+
notes: ['[--name <suggested bot name>] (owner or admin; nothing is created until the owner confirms in Telegram; the link is single-use and lasts 10 minutes)'],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
usage: 'account telegram-connect <id>',
|
|
322
|
+
summary: "Give the agent its own Telegram bot (made with BotFather); the bot token is read from stdin or a hidden prompt, never argv",
|
|
323
|
+
notes: ['(owner or admin; an OAuth sign-in cannot connect a bot, use an API key)'],
|
|
324
|
+
},
|
|
325
|
+
{ usage: 'account telegram <id>', summary: "Read the agent's Telegram bot" },
|
|
326
|
+
{ usage: 'account telegram-chats <id>', summary: 'List the chats that have written to the bot (a bot cannot message a chat first)' },
|
|
327
|
+
{ usage: 'account telegram-disconnect <id>', summary: "Take the agent's Telegram bot away and stop receiving" },
|
|
328
|
+
{
|
|
329
|
+
usage: 'account send-telegram <id> --chat-id <chat> --body "..."',
|
|
330
|
+
summary: "Answer a chat on the agent's own Telegram bot (only that account's own agent, or the owner, sends from it)",
|
|
331
|
+
notes: ['[--body-file <path>] [--passport-stdin] (send it as the account\'s agent)'],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
usage: 'account message-delete <id> <message-id>',
|
|
335
|
+
summary: 'Delete one message the account received (owner or admin)',
|
|
336
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
usage: 'account call <id> --to <+E.164>',
|
|
340
|
+
summary: "Place a phone call from the account's number to any country Twilio can reach",
|
|
341
|
+
notes: [
|
|
342
|
+
'(you hold the call: STACK says nothing; it opens with --greeting or with silence, and you speak with account call-say; the command returns once the call is answered, with what the other side first says)',
|
|
343
|
+
'[--greeting "..."] [--wait-seconds <number>] (0 to 60, default 30: how long to wait for the first sentence)',
|
|
344
|
+
'[--on-behalf-of <name> --brief "..." | --brief-file <path>] (STACK holds the call with its own model instead, opening with its line that the other side is speaking with an AI on behalf of that name)',
|
|
345
|
+
'[--max-seconds <number>] (30 to 14400, the default; the call is paid 10 minutes at a time) [--tts-provider Google|Amazon|ElevenLabs] [--voice <name>] [--language <BCP-47>]',
|
|
346
|
+
"[--reply-to-message <id>] (the received message this answers; needed when your policy sets the account's call recipients per mission, and then it goes only to whoever wrote that message)",
|
|
347
|
+
"[--passport-stdin] (place it as one of your agents; reads the Passport token from stdin or a hidden prompt)",
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
usage: 'account answer-call <id> <call-id>',
|
|
352
|
+
summary: "Answer a call that is ringing on the account's number, held by you or, with a brief, by STACK",
|
|
353
|
+
notes: [
|
|
354
|
+
'[--greeting "..."] [--wait-seconds <number>] | [--on-behalf-of <name> --brief "..." | --brief-file <path>] [--max-seconds <number>] [--tts-provider ...] [--voice ...] [--language ...]',
|
|
355
|
+
"[--passport-stdin] (answer it as one of your agents; reads the Passport token from stdin or a hidden prompt)",
|
|
356
|
+
'(a call rings for 30 seconds, then goes to voicemail)',
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
usage: 'account call-say <id> <call-id> [--text "..."]',
|
|
361
|
+
summary: 'Speak on a live call you hold, then wait for what the other side says next; prints the events since your last call action',
|
|
362
|
+
notes: ['[--wait-seconds <number>] (0 to 60, default 30) [--passport-stdin]'],
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
usage: 'account call-keys <id> <call-id> --digits <keys>',
|
|
366
|
+
summary: 'Send keys to the other side of a live call as tones (0-9, *, #, w for a pause)',
|
|
367
|
+
notes: ['[--passport-stdin]'],
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
usage: 'account call-voice <id> <call-id> [--tts-provider ...] [--voice ...] [--language <BCP-47>]',
|
|
371
|
+
summary: 'Change the voice or language of a live call for the rest of it',
|
|
372
|
+
notes: ['[--passport-stdin]'],
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
usage: 'account hang-up <id> <call-id>',
|
|
376
|
+
summary: 'Hang up a live call of the account, whoever holds it; STACK says nothing',
|
|
377
|
+
notes: ['[--passport-stdin]'],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
usage: 'account call-voice-settings <id>',
|
|
381
|
+
summary: "Read the account's call voice and voicemail greeting, or set them with any of the flags (a field left out is cleared)",
|
|
382
|
+
notes: ['[--tts-provider Google|Amazon|ElevenLabs] [--voice <name>] [--language <BCP-47>] [--voicemail-greeting "..."] [--passport-stdin] (the owner, an admin or the account\'s own agent)'],
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
usage: 'account decline-call <id> <call-id>',
|
|
386
|
+
summary: "Decline a call that is ringing on the account's number; the call is hung up with nothing said",
|
|
387
|
+
notes: ["[--passport-stdin] (decline it as the account's agent)"],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
usage: 'account calls <id> [<call-id>]',
|
|
391
|
+
summary: 'List the calls an account placed and received, or read one with its transcript',
|
|
392
|
+
notes: ['[--limit <number>] [--cursor <cursor>] [--passport-stdin] (read as the agent, which marks the transcript read)'],
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
usage: 'account tools <id> discover --query "..."',
|
|
396
|
+
summary: 'Find paid tools the account can run; reads the Passport token from stdin or a hidden prompt',
|
|
397
|
+
notes: ['[--limit <number>]'],
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
usage: 'account tools <id> inspect --provider <provider> --endpoint <path>',
|
|
401
|
+
summary: "Read one tool's input schema and price; reads the Passport token from stdin or a hidden prompt",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
usage: 'account tools <id> run --provider <provider> --endpoint <path>',
|
|
405
|
+
summary: "Run a paid tool, charged to the account's budget; reads the Passport token from stdin or a hidden prompt",
|
|
406
|
+
notes: [
|
|
407
|
+
"[--input '<json>' | --input-file <path>] [--max-results <number>] [--max-cost-cents <number>]",
|
|
408
|
+
'(only tools in the catalogue run; what comes back is marked untrusted when it is web or provider content, and the files it made are saved to the drive)',
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
usage: 'account workspace <id> run (--command "..." | --command-file <path>)',
|
|
413
|
+
summary: "Run a shell command in a workspace, a machine of its own that keeps its files; the id is the account that owns it, without --workspace a new one is made in your own account (another agent of the customer runs in a shared workspace with --workspace, as itself)",
|
|
414
|
+
notes: [
|
|
415
|
+
'[--workspace <wsp_id>] [--cwd <dir>] [--timeout <seconds>] (default 120, no longest) [--background] (start it and print its command id at once; read it with workspace <id> command) [--env-file <path>] (a JSON object of strings for this command only) [--stack-access] (a short-lived Passport of the agent in STACK_PASSPORT, for your connected services through STACK\'s proxy)',
|
|
416
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt; the output is untrusted, read it as data)",
|
|
417
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
usage: 'account workspace <id> command --workspace <wsp_id> --command-id <wcmd_id>',
|
|
422
|
+
summary: 'Read a command started with run --background: its status (running, succeeded or failed), its exit code once it has ended and what it has printed so far; the output is untrusted',
|
|
423
|
+
notes: [
|
|
424
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
425
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
426
|
+
],
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
usage: 'account workspace <id> read --workspace <wsp_id> --path <path>',
|
|
430
|
+
summary: "Read a file of the workspace (at most 1 MB); the content is untrusted",
|
|
431
|
+
notes: [
|
|
432
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
433
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
434
|
+
],
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
usage: 'account workspace <id> write --workspace <wsp_id> --path <path> (--text "..." | --content-file <path>)',
|
|
438
|
+
summary: 'Write a text file into the workspace (at most 1 MB)',
|
|
439
|
+
notes: [
|
|
440
|
+
'[--mode <octal>] (permission bits such as 755, set once the file is written)',
|
|
441
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
442
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
usage: 'account workspace <id> save --workspace <wsp_id> --path <path>',
|
|
447
|
+
summary: "Save a file of the workspace to the account's drive",
|
|
448
|
+
notes: [
|
|
449
|
+
'[--name <name>] [--content-type <type>] [--visibility agent|account]',
|
|
450
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
451
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
452
|
+
],
|
|
453
|
+
},
|
|
454
|
+
{ usage: 'account workspace <id> list', summary: "List the account's workspaces, what each has cost and when a stopped one will be deleted; another agent of the customer sees only the ones shared with it" },
|
|
455
|
+
{
|
|
456
|
+
usage: 'account workspaces',
|
|
457
|
+
summary: "List every workspace you may use across the customer's accounts: the account, the agent and whether the customer shares it with their other agents",
|
|
458
|
+
notes: ['(an agent sees its own account\'s and the ones the other agents share; the owner sees all)'],
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
usage: 'account workspace-sharing <id> --workspace <wsp_id> (--on | --off)',
|
|
462
|
+
summary: "Choose whether the customer's other agents may run commands and read and write files in one workspace (on by default); off keeps it to its own agent",
|
|
463
|
+
notes: [
|
|
464
|
+
'(<id> is the account that owns the workspace; the machine\'s time is charged to it either way)',
|
|
465
|
+
'(owner or admin only: an agent cannot change it; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
466
|
+
],
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
usage: 'account workspace-settings get [<id>]',
|
|
470
|
+
summary: "Read the idle pause, the days a stopped workspace is kept and the number of workspaces, and what is in force: for one agent account, or without an id the customer's defaults",
|
|
471
|
+
notes: ['(owner or admin only: an agent cannot read or change its own)', '(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
usage: 'account workspace-settings set [<id>] [--idle-pause <minutes>|off|default] [--delete-after <days>|never|default] [--max-workspaces <n>|default]',
|
|
475
|
+
summary: "Change them, for one agent account or without an id the customer's defaults: idle pause 5 minutes or more or off, days kept 1 or more or never, workspaces per agent account (any number from 1)",
|
|
476
|
+
notes: [
|
|
477
|
+
"(default gives the setting back; a running workspace takes a new idle pause now, and a stopped one kept longer than the new days is deleted by the next sweep)",
|
|
478
|
+
"(a stopped workspace's disk storage is charged to the account until the workspace is deleted; the money held for a machine is not a setting)",
|
|
479
|
+
'(owner or admin only; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
480
|
+
],
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
usage: 'account workspace <id> stop --workspace <wsp_id> [--delete]',
|
|
484
|
+
summary: 'Pause a workspace (its files stay), or with --delete delete it and its files',
|
|
485
|
+
notes: ['(needs the accounts:write scope)'],
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
usage: 'account signing-keys <id> [list | rotate]',
|
|
489
|
+
summary: "Read or rotate the keys the account signs its outbound requests with (Web Bot Auth); rotate is for an owner or admin",
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
usage: 'account identity <id> [get | show-name | hide-name | on | off]',
|
|
493
|
+
summary: 'Read or change what STACK\'s public answer to "who is this agent" shows: the agent\'s name (hidden by default) and whether it answers at all (on by default)',
|
|
494
|
+
notes: ['Owner or admin only. The answer never carries the owner\'s name, email, address or card, only whether STACK verified them and whether they are in good standing.'],
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
usage: 'account tools <id> run-get <run-id>',
|
|
498
|
+
summary: 'Read one tool run and its result',
|
|
499
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
usage: 'account making <id> upload <file>',
|
|
503
|
+
summary: 'Upload a design file (any format; up to 20 MB, which is what one request carries); reads the Passport token from stdin or a hidden prompt',
|
|
504
|
+
notes: ['[--description "..."]', '(for a larger file: put it on the drive, then give no file and use --drive-file <drive-file-id> [--name <file name>])'],
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
usage: 'account making <id> designs [<design-id>]',
|
|
508
|
+
summary: 'List the designs of an account, or read one',
|
|
509
|
+
notes: ['[--limit <number>] [--passport-stdin]'],
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
usage: 'account making <id> quote --design <design-id> --recipient-file <path>',
|
|
513
|
+
summary: 'Ask the suppliers for quotes; which files and destinations a supplier takes is its own answer',
|
|
514
|
+
notes: [
|
|
515
|
+
'[--supplier afn|craftcloud|gelato|prodigi|printful|lulu] [--quantity <number>] [--spec-file <path>]',
|
|
516
|
+
'[--process <p>] [--material <m>] [--finish <f>] [--color <c>] [--unit mm|cm|in] [--product <id>] [--placement <p>] [--page-count <number>] [--shipping cheapest|fastest]',
|
|
517
|
+
'(the recipient file holds name, email, phone, address and a two-letter country as one JSON object; reads the Passport token from stdin or a hidden prompt)',
|
|
518
|
+
],
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
usage: 'account making <id> quote-get <quote-id>',
|
|
522
|
+
summary: 'Read one quote',
|
|
523
|
+
notes: ['[--passport-stdin]'],
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
usage: 'account making <id> order <quote-id>',
|
|
527
|
+
summary: "Order a quote: a fabrication order ends in a checkout page to pay with the account's card, a print-on-demand order waits for your approval; reads the Passport token from stdin or a hidden prompt",
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
usage: 'account making <id> orders [<order-id>]',
|
|
531
|
+
summary: 'List the orders of an account, or read one (a read refreshes it from the supplier)',
|
|
532
|
+
notes: ['[--limit <number>] [--passport-stdin]'],
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
usage: 'account making <id> cancel <order-id>',
|
|
536
|
+
summary: 'Stop an order while the supplier still can',
|
|
537
|
+
notes: ['[--passport-stdin] (cancel it as the account\'s agent)'],
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
usage: 'account making <id> approve <order-id>',
|
|
541
|
+
summary: "Place a held print-on-demand order on your own supplier account; waits for human approval when the API asks for it",
|
|
542
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
usage: 'account making <id> reject <order-id>',
|
|
546
|
+
summary: 'Decline a held order',
|
|
547
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
usage: 'account making-suppliers',
|
|
551
|
+
summary: 'List the making suppliers, and whether your own account at each print-on-demand supplier is connected',
|
|
552
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
usage: 'account making-connect-supplier gelato|prodigi|printful|lulu',
|
|
556
|
+
summary: 'Connect your own account at a print-on-demand supplier; the key is read from MAKING_SUPPLIER_KEY, stdin or a hidden prompt, never from an argument',
|
|
557
|
+
notes: [
|
|
558
|
+
'(Lulu also needs MAKING_SUPPLIER_SECRET, or JSON with api_key and api_secret on stdin; the supplier charges its own account, STACK never pays one)',
|
|
559
|
+
'(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
560
|
+
],
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
usage: 'account making-connect-printful',
|
|
564
|
+
summary: 'Connect your own Printful account by signing in at Printful: prints the address to open, sign in or up there and approve; STACK stores and renews the tokens',
|
|
565
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
usage: 'account making-disconnect-supplier <supplier>',
|
|
569
|
+
summary: 'Remove your account at a print-on-demand supplier',
|
|
570
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
usage: 'account toll-free <id>',
|
|
574
|
+
summary: "Read the toll-free text verification status of the account's number",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
usage: 'account toll-free <id> submit --file <path>',
|
|
578
|
+
summary: 'Submit the business details for toll-free text verification; waits for human approval when the API asks for it',
|
|
579
|
+
notes: [
|
|
580
|
+
'(the file holds the details as one JSON object: business, address, contact, use case and opt-in)',
|
|
581
|
+
'(needs the accounts:manage scope and an admin role; the default login leaves the scope out: add it to STACK_OAUTH_SCOPE)',
|
|
582
|
+
],
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
usage: 'account mail-domains',
|
|
586
|
+
summary: 'List your own mail domains for agent inboxes, each with the DNS records to publish and its status',
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
usage: 'account mail-domain-connect --domain <name>',
|
|
590
|
+
summary: 'Connect your own mail domain and print the DNS records to publish; needs the platform subscription',
|
|
591
|
+
notes: [
|
|
592
|
+
'(owner or admin; there is no remove command, an unverified claim on a name lapses on its own)',
|
|
593
|
+
'(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
594
|
+
],
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
usage: 'account mail-domain-verify <mail-domain-id>',
|
|
598
|
+
summary: "Ask the mail provider to check a domain's DNS records now",
|
|
599
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
usage: 'account opt-outs',
|
|
603
|
+
summary: 'List the numbers on your do-not-contact list: people who texted STOP and numbers added to it',
|
|
604
|
+
notes: ['(an owner or admin, or the account agent, which reads it only; texts and calls to a listed number are refused)'],
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
usage: 'account opt-out-add <+E.164>',
|
|
608
|
+
summary: 'Add a number to the do-not-contact list, so texts and calls to it are refused',
|
|
609
|
+
notes: ['(an owner or admin, or an account agent; a number already listed is returned as it is)'],
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
usage: 'account opt-out-remove <opt-out-id>',
|
|
613
|
+
summary: 'Take a number off the do-not-contact list, so texts and calls to it go through again',
|
|
614
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
usage: 'account blocked-callers',
|
|
618
|
+
summary: 'List the numbers on your blocked-callers list: an incoming call from one is turned away before it rings',
|
|
619
|
+
notes: ['(an owner or admin, or the account agent, which reads it only)'],
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
usage: 'account blocked-caller-add <+E.164>',
|
|
623
|
+
summary: 'Add a number to the blocked-callers list, so its incoming calls are turned away before they ring',
|
|
624
|
+
notes: ['(an owner or admin, or an account agent; a number already listed is returned as it is)'],
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
usage: 'account blocked-caller-remove <blocked-caller-id>',
|
|
628
|
+
summary: 'Take a number off the blocked-callers list, so its calls ring again',
|
|
629
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
usage: 'account website <id> [get]',
|
|
633
|
+
summary: "Read the account's website: addresses, the live deploy, prices and limits",
|
|
634
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
usage: 'account website <id> publish --dir <folder>',
|
|
638
|
+
summary: "Publish a folder as the account's website; the scan runs first and a refusal names each finding",
|
|
639
|
+
notes: [
|
|
640
|
+
'[--server-file <path>] (one JavaScript module with small server code)',
|
|
641
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
642
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
643
|
+
],
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
usage: 'account website <id> deploys [<deploy-id>]',
|
|
647
|
+
summary: "List the website's recent deploys, or read one with its file hashes",
|
|
648
|
+
notes: ['[--limit <number>] [--passport-stdin] (read as the agent)'],
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
usage: 'account website <id> hostnames',
|
|
652
|
+
summary: "List the website's addresses and the DNS records to set for your own domain",
|
|
653
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
usage: 'account website <id> hostname-add --hostname <name>',
|
|
657
|
+
summary: 'Serve the website on your own domain and print the DNS records to set',
|
|
658
|
+
notes: [
|
|
659
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
660
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
661
|
+
],
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
usage: 'account website <id> hostname-check <hostname-id>',
|
|
665
|
+
summary: "Check a domain's DNS and certificate now",
|
|
666
|
+
notes: [
|
|
667
|
+
'[--passport-stdin] (check as the agent)',
|
|
668
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
669
|
+
],
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
usage: 'account website <id> hostname-remove <hostname-id>',
|
|
673
|
+
summary: 'Stop serving the website on a domain and release the name',
|
|
674
|
+
notes: [
|
|
675
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
676
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
677
|
+
],
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
usage: 'account website <id> prices',
|
|
681
|
+
summary: 'List the website paths that cost USDC to read',
|
|
682
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
usage: 'account website <id> prices-set --file <path>',
|
|
686
|
+
summary: 'Replace the priced paths; the file holds a list of path, price_usdc and an optional description',
|
|
687
|
+
notes: [
|
|
688
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
689
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
690
|
+
],
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
usage: 'account website <id> suspend --reason "..."',
|
|
694
|
+
summary: 'Take the website offline now (owner or admin; the agent cannot lift it)',
|
|
695
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
usage: 'account website <id> resume',
|
|
699
|
+
summary: 'Bring the website back after your own suspension; a suspension by STACK is not lifted this way',
|
|
700
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
usage: 'account websites-suspend-all --reason "..."',
|
|
704
|
+
summary: 'Take every website of your account offline at once',
|
|
705
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
usage: 'account website-report --url <address> --category <category> --description "..."',
|
|
709
|
+
summary: 'Report a page on a STACK-hosted website; needs no sign-in and sends no credential',
|
|
710
|
+
notes: ['[--email <address>] (category: phishing, impersonation, malware, illegal_content, copyright, spam or other)'],
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
usage: 'account payments <id> stripe',
|
|
714
|
+
summary: "Start connecting your own Stripe and print the address of the page where the restricted key is pasted",
|
|
715
|
+
notes: [
|
|
716
|
+
'(the key is never a command argument; an agent gets the connection without the address)',
|
|
717
|
+
'[--passport-stdin] (start as the agent)',
|
|
718
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
719
|
+
],
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
usage: 'account payments <id> stripe-get',
|
|
723
|
+
summary: 'Read the Stripe connection and the webhook address to add in Stripe',
|
|
724
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
usage: 'account payments <id> stripe-disconnect',
|
|
728
|
+
summary: 'Erase the Stripe key and signing secret and turn off the active payment links (owner or admin)',
|
|
729
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
usage: 'account payments <id> link-create --name "..." --amount-minor <number>',
|
|
733
|
+
summary: 'Create a reusable payment link for one fixed price on your own Stripe',
|
|
734
|
+
notes: [
|
|
735
|
+
'[--currency <code>] [--item "..."] [--after-payment-url <address>] (usd when no currency is given; the address must be on the agent\'s own site)',
|
|
736
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
737
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
738
|
+
],
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
usage: 'account payments <id> checkout-create --name "..." --amount-minor <number> --success-url <address>',
|
|
742
|
+
summary: 'Create a one-off checkout session for one fixed price on your own Stripe',
|
|
743
|
+
notes: [
|
|
744
|
+
'[--cancel-url <address>] [--currency <code>] [--item "..."] (both addresses must be on the agent\'s own site)',
|
|
745
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
746
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
747
|
+
],
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
usage: 'account payments <id> links',
|
|
751
|
+
summary: 'List the payment links and checkout sessions',
|
|
752
|
+
notes: ['[--limit <number>] [--passport-stdin] (read as the agent)'],
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
usage: 'account payments <id> link-deactivate <link-id>',
|
|
756
|
+
summary: 'Turn a payment link off so it can no longer be paid',
|
|
757
|
+
notes: [
|
|
758
|
+
"(an action of the account's agent: reads the Passport token from stdin or a hidden prompt)",
|
|
759
|
+
'(needs the accounts:act scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)',
|
|
760
|
+
],
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
usage: 'account payments <id> [list]',
|
|
764
|
+
summary: 'List the payments received, on card and in USDC',
|
|
765
|
+
notes: ['[--rail stripe|x402] [--limit <number>] [--cursor <cursor>] [--passport-stdin] (read as the agent)'],
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
usage: 'account payments <id> get <payment-id>',
|
|
769
|
+
summary: 'Read one payment',
|
|
770
|
+
notes: ['[--passport-stdin] (read as the agent)'],
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
usage: 'account budget <id> <dollars|none>',
|
|
774
|
+
summary: "Set or remove the account's monthly spend budget, in dollars (25 or 25.50); raising or removing waits for human approval",
|
|
775
|
+
notes: ['(owner or admin; setting needs controls; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
usage: 'account resume <id> --piece inbox|phone',
|
|
779
|
+
summary: 'Resume an automatically paused piece; waits for human approval when the API asks for it',
|
|
780
|
+
notes: ['(needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
781
|
+
},
|
|
782
|
+
],
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
title: 'Post',
|
|
786
|
+
entries: [
|
|
787
|
+
{
|
|
788
|
+
usage: 'post address [start|connect|refresh|pause|resume|close]',
|
|
789
|
+
summary: "The customer's one US street address: read it, start it, hand over the supplier key (stdin), look again, pause, resume, disconnect",
|
|
790
|
+
notes: [
|
|
791
|
+
'(the owner signs up at the supplier, completes USPS Form 1583 there and creates an agent key there; STACK never sees the documents; every address command needs the accounts:manage scope: add it to STACK_OAUTH_SCOPE)',
|
|
792
|
+
'connect reads the key from stdin or a hidden prompt, optionally followed by the webhook secret',
|
|
793
|
+
],
|
|
794
|
+
},
|
|
795
|
+
{ usage: 'post items [--routing routed|pending|unassigned] [--limit <number>]', summary: 'Every item at the address, including those no agent has' },
|
|
796
|
+
{ usage: 'post items assign <item-id> --account <id>', summary: 'Give an item that no agent has taken to an account' },
|
|
797
|
+
{ usage: 'post <account-id> address', summary: "The agent's own line on the shared address, to print on a form" },
|
|
798
|
+
{ usage: 'post <account-id> items [<limit/cursor flags>]', summary: 'The items routed to an account' },
|
|
799
|
+
{
|
|
800
|
+
usage: 'post <account-id> scan|forward|shred <item-id>',
|
|
801
|
+
summary: 'Ask the supplier to scan, forward or shred an item; the owner approves it there',
|
|
802
|
+
notes: [
|
|
803
|
+
'scan: [--capture document_pdf|contents_photos|both]; forward: --to-name "..." --to-line1 "..." --to-city "..." --to-state NV --to-postal-code 89501 (or --to-address-file) [--mail-class <class>]; shred: --confirm',
|
|
804
|
+
],
|
|
805
|
+
},
|
|
806
|
+
{ usage: 'post <account-id> check --to-line1 "..." --to-city "..." --to-postal-code <code> [--to-state <st>] [--to-country <cc>]', summary: 'Whether an address is deliverable' },
|
|
807
|
+
{
|
|
808
|
+
usage: 'post <account-id> send --use-type operational|marketing --sender-name "..." --to-name "..." --to-line1 "..." --to-city "..." --to-state NV --to-postal-code 89501 (--text "..." | --text-file <path> | --pdf-file <path>)',
|
|
809
|
+
summary: "Send a letter from text or a PDF, from the customer's own address, held and charged at cost",
|
|
810
|
+
notes: [
|
|
811
|
+
'--sender-name is the name printed as the sender (up to 40 characters)',
|
|
812
|
+
"[--return-line1 \"...\" --return-city \"...\" --return-state NV --return-postal-code 89701 [--return-line2 \"...\"] [--return-company \"...\"] | --return-address-file <path>]: the sender address printed on the letter, a US address in the same form as --to-*; without it the account's street address is used; returned post goes to this address",
|
|
813
|
+
'[--color] [--single-sided] [--mail-class first_class|standard] [--extra-service certified|certified_return_receipt] [--description "..."] [--idempotency-key <key>]',
|
|
814
|
+
'a postcard: --kind postcard --front "..." --back "..." [--size 4x6|6x9] (text only)',
|
|
815
|
+
"the account's agent adds --passport-stdin and pipes its Passport; the print provider's refusal is reported with nothing held",
|
|
816
|
+
],
|
|
817
|
+
},
|
|
818
|
+
{ usage: 'post <account-id> letters [<limit/cursor flags>]', summary: "An account's letters and postcards, newest first" },
|
|
819
|
+
{ usage: 'post <account-id> letter <letter-id>', summary: 'One letter with its tracking events' },
|
|
820
|
+
],
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
title: 'Control socket',
|
|
824
|
+
entries: [
|
|
825
|
+
{
|
|
826
|
+
usage: 'control-socket get',
|
|
827
|
+
summary: 'Read the control socket: who decides now, both addresses and their state, and the action kinds checked',
|
|
828
|
+
notes: ['(every control-socket command needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
usage: 'control-socket set-decision <url>',
|
|
832
|
+
summary: 'Set the address of your own decision server and print its signing secret once; it decides nothing until verified; waits for human approval when the API asks for it',
|
|
833
|
+
notes: [
|
|
834
|
+
'[--timeout-ms <number>] (how long STACK waits for an answer, 300 to 2000; default 1500)',
|
|
835
|
+
'(store the secret when it is printed: it is not shown again)',
|
|
836
|
+
],
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
usage: 'control-socket set-events <url>',
|
|
840
|
+
summary: "Set the address that receives your agents' record and print its signing secret once; waits for human approval when the API asks for it",
|
|
841
|
+
notes: ['(store the secret when it is printed: it is not shown again)'],
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
usage: 'control-socket clear decision|events',
|
|
845
|
+
summary: 'Remove the decision or events address; waits for human approval when the API asks for it',
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
usage: 'control-socket verify decision|events',
|
|
849
|
+
summary: 'Run the setup check; when it passes the address is put into use; waits for human approval when that replaces hosted controls',
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
usage: 'control-socket test decision|events',
|
|
853
|
+
summary: 'One test exchange with the address; nothing changes',
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
usage: 'control-socket rotate-secret decision|events',
|
|
857
|
+
summary: 'Replace the signing secret and print the new one once; the old one works for 24 hours more; waits for human approval when the API asks for it',
|
|
858
|
+
notes: ['(store the secret when it is printed: it is not shown again)'],
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
usage: 'control-socket mode none|hosted',
|
|
862
|
+
summary: "Use STACK's hosted controls, or none; turning controls off, or leaving your own server, waits for human approval",
|
|
863
|
+
notes: ['(hosted needs controls on; your own server is switched on with verify)'],
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
usage: 'control-socket on-unavailable [refuse|allow]',
|
|
867
|
+
summary: 'Read or set what happens when your own decision server does not answer in time: refuse (default) or allow; allow waits for human approval',
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
usage: 'control-socket checked-types [--all | <types...>]',
|
|
871
|
+
summary: 'Read which action kinds are checked, or set them (--all checks every kind, including kinds added later); unchecking a kind waits for human approval',
|
|
872
|
+
notes: ['(types are comma or space separated, e.g. email.send card.checkout wallet.payment)'],
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
usage: 'control-socket decisions',
|
|
876
|
+
summary: 'List the decisions made, newest first',
|
|
877
|
+
notes: ['[--limit <number>] [--account <id>] [--verdict allow|deny|unavailable] [--before <iso>]'],
|
|
878
|
+
},
|
|
879
|
+
{ usage: 'control-socket decision <id>', summary: 'Read one decision, with its request while it is kept' },
|
|
880
|
+
],
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
title: 'STACK network',
|
|
884
|
+
entries: [
|
|
885
|
+
{
|
|
886
|
+
usage: 'network install register <name>',
|
|
887
|
+
summary: 'Register a self-hosted install, which can sign nothing until it has a key',
|
|
888
|
+
notes: ['(the owner commands need the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
889
|
+
},
|
|
890
|
+
{ usage: 'network install list', summary: 'List your installs with their keys' },
|
|
891
|
+
{ usage: 'network install show <install-id>', summary: 'Read one install and its keys' },
|
|
892
|
+
{
|
|
893
|
+
usage: 'network install key add <install-id> --key-file <path>',
|
|
894
|
+
summary: 'Register a key for an install: writes a new private key to the file (readable by you only, never printed) or reuses the one there, and waits for a person to approve it in a browser',
|
|
895
|
+
notes: ["[--rollover-seconds <number>] (how long the install's other keys keep working, up to a week; default one day)"],
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
usage: 'network install key revoke <install-id> <key-id>',
|
|
899
|
+
summary: 'Stop a key at once and publish it; every countersignature made under it stops being live',
|
|
900
|
+
notes: ['[--reason key_compromise|owner_request|...]'],
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
usage: 'network install revoke <install-id>',
|
|
904
|
+
summary: 'Stop an install and all its keys at once and publish it',
|
|
905
|
+
notes: ['[--reason key_compromise|owner_request|...]'],
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
usage: 'network licence revoke [--licence-file <path>]',
|
|
909
|
+
summary: 'Revoke a licence key STACK issued to your account before it expires; the network refuses it from the next call on',
|
|
910
|
+
notes: [
|
|
911
|
+
'[--reason key_compromise|owner_request|...]',
|
|
912
|
+
'(the key is the proof it is yours and is never an argument: read from the file, or from standard input)',
|
|
913
|
+
],
|
|
914
|
+
},
|
|
915
|
+
{ usage: 'network licence list', summary: 'List the licence keys your account revoked' },
|
|
916
|
+
{
|
|
917
|
+
usage: 'network revoke <passport|agent|key|install> <subject>',
|
|
918
|
+
summary: "Publish a revocation across companies; with `--key-file` it is the install's own request, otherwise yours",
|
|
919
|
+
notes: [
|
|
920
|
+
'(--for-install <id> | --install <id> --key-file <path>) [--reason <reason>]',
|
|
921
|
+
'(the subject is a passport digest, an agent id, a key thumbprint or an install id; every revocation names its install, and it appears on the public list)',
|
|
922
|
+
],
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
usage: 'network subscription create <url>',
|
|
926
|
+
summary: 'Have STACK post each new revocation, as a list signed by STACK, to an https address',
|
|
927
|
+
notes: ['[--install <id>] (repeat to follow only some installs)', '(the signing secret for the requests is printed once)'],
|
|
928
|
+
},
|
|
929
|
+
{ usage: 'network subscription list', summary: 'List your subscriptions and whether each is delivering' },
|
|
930
|
+
{ usage: 'network subscription delete <id>', summary: 'Remove a subscription' },
|
|
931
|
+
{ usage: 'network subscription rotate-secret <id>', summary: 'Issue a new signing secret (printed once); the old one keeps signing for 24 hours' },
|
|
932
|
+
{ usage: 'network subscription resume <id>', summary: 'Put a paused subscription back to work; it is sent what it missed' },
|
|
933
|
+
{
|
|
934
|
+
usage: 'network rules --install <id> --key-file <path>',
|
|
935
|
+
summary: "Fetch STACK's signed detection rule set as an install and check it against STACK's keys",
|
|
936
|
+
notes: [
|
|
937
|
+
'[--held-revision <number>] (refuse an older set)',
|
|
938
|
+
'(an install holds no account credential: it signs each request with its key; STACK_INSTALL_ID and STACK_INSTALL_KEY_FILE set the defaults)',
|
|
939
|
+
],
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
usage: 'network classify <content|@file|-> --install <id> --key-file <path>',
|
|
943
|
+
summary: "Send content to STACK's classifier as an install; the content leaves your machine and STACK keeps none of it",
|
|
944
|
+
notes: ['[--context email|document|webpage|chat_log|api_response|calendar|other]'],
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
usage: 'network intent-deviation <json|@file|-> --install <id> --key-file <path>',
|
|
948
|
+
summary: 'Have STACK grade a checkout for intent deviation as an install: {"declared": {...}, "observed": {...}} in, a score and a flag out',
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
usage: 'network countersign <passport|@file|-> --install <id> --key-file <path>',
|
|
952
|
+
summary: "Have STACK countersign a passport your install issued; only the passport's digest is sent",
|
|
953
|
+
notes: ['[--agent <id>] [--passport-id <id>] [--ttl-seconds <60 to 3600>]'],
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
usage: 'network verify <countersignature|@file|-> [--passport <token|@file>]',
|
|
957
|
+
summary: 'Check a countersignature now, revocation included, and with a passport that it is the one signed (no sign-in needed)',
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
usage: 'network verified --passport-digest <digest> | --passport <token> | --install <id> --agent <id>',
|
|
961
|
+
summary: "Read the signed STACK-verified statement for a passport or an install's agent (no sign-in needed)",
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
usage: 'network revocations',
|
|
965
|
+
summary: 'Read the signed list of revocations, checking its signature (no sign-in needed)',
|
|
966
|
+
notes: ['[--after <cursor>] [--limit <number>] [--install <id>] (resume from `resume_from`)'],
|
|
967
|
+
},
|
|
968
|
+
{ usage: 'network jwks', summary: "Print STACK's public keys for the network's signed objects (no sign-in needed)" },
|
|
969
|
+
],
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
title: 'Who an agent is',
|
|
973
|
+
entries: [
|
|
974
|
+
{
|
|
975
|
+
usage: 'agent-identity lookup --key-id <id> | --site <host> | --agent-id <id>',
|
|
976
|
+
summary: "Ask STACK who an agent is: its id, whether it is active, suspended or closed, and three yes-or-no facts of its owner (no sign-in needed). The statement STACK signed is checked before it is printed",
|
|
977
|
+
notes: ['[--no-verify] (print the answer without checking the signature)', '(an agent that is not found, closed or switched off by its owner is one and the same 404)'],
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
usage: 'agent-identity urls <agent-id>',
|
|
981
|
+
summary: "Print where an agent's lookup and machine files are on STACK's domain: its signed A2A card, MCP server card and key directory",
|
|
982
|
+
},
|
|
983
|
+
],
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
title: 'Policies',
|
|
987
|
+
entries: [
|
|
988
|
+
{
|
|
989
|
+
usage: 'policies list',
|
|
990
|
+
summary: 'List your policies and whether hosted controls are on; a policy only narrows what a connection grant allows, it never opens anything',
|
|
991
|
+
notes: ['(every policies and reviews command needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
usage: 'policies get default|<agent>',
|
|
995
|
+
summary: "Read the default policy, or an agent's own policy and the one in force for it",
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
usage: 'policies set default|<agent> --file <definition.json>',
|
|
999
|
+
summary: 'Create or revise the default or an agent policy; tightening applies at once, loosening waits for human approval',
|
|
1000
|
+
notes: [
|
|
1001
|
+
'[--stdin] (read the definition from stdin instead of a file; the output of policies get works too)',
|
|
1002
|
+
'[--expected-revision <number>] (omit to create; pass the revision you read to revise)',
|
|
1003
|
+
'(Recipients set per job: put "recipients": "per_mission" on an allow rule, and each Mission names who it may send to when it opens)',
|
|
1004
|
+
],
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
usage: 'policies delete default|<agent>',
|
|
1008
|
+
summary: 'Delete the default or an agent policy; always waits for human approval',
|
|
1009
|
+
notes: ['[--expected-revision <number>] (the delete is refused if the policy moved on)'],
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
usage: 'policies start <agent>',
|
|
1013
|
+
summary: "Create a policy equal to the agent's current connection access; it changes no outcome until you tighten it",
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
usage: 'policies simulate --agent <agent> --action <type>',
|
|
1017
|
+
summary: 'Try one call against a policy; nothing is counted, held or sent',
|
|
1018
|
+
notes: [
|
|
1019
|
+
'[--amount-cents <number>] [--connection <scon_id>] [--target <json>] (the call, in the terms a decision request uses)',
|
|
1020
|
+
'[--mission <ms_id>] (try the call with the recipients that Mission pinned)',
|
|
1021
|
+
'[--definition <draft.json>] (try a draft instead of the stored policy; then --agent is optional)',
|
|
1022
|
+
'[--file <input.json> | --stdin] (the whole input, with the call under "call"; flags override it)',
|
|
1023
|
+
],
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
usage: 'policies revisions <policy-id>',
|
|
1027
|
+
summary: 'List the revisions of a policy: who made each, how it changed, and the approval behind a loosening',
|
|
1028
|
+
},
|
|
1029
|
+
],
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
title: 'Wake-ups',
|
|
1033
|
+
entries: [
|
|
1034
|
+
{
|
|
1035
|
+
usage: 'wake list <agent> [--status open|pending|delivered|acknowledged|refused|expired]',
|
|
1036
|
+
summary: "List an agent's wakes (any agent, with or without an account), newest first; --status open is the agent's queue, oldest first",
|
|
1037
|
+
notes: ['[--limit <number>] [--cursor <cursor>] [--passport-stdin] (run as the agent, with its Passport on stdin)'],
|
|
1038
|
+
},
|
|
1039
|
+
{ usage: 'wake get <agent> <wake-id>', summary: 'Read one wake', notes: ['[--passport-stdin]'] },
|
|
1040
|
+
{ usage: 'wake ack <agent> <wake-id>', summary: 'The agent has picked a delivered wake up', notes: ['[--passport-stdin]'] },
|
|
1041
|
+
{
|
|
1042
|
+
usage: 'wake settings get [<agent>]',
|
|
1043
|
+
summary: "Read one agent's wake settings and what is in force, or (without an agent) your defaults",
|
|
1044
|
+
notes: ['(every wake settings, rules and schedules command needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
usage: 'wake settings set [<agent>]',
|
|
1048
|
+
summary: 'Change wake settings for one agent or, without an agent, for all of them; a first webhook address prints its signing secret once',
|
|
1049
|
+
notes: [
|
|
1050
|
+
'[--file <settings.json>] [--time-zone <zone|none>] [--quiet <HH:MM-HH:MM|none>] [--quiet-mode hold|drop]',
|
|
1051
|
+
'[--rate-limit <number>] [--rate-window <seconds>] [--delivery <mcp,webhook,mission|default>] [--invite-lead <minutes>]',
|
|
1052
|
+
'[--webhook-url <https url|none>] [--enable | --disable] [--ring-incoming-calls | --no-ring-incoming-calls]',
|
|
1053
|
+
'(store the secret when it is printed: it is not shown again)',
|
|
1054
|
+
],
|
|
1055
|
+
},
|
|
1056
|
+
{ usage: 'wake rules [<agent>]', summary: "List one agent's wake rules or, without an agent, your default rules" },
|
|
1057
|
+
{
|
|
1058
|
+
usage: 'wake rule-add [<agent>] --name <name> --source <source>',
|
|
1059
|
+
summary: 'Add a rule: which event wakes the agent and with what task (mail, texts, Telegram messages, voicemail, calls and payments wake nobody without one)',
|
|
1060
|
+
notes: ['sources: email, sms, voicemail, call, incoming_call, payment, post, invite, schedule, handoff, decision, meeting, service_event, telegram', '[--task <text>] [--from <a@b.example,@domain.example,+15550100,telegram:name>] [--min-amount-cents <number>] [--disabled] [--file <rule.json>]'],
|
|
1061
|
+
},
|
|
1062
|
+
{ usage: 'wake rule-update <rule-id> --name <name> --source <source>', summary: 'Replace a rule', notes: ['(same options as rule-add)'] },
|
|
1063
|
+
{ usage: 'wake rule-delete <rule-id>', summary: 'Remove a rule' },
|
|
1064
|
+
{ usage: 'wake schedules <agent>', summary: "List an agent's schedules, with their next fire" },
|
|
1065
|
+
{
|
|
1066
|
+
usage: 'wake schedule-add <agent> --name <name> --cron <expression> --task <text>',
|
|
1067
|
+
summary: "Wake the agent on a cron schedule, five fields, in its time zone; no more often than every 5 minutes",
|
|
1068
|
+
notes: ['[--time-zone <zone|none>] [--disabled] [--file <schedule.json>]'],
|
|
1069
|
+
},
|
|
1070
|
+
{ usage: 'wake schedule-update <agent> <schedule-id> --name <name> --cron <expression> --task <text>', summary: 'Replace a schedule' },
|
|
1071
|
+
{ usage: 'wake schedule-delete <agent> <schedule-id>', summary: 'Remove a schedule' },
|
|
1072
|
+
{
|
|
1073
|
+
usage: 'wake rotate-secret <agent>',
|
|
1074
|
+
summary: "Replace the agent's webhook signing secret and print the new one once; the old one works for 24 hours more",
|
|
1075
|
+
notes: ['(store the secret when it is printed: it is not shown again)'],
|
|
1076
|
+
},
|
|
1077
|
+
{ usage: 'wake test-webhook <agent>', summary: "Send a signed test to the agent's webhook; nothing is waking the agent" },
|
|
1078
|
+
],
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
title: 'Calendar',
|
|
1082
|
+
entries: [
|
|
1083
|
+
{
|
|
1084
|
+
usage: 'calendar events <account> [--role organizer|attendee] [--response pending|accepted|tentative|declined]',
|
|
1085
|
+
summary: "List the events on an agent's calendar, soonest first: its own and the invites sent to its address",
|
|
1086
|
+
notes: ['[--limit <number>] [--cursor <cursor>] [--passport-stdin]'],
|
|
1087
|
+
},
|
|
1088
|
+
{ usage: 'calendar get <account> <event-id>', summary: 'Read one event: its times, repeat rule, guests and their answers, proposals, meeting room', notes: ['[--passport-stdin]'] },
|
|
1089
|
+
{
|
|
1090
|
+
usage: 'calendar agenda <account> --from <date|time> --to <date|time> [--tz <zone>]',
|
|
1091
|
+
summary: 'Every occurrence in a range, repeats expanded, changed and cancelled occurrences applied',
|
|
1092
|
+
notes: ['[--limit <number>] [--cursor <cursor>] [--passport-stdin]'],
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
usage: 'calendar create <account> --title <text> --start <time> [--end <time>] [--tz <zone>] [--repeat <rrule>] [--guests a@x,b@y]',
|
|
1096
|
+
summary: 'Make an event (one action); each guest is mailed the invite from the account\'s address',
|
|
1097
|
+
notes: ['[--except <times>] [--also <times>] [--location <text>] [--link <url>] [--description <text>] [--wake <minutes>] [--meeting] [--attend] [--max-seconds <n>] [--meeting-voice <name>] [--meeting-language <code>] [--passport-stdin]', '(--meeting makes a video room whose link goes in the invite; --attend has STACK\'s meeting worker join it as the agent at each start; the customer\'s controls are asked once, and a refusal makes the event without attend)'],
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
usage: 'calendar update <account> <event-id> [--title ...] [--start ...] [--occurrence <time>] [--scope series|occurrence|following]',
|
|
1101
|
+
summary: 'Change an event, one occurrence of it, or it and the following (one action); the guests get the update',
|
|
1102
|
+
notes: ['[--end <time>|--no-end] [--tz <zone>] [--repeat <rrule>|--no-repeat] [--guests ...] [--meeting|--no-meeting] [--attend|--no-attend] [--meeting-voice <name>] [--meeting-language <code>] [--no-meeting-voice] [--counter <proposal-id>] [--passport-stdin]'],
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
usage: 'calendar cancel <account> <event-id> [--occurrence <time>] [--scope series|occurrence|following]',
|
|
1106
|
+
summary: 'Cancel an event, one occurrence, or it and the following (one action); the guests are mailed the cancellation',
|
|
1107
|
+
notes: ['[--passport-stdin]'],
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
usage: 'calendar respond <account> <event-id> accept|tentative|decline',
|
|
1111
|
+
summary: 'Answer an invite; it mails the organizer a calendar reply from the account\'s address (one action) unless --no-notify, and an accepted invite wakes the agent before each occurrence',
|
|
1112
|
+
notes: ['[--no-notify] [--passport-stdin]'],
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
usage: 'calendar decline-proposal <account> <event-id> <proposal-id> [--comment <text>]',
|
|
1116
|
+
summary: "Turn down a guest's proposed other time; accept one by updating the event with --counter",
|
|
1117
|
+
notes: ['[--passport-stdin]'],
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
usage: 'calendar feed <account> [--rotate | --revoke]',
|
|
1121
|
+
summary: 'Whether the private read-only calendar feed exists; --rotate makes it or gives it a new URL (shown once), --revoke ends it',
|
|
1122
|
+
notes: ['(whoever holds the URL sees every event and the guests\' addresses until it is rotated or ended)'],
|
|
1123
|
+
},
|
|
1124
|
+
],
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
title: 'Paying an x402 seller',
|
|
1128
|
+
entries: [
|
|
1129
|
+
{
|
|
1130
|
+
usage: 'pay <account> <url> --passport-stdin',
|
|
1131
|
+
summary: "Buy from an x402 seller in one step: asks the URL, pays the 402 from the account's wallet through STACK (the wallet's caps, the budget and your controls) and asks again; what was bought goes to stdout, the payment to stderr (one action)",
|
|
1132
|
+
notes: [
|
|
1133
|
+
'[--wallet-key-file <path>] [--max-cents <n>] [--method <m>] [--header "Name: value"]... [--data <text>] [--out <file>]',
|
|
1134
|
+
"(the agent's wallet key comes from --wallet-key-file or STACK_AGENT_WALLET_KEY, never argv, and is never printed; only USDC on Base with x402's exact scheme, over https)",
|
|
1135
|
+
],
|
|
1136
|
+
},
|
|
1137
|
+
],
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
title: 'RentAHuman',
|
|
1141
|
+
entries: [
|
|
1142
|
+
{
|
|
1143
|
+
usage: 'rentahuman join <account> --country <country> --accept-terms',
|
|
1144
|
+
summary: "Step one of opening a RentAHuman account for the customer: asks RentAHuman what it costs and prints the payment for the agent's wallet to sign; nothing is taken (one action)",
|
|
1145
|
+
notes: ['[--city <city>] [--agent-name <name>] [--passport-stdin]', "(--accept-terms is the customer accepting RentAHuman's terms through its agent; the agent signs the payment with its own wallet key, which this command never holds)"],
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
usage: 'rentahuman join-complete <account> <join-id> --signed <signature> --passport-stdin',
|
|
1149
|
+
summary: "Step two: sends the agent's signature; the payment goes through the wallet's caps and the customer's decider, and RentAHuman's key is kept in the vault and never shown",
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
usage: 'rentahuman fund <account> <cents>',
|
|
1153
|
+
summary: "Step one of topping up the customer's RentAHuman wallet from the agent's wallet: prints the payment to sign (one action)",
|
|
1154
|
+
notes: ['[--passport-stdin]'],
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
usage: 'rentahuman fund-complete <account> <fund-id> --signed <signature> --passport-stdin',
|
|
1158
|
+
summary: "Step two of a top-up: sends the agent's signature",
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
usage: 'rentahuman get <account>',
|
|
1162
|
+
summary: "The customer's RentAHuman connection and whether its events are registered; it shows no key",
|
|
1163
|
+
notes: ['[--passport-stdin]'],
|
|
1164
|
+
},
|
|
1165
|
+
],
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
title: 'Meetings',
|
|
1169
|
+
entries: [
|
|
1170
|
+
{
|
|
1171
|
+
usage: 'meeting join <account> <event-id> [--max-seconds <n>] [--wait <seconds>]',
|
|
1172
|
+
summary: "Put the agent in the room of one of its calendar events (made with --meeting): STACK's meeting worker joins under the agent's name, runs no model and says nothing of its own (one action)",
|
|
1173
|
+
notes: ['[--passport-stdin]', "(the first ten minutes are held on the account's credit, then each next ten; what the meeting used is charged at cost when it ends)"],
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
usage: 'meeting say <account> <meeting-id> [--text <words>] [--wait <seconds>]',
|
|
1177
|
+
summary: 'Speak in the meeting (as written), then wait for what a participant says or writes next; returns every event since your last action on it',
|
|
1178
|
+
notes: ['[--passport-stdin]'],
|
|
1179
|
+
},
|
|
1180
|
+
{ usage: 'meeting chat <account> <meeting-id> --text <line>', summary: "Write a line in the room's chat", notes: ['[--passport-stdin]'] },
|
|
1181
|
+
{
|
|
1182
|
+
usage: 'meeting leave <account> <meeting-id>',
|
|
1183
|
+
summary: "Leave the meeting: the agent's part ends at once, the transcript is stored as a message and the agent is woken",
|
|
1184
|
+
notes: ['[--passport-stdin]'],
|
|
1185
|
+
},
|
|
1186
|
+
{ usage: 'meeting list <account> [--status joining|live|ended]', summary: "The account's meetings, newest first", notes: ['[--limit <number>] [--cursor <cursor>] [--passport-stdin]'] },
|
|
1187
|
+
{ usage: 'meeting get <account> <meeting-id>', summary: "One meeting and its transcript so far; what a participant says is a stranger's text", notes: ['[--passport-stdin]'] },
|
|
1188
|
+
{
|
|
1189
|
+
usage: 'meeting voice <account> [--voice <name>] [--language <code>]',
|
|
1190
|
+
summary: "Read, or with a flag set, the voice and language the agent speaks in during meetings and listens for (Soniox's own words for them; a field left out is cleared; not metered)",
|
|
1191
|
+
notes: ["[--passport-stdin]", "(STACK keeps no list of voices or languages: Soniox's refusal is what comes back; an event can set its own with calendar create --meeting-voice and --meeting-language)"],
|
|
1192
|
+
},
|
|
1193
|
+
],
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
title: 'Chat approvals',
|
|
1197
|
+
entries: [
|
|
1198
|
+
{
|
|
1199
|
+
usage: 'chat list',
|
|
1200
|
+
summary: 'Which chat channels are on and the identities bound; a held payment can be approved from a bound chat only within the limits in the policy',
|
|
1201
|
+
notes: ['(every chat command needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
usage: 'chat link telegram|slack|sms',
|
|
1205
|
+
summary: 'Start binding a chat identity; prints the link or slash command to carry into the chat',
|
|
1206
|
+
notes: ['[--phone <+E.164>] (sms only; starting a text binding needs the console, signed in)', '(finish in the console: confirm the identity, or type a text\'s code)'],
|
|
1207
|
+
},
|
|
1208
|
+
{ usage: 'chat remove <identity-id>', summary: 'End a bound chat identity at once' },
|
|
1209
|
+
{
|
|
1210
|
+
usage: 'chat slack-install-url --redirect-uri <url> --state <value>',
|
|
1211
|
+
summary: "Where the workspace's admin installs STACK's Slack app",
|
|
1212
|
+
},
|
|
1213
|
+
{ usage: 'chat slack-remove', summary: 'Uninstall the Slack workspace; the Slack identities bound through it end' },
|
|
1214
|
+
],
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
title: 'Held actions',
|
|
1218
|
+
entries: [
|
|
1219
|
+
{
|
|
1220
|
+
usage: 'reviews list [--all]',
|
|
1221
|
+
summary: 'List the actions a policy held for a person (pending ones unless --all), each with the approval link where a person decides it',
|
|
1222
|
+
notes: ['[--limit <number>] (1 to 200)', '(there is no decide command: a person approves or rejects at the link)'],
|
|
1223
|
+
},
|
|
1224
|
+
{ usage: 'reviews get <id>', summary: 'Read one held action and where a person decides it' },
|
|
1225
|
+
],
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
title: 'Intents',
|
|
1229
|
+
entries: [
|
|
1230
|
+
{ usage: 'intents simulate --intent-json <path>', summary: 'Dry-run an Intent' },
|
|
1231
|
+
{ usage: 'intents submit --intent-json <path>', summary: 'Submit for approval' },
|
|
1232
|
+
{
|
|
1233
|
+
usage: 'intents submit-and-wait --intent-json <path>',
|
|
1234
|
+
summary: 'Submit for approval and wait for the decision',
|
|
1235
|
+
notes: ['[--timeout 60] [--interval 1] [--expires 900] [--skip-simulation]'],
|
|
1236
|
+
},
|
|
1237
|
+
{ usage: 'intents pending', summary: 'List pending approvals' },
|
|
1238
|
+
{ usage: 'intents get <approval-id>', summary: 'Show one approval row (any status)' },
|
|
1239
|
+
{ usage: 'intents approve <approval-id> [--notes "..."]', summary: 'Approve an Intent' },
|
|
1240
|
+
{
|
|
1241
|
+
usage: 'intents reject <approval-id> [--notes "..."] [--block-future]',
|
|
1242
|
+
summary: 'Reject an Intent',
|
|
1243
|
+
},
|
|
1244
|
+
],
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
title: 'Authority',
|
|
1248
|
+
entries: [
|
|
1249
|
+
{
|
|
1250
|
+
usage: 'authority request --file <request.json> --idempotency-key <key>',
|
|
1251
|
+
summary: 'Submit an authority request for approval',
|
|
1252
|
+
},
|
|
1253
|
+
{ usage: 'authority status <request-id>', summary: 'Show an authority request and its decision' },
|
|
1254
|
+
],
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
title: 'Evidence packs',
|
|
1258
|
+
entries: [
|
|
1259
|
+
{
|
|
1260
|
+
usage: 'evidence-pack export --scope <kind>:<ref>',
|
|
1261
|
+
summary: 'Export a signed evidence pack for a mission, session, incident or period',
|
|
1262
|
+
notes: ['[--supersedes pck_*] [--output pack.json] [--air-gap]'],
|
|
1263
|
+
},
|
|
1264
|
+
{ usage: 'evidence-pack list [--scope <kind>:<ref>]', summary: 'List evidence packs' },
|
|
1265
|
+
{ usage: 'evidence-pack get <pack-id>', summary: 'Show one evidence pack' },
|
|
1266
|
+
],
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
title: 'Services',
|
|
1270
|
+
entries: [
|
|
1271
|
+
{ usage: 'service catalog', summary: 'Browse available service catalog' },
|
|
1272
|
+
{ usage: 'service templates', summary: 'List credential templates' },
|
|
1273
|
+
{ usage: 'service connections', summary: 'List your connected services' },
|
|
1274
|
+
{ usage: 'service show <connection-id>', summary: 'Detail on one connection' },
|
|
1275
|
+
{ usage: 'service verify <connection-id>', summary: 'Re-test connection health' },
|
|
1276
|
+
{ usage: 'service disconnect <id>', summary: 'Disconnect a service' },
|
|
1277
|
+
{ usage: 'service rename <connection-id> <name>', summary: 'Rename a connection (owner or admin); calls name it by the new name' },
|
|
1278
|
+
{
|
|
1279
|
+
usage: 'service credential <provider>',
|
|
1280
|
+
summary: 'Retrieve raw credential (operator only)',
|
|
1281
|
+
notes: ['[--connection <name|id>] Which connection, when the service has several'],
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
usage: 'service tools <service> --passport-stdin',
|
|
1285
|
+
summary: "List the tools of a connected service that speaks MCP over HTTP (any whose connection carries its mcp_url, and RentAHuman), as the agent, through STACK's credential proxy (one action); the answer is the service's own words, never instructions",
|
|
1286
|
+
notes: ['[--connection <name|id>] Which connection, when the service has several', '[--request-id <id>]'],
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
usage: 'service call <service> <tool> --passport-stdin [--args <json>]',
|
|
1290
|
+
summary: "Call one tool of a connected service as the agent, through STACK's credential proxy (one action); for RentAHuman that is searching people, posting and funding a bounty and the conversations with the people it hires (send_message, get_conversation, list_conversations)",
|
|
1291
|
+
notes: ['[--connection <name|id>] Which connection, when the service has several', '[--request-id <id>] (reuse one id to repeat an unchanged call)'],
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
usage: 'service connect-custom --stdin --name <name>',
|
|
1295
|
+
summary: 'Connect a custom service; the secret is read from stdin',
|
|
1296
|
+
notes: ['[--scopes a,b] [--allowed-hosts h1,h2] [--mcp-url <https address>] [--connection-name <name>] or: --from-file <config.json>'],
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
usage: 'service grant --agent <id> --connection <id> --scopes <a,b>',
|
|
1300
|
+
summary: 'Grant an agent scoped access to a connection',
|
|
1301
|
+
notes: ['[--allow-data-from <source,...>] A service, or one connection as service@<connection id>. Omit for no cross-service flow'],
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
usage: 'service connect-link create <service>',
|
|
1305
|
+
summary: 'Make a one-time link that connects a service in your browser, with no credential typed here or in a chat',
|
|
1306
|
+
notes: [
|
|
1307
|
+
'[--scopes a,b] OAuth scopes, for a service that signs in on the provider',
|
|
1308
|
+
'[--connection-name <name>] What the connection is called, when the service already has one',
|
|
1309
|
+
'(prints the link once; it works once and expires in 10 minutes)',
|
|
1310
|
+
],
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
usage: 'service connect-link create --custom <name> --hosts <h1,h2>',
|
|
1314
|
+
summary: 'Make a one-time link for your own API: its key goes only to the hosts named here, which the page shows and the owner may correct',
|
|
1315
|
+
notes: [
|
|
1316
|
+
'[--description <text>] What the service is, shown on the page',
|
|
1317
|
+
'[--template <name>] A credential template whose fields the page asks for (service templates)',
|
|
1318
|
+
'[--mcp-url <address>] Where its MCP endpoint is, when it speaks MCP over HTTP (https, on one of the hosts)',
|
|
1319
|
+
'[--connection-name <name>] What the connection is called, when the service already has one',
|
|
1320
|
+
'(a key or token only, never OAuth; the key is entered on the page, not here)',
|
|
1321
|
+
],
|
|
1322
|
+
},
|
|
1323
|
+
{ usage: 'service connect-link get <link-id>', summary: 'Read whether a connect link was used (pending, connected or expired) and the name its connection will get' },
|
|
1324
|
+
{ usage: 'service connect-link list', summary: 'List the connect links still waiting for you to finish them' },
|
|
1325
|
+
{ usage: 'service revoke-agent <agent-id>', summary: "Revoke an agent's service grants" },
|
|
1326
|
+
{ usage: 'service permissions <agent-id>', summary: "Show an agent's service permissions" },
|
|
1327
|
+
],
|
|
1328
|
+
footnote: 'When a governance change needs human approval, the CLI prints and opens the dashboard\n' +
|
|
1329
|
+
'request, waits for that decision, and retries the exact command once if approved.',
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
title: 'Approvals',
|
|
1333
|
+
entries: [
|
|
1334
|
+
{
|
|
1335
|
+
usage: 'approval show <approval-id>',
|
|
1336
|
+
summary: 'Read one governance approval: its status, the hash of the change it covers and its link',
|
|
1337
|
+
notes: ['(read only: a person decides in the dashboard)'],
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
usage: 'approval list [--status <status>] [--json]',
|
|
1341
|
+
summary: 'List the account\'s governance approvals, newest first; status is pending, approved, rejected, consumed or expired',
|
|
1342
|
+
notes: ['(read only: a person decides in the dashboard)'],
|
|
1343
|
+
},
|
|
1344
|
+
],
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
title: 'Drive',
|
|
1348
|
+
entries: [
|
|
1349
|
+
{
|
|
1350
|
+
usage: 'drive upload <file>',
|
|
1351
|
+
summary: "Store a file in the account's drive; an agent's file is private to it unless --account",
|
|
1352
|
+
notes: [
|
|
1353
|
+
'[--name <name>] [--type <media-type>] (a label: taken from the extension, else application/octet-stream) [--account | --private] [--expires <seconds>] [--passport-stdin]',
|
|
1354
|
+
'(a file of any type, stored as it is; 1 GB at most, 10 MB for a file typed as text, Markdown, CSV or JSON; every file is untrusted content)',
|
|
1355
|
+
'(the file is streamed from disk as one request, with progress on stderr; the API refuses it while the wallet cannot pay for storage past the free amount, DRIVE_READ_ONLY, and while the account already has as many uploads running as it may, DRIVE_TOO_MANY_UPLOADS)',
|
|
1356
|
+
],
|
|
1357
|
+
},
|
|
1358
|
+
{ usage: 'drive list [--limit <number>] [--cursor <cursor>]', summary: 'List the files you may see, with the account\'s usage' },
|
|
1359
|
+
{ usage: 'drive get <id>', summary: 'Read one file\'s facts' },
|
|
1360
|
+
{ usage: 'drive read <id>', summary: 'Read a file of 256 KB or less inline (untrusted content)' },
|
|
1361
|
+
{
|
|
1362
|
+
usage: 'drive update <id>',
|
|
1363
|
+
summary: 'Change who sees a file or when it ends',
|
|
1364
|
+
notes: ['[--account | --private] [--expires <seconds> | --no-expiry]'],
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
usage: 'drive copy <id>',
|
|
1368
|
+
summary: 'Copy a file into a new file of your own, which does not end',
|
|
1369
|
+
notes: ['[--name <name>] [--account | --private] [--expires <seconds>]'],
|
|
1370
|
+
},
|
|
1371
|
+
{ usage: 'drive delete <id>', summary: 'Delete a file and its bytes' },
|
|
1372
|
+
{
|
|
1373
|
+
usage: 'drive share <id> [--ttl <seconds>] [--max-downloads <number>]',
|
|
1374
|
+
summary: 'Make a signed download link, shown once; 100 downloads unless you name another number',
|
|
1375
|
+
},
|
|
1376
|
+
{ usage: 'drive links <id>', summary: 'List a file\'s links and their download counts' },
|
|
1377
|
+
{ usage: 'drive unshare <id> <link-id>', summary: 'End a link at once' },
|
|
1378
|
+
{
|
|
1379
|
+
usage: 'drive <command> --passport-stdin',
|
|
1380
|
+
summary: "Act as the account's agent: pipe its Passport on stdin or type it at the hidden prompt",
|
|
1381
|
+
notes: ['(an agent\'s Passport is never taken from a flag)'],
|
|
1382
|
+
},
|
|
1383
|
+
],
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
title: 'Memory',
|
|
1387
|
+
entries: [
|
|
1388
|
+
{
|
|
1389
|
+
usage: 'memory add <text> --name <name>',
|
|
1390
|
+
summary: "Add an episode to the account's memory (metered): answers at once with its uuid and status queued; episodes shows when it is stored",
|
|
1391
|
+
notes: [
|
|
1392
|
+
'[--file <path> | --text <text>] [--source text|json|message] [--source-description <d>] [--uuid <uuid>] [--at <iso>]',
|
|
1393
|
+
'[--exclude-type <t>]... [--instructions <t>] [--previous <episode-uuid>]... [--saga <name>] [--saga-previous <episode-uuid>] [--passport-stdin]',
|
|
1394
|
+
'(flagged text is refused when controls are on; with controls off it is stored with its flag)',
|
|
1395
|
+
],
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
usage: 'memory triplet --source <name> --edge <name> --fact <text> --target <name>',
|
|
1399
|
+
summary: 'Write one fact directly, without extraction (metered)',
|
|
1400
|
+
notes: ['[--source-uuid <uuid>] [--target-uuid <uuid>] [--passport-stdin]'],
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
usage: 'memory search-nodes <query>',
|
|
1404
|
+
summary: 'Search entities',
|
|
1405
|
+
notes: ['[--max <n>] [--type <entity-type>]... [--where <field>=<value>]... [--center <uuid>] [--passport-stdin]'],
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
usage: 'memory search-facts <query>',
|
|
1409
|
+
summary: 'Search facts, with when each held',
|
|
1410
|
+
notes: ['[--max <n>] [--center <uuid>] [--edge-type <t>]... [--valid-after <iso>] [--valid-before <iso>] [--invalid-after <iso>] [--invalid-before <iso>] [--passport-stdin]'],
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
usage: 'memory episodes',
|
|
1414
|
+
summary: 'Episodes, newest first, each with its status: stored, queued, processing or failed (with a reason)',
|
|
1415
|
+
notes: ['[--max <n>] [--passport-stdin]'],
|
|
1416
|
+
},
|
|
1417
|
+
{ usage: 'memory fact <uuid>', summary: 'Read one fact', notes: ['[--passport-stdin]'] },
|
|
1418
|
+
{ usage: 'memory episode-entities <episode-uuid>...', summary: 'The entities and facts the given episodes produced', notes: ['[--passport-stdin]'] },
|
|
1419
|
+
{ usage: 'memory delete-episode <uuid>', summary: 'Delete an episode; what only it supports goes with it', notes: ['[--passport-stdin]'] },
|
|
1420
|
+
{ usage: 'memory delete-fact <uuid>', summary: 'Delete one fact', notes: ['[--passport-stdin]'] },
|
|
1421
|
+
{ usage: 'memory summarize-saga <name>', summary: 'Summarize a saga, the name given as --saga to memory add (metered)', notes: ['[--passport-stdin]'] },
|
|
1422
|
+
{ usage: 'memory types', summary: "The entity types memory extracts: Graphiti's ten and the account's own", notes: ['[--passport-stdin]'] },
|
|
1423
|
+
{
|
|
1424
|
+
usage: 'memory type-add <name> --description <text>',
|
|
1425
|
+
summary: "Add an entity type of the account's own; later writes extract it beside the ten (free)",
|
|
1426
|
+
notes: ['[--field <name>:<kind>[:<word>,<word>]]... | [--fields-file <path>] [--passport-stdin]', '(kind is text, number, date, boolean or one_of)'],
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
usage: 'memory type-change <name>',
|
|
1430
|
+
summary: 'Change one of the account\'s entity types; later writes use it (free)',
|
|
1431
|
+
notes: ['[--description <text>] [--field <name>:<kind>[:<word>,<word>]]... | [--fields-file <path>] [--passport-stdin]'],
|
|
1432
|
+
},
|
|
1433
|
+
{ usage: 'memory type-retire <name>', summary: 'Retire a type: no longer extracted; its entities keep their label (free)', notes: ['[--passport-stdin]'] },
|
|
1434
|
+
{ usage: 'memory history', summary: "One page of the account's writes, newest first, each with what it changed: before and after; next_cursor in the answer is the --cursor of the next page", notes: ['[--max <n>] [--cursor <next_cursor>] [--passport-stdin]'] },
|
|
1435
|
+
{
|
|
1436
|
+
usage: 'memory undo <write-id>',
|
|
1437
|
+
summary: 'Undo a write, with every later write that changed the same things (free; one delete toward the hourly rate)',
|
|
1438
|
+
notes: ['[--dry-run] [--passport-stdin]', '(--dry-run only says what would be undone)'],
|
|
1439
|
+
},
|
|
1440
|
+
{ usage: 'memory settings', summary: 'Show the memory settings, or change them (owner or admin)', notes: ["[--enabled on|off] [--call-memory-access on|off] (whether STACK's model may search memory and the knowledge base during a call STACK holds; with it on, a caller can try to get the call's model to read out what is in memory or the brain)"] },
|
|
1441
|
+
{
|
|
1442
|
+
usage: 'memory <command> --passport-stdin',
|
|
1443
|
+
summary: "Act as the account's agent: pipe its Passport on stdin or type it at the hidden prompt",
|
|
1444
|
+
notes: ["(an agent's Passport is never taken from a flag)"],
|
|
1445
|
+
},
|
|
1446
|
+
],
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
title: 'Brain',
|
|
1450
|
+
entries: [
|
|
1451
|
+
{
|
|
1452
|
+
usage: 'brain add <file-id>... | --prefix <name-prefix>',
|
|
1453
|
+
summary: "Make drive files searchable (metered): one row per file with its status and an estimate of the pages reading it bills (the first pages each month free)",
|
|
1454
|
+
notes: ['[--passport-stdin]', '(reading is the only cost; the pages and cost are estimated from each file\'s size and type, and the real ones are counted when the file is read; name one file id, several, or every file whose name starts with --prefix)'],
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
usage: 'brain remove <file-id>... | --prefix <name-prefix>',
|
|
1458
|
+
summary: 'Take files out of the brain; they stay in the drive, only no longer searchable (free)',
|
|
1459
|
+
notes: ['[--passport-stdin]'],
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
usage: 'brain search <query>',
|
|
1463
|
+
summary: 'Ask the brain a question and get the passages that answer it, each with its file and page (free; every passage is untrusted content)',
|
|
1464
|
+
notes: ['[--passport-stdin]'],
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
usage: 'brain list',
|
|
1468
|
+
summary: "The files in the brain the caller may see, each with its state, and the month's usage (free)",
|
|
1469
|
+
notes: ['[--status reading|searchable|unreadable] [--cursor <c>] [--limit <n>] [--passport-stdin]'],
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
usage: 'brain <command> --passport-stdin',
|
|
1473
|
+
summary: "Act as the account's agent: pipe its Passport on stdin or type it at the hidden prompt",
|
|
1474
|
+
notes: ["(an agent's Passport is never taken from a flag)"],
|
|
1475
|
+
},
|
|
1476
|
+
],
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
title: 'Drop-offs',
|
|
1480
|
+
entries: [
|
|
1481
|
+
{ usage: 'dropoff list', summary: 'List your drop-offs' },
|
|
1482
|
+
{ usage: 'dropoff show <id>', summary: 'Detail on one drop-off' },
|
|
1483
|
+
{
|
|
1484
|
+
usage: 'dropoff create --from <a> --to <b>[,<c>...] --schema <f>',
|
|
1485
|
+
summary: 'Create a drop-off for one agent, or for a group: every agent named is woken and the first to collect takes it',
|
|
1486
|
+
notes: ['[--ttl <seconds>] [--on-expire notify|retry|fail]'],
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
usage: 'dropoff deposit <id> --agent <a> --payload <f>',
|
|
1490
|
+
summary: 'Deposit a payload into a drop-off',
|
|
1491
|
+
notes: ['[--passport-jti <jti>] [--mission <id>] [--drive-files <id,id>] (drive files the collector can read once it collects)'],
|
|
1492
|
+
},
|
|
1493
|
+
{ usage: 'dropoff collect <id> --agent <a>', summary: 'Collect a payload from a drop-off, and the drive files handed over with it' },
|
|
1494
|
+
{ usage: 'dropoff expire <id>', summary: 'Force-expire a drop-off' },
|
|
1495
|
+
],
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
title: 'Skills',
|
|
1499
|
+
entries: [
|
|
1500
|
+
{ usage: 'skill list [--q "..."]', summary: 'Browse the skills marketplace' },
|
|
1501
|
+
{ usage: 'skill mine', summary: 'List your own published skills' },
|
|
1502
|
+
{ usage: 'skill show <id>', summary: 'Detail on one skill' },
|
|
1503
|
+
{ usage: 'skill publish --file <skill.json>', summary: 'Publish a skill from a JSON spec' },
|
|
1504
|
+
{ usage: "skill invoke <id> --agent <a> --input '{...}'", summary: 'Invoke a skill' },
|
|
1505
|
+
{ usage: 'skill suspend <id>', summary: 'Suspend a published skill' },
|
|
1506
|
+
{ usage: 'skill activate <id>', summary: 'Re-activate a suspended skill' },
|
|
1507
|
+
{ usage: 'skill allow <id> --agent <a>', summary: 'Allow an agent to use a skill' },
|
|
1508
|
+
{ usage: 'skill disallow <id> --agent <a>', summary: 'Stop an agent from using a skill' },
|
|
1509
|
+
{ usage: 'skill favorites', summary: 'List your favourite skills' },
|
|
1510
|
+
{ usage: 'skill invocations', summary: 'List pending skill invocations' },
|
|
1511
|
+
{ usage: 'skill check-invocation <id>', summary: 'Show one skill invocation' },
|
|
1512
|
+
{
|
|
1513
|
+
usage: 'skill complete <id> --output-file <result.json>',
|
|
1514
|
+
summary: 'Complete a skill invocation with its output',
|
|
1515
|
+
},
|
|
1516
|
+
{ usage: 'skill check-trust <skill-id>', summary: 'Check the trust level of a skill' },
|
|
1517
|
+
{ usage: 'skill requests', summary: 'List skill requests' },
|
|
1518
|
+
{ usage: 'skill post-request "<desc>"', summary: 'Post a new skill request' },
|
|
1519
|
+
{
|
|
1520
|
+
usage: 'skill matches <request-id>',
|
|
1521
|
+
summary: 'Find skills matching a request',
|
|
1522
|
+
notes: ['or: --description "<what you want to do>"'],
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
usage: 'skill suggest <request-id>',
|
|
1526
|
+
summary: 'Suggest a skill composition for a request',
|
|
1527
|
+
notes: ['or: --description "<what you want to do>"'],
|
|
1528
|
+
},
|
|
1529
|
+
{ usage: 'skill pending-reviews', summary: 'List skills awaiting review (platform staff)' },
|
|
1530
|
+
{ usage: 'skill approve <skill-id>', summary: 'Approve a skill (platform staff)' },
|
|
1531
|
+
{ usage: 'skill reject <skill-id> [--reason "..."]', summary: 'Reject a skill (platform staff)' },
|
|
1532
|
+
],
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
title: 'Scan',
|
|
1536
|
+
entries: [
|
|
1537
|
+
{
|
|
1538
|
+
usage: 'scan "<content>" | --file <path>',
|
|
1539
|
+
summary: 'Scan content for prompt injection',
|
|
1540
|
+
},
|
|
1541
|
+
{ usage: 'scan usage', summary: "This month's scan usage against the included actions" },
|
|
1542
|
+
],
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
title: 'LLM',
|
|
1546
|
+
entries: [
|
|
1547
|
+
{
|
|
1548
|
+
usage: 'llm usage list',
|
|
1549
|
+
summary: 'List per-call LLM usage records (cursor-paginated)',
|
|
1550
|
+
notes: ['[--limit] [--cursor] [--provider] [--passport-jti] [--mission-id] [--agent-id] [--since] [--until]'],
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
usage: 'llm usage summary',
|
|
1554
|
+
summary: 'Group-by aggregate (provider [+ model] + day)',
|
|
1555
|
+
notes: ["same filters as 'list', plus [--no-group-by-model]"],
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
usage: "llm anthropic messages '<body-json>' [--stream]",
|
|
1559
|
+
summary: 'Governed Anthropic call; reads the passport token from stdin or a hidden prompt',
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
usage: "llm openai chat-completions '<body-json>' [--stream]",
|
|
1563
|
+
summary: 'Governed OpenAI call; reads the passport token from stdin or a hidden prompt',
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
usage: "llm openrouter chat-completions '<body-json>' [--stream]",
|
|
1567
|
+
summary: 'Governed OpenRouter call; reads the passport token from stdin or a hidden prompt',
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
usage: "llm openai images '<body-json>'",
|
|
1571
|
+
summary: 'An image on your own OpenAI key, through the same gates; files go to the agent drive, marked untrusted',
|
|
1572
|
+
},
|
|
1573
|
+
],
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
title: 'Identity',
|
|
1577
|
+
entries: [
|
|
1578
|
+
{ usage: 'identity settings', summary: 'Get operator identity settings' },
|
|
1579
|
+
{
|
|
1580
|
+
usage: 'identity update-settings',
|
|
1581
|
+
summary: 'Update operator identity settings',
|
|
1582
|
+
notes: ['[--inheritance auto|opt_in] [--ttl 30d|90d|180d|1y] [--auto-revoke true|false]'],
|
|
1583
|
+
},
|
|
1584
|
+
{ usage: 'identity providers', summary: 'List identity-verification providers' },
|
|
1585
|
+
{ usage: 'identity claims', summary: 'List your verified identity claims' },
|
|
1586
|
+
{ usage: 'identity session <session-id>', summary: 'Show one identity verification session: pending, completed, failed or expired' },
|
|
1587
|
+
{ usage: 'identity revoke-claim <id>', summary: 'Revoke an identity claim' },
|
|
1588
|
+
{
|
|
1589
|
+
usage: 'identity oidc <status|create|update|test|delete>',
|
|
1590
|
+
summary: 'Manage the operator OIDC identity configuration',
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
usage: 'identity sso-domains <list|add|verify|remove> [<domain>|<domain-id>]',
|
|
1594
|
+
summary: 'Prove an e-mail domain for single sign-on with a DNS TXT record, so addresses at it count as verified when your provider (Microsoft Entra ID, for one) does not say',
|
|
1595
|
+
notes: ['(add prints the record to publish; verify looks it up now; adding a domain is approved by a person in a browser; owner or admin only)'],
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
usage: 'identity spiffe <list|get|create|update|delete>',
|
|
1599
|
+
summary: 'Manage SPIFFE trust domains',
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
usage: 'identity wimse <list|get|create|update|delete>',
|
|
1603
|
+
summary: 'Manage WIMSE issuers',
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
usage: 'identity requirements <list|create|replace|clear|delete> <service-id>',
|
|
1607
|
+
summary: 'Manage the identity requirements of a service',
|
|
1608
|
+
},
|
|
1609
|
+
],
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
title: 'Audit',
|
|
1613
|
+
entries: [
|
|
1614
|
+
{ usage: 'audit list [--limit N] [--agent <id>]', summary: 'List audit entries' },
|
|
1615
|
+
{
|
|
1616
|
+
usage: 'audit export',
|
|
1617
|
+
summary: 'Export the audit log',
|
|
1618
|
+
notes: ['[--format json|ndjson|csv] [--from ...] [--to ...] [--out <file>]'],
|
|
1619
|
+
},
|
|
1620
|
+
{ usage: 'audit chain-head', summary: 'Current audit-chain head hash' },
|
|
1621
|
+
{ usage: 'audit verify-chain', summary: 'Verify your audit chain integrity' },
|
|
1622
|
+
],
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
title: 'PII redaction',
|
|
1626
|
+
entries: [
|
|
1627
|
+
{ usage: 'pii show', summary: 'Threshold + country scope in force' },
|
|
1628
|
+
{ usage: 'pii set --countries SE,NO,DK', summary: "Only run these countries' schemes" },
|
|
1629
|
+
{
|
|
1630
|
+
usage: 'pii set --threshold 0.2',
|
|
1631
|
+
summary: 'Confidence to redact (higher redacts less)',
|
|
1632
|
+
},
|
|
1633
|
+
{ usage: 'pii reset', summary: 'Back to built-in defaults' },
|
|
1634
|
+
],
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
title: 'Detectors',
|
|
1638
|
+
entries: [
|
|
1639
|
+
{ usage: 'detector list', summary: 'List detectors and their configuration' },
|
|
1640
|
+
{ usage: 'detector show <detector-key>', summary: 'Show one detector configuration' },
|
|
1641
|
+
{ usage: 'detector enable <detector-key>', summary: 'Enable a detector' },
|
|
1642
|
+
{ usage: 'detector disable <detector-key>', summary: 'Disable a detector' },
|
|
1643
|
+
{
|
|
1644
|
+
usage: 'detector configure <detector-key> --from-file <config.json>',
|
|
1645
|
+
summary: 'Replace a detector configuration',
|
|
1646
|
+
},
|
|
1647
|
+
{ usage: 'detector reset <detector-key>', summary: 'Back to the built-in defaults' },
|
|
1648
|
+
],
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
title: 'Trust',
|
|
1652
|
+
entries: [
|
|
1653
|
+
{ usage: 'trust get [<agent>]', summary: "Whether the account's agents ask first or are trusted to act: the account's value, or one agent's over it" },
|
|
1654
|
+
{
|
|
1655
|
+
usage: 'trust set <ask_first|trust_agents> [<agent>]',
|
|
1656
|
+
summary: 'Ask first, or trust the agents (nothing waits for a person on card purchases, orders on your own supplier account and governance changes made with your own key); for the account or one agent',
|
|
1657
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
1658
|
+
},
|
|
1659
|
+
{ usage: 'trust clear <agent>', summary: "Remove an agent's own value so it follows the account again" },
|
|
1660
|
+
],
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
title: 'Message access',
|
|
1664
|
+
entries: [
|
|
1665
|
+
{ usage: 'message-access get [<agent>]', summary: "What the account's agents may do with the customer's messages: the account's values, or one agent's over them" },
|
|
1666
|
+
{
|
|
1667
|
+
usage: 'message-access set [--read-teammates true|false] [--read-only true|false] [<agent>]',
|
|
1668
|
+
summary: 'Whether agents read the messages of every message account of the customer (read-teammates, default true) or only their own, and whether they may only read (read-only, default false: true means no sending, replying, forwarding, texting or posting from any account); for the account or one agent',
|
|
1669
|
+
notes: ['(owner or admin, an agent is refused; applies at once with no approval; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
1670
|
+
},
|
|
1671
|
+
{ usage: 'message-access clear <agent> <read-teammates|read-only>...', summary: 'Remove the values an agent set for itself so it follows the account again' },
|
|
1672
|
+
],
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
title: 'Messages',
|
|
1676
|
+
entries: [
|
|
1677
|
+
{
|
|
1678
|
+
usage: 'messages search',
|
|
1679
|
+
summary: "Search every message you may read across the customer's message accounts and channels, newest first, without the bodies (read one with account messages)",
|
|
1680
|
+
notes: [
|
|
1681
|
+
'[--agent <agent>] [--channel email|sms|voicemail|call|telegram|post|meeting] [--sender <address>] [--recipient <address>] [--thread <id>] [--q "<text>"] [--after <datetime>] [--before <datetime>] [--limit <1-50>] [--cursor <cursor>]',
|
|
1682
|
+
'(datetimes are ISO 8601 with an offset; the window is the last 30 days, and a search on --q, --sender, --recipient or --thread needs a window of at most 90 days)',
|
|
1683
|
+
],
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
usage: 'messages attachment <account> <message> <file>',
|
|
1687
|
+
summary: 'Read a file a message carries, through the message: 256 KB or less inline (untrusted content)',
|
|
1688
|
+
},
|
|
1689
|
+
],
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
title: 'Flagged content',
|
|
1693
|
+
entries: [
|
|
1694
|
+
{ usage: 'flagged-content get', summary: 'What controls do with flagged content, per severity, and whether controls are on' },
|
|
1695
|
+
{
|
|
1696
|
+
usage: 'flagged-content set [--warning withhold|deliver] [--critical withhold|deliver]',
|
|
1697
|
+
summary: 'Withhold flagged content from the agent or deliver it with its flag; applies while controls are on',
|
|
1698
|
+
notes: ['(owner or admin; needs the accounts:manage scope, which the default login leaves out: add it to STACK_OAUTH_SCOPE)'],
|
|
1699
|
+
},
|
|
1700
|
+
],
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
title: 'Security events',
|
|
1704
|
+
entries: [
|
|
1705
|
+
{ usage: 'event list [--agent <id>]', summary: 'List security events' },
|
|
1706
|
+
{ usage: 'event show <id>', summary: 'Detail on one security event' },
|
|
1707
|
+
{ usage: 'event resolve <id>', summary: 'Mark a security event resolved' },
|
|
1708
|
+
],
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
title: 'Notifications',
|
|
1712
|
+
entries: [
|
|
1713
|
+
{ usage: 'notifications methods list', summary: 'List delivery methods' },
|
|
1714
|
+
{
|
|
1715
|
+
usage: 'notifications methods add --kind <k> --destination <addr>',
|
|
1716
|
+
summary: 'Add a delivery method (kind: email, sms or webhook)',
|
|
1717
|
+
},
|
|
1718
|
+
{ usage: 'notifications methods test <id>', summary: 'Send a test notification' },
|
|
1719
|
+
{ usage: 'notifications methods send-code <id>', summary: 'Send a verification code' },
|
|
1720
|
+
{
|
|
1721
|
+
usage: 'notifications methods verify <id> --code <code>',
|
|
1722
|
+
summary: 'Verify a delivery method with its code',
|
|
1723
|
+
},
|
|
1724
|
+
{ usage: 'notifications methods delete <id>', summary: 'Delete a delivery method' },
|
|
1725
|
+
{ usage: 'notifications rules list', summary: 'List notification rules' },
|
|
1726
|
+
{
|
|
1727
|
+
usage: 'notifications rules create --method <id> --events <e1,e2>',
|
|
1728
|
+
summary: 'Create a notification rule',
|
|
1729
|
+
notes: ['or: --methods <id1,id2> [--min-severity info|warning|critical]'],
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
usage: 'notifications rules update <id>',
|
|
1733
|
+
summary: 'Update a notification rule',
|
|
1734
|
+
notes: ['[--events e1,e2] [--min-severity info|warning|critical] [--methods id1,id2]'],
|
|
1735
|
+
},
|
|
1736
|
+
{ usage: 'notifications rules delete <id>', summary: 'Delete a notification rule' },
|
|
1737
|
+
],
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
title: 'Inbound webhooks',
|
|
1741
|
+
entries: [
|
|
1742
|
+
{
|
|
1743
|
+
usage: 'inbound-webhook create --provider <agentmail|generic> --agent <agt_*>',
|
|
1744
|
+
summary: 'Create an inbound webhook (returns the URL and the plaintext secret)',
|
|
1745
|
+
notes: ['[--forward-url <https://...>] log-only if omitted'],
|
|
1746
|
+
},
|
|
1747
|
+
{ usage: 'inbound-webhook list', summary: 'List all inbound webhooks' },
|
|
1748
|
+
{ usage: 'inbound-webhook get --id <iwh_*>', summary: 'Show one inbound webhook' },
|
|
1749
|
+
{ usage: 'inbound-webhook revoke --id <iwh_*>', summary: 'Revoke an inbound webhook' },
|
|
1750
|
+
{ usage: 'inbound-webhook rotate-secret --id <iwh_*>', summary: 'Issue a new signing secret (printed once); the old one keeps signing for 24 hours' },
|
|
1751
|
+
],
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
title: 'Partners',
|
|
1755
|
+
entries: [
|
|
1756
|
+
{
|
|
1757
|
+
usage: 'partner account create --ref <your-reference> [--controls]',
|
|
1758
|
+
summary: 'Open an account for a customer under your own reference (paid from your wallet; idempotent); --controls switches its hosted controls on',
|
|
1759
|
+
},
|
|
1760
|
+
{ usage: 'partner account list', summary: 'List your accounts with month-to-date usage', notes: ['[--ref <your-reference>]'] },
|
|
1761
|
+
{ usage: 'partner account get <id>', summary: 'Show one account' },
|
|
1762
|
+
{
|
|
1763
|
+
usage: 'partner account revoke <id>',
|
|
1764
|
+
summary: 'Close an account, its webhooks and its passports',
|
|
1765
|
+
},
|
|
1766
|
+
{ usage: 'partner account rotate-key <id>', summary: "Replace an account's API key (printed once)" },
|
|
1767
|
+
{
|
|
1768
|
+
usage: 'partner account invite <id> --email <email>',
|
|
1769
|
+
summary: 'Invite the customer to see the account, read-only',
|
|
1770
|
+
notes: ['[--name <name>]'],
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
usage: 'partner account controls <id> --on|--off',
|
|
1774
|
+
summary: "Switch hosted controls on or off for one account (paid from your wallet while on)",
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
usage: 'partner account release <id>',
|
|
1778
|
+
summary: 'Release the account to its customer: they are mailed a claim link',
|
|
1779
|
+
notes: ['[--email <email>] defaults to the one customer invited', '[--cancel] withdraw a release the customer has not claimed', '[--status] where the release stands'],
|
|
1780
|
+
},
|
|
1781
|
+
{ usage: 'partner releases', summary: 'List the releases you have a record of' },
|
|
1782
|
+
{
|
|
1783
|
+
usage: 'partner account webhook --account <op_*> --provider <p> --agent <agt_*>',
|
|
1784
|
+
summary: 'Provision an inbound webhook under an account',
|
|
1785
|
+
notes: ['[--forward-url <https://...>]'],
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
usage: 'partner account issue-passport --account <op_*> --agent <agt_*> --mission <ms_*>',
|
|
1789
|
+
summary: 'Issue a passport for an agent under an account',
|
|
1790
|
+
notes: ['[--intent "<summary>"] [--services a,b] [--ttl 900]'],
|
|
1791
|
+
},
|
|
1792
|
+
],
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
title: 'Team',
|
|
1796
|
+
entries: [
|
|
1797
|
+
{ usage: 'team list', summary: 'List team members' },
|
|
1798
|
+
{
|
|
1799
|
+
usage: 'team invite <email> --name "<full name>"',
|
|
1800
|
+
summary: 'Invite a team member',
|
|
1801
|
+
notes: ['[--role admin|standard|readonly] [--allowed-connections id1,id2]'],
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
usage: 'team update <id>',
|
|
1805
|
+
summary: 'Change a team member',
|
|
1806
|
+
notes: ['[--role admin|standard|readonly] [--allowed-connections id1,id2] [--status ...]'],
|
|
1807
|
+
},
|
|
1808
|
+
{ usage: 'team revoke <id>', summary: 'Remove a team member' },
|
|
1809
|
+
{
|
|
1810
|
+
usage: 'team sso-unbind (<id> | --issuer <url>)',
|
|
1811
|
+
summary: "Forget a member's single sign-on identity, or that of everyone who signed in through one provider, so they bind again after you change provider",
|
|
1812
|
+
notes: ['(a person approves it in a browser; owner or admin only)'],
|
|
1813
|
+
},
|
|
1814
|
+
],
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
title: 'Monitor',
|
|
1818
|
+
entries: [
|
|
1819
|
+
{ usage: 'monitor', summary: 'Replay a scripted run (same as --demo)' },
|
|
1820
|
+
{ usage: 'monitor --demo [--loop]', summary: 'Replay a real-shape mission (no auth needed)' },
|
|
1821
|
+
{ usage: 'monitor --follow', summary: 'Tail your own audit log' },
|
|
1822
|
+
{ usage: 'monitor --sandbox', summary: 'Tail the public sandbox feed' },
|
|
1823
|
+
{ usage: 'monitor --challenge', summary: 'Tail the public email agent feed' },
|
|
1824
|
+
],
|
|
1825
|
+
},
|
|
1826
|
+
];
|
|
1827
|
+
/**
|
|
1828
|
+
* Router aliases per top-level verb. index.ts dispatches on the verb and on
|
|
1829
|
+
* every alias listed here; commands.test.ts keeps the two in step.
|
|
1830
|
+
*/
|
|
1831
|
+
export const COMMAND_ALIASES = {
|
|
1832
|
+
agent: ['agents'],
|
|
1833
|
+
passport: ['passports'],
|
|
1834
|
+
intents: ['intent'],
|
|
1835
|
+
mission: ['missions'],
|
|
1836
|
+
fleet: ['fleets'],
|
|
1837
|
+
account: ['accounts'],
|
|
1838
|
+
'evidence-pack': ['evidence-packs'],
|
|
1839
|
+
'inbound-webhook': ['inbound-webhooks'],
|
|
1840
|
+
quickstart: ['init'],
|
|
1841
|
+
service: ['services'],
|
|
1842
|
+
approval: ['approvals'],
|
|
1843
|
+
dropoff: ['dropoffs'],
|
|
1844
|
+
skill: ['skills'],
|
|
1845
|
+
event: ['events', 'security-event', 'security-events'],
|
|
1846
|
+
team: ['members', 'member'],
|
|
1847
|
+
me: ['whoami'],
|
|
1848
|
+
notifications: ['notification', 'notify'],
|
|
1849
|
+
detector: ['detectors'],
|
|
1850
|
+
policies: ['policy'],
|
|
1851
|
+
reviews: ['review'],
|
|
1852
|
+
wake: ['wakes'],
|
|
1853
|
+
calendar: ['cal'],
|
|
1854
|
+
meeting: ['meetings'],
|
|
1855
|
+
};
|
|
1856
|
+
export const OPTION_SECTIONS = [
|
|
1857
|
+
{
|
|
1858
|
+
title: 'Global flags',
|
|
1859
|
+
entries: [
|
|
1860
|
+
{ name: '--json', description: 'Emit raw JSON instead of formatted tables.' },
|
|
1861
|
+
{
|
|
1862
|
+
name: '--control-ref <ref>',
|
|
1863
|
+
description: 'Retry an action the owner approved: the ref a CONTROL_DENIED refusal (reason review_required) named, sent as X-Control-Ref on the writes of the command. Run the same command again with it once the owner approved.',
|
|
1864
|
+
},
|
|
1865
|
+
],
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
title: 'Environment',
|
|
1869
|
+
entries: [
|
|
1870
|
+
{
|
|
1871
|
+
name: 'STACK_OAUTH_SCOPE',
|
|
1872
|
+
description: 'Override the OAuth scope requested at `auth login`. Default covers routine runtime and inspection flows; account, secret, billing and security administration remain explicit opt-ins. Set an exact subset (e.g. "passports:read agents:read services:read audit:read") for monitoring-only sign-ins.',
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
name: 'STACK_API_URL',
|
|
1876
|
+
description: 'Point the CLI at a non-prod API (self-host / dev). Defaults to https://api.getstack.run.',
|
|
1877
|
+
},
|
|
1878
|
+
],
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
title: 'monitor flags',
|
|
1882
|
+
entries: [
|
|
1883
|
+
{
|
|
1884
|
+
name: '--demo',
|
|
1885
|
+
description: 'Replay a real-shape mission (no auth needed). Same row format as --follow, just scripted.',
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
name: '--follow',
|
|
1889
|
+
description: "Tail your operator's actual audit_log. Polls every 1s. Uses your `auth login` session.",
|
|
1890
|
+
},
|
|
1891
|
+
{ name: '--loop', description: 'Loop the demo until Ctrl-C (default is one run).' },
|
|
1892
|
+
{ name: '--agent <agent_id>', description: '(--follow) Only show entries for this agent.' },
|
|
1893
|
+
{ name: '--jti <passport_jti>', description: '(--follow) Only show entries for this passport.' },
|
|
1894
|
+
{
|
|
1895
|
+
name: '--sandbox',
|
|
1896
|
+
description: 'Tail the public sandbox feed at {apiUrl}/v1/public/events. No API key needed; implies a live tail (no --follow required). Same stream visitors see on getstack.run.',
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
name: '--challenge',
|
|
1900
|
+
description: 'Tail the public email agent at agent@getstack.run ({apiUrl}/v1/public/events?feed=challenge). No API key needed; implies a live tail. Same stream the board on getstack.run/attack renders.',
|
|
1901
|
+
},
|
|
1902
|
+
],
|
|
1903
|
+
},
|
|
1904
|
+
];
|
|
1905
|
+
/** Worked examples printed by `--help`. `cli` steps get the invocation prefix. */
|
|
1906
|
+
export const HELP_EXAMPLES = [
|
|
1907
|
+
{
|
|
1908
|
+
comment: ['enroll a freshly-registered agent so the SDK skips the dance'],
|
|
1909
|
+
steps: [{ cli: 'agent enroll research-pipeline' }],
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
comment: ['replay a credential-exfiltration-caught-by-scope_drift mission'],
|
|
1913
|
+
steps: [{ cli: 'monitor --demo --loop' }],
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
comment: ['tail the public sandbox (no signup, no key)'],
|
|
1917
|
+
steps: [{ cli: 'monitor --sandbox' }],
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
comment: ['watch strangers attack our public email agent, live'],
|
|
1921
|
+
steps: [{ cli: 'monitor --challenge' }],
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
comment: ['sign in once, then tail your real audit log (everything)'],
|
|
1925
|
+
steps: [{ cli: 'auth login' }, { cli: 'monitor --follow' }],
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
comment: ['tail just one agent'],
|
|
1929
|
+
steps: [{ cli: 'monitor --follow --agent abc123' }],
|
|
1930
|
+
},
|
|
1931
|
+
];
|
|
1932
|
+
const ARGUMENT_START = /^[<[("'-]/;
|
|
1933
|
+
/** The words of a usage string that name the command, before any argument. */
|
|
1934
|
+
export function commandPath(usage) {
|
|
1935
|
+
const words = usage.split(' ');
|
|
1936
|
+
const path = [];
|
|
1937
|
+
for (const word of words) {
|
|
1938
|
+
if (ARGUMENT_START.test(word))
|
|
1939
|
+
break;
|
|
1940
|
+
path.push(word);
|
|
1941
|
+
}
|
|
1942
|
+
return path.join(' ');
|
|
1943
|
+
}
|
|
1944
|
+
/** The top-level verb of a usage string. */
|
|
1945
|
+
export function commandVerb(usage) {
|
|
1946
|
+
return commandPath(usage).split(' ')[0] ?? '';
|
|
1947
|
+
}
|
|
1948
|
+
/** Every top-level verb the registry documents, in registry order. */
|
|
1949
|
+
export function registeredVerbs() {
|
|
1950
|
+
const verbs = [];
|
|
1951
|
+
for (const group of COMMAND_GROUPS) {
|
|
1952
|
+
for (const entry of group.entries) {
|
|
1953
|
+
const verb = commandVerb(entry.usage);
|
|
1954
|
+
if (!verbs.includes(verb))
|
|
1955
|
+
verbs.push(verb);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
return verbs;
|
|
1959
|
+
}
|
|
1960
|
+
/** Every verb the router must accept: registry verbs plus their aliases. */
|
|
1961
|
+
export function routedVerbs() {
|
|
1962
|
+
const verbs = new Set(registeredVerbs());
|
|
1963
|
+
for (const aliases of Object.values(COMMAND_ALIASES))
|
|
1964
|
+
for (const alias of aliases)
|
|
1965
|
+
verbs.add(alias);
|
|
1966
|
+
return [...verbs];
|
|
1967
|
+
}
|
|
1968
|
+
//# sourceMappingURL=commands.js.map
|