@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.
Files changed (65) hide show
  1. package/dist/{adapter-DlLLoJKj.js → adapter-CKtEUuWD.js} +23 -2
  2. package/dist/{admin-BzRXDVfh.js → admin-BGOiUGwR.js} +1 -1
  3. package/dist/{agent-DxZ7nHfD.js → agent-OUkEw6Bv.js} +276 -1648
  4. package/dist/{agent-status-Bq_AIpyp.js → agent-status-C_HHxO_d.js} +1 -10
  5. package/dist/{agent-update-delivery-CO4FU5Gg.js → agent-update-delivery-H6mnPI4q.js} +4 -4
  6. package/dist/api/schema.d.ts +98 -16
  7. package/dist/api/schema.js +6 -6
  8. package/dist/api.js +81 -36
  9. package/dist/{app-CHCFIIDu.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-K-KsqNhT.d.ts → change-record-DdrJxahk.d.ts} +26 -15
  13. package/dist/{channel-access-BghWqlXx.js → channel-access-DRhVJIuQ.js} +1 -1
  14. package/dist/{chat-core-engine-BgfSLrDu.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-DBlQP4PC.js → continue-in-slack-DYl631oM.js} +3 -3
  22. package/dist/{conversation-feed-DEUdD7mb.js → conversation-feed-BUaMmSLi.js} +2 -12
  23. package/dist/{conversation-privacy-qoh95v90.js → conversation-privacy-DR_j5Tqf.js} +1 -1
  24. package/dist/{create-jZSaDrCR.js → create-ZkI-_JAs.js} +2 -2
  25. package/dist/{credential-sync-Bj9-UlNE.js → credential-sync-Bo6_FtCI.js} +12 -12
  26. package/dist/{db-BacvswT0.js → db-RDpWIeRK.js} +1744 -216
  27. package/dist/{deployment-BoJkRPDt.js → deployment-CeKaP0ZJ.js} +1 -1
  28. package/dist/{html-DW0pw5Pr.js → html-BMv4fAPu.js} +5 -5
  29. package/dist/instrumentation.js +2 -2
  30. package/dist/{list-Dz3CdP3g.js → list-CuLf7Ob2.js} +39 -70
  31. package/dist/{logging-DsTnMqyi.js → logging-BQsfrLHl.js} +1 -1
  32. package/dist/{markers-C33gNYNE.js → markers-Bh0vqJ5k.js} +3186 -1754
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +3 -4
  35. package/dist/{oauth-callback-server-C-pEhAQK.js → oauth-callback-server-BxuN0Jqz.js} +2 -2
  36. package/dist/{oauth-relay-DIXdH-io.js → oauth-relay-vyG2gOwY.js} +1 -1
  37. package/dist/{profile-v9vA3RvH.js → profile-DiAB4QfT.js} +39 -8
  38. package/dist/{prompt-C5CW2wKO.js → prompt-5PDkRQ1K.js} +2 -1
  39. package/dist/{reports-eBgrhPXS.js → reports-CbqB7unq.js} +2 -2
  40. package/dist/{resolve-HVXmbeCr.js → resolve-C7e0pwuP.js} +5 -5
  41. package/dist/{result-BPNzgeTl.js → result-D_D-2Adp.js} +7 -7
  42. package/dist/{runner-aNSDTST6.js → runner-CCVTdp0x.js} +7 -7
  43. package/dist/{sandbox-egress-signals-nzp9Ykf7.js → sandbox-egress-signals-D4OKOFgy.js} +1 -1
  44. package/dist/{schema-BlTO5M1d.js → schema-CmPO8BfI.js} +50 -12
  45. package/dist/{service-account-DWIf1t6p.js → service-account-CeWsFrBi.js} +2 -2
  46. package/dist/{skills-50izzzdK.js → skills-DfbOjWxl.js} +5 -5
  47. package/dist/{slack-conversation-unfurl-C6jXhVYg.js → slack-conversation-unfurl-BxF0Yb3-.js} +10 -9
  48. package/dist/{system-prompt-table-CIR1B44Z.js → system-prompt-table-DySHMtu0.js} +17 -17
  49. package/dist/{topics-DxuKurCX.js → topic-ChZe9WPj.js} +6 -1
  50. package/dist/{engine-context-Bi3Ync5t.js → turn-ended-DQ10G3in.js} +11 -845
  51. package/dist/{types-BNHkJrOP.js → types-BWAgOJtR.js} +95 -78
  52. package/dist/{user-customization-CvfuY9Eo.js → user-customization-DNzu_r1x.js} +10 -1
  53. package/dist/{users-DOVo9sdU.js → users-BmZlg_ci.js} +13 -7
  54. package/dist/{validation-CK0vuEHB.js → validation-BU4tXvH3.js} +1 -1
  55. package/dist/{version-BuLVNlxB.js → version-D9yLYOBu.js} +1 -1
  56. package/dist/version.js +1 -1
  57. package/dist/{worker-C82kHU1R.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-BtCxXiNt.js +0 -273
  65. package/dist/topic-B2EWKKBT.js +0 -6
@@ -1,4 +1,4 @@
1
- import { F as actorIdentitySchema, Nt as spaceRefSchema, V as conversationDetailReportSchema, X as conversationSummaryReportSchema, Xt as messageAttachmentSchema, zt as inboxItemChangeRecordSchema } from "./types-BNHkJrOP.js";
1
+ import { Bt as inboxItemChangeRecordSchema, F as actorIdentitySchema, Nt as spaceRefSchema, V as conversationDetailReportSchema, X as conversationSummaryReportSchema, Zt as messageAttachmentSchema } from "./types-BWAgOJtR.js";
2
2
  import * as z from "zod";
3
3
  // src/reporting-schema.ts
4
4
  const healthReportSchema = z.object({
@@ -296,14 +296,6 @@ const conversationFeedMediaSchema = z.object({
296
296
  id: z.string().min(1)
297
297
  }).strict();
298
298
  /**
299
- * The viewer's newest answer to an Inbox item that the Conversation added:
300
- * when it closed and the options they picked. A text answer has no choices.
301
- */
302
- const conversationFeedViewerAnswerSchema = z.object({
303
- choices: z.array(z.string()),
304
- closedAt: z.string().datetime()
305
- }).strict();
306
- /**
307
299
  * A root in the feed, or one of its visible Threads. A Thread nests under
308
300
  * its nearest visible Thread ancestor, or under the root. Tasks never show.
309
301
  */
@@ -321,9 +313,7 @@ const conversationFeedItemSchema = conversationSummaryReportSchema.extend({
321
313
  * Only on a root, and only when the cap cut some.
322
314
  */
323
315
  omittedThreadCount: z.number().int().positive().optional(),
324
- threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional(),
325
- /** Only on the viewer's own feed. */
326
- viewerAnswer: conversationFeedViewerAnswerSchema.optional()
316
+ threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional()
327
317
  });
328
318
  const conversationFeedSchema = z.object({
329
319
  conversations: z.array(conversationFeedItemSchema),
@@ -1,4 +1,4 @@
1
- import { m as logWarn } from "./logging-DsTnMqyi.js";
1
+ import { m as logWarn } from "./logging-BQsfrLHl.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import { renderSystemMessageUpdate } from "@earendil-works/pi-ai";
4
4
  // src/chat/conversation-privacy.ts
@@ -1,5 +1,5 @@
1
- import { Pt as getAgentBinding, Rt as spawnChildAgentInputSchema, Uf as nextDetailVersion, an as getConversationWorkState, i as getConversationStore, o as getSqlExecutor, rn as ensureConversationWake, xn as hasConversationStop, xp as juniorAgentBindings, zp as juniorConversations } from "./db-BacvswT0.js";
2
- import { C as getChildAgentLockName, Nr as loadTurnStart, Pt as addConversationNote, T as getSpawnedChildConversationId, b as readAgentConfig, f as readChildConversationSender, k as getConversationStoppedAtMs, m as buildParentMessage, n as recordSubagentStartedMarker, o as listOpenChildAgents, p as appendParentMessage, y as agentConfigSchema } from "./markers-C33gNYNE.js";
1
+ import { Bp as nextDetailVersion, Im as juniorConversations, Nt as spawnChildAgentInputSchema, Qt as ensureConversationWake, en as getConversationWorkState, gn as hasConversationStop, i as getConversationStore, kt as getAgentBinding, mr as getConversationStoppedAtMs, o as getSqlExecutor, vm as juniorAgentBindings } from "./db-RDpWIeRK.js";
2
+ import { Dt as agentConfigSchema, Nt as getSpawnedChildConversationId, Ot as readAgentConfig, St as buildParentMessage, _t as addConversationNote, ai as loadTurnStart, bt as readChildConversationSender, jt as getChildAgentLockName, n as recordSubagentStartedMarker, o as listOpenChildAgents, xt as appendParentMessage } from "./markers-Bh0vqJ5k.js";
3
3
  import { eq } from "drizzle-orm";
4
4
  import { randomUUID } from "node:crypto";
5
5
  // src/chat/agent/types.ts
@@ -1,15 +1,15 @@
1
- import { l as homeDir } from "./topics-DxuKurCX.js";
2
- import { L as botConfig, R as getChatConfig, c as acquireActiveLock, i as getStateAdapter, k as parseSlackUserId, z as getRuntimeMetadata } from "./adapter-DlLLoJKj.js";
3
- import { Cf as getMcpProviderErrorAttributes, Dc as upsertLinkedIdentity, Jd as parseOAuthTokenResponse, Pd as getAppContext, Tc as findUserByVerifiedEmails, Xs as getSlackClient, Yd as hasRequiredOAuthScope, ef as deleteMcpAuthSession, fc as readIdentityById, if as getMcpAuthSession, ki as postSlackMessage, o as getSqlExecutor, of as getMcpStoredOAuthCredentials, qd as buildOAuthTokenRequest, uf as putMcpStoredOAuthCredentials, yc as resolveActorIdentityId } from "./db-BacvswT0.js";
4
- import { O as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-DsTnMqyi.js";
5
- import { G as mapBounded } from "./prompt-C5CW2wKO.js";
6
- import { $ as deleteWebAuthorization, J as getPersistedThreadState, Mn as recordAuthenticationLinked, Nn as recordAuthorizationCompleted, Or as getTurnRecord, Z as coerceThreadConversationState, di as formatProviderLabel, fi as parseOAuthStatePayload, fr as authorizationId, yr as getConversationPendingAuth } from "./markers-C33gNYNE.js";
7
- import { Zt as finalizeMcpAuthorization, nt as wakeAuthorizedTurn, rt as wakePausedTurn } from "./agent-DxZ7nHfD.js";
8
- import { t as discoverSkills } from "./skills-50izzzdK.js";
9
- import { A as createUserTokenStore, I as resolvePluginOAuthAccount } from "./profile-v9vA3RvH.js";
10
- import { i as lookupSlackUserProfile } from "./users-DOVo9sdU.js";
11
- import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-DW0pw5Pr.js";
12
- import { n as relayLocalOAuthCallback } from "./oauth-relay-DIXdH-io.js";
1
+ import { d as homeDir } from "./topic-ChZe9WPj.js";
2
+ import { L as botConfig, R as getChatConfig, c as acquireActiveLock, i as getStateAdapter, k as parseSlackUserId, z as getRuntimeMetadata } from "./adapter-CKtEUuWD.js";
3
+ import { Ca as postSlackMessage, Gf as parseOAuthTokenResponse, Kf as hasRequiredOAuthScope, Uc as getSlackClient, Wf as buildOAuthTokenRequest, Zf as deleteMcpAuthSession, al as readIdentityById, bl as upsertLinkedIdentity, bp as getMcpProviderErrorAttributes, fl as resolveActorIdentityId, jf as getAppContext, o as getSqlExecutor, rp as getMcpStoredOAuthCredentials, sp as putMcpStoredOAuthCredentials, tp as getMcpAuthSession, vl as findUserByVerifiedEmails } from "./db-RDpWIeRK.js";
4
+ import { O as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-BQsfrLHl.js";
5
+ import { G as mapBounded } from "./prompt-5PDkRQ1K.js";
6
+ import { G as coerceThreadConversationState, Gr as getConversationPendingAuth, H as getPersistedThreadState, Li as formatProviderLabel, Ri as parseOAuthStatePayload, Rr as authorizationId, ar as recordAuthorizationCompleted, ei as getTurnRecord, ir as recordAuthenticationLinked, q as deleteWebAuthorization } from "./markers-Bh0vqJ5k.js";
7
+ import { Yt as finalizeMcpAuthorization, et as wakeAuthorizedTurn, tt as wakePausedTurn } from "./agent-OUkEw6Bv.js";
8
+ import { t as discoverSkills } from "./skills-DfbOjWxl.js";
9
+ import { A as createUserTokenStore, I as resolvePluginOAuthAccount } from "./profile-DiAB4QfT.js";
10
+ import { i as lookupSlackUserProfile } from "./users-BmZlg_ci.js";
11
+ import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-BMv4fAPu.js";
12
+ import { n as relayLocalOAuthCallback } from "./oauth-relay-vyG2gOwY.js";
13
13
  import * as z from "zod";
14
14
  import path from "node:path";
15
15
  import { pluginStoredTokensSchema } from "@sentry/junior-plugin-api";