@sentry/junior 0.193.0 → 0.195.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-VIBTIP5F.js} +11 -11
- package/dist/api/activity.d.ts +9 -1
- package/dist/api/code/overview.d.ts +12 -0
- 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 +9 -1
- package/dist/api/locations/list.d.ts +5 -0
- package/dist/api/people/code.d.ts +6 -0
- package/dist/api/people/shared.d.ts +9 -1
- package/dist/api/reporting-window.d.ts +39 -1
- package/dist/api/schema/code.d.ts +12 -0
- package/dist/api/schema/conversation.d.ts +28 -3
- package/dist/api/schema/location.d.ts +14 -1
- package/dist/api/schema/person.d.ts +15 -1
- package/dist/api/schema/task.d.ts +83 -8
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +3 -1
- package/dist/api.js +320 -222
- package/dist/app.js +108 -39
- package/dist/{catalog-runtime-NAD44W5K.js → catalog-runtime-6E6SGRZK.js} +4 -4
- package/dist/chat/agent/resume.d.ts +2 -0
- package/dist/chat/config.d.ts +2 -0
- package/dist/chat/conversations/history.d.ts +4 -2
- package/dist/chat/event-tasks/store.d.ts +27 -17
- package/dist/chat/resource-events/notification.d.ts +2 -1
- package/dist/chat/services/automated-turn-limit.d.ts +110 -0
- package/dist/chat/services/turn-limit.d.ts +11 -1
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +38 -0
- 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 +15 -2
- package/dist/chat/tasks/read.d.ts +5 -2
- package/dist/chat/usage.d.ts +4 -0
- package/dist/{chunk-GUKGU6R7.js → chunk-3VWIZVK7.js} +1 -1
- package/dist/{chunk-THYNA2QN.js → chunk-5HNXLP4W.js} +1 -1
- package/dist/{chunk-GUMBIDDL.js → chunk-5NR7N567.js} +194 -43
- package/dist/{chunk-N6Q2PNSI.js → chunk-6GGDBXXP.js} +3 -3
- package/dist/{chunk-HMBTX5RK.js → chunk-6TRQLG3D.js} +1 -1
- package/dist/{chunk-IOUUS6H4.js → chunk-7MYXH5LA.js} +1 -1
- package/dist/{chunk-WH5VV2RW.js → chunk-7PQMTME5.js} +1 -1
- package/dist/{chunk-5E5SLAVD.js → chunk-7UED4D5T.js} +23 -25
- package/dist/{chunk-4UA5C7AM.js → chunk-BJZML4RT.js} +8 -8
- package/dist/{chunk-QDU5MW2R.js → chunk-C4NY6L7S.js} +1 -1
- package/dist/{chunk-DVU734PI.js → chunk-CE2P6TOV.js} +3 -3
- package/dist/{chunk-BFP3ZKG6.js → chunk-DTYOEHUP.js} +148 -19
- package/dist/{chunk-S5HS6WRH.js → chunk-FE3Y4KES.js} +5 -5
- package/dist/{chunk-PYBFVK6K.js → chunk-FEZIEEOP.js} +985 -569
- package/dist/{chunk-5S6AQFNG.js → chunk-FPQPYJEG.js} +23 -29
- package/dist/{chunk-42N6CDWF.js → chunk-HE5PZAPS.js} +4 -4
- package/dist/{chunk-QY2IU47O.js → chunk-HUQOXMDG.js} +1 -1
- package/dist/{chunk-IQCL5JGL.js → chunk-I4RH3KLJ.js} +1 -1
- package/dist/{chunk-LXRTHE43.js → chunk-JBSCMOLR.js} +5 -5
- package/dist/{chunk-OICYQPKP.js → chunk-KBPWC7NU.js} +1 -1
- package/dist/{chunk-2CYWEVOP.js → chunk-KQ3GZGBK.js} +88 -68
- package/dist/{chunk-GTXQHZ2O.js → chunk-KUQRWV53.js} +5 -5
- package/dist/{chunk-IBXXTO3J.js → chunk-L62JVQPL.js} +3 -3
- package/dist/{chunk-KWXZMHJS.js → chunk-LM7UE523.js} +3 -3
- package/dist/{chunk-WJJDQLVL.js → chunk-LMYRF6HX.js} +6 -2
- package/dist/{chunk-AZVDODSP.js → chunk-N67T4VY3.js} +9 -9
- package/dist/{chunk-D4XQZOHB.js → chunk-OQHO62VA.js} +8 -8
- package/dist/{chunk-FQ5HFSFR.js → chunk-PFQRZ4IB.js} +9 -6
- package/dist/{chunk-LG7Q4OW4.js → chunk-PYTRZZ4V.js} +8 -8
- package/dist/{chunk-THFNL3TL.js → chunk-QHJZSYKY.js} +2 -2
- package/dist/{chunk-5LEVZYXF.js → chunk-QKHZF2LH.js} +4 -4
- package/dist/{chunk-EYIMZY5O.js → chunk-QPZL2IYT.js} +100 -9
- package/dist/{chunk-D5YQPCEG.js → chunk-R5BGW4WR.js} +24 -2
- package/dist/{chunk-COCVPDWX.js → chunk-R5OHONYU.js} +6 -6
- package/dist/{chunk-DXFUYLHX.js → chunk-RKA22BQP.js} +1 -1
- package/dist/{chunk-3YZ2Q6AW.js → chunk-RQO67SAO.js} +2 -2
- package/dist/{chunk-ZFPEPWOO.js → chunk-RZ3PBNDV.js} +60 -29
- package/dist/{chunk-K47OVEO4.js → chunk-VYDIA2UL.js} +1 -1
- package/dist/{chunk-QWY4KI2V.js → chunk-X3PBQ4BK.js} +1 -1
- 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/schema/event-tasks.d.ts +21 -0
- package/dist/db/schema.d.ts +19 -0
- package/dist/{db-H5MDRQEY.js → db-FVCSDROR.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-Z5PXTDOE.js} +29 -29
- package/dist/{runner-FZ5ZHLFG.js → runner-RHYU7OGV.js} +21 -21
- package/dist/{skills-AR3WD6BX.js → skills-QTN73DN5.js} +5 -5
- package/dist/spawn-R56OWLUH.js +42 -0
- package/dist/task-runner-LLJZTLRP.js +36 -0
- package/dist/{validation-VYE7TQY7.js → validation-2ZK7GA6N.js} +5 -5
- package/dist/version.js +1 -1
- package/dist/{work-CTQFWYKE.js → work-7IBKSZRU.js} +21 -21
- package/dist/{worker-6WQU3IT5.js → worker-RNVQVCO7.js} +10 -10
- package/migrations/0038_event_task_status.sql +5 -0
- package/migrations/meta/0038_snapshot.json +3323 -0
- package/migrations/meta/_journal.json +8 -1
- package/package.json +4 -4
- package/dist/spawn-ZU6JABR7.js +0 -42
- package/dist/task-runner-EEGGG2PM.js +0 -36
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
authenticationUnlinkedEvent,
|
|
8
8
|
fallbackShortTitle,
|
|
9
9
|
generateShortTitle
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R5BGW4WR.js";
|
|
11
11
|
import {
|
|
12
12
|
bindProviderConversation,
|
|
13
13
|
createSqlConversationEventStore,
|
|
@@ -16,18 +16,18 @@ import {
|
|
|
16
16
|
getSqlExecutor,
|
|
17
17
|
sanitizePostgresJson,
|
|
18
18
|
withConversationEventLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KQ3GZGBK.js";
|
|
20
20
|
import {
|
|
21
21
|
SANDBOX_REPOS_ROOT,
|
|
22
22
|
SANDBOX_WORKSPACE_ROOT,
|
|
23
23
|
sleep
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LM7UE523.js";
|
|
25
25
|
import {
|
|
26
26
|
MUTATION_LOCK_TTL_MS,
|
|
27
27
|
fenceLock,
|
|
28
28
|
getStateAdapter,
|
|
29
29
|
withLock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7MYXH5LA.js";
|
|
31
31
|
import {
|
|
32
32
|
agentHistoryItemSchema,
|
|
33
33
|
contextProvenance,
|
|
@@ -40,17 +40,18 @@ import {
|
|
|
40
40
|
escapeXml,
|
|
41
41
|
resolveGatewayModel,
|
|
42
42
|
unwrapCurrentInstruction
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LMYRF6HX.js";
|
|
44
44
|
import {
|
|
45
45
|
parseSlackMessageTs,
|
|
46
46
|
toStoredSlackActor
|
|
47
47
|
} from "./chunk-N7TMSOZH.js";
|
|
48
48
|
import {
|
|
49
|
+
buildTurnFailureResponse,
|
|
49
50
|
getActiveTraceId,
|
|
50
51
|
logException,
|
|
51
52
|
logWarn,
|
|
52
53
|
setSpanAttributes
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-HUQOXMDG.js";
|
|
54
55
|
|
|
55
56
|
// src/chat/turn-context-tag.ts
|
|
56
57
|
var TURN_CONTEXT_TAG = "runtime-turn-context";
|
|
@@ -1241,7 +1242,7 @@ async function commitMessagesLocked(args, executor) {
|
|
|
1241
1242
|
content: context.content
|
|
1242
1243
|
}
|
|
1243
1244
|
})) ?? [];
|
|
1244
|
-
await eventStore.append(args.conversationId, [
|
|
1245
|
+
const appendedEvents = await eventStore.append(args.conversationId, [
|
|
1245
1246
|
...newMessages.map((message, index) => ({
|
|
1246
1247
|
data: historyItemFromPiMessage(
|
|
1247
1248
|
message,
|
|
@@ -1251,22 +1252,19 @@ async function commitMessagesLocked(args, executor) {
|
|
|
1251
1252
|
})),
|
|
1252
1253
|
...turnContextEvents
|
|
1253
1254
|
]);
|
|
1254
|
-
|
|
1255
|
-
|
|
1255
|
+
const cursor = appendedEvents.at(-1) ?? currentEvents.at(-1);
|
|
1256
|
+
return {
|
|
1257
|
+
committedSeq: cursor?.seq ?? -1,
|
|
1258
|
+
historyVersion: cursor?.historyVersion ?? 0,
|
|
1259
|
+
messageSeqs: [
|
|
1260
|
+
...current.seqs,
|
|
1261
|
+
...appendedEvents.slice(0, newMessages.length).map((event) => event.seq)
|
|
1262
|
+
],
|
|
1263
|
+
messages: nextLocalMessages,
|
|
1264
|
+
provenance: nextLocalProvenance
|
|
1265
|
+
};
|
|
1256
1266
|
}
|
|
1257
|
-
|
|
1258
|
-
args.conversationId
|
|
1259
|
-
);
|
|
1260
|
-
const committed = projectConversationEvents(committedEvents, {
|
|
1261
|
-
defaultProfile: botConfig.defaultProfile
|
|
1262
|
-
});
|
|
1263
|
-
return {
|
|
1264
|
-
committedSeq: committedEvents.at(-1)?.seq ?? -1,
|
|
1265
|
-
historyVersion: committedEvents.at(-1)?.historyVersion ?? 0,
|
|
1266
|
-
messageSeqs: committed.seqs,
|
|
1267
|
-
messages: nextLocalMessages,
|
|
1268
|
-
provenance: nextLocalProvenance
|
|
1269
|
-
};
|
|
1267
|
+
throw new AgentHistoryBranchError(args.conversationId);
|
|
1270
1268
|
}
|
|
1271
1269
|
async function recordMcpProviderConnected(args) {
|
|
1272
1270
|
const eventStore = getConversationEventStore();
|
|
@@ -2074,6 +2072,7 @@ var storedTurnRecordSchema = z2.object({
|
|
|
2074
2072
|
committedSeq: seqCursorSchema,
|
|
2075
2073
|
historyVersion: z2.number().int().nonnegative().optional(),
|
|
2076
2074
|
errorMessage: z2.string().optional(),
|
|
2075
|
+
cumulativeToolCallCount: z2.number().int().nonnegative().optional(),
|
|
2077
2076
|
turnStartSeq: seqCursorSchema.optional(),
|
|
2078
2077
|
runtimeContext: z2.array(piMessageSchema).optional()
|
|
2079
2078
|
}).strip();
|
|
@@ -2175,6 +2174,7 @@ function materializeTurnRecord(stored, piProjection, turnStartMessageIndex, rest
|
|
|
2175
2174
|
cumulativeDurationMs: runtimeMetrics?.cumulativeDurationMs ?? 0,
|
|
2176
2175
|
...definedProps({
|
|
2177
2176
|
channelName: runtimeMetrics?.channelName,
|
|
2177
|
+
cumulativeToolCallCount: stored.cumulativeToolCallCount,
|
|
2178
2178
|
cumulativeUsage: runtimeMetrics?.cumulativeUsage,
|
|
2179
2179
|
dispatchId: stored.dispatchId,
|
|
2180
2180
|
dispatchOutcome: stored.dispatchOutcome,
|
|
@@ -2246,12 +2246,13 @@ async function materializeStoredTurnRecord(conversationId, turnId, followCurrent
|
|
|
2246
2246
|
if (!pinnedProjection) {
|
|
2247
2247
|
return void 0;
|
|
2248
2248
|
}
|
|
2249
|
-
const
|
|
2250
|
-
const currentHistoryVersion =
|
|
2249
|
+
const eventStore = getConversationEventStore();
|
|
2250
|
+
const currentHistoryVersion = await eventStore.loadCurrentHistoryVersion(conversationId);
|
|
2251
2251
|
const followsReplacement = followCurrentReplacement && (parsed.state === "running" || parsed.state === "paused") && parsed.historyVersion !== void 0 && parsed.historyVersion !== currentHistoryVersion;
|
|
2252
|
-
const piProjection = followsReplacement ? projectConversationEvents(
|
|
2253
|
-
|
|
2254
|
-
|
|
2252
|
+
const piProjection = followsReplacement ? projectConversationEvents(
|
|
2253
|
+
await eventStore.loadCurrentHistory(conversationId),
|
|
2254
|
+
{ defaultProfile: botConfig.defaultProfile }
|
|
2255
|
+
) : pinnedProjection;
|
|
2255
2256
|
const turnStartMessageIndex = followsReplacement ? 0 : parsed.turnStartSeq === void 0 ? void 0 : piProjection.seqs.filter((seq) => seq <= parsed.turnStartSeq).length;
|
|
2256
2257
|
const conversation = await getConversationStore().get({ conversationId });
|
|
2257
2258
|
const executionMetrics = executionMetricsForTurn(conversation, turnId);
|
|
@@ -2288,6 +2289,7 @@ function buildStoredRecord(args) {
|
|
|
2288
2289
|
committedSeq: args.committedSeq,
|
|
2289
2290
|
...definedProps({
|
|
2290
2291
|
actor: args.actor,
|
|
2292
|
+
cumulativeToolCallCount: args.cumulativeToolCallCount,
|
|
2291
2293
|
dispatchId: args.dispatchId,
|
|
2292
2294
|
dispatchOutcome: args.dispatchOutcome,
|
|
2293
2295
|
errorMessage: args.errorMessage,
|
|
@@ -2379,6 +2381,7 @@ async function updateTurnState(args) {
|
|
|
2379
2381
|
lastProgressAtMs: parsed.lastProgressAtMs,
|
|
2380
2382
|
previousVersion: parsed.version,
|
|
2381
2383
|
...definedProps({
|
|
2384
|
+
cumulativeToolCallCount: args.existing.cumulativeToolCallCount,
|
|
2382
2385
|
dispatchId: args.existing.dispatchId,
|
|
2383
2386
|
dispatchOutcome: args.existing.dispatchOutcome,
|
|
2384
2387
|
errorMessage: args.errorMessage ?? args.existing.errorMessage,
|
|
@@ -2473,6 +2476,7 @@ async function upsertTurnRecordLocked(args, fence) {
|
|
|
2473
2476
|
historyVersion: commit.historyVersion,
|
|
2474
2477
|
previousVersion: existingRecord?.version,
|
|
2475
2478
|
...definedProps({
|
|
2479
|
+
cumulativeToolCallCount: args.cumulativeToolCallCount ?? existingRecord?.cumulativeToolCallCount,
|
|
2476
2480
|
dispatchId,
|
|
2477
2481
|
dispatchOutcome: args.dispatchOutcome ?? existingRecord?.dispatchOutcome,
|
|
2478
2482
|
errorMessage: args.errorMessage,
|
|
@@ -2643,9 +2647,33 @@ var TurnSliceLimitExceededError = class extends Error {
|
|
|
2643
2647
|
this.name = "TurnSliceLimitExceededError";
|
|
2644
2648
|
}
|
|
2645
2649
|
};
|
|
2650
|
+
var TurnToolCallLimitExceededError = class extends Error {
|
|
2651
|
+
constructor(maxToolCalls) {
|
|
2652
|
+
super(`Agent turn exceeded execution limit (${maxToolCalls} tool calls)`);
|
|
2653
|
+
this.name = "TurnToolCallLimitExceededError";
|
|
2654
|
+
}
|
|
2655
|
+
};
|
|
2656
|
+
function isDirectTurnExecutionLimitError(error) {
|
|
2657
|
+
return error instanceof TurnSliceLimitExceededError || error instanceof TurnToolCallLimitExceededError;
|
|
2658
|
+
}
|
|
2659
|
+
function isTurnExecutionLimitExceededError(error) {
|
|
2660
|
+
if (isDirectTurnExecutionLimitError(error)) {
|
|
2661
|
+
return true;
|
|
2662
|
+
}
|
|
2663
|
+
return error instanceof Error && isDirectTurnExecutionLimitError(error.cause);
|
|
2664
|
+
}
|
|
2665
|
+
function assertTurnToolCallLimit(toolCallCount, maxToolCalls) {
|
|
2666
|
+
if (toolCallCount <= maxToolCalls) {
|
|
2667
|
+
return;
|
|
2668
|
+
}
|
|
2669
|
+
throw new TurnToolCallLimitExceededError(maxToolCalls);
|
|
2670
|
+
}
|
|
2646
2671
|
function buildTurnLimitResponse(eventId) {
|
|
2647
2672
|
return `I couldn't finish this request because this turn reached its execution limit. Please try again with a smaller or more specific request. Reference: \`event_id=${eventId}\`.`;
|
|
2648
2673
|
}
|
|
2674
|
+
function buildTurnErrorResponse(error, eventId) {
|
|
2675
|
+
return isTurnExecutionLimitExceededError(error) ? buildTurnLimitResponse(eventId) : buildTurnFailureResponse(eventId);
|
|
2676
|
+
}
|
|
2649
2677
|
|
|
2650
2678
|
// src/chat/task-execution/checkpoint.ts
|
|
2651
2679
|
function definedProps2(values) {
|
|
@@ -2699,7 +2727,8 @@ function sharedWrite(args, latest) {
|
|
|
2699
2727
|
source: args.source,
|
|
2700
2728
|
surface: args.surface ?? latest?.surface,
|
|
2701
2729
|
traceId: getActiveTraceId() ?? latest?.traceId,
|
|
2702
|
-
turnStartMessageIndex: args.turnStartMessageIndex ?? latest?.turnStartMessageIndex
|
|
2730
|
+
turnStartMessageIndex: args.turnStartMessageIndex ?? latest?.turnStartMessageIndex,
|
|
2731
|
+
cumulativeToolCallCount: args.cumulativeToolCallCount ?? latest?.cumulativeToolCallCount
|
|
2703
2732
|
})
|
|
2704
2733
|
};
|
|
2705
2734
|
}
|
|
@@ -2896,7 +2925,9 @@ export {
|
|
|
2896
2925
|
buildAgentsInstructionsMessage,
|
|
2897
2926
|
findVisibleAgentsInstructions,
|
|
2898
2927
|
TurnSliceLimitExceededError,
|
|
2899
|
-
|
|
2928
|
+
isTurnExecutionLimitExceededError,
|
|
2929
|
+
assertTurnToolCallLimit,
|
|
2930
|
+
buildTurnErrorResponse,
|
|
2900
2931
|
persistWithRetry,
|
|
2901
2932
|
getTurnRecord,
|
|
2902
2933
|
getTurnRecordForResume,
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAgentRun
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-FEZIEEOP.js";
|
|
4
|
+
import "../chunk-JBSCMOLR.js";
|
|
5
5
|
import "../chunk-6Y5B5PEX.js";
|
|
6
6
|
import "../chunk-DIB4GX3G.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-OQHO62VA.js";
|
|
8
8
|
import {
|
|
9
9
|
createAgentRunner
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-R5OHONYU.js";
|
|
11
|
+
import "../chunk-VYDIA2UL.js";
|
|
12
|
+
import "../chunk-RZ3PBNDV.js";
|
|
13
13
|
import "../chunk-2LYHWMR4.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-DTYOEHUP.js";
|
|
15
|
+
import "../chunk-6TRQLG3D.js";
|
|
16
|
+
import "../chunk-QKHZF2LH.js";
|
|
17
17
|
import "../chunk-DA2KGZZI.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-R5BGW4WR.js";
|
|
19
|
+
import "../chunk-L62JVQPL.js";
|
|
20
20
|
import "../chunk-PDO5BLNM.js";
|
|
21
21
|
import "../chunk-UIE3R5XU.js";
|
|
22
22
|
import "../chunk-X6GDDWQH.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-I4RH3KLJ.js";
|
|
24
24
|
import "../chunk-DKIJ2RP5.js";
|
|
25
25
|
import "../chunk-JAL3CH4G.js";
|
|
26
26
|
import "../chunk-7H2VZTWN.js";
|
|
27
27
|
import {
|
|
28
28
|
loadAppPluginSet
|
|
29
29
|
} from "../chunk-Y2CM7HXH.js";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-PFQRZ4IB.js";
|
|
31
31
|
import "../chunk-3Y47VMHV.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-KQ3GZGBK.js";
|
|
33
|
+
import "../chunk-FPQPYJEG.js";
|
|
34
|
+
import "../chunk-LM7UE523.js";
|
|
35
|
+
import "../chunk-7MYXH5LA.js";
|
|
36
36
|
import "../chunk-GFBR4S3Q.js";
|
|
37
37
|
import "../chunk-VFUK3X5B.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-LMYRF6HX.js";
|
|
39
39
|
import "../chunk-D4YV5TDV.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-KBPWC7NU.js";
|
|
41
|
+
import "../chunk-RQO67SAO.js";
|
|
42
|
+
import "../chunk-RKA22BQP.js";
|
|
43
|
+
import "../chunk-X3PBQ4BK.js";
|
|
44
44
|
import "../chunk-CEMMLV5L.js";
|
|
45
45
|
import "../chunk-N7TMSOZH.js";
|
|
46
46
|
import "../chunk-DWPN6SCH.js";
|
|
47
47
|
import "../chunk-TXKUKMVO.js";
|
|
48
|
-
import "../chunk-
|
|
48
|
+
import "../chunk-HUQOXMDG.js";
|
|
49
49
|
import "../chunk-PEQXYSSE.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-C4NY6L7S.js";
|
|
51
51
|
|
|
52
52
|
// src/cli/chat.ts
|
|
53
53
|
import {
|
|
@@ -169,10 +169,10 @@ async function configureLocalChatPlugins(pluginSet) {
|
|
|
169
169
|
databaseModule
|
|
170
170
|
] = await Promise.all([
|
|
171
171
|
import("../plugins-YTYJMMJF.js"),
|
|
172
|
-
import("../agent-hooks-
|
|
173
|
-
import("../catalog-runtime-
|
|
174
|
-
import("../validation-
|
|
175
|
-
import("../db-
|
|
172
|
+
import("../agent-hooks-VIBTIP5F.js"),
|
|
173
|
+
import("../catalog-runtime-6E6SGRZK.js"),
|
|
174
|
+
import("../validation-2ZK7GA6N.js"),
|
|
175
|
+
import("../db-FVCSDROR.js")
|
|
176
176
|
]);
|
|
177
177
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
178
178
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -238,14 +238,14 @@ async function prepareLocalChatRun(io, pluginSet) {
|
|
|
238
238
|
await configureLocalChatPlugins(pluginSet);
|
|
239
239
|
const { setExperimentalFeatures } = await import("../experimental-P5FZM4CU.js");
|
|
240
240
|
setExperimentalFeatures({ subagents: true });
|
|
241
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
242
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
241
|
+
const { runLocalAgentTurn } = await import("../runner-RHYU7OGV.js");
|
|
242
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Z5PXTDOE.js");
|
|
243
243
|
const { createLocalOAuthState } = await import("../oauth-relay-5XPVRPYB.js");
|
|
244
244
|
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-FIL7EGPR.js");
|
|
245
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
246
|
-
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-
|
|
245
|
+
const { bindSpawnAgent } = await import("../spawn-R56OWLUH.js");
|
|
246
|
+
const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-7IBKSZRU.js");
|
|
247
247
|
const { createLocalConversationWork } = await import("../conversation-work-VIOQ5ZF3.js");
|
|
248
|
-
const { processConversationWork } = await import("../worker-
|
|
248
|
+
const { processConversationWork } = await import("../worker-RNVQVCO7.js");
|
|
249
249
|
let agentRunner;
|
|
250
250
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
251
251
|
if (!agentRunner) {
|
package/dist/cli/check.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSkillFile
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-RQO67SAO.js";
|
|
4
|
+
import "../chunk-RKA22BQP.js";
|
|
5
5
|
import {
|
|
6
6
|
parseInlinePluginManifest,
|
|
7
7
|
parsePluginManifest
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-X3PBQ4BK.js";
|
|
9
9
|
import "../chunk-CEMMLV5L.js";
|
|
10
10
|
import "../chunk-N7TMSOZH.js";
|
|
11
11
|
import "../chunk-DWPN6SCH.js";
|
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
|
|
15
15
|
JUNIOR_HEARTBEAT_ROUTE,
|
|
16
16
|
LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-HUQOXMDG.js";
|
|
18
18
|
import "../chunk-PEQXYSSE.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-C4NY6L7S.js";
|
|
20
20
|
|
|
21
21
|
// src/cli/check.ts
|
|
22
22
|
import fs from "fs/promises";
|
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-3VWIZVK7.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-
|
|
17
|
+
} from "../chunk-PFQRZ4IB.js";
|
|
18
18
|
import "../chunk-3Y47VMHV.js";
|
|
19
19
|
import {
|
|
20
20
|
getDb
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-KQ3GZGBK.js";
|
|
22
|
+
import "../chunk-FPQPYJEG.js";
|
|
23
|
+
import "../chunk-LM7UE523.js";
|
|
24
|
+
import "../chunk-7MYXH5LA.js";
|
|
25
25
|
import "../chunk-GFBR4S3Q.js";
|
|
26
26
|
import "../chunk-VFUK3X5B.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-LMYRF6HX.js";
|
|
28
28
|
import "../chunk-D4YV5TDV.js";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-KBPWC7NU.js";
|
|
30
30
|
import {
|
|
31
31
|
pluginCatalogRuntime
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-RKA22BQP.js";
|
|
33
|
+
import "../chunk-X3PBQ4BK.js";
|
|
34
34
|
import "../chunk-CEMMLV5L.js";
|
|
35
35
|
import "../chunk-N7TMSOZH.js";
|
|
36
36
|
import "../chunk-DWPN6SCH.js";
|
|
37
37
|
import "../chunk-TXKUKMVO.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-HUQOXMDG.js";
|
|
39
39
|
import "../chunk-PEQXYSSE.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-C4NY6L7S.js";
|
|
41
41
|
|
|
42
42
|
// src/cli/plugins.ts
|
|
43
43
|
import { stderr as defaultStderr, stdout as defaultStdout } from "process";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolve
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-L62JVQPL.js";
|
|
4
4
|
import {
|
|
5
5
|
create
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-LM7UE523.js";
|
|
7
7
|
import {
|
|
8
8
|
disconnectStateAdapter
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-7MYXH5LA.js";
|
|
10
|
+
import "../chunk-LMYRF6HX.js";
|
|
11
11
|
import "../chunk-D4YV5TDV.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-KBPWC7NU.js";
|
|
13
13
|
import {
|
|
14
14
|
pluginCatalogRuntime
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-RKA22BQP.js";
|
|
16
|
+
import "../chunk-X3PBQ4BK.js";
|
|
17
17
|
import "../chunk-CEMMLV5L.js";
|
|
18
18
|
import "../chunk-N7TMSOZH.js";
|
|
19
19
|
import "../chunk-DWPN6SCH.js";
|
|
20
20
|
import "../chunk-TXKUKMVO.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-HUQOXMDG.js";
|
|
22
22
|
import "../chunk-PEQXYSSE.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-C4NY6L7S.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/snapshot-create.ts
|
|
26
26
|
var DEFAULT_RUNTIME = "node22";
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
} from "../chunk-Y2CM7HXH.js";
|
|
9
9
|
import {
|
|
10
10
|
createJuniorSqlExecutor
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-FPQPYJEG.js";
|
|
12
12
|
import "../chunk-VFUK3X5B.js";
|
|
13
13
|
import {
|
|
14
14
|
getChatConfig
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-LMYRF6HX.js";
|
|
16
16
|
import "../chunk-D4YV5TDV.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-KBPWC7NU.js";
|
|
18
18
|
import {
|
|
19
19
|
createPluginCatalogRuntime
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-X3PBQ4BK.js";
|
|
21
21
|
import "../chunk-CEMMLV5L.js";
|
|
22
22
|
import "../chunk-N7TMSOZH.js";
|
|
23
23
|
import "../chunk-DWPN6SCH.js";
|
|
24
24
|
import "../chunk-TXKUKMVO.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-HUQOXMDG.js";
|
|
26
26
|
import "../chunk-PEQXYSSE.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-C4NY6L7S.js";
|
|
28
28
|
|
|
29
29
|
// src/chat/conversations/sql/migrations.ts
|
|
30
30
|
import { basename, dirname, join, resolve } from "path";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { EventTask } from "@/chat/event-tasks/types";
|
|
2
|
+
/** Terminal lifecycle status for one retained event task row. */
|
|
3
|
+
export type EventTaskStatus = "active" | "deleted";
|
|
2
4
|
export declare const juniorEventTasks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3
5
|
name: "junior_event_tasks";
|
|
4
6
|
schema: undefined;
|
|
@@ -88,6 +90,25 @@ export declare const juniorEventTasks: import("drizzle-orm/pg-core").PgTableWith
|
|
|
88
90
|
identity: undefined;
|
|
89
91
|
generated: undefined;
|
|
90
92
|
}, {}, {}>;
|
|
93
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
94
|
+
name: "status";
|
|
95
|
+
tableName: "junior_event_tasks";
|
|
96
|
+
dataType: "string";
|
|
97
|
+
columnType: "PgText";
|
|
98
|
+
data: EventTaskStatus;
|
|
99
|
+
driverParam: string;
|
|
100
|
+
notNull: true;
|
|
101
|
+
hasDefault: true;
|
|
102
|
+
isPrimaryKey: false;
|
|
103
|
+
isAutoincrement: false;
|
|
104
|
+
hasRuntimeDefault: false;
|
|
105
|
+
enumValues: [string, ...string[]];
|
|
106
|
+
baseColumn: never;
|
|
107
|
+
identity: undefined;
|
|
108
|
+
generated: undefined;
|
|
109
|
+
}, {}, {
|
|
110
|
+
$type: EventTaskStatus;
|
|
111
|
+
}>;
|
|
91
112
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
92
113
|
name: "title";
|
|
93
114
|
tableName: "junior_event_tasks";
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -3069,6 +3069,25 @@ export declare const juniorSqlSchema: {
|
|
|
3069
3069
|
identity: undefined;
|
|
3070
3070
|
generated: undefined;
|
|
3071
3071
|
}, {}, {}>;
|
|
3072
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
3073
|
+
name: "status";
|
|
3074
|
+
tableName: "junior_event_tasks";
|
|
3075
|
+
dataType: "string";
|
|
3076
|
+
columnType: "PgText";
|
|
3077
|
+
data: import("./schema/event-tasks").EventTaskStatus;
|
|
3078
|
+
driverParam: string;
|
|
3079
|
+
notNull: true;
|
|
3080
|
+
hasDefault: true;
|
|
3081
|
+
isPrimaryKey: false;
|
|
3082
|
+
isAutoincrement: false;
|
|
3083
|
+
hasRuntimeDefault: false;
|
|
3084
|
+
enumValues: [string, ...string[]];
|
|
3085
|
+
baseColumn: never;
|
|
3086
|
+
identity: undefined;
|
|
3087
|
+
generated: undefined;
|
|
3088
|
+
}, {}, {
|
|
3089
|
+
$type: import("./schema/event-tasks").EventTaskStatus;
|
|
3090
|
+
}>;
|
|
3072
3091
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
3073
3092
|
name: "title";
|
|
3074
3093
|
tableName: "junior_event_tasks";
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
getConversationStore,
|
|
6
6
|
getDb,
|
|
7
7
|
getSqlExecutor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-KQ3GZGBK.js";
|
|
9
|
+
import "./chunk-FPQPYJEG.js";
|
|
10
10
|
import "./chunk-GFBR4S3Q.js";
|
|
11
11
|
import "./chunk-VFUK3X5B.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LMYRF6HX.js";
|
|
13
13
|
import "./chunk-D4YV5TDV.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-KBPWC7NU.js";
|
|
15
15
|
import "./chunk-N7TMSOZH.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-HUQOXMDG.js";
|
|
17
17
|
import "./chunk-PEQXYSSE.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-C4NY6L7S.js";
|
|
19
19
|
export {
|
|
20
20
|
closeDb,
|
|
21
21
|
getConversationEventStore,
|
package/dist/instrumentation.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UIE3R5XU.js";
|
|
4
4
|
import {
|
|
5
5
|
getCurrentConversationPrivacy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KBPWC7NU.js";
|
|
7
7
|
import {
|
|
8
8
|
getDeploymentServiceVersion,
|
|
9
9
|
getDeploymentTelemetryAttributes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HUQOXMDG.js";
|
|
11
11
|
import {
|
|
12
12
|
getClient,
|
|
13
13
|
getGlobalScope,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
vercelAIIntegration,
|
|
16
16
|
withStreamedSpan
|
|
17
17
|
} from "./chunk-PEQXYSSE.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-C4NY6L7S.js";
|
|
19
19
|
|
|
20
20
|
// src/chat/sentry-payload-filter.ts
|
|
21
21
|
var PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
package/dist/nitro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PLUGIN_TASK_QUEUE_TOPIC
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6GGDBXXP.js";
|
|
4
4
|
import {
|
|
5
5
|
pluginCatalogConfigFromPluginSet,
|
|
6
6
|
pluginRuntimeRegistrationsFromPluginSet
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC
|
|
10
10
|
} from "./chunk-X6GDDWQH.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-I4RH3KLJ.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveConversationWorkQueueTopic
|
|
14
14
|
} from "./chunk-DKIJ2RP5.js";
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
loadPluginSetFromModule,
|
|
19
19
|
resolvePluginModule
|
|
20
20
|
} from "./chunk-Y2CM7HXH.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-LMYRF6HX.js";
|
|
22
22
|
import "./chunk-D4YV5TDV.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KBPWC7NU.js";
|
|
24
24
|
import {
|
|
25
25
|
discoverInstalledPluginPackageContent
|
|
26
26
|
} from "./chunk-DWPN6SCH.js";
|
|
@@ -36,9 +36,9 @@ import {
|
|
|
36
36
|
JUNIOR_RETENTION_CRON_SCHEDULE,
|
|
37
37
|
JUNIOR_RETENTION_ROUTE,
|
|
38
38
|
JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HUQOXMDG.js";
|
|
40
40
|
import "./chunk-PEQXYSSE.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-C4NY6L7S.js";
|
|
42
42
|
|
|
43
43
|
// src/nitro.ts
|
|
44
44
|
import path2 from "path";
|