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
@@ -0,0 +1,2064 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
3
+ import type { Supergroup } from './service.js';
4
+ export declare const SUPERGROUP_HOST: {
5
+ package: string;
6
+ face: "host";
7
+ schemas: never[];
8
+ readonly invocations: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationDescriptor[];
9
+ model: {
10
+ services: never[];
11
+ events: never[];
12
+ objects: never[];
13
+ };
14
+ };
15
+ export declare class SupergroupRemote extends TypertRemoteService {
16
+ private readonly groups;
17
+ constructor(ctx: Context, groups: Supergroup);
18
+ private owner;
19
+ taskSupport(input: unknown): Promise<{
20
+ workId: string;
21
+ revision: number;
22
+ originSessionId: string;
23
+ inputMessageId: string;
24
+ owner: {
25
+ botId: string;
26
+ botCreatedAt: number;
27
+ };
28
+ readers: {
29
+ botId: string;
30
+ botCreatedAt: number;
31
+ }[];
32
+ blockers: {
33
+ id: string;
34
+ assignmentId: string;
35
+ desiredRevision: number;
36
+ reason: string;
37
+ observedAt: number;
38
+ state: "ready" | "superseded" | "waiting" | "continued";
39
+ name?: string | undefined;
40
+ }[];
41
+ materials: {
42
+ id: string;
43
+ operationId: string;
44
+ requestDigest: string;
45
+ kind: "file" | "input-text" | "github-ci";
46
+ name: string;
47
+ sourceId: string;
48
+ sourceVersion: string;
49
+ digest: string;
50
+ text: string;
51
+ question: string;
52
+ citation: string;
53
+ readers: {
54
+ botId: string;
55
+ botCreatedAt: number;
56
+ }[];
57
+ createdAt: number;
58
+ }[];
59
+ resumes: {
60
+ operationId: string;
61
+ digest: string;
62
+ messageId: string;
63
+ expectedRevision: number;
64
+ state: "unknown" | "queued" | "dispatching";
65
+ blockerIds: string[];
66
+ createdAt: number;
67
+ contentDigest?: string | undefined;
68
+ originalDigest?: string | undefined;
69
+ previousMessageId?: string | undefined;
70
+ }[];
71
+ inputs: {
72
+ messageId: string;
73
+ name: string;
74
+ version: string;
75
+ }[];
76
+ ci: {
77
+ id: string;
78
+ name: string;
79
+ version: string;
80
+ citation: string;
81
+ }[];
82
+ recovery?: {
83
+ state: "unknown" | "queued" | "running" | "delivered" | "waiting-input" | "closed" | "waiting-approval" | "dispatch-intent" | "ready-to-resume";
84
+ nativeApprovalCount: number;
85
+ holdsAgent: boolean;
86
+ timerWakeup: false;
87
+ durableToolResume: false;
88
+ } | undefined;
89
+ ownerName?: string | undefined;
90
+ originalQuestion?: string | undefined;
91
+ readerNames?: string[] | undefined;
92
+ }>;
93
+ addMaterial(input: unknown): Promise<{
94
+ workId: string;
95
+ revision: number;
96
+ originSessionId: string;
97
+ inputMessageId: string;
98
+ owner: {
99
+ botId: string;
100
+ botCreatedAt: number;
101
+ };
102
+ readers: {
103
+ botId: string;
104
+ botCreatedAt: number;
105
+ }[];
106
+ blockers: {
107
+ id: string;
108
+ assignmentId: string;
109
+ desiredRevision: number;
110
+ reason: string;
111
+ observedAt: number;
112
+ state: "ready" | "superseded" | "waiting" | "continued";
113
+ name?: string | undefined;
114
+ }[];
115
+ materials: {
116
+ id: string;
117
+ operationId: string;
118
+ requestDigest: string;
119
+ kind: "file" | "input-text" | "github-ci";
120
+ name: string;
121
+ sourceId: string;
122
+ sourceVersion: string;
123
+ digest: string;
124
+ text: string;
125
+ question: string;
126
+ citation: string;
127
+ readers: {
128
+ botId: string;
129
+ botCreatedAt: number;
130
+ }[];
131
+ createdAt: number;
132
+ }[];
133
+ resumes: {
134
+ operationId: string;
135
+ digest: string;
136
+ messageId: string;
137
+ expectedRevision: number;
138
+ state: "unknown" | "queued" | "dispatching";
139
+ blockerIds: string[];
140
+ createdAt: number;
141
+ contentDigest?: string | undefined;
142
+ originalDigest?: string | undefined;
143
+ previousMessageId?: string | undefined;
144
+ }[];
145
+ inputs: {
146
+ messageId: string;
147
+ name: string;
148
+ version: string;
149
+ }[];
150
+ ci: {
151
+ id: string;
152
+ name: string;
153
+ version: string;
154
+ citation: string;
155
+ }[];
156
+ recovery?: {
157
+ state: "unknown" | "queued" | "running" | "delivered" | "waiting-input" | "closed" | "waiting-approval" | "dispatch-intent" | "ready-to-resume";
158
+ nativeApprovalCount: number;
159
+ holdsAgent: boolean;
160
+ timerWakeup: false;
161
+ durableToolResume: false;
162
+ } | undefined;
163
+ ownerName?: string | undefined;
164
+ originalQuestion?: string | undefined;
165
+ readerNames?: string[] | undefined;
166
+ }>;
167
+ resumeWork(input: unknown): Promise<{
168
+ workId: string;
169
+ revision: number;
170
+ originSessionId: string;
171
+ inputMessageId: string;
172
+ owner: {
173
+ botId: string;
174
+ botCreatedAt: number;
175
+ };
176
+ readers: {
177
+ botId: string;
178
+ botCreatedAt: number;
179
+ }[];
180
+ blockers: {
181
+ id: string;
182
+ assignmentId: string;
183
+ desiredRevision: number;
184
+ reason: string;
185
+ observedAt: number;
186
+ state: "ready" | "superseded" | "waiting" | "continued";
187
+ name?: string | undefined;
188
+ }[];
189
+ materials: {
190
+ id: string;
191
+ operationId: string;
192
+ requestDigest: string;
193
+ kind: "file" | "input-text" | "github-ci";
194
+ name: string;
195
+ sourceId: string;
196
+ sourceVersion: string;
197
+ digest: string;
198
+ text: string;
199
+ question: string;
200
+ citation: string;
201
+ readers: {
202
+ botId: string;
203
+ botCreatedAt: number;
204
+ }[];
205
+ createdAt: number;
206
+ }[];
207
+ resumes: {
208
+ operationId: string;
209
+ digest: string;
210
+ messageId: string;
211
+ expectedRevision: number;
212
+ state: "unknown" | "queued" | "dispatching";
213
+ blockerIds: string[];
214
+ createdAt: number;
215
+ contentDigest?: string | undefined;
216
+ originalDigest?: string | undefined;
217
+ previousMessageId?: string | undefined;
218
+ }[];
219
+ inputs: {
220
+ messageId: string;
221
+ name: string;
222
+ version: string;
223
+ }[];
224
+ ci: {
225
+ id: string;
226
+ name: string;
227
+ version: string;
228
+ citation: string;
229
+ }[];
230
+ recovery?: {
231
+ state: "unknown" | "queued" | "running" | "delivered" | "waiting-input" | "closed" | "waiting-approval" | "dispatch-intent" | "ready-to-resume";
232
+ nativeApprovalCount: number;
233
+ holdsAgent: boolean;
234
+ timerWakeup: false;
235
+ durableToolResume: false;
236
+ } | undefined;
237
+ ownerName?: string | undefined;
238
+ originalQuestion?: string | undefined;
239
+ readerNames?: string[] | undefined;
240
+ }>;
241
+ pendingTasks(): Promise<{
242
+ workId: string;
243
+ revision: number;
244
+ originSessionId: string;
245
+ inputMessageId: string;
246
+ owner: {
247
+ botId: string;
248
+ botCreatedAt: number;
249
+ };
250
+ readers: {
251
+ botId: string;
252
+ botCreatedAt: number;
253
+ }[];
254
+ blockers: {
255
+ id: string;
256
+ assignmentId: string;
257
+ desiredRevision: number;
258
+ reason: string;
259
+ observedAt: number;
260
+ state: "ready" | "superseded" | "waiting" | "continued";
261
+ name?: string | undefined;
262
+ }[];
263
+ materials: {
264
+ id: string;
265
+ operationId: string;
266
+ requestDigest: string;
267
+ kind: "file" | "input-text" | "github-ci";
268
+ name: string;
269
+ sourceId: string;
270
+ sourceVersion: string;
271
+ digest: string;
272
+ text: string;
273
+ question: string;
274
+ citation: string;
275
+ readers: {
276
+ botId: string;
277
+ botCreatedAt: number;
278
+ }[];
279
+ createdAt: number;
280
+ }[];
281
+ resumes: {
282
+ operationId: string;
283
+ digest: string;
284
+ messageId: string;
285
+ expectedRevision: number;
286
+ state: "unknown" | "queued" | "dispatching";
287
+ blockerIds: string[];
288
+ createdAt: number;
289
+ contentDigest?: string | undefined;
290
+ originalDigest?: string | undefined;
291
+ previousMessageId?: string | undefined;
292
+ }[];
293
+ inputs: {
294
+ messageId: string;
295
+ name: string;
296
+ version: string;
297
+ }[];
298
+ ci: {
299
+ id: string;
300
+ name: string;
301
+ version: string;
302
+ citation: string;
303
+ }[];
304
+ recovery?: {
305
+ state: "unknown" | "queued" | "running" | "delivered" | "waiting-input" | "closed" | "waiting-approval" | "dispatch-intent" | "ready-to-resume";
306
+ nativeApprovalCount: number;
307
+ holdsAgent: boolean;
308
+ timerWakeup: false;
309
+ durableToolResume: false;
310
+ } | undefined;
311
+ ownerName?: string | undefined;
312
+ originalQuestion?: string | undefined;
313
+ readerNames?: string[] | undefined;
314
+ }[]>;
315
+ catalog(input: unknown): Promise<{
316
+ work: {
317
+ id: string;
318
+ revision: number;
319
+ owner: {
320
+ botId: string;
321
+ botCreatedAt: number;
322
+ };
323
+ originSessionId: string;
324
+ inputMessageId: string;
325
+ inputMessageIds: string[];
326
+ configDigest: string;
327
+ readers: {
328
+ botId: string;
329
+ botCreatedAt: number;
330
+ }[];
331
+ createdAt: number;
332
+ updatedAt: number;
333
+ expiresAt: number;
334
+ turnIds: string[];
335
+ state: "unknown" | "running" | "completed" | "cancelled" | "creating" | "partial";
336
+ groupInputs: {
337
+ operationId: string;
338
+ digest: string;
339
+ messageId: string;
340
+ expectedRevision: number;
341
+ state: "unknown" | "queued" | "running" | "completed" | "cancelled" | "conflict" | "stored";
342
+ seq?: number | undefined;
343
+ acceptedRevision?: number | undefined;
344
+ memberIds?: string[] | undefined;
345
+ replyTo?: string | undefined;
346
+ reason?: string | undefined;
347
+ delivery?: {
348
+ id: string;
349
+ messageId: string;
350
+ digest: string;
351
+ targetSessionId: string;
352
+ resultVersion: string;
353
+ state: "unknown" | "queued" | "cancelled" | "dispatching" | "delivered" | "prepared" | "undeliverable";
354
+ inputSeq?: number | undefined;
355
+ answerMessageId?: string | undefined;
356
+ reason?: string | undefined;
357
+ } | undefined;
358
+ }[];
359
+ experts: {
360
+ id: string;
361
+ digest: string;
362
+ botId: string;
363
+ memberId: string;
364
+ turnId: string;
365
+ childSessionId: string;
366
+ state: "failed" | "pending" | "invited";
367
+ reason?: string | undefined;
368
+ }[];
369
+ group?: {
370
+ groupId: string;
371
+ groupCreatedAt: number;
372
+ } | undefined;
373
+ collaboration?: {
374
+ requests: number;
375
+ operations: {
376
+ id: string;
377
+ digest: string;
378
+ target: {
379
+ botId: string;
380
+ botCreatedAt: number;
381
+ };
382
+ state: "unknown" | "completed" | "failed" | "cancelled" | "prepared";
383
+ childId?: string | undefined;
384
+ status?: string | undefined;
385
+ resultDigest?: string | undefined;
386
+ errorCode?: string | undefined;
387
+ diagnostic?: string | undefined;
388
+ }[];
389
+ } | undefined;
390
+ initialPending?: boolean | undefined;
391
+ materials?: {
392
+ id: string;
393
+ operationId: string;
394
+ requestDigest: string;
395
+ kind: "file" | "input-text" | "github-ci";
396
+ name: string;
397
+ sourceId: string;
398
+ sourceVersion: string;
399
+ digest: string;
400
+ text: string;
401
+ question: string;
402
+ citation: string;
403
+ readers: {
404
+ botId: string;
405
+ botCreatedAt: number;
406
+ }[];
407
+ createdAt: number;
408
+ }[] | undefined;
409
+ blockers?: {
410
+ id: string;
411
+ assignmentId: string;
412
+ desiredRevision: number;
413
+ reason: string;
414
+ observedAt: number;
415
+ state: "ready" | "superseded" | "waiting" | "continued";
416
+ name?: string | undefined;
417
+ }[] | undefined;
418
+ resumes?: {
419
+ operationId: string;
420
+ digest: string;
421
+ messageId: string;
422
+ expectedRevision: number;
423
+ state: "unknown" | "queued" | "dispatching";
424
+ blockerIds: string[];
425
+ createdAt: number;
426
+ contentDigest?: string | undefined;
427
+ originalDigest?: string | undefined;
428
+ previousMessageId?: string | undefined;
429
+ }[] | undefined;
430
+ reason?: string | undefined;
431
+ };
432
+ group?: {
433
+ unread: boolean;
434
+ readRevision: number;
435
+ group: {
436
+ id: string;
437
+ operationId: string;
438
+ createDigest: string;
439
+ createdAt: number;
440
+ updatedAt: number;
441
+ schemaVersion: 1;
442
+ name: string;
443
+ rootSessionId: string;
444
+ rootPresetId: "dsh-bot-group-root";
445
+ cwd: string;
446
+ mode: "natural" | "mention" | "round-robin";
447
+ membershipRevision: number;
448
+ revision: number;
449
+ archived: boolean;
450
+ state: "ready" | "creating" | "recovery_needed";
451
+ onDemand?: boolean | undefined;
452
+ memberRoles?: {
453
+ bot: {
454
+ botId: string;
455
+ botCreatedAt: number;
456
+ };
457
+ role: string;
458
+ }[] | undefined;
459
+ modelSelection?: {
460
+ provider: string;
461
+ model: string;
462
+ reasoningEffort?: string | undefined;
463
+ } | undefined;
464
+ memberModelSelections?: {
465
+ memberId: string;
466
+ modelSelection: {
467
+ provider: string;
468
+ model: string;
469
+ reasoningEffort?: string | undefined;
470
+ };
471
+ }[] | undefined;
472
+ modelRevision?: number | undefined;
473
+ nextMemberId?: string | undefined;
474
+ exportApprovals?: {
475
+ bot: {
476
+ botId: string;
477
+ botCreatedAt: number;
478
+ };
479
+ membershipRevision: number;
480
+ members: {
481
+ botId: string;
482
+ botCreatedAt: number;
483
+ }[];
484
+ enabledAt: number;
485
+ }[] | undefined;
486
+ supergroup?: {
487
+ workId: string;
488
+ originSessionId: string;
489
+ originMessageId: string;
490
+ owner: {
491
+ botId: string;
492
+ botCreatedAt: number;
493
+ };
494
+ readers: {
495
+ botId: string;
496
+ botCreatedAt: number;
497
+ }[];
498
+ expiresAt: number;
499
+ } | undefined;
500
+ };
501
+ members: {
502
+ id: string;
503
+ group: {
504
+ groupId: string;
505
+ groupCreatedAt: number;
506
+ };
507
+ bot: {
508
+ botId: string;
509
+ botCreatedAt: number;
510
+ };
511
+ order: number;
512
+ joinedAt: number;
513
+ enabled: boolean;
514
+ removedAt?: number | undefined;
515
+ }[];
516
+ unavailableMemberIds: string[];
517
+ running: boolean;
518
+ turns: {
519
+ id: string;
520
+ group: {
521
+ groupId: string;
522
+ groupCreatedAt: number;
523
+ };
524
+ operationId: string;
525
+ requestDigest: string;
526
+ inputMessageId: string;
527
+ createdAt: number;
528
+ updatedAt: number;
529
+ revision: number;
530
+ schemaVersion: 1;
531
+ membershipRevision: number;
532
+ orderedMemberIds: string[];
533
+ mode: "natural" | "mention" | "round-robin";
534
+ contextThroughSeq: number;
535
+ state: "running" | "completed" | "cancelled" | "accepted" | "recovery_needed" | "idle" | "paused" | "partial";
536
+ inputFlowId?: string | undefined;
537
+ inputFlowSessionId?: string | undefined;
538
+ ownerFollowUp?: {
539
+ predecessorTurnId: string;
540
+ predecessorTurnRevision: number;
541
+ membershipRevision: number;
542
+ modelRevision: number;
543
+ memberId: string;
544
+ bot: {
545
+ botId: string;
546
+ botCreatedAt: number;
547
+ };
548
+ botRevision: number;
549
+ modelSelection: {
550
+ provider: string;
551
+ model: string;
552
+ reasoningEffort?: string | undefined;
553
+ };
554
+ cardId: string;
555
+ cardRevision: number;
556
+ } | undefined;
557
+ proactive?: {
558
+ ticketId: string;
559
+ assignmentId: string;
560
+ provider: string;
561
+ model: string;
562
+ botRevisions: [number, number] | [number];
563
+ memberModels?: {
564
+ memberId: string;
565
+ modelSelection: {
566
+ provider: string;
567
+ model: string;
568
+ reasoningEffort?: string | undefined;
569
+ };
570
+ }[] | undefined;
571
+ modelRevision?: number | undefined;
572
+ followUp?: {
573
+ predecessorTurnId: string;
574
+ factId: string;
575
+ } | undefined;
576
+ requestBudget?: {
577
+ maxTokens: number;
578
+ outputTokens: number;
579
+ deadlineAt: string;
580
+ } | undefined;
581
+ repair?: {
582
+ phase: "plan" | "implement" | "review";
583
+ maxTokens: number;
584
+ outputTokens: number;
585
+ deadlineAt: string;
586
+ predecessorTurnId?: string | undefined;
587
+ } | undefined;
588
+ } | undefined;
589
+ inputSeq?: number | undefined;
590
+ routing?: {
591
+ strategy: "explicit" | "legacy" | "local-role" | "fallback";
592
+ version: 1;
593
+ candidateMemberIds: string[];
594
+ selectedMemberIds: string[];
595
+ reason: "failed" | "disabled" | "mode" | "mention" | "reply" | "round" | "role-match" | "no-match";
596
+ deciderCalls: 0;
597
+ plannedCalls: number;
598
+ modelRequests?: number | undefined;
599
+ } | undefined;
600
+ modelSelection?: {
601
+ provider: string;
602
+ model: string;
603
+ reasoningEffort?: string | undefined;
604
+ } | undefined;
605
+ memberModelSelections?: {
606
+ memberId: string;
607
+ modelSelection: {
608
+ provider: string;
609
+ model: string;
610
+ reasoningEffort?: string | undefined;
611
+ };
612
+ }[] | undefined;
613
+ predecessorTurnIds?: string[] | undefined;
614
+ followups?: {
615
+ operationId: string;
616
+ requestDigest: string;
617
+ deliveryId: string;
618
+ messageId: string;
619
+ state: "unknown" | "accepted" | "dispatching";
620
+ childMessageId?: string | undefined;
621
+ }[] | undefined;
622
+ replyTo?: string | undefined;
623
+ protocol?: 2 | undefined;
624
+ memoryStatusOnly?: true | undefined;
625
+ automaticExecutions?: number | undefined;
626
+ continuationAllowance?: number | undefined;
627
+ stoppedMemberIds?: string[] | undefined;
628
+ }[];
629
+ deliveries: {
630
+ id: string;
631
+ turnId: string;
632
+ memberId: string;
633
+ ordinal: number;
634
+ bot: {
635
+ botId: string;
636
+ botCreatedAt: number;
637
+ };
638
+ botRevision: number;
639
+ presetId: string;
640
+ contextOutputMessageIds: string[];
641
+ contextTruncated: boolean;
642
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled" | "pending" | "starting" | "skipped";
643
+ revision?: number | undefined;
644
+ updatedAt?: number | undefined;
645
+ automatic?: boolean | undefined;
646
+ startedAt?: number | undefined;
647
+ endedAt?: number | undefined;
648
+ nativeRunId?: string | undefined;
649
+ childMessageId?: string | undefined;
650
+ joinedDeliveryId?: string | undefined;
651
+ childSessionId?: string | undefined;
652
+ inputFlowId?: string | undefined;
653
+ inputFlowSessionId?: string | undefined;
654
+ triggerMessageId?: string | undefined;
655
+ returnMemberId?: string | undefined;
656
+ requestDigest?: string | undefined;
657
+ skipped?: boolean | undefined;
658
+ outputMessageId?: string | undefined;
659
+ outputSeq?: number | undefined;
660
+ stopReason?: string | undefined;
661
+ reasonCode?: string | undefined;
662
+ exportFlowId?: string | undefined;
663
+ memoryWriteStatus?: "failed" | "saved" | "unverified" | undefined;
664
+ failure?: {
665
+ message: string;
666
+ code?: string | undefined;
667
+ requestId?: string | undefined;
668
+ status?: number | undefined;
669
+ } | undefined;
670
+ staleExportClosedAt?: number | undefined;
671
+ }[];
672
+ messages: {
673
+ id: string;
674
+ seq: number;
675
+ at: number;
676
+ text: string;
677
+ turnId: string;
678
+ hasNonText?: boolean | undefined;
679
+ attachments?: ({
680
+ type: "file";
681
+ attachment: {
682
+ attachmentId: string;
683
+ name: string;
684
+ bytes: number;
685
+ };
686
+ } | {
687
+ type: "image";
688
+ attachment: {
689
+ attachmentId: string;
690
+ mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
691
+ bytes: number;
692
+ width: number;
693
+ height: number;
694
+ name?: string | undefined;
695
+ originalDimensions?: {
696
+ width: number;
697
+ height: number;
698
+ } | undefined;
699
+ };
700
+ offloaded?: true | undefined;
701
+ })[] | undefined;
702
+ replyTo?: string | undefined;
703
+ authorKind?: "bot" | "proactive" | "user" | undefined;
704
+ causeId?: string | undefined;
705
+ speaker?: {
706
+ bot: {
707
+ botId: string;
708
+ botCreatedAt: number;
709
+ };
710
+ name: string;
711
+ avatar?: string | undefined;
712
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
713
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
714
+ } | undefined;
715
+ childSessionId?: string | undefined;
716
+ stopReason?: string | undefined;
717
+ failure?: {
718
+ message: string;
719
+ code?: string | undefined;
720
+ requestId?: string | undefined;
721
+ status?: number | undefined;
722
+ } | undefined;
723
+ }[];
724
+ hasEarlier: boolean;
725
+ exportPendingCount?: number | undefined;
726
+ latest?: {
727
+ seq: number;
728
+ at: number;
729
+ speaker?: {
730
+ bot: {
731
+ botId: string;
732
+ botCreatedAt: number;
733
+ };
734
+ name: string;
735
+ avatar?: string | undefined;
736
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
737
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
738
+ } | undefined;
739
+ } | undefined;
740
+ reason?: "recovery-needed" | "root-owned-elsewhere" | "root-unavailable" | undefined;
741
+ } | undefined;
742
+ }[]>;
743
+ byGroup(input: unknown): Promise<{
744
+ work: {
745
+ id: string;
746
+ revision: number;
747
+ owner: {
748
+ botId: string;
749
+ botCreatedAt: number;
750
+ };
751
+ originSessionId: string;
752
+ inputMessageId: string;
753
+ inputMessageIds: string[];
754
+ configDigest: string;
755
+ readers: {
756
+ botId: string;
757
+ botCreatedAt: number;
758
+ }[];
759
+ createdAt: number;
760
+ updatedAt: number;
761
+ expiresAt: number;
762
+ turnIds: string[];
763
+ state: "unknown" | "running" | "completed" | "cancelled" | "creating" | "partial";
764
+ groupInputs: {
765
+ operationId: string;
766
+ digest: string;
767
+ messageId: string;
768
+ expectedRevision: number;
769
+ state: "unknown" | "queued" | "running" | "completed" | "cancelled" | "conflict" | "stored";
770
+ seq?: number | undefined;
771
+ acceptedRevision?: number | undefined;
772
+ memberIds?: string[] | undefined;
773
+ replyTo?: string | undefined;
774
+ reason?: string | undefined;
775
+ delivery?: {
776
+ id: string;
777
+ messageId: string;
778
+ digest: string;
779
+ targetSessionId: string;
780
+ resultVersion: string;
781
+ state: "unknown" | "queued" | "cancelled" | "dispatching" | "delivered" | "prepared" | "undeliverable";
782
+ inputSeq?: number | undefined;
783
+ answerMessageId?: string | undefined;
784
+ reason?: string | undefined;
785
+ } | undefined;
786
+ }[];
787
+ experts: {
788
+ id: string;
789
+ digest: string;
790
+ botId: string;
791
+ memberId: string;
792
+ turnId: string;
793
+ childSessionId: string;
794
+ state: "failed" | "pending" | "invited";
795
+ reason?: string | undefined;
796
+ }[];
797
+ group?: {
798
+ groupId: string;
799
+ groupCreatedAt: number;
800
+ } | undefined;
801
+ collaboration?: {
802
+ requests: number;
803
+ operations: {
804
+ id: string;
805
+ digest: string;
806
+ target: {
807
+ botId: string;
808
+ botCreatedAt: number;
809
+ };
810
+ state: "unknown" | "completed" | "failed" | "cancelled" | "prepared";
811
+ childId?: string | undefined;
812
+ status?: string | undefined;
813
+ resultDigest?: string | undefined;
814
+ errorCode?: string | undefined;
815
+ diagnostic?: string | undefined;
816
+ }[];
817
+ } | undefined;
818
+ initialPending?: boolean | undefined;
819
+ materials?: {
820
+ id: string;
821
+ operationId: string;
822
+ requestDigest: string;
823
+ kind: "file" | "input-text" | "github-ci";
824
+ name: string;
825
+ sourceId: string;
826
+ sourceVersion: string;
827
+ digest: string;
828
+ text: string;
829
+ question: string;
830
+ citation: string;
831
+ readers: {
832
+ botId: string;
833
+ botCreatedAt: number;
834
+ }[];
835
+ createdAt: number;
836
+ }[] | undefined;
837
+ blockers?: {
838
+ id: string;
839
+ assignmentId: string;
840
+ desiredRevision: number;
841
+ reason: string;
842
+ observedAt: number;
843
+ state: "ready" | "superseded" | "waiting" | "continued";
844
+ name?: string | undefined;
845
+ }[] | undefined;
846
+ resumes?: {
847
+ operationId: string;
848
+ digest: string;
849
+ messageId: string;
850
+ expectedRevision: number;
851
+ state: "unknown" | "queued" | "dispatching";
852
+ blockerIds: string[];
853
+ createdAt: number;
854
+ contentDigest?: string | undefined;
855
+ originalDigest?: string | undefined;
856
+ previousMessageId?: string | undefined;
857
+ }[] | undefined;
858
+ reason?: string | undefined;
859
+ };
860
+ group?: {
861
+ unread: boolean;
862
+ readRevision: number;
863
+ group: {
864
+ id: string;
865
+ operationId: string;
866
+ createDigest: string;
867
+ createdAt: number;
868
+ updatedAt: number;
869
+ schemaVersion: 1;
870
+ name: string;
871
+ rootSessionId: string;
872
+ rootPresetId: "dsh-bot-group-root";
873
+ cwd: string;
874
+ mode: "natural" | "mention" | "round-robin";
875
+ membershipRevision: number;
876
+ revision: number;
877
+ archived: boolean;
878
+ state: "ready" | "creating" | "recovery_needed";
879
+ onDemand?: boolean | undefined;
880
+ memberRoles?: {
881
+ bot: {
882
+ botId: string;
883
+ botCreatedAt: number;
884
+ };
885
+ role: string;
886
+ }[] | undefined;
887
+ modelSelection?: {
888
+ provider: string;
889
+ model: string;
890
+ reasoningEffort?: string | undefined;
891
+ } | undefined;
892
+ memberModelSelections?: {
893
+ memberId: string;
894
+ modelSelection: {
895
+ provider: string;
896
+ model: string;
897
+ reasoningEffort?: string | undefined;
898
+ };
899
+ }[] | undefined;
900
+ modelRevision?: number | undefined;
901
+ nextMemberId?: string | undefined;
902
+ exportApprovals?: {
903
+ bot: {
904
+ botId: string;
905
+ botCreatedAt: number;
906
+ };
907
+ membershipRevision: number;
908
+ members: {
909
+ botId: string;
910
+ botCreatedAt: number;
911
+ }[];
912
+ enabledAt: number;
913
+ }[] | undefined;
914
+ supergroup?: {
915
+ workId: string;
916
+ originSessionId: string;
917
+ originMessageId: string;
918
+ owner: {
919
+ botId: string;
920
+ botCreatedAt: number;
921
+ };
922
+ readers: {
923
+ botId: string;
924
+ botCreatedAt: number;
925
+ }[];
926
+ expiresAt: number;
927
+ } | undefined;
928
+ };
929
+ members: {
930
+ id: string;
931
+ group: {
932
+ groupId: string;
933
+ groupCreatedAt: number;
934
+ };
935
+ bot: {
936
+ botId: string;
937
+ botCreatedAt: number;
938
+ };
939
+ order: number;
940
+ joinedAt: number;
941
+ enabled: boolean;
942
+ removedAt?: number | undefined;
943
+ }[];
944
+ unavailableMemberIds: string[];
945
+ running: boolean;
946
+ turns: {
947
+ id: string;
948
+ group: {
949
+ groupId: string;
950
+ groupCreatedAt: number;
951
+ };
952
+ operationId: string;
953
+ requestDigest: string;
954
+ inputMessageId: string;
955
+ createdAt: number;
956
+ updatedAt: number;
957
+ revision: number;
958
+ schemaVersion: 1;
959
+ membershipRevision: number;
960
+ orderedMemberIds: string[];
961
+ mode: "natural" | "mention" | "round-robin";
962
+ contextThroughSeq: number;
963
+ state: "running" | "completed" | "cancelled" | "accepted" | "recovery_needed" | "idle" | "paused" | "partial";
964
+ inputFlowId?: string | undefined;
965
+ inputFlowSessionId?: string | undefined;
966
+ ownerFollowUp?: {
967
+ predecessorTurnId: string;
968
+ predecessorTurnRevision: number;
969
+ membershipRevision: number;
970
+ modelRevision: number;
971
+ memberId: string;
972
+ bot: {
973
+ botId: string;
974
+ botCreatedAt: number;
975
+ };
976
+ botRevision: number;
977
+ modelSelection: {
978
+ provider: string;
979
+ model: string;
980
+ reasoningEffort?: string | undefined;
981
+ };
982
+ cardId: string;
983
+ cardRevision: number;
984
+ } | undefined;
985
+ proactive?: {
986
+ ticketId: string;
987
+ assignmentId: string;
988
+ provider: string;
989
+ model: string;
990
+ botRevisions: [number, number] | [number];
991
+ memberModels?: {
992
+ memberId: string;
993
+ modelSelection: {
994
+ provider: string;
995
+ model: string;
996
+ reasoningEffort?: string | undefined;
997
+ };
998
+ }[] | undefined;
999
+ modelRevision?: number | undefined;
1000
+ followUp?: {
1001
+ predecessorTurnId: string;
1002
+ factId: string;
1003
+ } | undefined;
1004
+ requestBudget?: {
1005
+ maxTokens: number;
1006
+ outputTokens: number;
1007
+ deadlineAt: string;
1008
+ } | undefined;
1009
+ repair?: {
1010
+ phase: "plan" | "implement" | "review";
1011
+ maxTokens: number;
1012
+ outputTokens: number;
1013
+ deadlineAt: string;
1014
+ predecessorTurnId?: string | undefined;
1015
+ } | undefined;
1016
+ } | undefined;
1017
+ inputSeq?: number | undefined;
1018
+ routing?: {
1019
+ strategy: "explicit" | "legacy" | "local-role" | "fallback";
1020
+ version: 1;
1021
+ candidateMemberIds: string[];
1022
+ selectedMemberIds: string[];
1023
+ reason: "failed" | "disabled" | "mode" | "mention" | "reply" | "round" | "role-match" | "no-match";
1024
+ deciderCalls: 0;
1025
+ plannedCalls: number;
1026
+ modelRequests?: number | undefined;
1027
+ } | undefined;
1028
+ modelSelection?: {
1029
+ provider: string;
1030
+ model: string;
1031
+ reasoningEffort?: string | undefined;
1032
+ } | undefined;
1033
+ memberModelSelections?: {
1034
+ memberId: string;
1035
+ modelSelection: {
1036
+ provider: string;
1037
+ model: string;
1038
+ reasoningEffort?: string | undefined;
1039
+ };
1040
+ }[] | undefined;
1041
+ predecessorTurnIds?: string[] | undefined;
1042
+ followups?: {
1043
+ operationId: string;
1044
+ requestDigest: string;
1045
+ deliveryId: string;
1046
+ messageId: string;
1047
+ state: "unknown" | "accepted" | "dispatching";
1048
+ childMessageId?: string | undefined;
1049
+ }[] | undefined;
1050
+ replyTo?: string | undefined;
1051
+ protocol?: 2 | undefined;
1052
+ memoryStatusOnly?: true | undefined;
1053
+ automaticExecutions?: number | undefined;
1054
+ continuationAllowance?: number | undefined;
1055
+ stoppedMemberIds?: string[] | undefined;
1056
+ }[];
1057
+ deliveries: {
1058
+ id: string;
1059
+ turnId: string;
1060
+ memberId: string;
1061
+ ordinal: number;
1062
+ bot: {
1063
+ botId: string;
1064
+ botCreatedAt: number;
1065
+ };
1066
+ botRevision: number;
1067
+ presetId: string;
1068
+ contextOutputMessageIds: string[];
1069
+ contextTruncated: boolean;
1070
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled" | "pending" | "starting" | "skipped";
1071
+ revision?: number | undefined;
1072
+ updatedAt?: number | undefined;
1073
+ automatic?: boolean | undefined;
1074
+ startedAt?: number | undefined;
1075
+ endedAt?: number | undefined;
1076
+ nativeRunId?: string | undefined;
1077
+ childMessageId?: string | undefined;
1078
+ joinedDeliveryId?: string | undefined;
1079
+ childSessionId?: string | undefined;
1080
+ inputFlowId?: string | undefined;
1081
+ inputFlowSessionId?: string | undefined;
1082
+ triggerMessageId?: string | undefined;
1083
+ returnMemberId?: string | undefined;
1084
+ requestDigest?: string | undefined;
1085
+ skipped?: boolean | undefined;
1086
+ outputMessageId?: string | undefined;
1087
+ outputSeq?: number | undefined;
1088
+ stopReason?: string | undefined;
1089
+ reasonCode?: string | undefined;
1090
+ exportFlowId?: string | undefined;
1091
+ memoryWriteStatus?: "failed" | "saved" | "unverified" | undefined;
1092
+ failure?: {
1093
+ message: string;
1094
+ code?: string | undefined;
1095
+ requestId?: string | undefined;
1096
+ status?: number | undefined;
1097
+ } | undefined;
1098
+ staleExportClosedAt?: number | undefined;
1099
+ }[];
1100
+ messages: {
1101
+ id: string;
1102
+ seq: number;
1103
+ at: number;
1104
+ text: string;
1105
+ turnId: string;
1106
+ hasNonText?: boolean | undefined;
1107
+ attachments?: ({
1108
+ type: "file";
1109
+ attachment: {
1110
+ attachmentId: string;
1111
+ name: string;
1112
+ bytes: number;
1113
+ };
1114
+ } | {
1115
+ type: "image";
1116
+ attachment: {
1117
+ attachmentId: string;
1118
+ mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1119
+ bytes: number;
1120
+ width: number;
1121
+ height: number;
1122
+ name?: string | undefined;
1123
+ originalDimensions?: {
1124
+ width: number;
1125
+ height: number;
1126
+ } | undefined;
1127
+ };
1128
+ offloaded?: true | undefined;
1129
+ })[] | undefined;
1130
+ replyTo?: string | undefined;
1131
+ authorKind?: "bot" | "proactive" | "user" | undefined;
1132
+ causeId?: string | undefined;
1133
+ speaker?: {
1134
+ bot: {
1135
+ botId: string;
1136
+ botCreatedAt: number;
1137
+ };
1138
+ name: string;
1139
+ avatar?: string | undefined;
1140
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
1141
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
1142
+ } | undefined;
1143
+ childSessionId?: string | undefined;
1144
+ stopReason?: string | undefined;
1145
+ failure?: {
1146
+ message: string;
1147
+ code?: string | undefined;
1148
+ requestId?: string | undefined;
1149
+ status?: number | undefined;
1150
+ } | undefined;
1151
+ }[];
1152
+ hasEarlier: boolean;
1153
+ exportPendingCount?: number | undefined;
1154
+ latest?: {
1155
+ seq: number;
1156
+ at: number;
1157
+ speaker?: {
1158
+ bot: {
1159
+ botId: string;
1160
+ botCreatedAt: number;
1161
+ };
1162
+ name: string;
1163
+ avatar?: string | undefined;
1164
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
1165
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
1166
+ } | undefined;
1167
+ } | undefined;
1168
+ reason?: "recovery-needed" | "root-owned-elsewhere" | "root-unavailable" | undefined;
1169
+ } | undefined;
1170
+ } | null>;
1171
+ sendGroupInput(input: unknown): Promise<{
1172
+ view: {
1173
+ work: {
1174
+ id: string;
1175
+ revision: number;
1176
+ owner: {
1177
+ botId: string;
1178
+ botCreatedAt: number;
1179
+ };
1180
+ originSessionId: string;
1181
+ inputMessageId: string;
1182
+ inputMessageIds: string[];
1183
+ configDigest: string;
1184
+ readers: {
1185
+ botId: string;
1186
+ botCreatedAt: number;
1187
+ }[];
1188
+ createdAt: number;
1189
+ updatedAt: number;
1190
+ expiresAt: number;
1191
+ turnIds: string[];
1192
+ state: "unknown" | "running" | "completed" | "cancelled" | "creating" | "partial";
1193
+ groupInputs: {
1194
+ operationId: string;
1195
+ digest: string;
1196
+ messageId: string;
1197
+ expectedRevision: number;
1198
+ state: "unknown" | "queued" | "running" | "completed" | "cancelled" | "conflict" | "stored";
1199
+ seq?: number | undefined;
1200
+ acceptedRevision?: number | undefined;
1201
+ memberIds?: string[] | undefined;
1202
+ replyTo?: string | undefined;
1203
+ reason?: string | undefined;
1204
+ delivery?: {
1205
+ id: string;
1206
+ messageId: string;
1207
+ digest: string;
1208
+ targetSessionId: string;
1209
+ resultVersion: string;
1210
+ state: "unknown" | "queued" | "cancelled" | "dispatching" | "delivered" | "prepared" | "undeliverable";
1211
+ inputSeq?: number | undefined;
1212
+ answerMessageId?: string | undefined;
1213
+ reason?: string | undefined;
1214
+ } | undefined;
1215
+ }[];
1216
+ experts: {
1217
+ id: string;
1218
+ digest: string;
1219
+ botId: string;
1220
+ memberId: string;
1221
+ turnId: string;
1222
+ childSessionId: string;
1223
+ state: "failed" | "pending" | "invited";
1224
+ reason?: string | undefined;
1225
+ }[];
1226
+ group?: {
1227
+ groupId: string;
1228
+ groupCreatedAt: number;
1229
+ } | undefined;
1230
+ collaboration?: {
1231
+ requests: number;
1232
+ operations: {
1233
+ id: string;
1234
+ digest: string;
1235
+ target: {
1236
+ botId: string;
1237
+ botCreatedAt: number;
1238
+ };
1239
+ state: "unknown" | "completed" | "failed" | "cancelled" | "prepared";
1240
+ childId?: string | undefined;
1241
+ status?: string | undefined;
1242
+ resultDigest?: string | undefined;
1243
+ errorCode?: string | undefined;
1244
+ diagnostic?: string | undefined;
1245
+ }[];
1246
+ } | undefined;
1247
+ initialPending?: boolean | undefined;
1248
+ materials?: {
1249
+ id: string;
1250
+ operationId: string;
1251
+ requestDigest: string;
1252
+ kind: "file" | "input-text" | "github-ci";
1253
+ name: string;
1254
+ sourceId: string;
1255
+ sourceVersion: string;
1256
+ digest: string;
1257
+ text: string;
1258
+ question: string;
1259
+ citation: string;
1260
+ readers: {
1261
+ botId: string;
1262
+ botCreatedAt: number;
1263
+ }[];
1264
+ createdAt: number;
1265
+ }[] | undefined;
1266
+ blockers?: {
1267
+ id: string;
1268
+ assignmentId: string;
1269
+ desiredRevision: number;
1270
+ reason: string;
1271
+ observedAt: number;
1272
+ state: "ready" | "superseded" | "waiting" | "continued";
1273
+ name?: string | undefined;
1274
+ }[] | undefined;
1275
+ resumes?: {
1276
+ operationId: string;
1277
+ digest: string;
1278
+ messageId: string;
1279
+ expectedRevision: number;
1280
+ state: "unknown" | "queued" | "dispatching";
1281
+ blockerIds: string[];
1282
+ createdAt: number;
1283
+ contentDigest?: string | undefined;
1284
+ originalDigest?: string | undefined;
1285
+ previousMessageId?: string | undefined;
1286
+ }[] | undefined;
1287
+ reason?: string | undefined;
1288
+ };
1289
+ group?: {
1290
+ unread: boolean;
1291
+ readRevision: number;
1292
+ group: {
1293
+ id: string;
1294
+ operationId: string;
1295
+ createDigest: string;
1296
+ createdAt: number;
1297
+ updatedAt: number;
1298
+ schemaVersion: 1;
1299
+ name: string;
1300
+ rootSessionId: string;
1301
+ rootPresetId: "dsh-bot-group-root";
1302
+ cwd: string;
1303
+ mode: "natural" | "mention" | "round-robin";
1304
+ membershipRevision: number;
1305
+ revision: number;
1306
+ archived: boolean;
1307
+ state: "ready" | "creating" | "recovery_needed";
1308
+ onDemand?: boolean | undefined;
1309
+ memberRoles?: {
1310
+ bot: {
1311
+ botId: string;
1312
+ botCreatedAt: number;
1313
+ };
1314
+ role: string;
1315
+ }[] | undefined;
1316
+ modelSelection?: {
1317
+ provider: string;
1318
+ model: string;
1319
+ reasoningEffort?: string | undefined;
1320
+ } | undefined;
1321
+ memberModelSelections?: {
1322
+ memberId: string;
1323
+ modelSelection: {
1324
+ provider: string;
1325
+ model: string;
1326
+ reasoningEffort?: string | undefined;
1327
+ };
1328
+ }[] | undefined;
1329
+ modelRevision?: number | undefined;
1330
+ nextMemberId?: string | undefined;
1331
+ exportApprovals?: {
1332
+ bot: {
1333
+ botId: string;
1334
+ botCreatedAt: number;
1335
+ };
1336
+ membershipRevision: number;
1337
+ members: {
1338
+ botId: string;
1339
+ botCreatedAt: number;
1340
+ }[];
1341
+ enabledAt: number;
1342
+ }[] | undefined;
1343
+ supergroup?: {
1344
+ workId: string;
1345
+ originSessionId: string;
1346
+ originMessageId: string;
1347
+ owner: {
1348
+ botId: string;
1349
+ botCreatedAt: number;
1350
+ };
1351
+ readers: {
1352
+ botId: string;
1353
+ botCreatedAt: number;
1354
+ }[];
1355
+ expiresAt: number;
1356
+ } | undefined;
1357
+ };
1358
+ members: {
1359
+ id: string;
1360
+ group: {
1361
+ groupId: string;
1362
+ groupCreatedAt: number;
1363
+ };
1364
+ bot: {
1365
+ botId: string;
1366
+ botCreatedAt: number;
1367
+ };
1368
+ order: number;
1369
+ joinedAt: number;
1370
+ enabled: boolean;
1371
+ removedAt?: number | undefined;
1372
+ }[];
1373
+ unavailableMemberIds: string[];
1374
+ running: boolean;
1375
+ turns: {
1376
+ id: string;
1377
+ group: {
1378
+ groupId: string;
1379
+ groupCreatedAt: number;
1380
+ };
1381
+ operationId: string;
1382
+ requestDigest: string;
1383
+ inputMessageId: string;
1384
+ createdAt: number;
1385
+ updatedAt: number;
1386
+ revision: number;
1387
+ schemaVersion: 1;
1388
+ membershipRevision: number;
1389
+ orderedMemberIds: string[];
1390
+ mode: "natural" | "mention" | "round-robin";
1391
+ contextThroughSeq: number;
1392
+ state: "running" | "completed" | "cancelled" | "accepted" | "recovery_needed" | "idle" | "paused" | "partial";
1393
+ inputFlowId?: string | undefined;
1394
+ inputFlowSessionId?: string | undefined;
1395
+ ownerFollowUp?: {
1396
+ predecessorTurnId: string;
1397
+ predecessorTurnRevision: number;
1398
+ membershipRevision: number;
1399
+ modelRevision: number;
1400
+ memberId: string;
1401
+ bot: {
1402
+ botId: string;
1403
+ botCreatedAt: number;
1404
+ };
1405
+ botRevision: number;
1406
+ modelSelection: {
1407
+ provider: string;
1408
+ model: string;
1409
+ reasoningEffort?: string | undefined;
1410
+ };
1411
+ cardId: string;
1412
+ cardRevision: number;
1413
+ } | undefined;
1414
+ proactive?: {
1415
+ ticketId: string;
1416
+ assignmentId: string;
1417
+ provider: string;
1418
+ model: string;
1419
+ botRevisions: [number, number] | [number];
1420
+ memberModels?: {
1421
+ memberId: string;
1422
+ modelSelection: {
1423
+ provider: string;
1424
+ model: string;
1425
+ reasoningEffort?: string | undefined;
1426
+ };
1427
+ }[] | undefined;
1428
+ modelRevision?: number | undefined;
1429
+ followUp?: {
1430
+ predecessorTurnId: string;
1431
+ factId: string;
1432
+ } | undefined;
1433
+ requestBudget?: {
1434
+ maxTokens: number;
1435
+ outputTokens: number;
1436
+ deadlineAt: string;
1437
+ } | undefined;
1438
+ repair?: {
1439
+ phase: "plan" | "implement" | "review";
1440
+ maxTokens: number;
1441
+ outputTokens: number;
1442
+ deadlineAt: string;
1443
+ predecessorTurnId?: string | undefined;
1444
+ } | undefined;
1445
+ } | undefined;
1446
+ inputSeq?: number | undefined;
1447
+ routing?: {
1448
+ strategy: "explicit" | "legacy" | "local-role" | "fallback";
1449
+ version: 1;
1450
+ candidateMemberIds: string[];
1451
+ selectedMemberIds: string[];
1452
+ reason: "failed" | "disabled" | "mode" | "mention" | "reply" | "round" | "role-match" | "no-match";
1453
+ deciderCalls: 0;
1454
+ plannedCalls: number;
1455
+ modelRequests?: number | undefined;
1456
+ } | undefined;
1457
+ modelSelection?: {
1458
+ provider: string;
1459
+ model: string;
1460
+ reasoningEffort?: string | undefined;
1461
+ } | undefined;
1462
+ memberModelSelections?: {
1463
+ memberId: string;
1464
+ modelSelection: {
1465
+ provider: string;
1466
+ model: string;
1467
+ reasoningEffort?: string | undefined;
1468
+ };
1469
+ }[] | undefined;
1470
+ predecessorTurnIds?: string[] | undefined;
1471
+ followups?: {
1472
+ operationId: string;
1473
+ requestDigest: string;
1474
+ deliveryId: string;
1475
+ messageId: string;
1476
+ state: "unknown" | "accepted" | "dispatching";
1477
+ childMessageId?: string | undefined;
1478
+ }[] | undefined;
1479
+ replyTo?: string | undefined;
1480
+ protocol?: 2 | undefined;
1481
+ memoryStatusOnly?: true | undefined;
1482
+ automaticExecutions?: number | undefined;
1483
+ continuationAllowance?: number | undefined;
1484
+ stoppedMemberIds?: string[] | undefined;
1485
+ }[];
1486
+ deliveries: {
1487
+ id: string;
1488
+ turnId: string;
1489
+ memberId: string;
1490
+ ordinal: number;
1491
+ bot: {
1492
+ botId: string;
1493
+ botCreatedAt: number;
1494
+ };
1495
+ botRevision: number;
1496
+ presetId: string;
1497
+ contextOutputMessageIds: string[];
1498
+ contextTruncated: boolean;
1499
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled" | "pending" | "starting" | "skipped";
1500
+ revision?: number | undefined;
1501
+ updatedAt?: number | undefined;
1502
+ automatic?: boolean | undefined;
1503
+ startedAt?: number | undefined;
1504
+ endedAt?: number | undefined;
1505
+ nativeRunId?: string | undefined;
1506
+ childMessageId?: string | undefined;
1507
+ joinedDeliveryId?: string | undefined;
1508
+ childSessionId?: string | undefined;
1509
+ inputFlowId?: string | undefined;
1510
+ inputFlowSessionId?: string | undefined;
1511
+ triggerMessageId?: string | undefined;
1512
+ returnMemberId?: string | undefined;
1513
+ requestDigest?: string | undefined;
1514
+ skipped?: boolean | undefined;
1515
+ outputMessageId?: string | undefined;
1516
+ outputSeq?: number | undefined;
1517
+ stopReason?: string | undefined;
1518
+ reasonCode?: string | undefined;
1519
+ exportFlowId?: string | undefined;
1520
+ memoryWriteStatus?: "failed" | "saved" | "unverified" | undefined;
1521
+ failure?: {
1522
+ message: string;
1523
+ code?: string | undefined;
1524
+ requestId?: string | undefined;
1525
+ status?: number | undefined;
1526
+ } | undefined;
1527
+ staleExportClosedAt?: number | undefined;
1528
+ }[];
1529
+ messages: {
1530
+ id: string;
1531
+ seq: number;
1532
+ at: number;
1533
+ text: string;
1534
+ turnId: string;
1535
+ hasNonText?: boolean | undefined;
1536
+ attachments?: ({
1537
+ type: "file";
1538
+ attachment: {
1539
+ attachmentId: string;
1540
+ name: string;
1541
+ bytes: number;
1542
+ };
1543
+ } | {
1544
+ type: "image";
1545
+ attachment: {
1546
+ attachmentId: string;
1547
+ mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
1548
+ bytes: number;
1549
+ width: number;
1550
+ height: number;
1551
+ name?: string | undefined;
1552
+ originalDimensions?: {
1553
+ width: number;
1554
+ height: number;
1555
+ } | undefined;
1556
+ };
1557
+ offloaded?: true | undefined;
1558
+ })[] | undefined;
1559
+ replyTo?: string | undefined;
1560
+ authorKind?: "bot" | "proactive" | "user" | undefined;
1561
+ causeId?: string | undefined;
1562
+ speaker?: {
1563
+ bot: {
1564
+ botId: string;
1565
+ botCreatedAt: number;
1566
+ };
1567
+ name: string;
1568
+ avatar?: string | undefined;
1569
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
1570
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
1571
+ } | undefined;
1572
+ childSessionId?: string | undefined;
1573
+ stopReason?: string | undefined;
1574
+ failure?: {
1575
+ message: string;
1576
+ code?: string | undefined;
1577
+ requestId?: string | undefined;
1578
+ status?: number | undefined;
1579
+ } | undefined;
1580
+ }[];
1581
+ hasEarlier: boolean;
1582
+ exportPendingCount?: number | undefined;
1583
+ latest?: {
1584
+ seq: number;
1585
+ at: number;
1586
+ speaker?: {
1587
+ bot: {
1588
+ botId: string;
1589
+ botCreatedAt: number;
1590
+ };
1591
+ name: string;
1592
+ avatar?: string | undefined;
1593
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
1594
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
1595
+ } | undefined;
1596
+ } | undefined;
1597
+ reason?: "recovery-needed" | "root-owned-elsewhere" | "root-unavailable" | undefined;
1598
+ } | undefined;
1599
+ };
1600
+ receipt: {
1601
+ operationId: string;
1602
+ digest: string;
1603
+ messageId: string;
1604
+ expectedRevision: number;
1605
+ state: "unknown" | "queued" | "running" | "completed" | "cancelled" | "conflict" | "stored";
1606
+ seq?: number | undefined;
1607
+ acceptedRevision?: number | undefined;
1608
+ memberIds?: string[] | undefined;
1609
+ replyTo?: string | undefined;
1610
+ reason?: string | undefined;
1611
+ delivery?: {
1612
+ id: string;
1613
+ messageId: string;
1614
+ digest: string;
1615
+ targetSessionId: string;
1616
+ resultVersion: string;
1617
+ state: "unknown" | "queued" | "cancelled" | "dispatching" | "delivered" | "prepared" | "undeliverable";
1618
+ inputSeq?: number | undefined;
1619
+ answerMessageId?: string | undefined;
1620
+ reason?: string | undefined;
1621
+ } | undefined;
1622
+ };
1623
+ }>;
1624
+ forSession(input: unknown): Promise<{
1625
+ work: {
1626
+ id: string;
1627
+ revision: number;
1628
+ owner: {
1629
+ botId: string;
1630
+ botCreatedAt: number;
1631
+ };
1632
+ originSessionId: string;
1633
+ inputMessageId: string;
1634
+ inputMessageIds: string[];
1635
+ configDigest: string;
1636
+ readers: {
1637
+ botId: string;
1638
+ botCreatedAt: number;
1639
+ }[];
1640
+ createdAt: number;
1641
+ updatedAt: number;
1642
+ expiresAt: number;
1643
+ turnIds: string[];
1644
+ state: "unknown" | "running" | "completed" | "cancelled" | "creating" | "partial";
1645
+ groupInputs: {
1646
+ operationId: string;
1647
+ digest: string;
1648
+ messageId: string;
1649
+ expectedRevision: number;
1650
+ state: "unknown" | "queued" | "running" | "completed" | "cancelled" | "conflict" | "stored";
1651
+ seq?: number | undefined;
1652
+ acceptedRevision?: number | undefined;
1653
+ memberIds?: string[] | undefined;
1654
+ replyTo?: string | undefined;
1655
+ reason?: string | undefined;
1656
+ delivery?: {
1657
+ id: string;
1658
+ messageId: string;
1659
+ digest: string;
1660
+ targetSessionId: string;
1661
+ resultVersion: string;
1662
+ state: "unknown" | "queued" | "cancelled" | "dispatching" | "delivered" | "prepared" | "undeliverable";
1663
+ inputSeq?: number | undefined;
1664
+ answerMessageId?: string | undefined;
1665
+ reason?: string | undefined;
1666
+ } | undefined;
1667
+ }[];
1668
+ experts: {
1669
+ id: string;
1670
+ digest: string;
1671
+ botId: string;
1672
+ memberId: string;
1673
+ turnId: string;
1674
+ childSessionId: string;
1675
+ state: "failed" | "pending" | "invited";
1676
+ reason?: string | undefined;
1677
+ }[];
1678
+ group?: {
1679
+ groupId: string;
1680
+ groupCreatedAt: number;
1681
+ } | undefined;
1682
+ collaboration?: {
1683
+ requests: number;
1684
+ operations: {
1685
+ id: string;
1686
+ digest: string;
1687
+ target: {
1688
+ botId: string;
1689
+ botCreatedAt: number;
1690
+ };
1691
+ state: "unknown" | "completed" | "failed" | "cancelled" | "prepared";
1692
+ childId?: string | undefined;
1693
+ status?: string | undefined;
1694
+ resultDigest?: string | undefined;
1695
+ errorCode?: string | undefined;
1696
+ diagnostic?: string | undefined;
1697
+ }[];
1698
+ } | undefined;
1699
+ initialPending?: boolean | undefined;
1700
+ materials?: {
1701
+ id: string;
1702
+ operationId: string;
1703
+ requestDigest: string;
1704
+ kind: "file" | "input-text" | "github-ci";
1705
+ name: string;
1706
+ sourceId: string;
1707
+ sourceVersion: string;
1708
+ digest: string;
1709
+ text: string;
1710
+ question: string;
1711
+ citation: string;
1712
+ readers: {
1713
+ botId: string;
1714
+ botCreatedAt: number;
1715
+ }[];
1716
+ createdAt: number;
1717
+ }[] | undefined;
1718
+ blockers?: {
1719
+ id: string;
1720
+ assignmentId: string;
1721
+ desiredRevision: number;
1722
+ reason: string;
1723
+ observedAt: number;
1724
+ state: "ready" | "superseded" | "waiting" | "continued";
1725
+ name?: string | undefined;
1726
+ }[] | undefined;
1727
+ resumes?: {
1728
+ operationId: string;
1729
+ digest: string;
1730
+ messageId: string;
1731
+ expectedRevision: number;
1732
+ state: "unknown" | "queued" | "dispatching";
1733
+ blockerIds: string[];
1734
+ createdAt: number;
1735
+ contentDigest?: string | undefined;
1736
+ originalDigest?: string | undefined;
1737
+ previousMessageId?: string | undefined;
1738
+ }[] | undefined;
1739
+ reason?: string | undefined;
1740
+ };
1741
+ group?: {
1742
+ unread: boolean;
1743
+ readRevision: number;
1744
+ group: {
1745
+ id: string;
1746
+ operationId: string;
1747
+ createDigest: string;
1748
+ createdAt: number;
1749
+ updatedAt: number;
1750
+ schemaVersion: 1;
1751
+ name: string;
1752
+ rootSessionId: string;
1753
+ rootPresetId: "dsh-bot-group-root";
1754
+ cwd: string;
1755
+ mode: "natural" | "mention" | "round-robin";
1756
+ membershipRevision: number;
1757
+ revision: number;
1758
+ archived: boolean;
1759
+ state: "ready" | "creating" | "recovery_needed";
1760
+ onDemand?: boolean | undefined;
1761
+ memberRoles?: {
1762
+ bot: {
1763
+ botId: string;
1764
+ botCreatedAt: number;
1765
+ };
1766
+ role: string;
1767
+ }[] | undefined;
1768
+ modelSelection?: {
1769
+ provider: string;
1770
+ model: string;
1771
+ reasoningEffort?: string | undefined;
1772
+ } | undefined;
1773
+ memberModelSelections?: {
1774
+ memberId: string;
1775
+ modelSelection: {
1776
+ provider: string;
1777
+ model: string;
1778
+ reasoningEffort?: string | undefined;
1779
+ };
1780
+ }[] | undefined;
1781
+ modelRevision?: number | undefined;
1782
+ nextMemberId?: string | undefined;
1783
+ exportApprovals?: {
1784
+ bot: {
1785
+ botId: string;
1786
+ botCreatedAt: number;
1787
+ };
1788
+ membershipRevision: number;
1789
+ members: {
1790
+ botId: string;
1791
+ botCreatedAt: number;
1792
+ }[];
1793
+ enabledAt: number;
1794
+ }[] | undefined;
1795
+ supergroup?: {
1796
+ workId: string;
1797
+ originSessionId: string;
1798
+ originMessageId: string;
1799
+ owner: {
1800
+ botId: string;
1801
+ botCreatedAt: number;
1802
+ };
1803
+ readers: {
1804
+ botId: string;
1805
+ botCreatedAt: number;
1806
+ }[];
1807
+ expiresAt: number;
1808
+ } | undefined;
1809
+ };
1810
+ members: {
1811
+ id: string;
1812
+ group: {
1813
+ groupId: string;
1814
+ groupCreatedAt: number;
1815
+ };
1816
+ bot: {
1817
+ botId: string;
1818
+ botCreatedAt: number;
1819
+ };
1820
+ order: number;
1821
+ joinedAt: number;
1822
+ enabled: boolean;
1823
+ removedAt?: number | undefined;
1824
+ }[];
1825
+ unavailableMemberIds: string[];
1826
+ running: boolean;
1827
+ turns: {
1828
+ id: string;
1829
+ group: {
1830
+ groupId: string;
1831
+ groupCreatedAt: number;
1832
+ };
1833
+ operationId: string;
1834
+ requestDigest: string;
1835
+ inputMessageId: string;
1836
+ createdAt: number;
1837
+ updatedAt: number;
1838
+ revision: number;
1839
+ schemaVersion: 1;
1840
+ membershipRevision: number;
1841
+ orderedMemberIds: string[];
1842
+ mode: "natural" | "mention" | "round-robin";
1843
+ contextThroughSeq: number;
1844
+ state: "running" | "completed" | "cancelled" | "accepted" | "recovery_needed" | "idle" | "paused" | "partial";
1845
+ inputFlowId?: string | undefined;
1846
+ inputFlowSessionId?: string | undefined;
1847
+ ownerFollowUp?: {
1848
+ predecessorTurnId: string;
1849
+ predecessorTurnRevision: number;
1850
+ membershipRevision: number;
1851
+ modelRevision: number;
1852
+ memberId: string;
1853
+ bot: {
1854
+ botId: string;
1855
+ botCreatedAt: number;
1856
+ };
1857
+ botRevision: number;
1858
+ modelSelection: {
1859
+ provider: string;
1860
+ model: string;
1861
+ reasoningEffort?: string | undefined;
1862
+ };
1863
+ cardId: string;
1864
+ cardRevision: number;
1865
+ } | undefined;
1866
+ proactive?: {
1867
+ ticketId: string;
1868
+ assignmentId: string;
1869
+ provider: string;
1870
+ model: string;
1871
+ botRevisions: [number, number] | [number];
1872
+ memberModels?: {
1873
+ memberId: string;
1874
+ modelSelection: {
1875
+ provider: string;
1876
+ model: string;
1877
+ reasoningEffort?: string | undefined;
1878
+ };
1879
+ }[] | undefined;
1880
+ modelRevision?: number | undefined;
1881
+ followUp?: {
1882
+ predecessorTurnId: string;
1883
+ factId: string;
1884
+ } | undefined;
1885
+ requestBudget?: {
1886
+ maxTokens: number;
1887
+ outputTokens: number;
1888
+ deadlineAt: string;
1889
+ } | undefined;
1890
+ repair?: {
1891
+ phase: "plan" | "implement" | "review";
1892
+ maxTokens: number;
1893
+ outputTokens: number;
1894
+ deadlineAt: string;
1895
+ predecessorTurnId?: string | undefined;
1896
+ } | undefined;
1897
+ } | undefined;
1898
+ inputSeq?: number | undefined;
1899
+ routing?: {
1900
+ strategy: "explicit" | "legacy" | "local-role" | "fallback";
1901
+ version: 1;
1902
+ candidateMemberIds: string[];
1903
+ selectedMemberIds: string[];
1904
+ reason: "failed" | "disabled" | "mode" | "mention" | "reply" | "round" | "role-match" | "no-match";
1905
+ deciderCalls: 0;
1906
+ plannedCalls: number;
1907
+ modelRequests?: number | undefined;
1908
+ } | undefined;
1909
+ modelSelection?: {
1910
+ provider: string;
1911
+ model: string;
1912
+ reasoningEffort?: string | undefined;
1913
+ } | undefined;
1914
+ memberModelSelections?: {
1915
+ memberId: string;
1916
+ modelSelection: {
1917
+ provider: string;
1918
+ model: string;
1919
+ reasoningEffort?: string | undefined;
1920
+ };
1921
+ }[] | undefined;
1922
+ predecessorTurnIds?: string[] | undefined;
1923
+ followups?: {
1924
+ operationId: string;
1925
+ requestDigest: string;
1926
+ deliveryId: string;
1927
+ messageId: string;
1928
+ state: "unknown" | "accepted" | "dispatching";
1929
+ childMessageId?: string | undefined;
1930
+ }[] | undefined;
1931
+ replyTo?: string | undefined;
1932
+ protocol?: 2 | undefined;
1933
+ memoryStatusOnly?: true | undefined;
1934
+ automaticExecutions?: number | undefined;
1935
+ continuationAllowance?: number | undefined;
1936
+ stoppedMemberIds?: string[] | undefined;
1937
+ }[];
1938
+ deliveries: {
1939
+ id: string;
1940
+ turnId: string;
1941
+ memberId: string;
1942
+ ordinal: number;
1943
+ bot: {
1944
+ botId: string;
1945
+ botCreatedAt: number;
1946
+ };
1947
+ botRevision: number;
1948
+ presetId: string;
1949
+ contextOutputMessageIds: string[];
1950
+ contextTruncated: boolean;
1951
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled" | "pending" | "starting" | "skipped";
1952
+ revision?: number | undefined;
1953
+ updatedAt?: number | undefined;
1954
+ automatic?: boolean | undefined;
1955
+ startedAt?: number | undefined;
1956
+ endedAt?: number | undefined;
1957
+ nativeRunId?: string | undefined;
1958
+ childMessageId?: string | undefined;
1959
+ joinedDeliveryId?: string | undefined;
1960
+ childSessionId?: string | undefined;
1961
+ inputFlowId?: string | undefined;
1962
+ inputFlowSessionId?: string | undefined;
1963
+ triggerMessageId?: string | undefined;
1964
+ returnMemberId?: string | undefined;
1965
+ requestDigest?: string | undefined;
1966
+ skipped?: boolean | undefined;
1967
+ outputMessageId?: string | undefined;
1968
+ outputSeq?: number | undefined;
1969
+ stopReason?: string | undefined;
1970
+ reasonCode?: string | undefined;
1971
+ exportFlowId?: string | undefined;
1972
+ memoryWriteStatus?: "failed" | "saved" | "unverified" | undefined;
1973
+ failure?: {
1974
+ message: string;
1975
+ code?: string | undefined;
1976
+ requestId?: string | undefined;
1977
+ status?: number | undefined;
1978
+ } | undefined;
1979
+ staleExportClosedAt?: number | undefined;
1980
+ }[];
1981
+ messages: {
1982
+ id: string;
1983
+ seq: number;
1984
+ at: number;
1985
+ text: string;
1986
+ turnId: string;
1987
+ hasNonText?: boolean | undefined;
1988
+ attachments?: ({
1989
+ type: "file";
1990
+ attachment: {
1991
+ attachmentId: string;
1992
+ name: string;
1993
+ bytes: number;
1994
+ };
1995
+ } | {
1996
+ type: "image";
1997
+ attachment: {
1998
+ attachmentId: string;
1999
+ mediaType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
2000
+ bytes: number;
2001
+ width: number;
2002
+ height: number;
2003
+ name?: string | undefined;
2004
+ originalDimensions?: {
2005
+ width: number;
2006
+ height: number;
2007
+ } | undefined;
2008
+ };
2009
+ offloaded?: true | undefined;
2010
+ })[] | undefined;
2011
+ replyTo?: string | undefined;
2012
+ authorKind?: "bot" | "proactive" | "user" | undefined;
2013
+ causeId?: string | undefined;
2014
+ speaker?: {
2015
+ bot: {
2016
+ botId: string;
2017
+ botCreatedAt: number;
2018
+ };
2019
+ name: string;
2020
+ avatar?: string | undefined;
2021
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
2022
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
2023
+ } | undefined;
2024
+ childSessionId?: string | undefined;
2025
+ stopReason?: string | undefined;
2026
+ failure?: {
2027
+ message: string;
2028
+ code?: string | undefined;
2029
+ requestId?: string | undefined;
2030
+ status?: number | undefined;
2031
+ } | undefined;
2032
+ }[];
2033
+ hasEarlier: boolean;
2034
+ exportPendingCount?: number | undefined;
2035
+ latest?: {
2036
+ seq: number;
2037
+ at: number;
2038
+ speaker?: {
2039
+ bot: {
2040
+ botId: string;
2041
+ botCreatedAt: number;
2042
+ };
2043
+ name: string;
2044
+ avatar?: string | undefined;
2045
+ avatarColor?: "--dsw-alias-state-business-primary" | "--dsw-alias-state-success-primary" | "--dsw-alias-state-warn-label" | "--dsw-alias-state-error-primary" | "teal" | "cyan" | "indigo" | "purple" | "rose" | "orange" | "olive" | "slate" | undefined;
2046
+ avatarVariant?: "classic" | "glasses" | "spout" | "baby" | "hat" | "sleeping" | "auto" | undefined;
2047
+ } | undefined;
2048
+ } | undefined;
2049
+ reason?: "recovery-needed" | "root-owned-elsewhere" | "root-unavailable" | undefined;
2050
+ } | undefined;
2051
+ } | null>;
2052
+ cancel(input: unknown): Promise<null>;
2053
+ settings(): Promise<{
2054
+ enabled: boolean;
2055
+ }>;
2056
+ configure(input: unknown): Promise<{
2057
+ enabled: boolean;
2058
+ }>;
2059
+ }
2060
+ declare module '@deepseek-ai/cordis' {
2061
+ interface Context {
2062
+ dshBotSupergroupRemote: SupergroupRemote;
2063
+ }
2064
+ }