token-goat 2.9.16 → 2.9.17
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 -5
- package/dist/{token-goat-chunk-DMQ32ZSR.mjs → token-goat-chunk-26YUO7MP.mjs} +3 -3
- package/dist/{token-goat-chunk-GMXBQS6O.mjs → token-goat-chunk-2M33Q3O4.mjs} +30 -26
- package/dist/{token-goat-chunk-H3DXI6VD.mjs → token-goat-chunk-2VASS5VR.mjs} +1 -1
- package/dist/{token-goat-chunk-OCI25AXY.mjs → token-goat-chunk-2XA5ZW4T.mjs} +3 -3
- package/dist/{token-goat-chunk-4DC6DDIB.mjs → token-goat-chunk-5WB7GDH4.mjs} +5 -5
- package/dist/{token-goat-chunk-MA5BZ2KI.mjs → token-goat-chunk-66224KCZ.mjs} +1 -1
- package/dist/{token-goat-chunk-BFNTLGVA.mjs → token-goat-chunk-73GXYYZR.mjs} +31 -9
- package/dist/{token-goat-chunk-ULA4WCED.mjs → token-goat-chunk-7EGKXBWT.mjs} +7 -7
- package/dist/{token-goat-chunk-Z5VPAXTC.mjs → token-goat-chunk-7VQMOBPQ.mjs} +31 -20
- package/dist/{token-goat-chunk-63QWJ6UM.mjs → token-goat-chunk-BK3RPPTK.mjs} +2 -2
- package/dist/{token-goat-chunk-5USHO7B6.mjs → token-goat-chunk-C26ZBGBC.mjs} +5 -5
- package/dist/{token-goat-chunk-EJCY6KHO.mjs → token-goat-chunk-CICJFVIH.mjs} +2 -2
- package/dist/{token-goat-chunk-LJL6FGDS.mjs → token-goat-chunk-CKIJWTRQ.mjs} +11 -11
- package/dist/{token-goat-chunk-NQZCSVN2.mjs → token-goat-chunk-CPHVXKNU.mjs} +1 -1
- package/dist/{token-goat-chunk-VVIYEFBI.mjs → token-goat-chunk-EKGVCAES.mjs} +3 -3
- package/dist/{token-goat-chunk-QMZMHQRR.mjs → token-goat-chunk-G75WIVFM.mjs} +18 -18
- package/dist/{token-goat-chunk-UXHDBVUR.mjs → token-goat-chunk-GLOM5W5C.mjs} +1 -1
- package/dist/{token-goat-chunk-MIL62GMN.mjs → token-goat-chunk-GPCCYQSS.mjs} +6 -6
- package/dist/{token-goat-chunk-UMXD2M7O.mjs → token-goat-chunk-HRUGS6CO.mjs} +8 -8
- package/dist/{token-goat-chunk-2PCFAQAS.mjs → token-goat-chunk-IDHWKNKZ.mjs} +87 -10
- package/dist/{token-goat-chunk-GIMGT34T.mjs → token-goat-chunk-KZPO4DWC.mjs} +1 -1
- package/dist/{token-goat-chunk-R3X5TCPB.mjs → token-goat-chunk-MWSVUKVV.mjs} +1 -1
- package/dist/{token-goat-chunk-XOHTFRDH.mjs → token-goat-chunk-PKNOHVWP.mjs} +8 -8
- package/dist/{token-goat-chunk-M2R4UQ3B.mjs → token-goat-chunk-RB24DBBS.mjs} +2 -2
- package/dist/{token-goat-chunk-ZEHFYJ7Z.mjs → token-goat-chunk-RFFUCQK7.mjs} +4 -4
- package/dist/{token-goat-chunk-YPS64ACE.mjs → token-goat-chunk-SWRKVA3J.mjs} +1 -1
- package/dist/{token-goat-chunk-NAMH252H.mjs → token-goat-chunk-THBLW56G.mjs} +2 -2
- package/dist/{token-goat-chunk-3H6FQT62.mjs → token-goat-chunk-UBZCON6N.mjs} +1 -1
- package/dist/{token-goat-chunk-2IEIBVVD.mjs → token-goat-chunk-W2GUUQAQ.mjs} +1 -1
- package/dist/{token-goat-chunk-NOBZV7PM.mjs → token-goat-chunk-YFGEUIEO.mjs} +12 -12
- package/dist/token-goat-hook.mjs +11 -11
- package/dist/token-goat.core.mjs +18 -18
- package/docs/cli.md +1 -0
- package/package.json +1 -1
package/dist/token-goat.core.mjs
CHANGED
|
@@ -2,33 +2,33 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
run
|
|
5
|
-
} from "./token-goat-chunk-
|
|
6
|
-
import "./token-goat-chunk-
|
|
7
|
-
import "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-7VQMOBPQ.mjs";
|
|
6
|
+
import "./token-goat-chunk-IDHWKNKZ.mjs";
|
|
7
|
+
import "./token-goat-chunk-CICJFVIH.mjs";
|
|
8
8
|
import "./token-goat-chunk-LMFO66YD.mjs";
|
|
9
|
-
import "./token-goat-chunk-
|
|
10
|
-
import "./token-goat-chunk-
|
|
11
|
-
import "./token-goat-chunk-
|
|
12
|
-
import "./token-goat-chunk-
|
|
9
|
+
import "./token-goat-chunk-HRUGS6CO.mjs";
|
|
10
|
+
import "./token-goat-chunk-PKNOHVWP.mjs";
|
|
11
|
+
import "./token-goat-chunk-C26ZBGBC.mjs";
|
|
12
|
+
import "./token-goat-chunk-26YUO7MP.mjs";
|
|
13
13
|
import "./token-goat-chunk-LKSXAMJB.mjs";
|
|
14
|
-
import "./token-goat-chunk-
|
|
15
|
-
import "./token-goat-chunk-
|
|
16
|
-
import "./token-goat-chunk-
|
|
17
|
-
import "./token-goat-chunk-
|
|
14
|
+
import "./token-goat-chunk-CPHVXKNU.mjs";
|
|
15
|
+
import "./token-goat-chunk-W2GUUQAQ.mjs";
|
|
16
|
+
import "./token-goat-chunk-THBLW56G.mjs";
|
|
17
|
+
import "./token-goat-chunk-KZPO4DWC.mjs";
|
|
18
18
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
19
|
-
import "./token-goat-chunk-
|
|
19
|
+
import "./token-goat-chunk-66224KCZ.mjs";
|
|
20
20
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
21
21
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
22
|
-
import "./token-goat-chunk-
|
|
23
|
-
import "./token-goat-chunk-
|
|
24
|
-
import "./token-goat-chunk-
|
|
25
|
-
import "./token-goat-chunk-
|
|
26
|
-
import "./token-goat-chunk-
|
|
22
|
+
import "./token-goat-chunk-SWRKVA3J.mjs";
|
|
23
|
+
import "./token-goat-chunk-73GXYYZR.mjs";
|
|
24
|
+
import "./token-goat-chunk-BK3RPPTK.mjs";
|
|
25
|
+
import "./token-goat-chunk-MWSVUKVV.mjs";
|
|
26
|
+
import "./token-goat-chunk-2VASS5VR.mjs";
|
|
27
27
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
28
28
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
29
29
|
import {
|
|
30
30
|
installEpipeGuard
|
|
31
|
-
} from "./token-goat-chunk-
|
|
31
|
+
} from "./token-goat-chunk-UBZCON6N.mjs";
|
|
32
32
|
import "./token-goat-chunk-ERTXEKB6.mjs";
|
|
33
33
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
34
34
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
package/docs/cli.md
CHANGED
|
@@ -74,6 +74,7 @@ token-goat pdf-extract manual.pdf --pages 12-15 --layout --head 120
|
|
|
74
74
|
| `token-goat imports "file"` | Show the import graph for a file one level deep. Accepts a comma-separated file list (`"a,b,c"`) to cover several files in one call, one clearly-headed block per file; extra space-separated file arguments are reported in a note naming that comma form instead of being silently dropped. `--grep <pattern>` only shows imports whose MODULE SPECIFIER matches this regex (literal substring if it is not valid regex), applied before `--json`'s truncation; when it matches nothing among real imports, the output names the active filter instead of reading like the file has no imports at all. |
|
|
75
75
|
| `token-goat dep-docs <package>` | Extract one installed npm package's README, `package.json` metadata, and (if resolvable) a compact `.d.ts` signature outline, instead of grepping `node_modules`. |
|
|
76
76
|
| `token-goat find "<query>"` | Find the FILES defining a symbol whose name matches a pattern: a case-insensitive substring scan over indexed symbol names, emitting the distinct file paths. When no name contains the pattern, falls back to an edit-distance match so a mistyped name still lands (`getUserr` → `getUser`) — the same ranking `Did you mean:` uses. The fallback runs only when the substring pass found nothing, so an exact match is never reordered or displaced, and a query near nothing still reports a clean miss instead of unrelated names. A recovered match names what it actually matched on stderr rather than silently answering for a name you didn't type; `--json` marks it with `fuzzy: true` and `matchedNames`, both absent on an exact hit. `--limit <n>` caps the file count. Matches on NAMES only — for meaning-based search over file content use `token-goat semantic`. |
|
|
77
|
+
| `token-goat locate <spec>` | Locate a symbol or landmark with exact line spans across the project or in a specific file. Supports `name` or `file::name`, with fuzzy edit-distance fallback when no exact match is found. `--file <path>` restricts search to a specific file; `--limit <n>` caps results; `--json` emits the shared envelope with exact line spans. |
|
|
77
78
|
| `token-goat similar "file::symbol"` | Find the top-k symbols most similar to a given symbol, via full-text search over symbol names and bodies. Also accepts `read`'s `symbol@LINE` anchor to pick out an otherwise-ambiguous candidate. |
|
|
78
79
|
| `token-goat test-for "file"` | Find test file(s) for an implementation file and list their test functions. `--json`'s `testFile` renders root-relative when a project root resolves, absolute when none does, matching plain-text output. `--json` emits the shared `{items, truncated, totalCount}` envelope — the same shape `symbol`/`refs`/`skeleton`/`outline --json` return, present whether or not truncation occurred, so a script never has to branch on shape. |
|
|
79
80
|
| `token-goat dead` | Surface functions, methods, and classes with no recorded callers in the project index. Private names and common entry points (`main`, `app`, etc.) are excluded by default. `--include-private` lifts the underscore filter; `--kind` narrows to specific symbol types, comma-separated for a union (`--kind function,method`) — an unrecognized kind errors instead of silently reading as a clean codebase; `--top N` caps output; `--json` for structured output. `--exclude-tests` hides dead symbols DEFINED in a test file (opt-in — omitted, output is unchanged); prints a note naming how many were hidden. `--grep <pattern>` only shows dead symbols whose NAME matches this regex (literal substring if it is not valid regex), applied before `--top`'s slice; when it matches nothing among dead symbols that do exist, the output names the active filter instead of reading like a genuinely clean codebase. Results are a heuristic lead — dynamic dispatch and external callers are invisible to static indexing. `--json` emits both `file` and `filePath` with the identical value, root-relative when a project root resolves, absolute when none does, matching plain-text output; `file` is retained for this release only and will be removed in a future release, `filePath` is the spelling to migrate to (matching `symbol`/`types --json`). `--json` emits the shared `{items, truncated, totalCount}` envelope — the same shape `symbol`/`refs`/`skeleton`/`outline --json` return, present whether or not truncation occurred, so a script never has to branch on shape. |
|