dsh-botgroup 0.6.7 → 0.7.0

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