@floydous/pi-agent-kernel 0.1.0 → 0.2.0
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/CHANGELOG.md +32 -0
- package/README.md +17 -0
- package/grammars/tree-sitter-bash.wasm +0 -0
- package/grammars/tree-sitter-c.wasm +0 -0
- package/grammars/tree-sitter-c_sharp.wasm +0 -0
- package/grammars/tree-sitter-cpp.wasm +0 -0
- package/grammars/tree-sitter-go.wasm +0 -0
- package/grammars/tree-sitter-java.wasm +0 -0
- package/grammars/tree-sitter-javascript.wasm +0 -0
- package/grammars/tree-sitter-php.wasm +0 -0
- package/grammars/tree-sitter-python.wasm +0 -0
- package/grammars/tree-sitter-ruby.wasm +0 -0
- package/grammars/tree-sitter-rust.wasm +0 -0
- package/grammars/tree-sitter-tsx.wasm +0 -0
- package/grammars/tree-sitter-typescript.wasm +0 -0
- package/grammars/web-tree-sitter.wasm +0 -0
- package/package.json +8 -7
- package/src/index.ts +69 -3
- package/src/lsp/lsp_formatter.ts +3 -1
- package/src/lsp/lsp_registry.ts +25 -1
- package/src/retrieval/ast_search.ts +5 -1
- package/src/retrieval/repomap.ts +29 -2
- package/src/retrieval/search_chunker.ts +5 -2
- package/src/retrieval/search_index.ts +22 -3
- package/src/retrieval/symbol_reader.ts +5 -2
- package/src/retrieval/tree_sitter_engine.ts +799 -0
- package/src/tools/lsp_tool.ts +5 -3
- package/static/with-agent-kernel.png +0 -0
- package/static/without-agent-kernel-1.png +0 -0
- package/static/without-agent-kernel-2.png +0 -0
- package/static/without-agent-kernel-3.png +0 -0
package/src/tools/lsp_tool.ts
CHANGED
|
@@ -533,9 +533,11 @@ export function registerLspTool(pi: ExtensionAPI, deps?: SessionDeps): void {
|
|
|
533
533
|
let refs = await client.findReferences(absPath, line0, col0);
|
|
534
534
|
if (refs.length > 0) {
|
|
535
535
|
refs = filterRefs(refs);
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
536
|
+
if (refs.length > 0) {
|
|
537
|
+
return {
|
|
538
|
+
content: [{ type: "text", text: formatReferences(refs, ctx.cwd) }],
|
|
539
|
+
};
|
|
540
|
+
}
|
|
539
541
|
}
|
|
540
542
|
const ext = path.extname(absPath).toLowerCase();
|
|
541
543
|
const nonCodeExts = [".md", ".markdown", ".json", ".jsonc", ".yaml", ".yml", ".toml", ".proto", ".txt"];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|