@locusai/cli 0.3.2 → 0.3.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.
- package/bin/locus.js +9 -7
- package/package.json +5 -4
package/bin/locus.js
CHANGED
|
@@ -30647,16 +30647,18 @@ class AgentOrchestrator extends EventEmitter3 {
|
|
|
30647
30647
|
this.agents.set(agentId, agentState);
|
|
30648
30648
|
console.log(`\uD83D\uDE80 Agent started: ${agentId}
|
|
30649
30649
|
`);
|
|
30650
|
+
const potentialPaths = [];
|
|
30651
|
+
try {
|
|
30652
|
+
const sdkIndexPath = import.meta.resolve("@locusai/sdk");
|
|
30653
|
+
const sdkDir = dirname2(sdkIndexPath.replace("file://", ""));
|
|
30654
|
+
const sdkRoot = this.findPackageRoot(sdkDir);
|
|
30655
|
+
potentialPaths.push(join4(sdkRoot, "dist", "agent", "worker.js"), join4(sdkRoot, "src", "agent", "worker.ts"));
|
|
30656
|
+
} catch {}
|
|
30650
30657
|
const packageRoot = this.findPackageRoot(__dirname);
|
|
30651
|
-
|
|
30652
|
-
join4(packageRoot, "dist", "agent", "worker.js"),
|
|
30653
|
-
join4(packageRoot, "src", "agent", "worker.ts"),
|
|
30654
|
-
join4(__dirname, "agent", "worker.ts"),
|
|
30655
|
-
join4(__dirname, "agent", "worker.js")
|
|
30656
|
-
];
|
|
30658
|
+
potentialPaths.push(join4(packageRoot, "dist", "agent", "worker.js"), join4(packageRoot, "src", "agent", "worker.ts"), join4(__dirname, "agent", "worker.ts"), join4(__dirname, "agent", "worker.js"));
|
|
30657
30659
|
const workerPath = potentialPaths.find((p) => existsSync4(p));
|
|
30658
30660
|
if (!workerPath) {
|
|
30659
|
-
throw new Error(`Worker file not found. Checked: ${potentialPaths.join(", ")}. ` + `Make sure the SDK is properly built
|
|
30661
|
+
throw new Error(`Worker file not found. Checked: ${potentialPaths.join(", ")}. ` + `Make sure the SDK is properly built and installed.`);
|
|
30660
30662
|
}
|
|
30661
30663
|
const workerArgs = [
|
|
30662
30664
|
"--agent-id",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Local-first AI development platform & engineering workspace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "MIT",
|
|
33
|
-
"
|
|
34
|
-
"@locusai/sdk": "
|
|
35
|
-
}
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@locusai/sdk": "^0.3.3"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {}
|
|
36
37
|
}
|