@sentry/junior 0.307.0 → 0.308.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-context-B69WPn6b.js → adapter-context-BO432242.js} +2 -2
- package/dist/{admin-nCJXMgkp.js → admin-vSmheo3Z.js} +2 -2
- package/dist/{agent-runner-DdFcxAxG.js → agent-runner-BnOofGFG.js} +22 -22
- package/dist/api.js +26 -26
- package/dist/{app-EZur8cVC.d.ts → app-CqYqy541.d.ts} +2 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -27
- package/dist/{background-compaction-queue-BhEe4UfU.js → background-compaction-queue-BpmDEQf6.js} +4 -4
- package/dist/{briefs-Dl9lxi7J.js → briefs-Dbh94cRp.js} +2 -2
- package/dist/{catalog-runtime-OXrv2Ewn.js → catalog-runtime-q9AJjuUN.js} +1 -1
- package/dist/cli/chat.js +16 -16
- 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 +5 -5
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-362yMSIz.js → config-Cx8H0MRw.js} +3 -3
- package/dist/{connections-BJv3EjmB.js → connections-DUylBPiR.js} +6 -6
- package/dist/{continue-in-slack-CFEevC7z.js → continue-in-slack-CtTv1tkn.js} +5 -5
- package/dist/{conversation-privacy-Tjj5P2W6.js → conversation-privacy-CivmFlWP.js} +1 -1
- package/dist/{conversation-turn-DU0_WDAr.js → conversation-turn-C9-Nfnsy.js} +14 -14
- package/dist/{credential-sync-D6aFARKE.js → credential-sync-CWIORwD9.js} +16 -16
- package/dist/{db-Bcbd9zQc.js → db-CO6Y10eM.js} +3 -3
- package/dist/{executor-DBMBrpNV.js → executor-Doo-N6Yn.js} +2 -2
- package/dist/{install-CgoAbzfF.js → install-Y2s9ZPvk.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-CsZDmz3e.js → lineage-BcqyhMyp.js} +2 -2
- package/dist/{logging-CHCuQ5iz.js → logging-DnBYBM8z.js} +1 -1
- package/dist/{message-B8vCbZZB.js → message-fSnXIqvl.js} +8 -8
- package/dist/{model-input-Xluiy-1W.js → model-input-DRChpXJ7.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +12 -4
- package/dist/{oauth-callback-server-BUuNvfvu.js → oauth-callback-server-BUU6zd_T.js} +2 -2
- package/dist/{oauth-relay-DGAZzg9m.js → oauth-relay-gO_Ynmpb.js} +1 -1
- package/dist/{projection-xPpvqexa.js → projection-Bqn6zdVT.js} +22 -15
- package/dist/{prompt-D8u4jFs_.js → prompt-DAjjk5fm.js} +3 -3
- package/dist/{registry-D20hG3r6.js → registry-tHJLCtKS.js} +1 -1
- package/dist/{resolve-BhCySRCW.js → resolve-z2sKt8xM.js} +3 -3
- package/dist/{result-DddO63S9.js → result-D2wshngt.js} +8 -8
- package/dist/{runner-DQR9vYce.js → runner-BvNPWLAy.js} +9 -9
- package/dist/{sandbox-egress-signals-DFlNUOnK.js → sandbox-egress-signals-CmHD-6vr.js} +1 -1
- package/dist/{service-account-CNfycv0z.js → service-account-B2d1Er_r.js} +3 -3
- package/dist/{service-account-Bv5QwrEq.js → service-account-CddxU-yC.js} +5 -5
- package/dist/{session-stop-BDdwyZaa.js → session-stop-BQ0J0Fph.js} +43 -16
- package/dist/{skills-63i1Bcv1.js → skills-Dm2-5nn5.js} +2 -2
- package/dist/{slack-conversation-unfurl-DtpBUlUu.js → slack-conversation-unfurl-CLH0tTLk.js} +10 -10
- package/dist/{spawn-mwimEY9_.js → spawn-PwAuSN59.js} +6 -6
- package/dist/{state-BBn9L6gC.js → state-rXH58smZ.js} +4 -4
- package/dist/{stop-Da-Ug7tg.js → stop-CcHPEcFE.js} +30 -30
- package/dist/{store-CdWg2r2L.js → store-7QA00oK6.js} +5 -5
- package/dist/{task-queue-BcjAYWyB.js → task-queue-DvQZH5rG.js} +3 -3
- package/dist/{task-runner-CoXmMlsW.js → task-runner-CyZMcuZy.js} +6 -6
- package/dist/{thread-context-ZPGqOjW7.js → thread-context-C-hLTQST.js} +6 -6
- package/dist/{turn-session-routing-DFYak28Q.js → turn-session-routing-Cqjj1B3i.js} +4 -4
- package/dist/{turn-user-message-B1S8nOnG.js → turn-user-message-DbU7MNd9.js} +3 -3
- package/dist/{users-DDbENg-I.js → users-B-UpCmw9.js} +1 -1
- package/dist/{validation-fl21ps-k.js → validation-BEUlev32.js} +1 -1
- package/dist/{version-DCdMMx_0.js → version-BE1OyrXV.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DN_xzVKj.js → viewer-CqOkWizK.js} +3 -3
- package/dist/{warmup-CxhEhm71.js → warmup-HFgFZFwS.js} +18 -18
- package/dist/{worker-Btb1SB5h.js → worker-CCEDWbsY.js} +8 -8
- package/package.json +7 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { A as normalizeConversationText, An as getPluginSystemPromptContributions,
|
|
3
|
-
import { $ as getStateAdapter, B as findLinkedSlackUser, I as resolveActorIdentityId, P as SYSTEM_IDENTITY_ID, T as isPersonInput, Tt as touchConversationDetail, V as findSlackUserByPrimaryEmail, X as createCache, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-
|
|
4
|
-
import { G as escapeTagText, H as escapeXmlText, Q as tagJson, R as isCompactionSummaryText, U as authorAttrs, V as escapeXml, W as escapeClosingTags, X as renderTag$1, Y as renderChildTag, n as botConfig, o as getSlackBotToken, z as renderCurrentInstruction } from "./config-
|
|
2
|
+
import { A as normalizeConversationText, An as getPluginSystemPromptContributions, Dc as eventCatalogEntry, Fa as SANDBOX_WORKSPACE_ROOT, Ia as sandboxSkillDir, Is as escapeSlackMrkdwnText, Kc as ToolInputError, La as sandboxSkillFile, Lo as findActorTimezone, Ls as formatSlackLink, Ma as SANDBOX_REPOS_ROOT, Mn as getPluginUserPromptContributions, Nn as getPlugins, Oc as eventGuidance, Pr as getReviewItem, Ra as sandboxSkillPathResolution, Ri as listWorkspaces, Rs as isTableRow, Vs as slackMention, _s as fitsSlackMetadataLimit, at as getTurnRecord, cl as JUNIOR_THREAD_STATE_TTL_MS, co as buildSentryConversationUrl, dr as stripRuntimeTurnContext, fs as postSlackMessage, gn as REPORT_BLOCKED_TOOL_NAME, gr as TURN_CONTEXT_TAG, hr as SESSION_CONTEXT_SECTION_TAG, it as getStoredTurnFields, ja as SANDBOX_DATA_ROOT, ji as verifyTimerWatchCredentialSubject, kn as getPluginSlackConversationLink, mr as REQUEST_CONTEXT_SECTION_TAG, nn as REPLY_TOOL_NAME, ot as listTurnSummaries, pi as cancelSubscriptions, pr as CAPABILITY_SECTION_TAG, rc as getDashboardObjectIconLink, tc as getDashboardConversationLink, tr as hasRuntimeTurnContext, un as NO_REPLY_TOOL_NAME, ur as retainRuntimeTurnContext, wc as CORE_EVENT_NAMESPACE, ws as getSlackClient, x as toStoredConversationMessage, ys as slackExternalRefIdSchema, zs as normalizeSlackReplyMarkdown } from "./projection-Bqn6zdVT.js";
|
|
3
|
+
import { $ as getStateAdapter, B as findLinkedSlackUser, I as resolveActorIdentityId, P as SYSTEM_IDENTITY_ID, T as isPersonInput, Tt as touchConversationDetail, V as findSlackUserByPrimaryEmail, X as createCache, a as getConversationStore, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { G as escapeTagText, H as escapeXmlText, Q as tagJson, R as isCompactionSummaryText, U as authorAttrs, V as escapeXml, W as escapeClosingTags, X as renderTag$1, Y as renderChildTag, n as botConfig, o as getSlackBotToken, z as renderCurrentInstruction } from "./config-Cx8H0MRw.js";
|
|
5
5
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-x4AvVhMj.js";
|
|
6
|
-
import { G as normalizeIdentityEmail, W as isNativeIdentityProvider, h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
7
|
-
import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as eventBotAuthorId, r as EVENT_AUTHOR_ID, s as isEventConversationMessage, x as conversationNoteEvent } from "./prompt-
|
|
6
|
+
import { G as normalizeIdentityEmail, W as isNativeIdentityProvider, h as logWarn, m as logInfo, p as logException, v as serializeGenAiAttribute } from "./logging-DnBYBM8z.js";
|
|
7
|
+
import { _ as JUNIOR_NATIVE_EVENT_NAMESPACE, a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as eventBotAuthorId, r as EVENT_AUTHOR_ID, s as isEventConversationMessage, x as conversationNoteEvent } from "./prompt-DAjjk5fm.js";
|
|
8
8
|
import { b as SELF_PLAN_ASSIGNEE, c as formatUserInputAnswer, h as isVisionImageMediaType, v as userCustomizationTextSchema, x as isOpenPlanItemStatus } from "./web-message-id-BT8Mg8LL.js";
|
|
9
|
-
import { B as juniorUsers, R as juniorConversations, c as juniorPlanItems, s as juniorPlanItemVersionSeq, v as juniorAgentBindings, z as juniorIdentities } from "./executor-
|
|
10
|
-
import { i as parseSkillFile } from "./skills-
|
|
11
|
-
import { a as toCanonicalInputMessage } from "./conversation-privacy-
|
|
9
|
+
import { B as juniorUsers, R as juniorConversations, c as juniorPlanItems, s as juniorPlanItemVersionSeq, v as juniorAgentBindings, z as juniorIdentities } from "./executor-Doo-N6Yn.js";
|
|
10
|
+
import { i as parseSkillFile } from "./skills-Dm2-5nn5.js";
|
|
11
|
+
import { a as toCanonicalInputMessage } from "./conversation-privacy-CivmFlWP.js";
|
|
12
12
|
import { o as isUserActor, p as parseSlackUserId, t as createActor } from "./actor-D2iXzvlN.js";
|
|
13
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
14
|
-
import { i as lookupSlackUserProfile, t as lookupActiveSlackWorkspaceMember } from "./users-
|
|
15
|
-
import { g as credentialSubjectSchema } from "./registry-
|
|
13
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-7QA00oK6.js";
|
|
14
|
+
import { i as lookupSlackUserProfile, t as lookupActiveSlackWorkspaceMember } from "./users-B-UpCmw9.js";
|
|
15
|
+
import { g as credentialSubjectSchema } from "./registry-tHJLCtKS.js";
|
|
16
16
|
import pLimit from "p-limit";
|
|
17
17
|
import * as z from "zod";
|
|
18
18
|
import { getCurrentSystemMessage, getSystemMessageText } from "@earendil-works/pi-ai/compat";
|
|
@@ -803,7 +803,7 @@ function buildCommunicationSection(platform, mode) {
|
|
|
803
803
|
return MODE_RULE_SETS[mode].flatMap((set) => buildCommunicationSections(platform, set.rules, senderAttributes(set))).join("\n\n");
|
|
804
804
|
}
|
|
805
805
|
/** Block 6 `<output>` lines for Slack formatting. */
|
|
806
|
-
const SLACK_MARKDOWN_RULES = ["- Use Slack-flavored Markdown: **bold**, `code`, [text](url) links, bullet lists, and fenced code blocks. No hash-prefixed headings and
|
|
806
|
+
const SLACK_MARKDOWN_RULES = ["- Use Slack-flavored Markdown: **bold**, `code`, [text](url) links, bullet lists, and fenced code blocks. No hash-prefixed headings. Use a Markdown table only for a small comparison with few columns and short cells, and start and end every row with `|`.", "- Write a Slack channel as `<#C…>` when you already know its ID, so Slack renders a channel link. Do not look up an ID only for formatting. When the ID is unknown, write plain `#name` and never invent an ID."];
|
|
807
807
|
function buildOutputSection(platform, mode, attributes = {}) {
|
|
808
808
|
const output = (format, lines) => renderRuleSection("output", lines, {
|
|
809
809
|
...attributes,
|
|
@@ -2149,14 +2149,41 @@ function takePrefix(text, maxChars) {
|
|
|
2149
2149
|
rest: text.slice(prefix.length).trimStart()
|
|
2150
2150
|
};
|
|
2151
2151
|
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Keep a pipe table readable when a split lands inside it. Each post renders
|
|
2154
|
+
* on its own, so rows without the header and delimiter rows show as text.
|
|
2155
|
+
* Move a table that starts mid-post to the next post. Repeat the header rows
|
|
2156
|
+
* when one table is longer than a post.
|
|
2157
|
+
*/
|
|
2158
|
+
function splitOutsideTable(text, prefix, rest) {
|
|
2159
|
+
const lines = prefix.split("\n");
|
|
2160
|
+
const gap = text.slice(prefix.length, text.length - rest.length);
|
|
2161
|
+
if (!isTableRow(lines.at(-1) ?? "") || !isTableRow(rest) || /\n\s*\n/.test(gap)) return {
|
|
2162
|
+
chunk: prefix,
|
|
2163
|
+
rest
|
|
2164
|
+
};
|
|
2165
|
+
let start = lines.length - 1;
|
|
2166
|
+
while (start > 0 && isTableRow(lines[start - 1] ?? "")) start--;
|
|
2167
|
+
const before = lines.slice(0, start).join("\n").trimEnd();
|
|
2168
|
+
const table = lines.slice(start);
|
|
2169
|
+
if (before) return {
|
|
2170
|
+
chunk: before,
|
|
2171
|
+
rest: `${table.join("\n")}\n${rest}`
|
|
2172
|
+
};
|
|
2173
|
+
if (table.length <= 2) return {
|
|
2174
|
+
chunk: prefix,
|
|
2175
|
+
rest
|
|
2176
|
+
};
|
|
2177
|
+
return {
|
|
2178
|
+
chunk: prefix,
|
|
2179
|
+
rest: `${table.slice(0, 2).join("\n")}\n${rest}`
|
|
2180
|
+
};
|
|
2181
|
+
}
|
|
2152
2182
|
/** Take one post that fits the budget, closing a code fence it leaves open. */
|
|
2153
2183
|
function takeChunk(text) {
|
|
2154
2184
|
let { prefix, rest } = takePrefix(text, MAX_INLINE_CHARS);
|
|
2155
2185
|
let carryover = getFenceContinuation(prefix);
|
|
2156
|
-
if (!carryover) return
|
|
2157
|
-
chunk: prefix,
|
|
2158
|
-
rest
|
|
2159
|
-
};
|
|
2186
|
+
if (!carryover) return splitOutsideTable(text, prefix, rest);
|
|
2160
2187
|
({prefix, rest} = takePrefix(text, MAX_INLINE_CHARS - carryover.closeSuffix.length));
|
|
2161
2188
|
carryover = getFenceContinuation(prefix);
|
|
2162
2189
|
if (!carryover || !rest) return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
2
|
import { s as skillRoots } from "./package-discovery-x4AvVhMj.js";
|
|
3
|
-
import { h as logWarn } from "./logging-
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
3
|
+
import { h as logWarn } from "./logging-DnBYBM8z.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs/promises";
|
package/dist/{slack-conversation-unfurl-DtpBUlUu.js → slack-conversation-unfurl-CLH0tTLk.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { Ct as deferConversationMove, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, Ns as getWorkspaceTeamId,
|
|
2
|
+
import { Ct as deferConversationMove, Is as escapeSlackMrkdwnText, Ls as formatSlackLink, Ns as getWorkspaceTeamId, ds as postSlackEphemeralMessage, lc as parseDashboardConversationLink, ms as unfurlSlackLinks, no as readLatestConversationBrief, qa as readConversationAccessFromSql } from "./projection-Bqn6zdVT.js";
|
|
3
3
|
import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
4
|
-
import { X as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-
|
|
5
|
-
import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-
|
|
6
|
-
import { E as withSpan } from "./logging-
|
|
7
|
-
import { i as readActorIdentity } from "./viewer-
|
|
8
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
9
|
-
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-
|
|
10
|
-
import { fr as checkSlackChannelReadAccess } from "./warmup-
|
|
11
|
-
import "./store-
|
|
12
|
-
import { n as botConfig } from "./config-
|
|
4
|
+
import { X as createCache, a as getConversationStore, o as getDb, s as getSqlExecutor, st as getConversationIdByProviderConversation } from "./db-CO6Y10eM.js";
|
|
5
|
+
import { i as lookupSlackUserProfile, n as lookupSlackBot } from "./users-B-UpCmw9.js";
|
|
6
|
+
import { E as withSpan } from "./logging-DnBYBM8z.js";
|
|
7
|
+
import { i as readActorIdentity } from "./viewer-CqOkWizK.js";
|
|
8
|
+
import { t as runWithSlackInstallation } from "./adapter-context-BO432242.js";
|
|
9
|
+
import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-CtTv1tkn.js";
|
|
10
|
+
import { fr as checkSlackChannelReadAccess } from "./warmup-HFgFZFwS.js";
|
|
11
|
+
import "./store-7QA00oK6.js";
|
|
12
|
+
import { n as botConfig } from "./config-Cx8H0MRw.js";
|
|
13
13
|
import * as z from "zod";
|
|
14
14
|
// src/chat/ingress/workspace-membership.ts
|
|
15
15
|
const MEMBER_TTL_MS = 3e5;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-
|
|
3
|
-
import { n as botConfig } from "./config-
|
|
4
|
-
import { t as readConversationLineage } from "./lineage-
|
|
5
|
-
import { _ as getConversationWorkState } from "./store-
|
|
6
|
-
import { Vt as getAgentInvocation, bn as AgentDepthLimitError, sn as createAndEnqueueAgentInvocation, wn as getAgentBinding } from "./warmup-
|
|
7
|
-
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-
|
|
2
|
+
import { F as actorFromRun, I as toolInvocationDestination } from "./agent-runner-BnOofGFG.js";
|
|
3
|
+
import { n as botConfig } from "./config-Cx8H0MRw.js";
|
|
4
|
+
import { t as readConversationLineage } from "./lineage-BcqyhMyp.js";
|
|
5
|
+
import { _ as getConversationWorkState } from "./store-7QA00oK6.js";
|
|
6
|
+
import { Vt as getAgentInvocation, bn as AgentDepthLimitError, sn as createAndEnqueueAgentInvocation, wn as getAgentBinding } from "./warmup-HFgFZFwS.js";
|
|
7
|
+
import { I as getUnnamedAgentConversationId, T as getAgentInvocationId, k as getAgentInvocationMessageId } from "./turn-user-message-DbU7MNd9.js";
|
|
8
8
|
// src/chat/agent-invocations/spawn.ts
|
|
9
9
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
3
|
-
import { o as getDb } from "./db-
|
|
4
|
-
import { B as juniorUsers } from "./executor-
|
|
1
|
+
import { i as getChatConfig } from "./config-Cx8H0MRw.js";
|
|
2
|
+
import { h as logWarn } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import { o as getDb } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { B as juniorUsers } from "./executor-Doo-N6Yn.js";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash, randomBytes } from "node:crypto";
|
|
6
6
|
import { eq } from "drizzle-orm";
|
|
7
7
|
// src/chat/conversations/legacy-web-actor-id.ts
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { $ as pauseLostWorkerTurn, $a as viewerMarksFromParticipant, $t as buildTurnErrorResponse, A as normalizeConversationText, As as streamPrivateSlackFile, B as PluginCredentialFailureError, Bo as lookupSlackUserNames, Br as takeReviewItem, Bt as releaseInboundMessage, Co as storeAttachment, Cs as getHeaderString, D as isHumanConversationMessage, Ds as isSlackRequestTimeout, E as getConversationMessageSlackTs, Es as isDmChannel, Fo as listConversationAnnotationsById, Fs as SLACK_USER_MENTION_RE, Ga as canAddConversationMessages, Hs as
|
|
2
|
-
import { F as textCharsForTokens, P as estimateTextTokens, V as escapeXml, c as getSlackClientSecret, i as getChatConfig, k as resolveGatewayModel, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, ot as isProviderRetryError, s as getSlackClientId, y as normalizeSlackEmojiName } from "./config-
|
|
3
|
-
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, K as isRecord, S as setTags, T as withLogContext, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, q as toOptionalNumber, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-
|
|
1
|
+
import { $ as pauseLostWorkerTurn, $a as viewerMarksFromParticipant, $t as buildTurnErrorResponse, A as normalizeConversationText, As as streamPrivateSlackFile, B as PluginCredentialFailureError, Bo as lookupSlackUserNames, Br as takeReviewItem, Bs as normalizeSlackStatusText, Bt as releaseInboundMessage, Co as storeAttachment, Cs as getHeaderString, D as isHumanConversationMessage, Ds as isSlackRequestTimeout, E as getConversationMessageSlackTs, Es as isDmChannel, Fo as listConversationAnnotationsById, Fs as SLACK_USER_MENTION_RE, Ga as canAddConversationMessages, Hs as slackMentionedUserIds, Ir as listReplyActionItems, J as clearPendingAuth, Ja as conversationHasParticipantUser, Jo as getDispatchInputMessageId, Ka as createConversationAccessReader, Ko as getDispatchConversationId, Kr as canUserReadReviewItem, Lr as listWaitingConversations, M as trimConversationMessages, N as turnHasReply, Nn as getPlugins, O as latestConversationMessageSeq, Os as normalizeSlackConversationId, P as upsertConversationMessage, Po as listConversationAnnotations, Pr as getReviewItem, Q as lostWorkerBeforeFirstSave, Qa as conversationViewerMarks, Qo as isTerminalDispatchStatus, Qr as reviewItemNeedsSomeone, S as resolveConversationTitle, T as estimateConversationMessagesTokens, Ua as createPluginLogger, Uo as claimDispatchMailboxAppend, Ur as canActOnReviewItem, Us as wrapBareSlackUserIds, W as AuthorizationFlowDisabledError, Wo as confirmDispatchMailboxAppend, Ws as truncateStatusText, Xa as conversationIsNotUnsubscribedRoot, Xn as storedMessageJson, Xo as getDispatchTurnId, Ya as conversationIsMemberRoot, Yo as getDispatchRecord, Z as loadTurnCheckpoint, Za as conversationPinnedForUser, _o as slackAttachmentsVersionQuery, a as loadProjection, ao as readConversationEventPageAround, at as getTurnRecord, b as persistConversationMessages, bn as createUserTokenStore, bs as SlackActionError, cc as isDashboardLink, cn as getAssistantReplyText, co as buildSentryConversationUrl, d as recordAuthorizationCompleted, dl as createPluginCache, do as notInheritedByForkChild, es as markDispatchAwaitingResume, et as saveTurnCheckpoint, fo as getSlackFileId, fr as trimTrailingAssistantMessages, go as recordSlackAttachment, h as recordSubscribedReplyRoute, hl as piMessageFromHistoryItem, i as loadConversationProjection, ic as getDashboardPersonLink, io as readConversationEventPageAfter, is as markDispatchRunning, j as recordDeliveredAssistantMessage, js as withSlackRetries, k as markConversationMessage, kr as closeReviewItem, lc as parseDashboardConversationLink, mo as readAttachmentVisionSummary, n as commitMessages, nc as getDashboardLinkFilter, no as readLatestConversationBrief, ns as markDispatchCompleted, nt as completeTurnRecord, o as loadTurnProjection, ol as fallbackShortTitle, os as addReactionToMessage, ot as listTurnSummaries, pi as cancelSubscriptions, pl as configValueSchema, ps as removeReactionFromMessage, qa as readConversationAccessFromSql, qo as getDispatchIdForConversation, qr as isOnlyAssignee, ra as resolveBaseUrl, rl as readAutomationTitlesByConversationId, ro as readConversationEventPage, rs as markDispatchFailed, rt as failTurnRecord, st as recordTurnSummary, t as commitAcceptedReply, tc as getDashboardConversationLink, ts as markDispatchBlocked, tt as abandonTurnRecord, uc as parseDashboardPersonLink, v as hydrateConversationMessages, vn as persistWithRetry, w as buildConversationContext, wn as applyPluginFormatMarkdown, ws as getSlackClient, xs as downloadPrivateSlackFile, y as persistConversationMessageWindow, yo as isFileAttachment, z as createPluginEgress, zo as lookupSlackUser } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { F as textCharsForTokens, P as estimateTextTokens, V as escapeXml, c as getSlackClientSecret, i as getChatConfig, k as resolveGatewayModel, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, ot as isProviderRetryError, s as getSlackClientId, y as normalizeSlackEmojiName } from "./config-Cx8H0MRw.js";
|
|
3
|
+
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, K as isRecord, S as setTags, T as withLogContext, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, q as toOptionalNumber, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-DnBYBM8z.js";
|
|
4
4
|
import { h as startSpan } from "./sentry-CPbZjomA.js";
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-BE1OyrXV.js";
|
|
6
6
|
import { f as parseSlackTeamId, i as isActorUserId, n as createSlackActor, o as isUserActor, r as createSlackResumeActor, s as parseActorUserId, t as createActor, u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
7
|
-
import { $ as getStateAdapter, A as conversationKindFromRow, D as postsRunNotices, E as isTopLevelKind, Et as createSlackDestination, I as resolveActorIdentityId, L as saveActorAvatar, Ot as requireSlackDestination, X as createCache, Y as readCachedUserByEmail, _ as readConversationTrees, a as getConversationStore, b as lastMessageAtSql, bt as hasAgentTurnUsage, ct as parseSessionSource, et as getStateValues, f as copyMessageLinks, gt as addAgentTurnUsage, h as conversationAncestors, j as locationFromRow, k as turnBehavior, m as withConversationEventLock, o as getDb, r as getConversationEventStore, rt as acquireActiveLock, s as getSqlExecutor, tt as setStateValues, v as setArchivedAt, w as deliversFinalText, wt as nextDetailVersion, xt as resolveRootConversationId, y as loadConversationSlackTenantIds, yt as agentTurnUsageSchema } from "./db-
|
|
8
|
-
import { A as juniorConversationEvents, B as juniorUsers, E as juniorConversationBriefs, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, N as juniorCodeChanges, R as juniorConversations, V as juniorDestinations, f as juniorReviewItems, n as isPostgresErrorCode, u as juniorReviewItemConversations, x as juniorConversationParticipants, y as juniorAgentInvocations, z as juniorIdentities } from "./executor-
|
|
7
|
+
import { $ as getStateAdapter, A as conversationKindFromRow, D as postsRunNotices, E as isTopLevelKind, Et as createSlackDestination, I as resolveActorIdentityId, L as saveActorAvatar, Ot as requireSlackDestination, X as createCache, Y as readCachedUserByEmail, _ as readConversationTrees, a as getConversationStore, b as lastMessageAtSql, bt as hasAgentTurnUsage, ct as parseSessionSource, et as getStateValues, f as copyMessageLinks, gt as addAgentTurnUsage, h as conversationAncestors, j as locationFromRow, k as turnBehavior, m as withConversationEventLock, o as getDb, r as getConversationEventStore, rt as acquireActiveLock, s as getSqlExecutor, tt as setStateValues, v as setArchivedAt, w as deliversFinalText, wt as nextDetailVersion, xt as resolveRootConversationId, y as loadConversationSlackTenantIds, yt as agentTurnUsageSchema } from "./db-CO6Y10eM.js";
|
|
8
|
+
import { A as juniorConversationEvents, B as juniorUsers, E as juniorConversationBriefs, I as juniorAttachments, L as juniorMessageAttachments, M as juniorConversationAnnotations, N as juniorCodeChanges, R as juniorConversations, V as juniorDestinations, f as juniorReviewItems, n as isPostgresErrorCode, u as juniorReviewItemConversations, x as juniorConversationParticipants, y as juniorAgentInvocations, z as juniorIdentities } from "./executor-Doo-N6Yn.js";
|
|
9
9
|
import { d as contextProvenance, p as instructionProvenanceFor, t as KNOWN_CONVERSATION_EVENT_TYPES } from "./history-N7IVbUom.js";
|
|
10
|
-
import { f as actorLogContext, p as credentialContextForActor } from "./registry-
|
|
11
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
12
|
-
import { B as shouldEmitDevAgentTrace, D as canPauseConversationDelivery, L as finalizeFailedTurnReplyWithEvent, P as RetryableDeliveryError, R as getAgentTurnDiagnosticsAttributes, T as safeLinkUrl, _ as createSlackReviewItemShow, a as buildAuthPauseResponse, c as createClientMetadata, l as readMcpClientInformation, m as resolveDestinationVisibility, n as executeAgentRun, s as getMcpOAuthCallbackPath, t as createAgentRunner, u as latestProgressStatus, z as requireTurnFailureEventId } from "./agent-runner-
|
|
13
|
-
import { d as PluginMcpClient, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials } from "./service-account-
|
|
14
|
-
import { i as webActorUserIds } from "./state-
|
|
15
|
-
import { a as EVENT_SYSTEM_ACTOR, d as completeText, l as completeDecision, s as isEventConversationMessage } from "./prompt-
|
|
10
|
+
import { f as actorLogContext, p as credentialContextForActor } from "./registry-tHJLCtKS.js";
|
|
11
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
12
|
+
import { B as shouldEmitDevAgentTrace, D as canPauseConversationDelivery, L as finalizeFailedTurnReplyWithEvent, P as RetryableDeliveryError, R as getAgentTurnDiagnosticsAttributes, T as safeLinkUrl, _ as createSlackReviewItemShow, a as buildAuthPauseResponse, c as createClientMetadata, l as readMcpClientInformation, m as resolveDestinationVisibility, n as executeAgentRun, s as getMcpOAuthCallbackPath, t as createAgentRunner, u as latestProgressStatus, z as requireTurnFailureEventId } from "./agent-runner-BnOofGFG.js";
|
|
13
|
+
import { d as PluginMcpClient, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials } from "./service-account-CddxU-yC.js";
|
|
14
|
+
import { i as webActorUserIds } from "./state-rXH58smZ.js";
|
|
15
|
+
import { a as EVENT_SYSTEM_ACTOR, d as completeText, l as completeDecision, s as isEventConversationMessage } from "./prompt-DAjjk5fm.js";
|
|
16
16
|
import { Z as MAX_ATTACHMENT_BYTES, f as conversationEventPageSchema, tt as readMessageAttachments, u as conversationDetailReportSchema } from "./conversation--f85g4zL.js";
|
|
17
|
-
import { f as identityAvatarUrl, g as userAvatarUrlsFromIdentities, h as readUserAvatarUrls } from "./viewer-
|
|
18
|
-
import { d as readJuniorSecret, g as getTurnRequestDeadline, s as sendVercelPluginTask } from "./task-queue-
|
|
19
|
-
import { P as legacyWebMailboxMetadataSchema, Q as maybePostAutomatedTurnLimitNotice, c as loadReviewItemInput, et as resolveSlackReplyTarget, f as buildSteeringPiMessage, ft as isExperimentalFeatureEnabled, g as withoutSavedSteeringMessages, j as resolveMailboxTurnWork, l as savedInputInstruction, lt as conversationSubtree, o as skipInputAfterConversationStop, p as instructionActorFor, r as markConversationsStopped, st as recordFinishedTurnForAutomatedLimit, tt as sendSlackReply, ut as conversationSubtreeColumns } from "./session-stop-
|
|
20
|
-
import { Ai as MINUTE_MS, An as recordFailedDispatchTurn, At as verifyAttachmentUploads, Bn as getWebAuthorization, Ct as createConversationId, Dn as supersedeTurnForInput, Dt as AttachmentUploadError, Fn as canShareTurn, Hn as executeTurn, Ht as getChildAgentLabel, Mi as NO_REPLY_GAP_MS, Ni as gapSegment, Nn as getTurnAuthorization, On as createPausedTurns, Pn as canJoinTurn, St as createAndEnqueueConversation, Tt as webActorFromUser, Vn as AgentRunError, Xn as renderBlockText, Yn as renderAttachmentText, Zn as parseSlackMessageReference, _r as isPublicSlackChannel, bt as appendAndEnqueueWebMessage, c as isConversationWorkDone, cr as resolveSlackChannelIdFromMessage, ct as readLastUserMessageAtByConversation, d as addHistoryPeriod, f as firstLiveSavingsDate, fn as dropOwnUnreadLoopReplies, gr as isConversationMember, gt as deliverReviewItemChange, hn as cancelSignInWait, hr as getConversationInfo, i as GLOBAL_GAPS_TTL_MS, kn as getPausedTurnRequest, l as listConversationWork, li as readConversationSourceTask, m as replaceHistorySavings, mn as stopChildAgentsOf, mr as getChannelMessage, n as CONVERSATION_STATE_TTL_MS, o as segmentGapsKey, or as parseSlackThreadId, p as idlePeriodSavings, pn as stopChildAgentsBelow, qn as throwApiError, r as GLOBAL_GAPS_MAX, sr as readSlackRawMessageContext, t as ANSWER_TOOL_ENDINGS, ut as conversationReadPositionQuery, v as connectedState, wt as recordWebConversationActivity, y as providerCacheTtlMs, yr as listThreadReplies, yt as acceptsWebMessages } from "./warmup-
|
|
17
|
+
import { f as identityAvatarUrl, g as userAvatarUrlsFromIdentities, h as readUserAvatarUrls } from "./viewer-CqOkWizK.js";
|
|
18
|
+
import { d as readJuniorSecret, g as getTurnRequestDeadline, s as sendVercelPluginTask } from "./task-queue-DvQZH5rG.js";
|
|
19
|
+
import { P as legacyWebMailboxMetadataSchema, Q as maybePostAutomatedTurnLimitNotice, c as loadReviewItemInput, et as resolveSlackReplyTarget, f as buildSteeringPiMessage, ft as isExperimentalFeatureEnabled, g as withoutSavedSteeringMessages, j as resolveMailboxTurnWork, l as savedInputInstruction, lt as conversationSubtree, o as skipInputAfterConversationStop, p as instructionActorFor, r as markConversationsStopped, st as recordFinishedTurnForAutomatedLimit, tt as sendSlackReply, ut as conversationSubtreeColumns } from "./session-stop-BQ0J0Fph.js";
|
|
20
|
+
import { Ai as MINUTE_MS, An as recordFailedDispatchTurn, At as verifyAttachmentUploads, Bn as getWebAuthorization, Ct as createConversationId, Dn as supersedeTurnForInput, Dt as AttachmentUploadError, Fn as canShareTurn, Hn as executeTurn, Ht as getChildAgentLabel, Mi as NO_REPLY_GAP_MS, Ni as gapSegment, Nn as getTurnAuthorization, On as createPausedTurns, Pn as canJoinTurn, St as createAndEnqueueConversation, Tt as webActorFromUser, Vn as AgentRunError, Xn as renderBlockText, Yn as renderAttachmentText, Zn as parseSlackMessageReference, _r as isPublicSlackChannel, bt as appendAndEnqueueWebMessage, c as isConversationWorkDone, cr as resolveSlackChannelIdFromMessage, ct as readLastUserMessageAtByConversation, d as addHistoryPeriod, f as firstLiveSavingsDate, fn as dropOwnUnreadLoopReplies, gr as isConversationMember, gt as deliverReviewItemChange, hn as cancelSignInWait, hr as getConversationInfo, i as GLOBAL_GAPS_TTL_MS, kn as getPausedTurnRequest, l as listConversationWork, li as readConversationSourceTask, m as replaceHistorySavings, mn as stopChildAgentsOf, mr as getChannelMessage, n as CONVERSATION_STATE_TTL_MS, o as segmentGapsKey, or as parseSlackThreadId, p as idlePeriodSavings, pn as stopChildAgentsBelow, qn as throwApiError, r as GLOBAL_GAPS_MAX, sr as readSlackRawMessageContext, t as ANSWER_TOOL_ENDINGS, ut as conversationReadPositionQuery, v as connectedState, wt as recordWebConversationActivity, y as providerCacheTtlMs, yr as listThreadReplies, yt as acceptsWebMessages } from "./warmup-HFgFZFwS.js";
|
|
21
21
|
import { h as isVisionImageMediaType, l as isEmptyUserInputAnswer, m as detectImageMediaType, t as webMessageId, u as normalizeUserInputAnswer } from "./web-message-id-BT8Mg8LL.js";
|
|
22
|
-
import { L as buildDeterministicAssistantMessageId, R as buildDeterministicTurnId, a as ConversationTurnBoundaryError, c as TurnInputDeferredError, d as isTurnInputCommitLostError, f as isTurnInputDeferredError, g as startActiveTurn, h as markTurnFailed, i as getTurnUserSlackMessageTs, l as getConversationTurnBoundaryError, m as markTurnCompleted, o as CooperativeTurnYieldError, p as markTurnClosed, r as getTurnUserReplyAttachmentContext, s as TurnInputCommitLostError, t as getTurnUserMessage, u as isCooperativeTurnYieldError, v as getTurnLifecycle } from "./turn-user-message-
|
|
23
|
-
import { m as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
24
|
-
import { D as stopConversationWork, E as steerWebPendingMessages, _ as getConversationWorkState, a as cancelHumanFacingPendingMessages, g as getConversation, h as ensureConversationWake, r as appendAndEnqueueInboundMessage, s as claimInboundMessage } from "./store-
|
|
25
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, o as persistThreadRuntimeState, r as getLocationConfigurationService, s as persistThreadStateById, t as resolveConversationRouting } from "./turn-session-routing-
|
|
26
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
22
|
+
import { L as buildDeterministicAssistantMessageId, R as buildDeterministicTurnId, a as ConversationTurnBoundaryError, c as TurnInputDeferredError, d as isTurnInputCommitLostError, f as isTurnInputDeferredError, g as startActiveTurn, h as markTurnFailed, i as getTurnUserSlackMessageTs, l as getConversationTurnBoundaryError, m as markTurnCompleted, o as CooperativeTurnYieldError, p as markTurnClosed, r as getTurnUserReplyAttachmentContext, s as TurnInputCommitLostError, t as getTurnUserMessage, u as isCooperativeTurnYieldError, v as getTurnLifecycle } from "./turn-user-message-DbU7MNd9.js";
|
|
23
|
+
import { m as getVercelConversationWorkQueue } from "./background-compaction-queue-BpmDEQf6.js";
|
|
24
|
+
import { D as stopConversationWork, E as steerWebPendingMessages, _ as getConversationWorkState, a as cancelHumanFacingPendingMessages, g as getConversation, h as ensureConversationWake, r as appendAndEnqueueInboundMessage, s as claimInboundMessage } from "./store-7QA00oK6.js";
|
|
25
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, o as persistThreadRuntimeState, r as getLocationConfigurationService, s as persistThreadStateById, t as resolveConversationRouting } from "./turn-session-routing-Cqjj1B3i.js";
|
|
26
|
+
import { t as runWithSlackInstallation } from "./adapter-context-BO432242.js";
|
|
27
27
|
import { D as personObjectCard, E as messageObjectCard, O as webPageObjectCard, T as conversationObjectCard, m as healthReportSchema, r as conversationFeedSchema, t as conversationFeedBriefSchema, u as conversationPendingMessagesReportSchema } from "./conversation-feed-BNs9KiqC.js";
|
|
28
|
-
import { a as withTurnSpan, i as turnInputTelemetry, n as createConversationTurnWorker, r as getTurnInputSpanAttributes } from "./conversation-turn-
|
|
29
|
-
import { n as buildStoredAttachmentPromptText } from "./model-input-
|
|
30
|
-
import { i as enqueueAgentInvocationResult, n as createDeliverToParent, s as withAgentInvocationResultActors, t as createChildConversationWorker } from "./result-
|
|
31
|
-
import { t as bindMessageAgent } from "./message-
|
|
32
|
-
import { t as readConversationLineage } from "./lineage-
|
|
33
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
34
|
-
import { a as buildDeliveredTurnStatePatch, i as persistAuthPauseTurnState, n as loadThreadContextTrimFloor, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-
|
|
35
|
-
import { n as scheduleSessionCompletedPluginTasks } from "./task-runner-
|
|
36
|
-
import { r as canContinueInSlack } from "./continue-in-slack-
|
|
28
|
+
import { a as withTurnSpan, i as turnInputTelemetry, n as createConversationTurnWorker, r as getTurnInputSpanAttributes } from "./conversation-turn-C9-Nfnsy.js";
|
|
29
|
+
import { n as buildStoredAttachmentPromptText } from "./model-input-DRChpXJ7.js";
|
|
30
|
+
import { i as enqueueAgentInvocationResult, n as createDeliverToParent, s as withAgentInvocationResultActors, t as createChildConversationWorker } from "./result-D2wshngt.js";
|
|
31
|
+
import { t as bindMessageAgent } from "./message-fSnXIqvl.js";
|
|
32
|
+
import { t as readConversationLineage } from "./lineage-BcqyhMyp.js";
|
|
33
|
+
import { t as bindSpawnAgent } from "./spawn-PwAuSN59.js";
|
|
34
|
+
import { a as buildDeliveredTurnStatePatch, i as persistAuthPauseTurnState, n as loadThreadContextTrimFloor, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-C-hLTQST.js";
|
|
35
|
+
import { n as scheduleSessionCompletedPluginTasks } from "./task-runner-CyZMcuZy.js";
|
|
36
|
+
import { r as canContinueInSlack } from "./continue-in-slack-CtTv1tkn.js";
|
|
37
37
|
import pLimit from "p-limit";
|
|
38
38
|
import * as z from "zod";
|
|
39
39
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as getConversationStore } from "./db-
|
|
2
|
-
import { p as logException } from "./logging-
|
|
3
|
-
import "./background-compaction-queue-
|
|
4
|
-
import { At as hasRunnableConversationWork, Bt as releaseInboundMessage, Dt as getConversationWorkState$1, Et as getConversation$1, Gt as stopConversationWork$1, Ht as requestConversationWork$1, Kt as takeDeferredConversationMove, Lt as recordAttemptFailure$1, Nt as listActiveConversationIds$1, Ot as getConversationWorkStates$1, Pt as markConversationWorkEnqueued$1, Rt as recordConversationRetry$1, St as deadLetterAttempt$1, Tt as dropPendingMessages$1, Ut as startConversationWork$1, Vt as requestAnotherSlice$1, Wt as steerWebPendingMessages$1, _t as clearConsumedConversationWake$1, bt as completeConversationWork$1, dt as appendExclusiveInboundMessage, ft as appendInboundMessage, gt as claimInboundMessage$1, ht as checkInConversationWork$1, mt as cancelHumanFacingPendingMessages$1, pt as beginConversationResume$1, ut as ackMessages$1, vt as clearExpiredConversationLease$1, wt as drainConversationMailbox$1, yt as completeConversationStop$1, zt as releaseConversationWork$1 } from "./projection-
|
|
1
|
+
import { a as getConversationStore } from "./db-CO6Y10eM.js";
|
|
2
|
+
import { p as logException } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import "./background-compaction-queue-BpmDEQf6.js";
|
|
4
|
+
import { At as hasRunnableConversationWork, Bt as releaseInboundMessage, Dt as getConversationWorkState$1, Et as getConversation$1, Gt as stopConversationWork$1, Ht as requestConversationWork$1, Kt as takeDeferredConversationMove, Lt as recordAttemptFailure$1, Nt as listActiveConversationIds$1, Ot as getConversationWorkStates$1, Pt as markConversationWorkEnqueued$1, Rt as recordConversationRetry$1, St as deadLetterAttempt$1, Tt as dropPendingMessages$1, Ut as startConversationWork$1, Vt as requestAnotherSlice$1, Wt as steerWebPendingMessages$1, _t as clearConsumedConversationWake$1, bt as completeConversationWork$1, dt as appendExclusiveInboundMessage, ft as appendInboundMessage, gt as claimInboundMessage$1, ht as checkInConversationWork$1, mt as cancelHumanFacingPendingMessages$1, pt as beginConversationResume$1, ut as ackMessages$1, vt as clearExpiredConversationLease$1, wt as drainConversationMailbox$1, yt as completeConversationStop$1, zt as releaseConversationWork$1 } from "./projection-Bqn6zdVT.js";
|
|
5
5
|
// src/chat/task-execution/store.ts
|
|
6
6
|
function metadataStore(options) {
|
|
7
7
|
return options.conversationStore ?? getConversationStore();
|
|
@@ -304,7 +304,7 @@ async function runDeferredMove(args) {
|
|
|
304
304
|
const move = await takeDeferredConversationMove(args);
|
|
305
305
|
if (move === void 0) return;
|
|
306
306
|
try {
|
|
307
|
-
const { continueDeferredSlackClick } = await import("./slack-conversation-unfurl-
|
|
307
|
+
const { continueDeferredSlackClick } = await import("./slack-conversation-unfurl-CLH0tTLk.js").then((n) => n.r);
|
|
308
308
|
await continueDeferredSlackClick(move, args.getSlackAdapter);
|
|
309
309
|
} catch (error) {
|
|
310
310
|
logException(error, "slack.continue_here.deferred.failed", { "gen_ai.conversation.id": args.conversationId });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
2
|
-
import { i as getChatConfig } from "./config-
|
|
1
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-DnBYBM8z.js";
|
|
2
|
+
import { i as getChatConfig } from "./config-Cx8H0MRw.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
@@ -396,7 +396,7 @@ function pluginTaskCallback() {
|
|
|
396
396
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
397
397
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
398
398
|
run: async (message) => {
|
|
399
|
-
const { processPluginTask } = await import("./task-runner-
|
|
399
|
+
const { processPluginTask } = await import("./task-runner-CyZMcuZy.js").then((n) => n.r);
|
|
400
400
|
await processPluginTask(message);
|
|
401
401
|
},
|
|
402
402
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { Ha as createPluginModelCostRecorder, Ln as coreTaskRegistrations, Mi as createPluginState, Nn as getPlugins, Oa as createPluginEmbedder, Qn as getPiMessageRole, Ua as createPluginLogger, Yo as getDispatchRecord, at as getTurnRecord, cr as isToolResultMessage, dr as stripRuntimeTurnContext, eo as createPluginConversationEvents, ka as createPluginModel, lr as normalizeToolNameFromResult, rr as instructionTextForProjection, sr as isToolResultError,
|
|
3
|
-
import { $ as getStateAdapter, a as getConversationStore, o as getDb } from "./db-
|
|
4
|
-
import { E as withSpan } from "./logging-
|
|
5
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, t as resolveConversationRouting } from "./turn-session-routing-
|
|
6
|
-
import { i as readActorIdentity } from "./viewer-
|
|
2
|
+
import { Ha as createPluginModelCostRecorder, Ln as coreTaskRegistrations, Mi as createPluginState, Nn as getPlugins, Oa as createPluginEmbedder, Qn as getPiMessageRole, Ua as createPluginLogger, Yo as getDispatchRecord, at as getTurnRecord, cr as isToolResultMessage, dl as createPluginCache, dr as stripRuntimeTurnContext, eo as createPluginConversationEvents, ka as createPluginModel, lr as normalizeToolNameFromResult, rr as instructionTextForProjection, sr as isToolResultError, v as hydrateConversationMessages } from "./projection-Bqn6zdVT.js";
|
|
3
|
+
import { $ as getStateAdapter, a as getConversationStore, o as getDb } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { E as withSpan } from "./logging-DnBYBM8z.js";
|
|
5
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, t as resolveConversationRouting } from "./turn-session-routing-Cqjj1B3i.js";
|
|
6
|
+
import { i as readActorIdentity } from "./viewer-CqOkWizK.js";
|
|
7
7
|
import { v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
8
8
|
import { m as sameActorIdentity } from "./history-N7IVbUom.js";
|
|
9
|
-
import { i as pluginTaskParamsSchema, r as pluginTaskId } from "./task-queue-
|
|
9
|
+
import { i as pluginTaskParamsSchema, r as pluginTaskId } from "./task-queue-DvQZH5rG.js";
|
|
10
10
|
import pLimit from "p-limit";
|
|
11
11
|
import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
12
12
|
// src/chat/plugins/task-runner.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { J as clearPendingAuth, Po as listConversationAnnotations, k as markConversationMessage, v as hydrateConversationMessages, w as buildConversationContext } from "./projection-
|
|
2
|
-
import { K as isRecord, b as setSpanAttributes } from "./logging-
|
|
3
|
-
import { o as getDb, r as getConversationEventStore } from "./db-
|
|
1
|
+
import { J as clearPendingAuth, Po as listConversationAnnotations, k as markConversationMessage, v as hydrateConversationMessages, w as buildConversationContext } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { K as isRecord, b as setSpanAttributes } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import { o as getDb, r as getConversationEventStore } from "./db-CO6Y10eM.js";
|
|
4
4
|
import { J as readMessageCardRefs, X as resolveMessageCards, Y as removedCardSchema } from "./conversation--f85g4zL.js";
|
|
5
|
-
import { S as listChildMessages, m as markTurnCompleted, n as getTurnUserMessageId, p as markTurnClosed, x as isAgentInvocationResult } from "./turn-user-message-
|
|
6
|
-
import { _ as getConversationWorkState } from "./store-
|
|
7
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, s as persistThreadStateById } from "./turn-session-routing-
|
|
5
|
+
import { S as listChildMessages, m as markTurnCompleted, n as getTurnUserMessageId, p as markTurnClosed, x as isAgentInvocationResult } from "./turn-user-message-DbU7MNd9.js";
|
|
6
|
+
import { _ as getConversationWorkState } from "./store-7QA00oK6.js";
|
|
7
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, s as persistThreadStateById } from "./turn-session-routing-Cqjj1B3i.js";
|
|
8
8
|
// src/chat/conversations/pending-cards.ts
|
|
9
9
|
/**
|
|
10
10
|
* Add the cards that tool results selected since the last visible assistant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ko as getDispatchConversationId, Yo as getDispatchRecord, b as persistConversationMessages,
|
|
2
|
-
import { J as toOptionalString, K as isRecord, q as toOptionalNumber } from "./logging-
|
|
3
|
-
import { $ as getStateAdapter, o as getDb } from "./db-
|
|
1
|
+
import { Ko as getDispatchConversationId, Yo as getDispatchRecord, b as persistConversationMessages, cl as JUNIOR_THREAD_STATE_TTL_MS, fl as createDurableLocationConfigurationService } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { J as toOptionalString, K as isRecord, q as toOptionalNumber } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import { $ as getStateAdapter, o as getDb } from "./db-CO6Y10eM.js";
|
|
4
4
|
// src/chat/state/conversation.ts
|
|
5
5
|
function defaultConversationState() {
|
|
6
6
|
return {
|
|
@@ -202,7 +202,7 @@ function slackSourceForDestination(args) {
|
|
|
202
202
|
* Reads parent Conversations when this Conversation has no Destination.
|
|
203
203
|
*/
|
|
204
204
|
async function resolveConversationRouting(args) {
|
|
205
|
-
const conversationStore = args.conversationStore ?? (await import("./db-
|
|
205
|
+
const conversationStore = args.conversationStore ?? (await import("./db-CO6Y10eM.js").then((n) => n.n)).getConversationStore();
|
|
206
206
|
const chain = await loadConversationChain(args.conversationId, conversationStore);
|
|
207
207
|
let destination;
|
|
208
208
|
let source;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { qt as readInboundMessageSender } from "./projection-
|
|
1
|
+
import { qt as readInboundMessageSender } from "./projection-Bqn6zdVT.js";
|
|
2
2
|
import { v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
3
|
-
import { r as getConversationEventStore, s as getSqlExecutor } from "./db-
|
|
4
|
-
import { y as juniorAgentInvocations } from "./executor-
|
|
3
|
+
import { r as getConversationEventStore, s as getSqlExecutor } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { y as juniorAgentInvocations } from "./executor-Doo-N6Yn.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { inArray } from "drizzle-orm";
|
|
7
7
|
// src/chat/state/turn-id.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bs as SlackActionError, js as withSlackRetries, ws as getSlackClient } from "./projection-
|
|
1
|
+
import { bs as SlackActionError, js as withSlackRetries, ws as getSlackClient } from "./projection-Bqn6zdVT.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/chat/slack/users.ts
|
|
4
4
|
const profileFieldsSchema = z.object({ fields: z.record(z.string(), z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
3
3
|
import { isDeepStrictEqual } from "node:util";
|
|
4
4
|
// src/chat/plugins/validation.ts
|
|
5
5
|
var validation_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.
|
|
2
|
+
var version = "0.308.0";
|
|
3
3
|
// src/version.ts
|
|
4
4
|
/** Installed Junior package version, or `unknown` when package metadata is unavailable. */
|
|
5
5
|
const JUNIOR_VERSION = typeof version === "string" && version.trim() ? version : "unknown";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as JUNIOR_VERSION } from "./version-
|
|
1
|
+
export { t as JUNIOR_VERSION } from "./version-BE1OyrXV.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as findActorIdentityId, J as clearCachedUser, Y as readCachedUserByEmail, o as getDb } from "./db-
|
|
2
|
-
import { B as juniorUsers, z as juniorIdentities } from "./executor-
|
|
3
|
-
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER } from "./logging-
|
|
1
|
+
import { F as findActorIdentityId, J as clearCachedUser, Y as readCachedUserByEmail, o as getDb } from "./db-CO6Y10eM.js";
|
|
2
|
+
import { B as juniorUsers, z as juniorIdentities } from "./executor-Doo-N6Yn.js";
|
|
3
|
+
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER } from "./logging-DnBYBM8z.js";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { and, asc, eq, inArray, isNotNull } from "drizzle-orm";
|
|
6
6
|
import { identitySchema, userSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { $ as pauseLostWorkerTurn, $c as
|
|
3
|
-
import { W as escapeClosingTags, X as renderTag, _ as TURN_REASONING_LEVELS, i as getChatConfig, k as resolveGatewayModel, lt as bufferBody, n as botConfig, ot as isProviderRetryError } from "./config-
|
|
4
|
-
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, b as setSpanAttributes, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, x as setSpanStatus, z as getDeploymentId } from "./logging-
|
|
2
|
+
import { $ as pauseLostWorkerTurn, $c as readAutomationExecutionSummaries, $n as getTerminalAssistantMessages, Ac as eventWatchUnavailable, B as PluginCredentialFailureError, Bc as listAutomationVersions, Bi as updateWorkspace, Ea as workspaceRepoCheckoutPath, Ec as describeRegisteredEventTrigger, En as createPluginHookRunner, Fa as SANDBOX_WORKSPACE_ROOT, Fc as registeredResourceTypeSchema, Fi as deleteWorkspace, Fr as insertReviewItem, Gc as requireAutomationRevision, Gi as setWorkspaceSnapshotBuild, Gn as seqIn, Gr as canReadReviewItem, Hc as sameDefinitionValue, Hi as invalidateReadySnapshot, Hr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, Ic as requireEventIdentifier, Ii as getWorkspace, Io as defaultTimezone, J as clearPendingAuth, Jc as emptyAutomationRunWindows, Ji as isStale, Jn as eventExcerpt, Jo as getDispatchInputMessageId, Kc as ToolInputError, Ki as create, Kn as SEARCHABLE_EVENT_TYPES, Lc as requireValidEventTrigger, Li as getWorkspaceByName, Ma as SANDBOX_REPOS_ROOT, Mc as registeredEventMatchSchema, Mo as saveObjectAnnotations, Mr as dismissOpenReviewItems, Ms as sleep, Na as SANDBOX_SCRATCH_ROOT, Nc as registeredEventTriggerProblems, Nn as getPlugins, No as createPluginAnnotations, Nr as getOpenReviewItemByDedupeKey, Oo as searchConversations, Os as normalizeSlackConversationId, Pc as registeredEventTypeSchema, Pi as createWorkspace, Pn as getStaticPluginToolDefinitions, Pr as getReviewItem, Q as lostWorkerBeforeFirstSave, Qc as readAutomationExecutionStatusHours, Rc as automationDefinition, Ri as listWorkspaces, Si as listWatches, Ss as getFilePermalink, Tc as automationEventCatalog, Ts as isConversationScopedChannel, Ua as createPluginLogger, Ui as loadSnapshotsForProfile, Un as lexemesSql, Vc as readAutomationVersion, Vi as WorkspaceValidationError, Vr as updateReviewItemContent, Vs as slackMention, W as AuthorizationFlowDisabledError, Wa as canAccessConversation, Wc as automationRevision, Wi as setWorkspaceSnapshot, Wn as searchedEventTextSql, Wr as canAgentChangeReviewItem, Xc as readAutomationExecutionByConversationId, Xi as getSandboxProvider, Xr as requireReviewItemAssignees, Yn as excerptTerms, Yo as getDispatchRecord, Yr as readReviewItemAgentScope, Ys as parseScheduledAutomationRow, Z as loadTurnCheckpoint, Zc as readAutomationExecutionStatusDays, Zr as requireReviewItemLinks, Zs as saveScheduledAutomation, _i as createWatch, ai as resolveAssignees, at as getTurnRecord, bc as saveEventAutomation, bi as getWatch, bo as readLiveAttachment, bs as SlackActionError, ci as getSlackToolContext, cn as getAssistantReplyText, cs as getSlackMessagePermalink, da as WorkspaceSnapshotNotReadyError, di as RESOURCE_WATCH_TOOL_SOURCE, dl as createPluginCache, dn as findLegacyNoReplyMarker, el as readAutomationExecutions, et as saveTurnCheckpoint, fi as STOP_WATCHING_TOOL_NAME, fn as isLegacyNoReplyMarker, gi as createTimerWatch, gn as REPORT_BLOCKED_TOOL_NAME, hc as deleteEventAutomation, ii as resolveAssignee, in as readTurnAnswer, jc as hasEventCatalogEntries, jo as embedConversationQuery, js as withSlackRetries, k as markConversationMessage, kc as eventNamespaceSchema, kr as closeReviewItem, li as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, lo as FORK_INSTRUCTIONS, ls as openSlackDirectMessage, mi as cancelWatch, ni as activeParticipantUserIds, nl as readAutomationRuns, nn as REPLY_TOOL_NAME, ol as fallbackShortTitle, on as replyTextSchema, pa as isWorkspaceSnapshotNotReadyError, po as matchSlackAttachments, qa as readConversationAccessFromSql, qn as callsToolSql, qo as getDispatchIdForConversation, qs as deleteScheduledAutomation, ri as automationCreatorUserId, rt as failTurnRecord, s as openConversationProjection, sa as isAbortError, sc as getDashboardTaskLink, sl as resolveTaskTitle, st as recordTurnSummary, tc as getDashboardConversationLink, ti as EVERYONE_ASSIGNEE, tl as readAutomationRowStats, tn as isTurnExecutionLimitExceededError, tt as abandonTurnRecord, ui as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, un as NO_REPLY_TOOL_NAME, uo as loadForkHistory, v as hydrateConversationMessages, va as createSandboxEgressCredentialToken, vc as listDeletedEventAutomationsCreatedBy, vi as deliverWatch, wa as SANDBOX_RUNTIME, wi as turnEvents, ws as getSlackClient, xa as buildSandboxEgressNetworkPolicy, xc as setEventAutomationStatus, xi as isQuietEvent, xn as getOAuthAccountProviders, xo as recordUploadedAttachment, xs as downloadPrivateSlackFile, yc as parseEventAutomationRow, yi as findMatchingWatches, zr as searchReviewItems } from "./projection-Bqn6zdVT.js";
|
|
3
|
+
import { W as escapeClosingTags, X as renderTag, _ as TURN_REASONING_LEVELS, i as getChatConfig, k as resolveGatewayModel, lt as bufferBody, n as botConfig, ot as isProviderRetryError } from "./config-Cx8H0MRw.js";
|
|
4
|
+
import { E as withSpan, G as normalizeIdentityEmail, J as toOptionalString, b as setSpanAttributes, h as logWarn, m as logInfo, o as getActiveTraceContext, p as logException, x as setSpanStatus, z as getDeploymentId } from "./logging-DnBYBM8z.js";
|
|
5
5
|
import { h as startSpan, n as captureMessage, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
6
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
7
|
-
import { Ct as workspaceSnapshotFinishedEvent, E as getAuthPausedConversationTurnId, F as EVENT_WAIT_MS, H as addConversationNote, I as addQuietEventNote, J as resolveEventAuthor, L as enqueueEventNotification, O as listActiveMailboxTurnSources, Q as maybePostAutomatedTurnLimitNotice, St as WORKSPACE_SNAPSHOT_READY_EVENT, Tt as buildDeploymentSystemPrompt, bt as slackChannelMessageTrigger, ct as resetAutomatedTurnLimit, f as buildSteeringPiMessage, ft as isExperimentalFeatureEnabled, g as withoutSavedSteeringMessages, gt as requireSlackChannelMessageScope, i as resumeStoppedConversationTree, k as listActiveMailboxTurns, lt as conversationSubtree, m as instructionForInputs, mt as getEventCatalog, n as isSkippedAfterConversationStop, nt as resolveEventMentions, r as markConversationsStopped, st as recordFinishedTurnForAutomatedLimit, t as getConversationStoppedAtMs, ut as conversationSubtreeColumns, v as saveUserCustomization, w as renderPlanAssignee, wt as workspaceSnapshotWatch, x as listPlanItems, xt as WORKSPACE_SNAPSHOT_FAILED_EVENT, y as changePlan, z as isEventMailboxMetadata } from "./session-stop-
|
|
6
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
7
|
+
import { Ct as workspaceSnapshotFinishedEvent, E as getAuthPausedConversationTurnId, F as EVENT_WAIT_MS, H as addConversationNote, I as addQuietEventNote, J as resolveEventAuthor, L as enqueueEventNotification, O as listActiveMailboxTurnSources, Q as maybePostAutomatedTurnLimitNotice, St as WORKSPACE_SNAPSHOT_READY_EVENT, Tt as buildDeploymentSystemPrompt, bt as slackChannelMessageTrigger, ct as resetAutomatedTurnLimit, f as buildSteeringPiMessage, ft as isExperimentalFeatureEnabled, g as withoutSavedSteeringMessages, gt as requireSlackChannelMessageScope, i as resumeStoppedConversationTree, k as listActiveMailboxTurns, lt as conversationSubtree, m as instructionForInputs, mt as getEventCatalog, n as isSkippedAfterConversationStop, nt as resolveEventMentions, r as markConversationsStopped, st as recordFinishedTurnForAutomatedLimit, t as getConversationStoppedAtMs, ut as conversationSubtreeColumns, v as saveUserCustomization, w as renderPlanAssignee, wt as workspaceSnapshotWatch, x as listPlanItems, xt as WORKSPACE_SNAPSHOT_FAILED_EVENT, y as changePlan, z as isEventMailboxMetadata } from "./session-stop-BQ0J0Fph.js";
|
|
8
8
|
import { A as agentTypeSchema, N as briefLinkSchema, O as AGENT_TYPES, P as briefOutcomeStatusSchema, Y as removedCardSchema, j as formatAgentTypes, k as agentTypeInstructions } from "./conversation--f85g4zL.js";
|
|
9
9
|
import { B as compileScheduleIntent, F as eventAutomationTriggerSchema, H as toolScheduleIntentSchema, J as automationSkillNameSchema, K as getZonedDateTimeParts, Q as automationTaskText, U as weekdaySchema, W as getFirstRunAtMs, X as automationTaskDescription, Z as automationTaskSchema, m as automationListQuerySchema, q as isValidTimeZone, z as ScheduleIntentError } from "./schedule-BG1tEbRF.js";
|
|
10
10
|
import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
11
|
-
import { $ as getStateAdapter, A as conversationKindFromRow, E as isTopLevelKind, I as resolveActorIdentityId, O as promptModeTurnTools, P as SYSTEM_IDENTITY_ID, St as rootConversationIsArchived, T as isPersonInput, _ as readConversationTrees, a as getConversationStore, at as withLock, d as eventFromRow, et as getStateValues, ft as usdToMicroUsd, g as conversationDescendants, h as conversationAncestors, i as getConversationMessageSearchStore, it as fenceLock, k as turnBehavior, kt as sameDestination, o as getDb, r as getConversationEventStore, s as getSqlExecutor, v as setArchivedAt, wt as nextDetailVersion, x as userMessageQueries, xt as resolveRootConversationId } from "./db-
|
|
12
|
-
import { A as juniorConversationEvents, B as juniorUsers, C as juniorConversationEventLexemes, F as juniorAttachmentUploads, I as juniorAttachments, R as juniorConversations, V as juniorDestinations, b as juniorConversationReadPositions, g as juniorStats, h as juniorAutomations, p as juniorAutomationRuns, v as juniorAgentBindings, w as juniorConversationEventEmbeddings, x as juniorConversationParticipants, y as juniorAgentInvocations, z as juniorIdentities } from "./executor-
|
|
13
|
-
import { t as discoverSkills } from "./skills-
|
|
11
|
+
import { $ as getStateAdapter, A as conversationKindFromRow, E as isTopLevelKind, I as resolveActorIdentityId, O as promptModeTurnTools, P as SYSTEM_IDENTITY_ID, St as rootConversationIsArchived, T as isPersonInput, _ as readConversationTrees, a as getConversationStore, at as withLock, d as eventFromRow, et as getStateValues, ft as usdToMicroUsd, g as conversationDescendants, h as conversationAncestors, i as getConversationMessageSearchStore, it as fenceLock, k as turnBehavior, kt as sameDestination, o as getDb, r as getConversationEventStore, s as getSqlExecutor, v as setArchivedAt, wt as nextDetailVersion, x as userMessageQueries, xt as resolveRootConversationId } from "./db-CO6Y10eM.js";
|
|
12
|
+
import { A as juniorConversationEvents, B as juniorUsers, C as juniorConversationEventLexemes, F as juniorAttachmentUploads, I as juniorAttachments, R as juniorConversations, V as juniorDestinations, b as juniorConversationReadPositions, g as juniorStats, h as juniorAutomations, p as juniorAutomationRuns, v as juniorAgentBindings, w as juniorConversationEventEmbeddings, x as juniorConversationParticipants, y as juniorAgentInvocations, z as juniorIdentities } from "./executor-Doo-N6Yn.js";
|
|
13
|
+
import { t as discoverSkills } from "./skills-Dm2-5nn5.js";
|
|
14
14
|
import { D as isAgentInvocationResultEventType, F as sumUtcHoursIntoSixHours, O as apiErrorSchema, S as AGENT_INVOCATION_EVENT_NAMESPACE, b as SELF_PLAN_ASSIGNEE, c as formatUserInputAnswer, d as userInputRequestSchema, g as USER_CUSTOMIZATION_MAX_CHARS, h as isVisionImageMediaType, m as detectImageMediaType, n as AGENT_INVOCATION_MAILBOX_STATUSES, r as AGENT_INVOCATION_PARENT_MAILBOX_STATUSES, t as webMessageId, v as userCustomizationTextSchema, w as AGENT_PARENT_MESSAGE_EVENT_TYPE, x as isOpenPlanItemStatus, y as PLAN_ITEM_STATUSES } from "./web-message-id-BT8Mg8LL.js";
|
|
15
|
-
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-
|
|
16
|
-
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, I as getUnnamedAgentConversationId, N as getChildAgentLockName, O as getAgentInvocationIdForResult, P as getNamedAgentConversationId, R as buildDeterministicTurnId, S as listChildMessages, T as getAgentInvocationId, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationTurnId, k as getAgentInvocationMessageId, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender } from "./turn-user-message-
|
|
17
|
-
import { D as stopConversationWork, _ as getConversationWorkState, h as ensureConversationWake, m as dropPendingMessages, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage, v as getConversationWorkStates, w as requestConversationWork } from "./store-
|
|
15
|
+
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-CqOkWizK.js";
|
|
16
|
+
import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, I as getUnnamedAgentConversationId, N as getChildAgentLockName, O as getAgentInvocationIdForResult, P as getNamedAgentConversationId, R as buildDeterministicTurnId, S as listChildMessages, T as getAgentInvocationId, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationTurnId, k as getAgentInvocationMessageId, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender } from "./turn-user-message-DbU7MNd9.js";
|
|
17
|
+
import { D as stopConversationWork, _ as getConversationWorkState, h as ensureConversationWake, m as dropPendingMessages, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage, v as getConversationWorkStates, w as requestConversationWork } from "./store-7QA00oK6.js";
|
|
18
18
|
import { d as contextProvenance, m as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as agentInstructionProvenance } from "./history-N7IVbUom.js";
|
|
19
|
-
import { m as credentialContextSchema, p as credentialContextForActor } from "./registry-
|
|
20
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, s as persistThreadStateById } from "./turn-session-routing-
|
|
21
|
-
import { g as getTurnRequestDeadline } from "./task-queue-
|
|
22
|
-
import { d as sendNextWorkspaceSnapshotJob, f as sendWorkspaceSnapshotJob, l as sendCacheWarmup, m as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
23
|
-
import { d as completeText, m as searchWeb, r as EVENT_AUTHOR_ID } from "./prompt-
|
|
24
|
-
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-
|
|
25
|
-
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-
|
|
19
|
+
import { m as credentialContextSchema, p as credentialContextForActor } from "./registry-tHJLCtKS.js";
|
|
20
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, s as persistThreadStateById } from "./turn-session-routing-Cqjj1B3i.js";
|
|
21
|
+
import { g as getTurnRequestDeadline } from "./task-queue-DvQZH5rG.js";
|
|
22
|
+
import { d as sendNextWorkspaceSnapshotJob, f as sendWorkspaceSnapshotJob, l as sendCacheWarmup, m as getVercelConversationWorkQueue } from "./background-compaction-queue-BpmDEQf6.js";
|
|
23
|
+
import { d as completeText, m as searchWeb, r as EVENT_AUTHOR_ID } from "./prompt-DAjjk5fm.js";
|
|
24
|
+
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-B-UpCmw9.js";
|
|
25
|
+
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-Y2s9ZPvk.js";
|
|
26
26
|
import pLimit from "p-limit";
|
|
27
27
|
import * as z from "zod";
|
|
28
28
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { Mt as isInvalidConversationRecordError, jt as isFinalAttempt, kt as hasConversationStop, xt as countPendingConversationMessages } from "./projection-
|
|
3
|
-
import { i as getChatConfig, ot as isProviderRetryError } from "./config-
|
|
4
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
5
|
-
import { t as getConversationStoppedAtMs } from "./session-stop-
|
|
6
|
-
import { g as getTurnRequestDeadline } from "./task-queue-
|
|
7
|
-
import { _ as ConversationQueueMessageRejectedError, b as nudgeIdempotencyKey } from "./background-compaction-queue-
|
|
8
|
-
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-
|
|
9
|
-
import { In as isAttemptInterrupt, Ln as selectAttemptMessages } from "./warmup-
|
|
2
|
+
import { Mt as isInvalidConversationRecordError, jt as isFinalAttempt, kt as hasConversationStop, xt as countPendingConversationMessages } from "./projection-Bqn6zdVT.js";
|
|
3
|
+
import { i as getChatConfig, ot as isProviderRetryError } from "./config-Cx8H0MRw.js";
|
|
4
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-DnBYBM8z.js";
|
|
5
|
+
import { t as getConversationStoppedAtMs } from "./session-stop-BQ0J0Fph.js";
|
|
6
|
+
import { g as getTurnRequestDeadline } from "./task-queue-DvQZH5rG.js";
|
|
7
|
+
import { _ as ConversationQueueMessageRejectedError, b as nudgeIdempotencyKey } from "./background-compaction-queue-BpmDEQf6.js";
|
|
8
|
+
import { C as requestAnotherSlice, S as releaseConversationWork, T as startConversationWork, _ as getConversationWorkState, b as recordAttemptFailure, c as clearConsumedConversationWake, d as completeConversationWork, f as deadLetterAttempt, h as ensureConversationWake, i as beginConversationResume, o as checkInConversationWork, p as drainConversationMailbox, t as ackMessages, u as completeConversationStop, x as recordConversationRetry } from "./store-7QA00oK6.js";
|
|
9
|
+
import { In as isAttemptInterrupt, Ln as selectAttemptMessages } from "./warmup-HFgFZFwS.js";
|
|
10
10
|
// src/chat/task-execution/lost-lease.ts
|
|
11
11
|
/**
|
|
12
12
|
* Count a slice that lost its Conversation Lease as a failed attempt, then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.308.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@logtape/logtape": "^2.1.1",
|
|
65
65
|
"@modelcontextprotocol/sdk": "1.32.0",
|
|
66
66
|
"@neondatabase/serverless": "^1.1.0",
|
|
67
|
-
"@sentry/junior-plugin-api": "0.
|
|
68
|
-
"@sentry/junior-search": "0.
|
|
67
|
+
"@sentry/junior-plugin-api": "0.308.0",
|
|
68
|
+
"@sentry/junior-search": "0.308.0",
|
|
69
69
|
"@sentry/nitro": "11.14.0",
|
|
70
70
|
"@sentry/node": "11.14.0",
|
|
71
71
|
"@sentry/server-utils": "11.14.0",
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"@emnapi/core": "^1.10.0",
|
|
117
117
|
"@emnapi/runtime": "^1.10.0",
|
|
118
118
|
"@hono/node-server": "2.1.3",
|
|
119
|
-
"@sentry/junior-github": "0.
|
|
120
|
-
"@sentry/junior-memory": "0.
|
|
121
|
-
"@sentry/junior-notion": "0.
|
|
122
|
-
"@sentry/junior-sentry": "0.
|
|
119
|
+
"@sentry/junior-github": "0.308.0",
|
|
120
|
+
"@sentry/junior-memory": "0.308.0",
|
|
121
|
+
"@sentry/junior-notion": "0.308.0",
|
|
122
|
+
"@sentry/junior-sentry": "0.308.0",
|
|
123
123
|
"@sentry/junior-testing": "0.0.0",
|
|
124
124
|
"@types/node": "^24.19.2",
|
|
125
125
|
"@types/pg": "^8.15.6",
|