@kosuke-ai/cli 6.9.0 → 6.11.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/generated/commands/index.js +85 -83
- package/dist/generated/commands/integrations/execute.js +2 -2
- package/dist/generated/commands/integrations/tools.js +2 -2
- package/dist/generated/commands/sessions/message.js +36 -0
- package/dist/generated/commands/sessions/messages.js +18 -3
- package/dist/program.js +2 -5
- package/dist/runtime/credentials.js +2 -4
- package/openapi.json +117 -8
- package/package.json +1 -1
|
@@ -95,89 +95,90 @@ import { operation as o93 } from './sessions/labels-edit.js';
|
|
|
95
95
|
import { operation as o94 } from './sessions/labels-set.js';
|
|
96
96
|
import { operation as o95 } from './sessions/list.js';
|
|
97
97
|
import { operation as o96 } from './sessions/mark-read.js';
|
|
98
|
-
import { operation as o97 } from './sessions/
|
|
99
|
-
import { operation as o98 } from './sessions/
|
|
100
|
-
import { operation as o99 } from './sessions/
|
|
101
|
-
import { operation as o100 } from './sessions/queue-
|
|
102
|
-
import { operation as o101 } from './sessions/queue-
|
|
103
|
-
import { operation as o102 } from './sessions/queue-
|
|
104
|
-
import { operation as o103 } from './sessions/queue-
|
|
105
|
-
import { operation as o104 } from './sessions/queue-
|
|
106
|
-
import { operation as o105 } from './sessions/queue-
|
|
107
|
-
import { operation as o106 } from './sessions/
|
|
108
|
-
import { operation as o107 } from './sessions/
|
|
109
|
-
import { operation as o108 } from './sessions/
|
|
110
|
-
import { operation as o109 } from './sessions/
|
|
111
|
-
import { operation as o110 } from './sessions/
|
|
112
|
-
import { operation as o111 } from './sessions/
|
|
113
|
-
import { operation as o112 } from './sessions/
|
|
114
|
-
import { operation as o113 } from './
|
|
115
|
-
import { operation as o114 } from './user/
|
|
116
|
-
import { operation as o115 } from './user/integrations-
|
|
117
|
-
import { operation as o116 } from './user/
|
|
118
|
-
import { operation as o117 } from './user/plugins-
|
|
119
|
-
import { operation as o118 } from './user/
|
|
120
|
-
import { operation as o119 } from './user/
|
|
121
|
-
import { operation as o120 } from './user/push-devices-
|
|
122
|
-
import { operation as o121 } from './user/
|
|
123
|
-
import { operation as o122 } from './user/skills-
|
|
124
|
-
import { operation as o123 } from './user/skills-
|
|
125
|
-
import { operation as o124 } from './user/skills-
|
|
126
|
-
import { operation as o125 } from './user/skills-
|
|
127
|
-
import { operation as o126 } from './user/
|
|
128
|
-
import { operation as o127 } from './user/subscriptions-
|
|
129
|
-
import { operation as o128 } from './user/subscriptions-
|
|
130
|
-
import { operation as o129 } from './user/subscriptions-login-claude-
|
|
131
|
-
import { operation as o130 } from './user/subscriptions-login-
|
|
132
|
-
import { operation as o131 } from './user/subscriptions-login-codex-
|
|
133
|
-
import { operation as o132 } from './user/subscriptions-
|
|
134
|
-
import { operation as o133 } from './user/subscriptions-logins-
|
|
135
|
-
import { operation as o134 } from './user/subscriptions-
|
|
136
|
-
import { operation as o135 } from './user/subscriptions-set-
|
|
137
|
-
import { operation as o136 } from './user/subscriptions-
|
|
138
|
-
import { operation as o137 } from './
|
|
139
|
-
import { operation as o138 } from './workspaces/
|
|
140
|
-
import { operation as o139 } from './workspaces/ai-provider-
|
|
141
|
-
import { operation as o140 } from './workspaces/ai-provider-
|
|
142
|
-
import { operation as o141 } from './workspaces/ai-provider-
|
|
143
|
-
import { operation as o142 } from './workspaces/ai-provider-
|
|
144
|
-
import { operation as o143 } from './workspaces/ai-provider-usage-
|
|
145
|
-
import { operation as o144 } from './workspaces/ai-provider-usage-
|
|
146
|
-
import { operation as o145 } from './workspaces/ai-provider-usage-
|
|
147
|
-
import { operation as o146 } from './workspaces/ai-provider-usage-
|
|
148
|
-
import { operation as o147 } from './workspaces/
|
|
149
|
-
import { operation as o148 } from './workspaces/
|
|
150
|
-
import { operation as o149 } from './workspaces/
|
|
151
|
-
import { operation as o150 } from './workspaces/
|
|
152
|
-
import { operation as o151 } from './workspaces/getting-started-
|
|
153
|
-
import { operation as o152 } from './workspaces/
|
|
154
|
-
import { operation as o153 } from './workspaces/integrations-
|
|
155
|
-
import { operation as o154 } from './workspaces/integrations-
|
|
156
|
-
import { operation as o155 } from './workspaces/integrations-
|
|
157
|
-
import { operation as o156 } from './workspaces/
|
|
158
|
-
import { operation as o157 } from './workspaces/lead-
|
|
159
|
-
import { operation as o158 } from './workspaces/lead-
|
|
160
|
-
import { operation as o159 } from './workspaces/lead-
|
|
161
|
-
import { operation as o160 } from './workspaces/lead-
|
|
162
|
-
import { operation as o161 } from './workspaces/lead-
|
|
163
|
-
import { operation as o162 } from './workspaces/lead-
|
|
164
|
-
import { operation as o163 } from './workspaces/
|
|
165
|
-
import { operation as o164 } from './workspaces/
|
|
166
|
-
import { operation as o165 } from './workspaces/
|
|
167
|
-
import { operation as o166 } from './workspaces/plugins-
|
|
168
|
-
import { operation as o167 } from './workspaces/
|
|
169
|
-
import { operation as o168 } from './workspaces/provider-login-claude-
|
|
170
|
-
import { operation as o169 } from './workspaces/provider-login-
|
|
171
|
-
import { operation as o170 } from './workspaces/provider-login-codex-
|
|
172
|
-
import { operation as o171 } from './workspaces/
|
|
173
|
-
import { operation as o172 } from './workspaces/
|
|
174
|
-
import { operation as o173 } from './workspaces/skills-
|
|
175
|
-
import { operation as o174 } from './workspaces/skills-
|
|
176
|
-
import { operation as o175 } from './workspaces/skills-
|
|
177
|
-
import { operation as o176 } from './workspaces/skills-
|
|
178
|
-
import { operation as o177 } from './workspaces/
|
|
179
|
-
import { operation as o178 } from './workspaces/
|
|
180
|
-
import { operation as o179 } from './workspaces/
|
|
98
|
+
import { operation as o97 } from './sessions/message.js';
|
|
99
|
+
import { operation as o98 } from './sessions/messages.js';
|
|
100
|
+
import { operation as o99 } from './sessions/needs-you.js';
|
|
101
|
+
import { operation as o100 } from './sessions/queue-delete.js';
|
|
102
|
+
import { operation as o101 } from './sessions/queue-list.js';
|
|
103
|
+
import { operation as o102 } from './sessions/queue-move.js';
|
|
104
|
+
import { operation as o103 } from './sessions/queue-resume.js';
|
|
105
|
+
import { operation as o104 } from './sessions/queue-send.js';
|
|
106
|
+
import { operation as o105 } from './sessions/queue-steer.js';
|
|
107
|
+
import { operation as o106 } from './sessions/queue-update.js';
|
|
108
|
+
import { operation as o107 } from './sessions/runtime-command.js';
|
|
109
|
+
import { operation as o108 } from './sessions/search.js';
|
|
110
|
+
import { operation as o109 } from './sessions/send.js';
|
|
111
|
+
import { operation as o110 } from './sessions/steer.js';
|
|
112
|
+
import { operation as o111 } from './sessions/sync.js';
|
|
113
|
+
import { operation as o112 } from './sessions/title-generate.js';
|
|
114
|
+
import { operation as o113 } from './sessions/update.js';
|
|
115
|
+
import { operation as o114 } from './user/auth-token-revoke.js';
|
|
116
|
+
import { operation as o115 } from './user/integrations-list.js';
|
|
117
|
+
import { operation as o116 } from './user/integrations-remove.js';
|
|
118
|
+
import { operation as o117 } from './user/plugins-list.js';
|
|
119
|
+
import { operation as o118 } from './user/plugins-update.js';
|
|
120
|
+
import { operation as o119 } from './user/profile.js';
|
|
121
|
+
import { operation as o120 } from './user/push-devices-register.js';
|
|
122
|
+
import { operation as o121 } from './user/push-devices-remove.js';
|
|
123
|
+
import { operation as o122 } from './user/skills-create.js';
|
|
124
|
+
import { operation as o123 } from './user/skills-delete.js';
|
|
125
|
+
import { operation as o124 } from './user/skills-get.js';
|
|
126
|
+
import { operation as o125 } from './user/skills-list.js';
|
|
127
|
+
import { operation as o126 } from './user/skills-update.js';
|
|
128
|
+
import { operation as o127 } from './user/subscriptions-delete.js';
|
|
129
|
+
import { operation as o128 } from './user/subscriptions-get.js';
|
|
130
|
+
import { operation as o129 } from './user/subscriptions-login-claude-complete.js';
|
|
131
|
+
import { operation as o130 } from './user/subscriptions-login-claude-start.js';
|
|
132
|
+
import { operation as o131 } from './user/subscriptions-login-codex-complete.js';
|
|
133
|
+
import { operation as o132 } from './user/subscriptions-login-codex-start.js';
|
|
134
|
+
import { operation as o133 } from './user/subscriptions-logins-delete.js';
|
|
135
|
+
import { operation as o134 } from './user/subscriptions-logins-reorder.js';
|
|
136
|
+
import { operation as o135 } from './user/subscriptions-set-default-model.js';
|
|
137
|
+
import { operation as o136 } from './user/subscriptions-set-key.js';
|
|
138
|
+
import { operation as o137 } from './user/subscriptions-usage.js';
|
|
139
|
+
import { operation as o138 } from './workspaces/access-status.js';
|
|
140
|
+
import { operation as o139 } from './workspaces/ai-provider-get.js';
|
|
141
|
+
import { operation as o140 } from './workspaces/ai-provider-logins-reorder.js';
|
|
142
|
+
import { operation as o141 } from './workspaces/ai-provider-remove.js';
|
|
143
|
+
import { operation as o142 } from './workspaces/ai-provider-set.js';
|
|
144
|
+
import { operation as o143 } from './workspaces/ai-provider-usage-claude.js';
|
|
145
|
+
import { operation as o144 } from './workspaces/ai-provider-usage-codex.js';
|
|
146
|
+
import { operation as o145 } from './workspaces/ai-provider-usage-coding-plan.js';
|
|
147
|
+
import { operation as o146 } from './workspaces/ai-provider-usage-deepseek.js';
|
|
148
|
+
import { operation as o147 } from './workspaces/ai-provider-usage-kimi-code.js';
|
|
149
|
+
import { operation as o148 } from './workspaces/artifacts.js';
|
|
150
|
+
import { operation as o149 } from './workspaces/credits.js';
|
|
151
|
+
import { operation as o150 } from './workspaces/get.js';
|
|
152
|
+
import { operation as o151 } from './workspaces/getting-started-get.js';
|
|
153
|
+
import { operation as o152 } from './workspaces/getting-started-update.js';
|
|
154
|
+
import { operation as o153 } from './workspaces/integrations-get.js';
|
|
155
|
+
import { operation as o154 } from './workspaces/integrations-list.js';
|
|
156
|
+
import { operation as o155 } from './workspaces/integrations-remove.js';
|
|
157
|
+
import { operation as o156 } from './workspaces/integrations-slack-get.js';
|
|
158
|
+
import { operation as o157 } from './workspaces/lead-cards.js';
|
|
159
|
+
import { operation as o158 } from './workspaces/lead-merge.js';
|
|
160
|
+
import { operation as o159 } from './workspaces/lead-notifications-open.js';
|
|
161
|
+
import { operation as o160 } from './workspaces/lead-proposals-create.js';
|
|
162
|
+
import { operation as o161 } from './workspaces/lead-review-request.js';
|
|
163
|
+
import { operation as o162 } from './workspaces/lead-session-send.js';
|
|
164
|
+
import { operation as o163 } from './workspaces/lead-triage.js';
|
|
165
|
+
import { operation as o164 } from './workspaces/list.js';
|
|
166
|
+
import { operation as o165 } from './workspaces/members.js';
|
|
167
|
+
import { operation as o166 } from './workspaces/plugins-list.js';
|
|
168
|
+
import { operation as o167 } from './workspaces/plugins-update.js';
|
|
169
|
+
import { operation as o168 } from './workspaces/provider-login-claude-complete.js';
|
|
170
|
+
import { operation as o169 } from './workspaces/provider-login-claude-start.js';
|
|
171
|
+
import { operation as o170 } from './workspaces/provider-login-codex-complete.js';
|
|
172
|
+
import { operation as o171 } from './workspaces/provider-login-codex-start.js';
|
|
173
|
+
import { operation as o172 } from './workspaces/sandbox-limit.js';
|
|
174
|
+
import { operation as o173 } from './workspaces/skills-create.js';
|
|
175
|
+
import { operation as o174 } from './workspaces/skills-delete.js';
|
|
176
|
+
import { operation as o175 } from './workspaces/skills-get.js';
|
|
177
|
+
import { operation as o176 } from './workspaces/skills-list.js';
|
|
178
|
+
import { operation as o177 } from './workspaces/skills-update.js';
|
|
179
|
+
import { operation as o178 } from './workspaces/stop-sandboxes.js';
|
|
180
|
+
import { operation as o179 } from './workspaces/timezone-set.js';
|
|
181
|
+
import { operation as o180 } from './workspaces/usage.js';
|
|
181
182
|
export const operations = [
|
|
182
183
|
o0,
|
|
183
184
|
o1,
|
|
@@ -359,4 +360,5 @@ export const operations = [
|
|
|
359
360
|
o177,
|
|
360
361
|
o178,
|
|
361
362
|
o179,
|
|
363
|
+
o180,
|
|
362
364
|
];
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"integrations",
|
|
6
6
|
"execute"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Run one integration tool. An agent runs it for its own workspace, or on the member’s personal connection when that member started the turn. With an API key, name a workspace you belong to: the call runs only on your own personal connections, and one on a workspace connection is refused. The answer names the connection it ran on, or lists the connections to choose from when the call needs one. A tool failure answers 200 with isError true. A Connector Token or a browser session is refused.",
|
|
8
|
+
"summary": "Run one integration tool. An agent runs it for its own workspace, or on the member’s personal connection when that member started the turn; the Slack Bot’s agent runs only the workspace’s. With an API key, name a workspace you belong to: the call runs only on your own personal connections, and one on a workspace connection is refused. The answer names the connection it ran on, or lists the connections to choose from when the call needs one. A tool failure answers 200 with isError true. A Connector Token or a browser session is refused.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [
|
|
11
11
|
{
|
|
@@ -46,7 +46,7 @@ export const operation = {
|
|
|
46
46
|
"attachments": false,
|
|
47
47
|
"anonymous": false,
|
|
48
48
|
"sandboxToken": true,
|
|
49
|
-
"orchestratorToken":
|
|
49
|
+
"orchestratorToken": true,
|
|
50
50
|
"cronToken": true,
|
|
51
51
|
"leadToken": true
|
|
52
52
|
};
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"integrations",
|
|
6
6
|
"tools"
|
|
7
7
|
],
|
|
8
|
-
"summary": "List the integration tools you can run now, with the connections that run them. An agent reads its own workspace. With an API key, name a workspace you belong to: it shows that workspace’s connections and your own personal ones. A Connector Token or a browser session is refused.",
|
|
8
|
+
"summary": "List the integration tools you can run now, with the connections that run them. An agent reads its own workspace; the Slack Bot’s agent sees the workspace’s connections only. With an API key, name a workspace you belong to: it shows that workspace’s connections and your own personal ones. A Connector Token or a browser session is refused.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [
|
|
11
11
|
{
|
|
@@ -67,7 +67,7 @@ export const operation = {
|
|
|
67
67
|
"attachments": false,
|
|
68
68
|
"anonymous": false,
|
|
69
69
|
"sandboxToken": true,
|
|
70
|
-
"orchestratorToken":
|
|
70
|
+
"orchestratorToken": true,
|
|
71
71
|
"cronToken": true,
|
|
72
72
|
"leadToken": true
|
|
73
73
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/projects/{projectId}/chat-sessions/{sessionId}/messages/{messageId}",
|
|
4
|
+
"command": [
|
|
5
|
+
"sessions",
|
|
6
|
+
"message"
|
|
7
|
+
],
|
|
8
|
+
"summary": "Read one message of a chat session with every block as recorded: whole tool inputs, errors and subagent output, unless agentOutput is compact or summary.",
|
|
9
|
+
"pathParams": [
|
|
10
|
+
"projectId",
|
|
11
|
+
"sessionId",
|
|
12
|
+
"messageId"
|
|
13
|
+
],
|
|
14
|
+
"query": [
|
|
15
|
+
{
|
|
16
|
+
"name": "agentOutput",
|
|
17
|
+
"flag": "agent-output",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "full (the default) returns every block as recorded; compact keeps the message's blocks whole and clips its subagents' output as sessions messages does; summary cuts it as the sessions messages default does.",
|
|
21
|
+
"choices": [
|
|
22
|
+
"summary",
|
|
23
|
+
"compact",
|
|
24
|
+
"full"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"body": null,
|
|
29
|
+
"multipart": null,
|
|
30
|
+
"attachments": false,
|
|
31
|
+
"anonymous": false,
|
|
32
|
+
"sandboxToken": true,
|
|
33
|
+
"orchestratorToken": true,
|
|
34
|
+
"cronToken": true,
|
|
35
|
+
"leadToken": true
|
|
36
|
+
};
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"sessions",
|
|
6
6
|
"messages"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Read a chat session conversation
|
|
8
|
+
"summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one. messageCount counts the whole conversation. Subagents and tool inputs come summarized unless agentOutput is compact or full; sessions message reads one message whole.",
|
|
9
9
|
"pathParams": [
|
|
10
10
|
"projectId",
|
|
11
11
|
"sessionId"
|
|
@@ -16,15 +16,30 @@ export const operation = {
|
|
|
16
16
|
"flag": "limit",
|
|
17
17
|
"kind": "integer",
|
|
18
18
|
"required": false,
|
|
19
|
-
"description": "Only the newest messages, up to this many."
|
|
19
|
+
"description": "Only the newest messages, up to this many. With from, the oldest this many from that message on."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "before",
|
|
23
|
+
"flag": "before",
|
|
24
|
+
"kind": "string",
|
|
25
|
+
"required": false,
|
|
26
|
+
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "from",
|
|
30
|
+
"flag": "from",
|
|
31
|
+
"kind": "string",
|
|
32
|
+
"required": false,
|
|
33
|
+
"description": "An olderCursor from an earlier read: the oldest message of that read and every message after it."
|
|
20
34
|
},
|
|
21
35
|
{
|
|
22
36
|
"name": "agentOutput",
|
|
23
37
|
"flag": "agent-output",
|
|
24
38
|
"kind": "string",
|
|
25
39
|
"required": false,
|
|
26
|
-
"description": "
|
|
40
|
+
"description": "summary (the default) keeps each subagent's name, status, outputCount and its last output entry, and each tool call's short input fields; compact keeps every subagent tool call's name, status, short input fields and error, and clips long subagent text; full returns every input and result as recorded.",
|
|
27
41
|
"choices": [
|
|
42
|
+
"summary",
|
|
28
43
|
"compact",
|
|
29
44
|
"full"
|
|
30
45
|
]
|
package/dist/program.js
CHANGED
|
@@ -56,11 +56,8 @@ export function createProgram(options = {}) {
|
|
|
56
56
|
// member's own key and their Lead may mark Activity seen, so the others
|
|
57
57
|
// read it with `--peek`.
|
|
58
58
|
attachAgentCommands(program, lazy, options.agent);
|
|
59
|
-
// Beside the generated `integrations tools` and `execute`, which stay raw passthroughs.
|
|
60
|
-
|
|
61
|
-
if (narrowedTo !== 'orchestratorToken') {
|
|
62
|
-
attachIntegrationsCommands(program, lazy, options.integrations);
|
|
63
|
-
}
|
|
59
|
+
// Beside the generated `integrations tools` and `execute`, which stay raw passthroughs.
|
|
60
|
+
attachIntegrationsCommands(program, lazy, options.integrations);
|
|
64
61
|
// The job stream admits a member's API key only; it closes 4401 on every narrower token.
|
|
65
62
|
if (narrowedTo === null)
|
|
66
63
|
attachWatchCommand(program, lazy, options.watch);
|
|
@@ -37,12 +37,10 @@ const LEAD_TOKEN_PREFIX = 'kosuke_lead_';
|
|
|
37
37
|
export function isLeadToken(token) {
|
|
38
38
|
return token?.startsWith(LEAD_TOKEN_PREFIX) ?? false;
|
|
39
39
|
}
|
|
40
|
-
/**
|
|
41
|
-
* A credential that decides its own workspace: a sandbox, cron or Lead token.
|
|
42
|
-
* The orchestrator token is left out because it reaches no integration tools.
|
|
43
|
-
*/
|
|
40
|
+
/** A credential that decides its own workspace: any of the four agent tokens. */
|
|
44
41
|
export function isTurnToken(token) {
|
|
45
42
|
return (isSandboxAgentToken(token ?? undefined) ||
|
|
43
|
+
isOrchestratorToken(token ?? undefined) ||
|
|
46
44
|
isCronToken(token ?? undefined) ||
|
|
47
45
|
isLeadToken(token ?? undefined));
|
|
48
46
|
}
|
package/openapi.json
CHANGED
|
@@ -144,10 +144,11 @@
|
|
|
144
144
|
"/api/agent-integrations/execute": {
|
|
145
145
|
"post": {
|
|
146
146
|
"operationId": "integrationsExecute",
|
|
147
|
-
"summary": "Run one integration tool. An agent runs it for its own workspace, or on the member’s personal connection when that member started the turn. With an API key, name a workspace you belong to: the call runs only on your own personal connections, and one on a workspace connection is refused. The answer names the connection it ran on, or lists the connections to choose from when the call needs one. A tool failure answers 200 with isError true. A Connector Token or a browser session is refused.",
|
|
147
|
+
"summary": "Run one integration tool. An agent runs it for its own workspace, or on the member’s personal connection when that member started the turn; the Slack Bot’s agent runs only the workspace’s. With an API key, name a workspace you belong to: the call runs only on your own personal connections, and one on a workspace connection is refused. The answer names the connection it ran on, or lists the connections to choose from when the call needs one. A tool failure answers 200 with isError true. A Connector Token or a browser session is refused.",
|
|
148
148
|
"tags": ["integrations"],
|
|
149
149
|
"x-kosuke-command": ["integrations", "execute"],
|
|
150
150
|
"x-kosuke-sandbox-token": true,
|
|
151
|
+
"x-kosuke-orchestrator-token": true,
|
|
151
152
|
"x-kosuke-cron-token": true,
|
|
152
153
|
"x-kosuke-lead-token": true,
|
|
153
154
|
"parameters": [
|
|
@@ -235,10 +236,11 @@
|
|
|
235
236
|
"/api/agent-integrations/tools": {
|
|
236
237
|
"get": {
|
|
237
238
|
"operationId": "integrationsTools",
|
|
238
|
-
"summary": "List the integration tools you can run now, with the connections that run them. An agent reads its own workspace. With an API key, name a workspace you belong to: it shows that workspace’s connections and your own personal ones. A Connector Token or a browser session is refused.",
|
|
239
|
+
"summary": "List the integration tools you can run now, with the connections that run them. An agent reads its own workspace; the Slack Bot’s agent sees the workspace’s connections only. With an API key, name a workspace you belong to: it shows that workspace’s connections and your own personal ones. A Connector Token or a browser session is refused.",
|
|
239
240
|
"tags": ["integrations"],
|
|
240
241
|
"x-kosuke-command": ["integrations", "tools"],
|
|
241
242
|
"x-kosuke-sandbox-token": true,
|
|
243
|
+
"x-kosuke-orchestrator-token": true,
|
|
242
244
|
"x-kosuke-cron-token": true,
|
|
243
245
|
"x-kosuke-lead-token": true,
|
|
244
246
|
"parameters": [
|
|
@@ -7937,7 +7939,7 @@
|
|
|
7937
7939
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/messages": {
|
|
7938
7940
|
"get": {
|
|
7939
7941
|
"operationId": "sessionsMessages",
|
|
7940
|
-
"summary": "Read a chat session conversation
|
|
7942
|
+
"summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one. messageCount counts the whole conversation. Subagents and tool inputs come summarized unless agentOutput is compact or full; sessions message reads one message whole.",
|
|
7941
7943
|
"tags": ["sessions"],
|
|
7942
7944
|
"x-kosuke-command": ["sessions", "messages"],
|
|
7943
7945
|
"x-kosuke-sandbox-token": true,
|
|
@@ -7969,23 +7971,130 @@
|
|
|
7969
7971
|
"name": "limit",
|
|
7970
7972
|
"in": "query",
|
|
7971
7973
|
"required": false,
|
|
7972
|
-
"description": "Only the newest messages, up to this many.",
|
|
7974
|
+
"description": "Only the newest messages, up to this many. With from, the oldest this many from that message on.",
|
|
7973
7975
|
"schema": {
|
|
7974
|
-
"description": "Only the newest messages, up to this many.",
|
|
7976
|
+
"description": "Only the newest messages, up to this many. With from, the oldest this many from that message on.",
|
|
7975
7977
|
"type": "integer",
|
|
7976
7978
|
"minimum": 1,
|
|
7977
7979
|
"maximum": 500
|
|
7978
7980
|
}
|
|
7979
7981
|
},
|
|
7982
|
+
{
|
|
7983
|
+
"name": "before",
|
|
7984
|
+
"in": "query",
|
|
7985
|
+
"required": false,
|
|
7986
|
+
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
7987
|
+
"schema": {
|
|
7988
|
+
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
7989
|
+
"type": "string"
|
|
7990
|
+
}
|
|
7991
|
+
},
|
|
7992
|
+
{
|
|
7993
|
+
"name": "from",
|
|
7994
|
+
"in": "query",
|
|
7995
|
+
"required": false,
|
|
7996
|
+
"description": "An olderCursor from an earlier read: the oldest message of that read and every message after it.",
|
|
7997
|
+
"schema": {
|
|
7998
|
+
"description": "An olderCursor from an earlier read: the oldest message of that read and every message after it.",
|
|
7999
|
+
"type": "string"
|
|
8000
|
+
}
|
|
8001
|
+
},
|
|
8002
|
+
{
|
|
8003
|
+
"name": "agentOutput",
|
|
8004
|
+
"in": "query",
|
|
8005
|
+
"required": false,
|
|
8006
|
+
"description": "summary (the default) keeps each subagent's name, status, outputCount and its last output entry, and each tool call's short input fields; compact keeps every subagent tool call's name, status, short input fields and error, and clips long subagent text; full returns every input and result as recorded.",
|
|
8007
|
+
"schema": {
|
|
8008
|
+
"description": "summary (the default) keeps each subagent's name, status, outputCount and its last output entry, and each tool call's short input fields; compact keeps every subagent tool call's name, status, short input fields and error, and clips long subagent text; full returns every input and result as recorded.",
|
|
8009
|
+
"type": "string",
|
|
8010
|
+
"enum": ["summary", "compact", "full"]
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
],
|
|
8014
|
+
"responses": {
|
|
8015
|
+
"2XX": {
|
|
8016
|
+
"description": "Success envelope",
|
|
8017
|
+
"content": {
|
|
8018
|
+
"application/json": {
|
|
8019
|
+
"schema": {
|
|
8020
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
}
|
|
8024
|
+
},
|
|
8025
|
+
"4XX": {
|
|
8026
|
+
"description": "Error envelope",
|
|
8027
|
+
"content": {
|
|
8028
|
+
"application/json": {
|
|
8029
|
+
"schema": {
|
|
8030
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8031
|
+
}
|
|
8032
|
+
}
|
|
8033
|
+
}
|
|
8034
|
+
},
|
|
8035
|
+
"5XX": {
|
|
8036
|
+
"description": "Error envelope",
|
|
8037
|
+
"content": {
|
|
8038
|
+
"application/json": {
|
|
8039
|
+
"schema": {
|
|
8040
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8041
|
+
}
|
|
8042
|
+
}
|
|
8043
|
+
}
|
|
8044
|
+
}
|
|
8045
|
+
}
|
|
8046
|
+
}
|
|
8047
|
+
},
|
|
8048
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/messages/{messageId}": {
|
|
8049
|
+
"get": {
|
|
8050
|
+
"operationId": "sessionsMessage",
|
|
8051
|
+
"summary": "Read one message of a chat session with every block as recorded: whole tool inputs, errors and subagent output, unless agentOutput is compact or summary.",
|
|
8052
|
+
"tags": ["sessions"],
|
|
8053
|
+
"x-kosuke-command": ["sessions", "message"],
|
|
8054
|
+
"x-kosuke-sandbox-token": true,
|
|
8055
|
+
"x-kosuke-orchestrator-token": true,
|
|
8056
|
+
"x-kosuke-cron-token": true,
|
|
8057
|
+
"x-kosuke-lead-token": true,
|
|
8058
|
+
"parameters": [
|
|
8059
|
+
{
|
|
8060
|
+
"name": "projectId",
|
|
8061
|
+
"in": "path",
|
|
8062
|
+
"required": true,
|
|
8063
|
+
"schema": {
|
|
8064
|
+
"type": "string",
|
|
8065
|
+
"format": "uuid",
|
|
8066
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
8067
|
+
}
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
"name": "sessionId",
|
|
8071
|
+
"in": "path",
|
|
8072
|
+
"required": true,
|
|
8073
|
+
"schema": {
|
|
8074
|
+
"type": "string",
|
|
8075
|
+
"format": "uuid",
|
|
8076
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
8077
|
+
}
|
|
8078
|
+
},
|
|
8079
|
+
{
|
|
8080
|
+
"name": "messageId",
|
|
8081
|
+
"in": "path",
|
|
8082
|
+
"required": true,
|
|
8083
|
+
"schema": {
|
|
8084
|
+
"type": "string",
|
|
8085
|
+
"format": "uuid",
|
|
8086
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
8087
|
+
}
|
|
8088
|
+
},
|
|
7980
8089
|
{
|
|
7981
8090
|
"name": "agentOutput",
|
|
7982
8091
|
"in": "query",
|
|
7983
8092
|
"required": false,
|
|
7984
|
-
"description": "
|
|
8093
|
+
"description": "full (the default) returns every block as recorded; compact keeps the message's blocks whole and clips its subagents' output as sessions messages does; summary cuts it as the sessions messages default does.",
|
|
7985
8094
|
"schema": {
|
|
7986
|
-
"description": "
|
|
8095
|
+
"description": "full (the default) returns every block as recorded; compact keeps the message's blocks whole and clips its subagents' output as sessions messages does; summary cuts it as the sessions messages default does.",
|
|
7987
8096
|
"type": "string",
|
|
7988
|
-
"enum": ["compact", "full"]
|
|
8097
|
+
"enum": ["summary", "compact", "full"]
|
|
7989
8098
|
}
|
|
7990
8099
|
}
|
|
7991
8100
|
],
|