@locusai/cli 0.4.9 → 0.4.11
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/bin/agent/worker.js +30687 -0
- package/bin/locus.js +2 -9
- package/package.json +3 -3
package/bin/locus.js
CHANGED
|
@@ -30694,7 +30694,6 @@ import { spawn as spawn2 } from "node:child_process";
|
|
|
30694
30694
|
import { existsSync as existsSync4 } from "node:fs";
|
|
30695
30695
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
30696
30696
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
30697
|
-
var __dirname = "/home/runner/work/locusai/locusai/packages/sdk/src";
|
|
30698
30697
|
class AgentOrchestrator extends EventEmitter3 {
|
|
30699
30698
|
client;
|
|
30700
30699
|
config;
|
|
@@ -30796,14 +30795,8 @@ ${c.success("✅ Orchestrator finished")}`);
|
|
|
30796
30795
|
console.log(`${c.primary("\uD83D\uDE80 Agent started:")} ${c.bold(agentId)}
|
|
30797
30796
|
`);
|
|
30798
30797
|
const potentialPaths = [];
|
|
30799
|
-
|
|
30800
|
-
|
|
30801
|
-
const sdkDir = dirname2(sdkIndexPath);
|
|
30802
|
-
const sdkRoot = this.findPackageRoot(sdkDir);
|
|
30803
|
-
potentialPaths.push(join4(sdkRoot, "dist", "agent", "worker.js"), join4(sdkRoot, "src", "agent", "worker.ts"));
|
|
30804
|
-
} catch {}
|
|
30805
|
-
const packageRoot = this.findPackageRoot(__dirname);
|
|
30806
|
-
potentialPaths.push(join4(packageRoot, "dist", "agent", "worker.js"), join4(packageRoot, "src", "agent", "worker.ts"), join4(__dirname, "agent", "worker.ts"), join4(__dirname, "agent", "worker.js"));
|
|
30798
|
+
const entryDir = dirname2(process.argv[1]);
|
|
30799
|
+
potentialPaths.push(join4(entryDir, "agent", "worker.js"), join4(entryDir, "worker.js"));
|
|
30807
30800
|
const workerPath = potentialPaths.find((p) => existsSync4(p));
|
|
30808
30801
|
if (!workerPath) {
|
|
30809
30802
|
throw new Error(`Worker file not found. Checked: ${potentialPaths.join(", ")}. ` + `Make sure the SDK is properly built and installed.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Local-first AI development platform & engineering workspace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "bun lint .",
|
|
11
|
-
"build": "bun build ./index.ts --target=node --outfile=./bin/locus.js",
|
|
11
|
+
"build": "bun build ./index.ts --target=node --outfile=./bin/locus.js && bun build ../sdk/src/agent/worker.ts --target=node --outfile=./bin/agent/worker.js",
|
|
12
12
|
"lint": "biome lint .",
|
|
13
13
|
"format": "biome format --write .",
|
|
14
14
|
"test:local": "bun run build && node ./bin/locus.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@locusai/sdk": "^0.4.
|
|
34
|
+
"@locusai/sdk": "^0.4.11"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {}
|
|
37
37
|
}
|