flavor-code 1.2.18 → 1.3.0

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/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import { createRequire } from "node:module"; const require = createRequire(impor
3
3
  import {
4
4
  FlavorRpcServer,
5
5
  TraceRecorder
6
- } from "./chunk-JB57IX2A.js";
6
+ } from "./chunk-IX65GYUF.js";
7
7
  import {
8
8
  staticTaskLines
9
9
  } from "./chunk-KKIBYDJI.js";
@@ -22,7 +22,7 @@ import {
22
22
  packageVersion,
23
23
  redactErrorText,
24
24
  runPalBroker
25
- } from "./chunk-STZQ3Y3P.js";
25
+ } from "./chunk-KL4UHJ2Q.js";
26
26
  import {
27
27
  McpServerConfigSchema,
28
28
  McpServerNameSchema,
@@ -861,7 +861,7 @@ async function runInteractiveCli(props) {
861
861
  const [{ render, AlternateScreen }, { createElement }, { App }] = await Promise.all([
862
862
  import("./claude-ink-ORUA7GWG.js"),
863
863
  import("react"),
864
- import("./app-YE3I7JMR.js")
864
+ import("./app-FOPTLLK5.js")
865
865
  ]);
866
866
  const instance = await render(createElement(
867
867
  AlternateScreen,
@@ -32,8 +32,32 @@ export interface ContextSnapshot {
32
32
  role: "system";
33
33
  content: string;
34
34
  };
35
+ epoch?: ContextEpochSnapshot;
36
+ visibilityLog?: ContextVisibilityRecord[];
35
37
  messages: ModelMessage[];
36
38
  }
39
+ export interface ContextVisibilityRecord {
40
+ id: string;
41
+ role: "system";
42
+ content: string;
43
+ admittedAt: string;
44
+ scope: "run";
45
+ }
46
+ export interface ContextEpochSnapshot {
47
+ version: 1;
48
+ id: string;
49
+ startedAt: string;
50
+ /** Exact byte-stable provider prefix. Never rebuilt during an epoch. */
51
+ stableMessages: ContextSystemMessage[];
52
+ /** Last admitted values for dynamic sources. */
53
+ sources: Record<string, string>;
54
+ stableSourceHash: string;
55
+ }
56
+ export interface ContextSystemMessage {
57
+ role: "system";
58
+ content: string;
59
+ cacheBreakpoint?: boolean;
60
+ }
37
61
  export interface CompactBoundary {
38
62
  summary: string;
39
63
  compactedAt: string;
@@ -54,6 +78,14 @@ export declare class ContextManager {
54
78
  append(message: ModelMessage): void;
55
79
  appendMany(messages: readonly ModelMessage[]): void;
56
80
  updateTaskState(taskState: string | undefined): void;
81
+ beginTransientSystem(content: string): string;
82
+ endTransientSystem(id: string): void;
83
+ /**
84
+ * Admit dynamic source changes at a model-call savepoint. The stable prefix
85
+ * remains byte-identical; changes become chronological, persisted system
86
+ * messages after the cache breakpoint.
87
+ */
88
+ refreshContextSources(): boolean;
57
89
  snapshot(): ContextSnapshot;
58
90
  restore(snapshot: ContextSnapshot): void;
59
91
  messagesForModel(): ModelMessage[];