@principal-ai/principal-view-cli 0.4.1 → 0.4.2
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/formats.d.ts.map +1 -1
- package/dist/commands/formats.js +15 -23
- package/dist/index.cjs +15 -23
- package/dist/index.cjs.map +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/commands/formats.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/commands/formats.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAufpC,wBAAgB,oBAAoB,IAAI,OAAO,CA6B9C"}
|
package/dist/commands/formats.js
CHANGED
|
@@ -130,11 +130,10 @@ ${chalk.dim('│')} {
|
|
|
130
130
|
${chalk.dim('│')} ${chalk.yellow('"priority"')}: 1, ${chalk.dim('// Lower = higher priority')} ${chalk.dim('│')}
|
|
131
131
|
${chalk.dim('│')} ${chalk.yellow('"condition"')}: "...", ${chalk.dim('// JSONPath/logic expression')} ${chalk.dim('│')}
|
|
132
132
|
${chalk.dim('│')} ${chalk.yellow('"template"')}: { ${chalk.dim('// Narrative template')} ${chalk.dim('│')}
|
|
133
|
-
${chalk.dim('│')} ${chalk.cyan('"summary"')}: "
|
|
134
|
-
${chalk.dim('│')} ${chalk.cyan('"
|
|
135
|
-
${chalk.dim('│')} "
|
|
136
|
-
${chalk.dim('│')}
|
|
137
|
-
${chalk.dim('│')} ] ${chalk.dim('│')}
|
|
133
|
+
${chalk.dim('│')} ${chalk.cyan('"summary"')}: "Completed {{count}} items", ${chalk.dim('// Handlebars template')} ${chalk.dim('│')}
|
|
134
|
+
${chalk.dim('│')} ${chalk.cyan('"events"')}: { ${chalk.dim('// Per-event templates')} ${chalk.dim('│')}
|
|
135
|
+
${chalk.dim('│')} "event.name": "Event {{attribute}} occurred" ${chalk.dim('│')}
|
|
136
|
+
${chalk.dim('│')} } ${chalk.dim('│')}
|
|
138
137
|
${chalk.dim('│')} } ${chalk.dim('│')}
|
|
139
138
|
${chalk.dim('│')} } ${chalk.dim('│')}
|
|
140
139
|
${chalk.dim('│')} ] ${chalk.dim('│')}
|
|
@@ -405,36 +404,29 @@ ${chalk.yellow('.principal-views/data-validator.narrative.json')}
|
|
|
405
404
|
"priority": 1,
|
|
406
405
|
"condition": "events[?name=='validation.complete']",
|
|
407
406
|
"template": {
|
|
408
|
-
"summary": "
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
|
|
413
|
-
"❌ {{result.invalidCount}} invalid"
|
|
414
|
-
]
|
|
407
|
+
"summary": "Validated {{result.validCount}} records successfully",
|
|
408
|
+
"events": {
|
|
409
|
+
"validation.started": "Started validation of {{input.recordCount}} records",
|
|
410
|
+
"validation.complete": "Processed {{result.validCount}} valid and {{result.invalidCount}} invalid records"
|
|
411
|
+
}
|
|
415
412
|
}
|
|
416
413
|
},
|
|
417
414
|
{
|
|
418
415
|
"priority": 2,
|
|
419
416
|
"condition": "events[?name=='validation.error']",
|
|
420
417
|
"template": {
|
|
421
|
-
"summary": "
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
|
|
426
|
-
]
|
|
418
|
+
"summary": "Validation failed: {{error.message}}",
|
|
419
|
+
"events": {
|
|
420
|
+
"validation.started": "Started validation",
|
|
421
|
+
"validation.error": "Error occurred: {{error.message}} (type: {{error.type}})"
|
|
422
|
+
}
|
|
427
423
|
}
|
|
428
424
|
},
|
|
429
425
|
{
|
|
430
426
|
"priority": 999,
|
|
431
427
|
"condition": "true",
|
|
432
428
|
"template": {
|
|
433
|
-
"summary": "
|
|
434
|
-
"details": [
|
|
435
|
-
"📦 Captured {{spans.length}} events",
|
|
436
|
-
"⏱️ Duration: {{duration.ms}}ms"
|
|
437
|
-
]
|
|
429
|
+
"summary": "Validation execution captured ({{spans.length}} events, {{duration.ms}}ms)"
|
|
438
430
|
}
|
|
439
431
|
}
|
|
440
432
|
]
|
package/dist/index.cjs
CHANGED
|
@@ -247721,11 +247721,10 @@ ${source_default.dim("\u2502")} {
|
|
|
247721
247721
|
${source_default.dim("\u2502")} ${source_default.yellow('"priority"')}: 1, ${source_default.dim("// Lower = higher priority")} ${source_default.dim("\u2502")}
|
|
247722
247722
|
${source_default.dim("\u2502")} ${source_default.yellow('"condition"')}: "...", ${source_default.dim("// JSONPath/logic expression")} ${source_default.dim("\u2502")}
|
|
247723
247723
|
${source_default.dim("\u2502")} ${source_default.yellow('"template"')}: { ${source_default.dim("// Narrative template")} ${source_default.dim("\u2502")}
|
|
247724
|
-
${source_default.dim("\u2502")} ${source_default.cyan('"summary"')}: "
|
|
247725
|
-
${source_default.dim("\u2502")} ${source_default.cyan('"
|
|
247726
|
-
${source_default.dim("\u2502")} "
|
|
247727
|
-
${source_default.dim("\u2502")}
|
|
247728
|
-
${source_default.dim("\u2502")} ] ${source_default.dim("\u2502")}
|
|
247724
|
+
${source_default.dim("\u2502")} ${source_default.cyan('"summary"')}: "Completed {{count}} items", ${source_default.dim("// Handlebars template")} ${source_default.dim("\u2502")}
|
|
247725
|
+
${source_default.dim("\u2502")} ${source_default.cyan('"events"')}: { ${source_default.dim("// Per-event templates")} ${source_default.dim("\u2502")}
|
|
247726
|
+
${source_default.dim("\u2502")} "event.name": "Event {{attribute}} occurred" ${source_default.dim("\u2502")}
|
|
247727
|
+
${source_default.dim("\u2502")} } ${source_default.dim("\u2502")}
|
|
247729
247728
|
${source_default.dim("\u2502")} } ${source_default.dim("\u2502")}
|
|
247730
247729
|
${source_default.dim("\u2502")} } ${source_default.dim("\u2502")}
|
|
247731
247730
|
${source_default.dim("\u2502")} ] ${source_default.dim("\u2502")}
|
|
@@ -247996,36 +247995,29 @@ ${source_default.yellow(".principal-views/data-validator.narrative.json")}
|
|
|
247996
247995
|
"priority": 1,
|
|
247997
247996
|
"condition": "events[?name=='validation.complete']",
|
|
247998
247997
|
"template": {
|
|
247999
|
-
"summary": "
|
|
248000
|
-
"
|
|
248001
|
-
"
|
|
248002
|
-
"
|
|
248003
|
-
|
|
248004
|
-
"\u274C {{result.invalidCount}} invalid"
|
|
248005
|
-
]
|
|
247998
|
+
"summary": "Validated {{result.validCount}} records successfully",
|
|
247999
|
+
"events": {
|
|
248000
|
+
"validation.started": "Started validation of {{input.recordCount}} records",
|
|
248001
|
+
"validation.complete": "Processed {{result.validCount}} valid and {{result.invalidCount}} invalid records"
|
|
248002
|
+
}
|
|
248006
248003
|
}
|
|
248007
248004
|
},
|
|
248008
248005
|
{
|
|
248009
248006
|
"priority": 2,
|
|
248010
248007
|
"condition": "events[?name=='validation.error']",
|
|
248011
248008
|
"template": {
|
|
248012
|
-
"summary": "
|
|
248013
|
-
"
|
|
248014
|
-
"
|
|
248015
|
-
"
|
|
248016
|
-
|
|
248017
|
-
]
|
|
248009
|
+
"summary": "Validation failed: {{error.message}}",
|
|
248010
|
+
"events": {
|
|
248011
|
+
"validation.started": "Started validation",
|
|
248012
|
+
"validation.error": "Error occurred: {{error.message}} (type: {{error.type}})"
|
|
248013
|
+
}
|
|
248018
248014
|
}
|
|
248019
248015
|
},
|
|
248020
248016
|
{
|
|
248021
248017
|
"priority": 999,
|
|
248022
248018
|
"condition": "true",
|
|
248023
248019
|
"template": {
|
|
248024
|
-
"summary": "
|
|
248025
|
-
"details": [
|
|
248026
|
-
"\u{1F4E6} Captured {{spans.length}} events",
|
|
248027
|
-
"\u23F1\uFE0F Duration: {{duration.ms}}ms"
|
|
248028
|
-
]
|
|
248020
|
+
"summary": "Validation execution captured ({{spans.length}} events, {{duration.ms}}ms)"
|
|
248029
248021
|
}
|
|
248030
248022
|
}
|
|
248031
248023
|
]
|