@theokit/sdk 4.16.2 → 4.16.4
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 +12 -0
- package/dist/cron.cjs +250 -147
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +251 -148
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +250 -147
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +251 -148
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +246 -147
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +246 -147
- package/dist/index.js.map +1 -1
- package/dist/internal/session/agent-session.d.ts +12 -0
- package/dist/provider-catalog.json +493 -144
- package/package.json +1 -1
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import type { SessionMessage } from "./session-types.js";
|
|
2
2
|
export declare function getSessionMessages(agentId: string): SessionMessage[];
|
|
3
3
|
export declare function clearSession(agentId: string): void;
|
|
4
|
+
/**
|
|
5
|
+
* M50 review F1 — drop BOTH the message cache and the hydration marker so the NEXT send re-hydrates
|
|
6
|
+
* from disk. Without this, a compaction only helps after a process restart: the live process keeps
|
|
7
|
+
* sending the full pre-compact history (the cache is read synchronously by every send).
|
|
8
|
+
*/
|
|
9
|
+
export declare function invalidateSessionCache(cwd: string, agentId: string): void;
|
|
10
|
+
/**
|
|
11
|
+
* M50 review F5 — run `fn` serialized on the SAME per-(cwd,agentId) write chain the per-turn
|
|
12
|
+
* persistence uses, so a manual `Agent.compact` can never interleave with an in-flight turn's
|
|
13
|
+
* writes (boundary landing mid-turn would orphan the turn from the replay).
|
|
14
|
+
*/
|
|
15
|
+
export declare function enqueueSessionWrite<T>(cwd: string, agentId: string, fn: () => Promise<T>): Promise<T>;
|