feat: publishable npm package installer#5
Open
robinv8 wants to merge 3 commits into
Open
Conversation
added 3 commits
June 26, 2026 10:43
…ruth section boundaries - Add normalize-timestamps CLI command to migrate timestamps to YYYY-MM-DDTHH:MM:SS - Fix extractSection/replaceSection/appendToSection to treat compiled_truth as spanning until ## timeline - Fix lint-links to only check compiled_truth for pages, ignoring append-only timeline - Fix listRootPages to only return canonical root pages - Support single-quoted timestamps in normalization - Add tests for timestamp normalization, section boundaries, and root page filtering
- Remove normalize-timestamps CLI command and all related library helpers - Keep section boundary fixes, lint-links scope fix, and canonical root-page filtering - New pages and root pages continue to use nowStamp() for correct-by-construction timestamps - Update tests to focus on section boundaries, root-page filtering, and lint scope
Replace the local ./setup and ./uninstall shell scripts with a publishable npm package named brain-md. - Add package.json with bin entries for brain-md, brain-md-uninstall, and brain - Add bin/ scripts: installer, uninstaller, and the brain reference CLI - Update README with npx/npm install -g instructions and new flags - Update .gitignore for node_modules and project-level .brain.md/ - Remove obsolete setup/uninstall scripts
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.
Replace the local
./setupand./uninstallshell scripts with a publishable npm package namedbrain-md.What changed
package.jsonwith bin entries forbrain-md,brain-md-uninstall, andbrain.bin/scripts: installer, uninstaller, and the brain reference CLI.npx brain-md/npm install -g brain-mdinstructions and documented--project,--symlink,--yesflags..gitignorefornode_modules/,*.tgz, and project-level.brain.md/.setupanduninstallscripts.Local verification
npm link→brain-md setup --project --yes→ copied skills into.claude/and.codex/.brain-setup: scaffoldedBRAIN.md,brain/,CLAUDE.md,AGENTS.md.brainCLI:create-page,read-page,append-timeline,update-truth,set-tags,lint-links,archive-page.brain-md uninstall --project --yesremoved skills and manifest while preserving projectbrain/data.Notes
brain-md(unscoped) to keep the open-standard route simple.brainwas already taken on npm.