@kosuke-ai/kosuke 1.0.116 → 1.0.118

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.118
4
+
5
+ - `kosuke models list` marks a model that reads no images with `textOnly: true`, so a caller knows not to attach pictures to it.
6
+
7
+ ## 1.0.117
8
+
9
+ - `agent summary` no longer hangs when reading your timezone takes too long: the three-second limit on that read now always fires, and the header falls back to UTC as intended.
10
+
3
11
  ## 1.0.116
4
12
 
5
13
  - The sandbox runtime behind the CLI now uses Anthropic SDK 1.6.0, Codex 0.167.0 and Fastify 5.12.8, with the Codex protocol types regenerated for 0.167.0. The CLI's commands and options are unchanged.
@@ -1,6 +1,7 @@
1
1
  import { providers } from '../generated/providers.js';
2
2
  import { readOverview } from '../integrations/api.js';
3
3
  import { createApiClient } from '../runtime/client.js';
4
+ import { deadline } from '../runtime/deadline.js';
4
5
  import { isTurnToken } from '../runtime/credentials.js';
5
6
  import { localStamp, readMemberTimeZone, } from '../runtime/member-time-zone.js';
6
7
  import { HttpError, paginationTotal } from './http.js';
@@ -22,16 +23,6 @@ const PROVIDERS_TIMEOUT_MS = 4000;
22
23
  * platform must cost the digest this section, never the digest.
23
24
  */
24
25
  const INTEGRATIONS_TIMEOUT_MS = 3000;
25
- /**
26
- * `AbortSignal.timeout(ms)` on an ordinary timer: the same TimeoutError reason, and unref'd, so it
27
- * never holds the process open. The timer, not a weak reference, keeps the signal alive until it
28
- * fires, and the clock it runs on is the one a test can fake.
29
- */
30
- function deadline(ms) {
31
- const controller = new AbortController();
32
- setTimeout(() => controller.abort(new DOMException('The operation timed out.', 'TimeoutError')), ms).unref();
33
- return controller.signal;
34
- }
35
26
  /** Connections listed before "and N more"; a member's own seven fit. */
36
27
  const INTEGRATIONS_SHOWN = 8;
37
28
  /** However much room is left: past this, the digest stops being a glance. */
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "models",
6
6
  "list"
7
7
  ],
8
- "summary": "List the models a chat session can start with: value is what --model takes (such as anthropic:opus__xhigh), with its provider, model, reasoning, speed and label. speed is null at standard speed, or a paid tier, fast or ultrafast (openai:gpt-6-astra__high__fast). Retired models carry legacy true. The whole catalog, whichever providers you can run.",
8
+ "summary": "List the models a chat session can start with: value is what --model takes (such as anthropic:opus__xhigh), with its provider, model, reasoning, speed and label. speed is null at standard speed, or a paid tier, fast or ultrafast (openai:gpt-6-astra__high__fast). Retired models carry legacy true; models that read text only, and so take no images, carry textOnly true. The whole catalog, whichever providers you can run.",
9
9
  "pathParams": [],
10
10
  "query": [],
11
11
  "body": null,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `AbortSignal.timeout(ms)` on an ordinary timer: the same TimeoutError reason, and unref'd, so it
3
+ * never holds the process open. The timer, not a weak reference, keeps the signal alive until it
4
+ * fires (Node's own timeout signal can be collected, and never fire, while a request still waits on
5
+ * it), and the clock it runs on is the one a test can fake.
6
+ */
7
+ export function deadline(ms) {
8
+ const controller = new AbortController();
9
+ setTimeout(() => controller.abort(new DOMException('The operation timed out.', 'TimeoutError')), ms).unref();
10
+ return controller.signal;
11
+ }
@@ -1,3 +1,4 @@
1
+ import { deadline } from './deadline.js';
1
2
  import { buildRequest } from './invoke.js';
2
3
  /**
3
4
  * The member's own timezone, for the few places the CLI prints time for a person to read:
@@ -23,7 +24,7 @@ function knownZone(zone) {
23
24
  */
24
25
  export async function readMemberTimeZone(client, signal) {
25
26
  try {
26
- const timeout = AbortSignal.timeout(MEMBER_TIME_ZONE_TIMEOUT_MS);
27
+ const timeout = deadline(MEMBER_TIME_ZONE_TIMEOUT_MS);
27
28
  const { data, response } = await client.GET('/api/user/settings', {
28
29
  signal: signal ? AbortSignal.any([signal, timeout]) : timeout,
29
30
  });
package/openapi.json CHANGED
@@ -2986,7 +2986,7 @@
2986
2986
  "/api/models": {
2987
2987
  "get": {
2988
2988
  "operationId": "modelsList",
2989
- "summary": "List the models a chat session can start with: value is what --model takes (such as anthropic:opus__xhigh), with its provider, model, reasoning, speed and label. speed is null at standard speed, or a paid tier, fast or ultrafast (openai:gpt-6-astra__high__fast). Retired models carry legacy true. The whole catalog, whichever providers you can run.",
2989
+ "summary": "List the models a chat session can start with: value is what --model takes (such as anthropic:opus__xhigh), with its provider, model, reasoning, speed and label. speed is null at standard speed, or a paid tier, fast or ultrafast (openai:gpt-6-astra__high__fast). Retired models carry legacy true; models that read text only, and so take no images, carry textOnly true. The whole catalog, whichever providers you can run.",
2990
2990
  "tags": ["models"],
2991
2991
  "x-kosuke-command": ["models", "list"],
2992
2992
  "x-kosuke-sandbox-token": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.116",
3
+ "version": "1.0.118",
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": "55986d303499b537bec33634a217ffdf3c467fb7",
47
- "sourceIdentity": "25841ca876aded31b8a1dbf65b81f684ce25c8f33d0915efdc71822154dfefc4",
46
+ "sourceCommit": "cdc6793d0c42d37428411e2a90fc61562adf70c5",
47
+ "sourceIdentity": "fca2ff769fc0da169df983c9a42bba3339c7a6077423e19ce05dd02e37aeb5ee",
48
48
  "fragments": [
49
- "ksb-cli-deps-sdk-codex-fastify-54415c.json"
49
+ "models-list-text-only-rhqrs8.json"
50
50
  ]
51
51
  }
52
52
  }