@principal-ai/principal-view-cli 0.1.32 → 0.1.33

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,8 +1,7 @@
1
1
  /**
2
2
  * Validate execution files command
3
3
  *
4
- * Validates .spans.json, .execution.json, .otel.json, and .events.json files
5
- * to ensure they conform to the expected ExecutionData structure.
4
+ * Validates .otel.json files to ensure they conform to the expected ExecutionData structure.
6
5
  */
7
6
  import { Command } from 'commander';
8
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"validate-execution.d.ts","sourceRoot":"","sources":["../../src/commands/validate-execution.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqJpC;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,OAAO,CA8GxD"}
1
+ {"version":3,"file":"validate-execution.d.ts","sourceRoot":"","sources":["../../src/commands/validate-execution.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqJpC;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,OAAO,CAwGxD"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Validate execution files command
3
3
  *
4
- * Validates .spans.json, .execution.json, .otel.json, and .events.json files
5
- * to ensure they conform to the expected ExecutionData structure.
4
+ * Validates .otel.json files to ensure they conform to the expected ExecutionData structure.
6
5
  */
7
6
  import { Command } from 'commander';
8
7
  import { readFileSync } from 'node:fs';
@@ -126,8 +125,8 @@ function formatJsonOutput(results) {
126
125
  export function createValidateExecutionCommand() {
127
126
  const command = new Command('validate-execution');
128
127
  command
129
- .description('Validate execution files (.spans.json, .execution.json, .otel.json, .events.json)')
130
- .argument('[files...]', 'Files or glob patterns to validate (defaults to **/__executions__/**/*.json)')
128
+ .description('Validate execution files (.otel.json)')
129
+ .argument('[files...]', 'Files or glob patterns to validate (defaults to **/__executions__/**/*.otel.json)')
131
130
  .option('--json', 'Output results as JSON')
132
131
  .option('-q, --quiet', 'Only show files with errors or warnings')
133
132
  .action(async (files, options) => {
@@ -140,16 +139,10 @@ export function createValidateExecutionCommand() {
140
139
  patterns = files;
141
140
  }
142
141
  else {
143
- // Default: find all execution files in __executions__ directories
142
+ // Default: find all .otel.json files in __executions__ directories
144
143
  patterns = [
145
- '**/__executions__/*.spans.json',
146
- '**/__executions__/*.execution.json',
147
144
  '**/__executions__/*.otel.json',
148
- '**/__executions__/*.events.json',
149
- '.principal-views/__executions__/*.spans.json',
150
- '.principal-views/__executions__/*.execution.json',
151
145
  '.principal-views/__executions__/*.otel.json',
152
- '.principal-views/__executions__/*.events.json',
153
146
  ];
154
147
  }
155
148
  // Find matching files
package/dist/index.cjs CHANGED
@@ -240345,7 +240345,7 @@ function formatJsonOutput(results) {
240345
240345
  }
240346
240346
  function createValidateExecutionCommand() {
240347
240347
  const command = new Command("validate-execution");
240348
- command.description("Validate execution files (.spans.json, .execution.json, .otel.json, .events.json)").argument("[files...]", "Files or glob patterns to validate (defaults to **/__executions__/**/*.json)").option("--json", "Output results as JSON").option("-q, --quiet", "Only show files with errors or warnings").action(async (files, options) => {
240348
+ command.description("Validate execution files (.otel.json)").argument("[files...]", "Files or glob patterns to validate (defaults to **/__executions__/**/*.otel.json)").option("--json", "Output results as JSON").option("-q, --quiet", "Only show files with errors or warnings").action(async (files, options) => {
240349
240349
  try {
240350
240350
  const cwd = process.cwd();
240351
240351
  const validator = createExecutionValidator();
@@ -240354,14 +240354,8 @@ function createValidateExecutionCommand() {
240354
240354
  patterns = files;
240355
240355
  } else {
240356
240356
  patterns = [
240357
- "**/__executions__/*.spans.json",
240358
- "**/__executions__/*.execution.json",
240359
240357
  "**/__executions__/*.otel.json",
240360
- "**/__executions__/*.events.json",
240361
- ".principal-views/__executions__/*.spans.json",
240362
- ".principal-views/__executions__/*.execution.json",
240363
- ".principal-views/__executions__/*.otel.json",
240364
- ".principal-views/__executions__/*.events.json"
240358
+ ".principal-views/__executions__/*.otel.json"
240365
240359
  ];
240366
240360
  }
240367
240361
  const matchedFiles = await globby(patterns, {
@@ -242881,7 +242875,7 @@ function createNarrativeCommand() {
242881
242875
  }
242882
242876
 
242883
242877
  // src/index.ts
242884
- var VERSION2 = "0.1.32";
242878
+ var VERSION2 = "0.1.33";
242885
242879
  var program2 = new Command();
242886
242880
  program2.name("privu").description("Principal View CLI - Validate and manage .canvas configuration files").version(VERSION2);
242887
242881
  program2.addCommand(createInitCommand());