@kosuke-ai/kosuke 1.0.115 → 1.0.117
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/agent/summary.js +1 -10
- package/dist/runtime/deadline.js +11 -0
- package/dist/runtime/member-time-zone.js +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.117
|
|
4
|
+
|
|
5
|
+
- `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.
|
|
6
|
+
|
|
7
|
+
## 1.0.116
|
|
8
|
+
|
|
9
|
+
- 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.
|
|
10
|
+
|
|
3
11
|
## 1.0.115
|
|
4
12
|
|
|
5
13
|
- `kosuke sensei cards set` and `kosuke sensei cards schema` say the daily report's `archive-sessions-<date>` card may ask a question of up to 4 options, one per session to archive.
|
package/dist/agent/summary.js
CHANGED
|
@@ -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. */
|
|
@@ -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 =
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.117",
|
|
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": "46e2991f6831a95e9d691aa05e2eb9a465130932",
|
|
47
|
+
"sourceIdentity": "9f41eee789d408e2bf54ba81bcbf18cfcda851007f5466d7b46464da65328832",
|
|
48
48
|
"fragments": [
|
|
49
|
-
"
|
|
49
|
+
"member-time-zone-deadline-timer-r8k3.json"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|