@sentry/junior 0.321.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.
Files changed (65) hide show
  1. package/dist/{adapter-BkDQYdg6.js → adapter-CKtEUuWD.js} +23 -2
  2. package/dist/{admin-XS3G9BOj.js → admin-BGOiUGwR.js} +1 -1
  3. package/dist/{agent-CL9ZkOgx.js → agent-OUkEw6Bv.js} +272 -1647
  4. package/dist/{agent-status-Bq_AIpyp.js → agent-status-C_HHxO_d.js} +1 -10
  5. package/dist/{agent-update-delivery-t0bXEgPs.js → agent-update-delivery-H6mnPI4q.js} +4 -4
  6. package/dist/api/schema.d.ts +98 -6
  7. package/dist/api/schema.js +6 -6
  8. package/dist/api.js +81 -36
  9. package/dist/{app-CwFRvmEH.d.ts → app-BK_vhZIq.d.ts} +1 -1
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +85 -48
  12. package/dist/{change-record-CRuG9Mu3.d.ts → change-record-DdrJxahk.d.ts} +26 -10
  13. package/dist/{channel-access-BUHB0saC.js → channel-access-DRhVJIuQ.js} +1 -1
  14. package/dist/{chat-core-engine-DuBaPbqK.js → chat-core-engine-El308gYr.js} +5 -10
  15. package/dist/cli/chat.js +16 -16
  16. package/dist/cli/check.js +4 -4
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +3 -3
  19. package/dist/cli/snapshot-create.js +4 -4
  20. package/dist/cli/upgrade.js +2 -2
  21. package/dist/{continue-in-slack-D9naZmqM.js → continue-in-slack-DYl631oM.js} +3 -3
  22. package/dist/{conversation-feed-B1_1NJc8.js → conversation-feed-BUaMmSLi.js} +1 -1
  23. package/dist/{conversation-privacy-C0mixZKx.js → conversation-privacy-DR_j5Tqf.js} +1 -1
  24. package/dist/{create-CLV0M1vw.js → create-ZkI-_JAs.js} +2 -2
  25. package/dist/{credential-sync-DL9r-ry5.js → credential-sync-Bo6_FtCI.js} +12 -12
  26. package/dist/{db-CbURDbaB.js → db-RDpWIeRK.js} +1733 -213
  27. package/dist/{deployment-D9uPRDMD.js → deployment-CeKaP0ZJ.js} +1 -1
  28. package/dist/{html-l4hKICAL.js → html-BMv4fAPu.js} +5 -5
  29. package/dist/instrumentation.js +2 -2
  30. package/dist/{list-cGaO9_Hf.js → list-CuLf7Ob2.js} +38 -35
  31. package/dist/{logging-CqgOoICc.js → logging-BQsfrLHl.js} +1 -1
  32. package/dist/{markers-BtUv4-oc.js → markers-Bh0vqJ5k.js} +3178 -1748
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +3 -4
  35. package/dist/{oauth-callback-server-C3GxhsuB.js → oauth-callback-server-BxuN0Jqz.js} +2 -2
  36. package/dist/{oauth-relay-BGm6sLCB.js → oauth-relay-vyG2gOwY.js} +1 -1
  37. package/dist/{profile-bLo0h7Le.js → profile-DiAB4QfT.js} +31 -6
  38. package/dist/{prompt-CX29OGO9.js → prompt-5PDkRQ1K.js} +2 -1
  39. package/dist/{reports-DeDCCu_H.js → reports-CbqB7unq.js} +2 -2
  40. package/dist/{resolve-D9RKNH3v.js → resolve-C7e0pwuP.js} +5 -5
  41. package/dist/{result-BFBwK1M2.js → result-D_D-2Adp.js} +5 -5
  42. package/dist/{runner-DNdoVQg8.js → runner-CCVTdp0x.js} +7 -7
  43. package/dist/{sandbox-egress-signals-BBcCiEhm.js → sandbox-egress-signals-D4OKOFgy.js} +1 -1
  44. package/dist/{schema-RzsplzdI.js → schema-CmPO8BfI.js} +50 -12
  45. package/dist/{service-account-B7E7OIFP.js → service-account-CeWsFrBi.js} +2 -2
  46. package/dist/{skills-DMJsS5e4.js → skills-DfbOjWxl.js} +5 -5
  47. package/dist/{slack-conversation-unfurl-EWYTnBZI.js → slack-conversation-unfurl-BxF0Yb3-.js} +10 -9
  48. package/dist/{system-prompt-table-C886lsT9.js → system-prompt-table-DySHMtu0.js} +15 -15
  49. package/dist/{topics-DxuKurCX.js → topic-ChZe9WPj.js} +6 -1
  50. package/dist/{engine-context-BP0h6u4m.js → turn-ended-DQ10G3in.js} +11 -845
  51. package/dist/{types-CGgQ3-Bb.js → types-BWAgOJtR.js} +95 -70
  52. package/dist/{user-customization-CvfuY9Eo.js → user-customization-DNzu_r1x.js} +10 -1
  53. package/dist/{users-DBrcQl47.js → users-BmZlg_ci.js} +13 -7
  54. package/dist/{validation-CofUHWqz.js → validation-BU4tXvH3.js} +1 -1
  55. package/dist/{version-D_vbXyNw.js → version-D9yLYOBu.js} +1 -1
  56. package/dist/version.js +1 -1
  57. package/dist/{worker-buhFcpl9.js → worker-C7EDSL3d.js} +4 -4
  58. package/migrations/20261127184420_question_answerer/migration.sql +36 -0
  59. package/migrations/20261127184420_question_answerer/snapshot.json +108 -0
  60. package/migrations/20261127224730_inbox_item_close_action/migration.sql +1 -0
  61. package/migrations/20261127224730_inbox_item_close_action/snapshot.json +42 -0
  62. package/package.json +6 -6
  63. package/skills/design-automation-skill/SKILL.md +1 -1
  64. package/dist/storage-XD0lB4Gk.js +0 -273
  65. package/dist/topic-B2EWKKBT.js +0 -6
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { _ as toOptionalTrimmed } from "./topics-DxuKurCX.js";
3
- import { G as mapBounded } from "./prompt-CX29OGO9.js";
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, gc as setUserAdminFromSql, uc as listAdminUsersFromSql } from "./db-CbURDbaB.js";
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
  /**