wicked-brain 0.4.1 → 0.4.2

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/README.md CHANGED
@@ -126,7 +126,7 @@ Every operation uses **progressive loading** — the agent never pulls more than
126
126
 
127
127
  | Skill | What it does |
128
128
  |---|---|
129
- | `wicked-brain:init` | Set up a new brain — creates directory structure, then onboards your project in parallel |
129
+ | `wicked-brain:init` | Set up a new brain — creates structure, starts the server, and ingests your project in one shot |
130
130
  | `wicked-brain:ingest` | Add source files — text extracted deterministically, binary docs read via LLM vision |
131
131
  | `wicked-brain:search` | Parallel search across your brain and linked brains |
132
132
  | `wicked-brain:read` | Progressive loading: depth 0 (stats), depth 1 (summary), depth 2 (full content) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-brain",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "Digital brain as skills for AI coding CLIs — no vector DB, no embeddings, no infrastructure",
6
6
  "keywords": [
@@ -86,18 +86,22 @@ const actions = {
86
86
  candidates: (p) => ({ candidates: db.candidates(p) }),
87
87
  symbols: async (p) => {
88
88
  // Prefer LSP workspace symbols (structured, language-aware)
89
- const lspResult = await lsp.workspaceSymbols({ query: p.name || p.query || "" });
90
- if (lspResult.symbols && lspResult.symbols.length > 0) {
91
- return {
92
- results: lspResult.symbols.map(s => ({
93
- id: `${s.file}::${s.name}`,
94
- name: s.name,
95
- type: s.kind,
96
- file_path: s.file,
97
- line_start: s.line,
98
- })),
99
- source: "lsp",
100
- };
89
+ try {
90
+ const lspResult = await lsp.workspaceSymbols({ query: p.name || p.query || "" });
91
+ if (lspResult.symbols && lspResult.symbols.length > 0) {
92
+ return {
93
+ results: lspResult.symbols.map(s => ({
94
+ id: `${s.file}::${s.name}`,
95
+ name: s.name,
96
+ type: s.kind,
97
+ file_path: s.file,
98
+ line_start: s.line,
99
+ })),
100
+ source: "lsp",
101
+ };
102
+ }
103
+ } catch {
104
+ // LSP unavailable or errored (e.g. no tsconfig.json) — fall through to FTS
101
105
  }
102
106
  // Fall back to FTS-based symbol search
103
107
  return { ...db.symbols(p), source: "fts" };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-brain-server",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "SQLite FTS5 search server for wicked-brain digital knowledge bases",
6
6
  "keywords": [