@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.
Files changed (68) hide show
  1. package/dist/src/api.d.ts +382 -17
  2. package/dist/src/api.d.ts.map +1 -1
  3. package/dist/src/api.js +201 -17
  4. package/dist/src/api.js.map +1 -1
  5. package/dist/src/environment.d.ts +95 -8
  6. package/dist/src/environment.d.ts.map +1 -1
  7. package/dist/src/environment.js +102 -9
  8. package/dist/src/environment.js.map +1 -1
  9. package/dist/src/environment.spec.js +31 -19
  10. package/dist/src/environment.spec.js.map +1 -1
  11. package/dist/src/function-call.d.ts +91 -13
  12. package/dist/src/function-call.d.ts.map +1 -1
  13. package/dist/src/function-call.js +48 -4
  14. package/dist/src/function-call.js.map +1 -1
  15. package/dist/src/function-draft.d.ts +80 -0
  16. package/dist/src/function-draft.d.ts.map +1 -0
  17. package/dist/src/function-draft.js +71 -0
  18. package/dist/src/function-draft.js.map +1 -0
  19. package/dist/src/function-draft.spec.d.ts +6 -0
  20. package/dist/src/function-draft.spec.d.ts.map +1 -0
  21. package/dist/src/function-draft.spec.js +58 -0
  22. package/dist/src/function-draft.spec.js.map +1 -0
  23. package/dist/src/function.d.ts +45 -8
  24. package/dist/src/function.d.ts.map +1 -1
  25. package/dist/src/function.js +40 -7
  26. package/dist/src/function.js.map +1 -1
  27. package/dist/src/function.spec.d.ts +6 -0
  28. package/dist/src/function.spec.d.ts.map +1 -0
  29. package/dist/src/function.spec.js +61 -0
  30. package/dist/src/function.spec.js.map +1 -0
  31. package/dist/src/index.d.ts +7 -6
  32. package/dist/src/index.d.ts.map +1 -1
  33. package/dist/src/index.js +9 -7
  34. package/dist/src/index.js.map +1 -1
  35. package/dist/src/record.d.ts +81 -29
  36. package/dist/src/record.d.ts.map +1 -1
  37. package/dist/src/record.js +92 -22
  38. package/dist/src/record.js.map +1 -1
  39. package/dist/src/release.d.ts +1 -1
  40. package/dist/src/release.js +1 -1
  41. package/dist/src/structure.d.ts +18 -0
  42. package/dist/src/structure.d.ts.map +1 -1
  43. package/dist/src/structure.js +20 -0
  44. package/dist/src/structure.js.map +1 -1
  45. package/dist/src/structure.spec.js +8 -1
  46. package/dist/src/structure.spec.js.map +1 -1
  47. package/dist/src/task.d.ts +15 -2
  48. package/dist/src/task.d.ts.map +1 -1
  49. package/dist/src/task.js +14 -2
  50. package/dist/src/task.js.map +1 -1
  51. package/dist/src/task.spec.js +19 -2
  52. package/dist/src/task.spec.js.map +1 -1
  53. package/package.json +2 -2
  54. package/src/api.ts +215 -17
  55. package/src/environment.spec.ts +42 -21
  56. package/src/environment.ts +109 -9
  57. package/src/function-call.ts +52 -4
  58. package/src/function-draft.spec.ts +69 -0
  59. package/src/function-draft.ts +96 -0
  60. package/src/function.spec.ts +66 -0
  61. package/src/function.ts +44 -7
  62. package/src/index.ts +38 -2
  63. package/src/record.ts +97 -24
  64. package/src/release.ts +1 -1
  65. package/src/structure.spec.ts +9 -1
  66. package/src/structure.ts +21 -0
  67. package/src/task.spec.ts +20 -2
  68. package/src/task.ts +14 -2
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * How a call says which of its drafts ended it (east-workspace#1619).
7
+ *
8
+ * A draft is an unsaved edit a call lays over a record its function reads. A
9
+ * call a draft's mutation ended `failed` or `timed_out`, before its function
10
+ * ran, names the draft in its result's `draftEnd` (`FunctionDraftEndType`),
11
+ * and says which in the first line of its stderr, for people to read: `draft
12
+ * jobs.patch (2 of 3) failed`, or `draft jobs.patch (2 of 3) timed out`. The
13
+ * mutation's own stderr follows it, as a Save returns it. A call whose timeout
14
+ * ended once its drafts were all laid, before its function ran, names that in
15
+ * its `draftEnd`, and says so in its first line instead: `drafts laid (3 of 3),
16
+ * and the call's timeout ended before its function ran`.
17
+ *
18
+ * A caller reads what ended a call from its `draftEnd` alone, never from the
19
+ * line (#1680's review): a function that ran may write the same line itself.
20
+ * The lines are written here, so every job that ends a call says them alike.
21
+ */
22
+ import type { ExecuteResult, FunctionDraftFailure } from './api.js';
23
+ /**
24
+ * How a call names one of its drafts: `draft jobs.patch (2 of 3)`. A refusal
25
+ * of the draft begins with it, and so does the line a call it ended says so in
26
+ * ({@link functionDraftEndLine}).
27
+ *
28
+ * @param draft - The draft's record and mutation
29
+ * @param place - Its place among the call's drafts, from 1
30
+ * @param of - How many drafts the call passed
31
+ * @returns The draft's name
32
+ */
33
+ export declare function functionDraftLabel(draft: {
34
+ readonly record: string;
35
+ readonly mutation: string;
36
+ }, place: number, of: number): string;
37
+ /**
38
+ * The first line of the stderr of a call a draft ended: `draft jobs.patch (2
39
+ * of 3) failed`, or `… timed out`.
40
+ *
41
+ * @param end - The draft, and how its mutation ended, as the call's `draftEnd`
42
+ * names it
43
+ * @returns The line, with no line end
44
+ */
45
+ export declare function functionDraftEndLine(end: FunctionDraftFailure): string;
46
+ /**
47
+ * The draft that ended a call before its function ran, as its result's
48
+ * `draftEnd` names it.
49
+ *
50
+ * @remarks
51
+ * A call whose timeout ended between two drafts' runs names the draft that
52
+ * did not start. One whose timeout ended once its drafts were all laid names
53
+ * none ({@link functionDraftsOutlasted} says so of it), and neither does a
54
+ * `conflict`, whose outcome names its draft itself. Neither does a call whose
55
+ * function ran, whatever the first line of its stderr says.
56
+ *
57
+ * @param result - A call's result: what ended it
58
+ * @returns The draft, or `null` when no draft's mutation ended the call
59
+ */
60
+ export declare function functionDraftEnded(result: Pick<ExecuteResult, 'draftEnd'>): FunctionDraftFailure | null;
61
+ /**
62
+ * The first line of the stderr of a call whose timeout ended once its drafts
63
+ * were all laid, before its function ran: `drafts laid (3 of 3), and the
64
+ * call's timeout ended before its function ran`.
65
+ *
66
+ * @param of - How many drafts the call passed, every one of them laid
67
+ * @returns The line, with no line end
68
+ */
69
+ export declare function functionDraftsLaidLine(of: number): string;
70
+ /**
71
+ * Whether a call's timeout ended once its drafts were all laid, before its
72
+ * function ran, as its result's `draftEnd` says: the time went on its drafts,
73
+ * and its function did not run.
74
+ *
75
+ * @param result - A call's result: what ended it
76
+ * @returns Whether it ended so; `false` for a call that passed no draft, one
77
+ * that did not time out, and one whose function ran
78
+ */
79
+ export declare function functionDraftsOutlasted(result: Pick<ExecuteResult, 'draftEnd'>): boolean;
80
+ //# sourceMappingURL=function-draft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-draft.d.ts","sourceRoot":"","sources":["../../src/function-draft.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKpE;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAEnI;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,GAAG,MAAM,CAEtE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,oBAAoB,GAAG,IAAI,CAEvG;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,OAAO,CAExF"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /** How each end reads in the line. */
6
+ const HOW = { failed: 'failed', timed_out: 'timed out' };
7
+ /**
8
+ * How a call names one of its drafts: `draft jobs.patch (2 of 3)`. A refusal
9
+ * of the draft begins with it, and so does the line a call it ended says so in
10
+ * ({@link functionDraftEndLine}).
11
+ *
12
+ * @param draft - The draft's record and mutation
13
+ * @param place - Its place among the call's drafts, from 1
14
+ * @param of - How many drafts the call passed
15
+ * @returns The draft's name
16
+ */
17
+ export function functionDraftLabel(draft, place, of) {
18
+ return `draft ${draft.record}.${draft.mutation} (${place} of ${of})`;
19
+ }
20
+ /**
21
+ * The first line of the stderr of a call a draft ended: `draft jobs.patch (2
22
+ * of 3) failed`, or `… timed out`.
23
+ *
24
+ * @param end - The draft, and how its mutation ended, as the call's `draftEnd`
25
+ * names it
26
+ * @returns The line, with no line end
27
+ */
28
+ export function functionDraftEndLine(end) {
29
+ return `${functionDraftLabel(end, Number(end.place), Number(end.of))} ${HOW[end.how.type]}`;
30
+ }
31
+ /**
32
+ * The draft that ended a call before its function ran, as its result's
33
+ * `draftEnd` names it.
34
+ *
35
+ * @remarks
36
+ * A call whose timeout ended between two drafts' runs names the draft that
37
+ * did not start. One whose timeout ended once its drafts were all laid names
38
+ * none ({@link functionDraftsOutlasted} says so of it), and neither does a
39
+ * `conflict`, whose outcome names its draft itself. Neither does a call whose
40
+ * function ran, whatever the first line of its stderr says.
41
+ *
42
+ * @param result - A call's result: what ended it
43
+ * @returns The draft, or `null` when no draft's mutation ended the call
44
+ */
45
+ export function functionDraftEnded(result) {
46
+ return result.draftEnd.type === 'some' && result.draftEnd.value.type === 'draft' ? result.draftEnd.value.value : null;
47
+ }
48
+ /**
49
+ * The first line of the stderr of a call whose timeout ended once its drafts
50
+ * were all laid, before its function ran: `drafts laid (3 of 3), and the
51
+ * call's timeout ended before its function ran`.
52
+ *
53
+ * @param of - How many drafts the call passed, every one of them laid
54
+ * @returns The line, with no line end
55
+ */
56
+ export function functionDraftsLaidLine(of) {
57
+ return `drafts laid (${of} of ${of}), and the call's timeout ended before its function ran`;
58
+ }
59
+ /**
60
+ * Whether a call's timeout ended once its drafts were all laid, before its
61
+ * function ran, as its result's `draftEnd` says: the time went on its drafts,
62
+ * and its function did not run.
63
+ *
64
+ * @param result - A call's result: what ended it
65
+ * @returns Whether it ended so; `false` for a call that passed no draft, one
66
+ * that did not time out, and one whose function ran
67
+ */
68
+ export function functionDraftsOutlasted(result) {
69
+ return result.draftEnd.type === 'some' && result.draftEnd.value.type === 'laid';
70
+ }
71
+ //# sourceMappingURL=function-draft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-draft.js","sourceRoot":"","sources":["../../src/function-draft.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsBH,sCAAsC;AACtC,MAAM,GAAG,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAW,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAA6D,EAAE,KAAa,EAAE,EAAU;IACzH,OAAO,SAAS,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,OAAO,EAAE,GAAG,CAAC;AACvE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAyB;IAC5D,OAAO,GAAG,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;AAC9F,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAuC;IACxE,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;AACxH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAU;IAC/C,OAAO,gBAAgB,EAAE,OAAO,EAAE,yDAAyD,CAAC;AAC9F,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAuC;IAC7E,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC;AAClF,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=function-draft.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-draft.spec.d.ts","sourceRoot":"","sources":["../../src/function-draft.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * How a call says which of its drafts ended it (east-workspace#1619): the
7
+ * lines its stderr says it in, for people to read, and the end its result
8
+ * names, which a caller reads it from — never the line, which a function's own
9
+ * stderr may say too (#1680's review).
10
+ */
11
+ import { describe, it } from 'node:test';
12
+ import assert from 'node:assert/strict';
13
+ import { equalFor, none, some, variant } from '@elaraai/east';
14
+ import { FunctionDraftFailureType } from './api.js';
15
+ import { functionDraftEndLine, functionDraftEnded, functionDraftLabel, functionDraftsLaidLine, functionDraftsOutlasted } from './function-draft.js';
16
+ const sameFailure = equalFor(FunctionDraftFailureType);
17
+ /** A draft that ended a call, as its result names it. */
18
+ function draft(record, mutation, place, of, how) {
19
+ return { record, mutation, place, of, how: how === 'failed' ? variant('failed', null) : variant('timed_out', null) };
20
+ }
21
+ const failed = variant('failed', { exitCode: 3n });
22
+ const timedOut = variant('timed_out', { ms: 600000n });
23
+ describe('the lines a call says what of its drafts ended it in', () => {
24
+ it("names a draft by its record, its mutation and its place among the call's, and how many were laid", () => {
25
+ assert.equal(functionDraftLabel({ record: 'jobs', mutation: 'patch' }, 2, 3), 'draft jobs.patch (2 of 3)');
26
+ assert.equal(functionDraftEndLine(draft('jobs', 'patch', 2n, 3n, 'failed')), 'draft jobs.patch (2 of 3) failed');
27
+ assert.equal(functionDraftEndLine(draft('jobs', 'patch', 1n, 1n, 'timed_out')), 'draft jobs.patch (1 of 1) timed out');
28
+ assert.equal(functionDraftsLaidLine(3), 'drafts laid (3 of 3), and the call\'s timeout ended before its function ran');
29
+ });
30
+ });
31
+ describe('what of its drafts ended a call, as its result names it', () => {
32
+ it('reads back the draft a call names as its end, whatever its record\'s name holds', () => {
33
+ const ends = [draft('jobs', 'patch', 2n, 3n, 'failed'), draft('jobs', 'move', 12n, 12n, 'timed_out'), draft('plant.jobs', 'patch', 1n, 1n, 'failed')];
34
+ for (const end of ends) {
35
+ const result = { outcome: end.how.type === 'failed' ? failed : timedOut, stderr: `${functionDraftEndLine(end)}\n`, draftEnd: some(variant('draft', end)) };
36
+ const read = functionDraftEnded(result);
37
+ assert.ok(read !== null && sameFailure(read, end), functionDraftEndLine(end));
38
+ assert.equal(functionDraftsOutlasted(result), false, 'a draft that ended it is no timeout once every draft was laid');
39
+ }
40
+ });
41
+ it('reads that a call\'s timeout ended once its drafts were all laid, naming no draft', () => {
42
+ const result = { outcome: timedOut, stderr: `${functionDraftsLaidLine(3)}\n`, draftEnd: some(variant('laid', { of: 3n })) };
43
+ assert.equal(functionDraftsOutlasted(result), true);
44
+ assert.equal(functionDraftEnded(result), null);
45
+ });
46
+ it('names no end for a call its drafts did not end, whatever its stderr says: a function that ran and wrote the lines itself (#1680\'s review)', () => {
47
+ const line = functionDraftEndLine(draft('jobs', 'patch', 1n, 1n, 'failed'));
48
+ const mimic = { outcome: failed, stderr: `${line}\nError: refused\n`, draftEnd: none };
49
+ assert.equal(functionDraftEnded(mimic), null, 'a function whose own stderr begins with a draft\'s end');
50
+ const outlasting = { outcome: timedOut, stderr: `${functionDraftsLaidLine(2)}\n`, draftEnd: none };
51
+ assert.equal(functionDraftsOutlasted(outlasting), false, 'a function whose own stderr says its drafts were laid');
52
+ const success = { outcome: variant('success', { value: new Uint8Array() }), stderr: `${line}\n`, draftEnd: none };
53
+ assert.deepEqual([functionDraftEnded(success), functionDraftsOutlasted(success)], [null, false], 'a call whose function ran to its end');
54
+ const conflict = { outcome: variant('conflict', { record: 'jobs', mutation: 'patch', place: 1n, of: 1n, message: 'gone' }), stderr: '', draftEnd: none };
55
+ assert.equal(functionDraftEnded(conflict), null, 'a conflict, whose outcome names its draft');
56
+ });
57
+ });
58
+ //# sourceMappingURL=function-draft.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function-draft.spec.js","sourceRoot":"","sources":["../../src/function-draft.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAiD,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAEpJ,MAAM,WAAW,GAAG,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEvD,yDAAyD;AACzD,SAAS,KAAK,CAAC,MAAc,EAAE,QAAgB,EAAE,KAAa,EAAE,EAAU,EAAE,GAA2B;IACrG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAA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EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAChK,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,2CAA2C,CAAC,CAAC;IAChG,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -8,8 +8,10 @@
8
8
  * An `e3.function` is a named, typed function stored in a package and
9
9
  * invoked by name with argument values over the CLI and HTTP API. It may
10
10
  * read datasets of the workspace a call runs through — its inputs — beside
11
- * the arguments its caller passes. Unlike a task it is not part of the
12
- * dataflow graph, and triggers no recomputation.
11
+ * the arguments its caller passes, and name the records among them a call
12
+ * may pass drafts of: mutation calls that are not committed, laid over the
13
+ * record for that call alone. Unlike a task it is not part of the dataflow
14
+ * graph, and triggers no recomputation.
13
15
  *
14
16
  * The function object stores its signature explicitly so `describe` and
15
17
  * arity/type validation work from the small function object without
@@ -17,6 +19,32 @@
17
19
  * non-TS clients) have the types they need to encode arguments.
18
20
  */
19
21
  import { StructType, StringType, ArrayType, OptionType, ValueTypeOf } from '@elaraai/east';
22
+ /**
23
+ * What a function reads from the workspace a call runs in: a dataset, or an
24
+ * index of a record, which is read through the record's dataset.
25
+ *
26
+ * @property path - The dataset's path: for an index, its record's
27
+ * @property index - The index of the record at `path` the input reads, by its
28
+ * name on the record: the body is given the index's entries,
29
+ * `Dict<{ ik, k }, P>`, at the state the record is pinned at. `none` for the
30
+ * dataset itself
31
+ */
32
+ export declare const FunctionInputType: StructType<{
33
+ readonly path: ArrayType<import("@elaraai/east").VariantType<{
34
+ readonly field: StringType;
35
+ }>>;
36
+ readonly index: OptionType<StringType>;
37
+ }>;
38
+ export type FunctionInputType = typeof FunctionInputType;
39
+ export type FunctionInput = ValueTypeOf<typeof FunctionInputType>;
40
+ /**
41
+ * An input as a message names it: its dataset's keypath, or, for an index of a
42
+ * record, the index and its record's keypath.
43
+ *
44
+ * @param input - The input: a function's, a task's, or one a call read
45
+ * @returns `.inputs.prices`, or `the index jobs_by_press of .records.jobs`
46
+ */
47
+ export declare function inputLabel(input: Pick<FunctionInput, 'path' | 'index'>): string;
20
48
  /**
21
49
  * Function object stored in the object store, referenced by name from
22
50
  * `PackageObject.functions`.
@@ -26,12 +54,21 @@ export declare const FunctionObjectType: StructType<{
26
54
  * Its parameters are the inputs' types, in `inputs` order, then
27
55
  * `argTypes`. */
28
56
  readonly bodyIr: StringType;
29
- /** The datasets a call reads from the workspace it runs in, each pinned at
30
- * its hash when the call launches and passed before the caller's
31
- * arguments; empty for a function that reads none. */
32
- readonly inputs: ArrayType<ArrayType<import("@elaraai/east").VariantType<{
33
- readonly field: StringType;
34
- }>>>;
57
+ /** What a call reads from the workspace it runs in ({@link FunctionInputType}):
58
+ * each dataset pinned at its hash when the call launches and passed before
59
+ * the caller's arguments, the inputs of one record — the record and any of
60
+ * its indexes — at one state of it; empty for a function that reads none. */
61
+ readonly inputs: ArrayType<StructType<{
62
+ readonly path: ArrayType<import("@elaraai/east").VariantType<{
63
+ readonly field: StringType;
64
+ }>>;
65
+ readonly index: OptionType<StringType>;
66
+ }>>;
67
+ /** The records a call may pass drafts of, by name: each a record one of
68
+ * `inputs` reads, which the call then reads with its drafts laid over it.
69
+ * A call that passes a draft of any other record is `invalid`; empty for a
70
+ * function that takes none. */
71
+ readonly drafts: ArrayType<StringType>;
35
72
  /** The types of the arguments a caller passes, after the inputs, surfaced
36
73
  * for arity/type validation and `describe` without decoding the whole
37
74
  * IR. */
@@ -1 +1 @@
1
- {"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../src/function.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAgB,UAAU,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAI1H;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;sBAEkB;;IAElB;;2DAEuD;;;;IAEvD;;cAEU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AAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAIpE;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc,CASrE"}
@@ -8,8 +8,10 @@
8
8
  * An `e3.function` is a named, typed function stored in a package and
9
9
  * invoked by name with argument values over the CLI and HTTP API. It may
10
10
  * read datasets of the workspace a call runs through — its inputs — beside
11
- * the arguments its caller passes. Unlike a task it is not part of the
12
- * dataflow graph, and triggers no recomputation.
11
+ * the arguments its caller passes, and name the records among them a call
12
+ * may pass drafts of: mutation calls that are not committed, laid over the
13
+ * record for that call alone. Unlike a task it is not part of the dataflow
14
+ * graph, and triggers no recomputation.
13
15
  *
14
16
  * The function object stores its signature explicitly so `describe` and
15
17
  * arity/type validation work from the small function object without
@@ -18,7 +20,32 @@
18
20
  */
19
21
  import { StructType, StringType, ArrayType, EastTypeType, OptionType, decodeBeast2For } from '@elaraai/east';
20
22
  import { RunnerType } from './runner.js';
21
- import { TreePathType } from './structure.js';
23
+ import { TreePathType, pathToString } from './structure.js';
24
+ /**
25
+ * What a function reads from the workspace a call runs in: a dataset, or an
26
+ * index of a record, which is read through the record's dataset.
27
+ *
28
+ * @property path - The dataset's path: for an index, its record's
29
+ * @property index - The index of the record at `path` the input reads, by its
30
+ * name on the record: the body is given the index's entries,
31
+ * `Dict<{ ik, k }, P>`, at the state the record is pinned at. `none` for the
32
+ * dataset itself
33
+ */
34
+ export const FunctionInputType = StructType({
35
+ path: TreePathType,
36
+ index: OptionType(StringType),
37
+ });
38
+ /**
39
+ * An input as a message names it: its dataset's keypath, or, for an index of a
40
+ * record, the index and its record's keypath.
41
+ *
42
+ * @param input - The input: a function's, a task's, or one a call read
43
+ * @returns `.inputs.prices`, or `the index jobs_by_press of .records.jobs`
44
+ */
45
+ export function inputLabel(input) {
46
+ const at = pathToString(input.path);
47
+ return input.index.type === 'some' ? `the index ${input.index.value} of ${at}` : at;
48
+ }
22
49
  /**
23
50
  * Function object stored in the object store, referenced by name from
24
51
  * `PackageObject.functions`.
@@ -28,10 +55,16 @@ export const FunctionObjectType = StructType({
28
55
  * Its parameters are the inputs' types, in `inputs` order, then
29
56
  * `argTypes`. */
30
57
  bodyIr: StringType,
31
- /** The datasets a call reads from the workspace it runs in, each pinned at
32
- * its hash when the call launches and passed before the caller's
33
- * arguments; empty for a function that reads none. */
34
- inputs: ArrayType(TreePathType),
58
+ /** What a call reads from the workspace it runs in ({@link FunctionInputType}):
59
+ * each dataset pinned at its hash when the call launches and passed before
60
+ * the caller's arguments, the inputs of one record — the record and any of
61
+ * its indexes — at one state of it; empty for a function that reads none. */
62
+ inputs: ArrayType(FunctionInputType),
63
+ /** The records a call may pass drafts of, by name: each a record one of
64
+ * `inputs` reads, which the call then reads with its drafts laid over it.
65
+ * A call that passes a draft of any other record is `invalid`; empty for a
66
+ * function that takes none. */
67
+ drafts: ArrayType(StringType),
35
68
  /** The types of the arguments a caller passes, after the inputs, surfaced
36
69
  * for arity/type validation and `describe` without decoding the whole
37
70
  * IR. */
@@ -1 +1 @@
1
- {"version":3,"file":"function.js","sourceRoot":"","sources":["../../src/function.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1H,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C;;sBAEkB;IAClB,MAAM,EAAE,UAAU;IAClB;;2DAEuD;IACvD,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC;IAC/B;;cAEU;IACV,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AAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,KAAK,CAAC,KAAK,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACtF,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C;;sBAEkB;IAClB,MAAM,EAAE,UAAU;IAClB;;;kFAG8E;IAC9E,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC;IACpC;;;oCAGgC;IAChC,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC;IAC7B;;cAEU;IACV,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC;IACjC,wEAAwE;IACxE,UAAU,EAAE,YAAY;IACxB;gEAC4D;IAC5D,MAAM,EAAE,UAAU;IAClB;;;OAGG;IACH,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC;CACpC,CAAC,CAAC;AAKH,MAAM,qBAAqB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAgB;IACnD,IAAI,CAAC;QACH,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,uHAAuH;YACvH,IAAI,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CACxD,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=function.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.spec.d.ts","sourceRoot":"","sources":["../../src/function.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * Function object wire: the function object's round trip, with an input that
7
+ * is an index of a record, and its refusal of the form before it.
8
+ */
9
+ import { describe, it } from 'node:test';
10
+ import assert from 'node:assert/strict';
11
+ import { ArrayType, EastTypeType, IntegerType, OptionType, StringType, StructType, encodeBeast2For, equalFor, none, some, toEastTypeValue, variant } from '@elaraai/east';
12
+ import { FunctionObjectType, decodeFunctionObject } from './function.js';
13
+ import { RunnerType } from './runner.js';
14
+ import { TreePathType } from './structure.js';
15
+ describe('FunctionObjectType', () => {
16
+ const jobs = [variant('field', 'records'), variant('field', 'jobs')];
17
+ const presses = [variant('field', 'inputs'), variant('field', 'presses')];
18
+ const base = {
19
+ bodyIr: 'a'.repeat(64),
20
+ inputs: [],
21
+ drafts: [],
22
+ argTypes: [toEastTypeValue(StringType)],
23
+ outputType: toEastTypeValue(IntegerType),
24
+ runner: variant('east_c', { platforms: [], decode: variant('lazy', null) }),
25
+ environment: none,
26
+ };
27
+ it('round-trips a function that reads nothing, datasets, and an index of a record beside the record', () => {
28
+ const functions = [
29
+ base,
30
+ { ...base, inputs: [{ path: presses, index: none }], environment: some('b'.repeat(64)) },
31
+ {
32
+ ...base,
33
+ inputs: [{ path: jobs, index: some('jobs_by_press') }, { path: jobs, index: none }],
34
+ drafts: ['jobs'],
35
+ },
36
+ ];
37
+ const encode = encodeBeast2For(FunctionObjectType);
38
+ const same = equalFor(FunctionObjectType);
39
+ for (const original of functions) {
40
+ assert.ok(same(decodeFunctionObject(encode(original)), original), `a function with ${original.inputs.length} inputs decodes as it was encoded`);
41
+ }
42
+ });
43
+ it('refuses a function object whose inputs predate the index they may name, saying to re-export the package', () => {
44
+ // A function object as a package exported before an input could be an
45
+ // index of a record: each input its dataset's path alone.
46
+ const older = encodeBeast2For(StructType({
47
+ bodyIr: StringType,
48
+ inputs: ArrayType(TreePathType),
49
+ drafts: ArrayType(StringType),
50
+ argTypes: ArrayType(EastTypeType),
51
+ outputType: EastTypeType,
52
+ runner: RunnerType,
53
+ environment: OptionType(StringType),
54
+ }))({ ...base, inputs: [presses] });
55
+ assert.throws(() => decodeFunctionObject(older), /exported by an older e3 SDK — re-export it with the current one/);
56
+ });
57
+ it('throws for bytes of no known function shape', () => {
58
+ assert.throws(() => decodeFunctionObject(encodeBeast2For(IntegerType)(7n)), /re-export/);
59
+ });
60
+ });
61
+ //# sourceMappingURL=function.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.spec.js","sourceRoot":"","sources":["../../src/function.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC1K,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAuB,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IACrE,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;IAC1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AAC;QAClJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yGAAyG,EAAE,GAAG,EAAE;QACjH,sEAAsE;QACtE,0DAA0D;QAC1D,MAAM,KAAK,GAAG,eAAe,CAAC,UAAU,CAAC;YACvC,MAAM,EAAE,UAAU;YAClB,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC;YAC/B,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC;YAC7B,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC;YACjC,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,UAAU;YAClB,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC;SACpC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,iEAAiE,CAAC,CAAC;IACtH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACrD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -23,12 +23,13 @@
23
23
  export { DataRefType, type DataRef, unassignedRef, nullRef, DataTreeType, } from './dataset.js';
24
24
  export { VersionVectorType, type VersionVector, DatasetRefType, type DatasetRef, } from './dataset-ref.js';
25
25
  export { TASK_OBJECT_KIND, TaskObjectType, type TaskObject, decodeTaskObject, TaskBodyType, type TaskBody, TaskPartitionType, type TaskPartition, TaskInputType, type TaskInput, TaskOutputKindType, type TaskOutputKind, TaskOutputType, type TaskOutput, DataManifestType, type DataManifest, TaskRoleType, type TaskRole, } from './task.js';
26
- export { EnvironmentSpecType, type EnvironmentSpec, PythonEnvironmentType, type PythonEnvironment, NodeEnvironmentType, type NodeEnvironment, ImageEnvironmentType, type ImageEnvironment, ToolsEnvironmentType, type ToolsEnvironment, WorkspaceNodeEnvironmentType, type WorkspaceNodeEnvironment, environmentSpecObjectHashes, } from './environment.js';
27
- export { StructureType, type Structure, PathSegmentType, type PathSegment, TreePathType, type TreePath, type ParsePathResult, type ParseDatasetPathResult, type ParsePackageRefResult, treePath, pathToString, parsePath, parseKeypath, parseDatasetPath, parsePackageRef, urlPathToTreePath, } from './structure.js';
26
+ export { EnvironmentSpecType, type EnvironmentSpec, PythonEnvironmentType, type PythonEnvironment, NodeEnvironmentType, type NodeEnvironment, ImageEnvironmentType, type ImageEnvironment, ToolsEnvironmentType, type ToolsEnvironment, WorkspaceNodeEnvironmentType, type WorkspaceNodeEnvironment, WorkspacePythonEnvironmentType, type WorkspacePythonEnvironment, decodeEnvironmentSpec, environmentSpecObjectHashes, } from './environment.js';
27
+ export { StructureType, type Structure, PathSegmentType, type PathSegment, TreePathType, type TreePath, type ParsePathResult, type ParseDatasetPathResult, type ParsePackageRefResult, treePath, pathToString, treePathToRefPath, parsePath, parseKeypath, parseDatasetPath, parsePackageRef, urlPathToTreePath, } from './structure.js';
28
28
  export { RunnerType, type RunnerValue, withRunnerLifeline, } from './runner.js';
29
- export { FunctionObjectType, type FunctionObject, decodeFunctionObject, } from './function.js';
30
- export { FunctionCallCancelType, type FunctionCallCancel, FunctionCallKeepType, type FunctionCallKeep, FunctionCallJobType, type FunctionCallJob, encodeFunctionCallJob, decodeFunctionCallJob, functionCallRoots, } from './function-call.js';
31
- export { RecordCommitType, type RecordCommit, MutationObjectType, type MutationObject, RecordObjectType, type RecordObject, decodeRecordObject, RecordIndexObjectType, type RecordIndexObject, decodeRecordIndexObject, RecordIndexFormType, type RecordIndexForm, RecordSummaryTotalsType, type RecordSummaryTotals, RecordLevelType, type RecordLevel, RecordRollupType, type RecordRollup, RecordNestedRunType, type RecordNestedRun, RecordNestedPathType, type RecordNestedPath, RecordNestedItemType, type RecordNestedItem, NestedEntryKeyType, NestedSpanKeyType, nestedSpanName, entriesRowsName, RecordNestedTotalsType, type RecordNestedTotals, NestedEntryType, RecordNestedDeclType, type RecordNestedDecl, RecordSummaryOpType, type RecordSummaryOp, RECORD_STATE_KIND, RecordStateType, type RecordState, isRecordStateType, indexCollectionType, indexWindowType, datasetRowsType, decodeRecordCommit, decodeMutationObject, MutationFormType, type MutationForm, MigrationObjectType, type MigrationObject, decodeMigrationObject, MigrationFormType, type MigrationForm, DELTA_CONFLICT, patchOpsType, mutationDeltaType, editTypeOf, type DeltaTarget, } from './record.js';
29
+ export { FunctionInputType, type FunctionInput, inputLabel, FunctionObjectType, type FunctionObject, decodeFunctionObject, } from './function.js';
30
+ export { FunctionCallCancelType, type FunctionCallCancel, FunctionCallKeepType, type FunctionCallKeep, FunctionCallDraftedType, type FunctionCallDrafted, FunctionCallJobType, type FunctionCallJob, encodeFunctionCallJob, decodeFunctionCallJob, functionCallRoots, } from './function-call.js';
31
+ export { functionDraftLabel, functionDraftEndLine, functionDraftEnded, functionDraftsLaidLine, functionDraftsOutlasted, } from './function-draft.js';
32
+ export { RecordCommitType, type RecordCommit, MutationObjectType, type MutationObject, RecordObjectType, type RecordObject, decodeRecordObject, RecordIndexObjectType, type RecordIndexObject, decodeRecordIndexObject, RecordIndexFormType, type RecordIndexForm, RecordSummaryTotalsType, type RecordSummaryTotals, RecordLevelType, type RecordLevel, RecordRollupType, type RecordRollup, RecordNestedRunType, type RecordNestedRun, RecordNestedPathType, type RecordNestedPath, NestedIdType, NestedPathType, NestedItemType, nestedIdCase, nestedPathCases, nestedPathValue, NestedEntryKeyType, NestedSpanKeyType, nestedSpanName, entriesRowsName, RecordNestedTotalsType, type RecordNestedTotals, NestedEntryType, RecordNestedDeclType, type RecordNestedDecl, RecordSummaryOpType, type RecordSummaryOp, RECORD_STATE_KIND, RecordStateType, type RecordState, isRecordStateType, indexCollectionType, indexWindowType, datasetRowsType, decodeRecordCommit, decodeMutationObject, MutationFormType, type MutationForm, MigrationObjectType, type MigrationObject, decodeMigrationObject, MigrationFormType, type MigrationForm, DELTA_CONFLICT, patchOpsType, mutationDeltaType, editTypeOf, type DeltaTarget, } from './record.js';
32
33
  export { PackageDataType, type PackageData, PackageObjectType, type PackageObject, DatasetSourceWireType, type DatasetSourceWire, decodePackageObject, PackageTransferInitRequestType, type PackageTransferInitRequest, PackageTransferInitResponseType, type PackageTransferInitResponse, PackageJobResponseType, type PackageJobResponse, PackageImportResultType, type PackageImportResult, PackageExportResultType, type PackageExportResult, PackageImportProgressType, type PackageImportProgress, PackageImportStatusType, type PackageImportStatus, PackageExportProgressType, type PackageExportProgress, PackageExportStatusType, type PackageExportStatus, } from './package.js';
33
34
  export { WorkspaceStateType, type WorkspaceState, WorkspaceRecordType, type WorkspaceRecord, } from './workspace.js';
34
35
  export { WorkspaceBundleHeadType, type WorkspaceBundleHead, WorkspaceBundleEntryType, type WorkspaceBundleEntry, WorkspaceBundleType, type WorkspaceBundle, } from './bundle.js';
@@ -44,7 +45,7 @@ export { COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEnt
44
45
  export { checkDatasetType, datasetAddress, type DatasetTypeMismatch, } from './dataset-type.js';
45
46
  export { BEAST2_CONTENT_TYPE } from './constants.js';
46
47
  export { decodeBeast2Request, beast2Success, beast2Error, type Beast2AnswerOptions } from './beast2-http.js';
47
- export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, BundleInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, DatasetTypeMismatchErrorType, InvalidNameErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, RepositoryRemovalType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceCopyRequestType, WorkspaceInfoType, SchemaPolicyType, InputPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, InputPlanType, RecordDeployStepType, RecordDeployStateType, DeployProgressType, WorkspaceDeployResultType, WorkspaceDeployProgressType, WorkspaceDeployStatusType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, LogChunkType, TaskLogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType, DATAFLOW_POLL_EVENTS_MAX, ExecutionHistoryStatusType, ExecutionListItemType, TASK_EXECUTIONS_PAGE_DEFAULT, TASK_EXECUTIONS_PAGE_MAX, TreeKindType, ListEntryType, DatasetStatusDetailType, ExecuteLimitsType, DiagnosticType, ExecuteResultType, CallArgType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType, FunctionCallStateType, FunctionCallArgType, FunctionCallSummaryType, FunctionCallType, FunctionCallStatusType, FunctionCallAnswerType, FunctionCallPageType, FUNCTION_CALLS_PAGE_DEFAULT, FUNCTION_CALLS_PAGE_MAX, SplitCallReportType, MutationCallRequestType, MutationResultType, RecordMigrationAppliedType, RecordSignatureType, RecordCommitInfoType, RecordArgPreviewType, RecordCommitArgsType, RecordHistoryCommitType, RecordHistoryResultType, RECORD_ARG_TEXT_CHARS, RECORD_ARG_TEXT_BYTES, RECORD_ARGS_READ_BYTES, type Error, type RepositoryStatus, type GcRequest, type GcResult, type AsyncOperationStatus, type GcStartResult, type GcStatusResult, type RepositoryRemoval, type PackageListItem, type PackageInfo, type PackageDetails, type WorkspaceInfo, type WorkspaceCreateRequest, type WorkspaceCopyRequest, type WorkspaceDeployRequest, type SchemaPolicy, type InputPolicy, type RecordPlan, type RecordIndexPlan, type InputPlan, type RecordDeployStep, type RecordDeployState, type DeployProgress, type WorkspaceDeployResult, type WorkspaceDeployProgress, type WorkspaceDeployStatus, type DatasetStatus, type TaskStatus as ApiTaskStatus, type DatasetStatusInfo, type TaskStatusInfo, type WorkspaceStatusSummary, type WorkspaceStatusResult, type TaskListItem, type TaskDetails, type DataflowRequest, type LogChunk, type TaskLogChunk, type TaskExecutionResult, type DataflowResult, type DataflowEvent, type ApiExecutionStatus, type DataflowExecutionSummary, type DataflowBudget, type UnitWait, type SplitProgress, type ApiDataflowExecutionState, type ExecutionHistoryStatus, type ExecutionListItem, type TreeKind, type ListEntry, type DatasetStatusDetail, type ExecuteLimits, type Diagnostic, type ExecuteResult, type CallArg, type FunctionCallRequest, type FunctionSignature, type OneShotRequest, type SplitCallArg, type SplitCallRequest, type SplitCallProgress, type SplitCallStatus, type SplitCallPlan, type FunctionCallState, type FunctionCallArg, type FunctionCallSummary, type FunctionCall, type FunctionCallStatus, type FunctionCallAnswer, type FunctionCallPage, type SplitCallReport, type MutationCallRequest, type MutationResult, type RecordMigrationApplied, type RecordSignature, type RecordCommitInfo, type RecordArgPreview, type RecordCommitArgs, type RecordHistoryCommit, type RecordHistoryResult, } from './api.js';
48
+ export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, BundleInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, DatasetTypeMismatchErrorType, InvalidNameErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, RepositoryRemovalType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceCopyRequestType, WorkspaceInfoType, SchemaPolicyType, InputPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, InputPlanType, RecordDeployStepType, RecordDeployStateType, DeployProgressType, WorkspaceDeployResultType, WorkspaceDeployProgressType, WorkspaceDeployStatusType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, LogChunkType, TaskLogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType, DATAFLOW_POLL_EVENTS_MAX, ExecutionHistoryStatusType, ExecutionListItemType, TASK_EXECUTIONS_PAGE_DEFAULT, TASK_EXECUTIONS_PAGE_MAX, TreeKindType, ListEntryType, DatasetStatusDetailType, ExecuteLimitsType, DiagnosticType, ExecuteResultType, InputReadType, CallArgType, FunctionDraftType, FunctionDraftConflictType, FunctionDraftedType, FunctionDraftFailureType, FunctionDraftEndType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType, FunctionCallStateType, FunctionCallArgType, FunctionCallDraftType, FunctionCallSummaryType, FunctionCallType, FunctionCallStatusType, FunctionCallAnswerType, FunctionCallPageType, FUNCTION_CALLS_PAGE_DEFAULT, FUNCTION_CALLS_PAGE_MAX, SplitCallReportType, MutationCallRequestType, MutationResultType, RecordMigrationAppliedType, RecordSignatureType, RecordCommitInfoType, RecordArgPreviewType, RecordCommitArgsType, RecordHistoryCommitType, RecordHistoryResultType, RECORD_ARG_TEXT_CHARS, RECORD_ARG_TEXT_BYTES, RECORD_ARGS_READ_BYTES, type Error, type RepositoryStatus, type GcRequest, type GcResult, type AsyncOperationStatus, type GcStartResult, type GcStatusResult, type RepositoryRemoval, type PackageListItem, type PackageInfo, type PackageDetails, type WorkspaceInfo, type WorkspaceCreateRequest, type WorkspaceCopyRequest, type WorkspaceDeployRequest, type SchemaPolicy, type InputPolicy, type RecordPlan, type RecordIndexPlan, type InputPlan, type RecordDeployStep, type RecordDeployState, type DeployProgress, type WorkspaceDeployResult, type WorkspaceDeployProgress, type WorkspaceDeployStatus, type DatasetStatus, type TaskStatus as ApiTaskStatus, type DatasetStatusInfo, type TaskStatusInfo, type WorkspaceStatusSummary, type WorkspaceStatusResult, type TaskListItem, type TaskDetails, type DataflowRequest, type LogChunk, type TaskLogChunk, type TaskExecutionResult, type DataflowResult, type DataflowEvent, type ApiExecutionStatus, type DataflowExecutionSummary, type DataflowBudget, type UnitWait, type SplitProgress, type ApiDataflowExecutionState, type ExecutionHistoryStatus, type ExecutionListItem, type TreeKind, type ListEntry, type DatasetStatusDetail, type ExecuteLimits, type Diagnostic, type ExecuteResult, type InputRead, type CallArg, type FunctionDraft, type FunctionDraftConflict, type FunctionDrafted, type FunctionDraftFailure, type FunctionDraftEnd, type FunctionCallRequest, type FunctionSignature, type OneShotRequest, type SplitCallArg, type SplitCallRequest, type SplitCallProgress, type SplitCallStatus, type SplitCallPlan, type FunctionCallState, type FunctionCallArg, type FunctionCallDraft, type FunctionCallSummary, type FunctionCall, type FunctionCallStatus, type FunctionCallAnswer, type FunctionCallPage, type SplitCallReport, type MutationCallRequest, type MutationResult, type RecordMigrationApplied, type RecordSignature, type RecordCommitInfo, type RecordArgPreview, type RecordCommitArgs, type RecordHistoryCommit, type RecordHistoryResult, } from './api.js';
48
49
  export { type DataflowExecutionStatus, type TaskStatus, TaskStateType, type TaskState, DataflowGraphTaskType, type DataflowGraphTask, DataflowGraphType, type DataflowGraph, StageUnitType, type StageUnit, RequeueReasonType, type RequeueReason, ExecutionEventType, type ExecutionEvent, type PartitionProgress, DataflowForceType, type DataflowForce, dataflowForce, dataflowForceOption, DataflowExecutionStateType, type DataflowExecutionState, decodeDataflowExecutionState, ExecutionStateSummaryType, type ExecutionStateSummary, executionStateSummary, waitingTaskCount, lastEventSeq, DataflowRunStatusType, type DataflowRunStatus, TaskExecutionRecordType, type TaskExecutionRecord, DataflowRunSummaryType, type DataflowRunSummary, DataflowRunType, type DataflowRun, } from './dataflow.js';
49
50
  export { PIECE_SIZES, pieceSizesFor, type PieceSizes } from './pieces.js';
50
51
  export { UNIT_PLAN_KIND, UnitPlanGroupType, type UnitPlanGroup, UnitPlanStageType, type UnitPlanStage, UnitPlanType, type UnitPlan, encodeUnitPlan, decodeUnitPlan, } from './unit-plan.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EACL,WAAW,EACX,KAAK,OAAO,EACZ,aAAa,EACb,OAAO,EACP,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,KAAK,UAAU,EACf,gBAAgB,EAChB,YAAY,EACZ,KAAK,QAAQ,EACb,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,cAAc,EACnB,cAAc,EACd,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,YAAY,EACjB,YAAY,EACZ,KAAK,QAAQ,GACd,MAAM,WAAW,CAAC;AAG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AGlB,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,aAAa,EACb,KAAK,SAAS,EACd,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,SAAS,EACd,iBAAiB,EACjB,KAAK,aAAa,EAClB,kBAAkB,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,KAAK,aAAa,EAClB,aAAa,EACb,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EAEZ,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG1E,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,aAAa,EAClB,iBAAiB,EACjB,KAAK,aAAa,EAClB,YAAY,EACZ,KAAK,QAAQ,EACb,cAAc,EACd,cAAc,GACf,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EACL,WAAW,EACX,KAAK,OAAO,EACZ,aAAa,EACb,OAAO,EACP,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,KAAK,UAAU,EACf,gBAAgB,EA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