flavor-code 1.2.20 → 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/README.md +15 -10
- package/README.zh-CN.md +15 -10
- package/dist/agent/loop.d.ts +11 -1
- package/dist/{app-5D5RSGQX.js → app-FOPTLLK5.js} +1 -1
- package/dist/{chunk-A7PMQ22O.js → chunk-IX65GYUF.js} +1 -1
- package/dist/{chunk-AXLUVJKC.js → chunk-KL4UHJ2Q.js} +1718 -761
- package/dist/cli.js +3 -3
- package/dist/context/manager.d.ts +32 -0
- package/dist/desktop/main.js +2253 -1296
- package/dist/goal/classifier.d.ts +2 -2
- package/dist/goal/orchestrator.d.ts +2 -1
- package/dist/goal/types.d.ts +33 -0
- package/dist/harness/invariants.d.ts +4 -0
- package/dist/harness/journal.d.ts +109 -0
- package/dist/harness/local.d.ts +6 -2
- package/dist/permissions/engine.d.ts +2 -0
- package/dist/permissions/policy.d.ts +38 -0
- package/dist/plugins/types.d.ts +22 -2
- package/dist/production.d.ts +3 -0
- package/dist/sdk/index.js +2 -2
- package/dist/session/store.d.ts +30 -2
- package/dist/tools/runtime.d.ts +5 -0
- package/dist/tools/types.d.ts +3 -0
- package/dist/ui/session.d.ts +11 -0
- package/package.json +3 -2
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-
|
|
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-
|
|
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-
|
|
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[];
|