@e4779/pi-fabric 0.92.17-fork.3 → 0.92.24-fork.4
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/agents/budget-ledger.d.ts.map +1 -1
- package/dist/agents/handoff-continuation.d.ts +4 -0
- package/dist/agents/handoff-continuation.d.ts.map +1 -0
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents.js +3 -3
- package/dist/chunks/{chunk-GXNR6NRU.js → chunk-2IAVP4O2.js} +2 -2
- package/dist/chunks/{chunk-2UQV52II.js → chunk-3CPWRPCE.js} +6 -6
- package/dist/chunks/{chunk-YK5AZ7CZ.js → chunk-3ZX76BVU.js} +3 -3
- package/dist/chunks/{chunk-PH7ZJ27F.js → chunk-7OH6DD3S.js} +210 -118
- package/dist/chunks/chunk-7OH6DD3S.js.map +7 -0
- package/dist/chunks/chunk-EDL4JDW7.js +184 -0
- package/dist/chunks/chunk-EDL4JDW7.js.map +7 -0
- package/dist/chunks/{chunk-RNOPHITP.js → chunk-H6DDV6E2.js} +180 -24
- package/dist/chunks/chunk-H6DDV6E2.js.map +7 -0
- package/dist/chunks/{chunk-ARLYAW2A.js → chunk-IR3PIHJM.js} +2 -1
- package/dist/chunks/chunk-IR3PIHJM.js.map +7 -0
- package/dist/chunks/{chunk-VRZNFNPB.js → chunk-IYQ5MNCW.js} +20 -17
- package/dist/chunks/chunk-IYQ5MNCW.js.map +7 -0
- package/dist/chunks/{chunk-CPSW2GW4.js → chunk-KFZYTGF5.js} +5 -5
- package/dist/chunks/{chunk-U6CTHPZC.js → chunk-MQG5QKGI.js} +2 -2
- package/dist/chunks/{chunk-CI56CW53.js → chunk-NPHCGLGH.js} +16 -10
- package/dist/chunks/chunk-NPHCGLGH.js.map +7 -0
- package/dist/chunks/{chunk-2DMJ7MEI.js → chunk-QX3TUAWO.js} +172 -141
- package/dist/chunks/chunk-QX3TUAWO.js.map +7 -0
- package/dist/chunks/chunk-RAO6TQFP.js +187 -0
- package/dist/chunks/chunk-RAO6TQFP.js.map +7 -0
- package/dist/chunks/{chunk-ZZ4LHQYJ.js → chunk-RTXZHKMS.js} +22 -13
- package/dist/chunks/chunk-RTXZHKMS.js.map +7 -0
- package/dist/chunks/{chunk-656HWVFU.js → chunk-SZUXWOO7.js} +5 -3
- package/dist/chunks/chunk-SZUXWOO7.js.map +7 -0
- package/dist/chunks/{chunk-UDFDF7IY.js → chunk-VWSXAEX6.js} +143 -54
- package/dist/chunks/chunk-VWSXAEX6.js.map +7 -0
- package/dist/chunks/{chunk-TPLMVELH.js → chunk-VYXFSUWU.js} +4 -4
- package/dist/chunks/{chunk-UTR3I23Z.js → chunk-W63E3WEO.js} +2 -2
- package/dist/chunks/{chunk-3MEHEH6B.js → chunk-X3OD47CL.js} +12 -2
- package/dist/chunks/chunk-X3OD47CL.js.map +7 -0
- package/dist/chunks/{chunk-OP2KTYQB.js → chunk-ZMIJ6AT4.js} +4 -4
- package/dist/compaction/hook.js +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.js +2 -2
- package/dist/core/auto-approval-classifier.d.ts.map +1 -1
- package/dist/core/shell-jobs.d.ts +7 -1
- package/dist/core/shell-jobs.d.ts.map +1 -1
- package/dist/entropy/compiler.d.ts +8 -0
- package/dist/entropy/compiler.d.ts.map +1 -1
- package/dist/entropy/index.js +9 -1
- package/dist/entropy/meter.d.ts +10 -0
- package/dist/entropy/meter.d.ts.map +1 -1
- package/dist/entropy/pool.d.ts +5 -0
- package/dist/entropy/pool.d.ts.map +1 -1
- package/dist/entropy/sessions.d.ts +12 -1
- package/dist/entropy/sessions.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +30 -22
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -38
- package/dist/index.js.map +3 -3
- package/dist/jev/browser.js +2 -2
- package/dist/jev/config.d.ts +2 -0
- package/dist/jev/config.d.ts.map +1 -1
- package/dist/jev/model-key.d.ts +6 -0
- package/dist/jev/model-key.d.ts.map +1 -0
- package/dist/jev/observation.js +2 -2
- package/dist/jev.js +7 -7
- package/dist/memory/file-worker.d.ts +15 -0
- package/dist/memory/file-worker.d.ts.map +1 -0
- package/dist/memory/file-worker.js +44 -0
- package/dist/memory/file-worker.js.map +7 -0
- package/dist/memory/worker-provider.d.ts +24 -0
- package/dist/memory/worker-provider.d.ts.map +1 -0
- package/dist/memory/worker-provider.js +18 -0
- package/dist/memory/worker-provider.js.map +7 -0
- package/dist/output-budget.d.ts.map +1 -1
- package/dist/prewalk/arm.d.ts.map +1 -1
- package/dist/prewalk/handoff.d.ts.map +1 -1
- package/dist/providers/jev-provider.js +6 -6
- package/dist/residency/host.js +9 -8
- package/dist/residency/pi-entry.js +9 -8
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/runtime/monty-runtime.js +3 -2
- package/dist/runtime/monty-runtime.js.map +1 -1
- package/dist/runtime/typescript-kernel.js +6 -6
- package/dist/runtime-state-builtins.d.ts.map +1 -1
- package/dist/speculation/stream-tap.d.ts.map +1 -1
- package/dist/storage/retention.d.ts +3 -1
- package/dist/storage/retention.d.ts.map +1 -1
- package/dist/storage/scratch.d.ts +33 -0
- package/dist/storage/scratch.d.ts.map +1 -0
- package/dist/ui/code-preview-shell.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +2 -2
- package/dist/ui/conversation-native-reader.js +4 -2
- package/dist/ui/conversation-native-reader.js.map +2 -2
- package/dist/ui/conversation.js +3 -3
- package/dist/ui/dashboard-presentation.d.ts.map +1 -1
- package/dist/ui/dashboard.js +13 -9
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-code-parser.d.ts.map +1 -1
- package/dist/ui/format.d.ts +1 -0
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/highlight.d.ts.map +1 -1
- package/dist/ui/settings-rpc.d.ts.map +1 -1
- package/dist/ui/settings-sections-execution.d.ts.map +1 -1
- package/dist/ui/settings-submenus.d.ts +12 -4
- package/dist/ui/settings-submenus.d.ts.map +1 -1
- package/dist/ui/settings.js +78 -31
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shiki-catalog.d.ts +3 -0
- package/dist/ui/shiki-catalog.d.ts.map +1 -0
- package/dist/ui/structured.d.ts.map +1 -1
- package/dist/ui/tool-call-timing.d.ts.map +1 -1
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/worker/model-control.d.ts.map +1 -1
- package/dist/worker/model-control.js +0 -1
- package/dist/worker/model-control.js.map +2 -2
- package/dist/worker.js +3 -9
- package/dist/worker.js.map +2 -2
- package/docs/agents.md +7 -3
- package/docs/configuration.md +19 -7
- package/docs/entropy.md +17 -1
- package/docs/jev.md +2 -2
- package/docs/memory-recall.md +21 -0
- package/package.json +5 -2
- package/skillsets/python/fabric-exec/references/agents.md +2 -0
- package/skillsets/python/fabric-jev/SKILL.md +1 -1
- package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
- package/skillsets/typescript/fabric-jev/SKILL.md +1 -1
- package/dist/chunks/chunk-2DMJ7MEI.js.map +0 -7
- package/dist/chunks/chunk-3MEHEH6B.js.map +0 -7
- package/dist/chunks/chunk-656HWVFU.js.map +0 -7
- package/dist/chunks/chunk-ARLYAW2A.js.map +0 -7
- package/dist/chunks/chunk-CI56CW53.js.map +0 -7
- package/dist/chunks/chunk-PH7ZJ27F.js.map +0 -7
- package/dist/chunks/chunk-RNOPHITP.js.map +0 -7
- package/dist/chunks/chunk-UDFDF7IY.js.map +0 -7
- package/dist/chunks/chunk-VRZNFNPB.js.map +0 -7
- package/dist/chunks/chunk-ZZ4LHQYJ.js.map +0 -7
- /package/dist/chunks/{chunk-GXNR6NRU.js.map → chunk-2IAVP4O2.js.map} +0 -0
- /package/dist/chunks/{chunk-2UQV52II.js.map → chunk-3CPWRPCE.js.map} +0 -0
- /package/dist/chunks/{chunk-YK5AZ7CZ.js.map → chunk-3ZX76BVU.js.map} +0 -0
- /package/dist/chunks/{chunk-CPSW2GW4.js.map → chunk-KFZYTGF5.js.map} +0 -0
- /package/dist/chunks/{chunk-U6CTHPZC.js.map → chunk-MQG5QKGI.js.map} +0 -0
- /package/dist/chunks/{chunk-TPLMVELH.js.map → chunk-VYXFSUWU.js.map} +0 -0
- /package/dist/chunks/{chunk-UTR3I23Z.js.map → chunk-W63E3WEO.js.map} +0 -0
- /package/dist/chunks/{chunk-OP2KTYQB.js.map → chunk-ZMIJ6AT4.js.map} +0 -0
package/dist/entropy/meter.d.ts
CHANGED
|
@@ -5,6 +5,16 @@ export interface EntropyMeterInput {
|
|
|
5
5
|
repairs?: readonly EntropyRepairRowInput[];
|
|
6
6
|
catalogDigest?: string;
|
|
7
7
|
}
|
|
8
|
+
export interface EntropyTraceWindow {
|
|
9
|
+
file: string;
|
|
10
|
+
/** Session-reader snapshots are immutable; appends retain existing trace identities. */
|
|
11
|
+
traces: readonly EntropyTraceInput[];
|
|
12
|
+
}
|
|
13
|
+
/** Bounded, session-owned cache. Never pass mutable caller-owned traces here. */
|
|
14
|
+
export declare class SessionEntropyMeter {
|
|
15
|
+
#private;
|
|
16
|
+
measure(windows: readonly EntropyTraceWindow[], input: Omit<EntropyMeterInput, "traces">): Promise<EntropyReport>;
|
|
17
|
+
}
|
|
8
18
|
export declare const measureEntropy: (input: EntropyMeterInput) => EntropyReport;
|
|
9
19
|
export declare const measureEntropyAsync: (input: EntropyMeterInput) => Promise<EntropyReport>;
|
|
10
20
|
//# sourceMappingURL=meter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meter.d.ts","sourceRoot":"","sources":["../../src/entropy/meter.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAElB,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAgBpB,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,OAAO,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"meter.d.ts","sourceRoot":"","sources":["../../src/entropy/meter.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAElB,KAAK,sBAAsB,EAE3B,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAgBpB,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACrC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,OAAO,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACtC;AA8QD,iFAAiF;AACjF,qBAAa,mBAAmB;;IAGxB,OAAO,CACX,OAAO,EAAE,SAAS,kBAAkB,EAAE,EACtC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,GACvC,OAAO,CAAC,aAAa,CAAC;CAiD1B;AAQD,eAAO,MAAM,cAAc,GAAI,OAAO,iBAAiB,KAAG,aA0BzD,CAAC;AAsBF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,iBAAiB,KACvB,OAAO,CAAC,aAAa,CAyBvB,CAAC"}
|
package/dist/entropy/pool.d.ts
CHANGED
|
@@ -36,6 +36,11 @@ export interface MergedObservationPool {
|
|
|
36
36
|
export declare const observationIdentity: (observation: EntropyValueObservation) => string;
|
|
37
37
|
export declare const observationWindowDigest: (observations: readonly EntropyValueObservation[]) => string;
|
|
38
38
|
export declare const mergeObservationWindow: (pool: EntropyObservationPoolFile | undefined, windows: readonly EntropyObservationWindow[]) => MergedObservationPool;
|
|
39
|
+
/** For immutable session-reader snapshots only; ordinary public merges stay pure. */
|
|
40
|
+
export declare class SessionObservationCache {
|
|
41
|
+
#private;
|
|
42
|
+
merge(pool: EntropyObservationPoolFile | undefined, windows: readonly EntropyObservationWindow[]): Promise<MergedObservationPool>;
|
|
43
|
+
}
|
|
39
44
|
export declare const mergeObservationWindowAsync: (pool: EntropyObservationPoolFile | undefined, windows: readonly EntropyObservationWindow[]) => Promise<MergedObservationPool>;
|
|
40
45
|
export declare const poolToValueObservations: (pool: EntropyObservationPoolFile | undefined) => EntropyValueObservation[];
|
|
41
46
|
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/entropy/pool.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AACnD,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,wBAAwB,CAAC;IACzC,OAAO,EAAE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import type { EntropyAuditCall, EntropyReport, EntropySurfaceSnapshot, EntropyTraceInput, EntropyTrend, EntropyValueObservation } from "./types.js";
|
|
2
3
|
export interface SessionCorpusEntry {
|
|
3
4
|
file: string;
|
|
@@ -27,17 +28,27 @@ export declare const measureSessionCorpus: (input: {
|
|
|
27
28
|
surface?: EntropySurfaceSnapshot;
|
|
28
29
|
catalogDigest?: string;
|
|
29
30
|
}) => SessionCorpusResult;
|
|
31
|
+
/** Background-only discovery cadence; explicit inspection continues to scan immediately. */
|
|
32
|
+
export declare class BackgroundSessionSelector {
|
|
33
|
+
#private;
|
|
34
|
+
readonly scan: (agentDir: string, cwd: string | undefined, limit?: number) => Promise<string[]>;
|
|
35
|
+
constructor(scan?: (agentDir: string, cwd: string | undefined, limit?: number) => Promise<string[]>);
|
|
36
|
+
select(agentDir: string, cwd: string | undefined, currentFile?: string): Promise<string[]>;
|
|
37
|
+
}
|
|
30
38
|
export interface SessionObservationWindow {
|
|
31
39
|
file: string;
|
|
32
40
|
observations: EntropyValueObservation[];
|
|
33
41
|
}
|
|
34
42
|
export interface SessionWindowEvidence {
|
|
43
|
+
traceWindows: EntropyTraceWindow[];
|
|
35
44
|
traces: EntropyTraceInput[];
|
|
36
45
|
valueObservations: EntropyValueObservation[];
|
|
37
46
|
auditCalls: EntropyAuditCall[];
|
|
38
47
|
observationWindows: SessionObservationWindow[];
|
|
39
48
|
}
|
|
40
|
-
export declare const sessionWindowEvidenceAsync: (files: readonly string[]
|
|
49
|
+
export declare const sessionWindowEvidenceAsync: (files: readonly string[], options?: {
|
|
50
|
+
windowsOnly?: boolean;
|
|
51
|
+
}) => Promise<SessionWindowEvidence>;
|
|
41
52
|
export declare const measureSessionCorpusAsync: (input: {
|
|
42
53
|
files: readonly string[];
|
|
43
54
|
surface?: EntropySurfaceSnapshot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/entropy/sessions.ts"],"names":[],"mappings":"
|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AC;CACxB,KAAG,OAAO,CAAC,mBAAmB,CAoB9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,SAAS,MAAM,EAAE,KACvB,qBAqBF,CAAC"}
|
|
@@ -6,6 +6,9 @@ import {
|
|
|
6
6
|
piBashExitMetadata,
|
|
7
7
|
piBashResultError
|
|
8
8
|
} from "./chunks/chunk-PAN6C3JM.js";
|
|
9
|
+
import {
|
|
10
|
+
WorkerMemoryProvider
|
|
11
|
+
} from "./chunks/chunk-EDL4JDW7.js";
|
|
9
12
|
import {
|
|
10
13
|
ResidentActorClient
|
|
11
14
|
} from "./chunks/chunk-BOTRGFQQ.js";
|
|
@@ -23,7 +26,7 @@ import {
|
|
|
23
26
|
expandSkillDirMarkersForRead,
|
|
24
27
|
resolveFabricIdentity,
|
|
25
28
|
runFabricHandoffAtBoundary
|
|
26
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-QX3TUAWO.js";
|
|
27
30
|
import {
|
|
28
31
|
AgentTranscriptReader,
|
|
29
32
|
MAX_WRITE_DIFF_BYTES,
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
ActionRegistry,
|
|
37
40
|
fabricActionListLimit,
|
|
38
41
|
repairActionName
|
|
39
|
-
} from "./chunks/chunk-
|
|
42
|
+
} from "./chunks/chunk-KFZYTGF5.js";
|
|
40
43
|
import {
|
|
41
44
|
formatFabricEffectConflict
|
|
42
45
|
} from "./chunks/chunk-LMAVZN7J.js";
|
|
@@ -44,9 +47,7 @@ import {
|
|
|
44
47
|
loadCompiledSurface,
|
|
45
48
|
withExclusiveFileLockAsync
|
|
46
49
|
} from "./chunks/chunk-3WIGAX56.js";
|
|
47
|
-
import
|
|
48
|
-
MemoryProvider
|
|
49
|
-
} from "./chunks/chunk-UQ4LTUH4.js";
|
|
50
|
+
import "./chunks/chunk-UQ4LTUH4.js";
|
|
50
51
|
import "./chunks/chunk-7A6NVHB5.js";
|
|
51
52
|
import "./chunks/chunk-U5FYOMG5.js";
|
|
52
53
|
import "./chunks/chunk-MGDLRV2R.js";
|
|
@@ -71,8 +72,12 @@ import {
|
|
|
71
72
|
ApprovalController,
|
|
72
73
|
FabricAutoApprovalClassifier,
|
|
73
74
|
FabricSessionApprovals
|
|
74
|
-
} from "./chunks/chunk-
|
|
75
|
+
} from "./chunks/chunk-NPHCGLGH.js";
|
|
75
76
|
import "./chunks/chunk-XB3RJVT4.js";
|
|
77
|
+
import {
|
|
78
|
+
runAbortable,
|
|
79
|
+
throwIfAborted
|
|
80
|
+
} from "./chunks/chunk-7TB7NXSL.js";
|
|
76
81
|
import {
|
|
77
82
|
clearActiveCompiledSurface,
|
|
78
83
|
clearActiveRepairCompiler,
|
|
@@ -80,10 +85,6 @@ import {
|
|
|
80
85
|
setActiveRepairCompiler,
|
|
81
86
|
validationMessage
|
|
82
87
|
} from "./chunks/chunk-PSNXUZMY.js";
|
|
83
|
-
import {
|
|
84
|
-
runAbortable,
|
|
85
|
-
throwIfAborted
|
|
86
|
-
} from "./chunks/chunk-7TB7NXSL.js";
|
|
87
88
|
import {
|
|
88
89
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
89
90
|
FABRIC_PROVIDER_DISCOVER_EVENT,
|
|
@@ -111,14 +112,14 @@ import {
|
|
|
111
112
|
resolveInheritedSessionPins,
|
|
112
113
|
resolvePiBinary,
|
|
113
114
|
withInheritedSessionPins
|
|
114
|
-
} from "./chunks/chunk-
|
|
115
|
+
} from "./chunks/chunk-7OH6DD3S.js";
|
|
115
116
|
import {
|
|
116
117
|
executeFile,
|
|
117
118
|
processIsAlive,
|
|
118
119
|
spawnDetached
|
|
119
120
|
} from "./chunks/chunk-X7G62ZGH.js";
|
|
120
|
-
import "./chunks/chunk-PM5I335G.js";
|
|
121
121
|
import "./chunks/chunk-VPPIJRNZ.js";
|
|
122
|
+
import "./chunks/chunk-PM5I335G.js";
|
|
122
123
|
import {
|
|
123
124
|
RESIDENT_HOST_FORMAT,
|
|
124
125
|
residentDeliveryPrefix,
|
|
@@ -127,10 +128,13 @@ import {
|
|
|
127
128
|
} from "./chunks/chunk-TSRKCXNI.js";
|
|
128
129
|
import {
|
|
129
130
|
checkedHandoffCompaction
|
|
130
|
-
} from "./chunks/chunk-
|
|
131
|
+
} from "./chunks/chunk-2IAVP4O2.js";
|
|
131
132
|
import {
|
|
132
133
|
resolveAgentDir
|
|
133
134
|
} from "./chunks/chunk-PXAICAUT.js";
|
|
135
|
+
import {
|
|
136
|
+
readJsonlPage
|
|
137
|
+
} from "./chunks/chunk-CGPK5WHX.js";
|
|
134
138
|
import {
|
|
135
139
|
DEFAULT_FABRIC_CONFIG,
|
|
136
140
|
DEFAULT_SHELL_HANG_MS,
|
|
@@ -145,15 +149,13 @@ import {
|
|
|
145
149
|
resolveAvailablePiModel,
|
|
146
150
|
resolveFabricModel,
|
|
147
151
|
trackShellOperations
|
|
148
|
-
} from "./chunks/chunk-
|
|
149
|
-
import {
|
|
150
|
-
readJsonlPage
|
|
151
|
-
} from "./chunks/chunk-CGPK5WHX.js";
|
|
152
|
+
} from "./chunks/chunk-VWSXAEX6.js";
|
|
152
153
|
import "./chunks/chunk-OKOHRXGF.js";
|
|
154
|
+
import "./chunks/chunk-RAO6TQFP.js";
|
|
153
155
|
import {
|
|
154
156
|
fabricExecTitleHintCached
|
|
155
|
-
} from "./chunks/chunk-
|
|
156
|
-
import "./chunks/chunk-
|
|
157
|
+
} from "./chunks/chunk-MQG5QKGI.js";
|
|
158
|
+
import "./chunks/chunk-SZUXWOO7.js";
|
|
157
159
|
import {
|
|
158
160
|
writeJsonAtomic,
|
|
159
161
|
writeJsonAtomicAsync
|
|
@@ -178,7 +180,7 @@ import {
|
|
|
178
180
|
compactionRequestBoundsError,
|
|
179
181
|
encodeCompactionRequest
|
|
180
182
|
} from "./chunks/chunk-3H7SDWZI.js";
|
|
181
|
-
import "./chunks/chunk-
|
|
183
|
+
import "./chunks/chunk-X3OD47CL.js";
|
|
182
184
|
import {
|
|
183
185
|
FabricExecutionTraceRecorder,
|
|
184
186
|
FabricTraceSafeError,
|
|
@@ -4138,6 +4140,7 @@ var toolCallBlock = (partial, contentIndex) => {
|
|
|
4138
4140
|
};
|
|
4139
4141
|
};
|
|
4140
4142
|
var PARSE_INTERVAL_MS = 50;
|
|
4143
|
+
var EAGER_PARSE_CHARS = 1024;
|
|
4141
4144
|
var FabricSpeculationStreamTap = class {
|
|
4142
4145
|
#options;
|
|
4143
4146
|
#streams = /* @__PURE__ */ new Map();
|
|
@@ -4162,6 +4165,7 @@ var FabricSpeculationStreamTap = class {
|
|
|
4162
4165
|
const code = stream.extractor.code;
|
|
4163
4166
|
if (!stream.isFabricExec || code === void 0) continue;
|
|
4164
4167
|
try {
|
|
4168
|
+
stream.scannedLength = code.length;
|
|
4165
4169
|
for (const candidate of stream.scanner.push(code)) {
|
|
4166
4170
|
if (this.#options.isEligible(candidate.ref)) {
|
|
4167
4171
|
this.#pendingCatchUp.push({ stream, candidate });
|
|
@@ -4203,6 +4207,7 @@ var FabricSpeculationStreamTap = class {
|
|
|
4203
4207
|
toolCallId: block.id ?? `index-${assistantEvent.contentIndex}`,
|
|
4204
4208
|
isFabricExec: block.name !== void 0 ? block.name === "fabric_exec" : true,
|
|
4205
4209
|
extractor: new PartialCodeFieldExtractor(this.#options.maxBufferBytes()),
|
|
4210
|
+
scannedLength: 0,
|
|
4206
4211
|
...this.#createScanner ? { scanner: this.#createScanner() } : {}
|
|
4207
4212
|
});
|
|
4208
4213
|
return;
|
|
@@ -4213,6 +4218,7 @@ var FabricSpeculationStreamTap = class {
|
|
|
4213
4218
|
const block = toolCallBlock(assistantEvent.partial, assistantEvent.contentIndex);
|
|
4214
4219
|
if (block.id) stream.toolCallId = block.id;
|
|
4215
4220
|
if (block.name !== void 0) stream.isFabricExec = block.name === "fabric_exec";
|
|
4221
|
+
if (!stream.isFabricExec) return;
|
|
4216
4222
|
stream.extractor.push(assistantEvent.delta);
|
|
4217
4223
|
const code = stream.extractor.code;
|
|
4218
4224
|
if (!stream.isFabricExec || code === void 0) return;
|
|
@@ -4237,8 +4243,10 @@ var FabricSpeculationStreamTap = class {
|
|
|
4237
4243
|
#scan(stream, code, context, force) {
|
|
4238
4244
|
const now = Date.now();
|
|
4239
4245
|
if (!force && now - this.#lastParseAt < PARSE_INTERVAL_MS) return;
|
|
4240
|
-
this.#lastParseAt = now;
|
|
4241
4246
|
if (!stream.scanner) return;
|
|
4247
|
+
if (!force && stream.scannedLength >= EAGER_PARSE_CHARS && code.length >= stream.scannedLength && code.length < Math.ceil(stream.scannedLength * 1.25)) return;
|
|
4248
|
+
this.#lastParseAt = now;
|
|
4249
|
+
stream.scannedLength = code.length;
|
|
4242
4250
|
const candidates = stream.scanner.push(code);
|
|
4243
4251
|
for (const candidate of candidates) {
|
|
4244
4252
|
if (this.#options.isEligible(candidate.ref)) {
|
|
@@ -9625,7 +9633,7 @@ var RuntimeStateBuiltins = class {
|
|
|
9625
9633
|
await this.install(createProviderComponent({
|
|
9626
9634
|
provider: "memory",
|
|
9627
9635
|
description: "Session memory index and source hydration",
|
|
9628
|
-
create: () => new
|
|
9636
|
+
create: () => new WorkerMemoryProvider(memoryContext)
|
|
9629
9637
|
}));
|
|
9630
9638
|
} else {
|
|
9631
9639
|
this.registry.markUnavailable(
|