@atlaswork/atlascode 0.1.132 → 0.1.133
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/dist/atlasweb-carrier.json +1 -1
- package/dist/cli.js +10 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -506875,8 +506875,17 @@ async function binMain() {
|
|
|
506875
506875
|
await runDevCli();
|
|
506876
506876
|
return;
|
|
506877
506877
|
}
|
|
506878
|
+
const tuiWordLeadingCommands = new Set([
|
|
506879
|
+
"agents",
|
|
506880
|
+
"doctor",
|
|
506881
|
+
"auth",
|
|
506882
|
+
"plugin",
|
|
506883
|
+
"plugins",
|
|
506884
|
+
"install",
|
|
506885
|
+
"setup-token"
|
|
506886
|
+
]);
|
|
506878
506887
|
const hasPrintFlag = argv.includes("-p") || argv.includes("--print");
|
|
506879
|
-
const isTuiInvocation = argv.length === 0 || argv[0] === "code" || argv[0].startsWith("-") && !hasPrintFlag;
|
|
506888
|
+
const isTuiInvocation = argv.length === 0 || argv[0] === "code" || argv[0].startsWith("-") && !hasPrintFlag || tuiWordLeadingCommands.has(argv[0]);
|
|
506880
506889
|
if (isTuiInvocation) {
|
|
506881
506890
|
if (argv[0] === "code") {
|
|
506882
506891
|
process.argv = [process.argv[0], process.argv[1], ...argv.slice(1)];
|
package/package.json
CHANGED