@sentry/junior 0.237.0 → 0.238.1
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/{context-0Et9iVSB.js → actor-BTtLaeWy.js} +1 -96
- package/dist/admin-leAJ2k0P.js +33 -0
- package/dist/{agent-hooks-otHGbhBx.js → agent-hooks-p3UA9FI1.js} +1423 -2973
- package/dist/{agent-runner-DMAsnPb9.js → agent-runner-DjQSEVuD.js} +171 -139
- package/dist/api/schema.d.ts +4 -0
- package/dist/api/schema.js +3 -2
- package/dist/api.d.ts +1 -1
- package/dist/api.js +31 -24
- package/dist/{app-MEd7wbF0.d.ts → app-FB2hmHpZ.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +26 -22
- package/dist/{briefs-DDA1ugXk.js → briefs-mzUaJkBX.js} +4 -4
- package/dist/{catalog-runtime-DlXuhrmk.js → catalog-runtime-xq-njrMs.js} +1 -1
- package/dist/{checkpoint-BlIIiHG5.js → checkpoint-C37Xgtj-.js} +19 -10
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +6 -2
- package/dist/cli/plugins.js +5 -3
- package/dist/cli/run.d.ts +2 -1
- package/dist/cli/run.js +2 -1
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-CPMbTmJU.js → client-BZdqKg6S.js} +2 -2
- package/dist/{config-CxpPG6nR.js → config-CGK_VplU.js} +2 -2
- package/dist/{conversation-9Fxa1Zbq.js → conversation-DwD-vquD.js} +3 -517
- package/dist/{conversation-privacy-Dbkdvozu.js → conversation-privacy-Ci3QLNOb.js} +1 -1
- package/dist/{credential-sync-D9yGg3q5.js → credential-sync-BBeYpK4k.js} +15 -14
- package/dist/{db-Ca9Nt5ci.d.ts → db-CWZP77Ex.d.ts} +1 -1
- package/dist/{executor-BNxfDS1V.js → executor-DmIad4GI.js} +4 -2
- package/dist/experimental-Qn9rKLgx.js +50 -0
- package/dist/history-BLTUgFYO.js +518 -0
- package/dist/{images-D6Y3FJDQ.js → images-1xUjTHGf.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-Dq5_zt_l.js → job-queue-CXpx6KfD.js} +1 -1
- package/dist/{logging-rB_ngE_R.js → logging-Bne7JUXI.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-5T1S1v_1.js → oauth-authorization-O8N3knp9.js} +1 -1
- package/dist/{oauth-callback-server-Csw7RssK.js → oauth-callback-server-Cb-HPZPS.js} +2 -2
- package/dist/pending-auth-C6w4Gwve.js +433 -0
- package/dist/{profile-D6apIG2N.js → profile-DIcHBAxe.js} +5 -7
- package/dist/{prompt-Ctwy6hSI.js → prompt-CMU-B4FA.js} +1 -1
- package/dist/{registry-zfTzTHe6.js → registry-VSrEYeaD.js} +111 -3
- package/dist/{resolve-sJtTzuBO.js → resolve-BkpWmZgN.js} +2 -2
- package/dist/{runner-DkCk8cbc.js → runner-52ezCnZF.js} +10 -10
- package/dist/{sandbox-egress-signals-tSQ8OEcw.js → sandbox-egress-signals-Cmhf3P6Y.js} +1 -1
- package/dist/{schema-C5bgOpRg.js → schema-CxWAN2zq.js} +1 -1
- package/dist/{skills-BVpr_Gnv.js → skills-PHvy-ZgH.js} +2 -2
- package/dist/{spawn-CJhmyE4E.js → spawn-CY34_HCm.js} +2 -2
- package/dist/{store-DoewL5mG.d.ts → store-BxxbxBlm.d.ts} +7 -0
- package/dist/{task-queue-BAiZ7_CF.js → task-queue-B9uJqkal.js} +3 -3
- package/dist/{task-runner-Bh8XONXT.js → task-runner-BZUoctJ1.js} +20 -10
- package/dist/{thread-state-BnQln4jO.js → thread-state-SnFcB9Rk.js} +6 -5
- package/dist/{turn-failure-response-Ba7_kItn.js → turn-failure-response-CrSc1Vtn.js} +10 -9
- package/dist/{turn-lifecycle-D6CTbkb9.js → turn-lifecycle-D49hJbjm.js} +1 -1
- package/dist/{turn-session-routing-DNevs9H7.js → turn-session-routing-cMvumCLK.js} +1 -1
- package/dist/{validation-BNPhuAvt.js → validation-DsLyiOfn.js} +1 -1
- package/dist/{version-EQ4MWuUJ.js → version-Dayi_ng2.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DF3HTfW5.js +1636 -0
- package/dist/{web-authorization-DDt4FZld.js → web-authorization-Dg_R1tMc.js} +6 -6
- package/dist/{web-input-C56ivZuH.js → web-input-qVi8134S.js} +63 -433
- package/dist/{work-DJ7hb9Ul.js → work-BbcghZZp.js} +9 -10
- package/dist/{worker-DiiV8Lba.js → worker-B-uRQzKw.js} +5 -5
- package/migrations/0048_user_admin.sql +1 -0
- package/migrations/meta/0048_snapshot.json +3720 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/pending-auth-moCA2mTc.js +0 -59
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-
|
|
5
|
-
import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-
|
|
6
|
-
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-
|
|
7
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
8
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-
|
|
2
|
+
import { Ln as AuthorizationFlowDisabledError, _t as AgentInvocationLimitError, gt as AgentInvocationBusyError, ht as createAgentInvocationSchema, kt as appendAndEnqueueInboundMessage, m as PluginCredentialFailureError, mt as agentInvocationSchema, pt as agentBindingSchema } from "./agent-runner-DjQSEVuD.js";
|
|
3
|
+
import { c as getConversationEventStore, f as getSqlExecutor, u as getConversationStore } from "./viewer-DF3HTfW5.js";
|
|
4
|
+
import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-DmIad4GI.js";
|
|
5
|
+
import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-C37Xgtj-.js";
|
|
6
|
+
import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-O8N3knp9.js";
|
|
7
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D49hJbjm.js";
|
|
8
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-SnFcB9Rk.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
import { and, asc, count, eq, inArray } from "drizzle-orm";
|
|
@@ -212,12 +212,11 @@ var AgentRunError = class extends Error {
|
|
|
212
212
|
*
|
|
213
213
|
* A paused Run, or a Run waiting for authorization, leaves the Turn open. A
|
|
214
214
|
* save error also leaves the Turn open so the worker can retry or recover it.
|
|
215
|
-
* A timeout aborts the Run before this function reports the failure.
|
|
216
215
|
*/
|
|
217
|
-
async function executeTurn(agentRunner, run, saveResult
|
|
216
|
+
async function executeTurn(agentRunner, run, saveResult) {
|
|
218
217
|
let outcome;
|
|
219
218
|
try {
|
|
220
|
-
outcome = await
|
|
219
|
+
outcome = await agentRunner.run(run);
|
|
221
220
|
} catch (error) {
|
|
222
221
|
throw new AgentRunError(error);
|
|
223
222
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { At as
|
|
3
|
-
import { v as isProviderRetryError } from "./client-
|
|
4
|
-
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-
|
|
5
|
-
import { i as getChatConfig } from "./config-
|
|
6
|
-
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-
|
|
2
|
+
import { At as beginConversationResume, Bt as ensureConversationWake, Dt as ackMessages, Ft as completeConversationStop, Gt as recordAttemptFailure, Ht as getConversationWorkState, It as completeConversationWork, Kt as recordConversationRetry, Lt as countPendingConversationMessages, Mt as checkInConversationWork, Nt as clearConsumedConversationWake, Rt as deadLetterAttempt, Yt as requestAnotherSlice, Zt as startConversationWork, in as isInvalidConversationRecordError, qt as releaseConversationWork, rn as isFinalAttempt, tn as hasConversationStop, zt as drainConversationMailbox } from "./agent-runner-DjQSEVuD.js";
|
|
3
|
+
import { v as isProviderRetryError } from "./client-BZdqKg6S.js";
|
|
4
|
+
import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-Bne7JUXI.js";
|
|
5
|
+
import { i as getChatConfig } from "./config-CGK_VplU.js";
|
|
6
|
+
import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-CXpx6KfD.js";
|
|
7
7
|
//#region src/chat/task-execution/worker.ts
|
|
8
8
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
9
9
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "junior_users" ADD COLUMN "is_admin" boolean DEFAULT false NOT NULL;
|