@fabricorg/gen-sdui 0.6.0 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1
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.5.1
11
+
3
12
  ## 0.6.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -9,7 +9,7 @@ let _fabricorg_experience_contracts = require("@fabricorg/experience-contracts")
9
9
  */
10
10
  const sduiGenerator = {
11
11
  name: "@fabricorg/gen-sdui",
12
- version: "0.6.0",
12
+ version: "0.6.1",
13
13
  generate(ir) {
14
14
  return ir.modules.map((module) => {
15
15
  const experience = (0, _fabricorg_experience_contracts.readExperienceMetadata)(module.capability);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"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.6.0\",\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":";;;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,cAAA,GAAaA,gCAAAA,uBAAAA,CAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,UAAA,GAASC,oBAAAA,gBAAAA,CAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"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.6.1\",\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":";;;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,cAAA,GAAaA,gCAAAA,uBAAAA,CAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,UAAA,GAASC,oBAAAA,gBAAAA,CAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { readExperienceMetadata } from "@fabricorg/experience-contracts";
8
8
  */
9
9
  const sduiGenerator = {
10
10
  name: "@fabricorg/gen-sdui",
11
- version: "0.6.0",
11
+ version: "0.6.1",
12
12
  generate(ir) {
13
13
  return ir.modules.map((module) => {
14
14
  const experience = readExperienceMetadata(module.capability);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"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.6.0\",\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":";;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,aAAa,uBAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,SAAS,gBAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"index.js","names":[],"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.6.1\",\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":";;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,aAAa,uBAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,SAAS,gBAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/gen-sdui",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "SDUI data-shape binding generator for Fabric compiler IR.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,15 +32,15 @@
32
32
  "CHANGELOG.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@fabricorg/compiler": "^2.5.0",
35
+ "@fabricorg/compiler": "^2.5.1",
36
36
  "@fabricorg/experience-contracts": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.10.0",
39
+ "@types/node": "^22.20.5",
40
40
  "tsdown": "^0.23.7",
41
41
  "typescript": "^5.7.3",
42
- "vitest": "^4.1.5",
43
- "@fabricorg/platform": "^1.19.0"
42
+ "vitest": "^5.1.0",
43
+ "@fabricorg/platform": "^1.20.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=22"