vole-agent 0.1.1 → 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 CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  CliChatSession,
4
4
  loadConfig,
5
5
  renderToolResult
6
- } from "./chunk-S6F7XLCY.js";
6
+ } from "./chunk-DZLI6PBD.js";
7
7
 
8
8
  // src/app.tsx
9
9
  import { useState, useEffect, useCallback, useMemo, useRef as useRef2 } from "react";
@@ -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 result = await runCli(args, "0.0.0", {
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);
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  renderTodosProgress,
9
9
  renderToolResult,
10
10
  runCli
11
- } from "./chunk-S6F7XLCY.js";
11
+ } from "./chunk-DZLI6PBD.js";
12
12
  export {
13
13
  CliChatSession,
14
14
  cliPackageName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vole-agent",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A capable coding and general-purpose agent",
5
5
  "type": "module",
6
6
  "bin": {