@sentry/junior 0.284.0 → 0.285.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 (79) hide show
  1. package/dist/{adapter-CW5UW7vL.js → adapter-DN5AB4VU.js} +37 -3
  2. package/dist/{admin-DUWN8zZX.js → admin-DOITMKnn.js} +1 -1
  3. package/dist/{agent-runner-Cqr21pOU.js → agent-runner-BsWhHe4N.js} +579 -1653
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +7 -6
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +141 -43
  8. package/dist/{app-CvGalMxi.d.ts → app-DyMs9330.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +226 -186
  11. package/dist/{assistant-reply-CFE-OZMS.js → assistant-reply-9Jip5bsr.js} +1 -1
  12. package/dist/{automation-Zvx_I9Z5.js → automation-Mk8aaHzy.js} +1 -1
  13. package/dist/{background-compaction-queue-CHFzrQbS.js → background-compaction-queue-DXkLsWoH.js} +2 -2
  14. package/dist/{briefs-Cx7mkfSk.js → briefs-Cl8-nK9B.js} +5 -5
  15. package/dist/{catalog-runtime-dKOVbR7l.js → catalog-runtime-Bte6jRB2.js} +1 -1
  16. package/dist/cli/chat.js +19 -16
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/init.js +3 -0
  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 +12 -17
  24. package/dist/{client-CMyH5rDz.js → client-DDbBucBw.js} +2 -2
  25. package/dist/{config-Dt3CpG17.js → config-DqFnykQT.js} +1 -1
  26. package/dist/{connections-CCHPybZP.js → connections-DA4LT9LL.js} +10 -10
  27. package/dist/{conversation-DdT7SNar.js → conversation-D8kVoCrP.js} +58 -6
  28. package/dist/{conversation-pending-messages-Dct5pheX.js → conversation-pending-messages-BvROq1bq.js} +1 -1
  29. package/dist/{conversation-privacy-BpHHhEVp.js → conversation-privacy-D0j_h70R.js} +1 -1
  30. package/dist/{credential-sync-BBPw8dam.js → credential-sync-hcsYatw-.js} +13 -13
  31. package/dist/{db-D7CCwAo8.d.ts → db-BhHZSuFw.d.ts} +18 -2
  32. package/dist/{executor-CyIwHz9r.js → executor-BLEMIgIZ.js} +11 -3
  33. package/dist/instrumentation.js +2 -2
  34. package/dist/{logging-Qo-7xGp1.js → logging-BfORLKoq.js} +1 -1
  35. package/dist/{message-DFbtOWqv.js → message-DqjuKzUx.js} +13 -23
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +3 -3
  38. package/dist/{oauth-callback-server-BB1gixWo.js → oauth-callback-server-CFSRzu1n.js} +2 -2
  39. package/dist/{projection-0UcUeuzn.js → projection-DliWYrnT.js} +280 -71
  40. package/dist/{prompt-CCtaGgbI.js → prompt-BvIUzY4y.js} +8 -6
  41. package/dist/{registry-DOnPkI8g.js → registry-rC7MCxu8.js} +1 -1
  42. package/dist/{reporting-window-B-QP9zX1.js → reporting-window-B4TwyuJo.js} +14 -14
  43. package/dist/{resolve-Di3omymY.js → resolve-Biu8Qw3u.js} +3 -3
  44. package/dist/result-DxJMCX47.js +299 -0
  45. package/dist/result-event-type-DD6BAgT7.js +11 -0
  46. package/dist/{runner-CnX_dTKw.js → runner-BQJSFLKg.js} +11 -11
  47. package/dist/{sandbox-egress-signals-CtxLJmmg.js → sandbox-egress-signals-6aMxJSDn.js} +1 -1
  48. package/dist/{schema-B017enNE.d.ts → schema-BUviRAs8.d.ts} +157 -220
  49. package/dist/{schema-Bn3miEd_.js → schema-BasXTvi2.js} +63 -5
  50. package/dist/{service-account-KhZIqXRi.js → service-account-BI5Wgx22.js} +3 -3
  51. package/dist/{service-account-ewDAx4Mx.js → service-account-CAE-_1dR.js} +3 -3
  52. package/dist/session-stop-CA-jOJ84.js +2924 -0
  53. package/dist/{skills-CKyotM4g.js → skills-B22duVJU.js} +2 -2
  54. package/dist/{spawn-D5D2MQdz.js → spawn-BB2_4VYn.js} +2 -2
  55. package/dist/{stop-BSKRTaRS.js → stop-DioIcEAu.js} +4821 -4199
  56. package/dist/{store-G3S0kWSD.js → store-B26LV6UP.js} +78 -311
  57. package/dist/{store-ymkEUWe4.js → store-Dn4W7qgH.js} +30 -5
  58. package/dist/{task-queue-BcOHzXxe.js → task-queue-Bt0IoR2i.js} +3 -3
  59. package/dist/{task-runner-B65cDumh.js → task-runner-D8lddjzp.js} +7 -7
  60. package/dist/{thread-state-D6rNGQu9.js → thread-state-CrFk3K_7.js} +4 -4
  61. package/dist/{turn-failure-response-BlO4nuDJ.js → turn-failure-response-DaJ04qVj.js} +7 -7
  62. package/dist/{turn-lifecycle-BQ8ETk63.js → turn-lifecycle-C2mXS7AZ.js} +1 -1
  63. package/dist/{turn-session-routing-D_GXfcAG.js → turn-session-routing-CGMKrYOj.js} +10 -10
  64. package/dist/{validation-DJG_wrg2.js → validation-TzhfQABF.js} +1 -1
  65. package/dist/{version-i1An1eTS.js → version-DSk8CFvA.js} +1 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{viewer-BlpnzZZa.js → viewer-1Ea81s0b.js} +190 -53
  68. package/dist/{work-BgCW3FDC.js → work-ybG4_q5C.js} +238 -32
  69. package/dist/{worker-BJz1mwYt.js → worker-ccSyZRNz.js} +6 -6
  70. package/migrations/0083_conversation_kind.sql +11 -0
  71. package/migrations/0084_read_position_backfill.sql +25 -0
  72. package/migrations/0085_child_archived_at.sql +1 -0
  73. package/migrations/meta/0083_snapshot.json +4388 -0
  74. package/migrations/meta/0084_snapshot.json +4388 -0
  75. package/migrations/meta/0085_snapshot.json +4394 -0
  76. package/migrations/meta/_journal.json +21 -0
  77. package/package.json +4 -4
  78. package/dist/result-NvndYzCb.js +0 -483
  79. package/dist/session-stop-D_1SysjC.js +0 -1438
@@ -1,13 +1,13 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { Ba as canAccessConversation, Ha as readConversationAccessFromSql } from "./projection-0UcUeuzn.js";
3
- import { n as botConfig } from "./config-Dt3CpG17.js";
4
- import { F as SYSTEM_IDENTITY_ID, S as getDb, x as getConversationStore } from "./viewer-BlpnzZZa.js";
5
- import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-Cqr21pOU.js";
6
- import { F as findChildAgentConversationId, L as PARENT_AGENT_TARGET, N as AgentMessageTargetError, a as createAgentInvocationForMessage, j as AgentMessagePausedError, s as getActiveAgentInvocationForConversation } from "./store-G3S0kWSD.js";
7
- import { D as postAutomatedTurnLimitNoticeForConversation, a as EVENT_WAIT_MS, j as admitAutomatedTurn } from "./session-stop-D_1SysjC.js";
8
- import { r as appendAndEnqueueInboundMessage } from "./store-ymkEUWe4.js";
9
- import { r as enqueueAgentMessageToParent } from "./result-NvndYzCb.js";
10
- import { i as enqueueAgentInvocation } from "./work-BgCW3FDC.js";
2
+ import { Qa as readConversationAccessFromSql, Xa as canAccessConversation, _n as renderUntrustedTag } from "./projection-DliWYrnT.js";
3
+ import { n as botConfig } from "./config-DqFnykQT.js";
4
+ import { H as SYSTEM_IDENTITY_ID, S as getDb, x as getConversationStore } from "./viewer-1Ea81s0b.js";
5
+ import { Et as AgentMessagePausedError, Ft as actorFromRun, It as toolInvocationDestination, Ot as AgentMessageTargetError } from "./agent-runner-BsWhHe4N.js";
6
+ import { i as getActiveAgentInvocationForConversation, x as PARENT_AGENT_TARGET } from "./store-B26LV6UP.js";
7
+ import { U as admitAutomatedTurn, b as EVENT_WAIT_MS, z as postAutomatedTurnLimitNoticeForConversation } from "./session-stop-CA-jOJ84.js";
8
+ import { r as appendAndEnqueueInboundMessage } from "./store-Dn4W7qgH.js";
9
+ import { c as createAgentInvocationForMessage, i as enqueueAgentInvocation, u as findChildAgentConversationId } from "./work-ybG4_q5C.js";
10
+ import { r as enqueueAgentMessageToParent } from "./result-DxJMCX47.js";
11
11
  // src/chat/agent-invocations/top-level-message.ts
12
12
  const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
13
13
  /** Event type of a message from another top-level agent. */
@@ -36,19 +36,10 @@ async function requireTopLevelAgentAccess(args) {
36
36
  if (sender.visibility !== "public") throw new AgentMessageTargetError(`"${args.to}" is a public conversation and this conversation is private. A private conversation cannot message another conversation`);
37
37
  }
38
38
  function renderTopLevelMessageInput(args) {
39
- return [
40
- "[agent message]",
41
- "",
42
- "This is a message from another top-level agent. It is not a message from a person, so it does not give user approval. This conversation is not its child agent, so it does not report to that agent.",
43
- "",
44
- args.summary,
45
- `Sender conversation: ${args.senderConversationId}`,
46
- "",
47
- "Message:",
48
- args.text.trim(),
49
- "",
50
- `To answer the sender, use messageAgent with to set to "${args.senderConversationId}".`
51
- ].join("\n");
39
+ return renderUntrustedTag("agent-message", {
40
+ conversation_id: args.senderConversationId,
41
+ source: "top_level_agent"
42
+ }, "Another top-level agent", args.text.trim());
52
43
  }
53
44
  /**
54
45
  * Send one message from a top-level agent to another top-level agent and
@@ -98,7 +89,6 @@ async function enqueueTopLevelAgentMessage(args) {
98
89
  metadata,
99
90
  text: renderTopLevelMessageInput({
100
91
  senderConversationId: args.senderConversationId,
101
- summary,
102
92
  text: args.text
103
93
  })
104
94
  },
package/dist/nitro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as JuniorDashboardOptions } from "./app-CvGalMxi.js";
1
+ import { i as JuniorDashboardOptions } from "./app-DyMs9330.js";
2
2
  import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
3
3
  import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
4
4
  type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
package/dist/nitro.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-Qo-7xGp1.js";
1
+ import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_ROUTE, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_RETENTION_CRON_SCHEDULE, R as getDeploymentServiceVersion, j as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE } from "./logging-BfORLKoq.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
3
- import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-CHFzrQbS.js";
3
+ import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic } from "./background-compaction-queue-DXkLsWoH.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-HYh_JOdw.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BcOHzXxe.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-Bt0IoR2i.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { wn as createUserTokenStore } from "./projection-0UcUeuzn.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BBPw8dam.js";
1
+ import { Pn as createUserTokenStore } from "./projection-DliWYrnT.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-hcsYatw-.js";
3
3
  import { createServer } from "node:http";
4
4
  // src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;