@sentry/junior 0.221.0 → 0.222.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-CFrfUdN5.js → agent-7kKtDe-6.js} +47 -27
- package/dist/{agent-hooks-kjLDY-Aa.js → agent-hooks-DkriF84n.js} +9 -8
- package/dist/{agent-runner-DMMa36Zl.js → agent-runner-D0ImXS7U.js} +6 -5
- package/dist/api/schema.d.ts +51 -2
- package/dist/api/schema.js +4 -4
- package/dist/api.js +18 -515
- package/dist/{app-BYD2Nyji.d.ts → app-C0zbsnr7.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +153 -32
- package/dist/{auth-pause-state-TdhAyYM4.js → auth-pause-state-3OT67TA8.js} +52 -7
- package/dist/{briefs-CIN2DMSo.js → briefs-CNH1ztn5.js} +4 -4
- package/dist/{catalog-runtime-D1v0KsgY.js → catalog-runtime-XH_LFA_7.js} +1 -1
- package/dist/{checkpoint-B2-uc-1h.js → checkpoint-CRod8es5.js} +8 -7
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DIe9JhwF.js → client-CcSboWx_.js} +2 -2
- package/dist/{config-0_JixokJ.js → config-CGYv-YPE.js} +2 -2
- package/dist/{conversation-BSRGzJmY.js → conversation-BBDt88di.js} +46 -3
- package/dist/{conversation-privacy-6NLCEkzx.js → conversation-privacy-BGjdDVWD.js} +1 -1
- package/dist/{credential-sync-Dqg2o90r.js → credential-sync-BfzGNruT.js} +125 -30
- package/dist/{execution-stats-vnXVMVeu.js → execution-stats-D97ePWuM.js} +3 -3
- package/dist/{executor-CmZKtNpH.js → executor-BLBZ-UB8.js} +1 -1
- package/dist/{history-ClE4toxe.d.ts → history-CaV8Ww7M.d.ts} +16 -1
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-B1k3woMW.js → job-queue-_8gxwDzt.js} +1 -1
- package/dist/{logging-D2YJv_PA.js → logging-qmsMdU0y.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BQtO5l5M.js → oauth-callback-server-Mjfm46A5.js} +2 -2
- package/dist/{pending-auth-DuSNoTpn.js → pending-auth-_1Ry-_Bw.js} +2 -2
- package/dist/{profile-C3TEFAVI.js → profile-DbG8AlNd.js} +4 -4
- package/dist/{prompt-BkaHwBW0.js → prompt-B8rCQI7K.js} +1 -1
- package/dist/{registry-Bp0kd2xe.js → registry-DGyQCsiy.js} +1 -1
- package/dist/reporting-window-DbUqng0P.js +229 -0
- package/dist/{resolve-BABNNBLL.js → resolve-D5SqDbCA.js} +2 -2
- package/dist/{runner-Bvn90ijl.js → runner-BRAFjJhe.js} +21 -10
- package/dist/{sandbox-egress-signals-DLfYAOiO.js → sandbox-egress-signals-CdI1aVHT.js} +1 -1
- package/dist/{schema-YPJXVcOW.js → schema-CTOODa3L.js} +5 -128
- package/dist/{short-title-C2fM-ERl.js → short-title-CB2fxEyx.js} +2 -2
- package/dist/{skills-D1otDVYp.js → skills-BoS3b8cg.js} +2 -2
- package/dist/{spawn-C-fAS-Rk.js → spawn-BXCU1udr.js} +2 -2
- package/dist/{stats-BfUFTUrM.js → stats-qUXQZq-w.js} +52 -13
- package/dist/{task-queue-VdYCCwO0.js → task-queue-Di_q8922.js} +3 -3
- package/dist/{task-runner-6tzKHNbM.js → task-runner-4rCppQMo.js} +8 -8
- package/dist/{thread-state-CD_fsyrM.js → thread-state-2Paza8DV.js} +5 -5
- package/dist/{turn-execution-eVhqozjK.js → turn-execution--F7a9kEU.js} +3 -3
- package/dist/{turn-lifecycle-CxAtVANu.js → turn-lifecycle-f-y0Irpi.js} +1 -1
- package/dist/{validation-CMERqrCD.js → validation-Be9lSORU.js} +1 -1
- package/dist/{version-C8XFxpkQ.js → version-BydrOZMQ.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-Dq2NDhY0.js → web-authorization-BdfOkTuG.js} +1 -1
- package/dist/web-input-DegYUyKU.js +899 -0
- package/dist/{work-DCwaUeWu.js → work-Citqpnfc.js} +9 -9
- package/dist/{worker-grswNVoc.js → worker-Bn_HFyvM.js} +5 -5
- package/migrations/0044_event_automation_channel_destinations.sql +36 -0
- package/migrations/meta/0044_snapshot.json +3473 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +5 -5
- package/dist/reporting-schema-DosTN__Q.js +0 -105
- package/dist/web-input-Bdh_rCZ7.js +0 -392
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { $ as AuthorizationFlowDisabledError, A as createAgentInvocationSchema, M as AgentInvocationLimitError, O as agentBindingSchema, f as PluginCredentialFailureError, j as AgentInvocationBusyError, k as agentInvocationSchema } from "./agent-
|
|
3
|
-
import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-
|
|
4
|
-
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-
|
|
5
|
-
import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-
|
|
6
|
-
import { pt as appendAndEnqueueInboundMessage } from "./stats-
|
|
7
|
-
import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-
|
|
8
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
9
|
-
import { n as executeTurn, t as AgentRunError } from "./turn-execution
|
|
10
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-
|
|
2
|
+
import { $ as AuthorizationFlowDisabledError, A as createAgentInvocationSchema, M as AgentInvocationLimitError, O as agentBindingSchema, f as PluginCredentialFailureError, j as AgentInvocationBusyError, k as agentInvocationSchema } from "./agent-7kKtDe-6.js";
|
|
3
|
+
import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-DkriF84n.js";
|
|
4
|
+
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-BLBZ-UB8.js";
|
|
5
|
+
import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-CRod8es5.js";
|
|
6
|
+
import { pt as appendAndEnqueueInboundMessage } from "./stats-qUXQZq-w.js";
|
|
7
|
+
import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-_1Ry-_Bw.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-f-y0Irpi.js";
|
|
9
|
+
import { n as executeTurn, t as AgentRunError } from "./turn-execution--F7a9kEU.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-2Paza8DV.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
13
13
|
import { and, asc, count, eq, inArray } from "drizzle-orm";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { b as isProviderRetryError } from "./client-
|
|
3
|
-
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-
|
|
4
|
-
import { a as getChatConfig } from "./config-
|
|
5
|
-
import { At as recordConversationRetry, Ct as drainConversationMailbox, Et as getConversationWorkState, Ft as startConversationWork, Ht as isInvalidConversationRecordError, Nt as requestAnotherSlice, St as deadLetterAttempt, Vt as isFinalAttempt, _t as clearConsumedConversationWake, bt as completeConversationWork, dt as ackMessages, gt as checkInConversationWork, jt as releaseConversationWork, kt as recordAttemptFailure, mt as beginConversationResume, wt as ensureConversationWake, xt as countPendingConversationMessages, yt as completeConversationStop, zt as hasConversationStop } from "./stats-
|
|
2
|
+
import { b as isProviderRetryError } from "./client-CcSboWx_.js";
|
|
3
|
+
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-qmsMdU0y.js";
|
|
4
|
+
import { a as getChatConfig } from "./config-CGYv-YPE.js";
|
|
5
|
+
import { At as recordConversationRetry, Ct as drainConversationMailbox, Et as getConversationWorkState, Ft as startConversationWork, Ht as isInvalidConversationRecordError, Nt as requestAnotherSlice, St as deadLetterAttempt, Vt as isFinalAttempt, _t as clearConsumedConversationWake, bt as completeConversationWork, dt as ackMessages, gt as checkInConversationWork, jt as releaseConversationWork, kt as recordAttemptFailure, mt as beginConversationResume, wt as ensureConversationWake, xt as countPendingConversationMessages, yt as completeConversationStop, zt as hasConversationStop } from "./stats-qUXQZq-w.js";
|
|
6
6
|
import { c as ConversationQueueMessageRejectedError } from "./vercel-queue-DIkVcfK4.js";
|
|
7
|
-
import { a as getTurnRequestDeadline } from "./job-queue-
|
|
7
|
+
import { a as getTurnRequestDeadline } from "./job-queue-_8gxwDzt.js";
|
|
8
8
|
//#region src/chat/task-execution/worker.ts
|
|
9
9
|
var worker_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
UPDATE "junior_event_tasks"
|
|
2
|
+
SET "task_json" = jsonb_set(
|
|
3
|
+
"task_json",
|
|
4
|
+
'{destination}',
|
|
5
|
+
("task_json"->'destination') - 'threadTs',
|
|
6
|
+
false
|
|
7
|
+
)
|
|
8
|
+
WHERE "task_json"->'destination' ? 'threadTs';
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
UPDATE "junior_event_tasks"
|
|
11
|
+
SET "task_json" = jsonb_set(
|
|
12
|
+
"task_json",
|
|
13
|
+
'{outcomes}',
|
|
14
|
+
(
|
|
15
|
+
SELECT jsonb_agg(
|
|
16
|
+
CASE
|
|
17
|
+
WHEN "outcome"->'destination' ? 'threadTs'
|
|
18
|
+
THEN jsonb_set(
|
|
19
|
+
"outcome",
|
|
20
|
+
'{destination}',
|
|
21
|
+
("outcome"->'destination') - 'threadTs',
|
|
22
|
+
false
|
|
23
|
+
)
|
|
24
|
+
ELSE "outcome"
|
|
25
|
+
END
|
|
26
|
+
ORDER BY "ordinality"
|
|
27
|
+
)
|
|
28
|
+
FROM jsonb_array_elements("task_json"->'outcomes') WITH ORDINALITY AS "items"("outcome", "ordinality")
|
|
29
|
+
),
|
|
30
|
+
false
|
|
31
|
+
)
|
|
32
|
+
WHERE EXISTS (
|
|
33
|
+
SELECT 1
|
|
34
|
+
FROM jsonb_array_elements("task_json"->'outcomes') AS "items"("outcome")
|
|
35
|
+
WHERE "outcome"->'destination' ? 'threadTs'
|
|
36
|
+
);
|