@sentry/junior 0.131.0 → 0.132.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 (56) hide show
  1. package/dist/{agent-hooks-M5V454P5.js → agent-hooks-ONXOJDR6.js} +8 -8
  2. package/dist/api/conversations/list.d.ts +13 -2
  3. package/dist/api/schema/task.d.ts +0 -3
  4. package/dist/api/schema.js +1 -1
  5. package/dist/api.js +23 -22
  6. package/dist/app.js +21 -21
  7. package/dist/{catalog-runtime-PI2IFWZ5.js → catalog-runtime-BATAY4R7.js} +5 -5
  8. package/dist/chat/conversations/location.d.ts +10 -0
  9. package/dist/chat/conversations/sql/location.d.ts +9 -0
  10. package/dist/chat/conversations/store.d.ts +2 -0
  11. package/dist/chat/scheduled-tasks/tool-support.d.ts +2 -5
  12. package/dist/chat/scheduled-tasks/tools/create.d.ts +2 -2
  13. package/dist/chat/scheduled-tasks/tools/delete.d.ts +2 -2
  14. package/dist/chat/scheduled-tasks/tools/list.d.ts +2 -2
  15. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +2 -2
  16. package/dist/chat/scheduled-tasks/tools/update.d.ts +3 -3
  17. package/dist/chat/scheduled-tasks/types.d.ts +1 -1
  18. package/dist/{chunk-SVX4JDOR.js → chunk-2425Q4OR.js} +1 -1
  19. package/dist/{chunk-MLIJGLW5.js → chunk-ALDPUN3Z.js} +4 -4
  20. package/dist/{chunk-XXGCQCFJ.js → chunk-AW5Z3T7V.js} +4 -4
  21. package/dist/{chunk-APUL3Y63.js → chunk-B7IY6SVJ.js} +1 -1
  22. package/dist/{chunk-J4I2GVGH.js → chunk-BKE47OOW.js} +2 -2
  23. package/dist/{chunk-JKHK3LM2.js → chunk-G3WYA2RS.js} +1 -1
  24. package/dist/{chunk-HSPYTFMD.js → chunk-GOEZU33G.js} +1 -1
  25. package/dist/{chunk-HZ5EVSPV.js → chunk-GPXVDJML.js} +4 -4
  26. package/dist/{chunk-VMPL77IK.js → chunk-GTKNPQNN.js} +12 -12
  27. package/dist/{chunk-KWYCUXJX.js → chunk-ISNRPCPG.js} +1 -1
  28. package/dist/{chunk-UYYSD255.js → chunk-JYQAE2ZU.js} +1 -1
  29. package/dist/{chunk-ZMIO64MA.js → chunk-NNHUGGO4.js} +2 -2
  30. package/dist/{chunk-D6ZMP3FC.js → chunk-O2UXPUVQ.js} +6 -6
  31. package/dist/{chunk-XMDY52DJ.js → chunk-ODIP5CEM.js} +1 -1
  32. package/dist/{chunk-BVKP37NE.js → chunk-QVEXYYFM.js} +1 -1
  33. package/dist/{chunk-DRFI6CW3.js → chunk-SKWIIUS7.js} +7 -7
  34. package/dist/{chunk-NGJEC4MF.js → chunk-U76PS7AT.js} +2 -2
  35. package/dist/{chunk-7Y2OKB5K.js → chunk-V44FFBO3.js} +1 -1
  36. package/dist/{chunk-TD2A27ET.js → chunk-WEJIS7OC.js} +1 -1
  37. package/dist/{chunk-5ONXE2GF.js → chunk-WYQP7QSB.js} +206 -176
  38. package/dist/{chunk-7X62XOC4.js → chunk-XN656LB4.js} +53 -18
  39. package/dist/{chunk-TRKWWIB3.js → chunk-ZMV2YBT6.js} +21 -21
  40. package/dist/cli/chat.js +23 -23
  41. package/dist/cli/check.js +6 -6
  42. package/dist/cli/plugins.js +11 -11
  43. package/dist/cli/snapshot-create.js +9 -9
  44. package/dist/cli/upgrade.js +6 -6
  45. package/dist/{db-5P6K3ZCM.js → db-QFFZACXF.js} +6 -6
  46. package/dist/instrumentation.js +4 -4
  47. package/dist/nitro.js +2 -2
  48. package/dist/{oauth-callback-server-RIMCKQZX.js → oauth-callback-server-5WXLD533.js} +16 -16
  49. package/dist/{runner-CAD3BVML.js → runner-Y3LTUNAA.js} +10 -10
  50. package/dist/{skills-WVPCTBUT.js → skills-7M5C24GM.js} +6 -6
  51. package/dist/{validation-GLEXIFFI.js → validation-MRILMYDI.js} +6 -6
  52. package/dist/version.js +1 -1
  53. package/migrations/0017_drop_paused_scheduled_tasks.sql +19 -0
  54. package/migrations/meta/0017_snapshot.json +1666 -0
  55. package/migrations/meta/_journal.json +7 -0
  56. package/package.json +4 -4
@@ -2,18 +2,18 @@ import {
2
2
  SANDBOX_WORKSPACE_ROOT,
3
3
  getStateAdapter,
4
4
  sleep
5
- } from "./chunk-XMDY52DJ.js";
5
+ } from "./chunk-ODIP5CEM.js";
6
6
  import {
7
7
  toOptionalTrimmed
8
- } from "./chunk-ZMIO64MA.js";
8
+ } from "./chunk-NNHUGGO4.js";
9
9
  import {
10
10
  pluginCatalogRuntime
11
- } from "./chunk-APUL3Y63.js";
11
+ } from "./chunk-B7IY6SVJ.js";
12
12
  import {
13
13
  setSpanAttributes,
14
14
  setSpanStatus,
15
15
  withSpan
16
- } from "./chunk-HSPYTFMD.js";
16
+ } from "./chunk-GOEZU33G.js";
17
17
 
18
18
  // src/chat/sandbox/resources.ts
19
19
  var configuredResources;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPluginCatalogRuntime
3
- } from "./chunk-7Y2OKB5K.js";
3
+ } from "./chunk-V44FFBO3.js";
4
4
 
5
5
  // src/chat/plugins/catalog-runtime.ts
6
6
  var pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-APUL3Y63.js";
3
+ } from "./chunk-B7IY6SVJ.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-HSPYTFMD.js";
6
+ } from "./chunk-GOEZU33G.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-F3B2YJ76.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-HSPYTFMD.js";
8
+ } from "./chunk-GOEZU33G.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6GWA276C.js";
10
10
  import {
11
11
  getDeploymentTelemetryAttributes
12
- } from "./chunk-TD2A27ET.js";
12
+ } from "./chunk-WEJIS7OC.js";
13
13
 
14
14
  // src/chat/logging.ts
15
15
  import path from "path";
@@ -16,17 +16,17 @@ import {
16
16
  instructionProvenanceFor,
17
17
  sanitizePostgresJson,
18
18
  withConversationEventLock
19
- } from "./chunk-5ONXE2GF.js";
19
+ } from "./chunk-WYQP7QSB.js";
20
20
  import {
21
21
  getStateAdapter,
22
22
  sleep
23
- } from "./chunk-XMDY52DJ.js";
23
+ } from "./chunk-ODIP5CEM.js";
24
24
  import {
25
25
  botConfig,
26
26
  escapeXml,
27
27
  resolveGatewayModel,
28
28
  unwrapCurrentInstruction
29
- } from "./chunk-ZMIO64MA.js";
29
+ } from "./chunk-NNHUGGO4.js";
30
30
  import {
31
31
  toStoredSlackActor
32
32
  } from "./chunk-HZF5P5UN.js";
@@ -41,7 +41,7 @@ import {
41
41
  setSpanAttributes,
42
42
  toOptionalNumber,
43
43
  toOptionalString
44
- } from "./chunk-HSPYTFMD.js";
44
+ } from "./chunk-GOEZU33G.js";
45
45
 
46
46
  // src/chat/turn-context-tag.ts
47
47
  var TURN_CONTEXT_TAG = "runtime-turn-context";
@@ -13,7 +13,7 @@ import {
13
13
  persistAuthPauseTurnState,
14
14
  requireTurnFailureEventId,
15
15
  scheduleSessionCompletedPluginTasks
16
- } from "./chunk-D6ZMP3FC.js";
16
+ } from "./chunk-O2UXPUVQ.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-DRFI6CW3.js";
43
+ } from "./chunk-SKWIIUS7.js";
44
44
  import {
45
45
  JUNIOR_THREAD_STATE_TTL_MS,
46
46
  TurnSliceLimitExceededError,
@@ -73,13 +73,13 @@ import {
73
73
  recordDeliveredAssistantMessage,
74
74
  turnHasReply,
75
75
  updateConversationStats
76
- } from "./chunk-HZ5EVSPV.js";
76
+ } from "./chunk-GPXVDJML.js";
77
77
  import {
78
78
  parseSlackThreadId,
79
79
  readSlackRawMessageContext,
80
80
  resolveSlackChannelIdFromMessage,
81
81
  resolveSlackChannelIdFromThreadId
82
- } from "./chunk-JKHK3LM2.js";
82
+ } from "./chunk-G3WYA2RS.js";
83
83
  import {
84
84
  SlackActionError,
85
85
  getDashboardConversationLink,
@@ -88,19 +88,19 @@ import {
88
88
  getSlackClient,
89
89
  isDmChannel,
90
90
  normalizeSlackConversationId
91
- } from "./chunk-MLIJGLW5.js";
91
+ } from "./chunk-ALDPUN3Z.js";
92
92
  import {
93
93
  getConversationEventStore,
94
94
  getConversationStore,
95
95
  parseDestination,
96
96
  requireSlackDestination,
97
97
  sameDestination
98
- } from "./chunk-5ONXE2GF.js";
98
+ } from "./chunk-WYQP7QSB.js";
99
99
  import {
100
100
  acquireActiveLock,
101
101
  getDefaultRedisStateAdapterFor,
102
102
  getStateAdapter
103
- } from "./chunk-XMDY52DJ.js";
103
+ } from "./chunk-ODIP5CEM.js";
104
104
  import {
105
105
  FUNCTION_TIMEOUT_BUFFER_SECONDS,
106
106
  botConfig,
@@ -109,18 +109,18 @@ import {
109
109
  getRuntimeMetadata,
110
110
  normalizeSlackEmojiName,
111
111
  standardModelId
112
- } from "./chunk-ZMIO64MA.js";
112
+ } from "./chunk-NNHUGGO4.js";
113
113
  import {
114
114
  discoverSkills
115
- } from "./chunk-J4I2GVGH.js";
115
+ } from "./chunk-BKE47OOW.js";
116
116
  import {
117
117
  pluginCatalogRuntime
118
- } from "./chunk-APUL3Y63.js";
118
+ } from "./chunk-B7IY6SVJ.js";
119
119
  import {
120
120
  buildOAuthTokenRequest,
121
121
  hasRequiredOAuthScope,
122
122
  parseOAuthTokenResponse
123
- } from "./chunk-7Y2OKB5K.js";
123
+ } from "./chunk-V44FFBO3.js";
124
124
  import {
125
125
  createSlackResumeActor,
126
126
  isUserActor,
@@ -139,7 +139,7 @@ import {
139
139
  toOptionalNumber,
140
140
  toOptionalString,
141
141
  withLogContext
142
- } from "./chunk-HSPYTFMD.js";
142
+ } from "./chunk-GOEZU33G.js";
143
143
  import {
144
144
  homeDir
145
145
  } from "./chunk-H4HBKISO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-HSPYTFMD.js";
3
+ } from "./chunk-GOEZU33G.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
  pluginCatalogRuntime
3
- } from "./chunk-APUL3Y63.js";
3
+ } from "./chunk-B7IY6SVJ.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";
@@ -3,7 +3,7 @@ import {
3
3
  toCanonicalInputMessage,
4
4
  toCanonicalOutputMessage,
5
5
  toGenAiMessagesTraceAttributes
6
- } from "./chunk-KWYCUXJX.js";
6
+ } from "./chunk-ISNRPCPG.js";
7
7
  import {
8
8
  extractGenAiUsageAttributes,
9
9
  logException,
@@ -11,7 +11,7 @@ import {
11
11
  normalizeGenAiFinishReason,
12
12
  serializeGenAiAttribute,
13
13
  withSpan
14
- } from "./chunk-HSPYTFMD.js";
14
+ } from "./chunk-GOEZU33G.js";
15
15
 
16
16
  // src/chat/config.ts
17
17
  import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
@@ -22,7 +22,7 @@ import {
22
22
  persistThreadStateById,
23
23
  stripRuntimeTurnContext,
24
24
  updateConversationStats
25
- } from "./chunk-HZ5EVSPV.js";
25
+ } from "./chunk-GPXVDJML.js";
26
26
  import {
27
27
  createPluginConversationEvents,
28
28
  createPluginEmbedder,
@@ -30,26 +30,26 @@ import {
30
30
  createPluginModel,
31
31
  createPluginState,
32
32
  getPlugins
33
- } from "./chunk-MLIJGLW5.js";
33
+ } from "./chunk-ALDPUN3Z.js";
34
34
  import {
35
35
  getDb,
36
36
  sameActorIdentity
37
- } from "./chunk-5ONXE2GF.js";
37
+ } from "./chunk-WYQP7QSB.js";
38
38
  import {
39
39
  getStateAdapter
40
- } from "./chunk-XMDY52DJ.js";
40
+ } from "./chunk-ODIP5CEM.js";
41
41
  import {
42
42
  ProviderError,
43
43
  findProviderError,
44
44
  getProviderErrorAttributes,
45
45
  getProviderErrorUserMessage
46
- } from "./chunk-ZMIO64MA.js";
46
+ } from "./chunk-NNHUGGO4.js";
47
47
  import {
48
48
  parseSlackMessageTs
49
49
  } from "./chunk-F3B2YJ76.js";
50
50
  import {
51
51
  buildTurnFailureResponse
52
- } from "./chunk-HSPYTFMD.js";
52
+ } from "./chunk-GOEZU33G.js";
53
53
 
54
54
  // src/chat/runtime/delivered-turn-state.ts
55
55
  function buildDeliveredTurnStatePatch(args) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-ZMIO64MA.js";
3
+ } from "./chunk-NNHUGGO4.js";
4
4
 
5
5
  // src/chat/state/adapter.ts
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -610,7 +610,7 @@ var scheduledTaskSummarySchema = taskSummaryBaseSchema.extend({
610
610
  kind: z7.literal("scheduled"),
611
611
  nextRunAt: z7.string().datetime().optional(),
612
612
  schedule: z7.string().min(1),
613
- status: z7.enum(["active", "paused", "blocked"])
613
+ status: z7.enum(["active", "blocked"])
614
614
  }).strict();
615
615
  var eventTaskSummarySchema = taskSummaryBaseSchema.extend({
616
616
  events: z7.array(z7.string().min(1)).min(1),
@@ -6,25 +6,25 @@ import {
6
6
  isDmChannel,
7
7
  normalizeSlackConversationId,
8
8
  withSlackRetries
9
- } from "./chunk-MLIJGLW5.js";
9
+ } from "./chunk-ALDPUN3Z.js";
10
10
  import {
11
11
  getDb,
12
12
  parseDestination
13
- } from "./chunk-5ONXE2GF.js";
13
+ } from "./chunk-WYQP7QSB.js";
14
14
  import {
15
15
  acquireActiveLock,
16
16
  getStateAdapter,
17
17
  sleep
18
- } from "./chunk-XMDY52DJ.js";
18
+ } from "./chunk-ODIP5CEM.js";
19
19
  import {
20
20
  normalizeSlackEmojiName
21
- } from "./chunk-ZMIO64MA.js";
21
+ } from "./chunk-NNHUGGO4.js";
22
22
  import {
23
23
  pluginCatalogRuntime
24
- } from "./chunk-APUL3Y63.js";
24
+ } from "./chunk-B7IY6SVJ.js";
25
25
  import {
26
26
  fetchWithBoundedOAuthErrorBodies
27
- } from "./chunk-7Y2OKB5K.js";
27
+ } from "./chunk-V44FFBO3.js";
28
28
  import {
29
29
  parseSlackMessageTs,
30
30
  parseSlackUserId
@@ -33,7 +33,7 @@ import {
33
33
  isRecord,
34
34
  logInfo,
35
35
  logWarn
36
- } from "./chunk-HSPYTFMD.js";
36
+ } from "./chunk-GOEZU33G.js";
37
37
 
38
38
  // src/chat/capabilities/router.ts
39
39
  var ProviderCredentialRouter = class {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-UTL3MHPC.js";
4
4
  import {
5
5
  parseSlackThreadId
6
- } from "./chunk-JKHK3LM2.js";
6
+ } from "./chunk-G3WYA2RS.js";
7
7
  import {
8
8
  normalizeSlackConversationId
9
- } from "./chunk-MLIJGLW5.js";
9
+ } from "./chunk-ALDPUN3Z.js";
10
10
 
11
11
  // src/handlers/health.ts
12
12
  function readHealthReport() {
@@ -5,7 +5,7 @@ import {
5
5
  logInfo,
6
6
  logWarn,
7
7
  setSpanAttributes
8
- } from "./chunk-HSPYTFMD.js";
8
+ } from "./chunk-GOEZU33G.js";
9
9
  import {
10
10
  discoverInstalledPluginPackageContent,
11
11
  normalizePluginPackageNames
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JUNIOR_VERSION
3
- } from "./chunk-SVX4JDOR.js";
3
+ } from "./chunk-2425Q4OR.js";
4
4
 
5
5
  // src/deployment.ts
6
6
  var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";