squeze-cli 3.0.1 → 3.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.2 — 2026-11-15
4
+
5
+ ### Changed
6
+ - The README has a keyword-bearing title and lead, plus a new FAQ (`#faq`) covering token-budgeted context, GitHub Copilot use, where code is sent (nowhere), supported languages, and what the benchmark does not measure. The Contents list is renumbered.
7
+ - npm metadata: `description` shortened to name the GitHub Copilot and MCP coding-agent use, and keywords expanded (`codebase-context`, `code-retrieval`, `repo-map`, `context-window`, `token-budget`, `coding-agent`, `developer-tools`, `cli`). No behaviour changes; the version constant in `src/mcp.ts` moves with the release.
8
+
3
9
  ## 3.0.1 — 2026-11-15
4
10
 
5
11
  ### Changed
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Squeze
1
+ # Squeze: token-budgeted code context for coding agents
2
2
 
3
3
  **Give your coding agent the right code, not the whole repository.**
4
4
 
5
- Squeze is a local, deterministic context engine for coding agents. Give it a task, an error or a stack trace; it returns the few verbatim, line-cited source excerpts that matter, inside a token budget you choose. It runs as a CLI, an MCP server for any MCP-capable agent, and a VS Code / GitHub Copilot extension. No model calls, no network, no telemetry.
5
+ Squeze is a local, deterministic context engine and repository map for coding agents, including GitHub Copilot and any MCP-capable agent. Give it a task, an error or a stack trace; it returns the few verbatim, line-cited source excerpts that matter, inside a token budget you choose. It runs as a CLI, an MCP server for any MCP-capable agent, and a VS Code / GitHub Copilot extension. No model calls and no telemetry; the only network call is an optional local Ollama server for embeddings.
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/squeze-cli)](https://www.npmjs.com/package/squeze-cli) [![downloads](https://img.shields.io/npm/dm/squeze-cli)](https://www.npmjs.com/package/squeze-cli) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![node](https://img.shields.io/badge/node-%E2%89%A520.19-green)
8
8
 
@@ -35,7 +35,7 @@ Public proof on 9 pinned open-source repositories, 360 symbol-lookup cases. Meth
35
35
 
36
36
  ## Contents
37
37
 
38
- 1. [Why](#why) · 2. [Install](#install) · 3. [Use](#use) · 4. [How it works](#how-it-works) · 5. [What is new in 3.0](#what-is-new-in-30) · 6. [What is new in 2.2](#what-is-new-in-22) · 7. [Evidence](#evidence) · 8. [Configuration](#configuration) · 9. [Security model](#security-model) · 10. [Limitations](#limitations) · 11. [Reproduce](#reproduce) · 12. [Repository map](#repository-map)
38
+ 1. [Why](#why) · 2. [FAQ](#faq) · 3. [Install](#install) · 4. [Use](#use) · 5. [How it works](#how-it-works) · 6. [What is new in 3.0](#what-is-new-in-30) · 7. [What is new in 2.2](#what-is-new-in-22) · 8. [Evidence](#evidence) · 9. [Configuration](#configuration) · 10. [Security model](#security-model) · 11. [Limitations](#limitations) · 12. [Reproduce](#reproduce) · 13. [Repository map](#repository-map)
39
39
 
40
40
  ## Why
41
41
 
@@ -46,6 +46,28 @@ An agent that reads whole files to answer "where is retry backoff computed?" pay
46
46
  - **Deterministic.** The same repository state and query give byte-identical output.
47
47
  - **Local.** The only optional network call is to an Ollama server on `127.0.0.1` if you enable embeddings.
48
48
 
49
+ ## FAQ
50
+
51
+ ### How do I give a coding agent the right code without pasting the whole repository?
52
+
53
+ Ask for the task, error or stack trace inside a token budget, for example `squeze context --root . --query "where is retry backoff computed?" --budget 3000`. Squeze returns the few verbatim, line-cited excerpts that match. MCP agents use the same engine through the [MCP server](#mcp).
54
+
55
+ ### How do I use Squeze with GitHub Copilot?
56
+
57
+ Build the VSIX from this repository with `npm run package`, then install it with `code --install-extension releases/squeze-cli-3.0.2.vsix` (see [VS Code](#vs-code)). Then enable **Squeze Context**, **Expand** and **Map** in Copilot's tool picker, or write `#squeze` in a prompt.
58
+
59
+ ### Does Squeze send my code to a model or a server?
60
+
61
+ No. Squeze makes no model calls and collects no telemetry. Its only network call is optional: with `--semantic-model`, it talks to an Ollama server on `127.0.0.1` on your own machine.
62
+
63
+ ### Which languages does Squeze support?
64
+
65
+ 20 tree-sitter grammars: C, C++, C#, Go, Java, JavaScript, Python, Ruby, Rust, TypeScript and TSX, plus PHP, Kotlin, Scala, Bash, Elixir, OCaml, Objective-C, Solidity and Zig. Markdown, JSON, YAML, TOML, XML, HTML, CSS, SQL, Dockerfile, Makefile, protobuf and HCL have structural chunkers.
66
+
67
+ ### Does a smaller context make the answers better?
68
+
69
+ Not measured. The public tests measure retrieval: 87.3% fewer input tokens than a grep-and-read baseline across 360 symbol-lookup cases, and recall of 96.9% against grep's 95.6% (not statistically different). Answer quality, output tokens and billing are not measured. See [Evidence](#evidence).
70
+
49
71
  ## Install
50
72
 
51
73
  Requires Node.js 20.19 or newer.
@@ -71,8 +93,8 @@ The older `reposqueeze-v2` command name still works as an alias. Tool names chan
71
93
  ### VS Code
72
94
 
73
95
  ```sh
74
- npm run package # writes releases/squeze-cli-3.0.1.vsix
75
- code --install-extension releases/squeze-cli-3.0.1.vsix
96
+ npm run package # writes releases/squeze-cli-3.0.2.vsix
97
+ code --install-extension releases/squeze-cli-3.0.2.vsix
76
98
  ```
77
99
 
78
100
  Enable **Squeze Context**, **Expand** and **Map** in Copilot's tool picker, or write `#squeze` in a prompt. Run **Squeze: Install Copilot Instructions** once per repository for retrieval-first guidance.
@@ -326,7 +348,7 @@ The 2.1.0 profile on the 921-file repo: tokenizing the whole repository only to
326
348
 
327
349
  ### 11. Tests and robustness
328
350
 
329
- `npm test` runs 678 tests (unit, property, adversarial, MCP protocol, cache corruption and concurrency, read-only checkout). All 678 pass on the 3.0.1 tree. Two tests have wall-clock limits (a 60 s MCP request timeout and a 1 s bound on 2 MiB of adversarial text) and can fail under heavy machine load, so re-run before treating a failure as a regression.
351
+ `npm test` runs 678 tests (unit, property, adversarial, MCP protocol, cache corruption and concurrency, read-only checkout). All 678 pass on the 3.0.2 tree. Two tests have wall-clock limits (a 60 s MCP request timeout and a 1 s bound on 2 MiB of adversarial text) and can fail under heavy machine load, so re-run before treating a failure as a regression.
330
352
 
331
353
  A many-repository robustness and adversarial suite is in [bench/robustness](bench/robustness). Only a partial run was completed on the final build: 2 repositories (gin, requests), 32 commands, 0 crashes, 0 timeouts, 0 budget violations, 0 secret-regex hits in outputs ([report](benchmarks/v3/robustness-final.md)). That run flagged 4 of 8 repeat comparisons as non-identical while the machine load was about 50; serial re-runs of `map` on the same checkout were byte-identical 3 of 3 times and `context` cold and warm were identical on a second checkout, so the cause was not identified. The adversarial section did not finish and is **not** claimed.
332
354
 
package/dist/cli.cjs CHANGED
@@ -57798,7 +57798,7 @@ async function runGraph(repo, request = {}) {
57798
57798
  }
57799
57799
 
57800
57800
  // src/mcp.ts
57801
- var VERSION2 = "3.0.1";
57801
+ var VERSION2 = "3.0.2";
57802
57802
  async function serve(root, options = {}) {
57803
57803
  const { semanticModel, tools = "core", features } = typeof options === "string" ? { semanticModel: options } : options;
57804
57804
  const repo = new Engine(root, { semanticModel, features });
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "squeze-cli",
3
3
  "mcpName": "io.github.2002-rokkam/squeze",
4
4
  "displayName": "Squeze",
5
- "description": "Local, deterministic, token-budgeted code context and code graph for Copilot and MCP coding agents. Cuts the tokens (credits) an agent spends reading a repository.",
6
- "version": "3.0.1",
5
+ "description": "Local, deterministic, token-budgeted code context for GitHub Copilot and MCP coding agents. Fewer input tokens per task: cited source excerpts and a code graph.",
6
+ "version": "3.0.2",
7
7
  "publisher": "2002-rokkam",
8
8
  "license": "MIT",
9
9
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "test": "node --import tsx --test tests/*.test.ts",
40
40
  "bench": "node --import tsx scripts/benchmark.ts",
41
41
  "bench:fetch": "node scripts/fetch-bench.mjs",
42
- "package": "npm run build && vsce package --no-dependencies --allow-missing-repository -o releases/squeze-cli-3.0.1.vsix",
42
+ "package": "npm run build && vsce package --no-dependencies --allow-missing-repository -o releases/squeze-cli-3.0.2.vsix",
43
43
  "prepare": "npm run build",
44
44
  "test:editor": "node scripts/test-extension.mjs",
45
45
  "test:ui": "node --import tsx --test tests/ui/*.test.ts",
@@ -297,14 +297,22 @@
297
297
  "vscode-extension",
298
298
  "context",
299
299
  "context-engineering",
300
+ "codebase-context",
300
301
  "code-search",
302
+ "code-retrieval",
301
303
  "code-graph",
302
304
  "repository-map",
305
+ "repo-map",
303
306
  "tokens",
304
307
  "token-optimization",
308
+ "token-budget",
309
+ "context-window",
305
310
  "llm",
306
311
  "agents",
307
312
  "ai-coding-agent",
313
+ "coding-agent",
314
+ "developer-tools",
315
+ "cli",
308
316
  "tree-sitter"
309
317
  ],
310
318
  "publishConfig": {