@e4779/pi-fabric 0.92.17-fork.3 → 0.92.28-fork.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/actors/host-event-payload.d.ts.map +1 -1
- 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/request.d.ts +4 -0
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents.js +5 -4
- package/dist/agents.js.map +1 -1
- package/dist/chunks/{chunk-GXNR6NRU.js → chunk-2IAVP4O2.js} +2 -2
- package/dist/chunks/{chunk-TPLMVELH.js → chunk-77PDIBK2.js} +15 -4
- package/dist/chunks/{chunk-TPLMVELH.js.map → chunk-77PDIBK2.js.map} +2 -2
- package/dist/chunks/chunk-7TX532EG.js +134 -0
- package/dist/chunks/chunk-7TX532EG.js.map +7 -0
- package/dist/chunks/chunk-BJOJX2UW.js +59 -0
- package/dist/chunks/chunk-BJOJX2UW.js.map +7 -0
- package/dist/chunks/{chunk-2PZWDVJB.js → chunk-BYOGRJME.js} +13 -4
- package/dist/chunks/chunk-BYOGRJME.js.map +7 -0
- package/dist/chunks/{chunk-RERA6YWA.js → chunk-CIODQX77.js} +12 -4
- package/dist/chunks/chunk-CIODQX77.js.map +7 -0
- package/dist/chunks/{chunk-OP2KTYQB.js → chunk-D6YSBP3R.js} +4 -4
- package/dist/chunks/chunk-EDL4JDW7.js +184 -0
- package/dist/chunks/chunk-EDL4JDW7.js.map +7 -0
- package/dist/chunks/{chunk-WVH324VF.js → chunk-FAMBJFFF.js} +1 -1
- package/dist/chunks/{chunk-WVH324VF.js.map → chunk-FAMBJFFF.js.map} +1 -1
- package/dist/chunks/{chunk-UDFDF7IY.js → chunk-G7UJLM33.js} +148 -251
- package/dist/chunks/chunk-G7UJLM33.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-JNMTTJMQ.js +50 -0
- package/dist/chunks/chunk-JNMTTJMQ.js.map +7 -0
- package/dist/chunks/{chunk-CPSW2GW4.js → chunk-JOEFBOFN.js} +11 -7
- package/dist/chunks/chunk-JOEFBOFN.js.map +7 -0
- package/dist/chunks/chunk-KI277YNS.js +218 -0
- package/dist/chunks/chunk-KI277YNS.js.map +7 -0
- package/dist/chunks/{chunk-Y7KNRAFL.js → chunk-M3ZNZ6EZ.js} +28 -3
- package/dist/chunks/chunk-M3ZNZ6EZ.js.map +7 -0
- package/dist/chunks/{chunk-2DMJ7MEI.js → chunk-M7W57BRC.js} +172 -141
- package/dist/chunks/chunk-M7W57BRC.js.map +7 -0
- 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-4SSMGBF4.js → chunk-QLV2IZ3F.js} +6 -7
- package/dist/chunks/chunk-QLV2IZ3F.js.map +7 -0
- package/dist/chunks/{chunk-PH7ZJ27F.js → chunk-RAEGNBRA.js} +210 -118
- package/dist/chunks/chunk-RAEGNBRA.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-BOTRGFQQ.js → chunk-RWDKJ24D.js} +26 -19
- package/dist/chunks/chunk-RWDKJ24D.js.map +7 -0
- package/dist/chunks/{chunk-2UQV52II.js → chunk-RZKN534S.js} +6 -6
- package/dist/chunks/{chunk-656HWVFU.js → chunk-SZUXWOO7.js} +5 -3
- package/dist/chunks/chunk-SZUXWOO7.js.map +7 -0
- package/dist/chunks/{chunk-YK5AZ7CZ.js → chunk-ULLIZPBH.js} +7 -7
- package/dist/chunks/{chunk-UTR3I23Z.js → chunk-W63E3WEO.js} +2 -2
- package/dist/chunks/{chunk-32BNQ75J.js → chunk-WG24VI7K.js} +56 -2
- package/dist/chunks/{chunk-32BNQ75J.js.map → chunk-WG24VI7K.js.map} +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-4JETKRFE.js → chunk-ZHJNWM6A.js} +2 -2
- package/dist/compaction/hook.js +2 -2
- package/dist/components/configuration.d.ts +42 -0
- package/dist/components/configuration.d.ts.map +1 -0
- package/dist/components/configuration.js +18 -0
- package/dist/components/configuration.js.map +7 -0
- package/dist/components/control.d.ts +76 -0
- package/dist/components/control.d.ts.map +1 -0
- package/dist/components/loader.d.ts +12 -0
- package/dist/components/loader.d.ts.map +1 -1
- package/dist/components/supervisor.d.ts.map +1 -1
- package/dist/components/types.d.ts +2 -0
- package/dist/components/types.d.ts.map +1 -1
- package/dist/components/validation.d.ts +6 -0
- package/dist/components/validation.d.ts.map +1 -0
- package/dist/config.d.ts +4 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.d.ts +1 -0
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +3 -3
- package/dist/core/auto-approval-classifier.d.ts.map +1 -1
- package/dist/core/media-sanitize.d.ts +45 -0
- package/dist/core/media-sanitize.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +20 -3
- package/dist/core/model-resolution.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/execution-service.d.ts +3 -1
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +424 -65
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +130 -51
- package/dist/index.js.map +3 -3
- package/dist/jev/browser.d.ts.map +1 -1
- 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 +3 -2
- package/dist/jev.js +8 -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/protocol.d.ts +1 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -1
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/captured-tools-provider.d.ts.map +1 -1
- package/dist/providers/components-provider.d.ts +5 -3
- package/dist/providers/components-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.js +7 -6
- package/dist/residency/actor-client.d.ts +2 -2
- package/dist/residency/actor-client.d.ts.map +1 -1
- package/dist/residency/actor-client.js +2 -2
- package/dist/residency/client.d.ts.map +1 -1
- package/dist/residency/host.js +11 -9
- package/dist/residency/pi-entry.js +11 -9
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/residency/protocol.d.ts +11 -2
- package/dist/residency/protocol.d.ts.map +1 -1
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/guest-types.d.ts +1 -1
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/monty-runtime.js +4 -2
- package/dist/runtime/monty-runtime.js.map +1 -1
- package/dist/runtime/node-process-runtime.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.js +2 -2
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +1 -1
- package/dist/runtime/typescript-kernel.js +6 -6
- package/dist/runtime-state-builtins.d.ts.map +1 -1
- package/dist/schema/policy.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/controller.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 +79 -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 +12 -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 +14 -12
- package/dist/worker.js.map +2 -2
- package/docs/agents.md +7 -3
- package/docs/architecture.md +1 -1
- package/docs/components.md +30 -1
- package/docs/configuration.md +24 -10
- package/docs/entropy.md +17 -1
- package/docs/jev.md +68 -3
- 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/SKILL.md +5 -1
- package/skillsets/typescript/fabric-exec/references/agents.md +4 -0
- package/skillsets/typescript/fabric-jev/SKILL.md +1 -1
- package/dist/chunks/chunk-2DMJ7MEI.js.map +0 -7
- package/dist/chunks/chunk-2PZWDVJB.js.map +0 -7
- package/dist/chunks/chunk-3MEHEH6B.js.map +0 -7
- package/dist/chunks/chunk-4SSMGBF4.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-BOTRGFQQ.js.map +0 -7
- package/dist/chunks/chunk-CI56CW53.js.map +0 -7
- package/dist/chunks/chunk-CPSW2GW4.js.map +0 -7
- package/dist/chunks/chunk-PH7ZJ27F.js.map +0 -7
- package/dist/chunks/chunk-RERA6YWA.js.map +0 -7
- package/dist/chunks/chunk-RNOPHITP.js.map +0 -7
- package/dist/chunks/chunk-TSRKCXNI.js +0 -17
- package/dist/chunks/chunk-TSRKCXNI.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-Y7KNRAFL.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-OP2KTYQB.js.map → chunk-D6YSBP3R.js.map} +0 -0
- /package/dist/chunks/{chunk-U6CTHPZC.js.map → chunk-MQG5QKGI.js.map} +0 -0
- /package/dist/chunks/{chunk-2UQV52II.js.map → chunk-RZKN534S.js.map} +0 -0
- /package/dist/chunks/{chunk-YK5AZ7CZ.js.map → chunk-ULLIZPBH.js.map} +0 -0
- /package/dist/chunks/{chunk-UTR3I23Z.js.map → chunk-W63E3WEO.js.map} +0 -0
- /package/dist/chunks/{chunk-4JETKRFE.js.map → chunk-ZHJNWM6A.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabric-state.d.ts","sourceRoot":"","sources":["../src/fabric-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAK3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,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.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,iCAAiC,CAAC;AA2JzC,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,YAAY,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,wBAA8B,QAAQ,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,wBAAwB,CAAA;CAAO,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EAEb,MAAM,iCAAiC,CAAC;AA2JzC,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,YAAY,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAElE,wBAA8B,QAAQ,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,wBAAwB,CAAA;CAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CA8vBhI;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
repairFabricGuestCode
|
|
3
|
-
} from "./chunks/chunk-VXZZJ44D.js";
|
|
4
1
|
import {
|
|
5
2
|
arcItemStyled,
|
|
6
3
|
captureFabricAgentPreviews,
|
|
@@ -32,12 +29,12 @@ import {
|
|
|
32
29
|
singleCallProgressLine,
|
|
33
30
|
spinnerFrame,
|
|
34
31
|
updateSpinner
|
|
35
|
-
} from "./chunks/chunk-
|
|
32
|
+
} from "./chunks/chunk-IYQ5MNCW.js";
|
|
36
33
|
import {
|
|
37
34
|
configureHighlighting,
|
|
38
35
|
highlightCode,
|
|
39
36
|
observePiTheme
|
|
40
|
-
} from "./chunks/chunk-
|
|
37
|
+
} from "./chunks/chunk-RTXZHKMS.js";
|
|
41
38
|
import {
|
|
42
39
|
activeStatuses,
|
|
43
40
|
isActiveStatus,
|
|
@@ -48,11 +45,10 @@ import {
|
|
|
48
45
|
formatDuration,
|
|
49
46
|
formatTokens,
|
|
50
47
|
safeText
|
|
51
|
-
} from "./chunks/chunk-
|
|
48
|
+
} from "./chunks/chunk-IR3PIHJM.js";
|
|
52
49
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} from "./chunks/chunk-32BNQ75J.js";
|
|
50
|
+
repairFabricGuestCode
|
|
51
|
+
} from "./chunks/chunk-VXZZJ44D.js";
|
|
56
52
|
import {
|
|
57
53
|
CapturedToolCatalog,
|
|
58
54
|
FABRIC_COMPONENT_PROVIDER_NAMES,
|
|
@@ -73,24 +69,32 @@ import {
|
|
|
73
69
|
restoreBorrowedInPlaceMain,
|
|
74
70
|
settleInPlacePrewalk,
|
|
75
71
|
withTrajectoryRearmDirective
|
|
76
|
-
} from "./chunks/chunk-
|
|
72
|
+
} from "./chunks/chunk-M7W57BRC.js";
|
|
77
73
|
import {
|
|
78
74
|
AgentTranscriptReader,
|
|
79
75
|
countNewlines,
|
|
80
76
|
truncateMiddle
|
|
81
77
|
} from "./chunks/chunk-J2HV2URQ.js";
|
|
82
78
|
import "./chunks/chunk-DLXPTBPL.js";
|
|
79
|
+
import {
|
|
80
|
+
GUEST_TYPE_DECLARATIONS,
|
|
81
|
+
PI_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES
|
|
82
|
+
} from "./chunks/chunk-WG24VI7K.js";
|
|
83
83
|
import {
|
|
84
84
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
85
|
-
} from "./chunks/chunk-
|
|
85
|
+
} from "./chunks/chunk-JOEFBOFN.js";
|
|
86
86
|
import "./chunks/chunk-LMAVZN7J.js";
|
|
87
87
|
import {
|
|
88
88
|
AUTO_APPLY_PROPOSAL_KINDS,
|
|
89
|
+
BackgroundEntropyCompiler,
|
|
90
|
+
BackgroundSessionSelector,
|
|
89
91
|
ENTROPY_ENUM_CANDIDATE_ANNOTATION,
|
|
90
92
|
OBSERVATION_POOL_VERSION,
|
|
91
93
|
POOL_BAKED_DIGESTS,
|
|
92
94
|
POOL_TRACKED_SESSIONS,
|
|
93
95
|
POOL_TRACKED_VALUES,
|
|
96
|
+
SessionEntropyMeter,
|
|
97
|
+
SessionObservationCache,
|
|
94
98
|
applyProposalsToSurface,
|
|
95
99
|
compileEntropySurface,
|
|
96
100
|
compileEntropySurfaceAsync,
|
|
@@ -136,7 +140,7 @@ import {
|
|
|
136
140
|
sessionWindowEvidence,
|
|
137
141
|
sessionWindowEvidenceAsync,
|
|
138
142
|
surfaceFreedomReport
|
|
139
|
-
} from "./chunks/chunk-
|
|
143
|
+
} from "./chunks/chunk-H6DDV6E2.js";
|
|
140
144
|
import {
|
|
141
145
|
COMPILED_SURFACE_VERSION,
|
|
142
146
|
ENTROPY_INVOCATION_STAGES,
|
|
@@ -170,13 +174,13 @@ import {
|
|
|
170
174
|
ApprovalController,
|
|
171
175
|
FabricAutoApprovalClassifier,
|
|
172
176
|
FabricSessionApprovals
|
|
173
|
-
} from "./chunks/chunk-
|
|
177
|
+
} from "./chunks/chunk-NPHCGLGH.js";
|
|
174
178
|
import "./chunks/chunk-XB3RJVT4.js";
|
|
179
|
+
import "./chunks/chunk-7TB7NXSL.js";
|
|
175
180
|
import {
|
|
176
181
|
getActiveRepairCompiler,
|
|
177
182
|
setActiveCompiledSurface
|
|
178
183
|
} from "./chunks/chunk-PSNXUZMY.js";
|
|
179
|
-
import "./chunks/chunk-7TB7NXSL.js";
|
|
180
184
|
import {
|
|
181
185
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
182
186
|
FABRIC_COMPONENT_REGISTER_EVENT,
|
|
@@ -191,42 +195,47 @@ import {
|
|
|
191
195
|
readFabricPeerCardsRequestV1,
|
|
192
196
|
readFabricPrewalkRequestV1,
|
|
193
197
|
readFabricToolResultProxyDetailsV1
|
|
194
|
-
} from "./chunks/chunk-
|
|
198
|
+
} from "./chunks/chunk-FAMBJFFF.js";
|
|
195
199
|
import {
|
|
196
200
|
awaitPeerSettle,
|
|
197
201
|
buildPeerCards
|
|
198
|
-
} from "./chunks/chunk-
|
|
202
|
+
} from "./chunks/chunk-2IAVP4O2.js";
|
|
199
203
|
import {
|
|
200
204
|
resolveAgentDir
|
|
201
205
|
} from "./chunks/chunk-PXAICAUT.js";
|
|
206
|
+
import "./chunks/chunk-CGPK5WHX.js";
|
|
202
207
|
import {
|
|
203
208
|
DEFAULT_FABRIC_CONFIG,
|
|
204
209
|
effectiveToolCaptureConfig,
|
|
205
210
|
loadFabricConfig,
|
|
206
211
|
loadFabricConfigForScope,
|
|
207
212
|
saveFabricConfig
|
|
208
|
-
} from "./chunks/chunk-
|
|
209
|
-
import "./chunks/chunk-CGPK5WHX.js";
|
|
213
|
+
} from "./chunks/chunk-G7UJLM33.js";
|
|
210
214
|
import {
|
|
211
215
|
defaultCodePreviewSettings
|
|
212
216
|
} from "./chunks/chunk-OKOHRXGF.js";
|
|
217
|
+
import {
|
|
218
|
+
closeScratch,
|
|
219
|
+
createScratch
|
|
220
|
+
} from "./chunks/chunk-RAO6TQFP.js";
|
|
213
221
|
import {
|
|
214
222
|
compactAtConfiguredThreshold,
|
|
215
223
|
fabricExecTitleHintCached,
|
|
216
224
|
normalizeRunDisplay,
|
|
217
225
|
registerCompactionHook
|
|
218
|
-
} from "./chunks/chunk-
|
|
226
|
+
} from "./chunks/chunk-MQG5QKGI.js";
|
|
219
227
|
import {
|
|
220
228
|
fabricWriteBindings
|
|
221
|
-
} from "./chunks/chunk-
|
|
229
|
+
} from "./chunks/chunk-SZUXWOO7.js";
|
|
222
230
|
import "./chunks/chunk-KAD7UWT2.js";
|
|
223
231
|
import "./chunks/chunk-ZDNGXLEC.js";
|
|
224
232
|
import {
|
|
225
233
|
FABRIC_ACTOR_PI_HOST_EVENTS
|
|
226
234
|
} from "./chunks/chunk-OTCASLY2.js";
|
|
235
|
+
import "./chunks/chunk-KI277YNS.js";
|
|
227
236
|
import "./chunks/chunk-MGWQOKBV.js";
|
|
228
237
|
import "./chunks/chunk-3H7SDWZI.js";
|
|
229
|
-
import "./chunks/chunk-
|
|
238
|
+
import "./chunks/chunk-X3OD47CL.js";
|
|
230
239
|
import {
|
|
231
240
|
FABRIC_EXECUTION_TRACE_KIND,
|
|
232
241
|
FABRIC_EXECUTION_TRACE_MAX_BYTES,
|
|
@@ -336,7 +345,9 @@ var updateTiming = (context, enabled, options = {}) => {
|
|
|
336
345
|
if (options.formatLabel === false) return void 0;
|
|
337
346
|
const running = context.isPartial;
|
|
338
347
|
const endedAt = running ? Date.now() : state.codePreviewTimingEndedAt ?? Date.now();
|
|
339
|
-
|
|
348
|
+
const durationMs = endedAt - startedAt;
|
|
349
|
+
if (!Number.isFinite(durationMs) || Math.round(durationMs) <= 0) return void 0;
|
|
350
|
+
return `${running ? "Elapsed" : "Took"} ${formatDuration2(durationMs)}`;
|
|
340
351
|
};
|
|
341
352
|
var TimingPreservedComponent = class {
|
|
342
353
|
constructor(component, state) {
|
|
@@ -757,6 +768,9 @@ var armFabricPrewalkSession = async (state, context, pi, input) => {
|
|
|
757
768
|
var autoArmFabricPrewalk = async (state, context, pi) => {
|
|
758
769
|
const { prewalk } = state.config;
|
|
759
770
|
if (prewalk.enabled === false || !prewalk.alwaysRearm) return void 0;
|
|
771
|
+
if (resolveFabricIdentity(context.sessionManager.getSessionId()).identity.kind !== "main") {
|
|
772
|
+
return void 0;
|
|
773
|
+
}
|
|
760
774
|
if (state.prewalk.status().state !== "idle") return void 0;
|
|
761
775
|
if (!state.config.fullCodeMode || state.config.schema.mode === "enforce") {
|
|
762
776
|
return "Fabric prewalk auto-arm skipped: requires full code mode with Schema enforce mode disabled.";
|
|
@@ -2038,7 +2052,7 @@ var fabricExecutionKernelGuidance = (fullCodeMode, kernel = "typescript", python
|
|
|
2038
2052
|
// caches stay warm.
|
|
2039
2053
|
`Read every file the user provides (images, screenshots, code, text) with the ${fullCodeMode ? "`pi.read`" : "`read`"} tool before responding \u2014 never assume its contents.`
|
|
2040
2054
|
].join(" ");
|
|
2041
|
-
var defaultFabricExecutionGuidance = (fullCodeMode, kernel = "typescript", pythonRuntime = "monty") => kernel === "python" ? (pythonRuntime === "monty" ? "Python backend: Monty sandboxed subset, not CPython. Native filesystem/network/environment access and arbitrary imports are unavailable; use host tools for effects. Supply acyclic JSON host arguments; recursive containers are unsupported. Underscore-prefixed direct capability attributes are unavailable: use tools.call with the exact discovered ref instead. \u03C0 is an attribute object; payloads is a dict, not the same identity. " : "Python backend: CPython; native standard-library imports are available. ") + 'Python fabric_exec: write an async function body with `await` and `return`; each invocation starts fresh. Use imports supported by the configured backend, such as `import asyncio`. Host methods accept one dict or keyword arguments: `await tools.search(query="example")`, `await tools.call(ref="provider.action", args={"key": "value"})`; discover
|
|
2055
|
+
var defaultFabricExecutionGuidance = (fullCodeMode, kernel = "typescript", pythonRuntime = "monty") => kernel === "python" ? (pythonRuntime === "monty" ? "Python backend: Monty sandboxed subset, not CPython. Native filesystem/network/environment access and arbitrary imports are unavailable; use host tools for effects. Supply acyclic JSON host arguments; recursive containers are unsupported. Underscore-prefixed direct capability attributes are unavailable: use tools.call with the exact discovered ref instead. \u03C0 is an attribute object; payloads is a dict, not the same identity. " : "Python backend: CPython; native standard-library imports are available. ") + 'Python fabric_exec: write an async function body with `await` and `return`; each invocation starts fresh. Use imports supported by the configured backend, such as `import asyncio`. Host methods accept one dict or keyword arguments: `await tools.search(query="example")`, `await tools.call(ref="provider.action", args={"key": "value"})`; discover with tools.search instead of enumerating: tools.list is a capped page (default 100, hard cap 1000) with no truncation marker, so a short result never proves an action is absent (tools.list(envelope=True) reports totals). Known actions use mcp.<server>.<tool>, memory.*, state.*, schema.*, compact.*, components.*, agents.*, or mesh.*. Responses are native Python dicts/lists, not attribute objects. Use `asyncio.gather` for independent calls. `\u03C0.key` and `payloads["key"]` contain only the exact top-level payload keys. Return JSON-compatible data (convert sets, bytes, paths, and datetimes explicitly); print output is bounded. JavaScript callback helpers (workflow, memory.walk, and predicate callbacks) are not Python APIs; page with ordinary await/loops instead. Provider argument validation and approvals remain host-enforced. Schema enforce retains host gates and requires the selected runtime\u2019s isolation; no unrestricted fallback.' + (fullCodeMode ? ' `await pi.read("/x")`, `await pi.grep(pattern="TODO", path="src")`, `await pi.find(pattern="*.py", path="src")`, and `await pi.ls("src")` return strings. `await pi.bash(command="ls")`, `await pi.edit(path="/x", oldText="a", newText="b")`, and `await pi.write(path="/y", content=\u03C0.body)` return dicts; read `r["output"]`. Shell nonzero exits raise; `settle=True` returns a failure dict instead. Cancellation, timeout, approval and security errors still raise. A nested shell that exceeds executor.shellHangMs still resolves ok with a still-running notice, pid, and live output path; background=True detaches immediately. Inspect with pi.read and stop with kill <pid> through pi.bash. Captured tools are `await extensions.<name>(...)`.' : " Pi core and extensions are unavailable inside fabric_exec in orchestration-only mode.") : fullCodeMode ? "Examples and returns: `pi.read('/x')`, `pi.grep('TODO','src')` / `pi.grep({pattern:'TODO', path:'src', ignoreCase:true, context:2})`, `pi.find({pattern:'*.ts', path:'src', limit:20})`, and `pi.ls('src')` return strings; `pi.bash({cmd:'ls'})` (or `pi.powershell` on Windows), `pi.edit({path:'/x', old:'a', new:'b'})`, and `pi.write({path:'/y', text:'z'})` return `{ok, output, details}` (read `.output`); failed core calls reject, including shell tools on an ordinary nonzero exit; pass `settle: true` to `pi.bash` or `pi.powershell` to get `{ ok: false, exitCode, output, error }` instead. Timeout, cancellation, approval, and security failures still reject. A nested shell that exceeds `executor.shellHangMs` still resolves `ok: true` with a still-running notice, pid, and live output path; `background: true` detaches immediately. Inspect with `pi.read` and stop with `kill <pid>` through `pi.bash`.\n`tools` is discovery + generic calls only (`providers`/`catalog`/`list`/`search`/`describe`/`call`/`models`). Call known MCP tools as `mcp.<sanitized_server>.<sanitized_tool>(args)`, captured tools as `extensions.<tool>(args)`, and stable providers as `memory.*`, `state.*`, `schema.*`, or `compact.*`. Use `tools.call({ref,args})` for computed refs. `pi` is the core tools; `\u03C0.<key>` reads named `strings` (not a tool)." : "Call known actions through `mcp.<sanitized_server>.<sanitized_tool>(args)`, `memory.*`, `state.*`, `schema.*`, `components.*`, `compact.*`, `agents.*`, or `mesh.*`; use `tools.catalog`/`search`/`describe`/`list` for discovery and `tools.call({ref,args})` for computed refs. Other surfaces are opt-in via user-loaded skills.";
|
|
2042
2056
|
var manifestNameCache = /* @__PURE__ */ new Map();
|
|
2043
2057
|
var packageNameFromManifest = (startPath) => {
|
|
2044
2058
|
if (!startPath) return void 0;
|
|
@@ -2662,16 +2676,21 @@ var PartialResultObserver = class {
|
|
|
2662
2676
|
};
|
|
2663
2677
|
|
|
2664
2678
|
// src/output-budget.ts
|
|
2665
|
-
import
|
|
2666
|
-
import { tmpdir } from "node:os";
|
|
2679
|
+
import fs2 from "node:fs/promises";
|
|
2667
2680
|
import path6 from "node:path";
|
|
2668
2681
|
var MAX_FAILURE_MODEL_OUTPUT_CHARS = 2e4;
|
|
2669
2682
|
var modelOutputBudget = (configuredMaxChars, success) => success ? configuredMaxChars : Math.min(configuredMaxChars, MAX_FAILURE_MODEL_OUTPUT_CHARS);
|
|
2670
2683
|
var writeOutputArtifact = async (content) => {
|
|
2671
|
-
const directory =
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2684
|
+
const directory = createScratch("output");
|
|
2685
|
+
try {
|
|
2686
|
+
const artifactPath = path6.join(directory, "output.txt");
|
|
2687
|
+
await fs2.writeFile(artifactPath, content, { encoding: "utf8", mode: 384, flag: "wx" });
|
|
2688
|
+
closeScratch(directory);
|
|
2689
|
+
return artifactPath;
|
|
2690
|
+
} catch (error) {
|
|
2691
|
+
await fs2.rm(directory, { recursive: true, force: true }).catch(() => void 0);
|
|
2692
|
+
throw error;
|
|
2693
|
+
}
|
|
2675
2694
|
};
|
|
2676
2695
|
var boundModelOutput = async (visible, maxChars, fullOutput = visible, writeArtifact = writeOutputArtifact) => {
|
|
2677
2696
|
if (visible.length <= maxChars && fullOutput.length <= maxChars) {
|
|
@@ -2687,9 +2706,19 @@ var boundModelOutput = async (visible, maxChars, fullOutput = visible, writeArti
|
|
|
2687
2706
|
|
|
2688
2707
|
[Full output (${fullOutput.length} chars) saved to: ${artifactPath}]` : "";
|
|
2689
2708
|
const bodyBudget = Math.max(1, maxChars - suffix.length);
|
|
2690
|
-
const
|
|
2709
|
+
const body = truncateMiddle(visible, bodyBudget);
|
|
2710
|
+
let text = `${body}${suffix}`;
|
|
2711
|
+
if (text.length > maxChars) {
|
|
2712
|
+
const rebudget = maxChars - suffix.length;
|
|
2713
|
+
if (rebudget <= 0) {
|
|
2714
|
+
text = suffix.slice(-Math.max(1, maxChars));
|
|
2715
|
+
} else {
|
|
2716
|
+
const shrunk = truncateMiddle(body, rebudget);
|
|
2717
|
+
text = shrunk.length + suffix.length <= maxChars ? `${shrunk}${suffix}` : suffix;
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2691
2720
|
return {
|
|
2692
|
-
text
|
|
2721
|
+
text,
|
|
2693
2722
|
...artifactPath ? { artifactPath } : {},
|
|
2694
2723
|
originalChars: fullOutput.length,
|
|
2695
2724
|
omittedChars: Math.max(0, fullOutput.length - Math.min(fullOutput.length, bodyBudget))
|
|
@@ -3399,6 +3428,7 @@ ${recoveryHint}` : ""}`,
|
|
|
3399
3428
|
)).text;
|
|
3400
3429
|
const terminate = pendingHandoff !== void 0 || result.success && typeof result.value === "object" && result.value !== null && "terminate" in result.value && result.value.terminate === true;
|
|
3401
3430
|
const mediaBlocks = [];
|
|
3431
|
+
for (const block of result.media ?? []) mediaBlocks.push(block);
|
|
3402
3432
|
for (const audit of result.audits) {
|
|
3403
3433
|
if (audit.media) mediaBlocks.push(...audit.media);
|
|
3404
3434
|
}
|
|
@@ -3436,7 +3466,7 @@ ${recoveryHint}` : ""}`,
|
|
|
3436
3466
|
};
|
|
3437
3467
|
|
|
3438
3468
|
// src/fabric-state.ts
|
|
3439
|
-
import
|
|
3469
|
+
import fs3 from "node:fs";
|
|
3440
3470
|
import path7 from "node:path";
|
|
3441
3471
|
|
|
3442
3472
|
// src/managed-host.ts
|
|
@@ -3683,7 +3713,7 @@ var FabricState = class {
|
|
|
3683
3713
|
];
|
|
3684
3714
|
return actorRoots.some((actorRoot) => {
|
|
3685
3715
|
try {
|
|
3686
|
-
const registry = JSON.parse(
|
|
3716
|
+
const registry = JSON.parse(fs3.readFileSync(path7.join(actorRoot, "actors.json"), "utf8"));
|
|
3687
3717
|
if (typeof registry !== "object" || registry === null || Array.isArray(registry)) return false;
|
|
3688
3718
|
const actors = registry.actors;
|
|
3689
3719
|
return Array.isArray(actors) && actors.some((value) => {
|
|
@@ -3870,6 +3900,18 @@ var FabricState = class {
|
|
|
3870
3900
|
candidate.registerExternalComponent(component, { overwrite: true });
|
|
3871
3901
|
}
|
|
3872
3902
|
}
|
|
3903
|
+
if (!this.#managedHost && !reinitialize) {
|
|
3904
|
+
const { FabricComponentConfiguration } = await import("./components/configuration.js");
|
|
3905
|
+
try {
|
|
3906
|
+
config.components = new FabricComponentConfiguration({
|
|
3907
|
+
cwd: context.cwd,
|
|
3908
|
+
agentDir: resolveAgentDir(),
|
|
3909
|
+
projectTrusted: () => context.isProjectTrusted()
|
|
3910
|
+
}).read().entries;
|
|
3911
|
+
} catch (error) {
|
|
3912
|
+
if (context.hasUI) context.ui.notify(`Pi Fabric component configuration not applied: ${error instanceof Error ? error.message : String(error)}`, "error");
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3873
3915
|
await candidate.initialize(context, config);
|
|
3874
3916
|
assertCurrent();
|
|
3875
3917
|
for (const provider of this.#externalProviders.values()) {
|
|
@@ -4467,22 +4509,38 @@ var shouldShowFabricWidget = (snapshot, mode) => {
|
|
|
4467
4509
|
const finishedAt = run.finishedAt ?? run.updatedAt;
|
|
4468
4510
|
return finishedAt > (snapshot.widgetDismissedAt ?? 0);
|
|
4469
4511
|
};
|
|
4512
|
+
var WIDGET_TERMINAL_ROW_SHARE = 0.5;
|
|
4513
|
+
var widgetRowLimit = (maxRows, terminalRows) => {
|
|
4514
|
+
const configured = Math.max(1, maxRows);
|
|
4515
|
+
if (terminalRows === void 0 || !Number.isFinite(terminalRows) || terminalRows <= 0) {
|
|
4516
|
+
return configured;
|
|
4517
|
+
}
|
|
4518
|
+
const paneShare = Math.floor(terminalRows * WIDGET_TERMINAL_ROW_SHARE);
|
|
4519
|
+
return Math.max(1, Math.min(configured, paneShare));
|
|
4520
|
+
};
|
|
4470
4521
|
var FabricWidget = class {
|
|
4471
|
-
constructor(theme, snapshot, maxRows) {
|
|
4522
|
+
constructor(theme, snapshot, maxRows, terminalRows) {
|
|
4472
4523
|
this.theme = theme;
|
|
4473
4524
|
this.snapshot = snapshot;
|
|
4474
4525
|
this.maxRows = maxRows;
|
|
4526
|
+
this.terminalRows = terminalRows;
|
|
4527
|
+
}
|
|
4528
|
+
#rowLimit() {
|
|
4529
|
+
return widgetRowLimit(this.maxRows, this.terminalRows?.());
|
|
4475
4530
|
}
|
|
4476
4531
|
#lastWidth;
|
|
4532
|
+
#lastLimit;
|
|
4477
4533
|
#lastSnapshot;
|
|
4478
4534
|
#lastLines;
|
|
4479
4535
|
#pending;
|
|
4480
4536
|
render(width) {
|
|
4481
4537
|
if (width <= 0) return [];
|
|
4482
4538
|
const snapshot = this.snapshot();
|
|
4483
|
-
const
|
|
4539
|
+
const limit = this.#rowLimit();
|
|
4540
|
+
const lines = this.#pending?.width === width && this.#pending.limit === limit && this.#pending.snapshot === snapshot ? this.#pending.lines : this.#lastWidth === width && this.#lastLimit === limit && this.#lastSnapshot === snapshot && this.#lastLines ? this.#lastLines : this.#renderLines(snapshot, width, limit);
|
|
4484
4541
|
this.#pending = void 0;
|
|
4485
4542
|
this.#lastWidth = width;
|
|
4543
|
+
this.#lastLimit = limit;
|
|
4486
4544
|
this.#lastSnapshot = snapshot;
|
|
4487
4545
|
this.#lastLines = lines;
|
|
4488
4546
|
return lines;
|
|
@@ -4490,18 +4548,20 @@ var FabricWidget = class {
|
|
|
4490
4548
|
hasChanged() {
|
|
4491
4549
|
if (this.#lastWidth === void 0 || this.#lastLines === void 0) return true;
|
|
4492
4550
|
const snapshot = this.snapshot();
|
|
4493
|
-
const
|
|
4494
|
-
|
|
4551
|
+
const limit = this.#rowLimit();
|
|
4552
|
+
const lines = this.#renderLines(snapshot, this.#lastWidth, limit);
|
|
4553
|
+
this.#pending = { width: this.#lastWidth, limit, snapshot, lines };
|
|
4495
4554
|
return lines.length !== this.#lastLines.length || lines.some((line, index) => line !== this.#lastLines?.[index]);
|
|
4496
4555
|
}
|
|
4497
4556
|
invalidate() {
|
|
4498
4557
|
this.#pending = void 0;
|
|
4499
4558
|
this.#lastWidth = void 0;
|
|
4559
|
+
this.#lastLimit = void 0;
|
|
4500
4560
|
this.#lastSnapshot = void 0;
|
|
4501
4561
|
this.#lastLines = void 0;
|
|
4502
4562
|
}
|
|
4503
|
-
#renderLines(snapshot, width) {
|
|
4504
|
-
return this.#boundContent(this.#buildContent(snapshot), width);
|
|
4563
|
+
#renderLines(snapshot, width, limit) {
|
|
4564
|
+
return this.#boundContent(this.#buildContent(snapshot), width, limit);
|
|
4505
4565
|
}
|
|
4506
4566
|
#buildContent(snapshot) {
|
|
4507
4567
|
const candidateRun = snapshot.runs[0];
|
|
@@ -4543,7 +4603,8 @@ var FabricWidget = class {
|
|
|
4543
4603
|
if (tokens > 0) parts.push(`${formatTokens(tokens)} tok`);
|
|
4544
4604
|
const cost = totalCost(snapshot, run);
|
|
4545
4605
|
if (cost > 0) parts.push(formatCost(cost));
|
|
4546
|
-
|
|
4606
|
+
const elapsed = run && formatDuration((run.finishedAt ?? snapshot.now) - run.startedAt);
|
|
4607
|
+
if (elapsed) parts.push(elapsed);
|
|
4547
4608
|
const glyph = colorStatus(this.theme, headerStatus, statusGlyph(headerStatus));
|
|
4548
4609
|
const header = `${glyph} ${this.theme.fg("accent", "Fabric")} ${this.theme.fg(
|
|
4549
4610
|
"muted",
|
|
@@ -4563,8 +4624,8 @@ var FabricWidget = class {
|
|
|
4563
4624
|
);
|
|
4564
4625
|
return lines;
|
|
4565
4626
|
}
|
|
4566
|
-
#boundContent(content, width) {
|
|
4567
|
-
const bounded = content.slice(0,
|
|
4627
|
+
#boundContent(content, width, limit) {
|
|
4628
|
+
const bounded = content.slice(0, limit);
|
|
4568
4629
|
if (content.length > bounded.length && bounded.length > 0) {
|
|
4569
4630
|
const marker = this.theme.fg("dim", `+${content.length - bounded.length}`);
|
|
4570
4631
|
const available = Math.max(0, width - visibleWidth2(marker) - 1);
|
|
@@ -5199,7 +5260,12 @@ var FabricUiController = class {
|
|
|
5199
5260
|
WIDGET_ID,
|
|
5200
5261
|
(tui, theme) => {
|
|
5201
5262
|
this.#widgetTui = tui;
|
|
5202
|
-
this.#widget = new FabricWidget(
|
|
5263
|
+
this.#widget = new FabricWidget(
|
|
5264
|
+
theme,
|
|
5265
|
+
() => this.#snapshot,
|
|
5266
|
+
config.maxRows,
|
|
5267
|
+
() => tui.terminal?.rows ?? process.stdout.rows
|
|
5268
|
+
);
|
|
5203
5269
|
return this.#widget;
|
|
5204
5270
|
},
|
|
5205
5271
|
{ placement: "aboveEditor" }
|
|
@@ -5563,33 +5629,40 @@ async function piFabric(pi, options = {}) {
|
|
|
5563
5629
|
let entropyCompileInFlight;
|
|
5564
5630
|
let entropyCompilePending;
|
|
5565
5631
|
let entropyLifecycleEpoch = 0;
|
|
5632
|
+
const createEntropyCaches = () => ({
|
|
5633
|
+
compiler: new BackgroundEntropyCompiler(),
|
|
5634
|
+
observations: new SessionObservationCache(),
|
|
5635
|
+
sessions: new BackgroundSessionSelector(machineSessionFilesAsync)
|
|
5636
|
+
});
|
|
5637
|
+
let entropyCaches = createEntropyCaches();
|
|
5566
5638
|
const compileEntropyNow = async (context, epoch) => {
|
|
5567
5639
|
const current = () => epoch === entropyLifecycleEpoch && state.initialized && state.config.entropy.compile;
|
|
5568
5640
|
if (!current()) return;
|
|
5569
5641
|
const agentDir = resolveAgentDir();
|
|
5570
5642
|
const cwd = state.cwd ?? context.cwd;
|
|
5571
5643
|
const repairs = entropyRepairRows(state.repairs.repairs);
|
|
5644
|
+
const caches = entropyCaches;
|
|
5572
5645
|
const [files, loaded, poolLoaded, snapshot] = await Promise.all([
|
|
5573
|
-
|
|
5646
|
+
caches.sessions.select(agentDir, cwd, context.sessionManager.getSessionFile?.()),
|
|
5574
5647
|
loadCompiledSurfaceAsync(agentDir),
|
|
5575
5648
|
loadObservationPoolAsync(agentDir),
|
|
5576
5649
|
liveSurfaceSnapshot({ registry: state.registry, extensionContext: context, cwd })
|
|
5577
5650
|
]);
|
|
5578
5651
|
if (!current() || loaded.error) return;
|
|
5579
|
-
const evidence = await sessionWindowEvidenceAsync(files);
|
|
5652
|
+
const evidence = await sessionWindowEvidenceAsync(files, { windowsOnly: true });
|
|
5580
5653
|
if (!current()) return;
|
|
5581
|
-
const mergedPool = await
|
|
5654
|
+
const mergedPool = await caches.observations.merge(
|
|
5582
5655
|
poolLoaded.file,
|
|
5583
5656
|
evidence.observationWindows
|
|
5584
5657
|
);
|
|
5585
|
-
if (!poolLoaded.error
|
|
5658
|
+
if (!poolLoaded.error && (mergedPool.mergedSessions > 0 || !poolLoaded.file)) {
|
|
5659
|
+
await saveObservationPoolAsync(agentDir, mergedPool.file);
|
|
5660
|
+
}
|
|
5586
5661
|
if (!current()) return;
|
|
5587
|
-
const outcome = await
|
|
5588
|
-
|
|
5662
|
+
const outcome = await caches.compiler.compile({
|
|
5663
|
+
windows: evidence.traceWindows,
|
|
5589
5664
|
surface: snapshot,
|
|
5590
5665
|
repairs,
|
|
5591
|
-
valueObservations: poolToValueObservations(mergedPool.file),
|
|
5592
|
-
auditCalls: evidence.auditCalls,
|
|
5593
5666
|
...loaded.file ? { artifact: loaded.file } : {}
|
|
5594
5667
|
});
|
|
5595
5668
|
if (!current()) return;
|
|
@@ -5643,6 +5716,7 @@ async function piFabric(pi, options = {}) {
|
|
|
5643
5716
|
};
|
|
5644
5717
|
pi.on("session_start", async (_event, context) => {
|
|
5645
5718
|
entropyLifecycleEpoch += 1;
|
|
5719
|
+
entropyCaches = createEntropyCaches();
|
|
5646
5720
|
entropyEvidenceThisTurn = false;
|
|
5647
5721
|
entropyCompilePending = void 0;
|
|
5648
5722
|
pendingHandoffs.clear();
|
|
@@ -5934,6 +6008,7 @@ ${guidance}`,
|
|
|
5934
6008
|
}
|
|
5935
6009
|
await settleEntropyCompiles();
|
|
5936
6010
|
entropyLifecycleEpoch += 1;
|
|
6011
|
+
entropyCaches = createEntropyCaches();
|
|
5937
6012
|
entropyCompilePending = void 0;
|
|
5938
6013
|
unsubscribeComponentRegistration();
|
|
5939
6014
|
unsubscribeProviderRegistration();
|
|
@@ -5967,6 +6042,8 @@ ${guidance}`,
|
|
|
5967
6042
|
}
|
|
5968
6043
|
export {
|
|
5969
6044
|
AUTO_APPLY_PROPOSAL_KINDS,
|
|
6045
|
+
BackgroundEntropyCompiler,
|
|
6046
|
+
BackgroundSessionSelector,
|
|
5970
6047
|
COMPILED_SURFACE_VERSION,
|
|
5971
6048
|
ENTROPY_ENUM_CANDIDATE_ANNOTATION,
|
|
5972
6049
|
ENTROPY_INVOCATION_STAGES,
|
|
@@ -6002,6 +6079,8 @@ export {
|
|
|
6002
6079
|
POOL_BAKED_DIGESTS,
|
|
6003
6080
|
POOL_TRACKED_SESSIONS,
|
|
6004
6081
|
POOL_TRACKED_VALUES,
|
|
6082
|
+
SessionEntropyMeter,
|
|
6083
|
+
SessionObservationCache,
|
|
6005
6084
|
applyCompiledSurface,
|
|
6006
6085
|
applyNormalFormPlan,
|
|
6007
6086
|
applyProposalsToSurface,
|