@bnbagent/studio-cli 0.0.12-alpha.6 → 0.0.13-alpha.1

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
@@ -52,7 +52,7 @@ import {
52
52
  x402SellerIsFree,
53
53
  x402SellerPricingState,
54
54
  x402SellerUsesB402
55
- } from "./chunk-JONVYGUR.js";
55
+ } from "./chunk-RSM3RMDD.js";
56
56
  import {
57
57
  TWAK_CLI_MIN_VERSION,
58
58
  TWAK_CLI_VERSION,
@@ -230,7 +230,7 @@ import {
230
230
  var CAMPAIGN_DOC_URL = "https://www.bnbchain.org/en/blog/bnb-agent-studio-is-live-on-bnb-chain-ai-agents-from-one-prompt";
231
231
  var CAMPAIGN_CHECK_TIMEOUT_MS = 6e3;
232
232
  async function fetchCampaignActive() {
233
- const { bnbPlatformApiUrl: bnbPlatformApiUrl2 } = await import("./deployCli-6T6OMOIZ.js");
233
+ const { bnbPlatformApiUrl: bnbPlatformApiUrl2 } = await import("./deployCli-BY3ILBEP.js");
234
234
  const controller = new AbortController();
235
235
  const timer = setTimeout(() => controller.abort(), CAMPAIGN_CHECK_TIMEOUT_MS);
236
236
  try {
@@ -5958,18 +5958,15 @@ async function cmdUsage(daysArg) {
5958
5958
 
5959
5959
  // src/cli/recipes/deps.ts
5960
5960
  var CORE_PKG = "@bnbagent/studio-runtime";
5961
- var VERSION_RE = /^(\d+)\.(\d+)\.\d+(?:-[0-9A-Za-z.-]+)?$/;
5961
+ var VERSION_RE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/;
5962
5962
  function coreRequirement() {
5963
5963
  const version = cliVersion();
5964
- const m = VERSION_RE.exec(version);
5965
- if (m === null) {
5964
+ if (!VERSION_RE.test(version)) {
5966
5965
  throw new Error(
5967
5966
  `cannot derive a core constraint from CLI version '${version}'; expected X.Y.Z or X.Y.Z-<prerelease>`
5968
5967
  );
5969
5968
  }
5970
- const major = Number.parseInt(m[1], 10);
5971
- const minor = Number.parseInt(m[2], 10);
5972
- return `${CORE_PKG}@>=${version} <${major}.${minor + 1}.0`;
5969
+ return `${CORE_PKG}@${version}`;
5973
5970
  }
5974
5971
  function normalizeNodeDeps(deps) {
5975
5972
  return deps.map((d) => d.trim() === CORE_PKG ? coreRequirement() : d);
@@ -8490,7 +8487,7 @@ async function cmdInitFlow(nameArg, opts) {
8490
8487
  return 1;
8491
8488
  }
8492
8489
  const budgetFlag = opts.enableAutoTopup ? "enable" : opts.autoTopup === false ? "disable" : null;
8493
- const budgetChoice = walletKind2 === "altana" && llmProvider !== "pieverse-llm" && budgetFlag === null ? null : await resolveBudgetChoice(budgetFlag);
8490
+ const budgetChoice = llmProvider === "pieverse-llm" || budgetFlag !== null ? await resolveBudgetChoice(budgetFlag) : null;
8494
8491
  if ((rails === "b402" || rails === "both") && x402SellerPricingState({ price_usd: b402Price }).kind === "paid" && !["evm-local", "twak", "turnkey", "altana"].includes(walletKind2)) {
8495
8492
  printErr(
8496
8493
  `error: the b402 seller rail supports wallet.kind evm-local, twak, turnkey or altana only; '${walletKind2}' cannot act as the b402 payout wallet. Re-run with --rails 8183 or a supported --wallet-kind.`
@@ -9141,7 +9138,7 @@ agent_endpoint = ""
9141
9138
  function renderAgentStudioToml(name, o) {
9142
9139
  const model = o.model ?? PROVIDER_DEFAULT_MODEL[o.provider] ?? "";
9143
9140
  const pieverseSection = o.provider === "pieverse-llm" ? renderPieverseSections() : "";
9144
- const x402Section = o.provider === "pieverse-llm" ? renderX402Section() : "";
9141
+ const x402Section = o.provider === "pieverse-llm" && o.budgetChoice === "enable" ? renderX402Section() : "";
9145
9142
  const x402SellerSection = o.rails === "b402" || o.rails === "both" || hasX402Face(o.faces) ? renderX402SellerSection(o.b402Price) : "";
9146
9143
  const budgetSection = renderBudgetSection(o.budgetChoice);
9147
9144
  const storageSection = renderAgentStorageSection(o.storageProvider);
@@ -756,8 +756,8 @@ function packageRoot() {
756
756
  }
757
757
  }
758
758
  function studioCliVersion() {
759
- if ("0.0.12-alpha.6") {
760
- return "0.0.12-alpha.6";
759
+ if ("0.0.13-alpha.1") {
760
+ return "0.0.13-alpha.1";
761
761
  }
762
762
  const file = path3.join(packageRoot(), "package.json");
763
763
  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-JONVYGUR.js";
21
+ } from "./chunk-RSM3RMDD.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.12-alpha.6",
3
+ "version": "0.0.13-alpha.1",
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.12-alpha.6"
57
+ "@bnbagent/studio-runtime": "0.0.13-alpha.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@a2a-js/sdk": "^0.3.14",
@@ -145,7 +145,7 @@ Build a TodoWrite list. The shape depends on the `wallet kind`. The canonical 8-
145
145
  ```bash
146
146
  pnpm install # npm install works too - tooling is the user's choice
147
147
  ```
148
- The sub-project's `package.json` carries its deps: `@bnbagent/studio-runtime` (the runtime lib, pinned to the scaffolding CLI's version range - NOT the CLI itself) + `@bnbagent/sdk` + `ai` (the AI SDK) plus the **protocol-specific** group - A2A adds `@a2a-js/sdk` + `express`, MCP adds `@modelcontextprotocol/sdk` instead (an A2A-only deploy never ships the MCP SDK, and an MCP-only deploy never ships the A2A one). For local dev against unreleased libs, `bag init` vendors local `.tgz` tarballs and points the manifest at them automatically.
148
+ The sub-project's `package.json` carries its deps: `@bnbagent/studio-runtime` (the runtime lib, pinned to the scaffolding CLI's exact version - NOT the CLI itself) + `@bnbagent/sdk` + `ai` (the AI SDK) plus the **protocol-specific** group - A2A adds `@a2a-js/sdk` + `express`, MCP adds `@modelcontextprotocol/sdk` instead (an A2A-only deploy never ships the MCP SDK, and an MCP-only deploy never ships the A2A one). For local dev against unreleased libs, `bag init` vendors local `.tgz` tarballs and points the manifest at them automatically.
149
149
  3. **Set the wallet password** - the USER does this, NOT you.
150
150
 
151
151
  🔒 **SECURITY - never route the wallet password through the chat.** It encrypts the key material that is the Agent's sole signing key. Do **NOT** ask the user to type it into the chat, and do **NOT** run any command with the password on the command line (`bag env set <PW_VAR> <literal>`, `twak wallet create --password <literal>`, …) - it would land in the session transcript, be sent to the model API, and hit shell history / `ps`.