@agentgates/cli 0.11.1 → 0.11.3

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.mjs +113 -73
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3113,6 +3113,69 @@ var require_picocolors = __commonJS({
3113
3113
  }
3114
3114
  });
3115
3115
 
3116
+ // package.json
3117
+ var require_package = __commonJS({
3118
+ "package.json"(exports, module) {
3119
+ module.exports = {
3120
+ name: "@agentgates/cli",
3121
+ version: "0.11.3",
3122
+ description: "Wallet operations for AI agents and humans",
3123
+ keywords: [
3124
+ "crypto",
3125
+ "wallet",
3126
+ "cli",
3127
+ "ai-agent",
3128
+ "agentgates",
3129
+ "usdc",
3130
+ "solana",
3131
+ "ethereum",
3132
+ "polygon",
3133
+ "defi"
3134
+ ],
3135
+ license: "MIT",
3136
+ homepage: "https://agentgates.ai",
3137
+ repository: {
3138
+ type: "git",
3139
+ url: "git+https://github.com/Carlos-Sotop/agentgates-ai-cli.git"
3140
+ },
3141
+ author: "Agentgates",
3142
+ type: "module",
3143
+ bin: {
3144
+ agentgates: "bin/agentgates"
3145
+ },
3146
+ files: [
3147
+ "bin",
3148
+ "dist/cli.mjs",
3149
+ "scripts/postinstall.mjs",
3150
+ "README.md"
3151
+ ],
3152
+ scripts: {
3153
+ build: `esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/cli.mjs --banner:js="import{createRequire}from'module';const require=createRequire(import.meta.url);"`,
3154
+ "build:tsc": "tsc -p tsconfig.json",
3155
+ postinstall: "node scripts/postinstall.mjs || exit 0",
3156
+ prepare: "[ -x node_modules/.bin/esbuild ] && npm run build || true",
3157
+ dev: "tsc -w -p tsconfig.json",
3158
+ typecheck: "tsc --noEmit",
3159
+ bounty: "node bin/bounty",
3160
+ "sync:bounty-shared": "node scripts/sync-bounty-shared.mjs",
3161
+ clean: "rm -rf dist"
3162
+ },
3163
+ engines: {
3164
+ node: ">=20"
3165
+ },
3166
+ devDependencies: {
3167
+ "@solana/web3.js": "^1.98.4",
3168
+ "@types/node": "^22.10.0",
3169
+ commander: "^12.1.0",
3170
+ esbuild: "^0.28.0",
3171
+ open: "^10.1.0",
3172
+ picocolors: "^1.1.1",
3173
+ typescript: "^5.6.3"
3174
+ }
3175
+ };
3176
+ }
3177
+ });
3178
+
3116
3179
  // node_modules/@solana/web3.js/node_modules/@noble/hashes/cryptoNode.js
3117
3180
  var require_cryptoNode = __commonJS({
3118
3181
  "node_modules/@solana/web3.js/node_modules/@noble/hashes/cryptoNode.js"(exports) {
@@ -34292,69 +34355,6 @@ Message: ${transactionMessage}.
34292
34355
  }
34293
34356
  });
34294
34357
 
34295
- // package.json
34296
- var require_package = __commonJS({
34297
- "package.json"(exports, module) {
34298
- module.exports = {
34299
- name: "@agentgates/cli",
34300
- version: "0.11.1",
34301
- description: "Wallet operations for AI agents and humans",
34302
- keywords: [
34303
- "crypto",
34304
- "wallet",
34305
- "cli",
34306
- "ai-agent",
34307
- "agentgates",
34308
- "usdc",
34309
- "solana",
34310
- "ethereum",
34311
- "polygon",
34312
- "defi"
34313
- ],
34314
- license: "MIT",
34315
- homepage: "https://agentgates.ai",
34316
- repository: {
34317
- type: "git",
34318
- url: "git+https://github.com/Carlos-Sotop/agentgates-ai-cli.git"
34319
- },
34320
- author: "Agentgates",
34321
- type: "module",
34322
- bin: {
34323
- agentgates: "bin/agentgates"
34324
- },
34325
- files: [
34326
- "bin",
34327
- "dist/cli.mjs",
34328
- "scripts/postinstall.mjs",
34329
- "README.md"
34330
- ],
34331
- scripts: {
34332
- build: `esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/cli.mjs --banner:js="import{createRequire}from'module';const require=createRequire(import.meta.url);"`,
34333
- "build:tsc": "tsc -p tsconfig.json",
34334
- postinstall: "node scripts/postinstall.mjs || exit 0",
34335
- prepare: "[ -x node_modules/.bin/esbuild ] && npm run build || true",
34336
- dev: "tsc -w -p tsconfig.json",
34337
- typecheck: "tsc --noEmit",
34338
- bounty: "node bin/bounty",
34339
- "sync:bounty-shared": "node scripts/sync-bounty-shared.mjs",
34340
- clean: "rm -rf dist"
34341
- },
34342
- engines: {
34343
- node: ">=20"
34344
- },
34345
- devDependencies: {
34346
- "@solana/web3.js": "^1.98.4",
34347
- "@types/node": "^22.10.0",
34348
- commander: "^12.1.0",
34349
- esbuild: "^0.28.0",
34350
- open: "^10.1.0",
34351
- picocolors: "^1.1.1",
34352
- typescript: "^5.6.3"
34353
- }
34354
- };
34355
- }
34356
- });
34357
-
34358
34358
  // node_modules/commander/esm.mjs
34359
34359
  var import_index = __toESM(require_commander(), 1);
34360
34360
  var {
@@ -35558,20 +35558,18 @@ async function inferenceModels(opts) {
35558
35558
  process.stdout.write(JSON.stringify({ ...body, models: matched }, null, 2) + "\n");
35559
35559
  return;
35560
35560
  }
35561
- const shown = opts.all || filtered ? matched : matched.filter((m) => m.confidential).slice(0, 12);
35562
- const headline = filtered ? `${matched.length} of ${all.length} match` : opts.all ? `all ${all.length}` : `${shown.length} confidential of ${all.length}`;
35563
- process.stdout.write(`
35564
- ${import_picocolors4.default.bold("MODELS")} ${import_picocolors4.default.dim(headline)}
35561
+ if (filtered && matched.length === 0) {
35562
+ process.stdout.write(`
35563
+ ${import_picocolors4.default.bold("MODELS")} ${import_picocolors4.default.dim(`0 of ${all.length} match`)}
35565
35564
 
35566
35565
  `);
35567
- if (filtered && matched.length === 0) {
35568
35566
  const vocab = [...new Set(all.flatMap((m) => m.tags ?? []))].sort().join(", ");
35569
35567
  process.stdout.write(` ${import_picocolors4.default.dim(`nothing matches. tags on this board: ${vocab || "none"}; tiers: confidential, open`)}
35570
35568
 
35571
35569
  `);
35572
35570
  return;
35573
35571
  }
35574
- for (const m of shown) {
35572
+ const row = (m) => {
35575
35573
  const tier = m.confidential ? import_picocolors4.default.cyan("attested") : import_picocolors4.default.dim("open");
35576
35574
  const ask = m.typicalAskUsd ? `~$${Number(m.typicalAskUsd).toFixed(3)}/ask` : "";
35577
35575
  const tags = (m.tags ?? []).join(" ");
@@ -35580,14 +35578,24 @@ async function inferenceModels(opts) {
35580
35578
  process.stdout.write(` ${import_picocolors4.default.dim(m.id.padEnd(22))} ${import_picocolors4.default.dim(`$${m.priceInUsdPerMTokens} in \xB7 $${m.priceOutUsdPerMTokens} out /M`)}
35581
35579
 
35582
35580
  `);
35583
- }
35584
- if (!opts.all && !filtered) {
35585
- process.stdout.write(` ${import_picocolors4.default.dim("agentgates inference models --all \xB7 the whole board")}
35581
+ };
35582
+ const open2 = matched.filter((m) => !m.confidential);
35583
+ const attested = matched.filter((m) => m.confidential);
35584
+ const headline = filtered ? `${matched.length} of ${all.length} match` : `all ${all.length} \xB7 attested tier last`;
35585
+ process.stdout.write(`
35586
+ ${import_picocolors4.default.bold("MODELS")} ${import_picocolors4.default.dim(headline)}
35587
+
35586
35588
  `);
35587
- process.stdout.write(` ${import_picocolors4.default.dim("filters: --tier confidential|open \xB7 --tag frontier \xB7 --org anthropic \xB7 --search gpt")}
35589
+ for (const m of open2) row(m);
35590
+ if (attested.length) {
35591
+ process.stdout.write(` ${import_picocolors4.default.bold("ATTESTED")} ${import_picocolors4.default.dim(`${attested.length} confidential, memory encrypted in use`)}
35588
35592
 
35589
35593
  `);
35594
+ for (const m of attested) row(m);
35590
35595
  }
35596
+ process.stdout.write(` ${import_picocolors4.default.dim("filters: --tier confidential|open \xB7 --tag frontier \xB7 --org anthropic \xB7 --search gpt \xB7 --json")}
35597
+
35598
+ `);
35591
35599
  }
35592
35600
  async function inferenceAsk() {
35593
35601
  process.stdout.write(
@@ -35609,6 +35617,34 @@ var WORDMARK = [
35609
35617
  " |___/ |___/"
35610
35618
  ].join("\n");
35611
35619
  var TAGLINE = "Confidential virtual machines and inference, paid per use in USDC.";
35620
+ var { version: LOCAL_VERSION } = require_package();
35621
+ function olderThan(a, b) {
35622
+ const pa = a.split(".").map(Number);
35623
+ const pb = b.split(".").map(Number);
35624
+ for (let i = 0; i < 3; i++) {
35625
+ if ((pa[i] ?? 0) < (pb[i] ?? 0)) return true;
35626
+ if ((pa[i] ?? 0) > (pb[i] ?? 0)) return false;
35627
+ }
35628
+ return false;
35629
+ }
35630
+ async function staleLine() {
35631
+ try {
35632
+ const ctl = new AbortController();
35633
+ const timer = setTimeout(() => ctl.abort(), 900);
35634
+ const res = await fetch("https://registry.npmjs.org/@agentgates/cli/latest", {
35635
+ headers: { accept: "application/json" },
35636
+ signal: ctl.signal
35637
+ }).finally(() => clearTimeout(timer));
35638
+ if (!res.ok) return null;
35639
+ const { version: latest } = await res.json();
35640
+ if (!latest || !olderThan(LOCAL_VERSION, latest)) return null;
35641
+ return ` ${import_picocolors5.default.yellow("\u2191")} ${latest} is out, this copy is ${LOCAL_VERSION} \xB7 curl -fsSL ${CREATORS_ORIGIN}/api/cli/install | sh
35642
+
35643
+ `;
35644
+ } catch {
35645
+ return null;
35646
+ }
35647
+ }
35612
35648
  function makePut(w) {
35613
35649
  return (s) => {
35614
35650
  process.stdout.write(s);
@@ -35701,8 +35737,12 @@ async function onboard(opts = {}) {
35701
35737
 
35702
35738
  `);
35703
35739
  }
35740
+ const staleNonTty = await staleLine();
35741
+ if (staleNonTty) put(staleNonTty);
35704
35742
  return;
35705
35743
  }
35744
+ const stale = await staleLine();
35745
+ if (stale) put(stale);
35706
35746
  const order = menuOrder(opts.lane).filter((k) => existing ? k !== "wallet" : true);
35707
35747
  printMenu(put, order, true);
35708
35748
  const rl = createInterface({ input: process.stdin, output: process.stdout });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentgates/cli",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "description": "Wallet operations for AI agents and humans",
5
5
  "keywords": [
6
6
  "crypto",