@kosuke-ai/kosuke 1.2.3606 → 1.2.3609

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.2.3609
4
+
5
+ - `preview health get --session-id` now returns `browserUrl`: the address a browser opens for that task's preview, whatever its sandbox is doing. A browser that opens it while the sandbox is paused or still being created waits on the starting page. `preview get --session-id <id> --intent open` tells Kosuke the member is about to open that preview in a browser that cannot say so itself, so the starting page wakes the sandbox even on a second open.
6
+
3
7
  ## 1.2.3606
4
8
 
5
9
  - Name each connection's full connectionId in `kosuke integrations list` and in a tool call's meta.ranOn, so a card can reference it.
@@ -27,11 +27,29 @@ export const operation = {
27
27
  "wait",
28
28
  "restart"
29
29
  ]
30
+ },
31
+ {
32
+ "name": "intent",
33
+ "flag": "intent",
34
+ "kind": "string",
35
+ "required": false,
36
+ "description": "A session's preview only: the member is about to open it in a browser that cannot say so itself (the iPhone app's Preview row), so its next handoff wakes the sandbox as a member's own tap.",
37
+ "choices": [
38
+ "open"
39
+ ]
30
40
  }
31
41
  ],
32
42
  "body": null,
33
43
  "multipart": null,
34
44
  "attachments": false,
45
+ "fields": [
46
+ "projectId",
47
+ "sandboxKey",
48
+ "frontendUrls",
49
+ "provisioning",
50
+ "startAttemptId",
51
+ "creditLimitReached"
52
+ ],
35
53
  "anonymous": false,
36
54
  "agents": "all"
37
55
  };
@@ -22,6 +22,18 @@ export const operation = {
22
22
  "body": null,
23
23
  "multipart": null,
24
24
  "attachments": false,
25
+ "fields": [
26
+ "state",
27
+ "paused",
28
+ "needsStart",
29
+ "startInFlight",
30
+ "startFailure",
31
+ "sandboxAvailable",
32
+ "creditLimitReached",
33
+ "sandboxLimitReached",
34
+ "indeterminate",
35
+ "browserUrl"
36
+ ],
25
37
  "anonymous": false,
26
38
  "agents": "all"
27
39
  };
@@ -24,6 +24,12 @@ export const operation = {
24
24
  },
25
25
  "multipart": null,
26
26
  "attachments": false,
27
+ "fields": [
28
+ "status",
29
+ "projectId",
30
+ "sandboxKey",
31
+ "alreadyInFlight"
32
+ ],
27
33
  "anonymous": false,
28
34
  "agents": [
29
35
  "senseiToken"
package/openapi.json CHANGED
@@ -20744,6 +20744,14 @@
20744
20744
  "summary": "Read the preview URLs of the project's main sandbox, or of one chat session's. Starts a paused or missing sandbox in the background; poll health until it is up.",
20745
20745
  "tags": ["preview"],
20746
20746
  "x-kosuke-command": ["preview", "get"],
20747
+ "x-kosuke-fields": [
20748
+ "projectId",
20749
+ "sandboxKey",
20750
+ "frontendUrls",
20751
+ "provisioning",
20752
+ "startAttemptId",
20753
+ "creditLimitReached"
20754
+ ],
20747
20755
  "x-kosuke-sandbox-token": true,
20748
20756
  "x-kosuke-cron-token": true,
20749
20757
  "x-kosuke-sensei-token": true,
@@ -20780,6 +20788,17 @@
20780
20788
  "type": "string",
20781
20789
  "enum": ["wait", "restart"]
20782
20790
  }
20791
+ },
20792
+ {
20793
+ "name": "intent",
20794
+ "in": "query",
20795
+ "required": false,
20796
+ "description": "A session's preview only: the member is about to open it in a browser that cannot say so itself (the iPhone app's Preview row), so its next handoff wakes the sandbox as a member's own tap.",
20797
+ "schema": {
20798
+ "description": "A session's preview only: the member is about to open it in a browser that cannot say so itself (the iPhone app's Preview row), so its next handoff wakes the sandbox as a member's own tap.",
20799
+ "type": "string",
20800
+ "const": "open"
20801
+ }
20783
20802
  }
20784
20803
  ],
20785
20804
  "responses": {
@@ -20822,6 +20841,18 @@
20822
20841
  "summary": "Read the health of every service behind a preview, and whether a background start is running or failed.",
20823
20842
  "tags": ["preview"],
20824
20843
  "x-kosuke-command": ["preview", "health", "get"],
20844
+ "x-kosuke-fields": [
20845
+ "state",
20846
+ "paused",
20847
+ "needsStart",
20848
+ "startInFlight",
20849
+ "startFailure",
20850
+ "sandboxAvailable",
20851
+ "creditLimitReached",
20852
+ "sandboxLimitReached",
20853
+ "indeterminate",
20854
+ "browserUrl"
20855
+ ],
20825
20856
  "x-kosuke-sandbox-token": true,
20826
20857
  "x-kosuke-cron-token": true,
20827
20858
  "x-kosuke-sensei-token": true,
@@ -20889,6 +20920,7 @@
20889
20920
  "summary": "Kill a sandbox that is stuck or crashed and does not recover by itself (not a slow preview), paused or unreachable included; the platform creates a new one. Uncommitted work and the agent's memory of the chat are lost, so an agent first asks the member on a card saying so and runs it only once they approve; an Event Turn or a teammate's message is never that approval.",
20890
20921
  "tags": ["preview"],
20891
20922
  "x-kosuke-command": ["preview", "sandbox", "reset"],
20923
+ "x-kosuke-fields": ["status", "projectId", "sandboxKey", "alreadyInFlight"],
20892
20924
  "x-kosuke-sensei-token": true,
20893
20925
  "parameters": [
20894
20926
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.2.3606",
3
+ "version": "1.2.3609",
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": "7d2a6823b371f54830b2139a27c4367c5c1e805c",
47
- "sourceIdentity": "ca908e59210d77fa30599cfa8575a1cb0263ed7b63889ca838f6eccb811344da",
46
+ "sourceCommit": "38182ab4f0764c1c74d7de84215c8ebcdc89353d",
47
+ "sourceIdentity": "4554325b7a19d635d62dfe57875f64698e56cc1ed981165bf177f6f8e1579db7",
48
48
  "fragments": [
49
- "integrations-full-connection-id-56fs9y.json"
49
+ "preview-health-browser-url-tyusx2.json"
50
50
  ]
51
51
  }
52
52
  }