llm-wiki-kit 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-wiki-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Hook-first living LLM Wiki runtime for Codex and Claude Code.",
5
5
  "type": "module",
6
6
  "files": [
package/src/cli.js CHANGED
@@ -65,6 +65,7 @@ Usage:
65
65
  llm-wiki doctor
66
66
  llm-wiki projects --workspace /apps
67
67
  llm-wiki status
68
+ llm-wiki version
68
69
  llm-wiki uninstall
69
70
  llm-wiki hook codex <EventName>
70
71
  llm-wiki hook claude <EventName>
@@ -97,6 +98,16 @@ Usage:
97
98
  return;
98
99
  }
99
100
 
101
+ if (command === 'version' || command === '--version' || command === '-v') {
102
+ const result = await status(options);
103
+ printJsonOrText({
104
+ version: result.runtimeVersion,
105
+ installSource: result.installSource,
106
+ binPath: result.binPath,
107
+ }, options, (value) => value.version);
108
+ return;
109
+ }
110
+
100
111
  if (command === 'projects') {
101
112
  const result = await listProjects(options);
102
113
  printJsonOrText(result, options, formatProjects);
@@ -169,6 +180,7 @@ function formatStatus(value) {
169
180
  const project = value.project || {};
170
181
  return [
171
182
  'llm-wiki-kit status',
183
+ `- version: ${value.runtimeVersion}`,
172
184
  `- runtime: ${value.runtimeVersion} (${value.installSource})`,
173
185
  `- bin: ${value.binPath}`,
174
186
  `- hooks current: ${value.hooksCurrent ? 'yes' : 'no'}`,