@adea-ai/plugins 1.0.0
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/LICENSE +201 -0
- package/README.md +74 -0
- package/dist/agent-plugins-catalog.d.ts +26 -0
- package/dist/agent-plugins-catalog.js +699 -0
- package/dist/agent-plugins-catalog.js.map +1 -0
- package/dist/agent-plugins-harness.d.ts +54 -0
- package/dist/agent-plugins-harness.js +212 -0
- package/dist/agent-plugins-harness.js.map +1 -0
- package/dist/agent-plugins-schema.d.ts +402 -0
- package/dist/agent-plugins-schema.js +200 -0
- package/dist/agent-plugins-schema.js.map +1 -0
- package/dist/consumer-index.d.ts +217 -0
- package/dist/consumer-index.js +358 -0
- package/dist/consumer-index.js.map +1 -0
- package/dist/display-name.d.ts +8 -0
- package/dist/display-name.js +160 -0
- package/dist/display-name.js.map +1 -0
- package/dist/harness.d.ts +13 -0
- package/dist/harness.js +169 -0
- package/dist/harness.js.map +1 -0
- package/dist/icon-mirror.d.ts +69 -0
- package/dist/icon-mirror.js +147 -0
- package/dist/icon-mirror.js.map +1 -0
- package/dist/icons.d.ts +65 -0
- package/dist/icons.js +268 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +304 -0
- package/dist/index.js +1877 -0
- package/dist/index.js.map +1 -0
- package/dist/portable-catalog.d.ts +9 -0
- package/dist/portable-catalog.js +175 -0
- package/dist/portable-catalog.js.map +1 -0
- package/dist/publication.d.ts +98 -0
- package/dist/publication.js +121 -0
- package/dist/publication.js.map +1 -0
- package/dist/schema.d.ts +705 -0
- package/dist/schema.js +267 -0
- package/dist/schema.js.map +1 -0
- package/dist/site-icons.d.ts +55 -0
- package/dist/site-icons.js +155 -0
- package/dist/site-icons.js.map +1 -0
- package/dist/sources.d.ts +54 -0
- package/dist/sources.js +306 -0
- package/dist/sources.js.map +1 -0
- package/package.json +102 -0
- package/schemas/agent-package.v1.json +387 -0
- package/schemas/catalog.v1.schema.json +407 -0
- package/schemas/compatibility.v1.schema.json +23 -0
- package/schemas/harness-profile.v1.json +75 -0
- package/schemas/installation-plan.v2.json +695 -0
- package/schemas/sources-lock.v1.schema.json +61 -0
- package/src/agent-plugins-catalog.test.ts +402 -0
- package/src/agent-plugins-catalog.ts +800 -0
- package/src/agent-plugins-harness.test.ts +272 -0
- package/src/agent-plugins-harness.ts +281 -0
- package/src/agent-plugins-schema.test.ts +27 -0
- package/src/agent-plugins-schema.ts +219 -0
- package/src/artifacts.test.ts +545 -0
- package/src/catalog-installation.test.ts +42 -0
- package/src/consumer-index.test.ts +465 -0
- package/src/consumer-index.ts +592 -0
- package/src/display-name.test.ts +56 -0
- package/src/display-name.ts +157 -0
- package/src/harness.ts +202 -0
- package/src/icon-mirror.ts +196 -0
- package/src/icons.test.ts +185 -0
- package/src/icons.ts +297 -0
- package/src/index.test.ts +888 -0
- package/src/index.ts +2538 -0
- package/src/portable-catalog.test.ts +186 -0
- package/src/portable-catalog.ts +203 -0
- package/src/publication.test.ts +117 -0
- package/src/publication.ts +171 -0
- package/src/schema.ts +309 -0
- package/src/site-icon-fallback.test.ts +267 -0
- package/src/site-icons.test.ts +171 -0
- package/src/site-icons.ts +161 -0
- package/src/sources.ts +360 -0
- package/src/upstream-headers.test.ts +148 -0
package/dist/sources.js
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
export class SourceAdapterError extends Error {
|
|
3
|
+
code;
|
|
4
|
+
details;
|
|
5
|
+
constructor(code, details = []) {
|
|
6
|
+
super(`${code}${details.length > 0 ? `: ${details.join(', ')}` : ''}`);
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.details = details;
|
|
9
|
+
this.name = 'SourceAdapterError';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export function parseMarketplaceManifest(input, source) {
|
|
13
|
+
const root = record(input, 'MARKETPLACE_NOT_OBJECT');
|
|
14
|
+
const plugins = root.plugins;
|
|
15
|
+
if (!Array.isArray(plugins))
|
|
16
|
+
throw new SourceAdapterError('MARKETPLACE_PLUGINS_REQUIRED');
|
|
17
|
+
const entries = plugins.map((value, index) => parsePluginEntry(value, source, index));
|
|
18
|
+
const duplicateNames = new Set();
|
|
19
|
+
for (const entry of entries) {
|
|
20
|
+
if (duplicateNames.has(entry.name))
|
|
21
|
+
throw new SourceAdapterError('DUPLICATE_PLUGIN_NAME', [entry.name]);
|
|
22
|
+
duplicateNames.add(entry.name);
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
marketplaceName: stringValue(root.name) ?? source.displayName,
|
|
26
|
+
marketplaceDescription: stringValue(root.description) ?? '',
|
|
27
|
+
owner: ownerNames(root.owner),
|
|
28
|
+
entries,
|
|
29
|
+
raw: root,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** Parse JSON while rejecting duplicate object keys instead of accepting last-key-wins input. */
|
|
33
|
+
export function parseJsonDocument(text) {
|
|
34
|
+
let index = 0;
|
|
35
|
+
const skip = () => {
|
|
36
|
+
while (/\s/.test(text[index] ?? ''))
|
|
37
|
+
index += 1;
|
|
38
|
+
};
|
|
39
|
+
const string = () => {
|
|
40
|
+
const start = index;
|
|
41
|
+
if (text[index] !== '"')
|
|
42
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
43
|
+
index += 1;
|
|
44
|
+
while (index < text.length) {
|
|
45
|
+
const character = text[index];
|
|
46
|
+
if (character === '\\') {
|
|
47
|
+
index += 2;
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (character === '"') {
|
|
51
|
+
index += 1;
|
|
52
|
+
try {
|
|
53
|
+
return JSON.parse(text.slice(start, index));
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (character && character < ' ')
|
|
60
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
61
|
+
index += 1;
|
|
62
|
+
}
|
|
63
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
64
|
+
};
|
|
65
|
+
const value = () => {
|
|
66
|
+
skip();
|
|
67
|
+
const character = text[index];
|
|
68
|
+
if (character === '{') {
|
|
69
|
+
index += 1;
|
|
70
|
+
const object = {};
|
|
71
|
+
const keys = new Set();
|
|
72
|
+
skip();
|
|
73
|
+
if (text[index] === '}') {
|
|
74
|
+
index += 1;
|
|
75
|
+
return object;
|
|
76
|
+
}
|
|
77
|
+
while (true) {
|
|
78
|
+
skip();
|
|
79
|
+
const key = string();
|
|
80
|
+
if (keys.has(key))
|
|
81
|
+
throw new SourceAdapterError('JSON_DUPLICATE_KEY', [key]);
|
|
82
|
+
keys.add(key);
|
|
83
|
+
skip();
|
|
84
|
+
if (text[index] !== ':')
|
|
85
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
86
|
+
index += 1;
|
|
87
|
+
object[key] = value();
|
|
88
|
+
skip();
|
|
89
|
+
if (text[index] === '}') {
|
|
90
|
+
index += 1;
|
|
91
|
+
return object;
|
|
92
|
+
}
|
|
93
|
+
if (text[index] !== ',')
|
|
94
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
95
|
+
index += 1;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (character === '[') {
|
|
99
|
+
index += 1;
|
|
100
|
+
const array = [];
|
|
101
|
+
skip();
|
|
102
|
+
if (text[index] === ']') {
|
|
103
|
+
index += 1;
|
|
104
|
+
return array;
|
|
105
|
+
}
|
|
106
|
+
while (true) {
|
|
107
|
+
array.push(value());
|
|
108
|
+
skip();
|
|
109
|
+
if (text[index] === ']') {
|
|
110
|
+
index += 1;
|
|
111
|
+
return array;
|
|
112
|
+
}
|
|
113
|
+
if (text[index] !== ',')
|
|
114
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
115
|
+
index += 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (character === '"')
|
|
119
|
+
return string();
|
|
120
|
+
const start = index;
|
|
121
|
+
while (index < text.length && !/[\s,\]}]/.test(text[index] ?? ''))
|
|
122
|
+
index += 1;
|
|
123
|
+
const token = text.slice(start, index);
|
|
124
|
+
try {
|
|
125
|
+
return JSON.parse(token);
|
|
126
|
+
}
|
|
127
|
+
catch {
|
|
128
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const parsed = value();
|
|
132
|
+
skip();
|
|
133
|
+
if (index !== text.length)
|
|
134
|
+
throw new SourceAdapterError('JSON_MALFORMED');
|
|
135
|
+
return parsed;
|
|
136
|
+
}
|
|
137
|
+
function parsePluginEntry(value, source, index) {
|
|
138
|
+
const entry = record(value, 'PLUGIN_ENTRY_NOT_OBJECT', String(index));
|
|
139
|
+
const name = requiredString(entry.name, 'PLUGIN_NAME_REQUIRED', String(index));
|
|
140
|
+
const rawSource = entry.source;
|
|
141
|
+
if (rawSource === undefined)
|
|
142
|
+
throw new SourceAdapterError('PLUGIN_SOURCE_REQUIRED', [name]);
|
|
143
|
+
const sourceSpec = parseSourceSpec(rawSource, source, name);
|
|
144
|
+
const category = stringValue(entry.category);
|
|
145
|
+
const categories = [
|
|
146
|
+
...(Array.isArray(entry.categories) ? entry.categories.filter(isString) : []),
|
|
147
|
+
...(category ? [category] : []),
|
|
148
|
+
];
|
|
149
|
+
return {
|
|
150
|
+
name,
|
|
151
|
+
...(stringValue(entry.displayName) ? { displayName: stringValue(entry.displayName) } : {}),
|
|
152
|
+
description: stringValue(entry.description) ?? '',
|
|
153
|
+
categories: uniqueStrings(categories),
|
|
154
|
+
keywords: uniqueStrings(Array.isArray(entry.keywords) ? entry.keywords.filter(isString) : []),
|
|
155
|
+
authors: authorNames(entry.author ?? entry.authors),
|
|
156
|
+
...(safeOptionalUrl(entry.homepage) ? { homepage: safeOptionalUrl(entry.homepage) } : {}),
|
|
157
|
+
icons: uniqueStrings([entry.icon, ...(Array.isArray(entry.icons) ? entry.icons : [])].filter(isString)),
|
|
158
|
+
source: sourceSpec,
|
|
159
|
+
policy: recordOrEmpty(entry.policy),
|
|
160
|
+
raw: entry,
|
|
161
|
+
entryDigest: digest(entry),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export function parseSourceSpec(value, source, pluginName = 'unknown') {
|
|
165
|
+
if (typeof value === 'string') {
|
|
166
|
+
if (looksLikeUrl(value)) {
|
|
167
|
+
return { kind: 'git', repositoryUrl: canonicalRepositoryUrl(value), subdirectory: '' };
|
|
168
|
+
}
|
|
169
|
+
if (/^[a-z][a-z0-9+.-]*:/i.test(value))
|
|
170
|
+
throw new SourceAdapterError('PLUGIN_SOURCE_SCHEME_UNSUPPORTED', [pluginName, value]);
|
|
171
|
+
return { kind: 'local', path: safeRelativePath(value, `PLUGIN_SOURCE_PATH:${pluginName}`) };
|
|
172
|
+
}
|
|
173
|
+
const object = record(value, 'PLUGIN_SOURCE_INVALID', pluginName);
|
|
174
|
+
const kind = stringValue(object.source) ?? stringValue(object.type);
|
|
175
|
+
if (kind === 'local') {
|
|
176
|
+
return {
|
|
177
|
+
kind: 'local',
|
|
178
|
+
path: safeRelativePath(requiredString(object.path, 'LOCAL_PATH_REQUIRED', pluginName)),
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (kind === 'git-subdir' || kind === 'url' || kind === 'git') {
|
|
182
|
+
const url = canonicalRepositoryUrl(requiredString(object.url, 'GIT_URL_REQUIRED', pluginName));
|
|
183
|
+
const subdirectory = kind === 'git-subdir'
|
|
184
|
+
? safeRelativePath(requiredString(object.path, 'GIT_PATH_REQUIRED', pluginName))
|
|
185
|
+
: '';
|
|
186
|
+
const ref = stringValue(object.ref);
|
|
187
|
+
const sha = stringValue(object.sha);
|
|
188
|
+
if (sha !== undefined && !/^[a-f0-9]{40}$/.test(sha)) {
|
|
189
|
+
throw new SourceAdapterError('GIT_SHA_INVALID', [pluginName, sha]);
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
kind: 'git',
|
|
193
|
+
repositoryUrl: url,
|
|
194
|
+
subdirectory,
|
|
195
|
+
...(ref === undefined ? {} : { ref }),
|
|
196
|
+
...(sha === undefined ? {} : { sha }),
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
throw new SourceAdapterError('PLUGIN_SOURCE_KIND_UNSUPPORTED', [pluginName, kind ?? 'missing']);
|
|
200
|
+
}
|
|
201
|
+
export function canonicalRepositoryUrl(input) {
|
|
202
|
+
let parsed;
|
|
203
|
+
try {
|
|
204
|
+
parsed = new URL(input);
|
|
205
|
+
}
|
|
206
|
+
catch {
|
|
207
|
+
throw new SourceAdapterError('GIT_URL_INVALID', [input]);
|
|
208
|
+
}
|
|
209
|
+
if (parsed.protocol !== 'https:')
|
|
210
|
+
throw new SourceAdapterError('GIT_URL_PROTOCOL_UNSUPPORTED', [input]);
|
|
211
|
+
if (parsed.username || parsed.password || parsed.port || parsed.search || parsed.hash) {
|
|
212
|
+
throw new SourceAdapterError('GIT_URL_CREDENTIALS_OR_QUERY_FORBIDDEN', [input]);
|
|
213
|
+
}
|
|
214
|
+
const path = parsed.pathname
|
|
215
|
+
.replace(/\/+/g, '/')
|
|
216
|
+
.replace(/\/+$/, '')
|
|
217
|
+
.replace(/\.git$/, '');
|
|
218
|
+
if (!/^\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(path)) {
|
|
219
|
+
throw new SourceAdapterError('GIT_URL_REPOSITORY_PATH_INVALID', [input]);
|
|
220
|
+
}
|
|
221
|
+
return `https://${parsed.hostname.toLowerCase()}${path}`;
|
|
222
|
+
}
|
|
223
|
+
export function safeRelativePath(input, code = 'PATH_INVALID') {
|
|
224
|
+
if (!input || input.startsWith('/') || input.startsWith('\\') || /^[A-Za-z]:/.test(input)) {
|
|
225
|
+
throw new SourceAdapterError(code, [input]);
|
|
226
|
+
}
|
|
227
|
+
const normalized = input.replaceAll('\\', '/').replace(/^(\.\/)+/, '');
|
|
228
|
+
if (!normalized)
|
|
229
|
+
throw new SourceAdapterError(code, [input]);
|
|
230
|
+
const parts = normalized.split('/');
|
|
231
|
+
if (parts.some((part) => part === '..' || part === '.'))
|
|
232
|
+
throw new SourceAdapterError('PATH_TRAVERSAL', [input]);
|
|
233
|
+
if (parts.some((part) => part.length === 0))
|
|
234
|
+
throw new SourceAdapterError(code, [input]);
|
|
235
|
+
return parts.join('/');
|
|
236
|
+
}
|
|
237
|
+
function record(input, code, detail) {
|
|
238
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
239
|
+
throw new SourceAdapterError(code, detail ? [detail] : []);
|
|
240
|
+
}
|
|
241
|
+
return input;
|
|
242
|
+
}
|
|
243
|
+
function recordOrEmpty(input) {
|
|
244
|
+
return input && typeof input === 'object' && !Array.isArray(input)
|
|
245
|
+
? input
|
|
246
|
+
: {};
|
|
247
|
+
}
|
|
248
|
+
function requiredString(input, code, detail) {
|
|
249
|
+
const result = stringValue(input);
|
|
250
|
+
if (!result)
|
|
251
|
+
throw new SourceAdapterError(code, [detail]);
|
|
252
|
+
return result;
|
|
253
|
+
}
|
|
254
|
+
function stringValue(input) {
|
|
255
|
+
return typeof input === 'string' && input.trim() ? input.trim() : undefined;
|
|
256
|
+
}
|
|
257
|
+
function isString(input) {
|
|
258
|
+
return typeof input === 'string' && input.trim().length > 0;
|
|
259
|
+
}
|
|
260
|
+
function uniqueStrings(input) {
|
|
261
|
+
return [...new Set(input.map((value) => value.trim()).filter(Boolean))].toSorted((a, b) => a.localeCompare(b));
|
|
262
|
+
}
|
|
263
|
+
function authorNames(input) {
|
|
264
|
+
if (Array.isArray(input))
|
|
265
|
+
return uniqueStrings(input.flatMap((item) => authorNames(item)));
|
|
266
|
+
if (typeof input === 'string')
|
|
267
|
+
return uniqueStrings([input]);
|
|
268
|
+
if (input && typeof input === 'object') {
|
|
269
|
+
const object = input;
|
|
270
|
+
const name = stringValue(object.name) ?? stringValue(object.email);
|
|
271
|
+
return name ? [name] : [];
|
|
272
|
+
}
|
|
273
|
+
return [];
|
|
274
|
+
}
|
|
275
|
+
function ownerNames(input) {
|
|
276
|
+
return authorNames(input);
|
|
277
|
+
}
|
|
278
|
+
function safeOptionalUrl(input) {
|
|
279
|
+
if (!isString(input))
|
|
280
|
+
return undefined;
|
|
281
|
+
try {
|
|
282
|
+
const parsed = new URL(input);
|
|
283
|
+
return parsed.protocol === 'https:' ? parsed.toString() : undefined;
|
|
284
|
+
}
|
|
285
|
+
catch {
|
|
286
|
+
return undefined;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function looksLikeUrl(input) {
|
|
290
|
+
return /^https?:\/\//i.test(input);
|
|
291
|
+
}
|
|
292
|
+
function digest(value) {
|
|
293
|
+
return `sha256:${createHash('sha256').update(canonicalJson(value)).digest('hex')}`;
|
|
294
|
+
}
|
|
295
|
+
function canonicalJson(value) {
|
|
296
|
+
if (value === null || typeof value !== 'object')
|
|
297
|
+
return JSON.stringify(value);
|
|
298
|
+
if (Array.isArray(value))
|
|
299
|
+
return `[${value.map(canonicalJson).join(',')}]`;
|
|
300
|
+
const object = value;
|
|
301
|
+
return `{${Object.keys(object)
|
|
302
|
+
.toSorted()
|
|
303
|
+
.map((key) => `${JSON.stringify(key)}:${canonicalJson(object[key])}`)
|
|
304
|
+
.join(',')}}`;
|
|
305
|
+
}
|
|
306
|
+
//# sourceMappingURL=sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../src/sources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAiDxC,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAEhC;IACA;IAFX,YACW,IAAY,EACZ,UAA6B,EAAE;QAExC,KAAK,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,E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,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACpC,CAAC;AAED,SAAS,MAAM,CAAC,KAAc;IAC5B,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAA;AACpF,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAC7E,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAA;IAC1E,MAAM,MAAM,GAAG,KAAgC,CAAA;IAC/C,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;SAC3B,QAAQ,EAAE;SACV,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;SACpE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAA;AACjB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@adea-ai/plugins",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Deterministic compiler for AI agent plugin marketplaces: schemas, source parsing, provenance verification, per-harness materialization, and provenance-checked static artifacts.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"catalog",
|
|
8
|
+
"compiler",
|
|
9
|
+
"deterministic",
|
|
10
|
+
"harness",
|
|
11
|
+
"marketplace",
|
|
12
|
+
"mcp",
|
|
13
|
+
"plugins",
|
|
14
|
+
"provenance",
|
|
15
|
+
"schema",
|
|
16
|
+
"skills"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/adea-ai/plugins#readme",
|
|
19
|
+
"bugs": "https://github.com/adea-ai/plugins/issues",
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/adea-ai/plugins.git",
|
|
24
|
+
"directory": "packages/plugins"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src",
|
|
29
|
+
"schemas",
|
|
30
|
+
"README.md"
|
|
31
|
+
],
|
|
32
|
+
"type": "module",
|
|
33
|
+
"main": "dist/index.js",
|
|
34
|
+
"types": "dist/index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"bun": "./src/index.ts",
|
|
39
|
+
"import": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./schema": {
|
|
42
|
+
"types": "./dist/schema.d.ts",
|
|
43
|
+
"bun": "./src/schema.ts",
|
|
44
|
+
"import": "./dist/schema.js"
|
|
45
|
+
},
|
|
46
|
+
"./sources": {
|
|
47
|
+
"types": "./dist/sources.d.ts",
|
|
48
|
+
"bun": "./src/sources.ts",
|
|
49
|
+
"import": "./dist/sources.js"
|
|
50
|
+
},
|
|
51
|
+
"./harness": {
|
|
52
|
+
"types": "./dist/harness.d.ts",
|
|
53
|
+
"bun": "./src/harness.ts",
|
|
54
|
+
"import": "./dist/harness.js"
|
|
55
|
+
},
|
|
56
|
+
"./publication": {
|
|
57
|
+
"types": "./dist/publication.d.ts",
|
|
58
|
+
"bun": "./src/publication.ts",
|
|
59
|
+
"import": "./dist/publication.js"
|
|
60
|
+
},
|
|
61
|
+
"./portable-catalog": {
|
|
62
|
+
"types": "./dist/portable-catalog.d.ts",
|
|
63
|
+
"bun": "./src/portable-catalog.ts",
|
|
64
|
+
"import": "./dist/portable-catalog.js"
|
|
65
|
+
},
|
|
66
|
+
"./agent-plugins": {
|
|
67
|
+
"types": "./dist/agent-plugins-catalog.d.ts",
|
|
68
|
+
"bun": "./src/agent-plugins-catalog.ts",
|
|
69
|
+
"import": "./dist/agent-plugins-catalog.js"
|
|
70
|
+
},
|
|
71
|
+
"./agent-plugins/schema": {
|
|
72
|
+
"types": "./dist/agent-plugins-schema.d.ts",
|
|
73
|
+
"bun": "./src/agent-plugins-schema.ts",
|
|
74
|
+
"import": "./dist/agent-plugins-schema.js"
|
|
75
|
+
},
|
|
76
|
+
"./agent-plugins/harness": {
|
|
77
|
+
"types": "./dist/agent-plugins-harness.d.ts",
|
|
78
|
+
"bun": "./src/agent-plugins-harness.ts",
|
|
79
|
+
"import": "./dist/agent-plugins-harness.js"
|
|
80
|
+
},
|
|
81
|
+
"./schema/*": "./schemas/*"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public",
|
|
85
|
+
"provenance": true
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"build": "tsc -p tsconfig.json",
|
|
89
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
90
|
+
},
|
|
91
|
+
"dependencies": {
|
|
92
|
+
"tar-stream": "^3.2.1",
|
|
93
|
+
"yaml": "2.9.1",
|
|
94
|
+
"zod": "^4.6.5"
|
|
95
|
+
},
|
|
96
|
+
"engines": {
|
|
97
|
+
"bun": ">=1.4.0 <2",
|
|
98
|
+
"node": ">=24 <25"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {},
|
|
101
|
+
"peerDependencies": {}
|
|
102
|
+
}
|