pi-fabric 0.62.7 → 0.63.0
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/README.md +1 -1
- package/dist/audit/projection.d.ts.map +1 -1
- package/dist/chunks/{chunk-64LZJ3EJ.js → chunk-6F6YQ2DS.js} +4 -4
- package/dist/chunks/{chunk-IAAKH5GZ.js → chunk-7ROLP6PW.js} +2 -2
- package/dist/chunks/{chunk-RQIQA7CW.js → chunk-E3V22XGU.js} +2 -2
- package/dist/chunks/{chunk-YWV4KFMB.js → chunk-EICYV4YL.js} +2 -2
- package/dist/chunks/{chunk-GWDVAULL.js → chunk-EPJ43EJL.js} +15 -4
- package/dist/chunks/{chunk-GWDVAULL.js.map → chunk-EPJ43EJL.js.map} +2 -2
- package/dist/chunks/{chunk-PNTJXMP7.js → chunk-F5ZTKVJD.js} +2 -1
- package/dist/chunks/{chunk-PNTJXMP7.js.map → chunk-F5ZTKVJD.js.map} +2 -2
- package/dist/chunks/{chunk-5PMNF4ON.js → chunk-GSRA4TLG.js} +4 -4
- package/dist/chunks/{chunk-HFYEEIXR.js → chunk-IDTQ2B5W.js} +6 -1
- package/dist/chunks/{chunk-HFYEEIXR.js.map → chunk-IDTQ2B5W.js.map} +2 -2
- package/dist/chunks/{chunk-KDEOYZTK.js → chunk-L3RGWRBJ.js} +19 -1
- package/dist/chunks/{chunk-KDEOYZTK.js.map → chunk-L3RGWRBJ.js.map} +2 -2
- package/dist/chunks/{chunk-VK3MWAOL.js → chunk-LPKYDCZ2.js} +2 -2
- package/dist/chunks/{chunk-6HIZWKOP.js → chunk-NLY3MSQJ.js} +2 -2
- package/dist/chunks/{chunk-QEP3ZBVZ.js → chunk-TGRIZ7E4.js} +81 -1
- package/dist/chunks/chunk-TGRIZ7E4.js.map +7 -0
- package/dist/chunks/{chunk-X2AL6J4G.js → chunk-XDPWNKQK.js} +2 -2
- package/dist/chunks/{chunk-XRADSGKL.js → chunk-Z4ITC2TP.js} +2 -2
- package/dist/chunks/{core-override-guest-types-ZI3RRM7R.js → core-override-guest-types-ILO6C7PF.js} +2 -2
- package/dist/chunks/{fabric-runtime-state-CY3V6Y7M.js → fabric-runtime-state-4IOX6EHS.js} +111 -19
- package/dist/chunks/fabric-runtime-state-4IOX6EHS.js.map +7 -0
- package/dist/chunks/{guest-types-GC7QVDA4.js → guest-types-MI75B3IY.js} +2 -2
- package/dist/chunks/{node-process-runtime-O7BIVTEM.js → node-process-runtime-XEDYAHOS.js} +2 -2
- package/dist/chunks/{quickjs-runtime-DGJOVTNF.js → quickjs-runtime-6OKFLKJ4.js} +2 -2
- package/dist/chunks/{settings-W2242VKH.js → settings-GYHFWT4K.js} +2 -2
- package/dist/compaction/hook.js +3 -3
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-registry.js +2 -2
- package/dist/core/model-resolution.d.ts +44 -0
- package/dist/core/model-resolution.d.ts.map +1 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/main-agent.d.ts +12 -0
- package/dist/main-agent.d.ts.map +1 -1
- package/dist/memory/discovery.js +4 -4
- package/dist/memory/normalize.js +3 -3
- package/dist/memory/search.js +4 -4
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts +3 -1
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/memory-provider.js +6 -6
- package/dist/residency/host.js +6 -6
- package/dist/runtime/guest-types.d.ts +1 -1
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.d.ts +1 -1
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/worker.js +16 -8
- package/dist/worker.js.map +2 -2
- package/docs/agents.md +13 -0
- package/docs/configuration.md +21 -0
- package/package.json +2 -2
- package/skills/fabric-exec/references/agents.md +1 -0
- package/dist/chunks/chunk-QEP3ZBVZ.js.map +0 -7
- package/dist/chunks/fabric-runtime-state-CY3V6Y7M.js.map +0 -7
- /package/dist/chunks/{chunk-64LZJ3EJ.js.map → chunk-6F6YQ2DS.js.map} +0 -0
- /package/dist/chunks/{chunk-IAAKH5GZ.js.map → chunk-7ROLP6PW.js.map} +0 -0
- /package/dist/chunks/{chunk-RQIQA7CW.js.map → chunk-E3V22XGU.js.map} +0 -0
- /package/dist/chunks/{chunk-YWV4KFMB.js.map → chunk-EICYV4YL.js.map} +0 -0
- /package/dist/chunks/{chunk-5PMNF4ON.js.map → chunk-GSRA4TLG.js.map} +0 -0
- /package/dist/chunks/{chunk-VK3MWAOL.js.map → chunk-LPKYDCZ2.js.map} +0 -0
- /package/dist/chunks/{chunk-6HIZWKOP.js.map → chunk-NLY3MSQJ.js.map} +0 -0
- /package/dist/chunks/{chunk-X2AL6J4G.js.map → chunk-XDPWNKQK.js.map} +0 -0
- /package/dist/chunks/{chunk-XRADSGKL.js.map → chunk-Z4ITC2TP.js.map} +0 -0
- /package/dist/chunks/{core-override-guest-types-ZI3RRM7R.js.map → core-override-guest-types-ILO6C7PF.js.map} +0 -0
- /package/dist/chunks/{guest-types-GC7QVDA4.js.map → guest-types-MI75B3IY.js.map} +0 -0
- /package/dist/chunks/{node-process-runtime-O7BIVTEM.js.map → node-process-runtime-XEDYAHOS.js.map} +0 -0
- /package/dist/chunks/{quickjs-runtime-DGJOVTNF.js.map → quickjs-runtime-6OKFLKJ4.js.map} +0 -0
- /package/dist/chunks/{settings-W2242VKH.js.map → settings-GYHFWT4K.js.map} +0 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
_One type-checked program for tools, MCP, agents, workflows, actors, mesh, councils, and recursion._
|
|
8
8
|
|
|
9
9
|
<p>
|
|
10
|
-
<img src="https://raw.githubusercontent.com/monotykamary/pi-fabric/main/media/
|
|
10
|
+
<img src="https://raw.githubusercontent.com/monotykamary/pi-fabric/main/media/banner.svg" alt="Animated banner: one checked TypeScript program weaving pi core tools, MCP servers, agents, and mesh into a single result" width="100%">
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
[](https://www.npmjs.com/package/pi-fabric)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/audit/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC/C,aAAa,EAAE,MAAM,CAAC;CACvB;AAwJD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,KAAK,MAAM,EACX,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,
|
|
1
|
+
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/audit/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC/C,aAAa,EAAE,MAAM,CAAC;CACvB;AAwJD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GACjC,KAAK,MAAM,EACX,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,qBA4GF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GACnC,KAAK,MAAM,EACX,QAAQ,OAAO,KACd,qBAAqB,GAAG,SAwB1B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
enumerateAllSessions,
|
|
4
4
|
resolveScope,
|
|
5
5
|
resolveSessionTarget
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E3V22XGU.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_HOT_SESSIONS,
|
|
9
9
|
DEFAULT_REGEX_MAX_HAYSTACK_BYTES,
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
loadTieredIndex,
|
|
16
16
|
reconstructSessionLineage,
|
|
17
17
|
searchMemoryIndex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NLY3MSQJ.js";
|
|
19
19
|
import {
|
|
20
20
|
expandSessionEntriesChecked,
|
|
21
21
|
normalizeSession
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z4ITC2TP.js";
|
|
23
23
|
|
|
24
24
|
// src/providers/memory-provider.ts
|
|
25
25
|
import path from "node:path";
|
|
@@ -851,4 +851,4 @@ export {
|
|
|
851
851
|
normalizeMemoryArgs,
|
|
852
852
|
MemoryProvider
|
|
853
853
|
};
|
|
854
|
-
//# sourceMappingURL=chunk-
|
|
854
|
+
//# sourceMappingURL=chunk-6F6YQ2DS.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
FabricResolutionError,
|
|
16
16
|
FabricTraceSafeError,
|
|
17
17
|
executionOutcomeFromError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IDTQ2B5W.js";
|
|
19
19
|
|
|
20
20
|
// src/core/action-registry.ts
|
|
21
21
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
@@ -1097,4 +1097,4 @@ export {
|
|
|
1097
1097
|
NESTED_TOOL_CALL_ID_PREFIX,
|
|
1098
1098
|
ActionRegistry
|
|
1099
1099
|
};
|
|
1100
|
-
//# sourceMappingURL=chunk-
|
|
1100
|
+
//# sourceMappingURL=chunk-7ROLP6PW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readSessionHeader
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z4ITC2TP.js";
|
|
4
4
|
|
|
5
5
|
// src/memory/discovery.ts
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -107,4 +107,4 @@ export {
|
|
|
107
107
|
resolveSessionTarget,
|
|
108
108
|
resolveScope
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
110
|
+
//# sourceMappingURL=chunk-E3V22XGU.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
FABRIC_BRANCH_SUMMARY_VERSION,
|
|
11
11
|
readFabricBranchSummaryDetails,
|
|
12
12
|
readFabricProjectionTrace
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LPKYDCZ2.js";
|
|
14
14
|
|
|
15
15
|
// src/compaction/hook.ts
|
|
16
16
|
import "@earendil-works/pi-coding-agent";
|
|
@@ -2367,4 +2367,4 @@ export {
|
|
|
2367
2367
|
compileFabricSummary,
|
|
2368
2368
|
registerCompactionHook
|
|
2369
2369
|
};
|
|
2370
|
-
//# sourceMappingURL=chunk-
|
|
2370
|
+
//# sourceMappingURL=chunk-EICYV4YL.js.map
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
buildThinkingDigest,
|
|
13
13
|
snapshotHandoffSession,
|
|
14
14
|
thinkingTransferPolicy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XDPWNKQK.js";
|
|
16
16
|
import {
|
|
17
17
|
isFabricThinking
|
|
18
18
|
} from "./chunk-7B55UIZL.js";
|
|
19
19
|
import {
|
|
20
20
|
NESTED_TOOL_CALL_ID_PREFIX
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7ROLP6PW.js";
|
|
22
22
|
import {
|
|
23
23
|
runAbortable,
|
|
24
24
|
throwIfAborted
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-22RY7UMR.js";
|
|
29
29
|
import {
|
|
30
30
|
FabricTraceSafeError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IDTQ2B5W.js";
|
|
32
32
|
|
|
33
33
|
// src/capture/wrapper.ts
|
|
34
34
|
var wrapToolDefinition = (definition, ctxFactory) => {
|
|
@@ -2371,6 +2371,17 @@ var MainAgentController = class {
|
|
|
2371
2371
|
local: this.local
|
|
2372
2372
|
};
|
|
2373
2373
|
}
|
|
2374
|
+
async switchModel(target, context) {
|
|
2375
|
+
if (!this.local) {
|
|
2376
|
+
return { ok: false, error: `Main agent ${this.id} is owned by another Fabric process` };
|
|
2377
|
+
}
|
|
2378
|
+
const key = `${target.provider}/${target.id}`;
|
|
2379
|
+
const model = context.modelRegistry.find(target.provider, target.id);
|
|
2380
|
+
if (!model) return { ok: false, error: `Model is not available: ${key}` };
|
|
2381
|
+
const switched = await this.pi.setModel(model);
|
|
2382
|
+
if (!switched) return { ok: false, error: `No authentication configured for model: ${key}` };
|
|
2383
|
+
return { ok: true };
|
|
2384
|
+
}
|
|
2374
2385
|
deliverUser(message, delivery) {
|
|
2375
2386
|
if (!this.local) throw new Error(`Main agent ${this.id} is owned by another Fabric process`);
|
|
2376
2387
|
const text = message.trim();
|
|
@@ -2447,4 +2458,4 @@ export {
|
|
|
2447
2458
|
resolveFabricIdentity,
|
|
2448
2459
|
MainAgentController
|
|
2449
2460
|
};
|
|
2450
|
-
//# sourceMappingURL=chunk-
|
|
2461
|
+
//# sourceMappingURL=chunk-EPJ43EJL.js.map
|