@sentry/junior 0.285.0 → 0.287.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-DN5AB4VU.js → adapter-CL-HUKgd.js} +1 -1
- package/dist/{admin-DOITMKnn.js → admin-C9urXVfi.js} +2 -1
- package/dist/{agent-runner-BsWhHe4N.js → agent-runner-Bfnw551N.js} +2174 -1323
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +73 -112
- package/dist/{app-DyMs9330.d.ts → app-DBY5TnfY.d.ts} +2 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +72 -42
- package/dist/{assistant-reply-9Jip5bsr.js → assistant-reply-u_PRYzuz.js} +1 -1
- package/dist/{automation-Mk8aaHzy.js → automation-DksGNDRO.js} +3 -6
- package/dist/{background-compaction-queue-DXkLsWoH.js → background-compaction-queue-CYI909P5.js} +137 -3
- package/dist/{briefs-Cl8-nK9B.js → briefs-DaXiMWzT.js} +6 -5
- package/dist/{catalog-runtime-Bte6jRB2.js → catalog-runtime-BCIuBe4d.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 +5 -6
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DDbBucBw.js → config-CkHcUMN7.js} +580 -3
- package/dist/{connections-DA4LT9LL.js → connections-BnIj0wtx.js} +16 -50
- package/dist/{conversation-D8kVoCrP.js → conversation-E7ZPJx2H.js} +22 -6
- package/dist/{conversation-pending-messages-BvROq1bq.js → conversation-pending-messages-DVch6YQw.js} +2 -5
- package/dist/{conversation-privacy-D0j_h70R.js → conversation-privacy-DF1hW0ja.js} +1 -1
- package/dist/{credential-sync-hcsYatw-.js → credential-sync-CzMar9hq.js} +13 -13
- package/dist/{viewer-1Ea81s0b.js → db-DJ11eZqq.js} +64 -367
- package/dist/{db-BhHZSuFw.d.ts → db-YDKKDxlh.d.ts} +4 -4
- package/dist/{executor-BLEMIgIZ.js → executor-BY9TB31g.js} +20 -19
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BfORLKoq.js → logging-BO5zU6Mt.js} +1 -1
- package/dist/{media-Bu9C6lz0.js → media-Cz1ZiV1U.js} +16 -4
- package/dist/{message-DqjuKzUx.js → message-CsUbuEc8.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -3
- package/dist/{oauth-callback-server-CFSRzu1n.js → oauth-callback-server-hiDKK0_n.js} +2 -2
- package/dist/{projection-DliWYrnT.js → projection-CL_YWeGf.js} +352 -356
- package/dist/{prompt-BvIUzY4y.js → prompt-BHOEQSmf.js} +182 -2
- package/dist/{registry-rC7MCxu8.js → registry-BriFLnaJ.js} +1 -1
- package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
- package/dist/{resolve-Biu8Qw3u.js → resolve-Bt6GgAiA.js} +3 -3
- package/dist/{result-DxJMCX47.js → result-Bo1TZu0Q.js} +8 -8
- package/dist/{runner-BQJSFLKg.js → runner-D3YeCQgt.js} +16 -12
- package/dist/{sandbox-egress-signals-6aMxJSDn.js → sandbox-egress-signals-CcnSPP4S.js} +1 -1
- package/dist/{schema-BasXTvi2.js → schema-BWE3RJEB.js} +19 -7
- package/dist/{schema-BUviRAs8.d.ts → schema-C6fsEwjo.d.ts} +90 -8
- package/dist/{service-account-BI5Wgx22.js → service-account-DiQQuuw7.js} +3 -3
- package/dist/{service-account-CAE-_1dR.js → service-account-r6fl0b-9.js} +3 -3
- package/dist/{session-stop-CA-jOJ84.js → session-stop-B2Nut40V.js} +27 -25
- package/dist/{skills-B22duVJU.js → skills-CD5aJdzg.js} +2 -2
- package/dist/spawn-CalgZQiu.js +79 -0
- package/dist/{stop-DioIcEAu.js → stop-kujZLbi0.js} +233 -1127
- package/dist/{store-Dn4W7qgH.js → store-DdIEUL1q.js} +3 -3
- package/dist/{turn-session-routing-CGMKrYOj.js → task-runner-D_RDr2Hu.js} +1440 -993
- package/dist/{store-B26LV6UP.js → turn-failure-response-B5nV1Er-.js} +337 -6
- package/dist/{validation-TzhfQABF.js → validation-K4pqwoVZ.js} +1 -1
- package/dist/{version-DSk8CFvA.js → version-DBvhk1X9.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DrMmFUul.js +337 -0
- package/dist/{work-ybG4_q5C.js → work-ljRoODGu.js} +110 -94
- package/dist/{worker-ccSyZRNz.js → worker-CYO1Q0Js.js} +5 -6
- package/migrations/0086_shared_archive.sql +31 -0
- package/migrations/0087_child_location.sql +64 -0
- package/migrations/0088_conversation_unsubscribe.sql +1 -0
- package/migrations/meta/0086_snapshot.json +4366 -0
- package/migrations/meta/0087_snapshot.json +4366 -0
- package/migrations/meta/0088_snapshot.json +4372 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +5 -4
- package/dist/config-DqFnykQT.js +0 -579
- package/dist/spawn-BB2_4VYn.js +0 -31
- package/dist/task-queue-Bt0IoR2i.js +0 -139
- package/dist/task-runner-D8lddjzp.js +0 -290
- package/dist/thread-state-CrFk3K_7.js +0 -173
- package/dist/turn-failure-response-DaJ04qVj.js +0 -224
- package/dist/turn-lifecycle-C2mXS7AZ.js +0 -58
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import {
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { randomBytes, randomUUID } from "node:crypto";
|
|
1
|
+
import { Bi as startOAuthFlow, Z as loadTurnCheckpoint, it as getTurnRecord, rt as failTurnRecord } from "./projection-CL_YWeGf.js";
|
|
2
|
+
import { n as botConfig } from "./config-CkHcUMN7.js";
|
|
3
|
+
import { A as deleteProviderIdentityForUser, a as getConversationStore, k as deleteProviderIdentityForSlackUser, r as getConversationEventStore, s as getSqlExecutor } from "./db-DJ11eZqq.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-BriFLnaJ.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BCIuBe4d.js";
|
|
6
|
+
import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-Bfnw551N.js";
|
|
7
|
+
import { _ as getVercelConversationWorkQueue } from "./background-compaction-queue-CYI909P5.js";
|
|
8
|
+
import { T as requestConversationWork, h as ensureConversationWake } from "./store-DdIEUL1q.js";
|
|
9
|
+
import { mt as resolveTurnSessionRouting } from "./task-runner-D_RDr2Hu.js";
|
|
10
|
+
import { randomBytes } from "node:crypto";
|
|
12
11
|
import * as z from "zod";
|
|
13
12
|
// src/chat/task-execution/authorized-turn.ts
|
|
14
13
|
/**
|
|
@@ -25,7 +24,7 @@ const authorizationSchema = z.object({
|
|
|
25
24
|
configuration: z.record(z.string(), z.unknown()).optional(),
|
|
26
25
|
toolChannelId: z.string().optional()
|
|
27
26
|
});
|
|
28
|
-
function authorizationKey
|
|
27
|
+
function authorizationKey(turn) {
|
|
29
28
|
return `turn:${turn.turnId}:authorization:${turn.version}`;
|
|
30
29
|
}
|
|
31
30
|
/** Save authorization for this parked boundary without changing model history. */
|
|
@@ -33,7 +32,7 @@ async function recordTurnAuthorization(args) {
|
|
|
33
32
|
const turn = await getTurnRecord(args.conversationId, args.turnId);
|
|
34
33
|
if (!turn || turn.state !== "paused" || turn.resumeReason !== "auth") return;
|
|
35
34
|
await getConversationEventStore().append(args.conversationId, [{
|
|
36
|
-
idempotencyKey: authorizationKey
|
|
35
|
+
idempotencyKey: authorizationKey(turn),
|
|
37
36
|
createdAtMs: Date.now(),
|
|
38
37
|
data: {
|
|
39
38
|
type: "structured_event",
|
|
@@ -53,7 +52,7 @@ async function recordTurnAuthorization(args) {
|
|
|
53
52
|
}
|
|
54
53
|
/** Read authorization for the exact pause; a later auth pause needs its own callback. */
|
|
55
54
|
async function getTurnAuthorization(turn) {
|
|
56
|
-
const event = await getConversationEventStore().loadByIdempotencyKey(turn.conversationId, authorizationKey
|
|
55
|
+
const event = await getConversationEventStore().loadByIdempotencyKey(turn.conversationId, authorizationKey(turn));
|
|
57
56
|
if (event?.data.type !== "structured_event") return void 0;
|
|
58
57
|
return authorizationSchema.parse(event.data.content);
|
|
59
58
|
}
|
|
@@ -91,9 +90,10 @@ async function getPausedTurnRequest(args) {
|
|
|
91
90
|
/** Wake the conversation worker for a paused turn. */
|
|
92
91
|
async function wakePausedTurn(request, options = {}) {
|
|
93
92
|
const nowMs = options.nowMs ?? Date.now();
|
|
93
|
+
const conversation = await (options.conversationStore ?? getConversationStore()).get({ conversationId: request.conversationId });
|
|
94
94
|
await requestConversationWork({
|
|
95
95
|
conversationId: request.conversationId,
|
|
96
|
-
destination: request.destination,
|
|
96
|
+
destination: conversation && conversation.kind !== "root" ? void 0 : request.destination,
|
|
97
97
|
nowMs,
|
|
98
98
|
state: options.state
|
|
99
99
|
});
|
|
@@ -290,40 +290,6 @@ function htmlCallbackResponse(title, message, status, options = {}) {
|
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
// src/chat/conversations/web-authorization.ts
|
|
294
|
-
const WEB_AUTHORIZATION_PREFIX = "junior:web_authorization:v1";
|
|
295
|
-
const WEB_AUTHORIZATION_TTL_MS = 864e5;
|
|
296
|
-
function authorizationKey(conversationId, actorId) {
|
|
297
|
-
return `${WEB_AUTHORIZATION_PREFIX}:${conversationId}:${actorId}`;
|
|
298
|
-
}
|
|
299
|
-
/** Build authorization delivery for one web turn. */
|
|
300
|
-
function createWebAuthorization(args) {
|
|
301
|
-
return {
|
|
302
|
-
createState: async () => randomUUID(),
|
|
303
|
-
deliver: async (request) => {
|
|
304
|
-
await getStateAdapter().set(authorizationKey(args.conversationId, args.actorId), JSON.stringify({
|
|
305
|
-
...request,
|
|
306
|
-
...args
|
|
307
|
-
}), WEB_AUTHORIZATION_TTL_MS);
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
/** Read the pending authorization request for one web actor. */
|
|
312
|
-
async function getWebAuthorization(args) {
|
|
313
|
-
const value = await getStateAdapter().get(authorizationKey(args.conversationId, args.actorId));
|
|
314
|
-
if (typeof value !== "string") return void 0;
|
|
315
|
-
try {
|
|
316
|
-
const parsed = JSON.parse(value);
|
|
317
|
-
if (parsed.actorId !== args.actorId || parsed.conversationId !== args.conversationId || typeof parsed.authorizationUrl !== "string" || typeof parsed.label !== "string" || typeof parsed.completionText !== "string") return;
|
|
318
|
-
return parsed;
|
|
319
|
-
} catch {
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
/** Remove a web authorization request after the parked turn continues. */
|
|
324
|
-
async function deleteWebAuthorization(args) {
|
|
325
|
-
await getStateAdapter().delete(authorizationKey(args.conversationId, args.actorId));
|
|
326
|
-
}
|
|
327
293
|
// src/chat/credentials/unlink-provider.ts
|
|
328
294
|
/** Remove one provider connection and its exact stored account identity. */
|
|
329
295
|
async function unlinkProvider(userId, provider, userTokenStore, slackTeamId) {
|
|
@@ -401,4 +367,4 @@ async function disconnectConnection(userId, provider, userTokenStore) {
|
|
|
401
367
|
if (tokens?.account) await deleteProviderIdentityForUser(getSqlExecutor(), userId, provider, tokens.account.id);
|
|
402
368
|
await unlinkProvider(userId, provider, userTokenStore);
|
|
403
369
|
}
|
|
404
|
-
export { startConnection as a,
|
|
370
|
+
export { startConnection as a, createPausedTurns as c, wakePausedTurn as d, getTurnAuthorization as f, readConnectedOAuthTokens as i, getPausedTurnRequest as l, isConnectableProvider as n, unlinkProvider as o, listConnections as r, htmlCallbackResponse as s, disconnectConnection as t, wakeAuthorizedTurn as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, y as usageSchema } from "./media-
|
|
1
|
+
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, y as usageSchema } from "./media-Cz1ZiV1U.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { codeChangeStateSchema, conversationAnnotationInputSchema, conversationEventPresentationSchema, conversationSidebarAnnotationSchema, objectFactFields, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
4
4
|
// src/chat/briefs/schema.ts
|
|
@@ -437,11 +437,6 @@ const conversationSummaryReportSchema = z.object({
|
|
|
437
437
|
kind: conversationKindSchema,
|
|
438
438
|
/** Present on Threads and Tasks. */
|
|
439
439
|
parentConversationId: z.string().min(1).optional(),
|
|
440
|
-
/**
|
|
441
|
-
* Present on Threads and Tasks: when the child was archived for everyone,
|
|
442
|
-
* or null. `archivedAt` stays the viewer's archive of the root.
|
|
443
|
-
*/
|
|
444
|
-
childArchivedAt: z.string().datetime().nullable().optional(),
|
|
445
440
|
isParticipant: z.boolean(),
|
|
446
441
|
visibility: z.enum(["private", "public"]).optional(),
|
|
447
442
|
status: conversationReportStatusSchema,
|
|
@@ -451,6 +446,10 @@ const conversationSummaryReportSchema = z.object({
|
|
|
451
446
|
surface: conversationSurfaceSchema,
|
|
452
447
|
actorIdentity: actorIdentitySchema.optional(),
|
|
453
448
|
participants: z.array(actorIdentitySchema).optional(),
|
|
449
|
+
/**
|
|
450
|
+
* When this Conversation was archived for everyone, or null. It shows
|
|
451
|
+
* only while it and every ancestor are unarchived.
|
|
452
|
+
*/
|
|
454
453
|
archivedAt: z.string().datetime().nullable().optional(),
|
|
455
454
|
pinnedAt: z.string().datetime().nullable().optional(),
|
|
456
455
|
/** The viewer's place in Pinned. Unset until they reorder their pins. */
|
|
@@ -513,6 +512,8 @@ const conversationReportMessageEventDataSchema = z.object({
|
|
|
513
512
|
/** Agent invocation whose input this is. An agent wrote it, not a person. */
|
|
514
513
|
agentInvocationId: z.string().min(1).optional(),
|
|
515
514
|
eventType: z.string().min(1).optional(),
|
|
515
|
+
/** Namespace of the first Event, such as `github`. */
|
|
516
|
+
eventNamespace: z.string().min(1).optional(),
|
|
516
517
|
eventObjectType: objectTypeSchema.optional(),
|
|
517
518
|
explicitMention: z.boolean().optional(),
|
|
518
519
|
quiet: z.literal(true).optional(),
|
|
@@ -668,6 +669,13 @@ const conversationReportAttachmentsDeliveredEventDataSchema = z.object({
|
|
|
668
669
|
type: z.literal("attachments_delivered"),
|
|
669
670
|
attachments: z.array(messageAttachmentSchema).min(1)
|
|
670
671
|
}).strict();
|
|
672
|
+
/** Junior text that a plugin tool posted to its provider. */
|
|
673
|
+
const conversationReportReplyPostedEventDataSchema = z.object({
|
|
674
|
+
type: z.literal("reply_posted"),
|
|
675
|
+
plugin: z.string().min(1),
|
|
676
|
+
text: z.string().min(1),
|
|
677
|
+
url: z.string().url().optional()
|
|
678
|
+
}).strict();
|
|
671
679
|
const conversationReportCompactionEventDataSchema = z.object({
|
|
672
680
|
type: z.literal("compaction"),
|
|
673
681
|
modelId: z.string().min(1).optional(),
|
|
@@ -688,6 +696,8 @@ const conversationReportSubagentEventDataSchema = z.object({
|
|
|
688
696
|
startedSeq: z.number().int().nonnegative(),
|
|
689
697
|
startedAt: z.string().datetime(),
|
|
690
698
|
childConversationId: z.string().min(1),
|
|
699
|
+
/** The child's Conversation kind. Only a Thread has its own page link. */
|
|
700
|
+
childKind: z.enum(["thread", "task"]),
|
|
691
701
|
subagentKind: z.string().min(1),
|
|
692
702
|
agentName: z.string().min(1).optional(),
|
|
693
703
|
task: z.string().min(1).optional(),
|
|
@@ -711,6 +721,7 @@ const conversationReportEventDataSchema = z.discriminatedUnion("type", [
|
|
|
711
721
|
conversationReportTurnContextEventDataSchema,
|
|
712
722
|
conversationReportStructuredEventDataSchema,
|
|
713
723
|
conversationReportAttachmentsDeliveredEventDataSchema,
|
|
724
|
+
conversationReportReplyPostedEventDataSchema,
|
|
714
725
|
conversationReportGuardianActionReviewedEventDataSchema,
|
|
715
726
|
conversationReportCompactionEventDataSchema,
|
|
716
727
|
conversationReportSubagentEventDataSchema
|
|
@@ -868,6 +879,11 @@ const conversationDetailReportSchema = conversationSummaryReportSchema.extend({
|
|
|
868
879
|
canFork: z.boolean().optional(),
|
|
869
880
|
/** The viewer can move this dashboard conversation to a Slack thread. */
|
|
870
881
|
canContinueInSlack: z.literal(true).optional(),
|
|
882
|
+
/**
|
|
883
|
+
* The viewer gets this conversation in their active feed. Participants
|
|
884
|
+
* only. False after an unsubscribe, until they mention Junior again.
|
|
885
|
+
*/
|
|
886
|
+
subscribed: z.boolean().optional(),
|
|
871
887
|
/** How far the signed-in viewer has read. Absent until they read. */
|
|
872
888
|
readPosition: conversationReadPositionSchema.optional(),
|
|
873
889
|
/**
|
package/dist/{conversation-pending-messages-BvROq1bq.js → conversation-pending-messages-DVch6YQw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as reviewItemChangeRecordSchema, i as actorIdentitySchema, l as conversationDetailReportSchema, z as messageAttachmentSchema } from "./conversation-
|
|
1
|
+
import { A as reviewItemChangeRecordSchema, i as actorIdentitySchema, l as conversationDetailReportSchema, z as messageAttachmentSchema } from "./conversation-E7ZPJx2H.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/reporting-schema.ts
|
|
4
4
|
const healthReportSchema = z.object({
|
|
@@ -102,9 +102,6 @@ const pluginOperationalReportFeedSchema = z.object({
|
|
|
102
102
|
reports: z.array(pluginOperationalReportSchema),
|
|
103
103
|
source: z.literal("plugins")
|
|
104
104
|
}).strict();
|
|
105
|
-
// src/api/schema/common.ts
|
|
106
|
-
/** Stable error body returned by Junior-owned REST endpoints. */
|
|
107
|
-
const apiErrorSchema = z.object({ error: z.string().min(1) }).strict();
|
|
108
105
|
// src/api/schema/conversation-pending-messages.ts
|
|
109
106
|
/** Mailbox delivery mode for one accepted inbound message. */
|
|
110
107
|
const conversationPendingMessageDeliverySchema = z.enum(["defer", "interrupt"]);
|
|
@@ -178,4 +175,4 @@ const steerConversationPendingMessagesResponseSchema = z.object({
|
|
|
178
175
|
conversationId: z.string().min(1),
|
|
179
176
|
steeredInboundMessageIds: z.array(z.string().min(1))
|
|
180
177
|
}).strict();
|
|
181
|
-
export {
|
|
178
|
+
export { pluginsSchema as _, conversationPendingMessageDeliverySchema as a, skillReportsSchema as b, conversationUnchangedDetailWithMailboxSchema as c, healthReportSchema as d, pluginOperationalReportFeedSchema as f, pluginSchema as g, pluginPackageContentReportSchema as h, conversationPendingAuthorizationSchema as i, steerConversationPendingMessagesBodySchema as l, pluginPackageContentItemReportSchema as m, cancelConversationPendingMessagesResponseSchema as n, conversationPendingMessageSchema as o, pluginOperationalReportSchema as p, conversationDetailWithMailboxReportSchema as r, conversationPendingMessagesReportSchema as s, cancelConversationPendingMessagesBodySchema as t, steerConversationPendingMessagesResponseSchema as u, runtimeInfoReportSchema as v, skillReportSchema as y };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { H as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-BfORLKoq.js";
|
|
1
|
+
import { $i as postSlackMessage, Hn as resolvePluginOAuthAccount, J as getConversationPendingAuth, Li as formatProviderLabel, Ri as parseOAuthStatePayload, Rn as createUserTokenStore, d as recordAuthorizationCompleted, it as getTurnRecord, la as getSlackClient, u as recordAuthenticationLinked, zi as resolveBaseUrl } from "./projection-CL_YWeGf.js";
|
|
2
|
+
import { M as escapeXml, a as getRuntimeMetadata, n as botConfig } from "./config-CkHcUMN7.js";
|
|
3
|
+
import { H as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-BO5zU6Mt.js";
|
|
5
4
|
import { p as parseSlackUserId } from "./actor-6jsm_v96.js";
|
|
6
|
-
import {
|
|
5
|
+
import { D as resolveActorIdentityId, F as upsertLinkedIdentity, j as findUserByVerifiedEmails, s as getSqlExecutor } from "./db-DJ11eZqq.js";
|
|
7
6
|
import { i as homeDir } from "./package-discovery-DJhGdS4c.js";
|
|
8
|
-
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { t as discoverSkills } from "./skills-
|
|
11
|
-
import {
|
|
7
|
+
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-BriFLnaJ.js";
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BCIuBe4d.js";
|
|
9
|
+
import { t as discoverSkills } from "./skills-CD5aJdzg.js";
|
|
10
|
+
import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, y as lookupSlackUserProfile, zt as deleteWebAuthorization } from "./agent-runner-Bfnw551N.js";
|
|
12
11
|
import { r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { o as readIdentityById } from "./viewer-DrMmFUul.js";
|
|
13
|
+
import { r as getStateAdapter } from "./adapter-CL-HUKgd.js";
|
|
14
|
+
import { _t as getPersistedThreadState, bt as coerceThreadConversationState } from "./task-runner-D_RDr2Hu.js";
|
|
15
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-DiQQuuw7.js";
|
|
16
|
+
import { d as wakePausedTurn, i as readConnectedOAuthTokens, s as htmlCallbackResponse, u as wakeAuthorizedTurn } from "./connections-BnIj0wtx.js";
|
|
17
17
|
import { n as relayLocalOAuthCallback } from "./oauth-relay-D6xxVywK.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
|