@sentry/junior 0.79.0 → 0.80.1
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/{agent-hooks-OFDNZJB2.js → agent-hooks-ZGTDOXQY.js} +11 -10
- package/dist/app.js +39 -41
- package/dist/catalog-runtime-IVWRAPSI.js +12 -0
- package/dist/chat/conversation-privacy.d.ts +4 -0
- package/dist/chat/plugins/catalog-runtime.d.ts +1 -0
- package/dist/chat/plugins/registry.d.ts +27 -26
- package/dist/chat/sentry-payload-filter.d.ts +14 -0
- package/dist/chat/sentry.d.ts +1 -1
- package/dist/chat/tools/definition.d.ts +6 -0
- package/dist/{chunk-LUNMJQ7D.js → chunk-2AJ4TEKE.js} +6 -6
- package/dist/{chunk-ST6YNAXG.js → chunk-3DA7X2U3.js} +6 -3
- package/dist/{chunk-PNGAJ75P.js → chunk-3JKTVW4R.js} +7 -8
- package/dist/{chunk-Q6XFTRV5.js → chunk-4XHCVBXH.js} +2 -2
- package/dist/{chunk-Z4CIQ3EB.js → chunk-66NX7MNW.js} +1 -1
- package/dist/{chunk-Q3XNY442.js → chunk-6APU57E6.js} +1 -3
- package/dist/{chunk-T77LUIX3.js → chunk-ABRNFE3N.js} +7 -211
- package/dist/chunk-DR75T7J3.js +225 -0
- package/dist/{chunk-KIDP757T.js → chunk-FAGWUF44.js} +17 -7
- package/dist/{chunk-OJ53FYVG.js → chunk-FTMXFBDC.js} +14 -0
- package/dist/{chunk-RARSKPVT.js → chunk-GUO4EE7L.js} +2 -2
- package/dist/{chunk-2ECJXSVQ.js → chunk-IOBSRZK5.js} +1 -1
- package/dist/{chunk-EJN6G5A2.js → chunk-KF7522P3.js} +5 -19
- package/dist/{chunk-C2YBH4S6.js → chunk-LX5GBMEP.js} +6 -6
- package/dist/{chunk-237T7XAN.js → chunk-PQ2U2AO3.js} +3 -3
- package/dist/{chunk-YLVJRYTD.js → chunk-TW23AT22.js} +190 -196
- package/dist/{chunk-NNM7YQLL.js → chunk-W2QGQCKG.js} +66 -54
- package/dist/{chunk-Y3EG7S7P.js → chunk-WCXVEQPI.js} +7 -8
- package/dist/{chunk-LXTPBU4K.js → chunk-X2FL5ZH5.js} +1 -1
- package/dist/{chunk-SSWBYEFH.js → chunk-Y3YUOEAZ.js} +13 -7
- package/dist/{chunk-R5T7QY3P.js → chunk-YA2JCC7G.js} +10 -8
- package/dist/{chunk-VALUBQ7R.js → chunk-ZPCGQRFJ.js} +1 -1
- package/dist/cli/chat.js +12 -10
- package/dist/cli/check.js +7 -7
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +17 -16
- package/dist/cli/snapshot-warmup.js +14 -15
- package/dist/cli/upgrade.js +20 -22
- package/dist/db-GQJKBX5W.js +18 -0
- package/dist/instrumentation.js +76 -3
- package/dist/nitro.js +8 -7
- package/dist/reporting.js +19 -19
- package/dist/{runner-GEZ5FN4R.js → runner-JOVPVMIH.js} +18 -17
- package/dist/{sentry-4CP5NNQ5.js → sentry-EGFOV3DH.js} +5 -3
- package/dist/validation-TN6HMZAD.js +15 -0
- package/package.json +5 -5
- package/dist/db-NGQ3JCMF.js +0 -17
- package/dist/registry-RRIDPJBT.js +0 -46
- package/dist/validation-MDMYBRFB.js +0 -15
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveRuntimeDependencySnapshot
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3JKTVW4R.js";
|
|
4
4
|
import "../chunk-G3E7SCME.js";
|
|
5
5
|
import {
|
|
6
6
|
disconnectStateAdapter
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-X2FL5ZH5.js";
|
|
8
|
+
import "../chunk-ABRNFE3N.js";
|
|
9
|
+
import "../chunk-DR75T7J3.js";
|
|
9
10
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-OJ53FYVG.js";
|
|
18
|
-
import "../chunk-ST6YNAXG.js";
|
|
11
|
+
pluginCatalogRuntime
|
|
12
|
+
} from "../chunk-TW23AT22.js";
|
|
13
|
+
import "../chunk-ZPCGQRFJ.js";
|
|
14
|
+
import "../chunk-6APU57E6.js";
|
|
15
|
+
import "../chunk-KF7522P3.js";
|
|
16
|
+
import "../chunk-FTMXFBDC.js";
|
|
17
|
+
import "../chunk-3DA7X2U3.js";
|
|
19
18
|
import "../chunk-MLKGABMK.js";
|
|
20
19
|
|
|
21
20
|
// src/cli/snapshot-warmup.ts
|
|
@@ -40,21 +39,21 @@ function formatList(values) {
|
|
|
40
39
|
return values.length > 0 ? values.join(", ") : "none";
|
|
41
40
|
}
|
|
42
41
|
function logSnapshotProfile(log) {
|
|
43
|
-
const providers =
|
|
42
|
+
const providers = pluginCatalogRuntime.getProviders();
|
|
44
43
|
const pluginNames = providers.map((plugin) => plugin.manifest.name).sort();
|
|
45
44
|
const snapshotPluginNames = providers.filter(
|
|
46
45
|
(plugin) => (plugin.manifest.runtimeDependencies?.length ?? 0) > 0 || (plugin.manifest.runtimePostinstall?.length ?? 0) > 0
|
|
47
46
|
).map((plugin) => plugin.manifest.name).sort();
|
|
48
47
|
const systemDependencies = [];
|
|
49
48
|
const npmDependencies = [];
|
|
50
|
-
for (const dep of
|
|
49
|
+
for (const dep of pluginCatalogRuntime.getRuntimeDependencies()) {
|
|
51
50
|
if (dep.type === "npm") {
|
|
52
51
|
npmDependencies.push(`${dep.package}@${dep.version}`);
|
|
53
52
|
continue;
|
|
54
53
|
}
|
|
55
54
|
systemDependencies.push("package" in dep ? dep.package : dep.url);
|
|
56
55
|
}
|
|
57
|
-
const postinstallCommands =
|
|
56
|
+
const postinstallCommands = pluginCatalogRuntime.getRuntimePostinstall().map(
|
|
58
57
|
({ cmd, args }) => [cmd, ...args ?? []].filter((part) => part.trim().length > 0).join(" ")
|
|
59
58
|
);
|
|
60
59
|
log(`Loaded plugins (${pluginNames.length}): ${formatList(pluginNames)}`);
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
recordConversationActivity,
|
|
5
5
|
recordConversationExecution,
|
|
6
6
|
requestConversationWork
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-2AJ4TEKE.js";
|
|
8
8
|
import {
|
|
9
9
|
JUNIOR_THREAD_STATE_TTL_MS,
|
|
10
10
|
coerceThreadConversationState
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-66NX7MNW.js";
|
|
12
12
|
import {
|
|
13
13
|
defineJuniorPlugins,
|
|
14
14
|
pluginCatalogConfigFromEnv,
|
|
@@ -18,39 +18,39 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
createPluginLogger,
|
|
20
20
|
createPluginState
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-GUO4EE7L.js";
|
|
22
22
|
import {
|
|
23
23
|
createJuniorSqlExecutor,
|
|
24
24
|
createSqlStore,
|
|
25
25
|
getDb
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-PQ2U2AO3.js";
|
|
27
27
|
import {
|
|
28
28
|
disconnectStateAdapter,
|
|
29
29
|
getConnectedStateContext
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-X2FL5ZH5.js";
|
|
31
31
|
import {
|
|
32
32
|
parseDestination,
|
|
33
33
|
sameDestination
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-4XHCVBXH.js";
|
|
35
35
|
import {
|
|
36
36
|
getChatConfig
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-ABRNFE3N.js";
|
|
38
|
+
import "../chunk-DR75T7J3.js";
|
|
38
39
|
import {
|
|
39
40
|
loadAppPluginSet
|
|
40
41
|
} from "../chunk-Y2CM7HXH.js";
|
|
41
42
|
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
import "../chunk-
|
|
46
|
-
import "../chunk-
|
|
43
|
+
pluginCatalogRuntime
|
|
44
|
+
} from "../chunk-TW23AT22.js";
|
|
45
|
+
import "../chunk-ZPCGQRFJ.js";
|
|
46
|
+
import "../chunk-6APU57E6.js";
|
|
47
|
+
import "../chunk-KF7522P3.js";
|
|
47
48
|
import {
|
|
48
49
|
isRecord,
|
|
49
50
|
toOptionalNumber,
|
|
50
51
|
toOptionalString
|
|
51
|
-
} from "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-ST6YNAXG.js";
|
|
52
|
+
} from "../chunk-FTMXFBDC.js";
|
|
53
|
+
import "../chunk-3DA7X2U3.js";
|
|
54
54
|
import "../chunk-MLKGABMK.js";
|
|
55
55
|
|
|
56
56
|
// src/cli/upgrade.ts
|
|
@@ -218,7 +218,7 @@ async function runPluginStorageMigrations(context) {
|
|
|
218
218
|
if (!pluginSet) {
|
|
219
219
|
return emptyResult();
|
|
220
220
|
}
|
|
221
|
-
const previousConfig =
|
|
221
|
+
const previousConfig = pluginCatalogRuntime.setConfig(pluginCatalogConfig);
|
|
222
222
|
const ownedExecutor = context.db || !context.sqlDatabaseUrl ? void 0 : createJuniorSqlExecutor({
|
|
223
223
|
connectionString: context.sqlDatabaseUrl,
|
|
224
224
|
driver: context.sqlDriver ?? getChatConfig().sql.driver
|
|
@@ -248,7 +248,7 @@ async function runPluginStorageMigrations(context) {
|
|
|
248
248
|
}
|
|
249
249
|
return result;
|
|
250
250
|
} finally {
|
|
251
|
-
|
|
251
|
+
pluginCatalogRuntime.setConfig(previousConfig);
|
|
252
252
|
await ownedExecutor?.close();
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -388,15 +388,13 @@ function requirePluginSqlDatabaseUrl(context) {
|
|
|
388
388
|
async function migratePluginsToSql(context) {
|
|
389
389
|
const databaseUrl = requirePluginSqlDatabaseUrl(context);
|
|
390
390
|
const { pluginCatalogConfig } = await resolveUpgradePlugins(context);
|
|
391
|
-
const previousConfig =
|
|
391
|
+
const previousConfig = pluginCatalogRuntime.setConfig(pluginCatalogConfig);
|
|
392
392
|
const executor = createJuniorSqlExecutor({
|
|
393
393
|
connectionString: databaseUrl,
|
|
394
394
|
driver: context.sqlDriver ?? getChatConfig().sql.driver
|
|
395
395
|
});
|
|
396
396
|
try {
|
|
397
|
-
const migrations =
|
|
398
|
-
(root) => readPluginMigrations(root)
|
|
399
|
-
);
|
|
397
|
+
const migrations = pluginCatalogRuntime.getMigrationRoots().flatMap((root) => readPluginMigrations(root));
|
|
400
398
|
const result = await migratePluginSchemas(executor, migrations);
|
|
401
399
|
return {
|
|
402
400
|
existing: result.existing,
|
|
@@ -405,7 +403,7 @@ async function migratePluginsToSql(context) {
|
|
|
405
403
|
scanned: result.scanned
|
|
406
404
|
};
|
|
407
405
|
} finally {
|
|
408
|
-
|
|
406
|
+
pluginCatalogRuntime.setConfig(previousConfig);
|
|
409
407
|
await executor.close();
|
|
410
408
|
}
|
|
411
409
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
closeDb,
|
|
3
|
+
getConversationStore,
|
|
4
|
+
getDb
|
|
5
|
+
} from "./chunk-PQ2U2AO3.js";
|
|
6
|
+
import "./chunk-4XHCVBXH.js";
|
|
7
|
+
import "./chunk-ABRNFE3N.js";
|
|
8
|
+
import "./chunk-DR75T7J3.js";
|
|
9
|
+
import "./chunk-ZPCGQRFJ.js";
|
|
10
|
+
import "./chunk-KF7522P3.js";
|
|
11
|
+
import "./chunk-FTMXFBDC.js";
|
|
12
|
+
import "./chunk-3DA7X2U3.js";
|
|
13
|
+
import "./chunk-MLKGABMK.js";
|
|
14
|
+
export {
|
|
15
|
+
closeDb,
|
|
16
|
+
getConversationStore,
|
|
17
|
+
getDb
|
|
18
|
+
};
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,15 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurrentConversationPrivacy
|
|
3
|
+
} from "./chunk-DR75T7J3.js";
|
|
1
4
|
import {
|
|
2
5
|
getDeploymentServiceVersion,
|
|
3
6
|
getDeploymentTelemetryAttributes
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FTMXFBDC.js";
|
|
5
8
|
import {
|
|
6
9
|
getClient,
|
|
7
10
|
getGlobalScope,
|
|
8
11
|
init,
|
|
9
|
-
vercelAIIntegration
|
|
10
|
-
|
|
12
|
+
vercelAIIntegration,
|
|
13
|
+
withStreamedSpan
|
|
14
|
+
} from "./chunk-3DA7X2U3.js";
|
|
11
15
|
import "./chunk-MLKGABMK.js";
|
|
12
16
|
|
|
17
|
+
// src/chat/sentry-payload-filter.ts
|
|
18
|
+
var PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
|
19
|
+
"app.message.input",
|
|
20
|
+
"app.message.output",
|
|
21
|
+
"gen_ai.input.messages",
|
|
22
|
+
"gen_ai.output.messages",
|
|
23
|
+
"gen_ai.system_instructions",
|
|
24
|
+
"gen_ai.tool.call.arguments",
|
|
25
|
+
"gen_ai.tool.call.result"
|
|
26
|
+
]);
|
|
27
|
+
function hasPayloadAttributes(attributes) {
|
|
28
|
+
return Object.keys(attributes).some((key) => PAYLOAD_ATTRIBUTE_KEYS.has(key));
|
|
29
|
+
}
|
|
30
|
+
function shouldScrubPayloads(attributes) {
|
|
31
|
+
if (!hasPayloadAttributes(attributes)) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return getCurrentConversationPrivacy() !== "public";
|
|
35
|
+
}
|
|
36
|
+
function scrubPayloadAttributes(attributes) {
|
|
37
|
+
if (!attributes) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (!shouldScrubPayloads(attributes)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
for (const key of PAYLOAD_ATTRIBUTE_KEYS) {
|
|
44
|
+
delete attributes[key];
|
|
45
|
+
}
|
|
46
|
+
attributes["app.conversation.payload_redacted"] = true;
|
|
47
|
+
}
|
|
48
|
+
function scrubContainer(container) {
|
|
49
|
+
if (!container) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
scrubPayloadAttributes(container.data);
|
|
53
|
+
scrubPayloadAttributes(container.attributes);
|
|
54
|
+
}
|
|
55
|
+
function scrubPrivateSentryEvent(event) {
|
|
56
|
+
const eventRecord = event;
|
|
57
|
+
scrubContainer(eventRecord);
|
|
58
|
+
scrubContainer(event.contexts?.trace);
|
|
59
|
+
for (const breadcrumb of event.breadcrumbs ?? []) {
|
|
60
|
+
scrubContainer(breadcrumb);
|
|
61
|
+
}
|
|
62
|
+
return event;
|
|
63
|
+
}
|
|
64
|
+
function scrubPrivateSentryTransaction(event) {
|
|
65
|
+
const eventRecord = event;
|
|
66
|
+
scrubContainer(eventRecord);
|
|
67
|
+
scrubContainer(event.contexts?.trace);
|
|
68
|
+
for (const span of event.spans ?? []) {
|
|
69
|
+
scrubContainer(span);
|
|
70
|
+
}
|
|
71
|
+
return event;
|
|
72
|
+
}
|
|
73
|
+
function scrubPrivateSentrySpan(span) {
|
|
74
|
+
scrubContainer(span);
|
|
75
|
+
return span;
|
|
76
|
+
}
|
|
77
|
+
function scrubPrivateSentryLog(log) {
|
|
78
|
+
scrubContainer(log);
|
|
79
|
+
return log;
|
|
80
|
+
}
|
|
81
|
+
|
|
13
82
|
// src/instrumentation.ts
|
|
14
83
|
function getSampleRate(value, fallback) {
|
|
15
84
|
if (!value) return fallback;
|
|
@@ -41,6 +110,10 @@ function initSentry() {
|
|
|
41
110
|
enableLogs,
|
|
42
111
|
registerEsmLoaderHooks: false,
|
|
43
112
|
streamGenAiSpans: true,
|
|
113
|
+
beforeSend: scrubPrivateSentryEvent,
|
|
114
|
+
beforeSendLog: scrubPrivateSentryLog,
|
|
115
|
+
beforeSendSpan: withStreamedSpan(scrubPrivateSentrySpan),
|
|
116
|
+
beforeSendTransaction: scrubPrivateSentryTransaction,
|
|
44
117
|
integrations: [
|
|
45
118
|
vercelAIIntegration({
|
|
46
119
|
recordInputs: true,
|
package/dist/nitro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveConversationWorkQueueTopic
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IOBSRZK5.js";
|
|
4
4
|
import {
|
|
5
5
|
PLUGIN_TASK_QUEUE_TOPIC
|
|
6
6
|
} from "./chunk-KNFROR7R.js";
|
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
pluginCatalogConfigFromPluginSet,
|
|
9
9
|
pluginRuntimeRegistrationsFromPluginSet
|
|
10
10
|
} from "./chunk-SG5WAA7H.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4XHCVBXH.js";
|
|
12
|
+
import "./chunk-ABRNFE3N.js";
|
|
13
|
+
import "./chunk-DR75T7J3.js";
|
|
13
14
|
import {
|
|
14
15
|
loadPluginSetFromModule,
|
|
15
16
|
resolvePluginModule
|
|
@@ -18,15 +19,15 @@ import {
|
|
|
18
19
|
discoverInstalledPluginPackageContent,
|
|
19
20
|
isValidPackageName,
|
|
20
21
|
resolvePackageDir
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-6APU57E6.js";
|
|
23
|
+
import "./chunk-KF7522P3.js";
|
|
23
24
|
import {
|
|
24
25
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
25
26
|
JUNIOR_HEARTBEAT_CRON_SCHEDULE,
|
|
26
27
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
27
28
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-FTMXFBDC.js";
|
|
30
|
+
import "./chunk-3DA7X2U3.js";
|
|
30
31
|
import "./chunk-MLKGABMK.js";
|
|
31
32
|
|
|
32
33
|
// src/nitro.ts
|
package/dist/reporting.js
CHANGED
|
@@ -6,46 +6,46 @@ import {
|
|
|
6
6
|
getConversationDetails,
|
|
7
7
|
getConversationDetailsForIds,
|
|
8
8
|
resolveSlackConversationContextFromThreadId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LX5GBMEP.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSystemPrompt,
|
|
12
12
|
getAgentTurnSessionRecord,
|
|
13
13
|
listAgentTurnSessionSummariesForConversation,
|
|
14
14
|
loadActivityEntries
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YA2JCC7G.js";
|
|
16
16
|
import {
|
|
17
17
|
getPluginOperationalReports
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-Y3YUOEAZ.js";
|
|
19
|
+
import "./chunk-GUO4EE7L.js";
|
|
20
20
|
import {
|
|
21
21
|
getConversationStore
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PQ2U2AO3.js";
|
|
23
23
|
import "./chunk-G3E7SCME.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-X2FL5ZH5.js";
|
|
25
|
+
import "./chunk-4XHCVBXH.js";
|
|
26
|
+
import "./chunk-ABRNFE3N.js";
|
|
26
27
|
import {
|
|
27
28
|
canExposeConversationPayload,
|
|
28
29
|
parseSlackThreadId,
|
|
29
30
|
resolveConversationPrivacy
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DR75T7J3.js";
|
|
31
32
|
import {
|
|
32
33
|
discoverSkills
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WCXVEQPI.js";
|
|
34
35
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./chunk-YLVJRYTD.js";
|
|
36
|
+
pluginCatalogRuntime
|
|
37
|
+
} from "./chunk-TW23AT22.js";
|
|
38
38
|
import {
|
|
39
39
|
toStoredSlackRequester
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ZPCGQRFJ.js";
|
|
41
41
|
import {
|
|
42
42
|
homeDir
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6APU57E6.js";
|
|
44
|
+
import "./chunk-KF7522P3.js";
|
|
44
45
|
import {
|
|
45
46
|
isRecord
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-ST6YNAXG.js";
|
|
47
|
+
} from "./chunk-FTMXFBDC.js";
|
|
48
|
+
import "./chunk-3DA7X2U3.js";
|
|
49
49
|
import "./chunk-MLKGABMK.js";
|
|
50
50
|
|
|
51
51
|
// src/reporting.ts
|
|
@@ -1040,7 +1040,7 @@ async function readSkills() {
|
|
|
1040
1040
|
}));
|
|
1041
1041
|
}
|
|
1042
1042
|
async function readPlugins() {
|
|
1043
|
-
return
|
|
1043
|
+
return pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
1044
1044
|
name: plugin.manifest.name
|
|
1045
1045
|
}));
|
|
1046
1046
|
}
|
|
@@ -1063,7 +1063,7 @@ function createJuniorReporting() {
|
|
|
1063
1063
|
descriptionText: readDescriptionText(),
|
|
1064
1064
|
providers: plugins.map((plugin) => plugin.name),
|
|
1065
1065
|
skills,
|
|
1066
|
-
packagedContent:
|
|
1066
|
+
packagedContent: pluginCatalogRuntime.getPackageContent()
|
|
1067
1067
|
};
|
|
1068
1068
|
},
|
|
1069
1069
|
getPlugins: readPlugins,
|
|
@@ -14,35 +14,36 @@ import {
|
|
|
14
14
|
startActiveTurn,
|
|
15
15
|
updateConversationStats,
|
|
16
16
|
upsertConversationMessage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W2QGQCKG.js";
|
|
18
18
|
import {
|
|
19
19
|
coerceThreadConversationState
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-66NX7MNW.js";
|
|
21
|
+
import "./chunk-3JKTVW4R.js";
|
|
22
22
|
import "./chunk-KNFROR7R.js";
|
|
23
23
|
import {
|
|
24
24
|
commitMessages,
|
|
25
25
|
loadProjection
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-YA2JCC7G.js";
|
|
27
|
+
import "./chunk-Y3YUOEAZ.js";
|
|
28
|
+
import "./chunk-GUO4EE7L.js";
|
|
29
|
+
import "./chunk-PQ2U2AO3.js";
|
|
30
30
|
import "./chunk-G3E7SCME.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-X2FL5ZH5.js";
|
|
32
|
+
import "./chunk-4XHCVBXH.js";
|
|
33
33
|
import {
|
|
34
34
|
stripRuntimeTurnContext,
|
|
35
35
|
trimTrailingAssistantMessages
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-ABRNFE3N.js";
|
|
37
|
+
import "./chunk-DR75T7J3.js";
|
|
38
|
+
import "./chunk-WCXVEQPI.js";
|
|
39
|
+
import "./chunk-TW23AT22.js";
|
|
40
|
+
import "./chunk-ZPCGQRFJ.js";
|
|
41
|
+
import "./chunk-6APU57E6.js";
|
|
41
42
|
import {
|
|
42
43
|
logException
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-KF7522P3.js";
|
|
45
|
+
import "./chunk-FTMXFBDC.js";
|
|
46
|
+
import "./chunk-3DA7X2U3.js";
|
|
46
47
|
import "./chunk-MLKGABMK.js";
|
|
47
48
|
|
|
48
49
|
// src/chat/local/runner.ts
|
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
startSpan,
|
|
12
12
|
vercelAIIntegration,
|
|
13
13
|
withActiveSpan,
|
|
14
|
-
withScope
|
|
15
|
-
|
|
14
|
+
withScope,
|
|
15
|
+
withStreamedSpan
|
|
16
|
+
} from "./chunk-3DA7X2U3.js";
|
|
16
17
|
import "./chunk-MLKGABMK.js";
|
|
17
18
|
export {
|
|
18
19
|
captureException,
|
|
@@ -27,5 +28,6 @@ export {
|
|
|
27
28
|
startSpan,
|
|
28
29
|
vercelAIIntegration,
|
|
29
30
|
withActiveSpan,
|
|
30
|
-
withScope
|
|
31
|
+
withScope,
|
|
32
|
+
withStreamedSpan
|
|
31
33
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
validatePluginEgressCredentialHooks,
|
|
3
|
+
validatePluginRegistrations
|
|
4
|
+
} from "./chunk-FAGWUF44.js";
|
|
5
|
+
import "./chunk-TW23AT22.js";
|
|
6
|
+
import "./chunk-ZPCGQRFJ.js";
|
|
7
|
+
import "./chunk-6APU57E6.js";
|
|
8
|
+
import "./chunk-KF7522P3.js";
|
|
9
|
+
import "./chunk-FTMXFBDC.js";
|
|
10
|
+
import "./chunk-3DA7X2U3.js";
|
|
11
|
+
import "./chunk-MLKGABMK.js";
|
|
12
|
+
export {
|
|
13
|
+
validatePluginEgressCredentialHooks,
|
|
14
|
+
validatePluginRegistrations
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"pg": "^8.16.3",
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
72
|
"zod": "^4.4.3",
|
|
73
|
-
"@sentry/junior-plugin-api": "0.
|
|
73
|
+
"@sentry/junior-plugin-api": "0.80.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@emnapi/core": "^1.10.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"typescript": "^6.0.3",
|
|
87
87
|
"vercel": "^54.4.0",
|
|
88
88
|
"vitest": "^4.1.7",
|
|
89
|
-
"@sentry/junior-scheduler": "0.
|
|
90
|
-
"@sentry/junior-
|
|
91
|
-
"@sentry/junior-
|
|
89
|
+
"@sentry/junior-scheduler": "0.80.1",
|
|
90
|
+
"@sentry/junior-testing": "0.0.0",
|
|
91
|
+
"@sentry/junior-memory": "0.80.1"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
package/dist/db-NGQ3JCMF.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
closeDb,
|
|
3
|
-
getConversationStore,
|
|
4
|
-
getDb
|
|
5
|
-
} from "./chunk-237T7XAN.js";
|
|
6
|
-
import "./chunk-Q6XFTRV5.js";
|
|
7
|
-
import "./chunk-T77LUIX3.js";
|
|
8
|
-
import "./chunk-VALUBQ7R.js";
|
|
9
|
-
import "./chunk-EJN6G5A2.js";
|
|
10
|
-
import "./chunk-OJ53FYVG.js";
|
|
11
|
-
import "./chunk-ST6YNAXG.js";
|
|
12
|
-
import "./chunk-MLKGABMK.js";
|
|
13
|
-
export {
|
|
14
|
-
closeDb,
|
|
15
|
-
getConversationStore,
|
|
16
|
-
getDb
|
|
17
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createPluginBroker,
|
|
3
|
-
getPluginCapabilityProviders,
|
|
4
|
-
getPluginCatalogSignature,
|
|
5
|
-
getPluginDefinition,
|
|
6
|
-
getPluginDisplayName,
|
|
7
|
-
getPluginForSkillPath,
|
|
8
|
-
getPluginMcpProviders,
|
|
9
|
-
getPluginMigrationRoots,
|
|
10
|
-
getPluginOAuthConfig,
|
|
11
|
-
getPluginPackageContent,
|
|
12
|
-
getPluginProviders,
|
|
13
|
-
getPluginRuntimeDependencies,
|
|
14
|
-
getPluginRuntimePostinstall,
|
|
15
|
-
getPluginSkillRoots,
|
|
16
|
-
isPluginCapability,
|
|
17
|
-
isPluginConfigKey,
|
|
18
|
-
isPluginProvider,
|
|
19
|
-
setPluginCatalogConfig
|
|
20
|
-
} from "./chunk-YLVJRYTD.js";
|
|
21
|
-
import "./chunk-VALUBQ7R.js";
|
|
22
|
-
import "./chunk-Q3XNY442.js";
|
|
23
|
-
import "./chunk-EJN6G5A2.js";
|
|
24
|
-
import "./chunk-OJ53FYVG.js";
|
|
25
|
-
import "./chunk-ST6YNAXG.js";
|
|
26
|
-
import "./chunk-MLKGABMK.js";
|
|
27
|
-
export {
|
|
28
|
-
createPluginBroker,
|
|
29
|
-
getPluginCapabilityProviders,
|
|
30
|
-
getPluginCatalogSignature,
|
|
31
|
-
getPluginDefinition,
|
|
32
|
-
getPluginDisplayName,
|
|
33
|
-
getPluginForSkillPath,
|
|
34
|
-
getPluginMcpProviders,
|
|
35
|
-
getPluginMigrationRoots,
|
|
36
|
-
getPluginOAuthConfig,
|
|
37
|
-
getPluginPackageContent,
|
|
38
|
-
getPluginProviders,
|
|
39
|
-
getPluginRuntimeDependencies,
|
|
40
|
-
getPluginRuntimePostinstall,
|
|
41
|
-
getPluginSkillRoots,
|
|
42
|
-
isPluginCapability,
|
|
43
|
-
isPluginConfigKey,
|
|
44
|
-
isPluginProvider,
|
|
45
|
-
setPluginCatalogConfig
|
|
46
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validatePluginEgressCredentialHooks,
|
|
3
|
-
validatePluginRegistrations
|
|
4
|
-
} from "./chunk-KIDP757T.js";
|
|
5
|
-
import "./chunk-YLVJRYTD.js";
|
|
6
|
-
import "./chunk-VALUBQ7R.js";
|
|
7
|
-
import "./chunk-Q3XNY442.js";
|
|
8
|
-
import "./chunk-EJN6G5A2.js";
|
|
9
|
-
import "./chunk-OJ53FYVG.js";
|
|
10
|
-
import "./chunk-ST6YNAXG.js";
|
|
11
|
-
import "./chunk-MLKGABMK.js";
|
|
12
|
-
export {
|
|
13
|
-
validatePluginEgressCredentialHooks,
|
|
14
|
-
validatePluginRegistrations
|
|
15
|
-
};
|