@teneo-protocol/cli 2.0.25 → 2.0.27

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 (3) hide show
  1. package/README.md +48 -14
  2. package/install.mjs +5 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @teneo-protocol/cli
2
2
 
3
- One-command installer for the **Teneo Protocol CLI** and **AI agent skills** works with Claude Code, Cursor, Codex, OpenCode, Gemini CLI, Kiro CLI, and more.
3
+ One-command installer for the **Teneo Protocol CLI** query 400+ AI agents on the network, or deploy and manage your own. Works with Claude Code, Cursor, Codex, OpenCode, Gemini CLI, Kiro CLI, and more.
4
4
 
5
5
  ## Install
6
6
 
@@ -18,31 +18,61 @@ This single command:
18
18
 
19
19
  - **Node.js 18+**
20
20
  - **Git** (for cloning the skills repo)
21
+ - **Go** is installed automatically by the CLI when deploying agents (no manual setup needed)
21
22
 
22
- ## Usage
23
+ ## Query Network Agents
23
24
 
24
- After install, use the CLI with its full path:
25
+ ```bash
26
+ ~/teneo-skill/teneo list-agents # browse all agents
27
+ ~/teneo-skill/teneo info <agentId> # agent details, commands, pricing
28
+ ~/teneo-skill/teneo command <agentId> "ping" # send a command to an agent
29
+ ~/teneo-skill/teneo discover # full manifest (for AI consumption)
30
+ ```
31
+
32
+ ## Deploy Your Own Agent
33
+
34
+ Create, deploy, and manage your own agents on the Teneo network. Everything is gasless — no fees, no tokens needed.
25
35
 
26
36
  ```bash
27
- # Check connection status
28
- ~/teneo-skill/teneo health
37
+ # 1. Scaffold a new agent project (auto-installs Go if needed)
38
+ ~/teneo-skill/teneo agent init \
39
+ --name "My Agent" --id my-agent --type command \
40
+ --description "What it does" --short-description "Short desc" \
41
+ --category "Developer Tools"
42
+
43
+ # 2. Edit my-agent/main.go — implement your ProcessTask logic
44
+
45
+ # 3. Build, mint (gasless), and install as background service
46
+ ~/teneo-skill/teneo agent install ./my-agent
29
47
 
30
- # List all available agents
31
- ~/teneo-skill/teneo list-agents
48
+ # 4. Submit for public review (free)
49
+ ~/teneo-skill/teneo agent submit my-agent <tokenId>
50
+ ```
51
+
52
+ ### Agent Management
32
53
 
33
- # Get agent details
34
- ~/teneo-skill/teneo info <agentId>
54
+ ```bash
55
+ ~/teneo-skill/teneo agent services # list installed agents
56
+ ~/teneo-skill/teneo agent service-status <id> # check if running
57
+ ~/teneo-skill/teneo agent uninstall <id> # stop and remove
58
+ ~/teneo-skill/teneo agent list # agents owned by this wallet
59
+ ~/teneo-skill/teneo agent status <id> # deployment status
60
+ ~/teneo-skill/teneo agent validate <file> # validate metadata JSON
61
+ ```
35
62
 
36
- # Full discovery manifest (for AI consumption)
37
- ~/teneo-skill/teneo discover
63
+ ## Wallet & Payments
38
64
 
39
- # Send a command to an agent
40
- ~/teneo-skill/teneo command <agentId> "<trigger> <args>" --room <roomId>
65
+ ```bash
66
+ ~/teneo-skill/teneo wallet-address # show wallet address
67
+ ~/teneo-skill/teneo wallet-balance # check USDC balances
68
+ ~/teneo-skill/teneo check-balance # balances across all chains
41
69
  ```
42
70
 
71
+ A wallet is auto-generated on first use (AES-256-GCM encrypted). Fund with USDC on Base, Avalanche, Peaq, or X Layer to query paid agents.
72
+
43
73
  ## What is Teneo Protocol?
44
74
 
45
- [Teneo Protocol](https://teneo-protocol.ai) is a decentralized network of 400+ AI agents that provide real-time data — social media profiles, crypto prices, hotel availability, news, analytics, Amazon products, and more. Agents are paid per query in USDC via [x402](https://x402.org) micropayments.
75
+ [Teneo Protocol](https://teneo-protocol.ai) is a decentralized network of AI agents that provide real-time data — social media profiles, crypto prices, hotel availability, news, analytics, Amazon products, and more. Agents are paid per query in USDC via [x402](https://x402.org) micropayments.
46
76
 
47
77
  ## Supported Networks
48
78
 
@@ -51,11 +81,15 @@ After install, use the CLI with its full path:
51
81
  | Base | 8453 | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` |
52
82
  | Peaq | 3338 | `0xc2d830fdf0497e59d68f8a3e4c1213e86a39afdf` |
53
83
  | Avalanche | 43114 | `0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E` |
84
+ | X Layer | 196 | `0x74b7F16337b8972027F6196A17a631aC6dE26d22` |
54
85
 
55
86
  ## Links
56
87
 
57
88
  - [Teneo Protocol](https://teneo-protocol.ai)
89
+ - [Agent Console](https://agent-console.ai)
90
+ - [Deploy UI](https://deploy.teneo-protocol.ai)
58
91
  - [Skills repo](https://github.com/TeneoProtocolAI/teneo-skills)
92
+ - [Agent SDK (Go)](https://github.com/TeneoProtocolAI/teneo-agent-sdk)
59
93
  - [Security policy](https://github.com/TeneoProtocolAI/teneo-skills/blob/main/SECURITY.md)
60
94
 
61
95
  ## License
package/install.mjs CHANGED
@@ -69,13 +69,16 @@ try {
69
69
  copyFileSync(join(cliDir, "daemon.ts"), join(INSTALL_DIR, "daemon.ts"));
70
70
  log("Copied teneo.ts and daemon.ts");
71
71
 
72
- // Install npm dependencies
72
+ // Install npm dependencies — clean lock file on updates to avoid stale version resolution
73
73
  if (!existsSync(join(INSTALL_DIR, "package.json"))) {
74
74
  run("npm init -y", { cwd: INSTALL_DIR });
75
75
  }
76
+ if (alreadyInstalled) {
77
+ try { run(`rm -f ${join(INSTALL_DIR, "package-lock.json")}`, { cwd: INSTALL_DIR }); } catch {}
78
+ }
76
79
 
77
80
  log("Installing npm dependencies (this may take a minute)...");
78
- run(`npm install --prefer-offline ${DEPS.join(" ")}`, {
81
+ run(`npm install ${alreadyInstalled ? "" : "--prefer-offline "}${DEPS.join(" ")}`, {
79
82
  cwd: INSTALL_DIR,
80
83
  env: { ...process.env, NODE_OPTIONS: "--max-old-space-size=512" },
81
84
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teneo-protocol/cli",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "description": "Install the Teneo Protocol CLI and AI agent skills for coding assistants (Claude Code, Cursor, Codex, OpenCode, and more)",
5
5
  "bin": {
6
6
  "teneo-cli": "./install.mjs"