@sentry/junior 0.286.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-JQZaJ-B_.js → adapter-CL-HUKgd.js} +1 -1
- package/dist/{admin-Dm2bimJ-.js → admin-C9urXVfi.js} +2 -1
- package/dist/{agent-runner-DGCwOEyL.js → agent-runner-Bfnw551N.js} +644 -312
- 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 +36 -53
- package/dist/{app-BKq0JzWx.d.ts → app-DBY5TnfY.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +62 -29
- package/dist/{assistant-reply-CAPafcUY.js → assistant-reply-u_PRYzuz.js} +1 -1
- package/dist/{automation-B-jJN_gM.js → automation-DksGNDRO.js} +3 -6
- package/dist/{background-compaction-queue-Btu2oab_.js → background-compaction-queue-CYI909P5.js} +3 -3
- package/dist/{briefs-UMeYehUe.js → briefs-DaXiMWzT.js} +6 -5
- package/dist/{catalog-runtime-Bym8GVdh.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 +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-B0aAs7wC.js → config-CkHcUMN7.js} +580 -3
- package/dist/{connections-CQ7p0aNJ.js → connections-BnIj0wtx.js} +9 -9
- package/dist/{conversation-BusI2uzj.js → conversation-E7ZPJx2H.js} +8 -1
- package/dist/{conversation-pending-messages-DwehU0Fd.js → conversation-pending-messages-DVch6YQw.js} +2 -5
- package/dist/{conversation-privacy-Cd_nZZBM.js → conversation-privacy-DF1hW0ja.js} +1 -1
- package/dist/{credential-sync-DmiJi_At.js → credential-sync-CzMar9hq.js} +13 -13
- package/dist/{viewer-CH-ASQzh.js → db-DJ11eZqq.js} +37 -343
- package/dist/{db-C5zi4ecs.d.ts → db-YDKKDxlh.d.ts} +1 -1
- package/dist/{executor-Dipi2Ixl.js → executor-BY9TB31g.js} +11 -4
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CMFhLLj4.js → logging-BO5zU6Mt.js} +1 -1
- package/dist/{media-B-BpXo41.js → media-Cz1ZiV1U.js} +2 -2
- package/dist/{message-D1xLljUF.js → message-CsUbuEc8.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-DCAFIUQr.js → oauth-callback-server-hiDKK0_n.js} +2 -2
- package/dist/{projection-CoeMNxJ4.js → projection-CL_YWeGf.js} +82 -160
- package/dist/{prompt-C9OQEfan.js → prompt-BHOEQSmf.js} +182 -2
- package/dist/{registry-u-sFYtx_.js → registry-BriFLnaJ.js} +1 -1
- package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
- package/dist/{resolve-DYqgL3Eo.js → resolve-Bt6GgAiA.js} +3 -3
- package/dist/{result-CescSwAw.js → result-Bo1TZu0Q.js} +8 -8
- package/dist/{runner-Cr67a8TB.js → runner-D3YeCQgt.js} +8 -8
- package/dist/{sandbox-egress-signals-DLOazy5W.js → sandbox-egress-signals-CcnSPP4S.js} +1 -1
- package/dist/{schema-BUSi3sgv.js → schema-BWE3RJEB.js} +17 -5
- package/dist/{schema-Ih60j59-.d.ts → schema-C6fsEwjo.d.ts} +46 -1
- package/dist/{service-account-CGEqz9wG.js → service-account-DiQQuuw7.js} +3 -3
- package/dist/{service-account-CsKxktLk.js → service-account-r6fl0b-9.js} +3 -3
- package/dist/{session-stop-CGz5DByb.js → session-stop-B2Nut40V.js} +18 -18
- package/dist/{skills-COCqf61f.js → skills-CD5aJdzg.js} +2 -2
- package/dist/spawn-CalgZQiu.js +79 -0
- package/dist/{stop-GyFZkHuQ.js → stop-kujZLbi0.js} +56 -240
- package/dist/{store-D0-8plWp.js → store-DdIEUL1q.js} +3 -3
- package/dist/{task-runner-xPuQmEot.js → task-runner-D_RDr2Hu.js} +12 -11
- package/dist/{turn-failure-response-BOviBdT-.js → turn-failure-response-B5nV1Er-.js} +16 -11
- package/dist/{validation-DZDKorGz.js → validation-K4pqwoVZ.js} +1 -1
- package/dist/{version-BTIz7fGi.js → version-DBvhk1X9.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DrMmFUul.js +337 -0
- package/dist/{work-C75_IM5e.js → work-ljRoODGu.js} +30 -19
- package/dist/{worker-Dl47I729.js → worker-CYO1Q0Js.js} +5 -6
- package/migrations/0088_conversation_unsubscribe.sql +1 -0
- package/migrations/meta/0088_snapshot.json +4372 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
- package/dist/config-B9f9Lqo5.js +0 -579
- package/dist/spawn-C8F_iXWO.js +0 -42
package/dist/{background-compaction-queue-Btu2oab_.js → background-compaction-queue-CYI909P5.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-CkHcUMN7.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-BO5zU6Mt.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import * as z from "zod";
|
|
@@ -489,7 +489,7 @@ function pluginTaskCallback() {
|
|
|
489
489
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
490
490
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
491
491
|
run: async (message) => {
|
|
492
|
-
const { processPluginTask } = await import("./task-runner-
|
|
492
|
+
const { processPluginTask } = await import("./task-runner-D_RDr2Hu.js").then((n) => n.r);
|
|
493
493
|
await processPluginTask(message);
|
|
494
494
|
},
|
|
495
495
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { K as parseBriefInput, V as briefCodeChangeSchema, W as briefResourceLabel, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-
|
|
3
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-C9OQEfan.js";
|
|
1
|
+
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-BHOEQSmf.js";
|
|
2
|
+
import { K as parseBriefInput, V as briefCodeChangeSchema, W as briefResourceLabel, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-E7ZPJx2H.js";
|
|
4
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
4
|
import path from "node:path";
|
|
6
5
|
import * as z from "zod";
|
|
@@ -263,7 +262,7 @@ async function parseRunOptions(argv) {
|
|
|
263
262
|
* token.
|
|
264
263
|
*/
|
|
265
264
|
async function configuredBriefModelId() {
|
|
266
|
-
const { botConfig } = await import("./config-
|
|
265
|
+
const { botConfig } = await import("./config-CkHcUMN7.js").then((n) => n.r);
|
|
267
266
|
return botConfig.fastModelId;
|
|
268
267
|
}
|
|
269
268
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -335,7 +334,9 @@ async function runSnapshot(snapshotPath, options, prompt) {
|
|
|
335
334
|
for (const throughIndex of generationIndexes(snapshot, options.turnByTurn, finalThroughIndex)) versions.push(await generateBrief({
|
|
336
335
|
completeObject: (request) => completeObject({
|
|
337
336
|
...request,
|
|
338
|
-
modelId: options.model
|
|
337
|
+
modelId: options.model,
|
|
338
|
+
operation: "brief_update",
|
|
339
|
+
cost: { owner: "caller" }
|
|
339
340
|
}),
|
|
340
341
|
input: briefInputFromSnapshot(snapshot, throughIndex),
|
|
341
342
|
previous: versions.at(-1)?.brief,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-BriFLnaJ.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-Bfnw551N.js";
|
|
2
2
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
|
|
|
99
99
|
async function configureLocalChatPlugins(pluginSet) {
|
|
100
100
|
const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
|
|
101
101
|
import("../plugins-HYh_JOdw.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../
|
|
102
|
+
import("../projection-CL_YWeGf.js").then((n) => n.Un),
|
|
103
|
+
import("../catalog-runtime-BCIuBe4d.js").then((n) => n.t),
|
|
104
|
+
import("../validation-K4pqwoVZ.js").then((n) => n.r),
|
|
105
|
+
import("../db-DJ11eZqq.js").then((n) => n.n)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,18 +152,18 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig } = await import("../projection-CL_YWeGf.js").then((n) => n.tr);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
158
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
157
|
+
const { runLocalAgentTurn } = await import("../runner-D3YeCQgt.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-hiDKK0_n.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.js").then((n) => n.t);
|
|
160
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
161
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
162
|
-
const { bindMessageAgent } = await import("../message-
|
|
163
|
-
const { createChildConversationWorker } = await import("../result-
|
|
164
|
-
const { skipInputAfterConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CcnSPP4S.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-CalgZQiu.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-CsUbuEc8.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker } = await import("../result-Bo1TZu0Q.js").then((n) => n.i);
|
|
164
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-B2Nut40V.js").then((n) => n.a);
|
|
165
165
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
166
|
-
const { processConversationWork } = await import("../worker-
|
|
166
|
+
const { processConversationWork } = await import("../worker-CYO1Q0Js.js").then((n) => n.n);
|
|
167
167
|
let agentRunner;
|
|
168
168
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
169
169
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-BO5zU6Mt.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-BriFLnaJ.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-CD5aJdzg.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
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-C9urXVfi.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-r6fl0b-9.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-DaXiMWzT.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 {
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { $a as createPluginLogger, $n as validatePlugins, Qn as setPlugins } from "../projection-CL_YWeGf.js";
|
|
2
|
+
import { o as getDb } from "../db-DJ11eZqq.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BCIuBe4d.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-K4pqwoVZ.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 { Pa as SANDBOX_RUNTIME, ki as create } from "../projection-CL_YWeGf.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BCIuBe4d.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-CL-HUKgd.js";
|
|
4
|
+
import { n as resolve } from "../resolve-Bt6GgAiA.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
7
7
|
function progressMessage(phase) {
|
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-CkHcUMN7.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-BY9TB31g.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-BriFLnaJ.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";
|