Patch Changes
-
cb8fa1d: Fix two config-scaffold dead-ends in the CLI (#578, #579).
- Missing config is now actionable. When a command that needs a
stash.config.tscan't find one, the error recommendsstash init/
stash eql install(runner-aware) instead of only telling you to hand-write
the file. stash eql installno longer requires astash.config.ts. It only needs
a database URL, so it now resolves one directly (--database-url→ env →
supabase status→ prompt) instead of scaffolding a config and loading it.
That means a standalonenpx stash eql install --database-url ...works in a
bare project with zero dependencies — no more crash with a raw
Cannot find module 'stash'from the config'simport. A plain
stash eql installstill honours an existing config (later workflow commands
rely on it) and offers to scaffold one otherwise. An explicit--database-url
is a one-shot install: it resolves that URL directly and leaves the project
untouched — no config or client is scaffolded, and an existing config is
bypassed so the flag can't be silently overridden by a hand-edited literal
databaseUrl(including one in a parent directory).- As a safety net,
loadStashConfigtranslates a missing-module load failure
(a project that has a config but lacks the CLI packages) into the same
actionable guidance for every command, instead of a jiti/Node stack trace.
- Missing config is now actionable. When a command that needs a
-
cbece82: Render per-command
--helpfrom the command-descriptor registry, and slim the
global banner. This is the documented follow-on to the manifest/registry work in
docs/plans/cli-help-and-manifest.md.stash <command> --helpnow prints command-specific help instead of the global
banner. A leaf command (stash eql install --help,stash auth login --help)
shows its usage, summary, long description, flags, and examples; a command
group (stash eql --help,stash auth --help) lists its subcommands and points
at their own--help. All of it renders fromsrc/cli/registry.ts, so it can't
drift fromstash manifest.-his now honoured after a command too (stash eql install -h), not just as a
barestash -h.- The global
stash --helpbanner no longer inlines every command's flags; it
lists the commands and directs users to<command> --helpfor the detail.