@kosuke-ai/kosuke 1.0.133 → 1.0.134

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.134
4
+
5
+ - 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.
6
+
3
7
  ## 1.0.133
4
8
 
5
9
  - 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/personal-runtime-get.js';
347
- import { operation as o346 } from './workspaces/sandbox-hours-get.js';
348
- import { operation as o347 } from './workspaces/sandbox-limit-get.js';
349
- import { operation as o348 } from './workspaces/sandboxes-stop.js';
350
- import { operation as o349 } from './workspaces/timezone-set.js';
351
- import { operation as o350 } from './workspaces/usage-breakdown-get.js';
352
- import { operation as o351 } from './workspaces/usage-get.js';
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
  ];
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
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": "f9c5e536c8ce17cc4981f141a590fea51f5f928d",
47
- "sourceIdentity": "825dd549c0d613d40e2efd168443beeab6164d2b05d732656fc7acbb822d4816",
46
+ "sourceCommit": "65da5599e42778709442468819bc4f0587e2f96d",
47
+ "sourceIdentity": "6f6313088e3e0bbff8cda86c69c59764dbac490c4a572d1c47f3e4192f726cd5",
48
48
  "fragments": [
49
- "cli-piped-json-hints-125ftq.json"
49
+ "workspace-memory-jdiuvh.json"
50
50
  ]
51
51
  }
52
52
  }