@kosuke-ai/kosuke 1.0.66 → 1.0.67

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.67
4
+
5
+ - Add `kosuke integrations request` to send one request to a Composio toolkit's own API through your connection, for an action no listed tool does; `integrations list --toolkit` says whether a toolkit takes them and its API base URL.
6
+
3
7
  ## 1.0.66
4
8
 
5
9
  - Remove `--needs-you` and `--viewer` from `sessions list`, and the `needsYouReason` field from its rows: what waits on you is a Sensei card, which `kosuke sensei cards list` lists. An older CLI that still sends them gets the plain list. `agent summary get` no longer prints a Needs You section.
package/README.md CHANGED
@@ -203,6 +203,7 @@ kosuke integrations list --workspace <id> --toolkit gmail # that toolkit's to
203
203
  kosuke integrations tools get <tool> --workspace <id> # one tool's input schema
204
204
  kosuke integrations call <tool> --workspace <id> --account notion-personal --args '{"query":"roadmap"}'
205
205
  kosuke integrations call youtube_upload_video --workspace <id> --args-file video.json --file videoFilePath=./clip.mp4
206
+ kosuke integrations request googlecalendar --workspace <id> --method GET --path /calendars/primary --purpose "read the calendar colors"
206
207
  ```
207
208
 
208
209
  `list` with no filter prints each toolkit's connections (alias, scope, label,
@@ -217,6 +218,16 @@ reference: `--file <argument>=<path>` uploads the local file and fills it in,
217
218
  once per file, and a file inside a list or object names its path, such as
218
219
  `attachment.0`. The file goes straight to storage, up to 5 GiB.
219
220
 
221
+ `request` is for an action no listed tool does: it sends one GET, POST, PUT or
222
+ PATCH to a Composio toolkit's own API through your connection, and Composio adds
223
+ the credentials on the server. `--path` is relative to the API base URL that
224
+ `list --toolkit <slug>` prints, with `--query name=value` and `--body-file <json>`
225
+ beside it. `--purpose` is required: one line on what no listed tool does, with no
226
+ names, emails or event titles, stored with the usage row. It is refused before any
227
+ vendor call for Kosuke's own integrations, toolkits limited to their reviewed
228
+ tools, DELETE and a path that is not plainly relative. A write that gets no answer
229
+ exits 1 and is never sent again: its outcome is unknown.
230
+
220
231
  With an API key, `--workspace` is required (you must belong to it), and `call`
221
232
  runs only your own personal connections. Inside an agent's turn the credential
222
233
  decides the workspace and the flag is optional. A Connector Token is refused.
@@ -74,6 +74,21 @@ export const HAND_WRITTEN = {
74
74
  agents: 'all',
75
75
  workspace: true,
76
76
  },
77
+ integrationsRequest: {
78
+ command: ['integrations', 'request'],
79
+ positionals: ['toolkit'],
80
+ flags: [
81
+ '--method',
82
+ '--path',
83
+ '--purpose',
84
+ '--query',
85
+ '--body-file',
86
+ '--account',
87
+ '--workspace',
88
+ ],
89
+ agents: 'all',
90
+ workspace: true,
91
+ },
77
92
  sessionsJobsWatch: {
78
93
  command: ['sessions', 'jobs', 'watch'],
79
94
  positionals: ['projectId', 'sessionId', 'jobId'],
@@ -0,0 +1,128 @@
1
+ import { InvalidArgumentError } from 'commander';
2
+ import { leafAt } from '../runtime/attach.js';
3
+ import { failureOf, isRow, transportFailure, UNKNOWN_OUTCOME, } from '../integrations/api.js';
4
+ import { HAND_WRITTEN } from './hand-written.js';
5
+ import { accountText, CALL_TIMEOUT_MS, DELEGATED_RUN_HEADER, delegatedRunOf, toolkitSlug, UsageError, WORKSPACE_HELP, workspaceFor, } from './integrations-shared.js';
6
+ /**
7
+ * `kosuke integrations request`: one request to a Composio toolkit's own API, for an action no
8
+ * listed tool does. The platform judges the method and the path, so what it refuses still shows on
9
+ * Admin's Missing actions; only what it could not read stops here.
10
+ */
11
+ const REQUESTS_PATH = '/api/agent-integrations/requests';
12
+ const MAX_PATH_CHARS = 2048;
13
+ const MAX_PURPOSE_CHARS = 120;
14
+ function methodWord(raw) {
15
+ if (raw === undefined)
16
+ throw new UsageError('--method is required: GET, POST, PUT or PATCH.');
17
+ if (!/^[A-Za-z]{1,16}$/.test(raw))
18
+ throw new UsageError('--method: GET, POST, PUT or PATCH.');
19
+ return raw.toUpperCase();
20
+ }
21
+ function pathText(raw) {
22
+ if (raw === undefined)
23
+ throw new UsageError('--path is required.');
24
+ if (raw === '' || raw.startsWith('--') || raw.length > MAX_PATH_CHARS) {
25
+ throw new UsageError(`--path: a path relative to the toolkit's API base URL, up to ${MAX_PATH_CHARS} characters.`);
26
+ }
27
+ return raw;
28
+ }
29
+ function queryPair(raw, previous = []) {
30
+ const at = raw.indexOf('=');
31
+ if (at < 1)
32
+ throw new InvalidArgumentError('Expected name=value.');
33
+ return [...previous, [raw.slice(0, at), raw.slice(at + 1)]];
34
+ }
35
+ function purposeText(raw) {
36
+ if (raw === undefined) {
37
+ throw new UsageError('--purpose is required: one line on what the member wanted that no listed tool does.');
38
+ }
39
+ if (raw.trim() === '' || raw.startsWith('--') || raw.length > MAX_PURPOSE_CHARS) {
40
+ throw new UsageError(`--purpose: one line of 1 to ${MAX_PURPOSE_CHARS} characters.`);
41
+ }
42
+ return raw;
43
+ }
44
+ export function attachIntegrationsRequest(root, runtime, { guarded, fail, report, readStdin, readText, callTimeoutMs, env, }) {
45
+ leafAt(root, HAND_WRITTEN.integrationsRequest.command)
46
+ .description("Send one request straight to a Composio toolkit's own API through your connection, for an " +
47
+ 'action no listed tool does, and print its answer. Composio adds the credentials on the ' +
48
+ 'server, so no token is needed or shown. The connection it ran on is named on stderr. ' +
49
+ 'A refusal or a vendor error exits 1.')
50
+ .argument('<toolkit>', 'The toolkit, as `list` prints it, such as googlecalendar.', toolkitSlug)
51
+ // Required, but checked in the action: commander's own refusal exits 1, not the usage exit 2.
52
+ .option('--method <method>', 'Required. GET, POST, PUT or PATCH. GET is a read.')
53
+ .option('--path <path>', "Required. Relative to the toolkit's API base URL, which `list --toolkit <slug>` prints. It " +
54
+ 'starts with /, with no %, no .. and no empty segment.')
55
+ .option('--purpose <text>', 'Required. One line on what the member wanted that no listed tool does, with no names, emails ' +
56
+ 'or event titles. It is stored with the usage row.')
57
+ .option('--query <name=value>', 'A query parameter. Repeat it for several.', queryPair)
58
+ .option('--body-file <path>', 'Read a JSON object to send as the body, or - for stdin.')
59
+ .option('--account <account>', 'The connection to run on: an alias, id or scope:label. Needed when you have several.', accountText)
60
+ .option('--workspace <id>', WORKSPACE_HELP)
61
+ .addHelpText('after', '\nUse a listed tool when one does the action: this is for what none does. POST, PUT and PATCH\n' +
62
+ 'are writes and pass the same checks as a listed write tool. DELETE is refused, and so are\n' +
63
+ 'toolkits limited to their reviewed tools; `list --toolkit <slug>` says which.\n' +
64
+ '\nWith an API key, a request runs only on your own personal connections.\n' +
65
+ `\nA request waits up to ${CALL_TIMEOUT_MS / 1000} s for its answer. A write that gets no answer is never sent\n` +
66
+ 'again: its outcome is unknown, so read the current state first.\n' +
67
+ '\nExit codes:\n 0 the vendor answered with a success\n 1 refused, the vendor reported an error, or the outcome of a write is unknown\n 2 usage error: --method, --path, --purpose or --workspace missing or unusable, or a body that is not a JSON object')
68
+ .action(guarded(async (toolkit, flags) => {
69
+ const method = methodWord(flags.method);
70
+ const path = pathText(flags.path);
71
+ const purpose = purposeText(flags.purpose);
72
+ const body = flags.bodyFile === undefined ? undefined : await readBody(flags.bodyFile);
73
+ const client = runtime.client({ answerTimeoutMs: callTimeoutMs });
74
+ const workspace = workspaceFor(runtime, flags.workspace);
75
+ const delegatedRun = delegatedRunOf(env);
76
+ // A GET changes nothing, so a lost answer is plain; anything else may have landed.
77
+ const read = method === 'GET';
78
+ const verb = read ? 'GET' : 'POST';
79
+ let data;
80
+ try {
81
+ const result = await client.POST(REQUESTS_PATH, {
82
+ params: { query: workspace ? { workspace } : {} },
83
+ ...(delegatedRun && { headers: { [DELEGATED_RUN_HEADER]: delegatedRun } }),
84
+ body: {
85
+ toolkit,
86
+ // Checked by the server, which records what it refuses.
87
+ method: method,
88
+ path,
89
+ purpose,
90
+ ...(flags.query ? { query: flags.query } : {}),
91
+ ...(body ? { body } : {}),
92
+ ...(flags.account ? { account: flags.account } : {}),
93
+ },
94
+ signal: AbortSignal.timeout(callTimeoutMs),
95
+ });
96
+ if (!result.response.ok) {
97
+ if (!read && result.response.status >= 500)
98
+ return fail(UNKNOWN_OUTCOME);
99
+ return fail(failureOf(result.response.status, result.error, verb));
100
+ }
101
+ data = isRow(result.data) ? result.data.data : undefined;
102
+ }
103
+ catch (error) {
104
+ return fail(transportFailure(error, verb));
105
+ }
106
+ report(`${toolkit} requests`, flags.account, data);
107
+ }));
108
+ /** Reads `--body-file`, or stdin for `-`: a JSON object, since that is all a body may be. */
109
+ async function readBody(path) {
110
+ let text;
111
+ try {
112
+ text = path === '-' ? await readStdin() : await readText(path);
113
+ }
114
+ catch {
115
+ throw new UsageError(`Could not read the body file ${path}.`);
116
+ }
117
+ let parsed;
118
+ try {
119
+ parsed = JSON.parse(text);
120
+ }
121
+ catch {
122
+ throw new UsageError('The body is not valid JSON.');
123
+ }
124
+ if (!isRow(parsed))
125
+ throw new UsageError('The body must be a JSON object.');
126
+ return parsed;
127
+ }
128
+ }
@@ -0,0 +1,45 @@
1
+ import { InvalidArgumentError } from 'commander';
2
+ import { isTurnToken } from '../runtime/credentials.js';
3
+ /** What `kosuke integrations call` and `kosuke integrations request` share. */
4
+ /**
5
+ * One value for every call: the execute route's `maxDuration`, the longest the platform lets
6
+ * one run. The platform decides from the tool and the account where a call runs, so the CLI cannot
7
+ * give the others a shorter wait. They end sooner on the platform's side, a Composio read at its
8
+ * 60 s budget, and wait no longer than their answer takes.
9
+ */
10
+ export const CALL_TIMEOUT_MS = 330_000;
11
+ const TOOLKIT_PATTERN = /^[a-z0-9_]{1,64}$/;
12
+ const MAX_ACCOUNT_CHARS = 100;
13
+ /** The header a call made by a Delegated Run carries, so the platform counts it as a delegate's. */
14
+ export const DELEGATED_RUN_HEADER = 'x-kosuke-delegated-run';
15
+ /** The Delegated Run this process runs in, set by the sandbox for a full-access run, or null. */
16
+ export function delegatedRunOf(env) {
17
+ const value = env.KOSUKE_DELEGATED_RUN_ID?.trim();
18
+ return value && /^[A-Za-z0-9_-]{1,64}$/.test(value) ? value : null;
19
+ }
20
+ /** Wrong flags or arguments, found before any request. */
21
+ export class UsageError extends Error {
22
+ }
23
+ export function toolkitSlug(raw) {
24
+ if (!TOOLKIT_PATTERN.test(raw)) {
25
+ throw new InvalidArgumentError('Expected a toolkit slug such as gmail, as `list` prints it.');
26
+ }
27
+ return raw;
28
+ }
29
+ export function accountText(raw) {
30
+ // A flag swallowed as the value (`--account --args`) shows as a leading dash.
31
+ if (raw.trim() === '' || raw.startsWith('-') || raw.length > MAX_ACCOUNT_CHARS) {
32
+ throw new InvalidArgumentError(`Expected an alias, a connection id or scope:label, up to ${MAX_ACCOUNT_CHARS} characters.`);
33
+ }
34
+ return raw;
35
+ }
36
+ export const WORKSPACE_HELP = 'The workspace to use. Required with an API key, which is refused when you are not a member of it. ' +
37
+ 'Inside an agent turn the credential decides, and this is optional.';
38
+ /** A turn's token decides its workspace; a member's API key has to name one. */
39
+ export function workspaceFor(runtime, given) {
40
+ if (given)
41
+ return given;
42
+ if (isTurnToken(runtime.credentials().apiKey))
43
+ return undefined;
44
+ throw new UsageError('--workspace <id> is required with an API key. `kosuke workspaces list` shows the ids.');
45
+ }
@@ -2,13 +2,14 @@ import { readFile } from 'node:fs/promises';
2
2
  import { InvalidArgumentError } from 'commander';
3
3
  import { leafAt } from '../runtime/attach.js';
4
4
  import { HAND_WRITTEN } from './hand-written.js';
5
- import { isTurnToken } from '../runtime/credentials.js';
5
+ import { attachIntegrationsRequest } from './integrations-request.js';
6
+ import { accountText, CALL_TIMEOUT_MS, DELEGATED_RUN_HEADER, delegatedRunOf, toolkitSlug, UsageError, WORKSPACE_HELP, workspaceFor, } from './integrations-shared.js';
6
7
  import { jsonRequested } from '../runtime/runtime.js';
7
8
  import { connectionOf, failureOf, isRow, oneLine, readOverview, rowsOf, TOOLS_PATH, transportFailure, } from '../integrations/api.js';
8
9
  import { FILE_UPLOAD_PATH, fileSize, MAX_FILE_BYTES, md5Of, mimetypeOf, parseFileArgument, putFile, setAt, uploadName, } from '../integrations/file-upload.js';
9
10
  import { choiceLines, renderOverview } from '../integrations/render.js';
10
11
  /**
11
- * `kosuke integrations list|call` and `kosuke integrations tools get`: the connected tools,
12
+ * `kosuke integrations list|call|request` and `kosuke integrations tools get`: the connected tools,
12
13
  * listed and run from a laptop or an agent's shell. Hand-written because the output is text
13
14
  * and the exit code says whether the tool worked, which the generated, hidden
14
15
  * `integrations tools list` and `integrations tools call` (raw JSON passthroughs, kept
@@ -19,55 +20,23 @@ import { choiceLines, renderOverview } from '../integrations/render.js';
19
20
  */
20
21
  const EXECUTE_PATH = '/api/agent-integrations/execute';
21
22
  const READ_TIMEOUT_MS = 30_000;
22
- /**
23
- * One value for every call: the execute route's `maxDuration`, the longest the platform lets
24
- * one run. The platform decides from the tool and the account where a call runs, so the CLI cannot
25
- * give the others a shorter wait. They end sooner on the platform's side, a Composio read at its
26
- * 60 s budget, and wait no longer than their answer takes.
27
- */
28
- const CALL_TIMEOUT_MS = 330_000;
29
23
  /** One file's PUT to storage; the storage URL lets an upload start for an hour. */
30
24
  const UPLOAD_TIMEOUT_MS = 60 * 60_000;
31
25
  const EXIT_FAILED = 1;
32
26
  const EXIT_USAGE = 2;
33
- const TOOLKIT_PATTERN = /^[a-z0-9_]{1,64}$/;
34
27
  const MAX_SEARCH_CHARS = 100;
35
- const MAX_ACCOUNT_CHARS = 100;
36
- /** The header a call made by a Delegated Run carries, so the platform counts it as a delegate's. */
37
- const DELEGATED_RUN_HEADER = 'x-kosuke-delegated-run';
38
- /** The Delegated Run this process runs in, set by the sandbox for a full-access run, or null. */
39
- function delegatedRunOf(env) {
40
- const value = env.KOSUKE_DELEGATED_RUN_ID?.trim();
41
- return value && /^[A-Za-z0-9_-]{1,64}$/.test(value) ? value : null;
42
- }
43
- /** Wrong flags or arguments, found before any request. */
44
- class UsageError extends Error {
45
- }
46
28
  async function readAllStdin() {
47
29
  const chunks = [];
48
30
  for await (const chunk of process.stdin)
49
31
  chunks.push(Buffer.from(chunk));
50
32
  return Buffer.concat(chunks).toString('utf8');
51
33
  }
52
- function toolkitSlug(raw) {
53
- if (!TOOLKIT_PATTERN.test(raw)) {
54
- throw new InvalidArgumentError('Expected a toolkit slug such as gmail, as `list` prints it.');
55
- }
56
- return raw;
57
- }
58
34
  function searchText(raw) {
59
35
  if (raw.trim() === '' || raw.length > MAX_SEARCH_CHARS) {
60
36
  throw new InvalidArgumentError(`Expected 1 to ${MAX_SEARCH_CHARS} characters.`);
61
37
  }
62
38
  return raw;
63
39
  }
64
- function accountText(raw) {
65
- // A flag swallowed as the value (`--account --args`) shows as a leading dash.
66
- if (raw.trim() === '' || raw.startsWith('-') || raw.length > MAX_ACCOUNT_CHARS) {
67
- throw new InvalidArgumentError(`Expected an alias, a connection id or scope:label, up to ${MAX_ACCOUNT_CHARS} characters.`);
68
- }
69
- return raw;
70
- }
71
40
  function fileArguments(raw, previous = []) {
72
41
  const parsed = parseFileArgument(raw);
73
42
  if (!parsed) {
@@ -81,16 +50,6 @@ function limitNumber(raw) {
81
50
  }
82
51
  return Number(raw);
83
52
  }
84
- const WORKSPACE_HELP = 'The workspace to use. Required with an API key, which is refused when you are not a member of it. ' +
85
- 'Inside an agent turn the credential decides, and this is optional.';
86
- /** A turn's token decides its workspace; a member's API key has to name one. */
87
- function workspaceFor(runtime, given) {
88
- if (given)
89
- return given;
90
- if (isTurnToken(runtime.credentials().apiKey))
91
- return undefined;
92
- throw new UsageError('--workspace <id> is required with an API key. `kosuke workspaces list` shows the ids.');
93
- }
94
53
  /** The 409 that asks for `--account`: its choices, one per line. */
95
54
  function accountChoiceText(error, tool, given) {
96
55
  if (!isRow(error))
@@ -302,6 +261,15 @@ export function attachIntegrationsCommands(root, runtime, deps = {}) {
302
261
  }
303
262
  report(name, flags.account, data);
304
263
  }));
264
+ attachIntegrationsRequest(root, runtime, {
265
+ guarded,
266
+ fail,
267
+ report,
268
+ readStdin,
269
+ readText,
270
+ callTimeoutMs,
271
+ env,
272
+ });
305
273
  /**
306
274
  * Reserves one file's upload, sends the file to storage and answers its reference, or reports
307
275
  * the failure and answers null. Nothing is called yet, so a failure here changes nothing.
@@ -66,271 +66,272 @@ import { operation as o64 } from './integrations/connections-list.js';
66
66
  import { operation as o65 } from './integrations/connections-list--personal.js';
67
67
  import { operation as o66 } from './integrations/tools-call.js';
68
68
  import { operation as o67 } from './integrations/tools-list.js';
69
- import { operation as o68 } from './integrations/uploads-create.js';
70
- import { operation as o69 } from './mac/apps-list.js';
71
- import { operation as o70 } from './mac/ax-tree-get.js';
72
- import { operation as o71 } from './mac/browser-connections-list.js';
73
- import { operation as o72 } from './mac/browser-connections-update.js';
74
- import { operation as o73 } from './mac/browser-login.js';
75
- import { operation as o74 } from './mac/browser-profiles-list.js';
76
- import { operation as o75 } from './mac/browser-run.js';
77
- import { operation as o76 } from './mac/click.js';
78
- import { operation as o77 } from './mac/files-delete.js';
79
- import { operation as o78 } from './mac/files-get.js';
80
- import { operation as o79 } from './mac/files-list.js';
81
- import { operation as o80 } from './mac/files-move.js';
82
- import { operation as o81 } from './mac/files-set.js';
83
- import { operation as o82 } from './mac/key.js';
84
- import { operation as o83 } from './mac/open.js';
85
- import { operation as o84 } from './mac/screenshots-create.js';
86
- import { operation as o85 } from './mac/scroll.js';
87
- import { operation as o86 } from './mac/shell.js';
88
- import { operation as o87 } from './mac/status-get.js';
89
- import { operation as o88 } from './mac/type.js';
90
- import { operation as o89 } from './mac/windows-list.js';
91
- import { operation as o90 } from './models/list.js';
92
- import { operation as o91 } from './plugins/list.js';
93
- import { operation as o92 } from './plugins/list--personal.js';
94
- import { operation as o93 } from './plugins/update.js';
95
- import { operation as o94 } from './plugins/update--personal.js';
96
- import { operation as o95 } from './preview/get.js';
97
- import { operation as o96 } from './preview/health-get.js';
98
- import { operation as o97 } from './preview/sandbox-reset.js';
99
- import { operation as o98 } from './preview/share-create.js';
100
- import { operation as o99 } from './preview/share-delete.js';
101
- import { operation as o100 } from './preview/share-get.js';
102
- import { operation as o101 } from './preview/shared-artifacts-get.js';
103
- import { operation as o102 } from './preview/shared-get.js';
104
- import { operation as o103 } from './projects/batch-merging-finish.js';
105
- import { operation as o104 } from './projects/batch-merging-get.js';
106
- import { operation as o105 } from './projects/batch-merging-members-create.js';
107
- import { operation as o106 } from './projects/batch-merging-members-delete.js';
108
- import { operation as o107 } from './projects/batch-merging-picks-set.js';
109
- import { operation as o108 } from './projects/batch-merging-set.js';
110
- import { operation as o109 } from './projects/branches-list.js';
111
- import { operation as o110 } from './projects/create.js';
112
- import { operation as o111 } from './projects/delete.js';
113
- import { operation as o112 } from './projects/env-vars-create.js';
114
- import { operation as o113 } from './projects/env-vars-delete.js';
115
- import { operation as o114 } from './projects/estimate-accuracy-get.js';
116
- import { operation as o115 } from './projects/get.js';
117
- import { operation as o116 } from './projects/labels-delete.js';
118
- import { operation as o117 } from './projects/labels-list.js';
119
- import { operation as o118 } from './projects/labels-sessions-list.js';
120
- import { operation as o119 } from './projects/labels-update.js';
121
- import { operation as o120 } from './projects/list.js';
122
- import { operation as o121 } from './projects/live-logs-list.js';
123
- import { operation as o122 } from './projects/live-queries-run.js';
124
- import { operation as o123 } from './projects/live-traffic-get.js';
125
- import { operation as o124 } from './projects/merge-agent-get.js';
126
- import { operation as o125 } from './projects/merge-agent-merge.js';
127
- import { operation as o126 } from './projects/merge-agent-model-set.js';
128
- import { operation as o127 } from './projects/merge-agent-runs-list.js';
129
- import { operation as o128 } from './projects/merge-agent-sync.js';
130
- import { operation as o129 } from './projects/qa-guide-get.js';
131
- import { operation as o130 } from './projects/qa-guide-set.js';
132
- import { operation as o131 } from './projects/releases-list.js';
133
- import { operation as o132 } from './projects/services-create.js';
134
- import { operation as o133 } from './projects/services-delete.js';
135
- import { operation as o134 } from './projects/services-list.js';
136
- import { operation as o135 } from './projects/services-update.js';
137
- import { operation as o136 } from './projects/settings-get.js';
138
- import { operation as o137 } from './projects/settings-set.js';
139
- import { operation as o138 } from './projects/settings-update.js';
140
- import { operation as o139 } from './projects/skills-list.js';
141
- import { operation as o140 } from './projects/update.js';
142
- import { operation as o141 } from './projects/versions-list.js';
143
- import { operation as o142 } from './prototypes/create.js';
144
- import { operation as o143 } from './providers/access-get.js';
145
- import { operation as o144 } from './providers/default-model-set--personal.js';
146
- import { operation as o145 } from './providers/delete.js';
147
- import { operation as o146 } from './providers/delete--personal.js';
148
- import { operation as o147 } from './providers/get.js';
149
- import { operation as o148 } from './providers/get--personal.js';
150
- import { operation as o149 } from './providers/google-delete.js';
151
- import { operation as o150 } from './providers/google-get.js';
152
- import { operation as o151 } from './providers/google-methods-delete.js';
153
- import { operation as o152 } from './providers/google-methods-set.js';
154
- import { operation as o153 } from './providers/google-set.js';
155
- import { operation as o154 } from './providers/grok-get.js';
156
- import { operation as o155 } from './providers/grok-get--personal.js';
157
- import { operation as o156 } from './providers/grok-update.js';
158
- import { operation as o157 } from './providers/grok-update--personal.js';
159
- import { operation as o158 } from './providers/help-request-create.js';
160
- import { operation as o159 } from './providers/keys-set--personal.js';
161
- import { operation as o160 } from './providers/logins-cancel--personal-provider-antigravity.js';
162
- import { operation as o161 } from './providers/logins-cancel--provider-antigravity.js';
163
- import { operation as o162 } from './providers/logins-complete--personal-provider-antigravity.js';
164
- import { operation as o163 } from './providers/logins-complete--personal-provider-claude-code.js';
165
- import { operation as o164 } from './providers/logins-complete--personal-provider-codex.js';
166
- import { operation as o165 } from './providers/logins-complete--personal-provider-muse-code.js';
167
- import { operation as o166 } from './providers/logins-complete--provider-antigravity.js';
168
- import { operation as o167 } from './providers/logins-complete--provider-claude-code.js';
169
- import { operation as o168 } from './providers/logins-complete--provider-codex.js';
170
- import { operation as o169 } from './providers/logins-complete--provider-muse-code.js';
171
- import { operation as o170 } from './providers/logins-delete--personal.js';
172
- import { operation as o171 } from './providers/logins-recheck.js';
173
- import { operation as o172 } from './providers/logins-recheck--personal.js';
174
- import { operation as o173 } from './providers/logins-start--personal-provider-antigravity.js';
175
- import { operation as o174 } from './providers/logins-start--personal-provider-claude-code.js';
176
- import { operation as o175 } from './providers/logins-start--personal-provider-codex.js';
177
- import { operation as o176 } from './providers/logins-start--personal-provider-muse-code.js';
178
- import { operation as o177 } from './providers/logins-start--provider-antigravity.js';
179
- import { operation as o178 } from './providers/logins-start--provider-claude-code.js';
180
- import { operation as o179 } from './providers/logins-start--provider-codex.js';
181
- import { operation as o180 } from './providers/logins-start--provider-muse-code.js';
182
- import { operation as o181 } from './providers/set.js';
183
- import { operation as o182 } from './providers/token-usage-get.js';
184
- import { operation as o183 } from './providers/token-usage-get--personal.js';
185
- import { operation as o184 } from './providers/usage-get--personal.js';
186
- import { operation as o185 } from './providers/usage-get--provider-antigravity.js';
187
- import { operation as o186 } from './providers/usage-get--provider-claude-code.js';
188
- import { operation as o187 } from './providers/usage-get--provider-codex.js';
189
- import { operation as o188 } from './providers/usage-get--provider-coding-plan.js';
190
- import { operation as o189 } from './providers/usage-get--provider-deepseek-api.js';
191
- import { operation as o190 } from './providers/usage-get--provider-grok.js';
192
- import { operation as o191 } from './providers/usage-get--provider-kimi-code.js';
193
- import { operation as o192 } from './providers/usage-get--provider-muse-code.js';
194
- import { operation as o193 } from './sensei/calls-transcript-get.js';
195
- import { operation as o194 } from './sensei/cards-close.js';
196
- import { operation as o195 } from './sensei/cards-list.js';
197
- import { operation as o196 } from './sensei/cards-mark-read.js';
198
- import { operation as o197 } from './sensei/cards-reply.js';
199
- import { operation as o198 } from './sensei/cards-set.js';
200
- import { operation as o199 } from './sensei/chat-get.js';
201
- import { operation as o200 } from './sensei/connect-buttons-create.js';
202
- import { operation as o201 } from './sensei/delegates-get.js';
203
- import { operation as o202 } from './sensei/delegates-list.js';
204
- import { operation as o203 } from './sensei/delegates-notes-create.js';
205
- import { operation as o204 } from './sensei/delegates-start.js';
206
- import { operation as o205 } from './sensei/delegates-stop.js';
207
- import { operation as o206 } from './sensei/describe-cards-create.js';
208
- import { operation as o207 } from './sensei/device-requests-list.js';
209
- import { operation as o208 } from './sensei/device-requests-update.js';
210
- import { operation as o209 } from './sensei/fyi-move.js';
211
- import { operation as o210 } from './sensei/memory-get.js';
212
- import { operation as o211 } from './sensei/memory-set.js';
213
- import { operation as o212 } from './sensei/merge-rule-set.js';
214
- import { operation as o213 } from './sensei/messages-move.js';
215
- import { operation as o214 } from './sensei/messages-reply.js';
216
- import { operation as o215 } from './sensei/messages-send.js';
217
- import { operation as o216 } from './sensei/notifications-mark-read.js';
218
- import { operation as o217 } from './sensei/reels-activity-list.js';
219
- import { operation as o218 } from './sensei/repository-cards-create.js';
220
- import { operation as o219 } from './sensei/sessions-assessments-create.js';
221
- import { operation as o220 } from './sensei/sessions-facts-get.js';
222
- import { operation as o221 } from './sensei/suggestions-create.js';
223
- import { operation as o222 } from './sensei/threads-close.js';
224
- import { operation as o223 } from './sensei/threads-create.js';
225
- import { operation as o224 } from './sensei/threads-get.js';
226
- import { operation as o225 } from './sensei/threads-list.js';
227
- import { operation as o226 } from './sensei/threads-move.js';
228
- import { operation as o227 } from './sensei/threads-split.js';
229
- import { operation as o228 } from './sensei/tickets-merge.js';
230
- import { operation as o229 } from './sensei/watch-reads-finish.js';
231
- import { operation as o230 } from './sensei/widgets-get.js';
232
- import { operation as o231 } from './sensei/writing-get.js';
233
- import { operation as o232 } from './sensei/writing-set.js';
234
- import { operation as o233 } from './sensei/writing-samples-create.js';
235
- import { operation as o234 } from './sessions/app-stack-start.js';
236
- import { operation as o235 } from './sessions/artifacts-create.js';
237
- import { operation as o236 } from './sessions/artifacts-get.js';
238
- import { operation as o237 } from './sessions/artifacts-list.js';
239
- import { operation as o238 } from './sessions/create.js';
240
- import { operation as o239 } from './sessions/delete.js';
241
- import { operation as o240 } from './sessions/desktop-control-set.js';
242
- import { operation as o241 } from './sessions/desktop-get.js';
243
- import { operation as o242 } from './sessions/desktop-start.js';
244
- import { operation as o243 } from './sessions/diff-comments-create.js';
245
- import { operation as o244 } from './sessions/diff-comments-delete.js';
246
- import { operation as o245 } from './sessions/diff-comments-list.js';
247
- import { operation as o246 } from './sessions/diff-comments-update.js';
248
- import { operation as o247 } from './sessions/diff-commits-list.js';
249
- import { operation as o248 } from './sessions/diff-files-list.js';
250
- import { operation as o249 } from './sessions/diff-patch-get.js';
251
- import { operation as o250 } from './sessions/env-sync.js';
252
- import { operation as o251 } from './sessions/files-get.js';
253
- import { operation as o252 } from './sessions/files-list.js';
254
- import { operation as o253 } from './sessions/files-set.js';
255
- import { operation as o254 } from './sessions/get.js';
256
- import { operation as o255 } from './sessions/git-state-get.js';
257
- import { operation as o256 } from './sessions/go-ahead-delete.js';
258
- import { operation as o257 } from './sessions/go-ahead-set.js';
259
- import { operation as o258 } from './sessions/jobs-cancel.js';
260
- import { operation as o259 } from './sessions/jobs-get.js';
261
- import { operation as o260 } from './sessions/jobs-list.js';
262
- import { operation as o261 } from './sessions/labels-set.js';
263
- import { operation as o262 } from './sessions/labels-update.js';
264
- import { operation as o263 } from './sessions/list.js';
265
- import { operation as o264 } from './sessions/list--all.js';
266
- import { operation as o265 } from './sessions/mark-read.js';
267
- import { operation as o266 } from './sessions/messages-get.js';
268
- import { operation as o267 } from './sessions/messages-list.js';
269
- import { operation as o268 } from './sessions/prompt-update.js';
270
- import { operation as o269 } from './sessions/qa-runs-finish.js';
271
- import { operation as o270 } from './sessions/qa-runs-fixes-create.js';
272
- import { operation as o271 } from './sessions/qa-runs-get.js';
273
- import { operation as o272 } from './sessions/qa-runs-results-create.js';
274
- import { operation as o273 } from './sessions/qa-runs-start.js';
275
- import { operation as o274 } from './sessions/qa-runs-stop.js';
276
- import { operation as o275 } from './sessions/qa-set.js';
277
- import { operation as o276 } from './sessions/queue-delete.js';
278
- import { operation as o277 } from './sessions/queue-list.js';
279
- import { operation as o278 } from './sessions/queue-move.js';
280
- import { operation as o279 } from './sessions/queue-resume.js';
281
- import { operation as o280 } from './sessions/queue-send.js';
282
- import { operation as o281 } from './sessions/queue-steer.js';
283
- import { operation as o282 } from './sessions/queue-update.js';
284
- import { operation as o283 } from './sessions/review-set.js';
285
- import { operation as o284 } from './sessions/runtime-commands-run.js';
286
- import { operation as o285 } from './sessions/search.js';
287
- import { operation as o286 } from './sessions/send.js';
288
- import { operation as o287 } from './sessions/start.js';
289
- import { operation as o288 } from './sessions/steer.js';
290
- import { operation as o289 } from './sessions/update.js';
291
- import { operation as o290 } from './skills/create.js';
292
- import { operation as o291 } from './skills/create--personal.js';
293
- import { operation as o292 } from './skills/delete.js';
294
- import { operation as o293 } from './skills/delete--personal.js';
295
- import { operation as o294 } from './skills/get.js';
296
- import { operation as o295 } from './skills/get--personal.js';
297
- import { operation as o296 } from './skills/list.js';
298
- import { operation as o297 } from './skills/list--personal.js';
299
- import { operation as o298 } from './skills/update.js';
300
- import { operation as o299 } from './skills/update--personal.js';
301
- import { operation as o300 } from './tasks/create.js';
302
- import { operation as o301 } from './tasks/create--personal.js';
303
- import { operation as o302 } from './tasks/delete.js';
304
- import { operation as o303 } from './tasks/delete--personal.js';
305
- import { operation as o304 } from './tasks/get.js';
306
- import { operation as o305 } from './tasks/get--personal.js';
307
- import { operation as o306 } from './tasks/labels-list.js';
308
- import { operation as o307 } from './tasks/list.js';
309
- import { operation as o308 } from './tasks/list--all.js';
310
- import { operation as o309 } from './tasks/list--personal.js';
311
- import { operation as o310 } from './tasks/move.js';
312
- import { operation as o311 } from './tasks/move--personal.js';
313
- import { operation as o312 } from './tasks/start.js';
314
- import { operation as o313 } from './tasks/start--personal.js';
315
- import { operation as o314 } from './tasks/update.js';
316
- import { operation as o315 } from './tasks/update--personal.js';
317
- import { operation as o316 } from './user/api-keys-delete.js';
318
- import { operation as o317 } from './user/personal-space-get.js';
319
- import { operation as o318 } from './user/profile-get.js';
320
- import { operation as o319 } from './user/push-devices-create.js';
321
- import { operation as o320 } from './user/push-devices-delete.js';
322
- import { operation as o321 } from './user/usage-get.js';
323
- import { operation as o322 } from './workspaces/artifacts-search.js';
324
- import { operation as o323 } from './workspaces/credits-get.js';
325
- import { operation as o324 } from './workspaces/get.js';
326
- import { operation as o325 } from './workspaces/list.js';
327
- import { operation as o326 } from './workspaces/members-list.js';
328
- import { operation as o327 } from './workspaces/members-list--all.js';
329
- import { operation as o328 } from './workspaces/sandbox-limit-get.js';
330
- import { operation as o329 } from './workspaces/sandboxes-stop.js';
331
- import { operation as o330 } from './workspaces/timezone-set.js';
332
- import { operation as o331 } from './workspaces/usage-breakdown-get.js';
333
- import { operation as o332 } from './workspaces/usage-get.js';
69
+ import { operation as o68 } from './integrations/tools-request.js';
70
+ import { operation as o69 } from './integrations/uploads-create.js';
71
+ import { operation as o70 } from './mac/apps-list.js';
72
+ import { operation as o71 } from './mac/ax-tree-get.js';
73
+ import { operation as o72 } from './mac/browser-connections-list.js';
74
+ import { operation as o73 } from './mac/browser-connections-update.js';
75
+ import { operation as o74 } from './mac/browser-login.js';
76
+ import { operation as o75 } from './mac/browser-profiles-list.js';
77
+ import { operation as o76 } from './mac/browser-run.js';
78
+ import { operation as o77 } from './mac/click.js';
79
+ import { operation as o78 } from './mac/files-delete.js';
80
+ import { operation as o79 } from './mac/files-get.js';
81
+ import { operation as o80 } from './mac/files-list.js';
82
+ import { operation as o81 } from './mac/files-move.js';
83
+ import { operation as o82 } from './mac/files-set.js';
84
+ import { operation as o83 } from './mac/key.js';
85
+ import { operation as o84 } from './mac/open.js';
86
+ import { operation as o85 } from './mac/screenshots-create.js';
87
+ import { operation as o86 } from './mac/scroll.js';
88
+ import { operation as o87 } from './mac/shell.js';
89
+ import { operation as o88 } from './mac/status-get.js';
90
+ import { operation as o89 } from './mac/type.js';
91
+ import { operation as o90 } from './mac/windows-list.js';
92
+ import { operation as o91 } from './models/list.js';
93
+ import { operation as o92 } from './plugins/list.js';
94
+ import { operation as o93 } from './plugins/list--personal.js';
95
+ import { operation as o94 } from './plugins/update.js';
96
+ import { operation as o95 } from './plugins/update--personal.js';
97
+ import { operation as o96 } from './preview/get.js';
98
+ import { operation as o97 } from './preview/health-get.js';
99
+ import { operation as o98 } from './preview/sandbox-reset.js';
100
+ import { operation as o99 } from './preview/share-create.js';
101
+ import { operation as o100 } from './preview/share-delete.js';
102
+ import { operation as o101 } from './preview/share-get.js';
103
+ import { operation as o102 } from './preview/shared-artifacts-get.js';
104
+ import { operation as o103 } from './preview/shared-get.js';
105
+ import { operation as o104 } from './projects/batch-merging-finish.js';
106
+ import { operation as o105 } from './projects/batch-merging-get.js';
107
+ import { operation as o106 } from './projects/batch-merging-members-create.js';
108
+ import { operation as o107 } from './projects/batch-merging-members-delete.js';
109
+ import { operation as o108 } from './projects/batch-merging-picks-set.js';
110
+ import { operation as o109 } from './projects/batch-merging-set.js';
111
+ import { operation as o110 } from './projects/branches-list.js';
112
+ import { operation as o111 } from './projects/create.js';
113
+ import { operation as o112 } from './projects/delete.js';
114
+ import { operation as o113 } from './projects/env-vars-create.js';
115
+ import { operation as o114 } from './projects/env-vars-delete.js';
116
+ import { operation as o115 } from './projects/estimate-accuracy-get.js';
117
+ import { operation as o116 } from './projects/get.js';
118
+ import { operation as o117 } from './projects/labels-delete.js';
119
+ import { operation as o118 } from './projects/labels-list.js';
120
+ import { operation as o119 } from './projects/labels-sessions-list.js';
121
+ import { operation as o120 } from './projects/labels-update.js';
122
+ import { operation as o121 } from './projects/list.js';
123
+ import { operation as o122 } from './projects/live-logs-list.js';
124
+ import { operation as o123 } from './projects/live-queries-run.js';
125
+ import { operation as o124 } from './projects/live-traffic-get.js';
126
+ import { operation as o125 } from './projects/merge-agent-get.js';
127
+ import { operation as o126 } from './projects/merge-agent-merge.js';
128
+ import { operation as o127 } from './projects/merge-agent-model-set.js';
129
+ import { operation as o128 } from './projects/merge-agent-runs-list.js';
130
+ import { operation as o129 } from './projects/merge-agent-sync.js';
131
+ import { operation as o130 } from './projects/qa-guide-get.js';
132
+ import { operation as o131 } from './projects/qa-guide-set.js';
133
+ import { operation as o132 } from './projects/releases-list.js';
134
+ import { operation as o133 } from './projects/services-create.js';
135
+ import { operation as o134 } from './projects/services-delete.js';
136
+ import { operation as o135 } from './projects/services-list.js';
137
+ import { operation as o136 } from './projects/services-update.js';
138
+ import { operation as o137 } from './projects/settings-get.js';
139
+ import { operation as o138 } from './projects/settings-set.js';
140
+ import { operation as o139 } from './projects/settings-update.js';
141
+ import { operation as o140 } from './projects/skills-list.js';
142
+ import { operation as o141 } from './projects/update.js';
143
+ import { operation as o142 } from './projects/versions-list.js';
144
+ import { operation as o143 } from './prototypes/create.js';
145
+ import { operation as o144 } from './providers/access-get.js';
146
+ import { operation as o145 } from './providers/default-model-set--personal.js';
147
+ import { operation as o146 } from './providers/delete.js';
148
+ import { operation as o147 } from './providers/delete--personal.js';
149
+ import { operation as o148 } from './providers/get.js';
150
+ import { operation as o149 } from './providers/get--personal.js';
151
+ import { operation as o150 } from './providers/google-delete.js';
152
+ import { operation as o151 } from './providers/google-get.js';
153
+ import { operation as o152 } from './providers/google-methods-delete.js';
154
+ import { operation as o153 } from './providers/google-methods-set.js';
155
+ import { operation as o154 } from './providers/google-set.js';
156
+ import { operation as o155 } from './providers/grok-get.js';
157
+ import { operation as o156 } from './providers/grok-get--personal.js';
158
+ import { operation as o157 } from './providers/grok-update.js';
159
+ import { operation as o158 } from './providers/grok-update--personal.js';
160
+ import { operation as o159 } from './providers/help-request-create.js';
161
+ import { operation as o160 } from './providers/keys-set--personal.js';
162
+ import { operation as o161 } from './providers/logins-cancel--personal-provider-antigravity.js';
163
+ import { operation as o162 } from './providers/logins-cancel--provider-antigravity.js';
164
+ import { operation as o163 } from './providers/logins-complete--personal-provider-antigravity.js';
165
+ import { operation as o164 } from './providers/logins-complete--personal-provider-claude-code.js';
166
+ import { operation as o165 } from './providers/logins-complete--personal-provider-codex.js';
167
+ import { operation as o166 } from './providers/logins-complete--personal-provider-muse-code.js';
168
+ import { operation as o167 } from './providers/logins-complete--provider-antigravity.js';
169
+ import { operation as o168 } from './providers/logins-complete--provider-claude-code.js';
170
+ import { operation as o169 } from './providers/logins-complete--provider-codex.js';
171
+ import { operation as o170 } from './providers/logins-complete--provider-muse-code.js';
172
+ import { operation as o171 } from './providers/logins-delete--personal.js';
173
+ import { operation as o172 } from './providers/logins-recheck.js';
174
+ import { operation as o173 } from './providers/logins-recheck--personal.js';
175
+ import { operation as o174 } from './providers/logins-start--personal-provider-antigravity.js';
176
+ import { operation as o175 } from './providers/logins-start--personal-provider-claude-code.js';
177
+ import { operation as o176 } from './providers/logins-start--personal-provider-codex.js';
178
+ import { operation as o177 } from './providers/logins-start--personal-provider-muse-code.js';
179
+ import { operation as o178 } from './providers/logins-start--provider-antigravity.js';
180
+ import { operation as o179 } from './providers/logins-start--provider-claude-code.js';
181
+ import { operation as o180 } from './providers/logins-start--provider-codex.js';
182
+ import { operation as o181 } from './providers/logins-start--provider-muse-code.js';
183
+ import { operation as o182 } from './providers/set.js';
184
+ import { operation as o183 } from './providers/token-usage-get.js';
185
+ import { operation as o184 } from './providers/token-usage-get--personal.js';
186
+ import { operation as o185 } from './providers/usage-get--personal.js';
187
+ import { operation as o186 } from './providers/usage-get--provider-antigravity.js';
188
+ import { operation as o187 } from './providers/usage-get--provider-claude-code.js';
189
+ import { operation as o188 } from './providers/usage-get--provider-codex.js';
190
+ import { operation as o189 } from './providers/usage-get--provider-coding-plan.js';
191
+ import { operation as o190 } from './providers/usage-get--provider-deepseek-api.js';
192
+ import { operation as o191 } from './providers/usage-get--provider-grok.js';
193
+ import { operation as o192 } from './providers/usage-get--provider-kimi-code.js';
194
+ import { operation as o193 } from './providers/usage-get--provider-muse-code.js';
195
+ import { operation as o194 } from './sensei/calls-transcript-get.js';
196
+ import { operation as o195 } from './sensei/cards-close.js';
197
+ import { operation as o196 } from './sensei/cards-list.js';
198
+ import { operation as o197 } from './sensei/cards-mark-read.js';
199
+ import { operation as o198 } from './sensei/cards-reply.js';
200
+ import { operation as o199 } from './sensei/cards-set.js';
201
+ import { operation as o200 } from './sensei/chat-get.js';
202
+ import { operation as o201 } from './sensei/connect-buttons-create.js';
203
+ import { operation as o202 } from './sensei/delegates-get.js';
204
+ import { operation as o203 } from './sensei/delegates-list.js';
205
+ import { operation as o204 } from './sensei/delegates-notes-create.js';
206
+ import { operation as o205 } from './sensei/delegates-start.js';
207
+ import { operation as o206 } from './sensei/delegates-stop.js';
208
+ import { operation as o207 } from './sensei/describe-cards-create.js';
209
+ import { operation as o208 } from './sensei/device-requests-list.js';
210
+ import { operation as o209 } from './sensei/device-requests-update.js';
211
+ import { operation as o210 } from './sensei/fyi-move.js';
212
+ import { operation as o211 } from './sensei/memory-get.js';
213
+ import { operation as o212 } from './sensei/memory-set.js';
214
+ import { operation as o213 } from './sensei/merge-rule-set.js';
215
+ import { operation as o214 } from './sensei/messages-move.js';
216
+ import { operation as o215 } from './sensei/messages-reply.js';
217
+ import { operation as o216 } from './sensei/messages-send.js';
218
+ import { operation as o217 } from './sensei/notifications-mark-read.js';
219
+ import { operation as o218 } from './sensei/reels-activity-list.js';
220
+ import { operation as o219 } from './sensei/repository-cards-create.js';
221
+ import { operation as o220 } from './sensei/sessions-assessments-create.js';
222
+ import { operation as o221 } from './sensei/sessions-facts-get.js';
223
+ import { operation as o222 } from './sensei/suggestions-create.js';
224
+ import { operation as o223 } from './sensei/threads-close.js';
225
+ import { operation as o224 } from './sensei/threads-create.js';
226
+ import { operation as o225 } from './sensei/threads-get.js';
227
+ import { operation as o226 } from './sensei/threads-list.js';
228
+ import { operation as o227 } from './sensei/threads-move.js';
229
+ import { operation as o228 } from './sensei/threads-split.js';
230
+ import { operation as o229 } from './sensei/tickets-merge.js';
231
+ import { operation as o230 } from './sensei/watch-reads-finish.js';
232
+ import { operation as o231 } from './sensei/widgets-get.js';
233
+ import { operation as o232 } from './sensei/writing-get.js';
234
+ import { operation as o233 } from './sensei/writing-set.js';
235
+ import { operation as o234 } from './sensei/writing-samples-create.js';
236
+ import { operation as o235 } from './sessions/app-stack-start.js';
237
+ import { operation as o236 } from './sessions/artifacts-create.js';
238
+ import { operation as o237 } from './sessions/artifacts-get.js';
239
+ import { operation as o238 } from './sessions/artifacts-list.js';
240
+ import { operation as o239 } from './sessions/create.js';
241
+ import { operation as o240 } from './sessions/delete.js';
242
+ import { operation as o241 } from './sessions/desktop-control-set.js';
243
+ import { operation as o242 } from './sessions/desktop-get.js';
244
+ import { operation as o243 } from './sessions/desktop-start.js';
245
+ import { operation as o244 } from './sessions/diff-comments-create.js';
246
+ import { operation as o245 } from './sessions/diff-comments-delete.js';
247
+ import { operation as o246 } from './sessions/diff-comments-list.js';
248
+ import { operation as o247 } from './sessions/diff-comments-update.js';
249
+ import { operation as o248 } from './sessions/diff-commits-list.js';
250
+ import { operation as o249 } from './sessions/diff-files-list.js';
251
+ import { operation as o250 } from './sessions/diff-patch-get.js';
252
+ import { operation as o251 } from './sessions/env-sync.js';
253
+ import { operation as o252 } from './sessions/files-get.js';
254
+ import { operation as o253 } from './sessions/files-list.js';
255
+ import { operation as o254 } from './sessions/files-set.js';
256
+ import { operation as o255 } from './sessions/get.js';
257
+ import { operation as o256 } from './sessions/git-state-get.js';
258
+ import { operation as o257 } from './sessions/go-ahead-delete.js';
259
+ import { operation as o258 } from './sessions/go-ahead-set.js';
260
+ import { operation as o259 } from './sessions/jobs-cancel.js';
261
+ import { operation as o260 } from './sessions/jobs-get.js';
262
+ import { operation as o261 } from './sessions/jobs-list.js';
263
+ import { operation as o262 } from './sessions/labels-set.js';
264
+ import { operation as o263 } from './sessions/labels-update.js';
265
+ import { operation as o264 } from './sessions/list.js';
266
+ import { operation as o265 } from './sessions/list--all.js';
267
+ import { operation as o266 } from './sessions/mark-read.js';
268
+ import { operation as o267 } from './sessions/messages-get.js';
269
+ import { operation as o268 } from './sessions/messages-list.js';
270
+ import { operation as o269 } from './sessions/prompt-update.js';
271
+ import { operation as o270 } from './sessions/qa-runs-finish.js';
272
+ import { operation as o271 } from './sessions/qa-runs-fixes-create.js';
273
+ import { operation as o272 } from './sessions/qa-runs-get.js';
274
+ import { operation as o273 } from './sessions/qa-runs-results-create.js';
275
+ import { operation as o274 } from './sessions/qa-runs-start.js';
276
+ import { operation as o275 } from './sessions/qa-runs-stop.js';
277
+ import { operation as o276 } from './sessions/qa-set.js';
278
+ import { operation as o277 } from './sessions/queue-delete.js';
279
+ import { operation as o278 } from './sessions/queue-list.js';
280
+ import { operation as o279 } from './sessions/queue-move.js';
281
+ import { operation as o280 } from './sessions/queue-resume.js';
282
+ import { operation as o281 } from './sessions/queue-send.js';
283
+ import { operation as o282 } from './sessions/queue-steer.js';
284
+ import { operation as o283 } from './sessions/queue-update.js';
285
+ import { operation as o284 } from './sessions/review-set.js';
286
+ import { operation as o285 } from './sessions/runtime-commands-run.js';
287
+ import { operation as o286 } from './sessions/search.js';
288
+ import { operation as o287 } from './sessions/send.js';
289
+ import { operation as o288 } from './sessions/start.js';
290
+ import { operation as o289 } from './sessions/steer.js';
291
+ import { operation as o290 } from './sessions/update.js';
292
+ import { operation as o291 } from './skills/create.js';
293
+ import { operation as o292 } from './skills/create--personal.js';
294
+ import { operation as o293 } from './skills/delete.js';
295
+ import { operation as o294 } from './skills/delete--personal.js';
296
+ import { operation as o295 } from './skills/get.js';
297
+ import { operation as o296 } from './skills/get--personal.js';
298
+ import { operation as o297 } from './skills/list.js';
299
+ import { operation as o298 } from './skills/list--personal.js';
300
+ import { operation as o299 } from './skills/update.js';
301
+ import { operation as o300 } from './skills/update--personal.js';
302
+ import { operation as o301 } from './tasks/create.js';
303
+ import { operation as o302 } from './tasks/create--personal.js';
304
+ import { operation as o303 } from './tasks/delete.js';
305
+ import { operation as o304 } from './tasks/delete--personal.js';
306
+ import { operation as o305 } from './tasks/get.js';
307
+ import { operation as o306 } from './tasks/get--personal.js';
308
+ import { operation as o307 } from './tasks/labels-list.js';
309
+ import { operation as o308 } from './tasks/list.js';
310
+ import { operation as o309 } from './tasks/list--all.js';
311
+ import { operation as o310 } from './tasks/list--personal.js';
312
+ import { operation as o311 } from './tasks/move.js';
313
+ import { operation as o312 } from './tasks/move--personal.js';
314
+ import { operation as o313 } from './tasks/start.js';
315
+ import { operation as o314 } from './tasks/start--personal.js';
316
+ import { operation as o315 } from './tasks/update.js';
317
+ import { operation as o316 } from './tasks/update--personal.js';
318
+ import { operation as o317 } from './user/api-keys-delete.js';
319
+ import { operation as o318 } from './user/personal-space-get.js';
320
+ import { operation as o319 } from './user/profile-get.js';
321
+ import { operation as o320 } from './user/push-devices-create.js';
322
+ import { operation as o321 } from './user/push-devices-delete.js';
323
+ import { operation as o322 } from './user/usage-get.js';
324
+ import { operation as o323 } from './workspaces/artifacts-search.js';
325
+ import { operation as o324 } from './workspaces/credits-get.js';
326
+ import { operation as o325 } from './workspaces/get.js';
327
+ import { operation as o326 } from './workspaces/list.js';
328
+ import { operation as o327 } from './workspaces/members-list.js';
329
+ import { operation as o328 } from './workspaces/members-list--all.js';
330
+ import { operation as o329 } from './workspaces/sandbox-limit-get.js';
331
+ import { operation as o330 } from './workspaces/sandboxes-stop.js';
332
+ import { operation as o331 } from './workspaces/timezone-set.js';
333
+ import { operation as o332 } from './workspaces/usage-breakdown-get.js';
334
+ import { operation as o333 } from './workspaces/usage-get.js';
334
335
  export const operations = [
335
336
  o0,
336
337
  o1,
@@ -665,4 +666,5 @@ export const operations = [
665
666
  o330,
666
667
  o331,
667
668
  o332,
669
+ o333,
668
670
  ];
@@ -0,0 +1,87 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/agent-integrations/requests",
4
+ "command": [
5
+ "integrations",
6
+ "tools",
7
+ "request"
8
+ ],
9
+ "hidden": true,
10
+ "summary": "Send one request straight to a Composio toolkit’s own API through a connection you reach, for an action no listed tool does. Composio adds the credentials on the server. It follows the same connection rules, write checks and rate limit as a tool call. Refused before any vendor call: a toolkit that is not Composio’s or is limited to its reviewed tools, DELETE, headers, an absolute URL and a path with %, .. or an empty segment. With an API key it runs only on your own personal connections. A vendor’s refusal answers 200 with isError true.",
11
+ "pathParams": [],
12
+ "query": [
13
+ {
14
+ "name": "workspace",
15
+ "flag": "workspace",
16
+ "kind": "string",
17
+ "required": false,
18
+ "description": "The workspace the request is made in. Required with an API key, which is refused with 403 when you are not a member of it. An agent credential reaches its own workspace and refuses another."
19
+ }
20
+ ],
21
+ "body": {
22
+ "fields": [
23
+ {
24
+ "name": "toolkit",
25
+ "flag": "toolkit",
26
+ "kind": "string",
27
+ "required": true,
28
+ "description": "The Composio toolkit, by slug."
29
+ },
30
+ {
31
+ "name": "method",
32
+ "flag": "method",
33
+ "kind": "string",
34
+ "required": true,
35
+ "description": "GET is a read; the others are writes.",
36
+ "choices": [
37
+ "GET",
38
+ "POST",
39
+ "PUT",
40
+ "PATCH"
41
+ ]
42
+ },
43
+ {
44
+ "name": "path",
45
+ "flag": "path",
46
+ "kind": "string",
47
+ "required": true,
48
+ "description": "Relative to the toolkit's API base URL: it starts with /, with no %, no .. and no empty segment."
49
+ },
50
+ {
51
+ "name": "query",
52
+ "flag": "query",
53
+ "kind": "json",
54
+ "required": false,
55
+ "description": "The query, as name and value pairs. A name may repeat.",
56
+ "shape": "unknown[] (max 2)[] (max 100)"
57
+ },
58
+ {
59
+ "name": "body",
60
+ "flag": "field-body",
61
+ "kind": "json",
62
+ "required": false,
63
+ "description": "A JSON object, at most 60 KiB. A GET takes none.",
64
+ "shape": "{[key: string]: unknown}"
65
+ },
66
+ {
67
+ "name": "account",
68
+ "flag": "account",
69
+ "kind": "string",
70
+ "required": false,
71
+ "description": "The connection to run on: its short id, its alias such as googlecalendar-personal, or scope:label. Needed when you have several."
72
+ },
73
+ {
74
+ "name": "purpose",
75
+ "flag": "purpose",
76
+ "kind": "string",
77
+ "required": true,
78
+ "description": "One line on what the member wanted that no listed tool does, with no names, emails or event titles. It is stored with the usage row."
79
+ }
80
+ ],
81
+ "required": true
82
+ },
83
+ "multipart": null,
84
+ "attachments": false,
85
+ "anonymous": false,
86
+ "agents": "all"
87
+ };
@@ -9,7 +9,7 @@ const UNAVAILABLE = 'Integration tools are temporarily unavailable.';
9
9
  const TOO_LARGE = 'The platform answer was too large to read. Narrow the request.';
10
10
  const TIMED_OUT = 'The platform did not answer in time.';
11
11
  /** A write may have landed before the connection failed; a retry could repeat it. */
12
- const UNKNOWN_OUTCOME = 'The integration tool call did not complete and its outcome is unknown. Do not retry it; read the current state first.';
12
+ export const UNKNOWN_OUTCOME = 'The integration tool call did not complete and its outcome is unknown. Do not retry it; read the current state first.';
13
13
  export const isRow = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
14
14
  export const rowsOf = (value) => (Array.isArray(value) ? value.filter(isRow) : []);
15
15
  /** One bounded line: control characters and runs of space become one space. */
@@ -33,6 +33,16 @@ export function connectionOf(row) {
33
33
  accountIdentity: oneLine(row.accountIdentity, 80) || null,
34
34
  };
35
35
  }
36
+ function directRequestsOf(value) {
37
+ if (!isRow(value))
38
+ return null;
39
+ if (value.available === true) {
40
+ return { available: true, baseUrl: oneLine(value.baseUrl, 200) || null };
41
+ }
42
+ return value.available === false
43
+ ? { available: false, reason: oneLine(value.reason, 300) }
44
+ : null;
45
+ }
36
46
  /** `data` of a `view=overview` answer, or null for any other shape (an older platform's). */
37
47
  function parseOverview(data) {
38
48
  if (!isRow(data) || data.view !== 'overview' || !Array.isArray(data.toolkits))
@@ -47,6 +57,7 @@ function parseOverview(data) {
47
57
  connections: rowsOf(row.connections).flatMap((connection) => connectionOf(connection) ?? []),
48
58
  read: count(tools.read),
49
59
  write: count(tools.write),
60
+ directRequests: directRequestsOf(row.directRequests),
50
61
  };
51
62
  });
52
63
  const tools = Array.isArray(data.tools)
@@ -14,6 +14,13 @@ function toolLine(tool, width) {
14
14
  const accounts = tool.aliases.length > 0 ? ` [account: ${tool.aliases.join(', ')}]` : '';
15
15
  return `${tool.name.padEnd(width)} ${access} ${tool.description}${accounts}`.trimEnd();
16
16
  }
17
+ function directRequestsLine({ toolkit, directRequests }) {
18
+ if (!directRequests?.available) {
19
+ return `direct requests: not available. ${directRequests?.reason ?? ''}`.trimEnd();
20
+ }
21
+ const base = directRequests.baseUrl ?? 'the one Composio holds for the connection';
22
+ return `direct requests: available with \`kosuke integrations request ${toolkit}\`, for what no tool here does. API base URL: ${base}`;
23
+ }
17
24
  export function renderOverview(overview, filtered) {
18
25
  const { toolkits, tools, note } = overview;
19
26
  if (toolkits.length === 0 && overview.connectionTotal === 0) {
@@ -21,12 +28,14 @@ export function renderOverview(overview, filtered) {
21
28
  }
22
29
  // A browser site has connections and no tools, so a filter naming it still shows them.
23
30
  const connected = toolkits.some((toolkit) => toolkit.browser && toolkit.connections.length > 0);
24
- if (filtered && tools?.length === 0 && !connected)
25
- return 'No connected tool matches.\n';
31
+ if (filtered && tools?.length === 0 && !connected) {
32
+ const direct = toolkits.filter((toolkit) => toolkit.directRequests).map(directRequestsLine);
33
+ return `${['No connected tool matches.', ...direct].join('\n')}\n`;
34
+ }
26
35
  const width = Math.max(0, ...(tools ?? []).map((tool) => tool.name.length));
27
36
  const blocks = toolkits.map((toolkit) => {
28
- // A browser site lists no tools, so its line names how it is used: an agent told that only
29
- // listed actions exist would read "no tools" as a site it cannot use.
37
+ // A browser site lists no tools, so its line names how it is used: an agent would read
38
+ // "no tools" as a site it cannot use.
30
39
  const offer = toolkit.browser
31
40
  ? 'browser, no tools: use it in the browser on its Mac (kosuke mac browser run)'
32
41
  : `${toolkit.read} read, ${toolkit.write} write tools`;
@@ -34,6 +43,8 @@ export function renderOverview(overview, filtered) {
34
43
  `${toolkit.name} (${toolkit.toolkit}): ${offer}`,
35
44
  ...toolkit.connections.map((connection) => ` ${connectionLine(connection)}`),
36
45
  ];
46
+ if (toolkit.directRequests)
47
+ lines.push(` ${directRequestsLine(toolkit)}`);
37
48
  const own = (tools ?? []).filter((tool) => tool.toolkit === toolkit.toolkit);
38
49
  if (own.length > 0) {
39
50
  lines.push(' tools:', ...own.map((tool) => ` ${toolLine(tool, width)}`));
package/openapi.json CHANGED
@@ -333,6 +333,134 @@
333
333
  }
334
334
  }
335
335
  },
336
+ "/api/agent-integrations/requests": {
337
+ "post": {
338
+ "operationId": "integrationsToolsRequest",
339
+ "summary": "Send one request straight to a Composio toolkit’s own API through a connection you reach, for an action no listed tool does. Composio adds the credentials on the server. It follows the same connection rules, write checks and rate limit as a tool call. Refused before any vendor call: a toolkit that is not Composio’s or is limited to its reviewed tools, DELETE, headers, an absolute URL and a path with %, .. or an empty segment. With an API key it runs only on your own personal connections. A vendor’s refusal answers 200 with isError true.",
340
+ "tags": ["integrations"],
341
+ "x-kosuke-command": ["integrations", "tools", "request"],
342
+ "x-kosuke-hidden": true,
343
+ "x-kosuke-sandbox-token": true,
344
+ "x-kosuke-cron-token": true,
345
+ "x-kosuke-sensei-token": true,
346
+ "parameters": [
347
+ {
348
+ "name": "workspace",
349
+ "in": "query",
350
+ "required": false,
351
+ "description": "The workspace the request is made in. Required with an API key, which is refused with 403 when you are not a member of it. An agent credential reaches its own workspace and refuses another.",
352
+ "schema": {
353
+ "description": "The workspace the request is made in. Required with an API key, which is refused with 403 when you are not a member of it. An agent credential reaches its own workspace and refuses another.",
354
+ "type": "string",
355
+ "minLength": 1,
356
+ "maxLength": 100
357
+ }
358
+ }
359
+ ],
360
+ "requestBody": {
361
+ "required": true,
362
+ "content": {
363
+ "application/json": {
364
+ "schema": {
365
+ "type": "object",
366
+ "properties": {
367
+ "toolkit": {
368
+ "type": "string",
369
+ "minLength": 1,
370
+ "maxLength": 64,
371
+ "description": "The Composio toolkit, by slug."
372
+ },
373
+ "method": {
374
+ "type": "string",
375
+ "enum": ["GET", "POST", "PUT", "PATCH"],
376
+ "description": "GET is a read; the others are writes."
377
+ },
378
+ "path": {
379
+ "type": "string",
380
+ "minLength": 1,
381
+ "maxLength": 2048,
382
+ "description": "Relative to the toolkit's API base URL: it starts with /, with no %, no .. and no empty segment."
383
+ },
384
+ "query": {
385
+ "description": "The query, as name and value pairs. A name may repeat.",
386
+ "maxItems": 100,
387
+ "type": "array",
388
+ "items": {
389
+ "type": "array",
390
+ "prefixItems": [
391
+ {
392
+ "type": "string"
393
+ },
394
+ {
395
+ "type": "string"
396
+ }
397
+ ],
398
+ "items": false,
399
+ "minItems": 2,
400
+ "maxItems": 2
401
+ }
402
+ },
403
+ "body": {
404
+ "description": "A JSON object, at most 60 KiB. A GET takes none.",
405
+ "type": "object",
406
+ "propertyNames": {
407
+ "type": "string"
408
+ },
409
+ "additionalProperties": {}
410
+ },
411
+ "account": {
412
+ "description": "The connection to run on: its short id, its alias such as googlecalendar-personal, or scope:label. Needed when you have several.",
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 100
416
+ },
417
+ "purpose": {
418
+ "type": "string",
419
+ "minLength": 1,
420
+ "maxLength": 120,
421
+ "description": "One line on what the member wanted that no listed tool does, with no names, emails or event titles. It is stored with the usage row."
422
+ }
423
+ },
424
+ "required": ["toolkit", "method", "path", "purpose"],
425
+ "additionalProperties": false
426
+ }
427
+ }
428
+ }
429
+ },
430
+ "responses": {
431
+ "2XX": {
432
+ "description": "Success envelope",
433
+ "content": {
434
+ "application/json": {
435
+ "schema": {
436
+ "$ref": "#/components/schemas/ApiSuccess"
437
+ }
438
+ }
439
+ }
440
+ },
441
+ "4XX": {
442
+ "description": "Error envelope",
443
+ "content": {
444
+ "application/json": {
445
+ "schema": {
446
+ "$ref": "#/components/schemas/ApiError"
447
+ }
448
+ }
449
+ }
450
+ },
451
+ "5XX": {
452
+ "description": "Error envelope",
453
+ "content": {
454
+ "application/json": {
455
+ "schema": {
456
+ "$ref": "#/components/schemas/ApiError"
457
+ }
458
+ }
459
+ }
460
+ }
461
+ }
462
+ }
463
+ },
336
464
  "/api/agent-integrations/tools": {
337
465
  "get": {
338
466
  "operationId": "integrationsToolsList",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "2c5f022a6d8cb955f06f07c742d3596e6abef3bb",
47
- "sourceIdentity": "b64191c6dae87a4dae05bdec909420b1cf4f90f038249d32e767dc1f276efdda",
46
+ "sourceCommit": "d319d8d69f17aa31472d8a632e084cd42f6d160c",
47
+ "sourceIdentity": "5cb4659b95a65a181afef1ca7a50510902be0a4c7ad73a1cb9ef5a95922ff38b",
48
48
  "fragments": [
49
- "sessions-list-drop-needs-you-8w3kfz.json"
49
+ "cli-integrations-request-gk8k7k.json"
50
50
  ]
51
51
  }
52
52
  }