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
@@ -147,6 +147,89 @@ export declare class ProactiveService {
147
147
  reason: "completed" | "cancelled" | "resolved";
148
148
  };
149
149
  state: "closed" | "stopped" | "open" | "ignored";
150
+ completionTarget?: {
151
+ kind: "subtask-completed";
152
+ cardId: string;
153
+ origin: {
154
+ kind: "work";
155
+ ticketId: string;
156
+ assignmentId: string;
157
+ } | {
158
+ kind: "delegate";
159
+ runId: string;
160
+ sessionId?: string | undefined;
161
+ } | {
162
+ kind: "native-subagent";
163
+ sessionId: string;
164
+ childSessionId: string;
165
+ turn: number;
166
+ } | {
167
+ kind: "team-task";
168
+ teamId: string;
169
+ taskId: string;
170
+ sessionId?: string | undefined;
171
+ } | {
172
+ kind: "group-turn";
173
+ turnId: string;
174
+ };
175
+ sourceGeneration: number;
176
+ afterRevision: number;
177
+ } | {
178
+ kind: "ci-completed";
179
+ cardId: string;
180
+ origin: {
181
+ kind: "work";
182
+ ticketId: string;
183
+ assignmentId: string;
184
+ };
185
+ sourceId: string;
186
+ sourceGeneration: number;
187
+ threadId: string;
188
+ afterAttempt: number;
189
+ afterObservedAt: string;
190
+ } | undefined;
191
+ when?: {
192
+ kind: "subtask-completed";
193
+ cardId: string;
194
+ origin: {
195
+ kind: "work";
196
+ ticketId: string;
197
+ assignmentId: string;
198
+ } | {
199
+ kind: "delegate";
200
+ runId: string;
201
+ sessionId?: string | undefined;
202
+ } | {
203
+ kind: "native-subagent";
204
+ sessionId: string;
205
+ childSessionId: string;
206
+ turn: number;
207
+ } | {
208
+ kind: "team-task";
209
+ teamId: string;
210
+ taskId: string;
211
+ sessionId?: string | undefined;
212
+ } | {
213
+ kind: "group-turn";
214
+ turnId: string;
215
+ };
216
+ sourceGeneration: number;
217
+ afterRevision: number;
218
+ } | {
219
+ kind: "ci-completed";
220
+ cardId: string;
221
+ origin: {
222
+ kind: "work";
223
+ ticketId: string;
224
+ assignmentId: string;
225
+ };
226
+ sourceId: string;
227
+ sourceGeneration: number;
228
+ threadId: string;
229
+ afterAttempt: number;
230
+ afterObservedAt: string;
231
+ } | undefined;
232
+ deadlineAt?: string | undefined;
150
233
  }[];
151
234
  };
152
235
  protocolVersion: 1;
@@ -231,6 +314,89 @@ export declare class ProactiveService {
231
314
  reason: "completed" | "cancelled" | "resolved";
232
315
  };
233
316
  state: "closed" | "stopped" | "open" | "ignored";
317
+ completionTarget?: {
318
+ kind: "subtask-completed";
319
+ cardId: string;
320
+ origin: {
321
+ kind: "work";
322
+ ticketId: string;
323
+ assignmentId: string;
324
+ } | {
325
+ kind: "delegate";
326
+ runId: string;
327
+ sessionId?: string | undefined;
328
+ } | {
329
+ kind: "native-subagent";
330
+ sessionId: string;
331
+ childSessionId: string;
332
+ turn: number;
333
+ } | {
334
+ kind: "team-task";
335
+ teamId: string;
336
+ taskId: string;
337
+ sessionId?: string | undefined;
338
+ } | {
339
+ kind: "group-turn";
340
+ turnId: string;
341
+ };
342
+ sourceGeneration: number;
343
+ afterRevision: number;
344
+ } | {
345
+ kind: "ci-completed";
346
+ cardId: string;
347
+ origin: {
348
+ kind: "work";
349
+ ticketId: string;
350
+ assignmentId: string;
351
+ };
352
+ sourceId: string;
353
+ sourceGeneration: number;
354
+ threadId: string;
355
+ afterAttempt: number;
356
+ afterObservedAt: string;
357
+ } | undefined;
358
+ when?: {
359
+ kind: "subtask-completed";
360
+ cardId: string;
361
+ origin: {
362
+ kind: "work";
363
+ ticketId: string;
364
+ assignmentId: string;
365
+ } | {
366
+ kind: "delegate";
367
+ runId: string;
368
+ sessionId?: string | undefined;
369
+ } | {
370
+ kind: "native-subagent";
371
+ sessionId: string;
372
+ childSessionId: string;
373
+ turn: number;
374
+ } | {
375
+ kind: "team-task";
376
+ teamId: string;
377
+ taskId: string;
378
+ sessionId?: string | undefined;
379
+ } | {
380
+ kind: "group-turn";
381
+ turnId: string;
382
+ };
383
+ sourceGeneration: number;
384
+ afterRevision: number;
385
+ } | {
386
+ kind: "ci-completed";
387
+ cardId: string;
388
+ origin: {
389
+ kind: "work";
390
+ ticketId: string;
391
+ assignmentId: string;
392
+ };
393
+ sourceId: string;
394
+ sourceGeneration: number;
395
+ threadId: string;
396
+ afterAttempt: number;
397
+ afterObservedAt: string;
398
+ } | undefined;
399
+ deadlineAt?: string | undefined;
234
400
  }[];
235
401
  next?: string | undefined;
236
402
  };
@@ -352,6 +518,89 @@ export declare class ProactiveService {
352
518
  reason: "completed" | "cancelled" | "resolved";
353
519
  };
354
520
  state: "closed" | "stopped" | "open" | "ignored";
521
+ completionTarget?: {
522
+ kind: "subtask-completed";
523
+ cardId: string;
524
+ origin: {
525
+ kind: "work";
526
+ ticketId: string;
527
+ assignmentId: string;
528
+ } | {
529
+ kind: "delegate";
530
+ runId: string;
531
+ sessionId?: string | undefined;
532
+ } | {
533
+ kind: "native-subagent";
534
+ sessionId: string;
535
+ childSessionId: string;
536
+ turn: number;
537
+ } | {
538
+ kind: "team-task";
539
+ teamId: string;
540
+ taskId: string;
541
+ sessionId?: string | undefined;
542
+ } | {
543
+ kind: "group-turn";
544
+ turnId: string;
545
+ };
546
+ sourceGeneration: number;
547
+ afterRevision: number;
548
+ } | {
549
+ kind: "ci-completed";
550
+ cardId: string;
551
+ origin: {
552
+ kind: "work";
553
+ ticketId: string;
554
+ assignmentId: string;
555
+ };
556
+ sourceId: string;
557
+ sourceGeneration: number;
558
+ threadId: string;
559
+ afterAttempt: number;
560
+ afterObservedAt: string;
561
+ } | undefined;
562
+ when?: {
563
+ kind: "subtask-completed";
564
+ cardId: string;
565
+ origin: {
566
+ kind: "work";
567
+ ticketId: string;
568
+ assignmentId: string;
569
+ } | {
570
+ kind: "delegate";
571
+ runId: string;
572
+ sessionId?: string | undefined;
573
+ } | {
574
+ kind: "native-subagent";
575
+ sessionId: string;
576
+ childSessionId: string;
577
+ turn: number;
578
+ } | {
579
+ kind: "team-task";
580
+ teamId: string;
581
+ taskId: string;
582
+ sessionId?: string | undefined;
583
+ } | {
584
+ kind: "group-turn";
585
+ turnId: string;
586
+ };
587
+ sourceGeneration: number;
588
+ afterRevision: number;
589
+ } | {
590
+ kind: "ci-completed";
591
+ cardId: string;
592
+ origin: {
593
+ kind: "work";
594
+ ticketId: string;
595
+ assignmentId: string;
596
+ };
597
+ sourceId: string;
598
+ sourceGeneration: number;
599
+ threadId: string;
600
+ afterAttempt: number;
601
+ afterObservedAt: string;
602
+ } | undefined;
603
+ deadlineAt?: string | undefined;
355
604
  } | null;
356
605
  activationEpoch: string | null;
357
606
  protocolVersion: 1;
@@ -4754,6 +5003,89 @@ export declare class ProactiveService {
4754
5003
  reason: "completed" | "cancelled" | "resolved";
4755
5004
  };
4756
5005
  state: "closed" | "stopped" | "open" | "ignored";
5006
+ completionTarget?: {
5007
+ kind: "subtask-completed";
5008
+ cardId: string;
5009
+ origin: {
5010
+ kind: "work";
5011
+ ticketId: string;
5012
+ assignmentId: string;
5013
+ } | {
5014
+ kind: "delegate";
5015
+ runId: string;
5016
+ sessionId?: string | undefined;
5017
+ } | {
5018
+ kind: "native-subagent";
5019
+ sessionId: string;
5020
+ childSessionId: string;
5021
+ turn: number;
5022
+ } | {
5023
+ kind: "team-task";
5024
+ teamId: string;
5025
+ taskId: string;
5026
+ sessionId?: string | undefined;
5027
+ } | {
5028
+ kind: "group-turn";
5029
+ turnId: string;
5030
+ };
5031
+ sourceGeneration: number;
5032
+ afterRevision: number;
5033
+ } | {
5034
+ kind: "ci-completed";
5035
+ cardId: string;
5036
+ origin: {
5037
+ kind: "work";
5038
+ ticketId: string;
5039
+ assignmentId: string;
5040
+ };
5041
+ sourceId: string;
5042
+ sourceGeneration: number;
5043
+ threadId: string;
5044
+ afterAttempt: number;
5045
+ afterObservedAt: string;
5046
+ } | undefined;
5047
+ when?: {
5048
+ kind: "subtask-completed";
5049
+ cardId: string;
5050
+ origin: {
5051
+ kind: "work";
5052
+ ticketId: string;
5053
+ assignmentId: string;
5054
+ } | {
5055
+ kind: "delegate";
5056
+ runId: string;
5057
+ sessionId?: string | undefined;
5058
+ } | {
5059
+ kind: "native-subagent";
5060
+ sessionId: string;
5061
+ childSessionId: string;
5062
+ turn: number;
5063
+ } | {
5064
+ kind: "team-task";
5065
+ teamId: string;
5066
+ taskId: string;
5067
+ sessionId?: string | undefined;
5068
+ } | {
5069
+ kind: "group-turn";
5070
+ turnId: string;
5071
+ };
5072
+ sourceGeneration: number;
5073
+ afterRevision: number;
5074
+ } | {
5075
+ kind: "ci-completed";
5076
+ cardId: string;
5077
+ origin: {
5078
+ kind: "work";
5079
+ ticketId: string;
5080
+ assignmentId: string;
5081
+ };
5082
+ sourceId: string;
5083
+ sourceGeneration: number;
5084
+ threadId: string;
5085
+ afterAttempt: number;
5086
+ afterObservedAt: string;
5087
+ } | undefined;
5088
+ deadlineAt?: string | undefined;
4757
5089
  }[];
4758
5090
  };
4759
5091
  protocolVersion: 1;
@@ -4838,6 +5170,89 @@ export declare class ProactiveService {
4838
5170
  reason: "completed" | "cancelled" | "resolved";
4839
5171
  };
4840
5172
  state: "closed" | "stopped" | "open" | "ignored";
5173
+ completionTarget?: {
5174
+ kind: "subtask-completed";
5175
+ cardId: string;
5176
+ origin: {
5177
+ kind: "work";
5178
+ ticketId: string;
5179
+ assignmentId: string;
5180
+ } | {
5181
+ kind: "delegate";
5182
+ runId: string;
5183
+ sessionId?: string | undefined;
5184
+ } | {
5185
+ kind: "native-subagent";
5186
+ sessionId: string;
5187
+ childSessionId: string;
5188
+ turn: number;
5189
+ } | {
5190
+ kind: "team-task";
5191
+ teamId: string;
5192
+ taskId: string;
5193
+ sessionId?: string | undefined;
5194
+ } | {
5195
+ kind: "group-turn";
5196
+ turnId: string;
5197
+ };
5198
+ sourceGeneration: number;
5199
+ afterRevision: number;
5200
+ } | {
5201
+ kind: "ci-completed";
5202
+ cardId: string;
5203
+ origin: {
5204
+ kind: "work";
5205
+ ticketId: string;
5206
+ assignmentId: string;
5207
+ };
5208
+ sourceId: string;
5209
+ sourceGeneration: number;
5210
+ threadId: string;
5211
+ afterAttempt: number;
5212
+ afterObservedAt: string;
5213
+ } | undefined;
5214
+ when?: {
5215
+ kind: "subtask-completed";
5216
+ cardId: string;
5217
+ origin: {
5218
+ kind: "work";
5219
+ ticketId: string;
5220
+ assignmentId: string;
5221
+ } | {
5222
+ kind: "delegate";
5223
+ runId: string;
5224
+ sessionId?: string | undefined;
5225
+ } | {
5226
+ kind: "native-subagent";
5227
+ sessionId: string;
5228
+ childSessionId: string;
5229
+ turn: number;
5230
+ } | {
5231
+ kind: "team-task";
5232
+ teamId: string;
5233
+ taskId: string;
5234
+ sessionId?: string | undefined;
5235
+ } | {
5236
+ kind: "group-turn";
5237
+ turnId: string;
5238
+ };
5239
+ sourceGeneration: number;
5240
+ afterRevision: number;
5241
+ } | {
5242
+ kind: "ci-completed";
5243
+ cardId: string;
5244
+ origin: {
5245
+ kind: "work";
5246
+ ticketId: string;
5247
+ assignmentId: string;
5248
+ };
5249
+ sourceId: string;
5250
+ sourceGeneration: number;
5251
+ threadId: string;
5252
+ afterAttempt: number;
5253
+ afterObservedAt: string;
5254
+ } | undefined;
5255
+ deadlineAt?: string | undefined;
4841
5256
  }[];
4842
5257
  next?: string | undefined;
4843
5258
  };
@@ -4959,26 +5374,109 @@ export declare class ProactiveService {
4959
5374
  reason: "completed" | "cancelled" | "resolved";
4960
5375
  };
4961
5376
  state: "closed" | "stopped" | "open" | "ignored";
4962
- } | null;
4963
- activationEpoch: string | null;
4964
- protocolVersion: 1;
4965
- correlationId: string;
4966
- } | {
4967
- rows: {
4968
- subject: {
4969
- kind: "bot";
4970
- bot: {
4971
- botId: string;
4972
- botCreatedAt: number;
4973
- };
4974
- } | {
4975
- kind: "group";
4976
- group: {
4977
- groupId: string;
4978
- groupCreatedAt: number;
4979
- };
4980
- };
4981
- revision: number;
5377
+ completionTarget?: {
5378
+ kind: "subtask-completed";
5379
+ cardId: string;
5380
+ origin: {
5381
+ kind: "work";
5382
+ ticketId: string;
5383
+ assignmentId: string;
5384
+ } | {
5385
+ kind: "delegate";
5386
+ runId: string;
5387
+ sessionId?: string | undefined;
5388
+ } | {
5389
+ kind: "native-subagent";
5390
+ sessionId: string;
5391
+ childSessionId: string;
5392
+ turn: number;
5393
+ } | {
5394
+ kind: "team-task";
5395
+ teamId: string;
5396
+ taskId: string;
5397
+ sessionId?: string | undefined;
5398
+ } | {
5399
+ kind: "group-turn";
5400
+ turnId: string;
5401
+ };
5402
+ sourceGeneration: number;
5403
+ afterRevision: number;
5404
+ } | {
5405
+ kind: "ci-completed";
5406
+ cardId: string;
5407
+ origin: {
5408
+ kind: "work";
5409
+ ticketId: string;
5410
+ assignmentId: string;
5411
+ };
5412
+ sourceId: string;
5413
+ sourceGeneration: number;
5414
+ threadId: string;
5415
+ afterAttempt: number;
5416
+ afterObservedAt: string;
5417
+ } | undefined;
5418
+ when?: {
5419
+ kind: "subtask-completed";
5420
+ cardId: string;
5421
+ origin: {
5422
+ kind: "work";
5423
+ ticketId: string;
5424
+ assignmentId: string;
5425
+ } | {
5426
+ kind: "delegate";
5427
+ runId: string;
5428
+ sessionId?: string | undefined;
5429
+ } | {
5430
+ kind: "native-subagent";
5431
+ sessionId: string;
5432
+ childSessionId: string;
5433
+ turn: number;
5434
+ } | {
5435
+ kind: "team-task";
5436
+ teamId: string;
5437
+ taskId: string;
5438
+ sessionId?: string | undefined;
5439
+ } | {
5440
+ kind: "group-turn";
5441
+ turnId: string;
5442
+ };
5443
+ sourceGeneration: number;
5444
+ afterRevision: number;
5445
+ } | {
5446
+ kind: "ci-completed";
5447
+ cardId: string;
5448
+ origin: {
5449
+ kind: "work";
5450
+ ticketId: string;
5451
+ assignmentId: string;
5452
+ };
5453
+ sourceId: string;
5454
+ sourceGeneration: number;
5455
+ threadId: string;
5456
+ afterAttempt: number;
5457
+ afterObservedAt: string;
5458
+ } | undefined;
5459
+ deadlineAt?: string | undefined;
5460
+ } | null;
5461
+ activationEpoch: string | null;
5462
+ protocolVersion: 1;
5463
+ correlationId: string;
5464
+ } | {
5465
+ rows: {
5466
+ subject: {
5467
+ kind: "bot";
5468
+ bot: {
5469
+ botId: string;
5470
+ botCreatedAt: number;
5471
+ };
5472
+ } | {
5473
+ kind: "group";
5474
+ group: {
5475
+ groupId: string;
5476
+ groupCreatedAt: number;
5477
+ };
5478
+ };
5479
+ revision: number;
4982
5480
  pauseEpoch: number;
4983
5481
  localEnabled: boolean;
4984
5482
  legacyCi: "denied" | "inherit";
@@ -9359,6 +9857,89 @@ export declare class ProactiveService {
9359
9857
  reason: "completed" | "cancelled" | "resolved";
9360
9858
  };
9361
9859
  state: "closed" | "stopped" | "open" | "ignored";
9860
+ completionTarget?: {
9861
+ kind: "subtask-completed";
9862
+ cardId: string;
9863
+ origin: {
9864
+ kind: "work";
9865
+ ticketId: string;
9866
+ assignmentId: string;
9867
+ } | {
9868
+ kind: "delegate";
9869
+ runId: string;
9870
+ sessionId?: string | undefined;
9871
+ } | {
9872
+ kind: "native-subagent";
9873
+ sessionId: string;
9874
+ childSessionId: string;
9875
+ turn: number;
9876
+ } | {
9877
+ kind: "team-task";
9878
+ teamId: string;
9879
+ taskId: string;
9880
+ sessionId?: string | undefined;
9881
+ } | {
9882
+ kind: "group-turn";
9883
+ turnId: string;
9884
+ };
9885
+ sourceGeneration: number;
9886
+ afterRevision: number;
9887
+ } | {
9888
+ kind: "ci-completed";
9889
+ cardId: string;
9890
+ origin: {
9891
+ kind: "work";
9892
+ ticketId: string;
9893
+ assignmentId: string;
9894
+ };
9895
+ sourceId: string;
9896
+ sourceGeneration: number;
9897
+ threadId: string;
9898
+ afterAttempt: number;
9899
+ afterObservedAt: string;
9900
+ } | undefined;
9901
+ when?: {
9902
+ kind: "subtask-completed";
9903
+ cardId: string;
9904
+ origin: {
9905
+ kind: "work";
9906
+ ticketId: string;
9907
+ assignmentId: string;
9908
+ } | {
9909
+ kind: "delegate";
9910
+ runId: string;
9911
+ sessionId?: string | undefined;
9912
+ } | {
9913
+ kind: "native-subagent";
9914
+ sessionId: string;
9915
+ childSessionId: string;
9916
+ turn: number;
9917
+ } | {
9918
+ kind: "team-task";
9919
+ teamId: string;
9920
+ taskId: string;
9921
+ sessionId?: string | undefined;
9922
+ } | {
9923
+ kind: "group-turn";
9924
+ turnId: string;
9925
+ };
9926
+ sourceGeneration: number;
9927
+ afterRevision: number;
9928
+ } | {
9929
+ kind: "ci-completed";
9930
+ cardId: string;
9931
+ origin: {
9932
+ kind: "work";
9933
+ ticketId: string;
9934
+ assignmentId: string;
9935
+ };
9936
+ sourceId: string;
9937
+ sourceGeneration: number;
9938
+ threadId: string;
9939
+ afterAttempt: number;
9940
+ afterObservedAt: string;
9941
+ } | undefined;
9942
+ deadlineAt?: string | undefined;
9362
9943
  }[];
9363
9944
  };
9364
9945
  protocolVersion: 1;
@@ -9443,6 +10024,89 @@ export declare class ProactiveService {
9443
10024
  reason: "completed" | "cancelled" | "resolved";
9444
10025
  };
9445
10026
  state: "closed" | "stopped" | "open" | "ignored";
10027
+ completionTarget?: {
10028
+ kind: "subtask-completed";
10029
+ cardId: string;
10030
+ origin: {
10031
+ kind: "work";
10032
+ ticketId: string;
10033
+ assignmentId: string;
10034
+ } | {
10035
+ kind: "delegate";
10036
+ runId: string;
10037
+ sessionId?: string | undefined;
10038
+ } | {
10039
+ kind: "native-subagent";
10040
+ sessionId: string;
10041
+ childSessionId: string;
10042
+ turn: number;
10043
+ } | {
10044
+ kind: "team-task";
10045
+ teamId: string;
10046
+ taskId: string;
10047
+ sessionId?: string | undefined;
10048
+ } | {
10049
+ kind: "group-turn";
10050
+ turnId: string;
10051
+ };
10052
+ sourceGeneration: number;
10053
+ afterRevision: number;
10054
+ } | {
10055
+ kind: "ci-completed";
10056
+ cardId: string;
10057
+ origin: {
10058
+ kind: "work";
10059
+ ticketId: string;
10060
+ assignmentId: string;
10061
+ };
10062
+ sourceId: string;
10063
+ sourceGeneration: number;
10064
+ threadId: string;
10065
+ afterAttempt: number;
10066
+ afterObservedAt: string;
10067
+ } | undefined;
10068
+ when?: {
10069
+ kind: "subtask-completed";
10070
+ cardId: string;
10071
+ origin: {
10072
+ kind: "work";
10073
+ ticketId: string;
10074
+ assignmentId: string;
10075
+ } | {
10076
+ kind: "delegate";
10077
+ runId: string;
10078
+ sessionId?: string | undefined;
10079
+ } | {
10080
+ kind: "native-subagent";
10081
+ sessionId: string;
10082
+ childSessionId: string;
10083
+ turn: number;
10084
+ } | {
10085
+ kind: "team-task";
10086
+ teamId: string;
10087
+ taskId: string;
10088
+ sessionId?: string | undefined;
10089
+ } | {
10090
+ kind: "group-turn";
10091
+ turnId: string;
10092
+ };
10093
+ sourceGeneration: number;
10094
+ afterRevision: number;
10095
+ } | {
10096
+ kind: "ci-completed";
10097
+ cardId: string;
10098
+ origin: {
10099
+ kind: "work";
10100
+ ticketId: string;
10101
+ assignmentId: string;
10102
+ };
10103
+ sourceId: string;
10104
+ sourceGeneration: number;
10105
+ threadId: string;
10106
+ afterAttempt: number;
10107
+ afterObservedAt: string;
10108
+ } | undefined;
10109
+ deadlineAt?: string | undefined;
9446
10110
  }[];
9447
10111
  next?: string | undefined;
9448
10112
  };
@@ -9564,6 +10228,89 @@ export declare class ProactiveService {
9564
10228
  reason: "completed" | "cancelled" | "resolved";
9565
10229
  };
9566
10230
  state: "closed" | "stopped" | "open" | "ignored";
10231
+ completionTarget?: {
10232
+ kind: "subtask-completed";
10233
+ cardId: string;
10234
+ origin: {
10235
+ kind: "work";
10236
+ ticketId: string;
10237
+ assignmentId: string;
10238
+ } | {
10239
+ kind: "delegate";
10240
+ runId: string;
10241
+ sessionId?: string | undefined;
10242
+ } | {
10243
+ kind: "native-subagent";
10244
+ sessionId: string;
10245
+ childSessionId: string;
10246
+ turn: number;
10247
+ } | {
10248
+ kind: "team-task";
10249
+ teamId: string;
10250
+ taskId: string;
10251
+ sessionId?: string | undefined;
10252
+ } | {
10253
+ kind: "group-turn";
10254
+ turnId: string;
10255
+ };
10256
+ sourceGeneration: number;
10257
+ afterRevision: number;
10258
+ } | {
10259
+ kind: "ci-completed";
10260
+ cardId: string;
10261
+ origin: {
10262
+ kind: "work";
10263
+ ticketId: string;
10264
+ assignmentId: string;
10265
+ };
10266
+ sourceId: string;
10267
+ sourceGeneration: number;
10268
+ threadId: string;
10269
+ afterAttempt: number;
10270
+ afterObservedAt: string;
10271
+ } | undefined;
10272
+ when?: {
10273
+ kind: "subtask-completed";
10274
+ cardId: string;
10275
+ origin: {
10276
+ kind: "work";
10277
+ ticketId: string;
10278
+ assignmentId: string;
10279
+ } | {
10280
+ kind: "delegate";
10281
+ runId: string;
10282
+ sessionId?: string | undefined;
10283
+ } | {
10284
+ kind: "native-subagent";
10285
+ sessionId: string;
10286
+ childSessionId: string;
10287
+ turn: number;
10288
+ } | {
10289
+ kind: "team-task";
10290
+ teamId: string;
10291
+ taskId: string;
10292
+ sessionId?: string | undefined;
10293
+ } | {
10294
+ kind: "group-turn";
10295
+ turnId: string;
10296
+ };
10297
+ sourceGeneration: number;
10298
+ afterRevision: number;
10299
+ } | {
10300
+ kind: "ci-completed";
10301
+ cardId: string;
10302
+ origin: {
10303
+ kind: "work";
10304
+ ticketId: string;
10305
+ assignmentId: string;
10306
+ };
10307
+ sourceId: string;
10308
+ sourceGeneration: number;
10309
+ threadId: string;
10310
+ afterAttempt: number;
10311
+ afterObservedAt: string;
10312
+ } | undefined;
10313
+ deadlineAt?: string | undefined;
9567
10314
  } | null;
9568
10315
  activationEpoch: string | null;
9569
10316
  protocolVersion: 1;
@@ -13963,22 +14710,105 @@ export declare class ProactiveService {
13963
14710
  reason: "completed" | "cancelled" | "resolved";
13964
14711
  };
13965
14712
  state: "closed" | "stopped" | "open" | "ignored";
13966
- }[];
13967
- }>;
13968
- followUpPage(input: FollowUpPageRequest): Promise<{
13969
- rows: {
13970
- id: string;
13971
- decisionId: string;
13972
- subject: {
13973
- kind: "bot";
13974
- bot: {
13975
- botId: string;
13976
- botCreatedAt: number;
13977
- };
13978
- } | {
13979
- kind: "group";
13980
- group: {
13981
- groupId: string;
14713
+ completionTarget?: {
14714
+ kind: "subtask-completed";
14715
+ cardId: string;
14716
+ origin: {
14717
+ kind: "work";
14718
+ ticketId: string;
14719
+ assignmentId: string;
14720
+ } | {
14721
+ kind: "delegate";
14722
+ runId: string;
14723
+ sessionId?: string | undefined;
14724
+ } | {
14725
+ kind: "native-subagent";
14726
+ sessionId: string;
14727
+ childSessionId: string;
14728
+ turn: number;
14729
+ } | {
14730
+ kind: "team-task";
14731
+ teamId: string;
14732
+ taskId: string;
14733
+ sessionId?: string | undefined;
14734
+ } | {
14735
+ kind: "group-turn";
14736
+ turnId: string;
14737
+ };
14738
+ sourceGeneration: number;
14739
+ afterRevision: number;
14740
+ } | {
14741
+ kind: "ci-completed";
14742
+ cardId: string;
14743
+ origin: {
14744
+ kind: "work";
14745
+ ticketId: string;
14746
+ assignmentId: string;
14747
+ };
14748
+ sourceId: string;
14749
+ sourceGeneration: number;
14750
+ threadId: string;
14751
+ afterAttempt: number;
14752
+ afterObservedAt: string;
14753
+ } | undefined;
14754
+ when?: {
14755
+ kind: "subtask-completed";
14756
+ cardId: string;
14757
+ origin: {
14758
+ kind: "work";
14759
+ ticketId: string;
14760
+ assignmentId: string;
14761
+ } | {
14762
+ kind: "delegate";
14763
+ runId: string;
14764
+ sessionId?: string | undefined;
14765
+ } | {
14766
+ kind: "native-subagent";
14767
+ sessionId: string;
14768
+ childSessionId: string;
14769
+ turn: number;
14770
+ } | {
14771
+ kind: "team-task";
14772
+ teamId: string;
14773
+ taskId: string;
14774
+ sessionId?: string | undefined;
14775
+ } | {
14776
+ kind: "group-turn";
14777
+ turnId: string;
14778
+ };
14779
+ sourceGeneration: number;
14780
+ afterRevision: number;
14781
+ } | {
14782
+ kind: "ci-completed";
14783
+ cardId: string;
14784
+ origin: {
14785
+ kind: "work";
14786
+ ticketId: string;
14787
+ assignmentId: string;
14788
+ };
14789
+ sourceId: string;
14790
+ sourceGeneration: number;
14791
+ threadId: string;
14792
+ afterAttempt: number;
14793
+ afterObservedAt: string;
14794
+ } | undefined;
14795
+ deadlineAt?: string | undefined;
14796
+ }[];
14797
+ }>;
14798
+ followUpPage(input: FollowUpPageRequest): Promise<{
14799
+ rows: {
14800
+ id: string;
14801
+ decisionId: string;
14802
+ subject: {
14803
+ kind: "bot";
14804
+ bot: {
14805
+ botId: string;
14806
+ botCreatedAt: number;
14807
+ };
14808
+ } | {
14809
+ kind: "group";
14810
+ group: {
14811
+ groupId: string;
13982
14812
  groupCreatedAt: number;
13983
14813
  };
13984
14814
  };
@@ -14043,6 +14873,89 @@ export declare class ProactiveService {
14043
14873
  reason: "completed" | "cancelled" | "resolved";
14044
14874
  };
14045
14875
  state: "closed" | "stopped" | "open" | "ignored";
14876
+ completionTarget?: {
14877
+ kind: "subtask-completed";
14878
+ cardId: string;
14879
+ origin: {
14880
+ kind: "work";
14881
+ ticketId: string;
14882
+ assignmentId: string;
14883
+ } | {
14884
+ kind: "delegate";
14885
+ runId: string;
14886
+ sessionId?: string | undefined;
14887
+ } | {
14888
+ kind: "native-subagent";
14889
+ sessionId: string;
14890
+ childSessionId: string;
14891
+ turn: number;
14892
+ } | {
14893
+ kind: "team-task";
14894
+ teamId: string;
14895
+ taskId: string;
14896
+ sessionId?: string | undefined;
14897
+ } | {
14898
+ kind: "group-turn";
14899
+ turnId: string;
14900
+ };
14901
+ sourceGeneration: number;
14902
+ afterRevision: number;
14903
+ } | {
14904
+ kind: "ci-completed";
14905
+ cardId: string;
14906
+ origin: {
14907
+ kind: "work";
14908
+ ticketId: string;
14909
+ assignmentId: string;
14910
+ };
14911
+ sourceId: string;
14912
+ sourceGeneration: number;
14913
+ threadId: string;
14914
+ afterAttempt: number;
14915
+ afterObservedAt: string;
14916
+ } | undefined;
14917
+ when?: {
14918
+ kind: "subtask-completed";
14919
+ cardId: string;
14920
+ origin: {
14921
+ kind: "work";
14922
+ ticketId: string;
14923
+ assignmentId: string;
14924
+ } | {
14925
+ kind: "delegate";
14926
+ runId: string;
14927
+ sessionId?: string | undefined;
14928
+ } | {
14929
+ kind: "native-subagent";
14930
+ sessionId: string;
14931
+ childSessionId: string;
14932
+ turn: number;
14933
+ } | {
14934
+ kind: "team-task";
14935
+ teamId: string;
14936
+ taskId: string;
14937
+ sessionId?: string | undefined;
14938
+ } | {
14939
+ kind: "group-turn";
14940
+ turnId: string;
14941
+ };
14942
+ sourceGeneration: number;
14943
+ afterRevision: number;
14944
+ } | {
14945
+ kind: "ci-completed";
14946
+ cardId: string;
14947
+ origin: {
14948
+ kind: "work";
14949
+ ticketId: string;
14950
+ assignmentId: string;
14951
+ };
14952
+ sourceId: string;
14953
+ sourceGeneration: number;
14954
+ threadId: string;
14955
+ afterAttempt: number;
14956
+ afterObservedAt: string;
14957
+ } | undefined;
14958
+ deadlineAt?: string | undefined;
14046
14959
  }[];
14047
14960
  next?: string | undefined;
14048
14961
  }>;
@@ -15950,6 +16863,89 @@ export declare class ProactiveService {
15950
16863
  reason: "completed" | "cancelled" | "resolved";
15951
16864
  };
15952
16865
  state: "closed" | "stopped" | "open" | "ignored";
16866
+ completionTarget?: {
16867
+ kind: "subtask-completed";
16868
+ cardId: string;
16869
+ origin: {
16870
+ kind: "work";
16871
+ ticketId: string;
16872
+ assignmentId: string;
16873
+ } | {
16874
+ kind: "delegate";
16875
+ runId: string;
16876
+ sessionId?: string | undefined;
16877
+ } | {
16878
+ kind: "native-subagent";
16879
+ sessionId: string;
16880
+ childSessionId: string;
16881
+ turn: number;
16882
+ } | {
16883
+ kind: "team-task";
16884
+ teamId: string;
16885
+ taskId: string;
16886
+ sessionId?: string | undefined;
16887
+ } | {
16888
+ kind: "group-turn";
16889
+ turnId: string;
16890
+ };
16891
+ sourceGeneration: number;
16892
+ afterRevision: number;
16893
+ } | {
16894
+ kind: "ci-completed";
16895
+ cardId: string;
16896
+ origin: {
16897
+ kind: "work";
16898
+ ticketId: string;
16899
+ assignmentId: string;
16900
+ };
16901
+ sourceId: string;
16902
+ sourceGeneration: number;
16903
+ threadId: string;
16904
+ afterAttempt: number;
16905
+ afterObservedAt: string;
16906
+ } | undefined;
16907
+ when?: {
16908
+ kind: "subtask-completed";
16909
+ cardId: string;
16910
+ origin: {
16911
+ kind: "work";
16912
+ ticketId: string;
16913
+ assignmentId: string;
16914
+ } | {
16915
+ kind: "delegate";
16916
+ runId: string;
16917
+ sessionId?: string | undefined;
16918
+ } | {
16919
+ kind: "native-subagent";
16920
+ sessionId: string;
16921
+ childSessionId: string;
16922
+ turn: number;
16923
+ } | {
16924
+ kind: "team-task";
16925
+ teamId: string;
16926
+ taskId: string;
16927
+ sessionId?: string | undefined;
16928
+ } | {
16929
+ kind: "group-turn";
16930
+ turnId: string;
16931
+ };
16932
+ sourceGeneration: number;
16933
+ afterRevision: number;
16934
+ } | {
16935
+ kind: "ci-completed";
16936
+ cardId: string;
16937
+ origin: {
16938
+ kind: "work";
16939
+ ticketId: string;
16940
+ assignmentId: string;
16941
+ };
16942
+ sourceId: string;
16943
+ sourceGeneration: number;
16944
+ threadId: string;
16945
+ afterAttempt: number;
16946
+ afterObservedAt: string;
16947
+ } | undefined;
16948
+ deadlineAt?: string | undefined;
15953
16949
  }[];
15954
16950
  };
15955
16951
  protocolVersion: 1;
@@ -16034,6 +17030,89 @@ export declare class ProactiveService {
16034
17030
  reason: "completed" | "cancelled" | "resolved";
16035
17031
  };
16036
17032
  state: "closed" | "stopped" | "open" | "ignored";
17033
+ completionTarget?: {
17034
+ kind: "subtask-completed";
17035
+ cardId: string;
17036
+ origin: {
17037
+ kind: "work";
17038
+ ticketId: string;
17039
+ assignmentId: string;
17040
+ } | {
17041
+ kind: "delegate";
17042
+ runId: string;
17043
+ sessionId?: string | undefined;
17044
+ } | {
17045
+ kind: "native-subagent";
17046
+ sessionId: string;
17047
+ childSessionId: string;
17048
+ turn: number;
17049
+ } | {
17050
+ kind: "team-task";
17051
+ teamId: string;
17052
+ taskId: string;
17053
+ sessionId?: string | undefined;
17054
+ } | {
17055
+ kind: "group-turn";
17056
+ turnId: string;
17057
+ };
17058
+ sourceGeneration: number;
17059
+ afterRevision: number;
17060
+ } | {
17061
+ kind: "ci-completed";
17062
+ cardId: string;
17063
+ origin: {
17064
+ kind: "work";
17065
+ ticketId: string;
17066
+ assignmentId: string;
17067
+ };
17068
+ sourceId: string;
17069
+ sourceGeneration: number;
17070
+ threadId: string;
17071
+ afterAttempt: number;
17072
+ afterObservedAt: string;
17073
+ } | undefined;
17074
+ when?: {
17075
+ kind: "subtask-completed";
17076
+ cardId: string;
17077
+ origin: {
17078
+ kind: "work";
17079
+ ticketId: string;
17080
+ assignmentId: string;
17081
+ } | {
17082
+ kind: "delegate";
17083
+ runId: string;
17084
+ sessionId?: string | undefined;
17085
+ } | {
17086
+ kind: "native-subagent";
17087
+ sessionId: string;
17088
+ childSessionId: string;
17089
+ turn: number;
17090
+ } | {
17091
+ kind: "team-task";
17092
+ teamId: string;
17093
+ taskId: string;
17094
+ sessionId?: string | undefined;
17095
+ } | {
17096
+ kind: "group-turn";
17097
+ turnId: string;
17098
+ };
17099
+ sourceGeneration: number;
17100
+ afterRevision: number;
17101
+ } | {
17102
+ kind: "ci-completed";
17103
+ cardId: string;
17104
+ origin: {
17105
+ kind: "work";
17106
+ ticketId: string;
17107
+ assignmentId: string;
17108
+ };
17109
+ sourceId: string;
17110
+ sourceGeneration: number;
17111
+ threadId: string;
17112
+ afterAttempt: number;
17113
+ afterObservedAt: string;
17114
+ } | undefined;
17115
+ deadlineAt?: string | undefined;
16037
17116
  }[];
16038
17117
  next?: string | undefined;
16039
17118
  };
@@ -16155,6 +17234,89 @@ export declare class ProactiveService {
16155
17234
  reason: "completed" | "cancelled" | "resolved";
16156
17235
  };
16157
17236
  state: "closed" | "stopped" | "open" | "ignored";
17237
+ completionTarget?: {
17238
+ kind: "subtask-completed";
17239
+ cardId: string;
17240
+ origin: {
17241
+ kind: "work";
17242
+ ticketId: string;
17243
+ assignmentId: string;
17244
+ } | {
17245
+ kind: "delegate";
17246
+ runId: string;
17247
+ sessionId?: string | undefined;
17248
+ } | {
17249
+ kind: "native-subagent";
17250
+ sessionId: string;
17251
+ childSessionId: string;
17252
+ turn: number;
17253
+ } | {
17254
+ kind: "team-task";
17255
+ teamId: string;
17256
+ taskId: string;
17257
+ sessionId?: string | undefined;
17258
+ } | {
17259
+ kind: "group-turn";
17260
+ turnId: string;
17261
+ };
17262
+ sourceGeneration: number;
17263
+ afterRevision: number;
17264
+ } | {
17265
+ kind: "ci-completed";
17266
+ cardId: string;
17267
+ origin: {
17268
+ kind: "work";
17269
+ ticketId: string;
17270
+ assignmentId: string;
17271
+ };
17272
+ sourceId: string;
17273
+ sourceGeneration: number;
17274
+ threadId: string;
17275
+ afterAttempt: number;
17276
+ afterObservedAt: string;
17277
+ } | undefined;
17278
+ when?: {
17279
+ kind: "subtask-completed";
17280
+ cardId: string;
17281
+ origin: {
17282
+ kind: "work";
17283
+ ticketId: string;
17284
+ assignmentId: string;
17285
+ } | {
17286
+ kind: "delegate";
17287
+ runId: string;
17288
+ sessionId?: string | undefined;
17289
+ } | {
17290
+ kind: "native-subagent";
17291
+ sessionId: string;
17292
+ childSessionId: string;
17293
+ turn: number;
17294
+ } | {
17295
+ kind: "team-task";
17296
+ teamId: string;
17297
+ taskId: string;
17298
+ sessionId?: string | undefined;
17299
+ } | {
17300
+ kind: "group-turn";
17301
+ turnId: string;
17302
+ };
17303
+ sourceGeneration: number;
17304
+ afterRevision: number;
17305
+ } | {
17306
+ kind: "ci-completed";
17307
+ cardId: string;
17308
+ origin: {
17309
+ kind: "work";
17310
+ ticketId: string;
17311
+ assignmentId: string;
17312
+ };
17313
+ sourceId: string;
17314
+ sourceGeneration: number;
17315
+ threadId: string;
17316
+ afterAttempt: number;
17317
+ afterObservedAt: string;
17318
+ } | undefined;
17319
+ deadlineAt?: string | undefined;
16158
17320
  } | null;
16159
17321
  activationEpoch: string | null;
16160
17322
  protocolVersion: 1;
@@ -20555,6 +21717,89 @@ export declare class ProactiveService {
20555
21717
  reason: "completed" | "cancelled" | "resolved";
20556
21718
  };
20557
21719
  state: "closed" | "stopped" | "open" | "ignored";
21720
+ completionTarget?: {
21721
+ kind: "subtask-completed";
21722
+ cardId: string;
21723
+ origin: {
21724
+ kind: "work";
21725
+ ticketId: string;
21726
+ assignmentId: string;
21727
+ } | {
21728
+ kind: "delegate";
21729
+ runId: string;
21730
+ sessionId?: string | undefined;
21731
+ } | {
21732
+ kind: "native-subagent";
21733
+ sessionId: string;
21734
+ childSessionId: string;
21735
+ turn: number;
21736
+ } | {
21737
+ kind: "team-task";
21738
+ teamId: string;
21739
+ taskId: string;
21740
+ sessionId?: string | undefined;
21741
+ } | {
21742
+ kind: "group-turn";
21743
+ turnId: string;
21744
+ };
21745
+ sourceGeneration: number;
21746
+ afterRevision: number;
21747
+ } | {
21748
+ kind: "ci-completed";
21749
+ cardId: string;
21750
+ origin: {
21751
+ kind: "work";
21752
+ ticketId: string;
21753
+ assignmentId: string;
21754
+ };
21755
+ sourceId: string;
21756
+ sourceGeneration: number;
21757
+ threadId: string;
21758
+ afterAttempt: number;
21759
+ afterObservedAt: string;
21760
+ } | undefined;
21761
+ when?: {
21762
+ kind: "subtask-completed";
21763
+ cardId: string;
21764
+ origin: {
21765
+ kind: "work";
21766
+ ticketId: string;
21767
+ assignmentId: string;
21768
+ } | {
21769
+ kind: "delegate";
21770
+ runId: string;
21771
+ sessionId?: string | undefined;
21772
+ } | {
21773
+ kind: "native-subagent";
21774
+ sessionId: string;
21775
+ childSessionId: string;
21776
+ turn: number;
21777
+ } | {
21778
+ kind: "team-task";
21779
+ teamId: string;
21780
+ taskId: string;
21781
+ sessionId?: string | undefined;
21782
+ } | {
21783
+ kind: "group-turn";
21784
+ turnId: string;
21785
+ };
21786
+ sourceGeneration: number;
21787
+ afterRevision: number;
21788
+ } | {
21789
+ kind: "ci-completed";
21790
+ cardId: string;
21791
+ origin: {
21792
+ kind: "work";
21793
+ ticketId: string;
21794
+ assignmentId: string;
21795
+ };
21796
+ sourceId: string;
21797
+ sourceGeneration: number;
21798
+ threadId: string;
21799
+ afterAttempt: number;
21800
+ afterObservedAt: string;
21801
+ } | undefined;
21802
+ deadlineAt?: string | undefined;
20558
21803
  }[];
20559
21804
  };
20560
21805
  protocolVersion: 1;
@@ -20624,21 +21869,104 @@ export declare class ProactiveService {
20624
21869
  deadlineAt?: string | undefined;
20625
21870
  };
20626
21871
  } | {
20627
- kind: "tracking";
20628
- completion?: string | undefined;
20629
- } | {
20630
- kind: "approval-pending";
20631
- completion: string;
20632
- wait?: {
20633
- reason: string;
20634
- request: string;
20635
- deadlineAt?: string | undefined;
20636
- } | undefined;
20637
- } | {
20638
- kind: "closed";
20639
- reason: "completed" | "cancelled" | "resolved";
20640
- };
20641
- state: "closed" | "stopped" | "open" | "ignored";
21872
+ kind: "tracking";
21873
+ completion?: string | undefined;
21874
+ } | {
21875
+ kind: "approval-pending";
21876
+ completion: string;
21877
+ wait?: {
21878
+ reason: string;
21879
+ request: string;
21880
+ deadlineAt?: string | undefined;
21881
+ } | undefined;
21882
+ } | {
21883
+ kind: "closed";
21884
+ reason: "completed" | "cancelled" | "resolved";
21885
+ };
21886
+ state: "closed" | "stopped" | "open" | "ignored";
21887
+ completionTarget?: {
21888
+ kind: "subtask-completed";
21889
+ cardId: string;
21890
+ origin: {
21891
+ kind: "work";
21892
+ ticketId: string;
21893
+ assignmentId: string;
21894
+ } | {
21895
+ kind: "delegate";
21896
+ runId: string;
21897
+ sessionId?: string | undefined;
21898
+ } | {
21899
+ kind: "native-subagent";
21900
+ sessionId: string;
21901
+ childSessionId: string;
21902
+ turn: number;
21903
+ } | {
21904
+ kind: "team-task";
21905
+ teamId: string;
21906
+ taskId: string;
21907
+ sessionId?: string | undefined;
21908
+ } | {
21909
+ kind: "group-turn";
21910
+ turnId: string;
21911
+ };
21912
+ sourceGeneration: number;
21913
+ afterRevision: number;
21914
+ } | {
21915
+ kind: "ci-completed";
21916
+ cardId: string;
21917
+ origin: {
21918
+ kind: "work";
21919
+ ticketId: string;
21920
+ assignmentId: string;
21921
+ };
21922
+ sourceId: string;
21923
+ sourceGeneration: number;
21924
+ threadId: string;
21925
+ afterAttempt: number;
21926
+ afterObservedAt: string;
21927
+ } | undefined;
21928
+ when?: {
21929
+ kind: "subtask-completed";
21930
+ cardId: string;
21931
+ origin: {
21932
+ kind: "work";
21933
+ ticketId: string;
21934
+ assignmentId: string;
21935
+ } | {
21936
+ kind: "delegate";
21937
+ runId: string;
21938
+ sessionId?: string | undefined;
21939
+ } | {
21940
+ kind: "native-subagent";
21941
+ sessionId: string;
21942
+ childSessionId: string;
21943
+ turn: number;
21944
+ } | {
21945
+ kind: "team-task";
21946
+ teamId: string;
21947
+ taskId: string;
21948
+ sessionId?: string | undefined;
21949
+ } | {
21950
+ kind: "group-turn";
21951
+ turnId: string;
21952
+ };
21953
+ sourceGeneration: number;
21954
+ afterRevision: number;
21955
+ } | {
21956
+ kind: "ci-completed";
21957
+ cardId: string;
21958
+ origin: {
21959
+ kind: "work";
21960
+ ticketId: string;
21961
+ assignmentId: string;
21962
+ };
21963
+ sourceId: string;
21964
+ sourceGeneration: number;
21965
+ threadId: string;
21966
+ afterAttempt: number;
21967
+ afterObservedAt: string;
21968
+ } | undefined;
21969
+ deadlineAt?: string | undefined;
20642
21970
  }[];
20643
21971
  next?: string | undefined;
20644
21972
  };
@@ -20760,6 +22088,89 @@ export declare class ProactiveService {
20760
22088
  reason: "completed" | "cancelled" | "resolved";
20761
22089
  };
20762
22090
  state: "closed" | "stopped" | "open" | "ignored";
22091
+ completionTarget?: {
22092
+ kind: "subtask-completed";
22093
+ cardId: string;
22094
+ origin: {
22095
+ kind: "work";
22096
+ ticketId: string;
22097
+ assignmentId: string;
22098
+ } | {
22099
+ kind: "delegate";
22100
+ runId: string;
22101
+ sessionId?: string | undefined;
22102
+ } | {
22103
+ kind: "native-subagent";
22104
+ sessionId: string;
22105
+ childSessionId: string;
22106
+ turn: number;
22107
+ } | {
22108
+ kind: "team-task";
22109
+ teamId: string;
22110
+ taskId: string;
22111
+ sessionId?: string | undefined;
22112
+ } | {
22113
+ kind: "group-turn";
22114
+ turnId: string;
22115
+ };
22116
+ sourceGeneration: number;
22117
+ afterRevision: number;
22118
+ } | {
22119
+ kind: "ci-completed";
22120
+ cardId: string;
22121
+ origin: {
22122
+ kind: "work";
22123
+ ticketId: string;
22124
+ assignmentId: string;
22125
+ };
22126
+ sourceId: string;
22127
+ sourceGeneration: number;
22128
+ threadId: string;
22129
+ afterAttempt: number;
22130
+ afterObservedAt: string;
22131
+ } | undefined;
22132
+ when?: {
22133
+ kind: "subtask-completed";
22134
+ cardId: string;
22135
+ origin: {
22136
+ kind: "work";
22137
+ ticketId: string;
22138
+ assignmentId: string;
22139
+ } | {
22140
+ kind: "delegate";
22141
+ runId: string;
22142
+ sessionId?: string | undefined;
22143
+ } | {
22144
+ kind: "native-subagent";
22145
+ sessionId: string;
22146
+ childSessionId: string;
22147
+ turn: number;
22148
+ } | {
22149
+ kind: "team-task";
22150
+ teamId: string;
22151
+ taskId: string;
22152
+ sessionId?: string | undefined;
22153
+ } | {
22154
+ kind: "group-turn";
22155
+ turnId: string;
22156
+ };
22157
+ sourceGeneration: number;
22158
+ afterRevision: number;
22159
+ } | {
22160
+ kind: "ci-completed";
22161
+ cardId: string;
22162
+ origin: {
22163
+ kind: "work";
22164
+ ticketId: string;
22165
+ assignmentId: string;
22166
+ };
22167
+ sourceId: string;
22168
+ sourceGeneration: number;
22169
+ threadId: string;
22170
+ afterAttempt: number;
22171
+ afterObservedAt: string;
22172
+ } | undefined;
22173
+ deadlineAt?: string | undefined;
20763
22174
  } | null;
20764
22175
  activationEpoch: string | null;
20765
22176
  protocolVersion: 1;
@@ -25161,6 +26572,89 @@ export declare class ProactiveService {
25161
26572
  reason: "completed" | "cancelled" | "resolved";
25162
26573
  };
25163
26574
  state: "closed" | "stopped" | "open" | "ignored";
26575
+ completionTarget?: {
26576
+ kind: "subtask-completed";
26577
+ cardId: string;
26578
+ origin: {
26579
+ kind: "work";
26580
+ ticketId: string;
26581
+ assignmentId: string;
26582
+ } | {
26583
+ kind: "delegate";
26584
+ runId: string;
26585
+ sessionId?: string | undefined;
26586
+ } | {
26587
+ kind: "native-subagent";
26588
+ sessionId: string;
26589
+ childSessionId: string;
26590
+ turn: number;
26591
+ } | {
26592
+ kind: "team-task";
26593
+ teamId: string;
26594
+ taskId: string;
26595
+ sessionId?: string | undefined;
26596
+ } | {
26597
+ kind: "group-turn";
26598
+ turnId: string;
26599
+ };
26600
+ sourceGeneration: number;
26601
+ afterRevision: number;
26602
+ } | {
26603
+ kind: "ci-completed";
26604
+ cardId: string;
26605
+ origin: {
26606
+ kind: "work";
26607
+ ticketId: string;
26608
+ assignmentId: string;
26609
+ };
26610
+ sourceId: string;
26611
+ sourceGeneration: number;
26612
+ threadId: string;
26613
+ afterAttempt: number;
26614
+ afterObservedAt: string;
26615
+ } | undefined;
26616
+ when?: {
26617
+ kind: "subtask-completed";
26618
+ cardId: string;
26619
+ origin: {
26620
+ kind: "work";
26621
+ ticketId: string;
26622
+ assignmentId: string;
26623
+ } | {
26624
+ kind: "delegate";
26625
+ runId: string;
26626
+ sessionId?: string | undefined;
26627
+ } | {
26628
+ kind: "native-subagent";
26629
+ sessionId: string;
26630
+ childSessionId: string;
26631
+ turn: number;
26632
+ } | {
26633
+ kind: "team-task";
26634
+ teamId: string;
26635
+ taskId: string;
26636
+ sessionId?: string | undefined;
26637
+ } | {
26638
+ kind: "group-turn";
26639
+ turnId: string;
26640
+ };
26641
+ sourceGeneration: number;
26642
+ afterRevision: number;
26643
+ } | {
26644
+ kind: "ci-completed";
26645
+ cardId: string;
26646
+ origin: {
26647
+ kind: "work";
26648
+ ticketId: string;
26649
+ assignmentId: string;
26650
+ };
26651
+ sourceId: string;
26652
+ sourceGeneration: number;
26653
+ threadId: string;
26654
+ afterAttempt: number;
26655
+ afterObservedAt: string;
26656
+ } | undefined;
26657
+ deadlineAt?: string | undefined;
25164
26658
  }[];
25165
26659
  };
25166
26660
  protocolVersion: 1;
@@ -25245,6 +26739,89 @@ export declare class ProactiveService {
25245
26739
  reason: "completed" | "cancelled" | "resolved";
25246
26740
  };
25247
26741
  state: "closed" | "stopped" | "open" | "ignored";
26742
+ completionTarget?: {
26743
+ kind: "subtask-completed";
26744
+ cardId: string;
26745
+ origin: {
26746
+ kind: "work";
26747
+ ticketId: string;
26748
+ assignmentId: string;
26749
+ } | {
26750
+ kind: "delegate";
26751
+ runId: string;
26752
+ sessionId?: string | undefined;
26753
+ } | {
26754
+ kind: "native-subagent";
26755
+ sessionId: string;
26756
+ childSessionId: string;
26757
+ turn: number;
26758
+ } | {
26759
+ kind: "team-task";
26760
+ teamId: string;
26761
+ taskId: string;
26762
+ sessionId?: string | undefined;
26763
+ } | {
26764
+ kind: "group-turn";
26765
+ turnId: string;
26766
+ };
26767
+ sourceGeneration: number;
26768
+ afterRevision: number;
26769
+ } | {
26770
+ kind: "ci-completed";
26771
+ cardId: string;
26772
+ origin: {
26773
+ kind: "work";
26774
+ ticketId: string;
26775
+ assignmentId: string;
26776
+ };
26777
+ sourceId: string;
26778
+ sourceGeneration: number;
26779
+ threadId: string;
26780
+ afterAttempt: number;
26781
+ afterObservedAt: string;
26782
+ } | undefined;
26783
+ when?: {
26784
+ kind: "subtask-completed";
26785
+ cardId: string;
26786
+ origin: {
26787
+ kind: "work";
26788
+ ticketId: string;
26789
+ assignmentId: string;
26790
+ } | {
26791
+ kind: "delegate";
26792
+ runId: string;
26793
+ sessionId?: string | undefined;
26794
+ } | {
26795
+ kind: "native-subagent";
26796
+ sessionId: string;
26797
+ childSessionId: string;
26798
+ turn: number;
26799
+ } | {
26800
+ kind: "team-task";
26801
+ teamId: string;
26802
+ taskId: string;
26803
+ sessionId?: string | undefined;
26804
+ } | {
26805
+ kind: "group-turn";
26806
+ turnId: string;
26807
+ };
26808
+ sourceGeneration: number;
26809
+ afterRevision: number;
26810
+ } | {
26811
+ kind: "ci-completed";
26812
+ cardId: string;
26813
+ origin: {
26814
+ kind: "work";
26815
+ ticketId: string;
26816
+ assignmentId: string;
26817
+ };
26818
+ sourceId: string;
26819
+ sourceGeneration: number;
26820
+ threadId: string;
26821
+ afterAttempt: number;
26822
+ afterObservedAt: string;
26823
+ } | undefined;
26824
+ deadlineAt?: string | undefined;
25248
26825
  }[];
25249
26826
  next?: string | undefined;
25250
26827
  };
@@ -25366,6 +26943,89 @@ export declare class ProactiveService {
25366
26943
  reason: "completed" | "cancelled" | "resolved";
25367
26944
  };
25368
26945
  state: "closed" | "stopped" | "open" | "ignored";
26946
+ completionTarget?: {
26947
+ kind: "subtask-completed";
26948
+ cardId: string;
26949
+ origin: {
26950
+ kind: "work";
26951
+ ticketId: string;
26952
+ assignmentId: string;
26953
+ } | {
26954
+ kind: "delegate";
26955
+ runId: string;
26956
+ sessionId?: string | undefined;
26957
+ } | {
26958
+ kind: "native-subagent";
26959
+ sessionId: string;
26960
+ childSessionId: string;
26961
+ turn: number;
26962
+ } | {
26963
+ kind: "team-task";
26964
+ teamId: string;
26965
+ taskId: string;
26966
+ sessionId?: string | undefined;
26967
+ } | {
26968
+ kind: "group-turn";
26969
+ turnId: string;
26970
+ };
26971
+ sourceGeneration: number;
26972
+ afterRevision: number;
26973
+ } | {
26974
+ kind: "ci-completed";
26975
+ cardId: string;
26976
+ origin: {
26977
+ kind: "work";
26978
+ ticketId: string;
26979
+ assignmentId: string;
26980
+ };
26981
+ sourceId: string;
26982
+ sourceGeneration: number;
26983
+ threadId: string;
26984
+ afterAttempt: number;
26985
+ afterObservedAt: string;
26986
+ } | undefined;
26987
+ when?: {
26988
+ kind: "subtask-completed";
26989
+ cardId: string;
26990
+ origin: {
26991
+ kind: "work";
26992
+ ticketId: string;
26993
+ assignmentId: string;
26994
+ } | {
26995
+ kind: "delegate";
26996
+ runId: string;
26997
+ sessionId?: string | undefined;
26998
+ } | {
26999
+ kind: "native-subagent";
27000
+ sessionId: string;
27001
+ childSessionId: string;
27002
+ turn: number;
27003
+ } | {
27004
+ kind: "team-task";
27005
+ teamId: string;
27006
+ taskId: string;
27007
+ sessionId?: string | undefined;
27008
+ } | {
27009
+ kind: "group-turn";
27010
+ turnId: string;
27011
+ };
27012
+ sourceGeneration: number;
27013
+ afterRevision: number;
27014
+ } | {
27015
+ kind: "ci-completed";
27016
+ cardId: string;
27017
+ origin: {
27018
+ kind: "work";
27019
+ ticketId: string;
27020
+ assignmentId: string;
27021
+ };
27022
+ sourceId: string;
27023
+ sourceGeneration: number;
27024
+ threadId: string;
27025
+ afterAttempt: number;
27026
+ afterObservedAt: string;
27027
+ } | undefined;
27028
+ deadlineAt?: string | undefined;
25369
27029
  } | null;
25370
27030
  activationEpoch: string | null;
25371
27031
  protocolVersion: 1;