@miphamai/cli 0.5.2 → 0.5.3

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/bin/mipham.ts +7 -0
  2. package/package.json +1 -1
package/bin/mipham.ts CHANGED
@@ -179,6 +179,13 @@ async function runPluginCLI(): Promise<boolean> {
179
179
  }
180
180
 
181
181
  async function main() {
182
+ // ── Version flag ──────────────────────────────────────────────────────────
183
+ if (process.argv.includes('--version') || process.argv.includes('-v') || process.argv.includes('-V')) {
184
+ const pkg = await import('../package.json')
185
+ console.log(`${pkg.name} v${pkg.version}`)
186
+ process.exit(0)
187
+ }
188
+
182
189
  // Check for plugin subcommands first
183
190
  const handledPlugin = await runPluginCLI()
184
191
  if (handledPlugin) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miphamai/cli",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Mipham Code — Multi-model open-core intelligent coding terminal by MiphamAI",
5
5
  "keywords": [
6
6
  "ai",