@voxgig/sdkgen 4.25.0 → 4.26.0
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/bin/voxgig-sdkgen
CHANGED
package/package.json
CHANGED
|
@@ -50,6 +50,13 @@ async function runLiveScenarios(SDK, plan, envPrefix, liveDefaults = {}) {
|
|
|
50
50
|
excluded: control.skip ? control.reason || 'Excluded by test control' : hint.excluded,
|
|
51
51
|
run: async (ctx) => {
|
|
52
52
|
transport.enter(ctx);
|
|
53
|
+
// Every operation point is planned, not only the hinted ones; a hint
|
|
54
|
+
// only decides whether this file is generated. Absent a recipe there
|
|
55
|
+
// is no consent to call the operation, so block rather than
|
|
56
|
+
// synthesize input for it. Blocked fails assertLiveReport, so an
|
|
57
|
+
// omission surfaces instead of passing quietly.
|
|
58
|
+
if (!point.facts.live)
|
|
59
|
+
throw new LiveBlocked('No live recipe: add a live hint for this operation in the guide, or give it an explicit excluded reason');
|
|
53
60
|
if (point.contractVersion && point.contractVersion !== 1)
|
|
54
61
|
throw new live_runner_1.LiveBlocked('Unsupported operation contract version');
|
|
55
62
|
if (point.op === 'remove' || hint.cleanup) {
|
|
@@ -41,6 +41,12 @@ export async function runLiveScenarios(SDK: any, plan: any[], envPrefix: string,
|
|
|
41
41
|
excluded: control.skip ? control.reason || 'Excluded by test control' : hint.excluded,
|
|
42
42
|
run: async (ctx: any) => {
|
|
43
43
|
transport.enter(ctx)
|
|
44
|
+
// Every operation point is planned, not only the hinted ones; a hint
|
|
45
|
+
// only decides whether this file is generated. Absent a recipe there
|
|
46
|
+
// is no consent to call the operation, so block rather than
|
|
47
|
+
// synthesize input for it. Blocked fails assertLiveReport, so an
|
|
48
|
+
// omission surfaces instead of passing quietly.
|
|
49
|
+
if (!point.facts.live) throw new LiveBlocked('No live recipe: add a live hint for this operation in the guide, or give it an explicit excluded reason')
|
|
44
50
|
if (point.contractVersion && point.contractVersion !== 1) throw new LiveBlocked('Unsupported operation contract version')
|
|
45
51
|
if (point.op === 'remove' || hint.cleanup) {
|
|
46
52
|
const owned = recipeNeeds(hint.input).some(id => plan.some(source =>
|