@sentry/junior 0.222.0 → 0.224.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-hooks-DkriF84n.js → agent-hooks-DNLBwmsh.js} +60 -16
- package/dist/{agent-7kKtDe-6.js → agent-runner-9g6TQk9y.js} +879 -69
- package/dist/api/schema.d.ts +160 -11
- package/dist/api/schema.js +2 -2
- package/dist/api.js +16 -16
- package/dist/{app-C0zbsnr7.d.ts → app-BbSD6EtD.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +1598 -69
- package/dist/{briefs-CNH1ztn5.js → briefs-CjXnGKzZ.js} +6 -6
- package/dist/{catalog-runtime-XH_LFA_7.js → catalog-runtime-CVZ9TEuK.js} +1 -1
- package/dist/{checkpoint-CRod8es5.js → checkpoint-Ceck_fLO.js} +12 -9
- package/dist/cli/chat.js +14 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-CcSboWx_.js → client-B27ufhzl.js} +56 -6
- package/dist/{config-CGYv-YPE.js → config-BAhl7-RC.js} +6 -7
- package/dist/{conversation-BBDt88di.js → conversation-1HUoZr2l.js} +33 -5
- package/dist/{conversation-privacy-BGjdDVWD.js → conversation-privacy-C-4JQzKD.js} +1 -1
- package/dist/credential-sync-BXHIxbtS.js +940 -0
- package/dist/{execution-stats-D97ePWuM.js → execution-stats-DikPOxJ1.js} +3 -3
- package/dist/{executor-BLBZ-UB8.js → executor-BG2Armby.js} +1 -1
- package/dist/{history-CaV8Ww7M.d.ts → history-yaSjGMD_.d.ts} +18 -0
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-_8gxwDzt.js → job-queue-D4oAVrL9.js} +1 -1
- package/dist/{logging-qmsMdU0y.js → logging-iY0ssa2q.js} +1 -1
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{pending-auth-_1Ry-_Bw.js → oauth-authorization-BIijVS2N.js} +6 -48
- package/dist/{oauth-callback-server-Mjfm46A5.js → oauth-callback-server-DPkK3kzi.js} +4 -4
- package/dist/{profile-DbG8AlNd.js → profile-6KWhg_-U.js} +5 -9
- package/dist/{prompt-B8rCQI7K.js → prompt-90miy8VV.js} +1 -1
- package/dist/{registry-DGyQCsiy.js → registry-Ctgdjt-W.js} +1 -1
- package/dist/{resolve-D5SqDbCA.js → resolve-CB45ZukQ.js} +2 -2
- package/dist/{runner-BRAFjJhe.js → runner-BwKCqoF3.js} +9 -10
- package/dist/{sandbox-egress-signals-CdI1aVHT.js → sandbox-egress-signals-Cmy8ODat.js} +1 -1
- package/dist/{schema-CTOODa3L.js → schema-RpbW5Od2.js} +1 -1
- package/dist/{short-title-CB2fxEyx.js → short-title-xEkZwkcV.js} +2 -2
- package/dist/{skills-BoS3b8cg.js → skills-c2bMDVRS.js} +2 -2
- package/dist/{spawn-BXCU1udr.js → spawn-Cg6lyjE7.js} +2 -2
- package/dist/{stats-qUXQZq-w.js → stats-DP9zl3Jg.js} +19 -17
- package/dist/{task-queue-Di_q8922.js → task-queue-SL4uLfBB.js} +3 -3
- package/dist/{task-runner-4rCppQMo.js → task-runner-fntmnqzx.js} +9 -84
- package/dist/{thread-state-2Paza8DV.js → thread-state-Wfr0GdKS.js} +5 -5
- package/dist/{auth-pause-state-3OT67TA8.js → turn-failure-response-DLjSEm-R.js} +74 -84
- package/dist/{turn-lifecycle-f-y0Irpi.js → turn-lifecycle-5_jvLqRz.js} +1 -1
- package/dist/turn-session-routing-CQaysLoe.js +77 -0
- package/dist/{validation-Be9lSORU.js → validation-CnZkCN7o.js} +1 -1
- package/dist/{version-BydrOZMQ.js → version-C6lA-h_o.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-BdfOkTuG.js → web-authorization-Bbx999_q.js} +1 -1
- package/dist/{web-input-DegYUyKU.js → web-input-BoE1xE-K.js} +7 -7
- package/dist/{work-Citqpnfc.js → work-4Nhz9mVv.js} +52 -10
- package/dist/{worker-Bn_HFyvM.js → worker-CdWPsNL2.js} +5 -5
- package/package.json +4 -4
- package/dist/agent-runner-D0ImXS7U.js +0 -679
- package/dist/credential-sync-BfzGNruT.js +0 -2757
- package/dist/experimental-CIXf7Uye.js +0 -46
- package/dist/turn-execution--F7a9kEU.js +0 -47
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as logWarn } from "./logging-
|
|
2
|
-
import {
|
|
3
|
-
import { E as juniorConversations, s as juniorAutomationExecutions } from "./executor-
|
|
1
|
+
import { f as logWarn } from "./logging-iY0ssa2q.js";
|
|
2
|
+
import { in as agentTurnTotalTokens, qt as getDb, rn as agentTurnCostUsd } from "./agent-hooks-DNLBwmsh.js";
|
|
3
|
+
import { E as juniorConversations, s as juniorAutomationExecutions } from "./executor-BG2Armby.js";
|
|
4
4
|
import { and, asc, count, desc, eq, gte, inArray, lte, max, or, sql } from "drizzle-orm";
|
|
5
5
|
//#region src/api/conversations/aggregate.ts
|
|
6
6
|
function usageTokenValue(source, field) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as startSpanManual } from "./sentry-CgWZM_kV.js";
|
|
2
|
-
import "./config-
|
|
2
|
+
import "./config-BAhl7-RC.js";
|
|
3
3
|
import { n as juniorDestinations, r as timestamptz } from "./destinations-BeBiJeEM.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { getTableColumns, sql } from "drizzle-orm";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import "@sentry/junior-plugin-api";
|
|
2
3
|
//#region src/chat/conversations/cards.d.ts
|
|
3
4
|
/** Built-in response types accepted by Message storage and delivery. */
|
|
4
5
|
declare const messageCardSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -9,6 +10,23 @@ declare const messageCardSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9
10
|
instruction: z.ZodString;
|
|
10
11
|
trigger: z.ZodString;
|
|
11
12
|
warning: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"object">;
|
|
15
|
+
key: z.ZodString;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
objectType: z.ZodEnum<{
|
|
18
|
+
task: "task";
|
|
19
|
+
code_change: "code_change";
|
|
20
|
+
automation: "automation";
|
|
21
|
+
item: "item";
|
|
22
|
+
}>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
25
|
+
description: z.ZodOptional<z.ZodString>;
|
|
26
|
+
status: z.ZodOptional<z.ZodString>;
|
|
27
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
28
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
29
|
+
plugin: z.ZodString;
|
|
12
30
|
}, z.core.$strict>], "kind">;
|
|
13
31
|
type MessageCard = z.output<typeof messageCardSchema>;
|
|
14
32
|
/** Render each built-in card with its own text format. */
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-
|
|
1
|
+
import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-iY0ssa2q.js";
|
|
2
2
|
import { _ as vercelAIIntegration, a as getClient, b as withStreamedSpan, c as init, o as getGlobalScope } from "./sentry-CgWZM_kV.js";
|
|
3
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
3
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-C-4JQzKD.js";
|
|
4
4
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-BLvBjy_e.js";
|
|
5
5
|
//#region src/chat/sentry-payload-filter.ts
|
|
6
6
|
const PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getChatConfig } from "./config-
|
|
1
|
+
import { a as getChatConfig } from "./config-BAhl7-RC.js";
|
|
2
2
|
import { a as signQueueMessage, i as QUEUE_SIGNATURE_MAX_AGE_MS, o as verifyQueueMessage, s as createVercelQueueClient } from "./vercel-queue-DIkVcfK4.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException, y as withScope } from "./sentry-CgWZM_kV.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-C6lA-h_o.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as JuniorDashboardOptions } from "./app-
|
|
1
|
+
import { n as JuniorDashboardOptions } from "./app-BbSD6EtD.js";
|
|
2
2
|
import { n as JuniorPluginSet } from "./plugins-BT2l4We3.js";
|
|
3
3
|
//#region src/nitro.d.ts
|
|
4
4
|
export type JuniorNitroDashboardOptions = JuniorDashboardOptions;
|
package/dist/nitro.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-
|
|
1
|
+
import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-iY0ssa2q.js";
|
|
2
2
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-7a9YqLhE.js";
|
|
3
3
|
import { n as resolveConversationWorkQueueTopic } from "./vercel-queue-DIkVcfK4.js";
|
|
4
|
-
import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-
|
|
4
|
+
import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-D4oAVrL9.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-egKWjgue.js";
|
|
6
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
6
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-SL4uLfBB.js";
|
|
7
7
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-BKGOXca2.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { qt as buildDeterministicTurnId } from "./stats-qUXQZq-w.js";
|
|
1
|
+
import { h as extractAssistantText } from "./checkpoint-Ceck_fLO.js";
|
|
3
2
|
//#region src/chat/runtime/turn.ts
|
|
4
3
|
/** Classified Slack turn failure carrying the owning Sentry capture outward. */
|
|
5
4
|
var ConversationTurnBoundaryError = class extends Error {
|
|
@@ -135,51 +134,10 @@ function getAssistantReplyText(message) {
|
|
|
135
134
|
return decision.kind === "deliver" ? decision.text : void 0;
|
|
136
135
|
}
|
|
137
136
|
//#endregion
|
|
138
|
-
//#region src/chat/
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return NON_REQUEST_SKIPPED_REASON_PREFIXES.some((prefix) => reason?.startsWith(prefix));
|
|
143
|
-
}
|
|
144
|
-
/** Decide whether the same agent-run session can reuse its fresh auth link. */
|
|
145
|
-
function canReusePendingAuthLink(args) {
|
|
146
|
-
const { pendingAuth } = args;
|
|
147
|
-
if (!pendingAuth) return false;
|
|
148
|
-
return pendingAuth.kind === args.kind && pendingAuth.provider === args.provider && pendingAuth.actorId === args.actorId && pendingAuth.scope === args.scope && pendingAuth.sessionId === args.sessionId && pendingAuth.linkSentAtMs + AUTH_LINK_REUSE_WINDOW_MS > (args.nowMs ?? Date.now());
|
|
149
|
-
}
|
|
150
|
-
function getConversationPendingAuth(args) {
|
|
151
|
-
const pendingAuth = args.conversation.processing.pendingAuth;
|
|
152
|
-
if (!pendingAuth) return;
|
|
153
|
-
if (pendingAuth.kind !== args.kind || pendingAuth.provider !== args.provider || pendingAuth.actorId !== args.actorId || pendingAuth.scope !== args.scope) return;
|
|
154
|
-
return pendingAuth;
|
|
155
|
-
}
|
|
156
|
-
function clearPendingAuth(conversation, sessionId) {
|
|
157
|
-
if (!conversation.processing.pendingAuth) return;
|
|
158
|
-
if (sessionId && conversation.processing.pendingAuth.sessionId !== sessionId) return;
|
|
159
|
-
conversation.processing.pendingAuth = void 0;
|
|
160
|
-
}
|
|
161
|
-
/** Mark the prior blocked turn abandoned after a new auth attempt replaces it. */
|
|
162
|
-
async function abandonReplacedPendingAuth(args) {
|
|
163
|
-
if (args.previousPendingAuth && args.previousPendingAuth.sessionId !== args.nextPendingAuth.sessionId && args.conversationId) await abandonTurnRecord({
|
|
164
|
-
conversationId: args.conversationId,
|
|
165
|
-
turnId: args.previousPendingAuth.sessionId,
|
|
166
|
-
errorMessage: "Abandoned by a newer auth-blocked request in the same conversation."
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Decide whether an auth callback still belongs to the latest real human
|
|
171
|
-
* request, ignoring bot-authored and passive bystander rows while treating
|
|
172
|
-
* failed human turns and opt-outs as newer freshness blockers.
|
|
173
|
-
*/
|
|
174
|
-
function isPendingAuthLatestRequest(conversation, pendingAuth) {
|
|
175
|
-
for (let index = conversation.messages.length - 1; index >= 0; index -= 1) {
|
|
176
|
-
const message = conversation.messages[index];
|
|
177
|
-
if (message?.role !== "user") continue;
|
|
178
|
-
if (message.author?.isBot) continue;
|
|
179
|
-
if (isSkippedNonRequest(message.meta?.skippedReason)) continue;
|
|
180
|
-
return buildDeterministicTurnId(message.id) === pendingAuth.sessionId;
|
|
181
|
-
}
|
|
182
|
-
return false;
|
|
137
|
+
//#region src/chat/oauth-authorization.ts
|
|
138
|
+
/** Build the stable event identity shared by authorization request and completion. */
|
|
139
|
+
function authorizationId(args) {
|
|
140
|
+
return `${args.sessionId}:${args.kind}:${args.provider}`;
|
|
183
141
|
}
|
|
184
142
|
//#endregion
|
|
185
|
-
export {
|
|
143
|
+
export { markTurnFailed as _, NO_REPLY_MARKER as a, CooperativeTurnYieldError as c, getConversationTurnBoundaryError as d, isCooperativeTurnYieldError as f, markTurnCompleted as g, markTurnClosed as h, sanitizeAssistantText as i, TurnInputCommitLostError as l, isTurnInputDeferredError as m, decideReply as n, isNoReplyMarker as o, isTurnInputCommitLostError as p, getAssistantReplyText as r, ConversationTurnBoundaryError as s, authorizationId as t, TurnInputDeferredError as u, startActiveTurn as v };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
1
|
+
import { gt as createUserTokenStore } from "./agent-runner-9g6TQk9y.js";
|
|
2
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BXHIxbtS.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
//#region src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -14,7 +14,7 @@ function decodeProvider(value) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
/** Start the loopback callback that completes OAuth in the local CLI process. */
|
|
17
|
-
async function startLocalOAuthCallbackServer(
|
|
17
|
+
async function startLocalOAuthCallbackServer() {
|
|
18
18
|
let pendingAuthorization;
|
|
19
19
|
const completeAuthorization = (authorization, result) => {
|
|
20
20
|
if (authorization.settled) return;
|
|
@@ -61,7 +61,7 @@ async function startLocalOAuthCallbackServer(agentRunner) {
|
|
|
61
61
|
};
|
|
62
62
|
try {
|
|
63
63
|
const request = new Request(requestUrl, { method: "GET" });
|
|
64
|
-
const response = mcpMatch ? await GET(request, provider, waitUntil, {
|
|
64
|
+
const response = mcpMatch ? await GET(request, provider, waitUntil, {}) : await GET$1(request, provider, waitUntil, {});
|
|
65
65
|
const body = Buffer.from(await response.arrayBuffer());
|
|
66
66
|
await Promise.all(backgroundTasks);
|
|
67
67
|
if (response.ok) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { w as toOptionalTrimmed } from "./client-
|
|
2
|
-
import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-
|
|
3
|
-
import { a as getChatConfig } from "./config-
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
1
|
+
import { w as toOptionalTrimmed } from "./client-B27ufhzl.js";
|
|
2
|
+
import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-iY0ssa2q.js";
|
|
3
|
+
import { a as getChatConfig } from "./config-BAhl7-RC.js";
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-CVZ9TEuK.js";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { createMemoryState } from "@chat-adapter/state-memory";
|
|
7
7
|
import { createRedisState } from "@chat-adapter/state-redis";
|
|
@@ -98,10 +98,6 @@ async function withLock(state, key, run, options = {}) {
|
|
|
98
98
|
async function fenceLock(state, lock, ttlMs = MUTATION_LOCK_TTL_MS) {
|
|
99
99
|
if (!await state.extendLock(lock, ttlMs)) throw new Error(`Lock ownership was lost before write for ${lock.threadId}`);
|
|
100
100
|
}
|
|
101
|
-
/** Run work under the active lock, reporting contention without ambiguity. */
|
|
102
|
-
async function withActiveLock(state, key, run) {
|
|
103
|
-
return await withLock(state, key, run);
|
|
104
|
-
}
|
|
105
101
|
//#endregion
|
|
106
102
|
//#region src/chat/state/adapter.ts
|
|
107
103
|
const ACTIVE_LOCK_HEARTBEAT_MS = 3e4;
|
|
@@ -859,4 +855,4 @@ function isStale(profile, createdAtMs) {
|
|
|
859
855
|
return maxAgeMs === 0 || Date.now() - createdAtMs > maxAgeMs;
|
|
860
856
|
}
|
|
861
857
|
//#endregion
|
|
862
|
-
export {
|
|
858
|
+
export { SANDBOX_DATA_ROOT as A, getDefaultRedisStateAdapterFor as C, fenceLock as D, acquireActiveLock as E, sandboxSkillFile as F, sandboxSkillPathResolution as I, SANDBOX_SKILLS_ROOT as M, SANDBOX_WORKSPACE_ROOT as N, withLock as O, sandboxSkillDir as P, disconnectStateAdapter as S, MUTATION_LOCK_TTL_MS as T, workspaceSnapshotNotReadyUserMessage as _, isAbortError as a, buildNonInteractiveShellScript as b, isSandboxCommandStreamInterruptedError as c, isSnapshottingError as d, throwSandboxOperationError as f, isWorkspaceSnapshotNotReadyError as g, getWorkspaceSnapshotNotReadyError as h, ensureDockerDaemon as i, SANDBOX_REPOS_ROOT as j, sleep as k, isSandboxMissingError as l, WorkspaceSnapshotNotReadyError as m, hash as n, isAlreadyExistsError as o, wrapSandboxSetupError as p, isStale as r, isSandboxApiTransientError as s, create as t, isSandboxUnavailableError as u, getVercelSandboxCredentials as v, getStateAdapter as w, runNonInteractiveCommand as x, buildCommandScript as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as briefOutcomeStatusSchema, L as conversationBriefSchema, R as parseBriefInput } from "./conversation-1HUoZr2l.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/chat/briefs/generate.ts
|
|
4
4
|
const MAX_INPUT_CHARS = 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as setSpanAttributes, d as logInfo, f as logWarn } from "./logging-
|
|
1
|
+
import { _ as setSpanAttributes, d as logInfo, f as logWarn } from "./logging-iY0ssa2q.js";
|
|
2
2
|
import { i as credentialUserSubjectId } from "./context-Bplcgypl.js";
|
|
3
3
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-7a9YqLhE.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as withSpan, _ as setSpanAttributes } from "./logging-
|
|
2
|
-
import {
|
|
1
|
+
import { C as withSpan, _ as setSpanAttributes } from "./logging-iY0ssa2q.js";
|
|
2
|
+
import { N as SANDBOX_WORKSPACE_ROOT, k as sleep, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-6KWhg_-U.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { FileSystem, Sandbox } from "@vercel/sandbox";
|
|
5
5
|
//#region src/chat/sandbox/resources.ts
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as withLogContext, u as logException, y as setTags } from "./logging-qmsMdU0y.js";
|
|
1
|
+
import { S as withLogContext, u as logException, y as setTags } from "./logging-iY0ssa2q.js";
|
|
3
2
|
import { t as credentialContextForActor } from "./context-Bplcgypl.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
9
|
-
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-
|
|
10
|
-
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-
|
|
11
|
-
import {
|
|
3
|
+
import { Kt as getConversationStore, Wt as getConversationEventStore } from "./agent-hooks-DNLBwmsh.js";
|
|
4
|
+
import { M as messageCardText } from "./conversation-1HUoZr2l.js";
|
|
5
|
+
import { A as commitAcceptedReply, B as recordAuthorizationCompleted, J as hydrateConversationMessages, P as loadProjection, Y as persistConversationMessages, at as markConversationMessage, et as buildConversationContext, lt as upsertConversationMessage, ot as normalizeConversationText, r as saveTurnCheckpoint, st as recordDeliveredAssistantMessage, u as persistWithRetry } from "./checkpoint-Ceck_fLO.js";
|
|
6
|
+
import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-BIijVS2N.js";
|
|
7
|
+
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-fntmnqzx.js";
|
|
8
|
+
import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-5_jvLqRz.js";
|
|
9
|
+
import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-Wfr0GdKS.js";
|
|
10
|
+
import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-DLjSEm-R.js";
|
|
12
11
|
import { randomUUID } from "node:crypto";
|
|
13
12
|
import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
|
|
14
13
|
//#region src/chat/local/runner.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { rt as sandboxEgressSignalsResponseSchema } from "./agent-runner-9g6TQk9y.js";
|
|
2
2
|
//#region src/chat/local/sandbox-egress-signals.ts
|
|
3
3
|
const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
|
|
4
4
|
const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as juniorDestinationKindSchema } from "./destinations-BeBiJeEM.js";
|
|
2
|
-
import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-
|
|
2
|
+
import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-1HUoZr2l.js";
|
|
3
3
|
import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-DbUqng0P.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { codeChangeStateSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as logWarn } from "./logging-
|
|
2
|
-
import { n as botConfig } from "./config-
|
|
1
|
+
import { f as logWarn } from "./logging-iY0ssa2q.js";
|
|
2
|
+
import { n as botConfig } from "./config-BAhl7-RC.js";
|
|
3
3
|
const TITLE_PROMPTS = {
|
|
4
4
|
conversation: [
|
|
5
5
|
"Generate a concise 5-8 word conversation title from the first user message below.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { f as logWarn } from "./logging-
|
|
2
|
+
import { f as logWarn } from "./logging-iY0ssa2q.js";
|
|
3
3
|
import { s as skillRoots } from "./package-discovery-7a9YqLhE.js";
|
|
4
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
4
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-CVZ9TEuK.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as createAndEnqueueAgentInvocation } from "./work-
|
|
2
|
+
import { bt as actorFromRun, xt as toolInvocationDestination } from "./agent-runner-9g6TQk9y.js";
|
|
3
|
+
import { n as createAndEnqueueAgentInvocation } from "./work-4Nhz9mVv.js";
|
|
4
4
|
//#region src/chat/agent-invocations/spawn.ts
|
|
5
5
|
var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
|
|
6
6
|
/** Bind a Run's Actor and credentials to new Agent invocations. */
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-
|
|
2
|
-
import { a as getChatConfig } from "./config-
|
|
1
|
+
import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-iY0ssa2q.js";
|
|
2
|
+
import { a as getChatConfig } from "./config-BAhl7-RC.js";
|
|
3
3
|
import { _ as parseSlackMessageTs, d as parseStoredSlackActor, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-Bplcgypl.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ft as saveObjectAnnotations, J as withSlackRetries, Kt as getConversationStore, U as getSlackClient, fn as parseDestination, ht as getDashboardTaskLink, mn as sameDestination, pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb, u as getPlugins } from "./agent-hooks-DNLBwmsh.js";
|
|
5
5
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
6
|
-
import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-DbG8AlNd.js";
|
|
6
|
+
import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-BG2Armby.js";
|
|
7
|
+
import { t as fallbackShortTitle } from "./short-title-xEkZwkcV.js";
|
|
8
|
+
import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-6KWhg_-U.js";
|
|
10
9
|
import "./vercel-queue-DIkVcfK4.js";
|
|
11
10
|
import { z } from "zod";
|
|
12
11
|
import { createHash, randomUUID } from "node:crypto";
|
|
13
12
|
import { and, asc, desc, eq, gte, inArray, isNotNull, isNull, lte, ne, notInArray, or, sql } from "drizzle-orm";
|
|
14
|
-
import { actorUserIdSchema, destinationSchema, destinationVisibilitySchema, eventMatchSchema, eventMatches, eventTypeSchema, normalizeEventIdentifier, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
13
|
+
import { actorUserIdSchema, destinationSchema, destinationVisibilitySchema, eventMatchSchema, eventMatches, eventTypeSchema, normalizeEventIdentifier, ownedObjectAnnotationSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
15
14
|
//#region src/chat/tools/execution/tool-input-error.ts
|
|
16
15
|
/** Thrown when a tool fails due to invalid model/user input, not a system error. */
|
|
17
16
|
var ToolInputError = class extends Error {
|
|
@@ -1931,7 +1930,7 @@ const compactEventAutomationResultSchema = z.object({
|
|
|
1931
1930
|
/** Validate one successful event-automation mutation result. */
|
|
1932
1931
|
const eventAutomationToolResultSchema = juniorToolOutputSchema.extend({
|
|
1933
1932
|
automation: compactEventAutomationResultSchema,
|
|
1934
|
-
|
|
1933
|
+
objectCards: z.array(ownedObjectAnnotationSchema)
|
|
1935
1934
|
}).strict();
|
|
1936
1935
|
/** Validate one successful event-automation list result. */
|
|
1937
1936
|
const eventAutomationListToolResultSchema = juniorToolOutputSchema.extend({
|
|
@@ -2029,24 +2028,27 @@ function compactEventAutomation(task, catalog, requesterSlackUserId) {
|
|
|
2029
2028
|
});
|
|
2030
2029
|
}
|
|
2031
2030
|
/** Return the standard successful event-automation tool result. */
|
|
2032
|
-
function eventAutomationToolResult(task, catalog, requesterSlackUserId) {
|
|
2031
|
+
async function eventAutomationToolResult(conversationId, task, catalog, requesterSlackUserId) {
|
|
2033
2032
|
const automation = compactEventAutomation(task, catalog, requesterSlackUserId);
|
|
2034
2033
|
const filters = Object.entries(task.trigger.match ?? {}).map(([key, value]) => `${key} = ${JSON.stringify(value)}`);
|
|
2034
|
+
const title = automation.title ?? fallbackShortTitle(task.task.text, "Event automation");
|
|
2035
2035
|
return {
|
|
2036
2036
|
automation,
|
|
2037
|
-
|
|
2038
|
-
kind: "
|
|
2039
|
-
|
|
2040
|
-
|
|
2037
|
+
objectCards: await saveObjectAnnotations(conversationId, "junior", [{
|
|
2038
|
+
kind: "object",
|
|
2039
|
+
objectType: "automation",
|
|
2040
|
+
label: title,
|
|
2041
|
+
key: task.id,
|
|
2042
|
+
title,
|
|
2041
2043
|
url: automation.dashboardUrl,
|
|
2042
|
-
|
|
2044
|
+
description: task.task.text,
|
|
2043
2045
|
trigger: [
|
|
2044
2046
|
task.trigger.label,
|
|
2045
2047
|
task.trigger.events.join(", "),
|
|
2046
2048
|
...filters
|
|
2047
2049
|
].join(" · "),
|
|
2048
|
-
warning: !automation.trigger.available ? "Trigger unavailable. This automation cannot receive events." :
|
|
2049
|
-
}]
|
|
2050
|
+
warning: !automation.trigger.available ? "Trigger unavailable. This automation cannot receive events." : void 0
|
|
2051
|
+
}])
|
|
2050
2052
|
};
|
|
2051
2053
|
}
|
|
2052
2054
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as logWarn } from "./logging-
|
|
1
|
+
import { f as logWarn } from "./logging-iY0ssa2q.js";
|
|
2
2
|
import { a as signQueueMessage, i as QUEUE_SIGNATURE_MAX_AGE_MS, o as verifyQueueMessage, s as createVercelQueueClient } from "./vercel-queue-DIkVcfK4.js";
|
|
3
|
-
import { o as runWithTurnRequestDeadline } from "./job-queue-
|
|
3
|
+
import { o as runWithTurnRequestDeadline } from "./job-queue-D4oAVrL9.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { handleCallback, registerDevConsumer } from "@vercel/queue";
|
|
@@ -110,7 +110,7 @@ function pluginTaskCallback() {
|
|
|
110
110
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
111
111
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
112
112
|
run: async (message) => {
|
|
113
|
-
const { processPluginTask } = await import("./task-runner-
|
|
113
|
+
const { processPluginTask } = await import("./task-runner-fntmnqzx.js").then((n) => n.r);
|
|
114
114
|
await processPluginTask(message);
|
|
115
115
|
},
|
|
116
116
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
2
|
import { _ as parseSlackMessageTs, r as credentialSubjectSchema } from "./context-Bplcgypl.js";
|
|
3
|
-
import { At as createPluginConversationEvents,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { w as getStateAdapter } from "./profile-
|
|
7
|
-
import { u as recordAutomationExecution } from "./execution-stats-
|
|
8
|
-
import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-
|
|
9
|
-
import {
|
|
3
|
+
import { At as createPluginConversationEvents, Kt as getConversationStore, Q as readActorIdentity, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-DNLBwmsh.js";
|
|
4
|
+
import { X as sameActorIdentity } from "./conversation-1HUoZr2l.js";
|
|
5
|
+
import { C as isToolResultError, D as stripRuntimeTurnContext, J as hydrateConversationMessages, T as normalizeToolNameFromResult, b as instructionTextForProjection, g as getPiMessageRole, s as getTurnRecord, w as isToolResultMessage } from "./checkpoint-Ceck_fLO.js";
|
|
6
|
+
import { w as getStateAdapter } from "./profile-6KWhg_-U.js";
|
|
7
|
+
import { u as recordAutomationExecution } from "./execution-stats-DikPOxJ1.js";
|
|
8
|
+
import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-Wfr0GdKS.js";
|
|
9
|
+
import { t as resolveConversationRouting } from "./turn-session-routing-CQaysLoe.js";
|
|
10
|
+
import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-SL4uLfBB.js";
|
|
10
11
|
import { z } from "zod";
|
|
11
12
|
import { createHash } from "node:crypto";
|
|
12
13
|
import { destinationSchema, destinationVisibilitySchema, isSlackDestination, pluginRunContextSchema, replyAttributionSchema, sourceSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
@@ -309,82 +310,6 @@ async function getPluginDispatchProjection(args) {
|
|
|
309
310
|
return toDispatchProjection(record);
|
|
310
311
|
}
|
|
311
312
|
//#endregion
|
|
312
|
-
//#region src/chat/services/turn-session-routing.ts
|
|
313
|
-
async function loadConversationChain(conversationId, conversationStore) {
|
|
314
|
-
const chain = [];
|
|
315
|
-
const seen = /* @__PURE__ */ new Set();
|
|
316
|
-
let cursor = conversationId;
|
|
317
|
-
while (cursor && !seen.has(cursor)) {
|
|
318
|
-
seen.add(cursor);
|
|
319
|
-
const conversation = await conversationStore.get({ conversationId: cursor });
|
|
320
|
-
if (!conversation) break;
|
|
321
|
-
chain.push(conversation);
|
|
322
|
-
cursor = conversation.parentConversationId;
|
|
323
|
-
}
|
|
324
|
-
return chain;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Normalize a stored Slack session source against the conversation destination.
|
|
328
|
-
*
|
|
329
|
-
* Does not create channel or thread values from the conversation id.
|
|
330
|
-
*/
|
|
331
|
-
function slackSourceForDestination(args) {
|
|
332
|
-
if (args.source?.kind !== "slack" || args.source.channelId !== args.destination.channelId) return;
|
|
333
|
-
const threadTs = args.source.threadTs?.trim();
|
|
334
|
-
return {
|
|
335
|
-
kind: "slack",
|
|
336
|
-
visibility: args.source.visibility ?? "public",
|
|
337
|
-
teamId: args.source.teamId?.trim() || args.destination.teamId,
|
|
338
|
-
channelId: args.source.channelId,
|
|
339
|
-
...threadTs ? { threadTs } : void 0
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Resolve the Conversation Location, Destination, and session Source.
|
|
344
|
-
*
|
|
345
|
-
* Reads parent Conversations when this Conversation has no Destination.
|
|
346
|
-
*/
|
|
347
|
-
async function resolveConversationRouting(args) {
|
|
348
|
-
const conversationStore = args.conversationStore ?? (await import("./agent-hooks-DkriF84n.js").then((n) => n.Vt)).getConversationStore();
|
|
349
|
-
const chain = await loadConversationChain(args.conversationId, conversationStore);
|
|
350
|
-
let destination;
|
|
351
|
-
let source;
|
|
352
|
-
let location;
|
|
353
|
-
for (const conversation of chain) {
|
|
354
|
-
destination ??= conversation.destination;
|
|
355
|
-
source ??= conversation.sessionSource;
|
|
356
|
-
location ??= conversation.location;
|
|
357
|
-
if (destination && source) break;
|
|
358
|
-
}
|
|
359
|
-
if (!destination) return;
|
|
360
|
-
if (destination.platform === "slack") {
|
|
361
|
-
const slackSource = slackSourceForDestination({
|
|
362
|
-
destination,
|
|
363
|
-
source
|
|
364
|
-
});
|
|
365
|
-
return {
|
|
366
|
-
destination,
|
|
367
|
-
...location ? { location } : void 0,
|
|
368
|
-
...slackSource ? { source: slackSource } : void 0
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
return {
|
|
372
|
-
destination,
|
|
373
|
-
...location ? { location } : void 0,
|
|
374
|
-
...source ? { source } : void 0
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
/** Require the Conversation Destination and Source from SQL. */
|
|
378
|
-
async function resolveTurnSessionRouting(args) {
|
|
379
|
-
const routing = await resolveConversationRouting(args);
|
|
380
|
-
if (!routing?.destination || !routing.source) throw new Error(`Conversation ${args.conversationId} is missing durable routing metadata`);
|
|
381
|
-
return {
|
|
382
|
-
destination: routing.destination,
|
|
383
|
-
...routing.location ? { location: routing.location } : void 0,
|
|
384
|
-
source: routing.source
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
//#endregion
|
|
388
313
|
//#region src/chat/plugins/task-runner.ts
|
|
389
314
|
var task_runner_exports = /* @__PURE__ */ __exportAll({
|
|
390
315
|
processPluginTask: () => processPluginTask,
|
|
@@ -636,4 +561,4 @@ async function processPluginTask(message, options = {}) {
|
|
|
636
561
|
});
|
|
637
562
|
}
|
|
638
563
|
//#endregion
|
|
639
|
-
export {
|
|
564
|
+
export { markDispatchFailed as _, confirmDispatchMailboxAppend as a, getDispatchInputMessageId as c, getPluginDispatchProjection as d, isTerminalDispatchStatus as f, markDispatchCompleted as g, markDispatchBlocked as h, claimDispatchMailboxAppend as i, getDispatchRecord as l, markDispatchAwaitingResume as m, scheduleSessionCompletedPluginTasks as n, createOrGetDispatch as o, listPendingDispatchMailboxAppends as p, task_runner_exports as r, getDispatchConversationId as s, processPluginTask as t, getDispatchTurnId as u, markDispatchRunning as v };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-
|
|
2
|
-
import {
|
|
1
|
+
import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-iY0ssa2q.js";
|
|
2
|
+
import { pt as JUNIOR_THREAD_STATE_TTL_MS, qt as getDb } from "./agent-hooks-DNLBwmsh.js";
|
|
3
3
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
4
|
-
import { u as juniorLocationConfigurations } from "./executor-
|
|
5
|
-
import {
|
|
6
|
-
import { w as getStateAdapter } from "./profile-
|
|
4
|
+
import { u as juniorLocationConfigurations } from "./executor-BG2Armby.js";
|
|
5
|
+
import { Y as persistConversationMessages } from "./checkpoint-Ceck_fLO.js";
|
|
6
|
+
import { w as getStateAdapter } from "./profile-6KWhg_-U.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
import { and, eq, sql } from "drizzle-orm";
|