@reventlessdev/reventless-spec 3.0.0-alpha.75 → 3.0.0-alpha.76

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.76 (2026-07-12)
7
+
8
+ ### Features
9
+
10
+ * **admin:** make the API fragment registry per-target (Domain | Platform) ([30491a9](https://github.com/ReventlessDev/reventless-core/commit/30491a9e14b4236c98cc756efb6de68ede1e77d7))
11
+ * **admin:** retire the Plugin-aggregate UI-fragment path in favour of the registry slices ([1dbc708](https://github.com/ReventlessDev/reventless-core/commit/1dbc708e7439b34ff970cc3d963d7835a8c6fd48))
12
+
13
+
6
14
  # 3.0.0-alpha.75 (2026-07-11)
7
15
 
8
16
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-spec",
3
- "version": "3.0.0-alpha.75",
3
+ "version": "3.0.0-alpha.76",
4
4
  "description": "Specifications for Reventless",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -92,6 +92,16 @@ Encoded as JSON for transport; protocol identifies the schema format (e.g. "grap
92
92
  @schema
93
93
  type apiSchemaFragment = {encoded: string, protocol: string}
94
94
 
95
+ /**
96
+ The API a plugin's GraphQL fields are stitched into: the Domain API (the default —
97
+ application plugins) or the Platform API (platform-level plugins such as an inspector,
98
+ which contribute fields alongside the admin base). Serializes as the bare string
99
+ "Domain" / "Platform". Consumed by the schema-fragment registry to maintain one
100
+ cumulative schema per API.
101
+ */
102
+ @schema
103
+ type apiTarget = Domain | Platform
104
+
95
105
  // Sury's nullableAsOption creates T | undefined | null which fails jsonableValidation
96
106
  // inside union variant payloads. js_nullable creates T | null (no undefined) which is
97
107
  // JSON-safe and passes jsonableValidation in all contexts.
@@ -403,8 +413,6 @@ type pluginDefinition = {
403
413
  // Uses @s.matches(stringOptionSchema) — js_nullable creates string | null (not string | undefined),
404
414
  // which passes sury's jsonableValidation inside union variant payloads.
405
415
  apiTarget: @s.matches(stringOptionSchema) option<string>,
406
- // UI fragment manifest contributed by this plugin (optional, absent for pure backend plugins).
407
- uiFragments: @s.matches(uiFragmentManifestOptionSchema) option<uiFragmentManifest>,
408
416
  // Component graph metadata — populated by makePluginDefinition; absent for older protocol versions.
409
417
  structure: @s.matches(pluginStructureOptionSchema) option<pluginStructure>,
410
418
  // DCB EventLog definition for plugins that bundle a DcbEventLog component.
@@ -38,6 +38,11 @@ let apiSchemaFragmentSchema = S.schema(s => ({
38
38
  protocol: s.m(S.string)
39
39
  }));
40
40
 
41
+ let apiTargetSchema = S.union([
42
+ S.literal("Domain"),
43
+ S.literal("Platform")
44
+ ]);
45
+
41
46
  let apiSchemaFragmentOptionSchema = SuryResMjs.js_nullable(apiSchemaFragmentSchema);
42
47
 
43
48
  let dcbEventLogOptionSchema = SuryResMjs.js_nullable(dcbEventLogDefinitionSchema);
@@ -214,7 +219,6 @@ let pluginDefinitionSchema = S.schema(s => ({
214
219
  extensionProtocols: s.m(S.array(extensionProtocolSchema)),
215
220
  apiSchemaFragment: s.m(apiSchemaFragmentOptionSchema),
216
221
  apiTarget: s.m(stringOptionSchema),
217
- uiFragments: s.m(uiFragmentManifestOptionSchema),
218
222
  structure: s.m(pluginStructureOptionSchema),
219
223
  dcbEventLog: s.m(dcbEventLogOptionSchema),
220
224
  kind: s.m(pluginKindSchema)
@@ -233,6 +237,7 @@ export {
233
237
  dcbEventLogDefinitionSchema,
234
238
  extensionProtocolSchema,
235
239
  apiSchemaFragmentSchema,
240
+ apiTargetSchema,
236
241
  apiSchemaFragmentOptionSchema,
237
242
  dcbEventLogOptionSchema,
238
243
  stringOptionSchema,