@fabricorg/gen-sdui 0.5.3 → 0.5.4

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
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 0b437ed: Report action and view discovery-surface changes in manifest compatibility analysis. Document that
8
+ first-party generator artifacts retain internal contracts for trusted assembly, not external catalogs.
9
+ - Updated dependencies [0b437ed]
10
+ - @fabricorg/compiler@2.2.4
11
+
3
12
  ## 0.5.3
4
13
 
5
14
  ### Patch Changes
package/README.md CHANGED
@@ -4,3 +4,9 @@ SDUI data-shape bindings derived from logical view contracts. This package emits
4
4
  rendering, theming, and composition remain outside the portable Platform kernel and are supported
5
5
  by separately versioned experience-tier packages.
6
6
 
7
+
8
+ ### Discovery boundary
9
+
10
+ This generator retains internal action/view contracts for trusted assembly and worker integration.
11
+ Its output is not an external audience catalog. Before disclosing definitions externally, omit
12
+ `surface: "internal"` entries from the source manifest and apply live audience disclosure rules.
package/dist/index.cjs CHANGED
@@ -27,7 +27,7 @@ var import_compiler = require("@fabricorg/compiler");
27
27
  var import_experience_contracts = require("@fabricorg/experience-contracts");
28
28
  var sduiGenerator = {
29
29
  name: "@fabricorg/gen-sdui",
30
- version: "0.5.3",
30
+ version: "0.5.4",
31
31
  generate(ir) {
32
32
  return ir.modules.map((module2) => {
33
33
  const experience = (0, import_experience_contracts.readExperienceMetadata)(module2.capability);
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.3\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsD;AACtD,kCAAuC;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAACA,YAAW;AACjC,YAAM,iBAAa,oDAAuBA,QAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAGA,QAAO,SAAS;AAAA,QACzB,aAAS,iCAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAUA,QAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":["module"]}
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.4\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,sBAAsD;AACtD,kCAAuC;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAACA,YAAW;AACjC,YAAM,iBAAa,oDAAuBA,QAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAGA,QAAO,SAAS;AAAA,QACzB,aAAS,iCAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAUA,QAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":["module"]}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,11 @@
1
1
  import { GeneratorTarget } from '@fabricorg/compiler';
2
2
 
3
+ /**
4
+ * Trusted assembly/code-generation artifact, not an external audience catalog.
5
+ * Internal surface declarations do not remove contracts here: assemblers and workers need
6
+ * their schemas. External catalogs must filter internal definitions and apply audience rules.
7
+ */
8
+
3
9
  declare const sduiGenerator: GeneratorTarget;
4
10
 
5
11
  export { sduiGenerator };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import { GeneratorTarget } from '@fabricorg/compiler';
2
2
 
3
+ /**
4
+ * Trusted assembly/code-generation artifact, not an external audience catalog.
5
+ * Internal surface declarations do not remove contracts here: assemblers and workers need
6
+ * their schemas. External catalogs must filter internal definitions and apply audience rules.
7
+ */
8
+
3
9
  declare const sduiGenerator: GeneratorTarget;
4
10
 
5
11
  export { sduiGenerator };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { stableStringify } from "@fabricorg/compiler";
3
3
  import { readExperienceMetadata } from "@fabricorg/experience-contracts";
4
4
  var sduiGenerator = {
5
5
  name: "@fabricorg/gen-sdui",
6
- version: "0.5.3",
6
+ version: "0.5.4",
7
7
  generate(ir) {
8
8
  return ir.modules.map((module) => {
9
9
  const experience = readExperienceMetadata(module.capability);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.3\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";AAAA,SAAS,uBAA6C;AACtD,SAAS,8BAA8B;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAAC,WAAW;AACjC,YAAM,aAAa,uBAAuB,OAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAG,OAAO,SAAS;AAAA,QACzB,SAAS,gBAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAU,OAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":[]}
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.4\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";AAKA,SAAS,uBAA6C;AACtD,SAAS,8BAA8B;AAEhC,IAAM,gBAAiC;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS,IAAI;AACZ,WAAO,GAAG,QAAQ,IAAI,CAAC,WAAW;AACjC,YAAM,aAAa,uBAAuB,OAAO,UAAU;AAC3D,aAAO;AAAA,QACN,MAAM,GAAG,OAAO,SAAS;AAAA,QACzB,SAAS,gBAAgB;AAAA,UACxB,WAAW,EAAE,MAAM,cAAc,MAAM,SAAS,cAAc,QAAQ;AAAA,UACtE,gBAAgB,GAAG;AAAA,UACnB,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,eAAe,YAAY,iBAAiB,CAAC;AAAA,UAC7C,OAAO,YAAY,SAAS,CAAC;AAAA,UAC7B,UAAU,OAAO,MAAM,IAAI,CAAC,UAAU;AAAA,YACrC,KAAK,gBAAgB,KAAK,IAAI;AAAA,YAC9B,SAAS,KAAK;AAAA,YACd,OAAO,KAAK;AAAA,YACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;AAAA,YACxE,OAAO,KAAK;AAAA,YACZ,OAAO,KAAK;AAAA,UACb,EAAE;AAAA,QACH,CAAC;AAAA,MACF;AAAA,IACD,CAAC;AAAA,EACF;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/gen-sdui",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "SDUI data-shape binding generator for Fabric compiler IR.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "CHANGELOG.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@fabricorg/compiler": "^2.2.2",
35
+ "@fabricorg/compiler": "^2.2.4",
36
36
  "@fabricorg/experience-contracts": "^1.0.2"
37
37
  },
38
38
  "devDependencies": {
@@ -40,7 +40,7 @@
40
40
  "tsup": "^8.5.0",
41
41
  "typescript": "^5.7.3",
42
42
  "vitest": "^4.1.5",
43
- "@fabricorg/platform": "^1.5.1"
43
+ "@fabricorg/platform": "^1.6.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=20"