@moxt-ai/cli 0.13.4 → 0.13.6
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 +1023 -994
- 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)
|
|
73052
72986
|
};
|
|
73053
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: {}
|
|
73033
|
+
};
|
|
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) => {
|
|
@@ -103634,11 +103648,6 @@ ${Object.entries(options.environment).map(([name, value]) => ` <key>${escapeX
|
|
|
103634
103648
|
path7
|
|
103635
103649
|
]);
|
|
103636
103650
|
await runtime.run("launchctl", ["bootstrap", domain5, path7]);
|
|
103637
|
-
await runtime.run("launchctl", [
|
|
103638
|
-
"kickstart",
|
|
103639
|
-
"-k",
|
|
103640
|
-
`${domain5}/${launchAgentLabel}`
|
|
103641
|
-
]);
|
|
103642
103651
|
}
|
|
103643
103652
|
async function installSystemdUserService(store, options, runtime) {
|
|
103644
103653
|
const path7 = systemdUnitPath();
|
|
@@ -109489,7 +109498,7 @@ var init_file_selector = __esm({
|
|
|
109489
109498
|
|
|
109490
109499
|
// src/utils/http.ts
|
|
109491
109500
|
function getUserAgent() {
|
|
109492
|
-
return `moxt-cli/${"0.13.
|
|
109501
|
+
return `moxt-cli/${"0.13.6"} (${(0, import_os.platform)()}/${(0, import_os.arch)()}) node/${process.versions.node}`;
|
|
109493
109502
|
}
|
|
109494
109503
|
async function sendRequest(method, path7, init) {
|
|
109495
109504
|
return await fetch(`${getApiBaseUrl()}${path7}`, {
|
|
@@ -175520,7 +175529,7 @@ ${captureLines}` : capture.stack;
|
|
|
175520
175529
|
}
|
|
175521
175530
|
});
|
|
175522
175531
|
|
|
175523
|
-
// node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
175532
|
+
// node_modules/.pnpm/@moxt-ai+mobius@0.0.53/node_modules/@moxt-ai/mobius/dist/index.js
|
|
175524
175533
|
var dist_exports2 = {};
|
|
175525
175534
|
__export(dist_exports2, {
|
|
175526
175535
|
AcpExecutionError: () => AcpExecutionError2,
|
|
@@ -180919,8 +180928,8 @@ function rewriteKeyNames4(ctx) {
|
|
|
180919
180928
|
bySchema.set(entry.schema, entry);
|
|
180920
180929
|
}
|
|
180921
180930
|
const rewrites = /* @__PURE__ */ new Map();
|
|
180922
|
-
for (const
|
|
180923
|
-
const seen = ctx.seen.get(
|
|
180931
|
+
for (const record32 of pendingRecords4.get(ctx) ?? []) {
|
|
180932
|
+
const seen = ctx.seen.get(record32);
|
|
180924
180933
|
const names = (seen?.def ?? seen?.schema)?.propertyNames;
|
|
180925
180934
|
if (!names || names === true || rewrites.has(names))
|
|
180926
180935
|
continue;
|
|
@@ -183402,66 +183411,6 @@ async function runBoundedProcess2(options) {
|
|
|
183402
183411
|
}
|
|
183403
183412
|
}
|
|
183404
183413
|
}
|
|
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
183414
|
function readTrustedIdentity2(path22) {
|
|
183466
183415
|
const resolvedPath = (0, import_node_fs13.realpathSync)(path22);
|
|
183467
183416
|
const metadata = (0, import_node_fs13.statSync)(resolvedPath);
|
|
@@ -188468,13 +188417,14 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188468
188417
|
}
|
|
188469
188418
|
const id = truncate22(readString22(option["id"]), 128);
|
|
188470
188419
|
const name = truncate22(readString22(option["name"], id), 255);
|
|
188471
|
-
|
|
188420
|
+
const category = truncate22(readString22(option["category"]), 128);
|
|
188421
|
+
if (id.length === 0 || name.length === 0 || category === "_mobius_permission") {
|
|
188472
188422
|
continue;
|
|
188473
188423
|
}
|
|
188474
188424
|
if (option["type"] === "boolean") {
|
|
188475
188425
|
normalized.push({
|
|
188476
188426
|
booleanValue: readBoolean2(option["currentValue"]),
|
|
188477
|
-
category
|
|
188427
|
+
category,
|
|
188478
188428
|
currentValue: "",
|
|
188479
188429
|
description: truncate22(readString22(option["description"]), 500),
|
|
188480
188430
|
id,
|
|
@@ -188490,7 +188440,7 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188490
188440
|
if (currentValue.length > 0 && values.some((entry) => entry.value === currentValue)) {
|
|
188491
188441
|
normalized.push({
|
|
188492
188442
|
booleanValue: false,
|
|
188493
|
-
category
|
|
188443
|
+
category,
|
|
188494
188444
|
currentValue,
|
|
188495
188445
|
description: truncate22(readString22(option["description"]), 500),
|
|
188496
188446
|
id,
|
|
@@ -188537,122 +188487,16 @@ function normalizeConfigOptions2(value, modes) {
|
|
|
188537
188487
|
});
|
|
188538
188488
|
}
|
|
188539
188489
|
}
|
|
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);
|
|
188490
|
+
return normalized.slice(0, MAXIMUM_CONFIG_OPTIONS2);
|
|
188647
188491
|
}
|
|
188648
188492
|
function normalizeStandardLifecycle2(response) {
|
|
188649
188493
|
const lifecycle = isRecord43(response) ? response : {};
|
|
188650
|
-
return
|
|
188494
|
+
return normalizeConfigOptions2(lifecycle["configOptions"], lifecycle["modes"]);
|
|
188651
188495
|
}
|
|
188652
188496
|
function replaceStandardConfigOptions2(current2, value) {
|
|
188653
188497
|
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
|
|
188498
|
+
const withMode = next.some((option) => option.category === "mode") ? next : [...current2.filter((option) => option.category === "mode"), ...next].slice(0, MAXIMUM_CONFIG_OPTIONS2);
|
|
188499
|
+
return withMode;
|
|
188656
188500
|
}
|
|
188657
188501
|
function updateCurrentValue3(current2, configId, value) {
|
|
188658
188502
|
return current2.map((option) => option.id === configId ? { ...option, currentValue: value } : option);
|
|
@@ -188794,7 +188638,7 @@ function normalizeGrokLifecycle2(response) {
|
|
|
188794
188638
|
normalized.splice(modelIndex < 0 ? normalized.length : modelIndex + 1, 0, ...efforts);
|
|
188795
188639
|
}
|
|
188796
188640
|
}
|
|
188797
|
-
return
|
|
188641
|
+
return normalized.slice(0, 100);
|
|
188798
188642
|
}
|
|
188799
188643
|
function updateCurrentValue22(current2, category, value) {
|
|
188800
188644
|
return current2.map((option) => option.category === category ? { ...option, currentValue: value } : option);
|
|
@@ -190687,6 +190531,99 @@ async function resumeLocalMachine(arguments_, signal = new AbortController().sig
|
|
|
190687
190531
|
const installation = await openMobiusCliInstallation(signal, process.env);
|
|
190688
190532
|
return await target.resume(installation, signal, process.env);
|
|
190689
190533
|
}
|
|
190534
|
+
function selectValue2(name, value, description) {
|
|
190535
|
+
return {
|
|
190536
|
+
description,
|
|
190537
|
+
groupId: "",
|
|
190538
|
+
groupName: "",
|
|
190539
|
+
name,
|
|
190540
|
+
value
|
|
190541
|
+
};
|
|
190542
|
+
}
|
|
190543
|
+
function selectSetting2(id, name, description, currentValue, values) {
|
|
190544
|
+
return {
|
|
190545
|
+
booleanValue: false,
|
|
190546
|
+
category: "execution",
|
|
190547
|
+
currentValue,
|
|
190548
|
+
description,
|
|
190549
|
+
id,
|
|
190550
|
+
name,
|
|
190551
|
+
type: "select",
|
|
190552
|
+
values
|
|
190553
|
+
};
|
|
190554
|
+
}
|
|
190555
|
+
function selectedValue2(selection, configId) {
|
|
190556
|
+
if (selection.configId !== configId || selection.valueType !== "select" || selection.booleanValue || selection.value.length === 0) {
|
|
190557
|
+
throw new AgentSettingsConfigurationError2("The requested Agent setting is invalid");
|
|
190558
|
+
}
|
|
190559
|
+
return selection.value;
|
|
190560
|
+
}
|
|
190561
|
+
function validValue2(values, value) {
|
|
190562
|
+
if (!values.some((candidate) => candidate.value === value)) {
|
|
190563
|
+
throw new AgentSettingsConfigurationError2("The requested Agent setting is unavailable");
|
|
190564
|
+
}
|
|
190565
|
+
return value;
|
|
190566
|
+
}
|
|
190567
|
+
function openCodeConfiguration2(environment) {
|
|
190568
|
+
const encoded = environment["OPENCODE_CONFIG_CONTENT"];
|
|
190569
|
+
if (encoded === void 0 || encoded.length === 0) {
|
|
190570
|
+
return {};
|
|
190571
|
+
}
|
|
190572
|
+
let parsed;
|
|
190573
|
+
try {
|
|
190574
|
+
parsed = JSON.parse(encoded);
|
|
190575
|
+
} catch (cause) {
|
|
190576
|
+
throw new AgentSettingsConfigurationError2("The OpenCode configuration is invalid", { cause });
|
|
190577
|
+
}
|
|
190578
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
190579
|
+
throw new AgentSettingsConfigurationError2("The OpenCode configuration is invalid");
|
|
190580
|
+
}
|
|
190581
|
+
return Object.freeze({ ...parsed });
|
|
190582
|
+
}
|
|
190583
|
+
function openCodePermission2(value) {
|
|
190584
|
+
if (value === READ_ONLY_VALUE2) {
|
|
190585
|
+
return {
|
|
190586
|
+
"*": "deny",
|
|
190587
|
+
glob: "allow",
|
|
190588
|
+
grep: "allow",
|
|
190589
|
+
lsp: "allow",
|
|
190590
|
+
read: "allow",
|
|
190591
|
+
skill: "allow"
|
|
190592
|
+
};
|
|
190593
|
+
}
|
|
190594
|
+
if (value === WORKSPACE_WRITE_VALUE2) {
|
|
190595
|
+
return {
|
|
190596
|
+
"*": "allow",
|
|
190597
|
+
external_directory: "ask"
|
|
190598
|
+
};
|
|
190599
|
+
}
|
|
190600
|
+
return "allow";
|
|
190601
|
+
}
|
|
190602
|
+
function agentSettingsAdapterForAgent2(agentId) {
|
|
190603
|
+
if (agentId === "codex") {
|
|
190604
|
+
return codexAdapter2;
|
|
190605
|
+
}
|
|
190606
|
+
if (agentId === "deepseek-harness") {
|
|
190607
|
+
return deepSeekHarnessAdapter2;
|
|
190608
|
+
}
|
|
190609
|
+
if (agentId === "opencode") {
|
|
190610
|
+
return openCodeAdapter2;
|
|
190611
|
+
}
|
|
190612
|
+
return genericAdapter2;
|
|
190613
|
+
}
|
|
190614
|
+
function applyAgentLaunchSettings2(agent, selections) {
|
|
190615
|
+
const adapter = agentSettingsAdapterForAgent2(agent.id);
|
|
190616
|
+
let selectedAgent = agent;
|
|
190617
|
+
const sessionConfigurations = [];
|
|
190618
|
+
for (const selection of selections) {
|
|
190619
|
+
const applied = adapter.applyLaunchSelection(selectedAgent, selection);
|
|
190620
|
+
selectedAgent = applied.agent;
|
|
190621
|
+
if (!applied.handled) {
|
|
190622
|
+
sessionConfigurations.push(selection);
|
|
190623
|
+
}
|
|
190624
|
+
}
|
|
190625
|
+
return new AppliedAgentLaunchSettings2(selectedAgent, sessionConfigurations);
|
|
190626
|
+
}
|
|
190690
190627
|
function runtimeCredential2(relayUrl) {
|
|
190691
190628
|
return relayUrl.searchParams.get("token") ?? "";
|
|
190692
190629
|
}
|
|
@@ -190907,7 +190844,7 @@ function invalidResponse2(message) {
|
|
|
190907
190844
|
function isRecord102(value) {
|
|
190908
190845
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
190909
190846
|
}
|
|
190910
|
-
function
|
|
190847
|
+
function record23(value, name) {
|
|
190911
190848
|
if (!isRecord102(value)) {
|
|
190912
190849
|
throw invalidResponse2(`The service returned an invalid ${name}`);
|
|
190913
190850
|
}
|
|
@@ -190969,11 +190906,11 @@ function uploadingArtifact2(value) {
|
|
|
190969
190906
|
);
|
|
190970
190907
|
}
|
|
190971
190908
|
function decodeMobiusArtifactUpload2(value) {
|
|
190972
|
-
const artifact =
|
|
190909
|
+
const artifact = record23(value, "artifact upload authorization");
|
|
190973
190910
|
return new MobiusArtifactUpload2(uploadingArtifact2(artifact), stringField2(artifact, "uploadToken", 256));
|
|
190974
190911
|
}
|
|
190975
190912
|
function decodeMobiusArtifact2(value) {
|
|
190976
|
-
const artifact =
|
|
190913
|
+
const artifact = record23(value, "artifact");
|
|
190977
190914
|
const state = stringField2(artifact, "state", 32);
|
|
190978
190915
|
if (state === "uploading") {
|
|
190979
190916
|
return uploadingArtifact2(artifact);
|
|
@@ -191886,30 +191823,157 @@ async function resolveSessionDirectories2(directories, bindingId, directoryId22,
|
|
|
191886
191823
|
return new ResolvedSessionDirectories2(cwd, additionalDirectories, additionalDirectoryEntries);
|
|
191887
191824
|
}
|
|
191888
191825
|
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
191826
|
const agent = config22.catalog.find(command.agentId);
|
|
191897
|
-
const
|
|
191898
|
-
|
|
191827
|
+
const cwd = await directories.resolve(config22.bindingId, "default", signal);
|
|
191828
|
+
const baseSnapshot = await sessions.inspectAgentSettings({
|
|
191829
|
+
additionalDirectories: [],
|
|
191899
191830
|
agent,
|
|
191900
|
-
cwd
|
|
191831
|
+
cwd,
|
|
191901
191832
|
signal
|
|
191902
191833
|
});
|
|
191834
|
+
const selectedSnapshot = command.model === void 0 ? baseSnapshot : await sessions.inspectAgentSettings({
|
|
191835
|
+
additionalDirectories: [],
|
|
191836
|
+
agent,
|
|
191837
|
+
cwd,
|
|
191838
|
+
model: command.model,
|
|
191839
|
+
signal
|
|
191840
|
+
});
|
|
191841
|
+
const adapter = agentSettingsAdapterForAgent2(agent.id);
|
|
191842
|
+
const baseSettings = settingsFromSnapshot2(agent, baseSnapshot.configOptions);
|
|
191843
|
+
const settings = settingsFromSnapshot2(agent, selectedSnapshot.configOptions);
|
|
191844
|
+
const modelEffort = await discoverModelEffort2(
|
|
191845
|
+
command,
|
|
191846
|
+
agent,
|
|
191847
|
+
adapter.modelEffortResolution,
|
|
191848
|
+
baseSnapshot.configOptions,
|
|
191849
|
+
selectedSnapshot.configOptions,
|
|
191850
|
+
cwd,
|
|
191851
|
+
sessions,
|
|
191852
|
+
signal
|
|
191853
|
+
);
|
|
191903
191854
|
return {
|
|
191904
191855
|
agentId: command.agentId,
|
|
191905
|
-
agentName:
|
|
191906
|
-
agentVersion:
|
|
191907
|
-
configOptions: snapshot.configOptions,
|
|
191908
|
-
directoryId: command.directoryId,
|
|
191856
|
+
agentName: selectedSnapshot.agentName,
|
|
191857
|
+
agentVersion: selectedSnapshot.agentVersion,
|
|
191909
191858
|
kind: AGENT_SETTINGS_DISCOVERED_KIND2,
|
|
191910
|
-
|
|
191859
|
+
modelEffort,
|
|
191860
|
+
requestId: command.requestId,
|
|
191861
|
+
settings,
|
|
191862
|
+
settingsRevision: settingsRevision2(agent, baseSnapshot.agentVersion, baseSettings, modelEffort)
|
|
191863
|
+
};
|
|
191864
|
+
}
|
|
191865
|
+
function settingFromOption2(option) {
|
|
191866
|
+
return {
|
|
191867
|
+
booleanValue: option.booleanValue,
|
|
191868
|
+
category: option.category,
|
|
191869
|
+
defaultValue: option.type === "boolean" ? "" : option.currentValue,
|
|
191870
|
+
description: option.description,
|
|
191871
|
+
id: option.id,
|
|
191872
|
+
name: option.name,
|
|
191873
|
+
type: option.type,
|
|
191874
|
+
values: option.values
|
|
191875
|
+
};
|
|
191876
|
+
}
|
|
191877
|
+
function settingsFromSnapshot2(agent, configOptions) {
|
|
191878
|
+
const settings = [
|
|
191879
|
+
...agentSettingsAdapterForAgent2(agent.id).settings(agent).map(settingFromOption2),
|
|
191880
|
+
...configOptions.map(settingFromOption2)
|
|
191881
|
+
];
|
|
191882
|
+
const identifiers = /* @__PURE__ */ new Set();
|
|
191883
|
+
for (const setting of settings) {
|
|
191884
|
+
if (identifiers.has(setting.id)) {
|
|
191885
|
+
throw new AcpExecutionError2(
|
|
191886
|
+
"The Agent returned duplicate setting identifiers",
|
|
191887
|
+
{},
|
|
191888
|
+
"invalid_session_configuration"
|
|
191889
|
+
);
|
|
191890
|
+
}
|
|
191891
|
+
identifiers.add(setting.id);
|
|
191892
|
+
}
|
|
191893
|
+
if (settings.length > 128) {
|
|
191894
|
+
throw new AcpExecutionError2("The Agent returned too many settings", {}, "invalid_session_configuration");
|
|
191895
|
+
}
|
|
191896
|
+
return settings;
|
|
191897
|
+
}
|
|
191898
|
+
function modelOption2(options) {
|
|
191899
|
+
return options.find((option) => option.id === "model" || option.category === "model");
|
|
191900
|
+
}
|
|
191901
|
+
function effortOption2(options) {
|
|
191902
|
+
return options.find((option) => option.id === "reasoning_effort" || option.category === "thought_level");
|
|
191903
|
+
}
|
|
191904
|
+
function unavailableModelEffort2() {
|
|
191905
|
+
return {
|
|
191906
|
+
effortSettingId: "",
|
|
191907
|
+
modelSettingId: "",
|
|
191908
|
+
resolution: AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2,
|
|
191909
|
+
valuesByModel: {}
|
|
191911
191910
|
};
|
|
191912
191911
|
}
|
|
191912
|
+
async function discoverModelEffort2(command, agent, resolution, initialOptions, selectedOptions, cwd, sessions, signal) {
|
|
191913
|
+
const model = modelOption2(initialOptions);
|
|
191914
|
+
if (resolution !== AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 && resolution !== AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2) {
|
|
191915
|
+
return unavailableModelEffort2();
|
|
191916
|
+
}
|
|
191917
|
+
if (model === void 0 || model.type !== "select" || model.values.length === 0) {
|
|
191918
|
+
return unavailableModelEffort2();
|
|
191919
|
+
}
|
|
191920
|
+
const inspectModel = async (modelValue) => (await sessions.inspectAgentSettings({
|
|
191921
|
+
additionalDirectories: [],
|
|
191922
|
+
agent,
|
|
191923
|
+
cwd,
|
|
191924
|
+
model: modelValue,
|
|
191925
|
+
signal
|
|
191926
|
+
})).configOptions;
|
|
191927
|
+
const valuesByModel = {};
|
|
191928
|
+
if (resolution === "complete") {
|
|
191929
|
+
const effort = effortOption2(initialOptions);
|
|
191930
|
+
if (effort === void 0 || effort.type !== "select" || effort.values.length < 2) {
|
|
191931
|
+
return unavailableModelEffort2();
|
|
191932
|
+
}
|
|
191933
|
+
for (const value of model.values) {
|
|
191934
|
+
const selectedEffort2 = effortOption2(await inspectModel(value.value));
|
|
191935
|
+
valuesByModel[value.value] = selectedEffort2?.type === "select" ? selectedEffort2.values : [];
|
|
191936
|
+
}
|
|
191937
|
+
return {
|
|
191938
|
+
effortSettingId: effort.id,
|
|
191939
|
+
modelSettingId: model.id,
|
|
191940
|
+
resolution: "complete",
|
|
191941
|
+
valuesByModel
|
|
191942
|
+
};
|
|
191943
|
+
}
|
|
191944
|
+
if (command.model !== void 0) {
|
|
191945
|
+
if (!model.values.some((value) => value.value === command.model)) {
|
|
191946
|
+
throw new AcpExecutionError2("The selected Agent model is unavailable", {}, "invalid_session_configuration");
|
|
191947
|
+
}
|
|
191948
|
+
const selectedEffort2 = effortOption2(selectedOptions);
|
|
191949
|
+
valuesByModel[command.model] = selectedEffort2?.type === "select" ? selectedEffort2.values : [];
|
|
191950
|
+
}
|
|
191951
|
+
const selectedEffort = effortOption2(selectedOptions);
|
|
191952
|
+
return {
|
|
191953
|
+
effortSettingId: selectedEffort?.id ?? "",
|
|
191954
|
+
modelSettingId: model.id,
|
|
191955
|
+
resolution: "on_model_selection",
|
|
191956
|
+
valuesByModel
|
|
191957
|
+
};
|
|
191958
|
+
}
|
|
191959
|
+
function settingsRevision2(agent, reportedAgentVersion, settings, modelEffort) {
|
|
191960
|
+
const revisionModelEffort = modelEffort.resolution === AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 ? modelEffort : {
|
|
191961
|
+
effortSettingId: "",
|
|
191962
|
+
modelSettingId: modelEffort.modelSettingId,
|
|
191963
|
+
resolution: modelEffort.resolution,
|
|
191964
|
+
valuesByModel: {}
|
|
191965
|
+
};
|
|
191966
|
+
return (0, import_node_crypto20.createHash)("sha256").update(
|
|
191967
|
+
JSON.stringify({
|
|
191968
|
+
adapterVersion: agent.adapterVersion,
|
|
191969
|
+
agentId: agent.id,
|
|
191970
|
+
agentVersion: agent.agentVersion,
|
|
191971
|
+
modelEffort: revisionModelEffort,
|
|
191972
|
+
reportedAgentVersion,
|
|
191973
|
+
settings
|
|
191974
|
+
})
|
|
191975
|
+
).digest("hex");
|
|
191976
|
+
}
|
|
191913
191977
|
async function executeWorkspaceList2(socket, command, directories, audit, signal) {
|
|
191914
191978
|
try {
|
|
191915
191979
|
const listing = await directories.list(command.bindingId, command.directoryId, signal);
|
|
@@ -192097,23 +192161,26 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192097
192161
|
"prompt_queue_target_unavailable"
|
|
192098
192162
|
);
|
|
192099
192163
|
}
|
|
192164
|
+
const appliedSettings = command.sessionConfigurations === void 0 ? void 0 : agentForSessionConfiguration2(agent, command.sessionConfigurations);
|
|
192165
|
+
const executionAgent = appliedSettings?.agent ?? agent;
|
|
192166
|
+
const sessionConfigurations = appliedSettings?.sessionConfigurations;
|
|
192100
192167
|
if (command.sessionConfigurations !== void 0) {
|
|
192101
192168
|
const prepared = await sessions.prepareExecutionSession({
|
|
192102
192169
|
additionalDirectories: resolved.additionalDirectories,
|
|
192103
|
-
agent,
|
|
192170
|
+
agent: executionAgent,
|
|
192104
192171
|
cwd: resolved.cwd,
|
|
192105
192172
|
sessionId: command.sessionId,
|
|
192106
192173
|
signal
|
|
192107
192174
|
});
|
|
192108
192175
|
if (command.disposition === SessionPromptDisposition2.Steer) {
|
|
192109
|
-
assertCompleteSessionConfiguration2(prepared.configOptions,
|
|
192176
|
+
assertCompleteSessionConfiguration2(prepared.configOptions, sessionConfigurations ?? []);
|
|
192110
192177
|
} else {
|
|
192111
192178
|
await applyCompleteSessionConfiguration2(
|
|
192112
192179
|
sessions,
|
|
192113
192180
|
audit,
|
|
192114
192181
|
prepared.configOptions,
|
|
192115
|
-
|
|
192116
|
-
|
|
192182
|
+
sessionConfigurations ?? [],
|
|
192183
|
+
executionAgent,
|
|
192117
192184
|
resolved.cwd,
|
|
192118
192185
|
resolved.additionalDirectories,
|
|
192119
192186
|
command.commandId,
|
|
@@ -192144,7 +192211,7 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192144
192211
|
if (command.disposition === SessionPromptDisposition2.Steer) {
|
|
192145
192212
|
await sessions.steerPrompt({
|
|
192146
192213
|
additionalDirectories: resolved.additionalDirectories,
|
|
192147
|
-
agent,
|
|
192214
|
+
agent: executionAgent,
|
|
192148
192215
|
commandId: command.commandId,
|
|
192149
192216
|
cwd: resolved.cwd,
|
|
192150
192217
|
images: attachments.images,
|
|
@@ -192158,7 +192225,7 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192158
192225
|
} else {
|
|
192159
192226
|
const result = await sessions.runPrompt({
|
|
192160
192227
|
additionalDirectories: resolved.additionalDirectories,
|
|
192161
|
-
agent,
|
|
192228
|
+
agent: executionAgent,
|
|
192162
192229
|
commandId: command.commandId,
|
|
192163
192230
|
cwd: resolved.cwd,
|
|
192164
192231
|
disposition: command.disposition,
|
|
@@ -192225,6 +192292,16 @@ async function executePrompt2(outbox, publisher, command, config22, directories,
|
|
|
192225
192292
|
function invalidSessionConfiguration2(message) {
|
|
192226
192293
|
return new AcpExecutionError2(message, {}, "invalid_session_configuration");
|
|
192227
192294
|
}
|
|
192295
|
+
function agentForSessionConfiguration2(agent, selections) {
|
|
192296
|
+
try {
|
|
192297
|
+
return applyAgentLaunchSettings2(agent, selections);
|
|
192298
|
+
} catch (error622) {
|
|
192299
|
+
if (error622 instanceof Error) {
|
|
192300
|
+
throw invalidSessionConfiguration2(error622.message);
|
|
192301
|
+
}
|
|
192302
|
+
throw error622;
|
|
192303
|
+
}
|
|
192304
|
+
}
|
|
192228
192305
|
function validateSessionConfigurationSelection2(option, selection) {
|
|
192229
192306
|
if (option.type !== selection.valueType) {
|
|
192230
192307
|
throw invalidSessionConfiguration2(`The Agent setting ${selection.configId} changed type`);
|
|
@@ -192257,17 +192334,6 @@ function assertSessionConfigurationSchema2(options, selections) {
|
|
|
192257
192334
|
}
|
|
192258
192335
|
}
|
|
192259
192336
|
}
|
|
192260
|
-
function assertSessionConfigurationCoverage2(options, selections) {
|
|
192261
|
-
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
192262
|
-
if (selectionsById.size !== selections.length) {
|
|
192263
|
-
throw invalidSessionConfiguration2("The Turn configuration contains duplicate Agent settings");
|
|
192264
|
-
}
|
|
192265
|
-
for (const option of options) {
|
|
192266
|
-
if (!selectionsById.has(option.id)) {
|
|
192267
|
-
throw invalidSessionConfiguration2(`The Turn configuration does not match Agent setting ${option.id}`);
|
|
192268
|
-
}
|
|
192269
|
-
}
|
|
192270
|
-
}
|
|
192271
192337
|
function sessionConfigurationSelectionIsAvailable2(option, selection) {
|
|
192272
192338
|
if (option.type !== selection.valueType) {
|
|
192273
192339
|
return false;
|
|
@@ -192282,20 +192348,17 @@ function sessionConfigurationMatches2(option, selection) {
|
|
|
192282
192348
|
return option.type === "boolean" ? option.booleanValue === selection.booleanValue : option.currentValue === selection.value;
|
|
192283
192349
|
}
|
|
192284
192350
|
function sessionConfigurationPriority2(selection, options) {
|
|
192285
|
-
if (selection.configId === "permission_mode") {
|
|
192286
|
-
return 0;
|
|
192287
|
-
}
|
|
192288
192351
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
192289
192352
|
if (selection.configId === "model" || option?.category === "model") {
|
|
192290
|
-
return
|
|
192353
|
+
return 0;
|
|
192291
192354
|
}
|
|
192292
192355
|
if (selection.configId === "reasoning_effort" || option?.category === "thought_level") {
|
|
192293
|
-
return
|
|
192356
|
+
return 1;
|
|
192294
192357
|
}
|
|
192295
192358
|
if (option?.category === "model_config") {
|
|
192296
|
-
return
|
|
192359
|
+
return 2;
|
|
192297
192360
|
}
|
|
192298
|
-
return
|
|
192361
|
+
return 3;
|
|
192299
192362
|
}
|
|
192300
192363
|
function assertCompleteSessionConfiguration2(options, selections) {
|
|
192301
192364
|
assertSessionConfigurationSchema2(options, selections);
|
|
@@ -192311,12 +192374,6 @@ function assertAppliedSessionConfiguration2(options, selections) {
|
|
|
192311
192374
|
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
192312
192375
|
for (const option of options) {
|
|
192313
192376
|
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
192377
|
if (selection === void 0 || !sessionConfigurationSelectionIsAvailable2(option, selection)) {
|
|
192321
192378
|
continue;
|
|
192322
192379
|
}
|
|
@@ -192337,61 +192394,56 @@ function unavailableSessionConfigurationCategory2(selection) {
|
|
|
192337
192394
|
async function applySessionConfigurationSelection2(sessions, audit, options, selection, agent, cwd, additionalDirectories, commandId, sessionId, signal) {
|
|
192338
192395
|
const option = options.find((candidate) => candidate.id === selection.configId);
|
|
192339
192396
|
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
|
-
}
|
|
192397
|
+
warnIgnoredSetting2(
|
|
192398
|
+
audit,
|
|
192399
|
+
"session_configuration_setting_ignored",
|
|
192400
|
+
commandId,
|
|
192401
|
+
sessionId,
|
|
192402
|
+
agent.id,
|
|
192403
|
+
selection,
|
|
192404
|
+
unavailableSessionConfigurationCategory2(selection),
|
|
192405
|
+
"setting_unavailable"
|
|
192406
|
+
);
|
|
192407
|
+
return options;
|
|
192408
|
+
}
|
|
192409
|
+
if (option.type !== selection.valueType) {
|
|
192410
|
+
warnIgnoredSetting2(
|
|
192411
|
+
audit,
|
|
192412
|
+
"session_configuration_setting_ignored",
|
|
192413
|
+
commandId,
|
|
192414
|
+
sessionId,
|
|
192415
|
+
agent.id,
|
|
192416
|
+
selection,
|
|
192417
|
+
option.category,
|
|
192418
|
+
"setting_schema_mismatch"
|
|
192419
|
+
);
|
|
192420
|
+
return options;
|
|
192421
|
+
}
|
|
192422
|
+
if (option.type === "boolean" && selection.value.length > 0 || option.type === "select" && selection.booleanValue) {
|
|
192423
|
+
warnIgnoredSetting2(
|
|
192424
|
+
audit,
|
|
192425
|
+
"session_configuration_setting_ignored",
|
|
192426
|
+
commandId,
|
|
192427
|
+
sessionId,
|
|
192428
|
+
agent.id,
|
|
192429
|
+
selection,
|
|
192430
|
+
option.category,
|
|
192431
|
+
"selection_schema_mismatch"
|
|
192432
|
+
);
|
|
192433
|
+
return options;
|
|
192434
|
+
}
|
|
192435
|
+
if (option.type === "select" && !option.values.some((value) => value.value === selection.value)) {
|
|
192436
|
+
warnIgnoredSetting2(
|
|
192437
|
+
audit,
|
|
192438
|
+
"session_configuration_setting_ignored",
|
|
192439
|
+
commandId,
|
|
192440
|
+
sessionId,
|
|
192441
|
+
agent.id,
|
|
192442
|
+
selection,
|
|
192443
|
+
option.category,
|
|
192444
|
+
"value_unavailable"
|
|
192445
|
+
);
|
|
192446
|
+
return options;
|
|
192395
192447
|
}
|
|
192396
192448
|
if (sessionConfigurationMatches2(option, selection)) {
|
|
192397
192449
|
return options;
|
|
@@ -192410,7 +192462,6 @@ async function applySessionConfigurationSelection2(sessions, audit, options, sel
|
|
|
192410
192462
|
});
|
|
192411
192463
|
}
|
|
192412
192464
|
async function applyCompleteSessionConfiguration2(sessions, audit, initialOptions, selections, agent, cwd, additionalDirectories, commandId, sessionId, signal) {
|
|
192413
|
-
assertSessionConfigurationCoverage2(initialOptions, selections);
|
|
192414
192465
|
let options = initialOptions;
|
|
192415
192466
|
const orderedSelections = selections.toSorted((left, right) => {
|
|
192416
192467
|
const priority = sessionConfigurationPriority2(left, initialOptions) - sessionConfigurationPriority2(right, initialOptions);
|
|
@@ -192898,7 +192949,7 @@ async function runRelayConnection2(config22, directories, audit, sessions, insta
|
|
|
192898
192949
|
);
|
|
192899
192950
|
audit.record({
|
|
192900
192951
|
commandId: command2.requestId,
|
|
192901
|
-
details: { agentId: command2.agentId
|
|
192952
|
+
details: { agentId: command2.agentId },
|
|
192902
192953
|
event: "agent_settings_discovered",
|
|
192903
192954
|
sessionId: `agent-settings:${command2.agentId}`
|
|
192904
192955
|
});
|
|
@@ -193557,9 +193608,9 @@ async function createMobiusRuntimeEngine(connection, signal, environment = proce
|
|
|
193557
193608
|
)
|
|
193558
193609
|
);
|
|
193559
193610
|
}
|
|
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;
|
|
193611
|
+
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
193612
|
var init_dist3 = __esm({
|
|
193562
|
-
"node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
193613
|
+
"node_modules/.pnpm/@moxt-ai+mobius@0.0.53/node_modules/@moxt-ai/mobius/dist/index.js"() {
|
|
193563
193614
|
"use strict";
|
|
193564
193615
|
init_cjs_shims();
|
|
193565
193616
|
init_acp2();
|
|
@@ -206475,21 +206526,46 @@ ${content32.join("\n")}
|
|
|
206475
206526
|
values: external_exports4.array(configValueSchema2).max(500).readonly()
|
|
206476
206527
|
}).readonly();
|
|
206477
206528
|
sessionConfigOptionsSchema2 = external_exports4.array(sessionConfigOptionSchema2).max(100).readonly();
|
|
206529
|
+
agentSettingSchema2 = external_exports4.strictObject({
|
|
206530
|
+
booleanValue: external_exports4.boolean(),
|
|
206531
|
+
category: external_exports4.string().max(128),
|
|
206532
|
+
defaultValue: external_exports4.string().max(500),
|
|
206533
|
+
description: SHORT_TEXT2,
|
|
206534
|
+
id: external_exports4.string().min(1).max(128),
|
|
206535
|
+
name: external_exports4.string().min(1).max(255),
|
|
206536
|
+
type: external_exports4.enum(["boolean", "select"]),
|
|
206537
|
+
values: external_exports4.array(configValueSchema2).max(500).readonly()
|
|
206538
|
+
}).readonly();
|
|
206539
|
+
agentSettingsSchema2 = external_exports4.array(agentSettingSchema2).max(128).readonly();
|
|
206540
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2 = "complete";
|
|
206541
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2 = "on_model_selection";
|
|
206542
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2 = "unavailable";
|
|
206543
|
+
agentModelEffortResolutionSchema2 = external_exports4.enum([
|
|
206544
|
+
AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2,
|
|
206545
|
+
AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2,
|
|
206546
|
+
AGENT_MODEL_EFFORT_RESOLUTION_UNAVAILABLE2
|
|
206547
|
+
]);
|
|
206548
|
+
agentModelEffortSchema2 = external_exports4.strictObject({
|
|
206549
|
+
effortSettingId: external_exports4.string().max(128),
|
|
206550
|
+
modelSettingId: external_exports4.string().max(128),
|
|
206551
|
+
resolution: agentModelEffortResolutionSchema2,
|
|
206552
|
+
valuesByModel: external_exports4.record(external_exports4.string().min(1).max(500), external_exports4.array(configValueSchema2).max(500).readonly()).readonly()
|
|
206553
|
+
}).readonly();
|
|
206478
206554
|
agentSettingsDiscoverCommandSchema2 = external_exports4.strictObject({
|
|
206479
|
-
additionalDirectoryIds: external_exports4.array(DIRECTORY_IDENTIFIER2).max(16).readonly(),
|
|
206480
206555
|
agentId: IDENTIFIER2,
|
|
206481
|
-
directoryId: DIRECTORY_IDENTIFIER2,
|
|
206482
206556
|
kind: external_exports4.literal(AGENT_SETTINGS_DISCOVER_KIND2),
|
|
206557
|
+
model: external_exports4.string().min(1).max(500).optional(),
|
|
206483
206558
|
requestId: IDENTIFIER2
|
|
206484
206559
|
}).readonly();
|
|
206485
206560
|
agentSettingsDiscoveredEventSchema2 = external_exports4.strictObject({
|
|
206486
206561
|
agentId: IDENTIFIER2,
|
|
206487
206562
|
agentName: external_exports4.string().max(255),
|
|
206488
206563
|
agentVersion: external_exports4.string().max(128),
|
|
206489
|
-
configOptions: sessionConfigOptionsSchema2,
|
|
206490
|
-
directoryId: DIRECTORY_IDENTIFIER2,
|
|
206491
206564
|
kind: external_exports4.literal(AGENT_SETTINGS_DISCOVERED_KIND2),
|
|
206492
|
-
|
|
206565
|
+
modelEffort: agentModelEffortSchema2,
|
|
206566
|
+
requestId: IDENTIFIER2,
|
|
206567
|
+
settings: agentSettingsSchema2,
|
|
206568
|
+
settingsRevision: external_exports4.string().regex(/^[a-f0-9]{64}$/)
|
|
206493
206569
|
}).readonly();
|
|
206494
206570
|
agentSettingsDiscoveryFailedEventSchema2 = external_exports4.strictObject({
|
|
206495
206571
|
code: IDENTIFIER2,
|
|
@@ -207221,137 +207297,6 @@ ${content32.join("\n")}
|
|
|
207221
207297
|
this.stdout = stdout;
|
|
207222
207298
|
}
|
|
207223
207299
|
};
|
|
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
207300
|
LocalAgentDefinition2 = class _LocalAgentDefinition2 {
|
|
207356
207301
|
adapterIdentity;
|
|
207357
207302
|
adapterPath;
|
|
@@ -207364,8 +207309,7 @@ ${content32.join("\n")}
|
|
|
207364
207309
|
environment;
|
|
207365
207310
|
id;
|
|
207366
207311
|
label;
|
|
207367
|
-
|
|
207368
|
-
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity2(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities2(), permissionProfile = permissionProfileForAgent2(id)) {
|
|
207312
|
+
constructor(id, label, command, arguments_, environment = {}, adapterVersion = "", agentVersion = "", adapterIdentity = readTrustedIdentity2(command), agentIdentity = adapterIdentity, capabilities = unsupportedSessionCapabilities2()) {
|
|
207369
207313
|
this.adapterIdentity = adapterIdentity;
|
|
207370
207314
|
this.adapterPath = adapterIdentity.realPath;
|
|
207371
207315
|
this.adapterVersion = adapterVersion;
|
|
@@ -207374,29 +207318,22 @@ ${content32.join("\n")}
|
|
|
207374
207318
|
this.capabilities = Object.freeze({ ...capabilities });
|
|
207375
207319
|
this.id = id;
|
|
207376
207320
|
this.label = label;
|
|
207377
|
-
this.permissionProfile = permissionProfile;
|
|
207378
207321
|
this.command = adapterIdentity.realPath;
|
|
207379
207322
|
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
|
-
};
|
|
207323
|
+
this.environment = Object.freeze({ ...environment });
|
|
207324
|
+
}
|
|
207325
|
+
withEnvironment = (environment) => new _LocalAgentDefinition2(
|
|
207326
|
+
this.id,
|
|
207327
|
+
this.label,
|
|
207328
|
+
this.command,
|
|
207329
|
+
this.arguments,
|
|
207330
|
+
environment,
|
|
207331
|
+
this.adapterVersion,
|
|
207332
|
+
this.agentVersion,
|
|
207333
|
+
this.adapterIdentity,
|
|
207334
|
+
this.agentIdentity,
|
|
207335
|
+
this.capabilities
|
|
207336
|
+
);
|
|
207400
207337
|
};
|
|
207401
207338
|
InstallableAgentDefinition2 = class {
|
|
207402
207339
|
id;
|
|
@@ -211038,7 +210975,6 @@ ${content32.join("\n")}
|
|
|
211038
210975
|
#preSessionUpdates = [];
|
|
211039
210976
|
#processExit;
|
|
211040
210977
|
#metrics;
|
|
211041
|
-
#permissionProfile;
|
|
211042
210978
|
#sessionConfigProtocol;
|
|
211043
210979
|
#store;
|
|
211044
210980
|
#emittedToolImages = /* @__PURE__ */ new Set();
|
|
@@ -211082,7 +211018,6 @@ ${content32.join("\n")}
|
|
|
211082
211018
|
this.#getObserver = getObserver;
|
|
211083
211019
|
this.#mobiusSessionId = mobiusSessionId;
|
|
211084
211020
|
this.#metrics = metrics;
|
|
211085
|
-
this.#permissionProfile = agent.permissionProfile;
|
|
211086
211021
|
this.#sessionConfigProtocol = sessionConfigProtocolForAgent2(agent.id);
|
|
211087
211022
|
this.#store = store;
|
|
211088
211023
|
this.#verifiedAgentVersion = agent.agentVersion;
|
|
@@ -211189,6 +211124,7 @@ ${content32.join("\n")}
|
|
|
211189
211124
|
belongsTo = (agentId, cwd, additionalDirectories) => this.#agentId === agentId && this.#cwd === cwd && arraysEqual2(this.#additionalDirectories, additionalDirectories);
|
|
211190
211125
|
usesEnvironment = (environment) => recordsEqual2(this.#environment, environment);
|
|
211191
211126
|
canRebind = () => !this.#prompted && !this.#turn.running;
|
|
211127
|
+
hasRunningTurn = () => this.#turn.running;
|
|
211192
211128
|
prepared = () => new AcpPreparedSession2(
|
|
211193
211129
|
this.#agentName,
|
|
211194
211130
|
this.#agentVersion,
|
|
@@ -211552,10 +211488,7 @@ ${content32.join("\n")}
|
|
|
211552
211488
|
this.selectNativeSession(created.sessionId);
|
|
211553
211489
|
lifecycleResponse = created;
|
|
211554
211490
|
}
|
|
211555
|
-
this.#configOptions =
|
|
211556
|
-
this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse),
|
|
211557
|
-
this.#permissionProfile.option(this.#environment)
|
|
211558
|
-
);
|
|
211491
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeLifecycle(lifecycleResponse);
|
|
211559
211492
|
await this.#updateTail;
|
|
211560
211493
|
signal.throwIfAborted();
|
|
211561
211494
|
if (this.#prompted) {
|
|
@@ -211656,12 +211589,17 @@ ${content32.join("\n")}
|
|
|
211656
211589
|
)
|
|
211657
211590
|
}
|
|
211658
211591
|
);
|
|
211592
|
+
const applied = configured.find((option) => option.id === options.configId);
|
|
211593
|
+
if (applied === void 0 || applied.type !== options.valueType || applied.type === "boolean" && applied.booleanValue !== options.booleanValue || applied.type === "select" && applied.currentValue !== options.value) {
|
|
211594
|
+
throw new AcpExecutionError2(
|
|
211595
|
+
"The Agent did not apply the requested session configuration",
|
|
211596
|
+
{},
|
|
211597
|
+
"invalid_session_configuration"
|
|
211598
|
+
);
|
|
211599
|
+
}
|
|
211659
211600
|
await this.#updateTail;
|
|
211660
211601
|
if (this.#configRevision === configRevision) {
|
|
211661
|
-
this.#configOptions =
|
|
211662
|
-
configured,
|
|
211663
|
-
this.#permissionProfile.option(this.#environment)
|
|
211664
|
-
);
|
|
211602
|
+
this.#configOptions = configured;
|
|
211665
211603
|
}
|
|
211666
211604
|
} catch (error622) {
|
|
211667
211605
|
if (error622 instanceof SessionConfigProtocolError2) {
|
|
@@ -212139,9 +212077,9 @@ ${content32.join("\n")}
|
|
|
212139
212077
|
return;
|
|
212140
212078
|
}
|
|
212141
212079
|
if (update.sessionUpdate === "config_option_update") {
|
|
212142
|
-
this.#configOptions =
|
|
212143
|
-
this.#
|
|
212144
|
-
|
|
212080
|
+
this.#configOptions = this.#sessionConfigProtocol.normalizeUpdate(
|
|
212081
|
+
this.#configOptions,
|
|
212082
|
+
update.configOptions
|
|
212145
212083
|
);
|
|
212146
212084
|
this.#configRevision += 1;
|
|
212147
212085
|
await this.emitConfigUpdate();
|
|
@@ -212672,16 +212610,12 @@ ${content32.join("\n")}
|
|
|
212672
212610
|
const operation = (async () => {
|
|
212673
212611
|
try {
|
|
212674
212612
|
await this.#retireSessionProcess(options.sessionId, existing, async () => await existing.close());
|
|
212675
|
-
this.#store.remove(options.sessionId);
|
|
212676
212613
|
const runtime = await this.#startRetainedSessionProcess(
|
|
212677
212614
|
options,
|
|
212678
212615
|
async () => await AcpProcessSession2.start(options, () => this.#observer, this.#store)
|
|
212679
212616
|
);
|
|
212680
212617
|
try {
|
|
212681
212618
|
for (const desired of desiredConfigOptions) {
|
|
212682
|
-
if (desired.id === PERMISSION_MODE_CONFIG_ID2) {
|
|
212683
|
-
continue;
|
|
212684
|
-
}
|
|
212685
212619
|
const current2 = runtime.prepared().configOptions.find((option) => option.id === desired.id);
|
|
212686
212620
|
if (current2 === void 0 || current2.type !== desired.type) {
|
|
212687
212621
|
continue;
|
|
@@ -212712,7 +212646,6 @@ ${content32.join("\n")}
|
|
|
212712
212646
|
}
|
|
212713
212647
|
} catch (error622) {
|
|
212714
212648
|
await this.#retireSessionProcess(options.sessionId, runtime, async () => await runtime.close());
|
|
212715
|
-
this.#store.remove(options.sessionId);
|
|
212716
212649
|
throw error622;
|
|
212717
212650
|
}
|
|
212718
212651
|
return runtime;
|
|
@@ -212779,11 +212712,21 @@ ${content32.join("\n")}
|
|
|
212779
212712
|
() => this.#agentSettingsObserver,
|
|
212780
212713
|
new MemoryAcpSessionStore2()
|
|
212781
212714
|
),
|
|
212782
|
-
(runtime) => {
|
|
212715
|
+
async (runtime) => {
|
|
212783
212716
|
const prepared = runtime.prepared();
|
|
212784
|
-
|
|
212785
|
-
|
|
212786
|
-
|
|
212717
|
+
const model = options.model;
|
|
212718
|
+
const configOptions = model === void 0 ? prepared.configOptions : await runtime.configure({
|
|
212719
|
+
...options,
|
|
212720
|
+
booleanValue: false,
|
|
212721
|
+
configId: prepared.configOptions.find(
|
|
212722
|
+
(option) => option.id === "model" || option.category === "model"
|
|
212723
|
+
)?.id ?? "model",
|
|
212724
|
+
requestId: "agent-settings-model",
|
|
212725
|
+
sessionId: `agent-settings-${crypto.randomUUID()}`,
|
|
212726
|
+
value: model,
|
|
212727
|
+
valueType: "select"
|
|
212728
|
+
});
|
|
212729
|
+
return new AcpAgentSettingsSnapshot2(prepared.agentName, prepared.agentVersion, configOptions);
|
|
212787
212730
|
},
|
|
212788
212731
|
async (runtime) => await runtime.close()
|
|
212789
212732
|
);
|
|
@@ -212832,11 +212775,11 @@ ${content32.join("\n")}
|
|
|
212832
212775
|
this.#touchExpectedSession(options.sessionId, existing);
|
|
212833
212776
|
return existing.prepared();
|
|
212834
212777
|
}
|
|
212835
|
-
if (
|
|
212778
|
+
if (existing.hasRunningTurn()) {
|
|
212836
212779
|
throw new AcpExecutionError2(
|
|
212837
|
-
"The execution environment cannot change
|
|
212780
|
+
"The execution environment cannot change while a conversation turn is running",
|
|
212838
212781
|
{},
|
|
212839
|
-
"
|
|
212782
|
+
"session_busy"
|
|
212840
212783
|
);
|
|
212841
212784
|
}
|
|
212842
212785
|
return (await this.#replaceExecutionPreparation(existing, options)).prepared();
|
|
@@ -212874,30 +212817,6 @@ ${content32.join("\n")}
|
|
|
212874
212817
|
this.#beginSessionUse(options.sessionId);
|
|
212875
212818
|
try {
|
|
212876
212819
|
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
212820
|
return await runtime.configure(options);
|
|
212902
212821
|
} finally {
|
|
212903
212822
|
this.#endSessionUse(options.sessionId);
|
|
@@ -213348,7 +213267,7 @@ ${content32.join("\n")}
|
|
|
213348
213267
|
this.database.exec("ALTER TABLE audit_events ADD COLUMN details_json TEXT NOT NULL DEFAULT '{}'");
|
|
213349
213268
|
}
|
|
213350
213269
|
}
|
|
213351
|
-
record(
|
|
213270
|
+
record(record32) {
|
|
213352
213271
|
this.database.prepare(
|
|
213353
213272
|
`
|
|
213354
213273
|
INSERT INTO audit_events (
|
|
@@ -213361,10 +213280,10 @@ ${content32.join("\n")}
|
|
|
213361
213280
|
`
|
|
213362
213281
|
).run(
|
|
213363
213282
|
(/* @__PURE__ */ new Date()).toISOString(),
|
|
213364
|
-
|
|
213365
|
-
|
|
213366
|
-
|
|
213367
|
-
JSON.stringify(
|
|
213283
|
+
record32.event,
|
|
213284
|
+
record32.commandId,
|
|
213285
|
+
record32.sessionId,
|
|
213286
|
+
JSON.stringify(record32.details ?? {})
|
|
213368
213287
|
);
|
|
213369
213288
|
}
|
|
213370
213289
|
close() {
|
|
@@ -214642,6 +214561,116 @@ ${content32.join("\n")}
|
|
|
214642
214561
|
}
|
|
214643
214562
|
resume = async (installation, signal, environment) => await resumeLegacyChannel(installation, this.channelId, signal, environment);
|
|
214644
214563
|
};
|
|
214564
|
+
AGENT_DEFAULT_VALUE2 = "agent_default";
|
|
214565
|
+
READ_ONLY_VALUE2 = "read-only";
|
|
214566
|
+
WORKSPACE_WRITE_VALUE2 = "workspace-write";
|
|
214567
|
+
DANGER_FULL_ACCESS_VALUE2 = "danger-full-access";
|
|
214568
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2 = "dsh_access_mode";
|
|
214569
|
+
OPENCODE_PERMISSION_SETTING_ID2 = "opencode_permission";
|
|
214570
|
+
AgentSettingsConfigurationError2 = class extends Error {
|
|
214571
|
+
code = "invalid_session_configuration";
|
|
214572
|
+
constructor(message, options = {}) {
|
|
214573
|
+
super(message, options);
|
|
214574
|
+
this.name = "AgentSettingsConfigurationError";
|
|
214575
|
+
}
|
|
214576
|
+
};
|
|
214577
|
+
AgentSettingsLaunchSelectionResult2 = class {
|
|
214578
|
+
agent;
|
|
214579
|
+
handled;
|
|
214580
|
+
constructor(agent, handled) {
|
|
214581
|
+
this.agent = agent;
|
|
214582
|
+
this.handled = handled;
|
|
214583
|
+
}
|
|
214584
|
+
};
|
|
214585
|
+
AppliedAgentLaunchSettings2 = class {
|
|
214586
|
+
agent;
|
|
214587
|
+
sessionConfigurations;
|
|
214588
|
+
constructor(agent, sessionConfigurations) {
|
|
214589
|
+
this.agent = agent;
|
|
214590
|
+
this.sessionConfigurations = Object.freeze([...sessionConfigurations]);
|
|
214591
|
+
}
|
|
214592
|
+
};
|
|
214593
|
+
AgentSettingsAdapter2 = class {
|
|
214594
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_ON_MODEL_SELECTION2;
|
|
214595
|
+
applyLaunchSelection = (agent, _selection) => new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214596
|
+
settings = (_agent) => [];
|
|
214597
|
+
};
|
|
214598
|
+
dshAccessModes2 = Object.freeze([
|
|
214599
|
+
selectValue2("Read only", READ_ONLY_VALUE2, "Allow inspection without local writes."),
|
|
214600
|
+
selectValue2("Workspace write", WORKSPACE_WRITE_VALUE2, "Allow changes in the selected workspace."),
|
|
214601
|
+
selectValue2("Full access", DANGER_FULL_ACCESS_VALUE2, "Allow unrestricted local execution.")
|
|
214602
|
+
]);
|
|
214603
|
+
DeepSeekHarnessSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214604
|
+
settings = (agent) => {
|
|
214605
|
+
const configured = agent.environment["DSH_PERMISSION_MODE"] ?? WORKSPACE_WRITE_VALUE2;
|
|
214606
|
+
return [
|
|
214607
|
+
selectSetting2(
|
|
214608
|
+
DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2,
|
|
214609
|
+
"Access mode",
|
|
214610
|
+
"Controls the local side effects allowed for this DeepSeek Harness session.",
|
|
214611
|
+
validValue2(dshAccessModes2, configured),
|
|
214612
|
+
dshAccessModes2
|
|
214613
|
+
)
|
|
214614
|
+
];
|
|
214615
|
+
};
|
|
214616
|
+
applyLaunchSelection = (agent, selection) => {
|
|
214617
|
+
if (selection.configId !== DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2) {
|
|
214618
|
+
return new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214619
|
+
}
|
|
214620
|
+
const value = validValue2(dshAccessModes2, selectedValue2(selection, DEEPSEEK_HARNESS_ACCESS_MODE_SETTING_ID2));
|
|
214621
|
+
return new AgentSettingsLaunchSelectionResult2(
|
|
214622
|
+
agent.withEnvironment({ ...agent.environment, DSH_PERMISSION_MODE: value }),
|
|
214623
|
+
true
|
|
214624
|
+
);
|
|
214625
|
+
};
|
|
214626
|
+
};
|
|
214627
|
+
openCodePermissionModes2 = Object.freeze([
|
|
214628
|
+
selectValue2("Agent default", AGENT_DEFAULT_VALUE2, "Keep OpenCode's existing permission policy."),
|
|
214629
|
+
selectValue2("Read only", READ_ONLY_VALUE2, "Allow inspection without local writes."),
|
|
214630
|
+
selectValue2("Workspace write", WORKSPACE_WRITE_VALUE2, "Allow changes in the selected workspace."),
|
|
214631
|
+
selectValue2("Full access", DANGER_FULL_ACCESS_VALUE2, "Allow unrestricted local execution.")
|
|
214632
|
+
]);
|
|
214633
|
+
OpenCodeSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214634
|
+
settings = (agent) => {
|
|
214635
|
+
const currentValue = agent.environment["MOBIUS_OPENCODE_PERMISSION"] ?? AGENT_DEFAULT_VALUE2;
|
|
214636
|
+
return [
|
|
214637
|
+
selectSetting2(
|
|
214638
|
+
OPENCODE_PERMISSION_SETTING_ID2,
|
|
214639
|
+
"Permissions",
|
|
214640
|
+
"Controls OpenCode's local permission policy.",
|
|
214641
|
+
validValue2(openCodePermissionModes2, currentValue),
|
|
214642
|
+
openCodePermissionModes2
|
|
214643
|
+
)
|
|
214644
|
+
];
|
|
214645
|
+
};
|
|
214646
|
+
applyLaunchSelection = (agent, selection) => {
|
|
214647
|
+
if (selection.configId !== OPENCODE_PERMISSION_SETTING_ID2) {
|
|
214648
|
+
return new AgentSettingsLaunchSelectionResult2(agent, false);
|
|
214649
|
+
}
|
|
214650
|
+
const value = validValue2(openCodePermissionModes2, selectedValue2(selection, OPENCODE_PERMISSION_SETTING_ID2));
|
|
214651
|
+
if (value === AGENT_DEFAULT_VALUE2) {
|
|
214652
|
+
return new AgentSettingsLaunchSelectionResult2(agent, true);
|
|
214653
|
+
}
|
|
214654
|
+
return new AgentSettingsLaunchSelectionResult2(
|
|
214655
|
+
agent.withEnvironment({
|
|
214656
|
+
...agent.environment,
|
|
214657
|
+
MOBIUS_OPENCODE_PERMISSION: value,
|
|
214658
|
+
OPENCODE_CONFIG_CONTENT: JSON.stringify({
|
|
214659
|
+
...openCodeConfiguration2(agent.environment),
|
|
214660
|
+
permission: openCodePermission2(value)
|
|
214661
|
+
})
|
|
214662
|
+
}),
|
|
214663
|
+
true
|
|
214664
|
+
);
|
|
214665
|
+
};
|
|
214666
|
+
};
|
|
214667
|
+
CodexSettingsAdapter2 = class extends AgentSettingsAdapter2 {
|
|
214668
|
+
modelEffortResolution = AGENT_MODEL_EFFORT_RESOLUTION_COMPLETE2;
|
|
214669
|
+
};
|
|
214670
|
+
genericAdapter2 = new AgentSettingsAdapter2();
|
|
214671
|
+
codexAdapter2 = new CodexSettingsAdapter2();
|
|
214672
|
+
deepSeekHarnessAdapter2 = new DeepSeekHarnessSettingsAdapter2();
|
|
214673
|
+
openCodeAdapter2 = new OpenCodeSettingsAdapter2();
|
|
214645
214674
|
CATALOG_UPDATE_TIMEOUT_MILLISECONDS2 = 2e4;
|
|
214646
214675
|
AgentCatalogPublishError2 = class extends Error {
|
|
214647
214676
|
code = "agent_catalog_update_failed";
|
|
@@ -216511,9 +216540,9 @@ ${content32.join("\n")}
|
|
|
216511
216540
|
DaemonAcpObserver2 = class {
|
|
216512
216541
|
#config;
|
|
216513
216542
|
#record;
|
|
216514
|
-
constructor(config22,
|
|
216543
|
+
constructor(config22, record32) {
|
|
216515
216544
|
this.#config = config22;
|
|
216516
|
-
this.#record =
|
|
216545
|
+
this.#record = record32;
|
|
216517
216546
|
}
|
|
216518
216547
|
importLocalArtifact = async (sessionId, artifact, signal) => (await uploadRuntimeArtifact2(this.#config, sessionId, artifact, signal)).artifactId;
|
|
216519
216548
|
onCommands = (event2) => {
|
|
@@ -219019,7 +219048,7 @@ var FLUSH_TIMEOUT_MS = 3e3;
|
|
|
219019
219048
|
var MAX_BATCH_SIZE = 100;
|
|
219020
219049
|
function commonLabels() {
|
|
219021
219050
|
return {
|
|
219022
|
-
cli_version: "0.13.
|
|
219051
|
+
cli_version: "0.13.6",
|
|
219023
219052
|
node_version: process.versions.node,
|
|
219024
219053
|
os: (0, import_node_os.platform)(),
|
|
219025
219054
|
arch: (0, import_node_os.arch)(),
|
|
@@ -219065,7 +219094,7 @@ async function flush() {
|
|
|
219065
219094
|
}
|
|
219066
219095
|
const batch = buffer.splice(0, MAX_BATCH_SIZE);
|
|
219067
219096
|
const payload = {
|
|
219068
|
-
release_id: "0.13.
|
|
219097
|
+
release_id: "0.13.6",
|
|
219069
219098
|
client_type: "cli",
|
|
219070
219099
|
metric_data_list: batch.map((m) => ({
|
|
219071
219100
|
profile: "cli",
|
|
@@ -219482,9 +219511,9 @@ void runCli();
|
|
|
219482
219511
|
async function runCli() {
|
|
219483
219512
|
try {
|
|
219484
219513
|
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.
|
|
219514
|
+
const program2 = createProgram2("0.13.6");
|
|
219515
|
+
installDaemonReconcileHook(program2, "0.13.6");
|
|
219516
|
+
installUpdateHook(program2, "0.13.6");
|
|
219488
219517
|
instrumentProgram(program2);
|
|
219489
219518
|
installExitHandler();
|
|
219490
219519
|
await program2.parseAsync(process.argv);
|