@principal-ai/principal-view-cli 0.1.31 → 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 .
|
|
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
|
|
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 .
|
|
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 (.
|
|
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
|
|
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
|