@sentry/junior 0.299.0 → 0.300.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 (78) hide show
  1. package/dist/{adapter-AgCNqqsG.js → adapter-S5UkjNK3.js} +5 -4
  2. package/dist/{admin-1VwEXztm.js → admin-UrTniSPO.js} +2 -2
  3. package/dist/{agent-runner-Ciet8_nn.js → agent-runner-bY4_0UPm.js} +508 -203
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +6 -7
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +293 -61
  8. package/dist/{app--ky-Eu33.d.ts → app-D-AcIcCV.d.ts} +13 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +57 -219
  11. package/dist/{automation-M3RFJUBf.js → automation-Dw82oQ-h.js} +2 -2
  12. package/dist/{background-compaction-queue-CnimvRdk.js → background-compaction-queue-B6U3060-.js} +8 -4
  13. package/dist/{briefs-CwzvgdCa.js → briefs-DqiwWu-n.js} +3 -3
  14. package/dist/{catalog-runtime-DaBaHY7u.js → catalog-runtime-D1oYNv04.js} +1 -1
  15. package/dist/cli/chat.js +16 -16
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/main.js +3 -3
  18. package/dist/cli/plugins.js +5 -5
  19. package/dist/cli/snapshot-create.js +4 -4
  20. package/dist/cli/upgrade.d.ts +1 -1
  21. package/dist/cli/upgrade.js +4 -4
  22. package/dist/{config-CAXIpWQb.js → config-9nHoFiJP.js} +39 -8
  23. package/dist/{connections-Dy0hPdUq.js → connections-DZjTN3JC.js} +6 -6
  24. package/dist/{continue-in-slack-DIOjFj76.js → continue-in-slack-Dtv7_U42.js} +6 -6
  25. package/dist/{conversation-fCWD9Az3.js → conversation-Dyjq2CZ8.js} +19 -8
  26. package/dist/{conversation-feed-BPK8vkkZ.js → conversation-feed-CcDxlrlQ.js} +23 -2
  27. package/dist/{conversation-privacy-DUgtRkf8.js → conversation-privacy-D-5HTXjS.js} +1 -1
  28. package/dist/{conversation-turn-DkJB6yMF.js → conversation-turn-Cxl8WZD7.js} +17 -17
  29. package/dist/{credential-sync-RX24Y8aY.js → credential-sync-C49ClwDX.js} +15 -15
  30. package/dist/{db-B07FtU9g.d.ts → db-2resqBh1.d.ts} +1 -1
  31. package/dist/{db-COYOGzYS.js → db-BJNo6fK5.js} +13 -8
  32. package/dist/{executor-BWmAgSyi.js → executor-DBIaOeJ_.js} +9 -4
  33. package/dist/instrumentation.js +14 -5
  34. package/dist/{lineage-D-5jm_oj.js → lineage-0dereG7H.js} +2 -2
  35. package/dist/{logging-DPLEa8Bn.js → logging-BIclibct.js} +1 -1
  36. package/dist/{message-BIHR1yRk.js → message-dkOl-Iii.js} +8 -8
  37. package/dist/{model-input-BPZYH8Nd.js → model-input-CLo9TaUd.js} +4 -4
  38. package/dist/nitro.d.ts +1 -1
  39. package/dist/nitro.js +4 -4
  40. package/dist/{oauth-callback-server-R7qvSzFG.js → oauth-callback-server-WmpjfJgQ.js} +2 -2
  41. package/dist/{plugins-CBW2Prb_.js → plugins-BBX07Jzt.js} +1 -1
  42. package/dist/{projection-DEdP1q6f.js → projection-w_X-zi7v.js} +3742 -3624
  43. package/dist/{prompt-4M98h_tC.js → prompt-B1Xw46-S.js} +4 -4
  44. package/dist/{registry-BTKmKM-r.js → registry-BmP5vnlj.js} +2 -2
  45. package/dist/{resolve-B8hXNVZ3.js → resolve-goo34bJK.js} +3 -3
  46. package/dist/{result-g-XAaOj6.js → result-PVBeU0Wf.js} +9 -9
  47. package/dist/{runner-BlPSA5A8.js → runner-DKrfvNV6.js} +9 -9
  48. package/dist/{sandbox-egress-signals-Pai-MzEY.js → sandbox-egress-signals-DsUcqrI0.js} +1 -1
  49. package/dist/{schema-BNnY_trV.js → schema-C9iNFz5n.js} +20 -16
  50. package/dist/{schema-DbuWR-DN.d.ts → schema-Dns-sTas.d.ts} +219 -6
  51. package/dist/{service-account-BYGZ08DQ.js → service-account-CMAAloAL.js} +3 -3
  52. package/dist/{service-account-9OLNQMyz.js → service-account-CmowamcB.js} +4 -4
  53. package/dist/{session-stop-2XJrcNCy.js → session-stop-BcAXze8a.js} +15 -41
  54. package/dist/{skills-DpBQoeHV.js → skills-DfsazET6.js} +2 -2
  55. package/dist/{slack-conversation-unfurl-BcDIWo67.js → slack-conversation-unfurl-CzQonuWz.js} +7 -7
  56. package/dist/{spawn-09GssFod.js → spawn-C7o0FDDp.js} +6 -6
  57. package/dist/{state-Cufq0_rH.js → state-zSilNpbi.js} +2 -2
  58. package/dist/{statuses-B8mUfghF.js → statuses-Hn-HsOph.js} +86 -2
  59. package/dist/{stop-U7iUrR1g.js → stop-CFOujp8C.js} +2938 -76
  60. package/dist/{store-CSgUTMdv.js → store-Dkeis_8o.js} +9 -9
  61. package/dist/{store-BHiaHCQu.js → store-E3x2Fg_F.js} +5 -5
  62. package/dist/{task-queue-bMNq0clp.js → task-queue-D-hCqdZW.js} +3 -3
  63. package/dist/{task-runner-B__rxwxU.js → task-runner-vohUPLHe.js} +8 -8
  64. package/dist/{thread-context-d0ceWbVT.js → thread-context-BzvdkgI9.js} +8 -8
  65. package/dist/{turn-session-routing-BVZHBFCF.js → turn-session-routing-Bo_LxFum.js} +5 -5
  66. package/dist/{turn-user-message-BEw7acTP.js → turn-user-message-D5RnVmxQ.js} +3 -3
  67. package/dist/{users-BK3dbxZL.js → users-2bggndVg.js} +3 -3
  68. package/dist/{validation-BDVJjO2E.js → validation-BbWikeSa.js} +1 -1
  69. package/dist/{version-DQgZoQ3D.js → version-GVBMW2jA.js} +1 -1
  70. package/dist/version.js +1 -1
  71. package/dist/{viewer-CAWfFo29.js → viewer-BpxRliyO.js} +16 -114
  72. package/dist/{warmup-9ySPacF9.js → warmup-BW2qwnal.js} +18 -16
  73. package/dist/{worker-D8jJO-WO.js → worker-Cbd-iuwZ.js} +24 -20
  74. package/migrations/0107_attachment_deferred_download.sql +2 -0
  75. package/migrations/meta/0107_snapshot.json +4617 -0
  76. package/migrations/meta/_journal.json +7 -0
  77. package/package.json +10 -8
  78. package/dist/media-BAHvgkok.js +0 -85
@@ -750,6 +750,13 @@
750
750
  "when": 1794521047106,
751
751
  "tag": "0106_conversation_agent_config",
752
752
  "breakpoints": true
753
+ },
754
+ {
755
+ "idx": 107,
756
+ "version": "7",
757
+ "when": 1794557567747,
758
+ "tag": "0107_attachment_deferred_download",
759
+ "breakpoints": true
753
760
  }
754
761
  ]
755
762
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.299.0",
3
+ "version": "0.300.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -57,7 +57,7 @@
57
57
  "@chat-adapter/slack": "4.29.0",
58
58
  "@chat-adapter/state-memory": "4.29.0",
59
59
  "@chat-adapter/state-redis": "4.29.0",
60
- "@earendil-works/pi-agent-core": "0.84.1",
60
+ "@earendil-works/pi-agent-core": "0.85.1",
61
61
  "@earendil-works/pi-ai": "0.85.1",
62
62
  "@earendil-works/pi-codemode": "1.4.0",
63
63
  "@hono/zod-validator": "^0.9.0",
@@ -81,7 +81,7 @@
81
81
  "chat": "4.29.0",
82
82
  "commander": "^14.0.3",
83
83
  "diff": "^8.0.4",
84
- "drizzle-orm": "^0.45.2",
84
+ "drizzle-orm": "^0.45.4",
85
85
  "graphql": "^16.14.0",
86
86
  "hono": "^4.13.11",
87
87
  "jiti": "^2.7.0",
@@ -89,13 +89,14 @@
89
89
  "just-bash": "3.0.1",
90
90
  "node-html-markdown": "^2.0.0",
91
91
  "p-limit": "^7.3.1",
92
+ "parse5": "^7.3.0",
92
93
  "pg": "^8.16.3",
93
94
  "sharp": "^0.35.3",
94
95
  "undici": "7.30.1",
95
96
  "web-push": "^3.6.7",
96
97
  "yaml": "^2.9.0",
97
- "zod": "^4.5.4",
98
- "@sentry/junior-plugin-api": "0.299.0"
98
+ "zod": "^4.6.7",
99
+ "@sentry/junior-plugin-api": "0.300.0"
99
100
  },
100
101
  "peerDependencies": {
101
102
  "bullmq": "^6.5.0",
@@ -131,9 +132,9 @@
131
132
  "typescript": "^7.0.2",
132
133
  "vercel": "^54.4.0",
133
134
  "vitest": "^4.1.12",
134
- "@sentry/junior-memory": "0.299.0",
135
- "@sentry/junior-github": "0.299.0",
136
- "@sentry/junior-testing": "0.0.0"
135
+ "@sentry/junior-github": "0.300.0",
136
+ "@sentry/junior-testing": "0.0.0",
137
+ "@sentry/junior-memory": "0.300.0"
137
138
  },
138
139
  "scripts": {
139
140
  "build": "tsdown",
@@ -147,6 +148,7 @@
147
148
  "skills:check": "node --test scripts/check-skills.test.mjs && node scripts/check-skills.mjs",
148
149
  "tool-annotations:check": "node --test scripts/check-tool-annotations.test.mjs && node scripts/check-tool-annotations.mjs",
149
150
  "tool-key-casing:check": "node --test scripts/check-tool-key-casing.test.mjs && node scripts/check-tool-key-casing.mjs",
151
+ "tool-descriptions:check": "node --test scripts/check-tool-descriptions.test.mjs && node scripts/check-tool-descriptions.mjs",
150
152
  "tool-error-classification:check": "node --test scripts/check-tool-error-classification.test.mjs && node scripts/check-tool-error-classification.mjs",
151
153
  "test:coverage": "vitest run --maxWorkers=4 --coverage --reporter=default --reporter=junit --outputFile.junit=coverage/results.junit.xml"
152
154
  }
@@ -1,85 +0,0 @@
1
- // src/chat/attachments/media.ts
2
- const INPUT_IMAGE_TYPES = [
3
- "image/png",
4
- "image/jpeg",
5
- "image/gif",
6
- "image/webp"
7
- ];
8
- /** Video types that browsers play in a `<video>` element. */
9
- const INLINE_VIDEO_TYPES = ["video/mp4", "video/webm"];
10
- /** Leading bytes of each accepted image type. `null` matches any byte. */
11
- const IMAGE_SIGNATURES = [
12
- {
13
- mediaType: "image/png",
14
- bytes: [
15
- 137,
16
- 80,
17
- 78,
18
- 71,
19
- 13,
20
- 10,
21
- 26,
22
- 10
23
- ]
24
- },
25
- {
26
- mediaType: "image/jpeg",
27
- bytes: [
28
- 255,
29
- 216,
30
- 255
31
- ]
32
- },
33
- {
34
- mediaType: "image/gif",
35
- bytes: [
36
- 71,
37
- 73,
38
- 70,
39
- 56,
40
- 55,
41
- 97
42
- ]
43
- },
44
- {
45
- mediaType: "image/gif",
46
- bytes: [
47
- 71,
48
- 73,
49
- 70,
50
- 56,
51
- 57,
52
- 97
53
- ]
54
- },
55
- {
56
- mediaType: "image/webp",
57
- bytes: [
58
- 82,
59
- 73,
60
- 70,
61
- 70,
62
- null,
63
- null,
64
- null,
65
- null,
66
- 87,
67
- 69,
68
- 66,
69
- 80
70
- ]
71
- }
72
- ];
73
- /**
74
- * Detect an accepted image type from file bytes. Use this instead of a file
75
- * name or declared content type, which can be wrong.
76
- */
77
- function detectImageMediaType(data) {
78
- return IMAGE_SIGNATURES.find(({ bytes }) => data.length >= bytes.length && bytes.every((byte, index) => byte === null || data[index] === byte))?.mediaType;
79
- }
80
- /** Report whether a media type is a raster image accepted by vision models. */
81
- function isVisionImageMediaType(mediaType) {
82
- const normalized = mediaType.split(";", 1)[0]?.trim().toLowerCase();
83
- return normalized ? INPUT_IMAGE_TYPES.some((type) => type === normalized) : false;
84
- }
85
- export { isVisionImageMediaType as i, INPUT_IMAGE_TYPES as n, detectImageMediaType as r, INLINE_VIDEO_TYPES as t };