vole-agent 0.1.0 → 0.1.2
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/app.js +1 -1
- package/dist/{chunk-RPVF2IWG.js → chunk-DZLI6PBD.js} +10 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -4539,7 +4539,7 @@ async function main() {
|
|
|
4539
4539
|
const args = process.argv.slice(2);
|
|
4540
4540
|
const [command] = args;
|
|
4541
4541
|
const effectiveCommand = args.find((a) => a !== "--");
|
|
4542
|
-
if (effectiveCommand === "chat" && !args.includes("--fake") && !args.includes("--fake-interactive")) {
|
|
4542
|
+
if (effectiveCommand === "chat" && !args.includes("--help") && !args.includes("-h") && !args.includes("--fake") && !args.includes("--fake-interactive")) {
|
|
4543
4543
|
const { runInkChat } = await import("./app.js");
|
|
4544
4544
|
await runInkChat({ args, env: process.env });
|
|
4545
4545
|
return;
|
|
@@ -4549,7 +4549,14 @@ async function main() {
|
|
|
4549
4549
|
output: process.stdout
|
|
4550
4550
|
});
|
|
4551
4551
|
const lineIterator = terminal[Symbol.asyncIterator]();
|
|
4552
|
-
const
|
|
4552
|
+
const selfDir = dirname4(fileURLToPath(import.meta.url));
|
|
4553
|
+
let pkgVersion = "0.0.0";
|
|
4554
|
+
try {
|
|
4555
|
+
const raw = await readFile6(join7(selfDir, "../package.json"), "utf8");
|
|
4556
|
+
pkgVersion = JSON.parse(raw).version;
|
|
4557
|
+
} catch {
|
|
4558
|
+
}
|
|
4559
|
+
const result = await runCli(args, pkgVersion, {
|
|
4553
4560
|
env: process.env,
|
|
4554
4561
|
readLine: async (prompt) => {
|
|
4555
4562
|
process.stdout.write(prompt);
|
|
@@ -4563,9 +4570,7 @@ async function main() {
|
|
|
4563
4570
|
process.stderr.write(result.stderr);
|
|
4564
4571
|
process.exitCode = result.exitCode;
|
|
4565
4572
|
}
|
|
4566
|
-
|
|
4567
|
-
void main();
|
|
4568
|
-
}
|
|
4573
|
+
void main();
|
|
4569
4574
|
|
|
4570
4575
|
export {
|
|
4571
4576
|
loadConfig,
|
package/dist/index.js
CHANGED