@tiangong-lca/foundry 0.1.12 → 0.1.13

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 (45) hide show
  1. package/README.md +5 -5
  2. package/docs/architecture.md +7 -5
  3. package/docs/foundry-task-contracts.md +4 -4
  4. package/docs/import-profiles/worldsteel/constraints.md +3 -3
  5. package/docs/import-profiles/worldsteel/import-coverage.md +3 -3
  6. package/docs/import-profiles/worldsteel/import-plan.md +4 -4
  7. package/docs/import-profiles/worldsteel/profile.md +3 -3
  8. package/docs/package-distribution-contract.md +9 -9
  9. package/docs/public-runtime-contract.md +8 -6
  10. package/docs/runtime-context-contract.md +3 -3
  11. package/docs/task-authorization-contract.md +3 -3
  12. package/package-dist/assets/foundry-package-descriptor.json +97 -67
  13. package/package-dist/scripts/foundry-facade.js +217 -9
  14. package/package-dist/scripts/lib/foundry-interaction-input.d.ts +4 -3
  15. package/package-dist/scripts/lib/foundry-interaction-input.js +40 -7
  16. package/package-dist/scripts/lib/foundry-interaction-projection.d.ts +21 -2
  17. package/package-dist/scripts/lib/foundry-interaction-projection.js +49 -8
  18. package/package-dist/scripts/lib/foundry-interaction-scope.d.ts +7 -0
  19. package/package-dist/scripts/lib/foundry-interaction-scope.js +40 -0
  20. package/package-dist/scripts/lib/foundry-interaction-types.d.ts +5 -0
  21. package/package-dist/scripts/lib/foundry-native-validation-failure.d.ts +36 -0
  22. package/package-dist/scripts/lib/foundry-native-validation-failure.js +142 -0
  23. package/package-dist/scripts/lib/foundry-owner-execution-store.js +6 -13
  24. package/package-dist/scripts/lib/foundry-package-contract.d.ts +2 -2
  25. package/package-dist/scripts/lib/foundry-package-contract.js +2 -2
  26. package/package-dist/scripts/lib/foundry-runtime-qualification.js +2 -2
  27. package/package-dist/scripts/lib/foundry-runtime-utils.js +1 -1
  28. package/package-dist/scripts/lib/foundry-semantic-interaction.d.ts +11 -1
  29. package/package-dist/scripts/lib/foundry-semantic-interaction.js +64 -14
  30. package/package-dist/scripts/lib/foundry-tidas-source.js +4 -4
  31. package/package-dist/scripts/lib/foundry-workflow-approval-continuation.js +3 -0
  32. package/package-dist/scripts/lib/foundry-workflow-assessment.js +27 -2
  33. package/package-dist/scripts/lib/foundry-workflow-authorization.js +3 -0
  34. package/package-dist/scripts/lib/foundry-workflow-interaction.js +22 -3
  35. package/package-dist/scripts/lib/foundry-workflow-object-scope.d.ts +53 -0
  36. package/package-dist/scripts/lib/foundry-workflow-object-scope.js +326 -0
  37. package/package-dist/scripts/lib/foundry-workflow-semantic.d.ts +5 -0
  38. package/package-dist/scripts/lib/foundry-workflow-semantic.js +200 -6
  39. package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +1 -1
  40. package/package.json +2 -2
  41. package/specs/import-profiles.json +1 -1
  42. package/specs/schemas/foundry-interaction-input.schema.json +29 -2
  43. package/specs/schemas/foundry-managed-runtime.schema.json +1 -1
  44. package/specs/schemas/foundry-package-descriptor.schema.json +2 -2
  45. package/specs/schemas/runtime-qualification.schema.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiangong-lca/foundry",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "description": "Control plane for TianGong LCA external dataset import and TIDAS authoring work.",
6
6
  "repository": {
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "license": "MIT",
84
84
  "dependencies": {
85
- "@tiangong-lca/cli": "0.1.19"
85
+ "@tiangong-lca/cli": "0.1.22"
86
86
  },
87
87
  "foundryRuntime": {
88
88
  "schema": "tiangong-foundry.runtime-layout.v2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema_version": 2,
3
- "updated_at_utc": "2026-09-21T07:44:02Z",
3
+ "updated_at_utc": "2026-09-24T11:22:54Z",
4
4
  "default_profile": "generic",
5
5
  "profiles": {
6
6
  "generic": {
@@ -62,6 +62,27 @@
62
62
  }
63
63
  ]
64
64
  },
65
+ "concreteScope": {
66
+ "enum": [
67
+ "contact",
68
+ "source",
69
+ "flow",
70
+ "flowproperty",
71
+ "unitgroup",
72
+ "process",
73
+ "lifecyclemodel"
74
+ ]
75
+ },
76
+ "objectScope": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": ["entity_id", "version", "row_sha256"],
80
+ "properties": {
81
+ "entity_id": { "$ref": "#/$defs/id" },
82
+ "version": { "$ref": "#/$defs/id" },
83
+ "row_sha256": { "$ref": "#/$defs/sha" }
84
+ }
85
+ },
65
86
  "evidence": {
66
87
  "type": "array",
67
88
  "maxItems": 16,
@@ -87,6 +108,7 @@
87
108
  "kind": { "const": "question" },
88
109
  "id": { "$ref": "#/$defs/id" },
89
110
  "dataset_type": { "$ref": "#/$defs/scope" },
111
+ "object_scope": { "$ref": "#/$defs/objectScope" },
90
112
  "missing": { "$ref": "#/$defs/shortText" },
91
113
  "impact": { "$ref": "#/$defs/shortText" },
92
114
  "recommendation": { "$ref": "#/$defs/shortText" },
@@ -104,7 +126,9 @@
104
126
  },
105
127
  "evidence_sha256": { "$ref": "#/$defs/evidence" },
106
128
  "supersedes": { "oneOf": [{ "$ref": "#/$defs/id" }, { "type": "null" }] }
107
- }
129
+ },
130
+ "if": { "properties": { "object_scope": {} }, "required": ["object_scope"] },
131
+ "then": { "properties": { "dataset_type": { "$ref": "#/$defs/concreteScope" } } }
108
132
  },
109
133
  "answer": {
110
134
  "type": "object",
@@ -163,11 +187,14 @@
163
187
  "kind": { "const": "assumption" },
164
188
  "id": { "$ref": "#/$defs/id" },
165
189
  "dataset_type": { "$ref": "#/$defs/scope" },
190
+ "object_scope": { "$ref": "#/$defs/objectScope" },
166
191
  "statement": { "$ref": "#/$defs/text" },
167
192
  "impact": { "$ref": "#/$defs/text" },
168
193
  "evidence_sha256": { "$ref": "#/$defs/evidence" },
169
194
  "supersedes": { "oneOf": [{ "$ref": "#/$defs/id" }, { "type": "null" }] }
170
- }
195
+ },
196
+ "if": { "properties": { "object_scope": {} }, "required": ["object_scope"] },
197
+ "then": { "properties": { "dataset_type": { "$ref": "#/$defs/concreteScope" } } }
171
198
  }
172
199
  }
173
200
  }
@@ -29,7 +29,7 @@
29
29
  "const": "tiangong-lca.cli-runtime-expectation.v1"
30
30
  },
31
31
  "package_version": {
32
- "const": "0.1.19"
32
+ "const": "0.1.22"
33
33
  },
34
34
  "platform": {
35
35
  "$ref": "#/$defs/platform"
@@ -18,7 +18,7 @@
18
18
  "const": "@tiangong-lca/foundry"
19
19
  },
20
20
  "version": {
21
- "const": "0.1.12"
21
+ "const": "0.1.13"
22
22
  },
23
23
  "cli_dependency": {
24
24
  "type": "object",
@@ -29,7 +29,7 @@
29
29
  "const": "@tiangong-lca/cli"
30
30
  },
31
31
  "version": {
32
- "const": "0.1.19"
32
+ "const": "0.1.22"
33
33
  }
34
34
  }
35
35
  },
@@ -14,7 +14,7 @@
14
14
  "additionalProperties": false,
15
15
  "required": ["package_version", "platform", "content_sha256", "node_version", "node_sha256"],
16
16
  "properties": {
17
- "package_version": { "const": "0.1.19" },
17
+ "package_version": { "const": "0.1.22" },
18
18
  "platform": {
19
19
  "enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
20
20
  },