@lisa.ai/agent 1.0.1 → 1.0.3

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/dist/index.js +3 -2
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  const commander_1 = require("commander");
@@ -32,7 +33,7 @@ program
32
33
  process.exit(1);
33
34
  }
34
35
  }
35
- (0, heal_1.healCommand)(options.command, model, 1, null, maxRetries, options.projectId || 'local');
36
+ await (0, heal_1.healCommand)(options.command, model, 1, null, maxRetries, options.projectId || 'local');
36
37
  });
37
38
  program
38
39
  .command('coverage')
@@ -53,6 +54,6 @@ program
53
54
  model = config.modelProvider;
54
55
  maxRetries = config.maxRetries;
55
56
  }
56
- (0, coverage_1.coverageCommand)(options.command, model, 1, maxRetries, options.projectId || 'local');
57
+ await (0, coverage_1.coverageCommand)(options.command, model, 1, maxRetries, options.projectId || 'local');
57
58
  });
58
59
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lisa.ai/agent",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Lisa.ai Autonomous CI/CD Worker Agent",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -12,7 +12,8 @@
12
12
  "scripts": {
13
13
  "build": "tsc",
14
14
  "start": "node dist/index.js",
15
- "dev": "ts-node src/index.ts"
15
+ "dev": "ts-node src/index.ts",
16
+ "prepublishOnly": "npm run build"
16
17
  },
17
18
  "keywords": [
18
19
  "lisa",