@cortex-context/cli 0.0.10 → 0.0.11

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/dist/index.js CHANGED
@@ -28251,17 +28251,17 @@ async function serverCommand(options) {
28251
28251
  )
28252
28252
  );
28253
28253
  } else if (crunSetup.error) {
28254
- console.log(
28255
- source_default.dim(` (crun setup skipped: ${crunSetup.error})`)
28256
- );
28254
+ console.log(source_default.dim(` (crun setup skipped: ${crunSetup.error})`));
28257
28255
  }
28258
28256
  }
28259
- const startSpinner = ora(" Running docker compose up -d...").start();
28257
+ console.log(source_default.dim(" $ docker compose up -d"));
28258
+ console.log("");
28260
28259
  const startResult = await deployLocalStack(workDir, {
28261
28260
  embeddings: options.embeddings ?? false
28262
28261
  });
28262
+ console.log("");
28263
28263
  if (!startResult.started) {
28264
- startSpinner.fail(source_default.red(" \u2717 Docker Compose failed"));
28264
+ console.log(source_default.red(" \u2717 Docker Compose failed"));
28265
28265
  if (startResult.isLxcSysctlError) {
28266
28266
  console.log("");
28267
28267
  console.log(
@@ -28280,9 +28280,7 @@ async function serverCommand(options) {
28280
28280
  );
28281
28281
  console.log("");
28282
28282
  console.log(
28283
- source_default.dim(
28284
- " Attempted automatic fix (crun) \u2014 but it was not enough."
28285
- )
28283
+ source_default.dim(" Attempted automatic fix (crun) \u2014 but it was not enough.")
28286
28284
  );
28287
28285
  console.log(
28288
28286
  source_default.dim(
@@ -28292,19 +28290,21 @@ async function serverCommand(options) {
28292
28290
  console.log("");
28293
28291
  console.log(source_default.cyan(" apt-get install -y crun"));
28294
28292
  console.log(source_default.cyan(" cat > /etc/docker/daemon.json << 'EOF'"));
28295
- console.log(source_default.cyan(' {"default-runtime":"crun","runtimes":{"crun":{"path":"/usr/bin/crun"}}}'));
28293
+ console.log(
28294
+ source_default.cyan(
28295
+ ' {"default-runtime":"crun","runtimes":{"crun":{"path":"/usr/bin/crun"}}}'
28296
+ )
28297
+ );
28296
28298
  console.log(source_default.cyan(" EOF"));
28297
28299
  console.log(source_default.cyan(" systemctl restart docker"));
28298
28300
  console.log("");
28299
- console.log(
28300
- source_default.dim(" Then run cortex-context server again.")
28301
- );
28301
+ console.log(source_default.dim(" Then run cortex-context server again."));
28302
28302
  } else {
28303
28303
  console.log(source_default.dim(` ${startResult.error}`));
28304
28304
  }
28305
28305
  process.exit(1);
28306
28306
  }
28307
- startSpinner.succeed(source_default.green(" \u2713 Containers started"));
28307
+ console.log(source_default.green(" \u2713 Containers started"));
28308
28308
  console.log("");
28309
28309
  console.log(source_default.bold(" Step 4: Waiting for Cortex API..."));
28310
28310
  const healthSpinner = ora(