@principal-ai/principal-view-cli 0.3.3 → 0.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.
Files changed (58) hide show
  1. package/dist/commands/coverage.d.ts +9 -0
  2. package/dist/commands/coverage.d.ts.map +1 -0
  3. package/dist/commands/coverage.js +158 -0
  4. package/dist/commands/create.d.ts +6 -0
  5. package/dist/commands/create.d.ts.map +1 -0
  6. package/dist/commands/create.js +50 -0
  7. package/dist/commands/doctor.d.ts +10 -0
  8. package/dist/commands/doctor.d.ts.map +1 -0
  9. package/dist/commands/doctor.js +274 -0
  10. package/dist/commands/formats.d.ts +6 -0
  11. package/dist/commands/formats.d.ts.map +1 -0
  12. package/dist/commands/formats.js +475 -0
  13. package/dist/commands/hooks.d.ts +9 -0
  14. package/dist/commands/hooks.d.ts.map +1 -0
  15. package/dist/commands/hooks.js +295 -0
  16. package/dist/commands/init.d.ts +6 -0
  17. package/dist/commands/init.d.ts.map +1 -0
  18. package/dist/commands/init.js +271 -0
  19. package/dist/commands/lint.d.ts +6 -0
  20. package/dist/commands/lint.d.ts.map +1 -0
  21. package/dist/commands/lint.js +506 -0
  22. package/dist/commands/list.d.ts +6 -0
  23. package/dist/commands/list.d.ts.map +1 -0
  24. package/dist/commands/list.js +80 -0
  25. package/dist/commands/narrative/index.d.ts +3 -0
  26. package/dist/commands/narrative/index.d.ts.map +1 -0
  27. package/dist/commands/narrative/index.js +17 -0
  28. package/dist/commands/narrative/inspect.d.ts +3 -0
  29. package/dist/commands/narrative/inspect.d.ts.map +1 -0
  30. package/dist/commands/narrative/inspect.js +109 -0
  31. package/dist/commands/narrative/list.d.ts +3 -0
  32. package/dist/commands/narrative/list.d.ts.map +1 -0
  33. package/dist/commands/narrative/list.js +101 -0
  34. package/dist/commands/narrative/render.d.ts +3 -0
  35. package/dist/commands/narrative/render.d.ts.map +1 -0
  36. package/dist/commands/narrative/render.js +99 -0
  37. package/dist/commands/narrative/test.d.ts +3 -0
  38. package/dist/commands/narrative/test.d.ts.map +1 -0
  39. package/dist/commands/narrative/test.js +150 -0
  40. package/dist/commands/narrative/utils.d.ts +49 -0
  41. package/dist/commands/narrative/utils.d.ts.map +1 -0
  42. package/dist/commands/narrative/utils.js +164 -0
  43. package/dist/commands/narrative/validate.d.ts +3 -0
  44. package/dist/commands/narrative/validate.d.ts.map +1 -0
  45. package/dist/commands/narrative/validate.js +149 -0
  46. package/dist/commands/schema.d.ts +6 -0
  47. package/dist/commands/schema.d.ts.map +1 -0
  48. package/dist/commands/schema.js +336 -0
  49. package/dist/commands/validate-execution.d.ts +11 -0
  50. package/dist/commands/validate-execution.d.ts.map +1 -0
  51. package/dist/commands/validate-execution.js +223 -0
  52. package/dist/commands/validate.d.ts +6 -0
  53. package/dist/commands/validate.d.ts.map +1 -0
  54. package/dist/commands/validate.js +1065 -0
  55. package/dist/index.d.ts +8 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +45 -0
  58. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Principal View CLI - Main entry point
3
+ *
4
+ * This CLI provides tools to validate and manage .canvas configuration files
5
+ * for the Principal View Framework.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
package/dist/index.js ADDED
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Principal View CLI - Main entry point
3
+ *
4
+ * This CLI provides tools to validate and manage .canvas configuration files
5
+ * for the Principal View Framework.
6
+ */
7
+ import { Command } from 'commander';
8
+ import { createValidateCommand } from './commands/validate.js';
9
+ import { createValidateExecutionCommand } from './commands/validate-execution.js';
10
+ import { createInitCommand } from './commands/init.js';
11
+ import { createListCommand } from './commands/list.js';
12
+ import { createSchemaCommand } from './commands/schema.js';
13
+ import { createFormatsCommand } from './commands/formats.js';
14
+ import { createDoctorCommand } from './commands/doctor.js';
15
+ import { createHooksCommand } from './commands/hooks.js';
16
+ import { createCreateCommand } from './commands/create.js';
17
+ import { createLintCommand } from './commands/lint.js';
18
+ import { createCoverageCommand } from './commands/coverage.js';
19
+ import { createNarrativeCommand } from './commands/narrative/index.js';
20
+ // Version is injected at build time via package.json
21
+ const VERSION = '0.2.3';
22
+ const program = new Command();
23
+ program
24
+ .name('privu')
25
+ .description('Principal View CLI - Validate and manage .canvas configuration files')
26
+ .version(VERSION);
27
+ // Add commands
28
+ program.addCommand(createInitCommand());
29
+ program.addCommand(createCreateCommand());
30
+ program.addCommand(createValidateCommand());
31
+ program.addCommand(createValidateExecutionCommand());
32
+ program.addCommand(createLintCommand());
33
+ program.addCommand(createListCommand());
34
+ program.addCommand(createSchemaCommand());
35
+ program.addCommand(createFormatsCommand());
36
+ program.addCommand(createDoctorCommand());
37
+ program.addCommand(createHooksCommand());
38
+ program.addCommand(createCoverageCommand());
39
+ program.addCommand(createNarrativeCommand());
40
+ // Parse command line arguments
41
+ program.parse(process.argv);
42
+ // Show help if no command provided
43
+ if (!process.argv.slice(2).length) {
44
+ program.outputHelp();
45
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/principal-view-cli",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Principal View CLI - Validate and manage .canvas configuration files",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "js-yaml": "4.1.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@principal-ai/principal-view-core": "^0.10.1",
43
+ "@principal-ai/principal-view-core": "^0.10.2",
44
44
  "@types/js-yaml": "4.0.9",
45
45
  "@types/node": "22.10.1",
46
46
  "esbuild": "0.24.0",