@leuduan/lagent 0.1.2 → 44.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/README.md +28 -15
  2. package/dist/chunks/{UC3FVVJ2.js → 2GCIWSOA.js} +2 -2
  3. package/dist/chunks/2P47AHNK.js +7 -0
  4. package/dist/chunks/3UMZMPWW.js +1 -0
  5. package/dist/chunks/5IRF47YB.js +1 -0
  6. package/dist/chunks/6DRCKZ2C.js +1 -0
  7. package/dist/chunks/6FRNHMCV.js +1 -0
  8. package/dist/chunks/7LI64H5X.js +17 -0
  9. package/dist/chunks/{SL2YLB2F.js → 7VAPNE3L.js} +1 -1
  10. package/dist/chunks/{BM3S37EZ.js → ASSQZH3F.js} +1 -1
  11. package/dist/chunks/B4FXK5ER.js +77 -0
  12. package/dist/chunks/{37YOGDGY.js → BBCW2FZK.js} +1 -1
  13. package/dist/chunks/BPRCULZH.js +1 -0
  14. package/dist/chunks/CANPZYTH.js +24 -0
  15. package/dist/chunks/CQEVREBT.js +1 -0
  16. package/dist/chunks/CUK7CGC7.js +1 -0
  17. package/dist/chunks/D4PQP5MA.js +3 -0
  18. package/dist/chunks/{CDQG7RKA.js → DDZ7YF26.js} +1 -1
  19. package/dist/chunks/EMRB4KCN.js +6 -0
  20. package/dist/chunks/EPYQ5M3B.js +3 -0
  21. package/dist/chunks/G44LG6VL.js +1 -0
  22. package/dist/chunks/GGSVIIWJ.js +2 -0
  23. package/dist/chunks/IAAEP6VL.js +30 -0
  24. package/dist/chunks/{AP6Q4EPT.js → JCTBX33H.js} +1 -1
  25. package/dist/chunks/JFX2MXBA.js +4 -0
  26. package/dist/chunks/JFZZXVWD.js +15 -0
  27. package/dist/chunks/KUZCL2SH.js +1 -0
  28. package/dist/chunks/MHC6VPB4.js +7 -0
  29. package/dist/chunks/MMNNZCBO.js +5 -0
  30. package/dist/chunks/{C5LYCXJG.js → MNJ4SRF7.js} +1 -1
  31. package/dist/chunks/N6IXG2VL.js +1 -0
  32. package/dist/chunks/OCBPT7KE.js +1 -0
  33. package/dist/chunks/OL5A6ITQ.js +1 -0
  34. package/dist/chunks/Q75FUN7D.js +2 -0
  35. package/dist/chunks/Q7S5LFGN.js +1 -0
  36. package/dist/chunks/RCIHV3KG.js +1 -0
  37. package/dist/chunks/S34ZA2R6.js +1 -0
  38. package/dist/chunks/SS3B5W34.js +12 -0
  39. package/dist/chunks/VYMT4TXD.js +1 -0
  40. package/dist/chunks/W57RW55W.js +1 -0
  41. package/dist/compositions/base.d.ts +11 -0
  42. package/dist/{presets → compositions}/codex.d.ts +12 -6
  43. package/dist/{presets/prompts.d.ts → compositions/codexPrompts.d.ts} +1 -1
  44. package/dist/context.d.ts +18 -10
  45. package/dist/index.d.ts +31 -23
  46. package/dist/index.js +1 -77
  47. package/dist/journal/catalog.d.ts +1 -1
  48. package/dist/journal/journal.d.ts +3 -3
  49. package/dist/journal/projection.d.ts +1 -1
  50. package/dist/journal/store.d.ts +3 -3
  51. package/dist/llm/index.d.ts +19 -13
  52. package/dist/llm/index.js +1 -0
  53. package/dist/llm/provider.d.ts +11 -0
  54. package/dist/loop/agent.d.ts +16 -132
  55. package/dist/loop/authorization.d.ts +41 -0
  56. package/dist/loop/auxiliary.d.ts +7 -3
  57. package/dist/loop/chunks.d.ts +3 -3
  58. package/dist/loop/completion.d.ts +17 -0
  59. package/dist/loop/errors.d.ts +6 -29
  60. package/dist/loop/hooks.d.ts +39 -6
  61. package/dist/loop/index.d.ts +7 -28
  62. package/dist/loop/runner.d.ts +134 -0
  63. package/dist/loop/runtime.d.ts +7 -16
  64. package/dist/loop/strategy.d.ts +12 -3
  65. package/dist/loop/{prepare.d.ts → surfacePrepare.d.ts} +2 -2
  66. package/dist/loop/tool.d.ts +11 -6
  67. package/dist/loop/toolCalls.d.ts +3 -10
  68. package/dist/plugin.d.ts +31 -34
  69. package/dist/plugin.js +1 -1
  70. package/dist/plugins/agentsMd.d.ts +24 -20
  71. package/dist/plugins/agentsMd.js +1 -1
  72. package/dist/plugins/ask/index.d.ts +2 -2
  73. package/dist/plugins/ask/index.js +1 -1
  74. package/dist/plugins/ask/service.d.ts +2 -2
  75. package/dist/plugins/commands/index.d.ts +5 -2
  76. package/dist/plugins/commands/index.js +1 -1
  77. package/dist/plugins/commands/output.d.ts +1 -1
  78. package/dist/plugins/commands/record.d.ts +31 -22
  79. package/dist/plugins/commands/service.d.ts +18 -11
  80. package/dist/plugins/commands/{background.d.ts → tools.d.ts} +2 -0
  81. package/dist/plugins/compaction/checkpoint.d.ts +4 -1
  82. package/dist/plugins/compaction/config.d.ts +3 -3
  83. package/dist/plugins/compaction/estimate.d.ts +9 -1
  84. package/dist/plugins/compaction/index.d.ts +87 -2
  85. package/dist/plugins/compaction/index.js +5 -5
  86. package/dist/plugins/compaction/{records.d.ts → record.d.ts} +36 -36
  87. package/dist/plugins/compaction/{log.d.ts → state.d.ts} +8 -1
  88. package/dist/plugins/dateAndBranch.js +1 -1
  89. package/dist/plugins/delegations/answers.d.ts +1 -1
  90. package/dist/plugins/delegations/assignmentKey.d.ts +1 -1
  91. package/dist/plugins/delegations/cleanup.d.ts +1 -1
  92. package/dist/plugins/delegations/index.js +1 -1
  93. package/dist/plugins/delegations/notices.d.ts +8 -8
  94. package/dist/plugins/delegations/obligations.d.ts +13 -13
  95. package/dist/plugins/delegations/record.d.ts +11 -10
  96. package/dist/plugins/delegations/request.d.ts +8 -5
  97. package/dist/plugins/delegations/role.d.ts +1 -1
  98. package/dist/plugins/delegations/service.d.ts +9 -8
  99. package/dist/plugins/delegations/{waitBook.d.ts → waitResolver.d.ts} +9 -9
  100. package/dist/plugins/diagnostics/digest.d.ts +1 -1
  101. package/dist/plugins/diagnostics/index.d.ts +1 -1
  102. package/dist/plugins/diagnostics/index.js +1 -1
  103. package/dist/plugins/fileTools/config.d.ts +10 -0
  104. package/dist/plugins/{tools → fileTools}/editFiles.d.ts +16 -27
  105. package/dist/plugins/fileTools/gitDiscovery.d.ts +9 -0
  106. package/dist/plugins/fileTools/index.d.ts +18 -0
  107. package/dist/plugins/fileTools/index.js +1 -0
  108. package/dist/plugins/fileTools/tools.d.ts +6 -0
  109. package/dist/plugins/historyRecall/history.d.ts +1 -1
  110. package/dist/plugins/historyRecall/index.js +1 -1
  111. package/dist/plugins/historyRecall/render.d.ts +1 -1
  112. package/dist/plugins/mcp/catalog.d.ts +1 -1
  113. package/dist/plugins/mcp/index.d.ts +2 -2
  114. package/dist/plugins/mcp/index.js +1 -1
  115. package/dist/plugins/mcp/mount.d.ts +2 -2
  116. package/dist/plugins/mcp/render.d.ts +1 -1
  117. package/dist/plugins/mcp/{tool.d.ts → tools.d.ts} +1 -1
  118. package/dist/plugins/{routeContext.d.ts → routeNotice.d.ts} +2 -2
  119. package/dist/plugins/routeNotice.js +1 -0
  120. package/dist/{sandbox → plugins/sandbox}/absent.d.ts +11 -10
  121. package/dist/{sandbox → plugins/sandbox}/index.d.ts +5 -2
  122. package/dist/plugins/sandbox/index.js +4 -0
  123. package/dist/{sandbox → plugins/sandbox}/mode.d.ts +5 -5
  124. package/dist/plugins/sandbox/policy.d.ts +163 -0
  125. package/dist/{sandbox → plugins/sandbox}/service.d.ts +23 -13
  126. package/dist/plugins/schedules/index.js +3 -3
  127. package/dist/plugins/schedules/record.d.ts +18 -18
  128. package/dist/plugins/schedules/service.d.ts +2 -2
  129. package/dist/plugins/skills/discovery.d.ts +38 -9
  130. package/dist/plugins/skills/index.d.ts +1 -1
  131. package/dist/plugins/skills/index.js +1 -1
  132. package/dist/plugins/subAgents/index.js +1 -1
  133. package/dist/plugins/subAgents/{fork.d.ts → tools.d.ts} +36 -1
  134. package/dist/plugins/threadDirs.d.ts +36 -0
  135. package/dist/plugins/threadDirs.js +1 -0
  136. package/dist/plugins/toolPolicy/index.d.ts +2 -2
  137. package/dist/plugins/toolPolicy/index.js +1 -1
  138. package/dist/plugins/truncateToolOutput.d.ts +14 -10
  139. package/dist/plugins/truncateToolOutput.js +6 -1
  140. package/dist/plugins/usage/index.d.ts +4 -2
  141. package/dist/plugins/usage/index.js +1 -1
  142. package/dist/plugins/usage/tracker.d.ts +1 -1
  143. package/dist/plugins/verify/index.d.ts +7 -55
  144. package/dist/plugins/verify/index.js +6 -1
  145. package/dist/plugins/verify/judgement.d.ts +16 -0
  146. package/dist/plugins/verify/record.d.ts +382 -0
  147. package/dist/plugins/verify/service.d.ts +7 -4
  148. package/dist/plugins/verify/state.d.ts +58 -0
  149. package/dist/plugins/webTools/index.d.ts +34 -0
  150. package/dist/plugins/webTools/index.js +1 -0
  151. package/dist/plugins/workflows/assignment.d.ts +6 -2
  152. package/dist/plugins/workflows/cleanup.d.ts +1 -1
  153. package/dist/plugins/workflows/definition.d.ts +2 -2
  154. package/dist/plugins/workflows/{bindings.d.ts → entryPlan.d.ts} +2 -2
  155. package/dist/plugins/workflows/{providers.d.ts → hostBindings.d.ts} +2 -2
  156. package/dist/plugins/workflows/index.d.ts +4 -4
  157. package/dist/plugins/workflows/index.js +10 -5
  158. package/dist/plugins/workflows/observations.d.ts +3 -3
  159. package/dist/plugins/workflows/participantModels.d.ts +28 -0
  160. package/dist/plugins/workflows/participants.d.ts +2 -2
  161. package/dist/plugins/workflows/policy.d.ts +2 -2
  162. package/dist/plugins/workflows/record.d.ts +51 -65
  163. package/dist/plugins/workflows/routing.d.ts +2 -2
  164. package/dist/plugins/workflows/service.d.ts +24 -24
  165. package/dist/plugins/workflows/{fold.d.ts → state.d.ts} +2 -2
  166. package/dist/plugins/workflows/stopCheck.d.ts +13 -0
  167. package/dist/plugins/workflows/tools.d.ts +13 -0
  168. package/dist/plugins/workflows/view.d.ts +2 -2
  169. package/dist/plugins/{workspaceContext.d.ts → workspaceNotice.d.ts} +5 -7
  170. package/dist/plugins/workspaceNotice.js +1 -0
  171. package/dist/{plugins/providers → providers}/anthropic.d.ts +6 -3
  172. package/dist/{plugins/providers → providers}/anthropicMessages.d.ts +2 -1
  173. package/dist/{plugins/providers → providers}/codex.d.ts +14 -3
  174. package/dist/{plugins/providers → providers}/deepseek.d.ts +6 -2
  175. package/dist/{plugins/providers → providers}/failure.d.ts +1 -1
  176. package/dist/{plugins/providers → providers}/gateway.d.ts +2 -1
  177. package/dist/providers/index.d.ts +18 -0
  178. package/dist/providers/index.js +6 -0
  179. package/dist/{plugins/providers → providers}/openaiChat.d.ts +13 -2
  180. package/dist/{plugins/providers → providers}/openaiResponses.d.ts +12 -3
  181. package/dist/{plugins/providers → providers}/opencodeCopilot.d.ts +2 -2
  182. package/dist/{plugins/providers → providers}/opencodeGo.d.ts +18 -7
  183. package/dist/{plugins/providers → providers}/shared.d.ts +9 -1
  184. package/dist/{plugins/providers → providers}/stream.d.ts +4 -2
  185. package/dist/{models/door.d.ts → records/index.d.ts} +8 -7
  186. package/dist/records/index.js +1 -0
  187. package/dist/{models/wire → records}/journal.d.ts +210 -14
  188. package/dist/{models/wire/primitives.d.ts → records/toolResult.d.ts} +1 -1
  189. package/dist/services/agents.d.ts +26 -1
  190. package/dist/services/confinement/files.d.ts +118 -0
  191. package/dist/services/confinement/service.d.ts +219 -0
  192. package/dist/services/core.d.ts +2 -8
  193. package/dist/{kit/extension.d.ts → services/extensionEvents.d.ts} +5 -4
  194. package/dist/services/journal.d.ts +1 -1
  195. package/dist/services/llm.d.ts +4 -2
  196. package/dist/{kit → services}/modes.d.ts +1 -1
  197. package/dist/services/plugins.d.ts +34 -0
  198. package/dist/services/{preset.d.ts → presets/definition.d.ts} +4 -4
  199. package/dist/services/{presets.d.ts → presets/installations.d.ts} +3 -3
  200. package/dist/services/prompts.d.ts +23 -5
  201. package/dist/services/{threadActivation.d.ts → threads/activation.d.ts} +3 -3
  202. package/dist/services/{admission.d.ts → threads/admission.d.ts} +3 -3
  203. package/dist/services/{birth.d.ts → threads/birth.d.ts} +9 -10
  204. package/dist/services/threads/index.d.ts +14 -0
  205. package/dist/services/{runEvents.d.ts → threads/runEvents.d.ts} +2 -2
  206. package/dist/services/{owner.d.ts → threads/runOwner.d.ts} +5 -4
  207. package/dist/services/{threads.d.ts → threads/service.d.ts} +9 -8
  208. package/dist/services/{thread.d.ts → threads/thread.d.ts} +8 -7
  209. package/dist/services/{threadView.d.ts → threads/view.d.ts} +7 -6
  210. package/dist/services/tools.d.ts +79 -2
  211. package/dist/{loop/opening.d.ts → state/birth.d.ts} +22 -2
  212. package/dist/{loop → state}/chain.d.ts +3 -3
  213. package/dist/state/confirmations.d.ts +64 -0
  214. package/dist/{loop → state}/continuation.d.ts +3 -2
  215. package/dist/{loop → state}/decide.d.ts +10 -2
  216. package/dist/state/dispatches.d.ts +54 -0
  217. package/dist/state/errors.d.ts +26 -0
  218. package/dist/{loop → state}/forks.d.ts +1 -1
  219. package/dist/{loop → state}/holds.d.ts +1 -1
  220. package/dist/{loop → state}/inbox.d.ts +2 -2
  221. package/dist/state/index.d.ts +31 -0
  222. package/dist/state/inputs.d.ts +58 -0
  223. package/dist/state/installations.d.ts +28 -0
  224. package/dist/state/prompt.d.ts +13 -0
  225. package/dist/state/recovery.d.ts +7 -0
  226. package/dist/{loop → state}/replace.d.ts +2 -2
  227. package/dist/{loop → state}/requests.d.ts +3 -3
  228. package/dist/{loop → state}/route.d.ts +10 -2
  229. package/dist/state/summary.d.ts +16 -0
  230. package/dist/{loop → state}/surface.d.ts +3 -3
  231. package/dist/state/surfaceRead.d.ts +20 -0
  232. package/dist/{loop/threadState.d.ts → state/thread.d.ts} +12 -11
  233. package/dist/state/turns.d.ts +87 -0
  234. package/dist/state/waits.d.ts +38 -0
  235. package/dist/{loop → state}/wake.d.ts +1 -1
  236. package/dist/stores/durableObject.js +1 -0
  237. package/dist/{plugins/store → stores}/memory.d.ts +2 -2
  238. package/dist/{plugins/store → stores}/sql.d.ts +2 -2
  239. package/dist/stores/sqlite.js +1 -0
  240. package/dist/sys/environment.d.ts +0 -5
  241. package/dist/sys/git.d.ts +0 -13
  242. package/dist/sys/paths.d.ts +0 -47
  243. package/dist/sys/spawn.d.ts +16 -6
  244. package/dist/testing/clock.d.ts +1 -1
  245. package/dist/testing/fakeLlm.d.ts +4 -2
  246. package/dist/testing/fedLlm.d.ts +3 -1
  247. package/dist/testing/helpers.d.ts +31 -13
  248. package/dist/testing/index.js +1 -1
  249. package/dist/testing/settlement.d.ts +1 -1
  250. package/package.json +36 -28
  251. package/dist/chunks/2O7ZGEIT.js +0 -1
  252. package/dist/chunks/2OSESBIL.js +0 -1
  253. package/dist/chunks/3LQHQRIU.js +0 -6
  254. package/dist/chunks/3QCW4WDJ.js +0 -1
  255. package/dist/chunks/4XVRUSCQ.js +0 -1
  256. package/dist/chunks/6ECI2GGV.js +0 -1
  257. package/dist/chunks/74HKUGRR.js +0 -1
  258. package/dist/chunks/ADHERZLW.js +0 -2
  259. package/dist/chunks/D7E6EWIE.js +0 -3
  260. package/dist/chunks/DRYAN665.js +0 -1
  261. package/dist/chunks/DXFXAYDN.js +0 -17
  262. package/dist/chunks/EGZI4XQX.js +0 -24
  263. package/dist/chunks/ENWFSU27.js +0 -41
  264. package/dist/chunks/G6RXC3AL.js +0 -1
  265. package/dist/chunks/G74AGRAJ.js +0 -15
  266. package/dist/chunks/GQGNVSKB.js +0 -1
  267. package/dist/chunks/IJ2WNMD5.js +0 -7
  268. package/dist/chunks/JPZFKSWT.js +0 -1
  269. package/dist/chunks/KESCTXGO.js +0 -5
  270. package/dist/chunks/L3N4FIEN.js +0 -1
  271. package/dist/chunks/NAOUTU7A.js +0 -4
  272. package/dist/chunks/NDIM7MEW.js +0 -1
  273. package/dist/chunks/O4PPOM5Z.js +0 -2
  274. package/dist/chunks/OVZFGILJ.js +0 -1
  275. package/dist/chunks/P5ZHHOOM.js +0 -6
  276. package/dist/chunks/QMMLQJBS.js +0 -1
  277. package/dist/chunks/RK3VP2Q4.js +0 -3
  278. package/dist/chunks/SGGMBSBA.js +0 -1
  279. package/dist/chunks/TOOIB6J2.js +0 -1
  280. package/dist/chunks/TYTQRLTX.js +0 -1
  281. package/dist/chunks/UCTEU62F.js +0 -1
  282. package/dist/chunks/UD3VJER6.js +0 -1
  283. package/dist/chunks/WUUKTSRT.js +0 -7
  284. package/dist/chunks/X65X4KP5.js +0 -7
  285. package/dist/chunks/YIR5MYGU.js +0 -1
  286. package/dist/chunks/YLNJXQ3Z.js +0 -1
  287. package/dist/kit/claim.d.ts +0 -13
  288. package/dist/kit/drain.d.ts +0 -10
  289. package/dist/kit/grants.d.ts +0 -9
  290. package/dist/kit/scope.d.ts +0 -32
  291. package/dist/kit/service.d.ts +0 -7
  292. package/dist/kit/strategy.d.ts +0 -10
  293. package/dist/kit/tool.d.ts +0 -72
  294. package/dist/llm/door.d.ts +0 -21
  295. package/dist/llm/door.js +0 -1
  296. package/dist/loop/projections.d.ts +0 -307
  297. package/dist/loop/state.d.ts +0 -70
  298. package/dist/loop/summary.d.ts +0 -3
  299. package/dist/models/config/agent.d.ts +0 -18
  300. package/dist/models/config/prompt.d.ts +0 -18
  301. package/dist/models/door.js +0 -1
  302. package/dist/models/index.d.ts +0 -7
  303. package/dist/plugins/commands/foreground.d.ts +0 -4
  304. package/dist/plugins/compaction/preset.d.ts +0 -86
  305. package/dist/plugins/compaction/shared.d.ts +0 -14
  306. package/dist/plugins/delegations/testing.d.ts +0 -16
  307. package/dist/plugins/providers/door.d.ts +0 -61
  308. package/dist/plugins/providers/door.js +0 -1
  309. package/dist/plugins/providers/index.d.ts +0 -6
  310. package/dist/plugins/routeContext.js +0 -1
  311. package/dist/plugins/store/durableObject.js +0 -1
  312. package/dist/plugins/store/sqlite.js +0 -1
  313. package/dist/plugins/subAgents/tool.d.ts +0 -38
  314. package/dist/plugins/tools/index.d.ts +0 -59
  315. package/dist/plugins/tools/index.js +0 -1
  316. package/dist/plugins/verify/facts.d.ts +0 -356
  317. package/dist/plugins/workflows/submit.d.ts +0 -8
  318. package/dist/plugins/workspaceContext.js +0 -1
  319. package/dist/presets/agents.d.ts +0 -7
  320. package/dist/presets/base.d.ts +0 -10
  321. package/dist/presets/index.d.ts +0 -4
  322. package/dist/sandbox/index.js +0 -4
  323. package/dist/sandbox/policy.d.ts +0 -86
  324. package/dist/services/launches.d.ts +0 -104
  325. package/dist/services/threadDirs.d.ts +0 -38
  326. package/dist/testing/sandbox.d.ts +0 -71
  327. /package/dist/chunks/{UKXMCHHT.js → FJLU4UH3.js} +0 -0
  328. /package/dist/chunks/{J5S4URAW.js → HK6ZSONF.js} +0 -0
  329. /package/dist/plugins/ask/{askQuestion.d.ts → tools.d.ts} +0 -0
  330. /package/dist/plugins/delegations/{waits.d.ts → waitContracts.d.ts} +0 -0
  331. /package/dist/plugins/{tools → fileTools}/fsRead.d.ts +0 -0
  332. /package/dist/plugins/{tools → fileTools}/ripgrep.d.ts +0 -0
  333. /package/dist/plugins/{tools → fileTools}/textEdit.d.ts +0 -0
  334. /package/dist/{util → plugins/mcp}/version.d.ts +0 -0
  335. /package/dist/{sandbox → plugins/sandbox}/client.d.ts +0 -0
  336. /package/dist/{sandbox → plugins/sandbox}/files.d.ts +0 -0
  337. /package/dist/{sandbox → plugins/sandbox}/protocol.d.ts +0 -0
  338. /package/dist/{sandbox → plugins/sandbox}/worker.d.ts +0 -0
  339. /package/dist/{sandbox → plugins/sandbox}/worker.js +0 -0
  340. /package/dist/plugins/skills/{tool.d.ts → tools.d.ts} +0 -0
  341. /package/dist/plugins/{tools → webTools}/html.d.ts +0 -0
  342. /package/dist/plugins/{tools → webTools}/network.d.ts +0 -0
  343. /package/dist/plugins/{tools → webTools}/web.d.ts +0 -0
  344. /package/dist/plugins/workflows/{work.d.ts → workStatus.d.ts} +0 -0
  345. /package/dist/{plugins/providers → providers}/codexAuth.d.ts +0 -0
  346. /package/dist/services/{contributions.d.ts → catalogContributions.d.ts} +0 -0
  347. /package/dist/{loop → state}/limits.d.ts +0 -0
  348. /package/dist/{plugins/store → stores}/durableObject.d.ts +0 -0
  349. /package/dist/{plugins/store → stores}/durableObjectConnection.d.ts +0 -0
  350. /package/dist/{plugins/store → stores}/sqlite.d.ts +0 -0
  351. /package/dist/{models → util}/jsonSchema.d.ts +0 -0
  352. /package/dist/{kit → util}/retries.d.ts +0 -0
  353. /package/dist/{kit → util}/timers.d.ts +0 -0
@@ -0,0 +1,382 @@
1
+ import { z } from 'zod';
2
+ export declare const VERIFY_PRESET = "verify";
3
+ /** Repair continuations per verification since person input or genuinely new assignment arming. */
4
+ export declare const VERIFY_REPAIRS = 2;
5
+ export type Verification = {
6
+ readonly command: string;
7
+ readonly cwd: string;
8
+ };
9
+ export declare const notice: {
10
+ record: (value: {
11
+ command: string;
12
+ cwd: string;
13
+ }) => import("../../records/journal.js").ExtensionRecord;
14
+ parse: (value: {
15
+ command: string;
16
+ cwd: string;
17
+ }) => {
18
+ command: string;
19
+ cwd: string;
20
+ };
21
+ entry: (value: {
22
+ command: string;
23
+ cwd: string;
24
+ }, options: import("../../plugin.js").AppendOptions) => {
25
+ type: "ext";
26
+ data: {
27
+ plugin: string;
28
+ instance_id: string;
29
+ kind: string;
30
+ version: number;
31
+ data: z.core.util.JSONType;
32
+ };
33
+ options: import("../../plugin.js").AppendOptions;
34
+ };
35
+ append(journal: import("../../plugin.js").PluginJournal, value: {
36
+ command: string;
37
+ cwd: string;
38
+ }, options: import("../../plugin.js").AppendOptions): Promise<import("../../records/journal.js").JournalEvent<"ext">>;
39
+ read(event: import("../../records/journal.js").JournalEvent): {
40
+ command: string;
41
+ cwd: string;
42
+ } | undefined;
43
+ contribution(message: {
44
+ role?: import("../../records/journal.js").InputRole;
45
+ content: string | readonly import("../../llm/content.js").ContentPartInput[];
46
+ }, value: {
47
+ command: string;
48
+ cwd: string;
49
+ }, options?: {
50
+ sourceSeqs?: readonly import("../../records/journal.js").Seq[];
51
+ }): import("../../records/journal.js").StepContribution;
52
+ matchesSource(record: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord>): boolean;
53
+ rejection(reason: string, value: {
54
+ command: string;
55
+ cwd: string;
56
+ }): {
57
+ decision: "reject";
58
+ reason: string;
59
+ source: import("../../records/journal.js").ExtensionRecord;
60
+ };
61
+ readContribution: (event: import("../../records/journal.js").JournalEvent) => {
62
+ command: string;
63
+ cwd: string;
64
+ } | undefined;
65
+ readSource: (source: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord> | null) => {
66
+ command: string;
67
+ cwd: string;
68
+ } | undefined;
69
+ told: import("../../plugin.js").PluginProjection<import("../../services/extensionEvents.js").ToldNotices<{
70
+ command: string;
71
+ cwd: string;
72
+ }>>;
73
+ projection<State>(fold: {
74
+ key: string;
75
+ init(): State;
76
+ apply(state: State, value: {
77
+ command: string;
78
+ cwd: string;
79
+ }, event: import("../../records/journal.js").JournalEvent<"ext">): State;
80
+ onFork?: "inherit" | "reset";
81
+ }): import("../../plugin.js").PluginProjection<State>;
82
+ };
83
+ export declare const repair: {
84
+ record: (value: {
85
+ command: string;
86
+ cwd: string;
87
+ }) => import("../../records/journal.js").ExtensionRecord;
88
+ parse: (value: {
89
+ command: string;
90
+ cwd: string;
91
+ }) => {
92
+ command: string;
93
+ cwd: string;
94
+ };
95
+ entry: (value: {
96
+ command: string;
97
+ cwd: string;
98
+ }, options: import("../../plugin.js").AppendOptions) => {
99
+ type: "ext";
100
+ data: {
101
+ plugin: string;
102
+ instance_id: string;
103
+ kind: string;
104
+ version: number;
105
+ data: z.core.util.JSONType;
106
+ };
107
+ options: import("../../plugin.js").AppendOptions;
108
+ };
109
+ append(journal: import("../../plugin.js").PluginJournal, value: {
110
+ command: string;
111
+ cwd: string;
112
+ }, options: import("../../plugin.js").AppendOptions): Promise<import("../../records/journal.js").JournalEvent<"ext">>;
113
+ read(event: import("../../records/journal.js").JournalEvent): {
114
+ command: string;
115
+ cwd: string;
116
+ } | undefined;
117
+ contribution(message: {
118
+ role?: import("../../records/journal.js").InputRole;
119
+ content: string | readonly import("../../llm/content.js").ContentPartInput[];
120
+ }, value: {
121
+ command: string;
122
+ cwd: string;
123
+ }, options?: {
124
+ sourceSeqs?: readonly import("../../records/journal.js").Seq[];
125
+ }): import("../../records/journal.js").StepContribution;
126
+ matchesSource(record: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord>): boolean;
127
+ rejection(reason: string, value: {
128
+ command: string;
129
+ cwd: string;
130
+ }): {
131
+ decision: "reject";
132
+ reason: string;
133
+ source: import("../../records/journal.js").ExtensionRecord;
134
+ };
135
+ readContribution: (event: import("../../records/journal.js").JournalEvent) => {
136
+ command: string;
137
+ cwd: string;
138
+ } | undefined;
139
+ readSource: (source: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord> | null) => {
140
+ command: string;
141
+ cwd: string;
142
+ } | undefined;
143
+ told: import("../../plugin.js").PluginProjection<import("../../services/extensionEvents.js").ToldNotices<{
144
+ command: string;
145
+ cwd: string;
146
+ }>>;
147
+ projection<State>(fold: {
148
+ key: string;
149
+ init(): State;
150
+ apply(state: State, value: {
151
+ command: string;
152
+ cwd: string;
153
+ }, event: import("../../records/journal.js").JournalEvent<"ext">): State;
154
+ onFork?: "inherit" | "reset";
155
+ }): import("../../plugin.js").PluginProjection<State>;
156
+ };
157
+ export declare const rejected: {
158
+ record: (value: {
159
+ cause: "execution" | "denied" | "unverified";
160
+ command: string;
161
+ cwd: string;
162
+ }) => import("../../records/journal.js").ExtensionRecord;
163
+ parse: (value: {
164
+ cause: "execution" | "denied" | "unverified";
165
+ command: string;
166
+ cwd: string;
167
+ }) => {
168
+ cause: "execution" | "denied" | "unverified";
169
+ command: string;
170
+ cwd: string;
171
+ };
172
+ entry: (value: {
173
+ cause: "execution" | "denied" | "unverified";
174
+ command: string;
175
+ cwd: string;
176
+ }, options: import("../../plugin.js").AppendOptions) => {
177
+ type: "ext";
178
+ data: {
179
+ plugin: string;
180
+ instance_id: string;
181
+ kind: string;
182
+ version: number;
183
+ data: z.core.util.JSONType;
184
+ };
185
+ options: import("../../plugin.js").AppendOptions;
186
+ };
187
+ append(journal: import("../../plugin.js").PluginJournal, value: {
188
+ cause: "execution" | "denied" | "unverified";
189
+ command: string;
190
+ cwd: string;
191
+ }, options: import("../../plugin.js").AppendOptions): Promise<import("../../records/journal.js").JournalEvent<"ext">>;
192
+ read(event: import("../../records/journal.js").JournalEvent): {
193
+ cause: "execution" | "denied" | "unverified";
194
+ command: string;
195
+ cwd: string;
196
+ } | undefined;
197
+ contribution(message: {
198
+ role?: import("../../records/journal.js").InputRole;
199
+ content: string | readonly import("../../llm/content.js").ContentPartInput[];
200
+ }, value: {
201
+ cause: "execution" | "denied" | "unverified";
202
+ command: string;
203
+ cwd: string;
204
+ }, options?: {
205
+ sourceSeqs?: readonly import("../../records/journal.js").Seq[];
206
+ }): import("../../records/journal.js").StepContribution;
207
+ matchesSource(record: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord>): boolean;
208
+ rejection(reason: string, value: {
209
+ cause: "execution" | "denied" | "unverified";
210
+ command: string;
211
+ cwd: string;
212
+ }): {
213
+ decision: "reject";
214
+ reason: string;
215
+ source: import("../../records/journal.js").ExtensionRecord;
216
+ };
217
+ readContribution: (event: import("../../records/journal.js").JournalEvent) => {
218
+ cause: "execution" | "denied" | "unverified";
219
+ command: string;
220
+ cwd: string;
221
+ } | undefined;
222
+ readSource: (source: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord> | null) => {
223
+ cause: "execution" | "denied" | "unverified";
224
+ command: string;
225
+ cwd: string;
226
+ } | undefined;
227
+ told: import("../../plugin.js").PluginProjection<import("../../services/extensionEvents.js").ToldNotices<{
228
+ cause: "execution" | "denied" | "unverified";
229
+ command: string;
230
+ cwd: string;
231
+ }>>;
232
+ projection<State>(fold: {
233
+ key: string;
234
+ init(): State;
235
+ apply(state: State, value: {
236
+ cause: "execution" | "denied" | "unverified";
237
+ command: string;
238
+ cwd: string;
239
+ }, event: import("../../records/journal.js").JournalEvent<"ext">): State;
240
+ onFork?: "inherit" | "reset";
241
+ }): import("../../plugin.js").PluginProjection<State>;
242
+ };
243
+ /**
244
+ * A verification owed for one assignment, recorded on the thread serving it: the assignment's
245
+ * identity (its owner, id and participant generation, as an assignment origin names them), the
246
+ * input whose claim activates it, and the pinned verification. Its identity is the assignment's.
247
+ */
248
+ declare const RequirementSchema: z.ZodObject<{
249
+ owner: z.ZodString;
250
+ assignment: z.ZodString;
251
+ generation: z.ZodNumber;
252
+ input: z.ZodString;
253
+ command: z.ZodString;
254
+ cwd: z.ZodString;
255
+ }, z.core.$strict>;
256
+ export type RequirementInput = z.input<typeof RequirementSchema>;
257
+ export type Requirement = z.output<typeof RequirementSchema>;
258
+ export declare const requirement: {
259
+ record: (value: {
260
+ owner: string;
261
+ assignment: string;
262
+ generation: number;
263
+ input: string;
264
+ command: string;
265
+ cwd: string;
266
+ }) => import("../../records/journal.js").ExtensionRecord;
267
+ parse: (value: {
268
+ owner: string;
269
+ assignment: string;
270
+ generation: number;
271
+ input: string;
272
+ command: string;
273
+ cwd: string;
274
+ }) => {
275
+ owner: string;
276
+ assignment: string;
277
+ generation: number;
278
+ input: string;
279
+ command: string;
280
+ cwd: string;
281
+ };
282
+ entry: (value: {
283
+ owner: string;
284
+ assignment: string;
285
+ generation: number;
286
+ input: string;
287
+ command: string;
288
+ cwd: string;
289
+ }, options: import("../../plugin.js").AppendOptions) => {
290
+ type: "ext";
291
+ data: {
292
+ plugin: string;
293
+ instance_id: string;
294
+ kind: string;
295
+ version: number;
296
+ data: z.core.util.JSONType;
297
+ };
298
+ options: import("../../plugin.js").AppendOptions;
299
+ };
300
+ append(journal: import("../../plugin.js").PluginJournal, value: {
301
+ owner: string;
302
+ assignment: string;
303
+ generation: number;
304
+ input: string;
305
+ command: string;
306
+ cwd: string;
307
+ }, options: import("../../plugin.js").AppendOptions): Promise<import("../../records/journal.js").JournalEvent<"ext">>;
308
+ read(event: import("../../records/journal.js").JournalEvent): {
309
+ owner: string;
310
+ assignment: string;
311
+ generation: number;
312
+ input: string;
313
+ command: string;
314
+ cwd: string;
315
+ } | undefined;
316
+ contribution(message: {
317
+ role?: import("../../records/journal.js").InputRole;
318
+ content: string | readonly import("../../llm/content.js").ContentPartInput[];
319
+ }, value: {
320
+ owner: string;
321
+ assignment: string;
322
+ generation: number;
323
+ input: string;
324
+ command: string;
325
+ cwd: string;
326
+ }, options?: {
327
+ sourceSeqs?: readonly import("../../records/journal.js").Seq[];
328
+ }): import("../../records/journal.js").StepContribution;
329
+ matchesSource(record: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord>): boolean;
330
+ rejection(reason: string, value: {
331
+ owner: string;
332
+ assignment: string;
333
+ generation: number;
334
+ input: string;
335
+ command: string;
336
+ cwd: string;
337
+ }): {
338
+ decision: "reject";
339
+ reason: string;
340
+ source: import("../../records/journal.js").ExtensionRecord;
341
+ };
342
+ readContribution: (event: import("../../records/journal.js").JournalEvent) => {
343
+ owner: string;
344
+ assignment: string;
345
+ generation: number;
346
+ input: string;
347
+ command: string;
348
+ cwd: string;
349
+ } | undefined;
350
+ readSource: (source: import("../../util/json.js").DeepReadonly<import("../../records/journal.js").ExtensionRecord> | null) => {
351
+ owner: string;
352
+ assignment: string;
353
+ generation: number;
354
+ input: string;
355
+ command: string;
356
+ cwd: string;
357
+ } | undefined;
358
+ told: import("../../plugin.js").PluginProjection<import("../../services/extensionEvents.js").ToldNotices<{
359
+ owner: string;
360
+ assignment: string;
361
+ generation: number;
362
+ input: string;
363
+ command: string;
364
+ cwd: string;
365
+ }>>;
366
+ projection<State>(fold: {
367
+ key: string;
368
+ init(): State;
369
+ apply(state: State, value: {
370
+ owner: string;
371
+ assignment: string;
372
+ generation: number;
373
+ input: string;
374
+ command: string;
375
+ cwd: string;
376
+ }, event: import("../../records/journal.js").JournalEvent<"ext">): State;
377
+ onFork?: "inherit" | "reset";
378
+ }): import("../../plugin.js").PluginProjection<State>;
379
+ };
380
+ /** `value` validated as a requirement, its directory normalized as a placed run's is. */
381
+ export declare function requirementValue(value: RequirementInput): Requirement;
382
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { Service, type Context } from '@leuduan/cordis';
2
- import { type WriteRows } from '../../loop/index.js';
3
- import { type Verification } from './facts.js';
2
+ import { type WriteRows } from '../../state/index.js';
3
+ import { type Verification } from './record.js';
4
4
  declare module '@leuduan/cordis' {
5
5
  interface Context {
6
6
  /** Verification: the gates and assignment requirements of every thread (optional plugin). */
@@ -24,7 +24,7 @@ export type OwedVerification = {
24
24
  readonly generation: number;
25
25
  /** The input whose claim activates the assignment, which arms the requirement. */
26
26
  readonly inputId: string;
27
- /** The pinned verification: the command text `run_command` must be given. */
27
+ /** The pinned command runtime executes when completion needs proof. */
28
28
  readonly command: string;
29
29
  /** The absolute directory it must run in. */
30
30
  readonly cwd: string;
@@ -37,7 +37,8 @@ export type OwedVerification = {
37
37
  * both its arming and the last change, whether or not the thread changed anything. A gate and a
38
38
  * requirement on one verification are judged once, together; a later requirement supersedes an
39
39
  * earlier one, as does a delegation task opened on the thread after it armed, and replaying one
40
- * renews no reminder or denial.
40
+ * renews no repair allowance. Core executes its pure preparation plans through current policy;
41
+ * ordinary model commands never establish proof.
41
42
  *
42
43
  * Each verification covers the thread's delegated work too: a change any thread its calls started
43
44
  * made, at any depth, its passing runs of the same verification included, needs a pass after it, read from that thread's facts when it is loaded and
@@ -78,6 +79,8 @@ export declare class VerifyService extends Service {
78
79
  * and what its judgment reads of the thread's facts, and the last change of its delegated work.
79
80
  */
80
81
  private observed;
82
+ /** The same call-origin ownership scope as delegated mutation coverage, with affirmative cleanup evidence. */
83
+ private work;
81
84
  /**
82
85
  * The verifications in force on the thread, by {@link commandKey}, each with the moment its
83
86
  * requirement armed (`null` for a gate alone), and its delegated work's last change.
@@ -0,0 +1,58 @@
1
+ import { type PluginJournal } from '../../journal/index.js';
2
+ import { type Refusal } from '../../state/index.js';
3
+ import type { Seq } from '../../records/journal.js';
4
+ import type { ToolResult } from '../../records/toolResult.js';
5
+ import { type Verification, type Requirement, requirement } from './record.js';
6
+ export declare const commandKey: (command: string, cwd: string) => string;
7
+ type Attempt = {
8
+ seq: Seq;
9
+ candidate: Seq;
10
+ key: string;
11
+ verification: Verification;
12
+ authorizedAt: Seq | null;
13
+ resultAt: Seq | null;
14
+ result: ToolResult | null;
15
+ };
16
+ export type VerifyFacts = {
17
+ calls: Map<string, Seq | null>;
18
+ changedAt: Seq | null;
19
+ personAt: Seq | null;
20
+ repairs: Map<string, Seq[]>;
21
+ attempts: Map<Seq, Attempt>;
22
+ };
23
+ export declare const later: (a: Seq | null, b: Seq | null) => Seq | null;
24
+ /** All ordinary commands are mutations; only durable runtime results can establish proof. */
25
+ export declare const verifyFacts: import("../../journal/projection.js").PluginProjection<VerifyFacts>;
26
+ export declare const changes: import("../../services/catalogContributions.js").ContributionDefinition<{
27
+ changed_at: number | null;
28
+ }>;
29
+ export type DelegatedChange = {
30
+ readonly at: Seq | null;
31
+ } | {
32
+ readonly unreadable: string;
33
+ };
34
+ /** Call-origin descendants belong to the caller; assignment-origin work is verified independently. */
35
+ export declare function workScope(journal: PluginJournal, threadId: string): Set<string>;
36
+ export declare function delegatedChange(journal: PluginJournal, threadId: string): DelegatedChange;
37
+ /**
38
+ * The rows recording `value` on `threadId`, decided inside its write: one row for a requirement
39
+ * not recorded yet; none for one recorded already exactly so (a replay renews nothing); a refusal
40
+ * for one recorded under its identity otherwise. A thread being opened has none recorded.
41
+ */
42
+ export declare function requirementRows(journal: PluginJournal, threadId: string, opening: boolean, parsed: Requirement): ReturnType<typeof requirement.entry>[] | {
43
+ refuse: Refusal;
44
+ };
45
+ /**
46
+ * The requirement in force on a thread: the one armed last, with the moment it armed, the later of
47
+ * its input's claim and its own row (so one recorded after the claim arms at its row); `null` while
48
+ * none has armed. A participant serves one assignment at a time, so a later arming supersedes every
49
+ * earlier requirement: two of them, pinned to different commands, would otherwise each count the
50
+ * other's runs as changes and never both pass. A requirement lives for the assignment that armed it:
51
+ * a delegation task opened on the thread after it armed, a successor assignment owing no
52
+ * verification included, retires it. Row seqs are one journal's, so the two compare directly.
53
+ */
54
+ export declare function inForce(journal: PluginJournal, threadId: string): {
55
+ verification: Verification;
56
+ at: Seq;
57
+ } | null;
58
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { Plugin } from '@leuduan/cordis';
2
+ import { z } from 'zod';
3
+ export type { WebSearchConfig } from './web.js';
4
+ /**
5
+ * What the web tools are configured with, all of it the host's choice: what `web_fetch` may reach
6
+ * (`privateNetwork`: `refuse` keeps it on the public internet) and the Codex login `web_search`
7
+ * searches through (`search`; with `null` there is no `web_search`).
8
+ */
9
+ declare const WebToolsConfigSchema: z.ZodObject<{
10
+ privateNetwork: z.ZodEnum<{
11
+ allow: "allow";
12
+ refuse: "refuse";
13
+ }>;
14
+ search: z.ZodNullable<z.ZodObject<{
15
+ authPath: z.ZodString;
16
+ refreshTimeoutMs: z.ZodNumber;
17
+ model: z.ZodString;
18
+ maxOutputTokens: z.ZodNumber;
19
+ responseLength: z.ZodEnum<{
20
+ medium: "medium";
21
+ short: "short";
22
+ long: "long";
23
+ }>;
24
+ }, z.core.$strict>>;
25
+ }, z.core.$strict>;
26
+ export type WebToolsConfig = z.input<typeof WebToolsConfigSchema>;
27
+ /** The tools that fetch and search the web; `web_search` only where the host configures `search`. */
28
+ export declare const WEB_TOOLS: readonly ["web_fetch", "web_search"];
29
+ /**
30
+ * Registers `web_fetch`, and `web_search` when `search` names a Codex login, for the life of the
31
+ * plugin. Neither touches the workspace: they reach the network under the policy configured here.
32
+ * The host names the private-network policy and the search login; there is no default for either.
33
+ */
34
+ export declare const webTools: Plugin.Object<WebToolsConfig>;
@@ -0,0 +1 @@
1
+ import{a,b}from"../../chunks/SS3B5W34.js";import"../../chunks/Q75FUN7D.js";import"../../chunks/34KW6VNQ.js";import"../../chunks/JFX2MXBA.js";import"../../chunks/CUK7CGC7.js";import"../../chunks/BPRCULZH.js";import"../../chunks/FJLU4UH3.js";import"../../chunks/DDANMY45.js";import"../../chunks/BBCW2FZK.js";import"../../chunks/MMNNZCBO.js";import"../../chunks/G44LG6VL.js";import"../../chunks/D4PQP5MA.js";export{a as WEB_TOOLS,b as webTools};
@@ -1,4 +1,5 @@
1
1
  import type { Context } from '@leuduan/cordis';
2
+ import { type ResultDecision } from './state.js';
2
3
  import { type Governance } from './policy.js';
3
4
  /**
4
5
  * Presents each instance to the threads working it at the model steps they take (§6 of the design),
@@ -12,5 +13,8 @@ import { type Governance } from './policy.js';
12
13
  * which the activation's claim alone gives.
13
14
  */
14
15
  export declare function presentAssignments(ctx: Context, governance: Governance): void;
15
- /** A host decision's verdict as the model is told it: what was decided, never who decided it. */
16
- export declare function verdictOf(verdict: 'approve' | 'revise'): string;
16
+ /**
17
+ * A host decision on `step` as the model is told it, by a transition's notice or the attempt it
18
+ * opened: its verdict and option, and its feedback, defused, in a block of its own.
19
+ */
20
+ export declare function toldDecision(step: string, decided: ResultDecision): string;
@@ -1,6 +1,6 @@
1
1
  import type { Context } from '@leuduan/cordis';
2
2
  import type { AppendEntry } from '../../journal/index.js';
3
- import { type InstanceState } from './fold.js';
3
+ import { type InstanceState } from './state.js';
4
4
  import type { InstanceRowInput } from './record.js';
5
5
  import type { Barrier } from './routing.js';
6
6
  import type { ReadonlyState } from '../../util/foldState.js';
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { type ThinkingEffort } from '../../llm/index.js';
2
+ import { type ThinkingEffort } from '../../llm/primitives.js';
3
3
  import { type ReadonlyJsonValue } from '../../util/json.js';
4
- import type { ResultDecision } from './fold.js';
4
+ import type { ResultDecision } from './state.js';
5
5
  /** The edge target that completes an instance. */
6
6
  export declare const COMPLETE = "$complete";
7
7
  /** A value an edge predicate compares a field with. */
@@ -1,7 +1,7 @@
1
1
  import type { ReadonlyJsonValue } from '../../util/json.js';
2
2
  import type { CanonicalDefinition } from './definition.js';
3
- import type { InstanceState, ResultDecision } from './fold.js';
4
- import type { Acquired } from './providers.js';
3
+ import type { InstanceState, ResultDecision } from './state.js';
4
+ import type { Acquired } from './hostBindings.js';
5
5
  import type { ReadonlyState } from '../../util/foldState.js';
6
6
  import { type Entered, type InstanceRowInput, type TransitionCause } from './record.js';
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import type { WriteRows } from '../../loop/index.js';
3
- import type { InitialInstallation, ThreadEnvironment } from '../../models/index.js';
2
+ import type { WriteRows } from '../../state/index.js';
3
+ import type { InitialInstallation, ThreadEnvironment } from '../../records/journal.js';
4
4
  import type { DeepReadonly, JsonValue } from '../../util/json.js';
5
5
  /**
6
6
  * A conversation's configuration as a provider pins from it: the root's, as the host proposes to
@@ -13,16 +13,16 @@ import { type WorkflowsConfig } from './service.js';
13
13
  * write. Isolated participants' tasks are started by the plugin itself, as delegations' owner of
14
14
  * them, independently of the root's turns; a definition with isolated participants needs
15
15
  * delegations mounted first. All configuration is required. Root-only, mounted once by the
16
- * application. See `docs/workflows.md`.
16
+ * application. See `docs/records/workflows.md`.
17
17
  */
18
18
  export declare const workflows: Plugin.Object<WorkflowsConfig>;
19
19
  export { defineWorkflow, WorkflowDefinitionError } from './definition.js';
20
20
  export type { Assignment, Binding, CanonicalDefinition, Condition, Definition, Edge, JsonScalar, JsonSchema, Participant, ParticipantModel, Step, StepOption, WorkflowDefinition, } from './definition.js';
21
- export { WorkflowRefusedError } from './service.js';
21
+ export { resolveParticipantModels, WorkflowRefusedError } from './participantModels.js';
22
22
  export { SUBMIT_TOOL, WORKFLOWS_OWNER } from './record.js';
23
23
  export type { CancelRequest, CatalogEntry, DecideRequest, OpeningRequest, Prerequisite, StopCancel, RoleBinding, WorkflowsConfig, WorkflowsService, } from './service.js';
24
- export type { Acquired, CheckProvider, CheckRequest, Configured, EvidenceProvider, EvidenceRequest, PinOutcome, ProviderBinding, ProviderNotice, } from './providers.js';
25
- export type { DecisionReason, PendingDecision, ResultDecision, Subject } from './fold.js';
24
+ export type { Acquired, CheckProvider, CheckRequest, Configured, EvidenceProvider, EvidenceRequest, PinOutcome, ProviderBinding, ProviderNotice, } from './hostBindings.js';
25
+ export type { DecisionReason, PendingDecision, ResultDecision, Subject } from './state.js';
26
26
  export type { Citation } from './record.js';
27
27
  export type { InstanceView } from './view.js';
28
28
  export type { Restriction } from './policy.js';