@locusai/cli 0.7.4 → 0.7.7
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 +1 -0
- package/bin/locus.js +17 -5
- package/package.json +2 -2
package/bin/agent/worker.js
CHANGED
|
@@ -37220,6 +37220,7 @@ class AgentWorker {
|
|
|
37220
37220
|
}
|
|
37221
37221
|
}
|
|
37222
37222
|
if (process.argv[1]?.includes("agent-worker") || process.argv[1]?.includes("worker")) {
|
|
37223
|
+
process.title = "locus-worker";
|
|
37223
37224
|
const args = process.argv.slice(2);
|
|
37224
37225
|
const config2 = {};
|
|
37225
37226
|
for (let i = 0;i < args.length; i++) {
|
package/bin/locus.js
CHANGED
|
@@ -37925,6 +37925,7 @@ var init_worker = __esm(() => {
|
|
|
37925
37925
|
init_document_fetcher();
|
|
37926
37926
|
init_task_executor();
|
|
37927
37927
|
if (process.argv[1]?.includes("agent-worker") || process.argv[1]?.includes("worker")) {
|
|
37928
|
+
process.title = "locus-worker";
|
|
37928
37929
|
const args = process.argv.slice(2);
|
|
37929
37930
|
const config2 = {};
|
|
37930
37931
|
for (let i = 0;i < args.length; i++) {
|
|
@@ -38963,7 +38964,9 @@ ${c.success("✅ Orchestrator finished")}`);
|
|
|
38963
38964
|
env: {
|
|
38964
38965
|
...process.env,
|
|
38965
38966
|
FORCE_COLOR: "1",
|
|
38966
|
-
TERM: "xterm-256color"
|
|
38967
|
+
TERM: "xterm-256color",
|
|
38968
|
+
LOCUS_WORKER: agentId,
|
|
38969
|
+
LOCUS_WORKSPACE: this.config.workspaceId
|
|
38967
38970
|
}
|
|
38968
38971
|
});
|
|
38969
38972
|
agentState.process = agentProcess;
|
|
@@ -40156,10 +40159,19 @@ function getVersion() {
|
|
|
40156
40159
|
try {
|
|
40157
40160
|
const __filename2 = fileURLToPath3(import.meta.url);
|
|
40158
40161
|
const __dirname2 = dirname3(__filename2);
|
|
40159
|
-
const
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40162
|
+
const bundledPath = join8(__dirname2, "..", "package.json");
|
|
40163
|
+
const sourcePath = join8(__dirname2, "..", "..", "package.json");
|
|
40164
|
+
if (existsSync7(bundledPath)) {
|
|
40165
|
+
const pkg = JSON.parse(readFileSync6(bundledPath, "utf-8"));
|
|
40166
|
+
if (pkg.name === "@locusai/cli") {
|
|
40167
|
+
return pkg.version || "0.0.0";
|
|
40168
|
+
}
|
|
40169
|
+
}
|
|
40170
|
+
if (existsSync7(sourcePath)) {
|
|
40171
|
+
const pkg = JSON.parse(readFileSync6(sourcePath, "utf-8"));
|
|
40172
|
+
if (pkg.name === "@locusai/cli") {
|
|
40173
|
+
return pkg.version || "0.0.0";
|
|
40174
|
+
}
|
|
40163
40175
|
}
|
|
40164
40176
|
} catch {}
|
|
40165
40177
|
return "0.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "CLI for Locus - AI-native project management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@locusai/sdk": "^0.7.
|
|
35
|
+
"@locusai/sdk": "^0.7.7"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {}
|
|
38
38
|
}
|