Repository navigation
fix(calm): pass Claude Code 2.1.331 strict validation - #332
Merged
Merged
Conversation
The 2.1.331 validator now type-checks the mod's modules with allowImportingTsExtensions off, requires the Spinner suffix and UserMessage isExpanded render props, adds isLink to FsStat, and widens the ui.blit event to a cells-or-source union. Drop the .ts import extensions, update the fixture shapes, and teach the portable test's node runs to resolve the extensionless imports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Fix on main first. The calm mod fails strict validation under Claude Code 2.1.331: tests/fm-calm-claude-mod-plugin.test.sh fails on main 440e286 and on PR 322 (#322), on both hosts. Fix it as its own small PR on main so PR 322 can take it; no waiver of the failing test.
What Changed
.tsextension from relative import and re-export specifiers in thefirstmate-calmmod'shooks/register.tsandlib/modules (fm-branch-notes,fm-calm-presentation,fm-calm-ship-raster). Claude Code 2.1.331's strict validator rejects them.branch-notes,calm,working-ship) andtests/support.ts.tests/fm-calm-claude-mod.test.sh,run_nodenow preloads a smallregisterHooksresolver. It retries extensionless relative specifiers with.ts, so the test's own node processes still resolve the mod's modules.Risk Assessment
✅ Low: The change drops
.tsimport extensions in the mod, updates test fixtures to match the new Claude Code prop shapes, and adds a test-only Node resolver hook. No intent requirement is contradicted, and no.tsrelative imports remain in the mod.Testing
The baseline test command passed. I then ran tests/fm-calm-claude-mod-plugin.test.sh against the real Claude Code 2.1.331 CLI. Both of its checks passed: strict validation of the mod at its folder and auto-load path, and the mod's own plugin test suites. I did not re-run the test on main to reproduce the original failure. The test was reported failing on main in the intent.
Evidence: calm test log
Source: calm test log
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --changed --exclude-family real-herdr-gated --exclude-quarantined --pc02-if-idlebash tests/fm-calm-claude-mod-plugin.test.sh(real claude 2.1.331 strict validation + mod test suites), exit 0✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.