From d1ab933b42e7f76593813cef2c221a700852fd20 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:47:17 +0000 Subject: [PATCH 1/2] Initial plan From 67b2dc508ed69d203496708b4a69c3f69459843f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:53:37 +0000 Subject: [PATCH 2/2] fix: use inquirer default export to restore prompt function in v12 Agent-Logs-Url: https://github.com/adobe/aio-cli-plugin-runtime/sessions/3e88d468-cfd9-4f2e-b0ce-08e31d016195 Co-authored-by: shazron <36107+shazron@users.noreply.github.com> --- src/commands/runtime/namespace/log-forwarding/set.js | 2 +- test/commands/runtime/namespace/log-forwarding/set.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/runtime/namespace/log-forwarding/set.js b/src/commands/runtime/namespace/log-forwarding/set.js index 4c97c579..3ecd588c 100644 --- a/src/commands/runtime/namespace/log-forwarding/set.js +++ b/src/commands/runtime/namespace/log-forwarding/set.js @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag governing permissions and limitations under the License. */ -const inquirer = require('inquirer') +const { default: inquirer } = require('inquirer') const RuntimeBaseCommand = require('../../../../RuntimeBaseCommand') class SetCommand extends RuntimeBaseCommand { diff --git a/test/commands/runtime/namespace/log-forwarding/set.test.js b/test/commands/runtime/namespace/log-forwarding/set.test.js index 91281dab..2cc8e484 100644 --- a/test/commands/runtime/namespace/log-forwarding/set.test.js +++ b/test/commands/runtime/namespace/log-forwarding/set.test.js @@ -41,7 +41,7 @@ let command, prompt, rtLib beforeEach(async () => { command = new TheCommand([]) prompt = jest.fn() - inquirer.prompt = prompt + inquirer.default.prompt = prompt rtLib = await RuntimeLib.init({ apihost: 'fakehost', api_key: 'fakekey' }) rtLib.logForwarding.getSupportedDestinations = jest.fn().mockReturnValue([{ value: 'destination', name: 'Destination' }]) rtLib.logForwarding.getDestinationSettings = jest.fn().mockReturnValue({ key: 'value' })