Skip to content

fix(plugin): avoid high compression silence fixture#1717

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/claude-install-compression
Jun 25, 2026
Merged

fix(plugin): avoid high compression silence fixture#1717
miguel-heygen merged 1 commit into
mainfrom
fix/claude-install-compression

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes Installation fails due to compression ratio check on silence.wav #1716 by keeping the Claude plugin payload below the installer's suspicious compression-ratio guard.
  • Preserves the existing missing-host-comp-id WAV decoded PCM exactly, then appends a deterministic ignored JUNK chunk so archive compression drops below the 50:1 threshold.
  • Adds a script-level regression test for plugin payload files that must stay under the install guard.

Validation

  • node --import tsx --test scripts/claude-plugin-compression.test.ts
  • bun run build:hyperframes-runtime
  • bun run --filter @hyperframes/producer test -- missing-host-comp-id --sequential
  • ./node_modules/.bin/oxfmt --check package.json scripts/claude-plugin-compression.test.ts
  • ./node_modules/.bin/oxlint scripts/claude-plugin-compression.test.ts
  • Pre-commit: lint, format, typecheck, commitlint

Notes

  • Verified the current fixture ratio is ~23.0:1, down from ~68.6:1.
  • Verified decoded PCM SHA256 matches origin/main, so render/audio semantics are unchanged.
  • Local full bun run test:scripts is blocked on Node 18 by existing script-test imports using import.meta.dirname; the new compression test passes standalone and inside that run before unrelated script-test boot failures.

@miguel-heygen miguel-heygen merged commit 96ab4b1 into main Jun 25, 2026
50 checks passed
@miguel-heygen miguel-heygen deleted the fix/claude-install-compression branch June 25, 2026 15:20
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.

Installation fails due to compression ratio check on silence.wav

1 participant