@lesliechan721/aw-plugin-core 0.1.0-beta.1

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.
Files changed (66) hide show
  1. package/dist/file-rules.d.ts +2 -0
  2. package/dist/file-rules.js +42 -0
  3. package/dist/file-rules.js.map +1 -0
  4. package/dist/generated/plugin-manifest-v1.d.ts +368 -0
  5. package/dist/generated/plugin-manifest-v1.js +3 -0
  6. package/dist/generated/plugin-manifest-v1.js.map +1 -0
  7. package/dist/hooks-contract.d.ts +189 -0
  8. package/dist/hooks-contract.js +967 -0
  9. package/dist/hooks-contract.js.map +1 -0
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.js +4 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/manifest-contract.d.ts +96 -0
  14. package/dist/manifest-contract.js +2730 -0
  15. package/dist/manifest-contract.js.map +1 -0
  16. package/dist/manifest-type-contract.d.ts +7 -0
  17. package/dist/manifest-type-contract.js +2 -0
  18. package/dist/manifest-type-contract.js.map +1 -0
  19. package/dist/manifest.d.ts +27 -0
  20. package/dist/manifest.js +59 -0
  21. package/dist/manifest.js.map +1 -0
  22. package/dist/permission-command.d.ts +3 -0
  23. package/dist/permission-command.js +11 -0
  24. package/dist/permission-command.js.map +1 -0
  25. package/dist/platform-entries.d.ts +13 -0
  26. package/dist/platform-entries.js +20 -0
  27. package/dist/platform-entries.js.map +1 -0
  28. package/dist/platform-support.d.ts +6 -0
  29. package/dist/platform-support.js +38 -0
  30. package/dist/platform-support.js.map +1 -0
  31. package/dist/plugin-release.d.ts +30 -0
  32. package/dist/plugin-release.js +187 -0
  33. package/dist/plugin-release.js.map +1 -0
  34. package/dist/plugin-script-contract.d.ts +33 -0
  35. package/dist/plugin-script-contract.js +599 -0
  36. package/dist/plugin-script-contract.js.map +1 -0
  37. package/dist/portable-skill-validation.d.ts +7 -0
  38. package/dist/portable-skill-validation.js +111 -0
  39. package/dist/portable-skill-validation.js.map +1 -0
  40. package/dist/read-json.d.ts +1 -0
  41. package/dist/read-json.js +5 -0
  42. package/dist/read-json.js.map +1 -0
  43. package/dist/runtime-export-source.d.ts +14 -0
  44. package/dist/runtime-export-source.js +73 -0
  45. package/dist/runtime-export-source.js.map +1 -0
  46. package/dist/skill-authoring.d.ts +2 -0
  47. package/dist/skill-authoring.js +13 -0
  48. package/dist/skill-authoring.js.map +1 -0
  49. package/dist/skill-frontmatter-capabilities.d.ts +36 -0
  50. package/dist/skill-frontmatter-capabilities.js +120 -0
  51. package/dist/skill-frontmatter-capabilities.js.map +1 -0
  52. package/dist/skill-frontmatter-capabilities.json +200 -0
  53. package/dist/slash-commands.d.ts +43 -0
  54. package/dist/slash-commands.js +394 -0
  55. package/dist/slash-commands.js.map +1 -0
  56. package/dist/template-engine.d.ts +2 -0
  57. package/dist/template-engine.js +26 -0
  58. package/dist/template-engine.js.map +1 -0
  59. package/dist/types.d.ts +428 -0
  60. package/dist/types.js +2 -0
  61. package/dist/types.js.map +1 -0
  62. package/dist/workspace.d.ts +105 -0
  63. package/dist/workspace.js +963 -0
  64. package/dist/workspace.js.map +1 -0
  65. package/package.json +46 -0
  66. package/schemas/plugin-manifest-v1.json +329 -0
@@ -0,0 +1,428 @@
1
+ import type { PluginManifestSourceV1 } from './generated/plugin-manifest-v1.js';
2
+ export type PlatformName = 'codex' | 'claude';
3
+ export type DistributionName = 'agent-skills';
4
+ export type Scope = 'project' | 'user';
5
+ export type CatalogChannel = 'latest' | 'beta';
6
+ export type CliVersion = string;
7
+ export type PluginVersion = string;
8
+ export type PluginId = string;
9
+ export type CatalogSourceId = string;
10
+ export type SourceIdentity = string;
11
+ export type SupportedPlatformSet = ReadonlySet<PlatformName>;
12
+ export type CodexProjectManagedKind = 'skill' | 'mcpServer' | 'instruction' | 'permission' | 'hook' | 'agent';
13
+ export type PluginInterfaceMeta = NonNullable<PluginManifestSourceV1['interface']>;
14
+ export interface MarketplaceOwner {
15
+ name: string;
16
+ url: string;
17
+ }
18
+ export interface MarketplaceInterfaceMeta {
19
+ displayName: string;
20
+ }
21
+ export interface MarketplaceSourceMeta {
22
+ owner: MarketplaceOwner;
23
+ interface: MarketplaceInterfaceMeta;
24
+ catalog: {
25
+ version: string;
26
+ };
27
+ }
28
+ export type MarketplacePolicy = PluginManifestSourceV1['marketplace']['policy'];
29
+ export type MarketplaceAuthenticationPolicy = MarketplacePolicy['authentication'];
30
+ export type PluginMarketplaceMeta = PluginManifestSourceV1['marketplace'];
31
+ export type TemplateValue = string | boolean;
32
+ export interface TemplateVarByPlatform {
33
+ claude: TemplateValue;
34
+ codex: TemplateValue;
35
+ }
36
+ export interface BuildConfigTemplates {
37
+ vars: Record<string, TemplateVarByPlatform>;
38
+ include: string[];
39
+ }
40
+ export interface BuildConfigFileRuleSet {
41
+ include: string[];
42
+ exclude: string[];
43
+ }
44
+ export interface ClaudeManifestOverrides {
45
+ commands?: string;
46
+ outputStyles?: string;
47
+ lspServers?: string | Array<string | Record<string, unknown>> | Record<string, unknown>;
48
+ userConfig?: Record<string, unknown>;
49
+ channels?: Record<string, unknown> | Array<Record<string, unknown>>;
50
+ }
51
+ export interface BuildConfigManifestOverrides {
52
+ claude?: ClaudeManifestOverrides;
53
+ codex?: Record<string, never>;
54
+ }
55
+ export interface BuildConfigRuntimeExport {
56
+ name: string;
57
+ source: string;
58
+ }
59
+ export interface BuildConfigImportReference {
60
+ plugin: string;
61
+ export: string;
62
+ }
63
+ export interface BuildConfigBuildImport extends BuildConfigImportReference {
64
+ env: string;
65
+ }
66
+ export interface BuildConfigSkillRuntimeFile {
67
+ skill: string;
68
+ target: string;
69
+ platforms?: PlatformName[];
70
+ distributions?: DistributionName[];
71
+ source?: string;
72
+ import?: BuildConfigImportReference;
73
+ }
74
+ export interface BuildConfigGeneratedSkillRuntimeFile {
75
+ skill: string;
76
+ target: string;
77
+ distributions?: DistributionName[];
78
+ }
79
+ export interface BuildConfig {
80
+ cacheable?: true;
81
+ templates?: BuildConfigTemplates;
82
+ fileRules?: Partial<Record<PlatformName, BuildConfigFileRuleSet>>;
83
+ manifestOverrides?: BuildConfigManifestOverrides;
84
+ runtimeExports?: BuildConfigRuntimeExport[];
85
+ buildImports?: BuildConfigBuildImport[];
86
+ skillRuntimeFiles?: BuildConfigSkillRuntimeFile[];
87
+ generatedSkillRuntimeFiles?: BuildConfigGeneratedSkillRuntimeFile[];
88
+ }
89
+ export type PluginLifecycleEvent = 'install' | 'upgrade' | 'uninstall';
90
+ export type PluginLifecycleOsSelector = 'default' | 'unix' | 'windows' | 'linux' | 'darwin' | 'win32';
91
+ export type PluginLifecycleRuntimeOs = 'linux' | 'darwin' | 'win32';
92
+ export type PluginLifecycleScriptRunner = 'node' | 'sh' | 'bash' | 'pwsh' | 'powershell' | 'cmd' | 'auto';
93
+ export interface PluginLifecycleScriptEntry {
94
+ runner: PluginLifecycleScriptRunner;
95
+ path: string;
96
+ args?: string[];
97
+ }
98
+ export type PluginLifecycleScriptSelector = Partial<Record<PluginLifecycleOsSelector, PluginLifecycleScriptEntry>>;
99
+ export type PluginLifecycleScriptDefinition = string | PluginLifecycleScriptSelector;
100
+ export type PluginLifecycleScripts = Partial<Record<PluginLifecycleEvent, PluginLifecycleScriptSelector>>;
101
+ export interface PluginScriptHelpersConfig {
102
+ config: string;
103
+ }
104
+ export interface PluginNodeBuildScript {
105
+ runner: 'node';
106
+ path: string;
107
+ args?: string[];
108
+ }
109
+ export interface PluginNodeScriptsConfig {
110
+ packageRoot?: string;
111
+ build?: PluginNodeBuildScript;
112
+ }
113
+ export interface PluginScriptTestsConfig {
114
+ node?: string[];
115
+ }
116
+ export interface PluginArtifactRenderScriptEntry {
117
+ runner: 'node';
118
+ path: string;
119
+ args?: string[];
120
+ }
121
+ export interface PluginArtifactScriptsConfig {
122
+ render?: PluginArtifactRenderScriptEntry;
123
+ }
124
+ export interface PluginScriptsConfig {
125
+ timeoutMs?: number;
126
+ lifecycle?: PluginLifecycleScripts;
127
+ helpers?: PluginScriptHelpersConfig;
128
+ node?: PluginNodeScriptsConfig;
129
+ artifacts?: PluginArtifactScriptsConfig;
130
+ tests?: PluginScriptTestsConfig;
131
+ }
132
+ export type PluginConfigFieldType = 'string' | 'number' | 'boolean' | 'enum' | 'file' | 'directory';
133
+ export interface PluginConfigSchemaField {
134
+ type: PluginConfigFieldType;
135
+ title?: string;
136
+ description?: string;
137
+ default?: string | number | boolean;
138
+ required?: boolean;
139
+ sensitive?: boolean;
140
+ values?: string[];
141
+ min?: number;
142
+ max?: number;
143
+ }
144
+ export type PluginConfigPresentationValue = string | number | boolean;
145
+ export interface PluginConfigPresentationGroup {
146
+ id: string;
147
+ title: string;
148
+ description?: string;
149
+ fields: string[];
150
+ advanced?: boolean;
151
+ }
152
+ export interface PluginConfigPresentationField {
153
+ valueLabels?: Record<string, string>;
154
+ recommendedValue?: PluginConfigPresentationValue;
155
+ placeholder?: string;
156
+ unit?: string;
157
+ advanced?: boolean;
158
+ }
159
+ export interface PluginConfigPresentationPreset {
160
+ id: string;
161
+ title: string;
162
+ description?: string;
163
+ values: Record<string, PluginConfigPresentationValue>;
164
+ }
165
+ export interface PluginConfigPresentation {
166
+ groups?: PluginConfigPresentationGroup[];
167
+ fields?: Record<string, PluginConfigPresentationField>;
168
+ presets?: PluginConfigPresentationPreset[];
169
+ }
170
+ export interface PluginConfigSchema {
171
+ schema: Record<string, PluginConfigSchemaField>;
172
+ presentation?: PluginConfigPresentation;
173
+ }
174
+ export interface PlatformAgentOverrides<T> {
175
+ claude?: Partial<T> | null;
176
+ codex?: Partial<T> | null;
177
+ }
178
+ export interface InstructionDefinition {
179
+ name: string;
180
+ title: string;
181
+ content: string;
182
+ paths?: string[];
183
+ agentOverrides?: PlatformAgentOverrides<{
184
+ name: string;
185
+ title: string;
186
+ content: string;
187
+ paths?: string[];
188
+ }>;
189
+ }
190
+ export interface PermissionDefinition {
191
+ name: string;
192
+ allow?: string[];
193
+ ask?: string[];
194
+ deny?: string[];
195
+ agentOverrides?: PlatformAgentOverrides<{
196
+ name: string;
197
+ allow?: string[];
198
+ ask?: string[];
199
+ deny?: string[];
200
+ }>;
201
+ }
202
+ export type HookEvent = 'before_tool' | 'after_tool' | 'session_start';
203
+ export interface HookDefinition {
204
+ event: HookEvent;
205
+ matcher?: string;
206
+ command: string;
207
+ agentOverrides?: PlatformAgentOverrides<{
208
+ event: HookEvent;
209
+ matcher?: string;
210
+ command: string;
211
+ }>;
212
+ }
213
+ export interface NativeHookDefinition {
214
+ event: string;
215
+ matcher?: string;
216
+ command: string;
217
+ }
218
+ export interface NativeHooksByPlatform {
219
+ claude?: NativeHookDefinition[];
220
+ codex?: NativeHookDefinition[];
221
+ }
222
+ export interface AgentDefinition {
223
+ name: string;
224
+ description: string;
225
+ prompt: string;
226
+ tools?: string[];
227
+ agentOverrides?: PlatformAgentOverrides<{
228
+ name: string;
229
+ description: string;
230
+ prompt: string;
231
+ tools?: string[];
232
+ }>;
233
+ }
234
+ export interface PluginExtensions {
235
+ instructions?: InstructionDefinition[];
236
+ permissions?: PermissionDefinition[];
237
+ hooks?: HookDefinition[];
238
+ nativeHooks?: NativeHooksByPlatform;
239
+ agents?: AgentDefinition[];
240
+ }
241
+ export type ArtifactState = 'present' | 'disabled';
242
+ export type ArtifactTarget = 'codex.developerInstructionsBlock' | 'codex.agentRole' | 'codex.skill' | 'claude.skill' | 'agent-skills.skill';
243
+ export type DynamicArtifactKind = 'instruction' | 'codexRole' | 'skill';
244
+ export type ManagedArtifactId = string;
245
+ export interface ArtifactRuntimeImportDefinition extends BuildConfigImportReference {
246
+ name: string;
247
+ resolved?: {
248
+ path: string;
249
+ digest: string;
250
+ providerPluginId: PluginId;
251
+ providerVersion: PluginVersion;
252
+ source: string;
253
+ };
254
+ }
255
+ export interface PluginArtifactTargetDefinition {
256
+ id: string;
257
+ platform?: PlatformName;
258
+ distribution?: DistributionName;
259
+ scopes: Scope[];
260
+ target: ArtifactTarget;
261
+ kind?: DynamicArtifactKind;
262
+ projectManagedKind?: CodexProjectManagedKind;
263
+ states: ArtifactState[];
264
+ refreshKeys: string[];
265
+ requiresCodexProjectConfig?: boolean;
266
+ roleKey?: string;
267
+ skillKey?: string;
268
+ sourceDirs?: string[];
269
+ runtimeImports?: ArtifactRuntimeImportDefinition[];
270
+ }
271
+ export interface PluginArtifactsConfig {
272
+ targets?: PluginArtifactTargetDefinition[];
273
+ }
274
+ export interface PluginAgentSkillsDistribution {
275
+ skills?: string;
276
+ }
277
+ export interface PluginDistributionsConfig {
278
+ agentSkills?: PluginAgentSkillsDistribution;
279
+ }
280
+ export interface PluginCompatibility {
281
+ aw: {
282
+ minVersion: CliVersion;
283
+ };
284
+ }
285
+ export type PluginManifestSource = PluginManifestSourceV1;
286
+ export type NormalizedPluginManifest = Omit<PluginManifestSourceV1, 'schemaVersion' | 'compatibility' | 'extensions' | 'artifacts' | 'buildConfig' | 'scripts' | 'config'> & {
287
+ schemaVersion: 1;
288
+ compatibility: PluginCompatibility;
289
+ extensions?: PluginExtensions;
290
+ artifacts?: PluginArtifactsConfig;
291
+ buildConfig?: BuildConfig;
292
+ scripts?: PluginScriptsConfig;
293
+ config?: PluginConfigSchema;
294
+ };
295
+ export interface PluginMeta {
296
+ sourceId?: CatalogSourceId;
297
+ sourceIdentity?: SourceIdentity;
298
+ pluginId?: PluginId;
299
+ marketplaceName?: string;
300
+ rootDir: string;
301
+ manifestPath: string;
302
+ manifest: NormalizedPluginManifest;
303
+ }
304
+ export interface MarketplaceManifestEntry {
305
+ name: string;
306
+ source: string;
307
+ description: string;
308
+ interface?: PluginInterfaceMeta;
309
+ category: string;
310
+ tags?: string[];
311
+ strict: boolean;
312
+ policy: MarketplacePolicy;
313
+ }
314
+ export interface MarketplaceManifest {
315
+ name: string;
316
+ owner: MarketplaceOwner;
317
+ interface: MarketplaceInterfaceMeta;
318
+ plugins: MarketplaceManifestEntry[];
319
+ }
320
+ export interface CatalogManifestEntry {
321
+ name: string;
322
+ version: PluginVersion;
323
+ description: string;
324
+ interface?: PluginInterfaceMeta;
325
+ category: string;
326
+ tags?: string[];
327
+ strict: boolean;
328
+ policy: MarketplacePolicy;
329
+ compatibility: PluginCompatibility;
330
+ source: string;
331
+ artifactDigest: string;
332
+ manifestDigest: string;
333
+ }
334
+ export interface CatalogManifestV4Entry extends CatalogManifestEntry {
335
+ name: PluginId;
336
+ contentDigest: string;
337
+ }
338
+ export interface CatalogMarketplaceIdentity {
339
+ owner: MarketplaceOwner;
340
+ interface: MarketplaceInterfaceMeta;
341
+ }
342
+ export type CatalogManifestV4Release = {
343
+ state: 'development';
344
+ } | {
345
+ state: 'published';
346
+ targetVersion: string;
347
+ planId: string;
348
+ sourceHead: string;
349
+ contentDigest: string;
350
+ };
351
+ export interface CatalogManifestV4 {
352
+ schemaVersion: 4;
353
+ catalogVersion: string;
354
+ channel: CatalogChannel;
355
+ compatibility: PluginCompatibility;
356
+ marketplace: CatalogMarketplaceIdentity;
357
+ release: CatalogManifestV4Release;
358
+ entries: CatalogManifestV4Entry[];
359
+ }
360
+ export interface PlatformPluginManifest {
361
+ name: string;
362
+ version: PluginVersion;
363
+ description: string;
364
+ compatibility: PluginCompatibility;
365
+ skills?: string;
366
+ mcpServers?: string;
367
+ apps?: string;
368
+ interface?: PluginInterfaceMeta;
369
+ agents?: string[];
370
+ hooks?: string | RenderedHooksManifest;
371
+ commands?: string;
372
+ outputStyles?: string;
373
+ lspServers?: string | Array<string | Record<string, unknown>> | Record<string, unknown>;
374
+ userConfig?: Record<string, unknown>;
375
+ channels?: Record<string, unknown> | Array<Record<string, unknown>>;
376
+ }
377
+ export interface CodexHookHandler {
378
+ type: 'command';
379
+ command: string;
380
+ }
381
+ export interface RenderedHooksManifest {
382
+ hooks: Record<string, Array<{
383
+ matcher?: string;
384
+ hooks: CodexHookHandler[];
385
+ }>>;
386
+ }
387
+ export interface RenderedHookGroup {
388
+ event: string;
389
+ matcher?: string;
390
+ hooks: CodexHookHandler[];
391
+ }
392
+ export interface TrackedHookGroupIdentity {
393
+ event: string;
394
+ matcher?: string;
395
+ command: string;
396
+ }
397
+ export interface CodexSharedHookGroup {
398
+ event: string;
399
+ matcher?: string | null;
400
+ hooks: Record<string, unknown>[];
401
+ rawGroup: Record<string, unknown>;
402
+ }
403
+ export interface ArtifactPlanArtifactBase {
404
+ id: string;
405
+ platform?: PlatformName;
406
+ distribution?: DistributionName;
407
+ target: ArtifactTarget;
408
+ kind: DynamicArtifactKind;
409
+ state: ArtifactState;
410
+ refreshKeys: string[];
411
+ disabledReason?: string;
412
+ }
413
+ export interface CodexSkillArtifact extends ArtifactPlanArtifactBase {
414
+ target: 'codex.skill';
415
+ kind: 'skill';
416
+ skillKey?: string;
417
+ content?: {
418
+ files?: Record<string, string>;
419
+ };
420
+ }
421
+ export interface ClaudeSkillArtifact extends ArtifactPlanArtifactBase {
422
+ target: 'claude.skill';
423
+ kind: 'skill';
424
+ skillKey?: string;
425
+ content?: {
426
+ files?: Record<string, string>;
427
+ };
428
+ }
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,105 @@
1
+ import { type PluginReleaseLedger } from './plugin-release.js';
2
+ import type { ReservedImportRegistry } from './manifest-contract.js';
3
+ import type { CatalogChannel, CatalogManifestV4, MarketplaceSourceMeta, PluginMeta } from './types.js';
4
+ export declare const DEFAULT_WORKSPACE_CATALOG_VERSION = "0.1.0";
5
+ export declare const DEFAULT_CATALOG_OUTPUT_PATH: string;
6
+ export declare const DEFAULT_PUBLISHED_CATALOG_OUTPUT_PATH: string;
7
+ export declare const DEFAULT_PLUGIN_OUTPUT_PATH: string;
8
+ export declare const CATALOG_MANIFEST_FILENAME = "catalog-manifest.json";
9
+ export declare const GENERATED_OUTPUT_MARKER_FILENAME = ".aw-generated.json";
10
+ export declare const WORKSPACE_MARKER_FILENAME = ".aw-workspace.json";
11
+ export interface WorkspaceCatalogInitOptions {
12
+ workspaceRoot: string;
13
+ ownerName?: string;
14
+ ownerUrl?: string;
15
+ displayName?: string;
16
+ catalogVersion?: string;
17
+ force?: boolean;
18
+ }
19
+ export interface WorkspacePluginBuildAdapter {
20
+ build(options: {
21
+ workspaceRoot: string;
22
+ plugin: PluginMeta;
23
+ plugins: readonly PluginMeta[];
24
+ dependencies: PluginMeta[];
25
+ outputRoot: string;
26
+ }): Promise<void>;
27
+ }
28
+ export type WorkspaceCatalogBuildAdapter = WorkspacePluginBuildAdapter;
29
+ export interface WorkspaceSourceOptions {
30
+ reservedImports?: ReservedImportRegistry;
31
+ }
32
+ export declare function resolveWorkspaceOutputPath(options: {
33
+ workspaceRoot: string;
34
+ outputPath: string;
35
+ kind?: 'catalog' | 'plugin';
36
+ }): Promise<{
37
+ workspaceRoot: string;
38
+ outputRoot: string;
39
+ }>;
40
+ export declare function initializePluginWorkspace(options: WorkspaceCatalogInitOptions): Promise<{
41
+ workspaceRoot: string;
42
+ metadataPath: string;
43
+ metadata: MarketplaceSourceMeta;
44
+ }>;
45
+ export declare function readPluginWorkspace(workspaceRoot: string, options?: WorkspaceSourceOptions): Promise<{
46
+ workspaceRoot: string;
47
+ metadataPath: string;
48
+ metadata: MarketplaceSourceMeta;
49
+ plugins: PluginMeta[];
50
+ }>;
51
+ export declare function setWorkspaceCatalogVersion(workspaceRoot: string, version: string, options?: WorkspaceSourceOptions): Promise<MarketplaceSourceMeta>;
52
+ export declare function deriveCatalogChannel(version: string): CatalogChannel;
53
+ export declare function buildWorkspaceCatalog(options: {
54
+ workspaceRoot: string;
55
+ outputPath?: string;
56
+ force?: boolean;
57
+ adapter: WorkspaceCatalogBuildAdapter;
58
+ reservedImports?: ReservedImportRegistry;
59
+ }): Promise<{
60
+ outputRoot: string;
61
+ catalogVersion: string;
62
+ channel: CatalogChannel;
63
+ pluginNames: string[];
64
+ }>;
65
+ export declare function validatePublishedCatalogSnapshot(snapshotDirectory: string): Promise<{
66
+ rootDir: string;
67
+ manifest: CatalogManifestV4;
68
+ ledger: PluginReleaseLedger;
69
+ snapshotDigest: string;
70
+ }>;
71
+ export declare function preparePublishedWorkspaceCatalog(options: {
72
+ workspaceRoot: string;
73
+ sourceHead: string;
74
+ outputPath?: string;
75
+ previousSnapshotRoot?: string;
76
+ adapter: WorkspaceCatalogBuildAdapter;
77
+ reservedImports?: ReservedImportRegistry;
78
+ }): Promise<{
79
+ outputRoot: string;
80
+ catalogVersion: string;
81
+ channel: CatalogChannel;
82
+ pluginNames: string[];
83
+ snapshotDigest: string;
84
+ contentDigest: string;
85
+ planId: string;
86
+ }>;
87
+ export declare function buildWorkspacePlugin(options: {
88
+ workspaceRoot: string;
89
+ pluginDirectory: string;
90
+ outputPath?: string;
91
+ force?: boolean;
92
+ adapter: WorkspacePluginBuildAdapter;
93
+ reservedImports?: ReservedImportRegistry;
94
+ }): Promise<{
95
+ outputRoot: string;
96
+ pluginName: string;
97
+ dependencies: string[];
98
+ digest: string;
99
+ }>;
100
+ export declare function validateCatalogSnapshot(snapshotDirectory: string): Promise<{
101
+ rootDir: string;
102
+ manifest: CatalogManifestV4;
103
+ ledger?: PluginReleaseLedger;
104
+ snapshotDigest: string;
105
+ }>;