@kosuke-ai/kosuke 1.0.100 → 1.0.102
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 +9 -0
- package/dist/generated/commands/index.js +9 -5
- package/dist/generated/commands/projects/env-vars-create.js +14 -3
- package/dist/generated/commands/projects/env-vars-delete.js +14 -3
- package/dist/generated/commands/projects/services-create.js +14 -3
- package/dist/generated/commands/projects/services-delete.js +14 -3
- package/dist/generated/commands/projects/services-update.js +14 -3
- package/dist/generated/commands/projects/settings-get.js +8 -1
- package/dist/generated/commands/projects/settings-update.js +14 -3
- package/dist/generated/commands/workspaces/personal-runtime-get.js +19 -0
- package/dist/generated/commands/workspaces/sandbox-hours-get.js +19 -0
- package/openapi.json +205 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.102
|
|
4
|
+
|
|
5
|
+
- Sensei can change a project's setup commands, services and environment variables for a workspace admin once the admin approves a Sensei card about the project: `projects settings update`, `projects services create|update|delete` and `projects env-vars create|delete` take `--card <id>`, and `projects settings get --card <id>` answers canEdit for that change. Without an approved card from that Turn Sensei gets 403; API keys, connected apps, sessions and Crons are still refused.
|
|
6
|
+
|
|
7
|
+
## 1.0.101
|
|
8
|
+
|
|
9
|
+
- Report Personal Free actual sandbox hours and shared capacity, and direct new workspace and capacity purchases to a demo. Existing billing maintenance remains available.
|
|
10
|
+
- Add `kosuke workspaces sandbox-hours get` to read an organization's sandbox hours, funding status and stop state. Staff hour grants remain browser-only.
|
|
11
|
+
|
|
3
12
|
## 1.0.100
|
|
4
13
|
|
|
5
14
|
- When an integration tool call is rate limited, `kosuke integrations tools call` now says how many seconds to wait before trying again.
|
|
@@ -340,11 +340,13 @@ import { operation as o338 } from './workspaces/get.js';
|
|
|
340
340
|
import { operation as o339 } from './workspaces/list.js';
|
|
341
341
|
import { operation as o340 } from './workspaces/members-list.js';
|
|
342
342
|
import { operation as o341 } from './workspaces/members-list--all.js';
|
|
343
|
-
import { operation as o342 } from './workspaces/
|
|
344
|
-
import { operation as o343 } from './workspaces/
|
|
345
|
-
import { operation as o344 } from './workspaces/
|
|
346
|
-
import { operation as o345 } from './workspaces/
|
|
347
|
-
import { operation as o346 } from './workspaces/
|
|
343
|
+
import { operation as o342 } from './workspaces/personal-runtime-get.js';
|
|
344
|
+
import { operation as o343 } from './workspaces/sandbox-hours-get.js';
|
|
345
|
+
import { operation as o344 } from './workspaces/sandbox-limit-get.js';
|
|
346
|
+
import { operation as o345 } from './workspaces/sandboxes-stop.js';
|
|
347
|
+
import { operation as o346 } from './workspaces/timezone-set.js';
|
|
348
|
+
import { operation as o347 } from './workspaces/usage-breakdown-get.js';
|
|
349
|
+
import { operation as o348 } from './workspaces/usage-get.js';
|
|
348
350
|
export const operations = [
|
|
349
351
|
o0,
|
|
350
352
|
o1,
|
|
@@ -693,4 +695,6 @@ export const operations = [
|
|
|
693
695
|
o344,
|
|
694
696
|
o345,
|
|
695
697
|
o346,
|
|
698
|
+
o347,
|
|
699
|
+
o348,
|
|
696
700
|
];
|
|
@@ -6,16 +6,27 @@ export const operation = {
|
|
|
6
6
|
"env-vars",
|
|
7
7
|
"create"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Add environment variables. The body is a JSON array of { key, value, isSecret? }. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Each one is recorded in Change history, its value masked. A loader or shell name (NODE_OPTIONS, LD_PRELOAD, PATH, GIT_*, and the like) reaches the app only, never Kosuke's agents.",
|
|
9
|
+
"summary": "Add environment variables. The body is a JSON array of { key, value, isSecret? }. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Sensei may write a secret, and never reads one back. Each one is recorded in Change history, its value masked. A loader or shell name (NODE_OPTIONS, LD_PRELOAD, PATH, GIT_*, and the like) reaches the app only, never Kosuke's agents.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
13
|
-
"query": [
|
|
13
|
+
"query": [
|
|
14
|
+
{
|
|
15
|
+
"name": "card",
|
|
16
|
+
"flag": "card",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
14
22
|
"body": {
|
|
15
23
|
"fields": null,
|
|
16
24
|
"required": true
|
|
17
25
|
},
|
|
18
26
|
"multipart": null,
|
|
19
27
|
"attachments": false,
|
|
20
|
-
"anonymous": false
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"agents": [
|
|
30
|
+
"senseiToken"
|
|
31
|
+
]
|
|
21
32
|
};
|
|
@@ -6,16 +6,27 @@ export const operation = {
|
|
|
6
6
|
"env-vars",
|
|
7
7
|
"delete"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Remove environment variables. The body is a JSON array of variable ids. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Each removal is recorded in Change history.",
|
|
9
|
+
"summary": "Remove environment variables. The body is a JSON array of variable ids. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Each removal is recorded in Change history.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
13
|
-
"query": [
|
|
13
|
+
"query": [
|
|
14
|
+
{
|
|
15
|
+
"name": "card",
|
|
16
|
+
"flag": "card",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
14
22
|
"body": {
|
|
15
23
|
"fields": null,
|
|
16
24
|
"required": true
|
|
17
25
|
},
|
|
18
26
|
"multipart": null,
|
|
19
27
|
"attachments": false,
|
|
20
|
-
"anonymous": false
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"agents": [
|
|
30
|
+
"senseiToken"
|
|
31
|
+
]
|
|
21
32
|
};
|
|
@@ -6,11 +6,19 @@ export const operation = {
|
|
|
6
6
|
"services",
|
|
7
7
|
"create"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Add a service. A port already used by another service is rejected by the handler. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
9
|
+
"summary": "Add a service. A port already used by another service is rejected by the handler. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
13
|
-
"query": [
|
|
13
|
+
"query": [
|
|
14
|
+
{
|
|
15
|
+
"name": "card",
|
|
16
|
+
"flag": "card",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
14
22
|
"body": {
|
|
15
23
|
"fields": [
|
|
16
24
|
{
|
|
@@ -86,5 +94,8 @@ export const operation = {
|
|
|
86
94
|
},
|
|
87
95
|
"multipart": null,
|
|
88
96
|
"attachments": false,
|
|
89
|
-
"anonymous": false
|
|
97
|
+
"anonymous": false,
|
|
98
|
+
"agents": [
|
|
99
|
+
"senseiToken"
|
|
100
|
+
]
|
|
90
101
|
};
|
|
@@ -6,14 +6,25 @@ export const operation = {
|
|
|
6
6
|
"services",
|
|
7
7
|
"delete"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Remove one service. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
9
|
+
"summary": "Remove one service. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"serviceId"
|
|
13
13
|
],
|
|
14
|
-
"query": [
|
|
14
|
+
"query": [
|
|
15
|
+
{
|
|
16
|
+
"name": "card",
|
|
17
|
+
"flag": "card",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
15
23
|
"body": null,
|
|
16
24
|
"multipart": null,
|
|
17
25
|
"attachments": false,
|
|
18
|
-
"anonymous": false
|
|
26
|
+
"anonymous": false,
|
|
27
|
+
"agents": [
|
|
28
|
+
"senseiToken"
|
|
29
|
+
]
|
|
19
30
|
};
|
|
@@ -6,12 +6,20 @@ export const operation = {
|
|
|
6
6
|
"services",
|
|
7
7
|
"update"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Change one service. Every field is optional; only the ones sent change. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
9
|
+
"summary": "Change one service. Every field is optional; only the ones sent change. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId",
|
|
12
12
|
"serviceId"
|
|
13
13
|
],
|
|
14
|
-
"query": [
|
|
14
|
+
"query": [
|
|
15
|
+
{
|
|
16
|
+
"name": "card",
|
|
17
|
+
"flag": "card",
|
|
18
|
+
"kind": "string",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
15
23
|
"body": {
|
|
16
24
|
"fields": [
|
|
17
25
|
{
|
|
@@ -80,5 +88,8 @@ export const operation = {
|
|
|
80
88
|
},
|
|
81
89
|
"multipart": null,
|
|
82
90
|
"attachments": false,
|
|
83
|
-
"anonymous": false
|
|
91
|
+
"anonymous": false,
|
|
92
|
+
"agents": [
|
|
93
|
+
"senseiToken"
|
|
94
|
+
]
|
|
84
95
|
};
|
|
@@ -6,11 +6,18 @@ export const operation = {
|
|
|
6
6
|
"settings",
|
|
7
7
|
"get"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. canEdit says whether the caller may change them.",
|
|
9
|
+
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. A secret's value reaches only a member's own browser session or API key, never Sensei or another agent. canEdit says whether the caller may change them; Sensei passes --card with the card its member approved.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
13
13
|
"query": [
|
|
14
|
+
{
|
|
15
|
+
"name": "card",
|
|
16
|
+
"flag": "card",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
20
|
+
},
|
|
14
21
|
{
|
|
15
22
|
"name": "values",
|
|
16
23
|
"flag": "values",
|
|
@@ -6,11 +6,19 @@ export const operation = {
|
|
|
6
6
|
"settings",
|
|
7
7
|
"update"
|
|
8
8
|
],
|
|
9
|
-
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every agent token. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history.",
|
|
9
|
+
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every other agent token. Sensei changes the setup commands (host setup, setup, warmup, rerun on checkout move) for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history, Sensei's as Sensei for its member.",
|
|
10
10
|
"pathParams": [
|
|
11
11
|
"projectId"
|
|
12
12
|
],
|
|
13
|
-
"query": [
|
|
13
|
+
"query": [
|
|
14
|
+
{
|
|
15
|
+
"name": "card",
|
|
16
|
+
"flag": "card",
|
|
17
|
+
"kind": "string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
14
22
|
"body": {
|
|
15
23
|
"fields": [
|
|
16
24
|
{
|
|
@@ -95,5 +103,8 @@ export const operation = {
|
|
|
95
103
|
},
|
|
96
104
|
"multipart": null,
|
|
97
105
|
"attachments": false,
|
|
98
|
-
"anonymous": false
|
|
106
|
+
"anonymous": false,
|
|
107
|
+
"agents": [
|
|
108
|
+
"senseiToken"
|
|
109
|
+
]
|
|
99
110
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/personal-runtime",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"personal-runtime",
|
|
7
|
+
"get"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Read Personal actual runtime balance and shared sandbox capacity.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"workspaceId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": null,
|
|
15
|
+
"multipart": null,
|
|
16
|
+
"attachments": false,
|
|
17
|
+
"anonymous": false,
|
|
18
|
+
"agents": "all"
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/sandbox-hours",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"sandbox-hours",
|
|
7
|
+
"get"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Read organization sandbox hours and stop status.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"workspaceId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": null,
|
|
15
|
+
"multipart": null,
|
|
16
|
+
"attachments": false,
|
|
17
|
+
"anonymous": false,
|
|
18
|
+
"agents": "all"
|
|
19
|
+
};
|
package/openapi.json
CHANGED
|
@@ -7532,6 +7532,60 @@
|
|
|
7532
7532
|
}
|
|
7533
7533
|
}
|
|
7534
7534
|
},
|
|
7535
|
+
"/api/organizations/{workspaceId}/personal-runtime": {
|
|
7536
|
+
"get": {
|
|
7537
|
+
"operationId": "workspacesPersonalRuntimeGet",
|
|
7538
|
+
"summary": "Read Personal actual runtime balance and shared sandbox capacity.",
|
|
7539
|
+
"tags": ["workspaces"],
|
|
7540
|
+
"x-kosuke-command": ["workspaces", "personal-runtime", "get"],
|
|
7541
|
+
"x-kosuke-sandbox-token": true,
|
|
7542
|
+
"x-kosuke-cron-token": true,
|
|
7543
|
+
"x-kosuke-sensei-token": true,
|
|
7544
|
+
"parameters": [
|
|
7545
|
+
{
|
|
7546
|
+
"name": "workspaceId",
|
|
7547
|
+
"in": "path",
|
|
7548
|
+
"required": true,
|
|
7549
|
+
"schema": {
|
|
7550
|
+
"type": "string",
|
|
7551
|
+
"minLength": 1
|
|
7552
|
+
}
|
|
7553
|
+
}
|
|
7554
|
+
],
|
|
7555
|
+
"responses": {
|
|
7556
|
+
"2XX": {
|
|
7557
|
+
"description": "Success envelope",
|
|
7558
|
+
"content": {
|
|
7559
|
+
"application/json": {
|
|
7560
|
+
"schema": {
|
|
7561
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
7562
|
+
}
|
|
7563
|
+
}
|
|
7564
|
+
}
|
|
7565
|
+
},
|
|
7566
|
+
"4XX": {
|
|
7567
|
+
"description": "Error envelope",
|
|
7568
|
+
"content": {
|
|
7569
|
+
"application/json": {
|
|
7570
|
+
"schema": {
|
|
7571
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7572
|
+
}
|
|
7573
|
+
}
|
|
7574
|
+
}
|
|
7575
|
+
},
|
|
7576
|
+
"5XX": {
|
|
7577
|
+
"description": "Error envelope",
|
|
7578
|
+
"content": {
|
|
7579
|
+
"application/json": {
|
|
7580
|
+
"schema": {
|
|
7581
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
}
|
|
7585
|
+
}
|
|
7586
|
+
}
|
|
7587
|
+
}
|
|
7588
|
+
},
|
|
7535
7589
|
"/api/organizations/{workspaceId}/plugins": {
|
|
7536
7590
|
"get": {
|
|
7537
7591
|
"operationId": "pluginsList",
|
|
@@ -8144,6 +8198,60 @@
|
|
|
8144
8198
|
}
|
|
8145
8199
|
}
|
|
8146
8200
|
},
|
|
8201
|
+
"/api/organizations/{workspaceId}/sandbox-hours": {
|
|
8202
|
+
"get": {
|
|
8203
|
+
"operationId": "workspacesSandboxHoursGet",
|
|
8204
|
+
"summary": "Read organization sandbox hours and stop status.",
|
|
8205
|
+
"tags": ["workspaces"],
|
|
8206
|
+
"x-kosuke-command": ["workspaces", "sandbox-hours", "get"],
|
|
8207
|
+
"x-kosuke-sandbox-token": true,
|
|
8208
|
+
"x-kosuke-cron-token": true,
|
|
8209
|
+
"x-kosuke-sensei-token": true,
|
|
8210
|
+
"parameters": [
|
|
8211
|
+
{
|
|
8212
|
+
"name": "workspaceId",
|
|
8213
|
+
"in": "path",
|
|
8214
|
+
"required": true,
|
|
8215
|
+
"schema": {
|
|
8216
|
+
"type": "string",
|
|
8217
|
+
"minLength": 1
|
|
8218
|
+
}
|
|
8219
|
+
}
|
|
8220
|
+
],
|
|
8221
|
+
"responses": {
|
|
8222
|
+
"2XX": {
|
|
8223
|
+
"description": "Success envelope",
|
|
8224
|
+
"content": {
|
|
8225
|
+
"application/json": {
|
|
8226
|
+
"schema": {
|
|
8227
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
8228
|
+
}
|
|
8229
|
+
}
|
|
8230
|
+
}
|
|
8231
|
+
},
|
|
8232
|
+
"4XX": {
|
|
8233
|
+
"description": "Error envelope",
|
|
8234
|
+
"content": {
|
|
8235
|
+
"application/json": {
|
|
8236
|
+
"schema": {
|
|
8237
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8238
|
+
}
|
|
8239
|
+
}
|
|
8240
|
+
}
|
|
8241
|
+
},
|
|
8242
|
+
"5XX": {
|
|
8243
|
+
"description": "Error envelope",
|
|
8244
|
+
"content": {
|
|
8245
|
+
"application/json": {
|
|
8246
|
+
"schema": {
|
|
8247
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8248
|
+
}
|
|
8249
|
+
}
|
|
8250
|
+
}
|
|
8251
|
+
}
|
|
8252
|
+
}
|
|
8253
|
+
}
|
|
8254
|
+
},
|
|
8147
8255
|
"/api/organizations/{workspaceId}/sandbox-limit": {
|
|
8148
8256
|
"get": {
|
|
8149
8257
|
"operationId": "workspacesSandboxLimitGet",
|
|
@@ -19044,7 +19152,7 @@
|
|
|
19044
19152
|
"/api/projects/{projectId}/settings": {
|
|
19045
19153
|
"get": {
|
|
19046
19154
|
"operationId": "projectsSettingsGet",
|
|
19047
|
-
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. canEdit says whether the caller may change them.",
|
|
19155
|
+
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. A secret's value reaches only a member's own browser session or API key, never Sensei or another agent. canEdit says whether the caller may change them; Sensei passes --card with the card its member approved.",
|
|
19048
19156
|
"tags": ["projects"],
|
|
19049
19157
|
"x-kosuke-command": ["projects", "settings", "get"],
|
|
19050
19158
|
"x-kosuke-sandbox-token": true,
|
|
@@ -19061,6 +19169,18 @@
|
|
|
19061
19169
|
"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)$"
|
|
19062
19170
|
}
|
|
19063
19171
|
},
|
|
19172
|
+
{
|
|
19173
|
+
"name": "card",
|
|
19174
|
+
"in": "query",
|
|
19175
|
+
"required": false,
|
|
19176
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19177
|
+
"schema": {
|
|
19178
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19179
|
+
"type": "string",
|
|
19180
|
+
"format": "uuid",
|
|
19181
|
+
"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)$"
|
|
19182
|
+
}
|
|
19183
|
+
},
|
|
19064
19184
|
{
|
|
19065
19185
|
"name": "values",
|
|
19066
19186
|
"in": "query",
|
|
@@ -19106,9 +19226,10 @@
|
|
|
19106
19226
|
},
|
|
19107
19227
|
"patch": {
|
|
19108
19228
|
"operationId": "projectsSettingsUpdate",
|
|
19109
|
-
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every agent token. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history.",
|
|
19229
|
+
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every other agent token. Sensei changes the setup commands (host setup, setup, warmup, rerun on checkout move) for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history, Sensei's as Sensei for its member.",
|
|
19110
19230
|
"tags": ["projects"],
|
|
19111
19231
|
"x-kosuke-command": ["projects", "settings", "update"],
|
|
19232
|
+
"x-kosuke-sensei-token": true,
|
|
19112
19233
|
"parameters": [
|
|
19113
19234
|
{
|
|
19114
19235
|
"name": "projectId",
|
|
@@ -19119,6 +19240,18 @@
|
|
|
19119
19240
|
"format": "uuid",
|
|
19120
19241
|
"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)$"
|
|
19121
19242
|
}
|
|
19243
|
+
},
|
|
19244
|
+
{
|
|
19245
|
+
"name": "card",
|
|
19246
|
+
"in": "query",
|
|
19247
|
+
"required": false,
|
|
19248
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19249
|
+
"schema": {
|
|
19250
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19251
|
+
"type": "string",
|
|
19252
|
+
"format": "uuid",
|
|
19253
|
+
"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)$"
|
|
19254
|
+
}
|
|
19122
19255
|
}
|
|
19123
19256
|
],
|
|
19124
19257
|
"requestBody": {
|
|
@@ -19986,9 +20119,10 @@
|
|
|
19986
20119
|
"/api/projects/{projectId}/settings/env-vars": {
|
|
19987
20120
|
"post": {
|
|
19988
20121
|
"operationId": "projectsEnvVarsCreate",
|
|
19989
|
-
"summary": "Add environment variables. The body is a JSON array of { key, value, isSecret? }. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Each one is recorded in Change history, its value masked. A loader or shell name (NODE_OPTIONS, LD_PRELOAD, PATH, GIT_*, and the like) reaches the app only, never Kosuke's agents.",
|
|
20122
|
+
"summary": "Add environment variables. The body is a JSON array of { key, value, isSecret? }. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Sensei may write a secret, and never reads one back. Each one is recorded in Change history, its value masked. A loader or shell name (NODE_OPTIONS, LD_PRELOAD, PATH, GIT_*, and the like) reaches the app only, never Kosuke's agents.",
|
|
19990
20123
|
"tags": ["projects"],
|
|
19991
20124
|
"x-kosuke-command": ["projects", "env-vars", "create"],
|
|
20125
|
+
"x-kosuke-sensei-token": true,
|
|
19992
20126
|
"parameters": [
|
|
19993
20127
|
{
|
|
19994
20128
|
"name": "projectId",
|
|
@@ -19999,6 +20133,18 @@
|
|
|
19999
20133
|
"format": "uuid",
|
|
20000
20134
|
"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)$"
|
|
20001
20135
|
}
|
|
20136
|
+
},
|
|
20137
|
+
{
|
|
20138
|
+
"name": "card",
|
|
20139
|
+
"in": "query",
|
|
20140
|
+
"required": false,
|
|
20141
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20142
|
+
"schema": {
|
|
20143
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20144
|
+
"type": "string",
|
|
20145
|
+
"format": "uuid",
|
|
20146
|
+
"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)$"
|
|
20147
|
+
}
|
|
20002
20148
|
}
|
|
20003
20149
|
],
|
|
20004
20150
|
"requestBody": {
|
|
@@ -20068,9 +20214,10 @@
|
|
|
20068
20214
|
},
|
|
20069
20215
|
"delete": {
|
|
20070
20216
|
"operationId": "projectsEnvVarsDelete",
|
|
20071
|
-
"summary": "Remove environment variables. The body is a JSON array of variable ids. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Each removal is recorded in Change history.",
|
|
20217
|
+
"summary": "Remove environment variables. The body is a JSON array of variable ids. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Each removal is recorded in Change history.",
|
|
20072
20218
|
"tags": ["projects"],
|
|
20073
20219
|
"x-kosuke-command": ["projects", "env-vars", "delete"],
|
|
20220
|
+
"x-kosuke-sensei-token": true,
|
|
20074
20221
|
"parameters": [
|
|
20075
20222
|
{
|
|
20076
20223
|
"name": "projectId",
|
|
@@ -20081,6 +20228,18 @@
|
|
|
20081
20228
|
"format": "uuid",
|
|
20082
20229
|
"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)$"
|
|
20083
20230
|
}
|
|
20231
|
+
},
|
|
20232
|
+
{
|
|
20233
|
+
"name": "card",
|
|
20234
|
+
"in": "query",
|
|
20235
|
+
"required": false,
|
|
20236
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20237
|
+
"schema": {
|
|
20238
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20239
|
+
"type": "string",
|
|
20240
|
+
"format": "uuid",
|
|
20241
|
+
"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)$"
|
|
20242
|
+
}
|
|
20084
20243
|
}
|
|
20085
20244
|
],
|
|
20086
20245
|
"requestBody": {
|
|
@@ -20664,9 +20823,10 @@
|
|
|
20664
20823
|
},
|
|
20665
20824
|
"post": {
|
|
20666
20825
|
"operationId": "projectsServicesCreate",
|
|
20667
|
-
"summary": "Add a service. A port already used by another service is rejected by the handler. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
20826
|
+
"summary": "Add a service. A port already used by another service is rejected by the handler. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
20668
20827
|
"tags": ["projects"],
|
|
20669
20828
|
"x-kosuke-command": ["projects", "services", "create"],
|
|
20829
|
+
"x-kosuke-sensei-token": true,
|
|
20670
20830
|
"parameters": [
|
|
20671
20831
|
{
|
|
20672
20832
|
"name": "projectId",
|
|
@@ -20677,6 +20837,18 @@
|
|
|
20677
20837
|
"format": "uuid",
|
|
20678
20838
|
"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)$"
|
|
20679
20839
|
}
|
|
20840
|
+
},
|
|
20841
|
+
{
|
|
20842
|
+
"name": "card",
|
|
20843
|
+
"in": "query",
|
|
20844
|
+
"required": false,
|
|
20845
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20846
|
+
"schema": {
|
|
20847
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20848
|
+
"type": "string",
|
|
20849
|
+
"format": "uuid",
|
|
20850
|
+
"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)$"
|
|
20851
|
+
}
|
|
20680
20852
|
}
|
|
20681
20853
|
],
|
|
20682
20854
|
"requestBody": {
|
|
@@ -20821,9 +20993,10 @@
|
|
|
20821
20993
|
"/api/projects/{projectId}/settings/services/{serviceId}": {
|
|
20822
20994
|
"patch": {
|
|
20823
20995
|
"operationId": "projectsServicesUpdate",
|
|
20824
|
-
"summary": "Change one service. Every field is optional; only the ones sent change. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
20996
|
+
"summary": "Change one service. Every field is optional; only the ones sent change. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
20825
20997
|
"tags": ["projects"],
|
|
20826
20998
|
"x-kosuke-command": ["projects", "services", "update"],
|
|
20999
|
+
"x-kosuke-sensei-token": true,
|
|
20827
21000
|
"parameters": [
|
|
20828
21001
|
{
|
|
20829
21002
|
"name": "projectId",
|
|
@@ -20844,6 +21017,18 @@
|
|
|
20844
21017
|
"format": "uuid",
|
|
20845
21018
|
"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)$"
|
|
20846
21019
|
}
|
|
21020
|
+
},
|
|
21021
|
+
{
|
|
21022
|
+
"name": "card",
|
|
21023
|
+
"in": "query",
|
|
21024
|
+
"required": false,
|
|
21025
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
21026
|
+
"schema": {
|
|
21027
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
21028
|
+
"type": "string",
|
|
21029
|
+
"format": "uuid",
|
|
21030
|
+
"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)$"
|
|
21031
|
+
}
|
|
20847
21032
|
}
|
|
20848
21033
|
],
|
|
20849
21034
|
"requestBody": {
|
|
@@ -20972,9 +21157,10 @@
|
|
|
20972
21157
|
},
|
|
20973
21158
|
"delete": {
|
|
20974
21159
|
"operationId": "projectsServicesDelete",
|
|
20975
|
-
"summary": "Remove one service. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. Recorded in Change history.",
|
|
21160
|
+
"summary": "Remove one service. Only a workspace admin, in the browser: an API key, a connected app and every other agent token get 403. Sensei does it for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Recorded in Change history.",
|
|
20976
21161
|
"tags": ["projects"],
|
|
20977
21162
|
"x-kosuke-command": ["projects", "services", "delete"],
|
|
21163
|
+
"x-kosuke-sensei-token": true,
|
|
20978
21164
|
"parameters": [
|
|
20979
21165
|
{
|
|
20980
21166
|
"name": "projectId",
|
|
@@ -20995,6 +21181,18 @@
|
|
|
20995
21181
|
"format": "uuid",
|
|
20996
21182
|
"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)$"
|
|
20997
21183
|
}
|
|
21184
|
+
},
|
|
21185
|
+
{
|
|
21186
|
+
"name": "card",
|
|
21187
|
+
"in": "query",
|
|
21188
|
+
"required": false,
|
|
21189
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
21190
|
+
"schema": {
|
|
21191
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
21192
|
+
"type": "string",
|
|
21193
|
+
"format": "uuid",
|
|
21194
|
+
"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)$"
|
|
21195
|
+
}
|
|
20998
21196
|
}
|
|
20999
21197
|
],
|
|
21000
21198
|
"responses": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.102",
|
|
4
4
|
"description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"minimatch": "^11.0.1"
|
|
44
44
|
},
|
|
45
45
|
"kosukeRelease": {
|
|
46
|
-
"sourceCommit": "
|
|
47
|
-
"sourceIdentity": "
|
|
46
|
+
"sourceCommit": "aa1d3279f732656f45ea93138073c3b018d271cf",
|
|
47
|
+
"sourceIdentity": "57cae902c54a4c547866e5d954c673c44ec509e8ab267df2cc12269eafde3ce0",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"sensei-approved-settings-xi2w2g.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|