@locusai/cli 0.21.15 → 0.21.17
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 +8 -0
- package/package.json +2 -2
package/bin/locus.js
CHANGED
|
@@ -8147,6 +8147,11 @@ async function startRepl(options) {
|
|
|
8147
8147
|
await executeOneShotPrompt(options.prompt, session, sessionManager, options);
|
|
8148
8148
|
return;
|
|
8149
8149
|
}
|
|
8150
|
+
if (!process.stdin.isTTY) {
|
|
8151
|
+
process.stderr.write(`${red2("✗")} Interactive REPL requires a terminal. Use: locus exec "your prompt"
|
|
8152
|
+
`);
|
|
8153
|
+
return;
|
|
8154
|
+
}
|
|
8150
8155
|
await runInteractiveRepl(session, sessionManager, options);
|
|
8151
8156
|
}
|
|
8152
8157
|
async function executeOneShotPrompt(prompt, session, sessionManager, options) {
|
|
@@ -11562,6 +11567,9 @@ ${content.slice(0, 8000)}`
|
|
|
11562
11567
|
], {});
|
|
11563
11568
|
}
|
|
11564
11569
|
async function promptForAnswers() {
|
|
11570
|
+
if (!process.stdin.isTTY) {
|
|
11571
|
+
return "";
|
|
11572
|
+
}
|
|
11565
11573
|
const input = new InputHandler({
|
|
11566
11574
|
prompt: `${cyan2("you")} ${dim2(">")} `
|
|
11567
11575
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.17",
|
|
4
4
|
"description": "GitHub-native AI engineering assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@locusai/sdk": "^0.21.
|
|
39
|
+
"@locusai/sdk": "^0.21.17",
|
|
40
40
|
"@types/bun": "latest",
|
|
41
41
|
"typescript": "^5.8.3"
|
|
42
42
|
},
|