@zj669/codeq-pi 0.3.2 → 0.3.4

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
@@ -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.2` (locators, literal grep, opaque grep cursor). This
7
+ `@zj669/codeq@0.3.4` (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.2
11
+ npm i -g @zj669/codeq@0.3.4
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.2",
3
+ "version": "0.3.4",
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.2"
34
+ "@zj669/codeq": "0.3.4"
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, 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.';
21
+ "codeq graph: identifiers, or a short question about how X works, where X is defined, or who calls / uses X. Returns an entry span, direct callees, and direct callers — a map, not an answer or source. For how-it-works, Read the entry. For who-calls or where-used, use the callers locators; do not grep that name first. 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 }));
@@ -337,14 +337,14 @@ export function createCodeqExtension({
337
337
  description: GRAPH_DESCRIPTION,
338
338
  promptSnippet: "Explore the code graph (codeq / CodeGraph)",
339
339
  promptGuidelines: [
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, direct callees, and direct callers. Read the entry first; follow callees/callers only as needed. There is no callers tool.",
340
+ "graph is codeq CodeGraph explore, not a written answer. Query identifiers, how X works, where X is defined, or who calls / uses X — not a multi-paragraph question.",
341
+ "graph: for how-it-works, Read the entry. For who-calls or where-used, use the callers locators; do not grep that name first. 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({
345
345
  query: Type.String({
346
346
  description:
347
- 'Identifiers, or "how does X work" where X is identifiers. Identifier-shaped queries match the graph; a multi-paragraph question does not.',
347
+ 'Identifiers, or a short question about how X works, where X is defined, or who calls / uses X. Identifier-shaped queries match the graph; a multi-paragraph question does not.',
348
348
  }),
349
349
  path: pathField(),
350
350
  root: rootField(),