@kosuke-ai/kosuke 1.0.41 → 1.0.43

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.43
4
+
5
+ - Add `--on-conflict rename` to `kosuke files set` for personal Files: a name the folder already holds is stored as the first free "name (2).ext" instead of replacing the file.
6
+
7
+ ## 1.0.42
8
+
9
+ - Merge agent status lists each pull request's state: merged, ejected, in-batch, waiting, failed or ready.
10
+
3
11
  ## 1.0.41
4
12
 
5
13
  - Replace `kosuke preview reset` with `kosuke preview sandbox reset`, which kills a stuck preview sandbox so Kosuke creates a new one.
@@ -8,7 +8,7 @@ export const operation = {
8
8
  "variant": {
9
9
  "scope": "personal"
10
10
  },
11
- "summary": "Put a file in your personal Files by path, creating parent folders and replacing an existing file. Send text or exactly one attachment, at most 25 MiB. ifVersion refuses a stale replace. Alternatively provide name and parentId (null for the root).",
11
+ "summary": "Put a file in your personal Files by path, creating parent folders and replacing an existing file. Send text or exactly one attachment, at most 25 MiB. ifVersion refuses a stale replace. Alternatively provide name and parentId (null for the root). onConflict=rename never replaces: a name the folder already holds is stored as the first free \"name (2).ext\", \"name (3).ext\", and the response names the file it became; it takes no ifVersion.",
12
12
  "pathParams": [],
13
13
  "query": [],
14
14
  "body": {
@@ -48,6 +48,16 @@ export const operation = {
48
48
  "flag": "if-version",
49
49
  "kind": "integer",
50
50
  "required": false
51
+ },
52
+ {
53
+ "name": "onConflict",
54
+ "flag": "on-conflict",
55
+ "kind": "string",
56
+ "required": false,
57
+ "choices": [
58
+ "replace",
59
+ "rename"
60
+ ]
51
61
  }
52
62
  ],
53
63
  "required": true
@@ -82,6 +92,16 @@ export const operation = {
82
92
  "flag": "if-version",
83
93
  "kind": "string",
84
94
  "required": false
95
+ },
96
+ {
97
+ "name": "onConflict",
98
+ "flag": "on-conflict",
99
+ "kind": "string",
100
+ "required": false,
101
+ "choices": [
102
+ "replace",
103
+ "rename"
104
+ ]
85
105
  }
86
106
  ],
87
107
  "attachments": {
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "merge-agent",
7
7
  "get"
8
8
  ],
9
- "summary": "Read the project's Merge agent: its mode (train, batch, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the next run with their QA and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
9
+ "summary": "Read the project's Merge agent: its mode (train, batch, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the next run with their QA, recorded head, stored review decision and state word (merged, ejected, in-batch, waiting, failed or ready, the one the Tasks board shows), the Batch the queue is split by (its CI, review, QA, members and ejections, each with its state word), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Kosuke's own data only: no GitHub call, and GitHub's facts (what the Batch pull request still needs, the merge queue) are null.",
10
10
  "pathParams": [
11
11
  "projectId"
12
12
  ],
package/openapi.json CHANGED
@@ -17219,7 +17219,7 @@
17219
17219
  "/api/projects/{projectId}/merge-agent": {
17220
17220
  "get": {
17221
17221
  "operationId": "projectsMergeAgentGet",
17222
- "summary": "Read the project's Merge agent: its mode (train, batch, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the next run with their QA and GitHub's review decision now, the Batch the queue is split by (its CI, review, QA, members and ejections), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Kosuke's own data only: no GitHub call, and GitHub's facts (each waiting pull request's head and review decision, the Batch pull request's review, the merge queue) are null.",
17222
+ "summary": "Read the project's Merge agent: its mode (train, batch, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the next run with their QA, recorded head, stored review decision and state word (merged, ejected, in-batch, waiting, failed or ready, the one the Tasks board shows), the Batch the queue is split by (its CI, review, QA, members and ejections, each with its state word), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Kosuke's own data only: no GitHub call, and GitHub's facts (what the Batch pull request still needs, the merge queue) are null.",
17223
17223
  "tags": ["projects"],
17224
17224
  "x-kosuke-command": ["projects", "merge-agent", "get"],
17225
17225
  "x-kosuke-sandbox-token": true,
@@ -26384,7 +26384,7 @@
26384
26384
  },
26385
26385
  "post": {
26386
26386
  "operationId": "filesSetPersonal",
26387
- "summary": "Put a file in your personal Files by path, creating parent folders and replacing an existing file. Send text or exactly one attachment, at most 25 MiB. ifVersion refuses a stale replace. Alternatively provide name and parentId (null for the root).",
26387
+ "summary": "Put a file in your personal Files by path, creating parent folders and replacing an existing file. Send text or exactly one attachment, at most 25 MiB. ifVersion refuses a stale replace. Alternatively provide name and parentId (null for the root). onConflict=rename never replaces: a name the folder already holds is stored as the first free \"name (2).ext\", \"name (3).ext\", and the response names the file it became; it takes no ifVersion.",
26388
26388
  "tags": ["files"],
26389
26389
  "x-kosuke-command": ["files", "set"],
26390
26390
  "x-kosuke-variant": {
@@ -26435,6 +26435,10 @@
26435
26435
  "type": "integer",
26436
26436
  "minimum": 1,
26437
26437
  "maximum": 9007199254740991
26438
+ },
26439
+ "onConflict": {
26440
+ "type": "string",
26441
+ "enum": ["replace", "rename"]
26438
26442
  }
26439
26443
  }
26440
26444
  }
@@ -26457,6 +26461,10 @@
26457
26461
  },
26458
26462
  "ifVersion": {
26459
26463
  "type": "string"
26464
+ },
26465
+ "onConflict": {
26466
+ "type": "string",
26467
+ "enum": ["replace", "rename"]
26460
26468
  }
26461
26469
  }
26462
26470
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Kosuke platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,11 +40,10 @@
40
40
  "vitest": "^4.1.12"
41
41
  },
42
42
  "kosukeRelease": {
43
- "sourceCommit": "73b5c1ec06e3efa1054a95cc718f32c9bfbb82a8",
44
- "sourceIdentity": "f12507d9abda89c3a4ee293a0f94797ac6315fa06709cb3e5e2607f09195ed06",
43
+ "sourceCommit": "8d3004f83bccdc2258305caa89d1ef657d39967e",
44
+ "sourceIdentity": "37df94a39a60f8639dc0f8cc5a04d50419e307f6091538bbd1005316dc5461f9",
45
45
  "fragments": [
46
- "preview-sandbox-restart-tswhy0.json",
47
- "tasks-list-thread-filter-66v2t0.json"
46
+ "personal-files-rename-on-conflict-s3n5qa.json"
48
47
  ]
49
48
  }
50
49
  }