Skip to content

Update gunshi to 0.35; nested cache subcommands, positional & hidden args#799

Open
theoephraim wants to merge 6 commits into
mainfrom
gunshi-035-cli-positionals
Open

Update gunshi to 0.35; nested cache subcommands, positional & hidden args#799
theoephraim wants to merge 6 commits into
mainfrom
gunshi-035-cli-positionals

Conversation

@theoephraim

@theoephraim theoephraim commented Jun 18, 2026

Copy link
Copy Markdown
Member

Updates gunshi 0.320.35.1, adopts two new features from it, and does a docs/--help pass focused on agent usefulness.

gunshi upgrade

  • Bumps gunshi and @gunshi/plugin-completion to 0.35.1, and pins @gunshi/plugin-i18n@^0.35.1 (it was being auto-installed at a stale 0.32.0, causing a peer-dep warning). No breaking changes in this range.

varlock cache → nested subcommands

  • status and clear are now real gunshi subcommands instead of hand-parsed positionals. --plugin/--yes are scoped to clear, each subcommand gets its own --help, and they show up in shell completion. Bare varlock cache still opens the interactive browser.

Positional arguments

  • printenv, explain, reveal, scan, audit now declare their positional args (optional / multiple) instead of slicing ctx.positionals. They render an ARGUMENTS: section in --help and are exposed to completion. Same user-facing syntax as before.

Hidden args

  • run --no-inject-graph (deprecated) is marked hidden — still functional for back-compat, just removed from --help. Docs now document the current --inject <all|vars|blob> flag instead.
  • encrypt --key-id is marked hidden — multi-key isn't round-trippable yet (the varlock("local:...") reference doesn't encode a keyId and the load-time resolver always decrypts with the default key), so it stays functional but unadvertised until that's wired up.

CLI docs & --help review (agent lens)

  • Documented previously-missing explain and install-plugin commands in the CLI reference.
  • Documented exit codes for load/run/printenv/scan (audit already had them).
  • Documented the load JSON output contract (json / --agent / json-full) and the stdout/stderr summary flags for machine consumers; cross-linked these in the AI Tools guide.
  • encrypt: added EXAMPLES (incl. stdin usage) and fixed a doubled default in --key-id help.

Tests

  • New smoke tests for the scan/audit/explain positionals and a --no-inject-graph back-compat guard.
  • Smoke-test housekeeping: removed the dead captureOutput option and corrected the README (it's a pnpm workspace; bun test doesn't apply).

The smoke-tests label is applied so the smoke suite runs on this PR.

- bump gunshi + plugin-completion to 0.35.1, pin plugin-i18n peer
- make `varlock cache status`/`clear` real nested subcommands
- declare positional args on printenv/explain/reveal/scan/audit
- hide deprecated `run --no-inject-graph` from help (still works)
- docs: document `run --inject` instead of the deprecated flag
- smoke tests for the new positionals + --no-inject-graph back-compat
- smoke-tests: drop dead captureOutput option, fix stale README
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • varlock 1.7.1 → 1.7.2

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
varlock-website ad96ba0 Commit Preview URL

Branch Preview URL
Jun 18 2026, 04:57 AM

@pkg-pr-new

pkg-pr-new Bot commented Jun 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/varlock@799

commit: ad96ba0

- document previously-missing `explain` and `install-plugin` commands
- document exit codes for load/run/printenv/scan (audit already had them)
- document the load JSON output contract (json / --agent / json-full)
  and the stdout/stderr summary flags for machine consumers
- cross-link machine-readable output + exit codes in the AI Tools guide
- encrypt: add EXAMPLES (incl. stdin usage), fix doubled default in
  --key-id help, document --key-id in the reference
The varlock("local:...") reference doesn't encode a keyId and the load-time
resolver always decrypts with the default key, so encrypting with a non-default
key produces values that can't be loaded back. Hide the flag (still functional)
and drop it from the docs/examples until the round-trip is wired up.
`varlock load --format json-full` emits raw resolved secret values, so it
must not go into an agent transcript. Recommend `--agent --format json-full`
(redacted full graph) in the AI Tools guide, and flag the raw-secret caveat
in the CLI reference.
--path/--env/--clear-cache/--skip-cache were repeated across 8 commands and
had drifted (reveal's --path lost its multi-path note). Document them once in
a Common options section; each command now references them and calls out only
real deviations (scan/audit use --path as the schema entry point; audit is
single-path).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant