@retainer/cli 0.0.0-stage → 0.1.1

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Retainer contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,40 @@
1
+ import type { RetainerClient } from '@retainer/sdk';
2
+ export type RenderState = {
3
+ color: boolean;
4
+ /** What the last write ended with, so blocks start on their own line. */
5
+ at: 'start' | 'text' | 'reasoning' | 'line';
6
+ toolNames: Map<string, string>;
7
+ /** How the turn ended, from the stream. */
8
+ ended?: {
9
+ status: string;
10
+ code: string | null;
11
+ };
12
+ text: string;
13
+ };
14
+ export declare function renderState(color: boolean): RenderState;
15
+ /** What one UI message stream chunk prints, given what came before. */
16
+ export declare function renderChunk(state: RenderState, chunk: Record<string, unknown>): string;
17
+ /** Reads an SSE response into UI message stream chunks. */
18
+ export declare function sseChunks(body: ReadableStream<Uint8Array>): AsyncGenerator<Record<string, unknown>>;
19
+ export type ChatIo = {
20
+ write: (text: string) => void;
21
+ color: boolean;
22
+ /** Called with each chunk as JSON instead of rendering it (--json). */
23
+ json?: (chunk: Record<string, unknown>) => void;
24
+ };
25
+ /** Sends one message and renders the turn. Returns how it ended. */
26
+ export declare function sendMessage(api: RetainerClient, chatId: string, text: string, io: ChatIo, options?: {
27
+ signal?: AbortSignal;
28
+ fetch?: typeof fetch;
29
+ }): Promise<{
30
+ status: string;
31
+ code: string | null;
32
+ text: string;
33
+ }>;
34
+ /** Why a turn didn't start, in plain words. */
35
+ export declare function startFailure(code: string): string;
36
+ /**
37
+ * The interactive loop: one line per message. Ctrl-C during a turn stops the
38
+ * turn (the chat stays); Ctrl-C or Ctrl-D at the prompt leaves.
39
+ */
40
+ export declare function interactiveChat(api: RetainerClient, chatId: string, io: ChatIo): Promise<number>;
@@ -0,0 +1,217 @@
1
+ import { createInterface } from 'node:readline/promises';
2
+ /**
3
+ * `retainer agent chat` (docs/specs/agent.md §6.7): a chat with the workspace
4
+ * agent in the terminal. Reasoning is dimmed, tool calls and results are
5
+ * short lines. A CLI chat reads by default; the agent writes only while this
6
+ * login is elevated in the workspace.
7
+ */
8
+ const dim = (text, color) => (color ? `\x1b[2m${text}\x1b[22m` : text);
9
+ const short = (value, max = 80) => {
10
+ const text = typeof value === 'string' ? value : JSON.stringify(value);
11
+ if (text === undefined)
12
+ return '';
13
+ return text.length > max ? `${text.slice(0, max - 1)}…` : text;
14
+ };
15
+ export function renderState(color) {
16
+ return { color, at: 'start', toolNames: new Map(), text: '' };
17
+ }
18
+ /** Turn-end statuses, in plain words (spec §3.4, §5.5, §10). */
19
+ const ENDINGS = {
20
+ refused: 'The agent declined to answer this.',
21
+ incomplete: 'The answer was cut short.',
22
+ context_limit_reached: 'This chat is too long to continue. Start a new chat.',
23
+ history_rejected: 'This chat can no longer continue. Start a new chat.',
24
+ model_unavailable: 'The model is unavailable right now. Send your message again shortly.',
25
+ limit_reached: 'The agent reached its limit for this turn or today.',
26
+ cancelled: 'Stopped.',
27
+ timed_out: 'The turn ran out of time.',
28
+ failed: 'Something went wrong in this turn.',
29
+ };
30
+ /** How a `data-turn-end` chunk says the turn ended. */
31
+ function turnEnd(chunk) {
32
+ const data = chunk.data;
33
+ return { status: data?.status ?? 'failed', code: data?.code ?? null };
34
+ }
35
+ /** What one UI message stream chunk prints, given what came before. */
36
+ export function renderChunk(state, chunk) {
37
+ const line = (text) => {
38
+ const prefix = state.at === 'start' || state.at === 'line' ? '' : '\n';
39
+ state.at = 'line';
40
+ return `${prefix}${text}\n`;
41
+ };
42
+ switch (chunk.type) {
43
+ case 'reasoning-delta': {
44
+ const delta = String(chunk.delta ?? '');
45
+ if (!delta)
46
+ return '';
47
+ const prefix = state.at === 'reasoning' || state.at === 'start' || state.at === 'line' ? '' : '\n';
48
+ state.at = 'reasoning';
49
+ return prefix + dim(delta, state.color);
50
+ }
51
+ case 'text-delta': {
52
+ const delta = String(chunk.delta ?? '');
53
+ if (!delta)
54
+ return '';
55
+ const prefix = state.at === 'text' || state.at === 'start' || state.at === 'line' ? '' : '\n\n';
56
+ state.at = 'text';
57
+ state.text += delta;
58
+ return prefix + delta;
59
+ }
60
+ case 'tool-input-start':
61
+ state.toolNames.set(String(chunk.toolCallId), String(chunk.toolName));
62
+ return '';
63
+ case 'tool-input-available':
64
+ state.toolNames.set(String(chunk.toolCallId), String(chunk.toolName));
65
+ return line(dim(`→ ${chunk.toolName} ${short(chunk.input)}`, state.color));
66
+ case 'tool-output-available': {
67
+ const name = state.toolNames.get(String(chunk.toolCallId)) ?? 'tool';
68
+ const output = chunk.output;
69
+ const error = output && typeof output === 'object' ? output.error : undefined;
70
+ return line(dim(error?.code ? `← ${name} error: ${error.code}` : `← ${name} ${short(chunk.output, 60)}`, state.color));
71
+ }
72
+ case 'tool-output-error': {
73
+ const name = state.toolNames.get(String(chunk.toolCallId)) ?? 'tool';
74
+ return line(dim(`← ${name} failed: ${short(chunk.errorText, 60)}`, state.color));
75
+ }
76
+ case 'error':
77
+ return line(`Error: ${short(chunk.errorText, 200)}`);
78
+ case 'data-turn-end': {
79
+ state.ended = turnEnd(chunk);
80
+ const { status } = state.ended;
81
+ return line(ENDINGS[status] ?? `The turn ended: ${status}.`);
82
+ }
83
+ default:
84
+ return '';
85
+ }
86
+ }
87
+ /** Reads an SSE response into UI message stream chunks. */
88
+ export async function* sseChunks(body) {
89
+ const decoder = new TextDecoder();
90
+ let buffer = '';
91
+ for await (const bytes of body) {
92
+ buffer += decoder.decode(bytes, { stream: true });
93
+ for (let end = buffer.indexOf('\n\n'); end !== -1; end = buffer.indexOf('\n\n')) {
94
+ const event = buffer.slice(0, end);
95
+ buffer = buffer.slice(end + 2);
96
+ const data = event
97
+ .split('\n')
98
+ .filter((l) => l.startsWith('data:'))
99
+ .map((l) => l.slice(5).trimStart())
100
+ .join('\n');
101
+ if (!data || data === '[DONE]')
102
+ continue;
103
+ try {
104
+ yield JSON.parse(data);
105
+ }
106
+ catch {
107
+ // A malformed event is skipped; the stream goes on.
108
+ }
109
+ }
110
+ }
111
+ }
112
+ /** Sends one message and renders the turn. Returns how it ended. */
113
+ export async function sendMessage(api, chatId, text, io, options = {}) {
114
+ const { token, streamUrl } = await api.agentChatToken(chatId, options.signal);
115
+ const response = await (options.fetch ?? fetch)(streamUrl, {
116
+ method: 'POST',
117
+ headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' },
118
+ body: JSON.stringify({ message: { parts: [{ type: 'text', text }] } }),
119
+ signal: options.signal,
120
+ redirect: 'error',
121
+ });
122
+ if (!response.ok || !response.body) {
123
+ let code = 'request_failed';
124
+ try {
125
+ const body = (await response.json());
126
+ code = body.code ?? body.error?.code ?? code;
127
+ }
128
+ catch { }
129
+ return { status: 'refused_to_start', code, text: '' };
130
+ }
131
+ const state = renderState(io.color);
132
+ let finished = false;
133
+ // How the turn ended is recorded whatever the output (--json included).
134
+ const emit = (chunk) => {
135
+ if (chunk.type === 'finish')
136
+ finished = true;
137
+ if (chunk.type === 'data-turn-end')
138
+ state.ended = turnEnd(chunk);
139
+ if (io.json)
140
+ io.json(chunk);
141
+ else
142
+ io.write(renderChunk(state, chunk));
143
+ };
144
+ for await (const chunk of sseChunks(response.body))
145
+ emit(chunk);
146
+ // A stream that ends without its `finish` was cut on the way (a proxy, a
147
+ // dropped connection): what arrived is never reported as a finished answer.
148
+ if (!finished && !state.ended)
149
+ emit({ type: 'data-turn-end', data: { status: 'incomplete', code: 'stream_cut' } });
150
+ if (!io.json && state.at !== 'start' && state.at !== 'line')
151
+ io.write('\n');
152
+ return { ...(state.ended ?? { status: 'completed', code: null }), text: state.text };
153
+ }
154
+ /** Why a turn didn't start, in plain words. */
155
+ export function startFailure(code) {
156
+ switch (code) {
157
+ case 'turn_running':
158
+ return 'The agent is still answering your last message.';
159
+ case 'turn_stopping':
160
+ return 'The last turn is still stopping. Try again in a few seconds.';
161
+ case 'limit_reached':
162
+ return "You've reached today's agent limit.";
163
+ case 'agent_unavailable':
164
+ return 'The agent is not available on this server.';
165
+ default:
166
+ return `The message could not be sent (${code}).`;
167
+ }
168
+ }
169
+ /**
170
+ * The interactive loop: one line per message. Ctrl-C during a turn stops the
171
+ * turn (the chat stays); Ctrl-C or Ctrl-D at the prompt leaves.
172
+ */
173
+ export async function interactiveChat(api, chatId, io) {
174
+ const rl = createInterface({ input: process.stdin, output: process.stdout, terminal: true });
175
+ let turn;
176
+ const onSigint = () => {
177
+ if (turn) {
178
+ turn.abort();
179
+ void api.cancelAgentChat(chatId).catch(() => { });
180
+ }
181
+ else
182
+ rl.close();
183
+ };
184
+ rl.on('SIGINT', onSigint);
185
+ io.write(dim('Chat with the Retainer agent. Ctrl-C stops a turn; Ctrl-D leaves.\n', io.color));
186
+ try {
187
+ for (;;) {
188
+ let text;
189
+ try {
190
+ text = (await rl.question('> ')).trim();
191
+ }
192
+ catch {
193
+ return 0;
194
+ }
195
+ if (!text)
196
+ continue;
197
+ turn = new AbortController();
198
+ try {
199
+ const result = await sendMessage(api, chatId, text, io, { signal: turn.signal });
200
+ if (result.status === 'refused_to_start')
201
+ io.write(`${startFailure(result.code ?? '')}\n`);
202
+ }
203
+ catch (error) {
204
+ if (!turn.signal.aborted)
205
+ throw error;
206
+ io.write('\nStopped.\n');
207
+ }
208
+ finally {
209
+ turn = undefined;
210
+ }
211
+ }
212
+ }
213
+ finally {
214
+ rl.close();
215
+ }
216
+ }
217
+ //# sourceMappingURL=agent-chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-chat.js","sourceRoot":"","sources":["../src/agent-chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD;;;;;GAKG;AAEH,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACxF,MAAM,KAAK,GAAG,CAAC,KAAc,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACvE,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IAClC,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AACjE,CAAC,CAAC;AAYF,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,EAAE,EA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AAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;gBACjF,IAAI,MAAM,CAAC,MAAM,KAAK,kBAAkB;oBAAE,EAAE,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC;YAC7F,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;oBAAE,MAAM,KAAK,CAAC;gBACtC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC3B,CAAC;oBAAS,CAAC;gBACT,IAAI,GAAG,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;IACH,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ export declare const commandGroups: readonly [{
2
+ readonly title: 'Sign-in and workspace selection';
3
+ readonly commands: readonly [readonly ['login', '[--server <url>]', 'Person · browser consent', 'login --server https://retainer.tamloot.cc'], readonly ['wait', '<id>', 'Person · waits for a response', 'wait 01900000-0000-7000-8000-000000000000'], readonly ['logout', '', 'Person · ends this login', 'logout'], readonly ['whoami', '', 'Person · read', 'whoami'], readonly ['elevate', '[--workspace <w> | --org <o>] [--minutes <n>] [--reason <text>] | --end', 'Workspace or organization · browser approval to start', 'elevate --workspace sales --reason "review duplicate deals"'], readonly ['workspaces', '', 'Person · read', 'workspaces'], readonly ['use', '<workspace>', 'Workspace · saves default on this machine', 'use sales']];
4
+ }, {
5
+ readonly title: 'Workspace administration';
6
+ readonly commands: readonly [readonly ['workspace create', '<name> [--org <o>] [--template <t>]', 'Organization · elevation', 'workspace create Support --org acme'], readonly ['workspace rename', '<name>', 'Workspace · elevation', 'workspace rename "Customer Support" --workspace support'], readonly ['workspace delete', '<workspace> [--approval <id>]', 'Workspace · click each time', 'workspace delete sandbox'], readonly ['mcp-address', '[<workspace>]', 'Workspace · read', 'mcp-address sales']];
7
+ }, {
8
+ readonly title: 'Members, keys, and connections';
9
+ readonly commands: readonly [readonly ['members', '', 'Workspace · read', 'members --workspace sales'], readonly ['invite', '<email> [--org <o>] [--org-role <member|admin|owner>] [--workspace <w> --role <viewer|editor|admin>]… [--approval <id>]', 'Organization · elevation, owner invitation needs a click', 'invite ben@example.com --org acme --workspace sales --role editor'], readonly ['invitations', '[--org <o>]', 'Organization · read', 'invitations --org acme'], readonly ['invitation revoke', '<id> [--org <o>]', 'Organization · elevation', 'invitation revoke <id> --org acme'], readonly ['role', '<email> --workspace <w> <viewer|editor|admin> | --org <o> <member|admin|owner>', 'Workspace or organization · elevation, owner changes need a click', 'role ben@example.com --workspace sales editor'], readonly ['remove', '<email> [--workspace <w> | --org <o>] [--approval <id>]', 'Workspace or organization · elevation, removing an owner needs a click', 'remove ben@example.com --workspace sales'], readonly ['keys', '', 'Workspace · read', 'keys --workspace sales'], readonly ['key create', '<name> --access <read|write|schema> [--approval <id>]', 'Workspace · click each time', 'key create "Inbox agent" --access read --workspace sales'], readonly ['key revoke', '<id>', 'Workspace · elevation', 'key revoke <id> --workspace sales'], readonly ['connections', '[--workspace <w>]', 'Person or workspace · read', 'connections'], readonly ['disconnect', '<id>', 'Workspace · elevation', 'disconnect <id> --workspace sales']];
10
+ }, {
11
+ readonly title: 'Review and schema changes';
12
+ readonly commands: readonly [readonly ['review', '', 'Person or workspace · read', 'review --workspace sales'], readonly ['review show', '<id>', 'Person or workspace · read', 'review show <id>'], readonly ['duplicates merge', '<suggestion> --keep <record>', 'Workspace · elevation', 'duplicates merge <suggestion> --keep <record> --workspace sales'], readonly ['duplicates dismiss', '<suggestion>', 'Workspace · elevation', 'duplicates dismiss <suggestion> --workspace sales'], readonly ['pending accept', '<id>', 'Workspace · elevation', 'pending accept <id> --workspace sales'], readonly ['pending reject', '<id>', 'Workspace · elevation', 'pending reject <id> --workspace sales'], readonly ['schema-changes', '', 'Workspace · read', 'schema-changes --workspace sales'], readonly ['schema-changes approve', '<id>', 'Workspace · elevation', 'schema-changes approve <id> --workspace sales'], readonly ['schema-changes reject', '<id>', 'Workspace · elevation', 'schema-changes reject <id> --workspace sales']];
13
+ }, {
14
+ readonly title: 'Extensions';
15
+ readonly commands: readonly [readonly ['extensions', '', 'Workspace · read', 'extensions --workspace sales'], readonly ['extension show', '<id>', 'Workspace · read', 'extension show <id> --workspace sales'], readonly ['extension install', '<name>', 'Workspace · finishes in the web app', 'extension install enrichment --workspace sales'], readonly ['extension configure', '<id>', 'Workspace · finishes in the web app', 'extension configure <id> --workspace sales'], readonly ['extension upgrade', '<id>', 'Workspace · finishes in the web app', 'extension upgrade <id> --workspace sales'], readonly ['extension disable', '<id>', 'Workspace · elevation', 'extension disable <id> --workspace sales'], readonly ['extension remove', '<id>', 'Workspace · elevation', 'extension remove <id> --workspace sales']];
16
+ }, {
17
+ readonly title: 'Routines and workspace agent';
18
+ readonly commands: readonly [readonly ['routines', '', 'Workspace · read', 'routines --workspace sales'], readonly ['routine approve', '<id> <version>', 'Workspace · finishes in the web app', 'routine approve <routine> <version> --workspace sales'], readonly ['routine reject', '<id> <version>', 'Workspace · elevation', 'routine reject <routine> <version> --workspace sales'], readonly ['agent chat', '[<chat>] [--message <text>]', 'Workspace · read; the agent writes while this login is elevated', 'agent chat --workspace sales'], readonly ['routine pause', '<id>', 'Workspace · elevation', 'routine pause <routine> --workspace sales'], readonly ['routine resume', '<id>', 'Workspace · elevation if the existing approval is still valid', 'routine resume <routine> --workspace sales']];
19
+ }];
@@ -0,0 +1,203 @@
1
+ // Shared by terminal help and the public command reference.
2
+ export const commandGroups = [
3
+ {
4
+ title: 'Sign-in and workspace selection',
5
+ commands: [
6
+ [
7
+ 'login',
8
+ '[--server <url>]',
9
+ 'Person · browser consent',
10
+ 'login --server https://retainer.tamloot.cc',
11
+ ],
12
+ [
13
+ 'wait',
14
+ '<id>',
15
+ 'Person · waits for a response',
16
+ 'wait 01900000-0000-7000-8000-000000000000',
17
+ ],
18
+ ['logout', '', 'Person · ends this login', 'logout'],
19
+ ['whoami', '', 'Person · read', 'whoami'],
20
+ [
21
+ 'elevate',
22
+ '[--workspace <w> | --org <o>] [--minutes <n>] [--reason <text>] | --end',
23
+ 'Workspace or organization · browser approval to start',
24
+ 'elevate --workspace sales --reason "review duplicate deals"',
25
+ ],
26
+ ['workspaces', '', 'Person · read', 'workspaces'],
27
+ ['use', '<workspace>', 'Workspace · saves default on this machine', 'use sales'],
28
+ ],
29
+ },
30
+ {
31
+ title: 'Workspace administration',
32
+ commands: [
33
+ [
34
+ 'workspace create',
35
+ '<name> [--org <o>] [--template <t>]',
36
+ 'Organization · elevation',
37
+ 'workspace create Support --org acme',
38
+ ],
39
+ [
40
+ 'workspace rename',
41
+ '<name>',
42
+ 'Workspace · elevation',
43
+ 'workspace rename "Customer Support" --workspace support',
44
+ ],
45
+ [
46
+ 'workspace delete',
47
+ '<workspace> [--approval <id>]',
48
+ 'Workspace · click each time',
49
+ 'workspace delete sandbox',
50
+ ],
51
+ ['mcp-address', '[<workspace>]', 'Workspace · read', 'mcp-address sales'],
52
+ ],
53
+ },
54
+ {
55
+ title: 'Members, keys, and connections',
56
+ commands: [
57
+ ['members', '', 'Workspace · read', 'members --workspace sales'],
58
+ [
59
+ 'invite',
60
+ '<email> [--org <o>] [--org-role <member|admin|owner>] [--workspace <w> --role <viewer|editor|admin>]… [--approval <id>]',
61
+ 'Organization · elevation, owner invitation needs a click',
62
+ 'invite ben@example.com --org acme --workspace sales --role editor',
63
+ ],
64
+ ['invitations', '[--org <o>]', 'Organization · read', 'invitations --org acme'],
65
+ [
66
+ 'invitation revoke',
67
+ '<id> [--org <o>]',
68
+ 'Organization · elevation',
69
+ 'invitation revoke <id> --org acme',
70
+ ],
71
+ [
72
+ 'role',
73
+ '<email> --workspace <w> <viewer|editor|admin> | --org <o> <member|admin|owner>',
74
+ 'Workspace or organization · elevation, owner changes need a click',
75
+ 'role ben@example.com --workspace sales editor',
76
+ ],
77
+ [
78
+ 'remove',
79
+ '<email> [--workspace <w> | --org <o>] [--approval <id>]',
80
+ 'Workspace or organization · elevation, removing an owner needs a click',
81
+ 'remove ben@example.com --workspace sales',
82
+ ],
83
+ ['keys', '', 'Workspace · read', 'keys --workspace sales'],
84
+ [
85
+ 'key create',
86
+ '<name> --access <read|write|schema> [--approval <id>]',
87
+ 'Workspace · click each time',
88
+ 'key create "Inbox agent" --access read --workspace sales',
89
+ ],
90
+ ['key revoke', '<id>', 'Workspace · elevation', 'key revoke <id> --workspace sales'],
91
+ ['connections', '[--workspace <w>]', 'Person or workspace · read', 'connections'],
92
+ ['disconnect', '<id>', 'Workspace · elevation', 'disconnect <id> --workspace sales'],
93
+ ],
94
+ },
95
+ {
96
+ title: 'Review and schema changes',
97
+ commands: [
98
+ ['review', '', 'Person or workspace · read', 'review --workspace sales'],
99
+ ['review show', '<id>', 'Person or workspace · read', 'review show <id>'],
100
+ [
101
+ 'duplicates merge',
102
+ '<suggestion> --keep <record>',
103
+ 'Workspace · elevation',
104
+ 'duplicates merge <suggestion> --keep <record> --workspace sales',
105
+ ],
106
+ [
107
+ 'duplicates dismiss',
108
+ '<suggestion>',
109
+ 'Workspace · elevation',
110
+ 'duplicates dismiss <suggestion> --workspace sales',
111
+ ],
112
+ ['pending accept', '<id>', 'Workspace · elevation', 'pending accept <id> --workspace sales'],
113
+ ['pending reject', '<id>', 'Workspace · elevation', 'pending reject <id> --workspace sales'],
114
+ ['schema-changes', '', 'Workspace · read', 'schema-changes --workspace sales'],
115
+ [
116
+ 'schema-changes approve',
117
+ '<id>',
118
+ 'Workspace · elevation',
119
+ 'schema-changes approve <id> --workspace sales',
120
+ ],
121
+ [
122
+ 'schema-changes reject',
123
+ '<id>',
124
+ 'Workspace · elevation',
125
+ 'schema-changes reject <id> --workspace sales',
126
+ ],
127
+ ],
128
+ },
129
+ {
130
+ title: 'Extensions',
131
+ commands: [
132
+ ['extensions', '', 'Workspace · read', 'extensions --workspace sales'],
133
+ ['extension show', '<id>', 'Workspace · read', 'extension show <id> --workspace sales'],
134
+ [
135
+ 'extension install',
136
+ '<name>',
137
+ 'Workspace · finishes in the web app',
138
+ 'extension install enrichment --workspace sales',
139
+ ],
140
+ [
141
+ 'extension configure',
142
+ '<id>',
143
+ 'Workspace · finishes in the web app',
144
+ 'extension configure <id> --workspace sales',
145
+ ],
146
+ [
147
+ 'extension upgrade',
148
+ '<id>',
149
+ 'Workspace · finishes in the web app',
150
+ 'extension upgrade <id> --workspace sales',
151
+ ],
152
+ [
153
+ 'extension disable',
154
+ '<id>',
155
+ 'Workspace · elevation',
156
+ 'extension disable <id> --workspace sales',
157
+ ],
158
+ [
159
+ 'extension remove',
160
+ '<id>',
161
+ 'Workspace · elevation',
162
+ 'extension remove <id> --workspace sales',
163
+ ],
164
+ ],
165
+ },
166
+ {
167
+ title: 'Routines and workspace agent',
168
+ commands: [
169
+ ['routines', '', 'Workspace · read', 'routines --workspace sales'],
170
+ [
171
+ 'routine approve',
172
+ '<id> <version>',
173
+ 'Workspace · finishes in the web app',
174
+ 'routine approve <routine> <version> --workspace sales',
175
+ ],
176
+ [
177
+ 'routine reject',
178
+ '<id> <version>',
179
+ 'Workspace · elevation',
180
+ 'routine reject <routine> <version> --workspace sales',
181
+ ],
182
+ [
183
+ 'agent chat',
184
+ '[<chat>] [--message <text>]',
185
+ 'Workspace · read; the agent writes while this login is elevated',
186
+ 'agent chat --workspace sales',
187
+ ],
188
+ [
189
+ 'routine pause',
190
+ '<id>',
191
+ 'Workspace · elevation',
192
+ 'routine pause <routine> --workspace sales',
193
+ ],
194
+ [
195
+ 'routine resume',
196
+ '<id>',
197
+ 'Workspace · elevation if the existing approval is still valid',
198
+ 'routine resume <routine> --workspace sales',
199
+ ],
200
+ ],
201
+ },
202
+ ];
203
+ //# sourceMappingURL=commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,CAAC,MAA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