mio-agent-runtime 0.5.7 → 0.5.8
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/bin/mio.js +9 -0
- package/package.json +1 -1
package/bin/mio.js
CHANGED
|
@@ -45,6 +45,11 @@ function jsonOrText(payload, useJson) {
|
|
|
45
45
|
return payload
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
function versionCommand() {
|
|
49
|
+
const pkg = require(path.resolve(__dirname, '..', 'package.json'))
|
|
50
|
+
console.log(pkg.version)
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
function initCommand() {
|
|
49
54
|
ensureHome()
|
|
50
55
|
const config = readConfig()
|
|
@@ -218,6 +223,7 @@ function help() {
|
|
|
218
223
|
console.log(`Mio Agent Runtime CLI
|
|
219
224
|
|
|
220
225
|
Usage:
|
|
226
|
+
mio version Show installed Mio version
|
|
221
227
|
mio init Initialize MIO_HOME
|
|
222
228
|
mio mcp Start Mio MCP server (stdio)
|
|
223
229
|
mio install <host> Install Mio into a host (codex|opencode|workbuddy|hermes)
|
|
@@ -238,6 +244,9 @@ function main() {
|
|
|
238
244
|
const command = args[0] || 'help'
|
|
239
245
|
|
|
240
246
|
switch (command) {
|
|
247
|
+
case 'version':
|
|
248
|
+
case '--version':
|
|
249
|
+
return versionCommand()
|
|
241
250
|
case 'init':
|
|
242
251
|
return initCommand()
|
|
243
252
|
case 'mcp':
|