pi-fabric 0.132.3 → 0.132.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/async-settlement.d.ts +1 -1
- package/dist/async-settlement.d.ts.map +1 -1
- package/dist/chunks/{chunk-QUUEGKZF.js → chunk-4Y5KEJP4.js} +2 -2
- package/dist/chunks/{chunk-5QSOACJN.js → chunk-5PSEJOJB.js} +2 -2
- package/dist/chunks/{chunk-5INZBPCM.js → chunk-73PV4YUJ.js} +10 -8
- package/dist/chunks/{chunk-5INZBPCM.js.map → chunk-73PV4YUJ.js.map} +2 -2
- package/dist/chunks/{chunk-7TB7NXSL.js → chunk-7CIQQOOD.js} +11 -3
- package/dist/chunks/{chunk-7TB7NXSL.js.map → chunk-7CIQQOOD.js.map} +2 -2
- package/dist/chunks/{chunk-BLDTTLFP.js → chunk-BDYZQ6GQ.js} +2 -2
- package/dist/chunks/{chunk-COKAE6IL.js → chunk-F6GIK5GO.js} +4 -4
- package/dist/chunks/{chunk-T2C23JGZ.js → chunk-FMEOJJ6Y.js} +2 -2
- package/dist/chunks/{chunk-2KAQJY5W.js → chunk-GGQ43B7T.js} +2 -2
- package/dist/chunks/{chunk-QTVJV3YR.js → chunk-MGFSQXAJ.js} +4 -4
- package/dist/chunks/{chunk-QTVJV3YR.js.map → chunk-MGFSQXAJ.js.map} +2 -2
- package/dist/chunks/{chunk-7PF352LX.js → chunk-MTAFECXB.js} +2 -2
- package/dist/chunks/{chunk-3VK6UGAN.js → chunk-O5SHIUIL.js} +6 -1
- package/dist/chunks/chunk-O5SHIUIL.js.map +7 -0
- package/dist/chunks/{chunk-LGZED5WL.js → chunk-R7XIJOUY.js} +2 -2
- package/dist/chunks/{chunk-KIFOEBYJ.js → chunk-VEXCD3RA.js} +2 -2
- package/dist/chunks/{chunk-UEVXLDDO.js → chunk-YO5UIWDY.js} +3 -3
- package/dist/compaction/claim-events.js +3 -3
- package/dist/compaction/hook.js +2 -2
- package/dist/compaction/owner.js +3 -3
- package/dist/compaction/threshold.d.ts.map +1 -1
- package/dist/core/action-registry.d.ts +1 -1
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +2 -2
- package/dist/core/provider-operations.js +1 -1
- package/dist/durable-extension.js +1 -1
- package/dist/durable-extension.js.map +1 -1
- package/dist/extension-bootstrap.js +4 -4
- package/dist/extension.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +9 -9
- package/dist/fabric-runtime-state.js.map +2 -2
- package/dist/index.js +4 -4
- package/dist/jev/client.js +2 -2
- package/dist/jev.js +4 -4
- package/dist/providers/jev-provider.js +4 -4
- package/dist/residency/host.js +4 -4
- package/dist/residency/pi-entry.js +4 -4
- package/dist/runtime/cpython-runtime.js +1 -1
- package/dist/runtime/monty-runtime.js +1 -1
- package/dist/runtime/node-process-runtime.js +3 -3
- package/dist/runtime/quickjs-runtime.js +2 -2
- package/dist/runtime/typescript-kernel.js +3 -3
- package/docs/agents.md +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-3VK6UGAN.js.map +0 -7
- /package/dist/chunks/{chunk-QUUEGKZF.js.map → chunk-4Y5KEJP4.js.map} +0 -0
- /package/dist/chunks/{chunk-5QSOACJN.js.map → chunk-5PSEJOJB.js.map} +0 -0
- /package/dist/chunks/{chunk-BLDTTLFP.js.map → chunk-BDYZQ6GQ.js.map} +0 -0
- /package/dist/chunks/{chunk-COKAE6IL.js.map → chunk-F6GIK5GO.js.map} +0 -0
- /package/dist/chunks/{chunk-T2C23JGZ.js.map → chunk-FMEOJJ6Y.js.map} +0 -0
- /package/dist/chunks/{chunk-2KAQJY5W.js.map → chunk-GGQ43B7T.js.map} +0 -0
- /package/dist/chunks/{chunk-7PF352LX.js.map → chunk-MTAFECXB.js.map} +0 -0
- /package/dist/chunks/{chunk-LGZED5WL.js.map → chunk-R7XIJOUY.js.map} +0 -0
- /package/dist/chunks/{chunk-KIFOEBYJ.js.map → chunk-VEXCD3RA.js.map} +0 -0
- /package/dist/chunks/{chunk-UEVXLDDO.js.map → chunk-YO5UIWDY.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const throwIfAborted: (signal: AbortSignal | undefined) => void;
|
|
2
2
|
export declare const runAbortable: <T>(signal: AbortSignal | undefined, operation: () => T | PromiseLike<T>) => Promise<T>;
|
|
3
|
-
export declare const settleWithin: (operations: Iterable<PromiseLike<unknown>>, timeoutMs: number) => Promise<boolean>;
|
|
3
|
+
export declare const settleWithin: (operations: Iterable<PromiseLike<unknown>>, timeoutMs: number, signal?: AbortSignal) => Promise<boolean>;
|
|
4
4
|
//# sourceMappingURL=async-settlement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-settlement.d.ts","sourceRoot":"","sources":["../src/async-settlement.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,GAAG,SAAS,KAAG,IAEhE,CAAC;AA0BF,eAAO,MAAM,YAAY,GAAI,CAAC,EAC5B,QAAQ,WAAW,GAAG,SAAS,EAC/B,WAAW,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAClC,OAAO,CAAC,CAAC,CAOX,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,YAAY,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,EAC1C,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"async-settlement.d.ts","sourceRoot":"","sources":["../src/async-settlement.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,GAAG,SAAS,KAAG,IAEhE,CAAC;AA0BF,eAAO,MAAM,YAAY,GAAI,CAAC,EAC5B,QAAQ,WAAW,GAAG,SAAS,EAC/B,WAAW,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAClC,OAAO,CAAC,CAAC,CAOX,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,YAAY,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,EAC1C,WAAW,MAAM,EACjB,SAAS,WAAW,KACnB,OAAO,CAAC,OAAO,CAwBjB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fabricExecTitleHintCached,
|
|
3
3
|
modelCompactionKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O5SHIUIL.js";
|
|
5
5
|
import {
|
|
6
6
|
normalizeRunDisplay
|
|
7
7
|
} from "./chunk-OZCJU3PZ.js";
|
|
@@ -2097,4 +2097,4 @@ export {
|
|
|
2097
2097
|
compactionHandlers,
|
|
2098
2098
|
registerCompactionHook
|
|
2099
2099
|
};
|
|
2100
|
-
//# sourceMappingURL=chunk-
|
|
2100
|
+
//# sourceMappingURL=chunk-4Y5KEJP4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fabricCompactionVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4Y5KEJP4.js";
|
|
4
4
|
|
|
5
5
|
// src/compaction/owner.ts
|
|
6
6
|
var COMPACTION_OWNERSHIP_DOC = "docs/compaction.md#pi-vcc-precedence";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
ownershipWarning,
|
|
55
55
|
CompactionOwnerObserver
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-5PSEJOJB.js.map
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
import {
|
|
116
116
|
compactAtConfiguredThreshold,
|
|
117
117
|
fabricExecTitleHintCached
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-O5SHIUIL.js";
|
|
119
119
|
import {
|
|
120
120
|
fabricWriteBindings
|
|
121
121
|
} from "./chunk-SZUXWOO7.js";
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
ApprovalController,
|
|
138
138
|
FabricAutoApprovalClassifier,
|
|
139
139
|
FabricSessionApprovals
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-GGQ43B7T.js";
|
|
141
141
|
import {
|
|
142
142
|
FABRIC_ACTION_POLICY_REGISTER_EVENT,
|
|
143
143
|
FABRIC_COMPACTION_OWNER_EVENT,
|
|
@@ -6553,18 +6553,20 @@ function createFabricExtension(entryUrl) {
|
|
|
6553
6553
|
}
|
|
6554
6554
|
});
|
|
6555
6555
|
pi.on("agent_settled", async (event, context) => {
|
|
6556
|
+
const interrupted = event.aborted || context.signal?.aborted === true;
|
|
6556
6557
|
if (state.managedHostOptions) {
|
|
6557
|
-
if (state.config.compaction.engine === "fabric") await compactAtConfiguredThreshold(context, state.config);
|
|
6558
|
+
if (!interrupted && state.config.compaction.engine === "fabric") await compactAtConfiguredThreshold(context, state.config);
|
|
6558
6559
|
if (state.initialized) await state.publishHostLifecycle("pi.agent_settled", event);
|
|
6559
6560
|
return;
|
|
6560
6561
|
}
|
|
6561
6562
|
if (!state.initialized) {
|
|
6562
|
-
if (!compactionOwner()) await compactAtConfiguredThreshold(context, state.config);
|
|
6563
|
+
if (!interrupted && !compactionOwner()) await compactAtConfiguredThreshold(context, state.config);
|
|
6563
6564
|
return;
|
|
6564
6565
|
}
|
|
6565
6566
|
const sessionId = context.sessionManager.getSessionId();
|
|
6567
|
+
if (interrupted) state.compact.cancel();
|
|
6566
6568
|
const settledInPlace = await settleInPlacePrewalk(state.prewalk, pi, context, {
|
|
6567
|
-
compactOnReturn: state.config.prewalk.compactOnReturn,
|
|
6569
|
+
compactOnReturn: !interrupted && state.config.prewalk.compactOnReturn,
|
|
6568
6570
|
compact: state.compact
|
|
6569
6571
|
});
|
|
6570
6572
|
if (!settledInPlace && state.prewalk.settleTask(sessionId)) {
|
|
@@ -6579,8 +6581,8 @@ function createFabricExtension(entryUrl) {
|
|
|
6579
6581
|
} else {
|
|
6580
6582
|
state.prewalkDrift.drop(sessionId);
|
|
6581
6583
|
}
|
|
6582
|
-
await state.compact.maybeCommit(context);
|
|
6583
|
-
if (!compactionOwner()) {
|
|
6584
|
+
if (!interrupted) await state.compact.maybeCommit(context);
|
|
6585
|
+
if (!interrupted && !compactionOwner()) {
|
|
6584
6586
|
await compactAtConfiguredThreshold(
|
|
6585
6587
|
context,
|
|
6586
6588
|
state.config,
|
|
@@ -7037,4 +7039,4 @@ export {
|
|
|
7037
7039
|
FABRIC_MANAGED_HOST_VERSION,
|
|
7038
7040
|
createFabricExtension
|
|
7039
7041
|
};
|
|
7040
|
-
//# sourceMappingURL=chunk-
|
|
7042
|
+
//# sourceMappingURL=chunk-73PV4YUJ.js.map
|