@helix3/helix-cli 0.1.22-helix3.412 → 0.1.22-helix3.413
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/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/vehicle/preview.d.ts +3 -0
- package/dist/vehicle/preview.js +38 -0
- package/dist/vehicle/preview.js.map +1 -1
- package/dist/vehicle/wheelDesign.d.ts +98 -0
- package/dist/vehicle/wheelDesign.js +276 -0
- package/dist/vehicle/wheelDesign.js.map +1 -0
- package/dist/visualQa/harness.d.ts +2 -0
- package/dist/visualQa/vehicle.js +51 -1
- package/dist/visualQa/vehicle.js.map +1 -1
- package/package.json +1 -1
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_abs.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_expression.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_jbeam.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_materials.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_beamng_engine.cpython-312.pyc +0 -0
package/dist/index.js
CHANGED
|
@@ -655,6 +655,11 @@ vehicleCommand
|
|
|
655
655
|
.option('--occupants', 'also seat an avatar in every seat, judge the cabin, and report where the runtime\'s cabin fit put each seat vs where it was authored (slow)')
|
|
656
656
|
.option('--reference-paint <#rrggbb>', 'the reference body paint colour, the median of the body-paint pixels in the reference photos: renders the body paint alone from six cameras in the Try Now daylight (the world\'s own sun, exposure, tone mapping and lights) and fails on hue, saturation, lightness or highlight wash. White/silver/grey/black are judged on tint and lightness instead of hue')
|
|
657
657
|
.option('--paint-tolerance <deg>', 'maximum circular hue distance (degrees) the rendered body may sit from a chromatic --reference-paint (default 12)', (v) => Number(v))
|
|
658
|
+
.option('--reference-wheel <image>', 'a close-up photo of the real wheel, face-on or nearly: renders the candidate\'s front-left wheel square-on and fails vehicle.wheels.design.* on spoke count and centre cap (a different finish fails, a neighbouring one warns). The photo\'s wheel is read from the image centre unless --reference-wheel-crop says where it is')
|
|
659
|
+
.option('--reference-wheel-spokes <n>', 'declare the real wheel\'s spoke count (overrides the count read from the photo; use it for an oblique or tight photo)', (v) => Number(v))
|
|
660
|
+
.option('--reference-wheel-finish <finish>', 'declare the real wheel\'s finish: silver, chrome, gunmetal, black, bronze, gold or coloured (overrides the finish read from the photo)')
|
|
661
|
+
.option('--reference-wheel-cap <yes|no>', 'declare whether the real wheel has a centre cap (overrides the photo)')
|
|
662
|
+
.option('--reference-wheel-crop <cx,cy,r>', 'where the wheel sits in the photo, as fractions: centre x of the width, centre y of the height, tyre outer radius of the shorter side (default 0.5,0.5,0.45)')
|
|
658
663
|
.option('--storage-state <file>', 'Playwright storageState of a signed-in QA account (default: sign in with `helix login`, or $HELIX_VQA_STORAGE_STATE)')
|
|
659
664
|
.option('--chrome <path>', 'Chromium executable (default: Playwright Chromium / Chrome for Testing, headless; the macOS system Chrome is refused)')
|
|
660
665
|
.option('--api-url <url>', 'platform API base URL')
|
|
@@ -672,6 +677,13 @@ vehicleCommand
|
|
|
672
677
|
target, addOns: opts.addon, item: opts.item, toleranceCm: Number.isFinite(opts.toleranceCm) ? opts.toleranceCm : undefined,
|
|
673
678
|
glb: opts.glb, out: opts.out, proxyItem: opts.proxyItem, occupants: opts.occupants, apiBase, webBase,
|
|
674
679
|
referencePaint: opts.referencePaint, paintToleranceDeg: Number.isFinite(opts.paintTolerance) ? opts.paintTolerance : undefined,
|
|
680
|
+
referenceWheel: opts.referenceWheel ? {
|
|
681
|
+
image: opts.referenceWheel,
|
|
682
|
+
...(Number.isFinite(opts.referenceWheelSpokes) ? { spokeCount: opts.referenceWheelSpokes } : {}),
|
|
683
|
+
...(opts.referenceWheelFinish ? { finish: opts.referenceWheelFinish } : {}),
|
|
684
|
+
...(opts.referenceWheelCap ? { centreCap: /^(y|yes|true|1)$/i.test(opts.referenceWheelCap) } : {}),
|
|
685
|
+
...(opts.referenceWheelCrop ? { crop: ((p) => ({ cx: p[0], cy: p[1], radius: p[2] }))(opts.referenceWheelCrop.split(',').map(Number)) } : {}),
|
|
686
|
+
} : undefined,
|
|
675
687
|
token: creds?.token ?? null, storageState: opts.storageState ?? process.env.HELIX_VQA_STORAGE_STATE, chrome: opts.chrome, quiet: opts.json,
|
|
676
688
|
});
|
|
677
689
|
}
|