@sentry/junior 0.266.0 → 0.268.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 (87) hide show
  1. package/dist/{actor-tlxzqaRe.js → actor-CP9K2Idu.js} +9 -1
  2. package/dist/{adapter-eRFA_naf.js → adapter-04AcD2SO.js} +5 -7
  3. package/dist/{admin-tILpP51p.js → admin-DIU1QyG3.js} +1 -1
  4. package/dist/{agent-invocations-CxKldAeB.js → agent-invocations-C1RNOCs8.js} +2 -0
  5. package/dist/{agent-runner-BtYK7bht.js → agent-runner-CAYfFmU7.js} +2636 -601
  6. package/dist/api/schema.d.ts +2 -5454
  7. package/dist/api/schema.js +6 -5
  8. package/dist/api.d.ts +6 -1
  9. package/dist/api.js +255 -1208
  10. package/dist/{app-Csbi9dW7.d.ts → app-z6Uuyq3j.d.ts} +23 -4
  11. package/dist/app.d.ts +2 -2
  12. package/dist/app.js +1869 -378
  13. package/dist/{automation-BKpY9LPa.js → automation-CmeFBSEh.js} +42 -14
  14. package/dist/{briefs-DgfWMU7e.js → briefs-DQbV2jNr.js} +4 -4
  15. package/dist/{catalog-runtime-DAJjAbSx.js → catalog-runtime-BD9GSpc6.js} +1 -1
  16. package/dist/cli/chat.js +15 -15
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/init.js +0 -1
  19. package/dist/cli/main.js +3 -3
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +3 -3
  24. package/dist/{client-B0YZfxNy.js → client-C1yDYjoS.js} +2 -2
  25. package/dist/{config-C0UwYqDK.js → config-DrTeF80T.js} +32 -10
  26. package/dist/{connections-Bwu3VORi.js → connections-D46f8vvi.js} +12 -12
  27. package/dist/{conversation-DF4rUcjb.js → conversation-DSo310Ps.js} +8 -1
  28. package/dist/{conversation-privacy-CY7JVjxn.js → conversation-privacy-CxlOCiUo.js} +1 -1
  29. package/dist/{credential-sync-VGAMUTGp.js → credential-sync-sm9fegLY.js} +29 -34
  30. package/dist/{credentialed-enF5Bf3y.js → credentialed-lukuD-cc.js} +2933 -1026
  31. package/dist/db-BU4LQD8s.d.ts +6 -0
  32. package/dist/{executor-TnWbvL09.js → executor-4vhvsMZJ.js} +83 -6
  33. package/dist/instrumentation.js +6 -2
  34. package/dist/{assistant-reply-UyzAfZQo.js → interruption-marker-CkncDT8d.js} +8 -2
  35. package/dist/{job-queue-DBpHmKnd.js → job-queue-In9QKz-I.js} +128 -3
  36. package/dist/{web-input-B-bMjD1V.js → list-BkgnXEEB.js} +1611 -817
  37. package/dist/{logging-Ce0mXZ8J.js → logging-DLSpkSSr.js} +11 -3
  38. package/dist/{message-VZ3DFpGb.js → message-BObyg59s.js} +4 -4
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +3 -3
  41. package/dist/{oauth-callback-server-CpqWLjVY.js → oauth-callback-server-B-WbSdoH.js} +2 -2
  42. package/dist/{prompt-BcCGlmg2.js → prompt-BW9jFsqZ.js} +1 -1
  43. package/dist/{registry-1BEIPdbT.js → registry-BgecKva0.js} +2 -2
  44. package/dist/{web-message-id-CJSUiksE.js → reporting-window-DVCD_10C.js} +1 -10
  45. package/dist/{resolve-BSHHkEGE.js → resolve-Cpa4Bu1O.js} +3 -3
  46. package/dist/{result-CwOpzqdh.js → result-D3TSmZZ8.js} +9 -9
  47. package/dist/{runner-CEaX04kz.js → runner-DS5OKhEp.js} +11 -11
  48. package/dist/{sandbox-egress-signals-BwtGHwqa.js → sandbox-egress-signals-CnDjY5rx.js} +1 -1
  49. package/dist/{schema-RsaBHxRH.js → schema-0050HFnB.js} +82 -5
  50. package/dist/schema-ZngqcOWM.d.ts +5813 -0
  51. package/dist/{service-account-6wC76eBZ.js → service-account-CKV2WTY7.js} +3 -3
  52. package/dist/{service-account-Dg4lIbHm.js → service-account-DGjnDw9y.js} +3 -3
  53. package/dist/{session-stop-tZOw9AJD.js → session-stop-Dam1EI7B.js} +527 -134
  54. package/dist/{skills-DzyGN7wd.js → skills-CfAnfImD.js} +2 -2
  55. package/dist/{spawn-6rokq7l_.js → spawn-cmq9p4Ly.js} +2 -2
  56. package/dist/{store-DcKkzrdt.js → store-C5PN02QO.js} +4 -4
  57. package/dist/{store-CG0VJyye.d.ts → store-xMuuXRE0.d.ts} +23 -9
  58. package/dist/store-zPEoJPBB.js +295 -0
  59. package/dist/{task-queue-Bg4RS2Gy.js → task-queue-_mf28dSu.js} +10 -5
  60. package/dist/{task-runner-8N5LIkSg.js → task-runner-DMI2prDO.js} +25 -14
  61. package/dist/{tasks-DDT-J3Rf.js → tasks-SB9z-VTU.js} +1551 -54
  62. package/dist/{thread-state-cprEaxgl.js → thread-state-BbbPh0Sn.js} +8 -18
  63. package/dist/{turn-failure-response-C8sMdsdX.js → turn-failure-response-BKKmnMB5.js} +11 -16
  64. package/dist/{turn-lifecycle-DaBVoz7h.js → turn-lifecycle-oP0kVeGz.js} +1 -1
  65. package/dist/{validation-C2lllinq.js → validation--JsAGLwc.js} +1 -1
  66. package/dist/{version-oaLfxxnf.js → version-jHwJp4hC.js} +1 -1
  67. package/dist/version.js +1 -1
  68. package/dist/{viewer-BpE6Z3qf.js → viewer-CpXTGlep.js} +329 -230
  69. package/dist/web-message-id-DlHNANtd.js +132 -0
  70. package/dist/{work-VX1SHWha.js → work-3N-GHY9m.js} +10 -10
  71. package/dist/{worker-hook-y_Y.js → worker-CCdbcItd.js} +30 -19
  72. package/migrations/0064_any_resource_event_triggers.sql +2 -0
  73. package/migrations/0065_user_customization.sql +1 -0
  74. package/migrations/0066_review_items.sql +53 -0
  75. package/migrations/0067_review_item_dedupe_tenant.sql +2 -0
  76. package/migrations/0068_review_item_slack_cards.sql +10 -0
  77. package/migrations/meta/0064_snapshot.json +3505 -0
  78. package/migrations/meta/0065_snapshot.json +3511 -0
  79. package/migrations/meta/0066_snapshot.json +4099 -0
  80. package/migrations/meta/0067_snapshot.json +3921 -0
  81. package/migrations/meta/0068_snapshot.json +4176 -0
  82. package/migrations/meta/_journal.json +36 -1
  83. package/package.json +19 -4
  84. package/dist/db-BnRqQ7G5.d.ts +0 -5
  85. package/dist/images-BKQqSi5W.js +0 -64
  86. package/dist/store-FALy-JQb.js +0 -1424
  87. package/dist/turn-session-routing-a9CHX-w6.js +0 -76
@@ -449,6 +449,41 @@
449
449
  "when": 1793202150781,
450
450
  "tag": "0063_agent_invocation_type",
451
451
  "breakpoints": true
452
+ },
453
+ {
454
+ "idx": 64,
455
+ "version": "7",
456
+ "when": 1793326683095,
457
+ "tag": "0064_any_resource_event_triggers",
458
+ "breakpoints": true
459
+ },
460
+ {
461
+ "idx": 65,
462
+ "version": "7",
463
+ "when": 1793403789105,
464
+ "tag": "0065_user_customization",
465
+ "breakpoints": true
466
+ },
467
+ {
468
+ "idx": 66,
469
+ "version": "7",
470
+ "when": 1793412416681,
471
+ "tag": "0066_review_items",
472
+ "breakpoints": true
473
+ },
474
+ {
475
+ "idx": 67,
476
+ "version": "7",
477
+ "when": 1793414511193,
478
+ "tag": "0067_review_item_dedupe_tenant",
479
+ "breakpoints": true
480
+ },
481
+ {
482
+ "idx": 68,
483
+ "version": "7",
484
+ "when": 1793414566801,
485
+ "tag": "0068_review_item_slack_cards",
486
+ "breakpoints": true
452
487
  }
453
488
  ]
454
- }
489
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.266.0",
3
+ "version": "0.268.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -90,7 +90,20 @@
90
90
  "sharp": "^0.35.3",
91
91
  "yaml": "^2.9.0",
92
92
  "zod": "^4.5.4",
93
- "@sentry/junior-plugin-api": "0.266.0"
93
+ "@sentry/junior-plugin-api": "0.268.0"
94
+ },
95
+ "peerDependencies": {
96
+ "bullmq": "^6.5.0",
97
+ "nitro": "3.0.260415-beta || 3.0.260429-beta || 3.0.260522-beta || 3.0.260603-beta || 3.0.260610-beta || 3.0.260903-beta",
98
+ "redis": "^5.12.1"
99
+ },
100
+ "peerDependenciesMeta": {
101
+ "bullmq": {
102
+ "optional": true
103
+ },
104
+ "redis": {
105
+ "optional": true
106
+ }
94
107
  },
95
108
  "devDependencies": {
96
109
  "@emnapi/core": "^1.10.0",
@@ -101,18 +114,20 @@
101
114
  "@types/pg": "^8.15.6",
102
115
  "@typescript/typescript6": "6.0.2",
103
116
  "@vitest/coverage-v8": "4.1.12",
117
+ "bullmq": "6.5.0",
104
118
  "dependency-cruiser": "^17.4.0",
105
119
  "drizzle-kit": "^0.31.8",
106
120
  "msw": "^2.14.6",
107
121
  "nitro": "3.0.260522-beta",
108
122
  "oxlint": "^1.79.0",
123
+ "redis": "5.12.1",
109
124
  "tsdown": "0.23.1",
110
125
  "typescript": "^7.0.2",
111
126
  "vercel": "^54.4.0",
112
127
  "vitest": "^4.1.12",
113
- "@sentry/junior-github": "0.266.0",
128
+ "@sentry/junior-github": "0.268.0",
114
129
  "@sentry/junior-testing": "0.0.0",
115
- "@sentry/junior-memory": "0.266.0"
130
+ "@sentry/junior-memory": "0.268.0"
116
131
  },
117
132
  "scripts": {
118
133
  "build": "tsdown",
@@ -1,5 +0,0 @@
1
- import "./store-CG0VJyye.js";
2
- import { z } from "zod";
3
- import "drizzle-orm/pg-core";
4
- import "drizzle-orm/migrator";
5
- import "drizzle-orm/pg-core/session";
@@ -1,64 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { p as getSqlExecutor } from "./viewer-BpE6Z3qf.js";
3
- import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-BtYK7bht.js";
4
- import { H as detectImageMediaType } from "./conversation-DF4rUcjb.js";
5
- // src/chat/attachments/images.ts
6
- var images_exports = /* @__PURE__ */ __exportAll({
7
- decodeInputImages: () => decodeInputImages,
8
- loadInputImages: () => loadInputImages,
9
- storeInputImages: () => storeInputImages
10
- });
11
- /** Check declared image types against file signatures before storing uploads. */
12
- function decodeInputImages(images) {
13
- const files = images.map((image) => {
14
- const data = Buffer.from(image.data, "base64");
15
- if (detectImageMediaType(data) !== image.contentType || data.toString("base64") !== image.data) throw new Error("Use PNG, JPEG, GIF, or WebP image files.");
16
- return {
17
- data,
18
- bytes: data.byteLength,
19
- filename: image.filename,
20
- mimeType: image.contentType,
21
- path: image.filename
22
- };
23
- });
24
- if (files.reduce((sum, file) => sum + file.bytes, 0) > 3145728) throw new Error("Images must total 3 MB or less.");
25
- return files;
26
- }
27
- /** Store image bytes before accepting a message into the mailbox. */
28
- async function storeInputImages(args) {
29
- return await Promise.all(args.files.map(async (file) => {
30
- return {
31
- id: (await storeAttachment({
32
- conversationId: args.conversationId,
33
- db: getSqlExecutor(),
34
- file,
35
- storage: args.storage
36
- })).id,
37
- filename: file.filename,
38
- contentType: file.mimeType,
39
- bytes: file.bytes
40
- };
41
- }));
42
- }
43
- /** Load stored images for model input. */
44
- async function loadInputImages(args) {
45
- return await Promise.all(args.attachments.map(async (ref) => {
46
- const attachment = await readLiveAttachment({
47
- attachmentId: ref.id,
48
- conversationId: args.conversationId,
49
- db: getSqlExecutor()
50
- });
51
- if (!attachment || attachment.storageProvider !== args.storage.provider) throw new Error("Input image is no longer available.");
52
- const body = await args.storage.get(attachment.storageKey);
53
- if (!body) throw new Error("Input image contents are unavailable.");
54
- const data = Buffer.from(await new Response(body).arrayBuffer());
55
- if (data.byteLength !== attachment.bytes) throw new Error("Input image size does not match stored metadata.");
56
- return {
57
- attachmentId: ref.id,
58
- filename: attachment.filename,
59
- mediaType: attachment.contentType,
60
- data
61
- };
62
- }));
63
- }
64
- export { images_exports as n, storeInputImages as r, decodeInputImages as t };