@sentry/junior 0.261.0 → 0.263.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-Bx_1B2De.js → adapter-BIacI0Bt.js} +2 -2
- package/dist/{admin-BAbbVgVc.js → admin-C7vUk7s9.js} +1 -1
- package/dist/{agent-hooks-ghyZZQqB.js → agent-hooks-CqnZfuCt.js} +126 -36
- package/dist/{agent-invocations-Qfz7dWgU.js → agent-invocations-CxKldAeB.js} +1 -0
- package/dist/{agent-runner-g110-xgg.js → agent-runner-BUBas7Yy.js} +150 -683
- package/dist/api/schema.d.ts +4 -0
- package/dist/api/schema.js +3 -3
- package/dist/api.js +34 -30
- package/dist/{app-VCiPQ65Q.d.ts → app-Bo0kB987.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +55 -61
- package/dist/{assistant-reply-CQcMaWNL.js → assistant-reply-BFmjgJjD.js} +1 -1
- package/dist/{automation-DrpcA-SX.js → automation-CWX0qL8U.js} +1 -1
- package/dist/{briefs-CKcfrIQL.js → briefs-h55v5lX9.js} +4 -4
- package/dist/{catalog-runtime-cd60vzAB.js → catalog-runtime-Suf-aLlh.js} +1 -1
- package/dist/cli/chat.js +15 -17
- 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-2i0JJpoC.js → client-DZBCBj1M.js} +2 -2
- package/dist/{config-C9qM41O0.js → config-Dnv8KmNs.js} +2 -2
- package/dist/{connections-DrtTrwkp.js → connections-Br0_xv27.js} +10 -10
- package/dist/{conversation-CvuKJ3tA.js → conversation-B0baEwoA.js} +2 -0
- package/dist/{conversation-privacy-1iTiFX1O.js → conversation-privacy-FY8yc2q3.js} +1 -1
- package/dist/{credential-sync-wKNQ1dYc.js → credential-sync-BvkiyWF5.js} +14 -14
- package/dist/{executor-Rimyj8HZ.js → executor-J9k2sp9m.js} +4 -3
- package/dist/{images-D1JggcVY.js → images-DV2FlEGL.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-BjQdSqA3.js → job-queue-B4yTgklN.js} +1 -1
- package/dist/{logging-BLTa7R7f.js → logging-Dk_FpF36.js} +1 -1
- package/dist/{message-DAeP5WWW.js → message-BzseAFH1.js} +4 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BAy1hhF1.js → oauth-callback-server-bTspTMCC.js} +2 -2
- package/dist/{profile-CthM2qFM.js → profile-Dq5I7TV1.js} +13 -6
- package/dist/{prompt-DeVax2qO.js → prompt-CxatQVaj.js} +1 -1
- package/dist/{registry-BnSaArNb.js → registry-BFzQFV_y.js} +1 -1
- package/dist/{resolve-B5eLRl0v.js → resolve-CnRHib0U.js} +4 -4
- package/dist/{result-Cvm0GZCv.js → result-DczfmNBa.js} +18 -12
- package/dist/{runner-D-pUzHbU.js → runner-CJd9Wec-.js} +11 -11
- package/dist/{sandbox-egress-signals-mvwGV7rl.js → sandbox-egress-signals-DUmVkOx4.js} +1 -1
- package/dist/{schema-OzL8Zw4H.js → schema-QidbykYl.js} +3 -3
- package/dist/{service-account-DWxvpSfd.js → service-account-BI2kQDrb.js} +3 -3
- package/dist/{service-account-Ch1uIpnR.js → service-account-x2QZXm4X.js} +3 -3
- package/dist/{session-stop-Boj_zpTa.js → session-stop-CtyJsnEj.js} +12 -12
- package/dist/{skills-BpdYCfFt.js → skills-Dbzx9-rS.js} +2 -2
- package/dist/{spawn-h1DJMQTf.js → spawn-D8WU99UV.js} +3 -2
- package/dist/store-TKg1HVKx.js +697 -0
- package/dist/{store-B6KqcdCQ.js → store-UlOrW6JC.js} +6 -6
- package/dist/{task-queue-BaDwKSYv.js → task-queue-BRB49H-J.js} +3 -3
- package/dist/{task-runner-BAX5li9a.js → task-runner-C575f2Dd.js} +19 -11
- package/dist/{tasks-uCfmlWga.js → tasks-LOItiYgL.js} +46 -66
- package/dist/{thread-state-BJHVIz8G.js → thread-state-IDHdZA7R.js} +5 -5
- package/dist/{turn-failure-response-CCC76P6-.js → turn-failure-response-h_LSXJ-M.js} +46 -20
- package/dist/{turn-lifecycle-pHSESVR9.js → turn-lifecycle-Cvi6Sb8Y.js} +1 -1
- package/dist/{turn-session-routing-BIKJZaiw.js → turn-session-routing-5Nyv4fso.js} +1 -1
- package/dist/{validation-B9KL_5Wc.js → validation-BeTriWC2.js} +1 -1
- package/dist/{version-CN9BXMW_.js → version-BQX_hLDC.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-C5xFaYVi.js → viewer-DmNRM88V.js} +4 -4
- package/dist/{web-input-D6eqfXYd.js → web-input-BHcGXSox.js} +97 -36
- package/dist/{work-C-ecZAme.js → work-DLJMV02b.js} +41 -10
- package/dist/{worker-BpYDqiOf.js → worker-vfG2ESg1.js} +5 -5
- package/migrations/0062_plugin_report_index.sql +20 -0
- package/migrations/0063_agent_invocation_type.sql +1 -0
- package/migrations/meta/0062_snapshot.json +3499 -0
- package/migrations/meta/0063_snapshot.json +3505 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +4 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ln as startOAuthFlow,
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-
|
|
4
|
-
import { u as hasRequiredOAuthScope } from "./registry-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-
|
|
7
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
-
import { a as getVercelConversationWorkQueue } from "./job-queue-
|
|
9
|
-
import { m as ensureConversationWake, w as requestConversationWork } from "./store-
|
|
10
|
-
import { n as resolveTurnSessionRouting } from "./turn-session-routing-
|
|
1
|
+
import { Ln as startOAuthFlow, Mt as failTurnRecord, Nt as getTurnRecord, Ot as loadTurnCheckpoint } from "./tasks-LOItiYgL.js";
|
|
2
|
+
import { n as botConfig } from "./config-Dnv8KmNs.js";
|
|
3
|
+
import { A as deleteProviderIdentityForUser, c as getConversationEventStore, f as getSqlExecutor, k as deleteProviderIdentityForSlackUser } from "./viewer-DmNRM88V.js";
|
|
4
|
+
import { u as hasRequiredOAuthScope } from "./registry-BFzQFV_y.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Suf-aLlh.js";
|
|
6
|
+
import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-BUBas7Yy.js";
|
|
7
|
+
import { r as getStateAdapter } from "./adapter-BIacI0Bt.js";
|
|
8
|
+
import { a as getVercelConversationWorkQueue } from "./job-queue-B4yTgklN.js";
|
|
9
|
+
import { m as ensureConversationWake, w as requestConversationWork } from "./store-UlOrW6JC.js";
|
|
10
|
+
import { n as resolveTurnSessionRouting } from "./turn-session-routing-5Nyv4fso.js";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
13
13
|
// src/chat/task-execution/authorized-turn.ts
|
|
@@ -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 { $n as resolvePluginOAuthAccount,
|
|
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-LOItiYgL.js";
|
|
2
|
+
import { p as escapeXml } from "./client-DZBCBj1M.js";
|
|
3
|
+
import { L as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-Dk_FpF36.js";
|
|
4
|
+
import { a as getRuntimeMetadata, n as botConfig } from "./config-Dnv8KmNs.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-DmNRM88V.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-BFzQFV_y.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Suf-aLlh.js";
|
|
10
|
+
import { t as discoverSkills } from "./skills-Dbzx9-rS.js";
|
|
11
|
+
import { a as finalizeMcpAuthorization, d as getMcpStoredOAuthCredentials, f as putMcpStoredOAuthCredentials, o as deleteMcpAuthSession, u as getMcpAuthSession, v as lookupSlackUserProfile } from "./agent-runner-BUBas7Yy.js";
|
|
12
|
+
import { ct as getSlackClient } from "./agent-hooks-CqnZfuCt.js";
|
|
13
|
+
import { a as acquireActiveLock, r as getStateAdapter } from "./adapter-BIacI0Bt.js";
|
|
14
|
+
import { _ as getMcpProviderErrorAttributes } from "./service-account-x2QZXm4X.js";
|
|
15
|
+
import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-IDHdZA7R.js";
|
|
16
|
+
import { c as deleteWebAuthorization, i as readConnectedOAuthTokens, m as wakePausedTurn, p as wakeAuthorizedTurn, u as htmlCallbackResponse } from "./connections-Br0_xv27.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,7 +1,7 @@
|
|
|
1
|
-
import { f as logException } from "./logging-
|
|
1
|
+
import { f as logException } from "./logging-Dk_FpF36.js";
|
|
2
2
|
import { g as startSpanManual } from "./sentry-BBUlHih9.js";
|
|
3
|
-
import "./config-
|
|
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-
|
|
3
|
+
import "./config-Dnv8KmNs.js";
|
|
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";
|
|
7
7
|
import { bigint, boolean, check, date, doublePrecision, foreignKey, index, integer, jsonb, pgTable, primaryKey, text, uniqueIndex, uuid } from "drizzle-orm/pg-core";
|
|
@@ -154,6 +154,7 @@ const juniorConversationEvents = pgTable("junior_conversation_events", {
|
|
|
154
154
|
}),
|
|
155
155
|
index("junior_conversation_events_history_version_idx").on(table.conversationId, table.historyVersion, table.seq),
|
|
156
156
|
index("junior_conversation_events_type_idx").on(table.conversationId, table.type, table.seq),
|
|
157
|
+
index("junior_conversation_events_plugin_report_idx").on(sql`(${table.payload}->>'namespace')`, sql`(${table.payload}->>'name')`, table.createdAt).where(sql`${table.type} = 'structured_event'`),
|
|
157
158
|
index("junior_conversation_events_actor_identity_idx").on(table.actorIdentityId, table.conversationId, table.seq),
|
|
158
159
|
index("junior_conversation_events_message_search_idx").using("gin", sql`to_tsvector('english', ${table.payload}->>'text')`).where(sql`${table.type} = 'message'`),
|
|
159
160
|
uniqueIndex("junior_conversation_events_idempotency_idx").on(table.conversationId, table.idempotencyKey)
|
|
@@ -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-DmNRM88V.js";
|
|
3
|
+
import { S as readLiveAttachment, w as storeAttachment } from "./agent-runner-BUBas7Yy.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-Dk_FpF36.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-FY8yc2q3.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-Dnv8KmNs.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-BQX_hLDC.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-BUBas7Yy.js";
|
|
3
|
+
import { P as PARENT_AGENT_TARGET, i as createAgentInvocationForMessage, j as AgentMessageTargetError, o as findChildAgentConversationId, s as getActiveAgentInvocationForConversation } from "./store-TKg1HVKx.js";
|
|
4
|
+
import { n as enqueueAgentMessageToParent } from "./result-DczfmNBa.js";
|
|
5
|
+
import { r as enqueueAgentInvocation } from "./work-DLJMV02b.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-Bo0kB987.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-Dk_FpF36.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-B4yTgklN.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-BRB49H-J.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 { bn as createUserTokenStore } from "./tasks-
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { bn as createUserTokenStore } from "./tasks-LOItiYgL.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BvkiyWF5.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-DZBCBj1M.js";
|
|
2
|
+
import { b as setSpanStatus, y as setSpanAttributes } from "./logging-Dk_FpF36.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Suf-aLlh.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
// src/chat/sandbox/paths.ts
|
|
6
6
|
function normalizeWorkspaceRoot(input) {
|
|
@@ -13,6 +13,13 @@ const SANDBOX_WORKSPACE_ROOT = normalizeWorkspaceRoot(process.env.VERCEL_SANDBOX
|
|
|
13
13
|
const SANDBOX_REPOS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/repos`;
|
|
14
14
|
const SANDBOX_SKILLS_ROOT = `${SANDBOX_WORKSPACE_ROOT}/skills`;
|
|
15
15
|
const SANDBOX_DATA_ROOT = `${SANDBOX_WORKSPACE_ROOT}/data`;
|
|
16
|
+
/**
|
|
17
|
+
* PATH for sandbox commands. Plugin runtime binaries come last so they never
|
|
18
|
+
* shadow repo or Workspace tools with the same name. Repo tools often start
|
|
19
|
+
* child processes through PATH, so only PATH order can protect them. Plugin
|
|
20
|
+
* binaries stay reachable by name or by absolute path.
|
|
21
|
+
*/
|
|
22
|
+
const SANDBOX_COMMAND_PATH = `$PATH:${`${SANDBOX_WORKSPACE_ROOT}/.junior/bin`}`;
|
|
16
23
|
function sandboxSkillDir(skillName) {
|
|
17
24
|
return `${SANDBOX_SKILLS_ROOT}/${skillName}`;
|
|
18
25
|
}
|
|
@@ -51,7 +58,7 @@ function shellQuote(value) {
|
|
|
51
58
|
}
|
|
52
59
|
function buildEnvExports(options) {
|
|
53
60
|
const lines = [];
|
|
54
|
-
if (options.
|
|
61
|
+
if (options.path) lines.push(`export PATH="${options.path}"`);
|
|
55
62
|
for (const [key, value] of Object.entries(NON_INTERACTIVE_ENV)) lines.push(`export ${key}=${shellQuote(value)}`);
|
|
56
63
|
for (const [key, value] of Object.entries(options.env ?? {})) lines.push(`export ${key}=${shellQuote(value)}`);
|
|
57
64
|
return lines;
|
|
@@ -74,7 +81,7 @@ function buildNonInteractiveCommand(input) {
|
|
|
74
81
|
cmd: "bash",
|
|
75
82
|
args: [input.login ? "-lc" : "-c", buildNonInteractiveShellScript(buildCommandScript(input), {
|
|
76
83
|
env: input.env,
|
|
77
|
-
|
|
84
|
+
path: input.path
|
|
78
85
|
})]
|
|
79
86
|
};
|
|
80
87
|
}
|
|
@@ -572,4 +579,4 @@ function isStale(profile, createdAtMs) {
|
|
|
572
579
|
const maxAgeMs = floatingMaxAgeMs();
|
|
573
580
|
return maxAgeMs === 0 || Date.now() - createdAtMs > maxAgeMs;
|
|
574
581
|
}
|
|
575
|
-
export {
|
|
582
|
+
export { sandboxSkillPathResolution as A, SANDBOX_COMMAND_PATH as C, SANDBOX_WORKSPACE_ROOT as D, SANDBOX_SKILLS_ROOT as E, sandboxSkillDir as O, runNonInteractiveCommand as S, SANDBOX_REPOS_ROOT as T, workspaceSnapshotNotReadyUserMessage as _, isAbortError as a, buildCommandScript as b, isSandboxCommandStreamInterruptedError as c, isSnapshottingError as d, throwSandboxOperationError as f, isWorkspaceSnapshotNotReadyError as g, getWorkspaceSnapshotNotReadyError as h, ensureDockerDaemon as i, sandboxSkillFile as k, isSandboxMissingError as l, WorkspaceSnapshotNotReadyError as m, hash as n, isAlreadyExistsError as o, wrapSandboxSetupError as p, isStale as r, isSandboxApiTransientError as s, create as t, isSandboxUnavailableError as u, getVercelSandboxCredentials as v, SANDBOX_DATA_ROOT as w, buildNonInteractiveShellScript as x, sleep as y };
|
|
@@ -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-Dk_FpF36.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 {
|
|
1
|
+
import { T as withSpan, y as setSpanAttributes } from "./logging-Dk_FpF36.js";
|
|
2
|
+
import { r as getStateAdapter } from "./adapter-BIacI0Bt.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-Dq5I7TV1.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { FileSystem, Sandbox } from "@vercel/sandbox";
|
|
6
6
|
// src/chat/sandbox/resources.ts
|
|
@@ -216,7 +216,7 @@ async function postinstall(sandbox, commands, signal, timeoutMs) {
|
|
|
216
216
|
cmd: command.cmd,
|
|
217
217
|
args: command.args,
|
|
218
218
|
login: true,
|
|
219
|
-
|
|
219
|
+
path: SANDBOX_COMMAND_PATH,
|
|
220
220
|
signal,
|
|
221
221
|
timeoutMs,
|
|
222
222
|
...command.sudo !== void 0 ? { sudo: command.sudo } : void 0
|
|
@@ -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-LOItiYgL.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-BFzQFV_y.js";
|
|
5
|
+
import { W as listUnreportedSiblingAgents } from "./agent-runner-BUBas7Yy.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-TKg1HVKx.js";
|
|
8
|
+
import { a as EVENT_WAIT_MS, c as isEventMailboxMetadata, l as renderEventBatchText, u as timerWatchCredentialSubject } from "./session-stop-CtyJsnEj.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-UlOrW6JC.js";
|
|
10
|
+
import { r as enqueueAgentInvocation } from "./work-DLJMV02b.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
|
|
@@ -223,7 +224,10 @@ const OUTPUT_LABEL = {
|
|
|
223
224
|
failed: "Error",
|
|
224
225
|
stopped: "Error"
|
|
225
226
|
};
|
|
226
|
-
function
|
|
227
|
+
function siblingLabel(sibling) {
|
|
228
|
+
return sibling.agentName ? `"${sibling.agentName}"` : sibling.title ?? sibling.childConversationId;
|
|
229
|
+
}
|
|
230
|
+
function renderResultInput(invocation, summary, openSiblings) {
|
|
227
231
|
const output = (invocation.status === "completed" ? invocation.result : invocation.errorMessage).trim().slice(0, AGENT_INVOCATION_RESULT_MAX_LENGTH);
|
|
228
232
|
const outputLabel = OUTPUT_LABEL[invocation.status];
|
|
229
233
|
return [
|
|
@@ -238,11 +242,12 @@ function renderResultInput(invocation, summary) {
|
|
|
238
242
|
`${outputLabel}:`,
|
|
239
243
|
output || "(empty)",
|
|
240
244
|
"",
|
|
241
|
-
RESULT_NEXT_STEP[invocation.status]
|
|
245
|
+
RESULT_NEXT_STEP[invocation.status],
|
|
246
|
+
...openSiblings.length > 0 ? ["", `Other child agents that you started have not reported yet: ${openSiblings.map(siblingLabel).join(", ")}. Their results arrive later. Unless this result is useful to the user alone, wait for them before you report.`] : []
|
|
242
247
|
].join("\n");
|
|
243
248
|
}
|
|
244
249
|
/** Build the parent Inbound message for one terminal agent invocation. */
|
|
245
|
-
function buildResultInboundMessage(invocation, nowMs) {
|
|
250
|
+
function buildResultInboundMessage(invocation, nowMs, openSiblings) {
|
|
246
251
|
const summary = trustedSummary(invocation, childAgentLabel(invocation));
|
|
247
252
|
const metadata = {
|
|
248
253
|
kind: "event",
|
|
@@ -262,7 +267,7 @@ function buildResultInboundMessage(invocation, nowMs) {
|
|
|
262
267
|
input: {
|
|
263
268
|
authorId: resultAuthorId(invocation.actor),
|
|
264
269
|
metadata,
|
|
265
|
-
text: renderResultInput(invocation, summary)
|
|
270
|
+
text: renderResultInput(invocation, summary, openSiblings)
|
|
266
271
|
},
|
|
267
272
|
receivedAtMs: nowMs,
|
|
268
273
|
source: "event"
|
|
@@ -280,8 +285,9 @@ function buildResultInboundMessage(invocation, nowMs) {
|
|
|
280
285
|
async function enqueueAgentInvocationResult(invocation, options) {
|
|
281
286
|
if (invocation.parentMailboxStatus !== "pending") return;
|
|
282
287
|
const nowMs = options.nowMs ?? Date.now();
|
|
288
|
+
const openSiblings = await listUnreportedSiblingAgents(invocation.parentConversationId, invocation.childConversationId);
|
|
283
289
|
await appendAndEnqueueInboundMessage({
|
|
284
|
-
message: buildResultInboundMessage(invocation, nowMs),
|
|
290
|
+
message: buildResultInboundMessage(invocation, nowMs, openSiblings),
|
|
285
291
|
queue: options.queue,
|
|
286
292
|
queueDelayMs: EVENT_WAIT_MS,
|
|
287
293
|
state: options.state
|
|
@@ -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-LOItiYgL.js";
|
|
2
|
+
import { f as logException, w as withLogContext, x as setTags } from "./logging-Dk_FpF36.js";
|
|
3
|
+
import { c as getConversationEventStore, u as getConversationStore } from "./viewer-DmNRM88V.js";
|
|
4
|
+
import { f as credentialContextForActor } from "./registry-BFzQFV_y.js";
|
|
5
|
+
import { P as messageCardText } from "./conversation-B0baEwoA.js";
|
|
6
|
+
import { X as markTurnFailed, Z as startActiveTurn } from "./store-TKg1HVKx.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-BFmjgJjD.js";
|
|
8
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-C575f2Dd.js";
|
|
9
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-Cvi6Sb8Y.js";
|
|
10
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-IDHdZA7R.js";
|
|
11
|
+
import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-h_LSXJ-M.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 { Mn as sandboxEgressSignalsResponseSchema } from "./tasks-
|
|
1
|
+
import { Mn as sandboxEgressSignalsResponseSchema } from "./tasks-LOItiYgL.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
|
-
import { r as AGENT_INVOCATION_STATUSES, u as juniorDestinationKindSchema } from "./agent-invocations-
|
|
2
|
-
import { E as conversationUsageSchema, T as conversationSummaryReportSchema, j as conversationChildAgentTotalsSchema, l as conversationAuxiliaryCostsSchema, n as actorIdentitySchema } from "./conversation-
|
|
3
|
-
import "./automation-
|
|
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-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 { 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-Suf-aLlh.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "./adapter-BIacI0Bt.js";
|
|
3
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-x2QZXm4X.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,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-Dk_FpF36.js";
|
|
2
|
+
import { c as fetchWithBoundedOAuthErrorBodies, i as resolvePluginHeaderEnvRefs } from "./registry-BFzQFV_y.js";
|
|
3
|
+
import { i as MUTATION_LOCK_TTL_MS, o as fenceLock, r as getStateAdapter, s as withLock } from "./adapter-BIacI0Bt.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,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-
|
|
6
|
-
import { s as juniorConversations } from "./agent-invocations-
|
|
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
|
|
11
|
-
import { r as
|
|
12
|
-
import { r as sanitizeAssistantText } from "./assistant-reply-
|
|
13
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
2
|
+
import { $t as isToolResultMessage, Qt as isToolResultError, Xt as isAssistantMessage, en as normalizeToolNameFromResult, qn as postSlackMessage } from "./tasks-LOItiYgL.js";
|
|
3
|
+
import { f as logException, m as logWarn, p as logInfo } from "./logging-Dk_FpF36.js";
|
|
4
|
+
import { n as botConfig } from "./config-Dnv8KmNs.js";
|
|
5
|
+
import { f as getSqlExecutor, u as getConversationStore } from "./viewer-DmNRM88V.js";
|
|
6
|
+
import { s as juniorConversations } from "./agent-invocations-CxKldAeB.js";
|
|
7
|
+
import "./executor-J9k2sp9m.js";
|
|
8
|
+
import { h as credentialSubjectSchema } from "./registry-BFzQFV_y.js";
|
|
9
|
+
import { gt as JUNIOR_THREAD_STATE_TTL_MS, rt as verifyTimerWatchCredentialSubject, u as getPlugins, xt as ToolInputError } from "./agent-hooks-CqnZfuCt.js";
|
|
10
|
+
import { r as getStateAdapter } from "./adapter-BIacI0Bt.js";
|
|
11
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-CxatQVaj.js";
|
|
12
|
+
import { r as sanitizeAssistantText } from "./assistant-reply-BFmjgJjD.js";
|
|
13
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-UlOrW6JC.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";
|
|
@@ -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-Dk_FpF36.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-Suf-aLlh.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-BUBas7Yy.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-DLJMV02b.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. */
|
|
@@ -13,6 +13,7 @@ function bindSpawnAgent(run, options) {
|
|
|
13
13
|
return { childConversationId: (await createAndEnqueueAgentInvocation({
|
|
14
14
|
actor,
|
|
15
15
|
...input.name ? { agentName: input.name } : void 0,
|
|
16
|
+
...input.agentType ? { agentType: input.agentType } : void 0,
|
|
16
17
|
...run.credentialContext ? { credentialContext: run.credentialContext } : void 0,
|
|
17
18
|
destination: toolInvocationDestination(run),
|
|
18
19
|
idempotencyKey: `${run.turnId}:${call.toolCallId}`,
|