@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/base-context-runtime/pyproject.toml +1 -1
  3. package/dist/base-context-runtime/uv.lock +1 -1
  4. package/dist/build-info.json +1 -1
  5. package/dist/bundle/{bundled-modules-UODO7ZR7.js → bundled-modules-O67MEO74.js} +2 -2
  6. package/dist/bundle/{chunk-NLRWERWA.js → chunk-DGO66I3L.js} +51 -20
  7. package/dist/bundle/{chunk-SX7CAXWU.js → chunk-RQFC34FM.js} +131 -49
  8. package/dist/bundle/{cli-main-6GXXIMQQ.js → cli-main-2RER6PBE.js} +2 -2
  9. package/dist/bundle/cli.js +1 -1
  10. package/dist/bundle/{main-HF64B4HM.js → main-YERLD3T4.js} +2 -2
  11. package/dist/core/agent-session.d.ts.map +1 -1
  12. package/dist/core/agent-session.js +36 -24
  13. package/dist/core/agent-session.js.map +1 -1
  14. package/dist/core/compaction/compaction.d.ts +1 -1
  15. package/dist/core/compaction/compaction.d.ts.map +1 -1
  16. package/dist/core/compaction/compaction.js +11 -9
  17. package/dist/core/compaction/compaction.js.map +1 -1
  18. package/dist/core/inference-coordinator.d.ts.map +1 -1
  19. package/dist/core/inference-coordinator.js +13 -2
  20. package/dist/core/inference-coordinator.js.map +1 -1
  21. package/dist/core/kernel/repl-manager.d.ts.map +1 -1
  22. package/dist/core/kernel/repl-manager.js +5 -0
  23. package/dist/core/kernel/repl-manager.js.map +1 -1
  24. package/dist/core/session-manager.d.ts +8 -0
  25. package/dist/core/session-manager.d.ts.map +1 -1
  26. package/dist/core/session-manager.js +57 -0
  27. package/dist/core/session-manager.js.map +1 -1
  28. package/dist/modes/daemon/daemon-mode.d.ts.map +1 -1
  29. package/dist/modes/daemon/daemon-mode.js +17 -17
  30. package/dist/modes/daemon/daemon-mode.js.map +1 -1
  31. package/dist/modes/daemon/daemon-worker-client.d.ts +1 -0
  32. package/dist/modes/daemon/daemon-worker-client.d.ts.map +1 -1
  33. package/dist/modes/daemon/daemon-worker-client.js +8 -0
  34. package/dist/modes/daemon/daemon-worker-client.js.map +1 -1
  35. package/dist/modes/interactive/interactive-mode.d.ts +2 -0
  36. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  37. package/dist/modes/interactive/interactive-mode.js +29 -4
  38. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  39. package/docs/upstream-1.0.15.md +83 -0
  40. 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<{