@dashai/cli 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -807,3 +807,38 @@ The CLI persists state at `$XDG_CONFIG_HOME/dashwise/auth.json` (typically `~/.c
807
807
  ## License
808
808
 
809
809
  MIT
810
+
811
+ ### `dashwise module release [slug]`
812
+
813
+ Release code already pushed to the module's linked GitHub repository. This uses
814
+ saved `dashwise login` authentication and the same release admission as the
815
+ Builder and MCP. It does not upload local files. The backend must include the
816
+ repository release contract from `Intuize/dashwise-backend#985`.
817
+
818
+ ```bash
819
+ dashwise module release my-module --commit-sha <full-40-character-sha> --yes
820
+ dashwise module release my-module --build 51
821
+ ```
822
+
823
+ The positional slug wins over `module.json` in `--dir` (default current directory).
824
+ For a new release, `--commit-sha` is required and must already exist in the linked
825
+ repository. Branch names, abbreviated SHAs and an inferred latest push are not
826
+ accepted. `--bump patch|minor|major` defaults to `minor`, matching the repository
827
+ API. Release asks for confirmation only when both stdin and stdout are interactive
828
+ and JSON mode is off. Redirected streams and `--json` require explicit `--yes`.
829
+
830
+ The command waits for the build and prints the build ID, immutable revision and
831
+ released version. `--no-wait` returns once accepted: exit 0 then means queued,
832
+ not released. `--timeout <seconds>` defaults to 360; exit 4 means the wait expired.
833
+ Resume checking with `--build <id>`; this performs only reads and cannot enqueue
834
+ another version. Do not combine it with `--commit-sha`, `--bump` or `--no-wait`.
835
+ An ambiguous enqueue/network failure is not retried automatically; check the
836
+ module's build history in Dashwise before requesting another release.
837
+
838
+ `--json` emits one result or error on stdout. Success includes `id`, `commit_sha`,
839
+ `version` and `module_version_id`; timeout includes `build_id`, `timed_out` and
840
+ `resume_command`. Refusals and failed builds return nonzero (exit 3 for known
841
+ missing-grant refusals, otherwise 1). Access revoked while waiting stops polling.
842
+ Release creates a version; installing or updating it in Live remains a human
843
+ action. For a module without a linked repository, use the local
844
+ `dashwise module publish` flow instead.