@moxt-ai/cli 0.12.8 → 0.12.9
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 +275 -107
- package/dist/index.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -68306,7 +68306,7 @@ ${captureLines}` : capture.stack;
|
|
|
68306
68306
|
}
|
|
68307
68307
|
});
|
|
68308
68308
|
|
|
68309
|
-
// node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
68309
|
+
// node_modules/.pnpm/@moxt-ai+mobius@0.0.47/node_modules/@moxt-ai/mobius/dist/index.js
|
|
68310
68310
|
var dist_exports2 = {};
|
|
68311
68311
|
__export(dist_exports2, {
|
|
68312
68312
|
AcpExecutionError: () => AcpExecutionError,
|
|
@@ -75378,6 +75378,7 @@ function decodeMessageKind(encoded) {
|
|
|
75378
75378
|
}
|
|
75379
75379
|
function decodeSessionPromptCommand(encoded) {
|
|
75380
75380
|
const value = parseJson22(encoded);
|
|
75381
|
+
const hasSessionConfigurations = Object.hasOwn(value, "sessionConfigurations");
|
|
75381
75382
|
assertExactKeys(value, [
|
|
75382
75383
|
"additionalDirectoryIds",
|
|
75383
75384
|
"agentId",
|
|
@@ -75389,6 +75390,7 @@ function decodeSessionPromptCommand(encoded) {
|
|
|
75389
75390
|
"kind",
|
|
75390
75391
|
"prompt",
|
|
75391
75392
|
"resources",
|
|
75393
|
+
...hasSessionConfigurations ? ["sessionConfigurations"] : [],
|
|
75392
75394
|
"sessionId",
|
|
75393
75395
|
"targetCommandId"
|
|
75394
75396
|
]);
|
|
@@ -75409,6 +75411,10 @@ function decodeSessionPromptCommand(encoded) {
|
|
|
75409
75411
|
if (disposition === SessionPromptDisposition.Reject && targetCommandId.length > 0 || disposition !== SessionPromptDisposition.Reject && !IDENTIFIER_PATTERN2.test(targetCommandId)) {
|
|
75410
75412
|
throw new ProtocolMessageError("Prompt disposition has an invalid target command");
|
|
75411
75413
|
}
|
|
75414
|
+
const sessionConfigurations = hasSessionConfigurations ? decodeSessionConfigurationSelections(value["sessionConfigurations"]) : [];
|
|
75415
|
+
if (new Set(sessionConfigurations.map((selection) => selection.configId)).size !== sessionConfigurations.length) {
|
|
75416
|
+
throw new ProtocolMessageError("Session configuration identifiers must be unique");
|
|
75417
|
+
}
|
|
75412
75418
|
return {
|
|
75413
75419
|
additionalDirectoryIds: readDirectoryIdentifiers(value, "additionalDirectoryIds", 16),
|
|
75414
75420
|
agentId: readIdentifier(value, "agentId"),
|
|
@@ -75420,6 +75426,7 @@ function decodeSessionPromptCommand(encoded) {
|
|
|
75420
75426
|
kind: SESSION_PROMPT_KIND,
|
|
75421
75427
|
prompt,
|
|
75422
75428
|
resources,
|
|
75429
|
+
...hasSessionConfigurations ? { sessionConfigurations } : {},
|
|
75423
75430
|
sessionId: readIdentifier(value, "sessionId"),
|
|
75424
75431
|
targetCommandId
|
|
75425
75432
|
};
|
|
@@ -76546,10 +76553,6 @@ function readInlineRaster(data, name = "Image") {
|
|
|
76546
76553
|
}
|
|
76547
76554
|
return new LocalRasterImage((0, import_node_path20.basename)(name) || "Image", mimeType, bytes);
|
|
76548
76555
|
}
|
|
76549
|
-
function isInsideRoot(root, target) {
|
|
76550
|
-
const relation = (0, import_node_path20.relative)(root, target);
|
|
76551
|
-
return relation !== ".." && !relation.startsWith(`..${import_node_path20.sep}`) && !(0, import_node_path20.isAbsolute)(relation);
|
|
76552
|
-
}
|
|
76553
76556
|
async function resolveCanonicalPath(requested, signal) {
|
|
76554
76557
|
signal.throwIfAborted();
|
|
76555
76558
|
if (!(0, import_node_path20.isAbsolute)(requested) || requested.includes("\0") || (0, import_node_path20.normalize)(requested) !== requested) {
|
|
@@ -76594,7 +76597,7 @@ function parseLocalImageUri(uri) {
|
|
|
76594
76597
|
}
|
|
76595
76598
|
return trimmed;
|
|
76596
76599
|
}
|
|
76597
|
-
async function
|
|
76600
|
+
async function readLocalRaster(uri, signal) {
|
|
76598
76601
|
signal.throwIfAborted();
|
|
76599
76602
|
const requested = parseLocalImageUri(uri);
|
|
76600
76603
|
if (requested === null) {
|
|
@@ -76609,21 +76612,6 @@ async function readAuthorizedRaster(uri, roots, signal) {
|
|
|
76609
76612
|
if (!targetMetadata.isFile() || targetMetadata.size < 1 || targetMetadata.size > MAX_LOCAL_RASTER_BYTES) {
|
|
76610
76613
|
return null;
|
|
76611
76614
|
}
|
|
76612
|
-
const authorizedRoots = [];
|
|
76613
|
-
for (const root of roots) {
|
|
76614
|
-
const directory = await resolveCanonicalPath(root, signal);
|
|
76615
|
-
if (directory === null) {
|
|
76616
|
-
continue;
|
|
76617
|
-
}
|
|
76618
|
-
const metadata = await (0, import_promises22.stat)(directory);
|
|
76619
|
-
signal.throwIfAborted();
|
|
76620
|
-
if (metadata.isDirectory()) {
|
|
76621
|
-
authorizedRoots.push(directory);
|
|
76622
|
-
}
|
|
76623
|
-
}
|
|
76624
|
-
if (!authorizedRoots.some((root) => isInsideRoot(root, target))) {
|
|
76625
|
-
return null;
|
|
76626
|
-
}
|
|
76627
76615
|
const bytes = new Uint8Array(await (0, import_promises22.readFile)(target));
|
|
76628
76616
|
signal.throwIfAborted();
|
|
76629
76617
|
if (bytes.byteLength < 1 || bytes.byteLength > MAX_LOCAL_RASTER_BYTES) {
|
|
@@ -76667,7 +76655,7 @@ function readInlineVideo(data, declaredMimeType, name = "Video") {
|
|
|
76667
76655
|
}
|
|
76668
76656
|
return new LocalVideo((0, import_node_path21.basename)(name) || "Video", mimeType, bytes);
|
|
76669
76657
|
}
|
|
76670
|
-
async function embedLocalHistoryImages(history,
|
|
76658
|
+
async function embedLocalHistoryImages(history, signal) {
|
|
76671
76659
|
if (history.status !== "available") {
|
|
76672
76660
|
return history;
|
|
76673
76661
|
}
|
|
@@ -76675,7 +76663,7 @@ async function embedLocalHistoryImages(history, roots, signal) {
|
|
|
76675
76663
|
let imageCharacters = 0;
|
|
76676
76664
|
for (const message of history.messages) {
|
|
76677
76665
|
signal.throwIfAborted();
|
|
76678
|
-
const resolved = await resolveMessageImages(message,
|
|
76666
|
+
const resolved = await resolveMessageImages(message, imageCharacters, signal);
|
|
76679
76667
|
imageCharacters += (resolved.images ?? []).reduce((size, image) => size + image.data.length, 0);
|
|
76680
76668
|
messages.push(resolved);
|
|
76681
76669
|
}
|
|
@@ -76684,7 +76672,7 @@ async function embedLocalHistoryImages(history, roots, signal) {
|
|
|
76684
76672
|
messages
|
|
76685
76673
|
};
|
|
76686
76674
|
}
|
|
76687
|
-
async function resolveMessageImages(message,
|
|
76675
|
+
async function resolveMessageImages(message, usedCharacters, signal) {
|
|
76688
76676
|
const images = [...message.images ?? []];
|
|
76689
76677
|
let imageCharacters = images.reduce((size, image) => size + image.data.length, 0);
|
|
76690
76678
|
const text32 = await replaceImageMarkers(message.text, async (uri) => {
|
|
@@ -76700,7 +76688,7 @@ async function resolveMessageImages(message, roots, usedCharacters, signal) {
|
|
|
76700
76688
|
imageCharacters += embedded.data.length;
|
|
76701
76689
|
return "";
|
|
76702
76690
|
}
|
|
76703
|
-
const local = await
|
|
76691
|
+
const local = await readLocalRaster(uri, signal);
|
|
76704
76692
|
if (local === null) {
|
|
76705
76693
|
return "[Image unavailable]";
|
|
76706
76694
|
}
|
|
@@ -81391,16 +81379,24 @@ function parseMarkdownImages(markdown) {
|
|
|
81391
81379
|
});
|
|
81392
81380
|
return images.sort((left, right) => left.start - right.start);
|
|
81393
81381
|
}
|
|
81394
|
-
async function
|
|
81382
|
+
async function emitMarkdownChunksWithLocalImages(options) {
|
|
81383
|
+
const markdown = options.chunks.join("");
|
|
81384
|
+
const images = parseMarkdownImages(markdown);
|
|
81385
|
+
if (images.length === 0) {
|
|
81386
|
+
for (const chunk of options.chunks) {
|
|
81387
|
+
await options.onText(chunk);
|
|
81388
|
+
}
|
|
81389
|
+
return;
|
|
81390
|
+
}
|
|
81395
81391
|
let cursor = 0;
|
|
81396
|
-
for (const image of
|
|
81392
|
+
for (const image of images) {
|
|
81397
81393
|
if (image.start < cursor) {
|
|
81398
81394
|
continue;
|
|
81399
81395
|
}
|
|
81400
81396
|
if (image.start > cursor) {
|
|
81401
|
-
await options.onText(
|
|
81397
|
+
await options.onText(markdown.slice(cursor, image.start));
|
|
81402
81398
|
}
|
|
81403
|
-
const raster = await
|
|
81399
|
+
const raster = await readLocalRaster(image.uri, options.signal);
|
|
81404
81400
|
if (raster === null) {
|
|
81405
81401
|
await options.onText("[Image unavailable]");
|
|
81406
81402
|
} else {
|
|
@@ -81408,8 +81404,8 @@ async function emitMarkdownWithLocalImages(options) {
|
|
|
81408
81404
|
}
|
|
81409
81405
|
cursor = image.end;
|
|
81410
81406
|
}
|
|
81411
|
-
if (cursor <
|
|
81412
|
-
await options.onText(
|
|
81407
|
+
if (cursor < markdown.length) {
|
|
81408
|
+
await options.onText(markdown.slice(cursor));
|
|
81413
81409
|
}
|
|
81414
81410
|
}
|
|
81415
81411
|
function isRecord52(value) {
|
|
@@ -83484,7 +83480,8 @@ async function claimPairing(options, defaultWorkspace, localAgents, installableA
|
|
|
83484
83480
|
botSessionConfiguration: true,
|
|
83485
83481
|
capabilities: agent.capabilities,
|
|
83486
83482
|
id: agent.id,
|
|
83487
|
-
label: agent.label
|
|
83483
|
+
label: agent.label,
|
|
83484
|
+
sessionTurnConfiguration: true
|
|
83488
83485
|
}));
|
|
83489
83486
|
const endpoint = options.pairingId.length > 0 ? mobiusApiUrl(options.relayOrigin, `/v1/runtime-pairings/${encodeURIComponent(options.pairingId)}/redeem`) : mobiusApiUrl(options.relayOrigin, "/pairings/claim");
|
|
83490
83487
|
let response;
|
|
@@ -83705,7 +83702,8 @@ async function publishAgentCatalog(config22, signal) {
|
|
|
83705
83702
|
botSessionConfiguration: true,
|
|
83706
83703
|
capabilities: agent.capabilities,
|
|
83707
83704
|
id: agent.id,
|
|
83708
|
-
label: agent.label
|
|
83705
|
+
label: agent.label,
|
|
83706
|
+
sessionTurnConfiguration: true
|
|
83709
83707
|
})),
|
|
83710
83708
|
installableAgents: catalog.installableAgents
|
|
83711
83709
|
}),
|
|
@@ -83910,13 +83908,6 @@ function decodeMobiusAvailableArtifact(value) {
|
|
|
83910
83908
|
}
|
|
83911
83909
|
return artifact;
|
|
83912
83910
|
}
|
|
83913
|
-
function daemonToken2(config22) {
|
|
83914
|
-
const token = config22.relayUrl.searchParams.get("token");
|
|
83915
|
-
if (token === null || token.length < 32) {
|
|
83916
|
-
throw new RuntimeArtifactUploadError("artifact_endpoint_invalid", "The Relay daemon token is missing");
|
|
83917
|
-
}
|
|
83918
|
-
return token;
|
|
83919
|
-
}
|
|
83920
83911
|
function channelOrigin(config22) {
|
|
83921
83912
|
const url22 = new URL(config22.relayUrl);
|
|
83922
83913
|
url22.protocol = url22.protocol === "wss:" ? "https:" : "http:";
|
|
@@ -83961,24 +83952,23 @@ async function readAuthorization(response) {
|
|
|
83961
83952
|
translateSdkError(cause);
|
|
83962
83953
|
}
|
|
83963
83954
|
}
|
|
83964
|
-
function sessionArtifactUrl(origin, sessionId, resourcePath
|
|
83965
|
-
|
|
83966
|
-
url22.searchParams.set("token", token);
|
|
83967
|
-
return url22;
|
|
83955
|
+
function sessionArtifactUrl(origin, sessionId, resourcePath) {
|
|
83956
|
+
return new URL(`${origin.pathname}/sessions/${encodeURIComponent(sessionId)}/${resourcePath}`, origin);
|
|
83968
83957
|
}
|
|
83969
|
-
async function postLease(url22, request2, signal) {
|
|
83958
|
+
async function postLease(url22, headers, request2, signal) {
|
|
83970
83959
|
return await (0, import_undici7.fetch)(url22, {
|
|
83971
83960
|
dispatcher: environmentProxyDispatcher,
|
|
83972
|
-
headers: { "content-type": "application/json" },
|
|
83961
|
+
headers: { ...headers, "content-type": "application/json" },
|
|
83973
83962
|
method: "POST",
|
|
83974
83963
|
body: JSON.stringify(request2),
|
|
83975
83964
|
signal
|
|
83976
83965
|
});
|
|
83977
83966
|
}
|
|
83978
|
-
async function putContent(url22, authorization, bytes, signal) {
|
|
83967
|
+
async function putContent(url22, headers, authorization, bytes, signal) {
|
|
83979
83968
|
return await (0, import_undici7.fetch)(url22, {
|
|
83980
83969
|
dispatcher: environmentProxyDispatcher,
|
|
83981
83970
|
headers: {
|
|
83971
|
+
...headers,
|
|
83982
83972
|
"content-type": authorization.mediaType,
|
|
83983
83973
|
"x-mobius-upload-token": authorization.uploadToken
|
|
83984
83974
|
},
|
|
@@ -84003,11 +83993,12 @@ async function uploadRuntimeArtifact(config22, sessionId, artifact, signal) {
|
|
|
84003
83993
|
const timeoutSignal = AbortSignal.timeout(UPLOAD_TIMEOUT_MILLISECONDS);
|
|
84004
83994
|
const requestSignal2 = AbortSignal.any([signal, timeoutSignal]);
|
|
84005
83995
|
const origin = channelOrigin(config22);
|
|
84006
|
-
const
|
|
83996
|
+
const headers = runtimeAuthorization(config22.relayUrl);
|
|
84007
83997
|
let created;
|
|
84008
83998
|
try {
|
|
84009
83999
|
created = await postLease(
|
|
84010
|
-
sessionArtifactUrl(origin, sessionId, "artifacts/uploads"
|
|
84000
|
+
sessionArtifactUrl(origin, sessionId, "artifacts/uploads"),
|
|
84001
|
+
headers,
|
|
84011
84002
|
request2,
|
|
84012
84003
|
requestSignal2
|
|
84013
84004
|
);
|
|
@@ -84027,12 +84018,8 @@ async function uploadRuntimeArtifact(config22, sessionId, artifact, signal) {
|
|
|
84027
84018
|
let uploaded;
|
|
84028
84019
|
try {
|
|
84029
84020
|
uploaded = await putContent(
|
|
84030
|
-
sessionArtifactUrl(
|
|
84031
|
-
|
|
84032
|
-
sessionId,
|
|
84033
|
-
`artifacts/${encodeURIComponent(authorization.artifactId)}/content`,
|
|
84034
|
-
token
|
|
84035
|
-
),
|
|
84021
|
+
sessionArtifactUrl(origin, sessionId, `artifacts/${encodeURIComponent(authorization.artifactId)}/content`),
|
|
84022
|
+
headers,
|
|
84036
84023
|
authorization,
|
|
84037
84024
|
artifact.bytes,
|
|
84038
84025
|
requestSignal2
|
|
@@ -84285,7 +84272,7 @@ async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
|
|
|
84285
84272
|
const snapshot = await response.promise;
|
|
84286
84273
|
return {
|
|
84287
84274
|
...snapshot,
|
|
84288
|
-
history: await embedLocalHistoryImages(snapshot.history,
|
|
84275
|
+
history: await embedLocalHistoryImages(snapshot.history, signal)
|
|
84289
84276
|
};
|
|
84290
84277
|
} finally {
|
|
84291
84278
|
clearTimeout(timeout);
|
|
@@ -85005,6 +84992,36 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
85005
84992
|
signal
|
|
85006
84993
|
);
|
|
85007
84994
|
const agent = config22.catalog.find(command.agentId);
|
|
84995
|
+
if (command.disposition === SessionPromptDisposition.Queue && !outbox.isTerminalExecution(command.targetCommandId, command.sessionId)) {
|
|
84996
|
+
throw new AcpExecutionError(
|
|
84997
|
+
"The queued prompt target is unavailable",
|
|
84998
|
+
{},
|
|
84999
|
+
"prompt_queue_target_unavailable"
|
|
85000
|
+
);
|
|
85001
|
+
}
|
|
85002
|
+
if (command.sessionConfigurations !== void 0) {
|
|
85003
|
+
const prepared = await sessions.prepareExecutionSession({
|
|
85004
|
+
additionalDirectories: resolved.additionalDirectories,
|
|
85005
|
+
agent,
|
|
85006
|
+
cwd: resolved.cwd,
|
|
85007
|
+
sessionId: command.sessionId,
|
|
85008
|
+
signal
|
|
85009
|
+
});
|
|
85010
|
+
if (command.disposition === SessionPromptDisposition.Steer) {
|
|
85011
|
+
assertCompleteSessionConfiguration(prepared.configOptions, command.sessionConfigurations);
|
|
85012
|
+
} else {
|
|
85013
|
+
await applyCompleteSessionConfiguration(
|
|
85014
|
+
sessions,
|
|
85015
|
+
prepared.configOptions,
|
|
85016
|
+
command.sessionConfigurations,
|
|
85017
|
+
agent,
|
|
85018
|
+
resolved.cwd,
|
|
85019
|
+
resolved.additionalDirectories,
|
|
85020
|
+
command.sessionId,
|
|
85021
|
+
signal
|
|
85022
|
+
);
|
|
85023
|
+
}
|
|
85024
|
+
}
|
|
85008
85025
|
audit.record({
|
|
85009
85026
|
commandId: command.commandId,
|
|
85010
85027
|
event: "session_authorized",
|
|
@@ -85039,13 +85056,6 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
85039
85056
|
});
|
|
85040
85057
|
stopReason = "steered";
|
|
85041
85058
|
} else {
|
|
85042
|
-
if (command.disposition === SessionPromptDisposition.Queue && !outbox.isTerminalExecution(command.targetCommandId, command.sessionId)) {
|
|
85043
|
-
throw new AcpExecutionError(
|
|
85044
|
-
"The queued prompt target is unavailable",
|
|
85045
|
-
{},
|
|
85046
|
-
"prompt_queue_target_unavailable"
|
|
85047
|
-
);
|
|
85048
|
-
}
|
|
85049
85059
|
const result = await sessions.runPrompt({
|
|
85050
85060
|
additionalDirectories: resolved.additionalDirectories,
|
|
85051
85061
|
agent,
|
|
@@ -85112,6 +85122,113 @@ async function executePrompt(outbox, publisher, command, config22, directories,
|
|
|
85112
85122
|
console.error("Mobius daemon command failed", error622);
|
|
85113
85123
|
}
|
|
85114
85124
|
}
|
|
85125
|
+
function invalidSessionConfiguration(message) {
|
|
85126
|
+
return new AcpExecutionError(message, {}, "invalid_session_configuration");
|
|
85127
|
+
}
|
|
85128
|
+
function validateSessionConfigurationSelection(option2, selection) {
|
|
85129
|
+
if (option2.type !== selection.valueType) {
|
|
85130
|
+
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} changed type`);
|
|
85131
|
+
}
|
|
85132
|
+
if (option2.type === "boolean") {
|
|
85133
|
+
if (selection.value.length > 0) {
|
|
85134
|
+
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} has an invalid value`);
|
|
85135
|
+
}
|
|
85136
|
+
return;
|
|
85137
|
+
}
|
|
85138
|
+
if (selection.booleanValue) {
|
|
85139
|
+
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} has an invalid value`);
|
|
85140
|
+
}
|
|
85141
|
+
if (!option2.values.some((value) => value.value === selection.value)) {
|
|
85142
|
+
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} has an unavailable value`);
|
|
85143
|
+
}
|
|
85144
|
+
}
|
|
85145
|
+
function assertSessionConfigurationSchema(options, selections) {
|
|
85146
|
+
if (options.length !== selections.length) {
|
|
85147
|
+
throw invalidSessionConfiguration("The Turn configuration does not match the Agent settings schema");
|
|
85148
|
+
}
|
|
85149
|
+
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
85150
|
+
if (selectionsById.size !== selections.length) {
|
|
85151
|
+
throw invalidSessionConfiguration("The Turn configuration contains duplicate Agent settings");
|
|
85152
|
+
}
|
|
85153
|
+
for (const option2 of options) {
|
|
85154
|
+
const selection = selectionsById.get(option2.id);
|
|
85155
|
+
if (selection === void 0 || selection.valueType !== option2.type || option2.type === "boolean" && selection.value.length > 0 || option2.type === "select" && selection.booleanValue) {
|
|
85156
|
+
throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option2.id}`);
|
|
85157
|
+
}
|
|
85158
|
+
}
|
|
85159
|
+
}
|
|
85160
|
+
function sessionConfigurationMatches(option2, selection) {
|
|
85161
|
+
validateSessionConfigurationSelection(option2, selection);
|
|
85162
|
+
return option2.type === "boolean" ? option2.booleanValue === selection.booleanValue : option2.currentValue === selection.value;
|
|
85163
|
+
}
|
|
85164
|
+
function sessionConfigurationPriority(selection, options) {
|
|
85165
|
+
if (selection.configId === "permission_mode") {
|
|
85166
|
+
return 0;
|
|
85167
|
+
}
|
|
85168
|
+
const option2 = options.find((candidate) => candidate.id === selection.configId);
|
|
85169
|
+
if (selection.configId === "model" || option2?.category === "model") {
|
|
85170
|
+
return 1;
|
|
85171
|
+
}
|
|
85172
|
+
if (selection.configId === "reasoning_effort" || option2?.category === "thought_level") {
|
|
85173
|
+
return 2;
|
|
85174
|
+
}
|
|
85175
|
+
if (option2?.category === "model_config") {
|
|
85176
|
+
return 3;
|
|
85177
|
+
}
|
|
85178
|
+
return 4;
|
|
85179
|
+
}
|
|
85180
|
+
function assertCompleteSessionConfiguration(options, selections) {
|
|
85181
|
+
assertSessionConfigurationSchema(options, selections);
|
|
85182
|
+
const selectionsById = new Map(selections.map((selection) => [selection.configId, selection]));
|
|
85183
|
+
for (const option2 of options) {
|
|
85184
|
+
const selection = selectionsById.get(option2.id);
|
|
85185
|
+
if (selection === void 0 || !sessionConfigurationMatches(option2, selection)) {
|
|
85186
|
+
throw invalidSessionConfiguration(`The Turn configuration does not match Agent setting ${option2.id}`);
|
|
85187
|
+
}
|
|
85188
|
+
}
|
|
85189
|
+
}
|
|
85190
|
+
async function applySessionConfigurationSelection(sessions, options, selection, agent, cwd, additionalDirectories, sessionId, signal) {
|
|
85191
|
+
const option2 = options.find((candidate) => candidate.id === selection.configId);
|
|
85192
|
+
if (option2 === void 0) {
|
|
85193
|
+
throw invalidSessionConfiguration(`The Agent setting ${selection.configId} is unavailable`);
|
|
85194
|
+
}
|
|
85195
|
+
if (sessionConfigurationMatches(option2, selection)) {
|
|
85196
|
+
return options;
|
|
85197
|
+
}
|
|
85198
|
+
return await sessions.configureSession({
|
|
85199
|
+
additionalDirectories,
|
|
85200
|
+
agent,
|
|
85201
|
+
booleanValue: selection.booleanValue,
|
|
85202
|
+
configId: selection.configId,
|
|
85203
|
+
cwd,
|
|
85204
|
+
requestId: `cfg_${(0, import_node_crypto15.randomUUID)()}`,
|
|
85205
|
+
sessionId,
|
|
85206
|
+
signal,
|
|
85207
|
+
value: selection.value,
|
|
85208
|
+
valueType: selection.valueType
|
|
85209
|
+
});
|
|
85210
|
+
}
|
|
85211
|
+
async function applyCompleteSessionConfiguration(sessions, initialOptions, selections, agent, cwd, additionalDirectories, sessionId, signal) {
|
|
85212
|
+
assertSessionConfigurationSchema(initialOptions, selections);
|
|
85213
|
+
let options = initialOptions;
|
|
85214
|
+
const orderedSelections = selections.toSorted((left, right) => {
|
|
85215
|
+
const priority = sessionConfigurationPriority(left, initialOptions) - sessionConfigurationPriority(right, initialOptions);
|
|
85216
|
+
return priority === 0 ? left.configId.localeCompare(right.configId) : priority;
|
|
85217
|
+
});
|
|
85218
|
+
for (const selection of orderedSelections) {
|
|
85219
|
+
options = await applySessionConfigurationSelection(
|
|
85220
|
+
sessions,
|
|
85221
|
+
options,
|
|
85222
|
+
selection,
|
|
85223
|
+
agent,
|
|
85224
|
+
cwd,
|
|
85225
|
+
additionalDirectories,
|
|
85226
|
+
sessionId,
|
|
85227
|
+
signal
|
|
85228
|
+
);
|
|
85229
|
+
}
|
|
85230
|
+
assertCompleteSessionConfiguration(options, selections);
|
|
85231
|
+
}
|
|
85115
85232
|
function botExecutionAgent(agent, contextHandle, socketPath) {
|
|
85116
85233
|
return new LocalAgentDefinition(
|
|
85117
85234
|
agent.id,
|
|
@@ -85144,24 +85261,55 @@ function assertPreparedPermission(configOptions, permissionMode) {
|
|
|
85144
85261
|
);
|
|
85145
85262
|
}
|
|
85146
85263
|
}
|
|
85147
|
-
|
|
85264
|
+
function warnIgnoredExecutionSetting(audit, commandId, sessionId, agentId, selection, category, reason) {
|
|
85265
|
+
const details = {
|
|
85266
|
+
agentId,
|
|
85267
|
+
category,
|
|
85268
|
+
configId: selection.configId,
|
|
85269
|
+
reason,
|
|
85270
|
+
requestedValue: selection.value
|
|
85271
|
+
};
|
|
85272
|
+
const event2 = "bot_execution_setting_ignored";
|
|
85273
|
+
audit.record({ commandId, details, event: event2, sessionId });
|
|
85274
|
+
process.stderr.write(`Mobius daemon warning ${JSON.stringify({ commandId, event: event2, sessionId, ...details })}
|
|
85275
|
+
`);
|
|
85276
|
+
}
|
|
85277
|
+
async function applySupportedExecutionSelection(sessions, audit, configOptions, selection, category, agent, cwd, additionalDirectories, commandId, sessionId, signal) {
|
|
85278
|
+
if (selection.value === AGENT_DEFAULT_EXECUTION_SETTING) {
|
|
85279
|
+
return configOptions;
|
|
85280
|
+
}
|
|
85148
85281
|
const option2 = configOptions.find((candidate) => candidate.id === selection.configId);
|
|
85149
|
-
if (option2 === void 0
|
|
85150
|
-
|
|
85151
|
-
|
|
85152
|
-
|
|
85153
|
-
|
|
85282
|
+
if (option2 === void 0) {
|
|
85283
|
+
warnIgnoredExecutionSetting(audit, commandId, sessionId, agent.id, selection, category, "setting_unavailable");
|
|
85284
|
+
return configOptions;
|
|
85285
|
+
}
|
|
85286
|
+
if (option2.type !== "select" || option2.category !== category) {
|
|
85287
|
+
warnIgnoredExecutionSetting(
|
|
85288
|
+
audit,
|
|
85289
|
+
commandId,
|
|
85290
|
+
sessionId,
|
|
85291
|
+
agent.id,
|
|
85292
|
+
selection,
|
|
85293
|
+
category,
|
|
85294
|
+
"setting_schema_mismatch"
|
|
85154
85295
|
);
|
|
85296
|
+
return configOptions;
|
|
85155
85297
|
}
|
|
85156
|
-
if (selection.
|
|
85298
|
+
if (selection.valueType !== "select" || selection.booleanValue) {
|
|
85299
|
+
warnIgnoredExecutionSetting(
|
|
85300
|
+
audit,
|
|
85301
|
+
commandId,
|
|
85302
|
+
sessionId,
|
|
85303
|
+
agent.id,
|
|
85304
|
+
selection,
|
|
85305
|
+
category,
|
|
85306
|
+
"selection_schema_mismatch"
|
|
85307
|
+
);
|
|
85157
85308
|
return configOptions;
|
|
85158
85309
|
}
|
|
85159
85310
|
if (!option2.values.some((value) => value.value === selection.value)) {
|
|
85160
|
-
|
|
85161
|
-
|
|
85162
|
-
{},
|
|
85163
|
-
"invalid_session_configuration"
|
|
85164
|
-
);
|
|
85311
|
+
warnIgnoredExecutionSetting(audit, commandId, sessionId, agent.id, selection, category, "value_unavailable");
|
|
85312
|
+
return configOptions;
|
|
85165
85313
|
}
|
|
85166
85314
|
if (option2.currentValue === selection.value) {
|
|
85167
85315
|
return configOptions;
|
|
@@ -85260,25 +85408,29 @@ async function executeBotPrompt(outbox, publisher, command, config22, directorie
|
|
|
85260
85408
|
signal: executionSignal
|
|
85261
85409
|
});
|
|
85262
85410
|
assertPreparedPermission(prepared.configOptions, execution.executionConfiguration.permissionMode);
|
|
85263
|
-
let configOptions = await
|
|
85411
|
+
let configOptions = await applySupportedExecutionSelection(
|
|
85264
85412
|
sessions,
|
|
85413
|
+
audit,
|
|
85265
85414
|
prepared.configOptions,
|
|
85266
85415
|
execution.executionConfiguration.model,
|
|
85267
85416
|
"model",
|
|
85268
85417
|
agent,
|
|
85269
85418
|
resolved.cwd,
|
|
85270
85419
|
resolved.additionalDirectories,
|
|
85420
|
+
command.commandId,
|
|
85271
85421
|
command.sessionId,
|
|
85272
85422
|
executionSignal
|
|
85273
85423
|
);
|
|
85274
|
-
configOptions = await
|
|
85424
|
+
configOptions = await applySupportedExecutionSelection(
|
|
85275
85425
|
sessions,
|
|
85426
|
+
audit,
|
|
85276
85427
|
configOptions,
|
|
85277
85428
|
execution.executionConfiguration.reasoningEffort,
|
|
85278
85429
|
"thought_level",
|
|
85279
85430
|
agent,
|
|
85280
85431
|
resolved.cwd,
|
|
85281
85432
|
resolved.additionalDirectories,
|
|
85433
|
+
command.commandId,
|
|
85282
85434
|
command.sessionId,
|
|
85283
85435
|
executionSignal
|
|
85284
85436
|
);
|
|
@@ -86548,7 +86700,7 @@ async function createMobiusRuntimeEngine(connection, signal, environment = proce
|
|
|
86548
86700
|
}
|
|
86549
86701
|
var import_node_path17, import_node_url, import_node_fs4, import_node_child_process9, import_node_fs5, import_promises21, import_node_path18, import_node_os12, import_node_path19, import_node_child_process10, import_promises22, import_node_path20, import_node_url2, import_node_path21, import_node_fs6, import_node_path22, import_node_sqlite, import_node_fs7, import_node_path23, import_node_sqlite2, import_node_crypto11, import_node_crypto12, import_node_net2, import_promises23, import_node_net3, import_node_path24, import_undici, import_node_crypto13, import_promises24, import_node_os13, import_node_path25, import_undici2, import_promises25, import_node_path26, import_node_path27, import_node_path28, import_promises26, import_node_path29, import_promises27, import_node_path30, import_node_path31, import_node_crypto14, import_node_fs8, import_promises28, import_node_path32, import_undici3, import_undici4, import_node_path33, import_node_path34, import_node_child_process11, import_node_path35, import_node_path36, import_node_crypto15, import_node_path37, import_node_util6, import_undici5, import_undici6, import_node_fs9, import_node_path38, import_node_crypto16, import_undici7, import_promises29, import_node_os14, import_node_path39, import_node_crypto17, import_node_path40, import_node_child_process12, import_node_crypto18, import_undici8, import_undici9, import_node_crypto19, import_node_fs10, import_node_path41, import_node_sqlite3, import_promises30, import_node_path42, __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, _a4, NEVER2, _zodDesc2, _E2, $brand2, $ZodAsyncError2, $ZodEncodeError2, globalConfig2, _messageDesc2, _issuesDesc2, _installedToString2, initializer3, $ZodError2, $ZodRealError2, _parse3, parse4, _parseAsync3, parseAsync3, _safeParse2, safeParse3, _safeParseAsync2, safeParseAsync3, COMPILE_INVALID2, COMPILE_FALLBACK2, validate2, validateAsync3, _encode3, encode3, _decode3, decode4, _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, hostname6, domain2, httpProtocol2, e1643, creditCard3, iban3, dateSource2, date5, anyString2, string6, 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, open5, 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, IDENTIFIER_PATTERN, DIRECTORY_IDENTIFIER_PATTERN, IDENTIFIER, DIRECTORY_IDENTIFIER, SHORT_TEXT, LONG_TEXT, workspaceEntrySchema, 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, decodeAgentExecutionConfiguration, encode32, decodeAgentSettingsDiscoverCommand, encodeAgentSettingsDiscoveredEvent, encodeAgentSettingsDiscoveryFailedEvent, 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, BOT_SESSION_PROMPT_KIND, IDENTIFIER_PATTERN3, DIRECTORY_IDENTIFIER_PATTERN3, TOKEN_PATTERN, SHA256_PATTERN, MAX_INSTRUCTIONS_LENGTH, BotDeliveryTargetReference, BotReplyRoute, OwnerBotReplyRoute, BotConnectionReplyRoute, BotSessionPromptCommand, 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_PATTERN4, 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, MAX_LOCAL_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, emptyOptions2, characterEntities2, own22, hasOwnProperty2, asciiAlpha2, asciiAlphanumeric2, asciiAtext2, asciiDigit2, asciiHexDigit2, asciiPunctuation2, unicodePunctuation2, unicodeWhitespace2, content3, document4, containerConstruct2, attention2, autolink2, blankLine2, blockQuote2, characterEscape2, characterReference2, nonLazyContinuation2, codeFenced2, codeIndented2, furtherStart2, codeText2, SpliceBuffer2, content22, continuationConstruct2, definition2, titleBefore2, hardBreakEscape2, headingAtx2, htmlBlockNames2, htmlRawNames2, htmlFlow2, blankLineBefore2, nonLazyContinuationStart2, htmlText2, labelEnd2, resourceConstruct2, referenceFullConstruct2, referenceCollapsedConstruct2, labelStartImage2, labelStartLink2, lineEnding2, thematicBreak2, list2, listItemPrefixWhitespaceConstruct2, indentConstruct2, setextUnderline2, flow3, resolver2, string42, text3, constructs_exports2, document22, contentInitial2, flowInitial2, flow22, string52, text22, insideSpan2, attentionMarkers2, disable2, search2, characterEscapeOrReference2, own32, convert2, empty2, CONTINUE2, EXIT2, SKIP2, path2, 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, NullAcpSessionObserver, AcpPreparedSession, AcpAgentSettingsSnapshot, AcpExecutionError, RetryableAcpInitializationError, AcpProcessCapacityLease, AcpProcessCapacityWaiter, AcpProcessCapacityLock, AcpTurnState, IdleAcpTurn, RunningAcpTurn, PendingPermission, PendingElicitation, AcpProcessSession, AcpProcessEvictionCandidate, MissingAcpProcessEvictionCandidate, FoundAcpProcessEvictionCandidate, FoundAcpSessionProcessEvictionCandidate, FoundAcpNativeBrowserProcessEvictionCandidate, AcpSessionManager, AuditStore, LocalAuthorizationError, LocalBotAuthorizationError, AuthorizedLocalBotExecution, LocalBotExecutionAuthorizer, ActiveBotExecutionContext, BotExecutionContextLease, BotExecutionContextRegistry, BOT_IPC_RESPONSE_LIMIT, BOT_IPC_TIMEOUT_MILLISECONDS, BotMessageCommandError, BOT_IPC_REQUEST_LIMIT, BOT_IPC_TIMEOUT_MILLISECONDS2, BOT_RELAY_TIMEOUT_MILLISECONDS, IDENTIFIER_PATTERN5, WINDOWS_NAMED_PIPE_PREFIX, BotOutboundIpcRequest, BotOutboundIpcServer, 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, DEFAULT_PROMPT_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, PROMPT_TIMEOUT_MILLISECONDS, PiAgentSpecification, WORKBUDDY_MANAGED_VERSION, WorkBuddyManagedPackage, WORKBUDDY_MANAGED_PACKAGE, WORKBUDDY_MACOS_EXECUTABLE_PATH, WorkBuddyAgentSpecification, ACP_OUTPUT_LIMIT_BYTES, VerifiedAcpReadiness, DiscoveryAcpHandler, ManagedAdapterInstallError, ManagedAdapterInstaller, VerifiedAgentExecutable, PAIRING_TIMEOUT_MILLISECONDS, PAIRING_CODE_PATTERN, IDENTIFIER_PATTERN6, TOKEN_PATTERN2, MAX_CONNECTION_FILE_LENGTH, CLAIM_RESPONSE_KEYS, REDEEM_RESPONSE_KEYS, LEGACY_SAVED_CONNECTION_KEYS, SAVED_CONNECTION_KEYS, PairingClientError, CATALOG_UPDATE_TIMEOUT_MILLISECONDS, AgentCatalogPublishError, INSTALLATION_DEADLINE_MILLISECONDS, AgentInstallation, RequestedInstallation, RunningInstallation, SucceededInstallation, FailedInstallation, CancelledInstallation, InstallationManagerError, NullInstallationAudit, InstallationJob, AgentInstallationManager, FixedInstallationExecutor, MobiusError, MobiusProtocolError, MobiusValidationError, IDENTIFIER_PATTERN7, MobiusArtifactUploadRequest, MobiusArtifact, MobiusUploadingArtifact, MobiusArtifactUpload, MobiusAvailableArtifact, MobiusExpiredArtifact, MobiusRuntimePairingLifecycle, UPLOAD_TIMEOUT_MILLISECONDS, RuntimeArtifactUploadError, UploadedRuntimeArtifact, WorkspaceDirectoryListing, WorkspaceDirectoryService, AppliedBotContext, EmbeddedBotContextApplicator, 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_PATTERN8, 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, IDENTIFIER_PATTERN9, RUNTIME_CREDENTIAL_PATTERN, MobiusRuntimeConfigurationError, MobiusRuntimeState, IdleMobiusRuntimeState, RunningMobiusRuntimeState, FinishedMobiusRuntimeState, MobiusRuntimeEngine;
|
|
86550
86702
|
var init_dist2 = __esm({
|
|
86551
|
-
"node_modules/.pnpm/@moxt-ai+mobius@0.0.
|
|
86703
|
+
"node_modules/.pnpm/@moxt-ai+mobius@0.0.47/node_modules/@moxt-ai/mobius/dist/index.js"() {
|
|
86552
86704
|
"use strict";
|
|
86553
86705
|
init_cjs_shims();
|
|
86554
86706
|
init_acp();
|
|
@@ -104060,6 +104212,7 @@ ${content32.join("\n")}
|
|
|
104060
104212
|
#preSessionUpdateBytes = 0;
|
|
104061
104213
|
#agentName = "";
|
|
104062
104214
|
#agentVersion = "";
|
|
104215
|
+
#bufferedAgentText = [];
|
|
104063
104216
|
#capabilities = {
|
|
104064
104217
|
additionalDirectories: false,
|
|
104065
104218
|
audioPrompt: false,
|
|
@@ -104233,26 +104386,47 @@ ${content32.join("\n")}
|
|
|
104233
104386
|
);
|
|
104234
104387
|
await this.#updateTail;
|
|
104235
104388
|
signal.throwIfAborted();
|
|
104236
|
-
return await embedLocalHistoryImages(
|
|
104237
|
-
history.snapshot(),
|
|
104238
|
-
[this.#cwd, ...this.#additionalDirectories],
|
|
104239
|
-
signal
|
|
104240
|
-
);
|
|
104389
|
+
return await embedLocalHistoryImages(history.snapshot(), signal);
|
|
104241
104390
|
} finally {
|
|
104242
104391
|
this.#replay = { kind: "idle" };
|
|
104243
104392
|
}
|
|
104244
104393
|
};
|
|
104245
|
-
|
|
104246
|
-
emitAgentText = async (text32, messageId) => {
|
|
104394
|
+
emitAgentMessage = async (chunks, messageId) => {
|
|
104247
104395
|
const signal = AbortSignal.timeout(2e4);
|
|
104248
|
-
await
|
|
104249
|
-
|
|
104396
|
+
await emitMarkdownChunksWithLocalImages({
|
|
104397
|
+
chunks,
|
|
104250
104398
|
onImage: async (image) => await this.emitRaster(image, messageId, signal),
|
|
104251
104399
|
onText: async (content32) => await this.#turn.onText(content32, messageId),
|
|
104252
|
-
roots: this.imageRoots(),
|
|
104253
104400
|
signal
|
|
104254
104401
|
});
|
|
104255
104402
|
};
|
|
104403
|
+
bufferAgentText = async (text32, messageId) => {
|
|
104404
|
+
const previous22 = this.#bufferedAgentText.at(-1);
|
|
104405
|
+
if (previous22?.messageId === messageId) {
|
|
104406
|
+
this.#bufferedAgentText = [
|
|
104407
|
+
...this.#bufferedAgentText.slice(0, -1),
|
|
104408
|
+
{ chunks: [...previous22.chunks, text32], messageId }
|
|
104409
|
+
];
|
|
104410
|
+
return;
|
|
104411
|
+
}
|
|
104412
|
+
this.#bufferedAgentText = [...this.#bufferedAgentText, { chunks: [text32], messageId }];
|
|
104413
|
+
};
|
|
104414
|
+
flushAgentText = async () => {
|
|
104415
|
+
const buffered = this.#bufferedAgentText;
|
|
104416
|
+
this.#bufferedAgentText = [];
|
|
104417
|
+
for (const message of buffered) {
|
|
104418
|
+
await this.emitAgentMessage(message.chunks, message.messageId);
|
|
104419
|
+
}
|
|
104420
|
+
};
|
|
104421
|
+
recordBufferedAgentTextAsProgress = async () => {
|
|
104422
|
+
const buffered = this.#bufferedAgentText;
|
|
104423
|
+
this.#bufferedAgentText = [];
|
|
104424
|
+
for (const message of buffered) {
|
|
104425
|
+
for (const chunk of message.chunks) {
|
|
104426
|
+
await this.#turn.activities.recordNarrative("progress", message.messageId, chunk);
|
|
104427
|
+
}
|
|
104428
|
+
}
|
|
104429
|
+
};
|
|
104256
104430
|
prepareAgentContent = async (content32) => {
|
|
104257
104431
|
if (content32.type === "image" && content32.data.length > 0) {
|
|
104258
104432
|
const raster = readInlineRaster(content32.data, content32.name);
|
|
@@ -104262,7 +104436,7 @@ ${content32.join("\n")}
|
|
|
104262
104436
|
}
|
|
104263
104437
|
if (content32.type === "image" && content32.data.length === 0 && content32.uri.length > 0) {
|
|
104264
104438
|
const signal = AbortSignal.timeout(2e4);
|
|
104265
|
-
const raster = await
|
|
104439
|
+
const raster = await readLocalRaster(content32.uri, signal);
|
|
104266
104440
|
if (raster !== null) {
|
|
104267
104441
|
return await this.importRaster(raster, signal);
|
|
104268
104442
|
}
|
|
@@ -104732,6 +104906,7 @@ ${content32.join("\n")}
|
|
|
104732
104906
|
options.signal
|
|
104733
104907
|
);
|
|
104734
104908
|
await this.#updateTail;
|
|
104909
|
+
await this.flushAgentText();
|
|
104735
104910
|
await running.activities.finish();
|
|
104736
104911
|
let result;
|
|
104737
104912
|
try {
|
|
@@ -104763,6 +104938,7 @@ ${content32.join("\n")}
|
|
|
104763
104938
|
cause: error622
|
|
104764
104939
|
});
|
|
104765
104940
|
} finally {
|
|
104941
|
+
this.#bufferedAgentText = [];
|
|
104766
104942
|
this.#turn = new IdleAcpTurn();
|
|
104767
104943
|
}
|
|
104768
104944
|
};
|
|
@@ -105054,10 +105230,11 @@ ${content32.join("\n")}
|
|
|
105054
105230
|
);
|
|
105055
105231
|
} else {
|
|
105056
105232
|
await this.#turn.activities.finishNarrative();
|
|
105057
|
-
await this.
|
|
105233
|
+
await this.bufferAgentText(update.content.text, truncate3(update.messageId ?? "", 255));
|
|
105058
105234
|
}
|
|
105059
105235
|
} else {
|
|
105060
105236
|
await this.#turn.activities.finishNarrative();
|
|
105237
|
+
await this.flushAgentText();
|
|
105061
105238
|
await this.emitAgentContent(
|
|
105062
105239
|
normalizeContentBlock(update.content),
|
|
105063
105240
|
truncate3(update.messageId ?? "", 255)
|
|
@@ -105076,6 +105253,7 @@ ${content32.join("\n")}
|
|
|
105076
105253
|
return;
|
|
105077
105254
|
}
|
|
105078
105255
|
if (update.sessionUpdate === "tool_call") {
|
|
105256
|
+
await this.recordBufferedAgentTextAsProgress();
|
|
105079
105257
|
await this.#turn.activities.recordToolCall(update);
|
|
105080
105258
|
return;
|
|
105081
105259
|
}
|
|
@@ -109591,17 +109769,7 @@ ${content32.join("\n")}
|
|
|
109591
109769
|
this.#config = config22;
|
|
109592
109770
|
this.#record = record42;
|
|
109593
109771
|
}
|
|
109594
|
-
importLocalArtifact = async (sessionId, artifact, signal) =>
|
|
109595
|
-
try {
|
|
109596
|
-
return (await uploadRuntimeArtifact(this.#config, sessionId, artifact, signal)).artifactId;
|
|
109597
|
-
} catch (cause) {
|
|
109598
|
-
signal.throwIfAborted();
|
|
109599
|
-
if (cause instanceof Error && cause.name === "AbortError") {
|
|
109600
|
-
throw cause;
|
|
109601
|
-
}
|
|
109602
|
-
return "";
|
|
109603
|
-
}
|
|
109604
|
-
};
|
|
109772
|
+
importLocalArtifact = async (sessionId, artifact, signal) => (await uploadRuntimeArtifact(this.#config, sessionId, artifact, signal)).artifactId;
|
|
109605
109773
|
onCommands = (event2) => {
|
|
109606
109774
|
this.#record(event2.sessionId, encodeSessionCommandsUpdatedEvent(event2));
|
|
109607
109775
|
return Promise.resolve();
|
|
@@ -110240,7 +110408,7 @@ function getApiKeyOrUndefined() {
|
|
|
110240
110408
|
|
|
110241
110409
|
// src/utils/http.ts
|
|
110242
110410
|
function getUserAgent() {
|
|
110243
|
-
return `moxt-cli/${"0.12.
|
|
110411
|
+
return `moxt-cli/${"0.12.9"} (${(0, import_os.platform)()}/${(0, import_os.arch)()}) node/${process.versions.node}`;
|
|
110244
110412
|
}
|
|
110245
110413
|
async function sendRequest(method, path6, init) {
|
|
110246
110414
|
return await fetch(`${getApiBaseUrl()}${path6}`, {
|
|
@@ -125132,7 +125300,7 @@ var FLUSH_TIMEOUT_MS = 3e3;
|
|
|
125132
125300
|
var MAX_BATCH_SIZE = 100;
|
|
125133
125301
|
function commonLabels() {
|
|
125134
125302
|
return {
|
|
125135
|
-
cli_version: "0.12.
|
|
125303
|
+
cli_version: "0.12.9",
|
|
125136
125304
|
node_version: process.versions.node,
|
|
125137
125305
|
os: (0, import_node_os16.platform)(),
|
|
125138
125306
|
arch: (0, import_node_os16.arch)(),
|
|
@@ -125178,7 +125346,7 @@ async function flush() {
|
|
|
125178
125346
|
}
|
|
125179
125347
|
const batch = buffer.splice(0, MAX_BATCH_SIZE);
|
|
125180
125348
|
const payload = {
|
|
125181
|
-
release_id: "0.12.
|
|
125349
|
+
release_id: "0.12.9",
|
|
125182
125350
|
client_type: "cli",
|
|
125183
125351
|
metric_data_list: batch.map((m) => ({
|
|
125184
125352
|
profile: "cli",
|
|
@@ -125561,9 +125729,9 @@ function commandPath3(command) {
|
|
|
125561
125729
|
}
|
|
125562
125730
|
|
|
125563
125731
|
// src/index.ts
|
|
125564
|
-
var program2 = createProgram("0.12.
|
|
125565
|
-
installDaemonReconcileHook(program2, "0.12.
|
|
125566
|
-
installUpdateHook(program2, "0.12.
|
|
125732
|
+
var program2 = createProgram("0.12.9");
|
|
125733
|
+
installDaemonReconcileHook(program2, "0.12.9");
|
|
125734
|
+
installUpdateHook(program2, "0.12.9");
|
|
125567
125735
|
instrumentProgram(program2);
|
|
125568
125736
|
installExitHandler();
|
|
125569
125737
|
program2.parseAsync(process.argv).then(async () => {
|