@sentry/junior 0.287.0 → 0.289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-CL-HUKgd.js → adapter-tE1wnl0T.js} +1 -1
- package/dist/{admin-C9urXVfi.js → admin-BmsPbmO_.js} +2 -2
- package/dist/{agent-runner-Bfnw551N.js → agent-runner-bvl8U5uH.js} +489 -165
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +628 -238
- package/dist/{app-DBY5TnfY.d.ts → app-Cu454FXq.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +550 -71
- package/dist/assistant-reply-1N9oxyyb.js +58 -0
- package/dist/{automation-DksGNDRO.js → automation-DWbjJltM.js} +2 -2
- package/dist/{background-compaction-queue-CYI909P5.js → background-compaction-queue-D36oCldp.js} +161 -90
- package/dist/{briefs-DaXiMWzT.js → briefs-CV-1qkXa.js} +3 -3
- package/dist/{catalog-runtime-BCIuBe4d.js → catalog-runtime-BNK4uJVZ.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CkHcUMN7.js → config-DHAy7XlP.js} +363 -8
- package/dist/{connections-BnIj0wtx.js → connections-C3VmH3cf.js} +7 -129
- package/dist/{conversation-E7ZPJx2H.js → conversation-CwC8K3RZ.js} +22 -5
- package/dist/{conversation-pending-messages-DVch6YQw.js → conversation-pending-messages-B0cuLReP.js} +1 -1
- package/dist/{conversation-privacy-DF1hW0ja.js → conversation-privacy-Bky_veSp.js} +1 -1
- package/dist/{credential-sync-CzMar9hq.js → credential-sync-dY9o0YSj.js} +28 -20
- package/dist/{db-DJ11eZqq.js → db-BS2Kql3j.js} +81 -46
- package/dist/{db-YDKKDxlh.d.ts → db-BebRmhsH.d.ts} +10 -2
- package/dist/{executor-BY9TB31g.js → executor-cc4nH86C.js} +125 -18
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BO5zU6Mt.js → logging-CtCJmt9p.js} +3 -2
- package/dist/{media-Cz1ZiV1U.js → media-BepyEUNm.js} +5 -1
- package/dist/{message-CsUbuEc8.js → message-C5VuRcP9.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +19 -41
- package/dist/{oauth-callback-server-hiDKK0_n.js → oauth-callback-server-KRrYUZ35.js} +2 -2
- package/dist/{projection-CL_YWeGf.js → projection-BFJG58TG.js} +448 -721
- package/dist/{prompt-BHOEQSmf.js → prompt-D15oftoL.js} +5 -5
- package/dist/{registry-BriFLnaJ.js → registry-C_JrgqUz.js} +1 -1
- package/dist/{resolve-Bt6GgAiA.js → resolve-Cn_7JfP-.js} +3 -3
- package/dist/{result-Bo1TZu0Q.js → result-CIbQFLp6.js} +16 -10
- package/dist/{runner-D3YeCQgt.js → runner-BwmaMJVO.js} +8 -8
- package/dist/{sandbox-egress-signals-CcnSPP4S.js → sandbox-egress-signals-BOQ8gn7i.js} +1 -1
- package/dist/{schedule-BTp__wrw.js → schedule-cP0AACm1.js} +11 -2
- package/dist/{schema-BWE3RJEB.js → schema-Bptz19Ja.js} +72 -14
- package/dist/{schema-C6fsEwjo.d.ts → schema-DQaFSkZZ.d.ts} +122 -3
- package/dist/{service-account-DiQQuuw7.js → service-account-AGw_pANb.js} +3 -3
- package/dist/{service-account-r6fl0b-9.js → service-account-CLZfF8O1.js} +3 -3
- package/dist/{session-stop-B2Nut40V.js → session-stop-CbzKf7UI.js} +84 -31
- package/dist/{skills-CD5aJdzg.js → skills-CcAJBquq.js} +2 -2
- package/dist/{spawn-CalgZQiu.js → spawn-BvAk2vTI.js} +5 -5
- package/dist/{stop-kujZLbi0.js → stop-BQU4u7la.js} +893 -519
- package/dist/{store-DdIEUL1q.js → store-DE7NJOvQ.js} +4 -16
- package/dist/{task-runner-D_RDr2Hu.js → task-runner-Q_7duP_T.js} +31 -27
- package/dist/{turn-failure-response-B5nV1Er-.js → turn-failure-response-aWZLfUM8.js} +18 -9
- package/dist/{validation-K4pqwoVZ.js → validation-BOoPeIJR.js} +1 -1
- package/dist/{version-DBvhk1X9.js → version-Db0MFy61.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DrMmFUul.js → viewer-FFEFu9In.js} +4 -4
- package/dist/warmup-DDzrA9Gv.js +967 -0
- package/dist/{work-ljRoODGu.js → work-BBJK458E.js} +16 -15
- package/dist/{worker-CYO1Q0Js.js → worker-2iU5RFyq.js} +7 -31
- package/migrations/0089_conversation_paused_status.sql +3 -0
- package/migrations/0090_guardian_review_time_index.sql +20 -0
- package/migrations/0091_conversation_participant_unsubscribed_index.sql +20 -0
- package/migrations/0092_turn_metric_actor.sql +12 -0
- package/migrations/0093_participant_root_actor_backfill.sql +18 -0
- package/migrations/0094_conversation_delivery_paused_at.sql +1 -0
- package/migrations/meta/0089_snapshot.json +4372 -0
- package/migrations/meta/0090_snapshot.json +4388 -0
- package/migrations/meta/0091_snapshot.json +4410 -0
- package/migrations/meta/0092_snapshot.json +4446 -0
- package/migrations/meta/0093_snapshot.json +4446 -0
- package/migrations/meta/0094_snapshot.json +4452 -0
- package/migrations/meta/_journal.json +42 -0
- package/package.json +6 -5
- package/dist/assistant-reply-u_PRYzuz.js +0 -65
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-
|
|
2
|
-
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-DHAy7XlP.js";
|
|
2
|
+
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-CtCJmt9p.js";
|
|
3
|
+
import { V as agentTurnCostUsd, r as getConversationEventStore } from "./db-BS2Kql3j.js";
|
|
4
|
+
import { X as parseBriefInput, Y as conversationBriefSchema, q as briefOutcomeStatusSchema } from "./conversation-CwC8K3RZ.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { conversationEventPresentationSchema, defineConversationEvent } from "@sentry/junior-plugin-api";
|
|
7
7
|
// src/chat/conversations/structured-events.ts
|
|
@@ -699,7 +699,7 @@ Rules:
|
|
|
699
699
|
- Set each decision's \`kind\` to \`stated\` when a human participant stated the choice themselves, \`confirmed\` when Junior proposed it and a human participant explicitly accepted it, or \`assumed\` when Junior chose while working and no participant confirmed or objected.
|
|
700
700
|
- Set a decision's \`by\` to the participant who made it, or Junior. Use only names in the supplied record. Set \`by\` to \`null\` when no supported attribution exists.
|
|
701
701
|
- Facts are durable one-line facts that help after the transcript expires. Prefer ids, versions, owners, constraints, and numbers. Do not list fields, recap the transcript, or include transient progress.
|
|
702
|
-
- Ignore Junior runtime mechanics
|
|
702
|
+
- Ignore Junior runtime mechanics and context tags.
|
|
703
703
|
- Never say that a code change was merged, closed, deployed, or released unless a supplied code change or resource has that status. Say opened for an open code change.
|
|
704
704
|
- Choose the outcome status that best describes where the Conversation ended.
|
|
705
705
|
- Follow the supplied size class caps. Keep the first items that matter most.
|
|
@@ -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-CtCJmt9p.js";
|
|
2
2
|
import { o as isUserActor, s as parseActorUserId } from "./actor-6jsm_v96.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJhGdS4c.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -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 { Ei as isStale, La as SANDBOX_COMMAND_PATH, Oi as getSandboxProvider, Va as SANDBOX_WORKSPACE_ROOT, ja as sleep, qa as runNonInteractiveCommand, wi as create } from "./projection-BFJG58TG.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-CtCJmt9p.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-tE1wnl0T.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/resources.ts
|
|
6
6
|
let configuredResources;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { T as SYSTEM_IDENTITY_ID } from "./db-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-
|
|
7
|
-
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs } from "./session-stop-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-
|
|
2
|
+
import { Cn as renderUntrustedTag } from "./projection-BFJG58TG.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID } from "./db-BS2Kql3j.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-C_JrgqUz.js";
|
|
5
|
+
import { sn as listUnreportedSiblingAgents } from "./agent-runner-bvl8U5uH.js";
|
|
6
|
+
import { C as isTerminalAgentInvocation, G as getAgentInvocationIdForEvents, K as getAgentInvocationIdForMessage, Y as getAgentInvocationResultMessageId, k as markAgentInvocationParentMailboxAppended, q as getAgentInvocationIdForResult, x as getLatestAgentInvocationForConversation, y as getAgentInvocation } from "./turn-failure-response-aWZLfUM8.js";
|
|
7
|
+
import { D as timerWatchCredentialSubject, E as renderEventBatchInputs, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, f as getEventBatchDelayMs, m as parseEventMessages, n as isWatchEvent, s as eventReviewItemInputs, w as eventBatchMessageMeta } from "./session-stop-CbzKf7UI.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DE7NJOvQ.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-BBJK458E.js";
|
|
10
10
|
import { n as isAgentInvocationResultEventType, t as agentInvocationResultEventType } from "./result-event-type-DD6BAgT7.js";
|
|
11
11
|
// src/chat/agent-invocations/result.ts
|
|
12
12
|
var result_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -236,7 +236,10 @@ async function startAgentInvocationsForChildInput(context, options) {
|
|
|
236
236
|
source
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
await enqueueAgentInvocation(invocation,
|
|
239
|
+
await enqueueAgentInvocation(invocation, {
|
|
240
|
+
...options,
|
|
241
|
+
eventMeta: eventBatchMessageMeta(messages)
|
|
242
|
+
});
|
|
240
243
|
await context.attempt.ack();
|
|
241
244
|
return { status: "completed" };
|
|
242
245
|
}
|
|
@@ -249,7 +252,10 @@ async function startAgentInvocationsForChildInput(context, options) {
|
|
|
249
252
|
invocationId: input.kind === "result" ? getAgentInvocationIdForResult(source.invocationId) : getAgentInvocationIdForMessage(message.inboundMessageId),
|
|
250
253
|
latest
|
|
251
254
|
});
|
|
252
|
-
await enqueueAgentInvocation(invocation,
|
|
255
|
+
await enqueueAgentInvocation(invocation, {
|
|
256
|
+
...options,
|
|
257
|
+
eventMeta: eventBatchMessageMeta([message])
|
|
258
|
+
});
|
|
253
259
|
}
|
|
254
260
|
await context.attempt.ack();
|
|
255
261
|
return { status: "completed" };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { _t as
|
|
1
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, Qt as persistWithRetry, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, v as hydrateConversationMessages } from "./projection-BFJG58TG.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-CtCJmt9p.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-BS2Kql3j.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-C_JrgqUz.js";
|
|
5
|
+
import { L as messageCardText } from "./conversation-CwC8K3RZ.js";
|
|
6
|
+
import { dt as markTurnFailed, f as ConversationTurnLifecycleService, ft as startActiveTurn, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, m as loadPendingMessageCards, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext } from "./turn-failure-response-aWZLfUM8.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-1N9oxyyb.js";
|
|
8
|
+
import { _t as persistThreadStateById, ht as getPersistedThreadState, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, vt as coerceThreadConversationState } from "./task-runner-Q_7duP_T.js";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
10
10
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
11
11
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ea as sandboxEgressSignalsResponseSchema } from "./projection-BFJG58TG.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;
|
|
@@ -263,7 +263,12 @@ function getNextRunAtMs(task, scheduledForMs, afterMs = scheduledForMs) {
|
|
|
263
263
|
const clockTimePattern = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
264
264
|
/** Saved notification hours. Weekdays use 0 for Sunday, like `Date#getDay`. */
|
|
265
265
|
const notificationScheduleSchema = z.object({
|
|
266
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* Follow the linked Slack user's notification schedule. The fields below
|
|
268
|
+
* apply only when Junior cannot read it. Absent means on.
|
|
269
|
+
*/
|
|
270
|
+
followSlack: z.boolean().optional(),
|
|
271
|
+
/** When false, Junior sends push notifications at any time. */
|
|
267
272
|
workingHoursOnly: z.boolean(),
|
|
268
273
|
days: z.array(z.number().int().min(0).max(6)).max(7).refine((days) => new Set(days).size === days.length, { message: "Days must be unique." }),
|
|
269
274
|
/** Local start time, `HH:MM`. */
|
|
@@ -276,8 +281,12 @@ const notificationScheduleSchema = z.object({
|
|
|
276
281
|
message: "Start and end must differ.",
|
|
277
282
|
path: ["end"]
|
|
278
283
|
});
|
|
279
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Default when a user has not saved a schedule: follow Slack, else
|
|
286
|
+
* 09:00–18:00, Mon–Fri.
|
|
287
|
+
*/
|
|
280
288
|
const DEFAULT_NOTIFICATION_SCHEDULE = {
|
|
289
|
+
followSlack: true,
|
|
281
290
|
workingHoursOnly: true,
|
|
282
291
|
days: [
|
|
283
292
|
1,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as notificationScheduleSchema } from "./schedule-
|
|
2
|
-
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-
|
|
1
|
+
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema, b as conversationSummaryReportSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema } from "./conversation-CwC8K3RZ.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
|
|
4
|
-
import "./automation-
|
|
5
|
-
import "./conversation-pending-messages-
|
|
4
|
+
import "./automation-DWbjJltM.js";
|
|
5
|
+
import "./conversation-pending-messages-B0cuLReP.js";
|
|
6
6
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { codeChangeStateSchema, eventMatchSchema } from "@sentry/junior-plugin-api";
|
|
@@ -33,6 +33,11 @@ const pinConversationResponseSchema = z.object({ pinnedAt: z.string().datetime()
|
|
|
33
33
|
const reorderPinnedConversationsBodySchema = z.object({ conversationIds: z.array(z.string().min(1)).min(1).max(500).refine((ids) => new Set(ids).size === ids.length, { message: "Each Conversation can appear once." }) }).strict();
|
|
34
34
|
/** The pinned Conversations that got a new place, in order. */
|
|
35
35
|
const reorderPinnedConversationsResponseSchema = z.object({ conversationIds: z.array(z.string()) }).strict();
|
|
36
|
+
// src/api/schema/conversation-delivery.ts
|
|
37
|
+
/** Pause or resume Delivery of a root's Event Turn replies to its Location. */
|
|
38
|
+
const conversationDeliveryBodySchema = z.object({ paused: z.boolean() }).strict();
|
|
39
|
+
/** The Delivery state after the change. */
|
|
40
|
+
const conversationDeliveryResponseSchema = z.object({ paused: z.boolean() }).strict();
|
|
36
41
|
// src/api/schema/conversation-subscription.ts
|
|
37
42
|
/** Subscribe to or unsubscribe from one Conversation for the viewer. */
|
|
38
43
|
const conversationSubscriptionBodySchema = z.object({ subscribed: z.boolean() }).strict();
|
|
@@ -70,13 +75,22 @@ const archiveConversationResponseSchema = z.object({ archivedAt: z.string().date
|
|
|
70
75
|
const conversationAutoArchiveSchema = z.object({ autoArchive: z.boolean() }).strict();
|
|
71
76
|
/** Result of archiving all of the viewer's done conversations once. */
|
|
72
77
|
const archiveDoneConversationsResponseSchema = z.object({ archived: z.number().int().nonnegative() }).strict();
|
|
73
|
-
// src/api/schema/conversation-
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
// src/api/schema/conversation-outline.ts
|
|
79
|
+
/**
|
|
80
|
+
* Longest outline item text. The outline previews each message, so the
|
|
81
|
+
* server cuts the text and does not send whole messages.
|
|
82
|
+
*/
|
|
83
|
+
const CONVERSATION_OUTLINE_TEXT_LENGTH = 200;
|
|
84
|
+
/**
|
|
85
|
+
* The person messages of a whole Conversation, in seq order. The dashboard
|
|
86
|
+
* outline uses it to show messages that the transcript did not load. It has
|
|
87
|
+
* no items when the viewer cannot see the transcript.
|
|
88
|
+
*/
|
|
89
|
+
const conversationOutlineSchema = z.object({ items: z.array(z.object({
|
|
90
|
+
seq: z.number().int().nonnegative(),
|
|
91
|
+
text: z.string().min(1),
|
|
92
|
+
mentions: z.array(actorIdentitySchema).optional()
|
|
93
|
+
}).strict()) }).strict();
|
|
80
94
|
// src/api/schema/conversation-stats.ts
|
|
81
95
|
const conversationStatsItemSchema = z.object({
|
|
82
96
|
active: z.number(),
|
|
@@ -249,6 +263,41 @@ const conversationWatchesReportSchema = z.object({
|
|
|
249
263
|
conversationId: z.string().min(1),
|
|
250
264
|
watches: z.array(conversationWatchSchema)
|
|
251
265
|
}).strict();
|
|
266
|
+
// src/api/schema/board.ts
|
|
267
|
+
const boardColumnSchema = z.enum([
|
|
268
|
+
"planned",
|
|
269
|
+
"in_progress",
|
|
270
|
+
"ready",
|
|
271
|
+
"done"
|
|
272
|
+
]);
|
|
273
|
+
const boardCardSchema = z.object({
|
|
274
|
+
/** Stable card id. One object gives one card. */
|
|
275
|
+
key: z.string().min(1),
|
|
276
|
+
column: boardColumnSchema,
|
|
277
|
+
objectType: z.enum(["task", "code_change"]),
|
|
278
|
+
title: z.string().min(1),
|
|
279
|
+
/** Short object reference, such as `getsentry/junior#42`. */
|
|
280
|
+
label: z.string().min(1),
|
|
281
|
+
url: z.string().url().optional(),
|
|
282
|
+
status: z.string().min(1),
|
|
283
|
+
/** When the card last changed. A Done card uses its finish time. */
|
|
284
|
+
updatedAt: z.string(),
|
|
285
|
+
conversation: z.object({
|
|
286
|
+
conversationId: z.string().min(1),
|
|
287
|
+
title: z.string().optional(),
|
|
288
|
+
/** Root title when the card comes from a Thread. */
|
|
289
|
+
rootTitle: z.string().optional()
|
|
290
|
+
}).strict(),
|
|
291
|
+
participants: z.array(actorIdentitySchema),
|
|
292
|
+
/** A Turn runs in the Conversation of the card or in one of its Tasks. */
|
|
293
|
+
working: z.boolean(),
|
|
294
|
+
/** The Conversation has an open review item that needs the viewer. */
|
|
295
|
+
needsViewer: z.boolean()
|
|
296
|
+
}).strict();
|
|
297
|
+
const boardReportSchema = z.object({
|
|
298
|
+
cards: z.array(boardCardSchema),
|
|
299
|
+
doneWindowHours: z.number().int().positive()
|
|
300
|
+
}).strict();
|
|
252
301
|
// src/api/schema/code.ts
|
|
253
302
|
const codeChangeSummarySchema = z.object({
|
|
254
303
|
closed: z.number().int().nonnegative(),
|
|
@@ -358,7 +407,7 @@ const notificationTimezoneSourceSchema = z.enum([
|
|
|
358
407
|
"saved",
|
|
359
408
|
"default"
|
|
360
409
|
]);
|
|
361
|
-
/** The viewer's
|
|
410
|
+
/** The viewer's push notification settings. */
|
|
362
411
|
const notificationSettingsSchema = z.object({
|
|
363
412
|
/** Server VAPID public key. Absent when Web Push is not configured. */
|
|
364
413
|
publicKey: z.string().min(1).optional(),
|
|
@@ -366,6 +415,11 @@ const notificationSettingsSchema = z.object({
|
|
|
366
415
|
/** Timezone that Junior uses for the schedule now. */
|
|
367
416
|
timezone: z.string().min(1),
|
|
368
417
|
timezoneSource: notificationTimezoneSourceSchema,
|
|
418
|
+
/**
|
|
419
|
+
* Whether the viewer's Slack notification schedule pauses notifications
|
|
420
|
+
* now. Absent when Junior cannot read it.
|
|
421
|
+
*/
|
|
422
|
+
slackPausedNow: z.boolean().optional(),
|
|
369
423
|
/** Number of browsers that receive the viewer's notifications. */
|
|
370
424
|
deviceCount: z.number().int().nonnegative()
|
|
371
425
|
}).strict();
|
|
@@ -773,11 +827,15 @@ const versionsSchema = z.object({
|
|
|
773
827
|
* not exist.
|
|
774
828
|
*/
|
|
775
829
|
conversation: z.string().min(1).optional(),
|
|
776
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* The viewer's Conversation feed. It lists a short token for each
|
|
832
|
+
* feed-row input as `name:token`, separated by spaces, so the dashboard
|
|
833
|
+
* can record which inputs moved it.
|
|
834
|
+
*/
|
|
777
835
|
conversations: z.string().min(1),
|
|
778
836
|
/** Open Review items that need the viewer. */
|
|
779
837
|
reviewItems: z.string().min(1),
|
|
780
838
|
/** The viewer's rolling model spend. */
|
|
781
839
|
spend: z.string().min(1)
|
|
782
840
|
}).strict();
|
|
783
|
-
export { codeChangeSummaryReportSchema as $, actorDirectoryReportSchema as A,
|
|
841
|
+
export { codeChangeSummaryReportSchema as $, actorDirectoryReportSchema as A, reorderPinnedConversationsResponseSchema as At, activityHours as B, startServiceAccountSignInResponseSchema as C, conversationSubscriptionBodySchema as Ct, personalTokenMetadataSchema as D, pinConversationBodySchema as Dt, personalTokenListSchema as E, conversationDeliveryResponseSchema as Et, locationActivityDayReportSchema as F, pushSubscriptionDeleteBodySchema as G, dailyConversationActivitySchema as H, locationDetailReportSchema as I, connectionParamsSchema as J, testNotificationResponseSchema as K, locationDirectoryReportSchema as L, avatarParamsSchema as M, conversationCatchUpSchema as Mt, personParamsSchema as N, personalTokenParamsSchema as O, pinConversationResponseSchema as Ot, personalSpendReportSchema as P, codeActivityDaySchema as Q, locationParamsSchema as R, serviceAccountSchema as S, markConversationUnreadBodySchema as St, createdPersonalTokenSchema as T, conversationDeliveryBodySchema as Tt, notificationSettingsSchema as U, activitySixHours as V, pushSubscriptionBodySchema as W, disconnectConnectionResponseSchema as X, connectionSchema as Y, startConnectionResponseSchema as Z, reviewItemSchema as _, archiveConversationBodySchema as _t, baselineSnapshotSchema as a, codeRepositorySummarySchema as at, serviceAccountListSchema as b, conversationAutoArchiveSchema as bt, workspaceListSchema as c, conversationWatchesReportSchema as ct, workspaceSchema as d, continueConversationInSlackBodySchema as dt, codeChangeSummarySchema as et, reviewItemActionSchema as f, continueConversationInSlackResponseSchema as ft, reviewItemParamsSchema as g, conversationOutlineSchema as gt, reviewItemListSchema as h, CONVERSATION_OUTLINE_TEXT_LENGTH as ht, statsReportSchema as i, codeRepositoryReportSchema as it, actorProfileReportSchema as j, conversationCatchUpBodySchema as jt, revokePersonalTokenResponseSchema as k, reorderPinnedConversationsBodySchema as kt, workspaceParamsSchema as l, conversationChildAgentSchema as lt, reviewItemListQuerySchema as m, conversationStatsReportSchema as mt, versionsSchema as n, codePersonReportSchema as nt, deleteWorkspaceResponseSchema as o, boardReportSchema as ot, reviewItemCountSchema as p, stopConversationTurnResponseSchema as pt, connectionListSchema as q, statSchema as r, codeRepositoryParamsSchema as rt, workspaceBodySchema as s, conversationWatchSchema as st, versionsQuerySchema as t, codeOverviewReportSchema as tt, workspaceRepoSchema as u, conversationChildAgentsReportSchema as ut, reviewItemWaitingConversationsSchema as v, archiveConversationResponseSchema as vt, createPersonalTokenBodySchema as w, conversationSubscriptionResponseSchema as wt, serviceAccountParamsSchema as x, conversationUnreadSchema as xt, disconnectServiceAccountResponseSchema as y, archiveDoneConversationsResponseSchema as yt, activityDays as z };
|
|
@@ -152,6 +152,82 @@ declare const messageCardRefSchema: z.ZodObject<{
|
|
|
152
152
|
type MessageCardRef = z.output<typeof messageCardRefSchema>;
|
|
153
153
|
/** Resolve current saved facts without fetching providers or changing history. */
|
|
154
154
|
declare function resolveMessageCards(refs: readonly MessageCardRef[], annotations: readonly ConversationAnnotation[]): OwnedObjectAnnotation[];
|
|
155
|
+
declare const boardColumnSchema: z.ZodEnum<{
|
|
156
|
+
done: "done";
|
|
157
|
+
in_progress: "in_progress";
|
|
158
|
+
planned: "planned";
|
|
159
|
+
ready: "ready";
|
|
160
|
+
}>;
|
|
161
|
+
declare const boardCardSchema: z.ZodObject<{
|
|
162
|
+
key: z.ZodString;
|
|
163
|
+
column: z.ZodEnum<{
|
|
164
|
+
done: "done";
|
|
165
|
+
in_progress: "in_progress";
|
|
166
|
+
planned: "planned";
|
|
167
|
+
ready: "ready";
|
|
168
|
+
}>;
|
|
169
|
+
objectType: z.ZodEnum<{
|
|
170
|
+
code_change: "code_change";
|
|
171
|
+
task: "task";
|
|
172
|
+
}>;
|
|
173
|
+
title: z.ZodString;
|
|
174
|
+
label: z.ZodString;
|
|
175
|
+
url: z.ZodOptional<z.ZodString>;
|
|
176
|
+
status: z.ZodString;
|
|
177
|
+
updatedAt: z.ZodString;
|
|
178
|
+
conversation: z.ZodObject<{
|
|
179
|
+
conversationId: z.ZodString;
|
|
180
|
+
title: z.ZodOptional<z.ZodString>;
|
|
181
|
+
rootTitle: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>;
|
|
183
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
184
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
185
|
+
email: z.ZodOptional<z.ZodString>;
|
|
186
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
187
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
188
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
working: z.ZodBoolean;
|
|
191
|
+
needsViewer: z.ZodBoolean;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
declare const boardReportSchema: z.ZodObject<{
|
|
194
|
+
cards: z.ZodArray<z.ZodObject<{
|
|
195
|
+
key: z.ZodString;
|
|
196
|
+
column: z.ZodEnum<{
|
|
197
|
+
done: "done";
|
|
198
|
+
in_progress: "in_progress";
|
|
199
|
+
planned: "planned";
|
|
200
|
+
ready: "ready";
|
|
201
|
+
}>;
|
|
202
|
+
objectType: z.ZodEnum<{
|
|
203
|
+
code_change: "code_change";
|
|
204
|
+
task: "task";
|
|
205
|
+
}>;
|
|
206
|
+
title: z.ZodString;
|
|
207
|
+
label: z.ZodString;
|
|
208
|
+
url: z.ZodOptional<z.ZodString>;
|
|
209
|
+
status: z.ZodString;
|
|
210
|
+
updatedAt: z.ZodString;
|
|
211
|
+
conversation: z.ZodObject<{
|
|
212
|
+
conversationId: z.ZodString;
|
|
213
|
+
title: z.ZodOptional<z.ZodString>;
|
|
214
|
+
rootTitle: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>;
|
|
216
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
217
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
218
|
+
email: z.ZodOptional<z.ZodString>;
|
|
219
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
220
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
221
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strict>>;
|
|
223
|
+
working: z.ZodBoolean;
|
|
224
|
+
needsViewer: z.ZodBoolean;
|
|
225
|
+
}, z.core.$strict>>;
|
|
226
|
+
doneWindowHours: z.ZodNumber;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
type BoardColumn = z.output<typeof boardColumnSchema>;
|
|
229
|
+
type BoardCard = z.output<typeof boardCardSchema>;
|
|
230
|
+
type BoardReport = z.output<typeof boardReportSchema>;
|
|
155
231
|
declare const dailyConversationActivitySchema: z.ZodObject<{
|
|
156
232
|
active: z.ZodNumber;
|
|
157
233
|
conversations: z.ZodNumber;
|
|
@@ -539,6 +615,7 @@ declare const createConversationBodySchema: z.ZodObject<{
|
|
|
539
615
|
}>;
|
|
540
616
|
data: z.ZodString;
|
|
541
617
|
}, z.core.$strict>>>;
|
|
618
|
+
title: z.ZodOptional<z.ZodString>;
|
|
542
619
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
543
620
|
private: "private";
|
|
544
621
|
public: "public";
|
|
@@ -1973,6 +2050,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1973
2050
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
1974
2051
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
1975
2052
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2053
|
+
deliveryPaused: z.ZodOptional<z.ZodBoolean>;
|
|
1976
2054
|
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
1977
2055
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
1978
2056
|
lastReadSeq: z.ZodNumber;
|
|
@@ -3084,6 +3162,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3084
3162
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
3085
3163
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
3086
3164
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3165
|
+
deliveryPaused: z.ZodOptional<z.ZodBoolean>;
|
|
3087
3166
|
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
3088
3167
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
3089
3168
|
lastReadSeq: z.ZodNumber;
|
|
@@ -4231,6 +4310,16 @@ declare const reorderPinnedConversationsResponseSchema: z.ZodObject<{
|
|
|
4231
4310
|
}, z.core.$strict>;
|
|
4232
4311
|
type ReorderPinnedConversationsBody = z.infer<typeof reorderPinnedConversationsBodySchema>;
|
|
4233
4312
|
type ReorderPinnedConversationsResponse = z.infer<typeof reorderPinnedConversationsResponseSchema>;
|
|
4313
|
+
/** Pause or resume Delivery of a root's Event Turn replies to its Location. */
|
|
4314
|
+
declare const conversationDeliveryBodySchema: z.ZodObject<{
|
|
4315
|
+
paused: z.ZodBoolean;
|
|
4316
|
+
}, z.core.$strict>;
|
|
4317
|
+
/** The Delivery state after the change. */
|
|
4318
|
+
declare const conversationDeliveryResponseSchema: z.ZodObject<{
|
|
4319
|
+
paused: z.ZodBoolean;
|
|
4320
|
+
}, z.core.$strict>;
|
|
4321
|
+
type ConversationDeliveryBody = z.infer<typeof conversationDeliveryBodySchema>;
|
|
4322
|
+
type ConversationDeliveryResponse = z.infer<typeof conversationDeliveryResponseSchema>;
|
|
4234
4323
|
/** Subscribe to or unsubscribe from one Conversation for the viewer. */
|
|
4235
4324
|
declare const conversationSubscriptionBodySchema: z.ZodObject<{
|
|
4236
4325
|
subscribed: z.ZodBoolean;
|
|
@@ -4259,6 +4348,30 @@ declare const conversationUnreadSchema: z.ZodObject<{
|
|
|
4259
4348
|
unreadReply: z.ZodBoolean;
|
|
4260
4349
|
}, z.core.$strict>;
|
|
4261
4350
|
type ConversationUnread = z.infer<typeof conversationUnreadSchema>;
|
|
4351
|
+
/**
|
|
4352
|
+
* Longest outline item text. The outline previews each message, so the
|
|
4353
|
+
* server cuts the text and does not send whole messages.
|
|
4354
|
+
*/
|
|
4355
|
+
declare const CONVERSATION_OUTLINE_TEXT_LENGTH = 200;
|
|
4356
|
+
/**
|
|
4357
|
+
* The person messages of a whole Conversation, in seq order. The dashboard
|
|
4358
|
+
* outline uses it to show messages that the transcript did not load. It has
|
|
4359
|
+
* no items when the viewer cannot see the transcript.
|
|
4360
|
+
*/
|
|
4361
|
+
declare const conversationOutlineSchema: z.ZodObject<{
|
|
4362
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4363
|
+
seq: z.ZodNumber;
|
|
4364
|
+
text: z.ZodString;
|
|
4365
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4366
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
4367
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4368
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
4369
|
+
slackUserId: z.ZodOptional<z.ZodString>;
|
|
4370
|
+
slackUserName: z.ZodOptional<z.ZodString>;
|
|
4371
|
+
}, z.core.$strict>>>;
|
|
4372
|
+
}, z.core.$strict>>;
|
|
4373
|
+
}, z.core.$strict>;
|
|
4374
|
+
type ConversationOutline = z.infer<typeof conversationOutlineSchema>;
|
|
4262
4375
|
/** Longest Conversation title that a rename can save. */
|
|
4263
4376
|
declare const CONVERSATION_TITLE_MAX_LENGTH = 200;
|
|
4264
4377
|
/** A participant's new title for one Conversation. Every viewer sees it. */
|
|
@@ -5379,6 +5492,7 @@ declare const disconnectConnectionResponseSchema: z.ZodObject<{
|
|
|
5379
5492
|
}, z.core.$strict>;
|
|
5380
5493
|
/** Saved notification hours. Weekdays use 0 for Sunday, like `Date#getDay`. */
|
|
5381
5494
|
declare const notificationScheduleSchema: z.ZodObject<{
|
|
5495
|
+
followSlack: z.ZodOptional<z.ZodBoolean>;
|
|
5382
5496
|
workingHoursOnly: z.ZodBoolean;
|
|
5383
5497
|
days: z.ZodArray<z.ZodNumber>;
|
|
5384
5498
|
start: z.ZodString;
|
|
@@ -5386,17 +5500,21 @@ declare const notificationScheduleSchema: z.ZodObject<{
|
|
|
5386
5500
|
timezone: z.ZodOptional<z.ZodString>;
|
|
5387
5501
|
}, z.core.$strict>;
|
|
5388
5502
|
type NotificationSchedule = z.output<typeof notificationScheduleSchema>;
|
|
5389
|
-
/**
|
|
5503
|
+
/**
|
|
5504
|
+
* Default when a user has not saved a schedule: follow Slack, else
|
|
5505
|
+
* 09:00–18:00, Mon–Fri.
|
|
5506
|
+
*/
|
|
5390
5507
|
declare const DEFAULT_NOTIFICATION_SCHEDULE: NotificationSchedule;
|
|
5391
5508
|
/**
|
|
5392
5509
|
* Return whether a notification may be sent now. A window that crosses
|
|
5393
5510
|
* midnight belongs to the day on which it starts.
|
|
5394
5511
|
*/
|
|
5395
5512
|
declare function isWithinNotificationSchedule(schedule: NotificationSchedule, timezone: string, nowMs: number): boolean;
|
|
5396
|
-
/** The viewer's
|
|
5513
|
+
/** The viewer's push notification settings. */
|
|
5397
5514
|
declare const notificationSettingsSchema: z.ZodObject<{
|
|
5398
5515
|
publicKey: z.ZodOptional<z.ZodString>;
|
|
5399
5516
|
schedule: z.ZodObject<{
|
|
5517
|
+
followSlack: z.ZodOptional<z.ZodBoolean>;
|
|
5400
5518
|
workingHoursOnly: z.ZodBoolean;
|
|
5401
5519
|
days: z.ZodArray<z.ZodNumber>;
|
|
5402
5520
|
start: z.ZodString;
|
|
@@ -5410,6 +5528,7 @@ declare const notificationSettingsSchema: z.ZodObject<{
|
|
|
5410
5528
|
saved: "saved";
|
|
5411
5529
|
slack: "slack";
|
|
5412
5530
|
}>;
|
|
5531
|
+
slackPausedNow: z.ZodOptional<z.ZodBoolean>;
|
|
5413
5532
|
deviceCount: z.ZodNumber;
|
|
5414
5533
|
}, z.core.$strict>;
|
|
5415
5534
|
type NotificationSettings = z.output<typeof notificationSettingsSchema>;
|
|
@@ -7453,4 +7572,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
7453
7572
|
spend: z.ZodString;
|
|
7454
7573
|
}, z.core.$strict>;
|
|
7455
7574
|
type Versions = z.output<typeof versionsSchema>;
|
|
7456
|
-
export { automationEventCatalogSchema as $,
|
|
7575
|
+
export { automationEventCatalogSchema as $, codeActivityDaySchema as $i, ConversationDeliveryResponse as $n, steerConversationPendingMessagesResponseSchema as $r, connectionSchema as $t, skillReportSchema as A, MAX_INPUT_IMAGE_BYTES as Aa, conversationDetailQuerySchema as Ai, conversationWatchSchema as An, ArchiveConversationBody as Ar, USER_CUSTOMIZATION_MAX_CHARS as At, AutomationExecutionStatusDay as B, conversationSummaryReportSchema as Bi, renameConversationResponseSchema as Bn, ConversationPendingMessageDelivery as Br, serviceAccountListSchema as Bt, pluginOperationalReportFeedSchema as C, buttonUserInputField as Ca, ConversationTurnFailureReason as Ci, PersonalSpendReport as Cn, stopConversationTurnResponseSchema as Cr, baselineSnapshotSchema as Ct, pluginSchema as D, isAgentInvocationResultEventType as Da, acceptedConversationMessageSchema as Di, personalSpendReportSchema as Dn, GuardianMetricDay as Dr, workspaceParamsSchema as Dt, pluginPackageContentReportSchema as E, webMessageId as Ea, CreateConversationMessageBody as Ei, personParamsSchema as En, ConversationStatsReport as Er, workspaceListSchema as Et, statsReportSchema as F, conversationFeedQuerySchema as Fi, conversationChildAgentsReportSchema as Fn, archiveDoneConversationsResponseSchema as Fr, personalTokenListSchema as Ft, AutomationRunWindows as G, conversationTurnFailureCodeSchema as Gi, MarkConversationUnreadBody as Gn, cancelConversationPendingMessagesResponseSchema as Gr, notificationSettingsSchema as Gt, AutomationListQuery as H, createConversationMessageBodySchema as Hi, ConversationOutline as Hn, SteerConversationPendingMessagesBody as Hr, serviceAccountSchema as Ht, AutomationEdit as I, conversationFeedSchema as Ii, CONVERSATION_TITLE_MAX_LENGTH as In, conversationAutoArchiveSchema as Ir, personalTokenMetadataSchema as It, AutomationUpdate as J, CodeChangeSummaryReport as Ji, ConversationSubscriptionBody as Jn, conversationPendingMessageDeliverySchema as Jr, NotificationSchedule as Jt, AutomationScheduleIntent as K, conversationTurnFailureReasonSchema as Ki, conversationUnreadSchema as Kn, conversationDetailWithMailboxReportSchema as Kr, testNotificationResponseSchema as Kt, AutomationExecution as L, conversationParamsSchema as Li, RenameConversationBody as Ln, CancelConversationPendingMessagesBody as Lr, personalTokenParamsSchema as Lt, StatReport as M, INLINE_VIDEO_TYPES as Ma, conversationEventHistorySchema as Mi, ConversationChildAgent as Mn, ConversationAutoArchive as Mr, PersonalTokenMetadata as Mt, StatsReport as N, INPUT_IMAGE_TYPES as Na, conversationEventPageSchema as Ni, ConversationChildAgentsReport as Nn, archiveConversationBodySchema as Nr, createPersonalTokenBodySchema as Nt, pluginsSchema as O, InputImage as Oa, conversationActivityPreviewSchema as Oi, ConversationWatch as On, GuardianStats as Or, workspaceRepoSchema as Ot, statSchema as P, conversationEventsQuerySchema as Pi, conversationChildAgentSchema as Pn, archiveConversationResponseSchema as Pr, createdPersonalTokenSchema as Pt, automationEditSchema as Q, CodeRepositorySummary as Qi, ConversationDeliveryBody as Qn, steerConversationPendingMessagesBodySchema as Qr, connectionParamsSchema as Qt, AutomationExecutionDay as R, conversationReportEventDataSchema as Ri, RenameConversationResponse as Rn, CancelConversationPendingMessagesResponse as Rr, revokePersonalTokenResponseSchema as Rt, healthReportSchema as S, UserInputRequest as Sa, ConversationTurnFailureCode as Si, PersonParams as Sn, StopConversationTurnResponse as Sr, WorkspaceReport as St, pluginPackageContentItemReportSchema as T, normalizeUserInputAnswer as Ta, CreateConversationBody as Ti, actorProfileReportSchema as Tn, ConversationStatsItem as Tr, workspaceBodySchema as Tt, AutomationRun as U, forkConversationBodySchema as Ui, conversationOutlineSchema as Un, SteerConversationPendingMessagesResponse as Ur, startServiceAccountSignInResponseSchema as Ut, AutomationList as V, createConversationBodySchema as Vi, CONVERSATION_OUTLINE_TEXT_LENGTH as Vn, ConversationPendingMessagesReport as Vr, serviceAccountParamsSchema as Vt, AutomationRunList as W, forkConversationResponseSchema as Wi, ConversationUnread as Wn, cancelConversationPendingMessagesBodySchema as Wr, NotificationSettings as Wt, ListedAutomationVersion as X, CodePersonReport as Xi, conversationSubscriptionBodySchema as Xn, conversationPendingMessagesReportSchema as Xr, notificationScheduleSchema as Xt, AutomationVersionList as Y, CodeOverviewReport as Yi, ConversationSubscriptionResponse as Yn, conversationPendingMessageSchema as Yr, isWithinNotificationSchedule as Yt, automationEditErrorSchema as Z, CodeRepositoryReport as Zi, conversationSubscriptionResponseSchema as Zn, conversationUnchangedDetailWithMailboxSchema as Zr, connectionListSchema as Zt, PluginPackageContentReport as _, resolveMessageCards as _a, ConversationReportMessageEvent as _i, ActorProfileReport as _n, conversationReadReportSchema as _r, automationVersionSchema as _t, ReviewItemPayload as a, codeRepositoryReportSchema as aa, ConversationAgentTreeNode as ai, LocationActorSummaryReport as an, ReorderPinnedConversationsResponse as ar, automationListSchema as at, SkillReport as b, UserInputAnswer as ba, ConversationSummaryReport as bi, ActorWindowMetrics as bn, continueConversationInSlackBodySchema as br, BaselineSnapshotReport as bt, reviewItemListSchema as c, conversationChildAgentTotalsSchema as ca, ConversationDetailReport as ci, LocationParams as cn, reorderPinnedConversationsBodySchema as cr, automationRunSchema as ct, ReviewItemChangeRecord as d, BoardCard as da, ConversationFeed as di, locationDetailReportSchema as dn, ConversationCatchUpBody as dr, automationSchedulePreviewSchema as dt, codeChangeSummaryReportSchema as ea, AcceptedConversationMessage as ei, disconnectConnectionResponseSchema as en, conversationDeliveryBodySchema as er, automationExecutionListSchema as et, HealthReport as f, BoardColumn as fa, ConversationFeedItem as fi, locationDirectoryReportSchema as fn, conversationCatchUpBodySchema as fr, automationSummarySchema as ft, PluginPackageContentItemReport as g, messageCardText as ga, ConversationReportEventData as gi, ActorDirectoryWindows as gn, conversationReadPositionSchema as gr, automationVersionParamsSchema as gt, PluginOperationalReportFeed as h, MessageCard as ha, ConversationReportEvent as hi, ActorDirectoryReport as hn, ConversationReadReport as hr, automationVersionListSchema as ht, ReviewItemActionBody as i, codeRepositoryParamsSchema as ia, ConversationActivityPreview as ii, LocationActivityDayReport as in, ReorderPinnedConversationsBody as ir, automationListQuerySchema as it, skillReportsSchema as j, MessageAttachment as ja, conversationDetailReportSchema as ji, conversationWatchesReportSchema as jn, ArchiveConversationResponse as jr, userCustomizationSchema as jt, runtimeInfoReportSchema as k, MAX_INPUT_IMAGES as ka, conversationAuxiliaryCostsSchema as ki, ConversationWatchesReport as kn, conversationStatsReportSchema as kr, workspaceSchema as kt, reviewItemSchema as l, DailyConversationActivity as la, ConversationEventHistory as li, LocationSummaryReport as ln, reorderPinnedConversationsResponseSchema as lr, automationRunWindowsSchema as lt, PluginOperationalReport as m, boardReportSchema as ma, ConversationParams as mi, ActorActivityDayReport as mn, ConversationReadPosition as mr, automationVersionActivateSchema as mt, Versions as n, codeOverviewReportSchema as na, CONVERSATION_DETAIL_VERSION_HEADER as ni, ApiError as nn, PinConversationBody as nr, automationExecutionStatusDaySchema as nt, reviewItemActionSchema as o, codeRepositorySummarySchema as oa, ConversationAuxiliaryCosts as oi, LocationDetailReport as on, pinConversationBodySchema as or, automationParamsSchema as ot, Plugin as p, BoardReport as pa, ConversationModelUsage as pi, locationParamsSchema as pn, conversationCatchUpSchema as pr, automationUpdateSchema as pt, AutomationSummary as q, CodeActivityDay as qi, markConversationUnreadBodySchema as qn, conversationPendingAuthorizationSchema as qr, DEFAULT_NOTIFICATION_SCHEDULE as qt, versionsSchema as r, codePersonReportSchema as ra, CONVERSATION_VERSION_HEADER as ri, apiErrorSchema as rn, PinConversationResponse as rr, automationExecutionStatusSchema as rt, reviewItemCountSchema as s, ConversationChildAgentTotals as sa, ConversationCost as si, LocationDirectoryReport as sn, pinConversationResponseSchema as sr, automationRunListSchema as st, OwnedObjectAnnotation$1 as t, codeChangeSummarySchema as ta, ActorIdentity as ti, startConnectionResponseSchema as tn, conversationDeliveryResponseSchema as tr, automationExecutionSchema as tt, reviewItemWaitingConversationsSchema as u, dailyConversationActivitySchema as ua, ConversationEventPage as ui, locationActivityDayReportSchema as un, ConversationCatchUp as ur, automationScheduleIntentSchema as ut, Plugins as v, AutomationCard as va, ConversationReportStatus as vi, ActorSummaryReport as vn, ContinueConversationInSlackBody as vr, eventAutomationSummarySchema as vt, pluginOperationalReportSchema as w, isEmptyUserInputAnswer as wa, ConversationUsage as wi, actorDirectoryReportSchema as wn, ConversationMetricDay as wr, deleteWorkspaceResponseSchema as wt, SkillReports as x, UserInputField as xa, ConversationSurface as xi, PeopleActivityDayReport as xn, continueConversationInSlackResponseSchema as xr, WorkspaceListReport as xt, RuntimeInfoReport as y, USER_INPUT_NOTE as ya, ConversationSourceTask as yi, ActorTotalsReport as yn, ContinueConversationInSlackResponse as yr, scheduledAutomationSummarySchema as yt, AutomationExecutionList as z, conversationReportEventSchema as zi, renameConversationBodySchema as zn, ConversationPendingMessage as zr, disconnectServiceAccountResponseSchema as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
1
|
+
import { G as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-CtCJmt9p.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-C_JrgqUz.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-tE1wnl0T.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,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-BNK4uJVZ.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-tE1wnl0T.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-AGw_pANb.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|