@helix3/helix-cli 0.1.18-helix3.343 → 0.1.18-helix3.345

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
@@ -87,7 +87,14 @@ program
87
87
  .description('HELIX creator CLI — scaffold, validate, and publish Instant Worlds')
88
88
  .version((0, lib_1.cliVersion)());
89
89
  function fail(message) {
90
- console.error(message);
90
+ // Synchronous: stderr is an ASYNC pipe on macOS, so console.error + process.exit cut a long refusal at ~512 bytes
91
+ // whenever the output was piped — exactly how an agent or CI reads it — losing the next command it names.
92
+ try {
93
+ (0, node_fs_1.writeSync)(2, `${message}\n`);
94
+ }
95
+ catch {
96
+ console.error(message);
97
+ }
91
98
  process.exit(1);
92
99
  }
93
100
  function requireAuth() {
@@ -1813,14 +1820,15 @@ item
1813
1820
  if (opts.json)
1814
1821
  console.log(JSON.stringify(st, null, 2));
1815
1822
  else {
1816
- console.log(`hosted job: ${hosted.describeJob(job)}`);
1823
+ // Current version first, with ITS hosted job; pending versions (each with their own job) follow.
1824
+ console.log(`current version: ${st.currentVersion ? (st.currentVersion.passed ? 'PASSED' : 'no passing run') : 'not pinned to a package version'}`);
1825
+ console.log(` hosted job for the current version: ${hosted.describeJob(job)}`);
1817
1826
  if (job?.contactSheetUrl)
1818
- console.log(` contact sheet: ${job.contactSheetUrl}`);
1827
+ console.log(` contact sheet: ${job.contactSheetUrl}`);
1819
1828
  for (const r of job?.reasons ?? [])
1820
- console.log(` - ${r}`);
1829
+ console.log(` - ${r}`);
1821
1830
  if (job?.error)
1822
- console.log(` error: ${job.error}`);
1823
- console.log(`current version: ${st.currentVersion ? (st.currentVersion.passed ? 'PASSED' : 'no passing run') : 'not pinned to a package version'}`);
1831
+ console.log(` error: ${job.error}`);
1824
1832
  for (const line of (0, moveUx_1.describePendingVersions)(id, st.pendingVersions))
1825
1833
  console.log(line);
1826
1834
  }