@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.
- package/dist/{agent-hooks-NGZQLL5O.js → agent-hooks-XVAE2554.js} +11 -11
- package/dist/api/schema/conversation.d.ts +8 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +44 -36
- package/dist/app.js +1079 -264
- package/dist/{catalog-runtime-AAEAO2RL.js → catalog-runtime-DWFAC562.js} +4 -4
- package/dist/chat/agent/types.d.ts +16 -13
- package/dist/chat/api-turns/{accepted-reply.d.ts → assistant-message.d.ts} +3 -2
- package/dist/chat/api-turns/cancellation.d.ts +0 -1
- package/dist/chat/api-turns/mailbox-input.d.ts +4 -0
- package/dist/chat/api-turns/routing.d.ts +23 -7
- package/dist/chat/api-turns/work.d.ts +2 -2
- package/dist/chat/conversations/location.d.ts +2 -2
- package/dist/chat/conversations/store.d.ts +13 -0
- package/dist/chat/conversations/turn-lifecycle.d.ts +2 -0
- package/dist/chat/providers/slack/runtime.d.ts +0 -2
- package/dist/chat/providers/slack/turn.d.ts +0 -2
- package/dist/chat/resource-events/actor.d.ts +14 -2
- package/dist/chat/resource-events/app-publisher.d.ts +18 -0
- package/dist/chat/resource-events/catalog.d.ts +19 -0
- package/dist/chat/resource-events/ingest.d.ts +0 -1
- package/dist/chat/resource-events/notification.d.ts +28 -3
- package/dist/chat/resource-events/runtime-catalog.d.ts +7 -2
- package/dist/chat/resource-events/store.d.ts +1 -13
- package/dist/chat/resource-events/workspace.d.ts +7 -3
- package/dist/chat/sandbox/egress/credentials.d.ts +5 -4
- package/dist/chat/sandbox/egress/session.d.ts +9 -9
- package/dist/chat/sandbox/errors.d.ts +1 -1
- package/dist/chat/sandbox/ref.d.ts +1 -1
- package/dist/chat/sandbox/snapshot/events.d.ts +8 -1
- package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -1
- package/dist/chat/sentry-links.d.ts +2 -0
- package/dist/chat/services/turn-session-routing.d.ts +23 -7
- package/dist/chat/task-execution/slack-resource-event.d.ts +47 -0
- package/dist/chat/task-execution/slack-work.d.ts +0 -21
- package/dist/chat/task-input.d.ts +22 -0
- package/dist/chat/tools/event-tasks.d.ts +1 -1
- package/dist/chat/tools/resource-events.d.ts +1 -1
- package/dist/{chunk-Y5G23T2D.js → chunk-27T5HZHO.js} +91 -7
- package/dist/{chunk-TVVAMOLS.js → chunk-2VUDJGB6.js} +2 -2
- package/dist/{chunk-X7NCJQAA.js → chunk-4A2R3AQB.js} +1 -1
- package/dist/{chunk-MWOH6CIK.js → chunk-4YD3DET6.js} +278 -116
- package/dist/{chunk-INQHUE72.js → chunk-6FGN7ZEG.js} +6 -2
- package/dist/{chunk-ZKKGFUWM.js → chunk-6FKNNUSN.js} +6 -6
- package/dist/{chunk-OMQ2J6F6.js → chunk-6YCIYOVA.js} +1 -1
- package/dist/{chunk-7GAP2XG4.js → chunk-7LRRVMPH.js} +1 -1
- package/dist/{chunk-4HA36IWS.js → chunk-BITZUBPJ.js} +8 -8
- package/dist/{chunk-QCT4226Q.js → chunk-D3GDGREI.js} +3 -3
- package/dist/{chunk-WLKWN4CD.js → chunk-D5BWM37G.js} +8 -5
- package/dist/{chunk-VH4IU3UC.js → chunk-DUE4EUNL.js} +19 -45
- package/dist/{chunk-DAPC2HTM.js → chunk-EIWYZXSM.js} +5 -5
- package/dist/{chunk-LVK4WJKM.js → chunk-HXR3FHTE.js} +13 -3
- package/dist/{chunk-UUULGCKK.js → chunk-ITLYUKGZ.js} +14 -4
- package/dist/{chunk-FTVMXDNN.js → chunk-JCRXXEMC.js} +1 -1
- package/dist/{chunk-EJYP3NQ4.js → chunk-JZPDYKRG.js} +37 -3
- package/dist/{chunk-HJPC32TQ.js → chunk-KRYJ5VOD.js} +20 -14
- package/dist/{chunk-QZKHHG3B.js → chunk-MUPPP7A7.js} +436 -283
- package/dist/{chunk-D63IUQQE.js → chunk-NIKLTFBP.js} +12 -9
- package/dist/{chunk-U4CTAVWN.js → chunk-NU775DLU.js} +2 -2
- package/dist/{chunk-W7GCLNIV.js → chunk-OM4SFFJK.js} +3 -3
- package/dist/{chunk-X2SS6BF7.js → chunk-P2VU5JNH.js} +32 -36
- package/dist/{chunk-4K25ODAO.js → chunk-PFAZSRGR.js} +3 -1
- package/dist/{chunk-EIJCPJOY.js → chunk-Q6OCUQ7W.js} +1 -1
- package/dist/{chunk-GJTIZQGJ.js → chunk-QH3I7ZOK.js} +1 -1
- package/dist/{chunk-4S47VHJR.js → chunk-STF4GSK4.js} +3 -3
- package/dist/{chunk-C6TS47CQ.js → chunk-TQHCZXN7.js} +11 -5
- package/dist/{chunk-ZIF2S464.js → chunk-U3KMII5Y.js} +1 -1
- package/dist/{chunk-6DOAUXLD.js → chunk-U5POFCKM.js} +753 -1718
- package/dist/{chunk-PNYJOEVV.js → chunk-U6ZQHRIP.js} +1 -1
- package/dist/{chunk-LRI5IRGY.js → chunk-URZ7UD4P.js} +2 -2
- package/dist/{chunk-6Q7YZLCL.js → chunk-VC343WHM.js} +9 -1
- package/dist/{chunk-ABAX75GG.js → chunk-WKIS4VRK.js} +17 -3
- package/dist/{chunk-FFHXG2FX.js → chunk-WL3R2KTS.js} +11 -29
- package/dist/{chunk-EWEH2PJW.js → chunk-WRDW3A3D.js} +5 -5
- package/dist/{chunk-7MHNIGHP.js → chunk-X5SXFVZT.js} +1 -1
- package/dist/{chunk-ATUWN6Z3.js → chunk-Z6OHCDXP.js} +2 -2
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-TRJ77FAU.js → db-FBHAWVXU.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-XD5SV3MS.js → oauth-callback-server-5HS5ULC6.js} +28 -28
- package/dist/{runner-KFX7NG6D.js → runner-46W6NV6B.js} +19 -19
- package/dist/{skills-J2AH26CW.js → skills-TG3QC4B6.js} +5 -5
- package/dist/spawn-Y6YWBIJS.js +41 -0
- package/dist/task-runner-YSGBPN4U.js +34 -0
- package/dist/{validation-O5J4VOPF.js → validation-GMRIDBC5.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-ECPQTG3U.js → work-W4ULBJTU.js} +21 -21
- package/dist/{worker-RS3DXUDO.js → worker-M6NVACS2.js} +10 -10
- package/package.json +4 -4
- package/dist/spawn-VU3CSRI6.js +0 -41
- package/dist/task-runner-5JG3VIIY.js +0 -34
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunError,
|
|
3
3
|
executeTurn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OM4SFFJK.js";
|
|
5
5
|
import {
|
|
6
6
|
ConversationTurnLifecycleService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VC343WHM.js";
|
|
8
8
|
import {
|
|
9
9
|
getPersistedSandboxState,
|
|
10
10
|
getPersistedThreadState,
|
|
11
|
-
persistThreadStateById
|
|
12
|
-
|
|
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-
|
|
22
|
+
} from "./chunk-WRDW3A3D.js";
|
|
22
23
|
import {
|
|
23
24
|
appendAndEnqueueInboundMessage
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NIKLTFBP.js";
|
|
25
26
|
import {
|
|
26
27
|
TurnInputCommitLostError,
|
|
27
28
|
getAssistantReplyText,
|
|
28
29
|
getConversationTurnBoundaryError,
|
|
29
30
|
isTurnInputCommitLostError
|
|
30
|
-
} from "./chunk-
|
|
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-
|
|
38
|
+
} from "./chunk-D5BWM37G.js";
|
|
38
39
|
import {
|
|
39
40
|
getConversationEventStore,
|
|
40
41
|
getConversationStore,
|
|
41
42
|
getSqlExecutor
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-WKIS4VRK.js";
|
|
43
44
|
import {
|
|
44
45
|
juniorAgentBindings,
|
|
45
46
|
juniorAgentInvocations
|
|
46
|
-
} from "./chunk-
|
|
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
|
|
597
|
-
// interactive auth when a delegated tool requires credentials
|
|
598
|
-
// parent
|
|
599
|
-
//
|
|
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: {
|