@tridha643/hestia 1.2.0 → 1.3.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
@@ -168,8 +168,9 @@ hestia router status
168
168
  ```
169
169
 
170
170
  Individual Docker workloads are not stoppable; use `hestia down`. Named
171
- volumes are retained unless `--destroy` is explicit. `doctor` is strictly
172
- report-only.
171
+ volumes and project-built images are retained unless `--destroy` is explicit
172
+ (`--destroy` removes named volumes and `--rmi local` project images; shared
173
+ base images are left in place). `doctor` is strictly report-only.
173
174
 
174
175
  ## Development and release
175
176
 
package/dist/cli.js CHANGED
@@ -8244,7 +8244,7 @@ async function composeUp(ctx, services) {
8244
8244
  async function composeDown(ctx, destroy) {
8245
8245
  const rest = ["down", "--remove-orphans"];
8246
8246
  if (destroy)
8247
- rest.push("-v");
8247
+ rest.push("-v", "--rmi", "local");
8248
8248
  await docker(ctx, rest);
8249
8249
  }
8250
8250
  async function composePs(ctx) {
@@ -14047,7 +14047,7 @@ class ComposeEngine {
14047
14047
  } else if (record?.composeFile !== undefined) {
14048
14048
  const rest = ["compose", "-p", project2, "down", "--remove-orphans"];
14049
14049
  if (opts?.destroy)
14050
- rest.push("-v");
14050
+ rest.push("-v", "--rmi", "local");
14051
14051
  await pexec9("docker", rest, { timeout: 180000 });
14052
14052
  }
14053
14053
  }
@@ -14104,7 +14104,7 @@ class ComposeEngine {
14104
14104
  try {
14105
14105
  const rest = ["compose", "-p", project, "down", "--remove-orphans"];
14106
14106
  if (opts?.destroy)
14107
- rest.push("-v");
14107
+ rest.push("-v", "--rmi", "local");
14108
14108
  await pexec9("docker", rest, { timeout: 180000 });
14109
14109
  } catch (err) {
14110
14110
  if (fresh?.composeFile !== undefined) {
@@ -14879,7 +14879,7 @@ class DaemonFleetSource {
14879
14879
  return Promise.reject(new Error(`stack ${stack.project} has no stable incarnation timestamp`));
14880
14880
  }
14881
14881
  return engine.downProject(stack.project, {
14882
- destroy: false,
14882
+ destroy: true,
14883
14883
  expectedStack: {
14884
14884
  repoId: stack.repoId,
14885
14885
  worktree: stack.worktree,
@@ -16277,7 +16277,7 @@ function FleetApp({
16277
16277
  source.down(confirmed).then(() => {
16278
16278
  dispatch({ type: "down-pending", pending: false });
16279
16279
  dispatch({ type: "confirm-down" });
16280
- showToast(`${project} is down; named volumes retained`);
16280
+ showToast(`${project} is down; volumes and project images removed`);
16281
16281
  }).catch((error) => {
16282
16282
  dispatch({ type: "down-pending", pending: false });
16283
16283
  showToast(`down failed: ${error.message}`);
@@ -16814,7 +16814,7 @@ function FleetApp({
16814
16814
  }, undefined, false, undefined, this),
16815
16815
  /* @__PURE__ */ jsxDEV5("text", {
16816
16816
  fg: fleetTheme.warning,
16817
- children: "Named volumes are retained."
16817
+ children: "Removes named volumes and project-built images (data loss)."
16818
16818
  }, undefined, false, undefined, this),
16819
16819
  /* @__PURE__ */ jsxDEV5("text", {
16820
16820
  fg: fleetTheme.danger,
@@ -16848,7 +16848,7 @@ var init_FleetApp = __esm(() => {
16848
16848
  ["y \xB7 Y", "yank endpoint URL \xB7 stack env block"],
16849
16849
  ["c l p", "yank direct / local / public URL"],
16850
16850
  ["s", "shared hostnames (claim, allow, deny, release)"],
16851
- ["D \xB7 d", "doctor report \xB7 down stack (volumes retained)"],
16851
+ ["D \xB7 d", "doctor report \xB7 down stack (removes volumes + images)"],
16852
16852
  ["1 2 0", "split / stacked / auto layout"],
16853
16853
  ["q", "quit \xB7 mouse click and wheel work everywhere"]
16854
16854
  ];
@@ -17013,7 +17013,7 @@ import { execFileSync as execFileSync5 } from "child_process";
17013
17013
  import { existsSync as existsSync24 } from "fs";
17014
17014
  import { dirname as dirname8, join as join26 } from "path";
17015
17015
  import { fileURLToPath as fileURLToPath3 } from "url";
17016
- var CLI_VERSION = "1.2.0";
17016
+ var CLI_VERSION = "1.3.0";
17017
17017
  var PACKAGE_NAME = "@tridha643/hestia";
17018
17018
  function compareVersions(a, b) {
17019
17019
  const parse = (value) => {
@@ -17420,7 +17420,8 @@ usage:
17420
17420
  health. Exit 1 only on error-level rows; never mutates anything
17421
17421
  hestia stop <name> [--json] stop one supervised proc (idempotent)
17422
17422
  hestia down [--destroy] [--project <name>] [--json]
17423
- tear down procs + containers (--destroy also removes volumes);
17423
+ tear down procs + containers (--destroy also removes volumes
17424
+ and project-built images);
17424
17425
  --project works from the mirror after the worktree is deleted
17425
17426
  hestia status [--json] show this worktree's stack
17426
17427
  hestia env [--json] print the injected env (export lines)
@@ -18181,4 +18182,4 @@ export {
18181
18182
  compareVersions
18182
18183
  };
18183
18184
 
18184
- //# debugId=E655EED0C9FC8A1364756E2164756E21
18185
+ //# debugId=3CDA6D645FAEF7DC64756E2164756E21