@sentry/junior 0.287.0 → 0.288.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/{adapter-CL-HUKgd.js → adapter-Cikcqdty.js} +1 -1
- package/dist/{admin-C9urXVfi.js → admin-BcSxHuTB.js} +2 -2
- package/dist/{agent-runner-Bfnw551N.js → agent-runner-9MXyWUL8.js} +173 -89
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +8 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +403 -40
- package/dist/{app-DBY5TnfY.d.ts → app-BUklJVBe.d.ts} +4 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +521 -70
- package/dist/{assistant-reply-u_PRYzuz.js → assistant-reply-mj47jMRV.js} +1 -1
- package/dist/{automation-DksGNDRO.js → automation-DDXwHQs5.js} +2 -2
- package/dist/{background-compaction-queue-CYI909P5.js → background-compaction-queue-CjllSPir.js} +161 -90
- package/dist/{briefs-DaXiMWzT.js → briefs-DW9iuolG.js} +4 -3
- package/dist/{catalog-runtime-BCIuBe4d.js → catalog-runtime-B3gfH58M.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CkHcUMN7.js → config-CLJcyYEF.js} +401 -9
- package/dist/{connections-BnIj0wtx.js → connections-BtdJftow.js} +9 -9
- package/dist/{conversation-E7ZPJx2H.js → conversation-DhoqHtQ7.js} +23 -6
- package/dist/{conversation-pending-messages-DVch6YQw.js → conversation-pending-messages-DHV0S4uF.js} +1 -1
- package/dist/{conversation-privacy-DF1hW0ja.js → conversation-privacy-BPirIVlX.js} +1 -1
- package/dist/core-model-BTt5E5b0.js +182 -0
- package/dist/{credential-sync-CzMar9hq.js → credential-sync-Co8Q2xRW.js} +28 -20
- package/dist/{db-DJ11eZqq.js → db-Co7DTYYh.js} +30 -20
- package/dist/{db-YDKKDxlh.d.ts → db-zIs8-Ba3.d.ts} +6 -2
- package/dist/{executor-BY9TB31g.js → executor-m0kIN71Q.js} +93 -12
- package/dist/{media-Cz1ZiV1U.js → history-IjdmO_r6.js} +6 -86
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BO5zU6Mt.js → logging-DbD-dErY.js} +3 -2
- package/dist/media-BAHvgkok.js +85 -0
- package/dist/{message-CsUbuEc8.js → message-DKTdTYm-.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +19 -41
- package/dist/{oauth-callback-server-hiDKK0_n.js → oauth-callback-server-CpbepSbp.js} +2 -2
- package/dist/{projection-CL_YWeGf.js → projection-BViECfYu.js} +309 -616
- package/dist/{prompt-BHOEQSmf.js → prompt-KT6MaDHN.js} +2 -182
- package/dist/{registry-BriFLnaJ.js → registry-D-Acyjhh.js} +1 -1
- package/dist/{resolve-Bt6GgAiA.js → resolve-gkT2R66z.js} +3 -3
- package/dist/{result-Bo1TZu0Q.js → result-DHmCFEt8.js} +8 -8
- package/dist/{runner-D3YeCQgt.js → runner-DBKjGjH-.js} +8 -8
- package/dist/{sandbox-egress-signals-CcnSPP4S.js → sandbox-egress-signals-9n8hqx29.js} +1 -1
- package/dist/{schedule-BTp__wrw.js → schedule-cP0AACm1.js} +11 -2
- package/dist/{schema-C6fsEwjo.d.ts → schema-B_6aOcx5.d.ts} +114 -3
- package/dist/{schema-BWE3RJEB.js → schema-DxicIQbc.js} +66 -13
- package/dist/{service-account-r6fl0b-9.js → service-account-Bi0HsY6w.js} +3 -3
- package/dist/{service-account-DiQQuuw7.js → service-account-CDlC9ssy.js} +3 -3
- package/dist/{session-stop-B2Nut40V.js → session-stop-BWOsuo8p.js} +56 -14
- package/dist/{skills-CD5aJdzg.js → skills-DO5K68Rq.js} +2 -2
- package/dist/{spawn-CalgZQiu.js → spawn-BBqZDcPa.js} +5 -5
- package/dist/{stop-kujZLbi0.js → stop-WC97cmHz.js} +802 -338
- package/dist/{store-DdIEUL1q.js → store-ByR1Lr7e.js} +4 -16
- package/dist/{task-runner-D_RDr2Hu.js → task-runner-B-Ewf8TX.js} +30 -22
- package/dist/{turn-failure-response-B5nV1Er-.js → turn-failure-response-CpdPoZSl.js} +18 -9
- package/dist/{validation-K4pqwoVZ.js → validation-B4sbIoES.js} +1 -1
- package/dist/{version-DBvhk1X9.js → version-D6lpuAgL.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DrMmFUul.js → viewer-CeP27tC3.js} +4 -4
- package/dist/warmup-P_GJCL1c.js +767 -0
- package/dist/{work-ljRoODGu.js → work-DI7x1Slm.js} +14 -13
- package/dist/{worker-CYO1Q0Js.js → worker-CYPTOT4j.js} +6 -6
- package/migrations/0089_conversation_paused_status.sql +3 -0
- package/migrations/0090_guardian_review_time_index.sql +20 -0
- package/migrations/meta/0089_snapshot.json +4372 -0
- package/migrations/meta/0090_snapshot.json +4388 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bt as
|
|
2
|
-
import { a as getConversationStore } from "./db-
|
|
3
|
-
import "./background-compaction-queue-
|
|
1
|
+
import { Bt as requestAnotherSlice$1, Dt as getConversationWorkState$1, Et as getConversation$1, Ht as startConversationWork$1, It as recordAttemptFailure$1, Lt as recordConversationRetry$1, Mt as listActiveConversationIds$1, Nt as markConversationWorkEnqueued$1, Rt as releaseConversationWork$1, St as completeConversationWork$1, Tt as drainConversationMailbox$1, Ut as steerWebPendingMessages$1, Vt as requestConversationWork$1, Wt as stopConversationWork$1, _t as checkInConversationWork$1, bt as clearExpiredConversationLease$1, ft as ackMessages$1, gt as cancelHumanFacingPendingMessages$1, ht as beginConversationResume$1, kt as hasRunnableConversationWork, mt as appendInboundMessage, pt as appendExclusiveInboundMessage, vt as claimInboundMessage$1, wt as deadLetterAttempt$1, xt as completeConversationStop$1, yt as clearConsumedConversationWake$1, zt as releaseInboundMessage } from "./projection-BViECfYu.js";
|
|
2
|
+
import { a as getConversationStore } from "./db-Co7DTYYh.js";
|
|
3
|
+
import "./background-compaction-queue-CjllSPir.js";
|
|
4
4
|
// src/chat/task-execution/store.ts
|
|
5
5
|
function metadataStore(options) {
|
|
6
6
|
return options.conversationStore ?? getConversationStore();
|
|
@@ -55,14 +55,6 @@ async function recordConversationRetry(args) {
|
|
|
55
55
|
await recordExecutionMetadata(args);
|
|
56
56
|
return result;
|
|
57
57
|
}
|
|
58
|
-
/** Count mailbox messages that have not yet reached the conversation event log. */
|
|
59
|
-
function countPendingConversationMessages(conversation) {
|
|
60
|
-
return conversation.execution.pendingMessages.length;
|
|
61
|
-
}
|
|
62
|
-
/** Return whether a conversation has pending or resumable execution work. */
|
|
63
|
-
function hasRunnableConversationWork(conversation) {
|
|
64
|
-
return conversation.execution.status !== "idle" || countPendingConversationMessages(conversation) > 0;
|
|
65
|
-
}
|
|
66
58
|
/**
|
|
67
59
|
* Ensure runnable conversation work has one accepted queue wake-up nudge.
|
|
68
60
|
*
|
|
@@ -309,12 +301,8 @@ async function clearExpiredConversationLease(args) {
|
|
|
309
301
|
await recordExecutionMetadata(args);
|
|
310
302
|
return result;
|
|
311
303
|
}
|
|
312
|
-
/** Remove one conversation from the active index after it is missing or idle. */
|
|
313
|
-
async function removeActiveConversation(args) {
|
|
314
|
-
return await removeActiveConversation$1(args);
|
|
315
|
-
}
|
|
316
304
|
/** List active conversation ids by oldest execution update first. */
|
|
317
305
|
async function listActiveConversationIds(args = {}) {
|
|
318
306
|
return await listActiveConversationIds$1(args);
|
|
319
307
|
}
|
|
320
|
-
export {
|
|
308
|
+
export { startConversationWork as C, requestConversationWork as S, stopConversationWork as T, listActiveConversationIds as _, cancelHumanFacingPendingMessages as a, releaseConversationWork as b, clearConsumedConversationWake as c, completeConversationWork as d, deadLetterAttempt as f, getConversationWorkState as g, getConversation as h, beginConversationResume as i, clearExpiredConversationLease as l, ensureConversationWake as m, appendAndEnqueueExclusiveInboundMessage as n, checkInConversationWork as o, drainConversationMailbox as p, appendAndEnqueueInboundMessage as r, claimInboundMessage as s, ackMessages as t, completeConversationStop as u, recordAttemptFailure as v, steerWebPendingMessages as w, requestAnotherSlice as x, recordConversationRetry as y };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { E as withSpan,
|
|
2
|
+
import { Bn as getPlugins, Ga as createPluginModelCostRecorder, Gi as postSlackMessage, Hi as openSlackDirectMessage, Ka as createPluginLogger, Ma as createPluginEmbedder, Na as createPluginModel, Ni as escapeSlackMrkdwnText, Oo as createPluginCache, Pi as formatSlackLink, Qr as JUNIOR_THREAD_STATE_TTL_MS, T as fallbackShortTitle, Un as coreTaskRegistrations, b as persistConversationMessages, dn as isToolResultMessage, fn as normalizeToolNameFromResult, ko as createDurableLocationConfigurationService, mn as stripRuntimeTurnContext, oi as ToolInputError, on as instructionTextForProjection, ri as getDashboardTaskLink, ro as createPluginConversationEvents, si as createPluginState, st as getTurnRecord, tn as getPiMessageRole, un as isToolResultError, v as hydrateConversationMessages } from "./projection-BViECfYu.js";
|
|
3
|
+
import { n as botConfig } from "./config-CLJcyYEF.js";
|
|
4
|
+
import { E as withSpan, J as toOptionalString, K as isRecord$1, _ as runBestEffort, h as logWarn, q as toOptionalNumber } from "./logging-DbD-dErY.js";
|
|
5
5
|
import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
|
|
6
|
-
import {
|
|
7
|
-
import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-
|
|
8
|
-
import {
|
|
9
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
10
|
-
import { i as readActorIdentity } from "./viewer-
|
|
11
|
-
import { r as getStateAdapter } from "./adapter-
|
|
12
|
-
import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-
|
|
13
|
-
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-
|
|
6
|
+
import { G as agentTurnTotalTokens, W as agentTurnCostUsd, a as getConversationStore, o as getDb } from "./db-Co7DTYYh.js";
|
|
7
|
+
import { A as juniorConversations, d as juniorAutomationVersions, f as juniorAutomations, u as juniorAutomationRuns } from "./executor-m0kIN71Q.js";
|
|
8
|
+
import { m as sameActorIdentity } from "./history-IjdmO_r6.js";
|
|
9
|
+
import { h as credentialSubjectSchema } from "./registry-D-Acyjhh.js";
|
|
10
|
+
import { i as readActorIdentity } from "./viewer-CeP27tC3.js";
|
|
11
|
+
import { r as getStateAdapter } from "./adapter-Cikcqdty.js";
|
|
12
|
+
import { c as pluginTaskParamsSchema, d as sendVercelPluginTask, s as pluginTaskId } from "./background-compaction-queue-CjllSPir.js";
|
|
13
|
+
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-DDXwHQs5.js";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import * as z from "zod";
|
|
16
16
|
import { and, asc, count, desc, eq, gte, inArray, isNotNull, isNull, lte, max, ne, or, sql } from "drizzle-orm";
|
|
@@ -349,7 +349,7 @@ function slackSourceForDestination(args) {
|
|
|
349
349
|
* Reads parent Conversations when this Conversation has no Destination.
|
|
350
350
|
*/
|
|
351
351
|
async function resolveConversationRouting(args) {
|
|
352
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
352
|
+
const conversationStore = args.conversationStore ?? (await import("./db-Co7DTYYh.js").then((n) => n.n)).getConversationStore();
|
|
353
353
|
const chain = await loadConversationChain(args.conversationId, conversationStore);
|
|
354
354
|
let destination;
|
|
355
355
|
let source;
|
|
@@ -1235,19 +1235,25 @@ async function collectEventAutomationMatchKeys(db, input) {
|
|
|
1235
1235
|
return [...keys].sort();
|
|
1236
1236
|
}
|
|
1237
1237
|
/**
|
|
1238
|
-
* Find every live task matching
|
|
1239
|
-
* identifier, and tasks with no identifier whose
|
|
1240
|
-
*
|
|
1241
|
-
*
|
|
1238
|
+
* Find every live task matching each normalized event, with one read for all
|
|
1239
|
+
* of them: tasks for its exact identifier, and tasks with no identifier whose
|
|
1240
|
+
* filters match. Returns one list per event, in order. The events must share
|
|
1241
|
+
* one namespace. The gate skips a row whose trigger and identifier column
|
|
1242
|
+
* disagree, and a row with no identifier whose trigger the enabled `catalog`
|
|
1243
|
+
* rejects.
|
|
1242
1244
|
*/
|
|
1243
|
-
async function findMatchingEventAutomations(db,
|
|
1244
|
-
|
|
1245
|
+
async function findMatchingEventAutomations(db, events, teamId, catalog) {
|
|
1246
|
+
const namespace = events[0]?.namespace;
|
|
1247
|
+
if (namespace === void 0) return [];
|
|
1248
|
+
if (events.some((event) => event.namespace !== namespace)) throw new Error("Events to match must share one namespace.");
|
|
1249
|
+
const tasks = await readGatedEventAutomations(db, {
|
|
1245
1250
|
catalog,
|
|
1246
|
-
eventTypes: [event.eventType],
|
|
1247
|
-
identifiers: [event.identifier],
|
|
1248
|
-
namespace
|
|
1251
|
+
eventTypes: [...new Set(events.map((event) => event.eventType))],
|
|
1252
|
+
identifiers: [...new Set(events.map((event) => event.identifier))],
|
|
1253
|
+
namespace,
|
|
1249
1254
|
teamId
|
|
1250
|
-
})
|
|
1255
|
+
});
|
|
1256
|
+
return events.map((event) => tasks.filter((task) => (task.trigger.identifier === void 0 || task.trigger.identifier === event.identifier) && task.trigger.events.includes(event.eventType) && eventMatches(task.trigger.match, event.data)));
|
|
1251
1257
|
}
|
|
1252
1258
|
/**
|
|
1253
1259
|
* Change lifecycle under the same row lock as edits, without changing
|
|
@@ -1500,6 +1506,7 @@ const dispatchRecordSchema = z.object({
|
|
|
1500
1506
|
source: sourceSchema,
|
|
1501
1507
|
outcomes: z.array(taskOutcomeSchema).max(5).optional(),
|
|
1502
1508
|
status: dispatchStatusSchema,
|
|
1509
|
+
title: z.string().min(1).optional(),
|
|
1503
1510
|
updatedAtMs: z.number().finite()
|
|
1504
1511
|
}).strict().superRefine((record, ctx) => {
|
|
1505
1512
|
if (!isSlackDestination(record.destination)) {
|
|
@@ -1667,6 +1674,7 @@ async function createOrGetDispatch(args) {
|
|
|
1667
1674
|
...args.options.outcomes ? { outcomes: args.options.outcomes } : void 0,
|
|
1668
1675
|
status: "pending",
|
|
1669
1676
|
source: args.options.source,
|
|
1677
|
+
...args.options.title?.trim() ? { title: args.options.title.trim() } : void 0,
|
|
1670
1678
|
updatedAtMs: args.nowMs
|
|
1671
1679
|
};
|
|
1672
1680
|
await updatePendingDispatchMailboxAppendIndex(state, (ids) => ids.includes(id) ? ids : [...ids, id]);
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { D as buildConversationContext, M as markConversationMessage, So as listConversationAnnotations, Z as clearPendingAuth, v as hydrateConversationMessages } from "./projection-BViECfYu.js";
|
|
2
|
+
import { B as ProviderError, H as findProviderError, U as getProviderErrorAttributes, W as getProviderErrorUserMessage, g as TURN_REASONING_LEVELS } from "./config-CLJcyYEF.js";
|
|
3
|
+
import { K as isRecord, b as setSpanAttributes, t as buildTurnFailureResponse } from "./logging-DbD-dErY.js";
|
|
4
4
|
import { h as parseSlackMessageTs } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-
|
|
6
|
-
import { g as juniorAgentInvocations } from "./executor-
|
|
7
|
-
import { p as credentialContextSchema } from "./registry-
|
|
8
|
-
import {
|
|
5
|
+
import { o as getDb, r as getConversationEventStore, s as getSqlExecutor } from "./db-Co7DTYYh.js";
|
|
6
|
+
import { g as juniorAgentInvocations } from "./executor-m0kIN71Q.js";
|
|
7
|
+
import { p as credentialContextSchema } from "./registry-D-Acyjhh.js";
|
|
8
|
+
import { B as resolveMessageCards, R as readMessageCardRefs, z as removedCardSchema } from "./conversation-DhoqHtQ7.js";
|
|
9
9
|
import { C as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, S as AGENT_INVOCATION_MAILBOX_STATUSES } from "./reporting-window-B3Ze-Qnt.js";
|
|
10
|
-
import { _t as getPersistedThreadState, bt as coerceThreadConversationState, yt as persistThreadStateById } from "./task-runner-
|
|
10
|
+
import { _t as getPersistedThreadState, bt as coerceThreadConversationState, yt as persistThreadStateById } from "./task-runner-B-Ewf8TX.js";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import * as z from "zod";
|
|
13
13
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
14
14
|
import { actorSchema, destinationSchema, sourceSchema } from "@sentry/junior-plugin-api";
|
|
15
|
+
// src/chat/state/turn-id.ts
|
|
16
|
+
/** Build a stable turn identifier from a message ID. */
|
|
17
|
+
function buildDeterministicTurnId(messageId) {
|
|
18
|
+
return `turn_${messageId.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
19
|
+
}
|
|
20
|
+
/** Build the stable visible assistant-message identity for one logical turn. */
|
|
21
|
+
function buildDeterministicAssistantMessageId(turnId) {
|
|
22
|
+
return `${turnId}:assistant:1`;
|
|
23
|
+
}
|
|
15
24
|
// src/chat/runtime/turn.ts
|
|
16
25
|
/** Classified Slack turn failure carrying the owning Sentry capture outward. */
|
|
17
26
|
var ConversationTurnBoundaryError = class extends Error {
|
|
@@ -804,4 +813,4 @@ function finalizeFailedTurnReplyWithEvent(args) {
|
|
|
804
813
|
}
|
|
805
814
|
};
|
|
806
815
|
}
|
|
807
|
-
export { getUnnamedAgentConversationId as $, markAgentInvocationPaused as A, AGENT_TYPES as B, isTerminalAgentInvocation as C, listPendingAgentInvocationResults as D, listPendingAgentInvocationMailboxAppends as E, CHILD_AGENT_RESULTS as F, getAgentInvocationIdForEvents as G, agentTypeStartsWithParentHistory as H, PARENT_AGENT_TARGET as I, getAgentInvocationMessageId as J, getAgentInvocationIdForMessage as K, agentBindingSchema as L, markAgentInvocationSteered as M, reportReplacedAgentInvocation as N, markAgentInvocationMailboxAppended as O, CHILD_AGENT_KINDS as P, getNamedAgentConversationId as Q, agentNameSchema as R, invocationFromRow as S, listOpenAgentInvocations as T, formatAgentTypes as U, agentTypeInstructions as V, getAgentInvocationId as W, getAgentInvocationTurnId as X, getAgentInvocationResultMessageId as Y, getChildAgentLockName as Z, completeAgentInvocation as _, persistAuthPauseTurnState as a, getConversationTurnBoundaryError as at, getChildAgentLabel as b, getTurnUserSlackMessageTs as c, isTurnInputDeferredError as ct, loadThreadContextTrimFloor as d, markTurnFailed as dt, parseAgentInvocationResultMessageId as et, ConversationTurnLifecycleService as f, startActiveTurn as ft, NON_TERMINAL_AGENT_INVOCATION_STATUSES as g, ACTIVE_AGENT_INVOCATION_STATUSES as h, completeAuthPauseTurn as i, TurnInputDeferredError as it, markAgentInvocationRunning as j, markAgentInvocationParentMailboxAppended as k, buildDeliveredTurnStatePatch as l, markTurnClosed as lt, loadPendingMessageCards as m, getAgentTurnDiagnosticsAttributes as n, CooperativeTurnYieldError as nt, getTurnUserMessage as o, isCooperativeTurnYieldError as ot, getTurnLifecycle as p, getAgentInvocationIdForResult as q, requireTurnFailureEventId as r, TurnInputCommitLostError as rt, getTurnUserReplyAttachmentContext as s, isTurnInputCommitLostError as st, finalizeFailedTurnReplyWithEvent as t, ConversationTurnBoundaryError as tt, buildTurnThreadContext as u, markTurnCompleted as ut, getActiveAgentInvocationForConversation as v, listAgentInvocationsForConversation as w, getLatestAgentInvocationForConversation as x, getAgentInvocation as y, createAgentInvocationSchema as z };
|
|
816
|
+
export { getUnnamedAgentConversationId as $, markAgentInvocationPaused as A, AGENT_TYPES as B, isTerminalAgentInvocation as C, listPendingAgentInvocationResults as D, listPendingAgentInvocationMailboxAppends as E, CHILD_AGENT_RESULTS as F, getAgentInvocationIdForEvents as G, agentTypeStartsWithParentHistory as H, PARENT_AGENT_TARGET as I, getAgentInvocationMessageId as J, getAgentInvocationIdForMessage as K, agentBindingSchema as L, markAgentInvocationSteered as M, reportReplacedAgentInvocation as N, markAgentInvocationMailboxAppended as O, CHILD_AGENT_KINDS as P, getNamedAgentConversationId as Q, agentNameSchema as R, invocationFromRow as S, listOpenAgentInvocations as T, formatAgentTypes as U, agentTypeInstructions as V, getAgentInvocationId as W, getAgentInvocationTurnId as X, getAgentInvocationResultMessageId as Y, getChildAgentLockName as Z, completeAgentInvocation as _, persistAuthPauseTurnState as a, getConversationTurnBoundaryError as at, getChildAgentLabel as b, getTurnUserSlackMessageTs as c, isTurnInputDeferredError as ct, loadThreadContextTrimFloor as d, markTurnFailed as dt, parseAgentInvocationResultMessageId as et, ConversationTurnLifecycleService as f, startActiveTurn as ft, NON_TERMINAL_AGENT_INVOCATION_STATUSES as g, ACTIVE_AGENT_INVOCATION_STATUSES as h, completeAuthPauseTurn as i, TurnInputDeferredError as it, markAgentInvocationRunning as j, markAgentInvocationParentMailboxAppended as k, buildDeliveredTurnStatePatch as l, markTurnClosed as lt, loadPendingMessageCards as m, buildDeterministicTurnId as mt, getAgentTurnDiagnosticsAttributes as n, CooperativeTurnYieldError as nt, getTurnUserMessage as o, isCooperativeTurnYieldError as ot, getTurnLifecycle as p, buildDeterministicAssistantMessageId as pt, getAgentInvocationIdForResult as q, requireTurnFailureEventId as r, TurnInputCommitLostError as rt, getTurnUserReplyAttachmentContext as s, isTurnInputCommitLostError as st, finalizeFailedTurnReplyWithEvent as t, ConversationTurnBoundaryError as tt, buildTurnThreadContext as u, markTurnCompleted as ut, getActiveAgentInvocationForConversation as v, listAgentInvocationsForConversation as w, getLatestAgentInvocationForConversation as x, getAgentInvocation as y, createAgentInvocationSchema as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-B3gfH58M.js";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
// src/chat/plugins/validation.ts
|
|
5
5
|
var validation_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.288.0";
|
|
3
3
|
// src/version.ts
|
|
4
4
|
/** Installed Junior package version, or `unknown` when package metadata is unavailable. */
|
|
5
5
|
const JUNIOR_VERSION = typeof version === "string" && version.trim() ? version : "unknown";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as JUNIOR_VERSION } from "./version-
|
|
1
|
+
export { t as JUNIOR_VERSION } from "./version-D6lpuAgL.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as findActorIdentityId, o as getDb } from "./db-
|
|
3
|
-
import { M as juniorUsers, j as juniorIdentities } from "./executor-
|
|
4
|
-
import { r as detectImageMediaType } from "./media-Cz1ZiV1U.js";
|
|
1
|
+
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER, h as logWarn } from "./logging-DbD-dErY.js";
|
|
2
|
+
import { E as findActorIdentityId, o as getDb } from "./db-Co7DTYYh.js";
|
|
3
|
+
import { M as juniorUsers, j as juniorIdentities } from "./executor-m0kIN71Q.js";
|
|
5
4
|
import { a as withLock } from "./locks-D-0h111u.js";
|
|
5
|
+
import { r as detectImageMediaType } from "./media-BAHvgkok.js";
|
|
6
6
|
import { createHash, randomUUID } from "node:crypto";
|
|
7
7
|
import { and, asc, eq, inArray, isNotNull } from "drizzle-orm";
|
|
8
8
|
import { identitySchema, userSchema } from "@sentry/junior-plugin-api";
|