@principal-ai/principal-view-cli 0.1.13

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.
@@ -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,37 @@
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 { createInitCommand } from './commands/init.js';
10
+ import { createListCommand } from './commands/list.js';
11
+ import { createSchemaCommand } from './commands/schema.js';
12
+ import { createDoctorCommand } from './commands/doctor.js';
13
+ import { createHooksCommand } from './commands/hooks.js';
14
+ import { createCreateCommand } from './commands/create.js';
15
+ import { createLintCommand } from './commands/lint.js';
16
+ // Version is injected at build time via package.json
17
+ const VERSION = '0.1.13';
18
+ const program = new Command();
19
+ program
20
+ .name('privu')
21
+ .description('Principal View CLI - Validate and manage .canvas configuration files')
22
+ .version(VERSION);
23
+ // Add commands
24
+ program.addCommand(createInitCommand());
25
+ program.addCommand(createCreateCommand());
26
+ program.addCommand(createValidateCommand());
27
+ program.addCommand(createLintCommand());
28
+ program.addCommand(createListCommand());
29
+ program.addCommand(createSchemaCommand());
30
+ program.addCommand(createDoctorCommand());
31
+ program.addCommand(createHooksCommand());
32
+ // Parse command line arguments
33
+ program.parse(process.argv);
34
+ // Show help if no command provided
35
+ if (!process.argv.slice(2).length) {
36
+ program.outputHelp();
37
+ }
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@principal-ai/principal-view-cli",
3
+ "version": "0.1.13",
4
+ "description": "Principal View CLI - Validate and manage .canvas configuration files",
5
+ "main": "dist/index.cjs",
6
+ "types": "dist/index.d.ts",
7
+ "bin": {
8
+ "privu": "dist/index.cjs",
9
+ "principal-view": "dist/index.cjs"
10
+ },
11
+ "type": "module",
12
+ "scripts": {
13
+ "build": "bun run clean && bun run build:lib && bun run build:cli",
14
+ "build:lib": "tsc -p tsconfig.build.json",
15
+ "build:cli": "bun build/build-cli.ts",
16
+ "clean": "rm -rf dist",
17
+ "dev": "tsx src/index.ts",
18
+ "test": "bun test",
19
+ "typecheck": "tsc --noEmit"
20
+ },
21
+ "keywords": [
22
+ "principal-view",
23
+ "cli",
24
+ "canvas",
25
+ "graph",
26
+ "validation",
27
+ "principal-ai"
28
+ ],
29
+ "author": "Principal AI Team",
30
+ "license": "MIT",
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "dependencies": {
35
+ "chalk": "^5.6.2",
36
+ "commander": "^14.0.2",
37
+ "globby": "^16.0.0",
38
+ "js-yaml": "^4.1.1"
39
+ },
40
+ "devDependencies": {
41
+ "@principal-ai/principal-view-core": "workspace:*",
42
+ "@types/js-yaml": "^4.0.9",
43
+ "@types/node": "^22.10.1",
44
+ "esbuild": "^0.24.0",
45
+ "tsx": "^4.19.2",
46
+ "typescript": "^5.7.2"
47
+ },
48
+ "files": [
49
+ "dist",
50
+ "README.md",
51
+ "LICENSE"
52
+ ],
53
+ "publishConfig": {
54
+ "access": "public",
55
+ "registry": "https://registry.npmjs.org/"
56
+ }
57
+ }