@sentry/junior 0.220.0 → 0.221.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/{agent-CJ_-GRPT.js → agent-CY49A4pN.js} +63 -69
- package/dist/{agent-hooks-DsFlR7gi.js → agent-hooks-BnZBgDPe.js} +6 -6
- package/dist/{agent-runner-D82gVT0O.js → agent-runner-BC8iSAfE.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-CJwPs1cT.js} +6 -6
- package/dist/{briefs-CvXfErSa.js → briefs-BSOhy23c.js} +2 -2
- package/dist/{catalog-runtime-DSEzvNVT.js → catalog-runtime-0oMD2jas.js} +1 -1
- package/dist/{checkpoint-DfpPyo-x.js → checkpoint-Bl47qAIY.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-BrThxuRI.js} +2 -2
- package/dist/{config-DYi2mx6N.js → config-CEuC6CFj.js} +2 -2
- package/dist/{conversation-privacy-TiU3SGZh.js → conversation-privacy-aHn1OwXL.js} +1 -1
- package/dist/{credential-sync-hBiu11zS.js → credential-sync-Dht95TJQ.js} +21 -21
- package/dist/{execution-stats-DAWGg9WH.js → execution-stats-D9m2kmmg.js} +3 -3
- package/dist/{executor-t2OCqFgz.js → executor-3IasVOqK.js} +1 -1
- package/dist/instrumentation.js +8 -6
- package/dist/{job-queue-Deruj7qS.js → job-queue-36liupTq.js} +1 -1
- package/dist/{logging-wngKXw7u.js → logging-gR24QCo_.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-D1jNG0lr.js → oauth-callback-server-BvNIWVA3.js} +2 -2
- package/dist/{pending-auth-DJa76b68.js → pending-auth-Cl4BsopG.js} +2 -2
- package/dist/{profile-Mv2uNsKJ.js → profile-VmUpQuOm.js} +4 -4
- package/dist/{registry-6_Zog2YF.js → registry-BATk1X_v.js} +1 -1
- package/dist/{resolve-BI3Dfm9p.js → resolve-Cf79l1H8.js} +2 -2
- package/dist/{runner-CzrmejYr.js → runner-DNN4EPj_.js} +10 -10
- package/dist/{sandbox-egress-signals-BcSCyPKx.js → sandbox-egress-signals-C-HUJW1G.js} +1 -1
- package/dist/{short-title-Bs3wWE1M.js → short-title-Cy3D8vg1.js} +2 -2
- package/dist/{skills-DOE_QPVJ.js → skills-DMQkR1Yu.js} +2 -2
- package/dist/{spawn-DylJoJnT.js → spawn-BHk7RpYw.js} +2 -2
- package/dist/{stats--FeHjGJ1.js → stats-8Bzht8zO.js} +33 -8
- package/dist/{task-queue-CSEo5Ly9.js → task-queue-Cm4FhC0n.js} +3 -3
- package/dist/{task-runner-BDwZj8OX.js → task-runner-dQwOhCYs.js} +7 -7
- package/dist/{thread-state-CpZAVpdG.js → thread-state-D0Ktlch_.js} +5 -5
- package/dist/{turn-execution-AROC0tUZ.js → turn-execution-BfLZfabf.js} +3 -3
- package/dist/{turn-lifecycle-CGNjfgbT.js → turn-lifecycle-D75pWL8e.js} +1 -1
- package/dist/{validation-QFwh6qzp.js → validation-D5fdtuzG.js} +1 -1
- package/dist/{version-FAS9qrpM.js → version-DErORHQC.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-ZAQcIE4e.js → web-authorization-IHMPbDay.js} +1 -1
- package/dist/{web-input-C5nhIX0j.js → web-input-DskRJhrK.js} +4 -4
- package/dist/{work-BNw2Vmxi.js → work-CaaSjlNk.js} +9 -9
- package/dist/{worker-9Us77-te.js → worker-Eom9CfBl.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 +5 -5
|
@@ -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-BnZBgDPe.js";
|
|
2
|
+
import { n as runAgentWithTimeout } from "./agent-runner-BC8iSAfE.js";
|
|
3
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D75pWL8e.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-BnZBgDPe.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-0oMD2jas.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-DErORHQC.js";
|
|
2
2
|
export { JUNIOR_VERSION };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as getStateAdapter } from "./profile-
|
|
1
|
+
import { w as getStateAdapter } from "./profile-VmUpQuOm.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-gR24QCo_.js";
|
|
2
|
+
import { s as getSlackBotToken } from "./config-CEuC6CFj.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-BnZBgDPe.js";
|
|
5
|
+
import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats-8Bzht8zO.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-CY49A4pN.js";
|
|
3
|
+
import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-BnZBgDPe.js";
|
|
4
|
+
import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-3IasVOqK.js";
|
|
5
|
+
import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-Bl47qAIY.js";
|
|
6
|
+
import { pt as appendAndEnqueueInboundMessage } from "./stats-8Bzht8zO.js";
|
|
7
|
+
import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-Cl4BsopG.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D75pWL8e.js";
|
|
9
|
+
import { n as executeTurn, t as AgentRunError } from "./turn-execution-BfLZfabf.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-D0Ktlch_.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-BrThxuRI.js";
|
|
3
|
+
import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-gR24QCo_.js";
|
|
4
|
+
import { a as getChatConfig } from "./config-CEuC6CFj.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-8Bzht8zO.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-36liupTq.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
|
+
);
|