@sentry/junior 0.110.0 → 0.111.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 (66) hide show
  1. package/dist/{agent-hooks-ELT4ODFF.js → agent-hooks-QQ2IWKOP.js} +8 -8
  2. package/dist/api.js +11 -11
  3. package/dist/app.js +521 -394
  4. package/dist/build/virtual-config.d.ts +2 -0
  5. package/dist/{catalog-runtime-4GI22PXK.js → catalog-runtime-D22W6QEJ.js} +5 -5
  6. package/dist/chat/agent/request.d.ts +3 -6
  7. package/dist/chat/agent/sandbox.d.ts +36 -11
  8. package/dist/chat/agent/tools.d.ts +5 -8
  9. package/dist/chat/config.d.ts +8 -1
  10. package/dist/chat/pi/sdk.d.ts +1 -1
  11. package/dist/chat/plugins/agent-hooks.d.ts +2 -2
  12. package/dist/chat/runtime/agent-continue-runner.d.ts +7 -3
  13. package/dist/chat/runtime/slack-runtime.d.ts +1 -2
  14. package/dist/chat/runtime/thread-state.d.ts +3 -7
  15. package/dist/chat/runtime/turn-preparation.d.ts +2 -2
  16. package/dist/chat/sandbox/command-result.d.ts +91 -0
  17. package/dist/chat/sandbox/errors.d.ts +3 -1
  18. package/dist/chat/sandbox/ref.d.ts +5 -0
  19. package/dist/chat/sandbox/sandbox.d.ts +19 -46
  20. package/dist/chat/sandbox/session.d.ts +16 -20
  21. package/dist/chat/sandbox/skill-sync.d.ts +2 -2
  22. package/dist/chat/sandbox/workspace.d.ts +14 -12
  23. package/dist/chat/services/turn-result.d.ts +3 -4
  24. package/dist/chat/task-execution/slack-work.d.ts +3 -1
  25. package/dist/chat/task-execution/state.d.ts +75 -22
  26. package/dist/chat/task-execution/store.d.ts +34 -3
  27. package/dist/chat/task-execution/worker.d.ts +0 -1
  28. package/dist/chat/tool-support/normalize-result.d.ts +2 -2
  29. package/dist/chat/tool-support/pi-tool-adapter.d.ts +2 -2
  30. package/dist/chat/tool-support/structured-result.d.ts +1 -2
  31. package/dist/chat/tools/sandbox/file-uploads.d.ts +1 -1
  32. package/dist/chat/{runtime → tools/sandbox}/generated-artifacts.d.ts +3 -3
  33. package/dist/chat/tools/types.d.ts +1 -1
  34. package/dist/chat/tools/web/fetch-content.d.ts +5 -0
  35. package/dist/chat/tools/web/image-generate.d.ts +2 -1
  36. package/dist/chat/tools/web/search.d.ts +1 -1
  37. package/dist/{chunk-W6RJZG7F.js → chunk-B45FPP2A.js} +306 -31
  38. package/dist/{chunk-SBOBTS27.js → chunk-BTRNMS6A.js} +2 -2
  39. package/dist/{chunk-L5XQPJ7T.js → chunk-IFAHK54X.js} +2 -2
  40. package/dist/{chunk-IYKPU7H6.js → chunk-J7APPQIJ.js} +1 -1
  41. package/dist/{chunk-3S7YYHBI.js → chunk-L6JPKANW.js} +1 -1
  42. package/dist/{chunk-W75ZPAGG.js → chunk-MPVES2IC.js} +1 -1
  43. package/dist/{chunk-WNOVRQ67.js → chunk-NQLWOTY4.js} +46 -18
  44. package/dist/{chunk-RHHRKSPI.js → chunk-OOLU34J4.js} +8714 -9027
  45. package/dist/{chunk-GK47NBDE.js → chunk-PYKKM4MM.js} +1 -1
  46. package/dist/{chunk-3UBQI73J.js → chunk-PZELBSHC.js} +7 -8
  47. package/dist/{chunk-2T7TIEXI.js → chunk-QQIVLZW4.js} +11 -15
  48. package/dist/{chunk-C5XAFTHY.js → chunk-SL3ZKNLQ.js} +16 -13
  49. package/dist/{chunk-3TV7OEHL.js → chunk-WSRBFHPX.js} +1 -1
  50. package/dist/{chunk-Y3H2DN6F.js → chunk-XQAYFRWT.js} +1 -1
  51. package/dist/{chunk-Y5FK3CNG.js → chunk-Z2W4SJZ7.js} +1 -1
  52. package/dist/{chunk-ZKIOWEFL.js → chunk-Z4G3WCP3.js} +1 -1
  53. package/dist/{chunk-4QU44P7Q.js → chunk-ZRZ4SVWG.js} +2 -2
  54. package/dist/cli/chat.js +19 -19
  55. package/dist/cli/check.js +6 -6
  56. package/dist/cli/plugins.js +11 -11
  57. package/dist/cli/snapshot-warmup.js +8 -8
  58. package/dist/cli/upgrade.js +5 -5
  59. package/dist/{db-Y6W6CWWW.js → db-WXQOQESG.js} +5 -5
  60. package/dist/instrumentation.js +2 -2
  61. package/dist/nitro.js +14 -8
  62. package/dist/{runner-BBFV5GLR.js → runner-4QY4XH4B.js} +19 -28
  63. package/dist/{skills-AR4AF32L.js → skills-P5MU4EBX.js} +6 -6
  64. package/dist/{validation-FBIEPTC2.js → validation-PQF5OP6T.js} +6 -6
  65. package/dist/version.js +1 -1
  66. package/package.json +6 -6
@@ -4,7 +4,7 @@ import {
4
4
  finalizeFailedTurnReplyWithEvent,
5
5
  processPluginTask,
6
6
  scheduleSessionCompletedPluginTasks
7
- } from "./chunk-3UBQI73J.js";
7
+ } from "./chunk-PZELBSHC.js";
8
8
  import "./chunk-KNFROR7R.js";
9
9
  import {
10
10
  buildConversationContext,
@@ -25,31 +25,31 @@ import {
25
25
  startActiveTurn,
26
26
  updateConversationStats,
27
27
  upsertConversationMessage
28
- } from "./chunk-C5XAFTHY.js";
28
+ } from "./chunk-SL3ZKNLQ.js";
29
29
  import "./chunk-MU6HHZEN.js";
30
30
  import "./chunk-PDO5BLNM.js";
31
- import "./chunk-2T7TIEXI.js";
32
- import "./chunk-GK47NBDE.js";
33
- import "./chunk-L5XQPJ7T.js";
31
+ import "./chunk-QQIVLZW4.js";
32
+ import "./chunk-PYKKM4MM.js";
33
+ import "./chunk-IFAHK54X.js";
34
34
  import {
35
35
  getConversationEventStore
36
- } from "./chunk-4QU44P7Q.js";
36
+ } from "./chunk-ZRZ4SVWG.js";
37
37
  import "./chunk-JQFJO5WH.js";
38
38
  import "./chunk-4ZNGQH7C.js";
39
39
  import {
40
40
  stripRuntimeTurnContext,
41
41
  trimTrailingAssistantMessages
42
- } from "./chunk-WNOVRQ67.js";
42
+ } from "./chunk-NQLWOTY4.js";
43
43
  import "./chunk-VFUK3X5B.js";
44
44
  import "./chunk-6Y5L4BOM.js";
45
45
  import "./chunk-C4MZ3GP5.js";
46
46
  import {
47
47
  logException
48
- } from "./chunk-IYKPU7H6.js";
48
+ } from "./chunk-J7APPQIJ.js";
49
49
  import "./chunk-42WRQLJ6.js";
50
50
  import "./chunk-6GWA276C.js";
51
- import "./chunk-W75ZPAGG.js";
52
- import "./chunk-ZKIOWEFL.js";
51
+ import "./chunk-MPVES2IC.js";
52
+ import "./chunk-Z4G3WCP3.js";
53
53
  import "./chunk-MLKGABMK.js";
54
54
 
55
55
  // src/chat/local/runner.ts
@@ -116,10 +116,9 @@ async function runLocalAgentTurn(input, deps) {
116
116
  conversationId: input.conversationId
117
117
  });
118
118
  let artifacts = coerceThreadArtifactsState(persisted);
119
- let { sandboxId, sandboxDependencyProfileHash } = getPersistedSandboxState(persisted);
119
+ let sandboxRef = getPersistedSandboxState(persisted);
120
120
  const initialArtifacts = artifacts;
121
- const initialSandboxId = sandboxId;
122
- const initialSandboxDependencyProfileHash = sandboxDependencyProfileHash;
121
+ const initialSandboxRef = sandboxRef;
123
122
  const turnId = localTurnId();
124
123
  const userMessageId = `${turnId}:user`;
125
124
  const startedAtMs = now();
@@ -228,10 +227,7 @@ async function runLocalAgentTurn(input, deps) {
228
227
  },
229
228
  state: {
230
229
  artifactState: artifacts,
231
- sandbox: {
232
- sandboxId,
233
- sandboxDependencyProfileHash
234
- }
230
+ sandboxRef
235
231
  },
236
232
  observers: {
237
233
  onStatus: async (status) => {
@@ -253,18 +249,15 @@ async function runLocalAgentTurn(input, deps) {
253
249
  await persistThreadStateById(input.conversationId, {
254
250
  artifacts,
255
251
  conversation,
256
- sandboxId,
257
- sandboxDependencyProfileHash
252
+ sandboxRef
258
253
  });
259
254
  },
260
- onSandboxAcquired: async (sandbox) => {
261
- sandboxId = sandbox.sandboxId;
262
- sandboxDependencyProfileHash = sandbox.sandboxDependencyProfileHash;
255
+ onSandboxRefChanged: async (nextSandboxRef) => {
256
+ sandboxRef = nextSandboxRef;
263
257
  await persistThreadStateById(input.conversationId, {
264
258
  artifacts,
265
259
  conversation,
266
- sandboxId,
267
- sandboxDependencyProfileHash
260
+ sandboxRef
268
261
  });
269
262
  }
270
263
  }
@@ -311,8 +304,7 @@ async function runLocalAgentTurn(input, deps) {
311
304
  await persistThreadStateById(input.conversationId, {
312
305
  artifacts: initialArtifacts,
313
306
  conversation,
314
- sandboxId: initialSandboxId ?? "",
315
- sandboxDependencyProfileHash: initialSandboxDependencyProfileHash ?? ""
307
+ sandboxRef: initialSandboxRef ?? null
316
308
  });
317
309
  } catch (persistenceError) {
318
310
  const persistenceEventId = captureLocalBoundaryFailure({
@@ -347,8 +339,7 @@ async function runLocalAgentTurn(input, deps) {
347
339
  await persistThreadStateById(input.conversationId, {
348
340
  artifacts: completedState.artifacts ?? artifacts,
349
341
  conversation: completedState.conversation,
350
- sandboxId: reply.sandboxId ?? sandboxId,
351
- sandboxDependencyProfileHash: reply.sandboxDependencyProfileHash ?? sandboxDependencyProfileHash
342
+ sandboxRef: reply.sandboxRef ?? sandboxRef
352
343
  });
353
344
  if (reply.piMessages?.length) {
354
345
  await (deps.completeDeliveredTurn ?? completeDeliveredTurn)({
@@ -6,17 +6,17 @@ import {
6
6
  parseSkillInvocation,
7
7
  resetSkillDiscoveryCache,
8
8
  stripFrontmatter
9
- } from "./chunk-SBOBTS27.js";
10
- import "./chunk-3TV7OEHL.js";
11
- import "./chunk-Y3H2DN6F.js";
9
+ } from "./chunk-BTRNMS6A.js";
10
+ import "./chunk-WSRBFHPX.js";
11
+ import "./chunk-XQAYFRWT.js";
12
12
  import "./chunk-C4MZ3GP5.js";
13
- import "./chunk-IYKPU7H6.js";
13
+ import "./chunk-J7APPQIJ.js";
14
14
  import "./chunk-42WRQLJ6.js";
15
15
  import "./chunk-6GWA276C.js";
16
16
  import "./chunk-B3IT5END.js";
17
17
  import "./chunk-3V7OFJZC.js";
18
- import "./chunk-W75ZPAGG.js";
19
- import "./chunk-ZKIOWEFL.js";
18
+ import "./chunk-MPVES2IC.js";
19
+ import "./chunk-Z4G3WCP3.js";
20
20
  import "./chunk-MLKGABMK.js";
21
21
  export {
22
22
  discoverSkills,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "./chunk-Y5FK3CNG.js";
5
- import "./chunk-3TV7OEHL.js";
6
- import "./chunk-Y3H2DN6F.js";
4
+ } from "./chunk-Z2W4SJZ7.js";
5
+ import "./chunk-WSRBFHPX.js";
6
+ import "./chunk-XQAYFRWT.js";
7
7
  import "./chunk-C4MZ3GP5.js";
8
- import "./chunk-IYKPU7H6.js";
8
+ import "./chunk-J7APPQIJ.js";
9
9
  import "./chunk-42WRQLJ6.js";
10
10
  import "./chunk-6GWA276C.js";
11
11
  import "./chunk-B3IT5END.js";
12
12
  import "./chunk-3V7OFJZC.js";
13
- import "./chunk-W75ZPAGG.js";
14
- import "./chunk-ZKIOWEFL.js";
13
+ import "./chunk-MPVES2IC.js";
14
+ import "./chunk-Z4G3WCP3.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
  export {
17
17
  validatePluginEgressCredentialHooks,
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JUNIOR_VERSION
3
- } from "./chunk-ZKIOWEFL.js";
3
+ } from "./chunk-Z4G3WCP3.js";
4
4
  import "./chunk-MLKGABMK.js";
5
5
  export {
6
6
  JUNIOR_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.110.0",
3
+ "version": "0.111.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -79,7 +79,7 @@
79
79
  "pg": "^8.16.3",
80
80
  "yaml": "^2.9.0",
81
81
  "zod": "^4.4.3",
82
- "@sentry/junior-plugin-api": "0.110.0"
82
+ "@sentry/junior-plugin-api": "0.111.0"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@emnapi/core": "^1.10.0",
@@ -96,10 +96,10 @@
96
96
  "typescript": "^6.0.3",
97
97
  "vercel": "^54.4.0",
98
98
  "vitest": "^4.1.7",
99
- "@sentry/junior-github": "0.110.0",
100
- "@sentry/junior-scheduler": "0.110.0",
101
- "@sentry/junior-testing": "0.0.0",
102
- "@sentry/junior-memory": "0.110.0"
99
+ "@sentry/junior-memory": "0.111.0",
100
+ "@sentry/junior-github": "0.111.0",
101
+ "@sentry/junior-scheduler": "0.111.0",
102
+ "@sentry/junior-testing": "0.0.0"
103
103
  },
104
104
  "scripts": {
105
105
  "build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly",