@sentry/junior 0.246.0 → 0.248.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 (69) hide show
  1. package/dist/{admin-Bh-MYw-j.js → admin-BlHz8fGl.js} +1 -1
  2. package/dist/{agent-hooks-DpklSWZg.js → agent-hooks-DWCHBPYw.js} +25 -12
  3. package/dist/{agent-invocations-BO6ddZax.js → agent-invocations-D_YoNnAn.js} +8 -2
  4. package/dist/{agent-runner-DSKpHjHW.js → agent-runner-CnlFtbzb.js} +608 -2434
  5. package/dist/api/schema.d.ts +171 -3
  6. package/dist/api/schema.js +3 -3
  7. package/dist/api.js +219 -153
  8. package/dist/{app-BYB7szGb.d.ts → app-B0gT1Slp.d.ts} +11 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +30 -27
  11. package/dist/assistant-reply-BxCi7V4v.js +45 -0
  12. package/dist/{briefs-cZ5vWqP_.js → briefs-CdkIl79U.js} +4 -4
  13. package/dist/{catalog-runtime-CTaQXYqS.js → catalog-runtime-CTBsdSam.js} +1 -1
  14. package/dist/cli/chat.js +22 -16
  15. package/dist/cli/check.js +3 -3
  16. package/dist/cli/main.js +2 -2
  17. package/dist/cli/plugins.js +4 -4
  18. package/dist/cli/snapshot-create.js +3 -3
  19. package/dist/cli/upgrade.js +3 -3
  20. package/dist/{client--xtsAxKP.js → client-CWQtbizj.js} +2 -2
  21. package/dist/{config-BK53Ip5C.js → config-aitDvTQm.js} +16 -9
  22. package/dist/{conversation-CvBG57Io.js → conversation-Cjo9tHGm.js} +85 -1
  23. package/dist/{conversation-privacy-BDBFw6Ws.js → conversation-privacy-BsqXHVBz.js} +1 -1
  24. package/dist/{credential-sync-BiuhC9Ds.js → credential-sync-DqZF735a.js} +14 -14
  25. package/dist/{executor-bmmuRY-w.js → executor-oIZAkQZb.js} +3 -3
  26. package/dist/{images-DZliDtSH.js → images-Dzh3RBXY.js} +4 -21
  27. package/dist/instrumentation.js +2 -2
  28. package/dist/{job-queue-Cz3M7gg4.js → job-queue-DyA2AEnY.js} +1 -1
  29. package/dist/{logging-DVtMYOdD.js → logging-OpC2jwiV.js} +1 -1
  30. package/dist/message-EyMrVXEf.js +59 -0
  31. package/dist/nitro.d.ts +1 -1
  32. package/dist/nitro.js +3 -3
  33. package/dist/{oauth-authorization-By_MVRDC.js → oauth-authorization-BA4Dt6a7.js} +1 -45
  34. package/dist/{oauth-callback-server-BrUo6w1e.js → oauth-callback-server-ClDv9Z5Y.js} +2 -2
  35. package/dist/{pending-auth-BuQLZ6dK.js → pending-auth-D_nf121N.js} +2 -2
  36. package/dist/{profile-BevMNSlr.js → profile-Dfg76pvk.js} +4 -4
  37. package/dist/{prompt-C9Q9cjD3.js → prompt-C7bRJ2vg.js} +1 -1
  38. package/dist/{registry-C2rSEio1.js → registry-fpIZHoqE.js} +1 -1
  39. package/dist/{resolve-qPhrznTf.js → resolve-LMCZhQVg.js} +2 -2
  40. package/dist/result-C1ZCRPLx.js +463 -0
  41. package/dist/{runner-CNh5eMWx.js → runner-DNZMviFH.js} +11 -10
  42. package/dist/{sandbox-egress-signals-BnDEKu8d.js → sandbox-egress-signals-Dcc-mwkl.js} +1 -1
  43. package/dist/{schema-BWMRg8JS.js → schema-BRZsYL5-.js} +5 -4
  44. package/dist/session-stop-dyvsZDB0.js +782 -0
  45. package/dist/{skills-C6zJbudq.js → skills-BgGiQt5Y.js} +2 -2
  46. package/dist/{spawn-C3efZSx3.js → spawn-CpqxMPWE.js} +3 -2
  47. package/dist/store-OMQAFrJG.js +1417 -0
  48. package/dist/{task-queue-BX4vG6uA.js → task-queue-SWsXPSp-.js} +3 -3
  49. package/dist/{task-runner-T51kll0U.js → task-runner-BOxv7shv.js} +11 -11
  50. package/dist/{tasks-B9OIjl2K.js → tasks-DREdnhVP.js} +49 -16
  51. package/dist/{thread-state-AGZtVyXp.js → thread-state-BoNCtSwk.js} +7 -7
  52. package/dist/{turn-failure-response-DJ8KU2bo.js → turn-failure-response-C6jrCPjc.js} +9 -9
  53. package/dist/{turn-lifecycle-DZJkJ95q.js → turn-lifecycle-cQFsZFOU.js} +1 -1
  54. package/dist/{turn-session-routing-mRqLbMZW.js → turn-session-routing-Ba12fwXz.js} +1 -1
  55. package/dist/{validation-Dg0Ihxzo.js → validation-Dmfh2cTj.js} +1 -1
  56. package/dist/{version-Deub4try.js → version-ByV7nGOn.js} +1 -1
  57. package/dist/version.js +1 -1
  58. package/dist/{viewer-D5hbx6TE.js → viewer-CX41TWYr.js} +4 -4
  59. package/dist/{web-authorization-DCxixz5S.js → web-authorization-rDLlKIS0.js} +6 -6
  60. package/dist/{web-input-0sorYVLh.js → web-input-Bn9HHZEo.js} +43 -208
  61. package/dist/{work-rm2X7jj4.js → work-CvFoEpRT.js} +90 -14
  62. package/dist/{worker-bnGsAOP3.js → worker-CI5B63vk.js} +7 -7
  63. package/migrations/0053_conversation_stopped_at.sql +1 -0
  64. package/migrations/0054_flowery_rage.sql +1 -0
  65. package/migrations/meta/0053_snapshot.json +3771 -0
  66. package/migrations/meta/0054_snapshot.json +3777 -0
  67. package/migrations/meta/_journal.json +14 -0
  68. package/package.json +6 -5
  69. package/dist/message-BSN-Ma5f.js +0 -317
@@ -1,13 +1,14 @@
1
- import { C as withLogContext, b as setTags, d as logException } from "./logging-DVtMYOdD.js";
2
- import { c as getConversationEventStore, u as getConversationStore } from "./viewer-D5hbx6TE.js";
3
- import { d as credentialContextForActor } from "./registry-C2rSEio1.js";
4
- import { Dt as loadProjection, Ht as hydrateConversationMessages, J as saveTurnCheckpoint, Pt as recordAuthorizationCompleted, St as commitAcceptedReply, Ut as persistConversationMessages, Zt as buildConversationContext, in as recordDeliveredAssistantMessage, nn as markConversationMessage, on as upsertConversationMessage, rn as normalizeConversationText, tt as persistWithRetry } from "./tasks-B9OIjl2K.js";
5
- import { W as messageCardText } from "./conversation-CvBG57Io.js";
6
- import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-By_MVRDC.js";
7
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-T51kll0U.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-DZJkJ95q.js";
9
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-AGZtVyXp.js";
10
- import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-DJ8KU2bo.js";
1
+ import { C as withLogContext, b as setTags, d as logException } from "./logging-OpC2jwiV.js";
2
+ import { c as getConversationEventStore, u as getConversationStore } from "./viewer-CX41TWYr.js";
3
+ import { d as credentialContextForActor } from "./registry-fpIZHoqE.js";
4
+ import { At as loadProjection, Gt as hydrateConversationMessages, J as saveTurnCheckpoint, Kt as persistConversationMessages, Lt as recordAuthorizationCompleted, Tt as commitAcceptedReply, an as markConversationMessage, en as buildConversationContext, ln as upsertConversationMessage, on as normalizeConversationText, sn as recordDeliveredAssistantMessage, tt as persistWithRetry } from "./tasks-DREdnhVP.js";
5
+ import { K as messageCardText } from "./conversation-Cjo9tHGm.js";
6
+ import { f as markTurnFailed, p as startActiveTurn, t as authorizationId } from "./oauth-authorization-BA4Dt6a7.js";
7
+ import { n as getAssistantReplyText } from "./assistant-reply-BxCi7V4v.js";
8
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BOxv7shv.js";
9
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-cQFsZFOU.js";
10
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-BoNCtSwk.js";
11
+ import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-C6jrCPjc.js";
11
12
  import { randomUUID } from "node:crypto";
12
13
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
13
14
  //#region src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { _n as sandboxEgressSignalsResponseSchema } from "./agent-runner-DSKpHjHW.js";
1
+ import { At as sandboxEgressSignalsResponseSchema } from "./agent-runner-CnlFtbzb.js";
2
2
  //#region src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,5 +1,5 @@
1
- import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-BO6ddZax.js";
2
- import { D as conversationUsageSchema, E as conversationSummaryReportSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-CvBG57Io.js";
1
+ import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-D_YoNnAn.js";
2
+ import { D as conversationUsageSchema, E as conversationSummaryReportSchema, M as conversationChildAgentTotalsSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-Cjo9tHGm.js";
3
3
  import "./automation-gznOMaQ2.js";
4
4
  import { a as fillUtcHours, c as sumUtcHoursIntoSixHours, i as fillUtcDays } from "./web-message-id-xPI_EFSC.js";
5
5
  import { z } from "zod";
@@ -33,11 +33,12 @@ const stopConversationTurnResponseSchema = z.object({
33
33
  * One direct child agent of a Conversation, from agent invocation records.
34
34
  *
35
35
  * Viewers who cannot see private content get the status, time, and usage, but
36
- * not the name, task, title, or error. Usage covers the child Conversation
37
- * only, like the detail of that child Conversation.
36
+ * not the name, task, title, or error. Usage covers the child Conversation and
37
+ * all its own child agents, like the detail of that child Conversation.
38
38
  */
39
39
  const conversationChildAgentSchema = z.object({
40
40
  auxiliaryCosts: conversationAuxiliaryCostsSchema.optional(),
41
+ childAgentTotals: conversationChildAgentTotalsSchema.optional(),
41
42
  conversationId: z.string().min(1),
42
43
  cumulativeDurationMs: z.number(),
43
44
  cumulativeUsage: conversationUsageSchema.optional(),