@futurelastic/colab-handbook 1.13.0-rc.8 → 1.13.0-rc.9

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.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/tools/colab +7 -2
package/package.json CHANGED
@@ -17,6 +17,7 @@
17
17
  "tools/colab",
18
18
  "tools/lib/*.js",
19
19
  "!tools/lib/*.test.js",
20
+ "!tools/lib/refusal-sites.js",
20
21
  "tools/lib/tracker-scenarios.json",
21
22
  "tools/lib/codec/*.js",
22
23
  "tools/lib/codec/*.d.ts",
@@ -32,5 +33,5 @@
32
33
  "engines": {
33
34
  "node": ">=18"
34
35
  },
35
- "version": "1.13.0-rc.8"
36
+ "version": "1.13.0-rc.9"
36
37
  }
package/tools/colab CHANGED
@@ -8381,7 +8381,9 @@ async function askMenu(rl, axis, promptFn) {
8381
8381
  if (resolved.ok) return resolved;
8382
8382
  process.stdout.write(` ${resolved.message}\n`);
8383
8383
  }
8384
- throw new UserError(`${axis}: no valid answer after one re-prompt`);
8384
+ throw new UserError(`${axis}: no valid answer after one re-prompt — nothing was written. Run \`colab adopt --axis ${axis}\` ` +
8385
+ `to be asked again, or pass the value directly: \`colab adopt ${axis === 'tier' ? '--deploy' : `--${axis}`} <value>\` ` +
8386
+ `(\`colab adopt --help\` lists them).`);
8385
8387
  }
8386
8388
 
8387
8389
  /**
@@ -8441,7 +8443,10 @@ async function adoptAskInteractive(rl, axesToAsk, cfg, checkExposure) {
8441
8443
  if (!problem) { chosen = resolved; break; }
8442
8444
  process.stdout.write(` ✗ ${problem}\n choose again (or skip):\n`);
8443
8445
  }
8444
- if (!chosen) throw new UserError('exposure: no answer this repo\'s shape supports after one re-prompt');
8446
+ // #532: this refusal comes after a long interaction, so it names the way through, not just the stop.
8447
+ if (!chosen) throw new UserError('exposure: no answer this repo\'s shape supports after one re-prompt — nothing was written. ' +
8448
+ 'Each "✗" above says why its value was refused. Run `colab adopt --axis exposure` and pick a value it accepts, ' +
8449
+ 'or `colab adopt --exposure <value>` non-interactively; choosing "skip" leaves exposure unanswered for now.');
8445
8450
  if (chosen.skip) continue; // decline — the fallback tier derivation picks this up
8446
8451
  answers.exposure = { values: { exposure: chosen.value }, mode: 'interactive' };
8447
8452
  } else {