@sentry/junior 0.146.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 (155) hide show
  1. package/dist/{agent-hooks-SLJADYE5.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 +220 -238
  8. package/dist/{catalog-runtime-RQIMSDPR.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/sandbox.d.ts +2 -2
  12. package/dist/chat/agent/tools.d.ts +0 -2
  13. package/dist/chat/agent-dispatch/types.d.ts +2 -2
  14. package/dist/chat/capabilities/jr-rpc-command.d.ts +2 -2
  15. package/dist/chat/configuration/service.d.ts +5 -2
  16. package/dist/chat/configuration/sql.d.ts +9 -0
  17. package/dist/chat/configuration/types.d.ts +17 -13
  18. package/dist/chat/conversations/history.d.ts +3 -0
  19. package/dist/chat/conversations/projection.d.ts +10 -0
  20. package/dist/chat/credentials/unlink-provider.d.ts +2 -1
  21. package/dist/chat/credentials/user-token-store.d.ts +2 -0
  22. package/dist/chat/event-tasks/tool-support.d.ts +2 -0
  23. package/dist/chat/identities/sql.d.ts +8 -0
  24. package/dist/chat/logging.d.ts +2 -0
  25. package/dist/chat/mcp/auth-store.d.ts +0 -2
  26. package/dist/chat/mcp/oauth.d.ts +0 -2
  27. package/dist/chat/oauth-flow.d.ts +3 -1
  28. package/dist/chat/pi/client.d.ts +2 -0
  29. package/dist/chat/plugins/credential-hooks.d.ts +2 -0
  30. package/dist/chat/prompt.d.ts +0 -2
  31. package/dist/chat/resource-events/notification.d.ts +2 -1
  32. package/dist/chat/runtime/delivered-turn-state.d.ts +1 -4
  33. package/dist/chat/runtime/thread-state.d.ts +8 -11
  34. package/dist/chat/runtime/turn-input.d.ts +4 -2
  35. package/dist/chat/runtime/turn-preparation.d.ts +2 -4
  36. package/dist/chat/sandbox/command-result.d.ts +2 -0
  37. package/dist/chat/sandbox/egress/schemas.d.ts +6 -0
  38. package/dist/chat/scheduled-tasks/tool-support.d.ts +2 -0
  39. package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -0
  40. package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -0
  41. package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -0
  42. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -0
  43. package/dist/chat/scheduled-tasks/tools/update.d.ts +2 -0
  44. package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -3
  45. package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
  46. package/dist/chat/services/provider-default-config.d.ts +2 -2
  47. package/dist/chat/services/subscribed-decision.d.ts +3 -0
  48. package/dist/chat/services/subscribed-reply-policy.d.ts +1 -0
  49. package/dist/chat/services/turn-result.d.ts +0 -3
  50. package/dist/chat/services/turn-router.d.ts +3 -0
  51. package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -1
  52. package/dist/chat/slack/assistant-thread/title.d.ts +0 -3
  53. package/dist/chat/slack/dispatch-turn.d.ts +1 -1
  54. package/dist/chat/slack/tools/canvas/context.d.ts +0 -10
  55. package/dist/chat/slack/tools/canvas/create.d.ts +2 -0
  56. package/dist/chat/slack/tools/canvas/edit.d.ts +2 -0
  57. package/dist/chat/slack/tools/canvas/read.d.ts +2 -0
  58. package/dist/chat/slack/tools/canvas/write.d.ts +2 -0
  59. package/dist/chat/slack/tools/channel-list-messages.d.ts +2 -0
  60. package/dist/chat/slack/tools/conversation-message-search.d.ts +2 -0
  61. package/dist/chat/slack/tools/list/add-items.d.ts +4 -1
  62. package/dist/chat/slack/tools/list/api.d.ts +8 -1
  63. package/dist/chat/slack/tools/list/create.d.ts +2 -0
  64. package/dist/chat/slack/tools/list/get-items.d.ts +5 -3
  65. package/dist/chat/slack/tools/list/update-item.d.ts +5 -1
  66. package/dist/chat/slack/tools/message-add-reaction.d.ts +2 -0
  67. package/dist/chat/slack/tools/public-search.d.ts +2 -0
  68. package/dist/chat/slack/tools/send-files.d.ts +2 -0
  69. package/dist/chat/slack/tools/thread-read.d.ts +2 -0
  70. package/dist/chat/slack/vision-cache.d.ts +5 -0
  71. package/dist/chat/state/conversation.d.ts +4 -5
  72. package/dist/chat/tool-support/structured-result.d.ts +1 -0
  73. package/dist/chat/tool-support/timed-out-tool-result.d.ts +11 -0
  74. package/dist/chat/tools/create-event-task.d.ts +2 -0
  75. package/dist/chat/tools/delete-event-task.d.ts +2 -0
  76. package/dist/chat/tools/handoff/tool.d.ts +2 -0
  77. package/dist/chat/tools/list-event-tasks.d.ts +2 -0
  78. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +2 -0
  79. package/dist/chat/tools/runtime/report-progress.d.ts +2 -0
  80. package/dist/chat/tools/runtime/spawn-agent.d.ts +2 -0
  81. package/dist/chat/tools/search-conversation-events.d.ts +2 -0
  82. package/dist/chat/tools/search-resource-event-types.d.ts +2 -0
  83. package/dist/chat/tools/search-tools.d.ts +2 -0
  84. package/dist/chat/tools/skill/load-skill.d.ts +2 -0
  85. package/dist/chat/tools/skill/search-mcp-tools.d.ts +2 -0
  86. package/dist/chat/tools/stop-watching-resources.d.ts +2 -0
  87. package/dist/chat/tools/system-time.d.ts +2 -0
  88. package/dist/chat/tools/types.d.ts +0 -6
  89. package/dist/chat/tools/update-event-task.d.ts +2 -0
  90. package/dist/chat/tools/user-lookup.d.ts +29 -0
  91. package/dist/chat/tools/watch-resource-events.d.ts +2 -0
  92. package/dist/chat/tools/web/fetch-tool.d.ts +2 -0
  93. package/dist/chat/tools/web/image-generate.d.ts +2 -0
  94. package/dist/chat/tools/web/search.d.ts +2 -0
  95. package/dist/{chunk-LVW7BLLT.js → chunk-34GS7B6L.js} +2 -2
  96. package/dist/{chunk-B63BF443.js → chunk-4LJO56OJ.js} +9 -1
  97. package/dist/{chunk-H6U2U3EP.js → chunk-6H5SZR24.js} +16 -20
  98. package/dist/{chunk-M6ZWP4RI.js → chunk-745QJ3ZA.js} +1 -1
  99. package/dist/{chunk-BLETMLRX.js → chunk-7A4M7PCV.js} +231 -472
  100. package/dist/{chunk-MKRIZ4VG.js → chunk-7NVJVJID.js} +4 -2
  101. package/dist/{chunk-ZDGHGY74.js → chunk-7UQIVT6G.js} +13 -6
  102. package/dist/{chunk-GDQEU4I7.js → chunk-AIOK6LAG.js} +28 -489
  103. package/dist/{chunk-QSXZ42KX.js → chunk-AVOCH2Z5.js} +3 -3
  104. package/dist/{chunk-FXDDDSPL.js → chunk-AVZDSUFB.js} +4 -4
  105. package/dist/{chunk-OFPYOC3M.js → chunk-AYU72WO7.js} +102 -72
  106. package/dist/chunk-AZ7EAOBE.js +566 -0
  107. package/dist/{chunk-PH4Q3A6W.js → chunk-CSZINQJ2.js} +1 -1
  108. package/dist/{chunk-X2WMBTS3.js → chunk-CWP5RHVX.js} +4 -4
  109. package/dist/{chunk-HQE6EJS5.js → chunk-DLDRQHG5.js} +1 -1
  110. package/dist/{chunk-MCFIXAV5.js → chunk-DU74WPIC.js} +55 -37
  111. package/dist/{chunk-X22KCSCO.js → chunk-EFLJ2WJH.js} +6 -4
  112. package/dist/{chunk-37JJDS4H.js → chunk-GGB4WL5A.js} +1 -1
  113. package/dist/{chunk-F7REGDKO.js → chunk-IIOOO4FQ.js} +1 -1
  114. package/dist/{chunk-PB222GIA.js → chunk-JUUKWRBE.js} +1 -1
  115. package/dist/{chunk-T5GXFFLA.js → chunk-K4SZAP3K.js} +1 -1
  116. package/dist/{chunk-GYEKOX7N.js → chunk-ORO3PWKQ.js} +1 -1
  117. package/dist/{chunk-AISNSNDV.js → chunk-PVNG6UMU.js} +3 -3
  118. package/dist/{chunk-47OSH2ZO.js → chunk-Q4R73I43.js} +365 -206
  119. package/dist/{chunk-QG7OOKIN.js → chunk-RXBVB2JM.js} +1 -1
  120. package/dist/{chunk-V6SRLKUB.js → chunk-SGZO7UWH.js} +2 -2
  121. package/dist/{chunk-JLMVCNXL.js → chunk-SVHUEHUL.js} +1 -0
  122. package/dist/{chunk-FEKQHPVA.js → chunk-X5UY34KT.js} +6 -5
  123. package/dist/{chunk-FGHADGIC.js → chunk-YBVXBNSV.js} +2 -2
  124. package/dist/{chunk-JUA6VU2Z.js → chunk-YEO3VX72.js} +10 -23
  125. package/dist/{chunk-SCGVWUZX.js → chunk-YHDERDRO.js} +7 -6
  126. package/dist/{chunk-TCEJ7XXM.js → chunk-YNTTROJT.js} +1 -1
  127. package/dist/{chunk-37EVZP66.js → chunk-YSB2N563.js} +49 -8
  128. package/dist/{chunk-W65V465O.js → chunk-Z4YU7Z4L.js} +3 -2
  129. package/dist/cli/chat.js +32 -32
  130. package/dist/cli/check.js +6 -6
  131. package/dist/cli/plugins.js +13 -13
  132. package/dist/cli/snapshot-create.js +9 -9
  133. package/dist/cli/upgrade.js +7 -7
  134. package/dist/db/schema/location-configurations.d.ts +127 -0
  135. package/dist/db/schema.d.ts +128 -1
  136. package/dist/{db-WWOMXWTT.js → db-CSEW4RII.js} +7 -7
  137. package/dist/instrumentation.js +4 -4
  138. package/dist/nitro.js +2 -2
  139. package/dist/{oauth-callback-server-A6ZZX74U.js → oauth-callback-server-FUEV5HNG.js} +24 -24
  140. package/dist/{runner-KSGB2UAV.js → runner-U3XHSKSH.js} +21 -39
  141. package/dist/{skills-26QPWKVS.js → skills-AKE6W3WI.js} +6 -6
  142. package/dist/spawn-B6GDTWJ4.js +39 -0
  143. package/dist/{validation-OPSRGFGH.js → validation-WDTAULUF.js} +6 -6
  144. package/dist/version.js +1 -1
  145. package/dist/{work-VMSW7STJ.js → work-C3HAO2BG.js} +17 -17
  146. package/dist/{worker-2JNFB7C7.js → worker-LNP4YKBM.js} +10 -10
  147. package/migrations/0024_misty_typhoid_mary.sql +12 -0
  148. package/migrations/meta/0024_snapshot.json +2275 -0
  149. package/migrations/meta/_journal.json +7 -0
  150. package/package.json +5 -5
  151. package/dist/chat/slack/tools/user-lookup.d.ts +0 -27
  152. package/dist/chat/state/artifacts.d.ts +0 -30
  153. package/dist/chat/tool-support/turn-deadline-result.d.ts +0 -3
  154. package/dist/chunk-Q6QZTTLS.js +0 -55
  155. package/dist/spawn-5LAJXZ2P.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.146.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.146.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.146.0",
101
- "@sentry/junior-github": "0.146.0",
102
- "@sentry/junior-testing": "0.0.0"
100
+ "@sentry/junior-testing": "0.0.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,27 +0,0 @@
1
- import type { SlackTeamId } from "@/chat/slack/ids";
2
- /** Create the tool that resolves Slack users by ID, handle, or email. */
3
- export declare function createSlackUserLookupTool(teamId: SlackTeamId): Omit<import("../../tools/definition").AnyToolDefinition, "inputSchema" | "outputSchema" | "prepareArguments" | "execute"> & {
4
- inputSchema: import("../../tools/definition").JsonSchemaObject;
5
- outputSchema: import("../../tools/definition").JsonSchemaObject;
6
- prepareArguments(args: unknown): {
7
- mode: "query" | "email" | "user_id";
8
- value: string;
9
- };
10
- execute?: ((input: unknown, options: import("../../tools/definition").ToolExecuteOptions) => {
11
- [x: string]: unknown;
12
- target?: string | undefined;
13
- truncated?: boolean | undefined;
14
- continuation?: {
15
- arguments: Record<string, unknown>;
16
- reason?: string | undefined;
17
- } | undefined;
18
- } | Promise<{
19
- [x: string]: unknown;
20
- target?: string | undefined;
21
- truncated?: boolean | undefined;
22
- continuation?: {
23
- arguments: Record<string, unknown>;
24
- reason?: string | undefined;
25
- } | undefined;
26
- }>) | undefined;
27
- };
@@ -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-M6ZWP4RI.js";
4
- import "./chunk-JUA6VU2Z.js";
5
- import "./chunk-X2WMBTS3.js";
6
- import "./chunk-Q6QZTTLS.js";
7
- import "./chunk-JAL3CH4G.js";
8
- import "./chunk-FEKQHPVA.js";
9
- import "./chunk-DIB4GX3G.js";
10
- import "./chunk-R776HKPK.js";
11
- import "./chunk-ZDGHGY74.js";
12
- import "./chunk-GDQEU4I7.js";
13
- import "./chunk-3Y47VMHV.js";
14
- import "./chunk-HUO3UTAQ.js";
15
- import "./chunk-HLXXQI5Q.js";
16
- import "./chunk-PDO5BLNM.js";
17
- import "./chunk-V6SRLKUB.js";
18
- import "./chunk-37EVZP66.js";
19
- import "./chunk-MCFIXAV5.js";
20
- import "./chunk-EM225ITJ.js";
21
- import "./chunk-GYEKOX7N.js";
22
- import "./chunk-MKRIZ4VG.js";
23
- import "./chunk-VFUK3X5B.js";
24
- import "./chunk-QG7OOKIN.js";
25
- import "./chunk-PB222GIA.js";
26
- import "./chunk-37JJDS4H.js";
27
- import "./chunk-RUIXF3YQ.js";
28
- import "./chunk-HZF5P5UN.js";
29
- import "./chunk-F3B2YJ76.js";
30
- import "./chunk-B63BF443.js";
31
- import "./chunk-6GWA276C.js";
32
- import "./chunk-OOUNJNMR.js";
33
- import "./chunk-H4HBKISO.js";
34
- import "./chunk-HQE6EJS5.js";
35
- import "./chunk-F7REGDKO.js";
36
- import "./chunk-MLKGABMK.js";
37
- export {
38
- bindSpawnAgent
39
- };