@sentry/junior 0.277.0 → 0.278.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 (73) hide show
  1. package/dist/{adapter-BtfBHVM5.js → adapter-BXosqTMx.js} +1 -1
  2. package/dist/{admin-DzAKbZsm.js → admin-Thn7NfOi.js} +1 -1
  3. package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-D7c4BQGc.js} +1 -1
  4. package/dist/{agent-runner-BsYAbniN.js → agent-runner-DE-43MPb.js} +268 -835
  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 +38 -76
  9. package/dist/{app-BjEQwNVP.d.ts → app-CHNS-AX2.d.ts} +5 -26
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +30 -31
  12. package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-pauL6qyn.js} +28 -6
  13. package/dist/{automation-Cql9h2vO.js → automation-DphoTRYl.js} +1 -1
  14. package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CAL4A2y7.js} +2 -2
  15. package/dist/{briefs-BBo0Eimi.js → briefs-4fyPJJEu.js} +5 -6
  16. package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BoOb5oUv.js} +1 -1
  17. package/dist/cli/chat.js +14 -14
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/init.js +0 -2
  20. package/dist/cli/main.js +3 -3
  21. package/dist/cli/plugins.js +4 -4
  22. package/dist/cli/snapshot-create.js +4 -4
  23. package/dist/cli/upgrade.d.ts +1 -1
  24. package/dist/cli/upgrade.js +3 -3
  25. package/dist/{client-DZ8HTnYH.js → client-v_OVYuHZ.js} +3 -3
  26. package/dist/{config-D5uUtrCP.js → config-o2jLRY5J.js} +24 -99
  27. package/dist/{connections-Do24CGP5.js → connections-RC4NXAx8.js} +10 -10
  28. package/dist/{conversation-SsASlWL7.js → conversation-CZfyQvdm.js} +51 -104
  29. package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-C23M8KaD.js} +1 -1
  30. package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dd0WyNfF.js} +13 -13
  31. package/dist/{db-DEiwO5Sh.d.ts → db-BjLzDJCt.d.ts} +1 -1
  32. package/dist/{executor-hPfFTH0C.js → executor-CJfsD0VX.js} +3 -3
  33. package/dist/instrumentation.js +2 -2
  34. package/dist/{logging-cI3T1dNc.js → logging-dFaXvBRK.js} +1 -1
  35. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  36. package/dist/{message-DBwsAl7O.js → message-DSwxIZet.js} +22 -28
  37. package/dist/nitro.d.ts +1 -1
  38. package/dist/nitro.js +3 -3
  39. package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-CDcuCp27.js} +2 -2
  40. package/dist/{projection-7EFIqzuj.js → projection-BTge9wrH.js} +106 -108
  41. package/dist/{prompt-oRfGsxd3.js → prompt-DDtCnlHP.js} +1 -1
  42. package/dist/{registry-Bzefs7kT.js → registry-Cp6CNmtP.js} +1 -1
  43. package/dist/{resolve-CuiEY_2u.js → resolve-B_7h2cXx.js} +3 -3
  44. package/dist/{result-DrcUtFaD.js → result-5LBEfnLX.js} +9 -9
  45. package/dist/{runner-CDE4CZ52.js → runner-C5-S4oq-.js} +11 -11
  46. package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
  47. package/dist/{schema-Dzi3lkdP.js → schema-B5fpczDw.js} +67 -4
  48. package/dist/{schema-B6N2nc6v.d.ts → schema-Tr484cCC.d.ts} +909 -687
  49. package/dist/{service-account-DIyz_9Uh.js → service-account-BkEv20zf.js} +3 -3
  50. package/dist/{service-account-BOz9pqOE.js → service-account-Cq_dLrZJ.js} +3 -3
  51. package/dist/{session-stop-0juF_BP0.js → session-stop-BsS4qFS2.js} +22 -15
  52. package/dist/{skills-CU5Is147.js → skills-M0BA0_s6.js} +2 -2
  53. package/dist/{spawn-6C9jHH4b.js → spawn-BO3y7H4d.js} +2 -3
  54. package/dist/{stop-6FVG1c-r.js → stop-D5R82Wla.js} +255 -64
  55. package/dist/{store-DtHZviJ1.js → store-BGBzQWNf.js} +9 -16
  56. package/dist/{store-DKs1WwdB.js → store-CGJZTEVz.js} +3 -3
  57. package/dist/{task-queue-CcvFQE_p.js → task-queue-UD27ei2U.js} +3 -3
  58. package/dist/{task-runner-DBkNejLl.js → task-runner-noxjOjkM.js} +7 -7
  59. package/dist/{thread-state-4hjEIkIq.js → thread-state-BSu6rM6p.js} +4 -4
  60. package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-wahwyPrZ.js} +7 -7
  61. package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-Bo4Trccw.js} +1 -1
  62. package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-DnSaaEpn.js} +10 -10
  63. package/dist/{validation-BUFmsnKs.js → validation-B9-8iKyw.js} +1 -1
  64. package/dist/{version-DJTk0ZCE.js → version-C7HejFP2.js} +1 -1
  65. package/dist/version.js +1 -1
  66. package/dist/{viewer-WY0RYE4E.js → viewer-DLXajQZE.js} +52 -21
  67. package/dist/{work-C5AKvXJV.js → work-DRGSlfia.js} +12 -17
  68. package/dist/{worker-BcYVDVUy.js → worker-BGh5Dwc6.js} +6 -6
  69. package/migrations/meta/0075_snapshot.json +98 -314
  70. package/migrations/meta/0076_snapshot.json +98 -314
  71. package/migrations/meta/_journal.json +1 -1
  72. package/package.json +4 -4
  73. package/dist/model-profile-B998sjVd.js +0 -67
@@ -1,7 +1,7 @@
1
- import { W as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-cI3T1dNc.js";
2
- import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-Bzefs7kT.js";
1
+ import { W as isRecord, b as setSpanAttributes, h as logWarn } from "./logging-dFaXvBRK.js";
2
+ import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-Cp6CNmtP.js";
3
3
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
4
- import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
4
+ import { r as getStateAdapter } from "./adapter-BXosqTMx.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DE-F4Awo.js";
2
- import { t as disconnectStateAdapter } from "./adapter-BtfBHVM5.js";
3
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DIyz_9Uh.js";
1
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-BoOb5oUv.js";
2
+ import { t as disconnectStateAdapter } from "./adapter-BXosqTMx.js";
3
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-BkEv20zf.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import { createServer } from "node:http";
6
6
  // src/cli/service-account.ts
@@ -1,17 +1,17 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { Bn as getPlugins, Br as verifyTimerWatchCredentialSubject, Hr as getDashboardConversationLink, I as normalizeConversationText, In as getPluginSlackConversationLink, Mi as postSlackMessage, Si as normalizeSlackReplyMarkdown, Ur as getDashboardObjectIconLink, Vr as JUNIOR_THREAD_STATE_TTL_MS, an as normalizeToolNameFromResult, bi as escapeSlackMrkdwnText, en as isAssistantMessage, in as isToolResultMessage, qa as buildSentryConversationUrl, qr as ToolInputError, rn as isToolResultError, xi as formatSlackLink } from "./projection-7EFIqzuj.js";
3
- import { n as botConfig } from "./config-D5uUtrCP.js";
4
- import { h as logWarn, m as logInfo, p as logException } from "./logging-cI3T1dNc.js";
5
- import { C as getSqlExecutor, G as nextDetailVersion, M as SYSTEM_IDENTITY_ID, x as getConversationStore } from "./viewer-WY0RYE4E.js";
6
- import { s as juniorConversations } from "./agent-invocations-Crs3XHhg.js";
7
- import "./executor-hPfFTH0C.js";
8
- import { h as credentialSubjectSchema } from "./registry-Bzefs7kT.js";
9
- import { r as getStateAdapter } from "./adapter-BtfBHVM5.js";
10
- import { W as readMessageAttachments } from "./conversation-SsASlWL7.js";
11
- import { r as EVENT_AUTHOR_ID } from "./prompt-oRfGsxd3.js";
12
- import { r as sanitizeAssistantText } from "./assistant-reply-NebRGG4G.js";
13
- import { r as appendAndEnqueueInboundMessage } from "./store-DKs1WwdB.js";
14
- import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-jnLOfBHJ.js";
2
+ import { Br as getDashboardObjectIconLink, Ln as getPlugins, Lr as verifyTimerWatchCredentialSubject, N as normalizeConversationText, Nn as getPluginSlackConversationLink, Rr as JUNIOR_THREAD_STATE_TTL_MS, Wr as ToolInputError, Zt as isAssistantMessage, _i as escapeSlackMrkdwnText, en as isToolResultError, ki as postSlackMessage, nn as normalizeToolNameFromResult, qa as buildSentryConversationUrl, tn as isToolResultMessage, vi as formatSlackLink, yi as normalizeSlackReplyMarkdown, zr as getDashboardConversationLink } from "./projection-BTge9wrH.js";
3
+ import { n as botConfig } from "./config-o2jLRY5J.js";
4
+ import { h as logWarn, m as logInfo, p as logException } from "./logging-dFaXvBRK.js";
5
+ import { C as getSqlExecutor, F as SYSTEM_IDENTITY_ID, J as nextDetailVersion, x as getConversationStore } from "./viewer-DLXajQZE.js";
6
+ import { s as juniorConversations } from "./agent-invocations-D7c4BQGc.js";
7
+ import "./executor-CJfsD0VX.js";
8
+ import { h as credentialSubjectSchema } from "./registry-Cp6CNmtP.js";
9
+ import { r as getStateAdapter } from "./adapter-BXosqTMx.js";
10
+ import { R as readMessageAttachments } from "./conversation-CZfyQvdm.js";
11
+ import { r as EVENT_AUTHOR_ID } from "./prompt-DDtCnlHP.js";
12
+ import { a as QUIET_MARKER, r as sanitizeAssistantText } from "./assistant-reply-pauL6qyn.js";
13
+ import { r as appendAndEnqueueInboundMessage } from "./store-CGJZTEVz.js";
14
+ import { dt as CORE_EVENT_NAMESPACE, ht as eventGuidance, mt as eventCatalogEntry } from "./turn-session-routing-DnSaaEpn.js";
15
15
  import { z } from "zod";
16
16
  import { eq, inArray } from "drizzle-orm";
17
17
  import { agentEventKeys, eventMatchFieldsSchema, objectFactFields, objectPresentation, objectTypeSchema } from "@sentry/junior-plugin-api";
@@ -715,10 +715,17 @@ async function maybePostAutomatedTurnLimitNotice(args) {
715
715
  */
716
716
  /**
717
717
  * Shared closing lines. Automations pass outcomes and end with a declared
718
- * result. Watches follow the Conversation's reply rules.
718
+ * result. Watches follow the Conversation's reply rules. A Watch reply goes
719
+ * only to the Conversation, so a question asked in the provider must also get
720
+ * its answer there. Watch instructions often say to stay silent, so this rule
721
+ * sits in the contract, not in plugin guidance.
719
722
  */
720
723
  function replyContractLines(outcomes) {
721
- if (!outcomes) return ["When you reply, follow any reply format in the instructions."];
724
+ if (!outcomes) return [
725
+ "When an Event asks you a question, answer it where it was asked, with that provider's tool. Then reply with the answer and a link to it.",
726
+ "When you reply, follow any reply format in the instructions.",
727
+ `When the outcome needs nobody's attention, such as a routine fix that worked or feedback that you handled, end the reply with exactly ${QUIET_MARKER}. The reply stays in the Conversation but notifies nobody. Do not use it when a person must decide or act, or when something failed.`
728
+ ];
722
729
  return [`End with \`${FINISH_AUTOMATION_RUN_TOOL_NAME}\`.`];
723
730
  }
724
731
  function verifiedDetailsJson(details) {
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { h as logWarn } from "./logging-cI3T1dNc.js";
2
+ import { h as logWarn } from "./logging-dFaXvBRK.js";
3
3
  import { s as skillRoots } from "./package-discovery-DJBompdd.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DE-F4Awo.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-BoOb5oUv.js";
5
5
  import path from "node:path";
6
6
  import { z } from "zod";
7
7
  import fs from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-BsYAbniN.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-C5AKvXJV.js";
2
+ import { Ft as toolInvocationDestination, Pt as actorFromRun } from "./agent-runner-DE-43MPb.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-DRGSlfia.js";
4
4
  // src/chat/agent-invocations/spawn.ts
5
5
  var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
6
6
  /** Bind a Run's Actor and credentials to new Agent invocations. */
@@ -18,7 +18,6 @@ function bindSpawnAgent(run, options) {
18
18
  destination: toolInvocationDestination(run),
19
19
  idempotencyKey: `${run.turnId}:${call.toolCallId}`,
20
20
  input: input.task,
21
- modelProfile: input.profile,
22
21
  parentConversationId: run.conversationId,
23
22
  parentToolCallId: call.toolCallId,
24
23
  ...input.reasoningLevel ? { reasoningLevel: input.reasoningLevel } : void 0,