@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.
- package/dist/{agent-hooks-GCUTGKY3.js → agent-hooks-SLJADYE5.js} +10 -10
- package/dist/api/conversations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +40 -22
- package/dist/app.js +400 -461
- package/dist/{catalog-runtime-DWVYKDC6.js → catalog-runtime-RQIMSDPR.js} +5 -5
- package/dist/chat/agent/request.d.ts +1 -1
- package/dist/chat/agent/resume.d.ts +6 -18
- package/dist/chat/agent/skills.d.ts +0 -1
- package/dist/chat/agent/tools.d.ts +1 -2
- package/dist/chat/agent-dispatch/types.d.ts +1 -1
- package/dist/chat/app/conversation-work.d.ts +24 -0
- package/dist/chat/conversations/message-search.d.ts +32 -0
- package/dist/chat/conversations/projection.d.ts +11 -3
- package/dist/chat/conversations/sql/message-search.d.ts +4 -0
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/conversations/tool-source.d.ts +5 -0
- package/dist/chat/db.d.ts +2 -2
- package/dist/chat/runtime/agent-run-outcome.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +5 -5
- package/dist/chat/runtime/slack-resume.d.ts +12 -4
- package/dist/chat/slack/message/attachments.d.ts +2 -0
- package/dist/chat/slack/message/blocks.d.ts +2 -0
- package/dist/chat/slack/message/content.d.ts +18 -0
- package/dist/chat/slack/message/identity.d.ts +7 -0
- package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +21 -14
- package/dist/chat/slack/tools/user-lookup.d.ts +2 -1
- package/dist/chat/state/locks.d.ts +28 -0
- package/dist/chat/task-execution/checkpoint.d.ts +84 -0
- package/dist/chat/task-execution/paused-turn.d.ts +29 -0
- package/dist/chat/task-execution/queue-signing.d.ts +1 -0
- package/dist/chat/task-execution/queue.d.ts +7 -1
- package/dist/chat/task-execution/slack-work.d.ts +1 -1
- package/dist/chat/task-execution/state.d.ts +4 -4
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +6 -0
- package/dist/chat/{state/turn-session.d.ts → task-execution/turn-cursor.d.ts} +52 -51
- package/dist/chat/task-execution/turn-wake.d.ts +29 -0
- package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +3 -3
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/{chunk-SBZP2J5Q.js → chunk-37EVZP66.js} +48 -35
- package/dist/{chunk-A67GZN73.js → chunk-37JJDS4H.js} +1 -1
- package/dist/{chunk-BBCWYXHB.js → chunk-47OSH2ZO.js} +7 -7
- package/dist/{chunk-4X5KM7Z6.js → chunk-AISNSNDV.js} +14 -14
- package/dist/{chunk-RIFJUJSI.js → chunk-B63BF443.js} +1 -1
- package/dist/{chunk-SSDTQDYQ.js → chunk-BLETMLRX.js} +566 -268
- package/dist/{chunk-I44JB7HQ.js → chunk-F7REGDKO.js} +1 -1
- package/dist/{chunk-DVO5VKYQ.js → chunk-FEKQHPVA.js} +5 -5
- package/dist/{chunk-SUK7NC5A.js → chunk-FGHADGIC.js} +2 -2
- package/dist/{chunk-7KAW7UF4.js → chunk-FXDDDSPL.js} +4 -4
- package/dist/{chunk-BEGGFVFR.js → chunk-GDQEU4I7.js} +414 -542
- package/dist/{chunk-UDQMY6RS.js → chunk-GYEKOX7N.js} +43 -1
- package/dist/{chunk-W7JFV5SB.js → chunk-H6U2U3EP.js} +14 -17
- package/dist/{chunk-WTX2RFJG.js → chunk-HQE6EJS5.js} +1 -1
- package/dist/{chunk-IUFM5JWV.js → chunk-JAL3CH4G.js} +3 -0
- package/dist/{chunk-E7HCWOHG.js → chunk-JLMVCNXL.js} +2 -1
- package/dist/{chunk-PELZ2ZSY.js → chunk-JUA6VU2Z.js} +33 -63
- package/dist/{chunk-SHEEZSLY.js → chunk-LVW7BLLT.js} +2 -2
- package/dist/{chunk-GKA74DRA.js → chunk-M6ZWP4RI.js} +1 -1
- package/dist/{chunk-HNO2E5WB.js → chunk-MCFIXAV5.js} +1 -1
- package/dist/{chunk-3GU4PWA3.js → chunk-MKRIZ4VG.js} +29 -30
- package/dist/{chunk-QUZJDAQQ.js → chunk-OFPYOC3M.js} +93 -90
- package/dist/{chunk-ZF3N3JD6.js → chunk-PB222GIA.js} +1 -1
- package/dist/{chunk-PKH6762I.js → chunk-PH4Q3A6W.js} +1 -1
- package/dist/{chunk-STFCL3K4.js → chunk-QG7OOKIN.js} +1 -1
- package/dist/{chunk-WSOLZJJS.js → chunk-QSXZ42KX.js} +3 -3
- package/dist/{chunk-44RJWAND.js → chunk-SCGVWUZX.js} +6 -6
- package/dist/{chunk-CNTWB2SM.js → chunk-T5GXFFLA.js} +1 -1
- package/dist/{chunk-LDWNYCZ6.js → chunk-TCEJ7XXM.js} +1 -1
- package/dist/{chunk-QE3TICD4.js → chunk-V6SRLKUB.js} +2 -2
- package/dist/{chunk-54JMYQYS.js → chunk-W65V465O.js} +2 -2
- package/dist/{chunk-KCBZSJRU.js → chunk-WR76IVA5.js} +5 -2
- package/dist/{chunk-ZZCTGAIT.js → chunk-X22KCSCO.js} +4 -4
- package/dist/{chunk-HD6BHR25.js → chunk-X2WMBTS3.js} +32 -34
- package/dist/{chunk-KQBXT5B7.js → chunk-ZDGHGY74.js} +6 -6
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-EFLHTBU6.js → db-WWOMXWTT.js} +9 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-RO3IQKWM.js → oauth-callback-server-A6ZZX74U.js} +25 -25
- package/dist/{runner-LOWW7JKA.js → runner-KSGB2UAV.js} +19 -20
- package/dist/{skills-ZLMUG7AE.js → skills-26QPWKVS.js} +6 -6
- package/dist/spawn-5LAJXZ2P.js +39 -0
- package/dist/{validation-MAKEZNTS.js → validation-OPSRGFGH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-5OAGC3I4.js → work-VMSW7STJ.js} +17 -16
- package/dist/worker-2JNFB7C7.js +24 -0
- package/package.json +5 -5
- package/dist/chat/agent/session.d.ts +0 -19
- package/dist/chat/conversations/search.d.ts +0 -24
- package/dist/chat/conversations/sql/search.d.ts +0 -4
- package/dist/chat/runtime/agent-continue-runner.d.ts +0 -37
- package/dist/chat/services/agent-continue.d.ts +0 -29
- package/dist/chat/services/turn-session-record.d.ts +0 -164
- package/dist/chat/slack/legacy-attachments.d.ts +0 -4
- package/dist/chat/slack/message.d.ts +0 -12
- package/dist/chat/state/turn-session-keys.d.ts +0 -6
- package/dist/spawn-R3LUV6RF.js +0 -38
- package/dist/worker-KTGGRTTP.js +0 -24
|
@@ -16,22 +16,22 @@ import {
|
|
|
16
16
|
recordAttemptFailure,
|
|
17
17
|
recordConversationRetry,
|
|
18
18
|
releaseConversationWork,
|
|
19
|
-
|
|
19
|
+
requestAnotherSlice,
|
|
20
20
|
startConversationWork
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X2WMBTS3.js";
|
|
22
22
|
import {
|
|
23
23
|
ConversationQueueMessageRejectedError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JAL3CH4G.js";
|
|
25
25
|
import {
|
|
26
26
|
getChatConfig,
|
|
27
27
|
isProviderRetryError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
29
29
|
import {
|
|
30
30
|
logException,
|
|
31
31
|
logInfo,
|
|
32
32
|
logWarn,
|
|
33
33
|
withLogContext
|
|
34
|
-
} from "./chunk-
|
|
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 === "
|
|
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
|
|
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 (!
|
|
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 === "
|
|
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
|
|
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 (!
|
|
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 !== "
|
|
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
|
|
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 (
|
|
624
|
+
if (sliceRequested) {
|
|
625
625
|
await ensureConversationWake({
|
|
626
626
|
conversationId,
|
|
627
627
|
conversationStore: options.conversationStore,
|