dsh-botgroup 0.6.7 → 0.7.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 (397) hide show
  1. package/README.en.md +60 -122
  2. package/README.md +59 -121
  3. package/lib/client.js +9117 -5624
  4. package/lib/client.js.map +4 -4
  5. package/lib/host/activity/first-user.js +1 -1
  6. package/lib/host/activity/preview.js +1 -1
  7. package/lib/host/activity/remote.js +1 -1
  8. package/lib/host/activity/tracker.js +1 -1
  9. package/lib/host/automation/coordinator.js +1 -1
  10. package/lib/host/automation/delivery.js +1 -1
  11. package/lib/host/automation/errors.js +1 -1
  12. package/lib/host/automation/index.js +1 -1
  13. package/lib/host/automation/remote.js +1 -1
  14. package/lib/host/automation/store.js +1 -1
  15. package/lib/host/bot-context.js +42 -14
  16. package/lib/host/bot-context.js.map +1 -1
  17. package/lib/host/capabilities/platform.js +1 -1
  18. package/lib/host/capabilities/remote.js +1 -1
  19. package/lib/host/capabilities/service.js +1 -1
  20. package/lib/host/collaboration/remote.js +1 -1
  21. package/lib/host/collaboration/service.js +1 -1
  22. package/lib/host/common/integration-stores.js +1 -1
  23. package/lib/host/common/native-ambient-source.d.ts +7 -0
  24. package/lib/host/common/native-ambient-source.js +15 -0
  25. package/lib/host/common/native-ambient-source.js.map +1 -0
  26. package/lib/host/common/operations.js +1 -1
  27. package/lib/host/common/subagent-activation.d.ts +7 -0
  28. package/lib/host/common/subagent-activation.js +10 -0
  29. package/lib/host/common/subagent-activation.js.map +1 -0
  30. package/lib/host/composer.js +1 -1
  31. package/lib/host/connectors/remote.js +1 -1
  32. package/lib/host/connectors/service.js +1 -1
  33. package/lib/host/data-flow/agent-binding.js +1 -1
  34. package/lib/host/data-flow/connector-boundary.js +1 -1
  35. package/lib/host/data-flow/delegation.js +4 -3
  36. package/lib/host/data-flow/delegation.js.map +1 -1
  37. package/lib/host/data-flow/egress.js +1 -1
  38. package/lib/host/data-flow/grants.js +1 -1
  39. package/lib/host/data-flow/graph-capability.js +1 -1
  40. package/lib/host/data-flow/labels.js +1 -1
  41. package/lib/host/data-flow/lineage.js +1 -1
  42. package/lib/host/data-flow/managed-copies.d.ts +11 -3
  43. package/lib/host/data-flow/managed-copies.js +1 -1
  44. package/lib/host/data-flow/native-policy.js +1 -1
  45. package/lib/host/data-flow/outlets.js +1 -1
  46. package/lib/host/data-flow/tool-guard.js +12 -3
  47. package/lib/host/data-flow/tool-guard.js.map +1 -1
  48. package/lib/host/delegate/continuation.js +1 -1
  49. package/lib/host/delegate/guard.js +9 -5
  50. package/lib/host/delegate/guard.js.map +1 -1
  51. package/lib/host/delegate/tool.js +29 -2
  52. package/lib/host/delegate/tool.js.map +1 -1
  53. package/lib/host/errors.js +1 -1
  54. package/lib/host/groups/concurrent.js +12 -7
  55. package/lib/host/groups/concurrent.js.map +1 -1
  56. package/lib/host/groups/data-flow.js +10 -5
  57. package/lib/host/groups/data-flow.js.map +1 -1
  58. package/lib/host/groups/failure.js +1 -1
  59. package/lib/host/groups/members.d.ts +69 -2
  60. package/lib/host/groups/members.js +41 -3
  61. package/lib/host/groups/members.js.map +1 -1
  62. package/lib/host/groups/messages.d.ts +54 -0
  63. package/lib/host/groups/messages.js +5 -2
  64. package/lib/host/groups/messages.js.map +1 -1
  65. package/lib/host/groups/model-selection.js +1 -1
  66. package/lib/host/groups/model.d.ts +65 -0
  67. package/lib/host/groups/model.js +6 -2
  68. package/lib/host/groups/model.js.map +1 -1
  69. package/lib/host/groups/owner-follow-up.js +1 -1
  70. package/lib/host/groups/recall-sessions.js +1 -1
  71. package/lib/host/groups/recall-tool.js +1 -1
  72. package/lib/host/groups/recall.d.ts +2 -2
  73. package/lib/host/groups/recall.js +1 -1
  74. package/lib/host/groups/remote.d.ts +317 -0
  75. package/lib/host/groups/remote.js +32 -1
  76. package/lib/host/groups/remote.js.map +1 -1
  77. package/lib/host/groups/root-guard.js +1 -1
  78. package/lib/host/groups/roots.js +1 -1
  79. package/lib/host/groups/round-robin.js +1 -1
  80. package/lib/host/groups/routing.d.ts +28 -1
  81. package/lib/host/groups/routing.js +33 -3
  82. package/lib/host/groups/routing.js.map +1 -1
  83. package/lib/host/groups/service.d.ts +502 -2
  84. package/lib/host/groups/service.js +43 -5
  85. package/lib/host/groups/service.js.map +1 -1
  86. package/lib/host/groups/state.d.ts +158 -1
  87. package/lib/host/groups/state.js +4 -2
  88. package/lib/host/groups/state.js.map +1 -1
  89. package/lib/host/groups/supergroup-admission.d.ts +87 -0
  90. package/lib/host/groups/supergroup-admission.js +99 -0
  91. package/lib/host/groups/supergroup-admission.js.map +1 -0
  92. package/lib/host/groups/team-recipes.d.ts +113 -0
  93. package/lib/host/groups/team-recipes.js +92 -0
  94. package/lib/host/groups/team-recipes.js.map +1 -0
  95. package/lib/host/groups/turn-runner.d.ts +3 -0
  96. package/lib/host/groups/turn-runner.js +43 -8
  97. package/lib/host/groups/turn-runner.js.map +1 -1
  98. package/lib/host/groups/turns.d.ts +84 -1
  99. package/lib/host/groups/turns.js +44 -11
  100. package/lib/host/groups/turns.js.map +1 -1
  101. package/lib/host/groups/worker-tool.d.ts +8 -1
  102. package/lib/host/groups/worker-tool.js +80 -9
  103. package/lib/host/groups/worker-tool.js.map +1 -1
  104. package/lib/host/home.js +1 -1
  105. package/lib/host/im/service.js +1 -1
  106. package/lib/host/index.d.ts +2 -1
  107. package/lib/host/index.js +30 -2
  108. package/lib/host/index.js.map +1 -1
  109. package/lib/host/live-persona.js +1 -1
  110. package/lib/host/main-session.js +1 -1
  111. package/lib/host/memory/admission.js +1 -1
  112. package/lib/host/memory/auto-share.js +1 -1
  113. package/lib/host/memory/confirmation.d.ts +4 -4
  114. package/lib/host/memory/confirmation.js +1 -1
  115. package/lib/host/memory/conflicts.js +1 -1
  116. package/lib/host/memory/context.js +1 -1
  117. package/lib/host/memory/domain-v2.d.ts +8 -8
  118. package/lib/host/memory/domain-v2.js +1 -1
  119. package/lib/host/memory/facade.d.ts +131 -3
  120. package/lib/host/memory/facade.js +101 -2
  121. package/lib/host/memory/facade.js.map +1 -1
  122. package/lib/host/memory/forget-preview.js +1 -1
  123. package/lib/host/memory/forget-runner.js +1 -1
  124. package/lib/host/memory/forget-service.js +1 -1
  125. package/lib/host/memory/history-proof.js +1 -1
  126. package/lib/host/memory/history.js +1 -1
  127. package/lib/host/memory/layout-upgrade.js +1 -1
  128. package/lib/host/memory/migration.js +1 -1
  129. package/lib/host/memory/op-log.js +1 -1
  130. package/lib/host/memory/open-v2.js +1 -1
  131. package/lib/host/memory/owner-lease.js +1 -1
  132. package/lib/host/memory/persistent-map.js +1 -1
  133. package/lib/host/memory/port.js +1 -1
  134. package/lib/host/memory/preserve-inbox.js +1 -1
  135. package/lib/host/memory/projection.js +1 -1
  136. package/lib/host/memory/prompt.js +1 -1
  137. package/lib/host/memory/query.js +1 -1
  138. package/lib/host/memory/quota-replay.js +1 -1
  139. package/lib/host/memory/quota.d.ts +4 -4
  140. package/lib/host/memory/quota.js +1 -1
  141. package/lib/host/memory/remote.d.ts +124 -0
  142. package/lib/host/memory/remote.js +12 -1
  143. package/lib/host/memory/remote.js.map +1 -1
  144. package/lib/host/memory/retrieval-config.js +1 -1
  145. package/lib/host/memory/retrieval-rank.js +1 -1
  146. package/lib/host/memory/retrieval-text.js +1 -1
  147. package/lib/host/memory/root-instructions.js +1 -1
  148. package/lib/host/memory/secrets.js +1 -1
  149. package/lib/host/memory/service.js +1 -1
  150. package/lib/host/memory/shards.js +1 -1
  151. package/lib/host/memory/store-v2.js +1 -1
  152. package/lib/host/memory/temporal.js +1 -1
  153. package/lib/host/memory/tool-guidance.js +1 -1
  154. package/lib/host/memory/tools.js +1 -1
  155. package/lib/host/memory/trusted-ingress.js +1 -1
  156. package/lib/host/memory/version.d.ts +4 -4
  157. package/lib/host/memory/version.js +1 -1
  158. package/lib/host/messaging/config.js +1 -1
  159. package/lib/host/messaging/core.d.ts +11 -3
  160. package/lib/host/messaging/core.js +4 -3
  161. package/lib/host/messaging/core.js.map +1 -1
  162. package/lib/host/messaging/delivery.js +3 -1
  163. package/lib/host/messaging/delivery.js.map +1 -1
  164. package/lib/host/messaging/evidence.js +1 -1
  165. package/lib/host/messaging/interrupt.js +1 -1
  166. package/lib/host/messaging/recovery.js +1 -1
  167. package/lib/host/messaging/remote.d.ts +1 -1
  168. package/lib/host/messaging/remote.js +1 -1
  169. package/lib/host/messaging/reply-routing.js +1 -1
  170. package/lib/host/messaging/safety.js +8 -3
  171. package/lib/host/messaging/safety.js.map +1 -1
  172. package/lib/host/messaging/scoped-projection.d.ts +43 -0
  173. package/lib/host/messaging/scoped-projection.js +136 -0
  174. package/lib/host/messaging/scoped-projection.js.map +1 -0
  175. package/lib/host/messaging/service.d.ts +5 -2
  176. package/lib/host/messaging/service.js +16 -6
  177. package/lib/host/messaging/service.js.map +1 -1
  178. package/lib/host/messaging/store.d.ts +45 -13
  179. package/lib/host/messaging/store.js +4 -3
  180. package/lib/host/messaging/store.js.map +1 -1
  181. package/lib/host/messaging/tool.js +24 -5
  182. package/lib/host/messaging/tool.js.map +1 -1
  183. package/lib/host/messaging/wake.js +3 -3
  184. package/lib/host/messaging/wake.js.map +1 -1
  185. package/lib/host/native-schedule/outcomes.js +1 -1
  186. package/lib/host/native-schedule/service.js +1 -1
  187. package/lib/host/notifications/data-flow.js +1 -1
  188. package/lib/host/notifications/remote.js +1 -1
  189. package/lib/host/notifications/service.js +1 -1
  190. package/lib/host/notifications/time.js +1 -1
  191. package/lib/host/notifications/tool.js +1 -1
  192. package/lib/host/onboarding/coordinator.js +1 -1
  193. package/lib/host/onboarding/guard.js +1 -1
  194. package/lib/host/proactive/auto-admission.js +1 -1
  195. package/lib/host/proactive/config.js +1 -1
  196. package/lib/host/proactive/coordinator-client.js +1 -1
  197. package/lib/host/proactive/deferred-notices.js +1 -1
  198. package/lib/host/proactive/execution-prompt.js +1 -1
  199. package/lib/host/proactive/execution.js +1 -1
  200. package/lib/host/proactive/executors/command.js +1 -1
  201. package/lib/host/proactive/executors/json-command-bridge-entry.js +1 -1
  202. package/lib/host/proactive/executors/json-command-bridge.js +1 -1
  203. package/lib/host/proactive/executors/loopback.js +1 -1
  204. package/lib/host/proactive/feedback-workflow.js +1 -1
  205. package/lib/host/proactive/feedback.js +1 -1
  206. package/lib/host/proactive/follow-up-events.d.ts +2 -0
  207. package/lib/host/proactive/follow-up-events.js +63 -4
  208. package/lib/host/proactive/follow-up-events.js.map +1 -1
  209. package/lib/host/proactive/follow-up-facts.js +1 -1
  210. package/lib/host/proactive/follow-up-tool.js +3 -3
  211. package/lib/host/proactive/follow-up-tool.js.map +1 -1
  212. package/lib/host/proactive/governance-artifacts.js +1 -1
  213. package/lib/host/proactive/governance-service.js +1 -1
  214. package/lib/host/proactive/group-budget.js +1 -1
  215. package/lib/host/proactive/group-follow-up.js +1 -1
  216. package/lib/host/proactive/group-repair.js +1 -1
  217. package/lib/host/proactive/index.js +1 -1
  218. package/lib/host/proactive/lifecycle.js +1 -1
  219. package/lib/host/proactive/method-evaluation.js +1 -1
  220. package/lib/host/proactive/method-package.js +1 -1
  221. package/lib/host/proactive/method-skill.js +1 -1
  222. package/lib/host/proactive/model-budget.js +1 -1
  223. package/lib/host/proactive/notice-pump.js +1 -1
  224. package/lib/host/proactive/notification-bridge.js +1 -1
  225. package/lib/host/proactive/read-query.js +1 -1
  226. package/lib/host/proactive/remote.d.ts +166 -0
  227. package/lib/host/proactive/remote.js +1 -1
  228. package/lib/host/proactive/repair.js +1 -1
  229. package/lib/host/proactive/result-journal.js +1 -1
  230. package/lib/host/proactive/service.d.ts +1711 -51
  231. package/lib/host/proactive/service.js +1 -1
  232. package/lib/host/proactive/setup.js +1 -1
  233. package/lib/host/proactive/sources/ci-feed.js +1 -1
  234. package/lib/host/proactive/sources/ci.js +1 -1
  235. package/lib/host/proactive/sources/github-ci.js +1 -1
  236. package/lib/host/proactive/task-cost.js +1 -1
  237. package/lib/host/proactive/wire.js +1 -1
  238. package/lib/host/proactive/work-continuation.js +1 -1
  239. package/lib/host/proactive/workspace-process.js +1 -1
  240. package/lib/host/proactive/workspace-repair.js +1 -1
  241. package/lib/host/reference-memory/backend.js +1 -1
  242. package/lib/host/reference-memory/cleanup-files.js +1 -1
  243. package/lib/host/reference-memory/copies.js +1 -1
  244. package/lib/host/reference-memory/files.js +1 -1
  245. package/lib/host/reference-memory/model.js +1 -1
  246. package/lib/host/reference-memory/service.js +1 -1
  247. package/lib/host/reference-memory/writer.js +1 -1
  248. package/lib/host/registry/identity.js +1 -1
  249. package/lib/host/registry/lifecycle.d.ts +2 -1
  250. package/lib/host/registry/lifecycle.js +1 -1
  251. package/lib/host/registry/mutations.js +1 -1
  252. package/lib/host/registry/presets.js +1 -1
  253. package/lib/host/registry/types.js +1 -1
  254. package/lib/host/registry-config.d.ts +4 -1
  255. package/lib/host/registry-config.js +3 -1
  256. package/lib/host/registry-config.js.map +1 -1
  257. package/lib/host/registry.d.ts +3 -0
  258. package/lib/host/registry.js +2 -1
  259. package/lib/host/registry.js.map +1 -1
  260. package/lib/host/shadow/budget.js +1 -1
  261. package/lib/host/shadow/config.js +1 -1
  262. package/lib/host/shadow/notification-adapter.js +1 -1
  263. package/lib/host/shadow/planner.js +1 -1
  264. package/lib/host/shadow/schedule-adapter.js +1 -1
  265. package/lib/host/shadow/service.js +1 -1
  266. package/lib/host/store.js +1 -1
  267. package/lib/host/stores/activity.js +1 -1
  268. package/lib/host/stores/bots.js +1 -1
  269. package/lib/host/stores/domain.js +1 -1
  270. package/lib/host/stores/memory.js +1 -1
  271. package/lib/host/supergroup/collaboration.d.ts +99 -0
  272. package/lib/host/supergroup/collaboration.js +361 -0
  273. package/lib/host/supergroup/collaboration.js.map +1 -0
  274. package/lib/host/supergroup/config.d.ts +15 -0
  275. package/lib/host/supergroup/config.js +33 -0
  276. package/lib/host/supergroup/config.js.map +1 -0
  277. package/lib/host/supergroup/input-capability.d.ts +4 -0
  278. package/lib/host/supergroup/input-capability.js +21 -0
  279. package/lib/host/supergroup/input-capability.js.map +1 -0
  280. package/lib/host/supergroup/remote.d.ts +1944 -0
  281. package/lib/host/supergroup/remote.js +123 -0
  282. package/lib/host/supergroup/remote.js.map +1 -0
  283. package/lib/host/supergroup/service.d.ts +935 -0
  284. package/lib/host/supergroup/service.js +921 -0
  285. package/lib/host/supergroup/service.js.map +1 -0
  286. package/lib/host/supergroup/task-support.d.ts +245 -0
  287. package/lib/host/supergroup/task-support.js +310 -0
  288. package/lib/host/supergroup/task-support.js.map +1 -0
  289. package/lib/host/supergroup/tool.d.ts +4 -0
  290. package/lib/host/supergroup/tool.js +74 -0
  291. package/lib/host/supergroup/tool.js.map +1 -0
  292. package/lib/host/tools/bot-manage.js +7 -3
  293. package/lib/host/tools/bot-manage.js.map +1 -1
  294. package/lib/host/workspace/remote.js +1 -1
  295. package/lib/host/workspace/service.js +1 -1
  296. package/lib/index.d.ts +1 -1
  297. package/lib/index.js +1 -1
  298. package/lib/module-manifest.json +274 -258
  299. package/lib/proactive-coordinator/main.mjs +176 -9
  300. package/lib/proactive-coordinator/provenance.json +1 -1
  301. package/lib/shared/activity-preview.js +1 -1
  302. package/lib/shared/activity.js +1 -1
  303. package/lib/shared/automation-contract.js +1 -1
  304. package/lib/shared/automation.js +1 -1
  305. package/lib/shared/bot-brand.js +1 -1
  306. package/lib/shared/capabilities-contract.js +1 -1
  307. package/lib/shared/collaboration-contract.js +1 -1
  308. package/lib/shared/collaboration.js +1 -1
  309. package/lib/shared/connectors.js +1 -1
  310. package/lib/shared/data-flow.js +1 -1
  311. package/lib/shared/eval-budget.js +1 -1
  312. package/lib/shared/group-recall-reads.js +1 -1
  313. package/lib/shared/group-recall.js +1 -1
  314. package/lib/shared/groups-contract.d.ts +1777 -0
  315. package/lib/shared/groups-contract.js +9 -1
  316. package/lib/shared/groups-contract.js.map +1 -1
  317. package/lib/shared/groups.d.ts +161 -0
  318. package/lib/shared/groups.js +18 -1
  319. package/lib/shared/groups.js.map +1 -1
  320. package/lib/shared/identity.js +1 -1
  321. package/lib/shared/ids.js +1 -1
  322. package/lib/shared/integrations-contract.js +1 -1
  323. package/lib/shared/integrations.js +1 -1
  324. package/lib/shared/managed-flow.js +1 -1
  325. package/lib/shared/memory-forget.js +1 -1
  326. package/lib/shared/memory-management.d.ts +426 -0
  327. package/lib/shared/memory-management.js +9 -1
  328. package/lib/shared/memory-management.js.map +1 -1
  329. package/lib/shared/memory-ops.js +1 -1
  330. package/lib/shared/memory-tool-names.js +1 -1
  331. package/lib/shared/memory-v2.js +1 -1
  332. package/lib/shared/messaging-contract.d.ts +1 -1
  333. package/lib/shared/messaging-contract.js +1 -1
  334. package/lib/shared/messaging.d.ts +21 -10
  335. package/lib/shared/messaging.js +3 -1
  336. package/lib/shared/messaging.js.map +1 -1
  337. package/lib/shared/native-schedule.js +1 -1
  338. package/lib/shared/notifications.js +1 -1
  339. package/lib/shared/onboarding-source.js +1 -1
  340. package/lib/shared/onboarding.js +1 -1
  341. package/lib/shared/operation-errors.d.ts +3 -0
  342. package/lib/shared/operation-errors.js +4 -1
  343. package/lib/shared/operation-errors.js.map +1 -1
  344. package/lib/shared/proactive/activity.js +1 -1
  345. package/lib/shared/proactive/document.js +1 -1
  346. package/lib/shared/proactive/feedback.js +1 -1
  347. package/lib/shared/proactive/follow-up.d.ts +460 -0
  348. package/lib/shared/proactive/follow-up.js +15 -1
  349. package/lib/shared/proactive/follow-up.js.map +1 -1
  350. package/lib/shared/proactive/governance.js +1 -1
  351. package/lib/shared/proactive/group-follow-up.js +1 -1
  352. package/lib/shared/proactive/group-repair.js +1 -1
  353. package/lib/shared/proactive/handoff.js +1 -1
  354. package/lib/shared/proactive/method-evaluation.js +1 -1
  355. package/lib/shared/proactive/method-package.js +1 -1
  356. package/lib/shared/proactive/notices.js +1 -1
  357. package/lib/shared/proactive/outcomes.js +1 -1
  358. package/lib/shared/proactive/protocol.d.ts +627 -0
  359. package/lib/shared/proactive/protocol.js +1 -1
  360. package/lib/shared/proactive/remote-contract.d.ts +792 -0
  361. package/lib/shared/proactive/remote-contract.js +1 -1
  362. package/lib/shared/proactive/repair.js +1 -1
  363. package/lib/shared/proactive/responsibility.js +1 -1
  364. package/lib/shared/proactive/setup.d.ts +83 -0
  365. package/lib/shared/proactive/setup.js +1 -1
  366. package/lib/shared/proactive/work-progress.js +1 -1
  367. package/lib/shared/proactive/work.js +1 -1
  368. package/lib/shared/proactive/workspace-repair.js +1 -1
  369. package/lib/shared/reference-memory.js +1 -1
  370. package/lib/shared/remote-contract.d.ts +531 -8
  371. package/lib/shared/remote-contract.js +10 -2
  372. package/lib/shared/remote-contract.js.map +1 -1
  373. package/lib/shared/routine-outcomes.js +1 -1
  374. package/lib/shared/schema.js +1 -1
  375. package/lib/shared/secrets.js +1 -1
  376. package/lib/shared/shadow.js +1 -1
  377. package/lib/shared/supergroup-contract.d.ts +7119 -0
  378. package/lib/shared/supergroup-contract.js +26 -0
  379. package/lib/shared/supergroup-contract.js.map +1 -0
  380. package/lib/shared/supergroup.d.ts +1441 -0
  381. package/lib/shared/supergroup.js +56 -0
  382. package/lib/shared/supergroup.js.map +1 -0
  383. package/lib/shared/task-materials.d.ts +166 -0
  384. package/lib/shared/task-materials.js +40 -0
  385. package/lib/shared/task-materials.js.map +1 -0
  386. package/lib/shared/team-recipes.d.ts +109 -0
  387. package/lib/shared/team-recipes.js +25 -0
  388. package/lib/shared/team-recipes.js.map +1 -0
  389. package/lib/shared/version.d.ts +1 -1
  390. package/lib/shared/version.js +2 -2
  391. package/lib/shared/workspace-contract.js +1 -1
  392. package/lib/shared/workspace.js +1 -1
  393. package/lib/typert.host.js +1 -1
  394. package/lib/typert.remote-client.js +1 -1
  395. package/locale/en.json +239 -7
  396. package/locale/zh.json +239 -7
  397. package/package.json +2 -1
@@ -2625,6 +2625,48 @@ export declare const followUpWatchRequest: z.ZodObject<{
2625
2625
  request: z.ZodString;
2626
2626
  deadlineAt: z.ZodOptional<z.ZodISODateTime>;
2627
2627
  }, z.core.$strict>>;
2628
+ when: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2629
+ kind: z.ZodLiteral<"subtask-completed">;
2630
+ cardId: z.ZodString;
2631
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
2632
+ kind: z.ZodLiteral<"work">;
2633
+ ticketId: z.ZodString;
2634
+ assignmentId: z.ZodString;
2635
+ }, z.core.$strict>, z.ZodObject<{
2636
+ kind: z.ZodLiteral<"delegate">;
2637
+ runId: z.ZodString;
2638
+ sessionId: z.ZodOptional<z.ZodString>;
2639
+ }, z.core.$strict>, z.ZodObject<{
2640
+ kind: z.ZodLiteral<"native-subagent">;
2641
+ sessionId: z.ZodString;
2642
+ childSessionId: z.ZodString;
2643
+ turn: z.ZodNumber;
2644
+ }, z.core.$strict>, z.ZodObject<{
2645
+ kind: z.ZodLiteral<"team-task">;
2646
+ teamId: z.ZodString;
2647
+ taskId: z.ZodString;
2648
+ sessionId: z.ZodOptional<z.ZodString>;
2649
+ }, z.core.$strict>, z.ZodObject<{
2650
+ kind: z.ZodLiteral<"group-turn">;
2651
+ turnId: z.ZodString;
2652
+ }, z.core.$strict>], "kind">;
2653
+ sourceGeneration: z.ZodNumber;
2654
+ afterRevision: z.ZodNumber;
2655
+ }, z.core.$strict>, z.ZodObject<{
2656
+ kind: z.ZodLiteral<"ci-completed">;
2657
+ cardId: z.ZodString;
2658
+ origin: z.ZodObject<{
2659
+ kind: z.ZodLiteral<"work">;
2660
+ ticketId: z.ZodString;
2661
+ assignmentId: z.ZodString;
2662
+ }, z.core.$strict>;
2663
+ sourceId: z.ZodString;
2664
+ sourceGeneration: z.ZodNumber;
2665
+ threadId: z.ZodString;
2666
+ afterAttempt: z.ZodNumber;
2667
+ afterObservedAt: z.ZodISODateTime;
2668
+ }, z.core.$strict>], "kind">>;
2669
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
2628
2670
  }, z.core.$strict>;
2629
2671
  commandId: z.ZodUUID;
2630
2672
  }, z.core.$strict>;
@@ -2981,6 +3023,89 @@ declare const spec: {
2981
3023
  open: "open";
2982
3024
  ignored: "ignored";
2983
3025
  }>;
3026
+ completionTarget: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3027
+ kind: z.ZodLiteral<"subtask-completed">;
3028
+ cardId: z.ZodString;
3029
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
3030
+ kind: z.ZodLiteral<"work">;
3031
+ ticketId: z.ZodString;
3032
+ assignmentId: z.ZodString;
3033
+ }, z.core.$strict>, z.ZodObject<{
3034
+ kind: z.ZodLiteral<"delegate">;
3035
+ runId: z.ZodString;
3036
+ sessionId: z.ZodOptional<z.ZodString>;
3037
+ }, z.core.$strict>, z.ZodObject<{
3038
+ kind: z.ZodLiteral<"native-subagent">;
3039
+ sessionId: z.ZodString;
3040
+ childSessionId: z.ZodString;
3041
+ turn: z.ZodNumber;
3042
+ }, z.core.$strict>, z.ZodObject<{
3043
+ kind: z.ZodLiteral<"team-task">;
3044
+ teamId: z.ZodString;
3045
+ taskId: z.ZodString;
3046
+ sessionId: z.ZodOptional<z.ZodString>;
3047
+ }, z.core.$strict>, z.ZodObject<{
3048
+ kind: z.ZodLiteral<"group-turn">;
3049
+ turnId: z.ZodString;
3050
+ }, z.core.$strict>], "kind">;
3051
+ sourceGeneration: z.ZodNumber;
3052
+ afterRevision: z.ZodNumber;
3053
+ }, z.core.$strict>, z.ZodObject<{
3054
+ kind: z.ZodLiteral<"ci-completed">;
3055
+ cardId: z.ZodString;
3056
+ origin: z.ZodObject<{
3057
+ kind: z.ZodLiteral<"work">;
3058
+ ticketId: z.ZodString;
3059
+ assignmentId: z.ZodString;
3060
+ }, z.core.$strict>;
3061
+ sourceId: z.ZodString;
3062
+ sourceGeneration: z.ZodNumber;
3063
+ threadId: z.ZodString;
3064
+ afterAttempt: z.ZodNumber;
3065
+ afterObservedAt: z.ZodISODateTime;
3066
+ }, z.core.$strict>], "kind">>;
3067
+ when: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3068
+ kind: z.ZodLiteral<"subtask-completed">;
3069
+ cardId: z.ZodString;
3070
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
3071
+ kind: z.ZodLiteral<"work">;
3072
+ ticketId: z.ZodString;
3073
+ assignmentId: z.ZodString;
3074
+ }, z.core.$strict>, z.ZodObject<{
3075
+ kind: z.ZodLiteral<"delegate">;
3076
+ runId: z.ZodString;
3077
+ sessionId: z.ZodOptional<z.ZodString>;
3078
+ }, z.core.$strict>, z.ZodObject<{
3079
+ kind: z.ZodLiteral<"native-subagent">;
3080
+ sessionId: z.ZodString;
3081
+ childSessionId: z.ZodString;
3082
+ turn: z.ZodNumber;
3083
+ }, z.core.$strict>, z.ZodObject<{
3084
+ kind: z.ZodLiteral<"team-task">;
3085
+ teamId: z.ZodString;
3086
+ taskId: z.ZodString;
3087
+ sessionId: z.ZodOptional<z.ZodString>;
3088
+ }, z.core.$strict>, z.ZodObject<{
3089
+ kind: z.ZodLiteral<"group-turn">;
3090
+ turnId: z.ZodString;
3091
+ }, z.core.$strict>], "kind">;
3092
+ sourceGeneration: z.ZodNumber;
3093
+ afterRevision: z.ZodNumber;
3094
+ }, z.core.$strict>, z.ZodObject<{
3095
+ kind: z.ZodLiteral<"ci-completed">;
3096
+ cardId: z.ZodString;
3097
+ origin: z.ZodObject<{
3098
+ kind: z.ZodLiteral<"work">;
3099
+ ticketId: z.ZodString;
3100
+ assignmentId: z.ZodString;
3101
+ }, z.core.$strict>;
3102
+ sourceId: z.ZodString;
3103
+ sourceGeneration: z.ZodNumber;
3104
+ threadId: z.ZodString;
3105
+ afterAttempt: z.ZodNumber;
3106
+ afterObservedAt: z.ZodISODateTime;
3107
+ }, z.core.$strict>], "kind">>;
3108
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
2984
3109
  }, z.core.$strict>>;
2985
3110
  }, z.core.$strict>;
2986
3111
  }, z.core.$strict>], "state">;
@@ -3093,6 +3218,89 @@ declare const spec: {
3093
3218
  reason: "completed" | "cancelled" | "resolved";
3094
3219
  };
3095
3220
  state: "closed" | "stopped" | "open" | "ignored";
3221
+ completionTarget?: {
3222
+ kind: "subtask-completed";
3223
+ cardId: string;
3224
+ origin: {
3225
+ kind: "work";
3226
+ ticketId: string;
3227
+ assignmentId: string;
3228
+ } | {
3229
+ kind: "delegate";
3230
+ runId: string;
3231
+ sessionId?: string | undefined;
3232
+ } | {
3233
+ kind: "native-subagent";
3234
+ sessionId: string;
3235
+ childSessionId: string;
3236
+ turn: number;
3237
+ } | {
3238
+ kind: "team-task";
3239
+ teamId: string;
3240
+ taskId: string;
3241
+ sessionId?: string | undefined;
3242
+ } | {
3243
+ kind: "group-turn";
3244
+ turnId: string;
3245
+ };
3246
+ sourceGeneration: number;
3247
+ afterRevision: number;
3248
+ } | {
3249
+ kind: "ci-completed";
3250
+ cardId: string;
3251
+ origin: {
3252
+ kind: "work";
3253
+ ticketId: string;
3254
+ assignmentId: string;
3255
+ };
3256
+ sourceId: string;
3257
+ sourceGeneration: number;
3258
+ threadId: string;
3259
+ afterAttempt: number;
3260
+ afterObservedAt: string;
3261
+ } | undefined;
3262
+ when?: {
3263
+ kind: "subtask-completed";
3264
+ cardId: string;
3265
+ origin: {
3266
+ kind: "work";
3267
+ ticketId: string;
3268
+ assignmentId: string;
3269
+ } | {
3270
+ kind: "delegate";
3271
+ runId: string;
3272
+ sessionId?: string | undefined;
3273
+ } | {
3274
+ kind: "native-subagent";
3275
+ sessionId: string;
3276
+ childSessionId: string;
3277
+ turn: number;
3278
+ } | {
3279
+ kind: "team-task";
3280
+ teamId: string;
3281
+ taskId: string;
3282
+ sessionId?: string | undefined;
3283
+ } | {
3284
+ kind: "group-turn";
3285
+ turnId: string;
3286
+ };
3287
+ sourceGeneration: number;
3288
+ afterRevision: number;
3289
+ } | {
3290
+ kind: "ci-completed";
3291
+ cardId: string;
3292
+ origin: {
3293
+ kind: "work";
3294
+ ticketId: string;
3295
+ assignmentId: string;
3296
+ };
3297
+ sourceId: string;
3298
+ sourceGeneration: number;
3299
+ threadId: string;
3300
+ afterAttempt: number;
3301
+ afterObservedAt: string;
3302
+ } | undefined;
3303
+ deadlineAt?: string | undefined;
3096
3304
  }[];
3097
3305
  };
3098
3306
  };
@@ -3205,6 +3413,89 @@ declare const spec: {
3205
3413
  reason: "completed" | "cancelled" | "resolved";
3206
3414
  };
3207
3415
  state: "closed" | "stopped" | "open" | "ignored";
3416
+ completionTarget?: {
3417
+ kind: "subtask-completed";
3418
+ cardId: string;
3419
+ origin: {
3420
+ kind: "work";
3421
+ ticketId: string;
3422
+ assignmentId: string;
3423
+ } | {
3424
+ kind: "delegate";
3425
+ runId: string;
3426
+ sessionId?: string | undefined;
3427
+ } | {
3428
+ kind: "native-subagent";
3429
+ sessionId: string;
3430
+ childSessionId: string;
3431
+ turn: number;
3432
+ } | {
3433
+ kind: "team-task";
3434
+ teamId: string;
3435
+ taskId: string;
3436
+ sessionId?: string | undefined;
3437
+ } | {
3438
+ kind: "group-turn";
3439
+ turnId: string;
3440
+ };
3441
+ sourceGeneration: number;
3442
+ afterRevision: number;
3443
+ } | {
3444
+ kind: "ci-completed";
3445
+ cardId: string;
3446
+ origin: {
3447
+ kind: "work";
3448
+ ticketId: string;
3449
+ assignmentId: string;
3450
+ };
3451
+ sourceId: string;
3452
+ sourceGeneration: number;
3453
+ threadId: string;
3454
+ afterAttempt: number;
3455
+ afterObservedAt: string;
3456
+ } | undefined;
3457
+ when?: {
3458
+ kind: "subtask-completed";
3459
+ cardId: string;
3460
+ origin: {
3461
+ kind: "work";
3462
+ ticketId: string;
3463
+ assignmentId: string;
3464
+ } | {
3465
+ kind: "delegate";
3466
+ runId: string;
3467
+ sessionId?: string | undefined;
3468
+ } | {
3469
+ kind: "native-subagent";
3470
+ sessionId: string;
3471
+ childSessionId: string;
3472
+ turn: number;
3473
+ } | {
3474
+ kind: "team-task";
3475
+ teamId: string;
3476
+ taskId: string;
3477
+ sessionId?: string | undefined;
3478
+ } | {
3479
+ kind: "group-turn";
3480
+ turnId: string;
3481
+ };
3482
+ sourceGeneration: number;
3483
+ afterRevision: number;
3484
+ } | {
3485
+ kind: "ci-completed";
3486
+ cardId: string;
3487
+ origin: {
3488
+ kind: "work";
3489
+ ticketId: string;
3490
+ assignmentId: string;
3491
+ };
3492
+ sourceId: string;
3493
+ sourceGeneration: number;
3494
+ threadId: string;
3495
+ afterAttempt: number;
3496
+ afterObservedAt: string;
3497
+ } | undefined;
3498
+ deadlineAt?: string | undefined;
3208
3499
  }[];
3209
3500
  };
3210
3501
  };
@@ -3395,6 +3686,89 @@ declare const spec: {
3395
3686
  open: "open";
3396
3687
  ignored: "ignored";
3397
3688
  }>;
3689
+ completionTarget: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3690
+ kind: z.ZodLiteral<"subtask-completed">;
3691
+ cardId: z.ZodString;
3692
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
3693
+ kind: z.ZodLiteral<"work">;
3694
+ ticketId: z.ZodString;
3695
+ assignmentId: z.ZodString;
3696
+ }, z.core.$strict>, z.ZodObject<{
3697
+ kind: z.ZodLiteral<"delegate">;
3698
+ runId: z.ZodString;
3699
+ sessionId: z.ZodOptional<z.ZodString>;
3700
+ }, z.core.$strict>, z.ZodObject<{
3701
+ kind: z.ZodLiteral<"native-subagent">;
3702
+ sessionId: z.ZodString;
3703
+ childSessionId: z.ZodString;
3704
+ turn: z.ZodNumber;
3705
+ }, z.core.$strict>, z.ZodObject<{
3706
+ kind: z.ZodLiteral<"team-task">;
3707
+ teamId: z.ZodString;
3708
+ taskId: z.ZodString;
3709
+ sessionId: z.ZodOptional<z.ZodString>;
3710
+ }, z.core.$strict>, z.ZodObject<{
3711
+ kind: z.ZodLiteral<"group-turn">;
3712
+ turnId: z.ZodString;
3713
+ }, z.core.$strict>], "kind">;
3714
+ sourceGeneration: z.ZodNumber;
3715
+ afterRevision: z.ZodNumber;
3716
+ }, z.core.$strict>, z.ZodObject<{
3717
+ kind: z.ZodLiteral<"ci-completed">;
3718
+ cardId: z.ZodString;
3719
+ origin: z.ZodObject<{
3720
+ kind: z.ZodLiteral<"work">;
3721
+ ticketId: z.ZodString;
3722
+ assignmentId: z.ZodString;
3723
+ }, z.core.$strict>;
3724
+ sourceId: z.ZodString;
3725
+ sourceGeneration: z.ZodNumber;
3726
+ threadId: z.ZodString;
3727
+ afterAttempt: z.ZodNumber;
3728
+ afterObservedAt: z.ZodISODateTime;
3729
+ }, z.core.$strict>], "kind">>;
3730
+ when: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3731
+ kind: z.ZodLiteral<"subtask-completed">;
3732
+ cardId: z.ZodString;
3733
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
3734
+ kind: z.ZodLiteral<"work">;
3735
+ ticketId: z.ZodString;
3736
+ assignmentId: z.ZodString;
3737
+ }, z.core.$strict>, z.ZodObject<{
3738
+ kind: z.ZodLiteral<"delegate">;
3739
+ runId: z.ZodString;
3740
+ sessionId: z.ZodOptional<z.ZodString>;
3741
+ }, z.core.$strict>, z.ZodObject<{
3742
+ kind: z.ZodLiteral<"native-subagent">;
3743
+ sessionId: z.ZodString;
3744
+ childSessionId: z.ZodString;
3745
+ turn: z.ZodNumber;
3746
+ }, z.core.$strict>, z.ZodObject<{
3747
+ kind: z.ZodLiteral<"team-task">;
3748
+ teamId: z.ZodString;
3749
+ taskId: z.ZodString;
3750
+ sessionId: z.ZodOptional<z.ZodString>;
3751
+ }, z.core.$strict>, z.ZodObject<{
3752
+ kind: z.ZodLiteral<"group-turn">;
3753
+ turnId: z.ZodString;
3754
+ }, z.core.$strict>], "kind">;
3755
+ sourceGeneration: z.ZodNumber;
3756
+ afterRevision: z.ZodNumber;
3757
+ }, z.core.$strict>, z.ZodObject<{
3758
+ kind: z.ZodLiteral<"ci-completed">;
3759
+ cardId: z.ZodString;
3760
+ origin: z.ZodObject<{
3761
+ kind: z.ZodLiteral<"work">;
3762
+ ticketId: z.ZodString;
3763
+ assignmentId: z.ZodString;
3764
+ }, z.core.$strict>;
3765
+ sourceId: z.ZodString;
3766
+ sourceGeneration: z.ZodNumber;
3767
+ threadId: z.ZodString;
3768
+ afterAttempt: z.ZodNumber;
3769
+ afterObservedAt: z.ZodISODateTime;
3770
+ }, z.core.$strict>], "kind">>;
3771
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
3398
3772
  }, z.core.$strict>>;
3399
3773
  next: z.ZodOptional<z.ZodString>;
3400
3774
  }, z.core.$strict>;
@@ -3476,6 +3850,89 @@ declare const spec: {
3476
3850
  reason: "completed" | "cancelled" | "resolved";
3477
3851
  };
3478
3852
  state: "closed" | "stopped" | "open" | "ignored";
3853
+ completionTarget?: {
3854
+ kind: "subtask-completed";
3855
+ cardId: string;
3856
+ origin: {
3857
+ kind: "work";
3858
+ ticketId: string;
3859
+ assignmentId: string;
3860
+ } | {
3861
+ kind: "delegate";
3862
+ runId: string;
3863
+ sessionId?: string | undefined;
3864
+ } | {
3865
+ kind: "native-subagent";
3866
+ sessionId: string;
3867
+ childSessionId: string;
3868
+ turn: number;
3869
+ } | {
3870
+ kind: "team-task";
3871
+ teamId: string;
3872
+ taskId: string;
3873
+ sessionId?: string | undefined;
3874
+ } | {
3875
+ kind: "group-turn";
3876
+ turnId: string;
3877
+ };
3878
+ sourceGeneration: number;
3879
+ afterRevision: number;
3880
+ } | {
3881
+ kind: "ci-completed";
3882
+ cardId: string;
3883
+ origin: {
3884
+ kind: "work";
3885
+ ticketId: string;
3886
+ assignmentId: string;
3887
+ };
3888
+ sourceId: string;
3889
+ sourceGeneration: number;
3890
+ threadId: string;
3891
+ afterAttempt: number;
3892
+ afterObservedAt: string;
3893
+ } | undefined;
3894
+ when?: {
3895
+ kind: "subtask-completed";
3896
+ cardId: string;
3897
+ origin: {
3898
+ kind: "work";
3899
+ ticketId: string;
3900
+ assignmentId: string;
3901
+ } | {
3902
+ kind: "delegate";
3903
+ runId: string;
3904
+ sessionId?: string | undefined;
3905
+ } | {
3906
+ kind: "native-subagent";
3907
+ sessionId: string;
3908
+ childSessionId: string;
3909
+ turn: number;
3910
+ } | {
3911
+ kind: "team-task";
3912
+ teamId: string;
3913
+ taskId: string;
3914
+ sessionId?: string | undefined;
3915
+ } | {
3916
+ kind: "group-turn";
3917
+ turnId: string;
3918
+ };
3919
+ sourceGeneration: number;
3920
+ afterRevision: number;
3921
+ } | {
3922
+ kind: "ci-completed";
3923
+ cardId: string;
3924
+ origin: {
3925
+ kind: "work";
3926
+ ticketId: string;
3927
+ assignmentId: string;
3928
+ };
3929
+ sourceId: string;
3930
+ sourceGeneration: number;
3931
+ threadId: string;
3932
+ afterAttempt: number;
3933
+ afterObservedAt: string;
3934
+ } | undefined;
3935
+ deadlineAt?: string | undefined;
3479
3936
  }[];
3480
3937
  next?: string | undefined;
3481
3938
  };
@@ -3557,6 +4014,89 @@ declare const spec: {
3557
4014
  reason: "completed" | "cancelled" | "resolved";
3558
4015
  };
3559
4016
  state: "closed" | "stopped" | "open" | "ignored";
4017
+ completionTarget?: {
4018
+ kind: "subtask-completed";
4019
+ cardId: string;
4020
+ origin: {
4021
+ kind: "work";
4022
+ ticketId: string;
4023
+ assignmentId: string;
4024
+ } | {
4025
+ kind: "delegate";
4026
+ runId: string;
4027
+ sessionId?: string | undefined;
4028
+ } | {
4029
+ kind: "native-subagent";
4030
+ sessionId: string;
4031
+ childSessionId: string;
4032
+ turn: number;
4033
+ } | {
4034
+ kind: "team-task";
4035
+ teamId: string;
4036
+ taskId: string;
4037
+ sessionId?: string | undefined;
4038
+ } | {
4039
+ kind: "group-turn";
4040
+ turnId: string;
4041
+ };
4042
+ sourceGeneration: number;
4043
+ afterRevision: number;
4044
+ } | {
4045
+ kind: "ci-completed";
4046
+ cardId: string;
4047
+ origin: {
4048
+ kind: "work";
4049
+ ticketId: string;
4050
+ assignmentId: string;
4051
+ };
4052
+ sourceId: string;
4053
+ sourceGeneration: number;
4054
+ threadId: string;
4055
+ afterAttempt: number;
4056
+ afterObservedAt: string;
4057
+ } | undefined;
4058
+ when?: {
4059
+ kind: "subtask-completed";
4060
+ cardId: string;
4061
+ origin: {
4062
+ kind: "work";
4063
+ ticketId: string;
4064
+ assignmentId: string;
4065
+ } | {
4066
+ kind: "delegate";
4067
+ runId: string;
4068
+ sessionId?: string | undefined;
4069
+ } | {
4070
+ kind: "native-subagent";
4071
+ sessionId: string;
4072
+ childSessionId: string;
4073
+ turn: number;
4074
+ } | {
4075
+ kind: "team-task";
4076
+ teamId: string;
4077
+ taskId: string;
4078
+ sessionId?: string | undefined;
4079
+ } | {
4080
+ kind: "group-turn";
4081
+ turnId: string;
4082
+ };
4083
+ sourceGeneration: number;
4084
+ afterRevision: number;
4085
+ } | {
4086
+ kind: "ci-completed";
4087
+ cardId: string;
4088
+ origin: {
4089
+ kind: "work";
4090
+ ticketId: string;
4091
+ assignmentId: string;
4092
+ };
4093
+ sourceId: string;
4094
+ sourceGeneration: number;
4095
+ threadId: string;
4096
+ afterAttempt: number;
4097
+ afterObservedAt: string;
4098
+ } | undefined;
4099
+ deadlineAt?: string | undefined;
3560
4100
  }[];
3561
4101
  next?: string | undefined;
3562
4102
  };
@@ -3979,6 +4519,48 @@ declare const spec: {
3979
4519
  request: z.ZodString;
3980
4520
  deadlineAt: z.ZodOptional<z.ZodISODateTime>;
3981
4521
  }, z.core.$strict>>;
4522
+ when: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4523
+ kind: z.ZodLiteral<"subtask-completed">;
4524
+ cardId: z.ZodString;
4525
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
4526
+ kind: z.ZodLiteral<"work">;
4527
+ ticketId: z.ZodString;
4528
+ assignmentId: z.ZodString;
4529
+ }, z.core.$strict>, z.ZodObject<{
4530
+ kind: z.ZodLiteral<"delegate">;
4531
+ runId: z.ZodString;
4532
+ sessionId: z.ZodOptional<z.ZodString>;
4533
+ }, z.core.$strict>, z.ZodObject<{
4534
+ kind: z.ZodLiteral<"native-subagent">;
4535
+ sessionId: z.ZodString;
4536
+ childSessionId: z.ZodString;
4537
+ turn: z.ZodNumber;
4538
+ }, z.core.$strict>, z.ZodObject<{
4539
+ kind: z.ZodLiteral<"team-task">;
4540
+ teamId: z.ZodString;
4541
+ taskId: z.ZodString;
4542
+ sessionId: z.ZodOptional<z.ZodString>;
4543
+ }, z.core.$strict>, z.ZodObject<{
4544
+ kind: z.ZodLiteral<"group-turn">;
4545
+ turnId: z.ZodString;
4546
+ }, z.core.$strict>], "kind">;
4547
+ sourceGeneration: z.ZodNumber;
4548
+ afterRevision: z.ZodNumber;
4549
+ }, z.core.$strict>, z.ZodObject<{
4550
+ kind: z.ZodLiteral<"ci-completed">;
4551
+ cardId: z.ZodString;
4552
+ origin: z.ZodObject<{
4553
+ kind: z.ZodLiteral<"work">;
4554
+ ticketId: z.ZodString;
4555
+ assignmentId: z.ZodString;
4556
+ }, z.core.$strict>;
4557
+ sourceId: z.ZodString;
4558
+ sourceGeneration: z.ZodNumber;
4559
+ threadId: z.ZodString;
4560
+ afterAttempt: z.ZodNumber;
4561
+ afterObservedAt: z.ZodISODateTime;
4562
+ }, z.core.$strict>], "kind">>;
4563
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
3982
4564
  }, z.core.$strict>;
3983
4565
  commandId: z.ZodUUID;
3984
4566
  }, z.core.$strict>;
@@ -4014,6 +4596,48 @@ declare const spec: {
4014
4596
  request: string;
4015
4597
  deadlineAt?: string | undefined;
4016
4598
  } | undefined;
4599
+ when?: {
4600
+ kind: "subtask-completed";
4601
+ cardId: string;
4602
+ origin: {
4603
+ kind: "work";
4604
+ ticketId: string;
4605
+ assignmentId: string;
4606
+ } | {
4607
+ kind: "delegate";
4608
+ runId: string;
4609
+ sessionId?: string | undefined;
4610
+ } | {
4611
+ kind: "native-subagent";
4612
+ sessionId: string;
4613
+ childSessionId: string;
4614
+ turn: number;
4615
+ } | {
4616
+ kind: "team-task";
4617
+ teamId: string;
4618
+ taskId: string;
4619
+ sessionId?: string | undefined;
4620
+ } | {
4621
+ kind: "group-turn";
4622
+ turnId: string;
4623
+ };
4624
+ sourceGeneration: number;
4625
+ afterRevision: number;
4626
+ } | {
4627
+ kind: "ci-completed";
4628
+ cardId: string;
4629
+ origin: {
4630
+ kind: "work";
4631
+ ticketId: string;
4632
+ assignmentId: string;
4633
+ };
4634
+ sourceId: string;
4635
+ sourceGeneration: number;
4636
+ threadId: string;
4637
+ afterAttempt: number;
4638
+ afterObservedAt: string;
4639
+ } | undefined;
4640
+ deadlineAt?: string | undefined;
4017
4641
  };
4018
4642
  commandId: string;
4019
4643
  };
@@ -4049,6 +4673,48 @@ declare const spec: {
4049
4673
  request: string;
4050
4674
  deadlineAt?: string | undefined;
4051
4675
  } | undefined;
4676
+ when?: {
4677
+ kind: "subtask-completed";
4678
+ cardId: string;
4679
+ origin: {
4680
+ kind: "work";
4681
+ ticketId: string;
4682
+ assignmentId: string;
4683
+ } | {
4684
+ kind: "delegate";
4685
+ runId: string;
4686
+ sessionId?: string | undefined;
4687
+ } | {
4688
+ kind: "native-subagent";
4689
+ sessionId: string;
4690
+ childSessionId: string;
4691
+ turn: number;
4692
+ } | {
4693
+ kind: "team-task";
4694
+ teamId: string;
4695
+ taskId: string;
4696
+ sessionId?: string | undefined;
4697
+ } | {
4698
+ kind: "group-turn";
4699
+ turnId: string;
4700
+ };
4701
+ sourceGeneration: number;
4702
+ afterRevision: number;
4703
+ } | {
4704
+ kind: "ci-completed";
4705
+ cardId: string;
4706
+ origin: {
4707
+ kind: "work";
4708
+ ticketId: string;
4709
+ assignmentId: string;
4710
+ };
4711
+ sourceId: string;
4712
+ sourceGeneration: number;
4713
+ threadId: string;
4714
+ afterAttempt: number;
4715
+ afterObservedAt: string;
4716
+ } | undefined;
4717
+ deadlineAt?: string | undefined;
4052
4718
  };
4053
4719
  commandId: string;
4054
4720
  };
@@ -4088,6 +4754,48 @@ declare const spec: {
4088
4754
  request: z.ZodString;
4089
4755
  deadlineAt: z.ZodOptional<z.ZodISODateTime>;
4090
4756
  }, z.core.$strict>>;
4757
+ when: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4758
+ kind: z.ZodLiteral<"subtask-completed">;
4759
+ cardId: z.ZodString;
4760
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
4761
+ kind: z.ZodLiteral<"work">;
4762
+ ticketId: z.ZodString;
4763
+ assignmentId: z.ZodString;
4764
+ }, z.core.$strict>, z.ZodObject<{
4765
+ kind: z.ZodLiteral<"delegate">;
4766
+ runId: z.ZodString;
4767
+ sessionId: z.ZodOptional<z.ZodString>;
4768
+ }, z.core.$strict>, z.ZodObject<{
4769
+ kind: z.ZodLiteral<"native-subagent">;
4770
+ sessionId: z.ZodString;
4771
+ childSessionId: z.ZodString;
4772
+ turn: z.ZodNumber;
4773
+ }, z.core.$strict>, z.ZodObject<{
4774
+ kind: z.ZodLiteral<"team-task">;
4775
+ teamId: z.ZodString;
4776
+ taskId: z.ZodString;
4777
+ sessionId: z.ZodOptional<z.ZodString>;
4778
+ }, z.core.$strict>, z.ZodObject<{
4779
+ kind: z.ZodLiteral<"group-turn">;
4780
+ turnId: z.ZodString;
4781
+ }, z.core.$strict>], "kind">;
4782
+ sourceGeneration: z.ZodNumber;
4783
+ afterRevision: z.ZodNumber;
4784
+ }, z.core.$strict>, z.ZodObject<{
4785
+ kind: z.ZodLiteral<"ci-completed">;
4786
+ cardId: z.ZodString;
4787
+ origin: z.ZodObject<{
4788
+ kind: z.ZodLiteral<"work">;
4789
+ ticketId: z.ZodString;
4790
+ assignmentId: z.ZodString;
4791
+ }, z.core.$strict>;
4792
+ sourceId: z.ZodString;
4793
+ sourceGeneration: z.ZodNumber;
4794
+ threadId: z.ZodString;
4795
+ afterAttempt: z.ZodNumber;
4796
+ afterObservedAt: z.ZodISODateTime;
4797
+ }, z.core.$strict>], "kind">>;
4798
+ deadlineAt: z.ZodOptional<z.ZodISODateTime>;
4091
4799
  }, z.core.$strict>;
4092
4800
  commandId: z.ZodUUID;
4093
4801
  }, z.core.$strict>;
@@ -4123,6 +4831,48 @@ declare const spec: {
4123
4831
  request: string;
4124
4832
  deadlineAt?: string | undefined;
4125
4833
  } | undefined;
4834
+ when?: {
4835
+ kind: "subtask-completed";
4836
+ cardId: string;
4837
+ origin: {
4838
+ kind: "work";
4839
+ ticketId: string;
4840
+ assignmentId: string;
4841
+ } | {
4842
+ kind: "delegate";
4843
+ runId: string;
4844
+ sessionId?: string | undefined;
4845
+ } | {
4846
+ kind: "native-subagent";
4847
+ sessionId: string;
4848
+ childSessionId: string;
4849
+ turn: number;
4850
+ } | {
4851
+ kind: "team-task";
4852
+ teamId: string;
4853
+ taskId: string;
4854
+ sessionId?: string | undefined;
4855
+ } | {
4856
+ kind: "group-turn";
4857
+ turnId: string;
4858
+ };
4859
+ sourceGeneration: number;
4860
+ afterRevision: number;
4861
+ } | {
4862
+ kind: "ci-completed";
4863
+ cardId: string;
4864
+ origin: {
4865
+ kind: "work";
4866
+ ticketId: string;
4867
+ assignmentId: string;
4868
+ };
4869
+ sourceId: string;
4870
+ sourceGeneration: number;
4871
+ threadId: string;
4872
+ afterAttempt: number;
4873
+ afterObservedAt: string;
4874
+ } | undefined;
4875
+ deadlineAt?: string | undefined;
4126
4876
  };
4127
4877
  commandId: string;
4128
4878
  };
@@ -4158,6 +4908,48 @@ declare const spec: {
4158
4908
  request: string;
4159
4909
  deadlineAt?: string | undefined;
4160
4910
  } | undefined;
4911
+ when?: {
4912
+ kind: "subtask-completed";
4913
+ cardId: string;
4914
+ origin: {
4915
+ kind: "work";
4916
+ ticketId: string;
4917
+ assignmentId: string;
4918
+ } | {
4919
+ kind: "delegate";
4920
+ runId: string;
4921
+ sessionId?: string | undefined;
4922
+ } | {
4923
+ kind: "native-subagent";
4924
+ sessionId: string;
4925
+ childSessionId: string;
4926
+ turn: number;
4927
+ } | {
4928
+ kind: "team-task";
4929
+ teamId: string;
4930
+ taskId: string;
4931
+ sessionId?: string | undefined;
4932
+ } | {
4933
+ kind: "group-turn";
4934
+ turnId: string;
4935
+ };
4936
+ sourceGeneration: number;
4937
+ afterRevision: number;
4938
+ } | {
4939
+ kind: "ci-completed";
4940
+ cardId: string;
4941
+ origin: {
4942
+ kind: "work";
4943
+ ticketId: string;
4944
+ assignmentId: string;
4945
+ };
4946
+ sourceId: string;
4947
+ sourceGeneration: number;
4948
+ threadId: string;
4949
+ afterAttempt: number;
4950
+ afterObservedAt: string;
4951
+ } | undefined;
4952
+ deadlineAt?: string | undefined;
4161
4953
  };
4162
4954
  commandId: string;
4163
4955
  };