@kosuke-ai/kosuke 1.0.59 → 1.0.61
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 +15 -0
- package/README.md +31 -2
- package/dist/commands/hand-written.js +15 -0
- package/dist/commands/help.js +52 -0
- package/dist/generated/commands/crons/create--personal.js +2 -1
- package/dist/generated/commands/crons/update--personal.js +2 -1
- package/dist/generated/commands/deploys/queue-update.js +2 -1
- package/dist/generated/commands/devices/list.js +1 -1
- package/dist/generated/commands/find/index.js +17 -0
- package/dist/generated/commands/index.js +279 -291
- package/dist/generated/commands/integrations/tools-call.js +2 -1
- package/dist/generated/commands/mac/files-delete.js +1 -1
- package/dist/generated/commands/mac/files-move.js +1 -1
- package/dist/generated/commands/mac/files-set.js +1 -1
- package/dist/generated/commands/mac/shell.js +1 -1
- package/dist/generated/commands/projects/batch-merging-get.js +1 -1
- package/dist/generated/commands/projects/batch-merging-picks-set.js +2 -1
- package/dist/generated/commands/projects/batch-merging-set.js +19 -1
- package/dist/generated/commands/projects/create.js +21 -9
- package/dist/generated/commands/projects/labels-delete.js +2 -1
- package/dist/generated/commands/projects/live-logs-list.js +1 -1
- package/dist/generated/commands/projects/live-queries-run.js +1 -1
- package/dist/generated/commands/projects/live-traffic-get.js +1 -1
- package/dist/generated/commands/projects/releases-list.js +1 -1
- package/dist/generated/commands/projects/services-create.js +6 -3
- package/dist/generated/commands/projects/services-update.js +6 -3
- package/dist/generated/commands/projects/settings-set.js +12 -2
- package/dist/generated/commands/projects/settings-update.js +9 -1
- package/dist/generated/commands/projects/versions-list.js +1 -1
- package/dist/generated/commands/sensei/cards-mark-read.js +1 -1
- package/dist/generated/commands/sensei/cards-set.js +40 -10
- package/dist/generated/commands/sensei/connect-buttons-create.js +2 -1
- package/dist/generated/commands/sensei/describe-cards-create.js +1 -1
- package/dist/generated/commands/sensei/messages-send.js +2 -1
- package/dist/generated/commands/sensei/sessions-assessments-create.js +3 -1
- package/dist/generated/commands/sensei/sessions-facts-get.js +1 -1
- package/dist/generated/commands/sensei/suggestions-create.js +2 -1
- package/dist/generated/commands/sensei/threads-get.js +8 -1
- package/dist/generated/commands/sensei/threads-split.js +2 -1
- package/dist/generated/commands/sensei/tickets-merge.js +4 -2
- package/dist/generated/commands/sensei/watch-reads-finish.js +4 -2
- package/dist/generated/commands/sensei/writing-samples-create.js +2 -1
- package/dist/generated/commands/sessions/labels-set.js +6 -3
- package/dist/generated/commands/sessions/labels-update.js +4 -2
- package/dist/generated/commands/sessions/list--all.js +2 -3
- package/dist/generated/commands/sessions/qa-runs-finish.js +2 -1
- package/dist/generated/commands/sessions/qa-runs-results-create.js +2 -1
- package/dist/generated/commands/sessions/qa-runs-start.js +2 -1
- package/dist/generated/commands/sessions/queue-update.js +2 -1
- package/dist/generated/commands/sessions/send.js +4 -2
- package/dist/generated/commands/sessions/update.js +2 -1
- package/dist/generated/commands/skills/create--personal.js +2 -1
- package/dist/generated/commands/skills/create.js +2 -1
- package/dist/generated/commands/skills/update--personal.js +2 -1
- package/dist/generated/commands/skills/update.js +2 -1
- package/dist/generated/commands/tasks/create--personal.js +235 -11
- package/dist/generated/commands/tasks/create.js +1 -1
- package/dist/generated/commands/tasks/delete--personal.js +6 -3
- package/dist/generated/commands/tasks/get--personal.js +6 -3
- package/dist/generated/commands/tasks/list--all.js +1 -1
- package/dist/generated/commands/tasks/list--personal.js +91 -9
- package/dist/generated/commands/tasks/move--personal.js +7 -4
- package/dist/generated/commands/tasks/start--personal.js +6 -3
- package/dist/generated/commands/tasks/update--personal.js +85 -10
- package/dist/generated/commands/tasks/update.js +3 -2
- package/dist/generated/commands/user/personal-space-get.js +19 -0
- package/dist/generated/commands/workspaces/sandboxes-stop.js +2 -1
- package/dist/program.js +13 -2
- package/dist/runtime/arguments.js +58 -0
- package/dist/runtime/attach.js +177 -18
- package/dist/runtime/help.js +398 -0
- package/dist/runtime/personal-space-id.js +26 -0
- package/dist/runtime/personal-space.js +10 -0
- package/dist/runtime/runtime.js +25 -5
- package/dist/runtime/thread-text.js +316 -0
- package/openapi.json +340 -604
- package/package.json +4 -4
- package/dist/generated/commands/projects/backlog-items-create.js +0 -35
- package/dist/generated/commands/projects/backlog-items-delete.js +0 -20
- package/dist/generated/commands/projects/backlog-items-list.js +0 -19
- package/dist/generated/commands/projects/backlog-items-send.js +0 -20
- package/dist/generated/commands/projects/backlog-items-update.js +0 -42
- package/dist/generated/commands/projects/live-writes-create.js +0 -38
- package/dist/generated/commands/projects/live-writes-get.js +0 -21
- package/dist/generated/commands/projects/workflow-set.js +0 -33
|
@@ -23,7 +23,8 @@ export const operation = {
|
|
|
23
23
|
"flag": "fold",
|
|
24
24
|
"kind": "json",
|
|
25
25
|
"required": true,
|
|
26
|
-
"description": "The other Backlog tickets of the same project, deleted by the merge."
|
|
26
|
+
"description": "The other Backlog tickets of the same project, deleted by the merge.",
|
|
27
|
+
"shape": "string[] (max 20)"
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
"name": "content",
|
|
@@ -37,7 +38,8 @@ export const operation = {
|
|
|
37
38
|
"flag": "revisions",
|
|
38
39
|
"kind": "json",
|
|
39
40
|
"required": true,
|
|
40
|
-
"description": "The promptRevision `kosuke sessions get` gave for each ticket content was written from, the kept one included, keyed by session id."
|
|
41
|
+
"description": "The promptRevision `kosuke sessions get` gave for each ticket content was written from, the kept one included, keyed by session id.",
|
|
42
|
+
"shape": "{[key: string]: string}"
|
|
41
43
|
}
|
|
42
44
|
],
|
|
43
45
|
"required": true
|
|
@@ -44,14 +44,16 @@ export const operation = {
|
|
|
44
44
|
"flag": "account",
|
|
45
45
|
"kind": "json",
|
|
46
46
|
"required": false,
|
|
47
|
-
"description": "With ok: the signed-in account the page shows"
|
|
47
|
+
"description": "With ok: the signed-in account the page shows",
|
|
48
|
+
"shape": "{handle: string, name?: string | null}"
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
"name": "conversations",
|
|
51
52
|
"flag": "conversations",
|
|
52
53
|
"kind": "json",
|
|
53
54
|
"required": false,
|
|
54
|
-
"description": "With ok: the conversation list, newest first"
|
|
55
|
+
"description": "With ok: the conversation list, newest first",
|
|
56
|
+
"shape": "{link: string, name?: string | null, kind?: \"direct\"|\"group\", muted?: boolean, unread?: boolean, newest: {sender?: string | null, fromMe?: boolean | null, text: string, truncated?: boolean}}[] (max 50)"
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
"name": "more",
|
|
@@ -29,7 +29,8 @@ export const operation = {
|
|
|
29
29
|
"flag": "messages",
|
|
30
30
|
"kind": "json",
|
|
31
31
|
"required": true,
|
|
32
|
-
"description": "At most 50 messages the member sent."
|
|
32
|
+
"description": "At most 50 messages the member sent.",
|
|
33
|
+
"shape": "{id: string, text: string}[] (max 50)"
|
|
33
34
|
}
|
|
34
35
|
],
|
|
35
36
|
"required": true
|
|
@@ -19,21 +19,24 @@ export const operation = {
|
|
|
19
19
|
"flag": "labels",
|
|
20
20
|
"kind": "json",
|
|
21
21
|
"required": true,
|
|
22
|
-
"description": "JSON array of the labels the session keeps, replacing the ones it has. Up to 20, each up to 50 characters, stored lowercase. [] removes them all."
|
|
22
|
+
"description": "JSON array of the labels the session keeps, replacing the ones it has. Up to 20, each up to 50 characters, stored lowercase. [] removes them all.",
|
|
23
|
+
"shape": "string[] (max 20)"
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
"name": "expectedLabels",
|
|
26
27
|
"flag": "expected-labels",
|
|
27
28
|
"kind": "json",
|
|
28
29
|
"required": false,
|
|
29
|
-
"description": "JSON array of the labels the caller last saw on the session. When given, the edit fails with 409 if the session carries different labels by now, or if a label it adds is no longer in the project's labels and is not listed in created."
|
|
30
|
+
"description": "JSON array of the labels the caller last saw on the session. When given, the edit fails with 409 if the session carries different labels by now, or if a label it adds is no longer in the project's labels and is not listed in created.",
|
|
31
|
+
"shape": "string[] (max 20)"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
"name": "created",
|
|
33
35
|
"flag": "created",
|
|
34
36
|
"kind": "json",
|
|
35
37
|
"required": false,
|
|
36
|
-
"description": "JSON array of the labels the caller means to create. With expectedLabels, only these may join the project's labels; without expectedLabels, every new name joins them."
|
|
38
|
+
"description": "JSON array of the labels the caller means to create. With expectedLabels, only these may join the project's labels; without expectedLabels, every new name joins them.",
|
|
39
|
+
"shape": "string[] (max 20)"
|
|
37
40
|
}
|
|
38
41
|
],
|
|
39
42
|
"required": true
|
|
@@ -19,14 +19,16 @@ export const operation = {
|
|
|
19
19
|
"flag": "add",
|
|
20
20
|
"kind": "json",
|
|
21
21
|
"required": false,
|
|
22
|
-
"description": "JSON array of labels the session gains. A name in both add and remove is added."
|
|
22
|
+
"description": "JSON array of labels the session gains. A name in both add and remove is added.",
|
|
23
|
+
"shape": "string[] (max 20)"
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
"name": "remove",
|
|
26
27
|
"flag": "remove",
|
|
27
28
|
"kind": "json",
|
|
28
29
|
"required": false,
|
|
29
|
-
"description": "JSON array of labels the session loses. A name it does not carry is ignored."
|
|
30
|
+
"description": "JSON array of labels the session loses. A name it does not carry is ignored.",
|
|
31
|
+
"shape": "string[] (max 20)"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
"name": "color",
|
|
@@ -16,10 +16,9 @@ export const operation = {
|
|
|
16
16
|
"flag": "kind",
|
|
17
17
|
"kind": "string",
|
|
18
18
|
"required": false,
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Kept for older clients: every session is a task session, so it narrows nothing.",
|
|
20
20
|
"choices": [
|
|
21
|
-
"tasks"
|
|
22
|
-
"apps"
|
|
21
|
+
"tasks"
|
|
23
22
|
]
|
|
24
23
|
},
|
|
25
24
|
{
|
|
@@ -38,7 +38,8 @@ export const operation = {
|
|
|
38
38
|
"kind": "json",
|
|
39
39
|
"required": false,
|
|
40
40
|
"description": "The run's Delegated Run usage: `--usage-file <path>`.",
|
|
41
|
-
"file": true
|
|
41
|
+
"file": true,
|
|
42
|
+
"shape": "{final?: boolean, collectedAt: string, runs: {[key: string]: unknown}[] (max 500)}"
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
"name": "acceptBlocked",
|
|
@@ -31,7 +31,8 @@ export const operation = {
|
|
|
31
31
|
"kind": "json",
|
|
32
32
|
"required": true,
|
|
33
33
|
"description": "One section attempt, as the tester wrote it: `--result-file <result path>`.",
|
|
34
|
-
"file": true
|
|
34
|
+
"file": true,
|
|
35
|
+
"shape": "{section: string, attempt: integer, testedSha: string, startedAt?: string | null, finishedAt?: string | null, setup?: {what: string, command: string}[] (max 100) | null, items: {id: string, verdict: \"passed\"|\"failed\"|\"blocked\", action?: string | null, observation?: string | null, note?: string | null, caveat?: string | null, noVideo?: string, environment?: boolean | null, blocker?: {kind: \"environment\"|\"device\"|\"simulator\"|\"fixture\"|\"credential\"|\"budget\"|\"other\", reason?: string | null, paths?: string[] (max 50) | null} | null, test?: string | null, steps?: string[] (max 50) | null, probe?: string | null, failedStep?: integer | null, figures?: {metric: string, direction?: \"better\"|\"worse\"|\"same\"|\"noise\"}[] (max 50) | null, how?: string | null, standin?: {simulator: string, replaces: string} | string | null, probeRun?: {[key: string]: unknown} | null}[] (max 500), videos?: {artifact: string, seconds: number, check?: {bytes: number, frames: number, seconds: number}, chapters: {item: string}[] (max 500)}[] (max 20) | null, videoCut?: boolean | null}"
|
|
35
36
|
}
|
|
36
37
|
],
|
|
37
38
|
"required": true
|
|
@@ -61,7 +61,8 @@ export const operation = {
|
|
|
61
61
|
"kind": "json",
|
|
62
62
|
"required": false,
|
|
63
63
|
"description": "The sync scope with your `items` decisions: `--sync-file /tmp/qa/sync-scope.json`.",
|
|
64
|
-
"file": true
|
|
64
|
+
"file": true,
|
|
65
|
+
"shape": "{verdict: \"scoped\"|\"full\", merge: string, firstParent?: string | null, mainParent?: string | null, since?: string | null, merges?: {merge: string, firstParent: string, mainParent: string}[] (max 100), items?: {[key: string]: {decision: \"rerun\"|\"carried\", why: string}}}"
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"name": "force",
|
|
@@ -27,7 +27,8 @@ export const operation = {
|
|
|
27
27
|
"flag": "retained-attachment-ids",
|
|
28
28
|
"kind": "json",
|
|
29
29
|
"required": false,
|
|
30
|
-
"description": "The ids of the files to keep. Omitted keeps them all."
|
|
30
|
+
"description": "The ids of the files to keep. Omitted keeps them all.",
|
|
31
|
+
"shape": "string[]"
|
|
31
32
|
}
|
|
32
33
|
],
|
|
33
34
|
"required": true
|
|
@@ -43,13 +43,15 @@ export const operation = {
|
|
|
43
43
|
"name": "previewContext",
|
|
44
44
|
"flag": "preview-context",
|
|
45
45
|
"kind": "json",
|
|
46
|
-
"required": false
|
|
46
|
+
"required": false,
|
|
47
|
+
"shape": "{frontendName: string, path: string}"
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
"name": "diffCommentsContext",
|
|
50
51
|
"flag": "diff-comments-context",
|
|
51
52
|
"kind": "json",
|
|
52
|
-
"required": false
|
|
53
|
+
"required": false,
|
|
54
|
+
"shape": "{id: string, filePath: string, side: \"old\"|\"new\", startLineNumber: integer, endLineNumber: integer, body: string, lineSnapshot: string, isOutdated?: boolean, createdAt?: string}[] (max 50)"
|
|
53
55
|
},
|
|
54
56
|
{
|
|
55
57
|
"name": "retryFailedJobId",
|
|
@@ -63,7 +63,8 @@ export const operation = {
|
|
|
63
63
|
"flag": "next-turn",
|
|
64
64
|
"kind": "json",
|
|
65
65
|
"required": false,
|
|
66
|
-
"description": "Active or Under review only: the Model, Auto, or {kosukeFree:true} in personal scope, the session's next Turn runs on, whether or not a Turn is running now. The next Turn applies it once and clears it. null, or the Model and Auto state the session already has, clears it. Send it on its own."
|
|
66
|
+
"description": "Active or Under review only: the Model, Auto, or {kosukeFree:true} in personal scope, the session's next Turn runs on, whether or not a Turn is running now. The next Turn applies it once and clears it. null, or the Model and Auto state the session already has, clears it. Send it on its own.",
|
|
67
|
+
"shape": "{model: string} | {auto: boolean} | {kosukeFree: boolean} | null"
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
"name": "ownerId",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const operation = {
|
|
2
2
|
"method": "post",
|
|
3
|
-
"path": "/api/
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/tasks",
|
|
4
4
|
"command": [
|
|
5
5
|
"tasks",
|
|
6
6
|
"create"
|
|
@@ -8,7 +8,8 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "personal"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"personalSpace": true,
|
|
12
|
+
"summary": "The same, in your Personal space.",
|
|
12
13
|
"pathParams": [],
|
|
13
14
|
"query": [],
|
|
14
15
|
"body": {
|
|
@@ -20,8 +21,29 @@ export const operation = {
|
|
|
20
21
|
"required": true
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
|
-
"name": "
|
|
24
|
-
"flag": "
|
|
24
|
+
"name": "model",
|
|
25
|
+
"flag": "model",
|
|
26
|
+
"kind": "string",
|
|
27
|
+
"required": false,
|
|
28
|
+
"description": "A model, or kosuke-free for personal work. Workspace tasks never use Sensei free."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "auto",
|
|
32
|
+
"flag": "auto",
|
|
33
|
+
"kind": "boolean",
|
|
34
|
+
"required": false,
|
|
35
|
+
"description": "True starts the session on Auto: the platform picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "kosukeFree",
|
|
39
|
+
"flag": "kosuke-free",
|
|
40
|
+
"kind": "boolean",
|
|
41
|
+
"required": false,
|
|
42
|
+
"description": "true starts the session on Sensei free, on the serving source's model. A member who can run no provider starts on it anyway; false never does."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "ownerId",
|
|
46
|
+
"flag": "owner-id",
|
|
25
47
|
"kind": "string",
|
|
26
48
|
"required": false
|
|
27
49
|
},
|
|
@@ -38,6 +60,70 @@ export const operation = {
|
|
|
38
60
|
"none"
|
|
39
61
|
]
|
|
40
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "startBranch",
|
|
65
|
+
"flag": "start-branch",
|
|
66
|
+
"kind": "string",
|
|
67
|
+
"required": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "branch",
|
|
71
|
+
"flag": "branch",
|
|
72
|
+
"kind": "string",
|
|
73
|
+
"required": false,
|
|
74
|
+
"description": "An existing branch the session works on: it checks it out, pushes to it and opens its pull request from it. Not the default branch, the Target Branch, or a branch another open session works on. Absent: a new branch. Repository projects only; not with startBranch."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "reason",
|
|
78
|
+
"flag": "reason",
|
|
79
|
+
"kind": "string",
|
|
80
|
+
"required": false,
|
|
81
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "startWhenDeployed",
|
|
85
|
+
"flag": "start-when-deployed",
|
|
86
|
+
"kind": "boolean",
|
|
87
|
+
"required": false,
|
|
88
|
+
"description": "With status=backlog, from a member: when the project's first Deploy has not landed, the platform starts the ticket with /kosuke:ship as its Assignee once it lands. The session's startWhenDeployedAt says whether it was marked; ignored otherwise."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "sandboxSize",
|
|
92
|
+
"flag": "sandbox-size",
|
|
93
|
+
"kind": "string",
|
|
94
|
+
"required": false,
|
|
95
|
+
"description": "The session's Sandbox size: small (2 CPU, 4 GB), medium (4 CPU, 8 GB), large (8 CPU, 16 GB) or xlarge (16 CPU, 32 GB). Absent boots the project's size. Fixed once the session starts.",
|
|
96
|
+
"choices": [
|
|
97
|
+
"small",
|
|
98
|
+
"medium",
|
|
99
|
+
"large",
|
|
100
|
+
"xlarge"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "appStack",
|
|
105
|
+
"flag": "app-stack",
|
|
106
|
+
"kind": "string",
|
|
107
|
+
"required": false,
|
|
108
|
+
"description": "start (default) runs the project's services when the sandbox boots. skip boots setup and the agent only; a member or the session's agent starts the services later with `kosuke sessions app-stack start`. Fixed once the session starts.",
|
|
109
|
+
"choices": [
|
|
110
|
+
"start",
|
|
111
|
+
"skip"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "description",
|
|
116
|
+
"flag": "description",
|
|
117
|
+
"kind": "string",
|
|
118
|
+
"required": false,
|
|
119
|
+
"description": "Markdown someone with none of your context can act on: the goal, why it matters, the limits, what done contains, and what the repository does not hold (a log line, an error, a URL). Resolve every \"it\" and @mention; keep the member's decisions and scope; leave out empty sections."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "hintProjectId",
|
|
123
|
+
"flag": "hint-project",
|
|
124
|
+
"kind": "string",
|
|
125
|
+
"required": false
|
|
126
|
+
},
|
|
41
127
|
{
|
|
42
128
|
"name": "status",
|
|
43
129
|
"flag": "status",
|
|
@@ -53,21 +139,159 @@ export const operation = {
|
|
|
53
139
|
"name": "dueOn",
|
|
54
140
|
"flag": "due-on",
|
|
55
141
|
"kind": "string",
|
|
56
|
-
"required": false
|
|
57
|
-
"description": "A calendar day, YYYY-MM-DD."
|
|
142
|
+
"required": false
|
|
58
143
|
},
|
|
59
144
|
{
|
|
60
145
|
"name": "threadId",
|
|
61
146
|
"flag": "thread-id",
|
|
62
147
|
"kind": "string",
|
|
63
|
-
"required": false
|
|
64
|
-
"description": "One of your Sensei threads. A Sensei Turn defaults it to its own thread."
|
|
148
|
+
"required": false
|
|
65
149
|
}
|
|
66
150
|
],
|
|
67
151
|
"required": true
|
|
68
152
|
},
|
|
69
|
-
"multipart":
|
|
70
|
-
|
|
153
|
+
"multipart": [
|
|
154
|
+
{
|
|
155
|
+
"name": "title",
|
|
156
|
+
"flag": "title",
|
|
157
|
+
"kind": "string",
|
|
158
|
+
"required": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "model",
|
|
162
|
+
"flag": "model",
|
|
163
|
+
"kind": "string",
|
|
164
|
+
"required": false,
|
|
165
|
+
"description": "A model, or kosuke-free for personal work. Workspace tasks never use Sensei free."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "auto",
|
|
169
|
+
"flag": "auto",
|
|
170
|
+
"kind": "boolean",
|
|
171
|
+
"required": false,
|
|
172
|
+
"description": "True starts the session on Auto: the platform picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "kosukeFree",
|
|
176
|
+
"flag": "kosuke-free",
|
|
177
|
+
"kind": "boolean",
|
|
178
|
+
"required": false,
|
|
179
|
+
"description": "true starts the session on Sensei free, on the serving source's model. A member who can run no provider starts on it anyway; false never does."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "ownerId",
|
|
183
|
+
"flag": "owner-id",
|
|
184
|
+
"kind": "string",
|
|
185
|
+
"required": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "priority",
|
|
189
|
+
"flag": "priority",
|
|
190
|
+
"kind": "string",
|
|
191
|
+
"required": false,
|
|
192
|
+
"choices": [
|
|
193
|
+
"urgent",
|
|
194
|
+
"high",
|
|
195
|
+
"medium",
|
|
196
|
+
"low",
|
|
197
|
+
"none"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "startBranch",
|
|
202
|
+
"flag": "start-branch",
|
|
203
|
+
"kind": "string",
|
|
204
|
+
"required": false
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "branch",
|
|
208
|
+
"flag": "branch",
|
|
209
|
+
"kind": "string",
|
|
210
|
+
"required": false,
|
|
211
|
+
"description": "An existing branch the session works on: it checks it out, pushes to it and opens its pull request from it. Not the default branch, the Target Branch, or a branch another open session works on. Absent: a new branch. Repository projects only; not with startBranch."
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "reason",
|
|
215
|
+
"flag": "reason",
|
|
216
|
+
"kind": "string",
|
|
217
|
+
"required": false,
|
|
218
|
+
"description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "startWhenDeployed",
|
|
222
|
+
"flag": "start-when-deployed",
|
|
223
|
+
"kind": "boolean",
|
|
224
|
+
"required": false,
|
|
225
|
+
"description": "With status=backlog, from a member: when the project's first Deploy has not landed, the platform starts the ticket with /kosuke:ship as its Assignee once it lands. The session's startWhenDeployedAt says whether it was marked; ignored otherwise."
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "sandboxSize",
|
|
229
|
+
"flag": "sandbox-size",
|
|
230
|
+
"kind": "string",
|
|
231
|
+
"required": false,
|
|
232
|
+
"description": "The session's Sandbox size: small (2 CPU, 4 GB), medium (4 CPU, 8 GB), large (8 CPU, 16 GB) or xlarge (16 CPU, 32 GB). Absent boots the project's size. Fixed once the session starts.",
|
|
233
|
+
"choices": [
|
|
234
|
+
"small",
|
|
235
|
+
"medium",
|
|
236
|
+
"large",
|
|
237
|
+
"xlarge"
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "appStack",
|
|
242
|
+
"flag": "app-stack",
|
|
243
|
+
"kind": "string",
|
|
244
|
+
"required": false,
|
|
245
|
+
"description": "start (default) runs the project's services when the sandbox boots. skip boots setup and the agent only; a member or the session's agent starts the services later with `kosuke sessions app-stack start`. Fixed once the session starts.",
|
|
246
|
+
"choices": [
|
|
247
|
+
"start",
|
|
248
|
+
"skip"
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "description",
|
|
253
|
+
"flag": "description",
|
|
254
|
+
"kind": "string",
|
|
255
|
+
"required": false,
|
|
256
|
+
"description": "Markdown someone with none of your context can act on: the goal, why it matters, the limits, what done contains, and what the repository does not hold (a log line, an error, a URL). Resolve every \"it\" and @mention; keep the member's decisions and scope; leave out empty sections."
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "hintProjectId",
|
|
260
|
+
"flag": "hint-project",
|
|
261
|
+
"kind": "string",
|
|
262
|
+
"required": false
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "status",
|
|
266
|
+
"flag": "status",
|
|
267
|
+
"kind": "string",
|
|
268
|
+
"required": false,
|
|
269
|
+
"choices": [
|
|
270
|
+
"todo",
|
|
271
|
+
"in_progress",
|
|
272
|
+
"done"
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "dueOn",
|
|
277
|
+
"flag": "due-on",
|
|
278
|
+
"kind": "string",
|
|
279
|
+
"required": false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "threadId",
|
|
283
|
+
"flag": "thread-id",
|
|
284
|
+
"kind": "string",
|
|
285
|
+
"required": false
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"attachments": {
|
|
289
|
+
"maxFiles": 20,
|
|
290
|
+
"maxBytes": 10485760,
|
|
291
|
+
"uploadPath": "/api/projects/{hintProjectId}/attachments"
|
|
292
|
+
},
|
|
71
293
|
"anonymous": false,
|
|
72
|
-
"agents":
|
|
294
|
+
"agents": [
|
|
295
|
+
"senseiToken"
|
|
296
|
+
]
|
|
73
297
|
};
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"tasks",
|
|
6
6
|
"create"
|
|
7
7
|
],
|
|
8
|
-
"summary": "File a task. A hint files into that project;
|
|
8
|
+
"summary": "File a task. A hint files into that project. personal files a task in your Personal space, yours alone; dueOn, threadId and in_progress are for that one, and from a Sensei Turn it joins the Turn's thread unless threadId names another. From Sensei, ownerId is the member, or the teammate they name; leave sandboxSize to the member, who changes it in the task's Properties. Answers shareUrl: link the task's title to it.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"workspaceId"
|
|
11
11
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const operation = {
|
|
2
2
|
"method": "delete",
|
|
3
|
-
"path": "/api/
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/tasks/{taskId}",
|
|
4
4
|
"command": [
|
|
5
5
|
"tasks",
|
|
6
6
|
"delete"
|
|
@@ -8,7 +8,8 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "personal"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"personalSpace": true,
|
|
12
|
+
"summary": "The same, in your Personal space.",
|
|
12
13
|
"pathParams": [
|
|
13
14
|
"taskId"
|
|
14
15
|
],
|
|
@@ -17,5 +18,7 @@ export const operation = {
|
|
|
17
18
|
"multipart": null,
|
|
18
19
|
"attachments": false,
|
|
19
20
|
"anonymous": false,
|
|
20
|
-
"agents":
|
|
21
|
+
"agents": [
|
|
22
|
+
"senseiToken"
|
|
23
|
+
]
|
|
21
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const operation = {
|
|
2
2
|
"method": "get",
|
|
3
|
-
"path": "/api/
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/tasks/{taskId}",
|
|
4
4
|
"command": [
|
|
5
5
|
"tasks",
|
|
6
6
|
"get"
|
|
@@ -8,7 +8,8 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "personal"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"personalSpace": true,
|
|
12
|
+
"summary": "The same, in your Personal space.",
|
|
12
13
|
"pathParams": [
|
|
13
14
|
"taskId"
|
|
14
15
|
],
|
|
@@ -17,5 +18,7 @@ export const operation = {
|
|
|
17
18
|
"multipart": null,
|
|
18
19
|
"attachments": false,
|
|
19
20
|
"anonymous": false,
|
|
20
|
-
"agents":
|
|
21
|
+
"agents": [
|
|
22
|
+
"senseiToken"
|
|
23
|
+
]
|
|
21
24
|
};
|
|
@@ -8,7 +8,7 @@ export const operation = {
|
|
|
8
8
|
"variant": {
|
|
9
9
|
"scope": "all"
|
|
10
10
|
},
|
|
11
|
-
"summary": "List tasks across your workspaces. Agent credentials stay in their workspace. includeOpenCount counts Todo and In progress with the same filters, independent of status and cursor. Before you file or propose a ticket, read the open ones (--status todo,in_progress --include-prompt, following meta.pagination.nextCursor with --cursor) and judge overlap by meaning, not title words: work another task or session already covers gets no new ticket.",
|
|
11
|
+
"summary": "List tasks across your workspaces, your own Personal space included. Agent credentials stay in their workspace. includeOpenCount counts Todo and In progress with the same filters, independent of status and cursor. Before you file or propose a ticket, read the open ones (--status todo,in_progress --include-prompt, following meta.pagination.nextCursor with --cursor) and judge overlap by meaning, not title words: work another task or session already covers gets no new ticket.",
|
|
12
12
|
"pathParams": [],
|
|
13
13
|
"query": [
|
|
14
14
|
{
|