@sentry/junior 0.221.1 → 0.223.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-CY49A4pN.js → agent-Bzbf92vv.js} +97 -42
- package/dist/{agent-hooks-BnZBgDPe.js → agent-hooks-DZU5nsd1.js} +60 -15
- package/dist/{agent-runner-BC8iSAfE.js → agent-runner-2VQ9WhkG.js} +6 -5
- package/dist/api/schema.d.ts +209 -11
- package/dist/api/schema.js +4 -4
- package/dist/api.js +18 -515
- package/dist/{app-BYD2Nyji.d.ts → app-BbSD6EtD.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +241 -39
- package/dist/{auth-pause-state-CJwPs1cT.js → auth-pause-state-Bn2vX4PA.js} +41 -7
- package/dist/{briefs-BSOhy23c.js → briefs-BJPfCrlT.js} +6 -6
- package/dist/{catalog-runtime-0oMD2jas.js → catalog-runtime-BthunUDD.js} +1 -1
- package/dist/{checkpoint-Bl47qAIY.js → checkpoint-Deu-OVb3.js} +11 -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-BrThxuRI.js → client-DjC6-6iU.js} +56 -6
- package/dist/{config-CEuC6CFj.js → config-CtoUVs72.js} +6 -7
- package/dist/{conversation-BSRGzJmY.js → conversation-1HUoZr2l.js} +75 -4
- package/dist/{conversation-privacy-aHn1OwXL.js → conversation-privacy-xS1t92xa.js} +1 -1
- package/dist/{credential-sync-Dht95TJQ.js → credential-sync-CKdXEUDO.js} +180 -31
- package/dist/{execution-stats-D9m2kmmg.js → execution-stats-CrXs9vSH.js} +3 -3
- package/dist/{executor-3IasVOqK.js → executor-AOhG9X1t.js} +1 -1
- package/dist/history-yaSjGMD_.d.ts +65 -0
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-36liupTq.js → job-queue-CNd9cpIy.js} +1 -1
- package/dist/{logging-gR24QCo_.js → logging-DiN3o3nB.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BvNIWVA3.js → oauth-callback-server-Ca0VLUEw.js} +2 -2
- package/dist/{pending-auth-Cl4BsopG.js → pending-auth-D7vmttn_.js} +2 -2
- package/dist/{profile-VmUpQuOm.js → profile-BsNrw8lj.js} +4 -4
- package/dist/{prompt-BkaHwBW0.js → prompt-90miy8VV.js} +1 -1
- package/dist/{registry-BATk1X_v.js → registry-Dankt-Pl.js} +1 -1
- package/dist/reporting-window-DbUqng0P.js +229 -0
- package/dist/{resolve-Cf79l1H8.js → resolve-B38CpJe2.js} +2 -2
- package/dist/{runner-DNN4EPj_.js → runner-Ck5rEjCm.js} +21 -10
- package/dist/{sandbox-egress-signals-C-HUJW1G.js → sandbox-egress-signals-BOfFkvly.js} +1 -1
- package/dist/{schema-YPJXVcOW.js → schema-RpbW5Od2.js} +5 -128
- package/dist/{short-title-Cy3D8vg1.js → short-title-BHd_jUFX.js} +2 -2
- package/dist/{skills-DMQkR1Yu.js → skills-DbP4TDft.js} +2 -2
- package/dist/{spawn-BHk7RpYw.js → spawn-DzXc_PKO.js} +2 -2
- package/dist/{stats-8Bzht8zO.js → stats-pNGp3G5q.js} +56 -15
- package/dist/{task-queue-Cm4FhC0n.js → task-queue-Cy9y1foT.js} +3 -3
- package/dist/{task-runner-dQwOhCYs.js → task-runner-DI1FBJFJ.js} +8 -8
- package/dist/{thread-state-D0Ktlch_.js → thread-state-DXgxOYpZ.js} +5 -5
- package/dist/{turn-execution-BfLZfabf.js → turn-execution-BNOXrZ-M.js} +3 -3
- package/dist/{turn-lifecycle-D75pWL8e.js → turn-lifecycle-Bjf6y2GO.js} +1 -1
- package/dist/{validation-D5fdtuzG.js → validation-D5CIslEu.js} +1 -1
- package/dist/{version-DErORHQC.js → version-_ZQFlslB.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-IHMPbDay.js → web-authorization-6mmfS_o-.js} +1 -1
- package/dist/web-input-BJpWm6go.js +899 -0
- package/dist/{work-CaaSjlNk.js → work-DvIlJR3C.js} +9 -9
- package/dist/{worker-Eom9CfBl.js → worker-D1qidg-Y.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 +4 -4
- package/dist/history-ClE4toxe.d.ts +0 -32
- package/dist/reporting-schema-DosTN__Q.js +0 -105
- package/dist/web-input-DskRJhrK.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 {
|
|
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-Bzbf92vv.js";
|
|
3
|
+
import { Jt as getSqlExecutor, Kt as getConversationStore, Wt as getConversationEventStore } from "./agent-hooks-DZU5nsd1.js";
|
|
4
|
+
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-AOhG9X1t.js";
|
|
5
|
+
import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-Deu-OVb3.js";
|
|
6
|
+
import { pt as appendAndEnqueueInboundMessage } from "./stats-pNGp3G5q.js";
|
|
7
|
+
import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-D7vmttn_.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-Bjf6y2GO.js";
|
|
9
|
+
import { n as executeTurn, t as AgentRunError } from "./turn-execution-BNOXrZ-M.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-DXgxOYpZ.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-DjC6-6iU.js";
|
|
3
|
+
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-DiN3o3nB.js";
|
|
4
|
+
import { a as getChatConfig } from "./config-CtoUVs72.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-pNGp3G5q.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-CNd9cpIy.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
|
+
);
|