@plugmatica/plugin-build 0.0.0-stage → 0.1.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.
Files changed (128) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-APACHE +202 -0
  3. package/README.md +221 -2
  4. package/dev-target/README.md +20 -0
  5. package/dev-target/compose.yaml +119 -0
  6. package/dist/chunk-EOLUQEKQ.js +587 -0
  7. package/dist/chunk-QHTGR4ZB.js +9378 -0
  8. package/dist/chunk-TQNG5OZ3.js +3135 -0
  9. package/dist/cli.d.ts +1 -0
  10. package/dist/cli.js +2606 -0
  11. package/dist/index.d.ts +2144 -0
  12. package/dist/index.js +230 -0
  13. package/dist/vite-WRwB4IG8.d.ts +929 -0
  14. package/dist/vite.d.ts +3 -0
  15. package/dist/vite.js +20 -0
  16. package/package.json +94 -4
  17. package/templates/README.md +29 -0
  18. package/templates/backend-capabilities/LICENSE.txt +231 -0
  19. package/templates/backend-capabilities/backend/Cargo.toml +21 -0
  20. package/templates/backend-capabilities/backend/src/lib.rs +179 -0
  21. package/templates/backend-capabilities/backend/tests/basic.rs +174 -0
  22. package/templates/backend-capabilities/manifest.source.json +64 -0
  23. package/templates/backend-capabilities/package.json +22 -0
  24. package/templates/backend-composition/LICENSE.txt +231 -0
  25. package/templates/backend-composition/backend/Cargo.toml +21 -0
  26. package/templates/backend-composition/backend/src/lib.rs +96 -0
  27. package/templates/backend-composition/backend/tests/basic.rs +75 -0
  28. package/templates/backend-composition/manifest.source.json +26 -0
  29. package/templates/backend-composition/package.json +22 -0
  30. package/templates/backend-entities/LICENSE.txt +231 -0
  31. package/templates/backend-entities/backend/Cargo.toml +20 -0
  32. package/templates/backend-entities/backend/src/lib.rs +77 -0
  33. package/templates/backend-entities/backend/tests/basic.rs +26 -0
  34. package/templates/backend-entities/manifest.source.json +15 -0
  35. package/templates/backend-entities/package.json +22 -0
  36. package/templates/backend-minimal/LICENSE.txt +231 -0
  37. package/templates/backend-minimal/backend/Cargo.toml +21 -0
  38. package/templates/backend-minimal/backend/src/lib.rs +69 -0
  39. package/templates/backend-minimal/backend/tests/basic.rs +67 -0
  40. package/templates/backend-minimal/manifest.source.json +15 -0
  41. package/templates/backend-minimal/package.json +22 -0
  42. package/templates/backend-operations/LICENSE.txt +231 -0
  43. package/templates/backend-operations/backend/Cargo.toml +21 -0
  44. package/templates/backend-operations/backend/src/lib.rs +117 -0
  45. package/templates/backend-operations/backend/tests/basic.rs +169 -0
  46. package/templates/backend-operations/manifest.source.json +15 -0
  47. package/templates/backend-operations/package.json +22 -0
  48. package/templates/frontend-entity/LICENSE.txt +27 -0
  49. package/templates/frontend-entity/README.md +46 -0
  50. package/templates/frontend-entity/frontend/i18n/en-GB.json +5 -0
  51. package/templates/frontend-entity/frontend/package.json +32 -0
  52. package/templates/frontend-entity/frontend/src/CustomerListPage.tsx +98 -0
  53. package/templates/frontend-entity/frontend/src/model.ts +5 -0
  54. package/templates/frontend-entity/frontend/tests/entityLifecycle.test.tsx +79 -0
  55. package/templates/frontend-entity/frontend/tsconfig.json +4 -0
  56. package/templates/frontend-entity/frontend/vite.config.ts +3 -0
  57. package/templates/frontend-entity/frontend/vitest.config.ts +9 -0
  58. package/templates/frontend-entity/manifest.source.json +53 -0
  59. package/templates/frontend-entity/package.json +22 -0
  60. package/templates/frontend-entity/pnpm-workspace.yaml +2 -0
  61. package/templates/frontend-extension/LICENSE.txt +27 -0
  62. package/templates/frontend-extension/README.md +7 -0
  63. package/templates/frontend-extension/frontend/i18n/en-GB.json +4 -0
  64. package/templates/frontend-extension/frontend/package.json +25 -0
  65. package/templates/frontend-extension/frontend/src/CustomerNotes.tsx +24 -0
  66. package/templates/frontend-extension/frontend/tsconfig.json +4 -0
  67. package/templates/frontend-extension/frontend/vite.config.ts +3 -0
  68. package/templates/frontend-extension/manifest.source.json +16 -0
  69. package/templates/frontend-extension/package.json +22 -0
  70. package/templates/frontend-extension/pnpm-workspace.yaml +2 -0
  71. package/templates/frontend-minimal/LICENSE.txt +27 -0
  72. package/templates/frontend-minimal/README.md +5 -0
  73. package/templates/frontend-minimal/frontend/i18n/en-GB.json +4 -0
  74. package/templates/frontend-minimal/frontend/package.json +25 -0
  75. package/templates/frontend-minimal/frontend/src/Page.tsx +16 -0
  76. package/templates/frontend-minimal/frontend/src/entry.ts +1 -0
  77. package/templates/frontend-minimal/frontend/tsconfig.json +4 -0
  78. package/templates/frontend-minimal/frontend/vite.config.ts +3 -0
  79. package/templates/frontend-minimal/manifest.source.json +51 -0
  80. package/templates/frontend-minimal/package.json +22 -0
  81. package/templates/frontend-minimal/pnpm-workspace.yaml +2 -0
  82. package/templates/frontend-provider-event/LICENSE.txt +27 -0
  83. package/templates/frontend-provider-event/README.md +7 -0
  84. package/templates/frontend-provider-event/frontend/i18n/en-GB.json +3 -0
  85. package/templates/frontend-provider-event/frontend/package.json +25 -0
  86. package/templates/frontend-provider-event/frontend/src/CustomerBadgeProvider.ts +24 -0
  87. package/templates/frontend-provider-event/frontend/src/CustomerSavedHandler.ts +22 -0
  88. package/templates/frontend-provider-event/frontend/tsconfig.json +4 -0
  89. package/templates/frontend-provider-event/frontend/vite.config.ts +3 -0
  90. package/templates/frontend-provider-event/manifest.source.json +16 -0
  91. package/templates/frontend-provider-event/package.json +22 -0
  92. package/templates/frontend-provider-event/pnpm-workspace.yaml +2 -0
  93. package/templates/full-stack-minimal/LICENSE.txt +231 -0
  94. package/templates/full-stack-minimal/README.md +49 -0
  95. package/templates/full-stack-minimal/backend/Cargo.toml +18 -0
  96. package/templates/full-stack-minimal/backend/src/lib.rs +49 -0
  97. package/templates/full-stack-minimal/backend/tests/basic.rs +49 -0
  98. package/templates/full-stack-minimal/frontend/i18n/en-GB.json +6 -0
  99. package/templates/full-stack-minimal/frontend/package.json +25 -0
  100. package/templates/full-stack-minimal/frontend/src/Page.tsx +29 -0
  101. package/templates/full-stack-minimal/frontend/src/entry.ts +1 -0
  102. package/templates/full-stack-minimal/frontend/tsconfig.json +4 -0
  103. package/templates/full-stack-minimal/frontend/vite.config.ts +3 -0
  104. package/templates/full-stack-minimal/manifest.source.json +55 -0
  105. package/templates/full-stack-minimal/package.json +24 -0
  106. package/templates/full-stack-minimal/pnpm-workspace.yaml +2 -0
  107. package/templates/full-stack-workflow-node/LICENSE.txt +231 -0
  108. package/templates/full-stack-workflow-node/README.md +111 -0
  109. package/templates/full-stack-workflow-node/backend/Cargo.toml +12 -0
  110. package/templates/full-stack-workflow-node/backend/src/lib.rs +70 -0
  111. package/templates/full-stack-workflow-node/frontend/i18n/en-GB.json +10 -0
  112. package/templates/full-stack-workflow-node/frontend/package.json +29 -0
  113. package/templates/full-stack-workflow-node/frontend/src/editors/FormatLabelEditor.tsx +25 -0
  114. package/templates/full-stack-workflow-node/frontend/src/entry.ts +2 -0
  115. package/templates/full-stack-workflow-node/frontend/src/nodes/FormatLabel.tsx +18 -0
  116. package/templates/full-stack-workflow-node/frontend/src/presentations/FormatLabelPresentation.tsx +7 -0
  117. package/templates/full-stack-workflow-node/frontend/tsconfig.json +4 -0
  118. package/templates/full-stack-workflow-node/frontend/vite.config.ts +5 -0
  119. package/templates/full-stack-workflow-node/manifest.source.json +18 -0
  120. package/templates/full-stack-workflow-node/package.json +25 -0
  121. package/templates/full-stack-workflow-node/pnpm-workspace.yaml +2 -0
  122. package/templates/localization-fr-fr/LICENSE.txt +27 -0
  123. package/templates/localization-fr-fr/README.md +5 -0
  124. package/templates/localization-fr-fr/localization/plugmatica.customer.fr-FR.json +4 -0
  125. package/templates/localization-fr-fr/manifest.source.json +36 -0
  126. package/templates/localization-fr-fr/package.json +18 -0
  127. package/templates/starter-projection.json +448 -0
  128. package/tsconfig.plugin.json +14 -0
@@ -0,0 +1,929 @@
1
+ import { Plugin, PluginOption, ServerOptions, UserConfig, BuildOptions } from 'vite';
2
+ import { PLUGIN_MANIFEST_VERSION, PLUGIN_PROTOCOL_VERSION, PluginExtensionSurface, PluginExtensionEvent, PluginExtensionProvider, PluginExtensionContribution, OperationExtensionPhase, StandardExtensionSurfaceName, ExtensionContractDefinition, ExtensionTargetToken, CurrentExtensionContract, PluginKey, ExtensionTargetReference, EXTENSION_TARGET_PACKAGE_SUBPATH, ExtensionDevtoolsArtifact } from '@plugmatica/core-sdk';
3
+
4
+ /**
5
+ * Semantic compiler issue with precise source location and optional remediation.
6
+ */
7
+ type ScanIssue = {
8
+ /**
9
+ * Diagnostic severity.
10
+ */
11
+ severity: "error" | "warning";
12
+ /**
13
+ * Stable diagnostic code.
14
+ */
15
+ code: string;
16
+ /**
17
+ * Author-facing diagnostic message.
18
+ */
19
+ message: string;
20
+ /**
21
+ * Source file path.
22
+ */
23
+ file: string;
24
+ /**
25
+ * One-based source line when available.
26
+ */
27
+ line: number;
28
+ /**
29
+ * One-based source column when available.
30
+ */
31
+ column: number;
32
+ /** One-line source excerpt for actionable CLI diagnostics. Never identity input. */
33
+ snippet?: string;
34
+ /** Concrete author-facing remediation when one can be stated safely. */
35
+ suggestion?: string;
36
+ /** Optional deterministic source edit that plugin-build can apply safely. */
37
+ fix?: {
38
+ kind: "remove-range";
39
+ /** Zero-based source offset, inclusive. */
40
+ start: number;
41
+ /** Zero-based source offset, exclusive. */
42
+ end: number;
43
+ };
44
+ };
45
+ /**
46
+ * Minimal source/generated manifest shape consumed by plugin-build transformations.
47
+ */
48
+ type PluginManifestLike = {
49
+ /** Compiler-owned. Source manifests must omit this; generated manifests materialise the canonical v1 value. */
50
+ manifestVersion?: typeof PLUGIN_MANIFEST_VERSION;
51
+ /** Compiler-owned. Source manifests must omit this; generated manifests materialise the canonical v1 protocol. */
52
+ protocolVersion?: typeof PLUGIN_PROTOCOL_VERSION;
53
+ /**
54
+ * Stable Plugmatica plugin key.
55
+ */
56
+ key: string;
57
+ /**
58
+ * Plugin version.
59
+ */
60
+ version?: string;
61
+ /**
62
+ * Declared plugin dependencies and compatible future dependency metadata.
63
+ */
64
+ dependencies?: {
65
+ plugins?: Array<{
66
+ key: string;
67
+ version: string;
68
+ required?: boolean;
69
+ }>;
70
+ [key: string]: unknown;
71
+ };
72
+ /**
73
+ * Frontend facet metadata consumed and enriched by the semantic compiler.
74
+ */
75
+ frontend?: {
76
+ /** Source manifests should use this only for genuinely custom/advanced surfaces. Standard semantic UI surfaces are compiler-owned. */
77
+ extensionSurfaces?: PluginExtensionSurface[];
78
+ /** Explicit event contracts remain valid source metadata. */
79
+ extensionEvents?: PluginExtensionEvent[];
80
+ /** Explicit provider contracts remain valid source metadata. */
81
+ extensionProviders?: PluginExtensionProvider[];
82
+ /** Raw advanced contributions remain valid; SDK-helper generated contributions must not be duplicated here. */
83
+ extensions?: PluginExtensionContribution[];
84
+ entryPoint?: string;
85
+ moduleName?: string;
86
+ exposes?: string[];
87
+ [key: string]: unknown;
88
+ } | null;
89
+ [key: string]: unknown;
90
+ };
91
+
92
+ /** Semantic UI node kinds recognised by the Plugmatica frontend compiler. */
93
+ type CompilerSemanticKind = "surface" | "field" | "action" | "table-column" | "tab-item" | "wizard-step";
94
+ /**
95
+ * Source-only diagnostics retained by the compiler. These fields are never
96
+ * copied into the Current Extension Contract and never participate in keys.
97
+ */
98
+ type CompilerSourceMetadata = {
99
+ /**
100
+ * Source file path.
101
+ */
102
+ file: string;
103
+ /**
104
+ * Source component name when known.
105
+ */
106
+ component: string;
107
+ /**
108
+ * Stable semantic source name used for identity derivation.
109
+ */
110
+ semanticSourceName?: string;
111
+ /** One-line developer diagnostic excerpt; never identity input. */
112
+ snippet?: string;
113
+ /**
114
+ * Source range for the semantic node.
115
+ */
116
+ range?: {
117
+ start: number;
118
+ end: number;
119
+ line: number;
120
+ column: number;
121
+ };
122
+ };
123
+ /**
124
+ * Private compiler-to-runtime carrier. `prop` names the existing internal UI
125
+ * runtime carrier that the Vite transform injects after semantic compilation.
126
+ * Plugin authors are not expected to author this metadata.
127
+ */
128
+ type CompilerRuntimeMetadata = {
129
+ /**
130
+ * Stable compiled semantic identity injected into runtime metadata.
131
+ */
132
+ key: string;
133
+ /**
134
+ * Extension surface associated with the record when applicable.
135
+ */
136
+ surface: StandardExtensionSurfaceName;
137
+ /** Canonical reusable protocol contract, independent from the instance key. */
138
+ contract: ExtensionContractDefinition;
139
+ /**
140
+ * Semantic/runtime scope associated with a compiler node.
141
+ */
142
+ scope: string | null;
143
+ /**
144
+ * Operation identity associated with the node.
145
+ */
146
+ operation?: string;
147
+ /**
148
+ * Extension point associated with the node.
149
+ */
150
+ point?: string;
151
+ };
152
+ /** Plugin SDK definition helpers that the compiler recognises statically. */
153
+ type CompilerSdkHelper = "defineActions" | "defineExtension" | "defineWorkflowNode" | "defineProvider" | "defineEventHandler" | "defineOperationHook";
154
+ /**
155
+ * Source-only SDK intent discovered by the compiler. It is deliberately kept
156
+ * outside the Current Extension Contract until a later slice materialises
157
+ * generated target definitions/contribution descriptors.
158
+ */
159
+ type CompiledContributionMetadata = {
160
+ /** Stable Module Federation expose name, for example `./CustomerDocuments`. */
161
+ module: string;
162
+ /** Explicit contribution identity override, otherwise derived from module identity. */
163
+ contribution?: string;
164
+ /**
165
+ * Contribution order used for deterministic composition.
166
+ */
167
+ order?: number;
168
+ /**
169
+ * Display label.
170
+ */
171
+ label?: string | null;
172
+ /**
173
+ * Localized label key when declared.
174
+ */
175
+ labelKey?: string | null;
176
+ /**
177
+ * Actor scope required to use the contribution.
178
+ */
179
+ requiredScope?: string | null;
180
+ /**
181
+ * Opaque extension metadata passed through compilation.
182
+ */
183
+ metadata?: Record<string, unknown> | null;
184
+ /**
185
+ * Supported operation-hook phases.
186
+ */
187
+ phases?: readonly OperationExtensionPhase[];
188
+ };
189
+ /** Declarative Workflow node UI intent, checked against the owning compiled Rust descriptor at package time. */
190
+ type CompiledWorkflowNode = {
191
+ nodeType: string;
192
+ points: readonly ("catalog" | "editor" | "presentation")[];
193
+ editableFields: readonly string[];
194
+ contractVersion?: number;
195
+ catalogKeys: readonly string[];
196
+ };
197
+ /** Static SDK-helper definition discovered while compiling plugin source. */
198
+ type CompiledSdkDefinition = {
199
+ /** SDK helper that produced the definition. */
200
+ helper: CompilerSdkHelper;
201
+ /** Source location and diagnostic metadata. */
202
+ source: CompilerSourceMetadata;
203
+ /** Static semantic keys for defineActions({...}) when inspectable. */
204
+ semanticKeys?: readonly string[];
205
+ /** Source expression retained for diagnostics. */
206
+ targetExpression?: string;
207
+ /** Fully resolved generated target token from the dependency TypeScript contract. */
208
+ target?: ExtensionTargetToken;
209
+ /** Optional contribution materialisation metadata from the helper definition. */
210
+ contribution?: CompiledContributionMetadata;
211
+ /** Statically validated defineWorkflowNode declaration, if present. */
212
+ workflowNode?: CompiledWorkflowNode;
213
+ };
214
+ /** One semantic extension node in the compiler intermediate representation. */
215
+ type CompiledExtensionNode = {
216
+ /**
217
+ * Semantic UI node kind detected by the compiler.
218
+ */
219
+ semanticKind: CompilerSemanticKind;
220
+ /** Public semantic identity. Child anchors use the same deterministic model. */
221
+ key: string;
222
+ /** Standard surface family this node belongs to. */
223
+ surface: StandardExtensionSurfaceName;
224
+ /** Canonical reusable protocol contract, independent from `key`. */
225
+ contract: ExtensionContractDefinition;
226
+ /** Enclosing public semantic scope before this node is composed. */
227
+ scope: string | null;
228
+ /** True when the node itself becomes a manifest extension surface. */
229
+ emitsSurface: boolean;
230
+ /**
231
+ * Compiler-only relative semantic template retained for source transforms but
232
+ * excluded from the public Current Extension Contract until materialised by
233
+ * a concrete caller scope.
234
+ */
235
+ templateOnly?: boolean;
236
+ /** How this identity was obtained, useful for ambiguity diagnostics only. */
237
+ identitySource: "extension" | "semantic" | "container-kind" | "route";
238
+ /**
239
+ * Operation identity associated with the node.
240
+ */
241
+ operation?: string;
242
+ /**
243
+ * Extension point associated with the node.
244
+ */
245
+ point?: string;
246
+ /**
247
+ * Source metadata for diagnostics or compiler output.
248
+ */
249
+ source: CompilerSourceMetadata;
250
+ /**
251
+ * Runtime metadata emitted for the compiled node.
252
+ */
253
+ runtime?: CompilerRuntimeMetadata;
254
+ };
255
+ /** Compiler result for one source file. */
256
+ type CompilerFileResult = {
257
+ /** Source path relative to the compiler root. */
258
+ file: string;
259
+ /** Absolute source-file path used during compilation. */
260
+ absoluteFile: string;
261
+ /** Exact source snapshot compiled into this result. */
262
+ sourceText: string;
263
+ /** Semantic extension nodes discovered in this file. */
264
+ nodes: CompiledExtensionNode[];
265
+ /** Static Plugin SDK helper definitions discovered in this file. */
266
+ sdkDefinitions: CompiledSdkDefinition[];
267
+ /** Diagnostics attributed to this file. */
268
+ issues: ScanIssue[];
269
+ };
270
+ /**
271
+ * First-class output of the Plugmatica frontend compiler. Historical baselines
272
+ * are intentionally absent: this is generated from current source only.
273
+ */
274
+ type PluginCompilerResult = {
275
+ /** Absolute compiler source root. */
276
+ root: string;
277
+ /** Per-file compiler results. */
278
+ files: CompilerFileResult[];
279
+ /** Flattened semantic extension nodes across the source tree. */
280
+ nodes: CompiledExtensionNode[];
281
+ /** Flattened static Plugin SDK helper definitions. */
282
+ sdkDefinitions: CompiledSdkDefinition[];
283
+ /** Manifest-ready extension surfaces derived from semantic nodes. */
284
+ surfaces: PluginExtensionSurface[];
285
+ /** Manifest-ready contributions materialised from typed SDK target definitions. */
286
+ contributions: PluginExtensionContribution[];
287
+ /** Compiler diagnostics across the source tree. */
288
+ issues: ScanIssue[];
289
+ /** Current Extension Contract derived only from current source. */
290
+ currentExtensionContract: CurrentExtensionContract;
291
+ };
292
+
293
+ /**
294
+ * Inputs for generating plugin-local extension and target documentation.
295
+ */
296
+ type GeneratePluginDocumentationOptions = {
297
+ /**
298
+ * Plugin key.
299
+ */
300
+ pluginKey: string;
301
+ /**
302
+ * Plugin version when available.
303
+ */
304
+ pluginVersion: string;
305
+ /**
306
+ * Normalized current extension contract.
307
+ */
308
+ contract: CurrentExtensionContract;
309
+ /**
310
+ * Semantic compiler result used to derive the contract.
311
+ */
312
+ compilerResult: PluginCompilerResult;
313
+ /**
314
+ * Destination directory for generated files.
315
+ */
316
+ outputDir?: string;
317
+ };
318
+ /**
319
+ * Generated plugin-local documentation files derived from the extension contract and compiler result.
320
+ */
321
+ type GeneratedPluginDocumentationArtifacts = {
322
+ /**
323
+ * Generated documentation index path/content.
324
+ */
325
+ index: string;
326
+ /**
327
+ * Generated extension API reference path/content.
328
+ */
329
+ extensionApi: string;
330
+ /**
331
+ * Generated target reference documentation path/content.
332
+ */
333
+ targetReference: string;
334
+ /**
335
+ * Generated standard-surface reference path/content.
336
+ */
337
+ standardSurfaces: string;
338
+ /**
339
+ * Generated or written files associated with the result.
340
+ */
341
+ files?: {
342
+ index: string;
343
+ extensionApi: string;
344
+ targetReference: string;
345
+ standardSurfaces: string;
346
+ };
347
+ };
348
+ /**
349
+ * Generates human-facing docs from the same Current Extension Contract and
350
+ * compiler IR used for manifest/target generation. Historical baselines are
351
+ * deliberately not accepted here.
352
+ *
353
+ * @param options - Options controlling the operation.
354
+ * @returns Generated documentation artifact metadata and files.
355
+ */
356
+ declare function generatePluginDocumentation(options: GeneratePluginDocumentationOptions): GeneratedPluginDocumentationArtifacts;
357
+ /**
358
+ * Render the canonical standard extension-surface reference used in generated plugin documentation.
359
+ *
360
+ * @returns Markdown standard-surface reference.
361
+ */
362
+ declare function renderStandardSurfaceReference(): string;
363
+
364
+ /**
365
+ * Inputs used to generate typed extension-target modules for a plugin contract.
366
+ */
367
+ type GenerateExtensionTargetsOptions = {
368
+ /**
369
+ * Plugin key.
370
+ */
371
+ pluginKey: PluginKey;
372
+ /**
373
+ * Plugin version when available.
374
+ */
375
+ pluginVersion: string;
376
+ /**
377
+ * Normalized current extension contract.
378
+ */
379
+ contract: CurrentExtensionContract;
380
+ /** Optional output directory. When omitted, generation stays in-memory. */
381
+ outputDir?: string;
382
+ /** Plugin package root, used to emit a mergeable package-export fragment. */
383
+ packageRoot?: string;
384
+ };
385
+ /**
386
+ * Generated typed extension-target module, declarations, docs, and optional package export metadata.
387
+ */
388
+ type GeneratedExtensionTargetArtifacts = {
389
+ /**
390
+ * Generated localization or extension namespace.
391
+ */
392
+ namespace: string;
393
+ /**
394
+ * Generated extension target reference.
395
+ */
396
+ reference: ExtensionTargetReference;
397
+ /**
398
+ * Generated source module path.
399
+ */
400
+ sourceModule: string;
401
+ /**
402
+ * Generated target module source.
403
+ */
404
+ moduleSource: string;
405
+ /**
406
+ * Generated TypeScript declaration source.
407
+ */
408
+ declarationSource: string;
409
+ /**
410
+ * Generated Markdown documentation.
411
+ */
412
+ documentation: string;
413
+ /**
414
+ * Optional package export entry for generated targets.
415
+ */
416
+ packageExport?: {
417
+ subpath: typeof EXTENSION_TARGET_PACKAGE_SUBPATH;
418
+ value: {
419
+ types: string;
420
+ import: string;
421
+ default: string;
422
+ };
423
+ };
424
+ /**
425
+ * Generated or written files associated with the result.
426
+ */
427
+ files?: {
428
+ source: string;
429
+ module: string;
430
+ declarations: string;
431
+ reference: string;
432
+ documentation: string;
433
+ packageExport?: string;
434
+ };
435
+ };
436
+ /**
437
+ * Generate typed extension-target source, declarations, documentation, and optional package files.
438
+ *
439
+ * @param options - Options controlling the operation.
440
+ * @returns Generated target source/declarations/docs and written file metadata.
441
+ */
442
+ declare function generateExtensionTargets(options: GenerateExtensionTargetsOptions): GeneratedExtensionTargetArtifacts;
443
+ /**
444
+ * Create the serializable target-reference model for a plugin extension contract.
445
+ *
446
+ * @param input - Input used to create an extension target reference.
447
+ * @returns Serializable extension target reference.
448
+ */
449
+ declare function createExtensionTargetReference(input: {
450
+ pluginKey: PluginKey;
451
+ pluginVersion: string;
452
+ contract: CurrentExtensionContract;
453
+ }): ExtensionTargetReference;
454
+ /**
455
+ * Derive the stable generated extension namespace identifier for a plugin key.
456
+ *
457
+ * @param pluginKey - Plugin key used for local i18n namespacing.
458
+ * @returns Stable generated TypeScript namespace name.
459
+ */
460
+ declare function extensionNamespaceName(pluginKey: string): string;
461
+ /**
462
+ * Render the generated property-access path for an extension target token.
463
+ *
464
+ * @param namespace - Shared localization namespace.
465
+ * @param target - Extension target token to render.
466
+ * @returns Generated property-access path for the target.
467
+ */
468
+ declare function targetAccessPath(namespace: string, target: ExtensionTargetToken): string;
469
+
470
+ /**
471
+ * Kinds of nodes represented in a plugin contract graph.
472
+ */
473
+ type PluginContractGraphNodeKind = "plugin" | "module" | "source" | "surface" | "event" | "provider" | "dependency" | "contribution" | "target";
474
+ /**
475
+ * One plugin, extension, target, or contract node in the plugin contract graph.
476
+ */
477
+ type PluginContractGraphNode = {
478
+ /**
479
+ * Stable graph node identifier.
480
+ */
481
+ id: string;
482
+ /**
483
+ * Stable discriminator describing the record/provider kind.
484
+ */
485
+ kind: PluginContractGraphNodeKind;
486
+ /**
487
+ * Display label.
488
+ */
489
+ label: string;
490
+ /**
491
+ * Plugin key associated with a graph item.
492
+ */
493
+ plugin?: string;
494
+ /**
495
+ * Opaque extension metadata passed through compilation.
496
+ */
497
+ metadata?: Record<string, unknown>;
498
+ };
499
+ /**
500
+ * Kinds of relationships represented in a plugin contract graph.
501
+ */
502
+ type PluginContractGraphEdgeKind = "exposes" | "declares" | "compiled_from" | "depends_on" | "contributes" | "targets";
503
+ /**
504
+ * Directed relationship between two nodes in the plugin contract graph.
505
+ */
506
+ type PluginContractGraphEdge = {
507
+ /**
508
+ * Source node identifier.
509
+ */
510
+ from: string;
511
+ /**
512
+ * Destination node identifier.
513
+ */
514
+ to: string;
515
+ /**
516
+ * Stable discriminator describing the record/provider kind.
517
+ */
518
+ kind: PluginContractGraphEdgeKind;
519
+ /**
520
+ * Display label.
521
+ */
522
+ label?: string;
523
+ };
524
+ /**
525
+ * Serializable graph of plugin contract nodes and dependency/target edges.
526
+ */
527
+ type PluginContractGraph = {
528
+ /**
529
+ * Durable format version for the serialized artifact.
530
+ */
531
+ formatVersion: 1;
532
+ /**
533
+ * Plugin identifier.
534
+ */
535
+ pluginId: string;
536
+ /**
537
+ * Plugin version when available.
538
+ */
539
+ pluginVersion?: string;
540
+ /**
541
+ * Graph nodes.
542
+ */
543
+ nodes: readonly PluginContractGraphNode[];
544
+ /**
545
+ * Graph edges.
546
+ */
547
+ edges: readonly PluginContractGraphEdge[];
548
+ };
549
+ /**
550
+ * Describes one dependency or extension-graph validation issue.
551
+ */
552
+ type ExtensionGraphIssue = {
553
+ /**
554
+ * Diagnostic severity.
555
+ */
556
+ severity: "error" | "warning";
557
+ /**
558
+ * Stable diagnostic code.
559
+ */
560
+ code: "duplicate_plugin_key" | "self_dependency" | "missing_required_dependency" | "incompatible_dependency_version" | "undeclared_target_dependency" | "unavailable_required_target" | "unavailable_required_capability" | "ambiguous_capability_provider" | "unavailable_required_shell_app" | "ambiguous_shell_app_owner" | "missing_target_surface" | "missing_target_point" | "missing_target_operation" | "missing_target_event" | "missing_target_provider" | "incompatible_target_contract" | "unexposed_extension_module";
561
+ /**
562
+ * Plugin key associated with a graph item.
563
+ */
564
+ plugin: string;
565
+ /**
566
+ * Extension.
567
+ */
568
+ extension?: string;
569
+ /**
570
+ * Author-facing diagnostic message.
571
+ */
572
+ message: string;
573
+ };
574
+ /**
575
+ * Result of validating extension dependencies across a set of plugin manifests.
576
+ */
577
+ type ExtensionGraphValidation = {
578
+ /**
579
+ * Validation or audit issues.
580
+ */
581
+ issues: readonly ExtensionGraphIssue[];
582
+ /** Informational only. Runtime dependency cycles are intentionally allowed. */
583
+ dependencyCycles: readonly (readonly string[])[];
584
+ };
585
+ /**
586
+ * Minimal manifest metadata used when validating extension dependencies across an ecosystem.
587
+ */
588
+ type EcosystemPluginManifest = PluginManifestLike & {
589
+ /**
590
+ * Plugin version.
591
+ */
592
+ version?: string;
593
+ };
594
+
595
+ /**
596
+ * Generated JSON and Mermaid artifacts for a plugin contract dependency graph.
597
+ */
598
+ type GeneratedPluginContractGraphArtifacts = {
599
+ /**
600
+ * Generated plugin contract graph.
601
+ */
602
+ graph: PluginContractGraph;
603
+ /**
604
+ * Serialized graph JSON.
605
+ */
606
+ json: string;
607
+ /**
608
+ * Rendered Mermaid graph source.
609
+ */
610
+ mermaid: string;
611
+ /**
612
+ * Generated or written files associated with the result.
613
+ */
614
+ files?: {
615
+ json: string;
616
+ mermaid: string;
617
+ };
618
+ };
619
+ /**
620
+ * Generate and optionally write plugin contract graph JSON and Mermaid artifacts.
621
+ *
622
+ * @param options - Options controlling the operation.
623
+ * @returns Generated graph artifacts and written file paths.
624
+ */
625
+ declare function generatePluginContractGraphArtifacts(options: {
626
+ manifest: PluginManifestLike;
627
+ compilerResult?: PluginCompilerResult;
628
+ outputDir?: string;
629
+ }): GeneratedPluginContractGraphArtifacts;
630
+
631
+ /** Options for compiling plugin source and materialising generated manifest/build artifacts. */
632
+ type GeneratePluginManifestOptions = {
633
+ /** Frontend source directory scanned by the semantic compiler. */
634
+ sourceDir: string;
635
+ /** Path to the source-owned `manifest.source.json`. */
636
+ manifestPath: string;
637
+ /** Generated runtime manifest path. Defaults to `manifest.json` beside the source manifest. */
638
+ outputPath?: string;
639
+ /** Promote compiler warnings to build failures. */
640
+ failOnWarnings?: boolean;
641
+ /** Optional compiled backend descriptor to validate before packaging. */
642
+ backendDescriptorPath?: string;
643
+ /** Precompiled source IR. Vite uses this so manifest generation and runtime transforms share one compile result. */
644
+ compilerResult?: PluginCompilerResult;
645
+ /** Typed extension-target generation settings. */
646
+ targets?: {
647
+ /** Emit generated target package artifacts. Defaults to true. */
648
+ emit?: boolean;
649
+ /** Output directory. Defaults to `frontend/generated/extensions` relative to the plugin root. */
650
+ outputDir?: string;
651
+ };
652
+ /** Current Extension Contract artifact settings. */
653
+ currentContract?: {
654
+ /** Emit the reusable Current Extension Contract JSON artifact. Defaults to true. */
655
+ emit?: boolean;
656
+ /** Output path. Defaults to `frontend/generated/extension-contract.json` relative to the plugin root. */
657
+ outputPath?: string;
658
+ };
659
+ /** Developer-tooling diagnostics settings. */
660
+ devtools?: {
661
+ /** Emit development-only compiler identity diagnostics. Defaults to false; Vite serve enables it. */
662
+ emit?: boolean;
663
+ /** Output path. Defaults to `frontend/generated/extension-devtools.json` relative to the plugin root. */
664
+ outputPath?: string;
665
+ };
666
+ /** Generated extension-reference documentation settings. */
667
+ docs?: {
668
+ /** Emit generated extension developer docs. Defaults to true. */
669
+ emit?: boolean;
670
+ /** Output directory. Defaults to `frontend/generated/docs` relative to the plugin root. */
671
+ outputDir?: string;
672
+ };
673
+ /** Extension-contract graph artifact settings. */
674
+ graph?: {
675
+ /** Emit optional contract visualisation artifacts. Defaults to false. */
676
+ emit?: boolean;
677
+ /** Output directory. Defaults to `frontend/generated/graph` relative to the plugin root. */
678
+ outputDir?: string;
679
+ };
680
+ /** Localization scanning, validation and catalogue-generation settings. */
681
+ i18n?: {
682
+ /** Default plugin locale used for generated/validated messages. Defaults to `en-GB`. */
683
+ defaultLocale?: string;
684
+ /** Localization directory relative to the frontend root. */
685
+ localesDir?: string;
686
+ /** Generated localization catalogue output path. */
687
+ catalogOutput?: string;
688
+ /** Root containing shared localization catalogues. */
689
+ sharedCatalogRoot?: string;
690
+ /** Default locale used for shared localization catalogues. */
691
+ sharedDefaultLocale?: string;
692
+ /** Fail on raw user-visible strings. Defaults to true for plugins with a frontend contract and false for headless plugins. */
693
+ failOnRawStrings?: boolean;
694
+ };
695
+ };
696
+ /** Result returned after plugin manifest generation and optional build-artifact emission. */
697
+ type GeneratePluginManifestResult<T extends PluginManifestLike = PluginManifestLike> = {
698
+ /** Generated runtime manifest. */
699
+ manifest: T;
700
+ /** Absolute path of the generated runtime manifest. */
701
+ outputPath: string;
702
+ /** Compiler/build diagnostics collected during generation. */
703
+ issues: ScanIssue[];
704
+ /** Number of standard extension surfaces materialised into the generated manifest. */
705
+ surfaceCount: number;
706
+ /** Number of localization message references discovered by the build. */
707
+ i18nMessageCount: number;
708
+ /** Current Extension Contract derived from the generated manifest. */
709
+ currentExtensionContract: CurrentExtensionContract;
710
+ /** Written Current Extension Contract path when emission is enabled. */
711
+ currentExtensionContractPath?: string;
712
+ /** In-memory devtools diagnostics artifact when emission is enabled. */
713
+ devtoolsArtifact?: ExtensionDevtoolsArtifact;
714
+ /** Written devtools diagnostics path when emission is enabled. */
715
+ devtoolsArtifactPath?: string;
716
+ /** Semantic compiler result used to generate the manifest and runtime transforms. */
717
+ compilerResult: PluginCompilerResult;
718
+ /** Generated typed extension-target artifacts when enabled. */
719
+ targetArtifacts?: GeneratedExtensionTargetArtifacts;
720
+ /** Generated extension documentation artifacts when enabled. */
721
+ documentationArtifacts?: GeneratedPluginDocumentationArtifacts;
722
+ /** Generated extension graph artifacts when enabled. */
723
+ graphArtifacts?: GeneratedPluginContractGraphArtifacts;
724
+ };
725
+ /**
726
+ * Compiles plugin source and materialises the canonical runtime manifest plus selected generated artifacts.
727
+ *
728
+ * @param options - Source paths, validation policy and artifact-generation settings.
729
+ * @returns The generated manifest, diagnostics, compiler result and any emitted artifact metadata.
730
+ *
731
+ * @example
732
+ * ```ts
733
+ * const result = generatePluginManifest({
734
+ * sourceDir: "./frontend/src",
735
+ * manifestPath: "./manifest.source.json",
736
+ * });
737
+ * console.log(result.outputPath);
738
+ * ```
739
+ */
740
+ declare function generatePluginManifest<T extends PluginManifestLike = PluginManifestLike>({ sourceDir, manifestPath, outputPath, failOnWarnings, backendDescriptorPath, compilerResult: providedCompilerResult, targets: targetOptions, currentContract: currentContractOptions, devtools: devtoolsOptions, docs: docsOptions, graph: graphOptions, i18n: i18nOptions, }: GeneratePluginManifestOptions): GeneratePluginManifestResult<T>;
741
+ /**
742
+ * Error containing semantic compiler issues that prevent manifest generation.
743
+ */
744
+ declare class PluginManifestGenerationError extends Error {
745
+ /**
746
+ * Validation or audit issues.
747
+ */
748
+ readonly issues: readonly ScanIssue[];
749
+ constructor(issues: readonly ScanIssue[]);
750
+ }
751
+ /**
752
+ * Format semantic compiler scan issues for CLI/build diagnostics.
753
+ *
754
+ * @param issues - Issues.
755
+ * @returns Formatted scan diagnostics.
756
+ */
757
+ declare function formatScanIssues(issues: readonly ScanIssue[]): string;
758
+ /**
759
+ * Extract compiler-owned page routes from a source manifest without accepting authored generated routes.
760
+ *
761
+ * @param source - Source.
762
+ * @returns Compiler-owned page routes discovered in the manifest.
763
+ */
764
+ declare function compilerPageRoutesFromManifest(source: Record<string, unknown>): Array<{
765
+ key: string;
766
+ module: string;
767
+ }>;
768
+
769
+ /** Configuration accepted by the Plugmatica semantic compiler Vite plugin. */
770
+ type PlugmaticaManifestPluginOptions = Omit<GeneratePluginManifestOptions, "sourceDir" | "manifestPath" | "outputPath" | "compilerResult"> & {
771
+ /** Plugin root containing the source manifest and frontend directory. */
772
+ root?: string;
773
+ /** Frontend source directory. Defaults to `frontend/src` below the plugin root. */
774
+ sourceDir?: string;
775
+ /** Source manifest path. Defaults to `manifest.source.json` below the plugin root. */
776
+ manifestPath?: string;
777
+ /** Generated runtime manifest path. Defaults to `manifest.json` below the plugin root. */
778
+ outputPath?: string;
779
+ };
780
+ /**
781
+ * Creates the Plugmatica frontend compiler Vite integration.
782
+ *
783
+ * One source-tree compilation feeds both manifest generation and module
784
+ * transforms. The transform serialises resolved IR keys; it never re-derives
785
+ * identity from runtime values or historical state.
786
+ *
787
+ * @param options - Manifest/compiler generation paths and feature options.
788
+ * @returns A Vite plugin that compiles Plugmatica semantic metadata before normal transforms.
789
+ */
790
+ declare function plugmaticaManifestPlugin(options?: PlugmaticaManifestPluginOptions): Plugin;
791
+
792
+ /**
793
+ * One compatibility contract for Plugmatica's Module Federation host/remotes.
794
+ *
795
+ * Keep this list deliberately small: only packages whose module identity must
796
+ * be shared between the runtime shell and independently built plugins belong
797
+ * here. Normal transitive dependencies should not become federation policy.
798
+ */
799
+ declare const PLUGMATICA_FEDERATION_SHARED_VERSIONS: {
800
+ readonly react: "^19.0.0";
801
+ readonly "react-dom": "^19.0.0";
802
+ readonly "react-hook-form": "^7.71.1";
803
+ readonly "@xyflow/react": "^12.11.6";
804
+ readonly "@tanstack/react-query": "^5.90.21";
805
+ readonly "@plugmatica/core-sdk": "^0.1.0";
806
+ readonly "@plugmatica/i18n": "^0.1.0";
807
+ readonly "@plugmatica/plugin-sdk": "^0.1.0";
808
+ readonly "@plugmatica/ui-kit": "^0.1.0";
809
+ readonly "@plugmatica/data-viz": "^0.1.0";
810
+ readonly "@plugmatica/graph": "^0.1.0";
811
+ };
812
+ /** Package names whose module identity is governed by the Plugmatica federation policy. */
813
+ type PlugmaticaFederationSharedPackage = keyof typeof PLUGMATICA_FEDERATION_SHARED_VERSIONS;
814
+ /** Module Federation singleton configuration emitted for one shared package. */
815
+ type PlugmaticaFederationSharedEntry = {
816
+ /** Require one shared module instance across the host and plugin remote. */
817
+ singleton: true;
818
+ /** Compatible package version required by the federation contract. */
819
+ requiredVersion: string;
820
+ /** Permit package resolution when equivalent node_modules paths have different prefixes. */
821
+ allowNodeModulesSuffixMatch: true;
822
+ };
823
+ /** Module Federation shared-package configuration generated by Plugmatica tooling. */
824
+ type PlugmaticaFederationSharedConfig = Record<string, PlugmaticaFederationSharedEntry>;
825
+ /** Optional-package switches used when generating federation shared/dedupe policy. */
826
+ type PlugmaticaFederationPolicyOptions = {
827
+ /**
828
+ * React Query is intentionally optional for remotes. The host always enables
829
+ * it; a remote enables it only when the package is resolvable in that plugin.
830
+ */
831
+ includeReactQuery?: boolean;
832
+ /** Data Viz is optional for remotes and enabled only when installed by the plugin. */
833
+ includeDataViz?: boolean;
834
+ };
835
+ /**
836
+ * Builds the producer/consumer shared configuration for `@module-federation/vite`.
837
+ * React and react-hook-form also publish subpath entries because JSX/runtime
838
+ * and react-dom/client imports must resolve to the same singleton family.
839
+ *
840
+ * @param options - Optional switches for packages that are not required by every remote.
841
+ * @returns The canonical shared-package configuration for the selected plugin dependencies.
842
+ */
843
+ declare function plugmaticaFederationShared(options?: PlugmaticaFederationPolicyOptions): PlugmaticaFederationSharedConfig;
844
+ /**
845
+ * Returns packages that Vite must resolve to one host-side module instance.
846
+ *
847
+ * @param options - Optional switches for packages that are not required by every remote.
848
+ * @returns Package names for Vite's `resolve.dedupe` setting.
849
+ */
850
+ declare function plugmaticaFederationDedupe(options?: PlugmaticaFederationPolicyOptions): string[];
851
+ /** Full host-side dedupe list retained as a convenient constant. */
852
+ declare const PLUGMATICA_FEDERATION_DEDUPE: string[];
853
+
854
+ /** Supported configuration overrides for the Plugmatica Vite preset. */
855
+ type PlugmaticaPluginConfigOptions = PlugmaticaManifestPluginOptions & {
856
+ /** Plugin root containing manifest.source.json. Normally discovered upward from cwd. */
857
+ root?: string;
858
+ /** Explicit expose -> source mapping only for paths that cannot be inferred safely. */
859
+ exposes?: Readonly<Record<`./${string}`, string>>;
860
+ /** Additional ordinary Vite plugins. Plugmatica compiler/react/federation remain protected. */
861
+ plugins?: readonly PluginOption[];
862
+ /** Development-server settings owned by the consumer project. */
863
+ server?: ServerOptions;
864
+ /** Consumer aliases. Plugmatica dedupe invariants remain protected. */
865
+ alias?: NonNullable<UserConfig["resolve"]>["alias"];
866
+ /** Non-invariant build diagnostics/tuning. */
867
+ build?: Pick<BuildOptions, "chunkSizeWarningLimit" | "reportCompressedSize">;
868
+ };
869
+ /**
870
+ * Creates the supported Vite configuration for an independently developed Plugmatica plugin.
871
+ *
872
+ * `export default definePlugmaticaPluginConfig()` is intentionally sufficient:
873
+ * identity, exposes, React, Module Federation and build invariants come from
874
+ * `manifest.source.json` plus platform-owned compatibility policy.
875
+ *
876
+ * @param options - Optional project-specific overrides that do not replace Plugmatica invariants.
877
+ * @returns A Vite configuration containing the Plugmatica compiler, React and Module Federation setup.
878
+ *
879
+ * @example
880
+ * ```ts
881
+ * import { definePlugmaticaPluginConfig } from "@plugmatica/plugin-build/vite";
882
+ *
883
+ * export default definePlugmaticaPluginConfig();
884
+ * ```
885
+ */
886
+ declare function definePlugmaticaPluginConfig(options?: PlugmaticaPluginConfigOptions): UserConfig;
887
+
888
+ /**
889
+ * Release-branch compatibility policy shared by plugin scaffolding, Vite
890
+ * federation configuration and toolchain verification.
891
+ */
892
+ declare const PLUGMATICA_FRONTEND_POLICY: {
893
+ readonly node: {
894
+ readonly minimumMajor: 22;
895
+ };
896
+ readonly packageManagers: {
897
+ readonly npm: 10;
898
+ readonly pnpm: 9;
899
+ readonly yarn: 4;
900
+ };
901
+ readonly browserTarget: "es2022";
902
+ readonly typescript: "^5.9.3";
903
+ readonly packages: {
904
+ readonly react: "^19.0.0";
905
+ readonly "react-dom": "^19.0.0";
906
+ readonly "react-hook-form": "^7.71.1";
907
+ readonly "@xyflow/react": "^12.11.6";
908
+ readonly "@tanstack/react-query": "^5.90.21";
909
+ readonly "@module-federation/enhanced": "2.9.4";
910
+ readonly "@module-federation/vite": "^1.25.1";
911
+ readonly vite: "^8.0.12";
912
+ readonly vitest: "^4.0.18";
913
+ readonly "@plugmatica/core-sdk": "^0.1.0";
914
+ readonly "@plugmatica/i18n": "^0.1.0";
915
+ readonly "@plugmatica/plugin-sdk": "^0.1.0";
916
+ readonly "@plugmatica/plugin-query": "^0.1.0";
917
+ readonly "@plugmatica/blocks": "^0.1.0";
918
+ readonly "@plugmatica/ui-kit": "^0.1.0";
919
+ readonly "@plugmatica/data-viz": "^0.1.0";
920
+ readonly "@plugmatica/graph": "^0.1.0";
921
+ readonly "@plugmatica/plugin-build": "^0.1.0";
922
+ readonly "@plugmatica/plugin-testing": "^0.1.0";
923
+ };
924
+ };
925
+ /** Type of the release-branch frontend/toolchain compatibility policy. */
926
+ type PlugmaticaFrontendPolicy = typeof PLUGMATICA_FRONTEND_POLICY;
927
+
928
+ export { compilerPageRoutesFromManifest as K, createExtensionTargetReference as L, definePlugmaticaPluginConfig as M, extensionNamespaceName as N, formatScanIssues as O, generateExtensionTargets as Q, generatePluginContractGraphArtifacts as R, generatePluginDocumentation as T, generatePluginManifest as U, plugmaticaFederationDedupe as V, plugmaticaFederationShared as W, plugmaticaManifestPlugin as X, renderStandardSurfaceReference as Y, targetAccessPath as Z, PLUGMATICA_FEDERATION_DEDUPE as s, PLUGMATICA_FEDERATION_SHARED_VERSIONS as t, PLUGMATICA_FRONTEND_POLICY as u, PluginManifestGenerationError as z };
929
+ export type { PlugmaticaFederationPolicyOptions as A, PlugmaticaFederationSharedConfig as B, CompilerFileResult as C, PlugmaticaFederationSharedEntry as D, EcosystemPluginManifest as E, PlugmaticaFederationSharedPackage as F, GenerateExtensionTargetsOptions as G, PlugmaticaFrontendPolicy as H, PlugmaticaManifestPluginOptions as I, PlugmaticaPluginConfigOptions as J, PluginCompilerResult as P, ScanIssue as S, PluginManifestLike as a, PluginContractGraph as b, ExtensionGraphValidation as c, CompiledContributionMetadata as d, CompiledExtensionNode as e, CompiledSdkDefinition as f, CompiledWorkflowNode as g, CompilerRuntimeMetadata as h, CompilerSdkHelper as i, CompilerSemanticKind as j, CompilerSourceMetadata as k, ExtensionGraphIssue as l, GeneratePluginDocumentationOptions as m, GeneratePluginManifestOptions as n, GeneratePluginManifestResult as o, GeneratedExtensionTargetArtifacts as p, GeneratedPluginContractGraphArtifacts as q, GeneratedPluginDocumentationArtifacts as r, PluginContractGraphEdge as v, PluginContractGraphEdgeKind as w, PluginContractGraphNode as x, PluginContractGraphNodeKind as y };