@goah/cli 0.11.5 → 0.13.1

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 (242) hide show
  1. package/dist/LICENSE +201 -0
  2. package/dist/THIRD-PARTY-NOTICES.md +2319 -0
  3. package/dist/anthropic-messages-WBFOHES5.js +7214 -0
  4. package/dist/azure-openai-responses-NZFH3PO6.js +253 -0
  5. package/dist/chunk-25XSBFX6.js +639 -0
  6. package/dist/chunk-2QBQZGXF.js +110 -0
  7. package/dist/chunk-2ZP2NBW3.js +345 -0
  8. package/dist/chunk-4KA63VNZ.js +2 -0
  9. package/dist/chunk-4M6TXTT5.js +86 -0
  10. package/dist/chunk-4US7ZHT3.js +20 -0
  11. package/dist/chunk-6M3OOCKO.js +11809 -0
  12. package/dist/chunk-7AXAFDPG.js +17 -0
  13. package/dist/chunk-BXA47DTF.js +548 -0
  14. package/dist/chunk-FSBUS2BI.js +26 -0
  15. package/dist/chunk-GKDRAHLI.js +4787 -0
  16. package/dist/chunk-H462EFJP.js +89 -0
  17. package/dist/chunk-IIJQ3DW4.js +35 -0
  18. package/dist/chunk-JQD5EWJY.js +34 -0
  19. package/dist/chunk-K26BVR6O.js +61 -0
  20. package/dist/chunk-KAO7WIXG.js +31 -0
  21. package/dist/chunk-LBKI23CC.js +9810 -0
  22. package/dist/chunk-LKBKZEHT.js +41 -0
  23. package/dist/chunk-MD7TLTXZ.js +18 -0
  24. package/dist/chunk-MPXK7QBL.js +868 -0
  25. package/dist/chunk-NRLGWZJC.js +11 -0
  26. package/dist/chunk-PFEV3HWI.js +1178 -0
  27. package/dist/chunk-QBD6EJ2Z.js +1746 -0
  28. package/dist/chunk-R6I3VKME.js +132 -0
  29. package/dist/chunk-TJON22J4.js +87 -0
  30. package/dist/chunk-ULY36ME4.js +33097 -0
  31. package/dist/chunk-VWEV4LTH.js +25 -0
  32. package/dist/chunk-X7UWW2PN.js +883 -0
  33. package/dist/chunk-XALZLRYK.js +9221 -0
  34. package/dist/chunk-XPQKM3L7.js +57 -0
  35. package/dist/chunk-YH6YJ2IB.js +1773 -0
  36. package/dist/cli.d.ts +0 -2
  37. package/dist/cli.js +13148 -506
  38. package/dist/console/assets/index-3sYrDMmt.css +1 -0
  39. package/dist/console/assets/index-B1vGMXKr.js +52 -0
  40. package/dist/console/assets/index-B1vGMXKr.js.map +1 -0
  41. package/dist/console/index.html +2 -2
  42. package/dist/dist-65MDQA4Q.js +1126 -0
  43. package/dist/dist-KNR2XL6J.js +39 -0
  44. package/dist/execution.d.ts +557 -2
  45. package/dist/execution.js +37 -2
  46. package/dist/faux-runner-worker.js +128 -0
  47. package/dist/google-generative-ai-YMHXZSFE.js +422 -0
  48. package/dist/google-vertex-X6DB3ZQ6.js +471 -0
  49. package/dist/index.d.ts +855 -44
  50. package/dist/index.js +84 -257
  51. package/dist/kernel.d.ts +39 -2
  52. package/dist/kernel.js +21 -2
  53. package/dist/mistral-conversations-TY3MMD6G.js +718 -0
  54. package/dist/multipart-parser-F6M4NJZU.js +373 -0
  55. package/dist/openai-codex-responses-BRDUMLN5.js +1374 -0
  56. package/dist/openai-completions-CX634XN3.js +1139 -0
  57. package/dist/openai-responses-HMCXJIHT.js +300 -0
  58. package/dist/openrouter-images-KTWET2H2.js +148 -0
  59. package/dist/pi-messages-XL5OEC4K.js +307 -0
  60. package/dist/pi-worker.js +671 -0
  61. package/dist/runner-pi.d.ts +342 -2
  62. package/dist/runner-pi.js +46 -2
  63. package/dist/runner-registry-M776E3SE.js +22 -0
  64. package/dist/sqlite.d.ts +446 -2
  65. package/dist/sqlite.js +15 -2
  66. package/dist/src-F2KBSV4T.js +1398 -0
  67. package/dist/supervisor.d.ts +625 -2
  68. package/dist/supervisor.js +39 -2
  69. package/dist/testkit.d.ts +564 -2
  70. package/dist/testkit.js +127 -2
  71. package/dist/transcript.d.ts +84 -0
  72. package/dist/transcript.js +25 -0
  73. package/dist/verification-worker.js +72 -0
  74. package/package.json +3 -28
  75. package/dist/cli.d.ts.map +0 -1
  76. package/dist/cli.js.map +0 -1
  77. package/dist/console/assets/index-BJTGvlCH.js +0 -52
  78. package/dist/console/assets/index-BJTGvlCH.js.map +0 -1
  79. package/dist/console/assets/index-msBn41Cl.css +0 -1
  80. package/dist/control.d.ts +0 -106
  81. package/dist/control.d.ts.map +0 -1
  82. package/dist/control.js +0 -215
  83. package/dist/control.js.map +0 -1
  84. package/dist/execution.d.ts.map +0 -1
  85. package/dist/execution.js.map +0 -1
  86. package/dist/index.d.ts.map +0 -1
  87. package/dist/index.js.map +0 -1
  88. package/dist/inspect.d.ts +0 -61
  89. package/dist/inspect.d.ts.map +0 -1
  90. package/dist/inspect.js +0 -110
  91. package/dist/inspect.js.map +0 -1
  92. package/dist/kernel.d.ts.map +0 -1
  93. package/dist/kernel.js.map +0 -1
  94. package/dist/live-config.d.ts +0 -10
  95. package/dist/live-config.d.ts.map +0 -1
  96. package/dist/live-config.js +0 -44
  97. package/dist/live-config.js.map +0 -1
  98. package/dist/metrics.d.ts +0 -2
  99. package/dist/metrics.d.ts.map +0 -1
  100. package/dist/metrics.js +0 -2
  101. package/dist/metrics.js.map +0 -1
  102. package/dist/prompt-queue.d.ts +0 -13
  103. package/dist/prompt-queue.d.ts.map +0 -1
  104. package/dist/prompt-queue.js +0 -30
  105. package/dist/prompt-queue.js.map +0 -1
  106. package/dist/runner-pi.d.ts.map +0 -1
  107. package/dist/runner-pi.js.map +0 -1
  108. package/dist/runner-registry.d.ts +0 -8
  109. package/dist/runner-registry.d.ts.map +0 -1
  110. package/dist/runner-registry.js +0 -12
  111. package/dist/runner-registry.js.map +0 -1
  112. package/dist/searchable-select.d.ts +0 -24
  113. package/dist/searchable-select.d.ts.map +0 -1
  114. package/dist/searchable-select.js +0 -61
  115. package/dist/searchable-select.js.map +0 -1
  116. package/dist/secret-input.d.ts +0 -8
  117. package/dist/secret-input.d.ts.map +0 -1
  118. package/dist/secret-input.js +0 -14
  119. package/dist/secret-input.js.map +0 -1
  120. package/dist/session.d.ts +0 -2
  121. package/dist/session.d.ts.map +0 -1
  122. package/dist/session.js +0 -2
  123. package/dist/session.js.map +0 -1
  124. package/dist/setup-wizard.d.ts +0 -11
  125. package/dist/setup-wizard.d.ts.map +0 -1
  126. package/dist/setup-wizard.js +0 -130
  127. package/dist/setup-wizard.js.map +0 -1
  128. package/dist/sqlite.d.ts.map +0 -1
  129. package/dist/sqlite.js.map +0 -1
  130. package/dist/supervisor.d.ts.map +0 -1
  131. package/dist/supervisor.js.map +0 -1
  132. package/dist/testkit.d.ts.map +0 -1
  133. package/dist/testkit.js.map +0 -1
  134. package/dist/tui-theme.d.ts +0 -16
  135. package/dist/tui-theme.d.ts.map +0 -1
  136. package/dist/tui-theme.js +0 -18
  137. package/dist/tui-theme.js.map +0 -1
  138. package/dist/tui.d.ts +0 -18
  139. package/dist/tui.d.ts.map +0 -1
  140. package/dist/tui.js +0 -583
  141. package/dist/tui.js.map +0 -1
  142. package/dist/update.d.ts +0 -15
  143. package/dist/update.d.ts.map +0 -1
  144. package/dist/update.js +0 -59
  145. package/dist/update.js.map +0 -1
  146. package/dist/web-console.d.ts +0 -33
  147. package/dist/web-console.d.ts.map +0 -1
  148. package/dist/web-console.js +0 -252
  149. package/dist/web-console.js.map +0 -1
  150. package/dist/welcome.d.ts +0 -30
  151. package/dist/welcome.d.ts.map +0 -1
  152. package/dist/welcome.js +0 -81
  153. package/dist/welcome.js.map +0 -1
  154. package/node_modules/goah-ledger-contract/dist/execution.d.ts +0 -402
  155. package/node_modules/goah-ledger-contract/dist/execution.d.ts.map +0 -1
  156. package/node_modules/goah-ledger-contract/dist/execution.js +0 -40
  157. package/node_modules/goah-ledger-contract/dist/execution.js.map +0 -1
  158. package/node_modules/goah-ledger-contract/dist/index.d.ts +0 -5
  159. package/node_modules/goah-ledger-contract/dist/index.d.ts.map +0 -1
  160. package/node_modules/goah-ledger-contract/dist/index.js +0 -5
  161. package/node_modules/goah-ledger-contract/dist/index.js.map +0 -1
  162. package/node_modules/goah-ledger-contract/dist/kernel.d.ts +0 -37
  163. package/node_modules/goah-ledger-contract/dist/kernel.d.ts.map +0 -1
  164. package/node_modules/goah-ledger-contract/dist/kernel.js +0 -8
  165. package/node_modules/goah-ledger-contract/dist/kernel.js.map +0 -1
  166. package/node_modules/goah-ledger-contract/dist/metrics.d.ts +0 -40
  167. package/node_modules/goah-ledger-contract/dist/metrics.d.ts.map +0 -1
  168. package/node_modules/goah-ledger-contract/dist/metrics.js +0 -25
  169. package/node_modules/goah-ledger-contract/dist/metrics.js.map +0 -1
  170. package/node_modules/goah-ledger-contract/dist/session.d.ts +0 -63
  171. package/node_modules/goah-ledger-contract/dist/session.d.ts.map +0 -1
  172. package/node_modules/goah-ledger-contract/dist/session.js +0 -115
  173. package/node_modules/goah-ledger-contract/dist/session.js.map +0 -1
  174. package/node_modules/goah-ledger-contract/package.json +0 -29
  175. package/node_modules/goah-ledger-sqlite/dist/index.d.ts +0 -77
  176. package/node_modules/goah-ledger-sqlite/dist/index.d.ts.map +0 -1
  177. package/node_modules/goah-ledger-sqlite/dist/index.js +0 -884
  178. package/node_modules/goah-ledger-sqlite/dist/index.js.map +0 -1
  179. package/node_modules/goah-ledger-sqlite/package.json +0 -26
  180. package/node_modules/goah-runner-pi/dist/configurator.d.ts +0 -20
  181. package/node_modules/goah-runner-pi/dist/configurator.d.ts.map +0 -1
  182. package/node_modules/goah-runner-pi/dist/configurator.js +0 -267
  183. package/node_modules/goah-runner-pi/dist/configurator.js.map +0 -1
  184. package/node_modules/goah-runner-pi/dist/credential-store.d.ts +0 -12
  185. package/node_modules/goah-runner-pi/dist/credential-store.d.ts.map +0 -1
  186. package/node_modules/goah-runner-pi/dist/credential-store.js +0 -69
  187. package/node_modules/goah-runner-pi/dist/credential-store.js.map +0 -1
  188. package/node_modules/goah-runner-pi/dist/env-spec.d.ts +0 -17
  189. package/node_modules/goah-runner-pi/dist/env-spec.d.ts.map +0 -1
  190. package/node_modules/goah-runner-pi/dist/env-spec.js +0 -95
  191. package/node_modules/goah-runner-pi/dist/env-spec.js.map +0 -1
  192. package/node_modules/goah-runner-pi/dist/index.d.ts +0 -64
  193. package/node_modules/goah-runner-pi/dist/index.d.ts.map +0 -1
  194. package/node_modules/goah-runner-pi/dist/index.js +0 -241
  195. package/node_modules/goah-runner-pi/dist/index.js.map +0 -1
  196. package/node_modules/goah-runner-pi/dist/model-provider.d.ts +0 -30
  197. package/node_modules/goah-runner-pi/dist/model-provider.d.ts.map +0 -1
  198. package/node_modules/goah-runner-pi/dist/model-provider.js +0 -96
  199. package/node_modules/goah-runner-pi/dist/model-provider.js.map +0 -1
  200. package/node_modules/goah-runner-pi/dist/pi-worker.d.ts +0 -29
  201. package/node_modules/goah-runner-pi/dist/pi-worker.d.ts.map +0 -1
  202. package/node_modules/goah-runner-pi/dist/pi-worker.js +0 -428
  203. package/node_modules/goah-runner-pi/dist/pi-worker.js.map +0 -1
  204. package/node_modules/goah-runner-pi/dist/test-helpers.d.ts +0 -4
  205. package/node_modules/goah-runner-pi/dist/test-helpers.d.ts.map +0 -1
  206. package/node_modules/goah-runner-pi/dist/test-helpers.js +0 -11
  207. package/node_modules/goah-runner-pi/dist/test-helpers.js.map +0 -1
  208. package/node_modules/goah-runner-pi/dist/verification-worker.d.ts +0 -2
  209. package/node_modules/goah-runner-pi/dist/verification-worker.d.ts.map +0 -1
  210. package/node_modules/goah-runner-pi/dist/verification-worker.js +0 -48
  211. package/node_modules/goah-runner-pi/dist/verification-worker.js.map +0 -1
  212. package/node_modules/goah-runner-pi/package.json +0 -28
  213. package/node_modules/goah-supervisor/dist/context-view.d.ts +0 -31
  214. package/node_modules/goah-supervisor/dist/context-view.d.ts.map +0 -1
  215. package/node_modules/goah-supervisor/dist/context-view.js +0 -71
  216. package/node_modules/goah-supervisor/dist/context-view.js.map +0 -1
  217. package/node_modules/goah-supervisor/dist/index.d.ts +0 -94
  218. package/node_modules/goah-supervisor/dist/index.d.ts.map +0 -1
  219. package/node_modules/goah-supervisor/dist/index.js +0 -888
  220. package/node_modules/goah-supervisor/dist/index.js.map +0 -1
  221. package/node_modules/goah-supervisor/dist/roles.d.ts +0 -3
  222. package/node_modules/goah-supervisor/dist/roles.d.ts.map +0 -1
  223. package/node_modules/goah-supervisor/dist/roles.js +0 -14
  224. package/node_modules/goah-supervisor/dist/roles.js.map +0 -1
  225. package/node_modules/goah-supervisor/dist/verification.d.ts +0 -82
  226. package/node_modules/goah-supervisor/dist/verification.d.ts.map +0 -1
  227. package/node_modules/goah-supervisor/dist/verification.js +0 -110
  228. package/node_modules/goah-supervisor/dist/verification.js.map +0 -1
  229. package/node_modules/goah-supervisor/package.json +0 -26
  230. package/node_modules/goah-testkit/dist/faux-runner-worker.d.ts +0 -2
  231. package/node_modules/goah-testkit/dist/faux-runner-worker.d.ts.map +0 -1
  232. package/node_modules/goah-testkit/dist/faux-runner-worker.js +0 -75
  233. package/node_modules/goah-testkit/dist/faux-runner-worker.js.map +0 -1
  234. package/node_modules/goah-testkit/dist/index.d.ts +0 -52
  235. package/node_modules/goah-testkit/dist/index.d.ts.map +0 -1
  236. package/node_modules/goah-testkit/dist/index.js +0 -113
  237. package/node_modules/goah-testkit/dist/index.js.map +0 -1
  238. package/node_modules/goah-testkit/dist/mock-connector-worker.d.ts +0 -2
  239. package/node_modules/goah-testkit/dist/mock-connector-worker.d.ts.map +0 -1
  240. package/node_modules/goah-testkit/dist/mock-connector-worker.js +0 -29
  241. package/node_modules/goah-testkit/dist/mock-connector-worker.js.map +0 -1
  242. package/node_modules/goah-testkit/package.json +0 -29
@@ -1,28 +0,0 @@
1
- {
2
- "name": "goah-runner-pi",
3
- "private": true,
4
- "version": "0.6.0",
5
- "license": "Apache-2.0",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/billc8128/opengoah.git",
9
- "directory": "packages/runner-pi"
10
- },
11
- "engines": {
12
- "node": ">=24.0.0"
13
- },
14
- "files": [
15
- "dist",
16
- "!dist/**/*.test.*",
17
- "!dist/.tsbuildinfo"
18
- ],
19
- "type": "module",
20
- "main": "./dist/index.js",
21
- "types": "./dist/index.d.ts",
22
- "exports": "./dist/index.js",
23
- "dependencies": {
24
- "@earendil-works/pi-agent-core": "0.84.2",
25
- "@earendil-works/pi-ai": "0.84.2",
26
- "goah-ledger-contract": "0.6.0"
27
- }
28
- }
@@ -1,31 +0,0 @@
1
- import type { ActionSnapshot, AgentCapability, AgentRole, EventRecord, GoalSnapshot, MailSnapshot, TeamMemberView, WakeSnapshot } from "goah-ledger-contract";
2
- export interface ActiveContextView {
3
- role: AgentRole;
4
- capabilities: AgentCapability[];
5
- systemPrompt: string;
6
- text: string;
7
- sourceSeqs: number[];
8
- }
9
- export interface ActiveContextInput {
10
- role: AgentRole;
11
- capabilities: AgentCapability[];
12
- systemPrompt: string;
13
- wake: WakeSnapshot;
14
- goals: GoalSnapshot[];
15
- mail: MailSnapshot[];
16
- actions: ActionSnapshot[];
17
- lastHandoff: EventRecord | null;
18
- teamHandoffs: EventRecord[];
19
- team: TeamMemberView[];
20
- revisionWarnings: string[];
21
- recoveryEvents: EventRecord[];
22
- /** Durable agent-owned working-memory facts; injected as a bounded advisory tail. */
23
- workingMemory?: readonly EventRecord[];
24
- }
25
- /** Keep recovery actionable and bounded; raw Session history remains queryable in the ledger. */
26
- export declare function selectRecoveryEvents(events: EventRecord[]): EventRecord[];
27
- /** Keep the newest notes within a character budget; the full stream is never compacted. */
28
- export declare function selectWorkingMemory(events: readonly EventRecord[], charBudget: number): EventRecord[];
29
- /** Deterministically render structured projections into the model's short working set. */
30
- export declare function composeActiveContext(input: ActiveContextInput): ActiveContextView;
31
- //# sourceMappingURL=context-view.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-view.d.ts","sourceRoot":"","sources":["../src/context-view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAa,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzK,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,qFAAqF;IACrF,aAAa,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CACxC;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAQzE;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,WAAW,EAAE,CAYrG;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,iBAAiB,CAgCjF"}
@@ -1,71 +0,0 @@
1
- /** Keep recovery actionable and bounded; raw Session history remains queryable in the ledger. */
2
- export function selectRecoveryEvents(events) {
3
- const unknownCalls = new Set(events.filter((event) => event.type === "tool.completed" && field(field(event.data, "result"), "outcome") === "unknown").map((event) => String(field(event.data, "callId"))));
4
- return events.filter((event) => {
5
- if (["wake.abnormal_reason", "session.interrupted", "context.compacted", "ceo.motion_invalid"].includes(event.type))
6
- return true;
7
- if (event.type === "tool.called")
8
- return unknownCalls.has(String(field(event.data, "callId")));
9
- if (event.type === "tool.completed")
10
- return unknownCalls.has(String(field(event.data, "callId")));
11
- return false;
12
- });
13
- }
14
- /** Keep the newest notes within a character budget; the full stream is never compacted. */
15
- export function selectWorkingMemory(events, charBudget) {
16
- const notes = events.filter((event) => event.type === "memory.appended");
17
- const tail = [];
18
- let used = 0;
19
- for (let index = notes.length - 1; index >= 0; index -= 1) {
20
- const event = notes[index];
21
- const length = String(field(event.data, "note") ?? "").length;
22
- if (tail.length > 0 && used + length > charBudget)
23
- break;
24
- tail.push(event);
25
- used += length;
26
- }
27
- return tail.reverse();
28
- }
29
- /** Deterministically render structured projections into the model's short working set. */
30
- export function composeActiveContext(input) {
31
- const handoff = input.lastHandoff?.data;
32
- const sourceSeqs = new Set();
33
- if (input.lastHandoff)
34
- sourceSeqs.add(input.lastHandoff.seq);
35
- for (const event of input.teamHandoffs)
36
- sourceSeqs.add(event.seq);
37
- for (const event of input.recoveryEvents)
38
- sourceSeqs.add(event.seq);
39
- for (const action of input.actions)
40
- for (const seq of action.evidence)
41
- sourceSeqs.add(seq);
42
- for (const event of input.workingMemory ?? [])
43
- sourceSeqs.add(event.seq);
44
- const sections = [
45
- ["Objectives", input.goals.map((goal) => `- [${goal.id}] ${goal.objective} (owner: ${goal.owner}, phase: ${goal.phase}, revision: ${goal.revision})`)],
46
- ["Observation methods", input.goals.map((goal) => `## ${goal.id}\n\n${goal.observationMethod ?? "MISSING — inspect the project and request authoritative confirmation before claiming progress or completion."}`)],
47
- ["Verification methods", input.goals.map((goal) => `## ${goal.id}\n\n${goal.verificationMethod ?? "MISSING — define authoritative completion evidence before claiming completion."}`)],
48
- ["Revision barriers", input.revisionWarnings.map((warning) => `- ${warning}`)],
49
- ["Wake", [`- Trigger: ${input.wake.triggerRef}`, `- Attempt: ${input.wake.attempt}`]],
50
- ["Working memory", (input.workingMemory ?? []).map((event) => `- ${String(field(event.data, "note") ?? "")} [event:${event.seq}]`)],
51
- ["Current state", lines(handoff?.observations)],
52
- ["Verified", lines(handoff?.results).map((line) => `${line}${input.lastHandoff ? ` [event:${input.lastHandoff.seq}]` : ""}`)],
53
- ["Open", [
54
- ...(typeof handoff?.blocker === "string" && handoff.blocker ? [`- ${handoff.blocker}`] : []),
55
- ...input.actions.filter((action) => action.status === "unknown").map((action) => `- Action ${action.id} has unknown external outcome; reconcile before retrying.`),
56
- ...input.actions.filter((action) => action.auditAdvice && !action.adviceAcked).map((action) => `- Audit advice for ${action.id}: ${render(action.auditAdvice.body)}`),
57
- ]],
58
- ["Next", lines(handoff?.nextSteps)],
59
- ["Incoming", input.mail.map((mail) => `- [${mail.level}] from ${mail.from}: ${render(mail.body)}`)],
60
- ["External actions", input.actions.filter((action) => !["confirmed", "failed"].includes(action.status)).map((action) => `- ${action.id}: ${action.kind} — ${action.status}`)],
61
- ["Team motion", input.team.map((member) => `- ${member.agent}: ${member.status}; goals=${member.goalIds.join(",") || "none"}; next=${member.nextWakeAt ?? "none"}; handoff=${member.lastHandoffSeq ?? "none"}`)],
62
- ["Team handoffs", input.teamHandoffs.map((event) => `- ${event.actor}: ${render(event.data)} [event:${event.seq}]`)],
63
- ["Recovery", input.recoveryEvents.map((event) => `- ${event.type}: ${render(event.data)} [event:${event.seq}]`)],
64
- ];
65
- const text = sections.filter(([, values]) => values.length > 0).map(([title, values]) => `# ${title}\n\n${values.join("\n")}`).join("\n\n");
66
- return { role: input.role, capabilities: input.capabilities, systemPrompt: input.systemPrompt, text, sourceSeqs: [...sourceSeqs].sort((a, b) => a - b) };
67
- }
68
- function lines(value) { return Array.isArray(value) ? value.filter((item) => typeof item === "string").map((item) => `- ${item}`) : []; }
69
- function render(value) { return typeof value === "string" ? value : JSON.stringify(value); }
70
- function field(value, key) { return value && typeof value === "object" && !Array.isArray(value) ? value[key] : undefined; }
71
- //# sour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clock, type ConnectorProcessSpec, type DelegationRequest, type DelegationResult, type GoalSnapshot, type GoalCompletionRequest, type GoalPhase, type JsonValue, type Ledger, type MailSnapshot, type MetricEvaluation, type MetricContract, type MetricProcessSpec, type MetricSample, type ReassignmentRequest, type ReassignmentResult, type Runner, type RunnerHandle, type RunnerProfile, type TeamMemberView, type WakeSnapshot } from "goah-ledger-contract";
2
- export { composeActiveContext, selectRecoveryEvents, type ActiveContextInput, type ActiveContextView } from "./context-view.js";
3
- /** Dispatches each wake to the runner selected by its opaque Runner Profile. */
4
- export declare class RunnerRouter implements Runner {
5
- #private;
6
- readonly runners: ReadonlyMap<string, Runner>;
7
- readonly fallback: string;
8
- readonly isolation: "process";
9
- constructor(runners: ReadonlyMap<string, Runner>, fallback?: string);
10
- prepare(request: Parameters<Runner["prepare"]>[0]): RunnerHandle;
11
- terminateProcess(pid: number): Promise<void>;
12
- }
13
- export interface SupervisorOptions {
14
- leaseMs?: number;
15
- memoryTailChars?: number;
16
- allowExternalActions?: boolean;
17
- approvers?: string[];
18
- auditWriters?: string[];
19
- silence?: {
20
- maxSilentMs?: number;
21
- notify?: string;
22
- } | null;
23
- retryPolicy?: {
24
- maxAttempts: number;
25
- baseDelayMs: number;
26
- };
27
- profiles?: AgentProfile[];
28
- runnerProfiles?: RunnerProfile[];
29
- verifyMetricsAfterWake?: boolean;
30
- }
31
- export declare class Supervisor {
32
- #private;
33
- readonly ledger: Ledger;
34
- readonly clock: Clock;
35
- constructor(ledger: Ledger, runner: Runner, clock: Clock, options?: SupervisorOptions);
36
- registerConnector(connector: ConnectorProcessSpec): void;
37
- registerMetricContract(goalId: string, contract: MetricContract): void;
38
- registerMetricCollector(goalId: string, contract: MetricContract, spec: MetricProcessSpec, intervalMs?: number): void;
39
- /**
40
- * Hot-swap the runner after a config reload. Refused while a wake is leased
41
- * or running: a live child must never observe its runner vanish mid-flight.
42
- * The next tick claims wakes through the new runner, and spawn-time env
43
- * resolution applies the new credentials to the next spawn.
44
- */
45
- swapRunner(runner: Runner, profiles?: RunnerProfile[]): void;
46
- get runner(): Runner;
47
- createGoal(goal: GoalSnapshot, actor?: string): void;
48
- createRootGoal(objective: string, id?: string): GoalSnapshot;
49
- startGoal(objective: string, id?: string): {
50
- goal: GoalSnapshot;
51
- wake: WakeSnapshot;
52
- };
53
- interactWithCeo(message: string): {
54
- mail: MailSnapshot;
55
- wake: WakeSnapshot;
56
- };
57
- sendToCeo(body: JsonValue, level?: "fyi" | "decision" | "emergency"): {
58
- mail: MailSnapshot;
59
- wake: WakeSnapshot;
60
- };
61
- delegate(request: DelegationRequest, actor?: string, wakeId?: string): DelegationResult;
62
- reassignGoal(request: ReassignmentRequest, actor?: string, wakeId?: string): ReassignmentResult;
63
- teamList(now?: string): TeamMemberView[];
64
- updateGoal(id: string, patch: Partial<Pick<GoalSnapshot, "objective" | "observationMethod" | "verificationMethod" | "owner">>, actor?: string): GoalSnapshot;
65
- confirmObservationMethod(id: string, observationMethod: string): GoalSnapshot;
66
- reviseChildGoal(id: string, objective: string, observationMethod: string, verificationMethod: string, actor: string, reason: string, evidence: number[], wakeId?: string): GoalSnapshot;
67
- completeGoal(request: GoalCompletionRequest, actor?: string, wakeId?: string): GoalSnapshot;
68
- transitionGoal(id: string, phase: GoalPhase, actor?: string): GoalSnapshot;
69
- planWake(agent: string, at: string, reason: string, setBy?: string): WakeSnapshot | null;
70
- stopAgentWake(agent: string): Promise<WakeSnapshot | null>;
71
- recover(): Promise<void>;
72
- tick(): Promise<WakeSnapshot | null>;
73
- runAvailable(concurrency?: number, maxWakes?: number): Promise<WakeSnapshot[]>;
74
- submitAction(action: Omit<ActionSnapshot, "connector" | "gated" | "status" | "reconciledAt" | "externalRef">, connectorName: string, wakeId?: string): Promise<ActionSnapshot>;
75
- approveAction(id: string, approver: string, reason: string, evidence: number[]): Promise<ActionSnapshot>;
76
- rejectAction(id: string, approver: string, reason: string, evidence: number[]): ActionSnapshot;
77
- putAuditAdvice(id: string, advice: Omit<AuditAdvice, "at">, wakeId?: string): ActionSnapshot;
78
- ackAuditAdvice(id: string, agent: string): ActionSnapshot;
79
- recordMetric(sample: MetricSample): MetricEvaluation;
80
- collectMetricNow(goalId: string): Promise<MetricEvaluation>;
81
- reconcileAction(id: string): Promise<ActionSnapshot>;
82
- retryUnknownAction(id: string): Promise<ActionSnapshot>;
83
- }
84
- export declare function runSupervisorDaemon(supervisor: Supervisor, options?: {
85
- pollMs?: number;
86
- concurrency?: number;
87
- signal?: AbortSignal;
88
- onError?: (error: unknown) => void;
89
- }): Promise<void>;
90
- export declare function deriveTeam(ledger: Ledger, now?: string): TeamMemberView[];
91
- export declare function renderDashboard(ledger: Ledger): string;
92
- export * from "./verification.js";
93
- export * from "./roles.js";
94
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,cAAc,EAEnB,KAAK,YAAY,EAEjB,KAAK,WAAW,EAChB,KAAK,KAAK,EAEV,KAAK,oBAAoB,EAEzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAE1B,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,YAAY,EAEjB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,aAAa,EAElB,KAAK,cAAc,EAGnB,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEhI,gFAAgF;AAChF,qBAAa,YAAa,YAAW,MAAM;;IAG7B,QAAQ,CAAC,OAA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