Skip to content

Remove urlcode import/export, benchmark and verify --online (#1041) - #1048

Merged
jimhoyd merged 1 commit into
mainfrom
claude/cut-cli-features
Sep 30, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/cut-cli-features

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Part of #1041 (items 5, 7 and 8). The owner is the only user, so there are no aliases, deprecation period or back-compat.

What was removed

1. urlcode import / urlcode export (provider interchange)

  • Deleted packages/core/src/interchange.ts, interchange-cli.ts, docs/INTERCHANGE.md, test/interchange.test.ts and test/interchange-cli.test.ts.

  • Removed the CLI commands and the --report and --accept-provider-differences options.

  • Removed the MCP tools preview_import and preview_export. MCP read tools go from 32 to 30; the TOOLING prose and the counts in mcp.test.ts and mcp-authoring.test.ts are updated.

  • Removed the SDK exports importRoutes, exportRoutes, previewImport and previewExport, and the Conversion* and Interchange* types.

  • What stayed: urlcode bulk-import used the row format, so bulk.ts now holds its own copy of:

    • the CSV/JSON/YAML row parser
    • row validation and the bounded compiler diagnostics
    • the bounded input reader (readBulkInput, formerly readConversionInput)

    Provider formats, export, provider acknowledgement and the conversion counts are gone. The diagnostic type is now BulkDiagnostic.

  • The row-validation tests moved into test/bulk.test.ts: CSV quoting, refused semantics, credential-free diagnostics, late-row provenance, the 32 MiB bound and unpaired surrogates. docs/BULK.md now documents the row formats itself.

2. urlcode benchmark and its --max-p95-ms gate

  • Removed from readiness.ts: benchmarkProject and its report types.
  • Removed from the CLI: the command and its --requests, --concurrency, --seconds, --max-p95-ms and --warmup options, and its entries in the host-file, policy, hermetic and alias-origin command lists.
  • No MCP tool, action input or generated workflow used it.
  • verify-deployment still needs the origin parser, so benchmarkTarget / BenchmarkTarget are renamed deploymentTarget / DeploymentTarget. Its test moved to test/verify-deployment.test.ts.
  • Deleted test/load.test.ts and the benchmark cases in readiness.test.ts.
  • docs/LOAD-TESTING.md now says to run a general load tester, such as autocannon, against urlcode serve or the deployment.
  • Also updated:
    • READINESS, CAPACITY, DEPLOYMENT-CHECKS and AI-AUTHORING
    • the operations skill
    • the Makefiles (root, starter, assets example)
    • the benchmark:project npm script (removed)
    • hermetic-run lists everywhere, which now read test, audit, MCP run_tests

3. extensions|artifacts verify --online and the tarball reader

  • Removed readTarball, fetchTarball, verifyPackageOnline, onlineProblem, the tarball limits and the --online flag.
  • VerifyReport loses online.
  • Offline verification against the per-file sha256 record in addon-files.lock.json is unchanged. The "modified" message no longer suggests --online.
  • Removed the online test in addon-files.test.ts, the --online runs in addons.integration.ts and the fake npm's FAKE_NPM_TARBALL_BASE setting.

Unchanged and regenerated files

  • No explain-error rule referenced the removed error messages, so none changed.
  • docs/FRAMEWORK.md is untouched. YAML-REFERENCE.md needed no change.
  • llms-full.txt and the plugin skill copy were regenerated.

Lines removed and added per feature

From git diff --numstat, grouped by file. Files that touch more than one feature are counted as "shared" and not split.

Feature Source Tests Docs
import/export (net of the parser moved into bulk.ts) +121 / −259 +42 / −125 +31 / −167
benchmark +17 / −78 +13 / −90 +94 / −141
verify --online +16 / −137 +13 / −80 (in shared)
shared: cli.ts, cli-command-metadata.ts, package-smoke.ts / README, SECURITY, EXTENSIONS, AI-AUTHORING +20 / −52 – +24 / −36
generated llms-full.txt – – +19 / −32
Total +410 / −1197

Owned source (packages/core/src plus scripts/): about −530 lines net.

Package budget

Core now packs to 1,077,360 bytes (4,238,219 unpacked, 544 entries, Node 26). That is still under the existing limits of 1066 KiB, 4181 KiB and 555 entries. The drop, about 10 KB, is smaller than the policy margin, so the table was not reset. No add-on changed.

Evidence

  • npm run verify passes: 1307 core tests plus the workspace suites.
  • npm run test:package passes.
  • npm run test:addons passes (9/9); it was run because addons.integration.ts changed.
  • docs:reference, docs:llms, docs:plugin, docs:agents and docs:extensions were regenerated. check:docs passes, including agent-facts.

CI passing is not an independent review. The autocannon commands in LOAD-TESTING.md were not run for this PR.

🤖 Generated with Claude Code

…1041)

Owner decision on #1041 items 5, 7 and 8, to cut owned code:

- urlcode import/export (Netlify, Cloudflare, Vercel and row interchange),
  its MCP tools preview_import/preview_export and the SDK exports. bulk-import
  keeps the CSV/JSON/YAML row parser and validation, now in bulk.ts.
- urlcode benchmark and its --max-p95-ms gate. Load testing now points to a
  general load tester such as autocannon against urlcode serve. The target
  parser verify-deployment uses is renamed deploymentTarget.
- extensions|artifacts verify --online and the tarball reader. verify stays
  offline against addon-files.lock.json's per-file hashes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jimhoyd
jimhoyd enabled auto-merge (squash) September 30, 2026 13:42
@jimhoyd
jimhoyd merged commit 67fd5b2 into main Sep 30, 2026
27 checks passed
@jimhoyd
jimhoyd deleted the claude/cut-cli-features branch September 30, 2026 13:54
jimhoyd added a commit that referenced this pull request Sep 30, 2026
…ter recent merges (#1076)

- FRAMEWORK.md, STORE.md: urlcode benchmark was removed (#1048); test runs
  are urlcode test and audit.
- STORE.md: quote the server-lock refusal as core now words it (#1069).
- TYPESCRIPT.md: list beginImmediateWithin on @jimhoyd/urlcode/sqlite (#1074).
- store CHANGELOG (unreleased): several servers need a database server the
  bundled store does not use, not one URLCode does not provide (#1052).
- llms-full.txt regenerated.

Co-authored-by: Claude Opus 5.5 <[email protected]>
jimhoyd added a commit that referenced this pull request Sep 30, 2026
- Delete packages/ui/src/*.generated.ts: orphaned since the ui extension
  was deleted (#895) and accidentally re-added by #922; nothing imports it.
- package-files.ts: drop the `limits` parameters of hashPackageFiles and
  compareFiles (only the tarball reader removed in #1048 shared them) and
  unexport packageFileLimits, hashPackageFiles and compareFiles.
- Unexport 29 values used only inside their own non-public module.
- Fix stale comments naming the removed benchmark command and core's
  removed tarball reader.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant