@e4779/pi-fabric 0.97.0-fork.13 → 0.100.0-fork.15
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/THIRD_PARTY_NOTICES.md +5 -4
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/types.d.ts +4 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents.js +3 -3
- package/dist/chunks/{chunk-JCV54SSP.js → chunk-27ORW5EK.js} +41 -22
- package/dist/chunks/chunk-27ORW5EK.js.map +7 -0
- package/dist/chunks/{chunk-EQIGYLVB.js → chunk-3RFEMOJA.js} +9 -3
- package/dist/chunks/chunk-3RFEMOJA.js.map +7 -0
- package/dist/chunks/{chunk-D5GNTBV6.js → chunk-7HQKBGTL.js} +2 -2
- package/dist/chunks/{chunk-LNLQ2LX3.js → chunk-ASU53MOT.js} +2 -2
- package/dist/chunks/{chunk-V3PIO7QL.js → chunk-BUQZBG6O.js} +3 -43
- package/dist/chunks/chunk-BUQZBG6O.js.map +7 -0
- package/dist/chunks/{chunk-6K5SRGW6.js → chunk-C2DIKAOE.js} +4 -4
- package/dist/chunks/{chunk-FJSHRHOR.js → chunk-CPSPZGK4.js} +6 -6
- package/dist/chunks/{chunk-UBPFGMDQ.js → chunk-CXQF35XB.js} +4 -4
- package/dist/chunks/{chunk-3SIXBW6A.js → chunk-H4YYLQTX.js} +2 -2
- package/dist/chunks/{chunk-CSJSHBAT.js → chunk-I5VN6D5T.js} +48 -21
- package/dist/chunks/chunk-I5VN6D5T.js.map +7 -0
- package/dist/chunks/{chunk-VRYEGVHR.js → chunk-J7ZQERKA.js} +11 -8
- package/dist/chunks/chunk-J7ZQERKA.js.map +7 -0
- package/dist/chunks/{chunk-D4B4CCTA.js → chunk-JHQDS6YP.js} +2 -2
- package/dist/chunks/{chunk-OINADFEF.js → chunk-JWWGWUP7.js} +5 -5
- package/dist/chunks/{chunk-WXSELMFV.js → chunk-KFPUVFDS.js} +5 -5
- package/dist/chunks/{chunk-EPAFGT2M.js → chunk-LH2PGXSZ.js} +5 -1
- package/dist/chunks/{chunk-EPAFGT2M.js.map → chunk-LH2PGXSZ.js.map} +2 -2
- package/dist/chunks/{chunk-X3IRR7CV.js → chunk-M25A5R3F.js} +2 -2
- package/dist/chunks/chunk-MNTJX4U7.js +760 -0
- package/dist/chunks/chunk-MNTJX4U7.js.map +7 -0
- package/dist/chunks/{chunk-754HA6KO.js → chunk-NRLDV5R3.js} +7 -2
- package/dist/chunks/chunk-NRLDV5R3.js.map +7 -0
- package/dist/chunks/chunk-O4A5UOXU.js +44 -0
- package/dist/chunks/chunk-O4A5UOXU.js.map +7 -0
- package/dist/chunks/{chunk-4F27LJTS.js → chunk-OEJ6RFDO.js} +255 -72
- package/dist/chunks/chunk-OEJ6RFDO.js.map +7 -0
- package/dist/chunks/{chunk-VQGO4P7C.js → chunk-QIW7QMFI.js} +2 -2
- package/dist/chunks/{chunk-B4HECUJI.js → chunk-RUEKYUNR.js} +2 -2
- package/dist/chunks/{chunk-A4XPJESK.js → chunk-RZHXYLOY.js} +2 -2
- package/dist/chunks/{chunk-QNMMQAZ7.js → chunk-SDDBEBM4.js} +3 -3
- package/dist/chunks/{chunk-2LBC6TTP.js → chunk-UGMLWBVF.js} +390 -228
- package/dist/chunks/chunk-UGMLWBVF.js.map +7 -0
- package/dist/chunks/{chunk-5WUW727L.js → chunk-VGQ2IE7P.js} +19 -3
- package/dist/chunks/chunk-VGQ2IE7P.js.map +7 -0
- package/dist/chunks/{chunk-KBHITFTO.js → chunk-VRAGOMN4.js} +3 -1
- package/dist/chunks/chunk-VRAGOMN4.js.map +7 -0
- package/dist/chunks/{chunk-F676L43O.js → chunk-WK25T5ST.js} +11 -11
- package/dist/chunks/{chunk-IPHEM6RY.js → chunk-WQB6CVES.js} +2 -2
- package/dist/chunks/{chunk-CZSX6UG6.js → chunk-XYFOKDFM.js} +2 -2
- package/dist/chunks/{chunk-G2F2RDZI.js → chunk-YAPDV6LO.js} +2 -2
- package/dist/chunks/{chunk-Q5BMTL6A.js → chunk-YIEK7FH2.js} +4 -4
- package/dist/chunks/{chunk-KS44WKJJ.js → chunk-Z45SUO4B.js} +2 -2
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/hook.js +6 -6
- package/dist/components/builtin-guidance.d.ts +4 -0
- package/dist/components/builtin-guidance.d.ts.map +1 -0
- package/dist/components/configuration.js +2 -2
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.js +7 -7
- package/dist/core/file-lock.d.ts +4 -0
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/provider-operations.js +162 -51
- package/dist/core/provider-operations.js.map +2 -2
- package/dist/core/shell-timing.d.ts +11 -0
- package/dist/core/shell-timing.d.ts.map +1 -0
- package/dist/entropy/index.js +12 -10
- package/dist/entropy/pool-store.d.ts +3 -1
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +138 -55
- 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 +125 -58
- package/dist/index.js.map +3 -3
- package/dist/jev/observation.js +5 -5
- package/dist/jev.js +8 -8
- package/dist/lifecycle/broker.d.ts.map +1 -1
- package/dist/memory/digest.js +2 -2
- package/dist/memory/discovery.js +6 -6
- package/dist/memory/file-worker.js +9 -9
- package/dist/memory/normalize.js +5 -5
- package/dist/memory/search.js +7 -7
- package/dist/memory/worker-provider.js +10 -10
- package/dist/memory.js +10 -10
- package/dist/prewalk/messages.d.ts +1 -1
- package/dist/prewalk/messages.d.ts.map +1 -1
- package/dist/protocol.d.ts +12 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +3 -1
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-message-router.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.js +8 -8
- package/dist/providers/memory-provider.js +9 -9
- package/dist/providers/prewalk-provider.d.ts +3 -3
- package/dist/providers/prewalk-provider.d.ts.map +1 -1
- package/dist/residency/host.js +9 -9
- package/dist/residency/pi-entry.js +9 -9
- 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 +1 -1
- package/dist/runtime/typescript-kernel.js +2 -2
- package/dist/ui/conversation.d.ts +2 -1
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +41 -37
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/dashboard.js +10 -8
- package/dist/ui/dashboard.js.map +1 -1
- package/dist/ui/fabric-model-selector.d.ts +3 -0
- package/dist/ui/fabric-model-selector.d.ts.map +1 -1
- package/dist/ui/settings.d.ts.map +1 -1
- package/dist/ui/settings.js +15 -2
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shell-tasks.d.ts +2 -1
- package/dist/ui/shell-tasks.d.ts.map +1 -1
- package/dist/ui/shell-tasks.js +169 -81
- package/dist/ui/shell-tasks.js.map +3 -3
- package/dist/ui/snapshot.d.ts.map +1 -1
- package/dist/ui/structured.d.ts.map +1 -1
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/verified/generated/authority-kernel.js +188 -81
- package/dist/verified/generated/kernel.js +547 -265
- package/dist/verified/generated/lifecycle-kernel.d.ts +1 -1
- package/dist/verified/generated/lifecycle-kernel.js +172 -125
- package/dist/verified/generated/manifest.json +11 -11
- package/dist/verified/generated/provider-kernel.js +160 -52
- package/dist/verified/generated/storage-kernel.js +238 -69
- package/dist/worker/model-control.d.ts +1 -1
- package/dist/worker/model-control.d.ts.map +1 -1
- package/dist/worker/model-control.js +6 -3
- package/dist/worker/model-control.js.map +2 -2
- package/dist/worker/options.d.ts.map +1 -1
- package/dist/worker/options.js +15 -0
- package/dist/worker/options.js.map +2 -2
- package/dist/worker.js +3 -2
- package/dist/worker.js.map +2 -2
- package/docs/agents.md +1 -1
- package/docs/background-tasks.md +33 -0
- package/docs/configuration.md +4 -2
- package/docs/entropy.md +13 -0
- package/docs/harnesses.md +1 -1
- package/docs/interface.md +2 -0
- package/docs/jev.md +1 -1
- package/docs/prompt-cache.md +3 -3
- package/docs/provider-capabilities.md +1 -1
- package/docs/verified-kernels.md +10 -6
- package/package.json +1 -1
- package/proofs/lifecycle-spec.bend +4 -4
- package/proofs/lifecycle-types.d.ts +1 -1
- package/proofs/lifecycle.bend +6 -6
- package/scripts/test-verified-kernels.mjs +3 -3
- package/scripts/verified-kernels.mjs +53 -13
- package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
- package/dist/chunks/chunk-2LBC6TTP.js.map +0 -7
- package/dist/chunks/chunk-4E63LJDD.js +0 -468
- package/dist/chunks/chunk-4E63LJDD.js.map +0 -7
- package/dist/chunks/chunk-4F27LJTS.js.map +0 -7
- package/dist/chunks/chunk-5WUW727L.js.map +0 -7
- package/dist/chunks/chunk-754HA6KO.js.map +0 -7
- package/dist/chunks/chunk-CSJSHBAT.js.map +0 -7
- package/dist/chunks/chunk-EQIGYLVB.js.map +0 -7
- package/dist/chunks/chunk-JCV54SSP.js.map +0 -7
- package/dist/chunks/chunk-KBHITFTO.js.map +0 -7
- package/dist/chunks/chunk-V3PIO7QL.js.map +0 -7
- package/dist/chunks/chunk-VRYEGVHR.js.map +0 -7
- /package/dist/chunks/{chunk-D5GNTBV6.js.map → chunk-7HQKBGTL.js.map} +0 -0
- /package/dist/chunks/{chunk-LNLQ2LX3.js.map → chunk-ASU53MOT.js.map} +0 -0
- /package/dist/chunks/{chunk-6K5SRGW6.js.map → chunk-C2DIKAOE.js.map} +0 -0
- /package/dist/chunks/{chunk-FJSHRHOR.js.map → chunk-CPSPZGK4.js.map} +0 -0
- /package/dist/chunks/{chunk-UBPFGMDQ.js.map → chunk-CXQF35XB.js.map} +0 -0
- /package/dist/chunks/{chunk-3SIXBW6A.js.map → chunk-H4YYLQTX.js.map} +0 -0
- /package/dist/chunks/{chunk-D4B4CCTA.js.map → chunk-JHQDS6YP.js.map} +0 -0
- /package/dist/chunks/{chunk-OINADFEF.js.map → chunk-JWWGWUP7.js.map} +0 -0
- /package/dist/chunks/{chunk-WXSELMFV.js.map → chunk-KFPUVFDS.js.map} +0 -0
- /package/dist/chunks/{chunk-X3IRR7CV.js.map → chunk-M25A5R3F.js.map} +0 -0
- /package/dist/chunks/{chunk-VQGO4P7C.js.map → chunk-QIW7QMFI.js.map} +0 -0
- /package/dist/chunks/{chunk-B4HECUJI.js.map → chunk-RUEKYUNR.js.map} +0 -0
- /package/dist/chunks/{chunk-A4XPJESK.js.map → chunk-RZHXYLOY.js.map} +0 -0
- /package/dist/chunks/{chunk-QNMMQAZ7.js.map → chunk-SDDBEBM4.js.map} +0 -0
- /package/dist/chunks/{chunk-F676L43O.js.map → chunk-WK25T5ST.js.map} +0 -0
- /package/dist/chunks/{chunk-IPHEM6RY.js.map → chunk-WQB6CVES.js.map} +0 -0
- /package/dist/chunks/{chunk-CZSX6UG6.js.map → chunk-XYFOKDFM.js.map} +0 -0
- /package/dist/chunks/{chunk-G2F2RDZI.js.map → chunk-YAPDV6LO.js.map} +0 -0
- /package/dist/chunks/{chunk-Q5BMTL6A.js.map → chunk-YIEK7FH2.js.map} +0 -0
- /package/dist/chunks/{chunk-KS44WKJJ.js.map → chunk-Z45SUO4B.js.map} +0 -0
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
componentEntries,
|
|
13
13
|
validateComponentConfig,
|
|
14
14
|
watchComponentConfiguration
|
|
15
|
-
} from "./chunks/chunk-
|
|
15
|
+
} from "./chunks/chunk-WQB6CVES.js";
|
|
16
16
|
import {
|
|
17
17
|
WorkerMemoryProvider
|
|
18
|
-
} from "./chunks/chunk-
|
|
18
|
+
} from "./chunks/chunk-RZHXYLOY.js";
|
|
19
19
|
import {
|
|
20
20
|
ResidentActorClient
|
|
21
21
|
} from "./chunks/chunk-NHMICIEU.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
scoreActionSearch,
|
|
32
32
|
summarizeEffects,
|
|
33
33
|
trackedRegistration
|
|
34
|
-
} from "./chunks/chunk-
|
|
34
|
+
} from "./chunks/chunk-UGMLWBVF.js";
|
|
35
35
|
import {
|
|
36
36
|
formatFabricEffectConflict
|
|
37
37
|
} from "./chunks/chunk-LMAVZN7J.js";
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
PREWALK_CONTINUE_MESSAGE_TYPE,
|
|
45
45
|
PrewalkController,
|
|
46
46
|
PrewalkDriftTracker,
|
|
47
|
+
builtinModelGuidance,
|
|
47
48
|
captureLoadedFileIdentity,
|
|
48
49
|
createProviderComponent,
|
|
49
50
|
deliverPrewalkPlanCheckpoint,
|
|
@@ -52,7 +53,7 @@ import {
|
|
|
52
53
|
resolveFabricIdentity,
|
|
53
54
|
runtimeIdentityStatus,
|
|
54
55
|
setModelSafely
|
|
55
|
-
} from "./chunks/chunk-
|
|
56
|
+
} from "./chunks/chunk-VGQ2IE7P.js";
|
|
56
57
|
import {
|
|
57
58
|
AgentTranscriptReader,
|
|
58
59
|
MAX_WRITE_DIFF_BYTES,
|
|
@@ -64,15 +65,15 @@ import "./chunks/chunk-DLXPTBPL.js";
|
|
|
64
65
|
import {
|
|
65
66
|
loadCompiledSurface,
|
|
66
67
|
withExclusiveFileLockAsync
|
|
67
|
-
} from "./chunks/chunk-
|
|
68
|
+
} from "./chunks/chunk-27ORW5EK.js";
|
|
68
69
|
import {
|
|
69
70
|
createConfiguredMemorySourceRegistry
|
|
70
|
-
} from "./chunks/chunk-
|
|
71
|
-
import "./chunks/chunk-
|
|
72
|
-
import "./chunks/chunk-
|
|
73
|
-
import "./chunks/chunk-
|
|
74
|
-
import "./chunks/chunk-
|
|
75
|
-
import "./chunks/chunk-
|
|
71
|
+
} from "./chunks/chunk-SDDBEBM4.js";
|
|
72
|
+
import "./chunks/chunk-WK25T5ST.js";
|
|
73
|
+
import "./chunks/chunk-CPSPZGK4.js";
|
|
74
|
+
import "./chunks/chunk-CXQF35XB.js";
|
|
75
|
+
import "./chunks/chunk-QIW7QMFI.js";
|
|
76
|
+
import "./chunks/chunk-KFPUVFDS.js";
|
|
76
77
|
import {
|
|
77
78
|
McpProvider
|
|
78
79
|
} from "./chunks/chunk-X7XFT57O.js";
|
|
@@ -86,7 +87,7 @@ import {
|
|
|
86
87
|
import {
|
|
87
88
|
AGENTS_ACTION_DESCRIPTORS,
|
|
88
89
|
normalizeAgentRunRequest
|
|
89
|
-
} from "./chunks/chunk-
|
|
90
|
+
} from "./chunks/chunk-NRLDV5R3.js";
|
|
90
91
|
import {
|
|
91
92
|
actionArgNormalizer,
|
|
92
93
|
uniqueDeclaredKeyForSpelling
|
|
@@ -98,7 +99,7 @@ import {
|
|
|
98
99
|
} from "./chunks/chunk-CGL7QP4A.js";
|
|
99
100
|
import {
|
|
100
101
|
validationMessage
|
|
101
|
-
} from "./chunks/chunk-
|
|
102
|
+
} from "./chunks/chunk-YAPDV6LO.js";
|
|
102
103
|
import {
|
|
103
104
|
runAbortable,
|
|
104
105
|
throwIfAborted
|
|
@@ -107,22 +108,23 @@ import {
|
|
|
107
108
|
ApprovalController,
|
|
108
109
|
FabricAutoApprovalClassifier,
|
|
109
110
|
FabricSessionApprovals
|
|
110
|
-
} from "./chunks/chunk-
|
|
111
|
+
} from "./chunks/chunk-JHQDS6YP.js";
|
|
111
112
|
import "./chunks/chunk-XB3RJVT4.js";
|
|
112
113
|
import {
|
|
113
114
|
clearActiveCompiledSurface,
|
|
114
115
|
clearActiveRepairCompiler,
|
|
115
116
|
setActiveCompiledSurface,
|
|
116
117
|
setActiveRepairCompiler
|
|
117
|
-
} from "./chunks/chunk-
|
|
118
|
+
} from "./chunks/chunk-Z45SUO4B.js";
|
|
118
119
|
import {
|
|
119
120
|
FABRIC_BASH_MIDDLEWARE,
|
|
120
121
|
FABRIC_COMPONENT_DISCOVER_EVENT,
|
|
121
122
|
FABRIC_NESTED_TOOL_CALL_ID_PREFIX,
|
|
122
123
|
FABRIC_PROVIDER_DISCOVER_EVENT,
|
|
124
|
+
FABRIC_SHELL_TIMING_EVENT,
|
|
123
125
|
FABRIC_TOOL_RESULT_PROXY_KIND,
|
|
124
126
|
readFabricToolResultProxyDetailsV1
|
|
125
|
-
} from "./chunks/chunk-
|
|
127
|
+
} from "./chunks/chunk-VRAGOMN4.js";
|
|
126
128
|
import {
|
|
127
129
|
ActorDirectory,
|
|
128
130
|
ActorRegistryOwnershipError,
|
|
@@ -148,7 +150,7 @@ import {
|
|
|
148
150
|
snapshotHandoffSession,
|
|
149
151
|
thinkingTransferPolicy,
|
|
150
152
|
withInheritedSessionPins
|
|
151
|
-
} from "./chunks/chunk-
|
|
153
|
+
} from "./chunks/chunk-OEJ6RFDO.js";
|
|
152
154
|
import {
|
|
153
155
|
executeFile,
|
|
154
156
|
processIsAlive,
|
|
@@ -181,17 +183,17 @@ import {
|
|
|
181
183
|
MAX_AGENT_TIMEOUT_MS,
|
|
182
184
|
MIN_AGENT_TIMEOUT_MS,
|
|
183
185
|
loadFabricConfig
|
|
184
|
-
} from "./chunks/chunk-
|
|
186
|
+
} from "./chunks/chunk-3RFEMOJA.js";
|
|
185
187
|
import "./chunks/chunk-OKOHRXGF.js";
|
|
186
188
|
import {
|
|
187
189
|
fabricExecTitleHintCached
|
|
188
|
-
} from "./chunks/chunk-
|
|
190
|
+
} from "./chunks/chunk-YIEK7FH2.js";
|
|
189
191
|
import "./chunks/chunk-SZUXWOO7.js";
|
|
190
192
|
import {
|
|
191
193
|
writeJsonAtomic,
|
|
192
194
|
writeJsonAtomicAsync
|
|
193
195
|
} from "./chunks/chunk-KAD7UWT2.js";
|
|
194
|
-
import "./chunks/chunk-
|
|
196
|
+
import "./chunks/chunk-RUEKYUNR.js";
|
|
195
197
|
import {
|
|
196
198
|
FABRIC_PARTICIPANT_LIFECYCLE_TOPIC,
|
|
197
199
|
isFabricLifecycleEventType,
|
|
@@ -204,6 +206,7 @@ import {
|
|
|
204
206
|
} from "./chunks/chunk-2QAOC3BO.js";
|
|
205
207
|
import {
|
|
206
208
|
FUZZY_RESOLUTION_MARKERS,
|
|
209
|
+
aliasThinking,
|
|
207
210
|
resolveAvailablePiModel,
|
|
208
211
|
resolveFabricModel
|
|
209
212
|
} from "./chunks/chunk-A4VP7HDF.js";
|
|
@@ -216,7 +219,7 @@ import {
|
|
|
216
219
|
MAX_PRESERVE_ITEM_CHARS,
|
|
217
220
|
compactionRequestBoundsError,
|
|
218
221
|
encodeCompactionRequest
|
|
219
|
-
} from "./chunks/chunk-
|
|
222
|
+
} from "./chunks/chunk-ASU53MOT.js";
|
|
220
223
|
import "./chunks/chunk-UR2K6WK6.js";
|
|
221
224
|
import {
|
|
222
225
|
resolveJevModelRoute
|
|
@@ -225,8 +228,8 @@ import {
|
|
|
225
228
|
FabricExecutionTraceRecorder,
|
|
226
229
|
FabricTraceSafeError,
|
|
227
230
|
executionOutcomeFromError
|
|
228
|
-
} from "./chunks/chunk-
|
|
229
|
-
import "./chunks/chunk-
|
|
231
|
+
} from "./chunks/chunk-M25A5R3F.js";
|
|
232
|
+
import "./chunks/chunk-JWWGWUP7.js";
|
|
230
233
|
import {
|
|
231
234
|
PI_CORE_TOOL_NAMES,
|
|
232
235
|
PI_CORE_TOOL_NAME_SET,
|
|
@@ -234,13 +237,13 @@ import {
|
|
|
234
237
|
isPiShellToolName
|
|
235
238
|
} from "./chunks/chunk-YU62DDKK.js";
|
|
236
239
|
import {
|
|
237
|
-
|
|
240
|
+
$t,
|
|
241
|
+
De,
|
|
242
|
+
Ye,
|
|
238
243
|
assertCertificateFacts,
|
|
239
244
|
boundedEffectResources,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
ze
|
|
243
|
-
} from "./chunks/chunk-4E63LJDD.js";
|
|
245
|
+
gt
|
|
246
|
+
} from "./chunks/chunk-MNTJX4U7.js";
|
|
244
247
|
import {
|
|
245
248
|
MAX_FABRIC_MODEL_GUIDANCE_PER_COMPONENT,
|
|
246
249
|
MAX_FABRIC_MODEL_GUIDANCE_REGISTRATIONS,
|
|
@@ -1499,7 +1502,7 @@ var FabricEffectScope = class {
|
|
|
1499
1502
|
};
|
|
1500
1503
|
let disposal;
|
|
1501
1504
|
record.dispose = async () => {
|
|
1502
|
-
const release =
|
|
1505
|
+
const release = gt(!record.disposed);
|
|
1503
1506
|
if (!release.fst) return disposal;
|
|
1504
1507
|
record.disposed = !release.snd;
|
|
1505
1508
|
record.armed = false;
|
|
@@ -1565,7 +1568,7 @@ var FabricEffectScope = class {
|
|
|
1565
1568
|
};
|
|
1566
1569
|
let disposal;
|
|
1567
1570
|
record.dispose = async () => {
|
|
1568
|
-
const release =
|
|
1571
|
+
const release = gt(!record.disposed);
|
|
1569
1572
|
if (!release.fst) return disposal;
|
|
1570
1573
|
record.disposed = !release.snd;
|
|
1571
1574
|
record.armed = false;
|
|
@@ -1607,7 +1610,7 @@ var FabricEffectScope = class {
|
|
|
1607
1610
|
}
|
|
1608
1611
|
this.#state = "disposed";
|
|
1609
1612
|
return {
|
|
1610
|
-
status:
|
|
1613
|
+
status: Ye(failures.length > 0, false) === 2 ? "quarantined" : "disposed",
|
|
1611
1614
|
failures
|
|
1612
1615
|
};
|
|
1613
1616
|
})();
|
|
@@ -2485,7 +2488,7 @@ var FabricComponentSupervisor = class {
|
|
|
2485
2488
|
}
|
|
2486
2489
|
}
|
|
2487
2490
|
let retryDelayMs = 0;
|
|
2488
|
-
const recovery =
|
|
2491
|
+
const recovery = Ye(cleanupErrors.length > 0, diverted);
|
|
2489
2492
|
if (recovery === 2) {
|
|
2490
2493
|
component.state = "quarantined";
|
|
2491
2494
|
component.consecutiveDiversions = 0;
|
|
@@ -2523,7 +2526,7 @@ var FabricComponentSupervisor = class {
|
|
|
2523
2526
|
return this.#transitionCurrent(component, epoch) && resolution.satisfied && resolution.view?.digest === digest3;
|
|
2524
2527
|
}
|
|
2525
2528
|
#transitionCurrent(component, epoch) {
|
|
2526
|
-
return
|
|
2529
|
+
return De(
|
|
2527
2530
|
component.retired,
|
|
2528
2531
|
component.epoch === epoch,
|
|
2529
2532
|
this.#components.get(component.entry.id) === component,
|
|
@@ -6559,6 +6562,26 @@ var AgentMessageRouter = class {
|
|
|
6559
6562
|
} catch (error) {
|
|
6560
6563
|
if (!(error instanceof Error && /Unknown Fabric agent/.test(error.message))) throw error;
|
|
6561
6564
|
}
|
|
6565
|
+
const remoteRoot = this.participants.get(id);
|
|
6566
|
+
if (remoteRoot?.kind === "root" && !remoteRoot.local) {
|
|
6567
|
+
if (!remoteRoot.capabilities.includes(kind)) {
|
|
6568
|
+
throw new Error(`Fabric participant ${remoteRoot.id} does not support ${kind}`);
|
|
6569
|
+
}
|
|
6570
|
+
if (!this.control || remoteRoot.controlProtocol !== "v1") {
|
|
6571
|
+
throw new Error(`Fabric root ${remoteRoot.id} has no control channel`);
|
|
6572
|
+
}
|
|
6573
|
+
return this.control.request(
|
|
6574
|
+
remoteRoot.ownerHostId,
|
|
6575
|
+
remoteRoot.id,
|
|
6576
|
+
kind,
|
|
6577
|
+
{
|
|
6578
|
+
message: message2,
|
|
6579
|
+
data,
|
|
6580
|
+
...typeof options.triggerTurn === "boolean" ? { triggerTurn: options.triggerTurn } : {}
|
|
6581
|
+
},
|
|
6582
|
+
remoteRoot.ownerIdentityId
|
|
6583
|
+
);
|
|
6584
|
+
}
|
|
6562
6585
|
this.actorManager.validateDirectMessage(message2, data);
|
|
6563
6586
|
let target2;
|
|
6564
6587
|
try {
|
|
@@ -6775,7 +6798,15 @@ var checkedKernel = (value) => {
|
|
|
6775
6798
|
if (value === void 0 || value === "inherit" || value === "typescript" || value === "python") return value;
|
|
6776
6799
|
throw new Error(`Invalid Fabric agent kernel: ${String(value)}`);
|
|
6777
6800
|
};
|
|
6778
|
-
var runRequest = (args, context, manager, options = {}) => normalizeAgentRunRequest(
|
|
6801
|
+
var runRequest = (args, context, manager, modelsConfig, options = {}) => normalizeAgentRunRequest(
|
|
6802
|
+
{ ...args, timeoutMs: longerTimeoutOverride(args.timeoutMs, manager) },
|
|
6803
|
+
{
|
|
6804
|
+
...manager.config,
|
|
6805
|
+
models: modelsConfig,
|
|
6806
|
+
...context.extensionContext.model ? { inheritedModel: context.extensionContext.model } : {}
|
|
6807
|
+
},
|
|
6808
|
+
options
|
|
6809
|
+
);
|
|
6779
6810
|
var handoffTask = (args) => {
|
|
6780
6811
|
const task = typeof args.task === "string" ? args.task.trim() : "";
|
|
6781
6812
|
const lines = [
|
|
@@ -6950,8 +6981,13 @@ var AgentsProvider = class {
|
|
|
6950
6981
|
if (runner !== "pi") return args;
|
|
6951
6982
|
const model = typeof args.model === "string" ? args.model.trim() : "";
|
|
6952
6983
|
if (!model) return args;
|
|
6984
|
+
const thinking = isFabricThinking(args.thinking) ? args.thinking : aliasThinking(this.modelsConfig().aliases, model);
|
|
6953
6985
|
const resolved = this.#resolvePiModel(model, context);
|
|
6954
|
-
return
|
|
6986
|
+
return {
|
|
6987
|
+
...args,
|
|
6988
|
+
...thinking ? { thinking } : {},
|
|
6989
|
+
...resolved === model ? {} : { model: resolved }
|
|
6990
|
+
};
|
|
6955
6991
|
}
|
|
6956
6992
|
#resolvePiRunBinding(binding, runner, context) {
|
|
6957
6993
|
if (runner !== "pi" || !binding.model) return binding;
|
|
@@ -6984,7 +7020,7 @@ var AgentsProvider = class {
|
|
|
6984
7020
|
"pi"
|
|
6985
7021
|
);
|
|
6986
7022
|
delete handoffArgs.cwd;
|
|
6987
|
-
const request = runRequest({ ...handoffArgs, runner: "pi" }, context, this.manager);
|
|
7023
|
+
const request = runRequest({ ...handoffArgs, runner: "pi" }, context, this.manager, this.modelsConfig());
|
|
6988
7024
|
const kernel = this.manager.resolveKernel(request);
|
|
6989
7025
|
delete handoffArgs.kernel;
|
|
6990
7026
|
if (kernel) handoffArgs.kernel = kernel;
|
|
@@ -7008,6 +7044,7 @@ var AgentsProvider = class {
|
|
|
7008
7044
|
),
|
|
7009
7045
|
context,
|
|
7010
7046
|
this.manager,
|
|
7047
|
+
this.modelsConfig(),
|
|
7011
7048
|
{ allowCwd: false }
|
|
7012
7049
|
);
|
|
7013
7050
|
request.runner = "pi";
|
|
@@ -7049,7 +7086,7 @@ var AgentsProvider = class {
|
|
|
7049
7086
|
switch (actionName) {
|
|
7050
7087
|
case "run": {
|
|
7051
7088
|
const handle = await this.manager.spawn(
|
|
7052
|
-
runRequest(this.#resolvePiModelArgs(args, context), context, this.manager),
|
|
7089
|
+
runRequest(this.#resolvePiModelArgs(args, context), context, this.manager, this.modelsConfig()),
|
|
7053
7090
|
context.signal
|
|
7054
7091
|
);
|
|
7055
7092
|
this.participants.scheduleRefresh();
|
|
@@ -7071,7 +7108,7 @@ var AgentsProvider = class {
|
|
|
7071
7108
|
case "handoff":
|
|
7072
7109
|
return this.handoff(args, context);
|
|
7073
7110
|
case "spawn": {
|
|
7074
|
-
const request = runRequest(this.#resolvePiModelArgs(args, context), context, this.manager);
|
|
7111
|
+
const request = runRequest(this.#resolvePiModelArgs(args, context), context, this.manager, this.modelsConfig());
|
|
7075
7112
|
const kernel = this.manager.resolveKernel(request);
|
|
7076
7113
|
const { kernel: _requestedKernel, ...baseRequest } = request;
|
|
7077
7114
|
const durableRequest = withInheritedSessionPins({
|
|
@@ -8165,7 +8202,7 @@ var emptySchema2 = { type: "object", properties: {}, additionalProperties: false
|
|
|
8165
8202
|
var descriptors3 = [
|
|
8166
8203
|
{
|
|
8167
8204
|
name: "plan",
|
|
8168
|
-
description: "
|
|
8205
|
+
description: "Submit the executor handoff plan only when this session is awaiting one and Fabric's armed advisory or checkpoint requests it. Not a general task planner, checklist, or acceptance-ledger store. Include the outcome, ordered steps with exact files and checks, verification, and risks. Fabric delivers the recorded plan directly to the executor even if this action's return is discarded.",
|
|
8169
8206
|
inputSchema: prewalkPlanSchema,
|
|
8170
8207
|
risk: "write"
|
|
8171
8208
|
},
|
|
@@ -8183,15 +8220,18 @@ var PrewalkProvider = class {
|
|
|
8183
8220
|
this.options = options;
|
|
8184
8221
|
}
|
|
8185
8222
|
name = "prewalk";
|
|
8186
|
-
description = "
|
|
8187
|
-
async list(request,
|
|
8223
|
+
description = "Prewalk executor handoff readiness; not general task planning";
|
|
8224
|
+
async list(request, context) {
|
|
8188
8225
|
const query = request.query?.toLowerCase();
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
)
|
|
8226
|
+
const planRequired = this.controller.planRequired(
|
|
8227
|
+
context.extensionContext.sessionManager.getSessionId()
|
|
8228
|
+
);
|
|
8229
|
+
return descriptors3.filter(
|
|
8230
|
+
(descriptor) => (descriptor.name !== "plan" || planRequired) && (!query || `${descriptor.name} ${descriptor.description}`.toLowerCase().includes(query))
|
|
8231
|
+
);
|
|
8192
8232
|
}
|
|
8193
|
-
async describe(actionName,
|
|
8194
|
-
return
|
|
8233
|
+
async describe(actionName, context) {
|
|
8234
|
+
return (await this.list({}, context)).find((descriptor) => descriptor.name === actionName);
|
|
8195
8235
|
}
|
|
8196
8236
|
prepareArguments(actionName, args) {
|
|
8197
8237
|
return normalizePrewalkArgs(actionName, args);
|
|
@@ -10552,7 +10592,7 @@ var StateStore = class {
|
|
|
10552
10592
|
const validVersion = proof?.version === HEAD_COMMIT_PROOF_VERSION;
|
|
10553
10593
|
const pending = proof?.status === "pending";
|
|
10554
10594
|
const marker = hasValidSequence && validVersion && pending && committedTransitionIds(this.stateEvents()).has(head.transitionId);
|
|
10555
|
-
return
|
|
10595
|
+
return $t(hasValidSequence, validVersion, proof?.status === "committed", pending, marker) ? head : null;
|
|
10556
10596
|
}
|
|
10557
10597
|
const events = this.stateEvents();
|
|
10558
10598
|
const committedIds = committedTransitionIds(events);
|
|
@@ -12206,7 +12246,7 @@ var SchemaController = class {
|
|
|
12206
12246
|
const hypothesisEntry = this.#requireHypothesis(input.hypothesisId);
|
|
12207
12247
|
const hypothesis = hypothesisEntry.value;
|
|
12208
12248
|
const baseline = snapshotWorkspace(this.cwd, [this.mesh.root]);
|
|
12209
|
-
const consumption =
|
|
12249
|
+
const consumption = gt(certificate.status === "active");
|
|
12210
12250
|
assertCertificateFacts([
|
|
12211
12251
|
{ valid: consumption.fst, error: `Schema certificate is ${certificate.status}` },
|
|
12212
12252
|
{ valid: certificate.hypothesisId === input.hypothesisId, error: "Schema certificate is bound to a different hypothesis" },
|
|
@@ -13231,6 +13271,43 @@ ${summary.slice(-1500)}`;
|
|
|
13231
13271
|
}
|
|
13232
13272
|
};
|
|
13233
13273
|
|
|
13274
|
+
// src/core/shell-timing.ts
|
|
13275
|
+
var FabricShellTimingBridge = class {
|
|
13276
|
+
constructor(events, sessionId, jobs) {
|
|
13277
|
+
this.events = events;
|
|
13278
|
+
this.sessionId = sessionId;
|
|
13279
|
+
this.#unsubscribe = jobs.subscribe(({ type, job }) => {
|
|
13280
|
+
if (type === "spilled" && !this.#active.has(job.id)) {
|
|
13281
|
+
this.#active.set(job.id, job.tool);
|
|
13282
|
+
this.#emit(job.id, job.tool, "started");
|
|
13283
|
+
} else if (type === "finished" && this.#active.delete(job.id)) {
|
|
13284
|
+
this.#emit(job.id, job.tool, "finished");
|
|
13285
|
+
}
|
|
13286
|
+
});
|
|
13287
|
+
}
|
|
13288
|
+
#active = /* @__PURE__ */ new Map();
|
|
13289
|
+
#unsubscribe;
|
|
13290
|
+
#emit(taskId, tool, phase) {
|
|
13291
|
+
const payload = {
|
|
13292
|
+
version: 1,
|
|
13293
|
+
sessionId: this.sessionId,
|
|
13294
|
+
taskId,
|
|
13295
|
+
tool,
|
|
13296
|
+
phase,
|
|
13297
|
+
timestamp: Date.now()
|
|
13298
|
+
};
|
|
13299
|
+
try {
|
|
13300
|
+
this.events.emit(FABRIC_SHELL_TIMING_EVENT, payload);
|
|
13301
|
+
} catch {
|
|
13302
|
+
}
|
|
13303
|
+
}
|
|
13304
|
+
close() {
|
|
13305
|
+
this.#unsubscribe();
|
|
13306
|
+
for (const [id, tool] of this.#active) this.#emit(id, tool, "finished");
|
|
13307
|
+
this.#active.clear();
|
|
13308
|
+
}
|
|
13309
|
+
};
|
|
13310
|
+
|
|
13234
13311
|
// src/fabric-runtime-state.ts
|
|
13235
13312
|
var inheritedCapabilityRequirements = () => {
|
|
13236
13313
|
const source = process.env.PI_FABRIC_CAPABILITY_REQUIREMENTS;
|
|
@@ -13267,6 +13344,7 @@ var FabricRuntimeState = class {
|
|
|
13267
13344
|
#agents;
|
|
13268
13345
|
#completionInbox;
|
|
13269
13346
|
#shellInbox;
|
|
13347
|
+
#shellTiming;
|
|
13270
13348
|
#actors;
|
|
13271
13349
|
#jevObservationHost;
|
|
13272
13350
|
#globalActors;
|
|
@@ -13369,7 +13447,10 @@ var FabricRuntimeState = class {
|
|
|
13369
13447
|
return this.#componentLoader?.graph() ?? { components: [], edges: [], cycles: [] };
|
|
13370
13448
|
}
|
|
13371
13449
|
modelGuidance() {
|
|
13372
|
-
return
|
|
13450
|
+
return [
|
|
13451
|
+
...this.#config ? builtinModelGuidance(this.#config) : [],
|
|
13452
|
+
...this.#componentSupervisor?.guidance() ?? []
|
|
13453
|
+
];
|
|
13373
13454
|
}
|
|
13374
13455
|
participantInfos(options = {}) {
|
|
13375
13456
|
return this.#participants?.list(options) ?? [];
|
|
@@ -13400,6 +13481,10 @@ var FabricRuntimeState = class {
|
|
|
13400
13481
|
try {
|
|
13401
13482
|
await this.#closeInternal();
|
|
13402
13483
|
this.#shellJobs = new FabricShellJobStore();
|
|
13484
|
+
const sessionId2 = this.#managedHost ? void 0 : context.sessionManager?.getSessionId?.();
|
|
13485
|
+
if (sessionId2 && this.pi.events) {
|
|
13486
|
+
this.#shellTiming = new FabricShellTimingBridge(this.pi.events, sessionId2, this.#shellJobs);
|
|
13487
|
+
}
|
|
13403
13488
|
} finally {
|
|
13404
13489
|
this.#suppressResidentGuidanceSync = false;
|
|
13405
13490
|
}
|
|
@@ -13867,12 +13952,6 @@ ${escapeXmlText(text)}
|
|
|
13867
13952
|
provider: "jev",
|
|
13868
13953
|
description: "Shell orchestration and explicit typed Jev decisions",
|
|
13869
13954
|
create: (component) => {
|
|
13870
|
-
component.guide({
|
|
13871
|
-
label: "jev-programs",
|
|
13872
|
-
models: ["*/*"],
|
|
13873
|
-
targets: ["main", "participant"],
|
|
13874
|
-
content: "Jev supplies typed Choice, Noul, and Score judgments, not generated text. Prefer shell-first orchestration: granted pi.bash runs existing CLIs; tasks.wait/watch await bounded receipts/monitor batches without polling or inference. Use UI-only monitors to avoid Main wakeups. Browser/macOS tools need no Fabric bridge. Code owns commands; never execute a model answer as shell source. Omit jev.evaluate and set maxEvaluations:0 for deterministic programs (host auto approvals remain independent). Use jev.evaluate only for explicit authorized batched questions; jev.run/spawn for isolated TypeScript programs that may loop using input, program.sleep, program.emit, and exact requires capabilities. run/wait return terminal envelopes (join aliases wait for both agents and Jev); inspect state and result/error. Programs and detached tasks are session-owned, not restart-durable. jev.status/stop control programs; tasks.stop separately stops their detached tasks. Observation timeout/cancellation never cancels the task; keep task IDs and finite process deadlines. For Main-turn advisors, spawn with observe, await program.nextEvent without polling, and opt into bounded context fields. program.advise requires jev.advise and explicit delivery; default is record-only. Return the observer ID without waiting in Main; Escape/Main abort cancels observers. Use /login jev, TYPESAFE_API_KEY, /login openrouter, OPENROUTER_API_KEY, /login vercel-ai-gateway, AI_GATEWAY_API_KEY, or a trusted credentialCommand. Credentials stay host-side; status never retrieves a key. See docs/jev.md for schemas, budgets, and shell/CLI composition."
|
|
13875
|
-
});
|
|
13876
13955
|
const observationHost = identity.kind === "main" ? new JevObservationHost(context.sessionManager.getSessionId(), (advice) => {
|
|
13877
13956
|
this.pi.sendMessage({
|
|
13878
13957
|
customType: "pi-fabric-jev",
|
|
@@ -14259,6 +14338,8 @@ ${escapeXmlText(advice.message)}
|
|
|
14259
14338
|
this.#completionInbox = void 0;
|
|
14260
14339
|
this.#shellInbox?.close();
|
|
14261
14340
|
this.#shellInbox = void 0;
|
|
14341
|
+
this.#shellTiming?.close();
|
|
14342
|
+
this.#shellTiming = void 0;
|
|
14262
14343
|
this.#suppressResidentGuidanceSync = true;
|
|
14263
14344
|
await this.#deactivateRepairs();
|
|
14264
14345
|
clearActiveCompiledSurface();
|
|
@@ -14349,6 +14430,8 @@ ${escapeXmlText(advice.message)}
|
|
|
14349
14430
|
this.#completionInbox = void 0;
|
|
14350
14431
|
this.#shellInbox?.close();
|
|
14351
14432
|
this.#shellInbox = void 0;
|
|
14433
|
+
this.#shellTiming?.close();
|
|
14434
|
+
this.#shellTiming = void 0;
|
|
14352
14435
|
await this.shellJobs.close();
|
|
14353
14436
|
await this.#deactivateRepairs();
|
|
14354
14437
|
if (!this.#registry) return;
|