@moxt-ai/cli 0.13.4 → 0.13.5
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/index.cjs +1002 -974
- package/dist/index.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -56983,7 +56983,7 @@ ${captureLines}` : capture.stack;
|
|
|
56983
56983
|
}
|
|
56984
56984
|
});
|
|
56985
56985
|
|
|
56986
|
-
// ../machine-connector/node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
56986
|
+
// ../machine-connector/node_modules/.pnpm/@moxt-ai+mobius@0.0.52/node_modules/@moxt-ai/mobius/dist/index.js
|
|
56987
56987
|
function discardExtensionParams(_params) {
|
|
56988
56988
|
return Object.freeze({});
|
|
56989
56989
|
}
|
|
@@ -62353,8 +62353,8 @@ function rewriteKeyNames2(ctx) {
|
|
|
62353
62353
|
bySchema.set(entry.schema, entry);
|
|
62354
62354
|
}
|
|
62355
62355
|
const rewrites = /* @__PURE__ */ new Map();
|
|
62356
|
-
for (const
|
|
62357
|
-
const seen = ctx.seen.get(
|
|
62356
|
+
for (const record32 of pendingRecords2.get(ctx) ?? []) {
|
|
62357
|
+
const seen = ctx.seen.get(record32);
|
|
62358
62358
|
const names = (seen?.def ?? seen?.schema)?.propertyNames;
|
|
62359
62359
|
if (!names || names === true || rewrites.has(names))
|
|
62360
62360
|
continue;
|
|
@@ -64836,66 +64836,6 @@ async function runBoundedProcess(options) {
|
|
|
64836
64836
|
}
|
|
64837
64837
|
}
|
|
64838
64838
|
}
|
|
64839
|
-
function validateAdjustableMode(permissionMode) {
|
|
64840
|
-
if (!adjustablePermissionValues.some((value) => value.value === permissionMode)) {
|
|
64841
|
-
throw new AgentPermissionConfigurationError("The selected permission mode is unavailable");
|
|
64842
|
-
}
|
|
64843
|
-
return permissionMode;
|
|
64844
|
-
}
|
|
64845
|
-
function record22(value) {
|
|
64846
|
-
if (value === void 0) {
|
|
64847
|
-
return {};
|
|
64848
|
-
}
|
|
64849
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
64850
|
-
throw new AgentPermissionConfigurationError("The OpenCode inline configuration is invalid");
|
|
64851
|
-
}
|
|
64852
|
-
return Object.fromEntries(Object.entries(value));
|
|
64853
|
-
}
|
|
64854
|
-
function openCodeConfiguration(environment) {
|
|
64855
|
-
const encoded = environment["OPENCODE_CONFIG_CONTENT"];
|
|
64856
|
-
if (encoded === void 0 || encoded.length === 0) {
|
|
64857
|
-
return {};
|
|
64858
|
-
}
|
|
64859
|
-
try {
|
|
64860
|
-
return record22(JSON.parse(encoded));
|
|
64861
|
-
} catch (cause) {
|
|
64862
|
-
if (cause instanceof AgentPermissionConfigurationError) {
|
|
64863
|
-
throw cause;
|
|
64864
|
-
}
|
|
64865
|
-
throw new AgentPermissionConfigurationError("The OpenCode inline configuration is invalid", { cause });
|
|
64866
|
-
}
|
|
64867
|
-
}
|
|
64868
|
-
function openCodePermission(permissionMode) {
|
|
64869
|
-
if (permissionMode === READ_ONLY_PERMISSION_MODE) {
|
|
64870
|
-
return {
|
|
64871
|
-
"*": "deny",
|
|
64872
|
-
glob: "allow",
|
|
64873
|
-
grep: "allow",
|
|
64874
|
-
lsp: "allow",
|
|
64875
|
-
read: "allow",
|
|
64876
|
-
skill: "allow"
|
|
64877
|
-
};
|
|
64878
|
-
}
|
|
64879
|
-
if (permissionMode === WORKSPACE_WRITE_PERMISSION_MODE) {
|
|
64880
|
-
return {
|
|
64881
|
-
"*": "allow",
|
|
64882
|
-
external_directory: "ask"
|
|
64883
|
-
};
|
|
64884
|
-
}
|
|
64885
|
-
return "allow";
|
|
64886
|
-
}
|
|
64887
|
-
function permissionProfileForAgent(agentId) {
|
|
64888
|
-
if (agentId === "deepseek-harness") {
|
|
64889
|
-
return deepSeekHarnessPermissionProfile;
|
|
64890
|
-
}
|
|
64891
|
-
if (agentId === "opencode") {
|
|
64892
|
-
return openCodePermissionProfile;
|
|
64893
|
-
}
|
|
64894
|
-
if (agentId === "pi") {
|
|
64895
|
-
return piPermissionProfile;
|
|
64896
|
-
}
|
|
64897
|
-
return agentManagedPermissionProfile;
|
|
64898
|
-
}
|
|
64899
64839
|
function readTrustedIdentity(path22) {
|
|
64900
64840
|
const resolvedPath = (0, import_node_fs3.realpathSync)(path22);
|
|
64901
64841
|
const metadata = (0, import_node_fs3.statSync)(resolvedPath);
|
|
@@ -69879,13 +69819,14 @@ function normalizeConfigOptions(value, modes) {
|
|
|
69879
69819
|
}
|
|
69880
69820
|
const id = truncate2(readString2(option["id"]), 128);
|
|
69881
69821
|
const name = truncate2(readString2(option["name"], id), 255);
|
|
69882
|
-
|
|
69822
|
+
const category = truncate2(readString2(option["category"]), 128);
|
|
69823
|
+
if (id.length === 0 || name.length === 0 || category === "_mobius_permission") {
|
|
69883
69824
|
continue;
|
|
69884
69825
|
}
|
|
69885
69826
|
if (option["type"] === "boolean") {
|
|
69886
69827
|
normalized.push({
|
|
69887
69828
|
booleanValue: readBoolean(option["currentValue"]),
|
|
69888
|
-
category
|
|
69829
|
+
category,
|
|
69889
69830
|
currentValue: "",
|
|
69890
69831
|
description: truncate2(readString2(option["description"]), 500),
|
|
69891
69832
|
id,
|
|
@@ -69901,7 +69842,7 @@ function normalizeConfigOptions(value, modes) {
|
|
|
69901
69842
|
if (currentValue.length > 0 && values.some((entry) => entry.value === currentValue)) {
|
|
69902
69843
|
normalized.push({
|
|
69903
69844
|
booleanValue: false,
|
|
69904
|
-
category
|
|
69845
|
+
category,
|
|
69905
69846
|
currentValue,
|
|
69906
69847
|
description: truncate2(readString2(option["description"]), 500),
|
|
69907
69848
|
id,
|
|
@@ -69948,122 +69889,16 @@ function normalizeConfigOptions(value, modes) {
|
|
|
69948
69889
|
});
|
|
69949
69890
|
}
|
|
69950
69891
|
}
|
|
69951
|
-
return normalized.slice(0,
|
|
69952
|
-
}
|
|
69953
|
-
function insertRequiredOption(current2, required22, afterCategory = "") {
|
|
69954
|
-
if (current2.some((option) => option.id === required22.id || option.category === required22.category)) {
|
|
69955
|
-
return current2;
|
|
69956
|
-
}
|
|
69957
|
-
if (current2.length < MAXIMUM_CONFIG_OPTIONS) {
|
|
69958
|
-
if (afterCategory.length === 0) {
|
|
69959
|
-
return [required22, ...current2];
|
|
69960
|
-
}
|
|
69961
|
-
const index32 = current2.findIndex((option) => option.category === afterCategory);
|
|
69962
|
-
if (index32 < 0) {
|
|
69963
|
-
return [...current2, required22];
|
|
69964
|
-
}
|
|
69965
|
-
return [...current2.slice(0, index32 + 1), required22, ...current2.slice(index32 + 1)];
|
|
69966
|
-
}
|
|
69967
|
-
if (afterCategory.length === 0) {
|
|
69968
|
-
return [required22, ...current2.slice(0, MAXIMUM_CONFIG_OPTIONS - 1)];
|
|
69969
|
-
}
|
|
69970
|
-
const index22 = current2.findIndex((option) => option.category === afterCategory);
|
|
69971
|
-
if (index22 < 0) {
|
|
69972
|
-
return [...current2.slice(0, MAXIMUM_CONFIG_OPTIONS - 1), required22];
|
|
69973
|
-
}
|
|
69974
|
-
if (index22 < MAXIMUM_CONFIG_OPTIONS - 1) {
|
|
69975
|
-
return [...current2.slice(0, index22 + 1), required22, ...current2.slice(index22 + 1, MAXIMUM_CONFIG_OPTIONS - 1)];
|
|
69976
|
-
}
|
|
69977
|
-
const anchor22 = current2[index22];
|
|
69978
|
-
if (anchor22 === void 0) {
|
|
69979
|
-
throw new SessionConfigProtocolError("The required Agent execution setting is unavailable");
|
|
69980
|
-
}
|
|
69981
|
-
return [...current2.slice(0, MAXIMUM_CONFIG_OPTIONS - 2), anchor22, required22];
|
|
69982
|
-
}
|
|
69983
|
-
function validRequiredSelect(option) {
|
|
69984
|
-
return option.type === "select" && option.currentValue.length > 0 && option.values.some((value) => value.value === option.currentValue);
|
|
69985
|
-
}
|
|
69986
|
-
function ensureModelOption(current2) {
|
|
69987
|
-
const existing = current2.find((option) => option.id === "model" || option.category === "model");
|
|
69988
|
-
if (existing !== void 0 && validRequiredSelect(existing)) {
|
|
69989
|
-
return current2;
|
|
69990
|
-
}
|
|
69991
|
-
const unavailable = {
|
|
69992
|
-
booleanValue: false,
|
|
69993
|
-
category: "model",
|
|
69994
|
-
currentValue: AGENT_DEFAULT_REASONING_EFFORT,
|
|
69995
|
-
description: "This Agent does not expose an adjustable model.",
|
|
69996
|
-
id: "model",
|
|
69997
|
-
name: "Model",
|
|
69998
|
-
type: "select",
|
|
69999
|
-
values: [
|
|
70000
|
-
{
|
|
70001
|
-
description: "Selected by the Agent",
|
|
70002
|
-
groupId: "",
|
|
70003
|
-
groupName: "",
|
|
70004
|
-
name: "Agent default",
|
|
70005
|
-
value: AGENT_DEFAULT_REASONING_EFFORT
|
|
70006
|
-
}
|
|
70007
|
-
]
|
|
70008
|
-
};
|
|
70009
|
-
return insertRequiredOption(
|
|
70010
|
-
current2.filter((option) => option.id !== "model" && option.category !== "model"),
|
|
70011
|
-
unavailable
|
|
70012
|
-
);
|
|
70013
|
-
}
|
|
70014
|
-
function ensureReasoningEffortOption(current2) {
|
|
70015
|
-
const existing = current2.find((option) => option.id === "reasoning_effort" || option.category === "thought_level");
|
|
70016
|
-
if (existing !== void 0 && validRequiredSelect(existing)) {
|
|
70017
|
-
return current2;
|
|
70018
|
-
}
|
|
70019
|
-
const unavailable = {
|
|
70020
|
-
booleanValue: false,
|
|
70021
|
-
category: "thought_level",
|
|
70022
|
-
currentValue: AGENT_DEFAULT_REASONING_EFFORT,
|
|
70023
|
-
description: "This Agent does not expose adjustable reasoning effort for the selected model.",
|
|
70024
|
-
id: "reasoning_effort",
|
|
70025
|
-
name: "Reasoning effort",
|
|
70026
|
-
type: "select",
|
|
70027
|
-
values: [
|
|
70028
|
-
{
|
|
70029
|
-
description: "Selected by the Agent",
|
|
70030
|
-
groupId: "",
|
|
70031
|
-
groupName: "",
|
|
70032
|
-
name: "Agent default",
|
|
70033
|
-
value: AGENT_DEFAULT_REASONING_EFFORT
|
|
70034
|
-
}
|
|
70035
|
-
]
|
|
70036
|
-
};
|
|
70037
|
-
return insertRequiredOption(
|
|
70038
|
-
current2.filter((option) => option.id !== "reasoning_effort" && option.category !== "thought_level"),
|
|
70039
|
-
unavailable,
|
|
70040
|
-
"model"
|
|
70041
|
-
);
|
|
70042
|
-
}
|
|
70043
|
-
function ensureRequiredExecutionOptions(current2, permission) {
|
|
70044
|
-
const normalized = ensureReasoningEffortOption(ensureModelOption(current2));
|
|
70045
|
-
const model = normalized.find(
|
|
70046
|
-
(option) => (option.id === "model" || option.category === "model") && validRequiredSelect(option)
|
|
70047
|
-
);
|
|
70048
|
-
const reasoningEffort = normalized.find(
|
|
70049
|
-
(option) => (option.id === "reasoning_effort" || option.category === "thought_level") && validRequiredSelect(option)
|
|
70050
|
-
);
|
|
70051
|
-
if (model === void 0 || reasoningEffort === void 0) {
|
|
70052
|
-
throw new SessionConfigProtocolError("The required Agent execution settings are unavailable");
|
|
70053
|
-
}
|
|
70054
|
-
const optional22 = normalized.filter(
|
|
70055
|
-
(option) => option.id !== permission.id && option.category !== permission.category && option.id !== "model" && option.category !== "model" && option.id !== "reasoning_effort" && option.category !== "thought_level"
|
|
70056
|
-
);
|
|
70057
|
-
return [permission, model, reasoningEffort, ...optional22].slice(0, MAXIMUM_CONFIG_OPTIONS);
|
|
69892
|
+
return normalized.slice(0, MAXIMUM_CONFIG_OPTIONS);
|
|
70058
69893
|
}
|
|
70059
69894
|
function normalizeStandardLifecycle(response) {
|
|
70060
69895
|
const lifecycle = isRecord42(response) ? response : {};
|
|
70061
|
-
return
|
|
69896
|
+
return normalizeConfigOptions(lifecycle["configOptions"], lifecycle["modes"]);
|
|
70062
69897
|
}
|
|
70063
69898
|
function replaceStandardConfigOptions(current2, value) {
|
|
70064
69899
|
const next = normalizeConfigOptions(value, void 0);
|
|
70065
|
-
const withMode = next.some((option) => option.category === "mode") ? next : [...current2.filter((option) => option.category === "mode"), ...next].slice(0,
|
|
70066
|
-
return
|
|
69900
|
+
const withMode = next.some((option) => option.category === "mode") ? next : [...current2.filter((option) => option.category === "mode"), ...next].slice(0, MAXIMUM_CONFIG_OPTIONS);
|
|
69901
|
+
return withMode;
|
|
70067
69902
|
}
|
|
70068
69903
|
function updateCurrentValue(current2, configId, value) {
|
|
70069
69904
|
return current2.map((option) => option.id === configId ? { ...option, currentValue: value } : option);
|
|
@@ -70205,7 +70040,7 @@ function normalizeGrokLifecycle(response) {
|
|
|
70205
70040
|
normalized.splice(modelIndex < 0 ? normalized.length : modelIndex + 1, 0, ...efforts);
|
|
70206
70041
|
}
|
|
70207
70042
|
}
|
|
70208
|
-
return
|
|
70043
|
+
return normalized.slice(0, 100);
|
|
70209
70044
|
}
|
|
70210
70045
|
function updateCurrentValue2(current2, category, value) {
|
|
70211
70046
|
return current2.map((option) => option.category === category ? { ...option, currentValue: value } : option);
|
|
@@ -71828,6 +71663,99 @@ async function resumeMobiusRuntime(installation, connectionId22, signal, environ
|
|
|
71828
71663
|
const connection = await installation.readConnection(connectionId22, signal);
|
|
71829
71664
|
return await resumeRuntimeConnection(installation, connection, signal, environment);
|
|
71830
71665
|
}
|
|
71666
|
+
function selectValue(name, value, description) {
|
|
71667
|
+
return {
|
|
71668
|
+
description,
|
|
71669
|
+
groupId: "",
|
|
71670
|
+
groupName: "",
|
|
71671
|
+
name,
|
|
71672
|
+
value
|
|
71673
|
+
};
|
|
71674
|
+
}
|
|
71675
|
+
function selectSetting(id, name, description, currentValue, values) {
|
|
71676
|
+
return {
|
|
71677
|
+
booleanValue: false,
|
|
71678
|
+
category: "execution",
|
|
71679
|
+
currentValue,
|
|
71680
|
+
description,
|
|
71681
|
+
id,
|
|
71682
|
+
name,
|
|
71683
|
+
type: "select",
|
|
71684
|
+
values
|
|
71685
|
+
};
|
|
71686
|
+
}
|
|
71687
|
+
function selectedValue(selection, configId) {
|
|
71688
|
+
if (selection.configId !== configId || selection.valueType !== "select" || selection.booleanValue || selection.value.length === 0) {
|
|
71689
|
+
throw new AgentSettingsConfigurationError("The requested Agent setting is invalid");
|
|
71690
|
+
}
|
|
71691
|
+
return selection.value;
|
|
71692
|
+
}
|
|
71693
|
+
function validValue(values, value) {
|
|
71694
|
+
if (!values.some((candidate) => candidate.value === value)) {
|
|
71695
|
+
throw new AgentSettingsConfigurationError("The requested Agent setting is unavailable");
|
|
71696
|
+
}
|
|
71697
|
+
return value;
|
|
71698
|
+
}
|
|
71699
|
+
function openCodeConfiguration(environment) {
|
|
71700
|
+
const encoded = environment["OPENCODE_CONFIG_CONTENT"];
|
|
71701
|
+
if (encoded === void 0 || encoded.length === 0) {
|
|
71702
|
+
return {};
|
|
71703
|
+
}
|
|
71704
|
+
let parsed;
|
|
71705
|
+
try {
|
|
71706
|
+
parsed = JSON.parse(encoded);
|
|
71707
|
+
} catch (cause) {
|
|
71708
|
+
throw new AgentSettingsConfigurationError("The OpenCode configuration is invalid", { cause });
|
|
71709
|
+
}
|
|
71710
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
71711
|
+
throw new AgentSettingsConfigurationError("The OpenCode configuration is invalid");
|
|
71712
|
+
}
|
|
71713
|
+
return Object.freeze({ ...parsed });
|
|
71714
|
+
}
|
|
71715
|
+
function openCodePermission(value) {
|
|
71716
|
+
if (value === READ_ONLY_VALUE) {
|
|
71717
|
+
return {
|
|
71718
|
+
"*": "deny",
|
|
71719
|
+
glob: "allow",
|
|
71720
|
+
grep: "allow",
|
|
71721
|
+
lsp: "allow",
|
|
71722
|
+
read: "allow",
|
|
71723
|
+
skill: "allow"
|
|
71724
|
+
};
|
|
71725
|
+
}
|
|
71726
|
+
if (value === WORKSPACE_WRITE_VALUE) {
|
|
71727
|
+
return {
|
|
71728
|
+
"*": "allow",
|
|
71729
|
+
external_directory: "ask"
|
|
71730
|
+
};
|
|
71731
|
+
}
|
|
71732
|
+
return "allow";
|
|
71733
|
+
}
|
|
71734
|
+
function agentSettingsAdapterForAgent(agentId) {
|
|
71735
|
+
if (agentId === "codex") {
|
|
71736
|
+
return codexAdapter;
|
|
71737
|
+
}
|
|
71738
|
+
if (agentId === "deepseek-harness") {
|
|
71739
|
+
return deepSeekHarnessAdapter;
|
|
71740
|
+
}
|
|
71741
|
+
if (agentId === "opencode") {
|
|
71742
|
+
return openCodeAdapter;
|
|
71743
|
+
}
|
|
71744
|
+
return genericAdapter;
|
|
71745
|
+
}
|
|
71746
|
+
function applyAgentLaunchSettings(agent, selections) {
|
|
71747
|
+
const adapter = agentSettingsAdapterForAgent(agent.id);
|
|
71748
|
+
let selectedAgent = agent;
|
|
71749
|
+
const sessionConfigurations = [];
|
|
71750
|
+
for (const selection of selections) {
|
|
71751
|
+
const applied = adapter.applyLaunchSelection(selectedAgent, selection);
|
|
71752
|
+
selectedAgent = applied.agent;
|
|
71753
|
+
if (!applied.handled) {
|
|
71754
|
+
sessionConfigurations.push(selection);
|
|
71755
|
+
}
|
|
71756
|
+
}
|
|
71757
|
+
return new AppliedAgentLaunchSettings(selectedAgent, sessionConfigurations);
|
|
71758
|
+
}
|
|
71831
71759
|
function runtimeCredential(relayUrl) {
|
|
71832
71760
|
return relayUrl.searchParams.get("token") ?? "";
|
|
71833
71761
|
}
|
|
@@ -72048,7 +71976,7 @@ function invalidResponse(message) {
|
|
|
72048
71976
|
function isRecord10(value) {
|
|
72049
71977
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
72050
71978
|
}
|
|
72051
|
-
function
|
|
71979
|
+
function record22(value, name) {
|
|
72052
71980
|
if (!isRecord10(value)) {
|
|
72053
71981
|
throw invalidResponse(`The service returned an invalid ${name}`);
|
|
72054
71982
|
}
|
|
@@ -72110,11 +72038,11 @@ function uploadingArtifact(value) {
|
|
|
72110
72038
|
);
|
|
72111
72039
|
}
|
|
72112
72040
|
function decodeMobiusArtifactUpload(value) {
|
|
72113
|
-
const artifact =
|
|
72041
|
+
const artifact = record22(value, "artifact upload authorization");
|
|
72114
72042
|
return new MobiusArtifactUpload(uploadingArtifact(artifact), stringField(artifact, "uploadToken", 256));
|
|
72115
72043
|
}
|
|
72116
72044
|
function decodeMobiusArtifact(value) {
|
|
72117
|
-
const artifact =
|
|
72045
|
+
const artifact = record22(value, "artifact");
|
|
72118
72046
|
const state = stringField(artifact, "state", 32);
|
|
72119
72047
|
if (state === "uploading") {
|
|
72120
72048
|
return uploadingArtifact(artifact);
|
|
@@ -73027,30 +72955,139 @@ async function resolveSessionDirectories(directories, bindingId, directoryId22,
|
|
|
73027
72955
|
return new ResolvedSessionDirectories(cwd, additionalDirectories, additionalDirectoryEntries);
|
|
73028
72956
|
}
|
|
73029
72957
|
async function discoverAgentSettings(command, config22, directories, sessions, signal) {
|
|
73030
|
-
const resolved = await resolveSessionDirectories(
|
|
73031
|
-
directories,
|
|
73032
|
-
config22.bindingId,
|
|
73033
|
-
command.directoryId,
|
|
73034
|
-
command.additionalDirectoryIds,
|
|
73035
|
-
signal
|
|
73036
|
-
);
|
|
73037
72958
|
const agent = config22.catalog.find(command.agentId);
|
|
72959
|
+
const cwd = await directories.resolve(config22.bindingId, "default", signal);
|
|
73038
72960
|
const snapshot = await sessions.inspectAgentSettings({
|
|
73039
|
-
additionalDirectories:
|
|
72961
|
+
additionalDirectories: [],
|
|
73040
72962
|
agent,
|
|
73041
|
-
cwd
|
|
72963
|
+
cwd,
|
|
73042
72964
|
signal
|
|
73043
72965
|
});
|
|
72966
|
+
const adapter = agentSettingsAdapterForAgent(agent.id);
|
|
72967
|
+
const settings = settingsFromSnapshot(agent, snapshot.configOptions);
|
|
72968
|
+
const modelEffort = await discoverModelEffort(
|
|
72969
|
+
command,
|
|
72970
|
+
agent,
|
|
72971
|
+
adapter.modelEffortResolution,
|
|
72972
|
+
snapshot.configOptions,
|
|
72973
|
+
cwd,
|
|
72974
|
+
sessions,
|
|
72975
|
+
signal
|
|
72976
|
+
);
|
|
73044
72977
|
return {
|
|
73045
72978
|
agentId: command.agentId,
|
|
73046
72979
|
agentName: snapshot.agentName,
|
|
73047
72980
|
agentVersion: snapshot.agentVersion,
|
|
73048
|
-
configOptions: snapshot.configOptions,
|
|
73049
|
-
directoryId: command.directoryId,
|
|
73050
72981
|
kind: AGENT_SETTINGS_DISCOVERED_KIND,
|
|
73051
|
-
|
|
72982
|
+
modelEffort,
|
|
72983
|
+
requestId: command.requestId,
|
|
72984
|
+
settings,
|
|
72985
|
+
settingsRevision: settingsRevision(agent, snapshot.agentVersion, settings, modelEffort)
|
|
72986
|
+
};
|
|
72987
|
+
}
|
|
72988
|
+
function settingFromOption(option) {
|
|
72989
|
+
return {
|
|
72990
|
+
booleanValue: option.booleanValue,
|
|
72991
|
+
category: option.category,
|
|
72992
|
+
defaultValue: option.type === "boolean" ? "" : option.currentValue,
|
|
72993
|
+
description: option.description,
|
|
72994
|
+
id: option.id,
|
|
72995
|
+
name: option.name,
|
|
72996
|
+
type: option.type,
|
|
72997
|
+
values: option.values
|
|
72998
|
+
};
|
|
72999
|
+
}
|
|
73000
|
+
function settingsFromSnapshot(agent, configOptions) {
|
|
73001
|
+
const settings = [
|
|
73002
|
+
...agentSettingsAdapterForAgent(agent.id).settings(agent).map(settingFromOption),
|
|
73003
|
+
...configOptions.map(settingFromOption)
|
|
73004
|
+
];
|
|
73005
|
+
const identifiers = /* @__PURE__ */ new Set();
|
|
73006
|
+
for (const setting of settings) {
|
|
73007
|
+
if (identifiers.has(setting.id)) {
|
|
73008
|
+
throw new AcpExecutionError(
|
|
73009
|
+
"The Agent returned duplicate setting identifiers",
|
|
73010
|
+
{},
|
|
73011
|
+
"invalid_session_configuration"
|
|
73012
|
+
);
|
|
73013
|
+
}
|
|
73014
|
+
identifiers.add(setting.id);
|
|
73015
|
+
}
|
|
73016
|
+
if (settings.length > 128) {
|
|
73017
|
+
throw new AcpExecutionError("The Agent returned too many settings", {}, "invalid_session_configuration");
|
|
73018
|
+
}
|
|
73019
|
+
return settings;
|
|
73020
|
+
}
|
|
73021
|
+
function modelOption(options) {
|
|
73022
|
+
return options.find((option) => option.id === "model" || option.category === "model");
|
|
73023
|
+
}
|
|
73024
|
+
function effortOption(options) {
|
|
73025
|
+
return options.find((option) => option.id === "reasoning_effort" || option.category === "thought_level");
|
|
73026
|
+
}
|
|
73027
|
+
function unavailableModelEffort() {
|
|
73028
|
+
return {
|
|
73029
|
+
effortSettingId: "",
|
|
73030
|
+
modelSettingId: "",
|
|
73031
|
+
resolution: AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE,
|
|
73032
|
+
valuesByModel: {}
|
|
73052
73033
|
};
|
|
73053
73034
|
}
|
|
73035
|
+
async function discoverModelEffort(command, agent, resolution, initialOptions, cwd, sessions, signal) {
|
|
73036
|
+
const model = modelOption(initialOptions);
|
|
73037
|
+
const effort = effortOption(initialOptions);
|
|
73038
|
+
if (resolution !== AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE && resolution !== AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION) {
|
|
73039
|
+
return unavailableModelEffort();
|
|
73040
|
+
}
|
|
73041
|
+
if (model === void 0 || model.type !== "select" || model.values.length === 0 || effort === void 0 || effort.type !== "select" || effort.values.length < 2) {
|
|
73042
|
+
return unavailableModelEffort();
|
|
73043
|
+
}
|
|
73044
|
+
const inspectModel = async (modelValue) => (await sessions.inspectAgentSettings({
|
|
73045
|
+
additionalDirectories: [],
|
|
73046
|
+
agent,
|
|
73047
|
+
cwd,
|
|
73048
|
+
model: modelValue,
|
|
73049
|
+
signal
|
|
73050
|
+
})).configOptions;
|
|
73051
|
+
const valuesByModel = {};
|
|
73052
|
+
if (resolution === "complete") {
|
|
73053
|
+
for (const value of model.values) {
|
|
73054
|
+
const selectedEffort = effortOption(await inspectModel(value.value));
|
|
73055
|
+
valuesByModel[value.value] = selectedEffort?.type === "select" ? selectedEffort.values : [];
|
|
73056
|
+
}
|
|
73057
|
+
return {
|
|
73058
|
+
effortSettingId: effort.id,
|
|
73059
|
+
modelSettingId: model.id,
|
|
73060
|
+
resolution: "complete",
|
|
73061
|
+
valuesByModel
|
|
73062
|
+
};
|
|
73063
|
+
}
|
|
73064
|
+
if (command.model !== void 0) {
|
|
73065
|
+
if (!model.values.some((value) => value.value === command.model)) {
|
|
73066
|
+
throw new AcpExecutionError("The selected Agent model is unavailable", {}, "invalid_session_configuration");
|
|
73067
|
+
}
|
|
73068
|
+
const selectedEffort = effortOption(await inspectModel(command.model));
|
|
73069
|
+
valuesByModel[command.model] = selectedEffort?.type === "select" ? selectedEffort.values : [];
|
|
73070
|
+
}
|
|
73071
|
+
return {
|
|
73072
|
+
effortSettingId: effort.id,
|
|
73073
|
+
modelSettingId: model.id,
|
|
73074
|
+
resolution: "on_model_selection",
|
|
73075
|
+
valuesByModel
|
|
73076
|
+
};
|
|
73077
|
+
}
|
|
73078
|
+
function settingsRevision(agent, reportedAgentVersion, settings, modelEffort) {
|
|
73079
|
+
const revisionModelEffort = modelEffort.resolution === AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE ? modelEffort : { ...modelEffort, valuesByModel: {} };
|
|
73080
|
+
return (0, import_node_crypto8.createHash)("sha256").update(
|
|
73081
|
+
JSON.stringify({
|
|
73082
|
+
adapterVersion: agent.adapterVersion,
|
|
73083
|
+
agentId: agent.id,
|
|
73084
|
+
agentVersion: agent.agentVersion,
|
|
73085
|
+
modelEffort: revisionModelEffort,
|
|
73086
|
+
reportedAgentVersion,
|
|
73087
|
+
settings
|
|
73088
|
+
})
|
|
73089
|
+
).digest("hex");
|
|
73090
|
+
}
|
|
73054
73091
|
async function executeWorkspaceList(socket, command, directories, audit, signal) {
|
|
73055
73092
|
try {
|
|
73056
73093
|
const listing = await directories.list(command.bindingId, command.directoryId, signal);
|
|
@@ -73238,23 +73275,26 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
73238
73275
|
"prompt_queue_target_unavailable"
|
|
73239
73276
|
);
|
|
73240
73277
|
}
|
|
73278
|
+
const appliedSettings = command.sessionConfigurations === void 0 ? void 0 : agentForSessionConfiguration(agent, command.sessionConfigurations);
|
|
73279
|
+
const executionAgent = appliedSettings?.agent ?? agent;
|
|
73280
|
+
const sessionConfigurations = appliedSettings?.sessionConfigurations;
|
|
73241
73281
|
if (command.sessionConfigurations !== void 0) {
|
|
73242
73282
|
const prepared = await sessions.prepareExecutionSession({
|
|
73243
73283
|
additionalDirectories: resolved.additionalDirectories,
|
|
73244
|
-
agent,
|
|
73284
|
+
agent: executionAgent,
|
|
73245
73285
|
cwd: resolved.cwd,
|
|
73246
73286
|
sessionId: command.sessionId,
|
|
73247
73287
|
signal
|
|
73248
73288
|
});
|
|
73249
73289
|
if (command.disposition === SessionPromptDisposition.Steer) {
|
|
73250
|
-
assertCompleteSessionConfiguration(prepared.configOptions,
|
|
73290
|
+
assertCompleteSessionConfiguration(prepared.configOptions, sessionConfigurations ?? []);
|
|
73251
73291
|
} else {
|
|
73252
73292
|
await applyCompleteSessionConfiguration(
|
|
73253
73293
|
sessions,
|
|
73254
73294
|
audit,
|
|
73255
73295
|
prepared.configOptions,
|
|
73256
|
-
|
|
73257
|
-
|
|
73296
|
+
sessionConfigurations ?? [],
|
|
73297
|
+
executionAgent,
|
|
73258
73298
|
resolved.cwd,
|
|
73259
73299
|
resolved.additionalDirectories,
|
|
73260
73300
|
command.commandId,
|
|
@@ -73285,7 +73325,7 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
73285
73325
|
if (command.disposition === SessionPromptDisposition.Steer) {
|
|
73286
73326
|
await sessions.steerPrompt({
|
|
73287
73327
|
additionalDirectories: resolved.additionalDirectories,
|
|
73288
|
-
agent,
|
|
73328
|
+
agent: executionAgent,
|
|
73289
73329
|
commandId: command.commandId,
|
|
73290
73330
|
cwd: resolved.cwd,
|
|
73291
73331
|
images: attachments.images,
|
|
@@ -73299,7 +73339,7 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
73299
73339
|
} else {
|
|
73300
73340
|
const result = await sessions.runPrompt({
|
|
73301
73341
|
additionalDirectories: resolved.additionalDirectories,
|
|
73302
|
-
agent,
|
|
73342
|
+
agent: executionAgent,
|
|
73303
73343
|
commandId: command.commandId,
|
|
73304
73344
|
cwd: resolved.cwd,
|
|
73305
73345
|
disposition: command.disposition,
|
|
@@ -73366,6 +73406,16 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
73366
73406
|
function invalidSessionConfiguration(message) {
|
|
73367
73407
|
return new AcpExecutionError(message, {}, "invalid_session_configuration");
|
|
73368
73408
|
}
|
|
73409
|
+
function agentForSessionConfiguration(agent, selections) {
|
|
73410
|
+
try {
|
|
73411
|
+
return applyAgentLaunchSettings(agent, selections);
|
|
73412
|
+
} catch (error622) {
|
|
73413
|
+
if (error622 instanceof Error) {
|
|
73414
|
+
throw invalidSessionConfiguration(error622.message);
|
|
73415
|
+
}
|
|
73416
|
+
throw error622;
|
|
73417
|
+
}
|
|
73418
|
+
}
|
|
73369
73419
|
function validateSessionConfigurationSelection(option, selection) {
|
|
73370
73420
|
if (option.type !== selection.valueType) {
|
|
73371
73421
|
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} changed type`);
|
|
@@ -73423,20 +73473,17 @@ function sessionConfigurationMatches(option, selection) {
|
|
|
73423
73473
|
return option.type === "boolean" ? option.booleanValue === selection.booleanValue : option.currentValue === selection.value;
|
|
73424
73474
|
}
|
|
73425
73475
|
function sessionConfigurationPriority(selection, options) {
|
|
73426
|
-
if (selection.configId === "permission_mode") {
|
|
73427
|
-
return 0;
|
|
73428
|
-
}
|
|
73429
73476
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
73430
73477
|
if (selection.configId === "model" || option?.category === "model") {
|
|
73431
|
-
return
|
|
73478
|
+
return 0;
|
|
73432
73479
|
}
|
|
73433
73480
|
if (selection.configId === "reasoning_effort" || option?.category === "thought_level") {
|
|
73434
|
-
return
|
|
73481
|
+
return 1;
|
|
73435
73482
|
}
|
|
73436
73483
|
if (option?.category === "model_config") {
|
|
73437
|
-
return
|
|
73484
|
+
return 2;
|
|
73438
73485
|
}
|
|
73439
|
-
return
|
|
73486
|
+
return 3;
|
|
73440
73487
|
}
|
|
73441
73488
|
function assertCompleteSessionConfiguration(options, selections) {
|
|
73442
73489
|
assertSessionConfigurationSchema(options, selections);
|
|
@@ -73452,12 +73499,6 @@ function assertAppliedSessionConfiguration(options, selections) {
|
|
|
73452
73499
|
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
73453
73500
|
for (const option of options) {
|
|
73454
73501
|
const selection = selectionsById.get(option.id);
|
|
73455
|
-
if (option.id === AGENT_PERMISSION_MODE_CONFIG_ID) {
|
|
73456
|
-
if (selection === void 0 || !sessionConfigurationMatches(option, selection)) {
|
|
73457
|
-
throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option.id}`);
|
|
73458
|
-
}
|
|
73459
|
-
continue;
|
|
73460
|
-
}
|
|
73461
73502
|
if (selection === void 0 || !sessionConfigurationSelectionIsAvailable(option, selection)) {
|
|
73462
73503
|
continue;
|
|
73463
73504
|
}
|
|
@@ -73478,61 +73519,56 @@ function unavailableSessionConfigurationCategory(selection) {
|
|
|
73478
73519
|
async function applySessionConfigurationSelection(sessions, audit, options, selection, agent, cwd, additionalDirectories, commandId, sessionId, signal) {
|
|
73479
73520
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
73480
73521
|
if (option === void 0) {
|
|
73481
|
-
|
|
73482
|
-
|
|
73483
|
-
|
|
73484
|
-
|
|
73485
|
-
|
|
73486
|
-
|
|
73487
|
-
|
|
73488
|
-
|
|
73489
|
-
|
|
73490
|
-
|
|
73491
|
-
|
|
73492
|
-
|
|
73493
|
-
|
|
73494
|
-
|
|
73495
|
-
|
|
73496
|
-
|
|
73497
|
-
|
|
73498
|
-
|
|
73499
|
-
|
|
73500
|
-
|
|
73501
|
-
|
|
73502
|
-
|
|
73503
|
-
|
|
73504
|
-
|
|
73505
|
-
|
|
73506
|
-
|
|
73507
|
-
|
|
73508
|
-
|
|
73509
|
-
|
|
73510
|
-
|
|
73511
|
-
|
|
73512
|
-
|
|
73513
|
-
|
|
73514
|
-
|
|
73515
|
-
|
|
73516
|
-
|
|
73517
|
-
|
|
73518
|
-
|
|
73519
|
-
|
|
73520
|
-
|
|
73521
|
-
|
|
73522
|
-
|
|
73523
|
-
|
|
73524
|
-
|
|
73525
|
-
|
|
73526
|
-
|
|
73527
|
-
|
|
73528
|
-
|
|
73529
|
-
|
|
73530
|
-
|
|
73531
|
-
option.category,
|
|
73532
|
-
"value_unavailable"
|
|
73533
|
-
);
|
|
73534
|
-
return options;
|
|
73535
|
-
}
|
|
73522
|
+
warnIgnoredSetting(
|
|
73523
|
+
audit,
|
|
73524
|
+
"session_configuration_setting_ignored",
|
|
73525
|
+
commandId,
|
|
73526
|
+
sessionId,
|
|
73527
|
+
agent.id,
|
|
73528
|
+
selection,
|
|
73529
|
+
unavailableSessionConfigurationCategory(selection),
|
|
73530
|
+
"setting_unavailable"
|
|
73531
|
+
);
|
|
73532
|
+
return options;
|
|
73533
|
+
}
|
|
73534
|
+
if (option.type !== selection.valueType) {
|
|
73535
|
+
warnIgnoredSetting(
|
|
73536
|
+
audit,
|
|
73537
|
+
"session_configuration_setting_ignored",
|
|
73538
|
+
commandId,
|
|
73539
|
+
sessionId,
|
|
73540
|
+
agent.id,
|
|
73541
|
+
selection,
|
|
73542
|
+
option.category,
|
|
73543
|
+
"setting_schema_mismatch"
|
|
73544
|
+
);
|
|
73545
|
+
return options;
|
|
73546
|
+
}
|
|
73547
|
+
if (option.type === "boolean" && selection.value.length > 0 || option.type === "select" && selection.booleanValue) {
|
|
73548
|
+
warnIgnoredSetting(
|
|
73549
|
+
audit,
|
|
73550
|
+
"session_configuration_setting_ignored",
|
|
73551
|
+
commandId,
|
|
73552
|
+
sessionId,
|
|
73553
|
+
agent.id,
|
|
73554
|
+
selection,
|
|
73555
|
+
option.category,
|
|
73556
|
+
"selection_schema_mismatch"
|
|
73557
|
+
);
|
|
73558
|
+
return options;
|
|
73559
|
+
}
|
|
73560
|
+
if (option.type === "select" && !option.values.some((value) => value.value === selection.value)) {
|
|
73561
|
+
warnIgnoredSetting(
|
|
73562
|
+
audit,
|
|
73563
|
+
"session_configuration_setting_ignored",
|
|
73564
|
+
commandId,
|
|
73565
|
+
sessionId,
|
|
73566
|
+
agent.id,
|
|
73567
|
+
selection,
|
|
73568
|
+
option.category,
|
|
73569
|
+
"value_unavailable"
|
|
73570
|
+
);
|
|
73571
|
+
return options;
|
|
73536
73572
|
}
|
|
73537
73573
|
if (sessionConfigurationMatches(option, selection)) {
|
|
73538
73574
|
return options;
|
|
@@ -74039,7 +74075,7 @@ async function runRelayConnection(config22, directories, audit, sessions, instal
|
|
|
74039
74075
|
);
|
|
74040
74076
|
audit.record({
|
|
74041
74077
|
commandId: command2.requestId,
|
|
74042
|
-
details: { agentId: command2.agentId
|
|
74078
|
+
details: { agentId: command2.agentId },
|
|
74043
74079
|
event: "agent_settings_discovered",
|
|
74044
74080
|
sessionId: `agent-settings:${command2.agentId}`
|
|
74045
74081
|
});
|
|
@@ -74621,9 +74657,9 @@ function validateRuntimeRelay(relayUrl) {
|
|
|
74621
74657
|
function validateRuntimeConfiguration(config22) {
|
|
74622
74658
|
validateRuntimeRelay(config22.relayUrl);
|
|
74623
74659
|
}
|
|
74624
|
-
var import_node_path8, import_node_fs3, import_node_child_process5, import_node_fs4, import_promises10, import_node_path9, import_node_os7, import_node_path10, import_node_child_process6, import_promises11, import_node_path11, import_node_url, import_node_path12, import_node_fs5, import_node_path13, import_node_sqlite, import_node_fs6, import_node_path14, import_node_sqlite2, import_promises12, import_node_path15, import_undici, import_promises13, import_node_path16, import_node_path17, import_node_path18, import_promises14, import_node_path19, import_promises15, import_node_path20, import_node_path21, import_node_crypto6, import_node_fs7, import_promises16, import_node_path22, import_undici2, import_undici3, import_node_path23, import_node_path24, import_node_child_process7, import_node_path25, import_node_path26, import_node_crypto7, import_promises17, import_node_path27, import_node_crypto8, import_node_path28, import_node_util, import_undici4, import_undici5, import_node_fs8, import_node_path29, import_node_fs9, import_promises18, import_node_path30, import_node_url2, import_node_crypto9, import_undici6, import_promises19, import_node_os8, import_node_path31, import_node_crypto10, import_node_path32, import_node_child_process8, import_node_crypto11, import_undici7, import_undici8, import_node_crypto12, import_node_fs10, import_node_path33, import_node_sqlite3, __defProp2, __export2, createAcpClient, external_exports2, core_exports22, util_exports2, Cached2, EVALUATING2, captureStackTrace2, allowsEval2, getParsedType2, propertyKeyTypes2, primitiveTypes2, NUMBER_FORMAT_RANGES2, BIGINT_FORMAT_RANGES2, highSurrogate2, Class2, installing2, broke2, breaker2, CONSTANT_CATCH2, _a3, NEVER2, _zodDesc2, _E2, $brand2, $ZodAsyncError2, $ZodEncodeError2, globalConfig2, _messageDesc2, _issuesDesc2, _installedToString2, initializer3, $ZodError2, $ZodRealError2, _parse3, parse3, _parseAsync3, parseAsync3, _safeParse2, safeParse3, _safeParseAsync2, safeParseAsync3, COMPILE_INVALID2, COMPILE_FALLBACK2, validate2, validateAsync3, _encode3, encode3, _decode3, decode3, _encodeAsync3, encodeAsync3, _decodeAsync3, decodeAsync3, _safeEncode2, safeEncode3, _safeDecode2, safeDecode3, _safeEncodeAsync2, safeEncodeAsync3, _safeDecodeAsync2, safeDecodeAsync3, regexes_exports2, cuid4, cuid23, ulid3, xid3, ksuid3, nanoid3, duration3, extendedDuration2, guid3, uuid3, uuid42, uuid62, uuid72, email3, html5Email2, rfc5322Email2, unicodeEmail2, idnEmail2, browserEmail2, _emoji3, ipv43, ipv63, mac3, cidrv43, cidrv63, base643, base64url3, hostname3, domain2, httpProtocol2, e1643, creditCard3, iban3, dateSource2, date5, anyString2, string4, bigint4, integer2, number4, boolean4, _null4, _undefined4, lowercase2, uppercase2, hex3, md5_hex2, md5_base642, md5_base64url2, sha1_hex2, sha1_base642, sha1_base64url2, sha256_hex2, sha256_base642, sha256_base64url2, sha384_hex2, sha384_base642, sha384_base64url2, sha512_hex2, sha512_base642, sha512_base64url2, $ZodCheck2, _whenHasSize2, _whenHasLength2, numericOriginMap2, $ZodCheckLessThan2, $ZodCheckGreaterThan2, $ZodCheckMultipleOf2, $ZodCheckNumberFormat2, $ZodCheckBigIntFormat2, $ZodCheckMaxSize2, $ZodCheckMinSize2, $ZodCheckSizeEquals2, $ZodCheckMaxLength2, $ZodCheckMinLength2, $ZodCheckLengthEquals2, $ZodCheckStringFormat2, $ZodCheckRegex2, $ZodCheckLowerCase2, $ZodCheckUpperCase2, $ZodCheckIncludes2, $ZodCheckStartsWith2, $ZodCheckEndsWith2, $ZodCheckProperty2, $ZodCheckMimeType2, $ZodCheckOverwrite2, Doc2, version2, $ZodType2, toStandardResult2, $ZodString2, $ZodStringFormat2, $ZodGUID2, $ZodUUID2, $ZodEmail2, URL_BAD_FORMAT2, URL_UNPARSEABLE2, asciiTabOrNewline2, $ZodURL2, $ZodEmoji2, $ZodNanoID2, $ZodCUID3, $ZodCUID22, $ZodULID2, $ZodXID2, $ZodKSUID2, $ZodISODateTime2, $ZodISODate2, $ZodISOTime2, $ZodISODuration2, $ZodIPv42, ipv6Alphabet2, $ZodIPv62, $ZodMAC2, $ZodCIDRv42, $ZodCIDRv62, base64Charset2, $ZodBase642, base64urlCharset2, $ZodBase64URL2, $ZodE1642, CC_SANITIZE2, $ZodCreditCard2, $ZodIBAN2, $ZodJWT2, $ZodCustomStringFormat2, $ZodNumber2, $ZodNumberFormat2, $ZodBoolean2, $ZodBigInt2, $ZodBigIntFormat2, $ZodSymbol2, $ZodUndefined2, $ZodNull2, $ZodAny2, $ZodUnknown2, $ZodNever2, $ZodVoid2, $ZodDate2, $ZodArray2, NO_SYMBOL_KEYS2, $ZodObject2, $ZodObjectJIT2, $ZodUnion2, $ZodXor2, $ZodDiscriminatedUnion2, $ZodIntersection2, $ZodTuple2, $ZodRecord2, $ZodMap2, $ZodSet2, $ZodEnum2, $ZodLiteral2, $ZodFile2, $ZodTransform2, $ZodOptional2, $ZodExactOptional2, $ZodNullable2, $ZodDefault2, $ZodPrefault2, $ZodNonOptional2, $ZodSuccess2, $ZodCatch2, $ZodNaN2, $ZodPipe2, $ZodCodec2, $ZodPreprocess2, $ZodReadonly2, $ZodTemplateLiteral2, $ZodFunction2, $ZodPromise2, $ZodLazy2, $ZodCustom2, $ZodProperties, $ZodCyclicError2, STATE2, NO_ISSUES2, recursive2, NONE2, ASSUMED2, PROVEN2, handoff2, open6, memo2, locales_exports2, error62, error210, error310, error410, error510, error63, error72, error82, error92, error102, error112, error122, error132, error142, error152, error162, error172, error182, error192, error202, error212, error222, error232, error242, error252, error262, error272, error282, error292, error302, error312, error322, capitalizeFirstCharacter2, error332, error342, error352, error362, error372, error382, error392, error402, error412, error422, error432, error442, error452, error462, error472, error482, error492, error502, error512, error522, error532, error542, error552, error562, error572, error582, error592, error602, error612, _a22, $output2, $input2, $ZodRegistry2, globalRegistry2, INVALID2, FALLBACK_FLAG2, ZodCompileAsyncError2, ZodCompileUnsupportedError2, WHEN_DEFAULTED_CHECKS2, PATTERN_IS_COMPLETE2, TimePrecision2, FOLDABLE_KEYS2, UNION_KEYS2, createToJSONSchemaMethod2, createStandardJSONSchemaMethod2, narrowMin2, narrowMax2, narrowBoth2, addDivisor2, addPattern2, intersectMime2, setFormat2, minContributor2, maxContributor2, formatContributor2, contributors2, formatMap2, exactPatterns2, exactPattern2, stringProcessor2, numberProcessor2, booleanProcessor2, bigintProcessor2, symbolProcessor2, nullProcessor2, undefinedProcessor2, voidProcessor2, neverProcessor2, anyProcessor2, unknownProcessor2, dateProcessor2, enumProcessor2, literalProcessor2, nanProcessor2, templateLiteralProcessor2, fileProcessor2, successProcessor2, customProcessor2, functionProcessor2, transformProcessor2, mapProcessor2, setProcessor2, arrayProcessor2, objectProcessor2, propertiesProcessor, unionProcessor2, intersectionProcessor2, tupleProcessor2, pendingRecords2, recordProcessor2, nullableProcessor2, nonoptionalProcessor2, UNREPRESENTABLE_DEFAULT2, defaultProcessor2, prefaultProcessor2, catchProcessor2, pipeProcessor2, readonlyProcessor2, promiseProcessor2, optionalProcessor2, lazyProcessor2, allProcessors2, JSONSchemaGenerator2, json_schema_exports2, schemas_exports22, checks_exports22, _installedErrorProtos2, initializer22, ZodError2, ZodRealError2, parse22, parseAsync22, safeParse22, safeParseAsync22, encode22, decode22, encodeAsync22, decodeAsync22, safeEncode22, safeDecode22, safeEncodeAsync22, safeDecodeAsync22, ZodType2, _ZodString2, ZodString2, ZodStringFormat2, ZodISODateTime2, ZodISODate2, ZodISOTime2, ZodISODuration2, ZodEmail2, ZodGUID2, ZodUUID2, ZodURL2, ZodEmoji2, ZodNanoID2, ZodCUID3, ZodCUID22, ZodULID2, ZodXID2, ZodKSUID2, ZodIPv42, ZodMAC2, ZodIPv62, ZodCIDRv42, ZodCIDRv62, ZodBase642, ZodBase64URL2, ZodE1642, ZodCreditCard2, ZodIBAN2, ZodJWT2, ZodCustomStringFormat2, ZodNumber2, ZodNumberFormat2, ZodBoolean2, ZodBigInt2, ZodBigIntFormat2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor2, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile2, ZodTransform2, ZodOptional2, ZodExactOptional2, ZodNullable2, ZodDefault2, ZodPrefault2, ZodNonOptional2, ZodSuccess2, ZodCatch2, ZodNaN2, ZodPipe2, ZodCodec2, ZodPreprocess2, ZodReadonly2, ZodTemplateLiteral2, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom2, ZodProperties, describe22, meta22, ZodInstanceOf2, stringbool2, ZodIssueCode2, ZodFirstPartyTypeKind2, iso_exports2, z2, RECOGNIZED_KEYS2, SCHEMA_KEYWORDS2, SCHEMA_MAP_KEYWORDS2, fullTime2, RESOLVING2, coerce_exports2, TOKEN_COUNT, promptUsageSchema, quotaTokenCountSchema, promptMetadataSchema, agentPromptResponseSchema, WORKSPACE_LIST_KIND, WORKSPACE_ENTRIES_KIND, SESSION_PREPARE_KIND, SESSION_READY_KIND, SESSION_CONFIGURE_KIND, SESSION_CONFIG_UPDATED_KIND, SESSION_USAGE_UPDATED_KIND, SESSION_COMMANDS_UPDATED_KIND, SESSION_INFO_UPDATED_KIND, SESSION_PERMISSION_REQUESTED_KIND, SESSION_PERMISSION_RESPOND_KIND, SESSION_PERMISSION_RESOLVED_KIND, SESSION_ELICITATION_REQUESTED_KIND, SESSION_ELICITATION_RESPOND_KIND, SESSION_ELICITATION_RESOLVED_KIND, SESSION_OPERATION_FAILED_KIND, AGENT_CONTENT_KIND, AGENT_INSTALL_REQUEST_KIND, AGENT_INSTALL_CANCEL_KIND, AGENT_INSTALL_STARTED_KIND, AGENT_INSTALL_PROGRESS_KIND, AGENT_INSTALL_COMPLETED_KIND, AGENT_INSTALL_FAILED_KIND, AGENT_INSTALL_CANCELLED_KIND, AGENT_SETTINGS_DISCOVER_KIND, AGENT_SETTINGS_DISCOVERED_KIND, AGENT_SETTINGS_DISCOVERY_FAILED_KIND, FILE_READ_KIND, FILE_BEGIN_KIND, FILE_CHUNK_KIND, FILE_END_KIND, FILE_FAILED_KIND, IDENTIFIER_PATTERN, DIRECTORY_IDENTIFIER_PATTERN, IDENTIFIER, DIRECTORY_IDENTIFIER, SHORT_TEXT, LONG_TEXT, workspaceEntrySchema, fileReadCommandSchema, fileBeginEventSchema, fileChunkEventSchema, fileEndEventSchema, fileFailedEventSchema, configValueSchema, sessionConfigOptionSchema, sessionConfigOptionsSchema, agentSettingsDiscoverCommandSchema, agentSettingsDiscoveredEventSchema, agentSettingsDiscoveryFailedEventSchema, sessionConfigurationSelectionSchema, AGENT_DEFAULT_EXECUTION_SETTING, AGENT_PERMISSION_MODE_CONFIG_ID, AGENT_PERMISSION_MODES, agentExecutionConfigurationSchema, DEFAULT_AGENT_EXECUTION_CONFIGURATION, sessionConfigurationSelectionsSchema, sessionCapabilitiesSchema, sessionCommandSchema, permissionOptionSchema, elicitationOptionSchema, elicitationFieldSchema, displayContentSchema, recordedDisplayContentSchema, promptImageSchema, promptResourceSchema, workspaceListCommandSchema, workspaceEntriesEventSchema, sessionIdentityFields, sessionPrepareCommandSchema, runtimeTimingsSchema, sessionReadyEventSchema, sessionConfigureCommandSchema, sessionConfigUpdatedEventSchema, sessionContextUsageUpdatedEventSchema, sessionPromptUsageUpdatedEventSchema, sessionUsageUpdatedEventSchema, sessionCommandsUpdatedEventSchema, sessionInfoUpdatedEventSchema, sessionPermissionRequestedEventSchema, sessionPermissionRespondCommandSchema, sessionPermissionResolvedEventSchema, sessionElicitationRequestedEventSchema, sessionElicitationRespondCommandSchema, sessionElicitationResolvedEventSchema, sessionOperationFailedEventSchema, agentContentEventSchema, agentInstallIdentityFields, agentInstallRequestCommandSchema, agentInstallCancelCommandSchema, agentInstallStartedEventSchema, installationStageSchema, agentInstallProgressEventSchema, agentInstallCompletedEventSchema, agentInstallFailedEventSchema, agentInstallCancelledEventSchema, decodeAgentDisplayContentValue, decodeRecordedAgentContentValue, decodePromptImagesValue, decodePromptResourcesValue, decodeSessionConfigurationSelections, encode32, decodeAgentSettingsDiscoverCommand, encodeAgentSettingsDiscoveredEvent, encodeAgentSettingsDiscoveryFailedEvent, decodeFileReadCommand, encodeFileBeginEvent, encodeFileChunkEvent, encodeFileEndEvent, encodeFileFailedEvent, decodeWorkspaceListCommand, encodeWorkspaceEntriesEvent, decodeSessionPrepareCommand, encodeSessionReadyEvent, decodeSessionConfigureCommand, encodeSessionConfigUpdatedEvent, encodeSessionUsageUpdatedEvent, encodeSessionCommandsUpdatedEvent, encodeSessionInfoUpdatedEvent, encodeSessionPermissionRequestedEvent, decodeSessionPermissionRespondCommand, encodeSessionPermissionResolvedEvent, encodeSessionElicitationRequestedEvent, decodeSessionElicitationRespondCommand, encodeSessionElicitationResolvedEvent, encodeSessionOperationFailedEvent, encodeAgentContentEvent, decodeAgentInstallRequestCommand, decodeAgentInstallCancelCommand, encodeAgentInstallStartedEvent, encodeAgentInstallProgressEvent, encodeAgentInstallCompletedEvent, encodeAgentInstallFailedEvent, encodeAgentInstallCancelledEvent, SESSION_PROMPT_KIND, SESSION_CANCEL_KIND, RUNTIME_LIVENESS_READY_KIND, RUNTIME_HEARTBEAT_KIND, RUNTIME_HEARTBEAT_ACK_KIND, RUNTIME_DELIVERY_KIND, RUNTIME_DELIVERY_RECEIVED_KIND, RUNTIME_DELIVERY_COMMITTED_KIND, SESSION_STARTED_KIND, AGENT_MESSAGE_DELTA_KIND, AGENT_ACTIVITY_KIND, AGENT_ACTIVITY_DETAIL_LIMIT, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT, AGENT_ACTIVITY_LOCATION_LIMIT, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT, SESSION_COMPLETED_KIND, SESSION_FAILED_KIND, SessionPromptDisposition, IDENTIFIER_PATTERN2, DIRECTORY_IDENTIFIER_PATTERN2, MAX_PROMPT_LENGTH, MAX_PROMPT_ATTACHMENT_LENGTH, MAX_EVENT_TEXT_LENGTH, MAX_RUNTIME_DELIVERY_PAYLOAD_LENGTH, ACTIVITY_TYPES, ACTIVITY_STATUSES, TOOL_KINDS, ProtocolMessageError, MOBIUS_API_PREFIX, API_PREFIX_PATTERN, MobiusApiConfigurationError, SESSION_HISTORY_CHARACTER_LIMIT, SESSION_HISTORY_MESSAGE_LIMIT, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT, historyImage, historyMessage, sessionHistorySchema, NATIVE_SESSION_REQUEST_KIND, NATIVE_SESSION_RESULT_KIND, NATIVE_SESSION_CANCEL_KIND, NATIVE_SESSION_TURN_FORK_REQUEST_KIND, NATIVE_SESSION_TURN_FORK_KIND, identifier, directoryId, envelope, identity, turnForkIdentity, nativeSessionTurnForkRequestSchema, nativeSessionTurnForkCommandSchema, nativeSessionCommandSchema, nativeSessionEntrySchema, resultEnvelope, nativeSessionResultSchema, nativeSessionCancelSchema, decodeNativeSessionCommand, encodeNativeSessionResult, decodeNativeSessionCancel, decodeNativeSessionTurnForkCommand, SESSION_EVENT_KIND, SESSION_EVENT_ACK_KIND, SESSION_EVENT_COMMITTED_KIND, SESSION_EVENT_DEFERRED_KIND, SESSION_EVENT_REJECTED_KIND, SessionEventRejectionCode, IDENTIFIER_PATTERN3, CURSOR_PATTERN, MAX_RECORDED_EVENT_LENGTH, DECIMAL_SEQUENCE_PATTERN, eventSourceSchema, eventEnvelopeSchema, committedEventSchema, eventAcknowledgementSchema, eventDeferredSchema, eventRejectionSchema, encode4, decodeSessionEventEnvelope, encodeSessionEventEnvelope, decodeSessionEventAcknowledgement, decodeSessionEventDeferred, decodeSessionEventRejection, DEFAULT_OUTPUT_LIMIT_BYTES, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS, PROCESS_TABLE_TIMEOUT_MILLISECONDS, PROCESS_TABLE_OUTPUT_LIMIT_BYTES, PROCESS_EXIT_CHECK_ATTEMPTS, GRACEFUL_STOP_SIGNAL, FORCED_STOP_SIGNAL, ExecutableIdentity, ResolvedExecutable, ProcessExecutionError, ProcessResult, AGENT_DEFAULT_PERMISSION_MODE, READ_ONLY_PERMISSION_MODE, WORKSPACE_WRITE_PERMISSION_MODE, DANGER_FULL_ACCESS_PERMISSION_MODE, PERMISSION_MODE_CONFIG_ID, PERMISSION_MODE_MARKER, AgentPermissionConfigurationError, AgentPermissionProfile, AgentManagedPermissionProfile, PiPermissionProfile, adjustablePermissionValues, DeepSeekHarnessPermissionProfile, OpenCodePermissionProfile, agentManagedPermissionProfile, deepSeekHarnessPermissionProfile, openCodePermissionProfile, piPermissionProfile, LocalAgentDefinition, InstallableAgentDefinition, MissingAgentDefinition, AgentIntegrationDefinition, LocalAgentCatalogSnapshot, LocalAgentCatalogError, LocalAgentCatalog, DaemonLocalContext, DaemonReconnectTarget, OpaqueDaemonReconnectTarget, ChannelDaemonReconnectTarget, MAX_LOCAL_RASTER_BYTES, MAX_INLINE_RASTER_BYTES, PNG_SIGNATURE, JPEG_SIGNATURE, GIF87_SIGNATURE, GIF89_SIGNATURE, RIFF_SIGNATURE, WEBP_SIGNATURE, LocalRasterImage, MAX_INLINE_VIDEO_BYTES, MP4_FILE_TYPE, WEBM_SIGNATURE, LocalVideo, AccumulatingOperationMetrics, unmeasuredOperationMetrics, IMAGE_MARKER, TRUNCATION_MARKER, AcpActivity, ActivityIdentity, AcpActivityTracker, emptyOptions, characterEntities, own22, hasOwnProperty, asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace, content, document2, containerConstruct, attention, autolink, blankLine, blockQuote, characterEscape, characterReference, nonLazyContinuation, codeFenced, codeIndented, furtherStart, codeText, SpliceBuffer, content2, continuationConstruct, definition, titleBefore, hardBreakEscape, headingAtx, htmlBlockNames, htmlRawNames, htmlFlow, blankLineBefore, nonLazyContinuationStart, htmlText, labelEnd, resourceConstruct, referenceFullConstruct, referenceCollapsedConstruct, labelStartImage, labelStartLink, lineEnding, thematicBreak, list, listItemPrefixWhitespaceConstruct, indentConstruct, setextUnderline, flow, resolver, string42, text, constructs_exports, document22, contentInitial, flowInitial, flow2, string5, text2, insideSpan, attentionMarkers, disable, search, characterEscapeOrReference, own3, convert, empty, CONTINUE, EXIT, SKIP, path3, title, nativeSessionIdSchema, nativeSessionInfoSchema, nativeSessionPageSchema, AGENT_DEFAULT_REASONING_EFFORT, MAXIMUM_CONFIG_OPTIONS, SessionConfigProtocolError, StandardSessionConfigProtocol, standardSessionConfigProtocol, LEGACY_MODEL_CONFIG_ID, LEGACY_REASONING_EFFORT_CONFIG_ID, GrokBuildSessionConfigProtocol, grokBuildSessionConfigProtocol, AcpHistoryReplay, AcpStoredSession, AcpStoredSessionLookup, MissingAcpStoredSession, FoundAcpStoredSession, DeletedAcpStoredSession, MemoryAcpSessionStore, SqliteAcpSessionStore, PROCESS_STOP_TIMEOUT_MILLISECONDS, MAX_ACP_PROCESSES, MAX_PRE_SESSION_UPDATES, MAX_PRE_SESSION_UPDATE_BYTES, SESSION_CONTROL_COMMAND_ID, SESSION_CONTROL_TIMEOUT_MILLISECONDS, NullAcpSessionObserver, AcpPreparedSession, AcpAgentSettingsSnapshot, AcpExecutionError, RetryableAcpInitializationError, AcpProcessCapacityLease, AcpProcessCapacityWaiter, AcpProcessCapacityLock, AcpTurnState, IdleAcpTurn, RunningAcpTurn, PendingPermission, PendingElicitation, AcpProcessSession, AcpProcessEvictionCandidate, MissingAcpProcessEvictionCandidate, FoundAcpProcessEvictionCandidate, FoundAcpSessionProcessEvictionCandidate, FoundAcpNativeBrowserProcessEvictionCandidate, AcpSessionManager, AuditStore, LocalAuthorizationError, AgentDiscovery, AvailableAgent, UnavailableAgent, UnavailableInstalledAgent, MissingAdapter, MissingAgent, AgentProbeFailed, IntegrationProbeFailed, IncompatibleAdapter, AuthenticationRequiredAgent, LocalAgentInventory, INSTALL_TIMEOUT_MILLISECONDS, PACKAGE_METADATA_LIMIT_BYTES, PACKAGE_LOCK_LIMIT_BYTES, ManagedNpmPackageDefinition, SriManagedNpmPackageDefinition, SriManagedNpmDependencyDefinition, ManagedNpmPackageError, ManagedNpmPackageInstaller, VERSION_PROBE_TIMEOUT_MILLISECONDS, ACP_PROBE_TIMEOUT_MILLISECONDS, LocalAgentSpecification, DirectAcpAgentDefinition, BridgedAcpAgentDefinition, ClaudeCodeAgentSpecification, CodexAgentSpecification, AgentProbeError, COPILOT_CLI_TESTED_VERSION, CopilotCliAgentSpecification, CURSOR_CLI_TESTED_VERSION, CursorCliAgentSpecification, DeepSeekHarnessManagedPackage, DEEPSEEK_HARNESS_PACKAGE, DeepSeekHarnessAgentSpecification, GEMINI_CLI_TESTED_VERSION, GeminiCliAgentSpecification, GROK_BUILD_MANAGED_VERSION, GrokBuildManagedPackage, GROK_DARWIN_ARM64_PACKAGE, GROK_DARWIN_X64_PACKAGE, GROK_LINUX_ARM64_PACKAGE, GROK_LINUX_X64_PACKAGE, GrokBuildAgentSpecification, HERMES_TESTED_VERSION, HermesAgentSpecification, configuredHttpProxy, configuredHttpsProxy, environmentProxyDispatcher, ARCHIVE_DOWNLOAD_LIMIT_BYTES, ARCHIVE_DOWNLOAD_TIMEOUT_MILLISECONDS, MANIFEST_LIMIT_BYTES, ManagedAgentArchiveDefinition, ZipManagedAgentArchiveDefinition, TarGzipManagedAgentArchiveDefinition, ManagedAgentArchiveError, OPENCODE_MANAGED_VERSION, OpenCodeAgentSpecification, PI_ACP_PACKAGE, PI_AGENT_PACKAGE, ACP_PROBE_TIMEOUT_MILLISECONDS2, PiAgentSpecification, WORKBUDDY_MANAGED_VERSION, WorkBuddyManagedPackage, WORKBUDDY_MANAGED_PACKAGE, WORKBUDDY_MACOS_EXECUTABLE_PATH, WorkBuddyAgentSpecification, ACP_OUTPUT_LIMIT_BYTES, VerifiedAcpReadiness, DiscoveryAcpHandler, ManagedAdapterInstallError, ManagedAdapterInstaller, VerifiedAgentExecutable, APPLICATION_ID_PATTERN, CONNECTION_ID_PATTERN, INSTALLATION_ID_PATTERN, IDENTIFIER_PATTERN4, RUNTIME_CREDENTIAL_PATTERN, MAX_FILE_LENGTH, INSTALLATION_POINTER_KEYS, CHANNEL_INDEX_KEYS, VERIFIED_CONNECTION_KEYS, IMPORTED_LEGACY_CONNECTION_KEYS, CURRENT_CONNECTION_KEYS, LEGACY_CONNECTION_KEYS, RuntimeInstallationStoreError, StoredRuntimeConnection, VerifiedRuntimeConnection, ImportedLegacyRuntimeConnection, RuntimeInstallationStore, PairingClientError, CATALOG_UPDATE_TIMEOUT_MILLISECONDS, AgentCatalogPublishError, INSTALLATION_DEADLINE_MILLISECONDS, AgentInstallation, RequestedInstallation, RunningInstallation, SucceededInstallation, FailedInstallation, CancelledInstallation, InstallationManagerError, NullInstallationAudit, InstallationJob, AgentInstallationManager, FixedInstallationExecutor, CHUNK_BYTES, MobiusError, MobiusProtocolError, MobiusValidationError, IDENTIFIER_PATTERN6, MobiusArtifactUploadRequest, MobiusArtifact, MobiusUploadingArtifact, MobiusArtifactUpload, MobiusAvailableArtifact, MobiusExpiredArtifact, MobiusRuntimePairingLifecycle, UPLOAD_TIMEOUT_MILLISECONDS, RuntimeArtifactUploadError, UploadedRuntimeArtifact, WorkspaceDirectoryListing, WorkspaceDirectoryService, responseSchema, threadSchema, turnsSchema, itemTypeSchema, userMessageSchema, textSchema, imageSchema, agentMessageSchema, NativeSessionService, ARTIFACT_SCHEME, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS, MAX_AGENT_IMAGE_BASE64_LENGTH, MAX_AGENT_RESOURCE_BYTE_LENGTH, IDENTIFIER_PATTERN7, PromptArtifactError, ResolvedPromptArtifacts, PromptArtifactReference, CONNECTION_TIMEOUT_MILLISECONDS, RelayConnectionError, MAX_DIAGNOSTIC_TEXT_LENGTH, RelayConnectionDiagnostics, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS, HEARTBEAT_INTERVAL_MILLISECONDS, RelayLivenessState, UnsupportedRelayLivenessState, AwaitingHeartbeatAckState, WaitingForHeartbeatState, FinishedRelayLivenessState, RelayConnectionLiveness, DEFAULT_OUTBOX_LIMITS, SessionEventOutboxCapacityError, RuntimeDeliveryInboxCapacityError, StoredRuntimeDelivery, SessionEventOutbox, SystemDaemonTimer, systemDaemonTimer, RELAY_RECONNECT_DELAY_MILLISECONDS, AGENT_ACTIVITY_COALESCING_MILLISECONDS, ACTIVE_TURN_RECONCILIATION_TIMEOUT_MILLISECONDS, ACTIVE_TURN_RECONCILIATION_CLOSE_CODE, DaemonAcpObserver, AuditInstallationEvents, DaemonInstallationObserver, ResolvedSessionDirectories, ActiveDaemonTurn, ActiveTurnReconciliationError, DaemonSessionEventConnectionState, DisconnectedDaemonSessionEventState, ConnectedDaemonSessionEventState, SESSION_EVENT_REPLAY_WINDOW, SESSION_EVENT_SOURCE_REPLAY_WINDOW, SESSION_EVENT_REPLAY_BYTE_LIMIT, InFlightSessionEvent, DaemonSessionEventPublisher, CoalescingDaemonActivityPublisher, RUNTIME_CREDENTIAL_PATTERN2, MobiusRuntimeConfigurationError, MobiusRuntimeState2, IdleMobiusRuntimeState, RunningMobiusRuntimeState, FinishedMobiusRuntimeState, MobiusRuntimeEngine;
|
|
74660
|
+
var import_node_path8, import_node_fs3, import_node_child_process5, import_node_fs4, import_promises10, import_node_path9, import_node_os7, import_node_path10, import_node_child_process6, import_promises11, import_node_path11, import_node_url, import_node_path12, import_node_fs5, import_node_path13, import_node_sqlite, import_node_fs6, import_node_path14, import_node_sqlite2, import_promises12, import_node_path15, import_undici, import_promises13, import_node_path16, import_node_path17, import_node_path18, import_promises14, import_node_path19, import_promises15, import_node_path20, import_node_path21, import_node_crypto6, import_node_fs7, import_promises16, import_node_path22, import_undici2, import_undici3, import_node_path23, import_node_path24, import_node_child_process7, import_node_path25, import_node_path26, import_node_crypto7, import_promises17, import_node_path27, import_node_crypto8, import_node_path28, import_node_util, import_undici4, import_undici5, import_node_fs8, import_node_path29, import_node_fs9, import_promises18, import_node_path30, import_node_url2, import_node_crypto9, import_undici6, import_promises19, import_node_os8, import_node_path31, import_node_crypto10, import_node_path32, import_node_child_process8, import_node_crypto11, import_undici7, import_undici8, import_node_crypto12, import_node_fs10, import_node_path33, import_node_sqlite3, __defProp2, __export2, createAcpClient, external_exports2, core_exports22, util_exports2, Cached2, EVALUATING2, captureStackTrace2, allowsEval2, getParsedType2, propertyKeyTypes2, primitiveTypes2, NUMBER_FORMAT_RANGES2, BIGINT_FORMAT_RANGES2, highSurrogate2, Class2, installing2, broke2, breaker2, CONSTANT_CATCH2, _a3, NEVER2, _zodDesc2, _E2, $brand2, $ZodAsyncError2, $ZodEncodeError2, globalConfig2, _messageDesc2, _issuesDesc2, _installedToString2, initializer3, $ZodError2, $ZodRealError2, _parse3, parse3, _parseAsync3, parseAsync3, _safeParse2, safeParse3, _safeParseAsync2, safeParseAsync3, COMPILE_INVALID2, COMPILE_FALLBACK2, validate2, validateAsync3, _encode3, encode3, _decode3, decode3, _encodeAsync3, encodeAsync3, _decodeAsync3, decodeAsync3, _safeEncode2, safeEncode3, _safeDecode2, safeDecode3, _safeEncodeAsync2, safeEncodeAsync3, _safeDecodeAsync2, safeDecodeAsync3, regexes_exports2, cuid4, cuid23, ulid3, xid3, ksuid3, nanoid3, duration3, extendedDuration2, guid3, uuid3, uuid42, uuid62, uuid72, email3, html5Email2, rfc5322Email2, unicodeEmail2, idnEmail2, browserEmail2, _emoji3, ipv43, ipv63, mac3, cidrv43, cidrv63, base643, base64url3, hostname3, domain2, httpProtocol2, e1643, creditCard3, iban3, dateSource2, date5, anyString2, string4, bigint4, integer2, number4, boolean4, _null4, _undefined4, lowercase2, uppercase2, hex3, md5_hex2, md5_base642, md5_base64url2, sha1_hex2, sha1_base642, sha1_base64url2, sha256_hex2, sha256_base642, sha256_base64url2, sha384_hex2, sha384_base642, sha384_base64url2, sha512_hex2, sha512_base642, sha512_base64url2, $ZodCheck2, _whenHasSize2, _whenHasLength2, numericOriginMap2, $ZodCheckLessThan2, $ZodCheckGreaterThan2, $ZodCheckMultipleOf2, $ZodCheckNumberFormat2, $ZodCheckBigIntFormat2, $ZodCheckMaxSize2, $ZodCheckMinSize2, $ZodCheckSizeEquals2, $ZodCheckMaxLength2, $ZodCheckMinLength2, $ZodCheckLengthEquals2, $ZodCheckStringFormat2, $ZodCheckRegex2, $ZodCheckLowerCase2, $ZodCheckUpperCase2, $ZodCheckIncludes2, $ZodCheckStartsWith2, $ZodCheckEndsWith2, $ZodCheckProperty2, $ZodCheckMimeType2, $ZodCheckOverwrite2, Doc2, version2, $ZodType2, toStandardResult2, $ZodString2, $ZodStringFormat2, $ZodGUID2, $ZodUUID2, $ZodEmail2, URL_BAD_FORMAT2, URL_UNPARSEABLE2, asciiTabOrNewline2, $ZodURL2, $ZodEmoji2, $ZodNanoID2, $ZodCUID3, $ZodCUID22, $ZodULID2, $ZodXID2, $ZodKSUID2, $ZodISODateTime2, $ZodISODate2, $ZodISOTime2, $ZodISODuration2, $ZodIPv42, ipv6Alphabet2, $ZodIPv62, $ZodMAC2, $ZodCIDRv42, $ZodCIDRv62, base64Charset2, $ZodBase642, base64urlCharset2, $ZodBase64URL2, $ZodE1642, CC_SANITIZE2, $ZodCreditCard2, $ZodIBAN2, $ZodJWT2, $ZodCustomStringFormat2, $ZodNumber2, $ZodNumberFormat2, $ZodBoolean2, $ZodBigInt2, $ZodBigIntFormat2, $ZodSymbol2, $ZodUndefined2, $ZodNull2, $ZodAny2, $ZodUnknown2, $ZodNever2, $ZodVoid2, $ZodDate2, $ZodArray2, NO_SYMBOL_KEYS2, $ZodObject2, $ZodObjectJIT2, $ZodUnion2, $ZodXor2, $ZodDiscriminatedUnion2, $ZodIntersection2, $ZodTuple2, $ZodRecord2, $ZodMap2, $ZodSet2, $ZodEnum2, $ZodLiteral2, $ZodFile2, $ZodTransform2, $ZodOptional2, $ZodExactOptional2, $ZodNullable2, $ZodDefault2, $ZodPrefault2, $ZodNonOptional2, $ZodSuccess2, $ZodCatch2, $ZodNaN2, $ZodPipe2, $ZodCodec2, $ZodPreprocess2, $ZodReadonly2, $ZodTemplateLiteral2, $ZodFunction2, $ZodPromise2, $ZodLazy2, $ZodCustom2, $ZodProperties, $ZodCyclicError2, STATE2, NO_ISSUES2, recursive2, NONE2, ASSUMED2, PROVEN2, handoff2, open6, memo2, locales_exports2, error62, error210, error310, error410, error510, error63, error72, error82, error92, error102, error112, error122, error132, error142, error152, error162, error172, error182, error192, error202, error212, error222, error232, error242, error252, error262, error272, error282, error292, error302, error312, error322, capitalizeFirstCharacter2, error332, error342, error352, error362, error372, error382, error392, error402, error412, error422, error432, error442, error452, error462, error472, error482, error492, error502, error512, error522, error532, error542, error552, error562, error572, error582, error592, error602, error612, _a22, $output2, $input2, $ZodRegistry2, globalRegistry2, INVALID2, FALLBACK_FLAG2, ZodCompileAsyncError2, ZodCompileUnsupportedError2, WHEN_DEFAULTED_CHECKS2, PATTERN_IS_COMPLETE2, TimePrecision2, FOLDABLE_KEYS2, UNION_KEYS2, createToJSONSchemaMethod2, createStandardJSONSchemaMethod2, narrowMin2, narrowMax2, narrowBoth2, addDivisor2, addPattern2, intersectMime2, setFormat2, minContributor2, maxContributor2, formatContributor2, contributors2, formatMap2, exactPatterns2, exactPattern2, stringProcessor2, numberProcessor2, booleanProcessor2, bigintProcessor2, symbolProcessor2, nullProcessor2, undefinedProcessor2, voidProcessor2, neverProcessor2, anyProcessor2, unknownProcessor2, dateProcessor2, enumProcessor2, literalProcessor2, nanProcessor2, templateLiteralProcessor2, fileProcessor2, successProcessor2, customProcessor2, functionProcessor2, transformProcessor2, mapProcessor2, setProcessor2, arrayProcessor2, objectProcessor2, propertiesProcessor, unionProcessor2, intersectionProcessor2, tupleProcessor2, pendingRecords2, recordProcessor2, nullableProcessor2, nonoptionalProcessor2, UNREPRESENTABLE_DEFAULT2, defaultProcessor2, prefaultProcessor2, catchProcessor2, pipeProcessor2, readonlyProcessor2, promiseProcessor2, optionalProcessor2, lazyProcessor2, allProcessors2, JSONSchemaGenerator2, json_schema_exports2, schemas_exports22, checks_exports22, _installedErrorProtos2, initializer22, ZodError2, ZodRealError2, parse22, parseAsync22, safeParse22, safeParseAsync22, encode22, decode22, encodeAsync22, decodeAsync22, safeEncode22, safeDecode22, safeEncodeAsync22, safeDecodeAsync22, ZodType2, _ZodString2, ZodString2, ZodStringFormat2, ZodISODateTime2, ZodISODate2, ZodISOTime2, ZodISODuration2, ZodEmail2, ZodGUID2, ZodUUID2, ZodURL2, ZodEmoji2, ZodNanoID2, ZodCUID3, ZodCUID22, ZodULID2, ZodXID2, ZodKSUID2, ZodIPv42, ZodMAC2, ZodIPv62, ZodCIDRv42, ZodCIDRv62, ZodBase642, ZodBase64URL2, ZodE1642, ZodCreditCard2, ZodIBAN2, ZodJWT2, ZodCustomStringFormat2, ZodNumber2, ZodNumberFormat2, ZodBoolean2, ZodBigInt2, ZodBigIntFormat2, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor2, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile2, ZodTransform2, ZodOptional2, ZodExactOptional2, ZodNullable2, ZodDefault2, ZodPrefault2, ZodNonOptional2, ZodSuccess2, ZodCatch2, ZodNaN2, ZodPipe2, ZodCodec2, ZodPreprocess2, ZodReadonly2, ZodTemplateLiteral2, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom2, ZodProperties, describe22, meta22, ZodInstanceOf2, stringbool2, ZodIssueCode2, ZodFirstPartyTypeKind2, iso_exports2, z2, RECOGNIZED_KEYS2, SCHEMA_KEYWORDS2, SCHEMA_MAP_KEYWORDS2, fullTime2, RESOLVING2, coerce_exports2, TOKEN_COUNT, promptUsageSchema, quotaTokenCountSchema, promptMetadataSchema, agentPromptResponseSchema, WORKSPACE_LIST_KIND, WORKSPACE_ENTRIES_KIND, SESSION_PREPARE_KIND, SESSION_READY_KIND, SESSION_CONFIGURE_KIND, SESSION_CONFIG_UPDATED_KIND, SESSION_USAGE_UPDATED_KIND, SESSION_COMMANDS_UPDATED_KIND, SESSION_INFO_UPDATED_KIND, SESSION_PERMISSION_REQUESTED_KIND, SESSION_PERMISSION_RESPOND_KIND, SESSION_PERMISSION_RESOLVED_KIND, SESSION_ELICITATION_REQUESTED_KIND, SESSION_ELICITATION_RESPOND_KIND, SESSION_ELICITATION_RESOLVED_KIND, SESSION_OPERATION_FAILED_KIND, AGENT_CONTENT_KIND, AGENT_INSTALL_REQUEST_KIND, AGENT_INSTALL_CANCEL_KIND, AGENT_INSTALL_STARTED_KIND, AGENT_INSTALL_PROGRESS_KIND, AGENT_INSTALL_COMPLETED_KIND, AGENT_INSTALL_FAILED_KIND, AGENT_INSTALL_CANCELLED_KIND, AGENT_SETTINGS_DISCOVER_KIND, AGENT_SETTINGS_DISCOVERED_KIND, AGENT_SETTINGS_DISCOVERY_FAILED_KIND, FILE_READ_KIND, FILE_BEGIN_KIND, FILE_CHUNK_KIND, FILE_END_KIND, FILE_FAILED_KIND, IDENTIFIER_PATTERN, DIRECTORY_IDENTIFIER_PATTERN, IDENTIFIER, DIRECTORY_IDENTIFIER, SHORT_TEXT, LONG_TEXT, workspaceEntrySchema, fileReadCommandSchema, fileBeginEventSchema, fileChunkEventSchema, fileEndEventSchema, fileFailedEventSchema, configValueSchema, sessionConfigOptionSchema, sessionConfigOptionsSchema, agentSettingSchema, agentSettingsSchema, AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE, AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION, AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE, agentModelEffortResolutionSchema, agentModelEffortSchema, agentSettingsDiscoverCommandSchema, agentSettingsDiscoveredEventSchema, agentSettingsDiscoveryFailedEventSchema, sessionConfigurationSelectionSchema, AGENT_DEFAULT_EXECUTION_SETTING, AGENT_PERMISSION_MODE_CONFIG_ID, AGENT_PERMISSION_MODES, agentExecutionConfigurationSchema, DEFAULT_AGENT_EXECUTION_CONFIGURATION, sessionConfigurationSelectionsSchema, sessionCapabilitiesSchema, sessionCommandSchema, permissionOptionSchema, elicitationOptionSchema, elicitationFieldSchema, displayContentSchema, recordedDisplayContentSchema, promptImageSchema, promptResourceSchema, workspaceListCommandSchema, workspaceEntriesEventSchema, sessionIdentityFields, sessionPrepareCommandSchema, runtimeTimingsSchema, sessionReadyEventSchema, sessionConfigureCommandSchema, sessionConfigUpdatedEventSchema, sessionContextUsageUpdatedEventSchema, sessionPromptUsageUpdatedEventSchema, sessionUsageUpdatedEventSchema, sessionCommandsUpdatedEventSchema, sessionInfoUpdatedEventSchema, sessionPermissionRequestedEventSchema, sessionPermissionRespondCommandSchema, sessionPermissionResolvedEventSchema, sessionElicitationRequestedEventSchema, sessionElicitationRespondCommandSchema, sessionElicitationResolvedEventSchema, sessionOperationFailedEventSchema, agentContentEventSchema, agentInstallIdentityFields, agentInstallRequestCommandSchema, agentInstallCancelCommandSchema, agentInstallStartedEventSchema, installationStageSchema, agentInstallProgressEventSchema, agentInstallCompletedEventSchema, agentInstallFailedEventSchema, agentInstallCancelledEventSchema, decodeAgentDisplayContentValue, decodeRecordedAgentContentValue, decodePromptImagesValue, decodePromptResourcesValue, decodeSessionConfigurationSelections, encode32, decodeAgentSettingsDiscoverCommand, encodeAgentSettingsDiscoveredEvent, encodeAgentSettingsDiscoveryFailedEvent, decodeFileReadCommand, encodeFileBeginEvent, encodeFileChunkEvent, encodeFileEndEvent, encodeFileFailedEvent, decodeWorkspaceListCommand, encodeWorkspaceEntriesEvent, decodeSessionPrepareCommand, encodeSessionReadyEvent, decodeSessionConfigureCommand, encodeSessionConfigUpdatedEvent, encodeSessionUsageUpdatedEvent, encodeSessionCommandsUpdatedEvent, encodeSessionInfoUpdatedEvent, encodeSessionPermissionRequestedEvent, decodeSessionPermissionRespondCommand, encodeSessionPermissionResolvedEvent, encodeSessionElicitationRequestedEvent, decodeSessionElicitationRespondCommand, encodeSessionElicitationResolvedEvent, encodeSessionOperationFailedEvent, encodeAgentContentEvent, decodeAgentInstallRequestCommand, decodeAgentInstallCancelCommand, encodeAgentInstallStartedEvent, encodeAgentInstallProgressEvent, encodeAgentInstallCompletedEvent, encodeAgentInstallFailedEvent, encodeAgentInstallCancelledEvent, SESSION_PROMPT_KIND, SESSION_CANCEL_KIND, RUNTIME_LIVENESS_READY_KIND, RUNTIME_HEARTBEAT_KIND, RUNTIME_HEARTBEAT_ACK_KIND, RUNTIME_DELIVERY_KIND, RUNTIME_DELIVERY_RECEIVED_KIND, RUNTIME_DELIVERY_COMMITTED_KIND, SESSION_STARTED_KIND, AGENT_MESSAGE_DELTA_KIND, AGENT_ACTIVITY_KIND, AGENT_ACTIVITY_DETAIL_LIMIT, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT, AGENT_ACTIVITY_LOCATION_LIMIT, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT, SESSION_COMPLETED_KIND, SESSION_FAILED_KIND, SessionPromptDisposition, IDENTIFIER_PATTERN2, DIRECTORY_IDENTIFIER_PATTERN2, MAX_PROMPT_LENGTH, MAX_PROMPT_ATTACHMENT_LENGTH, MAX_EVENT_TEXT_LENGTH, MAX_RUNTIME_DELIVERY_PAYLOAD_LENGTH, ACTIVITY_TYPES, ACTIVITY_STATUSES, TOOL_KINDS, ProtocolMessageError, MOBIUS_API_PREFIX, API_PREFIX_PATTERN, MobiusApiConfigurationError, SESSION_HISTORY_CHARACTER_LIMIT, SESSION_HISTORY_MESSAGE_LIMIT, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT, historyImage, historyMessage, sessionHistorySchema, NATIVE_SESSION_REQUEST_KIND, NATIVE_SESSION_RESULT_KIND, NATIVE_SESSION_CANCEL_KIND, NATIVE_SESSION_TURN_FORK_REQUEST_KIND, NATIVE_SESSION_TURN_FORK_KIND, identifier, directoryId, envelope, identity, turnForkIdentity, nativeSessionTurnForkRequestSchema, nativeSessionTurnForkCommandSchema, nativeSessionCommandSchema, nativeSessionEntrySchema, resultEnvelope, nativeSessionResultSchema, nativeSessionCancelSchema, decodeNativeSessionCommand, encodeNativeSessionResult, decodeNativeSessionCancel, decodeNativeSessionTurnForkCommand, SESSION_EVENT_KIND, SESSION_EVENT_ACK_KIND, SESSION_EVENT_COMMITTED_KIND, SESSION_EVENT_DEFERRED_KIND, SESSION_EVENT_REJECTED_KIND, SessionEventRejectionCode, IDENTIFIER_PATTERN3, CURSOR_PATTERN, MAX_RECORDED_EVENT_LENGTH, DECIMAL_SEQUENCE_PATTERN, eventSourceSchema, eventEnvelopeSchema, committedEventSchema, eventAcknowledgementSchema, eventDeferredSchema, eventRejectionSchema, encode4, decodeSessionEventEnvelope, encodeSessionEventEnvelope, decodeSessionEventAcknowledgement, decodeSessionEventDeferred, decodeSessionEventRejection, DEFAULT_OUTPUT_LIMIT_BYTES, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS, PROCESS_TABLE_TIMEOUT_MILLISECONDS, PROCESS_TABLE_OUTPUT_LIMIT_BYTES, PROCESS_EXIT_CHECK_ATTEMPTS, GRACEFUL_STOP_SIGNAL, FORCED_STOP_SIGNAL, ExecutableIdentity, ResolvedExecutable, ProcessExecutionError, ProcessResult, LocalAgentDefinition, InstallableAgentDefinition, MissingAgentDefinition, AgentIntegrationDefinition, LocalAgentCatalogSnapshot, LocalAgentCatalogError, LocalAgentCatalog, DaemonLocalContext, DaemonReconnectTarget, OpaqueDaemonReconnectTarget, ChannelDaemonReconnectTarget, MAX_LOCAL_RASTER_BYTES, MAX_INLINE_RASTER_BYTES, PNG_SIGNATURE, JPEG_SIGNATURE, GIF87_SIGNATURE, GIF89_SIGNATURE, RIFF_SIGNATURE, WEBP_SIGNATURE, LocalRasterImage, MAX_INLINE_VIDEO_BYTES, MP4_FILE_TYPE, WEBM_SIGNATURE, LocalVideo, AccumulatingOperationMetrics, unmeasuredOperationMetrics, IMAGE_MARKER, TRUNCATION_MARKER, AcpActivity, ActivityIdentity, AcpActivityTracker, emptyOptions, characterEntities, own22, hasOwnProperty, asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace, content, document2, containerConstruct, attention, autolink, blankLine, blockQuote, characterEscape, characterReference, nonLazyContinuation, codeFenced, codeIndented, furtherStart, codeText, SpliceBuffer, content2, continuationConstruct, definition, titleBefore, hardBreakEscape, headingAtx, htmlBlockNames, htmlRawNames, htmlFlow, blankLineBefore, nonLazyContinuationStart, htmlText, labelEnd, resourceConstruct, referenceFullConstruct, referenceCollapsedConstruct, labelStartImage, labelStartLink, lineEnding, thematicBreak, list, listItemPrefixWhitespaceConstruct, indentConstruct, setextUnderline, flow, resolver, string42, text, constructs_exports, document22, contentInitial, flowInitial, flow2, string5, text2, insideSpan, attentionMarkers, disable, search, characterEscapeOrReference, own3, convert, empty, CONTINUE, EXIT, SKIP, path3, title, nativeSessionIdSchema, nativeSessionInfoSchema, nativeSessionPageSchema, AGENT_DEFAULT_REASONING_EFFORT, MAXIMUM_CONFIG_OPTIONS, SessionConfigProtocolError, StandardSessionConfigProtocol, standardSessionConfigProtocol, LEGACY_MODEL_CONFIG_ID, LEGACY_REASONING_EFFORT_CONFIG_ID, GrokBuildSessionConfigProtocol, grokBuildSessionConfigProtocol, AcpHistoryReplay, AcpStoredSession, AcpStoredSessionLookup, MissingAcpStoredSession, FoundAcpStoredSession, DeletedAcpStoredSession, MemoryAcpSessionStore, SqliteAcpSessionStore, PROCESS_STOP_TIMEOUT_MILLISECONDS, MAX_ACP_PROCESSES, MAX_PRE_SESSION_UPDATES, MAX_PRE_SESSION_UPDATE_BYTES, SESSION_CONTROL_COMMAND_ID, SESSION_CONTROL_TIMEOUT_MILLISECONDS, NullAcpSessionObserver, AcpPreparedSession, AcpAgentSettingsSnapshot, AcpExecutionError, RetryableAcpInitializationError, AcpProcessCapacityLease, AcpProcessCapacityWaiter, AcpProcessCapacityLock, AcpTurnState, IdleAcpTurn, RunningAcpTurn, PendingPermission, PendingElicitation, AcpProcessSession, AcpProcessEvictionCandidate, MissingAcpProcessEvictionCandidate, FoundAcpProcessEvictionCandidate, FoundAcpSessionProcessEvictionCandidate, FoundAcpNativeBrowserProcessEvictionCandidate, AcpSessionManager, AuditStore, LocalAuthorizationError, AgentDiscovery, AvailableAgent, UnavailableAgent, UnavailableInstalledAgent, MissingAdapter, MissingAgent, AgentProbeFailed, IntegrationProbeFailed, IncompatibleAdapter, AuthenticationRequiredAgent, LocalAgentInventory, INSTALL_TIMEOUT_MILLISECONDS, PACKAGE_METADATA_LIMIT_BYTES, PACKAGE_LOCK_LIMIT_BYTES, ManagedNpmPackageDefinition, SriManagedNpmPackageDefinition, SriManagedNpmDependencyDefinition, ManagedNpmPackageError, ManagedNpmPackageInstaller, VERSION_PROBE_TIMEOUT_MILLISECONDS, ACP_PROBE_TIMEOUT_MILLISECONDS, LocalAgentSpecification, DirectAcpAgentDefinition, BridgedAcpAgentDefinition, ClaudeCodeAgentSpecification, CodexAgentSpecification, AgentProbeError, COPILOT_CLI_TESTED_VERSION, CopilotCliAgentSpecification, CURSOR_CLI_TESTED_VERSION, CursorCliAgentSpecification, DeepSeekHarnessManagedPackage, DEEPSEEK_HARNESS_PACKAGE, DeepSeekHarnessAgentSpecification, GEMINI_CLI_TESTED_VERSION, GeminiCliAgentSpecification, GROK_BUILD_MANAGED_VERSION, GrokBuildManagedPackage, GROK_DARWIN_ARM64_PACKAGE, GROK_DARWIN_X64_PACKAGE, GROK_LINUX_ARM64_PACKAGE, GROK_LINUX_X64_PACKAGE, GrokBuildAgentSpecification, HERMES_TESTED_VERSION, HermesAgentSpecification, configuredHttpProxy, configuredHttpsProxy, environmentProxyDispatcher, ARCHIVE_DOWNLOAD_LIMIT_BYTES, ARCHIVE_DOWNLOAD_TIMEOUT_MILLISECONDS, MANIFEST_LIMIT_BYTES, ManagedAgentArchiveDefinition, ZipManagedAgentArchiveDefinition, TarGzipManagedAgentArchiveDefinition, ManagedAgentArchiveError, OPENCODE_MANAGED_VERSION, OpenCodeAgentSpecification, PI_ACP_PACKAGE, PI_AGENT_PACKAGE, ACP_PROBE_TIMEOUT_MILLISECONDS2, PiAgentSpecification, WORKBUDDY_MANAGED_VERSION, WorkBuddyManagedPackage, WORKBUDDY_MANAGED_PACKAGE, WORKBUDDY_MACOS_EXECUTABLE_PATH, WorkBuddyAgentSpecification, ACP_OUTPUT_LIMIT_BYTES, VerifiedAcpReadiness, DiscoveryAcpHandler, ManagedAdapterInstallError, ManagedAdapterInstaller, VerifiedAgentExecutable, APPLICATION_ID_PATTERN, CONNECTION_ID_PATTERN, INSTALLATION_ID_PATTERN, IDENTIFIER_PATTERN4, RUNTIME_CREDENTIAL_PATTERN, MAX_FILE_LENGTH, INSTALLATION_POINTER_KEYS, CHANNEL_INDEX_KEYS, VERIFIED_CONNECTION_KEYS, IMPORTED_LEGACY_CONNECTION_KEYS, CURRENT_CONNECTION_KEYS, LEGACY_CONNECTION_KEYS, RuntimeInstallationStoreError, StoredRuntimeConnection, VerifiedRuntimeConnection, ImportedLegacyRuntimeConnection, RuntimeInstallationStore, PairingClientError, AGENT_DEFAULT_VALUE, READ_ONLY_VALUE, WORKSPACE_WRITE_VALUE, DANGER_FULL_ACCESS_VALUE, DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID, OPENCODE_PERMISSION_SETTING_ID, AgentSettingsConfigurationError, AgentSettingsLaunchSelectionResult, AppliedAgentLaunchSettings, AgentSettingsAdapter, dshAccessModes, DeepSeekHarnessSettingsAdapter, openCodePermissionModes, OpenCodeSettingsAdapter, CodexSettingsAdapter, genericAdapter, codexAdapter, deepSeekHarnessAdapter, openCodeAdapter, CATALOG_UPDATE_TIMEOUT_MILLISECONDS, AgentCatalogPublishError, INSTALLATION_DEADLINE_MILLISECONDS, AgentInstallation, RequestedInstallation, RunningInstallation, SucceededInstallation, FailedInstallation, CancelledInstallation, InstallationManagerError, NullInstallationAudit, InstallationJob, AgentInstallationManager, FixedInstallationExecutor, CHUNK_BYTES, MobiusError, MobiusProtocolError, MobiusValidationError, IDENTIFIER_PATTERN6, MobiusArtifactUploadRequest, MobiusArtifact, MobiusUploadingArtifact, MobiusArtifactUpload, MobiusAvailableArtifact, MobiusExpiredArtifact, MobiusRuntimePairingLifecycle, UPLOAD_TIMEOUT_MILLISECONDS, RuntimeArtifactUploadError, UploadedRuntimeArtifact, WorkspaceDirectoryListing, WorkspaceDirectoryService, responseSchema, threadSchema, turnsSchema, itemTypeSchema, userMessageSchema, textSchema, imageSchema, agentMessageSchema, NativeSessionService, ARTIFACT_SCHEME, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS, MAX_AGENT_IMAGE_BASE64_LENGTH, MAX_AGENT_RESOURCE_BYTE_LENGTH, IDENTIFIER_PATTERN7, PromptArtifactError, ResolvedPromptArtifacts, PromptArtifactReference, CONNECTION_TIMEOUT_MILLISECONDS, RelayConnectionError, MAX_DIAGNOSTIC_TEXT_LENGTH, RelayConnectionDiagnostics, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS, HEARTBEAT_INTERVAL_MILLISECONDS, RelayLivenessState, UnsupportedRelayLivenessState, AwaitingHeartbeatAckState, WaitingForHeartbeatState, FinishedRelayLivenessState, RelayConnectionLiveness, DEFAULT_OUTBOX_LIMITS, SessionEventOutboxCapacityError, RuntimeDeliveryInboxCapacityError, StoredRuntimeDelivery, SessionEventOutbox, SystemDaemonTimer, systemDaemonTimer, RELAY_RECONNECT_DELAY_MILLISECONDS, AGENT_ACTIVITY_COALESCING_MILLISECONDS, ACTIVE_TURN_RECONCILIATION_TIMEOUT_MILLISECONDS, ACTIVE_TURN_RECONCILIATION_CLOSE_CODE, DaemonAcpObserver, AuditInstallationEvents, DaemonInstallationObserver, ResolvedSessionDirectories, ActiveDaemonTurn, ActiveTurnReconciliationError, DaemonSessionEventConnectionState, DisconnectedDaemonSessionEventState, ConnectedDaemonSessionEventState, SESSION_EVENT_REPLAY_WINDOW, SESSION_EVENT_SOURCE_REPLAY_WINDOW, SESSION_EVENT_REPLAY_BYTE_LIMIT, InFlightSessionEvent, DaemonSessionEventPublisher, CoalescingDaemonActivityPublisher, RUNTIME_CREDENTIAL_PATTERN2, MobiusRuntimeConfigurationError, MobiusRuntimeState2, IdleMobiusRuntimeState, RunningMobiusRuntimeState, FinishedMobiusRuntimeState, MobiusRuntimeEngine;
|
|
74625
74661
|
var init_dist = __esm({
|
|
74626
|
-
"../machine-connector/node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
74662
|
+
"../machine-connector/node_modules/.pnpm/@moxt-ai+mobius@0.0.52/node_modules/@moxt-ai/mobius/dist/index.js"() {
|
|
74627
74663
|
"use strict";
|
|
74628
74664
|
init_cjs_shims();
|
|
74629
74665
|
init_acp();
|
|
@@ -87535,21 +87571,46 @@ ${content32.join("\n")}
|
|
|
87535
87571
|
values: external_exports2.array(configValueSchema).max(500).readonly()
|
|
87536
87572
|
}).readonly();
|
|
87537
87573
|
sessionConfigOptionsSchema = external_exports2.array(sessionConfigOptionSchema).max(100).readonly();
|
|
87574
|
+
agentSettingSchema = external_exports2.strictObject({
|
|
87575
|
+
booleanValue: external_exports2.boolean(),
|
|
87576
|
+
category: external_exports2.string().max(128),
|
|
87577
|
+
defaultValue: external_exports2.string().max(500),
|
|
87578
|
+
description: SHORT_TEXT,
|
|
87579
|
+
id: external_exports2.string().min(1).max(128),
|
|
87580
|
+
name: external_exports2.string().min(1).max(255),
|
|
87581
|
+
type: external_exports2.enum(["boolean", "select"]),
|
|
87582
|
+
values: external_exports2.array(configValueSchema).max(500).readonly()
|
|
87583
|
+
}).readonly();
|
|
87584
|
+
agentSettingsSchema = external_exports2.array(agentSettingSchema).max(128).readonly();
|
|
87585
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE = "complete";
|
|
87586
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION = "on_model_selection";
|
|
87587
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE = "unavailable";
|
|
87588
|
+
agentModelEffortResolutionSchema = external_exports2.enum([
|
|
87589
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE,
|
|
87590
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION,
|
|
87591
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE
|
|
87592
|
+
]);
|
|
87593
|
+
agentModelEffortSchema = external_exports2.strictObject({
|
|
87594
|
+
effortSettingId: external_exports2.string().max(128),
|
|
87595
|
+
modelSettingId: external_exports2.string().max(128),
|
|
87596
|
+
resolution: agentModelEffortResolutionSchema,
|
|
87597
|
+
valuesByModel: external_exports2.record(external_exports2.string().min(1).max(500), external_exports2.array(configValueSchema).max(500).readonly()).readonly()
|
|
87598
|
+
}).readonly();
|
|
87538
87599
|
agentSettingsDiscoverCommandSchema = external_exports2.strictObject({
|
|
87539
|
-
additionalDirectoryIds: external_exports2.array(DIRECTORY_IDENTIFIER).max(16).readonly(),
|
|
87540
87600
|
agentId: IDENTIFIER,
|
|
87541
|
-
directoryId: DIRECTORY_IDENTIFIER,
|
|
87542
87601
|
kind: external_exports2.literal(AGENT_SETTINGS_DISCOVER_KIND),
|
|
87602
|
+
model: external_exports2.string().min(1).max(500).optional(),
|
|
87543
87603
|
requestId: IDENTIFIER
|
|
87544
87604
|
}).readonly();
|
|
87545
87605
|
agentSettingsDiscoveredEventSchema = external_exports2.strictObject({
|
|
87546
87606
|
agentId: IDENTIFIER,
|
|
87547
87607
|
agentName: external_exports2.string().max(255),
|
|
87548
87608
|
agentVersion: external_exports2.string().max(128),
|
|
87549
|
-
configOptions: sessionConfigOptionsSchema,
|
|
87550
|
-
directoryId: DIRECTORY_IDENTIFIER,
|
|
87551
87609
|
kind: external_exports2.literal(AGENT_SETTINGS_DISCOVERED_KIND),
|
|
87552
|
-
|
|
87610
|
+
modelEffort: agentModelEffortSchema,
|
|
87611
|
+
requestId: IDENTIFIER,
|
|
87612
|
+
settings: agentSettingsSchema,
|
|
87613
|
+
settingsRevision: external_exports2.string().regex(/^[a-f0-9]{64}$/)
|
|
87553
87614
|
}).readonly();
|
|
87554
87615
|
agentSettingsDiscoveryFailedEventSchema = external_exports2.strictObject({
|
|
87555
87616
|
code: IDENTIFIER,
|
|
@@ -88281,137 +88342,6 @@ ${content32.join("\n")}
|
|
|
88281
88342
|
this.stdout = stdout;
|
|
88282
88343
|
}
|
|
88283
88344
|
};
|
|
88284
|
-
AGENT_DEFAULT_PERMISSION_MODE = AGENT_DEFAULT_EXECUTION_SETTING;
|
|
88285
|
-
READ_ONLY_PERMISSION_MODE = "read-only";
|
|
88286
|
-
WORKSPACE_WRITE_PERMISSION_MODE = "workspace-write";
|
|
88287
|
-
DANGER_FULL_ACCESS_PERMISSION_MODE = "danger-full-access";
|
|
88288
|
-
PERMISSION_MODE_CONFIG_ID = AGENT_PERMISSION_MODE_CONFIG_ID;
|
|
88289
|
-
PERMISSION_MODE_MARKER = "MOBIUS_AGENT_PERMISSION_MODE";
|
|
88290
|
-
AgentPermissionConfigurationError = class extends Error {
|
|
88291
|
-
code = "invalid_agent_permission_configuration";
|
|
88292
|
-
constructor(message, options = {}) {
|
|
88293
|
-
super(message, options);
|
|
88294
|
-
this.name = "AgentPermissionConfigurationError";
|
|
88295
|
-
}
|
|
88296
|
-
};
|
|
88297
|
-
AgentPermissionProfile = class {
|
|
88298
|
-
option = (environment) => ({
|
|
88299
|
-
booleanValue: false,
|
|
88300
|
-
category: "_mobius_permission",
|
|
88301
|
-
currentValue: this.currentMode(environment),
|
|
88302
|
-
description: this.description,
|
|
88303
|
-
id: PERMISSION_MODE_CONFIG_ID,
|
|
88304
|
-
name: "Permissions",
|
|
88305
|
-
type: "select",
|
|
88306
|
-
values: this.values
|
|
88307
|
-
});
|
|
88308
|
-
};
|
|
88309
|
-
AgentManagedPermissionProfile = class extends AgentPermissionProfile {
|
|
88310
|
-
description = "This Agent manages its own local permissions.";
|
|
88311
|
-
values = Object.freeze([
|
|
88312
|
-
{
|
|
88313
|
-
description: "Managed by the Agent",
|
|
88314
|
-
groupId: "",
|
|
88315
|
-
groupName: "",
|
|
88316
|
-
name: "Agent default",
|
|
88317
|
-
value: AGENT_DEFAULT_PERMISSION_MODE
|
|
88318
|
-
}
|
|
88319
|
-
]);
|
|
88320
|
-
currentMode = () => AGENT_DEFAULT_PERMISSION_MODE;
|
|
88321
|
-
apply = (environment, permissionMode) => {
|
|
88322
|
-
if (permissionMode !== AGENT_DEFAULT_PERMISSION_MODE) {
|
|
88323
|
-
throw new AgentPermissionConfigurationError("The selected Agent does not support this permission mode");
|
|
88324
|
-
}
|
|
88325
|
-
return Object.freeze({ ...environment });
|
|
88326
|
-
};
|
|
88327
|
-
};
|
|
88328
|
-
PiPermissionProfile = class extends AgentPermissionProfile {
|
|
88329
|
-
description = "Pi has no built-in sandbox and runs with the local Runtime user's authority.";
|
|
88330
|
-
values = Object.freeze([
|
|
88331
|
-
{
|
|
88332
|
-
description: "Pi default; unrestricted local execution with the Runtime user's authority",
|
|
88333
|
-
groupId: "",
|
|
88334
|
-
groupName: "",
|
|
88335
|
-
name: "Full access (Pi default)",
|
|
88336
|
-
value: DANGER_FULL_ACCESS_PERMISSION_MODE
|
|
88337
|
-
}
|
|
88338
|
-
]);
|
|
88339
|
-
currentMode = () => DANGER_FULL_ACCESS_PERMISSION_MODE;
|
|
88340
|
-
apply = (environment, permissionMode) => {
|
|
88341
|
-
if (permissionMode !== DANGER_FULL_ACCESS_PERMISSION_MODE) {
|
|
88342
|
-
throw new AgentPermissionConfigurationError("Pi only supports its default full-access permission mode");
|
|
88343
|
-
}
|
|
88344
|
-
return Object.freeze({ ...environment });
|
|
88345
|
-
};
|
|
88346
|
-
};
|
|
88347
|
-
adjustablePermissionValues = Object.freeze([
|
|
88348
|
-
{
|
|
88349
|
-
description: "Keep the Agent's existing permission policy",
|
|
88350
|
-
groupId: "",
|
|
88351
|
-
groupName: "",
|
|
88352
|
-
name: "Agent default",
|
|
88353
|
-
value: AGENT_DEFAULT_PERMISSION_MODE
|
|
88354
|
-
},
|
|
88355
|
-
{
|
|
88356
|
-
description: "Allow inspection without local writes or commands that can change state",
|
|
88357
|
-
groupId: "",
|
|
88358
|
-
groupName: "",
|
|
88359
|
-
name: "Read only",
|
|
88360
|
-
value: READ_ONLY_PERMISSION_MODE
|
|
88361
|
-
},
|
|
88362
|
-
{
|
|
88363
|
-
description: "Allow changes inside the selected workspace while protecting external paths",
|
|
88364
|
-
groupId: "",
|
|
88365
|
-
groupName: "",
|
|
88366
|
-
name: "Workspace write",
|
|
88367
|
-
value: WORKSPACE_WRITE_PERMISSION_MODE
|
|
88368
|
-
},
|
|
88369
|
-
{
|
|
88370
|
-
description: "Allow unrestricted local execution with the Runtime user's authority",
|
|
88371
|
-
groupId: "",
|
|
88372
|
-
groupName: "",
|
|
88373
|
-
name: "Full access",
|
|
88374
|
-
value: DANGER_FULL_ACCESS_PERMISSION_MODE
|
|
88375
|
-
}
|
|
88376
|
-
]);
|
|
88377
|
-
DeepSeekHarnessPermissionProfile = class extends AgentPermissionProfile {
|
|
88378
|
-
description = "Controls the local side effects allowed for this Agent session.";
|
|
88379
|
-
values = adjustablePermissionValues;
|
|
88380
|
-
currentMode = (environment) => validateAdjustableMode(environment["DSH_PERMISSION_MODE"] ?? WORKSPACE_WRITE_PERMISSION_MODE);
|
|
88381
|
-
apply = (environment, permissionMode) => {
|
|
88382
|
-
if (permissionMode === AGENT_DEFAULT_PERMISSION_MODE) {
|
|
88383
|
-
return Object.freeze({ ...environment });
|
|
88384
|
-
}
|
|
88385
|
-
return Object.freeze({
|
|
88386
|
-
...environment,
|
|
88387
|
-
DSH_PERMISSION_MODE: validateAdjustableMode(permissionMode),
|
|
88388
|
-
[PERMISSION_MODE_MARKER]: permissionMode
|
|
88389
|
-
});
|
|
88390
|
-
};
|
|
88391
|
-
};
|
|
88392
|
-
OpenCodePermissionProfile = class extends AgentPermissionProfile {
|
|
88393
|
-
description = "Controls the local side effects allowed for this Agent session.";
|
|
88394
|
-
values = adjustablePermissionValues;
|
|
88395
|
-
currentMode = (environment) => validateAdjustableMode(environment[PERMISSION_MODE_MARKER] ?? AGENT_DEFAULT_PERMISSION_MODE);
|
|
88396
|
-
apply = (environment, permissionMode) => {
|
|
88397
|
-
const validated = validateAdjustableMode(permissionMode);
|
|
88398
|
-
if (validated === AGENT_DEFAULT_PERMISSION_MODE) {
|
|
88399
|
-
return Object.freeze({ ...environment });
|
|
88400
|
-
}
|
|
88401
|
-
return Object.freeze({
|
|
88402
|
-
...environment,
|
|
88403
|
-
OPENCODE_CONFIG_CONTENT: JSON.stringify({
|
|
88404
|
-
...openCodeConfiguration(environment),
|
|
88405
|
-
permission: openCodePermission(validated)
|
|
88406
|
-
}),
|
|
88407
|
-
[PERMISSION_MODE_MARKER]: validated
|
|
88408
|
-
});
|
|
88409
|
-
};
|
|
88410
|
-
};
|
|
88411
|
-
agentManagedPermissionProfile = new AgentManagedPermissionProfile();
|
|
88412
|
-
deepSeekHarnessPermissionProfile = new DeepSeekHarnessPermissionProfile();
|
|
88413
|
-
openCodePermissionProfile = new OpenCodePermissionProfile();
|
|
88414
|
-
piPermissionProfile = new PiPermissionProfile();
|
|
88415
88345
|
LocalAgentDefinition = class _LocalAgentDefinition {
|
|
88416
88346
|
adapterIdentity;
|
|
88417
88347
|
adapterPath;
|
|
@@ -88424,8 +88354,7 @@ ${content32.join("\n")}
|
|
|
88424
88354
|
environment;
|
|
88425
88355
|
id;
|
|
88426
88356
|
label;
|
|
88427
|
-
|
|
88428
|
-
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities(), permissionProfile = permissionProfileForAgent(id)) {
|
|
88357
|
+
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities()) {
|
|
88429
88358
|
this.adapterIdentity = adapterIdentity;
|
|
88430
88359
|
this.adapterPath = adapterIdentity.realPath;
|
|
88431
88360
|
this.adapterVersion = adapterVersion;
|
|
@@ -88434,29 +88363,22 @@ ${content32.join("\n")}
|
|
|
88434
88363
|
this.capabilities = Object.freeze({ ...capabilities });
|
|
88435
88364
|
this.id = id;
|
|
88436
88365
|
this.label = label;
|
|
88437
|
-
this.permissionProfile = permissionProfile;
|
|
88438
88366
|
this.command = adapterIdentity.realPath;
|
|
88439
88367
|
this.arguments = Object.freeze([...arguments_]);
|
|
88440
|
-
this.environment =
|
|
88441
|
-
}
|
|
88442
|
-
|
|
88443
|
-
|
|
88444
|
-
|
|
88445
|
-
|
|
88446
|
-
|
|
88447
|
-
|
|
88448
|
-
|
|
88449
|
-
|
|
88450
|
-
|
|
88451
|
-
|
|
88452
|
-
|
|
88453
|
-
|
|
88454
|
-
this.adapterIdentity,
|
|
88455
|
-
this.agentIdentity,
|
|
88456
|
-
this.capabilities,
|
|
88457
|
-
this.permissionProfile
|
|
88458
|
-
);
|
|
88459
|
-
};
|
|
88368
|
+
this.environment = Object.freeze({ ...environment });
|
|
88369
|
+
}
|
|
88370
|
+
withEnvironment = (environment) => new _LocalAgentDefinition(
|
|
88371
|
+
this.id,
|
|
88372
|
+
this.label,
|
|
88373
|
+
this.command,
|
|
88374
|
+
this.arguments,
|
|
88375
|
+
environment,
|
|
88376
|
+
this.adapterVersion,
|
|
88377
|
+
this.agentVersion,
|
|
88378
|
+
this.adapterIdentity,
|
|
88379
|
+
this.agentIdentity,
|
|
88380
|
+
this.capabilities
|
|
88381
|
+
);
|
|
88460
88382
|
};
|
|
88461
88383
|
InstallableAgentDefinition = class {
|
|
88462
88384
|
id;
|
|
@@ -92098,7 +92020,6 @@ ${content32.join("\n")}
|
|
|
92098
92020
|
#preSessionUpdates = [];
|
|
92099
92021
|
#processExit;
|
|
92100
92022
|
#metrics;
|
|
92101
|
-
#permissionProfile;
|
|
92102
92023
|
#sessionConfigProtocol;
|
|
92103
92024
|
#store;
|
|
92104
92025
|
#emittedToolImages = /* @__PURE__ */ new Set();
|
|
@@ -92142,7 +92063,6 @@ ${content32.join("\n")}
|
|
|
92142
92063
|
this.#getObserver = getObserver;
|
|
92143
92064
|
this.#mobiusSessionId = mobiusSessionId;
|
|
92144
92065
|
this.#metrics = metrics;
|
|
92145
|
-
this.#permissionProfile = agent.permissionProfile;
|
|
92146
92066
|
this.#sessionConfigProtocol = sessionConfigProtocolForAgent(agent.id);
|
|
92147
92067
|
this.#store = store;
|
|
92148
92068
|
this.#verifiedAgentVersion = agent.agentVersion;
|
|
@@ -92249,6 +92169,7 @@ ${content32.join("\n")}
|
|
|
92249
92169
|
belongsTo = (agentId, cwd, additionalDirectories) => this.#agentId === agentId && this.#cwd === cwd && arraysEqual(this.#additionalDirectories, additionalDirectories);
|
|
92250
92170
|
usesEnvironment = (environment) => recordsEqual(this.#environment, environment);
|
|
92251
92171
|
canRebind = () => !this.#prompted && !this.#turn.running;
|
|
92172
|
+
hasRunningTurn = () => this.#turn.running;
|
|
92252
92173
|
prepared = () => new AcpPreparedSession(
|
|
92253
92174
|
this.#agentName,
|
|
92254
92175
|
this.#agentVersion,
|
|
@@ -92612,10 +92533,7 @@ ${content32.join("\n")}
|
|
|
92612
92533
|
this.selectNativeSession(created.sessionId);
|
|
92613
92534
|
lifecycleResponse = created;
|
|
92614
92535
|
}
|
|
92615
|
-
this.#configOptions =
|
|
92616
|
-
this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse),
|
|
92617
|
-
this.#permissionProfile.option(this.#environment)
|
|
92618
|
-
);
|
|
92536
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse);
|
|
92619
92537
|
await this.#updateTail;
|
|
92620
92538
|
signal.throwIfAborted();
|
|
92621
92539
|
if (this.#prompted) {
|
|
@@ -92716,12 +92634,17 @@ ${content32.join("\n")}
|
|
|
92716
92634
|
)
|
|
92717
92635
|
}
|
|
92718
92636
|
);
|
|
92637
|
+
const applied = configured.find((option) => option.id === options.configId);
|
|
92638
|
+
if (applied === void 0 || applied.type !== options.valueType || applied.type === "boolean" && applied.booleanValue !== options.booleanValue || applied.type === "select" && applied.currentValue !== options.value) {
|
|
92639
|
+
throw new AcpExecutionError(
|
|
92640
|
+
"The Agent did not apply the requested session configuration",
|
|
92641
|
+
{},
|
|
92642
|
+
"invalid_session_configuration"
|
|
92643
|
+
);
|
|
92644
|
+
}
|
|
92719
92645
|
await this.#updateTail;
|
|
92720
92646
|
if (this.#configRevision === configRevision) {
|
|
92721
|
-
this.#configOptions =
|
|
92722
|
-
configured,
|
|
92723
|
-
this.#permissionProfile.option(this.#environment)
|
|
92724
|
-
);
|
|
92647
|
+
this.#configOptions = configured;
|
|
92725
92648
|
}
|
|
92726
92649
|
} catch (error622) {
|
|
92727
92650
|
if (error622 instanceof SessionConfigProtocolError) {
|
|
@@ -93199,9 +93122,9 @@ ${content32.join("\n")}
|
|
|
93199
93122
|
return;
|
|
93200
93123
|
}
|
|
93201
93124
|
if (update.sessionUpdate === "config_option_update") {
|
|
93202
|
-
this.#configOptions =
|
|
93203
|
-
this.#
|
|
93204
|
-
|
|
93125
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeUpdate(
|
|
93126
|
+
this.#configOptions,
|
|
93127
|
+
update.configOptions
|
|
93205
93128
|
);
|
|
93206
93129
|
this.#configRevision += 1;
|
|
93207
93130
|
await this.emitConfigUpdate();
|
|
@@ -93732,16 +93655,12 @@ ${content32.join("\n")}
|
|
|
93732
93655
|
const operation = (async () => {
|
|
93733
93656
|
try {
|
|
93734
93657
|
await this.#retireSessionProcess(options.sessionId, existing, async () => await existing.close());
|
|
93735
|
-
this.#store.remove(options.sessionId);
|
|
93736
93658
|
const runtime = await this.#startRetainedSessionProcess(
|
|
93737
93659
|
options,
|
|
93738
93660
|
async () => await AcpProcessSession.start(options, () => this.#observer, this.#store)
|
|
93739
93661
|
);
|
|
93740
93662
|
try {
|
|
93741
93663
|
for (const desired of desiredConfigOptions) {
|
|
93742
|
-
if (desired.id === PERMISSION_MODE_CONFIG_ID) {
|
|
93743
|
-
continue;
|
|
93744
|
-
}
|
|
93745
93664
|
const current2 = runtime.prepared().configOptions.find((option) => option.id === desired.id);
|
|
93746
93665
|
if (current2 === void 0 || current2.type !== desired.type) {
|
|
93747
93666
|
continue;
|
|
@@ -93772,7 +93691,6 @@ ${content32.join("\n")}
|
|
|
93772
93691
|
}
|
|
93773
93692
|
} catch (error622) {
|
|
93774
93693
|
await this.#retireSessionProcess(options.sessionId, runtime, async () => await runtime.close());
|
|
93775
|
-
this.#store.remove(options.sessionId);
|
|
93776
93694
|
throw error622;
|
|
93777
93695
|
}
|
|
93778
93696
|
return runtime;
|
|
@@ -93839,11 +93757,21 @@ ${content32.join("\n")}
|
|
|
93839
93757
|
() => this.#agentSettingsObserver,
|
|
93840
93758
|
new MemoryAcpSessionStore()
|
|
93841
93759
|
),
|
|
93842
|
-
(runtime) => {
|
|
93760
|
+
async (runtime) => {
|
|
93843
93761
|
const prepared = runtime.prepared();
|
|
93844
|
-
|
|
93845
|
-
|
|
93846
|
-
|
|
93762
|
+
const model = options.model;
|
|
93763
|
+
const configOptions = model === void 0 ? prepared.configOptions : await runtime.configure({
|
|
93764
|
+
...options,
|
|
93765
|
+
booleanValue: false,
|
|
93766
|
+
configId: prepared.configOptions.find(
|
|
93767
|
+
(option) => option.id === "model" || option.category === "model"
|
|
93768
|
+
)?.id ?? "model",
|
|
93769
|
+
requestId: "agent-settings-model",
|
|
93770
|
+
sessionId: `agent-settings-${crypto.randomUUID()}`,
|
|
93771
|
+
value: model,
|
|
93772
|
+
valueType: "select"
|
|
93773
|
+
});
|
|
93774
|
+
return new AcpAgentSettingsSnapshot(prepared.agentName, prepared.agentVersion, configOptions);
|
|
93847
93775
|
},
|
|
93848
93776
|
async (runtime) => await runtime.close()
|
|
93849
93777
|
);
|
|
@@ -93892,11 +93820,11 @@ ${content32.join("\n")}
|
|
|
93892
93820
|
this.#touchExpectedSession(options.sessionId, existing);
|
|
93893
93821
|
return existing.prepared();
|
|
93894
93822
|
}
|
|
93895
|
-
if (
|
|
93823
|
+
if (existing.hasRunningTurn()) {
|
|
93896
93824
|
throw new AcpExecutionError(
|
|
93897
|
-
"The execution environment cannot change
|
|
93825
|
+
"The execution environment cannot change while a conversation turn is running",
|
|
93898
93826
|
{},
|
|
93899
|
-
"
|
|
93827
|
+
"session_busy"
|
|
93900
93828
|
);
|
|
93901
93829
|
}
|
|
93902
93830
|
return (await this.#replaceExecutionPreparation(existing, options)).prepared();
|
|
@@ -93934,30 +93862,6 @@ ${content32.join("\n")}
|
|
|
93934
93862
|
this.#beginSessionUse(options.sessionId);
|
|
93935
93863
|
try {
|
|
93936
93864
|
const runtime = await this.ensureSession(options);
|
|
93937
|
-
if (options.configId === PERMISSION_MODE_CONFIG_ID) {
|
|
93938
|
-
const permission = runtime.prepared().configOptions.find((candidate) => candidate.id === PERMISSION_MODE_CONFIG_ID);
|
|
93939
|
-
if (permission === void 0 || permission.type !== "select" || options.valueType !== "select" || permission.values.length < 2 || !permission.values.some((value) => value.value === options.value)) {
|
|
93940
|
-
throw new AcpExecutionError(
|
|
93941
|
-
"The requested Agent permission mode is unavailable",
|
|
93942
|
-
{},
|
|
93943
|
-
"invalid_session_configuration"
|
|
93944
|
-
);
|
|
93945
|
-
}
|
|
93946
|
-
if (permission.currentValue === options.value) {
|
|
93947
|
-
return runtime.prepared().configOptions;
|
|
93948
|
-
}
|
|
93949
|
-
try {
|
|
93950
|
-
return (await this.prepareExecutionSession({
|
|
93951
|
-
...options,
|
|
93952
|
-
agent: options.agent.withPermissionMode(options.value)
|
|
93953
|
-
})).configOptions;
|
|
93954
|
-
} catch (error622) {
|
|
93955
|
-
if (error622 instanceof AgentPermissionConfigurationError) {
|
|
93956
|
-
throw new AcpExecutionError(error622.message, { cause: error622 }, error622.code);
|
|
93957
|
-
}
|
|
93958
|
-
throw error622;
|
|
93959
|
-
}
|
|
93960
|
-
}
|
|
93961
93865
|
return await runtime.configure(options);
|
|
93962
93866
|
} finally {
|
|
93963
93867
|
this.#endSessionUse(options.sessionId);
|
|
@@ -94408,7 +94312,7 @@ ${content32.join("\n")}
|
|
|
94408
94312
|
this.database.exec("ALTER TABLE audit_events ADD COLUMN details_json TEXT NOT NULL DEFAULT '{}'");
|
|
94409
94313
|
}
|
|
94410
94314
|
}
|
|
94411
|
-
record(
|
|
94315
|
+
record(record32) {
|
|
94412
94316
|
this.database.prepare(
|
|
94413
94317
|
`
|
|
94414
94318
|
INSERT INTO audit_events (
|
|
@@ -94421,10 +94325,10 @@ ${content32.join("\n")}
|
|
|
94421
94325
|
`
|
|
94422
94326
|
).run(
|
|
94423
94327
|
(/* @__PURE__ */ new Date()).toISOString(),
|
|
94424
|
-
|
|
94425
|
-
|
|
94426
|
-
|
|
94427
|
-
JSON.stringify(
|
|
94328
|
+
record32.event,
|
|
94329
|
+
record32.commandId,
|
|
94330
|
+
record32.sessionId,
|
|
94331
|
+
JSON.stringify(record32.details ?? {})
|
|
94428
94332
|
);
|
|
94429
94333
|
}
|
|
94430
94334
|
close() {
|
|
@@ -95677,6 +95581,116 @@ ${content32.join("\n")}
|
|
|
95677
95581
|
this.name = "PairingClientError";
|
|
95678
95582
|
}
|
|
95679
95583
|
};
|
|
95584
|
+
AGENT_DEFAULT_VALUE = "agent_default";
|
|
95585
|
+
READ_ONLY_VALUE = "read-only";
|
|
95586
|
+
WORKSPACE_WRITE_VALUE = "workspace-write";
|
|
95587
|
+
DANGER_FULL_ACCESS_VALUE = "danger-full-access";
|
|
95588
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID = "dsh_access_mode";
|
|
95589
|
+
OPENCODE_PERMISSION_SETTING_ID = "opencode_permission";
|
|
95590
|
+
AgentSettingsConfigurationError = class extends Error {
|
|
95591
|
+
code = "invalid_session_configuration";
|
|
95592
|
+
constructor(message, options = {}) {
|
|
95593
|
+
super(message, options);
|
|
95594
|
+
this.name = "AgentSettingsConfigurationError";
|
|
95595
|
+
}
|
|
95596
|
+
};
|
|
95597
|
+
AgentSettingsLaunchSelectionResult = class {
|
|
95598
|
+
agent;
|
|
95599
|
+
handled;
|
|
95600
|
+
constructor(agent, handled) {
|
|
95601
|
+
this.agent = agent;
|
|
95602
|
+
this.handled = handled;
|
|
95603
|
+
}
|
|
95604
|
+
};
|
|
95605
|
+
AppliedAgentLaunchSettings = class {
|
|
95606
|
+
agent;
|
|
95607
|
+
sessionConfigurations;
|
|
95608
|
+
constructor(agent, sessionConfigurations) {
|
|
95609
|
+
this.agent = agent;
|
|
95610
|
+
this.sessionConfigurations = Object.freeze([...sessionConfigurations]);
|
|
95611
|
+
}
|
|
95612
|
+
};
|
|
95613
|
+
AgentSettingsAdapter = class {
|
|
95614
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION;
|
|
95615
|
+
applyLaunchSelection = (agent, _selection) => new AgentSettingsLaunchSelectionResult(agent, false);
|
|
95616
|
+
settings = (_agent) => [];
|
|
95617
|
+
};
|
|
95618
|
+
dshAccessModes = Object.freeze([
|
|
95619
|
+
selectValue("Read only", READ_ONLY_VALUE, "Allow inspection without local writes."),
|
|
95620
|
+
selectValue("Workspace write", WORKSPACE_WRITE_VALUE, "Allow changes in the selected workspace."),
|
|
95621
|
+
selectValue("Full access", DANGER_FULL_ACCESS_VALUE, "Allow unrestricted local execution.")
|
|
95622
|
+
]);
|
|
95623
|
+
DeepSeekHarnessSettingsAdapter = class extends AgentSettingsAdapter {
|
|
95624
|
+
settings = (agent) => {
|
|
95625
|
+
const configured = agent.environment["DSH_PERMISSION_MODE"] ?? WORKSPACE_WRITE_VALUE;
|
|
95626
|
+
return [
|
|
95627
|
+
selectSetting(
|
|
95628
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID,
|
|
95629
|
+
"Access mode",
|
|
95630
|
+
"Controls the local side effects allowed for this DeepSeek Harness session.",
|
|
95631
|
+
validValue(dshAccessModes, configured),
|
|
95632
|
+
dshAccessModes
|
|
95633
|
+
)
|
|
95634
|
+
];
|
|
95635
|
+
};
|
|
95636
|
+
applyLaunchSelection = (agent, selection) => {
|
|
95637
|
+
if (selection.configId !== DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID) {
|
|
95638
|
+
return new AgentSettingsLaunchSelectionResult(agent, false);
|
|
95639
|
+
}
|
|
95640
|
+
const value = validValue(dshAccessModes, selectedValue(selection, DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID));
|
|
95641
|
+
return new AgentSettingsLaunchSelectionResult(
|
|
95642
|
+
agent.withEnvironment({ ...agent.environment, DSH_PERMISSION_MODE: value }),
|
|
95643
|
+
true
|
|
95644
|
+
);
|
|
95645
|
+
};
|
|
95646
|
+
};
|
|
95647
|
+
openCodePermissionModes = Object.freeze([
|
|
95648
|
+
selectValue("Agent default", AGENT_DEFAULT_VALUE, "Keep OpenCode's existing permission policy."),
|
|
95649
|
+
selectValue("Read only", READ_ONLY_VALUE, "Allow inspection without local writes."),
|
|
95650
|
+
selectValue("Workspace write", WORKSPACE_WRITE_VALUE, "Allow changes in the selected workspace."),
|
|
95651
|
+
selectValue("Full access", DANGER_FULL_ACCESS_VALUE, "Allow unrestricted local execution.")
|
|
95652
|
+
]);
|
|
95653
|
+
OpenCodeSettingsAdapter = class extends AgentSettingsAdapter {
|
|
95654
|
+
settings = (agent) => {
|
|
95655
|
+
const currentValue = agent.environment["MOBIUS_OPENCODE_PERMISSION"] ?? AGENT_DEFAULT_VALUE;
|
|
95656
|
+
return [
|
|
95657
|
+
selectSetting(
|
|
95658
|
+
OPENCODE_PERMISSION_SETTING_ID,
|
|
95659
|
+
"Permissions",
|
|
95660
|
+
"Controls OpenCode's local permission policy.",
|
|
95661
|
+
validValue(openCodePermissionModes, currentValue),
|
|
95662
|
+
openCodePermissionModes
|
|
95663
|
+
)
|
|
95664
|
+
];
|
|
95665
|
+
};
|
|
95666
|
+
applyLaunchSelection = (agent, selection) => {
|
|
95667
|
+
if (selection.configId !== OPENCODE_PERMISSION_SETTING_ID) {
|
|
95668
|
+
return new AgentSettingsLaunchSelectionResult(agent, false);
|
|
95669
|
+
}
|
|
95670
|
+
const value = validValue(openCodePermissionModes, selectedValue(selection, OPENCODE_PERMISSION_SETTING_ID));
|
|
95671
|
+
if (value === AGENT_DEFAULT_VALUE) {
|
|
95672
|
+
return new AgentSettingsLaunchSelectionResult(agent, true);
|
|
95673
|
+
}
|
|
95674
|
+
return new AgentSettingsLaunchSelectionResult(
|
|
95675
|
+
agent.withEnvironment({
|
|
95676
|
+
...agent.environment,
|
|
95677
|
+
MOBIUS_OPENCODE_PERMISSION: value,
|
|
95678
|
+
OPENCODE_CONFIG_CONTENT: JSON.stringify({
|
|
95679
|
+
...openCodeConfiguration(agent.environment),
|
|
95680
|
+
permission: openCodePermission(value)
|
|
95681
|
+
})
|
|
95682
|
+
}),
|
|
95683
|
+
true
|
|
95684
|
+
);
|
|
95685
|
+
};
|
|
95686
|
+
};
|
|
95687
|
+
CodexSettingsAdapter = class extends AgentSettingsAdapter {
|
|
95688
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE;
|
|
95689
|
+
};
|
|
95690
|
+
genericAdapter = new AgentSettingsAdapter();
|
|
95691
|
+
codexAdapter = new CodexSettingsAdapter();
|
|
95692
|
+
deepSeekHarnessAdapter = new DeepSeekHarnessSettingsAdapter();
|
|
95693
|
+
openCodeAdapter = new OpenCodeSettingsAdapter();
|
|
95680
95694
|
CATALOG_UPDATE_TIMEOUT_MILLISECONDS = 2e4;
|
|
95681
95695
|
AgentCatalogPublishError = class extends Error {
|
|
95682
95696
|
code = "agent_catalog_update_failed";
|
|
@@ -97546,9 +97560,9 @@ ${content32.join("\n")}
|
|
|
97546
97560
|
DaemonAcpObserver = class {
|
|
97547
97561
|
#config;
|
|
97548
97562
|
#record;
|
|
97549
|
-
constructor(config22,
|
|
97563
|
+
constructor(config22, record32) {
|
|
97550
97564
|
this.#config = config22;
|
|
97551
|
-
this.#record =
|
|
97565
|
+
this.#record = record32;
|
|
97552
97566
|
}
|
|
97553
97567
|
importLocalArtifact = async (sessionId, artifact, signal) => (await uploadRuntimeArtifact(this.#config, sessionId, artifact, signal)).artifactId;
|
|
97554
97568
|
onCommands = (event2) => {
|
|
@@ -109489,7 +109503,7 @@ var init_file_selector = __esm({
|
|
|
109489
109503
|
|
|
109490
109504
|
// src/utils/http.ts
|
|
109491
109505
|
function getUserAgent() {
|
|
109492
|
-
return `moxt-cli/${"0.13.
|
|
109506
|
+
return `moxt-cli/${"0.13.5"} (${(0, import_os.platform)()}/${(0, import_os.arch)()}) node/${process.versions.node}`;
|
|
109493
109507
|
}
|
|
109494
109508
|
async function sendRequest(method, path7, init) {
|
|
109495
109509
|
return await fetch(`${getApiBaseUrl()}${path7}`, {
|
|
@@ -175520,7 +175534,7 @@ ${captureLines}` : capture.stack;
|
|
|
175520
175534
|
}
|
|
175521
175535
|
});
|
|
175522
175536
|
|
|
175523
|
-
// node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
175537
|
+
// node_modules/.pnpm/@moxt-ai+mobius@0.0.52/node_modules/@moxt-ai/mobius/dist/index.js
|
|
175524
175538
|
var dist_exports2 = {};
|
|
175525
175539
|
__export(dist_exports2, {
|
|
175526
175540
|
AcpExecutionError: () => AcpExecutionError2,
|
|
@@ -180919,8 +180933,8 @@ function rewriteKeyNames4(ctx) {
|
|
|
180919
180933
|
bySchema.set(entry.schema, entry);
|
|
180920
180934
|
}
|
|
180921
180935
|
const rewrites = /* @__PURE__ */ new Map();
|
|
180922
|
-
for (const
|
|
180923
|
-
const seen = ctx.seen.get(
|
|
180936
|
+
for (const record32 of pendingRecords4.get(ctx) ?? []) {
|
|
180937
|
+
const seen = ctx.seen.get(record32);
|
|
180924
180938
|
const names = (seen?.def ?? seen?.schema)?.propertyNames;
|
|
180925
180939
|
if (!names || names === true || rewrites.has(names))
|
|
180926
180940
|
continue;
|
|
@@ -183402,66 +183416,6 @@ async function runBoundedProcess2(options) {
|
|
|
183402
183416
|
}
|
|
183403
183417
|
}
|
|
183404
183418
|
}
|
|
183405
|
-
function validateAdjustableMode2(permissionMode) {
|
|
183406
|
-
if (!adjustablePermissionValues2.some((value) => value.value === permissionMode)) {
|
|
183407
|
-
throw new AgentPermissionConfigurationError2("The selected permission mode is unavailable");
|
|
183408
|
-
}
|
|
183409
|
-
return permissionMode;
|
|
183410
|
-
}
|
|
183411
|
-
function record23(value) {
|
|
183412
|
-
if (value === void 0) {
|
|
183413
|
-
return {};
|
|
183414
|
-
}
|
|
183415
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
183416
|
-
throw new AgentPermissionConfigurationError2("The OpenCode inline configuration is invalid");
|
|
183417
|
-
}
|
|
183418
|
-
return Object.fromEntries(Object.entries(value));
|
|
183419
|
-
}
|
|
183420
|
-
function openCodeConfiguration2(environment) {
|
|
183421
|
-
const encoded = environment["OPENCODE_CONFIG_CONTENT"];
|
|
183422
|
-
if (encoded === void 0 || encoded.length === 0) {
|
|
183423
|
-
return {};
|
|
183424
|
-
}
|
|
183425
|
-
try {
|
|
183426
|
-
return record23(JSON.parse(encoded));
|
|
183427
|
-
} catch (cause) {
|
|
183428
|
-
if (cause instanceof AgentPermissionConfigurationError2) {
|
|
183429
|
-
throw cause;
|
|
183430
|
-
}
|
|
183431
|
-
throw new AgentPermissionConfigurationError2("The OpenCode inline configuration is invalid", { cause });
|
|
183432
|
-
}
|
|
183433
|
-
}
|
|
183434
|
-
function openCodePermission2(permissionMode) {
|
|
183435
|
-
if (permissionMode === READ_ONLY_PERMISSION_MODE2) {
|
|
183436
|
-
return {
|
|
183437
|
-
"*": "deny",
|
|
183438
|
-
glob: "allow",
|
|
183439
|
-
grep: "allow",
|
|
183440
|
-
lsp: "allow",
|
|
183441
|
-
read: "allow",
|
|
183442
|
-
skill: "allow"
|
|
183443
|
-
};
|
|
183444
|
-
}
|
|
183445
|
-
if (permissionMode === WORKSPACE_WRITE_PERMISSION_MODE2) {
|
|
183446
|
-
return {
|
|
183447
|
-
"*": "allow",
|
|
183448
|
-
external_directory: "ask"
|
|
183449
|
-
};
|
|
183450
|
-
}
|
|
183451
|
-
return "allow";
|
|
183452
|
-
}
|
|
183453
|
-
function permissionProfileForAgent2(agentId) {
|
|
183454
|
-
if (agentId === "deepseek-harness") {
|
|
183455
|
-
return deepSeekHarnessPermissionProfile2;
|
|
183456
|
-
}
|
|
183457
|
-
if (agentId === "opencode") {
|
|
183458
|
-
return openCodePermissionProfile2;
|
|
183459
|
-
}
|
|
183460
|
-
if (agentId === "pi") {
|
|
183461
|
-
return piPermissionProfile2;
|
|
183462
|
-
}
|
|
183463
|
-
return agentManagedPermissionProfile2;
|
|
183464
|
-
}
|
|
183465
183419
|
function readTrustedIdentity2(path22) {
|
|
183466
183420
|
const resolvedPath = (0, import_node_fs13.realpathSync)(path22);
|
|
183467
183421
|
const metadata = (0, import_node_fs13.statSync)(resolvedPath);
|
|
@@ -188468,13 +188422,14 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188468
188422
|
}
|
|
188469
188423
|
const id = truncate22(readString22(option["id"]), 128);
|
|
188470
188424
|
const name = truncate22(readString22(option["name"], id), 255);
|
|
188471
|
-
|
|
188425
|
+
const category = truncate22(readString22(option["category"]), 128);
|
|
188426
|
+
if (id.length === 0 || name.length === 0 || category === "_mobius_permission") {
|
|
188472
188427
|
continue;
|
|
188473
188428
|
}
|
|
188474
188429
|
if (option["type"] === "boolean") {
|
|
188475
188430
|
normalized.push({
|
|
188476
188431
|
booleanValue: readBoolean2(option["currentValue"]),
|
|
188477
|
-
category
|
|
188432
|
+
category,
|
|
188478
188433
|
currentValue: "",
|
|
188479
188434
|
description: truncate22(readString22(option["description"]), 500),
|
|
188480
188435
|
id,
|
|
@@ -188490,7 +188445,7 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188490
188445
|
if (currentValue.length > 0 && values.some((entry) => entry.value === currentValue)) {
|
|
188491
188446
|
normalized.push({
|
|
188492
188447
|
booleanValue: false,
|
|
188493
|
-
category
|
|
188448
|
+
category,
|
|
188494
188449
|
currentValue,
|
|
188495
188450
|
description: truncate22(readString22(option["description"]), 500),
|
|
188496
188451
|
id,
|
|
@@ -188537,122 +188492,16 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188537
188492
|
});
|
|
188538
188493
|
}
|
|
188539
188494
|
}
|
|
188540
|
-
return normalized.slice(0,
|
|
188541
|
-
}
|
|
188542
|
-
function insertRequiredOption2(current2, required22, afterCategory = "") {
|
|
188543
|
-
if (current2.some((option) => option.id === required22.id || option.category === required22.category)) {
|
|
188544
|
-
return current2;
|
|
188545
|
-
}
|
|
188546
|
-
if (current2.length < MAXIMUM_CONFIG_OPTIONS2) {
|
|
188547
|
-
if (afterCategory.length === 0) {
|
|
188548
|
-
return [required22, ...current2];
|
|
188549
|
-
}
|
|
188550
|
-
const index32 = current2.findIndex((option) => option.category === afterCategory);
|
|
188551
|
-
if (index32 < 0) {
|
|
188552
|
-
return [...current2, required22];
|
|
188553
|
-
}
|
|
188554
|
-
return [...current2.slice(0, index32 + 1), required22, ...current2.slice(index32 + 1)];
|
|
188555
|
-
}
|
|
188556
|
-
if (afterCategory.length === 0) {
|
|
188557
|
-
return [required22, ...current2.slice(0, MAXIMUM_CONFIG_OPTIONS2 - 1)];
|
|
188558
|
-
}
|
|
188559
|
-
const index22 = current2.findIndex((option) => option.category === afterCategory);
|
|
188560
|
-
if (index22 < 0) {
|
|
188561
|
-
return [...current2.slice(0, MAXIMUM_CONFIG_OPTIONS2 - 1), required22];
|
|
188562
|
-
}
|
|
188563
|
-
if (index22 < MAXIMUM_CONFIG_OPTIONS2 - 1) {
|
|
188564
|
-
return [...current2.slice(0, index22 + 1), required22, ...current2.slice(index22 + 1, MAXIMUM_CONFIG_OPTIONS2 - 1)];
|
|
188565
|
-
}
|
|
188566
|
-
const anchor22 = current2[index22];
|
|
188567
|
-
if (anchor22 === void 0) {
|
|
188568
|
-
throw new SessionConfigProtocolError2("The required Agent execution setting is unavailable");
|
|
188569
|
-
}
|
|
188570
|
-
return [...current2.slice(0, MAXIMUM_CONFIG_OPTIONS2 - 2), anchor22, required22];
|
|
188571
|
-
}
|
|
188572
|
-
function validRequiredSelect2(option) {
|
|
188573
|
-
return option.type === "select" && option.currentValue.length > 0 && option.values.some((value) => value.value === option.currentValue);
|
|
188574
|
-
}
|
|
188575
|
-
function ensureModelOption2(current2) {
|
|
188576
|
-
const existing = current2.find((option) => option.id === "model" || option.category === "model");
|
|
188577
|
-
if (existing !== void 0 && validRequiredSelect2(existing)) {
|
|
188578
|
-
return current2;
|
|
188579
|
-
}
|
|
188580
|
-
const unavailable = {
|
|
188581
|
-
booleanValue: false,
|
|
188582
|
-
category: "model",
|
|
188583
|
-
currentValue: AGENT_DEFAULT_REASONING_EFFORT2,
|
|
188584
|
-
description: "This Agent does not expose an adjustable model.",
|
|
188585
|
-
id: "model",
|
|
188586
|
-
name: "Model",
|
|
188587
|
-
type: "select",
|
|
188588
|
-
values: [
|
|
188589
|
-
{
|
|
188590
|
-
description: "Selected by the Agent",
|
|
188591
|
-
groupId: "",
|
|
188592
|
-
groupName: "",
|
|
188593
|
-
name: "Agent default",
|
|
188594
|
-
value: AGENT_DEFAULT_REASONING_EFFORT2
|
|
188595
|
-
}
|
|
188596
|
-
]
|
|
188597
|
-
};
|
|
188598
|
-
return insertRequiredOption2(
|
|
188599
|
-
current2.filter((option) => option.id !== "model" && option.category !== "model"),
|
|
188600
|
-
unavailable
|
|
188601
|
-
);
|
|
188602
|
-
}
|
|
188603
|
-
function ensureReasoningEffortOption2(current2) {
|
|
188604
|
-
const existing = current2.find((option) => option.id === "reasoning_effort" || option.category === "thought_level");
|
|
188605
|
-
if (existing !== void 0 && validRequiredSelect2(existing)) {
|
|
188606
|
-
return current2;
|
|
188607
|
-
}
|
|
188608
|
-
const unavailable = {
|
|
188609
|
-
booleanValue: false,
|
|
188610
|
-
category: "thought_level",
|
|
188611
|
-
currentValue: AGENT_DEFAULT_REASONING_EFFORT2,
|
|
188612
|
-
description: "This Agent does not expose adjustable reasoning effort for the selected model.",
|
|
188613
|
-
id: "reasoning_effort",
|
|
188614
|
-
name: "Reasoning effort",
|
|
188615
|
-
type: "select",
|
|
188616
|
-
values: [
|
|
188617
|
-
{
|
|
188618
|
-
description: "Selected by the Agent",
|
|
188619
|
-
groupId: "",
|
|
188620
|
-
groupName: "",
|
|
188621
|
-
name: "Agent default",
|
|
188622
|
-
value: AGENT_DEFAULT_REASONING_EFFORT2
|
|
188623
|
-
}
|
|
188624
|
-
]
|
|
188625
|
-
};
|
|
188626
|
-
return insertRequiredOption2(
|
|
188627
|
-
current2.filter((option) => option.id !== "reasoning_effort" && option.category !== "thought_level"),
|
|
188628
|
-
unavailable,
|
|
188629
|
-
"model"
|
|
188630
|
-
);
|
|
188631
|
-
}
|
|
188632
|
-
function ensureRequiredExecutionOptions2(current2, permission) {
|
|
188633
|
-
const normalized = ensureReasoningEffortOption2(ensureModelOption2(current2));
|
|
188634
|
-
const model = normalized.find(
|
|
188635
|
-
(option) => (option.id === "model" || option.category === "model") && validRequiredSelect2(option)
|
|
188636
|
-
);
|
|
188637
|
-
const reasoningEffort = normalized.find(
|
|
188638
|
-
(option) => (option.id === "reasoning_effort" || option.category === "thought_level") && validRequiredSelect2(option)
|
|
188639
|
-
);
|
|
188640
|
-
if (model === void 0 || reasoningEffort === void 0) {
|
|
188641
|
-
throw new SessionConfigProtocolError2("The required Agent execution settings are unavailable");
|
|
188642
|
-
}
|
|
188643
|
-
const optional22 = normalized.filter(
|
|
188644
|
-
(option) => option.id !== permission.id && option.category !== permission.category && option.id !== "model" && option.category !== "model" && option.id !== "reasoning_effort" && option.category !== "thought_level"
|
|
188645
|
-
);
|
|
188646
|
-
return [permission, model, reasoningEffort, ...optional22].slice(0, MAXIMUM_CONFIG_OPTIONS2);
|
|
188495
|
+
return normalized.slice(0, MAXIMUM_CONFIG_OPTIONS2);
|
|
188647
188496
|
}
|
|
188648
188497
|
function normalizeStandardLifecycle2(response) {
|
|
188649
188498
|
const lifecycle = isRecord43(response) ? response : {};
|
|
188650
|
-
return
|
|
188499
|
+
return normalizeConfigOptions2(lifecycle["configOptions"], lifecycle["modes"]);
|
|
188651
188500
|
}
|
|
188652
188501
|
function replaceStandardConfigOptions2(current2, value) {
|
|
188653
188502
|
const next = normalizeConfigOptions2(value, void 0);
|
|
188654
|
-
const withMode = next.some((option) => option.category === "mode") ? next : [...current2.filter((option) => option.category === "mode"), ...next].slice(0,
|
|
188655
|
-
return
|
|
188503
|
+
const withMode = next.some((option) => option.category === "mode") ? next : [...current2.filter((option) => option.category === "mode"), ...next].slice(0, MAXIMUM_CONFIG_OPTIONS2);
|
|
188504
|
+
return withMode;
|
|
188656
188505
|
}
|
|
188657
188506
|
function updateCurrentValue3(current2, configId, value) {
|
|
188658
188507
|
return current2.map((option) => option.id === configId ? { ...option, currentValue: value } : option);
|
|
@@ -188794,7 +188643,7 @@ function normalizeGrokLifecycle2(response) {
|
|
|
188794
188643
|
normalized.splice(modelIndex < 0 ? normalized.length : modelIndex + 1, 0, ...efforts);
|
|
188795
188644
|
}
|
|
188796
188645
|
}
|
|
188797
|
-
return
|
|
188646
|
+
return normalized.slice(0, 100);
|
|
188798
188647
|
}
|
|
188799
188648
|
function updateCurrentValue22(current2, category, value) {
|
|
188800
188649
|
return current2.map((option) => option.category === category ? { ...option, currentValue: value } : option);
|
|
@@ -190687,6 +190536,99 @@ async function resumeLocalMachine(arguments_, signal = new AbortController().sig
|
|
|
190687
190536
|
const installation = await openMobiusCliInstallation(signal, process.env);
|
|
190688
190537
|
return await target.resume(installation, signal, process.env);
|
|
190689
190538
|
}
|
|
190539
|
+
function selectValue2(name, value, description) {
|
|
190540
|
+
return {
|
|
190541
|
+
description,
|
|
190542
|
+
groupId: "",
|
|
190543
|
+
groupName: "",
|
|
190544
|
+
name,
|
|
190545
|
+
value
|
|
190546
|
+
};
|
|
190547
|
+
}
|
|
190548
|
+
function selectSetting2(id, name, description, currentValue, values) {
|
|
190549
|
+
return {
|
|
190550
|
+
booleanValue: false,
|
|
190551
|
+
category: "execution",
|
|
190552
|
+
currentValue,
|
|
190553
|
+
description,
|
|
190554
|
+
id,
|
|
190555
|
+
name,
|
|
190556
|
+
type: "select",
|
|
190557
|
+
values
|
|
190558
|
+
};
|
|
190559
|
+
}
|
|
190560
|
+
function selectedValue2(selection, configId) {
|
|
190561
|
+
if (selection.configId !== configId || selection.valueType !== "select" || selection.booleanValue || selection.value.length === 0) {
|
|
190562
|
+
throw new AgentSettingsConfigurationError2("The requested Agent setting is invalid");
|
|
190563
|
+
}
|
|
190564
|
+
return selection.value;
|
|
190565
|
+
}
|
|
190566
|
+
function validValue2(values, value) {
|
|
190567
|
+
if (!values.some((candidate) => candidate.value === value)) {
|
|
190568
|
+
throw new AgentSettingsConfigurationError2("The requested Agent setting is unavailable");
|
|
190569
|
+
}
|
|
190570
|
+
return value;
|
|
190571
|
+
}
|
|
190572
|
+
function openCodeConfiguration2(environment) {
|
|
190573
|
+
const encoded = environment["OPENCODE_CONFIG_CONTENT"];
|
|
190574
|
+
if (encoded === void 0 || encoded.length === 0) {
|
|
190575
|
+
return {};
|
|
190576
|
+
}
|
|
190577
|
+
let parsed;
|
|
190578
|
+
try {
|
|
190579
|
+
parsed = JSON.parse(encoded);
|
|
190580
|
+
} catch (cause) {
|
|
190581
|
+
throw new AgentSettingsConfigurationError2("The OpenCode configuration is invalid", { cause });
|
|
190582
|
+
}
|
|
190583
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
190584
|
+
throw new AgentSettingsConfigurationError2("The OpenCode configuration is invalid");
|
|
190585
|
+
}
|
|
190586
|
+
return Object.freeze({ ...parsed });
|
|
190587
|
+
}
|
|
190588
|
+
function openCodePermission2(value) {
|
|
190589
|
+
if (value === READ_ONLY_VALUE2) {
|
|
190590
|
+
return {
|
|
190591
|
+
"*": "deny",
|
|
190592
|
+
glob: "allow",
|
|
190593
|
+
grep: "allow",
|
|
190594
|
+
lsp: "allow",
|
|
190595
|
+
read: "allow",
|
|
190596
|
+
skill: "allow"
|
|
190597
|
+
};
|
|
190598
|
+
}
|
|
190599
|
+
if (value === WORKSPACE_WRITE_VALUE2) {
|
|
190600
|
+
return {
|
|
190601
|
+
"*": "allow",
|
|
190602
|
+
external_directory: "ask"
|
|
190603
|
+
};
|
|
190604
|
+
}
|
|
190605
|
+
return "allow";
|
|
190606
|
+
}
|
|
190607
|
+
function agentSettingsAdapterForAgent2(agentId) {
|
|
190608
|
+
if (agentId === "codex") {
|
|
190609
|
+
return codexAdapter2;
|
|
190610
|
+
}
|
|
190611
|
+
if (agentId === "deepseek-harness") {
|
|
190612
|
+
return deepSeekHarnessAdapter2;
|
|
190613
|
+
}
|
|
190614
|
+
if (agentId === "opencode") {
|
|
190615
|
+
return openCodeAdapter2;
|
|
190616
|
+
}
|
|
190617
|
+
return genericAdapter2;
|
|
190618
|
+
}
|
|
190619
|
+
function applyAgentLaunchSettings2(agent, selections) {
|
|
190620
|
+
const adapter = agentSettingsAdapterForAgent2(agent.id);
|
|
190621
|
+
let selectedAgent = agent;
|
|
190622
|
+
const sessionConfigurations = [];
|
|
190623
|
+
for (const selection of selections) {
|
|
190624
|
+
const applied = adapter.applyLaunchSelection(selectedAgent, selection);
|
|
190625
|
+
selectedAgent = applied.agent;
|
|
190626
|
+
if (!applied.handled) {
|
|
190627
|
+
sessionConfigurations.push(selection);
|
|
190628
|
+
}
|
|
190629
|
+
}
|
|
190630
|
+
return new AppliedAgentLaunchSettings2(selectedAgent, sessionConfigurations);
|
|
190631
|
+
}
|
|
190690
190632
|
function runtimeCredential2(relayUrl) {
|
|
190691
190633
|
return relayUrl.searchParams.get("token") ?? "";
|
|
190692
190634
|
}
|
|
@@ -190907,7 +190849,7 @@ function invalidResponse2(message) {
|
|
|
190907
190849
|
function isRecord102(value) {
|
|
190908
190850
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
190909
190851
|
}
|
|
190910
|
-
function
|
|
190852
|
+
function record23(value, name) {
|
|
190911
190853
|
if (!isRecord102(value)) {
|
|
190912
190854
|
throw invalidResponse2(`The service returned an invalid ${name}`);
|
|
190913
190855
|
}
|
|
@@ -190969,11 +190911,11 @@ function uploadingArtifact2(value) {
|
|
|
190969
190911
|
);
|
|
190970
190912
|
}
|
|
190971
190913
|
function decodeMobiusArtifactUpload2(value) {
|
|
190972
|
-
const artifact =
|
|
190914
|
+
const artifact = record23(value, "artifact upload authorization");
|
|
190973
190915
|
return new MobiusArtifactUpload2(uploadingArtifact2(artifact), stringField2(artifact, "uploadToken", 256));
|
|
190974
190916
|
}
|
|
190975
190917
|
function decodeMobiusArtifact2(value) {
|
|
190976
|
-
const artifact =
|
|
190918
|
+
const artifact = record23(value, "artifact");
|
|
190977
190919
|
const state = stringField2(artifact, "state", 32);
|
|
190978
190920
|
if (state === "uploading") {
|
|
190979
190921
|
return uploadingArtifact2(artifact);
|
|
@@ -191886,30 +191828,139 @@ async function resolveSessionDirectories2(directories, bindingId, directoryId22,
|
|
|
191886
191828
|
return new ResolvedSessionDirectories2(cwd, additionalDirectories, additionalDirectoryEntries);
|
|
191887
191829
|
}
|
|
191888
191830
|
async function discoverAgentSettings2(command, config22, directories, sessions, signal) {
|
|
191889
|
-
const resolved = await resolveSessionDirectories2(
|
|
191890
|
-
directories,
|
|
191891
|
-
config22.bindingId,
|
|
191892
|
-
command.directoryId,
|
|
191893
|
-
command.additionalDirectoryIds,
|
|
191894
|
-
signal
|
|
191895
|
-
);
|
|
191896
191831
|
const agent = config22.catalog.find(command.agentId);
|
|
191832
|
+
const cwd = await directories.resolve(config22.bindingId, "default", signal);
|
|
191897
191833
|
const snapshot = await sessions.inspectAgentSettings({
|
|
191898
|
-
additionalDirectories:
|
|
191834
|
+
additionalDirectories: [],
|
|
191899
191835
|
agent,
|
|
191900
|
-
cwd
|
|
191836
|
+
cwd,
|
|
191901
191837
|
signal
|
|
191902
191838
|
});
|
|
191839
|
+
const adapter = agentSettingsAdapterForAgent2(agent.id);
|
|
191840
|
+
const settings = settingsFromSnapshot2(agent, snapshot.configOptions);
|
|
191841
|
+
const modelEffort = await discoverModelEffort2(
|
|
191842
|
+
command,
|
|
191843
|
+
agent,
|
|
191844
|
+
adapter.modelEffortResolution,
|
|
191845
|
+
snapshot.configOptions,
|
|
191846
|
+
cwd,
|
|
191847
|
+
sessions,
|
|
191848
|
+
signal
|
|
191849
|
+
);
|
|
191903
191850
|
return {
|
|
191904
191851
|
agentId: command.agentId,
|
|
191905
191852
|
agentName: snapshot.agentName,
|
|
191906
191853
|
agentVersion: snapshot.agentVersion,
|
|
191907
|
-
configOptions: snapshot.configOptions,
|
|
191908
|
-
directoryId: command.directoryId,
|
|
191909
191854
|
kind: AGENT_SETTINGS_DISCOVERED_KIND2,
|
|
191910
|
-
|
|
191855
|
+
modelEffort,
|
|
191856
|
+
requestId: command.requestId,
|
|
191857
|
+
settings,
|
|
191858
|
+
settingsRevision: settingsRevision2(agent, snapshot.agentVersion, settings, modelEffort)
|
|
191859
|
+
};
|
|
191860
|
+
}
|
|
191861
|
+
function settingFromOption2(option) {
|
|
191862
|
+
return {
|
|
191863
|
+
booleanValue: option.booleanValue,
|
|
191864
|
+
category: option.category,
|
|
191865
|
+
defaultValue: option.type === "boolean" ? "" : option.currentValue,
|
|
191866
|
+
description: option.description,
|
|
191867
|
+
id: option.id,
|
|
191868
|
+
name: option.name,
|
|
191869
|
+
type: option.type,
|
|
191870
|
+
values: option.values
|
|
191871
|
+
};
|
|
191872
|
+
}
|
|
191873
|
+
function settingsFromSnapshot2(agent, configOptions) {
|
|
191874
|
+
const settings = [
|
|
191875
|
+
...agentSettingsAdapterForAgent2(agent.id).settings(agent).map(settingFromOption2),
|
|
191876
|
+
...configOptions.map(settingFromOption2)
|
|
191877
|
+
];
|
|
191878
|
+
const identifiers = /* @__PURE__ */ new Set();
|
|
191879
|
+
for (const setting of settings) {
|
|
191880
|
+
if (identifiers.has(setting.id)) {
|
|
191881
|
+
throw new AcpExecutionError2(
|
|
191882
|
+
"The Agent returned duplicate setting identifiers",
|
|
191883
|
+
{},
|
|
191884
|
+
"invalid_session_configuration"
|
|
191885
|
+
);
|
|
191886
|
+
}
|
|
191887
|
+
identifiers.add(setting.id);
|
|
191888
|
+
}
|
|
191889
|
+
if (settings.length > 128) {
|
|
191890
|
+
throw new AcpExecutionError2("The Agent returned too many settings", {}, "invalid_session_configuration");
|
|
191891
|
+
}
|
|
191892
|
+
return settings;
|
|
191893
|
+
}
|
|
191894
|
+
function modelOption2(options) {
|
|
191895
|
+
return options.find((option) => option.id === "model" || option.category === "model");
|
|
191896
|
+
}
|
|
191897
|
+
function effortOption2(options) {
|
|
191898
|
+
return options.find((option) => option.id === "reasoning_effort" || option.category === "thought_level");
|
|
191899
|
+
}
|
|
191900
|
+
function unavailableModelEffort2() {
|
|
191901
|
+
return {
|
|
191902
|
+
effortSettingId: "",
|
|
191903
|
+
modelSettingId: "",
|
|
191904
|
+
resolution: AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2,
|
|
191905
|
+
valuesByModel: {}
|
|
191911
191906
|
};
|
|
191912
191907
|
}
|
|
191908
|
+
async function discoverModelEffort2(command, agent, resolution, initialOptions, cwd, sessions, signal) {
|
|
191909
|
+
const model = modelOption2(initialOptions);
|
|
191910
|
+
const effort = effortOption2(initialOptions);
|
|
191911
|
+
if (resolution !== AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 && resolution !== AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2) {
|
|
191912
|
+
return unavailableModelEffort2();
|
|
191913
|
+
}
|
|
191914
|
+
if (model === void 0 || model.type !== "select" || model.values.length === 0 || effort === void 0 || effort.type !== "select" || effort.values.length < 2) {
|
|
191915
|
+
return unavailableModelEffort2();
|
|
191916
|
+
}
|
|
191917
|
+
const inspectModel = async (modelValue) => (await sessions.inspectAgentSettings({
|
|
191918
|
+
additionalDirectories: [],
|
|
191919
|
+
agent,
|
|
191920
|
+
cwd,
|
|
191921
|
+
model: modelValue,
|
|
191922
|
+
signal
|
|
191923
|
+
})).configOptions;
|
|
191924
|
+
const valuesByModel = {};
|
|
191925
|
+
if (resolution === "complete") {
|
|
191926
|
+
for (const value of model.values) {
|
|
191927
|
+
const selectedEffort = effortOption2(await inspectModel(value.value));
|
|
191928
|
+
valuesByModel[value.value] = selectedEffort?.type === "select" ? selectedEffort.values : [];
|
|
191929
|
+
}
|
|
191930
|
+
return {
|
|
191931
|
+
effortSettingId: effort.id,
|
|
191932
|
+
modelSettingId: model.id,
|
|
191933
|
+
resolution: "complete",
|
|
191934
|
+
valuesByModel
|
|
191935
|
+
};
|
|
191936
|
+
}
|
|
191937
|
+
if (command.model !== void 0) {
|
|
191938
|
+
if (!model.values.some((value) => value.value === command.model)) {
|
|
191939
|
+
throw new AcpExecutionError2("The selected Agent model is unavailable", {}, "invalid_session_configuration");
|
|
191940
|
+
}
|
|
191941
|
+
const selectedEffort = effortOption2(await inspectModel(command.model));
|
|
191942
|
+
valuesByModel[command.model] = selectedEffort?.type === "select" ? selectedEffort.values : [];
|
|
191943
|
+
}
|
|
191944
|
+
return {
|
|
191945
|
+
effortSettingId: effort.id,
|
|
191946
|
+
modelSettingId: model.id,
|
|
191947
|
+
resolution: "on_model_selection",
|
|
191948
|
+
valuesByModel
|
|
191949
|
+
};
|
|
191950
|
+
}
|
|
191951
|
+
function settingsRevision2(agent, reportedAgentVersion, settings, modelEffort) {
|
|
191952
|
+
const revisionModelEffort = modelEffort.resolution === AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 ? modelEffort : { ...modelEffort, valuesByModel: {} };
|
|
191953
|
+
return (0, import_node_crypto20.createHash)("sha256").update(
|
|
191954
|
+
JSON.stringify({
|
|
191955
|
+
adapterVersion: agent.adapterVersion,
|
|
191956
|
+
agentId: agent.id,
|
|
191957
|
+
agentVersion: agent.agentVersion,
|
|
191958
|
+
modelEffort: revisionModelEffort,
|
|
191959
|
+
reportedAgentVersion,
|
|
191960
|
+
settings
|
|
191961
|
+
})
|
|
191962
|
+
).digest("hex");
|
|
191963
|
+
}
|
|
191913
191964
|
async function executeWorkspaceList2(socket, command, directories, audit, signal) {
|
|
191914
191965
|
try {
|
|
191915
191966
|
const listing = await directories.list(command.bindingId, command.directoryId, signal);
|
|
@@ -192097,23 +192148,26 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192097
192148
|
"prompt_queue_target_unavailable"
|
|
192098
192149
|
);
|
|
192099
192150
|
}
|
|
192151
|
+
const appliedSettings = command.sessionConfigurations === void 0 ? void 0 : agentForSessionConfiguration2(agent, command.sessionConfigurations);
|
|
192152
|
+
const executionAgent = appliedSettings?.agent ?? agent;
|
|
192153
|
+
const sessionConfigurations = appliedSettings?.sessionConfigurations;
|
|
192100
192154
|
if (command.sessionConfigurations !== void 0) {
|
|
192101
192155
|
const prepared = await sessions.prepareExecutionSession({
|
|
192102
192156
|
additionalDirectories: resolved.additionalDirectories,
|
|
192103
|
-
agent,
|
|
192157
|
+
agent: executionAgent,
|
|
192104
192158
|
cwd: resolved.cwd,
|
|
192105
192159
|
sessionId: command.sessionId,
|
|
192106
192160
|
signal
|
|
192107
192161
|
});
|
|
192108
192162
|
if (command.disposition === SessionPromptDisposition2.Steer) {
|
|
192109
|
-
assertCompleteSessionConfiguration2(prepared.configOptions,
|
|
192163
|
+
assertCompleteSessionConfiguration2(prepared.configOptions, sessionConfigurations ?? []);
|
|
192110
192164
|
} else {
|
|
192111
192165
|
await applyCompleteSessionConfiguration2(
|
|
192112
192166
|
sessions,
|
|
192113
192167
|
audit,
|
|
192114
192168
|
prepared.configOptions,
|
|
192115
|
-
|
|
192116
|
-
|
|
192169
|
+
sessionConfigurations ?? [],
|
|
192170
|
+
executionAgent,
|
|
192117
192171
|
resolved.cwd,
|
|
192118
192172
|
resolved.additionalDirectories,
|
|
192119
192173
|
command.commandId,
|
|
@@ -192144,7 +192198,7 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192144
192198
|
if (command.disposition === SessionPromptDisposition2.Steer) {
|
|
192145
192199
|
await sessions.steerPrompt({
|
|
192146
192200
|
additionalDirectories: resolved.additionalDirectories,
|
|
192147
|
-
agent,
|
|
192201
|
+
agent: executionAgent,
|
|
192148
192202
|
commandId: command.commandId,
|
|
192149
192203
|
cwd: resolved.cwd,
|
|
192150
192204
|
images: attachments.images,
|
|
@@ -192158,7 +192212,7 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192158
192212
|
} else {
|
|
192159
192213
|
const result = await sessions.runPrompt({
|
|
192160
192214
|
additionalDirectories: resolved.additionalDirectories,
|
|
192161
|
-
agent,
|
|
192215
|
+
agent: executionAgent,
|
|
192162
192216
|
commandId: command.commandId,
|
|
192163
192217
|
cwd: resolved.cwd,
|
|
192164
192218
|
disposition: command.disposition,
|
|
@@ -192225,6 +192279,16 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192225
192279
|
function invalidSessionConfiguration2(message) {
|
|
192226
192280
|
return new AcpExecutionError2(message, {}, "invalid_session_configuration");
|
|
192227
192281
|
}
|
|
192282
|
+
function agentForSessionConfiguration2(agent, selections) {
|
|
192283
|
+
try {
|
|
192284
|
+
return applyAgentLaunchSettings2(agent, selections);
|
|
192285
|
+
} catch (error622) {
|
|
192286
|
+
if (error622 instanceof Error) {
|
|
192287
|
+
throw invalidSessionConfiguration2(error622.message);
|
|
192288
|
+
}
|
|
192289
|
+
throw error622;
|
|
192290
|
+
}
|
|
192291
|
+
}
|
|
192228
192292
|
function validateSessionConfigurationSelection2(option, selection) {
|
|
192229
192293
|
if (option.type !== selection.valueType) {
|
|
192230
192294
|
throw invalidSessionConfiguration2(`The Agent setting ${selection.configId} changed type`);
|
|
@@ -192282,20 +192346,17 @@ function sessionConfigurationMatches2(option, selection) {
|
|
|
192282
192346
|
return option.type === "boolean" ? option.booleanValue === selection.booleanValue : option.currentValue === selection.value;
|
|
192283
192347
|
}
|
|
192284
192348
|
function sessionConfigurationPriority2(selection, options) {
|
|
192285
|
-
if (selection.configId === "permission_mode") {
|
|
192286
|
-
return 0;
|
|
192287
|
-
}
|
|
192288
192349
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
192289
192350
|
if (selection.configId === "model" || option?.category === "model") {
|
|
192290
|
-
return
|
|
192351
|
+
return 0;
|
|
192291
192352
|
}
|
|
192292
192353
|
if (selection.configId === "reasoning_effort" || option?.category === "thought_level") {
|
|
192293
|
-
return
|
|
192354
|
+
return 1;
|
|
192294
192355
|
}
|
|
192295
192356
|
if (option?.category === "model_config") {
|
|
192296
|
-
return
|
|
192357
|
+
return 2;
|
|
192297
192358
|
}
|
|
192298
|
-
return
|
|
192359
|
+
return 3;
|
|
192299
192360
|
}
|
|
192300
192361
|
function assertCompleteSessionConfiguration2(options, selections) {
|
|
192301
192362
|
assertSessionConfigurationSchema2(options, selections);
|
|
@@ -192311,12 +192372,6 @@ function assertAppliedSessionConfiguration2(options, selections) {
|
|
|
192311
192372
|
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
192312
192373
|
for (const option of options) {
|
|
192313
192374
|
const selection = selectionsById.get(option.id);
|
|
192314
|
-
if (option.id === AGENT_PERMISSION_MODE_CONFIG_ID2) {
|
|
192315
|
-
if (selection === void 0 || !sessionConfigurationMatches2(option, selection)) {
|
|
192316
|
-
throw invalidSessionConfiguration2(`The Turn configuration does not match Agent setting ${option.id}`);
|
|
192317
|
-
}
|
|
192318
|
-
continue;
|
|
192319
|
-
}
|
|
192320
192375
|
if (selection === void 0 || !sessionConfigurationSelectionIsAvailable2(option, selection)) {
|
|
192321
192376
|
continue;
|
|
192322
192377
|
}
|
|
@@ -192337,61 +192392,56 @@ function unavailableSessionConfigurationCategory2(selection) {
|
|
|
192337
192392
|
async function applySessionConfigurationSelection2(sessions, audit, options, selection, agent, cwd, additionalDirectories, commandId, sessionId, signal) {
|
|
192338
192393
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
192339
192394
|
if (option === void 0) {
|
|
192340
|
-
|
|
192341
|
-
|
|
192342
|
-
|
|
192343
|
-
|
|
192344
|
-
|
|
192345
|
-
|
|
192346
|
-
|
|
192347
|
-
|
|
192348
|
-
|
|
192349
|
-
|
|
192350
|
-
|
|
192351
|
-
|
|
192352
|
-
|
|
192353
|
-
|
|
192354
|
-
|
|
192355
|
-
|
|
192356
|
-
|
|
192357
|
-
|
|
192358
|
-
|
|
192359
|
-
|
|
192360
|
-
|
|
192361
|
-
|
|
192362
|
-
|
|
192363
|
-
|
|
192364
|
-
|
|
192365
|
-
|
|
192366
|
-
|
|
192367
|
-
|
|
192368
|
-
|
|
192369
|
-
|
|
192370
|
-
|
|
192371
|
-
|
|
192372
|
-
|
|
192373
|
-
|
|
192374
|
-
|
|
192375
|
-
|
|
192376
|
-
|
|
192377
|
-
|
|
192378
|
-
|
|
192379
|
-
|
|
192380
|
-
|
|
192381
|
-
|
|
192382
|
-
|
|
192383
|
-
|
|
192384
|
-
|
|
192385
|
-
|
|
192386
|
-
|
|
192387
|
-
|
|
192388
|
-
|
|
192389
|
-
|
|
192390
|
-
option.category,
|
|
192391
|
-
"value_unavailable"
|
|
192392
|
-
);
|
|
192393
|
-
return options;
|
|
192394
|
-
}
|
|
192395
|
+
warnIgnoredSetting2(
|
|
192396
|
+
audit,
|
|
192397
|
+
"session_configuration_setting_ignored",
|
|
192398
|
+
commandId,
|
|
192399
|
+
sessionId,
|
|
192400
|
+
agent.id,
|
|
192401
|
+
selection,
|
|
192402
|
+
unavailableSessionConfigurationCategory2(selection),
|
|
192403
|
+
"setting_unavailable"
|
|
192404
|
+
);
|
|
192405
|
+
return options;
|
|
192406
|
+
}
|
|
192407
|
+
if (option.type !== selection.valueType) {
|
|
192408
|
+
warnIgnoredSetting2(
|
|
192409
|
+
audit,
|
|
192410
|
+
"session_configuration_setting_ignored",
|
|
192411
|
+
commandId,
|
|
192412
|
+
sessionId,
|
|
192413
|
+
agent.id,
|
|
192414
|
+
selection,
|
|
192415
|
+
option.category,
|
|
192416
|
+
"setting_schema_mismatch"
|
|
192417
|
+
);
|
|
192418
|
+
return options;
|
|
192419
|
+
}
|
|
192420
|
+
if (option.type === "boolean" && selection.value.length > 0 || option.type === "select" && selection.booleanValue) {
|
|
192421
|
+
warnIgnoredSetting2(
|
|
192422
|
+
audit,
|
|
192423
|
+
"session_configuration_setting_ignored",
|
|
192424
|
+
commandId,
|
|
192425
|
+
sessionId,
|
|
192426
|
+
agent.id,
|
|
192427
|
+
selection,
|
|
192428
|
+
option.category,
|
|
192429
|
+
"selection_schema_mismatch"
|
|
192430
|
+
);
|
|
192431
|
+
return options;
|
|
192432
|
+
}
|
|
192433
|
+
if (option.type === "select" && !option.values.some((value) => value.value === selection.value)) {
|
|
192434
|
+
warnIgnoredSetting2(
|
|
192435
|
+
audit,
|
|
192436
|
+
"session_configuration_setting_ignored",
|
|
192437
|
+
commandId,
|
|
192438
|
+
sessionId,
|
|
192439
|
+
agent.id,
|
|
192440
|
+
selection,
|
|
192441
|
+
option.category,
|
|
192442
|
+
"value_unavailable"
|
|
192443
|
+
);
|
|
192444
|
+
return options;
|
|
192395
192445
|
}
|
|
192396
192446
|
if (sessionConfigurationMatches2(option, selection)) {
|
|
192397
192447
|
return options;
|
|
@@ -192898,7 +192948,7 @@ async function runRelayConnection2(config22, directories, audit, sessions, insta
|
|
|
192898
192948
|
);
|
|
192899
192949
|
audit.record({
|
|
192900
192950
|
commandId: command2.requestId,
|
|
192901
|
-
details: { agentId: command2.agentId
|
|
192951
|
+
details: { agentId: command2.agentId },
|
|
192902
192952
|
event: "agent_settings_discovered",
|
|
192903
192953
|
sessionId: `agent-settings:${command2.agentId}`
|
|
192904
192954
|
});
|
|
@@ -193557,9 +193607,9 @@ async function createMobiusRuntimeEngine(connection, signal, environment = proce
|
|
|
193557
193607
|
)
|
|
193558
193608
|
);
|
|
193559
193609
|
}
|
|
193560
|
-
var import_node_path45, import_node_url3, import_node_fs13, import_node_child_process14, import_node_fs14, import_promises32, import_node_path46, import_node_os16, import_node_path47, import_node_child_process15, import_promises33, import_node_path48, import_node_url4, import_node_path49, import_node_fs15, import_node_path50, import_node_sqlite4, import_node_fs16, import_node_path51, import_node_sqlite5, import_promises34, import_node_os17, import_node_path52, import_undici9, import_promises35, import_node_path53, import_node_path54, import_node_path55, import_promises36, import_node_path56, import_promises37, import_node_path57, import_node_path58, import_node_crypto18, import_node_fs17, import_promises38, import_node_path59, import_undici10, import_undici11, import_node_path60, import_node_path61, import_node_child_process16, import_node_path62, import_node_path63, import_node_crypto19, import_promises39, import_node_path64, import_node_crypto20, import_node_path65, import_node_util7, import_undici12, import_undici13, import_node_fs18, import_node_path66, import_node_fs19, import_promises40, import_node_path67, import_node_url5, import_node_crypto21, import_undici14, import_promises41, import_node_os18, import_node_path68, import_node_crypto22, import_node_path69, import_node_child_process17, import_node_crypto23, import_undici15, import_undici16, import_node_crypto24, import_node_fs20, import_node_path70, import_node_sqlite6, import_promises42, import_node_path71, __defProp3, __export3, createAcpClient2, external_exports4, core_exports23, util_exports4, Cached4, EVALUATING4, captureStackTrace4, allowsEval4, getParsedType4, propertyKeyTypes4, primitiveTypes4, NUMBER_FORMAT_RANGES4, BIGINT_FORMAT_RANGES4, highSurrogate4, Class4, installing4, broke4, breaker4, CONSTANT_CATCH4, _a7, NEVER4, _zodDesc4, _E4, $brand4, $ZodAsyncError4, $ZodEncodeError4, globalConfig4, _messageDesc4, _issuesDesc4, _installedToString4, initializer6, $ZodError4, $ZodRealError4, _parse6, parse7, _parseAsync6, parseAsync6, _safeParse4, safeParse6, _safeParseAsync4, safeParseAsync6, COMPILE_INVALID4, COMPILE_FALLBACK4, validate4, validateAsync6, _encode6, encode7, _decode6, decode10, _encodeAsync6, encodeAsync6, _decodeAsync6, decodeAsync6, _safeEncode4, safeEncode6, _safeDecode4, safeDecode6, _safeEncodeAsync4, safeEncodeAsync6, _safeDecodeAsync4, safeDecodeAsync6, regexes_exports4, cuid7, cuid26, ulid6, xid6, ksuid6, nanoid6, duration6, extendedDuration4, guid6, uuid9, uuid44, uuid64, uuid74, email6, html5Email4, rfc5322Email4, unicodeEmail4, idnEmail4, browserEmail4, _emoji6, ipv46, ipv66, mac6, cidrv46, cidrv66, base646, base64url6, hostname9, domain4, httpProtocol4, e1646, creditCard6, iban6, dateSource4, date10, anyString4, string11, bigint8, integer4, number8, boolean8, _null8, _undefined8, lowercase4, uppercase4, hex6, md5_hex4, md5_base644, md5_base64url4, sha1_hex4, sha1_base644, sha1_base64url4, sha256_hex4, sha256_base644, sha256_base64url4, sha384_hex4, sha384_base644, sha384_base64url4, sha512_hex4, sha512_base644, sha512_base64url4, $ZodCheck4, _whenHasSize4, _whenHasLength4, numericOriginMap4, $ZodCheckLessThan4, $ZodCheckGreaterThan4, $ZodCheckMultipleOf4, $ZodCheckNumberFormat4, $ZodCheckBigIntFormat4, $ZodCheckMaxSize4, $ZodCheckMinSize4, $ZodCheckSizeEquals4, $ZodCheckMaxLength4, $ZodCheckMinLength4, $ZodCheckLengthEquals4, $ZodCheckStringFormat4, $ZodCheckRegex4, $ZodCheckLowerCase4, $ZodCheckUpperCase4, $ZodCheckIncludes4, $ZodCheckStartsWith4, $ZodCheckEndsWith4, $ZodCheckProperty4, $ZodCheckMimeType4, $ZodCheckOverwrite4, Doc4, version4, $ZodType4, toStandardResult4, $ZodString4, $ZodStringFormat4, $ZodGUID4, $ZodUUID4, $ZodEmail4, URL_BAD_FORMAT4, URL_UNPARSEABLE4, asciiTabOrNewline4, $ZodURL4, $ZodEmoji4, $ZodNanoID4, $ZodCUID5, $ZodCUID24, $ZodULID4, $ZodXID4, $ZodKSUID4, $ZodISODateTime4, $ZodISODate4, $ZodISOTime4, $ZodISODuration4, $ZodIPv44, ipv6Alphabet4, $ZodIPv64, $ZodMAC4, $ZodCIDRv44, $ZodCIDRv64, base64Charset4, $ZodBase644, base64urlCharset4, $ZodBase64URL4, $ZodE1644, CC_SANITIZE4, $ZodCreditCard4, $ZodIBAN4, $ZodJWT4, $ZodCustomStringFormat4, $ZodNumber4, $ZodNumberFormat4, $ZodBoolean4, $ZodBigInt4, $ZodBigIntFormat4, $ZodSymbol4, $ZodUndefined4, $ZodNull4, $ZodAny4, $ZodUnknown4, $ZodNever4, $ZodVoid4, $ZodDate4, $ZodArray4, NO_SYMBOL_KEYS4, $ZodObject4, $ZodObjectJIT4, $ZodUnion4, $ZodXor4, $ZodDiscriminatedUnion4, $ZodIntersection4, $ZodTuple4, $ZodRecord4, $ZodMap4, $ZodSet4, $ZodEnum4, $ZodLiteral4, $ZodFile4, $ZodTransform4, $ZodOptional4, $ZodExactOptional4, $ZodNullable4, $ZodDefault4, $ZodPrefault4, $ZodNonOptional4, $ZodSuccess4, $ZodCatch4, $ZodNaN4, $ZodPipe4, $ZodCodec4, $ZodPreprocess4, $ZodReadonly4, $ZodTemplateLiteral4, $ZodFunction4, $ZodPromise4, $ZodLazy4, $ZodCustom4, $ZodProperties2, $ZodCyclicError4, STATE4, NO_ISSUES4, recursive4, NONE4, ASSUMED4, PROVEN4, handoff4, open9, memo4, locales_exports4, error131, error211, error311, error411, error511, error610, error710, error810, error910, error1010, error1110, error1210, error133, error143, error153, error163, error173, error183, error193, error203, error213, error223, error233, error243, error253, error263, error273, error283, error293, error303, error313, error323, capitalizeFirstCharacter4, error333, error343, error353, error363, error373, error383, error393, error403, error413, error423, error433, error443, error453, error463, error473, error483, error493, error503, error513, error523, error533, error543, error553, error563, error573, error583, error593, error603, error613, _a23, $output4, $input4, $ZodRegistry4, globalRegistry4, INVALID4, FALLBACK_FLAG4, ZodCompileAsyncError4, ZodCompileUnsupportedError4, WHEN_DEFAULTED_CHECKS4, PATTERN_IS_COMPLETE4, TimePrecision4, FOLDABLE_KEYS4, UNION_KEYS4, createToJSONSchemaMethod4, createStandardJSONSchemaMethod4, narrowMin4, narrowMax4, narrowBoth4, addDivisor4, addPattern4, intersectMime4, setFormat4, minContributor4, maxContributor4, formatContributor4, contributors4, formatMap4, exactPatterns4, exactPattern4, stringProcessor4, numberProcessor4, booleanProcessor4, bigintProcessor4, symbolProcessor4, nullProcessor4, undefinedProcessor4, voidProcessor4, neverProcessor4, anyProcessor4, unknownProcessor4, dateProcessor4, enumProcessor4, literalProcessor4, nanProcessor4, templateLiteralProcessor4, fileProcessor4, successProcessor4, customProcessor4, functionProcessor4, transformProcessor4, mapProcessor4, setProcessor4, arrayProcessor4, objectProcessor4, propertiesProcessor2, unionProcessor4, intersectionProcessor4, tupleProcessor4, pendingRecords4, recordProcessor4, nullableProcessor4, nonoptionalProcessor4, UNREPRESENTABLE_DEFAULT4, defaultProcessor4, prefaultProcessor4, catchProcessor4, pipeProcessor4, readonlyProcessor4, promiseProcessor4, optionalProcessor4, lazyProcessor4, allProcessors4, JSONSchemaGenerator4, json_schema_exports4, schemas_exports23, checks_exports23, _installedErrorProtos4, initializer23, ZodError4, ZodRealError4, parse23, parseAsync23, safeParse23, safeParseAsync23, encode23, decode23, encodeAsync23, decodeAsync23, safeEncode23, safeDecode23, safeEncodeAsync23, safeDecodeAsync23, ZodType4, _ZodString4, ZodString4, ZodStringFormat4, ZodISODateTime4, ZodISODate4, ZodISOTime4, ZodISODuration4, ZodEmail4, ZodGUID4, ZodUUID4, ZodURL4, ZodEmoji4, ZodNanoID4, ZodCUID5, ZodCUID24, ZodULID4, ZodXID4, ZodKSUID4, ZodIPv44, ZodMAC4, ZodIPv64, ZodCIDRv44, ZodCIDRv64, ZodBase644, ZodBase64URL4, ZodE1644, ZodCreditCard4, ZodIBAN4, ZodJWT4, ZodCustomStringFormat4, ZodNumber4, ZodNumberFormat4, ZodBoolean4, ZodBigInt4, ZodBigIntFormat4, ZodSymbol4, ZodUndefined4, ZodNull4, ZodAny4, ZodUnknown4, ZodNever4, ZodVoid4, ZodDate4, ZodArray4, ZodObject4, ZodUnion4, ZodXor4, ZodDiscriminatedUnion4, ZodIntersection4, ZodTuple4, ZodRecord4, ZodMap4, ZodSet4, ZodEnum4, ZodLiteral4, ZodFile4, ZodTransform4, ZodOptional4, ZodExactOptional4, ZodNullable4, ZodDefault4, ZodPrefault4, ZodNonOptional4, ZodSuccess4, ZodCatch4, ZodNaN4, ZodPipe4, ZodCodec4, ZodPreprocess4, ZodReadonly4, ZodTemplateLiteral4, ZodLazy4, ZodPromise4, ZodFunction4, ZodCustom4, ZodProperties2, describe23, meta23, ZodInstanceOf4, stringbool4, ZodIssueCode4, ZodFirstPartyTypeKind4, iso_exports4, z4, RECOGNIZED_KEYS4, SCHEMA_KEYWORDS4, SCHEMA_MAP_KEYWORDS4, fullTime4, RESOLVING4, coerce_exports4, TOKEN_COUNT2, promptUsageSchema2, quotaTokenCountSchema2, promptMetadataSchema2, agentPromptResponseSchema2, WORKSPACE_LIST_KIND2, WORKSPACE_ENTRIES_KIND2, SESSION_PREPARE_KIND2, SESSION_READY_KIND2, SESSION_CONFIGURE_KIND2, SESSION_CONFIG_UPDATED_KIND2, SESSION_USAGE_UPDATED_KIND2, SESSION_COMMANDS_UPDATED_KIND2, SESSION_INFO_UPDATED_KIND2, SESSION_PERMISSION_REQUESTED_KIND2, SESSION_PERMISSION_RESPOND_KIND2, SESSION_PERMISSION_RESOLVED_KIND2, SESSION_ELICITATION_REQUESTED_KIND2, SESSION_ELICITATION_RESPOND_KIND2, SESSION_ELICITATION_RESOLVED_KIND2, SESSION_OPERATION_FAILED_KIND2, AGENT_CONTENT_KIND2, AGENT_INSTALL_REQUEST_KIND2, AGENT_INSTALL_CANCEL_KIND2, AGENT_INSTALL_STARTED_KIND2, AGENT_INSTALL_PROGRESS_KIND2, AGENT_INSTALL_COMPLETED_KIND2, AGENT_INSTALL_FAILED_KIND2, AGENT_INSTALL_CANCELLED_KIND2, AGENT_SETTINGS_DISCOVER_KIND2, AGENT_SETTINGS_DISCOVERED_KIND2, AGENT_SETTINGS_DISCOVERY_FAILED_KIND2, FILE_READ_KIND2, FILE_BEGIN_KIND2, FILE_CHUNK_KIND2, FILE_END_KIND2, FILE_FAILED_KIND2, IDENTIFIER_PATTERN5, DIRECTORY_IDENTIFIER_PATTERN3, IDENTIFIER2, DIRECTORY_IDENTIFIER2, SHORT_TEXT2, LONG_TEXT2, workspaceEntrySchema2, fileReadCommandSchema2, fileBeginEventSchema2, fileChunkEventSchema2, fileEndEventSchema2, fileFailedEventSchema2, configValueSchema2, sessionConfigOptionSchema2, sessionConfigOptionsSchema2, agentSettingsDiscoverCommandSchema2, agentSettingsDiscoveredEventSchema2, agentSettingsDiscoveryFailedEventSchema2, sessionConfigurationSelectionSchema2, AGENT_DEFAULT_EXECUTION_SETTING2, AGENT_PERMISSION_MODE_CONFIG_ID2, AGENT_PERMISSION_MODES2, agentExecutionConfigurationSchema2, DEFAULT_AGENT_EXECUTION_CONFIGURATION2, sessionConfigurationSelectionsSchema2, sessionCapabilitiesSchema2, sessionCommandSchema2, permissionOptionSchema2, elicitationOptionSchema2, elicitationFieldSchema2, displayContentSchema2, recordedDisplayContentSchema2, promptImageSchema2, promptResourceSchema2, workspaceListCommandSchema2, workspaceEntriesEventSchema2, sessionIdentityFields2, sessionPrepareCommandSchema2, runtimeTimingsSchema2, sessionReadyEventSchema2, sessionConfigureCommandSchema2, sessionConfigUpdatedEventSchema2, sessionContextUsageUpdatedEventSchema2, sessionPromptUsageUpdatedEventSchema2, sessionUsageUpdatedEventSchema2, sessionCommandsUpdatedEventSchema2, sessionInfoUpdatedEventSchema2, sessionPermissionRequestedEventSchema2, sessionPermissionRespondCommandSchema2, sessionPermissionResolvedEventSchema2, sessionElicitationRequestedEventSchema2, sessionElicitationRespondCommandSchema2, sessionElicitationResolvedEventSchema2, sessionOperationFailedEventSchema2, agentContentEventSchema2, agentInstallIdentityFields2, agentInstallRequestCommandSchema2, agentInstallCancelCommandSchema2, agentInstallStartedEventSchema2, installationStageSchema2, agentInstallProgressEventSchema2, agentInstallCompletedEventSchema2, agentInstallFailedEventSchema2, agentInstallCancelledEventSchema2, decodeAgentDisplayContentValue2, decodeRecordedAgentContentValue2, decodePromptImagesValue2, decodePromptResourcesValue2, decodeSessionConfigurationSelections2, encode33, decodeAgentSettingsDiscoverCommand2, encodeAgentSettingsDiscoveredEvent2, encodeAgentSettingsDiscoveryFailedEvent2, decodeFileReadCommand2, encodeFileBeginEvent2, encodeFileChunkEvent2, encodeFileEndEvent2, encodeFileFailedEvent2, decodeWorkspaceListCommand2, encodeWorkspaceEntriesEvent2, decodeSessionPrepareCommand2, encodeSessionReadyEvent2, decodeSessionConfigureCommand2, encodeSessionConfigUpdatedEvent2, encodeSessionUsageUpdatedEvent2, encodeSessionCommandsUpdatedEvent2, encodeSessionInfoUpdatedEvent2, encodeSessionPermissionRequestedEvent2, decodeSessionPermissionRespondCommand2, encodeSessionPermissionResolvedEvent2, encodeSessionElicitationRequestedEvent2, decodeSessionElicitationRespondCommand2, encodeSessionElicitationResolvedEvent2, encodeSessionOperationFailedEvent2, encodeAgentContentEvent2, decodeAgentInstallRequestCommand2, decodeAgentInstallCancelCommand2, encodeAgentInstallStartedEvent2, encodeAgentInstallProgressEvent2, encodeAgentInstallCompletedEvent2, encodeAgentInstallFailedEvent2, encodeAgentInstallCancelledEvent2, SESSION_PROMPT_KIND2, SESSION_CANCEL_KIND2, RUNTIME_LIVENESS_READY_KIND2, RUNTIME_HEARTBEAT_KIND2, RUNTIME_HEARTBEAT_ACK_KIND2, RUNTIME_DELIVERY_KIND2, RUNTIME_DELIVERY_RECEIVED_KIND2, RUNTIME_DELIVERY_COMMITTED_KIND2, SESSION_STARTED_KIND2, AGENT_MESSAGE_DELTA_KIND2, AGENT_ACTIVITY_KIND2, AGENT_ACTIVITY_DETAIL_LIMIT2, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT2, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT2, AGENT_ACTIVITY_LOCATION_LIMIT2, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT2, SESSION_COMPLETED_KIND2, SESSION_FAILED_KIND2, SessionPromptDisposition2, IDENTIFIER_PATTERN22, DIRECTORY_IDENTIFIER_PATTERN22, MAX_PROMPT_LENGTH2, MAX_PROMPT_ATTACHMENT_LENGTH2, MAX_EVENT_TEXT_LENGTH2, MAX_RUNTIME_DELIVERY_PAYLOAD_LENGTH2, ACTIVITY_TYPES2, ACTIVITY_STATUSES2, TOOL_KINDS2, ProtocolMessageError2, MOBIUS_API_PREFIX2, API_PREFIX_PATTERN2, MobiusApiConfigurationError2, SESSION_HISTORY_CHARACTER_LIMIT2, SESSION_HISTORY_MESSAGE_LIMIT2, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT2, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT2, historyImage2, historyMessage2, sessionHistorySchema2, NATIVE_SESSION_REQUEST_KIND2, NATIVE_SESSION_RESULT_KIND2, NATIVE_SESSION_CANCEL_KIND2, NATIVE_SESSION_TURN_FORK_REQUEST_KIND2, NATIVE_SESSION_TURN_FORK_KIND2, identifier2, directoryId2, envelope2, identity2, turnForkIdentity2, nativeSessionTurnForkRequestSchema2, nativeSessionTurnForkCommandSchema2, nativeSessionCommandSchema2, nativeSessionEntrySchema2, resultEnvelope2, nativeSessionResultSchema2, nativeSessionCancelSchema2, decodeNativeSessionCommand2, encodeNativeSessionResult2, decodeNativeSessionCancel2, decodeNativeSessionTurnForkCommand2, SESSION_EVENT_KIND2, SESSION_EVENT_ACK_KIND2, SESSION_EVENT_COMMITTED_KIND2, SESSION_EVENT_DEFERRED_KIND2, SESSION_EVENT_REJECTED_KIND2, SessionEventRejectionCode2, IDENTIFIER_PATTERN32, CURSOR_PATTERN2, MAX_RECORDED_EVENT_LENGTH2, DECIMAL_SEQUENCE_PATTERN2, eventSourceSchema2, eventEnvelopeSchema2, committedEventSchema2, eventAcknowledgementSchema2, eventDeferredSchema2, eventRejectionSchema2, encode42, decodeSessionEventEnvelope2, encodeSessionEventEnvelope2, decodeSessionEventAcknowledgement2, decodeSessionEventDeferred2, decodeSessionEventRejection2, DEFAULT_OUTPUT_LIMIT_BYTES2, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS2, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS2, PROCESS_TABLE_TIMEOUT_MILLISECONDS2, PROCESS_TABLE_OUTPUT_LIMIT_BYTES2, PROCESS_EXIT_CHECK_ATTEMPTS2, GRACEFUL_STOP_SIGNAL2, FORCED_STOP_SIGNAL2, ExecutableIdentity2, ResolvedExecutable2, ProcessExecutionError2, ProcessResult2, AGENT_DEFAULT_PERMISSION_MODE2, READ_ONLY_PERMISSION_MODE2, WORKSPACE_WRITE_PERMISSION_MODE2, DANGER_FULL_ACCESS_PERMISSION_MODE2, PERMISSION_MODE_CONFIG_ID2, PERMISSION_MODE_MARKER2, AgentPermissionConfigurationError2, AgentPermissionProfile2, AgentManagedPermissionProfile2, PiPermissionProfile2, adjustablePermissionValues2, DeepSeekHarnessPermissionProfile2, OpenCodePermissionProfile2, agentManagedPermissionProfile2, deepSeekHarnessPermissionProfile2, openCodePermissionProfile2, piPermissionProfile2, LocalAgentDefinition2, InstallableAgentDefinition2, MissingAgentDefinition2, AgentIntegrationDefinition2, LocalAgentCatalogSnapshot2, LocalAgentCatalogError2, LocalAgentCatalog2, DaemonLocalContext2, DaemonReconnectTarget2, OpaqueDaemonReconnectTarget2, ChannelDaemonReconnectTarget2, MAX_LOCAL_RASTER_BYTES2, MAX_INLINE_RASTER_BYTES2, PNG_SIGNATURE2, JPEG_SIGNATURE2, GIF87_SIGNATURE2, GIF89_SIGNATURE2, RIFF_SIGNATURE2, WEBP_SIGNATURE2, LocalRasterImage2, MAX_INLINE_VIDEO_BYTES2, MP4_FILE_TYPE2, WEBM_SIGNATURE2, LocalVideo2, AccumulatingOperationMetrics2, unmeasuredOperationMetrics2, IMAGE_MARKER2, TRUNCATION_MARKER2, AcpActivity2, ActivityIdentity2, AcpActivityTracker2, emptyOptions3, characterEntities3, own23, hasOwnProperty3, asciiAlpha3, asciiAlphanumeric3, asciiAtext3, asciiDigit3, asciiHexDigit3, asciiPunctuation3, unicodePunctuation3, unicodeWhitespace3, content5, document5, containerConstruct3, attention3, autolink3, blankLine3, blockQuote3, characterEscape3, characterReference3, nonLazyContinuation3, codeFenced3, codeIndented3, furtherStart3, codeText3, SpliceBuffer3, content22, continuationConstruct3, definition3, titleBefore3, hardBreakEscape3, headingAtx3, htmlBlockNames3, htmlRawNames3, htmlFlow3, blankLineBefore3, nonLazyContinuationStart3, htmlText3, labelEnd3, resourceConstruct3, referenceFullConstruct3, referenceCollapsedConstruct3, labelStartImage3, labelStartLink3, lineEnding3, thematicBreak3, list3, listItemPrefixWhitespaceConstruct3, indentConstruct3, setextUnderline3, flow5, resolver3, string43, text5, constructs_exports3, document23, contentInitial3, flowInitial3, flow22, string52, text22, insideSpan3, attentionMarkers3, disable3, search3, characterEscapeOrReference3, own32, convert3, empty3, CONTINUE3, EXIT3, SKIP3, path5, title2, nativeSessionIdSchema2, nativeSessionInfoSchema2, nativeSessionPageSchema2, AGENT_DEFAULT_REASONING_EFFORT2, MAXIMUM_CONFIG_OPTIONS2, SessionConfigProtocolError2, StandardSessionConfigProtocol2, standardSessionConfigProtocol2, LEGACY_MODEL_CONFIG_ID2, LEGACY_REASONING_EFFORT_CONFIG_ID2, GrokBuildSessionConfigProtocol2, grokBuildSessionConfigProtocol2, AcpHistoryReplay2, AcpStoredSession2, AcpStoredSessionLookup2, MissingAcpStoredSession2, FoundAcpStoredSession2, DeletedAcpStoredSession2, MemoryAcpSessionStore2, SqliteAcpSessionStore2, PROCESS_STOP_TIMEOUT_MILLISECONDS2, MAX_ACP_PROCESSES2, MAX_PRE_SESSION_UPDATES2, MAX_PRE_SESSION_UPDATE_BYTES2, SESSION_CONTROL_COMMAND_ID2, SESSION_CONTROL_TIMEOUT_MILLISECONDS2, NullAcpSessionObserver2, AcpPreparedSession2, AcpAgentSettingsSnapshot2, AcpExecutionError2, RetryableAcpInitializationError2, AcpProcessCapacityLease2, AcpProcessCapacityWaiter2, AcpProcessCapacityLock2, AcpTurnState2, IdleAcpTurn2, RunningAcpTurn2, PendingPermission2, PendingElicitation2, AcpProcessSession2, AcpProcessEvictionCandidate2, MissingAcpProcessEvictionCandidate2, FoundAcpProcessEvictionCandidate2, FoundAcpSessionProcessEvictionCandidate2, FoundAcpNativeBrowserProcessEvictionCandidate2, AcpSessionManager2, AuditStore2, LocalAuthorizationError2, AgentDiscovery2, AvailableAgent2, UnavailableAgent2, UnavailableInstalledAgent2, MissingAdapter2, MissingAgent2, AgentProbeFailed2, IntegrationProbeFailed2, IncompatibleAdapter2, AuthenticationRequiredAgent2, LocalAgentInventory2, INSTALL_TIMEOUT_MILLISECONDS2, PACKAGE_METADATA_LIMIT_BYTES2, PACKAGE_LOCK_LIMIT_BYTES2, ManagedNpmPackageDefinition2, SriManagedNpmPackageDefinition2, SriManagedNpmDependencyDefinition2, ManagedNpmPackageError2, ManagedNpmPackageInstaller2, VERSION_PROBE_TIMEOUT_MILLISECONDS2, ACP_PROBE_TIMEOUT_MILLISECONDS3, LocalAgentSpecification2, DirectAcpAgentDefinition2, BridgedAcpAgentDefinition2, ClaudeCodeAgentSpecification2, CodexAgentSpecification2, AgentProbeError2, COPILOT_CLI_TESTED_VERSION2, CopilotCliAgentSpecification2, CURSOR_CLI_TESTED_VERSION2, CursorCliAgentSpecification2, DeepSeekHarnessManagedPackage2, DEEPSEEK_HARNESS_PACKAGE2, DeepSeekHarnessAgentSpecification2, GEMINI_CLI_TESTED_VERSION2, GeminiCliAgentSpecification2, GROK_BUILD_MANAGED_VERSION2, GrokBuildManagedPackage2, GROK_DARWIN_ARM64_PACKAGE2, GROK_DARWIN_X64_PACKAGE2, GROK_LINUX_ARM64_PACKAGE2, GROK_LINUX_X64_PACKAGE2, GrokBuildAgentSpecification2, HERMES_TESTED_VERSION2, HermesAgentSpecification2, configuredHttpProxy2, configuredHttpsProxy2, environmentProxyDispatcher2, ARCHIVE_DOWNLOAD_LIMIT_BYTES2, ARCHIVE_DOWNLOAD_TIMEOUT_MILLISECONDS2, MANIFEST_LIMIT_BYTES2, ManagedAgentArchiveDefinition2, ZipManagedAgentArchiveDefinition2, TarGzipManagedAgentArchiveDefinition2, ManagedAgentArchiveError2, OPENCODE_MANAGED_VERSION2, OpenCodeAgentSpecification2, PI_ACP_PACKAGE2, PI_AGENT_PACKAGE2, ACP_PROBE_TIMEOUT_MILLISECONDS22, PiAgentSpecification2, WORKBUDDY_MANAGED_VERSION2, WorkBuddyManagedPackage2, WORKBUDDY_MANAGED_PACKAGE2, WORKBUDDY_MACOS_EXECUTABLE_PATH2, WorkBuddyAgentSpecification2, ACP_OUTPUT_LIMIT_BYTES2, VerifiedAcpReadiness2, DiscoveryAcpHandler2, ManagedAdapterInstallError2, ManagedAdapterInstaller2, VerifiedAgentExecutable2, APPLICATION_ID_PATTERN2, CONNECTION_ID_PATTERN2, INSTALLATION_ID_PATTERN2, IDENTIFIER_PATTERN42, RUNTIME_CREDENTIAL_PATTERN3, MAX_FILE_LENGTH2, INSTALLATION_POINTER_KEYS2, CHANNEL_INDEX_KEYS2, VERIFIED_CONNECTION_KEYS2, IMPORTED_LEGACY_CONNECTION_KEYS2, CURRENT_CONNECTION_KEYS2, LEGACY_CONNECTION_KEYS2, RuntimeInstallationStoreError2, StoredRuntimeConnection2, VerifiedRuntimeConnection2, ImportedLegacyRuntimeConnection2, RuntimeInstallationStore2, PAIRING_TIMEOUT_MILLISECONDS, PAIRING_CODE_PATTERN, IDENTIFIER_PATTERN52, TOKEN_PATTERN, CLAIM_RESPONSE_KEYS, REDEEM_RESPONSE_KEYS, MOBIUS_CLI_APPLICATION_ID, PairingClientError2, ResumeCommandTarget, ConnectionResumeCommandTarget, LegacyChannelResumeCommandTarget, CATALOG_UPDATE_TIMEOUT_MILLISECONDS2, AgentCatalogPublishError2, INSTALLATION_DEADLINE_MILLISECONDS2, AgentInstallation2, RequestedInstallation2, RunningInstallation2, SucceededInstallation2, FailedInstallation2, CancelledInstallation2, InstallationManagerError2, NullInstallationAudit2, InstallationJob2, AgentInstallationManager2, FixedInstallationExecutor2, CHUNK_BYTES2, MobiusError2, MobiusProtocolError2, MobiusValidationError2, IDENTIFIER_PATTERN62, MobiusArtifactUploadRequest2, MobiusArtifact2, MobiusUploadingArtifact2, MobiusArtifactUpload2, MobiusAvailableArtifact2, MobiusExpiredArtifact2, MobiusRuntimePairingLifecycle2, UPLOAD_TIMEOUT_MILLISECONDS2, RuntimeArtifactUploadError2, UploadedRuntimeArtifact2, WorkspaceDirectoryListing2, WorkspaceDirectoryService2, responseSchema2, threadSchema2, turnsSchema2, itemTypeSchema2, userMessageSchema2, textSchema2, imageSchema2, agentMessageSchema2, NativeSessionService2, ARTIFACT_SCHEME2, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS2, MAX_AGENT_IMAGE_BASE64_LENGTH2, MAX_AGENT_RESOURCE_BYTE_LENGTH2, IDENTIFIER_PATTERN72, PromptArtifactError2, ResolvedPromptArtifacts2, PromptArtifactReference2, CONNECTION_TIMEOUT_MILLISECONDS2, RelayConnectionError2, MAX_DIAGNOSTIC_TEXT_LENGTH2, RelayConnectionDiagnostics2, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS2, HEARTBEAT_INTERVAL_MILLISECONDS2, RelayLivenessState2, UnsupportedRelayLivenessState2, AwaitingHeartbeatAckState2, WaitingForHeartbeatState2, FinishedRelayLivenessState2, RelayConnectionLiveness2, DEFAULT_OUTBOX_LIMITS2, SessionEventOutboxCapacityError2, RuntimeDeliveryInboxCapacityError2, StoredRuntimeDelivery2, SessionEventOutbox2, SystemDaemonTimer2, systemDaemonTimer2, RELAY_RECONNECT_DELAY_MILLISECONDS2, AGENT_ACTIVITY_COALESCING_MILLISECONDS2, ACTIVE_TURN_RECONCILIATION_TIMEOUT_MILLISECONDS2, ACTIVE_TURN_RECONCILIATION_CLOSE_CODE2, DaemonAcpObserver2, AuditInstallationEvents2, DaemonInstallationObserver2, ResolvedSessionDirectories2, ActiveDaemonTurn2, ActiveTurnReconciliationError2, DaemonSessionEventConnectionState2, DisconnectedDaemonSessionEventState2, ConnectedDaemonSessionEventState2, SESSION_EVENT_REPLAY_WINDOW2, SESSION_EVENT_SOURCE_REPLAY_WINDOW2, SESSION_EVENT_REPLAY_BYTE_LIMIT2, InFlightSessionEvent2, DaemonSessionEventPublisher2, CoalescingDaemonActivityPublisher2, IDENTIFIER_PATTERN8, RUNTIME_CREDENTIAL_PATTERN22, MobiusRuntimeConfigurationError2, MobiusRuntimeState3, IdleMobiusRuntimeState2, RunningMobiusRuntimeState2, FinishedMobiusRuntimeState2, MobiusRuntimeEngine2;
|
|
193610
|
+
var import_node_path45, import_node_url3, import_node_fs13, import_node_child_process14, import_node_fs14, import_promises32, import_node_path46, import_node_os16, import_node_path47, import_node_child_process15, import_promises33, import_node_path48, import_node_url4, import_node_path49, import_node_fs15, import_node_path50, import_node_sqlite4, import_node_fs16, import_node_path51, import_node_sqlite5, import_promises34, import_node_os17, import_node_path52, import_undici9, import_promises35, import_node_path53, import_node_path54, import_node_path55, import_promises36, import_node_path56, import_promises37, import_node_path57, import_node_path58, import_node_crypto18, import_node_fs17, import_promises38, import_node_path59, import_undici10, import_undici11, import_node_path60, import_node_path61, import_node_child_process16, import_node_path62, import_node_path63, import_node_crypto19, import_promises39, import_node_path64, import_node_crypto20, import_node_path65, import_node_util7, import_undici12, import_undici13, import_node_fs18, import_node_path66, import_node_fs19, import_promises40, import_node_path67, import_node_url5, import_node_crypto21, import_undici14, import_promises41, import_node_os18, import_node_path68, import_node_crypto22, import_node_path69, import_node_child_process17, import_node_crypto23, import_undici15, import_undici16, import_node_crypto24, import_node_fs20, import_node_path70, import_node_sqlite6, import_promises42, import_node_path71, __defProp3, __export3, createAcpClient2, external_exports4, core_exports23, util_exports4, Cached4, EVALUATING4, captureStackTrace4, allowsEval4, getParsedType4, propertyKeyTypes4, primitiveTypes4, NUMBER_FORMAT_RANGES4, BIGINT_FORMAT_RANGES4, highSurrogate4, Class4, installing4, broke4, breaker4, CONSTANT_CATCH4, _a7, NEVER4, _zodDesc4, _E4, $brand4, $ZodAsyncError4, $ZodEncodeError4, globalConfig4, _messageDesc4, _issuesDesc4, _installedToString4, initializer6, $ZodError4, $ZodRealError4, _parse6, parse7, _parseAsync6, parseAsync6, _safeParse4, safeParse6, _safeParseAsync4, safeParseAsync6, COMPILE_INVALID4, COMPILE_FALLBACK4, validate4, validateAsync6, _encode6, encode7, _decode6, decode10, _encodeAsync6, encodeAsync6, _decodeAsync6, decodeAsync6, _safeEncode4, safeEncode6, _safeDecode4, safeDecode6, _safeEncodeAsync4, safeEncodeAsync6, _safeDecodeAsync4, safeDecodeAsync6, regexes_exports4, cuid7, cuid26, ulid6, xid6, ksuid6, nanoid6, duration6, extendedDuration4, guid6, uuid9, uuid44, uuid64, uuid74, email6, html5Email4, rfc5322Email4, unicodeEmail4, idnEmail4, browserEmail4, _emoji6, ipv46, ipv66, mac6, cidrv46, cidrv66, base646, base64url6, hostname9, domain4, httpProtocol4, e1646, creditCard6, iban6, dateSource4, date10, anyString4, string11, bigint8, integer4, number8, boolean8, _null8, _undefined8, lowercase4, uppercase4, hex6, md5_hex4, md5_base644, md5_base64url4, sha1_hex4, sha1_base644, sha1_base64url4, sha256_hex4, sha256_base644, sha256_base64url4, sha384_hex4, sha384_base644, sha384_base64url4, sha512_hex4, sha512_base644, sha512_base64url4, $ZodCheck4, _whenHasSize4, _whenHasLength4, numericOriginMap4, $ZodCheckLessThan4, $ZodCheckGreaterThan4, $ZodCheckMultipleOf4, $ZodCheckNumberFormat4, $ZodCheckBigIntFormat4, $ZodCheckMaxSize4, $ZodCheckMinSize4, $ZodCheckSizeEquals4, $ZodCheckMaxLength4, $ZodCheckMinLength4, $ZodCheckLengthEquals4, $ZodCheckStringFormat4, $ZodCheckRegex4, $ZodCheckLowerCase4, $ZodCheckUpperCase4, $ZodCheckIncludes4, $ZodCheckStartsWith4, $ZodCheckEndsWith4, $ZodCheckProperty4, $ZodCheckMimeType4, $ZodCheckOverwrite4, Doc4, version4, $ZodType4, toStandardResult4, $ZodString4, $ZodStringFormat4, $ZodGUID4, $ZodUUID4, $ZodEmail4, URL_BAD_FORMAT4, URL_UNPARSEABLE4, asciiTabOrNewline4, $ZodURL4, $ZodEmoji4, $ZodNanoID4, $ZodCUID5, $ZodCUID24, $ZodULID4, $ZodXID4, $ZodKSUID4, $ZodISODateTime4, $ZodISODate4, $ZodISOTime4, $ZodISODuration4, $ZodIPv44, ipv6Alphabet4, $ZodIPv64, $ZodMAC4, $ZodCIDRv44, $ZodCIDRv64, base64Charset4, $ZodBase644, base64urlCharset4, $ZodBase64URL4, $ZodE1644, CC_SANITIZE4, $ZodCreditCard4, $ZodIBAN4, $ZodJWT4, $ZodCustomStringFormat4, $ZodNumber4, $ZodNumberFormat4, $ZodBoolean4, $ZodBigInt4, $ZodBigIntFormat4, $ZodSymbol4, $ZodUndefined4, $ZodNull4, $ZodAny4, $ZodUnknown4, $ZodNever4, $ZodVoid4, $ZodDate4, $ZodArray4, NO_SYMBOL_KEYS4, $ZodObject4, $ZodObjectJIT4, $ZodUnion4, $ZodXor4, $ZodDiscriminatedUnion4, $ZodIntersection4, $ZodTuple4, $ZodRecord4, $ZodMap4, $ZodSet4, $ZodEnum4, $ZodLiteral4, $ZodFile4, $ZodTransform4, $ZodOptional4, $ZodExactOptional4, $ZodNullable4, $ZodDefault4, $ZodPrefault4, $ZodNonOptional4, $ZodSuccess4, $ZodCatch4, $ZodNaN4, $ZodPipe4, $ZodCodec4, $ZodPreprocess4, $ZodReadonly4, $ZodTemplateLiteral4, $ZodFunction4, $ZodPromise4, $ZodLazy4, $ZodCustom4, $ZodProperties2, $ZodCyclicError4, STATE4, NO_ISSUES4, recursive4, NONE4, ASSUMED4, PROVEN4, handoff4, open9, memo4, locales_exports4, error131, error211, error311, error411, error511, error610, error710, error810, error910, error1010, error1110, error1210, error133, error143, error153, error163, error173, error183, error193, error203, error213, error223, error233, error243, error253, error263, error273, error283, error293, error303, error313, error323, capitalizeFirstCharacter4, error333, error343, error353, error363, error373, error383, error393, error403, error413, error423, error433, error443, error453, error463, error473, error483, error493, error503, error513, error523, error533, error543, error553, error563, error573, error583, error593, error603, error613, _a23, $output4, $input4, $ZodRegistry4, globalRegistry4, INVALID4, FALLBACK_FLAG4, ZodCompileAsyncError4, ZodCompileUnsupportedError4, WHEN_DEFAULTED_CHECKS4, PATTERN_IS_COMPLETE4, TimePrecision4, FOLDABLE_KEYS4, UNION_KEYS4, createToJSONSchemaMethod4, createStandardJSONSchemaMethod4, narrowMin4, narrowMax4, narrowBoth4, addDivisor4, addPattern4, intersectMime4, setFormat4, minContributor4, maxContributor4, formatContributor4, contributors4, formatMap4, exactPatterns4, exactPattern4, stringProcessor4, numberProcessor4, booleanProcessor4, bigintProcessor4, symbolProcessor4, nullProcessor4, undefinedProcessor4, voidProcessor4, neverProcessor4, anyProcessor4, unknownProcessor4, dateProcessor4, enumProcessor4, literalProcessor4, nanProcessor4, templateLiteralProcessor4, fileProcessor4, successProcessor4, customProcessor4, functionProcessor4, transformProcessor4, mapProcessor4, setProcessor4, arrayProcessor4, objectProcessor4, propertiesProcessor2, unionProcessor4, intersectionProcessor4, tupleProcessor4, pendingRecords4, recordProcessor4, nullableProcessor4, nonoptionalProcessor4, UNREPRESENTABLE_DEFAULT4, defaultProcessor4, prefaultProcessor4, catchProcessor4, pipeProcessor4, readonlyProcessor4, promiseProcessor4, optionalProcessor4, lazyProcessor4, allProcessors4, JSONSchemaGenerator4, json_schema_exports4, schemas_exports23, checks_exports23, _installedErrorProtos4, initializer23, ZodError4, ZodRealError4, parse23, parseAsync23, safeParse23, safeParseAsync23, encode23, decode23, encodeAsync23, decodeAsync23, safeEncode23, safeDecode23, safeEncodeAsync23, safeDecodeAsync23, ZodType4, _ZodString4, ZodString4, ZodStringFormat4, ZodISODateTime4, ZodISODate4, ZodISOTime4, ZodISODuration4, ZodEmail4, ZodGUID4, ZodUUID4, ZodURL4, ZodEmoji4, ZodNanoID4, ZodCUID5, ZodCUID24, ZodULID4, ZodXID4, ZodKSUID4, ZodIPv44, ZodMAC4, ZodIPv64, ZodCIDRv44, ZodCIDRv64, ZodBase644, ZodBase64URL4, ZodE1644, ZodCreditCard4, ZodIBAN4, ZodJWT4, ZodCustomStringFormat4, ZodNumber4, ZodNumberFormat4, ZodBoolean4, ZodBigInt4, ZodBigIntFormat4, ZodSymbol4, ZodUndefined4, ZodNull4, ZodAny4, ZodUnknown4, ZodNever4, ZodVoid4, ZodDate4, ZodArray4, ZodObject4, ZodUnion4, ZodXor4, ZodDiscriminatedUnion4, ZodIntersection4, ZodTuple4, ZodRecord4, ZodMap4, ZodSet4, ZodEnum4, ZodLiteral4, ZodFile4, ZodTransform4, ZodOptional4, ZodExactOptional4, ZodNullable4, ZodDefault4, ZodPrefault4, ZodNonOptional4, ZodSuccess4, ZodCatch4, ZodNaN4, ZodPipe4, ZodCodec4, ZodPreprocess4, ZodReadonly4, ZodTemplateLiteral4, ZodLazy4, ZodPromise4, ZodFunction4, ZodCustom4, ZodProperties2, describe23, meta23, ZodInstanceOf4, stringbool4, ZodIssueCode4, ZodFirstPartyTypeKind4, iso_exports4, z4, RECOGNIZED_KEYS4, SCHEMA_KEYWORDS4, SCHEMA_MAP_KEYWORDS4, fullTime4, RESOLVING4, coerce_exports4, TOKEN_COUNT2, promptUsageSchema2, quotaTokenCountSchema2, promptMetadataSchema2, agentPromptResponseSchema2, WORKSPACE_LIST_KIND2, WORKSPACE_ENTRIES_KIND2, SESSION_PREPARE_KIND2, SESSION_READY_KIND2, SESSION_CONFIGURE_KIND2, SESSION_CONFIG_UPDATED_KIND2, SESSION_USAGE_UPDATED_KIND2, SESSION_COMMANDS_UPDATED_KIND2, SESSION_INFO_UPDATED_KIND2, SESSION_PERMISSION_REQUESTED_KIND2, SESSION_PERMISSION_RESPOND_KIND2, SESSION_PERMISSION_RESOLVED_KIND2, SESSION_ELICITATION_REQUESTED_KIND2, SESSION_ELICITATION_RESPOND_KIND2, SESSION_ELICITATION_RESOLVED_KIND2, SESSION_OPERATION_FAILED_KIND2, AGENT_CONTENT_KIND2, AGENT_INSTALL_REQUEST_KIND2, AGENT_INSTALL_CANCEL_KIND2, AGENT_INSTALL_STARTED_KIND2, AGENT_INSTALL_PROGRESS_KIND2, AGENT_INSTALL_COMPLETED_KIND2, AGENT_INSTALL_FAILED_KIND2, AGENT_INSTALL_CANCELLED_KIND2, AGENT_SETTINGS_DISCOVER_KIND2, AGENT_SETTINGS_DISCOVERED_KIND2, AGENT_SETTINGS_DISCOVERY_FAILED_KIND2, FILE_READ_KIND2, FILE_BEGIN_KIND2, FILE_CHUNK_KIND2, FILE_END_KIND2, FILE_FAILED_KIND2, IDENTIFIER_PATTERN5, DIRECTORY_IDENTIFIER_PATTERN3, IDENTIFIER2, DIRECTORY_IDENTIFIER2, SHORT_TEXT2, LONG_TEXT2, workspaceEntrySchema2, fileReadCommandSchema2, fileBeginEventSchema2, fileChunkEventSchema2, fileEndEventSchema2, fileFailedEventSchema2, configValueSchema2, sessionConfigOptionSchema2, sessionConfigOptionsSchema2, agentSettingSchema2, agentSettingsSchema2, AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2, AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2, AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2, agentModelEffortResolutionSchema2, agentModelEffortSchema2, agentSettingsDiscoverCommandSchema2, agentSettingsDiscoveredEventSchema2, agentSettingsDiscoveryFailedEventSchema2, sessionConfigurationSelectionSchema2, AGENT_DEFAULT_EXECUTION_SETTING2, AGENT_PERMISSION_MODE_CONFIG_ID2, AGENT_PERMISSION_MODES2, agentExecutionConfigurationSchema2, DEFAULT_AGENT_EXECUTION_CONFIGURATION2, sessionConfigurationSelectionsSchema2, sessionCapabilitiesSchema2, sessionCommandSchema2, permissionOptionSchema2, elicitationOptionSchema2, elicitationFieldSchema2, displayContentSchema2, recordedDisplayContentSchema2, promptImageSchema2, promptResourceSchema2, workspaceListCommandSchema2, workspaceEntriesEventSchema2, sessionIdentityFields2, sessionPrepareCommandSchema2, runtimeTimingsSchema2, sessionReadyEventSchema2, sessionConfigureCommandSchema2, sessionConfigUpdatedEventSchema2, sessionContextUsageUpdatedEventSchema2, sessionPromptUsageUpdatedEventSchema2, sessionUsageUpdatedEventSchema2, sessionCommandsUpdatedEventSchema2, sessionInfoUpdatedEventSchema2, sessionPermissionRequestedEventSchema2, sessionPermissionRespondCommandSchema2, sessionPermissionResolvedEventSchema2, sessionElicitationRequestedEventSchema2, sessionElicitationRespondCommandSchema2, sessionElicitationResolvedEventSchema2, sessionOperationFailedEventSchema2, agentContentEventSchema2, agentInstallIdentityFields2, agentInstallRequestCommandSchema2, agentInstallCancelCommandSchema2, agentInstallStartedEventSchema2, installationStageSchema2, agentInstallProgressEventSchema2, agentInstallCompletedEventSchema2, agentInstallFailedEventSchema2, agentInstallCancelledEventSchema2, decodeAgentDisplayContentValue2, decodeRecordedAgentContentValue2, decodePromptImagesValue2, decodePromptResourcesValue2, decodeSessionConfigurationSelections2, encode33, decodeAgentSettingsDiscoverCommand2, encodeAgentSettingsDiscoveredEvent2, encodeAgentSettingsDiscoveryFailedEvent2, decodeFileReadCommand2, encodeFileBeginEvent2, encodeFileChunkEvent2, encodeFileEndEvent2, encodeFileFailedEvent2, decodeWorkspaceListCommand2, encodeWorkspaceEntriesEvent2, decodeSessionPrepareCommand2, encodeSessionReadyEvent2, decodeSessionConfigureCommand2, encodeSessionConfigUpdatedEvent2, encodeSessionUsageUpdatedEvent2, encodeSessionCommandsUpdatedEvent2, encodeSessionInfoUpdatedEvent2, encodeSessionPermissionRequestedEvent2, decodeSessionPermissionRespondCommand2, encodeSessionPermissionResolvedEvent2, encodeSessionElicitationRequestedEvent2, decodeSessionElicitationRespondCommand2, encodeSessionElicitationResolvedEvent2, encodeSessionOperationFailedEvent2, encodeAgentContentEvent2, decodeAgentInstallRequestCommand2, decodeAgentInstallCancelCommand2, encodeAgentInstallStartedEvent2, encodeAgentInstallProgressEvent2, encodeAgentInstallCompletedEvent2, encodeAgentInstallFailedEvent2, encodeAgentInstallCancelledEvent2, SESSION_PROMPT_KIND2, SESSION_CANCEL_KIND2, RUNTIME_LIVENESS_READY_KIND2, RUNTIME_HEARTBEAT_KIND2, RUNTIME_HEARTBEAT_ACK_KIND2, RUNTIME_DELIVERY_KIND2, RUNTIME_DELIVERY_RECEIVED_KIND2, RUNTIME_DELIVERY_COMMITTED_KIND2, SESSION_STARTED_KIND2, AGENT_MESSAGE_DELTA_KIND2, AGENT_ACTIVITY_KIND2, AGENT_ACTIVITY_DETAIL_LIMIT2, AGENT_ACTIVITY_RECORDED_FIELD_LIMIT2, AGENT_ACTIVITY_RECORDED_DETAIL_LIMIT2, AGENT_ACTIVITY_LOCATION_LIMIT2, AGENT_ACTIVITY_LOCATION_LENGTH_LIMIT2, SESSION_COMPLETED_KIND2, SESSION_FAILED_KIND2, SessionPromptDisposition2, IDENTIFIER_PATTERN22, DIRECTORY_IDENTIFIER_PATTERN22, MAX_PROMPT_LENGTH2, MAX_PROMPT_ATTACHMENT_LENGTH2, MAX_EVENT_TEXT_LENGTH2, MAX_RUNTIME_DELIVERY_PAYLOAD_LENGTH2, ACTIVITY_TYPES2, ACTIVITY_STATUSES2, TOOL_KINDS2, ProtocolMessageError2, MOBIUS_API_PREFIX2, API_PREFIX_PATTERN2, MobiusApiConfigurationError2, SESSION_HISTORY_CHARACTER_LIMIT2, SESSION_HISTORY_MESSAGE_LIMIT2, SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT2, SESSION_HISTORY_IMAGE_CHARACTER_LIMIT2, historyImage2, historyMessage2, sessionHistorySchema2, NATIVE_SESSION_REQUEST_KIND2, NATIVE_SESSION_RESULT_KIND2, NATIVE_SESSION_CANCEL_KIND2, NATIVE_SESSION_TURN_FORK_REQUEST_KIND2, NATIVE_SESSION_TURN_FORK_KIND2, identifier2, directoryId2, envelope2, identity2, turnForkIdentity2, nativeSessionTurnForkRequestSchema2, nativeSessionTurnForkCommandSchema2, nativeSessionCommandSchema2, nativeSessionEntrySchema2, resultEnvelope2, nativeSessionResultSchema2, nativeSessionCancelSchema2, decodeNativeSessionCommand2, encodeNativeSessionResult2, decodeNativeSessionCancel2, decodeNativeSessionTurnForkCommand2, SESSION_EVENT_KIND2, SESSION_EVENT_ACK_KIND2, SESSION_EVENT_COMMITTED_KIND2, SESSION_EVENT_DEFERRED_KIND2, SESSION_EVENT_REJECTED_KIND2, SessionEventRejectionCode2, IDENTIFIER_PATTERN32, CURSOR_PATTERN2, MAX_RECORDED_EVENT_LENGTH2, DECIMAL_SEQUENCE_PATTERN2, eventSourceSchema2, eventEnvelopeSchema2, committedEventSchema2, eventAcknowledgementSchema2, eventDeferredSchema2, eventRejectionSchema2, encode42, decodeSessionEventEnvelope2, encodeSessionEventEnvelope2, decodeSessionEventAcknowledgement2, decodeSessionEventDeferred2, decodeSessionEventRejection2, DEFAULT_OUTPUT_LIMIT_BYTES2, PROCESS_GRACEFUL_STOP_TIMEOUT_MILLISECONDS2, PROCESS_FORCED_STOP_TIMEOUT_MILLISECONDS2, PROCESS_TABLE_TIMEOUT_MILLISECONDS2, PROCESS_TABLE_OUTPUT_LIMIT_BYTES2, PROCESS_EXIT_CHECK_ATTEMPTS2, GRACEFUL_STOP_SIGNAL2, FORCED_STOP_SIGNAL2, ExecutableIdentity2, ResolvedExecutable2, ProcessExecutionError2, ProcessResult2, LocalAgentDefinition2, InstallableAgentDefinition2, MissingAgentDefinition2, AgentIntegrationDefinition2, LocalAgentCatalogSnapshot2, LocalAgentCatalogError2, LocalAgentCatalog2, DaemonLocalContext2, DaemonReconnectTarget2, OpaqueDaemonReconnectTarget2, ChannelDaemonReconnectTarget2, MAX_LOCAL_RASTER_BYTES2, MAX_INLINE_RASTER_BYTES2, PNG_SIGNATURE2, JPEG_SIGNATURE2, GIF87_SIGNATURE2, GIF89_SIGNATURE2, RIFF_SIGNATURE2, WEBP_SIGNATURE2, LocalRasterImage2, MAX_INLINE_VIDEO_BYTES2, MP4_FILE_TYPE2, WEBM_SIGNATURE2, LocalVideo2, AccumulatingOperationMetrics2, unmeasuredOperationMetrics2, IMAGE_MARKER2, TRUNCATION_MARKER2, AcpActivity2, ActivityIdentity2, AcpActivityTracker2, emptyOptions3, characterEntities3, own23, hasOwnProperty3, asciiAlpha3, asciiAlphanumeric3, asciiAtext3, asciiDigit3, asciiHexDigit3, asciiPunctuation3, unicodePunctuation3, unicodeWhitespace3, content5, document5, containerConstruct3, attention3, autolink3, blankLine3, blockQuote3, characterEscape3, characterReference3, nonLazyContinuation3, codeFenced3, codeIndented3, furtherStart3, codeText3, SpliceBuffer3, content22, continuationConstruct3, definition3, titleBefore3, hardBreakEscape3, headingAtx3, htmlBlockNames3, htmlRawNames3, htmlFlow3, blankLineBefore3, nonLazyContinuationStart3, htmlText3, labelEnd3, resourceConstruct3, referenceFullConstruct3, referenceCollapsedConstruct3, labelStartImage3, labelStartLink3, lineEnding3, thematicBreak3, list3, listItemPrefixWhitespaceConstruct3, indentConstruct3, setextUnderline3, flow5, resolver3, string43, text5, constructs_exports3, document23, contentInitial3, flowInitial3, flow22, string52, text22, insideSpan3, attentionMarkers3, disable3, search3, characterEscapeOrReference3, own32, convert3, empty3, CONTINUE3, EXIT3, SKIP3, path5, title2, nativeSessionIdSchema2, nativeSessionInfoSchema2, nativeSessionPageSchema2, AGENT_DEFAULT_REASONING_EFFORT2, MAXIMUM_CONFIG_OPTIONS2, SessionConfigProtocolError2, StandardSessionConfigProtocol2, standardSessionConfigProtocol2, LEGACY_MODEL_CONFIG_ID2, LEGACY_REASONING_EFFORT_CONFIG_ID2, GrokBuildSessionConfigProtocol2, grokBuildSessionConfigProtocol2, AcpHistoryReplay2, AcpStoredSession2, AcpStoredSessionLookup2, MissingAcpStoredSession2, FoundAcpStoredSession2, DeletedAcpStoredSession2, MemoryAcpSessionStore2, SqliteAcpSessionStore2, PROCESS_STOP_TIMEOUT_MILLISECONDS2, MAX_ACP_PROCESSES2, MAX_PRE_SESSION_UPDATES2, MAX_PRE_SESSION_UPDATE_BYTES2, SESSION_CONTROL_COMMAND_ID2, SESSION_CONTROL_TIMEOUT_MILLISECONDS2, NullAcpSessionObserver2, AcpPreparedSession2, AcpAgentSettingsSnapshot2, AcpExecutionError2, RetryableAcpInitializationError2, AcpProcessCapacityLease2, AcpProcessCapacityWaiter2, AcpProcessCapacityLock2, AcpTurnState2, IdleAcpTurn2, RunningAcpTurn2, PendingPermission2, PendingElicitation2, AcpProcessSession2, AcpProcessEvictionCandidate2, MissingAcpProcessEvictionCandidate2, FoundAcpProcessEvictionCandidate2, FoundAcpSessionProcessEvictionCandidate2, FoundAcpNativeBrowserProcessEvictionCandidate2, AcpSessionManager2, AuditStore2, LocalAuthorizationError2, AgentDiscovery2, AvailableAgent2, UnavailableAgent2, UnavailableInstalledAgent2, MissingAdapter2, MissingAgent2, AgentProbeFailed2, IntegrationProbeFailed2, IncompatibleAdapter2, AuthenticationRequiredAgent2, LocalAgentInventory2, INSTALL_TIMEOUT_MILLISECONDS2, PACKAGE_METADATA_LIMIT_BYTES2, PACKAGE_LOCK_LIMIT_BYTES2, ManagedNpmPackageDefinition2, SriManagedNpmPackageDefinition2, SriManagedNpmDependencyDefinition2, ManagedNpmPackageError2, ManagedNpmPackageInstaller2, VERSION_PROBE_TIMEOUT_MILLISECONDS2, ACP_PROBE_TIMEOUT_MILLISECONDS3, LocalAgentSpecification2, DirectAcpAgentDefinition2, BridgedAcpAgentDefinition2, ClaudeCodeAgentSpecification2, CodexAgentSpecification2, AgentProbeError2, COPILOT_CLI_TESTED_VERSION2, CopilotCliAgentSpecification2, CURSOR_CLI_TESTED_VERSION2, CursorCliAgentSpecification2, DeepSeekHarnessManagedPackage2, DEEPSEEK_HARNESS_PACKAGE2, DeepSeekHarnessAgentSpecification2, GEMINI_CLI_TESTED_VERSION2, GeminiCliAgentSpecification2, GROK_BUILD_MANAGED_VERSION2, GrokBuildManagedPackage2, GROK_DARWIN_ARM64_PACKAGE2, GROK_DARWIN_X64_PACKAGE2, GROK_LINUX_ARM64_PACKAGE2, GROK_LINUX_X64_PACKAGE2, GrokBuildAgentSpecification2, HERMES_TESTED_VERSION2, HermesAgentSpecification2, configuredHttpProxy2, configuredHttpsProxy2, environmentProxyDispatcher2, ARCHIVE_DOWNLOAD_LIMIT_BYTES2, ARCHIVE_DOWNLOAD_TIMEOUT_MILLISECONDS2, MANIFEST_LIMIT_BYTES2, ManagedAgentArchiveDefinition2, ZipManagedAgentArchiveDefinition2, TarGzipManagedAgentArchiveDefinition2, ManagedAgentArchiveError2, OPENCODE_MANAGED_VERSION2, OpenCodeAgentSpecification2, PI_ACP_PACKAGE2, PI_AGENT_PACKAGE2, ACP_PROBE_TIMEOUT_MILLISECONDS22, PiAgentSpecification2, WORKBUDDY_MANAGED_VERSION2, WorkBuddyManagedPackage2, WORKBUDDY_MANAGED_PACKAGE2, WORKBUDDY_MACOS_EXECUTABLE_PATH2, WorkBuddyAgentSpecification2, ACP_OUTPUT_LIMIT_BYTES2, VerifiedAcpReadiness2, DiscoveryAcpHandler2, ManagedAdapterInstallError2, ManagedAdapterInstaller2, VerifiedAgentExecutable2, APPLICATION_ID_PATTERN2, CONNECTION_ID_PATTERN2, INSTALLATION_ID_PATTERN2, IDENTIFIER_PATTERN42, RUNTIME_CREDENTIAL_PATTERN3, MAX_FILE_LENGTH2, INSTALLATION_POINTER_KEYS2, CHANNEL_INDEX_KEYS2, VERIFIED_CONNECTION_KEYS2, IMPORTED_LEGACY_CONNECTION_KEYS2, CURRENT_CONNECTION_KEYS2, LEGACY_CONNECTION_KEYS2, RuntimeInstallationStoreError2, StoredRuntimeConnection2, VerifiedRuntimeConnection2, ImportedLegacyRuntimeConnection2, RuntimeInstallationStore2, PAIRING_TIMEOUT_MILLISECONDS, PAIRING_CODE_PATTERN, IDENTIFIER_PATTERN52, TOKEN_PATTERN, CLAIM_RESPONSE_KEYS, REDEEM_RESPONSE_KEYS, MOBIUS_CLI_APPLICATION_ID, PairingClientError2, ResumeCommandTarget, ConnectionResumeCommandTarget, LegacyChannelResumeCommandTarget, AGENT_DEFAULT_VALUE2, READ_ONLY_VALUE2, WORKSPACE_WRITE_VALUE2, DANGER_FULL_ACCESS_VALUE2, DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2, OPENCODE_PERMISSION_SETTING_ID2, AgentSettingsConfigurationError2, AgentSettingsLaunchSelectionResult2, AppliedAgentLaunchSettings2, AgentSettingsAdapter2, dshAccessModes2, DeepSeekHarnessSettingsAdapter2, openCodePermissionModes2, OpenCodeSettingsAdapter2, CodexSettingsAdapter2, genericAdapter2, codexAdapter2, deepSeekHarnessAdapter2, openCodeAdapter2, CATALOG_UPDATE_TIMEOUT_MILLISECONDS2, AgentCatalogPublishError2, INSTALLATION_DEADLINE_MILLISECONDS2, AgentInstallation2, RequestedInstallation2, RunningInstallation2, SucceededInstallation2, FailedInstallation2, CancelledInstallation2, InstallationManagerError2, NullInstallationAudit2, InstallationJob2, AgentInstallationManager2, FixedInstallationExecutor2, CHUNK_BYTES2, MobiusError2, MobiusProtocolError2, MobiusValidationError2, IDENTIFIER_PATTERN62, MobiusArtifactUploadRequest2, MobiusArtifact2, MobiusUploadingArtifact2, MobiusArtifactUpload2, MobiusAvailableArtifact2, MobiusExpiredArtifact2, MobiusRuntimePairingLifecycle2, UPLOAD_TIMEOUT_MILLISECONDS2, RuntimeArtifactUploadError2, UploadedRuntimeArtifact2, WorkspaceDirectoryListing2, WorkspaceDirectoryService2, responseSchema2, threadSchema2, turnsSchema2, itemTypeSchema2, userMessageSchema2, textSchema2, imageSchema2, agentMessageSchema2, NativeSessionService2, ARTIFACT_SCHEME2, ARTIFACT_DOWNLOAD_TIMEOUT_MILLISECONDS2, MAX_AGENT_IMAGE_BASE64_LENGTH2, MAX_AGENT_RESOURCE_BYTE_LENGTH2, IDENTIFIER_PATTERN72, PromptArtifactError2, ResolvedPromptArtifacts2, PromptArtifactReference2, CONNECTION_TIMEOUT_MILLISECONDS2, RelayConnectionError2, MAX_DIAGNOSTIC_TEXT_LENGTH2, RelayConnectionDiagnostics2, HEARTBEAT_ACK_TIMEOUT_MILLISECONDS2, HEARTBEAT_INTERVAL_MILLISECONDS2, RelayLivenessState2, UnsupportedRelayLivenessState2, AwaitingHeartbeatAckState2, WaitingForHeartbeatState2, FinishedRelayLivenessState2, RelayConnectionLiveness2, DEFAULT_OUTBOX_LIMITS2, SessionEventOutboxCapacityError2, RuntimeDeliveryInboxCapacityError2, StoredRuntimeDelivery2, SessionEventOutbox2, SystemDaemonTimer2, systemDaemonTimer2, RELAY_RECONNECT_DELAY_MILLISECONDS2, AGENT_ACTIVITY_COALESCING_MILLISECONDS2, ACTIVE_TURN_RECONCILIATION_TIMEOUT_MILLISECONDS2, ACTIVE_TURN_RECONCILIATION_CLOSE_CODE2, DaemonAcpObserver2, AuditInstallationEvents2, DaemonInstallationObserver2, ResolvedSessionDirectories2, ActiveDaemonTurn2, ActiveTurnReconciliationError2, DaemonSessionEventConnectionState2, DisconnectedDaemonSessionEventState2, ConnectedDaemonSessionEventState2, SESSION_EVENT_REPLAY_WINDOW2, SESSION_EVENT_SOURCE_REPLAY_WINDOW2, SESSION_EVENT_REPLAY_BYTE_LIMIT2, InFlightSessionEvent2, DaemonSessionEventPublisher2, CoalescingDaemonActivityPublisher2, IDENTIFIER_PATTERN8, RUNTIME_CREDENTIAL_PATTERN22, MobiusRuntimeConfigurationError2, MobiusRuntimeState3, IdleMobiusRuntimeState2, RunningMobiusRuntimeState2, FinishedMobiusRuntimeState2, MobiusRuntimeEngine2;
|
|
193561
193611
|
var init_dist3 = __esm({
|
|
193562
|
-
"node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
193612
|
+
"node_modules/.pnpm/@moxt-ai+mobius@0.0.52/node_modules/@moxt-ai/mobius/dist/index.js"() {
|
|
193563
193613
|
"use strict";
|
|
193564
193614
|
init_cjs_shims();
|
|
193565
193615
|
init_acp2();
|
|
@@ -206475,21 +206525,46 @@ ${content32.join("\n")}
|
|
|
206475
206525
|
values: external_exports4.array(configValueSchema2).max(500).readonly()
|
|
206476
206526
|
}).readonly();
|
|
206477
206527
|
sessionConfigOptionsSchema2 = external_exports4.array(sessionConfigOptionSchema2).max(100).readonly();
|
|
206528
|
+
agentSettingSchema2 = external_exports4.strictObject({
|
|
206529
|
+
booleanValue: external_exports4.boolean(),
|
|
206530
|
+
category: external_exports4.string().max(128),
|
|
206531
|
+
defaultValue: external_exports4.string().max(500),
|
|
206532
|
+
description: SHORT_TEXT2,
|
|
206533
|
+
id: external_exports4.string().min(1).max(128),
|
|
206534
|
+
name: external_exports4.string().min(1).max(255),
|
|
206535
|
+
type: external_exports4.enum(["boolean", "select"]),
|
|
206536
|
+
values: external_exports4.array(configValueSchema2).max(500).readonly()
|
|
206537
|
+
}).readonly();
|
|
206538
|
+
agentSettingsSchema2 = external_exports4.array(agentSettingSchema2).max(128).readonly();
|
|
206539
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 = "complete";
|
|
206540
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2 = "on_model_selection";
|
|
206541
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2 = "unavailable";
|
|
206542
|
+
agentModelEffortResolutionSchema2 = external_exports4.enum([
|
|
206543
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2,
|
|
206544
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2,
|
|
206545
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2
|
|
206546
|
+
]);
|
|
206547
|
+
agentModelEffortSchema2 = external_exports4.strictObject({
|
|
206548
|
+
effortSettingId: external_exports4.string().max(128),
|
|
206549
|
+
modelSettingId: external_exports4.string().max(128),
|
|
206550
|
+
resolution: agentModelEffortResolutionSchema2,
|
|
206551
|
+
valuesByModel: external_exports4.record(external_exports4.string().min(1).max(500), external_exports4.array(configValueSchema2).max(500).readonly()).readonly()
|
|
206552
|
+
}).readonly();
|
|
206478
206553
|
agentSettingsDiscoverCommandSchema2 = external_exports4.strictObject({
|
|
206479
|
-
additionalDirectoryIds: external_exports4.array(DIRECTORY_IDENTIFIER2).max(16).readonly(),
|
|
206480
206554
|
agentId: IDENTIFIER2,
|
|
206481
|
-
directoryId: DIRECTORY_IDENTIFIER2,
|
|
206482
206555
|
kind: external_exports4.literal(AGENT_SETTINGS_DISCOVER_KIND2),
|
|
206556
|
+
model: external_exports4.string().min(1).max(500).optional(),
|
|
206483
206557
|
requestId: IDENTIFIER2
|
|
206484
206558
|
}).readonly();
|
|
206485
206559
|
agentSettingsDiscoveredEventSchema2 = external_exports4.strictObject({
|
|
206486
206560
|
agentId: IDENTIFIER2,
|
|
206487
206561
|
agentName: external_exports4.string().max(255),
|
|
206488
206562
|
agentVersion: external_exports4.string().max(128),
|
|
206489
|
-
configOptions: sessionConfigOptionsSchema2,
|
|
206490
|
-
directoryId: DIRECTORY_IDENTIFIER2,
|
|
206491
206563
|
kind: external_exports4.literal(AGENT_SETTINGS_DISCOVERED_KIND2),
|
|
206492
|
-
|
|
206564
|
+
modelEffort: agentModelEffortSchema2,
|
|
206565
|
+
requestId: IDENTIFIER2,
|
|
206566
|
+
settings: agentSettingsSchema2,
|
|
206567
|
+
settingsRevision: external_exports4.string().regex(/^[a-f0-9]{64}$/)
|
|
206493
206568
|
}).readonly();
|
|
206494
206569
|
agentSettingsDiscoveryFailedEventSchema2 = external_exports4.strictObject({
|
|
206495
206570
|
code: IDENTIFIER2,
|
|
@@ -207221,137 +207296,6 @@ ${content32.join("\n")}
|
|
|
207221
207296
|
this.stdout = stdout;
|
|
207222
207297
|
}
|
|
207223
207298
|
};
|
|
207224
|
-
AGENT_DEFAULT_PERMISSION_MODE2 = AGENT_DEFAULT_EXECUTION_SETTING2;
|
|
207225
|
-
READ_ONLY_PERMISSION_MODE2 = "read-only";
|
|
207226
|
-
WORKSPACE_WRITE_PERMISSION_MODE2 = "workspace-write";
|
|
207227
|
-
DANGER_FULL_ACCESS_PERMISSION_MODE2 = "danger-full-access";
|
|
207228
|
-
PERMISSION_MODE_CONFIG_ID2 = AGENT_PERMISSION_MODE_CONFIG_ID2;
|
|
207229
|
-
PERMISSION_MODE_MARKER2 = "MOBIUS_AGENT_PERMISSION_MODE";
|
|
207230
|
-
AgentPermissionConfigurationError2 = class extends Error {
|
|
207231
|
-
code = "invalid_agent_permission_configuration";
|
|
207232
|
-
constructor(message, options = {}) {
|
|
207233
|
-
super(message, options);
|
|
207234
|
-
this.name = "AgentPermissionConfigurationError";
|
|
207235
|
-
}
|
|
207236
|
-
};
|
|
207237
|
-
AgentPermissionProfile2 = class {
|
|
207238
|
-
option = (environment) => ({
|
|
207239
|
-
booleanValue: false,
|
|
207240
|
-
category: "_mobius_permission",
|
|
207241
|
-
currentValue: this.currentMode(environment),
|
|
207242
|
-
description: this.description,
|
|
207243
|
-
id: PERMISSION_MODE_CONFIG_ID2,
|
|
207244
|
-
name: "Permissions",
|
|
207245
|
-
type: "select",
|
|
207246
|
-
values: this.values
|
|
207247
|
-
});
|
|
207248
|
-
};
|
|
207249
|
-
AgentManagedPermissionProfile2 = class extends AgentPermissionProfile2 {
|
|
207250
|
-
description = "This Agent manages its own local permissions.";
|
|
207251
|
-
values = Object.freeze([
|
|
207252
|
-
{
|
|
207253
|
-
description: "Managed by the Agent",
|
|
207254
|
-
groupId: "",
|
|
207255
|
-
groupName: "",
|
|
207256
|
-
name: "Agent default",
|
|
207257
|
-
value: AGENT_DEFAULT_PERMISSION_MODE2
|
|
207258
|
-
}
|
|
207259
|
-
]);
|
|
207260
|
-
currentMode = () => AGENT_DEFAULT_PERMISSION_MODE2;
|
|
207261
|
-
apply = (environment, permissionMode) => {
|
|
207262
|
-
if (permissionMode !== AGENT_DEFAULT_PERMISSION_MODE2) {
|
|
207263
|
-
throw new AgentPermissionConfigurationError2("The selected Agent does not support this permission mode");
|
|
207264
|
-
}
|
|
207265
|
-
return Object.freeze({ ...environment });
|
|
207266
|
-
};
|
|
207267
|
-
};
|
|
207268
|
-
PiPermissionProfile2 = class extends AgentPermissionProfile2 {
|
|
207269
|
-
description = "Pi has no built-in sandbox and runs with the local Runtime user's authority.";
|
|
207270
|
-
values = Object.freeze([
|
|
207271
|
-
{
|
|
207272
|
-
description: "Pi default; unrestricted local execution with the Runtime user's authority",
|
|
207273
|
-
groupId: "",
|
|
207274
|
-
groupName: "",
|
|
207275
|
-
name: "Full access (Pi default)",
|
|
207276
|
-
value: DANGER_FULL_ACCESS_PERMISSION_MODE2
|
|
207277
|
-
}
|
|
207278
|
-
]);
|
|
207279
|
-
currentMode = () => DANGER_FULL_ACCESS_PERMISSION_MODE2;
|
|
207280
|
-
apply = (environment, permissionMode) => {
|
|
207281
|
-
if (permissionMode !== DANGER_FULL_ACCESS_PERMISSION_MODE2) {
|
|
207282
|
-
throw new AgentPermissionConfigurationError2("Pi only supports its default full-access permission mode");
|
|
207283
|
-
}
|
|
207284
|
-
return Object.freeze({ ...environment });
|
|
207285
|
-
};
|
|
207286
|
-
};
|
|
207287
|
-
adjustablePermissionValues2 = Object.freeze([
|
|
207288
|
-
{
|
|
207289
|
-
description: "Keep the Agent's existing permission policy",
|
|
207290
|
-
groupId: "",
|
|
207291
|
-
groupName: "",
|
|
207292
|
-
name: "Agent default",
|
|
207293
|
-
value: AGENT_DEFAULT_PERMISSION_MODE2
|
|
207294
|
-
},
|
|
207295
|
-
{
|
|
207296
|
-
description: "Allow inspection without local writes or commands that can change state",
|
|
207297
|
-
groupId: "",
|
|
207298
|
-
groupName: "",
|
|
207299
|
-
name: "Read only",
|
|
207300
|
-
value: READ_ONLY_PERMISSION_MODE2
|
|
207301
|
-
},
|
|
207302
|
-
{
|
|
207303
|
-
description: "Allow changes inside the selected workspace while protecting external paths",
|
|
207304
|
-
groupId: "",
|
|
207305
|
-
groupName: "",
|
|
207306
|
-
name: "Workspace write",
|
|
207307
|
-
value: WORKSPACE_WRITE_PERMISSION_MODE2
|
|
207308
|
-
},
|
|
207309
|
-
{
|
|
207310
|
-
description: "Allow unrestricted local execution with the Runtime user's authority",
|
|
207311
|
-
groupId: "",
|
|
207312
|
-
groupName: "",
|
|
207313
|
-
name: "Full access",
|
|
207314
|
-
value: DANGER_FULL_ACCESS_PERMISSION_MODE2
|
|
207315
|
-
}
|
|
207316
|
-
]);
|
|
207317
|
-
DeepSeekHarnessPermissionProfile2 = class extends AgentPermissionProfile2 {
|
|
207318
|
-
description = "Controls the local side effects allowed for this Agent session.";
|
|
207319
|
-
values = adjustablePermissionValues2;
|
|
207320
|
-
currentMode = (environment) => validateAdjustableMode2(environment["DSH_PERMISSION_MODE"] ?? WORKSPACE_WRITE_PERMISSION_MODE2);
|
|
207321
|
-
apply = (environment, permissionMode) => {
|
|
207322
|
-
if (permissionMode === AGENT_DEFAULT_PERMISSION_MODE2) {
|
|
207323
|
-
return Object.freeze({ ...environment });
|
|
207324
|
-
}
|
|
207325
|
-
return Object.freeze({
|
|
207326
|
-
...environment,
|
|
207327
|
-
DSH_PERMISSION_MODE: validateAdjustableMode2(permissionMode),
|
|
207328
|
-
[PERMISSION_MODE_MARKER2]: permissionMode
|
|
207329
|
-
});
|
|
207330
|
-
};
|
|
207331
|
-
};
|
|
207332
|
-
OpenCodePermissionProfile2 = class extends AgentPermissionProfile2 {
|
|
207333
|
-
description = "Controls the local side effects allowed for this Agent session.";
|
|
207334
|
-
values = adjustablePermissionValues2;
|
|
207335
|
-
currentMode = (environment) => validateAdjustableMode2(environment[PERMISSION_MODE_MARKER2] ?? AGENT_DEFAULT_PERMISSION_MODE2);
|
|
207336
|
-
apply = (environment, permissionMode) => {
|
|
207337
|
-
const validated = validateAdjustableMode2(permissionMode);
|
|
207338
|
-
if (validated === AGENT_DEFAULT_PERMISSION_MODE2) {
|
|
207339
|
-
return Object.freeze({ ...environment });
|
|
207340
|
-
}
|
|
207341
|
-
return Object.freeze({
|
|
207342
|
-
...environment,
|
|
207343
|
-
OPENCODE_CONFIG_CONTENT: JSON.stringify({
|
|
207344
|
-
...openCodeConfiguration2(environment),
|
|
207345
|
-
permission: openCodePermission2(validated)
|
|
207346
|
-
}),
|
|
207347
|
-
[PERMISSION_MODE_MARKER2]: validated
|
|
207348
|
-
});
|
|
207349
|
-
};
|
|
207350
|
-
};
|
|
207351
|
-
agentManagedPermissionProfile2 = new AgentManagedPermissionProfile2();
|
|
207352
|
-
deepSeekHarnessPermissionProfile2 = new DeepSeekHarnessPermissionProfile2();
|
|
207353
|
-
openCodePermissionProfile2 = new OpenCodePermissionProfile2();
|
|
207354
|
-
piPermissionProfile2 = new PiPermissionProfile2();
|
|
207355
207299
|
LocalAgentDefinition2 = class _LocalAgentDefinition2 {
|
|
207356
207300
|
adapterIdentity;
|
|
207357
207301
|
adapterPath;
|
|
@@ -207364,8 +207308,7 @@ ${content32.join("\n")}
|
|
|
207364
207308
|
environment;
|
|
207365
207309
|
id;
|
|
207366
207310
|
label;
|
|
207367
|
-
|
|
207368
|
-
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity2(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities2(), permissionProfile = permissionProfileForAgent2(id)) {
|
|
207311
|
+
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity2(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities2()) {
|
|
207369
207312
|
this.adapterIdentity = adapterIdentity;
|
|
207370
207313
|
this.adapterPath = adapterIdentity.realPath;
|
|
207371
207314
|
this.adapterVersion = adapterVersion;
|
|
@@ -207374,29 +207317,22 @@ ${content32.join("\n")}
|
|
|
207374
207317
|
this.capabilities = Object.freeze({ ...capabilities });
|
|
207375
207318
|
this.id = id;
|
|
207376
207319
|
this.label = label;
|
|
207377
|
-
this.permissionProfile = permissionProfile;
|
|
207378
207320
|
this.command = adapterIdentity.realPath;
|
|
207379
207321
|
this.arguments = Object.freeze([...arguments_]);
|
|
207380
|
-
this.environment =
|
|
207381
|
-
}
|
|
207382
|
-
|
|
207383
|
-
|
|
207384
|
-
|
|
207385
|
-
|
|
207386
|
-
|
|
207387
|
-
|
|
207388
|
-
|
|
207389
|
-
|
|
207390
|
-
|
|
207391
|
-
|
|
207392
|
-
|
|
207393
|
-
|
|
207394
|
-
this.adapterIdentity,
|
|
207395
|
-
this.agentIdentity,
|
|
207396
|
-
this.capabilities,
|
|
207397
|
-
this.permissionProfile
|
|
207398
|
-
);
|
|
207399
|
-
};
|
|
207322
|
+
this.environment = Object.freeze({ ...environment });
|
|
207323
|
+
}
|
|
207324
|
+
withEnvironment = (environment) => new _LocalAgentDefinition2(
|
|
207325
|
+
this.id,
|
|
207326
|
+
this.label,
|
|
207327
|
+
this.command,
|
|
207328
|
+
this.arguments,
|
|
207329
|
+
environment,
|
|
207330
|
+
this.adapterVersion,
|
|
207331
|
+
this.agentVersion,
|
|
207332
|
+
this.adapterIdentity,
|
|
207333
|
+
this.agentIdentity,
|
|
207334
|
+
this.capabilities
|
|
207335
|
+
);
|
|
207400
207336
|
};
|
|
207401
207337
|
InstallableAgentDefinition2 = class {
|
|
207402
207338
|
id;
|
|
@@ -211038,7 +210974,6 @@ ${content32.join("\n")}
|
|
|
211038
210974
|
#preSessionUpdates = [];
|
|
211039
210975
|
#processExit;
|
|
211040
210976
|
#metrics;
|
|
211041
|
-
#permissionProfile;
|
|
211042
210977
|
#sessionConfigProtocol;
|
|
211043
210978
|
#store;
|
|
211044
210979
|
#emittedToolImages = /* @__PURE__ */ new Set();
|
|
@@ -211082,7 +211017,6 @@ ${content32.join("\n")}
|
|
|
211082
211017
|
this.#getObserver = getObserver;
|
|
211083
211018
|
this.#mobiusSessionId = mobiusSessionId;
|
|
211084
211019
|
this.#metrics = metrics;
|
|
211085
|
-
this.#permissionProfile = agent.permissionProfile;
|
|
211086
211020
|
this.#sessionConfigProtocol = sessionConfigProtocolForAgent2(agent.id);
|
|
211087
211021
|
this.#store = store;
|
|
211088
211022
|
this.#verifiedAgentVersion = agent.agentVersion;
|
|
@@ -211189,6 +211123,7 @@ ${content32.join("\n")}
|
|
|
211189
211123
|
belongsTo = (agentId, cwd, additionalDirectories) => this.#agentId === agentId && this.#cwd === cwd && arraysEqual2(this.#additionalDirectories, additionalDirectories);
|
|
211190
211124
|
usesEnvironment = (environment) => recordsEqual2(this.#environment, environment);
|
|
211191
211125
|
canRebind = () => !this.#prompted && !this.#turn.running;
|
|
211126
|
+
hasRunningTurn = () => this.#turn.running;
|
|
211192
211127
|
prepared = () => new AcpPreparedSession2(
|
|
211193
211128
|
this.#agentName,
|
|
211194
211129
|
this.#agentVersion,
|
|
@@ -211552,10 +211487,7 @@ ${content32.join("\n")}
|
|
|
211552
211487
|
this.selectNativeSession(created.sessionId);
|
|
211553
211488
|
lifecycleResponse = created;
|
|
211554
211489
|
}
|
|
211555
|
-
this.#configOptions =
|
|
211556
|
-
this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse),
|
|
211557
|
-
this.#permissionProfile.option(this.#environment)
|
|
211558
|
-
);
|
|
211490
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse);
|
|
211559
211491
|
await this.#updateTail;
|
|
211560
211492
|
signal.throwIfAborted();
|
|
211561
211493
|
if (this.#prompted) {
|
|
@@ -211656,12 +211588,17 @@ ${content32.join("\n")}
|
|
|
211656
211588
|
)
|
|
211657
211589
|
}
|
|
211658
211590
|
);
|
|
211591
|
+
const applied = configured.find((option) => option.id === options.configId);
|
|
211592
|
+
if (applied === void 0 || applied.type !== options.valueType || applied.type === "boolean" && applied.booleanValue !== options.booleanValue || applied.type === "select" && applied.currentValue !== options.value) {
|
|
211593
|
+
throw new AcpExecutionError2(
|
|
211594
|
+
"The Agent did not apply the requested session configuration",
|
|
211595
|
+
{},
|
|
211596
|
+
"invalid_session_configuration"
|
|
211597
|
+
);
|
|
211598
|
+
}
|
|
211659
211599
|
await this.#updateTail;
|
|
211660
211600
|
if (this.#configRevision === configRevision) {
|
|
211661
|
-
this.#configOptions =
|
|
211662
|
-
configured,
|
|
211663
|
-
this.#permissionProfile.option(this.#environment)
|
|
211664
|
-
);
|
|
211601
|
+
this.#configOptions = configured;
|
|
211665
211602
|
}
|
|
211666
211603
|
} catch (error622) {
|
|
211667
211604
|
if (error622 instanceof SessionConfigProtocolError2) {
|
|
@@ -212139,9 +212076,9 @@ ${content32.join("\n")}
|
|
|
212139
212076
|
return;
|
|
212140
212077
|
}
|
|
212141
212078
|
if (update.sessionUpdate === "config_option_update") {
|
|
212142
|
-
this.#configOptions =
|
|
212143
|
-
this.#
|
|
212144
|
-
|
|
212079
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeUpdate(
|
|
212080
|
+
this.#configOptions,
|
|
212081
|
+
update.configOptions
|
|
212145
212082
|
);
|
|
212146
212083
|
this.#configRevision += 1;
|
|
212147
212084
|
await this.emitConfigUpdate();
|
|
@@ -212672,16 +212609,12 @@ ${content32.join("\n")}
|
|
|
212672
212609
|
const operation = (async () => {
|
|
212673
212610
|
try {
|
|
212674
212611
|
await this.#retireSessionProcess(options.sessionId, existing, async () => await existing.close());
|
|
212675
|
-
this.#store.remove(options.sessionId);
|
|
212676
212612
|
const runtime = await this.#startRetainedSessionProcess(
|
|
212677
212613
|
options,
|
|
212678
212614
|
async () => await AcpProcessSession2.start(options, () => this.#observer, this.#store)
|
|
212679
212615
|
);
|
|
212680
212616
|
try {
|
|
212681
212617
|
for (const desired of desiredConfigOptions) {
|
|
212682
|
-
if (desired.id === PERMISSION_MODE_CONFIG_ID2) {
|
|
212683
|
-
continue;
|
|
212684
|
-
}
|
|
212685
212618
|
const current2 = runtime.prepared().configOptions.find((option) => option.id === desired.id);
|
|
212686
212619
|
if (current2 === void 0 || current2.type !== desired.type) {
|
|
212687
212620
|
continue;
|
|
@@ -212712,7 +212645,6 @@ ${content32.join("\n")}
|
|
|
212712
212645
|
}
|
|
212713
212646
|
} catch (error622) {
|
|
212714
212647
|
await this.#retireSessionProcess(options.sessionId, runtime, async () => await runtime.close());
|
|
212715
|
-
this.#store.remove(options.sessionId);
|
|
212716
212648
|
throw error622;
|
|
212717
212649
|
}
|
|
212718
212650
|
return runtime;
|
|
@@ -212779,11 +212711,21 @@ ${content32.join("\n")}
|
|
|
212779
212711
|
() => this.#agentSettingsObserver,
|
|
212780
212712
|
new MemoryAcpSessionStore2()
|
|
212781
212713
|
),
|
|
212782
|
-
(runtime) => {
|
|
212714
|
+
async (runtime) => {
|
|
212783
212715
|
const prepared = runtime.prepared();
|
|
212784
|
-
|
|
212785
|
-
|
|
212786
|
-
|
|
212716
|
+
const model = options.model;
|
|
212717
|
+
const configOptions = model === void 0 ? prepared.configOptions : await runtime.configure({
|
|
212718
|
+
...options,
|
|
212719
|
+
booleanValue: false,
|
|
212720
|
+
configId: prepared.configOptions.find(
|
|
212721
|
+
(option) => option.id === "model" || option.category === "model"
|
|
212722
|
+
)?.id ?? "model",
|
|
212723
|
+
requestId: "agent-settings-model",
|
|
212724
|
+
sessionId: `agent-settings-${crypto.randomUUID()}`,
|
|
212725
|
+
value: model,
|
|
212726
|
+
valueType: "select"
|
|
212727
|
+
});
|
|
212728
|
+
return new AcpAgentSettingsSnapshot2(prepared.agentName, prepared.agentVersion, configOptions);
|
|
212787
212729
|
},
|
|
212788
212730
|
async (runtime) => await runtime.close()
|
|
212789
212731
|
);
|
|
@@ -212832,11 +212774,11 @@ ${content32.join("\n")}
|
|
|
212832
212774
|
this.#touchExpectedSession(options.sessionId, existing);
|
|
212833
212775
|
return existing.prepared();
|
|
212834
212776
|
}
|
|
212835
|
-
if (
|
|
212777
|
+
if (existing.hasRunningTurn()) {
|
|
212836
212778
|
throw new AcpExecutionError2(
|
|
212837
|
-
"The execution environment cannot change
|
|
212779
|
+
"The execution environment cannot change while a conversation turn is running",
|
|
212838
212780
|
{},
|
|
212839
|
-
"
|
|
212781
|
+
"session_busy"
|
|
212840
212782
|
);
|
|
212841
212783
|
}
|
|
212842
212784
|
return (await this.#replaceExecutionPreparation(existing, options)).prepared();
|
|
@@ -212874,30 +212816,6 @@ ${content32.join("\n")}
|
|
|
212874
212816
|
this.#beginSessionUse(options.sessionId);
|
|
212875
212817
|
try {
|
|
212876
212818
|
const runtime = await this.ensureSession(options);
|
|
212877
|
-
if (options.configId === PERMISSION_MODE_CONFIG_ID2) {
|
|
212878
|
-
const permission = runtime.prepared().configOptions.find((candidate) => candidate.id === PERMISSION_MODE_CONFIG_ID2);
|
|
212879
|
-
if (permission === void 0 || permission.type !== "select" || options.valueType !== "select" || permission.values.length < 2 || !permission.values.some((value) => value.value === options.value)) {
|
|
212880
|
-
throw new AcpExecutionError2(
|
|
212881
|
-
"The requested Agent permission mode is unavailable",
|
|
212882
|
-
{},
|
|
212883
|
-
"invalid_session_configuration"
|
|
212884
|
-
);
|
|
212885
|
-
}
|
|
212886
|
-
if (permission.currentValue === options.value) {
|
|
212887
|
-
return runtime.prepared().configOptions;
|
|
212888
|
-
}
|
|
212889
|
-
try {
|
|
212890
|
-
return (await this.prepareExecutionSession({
|
|
212891
|
-
...options,
|
|
212892
|
-
agent: options.agent.withPermissionMode(options.value)
|
|
212893
|
-
})).configOptions;
|
|
212894
|
-
} catch (error622) {
|
|
212895
|
-
if (error622 instanceof AgentPermissionConfigurationError2) {
|
|
212896
|
-
throw new AcpExecutionError2(error622.message, { cause: error622 }, error622.code);
|
|
212897
|
-
}
|
|
212898
|
-
throw error622;
|
|
212899
|
-
}
|
|
212900
|
-
}
|
|
212901
212819
|
return await runtime.configure(options);
|
|
212902
212820
|
} finally {
|
|
212903
212821
|
this.#endSessionUse(options.sessionId);
|
|
@@ -213348,7 +213266,7 @@ ${content32.join("\n")}
|
|
|
213348
213266
|
this.database.exec("ALTER TABLE audit_events ADD COLUMN details_json TEXT NOT NULL DEFAULT '{}'");
|
|
213349
213267
|
}
|
|
213350
213268
|
}
|
|
213351
|
-
record(
|
|
213269
|
+
record(record32) {
|
|
213352
213270
|
this.database.prepare(
|
|
213353
213271
|
`
|
|
213354
213272
|
INSERT INTO audit_events (
|
|
@@ -213361,10 +213279,10 @@ ${content32.join("\n")}
|
|
|
213361
213279
|
`
|
|
213362
213280
|
).run(
|
|
213363
213281
|
(/* @__PURE__ */ new Date()).toISOString(),
|
|
213364
|
-
|
|
213365
|
-
|
|
213366
|
-
|
|
213367
|
-
JSON.stringify(
|
|
213282
|
+
record32.event,
|
|
213283
|
+
record32.commandId,
|
|
213284
|
+
record32.sessionId,
|
|
213285
|
+
JSON.stringify(record32.details ?? {})
|
|
213368
213286
|
);
|
|
213369
213287
|
}
|
|
213370
213288
|
close() {
|
|
@@ -214642,6 +214560,116 @@ ${content32.join("\n")}
|
|
|
214642
214560
|
}
|
|
214643
214561
|
resume = async (installation, signal, environment) => await resumeLegacyChannel(installation, this.channelId, signal, environment);
|
|
214644
214562
|
};
|
|
214563
|
+
AGENT_DEFAULT_VALUE2 = "agent_default";
|
|
214564
|
+
READ_ONLY_VALUE2 = "read-only";
|
|
214565
|
+
WORKSPACE_WRITE_VALUE2 = "workspace-write";
|
|
214566
|
+
DANGER_FULL_ACCESS_VALUE2 = "danger-full-access";
|
|
214567
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2 = "dsh_access_mode";
|
|
214568
|
+
OPENCODE_PERMISSION_SETTING_ID2 = "opencode_permission";
|
|
214569
|
+
AgentSettingsConfigurationError2 = class extends Error {
|
|
214570
|
+
code = "invalid_session_configuration";
|
|
214571
|
+
constructor(message, options = {}) {
|
|
214572
|
+
super(message, options);
|
|
214573
|
+
this.name = "AgentSettingsConfigurationError";
|
|
214574
|
+
}
|
|
214575
|
+
};
|
|
214576
|
+
AgentSettingsLaunchSelectionResult2 = class {
|
|
214577
|
+
agent;
|
|
214578
|
+
handled;
|
|
214579
|
+
constructor(agent, handled) {
|
|
214580
|
+
this.agent = agent;
|
|
214581
|
+
this.handled = handled;
|
|
214582
|
+
}
|
|
214583
|
+
};
|
|
214584
|
+
AppliedAgentLaunchSettings2 = class {
|
|
214585
|
+
agent;
|
|
214586
|
+
sessionConfigurations;
|
|
214587
|
+
constructor(agent, sessionConfigurations) {
|
|
214588
|
+
this.agent = agent;
|
|
214589
|
+
this.sessionConfigurations = Object.freeze([...sessionConfigurations]);
|
|
214590
|
+
}
|
|
214591
|
+
};
|
|
214592
|
+
AgentSettingsAdapter2 = class {
|
|
214593
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2;
|
|
214594
|
+
applyLaunchSelection = (agent, _selection) => new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214595
|
+
settings = (_agent) => [];
|
|
214596
|
+
};
|
|
214597
|
+
dshAccessModes2 = Object.freeze([
|
|
214598
|
+
selectValue2("Read only", READ_ONLY_VALUE2, "Allow inspection without local writes."),
|
|
214599
|
+
selectValue2("Workspace write", WORKSPACE_WRITE_VALUE2, "Allow changes in the selected workspace."),
|
|
214600
|
+
selectValue2("Full access", DANGER_FULL_ACCESS_VALUE2, "Allow unrestricted local execution.")
|
|
214601
|
+
]);
|
|
214602
|
+
DeepSeekHarnessSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214603
|
+
settings = (agent) => {
|
|
214604
|
+
const configured = agent.environment["DSH_PERMISSION_MODE"] ?? WORKSPACE_WRITE_VALUE2;
|
|
214605
|
+
return [
|
|
214606
|
+
selectSetting2(
|
|
214607
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2,
|
|
214608
|
+
"Access mode",
|
|
214609
|
+
"Controls the local side effects allowed for this DeepSeek Harness session.",
|
|
214610
|
+
validValue2(dshAccessModes2, configured),
|
|
214611
|
+
dshAccessModes2
|
|
214612
|
+
)
|
|
214613
|
+
];
|
|
214614
|
+
};
|
|
214615
|
+
applyLaunchSelection = (agent, selection) => {
|
|
214616
|
+
if (selection.configId !== DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2) {
|
|
214617
|
+
return new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214618
|
+
}
|
|
214619
|
+
const value = validValue2(dshAccessModes2, selectedValue2(selection, DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2));
|
|
214620
|
+
return new AgentSettingsLaunchSelectionResult2(
|
|
214621
|
+
agent.withEnvironment({ ...agent.environment, DSH_PERMISSION_MODE: value }),
|
|
214622
|
+
true
|
|
214623
|
+
);
|
|
214624
|
+
};
|
|
214625
|
+
};
|
|
214626
|
+
openCodePermissionModes2 = Object.freeze([
|
|
214627
|
+
selectValue2("Agent default", AGENT_DEFAULT_VALUE2, "Keep OpenCode's existing permission policy."),
|
|
214628
|
+
selectValue2("Read only", READ_ONLY_VALUE2, "Allow inspection without local writes."),
|
|
214629
|
+
selectValue2("Workspace write", WORKSPACE_WRITE_VALUE2, "Allow changes in the selected workspace."),
|
|
214630
|
+
selectValue2("Full access", DANGER_FULL_ACCESS_VALUE2, "Allow unrestricted local execution.")
|
|
214631
|
+
]);
|
|
214632
|
+
OpenCodeSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214633
|
+
settings = (agent) => {
|
|
214634
|
+
const currentValue = agent.environment["MOBIUS_OPENCODE_PERMISSION"] ?? AGENT_DEFAULT_VALUE2;
|
|
214635
|
+
return [
|
|
214636
|
+
selectSetting2(
|
|
214637
|
+
OPENCODE_PERMISSION_SETTING_ID2,
|
|
214638
|
+
"Permissions",
|
|
214639
|
+
"Controls OpenCode's local permission policy.",
|
|
214640
|
+
validValue2(openCodePermissionModes2, currentValue),
|
|
214641
|
+
openCodePermissionModes2
|
|
214642
|
+
)
|
|
214643
|
+
];
|
|
214644
|
+
};
|
|
214645
|
+
applyLaunchSelection = (agent, selection) => {
|
|
214646
|
+
if (selection.configId !== OPENCODE_PERMISSION_SETTING_ID2) {
|
|
214647
|
+
return new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214648
|
+
}
|
|
214649
|
+
const value = validValue2(openCodePermissionModes2, selectedValue2(selection, OPENCODE_PERMISSION_SETTING_ID2));
|
|
214650
|
+
if (value === AGENT_DEFAULT_VALUE2) {
|
|
214651
|
+
return new AgentSettingsLaunchSelectionResult2(agent, true);
|
|
214652
|
+
}
|
|
214653
|
+
return new AgentSettingsLaunchSelectionResult2(
|
|
214654
|
+
agent.withEnvironment({
|
|
214655
|
+
...agent.environment,
|
|
214656
|
+
MOBIUS_OPENCODE_PERMISSION: value,
|
|
214657
|
+
OPENCODE_CONFIG_CONTENT: JSON.stringify({
|
|
214658
|
+
...openCodeConfiguration2(agent.environment),
|
|
214659
|
+
permission: openCodePermission2(value)
|
|
214660
|
+
})
|
|
214661
|
+
}),
|
|
214662
|
+
true
|
|
214663
|
+
);
|
|
214664
|
+
};
|
|
214665
|
+
};
|
|
214666
|
+
CodexSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214667
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2;
|
|
214668
|
+
};
|
|
214669
|
+
genericAdapter2 = new AgentSettingsAdapter2();
|
|
214670
|
+
codexAdapter2 = new CodexSettingsAdapter2();
|
|
214671
|
+
deepSeekHarnessAdapter2 = new DeepSeekHarnessSettingsAdapter2();
|
|
214672
|
+
openCodeAdapter2 = new OpenCodeSettingsAdapter2();
|
|
214645
214673
|
CATALOG_UPDATE_TIMEOUT_MILLISECONDS2 = 2e4;
|
|
214646
214674
|
AgentCatalogPublishError2 = class extends Error {
|
|
214647
214675
|
code = "agent_catalog_update_failed";
|
|
@@ -216511,9 +216539,9 @@ ${content32.join("\n")}
|
|
|
216511
216539
|
DaemonAcpObserver2 = class {
|
|
216512
216540
|
#config;
|
|
216513
216541
|
#record;
|
|
216514
|
-
constructor(config22,
|
|
216542
|
+
constructor(config22, record32) {
|
|
216515
216543
|
this.#config = config22;
|
|
216516
|
-
this.#record =
|
|
216544
|
+
this.#record = record32;
|
|
216517
216545
|
}
|
|
216518
216546
|
importLocalArtifact = async (sessionId, artifact, signal) => (await uploadRuntimeArtifact2(this.#config, sessionId, artifact, signal)).artifactId;
|
|
216519
216547
|
onCommands = (event2) => {
|
|
@@ -219019,7 +219047,7 @@ var FLUSH_TIMEOUT_MS = 3e3;
|
|
|
219019
219047
|
var MAX_BATCH_SIZE = 100;
|
|
219020
219048
|
function commonLabels() {
|
|
219021
219049
|
return {
|
|
219022
|
-
cli_version: "0.13.
|
|
219050
|
+
cli_version: "0.13.5",
|
|
219023
219051
|
node_version: process.versions.node,
|
|
219024
219052
|
os: (0, import_node_os.platform)(),
|
|
219025
219053
|
arch: (0, import_node_os.arch)(),
|
|
@@ -219065,7 +219093,7 @@ async function flush() {
|
|
|
219065
219093
|
}
|
|
219066
219094
|
const batch = buffer.splice(0, MAX_BATCH_SIZE);
|
|
219067
219095
|
const payload = {
|
|
219068
|
-
release_id: "0.13.
|
|
219096
|
+
release_id: "0.13.5",
|
|
219069
219097
|
client_type: "cli",
|
|
219070
219098
|
metric_data_list: batch.map((m) => ({
|
|
219071
219099
|
profile: "cli",
|
|
@@ -219482,9 +219510,9 @@ void runCli();
|
|
|
219482
219510
|
async function runCli() {
|
|
219483
219511
|
try {
|
|
219484
219512
|
const { createProgram: createProgram2 } = await Promise.resolve().then(() => (init_program(), program_exports));
|
|
219485
|
-
const program2 = createProgram2("0.13.
|
|
219486
|
-
installDaemonReconcileHook(program2, "0.13.
|
|
219487
|
-
installUpdateHook(program2, "0.13.
|
|
219513
|
+
const program2 = createProgram2("0.13.5");
|
|
219514
|
+
installDaemonReconcileHook(program2, "0.13.5");
|
|
219515
|
+
installUpdateHook(program2, "0.13.5");
|
|
219488
219516
|
instrumentProgram(program2);
|
|
219489
219517
|
installExitHandler();
|
|
219490
219518
|
await program2.parseAsync(process.argv);
|