@sentry/junior 0.145.0 → 0.147.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 (171) hide show
  1. package/dist/{agent-hooks-L7D2BDVV.js → agent-hooks-HS6VGUPM.js} +10 -10
  2. package/dist/api/conversations/detail.d.ts +1 -0
  3. package/dist/api/conversations/event-list.d.ts +1 -0
  4. package/dist/api/schema/conversation.d.ts +4 -0
  5. package/dist/api/schema.js +1 -1
  6. package/dist/api.js +26 -22
  7. package/dist/app.js +285 -290
  8. package/dist/{catalog-runtime-QLAC4Q3W.js → catalog-runtime-M6ZTPYRV.js} +5 -5
  9. package/dist/chat/agent/prompt.d.ts +0 -2
  10. package/dist/chat/agent/request.d.ts +2 -5
  11. package/dist/chat/agent/resume.d.ts +0 -3
  12. package/dist/chat/agent/sandbox.d.ts +2 -2
  13. package/dist/chat/agent/skills.d.ts +0 -1
  14. package/dist/chat/agent/tools.d.ts +0 -3
  15. package/dist/chat/agent-dispatch/types.d.ts +2 -2
  16. package/dist/chat/capabilities/jr-rpc-command.d.ts +2 -2
  17. package/dist/chat/configuration/service.d.ts +5 -2
  18. package/dist/chat/configuration/sql.d.ts +9 -0
  19. package/dist/chat/configuration/types.d.ts +17 -13
  20. package/dist/chat/conversations/history.d.ts +3 -0
  21. package/dist/chat/conversations/message-search.d.ts +32 -0
  22. package/dist/chat/conversations/projection.d.ts +10 -0
  23. package/dist/chat/conversations/sql/message-search.d.ts +4 -0
  24. package/dist/chat/conversations/tool-source.d.ts +5 -0
  25. package/dist/chat/credentials/unlink-provider.d.ts +2 -1
  26. package/dist/chat/credentials/user-token-store.d.ts +2 -0
  27. package/dist/chat/db.d.ts +2 -2
  28. package/dist/chat/event-tasks/tool-support.d.ts +2 -0
  29. package/dist/chat/identities/sql.d.ts +8 -0
  30. package/dist/chat/logging.d.ts +2 -0
  31. package/dist/chat/mcp/auth-store.d.ts +0 -2
  32. package/dist/chat/mcp/oauth.d.ts +0 -2
  33. package/dist/chat/oauth-flow.d.ts +3 -1
  34. package/dist/chat/pi/client.d.ts +2 -0
  35. package/dist/chat/plugins/credential-hooks.d.ts +2 -0
  36. package/dist/chat/prompt.d.ts +0 -2
  37. package/dist/chat/resource-events/notification.d.ts +2 -1
  38. package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
  39. package/dist/chat/runtime/thread-state.d.ts +8 -11
  40. package/dist/chat/runtime/turn-input.d.ts +4 -2
  41. package/dist/chat/runtime/turn-preparation.d.ts +2 -4
  42. package/dist/chat/sandbox/command-result.d.ts +2 -0
  43. package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
  44. package/dist/chat/scheduled-tasks/tool-support.d.ts +2 -0
  45. package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -0
  46. package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -0
  47. package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -0
  48. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -0
  49. package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -0
  50. package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
  51. package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
  52. package/dist/chat/services/provider-default-config.d.ts +2 -2
  53. package/dist/chat/services/subscribed-decision.d.ts +3 -0
  54. package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
  55. package/dist/chat/services/turn-result.d.ts +0 -3
  56. package/dist/chat/services/turn-router.d.ts +3 -0
  57. package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
  58. package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
  59. package/dist/chat/slack/dispatch-turn.d.ts +1 -1
  60. package/dist/chat/slack/message/attachments.d.ts +2 -0
  61. package/dist/chat/slack/message/blocks.d.ts +2 -0
  62. package/dist/chat/slack/message/content.d.ts +18 -0
  63. package/dist/chat/slack/message/identity.d.ts +7 -0
  64. package/dist/chat/slack/tools/canvas/context.d.ts +0 -10
  65. package/dist/chat/slack/tools/canvas/create.d.ts +2 -0
  66. package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
  67. package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
  68. package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
  69. package/dist/chat/slack/tools/channel-list-messages.d.ts +2 -0
  70. package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +23 -14
  71. package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
  72. package/dist/chat/slack/tools/list/api.d.ts +8 -1
  73. package/dist/chat/slack/tools/list/create.d.ts +2 -0
  74. package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
  75. package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
  76. package/dist/chat/slack/tools/message-add-reaction.d.ts +2 -0
  77. package/dist/chat/slack/tools/public-search.d.ts +2 -0
  78. package/dist/chat/slack/tools/send-files.d.ts +2 -0
  79. package/dist/chat/slack/tools/thread-read.d.ts +2 -0
  80. package/dist/chat/slack/vision-cache.d.ts +5 -0
  81. package/dist/chat/state/conversation.d.ts +4 -5
  82. package/dist/chat/task-execution/checkpoint.d.ts +1 -3
  83. package/dist/chat/task-execution/turn-cursor.d.ts +0 -9
  84. package/dist/chat/tool-support/structured-result.d.ts +1 -0
  85. package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
  86. package/dist/chat/tools/create-event-task.d.ts +2 -0
  87. package/dist/chat/tools/delete-event-task.d.ts +2 -0
  88. package/dist/chat/tools/handoff/tool.d.ts +2 -0
  89. package/dist/chat/tools/list-event-tasks.d.ts +2 -0
  90. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
  91. package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
  92. package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
  93. package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +5 -3
  94. package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
  95. package/dist/chat/tools/search-tools.d.ts +2 -0
  96. package/dist/chat/tools/skill/load-skill.d.ts +2 -0
  97. package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
  98. package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
  99. package/dist/chat/tools/system-time.d.ts +2 -0
  100. package/dist/chat/tools/types.d.ts +0 -6
  101. package/dist/chat/tools/update-event-task.d.ts +2 -0
  102. package/dist/chat/tools/user-lookup.d.ts +29 -0
  103. package/dist/chat/tools/watch-resource-events.d.ts +2 -0
  104. package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
  105. package/dist/chat/tools/web/image-generate.d.ts +2 -0
  106. package/dist/chat/tools/web/search.d.ts +2 -0
  107. package/dist/{chunk-PJ4NMVQB.js → chunk-34GS7B6L.js} +2 -2
  108. package/dist/{chunk-2LWPFSB4.js → chunk-4LJO56OJ.js} +9 -1
  109. package/dist/{chunk-QJBDABQA.js → chunk-6H5SZR24.js} +16 -20
  110. package/dist/{chunk-LVVSIMBB.js → chunk-745QJ3ZA.js} +1 -1
  111. package/dist/{chunk-64SBYW2O.js → chunk-7A4M7PCV.js} +613 -561
  112. package/dist/{chunk-XFKIRN3Q.js → chunk-7NVJVJID.js} +4 -3
  113. package/dist/{chunk-FUBRJA5F.js → chunk-7UQIVT6G.js} +13 -6
  114. package/dist/{chunk-ZIAMN2UW.js → chunk-AIOK6LAG.js} +40 -513
  115. package/dist/{chunk-EIX2LQ6L.js → chunk-AVOCH2Z5.js} +3 -3
  116. package/dist/{chunk-GUWLDMGF.js → chunk-AVZDSUFB.js} +4 -4
  117. package/dist/{chunk-2XET6PKP.js → chunk-AYU72WO7.js} +102 -73
  118. package/dist/chunk-AZ7EAOBE.js +566 -0
  119. package/dist/{chunk-DXEQAIUV.js → chunk-CSZINQJ2.js} +1 -1
  120. package/dist/{chunk-HLOUZC5C.js → chunk-CWP5RHVX.js} +4 -4
  121. package/dist/{chunk-DS3J6WGY.js → chunk-DLDRQHG5.js} +1 -1
  122. package/dist/{chunk-27TEJTZO.js → chunk-DU74WPIC.js} +55 -37
  123. package/dist/{chunk-YD54Q45G.js → chunk-EFLJ2WJH.js} +6 -4
  124. package/dist/{chunk-CD2XFGYQ.js → chunk-GGB4WL5A.js} +1 -1
  125. package/dist/{chunk-GDV5LXRA.js → chunk-IIOOO4FQ.js} +1 -1
  126. package/dist/{chunk-SIN3MXH6.js → chunk-JUUKWRBE.js} +1 -1
  127. package/dist/{chunk-VTDMB7XX.js → chunk-K4SZAP3K.js} +1 -1
  128. package/dist/{chunk-QUG4JSZK.js → chunk-ORO3PWKQ.js} +1 -1
  129. package/dist/{chunk-RUSS62EN.js → chunk-PVNG6UMU.js} +3 -3
  130. package/dist/{chunk-I47UGQPJ.js → chunk-Q4R73I43.js} +365 -206
  131. package/dist/{chunk-JTGS3ZZE.js → chunk-RXBVB2JM.js} +1 -1
  132. package/dist/{chunk-TZRXYWRE.js → chunk-SGZO7UWH.js} +2 -2
  133. package/dist/{chunk-JLMVCNXL.js → chunk-SVHUEHUL.js} +1 -0
  134. package/dist/{chunk-B46ZMVOV.js → chunk-X5UY34KT.js} +6 -5
  135. package/dist/{chunk-5PNPQYTO.js → chunk-YBVXBNSV.js} +2 -2
  136. package/dist/{chunk-HISR3DTV.js → chunk-YEO3VX72.js} +10 -25
  137. package/dist/{chunk-ZIMRGFYL.js → chunk-YHDERDRO.js} +7 -6
  138. package/dist/{chunk-WF5HVH3M.js → chunk-YNTTROJT.js} +1 -1
  139. package/dist/{chunk-2UH3JI64.js → chunk-YSB2N563.js} +87 -34
  140. package/dist/{chunk-ZYAJMESY.js → chunk-Z4YU7Z4L.js} +3 -2
  141. package/dist/cli/chat.js +32 -32
  142. package/dist/cli/check.js +6 -6
  143. package/dist/cli/plugins.js +13 -13
  144. package/dist/cli/snapshot-create.js +9 -9
  145. package/dist/cli/upgrade.js +7 -7
  146. package/dist/db/schema/location-configurations.d.ts +127 -0
  147. package/dist/db/schema.d.ts +128 -1
  148. package/dist/{db-62PW6LM3.js → db-CSEW4RII.js} +9 -9
  149. package/dist/instrumentation.js +4 -4
  150. package/dist/nitro.js +2 -2
  151. package/dist/{oauth-callback-server-6NZNHJAM.js → oauth-callback-server-FUEV5HNG.js} +24 -24
  152. package/dist/{runner-GCRPG3GQ.js → runner-U3XHSKSH.js} +21 -41
  153. package/dist/{skills-2S3MDFIQ.js → skills-AKE6W3WI.js} +6 -6
  154. package/dist/spawn-B6GDTWJ4.js +39 -0
  155. package/dist/{validation-HAOLCJ5A.js → validation-WDTAULUF.js} +6 -6
  156. package/dist/version.js +1 -1
  157. package/dist/{work-R4XYKMUW.js → work-C3HAO2BG.js} +17 -17
  158. package/dist/{worker-U2UCVR7M.js → worker-LNP4YKBM.js} +10 -10
  159. package/migrations/0024_misty_typhoid_mary.sql +12 -0
  160. package/migrations/meta/0024_snapshot.json +2275 -0
  161. package/migrations/meta/_journal.json +7 -0
  162. package/package.json +4 -4
  163. package/dist/chat/conversations/search.d.ts +0 -24
  164. package/dist/chat/conversations/sql/search.d.ts +0 -4
  165. package/dist/chat/slack/legacy-attachments.d.ts +0 -4
  166. package/dist/chat/slack/message.d.ts +0 -12
  167. package/dist/chat/slack/tools/user-lookup.d.ts +0 -26
  168. package/dist/chat/state/artifacts.d.ts +0 -30
  169. package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
  170. package/dist/chunk-Q6QZTTLS.js +0 -55
  171. package/dist/spawn-7WK37BTD.js +0 -39
@@ -169,6 +169,13 @@
169
169
  "when": 1786153663118,
170
170
  "tag": "0023_task_title_columns",
171
171
  "breakpoints": true
172
+ },
173
+ {
174
+ "idx": 24,
175
+ "version": "7",
176
+ "when": 1786313061094,
177
+ "tag": "0024_misty_typhoid_mary",
178
+ "breakpoints": true
172
179
  }
173
180
  ]
174
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.145.0",
3
+ "version": "0.147.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -80,7 +80,7 @@
80
80
  "pg": "^8.16.3",
81
81
  "yaml": "^2.9.0",
82
82
  "zod": "^4.4.3",
83
- "@sentry/junior-plugin-api": "0.145.0"
83
+ "@sentry/junior-plugin-api": "0.147.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@emnapi/core": "^1.10.0",
@@ -97,9 +97,9 @@
97
97
  "typescript": "^6.0.3",
98
98
  "vercel": "^54.4.0",
99
99
  "vitest": "^4.1.7",
100
- "@sentry/junior-memory": "0.145.0",
101
100
  "@sentry/junior-testing": "0.0.0",
102
- "@sentry/junior-github": "0.145.0"
101
+ "@sentry/junior-memory": "0.147.0",
102
+ "@sentry/junior-github": "0.147.0"
103
103
  },
104
104
  "scripts": {
105
105
  "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
@@ -1,24 +0,0 @@
1
- /** One relevant chat-message match from a prior conversation. */
2
- export interface ConversationSearchResult {
3
- conversationId: string;
4
- excerpt: string;
5
- messageCreatedAtMs: number;
6
- messageId: string;
7
- providerDestinationId: string;
8
- role: "assistant" | "user";
9
- }
10
- /** Runtime-derived public workspace scope for cross-conversation search. */
11
- export interface ConversationSearchScope {
12
- kind: "public_provider_tenant";
13
- provider: "slack";
14
- providerTenantId: string;
15
- }
16
- /** Search retained public messages within an authorized workspace. */
17
- export interface ConversationSearchStore {
18
- search(args: {
19
- currentConversationId: string;
20
- limit: number;
21
- query: string;
22
- scope: ConversationSearchScope;
23
- }): Promise<ConversationSearchResult[]>;
24
- }
@@ -1,4 +0,0 @@
1
- import type { JuniorSqlDatabase } from "@/db/db";
2
- import type { ConversationSearchStore } from "../search";
3
- /** Create a SQL-backed public workspace conversation search store. */
4
- export declare function createSqlConversationSearchStore(executor: JuniorSqlDatabase): ConversationSearchStore;
@@ -1,4 +0,0 @@
1
- /** Render legacy Slack attachment fields so attachment-only messages still carry context. */
2
- export declare function renderSlackLegacyAttachmentText(input: unknown): string;
3
- /** Append legacy Slack attachment text to the message text used by routing and replies. */
4
- export declare function appendSlackLegacyAttachmentText(baseText: string | undefined, rawMessageOrAttachments: unknown): string;
@@ -1,12 +0,0 @@
1
- import { type Message } from "chat";
2
- import { type SlackMessageTs } from "@/chat/slack/timestamp";
3
- /**
4
- * Preserve the native Slack message timestamp when a synthetic message ID is
5
- * used for routing or deduplication.
6
- */
7
- export declare function getSlackMessageTs(message: Pick<Message, "id" | "raw">): SlackMessageTs | undefined;
8
- /**
9
- * Return the Chat SDK's canonical formatted representation by default.
10
- * Fall back to plain text only when the message has no formatted content.
11
- */
12
- export declare function getSlackMessageText(message: Pick<Message, "formatted" | "text">): string;
@@ -1,26 +0,0 @@
1
- /** Create the tool that resolves Slack users by ID, handle, or email. */
2
- export declare function createSlackUserLookupTool(): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
3
- inputSchema: import("../../tools/definition").JsonSchemaObject;
4
- outputSchema: import("../../tools/definition").JsonSchemaObject;
5
- prepareArguments(args: unknown): {
6
- mode: "query" | "email" | "user_id";
7
- value: string;
8
- };
9
- execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
10
- [x: string]: unknown;
11
- target?: string | undefined;
12
- truncated?: boolean | undefined;
13
- continuation?: {
14
- arguments: Record<string, unknown>;
15
- reason?: string | undefined;
16
- } | undefined;
17
- } | Promise<{
18
- [x: string]: unknown;
19
- target?: string | undefined;
20
- truncated?: boolean | undefined;
21
- continuation?: {
22
- arguments: Record<string, unknown>;
23
- reason?: string | undefined;
24
- } | undefined;
25
- }>) | undefined;
26
- };
@@ -1,30 +0,0 @@
1
- export interface ListColumnMap {
2
- titleColumnId?: string;
3
- completedColumnId?: string;
4
- assigneeColumnId?: string;
5
- dueDateColumnId?: string;
6
- }
7
- export interface CanvasArtifactSummary {
8
- id: string;
9
- title?: string;
10
- url?: string;
11
- createdAt?: string;
12
- }
13
- export interface ThreadArtifactsState {
14
- assistantContextChannelId?: string;
15
- assistantTitle?: string;
16
- assistantTitleSourceMessageId?: string;
17
- lastCanvasId?: string;
18
- lastCanvasUrl?: string;
19
- recentCanvases?: CanvasArtifactSummary[];
20
- lastListId?: string;
21
- lastListUrl?: string;
22
- listColumnMap?: ListColumnMap;
23
- updatedAt?: string;
24
- }
25
- /** Safely coerce an unknown value into a ThreadArtifactsState, discarding invalid fields. */
26
- export declare function coerceThreadArtifactsState(value: unknown): ThreadArtifactsState;
27
- /** Wrap a partial artifact update into the storage envelope with an updatedAt timestamp. */
28
- export declare function buildArtifactStatePatch(patch: Partial<ThreadArtifactsState>): {
29
- artifacts: ThreadArtifactsState;
30
- };
@@ -1,3 +0,0 @@
1
- import type { AfterToolCallResult, AgentToolResult } from "@earendil-works/pi-agent-core";
2
- /** Mark an unknown tool outcome as caused by an internal execution-slice deadline. */
3
- export declare function annotateTurnDeadlineToolResult(result: AgentToolResult<unknown>): AfterToolCallResult | undefined;
@@ -1,55 +0,0 @@
1
- // src/chat/conversations/turn-lifecycle.ts
2
- var ConversationTurnLifecycleService = class {
3
- constructor(events) {
4
- this.events = events;
5
- }
6
- events;
7
- /** Record the turn start once after every input message is durable. */
8
- async start(input) {
9
- await this.events.append(input.conversationId, [
10
- {
11
- idempotencyKey: `turn:${input.turnId}:started`,
12
- createdAtMs: input.createdAtMs,
13
- data: {
14
- type: "turn_started",
15
- turnId: input.turnId,
16
- inputMessageIds: input.inputMessageIds,
17
- surface: input.surface
18
- }
19
- }
20
- ]);
21
- }
22
- /** Record successful or intentional-silence completion once. */
23
- async complete(input) {
24
- await this.events.append(input.conversationId, [
25
- {
26
- idempotencyKey: `turn:${input.turnId}:terminal`,
27
- createdAtMs: input.createdAtMs,
28
- data: {
29
- type: "turn_completed",
30
- turnId: input.turnId,
31
- outcome: input.outcome
32
- }
33
- }
34
- ]);
35
- }
36
- /** Record a classified failure once without accepting raw error details. */
37
- async fail(input) {
38
- await this.events.append(input.conversationId, [
39
- {
40
- idempotencyKey: `turn:${input.turnId}:terminal`,
41
- createdAtMs: input.createdAtMs,
42
- data: {
43
- type: "turn_failed",
44
- turnId: input.turnId,
45
- failureCode: input.failureCode,
46
- ...input.eventId ? { eventId: input.eventId } : {}
47
- }
48
- }
49
- ]);
50
- }
51
- };
52
-
53
- export {
54
- ConversationTurnLifecycleService
55
- };
@@ -1,39 +0,0 @@
1
- import {
2
- bindSpawnAgent
3
- } from "./chunk-LVVSIMBB.js";
4
- import "./chunk-HISR3DTV.js";
5
- import "./chunk-HLOUZC5C.js";
6
- import "./chunk-Q6QZTTLS.js";
7
- import "./chunk-JAL3CH4G.js";
8
- import "./chunk-B46ZMVOV.js";
9
- import "./chunk-DIB4GX3G.js";
10
- import "./chunk-R776HKPK.js";
11
- import "./chunk-FUBRJA5F.js";
12
- import "./chunk-ZIAMN2UW.js";
13
- import "./chunk-3Y47VMHV.js";
14
- import "./chunk-HUO3UTAQ.js";
15
- import "./chunk-HLXXQI5Q.js";
16
- import "./chunk-PDO5BLNM.js";
17
- import "./chunk-TZRXYWRE.js";
18
- import "./chunk-2UH3JI64.js";
19
- import "./chunk-27TEJTZO.js";
20
- import "./chunk-EM225ITJ.js";
21
- import "./chunk-QUG4JSZK.js";
22
- import "./chunk-XFKIRN3Q.js";
23
- import "./chunk-VFUK3X5B.js";
24
- import "./chunk-JTGS3ZZE.js";
25
- import "./chunk-SIN3MXH6.js";
26
- import "./chunk-CD2XFGYQ.js";
27
- import "./chunk-RUIXF3YQ.js";
28
- import "./chunk-HZF5P5UN.js";
29
- import "./chunk-F3B2YJ76.js";
30
- import "./chunk-2LWPFSB4.js";
31
- import "./chunk-6GWA276C.js";
32
- import "./chunk-OOUNJNMR.js";
33
- import "./chunk-H4HBKISO.js";
34
- import "./chunk-DS3J6WGY.js";
35
- import "./chunk-GDV5LXRA.js";
36
- import "./chunk-MLKGABMK.js";
37
- export {
38
- bindSpawnAgent
39
- };