@wildshard/sdk 0.3.0 → 0.3.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.
Files changed (61) hide show
  1. package/GUIDE.md +10 -2
  2. package/docs/api/EXPORT-TIERS.md +7 -4
  3. package/lint/export-tiers.json +3 -0
  4. package/lint/host-callbacks.mjs +1 -1
  5. package/package.json +9 -5
  6. package/scripts/bake/template-skins.mjs +6 -3
  7. package/scripts/bake/template-warden.mjs +25 -0
  8. package/scripts/export-ci21-guests.mjs +89 -0
  9. package/scripts/scratch-sweep.mjs +3 -1
  10. package/src/cli/hero/hero.ts +45 -2
  11. package/src/sharddev/as/prelude.ts +67 -0
  12. package/src/sharddev/authorLint.ts +45 -0
  13. package/src/sharddev/bake/compileScript.ts +6 -0
  14. package/src/sharddev/bake/terrain.ts +11 -2
  15. package/src/sharddev/checkProject.ts +7 -18
  16. package/src/sharddev/engineMusic.ts +23 -0
  17. package/src/sharddev/materials.ts +7 -3
  18. package/src/sharddev/project.ts +5 -0
  19. package/src/sharddev/refusals.ts +1 -1
  20. package/src/sharddev/scene/author.ts +116 -11
  21. package/src/sharddev/scene/canvas.ts +2 -3
  22. package/src/sharddev/scene/description.ts +55 -2
  23. package/src/sharddev/scene/lower.ts +144 -29
  24. package/src/sharddev/scene/shard.ts +5 -2
  25. package/src/sharddev/scene/shardfile.ts +385 -72
  26. package/src/sharddev/watch/page.ts +116 -29
  27. package/src/sharddev/watch/pageEntry.ts +38 -2
  28. package/src/sharddev/watch/parity-baseline.json +22 -0
  29. package/src/sharddev/watch/parity.mjs +168 -0
  30. package/src/sharddev/watch/proof.mjs +129 -22
  31. package/src/sharddev/watch/protocol.ts +66 -8
  32. package/src/sharddev/watch/watch.ts +215 -51
  33. package/src/shards/_template/assets/3058c100bc477fd6fe8268f33b53756b8a2556e7e41c58b2216c703ca7b042c6 +1 -0
  34. package/src/shards/_template/assets/8a0440f392737a31cf0926a3c7dc011c320144972882945a5462c893e817d94a +0 -0
  35. package/src/shards/_template/behaviour/door.as +16 -26
  36. package/src/shards/_template/card/landscape.jpg +0 -0
  37. package/src/shards/_template/card/portrait.jpg +0 -0
  38. package/src/shards/_template/card/thumb.jpg +0 -0
  39. package/src/shards/_template/data/clientScripts.json +43 -43
  40. package/src/shards/_template/data/creatures.json +2 -2
  41. package/src/shards/_template/data/look.json +141 -13
  42. package/src/shards/_template/data/rows.json +20 -2
  43. package/src/shards/_template/data/skins.json +32 -0
  44. package/src/shards/_template/data/water.json +18 -0
  45. package/src/shards/_template/generators/product.ts +5 -1
  46. package/src/shards/_template/generators/warden.ts +273 -0
  47. package/src/shards/_template/generators/world.ts +52 -21
  48. package/src/shards/_template/hero.json +6 -6
  49. package/src/shards/authoring-slice/generators/shard.ts +9 -1
  50. package/src/shards/authoring-slice/generators/sky.ts +64 -0
  51. package/src/shards/authoring-slice/generators/template-sky.ts +27 -0
  52. package/src/shards/authoring-slice/generators/textures.ts +59 -0
  53. package/src/shards/authoring-slice/generators/world.ts +108 -5
  54. package/src/shards/mossgate/generators/shard.ts +6 -0
  55. package/src/shards/mossgate/generators/sky.ts +64 -0
  56. package/src/shards/mossgate/generators/textures.ts +249 -0
  57. package/src/shards/mossgate/generators/world.ts +998 -0
  58. package/src/shards/mossgate/shard.config.ts +7 -0
  59. package/scripts/shard-output-report.d.mts +0 -9
  60. package/scripts/shard-output-report.mjs +0 -85
  61. package/scripts/shard-platform-cli.mjs +0 -93
@@ -0,0 +1,7 @@
1
+ // SHARD-SOURCE AP15: Mossgate Hollow whole, a shard whose only source is a three.js scene (generators/world.ts).
2
+ import { mossgate } from './generators/shard';
3
+
4
+ /** The scene shard: its generator and its describe() for `wildshard watch`. */
5
+ export const generate: typeof mossgate = mossgate;
6
+ // oxlint-disable-next-line import/no-default-export -- The author CLI executes this project entry.
7
+ export default generate;
@@ -1,9 +0,0 @@
1
- import type {RuntimeClosure} from '@wildshard/engine/scripts/shard-runtime-closure.mjs';
2
- import type {ShardLines,PortHeadline} from '@wildshard/engine/scripts/shard-platform.mjs';
3
- import type {OutputContent} from '@wildshard/engine/scripts/shard-output-content.mjs';
4
- import type {M3Progress,GridReady,planProgress} from './shard-milestones.mjs';
5
- import type {productScriptMetrics} from '@wildshard/engine/scripts/script-scenario-metrics.mjs';
6
- import type {netLineReport,sourceLineDelta} from '@wildshard/engine/scripts/shard-net-lines.mjs';
7
-
8
- export type OutputReportRow=RuntimeClosure&{customPercent:number|null;port:PortHeadline|null;content?:OutputContent;m3:M3Progress|null;gridReady:GridReady;scriptMetrics:ReturnType<typeof productScriptMetrics>;linesRemovedSince12Z:ReturnType<typeof sourceLineDelta>['shards'][string]|null;legacyLines?:number|null;measurementError?:string;productFailure?:string}&Partial<ShardLines>;
9
- export function outputReport(root:string,options?:{build?:boolean;sourceProgress?:boolean;products?:string;revision?:string|null;receipts?:readonly string[];scriptReceipts?:readonly string[];reportOnly?:boolean;buildProduct?:(args:string[])=>Promise<void>}):Promise<{rows:Record<string,OutputReportRow>;measures:Record<string,ShardLines>;inventory:Record<string,ShardLines>;netLines:ReturnType<typeof netLineReport>;dailyLines:ReturnType<typeof sourceLineDelta>;progress:ReturnType<typeof planProgress>;sectionFailures:string[];productFailures:Record<string,string>;measurementError:string|null}>;
@@ -1,85 +0,0 @@
1
- // P4 orchestration is deliberately separate from gen: no build -> gen -> build cycle.
2
- import {resolve} from 'node:path';
3
- import {readFileSync} from 'node:fs';
4
- import * as v from 'valibot';
5
- import {runtimeClosures} from '@wildshard/engine/scripts/shard-runtime-closure.mjs';
6
- import {outputCensus,portHeadline,codeLines,shaderCodeLines} from '@wildshard/engine/scripts/shard-platform.mjs';
7
- import {outputContent} from '@wildshard/engine/scripts/shard-output-content.mjs';
8
- import {customSectionFailures} from '@wildshard/engine/scripts/shard-platform-sections.mjs';
9
- import {createOutputReader} from '@wildshard/engine/scripts/shard-platform-output.mjs';
10
- import {gridReady,m3Progress,planProgress,unknownGridReady,M2_GRID_PLOT_CELLS} from './shard-milestones.mjs';
11
- import {decisionLegacyLines} from '@wildshard/engine/scripts/decision-legacy-lines.mjs';
12
- import {runtimeReceiptPaths} from '@wildshard/engine/scripts/grid-runtime-evidence.mjs';
13
- import {netLineReport,platformLineTotals,sourceLineDelta} from '@wildshard/engine/scripts/shard-net-lines.mjs';
14
- import {productScriptMetrics,scriptReceiptPaths} from '@wildshard/engine/scripts/script-scenario-metrics.mjs';
15
-
16
- const sourceBaseline=v.strictObject({since:v.string(),revision:v.string(),basis:v.literal('source'),customLines:v.record(v.string(),v.pipe(v.number(),v.integer(),v.minValue(0)))});
17
- const baseline=v.array(v.strictObject({wave:v.string(),revision:v.string(),record:v.string(),customLines:v.record(v.string(),v.number()),platformLines:v.record(v.string(),v.number())}));
18
-
19
- /** Caller holds the heavy build lane (or measures the gate's exact HEAD output).
20
- * Each closed shard is copied strictly; an unclosed shard never gets a percent.
21
- * `sourceProgress` keeps the admin's historical source ruler in one unit even
22
- * when some runtimes close. Output closure and canonical output credit do not change.
23
- * `reportOnly` isolates product failures without inventing ownership credit.
24
- * @param {string} root @param {{build?:boolean,sourceProgress?:boolean,products?:string,revision?:string|null,receipts?:readonly string[],scriptReceipts?:readonly string[],reportOnly?:boolean,buildProduct?:(args:string[])=>Promise<void>}} options */
25
- export async function outputReport(root,{build=true,sourceProgress=false,products=resolve(root,'out'),revision=process.env.VERCEL_GIT_COMMIT_SHA??null,receipts=runtimeReceiptPaths(root),scriptReceipts=scriptReceiptPaths(root),reportOnly=false,buildProduct}={}) {
26
- const closure=runtimeClosures(root);
27
- /** @type {Record<string,string>} */
28
- const productFailures={};
29
- /** @param {string} slug @param {unknown} error */
30
- const failed=(slug,error)=>{productFailures[slug]=error instanceof Error?error.message:String(error);};
31
- if(build) {
32
- if(products!==resolve(root,'out'))throw new Error('Build reports publish only to out/');
33
- const {buildShardfiles}=await import('./build-shardfiles.mjs');
34
- // Preparation copies raw-closed runtimes strictly and emits
35
- // unclosed products without copies. All receive actual byte-validation evidence.
36
- await buildShardfiles(root,{strict:false,copyRuntime:'closed',reuse:true,...(reportOnly?{onFailure:failed}:{}),...(buildProduct===undefined?{}:{build:buildProduct})});
37
- }
38
- const sections={},contents={},reader=createOutputReader(root,products);
39
- for(const [slug,state] of Object.entries(closure)) {
40
- if(Object.hasOwn(productFailures,slug))continue;
41
- try {
42
- sections[slug]=reader.sections(slug);
43
- if(state.status==='closed')contents[slug]=outputContent(root,slug,products,reader);
44
- } catch(error) {if(!reportOnly)throw error;failed(slug,error);}
45
- }
46
- const measurementError=Object.keys(productFailures).length===0?null:`Cross-shard ownership unavailable: ${Object.entries(productFailures).map(([slug,error])=>`${slug}: ${error}`).join('; ')}`;
47
- // G294 needs every verified section inventory to count shared users. Partial
48
- // output never supplies zeros, stale users, or a newly granted percentage.
49
- const census=measurementError===null?outputCensus(root,products,reader):{measures:{},inventory:{},source:{}};
50
- const {measures,inventory,source}=census;
51
- // G496: data debt applies even before a shard's runtime closes. Its budget
52
- // findings are report-only here (G514): the ruler always measures.
53
- const dailyLines=sourceLineDelta(source,v.parse(sourceBaseline,JSON.parse(readFileSync(resolve(import.meta.dirname,'shard-line-baseline.json'),'utf8'))));
54
- const rows=Object.fromEntries(Object.entries(closure).map(([slug,state])=>{
55
- const failure=Object.hasOwn(productFailures,slug)?productFailures[slug]:undefined;
56
- if(measurementError!==null) {
57
- const ready=failure===undefined?gridReady(root,slug,products,{revision,receipts,reader}):unknownGridReady(failure);
58
- if(failure!==undefined){ready.verdict='fail';ready.criteria.productBuild={verdict:'fail',evidence:failure};ready.frameFloor={verdict:'unknown',evidence:failure};}
59
- return [slug,{...state,customPercent:null,port:null,m3:null,measurementError,
60
- legacyLines:decisionLegacyLines(root,slug)??null,linesRemovedSince12Z:dailyLines.shards[slug]??null,
61
- gridReady:ready,scriptMetrics:failure===undefined?productScriptMetrics(root,slug,products,scriptReceipts):{status:'unknown',scripts:[],scenarios:[]},
62
- ...(sections[slug]===undefined?{}:{customSections:sections[slug].customSections,customSectionBytes:sections[slug].customSectionBytes}),
63
- ...(contents[slug]===undefined?{}:{content:contents[slug]}),...(failure===undefined?{}:{productFailure:failure})}];
64
- }
65
- const ready=gridReady(root,slug,products,{revision,receipts,reader});
66
- const scriptMetrics=productScriptMetrics(root,slug,products,scriptReceipts);
67
- if(state.status==='unclosed') {
68
- const progress=source[slug];
69
- return [slug,{...state,customPercent:null,port:null,linesRemovedSince12Z:dailyLines.shards[slug]??null,gridReady:ready,scriptMetrics,m3:m3Progress(slug,progress),
70
- customSections:sections[slug].customSections,customSectionBytes:sections[slug].customSectionBytes,
71
- assemblyScriptLines:progress.assemblyScriptLines,assemblyScriptBudget:progress.assemblyScriptBudget,
72
- listedView:inventory[slug]?.listedView}];
73
- }
74
- if(!Object.hasOwn(measures,slug))throw new Error(`${slug}: closed runtime has no output measure`);
75
- const measured=measures[slug];
76
- const content=contents[slug],customPercent=measured.conversion.runtimeShare===null?null:100*measured.conversion.runtimeShare;
77
- return [slug,{...state,...measured,customPercent,content,linesRemovedSince12Z:dailyLines.shards[slug]??null,port:portHeadline(customPercent,content),gridReady:ready,scriptMetrics,
78
- m3:m3Progress(slug,sourceProgress?source[slug]:{basis:'output',customLines:measured.conversion.customRuntimeLines,legacyLines:measured.conversion.legacyLines})}];
79
- }));
80
- const current=Object.fromEntries(Object.entries(rows).flatMap(([slug,row])=>row.m3===null?[]:[[slug,{customLines:row.m3.customLines,basis:row.m3.basis}]]));
81
- const baselines=v.parse(baseline,JSON.parse(readFileSync(resolve(import.meta.dirname,'wave-line-baselines.json'),'utf8')));
82
- const platform=platformLineTotals(root,(text,path)=>path.endsWith('.glsl')?shaderCodeLines(text):codeLines(text,path));
83
- const plots=Object.fromEntries([...new Set(M2_GRID_PLOT_CELLS.map(cell=>cell.slug))].map(slug=>[slug,gridReady(root,slug,products,{revision,receipts})]));
84
- return {rows,measures,inventory,dailyLines,netLines:netLineReport(current,baselines,platform),progress:planProgress(rows,plots),sectionFailures:customSectionFailures(root,sections),productFailures,measurementError};
85
- }
@@ -1,93 +0,0 @@
1
- #!/usr/bin/env node
2
- // P4 command orchestration stays outside the importable census to avoid an async cycle.
3
- import {readFileSync} from 'node:fs';
4
- import {resolve} from 'node:path';
5
- import {pathToFileURL} from 'node:url';
6
- import {checkShares} from '@wildshard/engine/scripts/shard-platform.mjs';
7
- import {outputReport} from './shard-output-report.mjs';
8
- import {componentStates,componentWave,SHARD_WAVES} from '@wildshard/engine/scripts/shard-components.mjs';
9
- import {closedComponentFailures} from '@wildshard/engine/scripts/check-closed-components.mjs';
10
- import {componentSpanReports} from '@wildshard/engine/scripts/shard-component-spans.mjs';
11
-
12
- const ROOT=resolve(import.meta.dirname,'..'),LIST='lint/shard-platform.json';
13
- /** Run after the importable census has finished evaluating, without loading a
14
- * second copy of the complete module graph in another Node process. */
15
- export async function runShardPlatformCli() {
16
- process.env.WS_SHARD_PARSE_CACHE ??= resolve(ROOT,'.cache/shard-parse');
17
- const build = !process.argv.includes('--no-build');
18
- const sourceProgress = process.argv.includes('--source-progress');
19
- if (build && !process.env.WS_HEAVY_TOKEN) {
20
- const {spawnSync} = await import('node:child_process');
21
- const result = spawnSync('python3', ['scripts/heavy-lane.py', 'build', '--', process.execPath, ...process.argv.slice(1)], {cwd:ROOT, stdio:'inherit'});
22
- process.exitCode = result.status ?? 1;
23
- } else {
24
- if (build) {
25
- // The copied product needs the same official cheap inputs as an app build.
26
- const {execFileSync}=await import('node:child_process');
27
- execFileSync(process.execPath,['scripts/gen.mjs','--proof'],{cwd:ROOT,stdio:['inherit',2,2]});
28
- }
29
- const productArg = process.argv.find(value => value.startsWith('--products='));
30
- const products = productArg === undefined ? resolve(ROOT, 'out') : resolve(ROOT, productArg.slice('--products='.length));
31
- const log=console.log,info=console.info;
32
- if(process.argv.includes('--json')){console.log=console.error;console.info=console.error;}
33
- let report;
34
- const receipts=process.argv.filter(value=>value.startsWith('--grid-receipt=')).map(value=>value.slice('--grid-receipt='.length));
35
- const scriptReceipts=process.argv.filter(value=>value.startsWith('--script-receipt=')).map(value=>value.slice('--script-receipt='.length));
36
- try {report=await outputReport(ROOT,{build,sourceProgress,products,reportOnly:!process.argv.includes('--check'),...(receipts.length===0?{}:{receipts}),...(scriptReceipts.length===0?{}:{scriptReceipts})});}
37
- finally {console.log=log;console.info=info;}
38
- const {rows,measures,sectionFailures,progress,netLines,dailyLines}=report;
39
- // Component closure in the labelled source-progress ruler must include
40
- // transitional shards whose standalone output has not closed yet.
41
- const componentMeasures=report.measurementError!==null?{}:sourceProgress?report.inventory:measures;
42
- const policy=JSON.parse(readFileSync(resolve(ROOT,'lint/ratchet.json'),'utf8'));
43
- const lockedShards=Object.keys(policy.closedComponents??{});
44
- // G514: custom-section budgets never stop the ruler; --check keeps them hard.
45
- const failures=process.argv.includes('--check')?[...sectionFailures]:[];
46
- if (failures.length===0) for (const failure of sectionFailures) console.error(`shard-platform: FAIL (report-only) ${failure}`);
47
- if (process.argv.includes('--json')) console.log(JSON.stringify({...rows,_summary:{metric:sourceProgress?'source-progress':'built-output',revision:process.env.VERCEL_GIT_COMMIT_SHA??null,closed:Object.keys(measures).length,total:Object.keys(rows).length,progress,netLines,dailyLines,customSectionFailures:sectionFailures,productFailures:report.productFailures,measurementError:report.measurementError,componentBasis:sourceProgress?'source':'built-output',sourceSpans:componentSpanReports(ROOT,report.inventory,Object.keys(rows),report.measurementError),components:componentStates(componentMeasures,lockedShards),waves:SHARD_WAVES.map(wave=>componentWave(componentMeasures,wave.id))}},null,2));
48
- else {
49
- console.log('shard closure custom / frozen escapes M3 / basis grid-ready private JSON / bytes AS / 10% legacy private bin bytes one-user build lines');
50
- for (const [slug,row] of Object.entries(rows)) {
51
- if(row.measurementError!==undefined){console.log(`${slug}: custom percentage unknown; ${row.measurementError}`);console.log(` grid-ready ${row.gridReady.verdict}; ${JSON.stringify(row.gridReady.criteria)}; frame floor ${row.gridReady.frameFloor?.verdict??'unknown'}`);continue;}
52
- if(row.listedView!==undefined)console.log(` ${slug} listed view ${row.listedView.listedViewLines}; other custom ${row.listedView.otherCustomLines}; total custom ${row.listedView.totalCustomLines} (unchanged, ${row.status==='unclosed'?'source':'built-output'} basis)`);
53
- const m3=row.m3===null?'native':`${(100*row.m3.fraction).toFixed(1)}% ${row.m3.basis}`;
54
- const ready=Object.entries(row.gridReady.criteria).map(([name,value])=>`${name}:${value.verdict}`).join(', ');
55
- const metrics=row.scriptMetrics,delta=row.linesRemovedSince12Z;
56
- console.log(` ${slug} custom lines removed since ${dailyLines.since}: ${delta?.removed??'unknown'} (source ruler ${delta?.before??'unknown'} -> ${delta?.after??'unknown'}; baseline ${dailyLines.revision})`);
57
- console.log(` ${slug} scripts: ${metrics.status}; AS ${row.assemblyScriptLines}/${row.assemblyScriptBudget?.ceiling??'native'}`);
58
- for(const scenario of metrics.scenarios)console.log(` ${scenario.script} / ${scenario.scenario}: calls ${scenario.calls}, coarse fuel total/max ${scenario.fuel}/${scenario.maxFuel}, refusals ${scenario.refusals}; ${scenario.path} sha256:${scenario.receiptHash}`);
59
- for(const script of metrics.scripts.filter(value=>!value.measured))console.log(` ${script.id}: fuel/calls unknown (no matching scenario receipt)`);
60
- if (row.status==='unclosed') {
61
- console.log(`${slug.padEnd(22)} unclosed — ${row.escapes} M3 ${m3}; grid ${row.gridReady.verdict}; JSON ${row.customSections?.length}/${row.customSectionBytes}; AS ${row.assemblyScriptLines}/${row.assemblyScriptBudget?.ceiling??'native'}`);
62
- console.log(` grid-ready ${ready}; frame floor ${row.gridReady.frameFloor?.verdict??'unknown'}`);
63
- for (const file of row.files.slice(0,5)) console.log(` ${file.path}: ${file.count} escapes; ${file.messages.join('; ')}`);
64
- if (row.refusal) console.log(` strict copy: ${row.refusal}`);
65
- continue;
66
- }
67
- const pct=row.customPercent===null?'native':`${row.customPercent.toFixed(2)} %`;
68
- console.log(`${slug.padEnd(22)} closed ${pct.padEnd(17)} 0 M3 ${m3}; grid ${row.gridReady.verdict}; ${row.customSections?.length}/${row.customSectionBytes} AS ${row.assemblyScriptLines}/${row.assemblyScriptBudget?.ceiling??'native'} bin ${row.content?.privateBinaryBytes} build ${row.oneUserBuildTools?.lines}`);
69
- console.log(` grid-ready ${ready}; frame floor ${row.gridReady.frameFloor?.verdict??'unknown'}`);
70
- }
71
- const percent=value=>`${(100*value).toFixed(1)} %`;
72
- console.log(`M3 six-shard total: ${progress.m3.fraction===null?'unknown':percent(progress.m3.fraction)}; ${progress.m3.cut}/${progress.m3.mustGo} must-go lines cut`);
73
- console.log(`M2 grid-ready: ${progress.m2.ready}/${progress.m2.total} pass, ${progress.m2.unknown}/${progress.m2.total} unknown; ${progress.m2.plots} plot cells counted separately`);
74
- console.log(`Frame floor (separate): ${progress.frameFloor.ready}/${progress.frameFloor.total} pass, ${progress.frameFloor.fail}/${progress.frameFloor.total} fail, ${progress.frameFloor.unknown}/${progress.frameFloor.total} unknown`);
75
- console.log(`Plan (60% M3 + 40% M2): ${progress.plan===null?'unknown':progress.plan.lower===progress.plan.upper?percent(progress.plan.lower):`${percent(progress.plan.lower)}–${percent(progress.plan.upper)} (M2 evidence incomplete)`}`);
76
- for(const wave of netLines) {
77
- console.log(`${wave.wave} net lines (report-only, historical source M0 ${wave.revision}): custom cut ${wave.customCut??'unknown'} - platform growth ${wave.platformGrowth} = ${wave.netCut??'unknown'}`);
78
- for(const [slug,row] of Object.entries(wave.shards))console.log(` ${slug}: ${row.before} -> ${row.after??'unknown'} (${row.basis}), cut ${row.cut??'unknown'}`);
79
- for(const [layer,row] of Object.entries(wave.layers))console.log(` ${layer}: ${row.before} -> ${row.after}, growth ${row.growth}`);
80
- }
81
- console.log('Since-noon counts use the source ruler on both dates, including ownership/ruler corrections. Output closure never supplies a cut; negative removed lines mean growth.');
82
- console.log('Platform growth includes all concurrent engine/game/SDK work and build tools, once per wave; historical source and current output/source units differ. Net lines never change custom % or gate.');
83
- }
84
- if (process.argv.includes('--check')) {
85
- const recorded=JSON.parse(readFileSync(resolve(ROOT,LIST),'utf8'));
86
- failures.push(...checkShares(recorded,measures));
87
- if(lockedShards.length>0)failures.push(...closedComponentFailures(report.inventory,policy.closedComponents));
88
- }
89
- for (const failure of failures) console.error(`shard-platform: ${failure}`);
90
- if (failures.length>0) process.exitCode=1;
91
- }
92
- }
93
- if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) await runShardPlatformCli();