shrinker-ai 0.3.0 → 0.3.1

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/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "shrinker-ai",
3
- "version": "0.3.0",
4
- "description": "Local deterministic command-output shrinker for coding agents",
5
- "type": "module",
6
- "bin": {
7
- "shrinker": "dist/src/cli.js"
8
- },
9
- "scripts": {
10
- "start": "tsc -w -p tsconfig.json",
11
- "build": "tsc -p tsconfig.json",
12
- "pack": "npm run build --silent && npm pack",
13
- "test": "npm run build --silent && node --test \"dist/tests/*.test.js\"",
14
- "demo": "npm run build --silent && node dist/demo/run-demo.js",
15
- "install:local": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/install.ps1 -Local",
16
- "install:local:macos": "./integrations/macos/install.sh --local",
17
- "install:github": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/install.ps1",
18
- "install:github:macos": "./integrations/macos/install.sh",
19
- "uninstall:local": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/uninstall.ps1",
20
- "uninstall:local:macos": "./integrations/macos/uninstall.sh",
21
- "uninstall:github": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/uninstall.ps1",
22
- "uninstall:github:macos": "./integrations/macos/uninstall.sh"
23
- },
24
- "devDependencies": {
25
- "@types/node": "^24.0.0",
26
- "typescript": "^5.9.0"
27
- },
28
- "engines": {
29
- "node": ">=22.13"
30
- },
31
- "publishConfig": {
32
- "registry": "https://registry.npmjs.org"
33
- },
34
- "license": "MIT",
35
- "repository": {
36
- "type": "git",
37
- "url": "git+https://github.com/ivanduplenskikh/shrinker.git"
38
- }
39
- }
1
+ {
2
+ "name": "shrinker-ai",
3
+ "version": "0.3.1",
4
+ "description": "Local deterministic command-output shrinker for coding agents",
5
+ "type": "module",
6
+ "bin": {
7
+ "shrinker": "dist/src/cli.js"
8
+ },
9
+ "scripts": {
10
+ "start": "tsc -w -p tsconfig.json",
11
+ "build": "tsc -p tsconfig.json",
12
+ "pack": "npm run build --silent && npm pack",
13
+ "test": "npm run build --silent && node --test \"dist/tests/*.test.js\"",
14
+ "demo": "npm run build --silent && node dist/demo/run-demo.js",
15
+ "install:local": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/install.ps1 -Local",
16
+ "install:local:macos": "./integrations/macos/install.sh --local",
17
+ "install:github": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/install.ps1",
18
+ "install:github:macos": "./integrations/macos/install.sh",
19
+ "uninstall:local": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/uninstall.ps1",
20
+ "uninstall:local:macos": "./integrations/macos/uninstall.sh",
21
+ "uninstall:github": "pwsh -ExecutionPolicy Bypass -File ./integrations/windows/uninstall.ps1",
22
+ "uninstall:github:macos": "./integrations/macos/uninstall.sh"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^24.0.0",
26
+ "typescript": "^5.9.0"
27
+ },
28
+ "engines": {
29
+ "node": ">=22.13"
30
+ },
31
+ "publishConfig": {
32
+ "registry": "https://registry.npmjs.org"
33
+ },
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/ivanduplenskikh/shrinker.git"
38
+ }
39
+ }
@@ -1,19 +1,19 @@
1
- Use `shrinker` for high-volume terminal outputs to reduce tokens.
2
-
3
- Routing policy:
4
- - `git status|diff|log|show|reflog|branch|tag|stash` -> `shrinker git ...`
5
- - `npm test|t|install|i|ci|ls|list` -> `shrinker npm ...`
6
- - `docker ps|logs|images|compose` -> `shrinker docker ...`
7
- - `kubectl get|describe|logs` -> `shrinker kubectl ...`
8
- - `gh pr|issue|run` -> `shrinker gh ...`
9
- - `rg`, `find`, `tail`, `cat`, `ls`, `dir` -> `shrinker <command> ...`
10
-
11
- Bypass shrinker when:
12
- - command modifies remote state and output volume is already tiny
13
- - command requires interactive stdin
14
- - command explicitly needs `shrinker --raw`
15
-
16
- Examples:
17
- - `shrinker git log -n 20`
18
- - `shrinker rg "pattern" src`
1
+ Use `shrinker` for high-volume terminal outputs to reduce tokens.
2
+
3
+ Routing policy:
4
+ - `git status|diff|log|show|reflog|branch|tag|stash` -> `shrinker git ...`
5
+ - `npm test|t|install|i|ci|ls|list` -> `shrinker npm ...`
6
+ - `docker ps|logs|images|compose` -> `shrinker docker ...`
7
+ - `kubectl get|describe|logs` -> `shrinker kubectl ...`
8
+ - `gh pr|issue|run` -> `shrinker gh ...`
9
+ - `rg`, `find`, `tail`, `cat`, `ls`, `dir` -> `shrinker <command> ...`
10
+
11
+ Bypass shrinker when:
12
+ - command modifies remote state and output volume is already tiny
13
+ - command requires interactive stdin
14
+ - command explicitly needs `shrinker --raw`
15
+
16
+ Examples:
17
+ - `shrinker git log -n 20`
18
+ - `shrinker rg "pattern" src`
19
19
  - `shrinker docker logs api --tail 500`