@sentry/junior 0.195.0 → 0.197.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 (76) hide show
  1. package/dist/{agent-hooks-VIBTIP5F.js → agent-hooks-CM4EKXL4.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 -108
  6. package/dist/{catalog-runtime-6E6SGRZK.js → catalog-runtime-V7WGCXUD.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/automated-turn-limit.d.ts +13 -34
  12. package/dist/chat/services/subscribed-decision.d.ts +8 -0
  13. package/dist/chat/slack/automated-turn-limit-notice.d.ts +2 -24
  14. package/dist/chat/tools/types.d.ts +6 -2
  15. package/dist/{chunk-RKA22BQP.js → chunk-2K26W3FP.js} +1 -1
  16. package/dist/{chunk-FE3Y4KES.js → chunk-4USCVHQZ.js} +5 -5
  17. package/dist/{chunk-PFQRZ4IB.js → chunk-4UUKQB6I.js} +7 -7
  18. package/dist/{chunk-KQ3GZGBK.js → chunk-5GWV7SXF.js} +4 -11
  19. package/dist/{chunk-7PQMTME5.js → chunk-5MMQLB2B.js} +1 -1
  20. package/dist/{chunk-FPQPYJEG.js → chunk-6ZQ3CE6X.js} +1 -1
  21. package/dist/{chunk-HUQOXMDG.js → chunk-7ENMKNEK.js} +1 -1
  22. package/dist/{chunk-GFBR4S3Q.js → chunk-7NL7T6VU.js} +1 -1
  23. package/dist/{chunk-I4RH3KLJ.js → chunk-BGSAFVJO.js} +1 -1
  24. package/dist/{chunk-3VWIZVK7.js → chunk-BQ7UXCUO.js} +1 -1
  25. package/dist/{chunk-LMYRF6HX.js → chunk-BR5GNDPS.js} +85 -14
  26. package/dist/{chunk-L62JVQPL.js → chunk-C2SOA3KN.js} +3 -3
  27. package/dist/{chunk-JBSCMOLR.js → chunk-DBTI74IT.js} +6 -6
  28. package/dist/{chunk-X3PBQ4BK.js → chunk-DHWYAHAM.js} +1 -1
  29. package/dist/{chunk-RQO67SAO.js → chunk-DLXA2ZXJ.js} +2 -2
  30. package/dist/{chunk-KBPWC7NU.js → chunk-EZKISZ3Q.js} +1 -1
  31. package/dist/{chunk-6TRQLG3D.js → chunk-FCONFDZ4.js} +1 -1
  32. package/dist/{chunk-7UED4D5T.js → chunk-H6QL3FWC.js} +22 -22
  33. package/dist/{chunk-5HNXLP4W.js → chunk-HDSDOBWN.js} +1 -1
  34. package/dist/{chunk-QKHZF2LH.js → chunk-IGSAXSM7.js} +4 -4
  35. package/dist/{chunk-HE5PZAPS.js → chunk-ITP4OR7R.js} +4 -4
  36. package/dist/{chunk-QPZL2IYT.js → chunk-LBN67OZR.js} +1 -1
  37. package/dist/{chunk-R5OHONYU.js → chunk-LIK4T6CF.js} +6 -6
  38. package/dist/{chunk-RZ3PBNDV.js → chunk-LMTHFU5D.js} +7 -7
  39. package/dist/{chunk-5NR7N567.js → chunk-MJCJ62RZ.js} +4 -4
  40. package/dist/{chunk-PYTRZZ4V.js → chunk-NANQFFGO.js} +8 -8
  41. package/dist/{chunk-D4YV5TDV.js → chunk-NHJU2ZAL.js} +11 -0
  42. package/dist/{chunk-FEZIEEOP.js → chunk-O2H7JUEQ.js} +289 -334
  43. package/dist/{chunk-CE2P6TOV.js → chunk-O5RG7SKU.js} +3 -3
  44. package/dist/{chunk-7MYXH5LA.js → chunk-PF3PEX4Q.js} +1 -1
  45. package/dist/{chunk-C4NY6L7S.js → chunk-PM5WSDAD.js} +1 -1
  46. package/dist/{chunk-KUQRWV53.js → chunk-S3DRTWPX.js} +5 -5
  47. package/dist/{chunk-N67T4VY3.js → chunk-SBCWV4E4.js} +9 -9
  48. package/dist/{chunk-6GGDBXXP.js → chunk-T5MK3RUT.js} +3 -3
  49. package/dist/{chunk-OQHO62VA.js → chunk-V2IX5Q5L.js} +8 -8
  50. package/dist/{chunk-DTYOEHUP.js → chunk-VAUPAX3O.js} +4 -4
  51. package/dist/{chunk-BJZML4RT.js → chunk-WOJG25QZ.js} +9 -9
  52. package/dist/{chunk-QHJZSYKY.js → chunk-XALIC5SY.js} +2 -2
  53. package/dist/{chunk-VYDIA2UL.js → chunk-YC5CFKME.js} +2 -6
  54. package/dist/{chunk-LM7UE523.js → chunk-YLBJBBYX.js} +3 -3
  55. package/dist/{chunk-R5BGW4WR.js → chunk-YZQLXALE.js} +2 -2
  56. package/dist/cli/chat.js +35 -35
  57. package/dist/cli/check.js +5 -5
  58. package/dist/cli/plugins.js +14 -14
  59. package/dist/cli/snapshot-create.js +10 -10
  60. package/dist/cli/upgrade.js +7 -7
  61. package/dist/{db-FVCSDROR.js → db-6BD722UD.js} +8 -8
  62. package/dist/instrumentation.js +3 -3
  63. package/dist/nitro.js +7 -7
  64. package/dist/{oauth-callback-server-Z5PXTDOE.js → oauth-callback-server-P6AIT27Q.js} +31 -31
  65. package/dist/{runner-RHYU7OGV.js → runner-OKPDZOJC.js} +23 -23
  66. package/dist/{skills-QTN73DN5.js → skills-CQFX3V2I.js} +5 -5
  67. package/dist/spawn-GA5MADGU.js +42 -0
  68. package/dist/task-runner-7IIYO44C.js +36 -0
  69. package/dist/{validation-2ZK7GA6N.js → validation-STB4W433.js} +5 -5
  70. package/dist/version.js +1 -1
  71. package/dist/{work-7IBKSZRU.js → work-B7N5TEYI.js} +23 -23
  72. package/dist/worker-W6PBEHCA.js +24 -0
  73. package/package.json +5 -5
  74. package/dist/spawn-R56OWLUH.js +0 -42
  75. package/dist/task-runner-LLJZTLRP.js +0 -36
  76. package/dist/worker-RNVQVCO7.js +0 -24
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  AgentRunError,
6
6
  executeTurn
7
- } from "./chunk-CE2P6TOV.js";
7
+ } from "./chunk-O5RG7SKU.js";
8
8
  import {
9
9
  buildDeliveredTurnStatePatch,
10
10
  finalizeFailedTurnReplyWithEvent,
@@ -15,14 +15,14 @@ import {
15
15
  getTurnUserSlackMessageTs,
16
16
  persistAuthPauseTurnState,
17
17
  requireTurnFailureEventId
18
- } from "./chunk-KUQRWV53.js";
18
+ } from "./chunk-S3DRTWPX.js";
19
19
  import {
20
20
  resolveTurnSessionRouting,
21
21
  scheduleSessionCompletedPluginTasks
22
- } from "./chunk-BJZML4RT.js";
22
+ } from "./chunk-WOJG25QZ.js";
23
23
  import {
24
24
  getTurnLifecycle
25
- } from "./chunk-7PQMTME5.js";
25
+ } from "./chunk-5MMQLB2B.js";
26
26
  import {
27
27
  coerceThreadConversationState,
28
28
  configValueSchema,
@@ -30,11 +30,11 @@ import {
30
30
  getPersistedSandboxState,
31
31
  getPersistedThreadState,
32
32
  persistThreadStateById
33
- } from "./chunk-FE3Y4KES.js";
33
+ } from "./chunk-4USCVHQZ.js";
34
34
  import {
35
35
  buildSentryConversationUrl,
36
36
  deleteWebAuthorization
37
- } from "./chunk-5HNXLP4W.js";
37
+ } from "./chunk-HDSDOBWN.js";
38
38
  import {
39
39
  createUserTokenStore,
40
40
  deleteMcpAuthSession,
@@ -45,7 +45,7 @@ import {
45
45
  lookupSlackUserProfile,
46
46
  putMcpStoredOAuthCredentials,
47
47
  resolvePluginOAuthAccount
48
- } from "./chunk-OQHO62VA.js";
48
+ } from "./chunk-V2IX5Q5L.js";
49
49
  import {
50
50
  RetryableDeliveryError,
51
51
  addReactionToMessage,
@@ -59,7 +59,7 @@ import {
59
59
  removeReactionFromMessage,
60
60
  resolveBaseUrl,
61
61
  truncateStatusText
62
- } from "./chunk-R5OHONYU.js";
62
+ } from "./chunk-LIK4T6CF.js";
63
63
  import {
64
64
  CooperativeTurnYieldError,
65
65
  clearPendingAuth,
@@ -68,7 +68,7 @@ import {
68
68
  isCooperativeTurnYieldError,
69
69
  isPendingAuthLatestRequest,
70
70
  markTurnFailed
71
- } from "./chunk-VYDIA2UL.js";
71
+ } from "./chunk-YC5CFKME.js";
72
72
  import {
73
73
  abandonTurnRecord,
74
74
  buildConversationContext,
@@ -87,20 +87,20 @@ import {
87
87
  recordTurnSummary,
88
88
  saveTurnCheckpoint,
89
89
  turnHasReply
90
- } from "./chunk-RZ3PBNDV.js";
90
+ } from "./chunk-LMTHFU5D.js";
91
91
  import {
92
92
  parseSlackThreadId,
93
93
  readSlackRawMessageContext,
94
94
  resolveSlackChannelIdFromMessage,
95
95
  resolveSlackChannelIdFromThreadId
96
- } from "./chunk-6TRQLG3D.js";
96
+ } from "./chunk-FCONFDZ4.js";
97
97
  import {
98
98
  ensureConversationWake,
99
99
  requestConversationWork
100
- } from "./chunk-QKHZF2LH.js";
100
+ } from "./chunk-IGSAXSM7.js";
101
101
  import {
102
102
  getTurnRequestDeadline
103
- } from "./chunk-I4RH3KLJ.js";
103
+ } from "./chunk-BGSAFVJO.js";
104
104
  import {
105
105
  getVercelConversationWorkQueue
106
106
  } from "./chunk-DKIJ2RP5.js";
@@ -112,39 +112,39 @@ import {
112
112
  getSlackClient,
113
113
  isDmChannel,
114
114
  normalizeSlackConversationId
115
- } from "./chunk-PFQRZ4IB.js";
115
+ } from "./chunk-4UUKQB6I.js";
116
116
  import {
117
117
  getConversationStore,
118
118
  getSqlExecutor,
119
119
  requireSlackDestination,
120
120
  upsertIdentity,
121
121
  upsertLinkedIdentity
122
- } from "./chunk-KQ3GZGBK.js";
122
+ } from "./chunk-5GWV7SXF.js";
123
123
  import {
124
124
  acquireActiveLock,
125
125
  getStateAdapter
126
- } from "./chunk-7MYXH5LA.js";
126
+ } from "./chunk-PF3PEX4Q.js";
127
127
  import {
128
128
  botConfig,
129
129
  escapeXml,
130
130
  getChatConfig,
131
131
  getRuntimeMetadata,
132
132
  normalizeSlackEmojiName
133
- } from "./chunk-LMYRF6HX.js";
133
+ } from "./chunk-BR5GNDPS.js";
134
134
  import {
135
135
  defaultModelId
136
- } from "./chunk-D4YV5TDV.js";
136
+ } from "./chunk-NHJU2ZAL.js";
137
137
  import {
138
138
  discoverSkills
139
- } from "./chunk-RQO67SAO.js";
139
+ } from "./chunk-DLXA2ZXJ.js";
140
140
  import {
141
141
  pluginCatalogRuntime
142
- } from "./chunk-RKA22BQP.js";
142
+ } from "./chunk-2K26W3FP.js";
143
143
  import {
144
144
  buildOAuthTokenRequest,
145
145
  hasRequiredOAuthScope,
146
146
  parseOAuthTokenResponse
147
- } from "./chunk-X3PBQ4BK.js";
147
+ } from "./chunk-DHWYAHAM.js";
148
148
  import {
149
149
  createSlackResumeActor,
150
150
  isUserActor,
@@ -162,7 +162,7 @@ import {
162
162
  setTags,
163
163
  toOptionalString,
164
164
  withLogContext
165
- } from "./chunk-HUQOXMDG.js";
165
+ } from "./chunk-7ENMKNEK.js";
166
166
 
167
167
  // src/chat/slack/assistant-thread/status-render.ts
168
168
  var DEFAULT_STATUS_CONTEXTS = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getStateAdapter
3
- } from "./chunk-7MYXH5LA.js";
3
+ } from "./chunk-PF3PEX4Q.js";
4
4
  import {
5
5
  getClient
6
6
  } from "./chunk-PEQXYSSE.js";
@@ -8,14 +8,14 @@ import {
8
8
  getConversationStore,
9
9
  parseDestination,
10
10
  sameDestination
11
- } from "./chunk-KQ3GZGBK.js";
11
+ } from "./chunk-5GWV7SXF.js";
12
12
  import {
13
13
  getDefaultRedisStateAdapterFor,
14
14
  getStateAdapter
15
- } from "./chunk-7MYXH5LA.js";
15
+ } from "./chunk-PF3PEX4Q.js";
16
16
  import {
17
17
  getChatConfig
18
- } from "./chunk-LMYRF6HX.js";
18
+ } from "./chunk-BR5GNDPS.js";
19
19
  import {
20
20
  parseStoredSlackActor
21
21
  } from "./chunk-N7TMSOZH.js";
@@ -23,7 +23,7 @@ import {
23
23
  isRecord,
24
24
  toOptionalNumber,
25
25
  toOptionalString
26
- } from "./chunk-HUQOXMDG.js";
26
+ } from "./chunk-7ENMKNEK.js";
27
27
 
28
28
  // src/chat/task-execution/state.ts
29
29
  import { randomUUID } from "crypto";
@@ -19,23 +19,23 @@ import {
19
19
  releaseConversationWork,
20
20
  requestAnotherSlice,
21
21
  startConversationWork
22
- } from "./chunk-QKHZF2LH.js";
22
+ } from "./chunk-IGSAXSM7.js";
23
23
  import {
24
24
  getTurnRequestDeadline
25
- } from "./chunk-I4RH3KLJ.js";
25
+ } from "./chunk-BGSAFVJO.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-BR5GNDPS.js";
33
33
  import {
34
34
  logException,
35
35
  logInfo,
36
36
  logWarn,
37
37
  withLogContext
38
- } from "./chunk-HUQOXMDG.js";
38
+ } from "./chunk-7ENMKNEK.js";
39
39
 
40
40
  // src/chat/task-execution/worker.ts
41
41
  var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
@@ -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";
@@ -8,19 +8,19 @@ import {
8
8
  isDmChannel,
9
9
  normalizeSlackConversationId,
10
10
  withSlackRetries
11
- } from "./chunk-PFQRZ4IB.js";
11
+ } from "./chunk-4UUKQB6I.js";
12
12
  import {
13
13
  parseDestination
14
- } from "./chunk-KQ3GZGBK.js";
14
+ } from "./chunk-5GWV7SXF.js";
15
15
  import {
16
16
  getStateAdapter
17
- } from "./chunk-7MYXH5LA.js";
17
+ } from "./chunk-PF3PEX4Q.js";
18
18
  import {
19
19
  normalizeSlackEmojiName
20
- } from "./chunk-LMYRF6HX.js";
20
+ } from "./chunk-BR5GNDPS.js";
21
21
  import {
22
22
  pluginCatalogRuntime
23
- } from "./chunk-RKA22BQP.js";
23
+ } from "./chunk-2K26W3FP.js";
24
24
  import {
25
25
  parseSlackMessageTs,
26
26
  parseSlackUserId
@@ -29,7 +29,7 @@ import {
29
29
  isRecord,
30
30
  logInfo,
31
31
  logWarn
32
- } from "./chunk-HUQOXMDG.js";
32
+ } from "./chunk-7ENMKNEK.js";
33
33
 
34
34
  // src/chat/agent/types.ts
35
35
  var RetryableDeliveryError = class extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  authenticationUnlinkedEvent,
8
8
  fallbackShortTitle,
9
9
  generateShortTitle
10
- } from "./chunk-R5BGW4WR.js";
10
+ } from "./chunk-YZQLXALE.js";
11
11
  import {
12
12
  bindProviderConversation,
13
13
  createSqlConversationEventStore,
@@ -16,31 +16,31 @@ import {
16
16
  getSqlExecutor,
17
17
  sanitizePostgresJson,
18
18
  withConversationEventLock
19
- } from "./chunk-KQ3GZGBK.js";
19
+ } from "./chunk-5GWV7SXF.js";
20
20
  import {
21
21
  SANDBOX_REPOS_ROOT,
22
22
  SANDBOX_WORKSPACE_ROOT,
23
23
  sleep
24
- } from "./chunk-LM7UE523.js";
24
+ } from "./chunk-YLBJBBYX.js";
25
25
  import {
26
26
  MUTATION_LOCK_TTL_MS,
27
27
  fenceLock,
28
28
  getStateAdapter,
29
29
  withLock
30
- } from "./chunk-7MYXH5LA.js";
30
+ } from "./chunk-PF3PEX4Q.js";
31
31
  import {
32
32
  agentHistoryItemSchema,
33
33
  contextProvenance,
34
34
  instructionActors,
35
35
  instructionProvenanceFor
36
- } from "./chunk-GFBR4S3Q.js";
36
+ } from "./chunk-7NL7T6VU.js";
37
37
  import {
38
38
  botConfig,
39
39
  completeText,
40
40
  escapeXml,
41
41
  resolveGatewayModel,
42
42
  unwrapCurrentInstruction
43
- } from "./chunk-LMYRF6HX.js";
43
+ } from "./chunk-BR5GNDPS.js";
44
44
  import {
45
45
  parseSlackMessageTs,
46
46
  toStoredSlackActor
@@ -51,7 +51,7 @@ import {
51
51
  logException,
52
52
  logWarn,
53
53
  setSpanAttributes
54
- } from "./chunk-HUQOXMDG.js";
54
+ } from "./chunk-7ENMKNEK.js";
55
55
 
56
56
  // src/chat/turn-context-tag.ts
57
57
  var TURN_CONTEXT_TAG = "runtime-turn-context";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  agentTurnCostUsd,
3
3
  agentTurnTotalTokens
4
- } from "./chunk-R5BGW4WR.js";
4
+ } from "./chunk-YZQLXALE.js";
5
5
  import {
6
6
  getDb
7
- } from "./chunk-KQ3GZGBK.js";
7
+ } from "./chunk-5GWV7SXF.js";
8
8
  import {
9
9
  juniorConversations,
10
10
  juniorTaskExecutions
11
- } from "./chunk-FPQPYJEG.js";
11
+ } from "./chunk-6ZQ3CE6X.js";
12
12
  import {
13
13
  logWarn
14
- } from "./chunk-HUQOXMDG.js";
14
+ } from "./chunk-7ENMKNEK.js";
15
15
 
16
16
  // src/chat/tasks/execution-stats.ts
17
17
  import {
@@ -3,39 +3,39 @@ import {
3
3
  } from "./chunk-RC745GGZ.js";
4
4
  import {
5
5
  parseSlackThreadId
6
- } from "./chunk-6TRQLG3D.js";
6
+ } from "./chunk-FCONFDZ4.js";
7
7
  import {
8
8
  appendAndEnqueueExclusiveInboundMessage,
9
9
  appendAndEnqueueInboundMessage
10
- } from "./chunk-QKHZF2LH.js";
10
+ } from "./chunk-IGSAXSM7.js";
11
11
  import {
12
12
  buildDeterministicTurnId
13
13
  } from "./chunk-DA2KGZZI.js";
14
14
  import {
15
15
  normalizeSlackConversationId
16
- } from "./chunk-PFQRZ4IB.js";
16
+ } from "./chunk-4UUKQB6I.js";
17
17
  import {
18
18
  getConversationStore,
19
19
  getDb
20
- } from "./chunk-KQ3GZGBK.js";
20
+ } from "./chunk-5GWV7SXF.js";
21
21
  import {
22
22
  juniorConversationParticipants,
23
23
  juniorConversations,
24
24
  juniorIdentities,
25
25
  juniorUsers
26
- } from "./chunk-FPQPYJEG.js";
26
+ } from "./chunk-6ZQ3CE6X.js";
27
27
  import {
28
28
  juniorDestinations
29
29
  } from "./chunk-VFUK3X5B.js";
30
30
  import {
31
31
  getSlackBotToken
32
- } from "./chunk-LMYRF6HX.js";
32
+ } from "./chunk-BR5GNDPS.js";
33
33
  import {
34
34
  canExposeConversationPayload
35
- } from "./chunk-KBPWC7NU.js";
35
+ } from "./chunk-EZKISZ3Q.js";
36
36
  import {
37
37
  logWarn
38
- } from "./chunk-HUQOXMDG.js";
38
+ } from "./chunk-7ENMKNEK.js";
39
39
 
40
40
  // src/handlers/health.ts
41
41
  function readHealthReport() {
@@ -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,