@e4779/pi-fabric 0.116.0-fork.26 → 0.117.2-fork.28
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 +2 -2
- package/dist/agents.js +3 -3
- package/dist/chunks/{chunk-HZGQ7XYM.js → chunk-3FJUP3GV.js} +2 -2
- package/dist/chunks/{chunk-U2UBUKNQ.js → chunk-3UGN25XS.js} +2 -2
- package/dist/chunks/{chunk-HITKWKYD.js → chunk-4EW7GVUR.js} +192 -326
- package/dist/chunks/chunk-4EW7GVUR.js.map +7 -0
- package/dist/chunks/{chunk-VR2LV4CA.js → chunk-53N2I4QA.js} +2 -2
- package/dist/chunks/{chunk-IQXNJNDI.js → chunk-5UBRGTVN.js} +8 -8
- package/dist/chunks/{chunk-4GNFBZPR.js → chunk-ASSLHWZS.js} +2 -2
- package/dist/chunks/{chunk-DLXPTBPL.js → chunk-AV36PBKH.js} +9 -1
- package/dist/chunks/chunk-AV36PBKH.js.map +7 -0
- package/dist/chunks/chunk-BN7F52EG.js +525 -0
- package/dist/chunks/chunk-BN7F52EG.js.map +7 -0
- package/dist/chunks/{chunk-QGP7AY2R.js → chunk-C7Z6F3SO.js} +2 -2
- package/dist/chunks/{chunk-56RFFBBO.js → chunk-CRRUW26I.js} +12 -12
- package/dist/chunks/{chunk-I2TK65VR.js → chunk-D5NYNIST.js} +5 -5
- package/dist/chunks/{chunk-KBYSGB7E.js → chunk-EFETPXU2.js} +69 -229
- package/dist/chunks/chunk-EFETPXU2.js.map +7 -0
- package/dist/chunks/{chunk-QQ7D6UAM.js → chunk-EHQQ4KCX.js} +2 -2
- package/dist/chunks/{chunk-7EYJE4TW.js → chunk-EKODKR6Y.js} +55 -6
- package/dist/chunks/chunk-EKODKR6Y.js.map +7 -0
- package/dist/chunks/{chunk-H3SGA7G7.js → chunk-FIDUHKMM.js} +5 -5
- package/dist/chunks/{chunk-4GGBND7V.js → chunk-FSYAGCGA.js} +2 -2
- package/dist/chunks/{chunk-ZPI4QTOX.js → chunk-FUY6XVRX.js} +2 -2
- package/dist/chunks/{chunk-A5XF3ZPJ.js → chunk-G4TLWHRS.js} +2 -2
- package/dist/chunks/{chunk-PTZ5DKAB.js → chunk-G54PEZ44.js} +4 -3
- package/dist/chunks/chunk-G54PEZ44.js.map +7 -0
- package/dist/chunks/{chunk-7C5IEIQK.js → chunk-GEQMQVNS.js} +2 -2
- package/dist/chunks/{chunk-DONS3EZH.js → chunk-GIK2WNAK.js} +2 -2
- package/dist/chunks/{chunk-MOJBW5X2.js → chunk-GO32KSEZ.js} +5 -3
- package/dist/chunks/chunk-GO32KSEZ.js.map +7 -0
- package/dist/chunks/{chunk-HQ5YW2OJ.js → chunk-HP5P7NBO.js} +2 -2
- package/dist/chunks/{chunk-R2MMPHR2.js → chunk-INRXG4J5.js} +2 -2
- package/dist/chunks/{chunk-BQWJ5ZR7.js → chunk-K7J2ABAZ.js} +3 -3
- package/dist/chunks/{chunk-OTHMEDN6.js → chunk-KVYNGDGC.js} +6 -6
- package/dist/chunks/{chunk-6EVAHJAR.js → chunk-LEU5CDSL.js} +3 -3
- package/dist/chunks/{chunk-HCNHKJDA.js → chunk-MLLYR3Y6.js} +2 -2
- package/dist/chunks/{chunk-D3W6CBJZ.js → chunk-MZUC6LLH.js} +4 -4
- package/dist/chunks/{chunk-D3IONBBJ.js → chunk-P7CBPPHY.js} +5 -5
- package/dist/chunks/{chunk-WQ6LC2KK.js → chunk-QT4W5YVB.js} +2 -2
- package/dist/chunks/{chunk-TNPZBMYC.js → chunk-ROTCDDOV.js} +4 -4
- package/dist/chunks/{chunk-PH4PT6R4.js → chunk-TIIIHPHF.js} +2 -2
- package/dist/chunks/{chunk-2YG4ZA2K.js → chunk-TIJ3YQXX.js} +2 -2
- package/dist/chunks/{chunk-QCCPR3U5.js → chunk-UOM37PE4.js} +4 -4
- package/dist/chunks/{chunk-EQYQICUY.js → chunk-UXIBKMUM.js} +3 -3
- package/dist/chunks/{chunk-V2IV4LYW.js → chunk-XWWV6TKV.js} +3 -3
- package/dist/chunks/{chunk-O7IREHJI.js → chunk-YKYWY722.js} +318 -39
- package/dist/chunks/chunk-YKYWY722.js.map +7 -0
- package/dist/chunks/{chunk-JV4JR6TT.js → chunk-ZEXCKK4K.js} +3 -3
- package/dist/chunks/{chunk-ODYU3IJU.js → chunk-ZPPNWB64.js} +4 -4
- package/dist/cli/decisions.js +1 -1
- package/dist/cli/mesh.js +2 -2
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/hook.js +6 -6
- package/dist/compaction/owner.js +7 -7
- package/dist/components/configuration.js +4 -4
- package/dist/core/action-registry.js +6 -6
- package/dist/core/provider-operations.js +53 -154
- package/dist/core/provider-operations.js.map +2 -2
- package/dist/durable.js +2 -2
- package/dist/durable.js.map +1 -1
- package/dist/entropy/index.js +8 -8
- package/dist/extension-bootstrap.js +16 -16
- package/dist/fabric-runtime-state.js +42 -42
- package/dist/index.js +20 -20
- package/dist/jev/client.js +3 -3
- package/dist/jev/decision-types.d.ts +16 -0
- package/dist/jev/decision-types.d.ts.map +1 -1
- package/dist/jev/guest-types.d.ts +1 -1
- package/dist/jev/guest-types.d.ts.map +1 -1
- package/dist/jev/observation.js +7 -7
- package/dist/jev/routes.d.ts +1 -1
- package/dist/jev/routes.d.ts.map +1 -1
- package/dist/jev.js +12 -12
- 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/providers/jev-provider.js +12 -12
- package/dist/providers/memory-provider.js +9 -9
- package/dist/residency/host.js +12 -12
- package/dist/residency/pi-entry.js +12 -12
- 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 +3 -3
- package/dist/runtime/typescript-kernel.js +2 -2
- package/dist/type-error-guidance.js +1 -1
- package/dist/ui/controller.d.ts +2 -0
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation.js +1 -1
- package/dist/ui/dashboard-detail.d.ts.map +1 -1
- package/dist/ui/dashboard.js +6 -5
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/settings.js +3 -3
- package/dist/ui/transcript-parser.d.ts.map +1 -1
- package/dist/ui/transcript-reader.d.ts +1 -0
- package/dist/ui/transcript-reader.d.ts.map +1 -1
- package/dist/ui/transcript-sanitization.d.ts +2 -0
- package/dist/ui/transcript-sanitization.d.ts.map +1 -1
- package/dist/ui/transcript.d.ts +1 -1
- package/dist/ui/transcript.d.ts.map +1 -1
- package/dist/ui/widget-activity.d.ts +21 -0
- package/dist/ui/widget-activity.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +40 -3
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/verified/generated/authority-kernel.d.ts +1 -1
- package/dist/verified/generated/authority-kernel.js +61 -157
- package/dist/verified/generated/kernel.d.ts +8 -8
- package/dist/verified/generated/kernel.js +205 -449
- package/dist/verified/generated/lifecycle-kernel.d.ts +1 -1
- package/dist/verified/generated/lifecycle-kernel.js +95 -133
- package/dist/verified/generated/manifest.json +18 -18
- package/dist/verified/generated/provider-kernel.d.ts +1 -1
- package/dist/verified/generated/provider-kernel.js +48 -149
- package/dist/verified/generated/storage-kernel.d.ts +2 -2
- package/dist/verified/generated/storage-kernel.js +59 -219
- package/dist/verified/nat.d.ts.map +1 -1
- package/dist/verified/policy.d.ts.map +1 -1
- package/docs/configuration.md +1 -1
- package/docs/durable-pi.md +2 -2
- package/docs/interface.md +4 -0
- package/docs/jev.md +2 -2
- package/docs/provider-capabilities.md +1 -1
- package/docs/verified-kernels.md +4 -3
- package/package.json +9 -9
- package/proofs/abi.json +11 -11
- package/proofs/authority-types.d.ts +1 -1
- package/proofs/lifecycle-types.d.ts +1 -1
- package/proofs/provider-types.d.ts +1 -1
- package/proofs/storage-types.d.ts +2 -2
- package/proofs/types.d.ts +4 -4
- package/scripts/test-verified-kernels.mjs +1 -1
- package/scripts/verified-kernels.mjs +1 -1
- package/dist/chunks/chunk-7EYJE4TW.js.map +0 -7
- package/dist/chunks/chunk-DLXPTBPL.js.map +0 -7
- package/dist/chunks/chunk-HITKWKYD.js.map +0 -7
- package/dist/chunks/chunk-KBYSGB7E.js.map +0 -7
- package/dist/chunks/chunk-MOJBW5X2.js.map +0 -7
- package/dist/chunks/chunk-O7IREHJI.js.map +0 -7
- package/dist/chunks/chunk-PTZ5DKAB.js.map +0 -7
- package/dist/chunks/chunk-WTLH5RY4.js +0 -760
- package/dist/chunks/chunk-WTLH5RY4.js.map +0 -7
- /package/dist/chunks/{chunk-HZGQ7XYM.js.map → chunk-3FJUP3GV.js.map} +0 -0
- /package/dist/chunks/{chunk-U2UBUKNQ.js.map → chunk-3UGN25XS.js.map} +0 -0
- /package/dist/chunks/{chunk-VR2LV4CA.js.map → chunk-53N2I4QA.js.map} +0 -0
- /package/dist/chunks/{chunk-IQXNJNDI.js.map → chunk-5UBRGTVN.js.map} +0 -0
- /package/dist/chunks/{chunk-4GNFBZPR.js.map → chunk-ASSLHWZS.js.map} +0 -0
- /package/dist/chunks/{chunk-QGP7AY2R.js.map → chunk-C7Z6F3SO.js.map} +0 -0
- /package/dist/chunks/{chunk-56RFFBBO.js.map → chunk-CRRUW26I.js.map} +0 -0
- /package/dist/chunks/{chunk-I2TK65VR.js.map → chunk-D5NYNIST.js.map} +0 -0
- /package/dist/chunks/{chunk-QQ7D6UAM.js.map → chunk-EHQQ4KCX.js.map} +0 -0
- /package/dist/chunks/{chunk-H3SGA7G7.js.map → chunk-FIDUHKMM.js.map} +0 -0
- /package/dist/chunks/{chunk-4GGBND7V.js.map → chunk-FSYAGCGA.js.map} +0 -0
- /package/dist/chunks/{chunk-ZPI4QTOX.js.map → chunk-FUY6XVRX.js.map} +0 -0
- /package/dist/chunks/{chunk-A5XF3ZPJ.js.map → chunk-G4TLWHRS.js.map} +0 -0
- /package/dist/chunks/{chunk-7C5IEIQK.js.map → chunk-GEQMQVNS.js.map} +0 -0
- /package/dist/chunks/{chunk-DONS3EZH.js.map → chunk-GIK2WNAK.js.map} +0 -0
- /package/dist/chunks/{chunk-HQ5YW2OJ.js.map → chunk-HP5P7NBO.js.map} +0 -0
- /package/dist/chunks/{chunk-R2MMPHR2.js.map → chunk-INRXG4J5.js.map} +0 -0
- /package/dist/chunks/{chunk-BQWJ5ZR7.js.map → chunk-K7J2ABAZ.js.map} +0 -0
- /package/dist/chunks/{chunk-OTHMEDN6.js.map → chunk-KVYNGDGC.js.map} +0 -0
- /package/dist/chunks/{chunk-6EVAHJAR.js.map → chunk-LEU5CDSL.js.map} +0 -0
- /package/dist/chunks/{chunk-HCNHKJDA.js.map → chunk-MLLYR3Y6.js.map} +0 -0
- /package/dist/chunks/{chunk-D3W6CBJZ.js.map → chunk-MZUC6LLH.js.map} +0 -0
- /package/dist/chunks/{chunk-D3IONBBJ.js.map → chunk-P7CBPPHY.js.map} +0 -0
- /package/dist/chunks/{chunk-WQ6LC2KK.js.map → chunk-QT4W5YVB.js.map} +0 -0
- /package/dist/chunks/{chunk-TNPZBMYC.js.map → chunk-ROTCDDOV.js.map} +0 -0
- /package/dist/chunks/{chunk-PH4PT6R4.js.map → chunk-TIIIHPHF.js.map} +0 -0
- /package/dist/chunks/{chunk-2YG4ZA2K.js.map → chunk-TIJ3YQXX.js.map} +0 -0
- /package/dist/chunks/{chunk-QCCPR3U5.js.map → chunk-UOM37PE4.js.map} +0 -0
- /package/dist/chunks/{chunk-EQYQICUY.js.map → chunk-UXIBKMUM.js.map} +0 -0
- /package/dist/chunks/{chunk-V2IV4LYW.js.map → chunk-XWWV6TKV.js.map} +0 -0
- /package/dist/chunks/{chunk-JV4JR6TT.js.map → chunk-ZEXCKK4K.js.map} +0 -0
- /package/dist/chunks/{chunk-ODYU3IJU.js.map → chunk-ZPPNWB64.js.map} +0 -0
package/dist/ui/settings.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
loadFabricConfigForScope,
|
|
31
31
|
maxExecutorMemoryLimitBytes,
|
|
32
32
|
saveFabricConfig
|
|
33
|
-
} from "../chunks/chunk-
|
|
33
|
+
} from "../chunks/chunk-K7J2ABAZ.js";
|
|
34
34
|
import "../chunks/chunk-OKOHRXGF.js";
|
|
35
35
|
import "../chunks/chunk-ITVLKXCI.js";
|
|
36
36
|
import {
|
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
} from "../chunks/chunk-XB3RJVT4.js";
|
|
48
48
|
import {
|
|
49
49
|
normalizeDecisionProfiles
|
|
50
|
-
} from "../chunks/chunk-
|
|
50
|
+
} from "../chunks/chunk-GEQMQVNS.js";
|
|
51
51
|
import {
|
|
52
52
|
isJevApprovalModel,
|
|
53
53
|
jevClassifierModels
|
|
54
|
-
} from "../chunks/chunk-
|
|
54
|
+
} from "../chunks/chunk-G54PEZ44.js";
|
|
55
55
|
import "../chunks/chunk-YU62DDKK.js";
|
|
56
56
|
import "../chunks/chunk-3YZUQESG.js";
|
|
57
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-parser.d.ts","sourceRoot":"","sources":["../../src/ui/transcript-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"transcript-parser.d.ts","sourceRoot":"","sources":["../../src/ui/transcript-parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAoBpF,qBAAa,qBAAqB;;IAChC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,EAAE,CAAM;IAY/C,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI;IAIpD,QAAQ,CACN,cAAc,UAAQ,EACtB,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,SAAyB,GAClC,qBAAqB;CAohBzB;AAED,eAAO,MAAM,QAAQ,GAAI,KAAK,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAMhE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,aAAa,EAAE,KAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGN,CAAC;AAE9E,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,kBAAkB,EAsCvF,CAAC;AAuBF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAG,GAAG,CAAC,MAAM,CAWtF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FabricAgentTranscript, FabricTranscriptSource } from "./transcript.js";
|
|
2
2
|
export declare class AgentTranscriptReader {
|
|
3
3
|
#private;
|
|
4
|
+
constructor(pageLines?: number);
|
|
4
5
|
read(source: FabricTranscriptSource, followLatest?: boolean): FabricAgentTranscript;
|
|
5
6
|
loadOlder(source: FabricTranscriptSource): boolean;
|
|
6
7
|
loadNewer(source: FabricTranscriptSource): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-reader.d.ts","sourceRoot":"","sources":["../../src/ui/transcript-reader.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAoFrF,qBAAa,qBAAqB;;
|
|
1
|
+
{"version":3,"file":"transcript-reader.d.ts","sourceRoot":"","sources":["../../src/ui/transcript-reader.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAoFrF,qBAAa,qBAAqB;;gBASpB,SAAS,SAAa;IAIlC,IAAI,CACF,MAAM,EAAE,sBAAsB,EAC9B,YAAY,UAAO,GAClB,qBAAqB;IAiExB,SAAS,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;IA2ClD,SAAS,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;IAmClD,UAAU,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;IAyBnD,KAAK,IAAI,IAAI;CAsFd"}
|
|
@@ -6,6 +6,8 @@ export declare const recordOf: (value: unknown) => Record<string, unknown> | und
|
|
|
6
6
|
export declare const terminalSafe: (value: string, trim?: boolean) => string;
|
|
7
7
|
export declare const clip: (value: string, max: number, trim?: boolean) => string;
|
|
8
8
|
export declare const contentText: (value: unknown) => string;
|
|
9
|
+
/** Concatenated reasoning text from assistant `thinking` content blocks. */
|
|
10
|
+
export declare const contentThinking: (value: unknown) => string;
|
|
9
11
|
export declare const messageError: (message: Record<string, unknown>) => string;
|
|
10
12
|
export declare const redact: (value: unknown, key?: string, depth?: number, budget?: RedactionBudget) => unknown;
|
|
11
13
|
export declare const redactRecord: (value: unknown) => Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-sanitization.d.ts","sourceRoot":"","sources":["../../src/ui/transcript-sanitization.ts"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,Q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OAAO,OAAO,KAAG,MAShD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,MAmB/D,CAAC;AAqBF,eAAO,MAAM,MAAM,GACjB,OAAO,OAAO,EACd,YAAQ,EACR,cAAS,EACT,SAAQ,eAGP,KACA,OAwCF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAIvE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,MAMrD,CAAC"}
|
package/dist/ui/transcript.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AgentTranscriptReader } from "./transcript-reader.js";
|
|
|
3
3
|
type FabricTranscriptEntryStatus = "running" | "completed" | "failed";
|
|
4
4
|
export interface FabricTranscriptEntry {
|
|
5
5
|
id: string;
|
|
6
|
-
kind: "user" | "assistant" | "tool" | "error" | "status";
|
|
6
|
+
kind: "user" | "assistant" | "thinking" | "tool" | "error" | "status";
|
|
7
7
|
label: string;
|
|
8
8
|
text?: string;
|
|
9
9
|
status?: FabricTranscriptEntryStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/ui/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,KAAK,2BAA2B,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"transcript.d.ts","sourceRoot":"","sources":["../../src/ui/transcript.ts"],"names":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EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,oEAAoE;IACpE,MAAM,CAAC,EAAE,0BAA0B,EAAE,CAAC;IACtC,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACxE,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,GACjC,QAAQ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACtC,wBAAsB,KACrB,qBAIF,CAAC;AAwBF,eAAO,MAAM,wBAAwB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,sBACuB,CAAC;AAE3F,eAAO,MAAM,qBAAqB,GAChC,YAAY,qBAAqB,EACjC,cAAS,KACR,qBAAqB,EAcvB,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import type { FabricAgentTranscript } from "./transcript.js";
|
|
3
|
+
/** Shortcut that focuses the Fabric widget so a participant row can be expanded in place. */
|
|
4
|
+
export declare const FABRIC_WIDGET_FOCUS_SHORTCUT = "ctrl+shift+e";
|
|
5
|
+
export declare const FABRIC_WIDGET_FOCUS_HINT = "ctrl+shift+e expand";
|
|
6
|
+
/** Rows the expanded activity pane may use, bounded again by the widget row limit. */
|
|
7
|
+
export declare const WIDGET_ACTIVITY_ROWS = 12;
|
|
8
|
+
/** Event-log lines the activity pane reads (streaming writes one line per delta). */
|
|
9
|
+
export declare const WIDGET_ACTIVITY_LOG_LINES = 600;
|
|
10
|
+
/**
|
|
11
|
+
* Activity lines for an expanded widget participant, newest at the bottom.
|
|
12
|
+
* `scroll` counts lines back from the newest; the caller clamps it with the
|
|
13
|
+
* returned `maxScroll`. `hideThinking` mirrors Pi's hideThinkingBlock setting.
|
|
14
|
+
*/
|
|
15
|
+
export declare const widgetActivityLines: (theme: Theme, transcript: FabricAgentTranscript | undefined, width: number, rows: number, scroll: number, hideThinking?: boolean) => {
|
|
16
|
+
lines: string[];
|
|
17
|
+
maxScroll: number;
|
|
18
|
+
};
|
|
19
|
+
/** A full-width divider used above and below the expanded pane. */
|
|
20
|
+
export declare const widgetDivider: (theme: Theme, width: number, label?: string) => string;
|
|
21
|
+
//# sourceMappingURL=widget-activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-activity.d.ts","sourceRoot":"","sources":["../../src/ui/widget-activity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAyB,MAAM,iBAAiB,CAAC;AAGpF,6FAA6F;AAC7F,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAE9D,sFAAsF;AACtF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAqD7C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,KAAK,EACZ,YAAY,qBAAqB,GAAG,SAAS,EAC7C,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,sBAAoB,KACnB;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAUtC,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,EAAE,OAAO,MAAM,EAAE,cAAU,KAAG,MAGvE,CAAC"}
|
package/dist/ui/widget.d.ts
CHANGED
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
import type { Component } from "@earendil-works/pi-tui";
|
|
1
|
+
import type { Component, Focusable, TuiMouseEvent, TuiMouseEventResult } from "@earendil-works/pi-tui";
|
|
2
2
|
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import type { FabricUiWidgetMode } from "../config.js";
|
|
4
4
|
import { FabricWidgetRetention } from "./retention.js";
|
|
5
|
+
import type { FabricAgentTranscript } from "./transcript.js";
|
|
5
6
|
import { type FabricDashboardSnapshot } from "./types.js";
|
|
7
|
+
/** A widget row that can be selected and expanded to show its live activity. */
|
|
8
|
+
export interface FabricWidgetRow {
|
|
9
|
+
/** Agent id, or actor id for an actor's worker row. */
|
|
10
|
+
id: string;
|
|
11
|
+
kind: "agent" | "actor";
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
/** Optional interaction wiring; without it the widget stays a passive status box. */
|
|
15
|
+
export interface FabricWidgetInteraction {
|
|
16
|
+
/** Live activity for an expanded row, read from the participant's event log. */
|
|
17
|
+
activity: (row: FabricWidgetRow) => FabricAgentTranscript | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Return focus to the editor. `forward` is a key the widget does not use; the
|
|
20
|
+
* editor receives it, because Pi handles Ctrl+C and extension shortcuts there.
|
|
21
|
+
*/
|
|
22
|
+
release: (forward?: string) => void;
|
|
23
|
+
/** Pi's hideThinkingBlock: the pane keeps the thinking marker and drops its text. */
|
|
24
|
+
hideThinking?: () => boolean;
|
|
25
|
+
/** Ask the host to redraw (selection and expansion change without a snapshot change). */
|
|
26
|
+
requestRender: () => void;
|
|
27
|
+
}
|
|
6
28
|
export declare const shouldShowFabricWidget: (snapshot: FabricDashboardSnapshot, mode: FabricUiWidgetMode, retention?: FabricWidgetRetention) => boolean;
|
|
7
29
|
/**
|
|
8
30
|
* Share of the terminal height the animated box may claim. pi's main-screen
|
|
@@ -14,14 +36,29 @@ export declare const shouldShowFabricWidget: (snapshot: FabricDashboardSnapshot,
|
|
|
14
36
|
export declare const WIDGET_TERMINAL_ROW_SHARE = 0.5;
|
|
15
37
|
/** Effective row budget: the configured maximum, bounded by the live pane. */
|
|
16
38
|
export declare const widgetRowLimit: (maxRows: number, terminalRows?: number) => number;
|
|
17
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Row budget while an activity pane is open. Expanding is an explicit request
|
|
41
|
+
* for more room, so the widget may use its whole terminal share instead of
|
|
42
|
+
* `maxRows`, but never more than that share.
|
|
43
|
+
*/
|
|
44
|
+
export declare const widgetExpandedRowLimit: (maxRows: number, terminalRows?: number) => number;
|
|
45
|
+
export declare class FabricWidget implements Component, Focusable {
|
|
18
46
|
#private;
|
|
19
47
|
readonly theme: Theme;
|
|
20
48
|
readonly snapshot: () => FabricDashboardSnapshot;
|
|
21
49
|
readonly maxRows: number;
|
|
22
50
|
readonly terminalRows?: (() => number | undefined) | undefined;
|
|
23
51
|
readonly retention: FabricWidgetRetention;
|
|
24
|
-
|
|
52
|
+
readonly interaction?: FabricWidgetInteraction | undefined;
|
|
53
|
+
constructor(theme: Theme, snapshot: () => FabricDashboardSnapshot, maxRows: number, terminalRows?: (() => number | undefined) | undefined, retention?: FabricWidgetRetention, interaction?: FabricWidgetInteraction | undefined);
|
|
54
|
+
/** Set by the TUI when the widget gains or loses keyboard focus. */
|
|
55
|
+
focused: boolean;
|
|
56
|
+
/** Id of the row whose activity pane is open, if any. */
|
|
57
|
+
get expandedId(): string | undefined;
|
|
58
|
+
/** Select the first participant row; used when focus arrives from the keyboard. */
|
|
59
|
+
selectDefault(): void;
|
|
60
|
+
handleInput(data: string): void;
|
|
61
|
+
handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
|
|
25
62
|
render(width: number): string[];
|
|
26
63
|
hasChanged(): boolean;
|
|
27
64
|
invalidate(): void;
|
package/dist/ui/widget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"AAAA,O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AM,KAAG,MAOvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,EAAE,eAAe,MAAM,KAAG,MAM/E,CAAC;AAEF,qBAAa,YAAa,YAAW,SAAS,EAAE,SAAS;;IAErD,QAAQ,CAAC,KAAK,EAAE,KAAK;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,uBAAuB;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM;IAGxB,QAAQ,CAAC,YAAY,CAAC,GAAE,MAAM,MAAM,GAAG,SAAS;IAChD,QAAQ,CAAC,SAAS;IAClB,QAAQ,CAAC,WAAW,CAAC,EAAE,uBAAuB;gBAPrC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,MAAM,uBAAuB,EACvC,OAAO,EAAE,MAAM,EAGf,YAAY,CAAC,GAAE,MAAM,MAAM,GAAG,SAAS,aAAA,EACvC,SAAS,wBAA8B,EACvC,WAAW,CAAC,EAAE,uBAAuB,YAAA;IAGhD,oEAAoE;IACpE,OAAO,UAAS;IAYhB,yDAAyD;IACzD,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,mFAAmF;IACnF,aAAa,IAAI,IAAI;IASrB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAiC/B,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,mBAAmB,GAAG,SAAS;IAwDlE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAqC/B,UAAU,IAAI,OAAO;IAYrB,UAAU,IAAI,IAAI;CA+KnB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated ABI declarations; see proofs/authority-abi.json.
|
|
2
|
-
export type AuthorityText = { $: "Nil" } | { $: "Con"; head:
|
|
2
|
+
export type AuthorityText = { $: "Nil" } | { $: "Con"; head: number; tail: AuthorityText };
|
|
3
3
|
export type AuthorityGrants = { $: "Nil" } | { $: "Con"; head: AuthorityText; tail: AuthorityGrants };
|
|
4
4
|
export type AuthorityState = { $: "Released" } | { $: "Active"; grants: AuthorityGrants };
|
|
5
5
|
|
|
@@ -1,223 +1,127 @@
|
|
|
1
|
-
// Generated by Bend 2.0.
|
|
1
|
+
// Generated by Bend 2.0.37; do not edit. See LAWS.bend and PROOF.bend.
|
|
2
2
|
// Includes adapted Bend runtime/Base code, Copyright 2026 HigherOrderCO, Apache-2.0.
|
|
3
3
|
// ABI exports selected and tags adapted by Pi Fabric; see THIRD_PARTY_NOTICES.md.
|
|
4
|
-
function
|
|
4
|
+
function d(t, e) {
|
|
5
5
|
return { $: t < e ? "LT" : t === e ? "EQ" : "GT" };
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
return (typeof t == "bigint" || Number.isInteger(t)) && t >= 0 && t <= 2 ** 53 ? Number(t) : { [Symbol.toPrimitive]() {
|
|
9
|
-
throw "bend: a Nat past the largest immediate 2^48-1";
|
|
10
|
-
} };
|
|
11
|
-
}
|
|
12
|
-
function f(t) {
|
|
7
|
+
function v(t) {
|
|
13
8
|
for (; t !== null && typeof t == "object" && t.$ === "$JMP"; )
|
|
14
9
|
t = t.f(t.x);
|
|
15
10
|
return t;
|
|
16
11
|
}
|
|
17
|
-
function
|
|
18
|
-
return (...r) => r.length < e ?
|
|
12
|
+
function l(t, e) {
|
|
13
|
+
return (...r) => r.length < e ? l((...u) => t(...r, ...u), e - r.length) : v(t(...r));
|
|
19
14
|
}
|
|
20
|
-
function
|
|
15
|
+
function g(t, e, r) {
|
|
21
16
|
for (; ; ) {
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
17
|
+
let u = t, n = e, o = r;
|
|
18
|
+
if (u.$ === "Nil")
|
|
19
|
+
return n.$ === "Nil" ? o : !1;
|
|
25
20
|
{
|
|
26
|
-
let
|
|
27
|
-
if (
|
|
21
|
+
let a = u.head, s = u.tail;
|
|
22
|
+
if (n.$ === "Nil")
|
|
28
23
|
return !1;
|
|
29
24
|
{
|
|
30
|
-
let
|
|
31
|
-
t =
|
|
25
|
+
let c = n.head, _ = n.tail;
|
|
26
|
+
t = s, e = _, r = f(o, L(a, c));
|
|
32
27
|
continue;
|
|
33
28
|
}
|
|
34
29
|
}
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
|
-
function
|
|
32
|
+
function y(t, e, r) {
|
|
38
33
|
for (; ; ) {
|
|
39
|
-
let
|
|
40
|
-
if (
|
|
41
|
-
return
|
|
34
|
+
let u = t, n = e, o = r;
|
|
35
|
+
if (u.$ === "Nil")
|
|
36
|
+
return o;
|
|
42
37
|
{
|
|
43
|
-
let
|
|
44
|
-
t =
|
|
38
|
+
let a = u.head, s = u.tail, c = g(n, a, !0);
|
|
39
|
+
t = s, e = n, r = o || c;
|
|
45
40
|
continue;
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
|
-
function
|
|
44
|
+
function p(t, e, r) {
|
|
50
45
|
for (; ; ) {
|
|
51
|
-
let
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
46
|
+
let u = t, n = e, o = r;
|
|
47
|
+
if (u.$ === "Nil")
|
|
48
|
+
return o;
|
|
54
49
|
{
|
|
55
|
-
let
|
|
56
|
-
t =
|
|
50
|
+
let a = u.head;
|
|
51
|
+
t = u.tail, e = n, r = f(o, y(n, a, !1));
|
|
57
52
|
continue;
|
|
58
53
|
}
|
|
59
54
|
}
|
|
60
55
|
}
|
|
61
|
-
function
|
|
56
|
+
function R(t) {
|
|
62
57
|
return { $: "authority-state.Active", grants: t };
|
|
63
58
|
}
|
|
64
|
-
function
|
|
59
|
+
function b(t) {
|
|
65
60
|
return t.$ !== "authority-state.Released";
|
|
66
61
|
}
|
|
67
|
-
function
|
|
62
|
+
function w(t, e) {
|
|
68
63
|
if (t.$ === "authority-state.Released")
|
|
69
64
|
return !1;
|
|
70
65
|
{
|
|
71
66
|
let r = t.grants;
|
|
72
|
-
return
|
|
67
|
+
return y(r, e, !1);
|
|
73
68
|
}
|
|
74
69
|
}
|
|
75
|
-
function
|
|
70
|
+
function A(t, e) {
|
|
76
71
|
return t ? { $: "authority-state.Active", grants: e } : { $: "authority-state.Released" };
|
|
77
72
|
}
|
|
78
|
-
function
|
|
73
|
+
function x(t, e) {
|
|
79
74
|
if (t.$ === "authority-state.Released")
|
|
80
75
|
return { $: "authority-state.Released" };
|
|
81
76
|
{
|
|
82
77
|
let r = t.grants;
|
|
83
|
-
return
|
|
78
|
+
return A(p(e, r, !0), e);
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
|
-
function
|
|
81
|
+
function k(t) {
|
|
87
82
|
return { $: "authority-state.Released" };
|
|
88
83
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
84
|
+
function E(t) {
|
|
85
|
+
return R(t);
|
|
91
86
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
87
|
+
function m(t) {
|
|
88
|
+
return b(t);
|
|
94
89
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
90
|
+
function N(t, e) {
|
|
91
|
+
return w(t, e);
|
|
97
92
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
93
|
+
function Q(t, e) {
|
|
94
|
+
return x(t, e);
|
|
100
95
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
96
|
+
function q(t) {
|
|
97
|
+
return k(t);
|
|
103
98
|
}
|
|
104
|
-
function
|
|
99
|
+
function f(t, e) {
|
|
105
100
|
return t ? e : !1;
|
|
106
101
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
102
|
+
function L(t, e) {
|
|
103
|
+
return U(d(t, e));
|
|
109
104
|
}
|
|
110
|
-
function
|
|
105
|
+
function U(t) {
|
|
111
106
|
return t.$ === "EQ";
|
|
112
107
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
for (let r = e, a = 0; ; )
|
|
116
|
-
switch (t.$) {
|
|
117
|
-
case "Nil":
|
|
118
|
-
return r[a] = t, e[0];
|
|
119
|
-
case "Con":
|
|
120
|
-
r = r[a] = { ...t, head: N(t.head) }, a = "tail", t = t[a];
|
|
121
|
-
continue;
|
|
122
|
-
default:
|
|
123
|
-
throw "bend: List has no tag " + t?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function p(t) {
|
|
127
|
-
let e = [t];
|
|
128
|
-
for (let r = e, a = 0; ; )
|
|
129
|
-
switch (t.$) {
|
|
130
|
-
case "Nil":
|
|
131
|
-
return r[a] = t, e[0];
|
|
132
|
-
case "Con":
|
|
133
|
-
r = r[a] = { ...t, head: BigInt(t.head) }, a = "tail", t = t[a];
|
|
134
|
-
continue;
|
|
135
|
-
default:
|
|
136
|
-
throw "bend: List has no tag " + t?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
function g(t) {
|
|
140
|
-
let e = [t];
|
|
141
|
-
for (let r = e, a = 0; ; )
|
|
142
|
-
switch (t.$) {
|
|
143
|
-
case "Nil":
|
|
144
|
-
return r[a] = t, e[0];
|
|
145
|
-
case "Con":
|
|
146
|
-
r = r[a] = { ...t, head: b(t.head) }, a = "tail", t = t[a];
|
|
147
|
-
continue;
|
|
148
|
-
default:
|
|
149
|
-
throw "bend: List has no tag " + t?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function w(t) {
|
|
153
|
-
let e = [t];
|
|
154
|
-
for (let r = e, a = 0; ; )
|
|
155
|
-
switch (t.$) {
|
|
156
|
-
case "Nil":
|
|
157
|
-
return r[a] = t, e[0];
|
|
158
|
-
case "Con":
|
|
159
|
-
r = r[a] = { ...t, head: p(t.head) }, a = "tail", t = t[a];
|
|
160
|
-
continue;
|
|
161
|
-
default:
|
|
162
|
-
throw "bend: List has no tag " + t?.$ + " (its tags: Nil, Con); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
function l(t) {
|
|
166
|
-
let e = [t];
|
|
167
|
-
for (let r = e, a = 0; ; )
|
|
168
|
-
switch (t.$) {
|
|
169
|
-
case "authority-state.Released":
|
|
170
|
-
return r[a] = t, e[0];
|
|
171
|
-
case "authority-state.Active":
|
|
172
|
-
return r = r[a] = { ...t, grants: w(t.grants) }, e[0];
|
|
173
|
-
default:
|
|
174
|
-
throw "bend: authority-state.Authority has no tag " + t?.$ + " (its tags: authority-state.Released, authority-state.Active); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function d(t) {
|
|
178
|
-
let e = [t];
|
|
179
|
-
for (let r = e, a = 0; ; )
|
|
180
|
-
switch (t.$) {
|
|
181
|
-
case "authority-state.Released":
|
|
182
|
-
return r[a] = t, e[0];
|
|
183
|
-
case "authority-state.Active":
|
|
184
|
-
return r = r[a] = { ...t, grants: g(t.grants) }, e[0];
|
|
185
|
-
default:
|
|
186
|
-
throw "bend: authority-state.Authority has no tag " + t?.$ + " (its tags: authority-state.Released, authority-state.Active); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
var h = /* @__PURE__ */ new Map([["Unknown", "resources.Unknown"], ["Exact", "resources.Exact"], ["Quiet", "resources.Quiet"], ["Active", "authority-state.Active"], ["Released", "authority-state.Released"], ["Effect", "resources.Effect"]]), y = /* @__PURE__ */ new Map([["resources.Unknown", "Unknown"], ["resources.Exact", "Exact"], ["resources.Quiet", "Quiet"], ["authority-state.Active", "Active"], ["authority-state.Released", "Released"], ["resources.Effect", "Effect"]]);
|
|
190
|
-
function s(t, e) {
|
|
108
|
+
var $ = /* @__PURE__ */ new Map([["Unknown", "resources.Unknown"], ["Exact", "resources.Exact"], ["Quiet", "resources.Quiet"], ["Active", "authority-state.Active"], ["Released", "authority-state.Released"]]), h = /* @__PURE__ */ new Map([["resources.Unknown", "Unknown"], ["resources.Exact", "Exact"], ["resources.Quiet", "Quiet"], ["authority-state.Active", "Active"], ["authority-state.Released", "Released"]]);
|
|
109
|
+
function i(t, e) {
|
|
191
110
|
let r = [t];
|
|
192
|
-
for (let
|
|
193
|
-
let [
|
|
194
|
-
if (
|
|
195
|
-
let
|
|
196
|
-
typeof
|
|
197
|
-
for (let
|
|
111
|
+
for (let u = [[r, 0]]; u.length > 0; ) {
|
|
112
|
+
let [n, o] = u.pop(), a = n[o];
|
|
113
|
+
if (a === null || typeof a != "object") continue;
|
|
114
|
+
let s = Array.isArray(a) ? [...a] : { ...a };
|
|
115
|
+
typeof s.$ == "string" && (s.$ = e.get(s.$) ?? s.$), n[o] = s;
|
|
116
|
+
for (let c of Object.keys(s)) u.push([s, c]);
|
|
198
117
|
}
|
|
199
118
|
return r[0];
|
|
200
119
|
}
|
|
201
|
-
var G = /* @__PURE__ */
|
|
202
|
-
let e = l(f(U(g(t))));
|
|
203
|
-
return w(t), e;
|
|
204
|
-
}, 1), J = (t) => s(G(s(t, h)), y), O = /* @__PURE__ */ c((t) => {
|
|
205
|
-
let e = f(j(d(t)));
|
|
206
|
-
return l(t), e;
|
|
207
|
-
}, 1), S = (t) => s(O(s(t, h)), y), z = /* @__PURE__ */ c((t, e) => {
|
|
208
|
-
let r = f(D(d(t), b(e)));
|
|
209
|
-
return l(t), p(e), r;
|
|
210
|
-
}, 2), F = (t, e) => s(z(s(t, h), s(e, h)), y), H = /* @__PURE__ */ c((t, e) => {
|
|
211
|
-
let r = l(f(M(d(t), g(e))));
|
|
212
|
-
return l(t), w(e), r;
|
|
213
|
-
}, 2), K = (t, e) => s(H(s(t, h), s(e, h)), y), V = /* @__PURE__ */ c((t) => {
|
|
214
|
-
let e = l(f(B(d(t))));
|
|
215
|
-
return l(t), e;
|
|
216
|
-
}, 1), W = (t) => s(V(s(t, h)), y);
|
|
120
|
+
var j = /* @__PURE__ */ l((t) => E(t), 1), D = (t) => i(j(i(t, $)), h), I = /* @__PURE__ */ l((t) => m(t), 1), M = (t) => i(I(i(t, $)), h), T = /* @__PURE__ */ l((t, e) => N(t, e), 2), B = (t, e) => i(T(i(t, $), i(e, $)), h), C = /* @__PURE__ */ l((t, e) => Q(t, e), 2), G = (t, e) => i(C(i(t, $), i(e, $)), h), J = /* @__PURE__ */ l((t) => q(t), 1), O = (t) => i(J(i(t, $)), h);
|
|
217
121
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
122
|
+
B as authorityAllows,
|
|
123
|
+
G as authorityDerive,
|
|
124
|
+
D as authorityIssue,
|
|
125
|
+
M as authorityLive,
|
|
126
|
+
O as authorityRelease
|
|
223
127
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Generated ABI declarations; see proofs/abi.json.
|
|
2
2
|
export type BendList<T> = { $: "Nil" } | { $: "Con"; head: T; tail: BendList<T> };
|
|
3
|
-
export type ResourceName = BendList<
|
|
3
|
+
export type ResourceName = BendList<number>;
|
|
4
4
|
export type ResourceScope = { $: "Unknown" } | { $: "Exact"; names: BendList<ResourceName> };
|
|
5
5
|
export type ResourceEffect = { $: "Quiet" } | { $: "Effect"; ordered: boolean; scope: ResourceScope };
|
|
6
|
-
export interface Span { $: "Span"; first:
|
|
7
|
-
export interface Cut { $: "Cut"; eligible: boolean; afterPrevious: boolean; retained:
|
|
8
|
-
export interface Chunk { $: "Chunk"; start:
|
|
6
|
+
export interface Span { $: "Span"; first: number; last: number; paired: boolean }
|
|
7
|
+
export interface Cut { $: "Cut"; eligible: boolean; afterPrevious: boolean; retained: number; budget: number; boundary: number; spans: BendList<Span> }
|
|
8
|
+
export interface Chunk { $: "Chunk"; start: number; end: number; total: number; expectedStart: number; expectedTotal: number; length: number; complete: boolean }
|
|
9
9
|
|
|
10
|
-
export declare function footprintFits(count:
|
|
10
|
+
export declare function footprintFits(count: number, limit: number, valid: boolean): boolean;
|
|
11
11
|
export declare function unknownConflict(leftUnknown: boolean, leftUnknownOrdered: boolean, leftOrdered: boolean, rightUnknown: boolean, rightUnknownOrdered: boolean, rightOrdered: boolean): boolean;
|
|
12
12
|
export declare function transitionCurrent(retired: boolean, sameEpoch: boolean, sameOwner: boolean, closed: boolean): boolean;
|
|
13
13
|
export declare function canClose(retiring: boolean, ownerRetained: boolean, hasRetainers: boolean, hasInFlight: boolean): boolean;
|
|
14
14
|
export declare function cleanupState(failed: boolean, diverted: boolean): number;
|
|
15
|
-
export declare function spansSafe(spans: BendList<Span>, boundary:
|
|
15
|
+
export declare function spansSafe(spans: BendList<Span>, boundary: number): boolean;
|
|
16
16
|
export declare function cutAccepted(cut: Cut): boolean;
|
|
17
17
|
export declare function pointerCurrent(sourceMatches: boolean, lineageMatches: boolean): boolean;
|
|
18
18
|
export declare function chunkAccepted(chunk: Chunk): boolean;
|
|
@@ -23,8 +23,8 @@ export declare function certificateAccepted(conditions: BendList<boolean>): bool
|
|
|
23
23
|
export declare function consume(active: boolean): { $: 'Tuple'; fst: boolean; snd: boolean };
|
|
24
24
|
export declare function lineageSelected(allBranches: boolean, member: boolean): boolean;
|
|
25
25
|
export declare function knownConflict(shared: boolean, leftOrdered: boolean, rightOrdered: boolean): boolean;
|
|
26
|
-
export declare function summaryWithin(bytes:
|
|
27
|
-
export declare function sampleWithin(total:
|
|
26
|
+
export declare function summaryWithin(bytes: number, byteLimit: number, projected: number, target: number): boolean;
|
|
27
|
+
export declare function sampleWithin(total: number, retained: number, omitted: number, limit: number): boolean;
|
|
28
28
|
export declare function resourceSource(names: BendList<ResourceName>): ResourceScope;
|
|
29
29
|
export declare function resourceNormalize(original: ResourceScope, candidate: BendList<ResourceName>): ResourceScope;
|
|
30
30
|
export declare function resourceConflict(left: ResourceScope, right: ResourceScope, leftOrdered: boolean, rightOrdered: boolean): boolean;
|