@helix3/helix-cli 0.1.13-helix3.149 → 0.1.13-helix3.151

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 CHANGED
@@ -3263,6 +3263,33 @@ sceneSource
3263
3263
  fail(err instanceof lib_1.ApiError ? err.render() : `✖ ${err instanceof Error ? err.message : String(err)}`);
3264
3264
  }
3265
3265
  });
3266
+ sceneSource
3267
+ .command('compose')
3268
+ .description('Compose a parent Scene that MOUNTS already-published child Scenes by content hash — no geometry, only pins')
3269
+ .argument('<plan>', 'compose plan JSON (see docs/scene-v2-mounts.md)')
3270
+ .requiredOption('-o, --output <dir>', 'output directory for the composed Scene package')
3271
+ .option('--dry-run', 'resolve and validate every mount without writing the package', false)
3272
+ .action(async (planPath, opts) => {
3273
+ try {
3274
+ const { readComposePlan, resolveChildScene, composeMountedScene, composeMountsPackage } = await Promise.resolve().then(() => __importStar(require('./sceneImport/composeMounts')));
3275
+ const plan = await readComposePlan(planPath);
3276
+ if (opts.dryRun) {
3277
+ const profileId = plan.profile ?? 'world';
3278
+ const children = [];
3279
+ for (const entry of plan.mounts) {
3280
+ children.push(await resolveChildScene(entry, { defaultProfile: profileId }));
3281
+ }
3282
+ const composed = composeMountedScene(plan, children);
3283
+ console.log(JSON.stringify({ ...composed, scene: undefined, dryRun: true }, null, 2));
3284
+ return;
3285
+ }
3286
+ const result = await composeMountsPackage({ plan, outputDir: (0, node_path_1.resolve)(opts.output) });
3287
+ console.log(JSON.stringify({ ...result, scene: undefined }, null, 2));
3288
+ }
3289
+ catch (err) {
3290
+ fail(`✖ ${err instanceof Error ? err.message : String(err)}`);
3291
+ }
3292
+ });
3266
3293
  sceneSource
3267
3294
  .command('publish')
3268
3295
  .description('Validate and dry-run the native Scene v2 World-build multipart request')