token-goat 2.9.12 → 2.9.14
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 +20 -1
- package/dist/token-goat-chunk-2ESBO4IN.mjs +209 -0
- package/dist/token-goat-chunk-3BTK54F3.mjs +1733 -0
- package/dist/{token-goat-chunk-6NIGPPN6.mjs → token-goat-chunk-3XQPEJMV.mjs} +1 -1
- package/dist/token-goat-chunk-4SDX3QP3.mjs +122 -0
- package/dist/token-goat-chunk-7OGKZ7AP.mjs +142 -0
- package/dist/token-goat-chunk-AH6QILZM.mjs +26 -0
- package/dist/token-goat-chunk-AMYCQJX4.mjs +1548 -0
- package/dist/{token-goat-chunk-OTW7LC4Y.mjs → token-goat-chunk-ASVVF4JV.mjs} +13 -10
- package/dist/{token-goat-chunk-GCXX67HM.mjs → token-goat-chunk-DAMXYVIW.mjs} +12477 -12156
- package/dist/token-goat-chunk-DBNY4RLN.mjs +308 -0
- package/dist/token-goat-chunk-EG3663UT.mjs +226 -0
- package/dist/token-goat-chunk-EZNVAIR3.mjs +21 -0
- package/dist/token-goat-chunk-GMOUBOX4.mjs +386 -0
- package/dist/{token-goat-chunk-6F5TLJC7.mjs → token-goat-chunk-HF6H7RNK.mjs} +1 -1
- package/dist/{token-goat-chunk-GM6QZWCF.mjs → token-goat-chunk-IT6O3PNN.mjs} +2660 -6877
- package/dist/token-goat-chunk-NEI4NC54.mjs +424 -0
- package/dist/token-goat-chunk-O5WAMISC.mjs +167 -0
- package/dist/{token-goat-chunk-LHLQFGWQ.mjs → token-goat-chunk-OMNQUUIT.mjs} +9 -27
- package/dist/{token-goat-chunk-SF2CKCFQ.mjs → token-goat-chunk-PGGDW7DZ.mjs} +30 -13
- package/dist/token-goat-chunk-POBYR64E.mjs +1632 -0
- package/dist/token-goat-chunk-PRJVGIC5.mjs +58 -0
- package/dist/{token-goat-chunk-4CK445AW.mjs → token-goat-chunk-RUDOKYPJ.mjs} +10074 -9765
- package/dist/token-goat-chunk-SAQ5PG4L.mjs +2634 -0
- package/dist/token-goat-chunk-T2IWWTHB.mjs +3155 -0
- package/dist/{token-goat-chunk-TOGYS5A7.mjs → token-goat-chunk-VZYD4OZB.mjs} +1469 -5752
- package/dist/token-goat-chunk-XEH6KBWW.mjs +23 -0
- package/dist/token-goat-chunk-XQF5J25J.mjs +33 -0
- package/dist/token-goat-chunk-XTQAOTSO.mjs +89 -0
- package/dist/{token-goat-chunk-THLHC6QJ.mjs → token-goat-chunk-XVZ4MNQC.mjs} +614 -603
- package/dist/token-goat-chunk-Y4AFKTHK.mjs +22 -0
- package/dist/token-goat-chunk-YHGTGG6K.mjs +396 -0
- package/dist/{token-goat-chunk-SBYRP3X4.mjs → token-goat-chunk-YTQHZJXW.mjs} +61 -27
- package/dist/token-goat-chunk-Z6UXPYJA.mjs +62 -0
- package/dist/token-goat-chunk-ZD4EM4LR.mjs +30 -0
- package/dist/token-goat-chunk-ZFM4PWXL.mjs +585 -0
- package/dist/{token-goat-chunk-A6QTLAWO.mjs → token-goat-chunk-ZYNNQ36L.mjs} +128 -328
- package/dist/token-goat-hook.mjs +12 -6
- package/dist/token-goat.core.mjs +22 -7
- package/docs/cli.md +12 -8
- package/docs/security.md +1 -1
- package/package.json +4 -2
- package/dist/token-goat-chunk-HKFOH6JH.mjs +0 -28
- package/dist/token-goat-chunk-LOCOX2ML.mjs +0 -3564
- package/dist/token-goat-chunk-VRWX6QYW.mjs +0 -24
package/docs/security.md
CHANGED
|
@@ -16,7 +16,7 @@ Outbound network is reserved to these explicit cases:
|
|
|
16
16
|
- Image fetches from URLs: either explicit via `token-goat fetch-image <url>`, or when the AI agent issues a WebFetch call that returns image content — the hook intercepts and shrinks the image. The URL always originates from the agent's work, not from token-goat itself.
|
|
17
17
|
- `token-goat screenshot <url>` navigates a headless browser to the URL you give it, subject to the target restrictions described below.
|
|
18
18
|
- The first `token-goat semantic` run on a machine downloads the embedding model from `huggingface.co`, pinned to an immutable commit rather than a mutable branch and checked against a recorded SHA-256 and byte length before it is used, and only once `onnxruntime-node` has been installed (see below — it is not part of a default install). Subsequent runs use the local cache, re-verify it, and make no network call. Setting `TOKEN_GOAT_MODEL_CACHE_DIR` adds one more place to look before the network: a directory you name that outlives any single data root, which is how a continuous-integration job stops refetching the weights once per worker. A file taken from there is checked against the same recorded digest as a downloaded one and dropped from the shared directory if it fails, and an entry that is not a plain file of the expected size is passed over without being read at all, so a tampered copy costs a download and cannot substitute different weights, stall the read, or fill the disk. Token-goat also writes there, and treats the directory as somebody else's: it creates its temporary file exclusively rather than through whatever is already sitting at that name, and removes only what it created. Point it at a directory you control all the same, since nothing token-goat does can stop another writer filling it with entries that will simply be rejected. It is an environment variable only, so no project config file can point it anywhere. Skip the download entirely by setting `indexing.embeddings_enabled = false` (it is on by default), in which case `semantic` falls back to full-text search.
|
|
19
|
-
- The first optical-character read of an image downloads the
|
|
19
|
+
- The first optical-character read of an image downloads the language data (about 4 MB; English `eng` by default, plus any additional opt-in languages configured via `image_shrink.ocr_lang`, `TOKEN_GOAT_OCR_LANG`, or `--lang` among 16 pinned models) from `cdn.jsdelivr.net`, at a fixed version path with precomputed SHA-256 integrity verification against the decompressed traineddata payload. Subsequent reads use the local cache. This happens for an explicit `token-goat image-text`, and also for the automatic text extraction the image-shrink hook performs when the agent reads a screenshot; turn the automatic one off with `image_shrink.ocr_enabled = false`.
|
|
20
20
|
|
|
21
21
|
**One switch for all of it.** Set `network.offline = true` (env `TOKEN_GOAT_OFFLINE`) and every one of the paths above refuses instead of connecting, saying so rather than failing quietly. Anything already cached keeps working: a machine that has the embedding model still runs `semantic`, and one that has the language data still reads text out of images. This is one of the settings a per-project config file may not touch, so cloning a repository cannot switch it back off.
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "token-goat",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.14",
|
|
4
4
|
"description": "Surgical token-reduction companion for Claude Code and other AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/token-goat.mjs",
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"parser:fingerprint": "node scripts/parser-fingerprint.mjs",
|
|
39
39
|
"parser:fingerprint:check": "node scripts/parser-fingerprint.mjs --check",
|
|
40
40
|
"schema:copilot": "node scripts/extract_harness_schema.mjs auto --harness copilot_cli --out schemas/copilot_cli.hooks.json",
|
|
41
|
-
"schema:copilot:check": "node scripts/extract_harness_schema.mjs auto --harness copilot_cli --out schemas/copilot_cli.hooks.json --check"
|
|
41
|
+
"schema:copilot:check": "node scripts/extract_harness_schema.mjs auto --harness copilot_cli --out schemas/copilot_cli.hooks.json --check",
|
|
42
|
+
"docs:arch": "node scripts/sync-arch-docs.mjs",
|
|
43
|
+
"docs:arch:check": "node scripts/sync-arch-docs.mjs --check"
|
|
42
44
|
},
|
|
43
45
|
"contributors": [
|
|
44
46
|
{
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire as __cjsRequire } from 'node:module';
|
|
2
|
-
const require = __cjsRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
applyExitOverride,
|
|
5
|
-
buildProgram,
|
|
6
|
-
cmdIndex,
|
|
7
|
-
expandGlobs,
|
|
8
|
-
leftoverIntegrations,
|
|
9
|
-
run,
|
|
10
|
-
visualStudioManualSteps
|
|
11
|
-
} from "./token-goat-chunk-GCXX67HM.mjs";
|
|
12
|
-
import "./token-goat-chunk-4CK445AW.mjs";
|
|
13
|
-
import "./token-goat-chunk-6F5TLJC7.mjs";
|
|
14
|
-
import "./token-goat-chunk-A6QTLAWO.mjs";
|
|
15
|
-
import "./token-goat-chunk-GM6QZWCF.mjs";
|
|
16
|
-
import "./token-goat-chunk-TOGYS5A7.mjs";
|
|
17
|
-
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
18
|
-
import "./token-goat-chunk-LOCOX2ML.mjs";
|
|
19
|
-
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
20
|
-
export {
|
|
21
|
-
applyExitOverride,
|
|
22
|
-
buildProgram,
|
|
23
|
-
cmdIndex,
|
|
24
|
-
expandGlobs,
|
|
25
|
-
leftoverIntegrations,
|
|
26
|
-
run,
|
|
27
|
-
visualStudioManualSteps
|
|
28
|
-
};
|