@zj669/codeq-pi 0.3.1 → 0.3.3
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 +2 -2
- package/package.json +2 -2
- package/src/extension.js +3 -3
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@ Native [Pi](https://github.com/earendil-works/pi) coding-agent **extension**
|
|
|
4
4
|
(not MCP). Same three tools as the `codeq` CLI: `find`, `grep`, `graph`.
|
|
5
5
|
Queries go to the existing user-level codeq daemon. Same-name `grep` / `find`
|
|
6
6
|
override Pi's builtin `rg` / `fd`; `graph` is new. Schema matches
|
|
7
|
-
`@zj669/codeq@0.3.
|
|
7
|
+
`@zj669/codeq@0.3.3` (locators, literal grep, opaque grep cursor). This
|
|
8
8
|
directory is **not published to npm**; install from a checkout.
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
npm i -g @zj669/codeq@0.3.
|
|
11
|
+
npm i -g @zj669/codeq@0.3.3
|
|
12
12
|
pi install /absolute/path/to/agent_local_search/codeq-pi
|
|
13
13
|
# or, from a trusted project:
|
|
14
14
|
pi install -l /absolute/path/to/agent_local_search/codeq-pi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zj669/codeq-pi",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Pi coding-agent extension: codeq find, grep, and graph (overrides builtin rg/fd)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"typebox": "*"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@zj669/codeq": "0.3.
|
|
34
|
+
"@zj669/codeq": "0.3.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typebox": "1.3.27"
|
package/src/extension.js
CHANGED
|
@@ -18,7 +18,7 @@ const GREP_DESCRIPTION =
|
|
|
18
18
|
"codeq literal string search by default; this is not rg and not Pi's builtin rg. Pass regex:true for a regular expression, fuzzy:true for approximate/different identifiers. Returns matching lines.";
|
|
19
19
|
|
|
20
20
|
const GRAPH_DESCRIPTION =
|
|
21
|
-
'codeq graph: identifiers or short "how does X work". Returns an entry span and direct
|
|
21
|
+
'codeq graph: identifiers or short "how does X work". Returns an entry span, direct callees, and direct callers, not an answer or source. Read the entry first; follow callees/callers only as needed. Bounded neighborhood, not an exhaustive callgraph. There is no callers tool.';
|
|
22
22
|
|
|
23
23
|
function pathField() {
|
|
24
24
|
return Type.Optional(Type.String({ description: PATH_DESCRIPTION }));
|
|
@@ -268,7 +268,7 @@ export function createCodeqExtension({
|
|
|
268
268
|
parameters: Type.Object({
|
|
269
269
|
query: Type.String({
|
|
270
270
|
description:
|
|
271
|
-
"Path fragment, matched fuzzily (foo.py, profiles/app, SKILL.md). Not a glob:
|
|
271
|
+
"Path fragment, matched fuzzily (foo.py, profiles/app, SKILL.md). Not a glob: pass profile, not **/*profile*. Dotfiles are indexed.",
|
|
272
272
|
}),
|
|
273
273
|
path: pathField(),
|
|
274
274
|
root: rootField(),
|
|
@@ -338,7 +338,7 @@ export function createCodeqExtension({
|
|
|
338
338
|
promptSnippet: "Explore the code graph (codeq / CodeGraph)",
|
|
339
339
|
promptGuidelines: [
|
|
340
340
|
'graph is codeq CodeGraph explore, not a written answer. Query identifiers or "how does X work" where X is identifiers — not a multi-paragraph question.',
|
|
341
|
-
"graph returns an entry span and direct
|
|
341
|
+
"graph returns an entry span, direct callees, and direct callers. Read the entry first; follow callees/callers only as needed. There is no callers tool.",
|
|
342
342
|
"graph searches one repository per call. Pass root for another checkout; pass path to narrow. Replies are locators, never source.",
|
|
343
343
|
],
|
|
344
344
|
parameters: Type.Object({
|