@sentry/junior 0.146.0 → 0.148.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 (227) hide show
  1. package/dist/{agent-hooks-SLJADYE5.js → agent-hooks-VAUYT6PD.js} +10 -10
  2. package/dist/api/conversations/access.d.ts +2 -1
  3. package/dist/api/conversations/archive.d.ts +3 -5
  4. package/dist/api/conversations/create.d.ts +6 -0
  5. package/dist/api/conversations/detail.d.ts +2 -295
  6. package/dist/api/conversations/event-list.d.ts +2 -192
  7. package/dist/api/conversations/list.d.ts +4 -66
  8. package/dist/api/conversations/routes.d.ts +1 -1
  9. package/dist/api/conversations/stats.d.ts +0 -54
  10. package/dist/api/http.d.ts +2 -6
  11. package/dist/api/locations/detail.d.ts +3 -111
  12. package/dist/api/locations/list.d.ts +0 -45
  13. package/dist/api/locations/query.d.ts +2 -1
  14. package/dist/api/locations/routes.d.ts +1 -1
  15. package/dist/api/people/list.d.ts +0 -29
  16. package/dist/api/people/profile.d.ts +2 -106
  17. package/dist/api/people/profile.query.d.ts +2 -1
  18. package/dist/api/people/routes.d.ts +1 -1
  19. package/dist/api/people/shared.d.ts +1 -1
  20. package/dist/api/people/spend.d.ts +3 -4
  21. package/dist/api/personal-tokens/routes.d.ts +2 -2
  22. package/dist/api/route.d.ts +8 -14
  23. package/dist/api/schema/conversation.d.ts +64 -29
  24. package/dist/api/schema/location.d.ts +4 -0
  25. package/dist/api/schema/person.d.ts +7 -3
  26. package/dist/api/schema.d.ts +2 -2
  27. package/dist/api/schema.js +7 -1
  28. package/dist/api/stats.d.ts +0 -13
  29. package/dist/api/validation.d.ts +7 -0
  30. package/dist/api/viewer.d.ts +3 -0
  31. package/dist/api.d.ts +2 -1
  32. package/dist/api.js +630 -564
  33. package/dist/app.js +369 -309
  34. package/dist/{catalog-runtime-RQIMSDPR.js → catalog-runtime-WADOZVTB.js} +5 -5
  35. package/dist/chat/actor.d.ts +4 -1
  36. package/dist/chat/agent/prompt.d.ts +0 -2
  37. package/dist/chat/agent/request.d.ts +4 -5
  38. package/dist/chat/agent/resume.d.ts +1 -0
  39. package/dist/chat/agent/sandbox.d.ts +2 -2
  40. package/dist/chat/agent/tools.d.ts +0 -2
  41. package/dist/chat/agent-dispatch/context.d.ts +2 -2
  42. package/dist/chat/agent-dispatch/types.d.ts +2 -2
  43. package/dist/chat/agent-invocations/types.d.ts +52 -0
  44. package/dist/chat/api-turns/work.d.ts +103 -0
  45. package/dist/chat/capabilities/jr-rpc-command.d.ts +2 -2
  46. package/dist/chat/configuration/service.d.ts +5 -2
  47. package/dist/chat/configuration/sql.d.ts +9 -0
  48. package/dist/chat/configuration/types.d.ts +17 -13
  49. package/dist/chat/conversations/history.d.ts +63 -0
  50. package/dist/chat/conversations/projection.d.ts +10 -0
  51. package/dist/chat/conversations/provenance.d.ts +6 -0
  52. package/dist/chat/conversations/sql/actor-identity.d.ts +19 -0
  53. package/dist/chat/conversations/store.d.ts +1 -1
  54. package/dist/chat/credentials/unlink-provider.d.ts +2 -1
  55. package/dist/chat/credentials/user-token-store.d.ts +2 -0
  56. package/dist/chat/event-tasks/tool-support.d.ts +2 -0
  57. package/dist/chat/identities/sql.d.ts +8 -0
  58. package/dist/chat/logging.d.ts +2 -0
  59. package/dist/chat/mcp/auth-store.d.ts +0 -2
  60. package/dist/chat/mcp/oauth.d.ts +0 -2
  61. package/dist/chat/oauth-flow.d.ts +3 -1
  62. package/dist/chat/pi/client.d.ts +2 -0
  63. package/dist/chat/plugins/credential-hooks.d.ts +2 -0
  64. package/dist/chat/prompt.d.ts +0 -2
  65. package/dist/chat/resource-events/notification.d.ts +2 -1
  66. package/dist/chat/resource-events/store.d.ts +1 -1
  67. package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
  68. package/dist/chat/runtime/reply-executor.d.ts +1 -1
  69. package/dist/chat/runtime/slack-runtime.d.ts +2 -1
  70. package/dist/chat/runtime/thread-state.d.ts +8 -11
  71. package/dist/chat/runtime/turn-input.d.ts +4 -2
  72. package/dist/chat/runtime/turn-preparation.d.ts +11 -4
  73. package/dist/chat/sandbox/command-result.d.ts +2 -0
  74. package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
  75. package/dist/chat/scheduled-tasks/tool-support.d.ts +7 -5
  76. package/dist/chat/scheduled-tasks/tools/create.d.ts +4 -2
  77. package/dist/chat/scheduled-tasks/tools/delete.d.ts +4 -2
  78. package/dist/chat/scheduled-tasks/tools/list.d.ts +4 -2
  79. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +4 -2
  80. package/dist/chat/scheduled-tasks/tools/update.d.ts +4 -2
  81. package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
  82. package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
  83. package/dist/chat/services/provider-default-config.d.ts +2 -2
  84. package/dist/chat/services/subscribed-decision.d.ts +3 -0
  85. package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
  86. package/dist/chat/services/turn-result.d.ts +0 -3
  87. package/dist/chat/services/turn-router.d.ts +3 -0
  88. package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
  89. package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
  90. package/dist/chat/slack/channel.d.ts +26 -0
  91. package/dist/chat/slack/dispatch-turn.d.ts +2 -1
  92. package/dist/chat/slack/timestamp-param.d.ts +0 -2
  93. package/dist/chat/slack/{tools → tool-support}/canvas/api.d.ts +1 -1
  94. package/dist/chat/slack/tool-support/canvas/context.d.ts +11 -0
  95. package/dist/chat/slack/tool-support/channel-access.d.ts +42 -0
  96. package/dist/chat/slack/tool-support/channel-target.d.ts +27 -0
  97. package/dist/chat/slack/{tools → tool-support}/list/api.d.ts +8 -1
  98. package/dist/chat/slack/tool-support/list/params.d.ts +5 -0
  99. package/dist/chat/slack/tools/canvas/create.d.ts +3 -1
  100. package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
  101. package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
  102. package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
  103. package/dist/chat/slack/tools/{user-lookup.d.ts → channel-join.d.ts} +6 -5
  104. package/dist/chat/slack/tools/channel-list-messages.d.ts +5 -2
  105. package/dist/chat/slack/tools/conversation-message-search.d.ts +4 -8
  106. package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
  107. package/dist/chat/slack/tools/list/create.d.ts +2 -0
  108. package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
  109. package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
  110. package/dist/chat/slack/tools/message-add-reaction.d.ts +3 -1
  111. package/dist/chat/slack/tools/public-search.d.ts +65 -2
  112. package/dist/chat/slack/tools/send-files.d.ts +3 -1
  113. package/dist/chat/slack/tools/thread-read.d.ts +4 -5
  114. package/dist/chat/slack/vision-cache.d.ts +5 -0
  115. package/dist/chat/source.d.ts +2 -0
  116. package/dist/chat/state/conversation.d.ts +4 -5
  117. package/dist/chat/task-execution/checkpoint.d.ts +1 -0
  118. package/dist/chat/task-execution/state.d.ts +9 -4
  119. package/dist/chat/task-execution/store.d.ts +3 -2
  120. package/dist/chat/task-execution/turn-cursor.d.ts +2 -0
  121. package/dist/chat/task-execution/worker.d.ts +2 -0
  122. package/dist/chat/tasks/read.d.ts +1 -1
  123. package/dist/chat/tool-support/structured-result.d.ts +1 -0
  124. package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
  125. package/dist/chat/tools/create-event-task.d.ts +2 -0
  126. package/dist/chat/tools/delete-event-task.d.ts +2 -0
  127. package/dist/chat/tools/handoff/tool.d.ts +2 -0
  128. package/dist/chat/tools/list-event-tasks.d.ts +2 -0
  129. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
  130. package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
  131. package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
  132. package/dist/chat/tools/search-conversation-events.d.ts +3 -1
  133. package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
  134. package/dist/chat/tools/search-tools.d.ts +2 -0
  135. package/dist/chat/tools/skill/load-skill.d.ts +2 -0
  136. package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
  137. package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
  138. package/dist/chat/tools/system-time.d.ts +2 -0
  139. package/dist/chat/tools/types.d.ts +11 -10
  140. package/dist/chat/tools/update-event-task.d.ts +2 -0
  141. package/dist/chat/tools/user-lookup.d.ts +29 -0
  142. package/dist/chat/tools/watch-resource-events.d.ts +4 -2
  143. package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
  144. package/dist/chat/tools/web/image-generate.d.ts +2 -0
  145. package/dist/chat/tools/web/search.d.ts +2 -0
  146. package/dist/{chunk-GYEKOX7N.js → chunk-2B3PT3V2.js} +1 -1
  147. package/dist/{chunk-JLMVCNXL.js → chunk-45LOR4PU.js} +22 -4
  148. package/dist/{chunk-FGHADGIC.js → chunk-4AQZYNHM.js} +2 -2
  149. package/dist/{chunk-W65V465O.js → chunk-4EA2SFK2.js} +66 -4
  150. package/dist/{chunk-MKRIZ4VG.js → chunk-4GXJUYJV.js} +4 -2
  151. package/dist/{chunk-F7REGDKO.js → chunk-55F4QU2V.js} +2 -1
  152. package/dist/{chunk-M6ZWP4RI.js → chunk-7OEIXFC3.js} +2 -2
  153. package/dist/{chunk-MCFIXAV5.js → chunk-D3WPMGEX.js} +55 -37
  154. package/dist/{chunk-AISNSNDV.js → chunk-D6YX4NNN.js} +22 -10
  155. package/dist/chunk-DUY5CDAM.js +36 -0
  156. package/dist/{chunk-B63BF443.js → chunk-EAI67NTM.js} +9 -1
  157. package/dist/{chunk-FEKQHPVA.js → chunk-EINWQFXI.js} +9 -8
  158. package/dist/chunk-GDFF3BQG.js +136 -0
  159. package/dist/{chunk-X22KCSCO.js → chunk-GXYDVZKM.js} +7 -5
  160. package/dist/{chunk-X2WMBTS3.js → chunk-HLPLT3NY.js} +8 -5
  161. package/dist/{chunk-PB222GIA.js → chunk-HWQGBIH7.js} +1 -1
  162. package/dist/chunk-IL4EDBMV.js +566 -0
  163. package/dist/{chunk-HQE6EJS5.js → chunk-LAZGHEYU.js} +1 -1
  164. package/dist/{chunk-QG7OOKIN.js → chunk-LE5H7LMT.js} +1 -1
  165. package/dist/chunk-LNVEIJ2L.js +48 -0
  166. package/dist/{chunk-JUA6VU2Z.js → chunk-OJCP3C3J.js} +12 -23
  167. package/dist/{chunk-37JJDS4H.js → chunk-POSZWRGL.js} +1 -1
  168. package/dist/{chunk-TCEJ7XXM.js → chunk-QOWHHM3F.js} +1 -1
  169. package/dist/{chunk-H6U2U3EP.js → chunk-RRJV5UR5.js} +304 -65
  170. package/dist/{chunk-OFPYOC3M.js → chunk-ULAU5ZGU.js} +127 -120
  171. package/dist/{chunk-V6SRLKUB.js → chunk-V2FXMOEA.js} +2 -2
  172. package/dist/{chunk-GDQEU4I7.js → chunk-VCYSOXON.js} +296 -526
  173. package/dist/{chunk-BLETMLRX.js → chunk-VMNRXKAH.js} +1374 -989
  174. package/dist/{chunk-37EVZP66.js → chunk-VRHTNBA6.js} +167 -92
  175. package/dist/{chunk-FXDDDSPL.js → chunk-VY6W3T43.js} +4 -4
  176. package/dist/{chunk-ZDGHGY74.js → chunk-WCN4YSH7.js} +13 -6
  177. package/dist/{chunk-PH4Q3A6W.js → chunk-WOONT5ZP.js} +1 -1
  178. package/dist/{chunk-47OSH2ZO.js → chunk-XJ42NBP5.js} +395 -206
  179. package/dist/{chunk-SCGVWUZX.js → chunk-ZCHIC2GM.js} +92 -75
  180. package/dist/chunk-ZPL2RR7F.js +798 -0
  181. package/dist/cli/chat.js +33 -35
  182. package/dist/cli/check.js +6 -6
  183. package/dist/cli/plugins.js +13 -13
  184. package/dist/cli/snapshot-create.js +9 -9
  185. package/dist/cli/upgrade.js +7 -7
  186. package/dist/db/schema/agent-invocations.d.ts +20 -0
  187. package/dist/db/schema/conversation-annotations.d.ts +2 -2
  188. package/dist/db/schema/location-configurations.d.ts +127 -0
  189. package/dist/db/schema.d.ts +150 -3
  190. package/dist/{db-WWOMXWTT.js → db-XUKZRFFK.js} +7 -7
  191. package/dist/instrumentation.js +4 -4
  192. package/dist/nitro.js +2 -2
  193. package/dist/{oauth-callback-server-A6ZZX74U.js → oauth-callback-server-LPZMMGFI.js} +25 -26
  194. package/dist/{runner-KSGB2UAV.js → runner-DGKUTMPX.js} +22 -41
  195. package/dist/{skills-26QPWKVS.js → skills-P7YUFSXM.js} +6 -6
  196. package/dist/spawn-DSK3ZEVD.js +38 -0
  197. package/dist/{validation-OPSRGFGH.js → validation-S7U5M5NR.js} +6 -6
  198. package/dist/version.js +1 -1
  199. package/dist/{work-VMSW7STJ.js → work-GAA7TVAD.js} +18 -19
  200. package/dist/{worker-2JNFB7C7.js → worker-JXPJH3QB.js} +11 -10
  201. package/migrations/0024_misty_typhoid_mary.sql +12 -0
  202. package/migrations/meta/0024_snapshot.json +2275 -0
  203. package/migrations/meta/_journal.json +7 -0
  204. package/package.json +6 -5
  205. package/dist/api/health.d.ts +0 -7
  206. package/dist/api/personal-tokens/create.d.ts +0 -11
  207. package/dist/api/personal-tokens/list.d.ts +0 -12
  208. package/dist/api/personal-tokens/revoke.d.ts +0 -5
  209. package/dist/api/plugin-reports.d.ts +0 -63
  210. package/dist/api/plugins.d.ts +0 -8
  211. package/dist/api/runtime.d.ts +0 -24
  212. package/dist/api/skills.d.ts +0 -6
  213. package/dist/chat/slack/tools/canvas/context.d.ts +0 -18
  214. package/dist/chat/slack/tools/channel-access.d.ts +0 -30
  215. package/dist/chat/state/artifacts.d.ts +0 -30
  216. package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
  217. package/dist/chunk-HLXXQI5Q.js +0 -238
  218. package/dist/chunk-LVW7BLLT.js +0 -115
  219. package/dist/chunk-Q6QZTTLS.js +0 -55
  220. package/dist/chunk-QSXZ42KX.js +0 -285
  221. package/dist/chunk-R776HKPK.js +0 -81
  222. package/dist/chunk-T5GXFFLA.js +0 -67
  223. package/dist/spawn-5LAJXZ2P.js +0 -39
  224. /package/dist/chat/slack/{tools → tool-support}/canvas/markdown.d.ts +0 -0
  225. /package/dist/chat/slack/{tools → tool-support}/channel-capabilities.d.ts +0 -0
  226. /package/dist/chat/slack/{tools → tool-support}/context.d.ts +0 -0
  227. /package/dist/chat/slack/{tools → tool-support}/slack-message-url.d.ts +0 -0
@@ -21,6 +21,12 @@ export declare const conversationMessageProvenanceSchema: z.ZodObject<{
21
21
  fullName: z.ZodOptional<z.ZodString>;
22
22
  userId: z.ZodString;
23
23
  userName: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ platform: z.ZodLiteral<"web">;
26
+ email: z.ZodOptional<z.ZodString>;
27
+ fullName: z.ZodOptional<z.ZodString>;
28
+ userId: z.ZodString;
29
+ userName: z.ZodOptional<z.ZodString>;
24
30
  }, z.core.$strict>, z.ZodObject<{
25
31
  platform: z.ZodLiteral<"system">;
26
32
  name: z.ZodString;
@@ -0,0 +1,19 @@
1
+ import type { StoredSlackActor } from "@/chat/actor";
2
+ import type { IdentityUpsert } from "@/chat/identities/identity";
3
+ import type { Conversation, ConversationSource } from "../store";
4
+ import type { juniorIdentities } from "@/db/schema";
5
+ type IdentityRow = typeof juniorIdentities.$inferSelect;
6
+ /** Build a durable identity observation from a stored conversation actor. */
7
+ export declare function identityFromActor(actor: StoredSlackActor | undefined): IdentityUpsert | undefined;
8
+ /** Build a system identity when a conversation has no user actor. */
9
+ export declare function systemIdentityFromSource(source: ConversationSource | undefined): IdentityUpsert | undefined;
10
+ /** Prefer the user actor identity, else a source-derived system identity. */
11
+ export declare function actorIdentityForConversation(conversation: Conversation): IdentityUpsert | undefined;
12
+ /**
13
+ * Reconstruct a stored actor with the linked user name and identity-scoped
14
+ * provider fields.
15
+ */
16
+ export declare function actorFromIdentityRow(identity: IdentityRow | null, userDisplayName: string | null): StoredSlackActor | undefined;
17
+ /** Merge later actor observations without replacing a durable Slack subject. */
18
+ export declare function mergeActor(current: StoredSlackActor | undefined, next: StoredSlackActor | undefined): StoredSlackActor | undefined;
19
+ export {};
@@ -4,7 +4,7 @@ import type { StoredSlackActor } from "@/chat/actor";
4
4
  import type { Location } from "@/chat/conversations/location";
5
5
  import type { SessionSource } from "@/chat/source";
6
6
  import type { AgentTurnUsage } from "@/chat/usage";
7
- export type ConversationSource = "api" | "internal" | "local" | "plugin" | "resource_event" | "scheduler" | "slack";
7
+ export type ConversationSource = "api" | "internal" | "local" | "plugin" | "resource_event" | "scheduler" | "slack" | "web";
8
8
  export type ConversationStatus = "paused" | "failed" | "idle" | "pending" | "running";
9
9
  export interface ConversationExecution {
10
10
  lastCheckpointAtMs?: number;
@@ -1,2 +1,3 @@
1
1
  import type { UserTokenStore } from "@/chat/credentials/user-token-store";
2
- export declare function unlinkProvider(userId: string, provider: string, userTokenStore: UserTokenStore): Promise<void>;
2
+ /** Remove one provider connection and its exact stored account identity. */
3
+ export declare function unlinkProvider(userId: string, provider: string, userTokenStore: UserTokenStore, slackTeamId?: string): Promise<void>;
@@ -1,6 +1,8 @@
1
1
  import { type PluginProviderAccount, type PluginStoredTokens } from "@sentry/junior-plugin-api";
2
2
  export declare const storedTokensSchema: import("zod").ZodObject<{
3
3
  account: import("zod").ZodOptional<import("zod").ZodObject<{
4
+ displayName: import("zod").ZodOptional<import("zod").ZodString>;
5
+ handle: import("zod").ZodOptional<import("zod").ZodString>;
4
6
  id: import("zod").ZodString;
5
7
  label: import("zod").ZodOptional<import("zod").ZodString>;
6
8
  url: import("zod").ZodOptional<import("zod").ZodString>;
@@ -6,6 +6,7 @@ import type { ToolRuntimeContext } from "@/chat/tools/types";
6
6
  export declare const eventTaskToolResultSchema: z.ZodObject<{
7
7
  target: z.ZodOptional<z.ZodString>;
8
8
  truncated: z.ZodOptional<z.ZodBoolean>;
9
+ timed_out: z.ZodOptional<z.ZodBoolean>;
9
10
  continuation: z.ZodOptional<z.ZodObject<{
10
11
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11
12
  reason: z.ZodOptional<z.ZodString>;
@@ -33,6 +34,7 @@ export declare const eventTaskToolResultSchema: z.ZodObject<{
33
34
  /** Validate one successful event-task list result. */
34
35
  export declare const eventTaskListToolResultSchema: z.ZodObject<{
35
36
  target: z.ZodOptional<z.ZodString>;
37
+ timed_out: z.ZodOptional<z.ZodBoolean>;
36
38
  continuation: z.ZodOptional<z.ZodObject<{
37
39
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
38
40
  reason: z.ZodOptional<z.ZodString>;
@@ -2,3 +2,11 @@ import type { JuniorSqlDatabase } from "@/db/db";
2
2
  import { type IdentityUpsert, type StoredIdentity } from "./identity";
3
3
  /** Persist one provider identity observation and link verified emails to users. */
4
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>;
@@ -86,6 +86,8 @@ export declare function logError(eventName: string, attributes?: Record<string,
86
86
  * `.failed` outcome when the event also covers non-exception failures.
87
87
  */
88
88
  export declare function logException(error: unknown, eventName: string, attributes?: Record<string, unknown>): string | undefined;
89
+ /** Run an optional side effect without changing the successful primary outcome. */
90
+ export declare function runBestEffort(operation: () => Promise<void>, eventName: string, attributes?: Record<string, unknown>): Promise<void>;
89
91
  /** Add context to the current operation and Sentry scope. */
90
92
  export declare function setTags(context?: LogContext): void;
91
93
  /** Create a LogContext from an incoming HTTP request. */
@@ -1,7 +1,6 @@
1
1
  import type { OAuthClientInformationMixed, OAuthTokens } from "@modelcontextprotocol/sdk/shared/auth.js";
2
2
  import type { OAuthDiscoveryState } from "@modelcontextprotocol/sdk/client/auth.js";
3
3
  import { type Destination, type Source } from "@sentry/junior-plugin-api";
4
- import type { ThreadArtifactsState } from "@/chat/state/artifacts";
5
4
  export interface McpAuthSessionState {
6
5
  schemaVersion: 2;
7
6
  authSessionId: string;
@@ -16,7 +15,6 @@ export interface McpAuthSessionState {
16
15
  threadTs?: string;
17
16
  toolChannelId?: string;
18
17
  configuration?: Record<string, unknown>;
19
- artifactState?: ThreadArtifactsState;
20
18
  authorizationUrl?: string;
21
19
  codeVerifier?: string;
22
20
  createdAtMs: number;
@@ -1,5 +1,4 @@
1
1
  import type { Destination, Source } from "@sentry/junior-plugin-api";
2
- import type { ThreadArtifactsState } from "@/chat/state/artifacts";
3
2
  import { type McpAuthSessionState } from "./auth-store";
4
3
  import { StateBackedMcpOAuthClientProvider } from "./oauth-provider";
5
4
  export declare function getMcpOAuthCallbackPath(provider: string): string;
@@ -16,7 +15,6 @@ export declare function createMcpOAuthClientProvider(input: {
16
15
  threadTs?: string;
17
16
  toolChannelId?: string;
18
17
  configuration?: Record<string, unknown>;
19
- artifactState?: ThreadArtifactsState;
20
18
  createAuthorizationState?: () => Promise<string>;
21
19
  }): Promise<StateBackedMcpOAuthClientProvider>;
22
20
  /** Exchange a callback code while guarding every shared credential mutation. */
@@ -1,9 +1,10 @@
1
- import { type Destination, type Source } from "@sentry/junior-plugin-api";
1
+ import { type Actor, type Destination, type Source } from "@sentry/junior-plugin-api";
2
2
  import type { OAuthAuthorization, OAuthAuthorizationRequest } from "@/chat/oauth-authorization";
3
3
  type PrivateDeliveryResult = "in_context" | "fallback_dm" | false;
4
4
  export type OAuthStatePayload = {
5
5
  userId: string;
6
6
  provider: string;
7
+ actor?: Actor;
7
8
  channelId?: string;
8
9
  destination?: Destination;
9
10
  source?: Source;
@@ -14,6 +15,7 @@ export type OAuthStatePayload = {
14
15
  };
15
16
  type OAuthFlowInput = {
16
17
  actorId: string;
18
+ actor?: Actor;
17
19
  channelId?: string;
18
20
  destination?: Destination;
19
21
  source?: Source;
@@ -21,6 +21,7 @@ export declare function completeText(params: {
21
21
  maxTokens?: number;
22
22
  signal?: AbortSignal;
23
23
  metadata?: Record<string, unknown>;
24
+ promptName?: string;
24
25
  }): Promise<{
25
26
  message: import("@earendil-works/pi-ai").AssistantMessage;
26
27
  text: string;
@@ -41,6 +42,7 @@ export declare function completeObject<TSchema extends ZodTypeAny>(params: {
41
42
  recordTelemetryPayloads?: boolean;
42
43
  signal?: AbortSignal;
43
44
  metadata?: Record<string, unknown>;
45
+ promptName?: string;
44
46
  }): Promise<{
45
47
  costUsd?: number;
46
48
  object: z.infer<TSchema>;
@@ -40,6 +40,8 @@ export interface IssueCredentialInput {
40
40
  provider: string;
41
41
  userTokenStore: UserTokenStore;
42
42
  }
43
+ /** Return providers that can verify an OAuth account for identity storage. */
44
+ export declare function getOAuthAccountProviders(): string[];
43
45
  /** Ask a plugin which provider account belongs to an OAuth token. */
44
46
  export declare function resolvePluginOAuthAccount(input: {
45
47
  provider: string;
@@ -1,5 +1,4 @@
1
1
  import type { SlackConversationContext } from "@/chat/slack/conversation-context";
2
- import type { ThreadArtifactsState } from "@/chat/state/artifacts";
3
2
  import type { SkillMetadata } from "@/chat/skills";
4
3
  import type { ActiveMcpCatalogSummary } from "@/chat/tool-support/skill/mcp-tool-summary";
5
4
  import type { PluginPromptContributionContext } from "@/chat/plugins/prompt";
@@ -35,7 +34,6 @@ type TurnContextPromptInput = {
35
34
  fullName?: string;
36
35
  userId?: string;
37
36
  };
38
- artifactState?: ThreadArtifactsState;
39
37
  configuration?: Record<string, unknown>;
40
38
  };
41
39
  /** Return byte-stable platform instructions shared by every conversation and turn. */
@@ -9,10 +9,11 @@ export interface ResourceEventNotification {
9
9
  identifier: string;
10
10
  terminal?: boolean;
11
11
  trustedSummary: string;
12
+ data?: Record<string, unknown>;
12
13
  untrustedText?: string;
13
14
  }
14
15
  /** Render the runtime-owned conversation message for a subscribed event. */
15
- export declare function renderResourceEventNotificationText(subscription: Pick<ResourceEventSubscription, "intent" | "label">, event: Pick<ResourceEventNotification, "eventType" | "trustedSummary" | "untrustedText">): string;
16
+ export declare function renderResourceEventNotificationText(subscription: Pick<ResourceEventSubscription, "intent" | "label">, event: Pick<ResourceEventNotification, "eventType" | "trustedSummary" | "data" | "untrustedText">): string;
16
17
  /** Enqueue a resource event as normal conversation mailbox input. */
17
18
  export declare function enqueueResourceEventNotification(args: {
18
19
  event: ResourceEventNotification;
@@ -21,9 +21,9 @@ declare const subscriptionSchema: z.ZodObject<{
21
21
  identifier: z.ZodString;
22
22
  resourceType: z.ZodString;
23
23
  status: z.ZodEnum<{
24
- cancelled: "cancelled";
25
24
  completed: "completed";
26
25
  active: "active";
26
+ cancelled: "cancelled";
27
27
  }>;
28
28
  updatedAtMs: z.ZodNumber;
29
29
  }, z.core.$strict>;
@@ -1,11 +1,8 @@
1
1
  import type { AgentRunResult } from "@/chat/services/turn-result";
2
2
  import type { ThreadConversationState } from "@/chat/state/conversation";
3
- import type { ThreadArtifactsState } from "@/chat/state/artifacts";
4
- import { type ThreadStatePatch } from "@/chat/runtime/thread-state";
3
+ import type { ThreadStatePatch } from "@/chat/runtime/thread-state";
5
4
  /** Build state after destination delivery or intentional no-reply completion. */
6
5
  export declare function buildDeliveredTurnStatePatch(args: {
7
- artifactStatePatch?: Partial<ThreadArtifactsState>;
8
- artifacts: ThreadArtifactsState;
9
6
  conversation: ThreadConversationState;
10
7
  reply: AgentRunResult;
11
8
  sessionId: string;
@@ -52,7 +52,6 @@ interface ReplyExecutorDeps {
52
52
  prepareTurnState: (args: PrepareTurnStateInput) => Promise<PreparedTurnState>;
53
53
  services: ReplyExecutorServices;
54
54
  }
55
- /** Build the shared reply handler that prepares, advances, and commits a turn. */
56
55
  export declare function createReplyToThread(deps: ReplyExecutorDeps): (thread: Thread, message: Message, options: {
57
56
  beforeFirstResponsePost?: () => Promise<void>;
58
57
  conversationId?: string;
@@ -66,6 +65,7 @@ export declare function createReplyToThread(deps: ReplyExecutorDeps): (thread: T
66
65
  onTurnStatePersisted?: () => Promise<void>;
67
66
  preparedState?: PreparedTurnState;
68
67
  queuedMessages?: QueuedTurnMessage[];
68
+ publishExternally?: boolean;
69
69
  execution?: DispatchTurnContext;
70
70
  skipBackfill?: boolean;
71
71
  drainSteeringMessages?: (accept: (messages: QueuedTurnMessage[]) => Promise<void>, context?: {
@@ -40,6 +40,7 @@ interface SteeringDrainContext {
40
40
  export interface SlackTurnOptions extends ReplyHooks {
41
41
  conversationId?: string;
42
42
  destination: Destination;
43
+ publishExternally?: boolean;
43
44
  }
44
45
  export interface SlackTurnRuntimeDependencies<TPreparedState> {
45
46
  assistantUserName: string;
@@ -103,6 +104,7 @@ export interface SlackTurnRuntimeDependencies<TPreparedState> {
103
104
  onTurnStatePersisted?: () => Promise<void>;
104
105
  preparedState?: TPreparedState;
105
106
  queuedMessages?: QueuedTurnMessage[];
107
+ publishExternally?: boolean;
106
108
  drainSteeringMessages?: (accept: (messages: QueuedTurnMessage[]) => Promise<void>, context?: SteeringDrainContext) => Promise<QueuedTurnMessage[]>;
107
109
  shouldYield?: () => boolean;
108
110
  }) => Promise<void>;
@@ -119,6 +121,5 @@ export interface SlackTurnRuntime<_TPreparedState, TAssistantEvent extends Assis
119
121
  handleNewMention: (thread: Thread, message: Message, hooks: SlackTurnOptions) => Promise<void>;
120
122
  handleSubscribedMessage: (thread: Thread, message: Message, hooks: SlackTurnOptions) => Promise<void>;
121
123
  }
122
- /** Build the Slack event runtime that routes mentions and subscribed messages. */
123
124
  export declare function createSlackTurnRuntime<TPreparedState, TAssistantEvent extends AssistantLifecycleEvent = AssistantLifecycleEvent>(deps: SlackTurnRuntimeDependencies<TPreparedState>): SlackTurnRuntime<TPreparedState, TAssistantEvent>;
124
125
  export {};
@@ -1,15 +1,12 @@
1
1
  import type { Thread } from "chat";
2
- import type { ChannelConfigurationService } from "@/chat/configuration/types";
2
+ import type { Destination } from "@sentry/junior-plugin-api";
3
+ import type { LocationConfigurationService } from "@/chat/configuration/types";
3
4
  import type { ThreadConversationState } from "@/chat/state/conversation";
4
- import { type ThreadArtifactsState } from "@/chat/state/artifacts";
5
5
  import type { SandboxRef } from "@/chat/sandbox/ref";
6
6
  export interface ThreadStatePatch {
7
- artifacts?: ThreadArtifactsState;
8
7
  conversation?: ThreadConversationState;
9
8
  sandboxRef?: SandboxRef | null;
10
9
  }
11
- /** Merge an artifact patch while preserving per-list column mappings. */
12
- export declare function mergeArtifactsState(artifacts: ThreadArtifactsState, patch: Partial<ThreadArtifactsState> | undefined): ThreadArtifactsState;
13
10
  /** Extract persisted sandbox metadata from thread state payload. */
14
11
  export declare function getPersistedSandboxState(state: Record<string, unknown>): SandboxRef | undefined;
15
12
  /** Persist a thread-state patch for a Chat thread handle. */
@@ -18,11 +15,11 @@ export declare function persistThreadState(thread: Thread, patch: ThreadStatePat
18
15
  export declare function persistThreadRuntimeState(thread: Thread, patch: ThreadStatePatch): Promise<void>;
19
16
  /** Load the persisted state payload for a thread without requiring a Chat singleton. */
20
17
  export declare function getPersistedThreadState(threadId: string): Promise<Record<string, unknown>>;
21
- /** Load the persisted state payload for a channel without constructing a Chat channel. */
22
- export declare function getPersistedChannelState(channelId: string): Promise<Record<string, unknown>>;
23
18
  /** Persist a thread-state patch by thread id without constructing a Chat thread. */
24
19
  export declare function persistThreadStateById(threadId: string, patch: ThreadStatePatch): Promise<void>;
25
- /** Resolve channel configuration from a Chat thread and persist it with Junior's TTL. */
26
- export declare function getChannelConfigurationService(thread: Thread): ChannelConfigurationService;
27
- /** Resolve a channel configuration service by channel id without a Chat thread. */
28
- export declare function getChannelConfigurationServiceById(channelId: string): ChannelConfigurationService;
20
+ /**
21
+ * Resolve durable location configuration.
22
+ *
23
+ * Slack still reads the old channel-id Redis bag once during cutover.
24
+ */
25
+ export declare function getLocationConfigurationService(destination: Destination): LocationConfigurationService;
@@ -1,5 +1,6 @@
1
1
  import type { Message, Thread } from "chat";
2
- import type { ChannelConfigurationService } from "@/chat/configuration/types";
2
+ import type { Destination } from "@sentry/junior-plugin-api";
3
+ import type { LocationConfigurationService } from "@/chat/configuration/types";
3
4
  export interface TurnContext {
4
5
  channelId?: string;
5
6
  actorId?: string;
@@ -19,7 +20,8 @@ export interface QueuedTurnMessage extends TurnMessageText {
19
20
  message: Message;
20
21
  }
21
22
  export interface PrepareTurnStateInput {
22
- channelConfiguration?: ChannelConfigurationService;
23
+ destination: Destination;
24
+ locationConfiguration?: LocationConfigurationService;
23
25
  context: TurnContext;
24
26
  explicitMention: boolean;
25
27
  message: Message;
@@ -1,12 +1,18 @@
1
+ /**
2
+ * Turn state preparation.
3
+ *
4
+ * This module turns durable chat thread state plus the current Slack message
5
+ * into the state needed before agent execution. It owns conversation backfill,
6
+ * memory/context rendering, vision hydration, and configuration; it should not execute the agent or post replies.
7
+ */
8
+ import type { Message } from "chat";
1
9
  import type { ThreadConversationState } from "@/chat/state/conversation";
2
10
  import type { SandboxRef } from "@/chat/sandbox/ref";
3
- import { type ThreadArtifactsState } from "@/chat/state/artifacts";
4
- import type { ChannelConfigurationService } from "@/chat/configuration/types";
11
+ import type { LocationConfigurationService } from "@/chat/configuration/types";
5
12
  import type { PrepareTurnStateInput, TurnContext } from "@/chat/runtime/turn-input";
6
13
  export interface PreparedTurnState {
7
- artifacts: ThreadArtifactsState;
8
14
  configuration?: Record<string, unknown>;
9
- channelConfiguration?: ChannelConfigurationService;
15
+ locationConfiguration?: LocationConfigurationService;
10
16
  conversation: ThreadConversationState;
11
17
  conversationContext?: string;
12
18
  sandboxRef?: SandboxRef;
@@ -18,6 +24,7 @@ export interface PrepareTurnStateDeps {
18
24
  hydrateConversationVisionContext: (conversation: ThreadConversationState, context: TurnContext & {
19
25
  threadTs?: string;
20
26
  }) => Promise<void>;
27
+ resolveBackfillMessageActors: (messages: Message[], destination: PrepareTurnStateInput["destination"]) => Promise<void>;
21
28
  }
22
29
  /** Build the turn-state preparer from injected conversation services. */
23
30
  export declare function createPrepareTurnState(deps: PrepareTurnStateDeps): (args: PrepareTurnStateInput) => Promise<PreparedTurnState>;
@@ -33,6 +33,8 @@ export declare function formatSandboxCommandResult(params: SandboxCommandOutcome
33
33
  createdAtMs: number;
34
34
  account?: {
35
35
  id: string;
36
+ displayName?: string | undefined;
37
+ handle?: string | undefined;
36
38
  label?: string | undefined;
37
39
  url?: string | undefined;
38
40
  } | undefined;
@@ -57,6 +57,8 @@ export declare const sandboxEgressCredentialContextSchema: z.ZodObject<{
57
57
  }, z.core.$strict>;
58
58
  export declare const sandboxEgressCredentialLeaseSchema: z.ZodObject<{
59
59
  account: z.ZodOptional<z.ZodObject<{
60
+ displayName: z.ZodOptional<z.ZodString>;
61
+ handle: z.ZodOptional<z.ZodString>;
60
62
  id: z.ZodString;
61
63
  label: z.ZodOptional<z.ZodString>;
62
64
  url: z.ZodOptional<z.ZodString>;
@@ -103,6 +105,8 @@ export declare const sandboxEgressAuthRequiredSignalSchema: z.ZodObject<{
103
105
  }, z.core.$strict>;
104
106
  export declare const sandboxEgressPermissionDeniedSignalSchema: z.ZodObject<{
105
107
  account: z.ZodOptional<z.ZodObject<{
108
+ displayName: z.ZodOptional<z.ZodString>;
109
+ handle: z.ZodOptional<z.ZodString>;
106
110
  id: z.ZodString;
107
111
  label: z.ZodOptional<z.ZodString>;
108
112
  url: z.ZodOptional<z.ZodString>;
@@ -148,6 +152,8 @@ export declare const sandboxEgressSignalsResponseSchema: z.ZodObject<{
148
152
  }, z.core.$strict>>;
149
153
  permission_denied: z.ZodOptional<z.ZodObject<{
150
154
  account: z.ZodOptional<z.ZodObject<{
155
+ displayName: z.ZodOptional<z.ZodString>;
156
+ handle: z.ZodOptional<z.ZodString>;
151
157
  id: z.ZodString;
152
158
  label: z.ZodOptional<z.ZodString>;
153
159
  url: z.ZodOptional<z.ZodString>;
@@ -36,8 +36,8 @@ declare const compactTaskResultSchema: z.ZodObject<{
36
36
  }, z.core.$strict>;
37
37
  conversation_access: z.ZodObject<{
38
38
  audience: z.ZodEnum<{
39
- direct: "direct";
40
39
  channel: "channel";
40
+ direct: "direct";
41
41
  group: "group";
42
42
  }>;
43
43
  visibility: z.ZodEnum<{
@@ -55,6 +55,7 @@ declare const compactTaskResultSchema: z.ZodObject<{
55
55
  }, z.core.$strict>;
56
56
  export declare const scheduleTaskToolResultSchema: z.ZodObject<{
57
57
  truncated: z.ZodOptional<z.ZodBoolean>;
58
+ timed_out: z.ZodOptional<z.ZodBoolean>;
58
59
  continuation: z.ZodOptional<z.ZodObject<{
59
60
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
60
61
  reason: z.ZodOptional<z.ZodString>;
@@ -80,8 +81,8 @@ export declare const scheduleTaskToolResultSchema: z.ZodObject<{
80
81
  }, z.core.$strict>;
81
82
  conversation_access: z.ZodObject<{
82
83
  audience: z.ZodEnum<{
83
- direct: "direct";
84
84
  channel: "channel";
85
+ direct: "direct";
85
86
  group: "group";
86
87
  }>;
87
88
  visibility: z.ZodEnum<{
@@ -99,6 +100,7 @@ export declare const scheduleTaskToolResultSchema: z.ZodObject<{
99
100
  }, z.core.$strict>;
100
101
  }, z.core.$strict>;
101
102
  export declare const scheduleListToolResultSchema: z.ZodObject<{
103
+ timed_out: z.ZodOptional<z.ZodBoolean>;
102
104
  continuation: z.ZodOptional<z.ZodObject<{
103
105
  arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
104
106
  reason: z.ZodOptional<z.ZodString>;
@@ -124,8 +126,8 @@ export declare const scheduleListToolResultSchema: z.ZodObject<{
124
126
  }, z.core.$strict>;
125
127
  conversation_access: z.ZodObject<{
126
128
  audience: z.ZodEnum<{
127
- direct: "direct";
128
129
  channel: "channel";
130
+ direct: "direct";
129
131
  group: "group";
130
132
  }>;
131
133
  visibility: z.ZodEnum<{
@@ -178,7 +180,7 @@ export declare function scheduleTaskToolResult(target: string, task: CompactTask
178
180
  channel_id: string;
179
181
  };
180
182
  conversation_access: {
181
- audience: "direct" | "channel" | "group";
183
+ audience: "channel" | "direct" | "group";
182
184
  visibility: "public" | "private";
183
185
  };
184
186
  credential_mode: "system" | "creator";
@@ -208,7 +210,7 @@ export declare function scheduleListToolResult(args: {
208
210
  channel_id: string;
209
211
  };
210
212
  conversation_access: {
211
- audience: "direct" | "channel" | "group";
213
+ audience: "channel" | "direct" | "group";
212
214
  visibility: "public" | "private";
213
215
  };
214
216
  credential_mode: "system" | "creator";
@@ -47,7 +47,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
47
47
  channel_id: string;
48
48
  };
49
49
  conversation_access: {
50
- audience: "direct" | "channel" | "group";
50
+ audience: "channel" | "direct" | "group";
51
51
  visibility: "public" | "private";
52
52
  };
53
53
  credential_mode: "system" | "creator";
@@ -56,6 +56,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
56
56
  run_now_at: string | null;
57
57
  };
58
58
  truncated?: boolean | undefined;
59
+ timed_out?: boolean | undefined;
59
60
  continuation?: {
60
61
  arguments: Record<string, unknown>;
61
62
  reason?: string | undefined;
@@ -76,7 +77,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
76
77
  channel_id: string;
77
78
  };
78
79
  conversation_access: {
79
- audience: "direct" | "channel" | "group";
80
+ audience: "channel" | "direct" | "group";
80
81
  visibility: "public" | "private";
81
82
  };
82
83
  credential_mode: "system" | "creator";
@@ -85,6 +86,7 @@ export declare function createSlackScheduleCreateTaskTool(context: SchedulerTool
85
86
  run_now_at: string | null;
86
87
  };
87
88
  truncated?: boolean | undefined;
89
+ timed_out?: boolean | undefined;
88
90
  continuation?: {
89
91
  arguments: Record<string, unknown>;
90
92
  reason?: string | undefined;
@@ -22,7 +22,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
22
22
  channel_id: string;
23
23
  };
24
24
  conversation_access: {
25
- audience: "direct" | "channel" | "group";
25
+ audience: "channel" | "direct" | "group";
26
26
  visibility: "public" | "private";
27
27
  };
28
28
  credential_mode: "system" | "creator";
@@ -31,6 +31,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
31
31
  run_now_at: string | null;
32
32
  };
33
33
  truncated?: boolean | undefined;
34
+ timed_out?: boolean | undefined;
34
35
  continuation?: {
35
36
  arguments: Record<string, unknown>;
36
37
  reason?: string | undefined;
@@ -51,7 +52,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
51
52
  channel_id: string;
52
53
  };
53
54
  conversation_access: {
54
- audience: "direct" | "channel" | "group";
55
+ audience: "channel" | "direct" | "group";
55
56
  visibility: "public" | "private";
56
57
  };
57
58
  credential_mode: "system" | "creator";
@@ -60,6 +61,7 @@ export declare function createSlackScheduleDeleteTaskTool(context: SchedulerTool
60
61
  run_now_at: string | null;
61
62
  };
62
63
  truncated?: boolean | undefined;
64
+ timed_out?: boolean | undefined;
63
65
  continuation?: {
64
66
  arguments: Record<string, unknown>;
65
67
  reason?: string | undefined;
@@ -23,7 +23,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
23
23
  channel_id: string;
24
24
  };
25
25
  conversation_access: {
26
- audience: "direct" | "channel" | "group";
26
+ audience: "channel" | "direct" | "group";
27
27
  visibility: "public" | "private";
28
28
  };
29
29
  credential_mode: "system" | "creator";
@@ -32,6 +32,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
32
32
  run_now_at: string | null;
33
33
  }[];
34
34
  truncated: boolean;
35
+ timed_out?: boolean | undefined;
35
36
  continuation?: {
36
37
  arguments: Record<string, unknown>;
37
38
  reason?: string | undefined;
@@ -52,7 +53,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
52
53
  channel_id: string;
53
54
  };
54
55
  conversation_access: {
55
- audience: "direct" | "channel" | "group";
56
+ audience: "channel" | "direct" | "group";
56
57
  visibility: "public" | "private";
57
58
  };
58
59
  credential_mode: "system" | "creator";
@@ -61,6 +62,7 @@ export declare function createSlackScheduleListTasksTool(context: SchedulerToolC
61
62
  run_now_at: string | null;
62
63
  }[];
63
64
  truncated: boolean;
65
+ timed_out?: boolean | undefined;
64
66
  continuation?: {
65
67
  arguments: Record<string, unknown>;
66
68
  reason?: string | undefined;
@@ -22,7 +22,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
22
22
  channel_id: string;
23
23
  };
24
24
  conversation_access: {
25
- audience: "direct" | "channel" | "group";
25
+ audience: "channel" | "direct" | "group";
26
26
  visibility: "public" | "private";
27
27
  };
28
28
  credential_mode: "system" | "creator";
@@ -31,6 +31,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
31
31
  run_now_at: string | null;
32
32
  };
33
33
  truncated?: boolean | undefined;
34
+ timed_out?: boolean | undefined;
34
35
  continuation?: {
35
36
  arguments: Record<string, unknown>;
36
37
  reason?: string | undefined;
@@ -51,7 +52,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
51
52
  channel_id: string;
52
53
  };
53
54
  conversation_access: {
54
- audience: "direct" | "channel" | "group";
55
+ audience: "channel" | "direct" | "group";
55
56
  visibility: "public" | "private";
56
57
  };
57
58
  credential_mode: "system" | "creator";
@@ -60,6 +61,7 @@ export declare function createSlackScheduleRunTaskNowTool(context: SchedulerTool
60
61
  run_now_at: string | null;
61
62
  };
62
63
  truncated?: boolean | undefined;
64
+ timed_out?: boolean | undefined;
63
65
  continuation?: {
64
66
  arguments: Record<string, unknown>;
65
67
  reason?: string | undefined;
@@ -49,7 +49,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
49
49
  channel_id: string;
50
50
  };
51
51
  conversation_access: {
52
- audience: "direct" | "channel" | "group";
52
+ audience: "channel" | "direct" | "group";
53
53
  visibility: "public" | "private";
54
54
  };
55
55
  credential_mode: "system" | "creator";
@@ -58,6 +58,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
58
58
  run_now_at: string | null;
59
59
  };
60
60
  truncated?: boolean | undefined;
61
+ timed_out?: boolean | undefined;
61
62
  continuation?: {
62
63
  arguments: Record<string, unknown>;
63
64
  reason?: string | undefined;
@@ -78,7 +79,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
78
79
  channel_id: string;
79
80
  };
80
81
  conversation_access: {
81
- audience: "direct" | "channel" | "group";
82
+ audience: "channel" | "direct" | "group";
82
83
  visibility: "public" | "private";
83
84
  };
84
85
  credential_mode: "system" | "creator";
@@ -87,6 +88,7 @@ export declare function createSlackScheduleUpdateTaskTool(context: SchedulerTool
87
88
  run_now_at: string | null;
88
89
  };
89
90
  truncated?: boolean | undefined;
91
+ timed_out?: boolean | undefined;
90
92
  continuation?: {
91
93
  arguments: Record<string, unknown>;
92
94
  reason?: string | undefined;