poe-code 3.0.252 → 3.0.254-beta.1
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/index.js +21 -3
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/terminal-pilot/dist/cli.js +20 -2
- package/packages/terminal-pilot/dist/cli.js.map +2 -2
- package/packages/terminal-pilot/dist/testing/cli-repl.js +20 -2
- package/packages/terminal-pilot/dist/testing/cli-repl.js.map +2 -2
- package/packages/terminal-pilot/dist/testing/qa-cli.js +20 -2
- package/packages/terminal-pilot/dist/testing/qa-cli.js.map +2 -2
- package/packages/toolcraft/dist/cli.js +20 -2
- package/packages/toolcraft/dist/design.d.ts +1 -0
- package/packages/toolcraft/dist/design.js +1 -0
package/dist/index.js
CHANGED
|
@@ -84217,12 +84217,27 @@ function createNodeCommand(node, casing, globalLongOptionFlags, execute2, preset
|
|
|
84217
84217
|
node.aliases.forEach((alias) => group.alias(alias));
|
|
84218
84218
|
group.addHelpCommand(false);
|
|
84219
84219
|
addGlobalOptions(group, presetsEnabled, controls);
|
|
84220
|
+
const childNames = new Set(visibleChildren.map((child) => child.name()));
|
|
84220
84221
|
for (const child of visibleChildren) {
|
|
84221
84222
|
const isDefaultChild = node.default !== void 0 && node.default.scope.includes("cli") && (child.name() === node.default.name || child.aliases().includes(node.default.name));
|
|
84222
|
-
group
|
|
84223
|
+
addCommanderChild(group, child, isDefaultChild, childNames);
|
|
84223
84224
|
}
|
|
84224
84225
|
return group;
|
|
84225
84226
|
}
|
|
84227
|
+
function addCommanderChild(parent, child, isDefault, siblingNames) {
|
|
84228
|
+
if (isDefault && child.name().length === 0) {
|
|
84229
|
+
let internalName = "__toolcraft_default__";
|
|
84230
|
+
let suffix = 2;
|
|
84231
|
+
while (siblingNames.has(internalName)) {
|
|
84232
|
+
internalName = `__toolcraft_default_${suffix}`;
|
|
84233
|
+
suffix += 1;
|
|
84234
|
+
}
|
|
84235
|
+
child.name(internalName);
|
|
84236
|
+
parent.addCommand(child, { hidden: true, isDefault: true });
|
|
84237
|
+
return;
|
|
84238
|
+
}
|
|
84239
|
+
parent.addCommand(child, isDefault ? { isDefault: true } : void 0);
|
|
84240
|
+
}
|
|
84226
84241
|
function addGlobalOptions(command, presetsEnabled, controls) {
|
|
84227
84242
|
const options = [];
|
|
84228
84243
|
if (presetsEnabled) {
|
|
@@ -86101,6 +86116,9 @@ async function runCLI(roots, options = {}) {
|
|
|
86101
86116
|
}
|
|
86102
86117
|
);
|
|
86103
86118
|
};
|
|
86119
|
+
const rootChildNames = new Set(
|
|
86120
|
+
root.children.filter((candidate) => isNodeVisibleInScope(candidate, "cli")).map((candidate) => candidate.name)
|
|
86121
|
+
);
|
|
86104
86122
|
for (const child of root.children) {
|
|
86105
86123
|
const command = createNodeCommand(
|
|
86106
86124
|
child,
|
|
@@ -86114,7 +86132,7 @@ async function runCLI(roots, options = {}) {
|
|
|
86114
86132
|
continue;
|
|
86115
86133
|
}
|
|
86116
86134
|
const isDefaultChild = root.default !== void 0 && root.default.scope.includes("cli") && (command.name() === root.default.name || command.aliases().includes(root.default.name));
|
|
86117
|
-
program
|
|
86135
|
+
addCommanderChild(program, command, isDefaultChild, rootChildNames);
|
|
86118
86136
|
}
|
|
86119
86137
|
configureCommanderSuggestionOutput(program);
|
|
86120
86138
|
const unknownCommand = findUnknownCommanderCommand(program, process.argv);
|
|
@@ -132534,7 +132552,7 @@ var init_package2 = __esm({
|
|
|
132534
132552
|
"package.json"() {
|
|
132535
132553
|
package_default2 = {
|
|
132536
132554
|
name: "poe-code",
|
|
132537
|
-
version: "3.0.
|
|
132555
|
+
version: "3.0.254-beta.1",
|
|
132538
132556
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
132539
132557
|
type: "module",
|
|
132540
132558
|
main: "./dist/index.js",
|