lody 0.71.0 → 0.71.1
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.
|
@@ -3,7 +3,7 @@ import { readFile, mkdir, writeFile, rename } from "node:fs/promises";
|
|
|
3
3
|
import os__default from "node:os";
|
|
4
4
|
import path__default from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
|
-
const reviewViewerVersion = "0.71.
|
|
6
|
+
const reviewViewerVersion = "0.71.1";
|
|
7
7
|
const reviewViewerSha256 = "e395b367a7644fe83bc050d0c646810914a2844824fd2b5d11d24ae4f55b6893";
|
|
8
8
|
const reviewViewerFileName = "standalone.html";
|
|
9
9
|
const DEFAULT_CDN_BASES = ["https://cdn.jsdelivr.net/npm", "https://unpkg.com"];
|
package/dist/index.js
CHANGED
|
@@ -4190,7 +4190,7 @@ let __tla = Promise.all([
|
|
|
4190
4190
|
}
|
|
4191
4191
|
}
|
|
4192
4192
|
const name$1 = "lody";
|
|
4193
|
-
const version$7 = "0.71.
|
|
4193
|
+
const version$7 = "0.71.1";
|
|
4194
4194
|
const description$1 = "Lody Agent CLI tool for managing remote command execution";
|
|
4195
4195
|
const type$2 = "module";
|
|
4196
4196
|
const main$4 = "dist/index.js";
|
|
@@ -167412,8 +167412,7 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
167412
167412
|
if (this.status === "failed" || this.status === "stopping" || this.status === "terminated") {
|
|
167413
167413
|
throw new Error(`Session ${this.sessionId} is not running`);
|
|
167414
167414
|
}
|
|
167415
|
-
const
|
|
167416
|
-
const execPromise = await this.runCommand(formattedCommand, workdir, isAI);
|
|
167415
|
+
const execPromise = await this.runCommand(command2, args2, workdir, isAI);
|
|
167417
167416
|
return execPromise;
|
|
167418
167417
|
}
|
|
167419
167418
|
async terminate(force = false) {
|
|
@@ -167524,13 +167523,6 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
167524
167523
|
const message = formatErrorMessage(error2);
|
|
167525
167524
|
this.logger.error(`[${this.sessionId}] Parser error: ${message}`);
|
|
167526
167525
|
};
|
|
167527
|
-
formatCommand(command2, args2) {
|
|
167528
|
-
if (!args2.length) {
|
|
167529
|
-
return command2;
|
|
167530
|
-
}
|
|
167531
|
-
const serializedArgs = args2.map((arg) => `'${arg.replace(/'/g, `'"'"'`)}'`).join(" ");
|
|
167532
|
-
return `${command2} ${serializedArgs}`;
|
|
167533
|
-
}
|
|
167534
167526
|
buildShellEnv(extraEnv, loginShellEnv = getCachedLoginShellEnvSync()) {
|
|
167535
167527
|
const configEnv = this.config.env ?? {};
|
|
167536
167528
|
const workspaceSessionId = this.config.parentSessionId ?? this.sessionId;
|
|
@@ -167739,14 +167731,11 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
167739
167731
|
getAcpCapabilities() {
|
|
167740
167732
|
return this.acpCapabilities;
|
|
167741
167733
|
}
|
|
167742
|
-
runCommand(command2, workdir, isAI) {
|
|
167734
|
+
runCommand(command2, args2, workdir, isAI) {
|
|
167743
167735
|
const env2 = this.buildShellEnv();
|
|
167744
|
-
this.logger.debug(`[${this.sessionId}] Executing command: ${command2}`);
|
|
167736
|
+
this.logger.debug(`[${this.sessionId}] Executing command: ${command2} args=${JSON.stringify(args2)}`);
|
|
167745
167737
|
return new Promise((resolve2, reject) => {
|
|
167746
|
-
void this.sandbox.spawn(
|
|
167747
|
-
"-lc",
|
|
167748
|
-
command2
|
|
167749
|
-
], {
|
|
167738
|
+
void this.sandbox.spawn(command2, args2, {
|
|
167750
167739
|
cwd: workdir,
|
|
167751
167740
|
env: env2,
|
|
167752
167741
|
stdio: [
|
|
@@ -167756,7 +167745,7 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
167756
167745
|
]
|
|
167757
167746
|
}).then((processHandle) => {
|
|
167758
167747
|
const child = processHandle.child;
|
|
167759
|
-
this.logger.debug(`[${this.sessionId}] Spawned process PID: ${child.pid} with command:
|
|
167748
|
+
this.logger.debug(`[${this.sessionId}] Spawned process PID: ${child.pid} with command: ${command2}`);
|
|
167760
167749
|
this.activeProcess = processHandle;
|
|
167761
167750
|
const stdoutChunks = [];
|
|
167762
167751
|
const stderrChunks = [];
|
|
@@ -167823,17 +167812,9 @@ export PATH=${toSingleQuotedShellString(ghShimBinDir)}:"$PATH"
|
|
|
167823
167812
|
});
|
|
167824
167813
|
processHandle.onError((error2) => {
|
|
167825
167814
|
cleanup();
|
|
167826
|
-
this.emit("error", {
|
|
167827
|
-
sessionId: this.sessionId,
|
|
167828
|
-
error: error2
|
|
167829
|
-
});
|
|
167830
167815
|
reject(error2);
|
|
167831
167816
|
});
|
|
167832
167817
|
}).catch((error2) => {
|
|
167833
|
-
this.emit("error", {
|
|
167834
|
-
sessionId: this.sessionId,
|
|
167835
|
-
error: error2 instanceof Error ? error2 : new Error(String(error2))
|
|
167836
|
-
});
|
|
167837
167818
|
reject(error2);
|
|
167838
167819
|
});
|
|
167839
167820
|
});
|
|
@@ -203347,7 +203328,7 @@ ${page}${helpTipBottom}${choiceDescription}${ansiEscapes.cursorHide}`;
|
|
|
203347
203328
|
data = createReviewBundleSnapshot(bundle);
|
|
203348
203329
|
}
|
|
203349
203330
|
const { injectReviewSnapshot } = await import("./chunks/index-VoI6Ds2-.js");
|
|
203350
|
-
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-
|
|
203331
|
+
const { resolveReviewViewerTemplate } = await import("./chunks/review-viewer-By7iC3mo.js");
|
|
203351
203332
|
const template = await resolveReviewViewerTemplate();
|
|
203352
203333
|
const html = injectReviewSnapshot(template, data);
|
|
203353
203334
|
const outputPath = options.output ? path__default$1.resolve(options.output) : defaultHtmlOutputPath(inputPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lody",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.1",
|
|
4
4
|
"description": "Lody Agent CLI tool for managing remote command execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"zod": "^4.1.5",
|
|
77
77
|
"zstd-stream": "^1.1.0",
|
|
78
78
|
"@lody/cli-supervisor": "0.0.1",
|
|
79
|
-
"@lody/
|
|
79
|
+
"@lody/code-review-helper": "0.0.0",
|
|
80
80
|
"@lody/loro-streams-rpc": "0.0.1",
|
|
81
81
|
"@lody/shared": "0.0.1",
|
|
82
|
-
"@lody/
|
|
83
|
-
"acp-extension-codex": "1.2.1",
|
|
82
|
+
"@lody/convex": "0.0.1",
|
|
84
83
|
"acp-extension-claude": "0.59.0",
|
|
84
|
+
"acp-extension-codex": "1.2.1",
|
|
85
85
|
"acp-extension-core": "0.0.5",
|
|
86
|
-
"lody-code-review-viewer": "0.71.
|
|
86
|
+
"lody-code-review-viewer": "0.71.1"
|
|
87
87
|
},
|
|
88
88
|
"files": [
|
|
89
89
|
"dist",
|