@hypersoniclabs/helix-cli 0.1.28-helix3.720 → 0.1.28-helix3.721
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 +71 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/wearable.d.ts +55 -0
- package/dist/wearable.js +93 -0
- package/dist/wearable.js.map +1 -0
- 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__/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/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
require("./stdioBlocking");
|
|
38
38
|
const itemSetVersion_1 = require("./itemSetVersion");
|
|
39
39
|
const itemPublishVersion_1 = require("./itemPublishVersion");
|
|
40
|
+
const wearable_1 = require("./wearable");
|
|
40
41
|
const moveUx_1 = require("./visualQa/moveUx");
|
|
41
42
|
const validate_1 = require("./vehicle/validate");
|
|
42
43
|
const commander_1 = require("commander");
|
|
@@ -2153,6 +2154,76 @@ item
|
|
|
2153
2154
|
fail(error instanceof lib_1.ApiError ? (0, itemSetVersion_1.renderSetVersionError)(error) : `✖ ${error instanceof Error ? error.message : String(error)}`);
|
|
2154
2155
|
}
|
|
2155
2156
|
});
|
|
2157
|
+
// HELIX-39 parity U: creators publish Base Human wearables (fitted, head-bound, rigid accessory, look param). The server
|
|
2158
|
+
// runs the gates and the fit cook and answers the verdict; the item lands as a personal draft you own.
|
|
2159
|
+
const wearable = item.command('wearable').description('Base Human wearables: kit (slot classes + caps), publish a GLB or param.json, status (verdict)');
|
|
2160
|
+
wearable
|
|
2161
|
+
.command('kit')
|
|
2162
|
+
.description('Print the slot classes, per-slot caps, authored bodies, rigid socket limits and the param schema')
|
|
2163
|
+
.option('--json', 'machine-readable output')
|
|
2164
|
+
.action(async (opts) => {
|
|
2165
|
+
const creds = requireAuth();
|
|
2166
|
+
try {
|
|
2167
|
+
const kit = await (0, wearable_1.wearableKit)(lib_1.HelixApi.forCredentials(creds));
|
|
2168
|
+
if (opts.json)
|
|
2169
|
+
console.log(JSON.stringify(kit, null, 2));
|
|
2170
|
+
else
|
|
2171
|
+
for (const [slot, info] of Object.entries(kit.slots))
|
|
2172
|
+
console.log(`${slot.padEnd(14)} ${info.class.padEnd(10)} ${info.maxTris ? `${info.maxTris} tris` : ''}${info.wearableNow === false ? ' (no Base Human slot yet)' : ''}`);
|
|
2173
|
+
}
|
|
2174
|
+
catch (error) {
|
|
2175
|
+
fail(`✖ ${error instanceof Error ? error.message : String(error)}`);
|
|
2176
|
+
}
|
|
2177
|
+
});
|
|
2178
|
+
wearable
|
|
2179
|
+
.command('publish')
|
|
2180
|
+
.description('Publish a wearable as yourself: stage the file, seal it through the gates, print the verdict (the fit cook may still be pending)')
|
|
2181
|
+
.argument('<file>', 'a .glb (fitted, head-bound, rigid) or a param.json (look param: color, intensity, finish)')
|
|
2182
|
+
.requiredOption('--slot <slot>', 'the look slot (see `helix item wearable kit`)')
|
|
2183
|
+
.option('--title <title>', 'item title (default: the file name)')
|
|
2184
|
+
.option('--description <text>', 'item description')
|
|
2185
|
+
.option('--authored-body <id>', 'fitted/head-bound: the body the garment was authored on (default SKM_M_NRW_Tall)')
|
|
2186
|
+
.option('--anchor <anchor>', 'rigid: face | bone:<name> (default: the slot\'s first anchor)')
|
|
2187
|
+
.option('--offset <t,r,s>', 'rigid: "tx,ty,tz,rx,ry,rz,s" in cm, degrees, scale (clamped to +-50 cm, +-180 deg, 0.5-2)')
|
|
2188
|
+
.option('--mask <file>', 'param: a mask texture (png, jpeg or ktx2, at most 2048x2048 and 4 MB)')
|
|
2189
|
+
.option('--json', 'machine-readable output')
|
|
2190
|
+
.action(async (file, opts) => {
|
|
2191
|
+
const creds = requireAuth();
|
|
2192
|
+
try {
|
|
2193
|
+
const r = await (0, wearable_1.wearablePublish)(lib_1.HelixApi.forCredentials(creds), file, opts);
|
|
2194
|
+
if (opts.json)
|
|
2195
|
+
console.log(JSON.stringify(r, null, 2));
|
|
2196
|
+
else
|
|
2197
|
+
for (const line of (0, wearable_1.renderWearableResult)(r))
|
|
2198
|
+
console.log(line);
|
|
2199
|
+
if (r.verdict === 'refused')
|
|
2200
|
+
process.exitCode = 1;
|
|
2201
|
+
}
|
|
2202
|
+
catch (error) {
|
|
2203
|
+
const issues = error instanceof lib_1.ApiError ? error.body.issues : undefined;
|
|
2204
|
+
const detail = Array.isArray(issues) ? issues.map((x) => `\n - ${x.pointer ? `${x.pointer}: ` : ''}${x.message ?? ''}`).join('') : '';
|
|
2205
|
+
fail(error instanceof lib_1.ApiError ? `✖ ${error.message}${detail}` : `✖ ${error instanceof Error ? error.message : String(error)}`);
|
|
2206
|
+
}
|
|
2207
|
+
});
|
|
2208
|
+
wearable
|
|
2209
|
+
.command('status')
|
|
2210
|
+
.description('The verdict and issues of one of your wearables (owner only)')
|
|
2211
|
+
.argument('<packageVersionId>')
|
|
2212
|
+
.option('--json', 'machine-readable output')
|
|
2213
|
+
.action(async (packageVersionId, opts) => {
|
|
2214
|
+
const creds = requireAuth();
|
|
2215
|
+
try {
|
|
2216
|
+
const r = await (0, wearable_1.wearableStatus)(lib_1.HelixApi.forCredentials(creds), packageVersionId);
|
|
2217
|
+
if (opts.json)
|
|
2218
|
+
console.log(JSON.stringify(r, null, 2));
|
|
2219
|
+
else
|
|
2220
|
+
for (const line of (0, wearable_1.renderWearableResult)(r))
|
|
2221
|
+
console.log(line);
|
|
2222
|
+
}
|
|
2223
|
+
catch (error) {
|
|
2224
|
+
fail(error instanceof lib_1.ApiError ? `✖ ${error.message}` : `✖ ${error instanceof Error ? error.message : String(error)}`);
|
|
2225
|
+
}
|
|
2226
|
+
});
|
|
2156
2227
|
// One command prints the whole Character-Creator vocabulary a wearable must
|
|
2157
2228
|
// declare — the 34 slot tags AND the two genders. There is no `list-genders`:
|
|
2158
2229
|
// a dedicated command for a closed two-value list is a command to discover, to
|