@lousy-agents/cli 2.3.2 → 2.3.4

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 CHANGED
@@ -9798,7 +9798,6 @@ __webpack_require__.d(classic_schemas_namespaceObject, {
9798
9798
 
9799
9799
 
9800
9800
  ;// CONCATENATED MODULE: ./node_modules/citty/dist/_chunks/libs/scule.mjs
9801
- //#region node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs
9802
9801
  const NUMBER_CHAR_RE = /\d/;
9803
9802
  const STR_SPLITTERS = [
9804
9803
  "-",
@@ -9864,15 +9863,12 @@ function kebabCase(str, joiner) {
9864
9863
  return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
9865
9864
  }
9866
9865
 
9867
- //#endregion
9868
9866
 
9869
9867
  // EXTERNAL MODULE: external "node:util"
9870
9868
  var external_node_util_ = __webpack_require__(7975);
9871
9869
  ;// CONCATENATED MODULE: ./node_modules/citty/dist/index.mjs
9872
9870
 
9873
9871
 
9874
-
9875
- //#region src/_utils.ts
9876
9872
  function toArray(val) {
9877
9873
  if (Array.isArray(val)) return val;
9878
9874
  return val === void 0 ? [] : [val];
@@ -9893,9 +9889,6 @@ var CLIError = class extends Error {
9893
9889
  this.code = code;
9894
9890
  }
9895
9891
  };
9896
-
9897
- //#endregion
9898
- //#region src/_parser.ts
9899
9892
  function parseRawArgs(args = [], opts = {}) {
9900
9893
  const booleans = new Set(opts.boolean || []);
9901
9894
  const strings = new Set(opts.string || []);
@@ -9965,16 +9958,19 @@ function parseRawArgs(args = [], opts = {}) {
9965
9958
  const out = { _: [] };
9966
9959
  out._ = parsed.positionals;
9967
9960
  for (const [key, value] of Object.entries(parsed.values)) out[key] = value;
9968
- for (const [name] of Object.entries(negatedFlags)) out[name] = false;
9961
+ for (const [name] of Object.entries(negatedFlags)) {
9962
+ out[name] = false;
9963
+ const mainName = aliasToMain.get(name);
9964
+ if (mainName) out[mainName] = false;
9965
+ const aliases = mainToAliases.get(name);
9966
+ if (aliases) for (const alias of aliases) out[alias] = false;
9967
+ }
9969
9968
  for (const [alias, main] of aliasToMain.entries()) {
9970
9969
  if (out[alias] !== void 0 && out[main] === void 0) out[main] = out[alias];
9971
9970
  if (out[main] !== void 0 && out[alias] === void 0) out[alias] = out[main];
9972
9971
  }
9973
9972
  return out;
9974
9973
  }
9975
-
9976
- //#endregion
9977
- //#region src/_color.ts
9978
9974
  const noColor = /* @__PURE__ */ (() => {
9979
9975
  const env = globalThis.process?.env ?? {};
9980
9976
  return env.NO_COLOR === "1" || env.TERM === "dumb" || env.TEST || env.CI;
@@ -9984,9 +9980,6 @@ const bold = /* @__PURE__ */ _c(1, 22);
9984
9980
  const cyan = /* @__PURE__ */ _c(36);
9985
9981
  const gray = /* @__PURE__ */ _c(90);
9986
9982
  const underline = /* @__PURE__ */ _c(4, 24);
9987
-
9988
- //#endregion
9989
- //#region src/args.ts
9990
9983
  function parseArgs(rawArgs, argsDef) {
9991
9984
  const parseOptions = {
9992
9985
  boolean: [],
@@ -10036,9 +10029,6 @@ function resolveArgs(argsDef) {
10036
10029
  });
10037
10030
  return args;
10038
10031
  }
10039
-
10040
- //#endregion
10041
- //#region src/command.ts
10042
10032
  function defineCommand(def) {
10043
10033
  return def;
10044
10034
  }
@@ -10080,9 +10070,6 @@ async function resolveSubCommand(cmd, rawArgs, parent) {
10080
10070
  }
10081
10071
  return [cmd, parent];
10082
10072
  }
10083
-
10084
- //#endregion
10085
- //#region src/usage.ts
10086
10073
  async function showUsage(cmd, parent) {
10087
10074
  try {
10088
10075
  console.log(await renderUsage(cmd, parent) + "\n");
@@ -10114,11 +10101,6 @@ async function renderUsage(cmd, parent) {
10114
10101
  const isRequired = arg.required === true && arg.default === void 0;
10115
10102
  const argStr = [...(arg.alias || []).map((a) => `-${a}`), `--${arg.name}`].join(", ") + (arg.type === "string" && (arg.valueHint || arg.default) ? `=${arg.valueHint ? `<${arg.valueHint}>` : `"${arg.default || ""}"`}` : "") + (arg.type === "enum" && arg.options ? `=<${arg.options.join("|")}>` : "");
10116
10103
  argLines.push([cyan(argStr + (isRequired ? " (required)" : "")), arg.description || ""]);
10117
- /**
10118
- * print negative boolean arg variant usage when
10119
- * - enabled by default or has `negativeDescription`
10120
- * - not prefixed with `no-` or `no[A-Z]`
10121
- */
10122
10104
  if (arg.type === "boolean" && (arg.default === true || arg.negativeDescription) && !negativePrefixRe.test(arg.name)) {
10123
10105
  const negativeArgStr = [...(arg.alias || []).map((a) => `--no-${a}`), `--no-${arg.name}`].join(", ");
10124
10106
  argLines.push([cyan(negativeArgStr + (isRequired ? " (required)" : "")), arg.negativeDescription || ""]);
@@ -10158,9 +10140,6 @@ async function renderUsage(cmd, parent) {
10158
10140
  }
10159
10141
  return usageLines.filter((l) => typeof l === "string").join("\n");
10160
10142
  }
10161
-
10162
- //#endregion
10163
- //#region src/main.ts
10164
10143
  async function runMain(cmd, opts = {}) {
10165
10144
  const rawArgs = opts.rawArgs || process.argv.slice(2);
10166
10145
  const showUsage$1 = opts.showUsage || showUsage;
@@ -10185,7 +10164,6 @@ function createMain(cmd) {
10185
10164
  return (opts = {}) => runMain(cmd, opts);
10186
10165
  }
10187
10166
 
10188
- //#endregion
10189
10167
 
10190
10168
  // EXTERNAL MODULE: external "node:fs/promises"
10191
10169
  var promises_ = __webpack_require__(1455);
@@ -30213,16 +30191,7 @@ var Eta = class extends Eta$1 {
30213
30191
 
30214
30192
 
30215
30193
 
30216
- /**
30217
- * Checks if a file or directory exists
30218
- */ async function filesystem_structure_fileExists(path) {
30219
- try {
30220
- await (0,promises_.access)(path);
30221
- return true;
30222
- } catch {
30223
- return false;
30224
- }
30225
- }
30194
+
30226
30195
  /**
30227
30196
  * Singleton Eta instance for template processing
30228
30197
  */ const eta = new Eta();
@@ -30250,7 +30219,7 @@ var Eta = class extends Eta$1 {
30250
30219
  for (const node of structure.nodes){
30251
30220
  const fullPath = (0,external_node_path_.join)(targetDir, node.path);
30252
30221
  // Skip if already exists to preserve existing files/directories
30253
- if (await filesystem_structure_fileExists(fullPath)) {
30222
+ if (await fileExists(fullPath)) {
30254
30223
  consola.debug(`Skipping existing: ${fullPath}`);
30255
30224
  continue;
30256
30225
  }