@sentry/junior 0.185.0 → 0.187.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 (96) hide show
  1. package/dist/{agent-hooks-NGZQLL5O.js → agent-hooks-XVAE2554.js} +11 -11
  2. package/dist/api/schema/conversation.d.ts +8 -0
  3. package/dist/api/schema.js +1 -1
  4. package/dist/api.js +44 -36
  5. package/dist/app.js +1079 -264
  6. package/dist/{catalog-runtime-AAEAO2RL.js → catalog-runtime-DWFAC562.js} +4 -4
  7. package/dist/chat/agent/types.d.ts +16 -13
  8. package/dist/chat/api-turns/{accepted-reply.d.ts → assistant-message.d.ts} +3 -2
  9. package/dist/chat/api-turns/cancellation.d.ts +0 -1
  10. package/dist/chat/api-turns/mailbox-input.d.ts +4 -0
  11. package/dist/chat/api-turns/routing.d.ts +23 -7
  12. package/dist/chat/api-turns/work.d.ts +2 -2
  13. package/dist/chat/conversations/location.d.ts +2 -2
  14. package/dist/chat/conversations/store.d.ts +13 -0
  15. package/dist/chat/conversations/turn-lifecycle.d.ts +2 -0
  16. package/dist/chat/providers/slack/runtime.d.ts +0 -2
  17. package/dist/chat/providers/slack/turn.d.ts +0 -2
  18. package/dist/chat/resource-events/actor.d.ts +14 -2
  19. package/dist/chat/resource-events/app-publisher.d.ts +18 -0
  20. package/dist/chat/resource-events/catalog.d.ts +19 -0
  21. package/dist/chat/resource-events/ingest.d.ts +0 -1
  22. package/dist/chat/resource-events/notification.d.ts +28 -3
  23. package/dist/chat/resource-events/runtime-catalog.d.ts +7 -2
  24. package/dist/chat/resource-events/store.d.ts +1 -13
  25. package/dist/chat/resource-events/workspace.d.ts +7 -3
  26. package/dist/chat/sandbox/egress/credentials.d.ts +5 -4
  27. package/dist/chat/sandbox/egress/session.d.ts +9 -9
  28. package/dist/chat/sandbox/errors.d.ts +1 -1
  29. package/dist/chat/sandbox/ref.d.ts +1 -1
  30. package/dist/chat/sandbox/snapshot/events.d.ts +8 -1
  31. package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -1
  32. package/dist/chat/sentry-links.d.ts +2 -0
  33. package/dist/chat/services/turn-session-routing.d.ts +23 -7
  34. package/dist/chat/task-execution/slack-resource-event.d.ts +47 -0
  35. package/dist/chat/task-execution/slack-work.d.ts +0 -21
  36. package/dist/chat/task-input.d.ts +22 -0
  37. package/dist/chat/tools/event-tasks.d.ts +1 -1
  38. package/dist/chat/tools/resource-events.d.ts +1 -1
  39. package/dist/{chunk-Y5G23T2D.js → chunk-27T5HZHO.js} +91 -7
  40. package/dist/{chunk-TVVAMOLS.js → chunk-2VUDJGB6.js} +2 -2
  41. package/dist/{chunk-X7NCJQAA.js → chunk-4A2R3AQB.js} +1 -1
  42. package/dist/{chunk-MWOH6CIK.js → chunk-4YD3DET6.js} +278 -116
  43. package/dist/{chunk-INQHUE72.js → chunk-6FGN7ZEG.js} +6 -2
  44. package/dist/{chunk-ZKKGFUWM.js → chunk-6FKNNUSN.js} +6 -6
  45. package/dist/{chunk-OMQ2J6F6.js → chunk-6YCIYOVA.js} +1 -1
  46. package/dist/{chunk-7GAP2XG4.js → chunk-7LRRVMPH.js} +1 -1
  47. package/dist/{chunk-4HA36IWS.js → chunk-BITZUBPJ.js} +8 -8
  48. package/dist/{chunk-QCT4226Q.js → chunk-D3GDGREI.js} +3 -3
  49. package/dist/{chunk-WLKWN4CD.js → chunk-D5BWM37G.js} +8 -5
  50. package/dist/{chunk-VH4IU3UC.js → chunk-DUE4EUNL.js} +19 -45
  51. package/dist/{chunk-DAPC2HTM.js → chunk-EIWYZXSM.js} +5 -5
  52. package/dist/{chunk-LVK4WJKM.js → chunk-HXR3FHTE.js} +13 -3
  53. package/dist/{chunk-UUULGCKK.js → chunk-ITLYUKGZ.js} +14 -4
  54. package/dist/{chunk-FTVMXDNN.js → chunk-JCRXXEMC.js} +1 -1
  55. package/dist/{chunk-EJYP3NQ4.js → chunk-JZPDYKRG.js} +37 -3
  56. package/dist/{chunk-HJPC32TQ.js → chunk-KRYJ5VOD.js} +20 -14
  57. package/dist/{chunk-QZKHHG3B.js → chunk-MUPPP7A7.js} +436 -283
  58. package/dist/{chunk-D63IUQQE.js → chunk-NIKLTFBP.js} +12 -9
  59. package/dist/{chunk-U4CTAVWN.js → chunk-NU775DLU.js} +2 -2
  60. package/dist/{chunk-W7GCLNIV.js → chunk-OM4SFFJK.js} +3 -3
  61. package/dist/{chunk-X2SS6BF7.js → chunk-P2VU5JNH.js} +32 -36
  62. package/dist/{chunk-4K25ODAO.js → chunk-PFAZSRGR.js} +3 -1
  63. package/dist/{chunk-EIJCPJOY.js → chunk-Q6OCUQ7W.js} +1 -1
  64. package/dist/{chunk-GJTIZQGJ.js → chunk-QH3I7ZOK.js} +1 -1
  65. package/dist/{chunk-4S47VHJR.js → chunk-STF4GSK4.js} +3 -3
  66. package/dist/{chunk-C6TS47CQ.js → chunk-TQHCZXN7.js} +11 -5
  67. package/dist/{chunk-ZIF2S464.js → chunk-U3KMII5Y.js} +1 -1
  68. package/dist/{chunk-6DOAUXLD.js → chunk-U5POFCKM.js} +753 -1718
  69. package/dist/{chunk-PNYJOEVV.js → chunk-U6ZQHRIP.js} +1 -1
  70. package/dist/{chunk-LRI5IRGY.js → chunk-URZ7UD4P.js} +2 -2
  71. package/dist/{chunk-6Q7YZLCL.js → chunk-VC343WHM.js} +9 -1
  72. package/dist/{chunk-ABAX75GG.js → chunk-WKIS4VRK.js} +17 -3
  73. package/dist/{chunk-FFHXG2FX.js → chunk-WL3R2KTS.js} +11 -29
  74. package/dist/{chunk-EWEH2PJW.js → chunk-WRDW3A3D.js} +5 -5
  75. package/dist/{chunk-7MHNIGHP.js → chunk-X5SXFVZT.js} +1 -1
  76. package/dist/{chunk-ATUWN6Z3.js → chunk-Z6OHCDXP.js} +2 -2
  77. package/dist/cli/chat.js +33 -33
  78. package/dist/cli/check.js +5 -5
  79. package/dist/cli/plugins.js +12 -12
  80. package/dist/cli/snapshot-create.js +9 -9
  81. package/dist/cli/upgrade.js +6 -6
  82. package/dist/{db-TRJ77FAU.js → db-FBHAWVXU.js} +6 -6
  83. package/dist/instrumentation.js +3 -3
  84. package/dist/nitro.js +6 -6
  85. package/dist/{oauth-callback-server-XD5SV3MS.js → oauth-callback-server-5HS5ULC6.js} +28 -28
  86. package/dist/{runner-KFX7NG6D.js → runner-46W6NV6B.js} +19 -19
  87. package/dist/{skills-J2AH26CW.js → skills-TG3QC4B6.js} +5 -5
  88. package/dist/spawn-Y6YWBIJS.js +41 -0
  89. package/dist/task-runner-YSGBPN4U.js +34 -0
  90. package/dist/{validation-O5J4VOPF.js → validation-GMRIDBC5.js} +5 -5
  91. package/dist/version.js +1 -1
  92. package/dist/{work-ECPQTG3U.js → work-W4ULBJTU.js} +21 -21
  93. package/dist/{worker-RS3DXUDO.js → worker-M6NVACS2.js} +10 -10
  94. package/package.json +4 -4
  95. package/dist/spawn-VU3CSRI6.js +0 -41
  96. package/dist/task-runner-5JG3VIIY.js +0 -34
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  AgentRunError,
3
3
  executeTurn
4
- } from "./chunk-W7GCLNIV.js";
4
+ } from "./chunk-OM4SFFJK.js";
5
5
  import {
6
6
  ConversationTurnLifecycleService
7
- } from "./chunk-6Q7YZLCL.js";
7
+ } from "./chunk-VC343WHM.js";
8
8
  import {
9
9
  getPersistedSandboxState,
10
10
  getPersistedThreadState,
11
- persistThreadStateById
12
- } from "./chunk-Y5G23T2D.js";
11
+ persistThreadStateById,
12
+ resolveConversationRouting
13
+ } from "./chunk-27T5HZHO.js";
13
14
  import {
14
15
  AgentInvocationBusyError,
15
16
  AgentInvocationLimitError,
@@ -18,32 +19,32 @@ import {
18
19
  agentBindingSchema,
19
20
  agentInvocationSchema,
20
21
  createAgentInvocationSchema
21
- } from "./chunk-EWEH2PJW.js";
22
+ } from "./chunk-WRDW3A3D.js";
22
23
  import {
23
24
  appendAndEnqueueInboundMessage
24
- } from "./chunk-D63IUQQE.js";
25
+ } from "./chunk-NIKLTFBP.js";
25
26
  import {
26
27
  TurnInputCommitLostError,
27
28
  getAssistantReplyText,
28
29
  getConversationTurnBoundaryError,
29
30
  isTurnInputCommitLostError
30
- } from "./chunk-U4CTAVWN.js";
31
+ } from "./chunk-NU775DLU.js";
31
32
  import {
32
33
  failTurnRecord,
33
34
  getTerminalAssistantMessages,
34
35
  getTurnRecord,
35
36
  openConversationProjection,
36
37
  saveTurnCheckpoint
37
- } from "./chunk-WLKWN4CD.js";
38
+ } from "./chunk-D5BWM37G.js";
38
39
  import {
39
40
  getConversationEventStore,
40
41
  getConversationStore,
41
42
  getSqlExecutor
42
- } from "./chunk-ABAX75GG.js";
43
+ } from "./chunk-WKIS4VRK.js";
43
44
  import {
44
45
  juniorAgentBindings,
45
46
  juniorAgentInvocations
46
- } from "./chunk-LVK4WJKM.js";
47
+ } from "./chunk-HXR3FHTE.js";
47
48
 
48
49
  // src/chat/agent-invocations/work.ts
49
50
  import { z } from "zod";
@@ -518,6 +519,7 @@ function createAgentInvocationWorker(agentRunner) {
518
519
  );
519
520
  let sandboxRef;
520
521
  let history;
522
+ let location;
521
523
  try {
522
524
  if (invocation.childConversationId !== context.conversationId) {
523
525
  throw new Error(
@@ -556,6 +558,9 @@ function createAgentInvocationWorker(agentRunner) {
556
558
  ]);
557
559
  sandboxRef = getPersistedSandboxState(persisted);
558
560
  history = projection.messages;
561
+ location = (await resolveConversationRouting({
562
+ conversationId: invocation.childConversationId
563
+ }))?.location;
559
564
  } catch (error) {
560
565
  if (isInvocationInputCommitLost(error)) {
561
566
  return { status: "lost_lease" };
@@ -589,14 +594,15 @@ function createAgentInvocationWorker(agentRunner) {
589
594
  actor: invocation.actor,
590
595
  credentialContext: invocation.credentialContext,
591
596
  destination: invocation.destination,
597
+ ...location ? { location } : void 0,
592
598
  destinationVisibility: invocation.destinationVisibility,
593
599
  publishExternally: context.publishExternally,
594
600
  source: invocation.source,
595
601
  surface: "internal",
596
- // TODO(#881, #883): Child runs may still need a path to force
597
- // interactive auth when a delegated tool requires credentials the
598
- // parent already has authority to request. Today background children
599
- // hard-fail instead of pausing for an OAuth link.
602
+ // TODO(dcramer): Issues #881 and #883 track a path for child runs to
603
+ // force interactive auth when a delegated tool requires credentials
604
+ // the parent can request. Today background children hard-fail instead
605
+ // of pausing for an OAuth link.
600
606
  disabledFeatures: ["handoff", "interactive-auth", "subagents"],
601
607
  reasoning: invocation.reasoningLevel,
602
608
  state: {