@bnbagent/studio-cli 0.0.13-alpha.5 → 0.0.13-alpha.6

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/dist/bag.js CHANGED
@@ -55,7 +55,7 @@ import {
55
55
  x402SellerIsFree,
56
56
  x402SellerPricingState,
57
57
  x402SellerUsesB402
58
- } from "./chunk-BCUJGB4Y.js";
58
+ } from "./chunk-LEBIBQWN.js";
59
59
  import {
60
60
  TWAK_CLI_MIN_VERSION,
61
61
  TWAK_CLI_VERSION,
@@ -233,7 +233,7 @@ import {
233
233
  var CAMPAIGN_DOC_URL = "https://www.bnbchain.org/en/blog/bnb-agent-studio-is-live-on-bnb-chain-ai-agents-from-one-prompt";
234
234
  var CAMPAIGN_CHECK_TIMEOUT_MS = 6e3;
235
235
  async function fetchCampaignActive() {
236
- const { bnbPlatformApiUrl: bnbPlatformApiUrl2 } = await import("./deployCli-2YVGILHK.js");
236
+ const { bnbPlatformApiUrl: bnbPlatformApiUrl2 } = await import("./deployCli-H65YVV3V.js");
237
237
  const controller = new AbortController();
238
238
  const timer = setTimeout(() => controller.abort(), CAMPAIGN_CHECK_TIMEOUT_MS);
239
239
  try {
@@ -17437,7 +17437,9 @@ async function printAzureAgentClientPrompt(root) {
17437
17437
  "",
17438
17438
  "REQUEST",
17439
17439
  `- POST application/json: ${request}`,
17440
- ...hasA2a ? ["- Send `A2A-Version: 1.0` with the native JSON-RPC A2A request."] : [],
17440
+ ...hasA2a ? [
17441
+ `- Send \`A2A-Version: ${AZURE_FOUNDRY_A2A_VERSION}\` with the native JSON-RPC A2A request.`
17442
+ ] : [],
17441
17443
  ...hasX402 ? [
17442
17444
  ...hasA2a ? [
17443
17445
  `- ${paymentLabel} carrier alternative: ${JSON.stringify(azureX402CarrierBody(paymentProtocol))}`
@@ -17789,6 +17791,7 @@ Quick-verify ${paymentProtocol} endpoint:
17789
17791
  }
17790
17792
  var AZURE_FOUNDRY_TOKEN_RESOURCE = "https://ai.azure.com";
17791
17793
  var AZURE_FOUNDRY_TOKEN_SCOPE = `${AZURE_FOUNDRY_TOKEN_RESOURCE}/.default`;
17794
+ var AZURE_FOUNDRY_A2A_VERSION = "0.3";
17792
17795
  function azureNegotiateQuickVerifyBody() {
17793
17796
  return {
17794
17797
  input: JSON.stringify({
@@ -17808,6 +17811,7 @@ function azureA2aQuickVerifyBody() {
17808
17811
  method: "message/send",
17809
17812
  params: {
17810
17813
  message: {
17814
+ kind: "message",
17811
17815
  messageId: "bag-quick-verify",
17812
17816
  role: "user",
17813
17817
  parts: [
@@ -18032,7 +18036,8 @@ ${paymentLabel} request curl:`
18032
18036
  printOut(
18033
18037
  ` AZURE_RESPONSE=$(curl -sS -D "$AZURE_HEADERS" -X POST "$AZURE_ENDPOINT" \\
18034
18038
  -H "Authorization: Bearer $AZURE_TOKEN" \\
18035
- -H "Content-Type: application/json"${hasA2a ? ' \\\n -H "A2A-Version: 1.0"' : ""} \\
18039
+ -H "Content-Type: application/json"${hasA2a ? ` \\
18040
+ -H "A2A-Version: ${AZURE_FOUNDRY_A2A_VERSION}"` : ""} \\
18036
18041
  -d '${JSON.stringify(body)}')`
18037
18042
  );
18038
18043
  printOut(' printf "%s\\n" "$AZURE_RESPONSE"');
@@ -791,8 +791,8 @@ function packageRoot() {
791
791
  }
792
792
  }
793
793
  function studioCliVersion() {
794
- if ("0.0.13-alpha.5") {
795
- return "0.0.13-alpha.5";
794
+ if ("0.0.13-alpha.6") {
795
+ return "0.0.13-alpha.6";
796
796
  }
797
797
  const file = path3.join(packageRoot(), "package.json");
798
798
  const pkg = JSON.parse(fs3.readFileSync(file, "utf-8"));
@@ -18,7 +18,7 @@ import {
18
18
  runPlatformAccountCommand,
19
19
  trialFromDeployCliJson,
20
20
  withDeployFiles
21
- } from "./chunk-BCUJGB4Y.js";
21
+ } from "./chunk-LEBIBQWN.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.13-alpha.5",
3
+ "version": "0.0.13-alpha.6",
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",
@@ -54,7 +54,7 @@
54
54
  "tar": "^7.4.0",
55
55
  "viem": "^2.54.0",
56
56
  "yaml": "^2.9.0",
57
- "@bnbagent/studio-runtime": "0.0.13-alpha.5"
57
+ "@bnbagent/studio-runtime": "0.0.13-alpha.6"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@a2a-js/sdk": "^0.3.14",
@@ -105,7 +105,7 @@ session, logs lists the recent sessions visible to the current Azure identity.
105
105
  Foundry scopes that list by identity/isolation key, so an external buyer or
106
106
  gateway must still preserve the session header from its own response.
107
107
 
108
- The built-in smoke proves the container contract, not the seller signature. For a release E2E, POST A2A JSON-RPC `message/send` to the recorded A2A endpoint with `A2A-Version: 1.0`, or use the Responses/Invocations contract selected for the deployment. Require `response.accepted=true`, a non-empty `negotiation_hash`, and `provider_sig`.
108
+ The built-in smoke proves the container contract, not the seller signature. For a release E2E, POST A2A JSON-RPC `message/send` to the recorded A2A endpoint with `A2A-Version: 0.3`, `params.message.kind = "message"`, and the JSON skill envelope in a `text` part; or use the Responses/Invocations contract selected for the deployment. Require `response.accepted=true`, a non-empty `negotiation_hash`, and `provider_sig`.
109
109
 
110
110
  ### X402 external gateway
111
111