pi-fabric 0.82.3 → 0.82.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/{chunks/claude-cli-RJWGOSBV.js → agents/claude-cli.js} +2 -2
- package/dist/{chunks/compact-control-HOMVGI4X.js → agents/compact-control.js} +1 -1
- package/dist/{chunks/veda-cli-GKK22MPY.js → agents/veda-cli.js} +2 -2
- package/dist/chunks/{chunk-P2DSRJQX.js → chunk-65QIOGTE.js} +2 -2
- package/dist/chunks/chunk-7363CD5A.js +38 -0
- package/dist/chunks/chunk-7363CD5A.js.map +7 -0
- package/dist/chunks/{chunk-2YCOXT4W.js → chunk-77FQHHZD.js} +2 -2
- package/dist/chunks/{chunk-2NCFIZU2.js → chunk-7R536FSR.js} +26 -2
- package/dist/chunks/chunk-7R536FSR.js.map +7 -0
- package/dist/chunks/{chunk-FRHBI5QB.js → chunk-AIVWFEAN.js} +2 -2
- package/dist/chunks/{chunk-WASXKJAD.js → chunk-D6BNJP5M.js} +3 -3
- package/dist/chunks/{chunk-QJF6UH3U.js → chunk-IFBBLV7Y.js} +157 -5
- package/dist/chunks/chunk-IFBBLV7Y.js.map +7 -0
- package/dist/chunks/{chunk-3SGRTVFP.js → chunk-KAD7UWT2.js} +41 -2
- package/dist/chunks/{chunk-3SGRTVFP.js.map → chunk-KAD7UWT2.js.map} +2 -2
- package/dist/chunks/{chunk-XE54YPXQ.js → chunk-ODO6COKA.js} +778 -175
- package/dist/chunks/chunk-ODO6COKA.js.map +7 -0
- package/dist/chunks/{chunk-IFXEB7V2.js → chunk-QPS3X45K.js} +9 -9
- package/dist/chunks/{chunk-QP6VA6AF.js → chunk-ROIKKEUN.js} +2 -2
- package/dist/chunks/{chunk-JNACUKKJ.js → chunk-SL5QT2BU.js} +80 -3
- package/dist/chunks/chunk-SL5QT2BU.js.map +7 -0
- package/dist/chunks/{chunk-247WQDBJ.js → chunk-XWBQGXWG.js} +4 -4
- package/dist/chunks/{chunk-ARRNL675.js → chunk-YDRIVT3B.js} +4 -4
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/core/action-registry.js +4 -4
- package/dist/core/atomic-write.d.ts +1 -0
- package/dist/core/atomic-write.d.ts.map +1 -1
- package/dist/core/file-lock.d.ts +1 -0
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/stable-hash.d.ts +1 -0
- package/dist/core/stable-hash.d.ts.map +1 -1
- package/dist/entropy/compiled-store.d.ts +2 -0
- package/dist/entropy/compiled-store.d.ts.map +1 -1
- package/dist/entropy/compiled-surface.d.ts +2 -0
- package/dist/entropy/compiled-surface.d.ts.map +1 -1
- package/dist/entropy/compiler.d.ts +1 -0
- package/dist/entropy/compiler.d.ts.map +1 -1
- package/dist/entropy/corpus.d.ts +6 -0
- package/dist/entropy/corpus.d.ts.map +1 -1
- package/dist/entropy/index.d.ts +1 -0
- package/dist/entropy/index.d.ts.map +1 -1
- package/dist/entropy/index.js +44 -6
- package/dist/entropy/meter.d.ts +1 -0
- package/dist/entropy/meter.d.ts.map +1 -1
- package/dist/entropy/pool-store.d.ts +2 -0
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/entropy/pool.d.ts +1 -0
- package/dist/entropy/pool.d.ts.map +1 -1
- package/dist/entropy/presentation.d.ts +12 -0
- package/dist/entropy/presentation.d.ts.map +1 -0
- package/dist/entropy/sessions.d.ts +8 -0
- package/dist/entropy/sessions.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/{chunks/fabric-runtime-state-DOT6L2A7.js → fabric-runtime-state.js} +117 -69
- package/dist/fabric-runtime-state.js.map +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +190 -129
- package/dist/index.js.map +2 -2
- package/dist/protocol.js +2 -2
- package/dist/repairs/compiler.d.ts +1 -0
- package/dist/repairs/compiler.d.ts.map +1 -1
- package/dist/repairs/store.d.ts +1 -0
- package/dist/repairs/store.d.ts.map +1 -1
- package/dist/residency/actor-client.js +2 -2
- package/dist/residency/host.js +7 -7
- package/dist/residency/pi-entry.js +7 -7
- package/dist/{chunks/core-override-guest-types-CNQFOKZO.js → runtime/core-override-guest-types.js} +3 -3
- package/dist/{chunks/dynamic-guest-types-7ZQD4IZT.js → runtime/dynamic-guest-types.js} +2 -2
- package/dist/{chunks/guest-types-63GXDKT5.js → runtime/guest-types.js} +2 -2
- package/dist/{chunks/node-process-runtime-P3BED5LV.js → runtime/node-process-runtime.js} +9 -9
- package/dist/runtime/quickjs-runtime.js +12 -0
- package/dist/{chunks/type-checker-NTAWUHJL.js → runtime/type-checker.js} +2 -2
- package/dist/{chunks/scanner-4IGGTOEI.js → speculation/scanner.js} +2 -2
- package/dist/{chunks/dashboard-QN345VYN.js → ui/dashboard.js} +9 -9
- package/dist/ui/highlight.d.ts.map +1 -1
- package/dist/{chunks/model-picker-HGNRKC4H.js → ui/model-picker.js} +2 -2
- package/dist/{chunks/settings-WRVN4VF5.js → ui/settings.js} +8 -8
- package/dist/ui/shiki-language.d.ts +7 -0
- package/dist/ui/shiki-language.d.ts.map +1 -0
- package/dist/{chunks/options-Z5TJMHPO.js → worker/options.js} +1 -1
- package/dist/{chunks/run-record-MUPSG4IT.js → worker/run-record.js} +1 -1
- package/dist/{chunks/session-export-66YJKIEH.js → worker/session-export.js} +1 -1
- package/dist/worker.js +6 -6
- package/dist/worker.js.map +1 -1
- package/docs/entropy.md +49 -25
- package/docs/repairs.md +11 -1
- package/package.json +4 -3
- package/dist/chunks/chunk-2NCFIZU2.js.map +0 -7
- package/dist/chunks/chunk-CIJPRYAP.js +0 -16
- package/dist/chunks/chunk-CIJPRYAP.js.map +0 -7
- package/dist/chunks/chunk-JNACUKKJ.js.map +0 -7
- package/dist/chunks/chunk-QJF6UH3U.js.map +0 -7
- package/dist/chunks/chunk-XE54YPXQ.js.map +0 -7
- package/dist/chunks/fabric-runtime-state-DOT6L2A7.js.map +0 -7
- package/dist/chunks/quickjs-runtime-RUF33444.js +0 -12
- /package/dist/{chunks/claude-cli-RJWGOSBV.js.map → agents/claude-cli.js.map} +0 -0
- /package/dist/{chunks/compact-control-HOMVGI4X.js.map → agents/compact-control.js.map} +0 -0
- /package/dist/{chunks/guest-types-63GXDKT5.js.map → agents/veda-cli.js.map} +0 -0
- /package/dist/chunks/{chunk-P2DSRJQX.js.map → chunk-65QIOGTE.js.map} +0 -0
- /package/dist/chunks/{chunk-2YCOXT4W.js.map → chunk-77FQHHZD.js.map} +0 -0
- /package/dist/chunks/{chunk-FRHBI5QB.js.map → chunk-AIVWFEAN.js.map} +0 -0
- /package/dist/chunks/{chunk-WASXKJAD.js.map → chunk-D6BNJP5M.js.map} +0 -0
- /package/dist/chunks/{chunk-IFXEB7V2.js.map → chunk-QPS3X45K.js.map} +0 -0
- /package/dist/chunks/{chunk-QP6VA6AF.js.map → chunk-ROIKKEUN.js.map} +0 -0
- /package/dist/chunks/{chunk-247WQDBJ.js.map → chunk-XWBQGXWG.js.map} +0 -0
- /package/dist/chunks/{chunk-ARRNL675.js.map → chunk-YDRIVT3B.js.map} +0 -0
- /package/dist/{chunks/core-override-guest-types-CNQFOKZO.js.map → runtime/core-override-guest-types.js.map} +0 -0
- /package/dist/{chunks/dynamic-guest-types-7ZQD4IZT.js.map → runtime/dynamic-guest-types.js.map} +0 -0
- /package/dist/{chunks/model-picker-HGNRKC4H.js.map → runtime/guest-types.js.map} +0 -0
- /package/dist/{chunks/node-process-runtime-P3BED5LV.js.map → runtime/node-process-runtime.js.map} +0 -0
- /package/dist/{chunks/quickjs-runtime-RUF33444.js.map → runtime/quickjs-runtime.js.map} +0 -0
- /package/dist/{chunks/type-checker-NTAWUHJL.js.map → runtime/type-checker.js.map} +0 -0
- /package/dist/{chunks/scanner-4IGGTOEI.js.map → speculation/scanner.js.map} +0 -0
- /package/dist/{chunks/dashboard-QN345VYN.js.map → ui/dashboard.js.map} +0 -0
- /package/dist/{chunks/veda-cli-GKK22MPY.js.map → ui/model-picker.js.map} +0 -0
- /package/dist/{chunks/settings-WRVN4VF5.js.map → ui/settings.js.map} +0 -0
- /package/dist/{chunks/options-Z5TJMHPO.js.map → worker/options.js.map} +0 -0
- /package/dist/{chunks/run-record-MUPSG4IT.js.map → worker/run-record.js.map} +0 -0
- /package/dist/{chunks/session-export-66YJKIEH.js.map → worker/session-export.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
discoverClaudeModels,
|
|
6
6
|
mapClaudeTools,
|
|
7
7
|
normalizeClaudeModel
|
|
8
|
-
} from "
|
|
8
|
+
} from "../chunks/chunk-PM5I335G.js";
|
|
9
9
|
export {
|
|
10
10
|
buildClaudeArguments,
|
|
11
11
|
claudeEffort,
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
mapClaudeTools,
|
|
15
15
|
normalizeClaudeModel
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=claude-cli
|
|
17
|
+
//# sourceMappingURL=claude-cli.js.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
mapVedaTools,
|
|
4
4
|
normalizeVedaModel,
|
|
5
5
|
vedaReasoning
|
|
6
|
-
} from "
|
|
6
|
+
} from "../chunks/chunk-VPPIJRNZ.js";
|
|
7
7
|
export {
|
|
8
8
|
buildVedaArguments,
|
|
9
9
|
mapVedaTools,
|
|
10
10
|
normalizeVedaModel,
|
|
11
11
|
vedaReasoning
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=veda-cli
|
|
13
|
+
//# sourceMappingURL=veda-cli.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-VMSGYKJS.js";
|
|
7
7
|
import {
|
|
8
8
|
renameAtomic
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KAD7UWT2.js";
|
|
10
10
|
import {
|
|
11
11
|
PI_CORE_TOOL_NAME_SET
|
|
12
12
|
} from "./chunk-YU62DDKK.js";
|
|
@@ -1206,4 +1206,4 @@ export {
|
|
|
1206
1206
|
loadFabricConfig,
|
|
1207
1207
|
saveFabricConfig
|
|
1208
1208
|
};
|
|
1209
|
-
//# sourceMappingURL=chunk-
|
|
1209
|
+
//# sourceMappingURL=chunk-65QIOGTE.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/core/stable-hash.ts
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
var stableJsonValue = (value) => {
|
|
4
|
+
if (Array.isArray(value)) return value.map(stableJsonValue);
|
|
5
|
+
if (value instanceof URL) return value.href;
|
|
6
|
+
if (value === null || typeof value !== "object") return value;
|
|
7
|
+
return Object.fromEntries(
|
|
8
|
+
Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, nested]) => [key, stableJsonValue(nested)])
|
|
9
|
+
);
|
|
10
|
+
};
|
|
11
|
+
var stableJsonHash = (value) => createHash("sha256").update(JSON.stringify(stableJsonValue(value))).digest("hex");
|
|
12
|
+
var STABLE_HASH_ARRAY_CHUNK = 64;
|
|
13
|
+
var stableJsonHashArrayAsync = async (values) => {
|
|
14
|
+
const hash = createHash("sha256");
|
|
15
|
+
hash.update("[");
|
|
16
|
+
let first = true;
|
|
17
|
+
let batch = [];
|
|
18
|
+
const flush = async () => {
|
|
19
|
+
if (batch.length === 0) return;
|
|
20
|
+
hash.update(`${first ? "" : ","}${batch.join(",")}`);
|
|
21
|
+
first = false;
|
|
22
|
+
batch = [];
|
|
23
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
24
|
+
};
|
|
25
|
+
for (const value of values) {
|
|
26
|
+
batch.push(JSON.stringify(stableJsonValue(value)) ?? "null");
|
|
27
|
+
if (batch.length >= STABLE_HASH_ARRAY_CHUNK) await flush();
|
|
28
|
+
}
|
|
29
|
+
if (batch.length > 0) hash.update(`${first ? "" : ","}${batch.join(",")}`);
|
|
30
|
+
hash.update("]");
|
|
31
|
+
return hash.digest("hex");
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
stableJsonHash,
|
|
36
|
+
stableJsonHashArrayAsync
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-7363CD5A.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/core/stable-hash.ts"],
|
|
4
|
+
"sourcesContent": ["import { createHash } from \"node:crypto\";\n\n// Deterministic JSON shaping for hashing: object keys sort recursively so\n// equivalent values hash identically regardless of key insertion order. URL\n// instances hash by href \u2014 they expose no enumerable own properties, so\n// untreated they would all collapse to \"{}\" (MCP server definitions carry\n// `URL` instances for HTTP transports).\nconst stableJsonValue = (value: unknown): unknown => {\n if (Array.isArray(value)) return value.map(stableJsonValue);\n if (value instanceof URL) return value.href;\n if (value === null || typeof value !== \"object\") return value;\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>)\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([key, nested]) => [key, stableJsonValue(nested)]),\n );\n};\n\nexport const stableJsonHash = (value: unknown): string =>\n createHash(\"sha256\").update(JSON.stringify(stableJsonValue(value))).digest(\"hex\");\nconst STABLE_HASH_ARRAY_CHUNK = 64;\n\n// Cooperative canonical hashing for large evidence arrays. Each element is\n// normalized by the same pure shaper as stableJsonHash; fixed 64-record chunks\n// keep extension hooks responsive without changing a byte of hash input.\nexport const stableJsonHashArrayAsync = async (\n values: readonly unknown[],\n): Promise<string> => {\n const hash = createHash(\"sha256\");\n hash.update(\"[\");\n let first = true;\n let batch: string[] = [];\n const flush = async (): Promise<void> => {\n if (batch.length === 0) return;\n hash.update(`${first ? \"\" : \",\"}${batch.join(\",\")}`);\n first = false;\n batch = [];\n await new Promise((resolve) => setImmediate(resolve));\n };\n for (const value of values) {\n // JSON.stringify renders undefined array entries as null.\n batch.push(JSON.stringify(stableJsonValue(value)) ?? \"null\");\n if (batch.length >= STABLE_HASH_ARRAY_CHUNK) await flush();\n }\n if (batch.length > 0) hash.update(`${first ? \"\" : \",\"}${batch.join(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KAAK,GAAG,CAAC,EAAE;AACzE,OAAK,OAAO,GAAG;AACf,SAAO,KAAK,OAAO,KAAK;AAC1B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
stableJsonHash
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7363CD5A.js";
|
|
4
4
|
|
|
5
5
|
// src/components/model-guidance.ts
|
|
6
6
|
var FABRIC_EXECUTION_GUIDANCE_SLOT = "fabric.execution";
|
|
@@ -228,4 +228,4 @@ export {
|
|
|
228
228
|
fabricModelGuidanceInfo,
|
|
229
229
|
resolveFabricModelGuidance
|
|
230
230
|
};
|
|
231
|
-
//# sourceMappingURL=chunk-
|
|
231
|
+
//# sourceMappingURL=chunk-77FQHHZD.js.map
|
|
@@ -115,6 +115,30 @@ async function resolveShikiThemeObject(themeId) {
|
|
|
115
115
|
return mod.default;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
// src/ui/shiki-language.ts
|
|
119
|
+
var LANGUAGE_IMPORTS = {
|
|
120
|
+
bash: () => import("@shikijs/langs/shellscript"),
|
|
121
|
+
typescript: () => import("@shikijs/langs/typescript"),
|
|
122
|
+
tsx: () => import("@shikijs/langs/tsx"),
|
|
123
|
+
javascript: () => import("@shikijs/langs/javascript"),
|
|
124
|
+
jsx: () => import("@shikijs/langs/jsx"),
|
|
125
|
+
json: () => import("@shikijs/langs/json"),
|
|
126
|
+
markdown: () => import("@shikijs/langs/markdown"),
|
|
127
|
+
yaml: () => import("@shikijs/langs/yaml"),
|
|
128
|
+
toml: () => import("@shikijs/langs/toml"),
|
|
129
|
+
css: () => import("@shikijs/langs/css")
|
|
130
|
+
};
|
|
131
|
+
async function resolveShikiLanguageObjects(languageIds) {
|
|
132
|
+
const modules = await Promise.all(
|
|
133
|
+
languageIds.map(async (languageId) => {
|
|
134
|
+
const loader = LANGUAGE_IMPORTS[languageId];
|
|
135
|
+
if (!loader) throw new Error(`Unsupported preloaded Shiki language: ${languageId}`);
|
|
136
|
+
return loader();
|
|
137
|
+
})
|
|
138
|
+
);
|
|
139
|
+
return modules.flatMap((module) => module.default);
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
// src/ui/highlight.ts
|
|
119
143
|
var configuredMaxHighlightChars = Number.parseInt(
|
|
120
144
|
process.env.CODE_PREVIEW_MAX_HIGHLIGHT_CHARS ?? "",
|
|
@@ -390,7 +414,7 @@ async function initHighlighting(theme, syntaxEnabled = true) {
|
|
|
390
414
|
}
|
|
391
415
|
const next = await createHighlighter({
|
|
392
416
|
themes: [themeObject],
|
|
393
|
-
langs:
|
|
417
|
+
langs: await resolveShikiLanguageObjects(PRELOADED_LANGUAGES)
|
|
394
418
|
});
|
|
395
419
|
if (version !== initVersion) {
|
|
396
420
|
next.dispose();
|
|
@@ -5084,4 +5108,4 @@ export {
|
|
|
5084
5108
|
isActiveStatus,
|
|
5085
5109
|
orderAgentsByCreation
|
|
5086
5110
|
};
|
|
5087
|
-
//# sourceMappingURL=chunk-
|
|
5111
|
+
//# sourceMappingURL=chunk-7R536FSR.js.map
|