@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.
- package/package.json +1 -1
- package/src/local.js +9 -1
package/package.json
CHANGED
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 =
|
|
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.");
|