@sentry/junior 0.144.0 → 0.146.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 (104) hide show
  1. package/dist/{agent-hooks-GCUTGKY3.js → agent-hooks-SLJADYE5.js} +10 -10
  2. package/dist/api/conversations/detail.d.ts +1 -0
  3. package/dist/api/schema/conversation.d.ts +2 -0
  4. package/dist/api/schema.js +1 -1
  5. package/dist/api.js +40 -22
  6. package/dist/app.js +400 -461
  7. package/dist/{catalog-runtime-DWVYKDC6.js → catalog-runtime-RQIMSDPR.js} +5 -5
  8. package/dist/chat/agent/request.d.ts +1 -1
  9. package/dist/chat/agent/resume.d.ts +6 -18
  10. package/dist/chat/agent/skills.d.ts +0 -1
  11. package/dist/chat/agent/tools.d.ts +1 -2
  12. package/dist/chat/agent-dispatch/types.d.ts +1 -1
  13. package/dist/chat/app/conversation-work.d.ts +24 -0
  14. package/dist/chat/conversations/message-search.d.ts +32 -0
  15. package/dist/chat/conversations/projection.d.ts +11 -3
  16. package/dist/chat/conversations/sql/message-search.d.ts +4 -0
  17. package/dist/chat/conversations/store.d.ts +1 -1
  18. package/dist/chat/conversations/tool-source.d.ts +5 -0
  19. package/dist/chat/db.d.ts +2 -2
  20. package/dist/chat/runtime/agent-run-outcome.d.ts +1 -1
  21. package/dist/chat/runtime/reply-executor.d.ts +5 -5
  22. package/dist/chat/runtime/slack-resume.d.ts +12 -4
  23. package/dist/chat/slack/message/attachments.d.ts +2 -0
  24. package/dist/chat/slack/message/blocks.d.ts +2 -0
  25. package/dist/chat/slack/message/content.d.ts +18 -0
  26. package/dist/chat/slack/message/identity.d.ts +7 -0
  27. package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +21 -14
  28. package/dist/chat/slack/tools/user-lookup.d.ts +2 -1
  29. package/dist/chat/state/locks.d.ts +28 -0
  30. package/dist/chat/task-execution/checkpoint.d.ts +84 -0
  31. package/dist/chat/task-execution/paused-turn.d.ts +29 -0
  32. package/dist/chat/task-execution/queue-signing.d.ts +1 -0
  33. package/dist/chat/task-execution/queue.d.ts +7 -1
  34. package/dist/chat/task-execution/slack-work.d.ts +1 -1
  35. package/dist/chat/task-execution/state.d.ts +4 -4
  36. package/dist/chat/task-execution/store.d.ts +2 -2
  37. package/dist/chat/task-execution/turn-cursor-keys.d.ts +6 -0
  38. package/dist/chat/{state/turn-session.d.ts → task-execution/turn-cursor.d.ts} +52 -51
  39. package/dist/chat/task-execution/turn-wake.d.ts +29 -0
  40. package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +3 -3
  41. package/dist/chat/tools/types.d.ts +1 -1
  42. package/dist/{chunk-SBZP2J5Q.js → chunk-37EVZP66.js} +48 -35
  43. package/dist/{chunk-A67GZN73.js → chunk-37JJDS4H.js} +1 -1
  44. package/dist/{chunk-BBCWYXHB.js → chunk-47OSH2ZO.js} +7 -7
  45. package/dist/{chunk-4X5KM7Z6.js → chunk-AISNSNDV.js} +14 -14
  46. package/dist/{chunk-RIFJUJSI.js → chunk-B63BF443.js} +1 -1
  47. package/dist/{chunk-SSDTQDYQ.js → chunk-BLETMLRX.js} +566 -268
  48. package/dist/{chunk-I44JB7HQ.js → chunk-F7REGDKO.js} +1 -1
  49. package/dist/{chunk-DVO5VKYQ.js → chunk-FEKQHPVA.js} +5 -5
  50. package/dist/{chunk-SUK7NC5A.js → chunk-FGHADGIC.js} +2 -2
  51. package/dist/{chunk-7KAW7UF4.js → chunk-FXDDDSPL.js} +4 -4
  52. package/dist/{chunk-BEGGFVFR.js → chunk-GDQEU4I7.js} +414 -542
  53. package/dist/{chunk-UDQMY6RS.js → chunk-GYEKOX7N.js} +43 -1
  54. package/dist/{chunk-W7JFV5SB.js → chunk-H6U2U3EP.js} +14 -17
  55. package/dist/{chunk-WTX2RFJG.js → chunk-HQE6EJS5.js} +1 -1
  56. package/dist/{chunk-IUFM5JWV.js → chunk-JAL3CH4G.js} +3 -0
  57. package/dist/{chunk-E7HCWOHG.js → chunk-JLMVCNXL.js} +2 -1
  58. package/dist/{chunk-PELZ2ZSY.js → chunk-JUA6VU2Z.js} +33 -63
  59. package/dist/{chunk-SHEEZSLY.js → chunk-LVW7BLLT.js} +2 -2
  60. package/dist/{chunk-GKA74DRA.js → chunk-M6ZWP4RI.js} +1 -1
  61. package/dist/{chunk-HNO2E5WB.js → chunk-MCFIXAV5.js} +1 -1
  62. package/dist/{chunk-3GU4PWA3.js → chunk-MKRIZ4VG.js} +29 -30
  63. package/dist/{chunk-QUZJDAQQ.js → chunk-OFPYOC3M.js} +93 -90
  64. package/dist/{chunk-ZF3N3JD6.js → chunk-PB222GIA.js} +1 -1
  65. package/dist/{chunk-PKH6762I.js → chunk-PH4Q3A6W.js} +1 -1
  66. package/dist/{chunk-STFCL3K4.js → chunk-QG7OOKIN.js} +1 -1
  67. package/dist/{chunk-WSOLZJJS.js → chunk-QSXZ42KX.js} +3 -3
  68. package/dist/{chunk-44RJWAND.js → chunk-SCGVWUZX.js} +6 -6
  69. package/dist/{chunk-CNTWB2SM.js → chunk-T5GXFFLA.js} +1 -1
  70. package/dist/{chunk-LDWNYCZ6.js → chunk-TCEJ7XXM.js} +1 -1
  71. package/dist/{chunk-QE3TICD4.js → chunk-V6SRLKUB.js} +2 -2
  72. package/dist/{chunk-54JMYQYS.js → chunk-W65V465O.js} +2 -2
  73. package/dist/{chunk-KCBZSJRU.js → chunk-WR76IVA5.js} +5 -2
  74. package/dist/{chunk-ZZCTGAIT.js → chunk-X22KCSCO.js} +4 -4
  75. package/dist/{chunk-HD6BHR25.js → chunk-X2WMBTS3.js} +32 -34
  76. package/dist/{chunk-KQBXT5B7.js → chunk-ZDGHGY74.js} +6 -6
  77. package/dist/cli/chat.js +32 -32
  78. package/dist/cli/check.js +6 -6
  79. package/dist/cli/plugins.js +13 -13
  80. package/dist/cli/snapshot-create.js +9 -9
  81. package/dist/cli/upgrade.js +7 -7
  82. package/dist/{db-EFLHTBU6.js → db-WWOMXWTT.js} +9 -9
  83. package/dist/instrumentation.js +4 -4
  84. package/dist/nitro.js +4 -4
  85. package/dist/{oauth-callback-server-RO3IQKWM.js → oauth-callback-server-A6ZZX74U.js} +25 -25
  86. package/dist/{runner-LOWW7JKA.js → runner-KSGB2UAV.js} +19 -20
  87. package/dist/{skills-ZLMUG7AE.js → skills-26QPWKVS.js} +6 -6
  88. package/dist/spawn-5LAJXZ2P.js +39 -0
  89. package/dist/{validation-MAKEZNTS.js → validation-OPSRGFGH.js} +6 -6
  90. package/dist/version.js +1 -1
  91. package/dist/{work-5OAGC3I4.js → work-VMSW7STJ.js} +17 -16
  92. package/dist/worker-2JNFB7C7.js +24 -0
  93. package/package.json +5 -5
  94. package/dist/chat/agent/session.d.ts +0 -19
  95. package/dist/chat/conversations/search.d.ts +0 -24
  96. package/dist/chat/conversations/sql/search.d.ts +0 -4
  97. package/dist/chat/runtime/agent-continue-runner.d.ts +0 -37
  98. package/dist/chat/services/agent-continue.d.ts +0 -29
  99. package/dist/chat/services/turn-session-record.d.ts +0 -164
  100. package/dist/chat/slack/legacy-attachments.d.ts +0 -4
  101. package/dist/chat/slack/message.d.ts +0 -12
  102. package/dist/chat/state/turn-session-keys.d.ts +0 -6
  103. package/dist/spawn-R3LUV6RF.js +0 -38
  104. package/dist/worker-KTGGRTTP.js +0 -24
@@ -16,22 +16,22 @@ import {
16
16
  recordAttemptFailure,
17
17
  recordConversationRetry,
18
18
  releaseConversationWork,
19
- requestConversationContinuation,
19
+ requestAnotherSlice,
20
20
  startConversationWork
21
- } from "./chunk-HD6BHR25.js";
21
+ } from "./chunk-X2WMBTS3.js";
22
22
  import {
23
23
  ConversationQueueMessageRejectedError
24
- } from "./chunk-IUFM5JWV.js";
24
+ } from "./chunk-JAL3CH4G.js";
25
25
  import {
26
26
  getChatConfig,
27
27
  isProviderRetryError
28
- } from "./chunk-3GU4PWA3.js";
28
+ } from "./chunk-MKRIZ4VG.js";
29
29
  import {
30
30
  logException,
31
31
  logInfo,
32
32
  logWarn,
33
33
  withLogContext
34
- } from "./chunk-RIFJUJSI.js";
34
+ } from "./chunk-B63BF443.js";
35
35
 
36
36
  // src/chat/task-execution/worker.ts
37
37
  var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
@@ -59,7 +59,7 @@ function selectAttemptMessages(work) {
59
59
  if (interrupts.length > 0) {
60
60
  return selectContiguousActorBatch(interrupts);
61
61
  }
62
- return work.execution.status === "awaiting_resume" ? [] : selectContiguousActorBatch(messages);
62
+ return work.execution.status === "paused" ? [] : selectContiguousActorBatch(messages);
63
63
  }
64
64
  function nudgeIdempotencyKey(reason, conversationId, nowMs) {
65
65
  return `${reason}:${conversationId}:${nowMs}`;
@@ -91,7 +91,7 @@ async function requestLostLeaseRecovery(args) {
91
91
  );
92
92
  return;
93
93
  }
94
- const resumeRequested = await requestConversationContinuation({
94
+ const sliceRequested = await requestAnotherSlice({
95
95
  conversationId: args.conversationId,
96
96
  destination: args.destination,
97
97
  leaseToken: args.leaseToken,
@@ -99,7 +99,7 @@ async function requestLostLeaseRecovery(args) {
99
99
  nowMs: args.nowMs,
100
100
  state: args.options.state
101
101
  });
102
- if (!resumeRequested) {
102
+ if (!sliceRequested) {
103
103
  return;
104
104
  }
105
105
  const released = await releaseConversationWork({
@@ -343,7 +343,7 @@ async function processConversationWorkInContext(message, options) {
343
343
  });
344
344
  return { status: "lost_lease" };
345
345
  }
346
- const resumePending = leasedWork.execution.status === "awaiting_resume";
346
+ const resumePending = leasedWork.execution.status === "paused";
347
347
  const attemptMessages = selectAttemptMessages(leasedWork);
348
348
  attemptStartMessageIds = new Set(
349
349
  leasedWork.messages.map((message2) => message2.inboundMessageId)
@@ -433,7 +433,7 @@ async function processConversationWorkInContext(message, options) {
433
433
  return { status: "lost_lease" };
434
434
  }
435
435
  if (result.status === "yielded") {
436
- const resumeRequested = await requestConversationContinuation({
436
+ const sliceRequested = await requestAnotherSlice({
437
437
  conversationId,
438
438
  destination,
439
439
  leaseToken: lease.leaseToken,
@@ -441,7 +441,7 @@ async function processConversationWorkInContext(message, options) {
441
441
  nowMs: now(options),
442
442
  state: options.state
443
443
  });
444
- if (!resumeRequested) {
444
+ if (!sliceRequested) {
445
445
  return { status: "lost_lease" };
446
446
  }
447
447
  return await yieldWork();
@@ -514,7 +514,7 @@ async function processConversationWorkInContext(message, options) {
514
514
  if (!next || next.lease?.leaseToken !== lease.leaseToken) {
515
515
  return { status: "lost_lease" };
516
516
  }
517
- if (next.execution.status !== "awaiting_resume" && countPendingConversationMessages(next) === 0) {
517
+ if (next.execution.status !== "paused" && countPendingConversationMessages(next) === 0) {
518
518
  break;
519
519
  }
520
520
  }
@@ -613,7 +613,7 @@ async function processConversationWorkInContext(message, options) {
613
613
  recoveryRecorded = true;
614
614
  return { status: "failed" };
615
615
  }
616
- const resumeRequested = await requestConversationContinuation({
616
+ const sliceRequested = await requestAnotherSlice({
617
617
  conversationId,
618
618
  destination,
619
619
  leaseToken: lease.leaseToken,
@@ -621,7 +621,7 @@ async function processConversationWorkInContext(message, options) {
621
621
  nowMs: errorNowMs,
622
622
  state: options.state
623
623
  });
624
- if (resumeRequested) {
624
+ if (sliceRequested) {
625
625
  await ensureConversationWake({
626
626
  conversationId,
627
627
  conversationStore: options.conversationStore,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6GWA276C.js";
10
10
  import {
11
11
  getDeploymentTelemetryAttributes
12
- } from "./chunk-WTX2RFJG.js";
12
+ } from "./chunk-HQE6EJS5.js";
13
13
 
14
14
  // src/chat/logging.ts
15
15
  import path from "path";