@sentry/junior 0.231.0 → 0.233.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/{agent-hooks-BxL23rrY.js → agent-hooks-DATy_Hnt.js} +89 -12
- package/dist/{agent-runner-mpzfRAEr.js → agent-runner-BKOtZjez.js} +19 -18
- package/dist/api/schema.d.ts +75 -0
- package/dist/api/schema.js +2 -2
- package/dist/api.js +18 -18
- package/dist/app.js +22 -22
- package/dist/{briefs-CTIZORAN.js → briefs-ClOTHmQ-.js} +4 -4
- package/dist/{catalog-runtime-RSgQS4lp.js → catalog-runtime-xFtmw3oA.js} +1 -1
- package/dist/{checkpoint-Q4FG2BQc.js → checkpoint-zkEB448J.js} +6 -6
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-Mj9HEEKf.js → client-CJUZHY9Y.js} +2 -2
- package/dist/{config-CkmcoWGB.js → config-XtycpE-i.js} +2 -2
- package/dist/{conversation-DsuDtoYR.js → conversation-CPjHYOV5.js} +13 -2
- package/dist/{conversation-privacy-DGj6F9tc.js → conversation-privacy-B30pEcsR.js} +1 -1
- package/dist/{credential-sync-CHL297BH.js → credential-sync-vufd6gwK.js} +13 -13
- package/dist/{executor-_eMyydh0.js → executor-BGDb_cM-.js} +1 -1
- package/dist/{images-D9gA15-3.js → images-zuEwjVKU.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-Dl1lTGqq.js → job-queue-C5JaRRcE.js} +1 -1
- package/dist/{logging-9VpmxvdL.js → logging-BS563NYn.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-authorization-DYZeyL50.js → oauth-authorization-DF2dSmNh.js} +1 -1
- package/dist/{oauth-callback-server-BcVrxzcd.js → oauth-callback-server-CW9COQ9L.js} +2 -2
- package/dist/{pending-auth-mB93uu9V.js → pending-auth-8Kmti8S3.js} +1 -1
- package/dist/{profile-CK1KKKfj.js → profile-C4_njQYA.js} +4 -4
- package/dist/{prompt-D5RPLy92.js → prompt-3D0sSbTC.js} +1 -1
- package/dist/{registry-BzD2Rftl.js → registry-BhiLWAY6.js} +1 -1
- package/dist/{resolve-C3UI1gHN.js → resolve-ZDwJ6a3N.js} +2 -2
- package/dist/{runner-BETWa1Bq.js → runner-D1xeORYM.js} +9 -9
- package/dist/{sandbox-egress-signals-pjWtc_9b.js → sandbox-egress-signals-Dx1PzQpy.js} +1 -1
- package/dist/{schema-B-Taar1W.js → schema-DuGfOm4u.js} +1 -1
- package/dist/{skills-B5o4x78h.js → skills-CN-ye6on.js} +2 -2
- package/dist/{spawn-pwMuB53X.js → spawn-B8KYOBcU.js} +2 -2
- package/dist/{task-queue-Bb71mssX.js → task-queue-DPaZtxld.js} +3 -3
- package/dist/{task-runner-DkaEXCEP.js → task-runner-D23tSETM.js} +9 -9
- package/dist/{thread-state-HHHiwpYG.js → thread-state-BbxSiDa9.js} +5 -5
- package/dist/{turn-failure-response-CtWGQ0fz.js → turn-failure-response-c8irQDMB.js} +8 -8
- package/dist/{turn-lifecycle-Cosdai_3.js → turn-lifecycle-DSVG3u_p.js} +1 -1
- package/dist/{turn-session-routing-DDo6JGTB.js → turn-session-routing-B2hNxu_N.js} +1 -1
- package/dist/{validation-DoceK2VV.js → validation-BrLB5qbC.js} +1 -1
- package/dist/{version-wZ8kdUu1.js → version-B2rspCmP.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-C1coqBWn.js → web-authorization-CVSTvY_D.js} +6 -6
- package/dist/{web-input-clQr4P53.js → web-input-zUQoZMZw.js} +54 -61
- package/dist/{work-BW27hKZB.js → work-BXbJVOZI.js} +7 -7
- package/dist/{worker-DQ-0LzAC.js → worker-ClkQ9S9C.js} +5 -5
- package/package.json +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { a as embedTexts, r as completeObject } from "./client-
|
|
3
|
-
import { F as normalizeIdentityEmail, I as isRecord$2, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-
|
|
2
|
+
import { a as embedTexts, r as completeObject } from "./client-CJUZHY9Y.js";
|
|
3
|
+
import { F as normalizeIdentityEmail, I as isRecord$2, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-BS563NYn.js";
|
|
4
4
|
import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
|
|
5
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
6
|
-
import { a as getChatConfig, n as botConfig, s as getSlackBotToken } from "./config-
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-B30pEcsR.js";
|
|
6
|
+
import { a as getChatConfig, n as botConfig, s as getSlackBotToken } from "./config-XtycpE-i.js";
|
|
7
7
|
import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
8
8
|
import { b as parseSlackMessageTs, c as isActorUserId, h as parseSlackTeamId, m as parseSlackChannelReferenceId, u as parseActorUserId } from "./context-0Et9iVSB.js";
|
|
9
9
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
10
|
-
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, _ as CONVERSATION_METRICS, g as juniorConversationBriefs, h as juniorConversationBindings, i as juniorWorkspaces, m as juniorConversationParticipants, n as juniorSnapshots, r as juniorWorkspaceRepos, t as createJuniorSqlExecutor, v as juniorConversationMetrics, w as juniorAttachments, x as juniorConversationAnnotations, y as juniorConversationEvents } from "./executor-
|
|
11
|
-
import { $ as encodeHistoryPayload, C as conversationReportEventSchema, H as readMessageCardRefs, L as conversationBriefSchema, Q as newConversationEventSchema, R as parseBriefInput, X as decodeStoredConversationEvent, Z as historyReplacementSchema, it as usageSchema, j as readMessageAttachments, q as conversationEventDataSchema } from "./conversation-
|
|
12
|
-
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-
|
|
13
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
10
|
+
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, _ as CONVERSATION_METRICS, g as juniorConversationBriefs, h as juniorConversationBindings, i as juniorWorkspaces, m as juniorConversationParticipants, n as juniorSnapshots, r as juniorWorkspaceRepos, t as createJuniorSqlExecutor, v as juniorConversationMetrics, w as juniorAttachments, x as juniorConversationAnnotations, y as juniorConversationEvents } from "./executor-BGDb_cM-.js";
|
|
11
|
+
import { $ as encodeHistoryPayload, C as conversationReportEventSchema, H as readMessageCardRefs, L as conversationBriefSchema, Q as newConversationEventSchema, R as parseBriefInput, X as decodeStoredConversationEvent, Z as historyReplacementSchema, it as usageSchema, j as readMessageAttachments, q as conversationEventDataSchema } from "./conversation-CPjHYOV5.js";
|
|
12
|
+
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-C4_njQYA.js";
|
|
13
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-3D0sSbTC.js";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1902,6 +1902,46 @@ function buildSentryEventUrl(eventId) {
|
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
1904
1904
|
//#endregion
|
|
1905
|
+
//#region src/api/conversations/event-model.ts
|
|
1906
|
+
/** Apply recorded model choices without carrying a previous turn's settings forward. */
|
|
1907
|
+
function conversationEventModel(data, current) {
|
|
1908
|
+
if (data.type === "turn_started") return void 0;
|
|
1909
|
+
if (data.type === "turn_routed" || data.type === "handoff") return {
|
|
1910
|
+
modelId: data.modelId,
|
|
1911
|
+
modelProfile: data.modelProfile,
|
|
1912
|
+
...data.reasoningLevel ? { reasoningLevel: data.reasoningLevel } : void 0
|
|
1913
|
+
};
|
|
1914
|
+
if (data.type === "assistant_message") {
|
|
1915
|
+
const model = text$1(data.model);
|
|
1916
|
+
const provider = text$1(data.provider);
|
|
1917
|
+
if (model) {
|
|
1918
|
+
const modelId = model.includes("/") || !provider ? model : `${provider}/${model}`;
|
|
1919
|
+
return {
|
|
1920
|
+
...current,
|
|
1921
|
+
modelId
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
return current;
|
|
1926
|
+
}
|
|
1927
|
+
function text$1(value) {
|
|
1928
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
1929
|
+
}
|
|
1930
|
+
/** Allowlist model-call diagnostics; never expose opaque provider metadata. */
|
|
1931
|
+
function conversationEventModelCall(data) {
|
|
1932
|
+
if (data.type !== "assistant_message") return void 0;
|
|
1933
|
+
const usage = extractGenAiUsageSummary(data);
|
|
1934
|
+
const provider = text$1(data.provider);
|
|
1935
|
+
const api = text$1(data.api);
|
|
1936
|
+
const stopReason = text$1(data.stopReason);
|
|
1937
|
+
return {
|
|
1938
|
+
...provider ? { provider } : void 0,
|
|
1939
|
+
...api ? { api } : void 0,
|
|
1940
|
+
...stopReason ? { stopReason } : void 0,
|
|
1941
|
+
...hasAgentTurnUsage(usage) ? { usage } : void 0
|
|
1942
|
+
};
|
|
1943
|
+
}
|
|
1944
|
+
//#endregion
|
|
1905
1945
|
//#region src/api/conversations/events.ts
|
|
1906
1946
|
/** Canonical event types that can contribute to the reporting projection. */
|
|
1907
1947
|
const conversationReportSourceEventTypes = [
|
|
@@ -2025,7 +2065,10 @@ function reportAssistantMessage(args) {
|
|
|
2025
2065
|
if (!message.data.content.some((part) => {
|
|
2026
2066
|
const reasoning = reportingReasoningPartSchema.safeParse(part);
|
|
2027
2067
|
return reasoning.success && reasoning.data.redacted !== true && reasoning.data.thinking.trim().length > 0;
|
|
2028
|
-
})) return reportToolCalls(args)
|
|
2068
|
+
})) return reportToolCalls(args) ?? {
|
|
2069
|
+
type: "assistant_message",
|
|
2070
|
+
parts: []
|
|
2071
|
+
};
|
|
2029
2072
|
const reasoningParts = [];
|
|
2030
2073
|
const assistantParts = [];
|
|
2031
2074
|
for (const part of message.data.content) {
|
|
@@ -2218,7 +2261,16 @@ function projectConversationReportEventPage(args) {
|
|
|
2218
2261
|
});
|
|
2219
2262
|
}
|
|
2220
2263
|
const projected = [];
|
|
2264
|
+
let model;
|
|
2265
|
+
for (const event of args.modelContextEvents ?? []) {
|
|
2266
|
+
model = conversationEventModel(event.data, model);
|
|
2267
|
+
if (event.data.type === "turn_completed" || event.data.type === "turn_failed") model = void 0;
|
|
2268
|
+
}
|
|
2221
2269
|
for (const event of args.events) {
|
|
2270
|
+
model = conversationEventModel(event.data, model);
|
|
2271
|
+
const eventModel = model;
|
|
2272
|
+
const modelCall = conversationEventModelCall(event.data);
|
|
2273
|
+
if (event.data.type === "turn_completed" || event.data.type === "turn_failed") model = void 0;
|
|
2222
2274
|
let data;
|
|
2223
2275
|
if (event.data.type === "assistant_message" || event.data.type === "tool_result") {
|
|
2224
2276
|
const reportArgs = {
|
|
@@ -2295,7 +2347,9 @@ function projectConversationReportEventPage(args) {
|
|
|
2295
2347
|
projected.push(conversationReportEventSchema.parse({
|
|
2296
2348
|
seq: event.seq,
|
|
2297
2349
|
createdAt: new Date(event.createdAtMs).toISOString(),
|
|
2298
|
-
data
|
|
2350
|
+
data,
|
|
2351
|
+
...eventModel ? { model: eventModel } : void 0,
|
|
2352
|
+
...modelCall ? { modelCall } : void 0
|
|
2299
2353
|
}));
|
|
2300
2354
|
}
|
|
2301
2355
|
return projected;
|
|
@@ -2333,6 +2387,25 @@ function decodeConversationEventRow(row) {
|
|
|
2333
2387
|
/** Project stored rows and resolve entity starts that precede the page. */
|
|
2334
2388
|
async function projectConversationEventRows(executor, args) {
|
|
2335
2389
|
const events = args.rows.map(decodeConversationEventRow).sort((left, right) => left.seq - right.seq);
|
|
2390
|
+
const modelContextRows = events[0] ? (await Promise.all([readConversationEventRows(executor, {
|
|
2391
|
+
conversationId: args.conversationId,
|
|
2392
|
+
beforeSeq: events[0].seq,
|
|
2393
|
+
direction: "backward",
|
|
2394
|
+
limit: 1,
|
|
2395
|
+
types: [
|
|
2396
|
+
"turn_started",
|
|
2397
|
+
"turn_routed",
|
|
2398
|
+
"handoff",
|
|
2399
|
+
"turn_completed",
|
|
2400
|
+
"turn_failed"
|
|
2401
|
+
]
|
|
2402
|
+
}), readConversationEventRows(executor, {
|
|
2403
|
+
conversationId: args.conversationId,
|
|
2404
|
+
beforeSeq: events[0].seq,
|
|
2405
|
+
direction: "backward",
|
|
2406
|
+
limit: 1,
|
|
2407
|
+
types: ["assistant_message"]
|
|
2408
|
+
})])).flat().sort((left, right) => left.seq - right.seq) : [];
|
|
2336
2409
|
const endedInvocationIds = [...new Set(events.flatMap((event) => event.data.type === "subagent_ended" ? [event.data.subagentInvocationId] : []))];
|
|
2337
2410
|
const subagentStartRows = endedInvocationIds.length === 0 ? [] : await readConversationEventRows(executor, {
|
|
2338
2411
|
conversationId: args.conversationId,
|
|
@@ -2354,7 +2427,8 @@ async function projectConversationEventRows(executor, args) {
|
|
|
2354
2427
|
canExposePayload: args.canExposePayload,
|
|
2355
2428
|
events,
|
|
2356
2429
|
subagentStartEvents: subagentStartRows.map(decodeConversationEventRow),
|
|
2357
|
-
toolStartEvents: toolStartRows.map(decodeConversationEventRow)
|
|
2430
|
+
toolStartEvents: toolStartRows.map(decodeConversationEventRow),
|
|
2431
|
+
modelContextEvents: modelContextRows.map(decodeConversationEventRow)
|
|
2358
2432
|
});
|
|
2359
2433
|
}
|
|
2360
2434
|
/**
|
|
@@ -5542,7 +5616,10 @@ function createPluginHookRunner(input = {}) {
|
|
|
5542
5616
|
...basePluginContext(plugin),
|
|
5543
5617
|
...tool.conversationId ? { conversationId: tool.conversationId } : void 0,
|
|
5544
5618
|
...annotations ? { annotations } : void 0,
|
|
5545
|
-
result:
|
|
5619
|
+
result: {
|
|
5620
|
+
content: tool.content,
|
|
5621
|
+
structuredContent: tool.structuredContent
|
|
5622
|
+
},
|
|
5546
5623
|
tool: {
|
|
5547
5624
|
arguments: tool.arguments,
|
|
5548
5625
|
name: tool.toolName
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-
|
|
3
|
-
import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, s as getLogContextAttributes, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-
|
|
2
|
+
import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-CJUZHY9Y.js";
|
|
3
|
+
import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, s as getLogContextAttributes, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-BS563NYn.js";
|
|
4
4
|
import { m as startInactiveSpan, n as captureMessage, v as withActiveSpan } from "./sentry-CgWZM_kV.js";
|
|
5
|
-
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-
|
|
6
|
-
import { a as getChatConfig, h as normalizeSlackEmojiName, n as botConfig } from "./config-
|
|
5
|
+
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-B30pEcsR.js";
|
|
6
|
+
import { a as getChatConfig, h as normalizeSlackEmojiName, n as botConfig } from "./config-XtycpE-i.js";
|
|
7
7
|
import { a as formatModelProfiles, c as profileConfig, i as formatModelProfile, l as TURN_REASONING_LEVELS, n as ModelProfileNotConfiguredError, o as modelIdForProfile, s as modelProfileSchema } from "./model-profile-BwU8mqwD.js";
|
|
8
8
|
import { b as parseSlackMessageTs, d as parseStoredSlackActor, g as parseSlackUserId, h as parseSlackTeamId, i as credentialUserSubjectId, l as isUserActor, m as parseSlackChannelReferenceId, n as credentialContextSchema, p as parseSlackChannelId, t as credentialContextForActor } from "./context-0Et9iVSB.js";
|
|
9
|
-
import { $t as getConversationStore, A as tryWorkspaceRepoCheckoutPath, B as downloadPrivateSlackFile, C as invalidateReadySnapshot, Ct as createPluginLogger, D as SANDBOX_RUNTIME, E as setWorkspaceSnapshotBuild, G as isDmChannel$1, Ht as saveObjectAnnotations, J as withSlackRetries, K as normalizeSlackConversationId, M as resolveChannelCapabilities, O as deleteWorkspaceSnapshotBuilders, Q as readActorIdentity, Qt as getConversationMessageSearchStore, Rt as matchSlackAttachments, S as WorkspaceValidationError, T as setWorkspaceSnapshot, U as getSlackClient, Ut as createPluginAnnotations, V as getFilePermalink, W as isConversationScopedChannel, Zt as getConversationEventStore, _ as deleteWorkspace, at as STOP_WATCHING_TOOL_NAME, b as listWorkspaces, bn as sameDestination$1, c as getPluginTools, cn as addAgentTurnUsage, dt as deliverWatch, en as getDb, fn as hasAgentTurnUsage, ft as findMatchingWatches, g as createWorkspace, gt as getDashboardConversationLink, ht as JUNIOR_THREAD_STATE_TTL_MS, it as RESOURCE_WATCH_TOOL_SOURCE, j as workspaceRepoCheckoutPath, k as getWorkspaceSnapshotBuilder, l as getPluginUserPromptContributions, lt as createTimerWatch, n as applyPluginFormatMarkdown, nt as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ot as cancelSubscriptions, pt as listWatches, r as createPluginHookRunner, rt as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, s as getPluginSystemPromptContributions, st as cancelWatch, tn as getSqlExecutor, tt as getSlackToolContext, u as getPlugins, ut as createWatch, v as getWorkspace, vn as parseDestination, vt as getDashboardTaskLink, w as loadSnapshotsForProfile, x as updateWorkspace, y as getWorkspaceByName, z as SlackActionError } from "./agent-hooks-
|
|
9
|
+
import { $t as getConversationStore, A as tryWorkspaceRepoCheckoutPath, B as downloadPrivateSlackFile, C as invalidateReadySnapshot, Ct as createPluginLogger, D as SANDBOX_RUNTIME, E as setWorkspaceSnapshotBuild, G as isDmChannel$1, Ht as saveObjectAnnotations, J as withSlackRetries, K as normalizeSlackConversationId, M as resolveChannelCapabilities, O as deleteWorkspaceSnapshotBuilders, Q as readActorIdentity, Qt as getConversationMessageSearchStore, Rt as matchSlackAttachments, S as WorkspaceValidationError, T as setWorkspaceSnapshot, U as getSlackClient, Ut as createPluginAnnotations, V as getFilePermalink, W as isConversationScopedChannel, Zt as getConversationEventStore, _ as deleteWorkspace, at as STOP_WATCHING_TOOL_NAME, b as listWorkspaces, bn as sameDestination$1, c as getPluginTools, cn as addAgentTurnUsage, dt as deliverWatch, en as getDb, fn as hasAgentTurnUsage, ft as findMatchingWatches, g as createWorkspace, gt as getDashboardConversationLink, ht as JUNIOR_THREAD_STATE_TTL_MS, it as RESOURCE_WATCH_TOOL_SOURCE, j as workspaceRepoCheckoutPath, k as getWorkspaceSnapshotBuilder, l as getPluginUserPromptContributions, lt as createTimerWatch, n as applyPluginFormatMarkdown, nt as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ot as cancelSubscriptions, pt as listWatches, r as createPluginHookRunner, rt as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, s as getPluginSystemPromptContributions, st as cancelWatch, tn as getSqlExecutor, tt as getSlackToolContext, u as getPlugins, ut as createWatch, v as getWorkspace, vn as parseDestination, vt as getDashboardTaskLink, w as loadSnapshotsForProfile, x as updateWorkspace, y as getWorkspaceByName, z as SlackActionError } from "./agent-hooks-DATy_Hnt.js";
|
|
10
10
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
11
|
-
import { D as juniorIdentities, E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, d as AGENT_INVOCATION_MAILBOX_STATUSES, g as juniorConversationBriefs, k as juniorArtifacts, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments, x as juniorConversationAnnotations } from "./executor-
|
|
12
|
-
import { F as briefLinkSchema, G as KNOWN_CONVERSATION_EVENT_TYPES, I as briefOutcomeStatusSchema, L as conversationBriefSchema, N as isVisionImageMediaType, U as removedCardSchema, et as contextProvenance, nt as instructionProvenanceFor, rt as sameActorIdentity, tt as instructionActors } from "./conversation-
|
|
11
|
+
import { D as juniorIdentities, E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, d as AGENT_INVOCATION_MAILBOX_STATUSES, g as juniorConversationBriefs, k as juniorArtifacts, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments, x as juniorConversationAnnotations } from "./executor-BGDb_cM-.js";
|
|
12
|
+
import { F as briefLinkSchema, G as KNOWN_CONVERSATION_EVENT_TYPES, I as briefOutcomeStatusSchema, L as conversationBriefSchema, N as isVisionImageMediaType, U as removedCardSchema, et as contextProvenance, nt as instructionProvenanceFor, rt as sameActorIdentity, tt as instructionActors } from "./conversation-CPjHYOV5.js";
|
|
13
13
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-7a9YqLhE.js";
|
|
14
|
-
import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, o as resolvePluginCommandEnv, s as OAuthProviderError } from "./registry-
|
|
15
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
16
|
-
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
17
|
-
import { $ as fallbackShortTitle, C as isToolResultError, D as stripRuntimeTurnContext, E as retainRuntimeTurnContext, F as loadTurnRoute, G as recordToolExecutionStarted, H as recordGuardianActionReviewed, I as openConversationProjection, K as recordTurnRoute, L as recordAgentsInstructionsUpdated, M as loadConnectedMcpProviders, N as loadConversationProjection, O as trimTrailingAssistantMessages, R as recordAttachmentsDelivered, S as isContinuablePiBoundary, T as normalizeToolNameFromResult, U as recordMcpProviderConnected, V as recordAuthorizationRequested, _ as getTerminalAssistantMessages, _t as piMessageFromHistoryItem, d as TurnSliceLimitExceededError, et as generateShortTitle, f as assertTurnToolCallLimit, g as getPiMessageRole, gt as historyItemFromPiMessage, h as extractAssistantText, ht as getAgentContextInputLimitTokens, k as TURN_CONTEXT_TAG, m as isTurnExecutionLimitExceededError, mt as getAgentContextCompactionTriggerTokens, n as loadTurnCheckpoint, pt as estimateTextTokens, r as saveTurnCheckpoint, t as continuableMessages, tt as resolveTaskTitle, v as getUserMessageInstructionText, w as isToolResultMessage, x as isAssistantMessage, y as hasRuntimeTurnContext } from "./checkpoint-
|
|
18
|
-
import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-
|
|
19
|
-
import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-
|
|
20
|
-
import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-
|
|
21
|
-
import { r as EVENT_AUTHOR_ID } from "./prompt-
|
|
22
|
-
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-
|
|
23
|
-
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-
|
|
14
|
+
import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, o as resolvePluginCommandEnv, s as OAuthProviderError } from "./registry-BhiLWAY6.js";
|
|
15
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-xFtmw3oA.js";
|
|
16
|
+
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-CN-ye6on.js";
|
|
17
|
+
import { $ as fallbackShortTitle, C as isToolResultError, D as stripRuntimeTurnContext, E as retainRuntimeTurnContext, F as loadTurnRoute, G as recordToolExecutionStarted, H as recordGuardianActionReviewed, I as openConversationProjection, K as recordTurnRoute, L as recordAgentsInstructionsUpdated, M as loadConnectedMcpProviders, N as loadConversationProjection, O as trimTrailingAssistantMessages, R as recordAttachmentsDelivered, S as isContinuablePiBoundary, T as normalizeToolNameFromResult, U as recordMcpProviderConnected, V as recordAuthorizationRequested, _ as getTerminalAssistantMessages, _t as piMessageFromHistoryItem, d as TurnSliceLimitExceededError, et as generateShortTitle, f as assertTurnToolCallLimit, g as getPiMessageRole, gt as historyItemFromPiMessage, h as extractAssistantText, ht as getAgentContextInputLimitTokens, k as TURN_CONTEXT_TAG, m as isTurnExecutionLimitExceededError, mt as getAgentContextCompactionTriggerTokens, n as loadTurnCheckpoint, pt as estimateTextTokens, r as saveTurnCheckpoint, t as continuableMessages, tt as resolveTaskTitle, v as getUserMessageInstructionText, w as isToolResultMessage, x as isAssistantMessage, y as hasRuntimeTurnContext } from "./checkpoint-zkEB448J.js";
|
|
18
|
+
import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-C4_njQYA.js";
|
|
19
|
+
import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-8Kmti8S3.js";
|
|
20
|
+
import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-DF2dSmNh.js";
|
|
21
|
+
import { r as EVENT_AUTHOR_ID } from "./prompt-3D0sSbTC.js";
|
|
22
|
+
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-ZDwJ6a3N.js";
|
|
23
|
+
import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-C5JaRRcE.js";
|
|
24
24
|
import { n as privateTraceResultAttributes } from "./private-trace-result-BLvBjy_e.js";
|
|
25
25
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
26
26
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -9154,6 +9154,7 @@ var McpToolManager = class {
|
|
|
9154
9154
|
};
|
|
9155
9155
|
const cards = await this.options.onToolSuccess?.({
|
|
9156
9156
|
arguments: resolvedArgs,
|
|
9157
|
+
content: toAgentToolContent(result),
|
|
9157
9158
|
provider: plugin.manifest.name,
|
|
9158
9159
|
...result.structuredContent !== void 0 ? { structuredContent: result.structuredContent } : void 0,
|
|
9159
9160
|
toolName: tool.name
|
|
@@ -21934,7 +21935,7 @@ function createAgentRunner(execute, options) {
|
|
|
21934
21935
|
} } : void 0
|
|
21935
21936
|
};
|
|
21936
21937
|
if (run.instruction.storedAttachments?.length) {
|
|
21937
|
-
const { loadInputImages } = await import("./images-
|
|
21938
|
+
const { loadInputImages } = await import("./images-zuEwjVKU.js").then((n) => n.n);
|
|
21938
21939
|
const storage = nextRun.environment?.attachmentStorage;
|
|
21939
21940
|
if (!storage) throw new Error("Attachment storage is unavailable.");
|
|
21940
21941
|
nextRun.instruction = {
|
package/dist/api/schema.d.ts
CHANGED
|
@@ -1040,6 +1040,31 @@ export declare const conversationReportEventSchema: z.ZodObject<{
|
|
|
1040
1040
|
aborted: "aborted";
|
|
1041
1041
|
}>;
|
|
1042
1042
|
}, z.core.$strict>], "type">;
|
|
1043
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
1044
|
+
modelId: z.ZodString;
|
|
1045
|
+
modelProfile: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
}, z.core.$strict>>;
|
|
1048
|
+
modelCall: z.ZodOptional<z.ZodObject<{
|
|
1049
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
api: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1053
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1055
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1056
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
1057
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1058
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1059
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1060
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
1061
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
1062
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
1063
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1065
|
+
}, z.core.$strict>>;
|
|
1066
|
+
}, z.core.$strict>>;
|
|
1067
|
+
}, z.core.$strict>>;
|
|
1043
1068
|
}, z.core.$strict>;
|
|
1044
1069
|
/** Availability of the canonical event history attached to a detail report. */
|
|
1045
1070
|
export declare const conversationEventHistorySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1576,6 +1601,31 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
|
|
|
1576
1601
|
aborted: "aborted";
|
|
1577
1602
|
}>;
|
|
1578
1603
|
}, z.core.$strict>], "type">;
|
|
1604
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
1605
|
+
modelId: z.ZodString;
|
|
1606
|
+
modelProfile: z.ZodOptional<z.ZodString>;
|
|
1607
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
}, z.core.$strict>>;
|
|
1609
|
+
modelCall: z.ZodOptional<z.ZodObject<{
|
|
1610
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
api: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1614
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1615
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1616
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1617
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
1618
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1619
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1620
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1621
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
1622
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
1623
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
1624
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
1625
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1626
|
+
}, z.core.$strict>>;
|
|
1627
|
+
}, z.core.$strict>>;
|
|
1628
|
+
}, z.core.$strict>>;
|
|
1579
1629
|
}, z.core.$strict>>;
|
|
1580
1630
|
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1581
1631
|
status: z.ZodLiteral<"available">;
|
|
@@ -1834,6 +1884,31 @@ export declare const conversationEventPageSchema: z.ZodObject<{
|
|
|
1834
1884
|
aborted: "aborted";
|
|
1835
1885
|
}>;
|
|
1836
1886
|
}, z.core.$strict>], "type">;
|
|
1887
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
1888
|
+
modelId: z.ZodString;
|
|
1889
|
+
modelProfile: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
1891
|
+
}, z.core.$strict>>;
|
|
1892
|
+
modelCall: z.ZodOptional<z.ZodObject<{
|
|
1893
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1894
|
+
api: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
1896
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1897
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1898
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1899
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
1900
|
+
cacheCreationTokens: z.ZodOptional<z.ZodNumber>;
|
|
1901
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1902
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
1903
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
1904
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
1905
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
1906
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
1907
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
1909
|
+
}, z.core.$strict>>;
|
|
1910
|
+
}, z.core.$strict>>;
|
|
1911
|
+
}, z.core.$strict>>;
|
|
1837
1912
|
}, z.core.$strict>>;
|
|
1838
1913
|
eventHistory: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1839
1914
|
status: z.ZodLiteral<"available">;
|
package/dist/api/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MAX_INPUT_IMAGE_BYTES, C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, J as conversationTurnFailureCodeSchema, M as INPUT_IMAGE_TYPES, O as createConversationMessageBodySchema, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, V as messageCardText, W as resolveMessageCards, Y as conversationTurnFailureReasonSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as MAX_INPUT_IMAGES, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-
|
|
1
|
+
import { A as MAX_INPUT_IMAGE_BYTES, C as conversationReportEventSchema, D as createConversationBodySchema, E as conversationSummaryReportSchema, J as conversationTurnFailureCodeSchema, M as INPUT_IMAGE_TYPES, O as createConversationMessageBodySchema, S as conversationReportEventDataSchema, T as conversationStatsReportSchema, V as messageCardText, W as resolveMessageCards, Y as conversationTurnFailureReasonSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as MAX_INPUT_IMAGES, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-CPjHYOV5.js";
|
|
2
2
|
import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentItemReportSchema, b as pluginsSchema, g as pluginOperationalReportSchema, h as pluginOperationalReportFeedSchema, m as healthReportSchema, t as webMessageId, v as pluginPackageContentReportSchema, x as runtimeInfoReportSchema, y as pluginSchema } from "../web-message-id-xPI_EFSC.js";
|
|
3
|
-
import { A as actorProfileReportSchema, B as dailyConversationActivitySchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, E as personalTokenMetadataSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, H as codeChangeSummaryReportSchema, I as locationParamsSchema, K as codeRepositorySummarySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, S as scheduledAutomationSummarySchema, T as personalTokenListSchema, U as codeChangeSummarySchema, V as codeActivityDaySchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, b as automationSummarySchema, c as workspaceRepoSchema, d as automationExecutionSchema, f as automationExecutionStatusDaySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, p as automationExecutionStatusSchema, q as apiErrorSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as automationExecutionListSchema, v as automationRunSchema, w as createdPersonalTokenSchema, x as eventAutomationSummarySchema, y as automationRunWindowsSchema } from "../schema-
|
|
3
|
+
import { A as actorProfileReportSchema, B as dailyConversationActivitySchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, E as personalTokenMetadataSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, H as codeChangeSummaryReportSchema, I as locationParamsSchema, K as codeRepositorySummarySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, S as scheduledAutomationSummarySchema, T as personalTokenListSchema, U as codeChangeSummarySchema, V as codeActivityDaySchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, b as automationSummarySchema, c as workspaceRepoSchema, d as automationExecutionSchema, f as automationExecutionStatusDaySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, p as automationExecutionStatusSchema, q as apiErrorSchema, r as baselineSnapshotSchema, s as workspaceParamsSchema, t as statSchema, u as automationExecutionListSchema, v as automationRunSchema, w as createdPersonalTokenSchema, x as eventAutomationSummarySchema, y as automationRunWindowsSchema } from "../schema-DuGfOm4u.js";
|
|
4
4
|
export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationSummarySchema, baselineSnapshotSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositorySummarySchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, eventAutomationSummarySchema, healthReportSchema, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, skillReportSchema, skillReportsSchema, statSchema, statsReportSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Ct as cancelHumanFacingPendingMessages, M as parseSlackThreadId, Nt as getConversation, b as readStats, k as readLiveAttachment } from "./agent-runner-
|
|
2
|
-
import { d as logException, p as logWarn } from "./logging-
|
|
1
|
+
import { Ct as cancelHumanFacingPendingMessages, M as parseSlackThreadId, Nt as getConversation, b as readStats, k as readLiveAttachment } from "./agent-runner-BKOtZjez.js";
|
|
2
|
+
import { d as logException, p as logWarn } from "./logging-BS563NYn.js";
|
|
3
3
|
import { b as parseSlackMessageTs, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-0Et9iVSB.js";
|
|
4
|
-
import { $ as resolveViewerUser, $t as getConversationStore, At as conversationNotArchivedForEmail, Ct as createPluginLogger, D as SANDBOX_RUNTIME, Dt as conversationArchivedForUser, Et as conversationArchivedForEmail, Ft as readConversationEventPage, Gt as listConversationAnnotationsById, It as buildSentryConversationUrl, J as withSlackRetries, Mt as viewerConversationMembership, Ot as conversationHasParticipantEmail, Pt as readLatestConversationBrief, S as WorkspaceValidationError, Tt as conversationArchiveTimes, U as getSlackClient, Wt as listConversationAnnotations, Z as findUserByEmail, _ as deleteWorkspace, an as locationFromRow, b as listWorkspaces, dn as agentTurnUsageSchema, en as getDb, et as updateViewerDisplayName, fn as hasAgentTurnUsage, g as createWorkspace, j as workspaceRepoCheckoutPath, jt as conversationNotArchivedForUser, kt as conversationHasParticipantUser, pn as resolveRootConversationId, sn as parseSessionSource, tn as getSqlExecutor, u as getPlugins, v as getWorkspace, wt as readConversationAccessFromSql, x as updateWorkspace } from "./agent-hooks-
|
|
4
|
+
import { $ as resolveViewerUser, $t as getConversationStore, At as conversationNotArchivedForEmail, Ct as createPluginLogger, D as SANDBOX_RUNTIME, Dt as conversationArchivedForUser, Et as conversationArchivedForEmail, Ft as readConversationEventPage, Gt as listConversationAnnotationsById, It as buildSentryConversationUrl, J as withSlackRetries, Mt as viewerConversationMembership, Ot as conversationHasParticipantEmail, Pt as readLatestConversationBrief, S as WorkspaceValidationError, Tt as conversationArchiveTimes, U as getSlackClient, Wt as listConversationAnnotations, Z as findUserByEmail, _ as deleteWorkspace, an as locationFromRow, b as listWorkspaces, dn as agentTurnUsageSchema, en as getDb, et as updateViewerDisplayName, fn as hasAgentTurnUsage, g as createWorkspace, j as workspaceRepoCheckoutPath, jt as conversationNotArchivedForUser, kt as conversationHasParticipantUser, pn as resolveRootConversationId, sn as parseSessionSource, tn as getSqlExecutor, u as getPlugins, v as getWorkspace, wt as readConversationAccessFromSql, x as updateWorkspace } from "./agent-hooks-DATy_Hnt.js";
|
|
5
5
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
6
|
-
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-
|
|
7
|
-
import { D as createConversationBodySchema, M as INPUT_IMAGE_TYPES, O as createConversationMessageBodySchema, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as readMessageAttachments, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-
|
|
8
|
-
import { n as hash, t as create } from "./profile-
|
|
9
|
-
import { t as getCachedSnapshot } from "./resolve-
|
|
10
|
-
import { a as getVercelConversationWorkQueue } from "./job-queue-
|
|
6
|
+
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-BGDb_cM-.js";
|
|
7
|
+
import { D as createConversationBodySchema, M as INPUT_IMAGE_TYPES, O as createConversationMessageBodySchema, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as readMessageAttachments, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-CPjHYOV5.js";
|
|
8
|
+
import { n as hash, t as create } from "./profile-C4_njQYA.js";
|
|
9
|
+
import { t as getCachedSnapshot } from "./resolve-ZDwJ6a3N.js";
|
|
10
|
+
import { a as getVercelConversationWorkQueue } from "./job-queue-C5JaRRcE.js";
|
|
11
11
|
import { C as skillReportsSchema, a as fillUtcHours, b as pluginsSchema, c as sumUtcHoursIntoSixHours, d as trailingUtcSixHourWindow, f as utcDayKey, h as pluginOperationalReportFeedSchema, i as fillUtcDays, l as trailingUtcDayWindow, m as healthReportSchema, n as DAY_MS$1, o as fillUtcSixHours, p as utcHourKey, r as HOUR_MS$1, s as startOfUtcHour, u as trailingUtcHourWindow, x as runtimeInfoReportSchema } from "./web-message-id-xPI_EFSC.js";
|
|
12
|
-
import { F as createVercelAttachmentStorage, _ as readViewerAutomations, a as webActorFromEmail, b as clearSlackPendingReactions, c as getProductionSlackAdapter, d as ViewerTaskNotFoundError, f as deleteViewerTask, h as readViewerAutomationRuns, k as legacyWebMailboxMetadataSchema, l as formatSlackConversationRedactedLabel, m as readViewerAutomationExecutions, p as readConversationSourceTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as resolveSlackConversationContextFromThreadId, x as lookupSlackUser, z as readHealthReport } from "./web-input-
|
|
13
|
-
import { A as conversationAggregateColumns, j as conversationRangeColumns, k as conversationActiveDaysColumn } from "./task-runner-
|
|
14
|
-
import { r as getWebAuthorization } from "./web-authorization-
|
|
15
|
-
import { t as decodeInputImages } from "./images-
|
|
16
|
-
import { A as actorProfileReportSchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, R as activityHours$1, T as personalTokenListSchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, q as apiErrorSchema, s as workspaceParamsSchema, u as automationExecutionListSchema, w as createdPersonalTokenSchema, z as activitySixHours$1 } from "./schema-
|
|
12
|
+
import { F as createVercelAttachmentStorage, _ as readViewerAutomations, a as webActorFromEmail, b as clearSlackPendingReactions, c as getProductionSlackAdapter, d as ViewerTaskNotFoundError, f as deleteViewerTask, h as readViewerAutomationRuns, k as legacyWebMailboxMetadataSchema, l as formatSlackConversationRedactedLabel, m as readViewerAutomationExecutions, p as readConversationSourceTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as resolveSlackConversationContextFromThreadId, x as lookupSlackUser, z as readHealthReport } from "./web-input-zUQoZMZw.js";
|
|
13
|
+
import { A as conversationAggregateColumns, j as conversationRangeColumns, k as conversationActiveDaysColumn } from "./task-runner-D23tSETM.js";
|
|
14
|
+
import { r as getWebAuthorization } from "./web-authorization-CVSTvY_D.js";
|
|
15
|
+
import { t as decodeInputImages } from "./images-zuEwjVKU.js";
|
|
16
|
+
import { A as actorProfileReportSchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, R as activityHours$1, T as personalTokenListSchema, W as codeOverviewReportSchema, _ as automationRunListSchema, a as workspaceBodySchema, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, o as workspaceListSchema, q as apiErrorSchema, s as workspaceParamsSchema, u as automationExecutionListSchema, w as createdPersonalTokenSchema, z as activitySixHours$1 } from "./schema-DuGfOm4u.js";
|
|
17
17
|
import { Hono } from "hono";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { z } from "zod";
|
|
@@ -3059,7 +3059,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3059
3059
|
reports: [],
|
|
3060
3060
|
source: "plugins"
|
|
3061
3061
|
});
|
|
3062
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
3062
|
+
const { getPluginProfileReports } = await import("./agent-hooks-DATy_Hnt.js").then((n) => n.t);
|
|
3063
3063
|
return pluginOperationalReportFeedSchema.parse({
|
|
3064
3064
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3065
3065
|
reports: await getPluginProfileReports({
|
|
@@ -3668,7 +3668,7 @@ function readDescriptionText(home) {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
3670
3670
|
async function readSkillReports() {
|
|
3671
|
-
const { discoverSkills } = await import("./skills-
|
|
3671
|
+
const { discoverSkills } = await import("./skills-CN-ye6on.js").then((n) => n.o);
|
|
3672
3672
|
const skills = await discoverSkills();
|
|
3673
3673
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3674
3674
|
name: skill.name,
|
|
@@ -3677,7 +3677,7 @@ async function readSkillReports() {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3679
3679
|
async function readPlugins() {
|
|
3680
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3680
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-xFtmw3oA.js").then((n) => n.t);
|
|
3681
3681
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3682
3682
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3683
3683
|
description: plugin.manifest.description,
|
|
@@ -3689,7 +3689,7 @@ async function readPlugins() {
|
|
|
3689
3689
|
async function readRuntimeInfoReport() {
|
|
3690
3690
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3691
3691
|
import("./package-discovery-7a9YqLhE.js").then((n) => n.r),
|
|
3692
|
-
import("./catalog-runtime-
|
|
3692
|
+
import("./catalog-runtime-xFtmw3oA.js").then((n) => n.t),
|
|
3693
3693
|
readPlugins(),
|
|
3694
3694
|
readSkillReports()
|
|
3695
3695
|
]);
|
|
@@ -3706,7 +3706,7 @@ async function readRuntimeInfoReport() {
|
|
|
3706
3706
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3707
3707
|
async function readPluginOperationalReportFeed() {
|
|
3708
3708
|
const nowMs = Date.now();
|
|
3709
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
3709
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-DATy_Hnt.js").then((n) => n.t);
|
|
3710
3710
|
return pluginOperationalReportFeedSchema.parse({
|
|
3711
3711
|
source: "plugins",
|
|
3712
3712
|
generatedAt: new Date(nowMs).toISOString(),
|
package/dist/app.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { $ as collectEventAutomationMatchKeys, A as requestAttachmentDeletion, An as getConfigDefaults, Bt as removeActiveConversation, C as readPublicArtifact, Cn as createUserTokenStore, Et as clearExpiredConversationLease, Ft as hasRunnableConversationWork, G as readScheduledAutomation, H as listScheduledAutomations, Ht as requestConversationWork, It as listActiveConversationIds, J as scheduledRunId, Jt as hasRunnableConversationWork$1, Kt as CONVERSATION_WORK_STALE_ENQUEUE_MS, L as logScheduledAutomationRunSkipped, M as parseSlackThreadId, Mt as ensureConversationWake, Nt as getConversation, O as collectAttachmentGarbage, Pt as getConversationWorkState, Q as effectiveTaskOutcomes, R as scheduledAutomationRunAttributes, S as publicArtifactHeaders, Sn as slackExternalRefIdSchema, T as lookupSlackUserProfile, U as listScheduledAutomationsForTeam, Wt as stopConversationWork, X as scheduledRunSchema, Xt as isInvalidConversationRecordError, Y as withScheduledAutomationLock, Zt as renderTaskInput, _t as getEventCatalog, a as isExperimentalFeatureEnabled, an as consumeSandboxEgressAuthRequiredSignal, en as resolveSandboxEgressProviderForHost, f as deleteMcpAuthSessionsForUserProvider, fn as startOAuthFlow, i as getExperimentalFeatures, in as clearSandboxEgressSignals, jn as setConfigDefaults, l as executeCredentialedEgressRequest, ln as formatProviderLabel, m as deleteMcpStoredOAuthCredentials, mt as ingestEvent, nn as shouldPropagateSandboxEgressTrace, nt as findMatchingEventAutomations, o as setExperimentalFeatures, on as consumeSandboxEgressPermissionDeniedSignal, p as deleteMcpServerSessionId, pt as processWorkspaceSnapshotJob, q as saveScheduledAutomationInLock, rn as SANDBOX_EGRESS_PROXY_PATH, s as executeAgentRun, sn as parseSandboxEgressCredentialToken, t as createAgentRunner, tn as normalizeSandboxEgressTracePropagationDomains, vt as eventGuidance, w as unpublishedArtifactHeaders, xn as slackEntitySchema, xt as appendAndEnqueueInboundMessage, z as getNextRunAtMs } from "./agent-runner-
|
|
2
|
-
import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-
|
|
1
|
+
import { $ as collectEventAutomationMatchKeys, A as requestAttachmentDeletion, An as getConfigDefaults, Bt as removeActiveConversation, C as readPublicArtifact, Cn as createUserTokenStore, Et as clearExpiredConversationLease, Ft as hasRunnableConversationWork, G as readScheduledAutomation, H as listScheduledAutomations, Ht as requestConversationWork, It as listActiveConversationIds, J as scheduledRunId, Jt as hasRunnableConversationWork$1, Kt as CONVERSATION_WORK_STALE_ENQUEUE_MS, L as logScheduledAutomationRunSkipped, M as parseSlackThreadId, Mt as ensureConversationWake, Nt as getConversation, O as collectAttachmentGarbage, Pt as getConversationWorkState, Q as effectiveTaskOutcomes, R as scheduledAutomationRunAttributes, S as publicArtifactHeaders, Sn as slackExternalRefIdSchema, T as lookupSlackUserProfile, U as listScheduledAutomationsForTeam, Wt as stopConversationWork, X as scheduledRunSchema, Xt as isInvalidConversationRecordError, Y as withScheduledAutomationLock, Zt as renderTaskInput, _t as getEventCatalog, a as isExperimentalFeatureEnabled, an as consumeSandboxEgressAuthRequiredSignal, en as resolveSandboxEgressProviderForHost, f as deleteMcpAuthSessionsForUserProvider, fn as startOAuthFlow, i as getExperimentalFeatures, in as clearSandboxEgressSignals, jn as setConfigDefaults, l as executeCredentialedEgressRequest, ln as formatProviderLabel, m as deleteMcpStoredOAuthCredentials, mt as ingestEvent, nn as shouldPropagateSandboxEgressTrace, nt as findMatchingEventAutomations, o as setExperimentalFeatures, on as consumeSandboxEgressPermissionDeniedSignal, p as deleteMcpServerSessionId, pt as processWorkspaceSnapshotJob, q as saveScheduledAutomationInLock, rn as SANDBOX_EGRESS_PROXY_PATH, s as executeAgentRun, sn as parseSandboxEgressCredentialToken, t as createAgentRunner, tn as normalizeSandboxEgressTracePropagationDomains, vt as eventGuidance, w as unpublishedArtifactHeaders, xn as slackEntitySchema, xt as appendAndEnqueueInboundMessage, z as getNextRunAtMs } from "./agent-runner-BKOtZjez.js";
|
|
2
|
+
import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-BS563NYn.js";
|
|
3
3
|
import { r as continueTrace } from "./sentry-CgWZM_kV.js";
|
|
4
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
5
|
-
import { a as getChatConfig, f as setBotModelConfig, i as configureFunctionMaxDurationSeconds, m as setSlackReactionConfig, n as botConfig, p as setProfiles, s as getSlackBotToken, u as getSlackReactionConfig } from "./config-
|
|
4
|
+
import { t as JUNIOR_VERSION } from "./version-B2rspCmP.js";
|
|
5
|
+
import { a as getChatConfig, f as setBotModelConfig, i as configureFunctionMaxDurationSeconds, m as setSlackReactionConfig, n as botConfig, p as setProfiles, s as getSlackBotToken, u as getSlackReactionConfig } from "./config-XtycpE-i.js";
|
|
6
6
|
import { _ as slackChannelIdSchema, g as parseSlackUserId, h as parseSlackTeamId, u as parseActorUserId, v as slackTeamIdSchema, x as slackMessageTsSchema, y as slackUserIdSchema } from "./context-0Et9iVSB.js";
|
|
7
|
-
import { $t as getConversationStore, Ct as createPluginLogger, F as bindSlackDirectCredentialSubject, G as isDmChannel, I as verifyEventAutomationCredentialSubject, L as verifyScheduledAutomationCredentialSubject, N as bindEventAutomationCredentialSubject, P as bindScheduledAutomationCredentialSubject, Q as readActorIdentity, R as verifySlackDirectCredentialSubject, U as getSlackClient, Vt as resolveRootVisibility, Wt as listConversationAnnotations, X as runWithWorkspaceTeamId, Y as getWorkspaceTeamId, Zt as getConversationEventStore, a as getPluginRoutes, bt as createPluginState, ct as collectEventMatchKeys, d as setPlugins, en as getDb, f as validatePlugins, ft as findMatchingWatches, gt as getDashboardConversationLink, h as setBriefsConfig, i as getPluginApiRoutes, in as withConversationMutationLock, mn as deleteProviderIdentityForSlackUser, mt as takeDueTimerWatches, ot as cancelSubscriptions, rn as withConversationEventLock, tn as getSqlExecutor, u as getPlugins, vt as getDashboardTaskLink, wt as readConversationAccessFromSql, yt as setDashboardConversationLinkOptions } from "./agent-hooks-
|
|
7
|
+
import { $t as getConversationStore, Ct as createPluginLogger, F as bindSlackDirectCredentialSubject, G as isDmChannel, I as verifyEventAutomationCredentialSubject, L as verifyScheduledAutomationCredentialSubject, N as bindEventAutomationCredentialSubject, P as bindScheduledAutomationCredentialSubject, Q as readActorIdentity, R as verifySlackDirectCredentialSubject, U as getSlackClient, Vt as resolveRootVisibility, Wt as listConversationAnnotations, X as runWithWorkspaceTeamId, Y as getWorkspaceTeamId, Zt as getConversationEventStore, a as getPluginRoutes, bt as createPluginState, ct as collectEventMatchKeys, d as setPlugins, en as getDb, f as validatePlugins, ft as findMatchingWatches, gt as getDashboardConversationLink, h as setBriefsConfig, i as getPluginApiRoutes, in as withConversationMutationLock, mn as deleteProviderIdentityForSlackUser, mt as takeDueTimerWatches, ot as cancelSubscriptions, rn as withConversationEventLock, tn as getSqlExecutor, u as getPlugins, vt as getDashboardTaskLink, wt as readConversationAccessFromSql, yt as setDashboardConversationLinkOptions } from "./agent-hooks-DATy_Hnt.js";
|
|
8
8
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
9
|
-
import { E as juniorConversations, a as juniorSchedulerRuns, f as juniorAgentBindings, g as juniorConversationBriefs, o as juniorSchedulerTasks, p as juniorAgentInvocations, y as juniorConversationEvents } from "./executor-
|
|
10
|
-
import { z as annotationCard } from "./conversation-
|
|
11
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
12
|
-
import { X as projectConversationMessages, q as appendConversationMessages } from "./checkpoint-
|
|
13
|
-
import { O as withLock$1, w as getStateAdapter } from "./profile-
|
|
14
|
-
import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-
|
|
15
|
-
import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
16
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
9
|
+
import { E as juniorConversations, a as juniorSchedulerRuns, f as juniorAgentBindings, g as juniorConversationBriefs, o as juniorSchedulerTasks, p as juniorAgentInvocations, y as juniorConversationEvents } from "./executor-BGDb_cM-.js";
|
|
10
|
+
import { z as annotationCard } from "./conversation-CPjHYOV5.js";
|
|
11
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-xFtmw3oA.js";
|
|
12
|
+
import { X as projectConversationMessages, q as appendConversationMessages } from "./checkpoint-zkEB448J.js";
|
|
13
|
+
import { O as withLock$1, w as getStateAdapter } from "./profile-C4_njQYA.js";
|
|
14
|
+
import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-ZDwJ6a3N.js";
|
|
15
|
+
import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-C5JaRRcE.js";
|
|
16
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BrLB5qbC.js";
|
|
17
17
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-egKWjgue.js";
|
|
18
|
-
import { A as THREAD_OPTOUT_ACK, C as verifySlackSignature, D as withNormalizedThreadId, E as normalizeIncomingSlackThreadId, F as createVercelAttachmentStorage, L as enqueueAgentDispatch, M as parseContent, N as getThreadStopDecision, O as getAuthPausedConversationTurnId, P as renderSlackObjectCard, R as GET$3, S as runWithSlackInstallation, T as stopSlackThread, a as webActorFromEmail, b as clearSlackPendingReactions, c as getProductionSlackAdapter, g as readViewerAutomationSummary, i as recordWebConversationActivity, j as startProcessingReaction, n as conversationTurnIdForMessage, o as createProductionConversationWorkOptions, s as createProductionSlackWebhookServices, t as appendAndEnqueueWebMessage, v as recordSkippedConversationMessage, w as isSlackMessageStopped, y as buildSlackInboundMessage } from "./web-input-
|
|
19
|
-
import { O as recordAutomationExecution, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId } from "./task-runner-
|
|
20
|
-
import { c as listPendingAgentInvocationMailboxAppends, r as enqueueAgentInvocation } from "./work-
|
|
21
|
-
import { s as coerceThreadConversationState } from "./thread-state-
|
|
22
|
-
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
23
|
-
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-
|
|
24
|
-
import { t as processConversationWork } from "./worker-
|
|
25
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
18
|
+
import { A as THREAD_OPTOUT_ACK, C as verifySlackSignature, D as withNormalizedThreadId, E as normalizeIncomingSlackThreadId, F as createVercelAttachmentStorage, L as enqueueAgentDispatch, M as parseContent, N as getThreadStopDecision, O as getAuthPausedConversationTurnId, P as renderSlackObjectCard, R as GET$3, S as runWithSlackInstallation, T as stopSlackThread, a as webActorFromEmail, b as clearSlackPendingReactions, c as getProductionSlackAdapter, g as readViewerAutomationSummary, i as recordWebConversationActivity, j as startProcessingReaction, n as conversationTurnIdForMessage, o as createProductionConversationWorkOptions, s as createProductionSlackWebhookServices, t as appendAndEnqueueWebMessage, v as recordSkippedConversationMessage, w as isSlackMessageStopped, y as buildSlackInboundMessage } from "./web-input-zUQoZMZw.js";
|
|
19
|
+
import { O as recordAutomationExecution, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId } from "./task-runner-D23tSETM.js";
|
|
20
|
+
import { c as listPendingAgentInvocationMailboxAppends, r as enqueueAgentInvocation } from "./work-BXbJVOZI.js";
|
|
21
|
+
import { s as coerceThreadConversationState } from "./thread-state-BbxSiDa9.js";
|
|
22
|
+
import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-vufd6gwK.js";
|
|
23
|
+
import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-DPaZtxld.js";
|
|
24
|
+
import { t as processConversationWork } from "./worker-ClkQ9S9C.js";
|
|
25
|
+
import { t as bindSpawnAgent } from "./spawn-B8KYOBcU.js";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
27
27
|
import { pathToFileURL } from "node:url";
|
|
28
28
|
import { Hono } from "hono";
|
|
@@ -1757,7 +1757,7 @@ async function presentSlackAnnotationDetails(event, teamId) {
|
|
|
1757
1757
|
await missing();
|
|
1758
1758
|
return;
|
|
1759
1759
|
}
|
|
1760
|
-
const entity = renderSlackObjectCard(annotationCard(annotation), conversationId).entity;
|
|
1760
|
+
const entity = renderSlackObjectCard(annotationCard(annotation), conversationId, "details").entity;
|
|
1761
1761
|
if (!entity) {
|
|
1762
1762
|
await missing();
|
|
1763
1763
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as completeObject } from "./client-
|
|
1
|
+
import { r as completeObject } from "./client-CJUZHY9Y.js";
|
|
2
2
|
import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
3
|
-
import { P as briefCodeChangeSchema, R as parseBriefInput, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-
|
|
4
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
3
|
+
import { P as briefCodeChangeSchema, R as parseBriefInput, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-CPjHYOV5.js";
|
|
4
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-3D0sSbTC.js";
|
|
5
5
|
import { CLI_USAGE } from "./cli/run.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { z } from "zod";
|
|
@@ -269,7 +269,7 @@ async function parseRunOptions(argv) {
|
|
|
269
269
|
* `DATABASE_URL` at import, and `briefs pull` must work with only a token.
|
|
270
270
|
*/
|
|
271
271
|
async function configuredDefaultModelId() {
|
|
272
|
-
const { botConfig } = await import("./config-
|
|
272
|
+
const { botConfig } = await import("./config-XtycpE-i.js").then((n) => n.r);
|
|
273
273
|
return defaultModelId(botConfig);
|
|
274
274
|
}
|
|
275
275
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-BhiLWAY6.js";
|
|
3
3
|
//#region src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-
|
|
2
|
-
import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
1
|
+
import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-CJUZHY9Y.js";
|
|
2
|
+
import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-BS563NYn.js";
|
|
3
|
+
import { n as botConfig } from "./config-XtycpE-i.js";
|
|
4
4
|
import { b as parseSlackMessageTs, f as toStoredSlackActor } from "./context-0Et9iVSB.js";
|
|
5
|
-
import { $t as getConversationStore, Jt as authenticationLinkedEvent, Kt as JUNIOR_NATIVE_EVENT_NAMESPACE, Yt as authenticationUnlinkedEvent, Zt as getConversationEventStore, cn as addAgentTurnUsage, nn as createSqlConversationEventStore, on as bindProviderConversation, qt as agentsInstructionsUpdatedEvent, rn as withConversationEventLock, tn as getSqlExecutor } from "./agent-hooks-
|
|
6
|
-
import { B as messageCardRef, K as agentHistoryItemSchema, et as contextProvenance, nt as instructionProvenanceFor, tt as instructionActors } from "./conversation-
|
|
7
|
-
import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-
|
|
5
|
+
import { $t as getConversationStore, Jt as authenticationLinkedEvent, Kt as JUNIOR_NATIVE_EVENT_NAMESPACE, Yt as authenticationUnlinkedEvent, Zt as getConversationEventStore, cn as addAgentTurnUsage, nn as createSqlConversationEventStore, on as bindProviderConversation, qt as agentsInstructionsUpdatedEvent, rn as withConversationEventLock, tn as getSqlExecutor } from "./agent-hooks-DATy_Hnt.js";
|
|
6
|
+
import { B as messageCardRef, K as agentHistoryItemSchema, et as contextProvenance, nt as instructionProvenanceFor, tt as instructionActors } from "./conversation-CPjHYOV5.js";
|
|
7
|
+
import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-C4_njQYA.js";
|
|
8
8
|
import { isDeepStrictEqual } from "node:util";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { createHash } from "node:crypto";
|