@sentry/junior 0.198.0 → 0.199.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 (639) hide show
  1. package/dist/{agent-hooks-3E7O7ATZ.js → agent-hooks-GLHLHDA6.js} +11 -11
  2. package/dist/api/schema.d.ts +3157 -22
  3. package/dist/api/schema.js +1 -1
  4. package/dist/api.d.ts +27 -8
  5. package/dist/api.js +26 -25
  6. package/dist/app.d.ts +456 -16
  7. package/dist/app.js +3913 -3701
  8. package/dist/{catalog-runtime-QDUBRXEW.js → catalog-runtime-J2VOYYYV.js} +4 -4
  9. package/dist/{chunk-X2WFY3TM.js → chunk-23ITKUM3.js} +8 -8
  10. package/dist/{chunk-IZ4CIFJY.js → chunk-2B2KKIWT.js} +9 -9
  11. package/dist/{chunk-N3GQY63R.js → chunk-3ARYTHKB.js} +1 -1
  12. package/dist/{chunk-342FVAX5.js → chunk-46WKZ2SS.js} +1 -1
  13. package/dist/{chunk-LXPGGSYD.js → chunk-4YIE2TYI.js} +3 -3
  14. package/dist/{chunk-KVXHBJCH.js → chunk-5UMYAEOX.js} +1 -1
  15. package/dist/{chunk-OKQMTCHU.js → chunk-7667XKEG.js} +5 -5
  16. package/dist/{chunk-ZUEUBQWE.js → chunk-B63AKBOM.js} +3 -3
  17. package/dist/{chunk-2ACXVY6O.js → chunk-BO6MPZSQ.js} +1 -1
  18. package/dist/{chunk-VYGZPJSM.js → chunk-CIFTZ6A7.js} +4 -4
  19. package/dist/{chunk-SPEJV3TW.js → chunk-CYTCY25C.js} +3 -3
  20. package/dist/{chunk-4FHQ6CCO.js → chunk-CZFI77CX.js} +1 -1
  21. package/dist/{chunk-3J5Y4RWY.js → chunk-FAGRJZ4E.js} +1 -1
  22. package/dist/{chunk-QYSJWJLJ.js → chunk-GNHCHX6P.js} +4 -4
  23. package/dist/{chunk-7KXZRRMK.js → chunk-HDZEZ7OB.js} +1 -1
  24. package/dist/{chunk-G6XSYS3Q.js → chunk-I3HP6Z6Z.js} +4 -4
  25. package/dist/{chunk-CSGQWJIY.js → chunk-K3427KVO.js} +2 -2
  26. package/dist/{chunk-D3SLBCD4.js → chunk-MI5SP4SR.js} +2 -2
  27. package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
  28. package/dist/{chunk-CGNZXN7B.js → chunk-OJBDDF7X.js} +8 -8
  29. package/dist/{chunk-A6KKPVEA.js → chunk-P22PNLK7.js} +4 -4
  30. package/dist/{chunk-FU4OWKCL.js → chunk-P7QOUKYL.js} +2 -2
  31. package/dist/{chunk-CZC6ZEXR.js → chunk-PB74QQQS.js} +6 -6
  32. package/dist/{chunk-XNZAZ57D.js → chunk-PQWRTBQJ.js} +2 -2
  33. package/dist/{chunk-3TMKXW4H.js → chunk-PSFQC35H.js} +1 -1
  34. package/dist/{chunk-U67DBSNZ.js → chunk-PTT4LXUL.js} +7 -6
  35. package/dist/{chunk-EWPTEQXA.js → chunk-QF4E3RNM.js} +3 -3
  36. package/dist/{chunk-G2CT2D5U.js → chunk-RQJ4PBAI.js} +5 -5
  37. package/dist/{chunk-ZORFTPFN.js → chunk-RVM3TBKW.js} +28 -28
  38. package/dist/{chunk-EATO3SKS.js → chunk-SHWGNIZJ.js} +3 -3
  39. package/dist/{chunk-SCVIT6K4.js → chunk-SWA7F2IQ.js} +25 -24
  40. package/dist/{chunk-C3SNQB6B.js → chunk-TN3MRLBG.js} +21 -21
  41. package/dist/{chunk-CBHQOGFA.js → chunk-TT2FUK6X.js} +1 -1
  42. package/dist/{chunk-BFIFTKUS.js → chunk-VL4SXCWF.js} +3 -3
  43. package/dist/{chunk-NVDUM2CM.js → chunk-VXG62JVC.js} +1 -1
  44. package/dist/{chunk-T5KV6DUY.js → chunk-WQ7RAWIY.js} +1 -1
  45. package/dist/{chunk-N6LJYW7V.js → chunk-WR4GQARR.js} +1 -1
  46. package/dist/{chunk-4UW7BEJZ.js → chunk-YTXEKSV6.js} +6 -6
  47. package/dist/{chunk-F3XUS2T5.js → chunk-ZOUAXRCD.js} +5 -5
  48. package/dist/cli/chat.js +33 -33
  49. package/dist/cli/check.js +5 -5
  50. package/dist/cli/plugins.js +12 -12
  51. package/dist/cli/snapshot-create.js +9 -9
  52. package/dist/cli/upgrade.js +6 -6
  53. package/dist/{db-OSPYS4WA.js → db-2K4NSLLX.js} +6 -6
  54. package/dist/instrumentation.d.ts +3 -1
  55. package/dist/instrumentation.js +3 -3
  56. package/dist/nitro.d.ts +14 -7
  57. package/dist/nitro.js +6 -6
  58. package/dist/{oauth-callback-server-VG736DHZ.js → oauth-callback-server-ECRF67PN.js} +29 -29
  59. package/dist/{runner-3GKIVG6A.js → runner-WCRHEM6N.js} +21 -21
  60. package/dist/{skills-FKMV7HTX.js → skills-HGNNRMPX.js} +5 -5
  61. package/dist/spawn-IZ5SV7OV.js +42 -0
  62. package/dist/task-runner-GG6KD2PL.js +36 -0
  63. package/dist/{validation-4XYG33GY.js → validation-EKFIUZ4Y.js} +5 -5
  64. package/dist/vercel.d.ts +4 -2
  65. package/dist/version.d.ts +3 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{work-TJAL6PV3.js → work-LFTVZJUQ.js} +21 -21
  68. package/dist/{worker-3OYUEME2.js → worker-5GGUQCE3.js} +10 -10
  69. package/package.json +5 -5
  70. package/dist/api/acp/auth.d.ts +0 -46
  71. package/dist/api/acp/authorization-page.d.ts +0 -11
  72. package/dist/api/acp/conversations.d.ts +0 -70
  73. package/dist/api/acp/errors.d.ts +0 -6
  74. package/dist/api/acp/route.d.ts +0 -16
  75. package/dist/api/acp/schema.d.ts +0 -115
  76. package/dist/api/acp/sleep.d.ts +0 -2
  77. package/dist/api/acp/state.d.ts +0 -22
  78. package/dist/api/acp/transport.d.ts +0 -113
  79. package/dist/api/activity.d.ts +0 -24
  80. package/dist/api/code/overview.d.ts +0 -98
  81. package/dist/api/code/routes.d.ts +0 -4
  82. package/dist/api/conversations/access.d.ts +0 -10
  83. package/dist/api/conversations/aggregate.d.ts +0 -31
  84. package/dist/api/conversations/archive.d.ts +0 -6
  85. package/dist/api/conversations/attachments.d.ts +0 -32
  86. package/dist/api/conversations/auxiliary-costs.d.ts +0 -6
  87. package/dist/api/conversations/cancel-pending-messages.d.ts +0 -4
  88. package/dist/api/conversations/create.d.ts +0 -6
  89. package/dist/api/conversations/cursor.d.ts +0 -17
  90. package/dist/api/conversations/detail.d.ts +0 -7
  91. package/dist/api/conversations/event-list.d.ts +0 -7
  92. package/dist/api/conversations/event-page.d.ts +0 -18
  93. package/dist/api/conversations/events.d.ts +0 -18
  94. package/dist/api/conversations/list.d.ts +0 -145
  95. package/dist/api/conversations/membership.d.ts +0 -30
  96. package/dist/api/conversations/pending-messages.d.ts +0 -15
  97. package/dist/api/conversations/priority.d.ts +0 -22
  98. package/dist/api/conversations/projection.d.ts +0 -21
  99. package/dist/api/conversations/reporting.d.ts +0 -48
  100. package/dist/api/conversations/routes.d.ts +0 -7
  101. package/dist/api/conversations/shared.d.ts +0 -5
  102. package/dist/api/conversations/stats.d.ts +0 -3
  103. package/dist/api/conversations/stats.query.d.ts +0 -3
  104. package/dist/api/conversations/usage.d.ts +0 -9
  105. package/dist/api/conversations/user-message-activity.d.ts +0 -3
  106. package/dist/api/http.d.ts +0 -8
  107. package/dist/api/locations/detail.d.ts +0 -134
  108. package/dist/api/locations/list.d.ts +0 -47
  109. package/dist/api/locations/query.d.ts +0 -8
  110. package/dist/api/locations/routes.d.ts +0 -4
  111. package/dist/api/people/code.d.ts +0 -34
  112. package/dist/api/people/list.d.ts +0 -3
  113. package/dist/api/people/list.query.d.ts +0 -3
  114. package/dist/api/people/plugin-reports.d.ts +0 -7
  115. package/dist/api/people/profile.d.ts +0 -6
  116. package/dist/api/people/profile.query.d.ts +0 -6
  117. package/dist/api/people/routes.d.ts +0 -4
  118. package/dist/api/people/shared.d.ts +0 -1375
  119. package/dist/api/people/spend.d.ts +0 -3
  120. package/dist/api/people/spend.query.d.ts +0 -3
  121. package/dist/api/personal-tokens/routes.d.ts +0 -4
  122. package/dist/api/reporting-window.d.ts +0 -78
  123. package/dist/api/route.d.ts +0 -15
  124. package/dist/api/schema/code.d.ts +0 -147
  125. package/dist/api/schema/common.d.ts +0 -6
  126. package/dist/api/schema/conversation.d.ts +0 -1604
  127. package/dist/api/schema/location.d.ts +0 -270
  128. package/dist/api/schema/person.d.ts +0 -362
  129. package/dist/api/schema/personal-token.d.ts +0 -38
  130. package/dist/api/schema/stats.d.ts +0 -22
  131. package/dist/api/schema/task.d.ts +0 -423
  132. package/dist/api/schema/workspace.d.ts +0 -69
  133. package/dist/api/stats.d.ts +0 -3
  134. package/dist/api/tasks/routes.d.ts +0 -4
  135. package/dist/api/user-pages/routes.d.ts +0 -4
  136. package/dist/api/validation.d.ts +0 -7
  137. package/dist/api/viewer.d.ts +0 -3
  138. package/dist/api/workspaces/routes.d.ts +0 -4
  139. package/dist/build/copy-build-content.d.ts +0 -6
  140. package/dist/build/glob-to-regex.d.ts +0 -2
  141. package/dist/build/rolldown-workarounds.d.ts +0 -14
  142. package/dist/build/virtual-config.d.ts +0 -25
  143. package/dist/chat/actor.d.ts +0 -83
  144. package/dist/chat/agent/action-confirmation-retry.d.ts +0 -6
  145. package/dist/chat/agent/handoff.d.ts +0 -73
  146. package/dist/chat/agent/index.d.ts +0 -22
  147. package/dist/chat/agent/prompt.d.ts +0 -86
  148. package/dist/chat/agent/repository-context.d.ts +0 -21
  149. package/dist/chat/agent/resume.d.ts +0 -60
  150. package/dist/chat/agent/retry-usage.d.ts +0 -8
  151. package/dist/chat/agent/sandbox.d.ts +0 -55
  152. package/dist/chat/agent/skills.d.ts +0 -17
  153. package/dist/chat/agent/tools.d.ts +0 -91
  154. package/dist/chat/agent/types.d.ts +0 -224
  155. package/dist/chat/agent-dispatch/context.d.ts +0 -43
  156. package/dist/chat/agent-dispatch/heartbeat.d.ts +0 -27
  157. package/dist/chat/agent-dispatch/store.d.ts +0 -42
  158. package/dist/chat/agent-dispatch/types.d.ts +0 -60
  159. package/dist/chat/agent-dispatch/validation.d.ts +0 -5
  160. package/dist/chat/agent-dispatch/work.d.ts +0 -49
  161. package/dist/chat/agent-invocations/errors.d.ts +0 -8
  162. package/dist/chat/agent-invocations/spawn.d.ts +0 -12
  163. package/dist/chat/agent-invocations/store.d.ts +0 -46
  164. package/dist/chat/agent-invocations/types.d.ts +0 -505
  165. package/dist/chat/agent-invocations/work.d.ts +0 -29
  166. package/dist/chat/app/conversation-work.d.ts +0 -37
  167. package/dist/chat/app/factory.d.ts +0 -23
  168. package/dist/chat/app/production.d.ts +0 -24
  169. package/dist/chat/app/services.d.ts +0 -25
  170. package/dist/chat/artifacts/store.d.ts +0 -42
  171. package/dist/chat/attachments/storage.d.ts +0 -14
  172. package/dist/chat/attachments/store.d.ts +0 -68
  173. package/dist/chat/attachments/vercel.d.ts +0 -3
  174. package/dist/chat/capabilities/factory.d.ts +0 -11
  175. package/dist/chat/capabilities/jr-rpc-command.d.ts +0 -26
  176. package/dist/chat/capabilities/router.d.ts +0 -20
  177. package/dist/chat/code/publisher.d.ts +0 -3
  178. package/dist/chat/code/store.d.ts +0 -9
  179. package/dist/chat/coerce.d.ts +0 -6
  180. package/dist/chat/config.d.ts +0 -100
  181. package/dist/chat/configuration/defaults.d.ts +0 -4
  182. package/dist/chat/configuration/service.d.ts +0 -5
  183. package/dist/chat/configuration/sql.d.ts +0 -9
  184. package/dist/chat/configuration/types.d.ts +0 -41
  185. package/dist/chat/configuration/validation.d.ts +0 -2
  186. package/dist/chat/conversation-privacy.d.ts +0 -39
  187. package/dist/chat/conversations/destination-visibility.d.ts +0 -7
  188. package/dist/chat/conversations/destination.d.ts +0 -12
  189. package/dist/chat/conversations/history.d.ts +0 -1157
  190. package/dist/chat/conversations/location.d.ts +0 -5
  191. package/dist/chat/conversations/message-projection.d.ts +0 -4
  192. package/dist/chat/conversations/message-search.d.ts +0 -38
  193. package/dist/chat/conversations/message-summaries.d.ts +0 -9
  194. package/dist/chat/conversations/messages.d.ts +0 -32
  195. package/dist/chat/conversations/projection.d.ts +0 -199
  196. package/dist/chat/conversations/provenance.d.ts +0 -50
  197. package/dist/chat/conversations/retention.d.ts +0 -40
  198. package/dist/chat/conversations/sql/actor-identity.d.ts +0 -19
  199. package/dist/chat/conversations/sql/bindings.d.ts +0 -13
  200. package/dist/chat/conversations/sql/conversation-row.d.ts +0 -17
  201. package/dist/chat/conversations/sql/event-actor.d.ts +0 -14
  202. package/dist/chat/conversations/sql/event-lock.d.ts +0 -3
  203. package/dist/chat/conversations/sql/history.d.ts +0 -4
  204. package/dist/chat/conversations/sql/location.d.ts +0 -18
  205. package/dist/chat/conversations/sql/message-search.d.ts +0 -4
  206. package/dist/chat/conversations/sql/participants.d.ts +0 -18
  207. package/dist/chat/conversations/sql/privacy.d.ts +0 -15
  208. package/dist/chat/conversations/sql/purge.d.ts +0 -45
  209. package/dist/chat/conversations/sql/store.d.ts +0 -77
  210. package/dist/chat/conversations/stop.d.ts +0 -12
  211. package/dist/chat/conversations/store.d.ts +0 -151
  212. package/dist/chat/conversations/structured-events.d.ts +0 -42
  213. package/dist/chat/conversations/tool-source.d.ts +0 -5
  214. package/dist/chat/conversations/turn-lifecycle.d.ts +0 -44
  215. package/dist/chat/conversations/web-authorization.d.ts +0 -24
  216. package/dist/chat/conversations/web-input.d.ts +0 -98
  217. package/dist/chat/conversations/web-mailbox.d.ts +0 -12
  218. package/dist/chat/credentials/broker.d.ts +0 -23
  219. package/dist/chat/credentials/context.d.ts +0 -121
  220. package/dist/chat/credentials/header-transforms.d.ts +0 -3
  221. package/dist/chat/credentials/oauth-scope.d.ts +0 -4
  222. package/dist/chat/credentials/state-adapter-token-store.d.ts +0 -11
  223. package/dist/chat/credentials/subject.d.ts +0 -49
  224. package/dist/chat/credentials/unlink-provider.d.ts +0 -3
  225. package/dist/chat/credentials/user-token-store.d.ts +0 -24
  226. package/dist/chat/current-instruction.d.ts +0 -8
  227. package/dist/chat/db.d.ts +0 -16
  228. package/dist/chat/destination.d.ts +0 -14
  229. package/dist/chat/discovery.d.ts +0 -49
  230. package/dist/chat/egress/credentialed.d.ts +0 -57
  231. package/dist/chat/egress/plugin.d.ts +0 -24
  232. package/dist/chat/event-tasks/ingest.d.ts +0 -9
  233. package/dist/chat/event-tasks/store.d.ts +0 -41
  234. package/dist/chat/event-tasks/tool-support.d.ts +0 -158
  235. package/dist/chat/event-tasks/types.d.ts +0 -51
  236. package/dist/chat/experimental.d.ts +0 -16
  237. package/dist/chat/identities/identity.d.ts +0 -18
  238. package/dist/chat/identities/sql.d.ts +0 -12
  239. package/dist/chat/ingress/bot-mention.d.ts +0 -13
  240. package/dist/chat/ingress/junior-chat.d.ts +0 -26
  241. package/dist/chat/ingress/message-changed.d.ts +0 -52
  242. package/dist/chat/ingress/message-router.d.ts +0 -12
  243. package/dist/chat/ingress/slack-webhook.d.ts +0 -21
  244. package/dist/chat/ingress/slash-command.d.ts +0 -3
  245. package/dist/chat/ingress/workspace-membership.d.ts +0 -9
  246. package/dist/chat/interruption-marker.d.ts +0 -2
  247. package/dist/chat/local/credential-sync.d.ts +0 -5
  248. package/dist/chat/local/oauth-relay.d.ts +0 -4
  249. package/dist/chat/log-context.d.ts +0 -40
  250. package/dist/chat/logging.d.ts +0 -122
  251. package/dist/chat/mcp/auth-store.d.ts +0 -43
  252. package/dist/chat/mcp/client.d.ts +0 -40
  253. package/dist/chat/mcp/errors.d.ts +0 -32
  254. package/dist/chat/mcp/oauth-provider.d.ts +0 -30
  255. package/dist/chat/mcp/oauth.d.ts +0 -21
  256. package/dist/chat/mcp/tool-manager.d.ts +0 -95
  257. package/dist/chat/mcp/tool-name.d.ts +0 -2
  258. package/dist/chat/model-profile.d.ts +0 -34
  259. package/dist/chat/no-reply.d.ts +0 -6
  260. package/dist/chat/oauth-authorization.d.ts +0 -17
  261. package/dist/chat/oauth-flow.d.ts +0 -60
  262. package/dist/chat/oauth-response.d.ts +0 -21
  263. package/dist/chat/optional-string.d.ts +0 -5
  264. package/dist/chat/pi/client.d.ts +0 -62
  265. package/dist/chat/pi/conversation-events.d.ts +0 -38
  266. package/dist/chat/pi/gateway-auth.d.ts +0 -16
  267. package/dist/chat/pi/messages.d.ts +0 -19
  268. package/dist/chat/pi/sdk.d.ts +0 -7
  269. package/dist/chat/pi/sql-model-usage.d.ts +0 -13
  270. package/dist/chat/pi/traced-stream.d.ts +0 -13
  271. package/dist/chat/pi/transcript.d.ts +0 -52
  272. package/dist/chat/plugins/agent-hooks.d.ts +0 -89
  273. package/dist/chat/plugins/annotations.d.ts +0 -11
  274. package/dist/chat/plugins/auth/api-headers-broker.d.ts +0 -6
  275. package/dist/chat/plugins/auth/auth-token-placeholder.d.ts +0 -3
  276. package/dist/chat/plugins/auth/oauth-bearer-broker.d.ts +0 -6
  277. package/dist/chat/plugins/auth/oauth-request.d.ts +0 -26
  278. package/dist/chat/plugins/catalog-runtime.d.ts +0 -1
  279. package/dist/chat/plugins/command-env.d.ts +0 -3
  280. package/dist/chat/plugins/conversation-event-stats.d.ts +0 -3
  281. package/dist/chat/plugins/conversation-events.d.ts +0 -15
  282. package/dist/chat/plugins/conversation-sidebar.d.ts +0 -3
  283. package/dist/chat/plugins/credential-hooks.d.ts +0 -51
  284. package/dist/chat/plugins/inline-manifest-source.d.ts +0 -5
  285. package/dist/chat/plugins/logging.d.ts +0 -3
  286. package/dist/chat/plugins/manifest.d.ts +0 -5
  287. package/dist/chat/plugins/model.d.ts +0 -9
  288. package/dist/chat/plugins/package-discovery.d.ts +0 -20
  289. package/dist/chat/plugins/prompt.d.ts +0 -14
  290. package/dist/chat/plugins/registry.d.ts +0 -27
  291. package/dist/chat/plugins/state.d.ts +0 -4
  292. package/dist/chat/plugins/task-queue.d.ts +0 -42
  293. package/dist/chat/plugins/task-runner.d.ts +0 -12
  294. package/dist/chat/plugins/types.d.ts +0 -126
  295. package/dist/chat/plugins/unfinished-work.d.ts +0 -13
  296. package/dist/chat/plugins/user-pages.d.ts +0 -16
  297. package/dist/chat/plugins/validation.d.ts +0 -5
  298. package/dist/chat/plugins/viewer.d.ts +0 -24
  299. package/dist/chat/prompt.d.ts +0 -44
  300. package/dist/chat/providers/slack/input.d.ts +0 -32
  301. package/dist/chat/providers/slack/processing-reaction.d.ts +0 -21
  302. package/dist/chat/providers/slack/resume.d.ts +0 -73
  303. package/dist/chat/providers/slack/runtime.d.ts +0 -114
  304. package/dist/chat/providers/slack/system-turn.d.ts +0 -13
  305. package/dist/chat/providers/slack/turn.d.ts +0 -59
  306. package/dist/chat/queue/callback.d.ts +0 -26
  307. package/dist/chat/queue/sign.d.ts +0 -30
  308. package/dist/chat/reasoning-level.d.ts +0 -4
  309. package/dist/chat/repository-instructions.d.ts +0 -55
  310. package/dist/chat/resource-events/actor.d.ts +0 -36
  311. package/dist/chat/resource-events/app-publisher.d.ts +0 -18
  312. package/dist/chat/resource-events/catalog.d.ts +0 -52
  313. package/dist/chat/resource-events/ingest.d.ts +0 -10
  314. package/dist/chat/resource-events/notification.d.ts +0 -54
  315. package/dist/chat/resource-events/runtime-catalog.d.ts +0 -8
  316. package/dist/chat/resource-events/store.d.ts +0 -92
  317. package/dist/chat/resource-events/tool-support.d.ts +0 -9
  318. package/dist/chat/resource-events/workspace.d.ts +0 -8
  319. package/dist/chat/runtime/agent-run-outcome.d.ts +0 -29
  320. package/dist/chat/runtime/agent-runner.d.ts +0 -18
  321. package/dist/chat/runtime/auth-pause-state.d.ts +0 -11
  322. package/dist/chat/runtime/conversation-message.d.ts +0 -10
  323. package/dist/chat/runtime/delivered-turn-state.d.ts +0 -12
  324. package/dist/chat/runtime/dev-agent-trace.d.ts +0 -1
  325. package/dist/chat/runtime/report-progress.d.ts +0 -6
  326. package/dist/chat/runtime/request-deadline.d.ts +0 -8
  327. package/dist/chat/runtime/thread-context.d.ts +0 -29
  328. package/dist/chat/runtime/thread-state.d.ts +0 -25
  329. package/dist/chat/runtime/turn-execution.d.ts +0 -35
  330. package/dist/chat/runtime/turn-input.d.ts +0 -34
  331. package/dist/chat/runtime/turn-preparation.d.ts +0 -30
  332. package/dist/chat/runtime/turn-user-message.d.ts +0 -13
  333. package/dist/chat/runtime/turn.d.ts +0 -77
  334. package/dist/chat/sandbox/command-result.d.ts +0 -74
  335. package/dist/chat/sandbox/credentials.d.ts +0 -11
  336. package/dist/chat/sandbox/docker.d.ts +0 -17
  337. package/dist/chat/sandbox/egress/credentials.d.ts +0 -61
  338. package/dist/chat/sandbox/egress/oidc.d.ts +0 -3
  339. package/dist/chat/sandbox/egress/policy.d.ts +0 -32
  340. package/dist/chat/sandbox/egress/proxy.d.ts +0 -35
  341. package/dist/chat/sandbox/egress/schemas.d.ts +0 -187
  342. package/dist/chat/sandbox/egress/session.d.ts +0 -59
  343. package/dist/chat/sandbox/egress/signals.d.ts +0 -9
  344. package/dist/chat/sandbox/egress/tracing.d.ts +0 -7
  345. package/dist/chat/sandbox/errors.d.ts +0 -18
  346. package/dist/chat/sandbox/http-error-details.d.ts +0 -18
  347. package/dist/chat/sandbox/noninteractive-command.d.ts +0 -21
  348. package/dist/chat/sandbox/paths.d.ts +0 -8
  349. package/dist/chat/sandbox/prepare-workspace.d.ts +0 -35
  350. package/dist/chat/sandbox/ref.d.ts +0 -6
  351. package/dist/chat/sandbox/resources.d.ts +0 -15
  352. package/dist/chat/sandbox/runtime-dependencies.d.ts +0 -3
  353. package/dist/chat/sandbox/sandbox.d.ts +0 -45
  354. package/dist/chat/sandbox/session.d.ts +0 -50
  355. package/dist/chat/sandbox/skill-sandbox.d.ts +0 -42
  356. package/dist/chat/sandbox/skill-sync.d.ts +0 -16
  357. package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +0 -5
  358. package/dist/chat/sandbox/snapshot/events.d.ts +0 -30
  359. package/dist/chat/sandbox/snapshot/install.d.ts +0 -6
  360. package/dist/chat/sandbox/snapshot/job-callback.d.ts +0 -5
  361. package/dist/chat/sandbox/snapshot/job-queue.d.ts +0 -26
  362. package/dist/chat/sandbox/snapshot/job-runner.d.ts +0 -11
  363. package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +0 -11
  364. package/dist/chat/sandbox/snapshot/profile.d.ts +0 -15
  365. package/dist/chat/sandbox/snapshot/resolve.d.ts +0 -43
  366. package/dist/chat/sandbox/snapshot/runtime.d.ts +0 -2
  367. package/dist/chat/sandbox/snapshot/span.d.ts +0 -5
  368. package/dist/chat/sandbox/snapshot/store.d.ts +0 -31
  369. package/dist/chat/sandbox/snapshot/workspace.d.ts +0 -23
  370. package/dist/chat/sandbox/workspace.d.ts +0 -72
  371. package/dist/chat/scheduled-tasks/cadence.d.ts +0 -27
  372. package/dist/chat/scheduled-tasks/heartbeat.d.ts +0 -6
  373. package/dist/chat/scheduled-tasks/identity.d.ts +0 -6
  374. package/dist/chat/scheduled-tasks/personal.d.ts +0 -23
  375. package/dist/chat/scheduled-tasks/runs.d.ts +0 -49
  376. package/dist/chat/scheduled-tasks/schedule-intent.d.ts +0 -61
  377. package/dist/chat/scheduled-tasks/tasks.d.ts +0 -27
  378. package/dist/chat/scheduled-tasks/telemetry.d.ts +0 -7
  379. package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -231
  380. package/dist/chat/scheduled-tasks/tools/create.d.ts +0 -95
  381. package/dist/chat/scheduled-tasks/tools/delete.d.ts +0 -70
  382. package/dist/chat/scheduled-tasks/tools/list.d.ts +0 -71
  383. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +0 -70
  384. package/dist/chat/scheduled-tasks/tools/update.d.ts +0 -97
  385. package/dist/chat/scheduled-tasks/tools.d.ts +0 -6
  386. package/dist/chat/scheduled-tasks/types.d.ts +0 -135
  387. package/dist/chat/sentry-links.d.ts +0 -6
  388. package/dist/chat/sentry-payload-filter.d.ts +0 -14
  389. package/dist/chat/sentry.d.ts +0 -3
  390. package/dist/chat/services/assistant-reply.d.ts +0 -16
  391. package/dist/chat/services/auth-pause-response.d.ts +0 -2
  392. package/dist/chat/services/auth-pause.d.ts +0 -24
  393. package/dist/chat/services/automated-turn-limit.d.ts +0 -89
  394. package/dist/chat/services/context-budget.d.ts +0 -19
  395. package/dist/chat/services/context-compaction-marker.d.ts +0 -8
  396. package/dist/chat/services/context-compaction.d.ts +0 -78
  397. package/dist/chat/services/conversation-memory.d.ts +0 -53
  398. package/dist/chat/services/conversation-title.d.ts +0 -20
  399. package/dist/chat/services/empty-output-continuation.d.ts +0 -20
  400. package/dist/chat/services/guardian-action-policy.d.ts +0 -12
  401. package/dist/chat/services/guardian-action-review.d.ts +0 -9
  402. package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -42
  403. package/dist/chat/services/message-actor-identity.d.ts +0 -16
  404. package/dist/chat/services/pending-auth.d.ts +0 -44
  405. package/dist/chat/services/persist-retry.d.ts +0 -2
  406. package/dist/chat/services/plugin-auth-orchestration.d.ts +0 -56
  407. package/dist/chat/services/provider-default-config.d.ts +0 -9
  408. package/dist/chat/services/provider-error.d.ts +0 -42
  409. package/dist/chat/services/provider-retry.d.ts +0 -13
  410. package/dist/chat/services/short-title.d.ts +0 -25
  411. package/dist/chat/services/subscribed-decision.d.ts +0 -75
  412. package/dist/chat/services/subscribed-reply-policy.d.ts +0 -13
  413. package/dist/chat/services/subscribed-reply-router-policy.d.ts +0 -12
  414. package/dist/chat/services/turn-failure-response.d.ts +0 -24
  415. package/dist/chat/services/turn-limit.d.ts +0 -16
  416. package/dist/chat/services/turn-result.d.ts +0 -42
  417. package/dist/chat/services/turn-router.d.ts +0 -59
  418. package/dist/chat/services/turn-session-routing.d.ts +0 -35
  419. package/dist/chat/skills.d.ts +0 -47
  420. package/dist/chat/slack/action-token.d.ts +0 -6
  421. package/dist/chat/slack/adapter-context.d.ts +0 -25
  422. package/dist/chat/slack/adapter.d.ts +0 -9
  423. package/dist/chat/slack/app-home.d.ts +0 -11
  424. package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -12
  425. package/dist/chat/slack/assistant-thread/status-render.d.ts +0 -28
  426. package/dist/chat/slack/assistant-thread/status-scheduler.d.ts +0 -24
  427. package/dist/chat/slack/assistant-thread/status-send.d.ts +0 -31
  428. package/dist/chat/slack/assistant-thread/status.d.ts +0 -36
  429. package/dist/chat/slack/assistant-thread/title.d.ts +0 -16
  430. package/dist/chat/slack/attachment-fetchers.d.ts +0 -11
  431. package/dist/chat/slack/automated-turn-limit-notice.d.ts +0 -16
  432. package/dist/chat/slack/canvas-references.d.ts +0 -2
  433. package/dist/chat/slack/channel.d.ts +0 -65
  434. package/dist/chat/slack/client.d.ts +0 -87
  435. package/dist/chat/slack/context.d.ts +0 -21
  436. package/dist/chat/slack/conversation-context.d.ts +0 -40
  437. package/dist/chat/slack/dashboard-link.d.ts +0 -11
  438. package/dist/chat/slack/dispatch-turn.d.ts +0 -24
  439. package/dist/chat/slack/emoji.d.ts +0 -1
  440. package/dist/chat/slack/errors.d.ts +0 -8
  441. package/dist/chat/slack/footer.d.ts +0 -46
  442. package/dist/chat/slack/id-param.d.ts +0 -25
  443. package/dist/chat/slack/ids.d.ts +0 -24
  444. package/dist/chat/slack/location-url.d.ts +0 -11
  445. package/dist/chat/slack/message/attachments.d.ts +0 -2
  446. package/dist/chat/slack/message/blocks.d.ts +0 -2
  447. package/dist/chat/slack/message/content.d.ts +0 -18
  448. package/dist/chat/slack/message/identity.d.ts +0 -7
  449. package/dist/chat/slack/message-control.d.ts +0 -2
  450. package/dist/chat/slack/mrkdwn.d.ts +0 -19
  451. package/dist/chat/slack/oauth-authorization-message.d.ts +0 -3
  452. package/dist/chat/slack/outbound.d.ts +0 -79
  453. package/dist/chat/slack/output.d.ts +0 -54
  454. package/dist/chat/slack/reply.d.ts +0 -19
  455. package/dist/chat/slack/status-format.d.ts +0 -2
  456. package/dist/chat/slack/team-domain.d.ts +0 -4
  457. package/dist/chat/slack/timestamp-param.d.ts +0 -23
  458. package/dist/chat/slack/timestamp.d.ts +0 -6
  459. package/dist/chat/slack/tool-support/canvas/api.d.ts +0 -38
  460. package/dist/chat/slack/tool-support/canvas/context.d.ts +0 -11
  461. package/dist/chat/slack/tool-support/canvas/markdown.d.ts +0 -9
  462. package/dist/chat/slack/tool-support/channel-access.d.ts +0 -42
  463. package/dist/chat/slack/tool-support/channel-capabilities.d.ts +0 -13
  464. package/dist/chat/slack/tool-support/channel-target.d.ts +0 -28
  465. package/dist/chat/slack/tool-support/context.d.ts +0 -15
  466. package/dist/chat/slack/tool-support/list/api.d.ts +0 -50
  467. package/dist/chat/slack/tool-support/list/params.d.ts +0 -5
  468. package/dist/chat/slack/tool-support/slack-message-url.d.ts +0 -18
  469. package/dist/chat/slack/tools/canvas/create.d.ts +0 -30
  470. package/dist/chat/slack/tools/canvas/edit.d.ts +0 -48
  471. package/dist/chat/slack/tools/canvas/read.d.ts +0 -51
  472. package/dist/chat/slack/tools/canvas/write.d.ts +0 -29
  473. package/dist/chat/slack/tools/channel-join.d.ts +0 -28
  474. package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -34
  475. package/dist/chat/slack/tools/conversation-message-search.d.ts +0 -67
  476. package/dist/chat/slack/tools/list/add-items.d.ts +0 -31
  477. package/dist/chat/slack/tools/list/create.d.ts +0 -28
  478. package/dist/chat/slack/tools/list/get-items.d.ts +0 -28
  479. package/dist/chat/slack/tools/list/update-item.d.ts +0 -36
  480. package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -29
  481. package/dist/chat/slack/tools/public-search.d.ts +0 -121
  482. package/dist/chat/slack/tools/send-files.d.ts +0 -53
  483. package/dist/chat/slack/tools/thread-read.d.ts +0 -32
  484. package/dist/chat/slack/user.d.ts +0 -11
  485. package/dist/chat/slack/users.d.ts +0 -40
  486. package/dist/chat/slack/vision-cache.d.ts +0 -5
  487. package/dist/chat/slack/vision-context.d.ts +0 -63
  488. package/dist/chat/slack/workspace-context.d.ts +0 -4
  489. package/dist/chat/sleep.d.ts +0 -2
  490. package/dist/chat/source.d.ts +0 -16
  491. package/dist/chat/state/adapter.d.ts +0 -10
  492. package/dist/chat/state/conversation.d.ts +0 -80
  493. package/dist/chat/state/locks.d.ts +0 -35
  494. package/dist/chat/state/ttl.d.ts +0 -2
  495. package/dist/chat/state/turn-id.d.ts +0 -4
  496. package/dist/chat/task-execution/assistant-message.d.ts +0 -32
  497. package/dist/chat/task-execution/checkpoint.d.ts +0 -86
  498. package/dist/chat/task-execution/conversation-turn.d.ts +0 -8
  499. package/dist/chat/task-execution/heartbeat.d.ts +0 -13
  500. package/dist/chat/task-execution/mailbox-input.d.ts +0 -3
  501. package/dist/chat/task-execution/mailbox-turn.d.ts +0 -52
  502. package/dist/chat/task-execution/paused-turn.d.ts +0 -27
  503. package/dist/chat/task-execution/queue-signing.d.ts +0 -17
  504. package/dist/chat/task-execution/queue.d.ts +0 -33
  505. package/dist/chat/task-execution/slack-work.d.ts +0 -274
  506. package/dist/chat/task-execution/state.d.ts +0 -410
  507. package/dist/chat/task-execution/store.d.ts +0 -248
  508. package/dist/chat/task-execution/turn-cursor-keys.d.ts +0 -6
  509. package/dist/chat/task-execution/turn-cursor.d.ts +0 -165
  510. package/dist/chat/task-execution/turn-wake.d.ts +0 -41
  511. package/dist/chat/task-execution/vercel-callback.d.ts +0 -27
  512. package/dist/chat/task-execution/vercel-queue.d.ts +0 -19
  513. package/dist/chat/task-execution/worker.d.ts +0 -42
  514. package/dist/chat/task-input.d.ts +0 -22
  515. package/dist/chat/tasks/execution-stats.d.ts +0 -105
  516. package/dist/chat/tasks/read.d.ts +0 -22
  517. package/dist/chat/tool-exposure.d.ts +0 -10
  518. package/dist/chat/tool-support/action-review-evidence.d.ts +0 -4
  519. package/dist/chat/tool-support/action-review-history.d.ts +0 -117
  520. package/dist/chat/tool-support/action-review.d.ts +0 -143
  521. package/dist/chat/tool-support/catalog-tool-call.d.ts +0 -10
  522. package/dist/chat/tool-support/normalize-result.d.ts +0 -9
  523. package/dist/chat/tool-support/pi-tool-adapter.d.ts +0 -13
  524. package/dist/chat/tool-support/private-trace-result.d.ts +0 -4
  525. package/dist/chat/tool-support/skill/mcp-tool-summary.d.ts +0 -20
  526. package/dist/chat/tool-support/structured-result.d.ts +0 -44
  527. package/dist/chat/tool-support/text-range-result.d.ts +0 -37
  528. package/dist/chat/tool-support/timed-out-tool-result.d.ts +0 -11
  529. package/dist/chat/tool-support/tool-execution-report.d.ts +0 -8
  530. package/dist/chat/tool-support/zod-tool.d.ts +0 -46
  531. package/dist/chat/tools/create-event-task.d.ts +0 -71
  532. package/dist/chat/tools/definition.d.ts +0 -122
  533. package/dist/chat/tools/delete-event-task.d.ts +0 -61
  534. package/dist/chat/tools/event-tasks.d.ts +0 -5
  535. package/dist/chat/tools/execute-tool.d.ts +0 -11
  536. package/dist/chat/tools/execution/build-sandbox-input.d.ts +0 -2
  537. package/dist/chat/tools/execution/tool-error-handler.d.ts +0 -4
  538. package/dist/chat/tools/execution/tool-input-error.d.ts +0 -6
  539. package/dist/chat/tools/handoff/tool.d.ts +0 -31
  540. package/dist/chat/tools/idempotency.d.ts +0 -1
  541. package/dist/chat/tools/index.d.ts +0 -11
  542. package/dist/chat/tools/list-event-tasks.d.ts +0 -59
  543. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -46
  544. package/dist/chat/tools/publish-image.d.ts +0 -44
  545. package/dist/chat/tools/resource-events.d.ts +0 -5
  546. package/dist/chat/tools/runtime/report-progress.d.ts +0 -27
  547. package/dist/chat/tools/runtime/spawn-agent.d.ts +0 -33
  548. package/dist/chat/tools/sandbox/bash.d.ts +0 -11
  549. package/dist/chat/tools/sandbox/edit-file.d.ts +0 -43
  550. package/dist/chat/tools/sandbox/file-uploads.d.ts +0 -52
  551. package/dist/chat/tools/sandbox/file-utils.d.ts +0 -64
  552. package/dist/chat/tools/sandbox/find-files.d.ts +0 -33
  553. package/dist/chat/tools/sandbox/generated-artifacts.d.ts +0 -16
  554. package/dist/chat/tools/sandbox/grep.d.ts +0 -51
  555. package/dist/chat/tools/sandbox/list-dir.d.ts +0 -35
  556. package/dist/chat/tools/sandbox/read-file.d.ts +0 -12
  557. package/dist/chat/tools/sandbox/text-edits.d.ts +0 -29
  558. package/dist/chat/tools/sandbox/view-image.d.ts +0 -11
  559. package/dist/chat/tools/sandbox/write-file.d.ts +0 -10
  560. package/dist/chat/tools/scheduled-tasks.d.ts +0 -4
  561. package/dist/chat/tools/search-conversation-events.d.ts +0 -56
  562. package/dist/chat/tools/search-resource-event-types.d.ts +0 -56
  563. package/dist/chat/tools/search-tools.d.ts +0 -71
  564. package/dist/chat/tools/skill/call-mcp-tool.d.ts +0 -16
  565. package/dist/chat/tools/skill/load-skill.d.ts +0 -39
  566. package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -81
  567. package/dist/chat/tools/stop-watching-resources.d.ts +0 -30
  568. package/dist/chat/tools/system-time.d.ts +0 -42
  569. package/dist/chat/tools/types.d.ts +0 -129
  570. package/dist/chat/tools/unpublish-image.d.ts +0 -35
  571. package/dist/chat/tools/update-event-task.d.ts +0 -71
  572. package/dist/chat/tools/user-lookup.d.ts +0 -29
  573. package/dist/chat/tools/watch-resource-events.d.ts +0 -64
  574. package/dist/chat/tools/web/constants.d.ts +0 -6
  575. package/dist/chat/tools/web/fetch-content.d.ts +0 -28
  576. package/dist/chat/tools/web/fetch-tool.d.ts +0 -31
  577. package/dist/chat/tools/web/image-generate.d.ts +0 -51
  578. package/dist/chat/tools/web/network.d.ts +0 -6
  579. package/dist/chat/tools/web/search.d.ts +0 -28
  580. package/dist/chat/turn-context-tag.d.ts +0 -6
  581. package/dist/chat/usage.d.ts +0 -42
  582. package/dist/chat/vercel-queue-client.d.ts +0 -3
  583. package/dist/chat/workspaces/checkout-path.d.ts +0 -4
  584. package/dist/chat/workspaces/store.d.ts +0 -35
  585. package/dist/chat/workspaces/tools.d.ts +0 -4
  586. package/dist/chat/workspaces/types.d.ts +0 -36
  587. package/dist/chat/workspaces/validation.d.ts +0 -20
  588. package/dist/chat/xml.d.ts +0 -3
  589. package/dist/db/db.d.ts +0 -27
  590. package/dist/db/executor.d.ts +0 -8
  591. package/dist/db/neon.d.ts +0 -8
  592. package/dist/db/postgres-json.d.ts +0 -5
  593. package/dist/db/postgres.d.ts +0 -7
  594. package/dist/db/schema/agent-invocations.d.ts +0 -592
  595. package/dist/db/schema/api-tokens.d.ts +0 -160
  596. package/dist/db/schema/artifacts.d.ts +0 -178
  597. package/dist/db/schema/attachments.d.ts +0 -178
  598. package/dist/db/schema/code.d.ts +0 -367
  599. package/dist/db/schema/conversation-annotations.d.ts +0 -142
  600. package/dist/db/schema/conversation-bindings.d.ts +0 -110
  601. package/dist/db/schema/conversation-events.d.ts +0 -170
  602. package/dist/db/schema/conversation-participants.d.ts +0 -80
  603. package/dist/db/schema/conversations.d.ts +0 -1341
  604. package/dist/db/schema/destinations.d.ts +0 -209
  605. package/dist/db/schema/event-tasks.d.ts +0 -150
  606. package/dist/db/schema/identities.d.ts +0 -265
  607. package/dist/db/schema/location-configurations.d.ts +0 -127
  608. package/dist/db/schema/scheduled-tasks.d.ts +0 -298
  609. package/dist/db/schema/snapshots.d.ts +0 -271
  610. package/dist/db/schema/stats.d.ts +0 -97
  611. package/dist/db/schema/task-executions.d.ts +0 -131
  612. package/dist/db/schema/timestamps.d.ts +0 -1
  613. package/dist/db/schema/users.d.ts +0 -109
  614. package/dist/db/schema/workspaces.d.ts +0 -152
  615. package/dist/db/schema.d.ts +0 -4436
  616. package/dist/deployment.d.ts +0 -12
  617. package/dist/handlers/artifacts.d.ts +0 -8
  618. package/dist/handlers/health.d.ts +0 -7
  619. package/dist/handlers/heartbeat.d.ts +0 -7
  620. package/dist/handlers/mcp-oauth-callback.d.ts +0 -10
  621. package/dist/handlers/oauth-callback.d.ts +0 -10
  622. package/dist/handlers/oauth-html.d.ts +0 -4
  623. package/dist/handlers/retention.d.ts +0 -9
  624. package/dist/handlers/sandbox-egress-proxy.d.ts +0 -11
  625. package/dist/handlers/sandbox-egress-route.d.ts +0 -4
  626. package/dist/handlers/sandbox-egress-signals.d.ts +0 -4
  627. package/dist/handlers/slack-webhook.d.ts +0 -4
  628. package/dist/handlers/types.d.ts +0 -2
  629. package/dist/handlers/webhooks.d.ts +0 -12
  630. package/dist/package-resolution.d.ts +0 -13
  631. package/dist/personal-tokens/store.d.ts +0 -27
  632. package/dist/plugin-module.d.ts +0 -21
  633. package/dist/plugins.d.ts +0 -26
  634. package/dist/reporting-schema.d.ts +0 -194
  635. package/dist/reporting.d.ts +0 -12
  636. package/dist/spawn-5YR3E42B.js +0 -42
  637. package/dist/stats.d.ts +0 -18
  638. package/dist/task-runner-GR2WZNCW.js +0 -36
  639. package/dist/usage-schema.d.ts +0 -25
package/dist/chat/db.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import type { ConversationStore } from "@/chat/conversations/store";
2
- import type { ConversationEventStore } from "@/chat/conversations/history";
3
- import type { ConversationMessageSearchStore } from "@/chat/conversations/message-search";
4
- import type { JuniorDatabase, JuniorSqlExecutor } from "@/db/db";
5
- /** Return the process SQL executor for SQL-specific queries and transactions. */
6
- export declare function getSqlExecutor(): JuniorSqlExecutor;
7
- /** Return the process Drizzle database. */
8
- export declare function getDb(): JuniorDatabase;
9
- /** Return the SQL-backed conversation store. */
10
- export declare function getConversationStore(): ConversationStore;
11
- /** Return the canonical SQL-backed conversation event store. */
12
- export declare function getConversationEventStore(): ConversationEventStore;
13
- /** Return the SQL-backed public provider-tenant conversation search store. */
14
- export declare function getConversationMessageSearchStore(): ConversationMessageSearchStore;
15
- /** Close the process SQL database when it has been opened. */
16
- export declare function closeDb(): Promise<void>;
@@ -1,14 +0,0 @@
1
- import { type Destination, type SlackDestination } from "@sentry/junior-plugin-api";
2
- /** Build Junior's canonical destination from Slack workspace and channel ids. */
3
- export declare function createSlackDestination(input: {
4
- channelId: string | undefined;
5
- teamId: string | undefined;
6
- }): Destination | undefined;
7
- /** Parse and validate a serialized destination that crossed a runtime boundary. */
8
- export declare function parseDestination(value: unknown): Destination | undefined;
9
- /** Require a Slack destination at a Slack-only runtime boundary. */
10
- export declare function requireSlackDestination(destination: Destination | undefined, action: string): SlackDestination;
11
- /** Compare two destinations without relying on object identity. */
12
- export declare function sameDestination(left: Destination, right: Destination): boolean;
13
- /** Return the lock/index-safe storage key for a destination. */
14
- export declare function destinationKey(destination: Destination): string;
@@ -1,49 +0,0 @@
1
- /** Check whether a path exists and is a directory. */
2
- export declare function isDirectory(targetPath: string): boolean;
3
- /** Check whether a path exists and is a regular file. */
4
- export declare function isFile(targetPath: string): boolean;
5
- export interface DiscoverNodeModulesDirsOptions {
6
- candidateDirs?: string[];
7
- }
8
- /** Discover node_modules directories reachable from the current working directory. */
9
- export declare function discoverNodeModulesDirs(cwd?: string, options?: DiscoverNodeModulesDirsOptions): string[];
10
- export interface DiscoverProjectRootsOptions {
11
- nodeModulesDirs?: string[];
12
- }
13
- /** Discover project root directories by walking up from cwd and checking node_modules parents. */
14
- export declare function discoverProjectRoots(cwd?: string, options?: DiscoverProjectRootsOptions): string[];
15
- /** Return the resolved app home directory for the current working directory. */
16
- export declare function homeDir(): string;
17
- export interface ResolveHomeDirOptions {
18
- projectRoots?: string[];
19
- }
20
- /** Resolve the app home directory by scoring candidate `app/` directories. */
21
- export declare function resolveHomeDir(cwd?: string, options?: ResolveHomeDirOptions): string;
22
- /** Return the built-in skills directory in source and packaged builds. */
23
- export declare function builtInSkillsDir(): string;
24
- /** Return the data directory (same as homeDir). */
25
- export declare function dataDir(): string;
26
- /** Return the path to the SOUL.md file. */
27
- export declare function soulPath(): string;
28
- /** Return the path to the WORLD.md file. */
29
- export declare function worldPath(): string;
30
- /** Return the path to the DESCRIPTION.md file. */
31
- export declare function descriptionPath(): string;
32
- /** Return the skills directory path. */
33
- export declare function skillsDir(): string;
34
- /** Return the plugins directory path. */
35
- export declare function pluginsDir(): string;
36
- /** Return all unique data root directories. */
37
- export declare function dataRoots(): string[];
38
- /** Return all unique skill root directories. */
39
- export declare function skillRoots(): string[];
40
- /** Return all unique plugin root directories. */
41
- export declare function pluginRoots(): string[];
42
- /** Return candidate paths where SOUL.md might be found. */
43
- export declare function soulPathCandidates(): string[];
44
- /** Return candidate paths where WORLD.md might be found. */
45
- export declare function worldPathCandidates(): string[];
46
- /** Return candidate paths where DESCRIPTION.md might be found. */
47
- export declare function descriptionPathCandidates(): string[];
48
- /** List non-reserved .md files in the app root for sandbox reference syncing. */
49
- export declare function listReferenceFiles(): string[];
@@ -1,57 +0,0 @@
1
- import { type SandboxEgressGrantSelection } from "@/chat/sandbox/egress/credentials";
2
- import { type SandboxEgressCredentialContext, type SandboxEgressCredentialLease } from "@/chat/sandbox/egress/session";
3
- import { type SandboxEgressTracePropagationConfig } from "@/chat/sandbox/egress/tracing";
4
- /**
5
- * Intercepts the already-authenticated provider request before live forwarding.
6
- *
7
- * Tests use this to inspect the exact upstream request after grant selection
8
- * and credential header injection, without weakening the proxy verification
9
- * path that runs before this hook is reached.
10
- */
11
- export type CredentialedEgressHttpInterceptor = (input: {
12
- provider: string;
13
- request: Request;
14
- upstreamUrl: URL;
15
- }) => Promise<Response | undefined>;
16
- /** Runtime dependencies for the credentialed provider forwarding step. */
17
- export interface CredentialedEgressDeps {
18
- clearCredentialLease?: (provider: string, grant: SandboxEgressCredentialLease["grant"], credentialContext: SandboxEgressCredentialContext) => Promise<void>;
19
- fetch?: typeof fetch;
20
- issueCredentialLease?: (provider: string, selection: SandboxEgressGrantSelection, credentialContext: SandboxEgressCredentialContext) => Promise<SandboxEgressCredentialLease>;
21
- interceptHttp?: CredentialedEgressHttpInterceptor;
22
- recordAuthRequired?: (input: {
23
- authorization?: SandboxEgressCredentialLease["authorization"];
24
- credentialContext: SandboxEgressCredentialContext;
25
- grant: SandboxEgressCredentialLease["grant"];
26
- kind?: "auth_required" | "unavailable";
27
- message: string;
28
- provider: string;
29
- }) => Promise<void>;
30
- recordPermissionDenied?: (input: {
31
- credentialContext: SandboxEgressCredentialContext;
32
- lease: SandboxEgressCredentialLease;
33
- message: string;
34
- provider: string;
35
- upstream: Response;
36
- upstreamUrl: URL;
37
- }) => Promise<void>;
38
- tracePropagation?: SandboxEgressTracePropagationConfig;
39
- }
40
- /**
41
- * Forward one verified sandbox egress request with host-managed credentials.
42
- *
43
- * The caller must already have authenticated the sandbox VM, checked the signed
44
- * credential context, and resolved the provider for `upstreamUrl`. This function
45
- * then selects the read/write grant, issues or reuses a short-lived credential
46
- * lease, applies its header transforms, and maps provider auth failures into
47
- * command-level signals instead of throwing raw upstream details at the agent.
48
- */
49
- export declare function executeCredentialedEgressRequest(input: {
50
- activeEgressId: string;
51
- credentialContext: SandboxEgressCredentialContext;
52
- deps: CredentialedEgressDeps;
53
- operation?: string;
54
- provider: string;
55
- request: Request;
56
- upstreamUrl: URL;
57
- }): Promise<Response>;
@@ -1,24 +0,0 @@
1
- import type { PluginAuthorization, PluginEgress } from "@sentry/junior-plugin-api";
2
- import type { CredentialContext } from "@/chat/credentials/context";
3
- interface PluginEgressAuth {
4
- handleAuthRequired(input: {
5
- authorization?: PluginAuthorization;
6
- grant: {
7
- access: "read" | "write";
8
- name: string;
9
- reason?: string;
10
- requirements?: string[];
11
- };
12
- kind: "auth_required" | "unavailable";
13
- message: string;
14
- provider: string;
15
- }): Promise<void>;
16
- }
17
- interface PluginEgressDeps {
18
- credentialContext?: CredentialContext;
19
- fetch?: typeof fetch;
20
- pluginAuth: PluginEgressAuth;
21
- }
22
- /** Create host-owned provider egress for plugin runtime tools. */
23
- export declare function createPluginEgress(deps: PluginEgressDeps): PluginEgress;
24
- export {};
@@ -1,9 +0,0 @@
1
- import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
2
- /** Match a normalized resource event and dispatch every matching task. */
3
- export declare function ingestEventTasks(input: unknown, options: {
4
- nowMs?: number;
5
- queue: ConversationWorkQueue;
6
- teamId: string;
7
- }): Promise<{
8
- dispatched: number;
9
- }>;
@@ -1,41 +0,0 @@
1
- import { type ResourceEvent, type User } from "@sentry/junior-plugin-api";
2
- import type { JuniorDatabase } from "@/db/db";
3
- import { type EventTaskStatus } from "@/db/schema/event-tasks";
4
- import { type EventTask } from "./types";
5
- /** Live event task plus retained SQL status for history after delete. */
6
- export type StoredEventTask = EventTask & {
7
- status: EventTaskStatus;
8
- };
9
- /** Read one event task by id, including deleted rows when present. */
10
- export declare function getEventTask(db: JuniorDatabase, id: string): Promise<StoredEventTask | undefined>;
11
- /** Create one retry-stable event task, or revive a deleted row with the new payload. */
12
- export declare function createEventTask(db: JuniorDatabase, task: EventTask): Promise<StoredEventTask>;
13
- /** Replace an existing non-deleted event task. */
14
- export declare function saveEventTask(db: JuniorDatabase, task: EventTask): Promise<StoredEventTask | undefined>;
15
- /** Mark one existing event task deleted while retaining the row for history. */
16
- export declare function deleteEventTask(db: JuniorDatabase, id: string): Promise<StoredEventTask | undefined>;
17
- /** List live event tasks in one Slack workspace. */
18
- export declare function listEventTasksForTeam(db: JuniorDatabase, teamId: string): Promise<StoredEventTask[]>;
19
- /** Return whether one event task was created by a viewer-linked Slack identity. */
20
- export declare function eventTaskBelongsToUser(task: EventTask, user: User): boolean;
21
- /** List a bounded newest-first page of live event tasks created by one user. */
22
- export declare function listEventTasksCreatedBy(db: JuniorDatabase, user: User, limit: number): Promise<StoredEventTask[]>;
23
- /**
24
- * List deleted event tasks created by one user, newest first.
25
- * Used only to keep historical runs after the live task list drops the row.
26
- */
27
- export declare function listDeletedEventTasksCreatedBy(db: JuniorDatabase, user: User, limit: number): Promise<StoredEventTask[]>;
28
- /** List live event tasks whose current Slack destination is public. */
29
- export declare function listPublicEventTasksForTeams(db: JuniorDatabase, teamIds: string[], limit: number): Promise<StoredEventTask[]>;
30
- /**
31
- * Collect match keys from live event tasks for these identifiers and event types.
32
- * Does not evaluate match values — only reports keys that filters use.
33
- */
34
- export declare function collectEventTaskMatchKeys(db: JuniorDatabase, input: {
35
- eventTypes: string[];
36
- identifiers: string[];
37
- namespace: string;
38
- teamId: string;
39
- }): Promise<string[]>;
40
- /** Find every live task matching one normalized resource event. */
41
- export declare function findMatchingEventTasks(db: JuniorDatabase, event: ResourceEvent, teamId: string): Promise<StoredEventTask[]>;
@@ -1,158 +0,0 @@
1
- import { z } from "zod";
2
- import { type EventTask } from "@/chat/event-tasks/types";
3
- import { type ResourceEventCatalog } from "@/chat/resource-events/catalog";
4
- import type { ToolRuntimeContext } from "@/chat/tools/types";
5
- /** Validate one successful event-task mutation result. */
6
- export declare const eventTaskToolResultSchema: z.ZodObject<{
7
- target: z.ZodOptional<z.ZodString>;
8
- truncated: z.ZodOptional<z.ZodBoolean>;
9
- timed_out: z.ZodOptional<z.ZodBoolean>;
10
- continuation: z.ZodOptional<z.ZodObject<{
11
- arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
- reason: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strict>>;
14
- task: z.ZodObject<{
15
- id: z.ZodString;
16
- task: z.ZodString;
17
- namespace: z.ZodString;
18
- identifier: z.ZodString;
19
- resourceType: z.ZodString;
20
- label: z.ZodString;
21
- events: z.ZodArray<z.ZodString>;
22
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
23
- credentialMode: z.ZodEnum<{
24
- system: "system";
25
- creator: "creator";
26
- }>;
27
- createdBy: z.ZodObject<{
28
- slackUserId: z.ZodString;
29
- fullName: z.ZodOptional<z.ZodString>;
30
- userName: z.ZodOptional<z.ZodString>;
31
- }, z.core.$strict>;
32
- triggerAvailable: z.ZodBoolean;
33
- }, z.core.$strict>;
34
- }, z.core.$strict>;
35
- /** Validate one successful event-task list result. */
36
- export declare const eventTaskListToolResultSchema: z.ZodObject<{
37
- target: z.ZodOptional<z.ZodString>;
38
- timed_out: z.ZodOptional<z.ZodBoolean>;
39
- continuation: z.ZodOptional<z.ZodObject<{
40
- arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
41
- reason: z.ZodOptional<z.ZodString>;
42
- }, z.core.$strict>>;
43
- tasks: z.ZodArray<z.ZodObject<{
44
- id: z.ZodString;
45
- task: z.ZodString;
46
- namespace: z.ZodString;
47
- identifier: z.ZodString;
48
- resourceType: z.ZodString;
49
- label: z.ZodString;
50
- events: z.ZodArray<z.ZodString>;
51
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
- credentialMode: z.ZodEnum<{
53
- system: "system";
54
- creator: "creator";
55
- }>;
56
- createdBy: z.ZodObject<{
57
- slackUserId: z.ZodString;
58
- fullName: z.ZodOptional<z.ZodString>;
59
- userName: z.ZodOptional<z.ZodString>;
60
- }, z.core.$strict>;
61
- triggerAvailable: z.ZodBoolean;
62
- }, z.core.$strict>>;
63
- truncated: z.ZodBoolean;
64
- }, z.core.$strict>;
65
- /** Build the validated resource-event trigger accepted by event-task tools. */
66
- export declare function registeredEventTaskTriggerSchema(catalog: ResourceEventCatalog): z.ZodObject<{
67
- namespace: z.ZodString | z.ZodEnum<{
68
- [x: string]: string;
69
- }>;
70
- identifier: z.ZodString;
71
- resourceType: z.ZodString | z.ZodEnum<{
72
- [x: string]: string;
73
- }>;
74
- label: z.ZodString;
75
- events: z.ZodArray<z.ZodString | z.ZodEnum<{
76
- [x: string]: string;
77
- }>>;
78
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
79
- }, z.core.$strict>;
80
- /** Reject an event-task trigger that is no longer supported by the catalog. */
81
- export declare function requireSupportedEventTaskTrigger(catalog: ResourceEventCatalog, trigger: {
82
- events: string[];
83
- match?: EventTask["trigger"]["match"];
84
- namespace: string;
85
- resourceType: string;
86
- }): EventTask["trigger"]["match"] | undefined;
87
- /** Require the active Slack authority used for event-task management. */
88
- export declare function requireEventTaskSlackContext(context: ToolRuntimeContext): {
89
- actor: import("../actor").SlackActor;
90
- destination: {
91
- platform: "slack";
92
- teamId: string;
93
- channelId: string;
94
- };
95
- source: {
96
- kind: "slack";
97
- teamId: string;
98
- channelId: string;
99
- visibility: "private" | "public";
100
- messageTs?: string | undefined;
101
- threadTs?: string | undefined;
102
- };
103
- };
104
- /** Return whether an event task belongs to the active Slack destination. */
105
- export declare function eventTaskMatchesDestination(task: EventTask, destination: {
106
- channelId: string;
107
- teamId: string;
108
- }): boolean;
109
- /**
110
- * Return whether the active destination may update or delete this task.
111
- * Same-destination tasks stay local. Public tasks may be managed by id from
112
- * another destination in the same workspace.
113
- */
114
- export declare function eventTaskIsWritableFrom(task: EventTask, destination: {
115
- channelId: string;
116
- teamId: string;
117
- }): boolean;
118
- /** Load one task the active destination may update or delete. */
119
- export declare function writableEventTask(context: ToolRuntimeContext, id: string): Promise<EventTask>;
120
- export declare function eventTaskTriggerAvailable(task: EventTask, catalog: ResourceEventCatalog): boolean;
121
- /** Project an event task into the bounded tool-result shape. */
122
- export declare function compactEventTask(task: EventTask, catalog: ResourceEventCatalog): {
123
- id: string;
124
- task: string;
125
- namespace: string;
126
- identifier: string;
127
- resourceType: string;
128
- label: string;
129
- events: string[];
130
- credentialMode: "system" | "creator";
131
- createdBy: {
132
- slackUserId: string;
133
- fullName?: string | undefined;
134
- userName?: string | undefined;
135
- };
136
- triggerAvailable: boolean;
137
- match?: Record<string, unknown> | undefined;
138
- };
139
- /** Return the standard successful event-task tool result. */
140
- export declare function eventTaskSuccess(task: EventTask, catalog: ResourceEventCatalog): {
141
- task: {
142
- id: string;
143
- task: string;
144
- namespace: string;
145
- identifier: string;
146
- resourceType: string;
147
- label: string;
148
- events: string[];
149
- credentialMode: "system" | "creator";
150
- createdBy: {
151
- slackUserId: string;
152
- fullName?: string | undefined;
153
- userName?: string | undefined;
154
- };
155
- triggerAvailable: boolean;
156
- match?: Record<string, unknown> | undefined;
157
- };
158
- };
@@ -1,51 +0,0 @@
1
- import { z } from "zod";
2
- /** Keep indexed event-task selectors within PostgreSQL B-tree entry limits. */
3
- export declare const EVENT_TASK_IDENTIFIER_MAX_LENGTH = 300;
4
- /** Validate the persisted Slack creator identity for an event task. */
5
- export declare const eventTaskPrincipalSchema: z.ZodObject<{
6
- slackUserId: z.ZodString;
7
- fullName: z.ZodOptional<z.ZodString>;
8
- userName: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strict>;
10
- /** Validate one persisted event task. */
11
- export declare const eventTaskSchema: z.ZodObject<{
12
- id: z.ZodString;
13
- createdAtMs: z.ZodNumber;
14
- createdBy: z.ZodObject<{
15
- slackUserId: z.ZodString;
16
- fullName: z.ZodOptional<z.ZodString>;
17
- userName: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strict>;
19
- credentialMode: z.ZodEnum<{
20
- system: "system";
21
- creator: "creator";
22
- }>;
23
- destination: z.ZodObject<{
24
- platform: z.ZodLiteral<"slack">;
25
- teamId: z.ZodString;
26
- channelId: z.ZodString;
27
- }, z.core.$strict>;
28
- destinationVisibility: z.ZodEnum<{
29
- private: "private";
30
- public: "public";
31
- }>;
32
- task: z.ZodObject<{
33
- text: z.ZodString;
34
- }, z.core.$strict>;
35
- trigger: z.ZodObject<{
36
- events: z.ZodArray<z.ZodString>;
37
- label: z.ZodString;
38
- match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>>>;
39
- namespace: z.ZodString;
40
- identifier: z.ZodString;
41
- resourceType: z.ZodString;
42
- }, z.core.$strict>;
43
- }, z.core.$strict>;
44
- /** Durable instruction dispatched for matching resource events. */
45
- export type EventTask = z.output<typeof eventTaskSchema> & {
46
- /**
47
- * Short display title generated from the task instruction.
48
- * SQL-backed column; never stored inside the JSON task payload.
49
- */
50
- title?: string;
51
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Known unstable product features that must be opted into explicitly.
3
- * Add new keys here as features graduate from private experiments; remove them
4
- * once they become stable defaults.
5
- */
6
- export declare const EXPERIMENTAL_FEATURES: readonly ["passive-routing", "subagents"];
7
- /** One known experimental feature name. */
8
- export type ExperimentalFeature = (typeof EXPERIMENTAL_FEATURES)[number];
9
- /** App-level opt-ins for unstable product features. */
10
- export type ExperimentalFeaturesConfig = Readonly<Partial<Record<ExperimentalFeature, boolean>>>;
11
- /** Replace app-level experimental opt-ins and return the previous setting. */
12
- export declare function setExperimentalFeatures(config?: ExperimentalFeaturesConfig): ExperimentalFeaturesConfig;
13
- /** Return a copy of the app-level experimental opt-ins configured by createApp(). */
14
- export declare function getExperimentalFeatures(): ExperimentalFeaturesConfig;
15
- /** Return whether one experimental feature is enabled via createApp({ experimental }). */
16
- export declare function isExperimentalFeatureEnabled(feature: ExperimentalFeature): boolean;
@@ -1,18 +0,0 @@
1
- export type IdentityKind = "service" | "system" | "user";
2
- export interface IdentityUpsert {
3
- displayName?: string;
4
- email?: string;
5
- emailVerified?: boolean;
6
- handle?: string;
7
- kind: IdentityKind;
8
- metadata?: Record<string, unknown>;
9
- provider: string;
10
- providerSubjectId: string;
11
- providerTenantId?: string;
12
- }
13
- export interface StoredIdentity {
14
- id: string;
15
- userId?: string;
16
- }
17
- /** Canonicalize email addresses for identity lookup and linking. */
18
- export declare function normalizeIdentityEmail(email: string | undefined): string | undefined;
@@ -1,12 +0,0 @@
1
- import type { JuniorSqlDatabase } from "@/db/db";
2
- import { type IdentityUpsert, type StoredIdentity } from "./identity";
3
- /** Persist one provider identity observation and link verified emails to users. */
4
- export declare function upsertIdentity(executor: JuniorSqlDatabase, identity: IdentityUpsert, nowMs?: number): Promise<StoredIdentity>;
5
- /**
6
- * Persist one provider identity after a trusted account-linking flow.
7
- * Callers must use provider-verified account data, such as GitHub's authenticated
8
- * user response, never identity claims inferred from content such as Git commits.
9
- */
10
- export declare function upsertLinkedIdentity(executor: JuniorSqlDatabase, userId: string, identity: IdentityUpsert, nowMs?: number): Promise<StoredIdentity>;
11
- /** Remove one exact provider identity owned by a workspace Slack user. */
12
- export declare function deleteProviderIdentityForSlackUser(executor: JuniorSqlDatabase, slackTeamId: string, slackUserId: string, provider: string, providerSubjectId: string): Promise<void>;
@@ -1,13 +0,0 @@
1
- /**
2
- * Detect Slack bot @mentions that should activate Junior.
3
- *
4
- * Mentions inside inline code or fenced code blocks are display-only
5
- * references. Slack can still deliver `app_mention` for those tokens, so
6
- * both `message` and `app_mention` paths must use this check.
7
- */
8
- /**
9
- * Return true when `text` contains a Slack bot mention token outside code.
10
- *
11
- * Slack encodes user mentions as `<@UXXXXXXXX>` or `<@UXXXXXXXX|label>`.
12
- */
13
- export declare function textMentionsBot(text: string, botUserId: string): boolean;
@@ -1,26 +0,0 @@
1
- import { Chat, type ActionEvent, type Adapter, type AppHomeOpenedEvent, type AssistantContextChangedEvent, type AssistantThreadStartedEvent, type Message, type ModalCloseEvent, type ReactionEvent, type SlashCommandEvent, type WebhookOptions } from "chat";
2
- export declare class JuniorChat<TAdapters extends Record<string, Adapter> = Record<string, Adapter>> extends Chat<TAdapters> {
3
- /**
4
- * Normalize Slack thread IDs before the SDK's concurrency queue.
5
- *
6
- * Slack DM roots can arrive with an empty thread timestamp, while
7
- * later replies include the root timestamp. Resolve factories before
8
- * delegating so the lock/state/subscription key is canonicalized before
9
- * the SDK computes its per-thread queue key.
10
- */
11
- processMessage(adapter: Adapter, threadId: string, messageOrFactory: Message | (() => Promise<Message>), options?: WebhookOptions): Promise<void>;
12
- processReaction(event: Omit<ReactionEvent, "adapter" | "thread"> & {
13
- adapter?: Adapter;
14
- }, options?: WebhookOptions): void;
15
- processAction(event: Omit<ActionEvent, "thread" | "openModal"> & {
16
- adapter: Adapter;
17
- }, options: WebhookOptions | undefined): Promise<void>;
18
- processModalClose(event: Omit<ModalCloseEvent, "relatedThread" | "relatedMessage" | "relatedChannel">, contextId?: string, options?: WebhookOptions): void;
19
- processSlashCommand(event: Omit<SlashCommandEvent, "channel" | "openModal"> & {
20
- adapter: Adapter;
21
- channelId: string;
22
- }, options: WebhookOptions | undefined): void;
23
- processAssistantThreadStarted(event: AssistantThreadStartedEvent, options?: WebhookOptions): void;
24
- processAssistantContextChanged(event: AssistantContextChangedEvent, options?: WebhookOptions): void;
25
- processAppHomeOpened(event: AppHomeOpenedEvent, options?: WebhookOptions): void;
26
- }
@@ -1,52 +0,0 @@
1
- import { Message, type Adapter } from "chat";
2
- /**
3
- * Parsed result from a Slack `message_changed` event that contains a newly
4
- * added bot @mention. Returns `null` when the event does not qualify.
5
- */
6
- export interface MessageChangedMention {
7
- /** Slack thread ID in `slack:<channel>:<thread_ts>` format. */
8
- threadId: string;
9
- /** Synthesized Message to pass to `bot.processMessage`. */
10
- message: Message;
11
- }
12
- interface SlackMessageChangedEvent {
13
- type: "event_callback";
14
- team_id?: string;
15
- event: {
16
- type: "message";
17
- subtype: "message_changed";
18
- channel: string;
19
- channel_type?: string;
20
- message: {
21
- bot_id?: string;
22
- files?: SlackEditedMessageFile[];
23
- source_team?: string;
24
- text?: string;
25
- ts: string;
26
- thread_ts?: string;
27
- user?: string;
28
- user_team?: string;
29
- };
30
- previous_message: {
31
- text?: string;
32
- };
33
- };
34
- }
35
- interface SlackEditedMessageFile {
36
- mimetype?: string;
37
- name?: string;
38
- original_h?: number;
39
- original_w?: number;
40
- size?: number;
41
- url_private?: string;
42
- url_private_download?: string;
43
- }
44
- export declare function isMessageChangedEnvelope(value: unknown): value is SlackMessageChangedEvent;
45
- /**
46
- * Inspect a raw parsed Slack webhook body and extract a synthesized mention
47
- * event when a `message_changed` edit newly adds the bot's @mention.
48
- *
49
- * Returns `null` when the payload is not a qualifying `message_changed` event.
50
- */
51
- export declare function extractMessageChangedMention(body: unknown, botUserId: string, adapter: Adapter): MessageChangedMention | null;
52
- export {};
@@ -1,12 +0,0 @@
1
- import { Message } from "chat";
2
- export type ThreadMessageKind = "new_mention" | "subscribed_message";
3
- /** Derive canonical Slack thread IDs from the raw event payload. */
4
- /** Rebuild a Message onto a normalized Slack thread id. */
5
- export declare function withNormalizedThreadId(message: Message, threadId: string): Message;
6
- export declare function normalizeIncomingSlackThreadId(threadId: string, message: unknown): string;
7
- /** Classify an incoming message as a mention or subscribed message. */
8
- export declare function determineThreadMessageKind(args: {
9
- isDirectMessage: boolean;
10
- isMention: boolean;
11
- isSubscribed: boolean;
12
- }): ThreadMessageKind | undefined;
@@ -1,21 +0,0 @@
1
- import type { SlackAdapter } from "@chat-adapter/slack";
2
- import { type StateAdapter } from "chat";
3
- import type { SlackTurnRuntime } from "@/chat/providers/slack/runtime";
4
- import type { ConversationStore } from "@/chat/conversations/store";
5
- import type { ConversationWorkQueue } from "@/chat/task-execution/queue";
6
- import type { UserTokenStore } from "@/chat/credentials/user-token-store";
7
- import type { WaitUntilFn } from "@/handlers/types";
8
- export interface SlackWebhookServices {
9
- getUserTokenStore?: () => UserTokenStore;
10
- getSlackAdapter: () => SlackAdapter;
11
- queue: ConversationWorkQueue;
12
- conversationStore?: ConversationStore;
13
- runtime: Pick<SlackTurnRuntime<unknown>, "handleAssistantContextChanged" | "handleAssistantThreadStarted" | "handleNewMention" | "handleSubscribedMessage">;
14
- state?: StateAdapter;
15
- }
16
- /** Handle Slack webhooks by enqueueing durable conversation work. */
17
- export declare function handleSlackWebhook(args: {
18
- request: Request;
19
- services: SlackWebhookServices;
20
- waitUntil: WaitUntilFn;
21
- }): Promise<Response>;
@@ -1,3 +0,0 @@
1
- import type { SlashCommandEvent } from "chat";
2
- /** Route link and unlink slash commands to the appropriate OAuth flow. */
3
- export declare function handleSlashCommand(event: SlashCommandEvent): Promise<void>;
@@ -1,9 +0,0 @@
1
- export { runWithWorkspaceTeamId } from "@/chat/slack/workspace-context";
2
- /**
3
- * Return true when a Slack event's author is from an external workspace.
4
- *
5
- * In Slack Connect shared channels the inner event carries `user_team`
6
- * (the author's home workspace). When it differs from the outer payload's
7
- * `team_id` the author is a Slack Connect participant, not a local member.
8
- */
9
- export declare function isExternalSlackUser(raw: Record<string, unknown> | undefined): boolean;
@@ -1,2 +0,0 @@
1
- /** Return the marker added when a visible reply ended mid-execution. */
2
- export declare function getInterruptionMarker(): string;
@@ -1,5 +0,0 @@
1
- import { type PluginStoredTokens } from "@sentry/junior-plugin-api";
2
- /** Copy a local user's provider credential to the loopback dev-server broker. */
3
- export declare function syncLocalOAuthCredential(provider: string, tokens: PluginStoredTokens): Promise<void>;
4
- /** Verify and store one credential sent by the local CLI over loopback. */
5
- export declare function receiveLocalOAuthCredential(request: Request): Promise<Response>;
@@ -1,4 +0,0 @@
1
- /** Create an OAuth state value that can be safely relayed to a local CLI callback. */
2
- export declare function createLocalOAuthState(port: number): Promise<string>;
3
- /** Redirect a provider callback from the public dev URL to the owning local CLI. */
4
- export declare function relayLocalOAuthCallback(request: Request): Promise<Response | undefined>;