@principal-ai/principal-view-cli 0.1.34 → 0.2.1
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/dist/commands/narrative/render.js +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export function createRenderCommand() {
|
|
|
8
8
|
.description('Render narrative template using execution data')
|
|
9
9
|
.argument('<narrative>', 'Path to .narrative.json file')
|
|
10
10
|
.argument('<execution>', 'Path to .otel.json execution file')
|
|
11
|
-
.option('--mode <mode>', 'Override rendering mode: span-tree, timeline
|
|
11
|
+
.option('--mode <mode>', 'Override rendering mode: span-tree, timeline')
|
|
12
12
|
.option('--scenario <id>', 'Force specific scenario (skip auto-selection)')
|
|
13
13
|
.option('--json', 'Output structured result as JSON')
|
|
14
14
|
.option('--format <format>', 'Output format: text (default), markdown, json', 'text')
|
|
@@ -20,7 +20,7 @@ export function createRenderCommand() {
|
|
|
20
20
|
const events = executionToEvents(executionData);
|
|
21
21
|
// Override mode if specified
|
|
22
22
|
if (options.mode) {
|
|
23
|
-
const validModes = ['span-tree', 'timeline'
|
|
23
|
+
const validModes = ['span-tree', 'timeline'];
|
|
24
24
|
if (!validModes.includes(options.mode)) {
|
|
25
25
|
throw new Error(`Invalid mode: ${options.mode}. Must be one of: ${validModes.join(', ')}`);
|
|
26
26
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -242493,13 +242493,13 @@ ${capitalize(prefix)}:`));
|
|
|
242493
242493
|
// src/commands/narrative/render.ts
|
|
242494
242494
|
function createRenderCommand() {
|
|
242495
242495
|
const command = new Command("render");
|
|
242496
|
-
command.description("Render narrative template using execution data").argument("<narrative>", "Path to .narrative.json file").argument("<execution>", "Path to .otel.json execution file").option("--mode <mode>", "Override rendering mode: span-tree, timeline
|
|
242496
|
+
command.description("Render narrative template using execution data").argument("<narrative>", "Path to .narrative.json file").argument("<execution>", "Path to .otel.json execution file").option("--mode <mode>", "Override rendering mode: span-tree, timeline").option("--scenario <id>", "Force specific scenario (skip auto-selection)").option("--json", "Output structured result as JSON").option("--format <format>", "Output format: text (default), markdown, json", "text").option("--show-metadata", "Include rendering metadata in output").action(async (narrativePath, executionPath, options) => {
|
|
242497
242497
|
try {
|
|
242498
242498
|
const narrative = await loadNarrative(resolvePath(narrativePath));
|
|
242499
242499
|
const executionData = await loadExecution(resolvePath(executionPath));
|
|
242500
242500
|
const events = executionToEvents(executionData);
|
|
242501
242501
|
if (options.mode) {
|
|
242502
|
-
const validModes = ["span-tree", "timeline"
|
|
242502
|
+
const validModes = ["span-tree", "timeline"];
|
|
242503
242503
|
if (!validModes.includes(options.mode)) {
|
|
242504
242504
|
throw new Error(
|
|
242505
242505
|
`Invalid mode: ${options.mode}. Must be one of: ${validModes.join(", ")}`
|
|
@@ -242886,7 +242886,7 @@ function createNarrativeCommand() {
|
|
|
242886
242886
|
}
|
|
242887
242887
|
|
|
242888
242888
|
// src/index.ts
|
|
242889
|
-
var VERSION2 = "0.1
|
|
242889
|
+
var VERSION2 = "0.2.1";
|
|
242890
242890
|
var program2 = new Command();
|
|
242891
242891
|
program2.name("privu").description("Principal View CLI - Validate and manage .canvas configuration files").version(VERSION2);
|
|
242892
242892
|
program2.addCommand(createInitCommand());
|