@elaraai/e3-types 1.0.104 → 1.0.105
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 +410 -6
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +185 -7
- package/dist/src/api.js.map +1 -1
- package/dist/src/function-call.d.ts +206 -0
- package/dist/src/function-call.d.ts.map +1 -0
- package/dist/src/function-call.js +117 -0
- package/dist/src/function-call.js.map +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/names.d.ts +2 -2
- package/dist/src/names.d.ts.map +1 -1
- package/dist/src/release.d.ts +1 -1
- package/dist/src/release.js +1 -1
- package/package.json +2 -2
- package/src/api.ts +204 -7
- package/src/function-call.ts +137 -0
- package/src/index.ts +32 -0
- package/src/names.ts +2 -2
- package/src/release.ts +1 -1
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
* A kept function call, as a repository's call store keeps it
|
|
7
|
+
* (east-workspace#1554).
|
|
8
|
+
*
|
|
9
|
+
* A call of a named function through a workspace is filed when it starts,
|
|
10
|
+
* runs where its backend runs calls, and is kept once it ends, until the
|
|
11
|
+
* lifetime its end gives it; so is a one-shot started as a call, its caller's
|
|
12
|
+
* program run as an anonymous function. The store keeps what readers are
|
|
13
|
+
* shown, the call as the API answers it ({@link FunctionCallType}). Beside it,
|
|
14
|
+
* it keeps what the call's run needs and no reader is shown: the function
|
|
15
|
+
* object it runs, the runner it runs on, whether it runs verbose, its
|
|
16
|
+
* deadline, and a request to cancel it.
|
|
17
|
+
*
|
|
18
|
+
* It is stored state (`WIRE_MIGRATION.md`): a change to its type ships a
|
|
19
|
+
* repository upgrade step.
|
|
20
|
+
*/
|
|
21
|
+
import { BooleanType, DateTimeType, IntegerType, OptionType, StringType, StructType, decodeBeast2For, encodeBeast2For, } from '@elaraai/east';
|
|
22
|
+
import { FunctionCallType } from './api.js';
|
|
23
|
+
import { RunnerType } from './runner.js';
|
|
24
|
+
/**
|
|
25
|
+
* A request to cancel a running call: who asked, and when.
|
|
26
|
+
*
|
|
27
|
+
* @property by - Who asked, as the host's auth names them; `none` without an
|
|
28
|
+
* identity
|
|
29
|
+
* @property at - When they asked
|
|
30
|
+
*/
|
|
31
|
+
export const FunctionCallCancelType = StructType({
|
|
32
|
+
by: OptionType(StringType),
|
|
33
|
+
at: DateTimeType,
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* How long a call is kept once it ends, by how it ended, in milliseconds: the
|
|
37
|
+
* lifetimes the host that filed it gives, which whatever records its end
|
|
38
|
+
* applies.
|
|
39
|
+
*
|
|
40
|
+
* @property succeeded - A call that succeeded, or was cancelled
|
|
41
|
+
* @property failed - A call that failed, was refused (`invalid`), returned too
|
|
42
|
+
* large a value, timed out, or was lost
|
|
43
|
+
*/
|
|
44
|
+
export const FunctionCallKeepType = StructType({
|
|
45
|
+
succeeded: IntegerType,
|
|
46
|
+
failed: IntegerType,
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* A kept call, as its store keeps it.
|
|
50
|
+
*
|
|
51
|
+
* @property call - The call as readers are shown it
|
|
52
|
+
* @property workspace - The workspace it was called through
|
|
53
|
+
* @property functionObject - The hash of the function object it runs: the one
|
|
54
|
+
* the deployed package named when it started, whatever is deployed since;
|
|
55
|
+
* for a one-shot call, the anonymous one its start stored, naming the
|
|
56
|
+
* caller's program, its types and its runner, and no inputs
|
|
57
|
+
* @property runner - The runner it runs on: the function's own, or one the
|
|
58
|
+
* call named and its caller's grant allowed; a one-shot call's own
|
|
59
|
+
* @property verbose - Whether a stock runner runs it with `-v`
|
|
60
|
+
* @property deadline - When its timeout ends: a call still recorded running
|
|
61
|
+
* once its deadline and a grace have passed is lost
|
|
62
|
+
* @property cancel - A request to cancel it, once one is made
|
|
63
|
+
* @property keep - How long it is kept once it ends, by how it ended
|
|
64
|
+
*/
|
|
65
|
+
export const FunctionCallJobType = StructType({
|
|
66
|
+
call: FunctionCallType,
|
|
67
|
+
workspace: StringType,
|
|
68
|
+
functionObject: StringType,
|
|
69
|
+
runner: RunnerType,
|
|
70
|
+
verbose: BooleanType,
|
|
71
|
+
deadline: DateTimeType,
|
|
72
|
+
cancel: OptionType(FunctionCallCancelType),
|
|
73
|
+
keep: FunctionCallKeepType,
|
|
74
|
+
});
|
|
75
|
+
const encodeJob = encodeBeast2For(FunctionCallJobType);
|
|
76
|
+
const decodeJob = decodeBeast2For(FunctionCallJobType);
|
|
77
|
+
/**
|
|
78
|
+
* Encode a kept call as its store keeps it, in beast2.
|
|
79
|
+
*
|
|
80
|
+
* @param job - The call
|
|
81
|
+
* @returns Its bytes
|
|
82
|
+
*/
|
|
83
|
+
export function encodeFunctionCallJob(job) {
|
|
84
|
+
return encodeJob(job);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Decode a kept call from its store's bytes.
|
|
88
|
+
*
|
|
89
|
+
* @param bytes - The call's bytes, as {@link encodeFunctionCallJob} wrote them
|
|
90
|
+
* @returns The call
|
|
91
|
+
* @throws {Error} When the bytes are not a kept call of this release's form
|
|
92
|
+
*/
|
|
93
|
+
export function decodeFunctionCallJob(bytes) {
|
|
94
|
+
return decodeJob(bytes);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* What a kept call names, which gc keeps while the call is kept: the function
|
|
98
|
+
* object it runs, and with it the program the object names; each value
|
|
99
|
+
* argument's object; the version of each dataset argument and each input it
|
|
100
|
+
* read; and its value once it succeeded. A one-shot call's function object is
|
|
101
|
+
* its own, which no package names, so the call alone keeps it, and its
|
|
102
|
+
* program, for as long as it runs and is kept.
|
|
103
|
+
*
|
|
104
|
+
* @param job - The call
|
|
105
|
+
* @returns The hashes it names: its function object's, then its arguments' in
|
|
106
|
+
* order, then its inputs', then its value's
|
|
107
|
+
*/
|
|
108
|
+
export function functionCallRoots(job) {
|
|
109
|
+
const { call } = job;
|
|
110
|
+
const roots = [job.functionObject, ...call.args.map((arg) => (arg.type === 'value' ? arg.value : arg.value.hash))];
|
|
111
|
+
for (const input of call.inputs)
|
|
112
|
+
roots.push(input.hash);
|
|
113
|
+
if (call.state.type === 'succeeded')
|
|
114
|
+
roots.push(call.state.value.value);
|
|
115
|
+
return roots;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=function-call.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-call.js","sourceRoot":"","sources":["../../src/function-call.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,GAC7G,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAC;IAC/C,EAAE,EAAE,UAAU,CAAC,UAAU,CAAC;IAC1B,EAAE,EAAE,YAAY;CACjB,CAAC,CAAC;AAMH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,SAAS,EAAE,WAAW;IACtB,MAAM,EAAK,WAAW;CACvB,CAAC,CAAC;AAMH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC5C,IAAI,EAAY,gBAAgB;IAChC,SAAS,EAAO,UAAU;IAC1B,cAAc,EAAE,UAAU;IAC1B,MA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ec, PythonEnvironmentType, type
|
|
|
27
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
|
+
export { FunctionCallCancelType, type FunctionCallCancel, FunctionCallKeepType, type FunctionCallKeep, FunctionCallJobType, type FunctionCallJob, encodeFunctionCallJob, decodeFunctionCallJob, functionCallRoots, } from './function-call.js';
|
|
30
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';
|
|
31
32
|
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
33
|
export { WorkspaceStateType, type WorkspaceState, WorkspaceRecordType, type WorkspaceRecord, } from './workspace.js';
|
|
@@ -43,7 +44,7 @@ export { COLLECTION_MANIFEST_KIND, CollectionManifestType, CollectionManifestEnt
|
|
|
43
44
|
export { checkDatasetType, datasetAddress, type DatasetTypeMismatch, } from './dataset-type.js';
|
|
44
45
|
export { BEAST2_CONTENT_TYPE } from './constants.js';
|
|
45
46
|
export { decodeBeast2Request, beast2Success, beast2Error, type Beast2AnswerOptions } from './beast2-http.js';
|
|
46
|
-
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, 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 MutationCallRequest, type MutationResult, type RecordMigrationApplied, type RecordSignature, type RecordCommitInfo, type RecordArgPreview, type RecordCommitArgs, type RecordHistoryCommit, type RecordHistoryResult, } from './api.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';
|
|
47
48
|
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';
|
|
48
49
|
export { PIECE_SIZES, pieceSizesFor, type PieceSizes } from './pieces.js';
|
|
49
50
|
export { UNIT_PLAN_KIND, UnitPlanGroupType, type UnitPlanGroup, UnitPlanStageType, type UnitPlanStage, UnitPlanType, type UnitPlan, encodeUnitPlan, decodeUnitPlan, } from './unit-plan.js';
|
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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,EACnB,eAAe,EACf,kBAAkB,EAElB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,0BAA0B,EAC1B,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAE1B,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EAEzB,gBAAgB,EAChB,eAAe,EAEf,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAElB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,6BAA6B,EAC7B,wBAAwB,EAExB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EAExB,YAAY,EACZ,aAAa,EAEb,uBAAuB,EAEvB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAElB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,
|
|
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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KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,UAAU,CAAC;AAGlB,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"}
|
package/dist/src/index.js
CHANGED
|
@@ -34,6 +34,8 @@ export { StructureType, PathSegmentType, TreePathType, treePath, pathToString, p
|
|
|
34
34
|
export { RunnerType, withRunnerLifeline, } from './runner.js';
|
|
35
35
|
// Function objects
|
|
36
36
|
export { FunctionObjectType, decodeFunctionObject, } from './function.js';
|
|
37
|
+
// Kept function calls, as a repository's call store keeps them
|
|
38
|
+
export { FunctionCallCancelType, FunctionCallKeepType, FunctionCallJobType, encodeFunctionCallJob, decodeFunctionCallJob, functionCallRoots, } from './function-call.js';
|
|
37
39
|
// Record objects
|
|
38
40
|
export { RecordCommitType, MutationObjectType, RecordObjectType, decodeRecordObject, RecordIndexObjectType, decodeRecordIndexObject, RecordIndexFormType, RecordSummaryTotalsType, RecordLevelType, RecordRollupType, RecordNestedRunType, RecordNestedPathType, RecordNestedItemType, NestedEntryKeyType, NestedSpanKeyType, nestedSpanName, entriesRowsName, RecordNestedTotalsType, NestedEntryType, RecordNestedDeclType, RecordSummaryOpType, RECORD_STATE_KIND, RecordStateType, isRecordStateType, indexCollectionType, indexWindowType, datasetRowsType, decodeRecordCommit, decodeMutationObject, MutationFormType, MigrationObjectType, decodeMigrationObject, MigrationFormType, DELTA_CONFLICT, patchOpsType, mutationDeltaType, editTypeOf, } from './record.js';
|
|
39
41
|
// Package objects
|
|
@@ -100,7 +102,9 @@ DatasetStatusDetailType,
|
|
|
100
102
|
// Function / one-shot execution
|
|
101
103
|
ExecuteLimitsType, DiagnosticType, ExecuteResultType, CallArgType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType,
|
|
102
104
|
// Split calls
|
|
103
|
-
SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType,
|
|
105
|
+
SplitCallArgType, SplitCallRequestType, SplitCallProgressType, SplitCallStatusType, SplitCallPlanType,
|
|
106
|
+
// Function calls, kept for a lifetime
|
|
107
|
+
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, } from './api.js';
|
|
104
108
|
// Dataflow execution state
|
|
105
109
|
export { TaskStateType, DataflowGraphTaskType, DataflowGraphType, StageUnitType, RequeueReasonType, ExecutionEventType, DataflowForceType, dataflowForce, dataflowForceOption, DataflowExecutionStateType, decodeDataflowExecutionState, ExecutionStateSummaryType, executionStateSummary, waitingTaskCount, lastEventSeq,
|
|
106
110
|
// Dataflow run history
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,4BAA4B;AAC5B,OAAO,EACL,WAAW,EAEX,aAAa,EACb,OAAO,EACP,YAAY,GACb,MAAM,cAAc,CAAC;AAEtB,2DAA2D;AAC3D,OAAO,EACL,iBAAiB,EAEjB,cAAc,GAEf,MAAM,kBAAkB,CAAC;AAE1B,mBAAmB;AACnB,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEd,gBAAgB,EAChB,YAAY,EAEZ,iBAAiB,EAEjB,aAAa,EAEb,kBAAkB,EAElB,cAAc,EAEd,gBAAgB,EAEhB,YAAY,GAEb,MAAM,WAAW,CAAC;AAEnB,yBAAyB;AACzB,OAAO,EACL,mBAAmB,EAEnB,qBAAqB,EAErB,mBAAmB,EAEnB,oBAAoB,EAEpB,oBAAoB,EAEpB,4BAA4B,EAE5B,2BAA2B,GAC5B,MAAM,kBAAkB,CAAC;AAE1B,2BAA2B;AAC3B,OAAO,EACL,aAAa,EAEb,eAAe,EAEf,YAAY,EAKZ,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,YAAY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AAC;AAE1E,+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
|
@@ -14,8 +14,8 @@ export type NamedKind = 'repository' | 'workspace' | 'package' | 'package versio
|
|
|
14
14
|
* execution's task or inputs. */
|
|
15
15
|
export type HashKind = 'object hash' | 'task hash' | 'inputs hash';
|
|
16
16
|
/** What an id e3 makes a path or a key of names: an execution attempt, a
|
|
17
|
-
* dataflow run,
|
|
18
|
-
export type IdKind = 'execution id' | 'run id' | 'gc run id';
|
|
17
|
+
* dataflow run, a gc run in steps, or a kept function call. */
|
|
18
|
+
export type IdKind = 'execution id' | 'run id' | 'gc run id' | 'call id';
|
|
19
19
|
/** What a hash or an id e3 makes a path or a key of names: not a name, so
|
|
20
20
|
* checked for its form rather than by {@link nameProblem}. */
|
|
21
21
|
export type IdentifierKind = HashKind | IdKind;
|
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;AAE5F;kCACkC;AAClC,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC;AAEnE;
|
|
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;gEACgE;AAChE,MAAM,MAAM,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAC;AAEzE;+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/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.105';
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"description": "Shared type definitions for e3 (East Execution Engine)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"directory": "libs/e3/packages/e3-types"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@elaraai/east": "1.0.
|
|
21
|
+
"@elaraai/east": "1.0.105"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.0.0",
|
package/src/api.ts
CHANGED
|
@@ -1322,8 +1322,11 @@ export const FunctionSignatureType = StructType({
|
|
|
1322
1322
|
|
|
1323
1323
|
/**
|
|
1324
1324
|
* One-shot execution request: run an anonymous function whose IR is supplied
|
|
1325
|
-
* at call time, optionally bound to existing workspace datasets
|
|
1326
|
-
*
|
|
1325
|
+
* at call time, optionally bound to existing workspace datasets. Run within
|
|
1326
|
+
* one request (`POST …/one-shot`), its result is returned inline and nothing
|
|
1327
|
+
* is kept. Started (`POST …/one-shot/calls`), it is a kept call as a named
|
|
1328
|
+
* function's is: filed, run outside the request, polled to its end, and kept
|
|
1329
|
+
* for its lifetime with no function named ({@link FunctionCallType}).
|
|
1327
1330
|
*
|
|
1328
1331
|
* SECURITY: one-shot evaluates a caller-supplied IR. One that is platform-free
|
|
1329
1332
|
* — a stock runtime given no platform package, and a body that calls no
|
|
@@ -1360,7 +1363,19 @@ export const SplitCallArgType = VariantType({
|
|
|
1360
1363
|
* not partitioned reaches every piece whole. `output` is how the pieces'
|
|
1361
1364
|
* outputs combine, as a task's output kinds do, with its programs and its zero
|
|
1362
1365
|
* inline. `then`, when given, runs once over the assembled output and then the
|
|
1363
|
-
* arguments, and its value is the call's.
|
|
1366
|
+
* arguments not partitioned, in their order, and its value is the call's. The
|
|
1367
|
+
* partitioned arguments are the pieces' to read: `then` reads what the pieces
|
|
1368
|
+
* made. A `then` that takes any other count is `invalid`, and nothing runs. A
|
|
1369
|
+
* plan that needs a partitioned dataset again after the combine runs another
|
|
1370
|
+
* split call over it, given this call's output as an `object` argument.
|
|
1371
|
+
*
|
|
1372
|
+
* `first` (#1110) is an `array` whose call stops once it has its first `limit`
|
|
1373
|
+
* elements, at least 1: the body emits as an array's does, and the value is an
|
|
1374
|
+
* Array of the first `limit` elements in input order, or of every element when
|
|
1375
|
+
* there are fewer. Its pieces run in input order, a few at a time, and once the
|
|
1376
|
+
* pieces finished from the first hold `limit` elements no piece after them
|
|
1377
|
+
* starts. Its pieces are an `array` call's, so the two share them in the
|
|
1378
|
+
* cache. `then` is given the first `limit` elements as its output.
|
|
1364
1379
|
*
|
|
1365
1380
|
* SECURITY: a caller whose one-shot grant is `platform_free` may launch one
|
|
1366
1381
|
* only when it is platform-free: a stock runtime given no platform package,
|
|
@@ -1376,6 +1391,7 @@ export const SplitCallRequestType = StructType({
|
|
|
1376
1391
|
output: VariantType({
|
|
1377
1392
|
array: NullType,
|
|
1378
1393
|
dict: StructType({ merge: OptionType(BlobType) }),
|
|
1394
|
+
first: StructType({ limit: IntegerType }),
|
|
1379
1395
|
fold: StructType({ combine: BlobType, zero: BlobType }),
|
|
1380
1396
|
set: NullType,
|
|
1381
1397
|
}),
|
|
@@ -1406,25 +1422,198 @@ export const SplitCallPlanType = StructType({
|
|
|
1406
1422
|
bytes: IntegerType,
|
|
1407
1423
|
});
|
|
1408
1424
|
|
|
1425
|
+
/**
|
|
1426
|
+
* How a finished split call ran: how many pieces its input was cut into; the
|
|
1427
|
+
* units this job ran, pieces and merges, and those the execution cache served
|
|
1428
|
+
* it; and the highest peak resident memory a unit reached, in bytes, as the
|
|
1429
|
+
* task's execution records it — for a call the cache served too. A call the
|
|
1430
|
+
* cache served whole consulted no unit: it ran 0, and was served 0. `then`'s
|
|
1431
|
+
* run is no unit.
|
|
1432
|
+
*/
|
|
1433
|
+
export const SplitCallReportType = StructType({
|
|
1434
|
+
pieces: IntegerType,
|
|
1435
|
+
ran: IntegerType,
|
|
1436
|
+
cached: IntegerType,
|
|
1437
|
+
peakBytes: OptionType(IntegerType),
|
|
1438
|
+
});
|
|
1439
|
+
|
|
1409
1440
|
/**
|
|
1410
1441
|
* A split call's status, as its poll answers it.
|
|
1411
1442
|
*
|
|
1412
1443
|
* - `processing`: the job runs, and how far it has got once it has said
|
|
1413
1444
|
* - `completed`: the call's result, and the assembled output's hash once the
|
|
1414
1445
|
* pieces ran — what a caller reads through the object route when the result
|
|
1415
|
-
* is `too_large`, or passes on as the next call's `object` argument;
|
|
1416
|
-
*
|
|
1446
|
+
* is `too_large`, or passes on as the next call's `object` argument; and how
|
|
1447
|
+
* it ran ({@link SplitCallReportType}), `none` for a call found wrong, which
|
|
1448
|
+
* ran nothing. An explain found wrong ends here too, `invalid`
|
|
1417
1449
|
* - `planned`: an explain's answer, the pieces the call's run would cut, which
|
|
1418
|
-
* its job
|
|
1450
|
+
* its job planned and ran no unit for; a run plans them again, and finds the
|
|
1451
|
+
* pieces it stored
|
|
1419
1452
|
* - `failed`: why e3 could not run it
|
|
1453
|
+
* - `cancelled`: the call was cancelled before it ended, and its units
|
|
1454
|
+
* stopped; the units that finished are cached, so a relaunch is served them
|
|
1420
1455
|
*/
|
|
1421
1456
|
export const SplitCallStatusType = VariantType({
|
|
1422
1457
|
processing: OptionType(SplitCallProgressType),
|
|
1423
|
-
completed: StructType({ result: ExecuteResultType, output: OptionType(StringType) }),
|
|
1458
|
+
completed: StructType({ result: ExecuteResultType, output: OptionType(StringType), report: OptionType(SplitCallReportType) }),
|
|
1424
1459
|
planned: SplitCallPlanType,
|
|
1425
1460
|
failed: StructType({ message: StringType }),
|
|
1461
|
+
cancelled: NullType,
|
|
1462
|
+
});
|
|
1463
|
+
|
|
1464
|
+
// =============================================================================
|
|
1465
|
+
// Function calls: started, polled, cancelled, and kept for a lifetime
|
|
1466
|
+
// =============================================================================
|
|
1467
|
+
// A call of a named function through a workspace is filed, run on compute
|
|
1468
|
+
// that outlives the request, and kept once it ends: its arguments, the
|
|
1469
|
+
// versions of the inputs it read, its value and its log tails, until the
|
|
1470
|
+
// lifetime its end gives it (east-workspace#1554). A one-shot started as a
|
|
1471
|
+
// call is kept the same way, naming no function: its program is its caller's.
|
|
1472
|
+
// A kept call names its values by hash, so it stays small whatever the call
|
|
1473
|
+
// weighs.
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* A kept call's state.
|
|
1477
|
+
*
|
|
1478
|
+
* - `running`: it has not ended
|
|
1479
|
+
* - `succeeded`: it returned, and `value` is the object its value was stored as
|
|
1480
|
+
* - `failed`: its runner exited non-zero (see its stderr)
|
|
1481
|
+
* - `invalid`: it was refused before it ran: a wrong arity, a runner the
|
|
1482
|
+
* caller may not name, an input with no value
|
|
1483
|
+
* - `too_large`: its value was over its `maxResultBytes`, and was not kept
|
|
1484
|
+
* - `timed_out`: it ran past its timeout, and was stopped
|
|
1485
|
+
* - `cancelled`: it was asked to stop, by `by` (`none` without an identity),
|
|
1486
|
+
* and was stopped
|
|
1487
|
+
* - `lost`: e3 could not run it, or lost it: its host stopped before it ended
|
|
1488
|
+
*/
|
|
1489
|
+
export const FunctionCallStateType = VariantType({
|
|
1490
|
+
cancelled: StructType({ by: OptionType(StringType) }),
|
|
1491
|
+
failed: StructType({ exitCode: IntegerType }),
|
|
1492
|
+
invalid: StructType({ diagnostics: ArrayType(DiagnosticType) }),
|
|
1493
|
+
lost: StructType({ message: StringType }),
|
|
1494
|
+
running: NullType,
|
|
1495
|
+
succeeded: StructType({ value: StringType }),
|
|
1496
|
+
timed_out: StructType({ ms: IntegerType }),
|
|
1497
|
+
too_large: StructType({ bytes: IntegerType, limit: IntegerType }),
|
|
1498
|
+
});
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* A kept call's argument: a value, by the object it was stored as through the
|
|
1502
|
+
* store's door; or a dataset of the workspace, by its path and the hash it was
|
|
1503
|
+
* pinned at.
|
|
1504
|
+
*/
|
|
1505
|
+
export const FunctionCallArgType = VariantType({
|
|
1506
|
+
dataset: StructType({ path: TreePathType, hash: StringType }),
|
|
1507
|
+
value: StringType,
|
|
1508
|
+
});
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* A kept call, as a workspace's list of calls shows it.
|
|
1512
|
+
*
|
|
1513
|
+
* @property id - The call's id, a UUIDv7, so ids order as the calls started
|
|
1514
|
+
* @property function - The function's name in the deployed package; `none`
|
|
1515
|
+
* for a one-shot call, whose program its caller sent
|
|
1516
|
+
* @property caller - Who made the call, as the host's auth names them; `none`
|
|
1517
|
+
* for a server without auth
|
|
1518
|
+
* @property startedAt - When it was filed
|
|
1519
|
+
* @property endedAt - When it ended; `none` while it runs
|
|
1520
|
+
* @property state - How it stands, or how it ended
|
|
1521
|
+
*/
|
|
1522
|
+
export const FunctionCallSummaryType = StructType({
|
|
1523
|
+
id: StringType,
|
|
1524
|
+
function: OptionType(StringType),
|
|
1525
|
+
caller: OptionType(StringType),
|
|
1526
|
+
startedAt: DateTimeType,
|
|
1527
|
+
endedAt: OptionType(DateTimeType),
|
|
1528
|
+
state: FunctionCallStateType,
|
|
1529
|
+
});
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* A kept call, whole: a {@link FunctionCallSummaryType}'s fields, and what the
|
|
1533
|
+
* call ran, took, read and wrote.
|
|
1534
|
+
*
|
|
1535
|
+
* @property package - The package it ran from, as deployed when it started;
|
|
1536
|
+
* `none` for a one-shot call, which runs no package's function
|
|
1537
|
+
* @property args - Its arguments, in order: values by their objects, datasets
|
|
1538
|
+
* by the hashes they were pinned at
|
|
1539
|
+
* @property inputs - The function's own inputs, each by its path and the hash
|
|
1540
|
+
* it was pinned at, in the order the function declares them
|
|
1541
|
+
* @property limits - The limits it ran under
|
|
1542
|
+
* @property expiresAt - When it is forgotten: its lifetime's end, which its
|
|
1543
|
+
* end sets. A running call's is past its deadline by a grace and then a
|
|
1544
|
+
* failure's lifetime, so one whose host stopped is still kept when a read
|
|
1545
|
+
* past the grace records it `lost`
|
|
1546
|
+
* @property stdout - The tail of its stdout
|
|
1547
|
+
* @property stderr - The tail of its stderr
|
|
1548
|
+
* @property stdoutTruncated - Whether `stdout` holds less than all of it
|
|
1549
|
+
* @property stderrTruncated - Whether `stderr` holds less than all of it
|
|
1550
|
+
*/
|
|
1551
|
+
export const FunctionCallType = StructType({
|
|
1552
|
+
id: StringType,
|
|
1553
|
+
function: OptionType(StringType),
|
|
1554
|
+
caller: OptionType(StringType),
|
|
1555
|
+
startedAt: DateTimeType,
|
|
1556
|
+
endedAt: OptionType(DateTimeType),
|
|
1557
|
+
state: FunctionCallStateType,
|
|
1558
|
+
package: OptionType(StructType({ name: StringType, version: StringType })),
|
|
1559
|
+
args: ArrayType(FunctionCallArgType),
|
|
1560
|
+
inputs: ArrayType(StructType({ path: TreePathType, hash: StringType })),
|
|
1561
|
+
limits: StructType({ timeoutMs: IntegerType, maxResultBytes: IntegerType, maxLogBytes: IntegerType }),
|
|
1562
|
+
expiresAt: DateTimeType,
|
|
1563
|
+
stdout: StringType,
|
|
1564
|
+
stderr: StringType,
|
|
1565
|
+
stdoutTruncated: BooleanType,
|
|
1566
|
+
stderrTruncated: BooleanType,
|
|
1567
|
+
});
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* A call's status, as its caller polls it.
|
|
1571
|
+
*
|
|
1572
|
+
* - `running`: it has not ended; poll again
|
|
1573
|
+
* - `completed`: its result, as a sync call answers it, its value inline up to
|
|
1574
|
+
* its `maxResultBytes`
|
|
1575
|
+
* - `cancelled`: it was asked to stop, by `by`, and was stopped
|
|
1576
|
+
* - `lost`: e3 could not run it, or lost it, and why
|
|
1577
|
+
*/
|
|
1578
|
+
export const FunctionCallStatusType = VariantType({
|
|
1579
|
+
cancelled: StructType({ by: OptionType(StringType) }),
|
|
1580
|
+
completed: ExecuteResultType,
|
|
1581
|
+
lost: StructType({ message: StringType }),
|
|
1582
|
+
running: NullType,
|
|
1583
|
+
});
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* What a call's start answers: its id, and how it stood when the start
|
|
1587
|
+
* stopped waiting for it, which is `completed` for a call that ended within
|
|
1588
|
+
* the wait.
|
|
1589
|
+
*/
|
|
1590
|
+
export const FunctionCallAnswerType = StructType({
|
|
1591
|
+
id: StringType,
|
|
1592
|
+
status: FunctionCallStatusType,
|
|
1426
1593
|
});
|
|
1427
1594
|
|
|
1595
|
+
/**
|
|
1596
|
+
* A page of a workspace's kept calls, newest first.
|
|
1597
|
+
*
|
|
1598
|
+
* @property calls - The calls on the page
|
|
1599
|
+
* @property next - The cursor of the next page, which a request passes as
|
|
1600
|
+
* `before`; `none` on the last page
|
|
1601
|
+
*/
|
|
1602
|
+
export const FunctionCallPageType = StructType({
|
|
1603
|
+
calls: ArrayType(FunctionCallSummaryType),
|
|
1604
|
+
next: OptionType(StringType),
|
|
1605
|
+
});
|
|
1606
|
+
|
|
1607
|
+
/** The calls a page of a workspace's calls holds when its request names no `limit`. */
|
|
1608
|
+
export const FUNCTION_CALLS_PAGE_DEFAULT = 50;
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* The most calls a page holds ({@link FunctionCallPageType}): a request naming
|
|
1612
|
+
* a larger `limit` is served this many, so a page stays within what a host's
|
|
1613
|
+
* response may hold.
|
|
1614
|
+
*/
|
|
1615
|
+
export const FUNCTION_CALLS_PAGE_MAX = 200;
|
|
1616
|
+
|
|
1428
1617
|
/**
|
|
1429
1618
|
* A record mutation call. Positional args (after the implicit current state),
|
|
1430
1619
|
* one beast2-encoded value per declared parameter.
|
|
@@ -1687,6 +1876,14 @@ export type SplitCallRequest = ValueTypeOf<typeof SplitCallRequestType>;
|
|
|
1687
1876
|
export type SplitCallProgress = ValueTypeOf<typeof SplitCallProgressType>;
|
|
1688
1877
|
export type SplitCallStatus = ValueTypeOf<typeof SplitCallStatusType>;
|
|
1689
1878
|
export type SplitCallPlan = ValueTypeOf<typeof SplitCallPlanType>;
|
|
1879
|
+
export type FunctionCallState = ValueTypeOf<typeof FunctionCallStateType>;
|
|
1880
|
+
export type FunctionCallArg = ValueTypeOf<typeof FunctionCallArgType>;
|
|
1881
|
+
export type FunctionCallSummary = ValueTypeOf<typeof FunctionCallSummaryType>;
|
|
1882
|
+
export type FunctionCall = ValueTypeOf<typeof FunctionCallType>;
|
|
1883
|
+
export type FunctionCallStatus = ValueTypeOf<typeof FunctionCallStatusType>;
|
|
1884
|
+
export type FunctionCallAnswer = ValueTypeOf<typeof FunctionCallAnswerType>;
|
|
1885
|
+
export type FunctionCallPage = ValueTypeOf<typeof FunctionCallPageType>;
|
|
1886
|
+
export type SplitCallReport = ValueTypeOf<typeof SplitCallReportType>;
|
|
1690
1887
|
export type MutationCallRequest = ValueTypeOf<typeof MutationCallRequestType>;
|
|
1691
1888
|
export type MutationResult = ValueTypeOf<typeof MutationResultType>;
|
|
1692
1889
|
export type RecordMigrationApplied = ValueTypeOf<typeof RecordMigrationAppliedType>;
|