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.
- package/package.json +1 -1
- package/src/cli.js +12 -0
package/package.json
CHANGED
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'}`,
|