@sentry/junior 0.296.0 → 0.298.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/{admin-z_lgDi-z.js → admin-BF3DbYGf.js} +2 -2
- package/dist/{agent-runner-HoQiUKLL.js → agent-runner-Q9GkoerG.js} +407 -1895
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +38 -267
- package/dist/{app-C75Ft-A_.d.ts → app-DOg_mCtV.d.ts} +7 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +64 -44
- package/dist/attempt-selection-ClP3MMPr.js +61 -0
- package/dist/{automation-yJX3C7i3.js → automation-Cn8qmbdr.js} +1 -1
- package/dist/{background-compaction-queue-Cre1wFt9.js → background-compaction-queue-BZhGFOK6.js} +4 -88
- package/dist/{briefs-BXECHduJ.js → briefs-CQrCRF6-.js} +3 -3
- package/dist/{catalog-runtime-CpCmlD9L.js → catalog-runtime-DZeD2WbL.js} +1 -1
- package/dist/cli/chat.js +19 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CCPHvTqx.js → config-BOByVnxe.js} +2 -2
- package/dist/{connections-B5pWh8e2.js → connections-BNN5cJam.js} +6 -6
- package/dist/{conversation-CMkSmi02.js → conversation-DCkzvxqB.js} +51 -17
- package/dist/{conversation-feed-BVAOga0H.js → conversation-feed-CMA12Rjs.js} +1 -1
- package/dist/{conversation-privacy-CZD5soDW.js → conversation-privacy-C0eRxsgb.js} +1 -1
- package/dist/conversation-turn-D9qvcDX6.js +805 -0
- package/dist/{credential-sync-DwLkIvXI.js → credential-sync-B_iUpxGL.js} +14 -13
- package/dist/{db-C1M1y-bh.js → db-CoMNr2Zm.js} +43 -15
- package/dist/{db-B3iyr_Or.d.ts → db-DoMcnYol.d.ts} +13 -1
- package/dist/{executor-DUSEwXaO.js → executor-C-m8VrzX.js} +14 -6
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-D0svFM8r.js → logging-CJTi5niy.js} +1 -1
- package/dist/{message-BFnIwKpx.js → message-Q6_5DAWR.js} +15 -13
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -2
- package/dist/{session-stop-hYNTNpVf.js → notification-Bv25xbj0.js} +11 -930
- package/dist/{oauth-callback-server-BXRtD6Fk.js → oauth-callback-server-CH5XAyo-.js} +2 -2
- package/dist/{projection-B6VS7kbo.js → projection-BgwEE36_.js} +333 -106
- package/dist/{prompt-CD11tfG8.js → prompt-DXc9DYT9.js} +4 -4
- package/dist/prompt-input-BUr4J9RO.js +1424 -0
- package/dist/{registry-CHewwYEo.js → registry-9XwqSnM-.js} +1 -1
- package/dist/reporting-window-DopzcOHh.js +137 -0
- package/dist/{resolve-1owMH4qo.js → resolve-DUIAbcRL.js} +3 -3
- package/dist/result-C2Vn8QGn.js +463 -0
- package/dist/{runner-BtWvJslp.js → runner-CXGtw-Mc.js} +9 -8
- package/dist/{sandbox-egress-signals-ByftwJVt.js → sandbox-egress-signals-Di3S_dO7.js} +1 -1
- package/dist/{schema-Ct1Zf2xy.d.ts → schema-BnbZ-rKv.d.ts} +14 -107
- package/dist/{schema-D2iGyYIp.js → schema-Dyp7racy.js} +11 -48
- package/dist/{service-account-BZEuMKdo.js → service-account-DM3KBBeG.js} +3 -3
- package/dist/{service-account-DLoeoHww.js → service-account-GzAMUQ8a.js} +3 -3
- package/dist/session-stop-D4i7e6iT.js +181 -0
- package/dist/{skills-DXgd5Inh.js → skills-DCK9SD_l.js} +2 -2
- package/dist/{spawn-YeqlNDv8.js → spawn-6cX6xE9G.js} +6 -5
- package/dist/{state-C3CbtD_m.js → state-CSuA2J1V.js} +2 -2
- package/dist/{stop-Cze_pEL8.js → stop-Dh2DfwpK.js} +66 -159
- package/dist/{store-CZ9vqR4P.js → store-B1zepKG8.js} +11 -4
- package/dist/{task-runner-CMiNGsER.js → store-DrA17Fbz.js} +939 -1593
- package/dist/task-queue-D1rXWfFN.js +89 -0
- package/dist/task-runner-CT4M8oDz.js +291 -0
- package/dist/thread-context-DnqUkbzN.js +248 -0
- package/dist/turn-cancel-l460pfGW.js +201 -0
- package/dist/turn-session-routing-VXDVXLRl.js +380 -0
- package/dist/{turn-failure-response-pXhZ2wMK.js → turn-user-message-BSPmkm7X.js} +181 -392
- package/dist/turn-wake-DVFVXyhX.js +161 -0
- package/dist/{reporting-window-B3Ze-Qnt.js → user-input-request-CXNIov9n.js} +24 -143
- package/dist/{validation-Du7NdkOR.js → validation-zxAJBDDy.js} +1 -1
- package/dist/{version-EN3Wnq-R.js → version-DcZ40a0g.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-Agxi_o5c.js → viewer-CgiGjW10.js} +3 -3
- package/dist/warmup-CwKbxQLl.js +2698 -0
- package/dist/{worker-BALVdWbv.js → worker-CbDUzaBA.js} +20 -8
- package/migrations/0102_code_change_last_activity.sql +1 -0
- package/migrations/0103_agent_invocation_fork.sql +8 -0
- package/migrations/meta/0102_snapshot.json +4502 -0
- package/migrations/meta/0103_snapshot.json +4509 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +4 -4
- package/dist/result-CEqQFrEf.js +0 -305
- package/dist/result-event-type-DD6BAgT7.js +0 -11
- package/dist/warmup-CY2ArYag.js +0 -2017
- package/dist/work-EA98F0ia.js +0 -768
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { At as
|
|
3
|
-
import { K as isProviderRetryError, i as getChatConfig } from "./config-
|
|
4
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { At as isFinalAttempt, Ot as hasConversationStop, St as countPendingConversationMessages, jt as isInvalidConversationRecordError } from "./projection-BgwEE36_.js";
|
|
3
|
+
import { K as isProviderRetryError, i as getChatConfig } from "./config-BOByVnxe.js";
|
|
4
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-CJTi5niy.js";
|
|
5
|
+
import { f as ConversationQueueMessageRejectedError, w as getTurnRequestDeadline } from "./background-compaction-queue-BZhGFOK6.js";
|
|
6
|
+
import { t as getConversationStoppedAtMs } from "./session-stop-D4i7e6iT.js";
|
|
7
|
+
import { S as requestAnotherSlice, _ as getConversationWorkState, b as recordConversationRetry, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, w as startConversationWork, x as releaseConversationWork, y as recordAttemptFailure } from "./store-B1zepKG8.js";
|
|
8
|
+
import { i as selectAttemptMessages, r as isAttemptInterrupt } from "./attempt-selection-ClP3MMPr.js";
|
|
8
9
|
// src/chat/task-execution/worker.ts
|
|
9
10
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
10
11
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
@@ -127,7 +128,11 @@ function startLeaseCheckIn(args) {
|
|
|
127
128
|
timer.unref?.();
|
|
128
129
|
return timer;
|
|
129
130
|
}
|
|
130
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* Poll the run-scoped stop marker only when an adapter observes remote stops.
|
|
133
|
+
* The stored stop time of the Conversation is the source of truth. The stop
|
|
134
|
+
* marker only makes a running model call end sooner.
|
|
135
|
+
*/
|
|
131
136
|
function createConversationStopSignal(args) {
|
|
132
137
|
const controller = new AbortController();
|
|
133
138
|
let checking = false;
|
|
@@ -157,6 +162,11 @@ function createConversationStopSignal(args) {
|
|
|
157
162
|
}
|
|
158
163
|
};
|
|
159
164
|
return {
|
|
165
|
+
async checkStored() {
|
|
166
|
+
if (controller.signal.aborted) return;
|
|
167
|
+
const stoppedAtMs = await getConversationStoppedAtMs(args.conversationId);
|
|
168
|
+
if (stoppedAtMs !== void 0 && stoppedAtMs >= args.startedAtMs) requestStop();
|
|
169
|
+
},
|
|
160
170
|
close() {
|
|
161
171
|
if (timer) clearInterval(timer);
|
|
162
172
|
},
|
|
@@ -378,7 +388,8 @@ async function processConversationWorkInContext(message, options) {
|
|
|
378
388
|
state: options.state
|
|
379
389
|
}),
|
|
380
390
|
options,
|
|
381
|
-
runId
|
|
391
|
+
runId,
|
|
392
|
+
startedAtMs: now(options)
|
|
382
393
|
});
|
|
383
394
|
const workerContext = {
|
|
384
395
|
attempt: {
|
|
@@ -393,6 +404,7 @@ async function processConversationWorkInContext(message, options) {
|
|
|
393
404
|
destination,
|
|
394
405
|
shouldYield,
|
|
395
406
|
stopSignal: stop.signal,
|
|
407
|
+
checkStop: stop.checkStored,
|
|
396
408
|
checkIn
|
|
397
409
|
};
|
|
398
410
|
let result;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "junior_code_changes" ADD COLUMN "last_activity_at" timestamp with time zone;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ALTER TABLE "junior_agent_invocations" ADD COLUMN "fork" boolean DEFAULT false NOT NULL;--> statement-breakpoint
|
|
2
|
+
-- Fork was an agent type. It is now the `fork` column, and the child has no
|
|
3
|
+
-- type. The old runtime can still write the `fork` type while `junior upgrade`
|
|
4
|
+
-- runs; the new runtime starts those children without the parent's history.
|
|
5
|
+
-- junior:bounded-backfill: changes only agent invocations of fork children, which are few and mostly finished, so few live rows match.
|
|
6
|
+
UPDATE "junior_agent_invocations"
|
|
7
|
+
SET "fork" = true, "agent_type" = NULL
|
|
8
|
+
WHERE "agent_type" = 'fork';
|