@leuduan/lagent 0.0.0-stage → 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 (328) hide show
  1. package/LICENSE +16 -0
  2. package/README.md +157 -2
  3. package/dist/chunks/2GCIWSOA.js +5 -0
  4. package/dist/chunks/2P47AHNK.js +7 -0
  5. package/dist/chunks/34KW6VNQ.js +1 -0
  6. package/dist/chunks/3UMZMPWW.js +1 -0
  7. package/dist/chunks/5IRF47YB.js +1 -0
  8. package/dist/chunks/6DRCKZ2C.js +1 -0
  9. package/dist/chunks/6FRNHMCV.js +1 -0
  10. package/dist/chunks/7LI64H5X.js +17 -0
  11. package/dist/chunks/7VAPNE3L.js +1 -0
  12. package/dist/chunks/ASSQZH3F.js +1 -0
  13. package/dist/chunks/B4FXK5ER.js +77 -0
  14. package/dist/chunks/BBCW2FZK.js +1 -0
  15. package/dist/chunks/BPRCULZH.js +1 -0
  16. package/dist/chunks/CANPZYTH.js +24 -0
  17. package/dist/chunks/CQEVREBT.js +1 -0
  18. package/dist/chunks/CUK7CGC7.js +1 -0
  19. package/dist/chunks/D4PQP5MA.js +3 -0
  20. package/dist/chunks/DDANMY45.js +3 -0
  21. package/dist/chunks/DDZ7YF26.js +1 -0
  22. package/dist/chunks/EMRB4KCN.js +6 -0
  23. package/dist/chunks/EPYQ5M3B.js +3 -0
  24. package/dist/chunks/FJLU4UH3.js +1 -0
  25. package/dist/chunks/G44LG6VL.js +1 -0
  26. package/dist/chunks/GGSVIIWJ.js +2 -0
  27. package/dist/chunks/HK6ZSONF.js +1 -0
  28. package/dist/chunks/IAAEP6VL.js +30 -0
  29. package/dist/chunks/JCTBX33H.js +36 -0
  30. package/dist/chunks/JFX2MXBA.js +4 -0
  31. package/dist/chunks/JFZZXVWD.js +15 -0
  32. package/dist/chunks/KUZCL2SH.js +1 -0
  33. package/dist/chunks/MHC6VPB4.js +7 -0
  34. package/dist/chunks/MMNNZCBO.js +5 -0
  35. package/dist/chunks/MNJ4SRF7.js +1 -0
  36. package/dist/chunks/N6IXG2VL.js +1 -0
  37. package/dist/chunks/OCBPT7KE.js +1 -0
  38. package/dist/chunks/OL5A6ITQ.js +1 -0
  39. package/dist/chunks/PUSUPTAT.js +1 -0
  40. package/dist/chunks/Q75FUN7D.js +2 -0
  41. package/dist/chunks/Q7S5LFGN.js +1 -0
  42. package/dist/chunks/RCIHV3KG.js +1 -0
  43. package/dist/chunks/S34ZA2R6.js +1 -0
  44. package/dist/chunks/SS3B5W34.js +12 -0
  45. package/dist/chunks/VYMT4TXD.js +1 -0
  46. package/dist/chunks/W57RW55W.js +1 -0
  47. package/dist/compositions/base.d.ts +11 -0
  48. package/dist/compositions/codex.d.ts +66 -0
  49. package/dist/compositions/codexPrompts.d.ts +56 -0
  50. package/dist/context.d.ts +109 -0
  51. package/dist/index.d.ts +55 -0
  52. package/dist/index.js +1 -0
  53. package/dist/journal/catalog.d.ts +112 -0
  54. package/dist/journal/forkChain.d.ts +16 -0
  55. package/dist/journal/index.d.ts +15 -0
  56. package/dist/journal/journal.d.ts +475 -0
  57. package/dist/journal/projection.d.ts +87 -0
  58. package/dist/journal/store.d.ts +181 -0
  59. package/dist/llm/client.d.ts +135 -0
  60. package/dist/llm/content.d.ts +52 -0
  61. package/dist/llm/failure.d.ts +82 -0
  62. package/dist/llm/index.d.ts +22 -0
  63. package/dist/llm/index.js +1 -0
  64. package/dist/llm/primitives.d.ts +286 -0
  65. package/dist/llm/prompt.d.ts +21 -0
  66. package/dist/llm/provider.d.ts +74 -0
  67. package/dist/llm/readLedger.d.ts +24 -0
  68. package/dist/llm/request.d.ts +58 -0
  69. package/dist/loop/agent.d.ts +18 -0
  70. package/dist/loop/authorization.d.ts +41 -0
  71. package/dist/loop/auxiliary.d.ts +58 -0
  72. package/dist/loop/chunks.d.ts +27 -0
  73. package/dist/loop/completion.d.ts +17 -0
  74. package/dist/loop/errors.d.ts +139 -0
  75. package/dist/loop/hooks.d.ts +274 -0
  76. package/dist/loop/index.d.ts +16 -0
  77. package/dist/loop/runner.d.ts +134 -0
  78. package/dist/loop/runtime.d.ts +76 -0
  79. package/dist/loop/strategy.d.ts +80 -0
  80. package/dist/loop/surfacePrepare.d.ts +30 -0
  81. package/dist/loop/tool.d.ts +106 -0
  82. package/dist/loop/toolCalls.d.ts +35 -0
  83. package/dist/plugin.d.ts +50 -0
  84. package/dist/plugin.js +1 -0
  85. package/dist/plugins/agentsMd.d.ts +80 -0
  86. package/dist/plugins/agentsMd.js +1 -0
  87. package/dist/plugins/ask/index.d.ts +26 -0
  88. package/dist/plugins/ask/index.js +1 -0
  89. package/dist/plugins/ask/service.d.ts +125 -0
  90. package/dist/plugins/ask/tools.d.ts +9 -0
  91. package/dist/plugins/commands/index.d.ts +43 -0
  92. package/dist/plugins/commands/index.js +1 -0
  93. package/dist/plugins/commands/output.d.ts +115 -0
  94. package/dist/plugins/commands/record.d.ts +558 -0
  95. package/dist/plugins/commands/service.d.ts +321 -0
  96. package/dist/plugins/commands/shell.d.ts +25 -0
  97. package/dist/plugins/commands/tools.d.ts +10 -0
  98. package/dist/plugins/compaction/checkpoint.d.ts +94 -0
  99. package/dist/plugins/compaction/config.d.ts +133 -0
  100. package/dist/plugins/compaction/estimate.d.ts +37 -0
  101. package/dist/plugins/compaction/index.d.ts +87 -0
  102. package/dist/plugins/compaction/index.js +7 -0
  103. package/dist/plugins/compaction/planner.d.ts +207 -0
  104. package/dist/plugins/compaction/prune.d.ts +9 -0
  105. package/dist/plugins/compaction/record.d.ts +227 -0
  106. package/dist/plugins/compaction/segments.d.ts +23 -0
  107. package/dist/plugins/compaction/state.d.ts +68 -0
  108. package/dist/plugins/compaction/summarize.d.ts +13 -0
  109. package/dist/plugins/dateAndBranch.d.ts +47 -0
  110. package/dist/plugins/dateAndBranch.js +1 -0
  111. package/dist/plugins/delegations/answers.d.ts +39 -0
  112. package/dist/plugins/delegations/assignmentKey.d.ts +22 -0
  113. package/dist/plugins/delegations/cleanup.d.ts +161 -0
  114. package/dist/plugins/delegations/constraint.d.ts +76 -0
  115. package/dist/plugins/delegations/index.d.ts +39 -0
  116. package/dist/plugins/delegations/index.js +1 -0
  117. package/dist/plugins/delegations/notices.d.ts +261 -0
  118. package/dist/plugins/delegations/obligations.d.ts +210 -0
  119. package/dist/plugins/delegations/record.d.ts +633 -0
  120. package/dist/plugins/delegations/request.d.ts +384 -0
  121. package/dist/plugins/delegations/role.d.ts +30 -0
  122. package/dist/plugins/delegations/service.d.ts +563 -0
  123. package/dist/plugins/delegations/standing.d.ts +19 -0
  124. package/dist/plugins/delegations/stopCheck.d.ts +21 -0
  125. package/dist/plugins/delegations/tools.d.ts +71 -0
  126. package/dist/plugins/delegations/waitContracts.d.ts +118 -0
  127. package/dist/plugins/delegations/waitResolver.d.ts +116 -0
  128. package/dist/plugins/diagnostics/digest.d.ts +14 -0
  129. package/dist/plugins/diagnostics/index.d.ts +68 -0
  130. package/dist/plugins/diagnostics/index.js +1 -0
  131. package/dist/plugins/fileTools/config.d.ts +10 -0
  132. package/dist/plugins/fileTools/editFiles.d.ts +117 -0
  133. package/dist/plugins/fileTools/fsRead.d.ts +17 -0
  134. package/dist/plugins/fileTools/gitDiscovery.d.ts +9 -0
  135. package/dist/plugins/fileTools/index.d.ts +18 -0
  136. package/dist/plugins/fileTools/index.js +1 -0
  137. package/dist/plugins/fileTools/ripgrep.d.ts +20 -0
  138. package/dist/plugins/fileTools/textEdit.d.ts +67 -0
  139. package/dist/plugins/fileTools/tools.d.ts +6 -0
  140. package/dist/plugins/historyRecall/history.d.ts +9 -0
  141. package/dist/plugins/historyRecall/index.d.ts +31 -0
  142. package/dist/plugins/historyRecall/index.js +1 -0
  143. package/dist/plugins/historyRecall/render.d.ts +34 -0
  144. package/dist/plugins/historyRecall/tools.d.ts +4 -0
  145. package/dist/plugins/mcp/catalog.d.ts +36 -0
  146. package/dist/plugins/mcp/config.d.ts +63 -0
  147. package/dist/plugins/mcp/connection.d.ts +53 -0
  148. package/dist/plugins/mcp/errors.d.ts +32 -0
  149. package/dist/plugins/mcp/index.d.ts +33 -0
  150. package/dist/plugins/mcp/index.js +5 -0
  151. package/dist/plugins/mcp/mount.d.ts +98 -0
  152. package/dist/plugins/mcp/names.d.ts +25 -0
  153. package/dist/plugins/mcp/render.d.ts +29 -0
  154. package/dist/plugins/mcp/slots.d.ts +15 -0
  155. package/dist/plugins/mcp/stdio.d.ts +49 -0
  156. package/dist/plugins/mcp/tools.d.ts +41 -0
  157. package/dist/plugins/mcp/version.d.ts +2 -0
  158. package/dist/plugins/routeNotice.d.ts +22 -0
  159. package/dist/plugins/routeNotice.js +1 -0
  160. package/dist/plugins/sandbox/absent.d.ts +33 -0
  161. package/dist/plugins/sandbox/client.d.ts +39 -0
  162. package/dist/plugins/sandbox/files.d.ts +28 -0
  163. package/dist/plugins/sandbox/index.d.ts +52 -0
  164. package/dist/plugins/sandbox/index.js +4 -0
  165. package/dist/plugins/sandbox/mode.d.ts +57 -0
  166. package/dist/plugins/sandbox/policy.d.ts +163 -0
  167. package/dist/plugins/sandbox/protocol.d.ts +107 -0
  168. package/dist/plugins/sandbox/service.d.ts +153 -0
  169. package/dist/plugins/sandbox/worker.d.ts +12 -0
  170. package/dist/plugins/sandbox/worker.js +1 -0
  171. package/dist/plugins/schedules/index.d.ts +21 -0
  172. package/dist/plugins/schedules/index.js +5 -0
  173. package/dist/plugins/schedules/record.d.ts +396 -0
  174. package/dist/plugins/schedules/service.d.ts +120 -0
  175. package/dist/plugins/schedules/time.d.ts +26 -0
  176. package/dist/plugins/schedules/tools.d.ts +6 -0
  177. package/dist/plugins/skills/discovery.d.ts +83 -0
  178. package/dist/plugins/skills/index.d.ts +31 -0
  179. package/dist/plugins/skills/index.js +1 -0
  180. package/dist/plugins/skills/tools.d.ts +11 -0
  181. package/dist/plugins/subAgents/availableRoutes.d.ts +53 -0
  182. package/dist/plugins/subAgents/index.d.ts +67 -0
  183. package/dist/plugins/subAgents/index.js +1 -0
  184. package/dist/plugins/subAgents/tools.d.ts +67 -0
  185. package/dist/plugins/threadDirs.d.ts +36 -0
  186. package/dist/plugins/threadDirs.js +1 -0
  187. package/dist/plugins/toolPolicy/index.d.ts +61 -0
  188. package/dist/plugins/toolPolicy/index.js +1 -0
  189. package/dist/plugins/truncateToolOutput.d.ts +30 -0
  190. package/dist/plugins/truncateToolOutput.js +6 -0
  191. package/dist/plugins/usage/index.d.ts +26 -0
  192. package/dist/plugins/usage/index.js +1 -0
  193. package/dist/plugins/usage/tracker.d.ts +34 -0
  194. package/dist/plugins/verify/index.d.ts +27 -0
  195. package/dist/plugins/verify/index.js +6 -0
  196. package/dist/plugins/verify/judgement.d.ts +16 -0
  197. package/dist/plugins/verify/record.d.ts +382 -0
  198. package/dist/plugins/verify/service.d.ts +93 -0
  199. package/dist/plugins/verify/state.d.ts +58 -0
  200. package/dist/plugins/webTools/html.d.ts +23 -0
  201. package/dist/plugins/webTools/index.d.ts +34 -0
  202. package/dist/plugins/webTools/index.js +1 -0
  203. package/dist/plugins/webTools/network.d.ts +23 -0
  204. package/dist/plugins/webTools/web.d.ts +32 -0
  205. package/dist/plugins/workflows/assignment.d.ts +20 -0
  206. package/dist/plugins/workflows/cleanup.d.ts +38 -0
  207. package/dist/plugins/workflows/definition.d.ts +184 -0
  208. package/dist/plugins/workflows/entryPlan.d.ts +95 -0
  209. package/dist/plugins/workflows/hostBindings.d.ts +146 -0
  210. package/dist/plugins/workflows/index.d.ts +28 -0
  211. package/dist/plugins/workflows/index.js +11 -0
  212. package/dist/plugins/workflows/observations.d.ts +81 -0
  213. package/dist/plugins/workflows/participantModels.d.ts +28 -0
  214. package/dist/plugins/workflows/participants.d.ts +143 -0
  215. package/dist/plugins/workflows/policy.d.ts +112 -0
  216. package/dist/plugins/workflows/record.d.ts +2849 -0
  217. package/dist/plugins/workflows/routing.d.ts +116 -0
  218. package/dist/plugins/workflows/schema.d.ts +26 -0
  219. package/dist/plugins/workflows/service.d.ts +477 -0
  220. package/dist/plugins/workflows/state.d.ts +373 -0
  221. package/dist/plugins/workflows/stopCheck.d.ts +13 -0
  222. package/dist/plugins/workflows/tools.d.ts +13 -0
  223. package/dist/plugins/workflows/view.d.ts +103 -0
  224. package/dist/plugins/workflows/workStatus.d.ts +21 -0
  225. package/dist/plugins/workspaceNotice.d.ts +36 -0
  226. package/dist/plugins/workspaceNotice.js +1 -0
  227. package/dist/providers/anthropic.d.ts +178 -0
  228. package/dist/providers/anthropicMessages.d.ts +66 -0
  229. package/dist/providers/codex.d.ts +71 -0
  230. package/dist/providers/codexAuth.d.ts +116 -0
  231. package/dist/providers/deepseek.d.ts +59 -0
  232. package/dist/providers/failure.d.ts +23 -0
  233. package/dist/providers/gateway.d.ts +24 -0
  234. package/dist/providers/index.d.ts +18 -0
  235. package/dist/providers/index.js +6 -0
  236. package/dist/providers/openaiChat.d.ts +73 -0
  237. package/dist/providers/openaiResponses.d.ts +109 -0
  238. package/dist/providers/opencodeCopilot.d.ts +23 -0
  239. package/dist/providers/opencodeGo.d.ts +109 -0
  240. package/dist/providers/shared.d.ts +112 -0
  241. package/dist/providers/stream.d.ts +156 -0
  242. package/dist/records/index.d.ts +13 -0
  243. package/dist/records/index.js +1 -0
  244. package/dist/records/journal.d.ts +2968 -0
  245. package/dist/records/toolResult.d.ts +65 -0
  246. package/dist/services/agents.d.ts +62 -0
  247. package/dist/services/catalogContributions.d.ts +73 -0
  248. package/dist/services/confinement/files.d.ts +118 -0
  249. package/dist/services/confinement/service.d.ts +219 -0
  250. package/dist/services/core.d.ts +28 -0
  251. package/dist/services/extensionEvents.d.ts +181 -0
  252. package/dist/services/journal.d.ts +26 -0
  253. package/dist/services/llm.d.ts +82 -0
  254. package/dist/services/modes.d.ts +65 -0
  255. package/dist/services/plugins.d.ts +34 -0
  256. package/dist/services/presets/definition.d.ts +154 -0
  257. package/dist/services/presets/installations.d.ts +139 -0
  258. package/dist/services/prompts.d.ts +85 -0
  259. package/dist/services/threads/activation.d.ts +100 -0
  260. package/dist/services/threads/admission.d.ts +174 -0
  261. package/dist/services/threads/birth.d.ts +219 -0
  262. package/dist/services/threads/index.d.ts +14 -0
  263. package/dist/services/threads/runEvents.d.ts +79 -0
  264. package/dist/services/threads/runOwner.d.ts +368 -0
  265. package/dist/services/threads/service.d.ts +450 -0
  266. package/dist/services/threads/thread.d.ts +268 -0
  267. package/dist/services/threads/view.d.ts +93 -0
  268. package/dist/services/tools.d.ts +118 -0
  269. package/dist/state/birth.d.ts +62 -0
  270. package/dist/state/chain.d.ts +46 -0
  271. package/dist/state/confirmations.d.ts +64 -0
  272. package/dist/state/continuation.d.ts +167 -0
  273. package/dist/state/decide.d.ts +72 -0
  274. package/dist/state/dispatches.d.ts +54 -0
  275. package/dist/state/errors.d.ts +26 -0
  276. package/dist/state/forks.d.ts +61 -0
  277. package/dist/state/holds.d.ts +104 -0
  278. package/dist/state/inbox.d.ts +188 -0
  279. package/dist/state/index.d.ts +31 -0
  280. package/dist/state/inputs.d.ts +58 -0
  281. package/dist/state/installations.d.ts +28 -0
  282. package/dist/state/limits.d.ts +14 -0
  283. package/dist/state/prompt.d.ts +13 -0
  284. package/dist/state/recovery.d.ts +7 -0
  285. package/dist/state/replace.d.ts +33 -0
  286. package/dist/state/requests.d.ts +129 -0
  287. package/dist/state/route.d.ts +61 -0
  288. package/dist/state/summary.d.ts +16 -0
  289. package/dist/state/surface.d.ts +153 -0
  290. package/dist/state/surfaceRead.d.ts +20 -0
  291. package/dist/state/thread.d.ts +73 -0
  292. package/dist/state/turns.d.ts +87 -0
  293. package/dist/state/waits.d.ts +38 -0
  294. package/dist/state/wake.d.ts +32 -0
  295. package/dist/stores/durableObject.d.ts +23 -0
  296. package/dist/stores/durableObject.js +1 -0
  297. package/dist/stores/durableObjectConnection.d.ts +27 -0
  298. package/dist/stores/memory.d.ts +29 -0
  299. package/dist/stores/sql.d.ts +59 -0
  300. package/dist/stores/sqlite.d.ts +31 -0
  301. package/dist/stores/sqlite.js +1 -0
  302. package/dist/sys/environment.d.ts +42 -0
  303. package/dist/sys/git.d.ts +47 -0
  304. package/dist/sys/paths.d.ts +9 -0
  305. package/dist/sys/spawn.d.ts +186 -0
  306. package/dist/testing/clock.d.ts +17 -0
  307. package/dist/testing/fakeLlm.d.ts +76 -0
  308. package/dist/testing/fedLlm.d.ts +34 -0
  309. package/dist/testing/helpers.d.ts +362 -0
  310. package/dist/testing/index.d.ts +13 -0
  311. package/dist/testing/index.js +1 -0
  312. package/dist/testing/processes.d.ts +13 -0
  313. package/dist/testing/settlement.d.ts +6 -0
  314. package/dist/testing/tmpDirs.d.ts +17 -0
  315. package/dist/util/async.d.ts +8 -0
  316. package/dist/util/diff.d.ts +25 -0
  317. package/dist/util/dispatch.d.ts +8 -0
  318. package/dist/util/errors.d.ts +28 -0
  319. package/dist/util/foldState.d.ts +17 -0
  320. package/dist/util/freeze.d.ts +2 -0
  321. package/dist/util/ids.d.ts +2 -0
  322. package/dist/util/json.d.ts +37 -0
  323. package/dist/util/jsonSchema.d.ts +7 -0
  324. package/dist/util/log.d.ts +6 -0
  325. package/dist/util/retries.d.ts +25 -0
  326. package/dist/util/text.d.ts +21 -0
  327. package/dist/util/timers.d.ts +43 -0
  328. package/package.json +183 -3
@@ -0,0 +1,68 @@
1
+ import type { Context } from '@leuduan/cordis';
2
+ import type { ExtensionRecord, Seq } from '../../records/journal.js';
3
+ /** A provider and model: what a usage measurement and a calibration factor belong to, effort aside. */
4
+ export type ModelKey = {
5
+ readonly provider: string;
6
+ readonly model: string;
7
+ };
8
+ /** Whether two routes run on the same provider and model, whatever their efforts. */
9
+ export declare const sameModel: (left: ModelKey, right: ModelKey) => boolean;
10
+ /**
11
+ * The last request the provider measured, as its reply's usage says: the input it counted, cached
12
+ * tokens included, plus the reply, which is on the surface now, less reasoning a route does not
13
+ * send back. It counted the head and every surface row at or before the reply's row; those rows keep
14
+ * its scale until a newer measurement replaces it, whatever is replaced around them. Usable only on
15
+ * the same provider and model.
16
+ */
17
+ export type UsageAnchor = ModelKey & {
18
+ /** The reply's `assistant/message` row: every surface entry at or before it is measured. */
19
+ readonly seq: Seq;
20
+ readonly tokens: number;
21
+ };
22
+ /** A request the provider refused as longer than its window, and what was measured when it was sent. */
23
+ export type OverflowRecord = ModelKey & {
24
+ /** The `assistant/attempt` row whose `failure_kind` is `overflow`. */
25
+ readonly seq: Seq;
26
+ /** The measurement in force when it was sent. */
27
+ readonly measured: UsageAnchor | null;
28
+ };
29
+ /** What the compaction strategy measures from, folded over a thread's lineage. */
30
+ export type CompactionLog = {
31
+ /** The route of each request whose reply has not come back yet, by its `llm_call_id`. */
32
+ pending: Map<string, ModelKey>;
33
+ /**
34
+ * The latest reply that was not cut off and carried usage of some positive count, on a known
35
+ * route; replaced only by a newer one, never by a replacement or a cut-off reply, since the rows it
36
+ * counted stay counted.
37
+ */
38
+ measured: UsageAnchor | null;
39
+ /**
40
+ * Overflows since the latest measurement on their own provider and model, oldest first: what the
41
+ * calibration factor for that model is folded from. A measurement on the model clears its overflows.
42
+ */
43
+ overflows: OverflowRecord[];
44
+ /**
45
+ * Whether this strategy already recorded a replacement on the `overflow` trigger in the current
46
+ * overflow sequence, which a turn's start and a reply that was not cut off begin.
47
+ */
48
+ overflowReplaced: boolean;
49
+ /** The latest `surface/replaced` row, by anyone; `null` when none. */
50
+ latestReplacement: Seq | null;
51
+ /**
52
+ * Unusable summaries since this strategy's latest checkpoint and the thread's latest change of
53
+ * installations: what its breaker counts.
54
+ */
55
+ unusableInARow: number;
56
+ };
57
+ /**
58
+ * The fold the strategy measures pressure from, keyed by `source` so two strategies' logs never
59
+ * share a key. Thread-scoped and inherited by forks: a fork's surface is its source's, and so are
60
+ * the measurements that describe it.
61
+ */
62
+ export declare function compactionLog(source: Pick<ExtensionRecord, 'plugin' | 'instance_id' | 'kind'>, unusable?: Pick<ExtensionRecord, 'kind'> | null): import("../../journal/projection.js").PluginProjection<CompactionLog>;
63
+ /**
64
+ * A reporter that says each condition once for as long as the strategy lives, one activation. `key`
65
+ * names the condition (its cause, the route, the latest replacement), so a step that finds it again
66
+ * stays quiet.
67
+ */
68
+ export declare function onceReporter(ctx: Context): (key: string, message: string) => void;
@@ -0,0 +1,13 @@
1
+ import type { Plugin } from '@leuduan/cordis';
2
+ import { type StrategyOptions, type SummarizeStrategyConfig } from './config.js';
3
+ /**
4
+ * The `summarize` strategy on one thread, provided from the thread's own scope. What it measures
5
+ * from is the journal, its breaker included (unusable summaries are recorded, see
6
+ * `unusableSummaryRecord`); its rate-limited reports last one activation.
7
+ *
8
+ * A thread runs one strategy, and every way of mounting this one, a root mount whose selector
9
+ * covers the thread, an installation on it, or both, ends here: providing it is refused when the
10
+ * thread already has one, the later of the two, which fails the activation or the installation
11
+ * rather than letting two strategies replace the same surface.
12
+ */
13
+ export declare const summarizeStrategy: Plugin.Object<StrategyOptions<SummarizeStrategyConfig>>;
@@ -0,0 +1,47 @@
1
+ import type { Plugin } from '@leuduan/cordis';
2
+ import { z } from 'zod';
3
+ declare const DateAndBranchSchema: z.ZodObject<{
4
+ date: z.ZodString;
5
+ time_zone: z.ZodString;
6
+ head: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ kind: z.ZodLiteral<"branch">;
8
+ name: z.ZodString;
9
+ }, z.core.$strict>, z.ZodObject<{
10
+ kind: z.ZodLiteral<"detached">;
11
+ commit: z.ZodString;
12
+ }, z.core.$strict>], "kind">>;
13
+ }, z.core.$strict>;
14
+ /** What a thread is told: the day and, in a repository, its branch. */
15
+ export type DateAndBranch = z.output<typeof DateAndBranchSchema>;
16
+ declare const DateAndBranchConfigSchema: z.ZodObject<{
17
+ agents: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"global">, z.ZodLiteral<"all">]>;
18
+ }, z.core.$strict>;
19
+ export type DateAndBranchConfig = z.input<typeof DateAndBranchConfigSchema>;
20
+ /**
21
+ * Tells an agent the date and, when its `cwd` is in a git repository, the branch, as one notice
22
+ * that says both every time. `codexPreset` mounts it for the agents it equips; it is not handed
23
+ * down, since a sub-agent's task depends on neither.
24
+ *
25
+ * The facts are compared only on a turn's first model step, and told when they differ from the
26
+ * latest notice the model can still see: on a thread's first turn, on the first step of a turn after
27
+ * the day or the branch changed, and after a replacement took the notice off the surface. Never
28
+ * mid-turn, where a branch change is most likely the agent's own `git checkout`, which it knows.
29
+ *
30
+ * The date is the day in the process's time zone, which the notice names. The branch is read
31
+ * synchronously from the filesystem, since step listeners must not await: the repository is the
32
+ * nearest one at or above the `cwd` (`findRepository`), through a `.git` file for a linked worktree
33
+ * or a submodule, and its `HEAD` names the branch, or a commit for a detached head.
34
+ *
35
+ * Not a prompt section: the recorded prompt must not change while the thread lives, and both facts
36
+ * do. Mounted on the root it tells the agents `agents` selects on every thread; mounted through
37
+ * `thread.ctx`, that thread when it selects its agent.
38
+ */
39
+ export declare const dateAndBranch: Plugin.Object<DateAndBranchConfig>;
40
+ /** The day `now` falls on in the process's time zone, and the branch of the repository holding `cwd`. */
41
+ export declare function currentDateAndBranch(cwd: string, now: Date): DateAndBranch;
42
+ /**
43
+ * What a thread is told: the day and, in a repository, the branch, whole every time, with what
44
+ * differs from `told`, the notice the model can still see, noted as previously.
45
+ */
46
+ export declare function renderDateAndBranch(facts: DateAndBranch, told: DateAndBranch | null): string;
47
+ export {};
@@ -0,0 +1 @@
1
+ import{b as a,c as b,d as c}from"../chunks/GGSVIIWJ.js";import"../chunks/6FRNHMCV.js";import"../chunks/CUK7CGC7.js";import"../chunks/BPRCULZH.js";import"../chunks/DDANMY45.js";import"../chunks/BBCW2FZK.js";import"../chunks/MMNNZCBO.js";import"../chunks/G44LG6VL.js";import"../chunks/D4PQP5MA.js";export{b as currentDateAndBranch,a as dateAndBranch,c as renderDateAndBranch};
@@ -0,0 +1,39 @@
1
+ import type { ToolResult } from '../../records/toolResult.js';
2
+ import type { TaskSettlement } from './record.js';
3
+ import type { DelegationOutcome } from './request.js';
4
+ /** The most a failed task's answer quotes of the child's latest text. */
5
+ export declare const LATEST_TEXT_CHARS = 2000;
6
+ /** `text`, or its last `LATEST_TEXT_CHARS` characters marked as cut. */
7
+ export declare const quoteLatest: (text: string) => string;
8
+ /** What a caller is told of a settled task. */
9
+ export declare function outcomeOf(settlement: TaskSettlement): DelegationOutcome;
10
+ /** Why a call's result ended its task: how the call was answered. */
11
+ export declare function answeredBy(result: ToolResult): string;
12
+ /** A task holding one of its origin root's slots, and why it still holds it. */
13
+ export type SlotHolder = {
14
+ readonly taskId: string;
15
+ /** The thread doing it, or that will once the call that reserved the slot has opened the task. */
16
+ readonly childId: string;
17
+ readonly callerId: string;
18
+ readonly why: 'starting' | 'open' | 'waiting for an approval' | 'running a late turn' | 'being stopped';
19
+ };
20
+ /**
21
+ * Why a delegating call gets no slot, in words the model can act on: how many of its origin root's
22
+ * slots are in use, which of them the calling thread holds and how to free one, or that the capacity is
23
+ * held elsewhere.
24
+ */
25
+ export declare function capRefusal(limit: number, holders: readonly SlotHolder[], callerId: string): string;
26
+ /**
27
+ * Why a delegating call gets no slot while some thread's task state cannot be read: that thread
28
+ * may hold a slot, so how many are in use is unknown, and the cap fails closed.
29
+ */
30
+ export declare function unknownOccupancy(unreadable: readonly {
31
+ childId: string;
32
+ error: string;
33
+ }[]): string;
34
+ /**
35
+ * Why a delegating call gets no slot when the thread at the top of the caller's origin tree cannot be
36
+ * found, a caller the catalog does not hold above it: whose slots it would take is unknown, and the
37
+ * cap fails closed.
38
+ */
39
+ export declare const UNKNOWN_ROOT = "Cannot give an agent a task now: the conversation this thread belongs to cannot be found, so how many task slots are in use is unknown.";
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import type { OriginCause } from '../../records/journal.js';
3
+ import type { StartedOrigin } from './record.js';
4
+ /**
5
+ * What delegations records of an owner's assignment in a task's origin: which assignment, and the
6
+ * participant generation it runs on. The origin's `key` is opaque to core; this is the one codec
7
+ * that writes and reads it, so a host that attributes a task decodes it with {@link assignmentKey}.
8
+ */
9
+ declare const AssignmentKeySchema: z.ZodObject<{
10
+ assignment: z.ZodString;
11
+ generation: z.ZodNumber;
12
+ }, z.core.$strict>;
13
+ export type AssignmentKey = z.infer<typeof AssignmentKeySchema>;
14
+ /** A cause that is not an assignment of delegations' shape: a call's, or one whose `key` does not decode. */
15
+ export declare class AssignmentKeyError extends Error {
16
+ constructor(detail: string);
17
+ }
18
+ /** The assignment cause an owner's task records: the owner, and `key` as the codec writes it. */
19
+ export declare function assignmentCause(owner: string, key: AssignmentKey): StartedOrigin['cause'];
20
+ /** The key of an assignment cause, decoded; throws {@link AssignmentKeyError} for a call's cause or an invalid key. */
21
+ export declare function assignmentKey(cause: OriginCause): AssignmentKey;
22
+ export {};
@@ -0,0 +1,161 @@
1
+ import type { Context } from '@leuduan/cordis';
2
+ import type { Seq } from '../../records/journal.js';
3
+ import { type TaskRef, type TaskState } from './record.js';
4
+ /** Who stops a task, why, and the call that stopped it when a call did. */
5
+ export type StopOptions = {
6
+ readonly by: 'caller' | 'host' | 'ancestor';
7
+ readonly reason: string;
8
+ readonly callSeq: Seq | null;
9
+ };
10
+ /** A stop's durable answer: how the task ended, and whether its stop's cleanup is still running. */
11
+ export type StopOutcome = TaskRef & {
12
+ readonly state: Exclude<TaskState, 'open'>;
13
+ readonly cleanupPending: boolean;
14
+ };
15
+ /**
16
+ * The stop and its subtree cleanup, for the delegations service. A stop is a durable intent and a cleanup over
17
+ * the stopped thread's subtree: every thread under it with anything to quiet is signalled at once,
18
+ * then quieted deepest first by a cleanup of its own, one per thread id, which rejects that thread's
19
+ * unanswered confirmations and revokes its approved calls that have not run; `stop_cleaned` lands
20
+ * bottom-up. `resume` above it, or another stop of it, resumes a cleanup a crash left pending.
21
+ *
22
+ * The ordering it keeps: a stop's write is queued before `stop` returns, with nothing awaited, so a
23
+ * result listener orders it ahead of every write the caller enqueues after; that write reserves
24
+ * the walk over the subtree, so an opening queued behind it meets the walk (`blocksOpening`); and
25
+ * `drain` joins the stops and walks while the journal still takes their rows.
26
+ */
27
+ export declare class StopCleanup {
28
+ /** Stops whose intent is on its way to the journal: the task constraint holds a task under one. */
29
+ private readonly stopping;
30
+ /** One cleanup per thread id, which every walker that reaches the thread joins. */
31
+ private readonly cleanups;
32
+ /**
33
+ * The walks over a stopped thread's subtree, by the stopped thread, each bound to the task whose
34
+ * stop started it: taken inside that stop's write, so no task opens on the thread from then until
35
+ * the walk ends, and a second stop of it joins. `walk` is `null` until the stop's write is durable.
36
+ */
37
+ private readonly walks;
38
+ /** Stopped tasks whose subtree a walk in this process found quiet: revalidated once, then trusted. */
39
+ private readonly validated;
40
+ private readonly ctx;
41
+ private readonly ready;
42
+ constructor(ctx: Context,
43
+ /** Resolves once the task state can be served; a walk waits for it. */
44
+ ready: Promise<void>);
45
+ /**
46
+ * Stops task `taskId` of `childId`, decided inside one write on the child from its own rows: `null`
47
+ * when the child holds no such task, which a stop sent to a candidate child reads as "not this
48
+ * one". A settled task is left as it settled, and its outcome reported. A record the child's rows
49
+ * cannot be read for rejects. When the task is the child's latest and stopped, by this write or
50
+ * before, the write also takes the walk over the child's subtree for this task, so nothing opens on
51
+ * the child from then until the walk ends; once the decision is durable, a run of the child still
52
+ * serving the task is cancelled and the walk starts or is joined. Nobody awaits the walk.
53
+ */
54
+ stop(childId: string, taskId: string, options: StopOptions): Promise<StopOutcome | null>;
55
+ /** Resolves once the walk over `threadId`'s subtree, if one runs, has ended, however it ended. */
56
+ whenWalked(threadId: string): Promise<void>;
57
+ /** Whether a stop's walk or a thread cleanup holds `threadId`, so no task may open on it now. */
58
+ blocksOpening(threadId: string): boolean;
59
+ /** Stops on their way to the journal that end `task`, or a task of a thread above its child. */
60
+ stopsAffecting(task: TaskRef): Promise<StopOutcome | null>[];
61
+ /**
62
+ * Re-enters `stop` for every thread under `under` whose stop's cleanup is pending, which resumes
63
+ * it, and for every thread whose latest task is stopped and has not been validated in this
64
+ * process, which walks its subtree once: a cleanup acknowledged before it covered the subtree can
65
+ * have left anything under it, an approved call that has not run included, which the catalog
66
+ * shows only as work a run would find. One under another resumed here is covered by that one's
67
+ * walk. Returns each stop, which resolves once its decision is durable and its walk started.
68
+ */
69
+ resume(under: string): Promise<StopOutcome | null>[];
70
+ /** Waits for every stop on its way and every walk and thread cleanup running, for shutdown. */
71
+ drain(): Promise<void>;
72
+ /**
73
+ * The stop itself. A thread's own cleanup writes an ancestor's stop with `clean` false, since it
74
+ * is that cleanup; so the flag stays private rather than an option of `stop`: a stop from outside
75
+ * that took no walk would leave the stopped subtree unquieted.
76
+ */
77
+ private decide;
78
+ /**
79
+ * Starts the walk the stop's write took over the stopped thread's subtree, or joins it. Nobody
80
+ * awaits it; a failure is reported and leaves the stop's cleanup pending, for the next `resume`
81
+ * above it or the next `stop` of it to resume. A walk that ends lets openings on the thread
82
+ * through again; one that found the subtree quiet marks every stopped task in it validated.
83
+ */
84
+ private cleanUp;
85
+ /** Marks the stopped tasks at and under `threadId` validated: a walk just found them quiet. */
86
+ private markValidated;
87
+ /**
88
+ * Walks a stopped thread's subtree. Its workset is the stopped thread and every thread under it
89
+ * with anything to quiet (`toQuiet`), read from the catalog, whatever a thread between them
90
+ * acknowledged before, so a subtree an older cleanup certified only locally is checked again. Every
91
+ * thread in it is signalled at once, without waiting for any to go quiet; then each is quieted by
92
+ * its own cleanup, deepest first, so `stop_cleaned` lands bottom-up and the stopped thread's last.
93
+ * It is bound to `taskId`: if that is no longer the thread's latest task, it touches nothing. Its
94
+ * completion depends on each thread's cancel settling, which waits for the operation holding it.
95
+ */
96
+ private walk;
97
+ /** The stopped thread and every thread under it with anything to quiet, by depth, deepest first. */
98
+ private workset;
99
+ /**
100
+ * Whether a thread under a stopped one has anything to quiet: a task open or being cleaned up
101
+ * after, or one whose state cannot be read; something live on it (`holdsWork`); or work a run
102
+ * would find, `has_work` or `turn_open`, which is how an approved call that has not run shows.
103
+ */
104
+ private toQuiet;
105
+ /** Whether a run or an operation holds the thread, input waits on it, or a confirmation of it is unanswered. */
106
+ private holdsWork;
107
+ /** Whether a run serves the thread now, or an exclusive operation holds it. */
108
+ private busy;
109
+ /**
110
+ * Signals one thread of a stopped subtree, waiting for nothing: stops its task if open, as stopped
111
+ * by an ancestor, and begins its cancel.
112
+ */
113
+ private signal;
114
+ /**
115
+ * Whether a cleanup cancel would stop anything on the thread: a run or an operation holding it, a
116
+ * pending run, or queued input. A cancel of a thread with none of these would only add a row, on
117
+ * every walk, which a restart repeats for every stopped task.
118
+ */
119
+ private cancellable;
120
+ /** A thread's own cleanup: the one running, which every walker that reaches the thread joins, or a new one. */
121
+ private quietThread;
122
+ /**
123
+ * Quiets one thread of a stopped subtree, owning every write on it. Stops its task if still open,
124
+ * as stopped by an ancestor, once a stop of it already on its way has landed; cancels it when there
125
+ * is anything to stop (`cancellable`), which aborts the run or operation holding it, a late turn
126
+ * after a settle included, clears its queue and settles its pending run, and waits for that; then
127
+ * rejects its unanswered confirmations and
128
+ * takes back its approved calls without a result, so no later run runs one; then stops the
129
+ * commands this process runs for it and every thread under it, and waits for them to end. The
130
+ * thread and its subtree are loaded and held throughout, since only a loaded thread's
131
+ * confirmations can be read, and a loaded thread's command evidence needs no commands plugin.
132
+ * Then acknowledges, or, if something came back meanwhile, a run admitted since or input queued
133
+ * after the clear, does it again. A command whose end is not established keeps it from going
134
+ * quiet however often it tries: the failure names it.
135
+ */
136
+ private quiet;
137
+ /** Stops the loaded thread's latest task if it is open, as stopped by an ancestor, once any stop of it on its way has landed. */
138
+ private stopOwnTask;
139
+ /** Stops the commands this process runs for `threadId` and every thread under it, and waits for them to end. */
140
+ private stopCommands;
141
+ /**
142
+ * Rejects the loaded thread's unanswered confirmations and takes back its approved calls that have
143
+ * no result, each as one write. A write that meets an answer given meanwhile, which a person can
144
+ * give at any time, records nothing; what is pending is read again and tried once more.
145
+ */
146
+ private settleConfirmations;
147
+ /**
148
+ * Writes `stop_cleaned` for the thread's stops not yet acknowledged, decided inside one write, once
149
+ * the thread is quiet and so is everything under it; `false` when not. Quiet: no run and no
150
+ * operation holds the thread, its queue is empty, and none of its confirmations is unanswered or
151
+ * approved without a result. Under it: no task open or still being cleaned up after, none
152
+ * unreadable, and nothing running, held, queued or waiting for an answer. On it and under it: every
153
+ * command known to have ended (`commandWork`), so neither a stop that failed nor a termination no
154
+ * process saw is acknowledged as quiet. Whether a thread beneath
155
+ * has an approved call without a result is not in the catalog: its own cleanup, which ran first,
156
+ * took it back, and nothing can approve one since.
157
+ */
158
+ private acknowledge;
159
+ /** Whether every thread under `threadId` is quiet, as the catalog and this process tell it. */
160
+ private quietUnder;
161
+ }
@@ -0,0 +1,76 @@
1
+ import type { TaskReading } from './record.js';
2
+ /**
3
+ * What the task predicate reads of one task, every field a synchronous read the service already
4
+ * keeps: the child's catalog entry, the stops above it and on their way, whether its run still
5
+ * drains input accepted before it settled, and what authorizes it, by its origin.
6
+ */
7
+ export type TaskView = {
8
+ readonly taskId: string;
9
+ /** The child's latest task, from its catalog entry. */
10
+ readonly reading: TaskReading;
11
+ /** Why a stop above the child keeps anything new from it, or `null`. */
12
+ readonly stoppedAbove: {
13
+ readonly kind: 'stopping' | 'unreadable';
14
+ readonly why: string;
15
+ } | null;
16
+ /** Whether a stop of the task, or of a thread above its child, is on its way to the journal. */
17
+ readonly stopOnItsWay: boolean;
18
+ /** Whether an outstanding stop obligation names the child, or a thread above it. */
19
+ readonly obligated: boolean;
20
+ /** Whether the task settled while the run that served it still drains input accepted before. */
21
+ readonly draining: boolean;
22
+ /** What authorizes the task: its opening call, or its owner's assignment. */
23
+ readonly authority: CallAuthority | AssignmentAuthority;
24
+ };
25
+ /** A call-opened task's authority: where its opening call stands. */
26
+ export type CallAuthority = {
27
+ readonly kind: 'call';
28
+ readonly background: boolean;
29
+ /**
30
+ * The opening call's result: its `receipt`; `answered` by anything else, which ends the task;
31
+ * `none` yet; `unknown` while the caller's rows have not been indexed in this process.
32
+ */
33
+ readonly opening: 'receipt' | 'answered' | 'none' | 'unknown';
34
+ /**
35
+ * Whether the opening call still runs in this process, without a result: a background task's
36
+ * authority until its receipt is durable, a blocking task's until its wait is declared.
37
+ */
38
+ readonly callRunsHere: boolean;
39
+ /** Whether the caller's catalog entry shows the opening call suspended on its wait: a blocking task's authority. */
40
+ readonly callSuspended: boolean;
41
+ };
42
+ /**
43
+ * An owner's task's authority: the verdict of its live registered owner on the assignment its
44
+ * `started` row records, or why there is none (no owner registered under its name).
45
+ */
46
+ export type AssignmentAuthority = {
47
+ readonly kind: 'assignment';
48
+ readonly verdict: {
49
+ readonly kind: 'allow';
50
+ } | {
51
+ readonly kind: 'hold';
52
+ readonly reason: string;
53
+ };
54
+ };
55
+ /**
56
+ * Whether a task may be run now: `allow`; `hold` with why, while something may still change; or
57
+ * `obsolete` with why, when the task has ended and nothing of its request remains to drain.
58
+ */
59
+ export type TaskVerdict = {
60
+ readonly kind: 'allow';
61
+ } | {
62
+ readonly kind: 'hold';
63
+ readonly reason: string;
64
+ } | {
65
+ readonly kind: 'obsolete';
66
+ readonly reason: string;
67
+ };
68
+ /**
69
+ * The task predicate, pure: the task is its child's latest and open, or settled with its run still
70
+ * draining; no stop is recorded above it, on its way, or owed by an obligation; and its authority
71
+ * holds. A call's: while the task is open, its opening call was not answered by anything but its
72
+ * receipt, a background task's receipt is durable or its call runs here, and its state is readable;
73
+ * and a blocking task's call, which the child serves, runs here or waits for it. An owner's
74
+ * assignment's: its live owner allows it, open or draining; no call, receipt or wait is read.
75
+ */
76
+ export declare function evaluateTask(view: TaskView): TaskVerdict;
@@ -0,0 +1,39 @@
1
+ import type { Plugin } from '@leuduan/cordis';
2
+ import { type DelegationsConfig } from './service.js';
3
+ /**
4
+ * Every delegation, through the `ctx.delegations` service it mounts: the start tools (`subAgents`
5
+ * endpoints and `review`) and `message_agent` all open a task on a child through it, blocking or in
6
+ * the background; core runs their children under its task constraint, and it waits for and stops those tasks. Also registers the four tools
7
+ * that act on a child that exists, granted to nobody: `message_agent`, the one way to give a
8
+ * sub-agent or a fork more work, whichever tool started it, and `list_agents`, `read_agent` and
9
+ * `stop_agent`. `codexPreset` grants them wherever it grants a start tool. It tells a caller when a
10
+ * background task completes or fails, with a notice queued on the caller as sourced input, which a
11
+ * host's next run claims. And it keeps a delegated thread from answering while tasks it started are
12
+ * open or their notices unread, stopping what such a thread leaves open when its turn settles.
13
+ * An owner of assignment-origin tasks, such as a workflow, registers with the service
14
+ * (`registerOwner`) and starts its tasks through the same admission, slots and checks; generic
15
+ * tools read and stop those tasks, but never continue or steer them.
16
+ *
17
+ * Root-only, and mounted before the plugins that delegate, which refuse to mount without it. Its
18
+ * configuration is required: `maxOpenTasks`, how many tasks each origin tree may hold open, and the
19
+ * `clock` `read_agent`'s deadlines are kept on. A start from a caller whose chain of unattended work
20
+ * is at core's `chainLimit` is refused, blocking or not.
21
+ */
22
+ export declare const delegations: Plugin.Object<DelegationsConfig>;
23
+ export { AssignmentKeyError, assignmentKey } from './assignmentKey.js';
24
+ export type { AssignmentKey } from './assignmentKey.js';
25
+ export { assignmentChildId, assignmentTaskId, BackgroundField, delegatedInputCall, delegationParameters, describeFailure, modelSelection, ROLE_INSTALLATION, } from './request.js';
26
+ export type { Admission, AdmittedTask, AssignmentConversationKey, AssignmentOutcome, AssignmentOwner, AssignmentRequest, AssignmentTask, AssignmentTaskKey, DelegationFieldValues, DelegationOutcome, DelegationRequest, DelegationTarget, AssignmentOwnerHandle, OwnerVerdict, PinnedConfiguration, } from './request.js';
27
+ export { assignmentOutcome, latestTaskOpenedAt, taskOrigin } from './record.js';
28
+ export type { TaskRef, TaskState } from './record.js';
29
+ export { readNotice } from './notices.js';
30
+ export type { NoticeData } from './notices.js';
31
+ export type { StopOptions, StopOutcome } from './cleanup.js';
32
+ export type { DelegationsConfig, DelegationsService, TaskEntry, TaskFilter } from './service.js';
33
+ export { tasksUnder } from './service.js';
34
+ export { readObligations, stopObligation } from './obligations.js';
35
+ export type { TaskStanding } from './standing.js';
36
+ export { DELEGATION_TOOLS } from './tools.js';
37
+ export type { TaskSettlement } from './record.js';
38
+ export { ROLE_PRESET, RoleConfigSchema } from './role.js';
39
+ export type { RoleConfig } from './role.js';
@@ -0,0 +1 @@
1
+ import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i,o as j,p as k,q as l,r as m,s as n,t as o,u as p,v as q,w as r,x as s,y as t,z as u}from"../../chunks/CANPZYTH.js";import"../../chunks/VYMT4TXD.js";import"../../chunks/MNJ4SRF7.js";import"../../chunks/JFZZXVWD.js";import"../../chunks/N6IXG2VL.js";import"../../chunks/6DRCKZ2C.js";import"../../chunks/7LI64H5X.js";import"../../chunks/3UMZMPWW.js";import"../../chunks/34KW6VNQ.js";import"../../chunks/KUZCL2SH.js";import"../../chunks/CQEVREBT.js";import"../../chunks/HK6ZSONF.js";import"../../chunks/7VAPNE3L.js";import"../../chunks/EPYQ5M3B.js";import"../../chunks/5IRF47YB.js";import"../../chunks/OL5A6ITQ.js";import"../../chunks/JFX2MXBA.js";import"../../chunks/S34ZA2R6.js";import"../../chunks/6FRNHMCV.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{c as AssignmentKeyError,i as BackgroundField,t as DELEGATION_TOOLS,l as ROLE_INSTALLATION,b as ROLE_PRESET,a as RoleConfigSchema,f as assignmentChildId,d as assignmentKey,m as assignmentOutcome,e as assignmentTaskId,g as delegatedInputCall,j as delegationParameters,u as delegations,h as describeFailure,o as latestTaskOpenedAt,k as modelSelection,p as readNotice,r as readObligations,q as stopObligation,n as taskOrigin,s as tasksUnder};