@sentry/junior 0.220.0 → 0.221.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-CJ_-GRPT.js → agent-CFrfUdN5.js} +63 -69
- package/dist/{agent-hooks-DsFlR7gi.js → agent-hooks-kjLDY-Aa.js} +6 -6
- package/dist/{agent-runner-D82gVT0O.js → agent-runner-DMMa36Zl.js} +5 -5
- package/dist/api.js +15 -15
- package/dist/app.js +31 -31
- package/dist/{auth-pause-state-DL5YJXnT.js → auth-pause-state-TdhAyYM4.js} +6 -6
- package/dist/{briefs-CvXfErSa.js → briefs-CIN2DMSo.js} +2 -2
- package/dist/{catalog-runtime-DSEzvNVT.js → catalog-runtime-D1v0KsgY.js} +1 -1
- package/dist/{checkpoint-DfpPyo-x.js → checkpoint-B2-uc-1h.js} +6 -6
- 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-pBijNHYx.js → client-DIe9JhwF.js} +2 -2
- package/dist/{config-DYi2mx6N.js → config-0_JixokJ.js} +2 -2
- package/dist/{conversation-privacy-TiU3SGZh.js → conversation-privacy-6NLCEkzx.js} +1 -1
- package/dist/{credential-sync-hBiu11zS.js → credential-sync-Dqg2o90r.js} +21 -21
- package/dist/{execution-stats-DAWGg9WH.js → execution-stats-vnXVMVeu.js} +3 -3
- package/dist/{executor-t2OCqFgz.js → executor-CmZKtNpH.js} +1 -1
- package/dist/instrumentation.js +8 -6
- package/dist/{job-queue-Deruj7qS.js → job-queue-B1k3woMW.js} +1 -1
- package/dist/{logging-wngKXw7u.js → logging-D2YJv_PA.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-D1jNG0lr.js → oauth-callback-server-BQtO5l5M.js} +2 -2
- package/dist/{pending-auth-DJa76b68.js → pending-auth-DuSNoTpn.js} +2 -2
- package/dist/{profile-Mv2uNsKJ.js → profile-C3TEFAVI.js} +4 -4
- package/dist/{registry-6_Zog2YF.js → registry-Bp0kd2xe.js} +1 -1
- package/dist/{resolve-BI3Dfm9p.js → resolve-BABNNBLL.js} +2 -2
- package/dist/{runner-CzrmejYr.js → runner-Bvn90ijl.js} +10 -10
- package/dist/{sandbox-egress-signals-BcSCyPKx.js → sandbox-egress-signals-DLfYAOiO.js} +1 -1
- package/dist/{short-title-Bs3wWE1M.js → short-title-C2fM-ERl.js} +2 -2
- package/dist/{skills-DOE_QPVJ.js → skills-D1otDVYp.js} +2 -2
- package/dist/{spawn-DylJoJnT.js → spawn-C-fAS-Rk.js} +2 -2
- package/dist/{stats--FeHjGJ1.js → stats-BfUFTUrM.js} +33 -8
- package/dist/{task-queue-CSEo5Ly9.js → task-queue-VdYCCwO0.js} +3 -3
- package/dist/{task-runner-BDwZj8OX.js → task-runner-6tzKHNbM.js} +7 -7
- package/dist/{thread-state-CpZAVpdG.js → thread-state-CD_fsyrM.js} +5 -5
- package/dist/{turn-execution-AROC0tUZ.js → turn-execution-eVhqozjK.js} +3 -3
- package/dist/{turn-lifecycle-CGNjfgbT.js → turn-lifecycle-CxAtVANu.js} +1 -1
- package/dist/{validation-QFwh6qzp.js → validation-CMERqrCD.js} +1 -1
- package/dist/{version-FAS9qrpM.js → version-C8XFxpkQ.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-ZAQcIE4e.js → web-authorization-Dq2NDhY0.js} +1 -1
- package/dist/{web-input-C5nhIX0j.js → web-input-Bdh_rCZ7.js} +4 -4
- package/dist/{work-BNw2Vmxi.js → work-DCwaUeWu.js} +9 -9
- package/dist/{worker-9Us77-te.js → worker-grswNVoc.js} +5 -5
- package/migrations/0043_scheduled_automation_channel_destinations.sql +36 -0
- package/migrations/meta/0043_snapshot.json +3610 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ht as getConversationEventStore } from "./agent-hooks-
|
|
2
|
-
import { n as runAgentWithTimeout } from "./agent-runner-
|
|
3
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
1
|
+
import { Ht as getConversationEventStore } from "./agent-hooks-kjLDY-Aa.js";
|
|
2
|
+
import { n as runAgentWithTimeout } from "./agent-runner-DMMa36Zl.js";
|
|
3
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CxAtVANu.js";
|
|
4
4
|
//#region src/chat/runtime/turn-execution.ts
|
|
5
5
|
/** An error thrown while the agent advances a Run. */
|
|
6
6
|
var AgentRunError = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ht as getConversationEventStore } from "./agent-hooks-
|
|
1
|
+
import { Ht as getConversationEventStore } from "./agent-hooks-kjLDY-Aa.js";
|
|
2
2
|
//#region src/chat/conversations/turn-lifecycle.ts
|
|
3
3
|
/** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
|
|
4
4
|
var ConversationTurnLifecycleService = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-D1v0KsgY.js";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
//#region src/chat/plugins/validation.ts
|
|
5
5
|
var validation_exports = /* @__PURE__ */ __exportAll({
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
1
|
+
import { t as JUNIOR_VERSION } from "./version-C8XFxpkQ.js";
|
|
2
2
|
export { JUNIOR_VERSION };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as getStateAdapter } from "./profile-
|
|
1
|
+
import { w as getStateAdapter } from "./profile-C3TEFAVI.js";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
//#region src/chat/conversations/web-authorization.ts
|
|
4
4
|
const WEB_AUTHORIZATION_PREFIX = "junior:web_authorization:v1";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as logWarn } from "./logging-
|
|
2
|
-
import { s as getSlackBotToken } from "./config-
|
|
1
|
+
import { f as logWarn } from "./logging-D2YJv_PA.js";
|
|
2
|
+
import { s as getSlackBotToken } from "./config-0_JixokJ.js";
|
|
3
3
|
import "./context-Bplcgypl.js";
|
|
4
|
-
import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-
|
|
5
|
-
import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats
|
|
4
|
+
import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-kjLDY-Aa.js";
|
|
5
|
+
import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats-BfUFTUrM.js";
|
|
6
6
|
import { t as healthReportSchema } from "./reporting-schema-DosTN__Q.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { createHash } from "node:crypto";
|
|
@@ -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-CFrfUdN5.js";
|
|
3
|
+
import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-kjLDY-Aa.js";
|
|
4
|
+
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-CmZKtNpH.js";
|
|
5
|
+
import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-B2-uc-1h.js";
|
|
6
|
+
import { pt as appendAndEnqueueInboundMessage } from "./stats-BfUFTUrM.js";
|
|
7
|
+
import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-DuSNoTpn.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CxAtVANu.js";
|
|
9
|
+
import { n as executeTurn, t as AgentRunError } from "./turn-execution-eVhqozjK.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-CD_fsyrM.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-DIe9JhwF.js";
|
|
3
|
+
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-D2YJv_PA.js";
|
|
4
|
+
import { a as getChatConfig } from "./config-0_JixokJ.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-BfUFTUrM.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-B1k3woMW.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_scheduler_tasks"
|
|
2
|
+
SET "record" = jsonb_set(
|
|
3
|
+
"record",
|
|
4
|
+
'{destination}',
|
|
5
|
+
("record"->'destination') - 'threadTs',
|
|
6
|
+
false
|
|
7
|
+
)
|
|
8
|
+
WHERE "record"->'destination' ? 'threadTs';
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
UPDATE "junior_scheduler_tasks"
|
|
11
|
+
SET "record" = jsonb_set(
|
|
12
|
+
"record",
|
|
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("record"->'outcomes') WITH ORDINALITY AS "items"("outcome", "ordinality")
|
|
29
|
+
),
|
|
30
|
+
false
|
|
31
|
+
)
|
|
32
|
+
WHERE EXISTS (
|
|
33
|
+
SELECT 1
|
|
34
|
+
FROM jsonb_array_elements("record"->'outcomes') AS "items"("outcome")
|
|
35
|
+
WHERE "outcome"->'destination' ? 'threadTs'
|
|
36
|
+
);
|