@sentry/junior 0.276.0 → 0.277.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-DoPR2jS-.js → adapter-BtfBHVM5.js} +1 -1
- package/dist/{admin-BJTT-kXb.js → admin-DzAKbZsm.js} +1 -1
- package/dist/{agent-invocations-CUWrrzkc.js → agent-invocations-Crs3XHhg.js} +5 -1
- package/dist/{agent-runner-sMpA5qGM.js → agent-runner-BsYAbniN.js} +151 -65
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +13 -2
- package/dist/api.js +137 -28
- package/dist/{app-DTj-yAQt.d.ts → app-BjEQwNVP.d.ts} +3 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +65 -56
- package/dist/{assistant-reply-DbxKnBQF.js → assistant-reply-NebRGG4G.js} +1 -1
- package/dist/{automation-B8_mC68r.js → automation-Cql9h2vO.js} +1 -1
- package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-hh18yCeU.js} +2 -2
- package/dist/{briefs-IL7QnCCR.js → briefs-BBo0Eimi.js} +4 -4
- package/dist/{catalog-runtime--sC2CYLQ.js → catalog-runtime-DE-F4Awo.js} +1 -1
- package/dist/cli/chat.d.ts +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.d.ts +1 -1
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-7diKvInp.js → client-DZ8HTnYH.js} +2 -2
- package/dist/{config-Cb--cuv-.js → config-D5uUtrCP.js} +2 -2
- package/dist/{connections-C4-4fxaE.js → connections-Do24CGP5.js} +10 -10
- package/dist/{conversation-DppJ83Hw.js → conversation-SsASlWL7.js} +4 -6
- package/dist/{conversation-privacy-DTwdT3Pi.js → conversation-privacy-VuylvlKr.js} +1 -1
- package/dist/{credential-sync-Sl5RQCkS.js → credential-sync-BGQK3pOa.js} +13 -13
- package/dist/{db-Ck6TXQIx.d.ts → db-DEiwO5Sh.d.ts} +1 -1
- package/dist/{executor-BFKmqxYe.js → executor-hPfFTH0C.js} +13 -5
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-B04X_eCB.js → logging-cI3T1dNc.js} +4 -2
- package/dist/{message-DQMFyyE-.js → message-DBwsAl7O.js} +9 -9
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +7 -3
- package/dist/{oauth-callback-server-BGq0_vQI.js → oauth-callback-server-DXrnbplb.js} +2 -2
- package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
- package/dist/{projection-6dXaN0n-.js → projection-7EFIqzuj.js} +4476 -4348
- package/dist/{prompt-B4fQKGZR.js → prompt-oRfGsxd3.js} +1 -1
- package/dist/{registry-CEqKR_ld.js → registry-Bzefs7kT.js} +24 -8
- package/dist/{resolve-8I5DkrfI.js → resolve-CuiEY_2u.js} +3 -3
- package/dist/{result-BgAW90IM.js → result-DrcUtFaD.js} +9 -9
- package/dist/{runner-CSKDr_19.js → runner-CDE4CZ52.js} +11 -11
- package/dist/{sandbox-egress-signals-BxAT276e.js → sandbox-egress-signals-0tcmGd13.js} +1 -1
- package/dist/{schema-CaUWl2EV.d.ts → schema-B6N2nc6v.d.ts} +35 -10
- package/dist/{schema-Cal-EFdi.js → schema-Dzi3lkdP.js} +19 -4
- package/dist/{service-account-CtOab1Xz.js → service-account-BOz9pqOE.js} +3 -3
- package/dist/{service-account-CUuVJCKT.js → service-account-DIyz_9Uh.js} +3 -3
- package/dist/{session-stop-DK8LuPZW.js → session-stop-0juF_BP0.js} +17 -14
- package/dist/{skills-Bc0D7BGy.js → skills-CU5Is147.js} +2 -2
- package/dist/{spawn-DF_GUcd8.js → spawn-6C9jHH4b.js} +2 -2
- package/dist/{stop-DthSy-z8.js → stop-6FVG1c-r.js} +388 -153
- package/dist/{store-BgH2P3X9.js → store-DKs1WwdB.js} +3 -3
- package/dist/{store-C5uVTx2G.js → store-DtHZviJ1.js} +4 -4
- package/dist/{task-queue-C6ROM_XJ.js → task-queue-CcvFQE_p.js} +3 -3
- package/dist/{task-runner-BwAkjjVE.js → task-runner-DBkNejLl.js} +6 -6
- package/dist/{thread-state-BXjgk1pW.js → thread-state-4hjEIkIq.js} +4 -4
- package/dist/{turn-failure-response-CVI57qKL.js → turn-failure-response-BZNLydC3.js} +7 -7
- package/dist/{turn-lifecycle-CF6ibonp.js → turn-lifecycle-BhqYjaa4.js} +1 -1
- package/dist/{turn-session-routing-DddybdNu.js → turn-session-routing-jnLOfBHJ.js} +10 -10
- package/dist/{validation-BxF1nQbC.js → validation-BUFmsnKs.js} +1 -1
- package/dist/{version-CTzSbCmR.js → version-DJTk0ZCE.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CQwBszc7.js → viewer-WY0RYE4E.js} +47 -12
- package/dist/{work-BHlShEQ6.js → work-C5AKvXJV.js} +10 -10
- package/dist/{worker-DhY9MnsH.js → worker-BcYVDVUy.js} +6 -6
- package/migrations/0074_conversation_participant_pins.sql +1 -0
- package/migrations/0075_conversation_detail_version.sql +1 -0
- package/migrations/0076_conversation_auto_archive.sql +5 -0
- package/migrations/meta/0074_snapshot.json +4076 -0
- package/migrations/meta/0075_snapshot.json +4299 -0
- package/migrations/meta/0076_snapshot.json +4363 -0
- package/migrations/meta/_journal.json +22 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as conversationBriefSchema, Y as parseBriefInput, q as briefOutcomeStatusSchema } from "./conversation-SsASlWL7.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-cI3T1dNc.js";
|
|
2
2
|
import { o as isUserActor, s as parseActorUserId } from "./actor-B4DYygOB.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";
|
|
@@ -66,6 +66,7 @@ function inlineMcpSource(mcp) {
|
|
|
66
66
|
setDefined$1(result, "oauth-client", mcp.oauthClient && mcpOauthClientSource(mcp.oauthClient));
|
|
67
67
|
setDefined$1(result, "allowed-tools", mcp.allowedTools);
|
|
68
68
|
setDefined$1(result, "wrapped-tools", mcp.wrappedTools);
|
|
69
|
+
setDefined$1(result, "audit-tools", mcp.auditTools);
|
|
69
70
|
return result;
|
|
70
71
|
}
|
|
71
72
|
function inlineOauthSource(oauth) {
|
|
@@ -268,7 +269,8 @@ const mcpSourceSchema = z.object({
|
|
|
268
269
|
headers: stringMapSchema.optional(),
|
|
269
270
|
"oauth-client": mcpOauthClientSourceSchema.optional(),
|
|
270
271
|
"allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional(),
|
|
271
|
-
"wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional()
|
|
272
|
+
"wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional(),
|
|
273
|
+
"audit-tools": nonEmptyStringArraySchema("audit-tools").optional()
|
|
272
274
|
}).passthrough();
|
|
273
275
|
const targetSourceSchema = z.object({
|
|
274
276
|
type: nonEmptyTrimmedString.refine((value) => PLUGIN_NAME_RE.test(value), { error: "type must be a lowercase target identifier" }),
|
|
@@ -329,6 +331,7 @@ function manifestConfigPatch(config) {
|
|
|
329
331
|
setDefined(mcp, "oauth-client", config.mcp.oauthClient && mcpOauthClientSource(config.mcp.oauthClient));
|
|
330
332
|
setDefined(mcp, "allowed-tools", config.mcp.allowedTools);
|
|
331
333
|
setDefined(mcp, "wrapped-tools", config.mcp.wrappedTools);
|
|
334
|
+
setDefined(mcp, "audit-tools", config.mcp.auditTools);
|
|
332
335
|
result.mcp = mcp;
|
|
333
336
|
}
|
|
334
337
|
}
|
|
@@ -605,6 +608,12 @@ function normalizeMcp(data, envVars, name) {
|
|
|
605
608
|
if (typeof prepared.url === "string") prepared.url = expandEnvPlaceholders(prepared.url, envVars, `Plugin ${name} mcp.url`);
|
|
606
609
|
const result = mcpSourceSchema.safeParse(prepared);
|
|
607
610
|
if (!result.success) throw new Error(issueMessage(result.error, `Plugin ${name} mcp`));
|
|
611
|
+
const auditTools = result.data["audit-tools"];
|
|
612
|
+
const unknownAuditTools = unloadedMcpTools({
|
|
613
|
+
allowedTools: result.data["allowed-tools"],
|
|
614
|
+
wrappedTools: result.data["wrapped-tools"]
|
|
615
|
+
}, auditTools ?? []);
|
|
616
|
+
if (unknownAuditTools.length > 0) throw new Error(`Plugin ${name} mcp.audit-tools must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unknownAuditTools.join(", ")}`);
|
|
608
617
|
const headers = result.data.headers ? normalizeStringMap(result.data.headers, `Plugin ${name} mcp.headers`, { forbiddenKeys: FORBIDDEN_API_HEADER_NAMES }) : void 0;
|
|
609
618
|
assertDeclaredHeaderEnvReferences(headers, envVars, `Plugin ${name} mcp.headers`);
|
|
610
619
|
if (result.data.auth) assertDeclaredHostSecretEnv(result.data.auth["private-key-env"], envVars, `Plugin ${name} mcp.auth.private-key-env`);
|
|
@@ -631,10 +640,20 @@ function normalizeMcp(data, envVars, name) {
|
|
|
631
640
|
...oauthClientAuthorizeParams ? { authorizeParams: oauthClientAuthorizeParams } : void 0
|
|
632
641
|
} } : void 0,
|
|
633
642
|
...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : void 0,
|
|
634
|
-
...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0
|
|
643
|
+
...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0,
|
|
644
|
+
...auditTools ? { auditTools } : void 0
|
|
635
645
|
};
|
|
636
646
|
}
|
|
637
647
|
/**
|
|
648
|
+
* Return the tools that a set MCP allow-list does not load. An empty
|
|
649
|
+
* allow-list loads every tool, so only a set list can be checked.
|
|
650
|
+
*/
|
|
651
|
+
function unloadedMcpTools(mcp, tools) {
|
|
652
|
+
if (!mcp.allowedTools) return [];
|
|
653
|
+
const loadedTools = /* @__PURE__ */ new Set([...mcp.allowedTools, ...mcp.wrappedTools ?? []]);
|
|
654
|
+
return tools.filter((tool) => !loadedTools.has(tool));
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
638
657
|
* Validate which accounts the plugin may use against the surfaces that
|
|
639
658
|
* support them. Today only MCP OAuth stores a service account.
|
|
640
659
|
*/
|
|
@@ -646,11 +665,8 @@ function normalizeAccounts(data, mcp, name) {
|
|
|
646
665
|
if (userOAuth === false && !serviceAccount) throw new Error(`Plugin ${name} accounts.user-oauth false requires accounts.service-account`);
|
|
647
666
|
if (!serviceAccount) return;
|
|
648
667
|
if (!mcp || mcp.auth || mcp.oauthClient) throw new Error(`Plugin ${name} accounts.service-account requires mcp without auth or oauth-client`);
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
const unknownTools = serviceAccount.tools.filter((tool) => !loadedTools.has(tool));
|
|
652
|
-
if (unknownTools.length > 0) throw new Error(`Plugin ${name} accounts.service-account.tools must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unknownTools.join(", ")}`);
|
|
653
|
-
}
|
|
668
|
+
const unknownTools = unloadedMcpTools(mcp, serviceAccount.tools);
|
|
669
|
+
if (unknownTools.length > 0) throw new Error(`Plugin ${name} accounts.service-account.tools must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unknownTools.join(", ")}`);
|
|
654
670
|
return {
|
|
655
671
|
...userOAuth === false ? { userOAuth } : void 0,
|
|
656
672
|
serviceAccount: { tools: serviceAccount.tools }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { r as getStateAdapter } from "./adapter-
|
|
1
|
+
import { Ta as SANDBOX_WORKSPACE_ROOT, ba as SANDBOX_COMMAND_PATH, ci as create, fi as getSandboxProvider, ja as runNonInteractiveCommand, ma as sleep, ui as isStale } from "./projection-7EFIqzuj.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-cI3T1dNc.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { at as listTurnSummaries, it as getTurnRecord } from "./projection-
|
|
2
|
+
import { at as listTurnSummaries, it as getTurnRecord } from "./projection-7EFIqzuj.js";
|
|
3
3
|
import { t as createActor } from "./actor-B4DYygOB.js";
|
|
4
|
-
import { M as SYSTEM_IDENTITY_ID } from "./viewer-
|
|
5
|
-
import { f as credentialContextForActor } from "./registry-
|
|
6
|
-
import { wt as listUnreportedSiblingAgents } from "./agent-runner-
|
|
7
|
-
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-
|
|
8
|
-
import { _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, o as createAgentInvocationFromLatest, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, w as markAgentInvocationParentMailboxAppended, y as isTerminalAgentInvocation } from "./store-
|
|
9
|
-
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-
|
|
10
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
11
|
-
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-
|
|
4
|
+
import { M as SYSTEM_IDENTITY_ID } from "./viewer-WY0RYE4E.js";
|
|
5
|
+
import { f as credentialContextForActor } from "./registry-Bzefs7kT.js";
|
|
6
|
+
import { wt as listUnreportedSiblingAgents } from "./agent-runner-BsYAbniN.js";
|
|
7
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-oRfGsxd3.js";
|
|
8
|
+
import { _ as getLatestAgentInvocationForConversation, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, o as createAgentInvocationFromLatest, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, w as markAgentInvocationParentMailboxAppended, y as isTerminalAgentInvocation } from "./store-DtHZviJ1.js";
|
|
9
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-0juF_BP0.js";
|
|
10
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DKs1WwdB.js";
|
|
11
|
+
import { a as resolveAgentInvocationId, i as enqueueAgentInvocation, t as createAgentInvocationWorker } from "./work-C5AKvXJV.js";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/conversations/web-mailbox.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as buildConversationContext, F as markConversationMessage, I as normalizeConversationText, Kt as persistWithRetry, L as recordDeliveredAssistantMessage, S as persistConversationMessages, U as authorizationId, et as saveTurnCheckpoint, o as loadProjection, p as recordAuthorizationCompleted, t as commitAcceptedReply, x as hydrateConversationMessages, z as upsertConversationMessage } from "./projection-
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import { M as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { $ as markTurnFailed, et as startActiveTurn } from "./store-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
9
|
-
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-
|
|
10
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
11
|
-
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-
|
|
1
|
+
import { A as buildConversationContext, F as markConversationMessage, I as normalizeConversationText, Kt as persistWithRetry, L as recordDeliveredAssistantMessage, S as persistConversationMessages, U as authorizationId, et as saveTurnCheckpoint, o as loadProjection, p as recordAuthorizationCompleted, t as commitAcceptedReply, x as hydrateConversationMessages, z as upsertConversationMessage } from "./projection-7EFIqzuj.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-cI3T1dNc.js";
|
|
3
|
+
import { M as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-WY0RYE4E.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-Bzefs7kT.js";
|
|
5
|
+
import { R as messageCardText } from "./conversation-SsASlWL7.js";
|
|
6
|
+
import { $ as markTurnFailed, et as startActiveTurn } from "./store-DtHZviJ1.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-NebRGG4G.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BhqYjaa4.js";
|
|
9
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-4hjEIkIq.js";
|
|
10
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DBkNejLl.js";
|
|
11
|
+
import { i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent, u as loadPendingMessageCards } from "./turn-failure-response-BZNLydC3.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 { la as sandboxEgressSignalsResponseSchema } from "./projection-7EFIqzuj.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;
|
|
@@ -487,13 +487,6 @@ declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
|
487
487
|
archived: "archived";
|
|
488
488
|
}>>;
|
|
489
489
|
}, z.core.$strict>;
|
|
490
|
-
declare const archiveConversationBodySchema: z.ZodObject<{
|
|
491
|
-
archived: z.ZodBoolean;
|
|
492
|
-
lastSeenAt: z.ZodString;
|
|
493
|
-
}, z.core.$strict>;
|
|
494
|
-
declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
495
|
-
archivedAt: z.ZodNullable<z.ZodString>;
|
|
496
|
-
}, z.core.$strict>;
|
|
497
490
|
declare const createConversationMessageBodySchema: z.ZodObject<{
|
|
498
491
|
idempotencyKey: z.ZodString;
|
|
499
492
|
message: z.ZodString;
|
|
@@ -813,6 +806,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
813
806
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
814
807
|
}, z.core.$strict>>>;
|
|
815
808
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
816
810
|
channel: z.ZodOptional<z.ZodString>;
|
|
817
811
|
channelName: z.ZodOptional<z.ZodString>;
|
|
818
812
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1646,6 +1640,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1646
1640
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1647
1641
|
}, z.core.$strict>>>;
|
|
1648
1642
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1643
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1649
1644
|
channel: z.ZodOptional<z.ZodString>;
|
|
1650
1645
|
channelName: z.ZodOptional<z.ZodString>;
|
|
1651
1646
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1767,6 +1762,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1767
1762
|
conversationId: z.ZodString;
|
|
1768
1763
|
label: z.ZodString;
|
|
1769
1764
|
}, z.core.$strict>>>;
|
|
1765
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
1770
1766
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
1771
1767
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
1772
1768
|
lastReadSeq: z.ZodNumber;
|
|
@@ -2617,6 +2613,7 @@ declare const conversationFeedSchema: z.ZodObject<{
|
|
|
2617
2613
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
2618
2614
|
}, z.core.$strict>>>;
|
|
2619
2615
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2616
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2620
2617
|
channel: z.ZodOptional<z.ZodString>;
|
|
2621
2618
|
channelName: z.ZodOptional<z.ZodString>;
|
|
2622
2619
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2758,8 +2755,6 @@ type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
|
|
|
2758
2755
|
type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
|
|
2759
2756
|
type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
2760
2757
|
type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
2761
|
-
type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
2762
|
-
type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
2763
2758
|
type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
|
|
2764
2759
|
type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
|
|
2765
2760
|
type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
|
|
@@ -2770,6 +2765,24 @@ type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPe
|
|
|
2770
2765
|
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
2771
2766
|
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
2772
2767
|
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
2768
|
+
declare const archiveConversationBodySchema: z.ZodObject<{
|
|
2769
|
+
archived: z.ZodBoolean;
|
|
2770
|
+
lastSeenAt: z.ZodString;
|
|
2771
|
+
}, z.core.$strict>;
|
|
2772
|
+
declare const archiveConversationResponseSchema: z.ZodObject<{
|
|
2773
|
+
archivedAt: z.ZodNullable<z.ZodString>;
|
|
2774
|
+
}, z.core.$strict>;
|
|
2775
|
+
/** Viewer's auto-archive choice for one conversation. */
|
|
2776
|
+
declare const conversationAutoArchiveSchema: z.ZodObject<{
|
|
2777
|
+
autoArchive: z.ZodBoolean;
|
|
2778
|
+
}, z.core.$strict>;
|
|
2779
|
+
/** Result of archiving all of the viewer's done conversations once. */
|
|
2780
|
+
declare const archiveDoneConversationsResponseSchema: z.ZodObject<{
|
|
2781
|
+
archived: z.ZodNumber;
|
|
2782
|
+
}, z.core.$strict>;
|
|
2783
|
+
type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
2784
|
+
type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
2785
|
+
type ConversationAutoArchive = z.infer<typeof conversationAutoArchiveSchema>;
|
|
2773
2786
|
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
2774
2787
|
active: z.ZodNumber;
|
|
2775
2788
|
conversations: z.ZodNumber;
|
|
@@ -2958,6 +2971,16 @@ declare const conversationReadPositionSchema: z.ZodObject<{
|
|
|
2958
2971
|
lastReadSeq: z.ZodNumber;
|
|
2959
2972
|
}, z.core.$strict>;
|
|
2960
2973
|
type ConversationReadPosition = z.infer<typeof conversationReadPositionSchema>;
|
|
2974
|
+
/** Pin or unpin one Conversation for the signed-in viewer. */
|
|
2975
|
+
declare const pinConversationBodySchema: z.ZodObject<{
|
|
2976
|
+
pinned: z.ZodBoolean;
|
|
2977
|
+
}, z.core.$strict>;
|
|
2978
|
+
/** The viewer's pin time after the change, or null when unpinned. */
|
|
2979
|
+
declare const pinConversationResponseSchema: z.ZodObject<{
|
|
2980
|
+
pinnedAt: z.ZodNullable<z.ZodString>;
|
|
2981
|
+
}, z.core.$strict>;
|
|
2982
|
+
type PinConversationBody = z.infer<typeof pinConversationBodySchema>;
|
|
2983
|
+
type PinConversationResponse = z.infer<typeof pinConversationResponseSchema>;
|
|
2961
2984
|
/**
|
|
2962
2985
|
* One direct child agent of a Conversation, from agent invocation records.
|
|
2963
2986
|
*
|
|
@@ -3446,6 +3469,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
3446
3469
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3447
3470
|
}, z.core.$strict>>>;
|
|
3448
3471
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3472
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3449
3473
|
channel: z.ZodOptional<z.ZodString>;
|
|
3450
3474
|
channelName: z.ZodOptional<z.ZodString>;
|
|
3451
3475
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3869,6 +3893,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
3869
3893
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3870
3894
|
}, z.core.$strict>>>;
|
|
3871
3895
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3896
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3872
3897
|
channel: z.ZodOptional<z.ZodString>;
|
|
3873
3898
|
channelName: z.ZodOptional<z.ZodString>;
|
|
3874
3899
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6058,4 +6083,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6058
6083
|
}, z.core.$strict>;
|
|
6059
6084
|
}, z.core.$strict>], "action">;
|
|
6060
6085
|
type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
|
|
6061
|
-
export { automationExecutionSchema as $,
|
|
6086
|
+
export { automationExecutionSchema as $, ConversationAgentTreeNode as $n, CodeActivityDay as $r, LocationParams as $t, StatReport as A, MAX_INPUT_IMAGES as Ai, pinConversationResponseSchema as An, conversationDetailQuerySchema as Ar, PersonalTokenMetadata as At, AutomationListQuery as B, conversationStatsReportSchema as Bn, conversationPendingMessageSchema as Br, serviceAccountSchema as Bt, pluginPackageContentItemReportSchema as C, UserInputField as Ci, ConversationChildAgent as Cn, SteerConversationPendingMessagesBody as Cr, workspaceBodySchema as Ct, runtimeInfoReportSchema as D, normalizeUserInputAnswer as Di, PinConversationBody as Dn, cancelConversationPendingMessagesResponseSchema as Dr, workspaceSchema as Dt, pluginsSchema as E, isEmptyUserInputAnswer as Ei, conversationChildAgentsReportSchema as En, cancelConversationPendingMessagesBodySchema as Er, workspaceRepoSchema as Et, AutomationExecution as F, ConversationMetricDay as Fn, conversationFeedQuerySchema as Fr, personalTokenParamsSchema as Ft, AutomationSummary as G, archiveConversationResponseSchema as Gn, createConversationBodySchema as Gr, disconnectConnectionResponseSchema as Gt, AutomationRunList as H, ArchiveConversationResponse as Hn, conversationReportEventDataSchema as Hr, connectionListSchema as Ht, AutomationExecutionDay as I, ConversationStatsItem as In, conversationFeedSchema as Ir, revokePersonalTokenResponseSchema as It, ListedAutomationVersion as J, AcceptedConversationMessage as Jn, forkConversationResponseSchema as Jr, apiErrorSchema as Jt, AutomationUpdate as K, archiveDoneConversationsResponseSchema as Kn, createConversationMessageBodySchema as Kr, startConnectionResponseSchema as Kt, AutomationExecutionList as L, ConversationStatsReport as Ln, conversationParamsSchema as Lr, disconnectServiceAccountResponseSchema as Lt, statSchema as M, MessageAttachment as Mi, conversationReadPositionSchema as Mn, conversationEventHistorySchema as Mr, createdPersonalTokenSchema as Mt, statsReportSchema as N, INPUT_IMAGE_TYPES as Ni, StopConversationTurnResponse as Nn, conversationEventPageSchema as Nr, personalTokenListSchema as Nt, skillReportSchema as O, webMessageId as Oi, PinConversationResponse as On, conversationActivityPreviewSchema as Or, USER_CUSTOMIZATION_MAX_CHARS as Ot, AutomationEdit as P, stopConversationTurnResponseSchema as Pn, conversationEventsQuerySchema as Pr, personalTokenMetadataSchema as Pt, automationExecutionListSchema as Q, ConversationActivityPreview as Qn, conversationTurnFailureReasonSchema as Qr, LocationDirectoryReport as Qt, AutomationExecutionStatusDay as R, GuardianMetricDay as Rn, conversationPendingAuthorizationSchema as Rr, serviceAccountListSchema as Rt, pluginOperationalReportSchema as S, UserInputAnswer as Si, conversationWatchesReportSchema as Sn, CreateConversationMessageBody as Sr, deleteWorkspaceResponseSchema as St, pluginSchema as T, buttonUserInputField as Ti, conversationChildAgentSchema as Tn, acceptedConversationMessageSchema as Tr, workspaceParamsSchema as Tt, AutomationRunWindows as U, ConversationAutoArchive as Un, conversationReportEventSchema as Ur, connectionParamsSchema as Ut, AutomationRun as V, ArchiveConversationBody as Vn, conversationPendingMessagesReportSchema as Vr, startServiceAccountSignInResponseSchema as Vt, AutomationScheduleIntent as W, archiveConversationBodySchema as Wn, conversationSummaryReportSchema as Wr, connectionSchema as Wt, automationEditSchema as X, CancelConversationPendingMessagesBody as Xn, steerConversationPendingMessagesResponseSchema as Xr, LocationActorSummaryReport as Xt, automationEditErrorSchema as Y, ActorIdentity as Yn, steerConversationPendingMessagesBodySchema as Yr, LocationActivityDayReport as Yt, automationEventCatalogSchema as Z, CancelConversationPendingMessagesResponse as Zn, conversationTurnFailureCodeSchema as Zr, LocationDetailReport as Zt, RuntimeInfoReport as _, MessageCard as _i, personParamsSchema as _n, ConversationSurface as _r, scheduledAutomationSummarySchema as _t, reviewItemCountSchema as a, codeActivityDaySchema as ai, ActorActivityDayReport as an, ConversationFeed as ar, automationRunListSchema as at, healthReportSchema as b, AutomationCard as bi, ConversationWatchesReport as bn, ConversationUsage as br, WorkspaceReport as bt, reviewItemWaitingConversationsSchema as c, codeOverviewReportSchema as ci, ActorProfileReport as cn, ConversationPendingMessage as cr, automationScheduleIntentSchema as ct, Plugin as d, codeRepositoryReportSchema as di, ActorWindowMetrics as dn, ConversationReportEvent as dr, automationUpdateSchema as dt, CodeChangeSummaryReport as ei, LocationSummaryReport as en, ConversationAuxiliaryCosts as er, automationExecutionStatusDaySchema as et, PluginOperationalReport as f, codeRepositorySummarySchema as fi, PeopleActivityDayReport as fn, ConversationReportEventData as fr, automationVersionActivateSchema as ft, Plugins as g, dailyConversationActivitySchema as gi, actorProfileReportSchema as gn, ConversationSummaryReport as gr, eventAutomationSummarySchema as gt, PluginPackageContentReport as h, DailyConversationActivity as hi, actorDirectoryReportSchema as hn, ConversationSourceTask as hr, automationVersionSchema as ht, reviewItemActionSchema as i, CodeRepositorySummary as ii, locationParamsSchema as in, ConversationEventPage as ir, automationParamsSchema as it, StatsReport as j, MAX_INPUT_IMAGE_BYTES as ji, ConversationReadPosition as jn, conversationDetailReportSchema as jr, createPersonalTokenBodySchema as jt, skillReportsSchema as k, InputImage as ki, pinConversationBodySchema as kn, conversationAuxiliaryCostsSchema as kr, userCustomizationSchema as kt, ReviewItemChangeRecord as l, codePersonReportSchema as li, ActorSummaryReport as ln, ConversationPendingMessageDelivery as lr, automationSchedulePreviewSchema as lt, PluginPackageContentItemReport as m, conversationChildAgentTotalsSchema as mi, PersonalSpendReport as mn, ConversationReportStatus as mr, automationVersionParamsSchema as mt, ReviewItemActionBody as n, CodePersonReport as ni, locationDetailReportSchema as nn, ConversationDetailReport as nr, automationListQuerySchema as nt, reviewItemListSchema as o, codeChangeSummaryReportSchema as oi, ActorDirectoryReport as on, ConversationModelUsage as or, automationRunSchema as ot, PluginOperationalReportFeed as p, ConversationChildAgentTotals as pi, PersonParams as pn, ConversationReportMessageEvent as pr, automationVersionListSchema as pt, AutomationVersionList as q, conversationAutoArchiveSchema as qn, forkConversationBodySchema as qr, ApiError as qt, ReviewItemPayload as r, CodeRepositoryReport as ri, locationDirectoryReportSchema as rn, ConversationEventHistory as rr, automationListSchema as rt, reviewItemSchema as s, codeChangeSummarySchema as si, ActorDirectoryWindows as sn, ConversationParams as sr, automationRunWindowsSchema as st, OwnedObjectAnnotation$1 as t, CodeOverviewReport as ti, locationActivityDayReportSchema as tn, ConversationCost as tr, automationExecutionStatusSchema as tt, HealthReport as u, codeRepositoryParamsSchema as ui, ActorTotalsReport as un, ConversationPendingMessagesReport as ur, automationSummarySchema as ut, SkillReport as v, messageCardText as vi, personalSpendReportSchema as vn, ConversationTurnFailureCode as vr, BaselineSnapshotReport as vt, pluginPackageContentReportSchema as w, UserInputRequest as wi, ConversationChildAgentsReport as wn, SteerConversationPendingMessagesResponse as wr, workspaceListSchema as wt, pluginOperationalReportFeedSchema as x, USER_INPUT_NOTE as xi, conversationWatchSchema as xn, CreateConversationBody as xr, baselineSnapshotSchema as xt, SkillReports as y, resolveMessageCards as yi, ConversationWatch as yn, ConversationTurnFailureReason as yr, WorkspaceListReport as yt, AutomationList as z, GuardianStats as zn, conversationPendingMessageDeliverySchema as zr, serviceAccountParamsSchema as zt };
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-
|
|
2
|
-
import { E as
|
|
1
|
+
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-Crs3XHhg.js";
|
|
2
|
+
import { E as conversationUsageSchema, N as conversationChildAgentTotalsSchema, n as actorIdentitySchema, s as conversationAuxiliaryCostsSchema, w as conversationSummaryReportSchema } from "./conversation-SsASlWL7.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, y as userInputRequestSchema } from "./reporting-window-DgHgwQB3.js";
|
|
4
|
-
import "./automation-
|
|
4
|
+
import "./automation-Cql9h2vO.js";
|
|
5
5
|
import "./common-Eu6sx09c.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
8
|
+
// src/api/schema/conversation-pin.ts
|
|
9
|
+
/** Pin or unpin one Conversation for the signed-in viewer. */
|
|
10
|
+
const pinConversationBodySchema = z.object({ pinned: z.boolean() }).strict();
|
|
11
|
+
/** The viewer's pin time after the change, or null when unpinned. */
|
|
12
|
+
const pinConversationResponseSchema = z.object({ pinnedAt: z.string().datetime().nullable() }).strict();
|
|
13
|
+
// src/api/schema/conversation-archive.ts
|
|
14
|
+
const archiveConversationBodySchema = z.object({
|
|
15
|
+
archived: z.boolean(),
|
|
16
|
+
lastSeenAt: z.string().datetime()
|
|
17
|
+
}).strict();
|
|
18
|
+
const archiveConversationResponseSchema = z.object({ archivedAt: z.string().datetime().nullable() }).strict();
|
|
19
|
+
/** Viewer's auto-archive choice for one conversation. */
|
|
20
|
+
const conversationAutoArchiveSchema = z.object({ autoArchive: z.boolean() }).strict();
|
|
21
|
+
/** Result of archiving all of the viewer's done conversations once. */
|
|
22
|
+
const archiveDoneConversationsResponseSchema = z.object({ archived: z.number().int().nonnegative() }).strict();
|
|
8
23
|
// src/api/schema/conversation-stats.ts
|
|
9
24
|
const conversationStatsItemSchema = z.object({
|
|
10
25
|
active: z.number(),
|
|
@@ -634,4 +649,4 @@ const statsReportSchema = z.object({
|
|
|
634
649
|
windowEnd: z.string(),
|
|
635
650
|
windowStart: z.string()
|
|
636
651
|
}).strict();
|
|
637
|
-
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, reviewItemCountSchema as d, conversationWatchSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, stopConversationTurnResponseSchema as it, personParamsSchema as j, actorProfileReportSchema as k, workspaceSchema as l, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentSchema as nt, workspaceListSchema as o, reviewItemListSchema as p, codeChangeSummaryReportSchema as q, baselineSnapshotSchema as r, conversationChildAgentsReportSchema as rt, workspaceParamsSchema as s, statSchema as t, conversationWatchesReportSchema as tt, reviewItemActionSchema as u, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, activitySixHours as z };
|
|
652
|
+
export { codeRepositorySummarySchema as $, avatarParamsSchema as A, dailyConversationActivitySchema as B, createdPersonalTokenSchema as C, revokePersonalTokenResponseSchema as D, personalTokenParamsSchema as E, locationDirectoryReportSchema as F, startConnectionResponseSchema as G, connectionParamsSchema as H, locationParamsSchema as I, codeChangeSummarySchema as J, codeActivityDaySchema as K, activityDays as L, personalSpendReportSchema as M, locationActivityDayReportSchema as N, actorDirectoryReportSchema as O, locationDetailReportSchema as P, codeRepositoryReportSchema as Q, activityHours as R, createPersonalTokenBodySchema as S, personalTokenMetadataSchema as T, connectionSchema as U, connectionListSchema as V, disconnectConnectionResponseSchema as W, codePersonReportSchema as X, codeOverviewReportSchema as Y, codeRepositoryParamsSchema as Z, disconnectServiceAccountResponseSchema as _, workspaceBodySchema as a, conversationStatsReportSchema as at, serviceAccountSchema as b, workspaceRepoSchema as c, archiveDoneConversationsResponseSchema as ct, reviewItemCountSchema as d, pinConversationResponseSchema as dt, conversationWatchSchema as et, reviewItemListQuerySchema as f, reviewItemWaitingConversationsSchema as g, reviewItemSchema as h, deleteWorkspaceResponseSchema as i, stopConversationTurnResponseSchema as it, personParamsSchema as j, actorProfileReportSchema as k, workspaceSchema as l, conversationAutoArchiveSchema as lt, reviewItemParamsSchema as m, statsReportSchema as n, conversationChildAgentSchema as nt, workspaceListSchema as o, archiveConversationBodySchema as ot, reviewItemListSchema as p, codeChangeSummaryReportSchema as q, baselineSnapshotSchema as r, conversationChildAgentsReportSchema as rt, workspaceParamsSchema as s, archiveConversationResponseSchema as st, statSchema as t, conversationWatchesReportSchema as tt, reviewItemActionSchema as u, pinConversationBodySchema as ut, serviceAccountListSchema as v, personalTokenListSchema as w, startServiceAccountSignInResponseSchema as x, serviceAccountParamsSchema as y, activitySixHours as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime
|
|
2
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DE-F4Awo.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-BtfBHVM5.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DIyz_9Uh.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
1
|
+
import { W as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-cI3T1dNc.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-Bzefs7kT.js";
|
|
3
3
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
4
|
-
import { r as getStateAdapter } from "./adapter-
|
|
4
|
+
import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { C as getSqlExecutor, M as SYSTEM_IDENTITY_ID, x as getConversationStore } from "./viewer-
|
|
6
|
-
import { s as juniorConversations } from "./agent-invocations-
|
|
7
|
-
import "./executor-
|
|
8
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
9
|
-
import { r as getStateAdapter } from "./adapter-
|
|
10
|
-
import {
|
|
11
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
12
|
-
import { r as sanitizeAssistantText } from "./assistant-reply-
|
|
13
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
14
|
-
import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-
|
|
2
|
+
import { Bn as getPlugins, Br as verifyTimerWatchCredentialSubject, Hr as getDashboardConversationLink, I as normalizeConversationText, In as getPluginSlackConversationLink, Mi as postSlackMessage, Si as normalizeSlackReplyMarkdown, Ur as getDashboardObjectIconLink, Vr as JUNIOR_THREAD_STATE_TTL_MS, an as normalizeToolNameFromResult, bi as escapeSlackMrkdwnText, en as isAssistantMessage, in as isToolResultMessage, qa as buildSentryConversationUrl, qr as ToolInputError, rn as isToolResultError, xi as formatSlackLink } from "./projection-7EFIqzuj.js";
|
|
3
|
+
import { n as botConfig } from "./config-D5uUtrCP.js";
|
|
4
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-cI3T1dNc.js";
|
|
5
|
+
import { C as getSqlExecutor, G as nextDetailVersion, M as SYSTEM_IDENTITY_ID, x as getConversationStore } from "./viewer-WY0RYE4E.js";
|
|
6
|
+
import { s as juniorConversations } from "./agent-invocations-Crs3XHhg.js";
|
|
7
|
+
import "./executor-hPfFTH0C.js";
|
|
8
|
+
import { h as credentialSubjectSchema } from "./registry-Bzefs7kT.js";
|
|
9
|
+
import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
|
|
10
|
+
import { W as readMessageAttachments } from "./conversation-SsASlWL7.js";
|
|
11
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-oRfGsxd3.js";
|
|
12
|
+
import { r as sanitizeAssistantText } from "./assistant-reply-NebRGG4G.js";
|
|
13
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DKs1WwdB.js";
|
|
14
|
+
import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-jnLOfBHJ.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { eq, inArray } from "drizzle-orm";
|
|
17
17
|
import { agentEventKeys, eventMatchFieldsSchema, objectFactFields, objectPresentation, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1406,7 +1406,10 @@ var session_stop_exports = /* @__PURE__ */ __exportAll({
|
|
|
1406
1406
|
*/
|
|
1407
1407
|
async function markConversationsStopped(conversationIds, nowMs = Date.now()) {
|
|
1408
1408
|
if (conversationIds.length === 0) return;
|
|
1409
|
-
await getSqlExecutor().db().update(juniorConversations).set({
|
|
1409
|
+
await getSqlExecutor().db().update(juniorConversations).set({
|
|
1410
|
+
stoppedAt: new Date(nowMs),
|
|
1411
|
+
detailVersion: nextDetailVersion
|
|
1412
|
+
}).where(inArray(juniorConversations.conversationId, [...conversationIds]));
|
|
1410
1413
|
}
|
|
1411
1414
|
/** Return when a Conversation's session was last stopped. */
|
|
1412
1415
|
async function getConversationStoppedAtMs(conversationId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
2
|
+
import { h as logWarn } from "./logging-cI3T1dNc.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-DJBompdd.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DE-F4Awo.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-
|
|
3
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-BsYAbniN.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-C5AKvXJV.js";
|
|
4
4
|
// src/chat/agent-invocations/spawn.ts
|
|
5
5
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
6
6
|
/** Bind a Run's Actor and credentials to new Agent invocations. */
|