@phartmann80/klaw 0.1.3 → 0.1.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.
package/index.js CHANGED
@@ -8,7 +8,7 @@ const fs = require('fs');
8
8
  const { executeTask } = require('./src/agents/demo');
9
9
 
10
10
  const program = new Command();
11
- program.version('0.1.3');
11
+ program.version('0.1.4');
12
12
 
13
13
  program
14
14
  .command('init')
@@ -20,7 +20,7 @@ program
20
20
  }
21
21
 
22
22
  const config = {
23
- version: '0.1.3',
23
+ version: '0.1.4',
24
24
  defaultProvider: 'openai',
25
25
  workspace: path.join(process.cwd(), 'klaw-workspace'),
26
26
  providers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phartmann80/klaw",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Local AI runtime for running agents with your own models and APIs",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -7,7 +7,8 @@ const fs = require('fs');
7
7
  const path = require('path');
8
8
 
9
9
  function parseConfig() {
10
- const configPath = path.join(process.env.HOME, '.klaw', 'config.json');
10
+ const os = require('os');
11
+ const configPath = path.join(os.homedir(), '.klaw', 'config.json');
11
12
  if (fs.existsSync(configPath)) {
12
13
  return JSON.parse(fs.readFileSync(configPath, 'utf8'));
13
14
  }