The packaged draftmora command currently starts the server for every invocation. New CLI users should be able to inspect usage and the installed version without starting the app.
Suggested scope:
- Update
bin/draftmora.mjs so draftmora --help and draftmora -h print concise usage and exit 0 before importing the server bundle.
- Update
draftmora --version and draftmora -v to print the package version and exit 0 before importing the server bundle.
- Keep plain
draftmora behavior unchanged.
- Include default ports and the main environment variables in the help text:
API_PORT, PORT, WEB_PORT, BOARD_DB_PATH, and OPENAI_API_KEY.
Acceptance criteria:
node bin/draftmora.mjs --help prints usage and does not start the Fastify server.
node bin/draftmora.mjs --version prints the current package version.
- The packaged CLI path still starts the app when run without flags.
- Add the smallest practical test or documented verification command.
npm run typecheck, npm test, and npm pack --dry-run pass.
The packaged
draftmoracommand currently starts the server for every invocation. New CLI users should be able to inspect usage and the installed version without starting the app.Suggested scope:
bin/draftmora.mjssodraftmora --helpanddraftmora -hprint concise usage and exit0before importing the server bundle.draftmora --versionanddraftmora -vto print the package version and exit0before importing the server bundle.draftmorabehavior unchanged.API_PORT,PORT,WEB_PORT,BOARD_DB_PATH, andOPENAI_API_KEY.Acceptance criteria:
node bin/draftmora.mjs --helpprints usage and does not start the Fastify server.node bin/draftmora.mjs --versionprints the current package version.npm run typecheck,npm test, andnpm pack --dry-runpass.