@arkhera30/cli 0.3.7 → 0.3.9

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -654,6 +654,7 @@ var FORGE_SERVICE = ` # \u2500\u2500 Forge \u2500\u2500\u2500\u2500\u2500\u2500
654
654
  - FORGE_HOST_VAULT_URL=http://localhost:\${VAULT_MCP_PORT:-8300}
655
655
  - FORGE_HOST_FORGE_URL=http://localhost:\${FORGE_PORT:-8200}
656
656
  - FORGE_SCAN_PATHS=\${FORGE_SCAN_PATHS:-/data/repos}
657
+ - FORGE_SESSION_TTL_MS=\${FORGE_SESSION_TTL_MS:-1800000}
657
658
  - GITHUB_TOKEN=\${GITHUB_TOKEN:-}
658
659
  - TYPESENSE_HOST=typesense
659
660
  - TYPESENSE_PORT=8108
@@ -831,6 +832,12 @@ function generateComposeFile(config, runtime) {
831
832
  - PORT=8000
832
833
  - GITHUB_TOKEN=${token}
833
834
  - GITHUB_API_HOST=${apiHost}
835
+ - TYPESENSE_HOST=typesense
836
+ - TYPESENSE_PORT=8108
837
+ - TYPESENSE_API_KEY=\${TYPESENSE_API_KEY:-horus-local-key}
838
+ depends_on:
839
+ typesense:
840
+ condition: service_healthy
834
841
  networks:
835
842
  - horus-net
836
843
  restart: unless-stopped
@@ -1638,7 +1645,7 @@ ${example(`${vaultName.trim()}-knowledge`)}
1638
1645
  console.log("");
1639
1646
  console.log(chalk2.bold("Starting Horus services..."));
1640
1647
  try {
1641
- await composeStreaming(runtime, ["up", "-d"]);
1648
+ await composeStreaming(runtime, ["up", "-d", "--remove-orphans"]);
1642
1649
  } catch (error) {
1643
1650
  console.log(chalk2.red("Failed to start services."));
1644
1651
  console.log(chalk2.dim(error.message));
@@ -1744,7 +1751,7 @@ var upCommand = new Command3("up").description("Start the Horus stack").option("
1744
1751
  console.log("");
1745
1752
  console.log(chalk3.bold("Starting Horus services..."));
1746
1753
  try {
1747
- const upArgs = opts.pull ? ["up", "-d", "--force-recreate"] : ["up", "-d"];
1754
+ const upArgs = opts.pull ? ["up", "-d", "--force-recreate", "--remove-orphans"] : ["up", "-d", "--remove-orphans"];
1748
1755
  await composeStreaming(runtime, upArgs);
1749
1756
  } catch (error) {
1750
1757
  console.log(chalk3.red("Failed to start services."));
@@ -2144,7 +2151,7 @@ var updateCommand = new Command7("update").description("Update Horus to the late
2144
2151
  console.log("");
2145
2152
  console.log(chalk7.bold("Restarting from snapshot (using cached images)..."));
2146
2153
  try {
2147
- await composeStreaming(runtime, ["up", "-d"]);
2154
+ await composeStreaming(runtime, ["up", "-d", "--remove-orphans"]);
2148
2155
  } catch (error) {
2149
2156
  console.log(chalk7.red("Failed to restart services."));
2150
2157
  console.log(chalk7.dim(error.message));
@@ -2222,7 +2229,7 @@ var updateCommand = new Command7("update").description("Update Horus to the late
2222
2229
  console.log("");
2223
2230
  console.log(chalk7.bold("Restarting services..."));
2224
2231
  try {
2225
- await composeStreaming(runtime, ["up", "-d", "--force-recreate"]);
2232
+ await composeStreaming(runtime, ["up", "-d", "--force-recreate", "--remove-orphans"]);
2226
2233
  } catch (error) {
2227
2234
  console.log(chalk7.red("Failed to restart services."));
2228
2235
  console.log(chalk7.dim(error.message));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkhera30/cli",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "CLI for managing the Horus AI development stack",
5
5
  "type": "module",
6
6
  "bin": {