@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.
Files changed (179) hide show
  1. package/THIRD_PARTY_NOTICES.md +2 -2
  2. package/dist/agents.js +3 -3
  3. package/dist/chunks/{chunk-HZGQ7XYM.js → chunk-3FJUP3GV.js} +2 -2
  4. package/dist/chunks/{chunk-U2UBUKNQ.js → chunk-3UGN25XS.js} +2 -2
  5. package/dist/chunks/{chunk-HITKWKYD.js → chunk-4EW7GVUR.js} +192 -326
  6. package/dist/chunks/chunk-4EW7GVUR.js.map +7 -0
  7. package/dist/chunks/{chunk-VR2LV4CA.js → chunk-53N2I4QA.js} +2 -2
  8. package/dist/chunks/{chunk-IQXNJNDI.js → chunk-5UBRGTVN.js} +8 -8
  9. package/dist/chunks/{chunk-4GNFBZPR.js → chunk-ASSLHWZS.js} +2 -2
  10. package/dist/chunks/{chunk-DLXPTBPL.js → chunk-AV36PBKH.js} +9 -1
  11. package/dist/chunks/chunk-AV36PBKH.js.map +7 -0
  12. package/dist/chunks/chunk-BN7F52EG.js +525 -0
  13. package/dist/chunks/chunk-BN7F52EG.js.map +7 -0
  14. package/dist/chunks/{chunk-QGP7AY2R.js → chunk-C7Z6F3SO.js} +2 -2
  15. package/dist/chunks/{chunk-56RFFBBO.js → chunk-CRRUW26I.js} +12 -12
  16. package/dist/chunks/{chunk-I2TK65VR.js → chunk-D5NYNIST.js} +5 -5
  17. package/dist/chunks/{chunk-KBYSGB7E.js → chunk-EFETPXU2.js} +69 -229
  18. package/dist/chunks/chunk-EFETPXU2.js.map +7 -0
  19. package/dist/chunks/{chunk-QQ7D6UAM.js → chunk-EHQQ4KCX.js} +2 -2
  20. package/dist/chunks/{chunk-7EYJE4TW.js → chunk-EKODKR6Y.js} +55 -6
  21. package/dist/chunks/chunk-EKODKR6Y.js.map +7 -0
  22. package/dist/chunks/{chunk-H3SGA7G7.js → chunk-FIDUHKMM.js} +5 -5
  23. package/dist/chunks/{chunk-4GGBND7V.js → chunk-FSYAGCGA.js} +2 -2
  24. package/dist/chunks/{chunk-ZPI4QTOX.js → chunk-FUY6XVRX.js} +2 -2
  25. package/dist/chunks/{chunk-A5XF3ZPJ.js → chunk-G4TLWHRS.js} +2 -2
  26. package/dist/chunks/{chunk-PTZ5DKAB.js → chunk-G54PEZ44.js} +4 -3
  27. package/dist/chunks/chunk-G54PEZ44.js.map +7 -0
  28. package/dist/chunks/{chunk-7C5IEIQK.js → chunk-GEQMQVNS.js} +2 -2
  29. package/dist/chunks/{chunk-DONS3EZH.js → chunk-GIK2WNAK.js} +2 -2
  30. package/dist/chunks/{chunk-MOJBW5X2.js → chunk-GO32KSEZ.js} +5 -3
  31. package/dist/chunks/chunk-GO32KSEZ.js.map +7 -0
  32. package/dist/chunks/{chunk-HQ5YW2OJ.js → chunk-HP5P7NBO.js} +2 -2
  33. package/dist/chunks/{chunk-R2MMPHR2.js → chunk-INRXG4J5.js} +2 -2
  34. package/dist/chunks/{chunk-BQWJ5ZR7.js → chunk-K7J2ABAZ.js} +3 -3
  35. package/dist/chunks/{chunk-OTHMEDN6.js → chunk-KVYNGDGC.js} +6 -6
  36. package/dist/chunks/{chunk-6EVAHJAR.js → chunk-LEU5CDSL.js} +3 -3
  37. package/dist/chunks/{chunk-HCNHKJDA.js → chunk-MLLYR3Y6.js} +2 -2
  38. package/dist/chunks/{chunk-D3W6CBJZ.js → chunk-MZUC6LLH.js} +4 -4
  39. package/dist/chunks/{chunk-D3IONBBJ.js → chunk-P7CBPPHY.js} +5 -5
  40. package/dist/chunks/{chunk-WQ6LC2KK.js → chunk-QT4W5YVB.js} +2 -2
  41. package/dist/chunks/{chunk-TNPZBMYC.js → chunk-ROTCDDOV.js} +4 -4
  42. package/dist/chunks/{chunk-PH4PT6R4.js → chunk-TIIIHPHF.js} +2 -2
  43. package/dist/chunks/{chunk-2YG4ZA2K.js → chunk-TIJ3YQXX.js} +2 -2
  44. package/dist/chunks/{chunk-QCCPR3U5.js → chunk-UOM37PE4.js} +4 -4
  45. package/dist/chunks/{chunk-EQYQICUY.js → chunk-UXIBKMUM.js} +3 -3
  46. package/dist/chunks/{chunk-V2IV4LYW.js → chunk-XWWV6TKV.js} +3 -3
  47. package/dist/chunks/{chunk-O7IREHJI.js → chunk-YKYWY722.js} +318 -39
  48. package/dist/chunks/chunk-YKYWY722.js.map +7 -0
  49. package/dist/chunks/{chunk-JV4JR6TT.js → chunk-ZEXCKK4K.js} +3 -3
  50. package/dist/chunks/{chunk-ODYU3IJU.js → chunk-ZPPNWB64.js} +4 -4
  51. package/dist/cli/decisions.js +1 -1
  52. package/dist/cli/mesh.js +2 -2
  53. package/dist/commands/fabric.d.ts.map +1 -1
  54. package/dist/compaction/hook.js +6 -6
  55. package/dist/compaction/owner.js +7 -7
  56. package/dist/components/configuration.js +4 -4
  57. package/dist/core/action-registry.js +6 -6
  58. package/dist/core/provider-operations.js +53 -154
  59. package/dist/core/provider-operations.js.map +2 -2
  60. package/dist/durable.js +2 -2
  61. package/dist/durable.js.map +1 -1
  62. package/dist/entropy/index.js +8 -8
  63. package/dist/extension-bootstrap.js +16 -16
  64. package/dist/fabric-runtime-state.js +42 -42
  65. package/dist/index.js +20 -20
  66. package/dist/jev/client.js +3 -3
  67. package/dist/jev/decision-types.d.ts +16 -0
  68. package/dist/jev/decision-types.d.ts.map +1 -1
  69. package/dist/jev/guest-types.d.ts +1 -1
  70. package/dist/jev/guest-types.d.ts.map +1 -1
  71. package/dist/jev/observation.js +7 -7
  72. package/dist/jev/routes.d.ts +1 -1
  73. package/dist/jev/routes.d.ts.map +1 -1
  74. package/dist/jev.js +12 -12
  75. package/dist/memory/digest.js +2 -2
  76. package/dist/memory/discovery.js +6 -6
  77. package/dist/memory/file-worker.js +9 -9
  78. package/dist/memory/normalize.js +5 -5
  79. package/dist/memory/search.js +7 -7
  80. package/dist/memory/worker-provider.js +10 -10
  81. package/dist/memory.js +10 -10
  82. package/dist/providers/jev-provider.js +12 -12
  83. package/dist/providers/memory-provider.js +9 -9
  84. package/dist/residency/host.js +12 -12
  85. package/dist/residency/pi-entry.js +12 -12
  86. package/dist/runtime/core-override-guest-types.js +2 -2
  87. package/dist/runtime/guest-types.d.ts +1 -1
  88. package/dist/runtime/guest-types.d.ts.map +1 -1
  89. package/dist/runtime/guest-types.js +1 -1
  90. package/dist/runtime/monty-runtime.js +3 -3
  91. package/dist/runtime/typescript-kernel.js +2 -2
  92. package/dist/type-error-guidance.js +1 -1
  93. package/dist/ui/controller.d.ts +2 -0
  94. package/dist/ui/controller.d.ts.map +1 -1
  95. package/dist/ui/conversation.js +1 -1
  96. package/dist/ui/dashboard-detail.d.ts.map +1 -1
  97. package/dist/ui/dashboard.js +6 -5
  98. package/dist/ui/dashboard.js.map +2 -2
  99. package/dist/ui/settings.js +3 -3
  100. package/dist/ui/transcript-parser.d.ts.map +1 -1
  101. package/dist/ui/transcript-reader.d.ts +1 -0
  102. package/dist/ui/transcript-reader.d.ts.map +1 -1
  103. package/dist/ui/transcript-sanitization.d.ts +2 -0
  104. package/dist/ui/transcript-sanitization.d.ts.map +1 -1
  105. package/dist/ui/transcript.d.ts +1 -1
  106. package/dist/ui/transcript.d.ts.map +1 -1
  107. package/dist/ui/widget-activity.d.ts +21 -0
  108. package/dist/ui/widget-activity.d.ts.map +1 -0
  109. package/dist/ui/widget.d.ts +40 -3
  110. package/dist/ui/widget.d.ts.map +1 -1
  111. package/dist/verified/generated/authority-kernel.d.ts +1 -1
  112. package/dist/verified/generated/authority-kernel.js +61 -157
  113. package/dist/verified/generated/kernel.d.ts +8 -8
  114. package/dist/verified/generated/kernel.js +205 -449
  115. package/dist/verified/generated/lifecycle-kernel.d.ts +1 -1
  116. package/dist/verified/generated/lifecycle-kernel.js +95 -133
  117. package/dist/verified/generated/manifest.json +18 -18
  118. package/dist/verified/generated/provider-kernel.d.ts +1 -1
  119. package/dist/verified/generated/provider-kernel.js +48 -149
  120. package/dist/verified/generated/storage-kernel.d.ts +2 -2
  121. package/dist/verified/generated/storage-kernel.js +59 -219
  122. package/dist/verified/nat.d.ts.map +1 -1
  123. package/dist/verified/policy.d.ts.map +1 -1
  124. package/docs/configuration.md +1 -1
  125. package/docs/durable-pi.md +2 -2
  126. package/docs/interface.md +4 -0
  127. package/docs/jev.md +2 -2
  128. package/docs/provider-capabilities.md +1 -1
  129. package/docs/verified-kernels.md +4 -3
  130. package/package.json +9 -9
  131. package/proofs/abi.json +11 -11
  132. package/proofs/authority-types.d.ts +1 -1
  133. package/proofs/lifecycle-types.d.ts +1 -1
  134. package/proofs/provider-types.d.ts +1 -1
  135. package/proofs/storage-types.d.ts +2 -2
  136. package/proofs/types.d.ts +4 -4
  137. package/scripts/test-verified-kernels.mjs +1 -1
  138. package/scripts/verified-kernels.mjs +1 -1
  139. package/dist/chunks/chunk-7EYJE4TW.js.map +0 -7
  140. package/dist/chunks/chunk-DLXPTBPL.js.map +0 -7
  141. package/dist/chunks/chunk-HITKWKYD.js.map +0 -7
  142. package/dist/chunks/chunk-KBYSGB7E.js.map +0 -7
  143. package/dist/chunks/chunk-MOJBW5X2.js.map +0 -7
  144. package/dist/chunks/chunk-O7IREHJI.js.map +0 -7
  145. package/dist/chunks/chunk-PTZ5DKAB.js.map +0 -7
  146. package/dist/chunks/chunk-WTLH5RY4.js +0 -760
  147. package/dist/chunks/chunk-WTLH5RY4.js.map +0 -7
  148. /package/dist/chunks/{chunk-HZGQ7XYM.js.map → chunk-3FJUP3GV.js.map} +0 -0
  149. /package/dist/chunks/{chunk-U2UBUKNQ.js.map → chunk-3UGN25XS.js.map} +0 -0
  150. /package/dist/chunks/{chunk-VR2LV4CA.js.map → chunk-53N2I4QA.js.map} +0 -0
  151. /package/dist/chunks/{chunk-IQXNJNDI.js.map → chunk-5UBRGTVN.js.map} +0 -0
  152. /package/dist/chunks/{chunk-4GNFBZPR.js.map → chunk-ASSLHWZS.js.map} +0 -0
  153. /package/dist/chunks/{chunk-QGP7AY2R.js.map → chunk-C7Z6F3SO.js.map} +0 -0
  154. /package/dist/chunks/{chunk-56RFFBBO.js.map → chunk-CRRUW26I.js.map} +0 -0
  155. /package/dist/chunks/{chunk-I2TK65VR.js.map → chunk-D5NYNIST.js.map} +0 -0
  156. /package/dist/chunks/{chunk-QQ7D6UAM.js.map → chunk-EHQQ4KCX.js.map} +0 -0
  157. /package/dist/chunks/{chunk-H3SGA7G7.js.map → chunk-FIDUHKMM.js.map} +0 -0
  158. /package/dist/chunks/{chunk-4GGBND7V.js.map → chunk-FSYAGCGA.js.map} +0 -0
  159. /package/dist/chunks/{chunk-ZPI4QTOX.js.map → chunk-FUY6XVRX.js.map} +0 -0
  160. /package/dist/chunks/{chunk-A5XF3ZPJ.js.map → chunk-G4TLWHRS.js.map} +0 -0
  161. /package/dist/chunks/{chunk-7C5IEIQK.js.map → chunk-GEQMQVNS.js.map} +0 -0
  162. /package/dist/chunks/{chunk-DONS3EZH.js.map → chunk-GIK2WNAK.js.map} +0 -0
  163. /package/dist/chunks/{chunk-HQ5YW2OJ.js.map → chunk-HP5P7NBO.js.map} +0 -0
  164. /package/dist/chunks/{chunk-R2MMPHR2.js.map → chunk-INRXG4J5.js.map} +0 -0
  165. /package/dist/chunks/{chunk-BQWJ5ZR7.js.map → chunk-K7J2ABAZ.js.map} +0 -0
  166. /package/dist/chunks/{chunk-OTHMEDN6.js.map → chunk-KVYNGDGC.js.map} +0 -0
  167. /package/dist/chunks/{chunk-6EVAHJAR.js.map → chunk-LEU5CDSL.js.map} +0 -0
  168. /package/dist/chunks/{chunk-HCNHKJDA.js.map → chunk-MLLYR3Y6.js.map} +0 -0
  169. /package/dist/chunks/{chunk-D3W6CBJZ.js.map → chunk-MZUC6LLH.js.map} +0 -0
  170. /package/dist/chunks/{chunk-D3IONBBJ.js.map → chunk-P7CBPPHY.js.map} +0 -0
  171. /package/dist/chunks/{chunk-WQ6LC2KK.js.map → chunk-QT4W5YVB.js.map} +0 -0
  172. /package/dist/chunks/{chunk-TNPZBMYC.js.map → chunk-ROTCDDOV.js.map} +0 -0
  173. /package/dist/chunks/{chunk-PH4PT6R4.js.map → chunk-TIIIHPHF.js.map} +0 -0
  174. /package/dist/chunks/{chunk-2YG4ZA2K.js.map → chunk-TIJ3YQXX.js.map} +0 -0
  175. /package/dist/chunks/{chunk-QCCPR3U5.js.map → chunk-UOM37PE4.js.map} +0 -0
  176. /package/dist/chunks/{chunk-EQYQICUY.js.map → chunk-UXIBKMUM.js.map} +0 -0
  177. /package/dist/chunks/{chunk-V2IV4LYW.js.map → chunk-XWWV6TKV.js.map} +0 -0
  178. /package/dist/chunks/{chunk-JV4JR6TT.js.map → chunk-ZEXCKK4K.js.map} +0 -0
  179. /package/dist/chunks/{chunk-ODYU3IJU.js.map → chunk-ZPPNWB64.js.map} +0 -0
@@ -1,188 +1,87 @@
1
- // Generated by Bend 2.0.36; do not edit. See LAWS.bend and PROOF.bend.
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
4
  function _(e, t) {
5
5
  return { $: e < t ? "LT" : e === t ? "EQ" : "GT" };
6
6
  }
7
- function b(e) {
8
- return (typeof e == "bigint" || Number.isInteger(e)) && e >= 0 && e <= 2 ** 53 ? Number(e) : { [Symbol.toPrimitive]() {
9
- throw "bend: a Nat past the largest immediate 2^48-1";
10
- } };
11
- }
12
- function g(e) {
7
+ function y(e) {
13
8
  for (; e !== null && typeof e == "object" && e.$ === "$JMP"; )
14
9
  e = e.f(e.x);
15
10
  return e;
16
11
  }
17
- function f(e, t) {
18
- return (...a) => a.length < t ? f((...n) => e(...a, ...n), t - a.length) : e(...a);
12
+ function c(e, t) {
13
+ return (...n) => n.length < t ? c((...r) => e(...n, ...r), t - n.length) : y(e(...n));
19
14
  }
20
- function k(e, t, a) {
15
+ function d(e, t, n) {
21
16
  for (; ; ) {
22
- let n = e, r = t, s = a;
23
- if (n.$ === "Nil")
24
- return r.$ === "Nil" ? s : !1;
17
+ let r = e, a = t, o = n;
18
+ if (r.$ === "Nil")
19
+ return a.$ === "Nil" ? o : !1;
25
20
  {
26
- let i = n.head, o = n.tail;
27
- if (r.$ === "Nil")
21
+ let i = r.head, l = r.tail;
22
+ if (a.$ === "Nil")
28
23
  return !1;
29
24
  {
30
- let h = r.head, x = r.tail;
31
- e = o, t = x, a = d(s, D(i, h));
25
+ let u = a.head, k = a.tail;
26
+ e = l, t = k, n = s(o, E(i, u));
32
27
  continue;
33
28
  }
34
29
  }
35
30
  }
36
31
  }
37
- function T(e, t, a) {
38
- let n = e.active, r = e.key;
39
- return d(n, d(v(a), k(r, t, !0)));
32
+ function g(e, t, n) {
33
+ let r = e.active, a = e.key;
34
+ return s(r, s(R(n), d(a, t, !0)));
40
35
  }
41
- function G(e, t, a, n) {
42
- return e ? { $: "state-plans.Write", key: t, expected: a, value: n } : { $: "state-plans.Denied" };
36
+ function x(e, t, n, r) {
37
+ return e ? { $: "state-plans.Write", key: t, expected: n, value: r } : { $: "state-plans.Denied" };
43
38
  }
44
- function E(e, t, a, n, r, s) {
45
- return G(d(T(e, t, s), k(a, n, !0)), t, a, r);
39
+ function T(e, t, n, r, a, o) {
40
+ return x(s(g(e, t, o), d(n, r, !0)), t, n, a);
46
41
  }
47
- function w(e) {
42
+ function f(e) {
48
43
  return { $: "state-plans.Grant", active: !1, key: e.key };
49
44
  }
50
- function N(e, t, a, n) {
51
- let r = e.grant, s = e.expected, i = e.payload;
52
- return { $: "provider-plans.Outcome", next: { $: "provider-plans.Ticket", grant: w(r), expected: s, payload: i }, plan: E(r, t, s, a, i, n) };
45
+ function w(e, t, n, r) {
46
+ let a = e.grant, o = e.expected, i = e.payload;
47
+ return { $: "provider-plans.Outcome", next: { $: "provider-plans.Ticket", grant: f(a), expected: o, payload: i }, plan: T(a, t, o, n, i, r) };
53
48
  }
54
- function O(e) {
55
- let t = e.grant, a = e.expected, n = e.payload;
56
- return { $: "provider-plans.Ticket", grant: w(t), expected: a, payload: n };
49
+ function m(e) {
50
+ let t = e.grant, n = e.expected, r = e.payload;
51
+ return { $: "provider-plans.Ticket", grant: f(t), expected: n, payload: r };
57
52
  }
58
- function R(e, t, a, n) {
59
- return N(e, t, a, n);
53
+ function b(e, t, n, r) {
54
+ return w(e, t, n, r);
60
55
  }
61
- function W(e) {
62
- return O(e);
56
+ function h(e) {
57
+ return m(e);
63
58
  }
64
- function d(e, t) {
59
+ function s(e, t) {
65
60
  return e ? t : !1;
66
61
  }
67
- function D(e, t) {
68
- return Q(_(e, t));
62
+ function E(e, t) {
63
+ return G(_(e, t));
69
64
  }
70
- function v(e) {
65
+ function R(e) {
71
66
  return !e;
72
67
  }
73
- function Q(e) {
68
+ function G(e) {
74
69
  return e.$ === "EQ";
75
70
  }
76
- function p(e) {
77
- let t = [e];
78
- for (let a = t, n = 0; ; )
79
- switch (e.$) {
80
- case "Nil":
81
- return a[n] = e, t[0];
82
- case "Con":
83
- a = a[n] = { ...e, head: b(e.head) }, n = "tail", e = e[n];
84
- continue;
85
- default:
86
- throw "bend: List has no tag " + e?.$ + " (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)";
87
- }
88
- }
89
- function l(e) {
90
- let t = [e];
91
- for (let a = t, n = 0; ; )
92
- switch (e.$) {
93
- case "Nil":
94
- return a[n] = e, t[0];
95
- case "Con":
96
- a = a[n] = { ...e, head: BigInt(e.head) }, n = "tail", e = e[n];
97
- continue;
98
- default:
99
- throw "bend: List has no tag " + e?.$ + " (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)";
100
- }
101
- }
102
- function C(e) {
103
- let t = [e];
104
- for (let a = t, n = 0; ; )
105
- switch (e.$) {
106
- case "state-plans.Grant":
107
- return a = a[n] = { ...e, key: p(e.key) }, t[0];
108
- default:
109
- throw "bend: state-plans.Grant has no tag " + e?.$ + " (its tags: state-plans.Grant); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
110
- }
111
- }
112
- function q(e) {
113
- let t = [e];
114
- for (let a = t, n = 0; ; )
115
- switch (e.$) {
116
- case "state-plans.Grant":
117
- return a = a[n] = { ...e, key: l(e.key) }, t[0];
118
- default:
119
- throw "bend: state-plans.Grant has no tag " + e?.$ + " (its tags: state-plans.Grant); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
120
- }
121
- }
122
- function P(e) {
123
- let t = [e];
124
- for (let a = t, n = 0; ; )
125
- switch (e.$) {
126
- case "state-plans.Denied":
127
- return a[n] = e, t[0];
128
- case "state-plans.Read":
129
- return a = a[n] = { ...e, key: l(e.key) }, t[0];
130
- case "state-plans.Write":
131
- return a = a[n] = { ...e, key: l(e.key), expected: l(e.expected), value: l(e.value) }, t[0];
132
- default:
133
- throw "bend: state-plans.Plan has no tag " + e?.$ + " (its tags: state-plans.Denied, state-plans.Read, state-plans.Write); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
134
- }
135
- }
136
- function m(e) {
137
- let t = [e];
138
- for (let a = t, n = 0; ; )
139
- switch (e.$) {
140
- case "provider-plans.Ticket":
141
- return a = a[n] = { ...e, grant: C(e.grant), expected: p(e.expected), payload: p(e.payload) }, t[0];
142
- default:
143
- throw "bend: provider-plans.Ticket has no tag " + e?.$ + " (its tags: provider-plans.Ticket); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
144
- }
145
- }
146
- function $(e) {
147
- let t = [e];
148
- for (let a = t, n = 0; ; )
149
- switch (e.$) {
150
- case "provider-plans.Ticket":
151
- return a = a[n] = { ...e, grant: q(e.grant), expected: l(e.expected), payload: l(e.payload) }, t[0];
152
- default:
153
- throw "bend: provider-plans.Ticket has no tag " + e?.$ + " (its tags: provider-plans.Ticket); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
154
- }
155
- }
156
- function U(e) {
157
- let t = [e];
158
- for (let a = t, n = 0; ; )
159
- switch (e.$) {
160
- case "provider-plans.Outcome":
161
- return a = a[n] = { ...e, next: $(e.next), plan: P(e.plan) }, t[0];
162
- default:
163
- throw "bend: provider-plans.Outcome has no tag " + e?.$ + " (its tags: provider-plans.Outcome); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
164
- }
165
- }
166
- var u = /* @__PURE__ */ new Map([["Unknown", "resources.Unknown"], ["Exact", "resources.Exact"], ["Quiet", "resources.Quiet"], ["Denied", "state-plans.Denied"], ["Read", "state-plans.Read"], ["Write", "state-plans.Write"], ["Grant", "state-plans.Grant"], ["Outcome", "provider-plans.Outcome"], ["Ticket", "provider-plans.Ticket"], ["Effect", "resources.Effect"]]), y = /* @__PURE__ */ new Map([["resources.Unknown", "Unknown"], ["resources.Exact", "Exact"], ["resources.Quiet", "Quiet"], ["state-plans.Denied", "Denied"], ["state-plans.Read", "Read"], ["state-plans.Write", "Write"], ["state-plans.Grant", "Grant"], ["provider-plans.Outcome", "Outcome"], ["provider-plans.Ticket", "Ticket"], ["resources.Effect", "Effect"]]);
167
- function c(e, t) {
168
- let a = [e];
169
- for (let n = [[a, 0]]; n.length > 0; ) {
170
- let [r, s] = n.pop(), i = r[s];
71
+ var $ = /* @__PURE__ */ new Map([["Unknown", "resources.Unknown"], ["Exact", "resources.Exact"], ["Quiet", "resources.Quiet"], ["Denied", "state-plans.Denied"], ["Read", "state-plans.Read"], ["Write", "state-plans.Write"], ["Grant", "state-plans.Grant"], ["Outcome", "provider-plans.Outcome"], ["Ticket", "provider-plans.Ticket"]]), v = /* @__PURE__ */ new Map([["resources.Unknown", "Unknown"], ["resources.Exact", "Exact"], ["resources.Quiet", "Quiet"], ["state-plans.Denied", "Denied"], ["state-plans.Read", "Read"], ["state-plans.Write", "Write"], ["state-plans.Grant", "Grant"], ["provider-plans.Outcome", "Outcome"], ["provider-plans.Ticket", "Ticket"]]);
72
+ function p(e, t) {
73
+ let n = [e];
74
+ for (let r = [[n, 0]]; r.length > 0; ) {
75
+ let [a, o] = r.pop(), i = a[o];
171
76
  if (i === null || typeof i != "object") continue;
172
- let o = Array.isArray(i) ? [...i] : { ...i };
173
- typeof o.$ == "string" && (o.$ = t.get(o.$) ?? o.$), r[s] = o;
174
- for (let h of Object.keys(o)) n.push([o, h]);
77
+ let l = Array.isArray(i) ? [...i] : { ...i };
78
+ typeof l.$ == "string" && (l.$ = t.get(l.$) ?? l.$), a[o] = l;
79
+ for (let u of Object.keys(l)) r.push([l, u]);
175
80
  }
176
- return a[0];
177
- }
178
- var j = /* @__PURE__ */ f((e, t, a, n) => {
179
- let r = U(g(R(m(e), p(t), p(a), n)));
180
- return $(e), l(t), l(a), r;
181
- }, 4), B = (e, t, a, n) => c(j(c(e, u), c(t, u), c(a, u), c(n, u)), y), L = /* @__PURE__ */ f((e) => {
182
- let t = $(g(W(m(e))));
183
- return $(e), t;
184
- }, 1), M = (e) => c(L(c(e, u)), y);
81
+ return n[0];
82
+ }
83
+ var O = /* @__PURE__ */ c((e, t, n, r) => b(e, t, n, r), 4), Q = (e, t, n, r) => p(O(p(e, $), p(t, $), p(n, $), p(r, $)), v), W = /* @__PURE__ */ c((e) => h(e), 1), D = (e) => p(W(p(e, $)), v);
185
84
  export {
186
- M as providerRevoke,
187
- B as providerTake
85
+ D as providerRevoke,
86
+ Q as providerTake
188
87
  };
@@ -1,7 +1,7 @@
1
1
  // Generated ABI declarations; see proofs/storage-abi.json.
2
- export type StorageText = { $: "Nil" } | { $: "Con"; head: bigint; tail: StorageText };
2
+ export type StorageText = { $: "Nil" } | { $: "Con"; head: number; tail: StorageText };
3
3
  /** Canonical radix-2^32 limbs: high <= 2^21-1, low <= 2^32-1. */
4
- export interface StorageRevision { $: "Revision"; high: bigint; low: bigint }
4
+ export interface StorageRevision { $: "Revision"; high: number; low: number }
5
5
  export type StorageExpectation = { $: "Any" } | { $: "At"; version: StorageRevision };
6
6
  export type StorageChange = { $: "Put"; value: StorageText; identity: StorageText } | { $: "Delete" };
7
7
  export interface StorageRequest { $: "Request"; key: StorageText; expected: StorageExpectation; change: StorageChange }
@@ -1,267 +1,107 @@
1
- // Generated by Bend 2.0.36; do not edit. See LAWS.bend and PROOF.bend.
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 d(e, t) {
4
+ function p(e, t) {
5
5
  return { $: e < t ? "LT" : e === t ? "EQ" : "GT" };
6
6
  }
7
- function y(e) {
7
+ function c(e) {
8
8
  if (e > 281474976710655)
9
9
  throw "bend: a Nat past the largest immediate 2^48-1";
10
10
  return e;
11
11
  }
12
- function c(e) {
13
- return (typeof e == "bigint" || Number.isInteger(e)) && e >= 0 && e <= 2 ** 53 ? Number(e) : { [Symbol.toPrimitive]() {
14
- throw "bend: a Nat past the largest immediate 2^48-1";
15
- } };
16
- }
17
- function D(e) {
12
+ function P(e) {
18
13
  for (; e !== null && typeof e == "object" && e.$ === "$JMP"; )
19
14
  e = e.f(e.x);
20
15
  return e;
21
16
  }
22
- function m(e, t) {
23
- return (...a) => a.length < t ? m((...s) => e(...a, ...s), t - a.length) : e(...a);
17
+ function f(e, t) {
18
+ return (...n) => n.length < t ? f((...a) => e(...n, ...a), t - n.length) : P(e(...n));
24
19
  }
25
- function C(e, t) {
26
- let a = e.high, s = e.low, n = t.high, r = t.low;
27
- return u(p(a, n), p(s, r));
20
+ function D(e, t) {
21
+ let n = e.high, a = e.low, r = t.high, o = t.low;
22
+ return i(u(n, r), u(a, o));
28
23
  }
29
- function q(e, t) {
24
+ function b(e, t) {
30
25
  if (e.$ === "storage-plans.Any")
31
26
  return !0;
32
27
  {
33
- let a = e.version;
34
- return C(a, t);
28
+ let n = e.version;
29
+ return D(n, t);
35
30
  }
36
31
  }
37
- function k(e) {
38
- let t = e.high, a = e.low, s = t < 2097151, n = a < 4294967295;
39
- return u(u(R(t, 2097151), R(a, 4294967295)), s || n);
32
+ function h(e) {
33
+ let t = e.high, n = e.low, a = t < 2097151, r = n < 4294967295;
34
+ return i(i(v(t, 2097151), v(n, 4294967295)), a || r);
40
35
  }
41
- function E(e, t, a) {
42
- return e ? { $: "storage-plans.Revision", high: y(t + 1), low: 0 } : { $: "storage-plans.Revision", high: t, low: y(a + 1) };
36
+ function m(e, t, n) {
37
+ return e ? { $: "storage-plans.Revision", high: c(t + 1), low: 0 } : { $: "storage-plans.Revision", high: t, low: c(n + 1) };
43
38
  }
44
- function h(e) {
45
- let t = e.high, a = e.low;
46
- return E(p(a, 4294967295), t, a);
39
+ function $(e) {
40
+ let t = e.high, n = e.low;
41
+ return m(u(n, 4294967295), t, n);
47
42
  }
48
- function x(e, t, a) {
49
- return e ? t : a;
43
+ function d(e, t, n) {
44
+ return e ? t : n;
50
45
  }
51
- function b(e, t) {
52
- return u(k(e), k(t));
46
+ function y(e, t) {
47
+ return i(h(e), h(t));
53
48
  }
54
- function N(e, t, a, s, n) {
49
+ function x(e, t, n, a, r) {
55
50
  if (e)
56
- if (a.$ === "storage-plans.Put") {
57
- let r = a.value, o = a.identity;
58
- return { $: "storage-plans.PutNext", key: t, value: r, identity: o, version: h(s), highWater: h(n) };
51
+ if (n.$ === "storage-plans.Put") {
52
+ let o = n.value, s = n.identity;
53
+ return { $: "storage-plans.PutNext", key: t, value: o, identity: s, version: $(a), highWater: $(r) };
59
54
  } else
60
- return { $: "storage-plans.DeleteNext", key: t, version: h(s), highWater: h(n) };
55
+ return { $: "storage-plans.DeleteNext", key: t, version: $(a), highWater: $(r) };
61
56
  else
62
57
  return { $: "storage-plans.Exhausted" };
63
58
  }
64
- function S(e, t, a, s, n) {
59
+ function A(e, t, n, a, r) {
65
60
  if (t.$ === "storage-plans.Delete")
66
- return a ? N(b(s, n), e, { $: "storage-plans.Delete" }, s, n) : { $: "storage-plans.Unchanged" };
61
+ return n ? x(y(a, r), e, { $: "storage-plans.Delete" }, a, r) : { $: "storage-plans.Unchanged" };
67
62
  {
68
- let r = t.value, o = t.identity;
69
- return N(b(x(a, s, n), n), e, { $: "storage-plans.Put", value: r, identity: o }, x(a, s, n), n);
63
+ let o = t.value, s = t.identity;
64
+ return x(y(d(n, a, r), r), e, { $: "storage-plans.Put", value: o, identity: s }, d(n, a, r), r);
70
65
  }
71
66
  }
72
- function U(e, t, a, s, n, r) {
73
- return e ? S(t, a, s, n, r) : { $: "storage-plans.Conflict" };
67
+ function C(e, t, n, a, r, o) {
68
+ return e ? A(t, n, a, r, o) : { $: "storage-plans.Conflict" };
74
69
  }
75
- function T(e, t) {
76
- let a = e.key, s = e.expected, n = e.change, r = t.present, o = t.version, l = t.highWater;
77
- return U(q(s, o), a, n, r, o, l);
70
+ function E(e, t) {
71
+ let n = e.key, a = e.expected, r = e.change, o = t.present, s = t.version, l = t.highWater;
72
+ return C(b(a, s), n, r, o, s, l);
78
73
  }
79
- function W(e, t) {
80
- return T(e, t);
74
+ function k(e, t) {
75
+ return E(e, t);
81
76
  }
82
- function u(e, t) {
77
+ function i(e, t) {
83
78
  return e ? t : !1;
84
79
  }
85
- function p(e, t) {
86
- return B(d(e, t));
80
+ function u(e, t) {
81
+ return R(p(e, t));
87
82
  }
88
- function R(e, t) {
89
- return I(d(e, t));
83
+ function v(e, t) {
84
+ return T(p(e, t));
90
85
  }
91
- function B(e) {
86
+ function R(e) {
92
87
  return e.$ === "EQ";
93
88
  }
94
- function I(e) {
89
+ function T(e) {
95
90
  return e.$ !== "GT";
96
91
  }
97
- function $(e) {
98
- let t = [e];
99
- for (let a = t, s = 0; ; )
100
- switch (e.$) {
101
- case "storage-plans.Revision":
102
- return a = a[s] = { ...e, high: c(e.high), low: c(e.low) }, t[0];
103
- default:
104
- throw "bend: storage-plans.Revision has no tag " + e?.$ + " (its tags: storage-plans.Revision); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
105
- }
106
- }
107
- function i(e) {
108
- let t = [e];
109
- for (let a = t, s = 0; ; )
110
- switch (e.$) {
111
- case "storage-plans.Revision":
112
- return a = a[s] = { ...e, high: BigInt(e.high), low: BigInt(e.low) }, t[0];
113
- default:
114
- throw "bend: storage-plans.Revision has no tag " + e?.$ + " (its tags: storage-plans.Revision); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
115
- }
116
- }
117
- function j(e) {
118
- let t = [e];
119
- for (let a = t, s = 0; ; )
120
- switch (e.$) {
121
- case "storage-plans.Any":
122
- return a[s] = e, t[0];
123
- case "storage-plans.At":
124
- return a = a[s] = { ...e, version: $(e.version) }, t[0];
125
- default:
126
- throw "bend: storage-plans.Expectation has no tag " + e?.$ + " (its tags: storage-plans.Any, storage-plans.At); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
127
- }
128
- }
129
- function G(e) {
130
- let t = [e];
131
- for (let a = t, s = 0; ; )
132
- switch (e.$) {
133
- case "storage-plans.Any":
134
- return a[s] = e, t[0];
135
- case "storage-plans.At":
136
- return a = a[s] = { ...e, version: i(e.version) }, t[0];
137
- default:
138
- throw "bend: storage-plans.Expectation has no tag " + e?.$ + " (its tags: storage-plans.Any, storage-plans.At); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
139
- }
140
- }
141
- function f(e) {
142
- let t = [e];
143
- for (let a = t, s = 0; ; )
144
- switch (e.$) {
145
- case "Nil":
146
- return a[s] = e, t[0];
147
- case "Con":
148
- a = a[s] = { ...e, head: c(e.head) }, s = "tail", e = e[s];
149
- continue;
150
- default:
151
- throw "bend: List has no tag " + e?.$ + " (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)";
152
- }
153
- }
154
- function L(e) {
155
- let t = [e];
156
- for (let a = t, s = 0; ; )
157
- switch (e.$) {
158
- case "storage-plans.Put":
159
- return a = a[s] = { ...e, value: f(e.value), identity: f(e.identity) }, t[0];
160
- case "storage-plans.Delete":
161
- return a[s] = e, t[0];
162
- default:
163
- throw "bend: storage-plans.Change has no tag " + e?.$ + " (its tags: storage-plans.Put, storage-plans.Delete); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
164
- }
165
- }
166
- function g(e) {
167
- let t = [e];
168
- for (let a = t, s = 0; ; )
169
- switch (e.$) {
170
- case "Nil":
171
- return a[s] = e, t[0];
172
- case "Con":
173
- a = a[s] = { ...e, head: BigInt(e.head) }, s = "tail", e = e[s];
174
- continue;
175
- default:
176
- throw "bend: List has no tag " + e?.$ + " (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)";
177
- }
178
- }
179
- function M(e) {
180
- let t = [e];
181
- for (let a = t, s = 0; ; )
182
- switch (e.$) {
183
- case "storage-plans.Put":
184
- return a = a[s] = { ...e, value: g(e.value), identity: g(e.identity) }, t[0];
185
- case "storage-plans.Delete":
186
- return a[s] = e, t[0];
187
- default:
188
- throw "bend: storage-plans.Change has no tag " + e?.$ + " (its tags: storage-plans.Put, storage-plans.Delete); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
189
- }
190
- }
191
- function Q(e) {
192
- let t = [e];
193
- for (let a = t, s = 0; ; )
194
- switch (e.$) {
195
- case "storage-plans.Conflict":
196
- return a[s] = e, t[0];
197
- case "storage-plans.Exhausted":
198
- return a[s] = e, t[0];
199
- case "storage-plans.Unchanged":
200
- return a[s] = e, t[0];
201
- case "storage-plans.PutNext":
202
- return a = a[s] = { ...e, key: g(e.key), value: g(e.value), identity: g(e.identity), version: i(e.version), highWater: i(e.highWater) }, t[0];
203
- case "storage-plans.DeleteNext":
204
- return a = a[s] = { ...e, key: g(e.key), version: i(e.version), highWater: i(e.highWater) }, t[0];
205
- default:
206
- throw "bend: storage-plans.Plan has no tag " + e?.$ + " (its tags: storage-plans.Conflict, storage-plans.Exhausted, storage-plans.Unchanged, storage-plans.PutNext, storage-plans.DeleteNext); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
207
- }
208
- }
209
- function J(e) {
210
- let t = [e];
211
- for (let a = t, s = 0; ; )
212
- switch (e.$) {
213
- case "storage-plans.Request":
214
- return a = a[s] = { ...e, key: f(e.key), expected: j(e.expected), change: L(e.change) }, t[0];
215
- default:
216
- throw "bend: storage-plans.Request has no tag " + e?.$ + " (its tags: storage-plans.Request); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
217
- }
218
- }
219
- function O(e) {
220
- let t = [e];
221
- for (let a = t, s = 0; ; )
222
- switch (e.$) {
223
- case "storage-plans.Slot":
224
- return a = a[s] = { ...e, version: $(e.version), highWater: $(e.highWater) }, t[0];
225
- default:
226
- throw "bend: storage-plans.Slot has no tag " + e?.$ + " (its tags: storage-plans.Slot); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
227
- }
228
- }
229
- function z(e) {
230
- let t = [e];
231
- for (let a = t, s = 0; ; )
232
- switch (e.$) {
233
- case "storage-plans.Request":
234
- return a = a[s] = { ...e, key: g(e.key), expected: G(e.expected), change: M(e.change) }, t[0];
235
- default:
236
- throw "bend: storage-plans.Request has no tag " + e?.$ + " (its tags: storage-plans.Request); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
237
- }
238
- }
239
- function F(e) {
240
- let t = [e];
241
- for (let a = t, s = 0; ; )
242
- switch (e.$) {
243
- case "storage-plans.Slot":
244
- return a = a[s] = { ...e, version: i(e.version), highWater: i(e.highWater) }, t[0];
245
- default:
246
- throw "bend: storage-plans.Slot has no tag " + e?.$ + " (its tags: storage-plans.Slot); a tag names its constructor as the loading file sees it, which a later version will make the same everywhere (#1105)";
247
- }
248
- }
249
- var P = /* @__PURE__ */ new Map([["Any", "storage-plans.Any"], ["Revision", "storage-plans.Revision"], ["Exhausted", "storage-plans.Exhausted"], ["Put", "storage-plans.Put"], ["PutNext", "storage-plans.PutNext"], ["DeleteNext", "storage-plans.DeleteNext"], ["Delete", "storage-plans.Delete"], ["Unchanged", "storage-plans.Unchanged"], ["Conflict", "storage-plans.Conflict"], ["At", "storage-plans.At"], ["Request", "storage-plans.Request"], ["Slot", "storage-plans.Slot"]]), H = /* @__PURE__ */ new Map([["storage-plans.Any", "Any"], ["storage-plans.Revision", "Revision"], ["storage-plans.Exhausted", "Exhausted"], ["storage-plans.Put", "Put"], ["storage-plans.PutNext", "PutNext"], ["storage-plans.DeleteNext", "DeleteNext"], ["storage-plans.Delete", "Delete"], ["storage-plans.Unchanged", "Unchanged"], ["storage-plans.Conflict", "Conflict"], ["storage-plans.At", "At"], ["storage-plans.Request", "Request"], ["storage-plans.Slot", "Slot"]]);
250
- function w(e, t) {
251
- let a = [e];
252
- for (let s = [[a, 0]]; s.length > 0; ) {
253
- let [n, r] = s.pop(), o = n[r];
254
- if (o === null || typeof o != "object") continue;
255
- let l = Array.isArray(o) ? [...o] : { ...o };
256
- typeof l.$ == "string" && (l.$ = t.get(l.$) ?? l.$), n[r] = l;
257
- for (let A of Object.keys(l)) s.push([l, A]);
92
+ var w = /* @__PURE__ */ new Map([["Any", "storage-plans.Any"], ["Revision", "storage-plans.Revision"], ["Exhausted", "storage-plans.Exhausted"], ["Put", "storage-plans.Put"], ["PutNext", "storage-plans.PutNext"], ["DeleteNext", "storage-plans.DeleteNext"], ["Delete", "storage-plans.Delete"], ["Unchanged", "storage-plans.Unchanged"], ["Conflict", "storage-plans.Conflict"]]), U = /* @__PURE__ */ new Map([["storage-plans.Any", "Any"], ["storage-plans.Revision", "Revision"], ["storage-plans.Exhausted", "Exhausted"], ["storage-plans.Put", "Put"], ["storage-plans.PutNext", "PutNext"], ["storage-plans.DeleteNext", "DeleteNext"], ["storage-plans.Delete", "Delete"], ["storage-plans.Unchanged", "Unchanged"], ["storage-plans.Conflict", "Conflict"]]);
93
+ function g(e, t) {
94
+ let n = [e];
95
+ for (let a = [[n, 0]]; a.length > 0; ) {
96
+ let [r, o] = a.pop(), s = r[o];
97
+ if (s === null || typeof s != "object") continue;
98
+ let l = Array.isArray(s) ? [...s] : { ...s };
99
+ typeof l.$ == "string" && (l.$ = t.get(l.$) ?? l.$), r[o] = l;
100
+ for (let N of Object.keys(l)) a.push([l, N]);
258
101
  }
259
- return a[0];
102
+ return n[0];
260
103
  }
261
- var K = /* @__PURE__ */ m((e, t) => {
262
- let a = Q(D(W(J(e), O(t))));
263
- return z(e), F(t), a;
264
- }, 2), V = (e, t) => w(K(w(e, P), w(t, P)), H);
104
+ var j = /* @__PURE__ */ f((e, t) => k(e, t), 2), G = (e, t) => g(j(g(e, w), g(t, w)), U);
265
105
  export {
266
- V as storageTransition
106
+ G as storageTransition
267
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"nat.d.ts","sourceRoot":"","sources":["../../src/verified/nat.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,QAAc,CAAC"}
1
+ {"version":3,"file":"nat.d.ts","sourceRoot":"","sources":["../../src/verified/nat.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,QAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/verified/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EACzF,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,GACxE,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,QAAQ,SAAS,CAAC,EAAE,KAAG,QAAQ,CAAC,CAAC,CAM5D,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,EAAE,WAAW,MAAM,EAAE,QAAQ,MAAM,KAAG,OAEtB,CAAC;AAErF,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,MAAM,KAAG,OAE1B,CAAC;AAEhF,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;qFACqF;AACrF,eAAO,MAAM,mBAAmB,GAAI,WAAW,YAAY,EAAE,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAG,OAmBvF,CAAC;AAEF,MAAM,WAAW,SAAS;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE;AAC3F,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,EAAE,QAAQ,MAAM,EAAE,eAAe,MAAM,EAAE,eAAe,MAAM,KAC7E,OAQF,CAAC;AAEF;gFACgF;AAChF,eAAO,MAAM,sBAAsB,GACjC,OAAO,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,KACvJ,IAOF,CAAC;AACF,UAAU,eAAe;IAAG,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE"}
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/verified/policy.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EACzF,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,GACxE,MAAM,uBAAuB,CAAC;AAK/B,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,QAAQ,SAAS,CAAC,EAAE,KAAG,QAAQ,CAAC,CAAC,CAM5D,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,EAAE,WAAW,MAAM,EAAE,QAAQ,MAAM,KAAG,OAEtD,CAAC;AAErD,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,OAAO,MAAM,KAAG,OAE1D,CAAC;AAEhD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;qFACqF;AACrF,eAAO,MAAM,mBAAmB,GAAI,WAAW,YAAY,EAAE,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAG,OAmBvF,CAAC;AAEF,MAAM,WAAW,SAAS;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE;AAC3F,eAAO,MAAM,iBAAiB,GAC5B,OAAO,SAAS,EAAE,QAAQ,MAAM,EAAE,eAAe,MAAM,EAAE,eAAe,MAAM,KAC7E,OAQF,CAAC;AAEF;gFACgF;AAChF,eAAO,MAAM,sBAAsB,GACjC,OAAO,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAC,KACvJ,IAOF,CAAC;AACF,UAAU,eAAe;IAAG,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE"}
@@ -575,7 +575,7 @@ Select a Jev entry in **Approvals → Auto model** after `/login jev` (TypeSafe
575
575
  }
576
576
  ```
577
577
 
578
- Jev is an auth-only provider, not a chat model. This picker offers `pi-fabric/typesafe/jev-latest`, `pi-fabric/typesafe/jev-1.13`, `pi-fabric/typesafe/jev-1.13.0`, and `pi-fabric/typesafe/jev-preview` only in the approvals list, plus the configured `jev.model` if different. It also offers OpenRouter-served `pi-fabric/openrouter/jev-latest` and `pi-fabric/openrouter/jev-1.13`, which reuse the existing `openrouter` credential (`/login openrouter`, `OPENROUTER_API_KEY`, or `TYPESAFE_OPENROUTER_API_KEY`); OpenRouter has no `jev-preview` alias and serves Jev on its Decisions API, not `/chat/completions`. Vercel AI Gateway-served `pi-fabric/vercel-ai-gateway/jev-latest` reuses the existing `vercel-ai-gateway` credential (`/login vercel-ai-gateway` or `AI_GATEWAY_API_KEY`); SubQ-served `pi-fabric/subq/subq-snap-preview` uses `/login subq` or `SUBQ_API_KEY` and resolves to `typesafe-ai/jev` on the gateway's TypeSafe-compatible endpoint. Legacy `jev/<model-id>` overrides normalize to `pi-fabric/typesafe/<model-id>` when loaded. `/login jev` credentials and raw TypeSafe request IDs (`jev-latest`, `jev-1.13`) are unchanged. **Inherit** still means the active Pi chat model, never Jev. Selecting Jev for approvals is independent of `jev.enabled`, which controls Fabric's Jev tool provider.
578
+ Jev is an auth-only provider, not a chat model. This picker offers `pi-fabric/typesafe/jev-latest`, `pi-fabric/typesafe/jev-1.13`, `pi-fabric/typesafe/jev-1.13.0`, `pi-fabric/typesafe/jev-1.14.0`, and `pi-fabric/typesafe/jev-preview` only in the approvals list, plus the configured `jev.model` if different. It also offers OpenRouter-served `pi-fabric/openrouter/jev-latest`, `pi-fabric/openrouter/jev-1.13` and `pi-fabric/openrouter/jev-1.14`, which reuse the existing `openrouter` credential (`/login openrouter`, `OPENROUTER_API_KEY`, or `TYPESAFE_OPENROUTER_API_KEY`); OpenRouter has no `jev-preview` alias and serves Jev on its Decisions API, not `/chat/completions`. Vercel AI Gateway-served `pi-fabric/vercel-ai-gateway/jev-latest` reuses the existing `vercel-ai-gateway` credential (`/login vercel-ai-gateway` or `AI_GATEWAY_API_KEY`); SubQ-served `pi-fabric/subq/subq-snap-preview` uses `/login subq` or `SUBQ_API_KEY` and resolves to `typesafe-ai/jev` on the gateway's TypeSafe-compatible endpoint. Legacy `jev/<model-id>` overrides normalize to `pi-fabric/typesafe/<model-id>` when loaded. `/login jev` credentials and raw TypeSafe request IDs (`jev-latest`, `jev-1.13`) are unchanged. **Inherit** still means the active Pi chat model, never Jev. Selecting Jev for approvals is independent of `jev.enabled`, which controls Fabric's Jev tool provider.
579
579
 
580
580
  The host asks four typed Noul questions in one request: whether the exact action is safe to run without human approval, whether it touches secrets or sensitive data, whether it is destructive or irreversible without a user-named target, and whether it targets only artifacts this session created. Auto-allow requires the safety probability to be **at least `jev.autoApprovalThreshold` (default 0.50)** **and** the secrets and destructive probabilities to stay below 0.5; all four verdicts and the effective threshold are recorded with the decision. Selecting a Jev model reveals **Approvals → Jev minimum probability**, an editable number from 0 to 1 in both terminal and RPC settings. The setting persists in the selected global/project scope, remains saved when switching models, and applies only to Jev classification. For example, `"jev": { "autoApprovalThreshold": 0.95 }` requires a probability of at least 0.95. Missing, non-numeric, non-finite, or out-of-range configuration values use the 0.50 default; valid decimals and zero are preserved. Upgrading from the former fixed 0.99 cutoff uses 0.50 unless you explicitly configure another value.
581
581
 
@@ -83,8 +83,8 @@ the separate ID explicitly.
83
83
  Exports include `PiDurableRunner`, `PiDurableRunnerOptions`,
84
84
  `PiDurableStorageOptions`, `PiDurableStorageLease`, `PiDurableLocator`, and
85
85
  `PiDurableMessageOptions`. Import/construction stays lazy and does not register a
86
- runner. First use checks pinned `@earendil-works/pi-durable@1.1.0` and
87
- `@earendil-works/chord@1.1.0`. Credentials remain in Models/environment, never in
86
+ runner. First use checks pinned `@earendil-works/pi-durable@1.3.0` and
87
+ `@earendil-works/chord@1.3.0`. Credentials remain in Models/environment, never in
88
88
  a locator.
89
89
 
90
90
  ### Leaf host setup
package/docs/interface.md CHANGED
@@ -16,6 +16,10 @@ Fabric keeps its orchestration-specific behavior around those previews. Multi-ca
16
16
 
17
17
  See [Background tasks and monitors](background-tasks.md) for completion delivery, task controls, opt-in UI-only versus agent-waking monitors, limits, and cancellation.
18
18
 
19
+ ## Widget activity
20
+
21
+ The bottom widget lists running agents and actors. Press **ctrl+shift+e**, run **`/fabric focus`**, or click a row to focus it. Then **↑↓** or **j/k** selects a row and **Enter** or **Space** expands it: the participant's live activity opens inside the widget, below the list, not in a floating window. It shows streamed thinking, each tool call with its arguments and status, replies, and errors, newest at the bottom. While a pane is open, **↑↓** switches participants, **PgUp/PgDn** or the mouse wheel scrolls, and **G** returns to the newest line. **Enter** or a second click collapses the pane. **Esc** collapses first, then returns focus to the editor; while the widget has focus, Esc does not halt background workers. Any other key returns focus to the editor and reaches it, so typing, Ctrl+C, and shortcuts keep working; only a click on a participant row takes focus. An expanded widget stays within half of the terminal height. With Pi's `hideThinkingBlock` setting, the pane shows the thinking marker without the reasoning text. The dashboard transcript does not show reasoning.
22
+
19
23
  ## Focused conversations
20
24
 
21
25
  Press **ctrl+shift+a** or run **`/fabric chat`** to open a full-screen conversation without going through the dashboard. `/fabric chat <id-or-name>` opens a specific agent or actor; Tab completes exact participant IDs, including nested agents. Ambiguous names or ID prefixes are rejected; use an exact participant ID to select the intended target. In the dashboard, **Shift+C** opens the selected participant.