@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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
1
|
+
import { Vi as startOAuthFlow } from "./projection-Cns7XwWa.js";
|
|
2
|
+
import { n as botConfig } from "./config-BrXDQefC.js";
|
|
3
3
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
4
|
-
import {
|
|
5
|
-
import { d as hasRequiredOAuthScope } from "./registry-
|
|
6
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
7
|
-
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-
|
|
4
|
+
import { $t as deleteProviderIdentityForUser, Qt as deleteProviderIdentityForSlackUser, s as getSqlExecutor } from "./db-DTxzH7u5.js";
|
|
5
|
+
import { d as hasRequiredOAuthScope } from "./registry-BPwuOP2O.js";
|
|
6
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DMY3VV-D.js";
|
|
7
|
+
import { h as deleteMcpStoredOAuthCredentials, m as deleteMcpServerSessionId, p as deleteMcpAuthSessionsForUserProvider } from "./service-account-gN0zqf0S.js";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
// src/handlers/oauth-html.ts
|
|
10
10
|
/** Build pre-escaped callback HTML with the shared response security policy. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
1
|
+
import { Ta as runNonInteractiveCommand, ma as SANDBOX_COMMAND_PATH, ya as SANDBOX_WORKSPACE_ROOT } from "./projection-Cns7XwWa.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-FjclQsXu.js";
|
|
3
3
|
// src/chat/sandbox/resources.ts
|
|
4
4
|
let configuredResources;
|
|
5
5
|
function resourcesFromEnv() {
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,10 +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-CPbZjomA.js";
|
|
2
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
2
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-DxttrKb9.js";
|
|
3
3
|
import { n as isPushServiceHost } from "./push-endpoint-CO-nomUd.js";
|
|
4
4
|
import { n as redactSandboxEgressProxyPath } from "./proxy-path-BHYoKZdq.js";
|
|
5
5
|
import { n as promoteHttpRouteName, r as routeNameMiddleware, t as nameRequestRoute } from "./sentry-route-name-C6EIzAGP.js";
|
|
6
6
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
|
|
7
|
-
import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-
|
|
7
|
+
import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-FjclQsXu.js";
|
|
8
8
|
import { performance } from "node:perf_hooks";
|
|
9
9
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
10
10
|
// src/chat/pi/gateway-request-timing.ts
|
|
@@ -359,7 +359,7 @@ function getBrowserSentryConfig() {
|
|
|
359
359
|
function initSentry() {
|
|
360
360
|
if (getClient()) return;
|
|
361
361
|
const dsn = process.env["SENTRY_DSN"];
|
|
362
|
-
const enableLogs = getBoolean(process.env["SENTRY_ENABLE_LOGS"], Boolean(dsn));
|
|
362
|
+
const enableLogs = getBoolean(process.env["SENTRY_ENABLE_LOGS"], Boolean(dsn || process.env["SENTRY_SPOTLIGHT"]?.trim()));
|
|
363
363
|
const serviceVersion = getDeploymentServiceVersion();
|
|
364
364
|
const deploymentSpanAttributes = getDeploymentTelemetryAttributes();
|
|
365
365
|
init({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $ as conversationKindFromRow, o as getDb } from "./db-DTxzH7u5.js";
|
|
2
|
+
import { H as juniorConversations } from "./executor-DqTiYj9S.js";
|
|
3
3
|
import { desc, eq, sql } from "drizzle-orm";
|
|
4
4
|
// src/chat/conversations/lineage.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
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-CPbZjomA.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
1
|
+
import { _ as withScope, a as getClient, 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-CPbZjomA.js";
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-CNKZ8owc.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";
|
|
@@ -14,10 +14,6 @@ function toOptionalString(value) {
|
|
|
14
14
|
function toOptionalNumber(value) {
|
|
15
15
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
16
16
|
}
|
|
17
|
-
/** Type-guard: true when value is a non-null object (usable as Record). */
|
|
18
|
-
function isRecord(value) {
|
|
19
|
-
return typeof value === "object" && value !== null;
|
|
20
|
-
}
|
|
21
17
|
// src/chat/identities/identity.ts
|
|
22
18
|
/**
|
|
23
19
|
* Provider of the native Google identity. Core links it through Google
|
|
@@ -52,6 +48,7 @@ function definedAttributes(attributes) {
|
|
|
52
48
|
function logContextToAttributes(context) {
|
|
53
49
|
return definedAttributes({
|
|
54
50
|
"gen_ai.conversation.id": context.conversationId,
|
|
51
|
+
"app.conversation.root_id": context.rootConversationId,
|
|
55
52
|
"app.platform": context.platform,
|
|
56
53
|
"app.request.id": context.requestId,
|
|
57
54
|
"messaging.system": context.platform === "slack" ? "slack" : context.platform,
|
|
@@ -107,6 +104,48 @@ function getBoundLogContext() {
|
|
|
107
104
|
function getBoundLogAttributes() {
|
|
108
105
|
return logContextStorage.getStore() ?? {};
|
|
109
106
|
}
|
|
107
|
+
// src/chat/sentry-links.ts
|
|
108
|
+
function getSentryOrgSlug() {
|
|
109
|
+
return process.env["SENTRY_ORG_SLUG"]?.trim() || void 0;
|
|
110
|
+
}
|
|
111
|
+
function isSentrySaasDsnHost(host) {
|
|
112
|
+
return host === "sentry.io" || host.endsWith(".sentry.io");
|
|
113
|
+
}
|
|
114
|
+
function buildSentryWebBaseUrl(dsn) {
|
|
115
|
+
if (isSentrySaasDsnHost(dsn.host)) return "https://sentry.io";
|
|
116
|
+
const port = dsn.port ? `:${dsn.port}` : "";
|
|
117
|
+
const path = dsn.path ? `/${dsn.path}` : "";
|
|
118
|
+
return `${dsn.protocol}://${dsn.host}${port}${path}`;
|
|
119
|
+
}
|
|
120
|
+
function buildSentryOrgPath(args) {
|
|
121
|
+
const dsn = getClient()?.getDsn();
|
|
122
|
+
if (!dsn?.host || !dsn.projectId) return;
|
|
123
|
+
const orgSlug = getSentryOrgSlug();
|
|
124
|
+
if (!orgSlug) return;
|
|
125
|
+
const params = new URLSearchParams();
|
|
126
|
+
params.set("project", dsn.projectId);
|
|
127
|
+
if (args.query) for (const [key, value] of Object.entries(args.query)) params.set(key, value);
|
|
128
|
+
const path = `${args.path}?${params.toString()}`;
|
|
129
|
+
if (isSentrySaasDsnHost(dsn.host)) return `https://${orgSlug}.sentry.io/${path}`;
|
|
130
|
+
return `${buildSentryWebBaseUrl(dsn)}/organizations/${orgSlug}/${path}`;
|
|
131
|
+
}
|
|
132
|
+
/** Build a Sentry conversation URL only when the runtime has enough Sentry config. */
|
|
133
|
+
function buildSentryConversationUrl(conversationId) {
|
|
134
|
+
return buildSentryOrgPath({ path: `explore/conversations/${encodeURIComponent(conversationId)}/` });
|
|
135
|
+
}
|
|
136
|
+
/** Build a Sentry event URL only when the runtime has enough Sentry config. */
|
|
137
|
+
function buildSentryEventUrl(eventId) {
|
|
138
|
+
return buildSentryOrgPath({
|
|
139
|
+
path: "issues/",
|
|
140
|
+
query: { query: eventId }
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/** Format a failure reference, linked to the Sentry event when the runtime can build the URL. */
|
|
144
|
+
function formatSentryEventReference(eventId) {
|
|
145
|
+
const reference = `event_id=${eventId}`;
|
|
146
|
+
const url = buildSentryEventUrl(eventId);
|
|
147
|
+
return url ? `[${reference}](${url})` : `\`${reference}\``;
|
|
148
|
+
}
|
|
110
149
|
// src/deployment.ts
|
|
111
150
|
const JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
|
|
112
151
|
const JUNIOR_HEARTBEAT_CRON_SCHEDULE = "* * * * *";
|
|
@@ -1103,10 +1142,9 @@ function getActiveTraceId() {
|
|
|
1103
1142
|
return;
|
|
1104
1143
|
}
|
|
1105
1144
|
}
|
|
1106
|
-
const TURN_FAILURE_RESPONSE_TEMPLATE = "I ran into an internal error while processing that. Reference: `event_id={eventId}`.";
|
|
1107
1145
|
/** Build the static user-facing response for a failed turn. */
|
|
1108
1146
|
function buildTurnFailureResponse(eventId) {
|
|
1109
|
-
return
|
|
1147
|
+
return `I ran into an internal error while processing that. Reference: ${formatSentryEventReference(eventId)}.`;
|
|
1110
1148
|
}
|
|
1111
1149
|
const GEN_AI_DEFAULT_MAX_ATTRIBUTE_CHARS = 1e5;
|
|
1112
1150
|
const GEN_AI_MAX_ARRAY_ITEMS = 50;
|
|
@@ -1253,4 +1291,4 @@ function extractGenAiUsageAttributes(...sources) {
|
|
|
1253
1291
|
...cost?.total !== void 0 ? { "app.cost.total_usd": cost.total } : void 0
|
|
1254
1292
|
};
|
|
1255
1293
|
}
|
|
1256
|
-
export { JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE as A, getDeploymentServiceVersion as B, summarizeMessageText as C, JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE as D, withSpan as E, JUNIOR_RETENTION_CRON_SCHEDULE as F,
|
|
1294
|
+
export { JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE as A, getDeploymentServiceVersion as B, summarizeMessageText as C, JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE as D, withSpan as E, JUNIOR_RETENTION_CRON_SCHEDULE as F, runWithLogAttributes as G, buildSentryConversationUrl as H, JUNIOR_RETENTION_ROUTE as I, normalizeIdentityEmail as J, GOOGLE_IDENTITY_PROVIDER as K, JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE as L, JUNIOR_HEARTBEAT_CRON_SCHEDULE as M, JUNIOR_HEARTBEAT_ROUTE as N, JUNIOR_AUTO_ARCHIVE_ROUTE as O, JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE as P, LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION as R, setTags as S, withLogContext as T, buildSentryEventUrl as U, getDeploymentTelemetryAttributes as V, formatSentryEventReference as W, toOptionalString as Y, runBestEffort as _, extractGenAiUsageSummary as a, setSpanAttributes as b, getLogContextAttributes as c, logAudit as d, logError as f, normalizeGenAiFinishReason as g, logWarn as h, extractGenAiUsageAttributes as i, JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE as j, JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE as k, getLogContextAttributesForSpan as l, logInfo as m, createChatSdkLogger as n, getActiveTraceContext as o, logException as p, isNativeIdentityProvider as q, createRequestContext as r, getActiveTraceId as s, buildTurnFailureResponse as t, getTracePropagationHeaders as u, serializeGenAiAttribute as v, withContext as w, setSpanStatus as x, setSentryUser as y, getDeploymentId as z };
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { F as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb } from "./db-CFZggNoy.js";
|
|
8
|
-
import { F as EVENT_WAIT_MS, et as postAutomatedTurnLimitNoticeForConversation, st as admitAutomatedTurn } from "./session-stop-BfY4rhJs.js";
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-D4FQ1Nml.js";
|
|
2
|
+
import { N as actorFromRun, P as toolInvocationDestination } from "./agent-runner-BVHPUIc8.js";
|
|
3
|
+
import { In as enqueueAgentInvocation, Jn as getActiveAgentInvocationForConversation, On as enqueueAgentMessageToParent, Zn as getLatestAgentInvocationForConversation, fi as admitAutomatedTurn, ir as findChildAgentConversationId, jn as readChildConversationSender, nn as EVENT_WAIT_MS, nr as AgentMessagePausedError, or as PARENT_AGENT_TARGET, qn as createAgentInvocationForMessage, rr as AgentMessageTargetError, vn as postAutomatedTurnLimitNoticeForConversation } from "./warmup-BWdHew2H.js";
|
|
4
|
+
import { Yt as SYSTEM_IDENTITY_ID, a as getConversationStore, dn as canAccessConversation, hn as readConversationAccessFromSql, o as getDb } from "./db-DTxzH7u5.js";
|
|
5
|
+
import { at as renderUntrustedTag, n as botConfig } from "./config-BrXDQefC.js";
|
|
6
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-DmmMIrQi.js";
|
|
10
7
|
// src/chat/agent-invocations/top-level-message.ts
|
|
11
8
|
const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
|
|
12
9
|
/** Event type of a message from another top-level agent. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { s as getSqlExecutor } from "./db-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { s as getSqlExecutor } from "./db-DTxzH7u5.js";
|
|
3
|
+
import { m as isVisionImageMediaType, p as detectImageMediaType } from "./web-message-id-Ch5dPq-a.js";
|
|
4
|
+
import { Ja as readLiveAttachment } from "./projection-Cns7XwWa.js";
|
|
5
5
|
import { escapeTagText, renderTag } from "@sentry/junior-plugin-api";
|
|
6
6
|
// src/chat/attachments/model-input.ts
|
|
7
7
|
var model_input_exports = /* @__PURE__ */ __exportAll({ loadInputAttachments: () => loadInputAttachments });
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as JuniorPluginSet } from "./plugins-fBrz8PCV.js";
|
|
2
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
2
|
+
import { i as JuniorDashboardOptions } from "./app-Cw5Vy6H6.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
|
5
5
|
type SentryNitroOptions = NonNullable<Parameters<typeof withSentryConfig$1>[1]>;
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DD9vencX.js";
|
|
2
2
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-Bkk0XRo2.js";
|
|
3
|
-
import { a as CACHE_WARMUP_QUEUE_TOPIC, h as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./background-compaction-queue-
|
|
4
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-
|
|
3
|
+
import { a as CACHE_WARMUP_QUEUE_TOPIC, h as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./background-compaction-queue-CJDnWVOJ.js";
|
|
4
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-C_zldF5J.js";
|
|
5
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-FjclQsXu.js";
|
|
6
6
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cv2ETe8Y.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 { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
2
|
-
import {
|
|
1
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-Bk8wGb8Y.js";
|
|
2
|
+
import { Cn as createUserTokenStore } from "./projection-Cns7XwWa.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { d as readJuniorSecret } from "./task-queue-
|
|
2
|
+
import { d as readJuniorSecret } from "./task-queue-C_zldF5J.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { SignJWT, jwtVerify } from "jose";
|