@sentry/junior 0.293.0 → 0.295.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/{admin-uuecrKuD.js → admin-ifgjyfpF.js} +2 -2
- package/dist/{agent-runner-DHq1pjUg.js → agent-runner-DjMTPWEO.js} +192 -100
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +73 -29
- package/dist/{app-fWzCHFIb.d.ts → app-uiTzRbvq.d.ts} +5 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +64 -74
- package/dist/{automation-BE3z19VN.js → automation-yJX3C7i3.js} +3 -3
- package/dist/{background-compaction-queue-D7ncdEa6.js → background-compaction-queue-DUkHZjmL.js} +7 -9
- package/dist/{briefs-NpgMEFh1.js → briefs-CbNYM-q2.js} +3 -3
- package/dist/{catalog-runtime-DwbTyNRD.js → catalog-runtime-DgouZKZm.js} +1 -1
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +2 -0
- 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 +7 -74
- package/dist/{config-B4b-NXH5.js → config-DvnTPCfp.js} +58 -7
- package/dist/{connections-Dz_AQg5p.js → connections-CWaIVl_1.js} +6 -6
- package/dist/{conversation-CtjR1Zcx.js → conversation-CMkSmi02.js} +3 -11
- package/dist/{conversation-pending-messages-1Kad1Mif.js → conversation-feed-BVAOga0H.js} +27 -2
- package/dist/{conversation-privacy-DRsSgLGO.js → conversation-privacy-DPjv4SnA.js} +1 -1
- package/dist/{credential-sync-ClCnnGVj.js → credential-sync-BhbaZfmO.js} +16 -15
- package/dist/{db-BbpttyKH.d.ts → db-CCUqQe0E.d.ts} +13 -6
- package/dist/{db-CoA7_Xqu.js → db-Dts2XvLu.js} +144 -7
- package/dist/{executor-SWyHhit0.js → executor-Ck73J0wP.js} +64 -10
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BN5drSEZ.js → logging-9OAq-fdg.js} +2 -1
- package/dist/{message-D4qjpW1C.js → message-CtaPzC7m.js} +9 -9
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Xi-mTLOV.js → oauth-callback-server-C_LXY1d4.js} +2 -2
- package/dist/{oauth-relay-D6xxVywK.js → oauth-relay-CsfIazeF.js} +2 -1
- package/dist/{plugins-DtmjkTza.d.ts → plugins-B_0Cr0MO.d.ts} +0 -1
- package/dist/{projection-DXl4ftyL.js → projection-BzJQncZV.js} +251 -161
- package/dist/{prompt-Dmx6IfWZ.js → prompt-Cbq5b4SO.js} +5 -6
- package/dist/{registry-DosVt9f9.js → registry-cbpOxO4M.js} +3 -13
- package/dist/{resolve-BDjWJC9s.js → resolve-t-pmRdwS.js} +3 -3
- package/dist/{result-CaAFpf4B.js → result-DhgjR3nQ.js} +8 -8
- package/dist/{runner-h96Mkss6.js → runner-CHv9X9TH.js} +8 -8
- package/dist/{sandbox-egress-signals-rK91BW7i.js → sandbox-egress-signals-Yy3fSCbg.js} +1 -1
- package/dist/{schema-C_v8wb80.js → schema-BhneuGYv.js} +39 -7
- package/dist/{schema-CHsBmXIj.d.ts → schema-TSEisVJR.d.ts} +87 -14
- package/dist/secrets-DebYU866.js +18 -0
- package/dist/{service-account-WUMVuqVL.js → service-account-C4rBP8ne.js} +3 -3
- package/dist/{service-account-BpGpScaT.js → service-account-DjPIwCMj.js} +42 -26
- package/dist/{session-stop-xYK15HUu.js → session-stop-DkxI5vc3.js} +20 -775
- package/dist/{skills-DHApyCjj.js → skills-BZE2DP8I.js} +2 -2
- package/dist/{spawn-BQQrwGNe.js → spawn-BvULxIiu.js} +5 -5
- package/dist/{adapter-CMJfmHso.js → state-CO9ETDzk.js} +132 -2
- package/dist/{stop-CBeD6_Gs.js → stop-CL-rdtQb.js} +85 -32
- package/dist/{store-xtibD98L.js → store-DgD78_NK.js} +3 -3
- package/dist/{task-runner-BYPN4BEO.js → task-runner-CKOj6xla.js} +11 -11
- package/dist/{turn-failure-response-jNVl00MD.js → turn-failure-response-BTSo6SMJ.js} +8 -8
- package/dist/{validation-DGeB_moV.js → validation-CXeYgBzq.js} +1 -1
- package/dist/{version-C6nqU3Qc.js → version-AQa7Fr2H.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-9KLQibjn.js → viewer-Bqkb678l.js} +3 -3
- package/dist/warmup-h6u1e9n0.js +1869 -0
- package/dist/{work-xwX6unUE.js → work-yN_GAuXY.js} +11 -11
- package/dist/{worker-CiCCfwd4.js → worker-Hl7N292I.js} +6 -6
- package/migrations/0062_plugin_report_index.sql +1 -20
- package/migrations/0078_plugin_conversation_index.sql +1 -20
- package/migrations/0079_conversation_event_author_index.sql +1 -20
- package/migrations/0080_conversation_event_latest_message_indexes.sql +2 -27
- package/migrations/0090_guardian_review_time_index.sql +1 -20
- package/migrations/0091_conversation_participant_unsubscribed_index.sql +1 -20
- package/migrations/0097_conversation_kind_automation.sql +6 -0
- package/migrations/0098_review_item_plugin_actions.sql +5 -0
- package/migrations/0099_conversation_last_message_at.sql +1 -0
- package/migrations/0100_automation_task_kind_repair.sql +48 -0
- package/migrations/meta/0097_snapshot.json +4490 -0
- package/migrations/meta/0098_snapshot.json +4490 -0
- package/migrations/meta/0099_snapshot.json +4720 -0
- package/migrations/meta/0100_snapshot.json +4496 -0
- package/migrations/meta/_journal.json +28 -0
- package/package.json +5 -5
- package/dist/assistant-reply-CIApSfor.js +0 -58
- package/dist/warmup-7S6z068f.js +0 -993
|
@@ -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-DvnTPCfp.js";
|
|
2
|
+
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-9OAq-fdg.js";
|
|
3
|
+
import { J as agentTurnCostUsd, r as getConversationEventStore } from "./db-Dts2XvLu.js";
|
|
4
|
+
import { J as conversationBriefSchema, K as briefOutcomeStatusSchema, Y as parseBriefInput } from "./conversation-CMkSmi02.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
|
|
@@ -532,8 +532,7 @@ async function generateBrief(args) {
|
|
|
532
532
|
sizeClass
|
|
533
533
|
}),
|
|
534
534
|
schema: modelBriefSchema,
|
|
535
|
-
system: args.prompt
|
|
536
|
-
temperature: 0
|
|
535
|
+
system: args.prompt
|
|
537
536
|
});
|
|
538
537
|
const model = modelBriefSchema.parse(result.object);
|
|
539
538
|
const { droppedUrls, keptUrlCount, links } = buildEvidenceLinks({
|
|
@@ -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-9OAq-fdg.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";
|
|
@@ -66,7 +66,6 @@ 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);
|
|
70
69
|
return result;
|
|
71
70
|
}
|
|
72
71
|
function inlineOauthSource(oauth) {
|
|
@@ -269,8 +268,7 @@ const mcpSourceSchema = z.object({
|
|
|
269
268
|
headers: stringMapSchema.optional(),
|
|
270
269
|
"oauth-client": mcpOauthClientSourceSchema.optional(),
|
|
271
270
|
"allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional(),
|
|
272
|
-
"wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional()
|
|
273
|
-
"audit-tools": nonEmptyStringArraySchema("audit-tools").optional()
|
|
271
|
+
"wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional()
|
|
274
272
|
}).passthrough();
|
|
275
273
|
const targetSourceSchema = z.object({
|
|
276
274
|
type: nonEmptyTrimmedString.refine((value) => PLUGIN_NAME_RE.test(value), { error: "type must be a lowercase target identifier" }),
|
|
@@ -331,7 +329,6 @@ function manifestConfigPatch(config) {
|
|
|
331
329
|
setDefined(mcp, "oauth-client", config.mcp.oauthClient && mcpOauthClientSource(config.mcp.oauthClient));
|
|
332
330
|
setDefined(mcp, "allowed-tools", config.mcp.allowedTools);
|
|
333
331
|
setDefined(mcp, "wrapped-tools", config.mcp.wrappedTools);
|
|
334
|
-
setDefined(mcp, "audit-tools", config.mcp.auditTools);
|
|
335
332
|
result.mcp = mcp;
|
|
336
333
|
}
|
|
337
334
|
}
|
|
@@ -608,12 +605,6 @@ function normalizeMcp(data, envVars, name) {
|
|
|
608
605
|
if (typeof prepared.url === "string") prepared.url = expandEnvPlaceholders(prepared.url, envVars, `Plugin ${name} mcp.url`);
|
|
609
606
|
const result = mcpSourceSchema.safeParse(prepared);
|
|
610
607
|
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(", ")}`);
|
|
617
608
|
const headers = result.data.headers ? normalizeStringMap(result.data.headers, `Plugin ${name} mcp.headers`, { forbiddenKeys: FORBIDDEN_API_HEADER_NAMES }) : void 0;
|
|
618
609
|
assertDeclaredHeaderEnvReferences(headers, envVars, `Plugin ${name} mcp.headers`);
|
|
619
610
|
if (result.data.auth) assertDeclaredHostSecretEnv(result.data.auth["private-key-env"], envVars, `Plugin ${name} mcp.auth.private-key-env`);
|
|
@@ -640,8 +631,7 @@ function normalizeMcp(data, envVars, name) {
|
|
|
640
631
|
...oauthClientAuthorizeParams ? { authorizeParams: oauthClientAuthorizeParams } : void 0
|
|
641
632
|
} } : void 0,
|
|
642
633
|
...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : void 0,
|
|
643
|
-
...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0
|
|
644
|
-
...auditTools ? { auditTools } : void 0
|
|
634
|
+
...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0
|
|
645
635
|
};
|
|
646
636
|
}
|
|
647
637
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import {
|
|
1
|
+
import { Di as isStale, Ha as SANDBOX_WORKSPACE_ROOT, Ja as runNonInteractiveCommand, Ma as sleep, Ra as SANDBOX_COMMAND_PATH, Ti as create, ki as getSandboxProvider } from "./projection-BzJQncZV.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-9OAq-fdg.js";
|
|
3
|
+
import { a as getStateAdapter } from "./state-CO9ETDzk.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 {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import { cn as listUnreportedSiblingAgents } from "./agent-runner-
|
|
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, w as eventBatchMessageMeta } 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-BzJQncZV.js";
|
|
3
|
+
import { M as SYSTEM_IDENTITY_ID } from "./db-Dts2XvLu.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-cbpOxO4M.js";
|
|
5
|
+
import { cn as listUnreportedSiblingAgents } from "./agent-runner-DjMTPWEO.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-BTSo6SMJ.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-DkxI5vc3.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DgD78_NK.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-yN_GAuXY.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({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, d as recordAuthorizationCompleted, j as markConversationMessage,
|
|
2
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-
|
|
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-BzJQncZV.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-9OAq-fdg.js";
|
|
3
|
+
import { M as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-Dts2XvLu.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-cbpOxO4M.js";
|
|
5
|
+
import { I as messageCardText } from "./conversation-CMkSmi02.js";
|
|
6
|
+
import { D as getAssistantReplyText } from "./warmup-h6u1e9n0.js";
|
|
7
|
+
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-BTSo6SMJ.js";
|
|
8
|
+
import { ft as getPersistedSandboxState, gt as coerceThreadConversationState, ht as persistThreadStateById, n as scheduleSessionCompletedPluginTasks, pt as getPersistedThreadState, t as processPluginTask } from "./task-runner-CKOj6xla.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 { Da as sandboxEgressSignalsResponseSchema } from "./projection-BzJQncZV.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as conversationChildAgentTotalsSchema, i as actorIdentitySchema, s as conversationAuxiliaryCostsSchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-CMkSmi02.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-
|
|
4
|
+
import "./automation-yJX3C7i3.js";
|
|
5
|
+
import "./conversation-feed-BVAOga0H.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";
|
|
@@ -735,12 +735,19 @@ const reviewItemCountSchema = z.object({
|
|
|
735
735
|
needsViewer: z.number().int().nonnegative() }).strict();
|
|
736
736
|
/**
|
|
737
737
|
* Conversations linked to an open action item assigned to the viewer. `title`
|
|
738
|
-
* is the newest such item; `count` is how many there are
|
|
738
|
+
* is the newest such item; `count` is how many there are; `waitingSince` is
|
|
739
|
+
* when the oldest was added.
|
|
739
740
|
*/
|
|
740
741
|
const reviewItemWaitingConversationsSchema = z.object({ conversations: z.array(z.object({
|
|
741
742
|
conversationId: z.string().min(1),
|
|
742
|
-
|
|
743
|
-
|
|
743
|
+
/** Open items that need the viewer, newest first. */
|
|
744
|
+
items: z.array(z.object({
|
|
745
|
+
/** The plugin that added the item, such as `github`. */
|
|
746
|
+
plugin: z.string().min(1).optional(),
|
|
747
|
+
title: z.string().min(1)
|
|
748
|
+
}).strict()).min(1),
|
|
749
|
+
/** When the oldest of those items was added: when the wait began. */
|
|
750
|
+
waitingSince: z.string().datetime()
|
|
744
751
|
}).strict()) }).strict();
|
|
745
752
|
const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
|
|
746
753
|
/** One person action on a Review item. */
|
|
@@ -797,6 +804,31 @@ const workspaceBodySchema = z.object({
|
|
|
797
804
|
}).strict();
|
|
798
805
|
const workspaceParamsSchema = z.object({ id: z.string().uuid() }).strict();
|
|
799
806
|
const deleteWorkspaceResponseSchema = z.object({ deleted: z.literal(true) }).strict();
|
|
807
|
+
// src/api/schema/reply-times.ts
|
|
808
|
+
/** Reply times in the bins of the cache warming model. */
|
|
809
|
+
const replyTimeHistogramSchema = z.object({
|
|
810
|
+
bins: z.array(z.object({
|
|
811
|
+
count: z.number().int().nonnegative(),
|
|
812
|
+
endMs: z.number().int().positive(),
|
|
813
|
+
startMs: z.number().int().nonnegative()
|
|
814
|
+
}).strict()),
|
|
815
|
+
/** Idle periods with no reply before the cache warming horizon. */
|
|
816
|
+
noReply: z.number().int().nonnegative(),
|
|
817
|
+
total: z.number().int().nonnegative()
|
|
818
|
+
}).strict();
|
|
819
|
+
/** Gap histogram of each cache warming segment, over all Conversations. */
|
|
820
|
+
const replyTimeSegmentsReportSchema = z.object({
|
|
821
|
+
generatedAt: z.string().datetime(),
|
|
822
|
+
/**
|
|
823
|
+
* Below this many gaps, the planner leans on the segment's `none`
|
|
824
|
+
* segment, or does not warm a `none` segment.
|
|
825
|
+
*/
|
|
826
|
+
minSamples: z.number().int().positive(),
|
|
827
|
+
segments: z.array(z.object({
|
|
828
|
+
histogram: replyTimeHistogramSchema,
|
|
829
|
+
segment: z.string().min(1)
|
|
830
|
+
}).strict())
|
|
831
|
+
}).strict();
|
|
800
832
|
// src/api/schema/stats.ts
|
|
801
833
|
const statSchema = z.object({
|
|
802
834
|
count: z.number().int().nonnegative(),
|
|
@@ -838,4 +870,4 @@ const versionsSchema = z.object({
|
|
|
838
870
|
/** The viewer's rolling model spend. */
|
|
839
871
|
spend: z.string().min(1)
|
|
840
872
|
}).strict();
|
|
841
|
-
export {
|
|
873
|
+
export { codeActivityDaySchema as $, revokePersonalTokenResponseSchema as A, reorderPinnedConversationsBodySchema as At, activityDays as B, serviceAccountSchema as C, markConversationUnreadBodySchema as Ct, personalTokenListSchema as D, conversationDeliveryResponseSchema as Dt, createdPersonalTokenSchema as E, conversationDeliveryBodySchema as Et, personalSpendReportSchema as F, pushSubscriptionBodySchema as G, activitySixHours as H, locationActivityDayReportSchema as I, connectionListSchema as J, pushSubscriptionDeleteBodySchema as K, locationDetailReportSchema as L, actorProfileReportSchema as M, conversationCatchUpBodySchema as Mt, avatarParamsSchema as N, conversationCatchUpSchema as Nt, personalTokenMetadataSchema as O, pinConversationBodySchema as Ot, personParamsSchema as P, startConnectionResponseSchema as Q, locationDirectoryReportSchema as R, serviceAccountParamsSchema as S, conversationUnreadSchema as St, createPersonalTokenBodySchema as T, conversationSubscriptionResponseSchema as Tt, dailyConversationActivitySchema as U, activityHours as V, notificationSettingsSchema as W, connectionSchema as X, connectionParamsSchema as Y, disconnectConnectionResponseSchema as Z, reviewItemParamsSchema as _, conversationOutlineSchema as _t, replyTimeSegmentsReportSchema as a, codeRepositoryReportSchema as at, disconnectServiceAccountResponseSchema as b, archiveDoneConversationsResponseSchema as bt, workspaceBodySchema as c, conversationWatchSchema as ct, workspaceRepoSchema as d, conversationChildAgentsReportSchema as dt, codeChangeSummaryReportSchema as et, workspaceSchema as f, continueConversationInSlackBodySchema as ft, reviewItemListSchema as g, CONVERSATION_OUTLINE_TEXT_LENGTH as gt, reviewItemListQuerySchema as h, conversationStatsReportSchema as ht, statsReportSchema as i, codeRepositoryParamsSchema as it, actorDirectoryReportSchema as j, reorderPinnedConversationsResponseSchema as jt, personalTokenParamsSchema as k, pinConversationResponseSchema as kt, workspaceListSchema as l, conversationWatchesReportSchema as lt, reviewItemCountSchema as m, stopConversationTurnResponseSchema as mt, versionsSchema as n, codeOverviewReportSchema as nt, baselineSnapshotSchema as o, codeRepositorySummarySchema as ot, reviewItemActionSchema as p, continueConversationInSlackResponseSchema as pt, testNotificationResponseSchema as q, statSchema as r, codePersonReportSchema as rt, deleteWorkspaceResponseSchema as s, boardReportSchema as st, versionsQuerySchema as t, codeChangeSummarySchema as tt, workspaceParamsSchema as u, conversationChildAgentSchema as ut, reviewItemSchema as v, archiveConversationBodySchema as vt, startServiceAccountSignInResponseSchema as w, conversationSubscriptionBodySchema as wt, serviceAccountListSchema as x, conversationAutoArchiveSchema as xt, reviewItemWaitingConversationsSchema as y, archiveConversationResponseSchema as yt, locationParamsSchema as z };
|
|
@@ -751,6 +751,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
751
751
|
}, z.core.$strict>>;
|
|
752
752
|
conversationId: z.ZodString;
|
|
753
753
|
kind: z.ZodEnum<{
|
|
754
|
+
automation: "automation";
|
|
754
755
|
root: "root";
|
|
755
756
|
task: "task";
|
|
756
757
|
thread: "thread";
|
|
@@ -770,6 +771,7 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
770
771
|
startedAt: z.ZodString;
|
|
771
772
|
lastSeenAt: z.ZodString;
|
|
772
773
|
lastProgressAt: z.ZodString;
|
|
774
|
+
lastMessageAt: z.ZodOptional<z.ZodString>;
|
|
773
775
|
surface: z.ZodEnum<{
|
|
774
776
|
api: "api";
|
|
775
777
|
internal: "internal";
|
|
@@ -1507,6 +1509,7 @@ declare const forkConversationResponseSchema: z.ZodObject<{
|
|
|
1507
1509
|
declare const conversationAgentTreeNodeSchema: z.ZodObject<{
|
|
1508
1510
|
conversationId: z.ZodString;
|
|
1509
1511
|
kind: z.ZodEnum<{
|
|
1512
|
+
automation: "automation";
|
|
1510
1513
|
root: "root";
|
|
1511
1514
|
task: "task";
|
|
1512
1515
|
thread: "thread";
|
|
@@ -1889,6 +1892,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1889
1892
|
}, z.core.$strict>>;
|
|
1890
1893
|
conversationId: z.ZodString;
|
|
1891
1894
|
kind: z.ZodEnum<{
|
|
1895
|
+
automation: "automation";
|
|
1892
1896
|
root: "root";
|
|
1893
1897
|
task: "task";
|
|
1894
1898
|
thread: "thread";
|
|
@@ -1908,6 +1912,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1908
1912
|
startedAt: z.ZodString;
|
|
1909
1913
|
lastSeenAt: z.ZodString;
|
|
1910
1914
|
lastProgressAt: z.ZodString;
|
|
1915
|
+
lastMessageAt: z.ZodOptional<z.ZodString>;
|
|
1911
1916
|
surface: z.ZodEnum<{
|
|
1912
1917
|
api: "api";
|
|
1913
1918
|
internal: "internal";
|
|
@@ -2053,6 +2058,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2053
2058
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2054
2059
|
conversationId: z.ZodString;
|
|
2055
2060
|
kind: z.ZodEnum<{
|
|
2061
|
+
automation: "automation";
|
|
2056
2062
|
root: "root";
|
|
2057
2063
|
task: "task";
|
|
2058
2064
|
thread: "thread";
|
|
@@ -2791,15 +2797,6 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2791
2797
|
credentialUser: z.ZodOptional<z.ZodString>;
|
|
2792
2798
|
}, z.core.$strict>>;
|
|
2793
2799
|
}, z.core.$strict>;
|
|
2794
|
-
/** A feed row, with its visible Threads nested under their parents. */
|
|
2795
|
-
type ConversationFeedItem = ConversationSummaryReport & {
|
|
2796
|
-
threads?: ConversationFeedItem[];
|
|
2797
|
-
};
|
|
2798
|
-
declare const conversationFeedSchema: z.ZodObject<{
|
|
2799
|
-
conversations: z.ZodArray<z.ZodType<ConversationFeedItem, unknown, z.core.$ZodTypeInternals<ConversationFeedItem, unknown>>>;
|
|
2800
|
-
source: z.ZodLiteral<"conversation_index">;
|
|
2801
|
-
generatedAt: z.ZodString;
|
|
2802
|
-
}, z.core.$strict>;
|
|
2803
2800
|
type ConversationReportStatus = z.infer<typeof conversationReportStatusSchema>;
|
|
2804
2801
|
type ConversationTurnFailureCode = z.infer<typeof conversationTurnFailureCodeSchema>;
|
|
2805
2802
|
type ConversationTurnFailureReason = z.infer<typeof conversationTurnFailureReasonSchema>;
|
|
@@ -2818,7 +2815,6 @@ type ConversationEventHistory = z.infer<typeof conversationEventHistorySchema>;
|
|
|
2818
2815
|
type ConversationSourceTask = z.infer<typeof conversationSourceTaskSchema>;
|
|
2819
2816
|
type ConversationDetailReport = z.infer<typeof conversationDetailReportSchema>;
|
|
2820
2817
|
type ConversationEventPage = z.infer<typeof conversationEventPageSchema>;
|
|
2821
|
-
type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
2822
2818
|
type ConversationParams = z.infer<typeof conversationParamsSchema>;
|
|
2823
2819
|
type CreateConversationBody = z.infer<typeof createConversationBodySchema>;
|
|
2824
2820
|
type CreateConversationMessageBody = z.infer<typeof createConversationMessageBodySchema>;
|
|
@@ -3002,6 +2998,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3002
2998
|
}, z.core.$strict>>;
|
|
3003
2999
|
conversationId: z.ZodString;
|
|
3004
3000
|
kind: z.ZodEnum<{
|
|
3001
|
+
automation: "automation";
|
|
3005
3002
|
root: "root";
|
|
3006
3003
|
task: "task";
|
|
3007
3004
|
thread: "thread";
|
|
@@ -3021,6 +3018,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3021
3018
|
startedAt: z.ZodString;
|
|
3022
3019
|
lastSeenAt: z.ZodString;
|
|
3023
3020
|
lastProgressAt: z.ZodString;
|
|
3021
|
+
lastMessageAt: z.ZodOptional<z.ZodString>;
|
|
3024
3022
|
surface: z.ZodEnum<{
|
|
3025
3023
|
api: "api";
|
|
3026
3024
|
internal: "internal";
|
|
@@ -3166,6 +3164,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3166
3164
|
agentTree: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3167
3165
|
conversationId: z.ZodString;
|
|
3168
3166
|
kind: z.ZodEnum<{
|
|
3167
|
+
automation: "automation";
|
|
3169
3168
|
root: "root";
|
|
3170
3169
|
task: "task";
|
|
3171
3170
|
thread: "thread";
|
|
@@ -4048,6 +4047,34 @@ type CancelConversationPendingMessagesBody = z.infer<typeof cancelConversationPe
|
|
|
4048
4047
|
type CancelConversationPendingMessagesResponse = z.infer<typeof cancelConversationPendingMessagesResponseSchema>;
|
|
4049
4048
|
type SteerConversationPendingMessagesBody = z.infer<typeof steerConversationPendingMessagesBodySchema>;
|
|
4050
4049
|
type SteerConversationPendingMessagesResponse = z.infer<typeof steerConversationPendingMessagesResponseSchema>;
|
|
4050
|
+
/**
|
|
4051
|
+
* The part of a Conversation's latest Brief that a feed row shows: what the
|
|
4052
|
+
* work is about and how it stands.
|
|
4053
|
+
*/
|
|
4054
|
+
declare const conversationFeedBriefSchema: z.ZodObject<{
|
|
4055
|
+
intent: z.ZodString;
|
|
4056
|
+
status: z.ZodEnum<{
|
|
4057
|
+
abandoned: "abandoned";
|
|
4058
|
+
answered: "answered";
|
|
4059
|
+
blocked: "blocked";
|
|
4060
|
+
done: "done";
|
|
4061
|
+
in_progress: "in_progress";
|
|
4062
|
+
partial: "partial";
|
|
4063
|
+
}>;
|
|
4064
|
+
summary: z.ZodString;
|
|
4065
|
+
}, z.core.$strict>;
|
|
4066
|
+
type ConversationFeedBrief = z.infer<typeof conversationFeedBriefSchema>;
|
|
4067
|
+
/** A feed row, with its visible Threads nested under their parents. */
|
|
4068
|
+
type ConversationFeedItem = ConversationSummaryReport & {
|
|
4069
|
+
brief?: ConversationFeedBrief;
|
|
4070
|
+
threads?: ConversationFeedItem[];
|
|
4071
|
+
};
|
|
4072
|
+
declare const conversationFeedSchema: z.ZodObject<{
|
|
4073
|
+
conversations: z.ZodArray<z.ZodType<ConversationFeedItem, unknown, z.core.$ZodTypeInternals<ConversationFeedItem, unknown>>>;
|
|
4074
|
+
source: z.ZodLiteral<"conversation_index">;
|
|
4075
|
+
generatedAt: z.ZodString;
|
|
4076
|
+
}, z.core.$strict>;
|
|
4077
|
+
type ConversationFeed = z.infer<typeof conversationFeedSchema>;
|
|
4051
4078
|
/**
|
|
4052
4079
|
* Archive or restore one conversation. `applyToChildren` applies to a child
|
|
4053
4080
|
* only: archive refuses while a descendant is unarchived unless it is true,
|
|
@@ -4863,6 +4890,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
4863
4890
|
}, z.core.$strict>>;
|
|
4864
4891
|
conversationId: z.ZodString;
|
|
4865
4892
|
kind: z.ZodEnum<{
|
|
4893
|
+
automation: "automation";
|
|
4866
4894
|
root: "root";
|
|
4867
4895
|
task: "task";
|
|
4868
4896
|
thread: "thread";
|
|
@@ -4882,6 +4910,7 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
4882
4910
|
startedAt: z.ZodString;
|
|
4883
4911
|
lastSeenAt: z.ZodString;
|
|
4884
4912
|
lastProgressAt: z.ZodString;
|
|
4913
|
+
lastMessageAt: z.ZodOptional<z.ZodString>;
|
|
4885
4914
|
surface: z.ZodEnum<{
|
|
4886
4915
|
api: "api";
|
|
4887
4916
|
internal: "internal";
|
|
@@ -5297,6 +5326,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5297
5326
|
}, z.core.$strict>>;
|
|
5298
5327
|
conversationId: z.ZodString;
|
|
5299
5328
|
kind: z.ZodEnum<{
|
|
5329
|
+
automation: "automation";
|
|
5300
5330
|
root: "root";
|
|
5301
5331
|
task: "task";
|
|
5302
5332
|
thread: "thread";
|
|
@@ -5316,6 +5346,7 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
5316
5346
|
startedAt: z.ZodString;
|
|
5317
5347
|
lastSeenAt: z.ZodString;
|
|
5318
5348
|
lastProgressAt: z.ZodString;
|
|
5349
|
+
lastMessageAt: z.ZodOptional<z.ZodString>;
|
|
5319
5350
|
surface: z.ZodEnum<{
|
|
5320
5351
|
api: "api";
|
|
5321
5352
|
internal: "internal";
|
|
@@ -7336,6 +7367,35 @@ declare const automationSchedulePreviewSchema: z.ZodObject<{
|
|
|
7336
7367
|
nextRunAtMs: z.ZodNumber;
|
|
7337
7368
|
}, z.core.$strict>;
|
|
7338
7369
|
type AutomationScheduleIntent = z.output<typeof automationScheduleIntentSchema>;
|
|
7370
|
+
/** Reply times in the bins of the cache warming model. */
|
|
7371
|
+
declare const replyTimeHistogramSchema: z.ZodObject<{
|
|
7372
|
+
bins: z.ZodArray<z.ZodObject<{
|
|
7373
|
+
count: z.ZodNumber;
|
|
7374
|
+
endMs: z.ZodNumber;
|
|
7375
|
+
startMs: z.ZodNumber;
|
|
7376
|
+
}, z.core.$strict>>;
|
|
7377
|
+
noReply: z.ZodNumber;
|
|
7378
|
+
total: z.ZodNumber;
|
|
7379
|
+
}, z.core.$strict>;
|
|
7380
|
+
/** Gap histogram of each cache warming segment, over all Conversations. */
|
|
7381
|
+
declare const replyTimeSegmentsReportSchema: z.ZodObject<{
|
|
7382
|
+
generatedAt: z.ZodString;
|
|
7383
|
+
minSamples: z.ZodNumber;
|
|
7384
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
7385
|
+
histogram: z.ZodObject<{
|
|
7386
|
+
bins: z.ZodArray<z.ZodObject<{
|
|
7387
|
+
count: z.ZodNumber;
|
|
7388
|
+
endMs: z.ZodNumber;
|
|
7389
|
+
startMs: z.ZodNumber;
|
|
7390
|
+
}, z.core.$strict>>;
|
|
7391
|
+
noReply: z.ZodNumber;
|
|
7392
|
+
total: z.ZodNumber;
|
|
7393
|
+
}, z.core.$strict>;
|
|
7394
|
+
segment: z.ZodString;
|
|
7395
|
+
}, z.core.$strict>>;
|
|
7396
|
+
}, z.core.$strict>;
|
|
7397
|
+
type ReplyTimeHistogram = z.infer<typeof replyTimeHistogramSchema>;
|
|
7398
|
+
type ReplyTimeSegmentsReport = z.infer<typeof replyTimeSegmentsReportSchema>;
|
|
7339
7399
|
declare const statSchema: z.ZodObject<{
|
|
7340
7400
|
count: z.ZodNumber;
|
|
7341
7401
|
date: z.ZodString;
|
|
@@ -7386,6 +7446,14 @@ declare const skillReportsSchema: z.ZodArray<z.ZodObject<{
|
|
|
7386
7446
|
pluginProvider: z.ZodOptional<z.ZodString>;
|
|
7387
7447
|
disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
|
|
7388
7448
|
}, z.core.$strict>>;
|
|
7449
|
+
/** One skill with its authored SKILL.md body, without frontmatter. */
|
|
7450
|
+
declare const skillDetailReportSchema: z.ZodObject<{
|
|
7451
|
+
name: z.ZodString;
|
|
7452
|
+
description: z.ZodString;
|
|
7453
|
+
pluginProvider: z.ZodOptional<z.ZodString>;
|
|
7454
|
+
disableModelInvocation: z.ZodOptional<z.ZodBoolean>;
|
|
7455
|
+
body: z.ZodString;
|
|
7456
|
+
}, z.core.$strict>;
|
|
7389
7457
|
declare const pluginPackageContentItemReportSchema: z.ZodObject<{
|
|
7390
7458
|
dir: z.ZodString;
|
|
7391
7459
|
hasMigrationsDir: z.ZodBoolean;
|
|
@@ -7551,6 +7619,7 @@ type Plugin = z.infer<typeof pluginSchema>;
|
|
|
7551
7619
|
type Plugins = z.infer<typeof pluginsSchema>;
|
|
7552
7620
|
type SkillReport = z.infer<typeof skillReportSchema>;
|
|
7553
7621
|
type SkillReports = z.infer<typeof skillReportsSchema>;
|
|
7622
|
+
type SkillDetailReport = z.infer<typeof skillDetailReportSchema>;
|
|
7554
7623
|
type RuntimeInfoReport = z.infer<typeof runtimeInfoReportSchema>;
|
|
7555
7624
|
type PluginPackageContentItemReport = z.infer<typeof pluginPackageContentItemReportSchema>;
|
|
7556
7625
|
type PluginPackageContentReport = z.infer<typeof pluginPackageContentReportSchema>;
|
|
@@ -7744,13 +7813,17 @@ declare const reviewItemCountSchema: z.ZodObject<{
|
|
|
7744
7813
|
}, z.core.$strict>;
|
|
7745
7814
|
/**
|
|
7746
7815
|
* Conversations linked to an open action item assigned to the viewer. `title`
|
|
7747
|
-
* is the newest such item; `count` is how many there are
|
|
7816
|
+
* is the newest such item; `count` is how many there are; `waitingSince` is
|
|
7817
|
+
* when the oldest was added.
|
|
7748
7818
|
*/
|
|
7749
7819
|
declare const reviewItemWaitingConversationsSchema: z.ZodObject<{
|
|
7750
7820
|
conversations: z.ZodArray<z.ZodObject<{
|
|
7751
7821
|
conversationId: z.ZodString;
|
|
7752
|
-
|
|
7753
|
-
|
|
7822
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7823
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
7824
|
+
title: z.ZodString;
|
|
7825
|
+
}, z.core.$strict>>;
|
|
7826
|
+
waitingSince: z.ZodString;
|
|
7754
7827
|
}, z.core.$strict>>;
|
|
7755
7828
|
}, z.core.$strict>;
|
|
7756
7829
|
/** One person action on a Review item. */
|
|
@@ -7778,4 +7851,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
7778
7851
|
spend: z.ZodString;
|
|
7779
7852
|
}, z.core.$strict>;
|
|
7780
7853
|
type Versions = z.output<typeof versionsSchema>;
|
|
7781
|
-
export {
|
|
7854
|
+
export { AutomationVersionList as $, CodeOverviewReport as $i, ConversationSubscriptionResponse as $n, conversationDetailWithMailboxReportSchema as $r, isWithinNotificationSchedule as $t, runtimeInfoReportSchema as A, normalizeUserInputAnswer as Aa, CreateConversationBody as Ai, personParamsSchema as An, ConversationStatsReport as Ar, workspaceListSchema as At, replyTimeSegmentsReportSchema as B, conversationFeedQuerySchema as Bi, CONVERSATION_TITLE_MAX_LENGTH as Bn, conversationAutoArchiveSchema as Br, personalTokenMetadataSchema as Bt, healthReportSchema as C, AutomationCard as Ca, ConversationReportStatus as Ci, ActorTotalsReport as Cn, ContinueConversationInSlackResponse as Cr, scheduledAutomationSummarySchema as Ct, pluginPackageContentReportSchema as D, UserInputRequest as Da, ConversationTurnFailureCode as Di, PersonalSpendReport as Dn, stopConversationTurnResponseSchema as Dr, baselineSnapshotSchema as Dt, pluginPackageContentItemReportSchema as E, UserInputField as Ea, ConversationSurface as Ei, PersonParams as En, StopConversationTurnResponse as Er, WorkspaceReport as Et, StatsReport as F, MAX_INPUT_IMAGE_BYTES as Fa, conversationDetailQuerySchema as Fi, conversationWatchesReportSchema as Fn, ArchiveConversationResponse as Fr, userCustomizationSchema as Ft, AutomationList as G, createConversationBodySchema as Gi, CONVERSATION_OUTLINE_TEXT_LENGTH as Gn, CancelConversationPendingMessagesResponse as Gr, serviceAccountParamsSchema as Gt, AutomationExecution as H, conversationReportEventDataSchema as Hi, RenameConversationResponse as Hn, ConversationFeedItem as Hr, revokePersonalTokenResponseSchema as Ht, statSchema as I, MessageAttachment as Ia, conversationDetailReportSchema as Ii, ConversationChildAgent as In, ConversationAutoArchive as Ir, PersonalTokenMetadata as It, AutomationRunList as J, forkConversationResponseSchema as Ji, ConversationUnread as Jn, ConversationPendingMessagesReport as Jr, NotificationSettings as Jt, AutomationListQuery as K, createConversationMessageBodySchema as Ki, ConversationOutline as Kn, ConversationPendingMessage as Kr, serviceAccountSchema as Kt, statsReportSchema as L, INLINE_VIDEO_TYPES as La, conversationEventHistorySchema as Li, ConversationChildAgentsReport as Ln, archiveConversationBodySchema as Lr, createPersonalTokenBodySchema as Lt, skillReportSchema as M, isAgentInvocationResultEventType as Ma, acceptedConversationMessageSchema as Mi, ConversationWatch as Mn, GuardianStats as Mr, workspaceRepoSchema as Mt, skillReportsSchema as N, InputImage as Na, conversationActivityPreviewSchema as Ni, ConversationWatchesReport as Nn, conversationStatsReportSchema as Nr, workspaceSchema as Nt, pluginSchema as O, buttonUserInputField as Oa, ConversationTurnFailureReason as Oi, actorDirectoryReportSchema as On, ConversationMetricDay as Or, deleteWorkspaceResponseSchema as Ot, StatReport as P, MAX_INPUT_IMAGES as Pa, conversationAuxiliaryCostsSchema as Pi, conversationWatchSchema as Pn, ArchiveConversationBody as Pr, USER_CUSTOMIZATION_MAX_CHARS as Pt, AutomationUpdate as Q, CodeChangeSummaryReport as Qi, ConversationSubscriptionBody as Qn, cancelConversationPendingMessagesResponseSchema as Qr, NotificationSchedule as Qt, ReplyTimeHistogram as R, INPUT_IMAGE_TYPES as Ra, conversationEventPageSchema as Ri, conversationChildAgentSchema as Rn, archiveConversationResponseSchema as Rr, createdPersonalTokenSchema as Rt, SkillReports as S, AutomationTask as Sa, ConversationReportMessageEvent as Si, ActorSummaryReport as Sn, ContinueConversationInSlackBody as Sr, eventAutomationSummarySchema as St, pluginOperationalReportSchema as T, UserInputAnswer as Ta, ConversationSummaryReport as Ti, PeopleActivityDayReport as Tn, continueConversationInSlackResponseSchema as Tr, WorkspaceListReport as Tt, AutomationExecutionList as U, conversationReportEventSchema as Ui, renameConversationBodySchema as Un, conversationFeedSchema as Ur, disconnectServiceAccountResponseSchema as Ut, AutomationEdit as V, conversationParamsSchema as Vi, RenameConversationBody as Vn, ConversationFeed as Vr, personalTokenParamsSchema as Vt, AutomationExecutionStatusDay as W, conversationSummaryReportSchema as Wi, renameConversationResponseSchema as Wn, CancelConversationPendingMessagesBody as Wr, serviceAccountListSchema as Wt, AutomationScheduleIntent as X, conversationTurnFailureReasonSchema as Xi, conversationUnreadSchema as Xn, SteerConversationPendingMessagesResponse as Xr, testNotificationResponseSchema as Xt, AutomationRunWindows as Y, conversationTurnFailureCodeSchema as Yi, MarkConversationUnreadBody as Yn, SteerConversationPendingMessagesBody as Yr, notificationSettingsSchema as Yt, AutomationSummary as Z, CodeActivityDay as Zi, markConversationUnreadBodySchema as Zn, cancelConversationPendingMessagesBodySchema as Zr, DEFAULT_NOTIFICATION_SCHEDULE as Zt, PluginPackageContentReport as _, BoardReport as _a, ConversationEventPage as _i, locationParamsSchema as _n, conversationCatchUpSchema as _r, automationUpdateSchema as _t, ReviewItemPayload as a, codeChangeSummarySchema as aa, steerConversationPendingMessagesBodySchema as ai, startConnectionResponseSchema as an, conversationDeliveryResponseSchema as ar, automationExecutionSchema as at, SkillDetailReport as b, messageCardText as ba, ConversationReportEvent as bi, ActorDirectoryWindows as bn, conversationReadPositionSchema as br, automationVersionParamsSchema as bt, reviewItemListSchema as c, codeRepositoryParamsSchema as ca, ActorIdentity as ci, LocationActivityDayReport as cn, ReorderPinnedConversationsBody as cr, automationListQuerySchema as ct, ReviewItemChangeRecord as d, ConversationChildAgentTotals as da, ConversationActivityPreview as di, LocationDirectoryReport as dn, pinConversationResponseSchema as dr, automationRunListSchema as dt, CodePersonReport as ea, conversationPendingAuthorizationSchema as ei, notificationScheduleSchema as en, conversationSubscriptionBodySchema as er, ListedAutomationVersion as et, HealthReport as f, conversationChildAgentTotalsSchema as fa, ConversationAgentTreeNode as fi, LocationParams as fn, reorderPinnedConversationsBodySchema as fr, automationRunSchema as ft, PluginPackageContentItemReport as g, BoardColumn as ga, ConversationEventHistory as gi, locationDirectoryReportSchema as gn, conversationCatchUpBodySchema as gr, automationSummarySchema as gt, PluginOperationalReportFeed as h, BoardCard as ha, ConversationDetailReport as hi, locationDetailReportSchema as hn, ConversationCatchUpBody as hr, automationSchedulePreviewSchema as ht, ReviewItemActionBody as i, codeChangeSummaryReportSchema as ia, conversationUnchangedDetailWithMailboxSchema as ii, disconnectConnectionResponseSchema as in, conversationDeliveryBodySchema as ir, automationExecutionListSchema as it, skillDetailReportSchema as j, webMessageId as ja, CreateConversationMessageBody as ji, personalSpendReportSchema as jn, GuardianMetricDay as jr, workspaceParamsSchema as jt, pluginsSchema as k, isEmptyUserInputAnswer as ka, ConversationUsage as ki, actorProfileReportSchema as kn, ConversationStatsItem as kr, workspaceBodySchema as kt, reviewItemSchema as l, codeRepositoryReportSchema as la, CONVERSATION_DETAIL_VERSION_HEADER as li, LocationActorSummaryReport as ln, ReorderPinnedConversationsResponse as lr, automationListSchema as lt, PluginOperationalReport as m, dailyConversationActivitySchema as ma, ConversationCost as mi, locationActivityDayReportSchema as mn, ConversationCatchUp as mr, automationScheduleIntentSchema as mt, Versions as n, CodeRepositorySummary as na, conversationPendingMessageSchema as ni, connectionParamsSchema as nn, ConversationDeliveryBody as nr, automationEditSchema as nt, reviewItemActionSchema as o, codeOverviewReportSchema as oa, steerConversationPendingMessagesResponseSchema as oi, ApiError as on, PinConversationBody as or, automationExecutionStatusDaySchema as ot, Plugin as p, DailyConversationActivity as pa, ConversationAuxiliaryCosts as pi, LocationSummaryReport as pn, reorderPinnedConversationsResponseSchema as pr, automationRunWindowsSchema as pt, AutomationRun as q, forkConversationBodySchema as qi, conversationOutlineSchema as qn, ConversationPendingMessageDelivery as qr, startServiceAccountSignInResponseSchema as qt, versionsSchema as r, codeActivityDaySchema as ra, conversationPendingMessagesReportSchema as ri, connectionSchema as rn, ConversationDeliveryResponse as rr, automationEventCatalogSchema as rt, reviewItemCountSchema as s, codePersonReportSchema as sa, AcceptedConversationMessage as si, apiErrorSchema as sn, PinConversationResponse as sr, automationExecutionStatusSchema as st, OwnedObjectAnnotation$1 as t, CodeRepositoryReport as ta, conversationPendingMessageDeliverySchema as ti, connectionListSchema as tn, conversationSubscriptionResponseSchema as tr, automationEditErrorSchema as tt, reviewItemWaitingConversationsSchema as u, codeRepositorySummarySchema as ua, CONVERSATION_VERSION_HEADER as ui, LocationDetailReport as un, pinConversationBodySchema as ur, automationParamsSchema as ut, Plugins as v, boardReportSchema as va, ConversationModelUsage as vi, ActorActivityDayReport as vn, ConversationReadPosition as vr, automationVersionActivateSchema as vt, pluginOperationalReportFeedSchema as w, USER_INPUT_NOTE as wa, ConversationSourceTask as wi, ActorWindowMetrics as wn, continueConversationInSlackBodySchema as wr, BaselineSnapshotReport as wt, SkillReport as x, resolveMessageCards as xa, ConversationReportEventData as xi, ActorProfileReport as xn, conversationReadReportSchema as xr, automationVersionSchema as xt, RuntimeInfoReport as y, MessageCard as ya, ConversationParams as yi, ActorDirectoryReport as yn, ConversationReadReport as yr, automationVersionListSchema as yt, ReplyTimeSegmentsReport as z, conversationEventsQuerySchema as zi, conversationChildAgentsReportSchema as zn, archiveDoneConversationsResponseSchema as zr, personalTokenListSchema as zt };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/chat/secrets.ts
|
|
2
|
+
/** Read the server secret that signs internal tokens and payloads. */
|
|
3
|
+
function readJuniorSecret() {
|
|
4
|
+
return process.env.JUNIOR_SECRET?.trim() || void 0;
|
|
5
|
+
}
|
|
6
|
+
/** Read the raw dashboard session secret, with `JUNIOR_SECRET` as fallback. */
|
|
7
|
+
function readSignInSecret() {
|
|
8
|
+
return process.env.BETTER_AUTH_SECRET ?? process.env.JUNIOR_SECRET;
|
|
9
|
+
}
|
|
10
|
+
/** Read the bearer secret that internal cron requests must send. */
|
|
11
|
+
function readSchedulerSecret() {
|
|
12
|
+
return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
|
|
13
|
+
}
|
|
14
|
+
/** Read the VAPID private key that signs web push messages. */
|
|
15
|
+
function readWebPushPrivateKey() {
|
|
16
|
+
return process.env.JUNIOR_WEB_PUSH_PRIVATE_KEY?.trim();
|
|
17
|
+
}
|
|
18
|
+
export { readWebPushPrivateKey as i, readSchedulerSecret as n, readSignInSecret as r, readJuniorSecret as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
-
import {
|
|
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-DgouZKZm.js";
|
|
2
|
+
import { r as disconnectStateAdapter } from "./state-CO9ETDzk.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DjPIwCMj.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|