@sentry/junior 0.221.1 → 0.222.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 (64) hide show
  1. package/dist/{agent-CY49A4pN.js → agent-7kKtDe-6.js} +47 -27
  2. package/dist/{agent-hooks-BnZBgDPe.js → agent-hooks-DkriF84n.js} +9 -8
  3. package/dist/{agent-runner-BC8iSAfE.js → agent-runner-D0ImXS7U.js} +6 -5
  4. package/dist/api/schema.d.ts +51 -2
  5. package/dist/api/schema.js +4 -4
  6. package/dist/api.js +18 -515
  7. package/dist/{app-BYD2Nyji.d.ts → app-C0zbsnr7.d.ts} +1 -1
  8. package/dist/app.d.ts +1 -1
  9. package/dist/app.js +153 -32
  10. package/dist/{auth-pause-state-CJwPs1cT.js → auth-pause-state-3OT67TA8.js} +52 -7
  11. package/dist/{briefs-BSOhy23c.js → briefs-CNH1ztn5.js} +4 -4
  12. package/dist/{catalog-runtime-0oMD2jas.js → catalog-runtime-XH_LFA_7.js} +1 -1
  13. package/dist/{checkpoint-Bl47qAIY.js → checkpoint-CRod8es5.js} +8 -7
  14. package/dist/cli/chat.js +13 -13
  15. package/dist/cli/check.js +3 -3
  16. package/dist/cli/main.js +1 -1
  17. package/dist/cli/plugins.js +3 -3
  18. package/dist/cli/snapshot-create.js +3 -3
  19. package/dist/cli/upgrade.js +3 -3
  20. package/dist/{client-BrThxuRI.js → client-CcSboWx_.js} +2 -2
  21. package/dist/{config-CEuC6CFj.js → config-CGYv-YPE.js} +2 -2
  22. package/dist/{conversation-BSRGzJmY.js → conversation-BBDt88di.js} +46 -3
  23. package/dist/{conversation-privacy-aHn1OwXL.js → conversation-privacy-BGjdDVWD.js} +1 -1
  24. package/dist/{credential-sync-Dht95TJQ.js → credential-sync-BfzGNruT.js} +125 -30
  25. package/dist/{execution-stats-D9m2kmmg.js → execution-stats-D97ePWuM.js} +3 -3
  26. package/dist/{executor-3IasVOqK.js → executor-BLBZ-UB8.js} +1 -1
  27. package/dist/{history-ClE4toxe.d.ts → history-CaV8Ww7M.d.ts} +16 -1
  28. package/dist/instrumentation.js +2 -2
  29. package/dist/{job-queue-36liupTq.js → job-queue-_8gxwDzt.js} +1 -1
  30. package/dist/{logging-gR24QCo_.js → logging-qmsMdU0y.js} +1 -1
  31. package/dist/nitro.d.ts +1 -1
  32. package/dist/nitro.js +3 -3
  33. package/dist/{oauth-callback-server-BvNIWVA3.js → oauth-callback-server-Mjfm46A5.js} +2 -2
  34. package/dist/{pending-auth-Cl4BsopG.js → pending-auth-_1Ry-_Bw.js} +2 -2
  35. package/dist/{profile-VmUpQuOm.js → profile-DbG8AlNd.js} +4 -4
  36. package/dist/{prompt-BkaHwBW0.js → prompt-B8rCQI7K.js} +1 -1
  37. package/dist/{registry-BATk1X_v.js → registry-DGyQCsiy.js} +1 -1
  38. package/dist/reporting-window-DbUqng0P.js +229 -0
  39. package/dist/{resolve-Cf79l1H8.js → resolve-D5SqDbCA.js} +2 -2
  40. package/dist/{runner-DNN4EPj_.js → runner-BRAFjJhe.js} +21 -10
  41. package/dist/{sandbox-egress-signals-C-HUJW1G.js → sandbox-egress-signals-CdI1aVHT.js} +1 -1
  42. package/dist/{schema-YPJXVcOW.js → schema-CTOODa3L.js} +5 -128
  43. package/dist/{short-title-Cy3D8vg1.js → short-title-CB2fxEyx.js} +2 -2
  44. package/dist/{skills-DMQkR1Yu.js → skills-BoS3b8cg.js} +2 -2
  45. package/dist/{spawn-BHk7RpYw.js → spawn-BXCU1udr.js} +2 -2
  46. package/dist/{stats-8Bzht8zO.js → stats-qUXQZq-w.js} +52 -13
  47. package/dist/{task-queue-Cm4FhC0n.js → task-queue-Di_q8922.js} +3 -3
  48. package/dist/{task-runner-dQwOhCYs.js → task-runner-4rCppQMo.js} +8 -8
  49. package/dist/{thread-state-D0Ktlch_.js → thread-state-2Paza8DV.js} +5 -5
  50. package/dist/{turn-execution-BfLZfabf.js → turn-execution--F7a9kEU.js} +3 -3
  51. package/dist/{turn-lifecycle-D75pWL8e.js → turn-lifecycle-f-y0Irpi.js} +1 -1
  52. package/dist/{validation-D5fdtuzG.js → validation-Be9lSORU.js} +1 -1
  53. package/dist/{version-DErORHQC.js → version-BydrOZMQ.js} +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/{web-authorization-IHMPbDay.js → web-authorization-BdfOkTuG.js} +1 -1
  56. package/dist/web-input-DegYUyKU.js +899 -0
  57. package/dist/{work-CaaSjlNk.js → work-Citqpnfc.js} +9 -9
  58. package/dist/{worker-Eom9CfBl.js → worker-Bn_HFyvM.js} +5 -5
  59. package/migrations/0044_event_automation_channel_destinations.sql +36 -0
  60. package/migrations/meta/0044_snapshot.json +3473 -0
  61. package/migrations/meta/_journal.json +7 -0
  62. package/package.json +4 -4
  63. package/dist/reporting-schema-DosTN__Q.js +0 -105
  64. package/dist/web-input-DskRJhrK.js +0 -392
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
2
  import { _ as parseSlackMessageTs, r as credentialSubjectSchema } from "./context-Bplcgypl.js";
3
- import { At as createPluginConversationEvents, Gt as getDb, Q as readActorIdentity, Wt as getConversationStore, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-BnZBgDPe.js";
4
- import { G as sameActorIdentity } from "./conversation-BSRGzJmY.js";
5
- import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-Bl47qAIY.js";
6
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
7
- import { u as recordAutomationExecution } from "./execution-stats-D9m2kmmg.js";
8
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-D0Ktlch_.js";
9
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-Cm4FhC0n.js";
3
+ import { At as createPluginConversationEvents, Gt as getDb, Q as readActorIdentity, Wt as getConversationStore, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-DkriF84n.js";
4
+ import { J as sameActorIdentity } from "./conversation-BBDt88di.js";
5
+ import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-CRod8es5.js";
6
+ import { w as getStateAdapter } from "./profile-DbG8AlNd.js";
7
+ import { u as recordAutomationExecution } from "./execution-stats-D97ePWuM.js";
8
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-2Paza8DV.js";
9
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-Di_q8922.js";
10
10
  import { z } from "zod";
11
11
  import { createHash } from "node:crypto";
12
12
  import { destinationSchema, destinationVisibilitySchema, isSlackDestination, pluginRunContextSchema, replyAttributionSchema, sourceSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
@@ -345,7 +345,7 @@ function slackSourceForDestination(args) {
345
345
  * Reads parent Conversations when this Conversation has no Destination.
346
346
  */
347
347
  async function resolveConversationRouting(args) {
348
- const conversationStore = args.conversationStore ?? (await import("./agent-hooks-BnZBgDPe.js").then((n) => n.Vt)).getConversationStore();
348
+ const conversationStore = args.conversationStore ?? (await import("./agent-hooks-DkriF84n.js").then((n) => n.Vt)).getConversationStore();
349
349
  const chain = await loadConversationChain(args.conversationId, conversationStore);
350
350
  let destination;
351
351
  let source;
@@ -1,9 +1,9 @@
1
- import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-gR24QCo_.js";
2
- import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-BnZBgDPe.js";
1
+ import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-qmsMdU0y.js";
2
+ import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-DkriF84n.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { u as juniorLocationConfigurations } from "./executor-3IasVOqK.js";
5
- import { X as persistConversationMessages } from "./checkpoint-Bl47qAIY.js";
6
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
4
+ import { u as juniorLocationConfigurations } from "./executor-BLBZ-UB8.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-CRod8es5.js";
6
+ import { w as getStateAdapter } from "./profile-DbG8AlNd.js";
7
7
  import { z } from "zod";
8
8
  import { randomUUID } from "node:crypto";
9
9
  import { and, eq, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-BnZBgDPe.js";
2
- import { n as runAgentWithTimeout } from "./agent-runner-BC8iSAfE.js";
3
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D75pWL8e.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-DkriF84n.js";
2
+ import { n as runAgentWithTimeout } from "./agent-runner-D0ImXS7U.js";
3
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-f-y0Irpi.js";
4
4
  //#region src/chat/runtime/turn-execution.ts
5
5
  /** An error thrown while the agent advances a Run. */
6
6
  var AgentRunError = class extends Error {
@@ -1,4 +1,4 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-BnZBgDPe.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-DkriF84n.js";
2
2
  //#region src/chat/conversations/turn-lifecycle.ts
3
3
  /** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
4
4
  var ConversationTurnLifecycleService = class {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-0oMD2jas.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-XH_LFA_7.js";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/chat/plugins/validation.ts
5
5
  var validation_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.221.1";
2
+ var version = "0.222.0";
3
3
  //#endregion
4
4
  //#region src/version.ts
5
5
  /** Installed Junior package version, or `unknown` when package metadata is unavailable. */
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as JUNIOR_VERSION } from "./version-DErORHQC.js";
1
+ import { t as JUNIOR_VERSION } from "./version-BydrOZMQ.js";
2
2
  export { JUNIOR_VERSION };
@@ -1,4 +1,4 @@
1
- import { w as getStateAdapter } from "./profile-VmUpQuOm.js";
1
+ import { w as getStateAdapter } from "./profile-DbG8AlNd.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/chat/conversations/web-authorization.ts
4
4
  const WEB_AUTHORIZATION_PREFIX = "junior:web_authorization:v1";