@bnbagent/studio-cli 0.0.8 → 0.0.10

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.
@@ -820,7 +820,7 @@ function isTable(value) {
820
820
  }
821
821
 
822
822
  // src/cli/_deploy/deployCli.ts
823
- var DEPLOY_CLI_VERSION = "0.4.14";
823
+ var DEPLOY_CLI_VERSION = "0.5.4";
824
824
  var DEPLOY_CLI_PACKAGE = `@bnbagent/deploy-cli@${DEPLOY_CLI_VERSION}`;
825
825
  var BNB_PLATFORM_API_URL = "https://bnbagent-api.bnbchain.world";
826
826
  var BNB_PLATFORM_API_URL_ENV = "BNBAGENT_API_URL";
@@ -992,7 +992,12 @@ function buildDeploySpec(root, opts) {
992
992
  }
993
993
  }
994
994
  deploy.protocol = protocol;
995
- doc.bnb = { apiUrl: bnbPlatformApiUrl() };
995
+ const stackRuntime = String(stack.runtime ?? "agentcore");
996
+ doc.bnb = stackRuntime === "azure-foundry" ? {
997
+ apiUrl: bnbPlatformApiUrl(),
998
+ backend: "azure",
999
+ runtimeProfile: protocol === "A2A" ? "foundry-responses-v1" : "foundry-invocations-v1"
1000
+ } : { apiUrl: bnbPlatformApiUrl() };
996
1001
  }
997
1002
  if (opts.inlineSecrets) {
998
1003
  Object.assign(env, opts.inlineSecrets);
@@ -18,7 +18,7 @@ import {
18
18
  runPlatformAccountCommand,
19
19
  trialFromDeployCliJson,
20
20
  withDeployFiles
21
- } from "./chunk-ODCZKKZJ.js";
21
+ } from "./chunk-YFEM4564.js";
22
22
  import "./chunk-RO726HJG.js";
23
23
  export {
24
24
  BNB_PLATFORM_API_URL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnbagent/studio-cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Skills-first toolkit and bag CLI for BNB Chain seller agents: ERC-8004 identity, ERC-8183 escrowed commerce, and x402 payments.",
5
5
  "keywords": [
6
6
  "bnb-chain",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@bnbagent/sdk": "0.5.0",
54
- "@bnbagent/studio-runtime": "0.0.8",
54
+ "@bnbagent/studio-runtime": "0.0.10",
55
55
  "ai": "^7.0.29",
56
56
  "archiver": "^8.0.0",
57
57
  "commander": "^15.0.0",
@@ -4,8 +4,9 @@
4
4
  * Generated by `bag init --runtime azure-foundry`. This is the
5
5
  * Foundry-hosted counterpart of the cloud-neutral A2A entrypoint
6
6
  * (`main.ts`). The deploy spec declares Foundry's minimal pass-through
7
- * `invocations` protocol, so this host implements its documented container
8
- * contract: plain HTTP on :8088, GET /readiness, and POST /invocations.
7
+ * `invocations` protocol for user-owned Azure and the `responses` protocol
8
+ * for managed incoming A2A. This host implements both documented container
9
+ * endpoints on :8088 plus GET /readiness.
9
10
  *
10
11
  * ## How A2A reaches the seller skills on Foundry
11
12
  *
@@ -31,6 +32,7 @@
31
32
  * arrive as environment variables before the process starts.
32
33
  */
33
34
 
35
+ import { randomUUID } from "node:crypto";
34
36
  import { pathToFileURL } from "node:url";
35
37
  import { createOpenAI } from "@ai-sdk/openai";
36
38
  import { loadStudioToml } from "@bnbagent/studio-runtime/config";
@@ -234,6 +236,112 @@ export function extractEnvelope(
234
236
  : null;
235
237
  }
236
238
 
239
+ /** Extract the latest text turn from an OpenAI Responses request. Foundry's
240
+ * incoming A2A adapter is text-only and projects the caller message here. */
241
+ export function responsesInputText(input: unknown): string | null {
242
+ if (typeof input === "string") {
243
+ return input;
244
+ }
245
+ if (!Array.isArray(input)) {
246
+ return null;
247
+ }
248
+ const texts: string[] = [];
249
+ for (const item of input) {
250
+ if (typeof item === "string") {
251
+ texts.push(item);
252
+ continue;
253
+ }
254
+ if (!item || typeof item !== "object") {
255
+ continue;
256
+ }
257
+ const content = (item as Record<string, unknown>).content;
258
+ if (typeof content === "string") {
259
+ texts.push(content);
260
+ continue;
261
+ }
262
+ if (!Array.isArray(content)) {
263
+ continue;
264
+ }
265
+ for (const part of content) {
266
+ if (part && typeof part === "object") {
267
+ const text = (part as Record<string, unknown>).text;
268
+ if (typeof text === "string") texts.push(text);
269
+ }
270
+ }
271
+ }
272
+ return texts.at(-1) ?? null;
273
+ }
274
+
275
+ function responseId(prefix: string): string {
276
+ return `${prefix}_${randomUUID().replaceAll("-", "")}`;
277
+ }
278
+
279
+ function responseEnvelope(text: string, model: string) {
280
+ const responseIdValue = responseId("resp");
281
+ const messageId = responseId("msg");
282
+ const part = { type: "output_text", annotations: [], logprobs: [], text };
283
+ const item = {
284
+ id: messageId,
285
+ type: "message",
286
+ status: "completed",
287
+ role: "assistant",
288
+ content: [part],
289
+ };
290
+ return {
291
+ id: responseIdValue,
292
+ object: "response",
293
+ created_at: Math.floor(Date.now() / 1000),
294
+ status: "completed",
295
+ error: null,
296
+ incomplete_details: null,
297
+ instructions: null,
298
+ max_output_tokens: null,
299
+ model,
300
+ output: [item],
301
+ output_text: text,
302
+ parallel_tool_calls: true,
303
+ previous_response_id: null,
304
+ reasoning: { effort: null, summary: null },
305
+ store: true,
306
+ temperature: 1,
307
+ text: { format: { type: "text" } },
308
+ tool_choice: "auto",
309
+ tools: [],
310
+ top_p: 1,
311
+ truncation: "disabled",
312
+ usage: {
313
+ input_tokens: 0,
314
+ input_tokens_details: { cached_tokens: 0 },
315
+ output_tokens: 0,
316
+ output_tokens_details: { reasoning_tokens: 0 },
317
+ total_tokens: 0,
318
+ },
319
+ metadata: {},
320
+ };
321
+ }
322
+
323
+ function sendStreamingResponse(res: express.Response, response: ReturnType<typeof responseEnvelope>): void {
324
+ const item = response.output[0];
325
+ const part = item.content[0];
326
+ const events = [
327
+ { type: "response.created", sequence_number: 0, response: { ...response, status: "in_progress", output: [] } },
328
+ { type: "response.output_item.added", sequence_number: 1, output_index: 0, item: { ...item, status: "in_progress", content: [] } },
329
+ { type: "response.content_part.added", sequence_number: 2, output_index: 0, item_id: item.id, content_index: 0, part: { ...part, text: "" } },
330
+ { type: "response.output_text.delta", sequence_number: 3, output_index: 0, item_id: item.id, content_index: 0, delta: part.text },
331
+ { type: "response.output_text.done", sequence_number: 4, output_index: 0, item_id: item.id, content_index: 0, text: part.text },
332
+ { type: "response.content_part.done", sequence_number: 5, output_index: 0, item_id: item.id, content_index: 0, part },
333
+ { type: "response.output_item.done", sequence_number: 6, output_index: 0, item },
334
+ { type: "response.completed", sequence_number: 7, response },
335
+ ];
336
+ res.status(200);
337
+ res.setHeader("content-type", "text/event-stream");
338
+ res.setHeader("cache-control", "no-cache");
339
+ for (const event of events) {
340
+ res.write(`event: ${event.type}\ndata: ${JSON.stringify(event)}\n\n`);
341
+ }
342
+ res.end("data: [DONE]\n\n");
343
+ }
344
+
237
345
  async function main(): Promise<void> {
238
346
  scrubBlankAppInsights();
239
347
 
@@ -268,6 +376,20 @@ async function main(): Promise<void> {
268
376
  const text = typeof input.input === "string" ? input.input : null;
269
377
  res.json({ output: await router.run(text) });
270
378
  });
379
+ // The managed platform selects Foundry's Responses protocol so the agent
380
+ // can be exposed through incoming A2A. Keep this adapter small and
381
+ // deterministic: Foundry converts A2A text to Responses input, and the
382
+ // seller result becomes one assistant output_text item.
383
+ app.post("/responses", async (req, res) => {
384
+ const input = (req.body ?? {}) as Record<string, unknown>;
385
+ const output = await router.run(responsesInputText(input.input));
386
+ const response = responseEnvelope(output, typeof input.model === "string" ? input.model : APP_NAME);
387
+ if (input.stream === true) {
388
+ sendStreamingResponse(res, response);
389
+ } else {
390
+ res.json(response);
391
+ }
392
+ });
271
393
  // Required Foundry Hosted Agent health contract. The platform will not
272
394
  // create a session or forward invocations until this returns HTTP 200.
273
395
  app.get("/readiness", (_req, res) => {
@@ -280,7 +402,7 @@ async function main(): Promise<void> {
280
402
  // Foundry's documented default is 8088; PORT remains the platform override.
281
403
  const port = Number(process.env.PORT || process.env.AGENT_PORT || "8088");
282
404
  const server = app.listen(port, "0.0.0.0", () => {
283
- log.info(`Invocations host serving on 0.0.0.0:${port}`);
405
+ log.info(`Invocations + Responses host serving on 0.0.0.0:${port}`);
284
406
  });
285
407
  process.once("SIGTERM", () => {
286
408
  server.close(() => process.exit(0));
@@ -1,6 +1,6 @@
1
1
  [recipe]
2
2
  name = "runtimes/azure-foundry"
3
- description = "Runtime adapter recipe for Azure AI Foundry Hosted Agents — the second deploy target. Selected via `bag init --runtime azure-foundry`. Declares the runtime's required node deps and contributes the cloud-neutral @a2a-js/sdk server for local/dev plus the Foundry deploy host: a pass-through Invocations skill router over the SHARED SellerAgentExecutor.dispatch, serving the documented :8088 + /readiness + /invocations contract. Azure deployment currently supports A2A scaffolds only; the MCP entrypoint remains local/AgentCore-oriented and is rejected before Foundry deploy. The chain tools (tools.ts) + model factory (model.ts) are shared by both protocols (decision D9). Deploys are container-only and fully delegated to the pinned @bnbagent/deploy-cli (SDK/REST + browser login; CustomKeys secret injection; no azd/az CLIs, no azure.yaml/infra in the scaffold)."
3
+ description = "Runtime adapter recipe for Azure AI Foundry Hosted Agents — the second deploy target. Selected via `bag init --runtime azure-foundry`. Declares the runtime's required node deps and contributes the cloud-neutral @a2a-js/sdk server for local/dev plus a dual-protocol Foundry deploy host: pass-through Invocations for user-owned Azure and OpenAI Responses for managed incoming A2A, both routed over the SHARED SellerAgentExecutor.dispatch. Azure deployment currently supports A2A scaffolds only; the MCP entrypoint remains local/AgentCore-oriented and is rejected before Foundry deploy. The chain tools (tools.ts) + model factory (model.ts) are shared by both protocols (decision D9). Deploys are container-only and fully delegated to the pinned @bnbagent/deploy-cli (SDK/REST + browser login; CustomKeys secret injection; no azd/az CLIs, no azure.yaml/infra in the scaffold)."
4
4
  status = "v1"
5
5
 
6
6
  # The recipe contributes the entrypoints plus the deps below; the deploy
@@ -9,8 +9,8 @@ status = "v1"
9
9
  # azd bootstrap and no azure.yaml / infra/ in the scaffold).
10
10
  #
11
11
  # foundryMain.ts implements the documented framework-neutral container
12
- # contract directly: plain HTTP on :8088, GET /readiness, and the declared
13
- # POST /invocations pass-through route. This path was live E2E verified on
12
+ # contract directly: plain HTTP on :8088, GET /readiness, POST /invocations,
13
+ # and POST /responses (required for managed incoming A2A). The invocations path was live E2E verified on
14
14
  # 2026-07-20 through deploy, cold-start smoke, invoke, logs, and destroy.
15
15
 
16
16
  # Base deps are shared by every mode. bnbagent-deploy injects provider/storage
@@ -53,7 +53,7 @@ Treat ERC-8183 amounts as decimal strings at CLI/config boundaries and `bigint`
53
53
 
54
54
  ## CLI groups at a glance
55
55
 
56
- `init`, `scan`, `recipe`, `skills`, `wallet`, `erc8004`, `erc8183`, `x402`, `agents`, `config`, `env`, `dev`, `doctor`, `audit`, `deploy`, `platform`, `llm`, `bundle`, `budget` - see `bag --help` for details. `bag deploy [--provider bnb\|aws]` is the primary deploy command; `prepare`, `verify`, `status`, `info`, `destroy`, `logs`, and `fix-gitignore` remain lifecycle subcommands (`deploy agent` is a deprecated compatibility alias). Provider deploy/status/logs/destroy and deploy-time credential validation are delegated to pinned `@bnbagent/deploy-cli@0.4.14`.
56
+ `init`, `scan`, `recipe`, `skills`, `wallet`, `erc8004`, `erc8183`, `x402`, `agents`, `config`, `env`, `dev`, `doctor`, `audit`, `deploy`, `platform`, `llm`, `bundle`, `budget` - see `bag --help` for details. `bag deploy [--provider bnb\|aws] [--backend aws\|azure]` is the primary deploy command; `--backend` is valid only for provider `bnb` and confirms the recipe-derived managed backend. `prepare`, `verify`, `status`, `info`, `destroy`, `logs`, and `fix-gitignore` remain lifecycle subcommands (`deploy agent` is a deprecated compatibility alias). Provider deploy/status/logs/destroy and deploy-time credential validation are delegated to pinned `@bnbagent/deploy-cli@0.5.4`.
57
57
 
58
58
  ## Tool surface
59
59
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bnbagent-studio-use-aws-agentcore
3
- description: When the user wants to deploy or operate a bnbagent-studio project on AWS Bedrock AgentCore - deploy with `bag deploy --provider aws` (all cloud lifecycle mutations are delegated to pinned `@bnbagent/deploy-cli@0.4.14`), inspect with `bag deploy status` / `logs --provider aws` / `verify --provider aws`, and tear down with `bag deploy destroy --provider aws --execute [--purge]`. Also covers AWS credential prerequisites, the optional read-only quota probe, and the runtime-secret channel.
3
+ description: When the user wants to deploy or operate a bnbagent-studio project on AWS Bedrock AgentCore - deploy with `bag deploy --provider aws` (all cloud lifecycle mutations are delegated to pinned `@bnbagent/deploy-cli@0.5.4`), inspect with `bag deploy status` / `logs --provider aws` / `verify --provider aws`, and tear down with `bag deploy destroy --provider aws --execute [--purge]`. Also covers AWS credential prerequisites, the optional read-only quota probe, and the runtime-secret channel.
4
4
  ---
5
5
 
6
6
  > **Reference file** of the `bnbagent-studio` router skill - installed at `bnbagent-studio/references/` and loaded on demand (not a standalone skill). Route here via the router's decision tree.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bnbagent-studio-use-azure-foundry
3
- description: When the user wants to deploy or operate an A2A bnbagent-studio project on Azure AI Foundry Hosted Agents - scaffold with `bag init --runtime azure-foundry --protocols A2A`, deploy with `bag deploy --provider azure` (container-only Invocations contract; all cloud lifecycle execution is delegated to pinned `@bnbagent/deploy-cli@0.4.14`, SDK/REST with browser login - no `az`/`azd` CLIs), and run lifecycle commands with `--provider azure` when multiple deployments exist. Native MCP deploy is not supported on Azure yet; use AgentCore for MCP.
3
+ description: When the user wants to deploy or operate a bnbagent-studio project on Azure AI Foundry Hosted Agents - scaffold with `bag init --runtime azure-foundry`, deploy either to the managed platform with `bag deploy --provider bnb --backend azure` or directly with `bag deploy --provider azure`; all cloud lifecycle execution is delegated to pinned `@bnbagent/deploy-cli@0.5.4`. Native MCP is not supported on Azure; use AgentCore for MCP.
4
4
  ---
5
5
 
6
6
  > **Reference file** of the `bnbagent-studio` router skill - installed at `bnbagent-studio/references/` and loaded on demand (not a standalone skill). Route here via the router's decision tree.
@@ -9,7 +9,7 @@ description: When the user wants to deploy or operate an A2A bnbagent-studio pro
9
9
 
10
10
  > **Preview - not advertised in this release.** Azure Foundry support is fully wired but hidden from the `--runtime` menu and the deploy provider menu; these steps still work if you select `azure-foundry` / `--provider azure` explicitly. The most recent end-to-end live verification predates the TypeScript rewrite - treat your first deploy as a verification run.
11
11
 
12
- Procedure for deploying and operating the seller Agent on **Azure AI Foundry Hosted Agents** (`[stack].runtime = "azure-foundry"`). ALL cloud execution - browser login, Foundry onboarding, the container registry image build/push, secret provisioning, and the RBAC self-grant - is **delegated to the pinned `@bnbagent/deploy-cli`** (run via `bunx --bun`; override with `BNBAGENT_DEPLOY_COMMAND`), whose Azure provider is **SDK/REST-only**. Studio never shells out to (or requires) the `az` / `azd` CLIs.
12
+ Procedure for deploying and operating the seller Agent on **Azure AI Foundry Hosted Agents** (`[stack].runtime = "azure-foundry"`). ALL cloud execution is **delegated to the pinned `@bnbagent/deploy-cli`** (run via `bunx --bun`; override with `BNBAGENT_DEPLOY_COMMAND`), whose Azure provider is **SDK/REST-only**. Studio never shells out to (or requires) the `az` / `azd` CLIs. Direct user-owned deployment uses browser/local credentials and may self-heal RBAC; the managed platform uses environment credentials in `ambient-only` mode and only probes RBAC.
13
13
 
14
14
  ```
15
15
  <workspace>/
@@ -21,7 +21,7 @@ Procedure for deploying and operating the seller Agent on **Azure AI Foundry Hos
21
21
 
22
22
  > **Deploy model: CONTAINER-ONLY.** The deploy-cli Azure provider rejects Node zip artifacts, so every azure-foundry deploy builds the scaffolded `app/agent/Dockerfile` **locally with Docker** (linux/amd64) and pushes it to the auto-provisioned Azure Container Registry; Foundry Agent Service pulls and runs the image. A running Docker daemon is required.
23
23
 
24
- > **Protocol: A2A projects only for now.** The deployed Node host speaks Foundry's pass-through Invocations container contract on `:8088` (`GET /readiness`, `POST /invocations`). That endpoint is not native MCP streamable HTTP; `bag init` and provider selection reject azure-foundry + MCP instead of deploying a container that can never become ready.
24
+ > **Protocol: A2A projects only for now.** The deployed Node host speaks both Foundry container contracts on `:8088`: `GET /readiness`, pass-through `POST /invocations` for user-owned Azure, and OpenAI-compatible `POST /responses` for managed incoming A2A. Neither endpoint is native MCP streamable HTTP; `bag init` and provider selection reject azure-foundry + MCP instead of deploying a container that can never become ready.
25
25
 
26
26
  > **Auth is a browser login.** The first delegated run opens a browser to sign in to the right tenant/subscription - there is no `az login` / `azd auth login` step and no CLI to install.
27
27
 
@@ -38,7 +38,7 @@ Procedure for deploying and operating the seller Agent on **Azure AI Foundry Hos
38
38
  - **Region must support Hosted Agents.** Default `eastus2`. `eastus` does NOT. Prepare refuses an unsupported `[azure].location` (else deploy fails with `Unsupported region for Foundry Hosted Agents`).
39
39
  - **Account name MUST equal the custom subdomain.** The runtime derives `https://{account_name}.services.ai.azure.com`; a mismatch resolves to NXDOMAIN and the agent returns HTTP 500. `bag init` sets them equal - keep them equal in `[azure]`.
40
40
  - **Empty `APPLICATIONINSIGHTS_CONNECTION_STRING` crashes the exporter.** The emitted entrypoint drops it when blank - don't remove that guard.
41
- - **The hosted container contract is fixed.** Keep `AGENT_PORT=8088`, `GET /readiness` returning HTTP 200, and `POST /invocations`. Local A2A still runs on `:9000`; do not copy that local port into the Foundry Dockerfile.
41
+ - **The hosted container contract is fixed.** Keep `AGENT_PORT=8088`, `GET /readiness` returning HTTP 200, and both `POST /invocations` and `POST /responses`. Local A2A still runs on `:9000`; do not copy that local port into the Foundry Dockerfile.
42
42
  - **Prepare checks are local-only.** They validate the scaffold (region, subdomain, entrypoint + Dockerfile, an OpenAI-compatible `[llm]` provider, twak readiness) without any cloud call; Azure auth happens at deploy time.
43
43
 
44
44
  ## Runtime secrets - the delegated hand-off
@@ -47,7 +47,7 @@ Procedure for deploying and operating the seller Agent on **Azure AI Foundry Hos
47
47
 
48
48
  > The encrypted keystore (`.studio/wallets/`) stays at the workspace root and rides only that secret channel - never baked into the image.
49
49
 
50
- Provider-native overrides go in the optional `studio.toml [deploy.foundry]` table (verbatim deploy-spec keys; deploy-cli 0.4.14 consumes `account`, `cpu`, `location`, `memory`, `project`, `projectEndpoint`, `protocol`, `registry` and warns about anything else). The `[azure]` block's `account_name` / `project_name` / `project_endpoint` / `location` win over conflicting `[deploy.foundry]` keys.
50
+ Provider-native overrides go in the optional `studio.toml [deploy.foundry]` table (verbatim deploy-spec keys; deploy-cli 0.5.4 consumes `account`, `cpu`, `location`, `memory`, `project`, `projectEndpoint`, `protocol`, `registry` and warns about anything else). The `[azure]` block's `account_name` / `project_name` / `project_endpoint` / `location` win over conflicting `[deploy.foundry]` keys.
51
51
 
52
52
  ## Typical workflow
53
53
 
@@ -76,9 +76,17 @@ bag deploy --provider azure # delegated: login → onboard →
76
76
 
77
77
  ```bash
78
78
  bag deploy status # all recorded providers + live state
79
+ bag deploy info --with-curl # endpoint + Entra token shortcut + request body
79
80
  bag deploy logs --provider azure --limit 50 # delegated Hosted Agent logs
80
81
  ```
81
82
 
83
+ `bag deploy info` reads the recorded Azure endpoint without recreating the
84
+ temporary deploy spec. `--with-curl` adds an optional `az account
85
+ get-access-token --resource https://ai.azure.com` shortcut and a complete
86
+ Invocations request. This does not make the Azure CLI a deploy prerequisite;
87
+ application clients may mint the same `https://ai.azure.com/.default` scope
88
+ with `DefaultAzureCredential` or `ClientSecretCredential`.
89
+
82
90
  The built-in smoke proves the container contract, not the seller signature. For a release E2E, invoke with a complete `negotiate` envelope and require `response.accepted=true`, a non-empty `negotiation_hash`, and `provider_sig`. The Invocations body is `{"input":"<serialized skill JSON>"}`.
83
91
 
84
92
  ### D. Tear down
@@ -9,7 +9,7 @@ description: Use when deploying or operating a bnbagent-studio seller on the BNB
9
9
 
10
10
  Treat this provider as a temporary testnet sandbox. Require a throwaway wallet, keep `bsc-testnet`, and explain that the runtime signing material is transmitted to the operator's managed secret store for the trial. Never use a mainnet key. Exception: `wallet.kind='altana'` ships only the bounded, budget-limited, revocable session - the throwaway-wallet advice does not apply; tighten the session instead (`bag wallet session grant --force --budget-u <small> --expiry-days <short>`) and never run `bag wallet new` on an altana project (it breaks the session's `[wallet].address` anchor).
11
11
 
12
- All auth and cloud lifecycle work must cross the pinned `@bnbagent/deploy-cli@0.4.14` boundary. Do not call the AWS CLI or platform REST routes directly.
12
+ All auth and cloud lifecycle work must cross the pinned `@bnbagent/deploy-cli@0.5.4` boundary. Do not call a cloud CLI or platform REST routes directly. The managed backend is recipe-derived: `agentcore` uses AWS; `azure-foundry` uses Azure. For headless managed Azure, confirm with `bag deploy --provider bnb --backend azure --yes`; never treat `--backend` as a cross-cloud recipe converter.
13
13
 
14
14
  ## Select and authenticate
15
15