@sentry/junior 0.303.0 → 0.305.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-context-BdVnSuY5.js → adapter-context-BpvbUki8.js} +2 -2
- package/dist/{admin-AfeAdS3J.js → admin-CoDt35ny.js} +5 -5
- package/dist/{agent-runner-BP8_DLUv.js → agent-runner-C5d6rY5g.js} +600 -389
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +59 -61
- package/dist/{app-Dd9v1mNx.d.ts → app-Cs157Zc5.d.ts} +5 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +86 -82
- package/dist/{automation-D9MvhOWY.js → automation-CuA3yEcD.js} +1 -1
- package/dist/{background-compaction-queue-xaE05jxH.js → background-compaction-queue-BTqMIfTA.js} +7 -3
- package/dist/{briefs-D8i-dKTp.js → briefs-BRdznF7c.js} +11 -8
- package/dist/{catalog-runtime-d1EM6Z0V.js → catalog-runtime-J52Tej47.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +5 -5
- package/dist/cli/init.js +1 -1
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +4 -4
- package/dist/{config-oGM7KA9M.js → config-CBZp0udd.js} +101 -7
- package/dist/{connections-BlikzEJv.js → connections-BYmuJ6Vm.js} +6 -6
- package/dist/{continue-in-slack-BZnYifiG.js → continue-in-slack-Cvot6S38.js} +8 -8
- package/dist/{conversation-CY1jnBiC.js → conversation-BOqdRtUx.js} +4 -12
- package/dist/{conversation-feed-BZJRk6UV.js → conversation-feed-CgpgP7yi.js} +35 -2
- package/dist/{conversation-privacy-Cx515ddM.js → conversation-privacy-D2pOzBNl.js} +10 -2
- package/dist/{conversation-turn-DAhRdX4m.js → conversation-turn-CI8WDpnK.js} +17 -17
- package/dist/{credential-sync-DfhmWFeo.js → credential-sync-COqnZ1Dx.js} +14 -14
- package/dist/{db-C-2tFxk3.js → db-DU84dCVu.js} +169 -6
- package/dist/{db-DPqcEM9_.d.ts → db-zbN5ZV_o.d.ts} +2 -2
- package/dist/{executor-NVfS8aQ2.js → executor-CFyrgOu1.js} +43 -9
- package/dist/{history-UZ3M2M9r.js → history-m2-ceTTX.js} +8 -2
- package/dist/{install-CHLrpRZc.js → install-CQ76CfRw.js} +2 -2
- package/dist/instrumentation.js +7 -3
- package/dist/{lineage-HGLhd_-N.js → lineage-DLd2UxVP.js} +2 -2
- package/dist/{logging-DiyqRLBx.js → logging-BPNTQVFu.js} +1 -1
- package/dist/{message-CkCOcbFH.js → message-BWJLeQ5e.js} +8 -8
- package/dist/{model-input-DmoPPtPE.js → model-input-DoM9Ht-d.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +5 -5
- package/dist/{oauth-callback-server-CIf_6YmA.js → oauth-callback-server-DeHbnAQl.js} +2 -2
- package/dist/{projection-DBq8tsA5.js → projection-CcFBVFUo.js} +552 -63
- package/dist/{prompt-D2KlJopL.js → prompt-C5LREK2p.js} +185 -12
- package/dist/{queue-DFaOscp5.js → queue-B2AAL3ym.js} +4 -4
- package/dist/{registry-Bu0Z9BEO.js → registry-BjZZqKqi.js} +1 -1
- package/dist/{resolve-DXuA3G0g.js → resolve-CeJgXuH1.js} +3 -3
- package/dist/{result-DpiNseDA.js → result-icDrueyB.js} +8 -8
- package/dist/{runner-iu1heRFv.js → runner-nVfMkMMB.js} +9 -9
- package/dist/{sandbox-egress-signals-2HFYDcQf.js → sandbox-egress-signals-H9vQ5qRf.js} +1 -1
- package/dist/{schema-DvfX3Gq_.js → schema-Bx0Mlo32.js} +3 -3
- package/dist/{schema-DHMOaRzC.d.ts → schema-CKcu-IK6.d.ts} +43 -11
- package/dist/{service-account-BcT5LR7V.js → service-account-DU5865XA.js} +6 -5
- package/dist/{service-account-xYkaQTrw.js → service-account-Dw06p3zm.js} +5 -5
- package/dist/{session-stop-BLLp1IP_.js → session-stop-uotLtp4g.js} +181 -59
- package/dist/{skills-CNAGH4ju.js → skills-Bex1EaO5.js} +2 -2
- package/dist/{slack-conversation-unfurl-DYnqe5ci.js → slack-conversation-unfurl-EPG3riWF.js} +12 -11
- package/dist/{spawn-cGasWW33.js → spawn-CoD3vDuS.js} +6 -6
- package/dist/{state-CDS6h_Wv.js → state-nCR4Muhn.js} +4 -4
- package/dist/{stop-DMMA67yT.js → stop-BFVd0P0m.js} +170 -65
- package/dist/{store-Dgs7Oe44.js → store-Ca6G962n.js} +5 -5
- package/dist/{task-queue-DcF0nhhz.js → task-queue-BLPZU6kC.js} +3 -3
- package/dist/{task-runner-BGXF7Fo7.js → task-runner-xsOPIxCZ.js} +7 -7
- package/dist/{thread-context-BPky1KBe.js → thread-context-BOvZhsKK.js} +8 -8
- package/dist/{turn-session-routing-DGvn9MSl.js → turn-session-routing-2bW2qfeb.js} +8 -8
- package/dist/{turn-user-message-19CkuUvM.js → turn-user-message-BrhuyYrH.js} +3 -3
- package/dist/{validation-lu1DgjNQ.js → validation-BnY9K5WB.js} +1 -1
- package/dist/{version-Uo3c94Dx.js → version-qROlRQGF.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BPQHMx3-.js → viewer-CxUiOraX.js} +3 -3
- package/dist/{warmup-H8uLvW9e.js → warmup--Gkz7iB-.js} +79 -476
- package/dist/{worker-B-pM_-3K.js → worker-DJ8d9fmD.js} +7 -7
- package/migrations/0111_attachment_kinds.sql +14 -0
- package/migrations/0112_attachment_url_fill.sql +51 -0
- package/migrations/0113_attachment_url_index.sql +1 -0
- package/migrations/meta/0099_snapshot.json +102 -326
- package/migrations/meta/0111_snapshot.json +5011 -0
- package/migrations/meta/0112_snapshot.json +5011 -0
- package/migrations/meta/0113_snapshot.json +5033 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +7 -7
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { C as completeObject$1, S as completeDecision$1, T as embedTexts$1, w as completeText$1 } from "./config-
|
|
2
|
-
import { _ as runBestEffort, a as extractGenAiUsageSummary } from "./logging-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, G as createProviderError, Q as resolveGatewayCredential, S as completeDecision$1, T as embedTexts$1, U as ProviderError, X as isProviderRetryError, b as GEN_AI_PROVIDER_NAME, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-CBZp0udd.js";
|
|
2
|
+
import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-BPNTQVFu.js";
|
|
3
|
+
import { r as getConversationEventStore, st as agentTurnCostUsd } from "./db-DU84dCVu.js";
|
|
4
|
+
import { $ as conversationBriefSchema, Z as briefOutcomeStatusSchema, et as parseBriefInput } from "./conversation-BOqdRtUx.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
7
|
+
import { transcribe } from "ai";
|
|
6
8
|
import { conversationEventPresentationSchema, defineConversationEvent } from "@sentry/junior-plugin-api";
|
|
7
9
|
// src/chat/conversations/structured-events.ts
|
|
8
10
|
/** Reserved namespace for Junior-owned conversation metadata events. */
|
|
@@ -137,6 +139,151 @@ function renderJuniorNativeConversationEvent(args) {
|
|
|
137
139
|
const presentation = definition.renderEvent(definition.parse(args.content));
|
|
138
140
|
return presentation === void 0 ? void 0 : conversationEventPresentationSchema.parse(presentation);
|
|
139
141
|
}
|
|
142
|
+
// src/chat/pi/transcription.ts
|
|
143
|
+
const GEN_AI_OPERATION_TRANSCRIPTION = "transcription";
|
|
144
|
+
const NO_AUDIO_PATTERN = /\(invalid_audio\)\s*$/;
|
|
145
|
+
const SENTENCE_END_PATTERN = /[.?!]["')\]]*$/;
|
|
146
|
+
/** The file has no audio that the model can transcribe. */
|
|
147
|
+
var NoAudioError = class extends Error {
|
|
148
|
+
name = "NoAudioError";
|
|
149
|
+
};
|
|
150
|
+
const diarizedWordsSchema = z.object({ elevenlabs: z.object({ words: z.array(z.object({
|
|
151
|
+
speaker_id: z.string().nullish(),
|
|
152
|
+
start: z.number(),
|
|
153
|
+
text: z.string(),
|
|
154
|
+
type: z.string()
|
|
155
|
+
})) }) });
|
|
156
|
+
/**
|
|
157
|
+
* Group diarized words into entries. A speech entry ends when the speaker
|
|
158
|
+
* changes or a sentence ends. Each audio event is its own sound entry.
|
|
159
|
+
* Spaces join words and never start an entry.
|
|
160
|
+
*/
|
|
161
|
+
function transcriptEntries(words) {
|
|
162
|
+
const entries = [];
|
|
163
|
+
let current;
|
|
164
|
+
for (const word of words) {
|
|
165
|
+
if (word.type === "spacing") {
|
|
166
|
+
if (current) current.text += word.text;
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
169
|
+
if (word.type === "audio_event") {
|
|
170
|
+
entries.push({
|
|
171
|
+
kind: "sound",
|
|
172
|
+
startSeconds: word.start,
|
|
173
|
+
text: word.text.replace(/^[[(]+|[\])]+$/g, "")
|
|
174
|
+
});
|
|
175
|
+
current = void 0;
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
const speaker = word.speaker_id ?? void 0;
|
|
179
|
+
if (!current || current.speaker !== speaker) {
|
|
180
|
+
current = {
|
|
181
|
+
kind: "speech",
|
|
182
|
+
startSeconds: word.start,
|
|
183
|
+
text: "",
|
|
184
|
+
...speaker ? { speaker } : void 0
|
|
185
|
+
};
|
|
186
|
+
entries.push(current);
|
|
187
|
+
}
|
|
188
|
+
current.text += word.text;
|
|
189
|
+
if (SENTENCE_END_PATTERN.test(word.text)) current = void 0;
|
|
190
|
+
}
|
|
191
|
+
return entries.map((entry) => ({
|
|
192
|
+
...entry,
|
|
193
|
+
text: entry.text.trim()
|
|
194
|
+
})).filter((entry) => entry.text.length > 0);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Keep the classification of a failed call, but not the SDK error. That
|
|
198
|
+
* error keeps the request body, and the body holds the signed URL.
|
|
199
|
+
*/
|
|
200
|
+
function withoutSourceUrl(error, sourceUrl, modelId) {
|
|
201
|
+
const failure = error instanceof Error ? error : void 0;
|
|
202
|
+
const message = (failure?.message ?? String(error)).replaceAll(sourceUrl, "<signed URL>");
|
|
203
|
+
const classified = createProviderError(Object.assign(new Error(message, { cause: failure?.cause }), {
|
|
204
|
+
code: failure && "code" in failure ? failure.code : void 0,
|
|
205
|
+
statusCode: failure && "statusCode" in failure ? failure.statusCode : void 0
|
|
206
|
+
}), { modelId });
|
|
207
|
+
return new ProviderError({
|
|
208
|
+
cause: new Error(message),
|
|
209
|
+
kind: classified.kind,
|
|
210
|
+
modelId,
|
|
211
|
+
retryable: classified.retryable,
|
|
212
|
+
retryAfterMs: classified.retryAfterMs,
|
|
213
|
+
status: classified.status
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Transcribe speech in a file that the provider downloads from `sourceUrl`.
|
|
218
|
+
*
|
|
219
|
+
* The URL goes to the provider as `sourceUrl` with empty audio, so the file
|
|
220
|
+
* never passes through this process. The URL is a bearer credential: it is
|
|
221
|
+
* not put on spans, logs, or errors.
|
|
222
|
+
*/
|
|
223
|
+
async function transcribeFromUrl$1(params) {
|
|
224
|
+
const credential = await resolveGatewayCredential();
|
|
225
|
+
const provider = createGatewayProvider({ apiKey: credential.token });
|
|
226
|
+
try {
|
|
227
|
+
return await withSpan(`${GEN_AI_OPERATION_TRANSCRIPTION} ${params.modelId}`, "gen_ai.transcription", {
|
|
228
|
+
modelId: params.modelId,
|
|
229
|
+
...params.conversationId ? { conversationId: params.conversationId } : void 0
|
|
230
|
+
}, async (setSpanAttributes) => {
|
|
231
|
+
const result = await transcribe({
|
|
232
|
+
model: provider.transcriptionModel(params.modelId),
|
|
233
|
+
audio: /* @__PURE__ */ new Uint8Array(),
|
|
234
|
+
providerOptions: { elevenlabs: {
|
|
235
|
+
diarize: true,
|
|
236
|
+
sourceUrl: params.sourceUrl,
|
|
237
|
+
tagAudioEvents: true
|
|
238
|
+
} },
|
|
239
|
+
...params.signal ? { abortSignal: params.signal } : void 0
|
|
240
|
+
}).catch((error) => {
|
|
241
|
+
if (error instanceof Error && NO_AUDIO_PATTERN.test(error.message)) {
|
|
242
|
+
setSpanAttributes({ "error.type": "invalid_audio" });
|
|
243
|
+
throw new NoAudioError("The file has no audio to transcribe.");
|
|
244
|
+
}
|
|
245
|
+
throw error;
|
|
246
|
+
});
|
|
247
|
+
const costUsd = gatewayCostUsd(result.providerMetadata);
|
|
248
|
+
const generationId = result.providerMetadata["gateway"]?.["generationId"];
|
|
249
|
+
const words = diarizedWordsSchema.safeParse(result.providerMetadata);
|
|
250
|
+
const entries = words.success ? transcriptEntries(words.data.elevenlabs.words) : result.segments.map((segment) => ({
|
|
251
|
+
kind: "speech",
|
|
252
|
+
startSeconds: segment.startSecond,
|
|
253
|
+
text: segment.text
|
|
254
|
+
}));
|
|
255
|
+
setSpanAttributes({
|
|
256
|
+
...typeof generationId === "string" ? { "gen_ai.response.id": generationId } : void 0,
|
|
257
|
+
...result.durationInSeconds !== void 0 ? { "app.transcription.audio_seconds": result.durationInSeconds } : void 0,
|
|
258
|
+
"app.transcription.entry_count": entries.length,
|
|
259
|
+
...extractGenAiUsageAttributes(costUsd !== void 0 ? { cost: { total: costUsd } } : void 0)
|
|
260
|
+
});
|
|
261
|
+
return {
|
|
262
|
+
...costUsd !== void 0 ? { costUsd } : void 0,
|
|
263
|
+
...result.durationInSeconds !== void 0 ? { durationSeconds: result.durationInSeconds } : void 0,
|
|
264
|
+
entries,
|
|
265
|
+
...result.language ? { language: result.language } : void 0
|
|
266
|
+
};
|
|
267
|
+
}, {
|
|
268
|
+
"gen_ai.provider.name": GEN_AI_PROVIDER_NAME,
|
|
269
|
+
"gen_ai.operation.name": GEN_AI_OPERATION_TRANSCRIPTION,
|
|
270
|
+
"gen_ai.request.model": params.modelId,
|
|
271
|
+
"server.address": GEN_AI_SERVER_ADDRESS,
|
|
272
|
+
"server.port": 443,
|
|
273
|
+
"gen_ai.provider.auth_mode": credential.mode
|
|
274
|
+
});
|
|
275
|
+
} catch (error) {
|
|
276
|
+
if (error instanceof NoAudioError) throw error;
|
|
277
|
+
const providerError = withoutSourceUrl(error, params.sourceUrl, params.modelId);
|
|
278
|
+
if (isProviderRetryError(providerError)) throw providerError;
|
|
279
|
+
logException(providerError, "ai.transcription.failed", {
|
|
280
|
+
"gen_ai.provider.name": GEN_AI_PROVIDER_NAME,
|
|
281
|
+
"gen_ai.operation.name": GEN_AI_OPERATION_TRANSCRIPTION,
|
|
282
|
+
"gen_ai.request.model": params.modelId
|
|
283
|
+
});
|
|
284
|
+
throw providerError;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
140
287
|
// src/chat/core-model.ts
|
|
141
288
|
function gatewayParams(params) {
|
|
142
289
|
const { cost: _cost, operation, ...rest } = params;
|
|
@@ -190,6 +337,29 @@ async function embedTexts(params) {
|
|
|
190
337
|
await recordCost(params, result.costUsd);
|
|
191
338
|
return result;
|
|
192
339
|
}
|
|
340
|
+
/** Run one web search and attribute its cost. */
|
|
341
|
+
async function searchWeb(params) {
|
|
342
|
+
const result = await searchWeb$1(gatewayParams(params));
|
|
343
|
+
await recordCost(params, result.costUsd);
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
/** Generate or edit images and attribute the cost. */
|
|
347
|
+
async function generateImages(params) {
|
|
348
|
+
const { cost: _cost, operation: _operation, ...rest } = params;
|
|
349
|
+
const result = await generateImages$1(rest);
|
|
350
|
+
await recordCost(params, result.costUsd);
|
|
351
|
+
return result;
|
|
352
|
+
}
|
|
353
|
+
/** Transcribe speech in a file at a signed URL and attribute the cost. */
|
|
354
|
+
async function transcribeFromUrl(params) {
|
|
355
|
+
const { cost, operation: _operation, ...rest } = params;
|
|
356
|
+
const result = await transcribeFromUrl$1({
|
|
357
|
+
...rest,
|
|
358
|
+
..."conversationId" in cost ? { conversationId: cost.conversationId } : void 0
|
|
359
|
+
});
|
|
360
|
+
await recordCost(params, result.costUsd);
|
|
361
|
+
return result;
|
|
362
|
+
}
|
|
193
363
|
// src/chat/briefs/generate.ts
|
|
194
364
|
const MAX_INPUT_CHARS = 6e4;
|
|
195
365
|
const MAX_MESSAGE_TEXT_CHARS = 4e3;
|
|
@@ -260,12 +430,14 @@ const RUNTIME_MARKER_PATTERN = /\[\[NO_REPLY\]\]|<\/?(?:active-asks|analysis-err
|
|
|
260
430
|
function hasRuntimeMarker(value) {
|
|
261
431
|
return RUNTIME_MARKER_PATTERN.test(value);
|
|
262
432
|
}
|
|
433
|
+
const ASSISTANT_ATTRIBUTION = "assistant";
|
|
263
434
|
function normalizeModelBrief(args) {
|
|
264
435
|
let coercedDecisionKinds = 0;
|
|
265
436
|
let droppedAttributionCount = 0;
|
|
266
437
|
let droppedRuntimeMarkerCount = 0;
|
|
267
438
|
const participantNames = new Map(args.record.participants.map((participant) => [participant.name.toLowerCase(), participant.name]));
|
|
268
|
-
participantNames.set(
|
|
439
|
+
participantNames.set(args.assistantName.toLowerCase(), args.assistantName);
|
|
440
|
+
participantNames.set(ASSISTANT_ATTRIBUTION, args.assistantName);
|
|
269
441
|
const attribution = (value) => {
|
|
270
442
|
if (!value?.trim()) return void 0;
|
|
271
443
|
const matched = participantNames.get(value.trim().toLowerCase());
|
|
@@ -279,10 +451,10 @@ function normalizeModelBrief(args) {
|
|
|
279
451
|
}
|
|
280
452
|
let by = attribution(decision.by);
|
|
281
453
|
let kind = decision.kind;
|
|
282
|
-
if (by ===
|
|
454
|
+
if (by === args.assistantName && kind !== "assumed") {
|
|
283
455
|
kind = "assumed";
|
|
284
456
|
coercedDecisionKinds += 1;
|
|
285
|
-
} else if (by && by !==
|
|
457
|
+
} else if (by && by !== args.assistantName && kind === "assumed") {
|
|
286
458
|
by = void 0;
|
|
287
459
|
coercedDecisionKinds += 1;
|
|
288
460
|
}
|
|
@@ -552,6 +724,7 @@ async function generateBrief(args) {
|
|
|
552
724
|
previous: args.previous
|
|
553
725
|
});
|
|
554
726
|
const normalized = normalizeModelBrief({
|
|
727
|
+
assistantName: args.assistantName,
|
|
555
728
|
caps,
|
|
556
729
|
links,
|
|
557
730
|
model,
|
|
@@ -697,7 +870,7 @@ function briefEntriesFromReportEvents(events) {
|
|
|
697
870
|
return entries;
|
|
698
871
|
}
|
|
699
872
|
// src/chat/briefs/prompt.ts
|
|
700
|
-
const BRIEF_PROMPT = `You write one durable Brief for a
|
|
873
|
+
const BRIEF_PROMPT = `You write one durable Brief for a Conversation. The assistant wrote the entries with role \`assistant\`.
|
|
701
874
|
|
|
702
875
|
Use only facts supported by the supplied entries, evidence, or previous Brief. Do not invent names, ids, numbers, outcomes, choices, or links.
|
|
703
876
|
|
|
@@ -705,14 +878,14 @@ Rules:
|
|
|
705
878
|
- Summarize the intent and current outcome in plain prose.
|
|
706
879
|
- Keep earlier decisions unless later entries reverse them. State a reversal as a new decision.
|
|
707
880
|
- A decision is a choice made by a listed participant in this Conversation. It is not a research finding, tool result, action, observation, or suggestion. Put findings in facts or the summary.
|
|
708
|
-
- Set each decision's \`kind\` to \`stated\` when a human participant stated the choice themselves, \`confirmed\` when
|
|
709
|
-
- Set a decision's \`by\` to the participant who made it, or
|
|
881
|
+
- Set each decision's \`kind\` to \`stated\` when a human participant stated the choice themselves, \`confirmed\` when the assistant proposed it and a human participant explicitly accepted it, or \`assumed\` when the assistant chose while working and no participant confirmed or objected.
|
|
882
|
+
- Set a decision's \`by\` to the participant who made it, or to \`assistant\` for the assistant. Use only names in the supplied record. Set \`by\` to \`null\` when no supported attribution exists.
|
|
710
883
|
- 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.
|
|
711
|
-
- Ignore
|
|
884
|
+
- Ignore the assistant's runtime mechanics and context tags.
|
|
712
885
|
- 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.
|
|
713
886
|
- Choose the outcome status that best describes where the Conversation ended.
|
|
714
887
|
- Follow the supplied size class caps. Keep the first items that matter most.
|
|
715
888
|
- 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.
|
|
716
889
|
- Keep the summary under 600 characters, intent under 400 characters, outcome text under 600 characters, and each other string under 400 characters.
|
|
717
890
|
`;
|
|
718
|
-
export {
|
|
891
|
+
export { agentsInstructionsUpdatedEvent as _, EVENT_SYSTEM_ACTOR as a, conversationNoteEvent as b, completeDecision as c, embedTexts as d, generateImages as f, JUNIOR_NATIVE_EVENT_NAMESPACE as g, NoAudioError as h, EVENT_MESSAGE_AUTHOR as i, completeObject as l, transcribeFromUrl as m, briefEntriesFromReportEvents as n, isEventConversationMessage as o, searchWeb as p, EVENT_AUTHOR_ID as r, generateBrief as s, BRIEF_PROMPT as t, completeText as u, authenticationLinkedEvent as v, renderJuniorNativeConversationEvent as x, authenticationUnlinkedEvent as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
3
|
-
import { a as queueCallback, d as verifyQueueMessage, f as getQueueProvider, l as QUEUE_SIGNATURE_MAX_AGE_MS, u as signQueueMessage } from "./background-compaction-queue-
|
|
1
|
+
import { i as getChatConfig } from "./config-CBZp0udd.js";
|
|
2
|
+
import { h as logWarn } from "./logging-BPNTQVFu.js";
|
|
3
|
+
import { a as queueCallback, d as verifyQueueMessage, f as getQueueProvider, l as QUEUE_SIGNATURE_MAX_AGE_MS, u as signQueueMessage } from "./background-compaction-queue-BTqMIfTA.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
// src/chat/sandbox/snapshot/job-queue.ts
|
|
@@ -92,7 +92,7 @@ function cacheWarmupCallback() {
|
|
|
92
92
|
maxDeliveries: 1,
|
|
93
93
|
onRejected: logCacheWarmupRejected,
|
|
94
94
|
run: async (message) => {
|
|
95
|
-
const { runCacheWarmup } = await import("./warmup
|
|
95
|
+
const { runCacheWarmup } = await import("./warmup--Gkz7iB-.js").then((n) => n.s);
|
|
96
96
|
await runCacheWarmup(message);
|
|
97
97
|
},
|
|
98
98
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-x4AvVhMj.js";
|
|
2
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
2
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-BPNTQVFu.js";
|
|
3
3
|
import { o as isUserActor, s as parseActorUserId } from "./actor-D2iXzvlN.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-CQ76CfRw.js";
|
|
2
|
+
import { ea as create, fs as sleep, ia as getSandboxProvider, na as isStale } from "./projection-CcFBVFUo.js";
|
|
3
|
+
import { X as getStateAdapter } from "./db-DU84dCVu.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/snapshot/resolve.ts
|
|
6
6
|
const SNAPSHOT_CACHE_PREFIX = "junior:sandbox_snapshot_profile:v2";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as listActiveMailboxTurns, N as renderEventBatchInputs, P as timerWatchCredentialSubject, T as resolveMailboxTurnWork, j as eventBatchMessageMeta, k as EVENT_WAIT_MS, s as eventReviewItemInputs, t as getConversationStoppedAtMs, w as parseEventMessages, x as getEventBatchDelayMs } from "./session-stop-
|
|
4
|
-
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-
|
|
5
|
-
import { f as credentialContextForActor } from "./registry-
|
|
6
|
-
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-
|
|
7
|
-
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-
|
|
8
|
-
import { $t as
|
|
9
|
-
import {
|
|
2
|
+
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-DU84dCVu.js";
|
|
3
|
+
import { C as listActiveMailboxTurns, N as renderEventBatchInputs, P as timerWatchCredentialSubject, T as resolveMailboxTurnWork, j as eventBatchMessageMeta, k as EVENT_WAIT_MS, s as eventReviewItemInputs, t as getConversationStoppedAtMs, w as parseEventMessages, x as getEventBatchDelayMs } from "./session-stop-uotLtp4g.js";
|
|
4
|
+
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-C5LREK2p.js";
|
|
5
|
+
import { f as credentialContextForActor } from "./registry-BjZZqKqi.js";
|
|
6
|
+
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-BrhuyYrH.js";
|
|
7
|
+
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-Ca6G962n.js";
|
|
8
|
+
import { $t as childAgentInput, Bt as NON_TERMINAL_AGENT_INVOCATION_STATUSES, Gt as getLatestAgentInvocationForConversation, Kt as isTerminalAgentInvocation, Qt as sendsResultToParent, Vt as TERMINAL_AGENT_INVOCATION_STATUSES, Xt as markAgentInvocationParentMailboxAppended, Zt as reportReplacedWithoutOpenWork, an as logDroppedParentMessage, cn as createAgentInvocationWorker, dn as endAgentInvocationsOfStoppedWork, en as getChildAgentInputSender, fn as enqueueAgentInvocation, nn as routeChildInput, on as parentMessageText, pn as resolveAgentInvocationId, qt as listAgentInvocationsForConversation, sn as readParentMessage, tn as readChildConversationSender, un as endActiveAgentInvocations, xn as createAgentInvocationFromLatest, zt as listUnreportedSiblingAgents } from "./warmup--Gkz7iB-.js";
|
|
9
|
+
import { Kn as renderUntrustedTag } from "./projection-CcFBVFUo.js";
|
|
10
10
|
import { C as agentInvocationResultEventType, S as AGENT_REPLY_EVENT_TYPE, b as AGENT_MESSAGE_EVENT_TYPE, y as AGENT_INVOCATION_EVENT_NAMESPACE } from "./web-message-id-lNodcCOI.js";
|
|
11
11
|
import { actorSchema } from "@sentry/junior-plugin-api";
|
|
12
12
|
// src/chat/agent-invocations/result.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-
|
|
3
|
-
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, bn as persistWithRetry, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, un as getAssistantReplyText, v as hydrateConversationMessages } from "./projection-
|
|
4
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
5
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
6
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-
|
|
7
|
-
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-
|
|
8
|
-
import { f as credentialContextForActor } from "./registry-
|
|
9
|
-
import {
|
|
1
|
+
import { B as messageCardText } from "./conversation-BOqdRtUx.js";
|
|
2
|
+
import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-BOvZhsKK.js";
|
|
3
|
+
import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, bn as persistWithRetry, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, un as getAssistantReplyText, v as hydrateConversationMessages } from "./projection-CcFBVFUo.js";
|
|
4
|
+
import { S as setTags, T as withLogContext, p as logException } from "./logging-BPNTQVFu.js";
|
|
5
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-xsOPIxCZ.js";
|
|
6
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-2bW2qfeb.js";
|
|
7
|
+
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-BrhuyYrH.js";
|
|
8
|
+
import { f as credentialContextForActor } from "./registry-BjZZqKqi.js";
|
|
9
|
+
import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-DU84dCVu.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
12
12
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { qa as sandboxEgressSignalsResponseSchema } from "./projection-CcFBVFUo.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,9 +1,9 @@
|
|
|
1
1
|
import { M as sumUtcHoursIntoSixHours, O as fillUtcDays, d as userInputRequestSchema, i as AGENT_INVOCATION_STATUSES, k as fillUtcHours } from "./web-message-id-lNodcCOI.js";
|
|
2
|
-
import { D as
|
|
3
|
-
import "./conversation-feed-
|
|
2
|
+
import { D as conversationChildAgentTotalsSchema, E as idempotencyKeySchema, K as inputFileSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-BOqdRtUx.js";
|
|
3
|
+
import "./conversation-feed-CgpgP7yi.js";
|
|
4
4
|
import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
|
|
5
5
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
6
|
-
import "./automation-
|
|
6
|
+
import "./automation-CuA3yEcD.js";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { codeChangeStateSchema, eventMatchSchema, objectTypeSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
|
|
9
9
|
// src/api/schema/conversation-attachment-upload.ts
|
|
@@ -261,16 +261,6 @@ declare const conversationEventsQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
261
261
|
turn: z.ZodString;
|
|
262
262
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
263
263
|
}, z.core.$strict>]>;
|
|
264
|
-
declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
265
|
-
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
266
|
-
codeRepositoryId: z.ZodOptional<z.ZodString>;
|
|
267
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
268
|
-
q: z.ZodOptional<z.ZodString>;
|
|
269
|
-
status: z.ZodDefault<z.ZodEnum<{
|
|
270
|
-
active: "active";
|
|
271
|
-
archived: "archived";
|
|
272
|
-
}>>;
|
|
273
|
-
}, z.core.$strict>;
|
|
274
264
|
declare const createConversationMessageBodySchema: z.ZodObject<{
|
|
275
265
|
idempotencyKey: z.ZodString;
|
|
276
266
|
message: z.ZodString;
|
|
@@ -739,6 +729,9 @@ declare const conversationSummaryReportSchema: z.ZodObject<{
|
|
|
739
729
|
status: z.ZodOptional<z.ZodString>;
|
|
740
730
|
key: z.ZodString;
|
|
741
731
|
label: z.ZodString;
|
|
732
|
+
title: z.ZodOptional<z.ZodString>;
|
|
733
|
+
url: z.ZodOptional<z.ZodString>;
|
|
734
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
742
735
|
}, z.core.$strict>>>;
|
|
743
736
|
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
744
737
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
@@ -2141,6 +2134,9 @@ declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
2141
2134
|
status: z.ZodOptional<z.ZodString>;
|
|
2142
2135
|
key: z.ZodString;
|
|
2143
2136
|
label: z.ZodString;
|
|
2137
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2138
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2139
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
2144
2140
|
}, z.core.$strict>>>;
|
|
2145
2141
|
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
2146
2142
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
@@ -4067,6 +4063,9 @@ declare const conversationDetailWithMailboxReportSchema: z.ZodObject<{
|
|
|
4067
4063
|
status: z.ZodOptional<z.ZodString>;
|
|
4068
4064
|
key: z.ZodString;
|
|
4069
4065
|
label: z.ZodString;
|
|
4066
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4067
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4068
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
4070
4069
|
}, z.core.$strict>>>;
|
|
4071
4070
|
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
4072
4071
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
@@ -5028,9 +5027,36 @@ declare const conversationFeedBriefSchema: z.ZodObject<{
|
|
|
5028
5027
|
summary: z.ZodString;
|
|
5029
5028
|
}, z.core.$strict>;
|
|
5030
5029
|
type ConversationFeedBrief = z.infer<typeof conversationFeedBriefSchema>;
|
|
5030
|
+
/** Query of `GET /api/conversations`. */
|
|
5031
|
+
declare const conversationFeedQuerySchema: z.ZodObject<{
|
|
5032
|
+
actorEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
5033
|
+
codeRepositoryId: z.ZodOptional<z.ZodString>;
|
|
5034
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5035
|
+
include: z.ZodPipe<z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodEnum<{
|
|
5036
|
+
links: "links";
|
|
5037
|
+
media: "media";
|
|
5038
|
+
}>>>;
|
|
5039
|
+
q: z.ZodOptional<z.ZodString>;
|
|
5040
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
5041
|
+
active: "active";
|
|
5042
|
+
archived: "archived";
|
|
5043
|
+
}>>;
|
|
5044
|
+
}, z.core.$strict>;
|
|
5045
|
+
/**
|
|
5046
|
+
* One stored file of a Conversation that a feed row previews, newest first.
|
|
5047
|
+
* Read it through the Conversation's attachment route.
|
|
5048
|
+
*/
|
|
5049
|
+
declare const conversationFeedMediaSchema: z.ZodObject<{
|
|
5050
|
+
contentType: z.ZodString;
|
|
5051
|
+
filename: z.ZodString;
|
|
5052
|
+
id: z.ZodString;
|
|
5053
|
+
}, z.core.$strict>;
|
|
5054
|
+
type ConversationFeedMedia = z.infer<typeof conversationFeedMediaSchema>;
|
|
5031
5055
|
/** A feed row, with its visible Threads nested under their parents. */
|
|
5032
5056
|
type ConversationFeedItem = ConversationSummaryReport & {
|
|
5033
5057
|
brief?: ConversationFeedBrief | undefined;
|
|
5058
|
+
links?: string[] | undefined;
|
|
5059
|
+
media?: ConversationFeedMedia[] | undefined;
|
|
5034
5060
|
threads?: ConversationFeedItem[] | undefined;
|
|
5035
5061
|
};
|
|
5036
5062
|
declare const conversationFeedSchema: z.ZodObject<{
|
|
@@ -6180,6 +6206,9 @@ declare const actorProfileReportSchema: z.ZodObject<{
|
|
|
6180
6206
|
status: z.ZodOptional<z.ZodString>;
|
|
6181
6207
|
key: z.ZodString;
|
|
6182
6208
|
label: z.ZodString;
|
|
6209
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6210
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6211
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
6183
6212
|
}, z.core.$strict>>>;
|
|
6184
6213
|
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
6185
6214
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
@@ -6792,6 +6821,9 @@ declare const locationDetailReportSchema: z.ZodObject<{
|
|
|
6792
6821
|
status: z.ZodOptional<z.ZodString>;
|
|
6793
6822
|
key: z.ZodString;
|
|
6794
6823
|
label: z.ZodString;
|
|
6824
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6825
|
+
url: z.ZodOptional<z.ZodString>;
|
|
6826
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
6795
6827
|
}, z.core.$strict>>>;
|
|
6796
6828
|
assignedWork: z.ZodOptional<z.ZodBoolean>;
|
|
6797
6829
|
finishedWorkAt: z.ZodOptional<z.ZodString>;
|
|
@@ -9245,4 +9277,4 @@ declare const versionsSchema: z.ZodObject<{
|
|
|
9245
9277
|
spend: z.ZodString;
|
|
9246
9278
|
}, z.core.$strict>;
|
|
9247
9279
|
type Versions = z.output<typeof versionsSchema>;
|
|
9248
|
-
export { automationEditSchema as $, ConversationReportEventData as $i, conversationSubscriptionBodySchema as $n, conversationPendingMessageSchema as $r, testNotificationResponseSchema as $t, runtimeInfoReportSchema as A, annotationCard as Aa, ObjectLinksReport as Ai, PersonalSpendReport as An, conversationStatsReportSchema as Ar, workspaceSchema as At, AutomationExecutionList as B, isEmptyUserInputAnswer as Ba, ActorIdentity as Bi, ConversationChildAgentsReport as Bn, conversationFeedSchema as Br, disconnectServiceAccountResponseSchema as Bt, healthReportSchema as C, createConversationBodySchema as Ca, codeRepositorySummarySchema as Ci, ActorDirectoryWindows as Cn, StopConversationTurnResponse as Cr, WorkspaceReport as Ct, pluginPackageContentReportSchema as D, conversationTurnFailureCodeSchema as Da, dailyConversationActivitySchema as Di, ActorWindowMetrics as Dn, ConversationStatsReport as Dr, workspaceListSchema as Dt, pluginPackageContentItemReportSchema as E, forkConversationResponseSchema as Ea, DailyConversationActivity as Ei, ActorTotalsReport as En, ConversationStatsItem as Er, workspaceBodySchema as Et, StatsReport as F, USER_INPUT_NOTE as Fa, conversationObjectCard as Fi, ConversationWatch as Fn, archiveConversationResponseSchema as Fr, createdPersonalTokenSchema as Ft, AutomationRunList as G, InputFile as Ga, ConversationAuxiliaryCosts as Gi, RenameConversationResponse as Gn, ConversationPendingMessagesReport as Gr, CacheWarmingSavingsRefill as Gt, AutomationList as H, webMessageId as Ha, CONVERSATION_VERSION_HEADER as Hi, conversationChildAgentsReportSchema as Hn, CancelConversationPendingMessagesResponse as Hr, serviceAccountParamsSchema as Ht, statSchema as I, UserInputAnswer as Ia, messageObjectCard as Ii, ConversationWatchesReport as In, archiveDoneConversationsResponseSchema as Ir, personalTokenListSchema as It, AutomationSummary as J, MessageAttachment as Ja, ConversationEventHistory as Ji, CONVERSATION_OUTLINE_TEXT_LENGTH as Jn, cancelConversationPendingMessagesBodySchema as Jr, cacheWarmingSavingsRefillResponseSchema as Jt, AutomationRunWindows as K, MAX_ATTACHMENT_BYTES as Ka, ConversationCost as Ki, renameConversationBodySchema as Kn, SteerConversationPendingMessagesBody as Kr, CacheWarmingSavingsReport as Kt, statsReportSchema as L, UserInputField as La, personObjectCard as Li, conversationWatchSchema as Ln, conversationAutoArchiveSchema as Lr, personalTokenMetadataSchema as Lt, skillReportSchema as M, resolveMessageCards as Ma, attachObjectLinkResponseSchema as Mi, actorProfileReportSchema as Mn, ArchiveConversationResponse as Mr, userCustomizationSchema as Mt, skillReportsSchema as N, AutomationTask as Na, objectLinksQuerySchema as Ni, personParamsSchema as Nn, ConversationAutoArchive as Nr, PersonalTokenMetadata as Nt, pluginSchema as O, conversationTurnFailureReasonSchema as Oa, AttachObjectLinkResponse as Oi, PeopleActivityDayReport as On, GuardianMetricDay as Or, workspaceParamsSchema as Ot, StatReport as P, AutomationCard as Pa, objectLinksReportSchema as Pi, personalSpendReportSchema as Pn, archiveConversationBodySchema as Pr, createPersonalTokenBodySchema as Pt, automationEditErrorSchema as Q, ConversationReportEvent as Qi, ConversationSubscriptionResponse as Qn, conversationPendingMessageDeliverySchema as Qr, notificationSettingsSchema as Qt, AutomationEdit as R, UserInputRequest as Ra, webPageObjectCard as Ri, conversationWatchesReportSchema as Rn, ConversationFeed as Rr, personalTokenParamsSchema as Rt, SkillReports as S, conversationSummaryReportSchema as Sa, codeRepositoryReportSchema as Si, ActorDirectoryReport as Sn, continueConversationInSlackResponseSchema as Sr, WorkspaceListReport as St, pluginOperationalReportSchema as T, forkConversationBodySchema as Ta, conversationChildAgentTotalsSchema as Ti, ActorSummaryReport as Tn, ConversationMetricDay as Tr, deleteWorkspaceResponseSchema as Tt, AutomationListQuery as U, AGENT_REPLY_EVENT_TYPE as Ua, ConversationActivityPreview as Ui, CONVERSATION_TITLE_MAX_LENGTH as Un, ConversationPendingMessage as Ur, serviceAccountSchema as Ut, AutomationExecutionStatusDay as V, normalizeUserInputAnswer as Va, CONVERSATION_DETAIL_VERSION_HEADER as Vi, conversationChildAgentSchema as Vn, CancelConversationPendingMessagesBody as Vr, serviceAccountListSchema as Vt, AutomationRun as W, isAgentInvocationResultEventType as Wa, ConversationAgentTreeNode as Wi, RenameConversationBody as Wn, ConversationPendingMessageDelivery as Wr, startServiceAccountSignInResponseSchema as Wt, AutomationVersionList as X, INPUT_IMAGE_TYPES as Xa, ConversationModelUsage as Xi, conversationOutlineSchema as Xn, conversationDetailWithMailboxReportSchema as Xr, closeCacheWarmingBreakerResponseSchema as Xt, AutomationUpdate as Y, INLINE_VIDEO_TYPES as Ya, ConversationEventPage as Yi, ConversationOutline as Yn, cancelConversationPendingMessagesResponseSchema as Yr, cacheWarmingSavingsReportSchema as Yt, ListedAutomationVersion as Z, ConversationParams as Zi, ConversationSubscriptionBody as Zn, conversationPendingAuthorizationSchema as Zr, NotificationSettings as Zt, PluginPackageContentReport as _, conversationEventsQuerySchema as _a, codeChangeSummarySchema as _i, locationActivityDayReportSchema as _n, ConversationReadPosition as _r, automationVersionParamsSchema as _t, ReviewItemPayload as a, ConversationTurnFailureCode as aa, CreateAttachmentUploadBody as ai, connectionParamsSchema as an, PinConversationBody as ar, automationListQuerySchema as at, SkillDetailReport as b, conversationReportEventDataSchema as ba, codeRepositoryParamsSchema as bi, locationParamsSchema as bn, ContinueConversationInSlackResponse as br, scheduledAutomationSummarySchema as bt, reviewItemListSchema as c, CreateConversationBody as ca, CodeActivityDay as ci, startConnectionResponseSchema as cn, ReorderPinnedConversationsResponse as cr, automationRunListSchema as ct, ReviewItemChangeRecord as d, conversationActivityPreviewSchema as da, CodePersonReport as di, LocationActivityDayReport as dn, reorderPinnedConversationsBodySchema as dr, automationScheduleIntentSchema as dt, ConversationReportMessageEvent as ea, conversationPendingMessagesReportSchema as ei, DEFAULT_NOTIFICATION_SCHEDULE as en, conversationSubscriptionResponseSchema as er, automationEventCatalogSchema as et, HealthReport as f, conversationAuxiliaryCostsSchema as fa, CodeRepositoryReport as fi, LocationActorSummaryReport as fn, reorderPinnedConversationsResponseSchema as fr, automationSchedulePreviewSchema as ft, PluginPackageContentItemReport as g, conversationEventPageSchema as ga, codeChangeSummaryReportSchema as gi, LocationSummaryReport as gn, conversationCatchUpSchema as gr, automationVersionListSchema as gt, PluginOperationalReportFeed as h, conversationEventHistorySchema as ha, codeActivityDaySchema as hi, LocationParams as hn, conversationCatchUpBodySchema as hr, automationVersionActivateSchema as ht, ReviewItemActionBody as i, ConversationSurface as ia, AttachmentUpload as ii, connectionListSchema as in, conversationDeliveryResponseSchema as ir, automationExecutionStatusSchema as it, skillDetailReportSchema as j, messageCardText as ja, attachObjectLinkBodySchema as ji, actorDirectoryReportSchema as jn, ArchiveConversationBody as jr, USER_CUSTOMIZATION_MAX_CHARS as jt, pluginsSchema as k, MessageCard as ka, MAX_OBJECT_LINKS as ki, PersonParams as kn, GuardianStats as kr, workspaceRepoSchema as kt, reviewItemSchema as l, CreateConversationMessageBody as la, CodeChangeSummaryReport as li, ApiError as ln, pinConversationBodySchema as lr, automationRunSchema as lt, PluginOperationalReport as m, conversationDetailReportSchema as ma, IDLE_CHANGE_DAYS as mi, LocationDirectoryReport as mn, ConversationCatchUpBody as mr, automationUpdateSchema as mt, Versions as n, ConversationSourceTask as na, steerConversationPendingMessagesBodySchema as ni, isWithinNotificationSchedule as nn, ConversationDeliveryResponse as nr, automationExecutionSchema as nt, reviewItemActionSchema as o, ConversationTurnFailureReason as oa, attachmentUploadSchema as oi, connectionSchema as on, PinConversationResponse as or, automationListSchema as ot, Plugin as p, conversationDetailQuerySchema as pa, CodeRepositorySummary as pi, LocationDetailReport as pn, ConversationCatchUp as pr, automationSummarySchema as pt, AutomationScheduleIntent as q, MAX_INPUT_ATTACHMENTS as qa, ConversationDetailReport as qi, renameConversationResponseSchema as qn, SteerConversationPendingMessagesResponse as qr, cacheWarmingBreakerListSchema as qt, versionsSchema as r, ConversationSummaryReport as ra, steerConversationPendingMessagesResponseSchema as ri, notificationScheduleSchema as rn, conversationDeliveryBodySchema as rr, automationExecutionStatusDaySchema as rt, reviewItemCountSchema as s, ConversationUsage as sa, createAttachmentUploadBodySchema as si, disconnectConnectionResponseSchema as sn, ReorderPinnedConversationsBody as sr, automationParamsSchema as st, OwnedObjectAnnotation as t, ConversationReportStatus as ta, conversationUnchangedDetailWithMailboxSchema as ti, NotificationSchedule as tn, ConversationDeliveryBody as tr, automationExecutionListSchema as tt, reviewItemWaitingConversationsSchema as u, acceptedConversationMessageSchema as ua, CodeOverviewReport as ui, apiErrorSchema as un, pinConversationResponseSchema as ur, automationRunWindowsSchema as ut, Plugins as v, conversationFeedQuerySchema as va, codeOverviewReportSchema as vi, locationDetailReportSchema as vn, conversationReadPositionSchema as vr, automationVersionSchema as vt, pluginOperationalReportFeedSchema as w, createConversationMessageBodySchema as wa, ConversationChildAgentTotals as wi, ActorProfileReport as wn, stopConversationTurnResponseSchema as wr, baselineSnapshotSchema as wt, SkillReport as x, conversationReportEventSchema as xa, codeRepositoryQuerySchema as xi, ActorActivityDayReport as xn, continueConversationInSlackBodySchema as xr, BaselineSnapshotReport as xt, RuntimeInfoReport as y, conversationParamsSchema as ya, codePersonReportSchema as yi, locationDirectoryReportSchema as yn, ContinueConversationInSlackBody as yr, eventAutomationSummarySchema as yt, AutomationExecution as z, buttonUserInputField as za, AcceptedConversationMessage as zi, ConversationChildAgent as zn, ConversationFeedItem as zr, revokePersonalTokenResponseSchema as zt };
|
|
9280
|
+
export { automationEditSchema as $, ConversationReportEvent as $i, conversationSubscriptionBodySchema as $n, conversationPendingMessageDeliverySchema as $r, testNotificationResponseSchema as $t, runtimeInfoReportSchema as A, annotationCard as Aa, MAX_OBJECT_LINKS as Ai, PersonalSpendReport as An, conversationStatsReportSchema as Ar, workspaceSchema as At, AutomationExecutionList as B, isEmptyUserInputAnswer as Ba, AcceptedConversationMessage as Bi, ConversationChildAgentsReport as Bn, conversationFeedQuerySchema as Br, disconnectServiceAccountResponseSchema as Bt, healthReportSchema as C, createConversationBodySchema as Ca, codeRepositoryReportSchema as Ci, ActorDirectoryWindows as Cn, StopConversationTurnResponse as Cr, WorkspaceReport as Ct, pluginPackageContentReportSchema as D, conversationTurnFailureCodeSchema as Da, DailyConversationActivity as Di, ActorWindowMetrics as Dn, ConversationStatsReport as Dr, workspaceListSchema as Dt, pluginPackageContentItemReportSchema as E, forkConversationResponseSchema as Ea, conversationChildAgentTotalsSchema as Ei, ActorTotalsReport as En, ConversationStatsItem as Er, workspaceBodySchema as Et, StatsReport as F, USER_INPUT_NOTE as Fa, objectLinksReportSchema as Fi, ConversationWatch as Fn, archiveConversationResponseSchema as Fr, createdPersonalTokenSchema as Ft, AutomationRunList as G, InputFile as Ga, ConversationAgentTreeNode as Gi, RenameConversationResponse as Gn, ConversationPendingMessageDelivery as Gr, CacheWarmingSavingsRefill as Gt, AutomationList as H, webMessageId as Ha, CONVERSATION_DETAIL_VERSION_HEADER as Hi, conversationChildAgentsReportSchema as Hn, CancelConversationPendingMessagesBody as Hr, serviceAccountParamsSchema as Ht, statSchema as I, UserInputAnswer as Ia, conversationObjectCard as Ii, ConversationWatchesReport as In, archiveDoneConversationsResponseSchema as Ir, personalTokenListSchema as It, AutomationSummary as J, MessageAttachment as Ja, ConversationDetailReport as Ji, CONVERSATION_OUTLINE_TEXT_LENGTH as Jn, SteerConversationPendingMessagesResponse as Jr, cacheWarmingSavingsRefillResponseSchema as Jt, AutomationRunWindows as K, MAX_ATTACHMENT_BYTES as Ka, ConversationAuxiliaryCosts as Ki, renameConversationBodySchema as Kn, ConversationPendingMessagesReport as Kr, CacheWarmingSavingsReport as Kt, statsReportSchema as L, UserInputField as La, messageObjectCard as Li, conversationWatchSchema as Ln, conversationAutoArchiveSchema as Lr, personalTokenMetadataSchema as Lt, skillReportSchema as M, resolveMessageCards as Ma, attachObjectLinkBodySchema as Mi, actorProfileReportSchema as Mn, ArchiveConversationResponse as Mr, userCustomizationSchema as Mt, skillReportsSchema as N, AutomationTask as Na, attachObjectLinkResponseSchema as Ni, personParamsSchema as Nn, ConversationAutoArchive as Nr, PersonalTokenMetadata as Nt, pluginSchema as O, conversationTurnFailureReasonSchema as Oa, dailyConversationActivitySchema as Oi, PeopleActivityDayReport as On, GuardianMetricDay as Or, workspaceParamsSchema as Ot, StatReport as P, AutomationCard as Pa, objectLinksQuerySchema as Pi, personalSpendReportSchema as Pn, archiveConversationBodySchema as Pr, createPersonalTokenBodySchema as Pt, automationEditErrorSchema as Q, ConversationParams as Qi, ConversationSubscriptionResponse as Qn, conversationPendingAuthorizationSchema as Qr, notificationSettingsSchema as Qt, AutomationEdit as R, UserInputRequest as Ra, personObjectCard as Ri, conversationWatchesReportSchema as Rn, ConversationFeed as Rr, personalTokenParamsSchema as Rt, SkillReports as S, conversationSummaryReportSchema as Sa, codeRepositoryQuerySchema as Si, ActorDirectoryReport as Sn, continueConversationInSlackResponseSchema as Sr, WorkspaceListReport as St, pluginOperationalReportSchema as T, forkConversationBodySchema as Ta, ConversationChildAgentTotals as Ti, ActorSummaryReport as Tn, ConversationMetricDay as Tr, deleteWorkspaceResponseSchema as Tt, AutomationListQuery as U, AGENT_REPLY_EVENT_TYPE as Ua, CONVERSATION_VERSION_HEADER as Ui, CONVERSATION_TITLE_MAX_LENGTH as Un, CancelConversationPendingMessagesResponse as Ur, serviceAccountSchema as Ut, AutomationExecutionStatusDay as V, normalizeUserInputAnswer as Va, ActorIdentity as Vi, conversationChildAgentSchema as Vn, conversationFeedSchema as Vr, serviceAccountListSchema as Vt, AutomationRun as W, isAgentInvocationResultEventType as Wa, ConversationActivityPreview as Wi, RenameConversationBody as Wn, ConversationPendingMessage as Wr, startServiceAccountSignInResponseSchema as Wt, AutomationVersionList as X, INPUT_IMAGE_TYPES as Xa, ConversationEventPage as Xi, conversationOutlineSchema as Xn, cancelConversationPendingMessagesResponseSchema as Xr, closeCacheWarmingBreakerResponseSchema as Xt, AutomationUpdate as Y, INLINE_VIDEO_TYPES as Ya, ConversationEventHistory as Yi, ConversationOutline as Yn, cancelConversationPendingMessagesBodySchema as Yr, cacheWarmingSavingsReportSchema as Yt, ListedAutomationVersion as Z, ConversationModelUsage as Zi, ConversationSubscriptionBody as Zn, conversationDetailWithMailboxReportSchema as Zr, NotificationSettings as Zt, PluginPackageContentReport as _, conversationEventPageSchema as _a, codeChangeSummaryReportSchema as _i, locationActivityDayReportSchema as _n, ConversationReadPosition as _r, automationVersionParamsSchema as _t, ReviewItemPayload as a, ConversationSurface as aa, AttachmentUpload as ai, connectionParamsSchema as an, PinConversationBody as ar, automationListQuerySchema as at, SkillDetailReport as b, conversationReportEventDataSchema as ba, codePersonReportSchema as bi, locationParamsSchema as bn, ContinueConversationInSlackResponse as br, scheduledAutomationSummarySchema as bt, reviewItemListSchema as c, ConversationUsage as ca, createAttachmentUploadBodySchema as ci, startConnectionResponseSchema as cn, ReorderPinnedConversationsResponse as cr, automationRunListSchema as ct, ReviewItemChangeRecord as d, acceptedConversationMessageSchema as da, CodeOverviewReport as di, LocationActivityDayReport as dn, reorderPinnedConversationsBodySchema as dr, automationScheduleIntentSchema as dt, ConversationReportEventData as ea, conversationPendingMessageSchema as ei, DEFAULT_NOTIFICATION_SCHEDULE as en, conversationSubscriptionResponseSchema as er, automationEventCatalogSchema as et, HealthReport as f, conversationActivityPreviewSchema as fa, CodePersonReport as fi, LocationActorSummaryReport as fn, reorderPinnedConversationsResponseSchema as fr, automationSchedulePreviewSchema as ft, PluginPackageContentItemReport as g, conversationEventHistorySchema as ga, codeActivityDaySchema as gi, LocationSummaryReport as gn, conversationCatchUpSchema as gr, automationVersionListSchema as gt, PluginOperationalReportFeed as h, conversationDetailReportSchema as ha, IDLE_CHANGE_DAYS as hi, LocationParams as hn, conversationCatchUpBodySchema as hr, automationVersionActivateSchema as ht, ReviewItemActionBody as i, ConversationSummaryReport as ia, steerConversationPendingMessagesResponseSchema as ii, connectionListSchema as in, conversationDeliveryResponseSchema as ir, automationExecutionStatusSchema as it, skillDetailReportSchema as j, messageCardText as ja, ObjectLinksReport as ji, actorDirectoryReportSchema as jn, ArchiveConversationBody as jr, USER_CUSTOMIZATION_MAX_CHARS as jt, pluginsSchema as k, MessageCard as ka, AttachObjectLinkResponse as ki, PersonParams as kn, GuardianStats as kr, workspaceRepoSchema as kt, reviewItemSchema as l, CreateConversationBody as la, CodeActivityDay as li, ApiError as ln, pinConversationBodySchema as lr, automationRunSchema as lt, PluginOperationalReport as m, conversationDetailQuerySchema as ma, CodeRepositorySummary as mi, LocationDirectoryReport as mn, ConversationCatchUpBody as mr, automationUpdateSchema as mt, Versions as n, ConversationReportStatus as na, conversationUnchangedDetailWithMailboxSchema as ni, isWithinNotificationSchedule as nn, ConversationDeliveryResponse as nr, automationExecutionSchema as nt, reviewItemActionSchema as o, ConversationTurnFailureCode as oa, CreateAttachmentUploadBody as oi, connectionSchema as on, PinConversationResponse as or, automationListSchema as ot, Plugin as p, conversationAuxiliaryCostsSchema as pa, CodeRepositoryReport as pi, LocationDetailReport as pn, ConversationCatchUp as pr, automationSummarySchema as pt, AutomationScheduleIntent as q, MAX_INPUT_ATTACHMENTS as qa, ConversationCost as qi, renameConversationResponseSchema as qn, SteerConversationPendingMessagesBody as qr, cacheWarmingBreakerListSchema as qt, versionsSchema as r, ConversationSourceTask as ra, steerConversationPendingMessagesBodySchema as ri, notificationScheduleSchema as rn, conversationDeliveryBodySchema as rr, automationExecutionStatusDaySchema as rt, reviewItemCountSchema as s, ConversationTurnFailureReason as sa, attachmentUploadSchema as si, disconnectConnectionResponseSchema as sn, ReorderPinnedConversationsBody as sr, automationParamsSchema as st, OwnedObjectAnnotation as t, ConversationReportMessageEvent as ta, conversationPendingMessagesReportSchema as ti, NotificationSchedule as tn, ConversationDeliveryBody as tr, automationExecutionListSchema as tt, reviewItemWaitingConversationsSchema as u, CreateConversationMessageBody as ua, CodeChangeSummaryReport as ui, apiErrorSchema as un, pinConversationResponseSchema as ur, automationRunWindowsSchema as ut, Plugins as v, conversationEventsQuerySchema as va, codeChangeSummarySchema as vi, locationDetailReportSchema as vn, conversationReadPositionSchema as vr, automationVersionSchema as vt, pluginOperationalReportFeedSchema as w, createConversationMessageBodySchema as wa, codeRepositorySummarySchema as wi, ActorProfileReport as wn, stopConversationTurnResponseSchema as wr, baselineSnapshotSchema as wt, SkillReport as x, conversationReportEventSchema as xa, codeRepositoryParamsSchema as xi, ActorActivityDayReport as xn, continueConversationInSlackBodySchema as xr, BaselineSnapshotReport as xt, RuntimeInfoReport as y, conversationParamsSchema as ya, codeOverviewReportSchema as yi, locationDirectoryReportSchema as yn, ContinueConversationInSlackBody as yr, eventAutomationSummarySchema as yt, AutomationExecution as z, buttonUserInputField as za, webPageObjectCard as zi, ConversationChildAgent as zn, ConversationFeedItem as zr, revokePersonalTokenResponseSchema as zt };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
3
|
-
import { $ as
|
|
4
|
-
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-
|
|
1
|
+
import { K as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-BPNTQVFu.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BjZZqKqi.js";
|
|
3
|
+
import { $ as MUTATION_LOCK_TTL_MS, X as getStateAdapter, _t as parseDestination, nt as withLock, tt as fenceLock } from "./db-DU84dCVu.js";
|
|
4
|
+
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-nCR4Muhn.js";
|
|
5
|
+
import { n as botConfig } from "./config-CBZp0udd.js";
|
|
5
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
7
|
import { randomUUID } from "node:crypto";
|
|
7
8
|
import { sourceSchema } from "@sentry/junior-plugin-api";
|
|
@@ -614,7 +615,7 @@ async function deleteMcpServiceAccountCredentials(provider) {
|
|
|
614
615
|
}
|
|
615
616
|
function clientMetadata(redirectUrl) {
|
|
616
617
|
return {
|
|
617
|
-
client_name:
|
|
618
|
+
client_name: `${botConfig.userName} MCP Service Account`,
|
|
618
619
|
redirect_uris: [redirectUrl],
|
|
619
620
|
grant_types: ["authorization_code", "refresh_token"],
|
|
620
621
|
response_types: ["code"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
-
import {
|
|
1
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DU5865XA.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-J52Tej47.js";
|
|
3
|
+
import { J as disconnectStateAdapter } from "./db-DU84dCVu.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -69,7 +69,7 @@ async function runConnect(plugin) {
|
|
|
69
69
|
redirectUrl: loopback.redirectUrl
|
|
70
70
|
});
|
|
71
71
|
console.log([
|
|
72
|
-
`Open this URL in a browser on this machine. Sign in as the account
|
|
72
|
+
`Open this URL in a browser on this machine. Sign in as the account the bot should use for ${provider}, not as yourself:`,
|
|
73
73
|
"",
|
|
74
74
|
authorizationUrl.toString(),
|
|
75
75
|
"",
|
|
@@ -98,7 +98,7 @@ async function runStatus(plugin) {
|
|
|
98
98
|
async function runDisconnect(plugin) {
|
|
99
99
|
const provider = plugin.manifest.name;
|
|
100
100
|
await disconnectServiceAccount(plugin);
|
|
101
|
-
console.log(`Removed the ${provider} service account
|
|
101
|
+
console.log(`Removed the ${provider} service account. To revoke the grant, remove the app connection in the ${provider} account settings.`);
|
|
102
102
|
return 0;
|
|
103
103
|
}
|
|
104
104
|
/** Run `junior service-account connect|status|disconnect <plugin>`. */
|