@sentry/junior 0.269.0 → 0.271.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/{actor-CP9K2Idu.js → actor-B4DYygOB.js} +1 -1
- package/dist/{adapter-2-CG25be.js → adapter-Bqbtr1RV.js} +1 -1
- package/dist/{admin-DSs8S5Uy.js → admin-CWBjzyN0.js} +1 -1
- package/dist/{agent-runner-CrDrPUtY.js → agent-runner-BiHsH8O_.js} +1174 -262
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -6
- package/dist/api.d.ts +1 -1
- package/dist/api.js +70 -38
- package/dist/{app-BrMMzjYm.d.ts → app-C81xfpNa.d.ts} +9 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +84 -37
- package/dist/{interruption-marker-g6Xup3Fk.js → assistant-reply-DgtX9DaJ.js} +2 -8
- package/dist/{automation-p87hg_AV.js → automation-Dwh_xcqM.js} +1 -1
- package/dist/{briefs-PtODdLNu.js → briefs-0FeSJHQ3.js} +5 -5
- package/dist/{catalog-runtime-BsoSmTM0.js → catalog-runtime-Bw9kjGVu.js} +1 -1
- package/dist/cli/chat.js +14 -14
- 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/{client-Cqf4TboL.js → client-B0jlQSgO.js} +13 -3
- package/dist/{config-CPsE4T5L.js → config-DrAeD8sr.js} +3 -3
- package/dist/{connections-upFXLmhG.js → connections-BzN2K0G9.js} +10 -10
- package/dist/{conversation-CTpD_PGk.js → conversation-AhOVzN_k.js} +5 -3
- package/dist/{conversation-privacy-D6zJc8ff.js → conversation-privacy-D1NhUxyo.js} +1 -1
- package/dist/{credential-sync-CS_6IC-f.js → credential-sync-DpNWl4yy.js} +15 -15
- package/dist/{credentialed-BU-OW7HP.js → credentialed-mh7HBqey.js} +51 -39
- package/dist/{db-BzOCzVb1.d.ts → db-DSabI7jJ.d.ts} +1 -1
- package/dist/{executor-CNS7ONt-.js → executor-C2cRw0hZ.js} +7 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DI-k-Bbk.js → job-queue-CEeLYkSj.js} +2 -2
- package/dist/{list-CGoQdXTp.js → list-DjJJ5K0x.js} +168 -36
- package/dist/{logging-n7knse-O.js → logging-DuwXUuIY.js} +1 -1
- package/dist/{media-85PDJxO_.js → media-U6Tuz6Mi.js} +1 -1
- package/dist/{message-BpaWd8TT.js → message-CRe3WBKc.js} +4 -4
- package/dist/{model-profile-Bg8EoCKD.js → model-profile-B998sjVd.js} +9 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +5 -3
- package/dist/{oauth-callback-server-CpGmEw_i.js → oauth-callback-server-oM5TJt34.js} +2 -2
- package/dist/{prompt-BlQB0QQt.js → prompt-BPSdXYXV.js} +1 -1
- package/dist/{registry-By36_xsm.js → registry-BPtbAVFo.js} +2 -2
- package/dist/{reporting-window-CVarfId9.js → reporting-window-DgHgwQB3.js} +16 -2
- package/dist/{resolve-CUIBcdPd.js → resolve-D44G1jJm.js} +3 -3
- package/dist/{result-BemsOMOO.js → result-CvP8c5bb.js} +10 -10
- package/dist/{runner-BVok7PAA.js → runner-FIGIKvk2.js} +11 -11
- package/dist/{sandbox-egress-signals-BSUWQI95.js → sandbox-egress-signals-C_JzucwP.js} +1 -1
- package/dist/{schema-ChnFo5f2.js → schema-DKZgO-xf.js} +12 -7
- package/dist/{schema-jK4-1u_H.d.ts → schema-DPCvePop.d.ts} +37 -3
- package/dist/{service-account-hMmESDcr.js → service-account-1mJGRAvx.js} +3 -3
- package/dist/{service-account-DHvlLnZw.js → service-account-CHO3YXpt.js} +3 -3
- package/dist/{session-stop-BQW_iFcd.js → session-stop-DuUB1rwQ.js} +51 -141
- package/dist/{skills-DmJJIuLF.js → skills-DHK7L9Eo.js} +2 -2
- package/dist/{spawn-ChCm46i-.js → spawn-CKl_ySIq.js} +2 -2
- package/dist/{store-DCo2n5iJ.js → store-BF2XEeQz.js} +3 -3
- package/dist/{store-1DVhoKOL.js → store-Di0E4EvU.js} +4 -4
- package/dist/{task-queue-HMC4QjFm.js → task-queue-CC7IFtbT.js} +3 -3
- package/dist/{task-runner-cA6yjn_E.js → task-runner-DKZtMFwa.js} +8 -8
- package/dist/{thread-state-CHy8LS0C.js → thread-state-BQ1T3eeF.js} +5 -5
- package/dist/{turn-failure-response-Dr7erLWs.js → turn-failure-response-B5eSFoHn.js} +15 -10
- package/dist/{turn-lifecycle-bf2fIYi_.js → turn-lifecycle-CTLEIEOn.js} +1 -1
- package/dist/{turn-session-routing-BqO0qXLk.js → turn-session-routing-BFVp8TbU.js} +26 -19
- package/dist/{validation-DHR1ivfh.js → validation-Cjo-3yt3.js} +1 -1
- package/dist/{version-CXCHLgWm.js → version-D30MBLLw.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DSbD6DF6.js → viewer-D3jhuP66.js} +27 -12
- package/dist/{work-BE_qTYGi.js → work-CL9QwQcl.js} +11 -11
- package/dist/{worker-Cm9_sWXg.js → worker-S2P7IJDI.js} +6 -6
- package/migrations/0071_review_item_turn.sql +1 -0
- package/migrations/AGENTS.md +3 -12
- package/migrations/meta/0071_snapshot.json +4003 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Dn as failTurnRecord, Nt as openConversationProjection, On as getTurnRecord, Tn as abandonTurnRecord, dn as PluginCredentialFailureError, hn as AuthorizationFlowDisabledError, mr as isTurnExecutionLimitExceededError,
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
4
|
-
import { _ as sameActorIdentity, p as agentInstructionProvenance } from "./media-
|
|
5
|
-
import {
|
|
6
|
-
import { E as markAgentInvocationSteered, H as TurnInputCommitLostError, K as isTurnInputCommitLostError, L as agentTypeInstructions, O as reportReplacedAgentInvocation, R as agentTypeStartsWithParentHistory, S as markAgentInvocationMailboxAppended, T as markAgentInvocationRunning, W as getConversationTurnBoundaryError, _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, f as getAgentInvocationMessageId, m as getAgentInvocationTurnId, n as completeAgentInvocation, r as createAgentInvocation, s as getActiveAgentInvocationForConversation, w as markAgentInvocationPaused, y as isTerminalAgentInvocation } from "./store-
|
|
7
|
-
import {
|
|
8
|
-
import { C as maybePostAutomatedTurnLimitNotice, D as recordFinishedTurnForAutomatedLimit, O as resetAutomatedTurnLimit } from "./session-stop-
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
10
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
11
|
-
import { a as persistThreadStateById, n as getPersistedSandboxState, r as getPersistedThreadState } from "./thread-state-
|
|
1
|
+
import { Dn as failTurnRecord, Nt as openConversationProjection, On as getTurnRecord, Tn as abandonTurnRecord, dn as PluginCredentialFailureError, hn as AuthorizationFlowDisabledError, mr as isTurnExecutionLimitExceededError, wn as saveTurnCheckpoint, yr as getTerminalAssistantMessages } from "./turn-session-routing-BFVp8TbU.js";
|
|
2
|
+
import { n as botConfig } from "./config-DrAeD8sr.js";
|
|
3
|
+
import { j as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-D3jhuP66.js";
|
|
4
|
+
import { _ as sameActorIdentity, p as agentInstructionProvenance } from "./media-U6Tuz6Mi.js";
|
|
5
|
+
import { Dt as withoutSavedSteeringMessages, Et as buildSteeringPiMessage, Nt as readBlockedReport, gt as stopChildAgentsOf, vt as recordSubagentEnded, yt as recordSubagentStarted } from "./agent-runner-BiHsH8O_.js";
|
|
6
|
+
import { E as markAgentInvocationSteered, H as TurnInputCommitLostError, K as isTurnInputCommitLostError, L as agentTypeInstructions, O as reportReplacedAgentInvocation, R as agentTypeStartsWithParentHistory, S as markAgentInvocationMailboxAppended, T as markAgentInvocationRunning, W as getConversationTurnBoundaryError, _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, f as getAgentInvocationMessageId, m as getAgentInvocationTurnId, n as completeAgentInvocation, r as createAgentInvocation, s as getActiveAgentInvocationForConversation, w as markAgentInvocationPaused, y as isTerminalAgentInvocation } from "./store-Di0E4EvU.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-DgtX9DaJ.js";
|
|
8
|
+
import { C as maybePostAutomatedTurnLimitNotice, D as recordFinishedTurnForAutomatedLimit, O as resetAutomatedTurnLimit } from "./session-stop-DuUB1rwQ.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-BF2XEeQz.js";
|
|
10
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CTLEIEOn.js";
|
|
11
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, r as getPersistedThreadState } from "./thread-state-BQ1T3eeF.js";
|
|
12
12
|
import { isDeepStrictEqual } from "node:util";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
// src/chat/runtime/turn-execution.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { Xn as isInvalidConversationRecordError, Yn as isFinalAttempt, qn as hasConversationStop } from "./turn-session-routing-
|
|
3
|
-
import { y as isProviderRetryError } from "./client-
|
|
4
|
-
import { i as getChatConfig } from "./config-
|
|
5
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
6
|
-
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-
|
|
7
|
-
import { C as requestAnotherSlice, T as startConversationWork, b as recordConversationRetry, d as countPendingConversationMessages, f as deadLetterAttempt, g as getConversationWorkState, i as beginConversationResume, l as completeConversationStop, m as ensureConversationWake, o as checkInConversationWork, p as drainConversationMailbox, s as clearConsumedConversationWake, t as ackMessages, u as completeConversationWork, x as releaseConversationWork, y as recordAttemptFailure } from "./store-
|
|
2
|
+
import { Xn as isInvalidConversationRecordError, Yn as isFinalAttempt, qn as hasConversationStop } from "./turn-session-routing-BFVp8TbU.js";
|
|
3
|
+
import { y as isProviderRetryError } from "./client-B0jlQSgO.js";
|
|
4
|
+
import { i as getChatConfig } from "./config-DrAeD8sr.js";
|
|
5
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-DuwXUuIY.js";
|
|
6
|
+
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-CEeLYkSj.js";
|
|
7
|
+
import { C as requestAnotherSlice, T as startConversationWork, b as recordConversationRetry, d as countPendingConversationMessages, f as deadLetterAttempt, g as getConversationWorkState, i as beginConversationResume, l as completeConversationStop, m as ensureConversationWake, o as checkInConversationWork, p as drainConversationMailbox, s as clearConsumedConversationWake, t as ackMessages, u as completeConversationWork, x as releaseConversationWork, y as recordAttemptFailure } from "./store-BF2XEeQz.js";
|
|
8
8
|
// src/chat/task-execution/attempt-selection.ts
|
|
9
9
|
function selectContiguousTurnBatch(messages) {
|
|
10
10
|
const first = messages[0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "junior_review_items" ADD COLUMN "added_by_turn_id" text;
|
package/migrations/AGENTS.md
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
# SQL Migrations
|
|
2
2
|
|
|
3
|
-
`src/db/schema.ts` is the Drizzle schema entry point. This directory is the
|
|
4
|
-
append-only history that brings an existing database to that schema.
|
|
5
|
-
`src/chat/conversations/sql/migrations.ts` owns loading, locking, and the
|
|
6
|
-
bridge-version guard.
|
|
7
|
-
|
|
8
|
-
## Rules
|
|
9
|
-
|
|
10
3
|
- Never edit, rename, reorder, or delete an applied migration or its
|
|
11
4
|
metadata. Add a new migration to correct it.
|
|
12
|
-
- Change the table under `src/db/schema/`, then run
|
|
13
|
-
`pnpm --filter @sentry/junior db:generate --name <name>`. Commit the SQL,
|
|
14
|
-
`meta/_journal.json`, and the snapshot together.
|
|
15
5
|
- Put fixed row transformations in the migration that needs them.
|
|
16
|
-
-
|
|
17
|
-
|
|
6
|
+
- Keep the guard in `src/chat/conversations/sql/migrations.ts` that makes a
|
|
7
|
+
schema without the core Drizzle journal upgrade through
|
|
8
|
+
`@sentry/junior@0.107.1` first.
|