@tiangong-lca/foundry 0.1.6 → 0.1.8
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/README.md +7 -5
- package/docs/architecture.md +7 -5
- package/docs/foundry-task-contracts.md +4 -4
- package/docs/import-profiles/worldsteel/constraints.md +3 -3
- package/docs/import-profiles/worldsteel/import-coverage.md +3 -3
- package/docs/import-profiles/worldsteel/import-plan.md +1 -1
- package/docs/import-profiles/worldsteel/profile.md +3 -3
- package/docs/package-distribution-contract.md +11 -7
- package/docs/public-runtime-contract.md +23 -7
- package/docs/runtime-context-contract.md +11 -5
- package/docs/task-authorization-contract.md +8 -4
- package/package-dist/assets/foundry-package-descriptor.json +166 -90
- package/package-dist/scripts/foundry-facade.d.ts +1 -0
- package/package-dist/scripts/foundry-facade.js +35 -4
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.js +65 -10
- package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.d.ts +12 -0
- package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.js +57 -0
- package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.d.ts +28 -0
- package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.js +115 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.d.ts +13 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.js +99 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.d.ts +47 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.js +146 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.js +13 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts +8 -2
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.js +48 -2
- package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.d.ts +12 -0
- package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.js +77 -0
- package/package-dist/scripts/lib/foundry-authorization-input.d.ts +8 -0
- package/package-dist/scripts/lib/foundry-authorization-input.js +68 -1
- package/package-dist/scripts/lib/foundry-command-metadata.js +15 -1
- package/package-dist/scripts/lib/foundry-execution-admission.js +82 -5
- package/package-dist/scripts/lib/foundry-managed-actions.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-managed-actions.js +56 -0
- package/package-dist/scripts/lib/foundry-managed-host.d.ts +2 -2
- package/package-dist/scripts/lib/foundry-managed-host.js +2 -0
- package/package-dist/scripts/lib/foundry-owner-execution-store.js +25 -2
- package/package-dist/scripts/lib/foundry-owner-readback.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-owner-readback.js +65 -14
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +4 -4
- package/package-dist/scripts/lib/foundry-package-contract.js +4 -2
- package/package-dist/scripts/lib/foundry-reference-input.d.ts +28 -0
- package/package-dist/scripts/lib/foundry-reference-input.js +235 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.js +2 -2
- package/package-dist/scripts/lib/foundry-runtime-utils.js +1 -1
- package/package-dist/scripts/lib/foundry-task-store.d.ts +1 -1
- package/package-dist/scripts/lib/foundry-workflow-authorization.d.ts +2 -1
- package/package-dist/scripts/lib/foundry-workflow-authorization.js +38 -2
- package/package-dist/scripts/lib/foundry-workflow-execution.js +7 -1
- package/package-dist/scripts/lib/foundry-workflow-finalize.js +43 -1
- package/package-dist/scripts/lib/foundry-workflow-state.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-workflow-state.js +31 -2
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +1 -1
- package/package-dist/scripts/public-api.d.ts +1 -0
- package/package-dist/scripts/runtime-entry.d.ts +5 -1
- package/package-dist/scripts/runtime-entry.js +4 -1
- package/package.json +3 -2
- package/specs/import-profiles.json +1 -1
- package/specs/prewrite-content-policy.json +1 -1
- package/specs/schemas/foundry-authorization-input.schema.json +38 -1
- package/specs/schemas/foundry-managed-runtime.schema.json +1 -1
- package/specs/schemas/foundry-package-descriptor.schema.json +3 -2
- package/specs/schemas/foundry-reference-input.schema.json +137 -0
- package/specs/schemas/runtime-qualification.schema.json +1 -1
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"workflow_state_markers": [
|
|
63
63
|
{
|
|
64
64
|
"id": "foundry-runtime",
|
|
65
|
-
"pattern": "(?<!\\b(?:metal|iron|steel|brass|bronze|aluminium|aluminum)\\s)\\bFoundry\\b(
|
|
65
|
+
"pattern": "\\bFoundry[\\s\\p{Pd}_:]+(?:runtimes?|workspaces?)\\b|(?<!\\b(?:metal|iron|steel|brass|bronze|aluminium|aluminum|alloys?|castings?)[\\s\\p{Pd}]+)\\bFoundry\\b(?![\\s\\p{Pd}]+(?:alloys?|castings?|moulds?|molds?|sand|works?|goods|industry|industries)\\b)",
|
|
66
66
|
"flags": "iu"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
@@ -115,6 +115,43 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"minContains": 1
|
|
118
|
+
},
|
|
119
|
+
"execution_contract": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"additionalProperties": false,
|
|
122
|
+
"required": ["file", "sha256"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"file": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 4096,
|
|
128
|
+
"pattern": "^[^\\u0000\\r\\n]+$"
|
|
129
|
+
},
|
|
130
|
+
"sha256": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"allOf": [
|
|
138
|
+
{
|
|
139
|
+
"if": {
|
|
140
|
+
"required": ["execution_contract"],
|
|
141
|
+
"properties": {
|
|
142
|
+
"execution_contract": {}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"then": {
|
|
146
|
+
"properties": {
|
|
147
|
+
"input_kind": {
|
|
148
|
+
"const": "final_rows"
|
|
149
|
+
},
|
|
150
|
+
"dataset_type": {
|
|
151
|
+
"enum": ["flow", "process", "source"]
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
118
155
|
}
|
|
119
|
-
|
|
156
|
+
]
|
|
120
157
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"const": "@tiangong-lca/foundry"
|
|
19
19
|
},
|
|
20
20
|
"version": {
|
|
21
|
-
"const": "0.1.
|
|
21
|
+
"const": "0.1.8"
|
|
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.
|
|
32
|
+
"const": "0.1.14"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"tiangong-foundry.task-start.v1",
|
|
75
75
|
"tiangong-foundry.semantic-input.v1",
|
|
76
76
|
"tiangong-foundry.authorization-input.v1",
|
|
77
|
+
"tiangong-foundry.reference-input.v1",
|
|
77
78
|
"tiangong-foundry.facade-request-index.v1",
|
|
78
79
|
"tiangong-foundry.workspace-migration-plan.v1",
|
|
79
80
|
"tiangong-foundry.workspace-migration-transfer-plan.v2",
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Foundry Reference Input v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"task_id",
|
|
9
|
+
"actor_id",
|
|
10
|
+
"rows_manifest_sha256",
|
|
11
|
+
"dataset_type",
|
|
12
|
+
"qa_reference_rows",
|
|
13
|
+
"intent",
|
|
14
|
+
"review_files"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schema": {
|
|
18
|
+
"const": "tiangong-foundry.reference-input.v1"
|
|
19
|
+
},
|
|
20
|
+
"task_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^task-[0-9a-f]{64}-r[0-9]{4}$"
|
|
23
|
+
},
|
|
24
|
+
"actor_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:/-]{0,255}$"
|
|
27
|
+
},
|
|
28
|
+
"rows_manifest_sha256": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
31
|
+
},
|
|
32
|
+
"dataset_type": {
|
|
33
|
+
"enum": [
|
|
34
|
+
"process",
|
|
35
|
+
"flow",
|
|
36
|
+
"source",
|
|
37
|
+
"contact",
|
|
38
|
+
"lifecyclemodel",
|
|
39
|
+
"unitgroup",
|
|
40
|
+
"flowproperty"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"qa_reference_rows": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"maxItems": 128,
|
|
46
|
+
"items": {
|
|
47
|
+
"$ref": "#/$defs/file"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"intent": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "null"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"$ref": "#/$defs/file"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"review_files": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"maxItems": 128,
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/$defs/file"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$defs": {
|
|
69
|
+
"file": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": ["file", "sha256"],
|
|
73
|
+
"properties": {
|
|
74
|
+
"file": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 4096,
|
|
78
|
+
"pattern": "^[^\\u0000\\r\\n]+$"
|
|
79
|
+
},
|
|
80
|
+
"sha256": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"allOf": [
|
|
88
|
+
{
|
|
89
|
+
"if": {
|
|
90
|
+
"properties": {
|
|
91
|
+
"qa_reference_rows": {
|
|
92
|
+
"minItems": 1,
|
|
93
|
+
"type": "array"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": ["qa_reference_rows"]
|
|
97
|
+
},
|
|
98
|
+
"then": {
|
|
99
|
+
"properties": {
|
|
100
|
+
"dataset_type": {
|
|
101
|
+
"const": "process"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"if": {
|
|
108
|
+
"properties": {
|
|
109
|
+
"intent": {
|
|
110
|
+
"type": "null"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": ["intent"]
|
|
114
|
+
},
|
|
115
|
+
"then": {
|
|
116
|
+
"properties": {
|
|
117
|
+
"qa_reference_rows": {
|
|
118
|
+
"minItems": 1,
|
|
119
|
+
"type": "array"
|
|
120
|
+
},
|
|
121
|
+
"review_files": {
|
|
122
|
+
"maxItems": 0,
|
|
123
|
+
"type": "array"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"else": {
|
|
128
|
+
"properties": {
|
|
129
|
+
"review_files": {
|
|
130
|
+
"minItems": 1,
|
|
131
|
+
"type": "array"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
@@ -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.
|
|
17
|
+
"package_version": { "const": "0.1.14" },
|
|
18
18
|
"platform": {
|
|
19
19
|
"enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
20
20
|
},
|