nlos 1.8.0 → 1.8.1

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/bin/nlos.js +12 -12
  2. package/package.json +1 -1
package/bin/nlos.js CHANGED
@@ -520,9 +520,9 @@ function model(args = []) {
520
520
  }
521
521
  console.log();
522
522
  log('yellow', 'Commands:');
523
- console.log(' nlos model use <name> Set as default and pull if needed');
524
- console.log(' nlos model pull <name> Just pull the model');
525
- console.log(' nlos model current Show current default');
523
+ console.log(' nlos model use <name> Set as default and download if needed');
524
+ console.log(' nlos model download <name> Just download the model');
525
+ console.log(' nlos model current Show current default');
526
526
  return;
527
527
  }
528
528
 
@@ -541,17 +541,17 @@ function model(args = []) {
541
541
  return;
542
542
  }
543
543
 
544
- if (subcommand === 'pull') {
544
+ if (subcommand === 'download' || subcommand === 'pull') {
545
545
  if (!modelName) {
546
- log('red', 'Usage: nlos model pull <name>');
546
+ log('red', 'Usage: nlos model download <name>');
547
547
  return;
548
548
  }
549
- log('blue', `Pulling ${modelName}...`);
549
+ log('blue', `Downloading ${modelName}...`);
550
550
  try {
551
551
  execSync(`ollama pull ${modelName}`, { stdio: 'inherit' });
552
552
  log('green', `\nModel ${modelName} ready!`);
553
553
  } catch (error) {
554
- log('red', `Failed to pull: ${error.message}`);
554
+ log('red', `Failed to download: ${error.message}`);
555
555
  }
556
556
  return;
557
557
  }
@@ -562,17 +562,17 @@ function model(args = []) {
562
562
  return;
563
563
  }
564
564
 
565
- // Pull model if not present
565
+ // Download model if not present
566
566
  log('blue', `Setting up ${modelName}...\n`);
567
567
  try {
568
568
  execSync(`ollama list | grep -q "^${modelName.split(':')[0]}"`, { stdio: 'pipe' });
569
- log('cyan', `Model ${modelName} already pulled`);
569
+ log('cyan', `Model ${modelName} already downloaded`);
570
570
  } catch {
571
- log('yellow', `Pulling ${modelName}...`);
571
+ log('yellow', `Downloading ${modelName}...`);
572
572
  try {
573
573
  execSync(`ollama pull ${modelName}`, { stdio: 'inherit' });
574
574
  } catch (error) {
575
- log('red', `Failed to pull: ${error.message}`);
575
+ log('red', `Failed to download: ${error.message}`);
576
576
  return;
577
577
  }
578
578
  }
@@ -597,7 +597,7 @@ function model(args = []) {
597
597
  }
598
598
 
599
599
  log('red', `Unknown subcommand: ${subcommand}`);
600
- console.log('Use: nlos model list|use|pull|current');
600
+ console.log('Use: nlos model list|use|download|current');
601
601
  }
602
602
 
603
603
  function clean(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nlos",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Natural Language Operating System - A model-agnostic kernel for any LLM",
5
5
  "main": "bin/nlos.js",
6
6
  "bin": {