@adcp/sdk 13.0.2 → 13.0.4
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/adcp.js +37 -2
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/decisioning/capabilities.d.mts +5 -5
- package/dist/lib/server/decisioning/capabilities.d.ts +5 -5
- package/dist/lib/server/decisioning/capabilities.js.map +1 -1
- package/dist/lib/server/decisioning/capabilities.mjs.map +1 -1
- package/dist/lib/testing/client.d.ts.map +1 -1
- package/dist/lib/testing/client.js +6 -2
- package/dist/lib/testing/client.js.map +1 -1
- package/dist/lib/testing/client.mjs +6 -2
- package/dist/lib/testing/client.mjs.map +1 -1
- package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
- package/dist/lib/testing/compliance/comply.js +27 -18
- package/dist/lib/testing/compliance/comply.js.map +1 -1
- package/dist/lib/testing/compliance/comply.mjs +25 -17
- package/dist/lib/testing/compliance/comply.mjs.map +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +18 -4
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.mjs +18 -4
- package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
- package/dist/lib/testing/storyboard/types.d.mts +83 -29
- package/dist/lib/testing/storyboard/types.d.ts +83 -29
- package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/types.js.map +1 -1
- package/dist/lib/testing/storyboard/types.mjs.map +1 -1
- package/dist/lib/testing/storyboard/validations.d.mts +3 -1
- package/dist/lib/testing/storyboard/validations.d.ts +3 -1
- package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/validations.js +83 -23
- package/dist/lib/testing/storyboard/validations.js.map +1 -1
- package/dist/lib/testing/storyboard/validations.mjs +83 -24
- package/dist/lib/testing/storyboard/validations.mjs.map +1 -1
- package/dist/lib/testing/types.d.mts +11 -0
- package/dist/lib/testing/types.d.ts +11 -0
- package/dist/lib/testing/types.d.ts.map +1 -1
- package/dist/lib/testing/types.js.map +1 -1
- package/dist/lib/validation/schema-loader.d.ts.map +1 -1
- package/dist/lib/validation/schema-loader.js +9 -0
- package/dist/lib/validation/schema-loader.js.map +1 -1
- package/dist/lib/validation/schema-loader.mjs +8 -0
- package/dist/lib/validation/schema-loader.mjs.map +1 -1
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.js.map +1 -1
- package/dist/lib/version.mjs +3 -3
- package/dist/lib/version.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -557,6 +557,26 @@ function expandScenarios(storyboards, resolveOptions = {}) {
|
|
|
557
557
|
}
|
|
558
558
|
return expanded;
|
|
559
559
|
}
|
|
560
|
+
function partitionStoryboardsByRequiredTools(storyboards, discoveredTools) {
|
|
561
|
+
const discoveredToolNames = new Set(discoveredTools);
|
|
562
|
+
const runnable = [];
|
|
563
|
+
const missing = [];
|
|
564
|
+
for (const sb of storyboards) {
|
|
565
|
+
const required = sb.required_tools ?? [];
|
|
566
|
+
const hasApplicableTool = required.length === 0 || required.some((tool) => discoveredToolNames.has(tool));
|
|
567
|
+
if (!hasApplicableTool) {
|
|
568
|
+
missing.push({
|
|
569
|
+
storyboard_id: sb.id,
|
|
570
|
+
storyboard_title: sb.title,
|
|
571
|
+
track: sb.track,
|
|
572
|
+
reason: `missing required_tools: ${required.join(", ")}`
|
|
573
|
+
});
|
|
574
|
+
} else {
|
|
575
|
+
runnable.push(sb);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return { runnable, missing };
|
|
579
|
+
}
|
|
560
580
|
function groupByTrack(results, storyboards, notApplicable = []) {
|
|
561
581
|
const trackLookup = /* @__PURE__ */ new Map();
|
|
562
582
|
for (const sb of storyboards) {
|
|
@@ -857,22 +877,9 @@ async function complyImpl(agentUrl, options) {
|
|
|
857
877
|
if (explicitStoryboards?.length) {
|
|
858
878
|
runnableStoryboards = applicableStoryboards;
|
|
859
879
|
} else {
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
const missing = (sb.required_tools ?? []).filter((t) => !discoveredToolNames.has(t));
|
|
864
|
-
if (missing.length > 0) {
|
|
865
|
-
missingToolStoryboards.push({
|
|
866
|
-
storyboard_id: sb.id,
|
|
867
|
-
storyboard_title: sb.title,
|
|
868
|
-
track: sb.track,
|
|
869
|
-
reason: `missing required_tools: ${missing.join(", ")}`
|
|
870
|
-
});
|
|
871
|
-
} else {
|
|
872
|
-
filtered.push(sb);
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
runnableStoryboards = filtered;
|
|
880
|
+
const applicability = partitionStoryboardsByRequiredTools(applicableStoryboards, profile.tools);
|
|
881
|
+
runnableStoryboards = applicability.runnable;
|
|
882
|
+
missingToolStoryboards.push(...applicability.missing);
|
|
876
883
|
}
|
|
877
884
|
const storyboardResults = [];
|
|
878
885
|
const executedStoryboards = [];
|
|
@@ -1504,6 +1511,7 @@ export {
|
|
|
1504
1511
|
detectAuthRejection,
|
|
1505
1512
|
extractFailures,
|
|
1506
1513
|
formatComplianceResults,
|
|
1507
|
-
formatComplianceResultsJSON
|
|
1514
|
+
formatComplianceResultsJSON,
|
|
1515
|
+
partitionStoryboardsByRequiredTools
|
|
1508
1516
|
};
|
|
1509
1517
|
//# sourceMappingURL=comply.mjs.map
|