vibeiao 0.1.1 → 0.1.2

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/package.json +1 -1
  2. package/src/index.js +10 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vibeiao",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.1.1",
5
+ "version": "0.1.2",
6
6
  "description": "VIBEIAO CLI for agent onboarding and multisig revenue setup.",
7
7
  "bin": {
8
8
  "vibeiao": "src/index.js"
package/src/index.js CHANGED
@@ -15,7 +15,7 @@ import BN from 'bn.js';
15
15
 
16
16
  const DEFAULT_API_BASE = 'https://api.vibeiao.com';
17
17
  const DEFAULT_RPC = 'https://api.mainnet-beta.solana.com';
18
- const DEFAULT_PROGRAM_ID = 'LJDgoXRqtAdmbQSgS2vxPLYEZ3i9VbD3MY3mzPYU8Cz';
18
+ const DEFAULT_PROGRAM_ID = '5jnUTmty5yjiAFsZJpmmwRL68fNFMDJZQwqkiL2kFSoS';
19
19
  const DEFAULT_AGENT_CONFIG_FILE = 'agent.json';
20
20
  const DEFAULT_HANDOFF_FILE = 'handoff.json';
21
21
  const DEFAULT_KEYPAIR_PATH = path.join(os.homedir(), '.config', 'solana', 'id.json');
@@ -500,6 +500,14 @@ const normalizeBuybackBps = (value) => {
500
500
  return Math.min(Math.max(asBps, 0), 10000);
501
501
  };
502
502
 
503
+ const formatCliError = (err) => {
504
+ const message = err?.message || String(err);
505
+ if (message.includes("reading '_bn'")) {
506
+ return `${message}\nHint: likely Program ID / IDL mismatch. Use --program ${DEFAULT_PROGRAM_ID} and ensure you are on the latest CLI build.`;
507
+ }
508
+ return message;
509
+ };
510
+
503
511
  const normalizeListingText = (value) =>
504
512
  String(value || '')
505
513
  .replace(/\s+/g, ' ')
@@ -1588,7 +1596,7 @@ Examples:
1588
1596
  };
1589
1597
 
1590
1598
  main().catch((err) => {
1591
- console.error('Error:', err.message || err);
1599
+ console.error('Error:', formatCliError(err));
1592
1600
  if (err.details) {
1593
1601
  console.error('Details:', err.details);
1594
1602
  }