@sentry/junior 0.315.0 → 0.316.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 (80) hide show
  1. package/dist/{adapter-context-BlSGE44V.js → adapter-context-Bref7aPI.js} +1 -1
  2. package/dist/{admin-5jUYY46p.js → admin-QYiDMnsu.js} +1 -1
  3. package/dist/{agent-runner-C7GNLRB6.js → agent-runner-Cr5Fhjf-.js} +2298 -1866
  4. package/dist/{agent-update-delivery-BNEYQsAf.js → agent-update-delivery-BY13DPSD.js} +10 -37
  5. package/dist/api/schema.d.ts +69 -20
  6. package/dist/api/schema.js +4 -4
  7. package/dist/api.js +202 -315
  8. package/dist/{app-D_bAXRDe.d.ts → app-BhvzRD__.d.ts} +18 -14
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +34 -34
  11. package/dist/{chat-core-engine-CxkwRpn9.js → chat-core-engine-3dtlMku3.js} +3 -3
  12. package/dist/cli/chat.js +17 -17
  13. package/dist/cli/check.js +4 -4
  14. package/dist/cli/main.js +2 -2
  15. package/dist/cli/plugins.js +3 -3
  16. package/dist/cli/snapshot-create.js +2 -2
  17. package/dist/cli/upgrade.js +23 -3
  18. package/dist/{continue-in-slack-BGKjIdFp.js → continue-in-slack-DbQUFe_F.js} +3 -3
  19. package/dist/{conversation-feed-Sl8lKKmR.js → conversation-feed-B84pMjHo.js} +8 -3
  20. package/dist/{conversation-turn-BoLK9i6g.js → conversation-turn-DzEpTIaf.js} +16 -109
  21. package/dist/{create-BOycVH9h.js → create-DUJBXr6E.js} +4 -5
  22. package/dist/{credential-sync-Mn4OdkEh.js → credential-sync-JH_K9Adg.js} +9 -9
  23. package/dist/{db-DXTOYRzR.js → db-DhzvUY23.js} +343 -179
  24. package/dist/{deployment-CG3TchWh.js → deployment-BhvrhQeh.js} +1 -1
  25. package/dist/{engine-context-dyWlfNdD.js → engine-context-C9Nal48K.js} +9 -12
  26. package/dist/{html-CfXEwl_h.js → html-B_12WjKT.js} +2 -2
  27. package/dist/instrumentation.js +2 -2
  28. package/dist/{job-runner-CySgpi9v.js → job-runner-DO8nslyY.js} +17 -9
  29. package/dist/{lineage-tRTOcrsL.js → lineage-D3AZAJVe.js} +1 -1
  30. package/dist/{list-DXBz8SYL.js → list-B0zsb5Cp.js} +64 -182
  31. package/dist/{parent-result-Dg6P6roR.js → list-mkB_GU8R.js} +80 -108
  32. package/dist/{logging-czs0nqLC.js → logging-B8KEJegM.js} +1 -1
  33. package/dist/{media-Cr9pGkzr.js → media-BebquhET.js} +15 -3
  34. package/dist/{message-BTox2Cmb.js → message-B5fKDYzz.js} +8 -8
  35. package/dist/{model-input-IRGa98V7.js → model-input-CuMWy37l.js} +3 -3
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +2 -2
  38. package/dist/{oauth-callback-server-NXK7AlBp.js → oauth-callback-server-B3Vvlydo.js} +2 -2
  39. package/dist/{oauth-relay-6NBPSpFE.js → oauth-relay-6ERrGPbA.js} +1 -1
  40. package/dist/{people-Cegp1Iwq.js → people-CUtFApfL.js} +2 -2
  41. package/dist/{proxy-path-Dc-0jXGi.js → proxy-path-BTmXDjfx.js} +1 -1
  42. package/dist/{resolve-BUFkmxkT.js → resolve-D5JVvv6A.js} +3 -3
  43. package/dist/{result-DfATzX77.js → result-CS_7mo8a.js} +30 -14
  44. package/dist/{runner-CmKP3inb.js → runner-BzAES5W3.js} +7 -7
  45. package/dist/{sandbox-egress-signals-DYo5BsM7.js → sandbox-egress-signals-Dwhk2Q5F.js} +1 -1
  46. package/dist/{schema-DrBMdPmv.js → schema-z5-wA6N4.js} +34 -13
  47. package/dist/{service-account-CxTX7nnR.js → service-account-D6AsAtc1.js} +1 -1
  48. package/dist/{mailbox-turn-79Nv1JXv.js → session-stop-DponjDUZ.js} +3075 -3092
  49. package/dist/{skills-BlHUDj7k.js → skills-DgJ9GBPR.js} +3 -3
  50. package/dist/{slack-conversation-unfurl-Dhe3lB1U.js → slack-conversation-unfurl-Dq71EkhM.js} +6 -6
  51. package/dist/{spawn-CfvlFdfz.js → spawn-BJWpdwhQ.js} +4 -4
  52. package/dist/{start-conversation-Uh8Sk1EF.js → start-conversation-B-LIqqNi.js} +2 -2
  53. package/dist/{system-prompt-table-CDCYVwqN.js → system-prompt-table-iIgpmslr.js} +6 -4
  54. package/dist/{task-runner-DcdQJd9e.js → task-runner-BJae4JwE.js} +23 -11
  55. package/dist/{thread-context-DF5uDcWN.js → thread-context-fiMNylbg.js} +5 -5
  56. package/dist/{transcript-BHhJVY0P.js → transcript-CCi7323k.js} +1 -1
  57. package/dist/{turn-session-routing-GtetHsdO.js → turn-session-routing-D15orfwy.js} +7 -7
  58. package/dist/{turn-wake-um5Ubd4m.js → turn-wake-BjDW7x-5.js} +4 -4
  59. package/dist/{validation-CJyuOPD2.js → validation-D5WmmmhX.js} +1 -1
  60. package/dist/{version-Bhe7RPIe.js → version-CBQoanXb.js} +1 -1
  61. package/dist/version.js +1 -1
  62. package/dist/{worker-D8PRgUqr.js → worker-Cyb4kF17.js} +3 -3
  63. package/migrations/20261125171254_conversation_visibility/migration.sql +4 -0
  64. package/migrations/20261125171254_conversation_visibility/snapshot.json +67 -0
  65. package/migrations/20261125171257_conversation_visibility_backfill/migration.sql +25 -0
  66. package/migrations/20261125171257_conversation_visibility_backfill/snapshot.json +9 -0
  67. package/migrations/20261125213232_drop_versions_notify/migration.sql +19 -0
  68. package/migrations/20261125213232_drop_versions_notify/snapshot.json +9 -0
  69. package/migrations/20261125225138_conversation_kind_root_thread/migration.sql +23 -0
  70. package/migrations/20261125225138_conversation_kind_root_thread/snapshot.json +55 -0
  71. package/migrations/20261125225142_conversation_kind_root_thread_backfill/migration.sql +7 -0
  72. package/migrations/20261125225142_conversation_kind_root_thread_backfill/snapshot.json +9 -0
  73. package/migrations/20261126000151_conversation_event_message_role_seq_index/migration.sql +1 -0
  74. package/migrations/20261126000151_conversation_event_message_role_seq_index/snapshot.json +69 -0
  75. package/migrations/20261126012917_merge_leaves/migration.sql +2 -0
  76. package/migrations/20261126012917_merge_leaves/snapshot.json +12 -0
  77. package/package.json +5 -5
  78. package/skills/jr-rpc/SKILL.md +3 -5
  79. package/dist/direct-url-BYgYfuIy.js +0 -22
  80. package/dist/markers-CE0HMXWT.js +0 -67
@@ -0,0 +1,12 @@
1
+ {
2
+ "type": "diff",
3
+ "version": "10",
4
+ "dialect": "postgres",
5
+ "id": "0e1b857d-8d81-45fd-b576-822a76b32c70",
6
+ "prevIds": [
7
+ "0ade2c1c-c3d4-47eb-b7cc-b76d694776bc",
8
+ "d643f037-e1f1-41fd-a368-e705f2818a34"
9
+ ],
10
+ "footprints": [],
11
+ "deltas": []
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.315.0",
3
+ "version": "0.316.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -65,7 +65,7 @@
65
65
  "@modelcontextprotocol/sdk": "1.32.0",
66
66
  "@neondatabase/serverless": "^1.1.0",
67
67
  "@sentry/api": "2.16.0",
68
- "@sentry/junior-plugin-api": "0.315.0",
68
+ "@sentry/junior-plugin-api": "0.316.0",
69
69
  "@sentry/nitro": "11.16.0",
70
70
  "@sentry/node": "11.16.0",
71
71
  "@sentry/server-utils": "11.16.0",
@@ -109,9 +109,9 @@
109
109
  "@emnapi/core": "^1.10.0",
110
110
  "@emnapi/runtime": "^1.10.0",
111
111
  "@hono/node-server": "2.1.3",
112
- "@sentry/junior-github": "0.315.0",
113
- "@sentry/junior-notion": "0.315.0",
114
- "@sentry/junior-sentry": "0.315.0",
112
+ "@sentry/junior-github": "0.316.0",
113
+ "@sentry/junior-notion": "0.316.0",
114
+ "@sentry/junior-sentry": "0.316.0",
115
115
  "@sentry/junior-testing": "0.0.0",
116
116
  "@types/node": "^24.19.2",
117
117
  "@types/pg": "^8.15.6",
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: jr-rpc
3
- description: Manage low-level config and plugin introspection flows via jr-rpc bash commands. Use only when the user explicitly asks to read or update provider defaults/config or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.
3
+ description: Read low-level config and list installed plugins via jr-rpc bash commands. Use only when the user explicitly asks to read provider defaults/config or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.
4
4
  allowed-tools: bash
5
5
  ---
6
6
 
7
7
  # jr-rpc
8
8
 
9
- Manage low-level config and plugin introspection flows for the current agent turn.
9
+ Read low-level config and list installed plugins for the current agent turn.
10
10
 
11
11
  ## Plugins
12
12
 
@@ -18,13 +18,11 @@ Command syntax:
18
18
 
19
19
  ## Configuration
20
20
 
21
- `jr-rpc config get|set|unset|list` — read and write channel-scoped configuration values.
21
+ `jr-rpc config get|list` — read the configuration of the conversation's Slack channel and Space. A Space's value wins over the channel's. Change a value with the `setConfiguration` tool.
22
22
 
23
23
  Command syntax:
24
24
 
25
25
  - `jr-rpc config get <key>`
26
- - `jr-rpc config set <key> <value> [--json]`
27
- - `jr-rpc config unset <key>`
28
26
  - `jr-rpc config list [--prefix <value>]`
29
27
 
30
28
  Rules:
@@ -1,22 +0,0 @@
1
- // src/db/direct-url.ts
2
- const NEON_POOLER_SUFFIX = "-pooler";
3
- /**
4
- * Pick the database URL for work that needs its own Postgres session, such as
5
- * the `junior upgrade` migration lock or a `LISTEN`.
6
- *
7
- * A transaction-mode pooler, such as Neon's `-pooler` endpoint, shares one
8
- * server session between clients. It keeps a session advisory lock after the
9
- * client leaves, and it does not support `LISTEN`. For Neon, use the
10
- * `DATABASE_URL` host without the `-pooler` suffix. The direct endpoint takes
11
- * the same user, password, database, and parameters, so it always reaches the
12
- * database that `DATABASE_URL` names.
13
- */
14
- function readDirectDatabaseUrl(databaseUrl) {
15
- if (!URL.canParse(databaseUrl)) return databaseUrl;
16
- const url = new URL(databaseUrl);
17
- const [endpoint, ...domain] = url.hostname.split(".");
18
- if (!endpoint?.endsWith(NEON_POOLER_SUFFIX) || !url.hostname.endsWith(".neon.tech")) return databaseUrl;
19
- url.hostname = [endpoint.slice(0, -7), ...domain].join(".");
20
- return url.toString();
21
- }
22
- export { readDirectDatabaseUrl as t };
@@ -1,67 +0,0 @@
1
- import { b as readAgentConfig, dn as getConversationWorkState } from "./mailbox-turn-79Nv1JXv.js";
2
- import { n as getConversationEventStore, o as getSqlExecutor, uu as juniorConversationEvents } from "./db-DXTOYRzR.js";
3
- import { b as readChildConversationSender } from "./parent-result-Dg6P6roR.js";
4
- import { and, eq, inArray } from "drizzle-orm";
5
- // src/chat/agent-invocations/markers.ts
6
- const SUBAGENT_KIND = "agent";
7
- const SUBAGENT_STARTED_KEY_PREFIX = "subagent_started:";
8
- const SUBAGENT_ENDED_KEY_PREFIX = "subagent_ended:";
9
- /**
10
- * Record in the parent Conversation that a child agent got one task or
11
- * message. Write it before the input reaches the child's mailbox, so the
12
- * child cannot end first.
13
- */
14
- async function recordSubagentStartedMarker(start) {
15
- await getConversationEventStore().append(start.parentConversationId, [{
16
- idempotencyKey: `${SUBAGENT_STARTED_KEY_PREFIX}${start.markerId}`,
17
- data: {
18
- type: "subagent_started",
19
- subagentInvocationId: start.markerId,
20
- subagentKind: SUBAGENT_KIND,
21
- childConversationId: start.childConversationId,
22
- ...start.agentName ? { agentName: start.agentName } : void 0,
23
- parentToolCallId: start.parentToolCallId,
24
- task: start.input,
25
- ...start.title ? { title: start.title } : void 0,
26
- ...start.reasoningLevel ? { reasoningLevel: start.reasoningLevel } : void 0
27
- },
28
- createdAtMs: start.createdAtMs
29
- }]);
30
- }
31
- /**
32
- * Record in the parent Conversation how the work of a child agent ended.
33
- * Each parent message has its own `subagent_started` marker, named by the
34
- * message id, and each one that the child already took ends with `outcome`.
35
- * A parent message that still waits in the child's mailbox stays open,
36
- * because later work reads it, unless `includeWaiting` is set, as for a stop
37
- * that skips it. Write it before the child's result reaches the parent.
38
- */
39
- async function recordChildAgentEnded(childConversationId, outcome, options = {}) {
40
- if (!await readAgentConfig(childConversationId)) return;
41
- const work = await getConversationWorkState({
42
- conversationId: childConversationId,
43
- state: options.state
44
- });
45
- const running = new Set(work?.runningInboundMessageIds);
46
- const waiting = new Set(options.includeWaiting ? [] : (work?.messages ?? []).map((message) => message.inboundMessageId).filter((id) => !running.has(id)));
47
- const taken = (work?.execution.inboundMessageIds ?? []).filter((id) => !waiting.has(id));
48
- if (taken.length === 0) return;
49
- const sender = await readChildConversationSender(childConversationId);
50
- if (!sender) return;
51
- const keys = await getSqlExecutor().db().select({ idempotencyKey: juniorConversationEvents.idempotencyKey }).from(juniorConversationEvents).where(and(eq(juniorConversationEvents.conversationId, sender.parentConversationId), inArray(juniorConversationEvents.idempotencyKey, taken.flatMap((id) => [`${SUBAGENT_STARTED_KEY_PREFIX}${id}`, `${SUBAGENT_ENDED_KEY_PREFIX}${id}`]))));
52
- const found = new Set(keys.map((row) => row.idempotencyKey));
53
- const open = taken.filter((id) => found.has(`${SUBAGENT_STARTED_KEY_PREFIX}${id}`) && !found.has(`${SUBAGENT_ENDED_KEY_PREFIX}${id}`));
54
- if (open.length > 0) await appendSubagentEnded(sender.parentConversationId, open, outcome, options.nowMs ?? Date.now());
55
- }
56
- async function appendSubagentEnded(parentConversationId, markerIds, outcome, createdAtMs) {
57
- await getConversationEventStore().append(parentConversationId, markerIds.map((id) => ({
58
- idempotencyKey: `${SUBAGENT_ENDED_KEY_PREFIX}${id}`,
59
- data: {
60
- type: "subagent_ended",
61
- subagentInvocationId: id,
62
- outcome
63
- },
64
- createdAtMs
65
- })));
66
- }
67
- export { recordSubagentStartedMarker as n, recordChildAgentEnded as t };