@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.
- package/LICENSE +21 -0
- package/LICENSE-APACHE +202 -0
- package/README.md +221 -2
- package/dev-target/README.md +20 -0
- package/dev-target/compose.yaml +119 -0
- package/dist/chunk-EOLUQEKQ.js +587 -0
- package/dist/chunk-QHTGR4ZB.js +9378 -0
- package/dist/chunk-TQNG5OZ3.js +3135 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2606 -0
- package/dist/index.d.ts +2144 -0
- package/dist/index.js +230 -0
- package/dist/vite-WRwB4IG8.d.ts +929 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +20 -0
- package/package.json +94 -4
- package/templates/README.md +29 -0
- package/templates/backend-capabilities/LICENSE.txt +231 -0
- package/templates/backend-capabilities/backend/Cargo.toml +21 -0
- package/templates/backend-capabilities/backend/src/lib.rs +179 -0
- package/templates/backend-capabilities/backend/tests/basic.rs +174 -0
- package/templates/backend-capabilities/manifest.source.json +64 -0
- package/templates/backend-capabilities/package.json +22 -0
- package/templates/backend-composition/LICENSE.txt +231 -0
- package/templates/backend-composition/backend/Cargo.toml +21 -0
- package/templates/backend-composition/backend/src/lib.rs +96 -0
- package/templates/backend-composition/backend/tests/basic.rs +75 -0
- package/templates/backend-composition/manifest.source.json +26 -0
- package/templates/backend-composition/package.json +22 -0
- package/templates/backend-entities/LICENSE.txt +231 -0
- package/templates/backend-entities/backend/Cargo.toml +20 -0
- package/templates/backend-entities/backend/src/lib.rs +77 -0
- package/templates/backend-entities/backend/tests/basic.rs +26 -0
- package/templates/backend-entities/manifest.source.json +15 -0
- package/templates/backend-entities/package.json +22 -0
- package/templates/backend-minimal/LICENSE.txt +231 -0
- package/templates/backend-minimal/backend/Cargo.toml +21 -0
- package/templates/backend-minimal/backend/src/lib.rs +69 -0
- package/templates/backend-minimal/backend/tests/basic.rs +67 -0
- package/templates/backend-minimal/manifest.source.json +15 -0
- package/templates/backend-minimal/package.json +22 -0
- package/templates/backend-operations/LICENSE.txt +231 -0
- package/templates/backend-operations/backend/Cargo.toml +21 -0
- package/templates/backend-operations/backend/src/lib.rs +117 -0
- package/templates/backend-operations/backend/tests/basic.rs +169 -0
- package/templates/backend-operations/manifest.source.json +15 -0
- package/templates/backend-operations/package.json +22 -0
- package/templates/frontend-entity/LICENSE.txt +27 -0
- package/templates/frontend-entity/README.md +46 -0
- package/templates/frontend-entity/frontend/i18n/en-GB.json +5 -0
- package/templates/frontend-entity/frontend/package.json +32 -0
- package/templates/frontend-entity/frontend/src/CustomerListPage.tsx +98 -0
- package/templates/frontend-entity/frontend/src/model.ts +5 -0
- package/templates/frontend-entity/frontend/tests/entityLifecycle.test.tsx +79 -0
- package/templates/frontend-entity/frontend/tsconfig.json +4 -0
- package/templates/frontend-entity/frontend/vite.config.ts +3 -0
- package/templates/frontend-entity/frontend/vitest.config.ts +9 -0
- package/templates/frontend-entity/manifest.source.json +53 -0
- package/templates/frontend-entity/package.json +22 -0
- package/templates/frontend-entity/pnpm-workspace.yaml +2 -0
- package/templates/frontend-extension/LICENSE.txt +27 -0
- package/templates/frontend-extension/README.md +7 -0
- package/templates/frontend-extension/frontend/i18n/en-GB.json +4 -0
- package/templates/frontend-extension/frontend/package.json +25 -0
- package/templates/frontend-extension/frontend/src/CustomerNotes.tsx +24 -0
- package/templates/frontend-extension/frontend/tsconfig.json +4 -0
- package/templates/frontend-extension/frontend/vite.config.ts +3 -0
- package/templates/frontend-extension/manifest.source.json +16 -0
- package/templates/frontend-extension/package.json +22 -0
- package/templates/frontend-extension/pnpm-workspace.yaml +2 -0
- package/templates/frontend-minimal/LICENSE.txt +27 -0
- package/templates/frontend-minimal/README.md +5 -0
- package/templates/frontend-minimal/frontend/i18n/en-GB.json +4 -0
- package/templates/frontend-minimal/frontend/package.json +25 -0
- package/templates/frontend-minimal/frontend/src/Page.tsx +16 -0
- package/templates/frontend-minimal/frontend/src/entry.ts +1 -0
- package/templates/frontend-minimal/frontend/tsconfig.json +4 -0
- package/templates/frontend-minimal/frontend/vite.config.ts +3 -0
- package/templates/frontend-minimal/manifest.source.json +51 -0
- package/templates/frontend-minimal/package.json +22 -0
- package/templates/frontend-minimal/pnpm-workspace.yaml +2 -0
- package/templates/frontend-provider-event/LICENSE.txt +27 -0
- package/templates/frontend-provider-event/README.md +7 -0
- package/templates/frontend-provider-event/frontend/i18n/en-GB.json +3 -0
- package/templates/frontend-provider-event/frontend/package.json +25 -0
- package/templates/frontend-provider-event/frontend/src/CustomerBadgeProvider.ts +24 -0
- package/templates/frontend-provider-event/frontend/src/CustomerSavedHandler.ts +22 -0
- package/templates/frontend-provider-event/frontend/tsconfig.json +4 -0
- package/templates/frontend-provider-event/frontend/vite.config.ts +3 -0
- package/templates/frontend-provider-event/manifest.source.json +16 -0
- package/templates/frontend-provider-event/package.json +22 -0
- package/templates/frontend-provider-event/pnpm-workspace.yaml +2 -0
- package/templates/full-stack-minimal/LICENSE.txt +231 -0
- package/templates/full-stack-minimal/README.md +49 -0
- package/templates/full-stack-minimal/backend/Cargo.toml +18 -0
- package/templates/full-stack-minimal/backend/src/lib.rs +49 -0
- package/templates/full-stack-minimal/backend/tests/basic.rs +49 -0
- package/templates/full-stack-minimal/frontend/i18n/en-GB.json +6 -0
- package/templates/full-stack-minimal/frontend/package.json +25 -0
- package/templates/full-stack-minimal/frontend/src/Page.tsx +29 -0
- package/templates/full-stack-minimal/frontend/src/entry.ts +1 -0
- package/templates/full-stack-minimal/frontend/tsconfig.json +4 -0
- package/templates/full-stack-minimal/frontend/vite.config.ts +3 -0
- package/templates/full-stack-minimal/manifest.source.json +55 -0
- package/templates/full-stack-minimal/package.json +24 -0
- package/templates/full-stack-minimal/pnpm-workspace.yaml +2 -0
- package/templates/full-stack-workflow-node/LICENSE.txt +231 -0
- package/templates/full-stack-workflow-node/README.md +111 -0
- package/templates/full-stack-workflow-node/backend/Cargo.toml +12 -0
- package/templates/full-stack-workflow-node/backend/src/lib.rs +70 -0
- package/templates/full-stack-workflow-node/frontend/i18n/en-GB.json +10 -0
- package/templates/full-stack-workflow-node/frontend/package.json +29 -0
- package/templates/full-stack-workflow-node/frontend/src/editors/FormatLabelEditor.tsx +25 -0
- package/templates/full-stack-workflow-node/frontend/src/entry.ts +2 -0
- package/templates/full-stack-workflow-node/frontend/src/nodes/FormatLabel.tsx +18 -0
- package/templates/full-stack-workflow-node/frontend/src/presentations/FormatLabelPresentation.tsx +7 -0
- package/templates/full-stack-workflow-node/frontend/tsconfig.json +4 -0
- package/templates/full-stack-workflow-node/frontend/vite.config.ts +5 -0
- package/templates/full-stack-workflow-node/manifest.source.json +18 -0
- package/templates/full-stack-workflow-node/package.json +25 -0
- package/templates/full-stack-workflow-node/pnpm-workspace.yaml +2 -0
- package/templates/localization-fr-fr/LICENSE.txt +27 -0
- package/templates/localization-fr-fr/README.md +5 -0
- package/templates/localization-fr-fr/localization/plugmatica.customer.fr-FR.json +4 -0
- package/templates/localization-fr-fr/manifest.source.json +36 -0
- package/templates/localization-fr-fr/package.json +18 -0
- package/templates/starter-projection.json +448 -0
- package/tsconfig.plugin.json +14 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BreakingExtensionContractError,
|
|
3
|
+
CONTRACT_BASELINE_FORMAT_VERSION,
|
|
4
|
+
ExplicitContractBaselineProvider,
|
|
5
|
+
GitTagContractBaselineProvider,
|
|
6
|
+
InstalledPluginContractBaselineProvider,
|
|
7
|
+
RegistryBaselineUnavailableError,
|
|
8
|
+
RegistryContractBaselineProvider,
|
|
9
|
+
RepositoryContractBaselineProvider,
|
|
10
|
+
assertFrontendPackageBoundaries,
|
|
11
|
+
assertPackageReleaseContract,
|
|
12
|
+
assertSupportedNode,
|
|
13
|
+
assertSupportedPackageManager,
|
|
14
|
+
auditBuiltDeclarationDependencies,
|
|
15
|
+
auditFrontendPackageBoundaries,
|
|
16
|
+
auditPackageReleaseContract,
|
|
17
|
+
auditRepositoryPluginAuthoringBoundaries,
|
|
18
|
+
buildCurrentContractSnapshot,
|
|
19
|
+
buildReleaseCompatibilityHistory,
|
|
20
|
+
checkContractCompatibility,
|
|
21
|
+
compareExtensionContracts,
|
|
22
|
+
contractFromManifestPayload,
|
|
23
|
+
createPluginScaffold,
|
|
24
|
+
createRepositoryBaselineFile,
|
|
25
|
+
enforceStrictCompatibility,
|
|
26
|
+
formatCompatibilityReport,
|
|
27
|
+
formatExtensionInventory,
|
|
28
|
+
formatPackageBoundaryAudit,
|
|
29
|
+
formatPackageReleaseAudit,
|
|
30
|
+
formatPluginInspection,
|
|
31
|
+
formatProtocolParityReport,
|
|
32
|
+
formatWorkflowNodePackageInspection,
|
|
33
|
+
initRepositoryContractBaseline,
|
|
34
|
+
inspectPlugin,
|
|
35
|
+
inspectWorkflowNodePackage,
|
|
36
|
+
listPluginTemplates,
|
|
37
|
+
loadPackageReleasePolicy,
|
|
38
|
+
loadReleaseContractSnapshots,
|
|
39
|
+
normalizeCurrentExtensionContract,
|
|
40
|
+
parseContractBaselineFile,
|
|
41
|
+
readContractBaselineFile,
|
|
42
|
+
renderReleaseCompatibilityHistoryMarkdown,
|
|
43
|
+
renderReleaseCompatibilityHistoryMermaid,
|
|
44
|
+
repositoryBaselinePath,
|
|
45
|
+
resolveContractBaseline,
|
|
46
|
+
updateRepositoryContractBaseline,
|
|
47
|
+
verifyFrontendProtocolAgainstRust,
|
|
48
|
+
writeContractBaselineFile,
|
|
49
|
+
writeReleaseCompatibilityHistory
|
|
50
|
+
} from "./chunk-TQNG5OZ3.js";
|
|
51
|
+
import {
|
|
52
|
+
PLUGMATICA_FEDERATION_DEDUPE,
|
|
53
|
+
PLUGMATICA_FEDERATION_SHARED_VERSIONS,
|
|
54
|
+
definePlugmaticaPluginConfig,
|
|
55
|
+
plugmaticaFederationDedupe,
|
|
56
|
+
plugmaticaFederationShared,
|
|
57
|
+
plugmaticaManifestPlugin
|
|
58
|
+
} from "./chunk-EOLUQEKQ.js";
|
|
59
|
+
import {
|
|
60
|
+
BackendDescriptorValidationError,
|
|
61
|
+
PLUGIN_MANIFEST_VERSION,
|
|
62
|
+
PLUGIN_PROTOCOL_VERSION,
|
|
63
|
+
PLUGMATICA_FRONTEND_POLICY,
|
|
64
|
+
PluginManifestGenerationError,
|
|
65
|
+
RESERVED_MANAGED_ENTITY_COLUMNS,
|
|
66
|
+
assertValidBackendDescriptor,
|
|
67
|
+
assertValidBackendDescriptorFile,
|
|
68
|
+
auditPluginI18n,
|
|
69
|
+
buildPluginContractGraph,
|
|
70
|
+
compilePluginSource,
|
|
71
|
+
compilerPageRoutesFromManifest,
|
|
72
|
+
createExtensionDevtoolsArtifact,
|
|
73
|
+
createExtensionTargetReference,
|
|
74
|
+
currentExtensionContractFromManifest,
|
|
75
|
+
extensionNamespaceName,
|
|
76
|
+
fixPluginI18n,
|
|
77
|
+
fixRedundantExtensionOverrides,
|
|
78
|
+
formatExtensionFixResult,
|
|
79
|
+
formatI18nFixResult,
|
|
80
|
+
formatPluginI18nAudit,
|
|
81
|
+
formatScanIssues,
|
|
82
|
+
generateExtensionTargets,
|
|
83
|
+
generatePluginContractGraphArtifacts,
|
|
84
|
+
generatePluginDocumentation,
|
|
85
|
+
generatePluginI18n,
|
|
86
|
+
generatePluginManifest,
|
|
87
|
+
hasLocaleFragments,
|
|
88
|
+
localeFragmentsRoot,
|
|
89
|
+
managedStorageIdentifier,
|
|
90
|
+
materializeGeneratedFrontendManifest,
|
|
91
|
+
materializeLocaleFragments,
|
|
92
|
+
mergeGeneratedContributions,
|
|
93
|
+
mergeGeneratedI18nIntoManifest,
|
|
94
|
+
mergeGeneratedSurfaces,
|
|
95
|
+
messagePlaceholders,
|
|
96
|
+
normalizeStandardSurfaceContracts,
|
|
97
|
+
readLocaleFragments,
|
|
98
|
+
readMessageDictionary,
|
|
99
|
+
renderPluginContractGraphMermaid,
|
|
100
|
+
renderStandardSurfaceReference,
|
|
101
|
+
reservedManagedColumnForField,
|
|
102
|
+
scanPluginI18nSource,
|
|
103
|
+
synthesizeWorkflowEventTriggers,
|
|
104
|
+
targetAccessPath,
|
|
105
|
+
transformCompiledSource,
|
|
106
|
+
validateBackendDescriptor,
|
|
107
|
+
validateBackendDescriptorFile,
|
|
108
|
+
validateExtensionDependencyGraph,
|
|
109
|
+
validateLocaleDictionary,
|
|
110
|
+
validateSharedReference,
|
|
111
|
+
validateSourceManifestOwnership,
|
|
112
|
+
versionRequirementAccepts,
|
|
113
|
+
workflowActionContractFingerprint,
|
|
114
|
+
workflowEventContractFingerprint,
|
|
115
|
+
writeExtensionDevtoolsArtifact,
|
|
116
|
+
writeLocaleFragments
|
|
117
|
+
} from "./chunk-QHTGR4ZB.js";
|
|
118
|
+
export {
|
|
119
|
+
BackendDescriptorValidationError,
|
|
120
|
+
BreakingExtensionContractError,
|
|
121
|
+
CONTRACT_BASELINE_FORMAT_VERSION,
|
|
122
|
+
ExplicitContractBaselineProvider,
|
|
123
|
+
GitTagContractBaselineProvider,
|
|
124
|
+
InstalledPluginContractBaselineProvider,
|
|
125
|
+
PLUGIN_MANIFEST_VERSION,
|
|
126
|
+
PLUGIN_PROTOCOL_VERSION,
|
|
127
|
+
PLUGMATICA_FEDERATION_DEDUPE,
|
|
128
|
+
PLUGMATICA_FEDERATION_SHARED_VERSIONS,
|
|
129
|
+
PLUGMATICA_FRONTEND_POLICY,
|
|
130
|
+
PluginManifestGenerationError,
|
|
131
|
+
RESERVED_MANAGED_ENTITY_COLUMNS,
|
|
132
|
+
RegistryBaselineUnavailableError,
|
|
133
|
+
RegistryContractBaselineProvider,
|
|
134
|
+
RepositoryContractBaselineProvider,
|
|
135
|
+
assertFrontendPackageBoundaries,
|
|
136
|
+
assertPackageReleaseContract,
|
|
137
|
+
assertSupportedNode,
|
|
138
|
+
assertSupportedPackageManager,
|
|
139
|
+
assertValidBackendDescriptor,
|
|
140
|
+
assertValidBackendDescriptorFile,
|
|
141
|
+
auditBuiltDeclarationDependencies,
|
|
142
|
+
auditFrontendPackageBoundaries,
|
|
143
|
+
auditPackageReleaseContract,
|
|
144
|
+
auditPluginI18n,
|
|
145
|
+
auditRepositoryPluginAuthoringBoundaries,
|
|
146
|
+
buildCurrentContractSnapshot,
|
|
147
|
+
buildPluginContractGraph,
|
|
148
|
+
buildReleaseCompatibilityHistory,
|
|
149
|
+
checkContractCompatibility,
|
|
150
|
+
compareExtensionContracts,
|
|
151
|
+
compilePluginSource,
|
|
152
|
+
compilerPageRoutesFromManifest,
|
|
153
|
+
contractFromManifestPayload,
|
|
154
|
+
createExtensionDevtoolsArtifact,
|
|
155
|
+
createExtensionTargetReference,
|
|
156
|
+
createPluginScaffold,
|
|
157
|
+
createRepositoryBaselineFile,
|
|
158
|
+
currentExtensionContractFromManifest,
|
|
159
|
+
definePlugmaticaPluginConfig,
|
|
160
|
+
enforceStrictCompatibility,
|
|
161
|
+
extensionNamespaceName,
|
|
162
|
+
fixPluginI18n,
|
|
163
|
+
fixRedundantExtensionOverrides,
|
|
164
|
+
formatCompatibilityReport,
|
|
165
|
+
formatExtensionFixResult,
|
|
166
|
+
formatExtensionInventory,
|
|
167
|
+
formatI18nFixResult,
|
|
168
|
+
formatPackageBoundaryAudit,
|
|
169
|
+
formatPackageReleaseAudit,
|
|
170
|
+
formatPluginI18nAudit,
|
|
171
|
+
formatPluginInspection,
|
|
172
|
+
formatProtocolParityReport,
|
|
173
|
+
formatScanIssues,
|
|
174
|
+
formatWorkflowNodePackageInspection,
|
|
175
|
+
generateExtensionTargets,
|
|
176
|
+
generatePluginContractGraphArtifacts,
|
|
177
|
+
generatePluginDocumentation,
|
|
178
|
+
generatePluginI18n,
|
|
179
|
+
generatePluginManifest,
|
|
180
|
+
hasLocaleFragments,
|
|
181
|
+
initRepositoryContractBaseline,
|
|
182
|
+
inspectPlugin,
|
|
183
|
+
inspectWorkflowNodePackage,
|
|
184
|
+
listPluginTemplates,
|
|
185
|
+
loadPackageReleasePolicy,
|
|
186
|
+
loadReleaseContractSnapshots,
|
|
187
|
+
localeFragmentsRoot,
|
|
188
|
+
managedStorageIdentifier,
|
|
189
|
+
materializeGeneratedFrontendManifest,
|
|
190
|
+
materializeLocaleFragments,
|
|
191
|
+
mergeGeneratedContributions,
|
|
192
|
+
mergeGeneratedI18nIntoManifest,
|
|
193
|
+
mergeGeneratedSurfaces,
|
|
194
|
+
messagePlaceholders,
|
|
195
|
+
normalizeCurrentExtensionContract,
|
|
196
|
+
normalizeStandardSurfaceContracts,
|
|
197
|
+
parseContractBaselineFile,
|
|
198
|
+
plugmaticaFederationDedupe,
|
|
199
|
+
plugmaticaFederationShared,
|
|
200
|
+
plugmaticaManifestPlugin,
|
|
201
|
+
readContractBaselineFile,
|
|
202
|
+
readLocaleFragments,
|
|
203
|
+
readMessageDictionary,
|
|
204
|
+
renderPluginContractGraphMermaid,
|
|
205
|
+
renderReleaseCompatibilityHistoryMarkdown,
|
|
206
|
+
renderReleaseCompatibilityHistoryMermaid,
|
|
207
|
+
renderStandardSurfaceReference,
|
|
208
|
+
repositoryBaselinePath,
|
|
209
|
+
reservedManagedColumnForField,
|
|
210
|
+
resolveContractBaseline,
|
|
211
|
+
scanPluginI18nSource,
|
|
212
|
+
synthesizeWorkflowEventTriggers,
|
|
213
|
+
targetAccessPath,
|
|
214
|
+
transformCompiledSource,
|
|
215
|
+
updateRepositoryContractBaseline,
|
|
216
|
+
validateBackendDescriptor,
|
|
217
|
+
validateBackendDescriptorFile,
|
|
218
|
+
validateExtensionDependencyGraph,
|
|
219
|
+
validateLocaleDictionary,
|
|
220
|
+
validateSharedReference,
|
|
221
|
+
validateSourceManifestOwnership,
|
|
222
|
+
verifyFrontendProtocolAgainstRust,
|
|
223
|
+
versionRequirementAccepts,
|
|
224
|
+
workflowActionContractFingerprint,
|
|
225
|
+
workflowEventContractFingerprint,
|
|
226
|
+
writeContractBaselineFile,
|
|
227
|
+
writeExtensionDevtoolsArtifact,
|
|
228
|
+
writeLocaleFragments,
|
|
229
|
+
writeReleaseCompatibilityHistory
|
|
230
|
+
};
|