@ponythewhite/base-context 1.0.14 → 1.0.15
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 +9 -0
- package/dist/base-context-runtime/pyproject.toml +1 -1
- package/dist/base-context-runtime/uv.lock +1 -1
- package/dist/build-info.json +1 -1
- package/dist/bundle/{bundled-modules-UODO7ZR7.js → bundled-modules-O67MEO74.js} +2 -2
- package/dist/bundle/{chunk-NLRWERWA.js → chunk-DGO66I3L.js} +51 -20
- package/dist/bundle/{chunk-SX7CAXWU.js → chunk-RQFC34FM.js} +131 -49
- package/dist/bundle/{cli-main-6GXXIMQQ.js → cli-main-2RER6PBE.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-HF64B4HM.js → main-YERLD3T4.js} +2 -2
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +36 -24
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +1 -1
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +11 -9
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/inference-coordinator.d.ts.map +1 -1
- package/dist/core/inference-coordinator.js +13 -2
- package/dist/core/inference-coordinator.js.map +1 -1
- package/dist/core/kernel/repl-manager.d.ts.map +1 -1
- package/dist/core/kernel/repl-manager.js +5 -0
- package/dist/core/kernel/repl-manager.js.map +1 -1
- package/dist/core/session-manager.d.ts +8 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +57 -0
- package/dist/core/session-manager.js.map +1 -1
- package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-mode.js +17 -17
- package/dist/modes/daemon/daemon-mode.js.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.d.ts +1 -0
- package/dist/modes/daemon/daemon-worker-client.d.ts.map +1 -1
- package/dist/modes/daemon/daemon-worker-client.js +8 -0
- package/dist/modes/daemon/daemon-worker-client.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +2 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +29 -4
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/docs/upstream-1.0.15.md +83 -0
- package/package.json +4 -4
|
@@ -34,6 +34,12 @@ export interface SessionHeader {
|
|
|
34
34
|
rlmDepth?: number;
|
|
35
35
|
git?: GitContext;
|
|
36
36
|
}
|
|
37
|
+
/** Bounded source entries for a compiled view, with exact chronological suffix membership. */
|
|
38
|
+
export interface CompactionSourceEntries {
|
|
39
|
+
entries: SessionEntry[];
|
|
40
|
+
suffixAnchors: ReadonlySet<string>;
|
|
41
|
+
leafKind?: string;
|
|
42
|
+
}
|
|
37
43
|
/** One captured branch for summary input, physical requests, and the queued compaction commit. */
|
|
38
44
|
export interface BoundCompactionSink extends BoundSessionRequestSink {
|
|
39
45
|
/** Original ownership and compaction input, including this sink's own acknowledged checkpoint. */
|
|
@@ -41,6 +47,7 @@ export interface BoundCompactionSink extends BoundSessionRequestSink {
|
|
|
41
47
|
/** Internal explicit-copy read on this same held source, never a provider-view capability. */
|
|
42
48
|
[readCopiedEpochSource]<T>(read: (history: SessionHistoryReadScope) => Promise<T>): Promise<T>;
|
|
43
49
|
readBranch(): Promise<SessionEntry[]>;
|
|
50
|
+
readCompactionEntries(entryIds: readonly string[]): Promise<CompactionSourceEntries>;
|
|
44
51
|
[appendContextEpoch](checkpoint: ContextEpochCheckpoint, tokensBefore: number | null, summary?: ContextEpochSummary, requestOutputSource?: object): Promise<string>;
|
|
45
52
|
appendCompaction<T = unknown>(summary: string, firstKeptEntryId: string, tokensBefore: number | null, details?: T, fromHook?: boolean, customInstructions?: string, usage?: Usage, requestOutputSource?: object): Promise<string>;
|
|
46
53
|
}
|
|
@@ -441,6 +448,7 @@ export declare class SessionManager {
|
|
|
441
448
|
readEntryRetention(id: string): Promise<JournalFrameRetention | undefined>;
|
|
442
449
|
readLabel(id: string, maxSourceBytes?: number): Promise<string | undefined>;
|
|
443
450
|
readEntries(limits?: SessionHistoryReadLimits): Promise<SessionEntry[]>;
|
|
451
|
+
private _readCompactionEntriesAt;
|
|
444
452
|
private _readBranchesAt;
|
|
445
453
|
private _residentParentPath;
|
|
446
454
|
readBranches(leafIds: readonly (string | null)[], limits?: SessionHistoryReadLimits): Promise<{
|