@cortex-context/cli 0.0.16 → 0.0.18

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
@@ -18287,7 +18287,7 @@ async function deployLocalStack(workspacePath, opts = {}) {
18287
18287
  );
18288
18288
  if (!envContent.endsWith("\n")) envContent += "\n";
18289
18289
  (0, import_fs5.writeFileSync)(envPath, envContent, { encoding: "utf-8" });
18290
- const imageTag = opts.embeddings ? "latest-embeddings" : "latest";
18290
+ const imageTag = opts.gpu ? "latest-embeddings-gpu" : opts.embeddings ? "latest-embeddings" : "latest";
18291
18291
  const cortexImage = `ghcr.io/rodrigoroldan/cortex-context:${imageTag}`;
18292
18292
  try {
18293
18293
  (0, import_child_process.execSync)(
@@ -18321,7 +18321,7 @@ async function upgradeLocalStack(workspacePath, opts = {}) {
18321
18321
  error: `docker-compose.local.yml not found in ${workspacePath}. Run: cortex-context server`
18322
18322
  };
18323
18323
  }
18324
- const imageTag = opts.embeddings ? "latest-embeddings" : "latest";
18324
+ const imageTag = opts.gpu ? "latest-embeddings-gpu" : opts.embeddings ? "latest-embeddings" : "latest";
18325
18325
  const cortexImage = `ghcr.io/rodrigoroldan/cortex-context:${imageTag}`;
18326
18326
  const composeCmd = `docker compose --project-name cortex-local -f "${composePath}"`;
18327
18327
  try {
@@ -28180,7 +28180,13 @@ async function serverCommand(options) {
28180
28180
  " Installs and starts the Cortex stack (Neo4j + Cortex API) via Docker."
28181
28181
  )
28182
28182
  );
28183
- if (options.embeddings) {
28183
+ if (options.embeddingsGpu) {
28184
+ console.log(
28185
+ source_default.dim(
28186
+ " Mode: embeddings-gpu (sentence-transformers + PyTorch CUDA, ~2 GB image \u2014 requer nvidia GPU no host)"
28187
+ )
28188
+ );
28189
+ } else if (options.embeddings) {
28184
28190
  console.log(
28185
28191
  source_default.dim(
28186
28192
  " Mode: embeddings (sentence-transformers + all-MiniLM-L6-v2 baked in, ~1.5 GB image)"
@@ -28367,6 +28373,7 @@ async function serverCommand(options) {
28367
28373
  console.log("");
28368
28374
  const startResult = await deployLocalStack(workDir, {
28369
28375
  embeddings: options.embeddings ?? false,
28376
+ gpu: options.embeddingsGpu ?? false,
28370
28377
  token: serverToken
28371
28378
  });
28372
28379
  console.log("");
@@ -28974,6 +28981,9 @@ function createCli() {
28974
28981
  ).option(
28975
28982
  "--embeddings",
28976
28983
  "Use the embeddings-enabled image (includes sentence-transformers + all-MiniLM-L6-v2, ~1.5 GB)"
28984
+ ).option(
28985
+ "--embeddings-gpu",
28986
+ "Use the embeddings GPU image (sentence-transformers + PyTorch CUDA, ~2 GB \u2014 requires nvidia GPU on host)"
28977
28987
  ).action(serverCommand);
28978
28988
  program3.command("sync").description("Ingest latest git diff into the Cortex Knowledge Graph").option("--repo <path>", "Repository path (defaults to current directory)").option("--dry-run", "Show diff without sending to Cortex API").action(syncCommand);
28979
28989
  program3.command("update").description(