@kosuke-ai/kosuke 1.0.68 → 1.0.70
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 +13 -0
- package/dist/commands/integrations.js +43 -2
- package/dist/generated/commands/crons/create--personal.js +1 -1
- package/dist/generated/commands/crons/create.js +1 -1
- package/dist/generated/commands/crons/update--personal.js +1 -1
- package/dist/generated/commands/crons/update.js +1 -1
- package/dist/generated/commands/devices/locks-create.js +8 -1
- package/dist/generated/commands/mac/shell.js +14 -0
- package/dist/generated/commands/mac/status-get.js +1 -1
- package/dist/generated/commands/projects/create.js +1 -1
- package/dist/generated/commands/sensei/cards-set.js +2 -2
- package/dist/generated/commands/sensei/describe-cards-create.js +1 -1
- package/dist/generated/commands/workspaces/sandbox-limit-get.js +1 -16
- package/openapi.json +68 -32
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.70
|
|
4
|
+
|
|
5
|
+
- `kosuke mac status get` says when your Mac is offline because it is signed in as a workspace device, with the device and workspace names.
|
|
6
|
+
- `projects create --description` and `sensei describe-cards create` now say they are refused with 403 KOSUKE_STARTER_OFF while staff have Start from kosuke-starter off on the deployment.
|
|
7
|
+
- Cron help says what a one-hour clock change does, including when a second time in the skipped hour is dropped and when a late time in the repeated hour runs again. A shorter clock change can leave a longer gap.
|
|
8
|
+
- `kosuke integrations call` now refuses JSON piped without a lone `-` instead of silently sending no arguments.
|
|
9
|
+
|
|
10
|
+
## 1.0.69
|
|
11
|
+
|
|
12
|
+
- Add `kosuke mac shell --no-screen` and `--build-slot`, for commands that drive no UI, and `kosuke devices locks create --build-slot` to wait for a build slot.
|
|
13
|
+
- `kosuke workspaces sandbox-limit get` no longer takes `--project-id` or `--session-id`: a warming pool sandbox holds no slot in any space.
|
|
14
|
+
- `kosuke sensei cards set` takes `media` on a quoted message or an evidence row, which draws the message's pictures on the card.
|
|
15
|
+
|
|
3
16
|
## 1.0.68
|
|
4
17
|
|
|
5
18
|
- `kosuke integrations list` prints the platform's line naming integrations you can still connect, even when none is connected yet.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fstatSync } from 'node:fs';
|
|
1
2
|
import { readFile } from 'node:fs/promises';
|
|
2
3
|
import { InvalidArgumentError } from 'commander';
|
|
3
4
|
import { leafAt } from '../runtime/attach.js';
|
|
@@ -25,12 +26,47 @@ const UPLOAD_TIMEOUT_MS = 60 * 60_000;
|
|
|
25
26
|
const EXIT_FAILED = 1;
|
|
26
27
|
const EXIT_USAGE = 2;
|
|
27
28
|
const MAX_SEARCH_CHARS = 100;
|
|
29
|
+
/** How long a call with no arguments named waits to see whether anything was piped to it. */
|
|
30
|
+
const STDIN_PROBE_MS = 200;
|
|
28
31
|
async function readAllStdin() {
|
|
29
32
|
const chunks = [];
|
|
30
33
|
for await (const chunk of process.stdin)
|
|
31
34
|
chunks.push(Buffer.from(chunk));
|
|
32
35
|
return Buffer.concat(chunks).toString('utf8');
|
|
33
36
|
}
|
|
37
|
+
async function realStdinHasInput() {
|
|
38
|
+
let stdin;
|
|
39
|
+
try {
|
|
40
|
+
// A TTY, /dev/null and a closed stdin cannot hold piped input, so they are never read.
|
|
41
|
+
const stat = fstatSync(0);
|
|
42
|
+
if (!stat.isFIFO() && !(stat.isFile() && stat.size > 0))
|
|
43
|
+
return false;
|
|
44
|
+
stdin = process.stdin;
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return new Promise((resolve) => {
|
|
50
|
+
const settle = (piped) => {
|
|
51
|
+
clearTimeout(timer);
|
|
52
|
+
stdin.off('data', onData);
|
|
53
|
+
stdin.off('end', onEmpty);
|
|
54
|
+
stdin.pause();
|
|
55
|
+
// An agent's harness can hold a silent pipe open: it must not keep this process alive.
|
|
56
|
+
stdin.unref?.();
|
|
57
|
+
resolve(piped);
|
|
58
|
+
};
|
|
59
|
+
const onData = (chunk) => {
|
|
60
|
+
if (String(chunk).trim() !== '')
|
|
61
|
+
settle(true);
|
|
62
|
+
};
|
|
63
|
+
const onEmpty = () => settle(false);
|
|
64
|
+
const timer = setTimeout(onEmpty, STDIN_PROBE_MS);
|
|
65
|
+
stdin.on('data', onData);
|
|
66
|
+
stdin.once('end', onEmpty);
|
|
67
|
+
stdin.once('error', onEmpty);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
34
70
|
function searchText(raw) {
|
|
35
71
|
if (raw.trim() === '' || raw.length > MAX_SEARCH_CHARS) {
|
|
36
72
|
throw new InvalidArgumentError(`Expected 1 to ${MAX_SEARCH_CHARS} characters.`);
|
|
@@ -117,7 +153,7 @@ function uploadOf(answer) {
|
|
|
117
153
|
export function attachIntegrationsCommands(root, runtime, deps = {}) {
|
|
118
154
|
const { stdout = (text) => process.stdout.write(text), stderr = (text) => process.stderr.write(text), exit = (code) => {
|
|
119
155
|
process.exitCode = code;
|
|
120
|
-
}, readStdin = readAllStdin, readFile: readText = (path) => readFile(path, 'utf8'), readTimeoutMs = READ_TIMEOUT_MS, callTimeoutMs = CALL_TIMEOUT_MS, uploadFetch = (input, init) => globalThis.fetch(input, init), env = process.env, } = deps;
|
|
156
|
+
}, readStdin = readAllStdin, stdinHasInput = realStdinHasInput, readFile: readText = (path) => readFile(path, 'utf8'), readTimeoutMs = READ_TIMEOUT_MS, callTimeoutMs = CALL_TIMEOUT_MS, uploadFetch = (input, init) => globalThis.fetch(input, init), env = process.env, } = deps;
|
|
121
157
|
const fail = (failure, code = EXIT_FAILED) => {
|
|
122
158
|
stderr(`${typeof failure === 'string' ? failure : failure.message}\n`);
|
|
123
159
|
exit(code);
|
|
@@ -345,8 +381,13 @@ export function attachIntegrationsCommands(root, runtime, deps = {}) {
|
|
|
345
381
|
const sources = [flags.args !== undefined, flags.argsFile !== undefined, dash === '-'];
|
|
346
382
|
if (sources.filter(Boolean).length > 1)
|
|
347
383
|
throw new UsageError('Give the arguments one way only.');
|
|
348
|
-
if (!sources.includes(true))
|
|
384
|
+
if (!sources.includes(true)) {
|
|
385
|
+
// Not read as the arguments: a write must never run on input the caller did not name.
|
|
386
|
+
if (await stdinHasInput()) {
|
|
387
|
+
throw new UsageError('Arguments on stdin are read only with a lone -, so nothing was sent. End the command with - or pass them with --args.');
|
|
388
|
+
}
|
|
349
389
|
return {};
|
|
390
|
+
}
|
|
350
391
|
let text;
|
|
351
392
|
if (flags.args !== undefined)
|
|
352
393
|
text = flags.args;
|
|
@@ -39,7 +39,7 @@ export const operation = {
|
|
|
39
39
|
"flag": "cron-expression",
|
|
40
40
|
"kind": "string",
|
|
41
41
|
"required": true,
|
|
42
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes."
|
|
42
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "timezone",
|
|
@@ -38,7 +38,7 @@ export const operation = {
|
|
|
38
38
|
"flag": "cron-expression",
|
|
39
39
|
"kind": "string",
|
|
40
40
|
"required": true,
|
|
41
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes."
|
|
41
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "reportTo",
|
|
@@ -41,7 +41,7 @@ export const operation = {
|
|
|
41
41
|
"flag": "cron-expression",
|
|
42
42
|
"kind": "string",
|
|
43
43
|
"required": false,
|
|
44
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes."
|
|
44
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "timezone",
|
|
@@ -39,7 +39,7 @@ export const operation = {
|
|
|
39
39
|
"flag": "cron-expression",
|
|
40
40
|
"kind": "string",
|
|
41
41
|
"required": false,
|
|
42
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes."
|
|
42
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "reportTo",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"locks",
|
|
7
7
|
"create"
|
|
8
8
|
],
|
|
9
|
-
"summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete.",
|
|
9
|
+
"summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete. While a QA run is open, the wait comes off its budget, up to 60 minutes per run, and lasts at most what is left of those 60 minutes: qaLine says the minutes waited and whether ceilingReached.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"deviceId"
|
|
12
12
|
],
|
|
@@ -19,6 +19,13 @@ export const operation = {
|
|
|
19
19
|
"kind": "integer",
|
|
20
20
|
"required": false,
|
|
21
21
|
"description": "How long to wait, in seconds: 300 by default, at most 600."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "buildSlot",
|
|
25
|
+
"flag": "build-slot",
|
|
26
|
+
"kind": "string",
|
|
27
|
+
"required": false,
|
|
28
|
+
"description": "Wait for this named build slot, one of 2 per device, instead of the screen. Answers granted true once it is yours: start the build with `kosuke mac shell --no-screen --build-slot <name>`."
|
|
22
29
|
}
|
|
23
30
|
],
|
|
24
31
|
"required": true
|
|
@@ -37,6 +37,20 @@ export const operation = {
|
|
|
37
37
|
"kind": "integer",
|
|
38
38
|
"required": false,
|
|
39
39
|
"description": "60000 by default, at most 600000."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "screen",
|
|
43
|
+
"flag": "screen",
|
|
44
|
+
"kind": "boolean",
|
|
45
|
+
"required": false,
|
|
46
|
+
"description": "Send false (--no-screen) from a Chat Session for a command that drives no UI: it takes no screen lock and never joins the line. Never use it for a command that opens, focuses or films anything. Without it the call takes the screen."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "buildSlot",
|
|
50
|
+
"flag": "build-slot",
|
|
51
|
+
"kind": "string",
|
|
52
|
+
"required": false,
|
|
53
|
+
"description": "With --no-screen, for a long build: holds the named build slot, one of 2 per device, for this call and a while after it. The next call naming it renews the slot. BUILD_SLOT_BUSY when both are taken: wait with `kosuke devices locks create <deviceId> --build-slot <name>`."
|
|
40
54
|
}
|
|
41
55
|
],
|
|
42
56
|
"required": true
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"status",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Whether your Mac is online now, with the Sensei desktop app open and signed in, the tools it offers, and its macOS grants: a missing macOS permission or no Google Chrome leaves its tools out, and grants.systemEvents says whether `osascript` through System Events can open menu bar icons and their menus there. Offline answers online false and
|
|
9
|
+
"summary": "Whether your Mac is online now, with the Sensei desktop app open and signed in, the tools it offers, and its macOS grants: a missing macOS permission or no Google Chrome leaves its tools out, and grants.systemEvents says whether `osascript` through System Events can open menu bar icons and their menus there. Offline answers online false, with reason `workspace_device` and workspaceDevice (its name and workspaceName) when the member's Mac is signed in as a workspace device, which replaced their sign-in there; with no reason, why it is offline is not known.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": null,
|
|
@@ -5,7 +5,7 @@ export const operation = {
|
|
|
5
5
|
"projects",
|
|
6
6
|
"create"
|
|
7
7
|
],
|
|
8
|
-
"summary": "Connect a GitHub repository as a project in a workspace (its Merge agent starts Off), or describe what to build to start a repository from kosuke-starter on a new Kosuke-Org repository (its Merge agent starts on the merge train with the go-ahead from passing checks, unless mergeAgentMode and mergeGoAhead say otherwise). With a repository, an optional prompt files its first task. Pass personal instead of orgId to create it in your Personal: your own credential, or your Sensei. Its first Deploy starts by itself, as the caller's; the first task starts on /kosuke:ship once it lands. Imports only a repository your own GitHub Connection can write to: 403 GITHUB_REPOSITORY_ACCESS_REQUIRED otherwise, 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection. Pass personal only when the member asked for it. Report a chatError.",
|
|
8
|
+
"summary": "Connect a GitHub repository as a project in a workspace (its Merge agent starts Off), or describe what to build to start a repository from kosuke-starter on a new Kosuke-Org repository (its Merge agent starts on the merge train with the go-ahead from passing checks, unless mergeAgentMode and mergeGoAhead say otherwise; 403 KOSUKE_STARTER_OFF when staff have it off on this deployment). With a repository, an optional prompt files its first task. Pass personal instead of orgId to create it in your Personal: your own credential, or your Sensei. Its first Deploy starts by itself, as the caller's; the first task starts on /kosuke:ship once it lands. Imports only a repository your own GitHub Connection can write to: 403 GITHUB_REPOSITORY_ACCESS_REQUIRED otherwise, 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection. Pass personal only when the member asked for it. Report a chatError.",
|
|
9
9
|
"pathParams": [],
|
|
10
10
|
"query": [],
|
|
11
11
|
"body": {
|
|
@@ -30,7 +30,7 @@ export const operation = {
|
|
|
30
30
|
"required": true,
|
|
31
31
|
"shape": [
|
|
32
32
|
"T[] (max 12), each T one of:",
|
|
33
|
-
"{type: \"text\", role?: \"message\"|\"draft\", text: string}",
|
|
33
|
+
"{type: \"text\", role?: \"message\"|\"draft\", text: string, media?: {eventId: string, parts: integer[] (max 10)}}",
|
|
34
34
|
"{type: \"facts\", rows: {label: string, value: string}[] (max 20)}",
|
|
35
35
|
"{type: \"qa_report\", status?: \"passed\"|\"failed\"|\"blocked\"|\"skipped\"|\"running\", reason?: string, passed: integer, total: integer, sections: {title: string, passed: integer, total: integer, note?: string}[] (max 30), failed: {section: string, item: string, reason: string}[] (max 30), links: {label: string, href: string}[] (max 8)}",
|
|
36
36
|
"{type: \"diff\", summary: string, text?: {current: string, proposed: string}, files: {path: string, added: integer, removed: integer}[] (max 50)}",
|
|
@@ -41,7 +41,7 @@ export const operation = {
|
|
|
41
41
|
"{type: \"merge_plan\", rows: {sessionId?: string, number: integer, title: string, headSha: string, action: \"merge\"|\"sync\"|\"wait\", why: string}[] (max 30)}",
|
|
42
42
|
"{type: \"deploy_variables\", deployJobId: string, pauseId: string}",
|
|
43
43
|
"{type: \"links\", items: {label: string, href: string}[] (max 8)}",
|
|
44
|
-
"{type: \"evidence\", artifacts?: ({sessionId: string, slug: string, caption?: string} | {cronId: string, runId: string, slug: string, caption?: string} | {fileId: string, version: integer, caption?: string})[] (max 2), rows: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", eventId?: string, label: string, result: string, open?: boolean, details?: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", name: string, note?: string, href?: string}[] (max 30)}[] (max 12)}",
|
|
44
|
+
"{type: \"evidence\", artifacts?: ({sessionId: string, slug: string, caption?: string} | {cronId: string, runId: string, slug: string, caption?: string} | {fileId: string, version: integer, caption?: string})[] (max 2), rows: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", eventId?: string, label: string, result: string, media?: {eventId: string, parts: integer[] (max 10)}, open?: boolean, details?: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", name: string, note?: string, href?: string}[] (max 30)}[] (max 12)}",
|
|
45
45
|
"{type: \"changes\", title: string, items: {change: \"removed\"|\"added\"|\"kept\", text: string}[] (max 20)}",
|
|
46
46
|
"{type: \"messages\", caption?: string, rows: {network: \"gmail\"|\"slack\"|\"telegram\"|\"whatsapp\"|\"linkedin\"|\"x\", sender: string, subject: string, count: integer, at: string, link?: string, connection?: string, conversation?: string}[] (max 12), older?: {conversations: integer, messages: integer}}",
|
|
47
47
|
"{type: \"person\", heading?: string, name: string, line?: string}",
|
|
@@ -6,7 +6,7 @@ export const operation = {
|
|
|
6
6
|
"describe-cards",
|
|
7
7
|
"create"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Put the Describe card in a message of your Turn's own thread, under your words: the member writes what the app does and creates it as a repository from kosuke-starter in the workspace it names. Once created, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped.",
|
|
9
|
+
"summary": "Put the Describe card in a message of your Turn's own thread, under your words: the member writes what the app does and creates it as a repository from kosuke-starter in the workspace it names. Once created, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped, and with 403 KOSUKE_STARTER_OFF when staff have Start from kosuke-starter off on this deployment: offer to import a repository instead.",
|
|
10
10
|
"pathParams": [],
|
|
11
11
|
"query": [],
|
|
12
12
|
"body": {
|
|
@@ -10,22 +10,7 @@ export const operation = {
|
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"workspaceId"
|
|
12
12
|
],
|
|
13
|
-
"query": [
|
|
14
|
-
{
|
|
15
|
-
"name": "projectId",
|
|
16
|
-
"flag": "project-id",
|
|
17
|
-
"kind": "string",
|
|
18
|
-
"required": false,
|
|
19
|
-
"description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them."
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "sessionId",
|
|
23
|
-
"flag": "session-id",
|
|
24
|
-
"kind": "string",
|
|
25
|
-
"required": false,
|
|
26
|
-
"description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size."
|
|
27
|
-
}
|
|
28
|
-
],
|
|
13
|
+
"query": [],
|
|
29
14
|
"body": null,
|
|
30
15
|
"multipart": null,
|
|
31
16
|
"attachments": false,
|
package/openapi.json
CHANGED
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
"/api/devices/{deviceId}/lock": {
|
|
958
958
|
"post": {
|
|
959
959
|
"operationId": "devicesLocksCreate",
|
|
960
|
-
"summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete.",
|
|
960
|
+
"summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete. While a QA run is open, the wait comes off its budget, up to 60 minutes per run, and lasts at most what is left of those 60 minutes: qaLine says the minutes waited and whether ceilingReached.",
|
|
961
961
|
"tags": ["devices"],
|
|
962
962
|
"x-kosuke-command": ["devices", "locks", "create"],
|
|
963
963
|
"x-kosuke-answer-timeout-ms": 630000,
|
|
@@ -985,6 +985,11 @@
|
|
|
985
985
|
"type": "integer",
|
|
986
986
|
"minimum": 1,
|
|
987
987
|
"maximum": 600
|
|
988
|
+
},
|
|
989
|
+
"buildSlot": {
|
|
990
|
+
"description": "Wait for this named build slot, one of 2 per device, instead of the screen. Answers granted true once it is yours: start the build with `kosuke mac shell --no-screen --build-slot <name>`.",
|
|
991
|
+
"type": "string",
|
|
992
|
+
"pattern": "^[a-z0-9-]{1,32}$"
|
|
988
993
|
}
|
|
989
994
|
}
|
|
990
995
|
}
|
|
@@ -1190,7 +1195,7 @@
|
|
|
1190
1195
|
"/api/devices/mac": {
|
|
1191
1196
|
"get": {
|
|
1192
1197
|
"operationId": "macStatusGet",
|
|
1193
|
-
"summary": "Whether your Mac is online now, with the Sensei desktop app open and signed in, the tools it offers, and its macOS grants: a missing macOS permission or no Google Chrome leaves its tools out, and grants.systemEvents says whether `osascript` through System Events can open menu bar icons and their menus there. Offline answers online false and
|
|
1198
|
+
"summary": "Whether your Mac is online now, with the Sensei desktop app open and signed in, the tools it offers, and its macOS grants: a missing macOS permission or no Google Chrome leaves its tools out, and grants.systemEvents says whether `osascript` through System Events can open menu bar icons and their menus there. Offline answers online false, with reason `workspace_device` and workspaceDevice (its name and workspaceName) when the member's Mac is signed in as a workspace device, which replaced their sign-in there; with no reason, why it is offline is not known.",
|
|
1194
1199
|
"tags": ["mac"],
|
|
1195
1200
|
"x-kosuke-command": ["mac", "status", "get"],
|
|
1196
1201
|
"x-kosuke-sandbox-token": true,
|
|
@@ -2585,6 +2590,15 @@
|
|
|
2585
2590
|
"type": "integer",
|
|
2586
2591
|
"minimum": 1000,
|
|
2587
2592
|
"maximum": 600000
|
|
2593
|
+
},
|
|
2594
|
+
"screen": {
|
|
2595
|
+
"description": "Send false (--no-screen) from a Chat Session for a command that drives no UI: it takes no screen lock and never joins the line. Never use it for a command that opens, focuses or films anything. Without it the call takes the screen.",
|
|
2596
|
+
"type": "boolean"
|
|
2597
|
+
},
|
|
2598
|
+
"buildSlot": {
|
|
2599
|
+
"description": "With --no-screen, for a long build: holds the named build slot, one of 2 per device, for this call and a while after it. The next call naming it renews the slot. BUILD_SLOT_BUSY when both are taken: wait with `kosuke devices locks create <deviceId> --build-slot <name>`.",
|
|
2600
|
+
"type": "string",
|
|
2601
|
+
"pattern": "^[a-z0-9-]{1,32}$"
|
|
2588
2602
|
}
|
|
2589
2603
|
},
|
|
2590
2604
|
"required": ["command"]
|
|
@@ -5137,7 +5151,7 @@
|
|
|
5137
5151
|
"type": "string",
|
|
5138
5152
|
"minLength": 1,
|
|
5139
5153
|
"maxLength": 100,
|
|
5140
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes."
|
|
5154
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
5141
5155
|
},
|
|
5142
5156
|
"reportTo": {
|
|
5143
5157
|
"description": "Reports to: the members, by the id `kosuke workspaces members list` prints, whose Sensei each message from a run of this cron goes to, at most 10. With one, every message goes to them; with several, the run chooses among them. Empty, or left out on create, lets the run choose any member. Left out on update, it stays as saved; an empty list clears it.",
|
|
@@ -5324,7 +5338,7 @@
|
|
|
5324
5338
|
"type": "string",
|
|
5325
5339
|
"minLength": 1,
|
|
5326
5340
|
"maxLength": 100,
|
|
5327
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes."
|
|
5341
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the Workspace Timezone (kosuke workspaces timezone set). At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
5328
5342
|
},
|
|
5329
5343
|
"reportTo": {
|
|
5330
5344
|
"description": "Reports to: the members, by the id `kosuke workspaces members list` prints, whose Sensei each message from a run of this cron goes to, at most 10. With one, every message goes to them; with several, the run chooses among them. Empty, or left out on create, lets the run choose any member. Left out on update, it stays as saved; an empty list clears it.",
|
|
@@ -7810,30 +7824,6 @@
|
|
|
7810
7824
|
"type": "string",
|
|
7811
7825
|
"minLength": 1
|
|
7812
7826
|
}
|
|
7813
|
-
},
|
|
7814
|
-
{
|
|
7815
|
-
"name": "projectId",
|
|
7816
|
-
"in": "query",
|
|
7817
|
-
"required": false,
|
|
7818
|
-
"description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them.",
|
|
7819
|
-
"schema": {
|
|
7820
|
-
"description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them.",
|
|
7821
|
-
"type": "string",
|
|
7822
|
-
"minLength": 1,
|
|
7823
|
-
"maxLength": 128
|
|
7824
|
-
}
|
|
7825
|
-
},
|
|
7826
|
-
{
|
|
7827
|
-
"name": "sessionId",
|
|
7828
|
-
"in": "query",
|
|
7829
|
-
"required": false,
|
|
7830
|
-
"description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size.",
|
|
7831
|
-
"schema": {
|
|
7832
|
-
"description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size.",
|
|
7833
|
-
"type": "string",
|
|
7834
|
-
"minLength": 1,
|
|
7835
|
-
"maxLength": 128
|
|
7836
|
-
}
|
|
7837
7827
|
}
|
|
7838
7828
|
],
|
|
7839
7829
|
"responses": {
|
|
@@ -10249,7 +10239,7 @@
|
|
|
10249
10239
|
},
|
|
10250
10240
|
"post": {
|
|
10251
10241
|
"operationId": "projectsCreate",
|
|
10252
|
-
"summary": "Connect a GitHub repository as a project in a workspace (its Merge agent starts Off), or describe what to build to start a repository from kosuke-starter on a new Kosuke-Org repository (its Merge agent starts on the merge train with the go-ahead from passing checks, unless mergeAgentMode and mergeGoAhead say otherwise). With a repository, an optional prompt files its first task. Pass personal instead of orgId to create it in your Personal: your own credential, or your Sensei. Its first Deploy starts by itself, as the caller's; the first task starts on /kosuke:ship once it lands. Imports only a repository your own GitHub Connection can write to: 403 GITHUB_REPOSITORY_ACCESS_REQUIRED otherwise, 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection. Pass personal only when the member asked for it. Report a chatError.",
|
|
10242
|
+
"summary": "Connect a GitHub repository as a project in a workspace (its Merge agent starts Off), or describe what to build to start a repository from kosuke-starter on a new Kosuke-Org repository (its Merge agent starts on the merge train with the go-ahead from passing checks, unless mergeAgentMode and mergeGoAhead say otherwise; 403 KOSUKE_STARTER_OFF when staff have it off on this deployment). With a repository, an optional prompt files its first task. Pass personal instead of orgId to create it in your Personal: your own credential, or your Sensei. Its first Deploy starts by itself, as the caller's; the first task starts on /kosuke:ship once it lands. Imports only a repository your own GitHub Connection can write to: 403 GITHUB_REPOSITORY_ACCESS_REQUIRED otherwise, 401 GITHUB_RECONNECT_REQUIRED when GitHub no longer accepts your connection. Pass personal only when the member asked for it. Report a chatError.",
|
|
10253
10243
|
"tags": ["projects"],
|
|
10254
10244
|
"x-kosuke-command": ["projects", "create"],
|
|
10255
10245
|
"x-kosuke-sandbox-token": true,
|
|
@@ -20867,6 +20857,29 @@
|
|
|
20867
20857
|
"type": "string",
|
|
20868
20858
|
"minLength": 1,
|
|
20869
20859
|
"maxLength": 4000
|
|
20860
|
+
},
|
|
20861
|
+
"media": {
|
|
20862
|
+
"type": "object",
|
|
20863
|
+
"properties": {
|
|
20864
|
+
"eventId": {
|
|
20865
|
+
"type": "string",
|
|
20866
|
+
"format": "uuid",
|
|
20867
|
+
"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)$"
|
|
20868
|
+
},
|
|
20869
|
+
"parts": {
|
|
20870
|
+
"minItems": 1,
|
|
20871
|
+
"maxItems": 10,
|
|
20872
|
+
"type": "array",
|
|
20873
|
+
"items": {
|
|
20874
|
+
"type": "integer",
|
|
20875
|
+
"minimum": 0,
|
|
20876
|
+
"maximum": 9
|
|
20877
|
+
}
|
|
20878
|
+
}
|
|
20879
|
+
},
|
|
20880
|
+
"required": ["eventId", "parts"],
|
|
20881
|
+
"additionalProperties": false,
|
|
20882
|
+
"description": "The parts of an incoming message to draw: the event's id, and each part's place in its `parts`, from 0. Only a part with a `preview`."
|
|
20870
20883
|
}
|
|
20871
20884
|
},
|
|
20872
20885
|
"required": ["type", "text"]
|
|
@@ -21493,6 +21506,29 @@
|
|
|
21493
21506
|
"minLength": 1,
|
|
21494
21507
|
"maxLength": 200
|
|
21495
21508
|
},
|
|
21509
|
+
"media": {
|
|
21510
|
+
"type": "object",
|
|
21511
|
+
"properties": {
|
|
21512
|
+
"eventId": {
|
|
21513
|
+
"type": "string",
|
|
21514
|
+
"format": "uuid",
|
|
21515
|
+
"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)$"
|
|
21516
|
+
},
|
|
21517
|
+
"parts": {
|
|
21518
|
+
"minItems": 1,
|
|
21519
|
+
"maxItems": 10,
|
|
21520
|
+
"type": "array",
|
|
21521
|
+
"items": {
|
|
21522
|
+
"type": "integer",
|
|
21523
|
+
"minimum": 0,
|
|
21524
|
+
"maximum": 9
|
|
21525
|
+
}
|
|
21526
|
+
}
|
|
21527
|
+
},
|
|
21528
|
+
"required": ["eventId", "parts"],
|
|
21529
|
+
"additionalProperties": false,
|
|
21530
|
+
"description": "The parts of an incoming message to draw: the event's id, and each part's place in its `parts`, from 0. Only a part with a `preview`."
|
|
21531
|
+
},
|
|
21496
21532
|
"open": {
|
|
21497
21533
|
"type": "boolean"
|
|
21498
21534
|
},
|
|
@@ -23195,7 +23231,7 @@
|
|
|
23195
23231
|
"/api/sensei/describe": {
|
|
23196
23232
|
"post": {
|
|
23197
23233
|
"operationId": "senseiDescribeCardsCreate",
|
|
23198
|
-
"summary": "Put the Describe card in a message of your Turn's own thread, under your words: the member writes what the app does and creates it as a repository from kosuke-starter in the workspace it names. Once created, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped.",
|
|
23234
|
+
"summary": "Put the Describe card in a message of your Turn's own thread, under your words: the member writes what the app does and creates it as a repository from kosuke-starter in the workspace it names. Once created, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped, and with 403 KOSUKE_STARTER_OFF when staff have Start from kosuke-starter off on this deployment: offer to import a repository instead.",
|
|
23199
23235
|
"tags": ["sensei"],
|
|
23200
23236
|
"x-kosuke-command": ["sensei", "describe-cards", "create"],
|
|
23201
23237
|
"x-kosuke-sandbox-token": true,
|
|
@@ -25770,7 +25806,7 @@
|
|
|
25770
25806
|
"type": "string",
|
|
25771
25807
|
"minLength": 1,
|
|
25772
25808
|
"maxLength": 100,
|
|
25773
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes."
|
|
25809
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
25774
25810
|
},
|
|
25775
25811
|
"timezone": {
|
|
25776
25812
|
"type": "string",
|
|
@@ -25948,7 +25984,7 @@
|
|
|
25948
25984
|
"type": "string",
|
|
25949
25985
|
"minLength": 1,
|
|
25950
25986
|
"maxLength": 100,
|
|
25951
|
-
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes."
|
|
25987
|
+
"description": "Five fields: minute, hour, day of month, month, day of week, read in the cron's time zone. At most one fire every 15 minutes. At a one-hour clock change, one fixed time in the skipped hour runs once, one hour later, and one fixed time in the repeated hour runs once, on the first pass. A later time in that skipped hour can be skipped when the next run is chosen after an earlier one. A time less than 15 minutes before the clock falls back can run again on the later pass. A wildcard hour keeps real spacing across that one-hour change. A shorter change can leave a longer gap."
|
|
25952
25988
|
},
|
|
25953
25989
|
"timezone": {
|
|
25954
25990
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
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,12 +43,13 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "c37d9fda044c8dc44ad328949b0fc7cbd53f9944",
|
|
47
|
+
"sourceIdentity": "3d646625289f68c9fa4ab1171c0e3a707873089b6e3ad7e8e1fd00a69cf59f48",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
49
|
+
"mac-status-workspace-device-bfwq12.json",
|
|
50
|
+
"kosuke-starter-switch-77o9yu.json",
|
|
51
|
+
"cron-dst-help-0z2hrf.json",
|
|
52
|
+
"integrations-call-piped-args-m3jxjl.json"
|
|
52
53
|
]
|
|
53
54
|
}
|
|
54
55
|
}
|