flavor-code 1.4.0-beta.3 → 1.4.0-beta.5
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/agent/loop.d.ts +4 -2
- package/dist/{app-H7RYDMD3.js → app-SXNJDSI2.js} +3 -3
- package/dist/{chunk-NIKCPCJG.js → chunk-J7TLT6LR.js} +1098 -366
- package/dist/{chunk-3BHKW5A7.js → chunk-JZVC4477.js} +8 -2
- package/dist/{chunk-KBHWS7M6.js → chunk-KQMKY7C5.js} +4 -0
- package/dist/chunk-N5MXHJKD.js +107 -0
- package/dist/cli-main.js +20 -13
- package/dist/cli.js +51 -10
- package/dist/config/schema.d.ts +4 -0
- package/dist/context/manager.d.ts +9 -0
- package/dist/desktop/main.js +1442 -625
- package/dist/desktop-renderer/assets/index-nR67Z0XT.js +154 -0
- package/dist/desktop-renderer/assets/{interactive-terminal-j52Ty3QO.js → interactive-terminal-D2J4feTJ.js} +1 -1
- package/dist/desktop-renderer/index.html +1 -1
- package/dist/goal/classifier.d.ts +2 -0
- package/dist/goal/orchestrator.d.ts +23 -2
- package/dist/goal/planner.d.ts +2 -0
- package/dist/goal/store.d.ts +2 -0
- package/dist/goal/types.d.ts +14 -0
- package/dist/harness/journal.d.ts +2 -0
- package/dist/jobs/registry.d.ts +6 -0
- package/dist/{load-SLSL3IWR.js → load-F4AYLCF6.js} +1 -1
- package/dist/loop/orchestrator.d.ts +20 -0
- package/dist/loop/types.d.ts +7 -0
- package/dist/loop/verifier.d.ts +2 -0
- package/dist/production.d.ts +17 -0
- package/dist/sdk/index.js +4 -4
- package/dist/session/tree.d.ts +2 -0
- package/dist/ui/session.d.ts +11 -0
- package/dist/ui/transcript.d.ts +9 -0
- package/dist/utils/abort.d.ts +16 -0
- package/dist/utils/heap.d.ts +58 -0
- package/dist/utils/memory-restart.d.ts +42 -3
- package/dist/utils/rotation-census.d.ts +36 -0
- package/package.json +1 -1
- package/dist/chunk-CIVPKHF4.js +0 -53
- package/dist/desktop-renderer/assets/index-CYd5JkTR.js +0 -154
package/dist/agent/loop.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ContextManager } from "../context/manager.js";
|
|
|
2
2
|
import type { HallucinationGuard } from "../hallucination/guard.js";
|
|
3
3
|
import type { HookBus } from "../hooks/bus.js";
|
|
4
4
|
import type { ModelRegistry } from "../models/registry.js";
|
|
5
|
+
import { MEMORY_PRESSURE_HEAP_RATIO } from "../utils/heap.js";
|
|
5
6
|
import { type ModelMessage, type ModelTool } from "../models/types.js";
|
|
6
7
|
import type { ToolRuntime } from "../tools/runtime.js";
|
|
7
8
|
import type { AgentError, AgentEvent, AgentRunRequest } from "./types.js";
|
|
@@ -10,9 +11,10 @@ import type { AgentError, AgentEvent, AgentRunRequest } from "./types.js";
|
|
|
10
11
|
* leak otherwise ends in a native OOM crash with no recovery; tripping this
|
|
11
12
|
* watermark saves the session and lets the launcher relaunch on a fresh heap.
|
|
12
13
|
* 0.8 keeps headroom for compaction payloads and the GC death spiral that
|
|
13
|
-
* starts near ~0.95.
|
|
14
|
+
* starts near ~0.95. The reading is GC-verified: uncollected garbage alone
|
|
15
|
+
* must not stop a turn.
|
|
14
16
|
*/
|
|
15
|
-
export
|
|
17
|
+
export { MEMORY_PRESSURE_HEAP_RATIO };
|
|
16
18
|
export declare function memoryPressureError(heapUsed: number, heapLimit: number): AgentError | undefined;
|
|
17
19
|
export interface AgentLoopOptions {
|
|
18
20
|
registry: ModelRegistry;
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
thinkingWindow,
|
|
20
20
|
transcriptReducer,
|
|
21
21
|
withTimeout
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-J7TLT6LR.js";
|
|
23
|
+
import "./chunk-N5MXHJKD.js";
|
|
24
|
+
import "./chunk-KQMKY7C5.js";
|
|
25
25
|
import {
|
|
26
26
|
Box_default,
|
|
27
27
|
ClockContext,
|