@sentry/junior 0.195.0 → 0.196.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 (74) hide show
  1. package/dist/{agent-hooks-VIBTIP5F.js → agent-hooks-IQLRR4RC.js} +13 -13
  2. package/dist/api/schema.js +3 -3
  3. package/dist/api.js +27 -27
  4. package/dist/app.d.ts +8 -2
  5. package/dist/app.js +102 -70
  6. package/dist/{catalog-runtime-6E6SGRZK.js → catalog-runtime-EM7V2F4I.js} +4 -4
  7. package/dist/chat/agent/handoff.d.ts +73 -0
  8. package/dist/chat/config.d.ts +2 -2
  9. package/dist/chat/model-profile.d.ts +12 -0
  10. package/dist/chat/no-reply.d.ts +4 -3
  11. package/dist/chat/services/subscribed-decision.d.ts +8 -0
  12. package/dist/chat/tools/types.d.ts +6 -2
  13. package/dist/{chunk-LMYRF6HX.js → chunk-5XSEOJPC.js} +85 -14
  14. package/dist/{chunk-RZ3PBNDV.js → chunk-6LQNW2CJ.js} +7 -7
  15. package/dist/{chunk-GFBR4S3Q.js → chunk-7NL7T6VU.js} +1 -1
  16. package/dist/{chunk-6GGDBXXP.js → chunk-7TUDDW3Y.js} +3 -3
  17. package/dist/{chunk-R5BGW4WR.js → chunk-B5WJBVHY.js} +2 -2
  18. package/dist/{chunk-X3PBQ4BK.js → chunk-BXIVMNLR.js} +1 -1
  19. package/dist/{chunk-JBSCMOLR.js → chunk-CNI74T7U.js} +6 -6
  20. package/dist/{chunk-HUQOXMDG.js → chunk-CTS72G4B.js} +1 -1
  21. package/dist/{chunk-VYDIA2UL.js → chunk-DFWJJOW3.js} +2 -6
  22. package/dist/{chunk-7UED4D5T.js → chunk-EEUFKVCD.js} +22 -22
  23. package/dist/{chunk-PYTRZZ4V.js → chunk-EFNUCRB5.js} +8 -8
  24. package/dist/{chunk-7MYXH5LA.js → chunk-EQBHN4JK.js} +1 -1
  25. package/dist/{chunk-KBPWC7NU.js → chunk-ES7KCEND.js} +1 -1
  26. package/dist/{chunk-RKA22BQP.js → chunk-G6YRPYDC.js} +1 -1
  27. package/dist/{chunk-DTYOEHUP.js → chunk-GZ336GZ5.js} +4 -4
  28. package/dist/{chunk-C4NY6L7S.js → chunk-I7GEGEHZ.js} +1 -1
  29. package/dist/{chunk-KUQRWV53.js → chunk-J357NJQ5.js} +5 -5
  30. package/dist/{chunk-CE2P6TOV.js → chunk-KJGH3KWA.js} +3 -3
  31. package/dist/{chunk-L62JVQPL.js → chunk-KZX7LORG.js} +3 -3
  32. package/dist/{chunk-QPZL2IYT.js → chunk-LBN67OZR.js} +1 -1
  33. package/dist/{chunk-HE5PZAPS.js → chunk-LCAM2P7H.js} +4 -4
  34. package/dist/{chunk-5NR7N567.js → chunk-LGXI6PWX.js} +4 -4
  35. package/dist/{chunk-RQO67SAO.js → chunk-LSPUMNZK.js} +2 -2
  36. package/dist/{chunk-OQHO62VA.js → chunk-N2MSPOGG.js} +8 -8
  37. package/dist/{chunk-PFQRZ4IB.js → chunk-NE2UQMC7.js} +7 -7
  38. package/dist/{chunk-D4YV5TDV.js → chunk-NHJU2ZAL.js} +11 -0
  39. package/dist/{chunk-FEZIEEOP.js → chunk-OVWAO5KY.js} +260 -182
  40. package/dist/{chunk-QHJZSYKY.js → chunk-P3LE2CSJ.js} +2 -2
  41. package/dist/{chunk-3VWIZVK7.js → chunk-PI6VXVBK.js} +1 -1
  42. package/dist/{chunk-FPQPYJEG.js → chunk-PIZJBSGZ.js} +1 -1
  43. package/dist/{chunk-FE3Y4KES.js → chunk-QAINJHI4.js} +5 -5
  44. package/dist/{chunk-5HNXLP4W.js → chunk-RAWYH7TW.js} +1 -1
  45. package/dist/{chunk-R5OHONYU.js → chunk-RFNMWONZ.js} +6 -6
  46. package/dist/{chunk-QKHZF2LH.js → chunk-S74KAE77.js} +4 -4
  47. package/dist/{chunk-LM7UE523.js → chunk-SR5FS2JP.js} +3 -3
  48. package/dist/{chunk-N67T4VY3.js → chunk-VKLQ2M7V.js} +9 -9
  49. package/dist/{chunk-I4RH3KLJ.js → chunk-VRHZXY5X.js} +1 -1
  50. package/dist/{chunk-7PQMTME5.js → chunk-VSOO3Y6M.js} +1 -1
  51. package/dist/{chunk-BJZML4RT.js → chunk-VVU7GHIZ.js} +9 -9
  52. package/dist/{chunk-6TRQLG3D.js → chunk-VXAQTJSR.js} +1 -1
  53. package/dist/{chunk-KQ3GZGBK.js → chunk-XNXKRWWI.js} +4 -4
  54. package/dist/cli/chat.js +35 -35
  55. package/dist/cli/check.js +5 -5
  56. package/dist/cli/plugins.js +14 -14
  57. package/dist/cli/snapshot-create.js +10 -10
  58. package/dist/cli/upgrade.js +7 -7
  59. package/dist/{db-FVCSDROR.js → db-YTM7ZXPK.js} +8 -8
  60. package/dist/instrumentation.js +3 -3
  61. package/dist/nitro.js +7 -7
  62. package/dist/{oauth-callback-server-Z5PXTDOE.js → oauth-callback-server-OXW4KQLQ.js} +31 -31
  63. package/dist/{runner-RHYU7OGV.js → runner-RJY5RNJO.js} +23 -23
  64. package/dist/{skills-QTN73DN5.js → skills-WZV6NLFY.js} +5 -5
  65. package/dist/spawn-J7SQJLYF.js +42 -0
  66. package/dist/task-runner-SMUQ5464.js +36 -0
  67. package/dist/{validation-2ZK7GA6N.js → validation-XS5ZHV3W.js} +5 -5
  68. package/dist/version.js +1 -1
  69. package/dist/{work-7IBKSZRU.js → work-LJMSDEY3.js} +23 -23
  70. package/dist/worker-NMFZ7A2N.js +24 -0
  71. package/package.json +5 -5
  72. package/dist/spawn-R56OWLUH.js +0 -42
  73. package/dist/task-runner-LLJZTLRP.js +0 -36
  74. package/dist/worker-RNVQVCO7.js +0 -24
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-LMYRF6HX.js";
3
+ } from "./chunk-5XSEOJPC.js";
4
4
 
5
5
  // src/chat/state/adapter.ts
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-HUQOXMDG.js";
3
+ } from "./chunk-CTS72G4B.js";
4
4
 
5
5
  // src/chat/conversation-privacy.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPluginCatalogRuntime
3
- } from "./chunk-X3PBQ4BK.js";
3
+ } from "./chunk-BXIVMNLR.js";
4
4
 
5
5
  // src/chat/plugins/catalog-runtime.ts
6
6
  var pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ToolInputError
3
- } from "./chunk-R5BGW4WR.js";
3
+ } from "./chunk-B5WJBVHY.js";
4
4
  import {
5
5
  getPlugins
6
- } from "./chunk-PFQRZ4IB.js";
6
+ } from "./chunk-NE2UQMC7.js";
7
7
  import {
8
8
  getDb
9
- } from "./chunk-KQ3GZGBK.js";
9
+ } from "./chunk-XNXKRWWI.js";
10
10
  import {
11
11
  juniorAttachments,
12
12
  juniorConversations,
@@ -14,7 +14,7 @@ import {
14
14
  juniorSchedulerRuns,
15
15
  juniorSchedulerTasks,
16
16
  juniorStats
17
- } from "./chunk-FPQPYJEG.js";
17
+ } from "./chunk-PIZJBSGZ.js";
18
18
  import {
19
19
  juniorDestinations
20
20
  } from "./chunk-VFUK3X5B.js";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.195.0",
4
+ version: "0.196.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -2,16 +2,16 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-FE3Y4KES.js";
5
+ } from "./chunk-QAINJHI4.js";
6
6
  import {
7
7
  clearPendingAuth,
8
8
  markTurnClosed,
9
9
  markTurnCompleted
10
- } from "./chunk-VYDIA2UL.js";
10
+ } from "./chunk-DFWJJOW3.js";
11
11
  import {
12
12
  hydrateConversationMessages,
13
13
  markConversationMessage
14
- } from "./chunk-RZ3PBNDV.js";
14
+ } from "./chunk-6LQNW2CJ.js";
15
15
  import {
16
16
  buildDeterministicTurnId
17
17
  } from "./chunk-DA2KGZZI.js";
@@ -20,13 +20,13 @@ import {
20
20
  findProviderError,
21
21
  getProviderErrorAttributes,
22
22
  getProviderErrorUserMessage
23
- } from "./chunk-LMYRF6HX.js";
23
+ } from "./chunk-5XSEOJPC.js";
24
24
  import {
25
25
  parseSlackMessageTs
26
26
  } from "./chunk-N7TMSOZH.js";
27
27
  import {
28
28
  buildTurnFailureResponse
29
- } from "./chunk-HUQOXMDG.js";
29
+ } from "./chunk-CTS72G4B.js";
30
30
 
31
31
  // src/chat/runtime/delivered-turn-state.ts
32
32
  function buildDeliveredTurnStatePatch(args) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ConversationTurnLifecycleService
3
- } from "./chunk-7PQMTME5.js";
3
+ } from "./chunk-VSOO3Y6M.js";
4
4
  import {
5
5
  runAgentWithTimeout
6
- } from "./chunk-R5OHONYU.js";
6
+ } from "./chunk-RFNMWONZ.js";
7
7
  import {
8
8
  getConversationEventStore
9
- } from "./chunk-KQ3GZGBK.js";
9
+ } from "./chunk-XNXKRWWI.js";
10
10
 
11
11
  // src/chat/runtime/turn-execution.ts
12
12
  var AgentRunError = class extends Error {
@@ -6,14 +6,14 @@ import {
6
6
  isStale,
7
7
  runNonInteractiveCommand,
8
8
  sleep
9
- } from "./chunk-LM7UE523.js";
9
+ } from "./chunk-SR5FS2JP.js";
10
10
  import {
11
11
  getStateAdapter
12
- } from "./chunk-7MYXH5LA.js";
12
+ } from "./chunk-EQBHN4JK.js";
13
13
  import {
14
14
  setSpanAttributes,
15
15
  withSpan
16
- } from "./chunk-HUQOXMDG.js";
16
+ } from "./chunk-CTS72G4B.js";
17
17
 
18
18
  // src/chat/sandbox/resources.ts
19
19
  var configuredResources;
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  conversationTurnFailureCodeSchema,
6
6
  conversationTurnFailureReasonSchema
7
- } from "./chunk-GFBR4S3Q.js";
7
+ } from "./chunk-7NL7T6VU.js";
8
8
  import {
9
9
  juniorDestinationKindSchema
10
10
  } from "./chunk-VFUK3X5B.js";
@@ -19,23 +19,23 @@ import {
19
19
  releaseConversationWork,
20
20
  requestAnotherSlice,
21
21
  startConversationWork
22
- } from "./chunk-QKHZF2LH.js";
22
+ } from "./chunk-S74KAE77.js";
23
23
  import {
24
24
  getTurnRequestDeadline
25
- } from "./chunk-I4RH3KLJ.js";
25
+ } from "./chunk-VRHZXY5X.js";
26
26
  import {
27
27
  ConversationQueueMessageRejectedError
28
28
  } from "./chunk-JAL3CH4G.js";
29
29
  import {
30
30
  getChatConfig,
31
31
  isProviderRetryError
32
- } from "./chunk-LMYRF6HX.js";
32
+ } from "./chunk-5XSEOJPC.js";
33
33
  import {
34
34
  logException,
35
35
  logInfo,
36
36
  logWarn,
37
37
  withLogContext
38
- } from "./chunk-HUQOXMDG.js";
38
+ } from "./chunk-CTS72G4B.js";
39
39
 
40
40
  // src/chat/task-execution/worker.ts
41
41
  var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  agentTurnCostUsd,
3
3
  agentTurnTotalTokens
4
- } from "./chunk-R5BGW4WR.js";
4
+ } from "./chunk-B5WJBVHY.js";
5
5
  import {
6
6
  getDb
7
- } from "./chunk-KQ3GZGBK.js";
7
+ } from "./chunk-XNXKRWWI.js";
8
8
  import {
9
9
  juniorConversations,
10
10
  juniorTaskExecutions
11
- } from "./chunk-FPQPYJEG.js";
11
+ } from "./chunk-PIZJBSGZ.js";
12
12
  import {
13
13
  logWarn
14
- } from "./chunk-HUQOXMDG.js";
14
+ } from "./chunk-CTS72G4B.js";
15
15
 
16
16
  // src/chat/tasks/execution-stats.ts
17
17
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-RKA22BQP.js";
3
+ } from "./chunk-G6YRPYDC.js";
4
4
  import {
5
5
  skillRoots
6
6
  } from "./chunk-TXKUKMVO.js";
7
7
  import {
8
8
  logWarn
9
- } from "./chunk-HUQOXMDG.js";
9
+ } from "./chunk-CTS72G4B.js";
10
10
 
11
11
  // src/chat/skills.ts
12
12
  import fs from "fs/promises";
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  resolveBaseUrl
3
- } from "./chunk-R5OHONYU.js";
3
+ } from "./chunk-RFNMWONZ.js";
4
4
  import {
5
5
  createPluginLogger,
6
6
  getPlugins,
7
7
  getSlackClient,
8
8
  withSlackRetries
9
- } from "./chunk-PFQRZ4IB.js";
9
+ } from "./chunk-NE2UQMC7.js";
10
10
  import {
11
11
  getDb,
12
12
  parseDestination
13
- } from "./chunk-KQ3GZGBK.js";
13
+ } from "./chunk-XNXKRWWI.js";
14
14
  import {
15
15
  sleep
16
- } from "./chunk-LM7UE523.js";
16
+ } from "./chunk-SR5FS2JP.js";
17
17
  import {
18
18
  acquireActiveLock,
19
19
  getStateAdapter
20
- } from "./chunk-7MYXH5LA.js";
20
+ } from "./chunk-EQBHN4JK.js";
21
21
  import {
22
22
  pluginCatalogRuntime
23
- } from "./chunk-RKA22BQP.js";
23
+ } from "./chunk-G6YRPYDC.js";
24
24
  import {
25
25
  fetchWithBoundedOAuthErrorBodies
26
- } from "./chunk-X3PBQ4BK.js";
26
+ } from "./chunk-BXIVMNLR.js";
27
27
  import {
28
28
  isRecord
29
- } from "./chunk-HUQOXMDG.js";
29
+ } from "./chunk-CTS72G4B.js";
30
30
 
31
31
  // src/chat/capabilities/router.ts
32
32
  var ProviderCredentialRouter = class {
@@ -5,7 +5,7 @@ import {
5
5
  getConversationEventStore,
6
6
  getDb,
7
7
  getSqlExecutor
8
- } from "./chunk-KQ3GZGBK.js";
8
+ } from "./chunk-XNXKRWWI.js";
9
9
  import {
10
10
  juniorCodeChanges,
11
11
  juniorCodeRepositories,
@@ -16,7 +16,7 @@ import {
16
16
  juniorUsers,
17
17
  juniorWorkspaceRepos,
18
18
  juniorWorkspaces
19
- } from "./chunk-FPQPYJEG.js";
19
+ } from "./chunk-PIZJBSGZ.js";
20
20
  import {
21
21
  SANDBOX_WORKSPACE_ROOT,
22
22
  getVercelSandboxCredentials,
@@ -24,19 +24,19 @@ import {
24
24
  isSandboxMissingError,
25
25
  runNonInteractiveCommand,
26
26
  sleep
27
- } from "./chunk-LM7UE523.js";
27
+ } from "./chunk-SR5FS2JP.js";
28
28
  import {
29
29
  getStateAdapter
30
- } from "./chunk-7MYXH5LA.js";
30
+ } from "./chunk-EQBHN4JK.js";
31
31
  import {
32
32
  botConfig,
33
33
  completeObject,
34
34
  embedTexts,
35
35
  getSlackBotToken
36
- } from "./chunk-LMYRF6HX.js";
36
+ } from "./chunk-5XSEOJPC.js";
37
37
  import {
38
38
  defaultModelId
39
- } from "./chunk-D4YV5TDV.js";
39
+ } from "./chunk-NHJU2ZAL.js";
40
40
  import {
41
41
  isActorUserId,
42
42
  parseActorUserId,
@@ -52,7 +52,7 @@ import {
52
52
  setSpanAttributes,
53
53
  setSpanStatus,
54
54
  withSpan
55
- } from "./chunk-HUQOXMDG.js";
55
+ } from "./chunk-CTS72G4B.js";
56
56
 
57
57
  // src/chat/plugins/agent-hooks.ts
58
58
  import {
@@ -14,6 +14,15 @@ function parseTurnReasoningLevel(value) {
14
14
  // src/chat/model-profile.ts
15
15
  import { z as z2 } from "zod";
16
16
  var modelProfileSchema = z2.string().regex(/^[a-z][a-z0-9_-]*$/);
17
+ function formatModelProfile(profile, description) {
18
+ const text = description?.trim();
19
+ return text ? `"${profile}": ${text}` : `"${profile}"`;
20
+ }
21
+ function formatModelProfiles(profiles, profileNames) {
22
+ return profileNames.map(
23
+ (profile) => `- ${formatModelProfile(profile, profiles[profile]?.description)}`
24
+ ).join("\n");
25
+ }
17
26
  var ModelProfileNotConfiguredError = class extends Error {
18
27
  constructor(profile) {
19
28
  super(`Model profile "${profile}" is not configured`);
@@ -38,6 +47,8 @@ export {
38
47
  TURN_REASONING_LEVELS,
39
48
  parseTurnReasoningLevel,
40
49
  modelProfileSchema,
50
+ formatModelProfile,
51
+ formatModelProfiles,
41
52
  ModelProfileNotConfiguredError,
42
53
  modelIdForProfile,
43
54
  defaultModelId,