@kosuke-ai/kosuke 1.0.67 → 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 +6 -0
- package/dist/generated/commands/index.js +16 -12
- 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 +1 -0
- package/dist/integrations/render.js +10 -3
- package/openapi.json +105 -2
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.68
|
|
4
|
+
|
|
5
|
+
- `kosuke integrations list` prints the platform's line naming integrations you can still connect, even when none is connected yet.
|
|
6
|
+
- Add `kosuke user settings get` and `kosuke user settings update` to read and set your timezone and its source.
|
|
7
|
+
- `kosuke projects batch-merging get` reports `mode` alone and no longer shows `enabled`, whose `false` meant the merge train and read as off. `set --enabled` and `--no-enabled` still work.
|
|
8
|
+
|
|
3
9
|
## 1.0.67
|
|
4
10
|
|
|
5
11
|
- 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.
|
|
@@ -320,18 +320,20 @@ import { operation as o318 } from './user/personal-space-get.js';
|
|
|
320
320
|
import { operation as o319 } from './user/profile-get.js';
|
|
321
321
|
import { operation as o320 } from './user/push-devices-create.js';
|
|
322
322
|
import { operation as o321 } from './user/push-devices-delete.js';
|
|
323
|
-
import { operation as o322 } from './user/
|
|
324
|
-
import { operation as o323 } from './
|
|
325
|
-
import { operation as o324 } from './
|
|
326
|
-
import { operation as o325 } from './workspaces/
|
|
327
|
-
import { operation as o326 } from './workspaces/
|
|
328
|
-
import { operation as o327 } from './workspaces/
|
|
329
|
-
import { operation as o328 } from './workspaces/
|
|
330
|
-
import { operation as o329 } from './workspaces/
|
|
331
|
-
import { operation as o330 } from './workspaces/
|
|
332
|
-
import { operation as o331 } from './workspaces/
|
|
333
|
-
import { operation as o332 } from './workspaces/
|
|
334
|
-
import { operation as o333 } from './workspaces/
|
|
323
|
+
import { operation as o322 } from './user/settings-get.js';
|
|
324
|
+
import { operation as o323 } from './user/settings-update.js';
|
|
325
|
+
import { operation as o324 } from './user/usage-get.js';
|
|
326
|
+
import { operation as o325 } from './workspaces/artifacts-search.js';
|
|
327
|
+
import { operation as o326 } from './workspaces/credits-get.js';
|
|
328
|
+
import { operation as o327 } from './workspaces/get.js';
|
|
329
|
+
import { operation as o328 } from './workspaces/list.js';
|
|
330
|
+
import { operation as o329 } from './workspaces/members-list.js';
|
|
331
|
+
import { operation as o330 } from './workspaces/members-list--all.js';
|
|
332
|
+
import { operation as o331 } from './workspaces/sandbox-limit-get.js';
|
|
333
|
+
import { operation as o332 } from './workspaces/sandboxes-stop.js';
|
|
334
|
+
import { operation as o333 } from './workspaces/timezone-set.js';
|
|
335
|
+
import { operation as o334 } from './workspaces/usage-breakdown-get.js';
|
|
336
|
+
import { operation as o335 } from './workspaces/usage-get.js';
|
|
335
337
|
export const operations = [
|
|
336
338
|
o0,
|
|
337
339
|
o1,
|
|
@@ -667,4 +669,6 @@ export const operations = [
|
|
|
667
669
|
o331,
|
|
668
670
|
o332,
|
|
669
671
|
o333,
|
|
672
|
+
o334,
|
|
673
|
+
o335,
|
|
670
674
|
];
|
|
@@ -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
|
@@ -77,6 +77,7 @@ function parseOverview(data) {
|
|
|
77
77
|
tools,
|
|
78
78
|
toolTotal: tools ? count(data.toolTotal) : null,
|
|
79
79
|
note: oneLine(data.note, 400) || null,
|
|
80
|
+
offer: oneLine(data.offer, 1500) || null,
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
/** The platform's own sentence for a refusal, bounded; its status when it said nothing. */
|
|
@@ -22,15 +22,20 @@ function directRequestsLine({ toolkit, directRequests }) {
|
|
|
22
22
|
return `direct requests: available with \`kosuke integrations request ${toolkit}\`, for what no tool here does. API base URL: ${base}`;
|
|
23
23
|
}
|
|
24
24
|
export function renderOverview(overview, filtered) {
|
|
25
|
-
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('');
|
|
26
31
|
if (toolkits.length === 0 && overview.connectionTotal === 0) {
|
|
27
|
-
return filtered ? 'No connected tool matches
|
|
32
|
+
return `${filtered ? 'No connected tool matches.' : 'No integrations are connected.'}${tail}\n`;
|
|
28
33
|
}
|
|
29
34
|
// A browser site has connections and no tools, so a filter naming it still shows them.
|
|
30
35
|
const connected = toolkits.some((toolkit) => toolkit.browser && toolkit.connections.length > 0);
|
|
31
36
|
if (filtered && tools?.length === 0 && !connected) {
|
|
32
37
|
const direct = toolkits.filter((toolkit) => toolkit.directRequests).map(directRequestsLine);
|
|
33
|
-
return `${['No connected tool matches.', ...direct].join('\n')}\n`;
|
|
38
|
+
return `${['No connected tool matches.', ...direct].join('\n')}${tail}\n`;
|
|
34
39
|
}
|
|
35
40
|
const width = Math.max(0, ...(tools ?? []).map((tool) => tool.name.length));
|
|
36
41
|
const blocks = toolkits.map((toolkit) => {
|
|
@@ -64,6 +69,8 @@ export function renderOverview(overview, filtered) {
|
|
|
64
69
|
}
|
|
65
70
|
if (note)
|
|
66
71
|
out.push(note);
|
|
72
|
+
if (connectLine)
|
|
73
|
+
out.push(connectLine);
|
|
67
74
|
return `${out.join('\n\n')}\n`;
|
|
68
75
|
}
|
|
69
76
|
/** One connection per line, for a refusal that asks the caller to pick one. */
|
package/openapi.json
CHANGED
|
@@ -10594,7 +10594,7 @@
|
|
|
10594
10594
|
"/api/projects/{projectId}/batch-merging": {
|
|
10595
10595
|
"get": {
|
|
10596
10596
|
"operationId": "projectsBatchMergingGet",
|
|
10597
|
-
"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.",
|
|
10598
10598
|
"tags": ["projects"],
|
|
10599
10599
|
"x-kosuke-command": ["projects", "batch-merging", "get"],
|
|
10600
10600
|
"x-kosuke-sandbox-token": true,
|
|
@@ -10678,7 +10678,7 @@
|
|
|
10678
10678
|
"enum": ["train", "batch", "off"]
|
|
10679
10679
|
},
|
|
10680
10680
|
"enabled": {
|
|
10681
|
-
"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.",
|
|
10682
10682
|
"type": "boolean"
|
|
10683
10683
|
},
|
|
10684
10684
|
"goAhead": {
|
|
@@ -27514,6 +27514,109 @@
|
|
|
27514
27514
|
}
|
|
27515
27515
|
}
|
|
27516
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
|
+
},
|
|
27517
27620
|
"/api/user/skills": {
|
|
27518
27621
|
"get": {
|
|
27519
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
|
}
|