@answerlayer/cli 0.1.16 → 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 +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@answerlayer/cli",
3
- "version": "0.1.16",
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.`);