@kynetic-ai/spec 0.9.1 → 0.11.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 (310) hide show
  1. package/README.md +2 -1
  2. package/dist/acp/client.d.ts +6 -1
  3. package/dist/acp/client.d.ts.map +1 -1
  4. package/dist/acp/client.js +7 -2
  5. package/dist/acp/client.js.map +1 -1
  6. package/dist/acp/framing.d.ts +12 -1
  7. package/dist/acp/framing.d.ts.map +1 -1
  8. package/dist/acp/framing.js +27 -4
  9. package/dist/acp/framing.js.map +1 -1
  10. package/dist/agent-runtime/dispatch.d.ts +292 -0
  11. package/dist/agent-runtime/dispatch.d.ts.map +1 -0
  12. package/dist/agent-runtime/dispatch.js +860 -0
  13. package/dist/agent-runtime/dispatch.js.map +1 -0
  14. package/dist/agent-runtime/index.d.ts +11 -0
  15. package/dist/agent-runtime/index.d.ts.map +1 -0
  16. package/dist/agent-runtime/index.js +11 -0
  17. package/dist/agent-runtime/index.js.map +1 -0
  18. package/dist/agent-runtime/invocation.d.ts +86 -0
  19. package/dist/agent-runtime/invocation.d.ts.map +1 -0
  20. package/dist/agent-runtime/invocation.js +442 -0
  21. package/dist/agent-runtime/invocation.js.map +1 -0
  22. package/dist/agent-runtime/prompts.d.ts +50 -0
  23. package/dist/agent-runtime/prompts.d.ts.map +1 -0
  24. package/dist/agent-runtime/prompts.js +108 -0
  25. package/dist/agent-runtime/prompts.js.map +1 -0
  26. package/dist/agents/spawner.d.ts.map +1 -1
  27. package/dist/agents/spawner.js +60 -4
  28. package/dist/agents/spawner.js.map +1 -1
  29. package/dist/cli/batch-exec.d.ts.map +1 -1
  30. package/dist/cli/batch-exec.js +140 -62
  31. package/dist/cli/batch-exec.js.map +1 -1
  32. package/dist/cli/batch-write-buffer.d.ts +141 -0
  33. package/dist/cli/batch-write-buffer.d.ts.map +1 -0
  34. package/dist/cli/batch-write-buffer.js +400 -0
  35. package/dist/cli/batch-write-buffer.js.map +1 -0
  36. package/dist/cli/commands/agent.d.ts +20 -0
  37. package/dist/cli/commands/agent.d.ts.map +1 -0
  38. package/dist/cli/commands/agent.js +831 -0
  39. package/dist/cli/commands/agent.js.map +1 -0
  40. package/dist/cli/commands/inbox.d.ts.map +1 -1
  41. package/dist/cli/commands/inbox.js +46 -22
  42. package/dist/cli/commands/inbox.js.map +1 -1
  43. package/dist/cli/commands/index.d.ts +1 -0
  44. package/dist/cli/commands/index.d.ts.map +1 -1
  45. package/dist/cli/commands/index.js +1 -0
  46. package/dist/cli/commands/index.js.map +1 -1
  47. package/dist/cli/commands/item.d.ts.map +1 -1
  48. package/dist/cli/commands/item.js +22 -16
  49. package/dist/cli/commands/item.js.map +1 -1
  50. package/dist/cli/commands/log.js +1 -1
  51. package/dist/cli/commands/log.js.map +1 -1
  52. package/dist/cli/commands/meta.d.ts.map +1 -1
  53. package/dist/cli/commands/meta.js +168 -6
  54. package/dist/cli/commands/meta.js.map +1 -1
  55. package/dist/cli/commands/module.d.ts.map +1 -1
  56. package/dist/cli/commands/module.js +2 -1
  57. package/dist/cli/commands/module.js.map +1 -1
  58. package/dist/cli/commands/plan-import.js +19 -3
  59. package/dist/cli/commands/plan-import.js.map +1 -1
  60. package/dist/cli/commands/plan.d.ts.map +1 -1
  61. package/dist/cli/commands/plan.js +87 -43
  62. package/dist/cli/commands/plan.js.map +1 -1
  63. package/dist/cli/commands/ralph.d.ts +5 -56
  64. package/dist/cli/commands/ralph.d.ts.map +1 -1
  65. package/dist/cli/commands/ralph.js +52 -1502
  66. package/dist/cli/commands/ralph.js.map +1 -1
  67. package/dist/cli/commands/search.d.ts.map +1 -1
  68. package/dist/cli/commands/search.js +22 -13
  69. package/dist/cli/commands/search.js.map +1 -1
  70. package/dist/cli/commands/serve.d.ts.map +1 -1
  71. package/dist/cli/commands/serve.js +70 -11
  72. package/dist/cli/commands/serve.js.map +1 -1
  73. package/dist/cli/commands/session/checkpoint.d.ts.map +1 -1
  74. package/dist/cli/commands/session/checkpoint.js +7 -2
  75. package/dist/cli/commands/session/checkpoint.js.map +1 -1
  76. package/dist/cli/commands/session/commands.d.ts.map +1 -1
  77. package/dist/cli/commands/session/commands.js +15 -0
  78. package/dist/cli/commands/session/commands.js.map +1 -1
  79. package/dist/cli/commands/session/context.d.ts.map +1 -1
  80. package/dist/cli/commands/session/context.js +10 -5
  81. package/dist/cli/commands/session/context.js.map +1 -1
  82. package/dist/cli/commands/session/log.d.ts +1 -0
  83. package/dist/cli/commands/session/log.d.ts.map +1 -1
  84. package/dist/cli/commands/session/log.js +124 -8
  85. package/dist/cli/commands/session/log.js.map +1 -1
  86. package/dist/cli/commands/session/stale-close.d.ts +17 -0
  87. package/dist/cli/commands/session/stale-close.d.ts.map +1 -0
  88. package/dist/cli/commands/session/stale-close.js +378 -0
  89. package/dist/cli/commands/session/stale-close.js.map +1 -0
  90. package/dist/cli/commands/setup.d.ts.map +1 -1
  91. package/dist/cli/commands/setup.js +95 -0
  92. package/dist/cli/commands/setup.js.map +1 -1
  93. package/dist/cli/commands/skill-crud.d.ts.map +1 -1
  94. package/dist/cli/commands/skill-crud.js +4 -3
  95. package/dist/cli/commands/skill-crud.js.map +1 -1
  96. package/dist/cli/commands/skill-diff.d.ts.map +1 -1
  97. package/dist/cli/commands/skill-diff.js +15 -0
  98. package/dist/cli/commands/skill-diff.js.map +1 -1
  99. package/dist/cli/commands/skill-install.d.ts.map +1 -1
  100. package/dist/cli/commands/skill-install.js +50 -18
  101. package/dist/cli/commands/skill-install.js.map +1 -1
  102. package/dist/cli/commands/task.d.ts.map +1 -1
  103. package/dist/cli/commands/task.js +536 -310
  104. package/dist/cli/commands/task.js.map +1 -1
  105. package/dist/cli/commands/tasks.js +1 -1
  106. package/dist/cli/commands/tasks.js.map +1 -1
  107. package/dist/cli/commands/triage.d.ts.map +1 -1
  108. package/dist/cli/commands/triage.js +37 -13
  109. package/dist/cli/commands/triage.js.map +1 -1
  110. package/dist/cli/commands/validate.d.ts.map +1 -1
  111. package/dist/cli/commands/validate.js +65 -25
  112. package/dist/cli/commands/validate.js.map +1 -1
  113. package/dist/cli/help/content.d.ts.map +1 -1
  114. package/dist/cli/help/content.js +5 -0
  115. package/dist/cli/help/content.js.map +1 -1
  116. package/dist/cli/index.d.ts.map +1 -1
  117. package/dist/cli/index.js +2 -1
  118. package/dist/cli/index.js.map +1 -1
  119. package/dist/cli/output.d.ts.map +1 -1
  120. package/dist/cli/output.js +5 -1
  121. package/dist/cli/output.js.map +1 -1
  122. package/dist/daemon/project-context.ts +22 -0
  123. package/dist/daemon/routes/agent-dispatch.ts +279 -0
  124. package/dist/daemon/routes/items.ts +22 -0
  125. package/dist/daemon/routes/meta.ts +141 -1
  126. package/dist/daemon/routes/plans.ts +147 -0
  127. package/dist/daemon/routes/sessions.ts +180 -0
  128. package/dist/daemon/routes/tasks.ts +198 -0
  129. package/dist/daemon/routes/validation.ts +1 -1
  130. package/dist/daemon/server.ts +77 -21
  131. package/dist/daemon/websocket/handler.ts +67 -6
  132. package/dist/daemon/websocket/lifecycle.ts +19 -0
  133. package/dist/daemon/websocket/pubsub.ts +74 -3
  134. package/dist/export/html.d.ts.map +1 -1
  135. package/dist/export/html.js +5 -2
  136. package/dist/export/html.js.map +1 -1
  137. package/dist/export/triage.d.ts +1 -1
  138. package/dist/export/triage.d.ts.map +1 -1
  139. package/dist/export/triage.js +5 -3
  140. package/dist/export/triage.js.map +1 -1
  141. package/dist/parser/alignment.d.ts.map +1 -1
  142. package/dist/parser/alignment.js +10 -5
  143. package/dist/parser/alignment.js.map +1 -1
  144. package/dist/parser/assess.js +1 -1
  145. package/dist/parser/assess.js.map +1 -1
  146. package/dist/parser/config.d.ts +6 -6
  147. package/dist/parser/meta.d.ts.map +1 -1
  148. package/dist/parser/meta.js +9 -8
  149. package/dist/parser/meta.js.map +1 -1
  150. package/dist/parser/plan-document.d.ts +12 -12
  151. package/dist/parser/plans.d.ts +7 -0
  152. package/dist/parser/plans.d.ts.map +1 -1
  153. package/dist/parser/plans.js +100 -15
  154. package/dist/parser/plans.js.map +1 -1
  155. package/dist/parser/refs.d.ts +5 -0
  156. package/dist/parser/refs.d.ts.map +1 -1
  157. package/dist/parser/refs.js +17 -12
  158. package/dist/parser/refs.js.map +1 -1
  159. package/dist/parser/shadow.d.ts +1 -1
  160. package/dist/parser/shadow.d.ts.map +1 -1
  161. package/dist/parser/shadow.js +71 -4
  162. package/dist/parser/shadow.js.map +1 -1
  163. package/dist/parser/skill-render.d.ts.map +1 -1
  164. package/dist/parser/skill-render.js +6 -3
  165. package/dist/parser/skill-render.js.map +1 -1
  166. package/dist/parser/validate.d.ts.map +1 -1
  167. package/dist/parser/validate.js +35 -76
  168. package/dist/parser/validate.js.map +1 -1
  169. package/dist/parser/yaml.d.ts +24 -5
  170. package/dist/parser/yaml.d.ts.map +1 -1
  171. package/dist/parser/yaml.js +224 -64
  172. package/dist/parser/yaml.js.map +1 -1
  173. package/dist/schema/meta.d.ts +457 -119
  174. package/dist/schema/meta.d.ts.map +1 -1
  175. package/dist/schema/meta.js +56 -0
  176. package/dist/schema/meta.js.map +1 -1
  177. package/dist/schema/plan.d.ts +22 -22
  178. package/dist/schema/spec.d.ts +39 -39
  179. package/dist/schema/task.d.ts +43 -32
  180. package/dist/schema/task.d.ts.map +1 -1
  181. package/dist/schema/task.js +5 -0
  182. package/dist/schema/task.js.map +1 -1
  183. package/dist/sessions/store.d.ts +126 -0
  184. package/dist/sessions/store.d.ts.map +1 -1
  185. package/dist/sessions/store.js +440 -22
  186. package/dist/sessions/store.js.map +1 -1
  187. package/dist/sessions/types.d.ts +75 -17
  188. package/dist/sessions/types.d.ts.map +1 -1
  189. package/dist/sessions/types.js +51 -1
  190. package/dist/sessions/types.js.map +1 -1
  191. package/dist/triage/actions.d.ts +1 -0
  192. package/dist/triage/actions.d.ts.map +1 -1
  193. package/dist/triage/actions.js +34 -7
  194. package/dist/triage/actions.js.map +1 -1
  195. package/dist/utils/commit.js +1 -1
  196. package/dist/utils/commit.js.map +1 -1
  197. package/dist/web-ui/_app/env.js +1 -0
  198. package/dist/web-ui/_app/immutable/assets/0.BJaYkGW2.css +1 -0
  199. package/dist/web-ui/_app/immutable/assets/9.SzGLxi4x.css +1 -0
  200. package/dist/web-ui/_app/immutable/assets/select-trigger.CV-KWLNP.css +1 -0
  201. package/dist/web-ui/_app/immutable/chunks/-lc0BifF.js +1 -0
  202. package/dist/web-ui/_app/immutable/chunks/62JVKtnb.js +1 -0
  203. package/dist/web-ui/_app/immutable/chunks/8RBjHMN1.js +1 -0
  204. package/dist/web-ui/_app/immutable/chunks/B5LJFxqa.js +1 -0
  205. package/dist/web-ui/_app/immutable/chunks/B5wTVqxm.js +1 -0
  206. package/dist/web-ui/_app/immutable/chunks/B6VSmczZ.js +1 -0
  207. package/dist/web-ui/_app/immutable/chunks/B8a0xDxR.js +1 -0
  208. package/dist/web-ui/_app/immutable/chunks/BEOQc37C.js +1 -0
  209. package/dist/web-ui/_app/immutable/chunks/BHtYorjv.js +1 -0
  210. package/dist/web-ui/_app/immutable/chunks/BJ0JX3ea.js +1 -0
  211. package/dist/web-ui/_app/immutable/chunks/BMuCqDX8.js +1 -0
  212. package/dist/web-ui/_app/immutable/chunks/BP352uRn.js +1 -0
  213. package/dist/web-ui/_app/immutable/chunks/BUZujXJ2.js +1 -0
  214. package/dist/web-ui/_app/immutable/chunks/BVA9Exy-.js +1 -0
  215. package/dist/web-ui/_app/immutable/chunks/BWET-efb.js +1 -0
  216. package/dist/web-ui/_app/immutable/chunks/BXkNecpt.js +1 -0
  217. package/dist/web-ui/_app/immutable/chunks/BYzrIfX8.js +1 -0
  218. package/dist/web-ui/_app/immutable/chunks/BkOJ8DkV.js +1 -0
  219. package/dist/web-ui/_app/immutable/chunks/BpuwufMc.js +1 -0
  220. package/dist/web-ui/_app/immutable/chunks/BwMO4RrG.js +1 -0
  221. package/dist/web-ui/_app/immutable/chunks/BysXJlZb.js +1 -0
  222. package/dist/web-ui/_app/immutable/chunks/C076q4JN.js +1 -0
  223. package/dist/web-ui/_app/immutable/chunks/C33JaVbg.js +1 -0
  224. package/dist/web-ui/_app/immutable/chunks/CGtqifKp.js +1 -0
  225. package/dist/web-ui/_app/immutable/chunks/CHDZZ7OG.js +1 -0
  226. package/dist/web-ui/_app/immutable/chunks/CPPfDSei.js +5 -0
  227. package/dist/web-ui/_app/immutable/chunks/CUir3f4J.js +60 -0
  228. package/dist/web-ui/_app/immutable/chunks/Cncwi6fQ.js +1 -0
  229. package/dist/web-ui/_app/immutable/chunks/CrCIbn0C.js +1 -0
  230. package/dist/web-ui/_app/immutable/chunks/CwELQvbx.js +1 -0
  231. package/dist/web-ui/_app/immutable/chunks/D3vxvonu.js +1 -0
  232. package/dist/web-ui/_app/immutable/chunks/D6TVmR9T.js +1 -0
  233. package/dist/web-ui/_app/immutable/chunks/D7LTux4W.js +1 -0
  234. package/dist/web-ui/_app/immutable/chunks/D82RulSH.js +1 -0
  235. package/dist/web-ui/_app/immutable/chunks/D9QNBZM2.js +2 -0
  236. package/dist/web-ui/_app/immutable/chunks/DAMmvwn4.js +1 -0
  237. package/dist/web-ui/_app/immutable/chunks/DAh4Wfku.js +1 -0
  238. package/dist/web-ui/_app/immutable/chunks/DAx07bEQ.js +1 -0
  239. package/dist/web-ui/_app/immutable/chunks/DBYE9jOd.js +1 -0
  240. package/dist/web-ui/_app/immutable/chunks/DOno4cA2.js +1 -0
  241. package/dist/web-ui/_app/immutable/chunks/DQA8NZIH.js +2 -0
  242. package/dist/web-ui/_app/immutable/chunks/DRfPm2bo.js +1 -0
  243. package/dist/web-ui/_app/immutable/chunks/DhQhksaB.js +1 -0
  244. package/dist/web-ui/_app/immutable/chunks/DjG7s6hm.js +1 -0
  245. package/dist/web-ui/_app/immutable/chunks/DjcCz-PU.js +2 -0
  246. package/dist/web-ui/_app/immutable/chunks/DkltRNvh.js +1 -0
  247. package/dist/web-ui/_app/immutable/chunks/DlaTnPKL.js +1 -0
  248. package/dist/web-ui/_app/immutable/chunks/DvA-KON-.js +1 -0
  249. package/dist/web-ui/_app/immutable/chunks/DxCk-KHc.js +1 -0
  250. package/dist/web-ui/_app/immutable/chunks/DzO4hlg9.js +1 -0
  251. package/dist/web-ui/_app/immutable/chunks/Eo4gF7ih.js +1 -0
  252. package/dist/web-ui/_app/immutable/chunks/ExCq5swK.js +1 -0
  253. package/dist/web-ui/_app/immutable/chunks/T3zZGv51.js +1 -0
  254. package/dist/web-ui/_app/immutable/chunks/XZumBYeP.js +1 -0
  255. package/dist/web-ui/_app/immutable/chunks/_ySfNjkF.js +1 -0
  256. package/dist/web-ui/_app/immutable/chunks/iEtR5cV6.js +1 -0
  257. package/dist/web-ui/_app/immutable/chunks/k_Qegko0.js +1 -0
  258. package/dist/web-ui/_app/immutable/chunks/pE6cYWlS.js +1 -0
  259. package/dist/web-ui/_app/immutable/entry/app.Cgu6uKeS.js +2 -0
  260. package/dist/web-ui/_app/immutable/entry/start.9XifnLoB.js +1 -0
  261. package/dist/web-ui/_app/immutable/nodes/0.DISwcKSK.js +1 -0
  262. package/dist/web-ui/_app/immutable/nodes/1.Cx2Ufqp1.js +1 -0
  263. package/dist/web-ui/_app/immutable/nodes/10.C3z8ijXL.js +1 -0
  264. package/dist/web-ui/_app/immutable/nodes/11.DZdIjZmM.js +1 -0
  265. package/dist/web-ui/_app/immutable/nodes/12.FsIGfAOa.js +1 -0
  266. package/dist/web-ui/_app/immutable/nodes/13.DZoFwagf.js +1 -0
  267. package/dist/web-ui/_app/immutable/nodes/14.DaIzDKbQ.js +1 -0
  268. package/dist/web-ui/_app/immutable/nodes/15.BYyt4XWF.js +2 -0
  269. package/dist/web-ui/_app/immutable/nodes/16.CQkSqpOe.js +1 -0
  270. package/dist/web-ui/_app/immutable/nodes/2.Bkf_j2UJ.js +1 -0
  271. package/dist/web-ui/_app/immutable/nodes/3.kaMCurJG.js +1 -0
  272. package/dist/web-ui/_app/immutable/nodes/4.BSsFPTHG.js +2 -0
  273. package/dist/web-ui/_app/immutable/nodes/5.CpPlcCEZ.js +1 -0
  274. package/dist/web-ui/_app/immutable/nodes/6.BN4FqQmY.js +1 -0
  275. package/dist/web-ui/_app/immutable/nodes/7.9kBYIZik.js +1 -0
  276. package/dist/web-ui/_app/immutable/nodes/8.BuijtZ6B.js +1 -0
  277. package/dist/web-ui/_app/immutable/nodes/9.C-Weba8R.js +1 -0
  278. package/dist/web-ui/_app/version.json +1 -0
  279. package/dist/web-ui/index.html +39 -0
  280. package/dist/web-ui/robots.txt +3 -0
  281. package/package.json +4 -2
  282. package/plugin/.claude-plugin/marketplace.json +1 -1
  283. package/plugin/.claude-plugin/plugin.json +1 -1
  284. package/plugin/plugins/kspec/skills/task-work/SKILL.md +25 -2
  285. package/templates/agents-sections/06-ralph-loop.md +64 -11
  286. package/templates/skills/task-work/SKILL.md +25 -2
  287. package/dist/ralph/cli-renderer.d.ts +0 -27
  288. package/dist/ralph/cli-renderer.d.ts.map +0 -1
  289. package/dist/ralph/cli-renderer.js +0 -250
  290. package/dist/ralph/cli-renderer.js.map +0 -1
  291. package/dist/ralph/events.d.ts +0 -65
  292. package/dist/ralph/events.d.ts.map +0 -1
  293. package/dist/ralph/events.js +0 -600
  294. package/dist/ralph/events.js.map +0 -1
  295. package/dist/ralph/index.d.ts +0 -11
  296. package/dist/ralph/index.d.ts.map +0 -1
  297. package/dist/ralph/index.js +0 -16
  298. package/dist/ralph/index.js.map +0 -1
  299. package/dist/ralph/loop-errors.d.ts +0 -83
  300. package/dist/ralph/loop-errors.d.ts.map +0 -1
  301. package/dist/ralph/loop-errors.js +0 -150
  302. package/dist/ralph/loop-errors.js.map +0 -1
  303. package/dist/ralph/subagent.d.ts +0 -127
  304. package/dist/ralph/subagent.d.ts.map +0 -1
  305. package/dist/ralph/subagent.js +0 -268
  306. package/dist/ralph/subagent.js.map +0 -1
  307. package/dist/ralph/wrap-up.d.ts +0 -127
  308. package/dist/ralph/wrap-up.d.ts.map +0 -1
  309. package/dist/ralph/wrap-up.js +0 -271
  310. package/dist/ralph/wrap-up.js.map +0 -1
@@ -15,8 +15,93 @@ export declare const SessionProtocolSchema: z.ZodObject<{
15
15
  checkpoint?: string | null | undefined;
16
16
  end?: string | null | undefined;
17
17
  }>;
18
+ /**
19
+ * Agent dispatch event types - lifecycle events that can trigger agent spawning
20
+ * AC: @agent-definition-schema ac-2
21
+ */
22
+ export declare const AgentDispatchEventSchema: z.ZodEnum<["task.in_progress", "task.ready", "task.needs_work", "task.pending_review"]>;
23
+ /**
24
+ * Agent dispatch filter - constraints for matching tasks during dispatch
25
+ * AC: @agent-definition-schema ac-3
26
+ */
27
+ export declare const AgentDispatchFilterSchema: z.ZodObject<{
28
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
29
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ priority: z.ZodOptional<z.ZodNumber>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ tags?: string[] | undefined;
33
+ automation?: "eligible" | "ineligible" | undefined;
34
+ priority?: number | undefined;
35
+ }, {
36
+ tags?: string[] | undefined;
37
+ automation?: "eligible" | "ineligible" | undefined;
38
+ priority?: number | undefined;
39
+ }>;
40
+ /**
41
+ * Agent dispatch rule - maps an event type to optional filters
42
+ * AC: @agent-definition-schema ac-2
43
+ */
44
+ export declare const AgentDispatchRuleSchema: z.ZodObject<{
45
+ on: z.ZodEnum<["task.in_progress", "task.ready", "task.needs_work", "task.pending_review"]>;
46
+ filter: z.ZodOptional<z.ZodObject<{
47
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
48
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ priority: z.ZodOptional<z.ZodNumber>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ tags?: string[] | undefined;
52
+ automation?: "eligible" | "ineligible" | undefined;
53
+ priority?: number | undefined;
54
+ }, {
55
+ tags?: string[] | undefined;
56
+ automation?: "eligible" | "ineligible" | undefined;
57
+ priority?: number | undefined;
58
+ }>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
61
+ filter?: {
62
+ tags?: string[] | undefined;
63
+ automation?: "eligible" | "ineligible" | undefined;
64
+ priority?: number | undefined;
65
+ } | undefined;
66
+ }, {
67
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
68
+ filter?: {
69
+ tags?: string[] | undefined;
70
+ automation?: "eligible" | "ineligible" | undefined;
71
+ priority?: number | undefined;
72
+ } | undefined;
73
+ }>;
74
+ /**
75
+ * Agent budget settings - limits on task count and time
76
+ * AC: @agent-definition-schema ac-4
77
+ */
78
+ export declare const AgentBudgetSchema: z.ZodObject<{
79
+ max_tasks: z.ZodOptional<z.ZodNumber>;
80
+ max_retries: z.ZodOptional<z.ZodNumber>;
81
+ timeout_minutes: z.ZodOptional<z.ZodNumber>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ max_tasks?: number | undefined;
84
+ max_retries?: number | undefined;
85
+ timeout_minutes?: number | undefined;
86
+ }, {
87
+ max_tasks?: number | undefined;
88
+ max_retries?: number | undefined;
89
+ timeout_minutes?: number | undefined;
90
+ }>;
91
+ /**
92
+ * Agent concurrency settings
93
+ * AC: @agent-definition-schema ac-6
94
+ */
95
+ export declare const AgentConcurrencySchema: z.ZodObject<{
96
+ max_concurrent: z.ZodDefault<z.ZodNumber>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ max_concurrent: number;
99
+ }, {
100
+ max_concurrent?: number | undefined;
101
+ }>;
18
102
  /**
19
103
  * Agent definition - describes an agent's role and capabilities
104
+ * AC: @agent-definition-schema ac-1 through ac-8
20
105
  */
21
106
  export declare const AgentSchema: z.ZodObject<{
22
107
  _ulid: z.ZodString;
@@ -39,23 +124,105 @@ export declare const AgentSchema: z.ZodObject<{
39
124
  end?: string | null | undefined;
40
125
  }>>;
41
126
  conventions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
127
+ adapter: z.ZodOptional<z.ZodString>;
128
+ dispatch: z.ZodDefault<z.ZodArray<z.ZodObject<{
129
+ on: z.ZodEnum<["task.in_progress", "task.ready", "task.needs_work", "task.pending_review"]>;
130
+ filter: z.ZodOptional<z.ZodObject<{
131
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
132
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ priority: z.ZodOptional<z.ZodNumber>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ tags?: string[] | undefined;
136
+ automation?: "eligible" | "ineligible" | undefined;
137
+ priority?: number | undefined;
138
+ }, {
139
+ tags?: string[] | undefined;
140
+ automation?: "eligible" | "ineligible" | undefined;
141
+ priority?: number | undefined;
142
+ }>>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
145
+ filter?: {
146
+ tags?: string[] | undefined;
147
+ automation?: "eligible" | "ineligible" | undefined;
148
+ priority?: number | undefined;
149
+ } | undefined;
150
+ }, {
151
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
152
+ filter?: {
153
+ tags?: string[] | undefined;
154
+ automation?: "eligible" | "ineligible" | undefined;
155
+ priority?: number | undefined;
156
+ } | undefined;
157
+ }>, "many">>;
158
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
159
+ budget: z.ZodOptional<z.ZodObject<{
160
+ max_tasks: z.ZodOptional<z.ZodNumber>;
161
+ max_retries: z.ZodOptional<z.ZodNumber>;
162
+ timeout_minutes: z.ZodOptional<z.ZodNumber>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ max_tasks?: number | undefined;
165
+ max_retries?: number | undefined;
166
+ timeout_minutes?: number | undefined;
167
+ }, {
168
+ max_tasks?: number | undefined;
169
+ max_retries?: number | undefined;
170
+ timeout_minutes?: number | undefined;
171
+ }>>;
172
+ concurrency: z.ZodDefault<z.ZodObject<{
173
+ max_concurrent: z.ZodDefault<z.ZodNumber>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ max_concurrent: number;
176
+ }, {
177
+ max_concurrent?: number | undefined;
178
+ }>>;
179
+ auto_approve: z.ZodDefault<z.ZodBoolean>;
180
+ prompt_template: z.ZodOptional<z.ZodString>;
181
+ /** Automation eligibility for agent list filtering (eligible|ineligible) */
182
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
183
+ /** Tags for filtering and categorization */
184
+ tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
42
185
  }, "strip", z.ZodTypeAny, {
186
+ name: string;
43
187
  _ulid: string;
44
188
  id: string;
45
- name: string;
46
189
  capabilities: string[];
47
190
  tools: string[];
48
191
  conventions: string[];
192
+ dispatch: {
193
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
194
+ filter?: {
195
+ tags?: string[] | undefined;
196
+ automation?: "eligible" | "ineligible" | undefined;
197
+ priority?: number | undefined;
198
+ } | undefined;
199
+ }[];
200
+ skills: string[];
201
+ concurrency: {
202
+ max_concurrent: number;
203
+ };
204
+ auto_approve: boolean;
205
+ tags?: string[] | undefined;
206
+ automation?: "eligible" | "ineligible" | undefined;
49
207
  description?: string | undefined;
50
208
  session_protocol?: {
51
209
  start?: string | null | undefined;
52
210
  checkpoint?: string | null | undefined;
53
211
  end?: string | null | undefined;
54
212
  } | undefined;
213
+ adapter?: string | undefined;
214
+ budget?: {
215
+ max_tasks?: number | undefined;
216
+ max_retries?: number | undefined;
217
+ timeout_minutes?: number | undefined;
218
+ } | undefined;
219
+ prompt_template?: string | undefined;
55
220
  }, {
221
+ name: string;
56
222
  _ulid: string;
57
223
  id: string;
58
- name: string;
224
+ tags?: string[] | undefined;
225
+ automation?: "eligible" | "ineligible" | undefined;
59
226
  description?: string | undefined;
60
227
  capabilities?: string[] | undefined;
61
228
  tools?: string[] | undefined;
@@ -65,6 +232,26 @@ export declare const AgentSchema: z.ZodObject<{
65
232
  end?: string | null | undefined;
66
233
  } | undefined;
67
234
  conventions?: string[] | undefined;
235
+ adapter?: string | undefined;
236
+ dispatch?: {
237
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
238
+ filter?: {
239
+ tags?: string[] | undefined;
240
+ automation?: "eligible" | "ineligible" | undefined;
241
+ priority?: number | undefined;
242
+ } | undefined;
243
+ }[] | undefined;
244
+ skills?: string[] | undefined;
245
+ budget?: {
246
+ max_tasks?: number | undefined;
247
+ max_retries?: number | undefined;
248
+ timeout_minutes?: number | undefined;
249
+ } | undefined;
250
+ concurrency?: {
251
+ max_concurrent?: number | undefined;
252
+ } | undefined;
253
+ auto_approve?: boolean | undefined;
254
+ prompt_template?: string | undefined;
68
255
  }>;
69
256
  /**
70
257
  * Workflow step types
@@ -139,8 +326,8 @@ export declare const WorkflowStepSchema: z.ZodObject<{
139
326
  required?: boolean | undefined;
140
327
  }>, "many">>;
141
328
  }, "strip", z.ZodTypeAny, {
142
- type: "decision" | "check" | "action";
143
329
  content: string;
330
+ type: "decision" | "check" | "action";
144
331
  options?: string[] | undefined;
145
332
  on_fail?: string | undefined;
146
333
  execution?: {
@@ -156,8 +343,8 @@ export declare const WorkflowStepSchema: z.ZodObject<{
156
343
  required?: boolean | undefined;
157
344
  }[] | undefined;
158
345
  }, {
159
- type: "decision" | "check" | "action";
160
346
  content: string;
347
+ type: "decision" | "check" | "action";
161
348
  options?: string[] | undefined;
162
349
  on_fail?: string | undefined;
163
350
  execution?: {
@@ -219,8 +406,8 @@ export declare const WorkflowSchema: z.ZodObject<{
219
406
  required?: boolean | undefined;
220
407
  }>, "many">>;
221
408
  }, "strip", z.ZodTypeAny, {
222
- type: "decision" | "check" | "action";
223
409
  content: string;
410
+ type: "decision" | "check" | "action";
224
411
  options?: string[] | undefined;
225
412
  on_fail?: string | undefined;
226
413
  execution?: {
@@ -236,8 +423,8 @@ export declare const WorkflowSchema: z.ZodObject<{
236
423
  required?: boolean | undefined;
237
424
  }[] | undefined;
238
425
  }, {
239
- type: "decision" | "check" | "action";
240
426
  content: string;
427
+ type: "decision" | "check" | "action";
241
428
  options?: string[] | undefined;
242
429
  on_fail?: string | undefined;
243
430
  execution?: {
@@ -262,8 +449,8 @@ export declare const WorkflowSchema: z.ZodObject<{
262
449
  id: string;
263
450
  trigger: string;
264
451
  steps: {
265
- type: "decision" | "check" | "action";
266
452
  content: string;
453
+ type: "decision" | "check" | "action";
267
454
  options?: string[] | undefined;
268
455
  on_fail?: string | undefined;
269
456
  execution?: {
@@ -292,8 +479,8 @@ export declare const WorkflowSchema: z.ZodObject<{
292
479
  description?: string | undefined;
293
480
  mode?: "interactive" | "loop" | undefined;
294
481
  steps?: {
295
- type: "decision" | "check" | "action";
296
482
  content: string;
483
+ type: "decision" | "check" | "action";
297
484
  options?: string[] | undefined;
298
485
  on_fail?: string | undefined;
299
486
  execution?: {
@@ -450,10 +637,10 @@ export declare const ObservationSchema: z.ZodObject<{
450
637
  resolved_by: z.ZodOptional<z.ZodString>;
451
638
  promoted_to: z.ZodOptional<z.ZodString>;
452
639
  }, "strip", z.ZodTypeAny, {
640
+ content: string;
453
641
  type: "friction" | "success" | "question" | "idea";
454
642
  _ulid: string;
455
643
  created_at: string;
456
- content: string;
457
644
  resolved: boolean;
458
645
  workflow_ref?: string | undefined;
459
646
  author?: string | undefined;
@@ -462,10 +649,10 @@ export declare const ObservationSchema: z.ZodObject<{
462
649
  resolved_by?: string | undefined;
463
650
  promoted_to?: string | undefined;
464
651
  }, {
652
+ content: string;
465
653
  type: "friction" | "success" | "question" | "idea";
466
654
  _ulid: string;
467
655
  created_at: string;
468
- content: string;
469
656
  workflow_ref?: string | undefined;
470
657
  author?: string | undefined;
471
658
  resolved?: boolean | undefined;
@@ -850,10 +1037,10 @@ export declare const SkillSchema: z.ZodObject<{
850
1037
  }>>;
851
1038
  }, z.ZodTypeAny, "passthrough">>>;
852
1039
  }, "strip", z.ZodTypeAny, {
1040
+ name: string;
853
1041
  _ulid: string;
854
1042
  tags: string[];
855
1043
  id: string;
856
- name: string;
857
1044
  _type: "skill";
858
1045
  origin: "core" | "project" | "local";
859
1046
  platforms: string[];
@@ -914,9 +1101,9 @@ export declare const SkillSchema: z.ZodObject<{
914
1101
  }>>;
915
1102
  }, z.ZodTypeAny, "passthrough"> | undefined;
916
1103
  }, {
1104
+ name: string;
917
1105
  _ulid: string;
918
1106
  id: string;
919
- name: string;
920
1107
  origin: "core" | "project" | "local";
921
1108
  tags?: string[] | undefined;
922
1109
  description?: string | undefined;
@@ -1303,23 +1490,105 @@ export declare const MetaManifestSchema: z.ZodObject<{
1303
1490
  end?: string | null | undefined;
1304
1491
  }>>;
1305
1492
  conventions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1493
+ adapter: z.ZodOptional<z.ZodString>;
1494
+ dispatch: z.ZodDefault<z.ZodArray<z.ZodObject<{
1495
+ on: z.ZodEnum<["task.in_progress", "task.ready", "task.needs_work", "task.pending_review"]>;
1496
+ filter: z.ZodOptional<z.ZodObject<{
1497
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
1498
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1499
+ priority: z.ZodOptional<z.ZodNumber>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ tags?: string[] | undefined;
1502
+ automation?: "eligible" | "ineligible" | undefined;
1503
+ priority?: number | undefined;
1504
+ }, {
1505
+ tags?: string[] | undefined;
1506
+ automation?: "eligible" | "ineligible" | undefined;
1507
+ priority?: number | undefined;
1508
+ }>>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
1511
+ filter?: {
1512
+ tags?: string[] | undefined;
1513
+ automation?: "eligible" | "ineligible" | undefined;
1514
+ priority?: number | undefined;
1515
+ } | undefined;
1516
+ }, {
1517
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
1518
+ filter?: {
1519
+ tags?: string[] | undefined;
1520
+ automation?: "eligible" | "ineligible" | undefined;
1521
+ priority?: number | undefined;
1522
+ } | undefined;
1523
+ }>, "many">>;
1524
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1525
+ budget: z.ZodOptional<z.ZodObject<{
1526
+ max_tasks: z.ZodOptional<z.ZodNumber>;
1527
+ max_retries: z.ZodOptional<z.ZodNumber>;
1528
+ timeout_minutes: z.ZodOptional<z.ZodNumber>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ max_tasks?: number | undefined;
1531
+ max_retries?: number | undefined;
1532
+ timeout_minutes?: number | undefined;
1533
+ }, {
1534
+ max_tasks?: number | undefined;
1535
+ max_retries?: number | undefined;
1536
+ timeout_minutes?: number | undefined;
1537
+ }>>;
1538
+ concurrency: z.ZodDefault<z.ZodObject<{
1539
+ max_concurrent: z.ZodDefault<z.ZodNumber>;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ max_concurrent: number;
1542
+ }, {
1543
+ max_concurrent?: number | undefined;
1544
+ }>>;
1545
+ auto_approve: z.ZodDefault<z.ZodBoolean>;
1546
+ prompt_template: z.ZodOptional<z.ZodString>;
1547
+ /** Automation eligibility for agent list filtering (eligible|ineligible) */
1548
+ automation: z.ZodOptional<z.ZodEnum<["eligible", "ineligible"]>>;
1549
+ /** Tags for filtering and categorization */
1550
+ tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1306
1551
  }, "strip", z.ZodTypeAny, {
1552
+ name: string;
1307
1553
  _ulid: string;
1308
1554
  id: string;
1309
- name: string;
1310
1555
  capabilities: string[];
1311
1556
  tools: string[];
1312
1557
  conventions: string[];
1558
+ dispatch: {
1559
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
1560
+ filter?: {
1561
+ tags?: string[] | undefined;
1562
+ automation?: "eligible" | "ineligible" | undefined;
1563
+ priority?: number | undefined;
1564
+ } | undefined;
1565
+ }[];
1566
+ skills: string[];
1567
+ concurrency: {
1568
+ max_concurrent: number;
1569
+ };
1570
+ auto_approve: boolean;
1571
+ tags?: string[] | undefined;
1572
+ automation?: "eligible" | "ineligible" | undefined;
1313
1573
  description?: string | undefined;
1314
1574
  session_protocol?: {
1315
1575
  start?: string | null | undefined;
1316
1576
  checkpoint?: string | null | undefined;
1317
1577
  end?: string | null | undefined;
1318
1578
  } | undefined;
1579
+ adapter?: string | undefined;
1580
+ budget?: {
1581
+ max_tasks?: number | undefined;
1582
+ max_retries?: number | undefined;
1583
+ timeout_minutes?: number | undefined;
1584
+ } | undefined;
1585
+ prompt_template?: string | undefined;
1319
1586
  }, {
1587
+ name: string;
1320
1588
  _ulid: string;
1321
1589
  id: string;
1322
- name: string;
1590
+ tags?: string[] | undefined;
1591
+ automation?: "eligible" | "ineligible" | undefined;
1323
1592
  description?: string | undefined;
1324
1593
  capabilities?: string[] | undefined;
1325
1594
  tools?: string[] | undefined;
@@ -1329,6 +1598,26 @@ export declare const MetaManifestSchema: z.ZodObject<{
1329
1598
  end?: string | null | undefined;
1330
1599
  } | undefined;
1331
1600
  conventions?: string[] | undefined;
1601
+ adapter?: string | undefined;
1602
+ dispatch?: {
1603
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
1604
+ filter?: {
1605
+ tags?: string[] | undefined;
1606
+ automation?: "eligible" | "ineligible" | undefined;
1607
+ priority?: number | undefined;
1608
+ } | undefined;
1609
+ }[] | undefined;
1610
+ skills?: string[] | undefined;
1611
+ budget?: {
1612
+ max_tasks?: number | undefined;
1613
+ max_retries?: number | undefined;
1614
+ timeout_minutes?: number | undefined;
1615
+ } | undefined;
1616
+ concurrency?: {
1617
+ max_concurrent?: number | undefined;
1618
+ } | undefined;
1619
+ auto_approve?: boolean | undefined;
1620
+ prompt_template?: string | undefined;
1332
1621
  }>, "many">>;
1333
1622
  workflows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1334
1623
  _ulid: z.ZodString;
@@ -1369,8 +1658,8 @@ export declare const MetaManifestSchema: z.ZodObject<{
1369
1658
  required?: boolean | undefined;
1370
1659
  }>, "many">>;
1371
1660
  }, "strip", z.ZodTypeAny, {
1372
- type: "decision" | "check" | "action";
1373
1661
  content: string;
1662
+ type: "decision" | "check" | "action";
1374
1663
  options?: string[] | undefined;
1375
1664
  on_fail?: string | undefined;
1376
1665
  execution?: {
@@ -1386,8 +1675,8 @@ export declare const MetaManifestSchema: z.ZodObject<{
1386
1675
  required?: boolean | undefined;
1387
1676
  }[] | undefined;
1388
1677
  }, {
1389
- type: "decision" | "check" | "action";
1390
1678
  content: string;
1679
+ type: "decision" | "check" | "action";
1391
1680
  options?: string[] | undefined;
1392
1681
  on_fail?: string | undefined;
1393
1682
  execution?: {
@@ -1412,8 +1701,8 @@ export declare const MetaManifestSchema: z.ZodObject<{
1412
1701
  id: string;
1413
1702
  trigger: string;
1414
1703
  steps: {
1415
- type: "decision" | "check" | "action";
1416
1704
  content: string;
1705
+ type: "decision" | "check" | "action";
1417
1706
  options?: string[] | undefined;
1418
1707
  on_fail?: string | undefined;
1419
1708
  execution?: {
@@ -1442,8 +1731,8 @@ export declare const MetaManifestSchema: z.ZodObject<{
1442
1731
  description?: string | undefined;
1443
1732
  mode?: "interactive" | "loop" | undefined;
1444
1733
  steps?: {
1445
- type: "decision" | "check" | "action";
1446
1734
  content: string;
1735
+ type: "decision" | "check" | "action";
1447
1736
  options?: string[] | undefined;
1448
1737
  on_fail?: string | undefined;
1449
1738
  execution?: {
@@ -1549,10 +1838,10 @@ export declare const MetaManifestSchema: z.ZodObject<{
1549
1838
  resolved_by: z.ZodOptional<z.ZodString>;
1550
1839
  promoted_to: z.ZodOptional<z.ZodString>;
1551
1840
  }, "strip", z.ZodTypeAny, {
1841
+ content: string;
1552
1842
  type: "friction" | "success" | "question" | "idea";
1553
1843
  _ulid: string;
1554
1844
  created_at: string;
1555
- content: string;
1556
1845
  resolved: boolean;
1557
1846
  workflow_ref?: string | undefined;
1558
1847
  author?: string | undefined;
@@ -1561,10 +1850,10 @@ export declare const MetaManifestSchema: z.ZodObject<{
1561
1850
  resolved_by?: string | undefined;
1562
1851
  promoted_to?: string | undefined;
1563
1852
  }, {
1853
+ content: string;
1564
1854
  type: "friction" | "success" | "question" | "idea";
1565
1855
  _ulid: string;
1566
1856
  created_at: string;
1567
- content: string;
1568
1857
  workflow_ref?: string | undefined;
1569
1858
  author?: string | undefined;
1570
1859
  resolved?: boolean | undefined;
@@ -1734,10 +2023,10 @@ export declare const MetaManifestSchema: z.ZodObject<{
1734
2023
  }>>;
1735
2024
  }, z.ZodTypeAny, "passthrough">>>;
1736
2025
  }, "strip", z.ZodTypeAny, {
2026
+ name: string;
1737
2027
  _ulid: string;
1738
2028
  tags: string[];
1739
2029
  id: string;
1740
- name: string;
1741
2030
  _type: "skill";
1742
2031
  origin: "core" | "project" | "local";
1743
2032
  platforms: string[];
@@ -1798,9 +2087,9 @@ export declare const MetaManifestSchema: z.ZodObject<{
1798
2087
  }>>;
1799
2088
  }, z.ZodTypeAny, "passthrough"> | undefined;
1800
2089
  }, {
2090
+ name: string;
1801
2091
  _ulid: string;
1802
2092
  id: string;
1803
- name: string;
1804
2093
  origin: "core" | "project" | "local";
1805
2094
  tags?: string[] | undefined;
1806
2095
  description?: string | undefined;
@@ -1883,67 +2172,11 @@ export declare const MetaManifestSchema: z.ZodObject<{
1883
2172
  unit?: "words" | "chars" | "lines" | undefined;
1884
2173
  } | undefined;
1885
2174
  }[];
1886
- kynetic_meta: string;
1887
- agents: {
1888
- _ulid: string;
1889
- id: string;
1890
- name: string;
1891
- capabilities: string[];
1892
- tools: string[];
1893
- conventions: string[];
1894
- description?: string | undefined;
1895
- session_protocol?: {
1896
- start?: string | null | undefined;
1897
- checkpoint?: string | null | undefined;
1898
- end?: string | null | undefined;
1899
- } | undefined;
1900
- }[];
1901
- workflows: {
1902
- _ulid: string;
1903
- id: string;
1904
- trigger: string;
1905
- steps: {
1906
- type: "decision" | "check" | "action";
1907
- content: string;
1908
- options?: string[] | undefined;
1909
- on_fail?: string | undefined;
1910
- execution?: {
1911
- mode: "prompt" | "silent" | "skip";
1912
- timeout?: number | null | undefined;
1913
- } | undefined;
1914
- entry_criteria?: string[] | undefined;
1915
- exit_criteria?: string[] | undefined;
1916
- inputs?: {
1917
- name: string;
1918
- type?: "string" | "number" | "ref" | undefined;
1919
- description?: string | undefined;
1920
- required?: boolean | undefined;
1921
- }[] | undefined;
1922
- }[];
1923
- tags?: string[] | undefined;
1924
- description?: string | undefined;
1925
- mode?: "interactive" | "loop" | undefined;
1926
- enforcement?: "advisory" | "strict" | undefined;
1927
- based_on?: string | undefined;
1928
- }[];
1929
- observations: {
1930
- type: "friction" | "success" | "question" | "idea";
1931
- _ulid: string;
1932
- created_at: string;
1933
- content: string;
1934
- resolved: boolean;
1935
- workflow_ref?: string | undefined;
1936
- author?: string | undefined;
1937
- resolution?: string | null | undefined;
1938
- resolved_at?: string | undefined;
1939
- resolved_by?: string | undefined;
1940
- promoted_to?: string | undefined;
1941
- }[];
1942
2175
  skills: {
2176
+ name: string;
1943
2177
  _ulid: string;
1944
2178
  tags: string[];
1945
2179
  id: string;
1946
- name: string;
1947
2180
  _type: "skill";
1948
2181
  origin: "core" | "project" | "local";
1949
2182
  platforms: string[];
@@ -2004,55 +2237,54 @@ export declare const MetaManifestSchema: z.ZodObject<{
2004
2237
  }>>;
2005
2238
  }, z.ZodTypeAny, "passthrough"> | undefined;
2006
2239
  }[];
2007
- }, {
2008
- includes?: string[] | undefined;
2009
- conventions?: {
2010
- _ulid: string;
2011
- domain: string;
2012
- validation?: {
2013
- type: "regex" | "enum" | "range" | "prose";
2014
- message?: string | undefined;
2015
- pattern?: string | undefined;
2016
- allowed?: string[] | undefined;
2017
- min?: number | undefined;
2018
- max?: number | undefined;
2019
- unit?: "words" | "chars" | "lines" | undefined;
2020
- } | undefined;
2021
- rules?: string[] | undefined;
2022
- examples?: {
2023
- good: string;
2024
- bad: string;
2025
- }[] | undefined;
2026
- }[] | undefined;
2027
- kynetic_meta?: string | undefined;
2028
- agents?: {
2240
+ kynetic_meta: string;
2241
+ agents: {
2242
+ name: string;
2029
2243
  _ulid: string;
2030
2244
  id: string;
2031
- name: string;
2245
+ capabilities: string[];
2246
+ tools: string[];
2247
+ conventions: string[];
2248
+ dispatch: {
2249
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
2250
+ filter?: {
2251
+ tags?: string[] | undefined;
2252
+ automation?: "eligible" | "ineligible" | undefined;
2253
+ priority?: number | undefined;
2254
+ } | undefined;
2255
+ }[];
2256
+ skills: string[];
2257
+ concurrency: {
2258
+ max_concurrent: number;
2259
+ };
2260
+ auto_approve: boolean;
2261
+ tags?: string[] | undefined;
2262
+ automation?: "eligible" | "ineligible" | undefined;
2032
2263
  description?: string | undefined;
2033
- capabilities?: string[] | undefined;
2034
- tools?: string[] | undefined;
2035
2264
  session_protocol?: {
2036
2265
  start?: string | null | undefined;
2037
2266
  checkpoint?: string | null | undefined;
2038
2267
  end?: string | null | undefined;
2039
2268
  } | undefined;
2040
- conventions?: string[] | undefined;
2041
- }[] | undefined;
2042
- workflows?: {
2269
+ adapter?: string | undefined;
2270
+ budget?: {
2271
+ max_tasks?: number | undefined;
2272
+ max_retries?: number | undefined;
2273
+ timeout_minutes?: number | undefined;
2274
+ } | undefined;
2275
+ prompt_template?: string | undefined;
2276
+ }[];
2277
+ workflows: {
2043
2278
  _ulid: string;
2044
2279
  id: string;
2045
2280
  trigger: string;
2046
- tags?: string[] | undefined;
2047
- description?: string | undefined;
2048
- mode?: "interactive" | "loop" | undefined;
2049
- steps?: {
2050
- type: "decision" | "check" | "action";
2281
+ steps: {
2051
2282
  content: string;
2283
+ type: "decision" | "check" | "action";
2052
2284
  options?: string[] | undefined;
2053
2285
  on_fail?: string | undefined;
2054
2286
  execution?: {
2055
- mode?: "prompt" | "silent" | "skip" | undefined;
2287
+ mode: "prompt" | "silent" | "skip";
2056
2288
  timeout?: number | null | undefined;
2057
2289
  } | undefined;
2058
2290
  entry_criteria?: string[] | undefined;
@@ -2063,27 +2295,50 @@ export declare const MetaManifestSchema: z.ZodObject<{
2063
2295
  description?: string | undefined;
2064
2296
  required?: boolean | undefined;
2065
2297
  }[] | undefined;
2066
- }[] | undefined;
2298
+ }[];
2299
+ tags?: string[] | undefined;
2300
+ description?: string | undefined;
2301
+ mode?: "interactive" | "loop" | undefined;
2067
2302
  enforcement?: "advisory" | "strict" | undefined;
2068
2303
  based_on?: string | undefined;
2069
- }[] | undefined;
2070
- observations?: {
2304
+ }[];
2305
+ observations: {
2306
+ content: string;
2071
2307
  type: "friction" | "success" | "question" | "idea";
2072
2308
  _ulid: string;
2073
2309
  created_at: string;
2074
- content: string;
2310
+ resolved: boolean;
2075
2311
  workflow_ref?: string | undefined;
2076
2312
  author?: string | undefined;
2077
- resolved?: boolean | undefined;
2078
2313
  resolution?: string | null | undefined;
2079
2314
  resolved_at?: string | undefined;
2080
2315
  resolved_by?: string | undefined;
2081
2316
  promoted_to?: string | undefined;
2317
+ }[];
2318
+ }, {
2319
+ includes?: string[] | undefined;
2320
+ conventions?: {
2321
+ _ulid: string;
2322
+ domain: string;
2323
+ validation?: {
2324
+ type: "regex" | "enum" | "range" | "prose";
2325
+ message?: string | undefined;
2326
+ pattern?: string | undefined;
2327
+ allowed?: string[] | undefined;
2328
+ min?: number | undefined;
2329
+ max?: number | undefined;
2330
+ unit?: "words" | "chars" | "lines" | undefined;
2331
+ } | undefined;
2332
+ rules?: string[] | undefined;
2333
+ examples?: {
2334
+ good: string;
2335
+ bad: string;
2336
+ }[] | undefined;
2082
2337
  }[] | undefined;
2083
2338
  skills?: {
2339
+ name: string;
2084
2340
  _ulid: string;
2085
2341
  id: string;
2086
- name: string;
2087
2342
  origin: "core" | "project" | "local";
2088
2343
  tags?: string[] | undefined;
2089
2344
  description?: string | undefined;
@@ -2145,8 +2400,91 @@ export declare const MetaManifestSchema: z.ZodObject<{
2145
2400
  }>>;
2146
2401
  }, z.ZodTypeAny, "passthrough"> | undefined;
2147
2402
  }[] | undefined;
2403
+ kynetic_meta?: string | undefined;
2404
+ agents?: {
2405
+ name: string;
2406
+ _ulid: string;
2407
+ id: string;
2408
+ tags?: string[] | undefined;
2409
+ automation?: "eligible" | "ineligible" | undefined;
2410
+ description?: string | undefined;
2411
+ capabilities?: string[] | undefined;
2412
+ tools?: string[] | undefined;
2413
+ session_protocol?: {
2414
+ start?: string | null | undefined;
2415
+ checkpoint?: string | null | undefined;
2416
+ end?: string | null | undefined;
2417
+ } | undefined;
2418
+ conventions?: string[] | undefined;
2419
+ adapter?: string | undefined;
2420
+ dispatch?: {
2421
+ on: "task.in_progress" | "task.ready" | "task.needs_work" | "task.pending_review";
2422
+ filter?: {
2423
+ tags?: string[] | undefined;
2424
+ automation?: "eligible" | "ineligible" | undefined;
2425
+ priority?: number | undefined;
2426
+ } | undefined;
2427
+ }[] | undefined;
2428
+ skills?: string[] | undefined;
2429
+ budget?: {
2430
+ max_tasks?: number | undefined;
2431
+ max_retries?: number | undefined;
2432
+ timeout_minutes?: number | undefined;
2433
+ } | undefined;
2434
+ concurrency?: {
2435
+ max_concurrent?: number | undefined;
2436
+ } | undefined;
2437
+ auto_approve?: boolean | undefined;
2438
+ prompt_template?: string | undefined;
2439
+ }[] | undefined;
2440
+ workflows?: {
2441
+ _ulid: string;
2442
+ id: string;
2443
+ trigger: string;
2444
+ tags?: string[] | undefined;
2445
+ description?: string | undefined;
2446
+ mode?: "interactive" | "loop" | undefined;
2447
+ steps?: {
2448
+ content: string;
2449
+ type: "decision" | "check" | "action";
2450
+ options?: string[] | undefined;
2451
+ on_fail?: string | undefined;
2452
+ execution?: {
2453
+ mode?: "prompt" | "silent" | "skip" | undefined;
2454
+ timeout?: number | null | undefined;
2455
+ } | undefined;
2456
+ entry_criteria?: string[] | undefined;
2457
+ exit_criteria?: string[] | undefined;
2458
+ inputs?: {
2459
+ name: string;
2460
+ type?: "string" | "number" | "ref" | undefined;
2461
+ description?: string | undefined;
2462
+ required?: boolean | undefined;
2463
+ }[] | undefined;
2464
+ }[] | undefined;
2465
+ enforcement?: "advisory" | "strict" | undefined;
2466
+ based_on?: string | undefined;
2467
+ }[] | undefined;
2468
+ observations?: {
2469
+ content: string;
2470
+ type: "friction" | "success" | "question" | "idea";
2471
+ _ulid: string;
2472
+ created_at: string;
2473
+ workflow_ref?: string | undefined;
2474
+ author?: string | undefined;
2475
+ resolved?: boolean | undefined;
2476
+ resolution?: string | null | undefined;
2477
+ resolved_at?: string | undefined;
2478
+ resolved_by?: string | undefined;
2479
+ promoted_to?: string | undefined;
2480
+ }[] | undefined;
2148
2481
  }>;
2149
2482
  export type SessionProtocol = z.infer<typeof SessionProtocolSchema>;
2483
+ export type AgentDispatchEvent = z.infer<typeof AgentDispatchEventSchema>;
2484
+ export type AgentDispatchFilter = z.infer<typeof AgentDispatchFilterSchema>;
2485
+ export type AgentDispatchRule = z.infer<typeof AgentDispatchRuleSchema>;
2486
+ export type AgentBudget = z.infer<typeof AgentBudgetSchema>;
2487
+ export type AgentConcurrency = z.infer<typeof AgentConcurrencySchema>;
2150
2488
  export type Agent = z.infer<typeof AgentSchema>;
2151
2489
  export type WorkflowStepType = z.infer<typeof WorkflowStepTypeSchema>;
2152
2490
  export type StepExecution = z.infer<typeof StepExecutionSchema>;