@fractary/faber-cli 1.5.36 → 1.5.38

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsDpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAqB3C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/plan/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsDpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CA0B3C"}
@@ -19,7 +19,8 @@ import path from 'path';
19
19
  export function createPlanCommand() {
20
20
  return new Command('workflow-plan')
21
21
  .description('Plan workflows for GitHub issues')
22
- .option('--work-id <ids>', 'Comma-separated list of work item IDs (e.g., "258,259,260")')
22
+ .argument('[work-id]', 'Work item ID (e.g., "258")')
23
+ .option('--work-id <ids>', 'Comma-separated list of work item IDs (deprecated: use positional argument)')
23
24
  .option('--work-label <labels>', 'Comma-separated label filters (e.g., "workflow:etl,status:approved")')
24
25
  .option('--workflow <name>', 'Override workflow (default: read from issue "workflow:*" label)')
25
26
  .option('--no-worktree', 'Skip worktree creation')
@@ -30,8 +31,12 @@ export function createPlanCommand() {
30
31
  .option('--limit <n>', 'Maximum number of issues to plan', parseInt)
31
32
  .option('--order-by <strategy>', 'Order issues by: priority|created|updated (default: none)', 'none')
32
33
  .option('--order-direction <dir>', 'Order direction: asc|desc (default: desc)', 'desc')
33
- .action(async (options) => {
34
+ .action(async (workId, options) => {
34
35
  try {
36
+ // Merge positional argument into options (positional takes precedence)
37
+ if (workId && !options.workId) {
38
+ options.workId = workId;
39
+ }
35
40
  await executePlanCommand(options);
36
41
  }
37
42
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractary/faber-cli",
3
- "version": "1.5.36",
3
+ "version": "1.5.38",
4
4
  "description": "FABER CLI - Command-line interface for FABER development toolkit",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://raw.githubusercontent.com/fractary/faber/main/plugins/faber/config/schemas/plan.schema.json",
4
4
  "title": "FABER Plan Schema",
5
- "description": "JSON Schema for FABER workflow plans generated by CLI or faber-planner agent",
5
+ "description": "JSON Schema for FABER workflow plans generated by CLI or workflow-planner agent",
6
6
  "type": "object",
7
7
  "required": ["id", "created_by", "created", "workflow", "items"],
8
8
  "additionalProperties": true,
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "created_by": {
21
21
  "type": "string",
22
- "enum": ["cli", "faber-planner", "api"],
22
+ "enum": ["cli", "workflow-planner", "api"],
23
23
  "description": "Tool that created the plan"
24
24
  },
25
25
  "cli_version": {