@principal-ai/principal-view-cli 0.1.13 → 0.1.14

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ The CLI provides two command aliases: `vv` (primary) and `visual-validation`.
16
16
 
17
17
  #### `init` - Initialize Project Structure
18
18
 
19
- Set up a new `.vgc` folder with template files:
19
+ Set up a new `.principal-views` folder with template files:
20
20
 
21
21
  ```bash
22
22
  vv init
@@ -29,7 +29,7 @@ vv init --force # Overwrite existing files
29
29
  Strict validation of `.canvas` configuration files:
30
30
 
31
31
  ```bash
32
- vv validate # Validates all .vgc/*.canvas files
32
+ vv validate # Validates all .principal-views/*.canvas files
33
33
  vv validate path/to/file.canvas
34
34
  vv validate "**/*.canvas" # Glob pattern
35
35
  vv validate --quiet # Only output errors
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/commands/lint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiQpC,wBAAgB,iBAAiB,IAAI,OAAO,CA2K3C"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/commands/lint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8PpC,wBAAgB,iBAAiB,IAAI,OAAO,CA2K3C"}
@@ -15,15 +15,12 @@ import { createDefaultRulesEngine, validatePrivuConfig, mergeConfigs, getDefault
15
15
  * Config file names in resolution order
16
16
  */
17
17
  const CONFIG_FILE_NAMES = [
18
- '.principal-viewsrc.json',
19
- '.principal-viewsrc.yaml',
20
- '.principal-viewsrc.yml',
21
- 'privu.config.json',
22
- 'privu.config.yaml',
23
- 'privu.config.yml',
18
+ '.privurc.yaml',
19
+ '.privurc.yml',
20
+ '.privurc.json',
24
21
  ];
25
22
  /**
26
- * Find and load VGC config file
23
+ * Find and load privurc config file
27
24
  */
28
25
  function findConfig(startDir) {
29
26
  let currentDir = resolve(startDir);
@@ -227,7 +224,7 @@ export function createLintCommand() {
227
224
  .action(async (files, options) => {
228
225
  try {
229
226
  const cwd = process.cwd();
230
- // Load VGC config
227
+ // Load privurc config
231
228
  let privuConfig = getDefaultConfig();
232
229
  let configPath;
233
230
  if (options.config) {
@@ -290,7 +287,7 @@ export function createLintCommand() {
290
287
  // Filter out library files and config files
291
288
  const configFiles = matchedFiles.filter((f) => {
292
289
  const name = basename(f).toLowerCase();
293
- return !name.startsWith('library.') && !name.startsWith('.principal-viewsrc') && !name.startsWith('privu.config');
290
+ return !name.startsWith('library.') && !name.startsWith('.privurc');
294
291
  });
295
292
  if (configFiles.length === 0) {
296
293
  if (options.json) {
package/dist/index.cjs CHANGED
@@ -14915,19 +14915,19 @@ var ConfigurationLoader = class _ConfigurationLoader {
14915
14915
  this.fsAdapter = fsAdapter;
14916
14916
  }
14917
14917
  /**
14918
- * Check if the .vgc/ configuration directory exists
14918
+ * Check if the .principal-views/ configuration directory exists
14919
14919
  *
14920
14920
  * @param baseDir - Base directory to search from
14921
- * @returns True if .vgc/ directory exists
14921
+ * @returns True if .principal-views/ directory exists
14922
14922
  */
14923
14923
  hasConfigDirectory(baseDir) {
14924
14924
  const configPath = this.fsAdapter.join(baseDir, _ConfigurationLoader.CONFIG_DIR);
14925
14925
  return this.fsAdapter.exists(configPath) && this.fsAdapter.isDirectory(configPath);
14926
14926
  }
14927
14927
  /**
14928
- * List all available configuration names in .vgc/ folder
14928
+ * List all available configuration names in .principal-views/ folder
14929
14929
  *
14930
- * @param baseDir - Base directory containing .vgc/ folder
14930
+ * @param baseDir - Base directory containing .principal-views/ folder
14931
14931
  * @returns Array of configuration names (without extensions)
14932
14932
  */
14933
14933
  listConfigurations(baseDir) {
@@ -14942,7 +14942,7 @@ var ConfigurationLoader = class _ConfigurationLoader {
14942
14942
  * Load a specific configuration by name
14943
14943
  *
14944
14944
  * @param name - Configuration name (without extension)
14945
- * @param baseDir - Base directory containing .vgc/ folder
14945
+ * @param baseDir - Base directory containing .principal-views/ folder
14946
14946
  * @returns Configuration file or null if not found/invalid
14947
14947
  */
14948
14948
  loadByName(name, baseDir) {
@@ -14972,9 +14972,9 @@ var ConfigurationLoader = class _ConfigurationLoader {
14972
14972
  return null;
14973
14973
  }
14974
14974
  /**
14975
- * Load all configurations from .vgc/ folder
14975
+ * Load all configurations from .principal-views/ folder
14976
14976
  *
14977
- * @param baseDir - Base directory containing .vgc/ folder
14977
+ * @param baseDir - Base directory containing .principal-views/ folder
14978
14978
  * @returns Result containing all loaded configs and any errors
14979
14979
  */
14980
14980
  loadAll(baseDir) {
@@ -14984,8 +14984,8 @@ var ConfigurationLoader = class _ConfigurationLoader {
14984
14984
  };
14985
14985
  if (!this.hasConfigDirectory(baseDir)) {
14986
14986
  result.errors.push({
14987
- file: ".vgc",
14988
- error: "Configuration directory .vgc/ not found"
14987
+ file: ".principal-views",
14988
+ error: "Configuration directory .principal-views/ not found"
14989
14989
  });
14990
14990
  return result;
14991
14991
  }
@@ -15027,13 +15027,13 @@ var ConfigurationLoader = class _ConfigurationLoader {
15027
15027
  * Get the configuration directory path
15028
15028
  *
15029
15029
  * @param baseDir - Base directory
15030
- * @returns Full path to .vgc/ directory
15030
+ * @returns Full path to .principal-views/ directory
15031
15031
  */
15032
15032
  getConfigDirectoryPath(baseDir) {
15033
15033
  return this.fsAdapter.join(baseDir, _ConfigurationLoader.CONFIG_DIR);
15034
15034
  }
15035
15035
  };
15036
- ConfigurationLoader.CONFIG_DIR = ".vgc";
15036
+ ConfigurationLoader.CONFIG_DIR = ".principal-views";
15037
15037
 
15038
15038
  // ../core/dist/rules/types.js
15039
15039
  function normalizeSeverity(severity) {
@@ -15270,7 +15270,7 @@ function createRulesEngine(rules) {
15270
15270
  }
15271
15271
 
15272
15272
  // ../core/dist/rules/config.js
15273
- var DEFAULT_INCLUDE_PATTERNS = [".vgc/**/*.yaml", ".vgc/**/*.yml", ".vgc/**/*.json"];
15273
+ var DEFAULT_INCLUDE_PATTERNS = [".principal-views/**/*.yaml", ".principal-views/**/*.yml", ".principal-views/**/*.json"];
15274
15274
  var DEFAULT_EXCLUDE_PATTERNS = ["**/node_modules/**", "**/*.test.*"];
15275
15275
  var VALID_SEVERITIES = [
15276
15276
  "off",
@@ -16924,12 +16924,9 @@ function createDefaultRulesEngine() {
16924
16924
 
16925
16925
  // src/commands/lint.ts
16926
16926
  var CONFIG_FILE_NAMES2 = [
16927
- ".principal-viewsrc.json",
16928
- ".principal-viewsrc.yaml",
16929
- ".principal-viewsrc.yml",
16930
- "privu.config.json",
16931
- "privu.config.yaml",
16932
- "privu.config.yml"
16927
+ ".privurc.yaml",
16928
+ ".privurc.yml",
16929
+ ".privurc.json"
16933
16930
  ];
16934
16931
  function findConfig(startDir) {
16935
16932
  let currentDir = (0, import_node_path11.resolve)(startDir);
@@ -17142,7 +17139,7 @@ function createLintCommand() {
17142
17139
  });
17143
17140
  const configFiles = matchedFiles.filter((f) => {
17144
17141
  const name = (0, import_node_path11.basename)(f).toLowerCase();
17145
- return !name.startsWith("library.") && !name.startsWith(".principal-viewsrc") && !name.startsWith("privu.config");
17142
+ return !name.startsWith("library.") && !name.startsWith(".privurc");
17146
17143
  });
17147
17144
  if (configFiles.length === 0) {
17148
17145
  if (options.json) {