Skip to content

Commit 104fb5d

Browse files
committed
use bitte-ai-spec package, new validation & cmd
1 parent 1578d48 commit 104fb5d

File tree

16 files changed

+1180
-2148
lines changed

16 files changed

+1180
-2148
lines changed

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
# Make Agent CLI
22

3+
**The swiss army knife for multi-chain AI agents.** Make Agent CLI is a powerful command-line tool designed to streamline the management and deployment of AI agents across multiple chains. This tool simplifies the process of making your AI agents discoverable and registering them as plugins.
34

4-
**The swiss army knife for multi-chain AI agents**
5+
## Docs Quick Start
56

6-
Make Agent CLI is a powerful command-line tool designed to streamline the management and deployment of AI agents across multiple chains. This tool simplifies the process of making your AI agents discoverable and registering them as plugins.
7+
[https://docs.bitte.ai/agents/quick-start](https://docs.bitte.ai/agents/quick-start)
78

9+
### Next.js Starter project
810

9-
## Quick Start:
10-
11-
### Read the docs:
12-
13-
https://docs.bitte.ai/agents/quick-start
14-
15-
### Next.js Starter project:
16-
https://github.com/BitteProtocol/agent-next-boilerplate
11+
[https://github.com/BitteProtocol/agent-next-boilerplate](https://github.com/BitteProtocol/agent-next-boilerplate)
1712

1813
## Usage
1914

@@ -56,7 +51,20 @@ Currently, the CLI supports the following command:
5651
If no URL is provided, the command will attempt to determine the URL automatically through environment variables.
5752
In particular, see [deployed-url.ts](src/utils/deployed-url.ts) for various deployment configurations.
5853

54+
1. ### **`validate`**: Validate an agent spec using a local json file or a remote url (for testing purposes)
55+
56+
Usage:
57+
58+
```bash
59+
npx make-agent validate [source]
60+
61+
# Example:
62+
npx make-agent validate ./ai-plugin.json
63+
npx make-agent validate https://coingecko-demo.vercel.app/.well-known/ai-plugin.json
64+
```
65+
5966
1. ### **`contract`**: Scaffold a basic agent from a NEAR contract that has an ABI
67+
6068
Usage:
6169

6270
```bash
@@ -94,11 +102,9 @@ Currently, the CLI supports the following command:
94102
- `-r, --repo <repoUrl>`: (required) To verify a plugin we need the url for a public repository containing the plugin's code
95103
- `-v, --version <versionNumber>`: (optional) Specify the version of the plugin in case of an update
96104
- `-c, --categories <categories>`: (optional) List some categories that describe the type of plugin you're verifying.
97-
- `-x, --chains <chainIds>`: (optional) If your plugin works on specific evm chains, you can specify them so your plugin is easier to find.
98-
99-
These options can also be defined in the agent spec in the `"x-mb"` object.
100-
105+
- `-x, --chains <chainIds>`: (optional) If your plugin works on specific evm chains, you can specify them so your plugin is easier to find.
101106

107+
These options can also be defined in the agent spec in the `"x-mb"` object.
102108

103109
## Development
104110

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
77
"types": "dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"types": "./dist/index.d.ts",
11+
"import": "./dist/index.mjs",
12+
"require": "./dist/index.js"
13+
}
14+
},
815
"bin": {
916
"make-agent": "./dist/index.js"
1017
},
@@ -36,10 +43,7 @@
3643
"author": "Bitte Team",
3744
"license": "MIT",
3845
"dependencies": {
39-
"@apidevtools/swagger-parser": "^10.1.0",
40-
"@scalar/openapi-parser": "^0.10.6",
41-
"ajv": "^8.17.1",
42-
"ajv-draft-04": "^1.0.0",
46+
"bitte-ai-spec": "0.0.12",
4347
"borsh": "^2.0.0",
4448
"commander": "^12.1.0",
4549
"dotenv": "^16.4.5",
@@ -48,12 +52,10 @@
4852
"is-port-reachable": "^4.0.0",
4953
"js-sha256": "^0.11.0",
5054
"near-api-js": "^5.0.1",
51-
"open": "^10.1.0",
52-
"zod": "^3.24.2"
55+
"open": "^10.1.0"
5356
},
5457
"devDependencies": {
5558
"@eslint/js": "^9.19.0",
56-
"@scalar/openapi-types": "^0.1.7",
5759
"@types/express": "^5.0.0",
5860
"@types/inquirer": "^9.0.7",
5961
"@types/node": "^22.7.2",
@@ -75,4 +77,4 @@
7577
"crypto-js": "^4.2.0"
7678
}
7779
}
78-
}
80+
}

0 commit comments

Comments
 (0)