@sentry/junior 0.270.0 → 0.272.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 (75) hide show
  1. package/dist/{actor-CP9K2Idu.js → actor-B4DYygOB.js} +1 -1
  2. package/dist/{adapter-BQNTKVTF.js → adapter-BDYDi1F9.js} +1 -1
  3. package/dist/{admin-CKVEoXa4.js → admin-Dj7EFycG.js} +1 -1
  4. package/dist/{agent-runner-MSQSMFkq.js → agent-runner-Cl6Usx2Y.js} +336 -280
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +5 -5
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +81 -37
  9. package/dist/{app-Bz8t4P8p.d.ts → app-DjZblE2J.d.ts} +8 -2
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +74 -40
  12. package/dist/{interruption-marker-CdblrIQK.js → assistant-reply-DN2w6JL_.js} +2 -8
  13. package/dist/{automation-Dwh_xcqM.js → automation-CV7g5h3A.js} +1 -1
  14. package/dist/{briefs-DNFzFFVx.js → briefs-PysAqnjV.js} +4 -4
  15. package/dist/{catalog-runtime-Bdym_wKy.js → catalog-runtime-BNeCWIaF.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{client-B2MjENki.js → client-FRphcDWW.js} +2 -2
  24. package/dist/{config-Dm3pWRqY.js → config-BUP9wjiR.js} +3 -3
  25. package/dist/{connections-0BBhiD-p.js → connections-CesHau9u.js} +10 -10
  26. package/dist/{conversation-AhOVzN_k.js → conversation-BtQzLoK8.js} +12 -1
  27. package/dist/{conversation-privacy-C1pJ89rs.js → conversation-privacy-DiGvA9a3.js} +1 -1
  28. package/dist/{credential-sync-BRiWYs6_.js → credential-sync-D2odJC30.js} +15 -15
  29. package/dist/{credentialed-BeBaJMZ_.js → credentialed-CgTulRDH.js} +33 -26
  30. package/dist/{db-BYOuu6v2.d.ts → db-BPLmOwXf.d.ts} +11 -1
  31. package/dist/{executor-BB6eJkD4.js → executor-DGDpyegI.js} +30 -7
  32. package/dist/instrumentation.js +2 -2
  33. package/dist/{job-queue-DiaXoSDg.js → job-queue-CjB97sii.js} +2 -2
  34. package/dist/{list-BTDRxkOg.js → list-JZUP1yog.js} +37 -53
  35. package/dist/{logging-C6EdT6PP.js → logging-CjkDr-jP.js} +1 -1
  36. package/dist/message-D9y8PKA1.js +186 -0
  37. package/dist/nitro.d.ts +1 -1
  38. package/dist/nitro.js +3 -3
  39. package/dist/{oauth-callback-server-CjFFVGqa.js → oauth-callback-server-02Pej6hj.js} +2 -2
  40. package/dist/{prompt-BPSdXYXV.js → prompt-vfceH0c-.js} +1 -1
  41. package/dist/{registry-CndmkP2P.js → registry-7XgwNgQe.js} +2 -2
  42. package/dist/{reporting-window-DRCi1Ls_.js → reporting-window-DgHgwQB3.js} +6 -1
  43. package/dist/{resolve-BkAA1wH7.js → resolve-CuuxNfWG.js} +3 -3
  44. package/dist/{result-9TJTpuYP.js → result-BRhb6iN1.js} +17 -13
  45. package/dist/{runner-BmKLSyJm.js → runner-DaWCofuS.js} +11 -11
  46. package/dist/{sandbox-egress-signals-CjLaogMo.js → sandbox-egress-signals-Bn6FA1UC.js} +1 -1
  47. package/dist/{schema-WayPSHFu.d.ts → schema-CNjAzYOw.d.ts} +28 -5
  48. package/dist/{schema-DNLJ_MzW.js → schema-D5VLF4NT.js} +13 -9
  49. package/dist/{service-account-DlhYl-Mu.js → service-account-D9vrsi8d.js} +3 -3
  50. package/dist/{service-account-D6e9cVmH.js → service-account-H45LIAG2.js} +3 -3
  51. package/dist/{session-stop-MZRgYqYH.js → session-stop-HKl0ECX0.js} +81 -153
  52. package/dist/{skills-BggTR_ue.js → skills-CsiKu3-g.js} +2 -2
  53. package/dist/{spawn-DmtlcAT_.js → spawn-DqjBxqWh.js} +2 -2
  54. package/dist/{store-BeWGgaMA.js → store-CPF2kzbu.js} +3 -3
  55. package/dist/{store-Byarin7b.js → store-DyVKH0QB.js} +47 -30
  56. package/dist/{task-queue-Dt1_ZoI_.js → task-queue-BbQXCcNX.js} +3 -3
  57. package/dist/{task-runner-DyKqAPpm.js → task-runner-ChzW5E7R.js} +7 -7
  58. package/dist/{thread-state-BHBLMvgb.js → thread-state-Ds8JTsX6.js} +5 -5
  59. package/dist/{turn-failure-response-DWXy_0oJ.js → turn-failure-response-DCMvjsA0.js} +15 -10
  60. package/dist/{turn-lifecycle-AiXkVqCB.js → turn-lifecycle-DM_77q33.js} +1 -1
  61. package/dist/{turn-session-routing-B9KLBhaT.js → turn-session-routing-BV_gX7n3.js} +13 -13
  62. package/dist/{validation-BW60Vtx_.js → validation-DcGelbBi.js} +1 -1
  63. package/dist/{version-CivPYmkH.js → version-C48azPKq.js} +1 -1
  64. package/dist/version.js +1 -1
  65. package/dist/{viewer-BTgAfdUg.js → viewer-BCRuO8Wg.js} +26 -10
  66. package/dist/{work-Bjm52fHo.js → work-zxkmbJAp.js} +27 -11
  67. package/dist/{worker-CMbgtHLu.js → worker-CNNxHF1V.js} +6 -6
  68. package/migrations/0071_review_item_turn.sql +1 -0
  69. package/migrations/0072_conversation_read_positions.sql +10 -0
  70. package/migrations/meta/0071_snapshot.json +4003 -0
  71. package/migrations/meta/0072_snapshot.json +4064 -0
  72. package/migrations/meta/_journal.json +14 -0
  73. package/package.json +4 -4
  74. package/dist/message-DsjiWRVg.js +0 -59
  75. package/migrations/AGENTS.md +0 -17
@@ -498,6 +498,20 @@
498
498
  "when": 1793561992655,
499
499
  "tag": "0070_review_item_foreign_keys",
500
500
  "breakpoints": true
501
+ },
502
+ {
503
+ "idx": 71,
504
+ "version": "7",
505
+ "when": 1793640471869,
506
+ "tag": "0071_review_item_turn",
507
+ "breakpoints": true
508
+ },
509
+ {
510
+ "idx": 72,
511
+ "version": "7",
512
+ "when": 1793657651066,
513
+ "tag": "0072_conversation_read_positions",
514
+ "breakpoints": true
501
515
  }
502
516
  ]
503
517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.270.0",
3
+ "version": "0.272.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -91,7 +91,7 @@
91
91
  "sharp": "^0.35.3",
92
92
  "yaml": "^2.9.0",
93
93
  "zod": "^4.5.4",
94
- "@sentry/junior-plugin-api": "0.270.0"
94
+ "@sentry/junior-plugin-api": "0.272.0"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "bullmq": "^6.5.0",
@@ -126,9 +126,9 @@
126
126
  "typescript": "^7.0.2",
127
127
  "vercel": "^54.4.0",
128
128
  "vitest": "^4.1.12",
129
- "@sentry/junior-github": "0.270.0",
129
+ "@sentry/junior-github": "0.272.0",
130
130
  "@sentry/junior-testing": "0.0.0",
131
- "@sentry/junior-memory": "0.270.0"
131
+ "@sentry/junior-memory": "0.272.0"
132
132
  },
133
133
  "scripts": {
134
134
  "build": "tsdown",
@@ -1,59 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { At as actorFromRun, jt as toolInvocationDestination } from "./agent-runner-MSQSMFkq.js";
3
- import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-Byarin7b.js";
4
- import { r as enqueueAgentMessageToParent } from "./result-9TJTpuYP.js";
5
- import { r as enqueueAgentInvocation } from "./work-Bjm52fHo.js";
6
- // src/chat/agent-invocations/message.ts
7
- var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
8
- /**
9
- * Bind a Run's Actor and credentials to messages for its parent and child
10
- * agents. A message to a child continues that child. A message to the parent
11
- * wakes the parent like a result.
12
- */
13
- function bindMessageAgent(run, options) {
14
- const actor = actorFromRun(run);
15
- if (!actor) return;
16
- return async (input, call) => {
17
- call.signal?.throwIfAborted();
18
- const queue = typeof options.queue === "function" ? options.queue() : options.queue;
19
- if (input.to === "parent") {
20
- const sender = await getActiveAgentInvocationForConversation(run.conversationId);
21
- if (!sender) throw new AgentMessageTargetError("This conversation has no parent agent");
22
- await enqueueAgentMessageToParent({
23
- messageKey: `${run.turnId}:${call.toolCallId}`,
24
- queue,
25
- sender,
26
- state: options.state,
27
- text: input.text
28
- });
29
- return {
30
- conversationId: sender.parentConversationId,
31
- delivery: "queued"
32
- };
33
- }
34
- const childConversationId = await findChildAgentConversationId({
35
- parentConversationId: run.conversationId,
36
- target: input.to
37
- });
38
- if (!childConversationId) throw new AgentMessageTargetError(`"${input.to}" is not "${PARENT_AGENT_TARGET}" or a child agent of this conversation`);
39
- const { invocation, queued } = await createAgentInvocationForMessage({
40
- actor,
41
- childConversationId,
42
- ...run.credentialContext ? { credentialContext: run.credentialContext } : void 0,
43
- destination: toolInvocationDestination(run),
44
- idempotencyKey: `${run.turnId}:${call.toolCallId}`,
45
- input: input.text,
46
- parentConversationId: run.conversationId,
47
- parentToolCallId: call.toolCallId
48
- });
49
- await enqueueAgentInvocation(invocation, {
50
- ...options,
51
- queue
52
- });
53
- return {
54
- conversationId: childConversationId,
55
- delivery: queued ? "queued" : "started"
56
- };
57
- };
58
- }
59
- export { message_exports as n, bindMessageAgent as t };
@@ -1,17 +0,0 @@
1
- # SQL Migrations
2
-
3
- `src/db/schema.ts` is the Drizzle schema entry point. This directory is the
4
- append-only history that brings an existing database to that schema.
5
- `src/chat/conversations/sql/migrations.ts` owns loading, locking, and the
6
- bridge-version guard.
7
-
8
- ## Rules
9
-
10
- - Never edit, rename, reorder, or delete an applied migration or its
11
- metadata. Add a new migration to correct it.
12
- - Change the table under `src/db/schema/`, then run
13
- `pnpm --filter @sentry/junior db:generate --name <name>`. Commit the SQL,
14
- `meta/_journal.json`, and the snapshot together.
15
- - Put fixed row transformations in the migration that needs them.
16
- - A schema without the core Drizzle journal must first upgrade through
17
- `@sentry/junior@0.107.1`. Do not remove that guard.