@sentry/junior 0.282.0 → 0.284.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-BAqo7eOH.js → adapter-CW5UW7vL.js} +1 -1
- package/dist/{admin-DbWpMHh6.js → admin-DUWN8zZX.js} +1 -1
- package/dist/{agent-runner-h4CDcnDV.js → agent-runner-Cqr21pOU.js} +53 -25
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -6
- package/dist/api.d.ts +1 -1
- package/dist/api.js +167 -59
- package/dist/{app-B-0wwAxr.d.ts → app-CvGalMxi.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +34 -31
- package/dist/{assistant-reply-4Wvo95-N.js → assistant-reply-CFE-OZMS.js} +1 -1
- package/dist/{automation-sIsmIXH7.js → automation-Zvx_I9Z5.js} +2 -2
- package/dist/{background-compaction-queue-CoWqScCC.js → background-compaction-queue-CHFzrQbS.js} +2 -2
- package/dist/{briefs-CMiotFo9.js → briefs-Cx7mkfSk.js} +4 -4
- package/dist/{catalog-runtime-Cpje_Uic.js → catalog-runtime-dKOVbR7l.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +30 -4
- package/dist/{client-BHgCXeaF.js → client-CMyH5rDz.js} +2 -2
- package/dist/{config-DBdBimZ9.js → config-Dt3CpG17.js} +97 -4
- package/dist/{connections-DjY72_uF.js → connections-CCHPybZP.js} +10 -10
- package/dist/{conversation-DNtcULyX.js → conversation-DdT7SNar.js} +3 -1
- package/dist/{conversation-pending-messages-LlFnr9-m.js → conversation-pending-messages-Dct5pheX.js} +1 -1
- package/dist/{conversation-privacy-DiDh9KE4.js → conversation-privacy-BpHHhEVp.js} +1 -1
- package/dist/{credential-sync-DUrQwccr.js → credential-sync-BBPw8dam.js} +13 -13
- package/dist/{db-hQsoB16L.d.ts → db-D7CCwAo8.d.ts} +1 -1
- package/dist/{executor-CGqJCxgR.js → executor-CyIwHz9r.js} +26 -3
- package/dist/instrumentation.js +37 -13
- package/dist/{logging-DapIaJAi.js → logging-Qo-7xGp1.js} +1 -1
- package/dist/{media-Dq9_svfQ.js → media-Bu9C6lz0.js} +3 -1
- package/dist/{message-BjN5sKad.js → message-DFbtOWqv.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DVHKrjJP.js → oauth-callback-server-BB1gixWo.js} +2 -2
- package/dist/{projection-ii_OYu6z.js → projection-0UcUeuzn.js} +319 -18
- package/dist/{prompt-DI6KCtwb.js → prompt-CCtaGgbI.js} +1 -1
- package/dist/push-endpoint-CO-nomUd.js +36 -0
- package/dist/{registry-DpjG3yS-.js → registry-DOnPkI8g.js} +1 -1
- package/dist/{resolve-iMW9Dgo2.js → resolve-Di3omymY.js} +3 -3
- package/dist/{result-BrlvfyIj.js → result-NvndYzCb.js} +9 -9
- package/dist/{runner-Bg9mr2pB.js → runner-CnX_dTKw.js} +11 -11
- package/dist/{sandbox-egress-signals-Bd3lb_Wd.js → sandbox-egress-signals-CtxLJmmg.js} +1 -1
- package/dist/{cadence-R7Em4RjE.js → schedule-BTp__wrw.js} +81 -1
- package/dist/{schema-CsqJzkP5.d.ts → schema-B017enNE.d.ts} +61 -1
- package/dist/{schema-BN34Jy-U.js → schema-Bn3miEd_.js} +42 -4
- package/dist/{service-account-Dfl9Pitm.js → service-account-KhZIqXRi.js} +3 -3
- package/dist/{service-account-Bd1348kw.js → service-account-ewDAx4Mx.js} +3 -3
- package/dist/{session-stop-CVEEx_YD.js → session-stop-D_1SysjC.js} +12 -12
- package/dist/{skills-DqUUuf4L.js → skills-CKyotM4g.js} +2 -2
- package/dist/{spawn-e7rQs14T.js → spawn-D5D2MQdz.js} +2 -2
- package/dist/{stop-DtpBUUJq.js → stop-BSKRTaRS.js} +71 -122
- package/dist/{store-nETG4KVg.js → store-G3S0kWSD.js} +4 -4
- package/dist/{store-nu3Xx08K.js → store-ymkEUWe4.js} +3 -3
- package/dist/{task-queue-CYje8WKs.js → task-queue-BcOHzXxe.js} +3 -3
- package/dist/{task-runner-CwegN45x.js → task-runner-B65cDumh.js} +18 -9
- package/dist/{thread-state-BDaMl9yd.js → thread-state-D6rNGQu9.js} +4 -4
- package/dist/{turn-failure-response-CV06tN_R.js → turn-failure-response-BlO4nuDJ.js} +7 -7
- package/dist/{turn-lifecycle-CF2N7ud5.js → turn-lifecycle-BQ8ETk63.js} +1 -1
- package/dist/{turn-session-routing-BIJGJjVh.js → turn-session-routing-D_GXfcAG.js} +9 -9
- package/dist/{validation-DXvxEEjq.js → validation-DJG_wrg2.js} +1 -1
- package/dist/{version-CzEk1KBX.js → version-i1An1eTS.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-C2PztlYX.js → viewer-BlpnzZZa.js} +4 -4
- package/dist/{work-BM_L0Pv9.js → work-BgCW3FDC.js} +11 -11
- package/dist/{worker-2no53G60.js → worker-BJz1mwYt.js} +6 -6
- package/migrations/0081_conversation_pin_position.sql +1 -0
- package/migrations/0082_push_notifications.sql +14 -0
- package/migrations/meta/0081_snapshot.json +4271 -0
- package/migrations/meta/0082_snapshot.json +4373 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +6 -4
package/dist/cli/main.js
CHANGED
|
@@ -25,13 +25,13 @@ async function runChat(argv, pluginSet) {
|
|
|
25
25
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
26
26
|
}
|
|
27
27
|
async function runAdmin(argv) {
|
|
28
|
-
return await (await import("../admin-
|
|
28
|
+
return await (await import("../admin-DUWN8zZX.js")).runAdmin(argv);
|
|
29
29
|
}
|
|
30
30
|
async function runServiceAccount(argv) {
|
|
31
|
-
return await (await import("../service-account-
|
|
31
|
+
return await (await import("../service-account-ewDAx4Mx.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-Cx7mkfSk.js")).runBriefs(argv);
|
|
35
35
|
}
|
|
36
36
|
function topLevelCommand(argv) {
|
|
37
37
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as getDb } from "../viewer-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { Rn as setPlugins, za as createPluginLogger, zn as validatePlugins } from "../projection-0UcUeuzn.js";
|
|
2
|
+
import { S as getDb } from "../viewer-BlpnzZZa.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-dKOVbR7l.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DJG_wrg2.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.js";
|
|
6
6
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
3
|
-
import { t as disconnectStateAdapter } from "../adapter-
|
|
4
|
-
import { n as resolve } from "../resolve-
|
|
1
|
+
import { mi as create } from "../projection-0UcUeuzn.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-dKOVbR7l.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-CW5UW7vL.js";
|
|
4
|
+
import { n as resolve } from "../resolve-Di3omymY.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_RUNTIME = "node22";
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-Dt3CpG17.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-CyIwHz9r.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-DOnPkI8g.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -150,6 +150,28 @@ async function migrateSchema(executor) {
|
|
|
150
150
|
return migrationResult(migrations, lockedState);
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
+
// src/cli/upgrade/database-url.ts
|
|
154
|
+
const NEON_POOLER_SUFFIX = "-pooler";
|
|
155
|
+
/**
|
|
156
|
+
* Pick the database URL for `junior upgrade` migrations.
|
|
157
|
+
*
|
|
158
|
+
* The migration lock is a session advisory lock. A transaction-mode pooler,
|
|
159
|
+
* such as Neon's `-pooler` endpoint, keeps that lock on its server session
|
|
160
|
+
* after the client leaves. The next upgrade on another session then waits,
|
|
161
|
+
* and one on the same session takes the lock again. For Neon, use
|
|
162
|
+
* the direct endpoint: `DATABASE_URL_UNPOOLED` when the Vercel integration
|
|
163
|
+
* sets it, else the `DATABASE_URL` host without the `-pooler` suffix.
|
|
164
|
+
*/
|
|
165
|
+
function readMigrationDatabaseUrl(args) {
|
|
166
|
+
if (args.driver !== "neon") return args.databaseUrl;
|
|
167
|
+
const unpooledUrl = args.env.DATABASE_URL_UNPOOLED?.trim();
|
|
168
|
+
if (unpooledUrl) return unpooledUrl;
|
|
169
|
+
const url = new URL(args.databaseUrl);
|
|
170
|
+
const [endpoint, ...domain] = url.hostname.split(".");
|
|
171
|
+
if (!endpoint?.endsWith(NEON_POOLER_SUFFIX) || !url.hostname.endsWith(".neon.tech")) return args.databaseUrl;
|
|
172
|
+
url.hostname = [endpoint.slice(0, -7), ...domain].join(".");
|
|
173
|
+
return url.toString();
|
|
174
|
+
}
|
|
153
175
|
// src/chat/plugins/migrations.ts
|
|
154
176
|
function migrationTable(pluginName) {
|
|
155
177
|
return `__drizzle_${pluginName.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").slice(0, 32)}_${createHash("sha256").update(pluginName).digest("hex").slice(0, 8)}`;
|
|
@@ -358,7 +380,11 @@ async function runDatabaseMigrations(context, io) {
|
|
|
358
380
|
async function runUpgrade(io = DEFAULT_IO, options = {}) {
|
|
359
381
|
const { sql } = getChatConfig();
|
|
360
382
|
const sqlExecutor = createJuniorSqlExecutor({
|
|
361
|
-
connectionString:
|
|
383
|
+
connectionString: readMigrationDatabaseUrl({
|
|
384
|
+
databaseUrl: sql.databaseUrl,
|
|
385
|
+
driver: sql.driver,
|
|
386
|
+
env: process.env
|
|
387
|
+
}),
|
|
362
388
|
driver: sql.driver,
|
|
363
389
|
statementTimeoutMs: false
|
|
364
390
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
2
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
1
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-Qo-7xGp1.js";
|
|
2
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-BpHHhEVp.js";
|
|
3
3
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
4
4
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
5
5
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -1,7 +1,96 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { c as resolveGatewayModel, w as toOptionalTrimmed } from "./client-
|
|
2
|
+
import { c as resolveGatewayModel, w as toOptionalTrimmed } from "./client-CMyH5rDz.js";
|
|
3
3
|
import { AwsClient } from "aws4fetch";
|
|
4
|
+
import { del, get, put } from "@vercel/blob";
|
|
4
5
|
import * as z from "zod";
|
|
6
|
+
// src/chat/attachments/memory.ts
|
|
7
|
+
/**
|
|
8
|
+
* Store attachments in process memory, for tests.
|
|
9
|
+
*
|
|
10
|
+
* Objects are lost when the process stops, and each process has its own
|
|
11
|
+
* copy. Do not use this provider for deployed apps.
|
|
12
|
+
*/
|
|
13
|
+
function createMemoryAttachmentStorage() {
|
|
14
|
+
const objects = /* @__PURE__ */ new Map();
|
|
15
|
+
return {
|
|
16
|
+
objects,
|
|
17
|
+
provider: "memory",
|
|
18
|
+
async put(input) {
|
|
19
|
+
objects.set(input.key, Buffer.from(input.body));
|
|
20
|
+
},
|
|
21
|
+
async get(key, range) {
|
|
22
|
+
const body = objects.get(key);
|
|
23
|
+
if (!body) return null;
|
|
24
|
+
const bytes = range ? body.subarray(range.start, range.end + 1) : body;
|
|
25
|
+
return new ReadableStream({ start(controller) {
|
|
26
|
+
controller.enqueue(new Uint8Array(bytes));
|
|
27
|
+
controller.close();
|
|
28
|
+
} });
|
|
29
|
+
},
|
|
30
|
+
async delete(keys) {
|
|
31
|
+
for (const key of keys) objects.delete(key);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
// src/chat/attachments/vercel.ts
|
|
36
|
+
/** Store private conversation attachments in Vercel Blob. */
|
|
37
|
+
function createVercelAttachmentStorage() {
|
|
38
|
+
return {
|
|
39
|
+
provider: "vercel-blob",
|
|
40
|
+
async put(input) {
|
|
41
|
+
await put(input.key, input.body, {
|
|
42
|
+
access: "private",
|
|
43
|
+
addRandomSuffix: false,
|
|
44
|
+
allowOverwrite: true,
|
|
45
|
+
contentType: input.contentType
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
async get(key, range) {
|
|
49
|
+
const result = await get(key, {
|
|
50
|
+
access: "private",
|
|
51
|
+
useCache: false,
|
|
52
|
+
...range ? { headers: { range: rangeHeader(range) } } : void 0
|
|
53
|
+
});
|
|
54
|
+
if (result?.statusCode !== 200) return null;
|
|
55
|
+
if (range && !result.headers.get("content-range")) {
|
|
56
|
+
await result.stream.cancel();
|
|
57
|
+
throw new Error("Vercel Blob get ignored the byte range");
|
|
58
|
+
}
|
|
59
|
+
return result.stream;
|
|
60
|
+
},
|
|
61
|
+
async delete(keys) {
|
|
62
|
+
if (keys.length === 0) return;
|
|
63
|
+
await del(keys);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
// src/chat/attachments/storage.ts
|
|
68
|
+
/** Build the HTTP `Range` request header value for one byte range. */
|
|
69
|
+
function rangeHeader(range) {
|
|
70
|
+
return `bytes=${range.start}-${range.end}`;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Return attachment storage for the configured provider.
|
|
74
|
+
*
|
|
75
|
+
* Callers do not choose a provider. Chat config decides it.
|
|
76
|
+
*/
|
|
77
|
+
function getAttachmentStorage() {
|
|
78
|
+
return createAttachmentStorage(getChatConfig().attachmentStorage);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Create attachment storage for one provider config.
|
|
82
|
+
*
|
|
83
|
+
* Runtime code uses `getAttachmentStorage()`. Call this only to test a
|
|
84
|
+
* provider adapter with its own config.
|
|
85
|
+
*/
|
|
86
|
+
function createAttachmentStorage(config) {
|
|
87
|
+
switch (config.provider) {
|
|
88
|
+
case "vercel-blob": return createVercelAttachmentStorage();
|
|
89
|
+
case "s3": return createS3AttachmentStorage(config.s3);
|
|
90
|
+
case "memory": return createMemoryAttachmentStorage();
|
|
91
|
+
default: throw new Error(`Unsupported attachment storage provider: ${String(config.provider)}`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
5
94
|
// src/chat/attachments/s3.ts
|
|
6
95
|
function readRequiredSetting(env, name) {
|
|
7
96
|
const value = toOptionalTrimmed(env[name]);
|
|
@@ -62,13 +151,17 @@ function createS3AttachmentStorage(config) {
|
|
|
62
151
|
method: "PUT"
|
|
63
152
|
}), "put");
|
|
64
153
|
},
|
|
65
|
-
async get(key) {
|
|
66
|
-
const response = await client.fetch(objectUrl(config, key));
|
|
154
|
+
async get(key, range) {
|
|
155
|
+
const response = await client.fetch(objectUrl(config, key), range ? { headers: { range: rangeHeader(range) } } : void 0);
|
|
67
156
|
if (response.status === 404) {
|
|
68
157
|
await drain(response);
|
|
69
158
|
return null;
|
|
70
159
|
}
|
|
71
160
|
if (!response.ok) await expectOk(response, "get");
|
|
161
|
+
if (range && response.status !== 206) {
|
|
162
|
+
await drain(response);
|
|
163
|
+
throw new Error(`S3 get ignored the byte range with status ${response.status}`);
|
|
164
|
+
}
|
|
72
165
|
return response.body;
|
|
73
166
|
},
|
|
74
167
|
async delete(keys) {
|
|
@@ -483,4 +576,4 @@ function setSlackReactionConfig(overrides) {
|
|
|
483
576
|
if (overrides.processingReactionEmoji !== void 0) chatConfig.slack.processingReactionEmoji = parseReactionEmoji("processingReactionEmoji", overrides.processingReactionEmoji, chatConfig.slack.processingReactionEmoji);
|
|
484
577
|
if (overrides.completedReactionEmoji !== void 0) chatConfig.slack.completedReactionEmoji = parseReactionEmoji("completedReactionEmoji", overrides.completedReactionEmoji, chatConfig.slack.completedReactionEmoji);
|
|
485
578
|
}
|
|
486
|
-
export { toPiReasoningLevel as _, getRuntimeMetadata as a, getSlackClientSecret as c, restoreRuntimeConfig as d, setBotModelConfig as f, TURN_REASONING_LEVELS as g, snapshotRuntimeConfig as h, getChatConfig as i, getSlackSigningSecret as l, setSlackReactionConfig as m, botConfig as n, getSlackBotToken as o, setRuntimeLimits as p, config_exports as r, getSlackClientId as s, DEFAULT_SQL_STATEMENT_TIMEOUT_MS as t, resetRuntimeConfig as u, normalizeSlackEmojiName as v,
|
|
579
|
+
export { toPiReasoningLevel as _, getRuntimeMetadata as a, getSlackClientSecret as c, restoreRuntimeConfig as d, setBotModelConfig as f, TURN_REASONING_LEVELS as g, snapshotRuntimeConfig as h, getChatConfig as i, getSlackSigningSecret as l, setSlackReactionConfig as m, botConfig as n, getSlackBotToken as o, setRuntimeLimits as p, config_exports as r, getSlackClientId as s, DEFAULT_SQL_STATEMENT_TIMEOUT_MS as t, resetRuntimeConfig as u, normalizeSlackEmojiName as v, getAttachmentStorage as y };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { C as getSqlExecutor, R as deleteProviderIdentityForSlackUser, y as getConversationEventStore, z as deleteProviderIdentityForUser } from "./viewer-
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-
|
|
7
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
-
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
9
|
-
import { m as ensureConversationWake, w as requestConversationWork } from "./store-
|
|
10
|
-
import { n as resolveTurnSessionRouting } from "./turn-session-routing-
|
|
1
|
+
import { Ti as startOAuthFlow, X as loadTurnCheckpoint, et as failTurnRecord, tt as getTurnRecord } from "./projection-0UcUeuzn.js";
|
|
2
|
+
import { n as botConfig } from "./config-Dt3CpG17.js";
|
|
3
|
+
import { C as getSqlExecutor, R as deleteProviderIdentityForSlackUser, y as getConversationEventStore, z as deleteProviderIdentityForUser } from "./viewer-BlpnzZZa.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-DOnPkI8g.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.js";
|
|
6
|
+
import { c as deleteMcpAuthSessionsForUserProvider, l as deleteMcpServerSessionId, u as deleteMcpStoredOAuthCredentials } from "./agent-runner-Cqr21pOU.js";
|
|
7
|
+
import { r as getStateAdapter } from "./adapter-CW5UW7vL.js";
|
|
8
|
+
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CHFzrQbS.js";
|
|
9
|
+
import { m as ensureConversationWake, w as requestConversationWork } from "./store-ymkEUWe4.js";
|
|
10
|
+
import { n as resolveTurnSessionRouting } from "./turn-session-routing-D_GXfcAG.js";
|
|
11
11
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
12
12
|
import * as z from "zod";
|
|
13
13
|
// src/chat/task-execution/authorized-turn.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, y as usageSchema } from "./media-Bu9C6lz0.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
|
|
@@ -422,6 +422,8 @@ const conversationSummaryReportSchema = z.object({
|
|
|
422
422
|
participants: z.array(actorIdentitySchema).optional(),
|
|
423
423
|
archivedAt: z.string().datetime().nullable().optional(),
|
|
424
424
|
pinnedAt: z.string().datetime().nullable().optional(),
|
|
425
|
+
/** The viewer's place in Pinned. Unset until they reorder their pins. */
|
|
426
|
+
pinPosition: z.number().int().optional(),
|
|
425
427
|
channel: z.string().optional(),
|
|
426
428
|
channelName: z.string().optional(),
|
|
427
429
|
channelNameRedacted: z.boolean().optional(),
|
package/dist/{conversation-pending-messages-LlFnr9-m.js → conversation-pending-messages-Dct5pheX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as messageAttachmentSchema, O as reviewItemChangeRecordSchema, c as conversationDetailReportSchema, r as actorIdentitySchema } from "./conversation-
|
|
1
|
+
import { L as messageAttachmentSchema, O as reviewItemChangeRecordSchema, c as conversationDetailReportSchema, r as actorIdentitySchema } from "./conversation-DdT7SNar.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/reporting-schema.ts
|
|
4
4
|
const healthReportSchema = z.object({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as escapeXml } from "./client-
|
|
3
|
-
import { a as getRuntimeMetadata, n as botConfig } from "./config-
|
|
4
|
-
import { H as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-
|
|
1
|
+
import { Ci as parseOAuthStatePayload, Ji as getSlackClient, On as resolvePluginOAuthAccount, Ri as postSlackMessage, Si as formatProviderLabel, d as recordAuthorizationCompleted, q as getConversationPendingAuth, tt as getTurnRecord, u as recordAuthenticationLinked, wi as resolveBaseUrl, wn as createUserTokenStore } from "./projection-0UcUeuzn.js";
|
|
2
|
+
import { m as escapeXml } from "./client-CMyH5rDz.js";
|
|
3
|
+
import { a as getRuntimeMetadata, n as botConfig } from "./config-Dt3CpG17.js";
|
|
4
|
+
import { H as isNativeIdentityProvider, _ as runBestEffort, h as logWarn, p as logException } from "./logging-Qo-7xGp1.js";
|
|
5
5
|
import { p as parseSlackUserId } from "./actor-6jsm_v96.js";
|
|
6
|
-
import { B as findUserByVerifiedEmails, C as getSqlExecutor, I as resolveActorIdentityId, W as upsertLinkedIdentity, o as readIdentityById } from "./viewer-
|
|
6
|
+
import { B as findUserByVerifiedEmails, C as getSqlExecutor, I as resolveActorIdentityId, W as upsertLinkedIdentity, o as readIdentityById } from "./viewer-BlpnzZZa.js";
|
|
7
7
|
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 { d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, y as lookupSlackUserProfile } from "./agent-runner-
|
|
8
|
+
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-DOnPkI8g.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.js";
|
|
10
|
+
import { t as discoverSkills } from "./skills-CKyotM4g.js";
|
|
11
|
+
import { d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, y as lookupSlackUserProfile } from "./agent-runner-Cqr21pOU.js";
|
|
12
12
|
import { r as acquireActiveLock } from "./locks-D-0h111u.js";
|
|
13
|
-
import { r as getStateAdapter } from "./adapter-
|
|
14
|
-
import { _ as getMcpProviderErrorAttributes } from "./service-account-
|
|
15
|
-
import { o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-
|
|
16
|
-
import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-
|
|
13
|
+
import { r as getStateAdapter } from "./adapter-CW5UW7vL.js";
|
|
14
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-KhZIqXRi.js";
|
|
15
|
+
import { o as coerceThreadConversationState, r as getPersistedThreadState } from "./thread-state-D6rNGQu9.js";
|
|
16
|
+
import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-CCHPybZP.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./config-
|
|
2
|
-
import { p as logException } from "./logging-
|
|
1
|
+
import "./config-Dt3CpG17.js";
|
|
2
|
+
import { p as logException } from "./logging-Qo-7xGp1.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { getTableColumns, sql } from "drizzle-orm";
|
|
5
5
|
import { bigint, boolean, check, date, doublePrecision, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, timestamp, uniqueIndex, uuid } from "drizzle-orm/pg-core";
|
|
@@ -53,6 +53,8 @@ const juniorUsers = pgTable("junior_users", {
|
|
|
53
53
|
timezone: text("timezone"),
|
|
54
54
|
/** Text the user saved to change how Junior replies to them. */
|
|
55
55
|
customization: text("customization"),
|
|
56
|
+
/** Phone notification hours. Null means the default schedule. */
|
|
57
|
+
notificationSchedule: jsonb("notification_schedule").$type(),
|
|
56
58
|
/** Junior-wide admin role. Only the `junior admin` CLI changes it. */
|
|
57
59
|
isAdmin: boolean("is_admin").notNull().default(false),
|
|
58
60
|
/** Auto-archive this user's conversations when their work is done. */
|
|
@@ -370,6 +372,12 @@ const juniorConversationParticipants = pgTable("junior_conversation_participants
|
|
|
370
372
|
archivedAt: timestamptz("archived_at"),
|
|
371
373
|
pinnedAt: timestamptz("pinned_at"),
|
|
372
374
|
/**
|
|
375
|
+
* The viewer's place for this pin in the Pinned section, from a drag
|
|
376
|
+
* reorder. Null until the first reorder, and cleared on unpin, re-pin,
|
|
377
|
+
* and archive. Null pins sort first, by activity.
|
|
378
|
+
*/
|
|
379
|
+
pinPosition: integer("pin_position"),
|
|
380
|
+
/**
|
|
373
381
|
* Per-conversation auto-archive choice for this user. Null uses the
|
|
374
382
|
* user's `autoArchiveDefault`.
|
|
375
383
|
*/
|
|
@@ -637,6 +645,20 @@ const juniorReviewItemSlackCards = pgTable("junior_review_item_slack_cards", {
|
|
|
637
645
|
channelId: text("channel_id").notNull(),
|
|
638
646
|
messageTs: text("message_ts").notNull()
|
|
639
647
|
}, (table) => [primaryKey({ columns: [table.itemId, table.conversationId] })]);
|
|
648
|
+
// src/db/schema/push-subscriptions.ts
|
|
649
|
+
/**
|
|
650
|
+
* One browser Web Push subscription for one user. A user can have one row for
|
|
651
|
+
* each browser or installed dashboard app. The push service owns the endpoint.
|
|
652
|
+
*/
|
|
653
|
+
const juniorPushSubscriptions = pgTable("junior_push_subscriptions", {
|
|
654
|
+
id: text("id").primaryKey(),
|
|
655
|
+
userId: text("user_id").notNull().references(() => juniorUsers.id, { onDelete: "cascade" }),
|
|
656
|
+
endpoint: text("endpoint").notNull(),
|
|
657
|
+
p256dh: text("p256dh").notNull(),
|
|
658
|
+
auth: text("auth").notNull(),
|
|
659
|
+
createdAt: timestamptz("created_at").notNull(),
|
|
660
|
+
updatedAt: timestamptz("updated_at").notNull()
|
|
661
|
+
}, (table) => [uniqueIndex("junior_push_subscriptions_endpoint_uidx").on(table.endpoint), index("junior_push_subscriptions_user_idx").on(table.userId)]);
|
|
640
662
|
// src/db/schema/workspaces.ts
|
|
641
663
|
/** Named recipe used to prepare a reusable Sandbox. */
|
|
642
664
|
const juniorWorkspaces = pgTable("junior_workspaces", {
|
|
@@ -715,6 +737,7 @@ const juniorSqlSchema = {
|
|
|
715
737
|
juniorReviewItemConversations,
|
|
716
738
|
juniorReviewItemSlackCards,
|
|
717
739
|
juniorReviewItems,
|
|
740
|
+
juniorPushSubscriptions,
|
|
718
741
|
juniorSnapshots,
|
|
719
742
|
juniorStats,
|
|
720
743
|
juniorAutomationRuns,
|
|
@@ -970,4 +993,4 @@ function createJuniorSqlExecutor(args) {
|
|
|
970
993
|
statementTimeoutMs
|
|
971
994
|
});
|
|
972
995
|
}
|
|
973
|
-
export {
|
|
996
|
+
export { conversationReadColumns as A, isUserInstruction as C, juniorCodeChanges as D, juniorConversationAnnotations as E, juniorArtifacts as F, juniorIdentities as M, juniorUsers as N, juniorCodeRepositories as O, juniorDestinations as P, juniorConversationMetrics as S, juniorApiTokens as T, juniorConversationReadPositions as _, juniorPushSubscriptions as a, juniorConversationBriefs as b, juniorReviewItemSlackCards as c, juniorAutomationVersions as d, juniorAutomations as f, juniorAgentInvocations as g, juniorAgentBindings as h, juniorWorkspaces as i, juniorConversations as j, juniorAttachments as k, juniorReviewItems as l, juniorLocationConfigurations as m, juniorSnapshots as n, juniorReviewItemAssignees as o, juniorStats as p, juniorWorkspaceRepos as r, juniorReviewItemConversations as s, createJuniorSqlExecutor as t, juniorAutomationRuns as u, juniorConversationParticipants as v, juniorConversationEvents as w, CONVERSATION_METRICS as x, juniorConversationBindings as y };
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { a as getClient, c as init, i as getActiveSpan, o as getGlobalScope, p as spanToJSON, s as getTraceData } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { R as getDeploymentServiceVersion, z as getDeploymentTelemetryAttributes } from "./logging-
|
|
3
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
2
|
+
import { R as getDeploymentServiceVersion, z as getDeploymentTelemetryAttributes } from "./logging-Qo-7xGp1.js";
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-BpHHhEVp.js";
|
|
4
4
|
import { n as redactSandboxEgressProxyPath } from "./proxy-path-BHYoKZdq.js";
|
|
5
5
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
|
|
6
6
|
import { n as promoteHttpRouteName, r as routeNameMiddleware, t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
7
|
+
import { n as isPushServiceHost } from "./push-endpoint-CO-nomUd.js";
|
|
7
8
|
import { performance } from "node:perf_hooks";
|
|
8
9
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
9
10
|
// src/chat/pi/gateway-request-timing.ts
|
|
@@ -145,9 +146,15 @@ const SECRET_HEADER_NAMES = /* @__PURE__ */ new Set([
|
|
|
145
146
|
]);
|
|
146
147
|
const SDK_REQUEST_HEADER_PREFIX = "http.request.header.";
|
|
147
148
|
const URL_SPAN_NAME = /^([A-Z]+ )((?:https?:\/\/|\/)\S*)$/;
|
|
148
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Drop the query and fragment, hide the sandbox egress credential token, and
|
|
151
|
+
* keep only the host of a push endpoint.
|
|
152
|
+
*/
|
|
149
153
|
function scrubUrl(value) {
|
|
150
|
-
|
|
154
|
+
const url = value.split(/[?#]/, 1)[0] ?? value;
|
|
155
|
+
const host = url.includes("://") ? urlHost(url) : void 0;
|
|
156
|
+
if (host && isPushServiceHost(host)) return `https://${host}`;
|
|
157
|
+
return redactSandboxEgressProxyPath(url);
|
|
151
158
|
}
|
|
152
159
|
function scrubSpanName(name) {
|
|
153
160
|
const match = URL_SPAN_NAME.exec(name);
|
|
@@ -159,18 +166,34 @@ function isSecretHeaderAttribute(key) {
|
|
|
159
166
|
const normalized = key.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
160
167
|
return normalized.endsWith("xjuniorlocalcredentialsignature") || normalized.endsWith("xjuniorsandboxegresstoken");
|
|
161
168
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
169
|
+
function urlHost(value) {
|
|
170
|
+
try {
|
|
171
|
+
return new URL(value).hostname;
|
|
172
|
+
} catch {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The URL path of a private Slack file names the workspace and file. The URL
|
|
178
|
+
* path of a push endpoint identifies one browser. Keep only their host.
|
|
179
|
+
*/
|
|
180
|
+
function isHostOnly(host) {
|
|
181
|
+
return host === SLACK_FILE_HOST || isPushServiceHost(host);
|
|
182
|
+
}
|
|
183
|
+
function hostOnlyRequestHost(attributes) {
|
|
184
|
+
const address = attributes["server.address"];
|
|
185
|
+
if (typeof address === "string" && isHostOnly(address)) return address;
|
|
186
|
+
for (const key of URL_ATTRIBUTE_KEYS) {
|
|
164
187
|
const value = attributes[key];
|
|
165
|
-
|
|
166
|
-
|
|
188
|
+
const host = typeof value === "string" ? urlHost(value) : void 0;
|
|
189
|
+
if (host && isHostOnly(host)) return host;
|
|
190
|
+
}
|
|
167
191
|
}
|
|
168
|
-
|
|
169
|
-
function scrubSlackFileUrls(attributes) {
|
|
192
|
+
function keepOnlyHost(attributes, host) {
|
|
170
193
|
for (const key of URL_ATTRIBUTE_KEYS) {
|
|
171
194
|
const value = attributes[key];
|
|
172
195
|
if (typeof value !== "string") continue;
|
|
173
|
-
if (value.includes("://")) attributes[key] = `https://${
|
|
196
|
+
if (value.includes("://")) attributes[key] = `https://${host}`;
|
|
174
197
|
else delete attributes[key];
|
|
175
198
|
}
|
|
176
199
|
}
|
|
@@ -180,8 +203,9 @@ function scrubSensitiveUrlAttributes(attributes) {
|
|
|
180
203
|
delete attributes["url.fragment"];
|
|
181
204
|
delete attributes["http.request.body.data"];
|
|
182
205
|
for (const key of Object.keys(attributes)) if (isSecretHeaderAttribute(key)) delete attributes[key];
|
|
183
|
-
|
|
184
|
-
|
|
206
|
+
const hostOnly = hostOnlyRequestHost(attributes);
|
|
207
|
+
if (hostOnly) {
|
|
208
|
+
keepOnlyHost(attributes, hostOnly);
|
|
185
209
|
return;
|
|
186
210
|
}
|
|
187
211
|
for (const key of URL_ATTRIBUTE_KEYS) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as withScope, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-i1An1eTS.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
|
@@ -546,6 +546,8 @@ const INPUT_IMAGE_TYPES = [
|
|
|
546
546
|
"image/gif",
|
|
547
547
|
"image/webp"
|
|
548
548
|
];
|
|
549
|
+
/** Video types that browsers play in a `<video>` element. */
|
|
550
|
+
const INLINE_VIDEO_TYPES = ["video/mp4", "video/webm"];
|
|
549
551
|
/** Leading bytes of each accepted image type. `null` matches any byte. */
|
|
550
552
|
const IMAGE_SIGNATURES = [
|
|
551
553
|
{
|
|
@@ -621,4 +623,4 @@ function isVisionImageMediaType(mediaType) {
|
|
|
621
623
|
const normalized = mediaType.split(";", 1)[0]?.trim().toLowerCase();
|
|
622
624
|
return normalized ? INPUT_IMAGE_TYPES.some((type) => type === normalized) : false;
|
|
623
625
|
}
|
|
624
|
-
export {
|
|
626
|
+
export { instructionProvenanceFor as _, KNOWN_CONVERSATION_EVENT_TYPES as a, conversationTurnFailureCodeSchema as c, historyReplacementSchema as d, newConversationEventSchema as f, instructionActors as g, contextProvenance as h, isVisionImageMediaType as i, conversationTurnFailureReasonSchema as l, agentInstructionProvenance as m, INPUT_IMAGE_TYPES as n, agentHistoryItemSchema as o, encodeHistoryPayload as p, detectImageMediaType as r, conversationEventDataSchema as s, INLINE_VIDEO_TYPES as t, decodeStoredConversationEvent as u, sameActorIdentity as v, usageSchema as y };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { F as SYSTEM_IDENTITY_ID, S as getDb, x as getConversationStore } from "./viewer-
|
|
5
|
-
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-
|
|
6
|
-
import { F as findChildAgentConversationId, L as PARENT_AGENT_TARGET, N as AgentMessageTargetError, a as createAgentInvocationForMessage, j as AgentMessagePausedError, s as getActiveAgentInvocationForConversation } from "./store-
|
|
7
|
-
import { D as postAutomatedTurnLimitNoticeForConversation, a as EVENT_WAIT_MS, j as admitAutomatedTurn } from "./session-stop-
|
|
8
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
9
|
-
import { r as enqueueAgentMessageToParent } from "./result-
|
|
10
|
-
import { i as enqueueAgentInvocation } from "./work-
|
|
2
|
+
import { Ba as canAccessConversation, Ha as readConversationAccessFromSql } from "./projection-0UcUeuzn.js";
|
|
3
|
+
import { n as botConfig } from "./config-Dt3CpG17.js";
|
|
4
|
+
import { F as SYSTEM_IDENTITY_ID, S as getDb, x as getConversationStore } from "./viewer-BlpnzZZa.js";
|
|
5
|
+
import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-Cqr21pOU.js";
|
|
6
|
+
import { F as findChildAgentConversationId, L as PARENT_AGENT_TARGET, N as AgentMessageTargetError, a as createAgentInvocationForMessage, j as AgentMessagePausedError, s as getActiveAgentInvocationForConversation } from "./store-G3S0kWSD.js";
|
|
7
|
+
import { D as postAutomatedTurnLimitNoticeForConversation, a as EVENT_WAIT_MS, j as admitAutomatedTurn } from "./session-stop-D_1SysjC.js";
|
|
8
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-ymkEUWe4.js";
|
|
9
|
+
import { r as enqueueAgentMessageToParent } from "./result-NvndYzCb.js";
|
|
10
|
+
import { i as enqueueAgentInvocation } from "./work-BgCW3FDC.js";
|
|
11
11
|
// src/chat/agent-invocations/top-level-message.ts
|
|
12
12
|
const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
|
|
13
13
|
/** Event type of a message from another top-level agent. */
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions } from "./app-CvGalMxi.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-Qo-7xGp1.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
|
|
3
|
-
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-
|
|
3
|
+
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-CHFzrQbS.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-HYh_JOdw.js";
|
|
5
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BcOHzXxe.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { wn as createUserTokenStore } from "./projection-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { wn as createUserTokenStore } from "./projection-0UcUeuzn.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BBPw8dam.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|