@elaraai/e3-types 1.0.108 → 1.0.110
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/src/api.d.ts +382 -17
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +201 -17
- package/dist/src/api.js.map +1 -1
- package/dist/src/environment.d.ts +95 -8
- package/dist/src/environment.d.ts.map +1 -1
- package/dist/src/environment.js +102 -9
- package/dist/src/environment.js.map +1 -1
- package/dist/src/environment.spec.js +31 -19
- package/dist/src/environment.spec.js.map +1 -1
- package/dist/src/function-call.d.ts +91 -13
- package/dist/src/function-call.d.ts.map +1 -1
- package/dist/src/function-call.js +48 -4
- package/dist/src/function-call.js.map +1 -1
- package/dist/src/function-draft.d.ts +80 -0
- package/dist/src/function-draft.d.ts.map +1 -0
- package/dist/src/function-draft.js +71 -0
- package/dist/src/function-draft.js.map +1 -0
- package/dist/src/function-draft.spec.d.ts +6 -0
- package/dist/src/function-draft.spec.d.ts.map +1 -0
- package/dist/src/function-draft.spec.js +58 -0
- package/dist/src/function-draft.spec.js.map +1 -0
- package/dist/src/function.d.ts +45 -8
- package/dist/src/function.d.ts.map +1 -1
- package/dist/src/function.js +40 -7
- package/dist/src/function.js.map +1 -1
- package/dist/src/function.spec.d.ts +6 -0
- package/dist/src/function.spec.d.ts.map +1 -0
- package/dist/src/function.spec.js +61 -0
- package/dist/src/function.spec.js.map +1 -0
- package/dist/src/index.d.ts +7 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/record.d.ts +81 -29
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/record.js +92 -22
- package/dist/src/record.js.map +1 -1
- package/dist/src/release.d.ts +1 -1
- package/dist/src/release.js +1 -1
- package/dist/src/structure.d.ts +18 -0
- package/dist/src/structure.d.ts.map +1 -1
- package/dist/src/structure.js +20 -0
- package/dist/src/structure.js.map +1 -1
- package/dist/src/structure.spec.js +8 -1
- package/dist/src/structure.spec.js.map +1 -1
- package/dist/src/task.d.ts +15 -2
- package/dist/src/task.d.ts.map +1 -1
- package/dist/src/task.js +14 -2
- package/dist/src/task.js.map +1 -1
- package/dist/src/task.spec.js +19 -2
- package/dist/src/task.spec.js.map +1 -1
- package/package.json +2 -2
- package/src/api.ts +215 -17
- package/src/environment.spec.ts +42 -21
- package/src/environment.ts +109 -9
- package/src/function-call.ts +52 -4
- package/src/function-draft.spec.ts +69 -0
- package/src/function-draft.ts +96 -0
- package/src/function.spec.ts +66 -0
- package/src/function.ts +44 -7
- package/src/index.ts +38 -2
- package/src/record.ts +97 -24
- package/src/release.ts +1 -1
- package/src/structure.spec.ts +9 -1
- package/src/structure.ts +21 -0
- package/src/task.spec.ts +20 -2
- package/src/task.ts +14 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.spec.js","sourceRoot":"","sources":["../../src/structure.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAiC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"structure.spec.js","sourceRoot":"","sources":["../../src/structure.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAA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askPartitionType = typeof TaskPartitionType;
|
|
48
48
|
export type TaskPartition = ValueTypeOf<typeof TaskPartitionType>;
|
|
49
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* A dataset a task reads, and whether the work may be split over it; or an
|
|
51
|
+
* index of a record, which is read through the record's dataset.
|
|
52
|
+
*
|
|
53
|
+
* @property path - The dataset's path: for an index, its record's
|
|
54
|
+
* @property index - The index of the record at `path` the input reads, by its
|
|
55
|
+
* name on the record: the body is given the index's entries,
|
|
56
|
+
* `Dict<{ ik, k }, P>`, at the state the record holds. `none` for the dataset
|
|
57
|
+
* itself
|
|
58
|
+
* @property partition - How the work may be split over the input; `none` for
|
|
59
|
+
* one every piece reads whole, as an index always is
|
|
60
|
+
*/
|
|
50
61
|
export declare const TaskInputType: StructType<{
|
|
51
62
|
readonly path: ArrayType<VariantType<{
|
|
52
63
|
readonly field: StringType;
|
|
53
64
|
}>>;
|
|
65
|
+
readonly index: OptionType<StringType>;
|
|
54
66
|
readonly partition: OptionType<StructType<{
|
|
55
67
|
readonly by: ArrayType<StringType>;
|
|
56
68
|
}>>;
|
|
@@ -163,7 +175,7 @@ export type TaskRole = ValueTypeOf<typeof TaskRoleType>;
|
|
|
163
175
|
* kind: TASK_OBJECT_KIND,
|
|
164
176
|
* body: variant('east', { program: '5e7a3b...' }),
|
|
165
177
|
* runner: variant('east_node', { platforms: ['@elaraai/east-node-std'], decode: variant('lazy', null) }),
|
|
166
|
-
* inputs: [{ path: [variant('field', 'inputs'), variant('field', 'sales')], partition: none }],
|
|
178
|
+
* inputs: [{ path: [variant('field', 'inputs'), variant('field', 'sales')], index: none, partition: none }],
|
|
167
179
|
* output: { path: [variant('field', 'tasks'), variant('field', 'totals'), variant('field', 'output')], kind: variant('value', null) },
|
|
168
180
|
* role: variant('data', null),
|
|
169
181
|
* environment: none,
|
|
@@ -215,6 +227,7 @@ export declare const TaskObjectType: StructType<{
|
|
|
215
227
|
readonly path: ArrayType<VariantType<{
|
|
216
228
|
readonly field: StringType;
|
|
217
229
|
}>>;
|
|
230
|
+
readonly index: OptionType<StringType>;
|
|
218
231
|
readonly partition: OptionType<StructType<{
|
|
219
232
|
readonly by: ArrayType<StringType>;
|
|
220
233
|
}>>;
|
package/dist/src/task.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/task.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAInI;qBACqB;AACrB,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;;;;EAGvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;EAA4C,CAAC;AAC3E,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AACzD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/task.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAInI;qBACqB;AACrB,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;;;;EAGvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;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O,MAAM,cAAc;IACzB,uCAAuC;;IAEvC,0BAA0B;;;;;;;;;IAE1B;gDAC4C;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE5C,kEAAkE;;;;;;;;;;IAElE,iDAAiD;;;;;;;;;;;;;;;;;;IAEjD,8BAA8B;;;;;;;;;;;;;;IAE9B;uCACmC;;EAEnC,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAI5D;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAc7D"}
|
package/dist/src/task.js
CHANGED
|
@@ -38,9 +38,21 @@ export const TaskBodyType = VariantType({
|
|
|
38
38
|
* first-field path written `a.b`. Empty when any key may start a piece.
|
|
39
39
|
*/
|
|
40
40
|
export const TaskPartitionType = StructType({ by: ArrayType(StringType) });
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* A dataset a task reads, and whether the work may be split over it; or an
|
|
43
|
+
* index of a record, which is read through the record's dataset.
|
|
44
|
+
*
|
|
45
|
+
* @property path - The dataset's path: for an index, its record's
|
|
46
|
+
* @property index - The index of the record at `path` the input reads, by its
|
|
47
|
+
* name on the record: the body is given the index's entries,
|
|
48
|
+
* `Dict<{ ik, k }, P>`, at the state the record holds. `none` for the dataset
|
|
49
|
+
* itself
|
|
50
|
+
* @property partition - How the work may be split over the input; `none` for
|
|
51
|
+
* one every piece reads whole, as an index always is
|
|
52
|
+
*/
|
|
42
53
|
export const TaskInputType = StructType({
|
|
43
54
|
path: TreePathType,
|
|
55
|
+
index: OptionType(StringType),
|
|
44
56
|
partition: OptionType(TaskPartitionType),
|
|
45
57
|
});
|
|
46
58
|
/**
|
|
@@ -110,7 +122,7 @@ export const TaskRoleType = VariantType({
|
|
|
110
122
|
* kind: TASK_OBJECT_KIND,
|
|
111
123
|
* body: variant('east', { program: '5e7a3b...' }),
|
|
112
124
|
* runner: variant('east_node', { platforms: ['@elaraai/east-node-std'], decode: variant('lazy', null) }),
|
|
113
|
-
* inputs: [{ path: [variant('field', 'inputs'), variant('field', 'sales')], partition: none }],
|
|
125
|
+
* inputs: [{ path: [variant('field', 'inputs'), variant('field', 'sales')], index: none, partition: none }],
|
|
114
126
|
* output: { path: [variant('field', 'tasks'), variant('field', 'totals'), variant('field', 'output')], kind: variant('value', null) },
|
|
115
127
|
* role: variant('data', null),
|
|
116
128
|
* environment: none,
|
package/dist/src/task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../src/task.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AACnI,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;qBACqB;AACrB,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACtC,IAAI,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACzC,OAAO,EAAE,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;CAC/C,CAAC,CAAC;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AAI3E
|
|
1
|
+
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../src/task.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAA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C,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CACxD,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CAAC,iDAAiD,IAAI,CAAC,IAAI,WAAW,gBAAgB,GAAG,CAAC,CAAC;IAC5G,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/src/task.spec.js
CHANGED
|
@@ -14,12 +14,13 @@ import { TreePathType } from './structure.js';
|
|
|
14
14
|
describe('TaskObjectType', () => {
|
|
15
15
|
const sales = [variant('field', 'inputs'), variant('field', 'sales')];
|
|
16
16
|
const rates = [variant('field', 'inputs'), variant('field', 'rates')];
|
|
17
|
+
const jobs = [variant('field', 'records'), variant('field', 'jobs')];
|
|
17
18
|
const totals = [variant('field', 'tasks'), variant('field', 'totals'), variant('field', 'output')];
|
|
18
19
|
const base = {
|
|
19
20
|
kind: TASK_OBJECT_KIND,
|
|
20
21
|
body: variant('east', { program: 'a'.repeat(64) }),
|
|
21
22
|
runner: variant('east_node', { platforms: ['@elaraai/east-node-std'], decode: variant('lazy', null) }),
|
|
22
|
-
inputs: [{ path: sales, partition: none }],
|
|
23
|
+
inputs: [{ path: sales, index: none, partition: none }],
|
|
23
24
|
output: { path: totals, kind: variant('value', null) },
|
|
24
25
|
role: variant('data', null),
|
|
25
26
|
environment: none,
|
|
@@ -35,13 +36,15 @@ describe('TaskObjectType', () => {
|
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
...base,
|
|
38
|
-
inputs: [{ path: sales, partition: some({ by: ['account', 'at.day'] }) }, { path: rates, partition: none }],
|
|
39
|
+
inputs: [{ path: sales, index: none, partition: some({ by: ['account', 'at.day'] }) }, { path: rates, index: none, partition: none }],
|
|
39
40
|
output: { path: totals, kind: variant('dict', { merge: some('d'.repeat(64)) }) },
|
|
40
41
|
},
|
|
41
42
|
{ ...base, output: { path: totals, kind: variant('fold', { zero: 'e'.repeat(64), combine: 'f'.repeat(64) }) } },
|
|
42
43
|
{ ...base, output: { path: totals, kind: variant('set', null) } },
|
|
43
44
|
{ ...base, runner: variant('east_py', { platforms: ['east-py-std'], decode: variant('whole', null) }) },
|
|
44
45
|
{ ...base, role: variant('ui', { paths: [sales], functions: ['forecast'], records: ['plans'], pages: [rates] }) },
|
|
46
|
+
// An index of a record, read beside the record itself
|
|
47
|
+
{ ...base, inputs: [{ path: jobs, index: some('jobs_by_press'), partition: none }, { path: jobs, index: none, partition: none }] },
|
|
45
48
|
];
|
|
46
49
|
const encode = encodeBeast2For(TaskObjectType);
|
|
47
50
|
for (const original of tasks)
|
|
@@ -88,6 +91,20 @@ describe('TaskObjectType', () => {
|
|
|
88
91
|
}))({ ...base, runner: variant('east_node', { platforms: ['@elaraai/east-node-std'] }) });
|
|
89
92
|
assert.throws(() => decodeTaskObject(older), /exported by an older e3 SDK — re-export it with the current one/);
|
|
90
93
|
});
|
|
94
|
+
it('refuses a task object whose inputs predate the index they may name, saying to re-export the package', () => {
|
|
95
|
+
// An input as a package exported before an input could be an index of a
|
|
96
|
+
// record: its path and its partition alone.
|
|
97
|
+
const older = encodeBeast2For(StructType({
|
|
98
|
+
kind: StringType,
|
|
99
|
+
body: TaskBodyType,
|
|
100
|
+
runner: RunnerType,
|
|
101
|
+
inputs: ArrayType(StructType({ path: TreePathType, partition: TaskInputType.fields.partition })),
|
|
102
|
+
output: TaskOutputType,
|
|
103
|
+
role: TaskRoleType,
|
|
104
|
+
environment: OptionType(StringType),
|
|
105
|
+
}))({ ...base, inputs: [{ path: sales, partition: none }] });
|
|
106
|
+
assert.throws(() => decodeTaskObject(older), /exported by an older e3 SDK — re-export it with the current one/);
|
|
107
|
+
});
|
|
91
108
|
it('refuses an object of the task shape that carries another kind tag', () => {
|
|
92
109
|
assert.throws(() => decodeTaskObject(encodeBeast2For(TaskObjectType)({ ...base, kind: '$plan' })), /its kind is '\$plan', not '\$task'/);
|
|
93
110
|
});
|
|
@@ -1 +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|
+
"version": "1.0.110",
|
|
4
4
|
"description": "Shared type definitions for e3 (East Execution Engine)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"directory": "libs/e3/packages/e3-types"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@elaraai/east": "1.0.
|
|
21
|
+
"@elaraai/east": "1.0.110"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.0.0",
|
package/src/api.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { StructureType, TreePathType } from './structure.js';
|
|
|
39
39
|
import { StopReasonType } from './execution.js';
|
|
40
40
|
import { IntakeFileType } from './intake.js';
|
|
41
41
|
import { RunnerType } from './runner.js';
|
|
42
|
+
import { FunctionInputType } from './function.js';
|
|
42
43
|
import { TaskBodyType, TaskInputType, TaskOutputType, TaskPartitionType, TaskRoleType } from './task.js';
|
|
43
44
|
import { DataflowForceType, RequeueReasonType, StageUnitType } from './dataflow.js';
|
|
44
45
|
|
|
@@ -1246,6 +1247,99 @@ export const DiagnosticType = StructType({
|
|
|
1246
1247
|
column: OptionType(IntegerType),
|
|
1247
1248
|
});
|
|
1248
1249
|
|
|
1250
|
+
/**
|
|
1251
|
+
* A draft of a record that no longer fits it: the record changed under the
|
|
1252
|
+
* edit, so the mutation's write disagrees with the state it was laid over. It
|
|
1253
|
+
* is what a Save of the same edit ends `conflict` with
|
|
1254
|
+
* ({@link MutationResultType}), named for a function's call by the draft it
|
|
1255
|
+
* was.
|
|
1256
|
+
*
|
|
1257
|
+
* @property record - The record the draft was of
|
|
1258
|
+
* @property mutation - The draft's mutation
|
|
1259
|
+
* @property place - The draft's place among the call's, from 1: which of
|
|
1260
|
+
* several drafts of one mutation the record refused
|
|
1261
|
+
* @property of - How many drafts the call passed
|
|
1262
|
+
* @property message - The refusal's words, as a Save's conflict carries them
|
|
1263
|
+
* in its `detail`
|
|
1264
|
+
*/
|
|
1265
|
+
export const FunctionDraftConflictType = StructType({
|
|
1266
|
+
record: StringType,
|
|
1267
|
+
mutation: StringType,
|
|
1268
|
+
place: IntegerType,
|
|
1269
|
+
of: IntegerType,
|
|
1270
|
+
message: StringType,
|
|
1271
|
+
});
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* A record a call read with drafts laid over it, as the call's result names
|
|
1275
|
+
* it.
|
|
1276
|
+
*
|
|
1277
|
+
* @property record - The record's name
|
|
1278
|
+
* @property commit - The commit the record stood at as the call started, which
|
|
1279
|
+
* its drafts were laid over: a caller that holds another knows its edits
|
|
1280
|
+
* were laid over newer saves
|
|
1281
|
+
*/
|
|
1282
|
+
export const FunctionDraftedType = StructType({
|
|
1283
|
+
record: StringType,
|
|
1284
|
+
commit: StringType,
|
|
1285
|
+
});
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* The draft whose mutation ended a call `failed` or `timed_out`, before its
|
|
1289
|
+
* function ran. A call whose timeout ended between two drafts' runs names the
|
|
1290
|
+
* draft that did not start.
|
|
1291
|
+
*
|
|
1292
|
+
* @property record - The record the draft was of
|
|
1293
|
+
* @property mutation - The draft's mutation
|
|
1294
|
+
* @property place - The draft's place among the call's, from 1
|
|
1295
|
+
* @property of - How many drafts the call passed
|
|
1296
|
+
* @property how - How its mutation ended: as a Save of it would have
|
|
1297
|
+
*/
|
|
1298
|
+
export const FunctionDraftFailureType = StructType({
|
|
1299
|
+
record: StringType,
|
|
1300
|
+
mutation: StringType,
|
|
1301
|
+
place: IntegerType,
|
|
1302
|
+
of: IntegerType,
|
|
1303
|
+
how: VariantType({ failed: NullType, timed_out: NullType }),
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* How a call's drafts ended it before its function ran, as its result names
|
|
1308
|
+
* it (#1619, #1680's review).
|
|
1309
|
+
*
|
|
1310
|
+
* - `draft`: a draft's mutation ended it ({@link FunctionDraftFailureType})
|
|
1311
|
+
* - `laid`: its timeout ended once its drafts were all laid, before its
|
|
1312
|
+
* function ran: `of` drafts, every one laid
|
|
1313
|
+
*
|
|
1314
|
+
* The first line of its stderr says the same, for people to read (`draft
|
|
1315
|
+
* jobs.patch (2 of 3) failed`, `drafts laid (3 of 3), and the call's timeout
|
|
1316
|
+
* ended before its function ran`). A caller learns what ended a call from this
|
|
1317
|
+
* alone, never from that line: a function's own stderr may begin the same way.
|
|
1318
|
+
*/
|
|
1319
|
+
export const FunctionDraftEndType = VariantType({
|
|
1320
|
+
draft: FunctionDraftFailureType,
|
|
1321
|
+
laid: StructType({ of: IntegerType }),
|
|
1322
|
+
});
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* A dataset a call read, and the hash it was pinned at: one of a function's
|
|
1326
|
+
* inputs, or a dataset argument.
|
|
1327
|
+
*
|
|
1328
|
+
* @property path - The dataset's path: for an index of a record, the record's
|
|
1329
|
+
* @property index - The index of the record at `path` that was read, by its
|
|
1330
|
+
* name on the record; `none` for the dataset itself, and for a dataset
|
|
1331
|
+
* argument
|
|
1332
|
+
* @property hash - The hash the dataset at `path` was pinned at. For a record,
|
|
1333
|
+
* the hash of its state, which names its rows and each of its indexes: so an
|
|
1334
|
+
* index's entry names the state its entries were read at, and the entries of
|
|
1335
|
+
* one record a call read name one hash
|
|
1336
|
+
*/
|
|
1337
|
+
export const InputReadType = StructType({
|
|
1338
|
+
path: TreePathType,
|
|
1339
|
+
index: OptionType(StringType),
|
|
1340
|
+
hash: StringType,
|
|
1341
|
+
});
|
|
1342
|
+
|
|
1249
1343
|
/**
|
|
1250
1344
|
* The terminal result of a function/one-shot call.
|
|
1251
1345
|
*
|
|
@@ -1254,12 +1348,39 @@ export const DiagnosticType = StructType({
|
|
|
1254
1348
|
* - `invalid`: signature/IR error; nothing ran
|
|
1255
1349
|
* - `too_large`: result over `maxResultBytes`; deploy a task and read it with `datasetGet`
|
|
1256
1350
|
* - `timed_out`: exceeded `timeoutMs` / the server's sync deadline guard
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1259
|
-
*
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1262
|
-
*
|
|
1351
|
+
* - `conflict`: a draft the call passed no longer fits its record, and the
|
|
1352
|
+
* function's body did not run ({@link FunctionDraftConflictType})
|
|
1353
|
+
*
|
|
1354
|
+
* A call a draft's mutation ended `failed` or `timed_out`, before the
|
|
1355
|
+
* function's body ran, names the draft in `draftEnd`
|
|
1356
|
+
* ({@link FunctionDraftEndType}), and says so in the first line of its
|
|
1357
|
+
* `stderr`: `draft jobs.patch (2 of 3) failed`, or `… timed out`, the
|
|
1358
|
+
* mutation's own stderr following it. A call whose timeout ended once its
|
|
1359
|
+
* drafts were all laid, before its body ran, names that in `draftEnd` instead,
|
|
1360
|
+
* and says so in its first line (`drafts laid (3 of 3), and the call's timeout
|
|
1361
|
+
* ended before its function ran`). `functionDraftEnded` and
|
|
1362
|
+
* `functionDraftsOutlasted` read `draftEnd`, never the line: a function's own
|
|
1363
|
+
* stderr may begin the same way. It is `none` for every other call.
|
|
1364
|
+
*
|
|
1365
|
+
* `inputs` names what the call read ({@link InputReadType}): each input the
|
|
1366
|
+
* function declares, then each dataset argument, with the hash its dataset was
|
|
1367
|
+
* pinned at, in parameter order, so an answer can be reproduced and a stale
|
|
1368
|
+
* one noticed. An input that is an index of a record names the record, the
|
|
1369
|
+
* index and the hash the record was pinned at, which is the hash its other
|
|
1370
|
+
* inputs of that record name: they are read at one state. An input of a record
|
|
1371
|
+
* the call drafted, the record or an index of it, names the drafted state's
|
|
1372
|
+
* hash: a state no commit names, which the record itself never stands at. A
|
|
1373
|
+
* dataset argument naming that record names the state the drafts were laid
|
|
1374
|
+
* over, the one the drafted record's commit names, so a function handed one
|
|
1375
|
+
* reads the record before and after the edit. It is empty for a call of a
|
|
1376
|
+
* function with no inputs and value arguments only, and for an `invalid`
|
|
1377
|
+
* result.
|
|
1378
|
+
*
|
|
1379
|
+
* `drafts` names each record the call drafted, once, in the order its drafts
|
|
1380
|
+
* first name them, with the commit it stood at
|
|
1381
|
+
* ({@link FunctionDraftedType}). It is empty for a call that passed no draft,
|
|
1382
|
+
* for an `invalid` result, and for a one-shot or a split call, which take
|
|
1383
|
+
* none.
|
|
1263
1384
|
*/
|
|
1264
1385
|
export const ExecuteResultType = StructType({
|
|
1265
1386
|
outcome: VariantType({
|
|
@@ -1268,12 +1389,15 @@ export const ExecuteResultType = StructType({
|
|
|
1268
1389
|
invalid: StructType({ diagnostics: ArrayType(DiagnosticType) }),
|
|
1269
1390
|
too_large: StructType({ bytes: IntegerType, limit: IntegerType }),
|
|
1270
1391
|
timed_out: StructType({ ms: IntegerType }),
|
|
1392
|
+
conflict: FunctionDraftConflictType,
|
|
1271
1393
|
}),
|
|
1272
1394
|
stdout: StringType,
|
|
1273
1395
|
stderr: StringType,
|
|
1274
1396
|
stdoutTruncated: BooleanType,
|
|
1275
1397
|
stderrTruncated: BooleanType,
|
|
1276
|
-
inputs: ArrayType(
|
|
1398
|
+
inputs: ArrayType(InputReadType),
|
|
1399
|
+
drafts: ArrayType(FunctionDraftedType),
|
|
1400
|
+
draftEnd: OptionType(FunctionDraftEndType),
|
|
1277
1401
|
});
|
|
1278
1402
|
|
|
1279
1403
|
/**
|
|
@@ -1286,6 +1410,27 @@ export const CallArgType = VariantType({
|
|
|
1286
1410
|
dataset: TreePathType,
|
|
1287
1411
|
});
|
|
1288
1412
|
|
|
1413
|
+
/**
|
|
1414
|
+
* A draft: a call of a record's mutation that is not committed. A function's
|
|
1415
|
+
* call passes a list of them, and reads the record with them laid over it, as
|
|
1416
|
+
* a Save of each would have left it; nothing is saved.
|
|
1417
|
+
*
|
|
1418
|
+
* It is not what the SDK exports as `MutationDraft`, which is a mutation's
|
|
1419
|
+
* declaration before `e3.record` builds it.
|
|
1420
|
+
*
|
|
1421
|
+
* @property record - The record's name, as the package declares it and as the
|
|
1422
|
+
* function lists it in its `drafts`
|
|
1423
|
+
* @property mutation - The mutation's name on the record
|
|
1424
|
+
* @property args - The mutation's arguments, as a mutation call takes them
|
|
1425
|
+
* ({@link MutationCallRequestType}): one beast2-encoded value per declared
|
|
1426
|
+
* parameter, after the implicit current state
|
|
1427
|
+
*/
|
|
1428
|
+
export const FunctionDraftType = StructType({
|
|
1429
|
+
record: StringType,
|
|
1430
|
+
mutation: StringType,
|
|
1431
|
+
args: ArrayType(BlobType),
|
|
1432
|
+
});
|
|
1433
|
+
|
|
1289
1434
|
/**
|
|
1290
1435
|
* Named function call. Positional args, one per argument the function takes
|
|
1291
1436
|
* (its `argTypes`, never its inputs, which the server reads): a value, or a
|
|
@@ -1293,11 +1438,18 @@ export const CallArgType = VariantType({
|
|
|
1293
1438
|
* no workspace to read a dataset from, and answers a dataset argument — or a
|
|
1294
1439
|
* function with inputs — `invalid`; the workspace-scoped route pins it, as a
|
|
1295
1440
|
* one-shot's is.
|
|
1441
|
+
*
|
|
1442
|
+
* `drafts` are the unsaved edits the call lays over the records it reads, in
|
|
1443
|
+
* order ({@link FunctionDraftType}): each of a record the function lists in
|
|
1444
|
+
* its `drafts`, else the call is `invalid`. A record's drafts run in the order
|
|
1445
|
+
* given, each over the state the one before it left. The package-scoped route
|
|
1446
|
+
* reads no workspace, and answers a call that passes any `invalid`.
|
|
1296
1447
|
*/
|
|
1297
1448
|
export const FunctionCallRequestType = StructType({
|
|
1298
1449
|
args: ArrayType(CallArgType),
|
|
1299
1450
|
runner: OptionType(RunnerType), // optional override; only the known runtimes
|
|
1300
1451
|
limits: OptionType(ExecuteLimitsType),
|
|
1452
|
+
drafts: ArrayType(FunctionDraftType),
|
|
1301
1453
|
});
|
|
1302
1454
|
|
|
1303
1455
|
/**
|
|
@@ -1305,16 +1457,19 @@ export const FunctionCallRequestType = StructType({
|
|
|
1305
1457
|
* args.
|
|
1306
1458
|
*
|
|
1307
1459
|
* @property name - The function's name
|
|
1308
|
-
* @property inputs -
|
|
1309
|
-
*
|
|
1310
|
-
* workspace
|
|
1460
|
+
* @property inputs - What a call reads from the workspace it runs in, which
|
|
1461
|
+
* the caller does not pass: each a dataset, or an index of a record
|
|
1462
|
+
* (`FunctionInputType`); a function with any is called through a workspace
|
|
1463
|
+
* @property drafts - The records a call may pass drafts of, by name: each a
|
|
1464
|
+
* record one of `inputs` reads; empty for a function that takes none
|
|
1311
1465
|
* @property argTypes - The types of the arguments a caller passes
|
|
1312
1466
|
* @property outputType - The result's type
|
|
1313
1467
|
* @property runner - The runtime it runs on
|
|
1314
1468
|
*/
|
|
1315
1469
|
export const FunctionSignatureType = StructType({
|
|
1316
1470
|
name: StringType,
|
|
1317
|
-
inputs: ArrayType(
|
|
1471
|
+
inputs: ArrayType(FunctionInputType),
|
|
1472
|
+
drafts: ArrayType(StringType),
|
|
1318
1473
|
argTypes: ArrayType(EastTypeType),
|
|
1319
1474
|
outputType: EastTypeType,
|
|
1320
1475
|
runner: RunnerType,
|
|
@@ -1477,17 +1632,23 @@ export const SplitCallStatusType = VariantType({
|
|
|
1477
1632
|
*
|
|
1478
1633
|
* - `running`: it has not ended
|
|
1479
1634
|
* - `succeeded`: it returned, and `value` is the object its value was stored as
|
|
1480
|
-
* - `failed`: its runner exited non-zero (see its stderr)
|
|
1635
|
+
* - `failed`: its runner exited non-zero (see its stderr), or a draft's
|
|
1636
|
+
* mutation failed before its body ran, which its `draftEnd` names
|
|
1481
1637
|
* - `invalid`: it was refused before it ran: a wrong arity, a runner the
|
|
1482
|
-
* caller may not name, an input with no value
|
|
1638
|
+
* caller may not name, an input with no value, a draft the function does not
|
|
1639
|
+
* take or one its record's mutation does not
|
|
1483
1640
|
* - `too_large`: its value was over its `maxResultBytes`, and was not kept
|
|
1484
|
-
* - `timed_out`: it ran past its timeout, and was stopped
|
|
1641
|
+
* - `timed_out`: it ran past its timeout, and was stopped, its body or a
|
|
1642
|
+
* draft's mutation before it
|
|
1485
1643
|
* - `cancelled`: it was asked to stop, by `by` (`none` without an identity),
|
|
1486
1644
|
* and was stopped
|
|
1487
1645
|
* - `lost`: e3 could not run it, or lost it: its host stopped before it ended
|
|
1646
|
+
* - `conflict`: a draft it passed no longer fits its record, and its
|
|
1647
|
+
* function's body did not run ({@link FunctionDraftConflictType})
|
|
1488
1648
|
*/
|
|
1489
1649
|
export const FunctionCallStateType = VariantType({
|
|
1490
1650
|
cancelled: StructType({ by: OptionType(StringType) }),
|
|
1651
|
+
conflict: FunctionDraftConflictType,
|
|
1491
1652
|
failed: StructType({ exitCode: IntegerType }),
|
|
1492
1653
|
invalid: StructType({ diagnostics: ArrayType(DiagnosticType) }),
|
|
1493
1654
|
lost: StructType({ message: StringType }),
|
|
@@ -1507,6 +1668,24 @@ export const FunctionCallArgType = VariantType({
|
|
|
1507
1668
|
value: StringType,
|
|
1508
1669
|
});
|
|
1509
1670
|
|
|
1671
|
+
/**
|
|
1672
|
+
* A kept call's draft: the draft its caller passed ({@link FunctionDraftType}),
|
|
1673
|
+
* its arguments held by their object as the call's own are. The commit each
|
|
1674
|
+
* drafted record stood at is a record's, not a draft's: the call's result
|
|
1675
|
+
* names it once for each record ({@link FunctionDraftedType}).
|
|
1676
|
+
*
|
|
1677
|
+
* @property record - The record's name
|
|
1678
|
+
* @property mutation - The mutation's name on the record
|
|
1679
|
+
* @property args - The object the arguments' tuple was stored as, an Array of
|
|
1680
|
+
* Blobs, as a record's commit holds its mutation's; `none` for a mutation
|
|
1681
|
+
* that takes none
|
|
1682
|
+
*/
|
|
1683
|
+
export const FunctionCallDraftType = StructType({
|
|
1684
|
+
record: StringType,
|
|
1685
|
+
mutation: StringType,
|
|
1686
|
+
args: OptionType(StringType),
|
|
1687
|
+
});
|
|
1688
|
+
|
|
1510
1689
|
/**
|
|
1511
1690
|
* A kept call, as a workspace's list of calls shows it.
|
|
1512
1691
|
*
|
|
@@ -1536,8 +1715,18 @@ export const FunctionCallSummaryType = StructType({
|
|
|
1536
1715
|
* `none` for a one-shot call, which runs no package's function
|
|
1537
1716
|
* @property args - Its arguments, in order: values by their objects, datasets
|
|
1538
1717
|
* by the hashes they were pinned at
|
|
1539
|
-
* @property inputs - The function's own inputs, each
|
|
1540
|
-
*
|
|
1718
|
+
* @property inputs - The function's own inputs ({@link InputReadType}), each
|
|
1719
|
+
* by its path — with the index's name, for an index of a record — and the
|
|
1720
|
+
* hash its dataset was pinned at, in the order the function declares them.
|
|
1721
|
+
* An input of a record the call drafts, the record or an index of it, names
|
|
1722
|
+
* the state the record held as the call started, and, once its drafts are
|
|
1723
|
+
* laid, the drafted state
|
|
1724
|
+
* @property drafts - The drafts it passed, in order; none for a call that
|
|
1725
|
+
* passed none, and for one refused as it started, which keeps no argument
|
|
1726
|
+
* either. Its result names the commit each drafted record stood at
|
|
1727
|
+
* @property draftEnd - How its drafts ended it before its function ran
|
|
1728
|
+
* ({@link FunctionDraftEndType}); `none` while it runs, and for a call they
|
|
1729
|
+
* did not end
|
|
1541
1730
|
* @property limits - The limits it ran under
|
|
1542
1731
|
* @property expiresAt - When it is forgotten: its lifetime's end, which its
|
|
1543
1732
|
* end sets. A running call's is past its deadline by a grace and then a
|
|
@@ -1557,7 +1746,9 @@ export const FunctionCallType = StructType({
|
|
|
1557
1746
|
state: FunctionCallStateType,
|
|
1558
1747
|
package: OptionType(StructType({ name: StringType, version: StringType })),
|
|
1559
1748
|
args: ArrayType(FunctionCallArgType),
|
|
1560
|
-
inputs: ArrayType(
|
|
1749
|
+
inputs: ArrayType(InputReadType),
|
|
1750
|
+
drafts: ArrayType(FunctionCallDraftType),
|
|
1751
|
+
draftEnd: OptionType(FunctionDraftEndType),
|
|
1561
1752
|
limits: StructType({ timeoutMs: IntegerType, maxResultBytes: IntegerType, maxLogBytes: IntegerType }),
|
|
1562
1753
|
expiresAt: DateTimeType,
|
|
1563
1754
|
stdout: StringType,
|
|
@@ -1867,7 +2058,13 @@ export type DatasetStatusDetail = ValueTypeOf<typeof DatasetStatusDetailType>;
|
|
|
1867
2058
|
export type ExecuteLimits = ValueTypeOf<typeof ExecuteLimitsType>;
|
|
1868
2059
|
export type Diagnostic = ValueTypeOf<typeof DiagnosticType>;
|
|
1869
2060
|
export type ExecuteResult = ValueTypeOf<typeof ExecuteResultType>;
|
|
2061
|
+
export type InputRead = ValueTypeOf<typeof InputReadType>;
|
|
1870
2062
|
export type CallArg = ValueTypeOf<typeof CallArgType>;
|
|
2063
|
+
export type FunctionDraft = ValueTypeOf<typeof FunctionDraftType>;
|
|
2064
|
+
export type FunctionDraftConflict = ValueTypeOf<typeof FunctionDraftConflictType>;
|
|
2065
|
+
export type FunctionDrafted = ValueTypeOf<typeof FunctionDraftedType>;
|
|
2066
|
+
export type FunctionDraftFailure = ValueTypeOf<typeof FunctionDraftFailureType>;
|
|
2067
|
+
export type FunctionDraftEnd = ValueTypeOf<typeof FunctionDraftEndType>;
|
|
1871
2068
|
export type FunctionCallRequest = ValueTypeOf<typeof FunctionCallRequestType>;
|
|
1872
2069
|
export type FunctionSignature = ValueTypeOf<typeof FunctionSignatureType>;
|
|
1873
2070
|
export type OneShotRequest = ValueTypeOf<typeof OneShotRequestType>;
|
|
@@ -1878,6 +2075,7 @@ export type SplitCallStatus = ValueTypeOf<typeof SplitCallStatusType>;
|
|
|
1878
2075
|
export type SplitCallPlan = ValueTypeOf<typeof SplitCallPlanType>;
|
|
1879
2076
|
export type FunctionCallState = ValueTypeOf<typeof FunctionCallStateType>;
|
|
1880
2077
|
export type FunctionCallArg = ValueTypeOf<typeof FunctionCallArgType>;
|
|
2078
|
+
export type FunctionCallDraft = ValueTypeOf<typeof FunctionCallDraftType>;
|
|
1881
2079
|
export type FunctionCallSummary = ValueTypeOf<typeof FunctionCallSummaryType>;
|
|
1882
2080
|
export type FunctionCall = ValueTypeOf<typeof FunctionCallType>;
|
|
1883
2081
|
export type FunctionCallStatus = ValueTypeOf<typeof FunctionCallStatusType>;
|