@alfe.ai/integration-manifest 0.0.6 → 0.0.7
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/dist/index.d.ts +25 -7
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,9 @@ interface CommandDeclaration {
|
|
|
50
50
|
}
|
|
51
51
|
interface SkillInstall {
|
|
52
52
|
/** Relative path within the integration repo to the skill directory */
|
|
53
|
-
path
|
|
53
|
+
path?: string;
|
|
54
|
+
/** ClawHub skill slug to install from the registry */
|
|
55
|
+
clawhub?: string;
|
|
54
56
|
}
|
|
55
57
|
interface PluginInstall {
|
|
56
58
|
/** npm package name to install */
|
|
@@ -121,6 +123,12 @@ interface IntegrationManifest {
|
|
|
121
123
|
* Example: ['openclaw'] means this integration only works with OpenClaw.
|
|
122
124
|
*/
|
|
123
125
|
supported_agents?: AgentRuntime[];
|
|
126
|
+
/**
|
|
127
|
+
* Scopes where this integration can be installed.
|
|
128
|
+
* Default: ['agent'] (per-agent only).
|
|
129
|
+
* 'org' means it can be installed at the org level and cascades to all agents.
|
|
130
|
+
*/
|
|
131
|
+
supported_scopes?: ('agent' | 'org')[];
|
|
124
132
|
/** Marketplace metadata */
|
|
125
133
|
publisherId?: string;
|
|
126
134
|
icon?: string;
|
|
@@ -230,7 +238,8 @@ declare const CommandDeclarationSchema: z.ZodObject<{
|
|
|
230
238
|
description: z.ZodOptional<z.ZodString>;
|
|
231
239
|
}, z.core.$strip>;
|
|
232
240
|
declare const SkillInstallSchema: z.ZodObject<{
|
|
233
|
-
path: z.ZodString
|
|
241
|
+
path: z.ZodOptional<z.ZodString>;
|
|
242
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
234
243
|
}, z.core.$strip>;
|
|
235
244
|
declare const PluginInstallSchema: z.ZodObject<{
|
|
236
245
|
package: z.ZodString;
|
|
@@ -238,7 +247,8 @@ declare const PluginInstallSchema: z.ZodObject<{
|
|
|
238
247
|
/** Per-runtime install overrides */
|
|
239
248
|
declare const RuntimeInstallSchema: z.ZodObject<{
|
|
240
249
|
skills: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
241
|
-
path: z.ZodString
|
|
250
|
+
path: z.ZodOptional<z.ZodString>;
|
|
251
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
242
252
|
}, z.core.$strip>>>>;
|
|
243
253
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
254
|
package: z.ZodString;
|
|
@@ -247,14 +257,16 @@ declare const RuntimeInstallSchema: z.ZodObject<{
|
|
|
247
257
|
}, z.core.$strip>;
|
|
248
258
|
declare const InstallTargetsSchema: z.ZodObject<{
|
|
249
259
|
skills: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
-
path: z.ZodString
|
|
260
|
+
path: z.ZodOptional<z.ZodString>;
|
|
261
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
251
262
|
}, z.core.$strip>>>>;
|
|
252
263
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
264
|
package: z.ZodString;
|
|
254
265
|
}, z.core.$strip>>>>;
|
|
255
266
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
267
|
skills: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
257
|
-
path: z.ZodString
|
|
268
|
+
path: z.ZodOptional<z.ZodString>;
|
|
269
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
258
270
|
}, z.core.$strip>>>>;
|
|
259
271
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
260
272
|
package: z.ZodString;
|
|
@@ -284,14 +296,16 @@ declare const IntegrationManifestSchema: z.ZodObject<{
|
|
|
284
296
|
min_gateway_version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
285
297
|
installs: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
286
298
|
skills: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
-
path: z.ZodString
|
|
299
|
+
path: z.ZodOptional<z.ZodString>;
|
|
300
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
288
301
|
}, z.core.$strip>>>>;
|
|
289
302
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
290
303
|
package: z.ZodString;
|
|
291
304
|
}, z.core.$strip>>>>;
|
|
292
305
|
runtimes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
293
306
|
skills: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
-
path: z.ZodString
|
|
307
|
+
path: z.ZodOptional<z.ZodString>;
|
|
308
|
+
clawhub: z.ZodOptional<z.ZodString>;
|
|
295
309
|
}, z.core.$strip>>>>;
|
|
296
310
|
plugins: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
311
|
package: z.ZodString;
|
|
@@ -350,6 +364,10 @@ declare const IntegrationManifestSchema: z.ZodObject<{
|
|
|
350
364
|
}, z.core.$strip>>>>;
|
|
351
365
|
repository: z.ZodOptional<z.ZodURL>;
|
|
352
366
|
supported_agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
|
+
supported_scopes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
368
|
+
agent: "agent";
|
|
369
|
+
org: "org";
|
|
370
|
+
}>>>>;
|
|
353
371
|
publisherId: z.ZodOptional<z.ZodString>;
|
|
354
372
|
icon: z.ZodOptional<z.ZodString>;
|
|
355
373
|
pricing: z.ZodOptional<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -66,7 +66,10 @@ const CommandDeclarationSchema = z.object({
|
|
|
66
66
|
timeout_ms: z.number().int().positive().optional().default(3e4),
|
|
67
67
|
description: z.string().optional()
|
|
68
68
|
});
|
|
69
|
-
const SkillInstallSchema = z.object({
|
|
69
|
+
const SkillInstallSchema = z.object({
|
|
70
|
+
path: z.string().min(1, "Skill path must not be empty").optional(),
|
|
71
|
+
clawhub: z.string().min(1, "ClawHub skill slug must not be empty").optional()
|
|
72
|
+
}).refine((data) => data.path ?? data.clawhub, { message: "Skill must have either a path or clawhub slug" });
|
|
70
73
|
const PluginInstallSchema = z.object({ package: z.string().min(1, "Plugin package name must not be empty") });
|
|
71
74
|
/** Per-runtime install overrides */
|
|
72
75
|
const RuntimeInstallSchema = z.object({
|
|
@@ -133,6 +136,7 @@ const IntegrationManifestSchema = z.object({
|
|
|
133
136
|
commands: z.array(CommandDeclarationSchema).optional().default([]),
|
|
134
137
|
repository: z.url().optional(),
|
|
135
138
|
supported_agents: z.array(RuntimeKeySchema).optional(),
|
|
139
|
+
supported_scopes: z.array(z.enum(["agent", "org"])).optional().default(["agent"]),
|
|
136
140
|
publisherId: z.string().optional(),
|
|
137
141
|
icon: z.string().optional(),
|
|
138
142
|
pricing: IntegrationPricingSchema.optional(),
|