@sentry/junior 0.275.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-dE2BiWP_.js → adapter-BtfBHVM5.js} +1 -1
- package/dist/{admin-CkPaAYuZ.js → admin-DzAKbZsm.js} +1 -1
- package/dist/{agent-invocations-C1RNOCs8.js → agent-invocations-Crs3XHhg.js} +6 -1
- package/dist/{agent-runner-bE7aH7ew.js → agent-runner-BsYAbniN.js} +394 -244
- 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 +186 -68
- package/dist/{app-CgkquhZ8.d.ts → app-BjEQwNVP.d.ts} +11 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +227 -112
- package/dist/{assistant-reply-CjRU9Z59.js → assistant-reply-NebRGG4G.js} +1 -1
- package/dist/{automation-BGrd03QO.js → automation-Cql9h2vO.js} +42 -13
- package/dist/{background-compaction-queue-BYuOt3qK.js → background-compaction-queue-hh18yCeU.js} +2 -2
- package/dist/{briefs-6xUvmGos.js → briefs-BBo0Eimi.js} +4 -4
- package/dist/{catalog-runtime-DcJ5NHDW.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-gnKpkpqP.js → client-DZ8HTnYH.js} +2 -2
- package/dist/{config-D0GKc9sC.js → config-D5uUtrCP.js} +2 -2
- package/dist/{connections-DLqP5Bp1.js → connections-Do24CGP5.js} +14 -14
- package/dist/{conversation-BjTo9ZFL.js → conversation-SsASlWL7.js} +35 -12
- package/dist/{conversation-privacy-BCXFshP9.js → conversation-privacy-VuylvlKr.js} +1 -1
- package/dist/{credential-sync-BjihXFF2.js → credential-sync-BGQK3pOa.js} +13 -13
- package/dist/{db-BMZhoYKj.d.ts → db-DEiwO5Sh.d.ts} +1 -1
- package/dist/{executor-j8VMt-To.js → executor-hPfFTH0C.js} +13 -5
- package/dist/instrumentation.d.ts +14 -0
- package/dist/instrumentation.js +29 -6
- package/dist/{logging-CFHIO4Vs.js → logging-cI3T1dNc.js} +4 -2
- package/dist/{message-DH0cqFRS.js → message-DBwsAl7O.js} +9 -9
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +7 -3
- package/dist/{oauth-callback-server-BgU4EZsJ.js → oauth-callback-server-DXrnbplb.js} +2 -2
- package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
- package/dist/{projection-CTvLSwcm.js → projection-7EFIqzuj.js} +4108 -3898
- package/dist/{prompt-JEWUUpLW.js → prompt-oRfGsxd3.js} +1 -1
- package/dist/{registry-OsyWR4GO.js → registry-Bzefs7kT.js} +24 -8
- package/dist/{resolve-DCrKjmVP.js → resolve-CuiEY_2u.js} +3 -3
- package/dist/{result-Btdt5bSl.js → result-DrcUtFaD.js} +9 -9
- package/dist/{runner-C1AwS93W.js → runner-CDE4CZ52.js} +12 -12
- package/dist/{sandbox-egress-signals-C-5i7Zxm.js → sandbox-egress-signals-0tcmGd13.js} +1 -1
- package/dist/{schema-DfdHlBnb.d.ts → schema-B6N2nc6v.d.ts} +108 -15
- package/dist/{schema-CX9XGKCm.js → schema-Dzi3lkdP.js} +25 -8
- package/dist/{service-account-DZX1KlQl.js → service-account-BOz9pqOE.js} +3 -3
- package/dist/{service-account-CQIW6At4.js → service-account-DIyz_9Uh.js} +3 -3
- package/dist/{session-stop-DjIyORJw.js → session-stop-0juF_BP0.js} +159 -55
- package/dist/{skills-BEfAAT6p.js → skills-CU5Is147.js} +2 -2
- package/dist/{spawn-Dgj4xxvO.js → spawn-6C9jHH4b.js} +2 -2
- package/dist/{stop-DomyNvuv.js → stop-6FVG1c-r.js} +487 -203
- package/dist/{store-Dp3RMEQd.js → store-DKs1WwdB.js} +3 -3
- package/dist/{store-B7Z6zIc7.js → store-DtHZviJ1.js} +11 -9
- package/dist/{task-queue-CVQ9cWnC.js → task-queue-CcvFQE_p.js} +3 -3
- package/dist/{task-runner-DHBG47gS.js → task-runner-DBkNejLl.js} +6 -6
- package/dist/{thread-state-BF8VwIxd.js → thread-state-4hjEIkIq.js} +4 -4
- package/dist/{turn-failure-response-Di7TbgsF.js → turn-failure-response-BZNLydC3.js} +7 -7
- package/dist/{turn-lifecycle-DzXwXmLg.js → turn-lifecycle-BhqYjaa4.js} +6 -1
- package/dist/{turn-session-routing-CIWhXKeT.js → turn-session-routing-jnLOfBHJ.js} +17 -16
- package/dist/{validation-BRmwRaXc.js → validation-BUFmsnKs.js} +1 -1
- package/dist/{version-DBVMsgvA.js → version-DJTk0ZCE.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BFADRGP8.js → viewer-WY0RYE4E.js} +53 -15
- package/dist/{work-DDaoxZAw.js → work-C5AKvXJV.js} +30 -12
- package/dist/{worker-Bub0fDtW.js → worker-BcYVDVUy.js} +6 -6
- package/migrations/0073_conversation_quick_question.sql +1 -0
- 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/0073_snapshot.json +4070 -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 +29 -1
- package/package.json +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as
|
|
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 {
|
|
7
|
-
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-
|
|
8
|
-
import {
|
|
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 {
|
|
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
|
|
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
|
|
@@ -184,7 +184,7 @@ async function runLocalAgentTurnInContext(input, deps) {
|
|
|
184
184
|
runId: currentRunId,
|
|
185
185
|
instruction: {
|
|
186
186
|
text,
|
|
187
|
-
context: buildConversationContext(conversation, {
|
|
187
|
+
context: buildConversationContext(conversation, { excludeMessageIds: [userMessageId] })
|
|
188
188
|
},
|
|
189
189
|
history: messages,
|
|
190
190
|
actor: localActor,
|
|
@@ -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;
|
|
@@ -583,6 +576,14 @@ declare const conversationPendingMessageSchema: z.ZodObject<{
|
|
|
583
576
|
contentType: z.ZodString;
|
|
584
577
|
bytes: z.ZodNumber;
|
|
585
578
|
}, z.core.$strict>>>;
|
|
579
|
+
reviewItemChange: z.ZodOptional<z.ZodObject<{
|
|
580
|
+
kind: z.ZodEnum<{
|
|
581
|
+
dismissed: "dismissed";
|
|
582
|
+
submitted: "submitted";
|
|
583
|
+
taken: "taken";
|
|
584
|
+
}>;
|
|
585
|
+
reviewItemId: z.ZodString;
|
|
586
|
+
}, z.core.$strict>>;
|
|
586
587
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
587
588
|
}, z.core.$strict>;
|
|
588
589
|
/** Participant-only authorization prompt for a parked web turn. */
|
|
@@ -636,6 +637,14 @@ declare const conversationPendingMessagesReportSchema: z.ZodObject<{
|
|
|
636
637
|
contentType: z.ZodString;
|
|
637
638
|
bytes: z.ZodNumber;
|
|
638
639
|
}, z.core.$strict>>>;
|
|
640
|
+
reviewItemChange: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
kind: z.ZodEnum<{
|
|
642
|
+
dismissed: "dismissed";
|
|
643
|
+
submitted: "submitted";
|
|
644
|
+
taken: "taken";
|
|
645
|
+
}>;
|
|
646
|
+
reviewItemId: z.ZodString;
|
|
647
|
+
}, z.core.$strict>>;
|
|
639
648
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
640
649
|
}, z.core.$strict>>;
|
|
641
650
|
}, z.core.$strict>;
|
|
@@ -797,6 +806,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
797
806
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
798
807
|
}, z.core.$strict>>>;
|
|
799
808
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
800
810
|
channel: z.ZodOptional<z.ZodString>;
|
|
801
811
|
channelName: z.ZodOptional<z.ZodString>;
|
|
802
812
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -980,6 +990,14 @@ declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
980
990
|
key: z.ZodString;
|
|
981
991
|
kind: z.ZodLiteral<"object">;
|
|
982
992
|
}, z.core.$strict>>>;
|
|
993
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
994
|
+
kind: z.ZodEnum<{
|
|
995
|
+
dismissed: "dismissed";
|
|
996
|
+
submitted: "submitted";
|
|
997
|
+
taken: "taken";
|
|
998
|
+
}>;
|
|
999
|
+
reviewItemId: z.ZodString;
|
|
1000
|
+
}, z.core.$strict>>>;
|
|
983
1001
|
text: z.ZodOptional<z.ZodString>;
|
|
984
1002
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
985
1003
|
id: z.ZodString;
|
|
@@ -1237,6 +1255,14 @@ declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1237
1255
|
key: z.ZodString;
|
|
1238
1256
|
kind: z.ZodLiteral<"object">;
|
|
1239
1257
|
}, z.core.$strict>>>;
|
|
1258
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1259
|
+
kind: z.ZodEnum<{
|
|
1260
|
+
dismissed: "dismissed";
|
|
1261
|
+
submitted: "submitted";
|
|
1262
|
+
taken: "taken";
|
|
1263
|
+
}>;
|
|
1264
|
+
reviewItemId: z.ZodString;
|
|
1265
|
+
}, z.core.$strict>>>;
|
|
1240
1266
|
text: z.ZodOptional<z.ZodString>;
|
|
1241
1267
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1242
1268
|
id: z.ZodString;
|
|
@@ -1504,6 +1530,9 @@ declare const conversationModelUsageSchema: z.ZodObject<{
|
|
|
1504
1530
|
declare const forkConversationBodySchema: z.ZodObject<{
|
|
1505
1531
|
messageId: z.ZodString;
|
|
1506
1532
|
idempotencyKey: z.ZodString;
|
|
1533
|
+
quickQuestion: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
quote: z.ZodString;
|
|
1535
|
+
}, z.core.$strict>>;
|
|
1507
1536
|
}, z.core.$strict>;
|
|
1508
1537
|
declare const forkConversationResponseSchema: z.ZodObject<{
|
|
1509
1538
|
conversationId: z.ZodString;
|
|
@@ -1611,6 +1640,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1611
1640
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
1612
1641
|
}, z.core.$strict>>>;
|
|
1613
1642
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1643
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1614
1644
|
channel: z.ZodOptional<z.ZodString>;
|
|
1615
1645
|
channelName: z.ZodOptional<z.ZodString>;
|
|
1616
1646
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1732,6 +1762,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1732
1762
|
conversationId: z.ZodString;
|
|
1733
1763
|
label: z.ZodString;
|
|
1734
1764
|
}, z.core.$strict>>>;
|
|
1765
|
+
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
1735
1766
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
1736
1767
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
1737
1768
|
lastReadSeq: z.ZodNumber;
|
|
@@ -1901,6 +1932,14 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1901
1932
|
key: z.ZodString;
|
|
1902
1933
|
kind: z.ZodLiteral<"object">;
|
|
1903
1934
|
}, z.core.$strict>>>;
|
|
1935
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1936
|
+
kind: z.ZodEnum<{
|
|
1937
|
+
dismissed: "dismissed";
|
|
1938
|
+
submitted: "submitted";
|
|
1939
|
+
taken: "taken";
|
|
1940
|
+
}>;
|
|
1941
|
+
reviewItemId: z.ZodString;
|
|
1942
|
+
}, z.core.$strict>>>;
|
|
1904
1943
|
text: z.ZodOptional<z.ZodString>;
|
|
1905
1944
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1906
1945
|
id: z.ZodString;
|
|
@@ -2220,6 +2259,14 @@ declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
2220
2259
|
key: z.ZodString;
|
|
2221
2260
|
kind: z.ZodLiteral<"object">;
|
|
2222
2261
|
}, z.core.$strict>>>;
|
|
2262
|
+
reviewItemChanges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2263
|
+
kind: z.ZodEnum<{
|
|
2264
|
+
dismissed: "dismissed";
|
|
2265
|
+
submitted: "submitted";
|
|
2266
|
+
taken: "taken";
|
|
2267
|
+
}>;
|
|
2268
|
+
reviewItemId: z.ZodString;
|
|
2269
|
+
}, z.core.$strict>>>;
|
|
2223
2270
|
text: z.ZodOptional<z.ZodString>;
|
|
2224
2271
|
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2225
2272
|
id: z.ZodString;
|
|
@@ -2566,6 +2613,7 @@ declare const conversationFeedSchema: z.ZodObject<{
|
|
|
2566
2613
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
2567
2614
|
}, z.core.$strict>>>;
|
|
2568
2615
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2616
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2569
2617
|
channel: z.ZodOptional<z.ZodString>;
|
|
2570
2618
|
channelName: z.ZodOptional<z.ZodString>;
|
|
2571
2619
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2707,8 +2755,6 @@ type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
|
|
|
2707
2755
|
type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
|
|
2708
2756
|
type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
2709
2757
|
type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
2710
|
-
type ArchiveConversationBody = z.infer<typeof archiveConversationBodySchema>;
|
|
2711
|
-
type ArchiveConversationResponse = z.infer<typeof archiveConversationResponseSchema>;
|
|
2712
2758
|
type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
|
|
2713
2759
|
type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
|
|
2714
2760
|
type AcceptedConversationMessage = z.infer<typeof acceptedConversationMessageSchema>;
|
|
@@ -2719,6 +2765,24 @@ type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPe
|
|
|
2719
2765
|
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
2720
2766
|
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
2721
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>;
|
|
2722
2786
|
declare const conversationStatsItemSchema: z.ZodObject<{
|
|
2723
2787
|
active: z.ZodNumber;
|
|
2724
2788
|
conversations: z.ZodNumber;
|
|
@@ -2907,6 +2971,16 @@ declare const conversationReadPositionSchema: z.ZodObject<{
|
|
|
2907
2971
|
lastReadSeq: z.ZodNumber;
|
|
2908
2972
|
}, z.core.$strict>;
|
|
2909
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>;
|
|
2910
2984
|
/**
|
|
2911
2985
|
* One direct child agent of a Conversation, from agent invocation records.
|
|
2912
2986
|
*
|
|
@@ -3051,7 +3125,7 @@ type ConversationChildAgentsReport = z.infer<typeof conversationChildAgentsRepor
|
|
|
3051
3125
|
* below it created.
|
|
3052
3126
|
*
|
|
3053
3127
|
* Viewers who cannot see private content get the resource type, event types,
|
|
3054
|
-
* and times, but not the label, intent,
|
|
3128
|
+
* and times, but not the label, intent, match filter, or url.
|
|
3055
3129
|
*/
|
|
3056
3130
|
declare const conversationWatchSchema: z.ZodObject<{
|
|
3057
3131
|
childAgent: z.ZodOptional<z.ZodObject<{
|
|
@@ -3069,6 +3143,7 @@ declare const conversationWatchSchema: z.ZodObject<{
|
|
|
3069
3143
|
namespace: z.ZodString;
|
|
3070
3144
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3071
3145
|
resourceType: z.ZodString;
|
|
3146
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3072
3147
|
}, z.core.$strict>;
|
|
3073
3148
|
/** Active Watches that one Conversation owns, oldest first. */
|
|
3074
3149
|
declare const conversationWatchesReportSchema: z.ZodObject<{
|
|
@@ -3089,6 +3164,7 @@ declare const conversationWatchesReportSchema: z.ZodObject<{
|
|
|
3089
3164
|
namespace: z.ZodString;
|
|
3090
3165
|
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3091
3166
|
resourceType: z.ZodString;
|
|
3167
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3092
3168
|
}, z.core.$strict>>;
|
|
3093
3169
|
}, z.core.$strict>;
|
|
3094
3170
|
type ConversationWatch = z.infer<typeof conversationWatchSchema>;
|
|
@@ -3393,6 +3469,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
3393
3469
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3394
3470
|
}, z.core.$strict>>>;
|
|
3395
3471
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3472
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3396
3473
|
channel: z.ZodOptional<z.ZodString>;
|
|
3397
3474
|
channelName: z.ZodOptional<z.ZodString>;
|
|
3398
3475
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3816,6 +3893,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
3816
3893
|
slackUserName: z.ZodOptional<z.ZodString>;
|
|
3817
3894
|
}, z.core.$strict>>>;
|
|
3818
3895
|
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3896
|
+
pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3819
3897
|
channel: z.ZodOptional<z.ZodString>;
|
|
3820
3898
|
channelName: z.ZodOptional<z.ZodString>;
|
|
3821
3899
|
channelNameRedacted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5405,10 +5483,10 @@ declare const automationUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5405
5483
|
tuesday: "tuesday";
|
|
5406
5484
|
wednesday: "wednesday";
|
|
5407
5485
|
}>>>>;
|
|
5408
|
-
dayOfMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5409
5486
|
month: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5410
|
-
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5411
5487
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5488
|
+
dayOfMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5489
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5412
5490
|
}, z.core.$strict>]>>;
|
|
5413
5491
|
kind: z.ZodLiteral<"scheduled">;
|
|
5414
5492
|
revision: z.ZodString;
|
|
@@ -5547,10 +5625,10 @@ declare const automationScheduleIntentSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5547
5625
|
tuesday: "tuesday";
|
|
5548
5626
|
wednesday: "wednesday";
|
|
5549
5627
|
}>>>>;
|
|
5550
|
-
dayOfMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5551
5628
|
month: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5552
|
-
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5553
5629
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5630
|
+
dayOfMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5631
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5554
5632
|
}, z.core.$strict>]>;
|
|
5555
5633
|
declare const automationSchedulePreviewSchema: z.ZodObject<{
|
|
5556
5634
|
schedule: z.ZodObject<{
|
|
@@ -5795,6 +5873,21 @@ type PluginPackageContentItemReport = z.infer<typeof pluginPackageContentItemRep
|
|
|
5795
5873
|
type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchema>;
|
|
5796
5874
|
type PluginOperationalReport = z.infer<typeof pluginOperationalReportSchema>;
|
|
5797
5875
|
type PluginOperationalReportFeed = z.infer<typeof pluginOperationalReportFeedSchema>;
|
|
5876
|
+
/**
|
|
5877
|
+
* The person change to a Review item that one message records. Each inbound
|
|
5878
|
+
* message and saved Message that reports a take, answer, or dismiss carries
|
|
5879
|
+
* its own record, so the dashboard shows what that message did, not what the
|
|
5880
|
+
* item looks like now.
|
|
5881
|
+
*/
|
|
5882
|
+
declare const reviewItemChangeRecordSchema: z.ZodObject<{
|
|
5883
|
+
kind: z.ZodEnum<{
|
|
5884
|
+
dismissed: "dismissed";
|
|
5885
|
+
submitted: "submitted";
|
|
5886
|
+
taken: "taken";
|
|
5887
|
+
}>;
|
|
5888
|
+
reviewItemId: z.ZodString;
|
|
5889
|
+
}, z.core.$strict>;
|
|
5890
|
+
type ReviewItemChangeRecord = z.output<typeof reviewItemChangeRecordSchema>;
|
|
5798
5891
|
/** One Review item as the viewer sees it. */
|
|
5799
5892
|
declare const reviewItemSchema: z.ZodObject<{
|
|
5800
5893
|
addedByConversationId: z.ZodString;
|
|
@@ -5990,4 +6083,4 @@ declare const reviewItemActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5990
6083
|
}, z.core.$strict>;
|
|
5991
6084
|
}, z.core.$strict>], "action">;
|
|
5992
6085
|
type ReviewItemActionBody = z.output<typeof reviewItemActionSchema>;
|
|
5993
|
-
export {
|
|
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(),
|
|
@@ -127,7 +142,7 @@ const conversationChildAgentsReportSchema = z.object({
|
|
|
127
142
|
* below it created.
|
|
128
143
|
*
|
|
129
144
|
* Viewers who cannot see private content get the resource type, event types,
|
|
130
|
-
* and times, but not the label, intent,
|
|
145
|
+
* and times, but not the label, intent, match filter, or url.
|
|
131
146
|
*/
|
|
132
147
|
const conversationWatchSchema = z.object({
|
|
133
148
|
/** Absent when the Conversation itself created the Watch. */
|
|
@@ -146,15 +161,17 @@ const conversationWatchSchema = z.object({
|
|
|
146
161
|
match: eventMatchSchema.optional(),
|
|
147
162
|
namespace: z.string().min(1),
|
|
148
163
|
redacted: z.literal(true).optional(),
|
|
149
|
-
resourceType: z.string().min(1)
|
|
164
|
+
resourceType: z.string().min(1),
|
|
165
|
+
/** The web page of the watched resource, when its plugin names one. */
|
|
166
|
+
url: z.string().url().optional()
|
|
150
167
|
}).strict().superRefine((data, context) => {
|
|
151
168
|
if (data.label === void 0 === (data.redacted !== true)) context.addIssue({
|
|
152
169
|
code: "custom",
|
|
153
170
|
message: "watch label must be text or explicitly redacted"
|
|
154
171
|
});
|
|
155
|
-
if (data.redacted && (data.intent || data.match)) context.addIssue({
|
|
172
|
+
if (data.redacted && (data.intent || data.match || data.url)) context.addIssue({
|
|
156
173
|
code: "custom",
|
|
157
|
-
message: "redacted watches must not expose an intent or
|
|
174
|
+
message: "redacted watches must not expose an intent, match, or url"
|
|
158
175
|
});
|
|
159
176
|
});
|
|
160
177
|
/** Active Watches that one Conversation owns, oldest first. */
|
|
@@ -632,4 +649,4 @@ const statsReportSchema = z.object({
|
|
|
632
649
|
windowEnd: z.string(),
|
|
633
650
|
windowStart: z.string()
|
|
634
651
|
}).strict();
|
|
635
|
-
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";
|