@letta-ai/letta-code 0.34.46 → 0.34.48
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/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/mcp-oauth.js +2 -2
- package/dist/mcp-oauth.js.map +1 -1
- package/dist/types/image-resize-public.d.ts +3 -0
- package/dist/types/image-resize-public.d.ts.map +1 -0
- package/dist/types/utils/image-resize.d.ts.map +1 -1
- package/dist/types/utils/image-resize.shared.d.ts +2 -0
- package/dist/types/utils/image-resize.shared.d.ts.map +1 -1
- package/image-resize-worker.js +8 -5
- package/image-resize.js +358 -0
- package/image-resize.js.map +13 -0
- package/letta.js +786 -933
- package/npm-shrinkwrap.json +2 -2
- package/package.json +11 -1
- package/scripts/smoke-image-resize-export.mjs +67 -0
package/letta.js
CHANGED
|
@@ -6077,7 +6077,7 @@ var package_default;
|
|
|
6077
6077
|
var init_package = __esm(() => {
|
|
6078
6078
|
package_default = {
|
|
6079
6079
|
name: "@letta-ai/letta-code",
|
|
6080
|
-
version: "0.34.
|
|
6080
|
+
version: "0.34.48",
|
|
6081
6081
|
lettaStartupLogProtocol: 1,
|
|
6082
6082
|
lettaConfigDirProtocol: 1,
|
|
6083
6083
|
description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
@@ -6091,6 +6091,8 @@ var init_package = __esm(() => {
|
|
|
6091
6091
|
"README.md",
|
|
6092
6092
|
"letta.js",
|
|
6093
6093
|
"image-resize-worker.js",
|
|
6094
|
+
"image-resize.js",
|
|
6095
|
+
"image-resize.js.map",
|
|
6094
6096
|
"cursor-worker.js",
|
|
6095
6097
|
"npm-shrinkwrap.json",
|
|
6096
6098
|
"assets/tutor-profile.png",
|
|
@@ -6213,6 +6215,11 @@ var init_package = __esm(() => {
|
|
|
6213
6215
|
browser: "./dist/channels-telegram.js",
|
|
6214
6216
|
import: "./dist/channels-telegram.js",
|
|
6215
6217
|
default: "./dist/channels-telegram.js"
|
|
6218
|
+
},
|
|
6219
|
+
"./image-resize": {
|
|
6220
|
+
types: "./dist/types/image-resize-public.d.ts",
|
|
6221
|
+
import: "./image-resize.js",
|
|
6222
|
+
default: "./image-resize.js"
|
|
6216
6223
|
}
|
|
6217
6224
|
},
|
|
6218
6225
|
repository: {
|
|
@@ -6347,6 +6354,9 @@ var init_package = __esm(() => {
|
|
|
6347
6354
|
"channels/telegram": [
|
|
6348
6355
|
"./dist/types/channels-telegram.d.ts"
|
|
6349
6356
|
],
|
|
6357
|
+
"image-resize": [
|
|
6358
|
+
"./dist/types/image-resize-public.d.ts"
|
|
6359
|
+
],
|
|
6350
6360
|
protocol: [
|
|
6351
6361
|
"./dist/types/types/protocol.d.ts"
|
|
6352
6362
|
]
|
|
@@ -157983,6 +157993,9 @@ var init_build5 = __esm(async () => {
|
|
|
157983
157993
|
});
|
|
157984
157994
|
|
|
157985
157995
|
// src/utils/image-resize.shared.ts
|
|
157996
|
+
function fitsImageByteLimit(buffer) {
|
|
157997
|
+
return Math.ceil(buffer.length / 3) * 4 <= MAX_IMAGE_BYTES;
|
|
157998
|
+
}
|
|
157986
157999
|
function isHeicMediaType(mediaType) {
|
|
157987
158000
|
const normalized = mediaType?.trim().toLowerCase();
|
|
157988
158001
|
return normalized === "image/heic" || normalized === "image/heif";
|
|
@@ -158069,7 +158082,7 @@ async function buildVerifiedResizeResult(buffer, mediaType, resized, context3) {
|
|
|
158069
158082
|
return buildResizeResult(buffer, canonicalizeOutputMediaType(format5, mediaType), width, height, resized);
|
|
158070
158083
|
}
|
|
158071
158084
|
async function compressToFitByteLimit(buffer, currentWidth, currentHeight) {
|
|
158072
|
-
if (buffer
|
|
158085
|
+
if (fitsImageByteLimit(buffer)) {
|
|
158073
158086
|
return null;
|
|
158074
158087
|
}
|
|
158075
158088
|
const tempInput = join26(tmpdir4(), `compress-input-${Date.now()}-${Math.random().toString(36).slice(2)}.tmp`);
|
|
@@ -158083,7 +158096,7 @@ async function compressToFitByteLimit(buffer, currentWidth, currentHeight) {
|
|
|
158083
158096
|
stdio: "ignore"
|
|
158084
158097
|
});
|
|
158085
158098
|
const compressed = readFileSync12(tempOutput);
|
|
158086
|
-
if (compressed
|
|
158099
|
+
if (fitsImageByteLimit(compressed)) {
|
|
158087
158100
|
return buildVerifiedResizeResult(compressed, "image/jpeg", true, "compressed image output");
|
|
158088
158101
|
}
|
|
158089
158102
|
} finally {
|
|
@@ -158102,7 +158115,7 @@ async function compressToFitByteLimit(buffer, currentWidth, currentHeight) {
|
|
|
158102
158115
|
stdio: "ignore"
|
|
158103
158116
|
});
|
|
158104
158117
|
const reduced = readFileSync12(tempOutput);
|
|
158105
|
-
if (reduced
|
|
158118
|
+
if (fitsImageByteLimit(reduced)) {
|
|
158106
158119
|
return buildVerifiedResizeResult(reduced, "image/jpeg", true, "dimension-reduced image output");
|
|
158107
158120
|
}
|
|
158108
158121
|
} finally {
|
|
@@ -158111,7 +158124,7 @@ async function compressToFitByteLimit(buffer, currentWidth, currentHeight) {
|
|
|
158111
158124
|
} catch {}
|
|
158112
158125
|
}
|
|
158113
158126
|
}
|
|
158114
|
-
throw new Error(`Image too large: ${(buffer.length / 1024 / 1024).toFixed(1)}MB exceeds 5MB limit even after compression`);
|
|
158127
|
+
throw new Error(`Image too large: ${(buffer.length / 1024 / 1024).toFixed(1)}MB exceeds the 5MB base64 image limit even after compression`);
|
|
158115
158128
|
} finally {
|
|
158116
158129
|
unlinkSync4(tempInput);
|
|
158117
158130
|
}
|
|
@@ -158285,7 +158298,8 @@ function resizeWithSharpWorker(buffer, inputMediaType) {
|
|
|
158285
158298
|
});
|
|
158286
158299
|
}
|
|
158287
158300
|
async function resizeWithConfiguredBackend(buffer, inputMediaType) {
|
|
158288
|
-
if (
|
|
158301
|
+
if (useMagick) {
|
|
158302
|
+
const { resizeImageIfNeeded: magickResizeImageIfNeeded } = await Promise.resolve().then(() => (init_image_resize_magick(), exports_image_resize_magick));
|
|
158289
158303
|
return await magickResizeImageIfNeeded(buffer, inputMediaType);
|
|
158290
158304
|
}
|
|
158291
158305
|
return await resizeWithSharpWorker(buffer, inputMediaType);
|
|
@@ -158300,15 +158314,14 @@ async function resizeImageIfNeeded2(buffer, inputMediaType) {
|
|
|
158300
158314
|
}
|
|
158301
158315
|
return await resizeWithConfiguredBackend(buffer, inputMediaType);
|
|
158302
158316
|
}
|
|
158303
|
-
var useMagick = false,
|
|
158304
|
-
var init_image_resize = __esm(
|
|
158317
|
+
var useMagick = false, ImageWorkerMissingError;
|
|
158318
|
+
var init_image_resize = __esm(() => {
|
|
158305
158319
|
init_image_resize_shared();
|
|
158306
158320
|
init_image_resize_shared();
|
|
158307
|
-
magickResizeImageIfNeeded = useMagick ? (await Promise.resolve().then(() => (init_image_resize_magick(), exports_image_resize_magick))).resizeImageIfNeeded : null;
|
|
158308
158321
|
ImageWorkerMissingError = class ImageWorkerMissingError extends Error {
|
|
158309
158322
|
workerPath;
|
|
158310
158323
|
constructor(workerPath) {
|
|
158311
|
-
super(`the image processing worker is missing from this installation (expected at ${workerPath}). Your Letta Code installation appears to be incomplete. Reinstall it (e.g. npm install -g @letta-ai/letta-code@latest) and try again
|
|
158324
|
+
super(`the image processing worker is missing from this installation (expected at ${workerPath}). ` + "Your Letta Code installation appears to be incomplete. " + "Reinstall it (e.g. npm install -g @letta-ai/letta-code@latest) and try again.");
|
|
158312
158325
|
this.name = "ImageWorkerMissingError";
|
|
158313
158326
|
this.workerPath = workerPath;
|
|
158314
158327
|
}
|
|
@@ -158630,10 +158643,10 @@ async function tryImportClipboardImageMac() {
|
|
|
158630
158643
|
}
|
|
158631
158644
|
}
|
|
158632
158645
|
var IMAGE_EXTS, UTI_TO_MEDIA_TYPE;
|
|
158633
|
-
var init_clipboard = __esm(
|
|
158646
|
+
var init_clipboard = __esm(() => {
|
|
158634
158647
|
init_error_reporting();
|
|
158648
|
+
init_image_resize();
|
|
158635
158649
|
init_paste_registry();
|
|
158636
|
-
await init_image_resize();
|
|
158637
158650
|
IMAGE_EXTS = new Set([
|
|
158638
158651
|
".png",
|
|
158639
158652
|
".jpg",
|
|
@@ -159083,11 +159096,11 @@ function PasteAwareTextInput({
|
|
|
159083
159096
|
}
|
|
159084
159097
|
var import_react25, jsx_dev_runtime6, OPTION_LEFT_PATTERN, OPTION_RIGHT_PATTERN;
|
|
159085
159098
|
var init_PasteAwareTextInput = __esm(async () => {
|
|
159099
|
+
init_clipboard();
|
|
159086
159100
|
init_paste_registry();
|
|
159087
159101
|
await __promiseAll([
|
|
159088
159102
|
init_build4(),
|
|
159089
|
-
init_build5()
|
|
159090
|
-
init_clipboard()
|
|
159103
|
+
init_build5()
|
|
159091
159104
|
]);
|
|
159092
159105
|
import_react25 = __toESM(require_react(), 1);
|
|
159093
159106
|
jsx_dev_runtime6 = __toESM(require_jsx_dev_runtime(), 1);
|
|
@@ -212080,7 +212093,7 @@ var init_mcp_client = __esm(() => {
|
|
|
212080
212093
|
init_streamableHttp();
|
|
212081
212094
|
DEFAULT_CLIENT_INFO = {
|
|
212082
212095
|
name: "letta-code",
|
|
212083
|
-
version: "0.34.
|
|
212096
|
+
version: "0.34.48"
|
|
212084
212097
|
};
|
|
212085
212098
|
});
|
|
212086
212099
|
|
|
@@ -217883,9 +217896,9 @@ function clearExpectedWorktreePath(runtime) {
|
|
|
217883
217896
|
runtime.expectedWorktreeExpiresAt = null;
|
|
217884
217897
|
}
|
|
217885
217898
|
var EXPECTED_WORKTREE_TTL_MS = 1e4, ENV_ASSIGNMENT_PATTERN, GIT_OPTIONS_WITH_VALUE, WORKTREE_ADD_OPTIONS_WITH_VALUE, ENV_OPTIONS_WITH_VALUE;
|
|
217886
|
-
var init_worktree_ownership = __esm(
|
|
217899
|
+
var init_worktree_ownership = __esm(() => {
|
|
217887
217900
|
init_runtime_context();
|
|
217888
|
-
|
|
217901
|
+
init_runtime6();
|
|
217889
217902
|
ENV_ASSIGNMENT_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*=/;
|
|
217890
217903
|
GIT_OPTIONS_WITH_VALUE = new Set([
|
|
217891
217904
|
"-C",
|
|
@@ -220176,7 +220189,7 @@ process.stdin.on("data", (data) => child.write(data));
|
|
|
220176
220189
|
process.on("SIGTERM", () => child.kill("SIGTERM"));
|
|
220177
220190
|
process.on("SIGINT", () => child.kill("SIGINT"));
|
|
220178
220191
|
`, FORCE_KILL_GRACE_MS = 2000;
|
|
220179
|
-
var init_shell_runner = __esm(
|
|
220192
|
+
var init_shell_runner = __esm(() => {
|
|
220180
220193
|
init_client4();
|
|
220181
220194
|
init_mcp_originator_resolver();
|
|
220182
220195
|
init_mcp_subprocess_broker();
|
|
@@ -220185,8 +220198,8 @@ var init_shell_runner = __esm(async () => {
|
|
|
220185
220198
|
init_runtime_context();
|
|
220186
220199
|
init_runtime_execution_settings();
|
|
220187
220200
|
init_secret_substitution();
|
|
220201
|
+
init_worktree_ownership();
|
|
220188
220202
|
init_github_pull_request_tracker();
|
|
220189
|
-
await init_worktree_ownership();
|
|
220190
220203
|
ShellExecutionError = class ShellExecutionError extends Error {
|
|
220191
220204
|
code;
|
|
220192
220205
|
executable;
|
|
@@ -222323,24 +222336,22 @@ Output file: ${outputFile}`
|
|
|
222323
222336
|
};
|
|
222324
222337
|
}
|
|
222325
222338
|
var cachedWorkingLauncher = null, DEFAULT_FOREGROUND_YIELD_MS = 1e4, shellProcessStarter, NOTIFICATION_TAIL_LINES = 50;
|
|
222326
|
-
var init_bash = __esm(
|
|
222339
|
+
var init_bash = __esm(() => {
|
|
222327
222340
|
init_constants2();
|
|
222328
222341
|
init_runtime_context();
|
|
222329
222342
|
init_secret_substitution();
|
|
222330
222343
|
init_message_queue_bridge();
|
|
222331
222344
|
init_task_notifications();
|
|
222345
|
+
init_worktree_ownership();
|
|
222332
222346
|
init_foreground_sleep();
|
|
222333
222347
|
init_process_manager();
|
|
222334
222348
|
init_self_matching_pgrep();
|
|
222335
222349
|
init_shell_env();
|
|
222336
222350
|
init_shell_launchers();
|
|
222351
|
+
init_shell_runner();
|
|
222337
222352
|
init_shell_sandbox();
|
|
222338
222353
|
init_truncation();
|
|
222339
222354
|
init_windows_command_safety();
|
|
222340
|
-
await __promiseAll([
|
|
222341
|
-
init_worktree_ownership(),
|
|
222342
|
-
init_shell_runner()
|
|
222343
|
-
]);
|
|
222344
222355
|
shellProcessStarter = startShellProcess;
|
|
222345
222356
|
});
|
|
222346
222357
|
|
|
@@ -222909,12 +222920,12 @@ async function executeAutoAllowedTools(autoAllowed, onChunk, options) {
|
|
|
222909
222920
|
}));
|
|
222910
222921
|
}
|
|
222911
222922
|
var ABORT_GRACE_MS = 500, PARALLEL_SAFE_TOOLS, FILE_PATH_TOOLS, GLOBAL_LOCK_TOOLS;
|
|
222912
|
-
var init_approval_execution = __esm(
|
|
222923
|
+
var init_approval_execution = __esm(() => {
|
|
222913
222924
|
init_error();
|
|
222914
222925
|
init_constants2();
|
|
222915
222926
|
init_disk_space();
|
|
222916
222927
|
init_runtime_context();
|
|
222917
|
-
|
|
222928
|
+
init_manager2();
|
|
222918
222929
|
PARALLEL_SAFE_TOOLS = new Set([
|
|
222919
222930
|
"Read",
|
|
222920
222931
|
"ViewImage",
|
|
@@ -230856,8 +230867,8 @@ function assertSupportedBase64ImageContent(content) {
|
|
|
230856
230867
|
}
|
|
230857
230868
|
}
|
|
230858
230869
|
var SUPPORTED_BASE64_IMAGE_MEDIA_TYPES;
|
|
230859
|
-
var init_message_image_normalization = __esm(
|
|
230860
|
-
|
|
230870
|
+
var init_message_image_normalization = __esm(() => {
|
|
230871
|
+
init_image_resize();
|
|
230861
230872
|
SUPPORTED_BASE64_IMAGE_MEDIA_TYPES = new Set([
|
|
230862
230873
|
"image/jpeg",
|
|
230863
230874
|
"image/png",
|
|
@@ -232326,26 +232337,24 @@ function reportAttachedRepositorySkillErrors(errors6) {
|
|
|
232326
232337
|
}
|
|
232327
232338
|
}
|
|
232328
232339
|
var streamRequestStartTimes, streamToolContextIds, RESPONSE_STATE_HEADER = "X-Letta-Response-State", RESPONSE_STATE_CACHE_SCOPE = "approval_boundary", MCP_ORIGINATOR_TOKEN_HEADER2 = "x-letta-mcp-originator-token", MCP_ORIGINATOR_ISOLATION_HEADER2 = "x-letta-mcp-originator-isolation", MCP_ORIGINATOR_SUPER_RUN_HEADER = "x-letta-mcp-originator-super-run-id", CLOUD_API_SHUTDOWN_MAX_RETRIES = 3, CLOUD_API_SHUTDOWN_DEFAULT_RETRY_DELAY_MS = 1000, responseStateIdsByScope, sentClientSkillsByBackend, streamRequestContexts;
|
|
232329
|
-
var init_message = __esm(
|
|
232340
|
+
var init_message = __esm(() => {
|
|
232330
232341
|
init_error();
|
|
232331
232342
|
init_mcp_originator_tokens();
|
|
232332
232343
|
init_backend2();
|
|
232333
232344
|
init_disk_space();
|
|
232334
232345
|
init_runtime_context();
|
|
232335
232346
|
init_error_reporting();
|
|
232347
|
+
init_manager2();
|
|
232336
232348
|
init_secret_substitution();
|
|
232337
232349
|
init_debug();
|
|
232350
|
+
init_image_resize();
|
|
232351
|
+
init_message_image_normalization();
|
|
232338
232352
|
init_stream_abort_relay();
|
|
232339
232353
|
init_timing();
|
|
232340
232354
|
init_approval_result_normalization();
|
|
232341
232355
|
init_client_skills();
|
|
232342
232356
|
init_context();
|
|
232343
232357
|
init_turn_recovery_policy();
|
|
232344
|
-
await __promiseAll([
|
|
232345
|
-
init_manager2(),
|
|
232346
|
-
init_image_resize(),
|
|
232347
|
-
init_message_image_normalization()
|
|
232348
|
-
]);
|
|
232349
232358
|
streamRequestStartTimes = new WeakMap;
|
|
232350
232359
|
streamToolContextIds = new WeakMap;
|
|
232351
232360
|
responseStateIdsByScope = new Map;
|
|
@@ -233215,7 +233224,7 @@ async function executeModTool(toolName2, tool, args, executionScope, options) {
|
|
|
233215
233224
|
backend: backend3,
|
|
233216
233225
|
conversationId: executionScope.conversationId,
|
|
233217
233226
|
sendMessageStream: async (...sendArgs) => {
|
|
233218
|
-
const { sendMessageStreamWithBackend: sendMessageStreamWithBackend2 } = await
|
|
233227
|
+
const { sendMessageStreamWithBackend: sendMessageStreamWithBackend2 } = await Promise.resolve().then(() => (init_message(), exports_message));
|
|
233219
233228
|
const [backend4, conversationId, messages, opts, requestOptions] = sendArgs;
|
|
233220
233229
|
const agentId = opts?.agentId ?? executionScope.agentId ?? undefined;
|
|
233221
233230
|
return sendMessageStreamWithBackend2(backend4, conversationId, messages, { ...opts, agentId }, requestOptions);
|
|
@@ -233675,8 +233684,9 @@ function clearTools() {
|
|
|
233675
233684
|
toolRegistry.clear();
|
|
233676
233685
|
}
|
|
233677
233686
|
var TOOL_NAMES, STREAMING_SHELL_TOOLS, SCOPED_BACKGROUND_TOOLS, FILE_MUTATING_TOOLS, ARTIFACT_TOOL_NAMES, REGISTRY_KEY, SWITCH_LOCK_KEY, EXECUTION_CONTEXTS_KEY, toolRegistry, toolExecutionContextCounter = 0, EXTERNAL_TOOLS_KEY, EXTERNAL_EXECUTOR_KEY, MOD_SECRET_NAME_PATTERN;
|
|
233678
|
-
var init_manager2 = __esm(
|
|
233687
|
+
var init_manager2 = __esm(() => {
|
|
233679
233688
|
init_strip_ansi();
|
|
233689
|
+
init_approval_execution();
|
|
233680
233690
|
init_context();
|
|
233681
233691
|
init_model();
|
|
233682
233692
|
init_subagents2();
|
|
@@ -233708,13 +233718,10 @@ var init_manager2 = __esm(async () => {
|
|
|
233708
233718
|
init_secret_substitution();
|
|
233709
233719
|
init_subagent_tool_policy();
|
|
233710
233720
|
init_task_tool_assets();
|
|
233721
|
+
init_tool_definitions();
|
|
233711
233722
|
init_tool_name_mapping();
|
|
233712
233723
|
init_memory5();
|
|
233713
233724
|
init_toolset_catalog();
|
|
233714
|
-
await __promiseAll([
|
|
233715
|
-
init_approval_execution(),
|
|
233716
|
-
init_tool_definitions()
|
|
233717
|
-
]);
|
|
233718
233725
|
TOOL_NAMES = Object.keys(TOOL_DEFINITIONS);
|
|
233719
233726
|
STREAMING_SHELL_TOOLS = new Set([
|
|
233720
233727
|
"Bash",
|
|
@@ -235096,7 +235103,7 @@ async function resolveScriptParentAgentId(args) {
|
|
|
235096
235103
|
}
|
|
235097
235104
|
async function createScriptToolScope(parentAgentId, signal) {
|
|
235098
235105
|
const toolContextId = getRuntimeContext()?.toolContextId ?? null;
|
|
235099
|
-
const manager = await
|
|
235106
|
+
const manager = await Promise.resolve().then(() => (init_manager2(), exports_manager));
|
|
235100
235107
|
const permissionModeState = toolContextId ? manager.getExecutionContextPermissionModeState(toolContextId) : undefined;
|
|
235101
235108
|
const permissionCwd = getCurrentWorkingDirectory();
|
|
235102
235109
|
const context3 = toolContextId ? manager.getExecutionContextById(toolContextId) : undefined;
|
|
@@ -237582,8 +237589,8 @@ function createTurnCorrelation(runtime, message, batchId) {
|
|
|
237582
237589
|
};
|
|
237583
237590
|
}
|
|
237584
237591
|
var MAX_CLIENT_MESSAGE_IDS_PER_RUN = 32, MAX_RECENT_RUN_CORRELATIONS = 32, MAX_RECENT_CONVERSATIONS = 256;
|
|
237585
|
-
var init_turn_correlation = __esm(
|
|
237586
|
-
|
|
237592
|
+
var init_turn_correlation = __esm(() => {
|
|
237593
|
+
init_runtime6();
|
|
237587
237594
|
});
|
|
237588
237595
|
|
|
237589
237596
|
// src/websocket/listener/protocol-outbound.ts
|
|
@@ -238126,7 +238133,7 @@ function emitStreamDelta(socket, runtime, delta2, scope, subagentId, routing = T
|
|
|
238126
238133
|
return emitProtocolV2Message(socket, runtime, message, scope, routing);
|
|
238127
238134
|
}
|
|
238128
238135
|
var FROZEN_SUPPORTED_COMMANDS;
|
|
238129
|
-
var init_protocol_outbound = __esm(
|
|
238136
|
+
var init_protocol_outbound = __esm(() => {
|
|
238130
238137
|
init_memory_filesystem2();
|
|
238131
238138
|
init_subagent_state();
|
|
238132
238139
|
init_memory_reminder();
|
|
@@ -238137,6 +238144,7 @@ var init_protocol_outbound = __esm(async () => {
|
|
|
238137
238144
|
init_error_reporting();
|
|
238138
238145
|
init_debug();
|
|
238139
238146
|
init_background_process_snapshot();
|
|
238147
|
+
init_connection();
|
|
238140
238148
|
init_constants3();
|
|
238141
238149
|
init_cwd();
|
|
238142
238150
|
init_device_git_context();
|
|
@@ -238146,14 +238154,11 @@ var init_protocol_outbound = __esm(async () => {
|
|
|
238146
238154
|
init_outbound_wire();
|
|
238147
238155
|
init_permission_mode();
|
|
238148
238156
|
init_protocol_outbound_routing();
|
|
238157
|
+
init_runtime6();
|
|
238149
238158
|
init_stream_observers();
|
|
238150
238159
|
init_subagent_state_cache();
|
|
238151
238160
|
init_transport2();
|
|
238152
|
-
|
|
238153
|
-
init_connection(),
|
|
238154
|
-
init_runtime6(),
|
|
238155
|
-
init_turn_correlation()
|
|
238156
|
-
]);
|
|
238161
|
+
init_turn_correlation();
|
|
238157
238162
|
FROZEN_SUPPORTED_COMMANDS = [...SUPPORTED_REMOTE_COMMANDS];
|
|
238158
238163
|
});
|
|
238159
238164
|
|
|
@@ -238174,7 +238179,7 @@ async function updateToolExecutionContextCwd(executionContextId, workingDirector
|
|
|
238174
238179
|
if (!executionContextId) {
|
|
238175
238180
|
return;
|
|
238176
238181
|
}
|
|
238177
|
-
const { updateToolExecutionContextWorkingDirectory: updateToolExecutionContextWorkingDirectory2 } = await
|
|
238182
|
+
const { updateToolExecutionContextWorkingDirectory: updateToolExecutionContextWorkingDirectory2 } = await Promise.resolve().then(() => (init_manager2(), exports_manager));
|
|
238178
238183
|
updateToolExecutionContextWorkingDirectory2(executionContextId, workingDirectory);
|
|
238179
238184
|
}
|
|
238180
238185
|
async function switchConversationWorkingDirectory(params) {
|
|
@@ -238208,16 +238213,14 @@ async function switchConversationWorkingDirectory(params) {
|
|
|
238208
238213
|
emitDeviceStatusUpdate(statusTransport, statusRuntime, statusScope);
|
|
238209
238214
|
}
|
|
238210
238215
|
}
|
|
238211
|
-
var init_cwd_change = __esm(
|
|
238216
|
+
var init_cwd_change = __esm(() => {
|
|
238212
238217
|
init_sandbox_policy();
|
|
238213
238218
|
init_runtime_context();
|
|
238214
238219
|
init_settings_manager();
|
|
238220
|
+
init_connection();
|
|
238215
238221
|
init_cwd();
|
|
238216
|
-
|
|
238217
|
-
|
|
238218
|
-
init_protocol_outbound(),
|
|
238219
|
-
init_runtime6()
|
|
238220
|
-
]);
|
|
238222
|
+
init_protocol_outbound();
|
|
238223
|
+
init_runtime6();
|
|
238221
238224
|
});
|
|
238222
238225
|
|
|
238223
238226
|
// src/websocket/listener/worktree-watcher.ts
|
|
@@ -238346,14 +238349,12 @@ async function safeReaddir(dir) {
|
|
|
238346
238349
|
}
|
|
238347
238350
|
}
|
|
238348
238351
|
var WORKTREES_DIR = ".letta/worktrees", DEBOUNCE_MS = 500;
|
|
238349
|
-
var init_worktree_watcher = __esm(
|
|
238352
|
+
var init_worktree_watcher = __esm(() => {
|
|
238350
238353
|
init_debug();
|
|
238351
238354
|
init_cwd();
|
|
238352
|
-
|
|
238353
|
-
|
|
238354
|
-
|
|
238355
|
-
init_worktree_ownership()
|
|
238356
|
-
]);
|
|
238355
|
+
init_cwd_change();
|
|
238356
|
+
init_runtime6();
|
|
238357
|
+
init_worktree_ownership();
|
|
238357
238358
|
});
|
|
238358
238359
|
|
|
238359
238360
|
// src/tools/impl/runtime-working-directory.ts
|
|
@@ -238377,12 +238378,10 @@ async function switchRuntimeWorkingDirectory(params) {
|
|
|
238377
238378
|
}
|
|
238378
238379
|
await updateToolExecutionContextCwd(params.runtimeContext?.toolContextId ?? undefined, params.workingDirectory);
|
|
238379
238380
|
}
|
|
238380
|
-
var init_runtime_working_directory = __esm(
|
|
238381
|
-
|
|
238382
|
-
|
|
238383
|
-
|
|
238384
|
-
init_worktree_watcher()
|
|
238385
|
-
]);
|
|
238381
|
+
var init_runtime_working_directory = __esm(() => {
|
|
238382
|
+
init_cwd_change();
|
|
238383
|
+
init_runtime6();
|
|
238384
|
+
init_worktree_watcher();
|
|
238386
238385
|
});
|
|
238387
238386
|
|
|
238388
238387
|
// src/tools/impl/worktree-git.ts
|
|
@@ -238580,9 +238579,9 @@ function isPathWithin2(child, parent) {
|
|
|
238580
238579
|
return resolvedChild === resolvedParent || resolvedChild.startsWith(resolvedParent + path22.sep);
|
|
238581
238580
|
}
|
|
238582
238581
|
var DEFAULT_GIT_TIMEOUT_MS = 120000, GitCommandError, INCLUDE_IF_KEY = "includeif\\..*", FILTER_DRIVER_KEY = "filter\\.(.*)\\.(clean|smudge|process|required)", LFS_PROGRAM_KEY = "lfs\\.customtransfer\\..*\\.path|lfs\\.standalonetransferagent", WORKTREE_UNSAFE_CONFIG_PATTERN, INCLUDE_IF_KEY_PATTERN, FILTER_DRIVER_KEY_PATTERN, LFS_PROGRAM_KEY_PATTERN;
|
|
238583
|
-
var init_worktree_git = __esm(
|
|
238582
|
+
var init_worktree_git = __esm(() => {
|
|
238584
238583
|
init_shell_env();
|
|
238585
|
-
|
|
238584
|
+
init_shell_runner();
|
|
238586
238585
|
GitCommandError = class GitCommandError extends Error {
|
|
238587
238586
|
args;
|
|
238588
238587
|
result;
|
|
@@ -239157,14 +239156,12 @@ async function enter_worktree(rawArgs) {
|
|
|
239157
239156
|
}
|
|
239158
239157
|
}
|
|
239159
239158
|
var FETCH_GIT_TIMEOUT_MS = 180000, MAX_SLUG_LENGTH = 48, DEFAULT_SYMLINK_DIRECTORIES;
|
|
239160
|
-
var init_enter_worktree = __esm(
|
|
239159
|
+
var init_enter_worktree = __esm(() => {
|
|
239161
239160
|
init_runtime_context();
|
|
239162
239161
|
init_worktree_lock();
|
|
239163
239162
|
init_enter_worktree_messages();
|
|
239164
|
-
|
|
239165
|
-
|
|
239166
|
-
init_worktree_git()
|
|
239167
|
-
]);
|
|
239163
|
+
init_runtime_working_directory();
|
|
239164
|
+
init_worktree_git();
|
|
239168
239165
|
DEFAULT_SYMLINK_DIRECTORIES = ["node_modules"];
|
|
239169
239166
|
});
|
|
239170
239167
|
|
|
@@ -239685,22 +239682,20 @@ async function write_stdin(args) {
|
|
|
239685
239682
|
};
|
|
239686
239683
|
}
|
|
239687
239684
|
var DEFAULT_EXEC_YIELD_TIME_MS = 1e4, DEFAULT_WRITE_STDIN_YIELD_TIME_MS = 250, MIN_YIELD_TIME_MS = 250, MIN_EMPTY_WRITE_STDIN_YIELD_TIME_MS = 5000, MAX_YIELD_TIME_MS = 30000, MAX_EMPTY_WRITE_STDIN_YIELD_TIME_MS = 300000, DEFAULT_MAX_OUTPUT_TOKENS = 1e4, MAX_INLINE_OUTPUT_CHARS, MAX_SESSION_OUTPUT_CHARS = 1e6, EXEC_SESSION_CLEANUP_MS, INTERRUPT = "\x03", execSessions;
|
|
239688
|
-
var init_exec_command = __esm(
|
|
239685
|
+
var init_exec_command = __esm(() => {
|
|
239689
239686
|
init_usable_directory();
|
|
239690
239687
|
init_runtime_context();
|
|
239691
239688
|
init_secret_substitution();
|
|
239692
239689
|
init_message_queue_bridge();
|
|
239693
239690
|
init_task_notifications();
|
|
239691
|
+
init_worktree_ownership();
|
|
239694
239692
|
init_process_manager();
|
|
239695
239693
|
init_shell_env();
|
|
239696
239694
|
init_shell_launchers();
|
|
239695
|
+
init_shell_runner();
|
|
239697
239696
|
init_shell_sandbox();
|
|
239698
239697
|
init_truncation();
|
|
239699
239698
|
init_windows_command_safety();
|
|
239700
|
-
await __promiseAll([
|
|
239701
|
-
init_worktree_ownership(),
|
|
239702
|
-
init_shell_runner()
|
|
239703
|
-
]);
|
|
239704
239699
|
MAX_INLINE_OUTPUT_CHARS = LIMITS.BASH_OUTPUT_CHARS;
|
|
239705
239700
|
EXEC_SESSION_CLEANUP_MS = 5 * 60 * 1000;
|
|
239706
239701
|
execSessions = new Map;
|
|
@@ -239859,13 +239854,11 @@ No worktree session to exit.`, "success");
|
|
|
239859
239854
|
return textResult(`Error: ${formatGitFailure(error5)}`, "error");
|
|
239860
239855
|
}
|
|
239861
239856
|
}
|
|
239862
|
-
var init_exit_worktree = __esm(
|
|
239857
|
+
var init_exit_worktree = __esm(() => {
|
|
239863
239858
|
init_runtime_context();
|
|
239864
239859
|
init_worktree_lock();
|
|
239865
|
-
|
|
239866
|
-
|
|
239867
|
-
init_worktree_git()
|
|
239868
|
-
]);
|
|
239860
|
+
init_enter_worktree();
|
|
239861
|
+
init_worktree_git();
|
|
239869
239862
|
});
|
|
239870
239863
|
|
|
239871
239864
|
// src/tools/impl/glob.ts
|
|
@@ -242225,13 +242218,13 @@ async function wake(args, deps = {}) {
|
|
|
242225
242218
|
}
|
|
242226
242219
|
}
|
|
242227
242220
|
var import_cron_parser2, MAX_ACTIVE_WAKES = 20, MIN_RECURRING_INTERVAL_MS, MAX_NAME_LENGTH = 80, MAX_PROMPT_LENGTH = 4000;
|
|
242228
|
-
var init_wake = __esm(
|
|
242221
|
+
var init_wake = __esm(() => {
|
|
242229
242222
|
init_request();
|
|
242230
242223
|
init_schedules();
|
|
242231
242224
|
init_backend_mode();
|
|
242225
|
+
init_cron();
|
|
242232
242226
|
init_runner();
|
|
242233
242227
|
init_runtime_context();
|
|
242234
|
-
await init_cron();
|
|
242235
242228
|
import_cron_parser2 = __toESM(require_dist5(), 1);
|
|
242236
242229
|
MIN_RECURRING_INTERVAL_MS = 60 * 60 * 1000;
|
|
242237
242230
|
});
|
|
@@ -242359,9 +242352,9 @@ function detachMonitorBackupsForProcessExit() {
|
|
|
242359
242352
|
backups.clear();
|
|
242360
242353
|
}
|
|
242361
242354
|
var MIN_BACKUP_AFTER_SECONDS = 60, MAX_BACKUP_AFTER_SECONDS = 604800, MAX_WAKE_NAME_LENGTH = 80, MAX_WAKE_PROMPT_LENGTH = 4000, DEFAULT_REARM_COALESCE_MS = 30000, backups, wakeImpl, rearmCoalesceMs;
|
|
242362
|
-
var init_monitor_backup = __esm(
|
|
242355
|
+
var init_monitor_backup = __esm(() => {
|
|
242363
242356
|
init_runtime_context();
|
|
242364
|
-
|
|
242357
|
+
init_wake();
|
|
242365
242358
|
backups = new Map;
|
|
242366
242359
|
wakeImpl = wake;
|
|
242367
242360
|
rearmCoalesceMs = DEFAULT_REARM_COALESCE_MS;
|
|
@@ -242573,7 +242566,7 @@ function formatReturnValue(value) {
|
|
|
242573
242566
|
async function releaseToolContext(contextId) {
|
|
242574
242567
|
if (!contextId || !releaseRetainedToolContext(contextId))
|
|
242575
242568
|
return;
|
|
242576
|
-
const manager = await
|
|
242569
|
+
const manager = await Promise.resolve().then(() => (init_manager2(), exports_manager));
|
|
242577
242570
|
manager.releaseToolExecutionContext(contextId);
|
|
242578
242571
|
}
|
|
242579
242572
|
async function startScriptMonitor(args, hooks) {
|
|
@@ -243431,26 +243424,24 @@ function installMonitorProcessExitCleanup() {
|
|
|
243431
243424
|
process.once("exit", stopMonitorsForProcessExit);
|
|
243432
243425
|
}
|
|
243433
243426
|
var MIN_TIMEOUT_MS = 1000, DEFAULT_TIMEOUT_MS3 = 300000, MONITOR_OUTPUT_FILE_BYTES, WEBSOCKET_MAX_PAYLOAD_BYTES, WEBSOCKET_PROTOCOL_PATTERN, monitorProcessExitCleanupInstalled = false;
|
|
243434
|
-
var init_monitor = __esm(
|
|
243427
|
+
var init_monitor = __esm(() => {
|
|
243435
243428
|
init_strip_ansi();
|
|
243436
243429
|
init_runtime_context();
|
|
243437
243430
|
init_secret_substitution();
|
|
243438
243431
|
init_message_queue_bridge();
|
|
243439
243432
|
init_task_notifications();
|
|
243433
|
+
init_worktree_ownership();
|
|
243434
|
+
init_bash();
|
|
243435
|
+
init_monitor_backup();
|
|
243440
243436
|
init_monitor_event_stream();
|
|
243441
243437
|
init_monitor_script();
|
|
243442
243438
|
init_monitor_timeout();
|
|
243443
243439
|
init_process_manager();
|
|
243444
243440
|
init_shell_env();
|
|
243445
243441
|
init_shell_launchers();
|
|
243442
|
+
init_shell_runner();
|
|
243446
243443
|
init_shell_sandbox();
|
|
243447
243444
|
init_windows_command_safety();
|
|
243448
|
-
await __promiseAll([
|
|
243449
|
-
init_worktree_ownership(),
|
|
243450
|
-
init_bash(),
|
|
243451
|
-
init_monitor_backup(),
|
|
243452
|
-
init_shell_runner()
|
|
243453
|
-
]);
|
|
243454
243445
|
MONITOR_OUTPUT_FILE_BYTES = 1024 * 1024;
|
|
243455
243446
|
WEBSOCKET_MAX_PAYLOAD_BYTES = MONITOR_EVENT_BUFFER_CHARS * 2;
|
|
243456
243447
|
WEBSOCKET_PROTOCOL_PATTERN = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
@@ -243652,16 +243643,16 @@ ${SYSTEM_REMINDER_CLOSE}`
|
|
|
243652
243643
|
}
|
|
243653
243644
|
}
|
|
243654
243645
|
var IMAGE_EXTENSIONS2;
|
|
243655
|
-
var init_read = __esm(
|
|
243646
|
+
var init_read = __esm(() => {
|
|
243656
243647
|
init_constants2();
|
|
243657
243648
|
init_runtime_context();
|
|
243658
243649
|
init_error_reporting();
|
|
243659
243650
|
init_debug();
|
|
243660
243651
|
init_file_path();
|
|
243652
|
+
init_image_resize();
|
|
243661
243653
|
init_text_files();
|
|
243662
243654
|
init_overflow2();
|
|
243663
243655
|
init_truncation();
|
|
243664
|
-
await init_image_resize();
|
|
243665
243656
|
IMAGE_EXTENSIONS2 = new Set([
|
|
243666
243657
|
".png",
|
|
243667
243658
|
".jpg",
|
|
@@ -244200,9 +244191,9 @@ ${displayed.map(formatDiagnostic).join(`
|
|
|
244200
244191
|
return result3;
|
|
244201
244192
|
}
|
|
244202
244193
|
}
|
|
244203
|
-
var init_read_lsp = __esm(
|
|
244194
|
+
var init_read_lsp = __esm(() => {
|
|
244204
244195
|
init_runtime_context();
|
|
244205
|
-
|
|
244196
|
+
init_read();
|
|
244206
244197
|
});
|
|
244207
244198
|
|
|
244208
244199
|
// src/backend/api/conversation-enqueue.ts
|
|
@@ -247642,7 +247633,7 @@ class CodexAppServerClient {
|
|
|
247642
247633
|
await this.request("initialize", {
|
|
247643
247634
|
clientInfo: {
|
|
247644
247635
|
name: "letta-code",
|
|
247645
|
-
version: "0.34.
|
|
247636
|
+
version: "0.34.48"
|
|
247646
247637
|
},
|
|
247647
247638
|
capabilities: null
|
|
247648
247639
|
});
|
|
@@ -251808,7 +251799,7 @@ function resolveSubagentInheritedPrimaryRoot(options) {
|
|
|
251808
251799
|
}
|
|
251809
251800
|
return options.inheritedPrimaryRoot;
|
|
251810
251801
|
}
|
|
251811
|
-
var init_subagent_launcher = __esm(
|
|
251802
|
+
var init_subagent_launcher = __esm(() => {
|
|
251812
251803
|
init_backend2();
|
|
251813
251804
|
init_paths();
|
|
251814
251805
|
init_capabilities();
|
|
@@ -251817,7 +251808,7 @@ var init_subagent_launcher = __esm(async () => {
|
|
|
251817
251808
|
init_shell_env();
|
|
251818
251809
|
init_settings_path();
|
|
251819
251810
|
init_transcript_paths();
|
|
251820
|
-
|
|
251811
|
+
init_runtime6();
|
|
251821
251812
|
});
|
|
251822
251813
|
|
|
251823
251814
|
// src/agent/subagents/manager.ts
|
|
@@ -252248,7 +252239,7 @@ function spawnSubagent(...args) {
|
|
|
252248
252239
|
return runWithRuntimeContext({ ...getRuntimeContext(), workingDirectory: getCurrentWorkingDirectory() }, () => spawnSubagentInContext(...args));
|
|
252249
252240
|
}
|
|
252250
252241
|
var NO_BASE_TOOL_SUBAGENT_TYPES;
|
|
252251
|
-
var init_manager4 = __esm(
|
|
252242
|
+
var init_manager4 = __esm(() => {
|
|
252252
252243
|
init_context();
|
|
252253
252244
|
init_memory_filesystem2();
|
|
252254
252245
|
init_memory_format();
|
|
@@ -252273,10 +252264,10 @@ var init_manager4 = __esm(async () => {
|
|
|
252273
252264
|
init_names();
|
|
252274
252265
|
init_remote_turn_wait();
|
|
252275
252266
|
init_subagent_depth();
|
|
252267
|
+
init_subagent_launcher();
|
|
252276
252268
|
init_subagent_model();
|
|
252277
252269
|
init_subagent_process();
|
|
252278
252270
|
init_subagent_stream();
|
|
252279
|
-
await init_subagent_launcher();
|
|
252280
252271
|
NO_BASE_TOOL_SUBAGENT_TYPES = new Set(["reflection", "memory", "init"]);
|
|
252281
252272
|
});
|
|
252282
252273
|
|
|
@@ -252306,7 +252297,7 @@ async function fetchParentConversationMessages(params) {
|
|
|
252306
252297
|
}
|
|
252307
252298
|
return messages;
|
|
252308
252299
|
}
|
|
252309
|
-
function
|
|
252300
|
+
function contentText2(content) {
|
|
252310
252301
|
if (typeof content === "string")
|
|
252311
252302
|
return content;
|
|
252312
252303
|
if (!Array.isArray(content))
|
|
@@ -252332,7 +252323,7 @@ function renderToolCall(call2) {
|
|
|
252332
252323
|
}
|
|
252333
252324
|
function renderToolResult(result3) {
|
|
252334
252325
|
const raw2 = result3.tool_return ?? result3.func_response;
|
|
252335
|
-
const text2 = typeof raw2 === "string" ? raw2 :
|
|
252326
|
+
const text2 = typeof raw2 === "string" ? raw2 : contentText2(raw2) || (raw2 == null ? "" : JSON.stringify(raw2));
|
|
252336
252327
|
return {
|
|
252337
252328
|
type: "tool_result",
|
|
252338
252329
|
call_id: result3.tool_call_id ?? undefined,
|
|
@@ -252368,11 +252359,11 @@ function userEvents(text2, speaker) {
|
|
|
252368
252359
|
function renderMessage(message2) {
|
|
252369
252360
|
switch (message2.message_type) {
|
|
252370
252361
|
case "user_message": {
|
|
252371
|
-
const text2 =
|
|
252362
|
+
const text2 = contentText2(message2.content).replace(SYSTEM_REMINDER_PATTERN, "").trim();
|
|
252372
252363
|
return userEvents(text2, message2.name ?? undefined);
|
|
252373
252364
|
}
|
|
252374
252365
|
case "assistant_message": {
|
|
252375
|
-
const text2 =
|
|
252366
|
+
const text2 = contentText2(message2.content).trim();
|
|
252376
252367
|
return text2 ? [
|
|
252377
252368
|
{
|
|
252378
252369
|
type: "message",
|
|
@@ -253643,9 +253634,9 @@ function killBackgroundProcess(shell_id) {
|
|
|
253643
253634
|
return false;
|
|
253644
253635
|
}
|
|
253645
253636
|
}
|
|
253646
|
-
var init_kill_bash = __esm(
|
|
253637
|
+
var init_kill_bash = __esm(() => {
|
|
253638
|
+
init_monitor_backup();
|
|
253647
253639
|
init_process_manager();
|
|
253648
|
-
await init_monitor_backup();
|
|
253649
253640
|
});
|
|
253650
253641
|
|
|
253651
253642
|
// src/tools/impl/task-stop.ts
|
|
@@ -253721,13 +253712,13 @@ async function task_stop(args, deps = {}) {
|
|
|
253721
253712
|
}
|
|
253722
253713
|
return { killed: killBackgroundProcess(task_id) };
|
|
253723
253714
|
}
|
|
253724
|
-
var init_task_stop = __esm(
|
|
253715
|
+
var init_task_stop = __esm(() => {
|
|
253725
253716
|
init_subagent_state();
|
|
253726
253717
|
init_backend2();
|
|
253727
253718
|
init_external_coding_agent();
|
|
253719
|
+
init_kill_bash();
|
|
253728
253720
|
init_process_manager();
|
|
253729
253721
|
init_remote_external_coding_agent();
|
|
253730
|
-
await init_kill_bash();
|
|
253731
253722
|
});
|
|
253732
253723
|
|
|
253733
253724
|
// src/tools/impl/task-abort-hook.ts
|
|
@@ -253736,7 +253727,7 @@ function buildBackgroundTaskAbortHook(taskId, abortController) {
|
|
|
253736
253727
|
const remote = bgTask?.remote ?? false;
|
|
253737
253728
|
const failSafeAbort = () => !remote && abortController.abort();
|
|
253738
253729
|
const hook = () => {
|
|
253739
|
-
|
|
253730
|
+
Promise.resolve().then(() => (init_task_stop(), exports_task_stop)).then((m4) => m4.task_stop({ task_id: taskId })).then((result3) => {
|
|
253740
253731
|
if (!result3.killed)
|
|
253741
253732
|
failSafeAbort();
|
|
253742
253733
|
settleInterruptedCancel(bgTask, remote, result3.killed, hook);
|
|
@@ -254394,13 +254385,14 @@ Event log: ${taskEventsFileFor(result3.output_file)}
|
|
|
254394
254385
|
|
|
254395
254386
|
You will be notified automatically when this task completes — a <task-notification> message will be delivered with the result. No need to poll or sleep-wait; continue with your current work. To see what it is doing meanwhile, Read the output file: one line per tool call, tool result, and message, live. For exact details (full tool arguments and outputs, such as a command's error), read the event log.`;
|
|
254396
254387
|
}
|
|
254397
|
-
var init_task = __esm(
|
|
254388
|
+
var init_task = __esm(() => {
|
|
254398
254389
|
init_context();
|
|
254399
254390
|
init_memory_filesystem2();
|
|
254400
254391
|
init_subagent_state();
|
|
254401
254392
|
init_subagents2();
|
|
254402
254393
|
init_background_link();
|
|
254403
254394
|
init_fork_conversation();
|
|
254395
|
+
init_manager4();
|
|
254404
254396
|
init_backend2();
|
|
254405
254397
|
init_hooks();
|
|
254406
254398
|
init_runtime_context();
|
|
@@ -254418,7 +254410,6 @@ var init_task = __esm(async () => {
|
|
|
254418
254410
|
init_task_transcript();
|
|
254419
254411
|
init_truncation();
|
|
254420
254412
|
init_background_link();
|
|
254421
|
-
await init_manager4();
|
|
254422
254413
|
});
|
|
254423
254414
|
|
|
254424
254415
|
// src/tools/impl/external-coding-agent-task.ts
|
|
@@ -254477,13 +254468,13 @@ function trackExternalFollowupCompletion(args) {
|
|
|
254477
254468
|
}
|
|
254478
254469
|
});
|
|
254479
254470
|
}
|
|
254480
|
-
var init_external_coding_agent_task = __esm(
|
|
254471
|
+
var init_external_coding_agent_task = __esm(() => {
|
|
254481
254472
|
init_runtime_context();
|
|
254482
254473
|
init_external_coding_agent();
|
|
254483
254474
|
init_native_session_capture();
|
|
254484
254475
|
init_process_manager();
|
|
254476
|
+
init_task();
|
|
254485
254477
|
init_task_transcript();
|
|
254486
|
-
await init_task();
|
|
254487
254478
|
});
|
|
254488
254479
|
|
|
254489
254480
|
// src/tools/impl/send-agent-message.ts
|
|
@@ -254851,7 +254842,7 @@ async function send_agent_message(args, deps = {}) {
|
|
|
254851
254842
|
}
|
|
254852
254843
|
}
|
|
254853
254844
|
var FULL_CONVERSATION_ID;
|
|
254854
|
-
var init_send_agent_message = __esm(
|
|
254845
|
+
var init_send_agent_message = __esm(() => {
|
|
254855
254846
|
init_child_send_tracking();
|
|
254856
254847
|
init_backend2();
|
|
254857
254848
|
init_agent_message();
|
|
@@ -254864,11 +254855,11 @@ var init_send_agent_message = __esm(async () => {
|
|
|
254864
254855
|
init_codex_app_server();
|
|
254865
254856
|
init_cursor_session();
|
|
254866
254857
|
init_external_coding_agent();
|
|
254858
|
+
init_external_coding_agent_task();
|
|
254867
254859
|
init_native_session_capture();
|
|
254868
254860
|
init_opencode_session();
|
|
254869
254861
|
init_process_manager();
|
|
254870
254862
|
init_remote_external_coding_agent();
|
|
254871
|
-
await init_external_coding_agent_task();
|
|
254872
254863
|
FULL_CONVERSATION_ID = /^conv-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
254873
254864
|
});
|
|
254874
254865
|
|
|
@@ -254927,10 +254918,10 @@ async function set_working_directory(rawArgs) {
|
|
|
254927
254918
|
return textResult2(`Failed to change working directory: ${error5 instanceof Error ? error5.message : String(error5)}`, "error");
|
|
254928
254919
|
}
|
|
254929
254920
|
}
|
|
254930
|
-
var init_set_working_directory = __esm(
|
|
254921
|
+
var init_set_working_directory = __esm(() => {
|
|
254931
254922
|
init_working_directory();
|
|
254932
254923
|
init_runtime_context();
|
|
254933
|
-
|
|
254924
|
+
init_runtime_working_directory();
|
|
254934
254925
|
});
|
|
254935
254926
|
|
|
254936
254927
|
// src/tools/impl/skill-content-registry.ts
|
|
@@ -255419,9 +255410,9 @@ async function view_image(args) {
|
|
|
255419
255410
|
return { content: result3.content };
|
|
255420
255411
|
}
|
|
255421
255412
|
var IMAGE_EXTENSIONS3;
|
|
255422
|
-
var init_view_image = __esm(
|
|
255413
|
+
var init_view_image = __esm(() => {
|
|
255423
255414
|
init_runtime_context();
|
|
255424
|
-
|
|
255415
|
+
init_read();
|
|
255425
255416
|
IMAGE_EXTENSIONS3 = new Set([
|
|
255426
255417
|
".png",
|
|
255427
255418
|
".jpg",
|
|
@@ -256639,17 +256630,17 @@ Output file: ${outputFile}`
|
|
|
256639
256630
|
};
|
|
256640
256631
|
}
|
|
256641
256632
|
var WATCH_POLL_MS = 30000, WATCH_MAX_POLL_MS;
|
|
256642
|
-
var init_watch_pr = __esm(
|
|
256633
|
+
var init_watch_pr = __esm(() => {
|
|
256643
256634
|
init_runtime_context();
|
|
256644
256635
|
init_secret_substitution();
|
|
256645
256636
|
init_settings_path();
|
|
256646
256637
|
init_task_notifications();
|
|
256647
256638
|
init_github_pull_request_diff();
|
|
256648
256639
|
init_github_pull_request_watch();
|
|
256640
|
+
init_monitor();
|
|
256649
256641
|
init_monitor_event_stream();
|
|
256650
256642
|
init_monitor_timeout();
|
|
256651
256643
|
init_process_manager();
|
|
256652
|
-
await init_monitor();
|
|
256653
256644
|
WATCH_MAX_POLL_MS = 5 * 60000;
|
|
256654
256645
|
});
|
|
256655
256646
|
|
|
@@ -257218,13 +257209,13 @@ ${prompt}` : prompt,
|
|
|
257218
257209
|
};
|
|
257219
257210
|
}
|
|
257220
257211
|
var DEFAULT_SUBAGENT_TIMEOUT_MS, DEFAULT_MAX_SUBAGENT_TOOL_CALLS = 1000, MAX_IDENTICAL_TOOL_CALLS = 3, SUBAGENT_PREAMBLE = `You are a subagent inside a deterministic workflow. You are not talking to a human: your final output is consumed by a script. Return raw data with no preamble, no markdown framing, and no questions.`, JSON_PREAMBLE = `Your final message must be a single JSON value and nothing else: no prose, no markdown code fence.`;
|
|
257221
|
-
var init_sdk_spawner = __esm(
|
|
257212
|
+
var init_sdk_spawner = __esm(() => {
|
|
257222
257213
|
init_preloaded_skills();
|
|
257223
257214
|
init_backend2();
|
|
257224
257215
|
init_tool_registry();
|
|
257216
|
+
init_tool_definitions();
|
|
257225
257217
|
init_tool_name_mapping();
|
|
257226
257218
|
init_cost();
|
|
257227
|
-
await init_tool_definitions();
|
|
257228
257219
|
DEFAULT_SUBAGENT_TIMEOUT_MS = 10 * 60 * 1000;
|
|
257229
257220
|
});
|
|
257230
257221
|
|
|
@@ -257273,7 +257264,7 @@ async function createSdkSpawnerHandle(args, setStage = () => {}) {
|
|
|
257273
257264
|
setStage("creating SDK client and spawner");
|
|
257274
257265
|
const runtime = getRuntimeContext();
|
|
257275
257266
|
const toolContextId = runtime?.toolContextId ?? null;
|
|
257276
|
-
const manager = await
|
|
257267
|
+
const manager = await Promise.resolve().then(() => (init_manager2(), exports_manager));
|
|
257277
257268
|
const executionContext = toolContextId ? manager.getExecutionContextById(toolContextId) : undefined;
|
|
257278
257269
|
const client = sdk.createLocalClient(backendMode);
|
|
257279
257270
|
let spawner;
|
|
@@ -257645,7 +257636,7 @@ ${result3}
|
|
|
257645
257636
|
};
|
|
257646
257637
|
}
|
|
257647
257638
|
var MAX_NOTIFICATION_RESULT_CHARS2 = 30000, DEFAULT_STARTUP_TIMEOUT_MS = 30000, startupTimeoutMs, spawnerFactory;
|
|
257648
|
-
var init_workflow = __esm(
|
|
257639
|
+
var init_workflow = __esm(() => {
|
|
257649
257640
|
init_context();
|
|
257650
257641
|
init_model_catalog();
|
|
257651
257642
|
init_subagent_model();
|
|
@@ -257658,11 +257649,11 @@ var init_workflow = __esm(async () => {
|
|
|
257658
257649
|
init_journal();
|
|
257659
257650
|
init_meta3();
|
|
257660
257651
|
init_sdk_loader();
|
|
257652
|
+
init_sdk_spawner();
|
|
257661
257653
|
init_workflow_engine();
|
|
257662
257654
|
init_message_queue_bridge();
|
|
257663
257655
|
init_task_notifications();
|
|
257664
257656
|
init_process_manager();
|
|
257665
|
-
await init_sdk_spawner();
|
|
257666
257657
|
startupTimeoutMs = DEFAULT_STARTUP_TIMEOUT_MS;
|
|
257667
257658
|
spawnerFactory = createSdkSpawnerHandle;
|
|
257668
257659
|
});
|
|
@@ -257825,7 +257816,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
257825
257816
|
description: "Set to true only when the command should return a task ID immediately. Ordinary commands already yield automatically if they are still running after a brief wait, and completion is delivered without polling."
|
|
257826
257817
|
}
|
|
257827
257818
|
},
|
|
257828
|
-
required: ["command"
|
|
257819
|
+
required: ["command"],
|
|
257829
257820
|
additionalProperties: false,
|
|
257830
257821
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
257831
257822
|
};
|
|
@@ -257973,7 +257964,7 @@ var init_ExecCommand2 = __esm(() => {
|
|
|
257973
257964
|
description: "Wait before yielding output. Defaults to 10000 ms; effective range is 250-30000 ms."
|
|
257974
257965
|
}
|
|
257975
257966
|
},
|
|
257976
|
-
required: ["cmd"
|
|
257967
|
+
required: ["cmd"],
|
|
257977
257968
|
additionalProperties: false
|
|
257978
257969
|
};
|
|
257979
257970
|
});
|
|
@@ -258765,7 +258756,7 @@ var WINDOWS_UNIFIED_EXEC_GUIDANCE = `Windows safety rules:
|
|
|
258765
258756
|
- Do not compose destructive filesystem commands across shells. Do not enumerate paths in PowerShell and then pass them to \`cmd /c\`, batch builtins, or another shell for deletion or moving. Use one shell end-to-end, prefer native PowerShell cmdlets such as \`Remove-Item\` / \`Move-Item\` with \`-LiteralPath\`, and avoid string-built shell commands for file operations.
|
|
258766
258757
|
- Before any recursive delete or move on Windows, verify the resolved absolute target paths stay within the intended workspace or explicitly named target directory. Never issue a recursive delete or move against a computed path if the final target has not been checked.
|
|
258767
258758
|
- When using \`Start-Process\` to launch a background helper or service, pass \`-WindowStyle Hidden\` unless the user explicitly asked for a visible interactive window. Use visible windows only for interactive tools the user needs to see or control.`, WINDOWS_BASH_EXECUTION_GUIDANCE, toolDefinitions, TOOL_DEFINITIONS;
|
|
258768
|
-
var init_tool_definitions = __esm(
|
|
258759
|
+
var init_tool_definitions = __esm(() => {
|
|
258769
258760
|
init_define_tool();
|
|
258770
258761
|
init_ApplyPatch();
|
|
258771
258762
|
init_AskUserQuestion();
|
|
@@ -258803,18 +258794,33 @@ var init_tool_definitions = __esm(async () => {
|
|
|
258803
258794
|
init_apply_patch();
|
|
258804
258795
|
init_artifact_files();
|
|
258805
258796
|
init_ask_user_question();
|
|
258797
|
+
init_bash();
|
|
258806
258798
|
init_code_mode();
|
|
258807
258799
|
init_edit2();
|
|
258800
|
+
init_enter_worktree();
|
|
258801
|
+
init_exec_command();
|
|
258802
|
+
init_exit_worktree();
|
|
258808
258803
|
init_glob();
|
|
258809
258804
|
init_grep();
|
|
258810
258805
|
init_ls();
|
|
258811
258806
|
init_memory5();
|
|
258807
|
+
init_monitor();
|
|
258812
258808
|
init_monitor_timeout();
|
|
258809
|
+
init_read();
|
|
258810
|
+
init_read_lsp();
|
|
258811
|
+
init_send_agent_message();
|
|
258812
|
+
init_set_working_directory();
|
|
258813
258813
|
init_skill();
|
|
258814
|
+
init_task();
|
|
258814
258815
|
init_task_create();
|
|
258815
258816
|
init_task_get();
|
|
258816
258817
|
init_task_list();
|
|
258818
|
+
init_task_stop();
|
|
258817
258819
|
init_task_update();
|
|
258820
|
+
init_view_image();
|
|
258821
|
+
init_wake();
|
|
258822
|
+
init_watch_pr();
|
|
258823
|
+
init_workflow();
|
|
258818
258824
|
init_write();
|
|
258819
258825
|
init_ApplyPatch2();
|
|
258820
258826
|
init_AskUserQuestion2();
|
|
@@ -258849,23 +258855,6 @@ var init_tool_definitions = __esm(async () => {
|
|
|
258849
258855
|
init_Write2();
|
|
258850
258856
|
init_WriteArtifactFile2();
|
|
258851
258857
|
init_WriteStdin2();
|
|
258852
|
-
await __promiseAll([
|
|
258853
|
-
init_bash(),
|
|
258854
|
-
init_enter_worktree(),
|
|
258855
|
-
init_exec_command(),
|
|
258856
|
-
init_exit_worktree(),
|
|
258857
|
-
init_monitor(),
|
|
258858
|
-
init_read(),
|
|
258859
|
-
init_read_lsp(),
|
|
258860
|
-
init_send_agent_message(),
|
|
258861
|
-
init_set_working_directory(),
|
|
258862
|
-
init_task(),
|
|
258863
|
-
init_task_stop(),
|
|
258864
|
-
init_view_image(),
|
|
258865
|
-
init_wake(),
|
|
258866
|
-
init_watch_pr(),
|
|
258867
|
-
init_workflow()
|
|
258868
|
-
]);
|
|
258869
258858
|
WINDOWS_BASH_EXECUTION_GUIDANCE = `Windows execution:
|
|
258870
258859
|
- Despite the tool name, on Windows this tool does not run commands through bash by default. It uses the native Windows shell launcher: PowerShell Core (\`pwsh\`) when available, then Windows PowerShell, then \`cmd.exe\` as fallback.
|
|
258871
258860
|
- Write commands using PowerShell-compatible syntax by default. POSIX/bash constructs such as heredocs, \`export VAR=...\`, and Unix-style shell quoting may not work unless you explicitly invoke a POSIX shell.
|
|
@@ -259080,10 +259069,10 @@ function getStoredClientPreferences(agentId, conversationId) {
|
|
|
259080
259069
|
function replaceClientPreferences(agentId, conversationId, preferences) {
|
|
259081
259070
|
settingsManager.setClientPreferences(agentId ?? (conversationId || "default"), conversationId || "default", normalizeClientPreferences(preferences));
|
|
259082
259071
|
}
|
|
259083
|
-
var init_client_preferences = __esm(
|
|
259072
|
+
var init_client_preferences = __esm(() => {
|
|
259084
259073
|
init_settings_manager();
|
|
259074
|
+
init_tool_definitions();
|
|
259085
259075
|
init_tool_name_mapping();
|
|
259086
|
-
await init_tool_definitions();
|
|
259087
259076
|
});
|
|
259088
259077
|
|
|
259089
259078
|
// src/websocket/listener/protocol-validation.ts
|
|
@@ -259171,8 +259160,8 @@ function parseTeleportCommand(value) {
|
|
|
259171
259160
|
}
|
|
259172
259161
|
return null;
|
|
259173
259162
|
}
|
|
259174
|
-
var init_teleport_protocol_inbound = __esm(
|
|
259175
|
-
|
|
259163
|
+
var init_teleport_protocol_inbound = __esm(() => {
|
|
259164
|
+
init_client_preferences();
|
|
259176
259165
|
});
|
|
259177
259166
|
|
|
259178
259167
|
// src/websocket/listener/interrupted-turn-schema.ts
|
|
@@ -259195,8 +259184,8 @@ function isInterruptedTurnRecord(value, file, path33) {
|
|
|
259195
259184
|
const marker2 = record7.recoveryClaimCompletion;
|
|
259196
259185
|
return typeof record7.agentId === "string" && typeof record7.conversationId === "string" && path33(record7.agentId, record7.conversationId) === file && Array.isArray(record7.toolCallIds) && record7.toolCallIds.every((id2) => typeof id2 === "string") && (record7.unstartedToolCallIds === undefined || Array.isArray(record7.unstartedToolCallIds) && record7.unstartedToolCallIds.every((id2) => typeof id2 === "string")) && Array.isArray(record7.results) && record7.results.every((result3) => result3 && typeof result3.tool_call_id === "string") && (record7.settledRecoveryEffects === undefined || Array.isArray(record7.settledRecoveryEffects) && record7.settledRecoveryEffects.every((effect) => effect && typeof effect.lineageId === "string" && effect.lineageId.length > 0 && effect.result && typeof effect.result.tool_call_id === "string")) && (record7.durableInputIdentities === undefined || Array.isArray(record7.durableInputIdentities) && record7.durableInputIdentities.every(isInputIdentity)) && (record7.terminalConsumerIds === undefined || Array.isArray(record7.terminalConsumerIds) && record7.terminalConsumerIds.every(isTerminalConsumerId)) && (record7.actingUserId === undefined || typeof record7.actingUserId === "string") && (marker2 === undefined || typeof marker2.lineageId === "string" && marker2.lineageId.length > 0 && (marker2.state === "running" || marker2.state === "pending") && (marker2.effectRevision === undefined || typeof marker2.effectRevision === "string") && (marker2.effectInputIdentities === undefined || Array.isArray(marker2.effectInputIdentities) && marker2.effectInputIdentities.every(isInputIdentity)) && (marker2.effectToolCallIds === undefined || Array.isArray(marker2.effectToolCallIds) && marker2.effectToolCallIds.every((id2) => typeof id2 === "string" && id2.length > 0)) && (marker2.effectRunId === undefined || marker2.effectRunId === null || typeof marker2.effectRunId === "string") && (marker2.effectRequestOtid === undefined || typeof marker2.effectRequestOtid === "string") && (marker2.effectWorkingDirectory === undefined || typeof marker2.effectWorkingDirectory === "string") && (marker2.effectActingUserId === undefined || marker2.effectActingUserId === null || typeof marker2.effectActingUserId === "string") && (marker2.effectResults === undefined || Array.isArray(marker2.effectResults) && marker2.effectResults.every((result3) => result3 && typeof result3.tool_call_id === "string")) && (marker2.effectUnstartedToolCallIds === undefined || Array.isArray(marker2.effectUnstartedToolCallIds) && marker2.effectUnstartedToolCallIds.every((id2) => typeof id2 === "string")) && (marker2.effectTerminalConsumerIds === undefined || Array.isArray(marker2.effectTerminalConsumerIds) && marker2.effectTerminalConsumerIds.every(isTerminalConsumerId)) && (marker2.effectTeleport === undefined || isTeleportIntent(marker2.effectTeleport)) && (marker2.independentSuccessor === undefined || typeof marker2.independentSuccessor === "boolean") && (marker2.state !== "pending" || Boolean(marker2.effectRevision))) && (record7.teleport === undefined || isTeleportIntent(record7.teleport)) && typeof record7.requestOtid === "string" && typeof record7.workingDirectory === "string";
|
|
259197
259186
|
}
|
|
259198
|
-
var init_interrupted_turn_schema = __esm(
|
|
259199
|
-
|
|
259187
|
+
var init_interrupted_turn_schema = __esm(() => {
|
|
259188
|
+
init_teleport_protocol_inbound();
|
|
259200
259189
|
});
|
|
259201
259190
|
|
|
259202
259191
|
// src/utils/rename-sync-with-retry.ts
|
|
@@ -259693,10 +259682,10 @@ function createRecoveryLineageSidecarAccess(params) {
|
|
|
259693
259682
|
};
|
|
259694
259683
|
}
|
|
259695
259684
|
var sidecarWriterInstanceId;
|
|
259696
|
-
var init_recovery_lineage_sidecar = __esm(
|
|
259685
|
+
var init_recovery_lineage_sidecar = __esm(() => {
|
|
259697
259686
|
init_rename_sync_with_retry();
|
|
259698
259687
|
init_durable_file_lock();
|
|
259699
|
-
|
|
259688
|
+
init_interrupted_turn_schema();
|
|
259700
259689
|
sidecarWriterInstanceId = randomUUID50();
|
|
259701
259690
|
});
|
|
259702
259691
|
|
|
@@ -260307,19 +260296,17 @@ function forgetListenerWork(runtime, expectedRevision) {
|
|
|
260307
260296
|
}
|
|
260308
260297
|
}
|
|
260309
260298
|
}
|
|
260310
|
-
var init_interrupted_turn_record = __esm(
|
|
260299
|
+
var init_interrupted_turn_record = __esm(() => {
|
|
260311
260300
|
init_error_reporting();
|
|
260312
260301
|
init_debug();
|
|
260313
260302
|
init_durable_file_lock();
|
|
260314
260303
|
init_interrupted_turn_input_ownership();
|
|
260315
260304
|
init_interrupted_turn_revision();
|
|
260305
|
+
init_interrupted_turn_schema();
|
|
260316
260306
|
init_interrupted_turn_storage();
|
|
260317
260307
|
init_recorded_tool_results();
|
|
260308
|
+
init_recovery_lineage_sidecar();
|
|
260318
260309
|
init_recorded_tool_results();
|
|
260319
|
-
await __promiseAll([
|
|
260320
|
-
init_interrupted_turn_schema(),
|
|
260321
|
-
init_recovery_lineage_sidecar()
|
|
260322
|
-
]);
|
|
260323
260310
|
});
|
|
260324
260311
|
|
|
260325
260312
|
// src/websocket/listener/failed-teleport-cleanup.ts
|
|
@@ -260414,8 +260401,8 @@ function cancelFailedTeleportCleanup(listener) {
|
|
|
260414
260401
|
cleanupStates.delete(listener);
|
|
260415
260402
|
}
|
|
260416
260403
|
var FAILED_TELEPORT_CLEANUP_MAX_ATTEMPTS = 8, FAILED_TELEPORT_CLEANUP_PENDING_LIMIT = 64, FAILED_TELEPORT_CLEANUP_RETRY_DELAY_MS = 100, FAILED_TELEPORT_CLEANUP_MAX_RETRY_DELAY_MS = 5000, cleanupStates;
|
|
260417
|
-
var init_failed_teleport_cleanup = __esm(
|
|
260418
|
-
|
|
260404
|
+
var init_failed_teleport_cleanup = __esm(() => {
|
|
260405
|
+
init_interrupted_turn_record();
|
|
260419
260406
|
cleanupStates = new WeakMap;
|
|
260420
260407
|
});
|
|
260421
260408
|
|
|
@@ -261076,12 +261063,12 @@ function getPendingControlRequestCount(runtime, params) {
|
|
|
261076
261063
|
return getPendingControlRequests(runtime, params).length;
|
|
261077
261064
|
}
|
|
261078
261065
|
var activeRuntime = null, activeRuntimeAuthorityEpoch = 0, authorityEpochByRuntime, WORKTREE_WATCHER_IDLE_STOP_MS, watcherIdleStopsByListener, __watcherIdleStopTestUtils;
|
|
261079
|
-
var init_runtime6 = __esm(
|
|
261066
|
+
var init_runtime6 = __esm(() => {
|
|
261080
261067
|
init_ws_event_redaction();
|
|
261081
261068
|
init_cwd();
|
|
261069
|
+
init_failed_teleport_cleanup();
|
|
261082
261070
|
init_turn_context();
|
|
261083
261071
|
init_turn_lifecycle();
|
|
261084
|
-
await init_failed_teleport_cleanup();
|
|
261085
261072
|
authorityEpochByRuntime = new WeakMap;
|
|
261086
261073
|
WORKTREE_WATCHER_IDLE_STOP_MS = 30 * 60 * 1000;
|
|
261087
261074
|
watcherIdleStopsByListener = new WeakMap;
|
|
@@ -261680,12 +261667,12 @@ function getOrCreateProcessTransport(runtime) {
|
|
|
261680
261667
|
return runtime.processTransport;
|
|
261681
261668
|
}
|
|
261682
261669
|
var TO_SUBSCRIBERS, resumeStateByRuntime;
|
|
261683
|
-
var init_connection = __esm(
|
|
261670
|
+
var init_connection = __esm(() => {
|
|
261684
261671
|
init_browser_device_mcp_oauth2();
|
|
261685
261672
|
init_outbound_wire();
|
|
261673
|
+
init_runtime6();
|
|
261686
261674
|
init_startup_ingress();
|
|
261687
261675
|
init_transport2();
|
|
261688
|
-
await init_runtime6();
|
|
261689
261676
|
TO_SUBSCRIBERS = {
|
|
261690
261677
|
type: "ToSubscribers"
|
|
261691
261678
|
};
|
|
@@ -262167,8 +262154,8 @@ function legacyAuthorityQuarantineEntryIsValid(entry, runtimeKey) {
|
|
|
262167
262154
|
const typedScope = scope;
|
|
262168
262155
|
return (typedScope.agentId === null || typeof typedScope.agentId === "string") && typeof typedScope.conversationId === "string" && getConversationRuntimeKey(typedScope.agentId, typedScope.conversationId) === runtimeKey && typeof quarantine.recoveryLineageId === "string" && typeof quarantine.interruptedRevision === "string" && typeof quarantine.expiresAt === "number" && Number.isFinite(quarantine.expiresAt) && quarantine.expiresAt === entry.expiresAt && entry.preparedTerminal === undefined && entry.queuedInput === undefined && entry.replayCompleted === true;
|
|
262169
262156
|
}
|
|
262170
|
-
var init_input_disposition_validation = __esm(
|
|
262171
|
-
|
|
262157
|
+
var init_input_disposition_validation = __esm(() => {
|
|
262158
|
+
init_runtime6();
|
|
262172
262159
|
});
|
|
262173
262160
|
|
|
262174
262161
|
// src/websocket/listener/input-disposition.ts
|
|
@@ -262748,7 +262735,7 @@ function loadDurableQueuedInputEntries(listener) {
|
|
|
262748
262735
|
});
|
|
262749
262736
|
}
|
|
262750
262737
|
var ACCEPTED_INPUT_DISPOSITION_TTL_MS, MAX_ACCEPTED_INPUT_DISPOSITIONS_PER_SCOPE = 4096, MAX_ACCEPTED_INPUT_DISPOSITIONS = 65536, MAX_DURABLE_QUEUED_INPUT_BYTES, MAX_INPUT_DISPOSITION_STORE_BYTES, LOCK_WAIT_MS = 2000;
|
|
262751
|
-
var init_input_disposition = __esm(
|
|
262738
|
+
var init_input_disposition = __esm(() => {
|
|
262752
262739
|
init_server_url();
|
|
262753
262740
|
init_rename_sync_with_retry();
|
|
262754
262741
|
init_durable_file_lock();
|
|
@@ -262756,11 +262743,9 @@ var init_input_disposition = __esm(async () => {
|
|
|
262756
262743
|
init_input_disposition_expiry();
|
|
262757
262744
|
init_input_disposition_path();
|
|
262758
262745
|
init_input_disposition_retention();
|
|
262746
|
+
init_input_disposition_validation();
|
|
262747
|
+
init_runtime6();
|
|
262759
262748
|
init_input_disposition_path();
|
|
262760
|
-
await __promiseAll([
|
|
262761
|
-
init_input_disposition_validation(),
|
|
262762
|
-
init_runtime6()
|
|
262763
|
-
]);
|
|
262764
262749
|
ACCEPTED_INPUT_DISPOSITION_TTL_MS = 60 * 60 * 1000;
|
|
262765
262750
|
MAX_DURABLE_QUEUED_INPUT_BYTES = 21 * 1024 * 1024;
|
|
262766
262751
|
MAX_INPUT_DISPOSITION_STORE_BYTES = 128 * 1024 * 1024;
|
|
@@ -263235,18 +263220,16 @@ function acknowledgeTurnFinished(params) {
|
|
|
263235
263220
|
}
|
|
263236
263221
|
}
|
|
263237
263222
|
var TurnFinishedCapacityError, MAX_PENDING_TERMINALS_PER_CONVERSATION = 64, DELIVERY_CLAIM_MS = 30000, TURN_FINISHED_REPLAY_TTL_MS, replayInFlight;
|
|
263238
|
-
var init_turn_finished_replay = __esm(
|
|
263223
|
+
var init_turn_finished_replay = __esm(() => {
|
|
263239
263224
|
init_server_url();
|
|
263240
263225
|
init_debug();
|
|
263241
263226
|
init_rename_sync_with_retry();
|
|
263242
263227
|
init_settings_path();
|
|
263228
|
+
init_connection();
|
|
263243
263229
|
init_durable_file_lock();
|
|
263244
|
-
|
|
263245
|
-
|
|
263246
|
-
|
|
263247
|
-
init_protocol_outbound(),
|
|
263248
|
-
init_runtime6()
|
|
263249
|
-
]);
|
|
263230
|
+
init_interrupted_turn_record();
|
|
263231
|
+
init_protocol_outbound();
|
|
263232
|
+
init_runtime6();
|
|
263250
263233
|
TurnFinishedCapacityError = class TurnFinishedCapacityError extends Error {
|
|
263251
263234
|
constructor() {
|
|
263252
263235
|
super("Pending turn-finished durability capacity exceeded");
|
|
@@ -263834,14 +263817,12 @@ function discardPreparedInputTerminal(listener, scope, terminalIdentity, turnId)
|
|
|
263834
263817
|
discard2(ledger.entries.values());
|
|
263835
263818
|
return true;
|
|
263836
263819
|
}
|
|
263837
|
-
var init_input_terminal_journal = __esm(
|
|
263820
|
+
var init_input_terminal_journal = __esm(() => {
|
|
263821
|
+
init_input_disposition();
|
|
263838
263822
|
init_input_disposition_capacity();
|
|
263839
263823
|
init_input_disposition_retention();
|
|
263840
|
-
|
|
263841
|
-
|
|
263842
|
-
init_runtime6(),
|
|
263843
|
-
init_turn_finished_replay()
|
|
263844
|
-
]);
|
|
263824
|
+
init_runtime6();
|
|
263825
|
+
init_turn_finished_replay();
|
|
263845
263826
|
});
|
|
263846
263827
|
|
|
263847
263828
|
// src/websocket/listener/legacy-authority-quarantine.ts
|
|
@@ -263950,8 +263931,8 @@ function getInboundImageFailureMode(incoming) {
|
|
|
263950
263931
|
function getInboundImageFailureModes(incoming) {
|
|
263951
263932
|
return getInboundImageFailureMode(incoming) === "drop" ? buildImageFailureModesByMessageOtid(incoming.messages, "drop") : undefined;
|
|
263952
263933
|
}
|
|
263953
|
-
var init_image_policy = __esm(
|
|
263954
|
-
|
|
263934
|
+
var init_image_policy = __esm(() => {
|
|
263935
|
+
init_message_image_normalization();
|
|
263955
263936
|
});
|
|
263956
263937
|
|
|
263957
263938
|
// src/websocket/listener/queue.ts
|
|
@@ -264313,20 +264294,18 @@ function scheduleQueuePump(runtime, socket, opts, processQueuedTurn) {
|
|
|
264313
264294
|
evictConversationRuntimeIfIdle(runtime);
|
|
264314
264295
|
});
|
|
264315
264296
|
}
|
|
264316
|
-
var init_queue = __esm(
|
|
264297
|
+
var init_queue = __esm(() => {
|
|
264317
264298
|
init_mcp_originator_tokens();
|
|
264318
264299
|
init_cron_file();
|
|
264319
264300
|
init_run_log();
|
|
264320
264301
|
init_error_reporting();
|
|
264302
|
+
init_client_preferences();
|
|
264321
264303
|
init_debug();
|
|
264304
|
+
init_connection();
|
|
264305
|
+
init_image_policy();
|
|
264306
|
+
init_protocol_outbound();
|
|
264307
|
+
init_runtime6();
|
|
264322
264308
|
init_transport2();
|
|
264323
|
-
await __promiseAll([
|
|
264324
|
-
init_client_preferences(),
|
|
264325
|
-
init_connection(),
|
|
264326
|
-
init_image_policy(),
|
|
264327
|
-
init_protocol_outbound(),
|
|
264328
|
-
init_runtime6()
|
|
264329
|
-
]);
|
|
264330
264309
|
});
|
|
264331
264310
|
|
|
264332
264311
|
// src/websocket/listener/queue-update-outbound.ts
|
|
@@ -264371,8 +264350,8 @@ function scheduleQueueEmit(runtime, scope, removed = []) {
|
|
|
264371
264350
|
});
|
|
264372
264351
|
}
|
|
264373
264352
|
var pendingQueueEmitsByRuntime;
|
|
264374
|
-
var init_queue_update_outbound = __esm(
|
|
264375
|
-
|
|
264353
|
+
var init_queue_update_outbound = __esm(() => {
|
|
264354
|
+
init_protocol_outbound();
|
|
264376
264355
|
pendingQueueEmitsByRuntime = new WeakMap;
|
|
264377
264356
|
});
|
|
264378
264357
|
|
|
@@ -264910,20 +264889,18 @@ function promotePreparedInputTerminalsSafely(listener) {
|
|
|
264910
264889
|
var discardQueuedItem = (runtime, item) => {
|
|
264911
264890
|
runtime.queuedMessagesByItemId.delete(item.id);
|
|
264912
264891
|
}, DURABLE_QUEUE_RESTORE_RETRY_DELAY_MS = 10, DURABLE_QUEUE_RESTORE_MAX_RETRY_DELAY_MS = 250, preparedTerminalPromotionRetries, retiredAuthorityCleanupTimers;
|
|
264913
|
-
var init_conversation_runtime = __esm(
|
|
264892
|
+
var init_conversation_runtime = __esm(() => {
|
|
264914
264893
|
init_queue_runtime();
|
|
264915
264894
|
init_debug();
|
|
264895
|
+
init_input_disposition();
|
|
264916
264896
|
init_input_disposition_retention();
|
|
264897
|
+
init_input_terminal_journal();
|
|
264898
|
+
init_interrupted_turn_record();
|
|
264899
|
+
init_queue();
|
|
264900
|
+
init_queue_update_outbound();
|
|
264901
|
+
init_runtime6();
|
|
264917
264902
|
init_transport2();
|
|
264918
|
-
|
|
264919
|
-
init_input_disposition(),
|
|
264920
|
-
init_input_terminal_journal(),
|
|
264921
|
-
init_interrupted_turn_record(),
|
|
264922
|
-
init_queue(),
|
|
264923
|
-
init_queue_update_outbound(),
|
|
264924
|
-
init_runtime6(),
|
|
264925
|
-
init_turn_finished_replay()
|
|
264926
|
-
]);
|
|
264903
|
+
init_turn_finished_replay();
|
|
264927
264904
|
preparedTerminalPromotionRetries = new WeakMap;
|
|
264928
264905
|
retiredAuthorityCleanupTimers = new WeakMap;
|
|
264929
264906
|
});
|
|
@@ -265557,32 +265534,30 @@ function stopScheduler() {
|
|
|
265557
265534
|
schedulerState = null;
|
|
265558
265535
|
}
|
|
265559
265536
|
var schedulerState = null, CRON_SCHEDULER_SCOPE_ENV = "LETTA_CRON_SCHEDULER_SCOPE", listenerFireContext = null, TICK_INTERVAL_MS = 60000, GC_INTERVAL_MS, TOMBSTONE_HEARTBEAT_MS = 1000, LEASE_RETRY_MS = 30000, MAX_LEASE_RETRIES = 3, SLOW_LEASE_RETRY_MS, slowLeaseRetryTimer = null, NEW_CONVERSATION_TARGET = "new";
|
|
265560
|
-
var init_scheduler = __esm(
|
|
265537
|
+
var init_scheduler = __esm(() => {
|
|
265561
265538
|
init_backend2();
|
|
265562
265539
|
init_debug();
|
|
265540
|
+
init_connection();
|
|
265541
|
+
init_conversation_runtime();
|
|
265542
|
+
init_protocol_outbound();
|
|
265543
|
+
init_queue();
|
|
265544
|
+
init_runtime6();
|
|
265563
265545
|
init_cron_file();
|
|
265564
265546
|
init_parse_interval();
|
|
265565
265547
|
init_prompt();
|
|
265566
265548
|
init_run_log();
|
|
265567
265549
|
init_runner();
|
|
265568
265550
|
init_prompt();
|
|
265569
|
-
await __promiseAll([
|
|
265570
|
-
init_connection(),
|
|
265571
|
-
init_conversation_runtime(),
|
|
265572
|
-
init_protocol_outbound(),
|
|
265573
|
-
init_queue(),
|
|
265574
|
-
init_runtime6()
|
|
265575
|
-
]);
|
|
265576
265551
|
GC_INTERVAL_MS = 60 * 60000;
|
|
265577
265552
|
SLOW_LEASE_RETRY_MS = 5 * 60000;
|
|
265578
265553
|
});
|
|
265579
265554
|
|
|
265580
265555
|
// src/cron/index.ts
|
|
265581
|
-
var init_cron = __esm(
|
|
265556
|
+
var init_cron = __esm(() => {
|
|
265582
265557
|
init_cron_file();
|
|
265583
265558
|
init_parse_interval();
|
|
265584
265559
|
init_run_log();
|
|
265585
|
-
|
|
265560
|
+
init_scheduler();
|
|
265586
265561
|
});
|
|
265587
265562
|
|
|
265588
265563
|
// src/cli/subcommands/cron-scope.ts
|
|
@@ -265644,10 +265619,10 @@ function printAmbiguousTaskName(name, matches3) {
|
|
|
265644
265619
|
console.error(` ${match3.id} (${match3.store})`);
|
|
265645
265620
|
}
|
|
265646
265621
|
}
|
|
265647
|
-
var init_cron_task_ref = __esm(
|
|
265622
|
+
var init_cron_task_ref = __esm(() => {
|
|
265648
265623
|
init_schedules();
|
|
265649
265624
|
init_backend_mode();
|
|
265650
|
-
|
|
265625
|
+
init_cron();
|
|
265651
265626
|
});
|
|
265652
265627
|
|
|
265653
265628
|
// src/cli/subcommands/cron.ts
|
|
@@ -266151,15 +266126,13 @@ async function runCronSubcommand(argv) {
|
|
|
266151
266126
|
}
|
|
266152
266127
|
}
|
|
266153
266128
|
var CRON_OPTIONS;
|
|
266154
|
-
var init_cron2 = __esm(
|
|
266129
|
+
var init_cron2 = __esm(() => {
|
|
266155
266130
|
init_request();
|
|
266156
266131
|
init_schedules();
|
|
266132
|
+
init_cron();
|
|
266157
266133
|
init_runner();
|
|
266158
266134
|
init_runtime_context();
|
|
266159
|
-
|
|
266160
|
-
init_cron(),
|
|
266161
|
-
init_cron_task_ref()
|
|
266162
|
-
]);
|
|
266135
|
+
init_cron_task_ref();
|
|
266163
266136
|
CRON_OPTIONS = {
|
|
266164
266137
|
help: { type: "boolean", short: "h" },
|
|
266165
266138
|
name: { type: "string" },
|
|
@@ -268332,7 +268305,7 @@ function printListenUsage() {
|
|
|
268332
268305
|
|
|
268333
268306
|
// src/cli/subcommands/listener-readiness.ts
|
|
268334
268307
|
async function completeListenerConnectionStartup(expectedConnection, readiness, startGateway = async () => {}, onGatewayError = console.error) {
|
|
268335
|
-
const { getActiveRuntime: getActiveRuntime2 } = await
|
|
268308
|
+
const { getActiveRuntime: getActiveRuntime2 } = await Promise.resolve().then(() => (init_runtime6(), exports_runtime));
|
|
268336
268309
|
const runtime = getActiveRuntime2();
|
|
268337
268310
|
const connection = runtime?.connections.get(expectedConnection.id);
|
|
268338
268311
|
const epoch = readiness.captureCloudEpoch();
|
|
@@ -269484,8 +269457,8 @@ function setCommandLoopStatus(runtime, status, scope) {
|
|
|
269484
269457
|
emitLoopStatusIfOpen(runtime, scope);
|
|
269485
269458
|
}
|
|
269486
269459
|
}
|
|
269487
|
-
var init_turn_status = __esm(
|
|
269488
|
-
|
|
269460
|
+
var init_turn_status = __esm(() => {
|
|
269461
|
+
init_protocol_outbound();
|
|
269489
269462
|
});
|
|
269490
269463
|
|
|
269491
269464
|
// src/websocket/listener/approval.ts
|
|
@@ -269769,15 +269742,13 @@ function requestApprovalOverWS(runtime, socket, turnLease, requestId, controlReq
|
|
|
269769
269742
|
});
|
|
269770
269743
|
}
|
|
269771
269744
|
var UNOWNED_APPROVAL_CONNECTION_ID = "__unowned_approval__";
|
|
269772
|
-
var init_approval = __esm(
|
|
269745
|
+
var init_approval = __esm(() => {
|
|
269773
269746
|
init_debug();
|
|
269747
|
+
init_connection();
|
|
269748
|
+
init_protocol_outbound();
|
|
269749
|
+
init_runtime6();
|
|
269774
269750
|
init_transport2();
|
|
269775
|
-
|
|
269776
|
-
init_connection(),
|
|
269777
|
-
init_protocol_outbound(),
|
|
269778
|
-
init_runtime6(),
|
|
269779
|
-
init_turn_status()
|
|
269780
|
-
]);
|
|
269751
|
+
init_turn_status();
|
|
269781
269752
|
});
|
|
269782
269753
|
|
|
269783
269754
|
// src/websocket/listener/management-protocol-inbound.ts
|
|
@@ -269915,9 +269886,9 @@ function getInputToolSelectionError(payload) {
|
|
|
269915
269886
|
return "Protocol violation: input.payload.exclude_interactive_tools must be boolean";
|
|
269916
269887
|
return null;
|
|
269917
269888
|
}
|
|
269918
|
-
var init_input_tool_selection = __esm(
|
|
269889
|
+
var init_input_tool_selection = __esm(() => {
|
|
269890
|
+
init_client_preferences();
|
|
269919
269891
|
init_toolset_catalog();
|
|
269920
|
-
await init_client_preferences();
|
|
269921
269892
|
});
|
|
269922
269893
|
|
|
269923
269894
|
// src/websocket/listener/queue-pause-protocol-inbound.ts
|
|
@@ -270904,23 +270875,21 @@ function parseServerMessage(data) {
|
|
|
270904
270875
|
}
|
|
270905
270876
|
}
|
|
270906
270877
|
var EXPERIMENT_IDS;
|
|
270907
|
-
var init_protocol_inbound = __esm(
|
|
270878
|
+
var init_protocol_inbound = __esm(() => {
|
|
270908
270879
|
init_toolset_catalog();
|
|
270909
270880
|
init_channel_service_validation();
|
|
270881
|
+
init_approval();
|
|
270882
|
+
init_input_tool_selection();
|
|
270910
270883
|
init_queue_pause_protocol_inbound();
|
|
270911
270884
|
init_connect_provider_protocol_inbound();
|
|
270912
270885
|
init_connect_provider_protocol_inbound();
|
|
270913
270886
|
init_external_tool_protocol();
|
|
270914
270887
|
init_runtime_start_validation();
|
|
270888
|
+
init_teleport_protocol_inbound();
|
|
270915
270889
|
init_turn_finished_protocol_inbound();
|
|
270916
270890
|
init_subagent_protocol_inbound();
|
|
270917
270891
|
init_task_control_protocol_inbound();
|
|
270918
270892
|
init_task_control_protocol_inbound();
|
|
270919
|
-
await __promiseAll([
|
|
270920
|
-
init_approval(),
|
|
270921
|
-
init_input_tool_selection(),
|
|
270922
|
-
init_teleport_protocol_inbound()
|
|
270923
|
-
]);
|
|
270924
270893
|
EXPERIMENT_IDS = new Set([
|
|
270925
270894
|
"conversation_titles",
|
|
270926
270895
|
"desktop_conversation_bootstrap",
|
|
@@ -271267,9 +271236,9 @@ function handleAgentConversationManagementProtocolCommand(parsed, context3) {
|
|
|
271267
271236
|
}
|
|
271268
271237
|
return false;
|
|
271269
271238
|
}
|
|
271270
|
-
var init_agents_conversations = __esm(
|
|
271239
|
+
var init_agents_conversations = __esm(() => {
|
|
271271
271240
|
init_backend2();
|
|
271272
|
-
|
|
271241
|
+
init_protocol_inbound();
|
|
271273
271242
|
});
|
|
271274
271243
|
|
|
271275
271244
|
// src/websocket/listener/commands/cron.ts
|
|
@@ -271571,13 +271540,11 @@ function handleCronProtocolCommand(parsed, context3) {
|
|
|
271571
271540
|
}
|
|
271572
271541
|
return false;
|
|
271573
271542
|
}
|
|
271574
|
-
var init_cron3 = __esm(
|
|
271543
|
+
var init_cron3 = __esm(() => {
|
|
271544
|
+
init_cron();
|
|
271575
271545
|
init_runner();
|
|
271576
|
-
|
|
271577
|
-
|
|
271578
|
-
init_scheduler(),
|
|
271579
|
-
init_protocol_inbound()
|
|
271580
|
-
]);
|
|
271546
|
+
init_scheduler();
|
|
271547
|
+
init_protocol_inbound();
|
|
271581
271548
|
});
|
|
271582
271549
|
|
|
271583
271550
|
// src/agent/memory-scanner.ts
|
|
@@ -272304,10 +272271,10 @@ function handleMemoryProtocolCommand(parsed, context3) {
|
|
|
272304
272271
|
return false;
|
|
272305
272272
|
}
|
|
272306
272273
|
var warnMemoryCommand, WIKI_LINK_REGEX, IMAGE_MIME_BY_EXTENSION, MEMORY_PUSH_AWAIT_CAP_MS = 8000;
|
|
272307
|
-
var init_memory6 = __esm(
|
|
272274
|
+
var init_memory6 = __esm(() => {
|
|
272308
272275
|
init_error_reporting();
|
|
272309
272276
|
init_debug();
|
|
272310
|
-
|
|
272277
|
+
init_protocol_inbound();
|
|
272311
272278
|
warnMemoryCommand = debugWarn.bind(null, "memory-commands");
|
|
272312
272279
|
WIKI_LINK_REGEX = /\[\[([^\]|]+)(?:\|[^\]]+)?\]\]/g;
|
|
272313
272280
|
IMAGE_MIME_BY_EXTENSION = {
|
|
@@ -273040,20 +273007,18 @@ async function switchToolsetForModel(modelIdentifier, providerType) {
|
|
|
273040
273007
|
return toolset;
|
|
273041
273008
|
}
|
|
273042
273009
|
var OPENAI_PROVIDER_TYPES;
|
|
273043
|
-
var init_toolset = __esm(
|
|
273010
|
+
var init_toolset = __esm(() => {
|
|
273044
273011
|
init_available_models();
|
|
273045
273012
|
init_model();
|
|
273046
273013
|
init_model_handles();
|
|
273047
273014
|
init_backend2();
|
|
273048
273015
|
init_context2();
|
|
273049
273016
|
init_settings_manager();
|
|
273017
|
+
init_client_preferences();
|
|
273018
|
+
init_manager2();
|
|
273050
273019
|
init_removed_tools();
|
|
273020
|
+
init_tool_definitions();
|
|
273051
273021
|
init_tool_policy();
|
|
273052
|
-
await __promiseAll([
|
|
273053
|
-
init_client_preferences(),
|
|
273054
|
-
init_manager2(),
|
|
273055
|
-
init_tool_definitions()
|
|
273056
|
-
]);
|
|
273057
273022
|
OPENAI_PROVIDER_TYPES = new Set([
|
|
273058
273023
|
"openai",
|
|
273059
273024
|
"openai-codex",
|
|
@@ -444261,8 +444226,9 @@ function createModEngine(options) {
|
|
|
444261
444226
|
};
|
|
444262
444227
|
}
|
|
444263
444228
|
var ts2, GLOBAL_MODS_DIRECTORY, LEGACY_GLOBAL_EXTENSIONS_DIRECTORY, MOD_CACHE_DIRECTORY, requireFromRuntime, resolveRuntimePackageDirectory, SUPPORTED_MOD_EVENT_NAMES;
|
|
444264
|
-
var init_mod_engine = __esm(
|
|
444229
|
+
var init_mod_engine = __esm(() => {
|
|
444265
444230
|
init_available_models();
|
|
444231
|
+
init_message();
|
|
444266
444232
|
init_pi_provider_mod_registry();
|
|
444267
444233
|
init_capabilities();
|
|
444268
444234
|
init_conversation_handle();
|
|
@@ -444274,7 +444240,6 @@ var init_mod_engine = __esm(async () => {
|
|
|
444274
444240
|
init_runtime_dependencies();
|
|
444275
444241
|
init_tool_registry();
|
|
444276
444242
|
init_mod_sources();
|
|
444277
|
-
await init_message();
|
|
444278
444243
|
ts2 = __toESM(require_typescript(), 1);
|
|
444279
444244
|
GLOBAL_MODS_DIRECTORY = getGlobalModsDirectory();
|
|
444280
444245
|
LEGACY_GLOBAL_EXTENSIONS_DIRECTORY = getLegacyGlobalExtensionsDirectory();
|
|
@@ -444461,14 +444426,14 @@ function createModAdapter(options) {
|
|
|
444461
444426
|
};
|
|
444462
444427
|
}
|
|
444463
444428
|
var RUNTIME_DIAGNOSTICS_WRITE_DELAY_MS = 30000;
|
|
444464
|
-
var init_mod_adapter = __esm(
|
|
444429
|
+
var init_mod_adapter = __esm(() => {
|
|
444465
444430
|
init_capabilities();
|
|
444466
444431
|
init_disabled_mod_adapter();
|
|
444467
444432
|
init_mod_diagnostics_file();
|
|
444433
|
+
init_mod_engine();
|
|
444468
444434
|
init_permission_registry();
|
|
444469
444435
|
init_tool_registry();
|
|
444470
444436
|
init_debug();
|
|
444471
|
-
await init_mod_engine();
|
|
444472
444437
|
});
|
|
444473
444438
|
|
|
444474
444439
|
// src/websocket/listener/memfs-sync.ts
|
|
@@ -444725,19 +444690,17 @@ function disposeListenerModAdapter(runtime) {
|
|
|
444725
444690
|
runtime.agentModAdapterLoads?.clear();
|
|
444726
444691
|
}
|
|
444727
444692
|
var LISTENER_MOD_CAPABILITIES, LISTENER_AGENT_MOD_CAPABILITIES, resolveAgentModsDirectory, resolveAgentModCacheDirectory, ensureAgentMemfsSynced;
|
|
444728
|
-
var init_mod_adapter2 = __esm(
|
|
444693
|
+
var init_mod_adapter2 = __esm(() => {
|
|
444729
444694
|
init_memory_filesystem2();
|
|
444730
444695
|
init_backend2();
|
|
444731
444696
|
init_context2();
|
|
444697
|
+
init_mod_adapter();
|
|
444732
444698
|
init_paths2();
|
|
444733
444699
|
init_runtime_context();
|
|
444734
444700
|
init_settings_manager();
|
|
444735
444701
|
init_cwd();
|
|
444736
444702
|
init_memfs_sync();
|
|
444737
|
-
|
|
444738
|
-
init_mod_adapter(),
|
|
444739
|
-
init_protocol_outbound()
|
|
444740
|
-
]);
|
|
444703
|
+
init_protocol_outbound();
|
|
444741
444704
|
LISTENER_MOD_CAPABILITIES = {
|
|
444742
444705
|
tools: true,
|
|
444743
444706
|
commands: true,
|
|
@@ -445205,7 +445168,7 @@ function handleModelToolsetCommand(parsed, context3) {
|
|
|
445205
445168
|
}
|
|
445206
445169
|
return false;
|
|
445207
445170
|
}
|
|
445208
|
-
var init_model_toolset = __esm(
|
|
445171
|
+
var init_model_toolset = __esm(() => {
|
|
445209
445172
|
init_available_models();
|
|
445210
445173
|
init_model();
|
|
445211
445174
|
init_modify();
|
|
@@ -445216,14 +445179,12 @@ var init_model_toolset = __esm(async () => {
|
|
|
445216
445179
|
init_backend_mode();
|
|
445217
445180
|
init_byok_providers();
|
|
445218
445181
|
init_settings_manager();
|
|
445182
|
+
init_toolset();
|
|
445219
445183
|
init_toolset_labels();
|
|
445184
|
+
init_mod_adapter2();
|
|
445185
|
+
init_protocol_inbound();
|
|
445186
|
+
init_protocol_outbound();
|
|
445220
445187
|
init_model_catalog2();
|
|
445221
|
-
await __promiseAll([
|
|
445222
|
-
init_toolset(),
|
|
445223
|
-
init_mod_adapter2(),
|
|
445224
|
-
init_protocol_inbound(),
|
|
445225
|
-
init_protocol_outbound()
|
|
445226
|
-
]);
|
|
445227
445188
|
});
|
|
445228
445189
|
|
|
445229
445190
|
// src/backend/api/ephemeral-conversations.ts
|
|
@@ -445541,15 +445502,13 @@ function rejectPendingExternalToolCalls(runtime, reason) {
|
|
|
445541
445502
|
lastSubmittingConnectionByRuntime.delete(runtime);
|
|
445542
445503
|
}
|
|
445543
445504
|
var EXTERNAL_TOOL_CALL_TIMEOUT_MS, registeredToolsByRuntime, lastSubmittingConnectionByRuntime, nextRegistrationSequence = 0, connectionIdByRegistrationKey;
|
|
445544
|
-
var init_external_tools = __esm(
|
|
445505
|
+
var init_external_tools = __esm(() => {
|
|
445545
445506
|
init_external_tool_background_eligibility();
|
|
445507
|
+
init_manager2();
|
|
445546
445508
|
init_debug();
|
|
445509
|
+
init_connection();
|
|
445510
|
+
init_runtime6();
|
|
445547
445511
|
init_transport2();
|
|
445548
|
-
await __promiseAll([
|
|
445549
|
-
init_manager2(),
|
|
445550
|
-
init_connection(),
|
|
445551
|
-
init_runtime6()
|
|
445552
|
-
]);
|
|
445553
445512
|
EXTERNAL_TOOL_CALL_TIMEOUT_MS = 5 * 60 * 1000;
|
|
445554
445513
|
registeredToolsByRuntime = new WeakMap;
|
|
445555
445514
|
lastSubmittingConnectionByRuntime = new WeakMap;
|
|
@@ -445610,8 +445569,8 @@ function rollbackInputDisposition(runtime, reservation) {
|
|
|
445610
445569
|
deleteCurrentEntry(ledger, reservation.key, reservation.generation);
|
|
445611
445570
|
return true;
|
|
445612
445571
|
}
|
|
445613
|
-
var init_input_disposition_rollback = __esm(
|
|
445614
|
-
|
|
445572
|
+
var init_input_disposition_rollback = __esm(() => {
|
|
445573
|
+
init_input_disposition();
|
|
445615
445574
|
});
|
|
445616
445575
|
|
|
445617
445576
|
// src/websocket/listener/recoverable-notices.ts
|
|
@@ -445802,12 +445761,12 @@ function emitRecoverableRetryNotice(socket, runtime, params) {
|
|
|
445802
445761
|
});
|
|
445803
445762
|
}
|
|
445804
445763
|
var DESKTOP_DEBUG_PANEL_INFO_PREFIX = "[LETTA_DESKTOP_DEBUG_PANEL_INFO]";
|
|
445805
|
-
var init_recoverable_notices = __esm(
|
|
445764
|
+
var init_recoverable_notices = __esm(() => {
|
|
445806
445765
|
init_error();
|
|
445807
445766
|
init_turn_recovery_policy();
|
|
445808
445767
|
init_error_formatter();
|
|
445809
445768
|
init_debug();
|
|
445810
|
-
|
|
445769
|
+
init_protocol_outbound();
|
|
445811
445770
|
});
|
|
445812
445771
|
|
|
445813
445772
|
// src/websocket/listener/teleport-failed-ack.ts
|
|
@@ -445823,11 +445782,9 @@ function emitTeleportFailedAck(params) {
|
|
|
445823
445782
|
};
|
|
445824
445783
|
emitProtocolV2Message(params.socket, params.listener, message2, message2.runtime, toListenerConnection(params.connectionId));
|
|
445825
445784
|
}
|
|
445826
|
-
var init_teleport_failed_ack = __esm(
|
|
445827
|
-
|
|
445828
|
-
|
|
445829
|
-
init_protocol_outbound()
|
|
445830
|
-
]);
|
|
445785
|
+
var init_teleport_failed_ack = __esm(() => {
|
|
445786
|
+
init_connection();
|
|
445787
|
+
init_protocol_outbound();
|
|
445831
445788
|
});
|
|
445832
445789
|
|
|
445833
445790
|
// src/websocket/listener/input-terminal-evidence.ts
|
|
@@ -445860,8 +445817,8 @@ function hasCompletedInputTerminalAuthority(listener, runtimeKey, identities, au
|
|
|
445860
445817
|
return { result: matches3(ledger.entries), changed: false };
|
|
445861
445818
|
});
|
|
445862
445819
|
}
|
|
445863
|
-
var init_input_terminal_evidence = __esm(
|
|
445864
|
-
|
|
445820
|
+
var init_input_terminal_evidence = __esm(() => {
|
|
445821
|
+
init_input_disposition();
|
|
445865
445822
|
});
|
|
445866
445823
|
|
|
445867
445824
|
// src/websocket/listener/teleport-terminal-transfer.ts
|
|
@@ -446053,13 +446010,11 @@ function commitActiveTeleportTerminalTransfer(params) {
|
|
|
446053
446010
|
return fallback();
|
|
446054
446011
|
}
|
|
446055
446012
|
var TeleportTerminalConsumerRaceError, TeleportIntentUnavailableError, TeleportTerminalPreparedError;
|
|
446056
|
-
var init_teleport_terminal_transfer = __esm(
|
|
446057
|
-
|
|
446058
|
-
|
|
446059
|
-
|
|
446060
|
-
|
|
446061
|
-
init_turn_finished_replay()
|
|
446062
|
-
]);
|
|
446013
|
+
var init_teleport_terminal_transfer = __esm(() => {
|
|
446014
|
+
init_input_terminal_evidence();
|
|
446015
|
+
init_input_terminal_journal();
|
|
446016
|
+
init_interrupted_turn_record();
|
|
446017
|
+
init_turn_finished_replay();
|
|
446063
446018
|
TeleportTerminalConsumerRaceError = class TeleportTerminalConsumerRaceError extends Error {
|
|
446064
446019
|
};
|
|
446065
446020
|
TeleportIntentUnavailableError = class TeleportIntentUnavailableError extends Error {
|
|
@@ -446634,25 +446589,23 @@ function handleTeleportFailure(params) {
|
|
|
446634
446589
|
});
|
|
446635
446590
|
}
|
|
446636
446591
|
var TELEPORT_RECOVERY_TTL_MS, INBOUND_TELEPORT_CONTINUE_TTL_MS = 60000;
|
|
446637
|
-
var init_teleport = __esm(
|
|
446592
|
+
var init_teleport = __esm(() => {
|
|
446638
446593
|
init_backend_mode();
|
|
446639
446594
|
init_teleport_guard();
|
|
446595
|
+
init_client_preferences();
|
|
446596
|
+
init_connection();
|
|
446597
|
+
init_conversation_runtime();
|
|
446598
|
+
init_failed_teleport_cleanup();
|
|
446599
|
+
init_input_disposition();
|
|
446600
|
+
init_input_disposition_rollback();
|
|
446601
|
+
init_interrupted_turn_record();
|
|
446640
446602
|
init_permission_mode();
|
|
446603
|
+
init_protocol_outbound();
|
|
446604
|
+
init_recoverable_notices();
|
|
446605
|
+
init_runtime6();
|
|
446606
|
+
init_teleport_failed_ack();
|
|
446607
|
+
init_teleport_terminal_transfer();
|
|
446641
446608
|
init_transport2();
|
|
446642
|
-
await __promiseAll([
|
|
446643
|
-
init_client_preferences(),
|
|
446644
|
-
init_connection(),
|
|
446645
|
-
init_conversation_runtime(),
|
|
446646
|
-
init_failed_teleport_cleanup(),
|
|
446647
|
-
init_input_disposition(),
|
|
446648
|
-
init_input_disposition_rollback(),
|
|
446649
|
-
init_interrupted_turn_record(),
|
|
446650
|
-
init_protocol_outbound(),
|
|
446651
|
-
init_recoverable_notices(),
|
|
446652
|
-
init_runtime6(),
|
|
446653
|
-
init_teleport_failed_ack(),
|
|
446654
|
-
init_teleport_terminal_transfer()
|
|
446655
|
-
]);
|
|
446656
446609
|
TELEPORT_RECOVERY_TTL_MS = 5 * 60000;
|
|
446657
446610
|
});
|
|
446658
446611
|
|
|
@@ -446963,7 +446916,7 @@ function handleRuntimeStartProtocolCommand(parsed, context3) {
|
|
|
446963
446916
|
return true;
|
|
446964
446917
|
}
|
|
446965
446918
|
var LEGACY_SUMMARY_PREFIX_BY_SOURCE_TAG;
|
|
446966
|
-
var init_runtime_start = __esm(
|
|
446919
|
+
var init_runtime_start = __esm(() => {
|
|
446967
446920
|
init_create5();
|
|
446968
446921
|
init_create_agent_request();
|
|
446969
446922
|
init_backend2();
|
|
@@ -446973,16 +446926,14 @@ var init_runtime_start = __esm(async () => {
|
|
|
446973
446926
|
init_workspace_sandbox();
|
|
446974
446927
|
init_settings_manager();
|
|
446975
446928
|
init_telemetry();
|
|
446929
|
+
init_connection();
|
|
446976
446930
|
init_cwd();
|
|
446931
|
+
init_cwd_change();
|
|
446932
|
+
init_external_tools();
|
|
446977
446933
|
init_permission_mode();
|
|
446934
|
+
init_queue();
|
|
446978
446935
|
init_runtime_start_validation();
|
|
446979
|
-
|
|
446980
|
-
init_connection(),
|
|
446981
|
-
init_cwd_change(),
|
|
446982
|
-
init_external_tools(),
|
|
446983
|
-
init_queue(),
|
|
446984
|
-
init_teleport()
|
|
446985
|
-
]);
|
|
446936
|
+
init_teleport();
|
|
446986
446937
|
LEGACY_SUMMARY_PREFIX_BY_SOURCE_TAG = {
|
|
446987
446938
|
"channel:discord": "discord",
|
|
446988
446939
|
"channel:slack": "slack",
|
|
@@ -447127,14 +447078,12 @@ function handleSettingsProtocolCommand(parsed, context3) {
|
|
|
447127
447078
|
}
|
|
447128
447079
|
return false;
|
|
447129
447080
|
}
|
|
447130
|
-
var init_settings3 = __esm(
|
|
447081
|
+
var init_settings3 = __esm(() => {
|
|
447131
447082
|
init_memory_reminder();
|
|
447132
447083
|
init_manager();
|
|
447133
447084
|
init_cwd();
|
|
447134
|
-
|
|
447135
|
-
|
|
447136
|
-
init_protocol_outbound()
|
|
447137
|
-
]);
|
|
447085
|
+
init_protocol_inbound();
|
|
447086
|
+
init_protocol_outbound();
|
|
447138
447087
|
});
|
|
447139
447088
|
|
|
447140
447089
|
// src/websocket/listener/commands/skills-agents.ts
|
|
@@ -447320,11 +447269,11 @@ function handleSkillAgentProtocolCommand(parsed, context3) {
|
|
|
447320
447269
|
}
|
|
447321
447270
|
return false;
|
|
447322
447271
|
}
|
|
447323
|
-
var init_skills_agents = __esm(
|
|
447272
|
+
var init_skills_agents = __esm(() => {
|
|
447324
447273
|
init_model();
|
|
447325
447274
|
init_skills5();
|
|
447326
447275
|
init_settings_manager();
|
|
447327
|
-
|
|
447276
|
+
init_protocol_inbound();
|
|
447328
447277
|
});
|
|
447329
447278
|
|
|
447330
447279
|
// src/websocket/listener/interrupts.ts
|
|
@@ -447812,16 +447761,14 @@ function stashRecoveredApprovalInterrupts(runtime, recovered) {
|
|
|
447812
447761
|
return true;
|
|
447813
447762
|
}
|
|
447814
447763
|
var INTERRUPT_TOOL_RETURN_MAX_CHARS, STREAMING_TOOL_OUTPUT_MAX_CHARS, STREAMING_TOOL_OUTPUT_EMIT_INTERVAL_MS = 100;
|
|
447815
|
-
var init_interrupts = __esm(
|
|
447764
|
+
var init_interrupts = __esm(() => {
|
|
447816
447765
|
init_approval_result_normalization();
|
|
447817
447766
|
init_constants2();
|
|
447818
447767
|
init_truncation();
|
|
447819
447768
|
init_debug();
|
|
447820
|
-
|
|
447821
|
-
|
|
447822
|
-
|
|
447823
|
-
init_runtime6()
|
|
447824
|
-
]);
|
|
447769
|
+
init_approval();
|
|
447770
|
+
init_protocol_outbound();
|
|
447771
|
+
init_runtime6();
|
|
447825
447772
|
INTERRUPT_TOOL_RETURN_MAX_CHARS = LIMITS.BASH_OUTPUT_CHARS;
|
|
447826
447773
|
STREAMING_TOOL_OUTPUT_MAX_CHARS = LIMITS.BASH_OUTPUT_CHARS;
|
|
447827
447774
|
});
|
|
@@ -448144,27 +448091,25 @@ async function handleCwdChange(msg, socket, runtime) {
|
|
|
448144
448091
|
});
|
|
448145
448092
|
}
|
|
448146
448093
|
}
|
|
448147
|
-
var init_control_inputs = __esm(
|
|
448094
|
+
var init_control_inputs = __esm(() => {
|
|
448148
448095
|
init_backend2();
|
|
448149
448096
|
init_constants2();
|
|
448150
448097
|
init_mode();
|
|
448151
448098
|
init_telemetry();
|
|
448152
448099
|
init_error_reporting();
|
|
448153
448100
|
init_debug();
|
|
448101
|
+
init_approval();
|
|
448102
|
+
init_connection();
|
|
448103
|
+
init_conversation_runtime();
|
|
448154
448104
|
init_cwd();
|
|
448105
|
+
init_interrupts();
|
|
448155
448106
|
init_permission_mode();
|
|
448156
|
-
|
|
448157
|
-
|
|
448158
|
-
|
|
448159
|
-
|
|
448160
|
-
|
|
448161
|
-
|
|
448162
|
-
init_queue(),
|
|
448163
|
-
init_recoverable_notices(),
|
|
448164
|
-
init_runtime6(),
|
|
448165
|
-
init_turn_status(),
|
|
448166
|
-
init_worktree_watcher()
|
|
448167
|
-
]);
|
|
448107
|
+
init_protocol_outbound();
|
|
448108
|
+
init_queue();
|
|
448109
|
+
init_recoverable_notices();
|
|
448110
|
+
init_runtime6();
|
|
448111
|
+
init_turn_status();
|
|
448112
|
+
init_worktree_watcher();
|
|
448168
448113
|
});
|
|
448169
448114
|
|
|
448170
448115
|
// src/websocket/terminal-handler.ts
|
|
@@ -448686,11 +448631,11 @@ async function canRecoverConversation(runtime, readStatus = getAgentRuntimeStatu
|
|
|
448686
448631
|
return await getRecoveryEligibility(runtime, readStatus) === "owned";
|
|
448687
448632
|
}
|
|
448688
448633
|
var RECOVERY_CLAIM_TTL_MS = 15000, RECOVERY_CLAIM_RENEW_MS = 5000, RECOVERY_CLAIM_EXPIRY_MARGIN_MS = 500, defaultRecoveryClaimRequest = (agentId, body3) => apiRequest("POST", `/v1/agents/${encodeURIComponent(agentId)}/recovery-claims`, body3, { signal: AbortSignal.timeout(5000) }), refusalCounts;
|
|
448689
|
-
var init_recovery_ownership = __esm(
|
|
448634
|
+
var init_recovery_ownership = __esm(() => {
|
|
448690
448635
|
init_agents8();
|
|
448691
448636
|
init_request();
|
|
448692
448637
|
init_debug();
|
|
448693
|
-
|
|
448638
|
+
init_teleport();
|
|
448694
448639
|
refusalCounts = new WeakMap;
|
|
448695
448640
|
});
|
|
448696
448641
|
|
|
@@ -451367,8 +451312,9 @@ async function drainStreamWithResume(stream11, buffers, refresh, abortSignal, on
|
|
|
451367
451312
|
});
|
|
451368
451313
|
return result3;
|
|
451369
451314
|
}
|
|
451370
|
-
var init_stream2 = __esm(
|
|
451315
|
+
var init_stream2 = __esm(() => {
|
|
451371
451316
|
init_error();
|
|
451317
|
+
init_message();
|
|
451372
451318
|
init_backend2();
|
|
451373
451319
|
init_client4();
|
|
451374
451320
|
init_telemetry();
|
|
@@ -451382,7 +451328,6 @@ var init_stream2 = __esm(async () => {
|
|
|
451382
451328
|
init_stream_resume();
|
|
451383
451329
|
init_stream_stall_reconciler();
|
|
451384
451330
|
init_stream_terminal_eof_guard();
|
|
451385
|
-
await init_message();
|
|
451386
451331
|
});
|
|
451387
451332
|
|
|
451388
451333
|
// src/websocket/listener/cloud-retry-message.ts
|
|
@@ -451437,8 +451382,8 @@ function normalizeCloudRetryWireMessage(value) {
|
|
|
451437
451382
|
step_id: retry3.stepId
|
|
451438
451383
|
};
|
|
451439
451384
|
}
|
|
451440
|
-
var init_cloud_retry_message = __esm(
|
|
451441
|
-
|
|
451385
|
+
var init_cloud_retry_message = __esm(() => {
|
|
451386
|
+
init_protocol_outbound();
|
|
451442
451387
|
});
|
|
451443
451388
|
|
|
451444
451389
|
// src/websocket/listener/recovered-approval-checkpoint.ts
|
|
@@ -451747,8 +451692,8 @@ function snapshotInputTerminalConsumers(runtime, identities, initial2) {
|
|
|
451747
451692
|
};
|
|
451748
451693
|
});
|
|
451749
451694
|
}
|
|
451750
|
-
var init_input_terminal_consumer_snapshot = __esm(
|
|
451751
|
-
|
|
451695
|
+
var init_input_terminal_consumer_snapshot = __esm(() => {
|
|
451696
|
+
init_input_disposition();
|
|
451752
451697
|
});
|
|
451753
451698
|
|
|
451754
451699
|
// src/websocket/listener/interrupted-turn-read.ts
|
|
@@ -451758,8 +451703,8 @@ function readInterruptedTurn(runtime, recoveryLineageId) {
|
|
|
451758
451703
|
const store3 = createInterruptedTurnStore();
|
|
451759
451704
|
return recoveryLineageId ? store3.readRecoveryView(runtime.agentId, runtime.conversationId, recoveryLineageId) : store3.read(runtime.agentId, runtime.conversationId);
|
|
451760
451705
|
}
|
|
451761
|
-
var init_interrupted_turn_read = __esm(
|
|
451762
|
-
|
|
451706
|
+
var init_interrupted_turn_read = __esm(() => {
|
|
451707
|
+
init_interrupted_turn_record();
|
|
451763
451708
|
});
|
|
451764
451709
|
|
|
451765
451710
|
// src/websocket/listener/turn-terminal.ts
|
|
@@ -451964,19 +451909,17 @@ function finishListenerTurn(runtime, lease, options) {
|
|
|
451964
451909
|
runtime.activeConnectionId = null;
|
|
451965
451910
|
return transition2;
|
|
451966
451911
|
}
|
|
451967
|
-
var init_turn_terminal = __esm(
|
|
451912
|
+
var init_turn_terminal = __esm(() => {
|
|
451968
451913
|
init_debug();
|
|
451969
|
-
|
|
451970
|
-
|
|
451971
|
-
|
|
451972
|
-
|
|
451973
|
-
|
|
451974
|
-
|
|
451975
|
-
|
|
451976
|
-
|
|
451977
|
-
|
|
451978
|
-
init_turn_finished_replay()
|
|
451979
|
-
]);
|
|
451914
|
+
init_connection();
|
|
451915
|
+
init_input_terminal_consumer_snapshot();
|
|
451916
|
+
init_input_terminal_journal();
|
|
451917
|
+
init_interrupted_turn_read();
|
|
451918
|
+
init_interrupted_turn_record();
|
|
451919
|
+
init_protocol_outbound();
|
|
451920
|
+
init_recoverable_notices();
|
|
451921
|
+
init_teleport_terminal_transfer();
|
|
451922
|
+
init_turn_finished_replay();
|
|
451980
451923
|
});
|
|
451981
451924
|
|
|
451982
451925
|
// src/websocket/listener/recovered-turn-finalizer.ts
|
|
@@ -452066,13 +452009,11 @@ function finalizeHandledRecoveryTurn(runtime, socket, params, finalize2) {
|
|
|
452066
452009
|
});
|
|
452067
452010
|
return transition2;
|
|
452068
452011
|
}
|
|
452069
|
-
var init_recovered_turn_finalizer = __esm(
|
|
452070
|
-
|
|
452071
|
-
|
|
452072
|
-
|
|
452073
|
-
|
|
452074
|
-
init_turn_terminal()
|
|
452075
|
-
]);
|
|
452012
|
+
var init_recovered_turn_finalizer = __esm(() => {
|
|
452013
|
+
init_interrupted_turn_record();
|
|
452014
|
+
init_recoverable_notices();
|
|
452015
|
+
init_teleport();
|
|
452016
|
+
init_turn_terminal();
|
|
452076
452017
|
});
|
|
452077
452018
|
|
|
452078
452019
|
// src/websocket/listener/recovery-claim-completion.ts
|
|
@@ -452185,8 +452126,8 @@ function createRecoveryEvidenceCheckpoint(runtime, writer, initialRevision, reco
|
|
|
452185
452126
|
}
|
|
452186
452127
|
};
|
|
452187
452128
|
}
|
|
452188
|
-
var init_recovery_evidence = __esm(
|
|
452189
|
-
|
|
452129
|
+
var init_recovery_evidence = __esm(() => {
|
|
452130
|
+
init_interrupted_turn_record();
|
|
452190
452131
|
});
|
|
452191
452132
|
|
|
452192
452133
|
// src/websocket/listener/secrets-sync.ts
|
|
@@ -452309,8 +452250,8 @@ function createTurnDurabilityOwnership() {
|
|
|
452309
452250
|
}
|
|
452310
452251
|
};
|
|
452311
452252
|
}
|
|
452312
|
-
var init_turn_durability_ownership = __esm(
|
|
452313
|
-
|
|
452253
|
+
var init_turn_durability_ownership = __esm(() => {
|
|
452254
|
+
init_interrupted_turn_record();
|
|
452314
452255
|
});
|
|
452315
452256
|
|
|
452316
452257
|
// src/websocket/listener/turn-input-state.ts
|
|
@@ -452959,41 +452900,39 @@ async function executeRecoveredApprovalContinuation(params) {
|
|
|
452959
452900
|
}
|
|
452960
452901
|
}
|
|
452961
452902
|
}
|
|
452962
|
-
var init_recovery = __esm(
|
|
452903
|
+
var init_recovery = __esm(() => {
|
|
452904
|
+
init_approval_execution();
|
|
452963
452905
|
init_turn_recovery_policy();
|
|
452964
452906
|
init_accumulator();
|
|
452907
|
+
init_stream2();
|
|
452908
|
+
init_toolset();
|
|
452965
452909
|
init_debug();
|
|
452910
|
+
init_cloud_retry_message();
|
|
452911
|
+
init_connection();
|
|
452966
452912
|
init_constants3();
|
|
452913
|
+
init_conversation_runtime();
|
|
452967
452914
|
init_cwd();
|
|
452915
|
+
init_interrupted_turn_record();
|
|
452916
|
+
init_interrupts();
|
|
452917
|
+
init_mod_adapter2();
|
|
452968
452918
|
init_outbound_wire();
|
|
452969
452919
|
init_permission_mode();
|
|
452920
|
+
init_protocol_outbound();
|
|
452921
|
+
init_recoverable_notices();
|
|
452970
452922
|
init_recovery_error_policy();
|
|
452923
|
+
init_queue();
|
|
452971
452924
|
init_recovered_approval_retry();
|
|
452925
|
+
init_recovered_turn_finalizer();
|
|
452926
|
+
init_recovery_evidence();
|
|
452927
|
+
init_recovery_ownership();
|
|
452928
|
+
init_runtime6();
|
|
452972
452929
|
init_secrets_sync();
|
|
452973
452930
|
init_transport2();
|
|
452931
|
+
init_turn_durability_ownership();
|
|
452932
|
+
init_turn_finished_replay();
|
|
452974
452933
|
init_turn_input_state();
|
|
452934
|
+
init_turn_status();
|
|
452975
452935
|
init_recovery_debug();
|
|
452976
|
-
await __promiseAll([
|
|
452977
|
-
init_approval_execution(),
|
|
452978
|
-
init_stream2(),
|
|
452979
|
-
init_toolset(),
|
|
452980
|
-
init_cloud_retry_message(),
|
|
452981
|
-
init_connection(),
|
|
452982
|
-
init_conversation_runtime(),
|
|
452983
|
-
init_interrupted_turn_record(),
|
|
452984
|
-
init_interrupts(),
|
|
452985
|
-
init_mod_adapter2(),
|
|
452986
|
-
init_protocol_outbound(),
|
|
452987
|
-
init_recoverable_notices(),
|
|
452988
|
-
init_queue(),
|
|
452989
|
-
init_recovered_turn_finalizer(),
|
|
452990
|
-
init_recovery_evidence(),
|
|
452991
|
-
init_recovery_ownership(),
|
|
452992
|
-
init_runtime6(),
|
|
452993
|
-
init_turn_durability_ownership(),
|
|
452994
|
-
init_turn_finished_replay(),
|
|
452995
|
-
init_turn_status()
|
|
452996
|
-
]);
|
|
452997
452936
|
});
|
|
452998
452937
|
|
|
452999
452938
|
// src/websocket/listener/skill-injection.ts
|
|
@@ -453025,9 +452964,9 @@ function injectQueuedSkillContent(messages, context3) {
|
|
|
453025
452964
|
}
|
|
453026
452965
|
return [...messages, skillMessage];
|
|
453027
452966
|
}
|
|
453028
|
-
var init_skill_injection = __esm(
|
|
452967
|
+
var init_skill_injection = __esm(() => {
|
|
453029
452968
|
init_skill_content_registry();
|
|
453030
|
-
|
|
452969
|
+
init_protocol_outbound();
|
|
453031
452970
|
});
|
|
453032
452971
|
|
|
453033
452972
|
// src/websocket/listener/send.ts
|
|
@@ -453629,33 +453568,31 @@ async function sendApprovalContinuationWithRetry(conversationId, messages, opts,
|
|
|
453629
453568
|
}
|
|
453630
453569
|
}
|
|
453631
453570
|
var ACTIVE_BLOCKING_RUN_STATUSES2, BUSY_RUN_WAIT_TIMEOUT_MS, BUSY_RUN_POLL_INTERVAL_MS = 5000;
|
|
453632
|
-
var init_send = __esm(
|
|
453571
|
+
var init_send = __esm(() => {
|
|
453633
453572
|
init_error();
|
|
453634
453573
|
init_approval_recovery();
|
|
453635
453574
|
init_check_approval();
|
|
453636
453575
|
init_ephemeral_conversation();
|
|
453576
|
+
init_message();
|
|
453637
453577
|
init_turn_recovery_policy();
|
|
453638
453578
|
init_backend2();
|
|
453639
453579
|
init_error_formatter();
|
|
453580
|
+
init_toolset();
|
|
453640
453581
|
init_debug();
|
|
453641
453582
|
init_stream_abort_relay();
|
|
453583
|
+
init_approval();
|
|
453584
|
+
init_connection();
|
|
453642
453585
|
init_constants3();
|
|
453643
453586
|
init_cwd();
|
|
453587
|
+
init_interrupted_turn_read();
|
|
453588
|
+
init_mod_adapter2();
|
|
453644
453589
|
init_permission_mode();
|
|
453590
|
+
init_protocol_outbound();
|
|
453645
453591
|
init_recorded_tool_results();
|
|
453592
|
+
init_recovery();
|
|
453593
|
+
init_skill_injection();
|
|
453646
453594
|
init_turn_input_state();
|
|
453647
|
-
|
|
453648
|
-
init_message(),
|
|
453649
|
-
init_toolset(),
|
|
453650
|
-
init_approval(),
|
|
453651
|
-
init_connection(),
|
|
453652
|
-
init_interrupted_turn_read(),
|
|
453653
|
-
init_mod_adapter2(),
|
|
453654
|
-
init_protocol_outbound(),
|
|
453655
|
-
init_recovery(),
|
|
453656
|
-
init_skill_injection(),
|
|
453657
|
-
init_turn_status()
|
|
453658
|
-
]);
|
|
453595
|
+
init_turn_status();
|
|
453659
453596
|
ACTIVE_BLOCKING_RUN_STATUSES2 = new Set(["created", "running"]);
|
|
453660
453597
|
BUSY_RUN_WAIT_TIMEOUT_MS = 5 * 60 * 1000;
|
|
453661
453598
|
});
|
|
@@ -453677,8 +453614,8 @@ function emitStreamRecoveryStatusDeltas(socket, runtime, params) {
|
|
|
453677
453614
|
}
|
|
453678
453615
|
}
|
|
453679
453616
|
var TERMINAL_EOF_WARNING = "Stream did not close after completing, continued without waiting", STREAM_STALL_WARNING = "Stream went silent, reconnecting to recover the missed tail";
|
|
453680
|
-
var init_stream_recovery_status = __esm(
|
|
453681
|
-
|
|
453617
|
+
var init_stream_recovery_status = __esm(() => {
|
|
453618
|
+
init_protocol_outbound();
|
|
453682
453619
|
});
|
|
453683
453620
|
|
|
453684
453621
|
// node_modules/diff/libesm/diff/base.js
|
|
@@ -455900,9 +455837,9 @@ async function classifyApprovals(approvals, opts = {}) {
|
|
|
455900
455837
|
}
|
|
455901
455838
|
return { needsUserInput, autoAllowed, autoDenied };
|
|
455902
455839
|
}
|
|
455903
|
-
var init_approval_classification = __esm(
|
|
455840
|
+
var init_approval_classification = __esm(() => {
|
|
455841
|
+
init_manager2();
|
|
455904
455842
|
init_debug();
|
|
455905
|
-
await init_manager2();
|
|
455906
455843
|
});
|
|
455907
455844
|
|
|
455908
455845
|
// src/websocket/listener/approval-suggestions.ts
|
|
@@ -455961,11 +455898,9 @@ async function applySuggestedPermissionsForApproval(params) {
|
|
|
455961
455898
|
}
|
|
455962
455899
|
return true;
|
|
455963
455900
|
}
|
|
455964
|
-
var init_approval_suggestions = __esm(
|
|
455965
|
-
|
|
455966
|
-
|
|
455967
|
-
init_manager2()
|
|
455968
|
-
]);
|
|
455901
|
+
var init_approval_suggestions = __esm(() => {
|
|
455902
|
+
init_approval_classification();
|
|
455903
|
+
init_manager2();
|
|
455969
455904
|
});
|
|
455970
455905
|
|
|
455971
455906
|
// src/websocket/listener/approval-transport-wait.ts
|
|
@@ -455985,12 +455920,10 @@ var APPROVAL_TRANSPORT_REOPEN_POLL_MS = 50;
|
|
|
455985
455920
|
function appendQueuedTurnToInput(state2, queuedTurn) {
|
|
455986
455921
|
return createTurnInputState([...state2.messages, ...queuedTurn.messages], mergeImageFailureModesByMessageOtid(state2.imageFailureModesByMessageOtid, getInboundImageFailureModes(queuedTurn)));
|
|
455987
455922
|
}
|
|
455988
|
-
var init_continuation_input = __esm(
|
|
455923
|
+
var init_continuation_input = __esm(() => {
|
|
455924
|
+
init_message_image_normalization();
|
|
455925
|
+
init_image_policy();
|
|
455989
455926
|
init_turn_input_state();
|
|
455990
|
-
await __promiseAll([
|
|
455991
|
-
init_message_image_normalization(),
|
|
455992
|
-
init_image_policy()
|
|
455993
|
-
]);
|
|
455994
455927
|
});
|
|
455995
455928
|
|
|
455996
455929
|
// src/websocket/listener/turn-approval.ts
|
|
@@ -456559,31 +456492,29 @@ async function handleApprovalStop(params) {
|
|
|
456559
456492
|
lastApprovalContinuationAccepted: true
|
|
456560
456493
|
};
|
|
456561
456494
|
}
|
|
456562
|
-
var init_turn_approval = __esm(
|
|
456495
|
+
var init_turn_approval = __esm(() => {
|
|
456496
|
+
init_approval_execution();
|
|
456563
456497
|
init_diff_preview();
|
|
456564
456498
|
init_format_denial();
|
|
456499
|
+
init_message_image_normalization();
|
|
456500
|
+
init_approval();
|
|
456501
|
+
init_approval_suggestions();
|
|
456502
|
+
init_connection();
|
|
456503
|
+
init_continuation_input();
|
|
456504
|
+
init_interrupted_turn_read();
|
|
456505
|
+
init_interrupted_turn_record();
|
|
456506
|
+
init_interrupts();
|
|
456565
456507
|
init_outbound_wire();
|
|
456508
|
+
init_protocol_outbound();
|
|
456509
|
+
init_queue();
|
|
456510
|
+
init_recovery();
|
|
456566
456511
|
init_secrets_sync();
|
|
456512
|
+
init_send();
|
|
456513
|
+
init_skill_injection();
|
|
456514
|
+
init_teleport();
|
|
456567
456515
|
init_transport2();
|
|
456568
456516
|
init_turn_input_state();
|
|
456569
|
-
|
|
456570
|
-
init_approval_execution(),
|
|
456571
|
-
init_message_image_normalization(),
|
|
456572
|
-
init_approval(),
|
|
456573
|
-
init_approval_suggestions(),
|
|
456574
|
-
init_connection(),
|
|
456575
|
-
init_continuation_input(),
|
|
456576
|
-
init_interrupted_turn_read(),
|
|
456577
|
-
init_interrupted_turn_record(),
|
|
456578
|
-
init_interrupts(),
|
|
456579
|
-
init_protocol_outbound(),
|
|
456580
|
-
init_queue(),
|
|
456581
|
-
init_recovery(),
|
|
456582
|
-
init_send(),
|
|
456583
|
-
init_skill_injection(),
|
|
456584
|
-
init_teleport(),
|
|
456585
|
-
init_turn_status()
|
|
456586
|
-
]);
|
|
456517
|
+
init_turn_status();
|
|
456587
456518
|
});
|
|
456588
456519
|
|
|
456589
456520
|
// src/agent/attached-repository-git-sync.ts
|
|
@@ -456929,15 +456860,15 @@ async function runPostTurnMemorySync(params, dependencies4 = {}) {
|
|
|
456929
456860
|
debugWarn("memfs-git", `${debugLabel} shared-memory sync failed: ${error5 instanceof Error ? error5.message : String(error5)}`);
|
|
456930
456861
|
}
|
|
456931
456862
|
}
|
|
456932
|
-
var init_memory_git_sync = __esm(
|
|
456863
|
+
var init_memory_git_sync = __esm(() => {
|
|
456933
456864
|
init_attached_repository_git_sync();
|
|
456934
456865
|
init_memory_filesystem2();
|
|
456935
456866
|
init_memory_git();
|
|
456936
456867
|
init_memory_operation();
|
|
456937
456868
|
init_constants2();
|
|
456938
456869
|
init_memory_task_lifecycle();
|
|
456870
|
+
init_task();
|
|
456939
456871
|
init_debug();
|
|
456940
|
-
await init_task();
|
|
456941
456872
|
});
|
|
456942
456873
|
|
|
456943
456874
|
// src/websocket/listener/channel-runtime-tools.ts
|
|
@@ -457012,16 +456943,14 @@ async function runListenerTurnCleanup(params) {
|
|
|
457012
456943
|
});
|
|
457013
456944
|
}
|
|
457014
456945
|
}
|
|
457015
|
-
var init_turn_cleanup = __esm(
|
|
456946
|
+
var init_turn_cleanup = __esm(() => {
|
|
456947
|
+
init_memory_git_sync();
|
|
457016
456948
|
init_settings_manager();
|
|
457017
456949
|
init_channel_runtime_tools();
|
|
456950
|
+
init_connection();
|
|
457018
456951
|
init_permission_mode();
|
|
456952
|
+
init_protocol_outbound();
|
|
457019
456953
|
init_transport2();
|
|
457020
|
-
await __promiseAll([
|
|
457021
|
-
init_memory_git_sync(),
|
|
457022
|
-
init_connection(),
|
|
457023
|
-
init_protocol_outbound()
|
|
457024
|
-
]);
|
|
457025
456954
|
});
|
|
457026
456955
|
|
|
457027
456956
|
// src/agent/conversation-description.ts
|
|
@@ -457733,12 +457662,12 @@ function rowToolCalls(row, index, diagnostics2) {
|
|
|
457733
457662
|
}
|
|
457734
457663
|
return calls;
|
|
457735
457664
|
}
|
|
457736
|
-
function
|
|
457665
|
+
function contentText3(content) {
|
|
457737
457666
|
if (typeof content === "string") {
|
|
457738
457667
|
if (content.startsWith(CONTENT_JSON_PREFIX)) {
|
|
457739
457668
|
const encoded = content.slice(CONTENT_JSON_PREFIX.length);
|
|
457740
457669
|
try {
|
|
457741
|
-
return
|
|
457670
|
+
return contentText3(JSON.parse(encoded));
|
|
457742
457671
|
} catch {
|
|
457743
457672
|
return encoded;
|
|
457744
457673
|
}
|
|
@@ -457824,7 +457753,7 @@ var init_hermes = __esm(() => {
|
|
|
457824
457753
|
});
|
|
457825
457754
|
};
|
|
457826
457755
|
if (row.role === "user") {
|
|
457827
|
-
const content =
|
|
457756
|
+
const content = contentText3(row.content);
|
|
457828
457757
|
if (content) {
|
|
457829
457758
|
emit({
|
|
457830
457759
|
type: "message",
|
|
@@ -457844,7 +457773,7 @@ var init_hermes = __esm(() => {
|
|
|
457844
457773
|
...timestamp ? { timestamp } : {}
|
|
457845
457774
|
});
|
|
457846
457775
|
}
|
|
457847
|
-
const content =
|
|
457776
|
+
const content = contentText3(row.content);
|
|
457848
457777
|
if (content) {
|
|
457849
457778
|
emit({
|
|
457850
457779
|
type: "message",
|
|
@@ -457867,7 +457796,7 @@ var init_hermes = __esm(() => {
|
|
|
457867
457796
|
if (row.role === "tool") {
|
|
457868
457797
|
emit({
|
|
457869
457798
|
type: "tool_result",
|
|
457870
|
-
content:
|
|
457799
|
+
content: contentText3(row.content),
|
|
457871
457800
|
...typeof row.tool_call_id === "string" && row.tool_call_id ? { callId: row.tool_call_id } : {},
|
|
457872
457801
|
...timestamp ? { timestamp } : {}
|
|
457873
457802
|
});
|
|
@@ -462010,7 +461939,7 @@ async function runExplicitReflectionIntegration(params) {
|
|
|
462010
461939
|
const {
|
|
462011
461940
|
spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2,
|
|
462012
461941
|
waitForBackgroundSubagentConversationId: waitForBackgroundSubagentConversationId2
|
|
462013
|
-
} = await
|
|
461942
|
+
} = await Promise.resolve().then(() => (init_task(), exports_task));
|
|
462014
461943
|
return await new Promise((resolve39) => {
|
|
462015
461944
|
try {
|
|
462016
461945
|
const { subagentId } = spawnBackgroundSubagentTask2({
|
|
@@ -462237,7 +462166,7 @@ async function launchReflectionSubagent(options, dependencies4 = {}) {
|
|
|
462237
462166
|
reflectionPromptOverride: options.reflectionPromptOverride
|
|
462238
462167
|
});
|
|
462239
462168
|
preparedWorktree = worktree;
|
|
462240
|
-
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2, waitForBackgroundSubagentAgentId: waitForBackgroundSubagentAgentId2 } = await
|
|
462169
|
+
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2, waitForBackgroundSubagentAgentId: waitForBackgroundSubagentAgentId2 } = await Promise.resolve().then(() => (init_task(), exports_task));
|
|
462241
462170
|
const emitReflectionStart = (resolvedAgentId) => {
|
|
462242
462171
|
emitReflectionRunStart({
|
|
462243
462172
|
triggerSource,
|
|
@@ -462465,14 +462394,12 @@ function buildMaybeLaunchReflectionSubagent(params) {
|
|
|
462465
462394
|
return result3.launched;
|
|
462466
462395
|
};
|
|
462467
462396
|
}
|
|
462468
|
-
var init_turn_events = __esm(
|
|
462397
|
+
var init_turn_events = __esm(() => {
|
|
462469
462398
|
init_reflection_launcher();
|
|
462470
462399
|
init_settings_manager();
|
|
462471
462400
|
init_telemetry();
|
|
462472
|
-
|
|
462473
|
-
|
|
462474
|
-
init_protocol_outbound()
|
|
462475
|
-
]);
|
|
462401
|
+
init_mod_adapter2();
|
|
462402
|
+
init_protocol_outbound();
|
|
462476
462403
|
});
|
|
462477
462404
|
|
|
462478
462405
|
// src/websocket/listener/turn-completion.ts
|
|
@@ -462547,14 +462474,14 @@ async function completeSuccessfulListenerTurn(params) {
|
|
|
462547
462474
|
}
|
|
462548
462475
|
return "completed";
|
|
462549
462476
|
}
|
|
462550
|
-
var init_turn_completion = __esm(
|
|
462477
|
+
var init_turn_completion = __esm(() => {
|
|
462551
462478
|
init_conversation_description();
|
|
462552
462479
|
init_memory_reminder();
|
|
462553
462480
|
init_post_turn_reflection();
|
|
462554
462481
|
init_reflection_transcript();
|
|
462555
462482
|
init_settings_manager();
|
|
462556
462483
|
init_debug();
|
|
462557
|
-
|
|
462484
|
+
init_turn_events();
|
|
462558
462485
|
});
|
|
462559
462486
|
|
|
462560
462487
|
// src/tools/execution-context-mcp-originator.ts
|
|
@@ -462569,8 +462496,8 @@ function rebindTurnToolContextMcpOriginator(turnToolContextId, mcpOriginatorSupe
|
|
|
462569
462496
|
return;
|
|
462570
462497
|
context3.runtimeContext.mcpOriginatorSuperRunId = next;
|
|
462571
462498
|
}
|
|
462572
|
-
var init_execution_context_mcp_originator = __esm(
|
|
462573
|
-
|
|
462499
|
+
var init_execution_context_mcp_originator = __esm(() => {
|
|
462500
|
+
init_manager2();
|
|
462574
462501
|
});
|
|
462575
462502
|
|
|
462576
462503
|
// src/websocket/listener/mcp-originator-scope.ts
|
|
@@ -462677,15 +462604,13 @@ function createTurnFinalizer(params) {
|
|
|
462677
462604
|
}
|
|
462678
462605
|
};
|
|
462679
462606
|
}
|
|
462680
|
-
var init_turn_finalizer = __esm(
|
|
462607
|
+
var init_turn_finalizer = __esm(() => {
|
|
462681
462608
|
init_mcp_originator_tokens();
|
|
462682
|
-
|
|
462683
|
-
|
|
462684
|
-
|
|
462685
|
-
|
|
462686
|
-
|
|
462687
|
-
init_turn_terminal()
|
|
462688
|
-
]);
|
|
462609
|
+
init_execution_context_mcp_originator();
|
|
462610
|
+
init_interrupted_turn_record();
|
|
462611
|
+
init_teleport();
|
|
462612
|
+
init_turn_durability_ownership();
|
|
462613
|
+
init_turn_terminal();
|
|
462689
462614
|
});
|
|
462690
462615
|
|
|
462691
462616
|
// src/websocket/listener/turn-max-turns.ts
|
|
@@ -462715,8 +462640,8 @@ function finishTurnIfMaxTurnsReached(params) {
|
|
|
462715
462640
|
});
|
|
462716
462641
|
return true;
|
|
462717
462642
|
}
|
|
462718
|
-
var init_turn_max_turns = __esm(
|
|
462719
|
-
|
|
462643
|
+
var init_turn_max_turns = __esm(() => {
|
|
462644
|
+
init_interrupts();
|
|
462720
462645
|
});
|
|
462721
462646
|
|
|
462722
462647
|
// src/websocket/listener/turn-observers.ts
|
|
@@ -462853,17 +462778,15 @@ function createTurnInputSender(params) {
|
|
|
462853
462778
|
}
|
|
462854
462779
|
};
|
|
462855
462780
|
}
|
|
462856
|
-
var init_turn_send = __esm(
|
|
462781
|
+
var init_turn_send = __esm(() => {
|
|
462857
462782
|
init_turn_recovery_policy();
|
|
462858
462783
|
init_error_formatter();
|
|
462859
462784
|
init_constants3();
|
|
462785
|
+
init_recoverable_notices();
|
|
462786
|
+
init_recovery();
|
|
462787
|
+
init_send();
|
|
462788
|
+
init_skill_injection();
|
|
462860
462789
|
init_turn_input_state();
|
|
462861
|
-
await __promiseAll([
|
|
462862
|
-
init_recoverable_notices(),
|
|
462863
|
-
init_recovery(),
|
|
462864
|
-
init_send(),
|
|
462865
|
-
init_skill_injection()
|
|
462866
|
-
]);
|
|
462867
462790
|
});
|
|
462868
462791
|
|
|
462869
462792
|
// src/reminders/listen-context.ts
|
|
@@ -463020,16 +462943,14 @@ function clearListenerWarmState(listener) {
|
|
|
463020
462943
|
listener.agentMetadataByAgent.clear();
|
|
463021
462944
|
}
|
|
463022
462945
|
var defaultWarmupDeps, warmupDeps;
|
|
463023
|
-
var init_warmup = __esm(
|
|
462946
|
+
var init_warmup = __esm(() => {
|
|
463024
462947
|
init_backend2();
|
|
463025
462948
|
init_debug();
|
|
463026
462949
|
init_memfs_sync();
|
|
462950
|
+
init_mod_adapter2();
|
|
462951
|
+
init_protocol_outbound();
|
|
463027
462952
|
init_secrets_sync();
|
|
463028
462953
|
init_transport2();
|
|
463029
|
-
await __promiseAll([
|
|
463030
|
-
init_mod_adapter2(),
|
|
463031
|
-
init_protocol_outbound()
|
|
463032
|
-
]);
|
|
463033
462954
|
defaultWarmupDeps = {
|
|
463034
462955
|
ensureMemfsSyncedForAgent,
|
|
463035
462956
|
ensureSecretsHydratedForAgent,
|
|
@@ -463300,7 +463221,7 @@ async function prepareListenerTurn(params) {
|
|
|
463300
463221
|
...overrideModel ? { overrideModel } : {}
|
|
463301
463222
|
};
|
|
463302
463223
|
}
|
|
463303
|
-
var init_turn_setup = __esm(
|
|
463224
|
+
var init_turn_setup = __esm(() => {
|
|
463304
463225
|
init_client_skills();
|
|
463305
463226
|
init_context();
|
|
463306
463227
|
init_preloaded_skills();
|
|
@@ -463309,25 +463230,23 @@ var init_turn_setup = __esm(async () => {
|
|
|
463309
463230
|
init_engine3();
|
|
463310
463231
|
init_runtime_context();
|
|
463311
463232
|
init_error_reporting();
|
|
463233
|
+
init_client_preferences();
|
|
463312
463234
|
init_interactive_policy();
|
|
463313
463235
|
init_tool_policy();
|
|
463236
|
+
init_toolset();
|
|
463314
463237
|
init_debug();
|
|
463315
463238
|
init_shell_context();
|
|
463316
463239
|
init_channel_runtime_tools();
|
|
463240
|
+
init_connection();
|
|
463241
|
+
init_external_tools();
|
|
463242
|
+
init_image_policy();
|
|
463243
|
+
init_interrupts();
|
|
463244
|
+
init_mod_adapter2();
|
|
463245
|
+
init_runtime6();
|
|
463246
|
+
init_turn_events();
|
|
463317
463247
|
init_turn_input_state();
|
|
463318
463248
|
init_turn_transcript();
|
|
463319
|
-
|
|
463320
|
-
init_client_preferences(),
|
|
463321
|
-
init_toolset(),
|
|
463322
|
-
init_connection(),
|
|
463323
|
-
init_external_tools(),
|
|
463324
|
-
init_image_policy(),
|
|
463325
|
-
init_interrupts(),
|
|
463326
|
-
init_mod_adapter2(),
|
|
463327
|
-
init_runtime6(),
|
|
463328
|
-
init_turn_events(),
|
|
463329
|
-
init_warmup()
|
|
463330
|
-
]);
|
|
463249
|
+
init_warmup();
|
|
463331
463250
|
});
|
|
463332
463251
|
|
|
463333
463252
|
// src/websocket/listener/turn-stream.ts
|
|
@@ -463425,20 +463344,18 @@ async function drainTurnStreamWithEmission(stream11, buffers, socket, runtime, p
|
|
|
463425
463344
|
}, runtime.contextTracker, undefined, LISTENER_STREAM_RESUME_POLICY);
|
|
463426
463345
|
return { result: result3, runId };
|
|
463427
463346
|
}
|
|
463428
|
-
var init_turn_stream = __esm(
|
|
463347
|
+
var init_turn_stream = __esm(() => {
|
|
463348
|
+
init_message();
|
|
463429
463349
|
init_turn_recovery_policy();
|
|
463350
|
+
init_stream2();
|
|
463430
463351
|
init_debug();
|
|
463352
|
+
init_cloud_retry_message();
|
|
463431
463353
|
init_constants3();
|
|
463432
|
-
|
|
463433
|
-
|
|
463434
|
-
|
|
463435
|
-
|
|
463436
|
-
|
|
463437
|
-
init_interrupts(),
|
|
463438
|
-
init_protocol_outbound(),
|
|
463439
|
-
init_recoverable_notices(),
|
|
463440
|
-
init_recovery()
|
|
463441
|
-
]);
|
|
463354
|
+
init_interrupted_turn_record();
|
|
463355
|
+
init_interrupts();
|
|
463356
|
+
init_protocol_outbound();
|
|
463357
|
+
init_recoverable_notices();
|
|
463358
|
+
init_recovery();
|
|
463442
463359
|
});
|
|
463443
463360
|
|
|
463444
463361
|
// src/websocket/listener/turn.ts
|
|
@@ -464131,11 +464048,12 @@ async function handleIncomingMessageInner(msg, socket, runtime, onStatusChange,
|
|
|
464131
464048
|
evictConversationRuntimeIfIdle(runtime);
|
|
464132
464049
|
}
|
|
464133
464050
|
}
|
|
464134
|
-
var init_turn = __esm(
|
|
464051
|
+
var init_turn = __esm(() => {
|
|
464135
464052
|
init_approval_recovery();
|
|
464136
464053
|
init_chatgpt_plan_rotation();
|
|
464137
464054
|
init_check_approval();
|
|
464138
464055
|
init_ephemeral_conversation();
|
|
464056
|
+
init_message();
|
|
464139
464057
|
init_turn_recovery_policy();
|
|
464140
464058
|
init_accumulator();
|
|
464141
464059
|
init_telemetry();
|
|
@@ -464143,34 +464061,31 @@ var init_turn = __esm(async () => {
|
|
|
464143
464061
|
init_debug();
|
|
464144
464062
|
init_constants3();
|
|
464145
464063
|
init_cwd();
|
|
464064
|
+
init_interrupts();
|
|
464146
464065
|
init_permission_mode();
|
|
464066
|
+
init_protocol_outbound();
|
|
464067
|
+
init_recoverable_notices();
|
|
464068
|
+
init_recovery();
|
|
464069
|
+
init_runtime6();
|
|
464070
|
+
init_send();
|
|
464071
|
+
init_skill_injection();
|
|
464072
|
+
init_stream_recovery_status();
|
|
464073
|
+
init_teleport();
|
|
464074
|
+
init_turn_approval();
|
|
464075
|
+
init_turn_cleanup();
|
|
464076
|
+
init_turn_completion();
|
|
464147
464077
|
init_turn_context();
|
|
464078
|
+
init_turn_correlation();
|
|
464079
|
+
init_turn_durability_ownership();
|
|
464080
|
+
init_turn_finalizer();
|
|
464148
464081
|
init_turn_input_state();
|
|
464082
|
+
init_turn_max_turns();
|
|
464149
464083
|
init_turn_observers();
|
|
464084
|
+
init_turn_send();
|
|
464085
|
+
init_turn_setup();
|
|
464086
|
+
init_turn_status();
|
|
464087
|
+
init_turn_stream();
|
|
464150
464088
|
init_turn_transcript();
|
|
464151
|
-
await __promiseAll([
|
|
464152
|
-
init_message(),
|
|
464153
|
-
init_interrupts(),
|
|
464154
|
-
init_protocol_outbound(),
|
|
464155
|
-
init_recoverable_notices(),
|
|
464156
|
-
init_recovery(),
|
|
464157
|
-
init_runtime6(),
|
|
464158
|
-
init_send(),
|
|
464159
|
-
init_skill_injection(),
|
|
464160
|
-
init_stream_recovery_status(),
|
|
464161
|
-
init_teleport(),
|
|
464162
|
-
init_turn_approval(),
|
|
464163
|
-
init_turn_cleanup(),
|
|
464164
|
-
init_turn_completion(),
|
|
464165
|
-
init_turn_correlation(),
|
|
464166
|
-
init_turn_durability_ownership(),
|
|
464167
|
-
init_turn_finalizer(),
|
|
464168
|
-
init_turn_max_turns(),
|
|
464169
|
-
init_turn_send(),
|
|
464170
|
-
init_turn_setup(),
|
|
464171
|
-
init_turn_status(),
|
|
464172
|
-
init_turn_stream()
|
|
464173
|
-
]);
|
|
464174
464089
|
});
|
|
464175
464090
|
|
|
464176
464091
|
// src/websocket/listener/connection-lifecycle.ts
|
|
@@ -464292,19 +464207,17 @@ function closeListenerRuntimeConnections(runtime, suppressCallbacks) {
|
|
|
464292
464207
|
}
|
|
464293
464208
|
}
|
|
464294
464209
|
}
|
|
464295
|
-
var init_connection_lifecycle = __esm(
|
|
464210
|
+
var init_connection_lifecycle = __esm(() => {
|
|
464296
464211
|
init_terminal_handler();
|
|
464212
|
+
init_approval();
|
|
464213
|
+
init_connection();
|
|
464214
|
+
init_conversation_runtime();
|
|
464215
|
+
init_external_tools();
|
|
464216
|
+
init_input_disposition();
|
|
464217
|
+
init_recovery_ownership();
|
|
464218
|
+
init_runtime6();
|
|
464297
464219
|
init_transport2();
|
|
464298
|
-
|
|
464299
|
-
init_approval(),
|
|
464300
|
-
init_connection(),
|
|
464301
|
-
init_conversation_runtime(),
|
|
464302
|
-
init_external_tools(),
|
|
464303
|
-
init_input_disposition(),
|
|
464304
|
-
init_recovery_ownership(),
|
|
464305
|
-
init_runtime6(),
|
|
464306
|
-
init_turn()
|
|
464307
|
-
]);
|
|
464220
|
+
init_turn();
|
|
464308
464221
|
});
|
|
464309
464222
|
|
|
464310
464223
|
// src/websocket/listener/connection-state-sync.ts
|
|
@@ -464386,14 +464299,12 @@ async function replaySubscribedConnectionState(listener, transport3, runtime, sc
|
|
|
464386
464299
|
...connection ? { routing: toListenerConnection(connection.id) } : {}
|
|
464387
464300
|
});
|
|
464388
464301
|
}
|
|
464389
|
-
var init_connection_state_sync = __esm(
|
|
464390
|
-
|
|
464391
|
-
|
|
464392
|
-
|
|
464393
|
-
|
|
464394
|
-
|
|
464395
|
-
init_turn_finished_replay()
|
|
464396
|
-
]);
|
|
464302
|
+
var init_connection_state_sync = __esm(() => {
|
|
464303
|
+
init_approval();
|
|
464304
|
+
init_connection();
|
|
464305
|
+
init_protocol_outbound();
|
|
464306
|
+
init_runtime6();
|
|
464307
|
+
init_turn_finished_replay();
|
|
464397
464308
|
});
|
|
464398
464309
|
|
|
464399
464310
|
// src/websocket/listener/grep-in-files.ts
|
|
@@ -465279,13 +465190,13 @@ function createFileCommandSession(params) {
|
|
|
465279
465190
|
return { handle: handle2, dispose: dispose2 };
|
|
465280
465191
|
}
|
|
465281
465192
|
var import_picomatch2, logFileCommand, warnFileCommand, DIR_LISTING_IGNORED_NAMES, RECURSIVE_IGNORED_NAMES, PROTECTED_HOME_NAMES, MAX_SEARCH_VISITED_ENTRIES = 50000, MAX_TREE_ENTRIES = 5000, MAX_SEARCH_RESULTS = 200, MAX_BASE64_READ_BYTES, ignoreConfigCache;
|
|
465282
|
-
var init_file_commands = __esm(
|
|
465193
|
+
var init_file_commands = __esm(() => {
|
|
465283
465194
|
init_error_reporting();
|
|
465284
465195
|
init_debug();
|
|
465285
465196
|
init_text_files();
|
|
465286
465197
|
init_grep_in_files();
|
|
465198
|
+
init_protocol_inbound();
|
|
465287
465199
|
init_write_file_command();
|
|
465288
|
-
await init_protocol_inbound();
|
|
465289
465200
|
import_picomatch2 = __toESM(require_picomatch(), 1);
|
|
465290
465201
|
logFileCommand = debugLog.bind(null, "file-commands");
|
|
465291
465202
|
warnFileCommand = debugWarn.bind(null, "file-commands");
|
|
@@ -465515,9 +465426,9 @@ function adoptListenerClientReplacement(opts) {
|
|
|
465515
465426
|
return provenance.issuer;
|
|
465516
465427
|
}
|
|
465517
465428
|
var replacementProvenance;
|
|
465518
|
-
var init_listener_replacement = __esm(
|
|
465429
|
+
var init_listener_replacement = __esm(() => {
|
|
465430
|
+
init_runtime6();
|
|
465519
465431
|
init_startup_ingress();
|
|
465520
|
-
await init_runtime6();
|
|
465521
465432
|
replacementProvenance = new WeakMap;
|
|
465522
465433
|
});
|
|
465523
465434
|
|
|
@@ -465906,7 +465817,7 @@ async function expandBashCommands(content) {
|
|
|
465906
465817
|
if (matches3.length === 0) {
|
|
465907
465818
|
return content;
|
|
465908
465819
|
}
|
|
465909
|
-
const { spawnCommand: spawnCommand2 } = await
|
|
465820
|
+
const { spawnCommand: spawnCommand2 } = await Promise.resolve().then(() => (init_bash(), exports_bash));
|
|
465910
465821
|
const { getShellEnv: getShellEnv2 } = await Promise.resolve().then(() => (init_shell_env(), exports_shell_env));
|
|
465911
465822
|
let result3 = content;
|
|
465912
465823
|
for (const match3 of matches3) {
|
|
@@ -466332,9 +466243,9 @@ function handleSecretsCommand(parsed, context3) {
|
|
|
466332
466243
|
}
|
|
466333
466244
|
return false;
|
|
466334
466245
|
}
|
|
466335
|
-
var init_secrets2 = __esm(
|
|
466246
|
+
var init_secrets2 = __esm(() => {
|
|
466247
|
+
init_protocol_inbound();
|
|
466336
466248
|
init_secrets_sync();
|
|
466337
|
-
await init_protocol_inbound();
|
|
466338
466249
|
});
|
|
466339
466250
|
|
|
466340
466251
|
// src/websocket/listener/mod-commands.ts
|
|
@@ -466366,16 +466277,14 @@ async function runListenerModCommand(conversationRuntime, modCommand, parsed) {
|
|
|
466366
466277
|
};
|
|
466367
466278
|
return runModCommandWithTimeout(modCommand, context3);
|
|
466368
466279
|
}
|
|
466369
|
-
var init_mod_commands = __esm(
|
|
466280
|
+
var init_mod_commands = __esm(() => {
|
|
466281
|
+
init_message();
|
|
466370
466282
|
init_backend2();
|
|
466371
466283
|
init_command_runtime();
|
|
466372
466284
|
init_conversation_handle();
|
|
466373
466285
|
init_cwd();
|
|
466286
|
+
init_mod_adapter2();
|
|
466374
466287
|
init_permission_mode();
|
|
466375
|
-
await __promiseAll([
|
|
466376
|
-
init_message(),
|
|
466377
|
-
init_mod_adapter2()
|
|
466378
|
-
]);
|
|
466379
466288
|
});
|
|
466380
466289
|
|
|
466381
466290
|
// src/websocket/listener/commands.ts
|
|
@@ -466829,7 +466738,7 @@ async function handleReflectCommand(socket, conversationRuntime, args = "", acti
|
|
|
466829
466738
|
return `Failed to start reflection: ${result3.error instanceof Error ? result3.error.message : String(result3.error ?? "Unknown error")}`;
|
|
466830
466739
|
}
|
|
466831
466740
|
var REMOVED_CLEAR_COMMAND_MESSAGE = "/clear was removed; use /new to start a fresh conversation.", VALID_COMPACT_MODES;
|
|
466832
|
-
var init_commands2 = __esm(
|
|
466741
|
+
var init_commands2 = __esm(() => {
|
|
466833
466742
|
init_conversation_description();
|
|
466834
466743
|
init_max_context();
|
|
466835
466744
|
init_memory_filesystem2();
|
|
@@ -466848,18 +466757,16 @@ var init_commands2 = __esm(async () => {
|
|
|
466848
466757
|
init_settings_manager();
|
|
466849
466758
|
init_error_reporting();
|
|
466850
466759
|
init_debug();
|
|
466760
|
+
init_secrets2();
|
|
466851
466761
|
init_cwd();
|
|
466762
|
+
init_mod_adapter2();
|
|
466763
|
+
init_mod_commands();
|
|
466764
|
+
init_protocol_outbound();
|
|
466852
466765
|
init_remote_settings();
|
|
466853
466766
|
init_secrets_sync();
|
|
466767
|
+
init_turn();
|
|
466768
|
+
init_turn_events();
|
|
466854
466769
|
init_listener_constants();
|
|
466855
|
-
await __promiseAll([
|
|
466856
|
-
init_secrets2(),
|
|
466857
|
-
init_mod_adapter2(),
|
|
466858
|
-
init_mod_commands(),
|
|
466859
|
-
init_protocol_outbound(),
|
|
466860
|
-
init_turn(),
|
|
466861
|
-
init_turn_events()
|
|
466862
|
-
]);
|
|
466863
466770
|
VALID_COMPACT_MODES = new Set([
|
|
466864
466771
|
"all",
|
|
466865
466772
|
"sliding_window",
|
|
@@ -466999,10 +466906,10 @@ async function handleCwdProtocolCommand(command, context3) {
|
|
|
466999
466906
|
boot_working_directory: getBootWorkingDirectory(context3.runtime)
|
|
467000
466907
|
}, "get_cwd_map_response", "get_cwd_map");
|
|
467001
466908
|
}
|
|
467002
|
-
var init_boot_working_directory = __esm(
|
|
466909
|
+
var init_boot_working_directory = __esm(() => {
|
|
467003
466910
|
init_settings_manager();
|
|
467004
466911
|
init_cwd();
|
|
467005
|
-
|
|
466912
|
+
init_protocol_outbound();
|
|
467006
466913
|
});
|
|
467007
466914
|
|
|
467008
466915
|
// src/providers/chatgpt-reset-credit-service.ts
|
|
@@ -467793,10 +467700,10 @@ function handleConnectProvidersCommand(parsed, context3) {
|
|
|
467793
467700
|
}
|
|
467794
467701
|
return false;
|
|
467795
467702
|
}
|
|
467796
|
-
var init_connect_providers = __esm(
|
|
467703
|
+
var init_connect_providers = __esm(() => {
|
|
467797
467704
|
init_available_models();
|
|
467798
467705
|
init_connect_provider_service();
|
|
467799
|
-
|
|
467706
|
+
init_protocol_inbound();
|
|
467800
467707
|
});
|
|
467801
467708
|
|
|
467802
467709
|
// src/websocket/listener/commands/git-branches.ts
|
|
@@ -467880,13 +467787,11 @@ function handleGitBranchCommand(parsed, context3) {
|
|
|
467880
467787
|
}
|
|
467881
467788
|
return false;
|
|
467882
467789
|
}
|
|
467883
|
-
var init_git_branches = __esm(
|
|
467790
|
+
var init_git_branches = __esm(() => {
|
|
467884
467791
|
init_cwd();
|
|
467885
467792
|
init_device_git_context();
|
|
467886
|
-
|
|
467887
|
-
|
|
467888
|
-
init_protocol_outbound()
|
|
467889
|
-
]);
|
|
467793
|
+
init_protocol_inbound();
|
|
467794
|
+
init_protocol_outbound();
|
|
467890
467795
|
});
|
|
467891
467796
|
|
|
467892
467797
|
// src/websocket/listener/commands/memory-command-sync.ts
|
|
@@ -467910,9 +467815,9 @@ function handleMemfsSyncedMemoryProtocolCommand(parsed, context3) {
|
|
|
467910
467815
|
runDetachedListenerTask: createMemfsSyncedTaskRunner(parsed, context3.runtime, context3.runDetachedListenerTask)
|
|
467911
467816
|
});
|
|
467912
467817
|
}
|
|
467913
|
-
var init_memory_command_sync = __esm(
|
|
467818
|
+
var init_memory_command_sync = __esm(() => {
|
|
467914
467819
|
init_memfs_sync();
|
|
467915
|
-
|
|
467820
|
+
init_memory6();
|
|
467916
467821
|
});
|
|
467917
467822
|
|
|
467918
467823
|
// src/websocket/listener/commands/queue.ts
|
|
@@ -467941,11 +467846,9 @@ function handleQueueCommand(command, deps) {
|
|
|
467941
467846
|
}, "resume_queue_response", "resume_queue");
|
|
467942
467847
|
}
|
|
467943
467848
|
}
|
|
467944
|
-
var init_queue2 = __esm(
|
|
467945
|
-
|
|
467946
|
-
|
|
467947
|
-
init_queue()
|
|
467948
|
-
]);
|
|
467849
|
+
var init_queue2 = __esm(() => {
|
|
467850
|
+
init_protocol_outbound();
|
|
467851
|
+
init_queue();
|
|
467949
467852
|
});
|
|
467950
467853
|
|
|
467951
467854
|
// src/websocket/listener/input-disposition-ownership.ts
|
|
@@ -468027,8 +467930,8 @@ function hasLiveAcceptedInputOwnerWithOriginatorRetirement(runtime, identity2) {
|
|
|
468027
467930
|
return typeof owner === "string" && owner.length > 0;
|
|
468028
467931
|
}
|
|
468029
467932
|
var MAX_LATE_TERMINAL_CONSUMERS_PER_INPUT = 64;
|
|
468030
|
-
var init_input_disposition_ownership = __esm(
|
|
468031
|
-
|
|
467933
|
+
var init_input_disposition_ownership = __esm(() => {
|
|
467934
|
+
init_input_disposition();
|
|
468032
467935
|
});
|
|
468033
467936
|
|
|
468034
467937
|
// src/websocket/listener/inbound-dispatch.ts
|
|
@@ -468203,18 +468106,16 @@ function dispatchInboundMessageWhenReady(params) {
|
|
|
468203
468106
|
evictConversationRuntimeIfIdle(runtime);
|
|
468204
468107
|
});
|
|
468205
468108
|
}
|
|
468206
|
-
var init_inbound_dispatch = __esm(
|
|
468109
|
+
var init_inbound_dispatch = __esm(() => {
|
|
468207
468110
|
init_mcp_originator_tokens();
|
|
468208
468111
|
init_debug();
|
|
468209
|
-
|
|
468210
|
-
|
|
468211
|
-
|
|
468212
|
-
|
|
468213
|
-
|
|
468214
|
-
|
|
468215
|
-
|
|
468216
|
-
init_teleport()
|
|
468217
|
-
]);
|
|
468112
|
+
init_connection();
|
|
468113
|
+
init_input_disposition();
|
|
468114
|
+
init_input_disposition_ownership();
|
|
468115
|
+
init_input_disposition_rollback();
|
|
468116
|
+
init_queue();
|
|
468117
|
+
init_runtime6();
|
|
468118
|
+
init_teleport();
|
|
468218
468119
|
});
|
|
468219
468120
|
|
|
468220
468121
|
// src/websocket/listener/input-ack.ts
|
|
@@ -468273,12 +468174,10 @@ function acknowledgeAdmissionDuplicate(transport3, runtime, identity2, dispositi
|
|
|
468273
468174
|
acknowledgeInputFrame(transport3.safeSocketSend, transport3.socket, transport3.frame, true, undefined, disposition, "refresh", () => terminalConsumerId ? attachTerminalConsumerToLiveAcceptedInput(runtime, identity2, terminalConsumerId) : hasLiveAcceptedInputOwner(runtime, identity2));
|
|
468274
468175
|
}
|
|
468275
468176
|
var MCP_ORIGINATOR_DENIED_PERMANENT_ABORT_REASON = "mcp_originator_denied_permanent";
|
|
468276
|
-
var init_input_ack = __esm(
|
|
468177
|
+
var init_input_ack = __esm(() => {
|
|
468277
468178
|
init_mcp_originator_tokens();
|
|
468278
|
-
|
|
468279
|
-
|
|
468280
|
-
init_input_disposition_ownership()
|
|
468281
|
-
]);
|
|
468179
|
+
init_input_disposition();
|
|
468180
|
+
init_input_disposition_ownership();
|
|
468282
468181
|
});
|
|
468283
468182
|
|
|
468284
468183
|
// src/websocket/listener/protocol-logging.ts
|
|
@@ -468551,14 +468450,12 @@ function admitTeleportContinueInput(params) {
|
|
|
468551
468450
|
throw error5;
|
|
468552
468451
|
}
|
|
468553
468452
|
}
|
|
468554
|
-
var init_teleport_continue_input = __esm(
|
|
468555
|
-
|
|
468556
|
-
|
|
468557
|
-
|
|
468558
|
-
|
|
468559
|
-
|
|
468560
|
-
init_teleport()
|
|
468561
|
-
]);
|
|
468453
|
+
var init_teleport_continue_input = __esm(() => {
|
|
468454
|
+
init_connection();
|
|
468455
|
+
init_input_disposition();
|
|
468456
|
+
init_input_disposition_ownership();
|
|
468457
|
+
init_input_disposition_rollback();
|
|
468458
|
+
init_teleport();
|
|
468562
468459
|
});
|
|
468563
468460
|
|
|
468564
468461
|
// src/websocket/listener/input-frame-router.ts
|
|
@@ -468745,20 +468642,18 @@ async function routeInputFrame(deps) {
|
|
|
468745
468642
|
dispatchNonContentMessage(incoming);
|
|
468746
468643
|
return;
|
|
468747
468644
|
}
|
|
468748
|
-
var init_input_frame_router = __esm(
|
|
468645
|
+
var init_input_frame_router = __esm(() => {
|
|
468749
468646
|
init_mcp_originator_tokens();
|
|
468647
|
+
init_inbound_dispatch();
|
|
468648
|
+
init_input_ack();
|
|
468649
|
+
init_input_disposition();
|
|
468650
|
+
init_input_disposition_rollback();
|
|
468750
468651
|
init_protocol_logging();
|
|
468751
|
-
|
|
468752
|
-
|
|
468753
|
-
|
|
468754
|
-
|
|
468755
|
-
|
|
468756
|
-
init_queue(),
|
|
468757
|
-
init_recoverable_notices(),
|
|
468758
|
-
init_runtime6(),
|
|
468759
|
-
init_teleport(),
|
|
468760
|
-
init_teleport_continue_input()
|
|
468761
|
-
]);
|
|
468652
|
+
init_queue();
|
|
468653
|
+
init_recoverable_notices();
|
|
468654
|
+
init_runtime6();
|
|
468655
|
+
init_teleport();
|
|
468656
|
+
init_teleport_continue_input();
|
|
468762
468657
|
});
|
|
468763
468658
|
|
|
468764
468659
|
// src/websocket/listener/split-stream-lifecycle.ts
|
|
@@ -469025,11 +468920,11 @@ function handleListenerSocketOpenFailure({
|
|
|
469025
468920
|
terminateCurrentSocketPair(runtime, controlSocket, streamSocket);
|
|
469026
468921
|
}
|
|
469027
468922
|
var reconnectsInFlight, MAX_CLOSE_REASON_LENGTH = 120;
|
|
469028
|
-
var init_split_stream_lifecycle = __esm(
|
|
468923
|
+
var init_split_stream_lifecycle = __esm(() => {
|
|
469029
468924
|
init_debug();
|
|
469030
468925
|
init_constants3();
|
|
468926
|
+
init_runtime6();
|
|
469031
468927
|
init_transport2();
|
|
469032
|
-
await init_runtime6();
|
|
469033
468928
|
reconnectsInFlight = new WeakSet;
|
|
469034
468929
|
});
|
|
469035
468930
|
|
|
@@ -469046,11 +468941,9 @@ function handleTurnFinishedAck(runtime, socket, connectionId, parsed, dependenci
|
|
|
469046
468941
|
return;
|
|
469047
468942
|
(dependencies4.replay ?? replayPendingTurnFinishedToConnection)(socket, getOrCreateScopedRuntime(runtime, parsed.runtime.agent_id, parsed.runtime.conversation_id), connectionId);
|
|
469048
468943
|
}
|
|
469049
|
-
var init_turn_finished_ack = __esm(
|
|
469050
|
-
|
|
469051
|
-
|
|
469052
|
-
init_turn_finished_replay()
|
|
469053
|
-
]);
|
|
468944
|
+
var init_turn_finished_ack = __esm(() => {
|
|
468945
|
+
init_conversation_runtime();
|
|
468946
|
+
init_turn_finished_replay();
|
|
469054
468947
|
});
|
|
469055
468948
|
|
|
469056
468949
|
// src/tools/impl/stop-monitor.ts
|
|
@@ -469089,11 +468982,11 @@ async function stopMonitor(command) {
|
|
|
469089
468982
|
});
|
|
469090
468983
|
return { ...response, success: true, stopped: true };
|
|
469091
468984
|
}
|
|
469092
|
-
var init_stop_monitor = __esm(
|
|
468985
|
+
var init_stop_monitor = __esm(() => {
|
|
469093
468986
|
init_message_queue_bridge();
|
|
469094
468987
|
init_task_notifications();
|
|
468988
|
+
init_kill_bash();
|
|
469095
468989
|
init_process_manager();
|
|
469096
|
-
await init_kill_bash();
|
|
469097
468990
|
});
|
|
469098
468991
|
|
|
469099
468992
|
// src/websocket/listener/commands/monitors.ts
|
|
@@ -469111,11 +469004,9 @@ async function handleMonitorStopCommand(command, runtime) {
|
|
|
469111
469004
|
}
|
|
469112
469005
|
return stopMonitor(command);
|
|
469113
469006
|
}
|
|
469114
|
-
var init_monitors = __esm(
|
|
469115
|
-
|
|
469116
|
-
|
|
469117
|
-
init_runtime6()
|
|
469118
|
-
]);
|
|
469007
|
+
var init_monitors = __esm(() => {
|
|
469008
|
+
init_stop_monitor();
|
|
469009
|
+
init_runtime6();
|
|
469119
469010
|
});
|
|
469120
469011
|
|
|
469121
469012
|
// src/websocket/listener/commands/subagent-control.ts
|
|
@@ -469321,17 +469212,17 @@ async function handleSubagentStopCommand(command, parent) {
|
|
|
469321
469212
|
return { ...base2, success: true, stopped: true };
|
|
469322
469213
|
}
|
|
469323
469214
|
var DEDUPE_TTL_MS = 30000, responses;
|
|
469324
|
-
var init_subagent_control = __esm(
|
|
469215
|
+
var init_subagent_control = __esm(() => {
|
|
469325
469216
|
init_subagent_state();
|
|
469326
469217
|
init_runtime_context();
|
|
469327
469218
|
init_claude_stream_session();
|
|
469328
469219
|
init_codex_app_server();
|
|
469329
469220
|
init_cursor_session();
|
|
469330
469221
|
init_external_coding_agent();
|
|
469222
|
+
init_external_coding_agent_task();
|
|
469331
469223
|
init_native_session_capture();
|
|
469332
469224
|
init_process_manager();
|
|
469333
469225
|
init_cwd();
|
|
469334
|
-
await init_external_coding_agent_task();
|
|
469335
469226
|
responses = new Map;
|
|
469336
469227
|
});
|
|
469337
469228
|
|
|
@@ -469426,11 +469317,11 @@ async function handleLaunchSubagentCommand(command, parent, connectionId, launch
|
|
|
469426
469317
|
signal.removeEventListener("abort", onAbort);
|
|
469427
469318
|
}
|
|
469428
469319
|
}
|
|
469429
|
-
var init_subagents3 = __esm(
|
|
469320
|
+
var init_subagents3 = __esm(() => {
|
|
469430
469321
|
init_runtime_context();
|
|
469322
|
+
init_task();
|
|
469431
469323
|
init_cwd();
|
|
469432
469324
|
init_subagent_protocol_inbound();
|
|
469433
|
-
await init_task();
|
|
469434
469325
|
});
|
|
469435
469326
|
|
|
469436
469327
|
// src/websocket/listener/commands/task-control.ts
|
|
@@ -469468,13 +469359,11 @@ async function handleTaskControlCommand(command, context3) {
|
|
|
469468
469359
|
await execute();
|
|
469469
469360
|
}
|
|
469470
469361
|
}
|
|
469471
|
-
var init_task_control = __esm(
|
|
469362
|
+
var init_task_control = __esm(() => {
|
|
469363
|
+
init_monitors();
|
|
469364
|
+
init_subagent_control();
|
|
469472
469365
|
init_subagent_events2();
|
|
469473
|
-
|
|
469474
|
-
init_monitors(),
|
|
469475
|
-
init_subagent_control(),
|
|
469476
|
-
init_subagents3()
|
|
469477
|
-
]);
|
|
469366
|
+
init_subagents3();
|
|
469478
469367
|
});
|
|
469479
469368
|
|
|
469480
469369
|
// src/websocket/listener/message-router.ts
|
|
@@ -469547,7 +469436,7 @@ function createListenerMessageHandler(params) {
|
|
|
469547
469436
|
return;
|
|
469548
469437
|
}
|
|
469549
469438
|
if (parsed.type === "launch_subagent" || parsed.type === "monitor_stop" || parsed.type === "subagent_message" || parsed.type === "subagent_stop" || parsed.type === "read_subagent_events") {
|
|
469550
|
-
const { handleTaskControlCommand: handleTaskControlCommand2 } = await
|
|
469439
|
+
const { handleTaskControlCommand: handleTaskControlCommand2 } = await Promise.resolve().then(() => (init_task_control(), exports_task_control));
|
|
469551
469440
|
await handleTaskControlCommand2(parsed, {
|
|
469552
469441
|
runtime,
|
|
469553
469442
|
socket,
|
|
@@ -469936,44 +469825,42 @@ function createListenerMessageHandler(params) {
|
|
|
469936
469825
|
}
|
|
469937
469826
|
};
|
|
469938
469827
|
}
|
|
469939
|
-
var init_message_router = __esm(
|
|
469828
|
+
var init_message_router = __esm(() => {
|
|
469940
469829
|
init_system_prompt_warning();
|
|
469941
469830
|
init_settings_manager();
|
|
469942
469831
|
init_debug();
|
|
469943
469832
|
init_startup_log_boundary();
|
|
469944
469833
|
init_terminal_handler();
|
|
469834
|
+
init_commands2();
|
|
469835
|
+
init_agents_conversations();
|
|
469945
469836
|
init_app_server_info();
|
|
469837
|
+
init_boot_working_directory();
|
|
469946
469838
|
init_browser_device_mcp_oauth2();
|
|
469947
469839
|
init_chatgpt_reset_credits();
|
|
469948
469840
|
init_chatgpt_usage();
|
|
469841
|
+
init_connect_providers();
|
|
469842
|
+
init_cron3();
|
|
469843
|
+
init_git_branches();
|
|
469844
|
+
init_memory_command_sync();
|
|
469845
|
+
init_model_toolset();
|
|
469846
|
+
init_queue2();
|
|
469847
|
+
init_runtime_start();
|
|
469848
|
+
init_secrets2();
|
|
469849
|
+
init_settings3();
|
|
469850
|
+
init_skills_agents();
|
|
469851
|
+
init_connection();
|
|
469949
469852
|
init_cwd();
|
|
469853
|
+
init_external_tools();
|
|
469854
|
+
init_input_frame_router();
|
|
469855
|
+
init_protocol_inbound();
|
|
469950
469856
|
init_protocol_logging();
|
|
469951
|
-
|
|
469952
|
-
|
|
469953
|
-
|
|
469954
|
-
|
|
469955
|
-
|
|
469956
|
-
|
|
469957
|
-
|
|
469958
|
-
init_memory_command_sync(),
|
|
469959
|
-
init_model_toolset(),
|
|
469960
|
-
init_queue2(),
|
|
469961
|
-
init_runtime_start(),
|
|
469962
|
-
init_secrets2(),
|
|
469963
|
-
init_settings3(),
|
|
469964
|
-
init_skills_agents(),
|
|
469965
|
-
init_connection(),
|
|
469966
|
-
init_external_tools(),
|
|
469967
|
-
init_input_frame_router(),
|
|
469968
|
-
init_protocol_inbound(),
|
|
469969
|
-
init_protocol_outbound(),
|
|
469970
|
-
init_recoverable_notices(),
|
|
469971
|
-
init_runtime6(),
|
|
469972
|
-
init_split_stream_lifecycle(),
|
|
469973
|
-
init_teleport(),
|
|
469974
|
-
init_turn(),
|
|
469975
|
-
init_turn_finished_ack()
|
|
469976
|
-
]);
|
|
469857
|
+
init_protocol_outbound();
|
|
469858
|
+
init_recoverable_notices();
|
|
469859
|
+
init_runtime6();
|
|
469860
|
+
init_split_stream_lifecycle();
|
|
469861
|
+
init_teleport();
|
|
469862
|
+
init_turn();
|
|
469863
|
+
init_turn_finished_ack();
|
|
469977
469864
|
});
|
|
469978
469865
|
|
|
469979
469866
|
// src/websocket/listener/process-services.ts
|
|
@@ -470118,22 +470005,20 @@ async function waitForProcessServicesSlot(runtime, connectionId) {
|
|
|
470118
470005
|
}
|
|
470119
470006
|
return canInitiate();
|
|
470120
470007
|
}
|
|
470121
|
-
var init_process_services = __esm(
|
|
470008
|
+
var init_process_services = __esm(() => {
|
|
470122
470009
|
init_subagent_state();
|
|
470010
|
+
init_scheduler();
|
|
470123
470011
|
init_disk_space();
|
|
470124
470012
|
init_runtime_context();
|
|
470125
470013
|
init_process_manager();
|
|
470126
470014
|
init_message_queue_bridge();
|
|
470015
|
+
init_connection();
|
|
470016
|
+
init_conversation_runtime();
|
|
470017
|
+
init_protocol_outbound();
|
|
470018
|
+
init_queue();
|
|
470019
|
+
init_runtime6();
|
|
470127
470020
|
init_subagent_state_cache();
|
|
470128
470021
|
init_transport2();
|
|
470129
|
-
await __promiseAll([
|
|
470130
|
-
init_scheduler(),
|
|
470131
|
-
init_connection(),
|
|
470132
|
-
init_conversation_runtime(),
|
|
470133
|
-
init_protocol_outbound(),
|
|
470134
|
-
init_queue(),
|
|
470135
|
-
init_runtime6()
|
|
470136
|
-
]);
|
|
470137
470022
|
});
|
|
470138
470023
|
|
|
470139
470024
|
// src/websocket/listener/recorded-run-resolution.ts
|
|
@@ -470263,14 +470148,12 @@ function prepareRecordedInputTerminal(listener, terminalStore, runtime, record7,
|
|
|
470263
470148
|
promotePreparedInputTerminals(listener, terminalStore, scope);
|
|
470264
470149
|
return terminalAuthority ? !hasPreparedInputTerminalAuthority(listener, scope, terminalAuthority) : !hasPreparedInputTerminalRevision(listener, scope, proofRevision);
|
|
470265
470150
|
}
|
|
470266
|
-
var init_recorded_turn_terminal = __esm(
|
|
470267
|
-
|
|
470268
|
-
|
|
470269
|
-
|
|
470270
|
-
|
|
470271
|
-
|
|
470272
|
-
init_turn_finished_replay()
|
|
470273
|
-
]);
|
|
470151
|
+
var init_recorded_turn_terminal = __esm(() => {
|
|
470152
|
+
init_conversation_runtime();
|
|
470153
|
+
init_input_disposition();
|
|
470154
|
+
init_input_terminal_evidence();
|
|
470155
|
+
init_input_terminal_journal();
|
|
470156
|
+
init_turn_finished_replay();
|
|
470274
470157
|
});
|
|
470275
470158
|
|
|
470276
470159
|
// src/websocket/listener/teleport-ready-cleanup.ts
|
|
@@ -470844,28 +470727,26 @@ async function recoverRecordedTurns(listener, deps = {}) {
|
|
|
470844
470727
|
}
|
|
470845
470728
|
}
|
|
470846
470729
|
var scheduledRecoveries, recovering, pendingRecoveries, retryTimers;
|
|
470847
|
-
var init_recover_recorded_turn = __esm(
|
|
470730
|
+
var init_recover_recorded_turn = __esm(() => {
|
|
470848
470731
|
init_check_approval();
|
|
470849
470732
|
init_backend2();
|
|
470850
470733
|
init_environments3();
|
|
470851
470734
|
init_debug();
|
|
470735
|
+
init_connection();
|
|
470736
|
+
init_conversation_runtime();
|
|
470852
470737
|
init_cwd();
|
|
470738
|
+
init_input_disposition();
|
|
470739
|
+
init_input_terminal_evidence();
|
|
470740
|
+
init_input_terminal_journal();
|
|
470741
|
+
init_interrupted_turn_record();
|
|
470853
470742
|
init_recorded_run_resolution();
|
|
470854
|
-
|
|
470855
|
-
|
|
470856
|
-
|
|
470857
|
-
|
|
470858
|
-
|
|
470859
|
-
|
|
470860
|
-
|
|
470861
|
-
init_recorded_turn_terminal(),
|
|
470862
|
-
init_recovery_evidence(),
|
|
470863
|
-
init_recovery_ownership(),
|
|
470864
|
-
init_runtime6(),
|
|
470865
|
-
init_teleport_terminal_transfer(),
|
|
470866
|
-
init_turn(),
|
|
470867
|
-
init_turn_finished_replay()
|
|
470868
|
-
]);
|
|
470743
|
+
init_recorded_turn_terminal();
|
|
470744
|
+
init_recovery_evidence();
|
|
470745
|
+
init_recovery_ownership();
|
|
470746
|
+
init_runtime6();
|
|
470747
|
+
init_teleport_terminal_transfer();
|
|
470748
|
+
init_turn();
|
|
470749
|
+
init_turn_finished_replay();
|
|
470869
470750
|
scheduledRecoveries = new WeakSet;
|
|
470870
470751
|
recovering = new WeakSet;
|
|
470871
470752
|
pendingRecoveries = new WeakSet;
|
|
@@ -470885,12 +470766,10 @@ function createRestoredQueuePumpWake(runtime, options, processQueuedTurn) {
|
|
|
470885
470766
|
}
|
|
470886
470767
|
};
|
|
470887
470768
|
}
|
|
470888
|
-
var init_restored_queue_pump = __esm(
|
|
470889
|
-
|
|
470890
|
-
|
|
470891
|
-
|
|
470892
|
-
init_runtime6()
|
|
470893
|
-
]);
|
|
470769
|
+
var init_restored_queue_pump = __esm(() => {
|
|
470770
|
+
init_connection();
|
|
470771
|
+
init_queue();
|
|
470772
|
+
init_runtime6();
|
|
470894
470773
|
});
|
|
470895
470774
|
|
|
470896
470775
|
// src/websocket/listener/socket-send.ts
|
|
@@ -471106,17 +470985,15 @@ async function recoverApprovalStateForSync(runtime, scope, deps = {}, opts = {})
|
|
|
471106
470985
|
clearObserverCache();
|
|
471107
470986
|
return;
|
|
471108
470987
|
}
|
|
471109
|
-
var init_recovery_sync = __esm(
|
|
470988
|
+
var init_recovery_sync = __esm(() => {
|
|
471110
470989
|
init_error();
|
|
471111
470990
|
init_check_approval();
|
|
471112
470991
|
init_turn_recovery_policy();
|
|
471113
470992
|
init_backend2();
|
|
471114
|
-
|
|
471115
|
-
|
|
471116
|
-
|
|
471117
|
-
|
|
471118
|
-
init_runtime6()
|
|
471119
|
-
]);
|
|
470993
|
+
init_interrupted_turn_read();
|
|
470994
|
+
init_interrupted_turn_record();
|
|
470995
|
+
init_recovery_ownership();
|
|
470996
|
+
init_runtime6();
|
|
471120
470997
|
});
|
|
471121
470998
|
|
|
471122
470999
|
// src/websocket/listener/sync-replay.ts
|
|
@@ -471180,18 +471057,16 @@ async function replaySyncStateForRuntime(listenerRuntime, socket, scope, opts) {
|
|
|
471180
471057
|
await replaySubscribedConnectionState(listenerRuntime, socket, syncScopedRuntime, scope, opts);
|
|
471181
471058
|
(opts?.scheduleWarmupsAfterSync ?? scheduleListenerWarmupsAfterSync)(listenerRuntime, scope);
|
|
471182
471059
|
}
|
|
471183
|
-
var init_sync_replay = __esm(
|
|
471060
|
+
var init_sync_replay = __esm(() => {
|
|
471184
471061
|
init_error_reporting();
|
|
471185
471062
|
init_debug();
|
|
471186
|
-
|
|
471187
|
-
|
|
471188
|
-
|
|
471189
|
-
|
|
471190
|
-
|
|
471191
|
-
|
|
471192
|
-
|
|
471193
|
-
init_warmup()
|
|
471194
|
-
]);
|
|
471063
|
+
init_connection();
|
|
471064
|
+
init_connection_state_sync();
|
|
471065
|
+
init_conversation_runtime();
|
|
471066
|
+
init_recovery();
|
|
471067
|
+
init_recovery_sync();
|
|
471068
|
+
init_turn();
|
|
471069
|
+
init_warmup();
|
|
471195
471070
|
});
|
|
471196
471071
|
|
|
471197
471072
|
// src/websocket/listener/lifecycle.ts
|
|
@@ -471794,54 +471669,52 @@ function stopListenerClient() {
|
|
|
471794
471669
|
telemetry.setSurface(getTerminalTelemetrySurface(!process.stdin.isTTY));
|
|
471795
471670
|
stopRuntime(runtime, true);
|
|
471796
471671
|
}
|
|
471797
|
-
var init_lifecycle = __esm(
|
|
471672
|
+
var init_lifecycle = __esm(() => {
|
|
471798
471673
|
init_mcp_originator_tokens();
|
|
471799
471674
|
init_organization_id();
|
|
471675
|
+
init_scheduler();
|
|
471800
471676
|
init_runtime_context();
|
|
471801
471677
|
init_telemetry();
|
|
471678
|
+
init_manager2();
|
|
471802
471679
|
init_debug();
|
|
471803
471680
|
init_startup_log_boundary();
|
|
471804
471681
|
init_terminal_handler();
|
|
471682
|
+
init_approval();
|
|
471805
471683
|
init_auth3();
|
|
471806
471684
|
init_browser_device_mcp_oauth2();
|
|
471685
|
+
init_connection();
|
|
471686
|
+
init_connection_lifecycle();
|
|
471687
|
+
init_connection_state_sync();
|
|
471807
471688
|
init_constants3();
|
|
471689
|
+
init_control_inputs();
|
|
471690
|
+
init_conversation_runtime();
|
|
471808
471691
|
init_cwd();
|
|
471692
|
+
init_external_tools();
|
|
471693
|
+
init_file_commands();
|
|
471809
471694
|
init_handshake_deadline();
|
|
471810
471695
|
init_heartbeat();
|
|
471696
|
+
init_input_disposition();
|
|
471697
|
+
init_listener_replacement();
|
|
471811
471698
|
init_listener_task();
|
|
471699
|
+
init_message_router();
|
|
471700
|
+
init_mod_adapter2();
|
|
471812
471701
|
init_permission_mode();
|
|
471702
|
+
init_process_services();
|
|
471703
|
+
init_protocol_inbound();
|
|
471704
|
+
init_recover_recorded_turn();
|
|
471705
|
+
init_recovery_ownership();
|
|
471706
|
+
init_restored_queue_pump();
|
|
471707
|
+
init_runtime6();
|
|
471813
471708
|
init_socket_send();
|
|
471709
|
+
init_split_stream_lifecycle();
|
|
471814
471710
|
init_startup_deadline();
|
|
471815
471711
|
init_startup_frame_buffer();
|
|
471816
471712
|
init_startup_ingress();
|
|
471817
471713
|
init_stream_observers();
|
|
471714
|
+
init_sync_replay();
|
|
471818
471715
|
init_transport2();
|
|
471819
|
-
|
|
471820
|
-
|
|
471821
|
-
init_manager2(),
|
|
471822
|
-
init_approval(),
|
|
471823
|
-
init_connection(),
|
|
471824
|
-
init_connection_lifecycle(),
|
|
471825
|
-
init_connection_state_sync(),
|
|
471826
|
-
init_control_inputs(),
|
|
471827
|
-
init_conversation_runtime(),
|
|
471828
|
-
init_external_tools(),
|
|
471829
|
-
init_file_commands(),
|
|
471830
|
-
init_input_disposition(),
|
|
471831
|
-
init_listener_replacement(),
|
|
471832
|
-
init_message_router(),
|
|
471833
|
-
init_mod_adapter2(),
|
|
471834
|
-
init_process_services(),
|
|
471835
|
-
init_protocol_inbound(),
|
|
471836
|
-
init_recover_recorded_turn(),
|
|
471837
|
-
init_recovery_ownership(),
|
|
471838
|
-
init_restored_queue_pump(),
|
|
471839
|
-
init_runtime6(),
|
|
471840
|
-
init_split_stream_lifecycle(),
|
|
471841
|
-
init_sync_replay(),
|
|
471842
|
-
init_warmup(),
|
|
471843
|
-
init_worktree_watcher()
|
|
471844
|
-
]);
|
|
471716
|
+
init_warmup();
|
|
471717
|
+
init_worktree_watcher();
|
|
471845
471718
|
});
|
|
471846
471719
|
|
|
471847
471720
|
// src/websocket/listener/client.ts
|
|
@@ -472146,37 +472019,35 @@ function createLegacyTestRuntime() {
|
|
|
472146
472019
|
return bridge;
|
|
472147
472020
|
}
|
|
472148
472021
|
var __listenClientTestUtils;
|
|
472149
|
-
var init_client9 = __esm(
|
|
472022
|
+
var init_client9 = __esm(() => {
|
|
472023
|
+
init_approval();
|
|
472024
|
+
init_agents_conversations();
|
|
472025
|
+
init_cron3();
|
|
472026
|
+
init_memory6();
|
|
472150
472027
|
init_model_catalog2();
|
|
472028
|
+
init_model_toolset();
|
|
472029
|
+
init_runtime_start();
|
|
472030
|
+
init_settings3();
|
|
472031
|
+
init_skills_agents();
|
|
472032
|
+
init_control_inputs();
|
|
472033
|
+
init_conversation_runtime();
|
|
472151
472034
|
init_cwd();
|
|
472035
|
+
init_interrupts();
|
|
472036
|
+
init_lifecycle();
|
|
472152
472037
|
init_listener_task();
|
|
472038
|
+
init_protocol_outbound();
|
|
472039
|
+
init_queue();
|
|
472040
|
+
init_recovery();
|
|
472041
|
+
init_recovery_sync();
|
|
472042
|
+
init_runtime6();
|
|
472043
|
+
init_send();
|
|
472153
472044
|
init_socket_send();
|
|
472154
|
-
|
|
472155
|
-
|
|
472156
|
-
|
|
472157
|
-
|
|
472158
|
-
|
|
472159
|
-
|
|
472160
|
-
init_runtime_start(),
|
|
472161
|
-
init_settings3(),
|
|
472162
|
-
init_skills_agents(),
|
|
472163
|
-
init_control_inputs(),
|
|
472164
|
-
init_conversation_runtime(),
|
|
472165
|
-
init_interrupts(),
|
|
472166
|
-
init_lifecycle(),
|
|
472167
|
-
init_protocol_outbound(),
|
|
472168
|
-
init_queue(),
|
|
472169
|
-
init_recovery(),
|
|
472170
|
-
init_recovery_sync(),
|
|
472171
|
-
init_runtime6(),
|
|
472172
|
-
init_send(),
|
|
472173
|
-
init_sync_replay(),
|
|
472174
|
-
init_turn(),
|
|
472175
|
-
init_approval(),
|
|
472176
|
-
init_lifecycle(),
|
|
472177
|
-
init_protocol_inbound(),
|
|
472178
|
-
init_protocol_outbound()
|
|
472179
|
-
]);
|
|
472045
|
+
init_sync_replay();
|
|
472046
|
+
init_turn();
|
|
472047
|
+
init_approval();
|
|
472048
|
+
init_lifecycle();
|
|
472049
|
+
init_protocol_inbound();
|
|
472050
|
+
init_protocol_outbound();
|
|
472180
472051
|
__listenClientTestUtils = {
|
|
472181
472052
|
createRuntime: createLegacyTestRuntime,
|
|
472182
472053
|
createListenerRuntime: createRuntime,
|
|
@@ -472286,8 +472157,8 @@ __export(exports_listen_client, {
|
|
|
472286
472157
|
emitInterruptedStatusDelta: () => emitInterruptedStatusDelta,
|
|
472287
472158
|
__listenClientTestUtils: () => __listenClientTestUtils
|
|
472288
472159
|
});
|
|
472289
|
-
var init_listen_client = __esm(
|
|
472290
|
-
|
|
472160
|
+
var init_listen_client = __esm(() => {
|
|
472161
|
+
init_client9();
|
|
472291
472162
|
});
|
|
472292
472163
|
|
|
472293
472164
|
// src/websocket/app-server-auth.ts
|
|
@@ -473330,19 +473201,17 @@ async function runTurnViaListenerRuntime(params) {
|
|
|
473330
473201
|
});
|
|
473331
473202
|
}
|
|
473332
473203
|
var runTurnImpl, OPENAI_TURN_TIMEOUT_MS, bridgeRuntimeStart = null, bridgeOwnedRuntime = null;
|
|
473333
|
-
var init_app_server_openai_turn = __esm(
|
|
473204
|
+
var init_app_server_openai_turn = __esm(() => {
|
|
473334
473205
|
init_settings_manager();
|
|
473206
|
+
init_connection();
|
|
473207
|
+
init_connection_lifecycle();
|
|
473208
|
+
init_conversation_runtime();
|
|
473209
|
+
init_inbound_dispatch();
|
|
473210
|
+
init_lifecycle();
|
|
473335
473211
|
init_permission_mode();
|
|
473212
|
+
init_runtime6();
|
|
473213
|
+
init_turn();
|
|
473336
473214
|
init_turn_observers();
|
|
473337
|
-
await __promiseAll([
|
|
473338
|
-
init_connection(),
|
|
473339
|
-
init_connection_lifecycle(),
|
|
473340
|
-
init_conversation_runtime(),
|
|
473341
|
-
init_inbound_dispatch(),
|
|
473342
|
-
init_lifecycle(),
|
|
473343
|
-
init_runtime6(),
|
|
473344
|
-
init_turn()
|
|
473345
|
-
]);
|
|
473346
473215
|
runTurnImpl = runTurnViaListenerRuntime;
|
|
473347
473216
|
OPENAI_TURN_TIMEOUT_MS = 15 * 60 * 1000;
|
|
473348
473217
|
});
|
|
@@ -473882,10 +473751,10 @@ async function handleResponses(request2, response, options) {
|
|
|
473882
473751
|
}
|
|
473883
473752
|
}
|
|
473884
473753
|
var RESPONSES_PATH = "/v1/responses", STORED_RESPONSE_PREFIX = "resp_letta_";
|
|
473885
|
-
var init_app_server_openai_responses = __esm(
|
|
473754
|
+
var init_app_server_openai_responses = __esm(() => {
|
|
473886
473755
|
init_backend2();
|
|
473887
473756
|
init_app_server_openai_common();
|
|
473888
|
-
|
|
473757
|
+
init_app_server_openai_turn();
|
|
473889
473758
|
});
|
|
473890
473759
|
|
|
473891
473760
|
// src/websocket/app-server-openai.ts
|
|
@@ -474123,15 +473992,13 @@ async function handleOpenAiCompatRequest(request2, response, options) {
|
|
|
474123
473992
|
}
|
|
474124
473993
|
}
|
|
474125
473994
|
var MODELS_PATH = "/v1/models", CHAT_COMPLETIONS_PATH = "/v1/chat/completions";
|
|
474126
|
-
var init_app_server_openai = __esm(
|
|
473995
|
+
var init_app_server_openai = __esm(() => {
|
|
474127
473996
|
init_backend2();
|
|
474128
473997
|
init_app_server_auth();
|
|
474129
473998
|
init_app_server_openai_common();
|
|
474130
|
-
|
|
474131
|
-
|
|
474132
|
-
|
|
474133
|
-
init_app_server_openai_turn()
|
|
474134
|
-
]);
|
|
473999
|
+
init_app_server_openai_responses();
|
|
474000
|
+
init_app_server_openai_turn();
|
|
474001
|
+
init_app_server_openai_turn();
|
|
474135
474002
|
});
|
|
474136
474003
|
|
|
474137
474004
|
// src/websocket/app-server.ts
|
|
@@ -474434,20 +474301,18 @@ async function startAppServer(options = {}) {
|
|
|
474434
474301
|
};
|
|
474435
474302
|
}
|
|
474436
474303
|
var DEFAULT_LISTEN_URL = "ws://127.0.0.1:0", DEFAULT_WS_PATH = "/ws", APP_SERVER_HEARTBEAT_INTERVAL_MS = 30000, APP_SERVER_PONG_TIMEOUT_MS = 90000;
|
|
474437
|
-
var init_app_server = __esm(
|
|
474304
|
+
var init_app_server = __esm(() => {
|
|
474438
474305
|
init_settings_manager();
|
|
474439
474306
|
init_telemetry();
|
|
474307
|
+
init_manager2();
|
|
474440
474308
|
init_app_server_auth();
|
|
474309
|
+
init_app_server_openai();
|
|
474310
|
+
init_app_server_openai_turn();
|
|
474441
474311
|
init_app_server_info();
|
|
474442
474312
|
init_heartbeat();
|
|
474443
|
-
|
|
474444
|
-
|
|
474445
|
-
|
|
474446
|
-
init_app_server_openai_turn(),
|
|
474447
|
-
init_lifecycle(),
|
|
474448
|
-
init_mod_adapter2(),
|
|
474449
|
-
init_runtime6()
|
|
474450
|
-
]);
|
|
474313
|
+
init_lifecycle();
|
|
474314
|
+
init_mod_adapter2();
|
|
474315
|
+
init_runtime6();
|
|
474451
474316
|
});
|
|
474452
474317
|
|
|
474453
474318
|
// src/channels/gateway-supervisor.ts
|
|
@@ -474926,7 +474791,7 @@ async function runListenSubcommand(argv) {
|
|
|
474926
474791
|
isShuttingDown = true;
|
|
474927
474792
|
try {
|
|
474928
474793
|
await closeChannelGateway();
|
|
474929
|
-
const { stopListenerClient: stopListenerClient2, isListenerActive: isListenerActive2 } = await
|
|
474794
|
+
const { stopListenerClient: stopListenerClient2, isListenerActive: isListenerActive2 } = await Promise.resolve().then(() => (init_listen_client(), exports_listen_client));
|
|
474930
474795
|
if (isListenerActive2()) {
|
|
474931
474796
|
stopListenerClient2();
|
|
474932
474797
|
}
|
|
@@ -475082,7 +474947,7 @@ async function runListenSubcommand(argv) {
|
|
|
475082
474947
|
if (channelNames.length === 0 && !restoreEnabledChannels)
|
|
475083
474948
|
return;
|
|
475084
474949
|
if (!startRuntimeChannelGateway) {
|
|
475085
|
-
const { getActiveRuntime: getActiveRuntime2 } = await
|
|
474950
|
+
const { getActiveRuntime: getActiveRuntime2 } = await Promise.resolve().then(() => (init_runtime6(), exports_runtime));
|
|
475086
474951
|
startRuntimeChannelGateway ??= createRuntimeBoundGatewayStarter({
|
|
475087
474952
|
getRuntime: getActiveRuntime2,
|
|
475088
474953
|
close: closeChannelGateway,
|
|
@@ -475092,7 +474957,7 @@ async function runListenSubcommand(argv) {
|
|
|
475092
474957
|
return startRuntimeChannelGateway();
|
|
475093
474958
|
};
|
|
475094
474959
|
const startChannelGatewayForRuntime = (runtime) => (async () => {
|
|
475095
|
-
const { startAppServer: startAppServer2 } = await
|
|
474960
|
+
const { startAppServer: startAppServer2 } = await Promise.resolve().then(() => (init_app_server(), exports_app_server));
|
|
475096
474961
|
channelAppServer = await startAppServer2({
|
|
475097
474962
|
runtime,
|
|
475098
474963
|
connectionName,
|
|
@@ -475100,7 +474965,7 @@ async function runListenSubcommand(argv) {
|
|
|
475100
474965
|
onLog: (message2) => sessionLog.log(`[ChannelGateway] ${message2}`)
|
|
475101
474966
|
});
|
|
475102
474967
|
const { startChannelGatewaySupervisor: startChannelGatewaySupervisor2 } = await Promise.resolve().then(() => (init_gateway_supervisor(), exports_gateway_supervisor));
|
|
475103
|
-
const { broadcastServiceProtocolMessage: broadcastServiceProtocolMessage2 } = await
|
|
474968
|
+
const { broadcastServiceProtocolMessage: broadcastServiceProtocolMessage2 } = await Promise.resolve().then(() => (init_protocol_outbound(), exports_protocol_outbound));
|
|
475104
474969
|
channelGatewaySupervisor = await startChannelGatewaySupervisor2({
|
|
475105
474970
|
appServerUrl: channelAppServer.controlUrl,
|
|
475106
474971
|
channelNames,
|
|
@@ -475170,7 +475035,7 @@ async function runListenSubcommand(argv) {
|
|
|
475170
475035
|
console.log(`Skipping computer registration. Press Ctrl+C to stop.
|
|
475171
475036
|
`);
|
|
475172
475037
|
}
|
|
475173
|
-
const { startLocalChannelListener: startLocalChannelListener2 } = await
|
|
475038
|
+
const { startLocalChannelListener: startLocalChannelListener2 } = await Promise.resolve().then(() => (init_listen_client(), exports_listen_client));
|
|
475174
475039
|
lifecycleOutput?.emit("reconnecting");
|
|
475175
475040
|
await startLocalChannelListener2({
|
|
475176
475041
|
connectionId: connectionId2,
|
|
@@ -475239,7 +475104,7 @@ async function runListenSubcommand(argv) {
|
|
|
475239
475104
|
console.log(`[${formatTimestamp3()}] Connecting WebSocket...`);
|
|
475240
475105
|
console.log("");
|
|
475241
475106
|
}
|
|
475242
|
-
const { startListenerClient: startListenerClient2 } = await
|
|
475107
|
+
const { startListenerClient: startListenerClient2 } = await Promise.resolve().then(() => (init_listen_client(), exports_listen_client));
|
|
475243
475108
|
const reregister = async () => {
|
|
475244
475109
|
sessionLog.log("Re-registering with retry...");
|
|
475245
475110
|
const nextRegisterOptions = await resolveListenerRegistrationOptions(deviceId, connectionName, { allowInteractiveOAuth: !lifecycleOutput, organizationId });
|
|
@@ -478995,13 +478860,13 @@ async function runModsSubcommand(argv, options = {}) {
|
|
|
478995
478860
|
}
|
|
478996
478861
|
}
|
|
478997
478862
|
var MODS_OPTIONS, MODS_PACKAGE_OPTIONS, RELOAD_HINT = "Run /reload in active sessions for changes to take effect.";
|
|
478998
|
-
var init_mods = __esm(
|
|
478863
|
+
var init_mods = __esm(() => {
|
|
478999
478864
|
init_memory_filesystem2();
|
|
478865
|
+
init_mod_engine();
|
|
479000
478866
|
init_package_installer();
|
|
479001
478867
|
init_package_registry();
|
|
479002
478868
|
init_package_scaffolder();
|
|
479003
478869
|
init_paths2();
|
|
479004
|
-
await init_mod_engine();
|
|
479005
478870
|
MODS_OPTIONS = {
|
|
479006
478871
|
help: { type: "boolean", short: "h" },
|
|
479007
478872
|
agent: { type: "string" },
|
|
@@ -479756,9 +479621,9 @@ async function runAppServerSubcommand(argv) {
|
|
|
479756
479621
|
return 1;
|
|
479757
479622
|
}
|
|
479758
479623
|
}
|
|
479759
|
-
var init_app_server2 = __esm(
|
|
479624
|
+
var init_app_server2 = __esm(() => {
|
|
479625
|
+
init_app_server();
|
|
479760
479626
|
init_app_server_auth();
|
|
479761
|
-
await init_app_server();
|
|
479762
479627
|
});
|
|
479763
479628
|
|
|
479764
479629
|
// src/cli/subcommands/server.ts
|
|
@@ -479862,10 +479727,8 @@ async function runServerSubcommand(argv) {
|
|
|
479862
479727
|
return runListenSubcommand(command.argv);
|
|
479863
479728
|
}
|
|
479864
479729
|
var init_server = __esm(async () => {
|
|
479865
|
-
|
|
479866
|
-
|
|
479867
|
-
init_listen()
|
|
479868
|
-
]);
|
|
479730
|
+
init_app_server2();
|
|
479731
|
+
await init_listen();
|
|
479869
479732
|
});
|
|
479870
479733
|
|
|
479871
479734
|
// src/auth/LettaLoginView.tsx
|
|
@@ -488663,6 +488526,7 @@ var init_router = __esm(async () => {
|
|
|
488663
488526
|
init_backend3();
|
|
488664
488527
|
init_channels();
|
|
488665
488528
|
init_connect();
|
|
488529
|
+
init_cron2();
|
|
488666
488530
|
init_environments4();
|
|
488667
488531
|
init_feedback3();
|
|
488668
488532
|
init_local_backend2();
|
|
@@ -488670,6 +488534,7 @@ var init_router = __esm(async () => {
|
|
|
488670
488534
|
init_memory7();
|
|
488671
488535
|
init_messages10();
|
|
488672
488536
|
init_model2();
|
|
488537
|
+
init_mods();
|
|
488673
488538
|
init_permissions2();
|
|
488674
488539
|
init_sandbox2();
|
|
488675
488540
|
init_secret();
|
|
@@ -488680,9 +488545,7 @@ var init_router = __esm(async () => {
|
|
|
488680
488545
|
init_trajectories();
|
|
488681
488546
|
init_usage3();
|
|
488682
488547
|
await __promiseAll([
|
|
488683
|
-
init_cron2(),
|
|
488684
488548
|
init_listen(),
|
|
488685
|
-
init_mods(),
|
|
488686
488549
|
init_server(),
|
|
488687
488550
|
init_setup7()
|
|
488688
488551
|
]);
|
|
@@ -489692,11 +489555,11 @@ async function retrieveHeadlessConversation(backend3, conversationId) {
|
|
|
489692
489555
|
parentAgentId: detached && typeof parentId === "string" ? parentId : null
|
|
489693
489556
|
};
|
|
489694
489557
|
}
|
|
489695
|
-
var init_headless_ephemeral_startup = __esm(
|
|
489558
|
+
var init_headless_ephemeral_startup = __esm(() => {
|
|
489696
489559
|
init_ephemeral_conversation();
|
|
489697
489560
|
init_backend2();
|
|
489561
|
+
init_toolset();
|
|
489698
489562
|
init_debug();
|
|
489699
|
-
await init_toolset();
|
|
489700
489563
|
});
|
|
489701
489564
|
|
|
489702
489565
|
// src/headless-memfs-policy.ts
|
|
@@ -489811,16 +489674,16 @@ async function emitHeadlessConversationClose(options) {
|
|
|
489811
489674
|
}, options.context ?? createHeadlessModContext(options));
|
|
489812
489675
|
}
|
|
489813
489676
|
var HEADLESS_MOD_CAPABILITIES;
|
|
489814
|
-
var init_headless_mod_adapter = __esm(
|
|
489677
|
+
var init_headless_mod_adapter = __esm(() => {
|
|
489815
489678
|
init_memory_filesystem2();
|
|
489816
489679
|
init_model();
|
|
489817
489680
|
init_subagent_state();
|
|
489818
489681
|
init_client4();
|
|
489682
|
+
init_mod_adapter();
|
|
489819
489683
|
init_runtime_context();
|
|
489820
489684
|
init_settings_manager();
|
|
489821
489685
|
init_telemetry();
|
|
489822
489686
|
init_version();
|
|
489823
|
-
await init_mod_adapter();
|
|
489824
489687
|
HEADLESS_MOD_CAPABILITIES = {
|
|
489825
489688
|
tools: true,
|
|
489826
489689
|
commands: false,
|
|
@@ -489988,8 +489851,8 @@ function emitLocalToolReturns(results, sessionId) {
|
|
|
489988
489851
|
writeWireMessage(msg);
|
|
489989
489852
|
}
|
|
489990
489853
|
}
|
|
489991
|
-
var init_headless_tool_events = __esm(
|
|
489992
|
-
|
|
489854
|
+
var init_headless_tool_events = __esm(() => {
|
|
489855
|
+
init_approval_execution();
|
|
489993
489856
|
});
|
|
489994
489857
|
|
|
489995
489858
|
// src/agent/defaults.ts
|
|
@@ -491678,7 +491541,7 @@ Current session AGENT_ID=${process.env.AGENT_ID}; --backend local switches to a
|
|
|
491678
491541
|
reason: formatPermissionDenial(ac.permission, ac.denyReason)
|
|
491679
491542
|
}))
|
|
491680
491543
|
];
|
|
491681
|
-
const { executeApprovalBatch: executeApprovalBatch2 } = await
|
|
491544
|
+
const { executeApprovalBatch: executeApprovalBatch2 } = await Promise.resolve().then(() => (init_approval_execution(), exports_approval_execution));
|
|
491682
491545
|
if (outputFormat === "stream-json") {
|
|
491683
491546
|
emitLocalToolCalls(decisions, sessionId);
|
|
491684
491547
|
}
|
|
@@ -493041,7 +492904,7 @@ async function runBidirectionalMode(agent, conversationId, effectiveModel, _outp
|
|
|
493041
492904
|
});
|
|
493042
492905
|
}
|
|
493043
492906
|
}
|
|
493044
|
-
const { executeApprovalBatch: executeApprovalBatch2 } = await
|
|
492907
|
+
const { executeApprovalBatch: executeApprovalBatch2 } = await Promise.resolve().then(() => (init_approval_execution(), exports_approval_execution));
|
|
493045
492908
|
emitLocalToolCalls(decisions, sessionId);
|
|
493046
492909
|
let executedResults;
|
|
493047
492910
|
try {
|
|
@@ -493163,9 +493026,10 @@ async function runBidirectionalMode(agent, conversationId, effectiveModel, _outp
|
|
|
493163
493026
|
await exitBidirectional(0, "headless_bidirectional_stdin_closed");
|
|
493164
493027
|
}
|
|
493165
493028
|
var LLM_API_ERROR_MAX_RETRIES2 = 3, EMPTY_RESPONSE_MAX_RETRIES2 = 2, HEADLESS_STREAM_RESUME_POLICY, CONVERSATION_BUSY_MAX_RETRIES = 3, __headlessTestUtils;
|
|
493166
|
-
var init_headless = __esm(
|
|
493029
|
+
var init_headless = __esm(() => {
|
|
493167
493030
|
init_error();
|
|
493168
493031
|
init_preloaded_skills();
|
|
493032
|
+
init_subagent_launcher();
|
|
493169
493033
|
init_paths();
|
|
493170
493034
|
init_constants2();
|
|
493171
493035
|
init_headless_message_sender();
|
|
@@ -493183,6 +493047,7 @@ var init_headless = __esm(async () => {
|
|
|
493183
493047
|
init_context();
|
|
493184
493048
|
init_create5();
|
|
493185
493049
|
init_list_messages_handler();
|
|
493050
|
+
init_message();
|
|
493186
493051
|
init_model();
|
|
493187
493052
|
init_modify();
|
|
493188
493053
|
init_personality();
|
|
@@ -493192,40 +493057,36 @@ var init_headless = __esm(async () => {
|
|
|
493192
493057
|
init_skill_sources();
|
|
493193
493058
|
init_backend2();
|
|
493194
493059
|
init_accumulator();
|
|
493060
|
+
init_approval_classification();
|
|
493195
493061
|
init_error_formatter();
|
|
493196
493062
|
init_post_turn_reflection();
|
|
493197
493063
|
init_reflection_launcher();
|
|
493198
493064
|
init_reflection_transcript();
|
|
493065
|
+
init_stream2();
|
|
493199
493066
|
init_local_backend_mod_events();
|
|
493200
493067
|
init_headless_cloud_send();
|
|
493201
493068
|
init_headless_environment_response();
|
|
493069
|
+
init_headless_ephemeral_startup();
|
|
493202
493070
|
init_headless_listener_launch();
|
|
493203
493071
|
init_headless_memfs_policy();
|
|
493072
|
+
init_headless_mod_adapter();
|
|
493204
493073
|
init_headless_reflection_settings();
|
|
493074
|
+
init_headless_tool_events();
|
|
493205
493075
|
init_diff_preview();
|
|
493206
493076
|
init_mcp_runtime();
|
|
493207
493077
|
init_format_denial();
|
|
493208
493078
|
init_startup();
|
|
493209
493079
|
init_queue_runtime();
|
|
493210
493080
|
init_engine3();
|
|
493081
|
+
init_memory_git_sync();
|
|
493211
493082
|
init_runtime_context();
|
|
493212
493083
|
init_runtime_execution_settings();
|
|
493213
493084
|
init_settings_manager();
|
|
493214
493085
|
init_memory_task_lifecycle();
|
|
493086
|
+
init_manager2();
|
|
493087
|
+
init_toolset();
|
|
493215
493088
|
init_debug();
|
|
493216
493089
|
init_timing();
|
|
493217
|
-
await __promiseAll([
|
|
493218
|
-
init_subagent_launcher(),
|
|
493219
|
-
init_message(),
|
|
493220
|
-
init_approval_classification(),
|
|
493221
|
-
init_stream2(),
|
|
493222
|
-
init_headless_ephemeral_startup(),
|
|
493223
|
-
init_headless_mod_adapter(),
|
|
493224
|
-
init_headless_tool_events(),
|
|
493225
|
-
init_memory_git_sync(),
|
|
493226
|
-
init_manager2(),
|
|
493227
|
-
init_toolset()
|
|
493228
|
-
]);
|
|
493229
493090
|
HEADLESS_STREAM_RESUME_POLICY = {
|
|
493230
493091
|
initialDelayMs: 250,
|
|
493231
493092
|
maxAttempts: 20,
|
|
@@ -495021,7 +494882,7 @@ async function startReflectionArenaRun(options) {
|
|
|
495021
494882
|
triggerSource: options.triggerSource
|
|
495022
494883
|
};
|
|
495023
494884
|
await saveReflectionArenaRun(run);
|
|
495024
|
-
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2, waitForBackgroundSubagentAgentId: waitForBackgroundSubagentAgentId2 } = await
|
|
494885
|
+
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2, waitForBackgroundSubagentAgentId: waitForBackgroundSubagentAgentId2 } = await Promise.resolve().then(() => (init_task(), exports_task));
|
|
495025
494886
|
const candidates2 = prepared.map((candidate) => {
|
|
495026
494887
|
const attemptedModels = new Set;
|
|
495027
494888
|
const launchAttempt = (model) => {
|
|
@@ -497283,16 +497144,14 @@ function withDefaultReservations(options) {
|
|
|
497283
497144
|
function createModAdapter2(options) {
|
|
497284
497145
|
return createModAdapter(withDefaultReservations(options));
|
|
497285
497146
|
}
|
|
497286
|
-
var init_local_mod_loader = __esm(
|
|
497147
|
+
var init_local_mod_loader = __esm(() => {
|
|
497287
497148
|
init_registry2();
|
|
497149
|
+
init_mod_adapter();
|
|
497150
|
+
init_mod_engine();
|
|
497151
|
+
init_manager2();
|
|
497288
497152
|
init_removed_tools();
|
|
497289
497153
|
init_capabilities2();
|
|
497290
497154
|
init_capabilities2();
|
|
497291
|
-
await __promiseAll([
|
|
497292
|
-
init_mod_adapter(),
|
|
497293
|
-
init_mod_engine(),
|
|
497294
|
-
init_manager2()
|
|
497295
|
-
]);
|
|
497296
497155
|
});
|
|
497297
497156
|
|
|
497298
497157
|
// src/cli/mods/use-local-mod-adapter.ts
|
|
@@ -497326,10 +497185,10 @@ function useLocalModAdapter(context3, options = {}) {
|
|
|
497326
497185
|
}), [adapter, context3, snapshot2]);
|
|
497327
497186
|
}
|
|
497328
497187
|
var import_react43;
|
|
497329
|
-
var init_use_local_mod_adapter = __esm(
|
|
497188
|
+
var init_use_local_mod_adapter = __esm(() => {
|
|
497330
497189
|
init_backend2();
|
|
497331
497190
|
init_client4();
|
|
497332
|
-
|
|
497191
|
+
init_local_mod_loader();
|
|
497333
497192
|
import_react43 = __toESM(require_react(), 1);
|
|
497334
497193
|
});
|
|
497335
497194
|
|
|
@@ -499957,10 +499816,10 @@ var init_BashCommandMessage = __esm(async () => {
|
|
|
499957
499816
|
init_glyphs();
|
|
499958
499817
|
init_use_terminal_width();
|
|
499959
499818
|
init_constants2();
|
|
499819
|
+
init_manager2();
|
|
499960
499820
|
init_colors();
|
|
499961
499821
|
await __promiseAll([
|
|
499962
499822
|
init_build4(),
|
|
499963
|
-
init_manager2(),
|
|
499964
499823
|
init_BlinkDot(),
|
|
499965
499824
|
init_CollapsedOutputDisplay(),
|
|
499966
499825
|
init_MarkdownDisplay(),
|
|
@@ -519216,11 +519075,11 @@ var init_ToolCallMessageRich = __esm(async () => {
|
|
|
519216
519075
|
init_workflow_display();
|
|
519217
519076
|
init_constants2();
|
|
519218
519077
|
init_store();
|
|
519078
|
+
init_manager2();
|
|
519219
519079
|
init_use_terminal_width();
|
|
519220
519080
|
init_colors();
|
|
519221
519081
|
await __promiseAll([
|
|
519222
519082
|
init_build4(),
|
|
519223
|
-
init_manager2(),
|
|
519224
519083
|
init_Text2(),
|
|
519225
519084
|
init_AdvancedDiffRenderer(),
|
|
519226
519085
|
init_CollapsedOutputDisplay(),
|
|
@@ -524354,7 +524213,7 @@ function useApprovalFlow(ctx) {
|
|
|
524354
524213
|
setToolCallsRunning(buffersRef.current, runningDecisions.map((d2) => d2.approval.toolCallId));
|
|
524355
524214
|
}
|
|
524356
524215
|
refreshDerived();
|
|
524357
|
-
const { executeApprovalBatch: executeApprovalBatch2 } = await
|
|
524216
|
+
const { executeApprovalBatch: executeApprovalBatch2 } = await Promise.resolve().then(() => (init_approval_execution(), exports_approval_execution));
|
|
524358
524217
|
sessionStatsRef.current.startTrajectory();
|
|
524359
524218
|
const toolRunStart = performance.now();
|
|
524360
524219
|
let executedResults;
|
|
@@ -524619,7 +524478,7 @@ function useApprovalFlow(ctx) {
|
|
|
524619
524478
|
setToolCallsRunning(buffersRef.current, allDecisions.filter((d2) => d2.type === "approve").map((d2) => d2.approval.toolCallId));
|
|
524620
524479
|
refreshDerived();
|
|
524621
524480
|
try {
|
|
524622
|
-
const { executeApprovalBatch: executeApprovalBatch2 } = await
|
|
524481
|
+
const { executeApprovalBatch: executeApprovalBatch2 } = await Promise.resolve().then(() => (init_approval_execution(), exports_approval_execution));
|
|
524623
524482
|
const approvalToolContextId = approvalToolContextIdRef.current ?? (await prepareScopedToolExecutionContext(tempModelOverrideRef.current ?? undefined)).preparedToolContext.contextId;
|
|
524624
524483
|
const executedResults = await executeApprovalBatch2(allDecisions, (chunk2) => {
|
|
524625
524484
|
onChunk(buffersRef.current, chunk2);
|
|
@@ -524782,18 +524641,16 @@ function useApprovalFlow(ctx) {
|
|
|
524782
524641
|
};
|
|
524783
524642
|
}
|
|
524784
524643
|
var import_react114;
|
|
524785
|
-
var init_use_approval_flow = __esm(
|
|
524644
|
+
var init_use_approval_flow = __esm(() => {
|
|
524645
|
+
init_approval_execution();
|
|
524786
524646
|
init_accumulator();
|
|
524787
524647
|
init_error_formatter();
|
|
524788
524648
|
init_queued_message_parts();
|
|
524789
524649
|
init_thinking_messages();
|
|
524650
|
+
init_manager2();
|
|
524790
524651
|
init_debug();
|
|
524791
524652
|
init_notifications();
|
|
524792
524653
|
init_turn_input();
|
|
524793
|
-
await __promiseAll([
|
|
524794
|
-
init_approval_execution(),
|
|
524795
|
-
init_manager2()
|
|
524796
|
-
]);
|
|
524797
524654
|
import_react114 = __toESM(require_react(), 1);
|
|
524798
524655
|
});
|
|
524799
524656
|
|
|
@@ -524974,7 +524831,7 @@ function useBashHandlers(ctx) {
|
|
|
524974
524831
|
const expanded2 = expandAliases2(command);
|
|
524975
524832
|
const finalCommand = expanded2.functionDef ? `${expanded2.functionDef}
|
|
524976
524833
|
${expanded2.command}` : expanded2.command;
|
|
524977
|
-
const { spawnCommand: spawnCommand2 } = await
|
|
524834
|
+
const { spawnCommand: spawnCommand2 } = await Promise.resolve().then(() => (init_bash(), exports_bash));
|
|
524978
524835
|
const { getShellEnv: getShellEnv2 } = await Promise.resolve().then(() => (init_shell_env(), exports_shell_env));
|
|
524979
524836
|
const result3 = await spawnCommand2(finalCommand, {
|
|
524980
524837
|
cwd: process.cwd(),
|
|
@@ -525355,7 +525212,7 @@ function useConfigurationHandlers(ctx) {
|
|
|
525355
525212
|
const previousToolsetSnapshot = currentToolset;
|
|
525356
525213
|
const previousToolNamesSnapshot = getToolNames();
|
|
525357
525214
|
if (persistedToolsetPreference === "auto") {
|
|
525358
|
-
const { switchToolsetForModel: switchToolsetForModel2 } = await
|
|
525215
|
+
const { switchToolsetForModel: switchToolsetForModel2 } = await Promise.resolve().then(() => (init_toolset(), exports_toolset));
|
|
525359
525216
|
const toolsetName = await switchToolsetForModel2(modelHandle, isOpenAICompatibleProxy ? null : resolvedProviderType);
|
|
525360
525217
|
setCurrentToolsetPreference("auto");
|
|
525361
525218
|
setCurrentToolset(toolsetName);
|
|
@@ -525369,7 +525226,7 @@ function useConfigurationHandlers(ctx) {
|
|
|
525369
525226
|
});
|
|
525370
525227
|
}
|
|
525371
525228
|
} else {
|
|
525372
|
-
const { forceToolsetSwitch: forceToolsetSwitch2 } = await
|
|
525229
|
+
const { forceToolsetSwitch: forceToolsetSwitch2 } = await Promise.resolve().then(() => (init_toolset(), exports_toolset));
|
|
525373
525230
|
if (currentToolset !== persistedToolsetPreference) {
|
|
525374
525231
|
await forceToolsetSwitch2(persistedToolsetPreference);
|
|
525375
525232
|
setCurrentToolset(persistedToolsetPreference);
|
|
@@ -525711,7 +525568,7 @@ ${guidance}`);
|
|
|
525711
525568
|
phase: "running"
|
|
525712
525569
|
});
|
|
525713
525570
|
try {
|
|
525714
|
-
const { forceToolsetSwitch: forceToolsetSwitch2, switchToolsetForModel: switchToolsetForModel2 } = await
|
|
525571
|
+
const { forceToolsetSwitch: forceToolsetSwitch2, switchToolsetForModel: switchToolsetForModel2 } = await Promise.resolve().then(() => (init_toolset(), exports_toolset));
|
|
525715
525572
|
const previousToolsetSnapshot = currentToolset;
|
|
525716
525573
|
const previousToolNamesSnapshot = getToolNames();
|
|
525717
525574
|
const convId = conversationIdRef.current;
|
|
@@ -525870,7 +525727,7 @@ ${guidance}`);
|
|
|
525870
525727
|
};
|
|
525871
525728
|
}
|
|
525872
525729
|
var import_react116;
|
|
525873
|
-
var init_use_configuration_handlers = __esm(
|
|
525730
|
+
var init_use_configuration_handlers = __esm(() => {
|
|
525874
525731
|
init_available_models();
|
|
525875
525732
|
init_model();
|
|
525876
525733
|
init_personality();
|
|
@@ -525882,9 +525739,9 @@ var init_use_configuration_handlers = __esm(async () => {
|
|
|
525882
525739
|
init_manager();
|
|
525883
525740
|
init_openai_codex_provider();
|
|
525884
525741
|
init_settings_manager();
|
|
525742
|
+
init_manager2();
|
|
525885
525743
|
init_toolset_labels();
|
|
525886
525744
|
init_model_config();
|
|
525887
|
-
await init_manager2();
|
|
525888
525745
|
import_react116 = __toESM(require_react(), 1);
|
|
525889
525746
|
});
|
|
525890
525747
|
|
|
@@ -527521,23 +527378,27 @@ ${feedback}
|
|
|
527521
527378
|
return processConversation;
|
|
527522
527379
|
}
|
|
527523
527380
|
var import_react117;
|
|
527524
|
-
var init_use_conversation_loop = __esm(
|
|
527381
|
+
var init_use_conversation_loop = __esm(() => {
|
|
527525
527382
|
init_error();
|
|
527383
|
+
init_approval_execution();
|
|
527526
527384
|
init_approval_recovery();
|
|
527527
527385
|
init_available_models();
|
|
527528
527386
|
init_chatgpt_plan_rotation();
|
|
527529
527387
|
init_check_approval();
|
|
527388
|
+
init_message();
|
|
527530
527389
|
init_model();
|
|
527531
527390
|
init_prompt_assets();
|
|
527532
527391
|
init_subagent_state();
|
|
527533
527392
|
init_backend2();
|
|
527534
527393
|
init_accumulator();
|
|
527394
|
+
init_approval_classification();
|
|
527535
527395
|
init_diff3();
|
|
527536
527396
|
init_error_formatter();
|
|
527537
527397
|
init_format_args_display();
|
|
527538
527398
|
init_local_no_model_response();
|
|
527539
527399
|
init_queued_message_parts();
|
|
527540
527400
|
init_reflection_transcript();
|
|
527401
|
+
init_stream2();
|
|
527541
527402
|
init_thinking_messages();
|
|
527542
527403
|
init_tool_name_mapping2();
|
|
527543
527404
|
init_hooks();
|
|
@@ -527545,6 +527406,8 @@ var init_use_conversation_loop = __esm(async () => {
|
|
|
527545
527406
|
init_mode();
|
|
527546
527407
|
init_settings_manager();
|
|
527547
527408
|
init_telemetry();
|
|
527409
|
+
init_client_preferences();
|
|
527410
|
+
init_manager2();
|
|
527548
527411
|
init_debug();
|
|
527549
527412
|
init_constants4();
|
|
527550
527413
|
init_ids();
|
|
@@ -527553,14 +527416,6 @@ var init_use_conversation_loop = __esm(async () => {
|
|
|
527553
527416
|
init_retry2();
|
|
527554
527417
|
init_system_reminders2();
|
|
527555
527418
|
init_turn_input();
|
|
527556
|
-
await __promiseAll([
|
|
527557
|
-
init_approval_execution(),
|
|
527558
|
-
init_message(),
|
|
527559
|
-
init_approval_classification(),
|
|
527560
|
-
init_stream2(),
|
|
527561
|
-
init_client_preferences(),
|
|
527562
|
-
init_manager2()
|
|
527563
|
-
]);
|
|
527564
527419
|
import_react117 = __toESM(require_react(), 1);
|
|
527565
527420
|
});
|
|
527566
527421
|
|
|
@@ -528088,12 +527943,13 @@ function useConversationSwitching(ctx) {
|
|
|
528088
527943
|
};
|
|
528089
527944
|
}
|
|
528090
527945
|
var import_react118;
|
|
528091
|
-
var init_use_conversation_switching = __esm(
|
|
527946
|
+
var init_use_conversation_switching = __esm(() => {
|
|
528092
527947
|
init_error();
|
|
528093
527948
|
init_approval_recovery();
|
|
528094
527949
|
init_check_approval();
|
|
528095
527950
|
init_create5();
|
|
528096
527951
|
init_defaults();
|
|
527952
|
+
init_message();
|
|
528097
527953
|
init_backend2();
|
|
528098
527954
|
init_server_url();
|
|
528099
527955
|
init_accumulator();
|
|
@@ -528108,7 +527964,6 @@ var init_use_conversation_switching = __esm(async () => {
|
|
|
528108
527964
|
init_constants4();
|
|
528109
527965
|
init_ids();
|
|
528110
527966
|
init_model_config();
|
|
528111
|
-
await init_message();
|
|
528112
527967
|
import_react118 = __toESM(require_react(), 1);
|
|
528113
527968
|
});
|
|
528114
527969
|
|
|
@@ -530618,8 +530473,8 @@ async function runModLearning(options) {
|
|
|
530618
530473
|
async function readModLearningEnv(envPath) {
|
|
530619
530474
|
return JSON.parse(await readFile36(envPath, "utf8"));
|
|
530620
530475
|
}
|
|
530621
|
-
var init_learning_harness = __esm(
|
|
530622
|
-
|
|
530476
|
+
var init_learning_harness = __esm(() => {
|
|
530477
|
+
init_mod_engine();
|
|
530623
530478
|
});
|
|
530624
530479
|
|
|
530625
530480
|
// src/cli/commands/mods.ts
|
|
@@ -531169,13 +531024,13 @@ function handleModsCommand(trimmed, ctx) {
|
|
|
531169
531024
|
return { handled: true, done };
|
|
531170
531025
|
}
|
|
531171
531026
|
var DEFAULT_TARGET = "memory-citations", DEFAULT_OPTIMIZATION_ITERATIONS = 5, MOD_OPTIMIZATION_PULSE, MOD_OPTIMIZATION_RUNNING_LABELS, MOD_OPTIMIZATION_SPINNER_INTERVAL_MS, SPARKLINE_BLOCKS, SCORE_BAR_WIDTH = 12, MAX_SCORE_BARS = 5, MAX_STEP_DOTS = 20;
|
|
531172
|
-
var init_mods2 = __esm(
|
|
531027
|
+
var init_mods2 = __esm(() => {
|
|
531173
531028
|
init_memory_citations_env();
|
|
531174
531029
|
init_animations();
|
|
531175
531030
|
init_command_runtime();
|
|
531031
|
+
init_learning_harness();
|
|
531176
531032
|
init_settings_manager();
|
|
531177
531033
|
init_shell_env();
|
|
531178
|
-
await init_learning_harness();
|
|
531179
531034
|
MOD_OPTIMIZATION_PULSE = BRAILLE_ANIMATIONS.pulse;
|
|
531180
531035
|
MOD_OPTIMIZATION_RUNNING_LABELS = [
|
|
531181
531036
|
"running",
|
|
@@ -531681,7 +531536,7 @@ function updateCommandResult3(buffersRef, refreshDerived, cmdId, input, output,
|
|
|
531681
531536
|
}
|
|
531682
531537
|
async function handleListen(ctx, msg, opts = {}) {
|
|
531683
531538
|
if (msg.trim() === "/remote off") {
|
|
531684
|
-
const { stopListenerClient: stopListenerClient2, isListenerActive: isListenerActive2 } = await
|
|
531539
|
+
const { stopListenerClient: stopListenerClient2, isListenerActive: isListenerActive2 } = await Promise.resolve().then(() => (init_listen_client(), exports_listen_client));
|
|
531685
531540
|
if (!isListenerActive2()) {
|
|
531686
531541
|
addCommandResult3(ctx.buffersRef, ctx.refreshDerived, msg, "Listen mode is not active.", false);
|
|
531687
531542
|
return;
|
|
@@ -531764,7 +531619,7 @@ Computer: "${connectionName}"
|
|
|
531764
531619
|
WebSocket: ${wsUrl}
|
|
531765
531620
|
|
|
531766
531621
|
Starting WebSocket connection...`, true, "running");
|
|
531767
|
-
const { startListenerClient: startListenerClient2 } = await
|
|
531622
|
+
const { startListenerClient: startListenerClient2 } = await Promise.resolve().then(() => (init_listen_client(), exports_listen_client));
|
|
531768
531623
|
const startClient = async (connId, wsUrlValue, nextSupportsSplitStatusChannels, nextSupportsPairedListenerGenerations, replacement) => {
|
|
531769
531624
|
await startListenerClient2({
|
|
531770
531625
|
replacement,
|
|
@@ -534821,7 +534676,7 @@ Resumed reflection arena choice prompt for run ${run2.runId}.`, true);
|
|
|
534821
534676
|
cmd.fail("No transcript candidates found for auto selection.");
|
|
534822
534677
|
return { submitted: true };
|
|
534823
534678
|
}
|
|
534824
|
-
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask3 } = await
|
|
534679
|
+
const { spawnBackgroundSubagentTask: spawnBackgroundSubagentTask3 } = await Promise.resolve().then(() => (init_task(), exports_task));
|
|
534825
534680
|
const { subagentId: selectorSubagentId } = spawnBackgroundSubagentTask3({
|
|
534826
534681
|
subagentType: "reflection",
|
|
534827
534682
|
prompt: buildReflectionSelectorPrompt({
|
|
@@ -534969,7 +534824,7 @@ Resumed reflection arena choice prompt for run ${run2.runId}.`, true);
|
|
|
534969
534824
|
const {
|
|
534970
534825
|
spawnBackgroundSubagentTask: spawnBackgroundSubagentTask2,
|
|
534971
534826
|
waitForBackgroundSubagentAgentId: waitForBackgroundSubagentAgentId2
|
|
534972
|
-
} = await
|
|
534827
|
+
} = await Promise.resolve().then(() => (init_task(), exports_task));
|
|
534973
534828
|
const { subagentId } = spawnBackgroundSubagentTask2({
|
|
534974
534829
|
subagentType: "reflection",
|
|
534975
534830
|
prompt: reflectionPrompt,
|
|
@@ -535428,11 +535283,13 @@ var init_use_submit_handler = __esm(async () => {
|
|
|
535428
535283
|
init_memory_filesystem2();
|
|
535429
535284
|
init_memory_runtime();
|
|
535430
535285
|
init_memory_worktree();
|
|
535286
|
+
init_message();
|
|
535431
535287
|
init_personality();
|
|
535432
535288
|
init_reflection_runs2();
|
|
535433
535289
|
init_session_history();
|
|
535434
535290
|
init_backend2();
|
|
535435
535291
|
init_client4();
|
|
535292
|
+
init_mods2();
|
|
535436
535293
|
init_accumulator();
|
|
535437
535294
|
init_app_urls();
|
|
535438
535295
|
init_chdir_command();
|
|
@@ -535457,12 +535314,14 @@ var init_use_submit_handler = __esm(async () => {
|
|
|
535457
535314
|
init_hooks();
|
|
535458
535315
|
init_conversation_handle();
|
|
535459
535316
|
init_engine3();
|
|
535317
|
+
init_memory_git_sync();
|
|
535460
535318
|
init_runtime_context();
|
|
535461
535319
|
init_settings_manager();
|
|
535462
535320
|
init_telemetry();
|
|
535463
535321
|
init_debug();
|
|
535464
535322
|
init_shell_context();
|
|
535465
535323
|
init_task_notifications();
|
|
535324
|
+
init_cwd_change();
|
|
535466
535325
|
init_command_routing();
|
|
535467
535326
|
init_ids();
|
|
535468
535327
|
init_session3();
|
|
@@ -535471,13 +535330,7 @@ var init_use_submit_handler = __esm(async () => {
|
|
|
535471
535330
|
init_submit_navigation_commands();
|
|
535472
535331
|
init_submit_profile_commands();
|
|
535473
535332
|
init_turn_input();
|
|
535474
|
-
await
|
|
535475
|
-
init_message(),
|
|
535476
|
-
init_mods2(),
|
|
535477
|
-
init_PinDialog(),
|
|
535478
|
-
init_memory_git_sync(),
|
|
535479
|
-
init_cwd_change()
|
|
535480
|
-
]);
|
|
535333
|
+
await init_PinDialog();
|
|
535481
535334
|
import_react123 = __toESM(require_react(), 1);
|
|
535482
535335
|
});
|
|
535483
535336
|
|
|
@@ -538781,6 +538634,8 @@ var init_AppCoordinator = __esm(async () => {
|
|
|
538781
538634
|
init_use_synced_state();
|
|
538782
538635
|
init_use_terminal_width();
|
|
538783
538636
|
init_local_backend_mod_events();
|
|
538637
|
+
init_use_local_mod_adapter();
|
|
538638
|
+
init_cron();
|
|
538784
538639
|
init_manager();
|
|
538785
538640
|
init_hooks();
|
|
538786
538641
|
init_mode();
|
|
@@ -538788,6 +538643,8 @@ var init_AppCoordinator = __esm(async () => {
|
|
|
538788
538643
|
init_runtime_context();
|
|
538789
538644
|
init_settings_manager();
|
|
538790
538645
|
init_telemetry();
|
|
538646
|
+
init_manager2();
|
|
538647
|
+
init_toolset();
|
|
538791
538648
|
init_debug();
|
|
538792
538649
|
init_message_queue_bridge();
|
|
538793
538650
|
init_task_notifications();
|
|
@@ -538798,22 +538655,18 @@ var init_AppCoordinator = __esm(async () => {
|
|
|
538798
538655
|
init_model_config();
|
|
538799
538656
|
init_session3();
|
|
538800
538657
|
init_use_agent_mcp_servers();
|
|
538658
|
+
init_use_approval_flow();
|
|
538801
538659
|
init_use_bash_handlers();
|
|
538660
|
+
init_use_configuration_handlers();
|
|
538661
|
+
init_use_conversation_loop();
|
|
538662
|
+
init_use_conversation_switching();
|
|
538802
538663
|
init_use_feedback_handler();
|
|
538803
538664
|
init_use_interrupt_handler();
|
|
538804
538665
|
init_use_queued_approval_submit();
|
|
538805
538666
|
init_use_reasoning_cycle();
|
|
538806
538667
|
await __promiseAll([
|
|
538807
538668
|
init_use_suspend(),
|
|
538808
|
-
init_use_local_mod_adapter(),
|
|
538809
|
-
init_cron(),
|
|
538810
|
-
init_manager2(),
|
|
538811
|
-
init_toolset(),
|
|
538812
538669
|
init_AppView(),
|
|
538813
|
-
init_use_approval_flow(),
|
|
538814
|
-
init_use_configuration_handlers(),
|
|
538815
|
-
init_use_conversation_loop(),
|
|
538816
|
-
init_use_conversation_switching(),
|
|
538817
538670
|
init_use_submit_handler()
|
|
538818
538671
|
]);
|
|
538819
538672
|
import_react124 = __toESM(require_react(), 1);
|
|
@@ -539748,7 +539601,7 @@ Error: ${message2}`);
|
|
|
539748
539601
|
});
|
|
539749
539602
|
markMilestone("TOOLS_LOADED");
|
|
539750
539603
|
const headlessValues = specifiedAgentId && values4.agent !== specifiedAgentId ? { ...values4, agent: specifiedAgentId } : values4;
|
|
539751
|
-
const { handleHeadlessCommand: handleHeadlessCommand2 } = await
|
|
539604
|
+
const { handleHeadlessCommand: handleHeadlessCommand2 } = await Promise.resolve().then(() => (init_headless(), exports_headless));
|
|
539752
539605
|
await handleHeadlessCommand2({ values: headlessValues, positionals }, specifiedModel, skillsDirectory, resolvedSkillSources, !noSystemInfoReminderFlag, { requestedBackendMode: explicitBackendMode });
|
|
539753
539606
|
return;
|
|
539754
539607
|
}
|
|
@@ -540559,14 +540412,14 @@ var init_src5 = __esm(async () => {
|
|
|
540559
540412
|
init_runtime_version();
|
|
540560
540413
|
init_settings_manager();
|
|
540561
540414
|
init_startup_auto_update();
|
|
540415
|
+
init_toolset();
|
|
540562
540416
|
init_toolset_catalog();
|
|
540563
540417
|
init_debug();
|
|
540564
540418
|
init_timing();
|
|
540565
540419
|
await __promiseAll([
|
|
540566
540420
|
init_ConversationSelector(),
|
|
540567
540421
|
init_profile_selection(),
|
|
540568
|
-
init_router()
|
|
540569
|
-
init_toolset()
|
|
540422
|
+
init_router()
|
|
540570
540423
|
]);
|
|
540571
540424
|
EMPTY_APPROVAL_ARRAY = [];
|
|
540572
540425
|
EMPTY_MESSAGE_ARRAY = [];
|
|
@@ -542938,4 +542791,4 @@ function registerBunOAuthFlows() {
|
|
|
542938
542791
|
registerBunOAuthFlows();
|
|
542939
542792
|
await init_src5().then(() => exports_src2);
|
|
542940
542793
|
|
|
542941
|
-
//# debugId=
|
|
542794
|
+
//# debugId=6D24B38457E401FF64756E2164756E21
|