@sentry/junior 0.266.0 → 0.268.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/{actor-tlxzqaRe.js → actor-CP9K2Idu.js} +9 -1
- package/dist/{adapter-eRFA_naf.js → adapter-04AcD2SO.js} +5 -7
- package/dist/{admin-tILpP51p.js → admin-DIU1QyG3.js} +1 -1
- package/dist/{agent-invocations-CxKldAeB.js → agent-invocations-C1RNOCs8.js} +2 -0
- package/dist/{agent-runner-BtYK7bht.js → agent-runner-CAYfFmU7.js} +2636 -601
- package/dist/api/schema.d.ts +2 -5454
- package/dist/api/schema.js +6 -5
- package/dist/api.d.ts +6 -1
- package/dist/api.js +255 -1208
- package/dist/{app-Csbi9dW7.d.ts → app-z6Uuyq3j.d.ts} +23 -4
- package/dist/app.d.ts +2 -2
- package/dist/app.js +1869 -378
- package/dist/{automation-BKpY9LPa.js → automation-CmeFBSEh.js} +42 -14
- package/dist/{briefs-DgfWMU7e.js → briefs-DQbV2jNr.js} +4 -4
- package/dist/{catalog-runtime-DAJjAbSx.js → catalog-runtime-BD9GSpc6.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +0 -1
- 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/{client-B0YZfxNy.js → client-C1yDYjoS.js} +2 -2
- package/dist/{config-C0UwYqDK.js → config-DrTeF80T.js} +32 -10
- package/dist/{connections-Bwu3VORi.js → connections-D46f8vvi.js} +12 -12
- package/dist/{conversation-DF4rUcjb.js → conversation-DSo310Ps.js} +8 -1
- package/dist/{conversation-privacy-CY7JVjxn.js → conversation-privacy-CxlOCiUo.js} +1 -1
- package/dist/{credential-sync-VGAMUTGp.js → credential-sync-sm9fegLY.js} +29 -34
- package/dist/{credentialed-enF5Bf3y.js → credentialed-lukuD-cc.js} +2933 -1026
- package/dist/db-BU4LQD8s.d.ts +6 -0
- package/dist/{executor-TnWbvL09.js → executor-4vhvsMZJ.js} +83 -6
- package/dist/instrumentation.js +6 -2
- package/dist/{assistant-reply-UyzAfZQo.js → interruption-marker-CkncDT8d.js} +8 -2
- package/dist/{job-queue-DBpHmKnd.js → job-queue-In9QKz-I.js} +128 -3
- package/dist/{web-input-B-bMjD1V.js → list-BkgnXEEB.js} +1611 -817
- package/dist/{logging-Ce0mXZ8J.js → logging-DLSpkSSr.js} +11 -3
- package/dist/{message-VZ3DFpGb.js → message-BObyg59s.js} +4 -4
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-CpqWLjVY.js → oauth-callback-server-B-WbSdoH.js} +2 -2
- package/dist/{prompt-BcCGlmg2.js → prompt-BW9jFsqZ.js} +1 -1
- package/dist/{registry-1BEIPdbT.js → registry-BgecKva0.js} +2 -2
- package/dist/{web-message-id-CJSUiksE.js → reporting-window-DVCD_10C.js} +1 -10
- package/dist/{resolve-BSHHkEGE.js → resolve-Cpa4Bu1O.js} +3 -3
- package/dist/{result-CwOpzqdh.js → result-D3TSmZZ8.js} +9 -9
- package/dist/{runner-CEaX04kz.js → runner-DS5OKhEp.js} +11 -11
- package/dist/{sandbox-egress-signals-BwtGHwqa.js → sandbox-egress-signals-CnDjY5rx.js} +1 -1
- package/dist/{schema-RsaBHxRH.js → schema-0050HFnB.js} +82 -5
- package/dist/schema-ZngqcOWM.d.ts +5813 -0
- package/dist/{service-account-6wC76eBZ.js → service-account-CKV2WTY7.js} +3 -3
- package/dist/{service-account-Dg4lIbHm.js → service-account-DGjnDw9y.js} +3 -3
- package/dist/{session-stop-tZOw9AJD.js → session-stop-Dam1EI7B.js} +527 -134
- package/dist/{skills-DzyGN7wd.js → skills-CfAnfImD.js} +2 -2
- package/dist/{spawn-6rokq7l_.js → spawn-cmq9p4Ly.js} +2 -2
- package/dist/{store-DcKkzrdt.js → store-C5PN02QO.js} +4 -4
- package/dist/{store-CG0VJyye.d.ts → store-xMuuXRE0.d.ts} +23 -9
- package/dist/store-zPEoJPBB.js +295 -0
- package/dist/{task-queue-Bg4RS2Gy.js → task-queue-_mf28dSu.js} +10 -5
- package/dist/{task-runner-8N5LIkSg.js → task-runner-DMI2prDO.js} +25 -14
- package/dist/{tasks-DDT-J3Rf.js → tasks-SB9z-VTU.js} +1551 -54
- package/dist/{thread-state-cprEaxgl.js → thread-state-BbbPh0Sn.js} +8 -18
- package/dist/{turn-failure-response-C8sMdsdX.js → turn-failure-response-BKKmnMB5.js} +11 -16
- package/dist/{turn-lifecycle-DaBVoz7h.js → turn-lifecycle-oP0kVeGz.js} +1 -1
- package/dist/{validation-C2lllinq.js → validation--JsAGLwc.js} +1 -1
- package/dist/{version-oaLfxxnf.js → version-jHwJp4hC.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BpE6Z3qf.js → viewer-CpXTGlep.js} +329 -230
- package/dist/web-message-id-DlHNANtd.js +132 -0
- package/dist/{work-VX1SHWha.js → work-3N-GHY9m.js} +10 -10
- package/dist/{worker-hook-y_Y.js → worker-CCdbcItd.js} +30 -19
- package/migrations/0064_any_resource_event_triggers.sql +2 -0
- package/migrations/0065_user_customization.sql +1 -0
- package/migrations/0066_review_items.sql +53 -0
- package/migrations/0067_review_item_dedupe_tenant.sql +2 -0
- package/migrations/0068_review_item_slack_cards.sql +10 -0
- package/migrations/meta/0064_snapshot.json +3505 -0
- package/migrations/meta/0065_snapshot.json +3511 -0
- package/migrations/meta/0066_snapshot.json +4099 -0
- package/migrations/meta/0067_snapshot.json +3921 -0
- package/migrations/meta/0068_snapshot.json +4176 -0
- package/migrations/meta/_journal.json +36 -1
- package/package.json +19 -4
- package/dist/db-BnRqQ7G5.d.ts +0 -5
- package/dist/images-BKQqSi5W.js +0 -64
- package/dist/store-FALy-JQb.js +0 -1424
- package/dist/turn-session-routing-a9CHX-w6.js +0 -76
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-MDkYAVPV.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-jHwJp4hC.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
|
@@ -568,7 +568,7 @@ function formatConsoleValue(value) {
|
|
|
568
568
|
return quoteConsoleValue(value);
|
|
569
569
|
}
|
|
570
570
|
function shouldShowConsoleDestinationName(eventName) {
|
|
571
|
-
return /^(app_home|oauth|queue|
|
|
571
|
+
return /^(app_home|oauth|queue|slack|webhook)\./.test(eventName);
|
|
572
572
|
}
|
|
573
573
|
function shouldShowConsoleModel(level, eventName) {
|
|
574
574
|
if (level === "warn" || level === "error") return true;
|
|
@@ -1050,6 +1050,14 @@ function getTracePropagationHeaders() {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return headers;
|
|
1052
1052
|
}
|
|
1053
|
+
/** Return the active trace as a durable trace context, if there is one. */
|
|
1054
|
+
function getActiveTraceContext() {
|
|
1055
|
+
const { "sentry-trace": sentryTrace, baggage } = getTracePropagationHeaders();
|
|
1056
|
+
return sentryTrace ? {
|
|
1057
|
+
baggage,
|
|
1058
|
+
sentryTrace
|
|
1059
|
+
} : void 0;
|
|
1060
|
+
}
|
|
1053
1061
|
/** Set attributes on the currently active Sentry span. */
|
|
1054
1062
|
function setSpanAttributes(attributes) {
|
|
1055
1063
|
const span = getActiveSpan();
|
|
@@ -1224,4 +1232,4 @@ function extractGenAiUsageAttributes(...sources) {
|
|
|
1224
1232
|
...cost?.total !== void 0 ? { "app.cost.total_usd": cost.total } : void 0
|
|
1225
1233
|
};
|
|
1226
1234
|
}
|
|
1227
|
-
export {
|
|
1235
|
+
export { JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE as A, isRecord as B, summarizeMessageText as C, JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE as D, withSpan as E, getDeploymentServiceVersion as F, toOptionalString as H, getDeploymentTelemetryAttributes as I, GOOGLE_IDENTITY_PROVIDER as L, JUNIOR_RETENTION_ROUTE as M, JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE as N, JUNIOR_HEARTBEAT_CRON_SCHEDULE as O, LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION as P, isNativeIdentityProvider as R, setTags as S, withLogContext as T, toOptionalNumber as V, runBestEffort as _, extractGenAiUsageSummary as a, setSpanAttributes as b, getLogContextAttributes as c, logAudit as d, logError as f, normalizeGenAiFinishReason as g, logWarn as h, extractGenAiUsageAttributes as i, JUNIOR_RETENTION_CRON_SCHEDULE as j, JUNIOR_HEARTBEAT_ROUTE as k, getLogContextAttributesForSpan as l, logInfo as m, createChatSdkLogger as n, getActiveTraceContext as o, logException as p, createRequestContext as r, getActiveTraceId as s, buildTurnFailureResponse as t, getTracePropagationHeaders as u, serializeGenAiAttribute as v, withContext as w, setSpanStatus as x, setSentryUser as y, normalizeIdentityEmail as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-
|
|
4
|
-
import { n as enqueueAgentMessageToParent } from "./result-
|
|
5
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Bt as actorFromRun, Vt as toolInvocationDestination } from "./agent-runner-CAYfFmU7.js";
|
|
3
|
+
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-C5PN02QO.js";
|
|
4
|
+
import { n as enqueueAgentMessageToParent } from "./result-D3TSmZZ8.js";
|
|
5
|
+
import { r as enqueueAgentInvocation } from "./work-3N-GHY9m.js";
|
|
6
6
|
// src/chat/agent-invocations/message.ts
|
|
7
7
|
var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
|
|
8
8
|
/**
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app-z6Uuyq3j.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, D as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, F as getDeploymentServiceVersion, M as JUNIOR_RETENTION_ROUTE, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_CRON_SCHEDULE, j as JUNIOR_RETENTION_CRON_SCHEDULE, k as JUNIOR_HEARTBEAT_ROUTE } from "./logging-DLSpkSSr.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
|
|
3
|
-
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
3
|
+
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-In9QKz-I.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
|
|
5
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-_mf28dSu.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createUserTokenStore } from "./credentialed-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { n as createUserTokenStore } from "./credentialed-lukuD-cc.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-sm9fegLY.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as parseBriefInput, X as briefOutcomeStatusSchema, Z as conversationBriefSchema } from "./conversation-DSo310Ps.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DLSpkSSr.js";
|
|
2
|
+
import { o as isUserActor, s as parseActorUserId } from "./actor-CP9K2Idu.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -224,13 +224,4 @@ function sumUtcHoursIntoSixHours(args) {
|
|
|
224
224
|
rows: bySix
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Build the retry-stable Message id shared by web ingress and browser sends.
|
|
230
|
-
* Keep the existing hash and prefix so retries still address stored Messages.
|
|
231
|
-
*/
|
|
232
|
-
async function webMessageId(args) {
|
|
233
|
-
const digest = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(`${args.conversationId}\u0000${args.idempotencyKey}`));
|
|
234
|
-
return `api-msg:${Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("").slice(0, 24)}`;
|
|
235
|
-
}
|
|
236
|
-
export { skillReportsSchema as C, skillReportSchema as S, pluginPackageContentItemReportSchema as _, fillUtcHours as a, pluginsSchema as b, sumUtcHoursIntoSixHours as c, trailingUtcSixHourWindow as d, utcDayKey as f, pluginOperationalReportSchema as g, pluginOperationalReportFeedSchema as h, fillUtcDays as i, trailingUtcDayWindow as l, healthReportSchema as m, DAY_MS as n, fillUtcSixHours as o, utcHourKey as p, HOUR_MS as r, startOfUtcHour as s, webMessageId as t, trailingUtcHourWindow as u, pluginPackageContentReportSchema as v, runtimeInfoReportSchema as x, pluginSchema as y };
|
|
227
|
+
export { skillReportsSchema as S, pluginPackageContentReportSchema as _, fillUtcSixHours as a, runtimeInfoReportSchema as b, trailingUtcDayWindow as c, utcDayKey as d, utcHourKey as f, pluginPackageContentItemReportSchema as g, pluginOperationalReportSchema as h, fillUtcHours as i, trailingUtcHourWindow as l, pluginOperationalReportFeedSchema as m, HOUR_MS as n, startOfUtcHour as o, healthReportSchema as p, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u, pluginSchema as v, skillReportSchema as x, pluginsSchema as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Cn as
|
|
3
|
-
import {
|
|
1
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DLSpkSSr.js";
|
|
2
|
+
import { Cn as runNonInteractiveCommand, F as getSandboxProvider, N as isStale, j as create, kn as SANDBOX_WORKSPACE_ROOT, un as sleep, wn as SANDBOX_COMMAND_PATH } from "./credentialed-lukuD-cc.js";
|
|
3
|
+
import { i as getStateAdapter } from "./adapter-04AcD2SO.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as createActor } from "./actor-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-
|
|
7
|
-
import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-
|
|
8
|
-
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
10
|
-
import { r as enqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Xt as listTurnSummaries, Yt as getTurnRecord } from "./tasks-SB9z-VTU.js";
|
|
3
|
+
import { t as createActor } from "./actor-CP9K2Idu.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-BgecKva0.js";
|
|
5
|
+
import { At as listUnreportedSiblingAgents } from "./agent-runner-CAYfFmU7.js";
|
|
6
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-BW9jFsqZ.js";
|
|
7
|
+
import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-C5PN02QO.js";
|
|
8
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-Dam1EI7B.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-zPEoJPBB.js";
|
|
10
|
+
import { r as enqueueAgentInvocation } from "./work-3N-GHY9m.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
|
|
13
13
|
// src/chat/conversations/web-mailbox.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { d as
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { X as markTurnFailed, Z as startActiveTurn } from "./store-
|
|
7
|
-
import {
|
|
8
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
9
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
10
|
-
import { n as getPersistedSandboxState, o as
|
|
11
|
-
import {
|
|
1
|
+
import { At as upsertConversationMessage, Dt as normalizeConversationText, Et as markConversationMessage, Gt as saveTurnCheckpoint, In as persistWithRetry, K as commitAcceptedReply, Ot as recordDeliveredAssistantMessage, Pt as authorizationId, Z as loadProjection, ft as hydrateConversationMessages, it as recordAuthorizationCompleted, pt as persistConversationMessages, xt as buildConversationContext } from "./tasks-SB9z-VTU.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-DLSpkSSr.js";
|
|
3
|
+
import { d as getConversationEventStore, p as getConversationStore } from "./viewer-CpXTGlep.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-BgecKva0.js";
|
|
5
|
+
import { R as messageCardText } from "./conversation-DSo310Ps.js";
|
|
6
|
+
import { X as markTurnFailed, Z as startActiveTurn } from "./store-C5PN02QO.js";
|
|
7
|
+
import { r as getAssistantReplyText } from "./interruption-marker-CkncDT8d.js";
|
|
8
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DMI2prDO.js";
|
|
9
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-oP0kVeGz.js";
|
|
10
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-BbbPh0Sn.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-BKKmnMB5.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { xt as sandboxEgressSignalsResponseSchema } from "./credentialed-lukuD-cc.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-
|
|
2
|
-
import { E as
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-C1RNOCs8.js";
|
|
2
|
+
import { E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, O as conversationUsageSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-DSo310Ps.js";
|
|
3
|
+
import { s as userInputRequestSchema } from "./web-message-id-DlHNANtd.js";
|
|
4
|
+
import "./automation-CmeFBSEh.js";
|
|
5
|
+
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DVCD_10C.js";
|
|
5
6
|
import { z } from "zod";
|
|
6
7
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
7
8
|
// src/api/schema/common.ts
|
|
@@ -467,6 +468,82 @@ const serviceAccountListSchema = z.object({ serviceAccounts: z.array(serviceAcco
|
|
|
467
468
|
const serviceAccountParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
468
469
|
const startServiceAccountSignInResponseSchema = z.object({ authorizationUrl: z.string().url() }).strict();
|
|
469
470
|
const disconnectServiceAccountResponseSchema = z.object({ disconnected: z.literal(true) }).strict();
|
|
471
|
+
// src/api/schema/review-item.ts
|
|
472
|
+
const answerSchema = z.object({
|
|
473
|
+
other: z.string().max(4e3).optional(),
|
|
474
|
+
requestId: z.string().min(1),
|
|
475
|
+
values: z.record(z.string(), z.array(z.string().max(4e3)).max(20))
|
|
476
|
+
}).strict();
|
|
477
|
+
const personSchema = z.object({
|
|
478
|
+
displayName: z.string().min(1).optional(),
|
|
479
|
+
email: z.string().min(1),
|
|
480
|
+
userId: z.string().min(1)
|
|
481
|
+
}).strict();
|
|
482
|
+
/** One Review item as the viewer sees it. */
|
|
483
|
+
const reviewItemSchema = z.object({
|
|
484
|
+
addedByConversationId: z.string().min(1),
|
|
485
|
+
answer: answerSchema.optional(),
|
|
486
|
+
assignedToEveryone: z.boolean(),
|
|
487
|
+
assignees: z.array(personSchema),
|
|
488
|
+
automationId: z.string().min(1).optional(),
|
|
489
|
+
body: z.string(),
|
|
490
|
+
/** True when the viewer can take, submit, complete, or dismiss it. */
|
|
491
|
+
canAct: z.boolean(),
|
|
492
|
+
/** True when the viewer can act and is not already the only assignee. */
|
|
493
|
+
canTake: z.boolean(),
|
|
494
|
+
closeReason: z.string().min(1).optional(),
|
|
495
|
+
closedAt: z.string().datetime().optional(),
|
|
496
|
+
/** Unset for an open item, or when an agent closed it. */
|
|
497
|
+
closedBy: personSchema.optional(),
|
|
498
|
+
conversationIds: z.array(z.string().min(1)),
|
|
499
|
+
createdAt: z.string().datetime(),
|
|
500
|
+
id: z.string().min(1),
|
|
501
|
+
kind: z.enum(["notice", "action"]),
|
|
502
|
+
request: userInputRequestSchema.optional(),
|
|
503
|
+
status: z.enum([
|
|
504
|
+
"open",
|
|
505
|
+
"done",
|
|
506
|
+
"dismissed"
|
|
507
|
+
]),
|
|
508
|
+
subject: z.object({
|
|
509
|
+
id: z.string().min(1),
|
|
510
|
+
title: z.string().min(1).optional(),
|
|
511
|
+
url: z.string().min(1).optional()
|
|
512
|
+
}).strict().optional(),
|
|
513
|
+
title: z.string().min(1),
|
|
514
|
+
updatedAt: z.string().datetime(),
|
|
515
|
+
visibility: z.enum(["public", "private"])
|
|
516
|
+
}).strict();
|
|
517
|
+
/** Review desk list filters. */
|
|
518
|
+
const reviewItemListQuerySchema = z.object({
|
|
519
|
+
/** `true` lists done and dismissed items instead of open ones. */
|
|
520
|
+
archived: z.enum(["true", "false"]).optional(),
|
|
521
|
+
conversationId: z.string().min(1).optional(),
|
|
522
|
+
q: z.string().trim().max(200).optional(),
|
|
523
|
+
view: z.enum([
|
|
524
|
+
"mine",
|
|
525
|
+
"everyone",
|
|
526
|
+
"all"
|
|
527
|
+
]).optional()
|
|
528
|
+
}).strict();
|
|
529
|
+
const reviewItemListSchema = z.object({ items: z.array(reviewItemSchema) }).strict();
|
|
530
|
+
/** Open Review items that wait on the viewer. */
|
|
531
|
+
const reviewItemCountSchema = z.object({
|
|
532
|
+
/** Open items assigned to the viewer as a User. */
|
|
533
|
+
mine: z.number().int().nonnegative() }).strict();
|
|
534
|
+
/** Conversations with an open item assigned to the viewer or Everyone. */
|
|
535
|
+
const reviewItemWaitingConversationsSchema = z.object({ conversationIds: z.array(z.string().min(1)) }).strict();
|
|
536
|
+
const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
|
|
537
|
+
/** One person action on a Review item. */
|
|
538
|
+
const reviewItemActionSchema = z.discriminatedUnion("action", [
|
|
539
|
+
z.object({ action: z.literal("take") }).strict(),
|
|
540
|
+
z.object({ action: z.literal("complete") }).strict(),
|
|
541
|
+
z.object({ action: z.literal("dismiss") }).strict(),
|
|
542
|
+
z.object({
|
|
543
|
+
action: z.literal("submit"),
|
|
544
|
+
answer: answerSchema.omit({ requestId: true })
|
|
545
|
+
}).strict()
|
|
546
|
+
]);
|
|
470
547
|
// src/api/schema/workspace.ts
|
|
471
548
|
const workspaceRepoInputSchema = z.object({
|
|
472
549
|
provider: z.string(),
|
|
@@ -526,4 +603,4 @@ const statsReportSchema = z.object({
|
|
|
526
603
|
windowEnd: z.string(),
|
|
527
604
|
windowStart: z.string()
|
|
528
605
|
}).strict();
|
|
529
|
-
export {
|
|
606
|
+
export { conversationWatchSchema as $, personParamsSchema as A, connectionListSchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationParamsSchema as F, codeActivityDaySchema as G, connectionSchema as H, activityDays as I, codeOverviewReportSchema as J, codeChangeSummaryReportSchema as K, activityHours as L, locationActivityDayReportSchema as M, locationDetailReportSchema as N, actorDirectoryReportSchema as O, locationDirectoryReportSchema as P, codeRepositorySummarySchema as Q, activitySixHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, disconnectConnectionResponseSchema as U, connectionParamsSchema as V, startConnectionResponseSchema as W, codeRepositoryParamsSchema as X, codePersonReportSchema as Y, codeRepositoryReportSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, apiErrorSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, reviewItemCountSchema as d, conversationWatchesReportSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, conversationStatsReportSchema as it, personalSpendReportSchema as j, actorProfileReportSchema as k, workspaceSchema as l, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentsReportSchema as nt, workspaceListSchema as o, reviewItemListSchema as p, codeChangeSummarySchema as q, baselineSnapshotSchema as r, stopConversationTurnResponseSchema as rt, workspaceParamsSchema as s, statSchema as t, conversationChildAgentSchema as tt, reviewItemActionSchema as u, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, dailyConversationActivitySchema as z };
|