@kosuke-ai/cli 5.6.5 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/summary.js +129 -8
- package/dist/generated/commands/activity/list.js +3 -3
- package/dist/generated/commands/crons/artifacts-list.js +60 -0
- package/dist/generated/commands/crons/create.js +4 -4
- package/dist/generated/commands/crons/get.js +4 -4
- package/dist/generated/commands/crons/list.js +4 -4
- package/dist/generated/commands/crons/projects-resume.js +4 -4
- package/dist/generated/commands/crons/run.js +5 -5
- package/dist/generated/commands/crons/runs-artifacts-get.js +3 -3
- package/dist/generated/commands/crons/runs-artifacts-list.js +3 -3
- package/dist/generated/commands/crons/runs-cancel.js +4 -4
- package/dist/generated/commands/crons/runs-diagnostics.js +24 -0
- package/dist/generated/commands/crons/runs-get.js +4 -4
- package/dist/generated/commands/crons/runs-list.js +4 -4
- package/dist/generated/commands/crons/runs-messages.js +4 -4
- package/dist/generated/commands/crons/update.js +4 -4
- package/dist/generated/commands/deploy/cancel.js +4 -4
- package/dist/generated/commands/deploy/list.js +2 -2
- package/dist/generated/commands/deploy/messages.js +2 -2
- package/dist/generated/commands/deploy/queue-list.js +4 -4
- package/dist/generated/commands/deploy/queue-move.js +4 -4
- package/dist/generated/commands/deploy/queue-resume.js +4 -4
- package/dist/generated/commands/deploy/queue-send.js +4 -4
- package/dist/generated/commands/deploy/queue-steer.js +4 -4
- package/dist/generated/commands/deploy/queue-update.js +4 -4
- package/dist/generated/commands/deploy/run.js +4 -4
- package/dist/generated/commands/deploy/set-model.js +4 -4
- package/dist/generated/commands/github/repositories.js +4 -4
- package/dist/generated/commands/github/status.js +4 -4
- package/dist/generated/commands/index.js +168 -154
- package/dist/generated/commands/preview/get.js +4 -4
- package/dist/generated/commands/preview/health.js +4 -4
- package/dist/generated/commands/preview/reset.js +4 -4
- package/dist/generated/commands/preview/share-create.js +4 -4
- package/dist/generated/commands/preview/share-get.js +4 -4
- package/dist/generated/commands/projects/branches.js +4 -4
- package/dist/generated/commands/projects/create.js +4 -4
- package/dist/generated/commands/projects/env-vars-add.js +4 -4
- package/dist/generated/commands/projects/get.js +2 -2
- package/dist/generated/commands/projects/labels-color.js +4 -4
- package/dist/generated/commands/projects/labels.js +1 -1
- package/dist/generated/commands/projects/list.js +2 -2
- package/dist/generated/commands/projects/services-add.js +4 -4
- package/dist/generated/commands/projects/services-list.js +4 -4
- package/dist/generated/commands/projects/services-update.js +4 -4
- package/dist/generated/commands/projects/settings-get.js +4 -4
- package/dist/generated/commands/projects/settings-import.js +4 -4
- package/dist/generated/commands/projects/settings-update.js +4 -4
- package/dist/generated/commands/projects/skills.js +1 -1
- package/dist/generated/commands/projects/update.js +4 -4
- package/dist/generated/commands/sessions/activate.js +19 -5
- package/dist/generated/commands/sessions/all.js +3 -3
- package/dist/generated/commands/sessions/artifacts-attach.js +3 -3
- package/dist/generated/commands/sessions/artifacts-get.js +3 -3
- package/dist/generated/commands/sessions/artifacts-list.js +3 -3
- package/dist/generated/commands/sessions/comments-add.js +4 -4
- package/dist/generated/commands/sessions/comments-list.js +4 -4
- package/dist/generated/commands/sessions/comments-update.js +4 -4
- package/dist/generated/commands/sessions/diff-comments-add.js +4 -4
- package/dist/generated/commands/sessions/diff-comments-list.js +4 -4
- package/dist/generated/commands/sessions/diff-comments-update.js +4 -4
- package/dist/generated/commands/sessions/diff-commits.js +4 -4
- package/dist/generated/commands/sessions/diff-files.js +3 -3
- package/dist/generated/commands/sessions/diff-patch.js +3 -3
- package/dist/generated/commands/sessions/edit-prompt.js +1 -1
- package/dist/generated/commands/sessions/files-get.js +4 -4
- package/dist/generated/commands/sessions/files-list.js +4 -4
- package/dist/generated/commands/sessions/files-write.js +4 -4
- package/dist/generated/commands/sessions/get.js +2 -2
- package/dist/generated/commands/sessions/git-commit-message.js +4 -4
- package/dist/generated/commands/sessions/git-commit.js +4 -4
- package/dist/generated/commands/sessions/git-push.js +4 -4
- package/dist/generated/commands/sessions/git-state.js +4 -4
- package/dist/generated/commands/sessions/jobs-cancel.js +4 -4
- package/dist/generated/commands/sessions/jobs-get.js +1 -1
- package/dist/generated/commands/sessions/jobs-list.js +2 -2
- package/dist/generated/commands/sessions/labels-edit.js +3 -3
- package/dist/generated/commands/sessions/labels-set.js +3 -3
- package/dist/generated/commands/sessions/mark-read.js +4 -4
- package/dist/generated/commands/sessions/messages.js +1 -1
- package/dist/generated/commands/sessions/needs-you.js +4 -4
- package/dist/generated/commands/sessions/qa-slot.js +22 -0
- package/dist/generated/commands/sessions/queue-list.js +3 -3
- package/dist/generated/commands/sessions/queue-move.js +4 -4
- package/dist/generated/commands/sessions/queue-resume.js +4 -4
- package/dist/generated/commands/sessions/queue-send.js +4 -4
- package/dist/generated/commands/sessions/queue-steer.js +4 -4
- package/dist/generated/commands/sessions/queue-update.js +4 -4
- package/dist/generated/commands/sessions/runtime-command.js +4 -4
- package/dist/generated/commands/sessions/search.js +2 -2
- package/dist/generated/commands/sessions/send.js +2 -2
- package/dist/generated/commands/sessions/steer.js +4 -4
- package/dist/generated/commands/sessions/title-generate.js +4 -4
- package/dist/generated/commands/sessions/update.js +1 -1
- package/dist/generated/commands/user/plugins-list.js +3 -3
- package/dist/generated/commands/user/plugins-update.js +4 -4
- package/dist/generated/commands/user/profile.js +4 -4
- package/dist/generated/commands/user/skills-create.js +4 -4
- package/dist/generated/commands/user/skills-get.js +3 -3
- package/dist/generated/commands/user/skills-list.js +3 -3
- package/dist/generated/commands/user/skills-update.js +4 -4
- package/dist/generated/commands/user/subscriptions-get.js +4 -4
- package/dist/generated/commands/user/subscriptions-usage.js +4 -4
- package/dist/generated/commands/workspaces/access-status.js +4 -4
- package/dist/generated/commands/workspaces/ai-provider-get.js +4 -4
- package/dist/generated/commands/workspaces/ai-provider-usage-claude.js +4 -4
- package/dist/generated/commands/workspaces/ai-provider-usage-codex.js +4 -4
- package/dist/generated/commands/workspaces/ai-provider-usage-coding-plan.js +4 -4
- package/dist/generated/commands/workspaces/artifacts.js +3 -3
- package/dist/generated/commands/workspaces/credits.js +3 -3
- package/dist/generated/commands/workspaces/get.js +4 -4
- package/dist/generated/commands/workspaces/getting-started-get.js +4 -4
- package/dist/generated/commands/workspaces/getting-started-update.js +4 -4
- package/dist/generated/commands/workspaces/integrations-sentry-get.js +4 -4
- package/dist/generated/commands/workspaces/integrations-slack-get.js +4 -4
- package/dist/generated/commands/workspaces/lead-cards.js +21 -0
- package/dist/generated/commands/workspaces/lead-notifications-open.js +23 -0
- package/dist/generated/commands/workspaces/lead-proposals-create.js +25 -0
- package/dist/generated/commands/workspaces/lead-triage.js +60 -0
- package/dist/generated/commands/workspaces/list.js +3 -3
- package/dist/generated/commands/workspaces/members.js +4 -4
- package/dist/generated/commands/workspaces/plugins-list.js +2 -2
- package/dist/generated/commands/workspaces/plugins-update.js +4 -4
- package/dist/generated/commands/workspaces/sandbox-limit.js +3 -3
- package/dist/generated/commands/workspaces/skills-create.js +4 -4
- package/dist/generated/commands/workspaces/skills-get.js +2 -2
- package/dist/generated/commands/workspaces/skills-list.js +2 -2
- package/dist/generated/commands/workspaces/skills-update.js +4 -4
- package/dist/generated/commands/workspaces/stop-sandboxes.js +4 -4
- package/dist/generated/commands/workspaces/usage.js +3 -3
- package/dist/program.js +7 -10
- package/openapi.json +1293 -48
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"plugins",
|
|
7
7
|
"list"
|
|
8
8
|
],
|
|
9
|
-
"summary": "List the plugins the Official Marketplaces offer, or one Provider's with provider=anthropic or provider=openai, with whether you have each on as a personal plugin, the last failed install in the chat sessions you are the assignee of, and the workspaces of yours that already have it on. Plugins that carry MCP servers or ChatGPT apps are not offered. Personal plugins follow you into every workspace you belong to, alongside its workspace plugins. From
|
|
9
|
+
"summary": "List the plugins the Official Marketplaces offer, or one Provider's with provider=anthropic or provider=openai, with whether you have each on as a personal plugin, the last failed install in the chat sessions you are the assignee of, and the workspaces of yours that already have it on. Plugins that carry MCP servers or ChatGPT apps are not offered. Personal plugins follow you into every workspace you belong to, alongside its workspace plugins. From an agent token, those of the member it acts as, with only this workspace and, for a sandbox or a Cron Run, this project's sessions. From a Cron Run with no member behind it, none.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [
|
|
12
12
|
{
|
|
@@ -25,7 +25,7 @@ export const operation = {
|
|
|
25
25
|
"attachments": false,
|
|
26
26
|
"anonymous": false,
|
|
27
27
|
"sandboxToken": true,
|
|
28
|
-
"orchestratorToken":
|
|
28
|
+
"orchestratorToken": true,
|
|
29
29
|
"cronToken": true,
|
|
30
|
-
"leadToken":
|
|
30
|
+
"leadToken": true
|
|
31
31
|
};
|
|
@@ -25,8 +25,8 @@ export const operation = {
|
|
|
25
25
|
"multipart": null,
|
|
26
26
|
"attachments": false,
|
|
27
27
|
"anonymous": false,
|
|
28
|
-
"sandboxToken":
|
|
29
|
-
"orchestratorToken":
|
|
30
|
-
"cronToken":
|
|
31
|
-
"leadToken":
|
|
28
|
+
"sandboxToken": true,
|
|
29
|
+
"orchestratorToken": true,
|
|
30
|
+
"cronToken": true,
|
|
31
|
+
"leadToken": true
|
|
32
32
|
};
|
|
@@ -12,8 +12,8 @@ export const operation = {
|
|
|
12
12
|
"multipart": null,
|
|
13
13
|
"attachments": false,
|
|
14
14
|
"anonymous": false,
|
|
15
|
-
"sandboxToken":
|
|
16
|
-
"orchestratorToken":
|
|
17
|
-
"cronToken":
|
|
18
|
-
"leadToken":
|
|
15
|
+
"sandboxToken": true,
|
|
16
|
+
"orchestratorToken": true,
|
|
17
|
+
"cronToken": true,
|
|
18
|
+
"leadToken": true
|
|
19
19
|
};
|
|
@@ -29,8 +29,8 @@ export const operation = {
|
|
|
29
29
|
"multipart": null,
|
|
30
30
|
"attachments": false,
|
|
31
31
|
"anonymous": false,
|
|
32
|
-
"sandboxToken":
|
|
33
|
-
"orchestratorToken":
|
|
34
|
-
"cronToken":
|
|
35
|
-
"leadToken":
|
|
32
|
+
"sandboxToken": true,
|
|
33
|
+
"orchestratorToken": true,
|
|
34
|
+
"cronToken": true,
|
|
35
|
+
"leadToken": true
|
|
36
36
|
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"skills",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Get one of your personal skills with every file it holds, SKILL.md included. From
|
|
9
|
+
"summary": "Get one of your personal skills with every file it holds, SKILL.md included. From an agent token, one of the member it acts as. From a Cron Run with no member behind it, never one: it acts as Kosuke, which holds no personal skills.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"skillId"
|
|
12
12
|
],
|
|
@@ -16,7 +16,7 @@ export const operation = {
|
|
|
16
16
|
"attachments": false,
|
|
17
17
|
"anonymous": false,
|
|
18
18
|
"sandboxToken": true,
|
|
19
|
-
"orchestratorToken":
|
|
19
|
+
"orchestratorToken": true,
|
|
20
20
|
"cronToken": true,
|
|
21
|
-
"leadToken":
|
|
21
|
+
"leadToken": true
|
|
22
22
|
};
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"skills",
|
|
7
7
|
"list"
|
|
8
8
|
],
|
|
9
|
-
"summary": "List your personal skills: what each SKILL.md declares, how many files the skill holds, whether it is enabled, and the workspaces where it replaces an enabled workspace skill of the same name. Personal skills follow you into every workspace you belong to and reach the chat sessions you are the assignee of. From
|
|
9
|
+
"summary": "List your personal skills: what each SKILL.md declares, how many files the skill holds, whether it is enabled, and the workspaces where it replaces an enabled workspace skill of the same name. Personal skills follow you into every workspace you belong to and reach the chat sessions you are the assignee of. From an agent token, those of the member it acts as, naming only this workspace. From a Cron Run with no member behind it, none.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": null,
|
|
@@ -14,7 +14,7 @@ export const operation = {
|
|
|
14
14
|
"attachments": false,
|
|
15
15
|
"anonymous": false,
|
|
16
16
|
"sandboxToken": true,
|
|
17
|
-
"orchestratorToken":
|
|
17
|
+
"orchestratorToken": true,
|
|
18
18
|
"cronToken": true,
|
|
19
|
-
"leadToken":
|
|
19
|
+
"leadToken": true
|
|
20
20
|
};
|
|
@@ -31,8 +31,8 @@ export const operation = {
|
|
|
31
31
|
"multipart": null,
|
|
32
32
|
"attachments": false,
|
|
33
33
|
"anonymous": false,
|
|
34
|
-
"sandboxToken":
|
|
35
|
-
"orchestratorToken":
|
|
36
|
-
"cronToken":
|
|
37
|
-
"leadToken":
|
|
34
|
+
"sandboxToken": true,
|
|
35
|
+
"orchestratorToken": true,
|
|
36
|
+
"cronToken": true,
|
|
37
|
+
"leadToken": true
|
|
38
38
|
};
|
|
@@ -13,8 +13,8 @@ export const operation = {
|
|
|
13
13
|
"multipart": null,
|
|
14
14
|
"attachments": false,
|
|
15
15
|
"anonymous": false,
|
|
16
|
-
"sandboxToken":
|
|
17
|
-
"orchestratorToken":
|
|
18
|
-
"cronToken":
|
|
19
|
-
"leadToken":
|
|
16
|
+
"sandboxToken": true,
|
|
17
|
+
"orchestratorToken": true,
|
|
18
|
+
"cronToken": true,
|
|
19
|
+
"leadToken": true
|
|
20
20
|
};
|
|
@@ -25,8 +25,8 @@ export const operation = {
|
|
|
25
25
|
"multipart": null,
|
|
26
26
|
"attachments": false,
|
|
27
27
|
"anonymous": false,
|
|
28
|
-
"sandboxToken":
|
|
29
|
-
"orchestratorToken":
|
|
30
|
-
"cronToken":
|
|
31
|
-
"leadToken":
|
|
28
|
+
"sandboxToken": true,
|
|
29
|
+
"orchestratorToken": true,
|
|
30
|
+
"cronToken": true,
|
|
31
|
+
"leadToken": true
|
|
32
32
|
};
|
|
@@ -26,8 +26,8 @@ export const operation = {
|
|
|
26
26
|
"multipart": null,
|
|
27
27
|
"attachments": false,
|
|
28
28
|
"anonymous": false,
|
|
29
|
-
"sandboxToken":
|
|
30
|
-
"orchestratorToken":
|
|
31
|
-
"cronToken":
|
|
32
|
-
"leadToken":
|
|
29
|
+
"sandboxToken": true,
|
|
30
|
+
"orchestratorToken": true,
|
|
31
|
+
"cronToken": true,
|
|
32
|
+
"leadToken": true
|
|
33
33
|
};
|
|
@@ -15,8 +15,8 @@ export const operation = {
|
|
|
15
15
|
"multipart": null,
|
|
16
16
|
"attachments": false,
|
|
17
17
|
"anonymous": false,
|
|
18
|
-
"sandboxToken":
|
|
19
|
-
"orchestratorToken":
|
|
20
|
-
"cronToken":
|
|
21
|
-
"leadToken":
|
|
18
|
+
"sandboxToken": true,
|
|
19
|
+
"orchestratorToken": true,
|
|
20
|
+
"cronToken": true,
|
|
21
|
+
"leadToken": true
|
|
22
22
|
};
|
|
@@ -16,8 +16,8 @@ export const operation = {
|
|
|
16
16
|
"multipart": null,
|
|
17
17
|
"attachments": false,
|
|
18
18
|
"anonymous": false,
|
|
19
|
-
"sandboxToken":
|
|
20
|
-
"orchestratorToken":
|
|
21
|
-
"cronToken":
|
|
22
|
-
"leadToken":
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
23
|
};
|
|
@@ -16,8 +16,8 @@ export const operation = {
|
|
|
16
16
|
"multipart": null,
|
|
17
17
|
"attachments": false,
|
|
18
18
|
"anonymous": false,
|
|
19
|
-
"sandboxToken":
|
|
20
|
-
"orchestratorToken":
|
|
21
|
-
"cronToken":
|
|
22
|
-
"leadToken":
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
23
|
};
|
|
@@ -16,8 +16,8 @@ export const operation = {
|
|
|
16
16
|
"multipart": null,
|
|
17
17
|
"attachments": false,
|
|
18
18
|
"anonymous": false,
|
|
19
|
-
"sandboxToken":
|
|
20
|
-
"orchestratorToken":
|
|
21
|
-
"cronToken":
|
|
22
|
-
"leadToken":
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
23
|
};
|
|
@@ -22,8 +22,8 @@ export const operation = {
|
|
|
22
22
|
"multipart": null,
|
|
23
23
|
"attachments": false,
|
|
24
24
|
"anonymous": false,
|
|
25
|
-
"sandboxToken":
|
|
26
|
-
"orchestratorToken":
|
|
27
|
-
"cronToken":
|
|
25
|
+
"sandboxToken": true,
|
|
26
|
+
"orchestratorToken": true,
|
|
27
|
+
"cronToken": true,
|
|
28
28
|
"leadToken": true
|
|
29
29
|
};
|
|
@@ -14,8 +14,8 @@ export const operation = {
|
|
|
14
14
|
"multipart": null,
|
|
15
15
|
"attachments": false,
|
|
16
16
|
"anonymous": false,
|
|
17
|
-
"sandboxToken":
|
|
18
|
-
"orchestratorToken":
|
|
19
|
-
"cronToken":
|
|
17
|
+
"sandboxToken": true,
|
|
18
|
+
"orchestratorToken": true,
|
|
19
|
+
"cronToken": true,
|
|
20
20
|
"leadToken": true
|
|
21
21
|
};
|
|
@@ -14,8 +14,8 @@ export const operation = {
|
|
|
14
14
|
"multipart": null,
|
|
15
15
|
"attachments": false,
|
|
16
16
|
"anonymous": false,
|
|
17
|
-
"sandboxToken":
|
|
18
|
-
"orchestratorToken":
|
|
19
|
-
"cronToken":
|
|
20
|
-
"leadToken":
|
|
17
|
+
"sandboxToken": true,
|
|
18
|
+
"orchestratorToken": true,
|
|
19
|
+
"cronToken": true,
|
|
20
|
+
"leadToken": true
|
|
21
21
|
};
|
|
@@ -15,8 +15,8 @@ export const operation = {
|
|
|
15
15
|
"multipart": null,
|
|
16
16
|
"attachments": false,
|
|
17
17
|
"anonymous": false,
|
|
18
|
-
"sandboxToken":
|
|
19
|
-
"orchestratorToken":
|
|
20
|
-
"cronToken":
|
|
21
|
-
"leadToken":
|
|
18
|
+
"sandboxToken": true,
|
|
19
|
+
"orchestratorToken": true,
|
|
20
|
+
"cronToken": true,
|
|
21
|
+
"leadToken": true
|
|
22
22
|
};
|
|
@@ -29,8 +29,8 @@ export const operation = {
|
|
|
29
29
|
"multipart": null,
|
|
30
30
|
"attachments": false,
|
|
31
31
|
"anonymous": false,
|
|
32
|
-
"sandboxToken":
|
|
33
|
-
"orchestratorToken":
|
|
34
|
-
"cronToken":
|
|
35
|
-
"leadToken":
|
|
32
|
+
"sandboxToken": true,
|
|
33
|
+
"orchestratorToken": true,
|
|
34
|
+
"cronToken": true,
|
|
35
|
+
"leadToken": true
|
|
36
36
|
};
|
|
@@ -16,8 +16,8 @@ export const operation = {
|
|
|
16
16
|
"multipart": null,
|
|
17
17
|
"attachments": false,
|
|
18
18
|
"anonymous": false,
|
|
19
|
-
"sandboxToken":
|
|
20
|
-
"orchestratorToken":
|
|
21
|
-
"cronToken":
|
|
22
|
-
"leadToken":
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
23
|
};
|
|
@@ -16,8 +16,8 @@ export const operation = {
|
|
|
16
16
|
"multipart": null,
|
|
17
17
|
"attachments": false,
|
|
18
18
|
"anonymous": false,
|
|
19
|
-
"sandboxToken":
|
|
20
|
-
"orchestratorToken":
|
|
21
|
-
"cronToken":
|
|
22
|
-
"leadToken":
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
23
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/lead/cards",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"lead-cards"
|
|
7
|
+
],
|
|
8
|
+
"summary": "List your open Lead Cards in a workspace, in the order the triager ranked them.",
|
|
9
|
+
"pathParams": [
|
|
10
|
+
"workspaceId"
|
|
11
|
+
],
|
|
12
|
+
"query": [],
|
|
13
|
+
"body": null,
|
|
14
|
+
"multipart": null,
|
|
15
|
+
"attachments": false,
|
|
16
|
+
"anonymous": false,
|
|
17
|
+
"sandboxToken": true,
|
|
18
|
+
"orchestratorToken": true,
|
|
19
|
+
"cronToken": true,
|
|
20
|
+
"leadToken": true
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/lead/notifications/{notificationId}/open",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"lead-notifications",
|
|
7
|
+
"open"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Mark one of your Lead notifications as opened.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"workspaceId",
|
|
12
|
+
"notificationId"
|
|
13
|
+
],
|
|
14
|
+
"query": [],
|
|
15
|
+
"body": null,
|
|
16
|
+
"multipart": null,
|
|
17
|
+
"attachments": false,
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"sandboxToken": true,
|
|
20
|
+
"orchestratorToken": true,
|
|
21
|
+
"cronToken": true,
|
|
22
|
+
"leadToken": true
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/lead/proposals",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"lead-proposals",
|
|
7
|
+
"create"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Open a Lead Card in your own Needs you that proposes one thing, with one line of why. kind start proposes starting a Backlog session, and is refused unless you are idle. kind delete_ticket (with evidence), merge_tickets (with sessionIds, mergedContent and the promptRevision sessions get gave for each ticket in revisions) and create_cron (with name, prompt, crontab, timezone and projectIds, and no sessionId) change nothing until you accept the card. Pass the body whole with --body.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"workspaceId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": null,
|
|
16
|
+
"required": true
|
|
17
|
+
},
|
|
18
|
+
"multipart": null,
|
|
19
|
+
"attachments": false,
|
|
20
|
+
"anonymous": false,
|
|
21
|
+
"sandboxToken": true,
|
|
22
|
+
"orchestratorToken": true,
|
|
23
|
+
"cronToken": true,
|
|
24
|
+
"leadToken": true
|
|
25
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "post",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/lead/triage",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"lead-triage"
|
|
7
|
+
],
|
|
8
|
+
"summary": "Write the triage of your own open Lead Cards in a workspace: their order, one line of why per card, who reviews and merges a ready pull request, one notification, and the Welcome back sentence. Answers what was ranked, whether the notification went out, and every part it refused with the reason.",
|
|
9
|
+
"pathParams": [
|
|
10
|
+
"workspaceId"
|
|
11
|
+
],
|
|
12
|
+
"query": [],
|
|
13
|
+
"body": {
|
|
14
|
+
"fields": [
|
|
15
|
+
{
|
|
16
|
+
"name": "rank",
|
|
17
|
+
"flag": "rank",
|
|
18
|
+
"kind": "json",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Open card ids, most urgent first. Cards left out keep their place behind these. A JSON array."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "whys",
|
|
24
|
+
"flag": "whys",
|
|
25
|
+
"kind": "json",
|
|
26
|
+
"required": false,
|
|
27
|
+
"description": "One line of why per card, kept to 300 characters. A JSON array."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "picks",
|
|
31
|
+
"flag": "picks",
|
|
32
|
+
"kind": "json",
|
|
33
|
+
"required": false,
|
|
34
|
+
"description": "Who reviews and who merges the pull request of a To approve or Merge card. A JSON array."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "notify",
|
|
38
|
+
"flag": "notify",
|
|
39
|
+
"kind": "json",
|
|
40
|
+
"required": false,
|
|
41
|
+
"description": "One notification for one card. Refused while the Lead is on screen. A JSON object."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "welcome",
|
|
45
|
+
"flag": "welcome",
|
|
46
|
+
"kind": "string",
|
|
47
|
+
"required": false,
|
|
48
|
+
"description": "The one sentence under \"Welcome back, N waiting\"."
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"required": true
|
|
52
|
+
},
|
|
53
|
+
"multipart": null,
|
|
54
|
+
"attachments": false,
|
|
55
|
+
"anonymous": false,
|
|
56
|
+
"sandboxToken": true,
|
|
57
|
+
"orchestratorToken": true,
|
|
58
|
+
"cronToken": true,
|
|
59
|
+
"leadToken": true
|
|
60
|
+
};
|
|
@@ -12,8 +12,8 @@ export const operation = {
|
|
|
12
12
|
"multipart": null,
|
|
13
13
|
"attachments": false,
|
|
14
14
|
"anonymous": false,
|
|
15
|
-
"sandboxToken":
|
|
16
|
-
"orchestratorToken":
|
|
17
|
-
"cronToken":
|
|
15
|
+
"sandboxToken": true,
|
|
16
|
+
"orchestratorToken": true,
|
|
17
|
+
"cronToken": true,
|
|
18
18
|
"leadToken": true
|
|
19
19
|
};
|
|
@@ -22,8 +22,8 @@ export const operation = {
|
|
|
22
22
|
"multipart": null,
|
|
23
23
|
"attachments": false,
|
|
24
24
|
"anonymous": false,
|
|
25
|
-
"sandboxToken":
|
|
26
|
-
"orchestratorToken":
|
|
27
|
-
"cronToken":
|
|
28
|
-
"leadToken":
|
|
25
|
+
"sandboxToken": true,
|
|
26
|
+
"orchestratorToken": true,
|
|
27
|
+
"cronToken": true,
|
|
28
|
+
"leadToken": true
|
|
29
29
|
};
|
|
@@ -26,8 +26,8 @@ export const operation = {
|
|
|
26
26
|
"multipart": null,
|
|
27
27
|
"attachments": false,
|
|
28
28
|
"anonymous": false,
|
|
29
|
-
"sandboxToken":
|
|
30
|
-
"orchestratorToken":
|
|
31
|
-
"cronToken":
|
|
32
|
-
"leadToken":
|
|
29
|
+
"sandboxToken": true,
|
|
30
|
+
"orchestratorToken": true,
|
|
31
|
+
"cronToken": true,
|
|
32
|
+
"leadToken": true
|
|
33
33
|
};
|
|
@@ -14,8 +14,8 @@ export const operation = {
|
|
|
14
14
|
"multipart": null,
|
|
15
15
|
"attachments": false,
|
|
16
16
|
"anonymous": false,
|
|
17
|
-
"sandboxToken":
|
|
18
|
-
"orchestratorToken":
|
|
19
|
-
"cronToken":
|
|
17
|
+
"sandboxToken": true,
|
|
18
|
+
"orchestratorToken": true,
|
|
19
|
+
"cronToken": true,
|
|
20
20
|
"leadToken": true
|
|
21
21
|
};
|
|
@@ -37,8 +37,8 @@ export const operation = {
|
|
|
37
37
|
"multipart": null,
|
|
38
38
|
"attachments": false,
|
|
39
39
|
"anonymous": false,
|
|
40
|
-
"sandboxToken":
|
|
41
|
-
"orchestratorToken":
|
|
42
|
-
"cronToken":
|
|
43
|
-
"leadToken":
|
|
40
|
+
"sandboxToken": true,
|
|
41
|
+
"orchestratorToken": true,
|
|
42
|
+
"cronToken": true,
|
|
43
|
+
"leadToken": true
|
|
44
44
|
};
|
|
@@ -32,8 +32,8 @@ export const operation = {
|
|
|
32
32
|
"multipart": null,
|
|
33
33
|
"attachments": false,
|
|
34
34
|
"anonymous": false,
|
|
35
|
-
"sandboxToken":
|
|
36
|
-
"orchestratorToken":
|
|
37
|
-
"cronToken":
|
|
38
|
-
"leadToken":
|
|
35
|
+
"sandboxToken": true,
|
|
36
|
+
"orchestratorToken": true,
|
|
37
|
+
"cronToken": true,
|
|
38
|
+
"leadToken": true
|
|
39
39
|
};
|
|
@@ -24,8 +24,8 @@ export const operation = {
|
|
|
24
24
|
"multipart": null,
|
|
25
25
|
"attachments": false,
|
|
26
26
|
"anonymous": false,
|
|
27
|
-
"sandboxToken":
|
|
28
|
-
"orchestratorToken":
|
|
29
|
-
"cronToken":
|
|
30
|
-
"leadToken":
|
|
27
|
+
"sandboxToken": true,
|
|
28
|
+
"orchestratorToken": true,
|
|
29
|
+
"cronToken": true,
|
|
30
|
+
"leadToken": true
|
|
31
31
|
};
|
|
@@ -29,8 +29,8 @@ export const operation = {
|
|
|
29
29
|
"multipart": null,
|
|
30
30
|
"attachments": false,
|
|
31
31
|
"anonymous": false,
|
|
32
|
-
"sandboxToken":
|
|
33
|
-
"orchestratorToken":
|
|
34
|
-
"cronToken":
|
|
32
|
+
"sandboxToken": true,
|
|
33
|
+
"orchestratorToken": true,
|
|
34
|
+
"cronToken": true,
|
|
35
35
|
"leadToken": true
|
|
36
36
|
};
|
package/dist/program.js
CHANGED
|
@@ -32,11 +32,9 @@ export function createProgram(options = {}) {
|
|
|
32
32
|
output: (outcome) => runtimeFor().output(outcome),
|
|
33
33
|
};
|
|
34
34
|
attachAuthCommands(program, lazy, options.auth);
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// rather than a list of 403s.
|
|
38
|
-
// input is channel text anyone can write: a help tree advertising every
|
|
39
|
-
// workspace command invites the attempt and spends the turn on refusals.
|
|
35
|
+
// An agent's credential reaches what its member's API key does, less the
|
|
36
|
+
// deletes and the personal credentials, so the tree shows that and
|
|
37
|
+
// `kosuke --help` there is true rather than a list of 403s.
|
|
40
38
|
// Read from the env alone, which keeps `--help` off the credentials file.
|
|
41
39
|
const token = (options.process?.env ?? process.env).KOSUKE_API_KEY;
|
|
42
40
|
const narrowedTo = isSandboxAgentToken(token)
|
|
@@ -53,11 +51,10 @@ export function createProgram(options = {}) {
|
|
|
53
51
|
: operations;
|
|
54
52
|
for (const operation of reachable)
|
|
55
53
|
attachOperation(program, operation, lazy);
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
54
|
+
// Every agent token reads the digest's two lists as its member. Only a
|
|
55
|
+
// member's own key and their Lead may mark Activity seen, so the others
|
|
56
|
+
// read it with `--peek`.
|
|
57
|
+
attachAgentCommands(program, lazy, options.agent);
|
|
61
58
|
// The job stream admits a member's API key only; it closes 4401 on every narrower token.
|
|
62
59
|
if (narrowedTo === null)
|
|
63
60
|
attachWatchCommand(program, lazy, options.watch);
|