@miphamai/cli 0.16.3 → 0.16.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/ui/app.tsx +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miphamai/cli",
3
- "version": "0.16.3",
3
+ "version": "0.16.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
@@ -59,16 +59,21 @@ interface AgentProgress {
59
59
  // Version is read fresh from package.json at startup via runApp prop
60
60
  // (bypasses Bun module caching after npm update)
61
61
 
62
+ // Cycle order: Claude Code modes first (manual → accept edits → bypass),
63
+ // then Mipham-specific modes (plan → auto → dont ask).
62
64
  const PERMISSION_MODES: PermissionMode[] = [
63
65
  'default',
64
66
  'acceptEdits',
67
+ 'bypassPermissions',
65
68
  'plan',
66
69
  'auto',
67
70
  'dontAsk',
68
- 'bypassPermissions',
69
71
  ]
72
+ // Labels aligned with Claude Code terminology: describe behavior, not capability.
73
+ // Claude Code modes: manual mode → accept edits on → bypass
74
+ // Mipham extends with 3 extra modes (plan, auto, dontAsk) for finer control.
70
75
  const PERMISSION_LABELS: Record<PermissionMode, string> = {
71
- default: 'reads free',
76
+ default: 'manual mode',
72
77
  acceptEdits: 'accept edits on',
73
78
  plan: 'plan mode · read-only',
74
79
  auto: 'auto mode',
@@ -608,7 +613,7 @@ export function App({
608
613
  {/* Agent status footer — shows running background agents */}
609
614
  <AgentFooter agents={Object.values(runningAgents)} gitBranch={gitBranch} tick={agentTick} />
610
615
 
611
- {/* Status line — Claude Code style: compact, action-oriented */}
616
+ {/* Status line — Claude Code style */}
612
617
  <Box marginTop={1} flexDirection="column">
613
618
  {goalText && (
614
619
  <Box>
@@ -619,8 +624,8 @@ export function App({
619
624
  <Text color={PERMISSION_COLORS[permissionMode]}>
620
625
  ⏵⏵ {PERMISSION_LABELS[permissionMode]} (shift+tab to cycle)
621
626
  </Text>
622
- <Text dimColor> · Esc to interrupt</Text>
623
- <Text dimColor> · ← agents</Text>
627
+ <Text dimColor> · esc to interrupt</Text>
628
+ <Text dimColor> · ← for agents</Text>
624
629
  </Box>
625
630
  </Box>
626
631
  </Box>