@lesliechan721/aw-plugin-core 0.1.0-beta.3 → 0.1.0-beta.30
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/aw-capabilities.d.ts +27 -0
- package/dist/aw-capabilities.js +108 -0
- package/dist/aw-capabilities.js.map +1 -0
- package/dist/catalog-workspace-resolution.d.ts +3 -0
- package/dist/catalog-workspace-resolution.js +34 -0
- package/dist/catalog-workspace-resolution.js.map +1 -0
- package/dist/generated/plugin-manifest-v3.d.ts +675 -0
- package/dist/generated/{plugin-manifest-v1.js → plugin-manifest-v3.js} +1 -1
- package/dist/generated/plugin-manifest-v3.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest-contract.d.ts +3 -6
- package/dist/manifest-contract.js +209 -406
- package/dist/manifest-contract.js.map +1 -1
- package/dist/manifest-type-contract.d.ts +2 -2
- package/dist/manifest.d.ts +10 -8
- package/dist/manifest.js +11 -7
- package/dist/manifest.js.map +1 -1
- package/dist/plugin-authoring-capabilities.d.ts +21 -0
- package/dist/plugin-authoring-capabilities.js +187 -0
- package/dist/plugin-authoring-capabilities.js.map +1 -0
- package/dist/plugin-config.d.ts +13 -0
- package/dist/plugin-config.js +645 -0
- package/dist/plugin-config.js.map +1 -0
- package/dist/plugin-requirements.d.ts +34 -0
- package/dist/plugin-requirements.js +250 -0
- package/dist/plugin-requirements.js.map +1 -0
- package/dist/plugin-script-contract.d.ts +10 -12
- package/dist/plugin-script-contract.js +34 -64
- package/dist/plugin-script-contract.js.map +1 -1
- package/dist/types.d.ts +142 -62
- package/dist/workspace.d.ts +54 -29
- package/dist/workspace.js +497 -269
- package/dist/workspace.js.map +1 -1
- package/package.json +8 -4
- package/schemas/plugin-manifest-v3.json +590 -0
- package/dist/generated/plugin-manifest-v1.d.ts +0 -368
- package/dist/generated/plugin-manifest-v1.js.map +0 -1
- package/dist/plugin-release.d.ts +0 -30
- package/dist/plugin-release.js +0 -187
- package/dist/plugin-release.js.map +0 -1
- package/schemas/plugin-manifest-v1.json +0 -329
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
3
|
+
* via the `definition` "semver".
|
|
4
|
+
*/
|
|
5
|
+
export type Semver = string;
|
|
6
|
+
/**
|
|
7
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
8
|
+
* via the `definition` "pluginPath".
|
|
9
|
+
*/
|
|
10
|
+
export type PluginPath = string;
|
|
11
|
+
/**
|
|
12
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
13
|
+
* via the `definition` "stringArray".
|
|
14
|
+
*/
|
|
15
|
+
export type StringArray = string[];
|
|
16
|
+
/**
|
|
17
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
18
|
+
* via the `definition` "artifactTarget".
|
|
19
|
+
*/
|
|
20
|
+
export type ArtifactTarget = ({
|
|
21
|
+
id: string;
|
|
22
|
+
platform?: ("codex" | "claude");
|
|
23
|
+
distribution?: "agent-skills";
|
|
24
|
+
scopes: ("user" | "project")[];
|
|
25
|
+
target: "codex.skill";
|
|
26
|
+
kind?: ("instruction" | "codexRole" | "skill");
|
|
27
|
+
projectManagedKind?: ("skill" | "mcpServer" | "instruction" | "permission" | "hook" | "agent");
|
|
28
|
+
states: ("present" | "disabled")[];
|
|
29
|
+
refreshKeys: StringArray;
|
|
30
|
+
requiresCodexProjectConfig?: boolean;
|
|
31
|
+
delivery: CodexSkillDelivery;
|
|
32
|
+
roleKey?: string;
|
|
33
|
+
skillKey?: string;
|
|
34
|
+
sourceDirs?: StringArray;
|
|
35
|
+
runtimeImports?: ArtifactRuntimeImports;
|
|
36
|
+
} | {
|
|
37
|
+
id: string;
|
|
38
|
+
platform?: ("codex" | "claude");
|
|
39
|
+
distribution?: "agent-skills";
|
|
40
|
+
scopes: ("user" | "project")[];
|
|
41
|
+
target: ("codex.developerInstructionsBlock" | "codex.agentRole" | "claude.skill" | "agent-skills.skill");
|
|
42
|
+
kind?: ("instruction" | "codexRole" | "skill");
|
|
43
|
+
projectManagedKind?: ("skill" | "mcpServer" | "instruction" | "permission" | "hook" | "agent");
|
|
44
|
+
states: ("present" | "disabled")[];
|
|
45
|
+
refreshKeys: StringArray;
|
|
46
|
+
requiresCodexProjectConfig?: boolean;
|
|
47
|
+
roleKey?: string;
|
|
48
|
+
skillKey?: string;
|
|
49
|
+
sourceDirs?: StringArray;
|
|
50
|
+
runtimeImports?: ArtifactRuntimeImports;
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
54
|
+
* via the `definition` "codexSkillDelivery".
|
|
55
|
+
*/
|
|
56
|
+
export type CodexSkillDelivery = ({
|
|
57
|
+
mode: "codex-native";
|
|
58
|
+
identity: "shared";
|
|
59
|
+
renderProfile: "user";
|
|
60
|
+
} | {
|
|
61
|
+
mode: "aw-extension";
|
|
62
|
+
});
|
|
63
|
+
export type Capabilities = string[];
|
|
64
|
+
/**
|
|
65
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
66
|
+
* via the `definition` "artifactRuntimeImports".
|
|
67
|
+
*/
|
|
68
|
+
export type ArtifactRuntimeImports = {
|
|
69
|
+
name: string;
|
|
70
|
+
plugin: string;
|
|
71
|
+
export: string;
|
|
72
|
+
resolved?: {
|
|
73
|
+
path: string;
|
|
74
|
+
digest: string;
|
|
75
|
+
providerPluginId: string;
|
|
76
|
+
providerVersion: Semver;
|
|
77
|
+
source: string;
|
|
78
|
+
requiredCapabilities: Capabilities;
|
|
79
|
+
capabilitySetDigest: string;
|
|
80
|
+
};
|
|
81
|
+
}[];
|
|
82
|
+
/**
|
|
83
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
84
|
+
* via the `definition` "configField".
|
|
85
|
+
*/
|
|
86
|
+
export type ConfigField = (ConfigStringField | ConfigNumberField | ConfigBooleanField | ConfigObjectField);
|
|
87
|
+
/**
|
|
88
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
89
|
+
* via the `definition` "configStringField".
|
|
90
|
+
*/
|
|
91
|
+
export type ConfigStringField = (ConfigPlainStringField | ConfigSensitiveStringField);
|
|
92
|
+
/**
|
|
93
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
94
|
+
* via the `definition` "configObjectField".
|
|
95
|
+
*/
|
|
96
|
+
export type ConfigObjectField = (ConfigFixedObjectField | ConfigKeyValueObjectField);
|
|
97
|
+
/**
|
|
98
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
99
|
+
* via the `definition` "configScalar".
|
|
100
|
+
*/
|
|
101
|
+
export type ConfigScalar = (string | number | boolean);
|
|
102
|
+
/**
|
|
103
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
104
|
+
* via the `definition` "configScalarChildField".
|
|
105
|
+
*/
|
|
106
|
+
export type ConfigScalarChildField = (ConfigStringChildField | ConfigNumberChildField | ConfigBooleanChildField);
|
|
107
|
+
/**
|
|
108
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
109
|
+
* via the `definition` "configScalarDynamicField".
|
|
110
|
+
*/
|
|
111
|
+
export type ConfigScalarDynamicField = (ConfigStringDynamicField | ConfigNumberDynamicField | ConfigBooleanDynamicField);
|
|
112
|
+
/**
|
|
113
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
114
|
+
* via the `definition` "configScalarField".
|
|
115
|
+
*/
|
|
116
|
+
export type ConfigScalarField = (ConfigStringField | ConfigNumberField | ConfigBooleanField);
|
|
117
|
+
export interface PluginManifestSourceV3 {
|
|
118
|
+
schemaVersion: 3;
|
|
119
|
+
name: string;
|
|
120
|
+
version: Semver;
|
|
121
|
+
description: string;
|
|
122
|
+
/**
|
|
123
|
+
* @maxItems 64
|
|
124
|
+
*/
|
|
125
|
+
dependencies?: string[];
|
|
126
|
+
requires?: Requires;
|
|
127
|
+
skills?: PluginPath;
|
|
128
|
+
slashCommands?: PluginPath;
|
|
129
|
+
mcpServers?: PluginPath;
|
|
130
|
+
apps?: PluginPath;
|
|
131
|
+
distributions?: Distributions;
|
|
132
|
+
marketplace: Marketplace;
|
|
133
|
+
interface?: Interface;
|
|
134
|
+
extensions?: Extensions;
|
|
135
|
+
artifacts?: Artifacts;
|
|
136
|
+
buildConfig?: BuildConfig;
|
|
137
|
+
scripts?: Scripts;
|
|
138
|
+
config?: Config;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
142
|
+
* via the `definition` "requires".
|
|
143
|
+
*/
|
|
144
|
+
export interface Requires {
|
|
145
|
+
aw: {
|
|
146
|
+
capabilities?: string[];
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
151
|
+
* via the `definition` "distributions".
|
|
152
|
+
*/
|
|
153
|
+
export interface Distributions {
|
|
154
|
+
agentSkills?: {
|
|
155
|
+
skills?: PluginPath;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
160
|
+
* via the `definition` "marketplace".
|
|
161
|
+
*/
|
|
162
|
+
export interface Marketplace {
|
|
163
|
+
category: string;
|
|
164
|
+
tags?: string[];
|
|
165
|
+
strict: boolean;
|
|
166
|
+
policy: {
|
|
167
|
+
installation: ("AVAILABLE" | "NOT_AVAILABLE" | "INSTALLED_BY_DEFAULT");
|
|
168
|
+
authentication: ("ON_INSTALL" | "ON_USE");
|
|
169
|
+
products?: string[];
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
174
|
+
* via the `definition` "interface".
|
|
175
|
+
*/
|
|
176
|
+
export interface Interface {
|
|
177
|
+
displayName?: string;
|
|
178
|
+
shortDescription?: string;
|
|
179
|
+
capabilities?: string[];
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
183
|
+
* via the `definition` "extensions".
|
|
184
|
+
*/
|
|
185
|
+
export interface Extensions {
|
|
186
|
+
instructions?: Instruction[];
|
|
187
|
+
permissions?: Permission[];
|
|
188
|
+
hooks?: Hook[];
|
|
189
|
+
nativeHooks?: {
|
|
190
|
+
claude?: NativeHook[];
|
|
191
|
+
codex?: NativeHook[];
|
|
192
|
+
};
|
|
193
|
+
agents?: Agent[];
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
197
|
+
* via the `definition` "instruction".
|
|
198
|
+
*/
|
|
199
|
+
export interface Instruction {
|
|
200
|
+
name: string;
|
|
201
|
+
title: string;
|
|
202
|
+
content: string;
|
|
203
|
+
paths?: StringArray;
|
|
204
|
+
agentOverrides?: PlatformOverrides;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
208
|
+
* via the `definition` "platformOverrides".
|
|
209
|
+
*/
|
|
210
|
+
export interface PlatformOverrides {
|
|
211
|
+
claude?: ({
|
|
212
|
+
[k: string]: unknown;
|
|
213
|
+
} | null);
|
|
214
|
+
codex?: ({
|
|
215
|
+
[k: string]: unknown;
|
|
216
|
+
} | null);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
220
|
+
* via the `definition` "permission".
|
|
221
|
+
*/
|
|
222
|
+
export interface Permission {
|
|
223
|
+
name: string;
|
|
224
|
+
allow?: StringArray;
|
|
225
|
+
ask?: StringArray;
|
|
226
|
+
deny?: StringArray;
|
|
227
|
+
agentOverrides?: PlatformOverrides;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
231
|
+
* via the `definition` "hook".
|
|
232
|
+
*/
|
|
233
|
+
export interface Hook {
|
|
234
|
+
event: string;
|
|
235
|
+
matcher?: string;
|
|
236
|
+
command: string;
|
|
237
|
+
agentOverrides?: PlatformOverrides;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
241
|
+
* via the `definition` "nativeHook".
|
|
242
|
+
*/
|
|
243
|
+
export interface NativeHook {
|
|
244
|
+
event: string;
|
|
245
|
+
matcher?: string;
|
|
246
|
+
command: string;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
250
|
+
* via the `definition` "agent".
|
|
251
|
+
*/
|
|
252
|
+
export interface Agent {
|
|
253
|
+
name: string;
|
|
254
|
+
description: string;
|
|
255
|
+
prompt: string;
|
|
256
|
+
tools?: StringArray;
|
|
257
|
+
agentOverrides?: PlatformOverrides;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
261
|
+
* via the `definition` "artifacts".
|
|
262
|
+
*/
|
|
263
|
+
export interface Artifacts {
|
|
264
|
+
targets?: ArtifactTarget[];
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
268
|
+
* via the `definition` "buildConfig".
|
|
269
|
+
*/
|
|
270
|
+
export interface BuildConfig {
|
|
271
|
+
cacheable?: true;
|
|
272
|
+
templates?: {
|
|
273
|
+
vars: {
|
|
274
|
+
[k: string]: PlatformTemplateValue;
|
|
275
|
+
};
|
|
276
|
+
include: StringArray;
|
|
277
|
+
};
|
|
278
|
+
fileRules?: {
|
|
279
|
+
claude?: FileRules;
|
|
280
|
+
codex?: FileRules;
|
|
281
|
+
};
|
|
282
|
+
manifestOverrides?: {
|
|
283
|
+
claude?: {
|
|
284
|
+
commands?: string;
|
|
285
|
+
outputStyles?: string;
|
|
286
|
+
lspServers?: unknown;
|
|
287
|
+
userConfig?: unknown;
|
|
288
|
+
channels?: unknown;
|
|
289
|
+
};
|
|
290
|
+
codex?: {
|
|
291
|
+
[k: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
runtimeExports?: {
|
|
295
|
+
name: string;
|
|
296
|
+
source: string;
|
|
297
|
+
requires: RuntimeExportRequires;
|
|
298
|
+
}[];
|
|
299
|
+
buildImports?: {
|
|
300
|
+
plugin: string;
|
|
301
|
+
export: string;
|
|
302
|
+
env: string;
|
|
303
|
+
}[];
|
|
304
|
+
skillRuntimeFiles?: {
|
|
305
|
+
skill: string;
|
|
306
|
+
target: string;
|
|
307
|
+
platforms?: ("codex" | "claude")[];
|
|
308
|
+
distributions?: ("agent-skills")[];
|
|
309
|
+
source?: string;
|
|
310
|
+
import?: ImportReference;
|
|
311
|
+
}[];
|
|
312
|
+
generatedSkillRuntimeFiles?: {
|
|
313
|
+
skill: string;
|
|
314
|
+
target: string;
|
|
315
|
+
distributions?: ("agent-skills")[];
|
|
316
|
+
}[];
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
320
|
+
* via the `definition` "platformTemplateValue".
|
|
321
|
+
*/
|
|
322
|
+
export interface PlatformTemplateValue {
|
|
323
|
+
claude: (string | boolean);
|
|
324
|
+
codex: (string | boolean);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
328
|
+
* via the `definition` "fileRules".
|
|
329
|
+
*/
|
|
330
|
+
export interface FileRules {
|
|
331
|
+
include: StringArray;
|
|
332
|
+
exclude: StringArray;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
336
|
+
* via the `definition` "runtimeExportRequires".
|
|
337
|
+
*/
|
|
338
|
+
export interface RuntimeExportRequires {
|
|
339
|
+
aw: {
|
|
340
|
+
capabilities: Capabilities;
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
345
|
+
* via the `definition` "importReference".
|
|
346
|
+
*/
|
|
347
|
+
export interface ImportReference {
|
|
348
|
+
plugin: string;
|
|
349
|
+
export: string;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
353
|
+
* via the `definition` "scripts".
|
|
354
|
+
*/
|
|
355
|
+
export interface Scripts {
|
|
356
|
+
preApply?: PreApply;
|
|
357
|
+
helpers?: {
|
|
358
|
+
config: string;
|
|
359
|
+
};
|
|
360
|
+
node?: {
|
|
361
|
+
packageRoot?: string;
|
|
362
|
+
build?: ScriptEntry;
|
|
363
|
+
};
|
|
364
|
+
artifacts?: {
|
|
365
|
+
render?: ScriptEntry;
|
|
366
|
+
};
|
|
367
|
+
tests?: {
|
|
368
|
+
node?: StringArray;
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
373
|
+
* via the `definition` "preApply".
|
|
374
|
+
*/
|
|
375
|
+
export interface PreApply {
|
|
376
|
+
path: PluginPath;
|
|
377
|
+
timeoutMs?: number;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
381
|
+
* via the `definition` "scriptEntry".
|
|
382
|
+
*/
|
|
383
|
+
export interface ScriptEntry {
|
|
384
|
+
runner: "node";
|
|
385
|
+
path: string;
|
|
386
|
+
args?: StringArray;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
390
|
+
* via the `definition` "config".
|
|
391
|
+
*/
|
|
392
|
+
export interface Config {
|
|
393
|
+
fields: {
|
|
394
|
+
[k: string]: ConfigField;
|
|
395
|
+
};
|
|
396
|
+
presentation?: {
|
|
397
|
+
groups?: {
|
|
398
|
+
id: string;
|
|
399
|
+
title: string;
|
|
400
|
+
description?: string;
|
|
401
|
+
fields: StringArray;
|
|
402
|
+
advanced?: boolean;
|
|
403
|
+
}[];
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
408
|
+
* via the `definition` "configPlainStringField".
|
|
409
|
+
*/
|
|
410
|
+
export interface ConfigPlainStringField {
|
|
411
|
+
type: "string";
|
|
412
|
+
title?: string;
|
|
413
|
+
description?: string;
|
|
414
|
+
default?: string;
|
|
415
|
+
required?: boolean;
|
|
416
|
+
sensitive?: false;
|
|
417
|
+
choices?: ConfigStringChoices;
|
|
418
|
+
validation?: ConfigStringValidation;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
422
|
+
* via the `definition` "configStringChoices".
|
|
423
|
+
*/
|
|
424
|
+
export interface ConfigStringChoices {
|
|
425
|
+
allowCustom: boolean;
|
|
426
|
+
presets: ConfigStringPreset[];
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
430
|
+
* via the `definition` "configStringPreset".
|
|
431
|
+
*/
|
|
432
|
+
export interface ConfigStringPreset {
|
|
433
|
+
id: string;
|
|
434
|
+
title: string;
|
|
435
|
+
description?: string;
|
|
436
|
+
value: string;
|
|
437
|
+
recommended?: true;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
441
|
+
* via the `definition` "configStringValidation".
|
|
442
|
+
*/
|
|
443
|
+
export interface ConfigStringValidation {
|
|
444
|
+
minLength?: number;
|
|
445
|
+
maxLength?: number;
|
|
446
|
+
pattern?: string;
|
|
447
|
+
format?: ("identifier" | "slug" | "semver" | "url" | "hostname" | "email");
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
451
|
+
* via the `definition` "configSensitiveStringField".
|
|
452
|
+
*/
|
|
453
|
+
export interface ConfigSensitiveStringField {
|
|
454
|
+
type: "string";
|
|
455
|
+
title?: string;
|
|
456
|
+
description?: string;
|
|
457
|
+
required?: boolean;
|
|
458
|
+
sensitive: true;
|
|
459
|
+
validation?: ConfigStringValidation;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
463
|
+
* via the `definition` "configNumberField".
|
|
464
|
+
*/
|
|
465
|
+
export interface ConfigNumberField {
|
|
466
|
+
type: "number";
|
|
467
|
+
title?: string;
|
|
468
|
+
description?: string;
|
|
469
|
+
default?: number;
|
|
470
|
+
required?: boolean;
|
|
471
|
+
sensitive?: never;
|
|
472
|
+
choices?: ConfigNumberChoices;
|
|
473
|
+
validation?: ConfigNumberValidation;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
477
|
+
* via the `definition` "configNumberChoices".
|
|
478
|
+
*/
|
|
479
|
+
export interface ConfigNumberChoices {
|
|
480
|
+
allowCustom: boolean;
|
|
481
|
+
presets: ConfigNumberPreset[];
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
485
|
+
* via the `definition` "configNumberPreset".
|
|
486
|
+
*/
|
|
487
|
+
export interface ConfigNumberPreset {
|
|
488
|
+
id: string;
|
|
489
|
+
title: string;
|
|
490
|
+
description?: string;
|
|
491
|
+
value: number;
|
|
492
|
+
recommended?: true;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
496
|
+
* via the `definition` "configNumberValidation".
|
|
497
|
+
*/
|
|
498
|
+
export interface ConfigNumberValidation {
|
|
499
|
+
integer?: boolean;
|
|
500
|
+
minimum?: number;
|
|
501
|
+
maximum?: number;
|
|
502
|
+
multipleOf?: number;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
506
|
+
* via the `definition` "configBooleanField".
|
|
507
|
+
*/
|
|
508
|
+
export interface ConfigBooleanField {
|
|
509
|
+
type: "boolean";
|
|
510
|
+
title?: string;
|
|
511
|
+
description?: string;
|
|
512
|
+
default?: boolean;
|
|
513
|
+
required?: boolean;
|
|
514
|
+
sensitive?: never;
|
|
515
|
+
choices?: ConfigBooleanChoices;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
519
|
+
* via the `definition` "configBooleanChoices".
|
|
520
|
+
*/
|
|
521
|
+
export interface ConfigBooleanChoices {
|
|
522
|
+
allowCustom: boolean;
|
|
523
|
+
presets: ConfigBooleanPreset[];
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
527
|
+
* via the `definition` "configBooleanPreset".
|
|
528
|
+
*/
|
|
529
|
+
export interface ConfigBooleanPreset {
|
|
530
|
+
id: string;
|
|
531
|
+
title: string;
|
|
532
|
+
description?: string;
|
|
533
|
+
value: boolean;
|
|
534
|
+
recommended?: true;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
538
|
+
* via the `definition` "configFixedObjectField".
|
|
539
|
+
*/
|
|
540
|
+
export interface ConfigFixedObjectField {
|
|
541
|
+
type: "object";
|
|
542
|
+
title?: string;
|
|
543
|
+
description?: string;
|
|
544
|
+
default?: {
|
|
545
|
+
[k: string]: ConfigScalar;
|
|
546
|
+
};
|
|
547
|
+
required?: boolean;
|
|
548
|
+
sensitive?: never;
|
|
549
|
+
choices?: ConfigObjectChoices;
|
|
550
|
+
properties: {
|
|
551
|
+
[k: string]: ConfigScalarChildField;
|
|
552
|
+
};
|
|
553
|
+
additionalProperties?: false;
|
|
554
|
+
validation?: ConfigObjectValidation;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
558
|
+
* via the `definition` "configObjectChoices".
|
|
559
|
+
*/
|
|
560
|
+
export interface ConfigObjectChoices {
|
|
561
|
+
allowCustom: boolean;
|
|
562
|
+
presets: ConfigObjectPreset[];
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
566
|
+
* via the `definition` "configObjectPreset".
|
|
567
|
+
*/
|
|
568
|
+
export interface ConfigObjectPreset {
|
|
569
|
+
id: string;
|
|
570
|
+
title: string;
|
|
571
|
+
description?: string;
|
|
572
|
+
value: {
|
|
573
|
+
[k: string]: ConfigScalar;
|
|
574
|
+
};
|
|
575
|
+
recommended?: true;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
579
|
+
* via the `definition` "configStringChildField".
|
|
580
|
+
*/
|
|
581
|
+
export interface ConfigStringChildField {
|
|
582
|
+
type: "string";
|
|
583
|
+
title?: string;
|
|
584
|
+
description?: string;
|
|
585
|
+
required?: boolean;
|
|
586
|
+
sensitive?: never;
|
|
587
|
+
choices?: ConfigStringChoices;
|
|
588
|
+
validation?: ConfigStringValidation;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
592
|
+
* via the `definition` "configNumberChildField".
|
|
593
|
+
*/
|
|
594
|
+
export interface ConfigNumberChildField {
|
|
595
|
+
type: "number";
|
|
596
|
+
title?: string;
|
|
597
|
+
description?: string;
|
|
598
|
+
required?: boolean;
|
|
599
|
+
sensitive?: never;
|
|
600
|
+
choices?: ConfigNumberChoices;
|
|
601
|
+
validation?: ConfigNumberValidation;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
605
|
+
* via the `definition` "configBooleanChildField".
|
|
606
|
+
*/
|
|
607
|
+
export interface ConfigBooleanChildField {
|
|
608
|
+
type: "boolean";
|
|
609
|
+
title?: string;
|
|
610
|
+
description?: string;
|
|
611
|
+
required?: boolean;
|
|
612
|
+
sensitive?: never;
|
|
613
|
+
choices?: ConfigBooleanChoices;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
617
|
+
* via the `definition` "configObjectValidation".
|
|
618
|
+
*/
|
|
619
|
+
export interface ConfigObjectValidation {
|
|
620
|
+
minProperties?: number;
|
|
621
|
+
maxProperties?: number;
|
|
622
|
+
key?: ConfigStringValidation;
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
626
|
+
* via the `definition` "configKeyValueObjectField".
|
|
627
|
+
*/
|
|
628
|
+
export interface ConfigKeyValueObjectField {
|
|
629
|
+
type: "object";
|
|
630
|
+
title?: string;
|
|
631
|
+
description?: string;
|
|
632
|
+
default?: {
|
|
633
|
+
[k: string]: ConfigScalar;
|
|
634
|
+
};
|
|
635
|
+
required?: boolean;
|
|
636
|
+
sensitive?: never;
|
|
637
|
+
choices?: ConfigObjectChoices;
|
|
638
|
+
additionalProperties: ConfigScalarDynamicField;
|
|
639
|
+
validation?: ConfigObjectValidation;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
643
|
+
* via the `definition` "configStringDynamicField".
|
|
644
|
+
*/
|
|
645
|
+
export interface ConfigStringDynamicField {
|
|
646
|
+
type: "string";
|
|
647
|
+
title?: string;
|
|
648
|
+
description?: string;
|
|
649
|
+
sensitive?: never;
|
|
650
|
+
choices?: ConfigStringChoices;
|
|
651
|
+
validation?: ConfigStringValidation;
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
655
|
+
* via the `definition` "configNumberDynamicField".
|
|
656
|
+
*/
|
|
657
|
+
export interface ConfigNumberDynamicField {
|
|
658
|
+
type: "number";
|
|
659
|
+
title?: string;
|
|
660
|
+
description?: string;
|
|
661
|
+
sensitive?: never;
|
|
662
|
+
choices?: ConfigNumberChoices;
|
|
663
|
+
validation?: ConfigNumberValidation;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* This interface was referenced by `PluginManifestSourceV3`'s JSON-Schema
|
|
667
|
+
* via the `definition` "configBooleanDynamicField".
|
|
668
|
+
*/
|
|
669
|
+
export interface ConfigBooleanDynamicField {
|
|
670
|
+
type: "boolean";
|
|
671
|
+
title?: string;
|
|
672
|
+
description?: string;
|
|
673
|
+
sensitive?: never;
|
|
674
|
+
choices?: ConfigBooleanChoices;
|
|
675
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manifest-v3.js","sourceRoot":"","sources":["../../src/generated/plugin-manifest-v3.ts"],"names":[],"mappings":"AAAA,uFAAuF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './manifest.js';
|
|
2
|
-
export type {
|
|
2
|
+
export type { PluginManifestSourceV3 } from './generated/plugin-manifest-v3.js';
|
|
3
3
|
export * from './workspace.js';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './catalog-workspace-resolution.js';
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAE7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAE7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mCAAmC,CAAA"}
|