@agentmanifest/cli 0.1.3 → 0.1.5
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.
- package/CHANGELOG.md +22 -0
- package/QUICK_START.md +3 -3
- package/README.md +15 -5
- package/dist/commands/validate.d.ts +0 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +82 -130
- package/dist/commands/validate.js.map +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ All notable changes to the AMP CLI will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.4] - 2026-02-16
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Updated documentation with correct package name and command syntax
|
|
12
|
+
- Corrected primary_category examples to use API types (reference, live, computational, etc.) instead of domain categories
|
|
13
|
+
- Standardized category spelling to use hyphens (food-science)
|
|
14
|
+
|
|
15
|
+
## [0.1.3] - 2026-02-16
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Internal improvements and bug fixes
|
|
19
|
+
|
|
20
|
+
## [0.1.2] - 2026-02-16
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Internal improvements and bug fixes
|
|
24
|
+
|
|
25
|
+
## [0.1.1] - 2026-02-16
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- Internal improvements and bug fixes
|
|
29
|
+
|
|
8
30
|
## [0.1.0] - 2026-02-15
|
|
9
31
|
|
|
10
32
|
### Added
|
package/QUICK_START.md
CHANGED
|
@@ -62,7 +62,7 @@ The wizard will help you create something like this:
|
|
|
62
62
|
"description": "Provides real-time weather data and forecasts for locations worldwide with high accuracy and comprehensive coverage including current conditions, hourly forecasts, and historical data.",
|
|
63
63
|
"homepage": "https://api.weather-data.com",
|
|
64
64
|
"categories": ["weather"],
|
|
65
|
-
"primary_category": "
|
|
65
|
+
"primary_category": "live",
|
|
66
66
|
"endpoints": [
|
|
67
67
|
{
|
|
68
68
|
"path": "/current",
|
|
@@ -163,8 +163,8 @@ Make your description at least 100 characters. Explain what your API does in det
|
|
|
163
163
|
### "Agent notes too short"
|
|
164
164
|
Make agent notes at least 50 characters. Provide implementation guidance for AI agents.
|
|
165
165
|
|
|
166
|
-
### "
|
|
167
|
-
Your primary_category must be one of
|
|
166
|
+
### "Invalid primary category"
|
|
167
|
+
Your primary_category must be one of these API types: "reference", "live", "computational", "transactional", "enrichment", "personal", or "discovery".
|
|
168
168
|
|
|
169
169
|
### "File not found"
|
|
170
170
|
Run `amp init` first to create a manifest, or use `-f` flag to specify the file path.
|
package/README.md
CHANGED
|
@@ -248,18 +248,28 @@ amp publish
|
|
|
248
248
|
- `name`: API name (string)
|
|
249
249
|
- `version`: Semantic version (e.g., "1.0.0")
|
|
250
250
|
- `description`: Min 100 characters
|
|
251
|
-
- `categories`: Array of categories
|
|
252
|
-
- `primary_category`:
|
|
251
|
+
- `categories`: Array of domain categories (from controlled vocabulary below)
|
|
252
|
+
- `primary_category`: API type - one of: "reference", "live", "computational", "transactional", "enrichment", "personal", "discovery"
|
|
253
253
|
- `endpoints`: At least one endpoint required
|
|
254
254
|
- `pricing.model`: "free", "usage_based", or "subscription"
|
|
255
255
|
- `authentication.type`: "none", "api_key", "oauth2", or "bearer"
|
|
256
256
|
- `agent_notes`: Min 50 characters - guidance for AI agents
|
|
257
257
|
|
|
258
|
-
###
|
|
258
|
+
### Primary Category Types
|
|
259
|
+
|
|
260
|
+
- `reference`: Static knowledge bases, documentation, reference data
|
|
261
|
+
- `live`: Real-time data sources (weather, markets, sensors)
|
|
262
|
+
- `computational`: APIs that perform calculations or transformations
|
|
263
|
+
- `transactional`: APIs that execute actions or state changes
|
|
264
|
+
- `enrichment`: APIs that augment existing data with additional context
|
|
265
|
+
- `personal`: User-specific data requiring authentication
|
|
266
|
+
- `discovery`: Meta-APIs for finding other data sources
|
|
267
|
+
|
|
268
|
+
### Standard Domain Categories
|
|
259
269
|
|
|
260
270
|
```
|
|
261
271
|
chemistry, biology, physics, mathematics, finance, weather,
|
|
262
|
-
geography,
|
|
272
|
+
geography, food-science, engineering, legal, medical,
|
|
263
273
|
education, translation, media, general
|
|
264
274
|
```
|
|
265
275
|
|
|
@@ -274,7 +284,7 @@ education, translation, media, general
|
|
|
274
284
|
"homepage": "https://api.weather-data.com",
|
|
275
285
|
"documentation": "https://docs.weather-data.com",
|
|
276
286
|
"categories": ["weather", "geography"],
|
|
277
|
-
"primary_category": "
|
|
287
|
+
"primary_category": "live",
|
|
278
288
|
"endpoints": [
|
|
279
289
|
{
|
|
280
290
|
"path": "/current",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":"AAOA,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAcD,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,iBA2H7D"}
|
|
@@ -8,7 +8,6 @@ const promises_1 = __importDefault(require("fs/promises"));
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const chalk_1 = __importDefault(require("chalk"));
|
|
10
10
|
const axios_1 = __importDefault(require("axios"));
|
|
11
|
-
const validator_1 = require("@agentmanifest/validator");
|
|
12
11
|
const VALIDATOR_URL = 'https://validator.agent-manifest.com/validate';
|
|
13
12
|
async function validateCommand(options) {
|
|
14
13
|
const filePath = path_1.default.resolve(process.cwd(), options.file || './agent-manifest.json');
|
|
@@ -26,14 +25,89 @@ async function validateCommand(options) {
|
|
|
26
25
|
console.error(chalk_1.default.gray('The manifest file contains invalid JSON syntax.'));
|
|
27
26
|
process.exit(1);
|
|
28
27
|
}
|
|
29
|
-
//
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
await
|
|
28
|
+
// Send to validator API
|
|
29
|
+
console.log(chalk_1.default.gray('Sending to validator API...'));
|
|
30
|
+
try {
|
|
31
|
+
const response = await axios_1.default.post(VALIDATOR_URL, { manifest }, {
|
|
32
|
+
headers: {
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
},
|
|
35
|
+
timeout: 10000,
|
|
36
|
+
});
|
|
37
|
+
const result = response.data;
|
|
38
|
+
if (result.valid) {
|
|
39
|
+
console.log(chalk_1.default.green.bold('✅ Validation Passed'));
|
|
40
|
+
console.log(chalk_1.default.gray('\nYour manifest is compliant with AMP specification v0.1'));
|
|
41
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
42
|
+
console.log(chalk_1.default.yellow.bold('\n⚠️ Warnings:'));
|
|
43
|
+
result.warnings.forEach((warning, index) => {
|
|
44
|
+
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.field}: ${warning.message}`));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
console.log(chalk_1.default.cyan('\nNext step: Run "amp publish" to submit to registry'));
|
|
48
|
+
process.exit(0);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
console.log(chalk_1.default.red.bold('❌ Validation Failed'));
|
|
52
|
+
if (result.errors && result.errors.length > 0) {
|
|
53
|
+
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
54
|
+
result.errors.forEach((error, index) => {
|
|
55
|
+
console.log(chalk_1.default.red(` ${index + 1}. ${error.field}: ${error.message}`));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// If no errors array, show the entire response for debugging
|
|
60
|
+
console.log(chalk_1.default.red.bold('\nValidation failed but no specific errors were provided.'));
|
|
61
|
+
console.log(chalk_1.default.gray('\nValidator response:'));
|
|
62
|
+
console.log(chalk_1.default.gray(JSON.stringify(result, null, 2)));
|
|
63
|
+
}
|
|
64
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
65
|
+
console.log(chalk_1.default.yellow.bold('\nWarnings:'));
|
|
66
|
+
result.warnings.forEach((warning, index) => {
|
|
67
|
+
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.field}: ${warning.message}`));
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
console.log(chalk_1.default.gray('\nPlease fix the errors and try again.'));
|
|
71
|
+
process.exit(1);
|
|
72
|
+
}
|
|
33
73
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
74
|
+
catch (apiError) {
|
|
75
|
+
if (axios_1.default.isAxiosError(apiError)) {
|
|
76
|
+
if (apiError.response) {
|
|
77
|
+
console.error(chalk_1.default.red('❌ Validation Failed'));
|
|
78
|
+
console.error(chalk_1.default.gray(`\nAPI Error: ${apiError.response.status} ${apiError.response.statusText}`));
|
|
79
|
+
if (apiError.response.data) {
|
|
80
|
+
const errorData = apiError.response.data;
|
|
81
|
+
if (errorData.errors && Array.isArray(errorData.errors)) {
|
|
82
|
+
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
83
|
+
errorData.errors.forEach((error, index) => {
|
|
84
|
+
const field = error.field || error.path || 'unknown';
|
|
85
|
+
const message = error.message || error.msg || 'Unknown error';
|
|
86
|
+
console.log(chalk_1.default.red(` ${index + 1}. ${field}: ${message}`));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
else if (errorData.message) {
|
|
90
|
+
console.log(chalk_1.default.red(`\n${errorData.message}`));
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
console.log(chalk_1.default.red(`\n${JSON.stringify(errorData, null, 2)}`));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else if (apiError.request) {
|
|
98
|
+
console.error(chalk_1.default.red('❌ Connection Error'));
|
|
99
|
+
console.error(chalk_1.default.gray('\nCould not connect to validator API.'));
|
|
100
|
+
console.error(chalk_1.default.gray('Please check your internet connection and try again.'));
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
console.error(chalk_1.default.red('❌ Request Error'));
|
|
104
|
+
console.error(chalk_1.default.gray(`\n${apiError.message}`));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
throw apiError;
|
|
109
|
+
}
|
|
110
|
+
process.exit(1);
|
|
37
111
|
}
|
|
38
112
|
}
|
|
39
113
|
catch (error) {
|
|
@@ -53,126 +127,4 @@ async function validateCommand(options) {
|
|
|
53
127
|
process.exit(1);
|
|
54
128
|
}
|
|
55
129
|
}
|
|
56
|
-
async function validateLocal(manifest) {
|
|
57
|
-
try {
|
|
58
|
-
const result = await (0, validator_1.validateManifestObject)(manifest, 'local-file');
|
|
59
|
-
// Count errors and warnings
|
|
60
|
-
const errors = result.checks.filter(check => !check.passed && check.severity === 'error');
|
|
61
|
-
const warnings = result.checks.filter(check => !check.passed && check.severity === 'warning');
|
|
62
|
-
if (result.passed) {
|
|
63
|
-
console.log(chalk_1.default.green.bold('✅ Validation Passed'));
|
|
64
|
-
console.log(chalk_1.default.gray(`\nYour manifest is compliant with AMP specification ${result.spec_version}`));
|
|
65
|
-
if (warnings.length > 0) {
|
|
66
|
-
console.log(chalk_1.default.yellow.bold('\n⚠️ Warnings:'));
|
|
67
|
-
warnings.forEach((warning, index) => {
|
|
68
|
-
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.name}: ${warning.message}`));
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
console.log(chalk_1.default.cyan('\nNext steps:'));
|
|
72
|
-
console.log(chalk_1.default.gray(' 1. Deploy your API with this manifest at /.well-known/agent-manifest.json'));
|
|
73
|
-
console.log(chalk_1.default.gray(' 2. Run "amp publish" to submit to the registry'));
|
|
74
|
-
process.exit(0);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
console.log(chalk_1.default.red.bold('❌ Validation Failed'));
|
|
78
|
-
if (errors.length > 0) {
|
|
79
|
-
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
80
|
-
errors.forEach((error, index) => {
|
|
81
|
-
console.log(chalk_1.default.red(` ${index + 1}. ${error.name}: ${error.message}`));
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if (warnings.length > 0) {
|
|
85
|
-
console.log(chalk_1.default.yellow.bold('\nWarnings:'));
|
|
86
|
-
warnings.forEach((warning, index) => {
|
|
87
|
-
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.name}: ${warning.message}`));
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
console.log(chalk_1.default.gray('\nPlease fix the errors and try again.'));
|
|
91
|
-
process.exit(1);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (validationError) {
|
|
95
|
-
console.error(chalk_1.default.red('❌ Validation Error'));
|
|
96
|
-
console.error(chalk_1.default.gray(`\n${validationError.message}`));
|
|
97
|
-
process.exit(1);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
async function validateRemote(manifest) {
|
|
101
|
-
try {
|
|
102
|
-
const response = await axios_1.default.post(VALIDATOR_URL, { manifest }, {
|
|
103
|
-
headers: {
|
|
104
|
-
'Content-Type': 'application/json',
|
|
105
|
-
},
|
|
106
|
-
timeout: 10000,
|
|
107
|
-
});
|
|
108
|
-
const result = response.data;
|
|
109
|
-
if (result.valid) {
|
|
110
|
-
console.log(chalk_1.default.green.bold('✅ Validation Passed'));
|
|
111
|
-
console.log(chalk_1.default.gray('\nYour manifest is compliant with AMP specification v0.1'));
|
|
112
|
-
if (result.warnings && result.warnings.length > 0) {
|
|
113
|
-
console.log(chalk_1.default.yellow.bold('\n⚠️ Warnings:'));
|
|
114
|
-
result.warnings.forEach((warning, index) => {
|
|
115
|
-
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.field}: ${warning.message}`));
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
console.log(chalk_1.default.cyan('\nNext step: Run "amp publish" to submit to registry'));
|
|
119
|
-
process.exit(0);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
console.log(chalk_1.default.red.bold('❌ Validation Failed'));
|
|
123
|
-
if (result.errors && result.errors.length > 0) {
|
|
124
|
-
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
125
|
-
result.errors.forEach((error, index) => {
|
|
126
|
-
console.log(chalk_1.default.red(` ${index + 1}. ${error.field}: ${error.message}`));
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (result.warnings && result.warnings.length > 0) {
|
|
130
|
-
console.log(chalk_1.default.yellow.bold('\nWarnings:'));
|
|
131
|
-
result.warnings.forEach((warning, index) => {
|
|
132
|
-
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.field}: ${warning.message}`));
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
console.log(chalk_1.default.gray('\nPlease fix the errors and try again.'));
|
|
136
|
-
process.exit(1);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (apiError) {
|
|
140
|
-
if (axios_1.default.isAxiosError(apiError)) {
|
|
141
|
-
if (apiError.response) {
|
|
142
|
-
console.error(chalk_1.default.red('❌ Validation Failed'));
|
|
143
|
-
console.error(chalk_1.default.gray(`\nAPI Error: ${apiError.response.status} ${apiError.response.statusText}`));
|
|
144
|
-
if (apiError.response.data) {
|
|
145
|
-
const errorData = apiError.response.data;
|
|
146
|
-
if (errorData.errors && Array.isArray(errorData.errors)) {
|
|
147
|
-
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
148
|
-
errorData.errors.forEach((error, index) => {
|
|
149
|
-
const field = error.field || error.path || 'unknown';
|
|
150
|
-
const message = error.message || error.msg || 'Unknown error';
|
|
151
|
-
console.log(chalk_1.default.red(` ${index + 1}. ${field}: ${message}`));
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
else if (errorData.message) {
|
|
155
|
-
console.log(chalk_1.default.red(`\n${errorData.message}`));
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
console.log(chalk_1.default.red(`\n${JSON.stringify(errorData, null, 2)}`));
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
else if (apiError.request) {
|
|
163
|
-
console.error(chalk_1.default.red('❌ Connection Error'));
|
|
164
|
-
console.error(chalk_1.default.gray('\nCould not connect to validator API.'));
|
|
165
|
-
console.error(chalk_1.default.gray('Please check your internet connection and try again.'));
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
console.error(chalk_1.default.red('❌ Request Error'));
|
|
169
|
-
console.error(chalk_1.default.gray(`\n${apiError.message}`));
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
throw apiError;
|
|
174
|
-
}
|
|
175
|
-
process.exit(1);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
130
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/commands/validate.ts"],"names":[],"mappings":";;;;;AAuBA,0CA2HC;AAlJD,2DAA6B;AAC7B,gDAAwB;AACxB,kDAA0B;AAC1B,kDAA0B;AAE1B,MAAM,aAAa,GAAG,+CAA+C,CAAC;AAkB/D,KAAK,UAAU,eAAe,CAAC,OAAwB;IAC5D,MAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,IAAI,uBAAuB,CAAC,CAAC;IAEtF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,SAAS,QAAQ,IAAI,CAAC,CAAC,CAAC;IAE/C,IAAI,CAAC;QACH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ED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmanifest/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI tool for creating, validating, and publishing Agent Manifest Protocol (AMP) manifests",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://agent-manifest.com",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@agentmanifest/validator": "^0.1.2",
|
|
31
30
|
"axios": "^1.6.7",
|
|
32
31
|
"chalk": "^4.1.2",
|
|
33
32
|
"commander": "^12.0.0",
|