@sentry/junior 0.247.0 → 0.249.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/{admin-BGwaqDMs.js → admin-DZeUvFHI.js} +1 -1
- package/dist/{agent-hooks-C72ByH0C.js → agent-hooks-B4bQ4kBT.js} +25 -12
- package/dist/{agent-runner-DsAFAKKs.js → agent-runner-B8u9yBSO.js} +1721 -1345
- package/dist/api/schema.d.ts +171 -3
- package/dist/api/schema.js +4 -4
- package/dist/api.js +219 -156
- package/dist/{app-4t4mPTdS.d.ts → app-B0gT1Slp.d.ts} +3 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -27
- package/dist/{assistant-reply-ChOzcTBS.js → assistant-reply-Bhi3sqgj.js} +1 -1
- package/dist/{briefs-Dc7qZrhc.js → briefs-pUYuPjCW.js} +4 -4
- package/dist/{catalog-runtime-DS1k7fUG.js → catalog-runtime-oITS5Rjx.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-BVnfNd3D.js → client-CvAOTqQF.js} +2 -2
- package/dist/{config-CgWvImQL.js → config-DytdkbYS.js} +16 -9
- package/dist/{conversation-CYsbVFLx.js → conversation-NutPJ8S8.js} +16 -2
- package/dist/{conversation-privacy-D3TdVM9H.js → conversation-privacy-B1yNx-7X.js} +1 -1
- package/dist/{credential-sync-DLw3jkv-.js → credential-sync-BejMAPTR.js} +14 -14
- package/dist/{executor-DQazjeGA.js → executor-BYtCR1fJ.js} +2 -2
- package/dist/{history-Nte1oVed.js → history-9pO1Zd4Y.js} +7 -1
- package/dist/{images-C3e5E-p_.js → images-CbP-PoMG.js} +3 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-BEUqRhjC.js → job-queue-B-8tT6DC.js} +1 -1
- package/dist/{logging-CZEc8_v4.js → logging-DkfhlwYe.js} +1 -1
- package/dist/{message-BIJa7lKh.js → message-D1tGYTCC.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-R9OSdLP1.js → oauth-callback-server-Ck1Vs9l_.js} +2 -2
- package/dist/{pending-auth-Oo5AQhaf.js → pending-auth-CBZduFHf.js} +2 -2
- package/dist/{profile-aVLDAirh.js → profile-Ch9aZ6bb.js} +4 -4
- package/dist/{prompt-ZG1UCxjF.js → prompt-kYP1FAX_.js} +1 -1
- package/dist/{registry-CtaDOOM5.js → registry-BPeYibTN.js} +1 -1
- package/dist/{resolve-Bdw4hu7s.js → resolve-QOZbqF7t.js} +2 -2
- package/dist/{result-DNgmkASh.js → result-Dp8BPIuR.js} +8 -8
- package/dist/{runner-BUSScEu5.js → runner-dfLJ6ZCW.js} +10 -10
- package/dist/{sandbox-egress-signals-E9r8bf9G.js → sandbox-egress-signals-Y5eS_FDi.js} +1 -1
- package/dist/{schema-tyd6hALh.js → schema-Bz-kE1z4.js} +4 -3
- package/dist/{session-stop-CAhBfBUT.js → session-stop-Akrz6ImY.js} +11 -11
- package/dist/{skills-DQy-mmBC.js → skills-D4Tpsuvg.js} +2 -2
- package/dist/{spawn-DQ_MVWZ6.js → spawn-DYgYT32M.js} +2 -2
- package/dist/{store-DjLA8GKs.js → store-DqnCyIPs.js} +6 -6
- package/dist/{task-queue-BT2h_t8I.js → task-queue-BNllROcl.js} +3 -3
- package/dist/{task-runner-CiPepjIB.js → task-runner-exdzicSg.js} +11 -11
- package/dist/{tasks-DMmRrIVl.js → tasks-Cf4ib3bG.js} +50 -17
- package/dist/{thread-state-ehZYGpX9.js → thread-state-CPvS5vpy.js} +6 -6
- package/dist/{turn-failure-response-D7J10z7l.js → turn-failure-response-CdixRkEW.js} +8 -8
- package/dist/{turn-lifecycle-Buswqs90.js → turn-lifecycle-DahlJysg.js} +1 -1
- package/dist/{turn-session-routing-Bw-yiSb4.js → turn-session-routing-B3pBx_Ep.js} +1 -1
- package/dist/{validation-DTguegIe.js → validation-LNypV_fu.js} +1 -1
- package/dist/{version-BrZSE5du.js → version-DEl6GNnH.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BlAozHer.js → viewer-BQqX8fDS.js} +4 -4
- package/dist/{web-authorization-DwyTlkAg.js → web-authorization-DLz3WwL6.js} +6 -6
- package/dist/{web-input-DSYxI7Wi.js → web-input-DisCMhtH.js} +29 -29
- package/dist/{work-CRBXkJoU.js → work-6KB-2tbx.js} +30 -14
- package/dist/{worker-BVJKM9Ja.js → worker-6RfyAjWY.js} +5 -5
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-
|
|
1
|
+
import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-BQqX8fDS.js";
|
|
2
2
|
import { CLI_USAGE } from "./cli/run.js";
|
|
3
3
|
//#region src/cli/admin.ts
|
|
4
4
|
/**
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { a as embedTexts, r as completeObject } from "./client-
|
|
3
|
-
import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-
|
|
2
|
+
import { a as embedTexts, r as completeObject } from "./client-CvAOTqQF.js";
|
|
3
|
+
import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-DkfhlwYe.js";
|
|
4
4
|
import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
|
|
5
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
6
|
-
import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-B1yNx-7X.js";
|
|
6
|
+
import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-DytdkbYS.js";
|
|
7
7
|
import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
|
|
8
8
|
import { d as parseSlackTeamId, g as parseSlackMessageTs, i as isActorUserId, o as parseActorUserId, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
|
|
9
|
-
import { O as readUserTimezone, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, k as saveUserTimezone, r as readActorIdentity } from "./viewer-
|
|
9
|
+
import { O as readUserTimezone, T as hasAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, k as saveUserTimezone, r as readActorIdentity } from "./viewer-BQqX8fDS.js";
|
|
10
10
|
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-D_YoNnAn.js";
|
|
11
|
-
import { S as juniorAttachments, _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, i as juniorWorkspaces, m as juniorConversationBriefs, n as juniorSnapshots, r as juniorWorkspaceRepos, x as juniorCodeRepositories, y as juniorConversationAnnotations } from "./executor-
|
|
12
|
-
import { o as decodeStoredConversationEvent } from "./history-
|
|
13
|
-
import { p as credentialSubjectSchema } from "./registry-
|
|
14
|
-
import { C as conversationReportEventSchema,
|
|
15
|
-
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-
|
|
11
|
+
import { S as juniorAttachments, _ as juniorConversationEvents, b as juniorCodeChanges, f as juniorConversationParticipants, i as juniorWorkspaces, m as juniorConversationBriefs, n as juniorSnapshots, r as juniorWorkspaceRepos, x as juniorCodeRepositories, y as juniorConversationAnnotations } from "./executor-BYtCR1fJ.js";
|
|
12
|
+
import { o as decodeStoredConversationEvent } from "./history-9pO1Zd4Y.js";
|
|
13
|
+
import { p as credentialSubjectSchema } from "./registry-BPeYibTN.js";
|
|
14
|
+
import { C as conversationReportEventSchema, F as readMessageAttachments, H as conversationBriefSchema, U as parseBriefInput, q as readMessageCardRefs } from "./conversation-NutPJ8S8.js";
|
|
15
|
+
import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-Ch9aZ6bb.js";
|
|
16
16
|
import { i as isValidTimeZone } from "./cadence-D00SCzT1.js";
|
|
17
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
17
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-kYP1FAX_.js";
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { z } from "zod";
|
|
20
20
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -2832,6 +2832,19 @@ function getSlackToolContext(context) {
|
|
|
2832
2832
|
threadTs: parseSlackMessageTs(location.threadTs)
|
|
2833
2833
|
};
|
|
2834
2834
|
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Return whether a person started this Turn with a Slack message.
|
|
2837
|
+
*
|
|
2838
|
+
* Only these Turns act with that person's Slack authority. Event, automation,
|
|
2839
|
+
* Agent invocation, and dashboard Turns in the same Conversation do not.
|
|
2840
|
+
*/
|
|
2841
|
+
function isSlackMessageTurn(context) {
|
|
2842
|
+
return context.source.kind === "slack" && context.destination.platform === "slack" && context.actor?.platform === "slack" && context.actor.teamId === context.source.teamId;
|
|
2843
|
+
}
|
|
2844
|
+
/** Disable reason for tools that need a Slack message Turn. */
|
|
2845
|
+
function slackMessageTurnDisabledReason(context) {
|
|
2846
|
+
return isSlackMessageTurn(context) ? void 0 : "It needs a Turn that a person started with a Slack message.";
|
|
2847
|
+
}
|
|
2835
2848
|
//#endregion
|
|
2836
2849
|
//#region src/chat/slack/tool-support/channel-capabilities.ts
|
|
2837
2850
|
/** Resolve channel capabilities from a Slack channel ID. */
|
|
@@ -4320,4 +4333,4 @@ function createPluginHookRunner(input = {}) {
|
|
|
4320
4333
|
};
|
|
4321
4334
|
}
|
|
4322
4335
|
//#endregion
|
|
4323
|
-
export {
|
|
4336
|
+
export { verifyEventAutomationCredentialSubject as $, getWorkspaceSnapshotBuilder as A, saveObjectAnnotations as At, STOP_WATCHING_TOOL_NAME as B, getHeaderString as Bt, WorkspaceValidationError as C, readConversationEventPage as Ct, setWorkspaceSnapshotBuild as D, readAttachmentVisionSummary as Dt, setWorkspaceSnapshot as E, matchSlackAttachments as Et, isSlackMessageTurn as F, resolveUserTimezone as Ft, createWatch as G, runWithSlackInstallationToken as Gt, cancelWatch as H, isConversationScopedChannel as Ht, slackMessageTurnDisabledReason as I, lookupSlackUser as It, listWatches as J, runWithWorkspaceTeamId as Jt, deliverWatch as K, withSlackRetries as Kt, RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS as L, SlackActionError as Lt, workspaceRepoCheckoutPath as M, listConversationAnnotations as Mt, resolveChannelCapabilities as N, listConversationAnnotationsById as Nt, SANDBOX_RUNTIME as O, recordSlackAttachment as Ot, getSlackToolContext as P, defaultTimezone as Pt, bindSlackDirectCredentialSubject as Q, authenticationUnlinkedEvent as Qt, RESOURCE_SUBSCRIPTION_MAX_TTL_MS as R, downloadPrivateSlackFile as Rt, updateWorkspace as S, readLatestConversationBrief as St, loadSnapshotsForProfile as T, getSlackFileId as Tt, collectEventMatchKeys as U, isDmChannel as Ut, cancelSubscriptions as V, getSlackClient as Vt, createTimerWatch as W, normalizeSlackConversationId as Wt, bindEventAutomationCredentialSubject as X, agentsInstructionsUpdatedEvent as Xt, takeDueTimerWatches as Y, JUNIOR_NATIVE_EVENT_NAMESPACE as Yt, bindScheduledAutomationCredentialSubject as Z, authenticationLinkedEvent as Zt, deleteWorkspace as _, conversationHasParticipantUser as _t, getPluginRoutes as a, getDashboardObjectIconLink as at, listWorkspaces as b, viewerConversationMembership as bt, getPluginTools as c, createPluginState as ct, setPlugins as d, createPluginLogger as dt, verifyScheduledAutomationCredentialSubject as et, validatePlugins as f, readConversationAccessFromSql as ft, createWorkspace as g, conversationHasParticipantEmail as gt, setBriefsConfig as h, conversationArchivedForUser as ht, getPluginApiRoutes as i, getDashboardConversationLink as it, tryWorkspaceRepoCheckoutPath as j, createPluginAnnotations as jt, deleteWorkspaceSnapshotBuilders as k, resolveRootVisibility as kt, getPluginUserPromptContributions as l, createPluginEmbedder as lt, registration_exports as m, conversationArchivedForEmail as mt, applyPluginFormatMarkdown as n, verifyTimerWatchCredentialSubject as nt, getPluginSlackConversationLink as o, getDashboardTaskLink as ot, coreTaskRegistrations as p, conversationArchiveTimes as pt, findMatchingWatches as q, getWorkspaceTeamId as qt, createPluginHookRunner as r, JUNIOR_THREAD_STATE_TTL_MS as rt, getPluginSystemPromptContributions as s, setDashboardConversationLinkOptions as st, agent_hooks_exports as t, verifySlackDirectCredentialSubject as tt, getPlugins as u, createPluginModel as ut, getWorkspace as v, conversationNotArchivedForEmail as vt, invalidateReadySnapshot as w, buildSentryConversationUrl as wt, listWorkspacesByRepository as x, createPluginConversationEvents as xt, getWorkspaceByName as y, conversationNotArchivedForUser as yt, RESOURCE_WATCH_TOOL_SOURCE as z, getFilePermalink as zt };
|