@toolproof-core/schema 1.0.10 → 1.0.11
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/dist/generated/artifacts/constants.d.ts +4 -3
- package/dist/generated/artifacts/constants.js +4 -3
- package/dist/generated/normalized/Genesis.json +50 -25
- package/dist/generated/resources/Genesis.json +68 -31
- package/dist/generated/schemas/Genesis.json +38 -19
- package/dist/generated/schemas/standalone/Job.json +7 -8
- package/dist/generated/schemas/standalone/ResourceType.json +4 -4
- package/dist/generated/schemas/standalone/RunnableStrategy.json +7 -7
- package/dist/generated/schemas/standalone/StrategyRun.json +7 -7
- package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
- package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/dist/generated/types/types.d.ts +229 -221
- package/dist/index.d.ts +1 -1
- package/dist/scripts/generateStandaloneType.js +2 -1
- package/dist/scripts/generateTypes.js +136 -3
- package/package.json +1 -1
- package/src/Genesis.json +54 -28
- package/src/generated/artifacts/constants.ts +122 -121
- package/src/generated/artifacts/dependencyMap.json +282 -278
- package/src/generated/artifacts/terminals.json +13 -12
- package/src/generated/normalized/Genesis.json +50 -25
- package/src/generated/resources/Genesis.json +68 -31
- package/src/generated/schemas/Genesis.json +38 -19
- package/src/generated/schemas/standalone/Job.json +195 -196
- package/src/generated/schemas/standalone/RawStrategy.json +580 -580
- package/src/generated/schemas/standalone/ResourceType.json +106 -106
- package/src/generated/schemas/standalone/RunnableStrategy.json +7 -7
- package/src/generated/schemas/standalone/StrategyRun.json +7 -7
- package/src/generated/types/standalone/Resource_Genesis.d.ts +3 -3
- package/src/generated/types/standalone/Resource_Job.d.ts +3 -3
- package/src/generated/types/standalone/Resource_RawStrategy.d.ts +3 -3
- package/src/generated/types/standalone/Resource_ResourceType.d.ts +3 -3
- package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +3 -3
- package/src/generated/types/types.d.ts +229 -221
- package/src/index.ts +47 -45
- package/src/scripts/generateStandaloneType.ts +3 -1
- package/src/scripts/generateTypes.ts +151 -5
package/dist/index.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export type { Resource_ResourceType as Resource_ResourceTypeJson } from './gener
|
|
|
11
11
|
export type { Resource_Job as Resource_JobJson } from './generated/types/standalone/Resource_Job.js';
|
|
12
12
|
export type { Resource_RawStrategy as Resource_RawStrategyJson } from './generated/types/standalone/Resource_RawStrategy.js';
|
|
13
13
|
export type { Resource_RunnableStrategy as Resource_RunnableStrategyJson } from './generated/types/standalone/Resource_RunnableStrategy.js';
|
|
14
|
-
export type {
|
|
14
|
+
export type { DocumentationFacetJson, NucleusFacetJson, ResourceTypeIdentityJson, ResourceTypeJson, ResourceRoleIdentityJson, ResourceRoleValueJson, ResourceRoleJson, ConditionalJson, RoleDictJson, RolesJson, RoleBindingsJson, ResourceIdentityJson, JobStepIdentityJson, BranchStepIdentityJson, WhileStepIdentityJson, ForStepIdentityJson, JobStepJson, BranchStepJson, WhileStepJson, ForStepJson, StepKindJson, StepIdentityJson, StepJson, CreationContextJson, ResourceMissingJson, ResourceInputPotentialJson, ResourceOutputPotentialJson, ShellMaterializedBaseJson, ResourceJson, StrategyStateJson, StepsFacetJson, RawStrategyJson, RunnableStrategyIdentityJson, RunnableStrategyStatusJson, RunnableStrategyJson, RunnableStrategyUpdateJson, JobIdentityJson, JobJson, JsonDataJson, StrategyThreadIdentityJson, StrategyThreadDictJson, JobStepSocketJson, TimestampJson, StrategyRunIdentityJson, GoalIdentityJson, GoalJson, ErrorJson, } from './generated/types/types.js';
|
|
@@ -9,7 +9,8 @@ import { getConfig } from "./_lib/config.js";
|
|
|
9
9
|
// PURE: Generate the content of a standalone Resource type definition file for a given schema name.
|
|
10
10
|
function generateStandaloneTypeLogic(name) {
|
|
11
11
|
const header = "// Auto-generated strict composite type. Do not edit.\n";
|
|
12
|
-
const
|
|
12
|
+
const nucleusTypeName = name.endsWith("Json") ? name : `${name}Json`;
|
|
13
|
+
const ts = `import type { ShellMaterializedBaseJson as ShellMaterializedBase, ${nucleusTypeName} as NucleusSchema } from "../types.js";\n` +
|
|
13
14
|
`export type Resource_${name} = ShellMaterializedBase & { nucleus: NucleusSchema };\n`;
|
|
14
15
|
return header + ts;
|
|
15
16
|
}
|
|
@@ -227,6 +227,136 @@ function removeDuplicateUnionEntries(ts) {
|
|
|
227
227
|
function escapeRegExpLiteral(value) {
|
|
228
228
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
229
229
|
}
|
|
230
|
+
// PURE: Rename exported top-level generated declarations to canonical `*Json` names.
|
|
231
|
+
// This makes editor hover/inference prefer `FooJson` because the underlying declared
|
|
232
|
+
// symbol is `FooJson` (not `Foo` with a re-export alias).
|
|
233
|
+
function applyReplacementsOutsideStringsAndComments(text, replaceCodeSegment) {
|
|
234
|
+
const len = text.length;
|
|
235
|
+
let out = '';
|
|
236
|
+
let i = 0;
|
|
237
|
+
let codeStart = 0;
|
|
238
|
+
const flushCode = (end) => {
|
|
239
|
+
if (end > codeStart)
|
|
240
|
+
out += replaceCodeSegment(text.slice(codeStart, end));
|
|
241
|
+
codeStart = end;
|
|
242
|
+
};
|
|
243
|
+
const startsWith = (s) => text.startsWith(s, i);
|
|
244
|
+
while (i < len) {
|
|
245
|
+
// Line comment
|
|
246
|
+
if (startsWith('//')) {
|
|
247
|
+
flushCode(i);
|
|
248
|
+
const start = i;
|
|
249
|
+
i += 2;
|
|
250
|
+
while (i < len && text[i] !== '\n')
|
|
251
|
+
i++;
|
|
252
|
+
if (i < len && text[i] === '\n')
|
|
253
|
+
i++;
|
|
254
|
+
out += text.slice(start, i);
|
|
255
|
+
codeStart = i;
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
// Block comment
|
|
259
|
+
if (startsWith('/*')) {
|
|
260
|
+
flushCode(i);
|
|
261
|
+
const start = i;
|
|
262
|
+
i += 2;
|
|
263
|
+
while (i < len && !text.startsWith('*/', i))
|
|
264
|
+
i++;
|
|
265
|
+
if (i < len)
|
|
266
|
+
i += 2;
|
|
267
|
+
out += text.slice(start, i);
|
|
268
|
+
codeStart = i;
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
const ch = text[i];
|
|
272
|
+
// Single-quoted string
|
|
273
|
+
if (ch === "'") {
|
|
274
|
+
flushCode(i);
|
|
275
|
+
const start = i;
|
|
276
|
+
i++;
|
|
277
|
+
while (i < len) {
|
|
278
|
+
const c = text[i];
|
|
279
|
+
if (c === '\\') {
|
|
280
|
+
i += 2;
|
|
281
|
+
continue;
|
|
282
|
+
}
|
|
283
|
+
i++;
|
|
284
|
+
if (c === "'")
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
out += text.slice(start, i);
|
|
288
|
+
codeStart = i;
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
// Double-quoted string
|
|
292
|
+
if (ch === '"') {
|
|
293
|
+
flushCode(i);
|
|
294
|
+
const start = i;
|
|
295
|
+
i++;
|
|
296
|
+
while (i < len) {
|
|
297
|
+
const c = text[i];
|
|
298
|
+
if (c === '\\') {
|
|
299
|
+
i += 2;
|
|
300
|
+
continue;
|
|
301
|
+
}
|
|
302
|
+
i++;
|
|
303
|
+
if (c === '"')
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
out += text.slice(start, i);
|
|
307
|
+
codeStart = i;
|
|
308
|
+
continue;
|
|
309
|
+
}
|
|
310
|
+
// Template literal (backticks). We conservatively treat the whole template as a string.
|
|
311
|
+
// The generated .d.ts uses these primarily for template-literal *value* types like `TYPE-${string}`
|
|
312
|
+
// and we do not want to rewrite their raw text.
|
|
313
|
+
if (ch === '`') {
|
|
314
|
+
flushCode(i);
|
|
315
|
+
const start = i;
|
|
316
|
+
i++;
|
|
317
|
+
while (i < len) {
|
|
318
|
+
const c = text[i];
|
|
319
|
+
if (c === '\\') {
|
|
320
|
+
i += 2;
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
i++;
|
|
324
|
+
if (c === '`')
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
out += text.slice(start, i);
|
|
328
|
+
codeStart = i;
|
|
329
|
+
continue;
|
|
330
|
+
}
|
|
331
|
+
i++;
|
|
332
|
+
}
|
|
333
|
+
flushCode(len);
|
|
334
|
+
return out;
|
|
335
|
+
}
|
|
336
|
+
function renameExportedTopLevelTypesToJson(tsText) {
|
|
337
|
+
// Collect exported type/interface names.
|
|
338
|
+
const exportedDeclRegex = /^export\s+(?:type|interface)\s+([A-Za-z_][A-Za-z0-9_]*)\b/gm;
|
|
339
|
+
const exportedNames = new Set();
|
|
340
|
+
for (let m = exportedDeclRegex.exec(tsText); m; m = exportedDeclRegex.exec(tsText)) {
|
|
341
|
+
exportedNames.add(m[1]);
|
|
342
|
+
}
|
|
343
|
+
const renamePairs = Array.from(exportedNames)
|
|
344
|
+
.filter((name) => !name.endsWith('Json'))
|
|
345
|
+
.map((name) => ({ from: name, to: `${name}Json` }));
|
|
346
|
+
if (!renamePairs.length)
|
|
347
|
+
return tsText;
|
|
348
|
+
// Replace longer names first to reduce any accidental partial-match risk.
|
|
349
|
+
renamePairs.sort((a, b) => b.from.length - a.from.length);
|
|
350
|
+
const replaceCode = (code) => {
|
|
351
|
+
let out = code;
|
|
352
|
+
for (const { from, to } of renamePairs) {
|
|
353
|
+
const re = new RegExp(`\\b${escapeRegExpLiteral(from)}\\b`, 'g');
|
|
354
|
+
out = out.replace(re, to);
|
|
355
|
+
}
|
|
356
|
+
return out;
|
|
357
|
+
};
|
|
358
|
+
return applyReplacementsOutsideStringsAndComments(tsText, replaceCode);
|
|
359
|
+
}
|
|
230
360
|
// PURE: Derive the TS value type for JobStepSocket from Genesis.json.
|
|
231
361
|
// We prefer to match the schema shape:
|
|
232
362
|
// JobStepSocket.additionalProperties.oneOf = [#ResourcePotential, #Resource]
|
|
@@ -348,7 +478,7 @@ function postProcessEmittedTypes(ts, parsedSchema) {
|
|
|
348
478
|
const resourceRoleKeyType = 'ResourceRoleIdentity';
|
|
349
479
|
const jobStepKeyType = 'JobStepIdentity';
|
|
350
480
|
const strategyThreadKeyType = 'StrategyThreadIdentity';
|
|
351
|
-
ts = ts.replace(/export interface
|
|
481
|
+
ts = ts.replace(/export interface RoleDict\s*{[^}]*}/g, `export type RoleDict = Record<${resourceRoleKeyType}, ResourceRoleValue>;`);
|
|
352
482
|
// Normalize StrategyState & related socket maps to identity-keyed Records.
|
|
353
483
|
// These are emitted as `[k: string]` by json-schema-to-typescript but are identity-keyed in practice.
|
|
354
484
|
// Per schema: JobStepSocket: Record<ResourceRoleIdentity, Resource | ResourcePotential>
|
|
@@ -360,10 +490,13 @@ function postProcessEmittedTypes(ts, parsedSchema) {
|
|
|
360
490
|
ts = ts.replace(/export\s+type\s+JobStepSocket\s*=\s*Record<\s*ResourceRoleIdentity\s*,\s*[^>]+>\s*;/g, `export type JobStepSocket = Record<${resourceRoleKeyType}, ${jobStepSocketValueType}>;`);
|
|
361
491
|
ts = ts.replace(/export interface StrategyState\s*\{\s*\[k:\s*string\]:\s*JobStepSocket;\s*\}/g, `export type StrategyState = Record<${jobStepKeyType}, JobStepSocket>;`);
|
|
362
492
|
ts = ts.replace(/(strategyStateUpdate\??:\s*)\{\s*\[k:\s*string\]:\s*JobStepSocket;\s*\};/g, `$1Record<${jobStepKeyType}, JobStepSocket>;`);
|
|
363
|
-
// Ensure key constraints for
|
|
493
|
+
// Ensure key constraints for strategyThreadDict are preserved as template-literal identity keys.
|
|
364
494
|
// json-schema-to-typescript emits `[k: string]: StepArray;`, but we want keys to be `StrategyThreadIdentity`.
|
|
365
|
-
ts = ts.replace(/export interface
|
|
495
|
+
ts = ts.replace(/export interface StrategyThreadDict\s*\{\s*\[k:\s*string\]:\s*StepArray;\s*\}/g, `export type StrategyThreadDict = Record<${strategyThreadKeyType}, StepArray>;`);
|
|
366
496
|
ts = fixJsonDataSelfReference(ts);
|
|
497
|
+
// IMPORTANT: do this last so earlier post-processing regexes can target
|
|
498
|
+
// the generator's original names (without `Json` suffixes).
|
|
499
|
+
ts = renameExportedTopLevelTypesToJson(ts);
|
|
367
500
|
return ts;
|
|
368
501
|
}
|
|
369
502
|
// PURE: Add banner + formatting/guards to build the final .d.ts content.
|
package/package.json
CHANGED
package/src/Genesis.json
CHANGED
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"$ref": "#ResourceTypeIdentity"
|
|
129
129
|
},
|
|
130
130
|
"nucleusSchema": true,
|
|
131
|
-
"
|
|
131
|
+
"embeddingUriDict": {
|
|
132
132
|
"type": "object",
|
|
133
133
|
"propertyNames": {
|
|
134
134
|
"type": "string",
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
"$ref": "#Uri"
|
|
139
139
|
},
|
|
140
140
|
"minProperties": 1,
|
|
141
|
-
"$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this
|
|
141
|
+
"$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this dict are members of a set of predefined embedding models."
|
|
142
142
|
},
|
|
143
|
-
"
|
|
143
|
+
"generatorUriDict": {
|
|
144
144
|
"type": "object",
|
|
145
145
|
"propertyNames": {
|
|
146
146
|
"type": "string",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"$ref": "#Uri"
|
|
151
151
|
},
|
|
152
152
|
"minProperties": 1,
|
|
153
|
-
"$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this
|
|
153
|
+
"$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this dict are members of a set of predefined generators. GENERATOR-Json is an identifier for a generator that generates JSON data from the raw file. If the raw file is a JSON file, GENERATOR-Json is an implicit identity operation (i.e. an operation that does nothing) and must not be present in the dict. A ResourceType may also specify other generators, such as GENERATOR-LeanTerm, which generates an instance (or 'term' in Lean jargon) of a corresponding Lean type from the raw file. ResourceTypes that specify GENERATOR-LeanTerm must also specify a corresponding GENERATOR-LeanType. While the term-version runs when data instances enter the ecosystem, the type-version runs when the ResourceType itself enters the ecosystem."
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"allOf": [
|
|
@@ -181,7 +181,6 @@
|
|
|
181
181
|
"type": "object",
|
|
182
182
|
"allOf": [
|
|
183
183
|
{
|
|
184
|
-
"$comment": "A ResourceRole does not have a self-contained identity, as it is always defined in the context of a RoleMap. ResourceRoleValue uses the Value suffix to mean 'the value stored in this map' (RoleMap.additionalProperties).",
|
|
185
184
|
"required": [
|
|
186
185
|
"resourceTypeHandle"
|
|
187
186
|
],
|
|
@@ -198,12 +197,39 @@
|
|
|
198
197
|
},
|
|
199
198
|
"unevaluatedProperties": false
|
|
200
199
|
},
|
|
201
|
-
"
|
|
202
|
-
"identity": "TYPE-
|
|
203
|
-
"name": "
|
|
200
|
+
"ResourceRole": {
|
|
201
|
+
"identity": "TYPE-ResourceRole",
|
|
202
|
+
"name": "ResourceRole",
|
|
204
203
|
"description": "dummy-description",
|
|
205
204
|
"nucleusSchema": {
|
|
206
|
-
"$anchor": "
|
|
205
|
+
"$anchor": "ResourceRole",
|
|
206
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
207
|
+
"type": "object",
|
|
208
|
+
"allOf": [
|
|
209
|
+
{
|
|
210
|
+
"type": "object",
|
|
211
|
+
"required": [
|
|
212
|
+
"identity"
|
|
213
|
+
],
|
|
214
|
+
"properties": {
|
|
215
|
+
"identity": {
|
|
216
|
+
"$ref": "#ResourceRoleIdentity"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"$ref": "#ResourceRoleValue"
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"unevaluatedProperties": false
|
|
226
|
+
},
|
|
227
|
+
"RoleDict": {
|
|
228
|
+
"identity": "TYPE-RoleDict",
|
|
229
|
+
"name": "RoleDict",
|
|
230
|
+
"description": "dummy-description",
|
|
231
|
+
"nucleusSchema": {
|
|
232
|
+
"$anchor": "RoleDict",
|
|
207
233
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
208
234
|
"type": "object",
|
|
209
235
|
"propertyNames": {
|
|
@@ -246,17 +272,17 @@
|
|
|
246
272
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
247
273
|
"type": "object",
|
|
248
274
|
"required": [
|
|
249
|
-
"
|
|
250
|
-
"
|
|
275
|
+
"inputDict",
|
|
276
|
+
"outputDict"
|
|
251
277
|
],
|
|
252
278
|
"properties": {
|
|
253
|
-
"
|
|
254
|
-
"$ref": "#
|
|
279
|
+
"inputDict": {
|
|
280
|
+
"$ref": "#RoleDict"
|
|
255
281
|
},
|
|
256
|
-
"
|
|
282
|
+
"outputDict": {
|
|
257
283
|
"allOf": [
|
|
258
284
|
{
|
|
259
|
-
"$ref": "#
|
|
285
|
+
"$ref": "#RoleDict"
|
|
260
286
|
},
|
|
261
287
|
{
|
|
262
288
|
"type": "object",
|
|
@@ -1317,12 +1343,12 @@
|
|
|
1317
1343
|
"pattern": "^STRATEGY_THREAD-.+$"
|
|
1318
1344
|
}
|
|
1319
1345
|
},
|
|
1320
|
-
"
|
|
1321
|
-
"identity": "TYPE-
|
|
1322
|
-
"name": "
|
|
1346
|
+
"StrategyThreadDict": {
|
|
1347
|
+
"identity": "TYPE-StrategyThreadDict",
|
|
1348
|
+
"name": "StrategyThreadDict",
|
|
1323
1349
|
"description": "dummy-description",
|
|
1324
1350
|
"nucleusSchema": {
|
|
1325
|
-
"$anchor": "
|
|
1351
|
+
"$anchor": "StrategyThreadDict",
|
|
1326
1352
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1327
1353
|
"type": "object",
|
|
1328
1354
|
"propertyNames": {
|
|
@@ -1334,20 +1360,20 @@
|
|
|
1334
1360
|
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
|
|
1335
1361
|
}
|
|
1336
1362
|
},
|
|
1337
|
-
"
|
|
1338
|
-
"identity": "TYPE-
|
|
1339
|
-
"name": "
|
|
1363
|
+
"StrategyThreadDictFacet": {
|
|
1364
|
+
"identity": "TYPE-StrategyThreadDictFacet",
|
|
1365
|
+
"name": "StrategyThreadDictFacet",
|
|
1340
1366
|
"description": "dummy-description",
|
|
1341
1367
|
"nucleusSchema": {
|
|
1342
|
-
"$anchor": "
|
|
1368
|
+
"$anchor": "StrategyThreadDictFacet",
|
|
1343
1369
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1344
1370
|
"type": "object",
|
|
1345
1371
|
"required": [
|
|
1346
|
-
"
|
|
1372
|
+
"strategyThreadDict"
|
|
1347
1373
|
],
|
|
1348
1374
|
"properties": {
|
|
1349
|
-
"
|
|
1350
|
-
"$ref": "#
|
|
1375
|
+
"strategyThreadDict": {
|
|
1376
|
+
"$ref": "#StrategyThreadDict"
|
|
1351
1377
|
}
|
|
1352
1378
|
}
|
|
1353
1379
|
}
|
|
@@ -1374,8 +1400,8 @@
|
|
|
1374
1400
|
},
|
|
1375
1401
|
"allOf": [
|
|
1376
1402
|
{
|
|
1377
|
-
"$comment": "The Engine runs jobs specified by steps in
|
|
1378
|
-
"$ref": "#
|
|
1403
|
+
"$comment": "The Engine runs jobs specified by steps in strategyThreadDict. The Engine also injects repeted steps when encountering loops.",
|
|
1404
|
+
"$ref": "#StrategyThreadDictFacet"
|
|
1379
1405
|
},
|
|
1380
1406
|
{
|
|
1381
1407
|
"$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
|
|
@@ -1,121 +1,122 @@
|
|
|
1
|
-
const CONSTANTS = {
|
|
2
|
-
Names: {
|
|
3
|
-
Boolean: 'Boolean',
|
|
4
|
-
BooleanIdentity: 'BooleanIdentity',
|
|
5
|
-
BranchStep: 'BranchStep',
|
|
6
|
-
BranchStepIdentity: 'BranchStepIdentity',
|
|
7
|
-
Conditional: 'Conditional',
|
|
8
|
-
CreationContext: 'CreationContext',
|
|
9
|
-
CreationContextFacet: 'CreationContextFacet',
|
|
10
|
-
Description: 'Description',
|
|
11
|
-
DescriptionFacet: 'DescriptionFacet',
|
|
12
|
-
DocumentationFacet: 'DocumentationFacet',
|
|
13
|
-
Error: 'Error',
|
|
14
|
-
ForStep: 'ForStep',
|
|
15
|
-
ForStepIdentity: 'ForStepIdentity',
|
|
16
|
-
Goal: 'Goal',
|
|
17
|
-
GoalIdentity: 'GoalIdentity',
|
|
18
|
-
GraphEndRunEvent: 'GraphEndRunEvent',
|
|
19
|
-
GraphStartRunEvent: 'GraphStartRunEvent',
|
|
20
|
-
InterruptRunEvent: 'InterruptRunEvent',
|
|
21
|
-
Job: 'Job',
|
|
22
|
-
JobIdentity: 'JobIdentity',
|
|
23
|
-
JobStep: 'JobStep',
|
|
24
|
-
JobStepIdentity: 'JobStepIdentity',
|
|
25
|
-
JobStepSocket: 'JobStepSocket',
|
|
26
|
-
JsonData: 'JsonData',
|
|
27
|
-
Name: 'Name',
|
|
28
|
-
NameFacet: 'NameFacet',
|
|
29
|
-
Natural: 'Natural',
|
|
30
|
-
NaturalIdentity: 'NaturalIdentity',
|
|
31
|
-
Nucleus: 'Nucleus',
|
|
32
|
-
NucleusFacet: 'NucleusFacet',
|
|
33
|
-
Path: 'Path',
|
|
34
|
-
PathFacet: 'PathFacet',
|
|
35
|
-
RawStrategy: 'RawStrategy',
|
|
36
|
-
Resource: 'Resource',
|
|
37
|
-
ResourceIdentity: 'ResourceIdentity',
|
|
38
|
-
ResourceInputPotential: 'ResourceInputPotential',
|
|
39
|
-
ResourceMissing: 'ResourceMissing',
|
|
40
|
-
ResourceOutputPotential: 'ResourceOutputPotential',
|
|
41
|
-
ResourcePotential: 'ResourcePotential',
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
1
|
+
const CONSTANTS = {
|
|
2
|
+
Names: {
|
|
3
|
+
Boolean: 'Boolean',
|
|
4
|
+
BooleanIdentity: 'BooleanIdentity',
|
|
5
|
+
BranchStep: 'BranchStep',
|
|
6
|
+
BranchStepIdentity: 'BranchStepIdentity',
|
|
7
|
+
Conditional: 'Conditional',
|
|
8
|
+
CreationContext: 'CreationContext',
|
|
9
|
+
CreationContextFacet: 'CreationContextFacet',
|
|
10
|
+
Description: 'Description',
|
|
11
|
+
DescriptionFacet: 'DescriptionFacet',
|
|
12
|
+
DocumentationFacet: 'DocumentationFacet',
|
|
13
|
+
Error: 'Error',
|
|
14
|
+
ForStep: 'ForStep',
|
|
15
|
+
ForStepIdentity: 'ForStepIdentity',
|
|
16
|
+
Goal: 'Goal',
|
|
17
|
+
GoalIdentity: 'GoalIdentity',
|
|
18
|
+
GraphEndRunEvent: 'GraphEndRunEvent',
|
|
19
|
+
GraphStartRunEvent: 'GraphStartRunEvent',
|
|
20
|
+
InterruptRunEvent: 'InterruptRunEvent',
|
|
21
|
+
Job: 'Job',
|
|
22
|
+
JobIdentity: 'JobIdentity',
|
|
23
|
+
JobStep: 'JobStep',
|
|
24
|
+
JobStepIdentity: 'JobStepIdentity',
|
|
25
|
+
JobStepSocket: 'JobStepSocket',
|
|
26
|
+
JsonData: 'JsonData',
|
|
27
|
+
Name: 'Name',
|
|
28
|
+
NameFacet: 'NameFacet',
|
|
29
|
+
Natural: 'Natural',
|
|
30
|
+
NaturalIdentity: 'NaturalIdentity',
|
|
31
|
+
Nucleus: 'Nucleus',
|
|
32
|
+
NucleusFacet: 'NucleusFacet',
|
|
33
|
+
Path: 'Path',
|
|
34
|
+
PathFacet: 'PathFacet',
|
|
35
|
+
RawStrategy: 'RawStrategy',
|
|
36
|
+
Resource: 'Resource',
|
|
37
|
+
ResourceIdentity: 'ResourceIdentity',
|
|
38
|
+
ResourceInputPotential: 'ResourceInputPotential',
|
|
39
|
+
ResourceMissing: 'ResourceMissing',
|
|
40
|
+
ResourceOutputPotential: 'ResourceOutputPotential',
|
|
41
|
+
ResourcePotential: 'ResourcePotential',
|
|
42
|
+
ResourceRole: 'ResourceRole',
|
|
43
|
+
ResourceRoleIdentity: 'ResourceRoleIdentity',
|
|
44
|
+
ResourceRoleValue: 'ResourceRoleValue',
|
|
45
|
+
ResourceShellBase: 'ResourceShellBase',
|
|
46
|
+
ResourceShellKind: 'ResourceShellKind',
|
|
47
|
+
ResourceShellKindFacet: 'ResourceShellKindFacet',
|
|
48
|
+
ResourceType: 'ResourceType',
|
|
49
|
+
ResourceTypeIdentity: 'ResourceTypeIdentity',
|
|
50
|
+
RoleBindingArray: 'RoleBindingArray',
|
|
51
|
+
RoleBindings: 'RoleBindings',
|
|
52
|
+
RoleBindingsFacet: 'RoleBindingsFacet',
|
|
53
|
+
RoleDict: 'RoleDict',
|
|
54
|
+
Roles: 'Roles',
|
|
55
|
+
RolesFacet: 'RolesFacet',
|
|
56
|
+
RunEvent: 'RunEvent',
|
|
57
|
+
RunEventBase: 'RunEventBase',
|
|
58
|
+
RunEventCounters: 'RunEventCounters',
|
|
59
|
+
RunEventKind: 'RunEventKind',
|
|
60
|
+
RunEventStepMetadata: 'RunEventStepMetadata',
|
|
61
|
+
RunEventUpdates: 'RunEventUpdates',
|
|
62
|
+
RunnableStrategy: 'RunnableStrategy',
|
|
63
|
+
RunnableStrategyContext: 'RunnableStrategyContext',
|
|
64
|
+
RunnableStrategyIdentity: 'RunnableStrategyIdentity',
|
|
65
|
+
RunnableStrategyStatus: 'RunnableStrategyStatus',
|
|
66
|
+
RunnableStrategyUpdate: 'RunnableStrategyUpdate',
|
|
67
|
+
ShellInputPotential: 'ShellInputPotential',
|
|
68
|
+
ShellMaterialized: 'ShellMaterialized',
|
|
69
|
+
ShellMaterializedBase: 'ShellMaterializedBase',
|
|
70
|
+
ShellMissing: 'ShellMissing',
|
|
71
|
+
ShellOutputPotential: 'ShellOutputPotential',
|
|
72
|
+
Step: 'Step',
|
|
73
|
+
StepArray: 'StepArray',
|
|
74
|
+
StepIdentity: 'StepIdentity',
|
|
75
|
+
StepKind: 'StepKind',
|
|
76
|
+
StepKindFacet: 'StepKindFacet',
|
|
77
|
+
StepsFacet: 'StepsFacet',
|
|
78
|
+
StrategyRun: 'StrategyRun',
|
|
79
|
+
StrategyRunIdentity: 'StrategyRunIdentity',
|
|
80
|
+
StrategyState: 'StrategyState',
|
|
81
|
+
StrategyStateDelta: 'StrategyStateDelta',
|
|
82
|
+
StrategyStateFacet: 'StrategyStateFacet',
|
|
83
|
+
StrategyThreadDict: 'StrategyThreadDict',
|
|
84
|
+
StrategyThreadDictFacet: 'StrategyThreadDictFacet',
|
|
85
|
+
StrategyThreadIdentity: 'StrategyThreadIdentity',
|
|
86
|
+
TickRunEvent: 'TickRunEvent',
|
|
87
|
+
Timestamp: 'Timestamp',
|
|
88
|
+
TimestampFacet: 'TimestampFacet',
|
|
89
|
+
Uri: 'Uri',
|
|
90
|
+
WhileStep: 'WhileStep',
|
|
91
|
+
WhileStepIdentity: 'WhileStepIdentity',
|
|
92
|
+
},
|
|
93
|
+
Enums: {
|
|
94
|
+
ResourceShellKind: {
|
|
95
|
+
missing: 'missing',
|
|
96
|
+
inputPotential: 'inputPotential',
|
|
97
|
+
outputPotential: 'outputPotential',
|
|
98
|
+
materialized: 'materialized',
|
|
99
|
+
},
|
|
100
|
+
RunEventKind: {
|
|
101
|
+
graph_start: 'graph_start',
|
|
102
|
+
tick: 'tick',
|
|
103
|
+
interrupt: 'interrupt',
|
|
104
|
+
graph_end: 'graph_end',
|
|
105
|
+
},
|
|
106
|
+
RunnableStrategyStatus: {
|
|
107
|
+
pending: 'pending',
|
|
108
|
+
running: 'running',
|
|
109
|
+
completed: 'completed',
|
|
110
|
+
failed: 'failed',
|
|
111
|
+
cancelled: 'cancelled',
|
|
112
|
+
},
|
|
113
|
+
StepKind: {
|
|
114
|
+
job: 'job',
|
|
115
|
+
branch: 'branch',
|
|
116
|
+
while: 'while',
|
|
117
|
+
for: 'for',
|
|
118
|
+
},
|
|
119
|
+
}
|
|
120
|
+
} as const;
|
|
121
|
+
|
|
122
|
+
export default CONSTANTS;
|