@sentry/junior 0.310.0 → 0.311.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-B1wujchl.js +259 -0
- package/dist/{adapter-context-BhKpjpGD.js → adapter-context-G2M0y6rP.js} +2 -2
- package/dist/{admin-tgZEZAk2.js → admin-DCiBhUT1.js} +1 -2
- package/dist/{agent-runner-D9cvNlQl.js → agent-runner-BVHPUIc8.js} +543 -1703
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -6
- package/dist/api.d.ts +21 -3
- package/dist/api.js +1479 -372
- package/dist/{app-B_7Wn0en.d.ts → app-Cw5Vy6H6.d.ts} +14 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +232 -506
- package/dist/{background-compaction-queue-BGHqkhkY.js → background-compaction-queue-CJDnWVOJ.js} +4 -4
- package/dist/{briefs-DKxkoruh.js → briefs-BDjnug6Y.js} +3 -3
- package/dist/{catalog-runtime-BxwzbLKY.js → catalog-runtime-DMY3VV-D.js} +1 -1
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +23 -29
- package/dist/cli/init.js +1 -6
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +8 -7
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-Dkt2Le2b.js → config-BrXDQefC.js} +239 -5
- package/dist/{continue-in-slack-BWVwePKD.js → continue-in-slack-DNXSC9So.js} +6 -5
- package/dist/{conversation-M9KZ5JxF.js → conversation-ca__NDQW.js} +47 -8
- package/dist/{conversation-feed-Ci6YD1N-.js → conversation-feed-DkinDu5o.js} +15 -6
- package/dist/{conversation-privacy-C39g8BY4.js → conversation-privacy-DxttrKb9.js} +1 -1
- package/dist/{conversation-turn-CBlZIH02.js → conversation-turn-DWw7Xhdr.js} +41 -38
- package/dist/{credential-sync-vGnrB0BY.js → credential-sync-Bk8wGb8Y.js} +15 -16
- package/dist/{db-B4Hjxr-u.d.ts → db-7ETESH44.d.ts} +3 -1
- package/dist/{db-CFZggNoy.js → db-DTxzH7u5.js} +1609 -1040
- package/dist/{executor-BPkZDx5-.js → executor-DqTiYj9S.js} +450 -99
- package/dist/{html-2r2KmLwi.js → html-B9Sl4Axb.js} +6 -6
- package/dist/{install-C-oE6C_u.js → install-Sg4ePfLl.js} +2 -2
- package/dist/instrumentation.js +3 -3
- package/dist/{lineage-CsvrEFQe.js → lineage-BHAMpNKr.js} +2 -2
- package/dist/{logging-D5gkyvnK.js → logging-FjclQsXu.js} +47 -9
- package/dist/{message-DwvJ-I3w.js → message-CJ7_RL50.js} +5 -8
- package/dist/{model-input-MAq2881y.js → model-input-CMLh4Cwq.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DIF6Li06.js → oauth-callback-server-RVcbiDjL.js} +2 -2
- package/dist/{oauth-relay-DPE-wrwO.js → oauth-relay-Bu9kkaQu.js} +1 -1
- package/dist/{projection-jZSlEAXG.js → projection-Cns7XwWa.js} +9445 -5574
- package/dist/{prompt-CaMyeCpA.js → prompt-CDqcsDYC.js} +4 -4
- package/dist/{registry-BBkWFCl8.js → registry-BPwuOP2O.js} +5 -8
- package/dist/{resolve-B38MkHXE.js → resolve-BK29bBry.js} +3 -3
- package/dist/rule-DAxQY-1h.js +20 -0
- package/dist/{runner-11h8PrHh.js → runner-BcAE-cJm.js} +10 -10
- package/dist/{sandbox-egress-signals-CTcACAtJ.js → sandbox-egress-signals-C-q0go5b.js} +1 -1
- package/dist/{schedule-DWxZ3kja.js → schedule-BLJ476XQ.js} +209 -43
- package/dist/{schema-obw5jvR4.js → schema-BLgSZXcL.js} +255 -49
- package/dist/{schema-DriSvB40.d.ts → schema-DYcJeV7d.d.ts} +701 -62
- package/dist/{service-account-Zc5bUcIJ.js → service-account-gN0zqf0S.js} +68 -68
- package/dist/{service-account-Bx93N1n1.js → service-account-iJoCtkHR.js} +3 -3
- package/dist/{skills-C8Npu5zO.js → skills-BoZ80epJ.js} +2 -2
- package/dist/{slack-conversation-unfurl-DlRVA02H.js → slack-conversation-unfurl-CogYrITA.js} +8 -10
- package/dist/{spawn-CXr58R0x.js → spawn-Dk92r7mX.js} +5 -6
- package/dist/{state-CGrGVeQC.js → state-DH3Cmgp3.js} +4 -4
- package/dist/{stop-DYzjRf2U.js → stop-CYsfc0Ed.js} +1063 -313
- package/dist/{store-D4FQ1Nml.js → store-DmmMIrQi.js} +5 -5
- package/dist/{task-queue-CaZffYaH.js → task-queue-C_zldF5J.js} +3 -3
- package/dist/{task-runner-Dm7BHbGp.js → task-runner-C7oCJQIx.js} +20 -13
- package/dist/{thread-context-Dyj1KWaY.js → thread-context-BW2BsQbH.js} +13 -11
- package/dist/{turn-session-routing-CD0BRCex.js → turn-session-routing-Xh_2nSQe.js} +52 -54
- package/dist/{validation-DxVNIxA0.js → validation-DrJd0nnq.js} +1 -1
- package/dist/{version-Cr7Z71yG.js → version-CNKZ8owc.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warmup-C6LOZ2d2.js → warmup-BWdHew2H.js} +14287 -7195
- package/dist/{web-message-id-BT8Mg8LL.js → web-message-id-Ch5dPq-a.js} +32 -144
- package/dist/{worker-CUBtu1Li.js → worker-t9qpu_Zx.js} +7 -8
- package/migrations/0126_artifact_drop_public.sql +8 -0
- package/migrations/0127_artifact_path.sql +4 -0
- package/migrations/0128_artifact_path_index.sql +1 -0
- package/migrations/0129_review_item_answered_index.sql +1 -0
- package/migrations/0130_review_item_status_index.sql +1 -0
- package/migrations/0131_brief_outcome_status.sql +1 -0
- package/migrations/0132_brief_outcome_status_backfill.sql +7 -0
- package/migrations/0133_brief_created_at_index.sql +1 -0
- package/migrations/0134_slack_person_search_index.sql +1 -0
- package/migrations/0135_code_change_size.sql +3 -0
- package/migrations/0136_merge_conflict_notice_dismiss.sql +16 -0
- package/migrations/0137_inbox_snoozes.sql +27 -0
- package/migrations/0138_code_change_search_index.sql +2 -0
- package/migrations/0139_review_item_owner.sql +22 -0
- package/migrations/0140_review_item_owner_index.sql +1 -0
- package/migrations/0141_memory_core_adoption.sql +89 -0
- package/migrations/0142_memory_core_indexes.sql +17 -0
- package/migrations/meta/0126_snapshot.json +5488 -0
- package/migrations/meta/0127_snapshot.json +5519 -0
- package/migrations/meta/0128_snapshot.json +5519 -0
- package/migrations/meta/0129_snapshot.json +5547 -0
- package/migrations/meta/0130_snapshot.json +5563 -0
- package/migrations/meta/0131_snapshot.json +5569 -0
- package/migrations/meta/0132_snapshot.json +5569 -0
- package/migrations/meta/0133_snapshot.json +5590 -0
- package/migrations/meta/0134_snapshot.json +5606 -0
- package/migrations/meta/0135_snapshot.json +5624 -0
- package/migrations/meta/0136_snapshot.json +5624 -0
- package/migrations/meta/0137_snapshot.json +5864 -0
- package/migrations/meta/0138_snapshot.json +5894 -0
- package/migrations/meta/0139_snapshot.json +5898 -0
- package/migrations/meta/0140_snapshot.json +5919 -0
- package/migrations/meta/0141_snapshot.json +6429 -0
- package/migrations/meta/0142_snapshot.json +6457 -0
- package/migrations/meta/_journal.json +120 -1
- package/package.json +6 -7
- package/dist/result-BaqSZcJb.js +0 -548
- package/dist/session-stop-BfY4rhJs.js +0 -4255
- package/dist/turn-user-message-9IxeEv5v.js +0 -364
- package/dist/users-CaUAYMb3.js +0 -181
- package/dist/viewer-AHldghAD.js +0 -212
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { b as setSpanAttributes, h as logWarn } from "./logging-FjclQsXu.js";
|
|
2
|
+
import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-BPwuOP2O.js";
|
|
3
|
+
import { i as getStateAdapter } from "./adapter-B1wujchl.js";
|
|
4
|
+
import { B as withLock, L as MUTATION_LOCK_TTL_MS, n as botConfig, z as fenceLock } from "./config-BrXDQefC.js";
|
|
5
|
+
import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-DH3Cmgp3.js";
|
|
5
6
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
6
|
-
import
|
|
7
|
+
import * as z from "zod";
|
|
7
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8
9
|
import { randomUUID } from "node:crypto";
|
|
9
|
-
import { sourceSchema } from "@sentry/junior-plugin-api";
|
|
10
|
+
import { destinationSchema, sourceSchema } from "@sentry/junior-plugin-api";
|
|
10
11
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
11
12
|
import { Client } from "@modelcontextprotocol/sdk/client";
|
|
12
13
|
import { StreamableHTTPClientTransport, StreamableHTTPError } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
@@ -117,60 +118,55 @@ function parseSessionIndex(value) {
|
|
|
117
118
|
return [];
|
|
118
119
|
}
|
|
119
120
|
}
|
|
121
|
+
const optionalStoredString = z.string().optional().catch(void 0);
|
|
122
|
+
const mcpAuthSessionSchema = z.object({
|
|
123
|
+
schemaVersion: z.literal(2),
|
|
124
|
+
authSessionId: z.string(),
|
|
125
|
+
provider: z.string(),
|
|
126
|
+
userId: z.string(),
|
|
127
|
+
conversationId: z.string(),
|
|
128
|
+
destination: destinationSchema.optional(),
|
|
129
|
+
source: sourceSchema.optional(),
|
|
130
|
+
sessionId: z.string(),
|
|
131
|
+
userMessage: z.string(),
|
|
132
|
+
channelId: optionalStoredString,
|
|
133
|
+
threadTs: optionalStoredString,
|
|
134
|
+
toolChannelId: optionalStoredString,
|
|
135
|
+
configuration: z.record(z.string(), z.unknown()).optional().catch(void 0),
|
|
136
|
+
authorizationUrl: optionalStoredString,
|
|
137
|
+
codeVerifier: optionalStoredString,
|
|
138
|
+
createdAtMs: z.number(),
|
|
139
|
+
updatedAtMs: z.number()
|
|
140
|
+
});
|
|
120
141
|
function parseMcpAuthSession(value) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const parsed = value;
|
|
124
|
-
if (parsed["schemaVersion"] !== 2 || typeof parsed["authSessionId"] !== "string" || typeof parsed["provider"] !== "string" || typeof parsed["userId"] !== "string" || typeof parsed["conversationId"] !== "string" || typeof parsed["sessionId"] !== "string" || typeof parsed["userMessage"] !== "string" || typeof parsed["createdAtMs"] !== "number" || typeof parsed["updatedAtMs"] !== "number") return;
|
|
125
|
-
const destination = parsed["destination"] === void 0 ? void 0 : parseDestination(parsed["destination"]);
|
|
126
|
-
if (parsed["destination"] !== void 0 && !destination) return;
|
|
127
|
-
const source = parsed["source"] === void 0 ? void 0 : sourceSchema.safeParse(parsed["source"]);
|
|
128
|
-
if (parsed["source"] !== void 0 && (!source || !source.success)) return;
|
|
129
|
-
return {
|
|
130
|
-
schemaVersion: 2,
|
|
131
|
-
authSessionId: parsed["authSessionId"],
|
|
132
|
-
provider: parsed["provider"],
|
|
133
|
-
userId: parsed["userId"],
|
|
134
|
-
conversationId: parsed["conversationId"],
|
|
135
|
-
...destination ? { destination } : void 0,
|
|
136
|
-
...source?.success ? { source: source.data } : void 0,
|
|
137
|
-
sessionId: parsed["sessionId"],
|
|
138
|
-
userMessage: parsed["userMessage"],
|
|
139
|
-
createdAtMs: parsed["createdAtMs"],
|
|
140
|
-
updatedAtMs: parsed["updatedAtMs"],
|
|
141
|
-
...typeof parsed["channelId"] === "string" ? { channelId: parsed["channelId"] } : void 0,
|
|
142
|
-
...typeof parsed["threadTs"] === "string" ? { threadTs: parsed["threadTs"] } : void 0,
|
|
143
|
-
...typeof parsed["toolChannelId"] === "string" ? { toolChannelId: parsed["toolChannelId"] } : void 0,
|
|
144
|
-
...isRecord(parsed["configuration"]) ? { configuration: parsed["configuration"] } : void 0,
|
|
145
|
-
...typeof parsed["authorizationUrl"] === "string" ? { authorizationUrl: parsed["authorizationUrl"] } : void 0,
|
|
146
|
-
...typeof parsed["codeVerifier"] === "string" ? { codeVerifier: parsed["codeVerifier"] } : void 0
|
|
147
|
-
};
|
|
148
|
-
} catch {
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
142
|
+
const parsed = mcpAuthSessionSchema.safeParse(value);
|
|
143
|
+
return parsed.success ? parsed.data : void 0;
|
|
151
144
|
}
|
|
145
|
+
const serverSessionSchema = z.object({
|
|
146
|
+
sessionId: z.string(),
|
|
147
|
+
updatedAtMs: z.number()
|
|
148
|
+
});
|
|
152
149
|
function parseServerSession(value) {
|
|
153
150
|
if (typeof value !== "string") return;
|
|
154
151
|
try {
|
|
155
|
-
const parsed = JSON.parse(value);
|
|
156
|
-
|
|
157
|
-
return {
|
|
158
|
-
sessionId: parsed["sessionId"],
|
|
159
|
-
updatedAtMs: parsed["updatedAtMs"]
|
|
160
|
-
};
|
|
152
|
+
const parsed = serverSessionSchema.safeParse(JSON.parse(value));
|
|
153
|
+
return parsed.success ? parsed.data : void 0;
|
|
161
154
|
} catch {
|
|
162
155
|
return;
|
|
163
156
|
}
|
|
164
157
|
}
|
|
158
|
+
const storedOAuthClientInformationSchema$1 = z.custom((value) => typeof value === "object" && value !== null);
|
|
159
|
+
const storedOAuthDiscoveryStateSchema$1 = z.custom((value) => typeof value === "object" && value !== null);
|
|
160
|
+
const storedOAuthTokensSchema$1 = z.custom((value) => typeof value === "object" && value !== null);
|
|
161
|
+
const storedCredentialsSchema = z.object({
|
|
162
|
+
clientInformation: storedOAuthClientInformationSchema$1.optional().catch(void 0),
|
|
163
|
+
discoveryState: storedOAuthDiscoveryStateSchema$1.optional().catch(void 0),
|
|
164
|
+
tokens: storedOAuthTokensSchema$1.optional().catch(void 0)
|
|
165
|
+
});
|
|
165
166
|
function parseStoredCredentials(value) {
|
|
166
167
|
try {
|
|
167
|
-
const parsed = typeof value === "string" ? JSON.parse(value) : value;
|
|
168
|
-
|
|
169
|
-
return {
|
|
170
|
-
...isRecord(parsed["clientInformation"]) ? { clientInformation: parsed["clientInformation"] } : void 0,
|
|
171
|
-
...isRecord(parsed["discoveryState"]) ? { discoveryState: parsed.discoveryState } : void 0,
|
|
172
|
-
...isRecord(parsed["tokens"]) ? { tokens: parsed["tokens"] } : void 0
|
|
173
|
-
};
|
|
168
|
+
const parsed = storedCredentialsSchema.safeParse(typeof value === "string" ? JSON.parse(value) : value);
|
|
169
|
+
return parsed.success ? parsed.data : void 0;
|
|
174
170
|
} catch {
|
|
175
171
|
return;
|
|
176
172
|
}
|
|
@@ -566,18 +562,21 @@ function serviceAccountKey(provider) {
|
|
|
566
562
|
function updateLockKey(provider) {
|
|
567
563
|
return `${serviceAccountKey(provider)}:update`;
|
|
568
564
|
}
|
|
565
|
+
const storedOAuthClientInformationSchema = z.custom((value) => typeof value === "object" && value !== null);
|
|
566
|
+
const storedOAuthDiscoveryStateSchema = z.custom((value) => typeof value === "object" && value !== null);
|
|
567
|
+
const storedOAuthTokensSchema = z.custom((value) => typeof value === "object" && value !== null);
|
|
568
|
+
const credentialsSchema = z.object({
|
|
569
|
+
clientInformation: storedOAuthClientInformationSchema,
|
|
570
|
+
connectedAtMs: z.number(),
|
|
571
|
+
connectedBy: z.string().optional().catch(void 0),
|
|
572
|
+
discoveryState: storedOAuthDiscoveryStateSchema.optional().catch(void 0),
|
|
573
|
+
redirectUrl: z.string(),
|
|
574
|
+
tokens: storedOAuthTokensSchema
|
|
575
|
+
});
|
|
569
576
|
function parseCredentials(value) {
|
|
570
577
|
try {
|
|
571
|
-
const parsed = typeof value === "string" ? JSON.parse(value) : value;
|
|
572
|
-
|
|
573
|
-
return {
|
|
574
|
-
clientInformation: parsed["clientInformation"],
|
|
575
|
-
connectedAtMs: parsed["connectedAtMs"],
|
|
576
|
-
...typeof parsed["connectedBy"] === "string" ? { connectedBy: parsed["connectedBy"] } : void 0,
|
|
577
|
-
...isRecord(parsed["discoveryState"]) ? { discoveryState: parsed.discoveryState } : void 0,
|
|
578
|
-
redirectUrl: parsed["redirectUrl"],
|
|
579
|
-
tokens: parsed["tokens"]
|
|
580
|
-
};
|
|
578
|
+
const parsed = credentialsSchema.safeParse(typeof value === "string" ? JSON.parse(value) : value);
|
|
579
|
+
return parsed.success ? parsed.data : void 0;
|
|
581
580
|
} catch {
|
|
582
581
|
return;
|
|
583
582
|
}
|
|
@@ -710,16 +709,17 @@ function createMcpServiceAccountClientProvider(provider, connected) {
|
|
|
710
709
|
function signInKey(state) {
|
|
711
710
|
return `${SIGN_IN_KEY_PREFIX}:${state}`;
|
|
712
711
|
}
|
|
712
|
+
const signInSchema = z.object({
|
|
713
|
+
clientInformation: storedOAuthClientInformationSchema,
|
|
714
|
+
codeVerifier: z.string(),
|
|
715
|
+
discoveryState: storedOAuthDiscoveryStateSchema.optional().catch(void 0),
|
|
716
|
+
provider: z.string(),
|
|
717
|
+
redirectUrl: z.string(),
|
|
718
|
+
startedBy: z.string().optional().catch(void 0)
|
|
719
|
+
});
|
|
713
720
|
function parseSignIn(value) {
|
|
714
|
-
|
|
715
|
-
return
|
|
716
|
-
clientInformation: value["clientInformation"],
|
|
717
|
-
codeVerifier: value["codeVerifier"],
|
|
718
|
-
...isRecord(value["discoveryState"]) ? { discoveryState: value.discoveryState } : void 0,
|
|
719
|
-
provider: value["provider"],
|
|
720
|
-
redirectUrl: value["redirectUrl"],
|
|
721
|
-
...typeof value["startedBy"] === "string" ? { startedBy: value["startedBy"] } : void 0
|
|
722
|
-
};
|
|
721
|
+
const parsed = signInSchema.safeParse(value);
|
|
722
|
+
return parsed.success ? parsed.data : void 0;
|
|
723
723
|
}
|
|
724
724
|
/** Build an OAuth client provider that keeps sign-in state in memory. */
|
|
725
725
|
function signInProvider(input) {
|
|
@@ -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-gN0zqf0S.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DMY3VV-D.js";
|
|
3
|
+
import { n as disconnectStateAdapter } from "./adapter-B1wujchl.js";
|
|
4
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
// src/cli/service-account.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { s as skillRoots } from "./package-discovery-DD9vencX.js";
|
|
3
|
-
import { h as logWarn } from "./logging-
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
+
import { h as logWarn } from "./logging-FjclQsXu.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DMY3VV-D.js";
|
|
5
5
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
6
6
|
import * as z from "zod";
|
|
7
7
|
import path from "node:path";
|
package/dist/{slack-conversation-unfurl-DlRVA02H.js → slack-conversation-unfurl-CogYrITA.js}
RENAMED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Pt as readActorIdentity, a as getConversationStore, hn as readConversationAccessFromSql, o as getDb, s as getSqlExecutor, z as getConversationIdByProviderConversation } from "./db-DTxzH7u5.js";
|
|
3
3
|
import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-BsBdxDXQ.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
9
|
-
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-
|
|
10
|
-
import
|
|
11
|
-
import "./store-D4FQ1Nml.js";
|
|
4
|
+
import { Ho as unfurlSlackLinks, Ls as parseDashboardConversationLink, Tt as deferConversationMove, ds as formatSlackLink, ja as readLatestConversationBrief, ss as getWorkspaceTeamId, us as escapeSlackMrkdwnText, zo as postSlackEphemeralMessage } from "./projection-Cns7XwWa.js";
|
|
5
|
+
import { Hi as checkSlackChannelReadAccess, hn as lookupSlackUserProfile, mn as lookupSlackBot } from "./warmup-BWdHew2H.js";
|
|
6
|
+
import { F as createCache, n as botConfig } from "./config-BrXDQefC.js";
|
|
7
|
+
import { E as withSpan } from "./logging-FjclQsXu.js";
|
|
8
|
+
import { t as runWithSlackInstallation } from "./adapter-context-G2M0y6rP.js";
|
|
9
|
+
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-DNXSC9So.js";
|
|
10
|
+
import "./store-DmmMIrQi.js";
|
|
12
11
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
13
|
-
import { n as botConfig } from "./config-Dkt2Le2b.js";
|
|
14
12
|
import * as z from "zod";
|
|
15
13
|
// src/chat/ingress/workspace-membership.ts
|
|
16
14
|
const MEMBER_TTL_MS = 3e5;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { t as readConversationLineage } from "./lineage-
|
|
5
|
-
import { _ as getConversationWorkState } from "./store-
|
|
6
|
-
import {
|
|
7
|
-
import { A as getAgentInvocationMessageId, E as getAgentInvocationId, L as getUnnamedAgentConversationId } from "./turn-user-message-9IxeEv5v.js";
|
|
2
|
+
import { N as actorFromRun, P as toolInvocationDestination } from "./agent-runner-BVHPUIc8.js";
|
|
3
|
+
import { n as botConfig } from "./config-BrXDQefC.js";
|
|
4
|
+
import { t as readConversationLineage } from "./lineage-BHAMpNKr.js";
|
|
5
|
+
import { _ as getConversationWorkState } from "./store-DmmMIrQi.js";
|
|
6
|
+
import { Br as getAgentInvocationId, Fn as createAndEnqueueAgentInvocation, Hr as getUnnamedAgentConversationId, Vr as getAgentInvocationMessageId, Yn as getAgentInvocation, ar as getAgentBinding, tr as AgentDepthLimitError } from "./warmup-BWdHew2H.js";
|
|
8
7
|
// src/chat/agent-invocations/spawn.ts
|
|
9
8
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
10
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
3
|
-
import { o as getDb } from "./db-
|
|
4
|
-
import {
|
|
1
|
+
import { i as getChatConfig } from "./config-BrXDQefC.js";
|
|
2
|
+
import { h as logWarn } from "./logging-FjclQsXu.js";
|
|
3
|
+
import { o as getDb } from "./db-DTxzH7u5.js";
|
|
4
|
+
import { K as juniorUsers } from "./executor-DqTiYj9S.js";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:crypto";
|
|
6
6
|
import { eq } from "drizzle-orm";
|
|
7
7
|
// src/chat/conversations/legacy-web-actor-id.ts
|