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 +1 -1
- package/package.json +1 -1
- package/server/bin/wicked-brain-server.mjs +16 -12
- package/server/package.json +1 -1
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
|
|
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
|
@@ -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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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" };
|