@dashai/cli 0.22.0 → 0.24.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
@@ -424,6 +424,7 @@ Flags:
424
424
  - `--bump patch|minor|major` — Required. Will prompt interactively if omitted.
425
425
  - `--dry-run` — Backend validates + builds the bundle but doesn't persist the version.
426
426
  - `-y, --yes` — Skip the confirmation prompt.
427
+ - `--from-local` — Publish local files to a module that has a linked repository. Without it the CLI warns ("These files are not in {repo}; the next repository build replaces them.") and asks in a terminal; a non-interactive run stops. `--yes` alone does not imply it. The version is marked "from local files".
427
428
  - `--exclude <pattern...>` — Extra exclude patterns appended to the defaults.
428
429
  - `--dir <path>` — Project root.
429
430
 
@@ -807,3 +808,38 @@ The CLI persists state at `$XDG_CONFIG_HOME/dashwise/auth.json` (typically `~/.c
807
808
  ## License
808
809
 
809
810
  MIT
811
+
812
+ ### `dashwise module release [slug]`
813
+
814
+ Release code already pushed to the module's linked GitHub repository. This uses
815
+ saved `dashwise login` authentication and the same release admission as the
816
+ Builder and MCP. It does not upload local files. The backend must include the
817
+ repository release contract from `Intuize/dashwise-backend#985`.
818
+
819
+ ```bash
820
+ dashwise module release my-module --commit-sha <full-40-character-sha> --yes
821
+ dashwise module release my-module --build 51
822
+ ```
823
+
824
+ The positional slug wins over `module.json` in `--dir` (default current directory).
825
+ For a new release, `--commit-sha` is required and must already exist in the linked
826
+ repository. Branch names, abbreviated SHAs and an inferred latest push are not
827
+ accepted. `--bump patch|minor|major` defaults to `minor`, matching the repository
828
+ API. Release asks for confirmation only when both stdin and stdout are interactive
829
+ and JSON mode is off. Redirected streams and `--json` require explicit `--yes`.
830
+
831
+ The command waits for the build and prints the build ID, immutable revision and
832
+ released version. `--no-wait` returns once accepted: exit 0 then means queued,
833
+ not released. `--timeout <seconds>` defaults to 360; exit 4 means the wait expired.
834
+ Resume checking with `--build <id>`; this performs only reads and cannot enqueue
835
+ another version. Do not combine it with `--commit-sha`, `--bump` or `--no-wait`.
836
+ An ambiguous enqueue/network failure is not retried automatically; check the
837
+ module's build history in Dashwise before requesting another release.
838
+
839
+ `--json` emits one result or error on stdout. Success includes `id`, `commit_sha`,
840
+ `version` and `module_version_id`; timeout includes `build_id`, `timed_out` and
841
+ `resume_command`. Refusals and failed builds return nonzero (exit 3 for known
842
+ missing-grant refusals, otherwise 1). Access revoked while waiting stops polling.
843
+ Release creates a version; installing or updating it in Live remains a human
844
+ action. For a module without a linked repository, use the local
845
+ `dashwise module publish` flow instead.