@sentry/junior 0.127.0 → 0.128.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 (112) hide show
  1. package/dist/{agent-hooks-HMCMFIIO.js → agent-hooks-F75ANGBV.js} +9 -9
  2. package/dist/api.js +23 -22
  3. package/dist/app.js +281 -138
  4. package/dist/{catalog-runtime-MI5UNBZ7.js → catalog-runtime-ZPSA5QM2.js} +6 -6
  5. package/dist/chat/agent-dispatch/context.d.ts +17 -0
  6. package/dist/chat/agent-dispatch/store.d.ts +1 -1
  7. package/dist/chat/agent-dispatch/work.d.ts +1 -1
  8. package/dist/chat/credentials/context.d.ts +27 -0
  9. package/dist/chat/credentials/subject.d.ts +15 -0
  10. package/dist/chat/event-tasks/ingest.d.ts +9 -0
  11. package/dist/chat/event-tasks/store.d.ts +15 -0
  12. package/dist/chat/event-tasks/tool-support.d.ts +140 -0
  13. package/dist/chat/event-tasks/types.d.ts +44 -0
  14. package/dist/chat/plugins/viewer.d.ts +16 -0
  15. package/dist/chat/resource-events/ingest.d.ts +1 -0
  16. package/dist/chat/resource-events/store.d.ts +2 -0
  17. package/dist/chat/resource-events/workspace.d.ts +4 -0
  18. package/dist/chat/sandbox/command-result.d.ts +3 -22
  19. package/dist/chat/sandbox/egress/schemas.d.ts +11 -0
  20. package/dist/chat/services/guardian-action-policy.d.ts +1 -1
  21. package/dist/chat/slack/dispatch-turn.d.ts +1 -1
  22. package/dist/chat/slack/tools/canvas/create.d.ts +0 -16
  23. package/dist/chat/slack/tools/canvas/edit.d.ts +0 -16
  24. package/dist/chat/slack/tools/canvas/read.d.ts +0 -16
  25. package/dist/chat/slack/tools/canvas/write.d.ts +0 -16
  26. package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -16
  27. package/dist/chat/slack/tools/conversation-search.d.ts +0 -16
  28. package/dist/chat/slack/tools/list/add-items.d.ts +0 -16
  29. package/dist/chat/slack/tools/list/create.d.ts +0 -16
  30. package/dist/chat/slack/tools/list/get-items.d.ts +0 -16
  31. package/dist/chat/slack/tools/list/update-item.d.ts +0 -16
  32. package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -16
  33. package/dist/chat/slack/tools/public-search.d.ts +0 -16
  34. package/dist/chat/slack/tools/send-files.d.ts +10 -28
  35. package/dist/chat/slack/tools/thread-read.d.ts +0 -16
  36. package/dist/chat/slack/tools/user-lookup.d.ts +0 -16
  37. package/dist/chat/tool-support/action-review.d.ts +1 -1
  38. package/dist/chat/tool-support/structured-result.d.ts +17 -46
  39. package/dist/chat/tool-support/text-range-result.d.ts +8 -32
  40. package/dist/chat/tool-support/zod-tool.d.ts +6 -7
  41. package/dist/chat/tools/create-event-task.d.ts +65 -0
  42. package/dist/chat/tools/definition.d.ts +4 -0
  43. package/dist/chat/tools/delete-event-task.d.ts +57 -0
  44. package/dist/chat/tools/event-tasks.d.ts +5 -0
  45. package/dist/chat/tools/handoff/tool.d.ts +0 -16
  46. package/dist/chat/tools/list-event-tasks.d.ts +55 -0
  47. package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -38
  48. package/dist/chat/tools/query-conversation-events.d.ts +0 -16
  49. package/dist/chat/tools/runtime/report-progress.d.ts +0 -16
  50. package/dist/chat/tools/sandbox/edit-file.d.ts +0 -23
  51. package/dist/chat/tools/sandbox/file-utils.d.ts +2 -17
  52. package/dist/chat/tools/sandbox/find-files.d.ts +5 -8
  53. package/dist/chat/tools/sandbox/grep.d.ts +1 -4
  54. package/dist/chat/tools/sandbox/list-dir.d.ts +1 -4
  55. package/dist/chat/tools/search-resource-event-types.d.ts +0 -16
  56. package/dist/chat/tools/search-tools.d.ts +0 -16
  57. package/dist/chat/tools/skill/load-skill.d.ts +0 -20
  58. package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -16
  59. package/dist/chat/tools/stop-watching-resources.d.ts +0 -22
  60. package/dist/chat/tools/system-time.d.ts +0 -16
  61. package/dist/chat/tools/types.d.ts +8 -4
  62. package/dist/chat/tools/update-event-task.d.ts +66 -0
  63. package/dist/chat/tools/watch-resource-events.d.ts +0 -46
  64. package/dist/chat/tools/web/fetch-content.d.ts +0 -2
  65. package/dist/chat/tools/web/fetch-tool.d.ts +0 -16
  66. package/dist/chat/tools/web/image-generate.d.ts +0 -16
  67. package/dist/chat/tools/web/search.d.ts +0 -16
  68. package/dist/{chunk-YSOZT72W.js → chunk-2HTHX6XV.js} +4 -4
  69. package/dist/{chunk-NYVMPADK.js → chunk-3PKF6YNU.js} +1 -1
  70. package/dist/{chunk-UEMGGJZD.js → chunk-5KKIBIIP.js} +12 -12
  71. package/dist/{chunk-W3U3YQYI.js → chunk-77VDLF3Z.js} +18 -1
  72. package/dist/{chunk-TLMI3Q4Q.js → chunk-A76LKS5W.js} +199 -94
  73. package/dist/{chunk-AYICPT5T.js → chunk-B6E3YA2H.js} +1 -1
  74. package/dist/{chunk-PDG3BSOD.js → chunk-B7FPRGUJ.js} +3 -3
  75. package/dist/{chunk-JNYR4G7A.js → chunk-BY43CEXN.js} +2 -2
  76. package/dist/{chunk-HDSDCEPK.js → chunk-EPBBYMNE.js} +1 -1
  77. package/dist/{chunk-VHUMNUJL.js → chunk-FJEIX3AH.js} +2 -2
  78. package/dist/{chunk-SH7HDO2D.js → chunk-G6XQODHM.js} +1 -1
  79. package/dist/{chunk-WXP2ZXC7.js → chunk-HBFQLSGV.js} +4 -4
  80. package/dist/{chunk-C7AVHH3H.js → chunk-JDCPDJ54.js} +2 -2
  81. package/dist/{chunk-L7L7RYJM.js → chunk-K5ZB3WWH.js} +2 -2
  82. package/dist/{chunk-4H2NZPFJ.js → chunk-KNRODVH2.js} +6 -6
  83. package/dist/{chunk-JXQWTNDI.js → chunk-KTGJAWRO.js} +1 -1
  84. package/dist/{chunk-6DU2ZNF7.js → chunk-NHWE6Y7G.js} +7 -7
  85. package/dist/{chunk-FVIU6NQO.js → chunk-OLGB5Y7R.js} +2 -2
  86. package/dist/{chunk-2M6LYDTB.js → chunk-PBWUUVVG.js} +1 -1
  87. package/dist/{chunk-AKL3BAYJ.js → chunk-RYWMDDWK.js} +1 -1
  88. package/dist/{chunk-S4PUICSB.js → chunk-SHMHHXD5.js} +34 -5
  89. package/dist/{chunk-2N6EL22B.js → chunk-WZ365SQC.js} +1 -1
  90. package/dist/{chunk-Z5LLJNTL.js → chunk-YY6CVET7.js} +1116 -1083
  91. package/dist/{chunk-NK7QVIMJ.js → chunk-Z4KTQMWW.js} +1 -1
  92. package/dist/cli/chat.js +27 -27
  93. package/dist/cli/check.js +7 -7
  94. package/dist/cli/plugins.js +13 -13
  95. package/dist/cli/snapshot-create.js +10 -10
  96. package/dist/cli/upgrade.js +8 -8
  97. package/dist/db/schema/event-tasks.d.ts +161 -0
  98. package/dist/db/schema.d.ts +163 -1
  99. package/dist/{db-N4EY57ZJ.js → db-FYJYPAKG.js} +7 -7
  100. package/dist/instrumentation.js +4 -4
  101. package/dist/nitro.js +2 -2
  102. package/dist/{oauth-callback-server-O62UOQSS.js → oauth-callback-server-W3PPIHCS.js} +18 -18
  103. package/dist/{runner-SRHRD3NX.js → runner-5NOFUYKR.js} +11 -11
  104. package/dist/{sandbox-egress-signals-CDFAP67O.js → sandbox-egress-signals-A5HWIQH4.js} +2 -2
  105. package/dist/{skills-V6X3JVVA.js → skills-ENIBKF5V.js} +7 -7
  106. package/dist/{validation-ZZXZELGH.js → validation-BHLBOO6K.js} +7 -7
  107. package/dist/version.js +1 -1
  108. package/migrations/0015_magical_ezekiel_stane.sql +11 -0
  109. package/migrations/meta/0015_snapshot.json +1360 -0
  110. package/migrations/meta/_journal.json +7 -0
  111. package/package.json +6 -6
  112. package/dist/chat/plugins/viewer-actors.d.ts +0 -6
@@ -11,19 +11,19 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-TLMI3Q4Q.js";
15
- import "./chunk-PDG3BSOD.js";
16
- import "./chunk-S4PUICSB.js";
17
- import "./chunk-SH7HDO2D.js";
18
- import "./chunk-L7L7RYJM.js";
14
+ } from "./chunk-A76LKS5W.js";
15
+ import "./chunk-B7FPRGUJ.js";
16
+ import "./chunk-SHMHHXD5.js";
17
+ import "./chunk-G6XQODHM.js";
18
+ import "./chunk-K5ZB3WWH.js";
19
19
  import "./chunk-VFUK3X5B.js";
20
- import "./chunk-NK7QVIMJ.js";
20
+ import "./chunk-Z4KTQMWW.js";
21
21
  import "./chunk-HZF5P5UN.js";
22
22
  import "./chunk-F3B2YJ76.js";
23
- import "./chunk-AYICPT5T.js";
23
+ import "./chunk-B6E3YA2H.js";
24
24
  import "./chunk-6GWA276C.js";
25
- import "./chunk-AKL3BAYJ.js";
26
- import "./chunk-JXQWTNDI.js";
25
+ import "./chunk-RYWMDDWK.js";
26
+ import "./chunk-KTGJAWRO.js";
27
27
  import "./chunk-MLKGABMK.js";
28
28
  export {
29
29
  PluginHookDeniedError,
package/dist/api.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  formatSlackConversationRedactedLabel,
31
31
  readHealthReport,
32
32
  resolveSlackConversationContextFromThreadId
33
- } from "./chunk-C7AVHH3H.js";
33
+ } from "./chunk-JDCPDJ54.js";
34
34
  import {
35
35
  buildSentryConversationUrl
36
36
  } from "./chunk-4CODA7P5.js";
@@ -43,10 +43,10 @@ import {
43
43
  } from "./chunk-UTL3MHPC.js";
44
44
  import {
45
45
  readStats
46
- } from "./chunk-VHUMNUJL.js";
46
+ } from "./chunk-FJEIX3AH.js";
47
47
  import {
48
48
  parseSlackThreadId
49
- } from "./chunk-2M6LYDTB.js";
49
+ } from "./chunk-PBWUUVVG.js";
50
50
  import {
51
51
  agentTurnUsageSchema,
52
52
  hasAgentTurnUsage,
@@ -57,39 +57,39 @@ import {
57
57
  createPluginLogger,
58
58
  getPlugins,
59
59
  listConversationAnnotations,
60
- readViewerActors,
61
- renderPluginConversationEvent
62
- } from "./chunk-TLMI3Q4Q.js";
60
+ renderPluginConversationEvent,
61
+ resolveViewerUser
62
+ } from "./chunk-A76LKS5W.js";
63
63
  import {
64
64
  decodeStoredConversationEvent,
65
65
  getDb,
66
66
  getSqlExecutor,
67
67
  parseSessionSource
68
- } from "./chunk-PDG3BSOD.js";
68
+ } from "./chunk-B7FPRGUJ.js";
69
69
  import {
70
70
  juniorApiTokens,
71
71
  juniorConversationEvents,
72
72
  juniorConversations,
73
73
  juniorIdentities,
74
74
  juniorUsers
75
- } from "./chunk-S4PUICSB.js";
76
- import "./chunk-SH7HDO2D.js";
77
- import "./chunk-L7L7RYJM.js";
75
+ } from "./chunk-SHMHHXD5.js";
76
+ import "./chunk-G6XQODHM.js";
77
+ import "./chunk-K5ZB3WWH.js";
78
78
  import {
79
79
  juniorDestinations
80
80
  } from "./chunk-VFUK3X5B.js";
81
81
  import {
82
82
  canExposeConversationPayload
83
- } from "./chunk-NK7QVIMJ.js";
83
+ } from "./chunk-Z4KTQMWW.js";
84
84
  import "./chunk-HZF5P5UN.js";
85
85
  import {
86
86
  parseSlackChannelId,
87
87
  parseSlackTeamId
88
88
  } from "./chunk-F3B2YJ76.js";
89
- import "./chunk-AYICPT5T.js";
89
+ import "./chunk-B6E3YA2H.js";
90
90
  import "./chunk-6GWA276C.js";
91
- import "./chunk-AKL3BAYJ.js";
92
- import "./chunk-JXQWTNDI.js";
91
+ import "./chunk-RYWMDDWK.js";
92
+ import "./chunk-KTGJAWRO.js";
93
93
  import "./chunk-MLKGABMK.js";
94
94
 
95
95
  // src/api.ts
@@ -2015,7 +2015,7 @@ function readDescriptionText(home) {
2015
2015
  }
2016
2016
  }
2017
2017
  async function readSkillReports() {
2018
- const { discoverSkills } = await import("./skills-V6X3JVVA.js");
2018
+ const { discoverSkills } = await import("./skills-ENIBKF5V.js");
2019
2019
  const skills = await discoverSkills();
2020
2020
  return skillReportsSchema.parse(
2021
2021
  skills.map((skill) => ({
@@ -2025,7 +2025,7 @@ async function readSkillReports() {
2025
2025
  );
2026
2026
  }
2027
2027
  async function readPlugins() {
2028
- const { pluginCatalogRuntime } = await import("./catalog-runtime-MI5UNBZ7.js");
2028
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-ZPSA5QM2.js");
2029
2029
  return pluginsSchema.parse(
2030
2030
  pluginCatalogRuntime.getProviders().map((plugin) => ({
2031
2031
  configKeys: plugin.manifest.configKeys ?? [],
@@ -2038,7 +2038,7 @@ async function readPlugins() {
2038
2038
  async function readRuntimeInfoReport() {
2039
2039
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
2040
2040
  import("./discovery-GUFTFBTL.js"),
2041
- import("./catalog-runtime-MI5UNBZ7.js"),
2041
+ import("./catalog-runtime-ZPSA5QM2.js"),
2042
2042
  readPlugins(),
2043
2043
  readSkillReports()
2044
2044
  ]);
@@ -2054,7 +2054,7 @@ async function readRuntimeInfoReport() {
2054
2054
  }
2055
2055
  async function readPluginOperationalReportFeed() {
2056
2056
  const nowMs = Date.now();
2057
- const { getPluginOperationalReports } = await import("./agent-hooks-HMCMFIIO.js");
2057
+ const { getPluginOperationalReports } = await import("./agent-hooks-F75ANGBV.js");
2058
2058
  return pluginOperationalReportFeedSchema.parse({
2059
2059
  source: "plugins",
2060
2060
  generatedAt: new Date(nowMs).toISOString(),
@@ -3262,16 +3262,17 @@ async function readPluginUserPage(input) {
3262
3262
  (candidate) => candidate.id === input.pageId
3263
3263
  );
3264
3264
  if (!plugin || !page) return void 0;
3265
+ const viewer = await resolveViewerUser(input.email);
3266
+ if (!viewer) {
3267
+ throw new Error("Authenticated viewer user could not be resolved");
3268
+ }
3265
3269
  const content = pluginUserPageContentSchema.parse(
3266
3270
  await page.read(
3267
3271
  {
3268
3272
  db: getDb(),
3269
3273
  log: createPluginLogger(plugin.manifest.name),
3270
3274
  plugin: { name: plugin.manifest.name },
3271
- viewer: {
3272
- actors: await readViewerActors(input.email),
3273
- email: input.email
3274
- }
3275
+ viewer
3275
3276
  },
3276
3277
  input.query
3277
3278
  )