@helix3/helix-cli 0.1.22-helix3.423 → 0.1.23-helix3.425
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/README.md +2 -1
- package/dist/index.js +117 -5
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/vehicle/audio.d.ts +14 -0
- package/dist/vehicle/audio.js +63 -19
- package/dist/vehicle/audio.js.map +1 -1
- package/dist/vehicle/audioImport.d.ts +179 -0
- package/dist/vehicle/audioImport.js +547 -0
- package/dist/vehicle/audioImport.js.map +1 -0
- package/dist/vehicle/audioProvenance.d.ts +38 -0
- package/dist/vehicle/audioProvenance.js +301 -0
- package/dist/vehicle/audioProvenance.js.map +1 -0
- package/dist/vehicle/audioSlots.d.ts +27 -0
- package/dist/vehicle/audioSlots.js +43 -0
- package/dist/vehicle/audioSlots.js.map +1 -0
- package/dist/vehicle/audioSpectral.d.ts +9 -0
- package/dist/vehicle/audioSpectral.js +37 -0
- package/dist/vehicle/audioSpectral.js.map +1 -1
- package/dist/vehicle/inspectionSheets.d.ts +42 -0
- package/dist/vehicle/inspectionSheets.js +173 -0
- package/dist/vehicle/inspectionSheets.js.map +1 -0
- package/dist/vehicle/preview.d.ts +17 -1
- package/dist/vehicle/preview.js +47 -6
- package/dist/vehicle/preview.js.map +1 -1
- package/dist/vehicle/publish.d.ts +9 -0
- package/dist/vehicle/publish.js +20 -0
- package/dist/vehicle/publish.js.map +1 -1
- package/dist/vehicle/recheckListed.d.ts +87 -0
- package/dist/vehicle/recheckListed.js +200 -0
- package/dist/vehicle/recheckListed.js.map +1 -0
- package/dist/vehicle/testutil/sourcedAudio.d.ts +13 -0
- package/dist/vehicle/testutil/sourcedAudio.js +90 -0
- package/dist/vehicle/testutil/sourcedAudio.js.map +1 -0
- package/dist/visualQa/vehicle.js +35 -2
- package/dist/visualQa/vehicle.js.map +1 -1
- package/dist/visualQa/vehicleGrip.d.ts +156 -0
- package/dist/visualQa/vehicleGrip.js +439 -0
- package/dist/visualQa/vehicleGrip.js.map +1 -0
- package/dist/visualQa/vehicleInspection.d.ts +30 -0
- package/dist/visualQa/vehicleInspection.js +189 -0
- package/dist/visualQa/vehicleInspection.js.map +1 -0
- package/dist/visualQa/vehicleOccupants.d.ts +13 -0
- package/dist/visualQa/vehicleOccupants.js +386 -263
- package/dist/visualQa/vehicleOccupants.js.map +1 -1
- package/dist/visualQa/vehicleProbe.d.ts +1 -1
- package/dist/visualQa/vehicleProbe.js +84 -0
- package/dist/visualQa/vehicleProbe.js.map +1 -1
- package/docs/vehicle-audio-import.md +256 -0
- package/package.json +2 -1
- package/plugins/beamng-vehicle/README.md +3 -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__/beamng_stock_events.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fmod_studio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fsb5.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_ac.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_beamng.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_fixtures.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/beamng_audio.py +33 -9
- package/plugins/beamng-vehicle/bin/beamng_stock_events.py +171 -0
- package/plugins/beamng-vehicle/bin/fmod_studio.py +482 -0
- package/plugins/beamng-vehicle/bin/fsb5.py +304 -0
- package/plugins/beamng-vehicle/bin/sim_audio.py +250 -0
- package/plugins/beamng-vehicle/bin/sim_audio_ac.py +378 -0
- package/plugins/beamng-vehicle/bin/sim_audio_beamng.py +731 -0
- package/plugins/beamng-vehicle/bin/sim_audio_fixtures.py +269 -0
- package/plugins/beamng-vehicle/bin/sim_audio_import.py +121 -0
- package/plugins/beamng-vehicle/bin/test_sim_audio.py +215 -0
package/README.md
CHANGED
|
@@ -53,7 +53,8 @@ The token is stored in `~/.helix/credentials.json` (mode `600`). It's sent as
|
|
|
53
53
|
| `helix continuum publish-glb <mesh.glb> --title <t> [--package-type asset\|character] [--offer marketplace\|world --price-lix <n> --content-rating <rating>]` | Seal a Package first; optional offer makes it ownable. See [Package-first GLB publication](#package-first-glb-publication). |
|
|
54
54
|
| `helix continuum make-item --package-id <id> --package-version <v> --manifest-cid <cid> --content-rating <rating> [--offer marketplace\|world --price-lix <n>]` | Project one exact sealed Package Version into an Item, with an optional first offer. |
|
|
55
55
|
| `helix continuum publish-owned-item <item-id> --package-id <id> --package-version <v> --manifest-cid <cid> --content-rating <rating> --accept-rating-attestation` | Publish an existing personal Item from its unchanged public sealed Package pin. Offers are separate. |
|
|
56
|
-
| `helix vehicle audio-
|
|
56
|
+
| `helix vehicle audio-import <mod dir\|mod .zip\|AC car dir\|.bank> --out <dir> [--sim beamng\|ac\|auto] [--vehicle <id>] [--config <file.pc>] [--map <slot-map.json>] [--beamng-root <dir>] [--cylinders N] [--json]` | Takes a car's sounds from the sim mod that carries them, never synthesised: a BeamNG mod's own ladders and every sound its parts name (stock FMOD events resolved in the install's banks with `--beamng-root`, which also supplies what the game itself plays for unnamed slots), or an Assetto Corsa car's FMOD bank. Writes `audio/*.wav` (16-bit PCM, malformed headers repaired) and `audio.json` (the package `audio` block, all 31 slots, `provenance` on every slot, bank sample and blend). `--map` merges slots from several sources. Exit `1` when a slot stays empty. See [docs/vehicle-audio-import.md](docs/vehicle-audio-import.md). |
|
|
57
|
+
| `helix vehicle audio-check <dir\|package.json\|audio.json\|item-id> [--reference <clip>]... [--json]` | Proves every sound the runtime will select resolves, is PCM WAV and is audible (pre-publish on local files, or read-back on a published item), and that no two roles share one recording (shift up = shift down, an exhaust rung = an engine rung) and the rev limiter is a short crack the runtime can retrigger. Prints each slot's provenance and FAILS synthesised or generated audio (`AUDIO_SYNTHESISED`), a car without a recorded engine ladder (`AUDIO_ENGINE_UNSOURCED`), a missing or empty slot (`AUDIO_SLOT_UNSOURCED`, except `absent: "not-fitted"` / `"combined-with-engine"`), recordings without provenance (`AUDIO_PROVENANCE_MISSING`) and a not-fitted claim the physics contradicts (`AUDIO_SLOT_FITMENT_MISMATCH`); `vehicle publish` refuses the same. `--reference <clip>` (repeatable; `slot=clip` for a slot) compares the idle voice's centroid and firing roughness with a real-car recording. |
|
|
57
58
|
| `helix vehicle addon check <dir> [--json]` | Add-on fit gate for local source and host compatibility, including the web customizer's meshless guard (`ADDON_CUSTOMIZER_REFUSES`: a part with no `model.glb` must be a verified tune-only/sound-only definition). |
|
|
58
59
|
| `helix vehicle addon check --item <addOnId>... / --host <vehicleId>... [--json]` | Published mode (public reads, no sign-in): reads each add-on Item's exact Package pin and runs exactly what the web customizer runs; `--host` checks every add-on on the car's rail. Exit `1` = the customizer would refuse a part, with its message. |
|
|
59
60
|
| `helix item list-slots [--json]` | Print the Character-Creator vocabulary a wearable declares: the cosmetic slot tags, and the genders. |
|
package/dist/index.js
CHANGED
|
@@ -647,7 +647,11 @@ vehicleCommand
|
|
|
647
647
|
.command('preview')
|
|
648
648
|
.description('Render a vehicle that is not published yet in the real HELIX runtime (headless) and measure it: ride height against groundToBodyOrigin, '
|
|
649
649
|
+ 'wheels on their hubs, arch clearance, rolling radius, steering, doors, seats. Run it BEFORE the first mint, which locks groundToBodyOrigin. '
|
|
650
|
-
+ 'Every car preview also writes the fixed appearance poses (poses/pose.front|side|rear|top|front34|rear34|cockpit.jpg and poses.jpg) to compare with reference photos
|
|
650
|
+
+ 'Every car preview also writes the fixed appearance poses (poses/pose.front|side|rear|top|front34|rear34|cockpit.jpg and poses.jpg) to compare with reference photos, '
|
|
651
|
+
+ 'and the GAUNTLET INSPECTION SET as small contact sheets under <out>/inspection/ (8 angles day and night, each lamp lit, every wheel, every panel open, '
|
|
652
|
+
+ 'EVERY seat occupied from first person, side glass, over the shoulder and windscreen, the driver steering left/centre/right, and still-hands frames), '
|
|
653
|
+
+ 'with blocking occupant asserts (posture, hands on the rim while steering and following it, 9 and 3, still fingers and hands). Read every sheet. '
|
|
654
|
+
+ '--item <id> with no car directory and no --addon inspects a PUBLISHED car as the runtime serves it (re-checking a listed car against the current gates). '
|
|
651
655
|
+ 'With --addon <dir> it previews unpublished vehicle ADD-ONS instead: each add-on directory (the layout `vehicle addon check|publish` reads) is fitted '
|
|
652
656
|
+ 'to the candidate car, or to a published car (--item <id>, no car directory) by the engine\'s own fold, and the DRAWN geometry is measured in world space '
|
|
653
657
|
+ 'against its anchor (wheels within 1 cm of each hub, socket-framed parts on their socket, host-framed parts at their authored position, inside the car, '
|
|
@@ -660,7 +664,9 @@ vehicleCommand
|
|
|
660
664
|
.option('--tolerance-cm <cm>', 'with --addon: how far a drawn part may sit from its anchor (default: wheels 1 cm, socket-framed and host-framed parts 3 cm)', (v) => Number(v))
|
|
661
665
|
.option('--out <dir>', 'frames, contact-sheet.jpg, bundle.json and preview.json go here (default: <dir>/.helix-preview)')
|
|
662
666
|
.option('--proxy-item <id>', 'a published vehicle the QA account can Try Now; the runtime loads it and the candidate replaces its car (and its slot board is what --addon fits to)')
|
|
663
|
-
.option('--occupants', '
|
|
667
|
+
.option('--occupants', 'kept for old scripts: occupants are ON by default (every seat occupied, posture, hands while steering, still fingers, cabin fit)')
|
|
668
|
+
.option('--no-occupants', 'skip seating occupants (a quick iteration run only: an inspection without every seat occupied is not a gate result)')
|
|
669
|
+
.option('--no-inspection', 'skip the gauntlet inspection set (8 angles day and night, each lamp lit) and its contact sheets (iteration only)')
|
|
664
670
|
.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')
|
|
665
671
|
.option('--paint-tolerance <deg>', 'maximum circular hue distance (degrees) the rendered body may sit from a chromatic --reference-paint (default 12)', (v) => Number(v))
|
|
666
672
|
.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')
|
|
@@ -683,7 +689,7 @@ vehicleCommand
|
|
|
683
689
|
try {
|
|
684
690
|
summary = await runVehiclePreview({
|
|
685
691
|
target, addOns: opts.addon, item: opts.item, toleranceCm: Number.isFinite(opts.toleranceCm) ? opts.toleranceCm : undefined,
|
|
686
|
-
glb: opts.glb, out: opts.out, proxyItem: opts.proxyItem, occupants: opts.occupants, apiBase, webBase,
|
|
692
|
+
glb: opts.glb, out: opts.out, proxyItem: opts.proxyItem, occupants: opts.occupants, inspection: opts.inspection, apiBase, webBase,
|
|
687
693
|
referencePaint: opts.referencePaint, paintToleranceDeg: Number.isFinite(opts.paintTolerance) ? opts.paintTolerance : undefined,
|
|
688
694
|
referenceWheel: opts.referenceWheel ? {
|
|
689
695
|
image: opts.referenceWheel,
|
|
@@ -714,6 +720,45 @@ vehicleCommand
|
|
|
714
720
|
process.exitCode = 2;
|
|
715
721
|
}
|
|
716
722
|
});
|
|
723
|
+
vehicleCommand
|
|
724
|
+
.command('recheck-listed')
|
|
725
|
+
.description('Re-judge LISTED vehicles against today\'s gates. A listed car is never re-judged when a gate is added, so its visual-QA record can predate '
|
|
726
|
+
+ 'the gate that would fail it (the F40 was listed before the posture and hands-while-steering asserts existed). For each car this reads the '
|
|
727
|
+
+ 'passing record of its current version and names every current blocking gate it never ran (STALE) or failed (FAIL). With --rerun it renders '
|
|
728
|
+
+ 'each car again now (`vehicle preview --item`: every seat occupied, the full inspection set and its contact sheets) and reports that verdict. '
|
|
729
|
+
+ 'Agents updating a car must run this on it. Exit 0 = every car current and (with --rerun) passing, 1 = a car needs action, 2 = could not run')
|
|
730
|
+
.argument('[itemIds...]', 'vehicle item ids (default: every listed vehicle in the marketplace catalogue, or one creator\'s with --creator)')
|
|
731
|
+
.option('--creator <userId>', 'only this creator\'s listed vehicles')
|
|
732
|
+
.option('--rerun', 'render each car again now with today\'s gates (several minutes per car, one browser at a time)')
|
|
733
|
+
.option('--out <dir>', 'with --rerun: where each car\'s inspection goes (default ./.helix-recheck)')
|
|
734
|
+
.option('--storage-state <file>', 'Playwright storageState of a signed-in QA account (default: sign in with `helix login`)')
|
|
735
|
+
.option('--chrome <path>', 'Chromium executable (headless)')
|
|
736
|
+
.option('--api-url <url>', 'platform API base URL')
|
|
737
|
+
.option('--web-url <url>', 'website base URL')
|
|
738
|
+
.option('--json', 'print the rows as JSON')
|
|
739
|
+
.action(async (itemIds, opts) => {
|
|
740
|
+
try {
|
|
741
|
+
const { recheckListed, renderRecheckText } = await Promise.resolve().then(() => __importStar(require('./vehicle/recheckListed')));
|
|
742
|
+
const creds = (0, config_1.loadCredentials)();
|
|
743
|
+
const apiBase = opts.apiUrl ?? creds?.apiUrl ?? config_1.DEFAULT_API_URL;
|
|
744
|
+
const webBase = opts.webUrl ?? process.env.HELIX_WEB_URL ?? (0, config_1.webUrlForApi)(apiBase) ?? config_1.DEFAULT_WEB_URL;
|
|
745
|
+
const rows = await recheckListed({
|
|
746
|
+
apiBase, webBase, items: itemIds, creatorId: opts.creator, rerun: opts.rerun, out: (0, node_path_1.resolve)(opts.out ?? '.helix-recheck'),
|
|
747
|
+
token: creds?.token ?? null, storageState: opts.storageState ?? process.env.HELIX_VQA_STORAGE_STATE, chrome: opts.chrome,
|
|
748
|
+
log: (m) => { if (!opts.json)
|
|
749
|
+
process.stderr.write(`[recheck] ${m}\n`); },
|
|
750
|
+
});
|
|
751
|
+
if (opts.json)
|
|
752
|
+
console.log(JSON.stringify(rows, null, 2));
|
|
753
|
+
else
|
|
754
|
+
console.log(renderRecheckText(rows));
|
|
755
|
+
process.exitCode = rows.some((r) => r.status !== 'current' || (r.rerun && r.rerun.exitCode !== 0)) ? 1 : 0;
|
|
756
|
+
}
|
|
757
|
+
catch (error) {
|
|
758
|
+
process.stderr.write(`✖ vehicle recheck-listed could not run: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
759
|
+
process.exitCode = 2;
|
|
760
|
+
}
|
|
761
|
+
});
|
|
717
762
|
// ── vehicle source validation / audio / add-on tooling ───────────────────────────────────────────────────────────
|
|
718
763
|
function vehicleContinuumDeps() {
|
|
719
764
|
const creds = requireAuth();
|
|
@@ -907,7 +952,9 @@ vehicleCommand
|
|
|
907
952
|
const { statSync } = await Promise.resolve().then(() => __importStar(require('node:fs')));
|
|
908
953
|
const isDir = statSync(path).isDirectory();
|
|
909
954
|
const { readVehicleDir } = await Promise.resolve().then(() => __importStar(require('./vehicle/publish')));
|
|
910
|
-
const
|
|
955
|
+
const raw = isDir ? readVehicleDir(path).pkg : (0, validate_1.readJsonFile)(path);
|
|
956
|
+
// A bare `audio` block (what `vehicle audio-import` writes as audio.json) is checked as { audio }.
|
|
957
|
+
const pkg = !isDir && raw && typeof raw === 'object' && !('audio' in raw) && Array.isArray(raw.slots) ? { audio: raw } : raw;
|
|
911
958
|
report = await audio.checkAudioLocal(pkg, isDir ? path : (0, node_path_1.resolve)(path, '..'), undefined, undefined, options);
|
|
912
959
|
}
|
|
913
960
|
printVehicleJsonOr(opts.json, report, () => console.log(audio.formatAudioReport(report)));
|
|
@@ -919,6 +966,51 @@ vehicleCommand
|
|
|
919
966
|
process.exitCode = 2;
|
|
920
967
|
}
|
|
921
968
|
});
|
|
969
|
+
vehicleCommand
|
|
970
|
+
.command('audio-import')
|
|
971
|
+
.description('Take a car\'s sounds from the sim mod that carries them — never synthesised. Reads a BeamNG mod (folder or .zip: its own engine/exhaust '
|
|
972
|
+
+ 'sfxBlend2D ladders, every sound its selected parts name — starter, shutdown, afterfire, turbo whine and blow-off, gearbox whine, shift levers, '
|
|
973
|
+
+ 'door latches, horn and soundscape, beam sounds — and the recordings it ships), an Assetto Corsa / ACC car (folder or its sfx .bank: the FMOD '
|
|
974
|
+
+ 'engine event becomes the rpm ladder, row 0 off-throttle and row 1 on-throttle, exterior preferred; horn, doors, gears, turbo, backfire, limiter, '
|
|
975
|
+
+ 'skid, wheel and transmission events become slots) or a bare FMOD .bank. With --beamng-root the BeamNG install\'s stock FMOD banks resolve every '
|
|
976
|
+
+ 'stock event a mod names, and fill what the car does not name with what the game itself plays (tyres, impacts, doors, shift, suspension). '
|
|
977
|
+
+ 'Writes <out>/audio/*.wav (16-bit PCM; malformed WAV headers repaired, sample bytes untouched) and <out>/audio.json — the package `audio` block '
|
|
978
|
+
+ '(bank + all 31 slots) with provenance { kind, sim, mod, modUrl?, sourceFile, sourceSha256, event?, extractor } on every slot, bank sample and blend '
|
|
979
|
+
+ '— plus <out>/audio-import.json. A slot no source provides stays EMPTY with the reason (for a stock event: exactly which). --map merges several '
|
|
980
|
+
+ 'sources (one mod\'s ladder, another mod\'s horn, an AC car\'s doors). Exit 1 when a slot or the engine ladder is left without a recording')
|
|
981
|
+
.argument('<source>', 'a BeamNG mod folder or .zip, an Assetto Corsa car folder (content/cars/<car>), or an FMOD .bank')
|
|
982
|
+
.requiredOption('--out <dir>', 'output folder (audio/ + audio.json + audio-import.json)')
|
|
983
|
+
.option('--sim <sim>', 'beamng | ac | auto', 'auto')
|
|
984
|
+
.option('--vehicle <id>', 'the BeamNG vehicle folder (vehicles/<id>) when the mod has several')
|
|
985
|
+
.option('--config <file.pc>', 'the BeamNG configuration whose selected parts name the sounds (default: the vehicle\'s default .pc)')
|
|
986
|
+
.option('--map <slot-map.json>', 'merge sources per slot: { sources: { id: { path, sim: beamng|ac|beamng-base|recording, vehicle?, config?, modUrl? } }, slots: { <slot>: { source?, sample?|field?|event?|file?, blend? (ladders), trim?: { startS, endS }, concat?: [pick, ...], notFitted?|absent: "not-fitted" + reason } }, ladder: { source, blend?, exhaustBlend?, rpm: { sample: rpm }, prefer, nativeRungs }, cylinders, strokes, crankLayout, bankId, modUrl } (docs/vehicle-audio-import.md)')
|
|
987
|
+
.option('--beamng-root <dir>', 'the BeamNG.drive install (its content/art_sound.zip FMOD banks and content/vehicles/common.zip); default $HELIX_BEAMNG_ROOT')
|
|
988
|
+
.option('--cylinders <n>', 'the RECORDED engine\'s cylinder count (the ladder pitch model); required for an Assetto Corsa car', (v) => Number(v))
|
|
989
|
+
.option('--prefer <side>', 'exterior | interior engine recordings (Assetto Corsa engine_ext / engine_int)', 'exterior')
|
|
990
|
+
.option('--ac-native-rungs', 'keep only FMOD engine samples the bank places at their recorded pitch (no auto-pitch re-rate)')
|
|
991
|
+
.option('--mod-url <url>', 'where the mod was downloaded from (recorded in provenance.modUrl)')
|
|
992
|
+
.option('--json', 'print the machine-readable result')
|
|
993
|
+
.action(async (source, opts) => {
|
|
994
|
+
try {
|
|
995
|
+
const { importVehicleAudio, formatAudioImport } = await Promise.resolve().then(() => __importStar(require('./vehicle/audioImport')));
|
|
996
|
+
if (opts.sim && !['auto', 'beamng', 'ac'].includes(opts.sim))
|
|
997
|
+
throw new Error(`--sim ${opts.sim}: expected beamng, ac or auto`);
|
|
998
|
+
if (opts.cylinders !== undefined && !(Number.isInteger(opts.cylinders) && opts.cylinders > 0 && opts.cylinders <= 16))
|
|
999
|
+
throw new Error('--cylinders must be a whole number 1-16');
|
|
1000
|
+
const result = importVehicleAudio({
|
|
1001
|
+
source, out: opts.out, sim: (opts.sim ?? 'auto'), vehicle: opts.vehicle, config: opts.config, map: opts.map,
|
|
1002
|
+
beamngRoot: opts.beamngRoot ?? process.env.HELIX_BEAMNG_ROOT, cylinders: opts.cylinders, prefer: opts.prefer === 'interior' ? 'interior' : 'exterior',
|
|
1003
|
+
acNativeRungs: opts.acNativeRungs, modUrl: opts.modUrl, vgmstream: process.env.HELIX_VGMSTREAM,
|
|
1004
|
+
});
|
|
1005
|
+
printVehicleJsonOr(opts.json, result, () => console.log(formatAudioImport(result)));
|
|
1006
|
+
if (!result.ok)
|
|
1007
|
+
process.exitCode = 1;
|
|
1008
|
+
}
|
|
1009
|
+
catch (error) {
|
|
1010
|
+
process.stderr.write(`✖ ${error instanceof Error ? error.message : String(error)}\n`);
|
|
1011
|
+
process.exitCode = 2;
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
922
1014
|
const vehicleAddOnCommand = vehicleCommand
|
|
923
1015
|
.command('addon')
|
|
924
1016
|
.description('Check vehicle add-ons (wheels, kits, exhausts, tune parts)');
|
|
@@ -2326,6 +2418,7 @@ itemDistribution
|
|
|
2326
2418
|
.option('--ends-at <iso>', 'end time')
|
|
2327
2419
|
.option('--intent-id <uuid>', 'idempotency key; derived from the request when omitted, so an identical re-run returns the same route instead of a duplicate')
|
|
2328
2420
|
.option('--dry-run', 'validate and print the request; no network')
|
|
2421
|
+
.option('--allow-stale-visual-qa <reason>', 'human override: list a VEHICLE whose visual-QA record does not cover today\'s gates (logged to ~/.helix/listing-gate-overrides.jsonl)')
|
|
2329
2422
|
.option('--json', 'machine-readable output')
|
|
2330
2423
|
.action(async (itemId, opts) => {
|
|
2331
2424
|
const input = {
|
|
@@ -2350,7 +2443,26 @@ itemDistribution
|
|
|
2350
2443
|
console.log(`✔ Dry run — nothing sent.\n POST ${out.endpoint}\n ${JSON.stringify(fields)}`);
|
|
2351
2444
|
return;
|
|
2352
2445
|
}
|
|
2353
|
-
const
|
|
2446
|
+
const auth = requireAuth();
|
|
2447
|
+
// A VEHICLE is listed only on a visual-QA record that ran, and passed, every blocking gate that exists today (the F40
|
|
2448
|
+
// was listed on a record that predated the posture and hands asserts). See vehicle/recheckListed.ts.
|
|
2449
|
+
const { vehicleListingGate, listingRefusal } = await Promise.resolve().then(() => __importStar(require('./vehicle/recheckListed')));
|
|
2450
|
+
const gate = await vehicleListingGate(auth.apiUrl ?? config_1.DEFAULT_API_URL, itemId);
|
|
2451
|
+
if (gate && gate.status !== 'current') {
|
|
2452
|
+
const reason = (opts.allowStaleVisualQa ?? '').trim();
|
|
2453
|
+
if (!reason) {
|
|
2454
|
+
fail(listingRefusal(gate));
|
|
2455
|
+
return;
|
|
2456
|
+
}
|
|
2457
|
+
process.stderr.write(`⚠ listing ${gate.title} on a ${gate.status.toUpperCase()} visual-QA record by human override: ${reason}\n`);
|
|
2458
|
+
try {
|
|
2459
|
+
const { appendFileSync } = await Promise.resolve().then(() => __importStar(require('node:fs')));
|
|
2460
|
+
const { CONFIG_DIR } = await Promise.resolve().then(() => __importStar(require('./config')));
|
|
2461
|
+
appendFileSync((0, node_path_1.join)(CONFIG_DIR, 'listing-gate-overrides.jsonl'), `${JSON.stringify({ at: new Date().toISOString(), itemId, status: gate.status, stale: gate.stale, failed: gate.failed, reason })}\n`);
|
|
2462
|
+
}
|
|
2463
|
+
catch { /* the warning above is the record */ }
|
|
2464
|
+
}
|
|
2465
|
+
const created = await (0, lib_1.createItemDistribution)(input, auth);
|
|
2354
2466
|
if (opts.json)
|
|
2355
2467
|
console.log(JSON.stringify(created, null, 2));
|
|
2356
2468
|
else
|