claude-brain 0.3.3 → 0.3.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-brain",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Local development assistant bridging Obsidian vaults with Claude Code via MCP",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -21,8 +21,8 @@ export function box(content: string, title?: string): string {
21
21
  const body = lines.map(line => {
22
22
  // Strip ANSI codes to calculate visible length
23
23
  const visible = stripAnsi(line)
24
- const padding = Math.max(0, innerWidth - visible.length)
25
- return theme.secondary('│') + ' ' + line + ' '.repeat(padding - 1) + theme.secondary('│')
24
+ const padding = Math.max(0, innerWidth - visible.length - 1)
25
+ return theme.secondary('│') + ' ' + line + ' '.repeat(padding) + theme.secondary('│')
26
26
  })
27
27
 
28
28
  return [top, ...body, bottom].join('\n')
@@ -78,5 +78,5 @@ export function summaryPanel(title: string, items: Array<{ label: string; value:
78
78
  // Strip ANSI escape codes for length calculation
79
79
  function stripAnsi(str: string): string {
80
80
  // eslint-disable-next-line no-control-regex
81
- return str.replace(/\u001B\[[0-9;]*m/g, '')
81
+ return str.replace(/\u001B\[[0-9;]*[a-zA-Z]/g, '')
82
82
  }
@@ -234,8 +234,10 @@ SERVER_NAME=claude-brain
234
234
  heading('Setup complete!'),
235
235
  '',
236
236
  dimText('Next steps:'),
237
- ` ${theme.primary('1.')} Run: ${theme.bold('claude-brain install')} ${dimText('Register MCP with Claude Code')}`,
238
- ` ${theme.primary('2.')} Run: ${theme.bold('claude-brain health')} ${dimText('Verify everything works')}`,
237
+ ` ${theme.primary('1.')} ${theme.bold('claude-brain install')}`,
238
+ ` ${dimText('Register as MCP server')}`,
239
+ ` ${theme.primary('2.')} ${theme.bold('claude-brain health')}`,
240
+ ` ${dimText('Verify everything works')}`,
239
241
  ].join('\n'), 'Done'))
240
242
  console.log()
241
243
  }