pi-fabric 0.76.0 → 0.76.2
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/chunks/{chunk-NI3ZXJZD.js → chunk-PAAXKXWT.js} +293 -1
- package/dist/chunks/{chunk-NI3ZXJZD.js.map → chunk-PAAXKXWT.js.map} +3 -3
- package/dist/chunks/{fabric-runtime-state-FBAJTXB2.js → fabric-runtime-state-VCLWTB55.js} +7 -5
- package/dist/chunks/fabric-runtime-state-VCLWTB55.js.map +7 -0
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/fabric-exec-arguments.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/index.js +71 -32
- package/dist/index.js.map +3 -3
- package/dist/runtime/guest-code-repair.d.ts +2 -0
- package/dist/runtime/guest-code-repair.d.ts.map +1 -0
- package/dist/type-error-guidance.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/fabric-runtime-state-FBAJTXB2.js.map +0 -7
|
@@ -28,9 +28,10 @@ import {
|
|
|
28
28
|
claimFabricHandoff,
|
|
29
29
|
createProviderComponent,
|
|
30
30
|
expandSkillDirMarkersForRead,
|
|
31
|
+
repairFabricGuestCode,
|
|
31
32
|
resolveFabricIdentity,
|
|
32
33
|
runFabricHandoffAtBoundary
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PAAXKXWT.js";
|
|
34
35
|
import {
|
|
35
36
|
AgentTranscriptReader,
|
|
36
37
|
MAX_WRITE_DIFF_BYTES,
|
|
@@ -2827,8 +2828,9 @@ var FabricExecutionService = class {
|
|
|
2827
2828
|
inputSchema: entry.definition.parameters
|
|
2828
2829
|
})) ?? []
|
|
2829
2830
|
) : void 0;
|
|
2831
|
+
const code = repairFabricGuestCode(options.code);
|
|
2830
2832
|
const checked = dependencies.typeCheckFabricCode(
|
|
2831
|
-
|
|
2833
|
+
code,
|
|
2832
2834
|
dependencies.guestTypeDeclarations(effectiveFullCodeMode, {
|
|
2833
2835
|
excludeGlobals: [...unavailable.keys()],
|
|
2834
2836
|
dynamic: dependencies.buildDynamicGuestDeclarations(guestTypeSources),
|
|
@@ -2970,7 +2972,7 @@ var FabricExecutionService = class {
|
|
|
2970
2972
|
);
|
|
2971
2973
|
const requestedTimeoutMs = typeof options.requestedTimeoutMs === "number" && Number.isFinite(options.requestedTimeoutMs) ? Math.max(1, Math.floor(options.requestedTimeoutMs)) : 0;
|
|
2972
2974
|
const effectiveTimeoutMs = Math.max(
|
|
2973
|
-
codeUsesOrchestration(
|
|
2975
|
+
codeUsesOrchestration(code) ? orchestrationTimeoutMs : this.config.executor.timeoutMs,
|
|
2974
2976
|
Math.min(requestedTimeoutMs, this.config.executor.maxTimeoutMs)
|
|
2975
2977
|
);
|
|
2976
2978
|
const minimumTimeoutMsForHostCall = (ref, args) => {
|
|
@@ -3070,7 +3072,7 @@ var FabricExecutionService = class {
|
|
|
3070
3072
|
this.#runtimeKind = runtimeKind;
|
|
3071
3073
|
}
|
|
3072
3074
|
sandboxResult = await this.#runtime.execute(
|
|
3073
|
-
|
|
3075
|
+
code,
|
|
3074
3076
|
async (ref, args, runtimeSignal) => {
|
|
3075
3077
|
const callContext = { ...baseContext, signal: runtimeSignal };
|
|
3076
3078
|
switch (ref) {
|
|
@@ -12247,4 +12249,4 @@ var deepAssign = (target, source) => {
|
|
|
12247
12249
|
export {
|
|
12248
12250
|
FabricRuntimeState
|
|
12249
12251
|
};
|
|
12250
|
-
//# sourceMappingURL=fabric-runtime-state-
|
|
12252
|
+
//# sourceMappingURL=fabric-runtime-state-VCLWTB55.js.map
|