planfs-cli 1.2.0 → 1.4.0

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 (49) hide show
  1. package/README.md +58 -0
  2. package/dist/cli.d.ts +1 -1
  3. package/dist/cli.js +6 -515
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/ai.d.ts +5 -1
  6. package/dist/commands/ai.js +93 -0
  7. package/dist/commands/ai.js.map +1 -1
  8. package/dist/commands/archive.d.ts +2 -0
  9. package/dist/commands/archive.js +10 -3
  10. package/dist/commands/archive.js.map +1 -1
  11. package/dist/commands/create.js +10 -2
  12. package/dist/commands/create.js.map +1 -1
  13. package/dist/commands/doctor.d.ts +4 -0
  14. package/dist/commands/doctor.js +43 -0
  15. package/dist/commands/doctor.js.map +1 -0
  16. package/dist/commands/filter.d.ts +10 -0
  17. package/dist/commands/filter.js +33 -0
  18. package/dist/commands/filter.js.map +1 -0
  19. package/dist/commands/format.d.ts +9 -0
  20. package/dist/commands/format.js +98 -0
  21. package/dist/commands/format.js.map +1 -0
  22. package/dist/commands/history.d.ts +1 -0
  23. package/dist/commands/history.js +22 -0
  24. package/dist/commands/history.js.map +1 -0
  25. package/dist/commands/inspect.d.ts +9 -0
  26. package/dist/commands/inspect.js +153 -0
  27. package/dist/commands/inspect.js.map +1 -0
  28. package/dist/commands/migrate.d.ts +4 -0
  29. package/dist/commands/migrate.js +24 -0
  30. package/dist/commands/migrate.js.map +1 -0
  31. package/dist/commands/show.d.ts +2 -0
  32. package/dist/commands/show.js +27 -1
  33. package/dist/commands/show.js.map +1 -1
  34. package/dist/commands/update.d.ts +7 -0
  35. package/dist/commands/update.js +51 -0
  36. package/dist/commands/update.js.map +1 -0
  37. package/dist/commands/validate.d.ts +7 -0
  38. package/dist/commands/validate.js +75 -28
  39. package/dist/commands/validate.js.map +1 -1
  40. package/dist/entity-commands.d.ts +5 -0
  41. package/dist/entity-commands.js +230 -0
  42. package/dist/entity-commands.js.map +1 -0
  43. package/dist/planning-commands.d.ts +5 -0
  44. package/dist/planning-commands.js +259 -0
  45. package/dist/planning-commands.js.map +1 -0
  46. package/dist/workflow-commands.d.ts +5 -0
  47. package/dist/workflow-commands.js +222 -0
  48. package/dist/workflow-commands.js.map +1 -0
  49. package/package.json +3 -2
package/README.md CHANGED
@@ -14,6 +14,8 @@ Command-line interface for PlanFS.
14
14
  - **Show** - Display entity details
15
15
  - **Create** - Create new entities
16
16
  - **PR** - Generate pull request planning context
17
+ - **Format** - Check, preview, and explicitly apply conservative semantic Markdown repairs
18
+ - **Semantic context** - Share compact, traceable planning intent and relationship context between agents and people
17
19
 
18
20
  ## Installation
19
21
 
@@ -46,8 +48,14 @@ Validate the repository for errors:
46
48
  ```bash
47
49
  planfs validate
48
50
  planfs validate --verbose
51
+ planfs validate --semantic baseline
52
+ planfs validate --semantic automation-ready --lifecycle
53
+ planfs validate --semantic automation-ready --criterion-check-state error --format json
54
+ planfs validate --semantic automation-ready --nlp --language en
49
55
  ```
50
56
 
57
+ Semantic validation is opt-in and remains separate from existing YAML and repository-integrity checks. `baseline` checks loss-preserving Markdown interpretation; `automation-ready` applies entity content profiles; `--lifecycle` adds read-only status-sensitive policy. Ordinary criteria can be ignored or reported at `info`, `warning`, or `error` severity. `--strict` fails on repository or semantic warnings. Enabled semantic JSON appears under a separate `semantic` key, leaving default JSON unchanged.
58
+
51
59
  ### List
52
60
 
53
61
  List entities:
@@ -103,6 +111,19 @@ planfs backlog list --format json
103
111
 
104
112
  Backlog refinement states are `captured`, `needs-refinement`, `ready`, `deferred`, and `discarded`. Explicit non-ready backlog items are separate from next-work recommendations.
105
113
 
114
+ ### AI Planning Context
115
+
116
+ Start with the repository summary, then retrieve bounded semantic context for relevant work:
117
+
118
+ ```bash
119
+ planfs ai summary --only ready --compact
120
+ planfs ai context --id TASK-001
121
+ planfs ai context --id TASK-001 --format text
122
+ planfs ai context --id TASK-001 --nlp --language en
123
+ ```
124
+
125
+ `ai context` uses the shared core semantic parser and returns intent, recognized sections, acceptance criteria, findings, decisions, questions, references, diagnostics, readiness, and resolved authoritative relationships. JSON retains source ranges and provenance for traceability; text presents the same contract for human review. Advisory prose analysis is local, optional, and never mutates metadata.
126
+
106
127
  ### Show
107
128
 
108
129
  Display entity details:
@@ -110,8 +131,45 @@ Display entity details:
110
131
  ```bash
111
132
  planfs show TASK-001
112
133
  planfs show TASK-001 --format json
134
+ planfs show TASK-001 --nlp
135
+ planfs show TASK-001 --nlp --language en --format json
136
+ ```
137
+
138
+ `--nlp` explicitly enables local, advisory English prose analysis. It reports promoted modality, negation, condition, date/duration, and possible relationship-mention signals with source locations. Analysis never edits the file or treats prose as authoritative metadata. It makes no network calls and downloads no model. Other languages return an advisory unsupported-language diagnostic without hiding the entity or failing the command.
139
+
140
+ Without `--nlp`, JSON output retains the existing entity shape. With `--nlp`, JSON is `{ "entity": ..., "analysis": ... }`; every signal is marked `nlp-inferred` and `authoritative: false`.
141
+
142
+ ### Semantic Inspection
143
+
144
+ Inspect normalized Markdown content, authoritative relationships, diagnostics, and advisory suggestions through one stable surface:
145
+
146
+ ```bash
147
+ planfs inspect TASK-001
148
+ planfs inspect TASK-001 --format json
149
+ planfs inspect TASK-001 --view acceptance-criteria --format json
150
+ planfs inspect TASK-001 --view relationships
151
+ planfs inspect TASK-001 --view raw --no-nlp
113
152
  ```
114
153
 
154
+ Semantic inspection runs the bundled local analyzer by default and can be made structural-only with `--no-nlp`. Normal text output shows deduplicated actionable suggestions; full JSON preserves analyzer identity, language, evidence, confidence, provenance, raw signals, exact source ranges, and raw Markdown. Analysis remains advisory and never modifies frontmatter. This does not change `validate`: analysis during validation is still explicitly enabled with `--nlp`.
155
+
156
+ Focused views are `all`, `acceptance-criteria`, `findings`, `sections`, `mentions`, `relationships`, and `raw`. See [Semantic Entity Inspection](../../docs/SEMANTIC_INSPECTION.md) for the stable envelope and integration examples.
157
+
158
+ ### Semantic Formatting
159
+
160
+ Keep validation, formatting checks, previews, and writes explicit:
161
+
162
+ ```bash
163
+ planfs validate --semantic automation-ready
164
+ planfs format TASK-001 --check
165
+ planfs format TASK-001 --format json
166
+ planfs format TASK-001 --apply --expected-fingerprint sha256:...
167
+ planfs format TASK-001 TASK-002 --format json
168
+ planfs format --all --check
169
+ ```
170
+
171
+ `format` canonicalizes only uniquely recognized headings and acceptance/release checklist markers. Preview is the default and never writes. Apply requires the source fingerprint returned by preview; batch fingerprints use `ENTITY-ID=sha256:...`. Unknown sections, code, HTML, comments, links, images, line endings, and frontmatter remain unchanged. Duplicate recognized sections and unsafe regions are reported rather than merged or guessed. See [Semantic Markdown Formatting](../../docs/SEMANTIC_FORMATTING.md) for the complete safety contract.
172
+
115
173
  ### Create
116
174
 
117
175
  Create new entities:
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Main CLI entry point
3
+ * Main CLI entry point.
4
4
  */
5
5
  export declare function main(): Promise<void>;
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  /**
4
- * Main CLI entry point
4
+ * Main CLI entry point.
5
5
  */
6
6
  var __importDefault = (this && this.__importDefault) || function (mod) {
7
7
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -10,522 +10,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.main = main;
11
11
  const yargs_1 = __importDefault(require("yargs"));
12
12
  const helpers_1 = require("yargs/helpers");
13
- const validate_1 = require("./commands/validate");
14
- const ai_1 = require("./commands/ai");
15
- const init_1 = require("./commands/init");
16
- const list_1 = require("./commands/list");
17
- const next_1 = require("./commands/next");
18
- const show_1 = require("./commands/show");
19
- const create_1 = require("./commands/create");
20
- const backlog_1 = require("./commands/backlog");
21
- const archive_1 = require("./commands/archive");
22
- const branch_1 = require("./commands/branch");
23
- const git_1 = require("./commands/git");
24
- const pr_1 = require("./commands/pr");
13
+ const entity_commands_1 = require("./entity-commands");
14
+ const planning_commands_1 = require("./planning-commands");
15
+ const workflow_commands_1 = require("./workflow-commands");
25
16
  const package_json_1 = __importDefault(require("../package.json"));
26
17
  async function main() {
27
- await (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
28
- .version(package_json_1.default.version)
29
- .command('ai <action>', 'AI-oriented planning summary and update helpers', (y) => y
30
- .positional('action', {
31
- describe: 'AI helper to run',
32
- choices: ['summary', 'update-task', 'bulk-update-tasks', 'initialize']
33
- })
34
- .option('id', {
35
- type: 'string',
36
- description: 'Task ID to update'
37
- })
38
- .option('ids', {
39
- type: 'array',
40
- string: true,
41
- description: 'Task IDs to bulk update, comma-separated or repeated'
42
- })
43
- .option('assignee', {
44
- type: 'string',
45
- description: 'Scope summary or set task assignee'
46
- })
47
- .option('epic', {
48
- type: 'string',
49
- description: 'Scope summary or set task epic'
50
- })
51
- .option('milestone', {
52
- type: 'string',
53
- description: 'Scope summary or set task milestone'
54
- })
55
- .option('estimate', {
56
- type: 'string',
57
- description: 'Set task estimate'
58
- })
59
- .option('status', {
60
- type: 'array',
61
- string: true,
62
- choices: ['todo', 'in-progress', 'review', 'done'],
63
- description: 'Scope summary by status or set task status'
64
- })
65
- .option('priority', {
66
- type: 'string',
67
- choices: ['low', 'medium', 'high', 'critical'],
68
- description: 'Set task priority'
69
- })
70
- .option('refinement-state', {
71
- type: 'array',
72
- string: true,
73
- choices: ['captured', 'needs-refinement', 'ready', 'deferred', 'discarded'],
74
- description: 'Scope summary by refinement state or set task refinement state'
75
- })
76
- .option('due-date', {
77
- type: 'string',
78
- description: 'Set task due date'
79
- })
80
- .option('tags', {
81
- type: 'string',
82
- description: 'Set task tags as a comma-separated list'
83
- })
84
- .option('limit', {
85
- type: 'number',
86
- description: 'Maximum number of summary items per list'
87
- })
88
- .option('only', {
89
- type: 'string',
90
- choices: ['open', 'ready', 'blocked', 'review', 'stale', 'recent'],
91
- description: 'Return only one planning summary section'
92
- })
93
- .option('compact', {
94
- type: 'boolean',
95
- default: false,
96
- description: 'Emit minified JSON for lower-overhead agent context'
97
- })
98
- .option('expected-updated-at', {
99
- type: 'string',
100
- description: 'Refuse a task update if updatedAt changed since preview (use none for an unset timestamp)'
101
- })
102
- .option('command', {
103
- type: 'string',
104
- description: 'CLI command written by ai initialize (default: planfs)'
105
- })
106
- .option('dry-run', {
107
- type: 'boolean',
108
- default: false,
109
- description: 'Preview task updates or awareness initialization without writing files'
110
- })
111
- .option('file', {
112
- type: 'string',
113
- default: 'AGENTS.md',
114
- description: 'Agent instruction file to create or update'
115
- })
116
- .option('format', {
117
- type: 'string',
118
- choices: ['json', 'text'],
119
- default: 'json',
120
- description: 'Output format'
121
- }), async (args) => {
122
- const exitCode = await (0, ai_1.aiCommand)(process.cwd(), args.action, {
123
- id: args.id,
124
- ids: args.ids,
125
- assignee: args.assignee,
126
- epic: args.epic,
127
- milestone: args.milestone,
128
- estimate: args.estimate,
129
- status: args.status,
130
- priority: args.priority,
131
- refinementState: args.refinementState,
132
- dueDate: args.dueDate,
133
- tags: args.tags,
134
- limit: args.limit,
135
- dryRun: args.dryRun,
136
- file: args.file,
137
- format: args.format,
138
- only: args.only,
139
- compact: args.compact,
140
- expectedUpdatedAt: args.expectedUpdatedAt,
141
- command: args.command
142
- });
143
- process.exit(exitCode);
144
- })
145
- .command('init', 'Initialize PlanFS repository structure', (y) => y.option('format', {
146
- type: 'string',
147
- choices: ['text', 'json'],
148
- default: 'text',
149
- description: 'Output format'
150
- }), async (args) => {
151
- const exitCode = await (0, init_1.initCommand)(process.cwd(), {
152
- format: args.format
153
- });
154
- process.exit(exitCode);
155
- })
156
- .command('validate', 'Validate the PlanFS repository', (y) => y
157
- .option('verbose', {
158
- alias: 'v',
159
- type: 'boolean',
160
- description: 'Show detailed output',
161
- default: false
162
- })
163
- .option('format', {
164
- type: 'string',
165
- choices: ['text', 'json'],
166
- default: 'text',
167
- description: 'Output format'
168
- }), async (args) => {
169
- const exitCode = await (0, validate_1.validateCommand)(process.cwd(), {
170
- verbose: args.verbose,
171
- format: args.format
172
- });
173
- process.exit(exitCode);
174
- })
175
- .command('branch', 'Show PlanFS changes on the current Git branch', (y) => y
176
- .option('base', {
177
- type: 'string',
178
- description: 'Base branch or ref to compare against'
179
- })
180
- .option('format', {
181
- type: 'string',
182
- choices: ['text', 'json'],
183
- default: 'text',
184
- description: 'Output format'
185
- }), async (args) => {
186
- const exitCode = await (0, branch_1.branchCommand)(process.cwd(), {
187
- base: args.base,
188
- format: args.format
189
- });
190
- process.exit(exitCode);
191
- })
192
- .command('git <action> [message..]', 'Use Git-aware PlanFS helpers', (y) => y
193
- .positional('action', {
194
- describe: 'Git helper to run',
195
- choices: ['commit-message', 'validate-message']
196
- })
197
- .positional('message', {
198
- describe: 'Commit message to validate',
199
- type: 'string'
200
- })
201
- .option('base', {
202
- type: 'string',
203
- description: 'Base branch or ref for commit message suggestions'
204
- })
205
- .option('format', {
206
- type: 'string',
207
- choices: ['text', 'json'],
208
- default: 'text',
209
- description: 'Output format'
210
- }), async (args) => {
211
- const message = Array.isArray(args.message)
212
- ? args.message.join(' ')
213
- : args.message;
214
- const exitCode = await (0, git_1.gitCommand)(process.cwd(), args.action, message, {
215
- base: args.base,
216
- format: args.format
217
- });
218
- process.exit(exitCode);
219
- })
220
- .command('pr <action>', 'Generate pull request planning context', (y) => y
221
- .positional('action', {
222
- describe: 'Pull request helper to run',
223
- choices: ['summary', 'providers']
224
- })
225
- .option('base', {
226
- type: 'string',
227
- description: 'Base branch or ref to compare against'
228
- })
229
- .option('provider', {
230
- type: 'string',
231
- choices: ['github', 'gitlab', 'azure-devops'],
232
- default: 'github',
233
- description: 'Pull request provider'
234
- })
235
- .option('format', {
236
- type: 'string',
237
- choices: ['markdown', 'json'],
238
- default: 'markdown',
239
- description: 'Output format'
240
- }), async (args) => {
241
- const exitCode = await (0, pr_1.pullRequestCommand)(process.cwd(), args.action, {
242
- base: args.base,
243
- provider: args.provider,
244
- format: args.format
245
- });
246
- process.exit(exitCode);
247
- })
248
- .command('archive <action>', 'Archive, restore, and browse hidden PlanFS tasks and epics', (y) => y
249
- .positional('action', {
250
- describe: 'Archive workflow to run',
251
- choices: ['list', 'archive', 'restore', 'delete']
252
- })
253
- .option('id', {
254
- type: 'string',
255
- description: 'Task or epic ID'
256
- })
257
- .option('include-children', {
258
- type: 'boolean',
259
- default: false,
260
- description: 'When archiving an epic, also archive child tasks'
261
- })
262
- .option('dry-run', {
263
- type: 'boolean',
264
- default: false,
265
- description: 'Preview archive changes without writing files'
266
- })
267
- .option('expected-updated-at', {
268
- type: 'string',
269
- description: 'Refuse archive if the target updatedAt has changed'
270
- })
271
- .option('yes', {
272
- type: 'boolean',
273
- default: false,
274
- description: 'Confirm permanent archive deletion'
275
- })
276
- .option('format', {
277
- type: 'string',
278
- choices: ['text', 'json'],
279
- default: 'text',
280
- description: 'Output format'
281
- }), async (args) => {
282
- const exitCode = await (0, archive_1.archiveCommand)(process.cwd(), args.action, {
283
- id: args.id,
284
- includeChildren: args.includeChildren,
285
- dryRun: args.dryRun,
286
- expectedUpdatedAt: args.expectedUpdatedAt,
287
- yes: args.yes,
288
- format: args.format
289
- });
290
- process.exit(exitCode);
291
- })
292
- .command('backlog <action>', 'Manage backlog intake, refinement, and hygiene', (y) => y
293
- .positional('action', {
294
- describe: 'Backlog workflow to run',
295
- choices: ['list', 'capture', 'set-state', 'review']
296
- })
297
- .option('title', {
298
- alias: 't',
299
- type: 'string',
300
- description: 'Title for captured backlog items'
301
- })
302
- .option('id', {
303
- type: 'string',
304
- description: 'Task ID to update'
305
- })
306
- .option('state', {
307
- type: 'string',
308
- choices: ['captured', 'needs-refinement', 'ready', 'deferred', 'discarded'],
309
- description: 'Backlog refinement state'
310
- })
311
- .option('assignee', {
312
- type: 'string',
313
- description: 'Filter or set assignee'
314
- })
315
- .option('epic', {
316
- type: 'string',
317
- description: 'Filter or set epic'
318
- })
319
- .option('milestone', {
320
- type: 'string',
321
- description: 'Filter or set milestone'
322
- })
323
- .option('priority', {
324
- type: 'string',
325
- choices: ['low', 'medium', 'high', 'critical'],
326
- description: 'Filter or set priority'
327
- })
328
- .option('tag', {
329
- type: 'array',
330
- string: true,
331
- description: 'Filter by tag'
332
- })
333
- .option('query', {
334
- type: 'string',
335
- description: 'Filter by text query'
336
- })
337
- .option('body', {
338
- type: 'string',
339
- description: 'Markdown body for captured backlog items'
340
- })
341
- .option('limit', {
342
- type: 'number',
343
- description: 'Maximum number of items to show'
344
- })
345
- .option('format', {
346
- type: 'string',
347
- choices: ['text', 'json'],
348
- default: 'text',
349
- description: 'Output format'
350
- }), async (args) => {
351
- const exitCode = await (0, backlog_1.backlogCommand)(process.cwd(), args.action, {
352
- title: args.title,
353
- id: args.id,
354
- state: args.state,
355
- assignee: args.assignee,
356
- epic: args.epic,
357
- milestone: args.milestone,
358
- priority: args.priority,
359
- tag: args.tag,
360
- query: args.query,
361
- body: args.body,
362
- limit: args.limit,
363
- format: args.format
364
- });
365
- process.exit(exitCode);
366
- })
367
- .command('next', 'List ranked next-work candidates', (y) => y
368
- .option('assignee', {
369
- type: 'string',
370
- description: 'Filter by assignee'
371
- })
372
- .option('epic', {
373
- type: 'string',
374
- description: 'Filter by epic'
375
- })
376
- .option('milestone', {
377
- type: 'string',
378
- description: 'Filter by milestone'
379
- })
380
- .option('tag', {
381
- type: 'array',
382
- string: true,
383
- description: 'Filter by tag'
384
- })
385
- .option('status', {
386
- type: 'array',
387
- string: true,
388
- choices: ['todo', 'in-progress', 'review', 'done'],
389
- description: 'Filter by status'
390
- })
391
- .option('include-blocked', {
392
- type: 'boolean',
393
- default: false,
394
- description: 'Include blocked and missing-dependency tasks'
395
- })
396
- .option('explain', {
397
- type: 'boolean',
398
- default: false,
399
- description: 'Show all ranking reasons'
400
- })
401
- .option('limit', {
402
- type: 'number',
403
- description: 'Maximum number of candidates to show'
404
- })
405
- .option('format', {
406
- type: 'string',
407
- choices: ['text', 'json'],
408
- default: 'text',
409
- description: 'Output format'
410
- }), async (args) => {
411
- const exitCode = await (0, next_1.nextCommand)(process.cwd(), {
412
- assignee: args.assignee,
413
- epic: args.epic,
414
- milestone: args.milestone,
415
- tag: args.tag,
416
- status: args.status,
417
- includeBlocked: args.includeBlocked,
418
- explain: args.explain,
419
- limit: args.limit,
420
- format: args.format
421
- });
422
- process.exit(exitCode);
423
- })
424
- .command('list [type]', 'List entities', (y) => y
425
- .positional('type', {
426
- describe: 'Entity type to list',
427
- choices: ['tasks', 'epics', 'milestones', 'decisions'],
428
- default: 'tasks'
429
- })
430
- .option('status', {
431
- type: 'string',
432
- description: 'Filter by status'
433
- })
434
- .option('assignee', {
435
- type: 'string',
436
- description: 'Filter by assignee'
437
- })
438
- .option('epic', {
439
- type: 'string',
440
- description: 'Filter by epic'
441
- })
442
- .option('format', {
443
- type: 'string',
444
- choices: ['table', 'json'],
445
- default: 'table',
446
- description: 'Output format'
447
- }), async (args) => {
448
- const exitCode = await (0, list_1.listCommand)(process.cwd(), {
449
- type: args.type,
450
- status: args.status,
451
- assignee: args.assignee,
452
- epic: args.epic,
453
- format: args.format
454
- });
455
- process.exit(exitCode);
456
- })
457
- .command('show <id>', 'Show entity details', (y) => y
458
- .positional('id', {
459
- describe: 'Entity ID to show'
460
- })
461
- .option('format', {
462
- type: 'string',
463
- choices: ['pretty', 'json'],
464
- default: 'pretty'
465
- }), async (args) => {
466
- const exitCode = await (0, show_1.showCommand)(process.cwd(), args.id, {
467
- format: args.format
468
- });
469
- process.exit(exitCode);
470
- })
471
- .command('create <type>', 'Create new entity', (y) => y
472
- .positional('type', {
473
- describe: 'Entity type to create',
474
- choices: ['task', 'epic', 'milestone']
475
- })
476
- .option('title', {
477
- alias: 't',
478
- type: 'string',
479
- description: 'Entity title'
480
- })
481
- .option('status', {
482
- type: 'string',
483
- description: 'Initial status'
484
- })
485
- .option('priority', {
486
- type: 'string',
487
- description: 'Priority (for tasks)'
488
- })
489
- .option('assignee', {
490
- type: 'string',
491
- description: 'Assignee'
492
- })
493
- .option('owner', {
494
- type: 'string',
495
- description: 'Owner for epics and milestones'
496
- })
497
- .option('description', {
498
- type: 'string',
499
- description: 'Description/body for epics and milestones'
500
- })
501
- .option('target-date', {
502
- type: 'string',
503
- description: 'Target date for milestones'
504
- })
505
- .option('dry-run', {
506
- type: 'boolean',
507
- default: false,
508
- description: 'Preview created Markdown without writing files'
509
- })
510
- .option('format', {
511
- type: 'string',
512
- choices: ['text', 'json'],
513
- default: 'text',
514
- description: 'Output format'
515
- }), async (args) => {
516
- const exitCode = await (0, create_1.createCommand)(process.cwd(), args.type, {
517
- title: args.title,
518
- status: args.status,
519
- priority: args.priority,
520
- assignee: args.assignee,
521
- owner: args.owner,
522
- description: args.description,
523
- targetDate: args.targetDate,
524
- dryRun: args.dryRun,
525
- format: args.format
526
- });
527
- process.exit(exitCode);
528
- })
18
+ const cli = (0, entity_commands_1.registerEntityCommands)((0, workflow_commands_1.registerWorkflowCommands)((0, planning_commands_1.registerPlanningCommands)((0, yargs_1.default)((0, helpers_1.hideBin)(process.argv)).version(package_json_1.default.version))));
19
+ await cli
529
20
  .demandCommand(1, 'You must provide a command')
530
21
  .help()
531
22
  .strict()
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AACA;;GAEG;;;;;AAmBH,oBA4lBC;AA7mBD,kDAA0B;AAC1B,2CAAwC;AAExC,kDAAsD;AACtD,sCAAsE;AACtE,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,0CAA8C;AAC9C,8CAAkD;AAClD,gDAAmE;AACnE,gDAAmE;AACnE,8CAAkD;AAClD,wCAAuD;AACvD,sCAAsE;AACtE,mEAAkC;AAE3B,KAAK,UAAU,IAAI;IACxB,MAAM,IAAA,eAAK,EAAC,IAAA,iBAAO,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC/B,OAAO,CAAC,sBAAG,CAAC,OAAO,CAAC;SACpB,OAAO,CACN,aAAa,EACb,iDAAiD,EACjD,CAAC,C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