dsh-botgroup 0.6.7 → 0.7.1

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 (478) hide show
  1. package/README.en.md +60 -122
  2. package/README.md +59 -121
  3. package/lib/client.js +11837 -7685
  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.d.ts +3 -0
  16. package/lib/host/bot-context.js +97 -22
  17. package/lib/host/bot-context.js.map +1 -1
  18. package/lib/host/capabilities/platform.js +1 -1
  19. package/lib/host/capabilities/remote.js +1 -1
  20. package/lib/host/capabilities/service.js +1 -1
  21. package/lib/host/collaboration/remote.js +1 -1
  22. package/lib/host/collaboration/service.js +1 -1
  23. package/lib/host/common/integration-stores.js +1 -1
  24. package/lib/host/common/native-ambient-source.d.ts +7 -0
  25. package/lib/host/common/native-ambient-source.js +15 -0
  26. package/lib/host/common/native-ambient-source.js.map +1 -0
  27. package/lib/host/common/operations.js +1 -1
  28. package/lib/host/common/subagent-activation.d.ts +7 -0
  29. package/lib/host/common/subagent-activation.js +10 -0
  30. package/lib/host/common/subagent-activation.js.map +1 -0
  31. package/lib/host/composer.js +1 -1
  32. package/lib/host/connectors/remote.js +1 -1
  33. package/lib/host/connectors/service.js +1 -1
  34. package/lib/host/data-flow/agent-binding.js +1 -1
  35. package/lib/host/data-flow/connector-boundary.js +1 -1
  36. package/lib/host/data-flow/delegation.js +4 -3
  37. package/lib/host/data-flow/delegation.js.map +1 -1
  38. package/lib/host/data-flow/egress.d.ts +6 -0
  39. package/lib/host/data-flow/egress.js +32 -2
  40. package/lib/host/data-flow/egress.js.map +1 -1
  41. package/lib/host/data-flow/grants.js +1 -1
  42. package/lib/host/data-flow/graph-capability.js +1 -1
  43. package/lib/host/data-flow/labels.js +3 -2
  44. package/lib/host/data-flow/labels.js.map +1 -1
  45. package/lib/host/data-flow/lineage.js +3 -2
  46. package/lib/host/data-flow/lineage.js.map +1 -1
  47. package/lib/host/data-flow/managed-copies.d.ts +11 -3
  48. package/lib/host/data-flow/managed-copies.js +1 -1
  49. package/lib/host/data-flow/native-policy.js +1 -1
  50. package/lib/host/data-flow/outlets.d.ts +66 -1
  51. package/lib/host/data-flow/outlets.js +61 -2
  52. package/lib/host/data-flow/outlets.js.map +1 -1
  53. package/lib/host/data-flow/tool-guard.js +12 -3
  54. package/lib/host/data-flow/tool-guard.js.map +1 -1
  55. package/lib/host/delegate/continuation.js +1 -1
  56. package/lib/host/delegate/guard.js +9 -5
  57. package/lib/host/delegate/guard.js.map +1 -1
  58. package/lib/host/delegate/tool.js +29 -2
  59. package/lib/host/delegate/tool.js.map +1 -1
  60. package/lib/host/errors.js +1 -1
  61. package/lib/host/groups/concurrent.js +25 -14
  62. package/lib/host/groups/concurrent.js.map +1 -1
  63. package/lib/host/groups/context-flow.d.ts +28 -0
  64. package/lib/host/groups/context-flow.js +127 -0
  65. package/lib/host/groups/context-flow.js.map +1 -0
  66. package/lib/host/groups/data-flow.d.ts +9 -3
  67. package/lib/host/groups/data-flow.js +81 -19
  68. package/lib/host/groups/data-flow.js.map +1 -1
  69. package/lib/host/groups/export-pending.d.ts +5 -0
  70. package/lib/host/groups/export-pending.js +36 -0
  71. package/lib/host/groups/export-pending.js.map +1 -0
  72. package/lib/host/groups/export-review.d.ts +35 -0
  73. package/lib/host/groups/export-review.js +235 -0
  74. package/lib/host/groups/export-review.js.map +1 -0
  75. package/lib/host/groups/export-settings.d.ts +94 -0
  76. package/lib/host/groups/export-settings.js +78 -0
  77. package/lib/host/groups/export-settings.js.map +1 -0
  78. package/lib/host/groups/failure.js +3 -1
  79. package/lib/host/groups/failure.js.map +1 -1
  80. package/lib/host/groups/members.d.ts +105 -2
  81. package/lib/host/groups/members.js +47 -4
  82. package/lib/host/groups/members.js.map +1 -1
  83. package/lib/host/groups/memory-status.d.ts +7 -0
  84. package/lib/host/groups/memory-status.js +66 -0
  85. package/lib/host/groups/memory-status.js.map +1 -0
  86. package/lib/host/groups/messages.d.ts +90 -0
  87. package/lib/host/groups/messages.js +20 -8
  88. package/lib/host/groups/messages.js.map +1 -1
  89. package/lib/host/groups/model-selection.js +1 -1
  90. package/lib/host/groups/model.d.ts +95 -0
  91. package/lib/host/groups/model.js +21 -2
  92. package/lib/host/groups/model.js.map +1 -1
  93. package/lib/host/groups/owner-follow-up.js +1 -1
  94. package/lib/host/groups/recall-sessions.d.ts +8 -0
  95. package/lib/host/groups/recall-sessions.js +20 -1
  96. package/lib/host/groups/recall-sessions.js.map +1 -1
  97. package/lib/host/groups/recall-tool.js +1 -1
  98. package/lib/host/groups/recall.d.ts +6 -2
  99. package/lib/host/groups/recall.js +63 -16
  100. package/lib/host/groups/recall.js.map +1 -1
  101. package/lib/host/groups/remote.d.ts +531 -0
  102. package/lib/host/groups/remote.js +81 -1
  103. package/lib/host/groups/remote.js.map +1 -1
  104. package/lib/host/groups/root-guard.js +1 -1
  105. package/lib/host/groups/roots.js +1 -1
  106. package/lib/host/groups/round-robin.js +1 -1
  107. package/lib/host/groups/routing.d.ts +29 -1
  108. package/lib/host/groups/routing.js +34 -3
  109. package/lib/host/groups/routing.js.map +1 -1
  110. package/lib/host/groups/service.d.ts +662 -4
  111. package/lib/host/groups/service.js +96 -9
  112. package/lib/host/groups/service.js.map +1 -1
  113. package/lib/host/groups/state.d.ts +229 -2
  114. package/lib/host/groups/state.js +32 -3
  115. package/lib/host/groups/state.js.map +1 -1
  116. package/lib/host/groups/supergroup-admission.d.ts +87 -0
  117. package/lib/host/groups/supergroup-admission.js +99 -0
  118. package/lib/host/groups/supergroup-admission.js.map +1 -0
  119. package/lib/host/groups/team-recipes.d.ts +125 -0
  120. package/lib/host/groups/team-recipes.js +100 -0
  121. package/lib/host/groups/team-recipes.js.map +1 -0
  122. package/lib/host/groups/turn-runner.d.ts +81 -0
  123. package/lib/host/groups/turn-runner.js +88 -18
  124. package/lib/host/groups/turn-runner.js.map +1 -1
  125. package/lib/host/groups/turns.d.ts +114 -1
  126. package/lib/host/groups/turns.js +67 -20
  127. package/lib/host/groups/turns.js.map +1 -1
  128. package/lib/host/groups/worker-tool.d.ts +8 -1
  129. package/lib/host/groups/worker-tool.js +87 -9
  130. package/lib/host/groups/worker-tool.js.map +1 -1
  131. package/lib/host/home.js +1 -1
  132. package/lib/host/im/service.js +1 -1
  133. package/lib/host/index.d.ts +2 -1
  134. package/lib/host/index.js +30 -2
  135. package/lib/host/index.js.map +1 -1
  136. package/lib/host/live-persona.js +1 -1
  137. package/lib/host/main-session.d.ts +5 -2
  138. package/lib/host/main-session.js +118 -12
  139. package/lib/host/main-session.js.map +1 -1
  140. package/lib/host/memory/admission.d.ts +1 -0
  141. package/lib/host/memory/admission.js +24 -1
  142. package/lib/host/memory/admission.js.map +1 -1
  143. package/lib/host/memory/auto-share.js +1 -1
  144. package/lib/host/memory/confirmation.d.ts +21 -5
  145. package/lib/host/memory/confirmation.js +1 -1
  146. package/lib/host/memory/conflicts.js +1 -1
  147. package/lib/host/memory/consolidation-config.d.ts +12 -0
  148. package/lib/host/memory/consolidation-config.js +13 -0
  149. package/lib/host/memory/consolidation-config.js.map +1 -0
  150. package/lib/host/memory/consolidation-native.d.ts +14 -0
  151. package/lib/host/memory/consolidation-native.js +72 -0
  152. package/lib/host/memory/consolidation-native.js.map +1 -0
  153. package/lib/host/memory/consolidation-source.d.ts +4 -0
  154. package/lib/host/memory/consolidation-source.js +25 -0
  155. package/lib/host/memory/consolidation-source.js.map +1 -0
  156. package/lib/host/memory/consolidation.d.ts +80 -0
  157. package/lib/host/memory/consolidation.js +270 -0
  158. package/lib/host/memory/consolidation.js.map +1 -0
  159. package/lib/host/memory/context.js +1 -1
  160. package/lib/host/memory/domain-v2.d.ts +53 -10
  161. package/lib/host/memory/domain-v2.js +5 -3
  162. package/lib/host/memory/domain-v2.js.map +1 -1
  163. package/lib/host/memory/facade.d.ts +147 -3
  164. package/lib/host/memory/facade.js +113 -3
  165. package/lib/host/memory/facade.js.map +1 -1
  166. package/lib/host/memory/forget-preview.js +1 -1
  167. package/lib/host/memory/forget-runner.js +1 -1
  168. package/lib/host/memory/forget-service.js +1 -1
  169. package/lib/host/memory/history-proof.js +1 -1
  170. package/lib/host/memory/history.js +1 -1
  171. package/lib/host/memory/layout-upgrade.js +23 -6
  172. package/lib/host/memory/layout-upgrade.js.map +1 -1
  173. package/lib/host/memory/migration.js +1 -1
  174. package/lib/host/memory/op-log.js +1 -1
  175. package/lib/host/memory/open-v2.js +1 -1
  176. package/lib/host/memory/owner-lease.js +1 -1
  177. package/lib/host/memory/persistent-map.js +1 -1
  178. package/lib/host/memory/port.js +1 -1
  179. package/lib/host/memory/preserve-inbox.js +1 -1
  180. package/lib/host/memory/projection.js +6 -1
  181. package/lib/host/memory/projection.js.map +1 -1
  182. package/lib/host/memory/prompt.js +1 -1
  183. package/lib/host/memory/query.js +1 -1
  184. package/lib/host/memory/quota-replay.js +1 -1
  185. package/lib/host/memory/quota.d.ts +21 -5
  186. package/lib/host/memory/quota.js +1 -1
  187. package/lib/host/memory/remote.d.ts +218 -0
  188. package/lib/host/memory/remote.js +41 -1
  189. package/lib/host/memory/remote.js.map +1 -1
  190. package/lib/host/memory/retrieval-config.js +1 -1
  191. package/lib/host/memory/retrieval-rank.js +1 -1
  192. package/lib/host/memory/retrieval-text.js +1 -1
  193. package/lib/host/memory/root-instructions.js +1 -1
  194. package/lib/host/memory/secrets.js +1 -1
  195. package/lib/host/memory/service.js +1 -1
  196. package/lib/host/memory/shards.js +1 -1
  197. package/lib/host/memory/store-v2.js +5 -2
  198. package/lib/host/memory/store-v2.js.map +1 -1
  199. package/lib/host/memory/temporal.js +3 -2
  200. package/lib/host/memory/temporal.js.map +1 -1
  201. package/lib/host/memory/tool-guidance.js +1 -1
  202. package/lib/host/memory/tools.js +1 -1
  203. package/lib/host/memory/trusted-ingress.js +1 -1
  204. package/lib/host/memory/version.d.ts +20 -4
  205. package/lib/host/memory/version.js +1 -1
  206. package/lib/host/messaging/config.js +1 -1
  207. package/lib/host/messaging/core.d.ts +11 -3
  208. package/lib/host/messaging/core.js +4 -3
  209. package/lib/host/messaging/core.js.map +1 -1
  210. package/lib/host/messaging/delivery.js +3 -1
  211. package/lib/host/messaging/delivery.js.map +1 -1
  212. package/lib/host/messaging/evidence.js +1 -1
  213. package/lib/host/messaging/interrupt.js +1 -1
  214. package/lib/host/messaging/recovery.js +1 -1
  215. package/lib/host/messaging/remote.d.ts +1 -1
  216. package/lib/host/messaging/remote.js +1 -1
  217. package/lib/host/messaging/reply-routing.js +1 -1
  218. package/lib/host/messaging/safety.js +8 -3
  219. package/lib/host/messaging/safety.js.map +1 -1
  220. package/lib/host/messaging/scoped-projection.d.ts +43 -0
  221. package/lib/host/messaging/scoped-projection.js +136 -0
  222. package/lib/host/messaging/scoped-projection.js.map +1 -0
  223. package/lib/host/messaging/service.d.ts +5 -2
  224. package/lib/host/messaging/service.js +16 -6
  225. package/lib/host/messaging/service.js.map +1 -1
  226. package/lib/host/messaging/store.d.ts +45 -13
  227. package/lib/host/messaging/store.js +4 -3
  228. package/lib/host/messaging/store.js.map +1 -1
  229. package/lib/host/messaging/tool.js +24 -5
  230. package/lib/host/messaging/tool.js.map +1 -1
  231. package/lib/host/messaging/wake.js +3 -3
  232. package/lib/host/messaging/wake.js.map +1 -1
  233. package/lib/host/native-schedule/outcomes.js +1 -1
  234. package/lib/host/native-schedule/service.js +10 -7
  235. package/lib/host/native-schedule/service.js.map +1 -1
  236. package/lib/host/notifications/data-flow.js +1 -1
  237. package/lib/host/notifications/remote.js +1 -1
  238. package/lib/host/notifications/service.js +1 -1
  239. package/lib/host/notifications/time.js +1 -1
  240. package/lib/host/notifications/tool.js +1 -1
  241. package/lib/host/onboarding/coordinator.js +1 -1
  242. package/lib/host/onboarding/guard.js +1 -1
  243. package/lib/host/proactive/auto-admission.js +1 -1
  244. package/lib/host/proactive/config.js +1 -1
  245. package/lib/host/proactive/coordinator-client.js +1 -1
  246. package/lib/host/proactive/deferred-notices.js +1 -1
  247. package/lib/host/proactive/execution-prompt.js +1 -1
  248. package/lib/host/proactive/execution.js +1 -1
  249. package/lib/host/proactive/executors/command.js +1 -1
  250. package/lib/host/proactive/executors/json-command-bridge-entry.js +1 -1
  251. package/lib/host/proactive/executors/json-command-bridge.js +1 -1
  252. package/lib/host/proactive/executors/loopback.js +1 -1
  253. package/lib/host/proactive/feedback-workflow.d.ts +3 -0
  254. package/lib/host/proactive/feedback-workflow.js +8 -3
  255. package/lib/host/proactive/feedback-workflow.js.map +1 -1
  256. package/lib/host/proactive/feedback.js +1 -1
  257. package/lib/host/proactive/follow-up-events.d.ts +2 -0
  258. package/lib/host/proactive/follow-up-events.js +63 -4
  259. package/lib/host/proactive/follow-up-events.js.map +1 -1
  260. package/lib/host/proactive/follow-up-facts.js +1 -1
  261. package/lib/host/proactive/follow-up-tool.js +3 -3
  262. package/lib/host/proactive/follow-up-tool.js.map +1 -1
  263. package/lib/host/proactive/governance-artifacts.js +1 -1
  264. package/lib/host/proactive/governance-service.js +1 -1
  265. package/lib/host/proactive/group-budget.js +1 -1
  266. package/lib/host/proactive/group-follow-up.js +1 -1
  267. package/lib/host/proactive/group-repair.js +1 -1
  268. package/lib/host/proactive/index.js +1 -1
  269. package/lib/host/proactive/lifecycle.js +1 -1
  270. package/lib/host/proactive/method-evaluation.js +1 -1
  271. package/lib/host/proactive/method-package.js +1 -1
  272. package/lib/host/proactive/method-skill.js +1 -1
  273. package/lib/host/proactive/model-budget.js +1 -1
  274. package/lib/host/proactive/notice-pump.js +1 -1
  275. package/lib/host/proactive/notification-bridge.js +1 -1
  276. package/lib/host/proactive/read-query.js +1 -1
  277. package/lib/host/proactive/remote.d.ts +169 -0
  278. package/lib/host/proactive/remote.js +1 -1
  279. package/lib/host/proactive/repair.js +1 -1
  280. package/lib/host/proactive/result-journal.js +1 -1
  281. package/lib/host/proactive/service.d.ts +1729 -51
  282. package/lib/host/proactive/service.js +48 -37
  283. package/lib/host/proactive/service.js.map +1 -1
  284. package/lib/host/proactive/session-history.d.ts +3 -0
  285. package/lib/host/proactive/session-history.js +21 -0
  286. package/lib/host/proactive/session-history.js.map +1 -0
  287. package/lib/host/proactive/setup.js +1 -1
  288. package/lib/host/proactive/sources/ci-feed.js +1 -1
  289. package/lib/host/proactive/sources/ci.js +1 -1
  290. package/lib/host/proactive/sources/github-ci.js +1 -1
  291. package/lib/host/proactive/task-cost.js +1 -1
  292. package/lib/host/proactive/wire.js +1 -1
  293. package/lib/host/proactive/work-continuation.js +1 -1
  294. package/lib/host/proactive/workspace-process.js +1 -1
  295. package/lib/host/proactive/workspace-repair.js +1 -1
  296. package/lib/host/reference-memory/backend.js +1 -1
  297. package/lib/host/reference-memory/cleanup-files.js +1 -1
  298. package/lib/host/reference-memory/copies.js +1 -1
  299. package/lib/host/reference-memory/files.js +1 -1
  300. package/lib/host/reference-memory/model.js +1 -1
  301. package/lib/host/reference-memory/service.js +1 -1
  302. package/lib/host/reference-memory/writer.js +1 -1
  303. package/lib/host/registry/identity.js +1 -1
  304. package/lib/host/registry/lifecycle.d.ts +4 -1
  305. package/lib/host/registry/lifecycle.js +3 -1
  306. package/lib/host/registry/lifecycle.js.map +1 -1
  307. package/lib/host/registry/mutations.js +1 -1
  308. package/lib/host/registry/presets.js +1 -1
  309. package/lib/host/registry/types.js +1 -1
  310. package/lib/host/registry-config.d.ts +5 -1
  311. package/lib/host/registry-config.js +11 -2
  312. package/lib/host/registry-config.js.map +1 -1
  313. package/lib/host/registry.d.ts +8 -0
  314. package/lib/host/registry.js +45 -4
  315. package/lib/host/registry.js.map +1 -1
  316. package/lib/host/shadow/budget.js +1 -1
  317. package/lib/host/shadow/config.js +1 -1
  318. package/lib/host/shadow/notification-adapter.js +1 -1
  319. package/lib/host/shadow/planner.js +1 -1
  320. package/lib/host/shadow/schedule-adapter.js +1 -1
  321. package/lib/host/shadow/service.js +1 -1
  322. package/lib/host/store.js +1 -1
  323. package/lib/host/stores/activity.js +1 -1
  324. package/lib/host/stores/bots.js +1 -1
  325. package/lib/host/stores/domain.js +1 -1
  326. package/lib/host/stores/memory.js +1 -1
  327. package/lib/host/supergroup/collaboration.d.ts +99 -0
  328. package/lib/host/supergroup/collaboration.js +362 -0
  329. package/lib/host/supergroup/collaboration.js.map +1 -0
  330. package/lib/host/supergroup/config.d.ts +15 -0
  331. package/lib/host/supergroup/config.js +34 -0
  332. package/lib/host/supergroup/config.js.map +1 -0
  333. package/lib/host/supergroup/input-capability.d.ts +4 -0
  334. package/lib/host/supergroup/input-capability.js +21 -0
  335. package/lib/host/supergroup/input-capability.js.map +1 -0
  336. package/lib/host/supergroup/recovery-view.d.ts +16 -0
  337. package/lib/host/supergroup/recovery-view.js +38 -0
  338. package/lib/host/supergroup/recovery-view.js.map +1 -0
  339. package/lib/host/supergroup/remote.d.ts +2064 -0
  340. package/lib/host/supergroup/remote.js +123 -0
  341. package/lib/host/supergroup/remote.js.map +1 -0
  342. package/lib/host/supergroup/service.d.ts +987 -0
  343. package/lib/host/supergroup/service.js +945 -0
  344. package/lib/host/supergroup/service.js.map +1 -0
  345. package/lib/host/supergroup/task-support.d.ts +266 -0
  346. package/lib/host/supergroup/task-support.js +323 -0
  347. package/lib/host/supergroup/task-support.js.map +1 -0
  348. package/lib/host/supergroup/tool.d.ts +4 -0
  349. package/lib/host/supergroup/tool.js +74 -0
  350. package/lib/host/supergroup/tool.js.map +1 -0
  351. package/lib/host/tools/bot-manage.js +7 -3
  352. package/lib/host/tools/bot-manage.js.map +1 -1
  353. package/lib/host/workspace/remote.js +1 -1
  354. package/lib/host/workspace/service.js +1 -1
  355. package/lib/index.d.ts +1 -1
  356. package/lib/index.js +1 -1
  357. package/lib/module-manifest.json +288 -258
  358. package/lib/proactive-coordinator/main.mjs +236 -25
  359. package/lib/proactive-coordinator/provenance.json +1 -1
  360. package/lib/shared/activity-preview.js +1 -1
  361. package/lib/shared/activity.js +1 -1
  362. package/lib/shared/automation-contract.js +1 -1
  363. package/lib/shared/automation.js +1 -1
  364. package/lib/shared/bot-brand.js +1 -1
  365. package/lib/shared/capabilities-contract.js +1 -1
  366. package/lib/shared/collaboration-contract.js +1 -1
  367. package/lib/shared/collaboration.js +1 -1
  368. package/lib/shared/connectors.js +1 -1
  369. package/lib/shared/data-flow.d.ts +1 -0
  370. package/lib/shared/data-flow.js +3 -1
  371. package/lib/shared/data-flow.js.map +1 -1
  372. package/lib/shared/eval-budget.js +1 -1
  373. package/lib/shared/group-export-review.d.ts +3 -0
  374. package/lib/shared/group-export-review.js +12 -0
  375. package/lib/shared/group-export-review.js.map +1 -0
  376. package/lib/shared/group-limits.d.ts +4 -0
  377. package/lib/shared/group-limits.js +6 -0
  378. package/lib/shared/group-limits.js.map +1 -0
  379. package/lib/shared/group-recall-reads.js +1 -1
  380. package/lib/shared/group-recall.js +1 -1
  381. package/lib/shared/groups-contract.d.ts +3002 -3
  382. package/lib/shared/groups-contract.js +25 -2
  383. package/lib/shared/groups-contract.js.map +1 -1
  384. package/lib/shared/groups.d.ts +317 -0
  385. package/lib/shared/groups.js +69 -8
  386. package/lib/shared/groups.js.map +1 -1
  387. package/lib/shared/identity.js +1 -1
  388. package/lib/shared/ids.js +1 -1
  389. package/lib/shared/integrations-contract.js +1 -1
  390. package/lib/shared/integrations.js +1 -1
  391. package/lib/shared/managed-flow.d.ts +4 -0
  392. package/lib/shared/managed-flow.js +2 -2
  393. package/lib/shared/managed-flow.js.map +1 -1
  394. package/lib/shared/memory-consolidation.d.ts +104 -0
  395. package/lib/shared/memory-consolidation.js +23 -0
  396. package/lib/shared/memory-consolidation.js.map +1 -0
  397. package/lib/shared/memory-forget.js +1 -1
  398. package/lib/shared/memory-management.d.ts +491 -1
  399. package/lib/shared/memory-management.js +9 -1
  400. package/lib/shared/memory-management.js.map +1 -1
  401. package/lib/shared/memory-ops.d.ts +17 -1
  402. package/lib/shared/memory-ops.js +1 -1
  403. package/lib/shared/memory-tool-names.js +1 -1
  404. package/lib/shared/memory-v2.d.ts +16 -0
  405. package/lib/shared/memory-v2.js +3 -1
  406. package/lib/shared/memory-v2.js.map +1 -1
  407. package/lib/shared/messaging-contract.d.ts +1 -1
  408. package/lib/shared/messaging-contract.js +1 -1
  409. package/lib/shared/messaging.d.ts +21 -10
  410. package/lib/shared/messaging.js +3 -1
  411. package/lib/shared/messaging.js.map +1 -1
  412. package/lib/shared/native-schedule.d.ts +21 -0
  413. package/lib/shared/native-schedule.js +15 -1
  414. package/lib/shared/native-schedule.js.map +1 -1
  415. package/lib/shared/notifications.js +1 -1
  416. package/lib/shared/onboarding-source.js +1 -1
  417. package/lib/shared/onboarding.js +1 -1
  418. package/lib/shared/operation-errors.d.ts +6 -0
  419. package/lib/shared/operation-errors.js +7 -1
  420. package/lib/shared/operation-errors.js.map +1 -1
  421. package/lib/shared/proactive/activity.js +1 -1
  422. package/lib/shared/proactive/document.js +1 -1
  423. package/lib/shared/proactive/feedback.d.ts +12 -0
  424. package/lib/shared/proactive/feedback.js +2 -2
  425. package/lib/shared/proactive/feedback.js.map +1 -1
  426. package/lib/shared/proactive/follow-up.d.ts +460 -0
  427. package/lib/shared/proactive/follow-up.js +15 -1
  428. package/lib/shared/proactive/follow-up.js.map +1 -1
  429. package/lib/shared/proactive/governance.js +1 -1
  430. package/lib/shared/proactive/group-follow-up.js +1 -1
  431. package/lib/shared/proactive/group-repair.js +1 -1
  432. package/lib/shared/proactive/handoff.js +1 -1
  433. package/lib/shared/proactive/method-evaluation.d.ts +4 -0
  434. package/lib/shared/proactive/method-evaluation.js +2 -1
  435. package/lib/shared/proactive/method-evaluation.js.map +1 -1
  436. package/lib/shared/proactive/method-package.js +1 -1
  437. package/lib/shared/proactive/notices.js +1 -1
  438. package/lib/shared/proactive/outcomes.js +1 -1
  439. package/lib/shared/proactive/protocol.d.ts +651 -0
  440. package/lib/shared/proactive/protocol.js +1 -1
  441. package/lib/shared/proactive/remote-contract.d.ts +828 -0
  442. package/lib/shared/proactive/remote-contract.js +1 -1
  443. package/lib/shared/proactive/repair.js +1 -1
  444. package/lib/shared/proactive/responsibility.js +1 -1
  445. package/lib/shared/proactive/setup.d.ts +83 -0
  446. package/lib/shared/proactive/setup.js +1 -1
  447. package/lib/shared/proactive/work-progress.js +1 -1
  448. package/lib/shared/proactive/work.js +1 -1
  449. package/lib/shared/proactive/workspace-repair.js +1 -1
  450. package/lib/shared/reference-memory.js +1 -1
  451. package/lib/shared/remote-contract.d.ts +1081 -47
  452. package/lib/shared/remote-contract.js +28 -2
  453. package/lib/shared/remote-contract.js.map +1 -1
  454. package/lib/shared/routine-outcomes.js +1 -1
  455. package/lib/shared/schema.js +1 -1
  456. package/lib/shared/secrets.js +1 -1
  457. package/lib/shared/shadow.js +1 -1
  458. package/lib/shared/supergroup-contract.d.ts +7535 -0
  459. package/lib/shared/supergroup-contract.js +26 -0
  460. package/lib/shared/supergroup-contract.js.map +1 -0
  461. package/lib/shared/supergroup.d.ts +1495 -0
  462. package/lib/shared/supergroup.js +56 -0
  463. package/lib/shared/supergroup.js.map +1 -0
  464. package/lib/shared/task-materials.d.ts +200 -0
  465. package/lib/shared/task-materials.js +44 -0
  466. package/lib/shared/task-materials.js.map +1 -0
  467. package/lib/shared/team-recipes.d.ts +130 -0
  468. package/lib/shared/team-recipes.js +28 -0
  469. package/lib/shared/team-recipes.js.map +1 -0
  470. package/lib/shared/version.d.ts +1 -1
  471. package/lib/shared/version.js +2 -2
  472. package/lib/shared/workspace-contract.js +1 -1
  473. package/lib/shared/workspace.js +1 -1
  474. package/lib/typert.host.js +1 -1
  475. package/lib/typert.remote-client.js +1 -1
  476. package/locale/en.json +305 -7
  477. package/locale/zh.json +305 -7
  478. 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;
@@ -1597,6 +1846,7 @@ export declare class ProactiveService {
1597
1846
  }[];
1598
1847
  operationId?: string | undefined;
1599
1848
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
1849
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
1600
1850
  } | undefined;
1601
1851
  failureKey?: string | undefined;
1602
1852
  evaluation?: {
@@ -2009,6 +2259,7 @@ export declare class ProactiveService {
2009
2259
  }[];
2010
2260
  operationId?: string | undefined;
2011
2261
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
2262
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
2012
2263
  } | undefined;
2013
2264
  failureKey?: string | undefined;
2014
2265
  evaluation?: {
@@ -2504,6 +2755,7 @@ export declare class ProactiveService {
2504
2755
  }[];
2505
2756
  operationId?: string | undefined;
2506
2757
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
2758
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
2507
2759
  } | undefined;
2508
2760
  failureKey?: string | undefined;
2509
2761
  evaluation?: {
@@ -4754,6 +5006,89 @@ export declare class ProactiveService {
4754
5006
  reason: "completed" | "cancelled" | "resolved";
4755
5007
  };
4756
5008
  state: "closed" | "stopped" | "open" | "ignored";
5009
+ completionTarget?: {
5010
+ kind: "subtask-completed";
5011
+ cardId: string;
5012
+ origin: {
5013
+ kind: "work";
5014
+ ticketId: string;
5015
+ assignmentId: string;
5016
+ } | {
5017
+ kind: "delegate";
5018
+ runId: string;
5019
+ sessionId?: string | undefined;
5020
+ } | {
5021
+ kind: "native-subagent";
5022
+ sessionId: string;
5023
+ childSessionId: string;
5024
+ turn: number;
5025
+ } | {
5026
+ kind: "team-task";
5027
+ teamId: string;
5028
+ taskId: string;
5029
+ sessionId?: string | undefined;
5030
+ } | {
5031
+ kind: "group-turn";
5032
+ turnId: string;
5033
+ };
5034
+ sourceGeneration: number;
5035
+ afterRevision: number;
5036
+ } | {
5037
+ kind: "ci-completed";
5038
+ cardId: string;
5039
+ origin: {
5040
+ kind: "work";
5041
+ ticketId: string;
5042
+ assignmentId: string;
5043
+ };
5044
+ sourceId: string;
5045
+ sourceGeneration: number;
5046
+ threadId: string;
5047
+ afterAttempt: number;
5048
+ afterObservedAt: string;
5049
+ } | undefined;
5050
+ when?: {
5051
+ kind: "subtask-completed";
5052
+ cardId: string;
5053
+ origin: {
5054
+ kind: "work";
5055
+ ticketId: string;
5056
+ assignmentId: string;
5057
+ } | {
5058
+ kind: "delegate";
5059
+ runId: string;
5060
+ sessionId?: string | undefined;
5061
+ } | {
5062
+ kind: "native-subagent";
5063
+ sessionId: string;
5064
+ childSessionId: string;
5065
+ turn: number;
5066
+ } | {
5067
+ kind: "team-task";
5068
+ teamId: string;
5069
+ taskId: string;
5070
+ sessionId?: string | undefined;
5071
+ } | {
5072
+ kind: "group-turn";
5073
+ turnId: string;
5074
+ };
5075
+ sourceGeneration: number;
5076
+ afterRevision: number;
5077
+ } | {
5078
+ kind: "ci-completed";
5079
+ cardId: string;
5080
+ origin: {
5081
+ kind: "work";
5082
+ ticketId: string;
5083
+ assignmentId: string;
5084
+ };
5085
+ sourceId: string;
5086
+ sourceGeneration: number;
5087
+ threadId: string;
5088
+ afterAttempt: number;
5089
+ afterObservedAt: string;
5090
+ } | undefined;
5091
+ deadlineAt?: string | undefined;
4757
5092
  }[];
4758
5093
  };
4759
5094
  protocolVersion: 1;
@@ -4838,6 +5173,89 @@ export declare class ProactiveService {
4838
5173
  reason: "completed" | "cancelled" | "resolved";
4839
5174
  };
4840
5175
  state: "closed" | "stopped" | "open" | "ignored";
5176
+ completionTarget?: {
5177
+ kind: "subtask-completed";
5178
+ cardId: string;
5179
+ origin: {
5180
+ kind: "work";
5181
+ ticketId: string;
5182
+ assignmentId: string;
5183
+ } | {
5184
+ kind: "delegate";
5185
+ runId: string;
5186
+ sessionId?: string | undefined;
5187
+ } | {
5188
+ kind: "native-subagent";
5189
+ sessionId: string;
5190
+ childSessionId: string;
5191
+ turn: number;
5192
+ } | {
5193
+ kind: "team-task";
5194
+ teamId: string;
5195
+ taskId: string;
5196
+ sessionId?: string | undefined;
5197
+ } | {
5198
+ kind: "group-turn";
5199
+ turnId: string;
5200
+ };
5201
+ sourceGeneration: number;
5202
+ afterRevision: number;
5203
+ } | {
5204
+ kind: "ci-completed";
5205
+ cardId: string;
5206
+ origin: {
5207
+ kind: "work";
5208
+ ticketId: string;
5209
+ assignmentId: string;
5210
+ };
5211
+ sourceId: string;
5212
+ sourceGeneration: number;
5213
+ threadId: string;
5214
+ afterAttempt: number;
5215
+ afterObservedAt: string;
5216
+ } | undefined;
5217
+ when?: {
5218
+ kind: "subtask-completed";
5219
+ cardId: string;
5220
+ origin: {
5221
+ kind: "work";
5222
+ ticketId: string;
5223
+ assignmentId: string;
5224
+ } | {
5225
+ kind: "delegate";
5226
+ runId: string;
5227
+ sessionId?: string | undefined;
5228
+ } | {
5229
+ kind: "native-subagent";
5230
+ sessionId: string;
5231
+ childSessionId: string;
5232
+ turn: number;
5233
+ } | {
5234
+ kind: "team-task";
5235
+ teamId: string;
5236
+ taskId: string;
5237
+ sessionId?: string | undefined;
5238
+ } | {
5239
+ kind: "group-turn";
5240
+ turnId: string;
5241
+ };
5242
+ sourceGeneration: number;
5243
+ afterRevision: number;
5244
+ } | {
5245
+ kind: "ci-completed";
5246
+ cardId: string;
5247
+ origin: {
5248
+ kind: "work";
5249
+ ticketId: string;
5250
+ assignmentId: string;
5251
+ };
5252
+ sourceId: string;
5253
+ sourceGeneration: number;
5254
+ threadId: string;
5255
+ afterAttempt: number;
5256
+ afterObservedAt: string;
5257
+ } | undefined;
5258
+ deadlineAt?: string | undefined;
4841
5259
  }[];
4842
5260
  next?: string | undefined;
4843
5261
  };
@@ -4959,26 +5377,109 @@ export declare class ProactiveService {
4959
5377
  reason: "completed" | "cancelled" | "resolved";
4960
5378
  };
4961
5379
  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;
5380
+ completionTarget?: {
5381
+ kind: "subtask-completed";
5382
+ cardId: string;
5383
+ origin: {
5384
+ kind: "work";
5385
+ ticketId: string;
5386
+ assignmentId: string;
5387
+ } | {
5388
+ kind: "delegate";
5389
+ runId: string;
5390
+ sessionId?: string | undefined;
5391
+ } | {
5392
+ kind: "native-subagent";
5393
+ sessionId: string;
5394
+ childSessionId: string;
5395
+ turn: number;
5396
+ } | {
5397
+ kind: "team-task";
5398
+ teamId: string;
5399
+ taskId: string;
5400
+ sessionId?: string | undefined;
5401
+ } | {
5402
+ kind: "group-turn";
5403
+ turnId: string;
5404
+ };
5405
+ sourceGeneration: number;
5406
+ afterRevision: number;
5407
+ } | {
5408
+ kind: "ci-completed";
5409
+ cardId: string;
5410
+ origin: {
5411
+ kind: "work";
5412
+ ticketId: string;
5413
+ assignmentId: string;
5414
+ };
5415
+ sourceId: string;
5416
+ sourceGeneration: number;
5417
+ threadId: string;
5418
+ afterAttempt: number;
5419
+ afterObservedAt: string;
5420
+ } | undefined;
5421
+ when?: {
5422
+ kind: "subtask-completed";
5423
+ cardId: string;
5424
+ origin: {
5425
+ kind: "work";
5426
+ ticketId: string;
5427
+ assignmentId: string;
5428
+ } | {
5429
+ kind: "delegate";
5430
+ runId: string;
5431
+ sessionId?: string | undefined;
5432
+ } | {
5433
+ kind: "native-subagent";
5434
+ sessionId: string;
5435
+ childSessionId: string;
5436
+ turn: number;
5437
+ } | {
5438
+ kind: "team-task";
5439
+ teamId: string;
5440
+ taskId: string;
5441
+ sessionId?: string | undefined;
5442
+ } | {
5443
+ kind: "group-turn";
5444
+ turnId: string;
5445
+ };
5446
+ sourceGeneration: number;
5447
+ afterRevision: number;
5448
+ } | {
5449
+ kind: "ci-completed";
5450
+ cardId: string;
5451
+ origin: {
5452
+ kind: "work";
5453
+ ticketId: string;
5454
+ assignmentId: string;
5455
+ };
5456
+ sourceId: string;
5457
+ sourceGeneration: number;
5458
+ threadId: string;
5459
+ afterAttempt: number;
5460
+ afterObservedAt: string;
5461
+ } | undefined;
5462
+ deadlineAt?: string | undefined;
5463
+ } | null;
5464
+ activationEpoch: string | null;
5465
+ protocolVersion: 1;
5466
+ correlationId: string;
5467
+ } | {
5468
+ rows: {
5469
+ subject: {
5470
+ kind: "bot";
5471
+ bot: {
5472
+ botId: string;
5473
+ botCreatedAt: number;
5474
+ };
5475
+ } | {
5476
+ kind: "group";
5477
+ group: {
5478
+ groupId: string;
5479
+ groupCreatedAt: number;
5480
+ };
5481
+ };
5482
+ revision: number;
4982
5483
  pauseEpoch: number;
4983
5484
  localEnabled: boolean;
4984
5485
  legacyCi: "denied" | "inherit";
@@ -6204,6 +6705,7 @@ export declare class ProactiveService {
6204
6705
  }[];
6205
6706
  operationId?: string | undefined;
6206
6707
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
6708
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
6207
6709
  } | undefined;
6208
6710
  failureKey?: string | undefined;
6209
6711
  evaluation?: {
@@ -6616,6 +7118,7 @@ export declare class ProactiveService {
6616
7118
  }[];
6617
7119
  operationId?: string | undefined;
6618
7120
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
7121
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
6619
7122
  } | undefined;
6620
7123
  failureKey?: string | undefined;
6621
7124
  evaluation?: {
@@ -7111,6 +7614,7 @@ export declare class ProactiveService {
7111
7614
  }[];
7112
7615
  operationId?: string | undefined;
7113
7616
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
7617
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
7114
7618
  } | undefined;
7115
7619
  failureKey?: string | undefined;
7116
7620
  evaluation?: {
@@ -9359,6 +9863,89 @@ export declare class ProactiveService {
9359
9863
  reason: "completed" | "cancelled" | "resolved";
9360
9864
  };
9361
9865
  state: "closed" | "stopped" | "open" | "ignored";
9866
+ completionTarget?: {
9867
+ kind: "subtask-completed";
9868
+ cardId: string;
9869
+ origin: {
9870
+ kind: "work";
9871
+ ticketId: string;
9872
+ assignmentId: string;
9873
+ } | {
9874
+ kind: "delegate";
9875
+ runId: string;
9876
+ sessionId?: string | undefined;
9877
+ } | {
9878
+ kind: "native-subagent";
9879
+ sessionId: string;
9880
+ childSessionId: string;
9881
+ turn: number;
9882
+ } | {
9883
+ kind: "team-task";
9884
+ teamId: string;
9885
+ taskId: string;
9886
+ sessionId?: string | undefined;
9887
+ } | {
9888
+ kind: "group-turn";
9889
+ turnId: string;
9890
+ };
9891
+ sourceGeneration: number;
9892
+ afterRevision: number;
9893
+ } | {
9894
+ kind: "ci-completed";
9895
+ cardId: string;
9896
+ origin: {
9897
+ kind: "work";
9898
+ ticketId: string;
9899
+ assignmentId: string;
9900
+ };
9901
+ sourceId: string;
9902
+ sourceGeneration: number;
9903
+ threadId: string;
9904
+ afterAttempt: number;
9905
+ afterObservedAt: string;
9906
+ } | undefined;
9907
+ when?: {
9908
+ kind: "subtask-completed";
9909
+ cardId: string;
9910
+ origin: {
9911
+ kind: "work";
9912
+ ticketId: string;
9913
+ assignmentId: string;
9914
+ } | {
9915
+ kind: "delegate";
9916
+ runId: string;
9917
+ sessionId?: string | undefined;
9918
+ } | {
9919
+ kind: "native-subagent";
9920
+ sessionId: string;
9921
+ childSessionId: string;
9922
+ turn: number;
9923
+ } | {
9924
+ kind: "team-task";
9925
+ teamId: string;
9926
+ taskId: string;
9927
+ sessionId?: string | undefined;
9928
+ } | {
9929
+ kind: "group-turn";
9930
+ turnId: string;
9931
+ };
9932
+ sourceGeneration: number;
9933
+ afterRevision: number;
9934
+ } | {
9935
+ kind: "ci-completed";
9936
+ cardId: string;
9937
+ origin: {
9938
+ kind: "work";
9939
+ ticketId: string;
9940
+ assignmentId: string;
9941
+ };
9942
+ sourceId: string;
9943
+ sourceGeneration: number;
9944
+ threadId: string;
9945
+ afterAttempt: number;
9946
+ afterObservedAt: string;
9947
+ } | undefined;
9948
+ deadlineAt?: string | undefined;
9362
9949
  }[];
9363
9950
  };
9364
9951
  protocolVersion: 1;
@@ -9443,6 +10030,89 @@ export declare class ProactiveService {
9443
10030
  reason: "completed" | "cancelled" | "resolved";
9444
10031
  };
9445
10032
  state: "closed" | "stopped" | "open" | "ignored";
10033
+ completionTarget?: {
10034
+ kind: "subtask-completed";
10035
+ cardId: string;
10036
+ origin: {
10037
+ kind: "work";
10038
+ ticketId: string;
10039
+ assignmentId: string;
10040
+ } | {
10041
+ kind: "delegate";
10042
+ runId: string;
10043
+ sessionId?: string | undefined;
10044
+ } | {
10045
+ kind: "native-subagent";
10046
+ sessionId: string;
10047
+ childSessionId: string;
10048
+ turn: number;
10049
+ } | {
10050
+ kind: "team-task";
10051
+ teamId: string;
10052
+ taskId: string;
10053
+ sessionId?: string | undefined;
10054
+ } | {
10055
+ kind: "group-turn";
10056
+ turnId: string;
10057
+ };
10058
+ sourceGeneration: number;
10059
+ afterRevision: number;
10060
+ } | {
10061
+ kind: "ci-completed";
10062
+ cardId: string;
10063
+ origin: {
10064
+ kind: "work";
10065
+ ticketId: string;
10066
+ assignmentId: string;
10067
+ };
10068
+ sourceId: string;
10069
+ sourceGeneration: number;
10070
+ threadId: string;
10071
+ afterAttempt: number;
10072
+ afterObservedAt: string;
10073
+ } | undefined;
10074
+ when?: {
10075
+ kind: "subtask-completed";
10076
+ cardId: string;
10077
+ origin: {
10078
+ kind: "work";
10079
+ ticketId: string;
10080
+ assignmentId: string;
10081
+ } | {
10082
+ kind: "delegate";
10083
+ runId: string;
10084
+ sessionId?: string | undefined;
10085
+ } | {
10086
+ kind: "native-subagent";
10087
+ sessionId: string;
10088
+ childSessionId: string;
10089
+ turn: number;
10090
+ } | {
10091
+ kind: "team-task";
10092
+ teamId: string;
10093
+ taskId: string;
10094
+ sessionId?: string | undefined;
10095
+ } | {
10096
+ kind: "group-turn";
10097
+ turnId: string;
10098
+ };
10099
+ sourceGeneration: number;
10100
+ afterRevision: number;
10101
+ } | {
10102
+ kind: "ci-completed";
10103
+ cardId: string;
10104
+ origin: {
10105
+ kind: "work";
10106
+ ticketId: string;
10107
+ assignmentId: string;
10108
+ };
10109
+ sourceId: string;
10110
+ sourceGeneration: number;
10111
+ threadId: string;
10112
+ afterAttempt: number;
10113
+ afterObservedAt: string;
10114
+ } | undefined;
10115
+ deadlineAt?: string | undefined;
9446
10116
  }[];
9447
10117
  next?: string | undefined;
9448
10118
  };
@@ -9564,6 +10234,89 @@ export declare class ProactiveService {
9564
10234
  reason: "completed" | "cancelled" | "resolved";
9565
10235
  };
9566
10236
  state: "closed" | "stopped" | "open" | "ignored";
10237
+ completionTarget?: {
10238
+ kind: "subtask-completed";
10239
+ cardId: string;
10240
+ origin: {
10241
+ kind: "work";
10242
+ ticketId: string;
10243
+ assignmentId: string;
10244
+ } | {
10245
+ kind: "delegate";
10246
+ runId: string;
10247
+ sessionId?: string | undefined;
10248
+ } | {
10249
+ kind: "native-subagent";
10250
+ sessionId: string;
10251
+ childSessionId: string;
10252
+ turn: number;
10253
+ } | {
10254
+ kind: "team-task";
10255
+ teamId: string;
10256
+ taskId: string;
10257
+ sessionId?: string | undefined;
10258
+ } | {
10259
+ kind: "group-turn";
10260
+ turnId: string;
10261
+ };
10262
+ sourceGeneration: number;
10263
+ afterRevision: number;
10264
+ } | {
10265
+ kind: "ci-completed";
10266
+ cardId: string;
10267
+ origin: {
10268
+ kind: "work";
10269
+ ticketId: string;
10270
+ assignmentId: string;
10271
+ };
10272
+ sourceId: string;
10273
+ sourceGeneration: number;
10274
+ threadId: string;
10275
+ afterAttempt: number;
10276
+ afterObservedAt: string;
10277
+ } | undefined;
10278
+ when?: {
10279
+ kind: "subtask-completed";
10280
+ cardId: string;
10281
+ origin: {
10282
+ kind: "work";
10283
+ ticketId: string;
10284
+ assignmentId: string;
10285
+ } | {
10286
+ kind: "delegate";
10287
+ runId: string;
10288
+ sessionId?: string | undefined;
10289
+ } | {
10290
+ kind: "native-subagent";
10291
+ sessionId: string;
10292
+ childSessionId: string;
10293
+ turn: number;
10294
+ } | {
10295
+ kind: "team-task";
10296
+ teamId: string;
10297
+ taskId: string;
10298
+ sessionId?: string | undefined;
10299
+ } | {
10300
+ kind: "group-turn";
10301
+ turnId: string;
10302
+ };
10303
+ sourceGeneration: number;
10304
+ afterRevision: number;
10305
+ } | {
10306
+ kind: "ci-completed";
10307
+ cardId: string;
10308
+ origin: {
10309
+ kind: "work";
10310
+ ticketId: string;
10311
+ assignmentId: string;
10312
+ };
10313
+ sourceId: string;
10314
+ sourceGeneration: number;
10315
+ threadId: string;
10316
+ afterAttempt: number;
10317
+ afterObservedAt: string;
10318
+ } | undefined;
10319
+ deadlineAt?: string | undefined;
9567
10320
  } | null;
9568
10321
  activationEpoch: string | null;
9569
10322
  protocolVersion: 1;
@@ -10809,6 +11562,7 @@ export declare class ProactiveService {
10809
11562
  }[];
10810
11563
  operationId?: string | undefined;
10811
11564
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
11565
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
10812
11566
  } | undefined;
10813
11567
  failureKey?: string | undefined;
10814
11568
  evaluation?: {
@@ -11221,6 +11975,7 @@ export declare class ProactiveService {
11221
11975
  }[];
11222
11976
  operationId?: string | undefined;
11223
11977
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
11978
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
11224
11979
  } | undefined;
11225
11980
  failureKey?: string | undefined;
11226
11981
  evaluation?: {
@@ -11716,6 +12471,7 @@ export declare class ProactiveService {
11716
12471
  }[];
11717
12472
  operationId?: string | undefined;
11718
12473
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
12474
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
11719
12475
  } | undefined;
11720
12476
  failureKey?: string | undefined;
11721
12477
  evaluation?: {
@@ -13963,22 +14719,105 @@ export declare class ProactiveService {
13963
14719
  reason: "completed" | "cancelled" | "resolved";
13964
14720
  };
13965
14721
  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;
14722
+ completionTarget?: {
14723
+ kind: "subtask-completed";
14724
+ cardId: string;
14725
+ origin: {
14726
+ kind: "work";
14727
+ ticketId: string;
14728
+ assignmentId: string;
14729
+ } | {
14730
+ kind: "delegate";
14731
+ runId: string;
14732
+ sessionId?: string | undefined;
14733
+ } | {
14734
+ kind: "native-subagent";
14735
+ sessionId: string;
14736
+ childSessionId: string;
14737
+ turn: number;
14738
+ } | {
14739
+ kind: "team-task";
14740
+ teamId: string;
14741
+ taskId: string;
14742
+ sessionId?: string | undefined;
14743
+ } | {
14744
+ kind: "group-turn";
14745
+ turnId: string;
14746
+ };
14747
+ sourceGeneration: number;
14748
+ afterRevision: number;
14749
+ } | {
14750
+ kind: "ci-completed";
14751
+ cardId: string;
14752
+ origin: {
14753
+ kind: "work";
14754
+ ticketId: string;
14755
+ assignmentId: string;
14756
+ };
14757
+ sourceId: string;
14758
+ sourceGeneration: number;
14759
+ threadId: string;
14760
+ afterAttempt: number;
14761
+ afterObservedAt: string;
14762
+ } | undefined;
14763
+ when?: {
14764
+ kind: "subtask-completed";
14765
+ cardId: string;
14766
+ origin: {
14767
+ kind: "work";
14768
+ ticketId: string;
14769
+ assignmentId: string;
14770
+ } | {
14771
+ kind: "delegate";
14772
+ runId: string;
14773
+ sessionId?: string | undefined;
14774
+ } | {
14775
+ kind: "native-subagent";
14776
+ sessionId: string;
14777
+ childSessionId: string;
14778
+ turn: number;
14779
+ } | {
14780
+ kind: "team-task";
14781
+ teamId: string;
14782
+ taskId: string;
14783
+ sessionId?: string | undefined;
14784
+ } | {
14785
+ kind: "group-turn";
14786
+ turnId: string;
14787
+ };
14788
+ sourceGeneration: number;
14789
+ afterRevision: number;
14790
+ } | {
14791
+ kind: "ci-completed";
14792
+ cardId: string;
14793
+ origin: {
14794
+ kind: "work";
14795
+ ticketId: string;
14796
+ assignmentId: string;
14797
+ };
14798
+ sourceId: string;
14799
+ sourceGeneration: number;
14800
+ threadId: string;
14801
+ afterAttempt: number;
14802
+ afterObservedAt: string;
14803
+ } | undefined;
14804
+ deadlineAt?: string | undefined;
14805
+ }[];
14806
+ }>;
14807
+ followUpPage(input: FollowUpPageRequest): Promise<{
14808
+ rows: {
14809
+ id: string;
14810
+ decisionId: string;
14811
+ subject: {
14812
+ kind: "bot";
14813
+ bot: {
14814
+ botId: string;
14815
+ botCreatedAt: number;
14816
+ };
14817
+ } | {
14818
+ kind: "group";
14819
+ group: {
14820
+ groupId: string;
13982
14821
  groupCreatedAt: number;
13983
14822
  };
13984
14823
  };
@@ -14043,6 +14882,89 @@ export declare class ProactiveService {
14043
14882
  reason: "completed" | "cancelled" | "resolved";
14044
14883
  };
14045
14884
  state: "closed" | "stopped" | "open" | "ignored";
14885
+ completionTarget?: {
14886
+ kind: "subtask-completed";
14887
+ cardId: string;
14888
+ origin: {
14889
+ kind: "work";
14890
+ ticketId: string;
14891
+ assignmentId: string;
14892
+ } | {
14893
+ kind: "delegate";
14894
+ runId: string;
14895
+ sessionId?: string | undefined;
14896
+ } | {
14897
+ kind: "native-subagent";
14898
+ sessionId: string;
14899
+ childSessionId: string;
14900
+ turn: number;
14901
+ } | {
14902
+ kind: "team-task";
14903
+ teamId: string;
14904
+ taskId: string;
14905
+ sessionId?: string | undefined;
14906
+ } | {
14907
+ kind: "group-turn";
14908
+ turnId: string;
14909
+ };
14910
+ sourceGeneration: number;
14911
+ afterRevision: number;
14912
+ } | {
14913
+ kind: "ci-completed";
14914
+ cardId: string;
14915
+ origin: {
14916
+ kind: "work";
14917
+ ticketId: string;
14918
+ assignmentId: string;
14919
+ };
14920
+ sourceId: string;
14921
+ sourceGeneration: number;
14922
+ threadId: string;
14923
+ afterAttempt: number;
14924
+ afterObservedAt: string;
14925
+ } | undefined;
14926
+ when?: {
14927
+ kind: "subtask-completed";
14928
+ cardId: string;
14929
+ origin: {
14930
+ kind: "work";
14931
+ ticketId: string;
14932
+ assignmentId: string;
14933
+ } | {
14934
+ kind: "delegate";
14935
+ runId: string;
14936
+ sessionId?: string | undefined;
14937
+ } | {
14938
+ kind: "native-subagent";
14939
+ sessionId: string;
14940
+ childSessionId: string;
14941
+ turn: number;
14942
+ } | {
14943
+ kind: "team-task";
14944
+ teamId: string;
14945
+ taskId: string;
14946
+ sessionId?: string | undefined;
14947
+ } | {
14948
+ kind: "group-turn";
14949
+ turnId: string;
14950
+ };
14951
+ sourceGeneration: number;
14952
+ afterRevision: number;
14953
+ } | {
14954
+ kind: "ci-completed";
14955
+ cardId: string;
14956
+ origin: {
14957
+ kind: "work";
14958
+ ticketId: string;
14959
+ assignmentId: string;
14960
+ };
14961
+ sourceId: string;
14962
+ sourceGeneration: number;
14963
+ threadId: string;
14964
+ afterAttempt: number;
14965
+ afterObservedAt: string;
14966
+ } | undefined;
14967
+ deadlineAt?: string | undefined;
14046
14968
  }[];
14047
14969
  next?: string | undefined;
14048
14970
  }>;
@@ -15950,6 +16872,89 @@ export declare class ProactiveService {
15950
16872
  reason: "completed" | "cancelled" | "resolved";
15951
16873
  };
15952
16874
  state: "closed" | "stopped" | "open" | "ignored";
16875
+ completionTarget?: {
16876
+ kind: "subtask-completed";
16877
+ cardId: string;
16878
+ origin: {
16879
+ kind: "work";
16880
+ ticketId: string;
16881
+ assignmentId: string;
16882
+ } | {
16883
+ kind: "delegate";
16884
+ runId: string;
16885
+ sessionId?: string | undefined;
16886
+ } | {
16887
+ kind: "native-subagent";
16888
+ sessionId: string;
16889
+ childSessionId: string;
16890
+ turn: number;
16891
+ } | {
16892
+ kind: "team-task";
16893
+ teamId: string;
16894
+ taskId: string;
16895
+ sessionId?: string | undefined;
16896
+ } | {
16897
+ kind: "group-turn";
16898
+ turnId: string;
16899
+ };
16900
+ sourceGeneration: number;
16901
+ afterRevision: number;
16902
+ } | {
16903
+ kind: "ci-completed";
16904
+ cardId: string;
16905
+ origin: {
16906
+ kind: "work";
16907
+ ticketId: string;
16908
+ assignmentId: string;
16909
+ };
16910
+ sourceId: string;
16911
+ sourceGeneration: number;
16912
+ threadId: string;
16913
+ afterAttempt: number;
16914
+ afterObservedAt: string;
16915
+ } | undefined;
16916
+ when?: {
16917
+ kind: "subtask-completed";
16918
+ cardId: string;
16919
+ origin: {
16920
+ kind: "work";
16921
+ ticketId: string;
16922
+ assignmentId: string;
16923
+ } | {
16924
+ kind: "delegate";
16925
+ runId: string;
16926
+ sessionId?: string | undefined;
16927
+ } | {
16928
+ kind: "native-subagent";
16929
+ sessionId: string;
16930
+ childSessionId: string;
16931
+ turn: number;
16932
+ } | {
16933
+ kind: "team-task";
16934
+ teamId: string;
16935
+ taskId: string;
16936
+ sessionId?: string | undefined;
16937
+ } | {
16938
+ kind: "group-turn";
16939
+ turnId: string;
16940
+ };
16941
+ sourceGeneration: number;
16942
+ afterRevision: number;
16943
+ } | {
16944
+ kind: "ci-completed";
16945
+ cardId: string;
16946
+ origin: {
16947
+ kind: "work";
16948
+ ticketId: string;
16949
+ assignmentId: string;
16950
+ };
16951
+ sourceId: string;
16952
+ sourceGeneration: number;
16953
+ threadId: string;
16954
+ afterAttempt: number;
16955
+ afterObservedAt: string;
16956
+ } | undefined;
16957
+ deadlineAt?: string | undefined;
15953
16958
  }[];
15954
16959
  };
15955
16960
  protocolVersion: 1;
@@ -16034,6 +17039,89 @@ export declare class ProactiveService {
16034
17039
  reason: "completed" | "cancelled" | "resolved";
16035
17040
  };
16036
17041
  state: "closed" | "stopped" | "open" | "ignored";
17042
+ completionTarget?: {
17043
+ kind: "subtask-completed";
17044
+ cardId: string;
17045
+ origin: {
17046
+ kind: "work";
17047
+ ticketId: string;
17048
+ assignmentId: string;
17049
+ } | {
17050
+ kind: "delegate";
17051
+ runId: string;
17052
+ sessionId?: string | undefined;
17053
+ } | {
17054
+ kind: "native-subagent";
17055
+ sessionId: string;
17056
+ childSessionId: string;
17057
+ turn: number;
17058
+ } | {
17059
+ kind: "team-task";
17060
+ teamId: string;
17061
+ taskId: string;
17062
+ sessionId?: string | undefined;
17063
+ } | {
17064
+ kind: "group-turn";
17065
+ turnId: string;
17066
+ };
17067
+ sourceGeneration: number;
17068
+ afterRevision: number;
17069
+ } | {
17070
+ kind: "ci-completed";
17071
+ cardId: string;
17072
+ origin: {
17073
+ kind: "work";
17074
+ ticketId: string;
17075
+ assignmentId: string;
17076
+ };
17077
+ sourceId: string;
17078
+ sourceGeneration: number;
17079
+ threadId: string;
17080
+ afterAttempt: number;
17081
+ afterObservedAt: string;
17082
+ } | undefined;
17083
+ when?: {
17084
+ kind: "subtask-completed";
17085
+ cardId: string;
17086
+ origin: {
17087
+ kind: "work";
17088
+ ticketId: string;
17089
+ assignmentId: string;
17090
+ } | {
17091
+ kind: "delegate";
17092
+ runId: string;
17093
+ sessionId?: string | undefined;
17094
+ } | {
17095
+ kind: "native-subagent";
17096
+ sessionId: string;
17097
+ childSessionId: string;
17098
+ turn: number;
17099
+ } | {
17100
+ kind: "team-task";
17101
+ teamId: string;
17102
+ taskId: string;
17103
+ sessionId?: string | undefined;
17104
+ } | {
17105
+ kind: "group-turn";
17106
+ turnId: string;
17107
+ };
17108
+ sourceGeneration: number;
17109
+ afterRevision: number;
17110
+ } | {
17111
+ kind: "ci-completed";
17112
+ cardId: string;
17113
+ origin: {
17114
+ kind: "work";
17115
+ ticketId: string;
17116
+ assignmentId: string;
17117
+ };
17118
+ sourceId: string;
17119
+ sourceGeneration: number;
17120
+ threadId: string;
17121
+ afterAttempt: number;
17122
+ afterObservedAt: string;
17123
+ } | undefined;
17124
+ deadlineAt?: string | undefined;
16037
17125
  }[];
16038
17126
  next?: string | undefined;
16039
17127
  };
@@ -16155,6 +17243,89 @@ export declare class ProactiveService {
16155
17243
  reason: "completed" | "cancelled" | "resolved";
16156
17244
  };
16157
17245
  state: "closed" | "stopped" | "open" | "ignored";
17246
+ completionTarget?: {
17247
+ kind: "subtask-completed";
17248
+ cardId: string;
17249
+ origin: {
17250
+ kind: "work";
17251
+ ticketId: string;
17252
+ assignmentId: string;
17253
+ } | {
17254
+ kind: "delegate";
17255
+ runId: string;
17256
+ sessionId?: string | undefined;
17257
+ } | {
17258
+ kind: "native-subagent";
17259
+ sessionId: string;
17260
+ childSessionId: string;
17261
+ turn: number;
17262
+ } | {
17263
+ kind: "team-task";
17264
+ teamId: string;
17265
+ taskId: string;
17266
+ sessionId?: string | undefined;
17267
+ } | {
17268
+ kind: "group-turn";
17269
+ turnId: string;
17270
+ };
17271
+ sourceGeneration: number;
17272
+ afterRevision: number;
17273
+ } | {
17274
+ kind: "ci-completed";
17275
+ cardId: string;
17276
+ origin: {
17277
+ kind: "work";
17278
+ ticketId: string;
17279
+ assignmentId: string;
17280
+ };
17281
+ sourceId: string;
17282
+ sourceGeneration: number;
17283
+ threadId: string;
17284
+ afterAttempt: number;
17285
+ afterObservedAt: string;
17286
+ } | undefined;
17287
+ when?: {
17288
+ kind: "subtask-completed";
17289
+ cardId: string;
17290
+ origin: {
17291
+ kind: "work";
17292
+ ticketId: string;
17293
+ assignmentId: string;
17294
+ } | {
17295
+ kind: "delegate";
17296
+ runId: string;
17297
+ sessionId?: string | undefined;
17298
+ } | {
17299
+ kind: "native-subagent";
17300
+ sessionId: string;
17301
+ childSessionId: string;
17302
+ turn: number;
17303
+ } | {
17304
+ kind: "team-task";
17305
+ teamId: string;
17306
+ taskId: string;
17307
+ sessionId?: string | undefined;
17308
+ } | {
17309
+ kind: "group-turn";
17310
+ turnId: string;
17311
+ };
17312
+ sourceGeneration: number;
17313
+ afterRevision: number;
17314
+ } | {
17315
+ kind: "ci-completed";
17316
+ cardId: string;
17317
+ origin: {
17318
+ kind: "work";
17319
+ ticketId: string;
17320
+ assignmentId: string;
17321
+ };
17322
+ sourceId: string;
17323
+ sourceGeneration: number;
17324
+ threadId: string;
17325
+ afterAttempt: number;
17326
+ afterObservedAt: string;
17327
+ } | undefined;
17328
+ deadlineAt?: string | undefined;
16158
17329
  } | null;
16159
17330
  activationEpoch: string | null;
16160
17331
  protocolVersion: 1;
@@ -17400,6 +18571,7 @@ export declare class ProactiveService {
17400
18571
  }[];
17401
18572
  operationId?: string | undefined;
17402
18573
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
18574
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
17403
18575
  } | undefined;
17404
18576
  failureKey?: string | undefined;
17405
18577
  evaluation?: {
@@ -17812,6 +18984,7 @@ export declare class ProactiveService {
17812
18984
  }[];
17813
18985
  operationId?: string | undefined;
17814
18986
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
18987
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
17815
18988
  } | undefined;
17816
18989
  failureKey?: string | undefined;
17817
18990
  evaluation?: {
@@ -18307,6 +19480,7 @@ export declare class ProactiveService {
18307
19480
  }[];
18308
19481
  operationId?: string | undefined;
18309
19482
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
19483
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
18310
19484
  } | undefined;
18311
19485
  failureKey?: string | undefined;
18312
19486
  evaluation?: {
@@ -20555,6 +21729,89 @@ export declare class ProactiveService {
20555
21729
  reason: "completed" | "cancelled" | "resolved";
20556
21730
  };
20557
21731
  state: "closed" | "stopped" | "open" | "ignored";
21732
+ completionTarget?: {
21733
+ kind: "subtask-completed";
21734
+ cardId: string;
21735
+ origin: {
21736
+ kind: "work";
21737
+ ticketId: string;
21738
+ assignmentId: string;
21739
+ } | {
21740
+ kind: "delegate";
21741
+ runId: string;
21742
+ sessionId?: string | undefined;
21743
+ } | {
21744
+ kind: "native-subagent";
21745
+ sessionId: string;
21746
+ childSessionId: string;
21747
+ turn: number;
21748
+ } | {
21749
+ kind: "team-task";
21750
+ teamId: string;
21751
+ taskId: string;
21752
+ sessionId?: string | undefined;
21753
+ } | {
21754
+ kind: "group-turn";
21755
+ turnId: string;
21756
+ };
21757
+ sourceGeneration: number;
21758
+ afterRevision: number;
21759
+ } | {
21760
+ kind: "ci-completed";
21761
+ cardId: string;
21762
+ origin: {
21763
+ kind: "work";
21764
+ ticketId: string;
21765
+ assignmentId: string;
21766
+ };
21767
+ sourceId: string;
21768
+ sourceGeneration: number;
21769
+ threadId: string;
21770
+ afterAttempt: number;
21771
+ afterObservedAt: string;
21772
+ } | undefined;
21773
+ when?: {
21774
+ kind: "subtask-completed";
21775
+ cardId: string;
21776
+ origin: {
21777
+ kind: "work";
21778
+ ticketId: string;
21779
+ assignmentId: string;
21780
+ } | {
21781
+ kind: "delegate";
21782
+ runId: string;
21783
+ sessionId?: string | undefined;
21784
+ } | {
21785
+ kind: "native-subagent";
21786
+ sessionId: string;
21787
+ childSessionId: string;
21788
+ turn: number;
21789
+ } | {
21790
+ kind: "team-task";
21791
+ teamId: string;
21792
+ taskId: string;
21793
+ sessionId?: string | undefined;
21794
+ } | {
21795
+ kind: "group-turn";
21796
+ turnId: string;
21797
+ };
21798
+ sourceGeneration: number;
21799
+ afterRevision: number;
21800
+ } | {
21801
+ kind: "ci-completed";
21802
+ cardId: string;
21803
+ origin: {
21804
+ kind: "work";
21805
+ ticketId: string;
21806
+ assignmentId: string;
21807
+ };
21808
+ sourceId: string;
21809
+ sourceGeneration: number;
21810
+ threadId: string;
21811
+ afterAttempt: number;
21812
+ afterObservedAt: string;
21813
+ } | undefined;
21814
+ deadlineAt?: string | undefined;
20558
21815
  }[];
20559
21816
  };
20560
21817
  protocolVersion: 1;
@@ -20624,21 +21881,104 @@ export declare class ProactiveService {
20624
21881
  deadlineAt?: string | undefined;
20625
21882
  };
20626
21883
  } | {
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";
21884
+ kind: "tracking";
21885
+ completion?: string | undefined;
21886
+ } | {
21887
+ kind: "approval-pending";
21888
+ completion: string;
21889
+ wait?: {
21890
+ reason: string;
21891
+ request: string;
21892
+ deadlineAt?: string | undefined;
21893
+ } | undefined;
21894
+ } | {
21895
+ kind: "closed";
21896
+ reason: "completed" | "cancelled" | "resolved";
21897
+ };
21898
+ state: "closed" | "stopped" | "open" | "ignored";
21899
+ completionTarget?: {
21900
+ kind: "subtask-completed";
21901
+ cardId: string;
21902
+ origin: {
21903
+ kind: "work";
21904
+ ticketId: string;
21905
+ assignmentId: string;
21906
+ } | {
21907
+ kind: "delegate";
21908
+ runId: string;
21909
+ sessionId?: string | undefined;
21910
+ } | {
21911
+ kind: "native-subagent";
21912
+ sessionId: string;
21913
+ childSessionId: string;
21914
+ turn: number;
21915
+ } | {
21916
+ kind: "team-task";
21917
+ teamId: string;
21918
+ taskId: string;
21919
+ sessionId?: string | undefined;
21920
+ } | {
21921
+ kind: "group-turn";
21922
+ turnId: string;
21923
+ };
21924
+ sourceGeneration: number;
21925
+ afterRevision: number;
21926
+ } | {
21927
+ kind: "ci-completed";
21928
+ cardId: string;
21929
+ origin: {
21930
+ kind: "work";
21931
+ ticketId: string;
21932
+ assignmentId: string;
21933
+ };
21934
+ sourceId: string;
21935
+ sourceGeneration: number;
21936
+ threadId: string;
21937
+ afterAttempt: number;
21938
+ afterObservedAt: string;
21939
+ } | undefined;
21940
+ when?: {
21941
+ kind: "subtask-completed";
21942
+ cardId: string;
21943
+ origin: {
21944
+ kind: "work";
21945
+ ticketId: string;
21946
+ assignmentId: string;
21947
+ } | {
21948
+ kind: "delegate";
21949
+ runId: string;
21950
+ sessionId?: string | undefined;
21951
+ } | {
21952
+ kind: "native-subagent";
21953
+ sessionId: string;
21954
+ childSessionId: string;
21955
+ turn: number;
21956
+ } | {
21957
+ kind: "team-task";
21958
+ teamId: string;
21959
+ taskId: string;
21960
+ sessionId?: string | undefined;
21961
+ } | {
21962
+ kind: "group-turn";
21963
+ turnId: string;
21964
+ };
21965
+ sourceGeneration: number;
21966
+ afterRevision: number;
21967
+ } | {
21968
+ kind: "ci-completed";
21969
+ cardId: string;
21970
+ origin: {
21971
+ kind: "work";
21972
+ ticketId: string;
21973
+ assignmentId: string;
21974
+ };
21975
+ sourceId: string;
21976
+ sourceGeneration: number;
21977
+ threadId: string;
21978
+ afterAttempt: number;
21979
+ afterObservedAt: string;
21980
+ } | undefined;
21981
+ deadlineAt?: string | undefined;
20642
21982
  }[];
20643
21983
  next?: string | undefined;
20644
21984
  };
@@ -20760,6 +22100,89 @@ export declare class ProactiveService {
20760
22100
  reason: "completed" | "cancelled" | "resolved";
20761
22101
  };
20762
22102
  state: "closed" | "stopped" | "open" | "ignored";
22103
+ completionTarget?: {
22104
+ kind: "subtask-completed";
22105
+ cardId: string;
22106
+ origin: {
22107
+ kind: "work";
22108
+ ticketId: string;
22109
+ assignmentId: string;
22110
+ } | {
22111
+ kind: "delegate";
22112
+ runId: string;
22113
+ sessionId?: string | undefined;
22114
+ } | {
22115
+ kind: "native-subagent";
22116
+ sessionId: string;
22117
+ childSessionId: string;
22118
+ turn: number;
22119
+ } | {
22120
+ kind: "team-task";
22121
+ teamId: string;
22122
+ taskId: string;
22123
+ sessionId?: string | undefined;
22124
+ } | {
22125
+ kind: "group-turn";
22126
+ turnId: string;
22127
+ };
22128
+ sourceGeneration: number;
22129
+ afterRevision: number;
22130
+ } | {
22131
+ kind: "ci-completed";
22132
+ cardId: string;
22133
+ origin: {
22134
+ kind: "work";
22135
+ ticketId: string;
22136
+ assignmentId: string;
22137
+ };
22138
+ sourceId: string;
22139
+ sourceGeneration: number;
22140
+ threadId: string;
22141
+ afterAttempt: number;
22142
+ afterObservedAt: string;
22143
+ } | undefined;
22144
+ when?: {
22145
+ kind: "subtask-completed";
22146
+ cardId: string;
22147
+ origin: {
22148
+ kind: "work";
22149
+ ticketId: string;
22150
+ assignmentId: string;
22151
+ } | {
22152
+ kind: "delegate";
22153
+ runId: string;
22154
+ sessionId?: string | undefined;
22155
+ } | {
22156
+ kind: "native-subagent";
22157
+ sessionId: string;
22158
+ childSessionId: string;
22159
+ turn: number;
22160
+ } | {
22161
+ kind: "team-task";
22162
+ teamId: string;
22163
+ taskId: string;
22164
+ sessionId?: string | undefined;
22165
+ } | {
22166
+ kind: "group-turn";
22167
+ turnId: string;
22168
+ };
22169
+ sourceGeneration: number;
22170
+ afterRevision: number;
22171
+ } | {
22172
+ kind: "ci-completed";
22173
+ cardId: string;
22174
+ origin: {
22175
+ kind: "work";
22176
+ ticketId: string;
22177
+ assignmentId: string;
22178
+ };
22179
+ sourceId: string;
22180
+ sourceGeneration: number;
22181
+ threadId: string;
22182
+ afterAttempt: number;
22183
+ afterObservedAt: string;
22184
+ } | undefined;
22185
+ deadlineAt?: string | undefined;
20763
22186
  } | null;
20764
22187
  activationEpoch: string | null;
20765
22188
  protocolVersion: 1;
@@ -22005,6 +23428,7 @@ export declare class ProactiveService {
22005
23428
  }[];
22006
23429
  operationId?: string | undefined;
22007
23430
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
23431
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
22008
23432
  } | undefined;
22009
23433
  failureKey?: string | undefined;
22010
23434
  evaluation?: {
@@ -22417,6 +23841,7 @@ export declare class ProactiveService {
22417
23841
  }[];
22418
23842
  operationId?: string | undefined;
22419
23843
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
23844
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
22420
23845
  } | undefined;
22421
23846
  failureKey?: string | undefined;
22422
23847
  evaluation?: {
@@ -22912,6 +24337,7 @@ export declare class ProactiveService {
22912
24337
  }[];
22913
24338
  operationId?: string | undefined;
22914
24339
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
24340
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
22915
24341
  } | undefined;
22916
24342
  failureKey?: string | undefined;
22917
24343
  evaluation?: {
@@ -25161,6 +26587,89 @@ export declare class ProactiveService {
25161
26587
  reason: "completed" | "cancelled" | "resolved";
25162
26588
  };
25163
26589
  state: "closed" | "stopped" | "open" | "ignored";
26590
+ completionTarget?: {
26591
+ kind: "subtask-completed";
26592
+ cardId: string;
26593
+ origin: {
26594
+ kind: "work";
26595
+ ticketId: string;
26596
+ assignmentId: string;
26597
+ } | {
26598
+ kind: "delegate";
26599
+ runId: string;
26600
+ sessionId?: string | undefined;
26601
+ } | {
26602
+ kind: "native-subagent";
26603
+ sessionId: string;
26604
+ childSessionId: string;
26605
+ turn: number;
26606
+ } | {
26607
+ kind: "team-task";
26608
+ teamId: string;
26609
+ taskId: string;
26610
+ sessionId?: string | undefined;
26611
+ } | {
26612
+ kind: "group-turn";
26613
+ turnId: string;
26614
+ };
26615
+ sourceGeneration: number;
26616
+ afterRevision: number;
26617
+ } | {
26618
+ kind: "ci-completed";
26619
+ cardId: string;
26620
+ origin: {
26621
+ kind: "work";
26622
+ ticketId: string;
26623
+ assignmentId: string;
26624
+ };
26625
+ sourceId: string;
26626
+ sourceGeneration: number;
26627
+ threadId: string;
26628
+ afterAttempt: number;
26629
+ afterObservedAt: string;
26630
+ } | undefined;
26631
+ when?: {
26632
+ kind: "subtask-completed";
26633
+ cardId: string;
26634
+ origin: {
26635
+ kind: "work";
26636
+ ticketId: string;
26637
+ assignmentId: string;
26638
+ } | {
26639
+ kind: "delegate";
26640
+ runId: string;
26641
+ sessionId?: string | undefined;
26642
+ } | {
26643
+ kind: "native-subagent";
26644
+ sessionId: string;
26645
+ childSessionId: string;
26646
+ turn: number;
26647
+ } | {
26648
+ kind: "team-task";
26649
+ teamId: string;
26650
+ taskId: string;
26651
+ sessionId?: string | undefined;
26652
+ } | {
26653
+ kind: "group-turn";
26654
+ turnId: string;
26655
+ };
26656
+ sourceGeneration: number;
26657
+ afterRevision: number;
26658
+ } | {
26659
+ kind: "ci-completed";
26660
+ cardId: string;
26661
+ origin: {
26662
+ kind: "work";
26663
+ ticketId: string;
26664
+ assignmentId: string;
26665
+ };
26666
+ sourceId: string;
26667
+ sourceGeneration: number;
26668
+ threadId: string;
26669
+ afterAttempt: number;
26670
+ afterObservedAt: string;
26671
+ } | undefined;
26672
+ deadlineAt?: string | undefined;
25164
26673
  }[];
25165
26674
  };
25166
26675
  protocolVersion: 1;
@@ -25245,6 +26754,89 @@ export declare class ProactiveService {
25245
26754
  reason: "completed" | "cancelled" | "resolved";
25246
26755
  };
25247
26756
  state: "closed" | "stopped" | "open" | "ignored";
26757
+ completionTarget?: {
26758
+ kind: "subtask-completed";
26759
+ cardId: string;
26760
+ origin: {
26761
+ kind: "work";
26762
+ ticketId: string;
26763
+ assignmentId: string;
26764
+ } | {
26765
+ kind: "delegate";
26766
+ runId: string;
26767
+ sessionId?: string | undefined;
26768
+ } | {
26769
+ kind: "native-subagent";
26770
+ sessionId: string;
26771
+ childSessionId: string;
26772
+ turn: number;
26773
+ } | {
26774
+ kind: "team-task";
26775
+ teamId: string;
26776
+ taskId: string;
26777
+ sessionId?: string | undefined;
26778
+ } | {
26779
+ kind: "group-turn";
26780
+ turnId: string;
26781
+ };
26782
+ sourceGeneration: number;
26783
+ afterRevision: number;
26784
+ } | {
26785
+ kind: "ci-completed";
26786
+ cardId: string;
26787
+ origin: {
26788
+ kind: "work";
26789
+ ticketId: string;
26790
+ assignmentId: string;
26791
+ };
26792
+ sourceId: string;
26793
+ sourceGeneration: number;
26794
+ threadId: string;
26795
+ afterAttempt: number;
26796
+ afterObservedAt: string;
26797
+ } | undefined;
26798
+ when?: {
26799
+ kind: "subtask-completed";
26800
+ cardId: string;
26801
+ origin: {
26802
+ kind: "work";
26803
+ ticketId: string;
26804
+ assignmentId: string;
26805
+ } | {
26806
+ kind: "delegate";
26807
+ runId: string;
26808
+ sessionId?: string | undefined;
26809
+ } | {
26810
+ kind: "native-subagent";
26811
+ sessionId: string;
26812
+ childSessionId: string;
26813
+ turn: number;
26814
+ } | {
26815
+ kind: "team-task";
26816
+ teamId: string;
26817
+ taskId: string;
26818
+ sessionId?: string | undefined;
26819
+ } | {
26820
+ kind: "group-turn";
26821
+ turnId: string;
26822
+ };
26823
+ sourceGeneration: number;
26824
+ afterRevision: number;
26825
+ } | {
26826
+ kind: "ci-completed";
26827
+ cardId: string;
26828
+ origin: {
26829
+ kind: "work";
26830
+ ticketId: string;
26831
+ assignmentId: string;
26832
+ };
26833
+ sourceId: string;
26834
+ sourceGeneration: number;
26835
+ threadId: string;
26836
+ afterAttempt: number;
26837
+ afterObservedAt: string;
26838
+ } | undefined;
26839
+ deadlineAt?: string | undefined;
25248
26840
  }[];
25249
26841
  next?: string | undefined;
25250
26842
  };
@@ -25366,6 +26958,89 @@ export declare class ProactiveService {
25366
26958
  reason: "completed" | "cancelled" | "resolved";
25367
26959
  };
25368
26960
  state: "closed" | "stopped" | "open" | "ignored";
26961
+ completionTarget?: {
26962
+ kind: "subtask-completed";
26963
+ cardId: string;
26964
+ origin: {
26965
+ kind: "work";
26966
+ ticketId: string;
26967
+ assignmentId: string;
26968
+ } | {
26969
+ kind: "delegate";
26970
+ runId: string;
26971
+ sessionId?: string | undefined;
26972
+ } | {
26973
+ kind: "native-subagent";
26974
+ sessionId: string;
26975
+ childSessionId: string;
26976
+ turn: number;
26977
+ } | {
26978
+ kind: "team-task";
26979
+ teamId: string;
26980
+ taskId: string;
26981
+ sessionId?: string | undefined;
26982
+ } | {
26983
+ kind: "group-turn";
26984
+ turnId: string;
26985
+ };
26986
+ sourceGeneration: number;
26987
+ afterRevision: number;
26988
+ } | {
26989
+ kind: "ci-completed";
26990
+ cardId: string;
26991
+ origin: {
26992
+ kind: "work";
26993
+ ticketId: string;
26994
+ assignmentId: string;
26995
+ };
26996
+ sourceId: string;
26997
+ sourceGeneration: number;
26998
+ threadId: string;
26999
+ afterAttempt: number;
27000
+ afterObservedAt: string;
27001
+ } | undefined;
27002
+ when?: {
27003
+ kind: "subtask-completed";
27004
+ cardId: string;
27005
+ origin: {
27006
+ kind: "work";
27007
+ ticketId: string;
27008
+ assignmentId: string;
27009
+ } | {
27010
+ kind: "delegate";
27011
+ runId: string;
27012
+ sessionId?: string | undefined;
27013
+ } | {
27014
+ kind: "native-subagent";
27015
+ sessionId: string;
27016
+ childSessionId: string;
27017
+ turn: number;
27018
+ } | {
27019
+ kind: "team-task";
27020
+ teamId: string;
27021
+ taskId: string;
27022
+ sessionId?: string | undefined;
27023
+ } | {
27024
+ kind: "group-turn";
27025
+ turnId: string;
27026
+ };
27027
+ sourceGeneration: number;
27028
+ afterRevision: number;
27029
+ } | {
27030
+ kind: "ci-completed";
27031
+ cardId: string;
27032
+ origin: {
27033
+ kind: "work";
27034
+ ticketId: string;
27035
+ assignmentId: string;
27036
+ };
27037
+ sourceId: string;
27038
+ sourceGeneration: number;
27039
+ threadId: string;
27040
+ afterAttempt: number;
27041
+ afterObservedAt: string;
27042
+ } | undefined;
27043
+ deadlineAt?: string | undefined;
25369
27044
  } | null;
25370
27045
  activationEpoch: string | null;
25371
27046
  protocolVersion: 1;
@@ -26611,6 +28286,7 @@ export declare class ProactiveService {
26611
28286
  }[];
26612
28287
  operationId?: string | undefined;
26613
28288
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
28289
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
26614
28290
  } | undefined;
26615
28291
  failureKey?: string | undefined;
26616
28292
  evaluation?: {
@@ -27023,6 +28699,7 @@ export declare class ProactiveService {
27023
28699
  }[];
27024
28700
  operationId?: string | undefined;
27025
28701
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
28702
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
27026
28703
  } | undefined;
27027
28704
  failureKey?: string | undefined;
27028
28705
  evaluation?: {
@@ -27518,6 +29195,7 @@ export declare class ProactiveService {
27518
29195
  }[];
27519
29196
  operationId?: string | undefined;
27520
29197
  outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
29198
+ failureCode?: "native-history-unavailable" | "evaluation-interrupted" | undefined;
27521
29199
  } | undefined;
27522
29200
  failureKey?: string | undefined;
27523
29201
  evaluation?: {