@answerlayer/cli 0.1.15 → 0.1.17

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 +1 -1
  2. package/src/local.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@answerlayer/cli",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Open-source command line client for the AnswerLayer API.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/local.js CHANGED
@@ -218,6 +218,7 @@ async function localProviderSet(parsed, io, provider, action) {
218
218
  writeEnvironmentValue(runtime.envPath, provider.environmentName, secret);
219
219
  try {
220
220
  restartProviderRuntime(runtime, run);
221
+ await waitUntilReady(`http://127.0.0.1:${runtime.state.port}`, io);
221
222
  } catch {
222
223
  rollbackProviderCredential(runtime, run, provider, existingSecret, "updating");
223
224
  throw new Error(`Could not restart AnswerLayer with the new ${provider.label} credential. The previous configuration was restored.`);
@@ -795,7 +796,14 @@ function providerResult(provider, configured, runtimeStatus, verification) {
795
796
 
796
797
  async function confirmQuickstart(parsed, io) {
797
798
  if (parsed.flags.yes) return true;
798
- const prompt = "Quickstart may pull an image, start local containers, and create persistent demo data. Continue? [y/N] ";
799
+ const prompt = [
800
+ "Quick Start will:",
801
+ " - Pull the AnswerLayer container image",
802
+ " - Start local containers",
803
+ " - Create persistent demo data",
804
+ "",
805
+ "Continue? [y/N] ",
806
+ ].join("\n");
799
807
  if (io.confirm) return Boolean(await io.confirm(prompt));
800
808
  if (!io.stdin?.isTTY) {
801
809
  throw new Error("Quickstart requires confirmation before starting containers. Rerun interactively or use --yes only after the user approves.");