@sentry/junior 0.309.0 → 0.310.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-1YUbMpD3.js → adapter-context-BhKpjpGD.js} +2 -2
- package/dist/{admin-u30A8TcD.js → admin-tgZEZAk2.js} +2 -2
- package/dist/{agent-runner-sJLhgPQV.js → agent-runner-D9cvNlQl.js} +176 -138
- package/dist/api/schema.js +5 -5
- package/dist/api.js +30 -30
- package/dist/app.js +31 -30
- package/dist/{background-compaction-queue-CUJXVKG3.js → background-compaction-queue-BGHqkhkY.js} +4 -4
- package/dist/{briefs-BHi70IR5.js → briefs-DKxkoruh.js} +3 -3
- package/dist/{catalog-runtime-Chc_IP2o.js → catalog-runtime-BxwzbLKY.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-BIyIdTtA.js → config-Dkt2Le2b.js} +2 -2
- package/dist/{continue-in-slack-BQJBfiQh.js → continue-in-slack-BWVwePKD.js} +5 -5
- package/dist/{conversation-CzrLhdHG.js → conversation-M9KZ5JxF.js} +1 -1
- package/dist/{conversation-feed-B9e3_gxz.js → conversation-feed-Ci6YD1N-.js} +1 -1
- package/dist/{conversation-privacy-CkTW29hd.js → conversation-privacy-C39g8BY4.js} +1 -1
- package/dist/{conversation-turn-CZaYQUum.js → conversation-turn-CBlZIH02.js} +16 -16
- package/dist/{credential-sync-58m_CyIJ.js → credential-sync-vGnrB0BY.js} +16 -16
- package/dist/{db-CFUpEZi9.js → db-CFZggNoy.js} +13 -5
- package/dist/{executor-DXL0O0MV.js → executor-BPkZDx5-.js} +10 -3
- package/dist/{history-N7IVbUom.js → history-CYstOMKX.js} +6 -0
- package/dist/{html-CaBu2VbT.js → html-2r2KmLwi.js} +6 -6
- package/dist/{install-DhTBUUov.js → install-C-oE6C_u.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-CxtOI2_p.js → lineage-CsvrEFQe.js} +2 -2
- package/dist/{logging-BNUovdcX.js → logging-D5gkyvnK.js} +1 -1
- package/dist/{message-DcUsS2vg.js → message-DwvJ-I3w.js} +8 -8
- package/dist/{model-input-o3rEqgwM.js → model-input-MAq2881y.js} +2 -2
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-1Fizd1EM.js → oauth-callback-server-DIF6Li06.js} +2 -2
- package/dist/{oauth-relay-DOwngqdM.js → oauth-relay-DPE-wrwO.js} +1 -1
- package/dist/{projection-Ce4pmhKP.js → projection-jZSlEAXG.js} +32 -15
- package/dist/{prompt-DEqjDVMs.js → prompt-CaMyeCpA.js} +4 -4
- package/dist/{registry-CNE4ZBnG.js → registry-BBkWFCl8.js} +1 -1
- package/dist/{resolve-qbPg-aC-.js → resolve-B38MkHXE.js} +3 -3
- package/dist/{result-ZGnDzcsb.js → result-BaqSZcJb.js} +8 -8
- package/dist/{runner-eGIxpAMf.js → runner-11h8PrHh.js} +10 -10
- package/dist/{sandbox-egress-signals-DMFB1kCp.js → sandbox-egress-signals-CTcACAtJ.js} +1 -1
- package/dist/{schedule-Cire6NU7.js → schedule-DWxZ3kja.js} +1 -1
- package/dist/{schema-CfIey9Ao.js → schema-obw5jvR4.js} +3 -3
- package/dist/{service-account-B1VXCTqg.js → service-account-Bx93N1n1.js} +3 -3
- package/dist/{service-account-Cw_LWZ4-.js → service-account-Zc5bUcIJ.js} +5 -5
- package/dist/{session-stop-P2XdTiwr.js → session-stop-BfY4rhJs.js} +39 -36
- package/dist/{skills-Zg8-vrje.js → skills-C8Npu5zO.js} +77 -31
- package/dist/{slack-conversation-unfurl-DA51qH0c.js → slack-conversation-unfurl-DlRVA02H.js} +10 -10
- package/dist/{spawn-DBi4-zD8.js → spawn-CXr58R0x.js} +6 -6
- package/dist/{state-C-Ftk23K.js → state-CGrGVeQC.js} +4 -4
- package/dist/{stop-D9xideLM.js → stop-DYzjRf2U.js} +33 -33
- package/dist/{store-BjIXA0Al.js → store-D4FQ1Nml.js} +5 -5
- package/dist/{task-queue-D0_qbnpo.js → task-queue-CaZffYaH.js} +3 -3
- package/dist/{task-runner-DQMq4XY0.js → task-runner-Dm7BHbGp.js} +7 -7
- package/dist/{thread-context-D0i1e-5O.js → thread-context-Dyj1KWaY.js} +7 -7
- package/dist/{turn-session-routing-C0l68I_O.js → turn-session-routing-CD0BRCex.js} +4 -4
- package/dist/{turn-user-message-nBVvOXjs.js → turn-user-message-9IxeEv5v.js} +3 -3
- package/dist/{users-DdjMjbmM.js → users-CaUAYMb3.js} +1 -1
- package/dist/{validation-CRbvRPvu.js → validation-DxVNIxA0.js} +1 -1
- package/dist/{version-BYdVs12p.js → version-Cr7Z71yG.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DudYrQGj.js → viewer-AHldghAD.js} +3 -3
- package/dist/{warmup-DN9OHN1-.js → warmup-C6LOZ2d2.js} +22 -22
- package/dist/{worker-C9ZfJXmV.js → worker-CUBtu1Li.js} +8 -8
- package/migrations/0124_artifact_visibility.sql +9 -0
- package/migrations/0125_artifact_public_sha_index.sql +1 -0
- package/migrations/meta/0124_snapshot.json +5516 -0
- package/migrations/meta/0125_snapshot.json +5516 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +7 -7
|
@@ -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
|
|
1
|
+
import { a as getConversationStore } from "./db-CFZggNoy.js";
|
|
2
|
+
import { p as logException } from "./logging-D5gkyvnK.js";
|
|
3
|
+
import "./background-compaction-queue-BGHqkhkY.js";
|
|
4
|
+
import { At as getConversationWorkStates$1, Bt as recordConversationRetry$1, Dt as dropPendingMessages$1, Et as drainConversationMailbox$1, Ft as listActiveConversationIds$1, Gt as startConversationWork$1, Ht as releaseInboundMessage, It as markConversationWorkEnqueued$1, Jt as takeDeferredConversationMove, Kt as steerWebPendingMessages$1, Mt as hasRunnableConversationWork, Ot as getConversation$1, St as completeConversationWork$1, Ut as requestAnotherSlice$1, Vt as releaseConversationWork$1, Wt as requestConversationWork$1, _t as checkInConversationWork$1, bt as clearExpiredConversationLease$1, ft as ackMessages$1, gt as cancelHumanFacingPendingMessages$1, ht as beginConversationResume$1, kt as getConversationWorkState$1, mt as appendInboundMessage, pt as appendExclusiveInboundMessage, qt as stopConversationWork$1, vt as claimInboundMessage$1, wt as deadLetterAttempt$1, xt as completeConversationStop$1, yt as clearConsumedConversationWake$1, zt as recordAttemptFailure$1 } from "./projection-jZSlEAXG.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-DlRVA02H.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-D5gkyvnK.js";
|
|
2
|
+
import { i as getChatConfig } from "./config-Dkt2Le2b.js";
|
|
3
3
|
import "./fan-out-Cod-yEHG.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import pLimit from "p-limit";
|
|
@@ -399,7 +399,7 @@ function pluginTaskCallback() {
|
|
|
399
399
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
400
400
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
401
401
|
run: async (message) => {
|
|
402
|
-
const { processPluginTask } = await import("./task-runner-
|
|
402
|
+
const { processPluginTask } = await import("./task-runner-Dm7BHbGp.js").then((n) => n.r);
|
|
403
403
|
await processPluginTask(message);
|
|
404
404
|
},
|
|
405
405
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as getConversationStore,
|
|
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 { Fi as createPluginState, Fn as getPlugins, Ga as createPluginModelCostRecorder, Ka as createPluginLogger, Ma as createPluginModel, Qo as getDispatchRecord, ar as instructionTextForProjection, b as hydrateConversationMessages, dr as normalizeToolNameFromResult, er as getPiMessageRole, ja as createPluginEmbedder, lr as isToolResultError, ml as createPluginCache, pr as stripRuntimeTurnContext, ro as createPluginConversationEvents, st as getTurnRecord, ur as isToolResultMessage, zn as coreTaskRegistrations } from "./projection-jZSlEAXG.js";
|
|
3
|
+
import { a as getConversationStore, o as getDb, tt as getStateAdapter } from "./db-CFZggNoy.js";
|
|
4
|
+
import { E as withSpan } from "./logging-D5gkyvnK.js";
|
|
5
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, t as resolveConversationRouting } from "./turn-session-routing-CD0BRCex.js";
|
|
6
|
+
import { i as readActorIdentity } from "./viewer-AHldghAD.js";
|
|
7
7
|
import { v as parseSlackMessageTs } from "./actor-BsBdxDXQ.js";
|
|
8
|
-
import { m as sameActorIdentity } from "./history-
|
|
9
|
-
import { i as pluginTaskParamsSchema, r as pluginTaskId } from "./task-queue-
|
|
8
|
+
import { m as sameActorIdentity } from "./history-CYstOMKX.js";
|
|
9
|
+
import { i as pluginTaskParamsSchema, r as pluginTaskId } from "./task-queue-CaZffYaH.js";
|
|
10
10
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
11
11
|
import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
|
|
12
12
|
// src/chat/plugins/task-runner.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as buildConversationContext, Lo as listConversationAnnotations, X as clearPendingAuth, b as hydrateConversationMessages, j as markConversationMessage } from "./projection-jZSlEAXG.js";
|
|
2
2
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
3
|
-
import { K as isRecord, b as setSpanAttributes } from "./logging-
|
|
4
|
-
import { o as getDb, r as getConversationEventStore } from "./db-
|
|
5
|
-
import { J as readMessageCardRefs, X as resolveMessageCards, Y as removedCardSchema } from "./conversation-
|
|
6
|
-
import { S as listChildMessages, m as markTurnCompleted, n as getTurnUserMessageId, p as markTurnClosed, x as isAgentInvocationResult } from "./turn-user-message-
|
|
7
|
-
import { _ as getConversationWorkState } from "./store-
|
|
8
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, s as persistThreadStateById } from "./turn-session-routing-
|
|
3
|
+
import { K as isRecord, b as setSpanAttributes } from "./logging-D5gkyvnK.js";
|
|
4
|
+
import { o as getDb, r as getConversationEventStore } from "./db-CFZggNoy.js";
|
|
5
|
+
import { J as readMessageCardRefs, X as resolveMessageCards, Y as removedCardSchema } from "./conversation-M9KZ5JxF.js";
|
|
6
|
+
import { S as listChildMessages, m as markTurnCompleted, n as getTurnUserMessageId, p as markTurnClosed, x as isAgentInvocationResult } from "./turn-user-message-9IxeEv5v.js";
|
|
7
|
+
import { _ as getConversationWorkState } from "./store-D4FQ1Nml.js";
|
|
8
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, s as persistThreadStateById } from "./turn-session-routing-CD0BRCex.js";
|
|
9
9
|
// src/chat/conversations/pending-cards.ts
|
|
10
10
|
/**
|
|
11
11
|
* Add the cards that tool results selected since the last visible assistant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { J as toOptionalString, K as isRecord, q as toOptionalNumber } from "./logging-
|
|
3
|
-
import {
|
|
1
|
+
import { Qo as getDispatchRecord, S as persistConversationMessages, Yo as getDispatchConversationId, dl as JUNIOR_THREAD_STATE_TTL_MS, hl as createDurableLocationConfigurationService } from "./projection-jZSlEAXG.js";
|
|
2
|
+
import { J as toOptionalString, K as isRecord, q as toOptionalNumber } from "./logging-D5gkyvnK.js";
|
|
3
|
+
import { o as getDb, tt as getStateAdapter } from "./db-CFZggNoy.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-CFZggNoy.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 {
|
|
1
|
+
import { Yt as readInboundMessageSender } from "./projection-jZSlEAXG.js";
|
|
2
2
|
import { v as parseSlackMessageTs } from "./actor-BsBdxDXQ.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-CFZggNoy.js";
|
|
4
|
+
import { y as juniorAgentInvocations } from "./executor-BPkZDx5-.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 {
|
|
1
|
+
import { Cs as SlackActionError, Ds as getSlackClient, Ps as withSlackRetries } from "./projection-jZSlEAXG.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-BxwzbLKY.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.310.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-Cr7Z71yG.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as juniorUsers, z as juniorIdentities } from "./executor-
|
|
3
|
-
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER } from "./logging-
|
|
1
|
+
import { I as findActorIdentityId, X as readCachedUserByEmail, Y as clearCachedUser, o as getDb } from "./db-CFZggNoy.js";
|
|
2
|
+
import { B as juniorUsers, z as juniorIdentities } from "./executor-BPkZDx5-.js";
|
|
3
|
+
import { G as normalizeIdentityEmail, U as GOOGLE_IDENTITY_PROVIDER } from "./logging-D5gkyvnK.js";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { identitySchema, userSchema } from "@sentry/junior-plugin-api";
|
|
6
6
|
import { and, asc, eq, inArray, isNotNull } from "drizzle-orm";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { K as renderParentAgentTask, _ as TURN_REASONING_LEVELS, at as bufferBody, i as getChatConfig, k as resolveGatewayModel, n as botConfig, nt 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 loadTurnCheckpoint, $c as readAutomationExecutionByConversationId, $i as getSandboxProvider, $r as requireReviewItemLinks, Bc as requireValidEventTrigger, Bi as getWorkspaceByName, Cc as saveEventAutomation, Ci as getWatch, Cn as getOAuthAccountProviders, Co as readLiveAttachment, Cs as SlackActionError, Da as SANDBOX_RUNTIME, Di as turnEvents, Ds as getSlackClient, Fa as SANDBOX_REPOS_ROOT, Fc as registeredEventMatchSchema, Fn as getPlugins, Fo as saveObjectAnnotations, Fr as getOpenReviewItemByDedupeKey, Fs as sleep, Gc as sameDefinitionValue, Gi as invalidateReadySnapshot, Gn as lexemesSql, H as PluginCredentialFailureError, Ia as SANDBOX_SCRATCH_ROOT, Ic as registeredEventTriggerProblems, In as getStaticPluginToolDefinitions, Io as createPluginAnnotations, Ir as getReviewItem, Jc as requireAutomationRevision, Ji as setWorkspaceSnapshotBuild, Jn as SEARCHABLE_EVENT_TYPES, K as AuthorizationFlowDisabledError, Ka as createPluginLogger, Ki as loadSnapshotsForProfile, Kn as searchedEventTextSql, Kr as canAgentChangeReviewItem, Lc as registeredEventTypeSchema, Li as createWorkspace, Lr as insertReviewItem, Mc as eventNamespaceSchema, Nc as eventWatchUnavailable, Oc as automationEventCatalog, On as createPluginHookRunner, Os as isConversationScopedChannel, Pc as hasEventCatalogEntries, Po as embedConversationQuery, Pr as dismissOpenReviewItems, Ps as withSlackRetries, Qo as getDispatchRecord, Qr as requireReviewItemAssignees, Qs as parseScheduledAutomationRow, Ra as SANDBOX_WORKSPACE_ROOT, Rc as registeredResourceTypeSchema, Ri as deleteWorkspace, Sc as parseEventAutomationRow, Si as findMatchingWatches, Ti as listWatches, Ts as getFilePermalink, Uc as listAutomationVersions, Ui as updateWorkspace, Ur as updateReviewItemContent, Vc as automationDefinition, Vi as listWorkspaces, Vr as searchReviewItems, Wc as readAutomationVersion, Wi as WorkspaceValidationError, Wr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, Ws as slackMention, X as clearPendingAuth, Xa as readConversationAccessFromSql, Xn as eventExcerpt, Xo as getDispatchIdForConversation, Xs as deleteScheduledAutomation, Yc as ToolInputError, Yi as create, Yn as callsToolSql, Zc as emptyAutomationRunWindows, Zi as isStale, Zn as excerptTerms, Zo as getDispatchInputMessageId, Zr as readReviewItemAgentScope, _i as cancelWatch, ai as activeParticipantUserIds, al as readAutomationRuns, at as failTurnRecord, b as hydrateConversationMessages, bi as createWatch, c as openConversationProjection, ci as resolveAssignees, cn as replyTextSchema, di as getSlackToolContext, ds as getSlackMessagePermalink, ec as saveScheduledAutomation, el as readAutomationExecutionStatusDays, et as lostWorkerBeforeFirstSave, fi as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, fn as NO_REPLY_TOOL_NAME, fo as FORK_INSTRUCTIONS, fs as openSlackDirectMessage, ga as isWorkspaceSnapshotNotReadyError, go as matchSlackAttachments, hi as STOP_WATCHING_TOOL_NAME, ic as getDashboardConversationLink, ii as EVERYONE_ASSIGNEE, il as readAutomationRowStats, in as REPLY_TOOL_NAME, j as markConversationMessage, jo as searchConversations, jr as closeReviewItem, js as normalizeSlackConversationId, ka as workspaceRepoCheckoutPath, kc as describeRegisteredEventTrigger, ll as fallbackShortTitle, lt as recordTurnSummary, ma as WorkspaceSnapshotNotReadyError, mi as RESOURCE_WATCH_TOOL_SOURCE, ml as createPluginCache, mn as isLegacyNoReplyMarker, nl as readAutomationExecutionSummaries, nt as saveTurnCheckpoint, oi as automationCreatorUserId, on as readTurnAnswer, pi as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, pn as findLegacyNoReplyMarker, po as loadForkHistory, qa as canAccessConversation, qc as automationRevision, qi as setWorkspaceSnapshot, qn as seqIn, qr as canReadReviewItem, rl as readAutomationExecutions, rn as isTurnExecutionLimitExceededError, rt as abandonTurnRecord, si as resolveAssignee, st as getTurnRecord, tl as readAutomationExecutionStatusHours, tr as getTerminalAssistantMessages, tt as pauseLostWorkerTurn, ua as isAbortError, uc as getDashboardTaskLink, ul as resolveTaskTitle, un as getAssistantReplyText, vc as deleteEventAutomation, vn as REPORT_BLOCKED_TOOL_NAME, wa as buildSandboxEgressNetworkPolicy, wc as setEventAutomationStatus, wi as isQuietEvent, wo as recordUploadedAttachment, ws as downloadPrivateSlackFile, xa as createSandboxEgressCredentialToken, xc as listDeletedEventAutomationsCreatedBy, xi as deliverWatch, yi as createTimerWatch, zc as requireEventIdentifier, zi as getWorkspace, zo as defaultTimezone } from "./projection-jZSlEAXG.js";
|
|
3
|
+
import { K as renderParentAgentTask, _ as TURN_REASONING_LEVELS, at as bufferBody, i as getChatConfig, k as resolveGatewayModel, n as botConfig, nt as isProviderRetryError } from "./config-Dkt2Le2b.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-D5gkyvnK.js";
|
|
5
5
|
import { h as startSpan, n as captureMessage, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
6
6
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
7
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
8
|
-
import { Ct as
|
|
9
|
-
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-
|
|
10
|
-
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-
|
|
7
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BxwzbLKY.js";
|
|
8
|
+
import { $ as maybePostAutomatedTurnLimitNotice, Ct as WORKSPACE_SNAPSHOT_READY_EVENT, E as getAuthPausedConversationTurnId, Et as buildDeploymentSystemPrompt, F as EVENT_WAIT_MS, H as addConversationNote, I as addQuietEventNote, J as resolveEventAuthor, L as enqueueEventNotification, O as listActiveMailboxTurnSources, St as WORKSPACE_SNAPSHOT_FAILED_EVENT, Tt as workspaceSnapshotWatch, _t as requireSlackChannelMessageScope, ct as recordFinishedTurnForAutomatedLimit, dt as conversationSubtreeColumns, f as buildSteeringPiMessage, g as withoutSavedSteeringMessages, ht as getEventCatalog, i as resumeStoppedConversationTree, k as listActiveMailboxTurns, lt as resetAutomatedTurnLimit, m as instructionForInputs, n as isSkippedAfterConversationStop, pt as isExperimentalFeatureEnabled, r as markConversationsStopped, rt as resolveEventMentions, t as getConversationStoppedAtMs, ut as conversationSubtree, v as saveUserCustomization, w as renderPlanAssignee, wt as workspaceSnapshotFinishedEvent, x as listPlanItems, xt as slackChannelMessageTrigger, y as changePlan, z as isEventMailboxMetadata } from "./session-stop-BfY4rhJs.js";
|
|
9
|
+
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-M9KZ5JxF.js";
|
|
10
|
+
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-DWxZ3kja.js";
|
|
11
11
|
import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-BsBdxDXQ.js";
|
|
12
|
-
import { A as
|
|
13
|
-
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-
|
|
14
|
-
import { t as discoverSkills } from "./skills-
|
|
12
|
+
import { A as turnBehavior, Ct as resolveRootConversationId, D as isTopLevelKind, E as isPersonInput, Et as nextDetailVersion, F as SYSTEM_IDENTITY_ID, L as resolveActorIdentityId, _ as readConversationTrees, a as getConversationStore, d as eventFromRow, g as conversationDescendants, h as conversationAncestors, i as getConversationMessageSearchStore, j as conversationKindFromRow, jt as sameDestination, k as promptModeTurnTools, mt as usdToMicroUsd, nt as getStateValues, o as getDb, ot as fenceLock, r as getConversationEventStore, rt as setStateValues, s as getSqlExecutor, st as withLock, tt as getStateAdapter, v as setArchivedAt, wt as rootConversationIsArchived, x as userMessageQueries } from "./db-CFZggNoy.js";
|
|
13
|
+
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-BPkZDx5-.js";
|
|
14
|
+
import { t as discoverSkills } from "./skills-C8Npu5zO.js";
|
|
15
15
|
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";
|
|
16
|
-
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-
|
|
17
|
-
import { A as getAgentInvocationMessageId, C as ownAgentInvocation, E as getAgentInvocationId, F as getNamedAgentConversationId, L as getUnnamedAgentConversationId, M as getAgentInvocationTurnId, P as getChildAgentLockName, S as listChildMessages, T as readChildMessageSenders, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationResultMessageId, k as getAgentInvocationIdForResult, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender, z as buildDeterministicTurnId } from "./turn-user-message-
|
|
18
|
-
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-
|
|
19
|
-
import { d as contextProvenance, m as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as agentInstructionProvenance } from "./history-
|
|
20
|
-
import { m as credentialContextSchema, p as credentialContextForActor } from "./registry-
|
|
21
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, s as persistThreadStateById } from "./turn-session-routing-
|
|
22
|
-
import { g as getTurnRequestDeadline } from "./task-queue-
|
|
23
|
-
import { d as sendNextWorkspaceSnapshotJob, f as sendWorkspaceSnapshotJob, l as sendCacheWarmup, m as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
24
|
-
import { d as completeText, m as searchWeb, r as EVENT_AUTHOR_ID } from "./prompt-
|
|
25
|
-
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-
|
|
26
|
-
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-
|
|
16
|
+
import { f as identityAvatarUrl, h as readUserAvatarUrls } from "./viewer-AHldghAD.js";
|
|
17
|
+
import { A as getAgentInvocationMessageId, C as ownAgentInvocation, E as getAgentInvocationId, F as getNamedAgentConversationId, L as getUnnamedAgentConversationId, M as getAgentInvocationTurnId, P as getChildAgentLockName, S as listChildMessages, T as readChildMessageSenders, _ as ConversationTurnLifecycleService, b as hasAgentInvocationReply, d as isTurnInputCommitLostError, j as getAgentInvocationResultMessageId, k as getAgentInvocationIdForResult, l as getConversationTurnBoundaryError, p as markTurnClosed, s as TurnInputCommitLostError, t as getTurnUserMessage, w as readChildMessageSender, z as buildDeterministicTurnId } from "./turn-user-message-9IxeEv5v.js";
|
|
18
|
+
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-D4FQ1Nml.js";
|
|
19
|
+
import { d as contextProvenance, m as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as agentInstructionProvenance } from "./history-CYstOMKX.js";
|
|
20
|
+
import { m as credentialContextSchema, p as credentialContextForActor } from "./registry-BBkWFCl8.js";
|
|
21
|
+
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, n as resolveTurnResumeRouting, s as persistThreadStateById } from "./turn-session-routing-CD0BRCex.js";
|
|
22
|
+
import { g as getTurnRequestDeadline } from "./task-queue-CaZffYaH.js";
|
|
23
|
+
import { d as sendNextWorkspaceSnapshotJob, f as sendWorkspaceSnapshotJob, l as sendCacheWarmup, m as getVercelConversationWorkQueue } from "./background-compaction-queue-BGHqkhkY.js";
|
|
24
|
+
import { d as completeText, m as searchWeb, r as EVENT_AUTHOR_ID } from "./prompt-CaMyeCpA.js";
|
|
25
|
+
import { a as searchSlackUsers, i as lookupSlackUserProfile, r as lookupSlackUserByEmail } from "./users-CaUAYMb3.js";
|
|
26
|
+
import { n as postinstall, o as getSandboxResources, t as dependencies } from "./install-C-oE6C_u.js";
|
|
27
27
|
import * as z from "zod";
|
|
28
28
|
import pLimit from "p-limit";
|
|
29
29
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
@@ -1795,7 +1795,7 @@ async function requireToolCaller(context) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
/** Require the Destination of this Conversation for a new or moved Automation. */
|
|
1797
1797
|
function requireToolDestination(context) {
|
|
1798
|
-
if (!context.destination) throw new ToolInputError("This Conversation has no channel or DM that an Automation can deliver to.
|
|
1798
|
+
if (!context.destination) throw new ToolInputError("This Conversation has no channel or DM that an Automation can deliver to. Set destination to a public Slack channel, or ask from the Slack channel or DM where it should deliver.");
|
|
1799
1799
|
return context.destination;
|
|
1800
1800
|
}
|
|
1801
1801
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as getChatConfig, nt 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 { Ln as isAttemptInterrupt, Rn as selectAttemptMessages } from "./warmup-
|
|
2
|
+
import { Ct as countPendingConversationMessages, Nt as isFinalAttempt, Pt as isInvalidConversationRecordError, jt as hasConversationStop } from "./projection-jZSlEAXG.js";
|
|
3
|
+
import { i as getChatConfig, nt as isProviderRetryError } from "./config-Dkt2Le2b.js";
|
|
4
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-D5gkyvnK.js";
|
|
5
|
+
import { t as getConversationStoppedAtMs } from "./session-stop-BfY4rhJs.js";
|
|
6
|
+
import { g as getTurnRequestDeadline } from "./task-queue-CaZffYaH.js";
|
|
7
|
+
import { _ as ConversationQueueMessageRejectedError, b as nudgeIdempotencyKey } from "./background-compaction-queue-BGHqkhkY.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-D4FQ1Nml.js";
|
|
9
|
+
import { Ln as isAttemptInterrupt, Rn as selectAttemptMessages } from "./warmup-C6LOZ2d2.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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
-- `visibility` replaces `public`. publishImage is the only writer, and it
|
|
2
|
+
-- always wrote `public = true`, so the 'public' default is right for every
|
|
3
|
+
-- existing row. The defaults on both columns keep the previous runtime's
|
|
4
|
+
-- inserts valid during rollout.
|
|
5
|
+
ALTER TABLE "junior_artifacts" ALTER COLUMN "public" SET DEFAULT true;--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "junior_artifacts" ADD COLUMN "visibility" text DEFAULT 'public' NOT NULL;--> statement-breakpoint
|
|
7
|
+
-- Every existing row is 'public' here. NOT VALID skips the scan under lock
|
|
8
|
+
-- and still checks every new write.
|
|
9
|
+
ALTER TABLE "junior_artifacts" ADD CONSTRAINT "junior_artifacts_visibility_check" CHECK ("junior_artifacts"."visibility" in ('conversation', 'internal', 'public')) NOT VALID;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "junior_artifacts_public_sha_uidx" ON "junior_artifacts" USING btree ("conversation_id","sha256") WHERE "junior_artifacts"."visibility" = 'public';
|