@sentry/junior 0.133.0 → 0.134.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 (68) hide show
  1. package/dist/{agent-hooks-5BUIXVIX.js → agent-hooks-HGXNYOOD.js} +9 -9
  2. package/dist/api/schema/task.d.ts +60 -0
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +3 -1
  5. package/dist/api.js +90 -20
  6. package/dist/app.js +48 -24
  7. package/dist/{catalog-runtime-VGB3DWXZ.js → catalog-runtime-P6QHU6XE.js} +5 -5
  8. package/dist/chat/agent/prompt.d.ts +7 -5
  9. package/dist/chat/agent/repository-context.d.ts +20 -0
  10. package/dist/chat/agent/sandbox.d.ts +8 -0
  11. package/dist/chat/agent/tools.d.ts +3 -0
  12. package/dist/chat/plugins/agent-hooks.d.ts +2 -2
  13. package/dist/chat/repository-instructions.d.ts +44 -0
  14. package/dist/chat/sandbox/noninteractive-command.d.ts +2 -0
  15. package/dist/chat/sandbox/sandbox.d.ts +3 -0
  16. package/dist/chat/sandbox/session.d.ts +1 -0
  17. package/dist/chat/services/context-compaction.d.ts +1 -0
  18. package/dist/chat/slack/tools/user-lookup.d.ts +2 -6
  19. package/dist/chat/tasks/execution-stats.d.ts +29 -0
  20. package/dist/chat/tasks/registered.d.ts +3 -0
  21. package/dist/chat/tools/index.d.ts +2 -0
  22. package/dist/chat/tools/sandbox/bash.d.ts +1 -0
  23. package/dist/chat/tools/system-time.d.ts +11 -1
  24. package/dist/{chunk-VQA25AL4.js → chunk-52DIKFJV.js} +14 -6
  25. package/dist/{chunk-EJRJWBKG.js → chunk-6T3AYZT7.js} +1 -1
  26. package/dist/{chunk-ECUILEUX.js → chunk-7GKQ7UIO.js} +430 -29
  27. package/dist/{chunk-QVEXYYFM.js → chunk-7UTBPDXK.js} +24 -1
  28. package/dist/{chunk-V365UVCU.js → chunk-AS3I7OIL.js} +2 -2
  29. package/dist/{chunk-HX236W2U.js → chunk-CDQ4YIZM.js} +9 -0
  30. package/dist/{chunk-TLN54TOQ.js → chunk-FDNAUM7X.js} +32 -32
  31. package/dist/{chunk-TU7P77FI.js → chunk-FL466XX5.js} +12 -12
  32. package/dist/{chunk-IKO5LFIU.js → chunk-GSP5SMZJ.js} +1 -1
  33. package/dist/{chunk-XTQGVNM3.js → chunk-KWGJG4HO.js} +6 -12
  34. package/dist/{chunk-VL7OYSHD.js → chunk-LKK4XMUV.js} +1 -1
  35. package/dist/{chunk-AH5HTUYX.js → chunk-MFERLE3G.js} +1 -1
  36. package/dist/{chunk-T5FPIBU2.js → chunk-NF2TNZPD.js} +788 -674
  37. package/dist/chunk-NOA34AJY.js +122 -0
  38. package/dist/{chunk-5ZAZHLIW.js → chunk-NYWSCJVW.js} +1 -1
  39. package/dist/{chunk-QWGZ273D.js → chunk-QLEKAO7O.js} +71 -23
  40. package/dist/{chunk-IVTHTAVK.js → chunk-S6DMTEOM.js} +2 -2
  41. package/dist/{chunk-WHEMUEXT.js → chunk-TR6UEEYD.js} +8 -6
  42. package/dist/{chunk-FX6BLEDP.js → chunk-U3ZI7CCW.js} +1 -1
  43. package/dist/{chunk-JLN4XSPR.js → chunk-VEGF62FV.js} +1 -1
  44. package/dist/{chunk-HTGXUNEC.js → chunk-VGXJMECA.js} +7 -7
  45. package/dist/{chunk-HJ4KDO4N.js → chunk-VP6NCPRS.js} +1 -1
  46. package/dist/{chunk-LNYNTR27.js → chunk-VPYKNCTN.js} +3 -3
  47. package/dist/{chunk-LDRO4OQ4.js → chunk-XG5PHKPM.js} +2 -2
  48. package/dist/{chunk-TBVS7GBE.js → chunk-YNLQQ622.js} +9 -8
  49. package/dist/cli/chat.js +25 -25
  50. package/dist/cli/check.js +6 -6
  51. package/dist/cli/init.js +0 -1
  52. package/dist/cli/plugins.js +12 -12
  53. package/dist/cli/snapshot-create.js +9 -9
  54. package/dist/cli/upgrade.js +7 -7
  55. package/dist/db/schema/task-executions.d.ts +110 -0
  56. package/dist/db/schema.d.ts +111 -1
  57. package/dist/{db-RICMPUFT.js → db-GFK4NHWJ.js} +7 -7
  58. package/dist/instrumentation.js +4 -4
  59. package/dist/nitro.js +2 -2
  60. package/dist/{oauth-callback-server-YFVS4SAX.js → oauth-callback-server-HUJLAQ5N.js} +19 -18
  61. package/dist/{runner-A3LVGZR6.js → runner-T77AFAH4.js} +13 -12
  62. package/dist/{skills-P7Q6Z6PN.js → skills-3KUFJOOR.js} +6 -6
  63. package/dist/{validation-RYHOWBET.js → validation-FMWDHKYU.js} +6 -6
  64. package/dist/version.js +1 -1
  65. package/migrations/0019_lowly_valkyrie.sql +14 -0
  66. package/migrations/meta/0019_snapshot.json +1904 -0
  67. package/migrations/meta/_journal.json +7 -0
  68. package/package.json +4 -4
@@ -1,6 +1,31 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-LDRO4OQ4.js";
3
+ } from "./chunk-XG5PHKPM.js";
4
+
5
+ // src/chat/sandbox/paths.ts
6
+ function normalizeWorkspaceRoot(input) {
7
+ const candidate = (input ?? "").trim();
8
+ if (!candidate) {
9
+ return "/vercel/sandbox";
10
+ }
11
+ const normalized = candidate.replace(/\/+$/, "");
12
+ return normalized.startsWith("/") ? normalized : `/${normalized}`;
13
+ }
14
+ var SANDBOX_WORKSPACE_ROOT = normalizeWorkspaceRoot(
15
+ process.env.VERCEL_SANDBOX_WORKSPACE_DIR
16
+ );
17
+ var SANDBOX_SKILLS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/skills`;
18
+ var SANDBOX_DATA_ROOT = `${SANDBOX_WORKSPACE_ROOT}/data`;
19
+ function sandboxSkillDir(skillName) {
20
+ return `${SANDBOX_SKILLS_ROOT}/${skillName}`;
21
+ }
22
+ function sandboxSkillFile(skillName) {
23
+ return `${sandboxSkillDir(skillName)}/SKILL.md`;
24
+ }
25
+ function sandboxSkillPathResolution(skillName) {
26
+ const skillDir = sandboxSkillDir(skillName);
27
+ return `Resolve relative paths in this skill against ${skillDir}. For bash commands from this skill, cd to ${skillDir} first or use absolute paths.`;
28
+ }
4
29
 
5
30
  // src/chat/state/adapter.ts
6
31
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -271,31 +296,6 @@ async function disconnectStateAdapter() {
271
296
  }
272
297
  }
273
298
 
274
- // src/chat/sandbox/paths.ts
275
- function normalizeWorkspaceRoot(input) {
276
- const candidate = (input ?? "").trim();
277
- if (!candidate) {
278
- return "/vercel/sandbox";
279
- }
280
- const normalized = candidate.replace(/\/+$/, "");
281
- return normalized.startsWith("/") ? normalized : `/${normalized}`;
282
- }
283
- var SANDBOX_WORKSPACE_ROOT = normalizeWorkspaceRoot(
284
- process.env.VERCEL_SANDBOX_WORKSPACE_DIR
285
- );
286
- var SANDBOX_SKILLS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/skills`;
287
- var SANDBOX_DATA_ROOT = `${SANDBOX_WORKSPACE_ROOT}/data`;
288
- function sandboxSkillDir(skillName) {
289
- return `${SANDBOX_SKILLS_ROOT}/${skillName}`;
290
- }
291
- function sandboxSkillFile(skillName) {
292
- return `${sandboxSkillDir(skillName)}/SKILL.md`;
293
- }
294
- function sandboxSkillPathResolution(skillName) {
295
- const skillDir = sandboxSkillDir(skillName);
296
- return `Resolve relative paths in this skill against ${skillDir}. For bash commands from this skill, cd to ${skillDir} first or use absolute paths.`;
297
- }
298
-
299
299
  // src/chat/sleep.ts
300
300
  function sleep(ms, signal) {
301
301
  if (!signal) {
@@ -319,15 +319,15 @@ function sleep(ms, signal) {
319
319
  }
320
320
 
321
321
  export {
322
- acquireActiveLock,
323
- getDefaultRedisStateAdapterFor,
324
- getStateAdapter,
325
- disconnectStateAdapter,
326
- sleep,
327
322
  SANDBOX_WORKSPACE_ROOT,
328
323
  SANDBOX_SKILLS_ROOT,
329
324
  SANDBOX_DATA_ROOT,
330
325
  sandboxSkillDir,
331
326
  sandboxSkillFile,
332
- sandboxSkillPathResolution
327
+ sandboxSkillPathResolution,
328
+ acquireActiveLock,
329
+ getDefaultRedisStateAdapterFor,
330
+ getStateAdapter,
331
+ disconnectStateAdapter,
332
+ sleep
333
333
  };
@@ -13,7 +13,7 @@ import {
13
13
  persistAuthPauseTurnState,
14
14
  requireTurnFailureEventId,
15
15
  scheduleSessionCompletedPluginTasks
16
- } from "./chunk-VQA25AL4.js";
16
+ } from "./chunk-52DIKFJV.js";
17
17
  import {
18
18
  buildSentryConversationUrl
19
19
  } from "./chunk-4CODA7P5.js";
@@ -40,7 +40,7 @@ import {
40
40
  resolveBaseUrl,
41
41
  resolvePluginOAuthAccount,
42
42
  truncateStatusText
43
- } from "./chunk-HTGXUNEC.js";
43
+ } from "./chunk-VGXJMECA.js";
44
44
  import {
45
45
  JUNIOR_THREAD_STATE_TTL_MS,
46
46
  TurnSliceLimitExceededError,
@@ -72,13 +72,13 @@ import {
72
72
  recordDeliveredAssistantMessage,
73
73
  turnHasReply,
74
74
  updateConversationStats
75
- } from "./chunk-ECUILEUX.js";
75
+ } from "./chunk-7GKQ7UIO.js";
76
76
  import {
77
77
  parseSlackThreadId,
78
78
  readSlackRawMessageContext,
79
79
  resolveSlackChannelIdFromMessage,
80
80
  resolveSlackChannelIdFromThreadId
81
- } from "./chunk-AH5HTUYX.js";
81
+ } from "./chunk-MFERLE3G.js";
82
82
  import {
83
83
  SlackActionError,
84
84
  getDashboardConversationLink,
@@ -87,19 +87,19 @@ import {
87
87
  getSlackClient,
88
88
  isDmChannel,
89
89
  normalizeSlackConversationId
90
- } from "./chunk-WHEMUEXT.js";
90
+ } from "./chunk-TR6UEEYD.js";
91
91
  import {
92
92
  getConversationEventStore,
93
93
  getConversationStore,
94
94
  parseDestination,
95
95
  requireSlackDestination,
96
96
  sameDestination
97
- } from "./chunk-LNYNTR27.js";
97
+ } from "./chunk-VPYKNCTN.js";
98
98
  import {
99
99
  acquireActiveLock,
100
100
  getDefaultRedisStateAdapterFor,
101
101
  getStateAdapter
102
- } from "./chunk-TLN54TOQ.js";
102
+ } from "./chunk-FDNAUM7X.js";
103
103
  import {
104
104
  FUNCTION_TIMEOUT_BUFFER_SECONDS,
105
105
  botConfig,
@@ -108,18 +108,18 @@ import {
108
108
  getRuntimeMetadata,
109
109
  normalizeSlackEmojiName,
110
110
  standardModelId
111
- } from "./chunk-LDRO4OQ4.js";
111
+ } from "./chunk-XG5PHKPM.js";
112
112
  import {
113
113
  discoverSkills
114
- } from "./chunk-IVTHTAVK.js";
114
+ } from "./chunk-S6DMTEOM.js";
115
115
  import {
116
116
  pluginCatalogRuntime
117
- } from "./chunk-JLN4XSPR.js";
117
+ } from "./chunk-VEGF62FV.js";
118
118
  import {
119
119
  buildOAuthTokenRequest,
120
120
  hasRequiredOAuthScope,
121
121
  parseOAuthTokenResponse
122
- } from "./chunk-HJ4KDO4N.js";
122
+ } from "./chunk-VP6NCPRS.js";
123
123
  import {
124
124
  createSlackResumeActor,
125
125
  isUserActor,
@@ -138,7 +138,7 @@ import {
138
138
  toOptionalNumber,
139
139
  toOptionalString,
140
140
  withLogContext
141
- } from "./chunk-EJRJWBKG.js";
141
+ } from "./chunk-6T3AYZT7.js";
142
142
  import {
143
143
  homeDir
144
144
  } from "./chunk-H4HBKISO.js";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.133.0",
4
+ version: "0.134.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -1,16 +1,19 @@
1
+ import {
2
+ ToolInputError
3
+ } from "./chunk-CDQ4YIZM.js";
1
4
  import {
2
5
  canRouteResourceEvents,
3
6
  getPlugins
4
- } from "./chunk-WHEMUEXT.js";
7
+ } from "./chunk-TR6UEEYD.js";
5
8
  import {
6
9
  getDb
7
- } from "./chunk-LNYNTR27.js";
10
+ } from "./chunk-VPYKNCTN.js";
8
11
  import {
9
12
  juniorEventTasks,
10
13
  juniorSchedulerRuns,
11
14
  juniorSchedulerTasks,
12
15
  juniorStats
13
- } from "./chunk-QWGZ273D.js";
16
+ } from "./chunk-QLEKAO7O.js";
14
17
  import {
15
18
  juniorDestinations
16
19
  } from "./chunk-VFUK3X5B.js";
@@ -218,14 +221,6 @@ function makeStructuredToolOutput(details, options = {}) {
218
221
  };
219
222
  }
220
223
 
221
- // src/chat/tools/execution/tool-input-error.ts
222
- var ToolInputError = class extends Error {
223
- constructor(message, options) {
224
- super(message, options);
225
- this.name = "ToolInputError";
226
- }
227
- };
228
-
229
224
  // src/chat/resource-events/runtime-catalog.ts
230
225
  function getResourceEventCatalog() {
231
226
  return Object.fromEntries(
@@ -1468,7 +1463,6 @@ export {
1468
1463
  juniorToolOutputSchema,
1469
1464
  injectContinuationToolName,
1470
1465
  makeStructuredToolOutput,
1471
- ToolInputError,
1472
1466
  eventNamespaceSchema,
1473
1467
  registeredEventTypeSchema,
1474
1468
  registeredResourceTypeSchema,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-EJRJWBKG.js";
3
+ } from "./chunk-6T3AYZT7.js";
4
4
 
5
5
  // src/chat/conversation-privacy.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-F3B2YJ76.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-EJRJWBKG.js";
8
+ } from "./chunk-6T3AYZT7.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";