@miphamai/cli 0.5.2 → 0.5.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/bin/mipham.ts CHANGED
@@ -179,6 +179,17 @@ async function runPluginCLI(): Promise<boolean> {
179
179
  }
180
180
 
181
181
  async function main() {
182
+ // ── Version flag ──────────────────────────────────────────────────────────
183
+ if (
184
+ process.argv.includes('--version') ||
185
+ process.argv.includes('-v') ||
186
+ process.argv.includes('-V')
187
+ ) {
188
+ const pkg = await import('../package.json')
189
+ console.log(`${pkg.name} v${pkg.version}`)
190
+ process.exit(0)
191
+ }
192
+
182
193
  // Check for plugin subcommands first
183
194
  const handledPlugin = await runPluginCLI()
184
195
  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.4",
4
4
  "description": "Mipham Code — Multi-model open-core intelligent coding terminal by MiphamAI",
5
5
  "keywords": [
6
6
  "ai",
package/src/ui/app.tsx CHANGED
@@ -353,44 +353,6 @@ export function App({
353
353
 
354
354
  return (
355
355
  <Box flexDirection="column" padding={1} height="100%">
356
- {/* Header — brand mark + status line */}
357
- <Box marginBottom={1} flexDirection="column">
358
- <Box flexDirection="row">
359
- <Text bold color="cyan">
360
- Mipham Code
361
- </Text>
362
- <Text dimColor> v{VERSION}</Text>
363
- {sessionTitle ? (
364
- <Text color="yellow"> — {sessionTitle}</Text>
365
- ) : (
366
- <Text dimColor> — MiphamAI</Text>
367
- )}
368
- </Box>
369
- <Box flexDirection="row">
370
- <Text dimColor>
371
- {modelId} ({providerId}){fastMode && ' ⚡'}
372
- {effort !== 'high' && ` 🧠${effort}`}
373
- {focusMode && ' 🔍focus'}
374
- </Text>
375
- </Box>
376
- <Box flexDirection="row">
377
- <Text
378
- color={
379
- permissionMode === 'auto' ? 'green' : permissionMode === 'ask' ? 'yellow' : 'red'
380
- }
381
- >
382
- ● {PERMISSION_LABELS[permissionMode]}
383
- </Text>
384
- <Text dimColor> (Shift+Tab to cycle)</Text>
385
- <Text dimColor> · Ctrl+P pick · /help · Esc cancel</Text>
386
- </Box>
387
- {goalText && (
388
- <Box>
389
- <Text color="green">🎯 Goal: {goalText}</Text>
390
- </Box>
391
- )}
392
- </Box>
393
-
394
356
  {/* Agent progress banner */}
395
357
  {agentProgress && (
396
358
  <Box flexDirection="column" marginY={1}>
@@ -430,6 +392,33 @@ export function App({
430
392
  /* Input bar (hidden when picker is open) */
431
393
  <InputBar onSubmit={handleSubmit} isLoading={isLoading} />
432
394
  )}
395
+
396
+ {/* Footer — brand mark + status line */}
397
+ <Box marginTop={1} flexDirection="column">
398
+ {goalText && (
399
+ <Box>
400
+ <Text color="green">🎯 Goal: {goalText}</Text>
401
+ </Box>
402
+ )}
403
+ <Box flexDirection="row">
404
+ <Text dimColor>
405
+ {modelId} ({providerId}){fastMode && ' ⚡'}
406
+ {effort !== 'high' && ` 🧠${effort}`}
407
+ {focusMode && ' 🔍focus'}
408
+ </Text>
409
+ </Box>
410
+ <Box flexDirection="row">
411
+ <Text
412
+ color={
413
+ permissionMode === 'auto' ? 'green' : permissionMode === 'ask' ? 'yellow' : 'red'
414
+ }
415
+ >
416
+ ● {PERMISSION_LABELS[permissionMode]}
417
+ </Text>
418
+ <Text dimColor> (Shift+Tab to cycle)</Text>
419
+ <Text dimColor> · Ctrl+P pick · /help · Esc cancel</Text>
420
+ </Box>
421
+ </Box>
433
422
  </Box>
434
423
  )
435
424
  }