@kosuke-ai/kosuke 1.0.66 → 1.0.68
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 +10 -0
- package/README.md +11 -0
- package/dist/commands/hand-written.js +15 -0
- package/dist/commands/integrations-request.js +128 -0
- package/dist/commands/integrations-shared.js +45 -0
- package/dist/commands/integrations.js +12 -44
- package/dist/generated/commands/index.js +271 -265
- package/dist/generated/commands/integrations/tools-request.js +87 -0
- package/dist/generated/commands/projects/batch-merging-get.js +1 -1
- package/dist/generated/commands/projects/batch-merging-set.js +1 -1
- package/dist/generated/commands/user/settings-get.js +17 -0
- package/dist/generated/commands/user/settings-update.js +37 -0
- package/dist/integrations/api.js +13 -1
- package/dist/integrations/render.js +24 -6
- package/openapi.json +233 -2
- package/package.json +6 -4
|
@@ -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
|
+
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"batch-merging",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: the platform merges nothing and members merge themselves;
|
|
9
|
+
"summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: the platform merges nothing and members merge themselves; mode alone says whether it is off, and the output has no enabled boolean), its Go-ahead under the merge train (goAhead member: a member gives each pull request the go-ahead; checks: a pull request whose required checks pass on its latest commit has it) and waitForQa (under checks, QA must pass too), how many go-ahead pull requests wait, and the run open now.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
@@ -30,7 +30,7 @@ export const operation = {
|
|
|
30
30
|
"flag": "enabled",
|
|
31
31
|
"kind": "boolean",
|
|
32
32
|
"required": false,
|
|
33
|
-
"description": "Older form of mode: true is batch, false is train. Give mode or enabled."
|
|
33
|
+
"description": "Older form of mode, still accepted: true is batch, false is train, never off. Give mode or enabled. Reads return mode alone."
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "goAhead",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/user/settings",
|
|
4
|
+
"command": [
|
|
5
|
+
"user",
|
|
6
|
+
"settings",
|
|
7
|
+
"get"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Read your stored timezone and its source (auto follows your device, manual is pinned), and the zone Kosuke resolves for you with where it came from.",
|
|
10
|
+
"pathParams": [],
|
|
11
|
+
"query": [],
|
|
12
|
+
"body": null,
|
|
13
|
+
"multipart": null,
|
|
14
|
+
"attachments": false,
|
|
15
|
+
"anonymous": false,
|
|
16
|
+
"agents": "all"
|
|
17
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "patch",
|
|
3
|
+
"path": "/api/user/settings",
|
|
4
|
+
"command": [
|
|
5
|
+
"user",
|
|
6
|
+
"settings",
|
|
7
|
+
"update"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Set your timezone, an IANA name such as Europe/Rome; an unknown or offset-only zone is refused. timeZone without timeZoneSource pins it (manual). timeZoneSource alone keeps the stored zone; manual with none stored is refused.",
|
|
10
|
+
"pathParams": [],
|
|
11
|
+
"query": [],
|
|
12
|
+
"body": {
|
|
13
|
+
"fields": [
|
|
14
|
+
{
|
|
15
|
+
"name": "timeZone",
|
|
16
|
+
"flag": "time-zone",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "timeZoneSource",
|
|
22
|
+
"flag": "time-zone-source",
|
|
23
|
+
"kind": "string",
|
|
24
|
+
"required": false,
|
|
25
|
+
"choices": [
|
|
26
|
+
"auto",
|
|
27
|
+
"manual"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"required": true
|
|
32
|
+
},
|
|
33
|
+
"multipart": null,
|
|
34
|
+
"attachments": false,
|
|
35
|
+
"anonymous": false,
|
|
36
|
+
"agents": "all"
|
|
37
|
+
};
|
package/dist/integrations/api.js
CHANGED
|
@@ -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)
|
|
@@ -66,6 +77,7 @@ function parseOverview(data) {
|
|
|
66
77
|
tools,
|
|
67
78
|
toolTotal: tools ? count(data.toolTotal) : null,
|
|
68
79
|
note: oneLine(data.note, 400) || null,
|
|
80
|
+
offer: oneLine(data.offer, 1500) || null,
|
|
69
81
|
};
|
|
70
82
|
}
|
|
71
83
|
/** The platform's own sentence for a refusal, bounded; its status when it said nothing. */
|
|
@@ -14,19 +14,33 @@ 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
|
-
const { toolkits, tools, note } = overview;
|
|
25
|
+
const { toolkits, tools, note, offer: connectLine } = overview;
|
|
26
|
+
// Said whatever is connected: a tool that is missing reads as one Kosuke lacks without it.
|
|
27
|
+
const tail = [note, connectLine]
|
|
28
|
+
.filter(Boolean)
|
|
29
|
+
.map((line) => `\n\n${line}`)
|
|
30
|
+
.join('');
|
|
19
31
|
if (toolkits.length === 0 && overview.connectionTotal === 0) {
|
|
20
|
-
return filtered ? 'No connected tool matches
|
|
32
|
+
return `${filtered ? 'No connected tool matches.' : 'No integrations are connected.'}${tail}\n`;
|
|
21
33
|
}
|
|
22
34
|
// A browser site has connections and no tools, so a filter naming it still shows them.
|
|
23
35
|
const connected = toolkits.some((toolkit) => toolkit.browser && toolkit.connections.length > 0);
|
|
24
|
-
if (filtered && tools?.length === 0 && !connected)
|
|
25
|
-
|
|
36
|
+
if (filtered && tools?.length === 0 && !connected) {
|
|
37
|
+
const direct = toolkits.filter((toolkit) => toolkit.directRequests).map(directRequestsLine);
|
|
38
|
+
return `${['No connected tool matches.', ...direct].join('\n')}${tail}\n`;
|
|
39
|
+
}
|
|
26
40
|
const width = Math.max(0, ...(tools ?? []).map((tool) => tool.name.length));
|
|
27
41
|
const blocks = toolkits.map((toolkit) => {
|
|
28
|
-
// A browser site lists no tools, so its line names how it is used: an agent
|
|
29
|
-
//
|
|
42
|
+
// A browser site lists no tools, so its line names how it is used: an agent would read
|
|
43
|
+
// "no tools" as a site it cannot use.
|
|
30
44
|
const offer = toolkit.browser
|
|
31
45
|
? 'browser, no tools: use it in the browser on its Mac (kosuke mac browser run)'
|
|
32
46
|
: `${toolkit.read} read, ${toolkit.write} write tools`;
|
|
@@ -34,6 +48,8 @@ export function renderOverview(overview, filtered) {
|
|
|
34
48
|
`${toolkit.name} (${toolkit.toolkit}): ${offer}`,
|
|
35
49
|
...toolkit.connections.map((connection) => ` ${connectionLine(connection)}`),
|
|
36
50
|
];
|
|
51
|
+
if (toolkit.directRequests)
|
|
52
|
+
lines.push(` ${directRequestsLine(toolkit)}`);
|
|
37
53
|
const own = (tools ?? []).filter((tool) => tool.toolkit === toolkit.toolkit);
|
|
38
54
|
if (own.length > 0) {
|
|
39
55
|
lines.push(' tools:', ...own.map((tool) => ` ${toolLine(tool, width)}`));
|
|
@@ -53,6 +69,8 @@ export function renderOverview(overview, filtered) {
|
|
|
53
69
|
}
|
|
54
70
|
if (note)
|
|
55
71
|
out.push(note);
|
|
72
|
+
if (connectLine)
|
|
73
|
+
out.push(connectLine);
|
|
56
74
|
return `${out.join('\n\n')}\n`;
|
|
57
75
|
}
|
|
58
76
|
/** One connection per line, for a refusal that asks the caller to pick one. */
|
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",
|
|
@@ -10466,7 +10594,7 @@
|
|
|
10466
10594
|
"/api/projects/{projectId}/batch-merging": {
|
|
10467
10595
|
"get": {
|
|
10468
10596
|
"operationId": "projectsBatchMergingGet",
|
|
10469
|
-
"summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: the platform merges nothing and members merge themselves;
|
|
10597
|
+
"summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: the platform merges nothing and members merge themselves; mode alone says whether it is off, and the output has no enabled boolean), its Go-ahead under the merge train (goAhead member: a member gives each pull request the go-ahead; checks: a pull request whose required checks pass on its latest commit has it) and waitForQa (under checks, QA must pass too), how many go-ahead pull requests wait, and the run open now.",
|
|
10470
10598
|
"tags": ["projects"],
|
|
10471
10599
|
"x-kosuke-command": ["projects", "batch-merging", "get"],
|
|
10472
10600
|
"x-kosuke-sandbox-token": true,
|
|
@@ -10550,7 +10678,7 @@
|
|
|
10550
10678
|
"enum": ["train", "batch", "off"]
|
|
10551
10679
|
},
|
|
10552
10680
|
"enabled": {
|
|
10553
|
-
"description": "Older form of mode: true is batch, false is train. Give mode or enabled.",
|
|
10681
|
+
"description": "Older form of mode, still accepted: true is batch, false is train, never off. Give mode or enabled. Reads return mode alone.",
|
|
10554
10682
|
"type": "boolean"
|
|
10555
10683
|
},
|
|
10556
10684
|
"goAhead": {
|
|
@@ -27386,6 +27514,109 @@
|
|
|
27386
27514
|
}
|
|
27387
27515
|
}
|
|
27388
27516
|
},
|
|
27517
|
+
"/api/user/settings": {
|
|
27518
|
+
"get": {
|
|
27519
|
+
"operationId": "userSettingsGet",
|
|
27520
|
+
"summary": "Read your stored timezone and its source (auto follows your device, manual is pinned), and the zone Kosuke resolves for you with where it came from.",
|
|
27521
|
+
"tags": ["user"],
|
|
27522
|
+
"x-kosuke-command": ["user", "settings", "get"],
|
|
27523
|
+
"x-kosuke-sandbox-token": true,
|
|
27524
|
+
"x-kosuke-cron-token": true,
|
|
27525
|
+
"x-kosuke-sensei-token": true,
|
|
27526
|
+
"responses": {
|
|
27527
|
+
"2XX": {
|
|
27528
|
+
"description": "Success envelope",
|
|
27529
|
+
"content": {
|
|
27530
|
+
"application/json": {
|
|
27531
|
+
"schema": {
|
|
27532
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
27533
|
+
}
|
|
27534
|
+
}
|
|
27535
|
+
}
|
|
27536
|
+
},
|
|
27537
|
+
"4XX": {
|
|
27538
|
+
"description": "Error envelope",
|
|
27539
|
+
"content": {
|
|
27540
|
+
"application/json": {
|
|
27541
|
+
"schema": {
|
|
27542
|
+
"$ref": "#/components/schemas/ApiError"
|
|
27543
|
+
}
|
|
27544
|
+
}
|
|
27545
|
+
}
|
|
27546
|
+
},
|
|
27547
|
+
"5XX": {
|
|
27548
|
+
"description": "Error envelope",
|
|
27549
|
+
"content": {
|
|
27550
|
+
"application/json": {
|
|
27551
|
+
"schema": {
|
|
27552
|
+
"$ref": "#/components/schemas/ApiError"
|
|
27553
|
+
}
|
|
27554
|
+
}
|
|
27555
|
+
}
|
|
27556
|
+
}
|
|
27557
|
+
}
|
|
27558
|
+
},
|
|
27559
|
+
"patch": {
|
|
27560
|
+
"operationId": "userSettingsUpdate",
|
|
27561
|
+
"summary": "Set your timezone, an IANA name such as Europe/Rome; an unknown or offset-only zone is refused. timeZone without timeZoneSource pins it (manual). timeZoneSource alone keeps the stored zone; manual with none stored is refused.",
|
|
27562
|
+
"tags": ["user"],
|
|
27563
|
+
"x-kosuke-command": ["user", "settings", "update"],
|
|
27564
|
+
"x-kosuke-sandbox-token": true,
|
|
27565
|
+
"x-kosuke-cron-token": true,
|
|
27566
|
+
"x-kosuke-sensei-token": true,
|
|
27567
|
+
"requestBody": {
|
|
27568
|
+
"required": true,
|
|
27569
|
+
"content": {
|
|
27570
|
+
"application/json": {
|
|
27571
|
+
"schema": {
|
|
27572
|
+
"type": "object",
|
|
27573
|
+
"properties": {
|
|
27574
|
+
"timeZone": {
|
|
27575
|
+
"type": "string"
|
|
27576
|
+
},
|
|
27577
|
+
"timeZoneSource": {
|
|
27578
|
+
"type": "string",
|
|
27579
|
+
"enum": ["auto", "manual"]
|
|
27580
|
+
}
|
|
27581
|
+
}
|
|
27582
|
+
}
|
|
27583
|
+
}
|
|
27584
|
+
}
|
|
27585
|
+
},
|
|
27586
|
+
"responses": {
|
|
27587
|
+
"2XX": {
|
|
27588
|
+
"description": "Success envelope",
|
|
27589
|
+
"content": {
|
|
27590
|
+
"application/json": {
|
|
27591
|
+
"schema": {
|
|
27592
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
27593
|
+
}
|
|
27594
|
+
}
|
|
27595
|
+
}
|
|
27596
|
+
},
|
|
27597
|
+
"4XX": {
|
|
27598
|
+
"description": "Error envelope",
|
|
27599
|
+
"content": {
|
|
27600
|
+
"application/json": {
|
|
27601
|
+
"schema": {
|
|
27602
|
+
"$ref": "#/components/schemas/ApiError"
|
|
27603
|
+
}
|
|
27604
|
+
}
|
|
27605
|
+
}
|
|
27606
|
+
},
|
|
27607
|
+
"5XX": {
|
|
27608
|
+
"description": "Error envelope",
|
|
27609
|
+
"content": {
|
|
27610
|
+
"application/json": {
|
|
27611
|
+
"schema": {
|
|
27612
|
+
"$ref": "#/components/schemas/ApiError"
|
|
27613
|
+
}
|
|
27614
|
+
}
|
|
27615
|
+
}
|
|
27616
|
+
}
|
|
27617
|
+
}
|
|
27618
|
+
}
|
|
27619
|
+
},
|
|
27389
27620
|
"/api/user/skills": {
|
|
27390
27621
|
"get": {
|
|
27391
27622
|
"operationId": "skillsListPersonal",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
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,12 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "92bae5b9d69342646960a0658b7dc18a6a6f7f18",
|
|
47
|
+
"sourceIdentity": "f30ac61d3bd160e4c3fd4a5c52ebac2c9d9f0a5b18530f7876b0d99245761768",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"integrations-list-connect-offer-arky02.json",
|
|
50
|
+
"user-settings-time-zone-t4pz5q.json",
|
|
51
|
+
"batch-merging-get-mode-only.json"
|
|
50
52
|
]
|
|
51
53
|
}
|
|
52
54
|
}
|