@sentry/junior 0.288.0 → 0.290.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-Cikcqdty.js → adapter-CHMVy-j0.js} +1 -1
- package/dist/{admin-BcSxHuTB.js → admin-C45Ap5Tn.js} +2 -2
- package/dist/{agent-runner-9MXyWUL8.js → agent-runner-CZjf6MOQ.js} +343 -103
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +281 -254
- package/dist/{app-BUklJVBe.d.ts → app-BB1j2krL.d.ts} +2 -4
- package/dist/app.d.ts +1 -1
- package/dist/app.js +92 -64
- package/dist/assistant-reply-BtIV0hq6.js +58 -0
- package/dist/{automation-DDXwHQs5.js → automation-DWbjJltM.js} +1 -1
- package/dist/{background-compaction-queue-CjllSPir.js → background-compaction-queue-2gKhjRD3.js} +4 -4
- package/dist/{briefs-DW9iuolG.js → briefs-BGke_Cz5.js} +3 -4
- package/dist/{catalog-runtime-B3gfH58M.js → catalog-runtime-BSOlVfXi.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 +4 -4
- package/dist/{config-CLJcyYEF.js → config-DHDub41t.js} +4 -41
- package/dist/{connections-BtdJftow.js → connections-BAb0fedk.js} +7 -129
- package/dist/{conversation-DhoqHtQ7.js → conversation-CwC8K3RZ.js} +8 -8
- package/dist/{conversation-pending-messages-DHV0S4uF.js → conversation-pending-messages-B0cuLReP.js} +1 -1
- package/dist/{conversation-privacy-BPirIVlX.js → conversation-privacy-QRdLPH-9.js} +1 -1
- package/dist/{credential-sync-Co8Q2xRW.js → credential-sync-YIMGiRk7.js} +13 -13
- package/dist/{db-Co7DTYYh.js → db-DBHig2sI.js} +56 -31
- package/dist/{db-zIs8-Ba3.d.ts → db-DCSmv9tz.d.ts} +6 -2
- package/dist/{executor-m0kIN71Q.js → executor-DKrtH0k_.js} +62 -13
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-DbD-dErY.js → logging-f24cZPEj.js} +2 -2
- package/dist/{history-IjdmO_r6.js → media-BepyEUNm.js} +85 -1
- package/dist/{message-DKTdTYm-.js → message-BbBOajiX.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-CpbepSbp.js → oauth-callback-server-rHJYjFoz.js} +2 -2
- package/dist/{projection-BViECfYu.js → projection-D-9aVaHj.js} +153 -119
- package/dist/{prompt-KT6MaDHN.js → prompt-C7SZhNDy.js} +183 -3
- package/dist/{registry-D-Acyjhh.js → registry-CwA-kSjW.js} +1 -1
- package/dist/{resolve-gkT2R66z.js → resolve-B5WJgt9k.js} +3 -3
- package/dist/{result-DHmCFEt8.js → result-B2sCVIwl.js} +16 -10
- package/dist/{runner-DBKjGjH-.js → runner-CZq7wyIh.js} +8 -8
- package/dist/{sandbox-egress-signals-9n8hqx29.js → sandbox-egress-signals-C4d6Pa9a.js} +1 -1
- package/dist/{schema-DxicIQbc.js → schema-Bptz19Ja.js} +14 -9
- package/dist/{schema-B_6aOcx5.d.ts → schema-DQaFSkZZ.d.ts} +13 -5
- package/dist/{service-account-CDlC9ssy.js → service-account-B6OJtplS.js} +3 -3
- package/dist/{service-account-Bi0HsY6w.js → service-account-BC73M8rj.js} +3 -3
- package/dist/{session-stop-BWOsuo8p.js → session-stop-1cku9Vm3.js} +41 -30
- package/dist/{skills-DO5K68Rq.js → skills-BFopj5ID.js} +2 -2
- package/dist/{spawn-BBqZDcPa.js → spawn-B-1JlJwH.js} +5 -5
- package/dist/{stop-WC97cmHz.js → stop-CJweYiOH.js} +123 -213
- package/dist/{store-ByR1Lr7e.js → store-CK869JpC.js} +3 -3
- package/dist/{task-runner-B-Ewf8TX.js → task-runner-XmXL9E-k.js} +13 -17
- package/dist/{turn-failure-response-CpdPoZSl.js → turn-failure-response-hhpek6Fn.js} +8 -8
- package/dist/{validation-B4sbIoES.js → validation-DHQjCRFx.js} +1 -1
- package/dist/{version-D6lpuAgL.js → version-DQgCf4FE.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CeP27tC3.js → viewer-DG97nzP4.js} +4 -4
- package/dist/{warmup-P_GJCL1c.js → warmup-C00-jOoN.js} +272 -78
- package/dist/{work-DI7x1Slm.js → work-Ch3EWO6u.js} +14 -14
- package/dist/{worker-CYPTOT4j.js → worker-B8kyM1fB.js} +6 -30
- 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/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 +28 -0
- package/package.json +5 -5
- package/dist/assistant-reply-mj47jMRV.js +0 -65
- package/dist/core-model-BTt5E5b0.js +0 -182
- package/dist/media-BAHvgkok.js +0 -85
|
@@ -1,5 +1,185 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as completeText$1, S as completeObject$1, x as completeDecision$1 } from "./config-DHDub41t.js";
|
|
2
|
+
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-f24cZPEj.js";
|
|
3
|
+
import { V as agentTurnCostUsd, r as getConversationEventStore } from "./db-DBHig2sI.js";
|
|
4
|
+
import { X as parseBriefInput, Y as conversationBriefSchema, q as briefOutcomeStatusSchema } from "./conversation-CwC8K3RZ.js";
|
|
2
5
|
import * as z from "zod";
|
|
6
|
+
import { conversationEventPresentationSchema, defineConversationEvent } from "@sentry/junior-plugin-api";
|
|
7
|
+
// src/chat/conversations/structured-events.ts
|
|
8
|
+
/** Reserved namespace for Junior-owned conversation metadata events. */
|
|
9
|
+
const JUNIOR_NATIVE_EVENT_NAMESPACE = "junior";
|
|
10
|
+
const authenticationEventContentSchema = z.object({
|
|
11
|
+
accountLabel: z.string().trim().min(1).max(120).optional(),
|
|
12
|
+
actorId: z.string().min(1),
|
|
13
|
+
authorizationId: z.string().min(1).optional(),
|
|
14
|
+
provider: z.string().regex(/^[a-z][a-z0-9-]*$/),
|
|
15
|
+
providerLabel: z.string().trim().min(1).max(80).optional()
|
|
16
|
+
}).strict();
|
|
17
|
+
const agentsInstructionsUpdatedContentSchema = z.object({
|
|
18
|
+
action: z.enum([
|
|
19
|
+
"loaded",
|
|
20
|
+
"replaced",
|
|
21
|
+
"cleared"
|
|
22
|
+
]),
|
|
23
|
+
directory: z.string().trim().min(1).max(500).optional(),
|
|
24
|
+
fingerprint: z.string().trim().min(1).max(128),
|
|
25
|
+
sources: z.array(z.object({
|
|
26
|
+
content: z.string().min(1).max(32768),
|
|
27
|
+
path: z.string().trim().min(1).max(500)
|
|
28
|
+
}).strict()).max(32),
|
|
29
|
+
textBytes: z.number().int().nonnegative().optional()
|
|
30
|
+
}).strict();
|
|
31
|
+
function providerTitle(content) {
|
|
32
|
+
return content.providerLabel?.trim() || content.provider;
|
|
33
|
+
}
|
|
34
|
+
function agentsInstructionsTitle(action) {
|
|
35
|
+
if (action === "loaded") return "Loaded AGENTS.md";
|
|
36
|
+
if (action === "replaced") return "Updated AGENTS.md";
|
|
37
|
+
return "Cleared AGENTS.md";
|
|
38
|
+
}
|
|
39
|
+
function sourceFilename(sourcePath) {
|
|
40
|
+
return sourcePath.split("/").at(-1) || sourcePath;
|
|
41
|
+
}
|
|
42
|
+
function formatBytes(bytes) {
|
|
43
|
+
if (bytes < 1024) return `${bytes} bytes`;
|
|
44
|
+
const kilobytes = bytes / 1024;
|
|
45
|
+
return `${Number.isInteger(kilobytes) ? kilobytes : kilobytes.toFixed(1)} KB`;
|
|
46
|
+
}
|
|
47
|
+
function agentsInstructionsPreview(content) {
|
|
48
|
+
const source = content.sources[0];
|
|
49
|
+
if (!source) return void 0;
|
|
50
|
+
const filename = sourceFilename(source.path);
|
|
51
|
+
const label = content.sources.length === 1 ? filename : `${content.sources.length} AGENTS.md files`;
|
|
52
|
+
return typeof content.textBytes === "number" ? `${label} · ${formatBytes(content.textBytes)}` : label;
|
|
53
|
+
}
|
|
54
|
+
/** Junior-owned account-link transcript event. */
|
|
55
|
+
const authenticationLinkedEvent = defineConversationEvent({
|
|
56
|
+
name: "authentication_linked",
|
|
57
|
+
version: 1,
|
|
58
|
+
schema: authenticationEventContentSchema,
|
|
59
|
+
renderEvent(event) {
|
|
60
|
+
const provider = providerTitle(event);
|
|
61
|
+
return {
|
|
62
|
+
icon: "link",
|
|
63
|
+
title: `${provider} connected`,
|
|
64
|
+
...event.accountLabel ? { preview: `Connected as \`${event.accountLabel}\`` } : void 0,
|
|
65
|
+
details: [{
|
|
66
|
+
title: `${provider} connected`,
|
|
67
|
+
...event.accountLabel ? { description: `Connected as \`${event.accountLabel}\`` } : void 0,
|
|
68
|
+
metadata: [event.provider]
|
|
69
|
+
}]
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
/** Junior-owned account-unlink transcript event. */
|
|
74
|
+
const authenticationUnlinkedEvent = defineConversationEvent({
|
|
75
|
+
name: "authentication_unlinked",
|
|
76
|
+
version: 1,
|
|
77
|
+
schema: authenticationEventContentSchema,
|
|
78
|
+
renderEvent(event) {
|
|
79
|
+
const provider = providerTitle(event);
|
|
80
|
+
return {
|
|
81
|
+
icon: "key",
|
|
82
|
+
title: `${provider} disconnected`,
|
|
83
|
+
details: [{
|
|
84
|
+
title: `${provider} disconnected`,
|
|
85
|
+
metadata: [event.provider]
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
/** Junior-owned AGENTS.md bootstrap transition for the dashboard timeline. */
|
|
91
|
+
const agentsInstructionsUpdatedEvent = defineConversationEvent({
|
|
92
|
+
name: "agents_instructions_updated",
|
|
93
|
+
version: 1,
|
|
94
|
+
schema: agentsInstructionsUpdatedContentSchema,
|
|
95
|
+
renderEvent(event) {
|
|
96
|
+
const title = agentsInstructionsTitle(event.action);
|
|
97
|
+
const preview = agentsInstructionsPreview(event);
|
|
98
|
+
return {
|
|
99
|
+
icon: "brain",
|
|
100
|
+
title,
|
|
101
|
+
...preview ? { preview } : void 0,
|
|
102
|
+
...event.sources.length > 0 ? { details: event.sources.map((source) => ({
|
|
103
|
+
title: sourceFilename(source.path),
|
|
104
|
+
content: source.content
|
|
105
|
+
})) } : void 0
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
/** Core-written Conversation note. `notes.ts` owns when the model sees it. */
|
|
110
|
+
const conversationNoteEvent = defineConversationEvent({
|
|
111
|
+
name: "conversation_note",
|
|
112
|
+
version: 1,
|
|
113
|
+
schema: z.object({ text: z.string().trim().min(1).max(500) }).strict(),
|
|
114
|
+
renderEvent(event) {
|
|
115
|
+
return {
|
|
116
|
+
icon: "info",
|
|
117
|
+
title: "Note for the next Turn",
|
|
118
|
+
preview: event.text
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
const NATIVE_EVENT_DEFINITIONS = [
|
|
123
|
+
authenticationLinkedEvent,
|
|
124
|
+
authenticationUnlinkedEvent,
|
|
125
|
+
agentsInstructionsUpdatedEvent,
|
|
126
|
+
conversationNoteEvent
|
|
127
|
+
];
|
|
128
|
+
/** Resolve a registered Junior-native conversation event definition. */
|
|
129
|
+
function getJuniorNativeEventDefinition(args) {
|
|
130
|
+
return NATIVE_EVENT_DEFINITIONS.find((definition) => definition.eventName === args.name && definition.version === args.version);
|
|
131
|
+
}
|
|
132
|
+
/** Render one Junior-native event through its active definition. */
|
|
133
|
+
function renderJuniorNativeConversationEvent(args) {
|
|
134
|
+
if (args.namespace !== "junior") return void 0;
|
|
135
|
+
const definition = getJuniorNativeEventDefinition(args);
|
|
136
|
+
if (!definition) return void 0;
|
|
137
|
+
const presentation = definition.renderEvent(definition.parse(args.content));
|
|
138
|
+
return presentation === void 0 ? void 0 : conversationEventPresentationSchema.parse(presentation);
|
|
139
|
+
}
|
|
140
|
+
// src/chat/core-model.ts
|
|
141
|
+
function gatewayParams(params) {
|
|
142
|
+
const { cost: _cost, operation, ...rest } = params;
|
|
143
|
+
return {
|
|
144
|
+
...rest,
|
|
145
|
+
promptName: `junior.${operation}`
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
async function recordCost(attribution, costUsd) {
|
|
149
|
+
const { cost, operation } = attribution;
|
|
150
|
+
if (costUsd === void 0 || !("conversationId" in cost)) return;
|
|
151
|
+
await runBestEffort(async () => {
|
|
152
|
+
await getConversationEventStore().append(cost.conversationId, [{
|
|
153
|
+
createdAtMs: Date.now(),
|
|
154
|
+
data: {
|
|
155
|
+
type: "structured_event",
|
|
156
|
+
namespace: JUNIOR_NATIVE_EVENT_NAMESPACE,
|
|
157
|
+
name: operation,
|
|
158
|
+
version: 1,
|
|
159
|
+
...cost.turnId ? { turnId: cost.turnId } : void 0,
|
|
160
|
+
content: { costUsd }
|
|
161
|
+
}
|
|
162
|
+
}], { activity: "preserve" });
|
|
163
|
+
}, "model_cost.record.failed", { "gen_ai.prompt.name": `junior.${operation}` });
|
|
164
|
+
}
|
|
165
|
+
/** Run a text completion and attribute its cost. */
|
|
166
|
+
async function completeText(params) {
|
|
167
|
+
const result = await completeText$1(gatewayParams(params));
|
|
168
|
+
await recordCost(params, agentTurnCostUsd(extractGenAiUsageSummary(result.message)));
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
/** Run a schema-constrained completion and attribute its cost. */
|
|
172
|
+
async function completeObject(params) {
|
|
173
|
+
const result = await completeObject$1(gatewayParams(params));
|
|
174
|
+
await recordCost(params, result.costUsd);
|
|
175
|
+
return result;
|
|
176
|
+
}
|
|
177
|
+
/** Answer decision questions and attribute the cost. */
|
|
178
|
+
async function completeDecision(params) {
|
|
179
|
+
const result = await completeDecision$1(gatewayParams(params));
|
|
180
|
+
await recordCost(params, result.costUsd);
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
3
183
|
// src/chat/briefs/generate.ts
|
|
4
184
|
const MAX_INPUT_CHARS = 6e4;
|
|
5
185
|
const MAX_MESSAGE_TEXT_CHARS = 4e3;
|
|
@@ -519,11 +699,11 @@ Rules:
|
|
|
519
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.
|
|
520
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.
|
|
521
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.
|
|
522
|
-
- Ignore Junior runtime mechanics
|
|
702
|
+
- Ignore Junior runtime mechanics and context tags.
|
|
523
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.
|
|
524
704
|
- Choose the outcome status that best describes where the Conversation ended.
|
|
525
705
|
- Follow the supplied size class caps. Keep the first items that matter most.
|
|
526
706
|
- Cite a URL only when its exact full string occurs in an entry, evidence, or the previous Brief. Return cited URLs in \`urls\`. Core adds code changes and resources separately.
|
|
527
707
|
- Keep the summary under 600 characters, intent under 400 characters, outcome text under 600 characters, and each other string under 400 characters.
|
|
528
708
|
`;
|
|
529
|
-
export { EVENT_SYSTEM_ACTOR as a, EVENT_MESSAGE_AUTHOR as i, briefEntriesFromReportEvents as n, isEventConversationMessage as o, EVENT_AUTHOR_ID as r, generateBrief as s, BRIEF_PROMPT as t };
|
|
709
|
+
export { EVENT_SYSTEM_ACTOR as a, completeDecision as c, JUNIOR_NATIVE_EVENT_NAMESPACE as d, agentsInstructionsUpdatedEvent as f, renderJuniorNativeConversationEvent as g, conversationNoteEvent as h, EVENT_MESSAGE_AUTHOR as i, completeObject as l, authenticationUnlinkedEvent as m, briefEntriesFromReportEvents as n, isEventConversationMessage as o, authenticationLinkedEvent as p, EVENT_AUTHOR_ID as r, generateBrief as s, BRIEF_PROMPT as t, completeText as u };
|
|
@@ -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-f24cZPEj.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-D-9aVaHj.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-f24cZPEj.js";
|
|
3
|
+
import { r as getStateAdapter } from "./adapter-CHMVy-j0.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-D-9aVaHj.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID } from "./db-DBHig2sI.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CwA-kSjW.js";
|
|
5
|
+
import { sn as listUnreportedSiblingAgents } from "./agent-runner-CZjf6MOQ.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-hhpek6Fn.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-1cku9Vm3.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-CK869JpC.js";
|
|
9
|
+
import { a as enqueueAgentInvocation, l as createAgentInvocationFromLatest, o as resolveAgentInvocationId, t as createAgentInvocationWorker } from "./work-Ch3EWO6u.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 { L as messageCardText } from "./conversation-
|
|
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-D-9aVaHj.js";
|
|
2
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-f24cZPEj.js";
|
|
3
|
+
import { T as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-DBHig2sI.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CwA-kSjW.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-hhpek6Fn.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-BtIV0hq6.js";
|
|
8
|
+
import { _t as persistThreadStateById, ht as getPersistedThreadState, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, t as processPluginTask, vt as coerceThreadConversationState } from "./task-runner-XmXL9E-k.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-D-9aVaHj.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 { D as conversationChildAgentTotalsSchema, S as conversationUsageSchema,
|
|
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();
|
|
@@ -641,10 +646,6 @@ const serviceAccountListSchema = z.object({ serviceAccounts: z.array(serviceAcco
|
|
|
641
646
|
const serviceAccountParamsSchema = z.object({ provider: z.string().regex(/^[a-z][a-z0-9-]*$/).max(64) }).strict();
|
|
642
647
|
const startServiceAccountSignInResponseSchema = z.object({ authorizationUrl: z.string().url() }).strict();
|
|
643
648
|
const disconnectServiceAccountResponseSchema = z.object({ disconnected: z.literal(true) }).strict();
|
|
644
|
-
/** One dictation recording. The model reads the audio format from the bytes. */
|
|
645
|
-
const transcriptionRequestSchema = z.object({ audio: base64DataSchema(3145728) }).strict();
|
|
646
|
-
/** Text transcribed from one dictation recording. */
|
|
647
|
-
const transcriptionSchema = z.object({ text: z.string() }).strict();
|
|
648
649
|
// src/api/schema/review-item.ts
|
|
649
650
|
const answerSchema = z.object({
|
|
650
651
|
other: z.string().max(4e3).optional(),
|
|
@@ -826,11 +827,15 @@ const versionsSchema = z.object({
|
|
|
826
827
|
* not exist.
|
|
827
828
|
*/
|
|
828
829
|
conversation: z.string().min(1).optional(),
|
|
829
|
-
/**
|
|
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
|
+
*/
|
|
830
835
|
conversations: z.string().min(1),
|
|
831
836
|
/** Open Review items that need the viewer. */
|
|
832
837
|
reviewItems: z.string().min(1),
|
|
833
838
|
/** The viewer's rolling model spend. */
|
|
834
839
|
spend: z.string().min(1)
|
|
835
840
|
}).strict();
|
|
836
|
-
export {
|
|
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 };
|
|
@@ -2050,6 +2050,7 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2050
2050
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
2051
2051
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
2052
2052
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2053
|
+
deliveryPaused: z.ZodOptional<z.ZodBoolean>;
|
|
2053
2054
|
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
2054
2055
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
2055
2056
|
lastReadSeq: z.ZodNumber;
|
|
@@ -3161,6 +3162,7 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
3161
3162
|
autoArchive: z.ZodOptional<z.ZodBoolean>;
|
|
3162
3163
|
canFork: z.ZodOptional<z.ZodBoolean>;
|
|
3163
3164
|
canContinueInSlack: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3165
|
+
deliveryPaused: z.ZodOptional<z.ZodBoolean>;
|
|
3164
3166
|
subscribed: z.ZodOptional<z.ZodBoolean>;
|
|
3165
3167
|
readPosition: z.ZodOptional<z.ZodObject<{
|
|
3166
3168
|
lastReadSeq: z.ZodNumber;
|
|
@@ -4308,6 +4310,16 @@ declare const reorderPinnedConversationsResponseSchema: z.ZodObject<{
|
|
|
4308
4310
|
}, z.core.$strict>;
|
|
4309
4311
|
type ReorderPinnedConversationsBody = z.infer<typeof reorderPinnedConversationsBodySchema>;
|
|
4310
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>;
|
|
4311
4323
|
/** Subscribe to or unsubscribe from one Conversation for the viewer. */
|
|
4312
4324
|
declare const conversationSubscriptionBodySchema: z.ZodObject<{
|
|
4313
4325
|
subscribed: z.ZodBoolean;
|
|
@@ -5589,10 +5601,6 @@ declare const revokePersonalTokenResponseSchema: z.ZodObject<{
|
|
|
5589
5601
|
revoked: z.ZodLiteral<true>;
|
|
5590
5602
|
}, z.core.$strict>;
|
|
5591
5603
|
type PersonalTokenMetadata = z.infer<typeof personalTokenMetadataSchema>;
|
|
5592
|
-
/** Text transcribed from one dictation recording. */
|
|
5593
|
-
declare const transcriptionSchema: z.ZodObject<{
|
|
5594
|
-
text: z.ZodString;
|
|
5595
|
-
}, z.core.$strict>;
|
|
5596
5604
|
/** Longest customization text one user can save. */
|
|
5597
5605
|
declare const USER_CUSTOMIZATION_MAX_CHARS = 1000;
|
|
5598
5606
|
/** Request and response body for the viewer's customization. */
|
|
@@ -7564,4 +7572,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
7564
7572
|
spend: z.ZodString;
|
|
7565
7573
|
}, z.core.$strict>;
|
|
7566
7574
|
type Versions = z.output<typeof versionsSchema>;
|
|
7567
|
-
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-f24cZPEj.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-CwA-kSjW.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-CHMVy-j0.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-BSOlVfXi.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-CHMVy-j0.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-B6OJtplS.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|