@dashai/cli 0.21.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
@@ -427,6 +427,16 @@ Flags:
427
427
  - `--exclude <pattern...>` — Extra exclude patterns appended to the defaults.
428
428
  - `--dir <path>` — Project root.
429
429
 
430
+ ### `dashwise module runtime` / `module runtime set` / `module rebuild`
431
+
432
+ Admin-granted controls for a deployed module (plan: `module-admin-controls-plan.md`). Each needs a grant your Dashwise admin makes per workspace; without it the command prints one sentence such as `Streaming for raise-tracker needs a Dashwise admin. Ask your Dashwise admin to enable it.` and exits **3** (other failures exit 1; exit **4** means it stopped waiting at `--timeout`, and the change or build may still finish).
433
+
434
+ - `dashwise module runtime [slug] [--install <id>] [--workspace <ws>] [--json]`: streaming (requested vs in effect), memory, eligibility, grant state, last change.
435
+ - `dashwise module runtime set [slug] --streaming on|off [--memory <mb>] [--reason <text>] [--install <id>] [-y] [--no-wait] [--timeout <s>] [--json]`: switch streaming (about a minute; waits by default). `--memory` is operator-only today and is refused with a hint.
436
+ - `dashwise module rebuild [slug] [--platform-defaults manifest|on|off] [--clean] [--bump patch] [--rollout none|installs:<ids>|workspace[:<id>]] [--from-build <id>] [--reason <text>] [--no-wait] [--timeout <s>] [--json]`: a new patch version from the published source with today's platform image; `--bump minor|major` needs a Dashwise admin.
437
+
438
+ `--json` puts every outcome on stdout as one object. Refusals and failures print `{ "error": { code, message, status, context }, "hint", "needs_grant" }` (`error.code` `USAGE` for a bad invocation), with the failed `build` or `operation` attached when one ran; a timeout adds `"timed_out": true`.
439
+
430
440
  ### `dashwise query`
431
441
 
432
442
  Run a typed query against the local module's installation via the `@dashai/sdk/query` plane. Three modes:
@@ -797,3 +807,38 @@ The CLI persists state at `$XDG_CONFIG_HOME/dashwise/auth.json` (typically `~/.c
797
807
  ## License
798
808
 
799
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.