agentmall 0.1.22 → 0.1.23

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/dist/cli.js +7 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1197,11 +1197,11 @@ async function promptStoreAccountFields(mode) {
1197
1197
  default: mode === "create" ? "amazon" : ""
1198
1198
  });
1199
1199
  const password = await input2({
1200
- message: mode === "create" ? "Password (optional)" : "Password (leave blank to keep current)",
1200
+ message: mode === "create" ? "Password (optional in provider API)" : "Password (leave blank to keep current)",
1201
1201
  default: ""
1202
1202
  });
1203
1203
  const totpSecret = await input2({
1204
- message: mode === "create" ? "TOTP secret (optional)" : "TOTP secret (leave blank to keep current)",
1204
+ message: mode === "create" ? "TOTP secret (required if this account uses 2FA)" : "TOTP secret (leave blank to keep current)",
1205
1205
  default: ""
1206
1206
  });
1207
1207
  return {
@@ -1541,6 +1541,9 @@ async function storeAccountsList() {
1541
1541
  async function storeAccountsCreate(options) {
1542
1542
  banner();
1543
1543
  gap();
1544
+ muted("Password is optional in the provider API.");
1545
+ muted("Add the TOTP secret if this retailer account has 2FA enabled.");
1546
+ gap();
1544
1547
  const fields = {
1545
1548
  ...normalizeOptional(options?.email) ? { email: normalizeOptional(options?.email) } : {},
1546
1549
  ...normalizeOptional(options?.retailer) ? { retailer: normalizeOptional(options?.retailer) } : {},
@@ -1615,7 +1618,7 @@ async function storeAccountsDelete(shortId, options) {
1615
1618
  if (!shortId.trim()) {
1616
1619
  throw new Error("short_id is required.");
1617
1620
  }
1618
- const confirmed = options?.yes ?? await promptConfirm(`Delete store account ${shortId.trim()}?`);
1621
+ const confirmed = options?.yes === true ? true : await promptConfirm(`Delete store account ${shortId.trim()}?`);
1619
1622
  if (!confirmed) {
1620
1623
  muted("Cancelled.");
1621
1624
  return;
@@ -1697,7 +1700,7 @@ async function handleStoreAccounts(values) {
1697
1700
  process.exit(1);
1698
1701
  }
1699
1702
  await storeAccountsDelete(rest[0], {
1700
- yes: hasFlag(rest.slice(1), "--yes")
1703
+ yes: hasFlag(rest.slice(1), "--yes") ? true : void 0
1701
1704
  });
1702
1705
  break;
1703
1706
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmall",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "SDK and CLI for the AgentMall API — let AI agents buy physical products from US retailers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",