@chronova/wiki-agent 1.7.1 → 1.8.0

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/cli.js CHANGED
@@ -6,10 +6,11 @@ import { promisify } from "node:util";
6
6
  import { runAgent } from "./agent.js";
7
7
  import { resolveConfig, createOllamaClient, } from "./config.js";
8
8
  import { getHelpText } from "./prompt.js";
9
+ import { VERSION } from "./version.js";
9
10
  import { App } from "./tui/App.js";
10
11
  const execAsync = promisify(exec);
11
12
  function parseArgs(argv) {
12
- const args = { command: null, print: false, verbose: false, wiki: false, help: false };
13
+ const args = { command: null, print: false, verbose: false, wiki: false, help: false, version: false };
13
14
  for (let i = 2; i < argv.length; i++) {
14
15
  const arg = argv[i];
15
16
  switch (arg) {
@@ -36,6 +37,9 @@ function parseArgs(argv) {
36
37
  case "-h":
37
38
  args.help = true;
38
39
  break;
40
+ case "--version":
41
+ args.version = true;
42
+ break;
39
43
  }
40
44
  }
41
45
  return args;
@@ -87,6 +91,10 @@ async function runHeadless(command, cwd, model, verbose, wiki) {
87
91
  }
88
92
  async function main() {
89
93
  const args = parseArgs(process.argv);
94
+ if (args.version) {
95
+ console.log(`wiki-agent v${VERSION}`);
96
+ process.exit(0);
97
+ }
90
98
  if (args.help || args.command === null) {
91
99
  console.log(getHelpText());
92
100
  process.exit(0);
package/dist/prompt.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import path from "node:path";
3
+ import { VERSION } from "./version.js";
3
4
  /**
4
5
  * Reads AGENTS.md or CLAUDE.md from the project root, if either exists.
5
6
  * Returns the file content (first match wins: AGENTS.md, then CLAUDE.md).
@@ -134,9 +135,10 @@ export function getHelpText() {
134
135
  __ _____ _ _____ _ ____ _____ _ _ _____
135
136
  \\ \\ / /_ _| |/ /_ _| / \\ / ___| ____| \\ | |_ _|
136
137
  \\ \\ /\\ / / | || ' / | | / _ \\| | _| _| | \\| | | |
137
- \\ V V / | || . \\ | | / ___ \\ |_| | |___| |\\ | | |
138
138
  \\_/\\_/ |___|_|\\_\\___| /_/ \\_\\____|_____|_| \\_| |_|
139
139
 
140
+ v${VERSION}
141
+
140
142
  Usage
141
143
  wiki --init Initialize wiki documentation (interactive)
142
144
  wiki --update Update existing wiki documentation (interactive)
@@ -145,6 +147,7 @@ Usage
145
147
  wiki --init --print --model <id> Specify model
146
148
  wiki --update --print --verbose Headless update with full tool logs
147
149
  wiki --update --print --wiki Update and publish to the GitHub Wiki tab
150
+ wiki --version Show version
148
151
  wiki --help Show this help
149
152
 
150
153
  Options
@@ -153,7 +156,7 @@ Options
153
156
  --print Run headless (non-interactive, output to stdout)
154
157
  --verbose, -v Show full tool call results (default: assistant prose only)
155
158
  --model <id> Override the model ID
156
- --wiki Publish to the GitHub Wiki tab (generates wiki-publish workflow)
159
+ --version Show version
157
160
  --help, -h Show help
158
161
 
159
162
  Environment variables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chronova/wiki-agent",
3
- "version": "1.7.1",
3
+ "version": "1.8.0",
4
4
  "description": "Standalone Ollama-only documentation agent",
5
5
  "type": "module",
6
6
  "bin": {