@sentry/junior 0.273.0 → 0.275.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-umap1cth.js → adapter-dE2BiWP_.js} +1 -1
- package/dist/{admin-0o6E_3lo.js → admin-CkPaAYuZ.js} +1 -1
- package/dist/{agent-runner-D7Qz-lGO.js → agent-runner-bE7aH7ew.js} +1131 -306
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +1 -1
- package/dist/api.js +27 -27
- package/dist/{app-BcyhJq8x.d.ts → app-CgkquhZ8.d.ts} +18 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +74 -30
- package/dist/{assistant-reply-wZ7i4OFa.js → assistant-reply-CjRU9Z59.js} +1 -1
- package/dist/{automation-yffXcZt9.js → automation-BGrd03QO.js} +1 -1
- package/dist/{job-queue-C4lphW9Y.js → background-compaction-queue-BYuOt3qK.js} +42 -3
- package/dist/{briefs-CgMnlpIp.js → briefs-6xUvmGos.js} +4 -4
- package/dist/{catalog-runtime-TygDsPOU.js → catalog-runtime-DcJ5NHDW.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DhqbV0Fe.js → client-gnKpkpqP.js} +2 -2
- package/dist/{config-C6FTd7PX.js → config-D0GKc9sC.js} +2 -2
- package/dist/{connections-Dq72KajR.js → connections-DLqP5Bp1.js} +10 -10
- package/dist/{conversation-T4oabbBi.js → conversation-BjTo9ZFL.js} +1 -1
- package/dist/{conversation-privacy-BeRgrsph.js → conversation-privacy-BCXFshP9.js} +1 -1
- package/dist/{credential-sync-BmCbHAp4.js → credential-sync-BjihXFF2.js} +13 -13
- package/dist/{db-DOzBGLn5.d.ts → db-BMZhoYKj.d.ts} +1 -1
- package/dist/{executor-BafgvQcc.js → executor-j8VMt-To.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CNs1e04n.js → logging-CFHIO4Vs.js} +10 -2
- package/dist/{media-U6Tuz6Mi.js → media-DstkkoNP.js} +21 -2
- package/dist/{message-CETC5lsl.js → message-DH0cqFRS.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +13 -3
- package/dist/{oauth-callback-server-DcQZsKMm.js → oauth-callback-server-BgU4EZsJ.js} +2 -2
- package/dist/{projection-BOpi891B.js → projection-CTvLSwcm.js} +42 -15
- package/dist/{prompt-B1ySjUyf.js → prompt-JEWUUpLW.js} +1 -1
- package/dist/{registry-B-yUrv3h.js → registry-OsyWR4GO.js} +1 -1
- package/dist/{resolve-DqVtd4Q9.js → resolve-DCrKjmVP.js} +3 -3
- package/dist/{result-DQwTiLTw.js → result-Btdt5bSl.js} +9 -9
- package/dist/{runner-Dco5qMq6.js → runner-C1AwS93W.js} +11 -11
- package/dist/{sandbox-egress-signals-DFc_9Mcv.js → sandbox-egress-signals-C-5i7Zxm.js} +1 -1
- package/dist/{schema-5xHDGlBW.js → schema-CX9XGKCm.js} +11 -4
- package/dist/{schema-9OGdsaxF.d.ts → schema-DfdHlBnb.d.ts} +9 -2
- package/dist/{service-account-smdPFWNy.js → service-account-CQIW6At4.js} +3 -3
- package/dist/{service-account-CWfk9Cs-.js → service-account-DZX1KlQl.js} +3 -3
- package/dist/{session-stop-DaT_7tYa.js → session-stop-DjIyORJw.js} +11 -11
- package/dist/{skills-BbtJSF2-.js → skills-BEfAAT6p.js} +2 -2
- package/dist/{spawn-Ceikdjkp.js → spawn-Dgj4xxvO.js} +2 -2
- package/dist/{stop-dKUc-x2K.js → stop-DomyNvuv.js} +61 -69
- package/dist/{store-C1xuZcLd.js → store-B7Z6zIc7.js} +3 -3
- package/dist/{store-DaxUuOmD.js → store-Dp3RMEQd.js} +3 -3
- package/dist/{task-queue-ymAh_-P1.js → task-queue-CVQ9cWnC.js} +3 -3
- package/dist/{task-runner-vlH6pEm3.js → task-runner-DHBG47gS.js} +7 -7
- package/dist/{thread-state-BkUpE9Ae.js → thread-state-BF8VwIxd.js} +4 -4
- package/dist/{turn-failure-response-DIsD7ip_.js → turn-failure-response-Di7TbgsF.js} +7 -7
- package/dist/{turn-lifecycle-BdPKdPS8.js → turn-lifecycle-DzXwXmLg.js} +1 -1
- package/dist/{turn-session-routing-BdCTDq9m.js → turn-session-routing-CIWhXKeT.js} +9 -9
- package/dist/{validation-BQjCfh84.js → validation-BRmwRaXc.js} +1 -1
- package/dist/{version-BpiFGZZW.js → version-DBVMsgvA.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-C6Y1aXjZ.js → viewer-BFADRGP8.js} +17 -8
- package/dist/{work-ChPh_YEh.js → work-DDaoxZAw.js} +11 -11
- package/dist/{worker-Be_sK_ou.js → worker-Bub0fDtW.js} +6 -6
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { D as fallbackShortTitle,
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { _ as runBestEffort, h as logWarn } from "./logging-
|
|
4
|
-
import { G as agentTurnCostUsd, K as agentTurnTotalTokens, S as getDb } from "./viewer-
|
|
1
|
+
import { D as fallbackShortTitle, Rr as escapeSlackMrkdwnText, Xr as postSlackMessage, ca as getDashboardTaskLink, ia as JUNIOR_THREAD_STATE_TTL_MS, qr as openSlackDirectMessage, ua as ToolInputError, zr as formatSlackLink } from "./projection-CTvLSwcm.js";
|
|
2
|
+
import { n as botConfig } from "./config-D0GKc9sC.js";
|
|
3
|
+
import { _ as runBestEffort, h as logWarn } from "./logging-CFHIO4Vs.js";
|
|
4
|
+
import { G as agentTurnCostUsd, K as agentTurnTotalTokens, S as getDb } from "./viewer-BFADRGP8.js";
|
|
5
5
|
import { s as juniorConversations } from "./agent-invocations-C1RNOCs8.js";
|
|
6
|
-
import { d as juniorAutomations, l as juniorAutomationRuns, u as juniorAutomationVersions } from "./executor-
|
|
7
|
-
import { h as credentialSubjectSchema } from "./registry-
|
|
8
|
-
import { r as getStateAdapter } from "./adapter-
|
|
9
|
-
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-
|
|
6
|
+
import { d as juniorAutomations, l as juniorAutomationRuns, u as juniorAutomationVersions } from "./executor-j8VMt-To.js";
|
|
7
|
+
import { h as credentialSubjectSchema } from "./registry-OsyWR4GO.js";
|
|
8
|
+
import { r as getStateAdapter } from "./adapter-dE2BiWP_.js";
|
|
9
|
+
import { O as eventAutomationSchema, S as automationVersionSchema, j as scheduledAutomationSchema } from "./automation-BGrd03QO.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { and, asc, count, desc, eq, gte, inArray, isNotNull, isNull, lte, max, ne, or, sql } from "drizzle-orm";
|
|
@@ -1583,7 +1583,7 @@ function slackSourceForDestination(args) {
|
|
|
1583
1583
|
* Reads parent Conversations when this Conversation has no Destination.
|
|
1584
1584
|
*/
|
|
1585
1585
|
async function resolveConversationRouting(args) {
|
|
1586
|
-
const conversationStore = args.conversationStore ?? (await import("./viewer-
|
|
1586
|
+
const conversationStore = args.conversationStore ?? (await import("./viewer-BFADRGP8.js").then((n) => n.v)).getConversationStore();
|
|
1587
1587
|
const chain = await loadConversationChain(args.conversationId, conversationStore);
|
|
1588
1588
|
let destination;
|
|
1589
1589
|
let source;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
2
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DcJ5NHDW.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.275.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-DBVMsgvA.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { i as getChatConfig } from "./config-
|
|
3
|
-
import {
|
|
2
|
+
import { i as getChatConfig } from "./config-D0GKc9sC.js";
|
|
3
|
+
import { V as normalizeIdentityEmail, h as logWarn, z as GOOGLE_IDENTITY_PROVIDER } from "./logging-CFHIO4Vs.js";
|
|
4
4
|
import { a as isSlackUserId, d as parseSlackChannelReferenceId, f as parseSlackTeamId, s as parseActorUserId } from "./actor-B4DYygOB.js";
|
|
5
5
|
import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, o as conversationReadColumns, s as juniorConversations } from "./agent-invocations-C1RNOCs8.js";
|
|
6
|
-
import { S as juniorConversationAnnotations, b as juniorConversationEvents, g as juniorConversationBindings, h as juniorConversationParticipants, t as createJuniorSqlExecutor, v as CONVERSATION_METRICS, y as juniorConversationMetrics } from "./executor-
|
|
7
|
-
import { d as newConversationEventSchema, f as encodeHistoryPayload, l as decodeStoredConversationEvent, n as detectImageMediaType, o as conversationEventDataSchema, u as historyReplacementSchema, v as usageSchema } from "./media-
|
|
6
|
+
import { S as juniorConversationAnnotations, b as juniorConversationEvents, g as juniorConversationBindings, h as juniorConversationParticipants, t as createJuniorSqlExecutor, v as CONVERSATION_METRICS, y as juniorConversationMetrics } from "./executor-j8VMt-To.js";
|
|
7
|
+
import { d as newConversationEventSchema, f as encodeHistoryPayload, l as decodeStoredConversationEvent, n as detectImageMediaType, o as conversationEventDataSchema, u as historyReplacementSchema, v as usageSchema } from "./media-DstkkoNP.js";
|
|
8
8
|
import { a as withLock } from "./locks-D-0h111u.js";
|
|
9
9
|
import { createHash, randomUUID } from "node:crypto";
|
|
10
10
|
import { and, asc, desc, eq, gt, gte, inArray, isNotNull, isNull, lt, lte, ne, or, sql } from "drizzle-orm";
|
|
@@ -1436,13 +1436,22 @@ var SqlConversationEventStore = class {
|
|
|
1436
1436
|
});
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
|
-
async replaceHistory(conversationId, replacement) {
|
|
1439
|
+
async replaceHistory(conversationId, replacement, options = {}) {
|
|
1440
1440
|
const parsed = historyReplacementSchema.parse(replacement);
|
|
1441
|
-
|
|
1442
|
-
await ensureConversationRow(this.executor, conversationId, Date.now());
|
|
1441
|
+
return withConversationEventLock(this.executor, conversationId, async () => {
|
|
1443
1442
|
const cursor = await this.readCursor(conversationId);
|
|
1444
|
-
const
|
|
1443
|
+
const currentHistoryVersion = cursor.maxHistoryVersion ?? 0;
|
|
1444
|
+
if (options.expectedHistoryVersion !== void 0 && options.expectedHistoryVersion !== currentHistoryVersion) return {
|
|
1445
|
+
status: "conflict",
|
|
1446
|
+
historyVersion: currentHistoryVersion
|
|
1447
|
+
};
|
|
1448
|
+
await ensureConversationRow(this.executor, conversationId, Date.now());
|
|
1449
|
+
const historyVersion = currentHistoryVersion + 1;
|
|
1445
1450
|
await this.executor.db().insert(juniorConversationEvents).values(insertFromEvent(conversationId, cursor.nextSeq, historyVersion, parsed));
|
|
1451
|
+
return {
|
|
1452
|
+
status: "replaced",
|
|
1453
|
+
historyVersion
|
|
1454
|
+
};
|
|
1446
1455
|
});
|
|
1447
1456
|
}
|
|
1448
1457
|
async loadCurrentHistoryVersion(conversationId) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { G as AuthorizationFlowDisabledError,
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
3
|
-
import { M as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-
|
|
4
|
-
import { _ as sameActorIdentity, p as agentInstructionProvenance } from "./media-
|
|
5
|
-
import {
|
|
6
|
-
import { B as agentTypeStartsWithParentHistory, E as markAgentInvocationSteered, J as isTurnInputCommitLostError, K as getConversationTurnBoundaryError, O as reportReplacedAgentInvocation, S as markAgentInvocationMailboxAppended, T as markAgentInvocationRunning, W as TurnInputCommitLostError, d as getAgentInvocationMessageId, g as getLatestAgentInvocationForConversation, n as completeAgentInvocation, o as getActiveAgentInvocationForConversation, p as getAgentInvocationTurnId, r as createAgentInvocation, s as getAgentInvocation, v as isTerminalAgentInvocation, w as markAgentInvocationPaused, y as listActiveAgentInvocationsForConversation, z as agentTypeInstructions } from "./store-
|
|
7
|
-
import { n as getAssistantReplyText } from "./assistant-reply-
|
|
8
|
-
import { A as recordFinishedTurnForAutomatedLimit, j as resetAutomatedTurnLimit, w as maybePostAutomatedTurnLimitNotice } from "./session-stop-
|
|
9
|
-
import { r as appendAndEnqueueInboundMessage } from "./store-
|
|
10
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
11
|
-
import { a as persistThreadStateById, n as getPersistedSandboxState, r as getPersistedThreadState } from "./thread-state-
|
|
1
|
+
import { G as AuthorizationFlowDisabledError, V as PluginCredentialFailureError, Va as loadForkHistory, Wt as isTurnExecutionLimitExceededError, Yt as getTerminalAssistantMessages, et as saveTurnCheckpoint, it as getTurnRecord, l as openConversationProjection, rt as failTurnRecord, tt as abandonTurnRecord } from "./projection-CTvLSwcm.js";
|
|
2
|
+
import { n as botConfig } from "./config-D0GKc9sC.js";
|
|
3
|
+
import { M as SYSTEM_IDENTITY_ID, x as getConversationStore, y as getConversationEventStore } from "./viewer-BFADRGP8.js";
|
|
4
|
+
import { _ as sameActorIdentity, p as agentInstructionProvenance } from "./media-DstkkoNP.js";
|
|
5
|
+
import { Ft as readBlockedReport, Ot as buildSteeringPiMessage, bt as recordSubagentEnded, kt as withoutSavedSteeringMessages, vt as stopChildAgentsOf, xt as recordSubagentStarted } from "./agent-runner-bE7aH7ew.js";
|
|
6
|
+
import { B as agentTypeStartsWithParentHistory, E as markAgentInvocationSteered, J as isTurnInputCommitLostError, K as getConversationTurnBoundaryError, O as reportReplacedAgentInvocation, S as markAgentInvocationMailboxAppended, T as markAgentInvocationRunning, W as TurnInputCommitLostError, d as getAgentInvocationMessageId, g as getLatestAgentInvocationForConversation, n as completeAgentInvocation, o as getActiveAgentInvocationForConversation, p as getAgentInvocationTurnId, r as createAgentInvocation, s as getAgentInvocation, v as isTerminalAgentInvocation, w as markAgentInvocationPaused, y as listActiveAgentInvocationsForConversation, z as agentTypeInstructions } from "./store-B7Z6zIc7.js";
|
|
7
|
+
import { n as getAssistantReplyText } from "./assistant-reply-CjRU9Z59.js";
|
|
8
|
+
import { A as recordFinishedTurnForAutomatedLimit, j as resetAutomatedTurnLimit, w as maybePostAutomatedTurnLimitNotice } from "./session-stop-DjIyORJw.js";
|
|
9
|
+
import { r as appendAndEnqueueInboundMessage } from "./store-Dp3RMEQd.js";
|
|
10
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-DzXwXmLg.js";
|
|
11
|
+
import { a as persistThreadStateById, n as getPersistedSandboxState, r as getPersistedThreadState } from "./thread-state-BF8VwIxd.js";
|
|
12
12
|
import { isDeepStrictEqual } from "node:util";
|
|
13
13
|
import { z } from "zod";
|
|
14
14
|
// src/chat/runtime/turn-execution.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { Ct as hasConversationStop, Et as isInvalidConversationRecordError, Tt as isFinalAttempt } from "./projection-
|
|
3
|
-
import { b as isProviderRetryError } from "./client-
|
|
4
|
-
import { i as getChatConfig } from "./config-
|
|
5
|
-
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
6
|
-
import {
|
|
7
|
-
import { C as requestAnotherSlice, T as startConversationWork, b as recordConversationRetry, d as countPendingConversationMessages, f as deadLetterAttempt, g as getConversationWorkState, i as beginConversationResume, l as completeConversationStop, m as ensureConversationWake, o as checkInConversationWork, p as drainConversationMailbox, s as clearConsumedConversationWake, t as ackMessages, u as completeConversationWork, x as releaseConversationWork, y as recordAttemptFailure } from "./store-
|
|
2
|
+
import { Ct as hasConversationStop, Et as isInvalidConversationRecordError, Tt as isFinalAttempt } from "./projection-CTvLSwcm.js";
|
|
3
|
+
import { b as isProviderRetryError } from "./client-gnKpkpqP.js";
|
|
4
|
+
import { i as getChatConfig } from "./config-D0GKc9sC.js";
|
|
5
|
+
import { T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException } from "./logging-CFHIO4Vs.js";
|
|
6
|
+
import { g as getTurnRequestDeadline, v as ConversationQueueMessageRejectedError } from "./background-compaction-queue-BYuOt3qK.js";
|
|
7
|
+
import { C as requestAnotherSlice, T as startConversationWork, b as recordConversationRetry, d as countPendingConversationMessages, f as deadLetterAttempt, g as getConversationWorkState, i as beginConversationResume, l as completeConversationStop, m as ensureConversationWake, o as checkInConversationWork, p as drainConversationMailbox, s as clearConsumedConversationWake, t as ackMessages, u as completeConversationWork, x as releaseConversationWork, y as recordAttemptFailure } from "./store-Dp3RMEQd.js";
|
|
8
8
|
// src/chat/task-execution/attempt-selection.ts
|
|
9
9
|
function selectContiguousTurnBatch(messages) {
|
|
10
10
|
const first = messages[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.275.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"sharp": "^0.35.3",
|
|
92
92
|
"yaml": "^2.9.0",
|
|
93
93
|
"zod": "^4.5.4",
|
|
94
|
-
"@sentry/junior-plugin-api": "0.
|
|
94
|
+
"@sentry/junior-plugin-api": "0.275.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"bullmq": "^6.5.0",
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"typescript": "^7.0.2",
|
|
127
127
|
"vercel": "^54.4.0",
|
|
128
128
|
"vitest": "^4.1.12",
|
|
129
|
-
"@sentry/junior-github": "0.
|
|
129
|
+
"@sentry/junior-github": "0.275.0",
|
|
130
130
|
"@sentry/junior-testing": "0.0.0",
|
|
131
|
-
"@sentry/junior-memory": "0.
|
|
131
|
+
"@sentry/junior-memory": "0.275.0"
|
|
132
132
|
},
|
|
133
133
|
"scripts": {
|
|
134
134
|
"build": "tsdown",
|