@sentry/junior 0.320.0 → 0.322.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-DlLLoJKj.js → adapter-CKtEUuWD.js} +23 -2
- package/dist/{admin-BzRXDVfh.js → admin-BGOiUGwR.js} +1 -1
- package/dist/{agent-DxZ7nHfD.js → agent-OUkEw6Bv.js} +276 -1648
- package/dist/{agent-status-Bq_AIpyp.js → agent-status-C_HHxO_d.js} +1 -10
- package/dist/{agent-update-delivery-CO4FU5Gg.js → agent-update-delivery-H6mnPI4q.js} +4 -4
- package/dist/api/schema.d.ts +98 -16
- package/dist/api/schema.js +6 -6
- package/dist/api.js +81 -36
- package/dist/{app-CHCFIIDu.d.ts → app-BK_vhZIq.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +85 -48
- package/dist/{change-record-K-KsqNhT.d.ts → change-record-DdrJxahk.d.ts} +26 -15
- package/dist/{channel-access-BghWqlXx.js → channel-access-DRhVJIuQ.js} +1 -1
- package/dist/{chat-core-engine-BgfSLrDu.js → chat-core-engine-El308gYr.js} +5 -10
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +4 -4
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.js +2 -2
- package/dist/{continue-in-slack-DBlQP4PC.js → continue-in-slack-DYl631oM.js} +3 -3
- package/dist/{conversation-feed-DEUdD7mb.js → conversation-feed-BUaMmSLi.js} +2 -12
- package/dist/{conversation-privacy-qoh95v90.js → conversation-privacy-DR_j5Tqf.js} +1 -1
- package/dist/{create-jZSaDrCR.js → create-ZkI-_JAs.js} +2 -2
- package/dist/{credential-sync-Bj9-UlNE.js → credential-sync-Bo6_FtCI.js} +12 -12
- package/dist/{db-BacvswT0.js → db-RDpWIeRK.js} +1744 -216
- package/dist/{deployment-BoJkRPDt.js → deployment-CeKaP0ZJ.js} +1 -1
- package/dist/{html-DW0pw5Pr.js → html-BMv4fAPu.js} +5 -5
- package/dist/instrumentation.js +2 -2
- package/dist/{list-Dz3CdP3g.js → list-CuLf7Ob2.js} +39 -70
- package/dist/{logging-DsTnMqyi.js → logging-BQsfrLHl.js} +1 -1
- package/dist/{markers-C33gNYNE.js → markers-Bh0vqJ5k.js} +3186 -1754
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -4
- package/dist/{oauth-callback-server-C-pEhAQK.js → oauth-callback-server-BxuN0Jqz.js} +2 -2
- package/dist/{oauth-relay-DIXdH-io.js → oauth-relay-vyG2gOwY.js} +1 -1
- package/dist/{profile-v9vA3RvH.js → profile-DiAB4QfT.js} +39 -8
- package/dist/{prompt-C5CW2wKO.js → prompt-5PDkRQ1K.js} +2 -1
- package/dist/{reports-eBgrhPXS.js → reports-CbqB7unq.js} +2 -2
- package/dist/{resolve-HVXmbeCr.js → resolve-C7e0pwuP.js} +5 -5
- package/dist/{result-BPNzgeTl.js → result-D_D-2Adp.js} +7 -7
- package/dist/{runner-aNSDTST6.js → runner-CCVTdp0x.js} +7 -7
- package/dist/{sandbox-egress-signals-nzp9Ykf7.js → sandbox-egress-signals-D4OKOFgy.js} +1 -1
- package/dist/{schema-BlTO5M1d.js → schema-CmPO8BfI.js} +50 -12
- package/dist/{service-account-DWIf1t6p.js → service-account-CeWsFrBi.js} +2 -2
- package/dist/{skills-50izzzdK.js → skills-DfbOjWxl.js} +5 -5
- package/dist/{slack-conversation-unfurl-C6jXhVYg.js → slack-conversation-unfurl-BxF0Yb3-.js} +10 -9
- package/dist/{system-prompt-table-CIR1B44Z.js → system-prompt-table-DySHMtu0.js} +17 -17
- package/dist/{topics-DxuKurCX.js → topic-ChZe9WPj.js} +6 -1
- package/dist/{engine-context-Bi3Ync5t.js → turn-ended-DQ10G3in.js} +11 -845
- package/dist/{types-BNHkJrOP.js → types-BWAgOJtR.js} +95 -78
- package/dist/{user-customization-CvfuY9Eo.js → user-customization-DNzu_r1x.js} +10 -1
- package/dist/{users-DOVo9sdU.js → users-BmZlg_ci.js} +13 -7
- package/dist/{validation-CK0vuEHB.js → validation-BU4tXvH3.js} +1 -1
- package/dist/{version-BuLVNlxB.js → version-D9yLYOBu.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{worker-C82kHU1R.js → worker-C7EDSL3d.js} +4 -4
- package/migrations/20261127184420_question_answerer/migration.sql +36 -0
- package/migrations/20261127184420_question_answerer/snapshot.json +108 -0
- package/migrations/20261127224730_inbox_item_close_action/migration.sql +1 -0
- package/migrations/20261127224730_inbox_item_close_action/snapshot.json +42 -0
- package/package.json +6 -6
- package/skills/design-automation-skill/SKILL.md +1 -1
- package/dist/storage-BtCxXiNt.js +0 -273
- package/dist/topic-B2EWKKBT.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { G as mapBounded } from "./prompt-
|
|
2
|
+
import { y as toOptionalTrimmed } from "./topic-ChZe9WPj.js";
|
|
3
|
+
import { G as mapBounded } from "./prompt-5PDkRQ1K.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
6
6
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
@@ -989,6 +989,24 @@ function deriveTrust(trust, allowedDomainsEnv) {
|
|
|
989
989
|
allowedDomains: [...new Set((trust.allowedDomains ?? parseEnvList("JUNIOR_ALLOWED_DOMAINS", allowedDomainsEnv) ?? []).map((value) => value.trim().toLowerCase()).filter(Boolean))]
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
|
+
// src/config/turn-engine.ts
|
|
993
|
+
/** The engine that runs Turns. Defaults to `main`. */
|
|
994
|
+
const turnEngineFields = { turnEngine: z.enum(["main", "core"]).default("main") };
|
|
995
|
+
/** Env var that sets the Turn engine, for error messages. */
|
|
996
|
+
const turnEngineEnvNames = { turnEngine: "JUNIOR_TURN_ENGINE" };
|
|
997
|
+
function parseTurnEngine(rawValue) {
|
|
998
|
+
const value = toOptionalTrimmed(rawValue);
|
|
999
|
+
switch (value) {
|
|
1000
|
+
case void 0:
|
|
1001
|
+
case "main":
|
|
1002
|
+
case "core": return value;
|
|
1003
|
+
default: throw new Error("JUNIOR_TURN_ENGINE must be main or core");
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
/** Read the Turn engine from env. */
|
|
1007
|
+
function readTurnEngineEnv(env) {
|
|
1008
|
+
return { turnEngine: parseTurnEngine(env["JUNIOR_TURN_ENGINE"]) };
|
|
1009
|
+
}
|
|
992
1010
|
// src/config/web-push.ts
|
|
993
1011
|
/** VAPID settings for web push notifications. */
|
|
994
1012
|
const webPushSchema = z.strictObject({
|
|
@@ -1020,6 +1038,7 @@ const configSchema = z.strictObject({
|
|
|
1020
1038
|
functionMaxDurationSeconds: functionMaxDurationSecondsSchema,
|
|
1021
1039
|
limits: limitsSchema.optional(),
|
|
1022
1040
|
...killSwitchFields,
|
|
1041
|
+
...turnEngineFields,
|
|
1023
1042
|
encryption: encryptionSchema,
|
|
1024
1043
|
secrets: secretsSchema,
|
|
1025
1044
|
signIn: signInSchema,
|
|
@@ -1048,6 +1067,7 @@ const ENV_NAMES = {
|
|
|
1048
1067
|
...attachmentStorageEnvNames,
|
|
1049
1068
|
...queueEnvNames,
|
|
1050
1069
|
...killSwitchEnvNames,
|
|
1070
|
+
...turnEngineEnvNames,
|
|
1051
1071
|
...encryptionEnvNames,
|
|
1052
1072
|
...sqlEnvNames,
|
|
1053
1073
|
...slackEnvNames,
|
|
@@ -1063,6 +1083,7 @@ function readEnv(env) {
|
|
|
1063
1083
|
memory: readMemoryEnv(env),
|
|
1064
1084
|
queue: readQueueEnv(env),
|
|
1065
1085
|
...readKillSwitchesEnv(env),
|
|
1086
|
+
...readTurnEngineEnv(env),
|
|
1066
1087
|
encryption: readEncryption(env),
|
|
1067
1088
|
secrets: readSecretsEnv(env),
|
|
1068
1089
|
signIn: readSignInEnv(env),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDb,
|
|
1
|
+
import { a as getDb, ll as setUserAdminFromSql, rl as listAdminUsersFromSql } from "./db-RDpWIeRK.js";
|
|
2
2
|
import { CLI_USAGE } from "./cli/run.js";
|
|
3
3
|
// src/cli/admin.ts
|
|
4
4
|
/**
|