@kosuke-ai/kosuke 1.0.133 → 1.0.135
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 +8 -0
- package/dist/generated/commands/index.js +11 -7
- package/dist/generated/commands/sensei/watch-reads-finish.js +3 -3
- package/dist/generated/commands/workspaces/memory-get.js +19 -0
- package/dist/generated/commands/workspaces/memory-set.js +47 -0
- package/openapi.json +150 -7
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.135
|
|
4
|
+
|
|
5
|
+
- `sensei watch-reads finish` takes conversations without a `link`, as a LinkedIn list shows them until a conversation is opened, and cuts a `--detail` over 500 characters instead of refusing the report.
|
|
6
|
+
|
|
7
|
+
## 1.0.134
|
|
8
|
+
|
|
9
|
+
- New `workspaces memory get <workspaceId>` reads a workspace's Memory, the general.md Sensei reads in every turn about that workspace, with its revision and who saved it last. `workspaces memory set <workspaceId> --revision <n> --content-file <path>` saves it at the revision you read: owners and admins only, 10,000 characters at most, refused with 409 `MEMORY_CHANGED` when it changed since. A Personal space has none.
|
|
10
|
+
|
|
3
11
|
## 1.0.133
|
|
4
12
|
|
|
5
13
|
- When stdout is a pipe, a short list's footer (`20 of 3122. More: --cursor <c>`) goes inside the JSON as `meta.hint`, notices as `meta.notices`, and `integrations call` and `integrations request` name the connection they ran on as `meta.ranOn` in a JSON object result, so `kosuke ... 2>&1 | jq` reads one JSON value. A terminal still shows these lines on stderr, and errors still go to stderr with a non-zero exit. A flag given to the wrong form of a command now names the form that takes it and the closest flag of this form.
|
|
@@ -343,13 +343,15 @@ import { operation as o341 } from './workspaces/get.js';
|
|
|
343
343
|
import { operation as o342 } from './workspaces/list.js';
|
|
344
344
|
import { operation as o343 } from './workspaces/members-list.js';
|
|
345
345
|
import { operation as o344 } from './workspaces/members-list--all.js';
|
|
346
|
-
import { operation as o345 } from './workspaces/
|
|
347
|
-
import { operation as o346 } from './workspaces/
|
|
348
|
-
import { operation as o347 } from './workspaces/
|
|
349
|
-
import { operation as o348 } from './workspaces/
|
|
350
|
-
import { operation as o349 } from './workspaces/
|
|
351
|
-
import { operation as o350 } from './workspaces/
|
|
352
|
-
import { operation as o351 } from './workspaces/
|
|
346
|
+
import { operation as o345 } from './workspaces/memory-get.js';
|
|
347
|
+
import { operation as o346 } from './workspaces/memory-set.js';
|
|
348
|
+
import { operation as o347 } from './workspaces/personal-runtime-get.js';
|
|
349
|
+
import { operation as o348 } from './workspaces/sandbox-hours-get.js';
|
|
350
|
+
import { operation as o349 } from './workspaces/sandbox-limit-get.js';
|
|
351
|
+
import { operation as o350 } from './workspaces/sandboxes-stop.js';
|
|
352
|
+
import { operation as o351 } from './workspaces/timezone-set.js';
|
|
353
|
+
import { operation as o352 } from './workspaces/usage-breakdown-get.js';
|
|
354
|
+
import { operation as o353 } from './workspaces/usage-get.js';
|
|
353
355
|
export const operations = [
|
|
354
356
|
o0,
|
|
355
357
|
o1,
|
|
@@ -703,4 +705,6 @@ export const operations = [
|
|
|
703
705
|
o349,
|
|
704
706
|
o350,
|
|
705
707
|
o351,
|
|
708
|
+
o352,
|
|
709
|
+
o353,
|
|
706
710
|
];
|
|
@@ -52,8 +52,8 @@ export const operation = {
|
|
|
52
52
|
"flag": "conversations",
|
|
53
53
|
"kind": "json",
|
|
54
54
|
"required": false,
|
|
55
|
-
"description": "With ok: the conversation list, newest first",
|
|
56
|
-
"shape": "{link
|
|
55
|
+
"description": "With ok: the conversation list, newest first. Each needs its name; its link only when the list shows one",
|
|
56
|
+
"shape": "{link?: string | null, name?: string | null, kind?: \"direct\"|\"group\", muted?: boolean, unread?: boolean, newest: {sender?: string | null, fromMe?: boolean | null, text: string, truncated?: boolean}}[] (max 50)"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"name": "more",
|
|
@@ -67,7 +67,7 @@ export const operation = {
|
|
|
67
67
|
"flag": "detail",
|
|
68
68
|
"kind": "string",
|
|
69
69
|
"required": false,
|
|
70
|
-
"description": "Why the list could not be read"
|
|
70
|
+
"description": "Why the list could not be read; past 500 characters it is cut"
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
73
|
"required": true
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "get",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/memory",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"memory",
|
|
7
|
+
"get"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Read the workspace's Memory, general.md: the facts about the company and how the team works that Sensei reads in every turn about this workspace. Returns its content, its revision, who saved it last and whether you may save it. Any member; a Personal space has none.",
|
|
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,47 @@
|
|
|
1
|
+
export const operation = {
|
|
2
|
+
"method": "put",
|
|
3
|
+
"path": "/api/organizations/{workspaceId}/memory",
|
|
4
|
+
"command": [
|
|
5
|
+
"workspaces",
|
|
6
|
+
"memory",
|
|
7
|
+
"set"
|
|
8
|
+
],
|
|
9
|
+
"summary": "Save the workspace's Memory, the whole general.md, at the revision you read. Refused with 409 MEMORY_CHANGED and the file as saved now when it changed since. 10,000 characters at most. Owners and admins only.",
|
|
10
|
+
"pathParams": [
|
|
11
|
+
"workspaceId"
|
|
12
|
+
],
|
|
13
|
+
"query": [],
|
|
14
|
+
"body": {
|
|
15
|
+
"fields": [
|
|
16
|
+
{
|
|
17
|
+
"name": "content",
|
|
18
|
+
"flag": "content",
|
|
19
|
+
"kind": "string",
|
|
20
|
+
"required": true,
|
|
21
|
+
"description": "The whole file, as Markdown: `--content-file general.md`, or `-` for stdin.",
|
|
22
|
+
"file": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "revision",
|
|
26
|
+
"flag": "revision",
|
|
27
|
+
"kind": "integer",
|
|
28
|
+
"required": true,
|
|
29
|
+
"description": "The revision you read the file at, from `kosuke workspaces memory get`."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "cardId",
|
|
33
|
+
"flag": "card-id",
|
|
34
|
+
"kind": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"description": "The Memory card this save answers, if any. The platform reads nothing from it."
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"required": true
|
|
40
|
+
},
|
|
41
|
+
"multipart": null,
|
|
42
|
+
"attachments": false,
|
|
43
|
+
"anonymous": false,
|
|
44
|
+
"agents": [
|
|
45
|
+
"senseiToken"
|
|
46
|
+
]
|
|
47
|
+
};
|
package/openapi.json
CHANGED
|
@@ -7543,6 +7543,141 @@
|
|
|
7543
7543
|
}
|
|
7544
7544
|
}
|
|
7545
7545
|
},
|
|
7546
|
+
"/api/organizations/{workspaceId}/memory": {
|
|
7547
|
+
"get": {
|
|
7548
|
+
"operationId": "workspacesMemoryGet",
|
|
7549
|
+
"summary": "Read the workspace's Memory, general.md: the facts about the company and how the team works that Sensei reads in every turn about this workspace. Returns its content, its revision, who saved it last and whether you may save it. Any member; a Personal space has none.",
|
|
7550
|
+
"tags": ["workspaces"],
|
|
7551
|
+
"x-kosuke-command": ["workspaces", "memory", "get"],
|
|
7552
|
+
"x-kosuke-sandbox-token": true,
|
|
7553
|
+
"x-kosuke-cron-token": true,
|
|
7554
|
+
"x-kosuke-sensei-token": true,
|
|
7555
|
+
"parameters": [
|
|
7556
|
+
{
|
|
7557
|
+
"name": "workspaceId",
|
|
7558
|
+
"in": "path",
|
|
7559
|
+
"required": true,
|
|
7560
|
+
"schema": {
|
|
7561
|
+
"type": "string",
|
|
7562
|
+
"minLength": 1
|
|
7563
|
+
}
|
|
7564
|
+
}
|
|
7565
|
+
],
|
|
7566
|
+
"responses": {
|
|
7567
|
+
"2XX": {
|
|
7568
|
+
"description": "Success envelope",
|
|
7569
|
+
"content": {
|
|
7570
|
+
"application/json": {
|
|
7571
|
+
"schema": {
|
|
7572
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
7573
|
+
}
|
|
7574
|
+
}
|
|
7575
|
+
}
|
|
7576
|
+
},
|
|
7577
|
+
"4XX": {
|
|
7578
|
+
"description": "Error envelope",
|
|
7579
|
+
"content": {
|
|
7580
|
+
"application/json": {
|
|
7581
|
+
"schema": {
|
|
7582
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7583
|
+
}
|
|
7584
|
+
}
|
|
7585
|
+
}
|
|
7586
|
+
},
|
|
7587
|
+
"5XX": {
|
|
7588
|
+
"description": "Error envelope",
|
|
7589
|
+
"content": {
|
|
7590
|
+
"application/json": {
|
|
7591
|
+
"schema": {
|
|
7592
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7593
|
+
}
|
|
7594
|
+
}
|
|
7595
|
+
}
|
|
7596
|
+
}
|
|
7597
|
+
}
|
|
7598
|
+
},
|
|
7599
|
+
"put": {
|
|
7600
|
+
"operationId": "workspacesMemorySet",
|
|
7601
|
+
"summary": "Save the workspace's Memory, the whole general.md, at the revision you read. Refused with 409 MEMORY_CHANGED and the file as saved now when it changed since. 10,000 characters at most. Owners and admins only.",
|
|
7602
|
+
"tags": ["workspaces"],
|
|
7603
|
+
"x-kosuke-command": ["workspaces", "memory", "set"],
|
|
7604
|
+
"x-kosuke-sensei-token": true,
|
|
7605
|
+
"parameters": [
|
|
7606
|
+
{
|
|
7607
|
+
"name": "workspaceId",
|
|
7608
|
+
"in": "path",
|
|
7609
|
+
"required": true,
|
|
7610
|
+
"schema": {
|
|
7611
|
+
"type": "string",
|
|
7612
|
+
"minLength": 1
|
|
7613
|
+
}
|
|
7614
|
+
}
|
|
7615
|
+
],
|
|
7616
|
+
"requestBody": {
|
|
7617
|
+
"required": true,
|
|
7618
|
+
"content": {
|
|
7619
|
+
"application/json": {
|
|
7620
|
+
"schema": {
|
|
7621
|
+
"type": "object",
|
|
7622
|
+
"properties": {
|
|
7623
|
+
"content": {
|
|
7624
|
+
"type": "string",
|
|
7625
|
+
"maxLength": 10000,
|
|
7626
|
+
"description": "The whole file, as Markdown: `--content-file general.md`, or `-` for stdin.",
|
|
7627
|
+
"x-kosuke-file": true
|
|
7628
|
+
},
|
|
7629
|
+
"revision": {
|
|
7630
|
+
"type": "integer",
|
|
7631
|
+
"minimum": 0,
|
|
7632
|
+
"maximum": 9007199254740991,
|
|
7633
|
+
"description": "The revision you read the file at, from `kosuke workspaces memory get`."
|
|
7634
|
+
},
|
|
7635
|
+
"cardId": {
|
|
7636
|
+
"description": "The Memory card this save answers, if any. The platform reads nothing from it.",
|
|
7637
|
+
"type": "string",
|
|
7638
|
+
"format": "uuid",
|
|
7639
|
+
"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)$"
|
|
7640
|
+
}
|
|
7641
|
+
},
|
|
7642
|
+
"required": ["content", "revision"]
|
|
7643
|
+
}
|
|
7644
|
+
}
|
|
7645
|
+
}
|
|
7646
|
+
},
|
|
7647
|
+
"responses": {
|
|
7648
|
+
"2XX": {
|
|
7649
|
+
"description": "Success envelope",
|
|
7650
|
+
"content": {
|
|
7651
|
+
"application/json": {
|
|
7652
|
+
"schema": {
|
|
7653
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
7654
|
+
}
|
|
7655
|
+
}
|
|
7656
|
+
}
|
|
7657
|
+
},
|
|
7658
|
+
"4XX": {
|
|
7659
|
+
"description": "Error envelope",
|
|
7660
|
+
"content": {
|
|
7661
|
+
"application/json": {
|
|
7662
|
+
"schema": {
|
|
7663
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7664
|
+
}
|
|
7665
|
+
}
|
|
7666
|
+
}
|
|
7667
|
+
},
|
|
7668
|
+
"5XX": {
|
|
7669
|
+
"description": "Error envelope",
|
|
7670
|
+
"content": {
|
|
7671
|
+
"application/json": {
|
|
7672
|
+
"schema": {
|
|
7673
|
+
"$ref": "#/components/schemas/ApiError"
|
|
7674
|
+
}
|
|
7675
|
+
}
|
|
7676
|
+
}
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7680
|
+
},
|
|
7546
7681
|
"/api/organizations/{workspaceId}/personal-runtime": {
|
|
7547
7682
|
"get": {
|
|
7548
7683
|
"operationId": "workspacesPersonalRuntimeGet",
|
|
@@ -26806,18 +26941,26 @@
|
|
|
26806
26941
|
"additionalProperties": false
|
|
26807
26942
|
},
|
|
26808
26943
|
"conversations": {
|
|
26809
|
-
"description": "With ok: the conversation list, newest first",
|
|
26944
|
+
"description": "With ok: the conversation list, newest first. Each needs its name; its link only when the list shows one",
|
|
26810
26945
|
"maxItems": 50,
|
|
26811
26946
|
"type": "array",
|
|
26812
26947
|
"items": {
|
|
26813
26948
|
"type": "object",
|
|
26814
26949
|
"properties": {
|
|
26815
26950
|
"link": {
|
|
26816
|
-
"
|
|
26817
|
-
"
|
|
26818
|
-
|
|
26951
|
+
"description": "The conversation's own link, when the list shows one; never open a conversation for it",
|
|
26952
|
+
"anyOf": [
|
|
26953
|
+
{
|
|
26954
|
+
"type": "string",
|
|
26955
|
+
"maxLength": 500
|
|
26956
|
+
},
|
|
26957
|
+
{
|
|
26958
|
+
"type": "null"
|
|
26959
|
+
}
|
|
26960
|
+
]
|
|
26819
26961
|
},
|
|
26820
26962
|
"name": {
|
|
26963
|
+
"description": "Who the conversation is with, as the list names it; keys one without a link",
|
|
26821
26964
|
"anyOf": [
|
|
26822
26965
|
{
|
|
26823
26966
|
"type": "string",
|
|
@@ -26867,7 +27010,7 @@
|
|
|
26867
27010
|
"required": ["text"]
|
|
26868
27011
|
}
|
|
26869
27012
|
},
|
|
26870
|
-
"required": ["
|
|
27013
|
+
"required": ["newest"]
|
|
26871
27014
|
}
|
|
26872
27015
|
},
|
|
26873
27016
|
"more": {
|
|
@@ -26875,9 +27018,9 @@
|
|
|
26875
27018
|
"type": "boolean"
|
|
26876
27019
|
},
|
|
26877
27020
|
"detail": {
|
|
26878
|
-
"description": "Why the list could not be read",
|
|
27021
|
+
"description": "Why the list could not be read; past 500 characters it is cut",
|
|
26879
27022
|
"type": "string",
|
|
26880
|
-
"maxLength":
|
|
27023
|
+
"maxLength": 20000
|
|
26881
27024
|
}
|
|
26882
27025
|
},
|
|
26883
27026
|
"required": ["status"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.135",
|
|
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": "28c4be0a36482bbe009e3cc79aa9c1198a640604",
|
|
47
|
+
"sourceIdentity": "d11adb3f7f86fe855836f5f0ef51fdf7d37e89d5388ad284e911659ef40635a0",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"watch-reads-finish-linkless-k3a9eh.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|