@sentry/junior 0.262.0 → 0.264.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.
- package/dist/{adapter-t-Y9RHML.js → adapter-BIbMSKlG.js} +1 -1
- package/dist/{admin-BCqeFndQ.js → admin-D4d0HXax.js} +1 -1
- package/dist/{agent-hooks-9q2zdKHL.js → agent-hooks-D_PbluRX.js} +73 -32
- package/dist/{agent-runner-Cx6NO5LE.js → agent-runner-CvRxb09K.js} +161 -778
- package/dist/api/schema.d.ts +5 -1
- package/dist/api/schema.js +3 -3
- package/dist/api.js +28 -27
- package/dist/{app-Bo0kB987.d.ts → app-Buc5gIWz.d.ts} +5 -0
- package/dist/app.d.ts +1 -1
- package/dist/app.js +63 -42
- package/dist/{assistant-reply-B2qUBAwL.js → assistant-reply-BcJj_ORj.js} +1 -1
- package/dist/{automation-DrpcA-SX.js → automation-CWX0qL8U.js} +1 -1
- package/dist/{briefs-DsGH2Vym.js → briefs-BFfIE5N6.js} +4 -4
- package/dist/{catalog-runtime-CfwKT0sn.js → catalog-runtime-R53MWcMi.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DpfjZgNk.js → client-DpOwh_zX.js} +2 -2
- package/dist/{config-BiCtNiu5.js → config-BxPrFVJP.js} +2 -2
- package/dist/{connections-D9IKbfk-.js → connections-BnTM1nRf.js} +10 -10
- package/dist/{conversation-CvuKJ3tA.js → conversation-B0baEwoA.js} +2 -0
- package/dist/{conversation-privacy-CBUI0frD.js → conversation-privacy-ueJ6i-t9.js} +1 -1
- package/dist/{credential-sync-Bu6ZOuOk.js → credential-sync-DeDkof_D.js} +14 -14
- package/dist/{executor-O8xqLDN6.js → executor-D3WIS4vl.js} +2 -2
- package/dist/{images-AM1exvU0.js → images-5VNK_yYC.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DmarAQGI.js → job-queue-BYHonCAH.js} +1 -1
- package/dist/{logging-dZN1Bvtu.js → logging-DNQqsQ57.js} +1 -1
- package/dist/{message-C_g2S8kv.js → message-CDTJISxL.js} +4 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-DvvOvr4q.js → oauth-callback-server-Bk4rbLOs.js} +2 -2
- package/dist/{profile-BP2N5uDY.js → profile-ieODOp4u.js} +3 -3
- package/dist/{prompt-DeVax2qO.js → prompt-CxatQVaj.js} +1 -1
- package/dist/{registry-BUje_knT.js → registry-CfdUEk4N.js} +1 -1
- package/dist/{resolve-DftZiYNU.js → resolve-BXShI336.js} +3 -3
- package/dist/{result-CRMRT9CE.js → result-R35jcahx.js} +8 -7
- package/dist/{runner-4mmL2Pt1.js → runner-IC4Drh3Y.js} +11 -11
- package/dist/{sandbox-egress-signals-1ysv0z5A.js → sandbox-egress-signals-C4RIfjb8.js} +1 -1
- package/dist/{schema-XuTZukI9.js → schema-QidbykYl.js} +2 -2
- package/dist/{service-account-Del2I_x3.js → service-account-DJSRo2cL.js} +3 -3
- package/dist/{service-account-B1sH3P7d.js → service-account-DifohWyX.js} +3 -3
- package/dist/{session-stop-ZuyOHxdK.js → session-stop-B9RRGC-P.js} +13 -13
- package/dist/{skills-lPeepA2b.js → skills-DVJmS_ZP.js} +2 -2
- package/dist/{spawn-DovpdlrW.js → spawn-DkVYGfSY.js} +2 -2
- package/dist/store-BvolNnx4.js +697 -0
- package/dist/{store-dZynGGFW.js → store-C_mHwAnR.js} +18 -9
- package/dist/{task-queue-CmMCtzHO.js → task-queue-BcEyPhtX.js} +3 -3
- package/dist/{task-runner-BRgJ5e0s.js → task-runner-CiQj5M_9.js} +10 -10
- package/dist/{tasks-Bh2qYaed.js → tasks-OgXmReUv.js} +42 -53
- package/dist/{thread-state-DA37FsAT.js → thread-state-XFvpWXE9.js} +5 -5
- package/dist/{turn-failure-response-BLcscQ-f.js → turn-failure-response-BjBAtnVt.js} +46 -20
- package/dist/{turn-lifecycle-D0e887FM.js → turn-lifecycle-nvKL2rul.js} +1 -1
- package/dist/{turn-session-routing-DdbSbJS6.js → turn-session-routing-DEMxHySb.js} +1 -1
- package/dist/{validation-DtcovXqq.js → validation-XOFldwvE.js} +1 -1
- package/dist/{version-JcDaJ75p.js → version-C9f5hdHD.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-oMTUVAcR.js → viewer-BuPwzOC9.js} +3 -3
- package/dist/{web-input-FQ5wgqYn.js → web-input-4t7TYLsY.js} +96 -35
- package/dist/{work-BiIKfayl.js → work-C_aF6JN5.js} +10 -9
- package/dist/{worker-BZ7l75NM.js → worker-DR633sA-.js} +8 -6
- package/package.json +5 -5
|
@@ -530,6 +530,8 @@ const conversationReportMessageEventDataSchema = z.object({
|
|
|
530
530
|
]),
|
|
531
531
|
source: z.enum(["slack", "web"]).optional(),
|
|
532
532
|
actorIdentity: actorIdentitySchema.optional(),
|
|
533
|
+
/** Agent invocation whose input this is. An agent wrote it, not a person. */
|
|
534
|
+
agentInvocationId: z.string().min(1).optional(),
|
|
533
535
|
eventType: z.string().min(1).optional(),
|
|
534
536
|
eventObjectType: objectTypeSchema.optional(),
|
|
535
537
|
explicitMention: z.boolean().optional(),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as escapeXml } from "./client-
|
|
3
|
-
import { L as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-
|
|
4
|
-
import { a as getRuntimeMetadata, n as botConfig } from "./config-
|
|
1
|
+
import { $n as resolvePluginOAuthAccount, Fn as parseOAuthStatePayload, H as recordAuthorizationCompleted, In as resolveBaseUrl, Nt as getTurnRecord, Pn as formatProviderLabel, Tt as getConversationPendingAuth, V as recordAuthenticationLinked, bn as createUserTokenStore, qn as postSlackMessage } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { p as escapeXml } from "./client-DpOwh_zX.js";
|
|
3
|
+
import { L as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-DNQqsQ57.js";
|
|
4
|
+
import { a as getRuntimeMetadata, n as botConfig } from "./config-BxPrFVJP.js";
|
|
5
5
|
import { f as parseSlackUserId } from "./actor-tlxzqaRe.js";
|
|
6
|
-
import { F as upsertIdentity, I as upsertLinkedIdentity, b as identityFromActor, f as getSqlExecutor, j as findUserByVerifiedEmails } from "./viewer-
|
|
6
|
+
import { F as upsertIdentity, I as upsertLinkedIdentity, b as identityFromActor, f as getSqlExecutor, j as findUserByVerifiedEmails } from "./viewer-BuPwzOC9.js";
|
|
7
7
|
import { i as homeDir } from "./package-discovery-DJBompdd.js";
|
|
8
|
-
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { t as discoverSkills } from "./skills-
|
|
11
|
-
import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, v as lookupSlackUserProfile } from "./agent-runner-
|
|
12
|
-
import { ct as getSlackClient } from "./agent-hooks-
|
|
13
|
-
import { a as acquireActiveLock, r as getStateAdapter } from "./adapter-
|
|
14
|
-
import { _ as getMcpProviderErrorAttributes } from "./service-account-
|
|
15
|
-
import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-
|
|
16
|
-
import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-
|
|
8
|
+
import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-CfdUEk4N.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
10
|
+
import { t as discoverSkills } from "./skills-DVJmS_ZP.js";
|
|
11
|
+
import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, v as lookupSlackUserProfile } from "./agent-runner-CvRxb09K.js";
|
|
12
|
+
import { ct as getSlackClient } from "./agent-hooks-D_PbluRX.js";
|
|
13
|
+
import { a as acquireActiveLock, r as getStateAdapter } from "./adapter-BIbMSKlG.js";
|
|
14
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-DJSRo2cL.js";
|
|
15
|
+
import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-XFvpWXE9.js";
|
|
16
|
+
import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-BnTM1nRf.js";
|
|
17
17
|
import { n as relayLocalOAuthCallback } from "./oauth-relay-CTygMkNx.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as logException } from "./logging-
|
|
1
|
+
import { f as logException } from "./logging-DNQqsQ57.js";
|
|
2
2
|
import { g as startSpanManual } from "./sentry-BBUlHih9.js";
|
|
3
|
-
import "./config-
|
|
3
|
+
import "./config-BxPrFVJP.js";
|
|
4
4
|
import { a as juniorAgentInvocations, c as juniorIdentities, d as juniorDestinations, f as timestamptz, i as juniorAgentBindings, l as juniorUsers, s as juniorConversations } from "./agent-invocations-CxKldAeB.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { sql } from "drizzle-orm";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { f as getSqlExecutor } from "./viewer-
|
|
3
|
-
import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-
|
|
4
|
-
import { H as detectImageMediaType } from "./conversation-
|
|
2
|
+
import { f as getSqlExecutor } from "./viewer-BuPwzOC9.js";
|
|
3
|
+
import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-CvRxb09K.js";
|
|
4
|
+
import { H as detectImageMediaType } from "./conversation-B0baEwoA.js";
|
|
5
5
|
// src/chat/attachments/images.ts
|
|
6
6
|
var images_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
decodeInputImages: () => decodeInputImages,
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as getDeploymentTelemetryAttributes, P as getDeploymentServiceVersion } from "./logging-
|
|
1
|
+
import { F as getDeploymentTelemetryAttributes, P as getDeploymentServiceVersion } from "./logging-DNQqsQ57.js";
|
|
2
2
|
import { _ as vercelAIIntegration, a as getClient, b as withStreamedSpan, c as init, o as getGlobalScope } from "./sentry-BBUlHih9.js";
|
|
3
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-ueJ6i-t9.js";
|
|
4
4
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
|
|
5
5
|
// src/chat/sentry-payload-filter.ts
|
|
6
6
|
const PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
1
|
+
import { i as getChatConfig } from "./config-BxPrFVJP.js";
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException, y as withScope } from "./sentry-BBUlHih9.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-C9f5hdHD.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { $ as toolInvocationDestination, Q as actorFromRun } from "./agent-runner-CvRxb09K.js";
|
|
3
|
+
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-BvolNnx4.js";
|
|
4
|
+
import { n as enqueueAgentMessageToParent } from "./result-R35jcahx.js";
|
|
5
|
+
import { r as enqueueAgentInvocation } from "./work-C_aF6JN5.js";
|
|
5
6
|
// src/chat/agent-invocations/message.ts
|
|
6
7
|
var message_exports = /* @__PURE__ */ __exportAll({ bindMessageAgent: () => bindMessageAgent });
|
|
7
8
|
/**
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { r as JuniorDashboardOptions } from "./app-Buc5gIWz.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
export type JuniorNitroDashboardOptions = JuniorDashboardOptions;
|
|
4
4
|
export interface JuniorPluginModuleReference {
|
package/dist/nitro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as JUNIOR_RETENTION_CRON_SCHEDULE, D as JUNIOR_HEARTBEAT_CRON_SCHEDULE, E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_ROUTE, j as JUNIOR_RETENTION_ROUTE, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_RETENTION_CRON_SCHEDULE, D as JUNIOR_HEARTBEAT_CRON_SCHEDULE, E as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, M as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_HEARTBEAT_ROUTE, j as JUNIOR_RETENTION_ROUTE, k as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE } from "./logging-DNQqsQ57.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJBompdd.js";
|
|
3
|
-
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
3
|
+
import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BYHonCAH.js";
|
|
4
4
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-DOm9Y6qI.js";
|
|
5
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BcEyPhtX.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 {
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { bn as createUserTokenStore } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DeDkof_D.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as toOptionalTrimmed } from "./client-
|
|
2
|
-
import { b as setSpanStatus, y as setSpanAttributes } from "./logging-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
1
|
+
import { C as toOptionalTrimmed } from "./client-DpOwh_zX.js";
|
|
2
|
+
import { b as setSpanStatus, y as setSpanAttributes } from "./logging-DNQqsQ57.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
// src/chat/sandbox/paths.ts
|
|
6
6
|
function normalizeWorkspaceRoot(input) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as parseBriefInput, K as briefOutcomeStatusSchema, q as conversationBriefSchema } from "./conversation-
|
|
1
|
+
import { J as parseBriefInput, K as briefOutcomeStatusSchema, q as conversationBriefSchema } from "./conversation-B0baEwoA.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
// src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as logWarn, p as logInfo, y as setSpanAttributes } from "./logging-
|
|
1
|
+
import { m as logWarn, p as logInfo, y as setSpanAttributes } from "./logging-DNQqsQ57.js";
|
|
2
2
|
import { a as isUserActor, o as parseActorUserId } from "./actor-tlxzqaRe.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DJBompdd.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as withSpan, y as setSpanAttributes } from "./logging-
|
|
2
|
-
import { r as getStateAdapter } from "./adapter-
|
|
3
|
-
import { C as SANDBOX_COMMAND_PATH, D as SANDBOX_WORKSPACE_ROOT, S as runNonInteractiveCommand, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, y as sleep } from "./profile-
|
|
1
|
+
import { T as withSpan, y as setSpanAttributes } from "./logging-DNQqsQ57.js";
|
|
2
|
+
import { r as getStateAdapter } from "./adapter-BIbMSKlG.js";
|
|
3
|
+
import { C as SANDBOX_COMMAND_PATH, D as SANDBOX_WORKSPACE_ROOT, S as runNonInteractiveCommand, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, y as sleep } from "./profile-ieODOp4u.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { FileSystem, Sandbox } from "@vercel/sandbox";
|
|
6
6
|
// src/chat/sandbox/resources.ts
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as getTurnRecord, Pt as listTurnSummaries } from "./tasks-OgXmReUv.js";
|
|
3
3
|
import { t as createActor } from "./actor-tlxzqaRe.js";
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import { r as
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CfdUEk4N.js";
|
|
5
|
+
import { W as listUnreportedSiblingAgents } from "./agent-runner-CvRxb09K.js";
|
|
6
|
+
import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-CxatQVaj.js";
|
|
7
|
+
import { C as markAgentInvocationParentMailboxAppended, _ as getLatestAgentInvocationForConversation, a as createAgentInvocationFromLatest, c as getAgentInvocation, d as getAgentInvocationIdForResult, l as getAgentInvocationIdForEvents, p as getAgentInvocationResultMessageId, u as getAgentInvocationIdForMessage, y as isTerminalAgentInvocation } from "./store-BvolNnx4.js";
|
|
8
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-B9RRGC-P.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-C_mHwAnR.js";
|
|
10
|
+
import { r as enqueueAgentInvocation } from "./work-C_aF6JN5.js";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { createEventSource, createLocalSource, createWebSource } from "@sentry/junior-plugin-api";
|
|
12
13
|
// src/chat/conversations/web-mailbox.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as logException, w as withLogContext, x as setTags } from "./logging-
|
|
3
|
-
import { c as getConversationEventStore, u as getConversationStore } from "./viewer-
|
|
4
|
-
import { f as credentialContextForActor } from "./registry-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
9
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
10
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-
|
|
11
|
-
import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-
|
|
1
|
+
import { A as commitAcceptedReply, F as loadProjection, H as recordAuthorizationCompleted, Ut as persistWithRetry, X as hydrateConversationMessages, Z as persistConversationMessages, at as buildConversationContext, dt as normalizeConversationText, ft as recordDeliveredAssistantMessage, kt as saveTurnCheckpoint, mt as upsertConversationMessage, ut as markConversationMessage, vt as authorizationId } from "./tasks-OgXmReUv.js";
|
|
2
|
+
import { f as logException, w as withLogContext, x as setTags } from "./logging-DNQqsQ57.js";
|
|
3
|
+
import { c as getConversationEventStore, u as getConversationStore } from "./viewer-BuPwzOC9.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-CfdUEk4N.js";
|
|
5
|
+
import { P as messageCardText } from "./conversation-B0baEwoA.js";
|
|
6
|
+
import { X as markTurnFailed, Z as startActiveTurn } from "./store-BvolNnx4.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-BcJj_ORj.js";
|
|
8
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CiQj5M_9.js";
|
|
9
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-nvKL2rul.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-XFvpWXE9.js";
|
|
11
|
+
import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-BjBAtnVt.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
14
14
|
// src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mn as sandboxEgressSignalsResponseSchema } from "./tasks-OgXmReUv.js";
|
|
2
2
|
// src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-CxKldAeB.js";
|
|
2
|
-
import { E as conversationUsageSchema, T as conversationSummaryReportSchema, j as conversationChildAgentTotalsSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-
|
|
3
|
-
import "./automation-
|
|
2
|
+
import { E as conversationUsageSchema, T as conversationSummaryReportSchema, j as conversationChildAgentTotalsSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-B0baEwoA.js";
|
|
3
|
+
import "./automation-CWX0qL8U.js";
|
|
4
4
|
import { a as fillUtcHours, c as sumUtcHoursIntoSixHours, i as fillUtcDays } from "./web-message-id-CJSUiksE.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { codeChangeStateSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as logWarn, y as setSpanAttributes, z as isRecord } from "./logging-
|
|
2
|
-
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-
|
|
3
|
-
import { i as MUTATION_LOCK_TTL_MS, o as fenceLock, r as getStateAdapter, s as withLock } from "./adapter-
|
|
1
|
+
import { m as logWarn, y as setSpanAttributes, z as isRecord } from "./logging-DNQqsQ57.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-CfdUEk4N.js";
|
|
3
|
+
import { i as MUTATION_LOCK_TTL_MS, o as fenceLock, r as getStateAdapter, s as withLock } from "./adapter-BIbMSKlG.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { UnauthorizedError, auth } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
-
import { t as disconnectStateAdapter } from "./adapter-
|
|
3
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
1
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-BIbMSKlG.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DJSRo2cL.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,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { $t as
|
|
3
|
-
import { f as logException, m as logWarn, p as logInfo } from "./logging-
|
|
4
|
-
import { n as botConfig } from "./config-
|
|
5
|
-
import { f as getSqlExecutor, u as getConversationStore } from "./viewer-
|
|
2
|
+
import { $t as isToolResultMessage, Qt as isToolResultError, Xt as isAssistantMessage, en as normalizeToolNameFromResult, qn as postSlackMessage } from "./tasks-OgXmReUv.js";
|
|
3
|
+
import { f as logException, m as logWarn, p as logInfo } from "./logging-DNQqsQ57.js";
|
|
4
|
+
import { n as botConfig } from "./config-BxPrFVJP.js";
|
|
5
|
+
import { f as getSqlExecutor, u as getConversationStore } from "./viewer-BuPwzOC9.js";
|
|
6
6
|
import { s as juniorConversations } from "./agent-invocations-CxKldAeB.js";
|
|
7
|
-
import "./executor-
|
|
8
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
9
|
-
import { gt as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins } from "./agent-hooks-
|
|
10
|
-
import { r as getStateAdapter } from "./adapter-
|
|
11
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
12
|
-
import { r as sanitizeAssistantText } from "./assistant-reply-
|
|
13
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
7
|
+
import "./executor-D3WIS4vl.js";
|
|
8
|
+
import { h as credentialSubjectSchema } from "./registry-CfdUEk4N.js";
|
|
9
|
+
import { gt as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins, xt as ToolInputError } from "./agent-hooks-D_PbluRX.js";
|
|
10
|
+
import { r as getStateAdapter } from "./adapter-BIbMSKlG.js";
|
|
11
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-CxatQVaj.js";
|
|
12
|
+
import { r as sanitizeAssistantText } from "./assistant-reply-BcJj_ORj.js";
|
|
13
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-C_mHwAnR.js";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { eq, inArray } from "drizzle-orm";
|
|
16
16
|
import { eventMatchFieldsSchema, eventMatchSchema, normalizeEventIdentifier, objectTypeSchema } from "@sentry/junior-plugin-api";
|
|
@@ -524,7 +524,7 @@ function requireEventIdentifier(catalog, input) {
|
|
|
524
524
|
const registration = catalog[input.namespace];
|
|
525
525
|
const identifier = normalizeEventIdentifier(registration, input.identifier);
|
|
526
526
|
const resourceTypes = registration?.resourceTypes ?? [];
|
|
527
|
-
const fits = (resourceType) => resourceType.identifier !== void 0 &&
|
|
527
|
+
const fits = (resourceType) => resourceType.identifier !== void 0 && new RegExp(resourceType.identifier.pattern).test(identifier);
|
|
528
528
|
const resourceType = resourceTypes.find((candidate) => candidate.type === input.resourceType);
|
|
529
529
|
if (!resourceType?.identifier || fits(resourceType)) return identifier;
|
|
530
530
|
const fitting = resourceTypes.filter(fits).map((candidate) => candidate.type);
|
|
@@ -609,7 +609,7 @@ function slackChannelMessageEvents() {
|
|
|
609
609
|
type: CHANNEL_RESOURCE_TYPE,
|
|
610
610
|
identifier: {
|
|
611
611
|
format: `"${SLACK_CURRENT_CHANNEL_IDENTIFIER}" for the channel where the automation is created`,
|
|
612
|
-
pattern:
|
|
612
|
+
pattern: String.raw`^(?:current_channel|[CG][A-Z0-9]{2,})$`
|
|
613
613
|
},
|
|
614
614
|
supportedEvents: [MESSAGE_POSTED_EVENT],
|
|
615
615
|
suggestedEvents: [],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { m as logWarn } from "./logging-
|
|
2
|
+
import { m as logWarn } from "./logging-DNQqsQ57.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-DJBompdd.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-R53MWcMi.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 {
|
|
3
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { $ as toolInvocationDestination, Q as actorFromRun } from "./agent-runner-CvRxb09K.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-C_aF6JN5.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. */
|