Add an editor extension for judging the record - #694
Merged
Merged
Conversation
…ver a file, decisions awaiting judgment, verify and channels in the status bar
…n-for-the-record # Conflicts: # CHANGELOG.md # README.md # packages/code/tests/every-file-has-a-test-that-names-it.test.ts # packages/code/tests/every-readme-says-what-it-does-not.test.ts # packages/code/tests/support/published-examples.ts # packages/code/tests/the-channel-says-what-it-carries.test.ts # packages/code/tests/the-command-handed-over-runs-as-handed.test.ts # packages/code/tests/the-sentence-reaches-every-door.test.ts # packages/code/tests/the-version-is-one-number.test.ts # packages/code/tests/what-a-package-publishes-is-what-its-page-promises.test.ts # pnpm-lock.yaml # tsconfig.json
…d off in untrusted workspaces
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.
Adds
@mnema/vscode, a VS Code extension for the person who reviews the record. It is private and not published; every read and write goes through themnemacommand line.governs,asks-for-a-person,refuses-a-write), frommnema rules <path> --json; clicking it lists the rules and who accepted each.mnema search --state proposed --json, with the justification and alternatives frommnema show). Accept and reject runmnema decision move accept|reject <id> --note <note>throughexecFilewith an argument array; the input box refuses an empty note..mnema/**with a 1.5 s quiet period (no polling timer).mnema verify --jsonreports and how many channelsmnema switchlists as off.The parsing of the command line's output is separate from the editor API (
rules.ts,proposed.ts,status.ts,cli.ts);extension.tstakes thevscodemodule as an argument, and the tests run it against a stand-in, with no editor download.@mnema/sdkis not in the trunk, so the command line is the interface.The package joins the workspace guards: version, licence and NOTICE, descriptions, homepage, honest-guarantee heading, page-command and test-census guards. Mutations checked:
shell: truein the runner, a note validator that accepts empty, a rule filter that keeps every state, and announcing on the first reading each turned a new test red.Not done here: a
.vsixis not built or installed by the suite or CI (the README gives the local steps), and the extension has not been run in a real editor.