localsage 1.0.2 → 1.0.4

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 (3) hide show
  1. package/bin/localsage +10 -2
  2. package/cli.js +1 -1
  3. package/package.json +1 -1
package/bin/localsage CHANGED
@@ -1,4 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Wrapper that runs the LocalSage CLI
4
- require('../cli.js');
3
+ // LocalSage CLI entry point.
4
+ // cli.js exports runCLI and only auto-runs when it is the main module —
5
+ // which it is NOT when launched through this bin wrapper. So we must
6
+ // invoke it explicitly here.
7
+ const runCLI = require('../cli.js');
8
+
9
+ runCLI().catch((error) => {
10
+ console.error('Fatal Error:', error.message);
11
+ process.exit(1);
12
+ });
package/cli.js CHANGED
@@ -7,7 +7,7 @@ const LocalSage = require('./index');
7
7
 
8
8
  program
9
9
  .name('localsage')
10
- .version('1.0.0')
10
+ .version('1.0.3')
11
11
  .description('LocalSage — local, offline AI assistant with PDF & document knowledge')
12
12
  .option('-m, --model <model>', 'Model name', 'onnx-community/Qwen2.5-0.5B-Instruct')
13
13
  .option(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "localsage",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "LocalSage — a local, offline AI assistant with PDF & document knowledge. Powered by Qwen via Transformers.js. Pure Node.js, no Python.",
5
5
  "main": "index.js",
6
6
  "bin": {