@locusai/cli 0.10.4 → 0.10.5

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.
Files changed (2) hide show
  1. package/bin/locus.js +23 -1
  2. package/package.json +2 -2
package/bin/locus.js CHANGED
@@ -44382,9 +44382,31 @@ async function initCommand() {
44382
44382
  // src/commands/plan.ts
44383
44383
  init_index_node();
44384
44384
  import { parseArgs as parseArgs5 } from "node:util";
44385
+ function normalizePlanIdArgs(args) {
44386
+ const planIdFlags = new Set([
44387
+ "--approve",
44388
+ "--reject",
44389
+ "--cancel",
44390
+ "--show"
44391
+ ]);
44392
+ const result = [];
44393
+ let i = 0;
44394
+ while (i < args.length) {
44395
+ if (planIdFlags.has(args[i]) && i + 2 < args.length && args[i + 1] === "plan" && /^-\d+$/.test(args[i + 2])) {
44396
+ result.push(args[i]);
44397
+ result.push(`plan${args[i + 2]}`);
44398
+ i += 3;
44399
+ } else {
44400
+ result.push(args[i]);
44401
+ i++;
44402
+ }
44403
+ }
44404
+ return result;
44405
+ }
44385
44406
  async function planCommand(args) {
44407
+ const normalizedArgs = normalizePlanIdArgs(args);
44386
44408
  const { values, positionals } = parseArgs5({
44387
- args,
44409
+ args: normalizedArgs,
44388
44410
  options: {
44389
44411
  approve: { type: "string" },
44390
44412
  reject: { type: "string" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "CLI for Locus - AI-native project management platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "author": "",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@locusai/sdk": "^0.10.4"
36
+ "@locusai/sdk": "^0.10.5"
37
37
  },
38
38
  "devDependencies": {}
39
39
  }