@elaraai/e3-types 1.0.84 → 1.0.85
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 +523 -17
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +208 -22
- package/dist/src/api.js.map +1 -1
- package/dist/src/dataflow.d.ts +115 -12
- package/dist/src/dataflow.d.ts.map +1 -1
- package/dist/src/dataflow.js +151 -15
- package/dist/src/dataflow.js.map +1 -1
- package/dist/src/dataflow.spec.js +41 -7
- package/dist/src/dataflow.spec.js.map +1 -1
- package/dist/src/dataset-blob.d.ts +19 -2
- package/dist/src/dataset-blob.d.ts.map +1 -1
- package/dist/src/dataset-blob.js +100 -21
- package/dist/src/dataset-blob.js.map +1 -1
- package/dist/src/dataset-blob.spec.js +132 -0
- package/dist/src/dataset-blob.spec.js.map +1 -1
- package/dist/src/execution.d.ts +68 -8
- package/dist/src/execution.d.ts.map +1 -1
- package/dist/src/execution.js +49 -8
- package/dist/src/execution.js.map +1 -1
- package/dist/src/execution.spec.js +31 -9
- package/dist/src/execution.spec.js.map +1 -1
- package/dist/src/index.d.ts +8 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +14 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/names.d.ts +9 -0
- package/dist/src/names.d.ts.map +1 -1
- package/dist/src/names.js.map +1 -1
- package/dist/src/pieces.d.ts +47 -0
- package/dist/src/pieces.d.ts.map +1 -0
- package/dist/src/pieces.js +17 -0
- package/dist/src/pieces.js.map +1 -0
- package/dist/src/pieces.spec.d.ts +6 -0
- package/dist/src/pieces.spec.d.ts.map +1 -0
- package/dist/src/pieces.spec.js +20 -0
- package/dist/src/pieces.spec.js.map +1 -0
- package/dist/src/release.d.ts +1 -1
- package/dist/src/release.js +1 -1
- package/dist/src/repository.d.ts +16 -0
- package/dist/src/repository.d.ts.map +1 -1
- package/dist/src/repository.js +15 -0
- package/dist/src/repository.js.map +1 -1
- package/dist/src/structure.d.ts +27 -0
- package/dist/src/structure.d.ts.map +1 -1
- package/dist/src/structure.js +59 -18
- package/dist/src/structure.js.map +1 -1
- package/dist/src/structure.spec.d.ts +6 -0
- package/dist/src/structure.spec.d.ts.map +1 -0
- package/dist/src/structure.spec.js +57 -0
- package/dist/src/structure.spec.js.map +1 -0
- package/package.json +3 -2
- package/src/api.ts +225 -21
- package/src/dataflow.spec.ts +49 -7
- package/src/dataflow.ts +160 -14
- package/src/dataset-blob.spec.ts +147 -0
- package/src/dataset-blob.ts +97 -20
- package/src/execution.spec.ts +31 -9
- package/src/execution.ts +52 -7
- package/src/index.ts +38 -2
- package/src/names.ts +12 -0
- package/src/pieces.spec.ts +23 -0
- package/src/pieces.ts +49 -0
- package/src/release.ts +1 -1
- package/src/repository.ts +18 -0
- package/src/structure.spec.ts +65 -0
- package/src/structure.ts +64 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.js","sourceRoot":"","sources":["../../src/execution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,YAAY,
|
|
1
|
+
{"version":3,"file":"execution.js","sourceRoot":"","sources":["../../src/execution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EAER,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,WAAW,CAAC;QAChB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,QAAQ;QACjB,UAAU,EAAE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
/**
|
|
6
6
|
* Execution status wire: the typed outcomes with their peaks, a split task's
|
|
7
|
-
* plan
|
|
8
|
-
* refusal of a record an older e3 wrote before
|
|
9
|
-
* were cases of it, before a runner's peak was
|
|
10
|
-
* plan was,
|
|
7
|
+
* plan, whether the execution is a unit and why a stopped one stopped, what
|
|
8
|
+
* each keeps from gc, and the refusal of a record an older e3 wrote before
|
|
9
|
+
* `cancelled` and `interrupted` were cases of it, before a runner's peak was
|
|
10
|
+
* recorded, before a split task's plan was, before a record said whether it
|
|
11
|
+
* is a unit, or before a stopped one said why.
|
|
11
12
|
*/
|
|
12
13
|
import { describe, it } from 'node:test';
|
|
13
14
|
import assert from 'node:assert/strict';
|
|
14
|
-
import { ArrayType, DateTimeType, IntegerType, OptionType, StringType, StructType, VariantType, encodeBeast2For, none, some, variant } from '@elaraai/east';
|
|
15
|
+
import { ArrayType, BooleanType, DateTimeType, IntegerType, OptionType, StringType, StructType, VariantType, encodeBeast2For, none, some, variant } from '@elaraai/east';
|
|
15
16
|
import { ExecutionStatusType, decodeExecutionStatus, executionStatusRoots } from './execution.js';
|
|
16
17
|
/** The four-case wire every record had before the typed outcomes. */
|
|
17
18
|
const PreOutcomeExecutionStatusType = VariantType({
|
|
@@ -40,7 +41,7 @@ describe('ExecutionStatusType', () => {
|
|
|
40
41
|
completedAt: new Date(2000),
|
|
41
42
|
};
|
|
42
43
|
const encodeOlder = encodeBeast2For(PreOutcomeExecutionStatusType);
|
|
43
|
-
it('round-trips the typed outcomes, with a runner\'s peak or without one, a task\'s own or a unit\'s', () => {
|
|
44
|
+
it('round-trips the typed outcomes, with a runner\'s peak or without one, a task\'s own or a unit\'s, and why a stopped one stopped', () => {
|
|
44
45
|
const own = { ...stopped, unit: false };
|
|
45
46
|
const statuses = [
|
|
46
47
|
variant('success', { ...own, outputHash: 'b'.repeat(64), peakBytes: some(96n * 1024n ** 2n), plan: none }),
|
|
@@ -49,8 +50,11 @@ describe('ExecutionStatusType', () => {
|
|
|
49
50
|
variant('running', { executionId: '0199-b', inputHashes: ['a'.repeat(64)], startedAt: new Date(1000), pid: 4242n, pidStartTime: 7n, bootId: 'boot', unit: true }),
|
|
50
51
|
variant('failed', { ...own, exitCode: 1n, peakBytes: some(412n * 1024n ** 2n) }),
|
|
51
52
|
variant('failed', { ...own, exitCode: -1n, peakBytes: none }),
|
|
52
|
-
variant('cancelled', own),
|
|
53
|
-
variant('interrupted', { ...own, pid: 4242n }),
|
|
53
|
+
variant('cancelled', { ...own, reason: { kind: variant('aborted', null), message: 'cancelled: e3 stopped the runner because the run was aborted' } }),
|
|
54
|
+
variant('interrupted', { ...own, pid: 4242n, reason: { kind: variant('owner_gone', null), message: 'its runner and its owner are gone' } }),
|
|
55
|
+
variant('interrupted', { ...own, pid: 0n, unit: true, reason: { kind: variant('yielded', null), message: 'its run yielded' } }),
|
|
56
|
+
variant('interrupted', { ...own, pid: 0n, reason: { kind: variant('host', 'OutOfMemoryError'), message: 'its container ran out of memory' } }),
|
|
57
|
+
variant('interrupted', { ...own, pid: 0n, reason: { kind: variant('unrecorded', null), message: '' } }),
|
|
54
58
|
variant('error', { ...own, message: 'Failed to read output: no such file' }),
|
|
55
59
|
];
|
|
56
60
|
const encode = encodeBeast2For(ExecutionStatusType);
|
|
@@ -62,7 +66,7 @@ describe('ExecutionStatusType', () => {
|
|
|
62
66
|
assert.deepEqual(executionStatusRoots(variant('success', { ...success, plan: none })), ['b'.repeat(64)]);
|
|
63
67
|
assert.deepEqual(executionStatusRoots(variant('success', { ...success, plan: some('c'.repeat(64)) })), ['b'.repeat(64), 'c'.repeat(64)]);
|
|
64
68
|
assert.deepEqual(executionStatusRoots(variant('failed', { ...stopped, exitCode: 1n, peakBytes: none, unit: false })), []);
|
|
65
|
-
assert.deepEqual(executionStatusRoots(variant('cancelled', { ...stopped, unit: false })), []);
|
|
69
|
+
assert.deepEqual(executionStatusRoots(variant('cancelled', { ...stopped, unit: false, reason: { kind: variant('aborted', null), message: '' } })), []);
|
|
66
70
|
});
|
|
67
71
|
it('keeps from gc the inputs a running attempt reads, passing over a merge\'s tag', () => {
|
|
68
72
|
const running = { executionId: '0199-c', startedAt: new Date(1000), pid: 4242n, pidStartTime: 7n, bootId: 'boot' };
|
|
@@ -105,6 +109,24 @@ describe('ExecutionStatusType', () => {
|
|
|
105
109
|
}),
|
|
106
110
|
});
|
|
107
111
|
assert.throws(() => decodeExecutionStatus(encodeBeast2For(withoutUnits)(variant('success', { ...stopped, outputHash: 'b'.repeat(64), peakBytes: none, plan: none }))), refusal);
|
|
112
|
+
// With units, before a stopped record said why it stopped: only the
|
|
113
|
+
// repository upgrade that carries such a record forward reads it, and every
|
|
114
|
+
// case of it is refused, since its type names the cases that changed.
|
|
115
|
+
const withoutReasons = VariantType({
|
|
116
|
+
...ExecutionStatusType.cases,
|
|
117
|
+
cancelled: StructType({ executionId: StringType, inputHashes: ArrayType(StringType), startedAt: DateTimeType, completedAt: DateTimeType, unit: BooleanType }),
|
|
118
|
+
interrupted: StructType({
|
|
119
|
+
executionId: StringType, inputHashes: ArrayType(StringType), startedAt: DateTimeType, completedAt: DateTimeType, pid: IntegerType, unit: BooleanType,
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
122
|
+
const own = { ...stopped, unit: false };
|
|
123
|
+
for (const record of [
|
|
124
|
+
variant('cancelled', own),
|
|
125
|
+
variant('interrupted', { ...own, pid: 4242n }),
|
|
126
|
+
variant('success', { ...own, outputHash: 'b'.repeat(64), peakBytes: none, plan: none }),
|
|
127
|
+
]) {
|
|
128
|
+
assert.throws(() => decodeExecutionStatus(encodeBeast2For(withoutReasons)(record)), refusal);
|
|
129
|
+
}
|
|
108
130
|
});
|
|
109
131
|
it('throws for bytes of no status shape', () => {
|
|
110
132
|
assert.throws(() => decodeExecutionStatus(encodeBeast2For(IntegerType)(7n)), /the execution status does not decode/);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.spec.js","sourceRoot":"","sources":["../../src/execution.spec.ts"],"names":[],"mapp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7C,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,sCAAsC,CAAC,CAAC;IACvH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -24,24 +24,25 @@ export { DataRefType, type DataRef, unassignedRef, nullRef, DataTreeType, } from
|
|
|
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
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, parseDatasetPath, parsePackageRef, urlPathToTreePath, } from './structure.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';
|
|
28
28
|
export { RunnerType, type RunnerValue, withRunnerLifeline, } from './runner.js';
|
|
29
29
|
export { FunctionObjectType, type FunctionObject, decodeFunctionObject, } from './function.js';
|
|
30
30
|
export { RecordCommitType, type RecordCommit, MutationObjectType, type MutationObject, RecordObjectType, type RecordObject, decodeRecordObject, RecordIndexObjectType, type RecordIndexObject, decodeRecordIndexObject, RECORD_STATE_KIND, RecordStateType, type RecordState, isRecordStateType, indexCollectionType, indexWindowType, decodeRecordCommit, decodeMutationObject, MutationFormType, type MutationForm, MigrationObjectType, type MigrationObject, decodeMigrationObject, MigrationFormType, type MigrationForm, DELTA_CONFLICT, patchOpsType, mutationDeltaType, editTypeOf, type DeltaTarget, } from './record.js';
|
|
31
31
|
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';
|
|
32
32
|
export { WorkspaceStateType, type WorkspaceState, WorkspaceRecordType, type WorkspaceRecord, } from './workspace.js';
|
|
33
|
-
export { ExecutionStatusType, type ExecutionStatus, decodeExecutionStatus, executionStatusRoots, ExecutionOwnerType, type ExecutionOwner, } from './execution.js';
|
|
33
|
+
export { StopReasonType, type StopReason, ExecutionStatusType, type ExecutionStatus, decodeExecutionStatus, executionStatusRoots, ExecutionOwnerType, type ExecutionOwner, } from './execution.js';
|
|
34
34
|
export { LockOperationType, type LockOperation, ProcessHolderType, type ProcessHolder, LambdaHolderType, type LambdaHolder, LockHolderVariantType, type LockHolderVariant, LockStateType, type LockState, LockProgressType, type LockProgress, LockStatusType, type LockStatus, } from './lock.js';
|
|
35
35
|
export { IntakeStepType, type IntakeStep, IntakeFileType, type IntakeFile, } from './intake.js';
|
|
36
|
-
export { RepositoryRecordType, type RepositoryRecord, RepoStatusType, type RepoStatus, RepoMetadataType, type RepoMetadata, } from './repository.js';
|
|
36
|
+
export { RepositoryRecordType, type RepositoryRecord, RepositoryUpgradeProgressType, type RepositoryUpgradeProgress, RepoStatusType, type RepoStatus, RepoMetadataType, type RepoMetadata, } from './repository.js';
|
|
37
37
|
export { E3_RELEASE, compareReleases } from './release.js';
|
|
38
|
-
export { type NamedKind, nameProblem } from './names.js';
|
|
38
|
+
export { type NamedKind, type HashKind, type IdKind, type IdentifierKind, nameProblem } from './names.js';
|
|
39
39
|
export { TRANSFER_PROTOCOL_VERSION, transferPartCount, transferPartRange, TransferUploadRequestType, type TransferUploadRequest, TransferUploadResponseType, type TransferUploadResponse, TransferPartResponseType, type TransferPartResponse, TransferDoneResponseType, type TransferDoneResponse, } from './transfer.js';
|
|
40
|
-
export { isCollectionRoot, encodeDatasetBlob, writeCollectionManifest, type CollectionSegmentRef, type CollectionPiece, type SegmentSink, } from './dataset-blob.js';
|
|
40
|
+
export { isCollectionRoot, encodeDatasetBlob, writeCollectionManifest, SEGMENT_WRITES_IN_FLIGHT, type CollectionSegmentRef, type CollectionPiece, type SegmentSink, } from './dataset-blob.js';
|
|
41
41
|
export { COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, type CollectionManifest, type CollectionManifestEntry, isCollectionManifestType, isCollectionManifest, encodeCollectionManifest, decodeCollectionManifest, manifestElementCount, manifestByteSize, } from './collection-manifest.js';
|
|
42
42
|
export { checkDatasetType, datasetAddress, type DatasetTypeMismatch, } from './dataset-type.js';
|
|
43
43
|
export { BEAST2_CONTENT_TYPE } from './constants.js';
|
|
44
|
-
export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, DatasetTypeMismatchErrorType, InvalidNameErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceInfoType, SchemaPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, RecordDeployStepType, RecordDeployStateType, DeployProgressType, WorkspaceDeployResultType, WorkspaceDeployProgressType, WorkspaceDeployStatusType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType, ExecutionHistoryStatusType, ExecutionListItemType, TreeKindType, ListEntryType, DatasetStatusDetailType, ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType, MutationCallRequestType, MutationResultType, RecordSignatureType, RecordCommitInfoType, RecordHistoryResultType, type Error, type RepositoryStatus, type GcRequest, type GcResult, type AsyncOperationStatus, type GcStartResult, type GcStatusResult, type PackageListItem, type PackageInfo, type PackageDetails, type WorkspaceInfo, type WorkspaceCreateRequest, type WorkspaceDeployRequest, type SchemaPolicy, type RecordPlan, type RecordIndexPlan, 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 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 FunctionCallRequest, type FunctionSignature, type OneShotRequest, type SplitCallArg, type SplitCallRequest, type SplitCallProgress, type SplitCallStatus, type SplitCallPlan, type MutationCallRequest, type MutationResult, type RecordSignature, type RecordCommitInfo, type RecordHistoryResult, } from './api.js';
|
|
45
|
-
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, DataflowExecutionStateType, type DataflowExecutionState, decodeDataflowExecutionState, DataflowRunStatusType, type DataflowRunStatus, TaskExecutionRecordType, type TaskExecutionRecord, DataflowRunSummaryType, type DataflowRunSummary, DataflowRunType, type DataflowRun, } from './dataflow.js';
|
|
44
|
+
export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, DatasetTypeMismatchErrorType, InvalidNameErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceInfoType, SchemaPolicyType, WorkspaceDeployRequestType, RecordPlanType, RecordIndexPlanType, 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, 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 PackageListItem, type PackageInfo, type PackageDetails, type WorkspaceInfo, type WorkspaceCreateRequest, type WorkspaceDeployRequest, type SchemaPolicy, type RecordPlan, type RecordIndexPlan, 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 MutationCallRequest, type MutationResult, type RecordMigrationApplied, type RecordSignature, type RecordCommitInfo, type RecordArgPreview, type RecordCommitArgs, type RecordHistoryCommit, type RecordHistoryResult, } from './api.js';
|
|
45
|
+
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, lastEventSeq, DataflowRunStatusType, type DataflowRunStatus, TaskExecutionRecordType, type TaskExecutionRecord, DataflowRunSummaryType, type DataflowRunSummary, DataflowRunType, type DataflowRun, } from './dataflow.js';
|
|
46
|
+
export { PIECE_SIZES, type PieceSizes } from './pieces.js';
|
|
46
47
|
export { UNIT_PLAN_KIND, UnitPlanGroupType, type UnitPlanGroup, UnitPlanStageType, type UnitPlanStage, UnitPlanType, type UnitPlan, encodeUnitPlan, decodeUnitPlan, } from './unit-plan.js';
|
|
47
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH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EACjB,KAAK,aAAa,EAClB,gBAAgB,EAChB,KAAK,YAAY,EACjB,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,aAAa,EACb,KAAK,SAAS,EACd,gBAAgB,EAChB,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,cAAc,EACd,KAAK,UAAU,EACf,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,cAAc,EACd,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,YAAY,GAClB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG3D,OAAO,EAAE,KAAK,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,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,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;AAGnB,OAAO,EACL,mBAAmB,EACnB,KAAK,eAAe,EACpB,qBAAq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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,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,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG3D,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"}
|
package/dist/src/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { TASK_OBJECT_KIND, TaskObjectType, decodeTaskObject, TaskBodyType, TaskP
|
|
|
29
29
|
// Execution environments
|
|
30
30
|
export { EnvironmentSpecType, PythonEnvironmentType, NodeEnvironmentType, ImageEnvironmentType, ToolsEnvironmentType, WorkspaceNodeEnvironmentType, environmentSpecObjectHashes, } from './environment.js';
|
|
31
31
|
// Data structure and paths
|
|
32
|
-
export { StructureType, PathSegmentType, TreePathType, treePath, pathToString, parsePath, parseDatasetPath, parsePackageRef, urlPathToTreePath, } from './structure.js';
|
|
32
|
+
export { StructureType, PathSegmentType, TreePathType, treePath, pathToString, parsePath, parseKeypath, parseDatasetPath, parsePackageRef, urlPathToTreePath, } from './structure.js';
|
|
33
33
|
// Runner wire types
|
|
34
34
|
export { RunnerType, withRunnerLifeline, } from './runner.js';
|
|
35
35
|
// Function objects
|
|
@@ -43,23 +43,23 @@ PackageTransferInitRequestType, PackageTransferInitResponseType, PackageJobRespo
|
|
|
43
43
|
// Workspace state
|
|
44
44
|
export { WorkspaceStateType, WorkspaceRecordType, } from './workspace.js';
|
|
45
45
|
// Execution status
|
|
46
|
-
export { ExecutionStatusType, decodeExecutionStatus, executionStatusRoots, ExecutionOwnerType, } from './execution.js';
|
|
46
|
+
export { StopReasonType, ExecutionStatusType, decodeExecutionStatus, executionStatusRoots, ExecutionOwnerType, } from './execution.js';
|
|
47
47
|
// Lock state
|
|
48
48
|
export { LockOperationType, ProcessHolderType, LambdaHolderType, LockHolderVariantType, LockStateType, LockProgressType, LockStatusType, } from './lock.js';
|
|
49
49
|
// How far a file being taken into the store has got: a deploy's file source,
|
|
50
50
|
// or an upload's delivery as its commit takes it in
|
|
51
51
|
export { IntakeStepType, IntakeFileType, } from './intake.js';
|
|
52
52
|
// The repository's own records
|
|
53
|
-
export { RepositoryRecordType, RepoStatusType, RepoMetadataType, } from './repository.js';
|
|
53
|
+
export { RepositoryRecordType, RepositoryUpgradeProgressType, RepoStatusType, RepoMetadataType, } from './repository.js';
|
|
54
54
|
// The release of e3 this build is, which what it keeps and ships records
|
|
55
55
|
export { E3_RELEASE, compareReleases } from './release.js';
|
|
56
|
-
// The names e3 makes paths of
|
|
56
|
+
// The names e3 makes paths of, and the hashes and ids
|
|
57
57
|
export { nameProblem } from './names.js';
|
|
58
58
|
// Dataset transfer types
|
|
59
59
|
export { TRANSFER_PROTOCOL_VERSION, transferPartCount, transferPartRange, TransferUploadRequestType, TransferUploadResponseType, TransferPartResponseType, TransferDoneResponseType, } from './transfer.js';
|
|
60
60
|
// Dataset blob encoding — the ONE branch deciding segmentation, shared by the
|
|
61
61
|
// store's door (e3-core `storeCollection`) and the package export (e3 `export_`)
|
|
62
|
-
export { isCollectionRoot, encodeDatasetBlob, writeCollectionManifest, } from './dataset-blob.js';
|
|
62
|
+
export { isCollectionRoot, encodeDatasetBlob, writeCollectionManifest, SEGMENT_WRITES_IN_FLIGHT, } from './dataset-blob.js';
|
|
63
63
|
// The segment-object layout: a collection dataset is a manifest naming
|
|
64
64
|
// standalone segment objects, and the manifest is what the ref points at
|
|
65
65
|
export { COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEntryType, isCollectionManifestType, isCollectionManifest, encodeCollectionManifest, decodeCollectionManifest, manifestElementCount, manifestByteSize, } from './collection-manifest.js';
|
|
@@ -83,23 +83,26 @@ DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInPr
|
|
|
83
83
|
// Tasks
|
|
84
84
|
TaskListItemType, TaskDetailsType,
|
|
85
85
|
// Execution
|
|
86
|
-
DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType,
|
|
86
|
+
DataflowRequestType, LogChunkType, TaskLogChunkType, TaskExecutionResultType, DataflowResultType,
|
|
87
87
|
// Dataflow API polling
|
|
88
|
-
DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType,
|
|
88
|
+
DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, DataflowBudgetType, UnitWaitType, SplitProgressType, ApiDataflowExecutionStateType, DATAFLOW_POLL_EVENTS_MAX,
|
|
89
89
|
// Task Execution History
|
|
90
|
-
ExecutionHistoryStatusType, ExecutionListItemType,
|
|
90
|
+
ExecutionHistoryStatusType, ExecutionListItemType, TASK_EXECUTIONS_PAGE_DEFAULT, TASK_EXECUTIONS_PAGE_MAX,
|
|
91
91
|
// Dataset List
|
|
92
92
|
TreeKindType, ListEntryType,
|
|
93
93
|
// Dataset Status Detail
|
|
94
94
|
DatasetStatusDetailType,
|
|
95
95
|
// Function / one-shot execution
|
|
96
|
-
ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType,
|
|
96
|
+
ExecuteLimitsType, DiagnosticType, ExecuteResultType, CallArgType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType,
|
|
97
97
|
// Split calls
|
|
98
|
-
SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType, MutationCallRequestType, MutationResultType, RecordSignatureType, RecordCommitInfoType, RecordHistoryResultType, } from './api.js';
|
|
98
|
+
SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType, MutationCallRequestType, MutationResultType, RecordMigrationAppliedType, RecordSignatureType, RecordCommitInfoType, RecordArgPreviewType, RecordCommitArgsType, RecordHistoryCommitType, RecordHistoryResultType, RECORD_ARG_TEXT_CHARS, RECORD_ARG_TEXT_BYTES, RECORD_ARGS_READ_BYTES, } from './api.js';
|
|
99
99
|
// Dataflow execution state
|
|
100
|
-
export { TaskStateType, DataflowGraphTaskType, DataflowGraphType, StageUnitType, RequeueReasonType, ExecutionEventType, DataflowExecutionStateType, decodeDataflowExecutionState,
|
|
100
|
+
export { TaskStateType, DataflowGraphTaskType, DataflowGraphType, StageUnitType, RequeueReasonType, ExecutionEventType, DataflowForceType, dataflowForce, dataflowForceOption, DataflowExecutionStateType, decodeDataflowExecutionState, ExecutionStateSummaryType, executionStateSummary, lastEventSeq,
|
|
101
101
|
// Dataflow run history
|
|
102
102
|
DataflowRunStatusType, TaskExecutionRecordType, DataflowRunSummaryType, DataflowRunType, } from './dataflow.js';
|
|
103
|
+
// The sizes e3 cuts a split task's input into pieces at, which a caller
|
|
104
|
+
// planning a split call weighs a dataset against
|
|
105
|
+
export { PIECE_SIZES } from './pieces.js';
|
|
103
106
|
// A split task's unit graph, a stage at a time
|
|
104
107
|
export { UNIT_PLAN_KIND, UnitPlanGroupType, UnitPlanStageType, UnitPlanType, encodeUnitPlan, decodeUnitPlan, } from './unit-plan.js';
|
|
105
108
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@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AAY,EACZ,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB;AACxB,yBAAyB;AACzB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB;AACxB,eAAe;AACf,YAAY,EACZ,aAAa;AACb,wBAAwB;AACxB,uBAAuB;AACvB,gCAAgC;AAChC,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB;AAClB,cAAc;AACd,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GAsEvB,MAAM,UAAU,CAAC;AAElB,2BAA2B;AAC3B,OAAO,EAGL,aAAa,EAEb,qBAAqB,EAErB,iBAAiB,EAEjB,aAAa,EAEb,iBAAiB,EAEjB,kBAAkB,EAGlB,iBAAiB,EAEjB,aAAa,EACb,mBAAmB,EACnB,0BAA0B,EAE1B,4BAA4B,EAC5B,yBAAyB,EAEzB,qBAAqB,EACrB,YAAY;AACZ,uBAAuB;AACvB,qBAAqB,EAErB,uBAAuB,EAEvB,sBAAsB,EAEtB,eAAe,GAEhB,MAAM,eAAe,CAAC;AAEvB,wEAAwE;AACxE,iDAAiD;AACjD,OAAO,EAAE,WAAW,EAAmB,MAAM,aAAa,CAAC;AAE3D,+CAA+C;AAC/C,OAAO,EACL,cAAc,EACd,iBAAiB,EAEjB,iBAAiB,EAEjB,YAAY,EAEZ,cAAc,EACd,cAAc,GACf,MAAM,gBAAgB,CAAC"}
|
package/dist/src/names.d.ts
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
/** What a name names. */
|
|
12
12
|
export type NamedKind = 'repository' | 'workspace' | 'package' | 'package version' | 'lock';
|
|
13
|
+
/** What a hash e3 makes a path or a key of names: an object, or an
|
|
14
|
+
* execution's task or inputs. */
|
|
15
|
+
export type HashKind = 'object hash' | 'task hash' | 'inputs hash';
|
|
16
|
+
/** What an id e3 makes a path or a key of names: an execution attempt, a
|
|
17
|
+
* dataflow run, or a gc run in steps. */
|
|
18
|
+
export type IdKind = 'execution id' | 'run id' | 'gc run id';
|
|
19
|
+
/** What a hash or an id e3 makes a path or a key of names: not a name, so
|
|
20
|
+
* checked for its form rather than by {@link nameProblem}. */
|
|
21
|
+
export type IdentifierKind = HashKind | IdKind;
|
|
13
22
|
/**
|
|
14
23
|
* Why a name cannot be one path segment, or `null` when it can.
|
|
15
24
|
*
|
package/dist/src/names.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,yBAAyB;AACzB,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,iBAAiB,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,yBAAyB;AACzB,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,iBAAiB,GAAG,MAAM,CAAC;AAE5F;kCACkC;AAClC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC;AAEnE;0CAC0C;AAC1C,MAAM,MAAM,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE7D;+DAC+D;AAC/D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC;AAU/C;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQxE"}
|
package/dist/src/names.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"names.js","sourceRoot":"","sources":["../../src/names.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"names.js","sourceRoot":"","sources":["../../src/names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwBH;uCACuC;AACvC,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAE5C;iCACiC;AACjC,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,IAAe,EAAE,IAAY;IACvD,IAAI,IAAI,KAAK,EAAE;QAAE,OAAO,UAAU,CAAC;IACnC,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,sBAAsB,CAAC;IACjE,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnC,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,SAAS,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC;IAC7F,MAAM,MAAM,GAAG,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7E,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,0CAA0C,CAAC;IACzG,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* The sizes e3 cuts a split task's input into pieces at.
|
|
7
|
+
*
|
|
8
|
+
* They live here, beside the wire types, so a caller that plans a split call
|
|
9
|
+
* in a browser — the query builder — weighs a dataset against the smallest
|
|
10
|
+
* piece e3 cuts without importing e3-core. e3-core's piece rule closes pieces
|
|
11
|
+
* at these sizes, and its `pieceSizes()` gives the sizes a process plans with:
|
|
12
|
+
* these, or the sizes a test sets.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The sizes the piece rule closes pieces at, in stored bytes: a piece closes
|
|
18
|
+
* only once it holds `min`, weighs its segments against `max` until it holds
|
|
19
|
+
* `target` and against `min` after, and always closes once it holds `max`.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* A dataset that weighs no more than `min` is one piece, which is why a
|
|
23
|
+
* caller compares a dataset's stored bytes with `min` to tell whether a split
|
|
24
|
+
* call would split it.
|
|
25
|
+
*/
|
|
26
|
+
export interface PieceSizes {
|
|
27
|
+
/** The least a piece holds, unless the input ends first. */
|
|
28
|
+
readonly min: number;
|
|
29
|
+
/** Where a piece starts closing readily: the pieces' middle size, which a
|
|
30
|
+
* merge range aims for too. */
|
|
31
|
+
readonly target: number;
|
|
32
|
+
/** The most a piece holds, but for the rest of a `by` group. */
|
|
33
|
+
readonly max: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The platform's piece sizes: 16, 64 and 256 MiB.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { PIECE_SIZES } from '@elaraai/e3-types';
|
|
41
|
+
*
|
|
42
|
+
* // A dataset within one piece is read in one call.
|
|
43
|
+
* const split = storedBytes > PIECE_SIZES.min;
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const PIECE_SIZES: PieceSizes;
|
|
47
|
+
//# sourceMappingURL=pieces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieces.d.ts","sourceRoot":"","sources":["../../src/pieces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;oCACgC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,UAA4E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
* The platform's piece sizes: 16, 64 and 256 MiB.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { PIECE_SIZES } from '@elaraai/e3-types';
|
|
11
|
+
*
|
|
12
|
+
* // A dataset within one piece is read in one call.
|
|
13
|
+
* const split = storedBytes > PIECE_SIZES.min;
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const PIECE_SIZES = { min: 16 * 2 ** 20, target: 64 * 2 ** 20, max: 256 * 2 ** 20 };
|
|
17
|
+
//# sourceMappingURL=pieces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieces.js","sourceRoot":"","sources":["../../src/pieces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkCH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAe,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieces.spec.d.ts","sourceRoot":"","sources":["../../src/pieces.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* The platform's piece sizes, which e3-core's piece rule closes pieces at and
|
|
7
|
+
* a caller planning a split call weighs a dataset against.
|
|
8
|
+
*/
|
|
9
|
+
import { describe, it } from 'node:test';
|
|
10
|
+
import assert from 'node:assert/strict';
|
|
11
|
+
import { PIECE_SIZES } from './index.js';
|
|
12
|
+
describe('PIECE_SIZES', () => {
|
|
13
|
+
it('is 16, 64 and 256 MiB, exported from the package', () => {
|
|
14
|
+
assert.deepEqual(PIECE_SIZES, { min: 16 * 2 ** 20, target: 64 * 2 ** 20, max: 256 * 2 ** 20 });
|
|
15
|
+
});
|
|
16
|
+
it('orders its sizes: the least a piece holds, its middle, and the most', () => {
|
|
17
|
+
assert.ok(PIECE_SIZES.min < PIECE_SIZES.target && PIECE_SIZES.target < PIECE_SIZES.max);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=pieces.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieces.spec.js","sourceRoot":"","sources":["../../src/pieces.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,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qEAAqE,EAAE,GAAG,EAAE;QAC7E,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,GAAG,WAAW,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAC1F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/src/release.d.ts
CHANGED
package/dist/src/release.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* release beside this one.
|
|
16
16
|
*/
|
|
17
17
|
/** The release of e3 this build is. */
|
|
18
|
-
export const E3_RELEASE = '1.0.
|
|
18
|
+
export const E3_RELEASE = '1.0.85';
|
|
19
19
|
/** A semantic version: its core, a pre-release, and build metadata. */
|
|
20
20
|
const RELEASE = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;
|
|
21
21
|
/**
|
package/dist/src/repository.d.ts
CHANGED
|
@@ -24,6 +24,22 @@ export declare const RepositoryRecordType: StructType<{
|
|
|
24
24
|
}>>;
|
|
25
25
|
}>;
|
|
26
26
|
export type RepositoryRecord = ValueTypeOf<typeof RepositoryRecordType>;
|
|
27
|
+
/**
|
|
28
|
+
* A store upgrade under way in a repository, kept beside the repository
|
|
29
|
+
* record: the step, the release of e3 applying it, and where its last part
|
|
30
|
+
* stopped. A step applies in parts, and the next part takes it up from here,
|
|
31
|
+
* in this process or another; the record lists the step only once it is done.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RepositoryUpgradeProgressType: StructType<{
|
|
34
|
+
/** The step's name */
|
|
35
|
+
readonly step: StringType;
|
|
36
|
+
/** The release of e3 applying it */
|
|
37
|
+
readonly release: StringType;
|
|
38
|
+
/** Where its last part stopped: the step's own cursor, which the next part
|
|
39
|
+
* takes it up from */
|
|
40
|
+
readonly cursor: StringType;
|
|
41
|
+
}>;
|
|
42
|
+
export type RepositoryUpgradeProgress = ValueTypeOf<typeof RepositoryUpgradeProgressType>;
|
|
27
43
|
/**
|
|
28
44
|
* Where a repository is in its lifecycle.
|
|
29
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/repository.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAC/B,mDAAmD;;IAEnD;4EACwE;;;;;EAExE,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,wBAAwB;;IAExB,oBAAoB;;IAEpB,sCAAsC;;IAEtC,oBAAoB;;EAEpB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,4BAA4B;;IAE5B,mCAAmC;;QAlBnC,wBAAwB;;QAExB,oBAAoB;;QAEpB,sCAAsC;;QAEtC,oBAAoB;;;IAcpB,0BAA0B;;IAE1B,mCAAmC;;EAEnC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/repository.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAC/B,mDAAmD;;IAEnD;4EACwE;;;;;EAExE,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;IACxC,sBAAsB;;IAEtB,oCAAoC;;IAEpC;2BACuB;;EAEvB,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE1F;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,wBAAwB;;IAExB,oBAAoB;;IAEpB,sCAAsC;;IAEtC,oBAAoB;;EAEpB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,4BAA4B;;IAE5B,mCAAmC;;QAlBnC,wBAAwB;;QAExB,oBAAoB;;QAEpB,sCAAsC;;QAEtC,oBAAoB;;;IAcpB,0BAA0B;;IAE1B,mCAAmC;;EAEnC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/src/repository.js
CHANGED
|
@@ -20,6 +20,21 @@ export const RepositoryRecordType = StructType({
|
|
|
20
20
|
* applied: each by its name, with the release of e3 that applied it */
|
|
21
21
|
upgrades: ArrayType(StructType({ name: StringType, release: StringType })),
|
|
22
22
|
});
|
|
23
|
+
/**
|
|
24
|
+
* A store upgrade under way in a repository, kept beside the repository
|
|
25
|
+
* record: the step, the release of e3 applying it, and where its last part
|
|
26
|
+
* stopped. A step applies in parts, and the next part takes it up from here,
|
|
27
|
+
* in this process or another; the record lists the step only once it is done.
|
|
28
|
+
*/
|
|
29
|
+
export const RepositoryUpgradeProgressType = StructType({
|
|
30
|
+
/** The step's name */
|
|
31
|
+
step: StringType,
|
|
32
|
+
/** The release of e3 applying it */
|
|
33
|
+
release: StringType,
|
|
34
|
+
/** Where its last part stopped: the step's own cursor, which the next part
|
|
35
|
+
* takes it up from */
|
|
36
|
+
cursor: StringType,
|
|
37
|
+
});
|
|
23
38
|
/**
|
|
24
39
|
* Where a repository is in its lifecycle.
|
|
25
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../src/repository.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,GAET,MAAM,eAAe,CAAC;AAEvB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,mDAAmD;IACnD,OAAO,EAAE,UAAU;IACnB;4EACwE;IACxE,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;CAC3E,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;IACxC,wBAAwB;IACxB,QAAQ,EAAE,QAAQ;IAClB,oBAAoB;IACpB,MAAM,EAAE,QAAQ;IAChB,sCAAsC;IACtC,EAAE,EAAE,QAAQ;IACZ,oBAAoB;IACpB,QAAQ,EAAE,QAAQ;CACnB,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;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AAS,EAAE,YAAY;IACvB,mCAAmC;IACnC,eAAe,EAAE,YAAY;CAC9B,CAAC,CAAC"}
|
package/dist/src/structure.d.ts
CHANGED
|
@@ -203,6 +203,33 @@ export interface ParsePathResult {
|
|
|
203
203
|
* ```
|
|
204
204
|
*/
|
|
205
205
|
export declare function parsePath(pathStr: string, structure: Structure): ParsePathResult;
|
|
206
|
+
/**
|
|
207
|
+
* Parses an East keypath string into a path, with no structure to check it
|
|
208
|
+
* against: the inverse of {@link pathToString}.
|
|
209
|
+
*
|
|
210
|
+
* @remarks
|
|
211
|
+
* The syntax is {@link parsePath}'s: `.field` for a simple identifier, and
|
|
212
|
+
* `` .`field` `` for one that needs quoting, with `` \` `` for a literal
|
|
213
|
+
* backtick and `\\` for a backslash. Whether the path names anything is the
|
|
214
|
+
* caller's to judge, as a status asked for named datasets leaves out a path
|
|
215
|
+
* the workspace does not hold.
|
|
216
|
+
*
|
|
217
|
+
* @param pathStr - A keypath string (e.g., ".inputs.sales", or ".inputs.`my field`")
|
|
218
|
+
* @returns The path; the root's, `[]`, for the empty string
|
|
219
|
+
*
|
|
220
|
+
* @throws {Error} When the string is not a keypath, such as one that does not
|
|
221
|
+
* start with `.`
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* parseKeypath('.inputs.sales');
|
|
226
|
+
* // [field('inputs'), field('sales')]
|
|
227
|
+
*
|
|
228
|
+
* parseKeypath(pathToString([variant('field', 'inputs'), variant('field', 'my field')]));
|
|
229
|
+
* // [field('inputs'), field('my field')]
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
export declare function parseKeypath(pathStr: string): TreePath;
|
|
206
233
|
/**
|
|
207
234
|
* Creates a path from field names, validating against the structure.
|
|
208
235
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;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