@sentry/junior 0.193.0 → 0.194.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-DWY3MZZ7.js → agent-hooks-IDX764FD.js} +11 -11
- package/dist/api/conversations/aggregate.d.ts +2 -0
- package/dist/api/conversations/list.d.ts +1 -1
- package/dist/api/conversations/projection.d.ts +1 -1
- package/dist/api/locations/detail.d.ts +1 -1
- package/dist/api/schema/conversation.d.ts +3 -3
- package/dist/api/schema/location.d.ts +1 -1
- package/dist/api/schema/person.d.ts +1 -1
- package/dist/api/schema/task.d.ts +71 -8
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +3 -1
- package/dist/api.js +106 -187
- package/dist/app.js +44 -39
- package/dist/{catalog-runtime-NAD44W5K.js → catalog-runtime-MICXEBLK.js} +4 -4
- package/dist/chat/agent/resume.d.ts +2 -0
- package/dist/chat/config.d.ts +1 -0
- package/dist/chat/conversations/history.d.ts +4 -2
- package/dist/chat/services/turn-limit.d.ts +11 -1
- package/dist/chat/slack/{source-link.d.ts → location-url.d.ts} +1 -1
- package/dist/chat/task-execution/checkpoint.d.ts +2 -0
- package/dist/chat/task-execution/turn-cursor.d.ts +3 -0
- package/dist/chat/tasks/execution-stats.d.ts +13 -1
- package/dist/chat/usage.d.ts +4 -0
- package/dist/{chunk-GTXQHZ2O.js → chunk-2NL3Y47F.js} +5 -5
- package/dist/{chunk-DVU734PI.js → chunk-53IEEFFP.js} +3 -3
- package/dist/{chunk-WH5VV2RW.js → chunk-6H2MKVV5.js} +1 -1
- package/dist/{chunk-42N6CDWF.js → chunk-73JEAQRT.js} +4 -4
- package/dist/{chunk-KWXZMHJS.js → chunk-7ANA7PBB.js} +3 -3
- package/dist/{chunk-2CYWEVOP.js → chunk-ADEACKAH.js} +81 -68
- package/dist/{chunk-D4XQZOHB.js → chunk-AWZS5SVX.js} +8 -8
- package/dist/{chunk-FQ5HFSFR.js → chunk-CCTYK5RH.js} +6 -6
- package/dist/{chunk-N6Q2PNSI.js → chunk-CFGBKPWQ.js} +3 -3
- package/dist/{chunk-5LEVZYXF.js → chunk-E53C73ML.js} +4 -4
- package/dist/{chunk-IBXXTO3J.js → chunk-ELCYG6UU.js} +3 -3
- package/dist/{chunk-COCVPDWX.js → chunk-ENWIHU54.js} +6 -6
- package/dist/{chunk-AZVDODSP.js → chunk-F2KSURTJ.js} +9 -9
- package/dist/{chunk-K47OVEO4.js → chunk-G35QGPO2.js} +1 -1
- package/dist/{chunk-PYBFVK6K.js → chunk-G4RARFNT.js} +50 -24
- package/dist/{chunk-S5HS6WRH.js → chunk-GY5SEFVL.js} +5 -5
- package/dist/{chunk-LG7Q4OW4.js → chunk-H4DCWLTR.js} +8 -8
- package/dist/{chunk-QDU5MW2R.js → chunk-IME5OW4Y.js} +1 -1
- package/dist/{chunk-5E5SLAVD.js → chunk-INTBMGNX.js} +23 -25
- package/dist/{chunk-HMBTX5RK.js → chunk-IOGDKPVU.js} +1 -1
- package/dist/{chunk-OICYQPKP.js → chunk-JOI3DHML.js} +1 -1
- package/dist/{chunk-GUKGU6R7.js → chunk-KNIAWMBU.js} +1 -1
- package/dist/{chunk-4UA5C7AM.js → chunk-NPO24LAN.js} +8 -8
- package/dist/{chunk-IQCL5JGL.js → chunk-NWWDFHXP.js} +1 -1
- package/dist/{chunk-ZFPEPWOO.js → chunk-OEQOAONV.js} +60 -29
- package/dist/{chunk-3YZ2Q6AW.js → chunk-P2P6MUQ4.js} +2 -2
- package/dist/{chunk-LXRTHE43.js → chunk-QMEF4Z7R.js} +5 -5
- package/dist/{chunk-D5YQPCEG.js → chunk-RFE7DCZK.js} +24 -2
- package/dist/{chunk-QWY4KI2V.js → chunk-S7GX44BU.js} +1 -1
- package/dist/{chunk-WJJDQLVL.js → chunk-U76RWMFR.js} +4 -2
- package/dist/{chunk-IOUUS6H4.js → chunk-V4HXV5MY.js} +1 -1
- package/dist/{chunk-GUMBIDDL.js → chunk-VOB2DKO6.js} +174 -34
- package/dist/{chunk-BFP3ZKG6.js → chunk-WMJS5DDV.js} +4 -4
- package/dist/{chunk-DXFUYLHX.js → chunk-WWXJUURQ.js} +1 -1
- package/dist/{chunk-QY2IU47O.js → chunk-X76JVHQ4.js} +1 -1
- package/dist/{chunk-5S6AQFNG.js → chunk-XLWZRHX5.js} +1 -1
- package/dist/{chunk-THYNA2QN.js → chunk-XND3J6AT.js} +1 -1
- package/dist/{chunk-THFNL3TL.js → chunk-XRDSML3K.js} +2 -2
- package/dist/{chunk-EYIMZY5O.js → chunk-YSLIB7ER.js} +18 -3
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-H5MDRQEY.js → db-3IEVINAY.js} +6 -6
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-IOU3NUHT.js → oauth-callback-server-N7L2BB4L.js} +29 -29
- package/dist/{runner-FZ5ZHLFG.js → runner-PTTZV3WU.js} +21 -21
- package/dist/{skills-AR3WD6BX.js → skills-POMWS2RR.js} +5 -5
- package/dist/spawn-R75MXXKE.js +42 -0
- package/dist/task-runner-OQLRHADB.js +36 -0
- package/dist/{validation-VYE7TQY7.js → validation-U6LOMXR7.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-CTQFWYKE.js → work-FHA3BS4L.js} +21 -21
- package/dist/{worker-6WQU3IT5.js → worker-GR4UNVVP.js} +10 -10
- package/package.json +5 -5
- package/dist/spawn-ZU6JABR7.js +0 -42
- package/dist/task-runner-EEGGG2PM.js +0 -36
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
juniorConversations,
|
|
9
9
|
juniorIdentities,
|
|
10
10
|
juniorUsers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XLWZRHX5.js";
|
|
12
12
|
import {
|
|
13
13
|
conversationEventDataSchema,
|
|
14
14
|
decodeStoredConversationEvent,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-VFUK3X5B.js";
|
|
21
21
|
import {
|
|
22
22
|
getChatConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U76RWMFR.js";
|
|
24
24
|
import {
|
|
25
25
|
parseActorUserId,
|
|
26
26
|
parseSlackChannelReferenceId,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-N7TMSOZH.js";
|
|
29
29
|
import {
|
|
30
30
|
normalizeIdentityEmail
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X76JVHQ4.js";
|
|
32
32
|
|
|
33
33
|
// src/chat/conversations/sql/store.ts
|
|
34
34
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
@@ -450,7 +450,9 @@ function locationForWrite(args) {
|
|
|
450
450
|
}
|
|
451
451
|
function locationFromRow(value, row, sessionSource) {
|
|
452
452
|
if (value !== void 0 && value !== null) {
|
|
453
|
-
|
|
453
|
+
const location = locationSchema.parse(value);
|
|
454
|
+
const slackSource2 = !location.threadTs && sessionSource?.kind === "slack" && sessionSource.teamId === location.teamId && sessionSource.channelId === location.channelId ? sessionSource : void 0;
|
|
455
|
+
return slackSource2?.threadTs ? { ...location, threadTs: slackSource2.threadTs } : location;
|
|
454
456
|
}
|
|
455
457
|
if (!row || row.provider === "local") {
|
|
456
458
|
return void 0;
|
|
@@ -1397,76 +1399,84 @@ var SqlConversationEventStore = class {
|
|
|
1397
1399
|
(event) => newConversationEventSchema.parse(event)
|
|
1398
1400
|
);
|
|
1399
1401
|
if (parsed.length === 0) {
|
|
1400
|
-
return;
|
|
1402
|
+
return [];
|
|
1401
1403
|
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1404
|
+
return withConversationEventLock(
|
|
1405
|
+
this.executor,
|
|
1406
|
+
conversationId,
|
|
1407
|
+
async () => {
|
|
1408
|
+
const existingKeys = parsed.map((event) => event.idempotencyKey).filter((key) => key !== void 0);
|
|
1409
|
+
const persistedKeys = existingKeys.length === 0 ? /* @__PURE__ */ new Set() : new Set(
|
|
1410
|
+
(await this.executor.db().select({ key: juniorConversationEvents.idempotencyKey }).from(juniorConversationEvents).where(
|
|
1411
|
+
and6(
|
|
1412
|
+
eq6(
|
|
1413
|
+
juniorConversationEvents.conversationId,
|
|
1414
|
+
conversationId
|
|
1415
|
+
),
|
|
1416
|
+
inArray2(
|
|
1417
|
+
juniorConversationEvents.idempotencyKey,
|
|
1418
|
+
existingKeys
|
|
1419
|
+
)
|
|
1414
1420
|
)
|
|
1415
|
-
)
|
|
1416
|
-
)).flatMap((row) => row.key ? [row.key] : [])
|
|
1417
|
-
);
|
|
1418
|
-
const acceptedKeys = new Set(persistedKeys);
|
|
1419
|
-
const pending = parsed.filter((event) => {
|
|
1420
|
-
if (event.idempotencyKey === void 0) return true;
|
|
1421
|
-
if (acceptedKeys.has(event.idempotencyKey)) return false;
|
|
1422
|
-
acceptedKeys.add(event.idempotencyKey);
|
|
1423
|
-
return true;
|
|
1424
|
-
});
|
|
1425
|
-
if (pending.length === 0) {
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
|
-
const newestCreatedAtMs = Math.max(
|
|
1429
|
-
...pending.map((event) => event.createdAtMs)
|
|
1430
|
-
);
|
|
1431
|
-
await ensureConversationRow(
|
|
1432
|
-
this.executor,
|
|
1433
|
-
conversationId,
|
|
1434
|
-
newestCreatedAtMs,
|
|
1435
|
-
options
|
|
1436
|
-
);
|
|
1437
|
-
const cursor = await this.readCursor(conversationId);
|
|
1438
|
-
const historyVersion = cursor.maxHistoryVersion ?? 0;
|
|
1439
|
-
let seq = cursor.nextSeq;
|
|
1440
|
-
const rows = [];
|
|
1441
|
-
for (const event of pending) {
|
|
1442
|
-
const actorIdentityId = await resolveEventActorIdentityId(
|
|
1443
|
-
this.executor,
|
|
1444
|
-
{
|
|
1445
|
-
conversationId,
|
|
1446
|
-
data: event.data,
|
|
1447
|
-
nowMs: event.createdAtMs
|
|
1448
|
-
}
|
|
1421
|
+
)).flatMap((row) => row.key ? [row.key] : [])
|
|
1449
1422
|
);
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1423
|
+
const acceptedKeys = new Set(persistedKeys);
|
|
1424
|
+
const pending = parsed.filter((event) => {
|
|
1425
|
+
if (event.idempotencyKey === void 0) return true;
|
|
1426
|
+
if (acceptedKeys.has(event.idempotencyKey)) return false;
|
|
1427
|
+
acceptedKeys.add(event.idempotencyKey);
|
|
1428
|
+
return true;
|
|
1429
|
+
});
|
|
1430
|
+
if (pending.length === 0) {
|
|
1431
|
+
return [];
|
|
1432
|
+
}
|
|
1433
|
+
const newestCreatedAtMs = Math.max(
|
|
1434
|
+
...pending.map((event) => event.createdAtMs)
|
|
1458
1435
|
);
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1436
|
+
await ensureConversationRow(
|
|
1437
|
+
this.executor,
|
|
1438
|
+
conversationId,
|
|
1439
|
+
newestCreatedAtMs,
|
|
1440
|
+
options
|
|
1441
|
+
);
|
|
1442
|
+
const cursor = await this.readCursor(conversationId);
|
|
1443
|
+
const historyVersion = cursor.maxHistoryVersion ?? 0;
|
|
1444
|
+
let seq = cursor.nextSeq;
|
|
1445
|
+
const rows = [];
|
|
1446
|
+
for (const event of pending) {
|
|
1447
|
+
const actorIdentityId = await resolveEventActorIdentityId(
|
|
1448
|
+
this.executor,
|
|
1449
|
+
{
|
|
1450
|
+
conversationId,
|
|
1451
|
+
data: event.data,
|
|
1452
|
+
nowMs: event.createdAtMs
|
|
1453
|
+
}
|
|
1454
|
+
);
|
|
1455
|
+
rows.push(
|
|
1456
|
+
insertFromEvent(
|
|
1457
|
+
conversationId,
|
|
1458
|
+
seq++,
|
|
1459
|
+
historyVersion,
|
|
1460
|
+
event,
|
|
1461
|
+
actorIdentityId
|
|
1462
|
+
)
|
|
1463
|
+
);
|
|
1464
|
+
if (actorIdentityId) {
|
|
1465
|
+
await recordConversationParticipant(this.executor, {
|
|
1466
|
+
actorIdentityId,
|
|
1467
|
+
conversationId,
|
|
1468
|
+
atMs: event.createdAtMs,
|
|
1469
|
+
restoreArchive: eventUnarchivesConversation(event.data)
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1466
1472
|
}
|
|
1473
|
+
await this.executor.db().insert(juniorConversationEvents).values(rows);
|
|
1474
|
+
return rows.map((row) => ({
|
|
1475
|
+
seq: row.seq,
|
|
1476
|
+
historyVersion: row.historyVersion
|
|
1477
|
+
}));
|
|
1467
1478
|
}
|
|
1468
|
-
|
|
1469
|
-
});
|
|
1479
|
+
);
|
|
1470
1480
|
}
|
|
1471
1481
|
async replaceHistory(conversationId, replacement) {
|
|
1472
1482
|
const parsed = historyReplacementSchema.parse(replacement);
|
|
@@ -1484,6 +1494,9 @@ var SqlConversationEventStore = class {
|
|
|
1484
1494
|
);
|
|
1485
1495
|
});
|
|
1486
1496
|
}
|
|
1497
|
+
async loadCurrentHistoryVersion(conversationId) {
|
|
1498
|
+
return (await this.readCursor(conversationId)).maxHistoryVersion ?? 0;
|
|
1499
|
+
}
|
|
1487
1500
|
async loadCurrentHistory(conversationId) {
|
|
1488
1501
|
const cursor = await this.readCursor(conversationId);
|
|
1489
1502
|
if (cursor.maxHistoryVersion === null) {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveBaseUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ENWIHU54.js";
|
|
4
4
|
import {
|
|
5
5
|
createPluginLogger,
|
|
6
6
|
getPlugins,
|
|
7
7
|
getSlackClient,
|
|
8
8
|
withSlackRetries
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CCTYK5RH.js";
|
|
10
10
|
import {
|
|
11
11
|
getDb,
|
|
12
12
|
parseDestination
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ADEACKAH.js";
|
|
14
14
|
import {
|
|
15
15
|
sleep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7ANA7PBB.js";
|
|
17
17
|
import {
|
|
18
18
|
acquireActiveLock,
|
|
19
19
|
getStateAdapter
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-V4HXV5MY.js";
|
|
21
21
|
import {
|
|
22
22
|
pluginCatalogRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WWXJUURQ.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchWithBoundedOAuthErrorBodies
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-S7GX44BU.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X76JVHQ4.js";
|
|
30
30
|
|
|
31
31
|
// src/chat/capabilities/router.ts
|
|
32
32
|
var ProviderCredentialRouter = class {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getConversationEventStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ADEACKAH.js";
|
|
9
9
|
import {
|
|
10
10
|
juniorCodeChanges,
|
|
11
11
|
juniorCodeRepositories,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
juniorUsers,
|
|
17
17
|
juniorWorkspaceRepos,
|
|
18
18
|
juniorWorkspaces
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XLWZRHX5.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_WORKSPACE_ROOT,
|
|
22
22
|
getVercelSandboxCredentials,
|
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
isSandboxMissingError,
|
|
25
25
|
runNonInteractiveCommand,
|
|
26
26
|
sleep
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7ANA7PBB.js";
|
|
28
28
|
import {
|
|
29
29
|
getStateAdapter
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-V4HXV5MY.js";
|
|
31
31
|
import {
|
|
32
32
|
botConfig,
|
|
33
33
|
completeObject,
|
|
34
34
|
embedTexts,
|
|
35
35
|
getSlackBotToken
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-U76RWMFR.js";
|
|
37
37
|
import {
|
|
38
38
|
defaultModelId
|
|
39
39
|
} from "./chunk-D4YV5TDV.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
setSpanAttributes,
|
|
53
53
|
setSpanStatus,
|
|
54
54
|
withSpan
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-X76JVHQ4.js";
|
|
56
56
|
|
|
57
57
|
// src/chat/plugins/agent-hooks.ts
|
|
58
58
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithTurnRequestDeadline
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NWWDFHXP.js";
|
|
4
4
|
import {
|
|
5
5
|
QUEUE_SIGNATURE_MAX_AGE_MS,
|
|
6
6
|
createVercelQueueClient,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-7H2VZTWN.js";
|
|
10
10
|
import {
|
|
11
11
|
logWarn
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X76JVHQ4.js";
|
|
13
13
|
|
|
14
14
|
// src/chat/plugins/task-queue.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -129,7 +129,7 @@ function pluginTaskCallback() {
|
|
|
129
129
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
130
130
|
// Load the runner on first use so this module can send without a cycle.
|
|
131
131
|
run: async (message) => {
|
|
132
|
-
const { processPluginTask } = await import("./task-runner-
|
|
132
|
+
const { processPluginTask } = await import("./task-runner-OQLRHADB.js");
|
|
133
133
|
await processPluginTask(message);
|
|
134
134
|
},
|
|
135
135
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
getConversationStore,
|
|
9
9
|
parseDestination,
|
|
10
10
|
sameDestination
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ADEACKAH.js";
|
|
12
12
|
import {
|
|
13
13
|
getDefaultRedisStateAdapterFor,
|
|
14
14
|
getStateAdapter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V4HXV5MY.js";
|
|
16
16
|
import {
|
|
17
17
|
getChatConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U76RWMFR.js";
|
|
19
19
|
import {
|
|
20
20
|
parseStoredSlackActor
|
|
21
21
|
} from "./chunk-N7TMSOZH.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isRecord,
|
|
24
24
|
toOptionalNumber,
|
|
25
25
|
toOptionalString
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-X76JVHQ4.js";
|
|
27
27
|
|
|
28
28
|
// src/chat/task-execution/state.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
isStale,
|
|
7
7
|
runNonInteractiveCommand,
|
|
8
8
|
sleep
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7ANA7PBB.js";
|
|
10
10
|
import {
|
|
11
11
|
getStateAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V4HXV5MY.js";
|
|
13
13
|
import {
|
|
14
14
|
setSpanAttributes,
|
|
15
15
|
withSpan
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X76JVHQ4.js";
|
|
17
17
|
|
|
18
18
|
// src/chat/sandbox/resources.ts
|
|
19
19
|
var configuredResources;
|
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
isDmChannel,
|
|
9
9
|
normalizeSlackConversationId,
|
|
10
10
|
withSlackRetries
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CCTYK5RH.js";
|
|
12
12
|
import {
|
|
13
13
|
parseDestination
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ADEACKAH.js";
|
|
15
15
|
import {
|
|
16
16
|
getStateAdapter
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V4HXV5MY.js";
|
|
18
18
|
import {
|
|
19
19
|
normalizeSlackEmojiName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-U76RWMFR.js";
|
|
21
21
|
import {
|
|
22
22
|
pluginCatalogRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WWXJUURQ.js";
|
|
24
24
|
import {
|
|
25
25
|
parseSlackMessageTs,
|
|
26
26
|
parseSlackUserId
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
isRecord,
|
|
30
30
|
logInfo,
|
|
31
31
|
logWarn
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-X76JVHQ4.js";
|
|
33
33
|
|
|
34
34
|
// src/chat/agent/types.ts
|
|
35
35
|
var RetryableDeliveryError = class extends Error {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRunError,
|
|
3
3
|
executeTurn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-53IEEFFP.js";
|
|
5
5
|
import {
|
|
6
6
|
ConversationTurnLifecycleService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6H2MKVV5.js";
|
|
8
8
|
import {
|
|
9
9
|
getPersistedSandboxState,
|
|
10
10
|
getPersistedThreadState,
|
|
11
11
|
persistThreadStateById
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GY5SEFVL.js";
|
|
13
13
|
import {
|
|
14
14
|
AgentInvocationBusyError,
|
|
15
15
|
AgentInvocationLimitError,
|
|
@@ -18,32 +18,32 @@ import {
|
|
|
18
18
|
agentBindingSchema,
|
|
19
19
|
agentInvocationSchema,
|
|
20
20
|
createAgentInvocationSchema
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QMEF4Z7R.js";
|
|
22
22
|
import {
|
|
23
23
|
TurnInputCommitLostError,
|
|
24
24
|
getAssistantReplyText,
|
|
25
25
|
getConversationTurnBoundaryError,
|
|
26
26
|
isTurnInputCommitLostError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-G35QGPO2.js";
|
|
28
28
|
import {
|
|
29
29
|
failTurnRecord,
|
|
30
30
|
getTerminalAssistantMessages,
|
|
31
31
|
getTurnRecord,
|
|
32
32
|
openConversationProjection,
|
|
33
33
|
saveTurnCheckpoint
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OEQOAONV.js";
|
|
35
35
|
import {
|
|
36
36
|
appendAndEnqueueInboundMessage
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-E53C73ML.js";
|
|
38
38
|
import {
|
|
39
39
|
getConversationEventStore,
|
|
40
40
|
getConversationStore,
|
|
41
41
|
getSqlExecutor
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ADEACKAH.js";
|
|
43
43
|
import {
|
|
44
44
|
juniorAgentBindings,
|
|
45
45
|
juniorAgentInvocations
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XLWZRHX5.js";
|
|
47
47
|
|
|
48
48
|
// src/chat/agent-invocations/work.ts
|
|
49
49
|
import { z } from "zod";
|