@sentry/junior 0.144.0 → 0.146.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-GCUTGKY3.js → agent-hooks-SLJADYE5.js} +10 -10
- package/dist/api/conversations/detail.d.ts +1 -0
- package/dist/api/schema/conversation.d.ts +2 -0
- package/dist/api/schema.js +1 -1
- package/dist/api.js +40 -22
- package/dist/app.js +400 -461
- package/dist/{catalog-runtime-DWVYKDC6.js → catalog-runtime-RQIMSDPR.js} +5 -5
- package/dist/chat/agent/request.d.ts +1 -1
- package/dist/chat/agent/resume.d.ts +6 -18
- package/dist/chat/agent/skills.d.ts +0 -1
- package/dist/chat/agent/tools.d.ts +1 -2
- package/dist/chat/agent-dispatch/types.d.ts +1 -1
- package/dist/chat/app/conversation-work.d.ts +24 -0
- package/dist/chat/conversations/message-search.d.ts +32 -0
- package/dist/chat/conversations/projection.d.ts +11 -3
- package/dist/chat/conversations/sql/message-search.d.ts +4 -0
- package/dist/chat/conversations/store.d.ts +1 -1
- package/dist/chat/conversations/tool-source.d.ts +5 -0
- package/dist/chat/db.d.ts +2 -2
- package/dist/chat/runtime/agent-run-outcome.d.ts +1 -1
- package/dist/chat/runtime/reply-executor.d.ts +5 -5
- package/dist/chat/runtime/slack-resume.d.ts +12 -4
- package/dist/chat/slack/message/attachments.d.ts +2 -0
- package/dist/chat/slack/message/blocks.d.ts +2 -0
- package/dist/chat/slack/message/content.d.ts +18 -0
- package/dist/chat/slack/message/identity.d.ts +7 -0
- package/dist/chat/slack/tools/{conversation-search.d.ts → conversation-message-search.d.ts} +21 -14
- package/dist/chat/slack/tools/user-lookup.d.ts +2 -1
- package/dist/chat/state/locks.d.ts +28 -0
- package/dist/chat/task-execution/checkpoint.d.ts +84 -0
- package/dist/chat/task-execution/paused-turn.d.ts +29 -0
- package/dist/chat/task-execution/queue-signing.d.ts +1 -0
- package/dist/chat/task-execution/queue.d.ts +7 -1
- package/dist/chat/task-execution/slack-work.d.ts +1 -1
- package/dist/chat/task-execution/state.d.ts +4 -4
- package/dist/chat/task-execution/store.d.ts +2 -2
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +6 -0
- package/dist/chat/{state/turn-session.d.ts → task-execution/turn-cursor.d.ts} +52 -51
- package/dist/chat/task-execution/turn-wake.d.ts +29 -0
- package/dist/chat/tools/{query-conversation-events.d.ts → search-conversation-events.d.ts} +3 -3
- package/dist/chat/tools/types.d.ts +1 -1
- package/dist/{chunk-SBZP2J5Q.js → chunk-37EVZP66.js} +48 -35
- package/dist/{chunk-A67GZN73.js → chunk-37JJDS4H.js} +1 -1
- package/dist/{chunk-BBCWYXHB.js → chunk-47OSH2ZO.js} +7 -7
- package/dist/{chunk-4X5KM7Z6.js → chunk-AISNSNDV.js} +14 -14
- package/dist/{chunk-RIFJUJSI.js → chunk-B63BF443.js} +1 -1
- package/dist/{chunk-SSDTQDYQ.js → chunk-BLETMLRX.js} +566 -268
- package/dist/{chunk-I44JB7HQ.js → chunk-F7REGDKO.js} +1 -1
- package/dist/{chunk-DVO5VKYQ.js → chunk-FEKQHPVA.js} +5 -5
- package/dist/{chunk-SUK7NC5A.js → chunk-FGHADGIC.js} +2 -2
- package/dist/{chunk-7KAW7UF4.js → chunk-FXDDDSPL.js} +4 -4
- package/dist/{chunk-BEGGFVFR.js → chunk-GDQEU4I7.js} +414 -542
- package/dist/{chunk-UDQMY6RS.js → chunk-GYEKOX7N.js} +43 -1
- package/dist/{chunk-W7JFV5SB.js → chunk-H6U2U3EP.js} +14 -17
- package/dist/{chunk-WTX2RFJG.js → chunk-HQE6EJS5.js} +1 -1
- package/dist/{chunk-IUFM5JWV.js → chunk-JAL3CH4G.js} +3 -0
- package/dist/{chunk-E7HCWOHG.js → chunk-JLMVCNXL.js} +2 -1
- package/dist/{chunk-PELZ2ZSY.js → chunk-JUA6VU2Z.js} +33 -63
- package/dist/{chunk-SHEEZSLY.js → chunk-LVW7BLLT.js} +2 -2
- package/dist/{chunk-GKA74DRA.js → chunk-M6ZWP4RI.js} +1 -1
- package/dist/{chunk-HNO2E5WB.js → chunk-MCFIXAV5.js} +1 -1
- package/dist/{chunk-3GU4PWA3.js → chunk-MKRIZ4VG.js} +29 -30
- package/dist/{chunk-QUZJDAQQ.js → chunk-OFPYOC3M.js} +93 -90
- package/dist/{chunk-ZF3N3JD6.js → chunk-PB222GIA.js} +1 -1
- package/dist/{chunk-PKH6762I.js → chunk-PH4Q3A6W.js} +1 -1
- package/dist/{chunk-STFCL3K4.js → chunk-QG7OOKIN.js} +1 -1
- package/dist/{chunk-WSOLZJJS.js → chunk-QSXZ42KX.js} +3 -3
- package/dist/{chunk-44RJWAND.js → chunk-SCGVWUZX.js} +6 -6
- package/dist/{chunk-CNTWB2SM.js → chunk-T5GXFFLA.js} +1 -1
- package/dist/{chunk-LDWNYCZ6.js → chunk-TCEJ7XXM.js} +1 -1
- package/dist/{chunk-QE3TICD4.js → chunk-V6SRLKUB.js} +2 -2
- package/dist/{chunk-54JMYQYS.js → chunk-W65V465O.js} +2 -2
- package/dist/{chunk-KCBZSJRU.js → chunk-WR76IVA5.js} +5 -2
- package/dist/{chunk-ZZCTGAIT.js → chunk-X22KCSCO.js} +4 -4
- package/dist/{chunk-HD6BHR25.js → chunk-X2WMBTS3.js} +32 -34
- package/dist/{chunk-KQBXT5B7.js → chunk-ZDGHGY74.js} +6 -6
- package/dist/cli/chat.js +32 -32
- package/dist/cli/check.js +6 -6
- package/dist/cli/plugins.js +13 -13
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +7 -7
- package/dist/{db-EFLHTBU6.js → db-WWOMXWTT.js} +9 -9
- package/dist/instrumentation.js +4 -4
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-RO3IQKWM.js → oauth-callback-server-A6ZZX74U.js} +25 -25
- package/dist/{runner-LOWW7JKA.js → runner-KSGB2UAV.js} +19 -20
- package/dist/{skills-ZLMUG7AE.js → skills-26QPWKVS.js} +6 -6
- package/dist/spawn-5LAJXZ2P.js +39 -0
- package/dist/{validation-MAKEZNTS.js → validation-OPSRGFGH.js} +6 -6
- package/dist/version.js +1 -1
- package/dist/{work-5OAGC3I4.js → work-VMSW7STJ.js} +17 -16
- package/dist/worker-2JNFB7C7.js +24 -0
- package/package.json +5 -5
- package/dist/chat/agent/session.d.ts +0 -19
- package/dist/chat/conversations/search.d.ts +0 -24
- package/dist/chat/conversations/sql/search.d.ts +0 -4
- package/dist/chat/runtime/agent-continue-runner.d.ts +0 -37
- package/dist/chat/services/agent-continue.d.ts +0 -29
- package/dist/chat/services/turn-session-record.d.ts +0 -164
- package/dist/chat/slack/legacy-attachments.d.ts +0 -4
- package/dist/chat/slack/message.d.ts +0 -12
- package/dist/chat/state/turn-session-keys.d.ts +0 -6
- package/dist/spawn-R3LUV6RF.js +0 -38
- package/dist/worker-KTGGRTTP.js +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
conversationQueueMessageSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JAL3CH4G.js";
|
|
4
4
|
import {
|
|
5
5
|
createVercelQueueClient
|
|
6
6
|
} from "./chunk-5I6ORJUY.js";
|
|
@@ -79,7 +79,10 @@ function verifyConversationQueueMessage(value, nowMs = Date.now()) {
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
status: "verified",
|
|
82
|
-
message: {
|
|
82
|
+
message: {
|
|
83
|
+
schemaVersion: message.schemaVersion,
|
|
84
|
+
conversationId: message.conversationId
|
|
85
|
+
}
|
|
83
86
|
};
|
|
84
87
|
}
|
|
85
88
|
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
canRouteResourceEvents,
|
|
6
6
|
getPlugins
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SCGVWUZX.js";
|
|
8
8
|
import {
|
|
9
9
|
getDb
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-37EVZP66.js";
|
|
11
11
|
import {
|
|
12
12
|
juniorEventTasks,
|
|
13
13
|
juniorSchedulerRuns,
|
|
14
14
|
juniorSchedulerTasks,
|
|
15
15
|
juniorStats
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MCFIXAV5.js";
|
|
17
17
|
import {
|
|
18
18
|
juniorDestinations
|
|
19
19
|
} from "./chunk-VFUK3X5B.js";
|
|
20
20
|
import {
|
|
21
21
|
logInfo
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B63BF443.js";
|
|
23
23
|
|
|
24
24
|
// src/chat/event-tasks/store.ts
|
|
25
25
|
import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONVERSATION_QUEUE_SCHEMA_VERSION
|
|
3
|
+
} from "./chunk-JAL3CH4G.js";
|
|
1
4
|
import {
|
|
2
5
|
JUNIOR_THREAD_STATE_TTL_MS
|
|
3
6
|
} from "./chunk-3Y47VMHV.js";
|
|
@@ -5,14 +8,14 @@ import {
|
|
|
5
8
|
getConversationStore,
|
|
6
9
|
parseDestination,
|
|
7
10
|
sameDestination
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-37EVZP66.js";
|
|
9
12
|
import {
|
|
10
13
|
getDefaultRedisStateAdapterFor,
|
|
11
14
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GYEKOX7N.js";
|
|
13
16
|
import {
|
|
14
17
|
getChatConfig
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
16
19
|
import {
|
|
17
20
|
parseStoredSlackActor
|
|
18
21
|
} from "./chunk-HZF5P5UN.js";
|
|
@@ -20,13 +23,13 @@ import {
|
|
|
20
23
|
isRecord,
|
|
21
24
|
toOptionalNumber,
|
|
22
25
|
toOptionalString
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B63BF443.js";
|
|
24
27
|
|
|
25
28
|
// src/chat/task-execution/state.ts
|
|
26
29
|
import { randomUUID } from "crypto";
|
|
27
30
|
import { destinationSchema } from "@sentry/junior-plugin-api";
|
|
28
31
|
import { z } from "zod";
|
|
29
|
-
var CONVERSATION_PREFIX = "junior:conversation";
|
|
32
|
+
var CONVERSATION_PREFIX = "junior:conversation:v2";
|
|
30
33
|
var CONVERSATION_SCHEMA_VERSION = 2;
|
|
31
34
|
var CONVERSATION_ACTIVITY_INDEX_MAX_LENGTH = 1e4;
|
|
32
35
|
var CONVERSATION_INDEX_LOCK_TTL_MS = 1e4;
|
|
@@ -133,17 +136,16 @@ function normalizeSource(value) {
|
|
|
133
136
|
return parsed.success ? parsed.data : void 0;
|
|
134
137
|
}
|
|
135
138
|
function normalizeExecutionStatus(value) {
|
|
136
|
-
if (value === "
|
|
139
|
+
if (value === "paused") {
|
|
140
|
+
return value;
|
|
141
|
+
}
|
|
142
|
+
if (value === "failed" || value === "idle" || value === "pending" || value === "running") {
|
|
137
143
|
return value;
|
|
138
144
|
}
|
|
139
145
|
return void 0;
|
|
140
146
|
}
|
|
141
|
-
function normalizeMessage(value
|
|
142
|
-
const
|
|
143
|
-
...value,
|
|
144
|
-
delivery: "defer"
|
|
145
|
-
} : value;
|
|
146
|
-
const parsed = inboundMessageSchema.safeParse(candidate);
|
|
147
|
+
function normalizeMessage(value) {
|
|
148
|
+
const parsed = inboundMessageSchema.safeParse(value);
|
|
147
149
|
return parsed.success ? parsed.data : void 0;
|
|
148
150
|
}
|
|
149
151
|
function isFinalAttempt(message) {
|
|
@@ -170,7 +172,7 @@ function normalizeLease(value) {
|
|
|
170
172
|
expiresAtMs
|
|
171
173
|
};
|
|
172
174
|
}
|
|
173
|
-
function normalizeExecution(conversationId, value
|
|
175
|
+
function normalizeExecution(conversationId, value) {
|
|
174
176
|
if (!isRecord(value)) {
|
|
175
177
|
return void 0;
|
|
176
178
|
}
|
|
@@ -181,7 +183,7 @@ function normalizeExecution(conversationId, value, schemaVersion) {
|
|
|
181
183
|
const pendingMessages2 = [];
|
|
182
184
|
if (Array.isArray(value.pendingMessages)) {
|
|
183
185
|
for (const rawMessage of value.pendingMessages) {
|
|
184
|
-
const message = normalizeMessage(rawMessage
|
|
186
|
+
const message = normalizeMessage(rawMessage);
|
|
185
187
|
if (!message || message.conversationId !== conversationId) {
|
|
186
188
|
return void 0;
|
|
187
189
|
}
|
|
@@ -215,19 +217,14 @@ function normalizeExecution(conversationId, value, schemaVersion) {
|
|
|
215
217
|
};
|
|
216
218
|
}
|
|
217
219
|
function normalizeConversation(conversationId, value) {
|
|
218
|
-
if (!isRecord(value) || value.schemaVersion !==
|
|
220
|
+
if (!isRecord(value) || value.schemaVersion !== CONVERSATION_SCHEMA_VERSION) {
|
|
219
221
|
return void 0;
|
|
220
222
|
}
|
|
221
|
-
const schemaVersion = value.schemaVersion;
|
|
222
223
|
const storedConversationId = toOptionalString(value.conversationId);
|
|
223
224
|
const createdAtMs = toOptionalNumber(value.createdAtMs);
|
|
224
225
|
const lastActivityAtMs = toOptionalNumber(value.lastActivityAtMs);
|
|
225
226
|
const updatedAtMs = toOptionalNumber(value.updatedAtMs);
|
|
226
|
-
const execution = normalizeExecution(
|
|
227
|
-
conversationId,
|
|
228
|
-
value.execution,
|
|
229
|
-
schemaVersion
|
|
230
|
-
);
|
|
227
|
+
const execution = normalizeExecution(conversationId, value.execution);
|
|
231
228
|
const destination = value.destination === void 0 ? void 0 : parseDestination(value.destination);
|
|
232
229
|
if (storedConversationId !== conversationId || typeof createdAtMs !== "number" || typeof lastActivityAtMs !== "number" || typeof updatedAtMs !== "number" || !execution || value.destination !== void 0 && !destination) {
|
|
233
230
|
return void 0;
|
|
@@ -705,7 +702,7 @@ async function appendInboundMessage(args) {
|
|
|
705
702
|
);
|
|
706
703
|
return { status: "duplicate" };
|
|
707
704
|
}
|
|
708
|
-
const status = current.execution.lease && current.execution.status === "running" ? "running" : current.execution.lease ? "
|
|
705
|
+
const status = current.execution.lease && current.execution.status === "running" ? "running" : current.execution.lease ? "paused" : "pending";
|
|
709
706
|
const next = {
|
|
710
707
|
...current,
|
|
711
708
|
destination: current.destination ?? args.message.destination,
|
|
@@ -752,7 +749,7 @@ async function requestConversationWork(args) {
|
|
|
752
749
|
destination: args.destination,
|
|
753
750
|
nowMs
|
|
754
751
|
});
|
|
755
|
-
const status = current.execution.lease ? "
|
|
752
|
+
const status = current.execution.lease ? "paused" : "pending";
|
|
756
753
|
await writeConversation(
|
|
757
754
|
state,
|
|
758
755
|
lock,
|
|
@@ -845,7 +842,7 @@ async function startConversationWork(args) {
|
|
|
845
842
|
{
|
|
846
843
|
...current.execution,
|
|
847
844
|
lease,
|
|
848
|
-
status: current.execution.status === "
|
|
845
|
+
status: current.execution.status === "paused" ? "paused" : "running",
|
|
849
846
|
runId: current.execution.runId ?? randomUUID(),
|
|
850
847
|
lastEnqueuedAtMs: void 0,
|
|
851
848
|
retryCount: startsNewRun ? 0 : current.execution.retryCount
|
|
@@ -984,7 +981,7 @@ async function ackMessages(args) {
|
|
|
984
981
|
return true;
|
|
985
982
|
});
|
|
986
983
|
}
|
|
987
|
-
async function
|
|
984
|
+
async function requestAnotherSlice(args) {
|
|
988
985
|
const nowMs = args.nowMs ?? now();
|
|
989
986
|
return await withConversationMutation(args, async (state, lock) => {
|
|
990
987
|
const current = await readConversation(state, args.conversationId);
|
|
@@ -1003,7 +1000,7 @@ async function requestConversationContinuation(args) {
|
|
|
1003
1000
|
current,
|
|
1004
1001
|
{
|
|
1005
1002
|
...current.execution,
|
|
1006
|
-
status: "
|
|
1003
|
+
status: "paused"
|
|
1007
1004
|
},
|
|
1008
1005
|
nowMs
|
|
1009
1006
|
)
|
|
@@ -1015,7 +1012,7 @@ async function beginConversationResume(args) {
|
|
|
1015
1012
|
const nowMs = args.nowMs ?? now();
|
|
1016
1013
|
return await withConversationMutation(args, async (state, lock) => {
|
|
1017
1014
|
const current = await readConversation(state, args.conversationId);
|
|
1018
|
-
if (!current || current.execution.lease?.token !== args.leaseToken || current.execution.status !== "
|
|
1015
|
+
if (!current || current.execution.lease?.token !== args.leaseToken || current.execution.status !== "paused") {
|
|
1019
1016
|
return false;
|
|
1020
1017
|
}
|
|
1021
1018
|
await writeConversation(
|
|
@@ -1077,7 +1074,7 @@ async function recordConversationRetry(args) {
|
|
|
1077
1074
|
retryCount: count,
|
|
1078
1075
|
pendingMessages: stopped ? [] : current.execution.pendingMessages,
|
|
1079
1076
|
runId: stopped ? void 0 : current.execution.runId,
|
|
1080
|
-
status: stopped ? "failed" : "
|
|
1077
|
+
status: stopped ? "failed" : "paused"
|
|
1081
1078
|
},
|
|
1082
1079
|
nowMs
|
|
1083
1080
|
)
|
|
@@ -1093,7 +1090,7 @@ async function completeConversationWork(args) {
|
|
|
1093
1090
|
return "lost_lease";
|
|
1094
1091
|
}
|
|
1095
1092
|
const hasPending = pendingMessages(current).length > 0;
|
|
1096
|
-
const needsRun = current.execution.status === "
|
|
1093
|
+
const needsRun = current.execution.status === "paused";
|
|
1097
1094
|
const runnable = needsRun || hasPending;
|
|
1098
1095
|
await writeConversation(
|
|
1099
1096
|
state,
|
|
@@ -1103,7 +1100,7 @@ async function completeConversationWork(args) {
|
|
|
1103
1100
|
{
|
|
1104
1101
|
...current.execution,
|
|
1105
1102
|
lease: void 0,
|
|
1106
|
-
status: needsRun ? "
|
|
1103
|
+
status: needsRun ? "paused" : hasPending ? "pending" : "idle",
|
|
1107
1104
|
lastProgressAtMs: args.madeProgress === false ? current.execution.lastProgressAtMs : nowMs,
|
|
1108
1105
|
retryCount: runnable || args.madeProgress === false ? current.execution.retryCount : 0,
|
|
1109
1106
|
runId: runnable ? current.execution.runId : void 0
|
|
@@ -1230,7 +1227,7 @@ async function clearExpiredConversationLease(args) {
|
|
|
1230
1227
|
retryCount,
|
|
1231
1228
|
pendingMessages: stopped ? [] : current.execution.pendingMessages,
|
|
1232
1229
|
runId: stopped ? void 0 : current.execution.runId,
|
|
1233
|
-
status: stopped ? "failed" : "
|
|
1230
|
+
status: stopped ? "failed" : "paused"
|
|
1234
1231
|
},
|
|
1235
1232
|
nowMs
|
|
1236
1233
|
)
|
|
@@ -1331,6 +1328,7 @@ async function ensureConversationWake(args) {
|
|
|
1331
1328
|
}
|
|
1332
1329
|
const queueResult = await args.queue.send(
|
|
1333
1330
|
{
|
|
1331
|
+
schemaVersion: CONVERSATION_QUEUE_SCHEMA_VERSION,
|
|
1334
1332
|
conversationId: args.conversationId
|
|
1335
1333
|
},
|
|
1336
1334
|
{
|
|
@@ -1447,8 +1445,8 @@ async function ackMessages2(args) {
|
|
|
1447
1445
|
await recordExecutionMetadata(args);
|
|
1448
1446
|
return result;
|
|
1449
1447
|
}
|
|
1450
|
-
async function
|
|
1451
|
-
const result = await
|
|
1448
|
+
async function requestAnotherSlice2(args) {
|
|
1449
|
+
const result = await requestAnotherSlice(args);
|
|
1452
1450
|
await recordExecutionMetadata(args);
|
|
1453
1451
|
return result;
|
|
1454
1452
|
}
|
|
@@ -1511,7 +1509,7 @@ export {
|
|
|
1511
1509
|
checkInConversationWork2 as checkInConversationWork,
|
|
1512
1510
|
drainConversationMailbox2 as drainConversationMailbox,
|
|
1513
1511
|
ackMessages2 as ackMessages,
|
|
1514
|
-
|
|
1512
|
+
requestAnotherSlice2 as requestAnotherSlice,
|
|
1515
1513
|
beginConversationResume2 as beginConversationResume,
|
|
1516
1514
|
releaseConversationWork2 as releaseConversationWork,
|
|
1517
1515
|
completeConversationWork2 as completeConversationWork,
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
isDmChannel,
|
|
5
5
|
normalizeSlackConversationId,
|
|
6
6
|
withSlackRetries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V6SRLKUB.js";
|
|
8
8
|
import {
|
|
9
9
|
parseDestination
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-37EVZP66.js";
|
|
11
11
|
import {
|
|
12
12
|
getStateAdapter
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GYEKOX7N.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeSlackEmojiName
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MKRIZ4VG.js";
|
|
17
17
|
import {
|
|
18
18
|
pluginCatalogRuntime
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PB222GIA.js";
|
|
20
20
|
import {
|
|
21
21
|
parseSlackMessageTs,
|
|
22
22
|
parseSlackUserId
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isRecord,
|
|
26
26
|
logInfo,
|
|
27
27
|
logWarn
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-B63BF443.js";
|
|
29
29
|
|
|
30
30
|
// src/chat/slack/outbound.ts
|
|
31
31
|
var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAgentRunner,
|
|
3
3
|
executeAgentRun
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-BLETMLRX.js";
|
|
5
|
+
import "../chunk-FEKQHPVA.js";
|
|
6
6
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-47OSH2ZO.js";
|
|
8
8
|
import "../chunk-R776HKPK.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ZDGHGY74.js";
|
|
10
|
+
import "../chunk-T5GXFFLA.js";
|
|
11
|
+
import "../chunk-GDQEU4I7.js";
|
|
12
12
|
import "../chunk-3Y47VMHV.js";
|
|
13
13
|
import "../chunk-HUO3UTAQ.js";
|
|
14
14
|
import "../chunk-5IDFPCON.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-FXDDDSPL.js";
|
|
16
|
+
import "../chunk-X22KCSCO.js";
|
|
17
|
+
import "../chunk-PH4Q3A6W.js";
|
|
18
|
+
import "../chunk-W65V465O.js";
|
|
19
19
|
import "../chunk-HLXXQI5Q.js";
|
|
20
20
|
import "../chunk-PDO5BLNM.js";
|
|
21
21
|
import "../chunk-UIE3R5XU.js";
|
|
22
22
|
import {
|
|
23
23
|
loadAppPluginSet
|
|
24
24
|
} from "../chunk-Y2CM7HXH.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-SCGVWUZX.js";
|
|
26
|
+
import "../chunk-V6SRLKUB.js";
|
|
27
|
+
import "../chunk-37EVZP66.js";
|
|
28
|
+
import "../chunk-MCFIXAV5.js";
|
|
29
29
|
import "../chunk-EM225ITJ.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-GYEKOX7N.js";
|
|
31
|
+
import "../chunk-MKRIZ4VG.js";
|
|
32
32
|
import "../chunk-VFUK3X5B.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-QG7OOKIN.js";
|
|
34
|
+
import "../chunk-FGHADGIC.js";
|
|
35
|
+
import "../chunk-PB222GIA.js";
|
|
36
|
+
import "../chunk-37JJDS4H.js";
|
|
37
37
|
import "../chunk-RUIXF3YQ.js";
|
|
38
38
|
import "../chunk-HZF5P5UN.js";
|
|
39
39
|
import "../chunk-F3B2YJ76.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-B63BF443.js";
|
|
41
41
|
import "../chunk-6GWA276C.js";
|
|
42
42
|
import "../chunk-OOUNJNMR.js";
|
|
43
43
|
import "../chunk-H4HBKISO.js";
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-HQE6EJS5.js";
|
|
45
|
+
import "../chunk-F7REGDKO.js";
|
|
46
46
|
import "../chunk-MLKGABMK.js";
|
|
47
47
|
|
|
48
48
|
// src/cli/chat.ts
|
|
@@ -165,10 +165,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
165
165
|
databaseModule
|
|
166
166
|
] = await Promise.all([
|
|
167
167
|
import("../plugins-HW4VWW6G.js"),
|
|
168
|
-
import("../agent-hooks-
|
|
169
|
-
import("../catalog-runtime-
|
|
170
|
-
import("../validation-
|
|
171
|
-
import("../db-
|
|
168
|
+
import("../agent-hooks-SLJADYE5.js"),
|
|
169
|
+
import("../catalog-runtime-RQIMSDPR.js"),
|
|
170
|
+
import("../validation-OPSRGFGH.js"),
|
|
171
|
+
import("../db-WWOMXWTT.js")
|
|
172
172
|
]);
|
|
173
173
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
174
174
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -234,14 +234,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
234
234
|
await configureLocalChatPlugins(pluginSet);
|
|
235
235
|
const { setExperimentalFeatures } = await import("../experimental-HH6OM6UH.js");
|
|
236
236
|
setExperimentalFeatures({ subagents: true });
|
|
237
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
238
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
237
|
+
const { runLocalAgentTurn } = await import("../runner-KSGB2UAV.js");
|
|
238
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-A6ZZX74U.js");
|
|
239
239
|
const { createLocalOAuthState } = await import("../oauth-relay-3ZU72UGL.js");
|
|
240
240
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-EKPAVWQL.js");
|
|
241
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
242
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
241
|
+
const { bindSpawnAgent } = await import("../spawn-5LAJXZ2P.js");
|
|
242
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-VMSW7STJ.js");
|
|
243
243
|
const { createLocalConversationWork } = await import("../conversation-work-KATFHLG3.js");
|
|
244
|
-
const { processConversationWork } = await import("../worker-
|
|
244
|
+
const { processConversationWork } = await import("../worker-2JNFB7C7.js");
|
|
245
245
|
let agentRunner;
|
|
246
246
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
247
247
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-FGHADGIC.js";
|
|
4
|
+
import "../chunk-PB222GIA.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-37JJDS4H.js";
|
|
9
9
|
import "../chunk-RUIXF3YQ.js";
|
|
10
10
|
import "../chunk-HZF5P5UN.js";
|
|
11
11
|
import "../chunk-F3B2YJ76.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-B63BF443.js";
|
|
13
13
|
import "../chunk-6GWA276C.js";
|
|
14
14
|
import "../chunk-OOUNJNMR.js";
|
|
15
15
|
import "../chunk-H4HBKISO.js";
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
18
18
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
19
19
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-HQE6EJS5.js";
|
|
21
|
+
import "../chunk-F7REGDKO.js";
|
|
22
22
|
import "../chunk-MLKGABMK.js";
|
|
23
23
|
|
|
24
24
|
// src/cli/check.ts
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
validatePluginEgressCredentialHooks,
|
|
3
3
|
validatePluginRegistrations
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TCEJ7XXM.js";
|
|
5
5
|
import {
|
|
6
6
|
pluginCatalogConfigFromPluginSet,
|
|
7
7
|
pluginCliRegistrationsFromPluginSet,
|
|
@@ -14,30 +14,30 @@ import {
|
|
|
14
14
|
createPluginLogger,
|
|
15
15
|
setPlugins,
|
|
16
16
|
validatePlugins
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-SCGVWUZX.js";
|
|
18
|
+
import "../chunk-V6SRLKUB.js";
|
|
19
19
|
import {
|
|
20
20
|
getDb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-37EVZP66.js";
|
|
22
|
+
import "../chunk-MCFIXAV5.js";
|
|
23
23
|
import "../chunk-EM225ITJ.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-GYEKOX7N.js";
|
|
25
|
+
import "../chunk-MKRIZ4VG.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-QG7OOKIN.js";
|
|
28
28
|
import {
|
|
29
29
|
pluginCatalogRuntime
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-PB222GIA.js";
|
|
31
|
+
import "../chunk-37JJDS4H.js";
|
|
32
32
|
import "../chunk-RUIXF3YQ.js";
|
|
33
33
|
import "../chunk-HZF5P5UN.js";
|
|
34
34
|
import "../chunk-F3B2YJ76.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-B63BF443.js";
|
|
36
36
|
import "../chunk-6GWA276C.js";
|
|
37
37
|
import "../chunk-OOUNJNMR.js";
|
|
38
38
|
import "../chunk-H4HBKISO.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-HQE6EJS5.js";
|
|
40
|
+
import "../chunk-F7REGDKO.js";
|
|
41
41
|
import "../chunk-MLKGABMK.js";
|
|
42
42
|
|
|
43
43
|
// src/cli/plugins.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
resolve
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FXDDDSPL.js";
|
|
5
5
|
import "../chunk-EM225ITJ.js";
|
|
6
6
|
import {
|
|
7
7
|
disconnectStateAdapter
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-GYEKOX7N.js";
|
|
9
|
+
import "../chunk-MKRIZ4VG.js";
|
|
10
|
+
import "../chunk-QG7OOKIN.js";
|
|
11
11
|
import {
|
|
12
12
|
pluginCatalogRuntime
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-PB222GIA.js";
|
|
14
|
+
import "../chunk-37JJDS4H.js";
|
|
15
15
|
import "../chunk-RUIXF3YQ.js";
|
|
16
16
|
import "../chunk-HZF5P5UN.js";
|
|
17
17
|
import "../chunk-F3B2YJ76.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-B63BF443.js";
|
|
19
19
|
import "../chunk-6GWA276C.js";
|
|
20
20
|
import "../chunk-OOUNJNMR.js";
|
|
21
21
|
import "../chunk-H4HBKISO.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-HQE6EJS5.js";
|
|
23
|
+
import "../chunk-F7REGDKO.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/snapshot-create.ts
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
} from "../chunk-Y2CM7HXH.js";
|
|
9
9
|
import {
|
|
10
10
|
createJuniorSqlExecutor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-MCFIXAV5.js";
|
|
12
12
|
import {
|
|
13
13
|
getChatConfig
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-MKRIZ4VG.js";
|
|
15
15
|
import "../chunk-VFUK3X5B.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-QG7OOKIN.js";
|
|
17
17
|
import {
|
|
18
18
|
createPluginCatalogRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-37JJDS4H.js";
|
|
20
20
|
import "../chunk-RUIXF3YQ.js";
|
|
21
21
|
import "../chunk-HZF5P5UN.js";
|
|
22
22
|
import "../chunk-F3B2YJ76.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-B63BF443.js";
|
|
24
24
|
import "../chunk-6GWA276C.js";
|
|
25
25
|
import "../chunk-OOUNJNMR.js";
|
|
26
26
|
import "../chunk-H4HBKISO.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-HQE6EJS5.js";
|
|
28
|
+
import "../chunk-F7REGDKO.js";
|
|
29
29
|
import "../chunk-MLKGABMK.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/conversations/sql/migrations.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
closeDb,
|
|
3
3
|
getConversationEventStore,
|
|
4
|
-
|
|
4
|
+
getConversationMessageSearchStore,
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-37EVZP66.js";
|
|
9
|
+
import "./chunk-MCFIXAV5.js";
|
|
10
|
+
import "./chunk-MKRIZ4VG.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QG7OOKIN.js";
|
|
13
13
|
import "./chunk-F3B2YJ76.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-B63BF443.js";
|
|
15
15
|
import "./chunk-6GWA276C.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HQE6EJS5.js";
|
|
17
|
+
import "./chunk-F7REGDKO.js";
|
|
18
18
|
import "./chunk-MLKGABMK.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
|
21
21
|
getConversationEventStore,
|
|
22
|
-
|
|
22
|
+
getConversationMessageSearchStore,
|
|
23
23
|
getConversationStore,
|
|
24
24
|
getDb,
|
|
25
25
|
getSqlExecutor
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QG7OOKIN.js";
|
|
7
|
+
import "./chunk-B63BF443.js";
|
|
8
8
|
import {
|
|
9
9
|
getClient,
|
|
10
10
|
getGlobalScope,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
getDeploymentServiceVersion,
|
|
17
17
|
getDeploymentTelemetryAttributes
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HQE6EJS5.js";
|
|
19
|
+
import "./chunk-F7REGDKO.js";
|
|
20
20
|
import "./chunk-MLKGABMK.js";
|
|
21
21
|
|
|
22
22
|
// src/chat/sentry-payload-filter.ts
|
package/dist/nitro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveConversationWorkQueueTopic
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-WR76IVA5.js";
|
|
4
|
+
import "./chunk-JAL3CH4G.js";
|
|
5
5
|
import {
|
|
6
6
|
PLUGIN_TASK_QUEUE_TOPIC
|
|
7
7
|
} from "./chunk-5I6ORJUY.js";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
|
|
28
28
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
29
29
|
JUNIOR_RETENTION_ROUTE
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-HQE6EJS5.js";
|
|
31
|
+
import "./chunk-F7REGDKO.js";
|
|
32
32
|
import "./chunk-MLKGABMK.js";
|
|
33
33
|
|
|
34
34
|
// src/nitro.ts
|