@agentmanifest/cli 0.1.3 → 0.1.4
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.
|
@@ -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,iBAsH7D"}
|
|
@@ -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,83 @@ 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
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
59
|
+
console.log(chalk_1.default.yellow.bold('\nWarnings:'));
|
|
60
|
+
result.warnings.forEach((warning, index) => {
|
|
61
|
+
console.log(chalk_1.default.yellow(` ${index + 1}. ${warning.field}: ${warning.message}`));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
console.log(chalk_1.default.gray('\nPlease fix the errors and try again.'));
|
|
65
|
+
process.exit(1);
|
|
66
|
+
}
|
|
33
67
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
68
|
+
catch (apiError) {
|
|
69
|
+
if (axios_1.default.isAxiosError(apiError)) {
|
|
70
|
+
if (apiError.response) {
|
|
71
|
+
console.error(chalk_1.default.red('❌ Validation Failed'));
|
|
72
|
+
console.error(chalk_1.default.gray(`\nAPI Error: ${apiError.response.status} ${apiError.response.statusText}`));
|
|
73
|
+
if (apiError.response.data) {
|
|
74
|
+
const errorData = apiError.response.data;
|
|
75
|
+
if (errorData.errors && Array.isArray(errorData.errors)) {
|
|
76
|
+
console.log(chalk_1.default.red.bold('\nErrors:'));
|
|
77
|
+
errorData.errors.forEach((error, index) => {
|
|
78
|
+
const field = error.field || error.path || 'unknown';
|
|
79
|
+
const message = error.message || error.msg || 'Unknown error';
|
|
80
|
+
console.log(chalk_1.default.red(` ${index + 1}. ${field}: ${message}`));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else if (errorData.message) {
|
|
84
|
+
console.log(chalk_1.default.red(`\n${errorData.message}`));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
console.log(chalk_1.default.red(`\n${JSON.stringify(errorData, null, 2)}`));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else if (apiError.request) {
|
|
92
|
+
console.error(chalk_1.default.red('❌ Connection Error'));
|
|
93
|
+
console.error(chalk_1.default.gray('\nCould not connect to validator API.'));
|
|
94
|
+
console.error(chalk_1.default.gray('Please check your internet connection and try again.'));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
console.error(chalk_1.default.red('❌ Request Error'));
|
|
98
|
+
console.error(chalk_1.default.gray(`\n${apiError.message}`));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
throw apiError;
|
|
103
|
+
}
|
|
104
|
+
process.exit(1);
|
|
37
105
|
}
|
|
38
106
|
}
|
|
39
107
|
catch (error) {
|
|
@@ -53,126 +121,4 @@ async function validateCommand(options) {
|
|
|
53
121
|
process.exit(1);
|
|
54
122
|
}
|
|
55
123
|
}
|
|
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
124
|
//# 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,0CAsHC;AA7ID,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,yBAAyB;QACzB,MAAM,WAAW,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzD,IAAI,QAAQ,CAAC;QAEb,IAAI,CAAC;YACH,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,UAAU,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;YAC3C,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC,CAAC;YAC7E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,wBAAwB;QACxB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC;QAEvD,IAAI,CAAC;YACH,MAAM,QA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AAC;YACN,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC;YAC/C,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmanifest/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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",
|