@elaraai/e3-types 1.0.12 → 1.0.14

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 CHANGED
@@ -16,7 +16,7 @@
16
16
  * - ApiExecutionStatusType (vs ExecutionStatusType in execution.ts — on-disk task status)
17
17
  * - ApiDataflowExecutionStateType (vs DataflowExecutionStateType in dataflow.ts — persistent state)
18
18
  */
19
- import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, BlobType, NullType, type EastType, type ValueTypeOf } from '@elaraai/east';
19
+ import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, BlobType, NullType, DateTimeType, type EastType, type ValueTypeOf } from '@elaraai/east';
20
20
  export declare const WorkspaceNotFoundErrorType: StructType<{
21
21
  readonly workspace: StringType;
22
22
  }>;
@@ -1314,6 +1314,129 @@ export declare const OneShotRequestType: StructType<{
1314
1314
  readonly maxLogBytes: OptionType<IntegerType>;
1315
1315
  }>>;
1316
1316
  }>;
1317
+ /**
1318
+ * A record mutation call. Positional args (after the implicit current state),
1319
+ * one beast2-encoded value per declared parameter.
1320
+ */
1321
+ export declare const MutationCallRequestType: StructType<{
1322
+ readonly args: ArrayType<BlobType>;
1323
+ readonly actor: OptionType<StringType>;
1324
+ readonly limits: OptionType<StructType<{
1325
+ readonly timeoutMs: OptionType<IntegerType>;
1326
+ readonly maxResultBytes: OptionType<IntegerType>;
1327
+ readonly maxLogBytes: OptionType<IntegerType>;
1328
+ }>>;
1329
+ }>;
1330
+ /**
1331
+ * The terminal result of a mutation call. Only `committed` wrote anything.
1332
+ *
1333
+ * - `committed`: the new commit + state hashes
1334
+ * - `invalid`: record/mutation lookup or arity error; nothing ran
1335
+ * - `failed`: the reducer process exited non-zero (incl. a reducer `$.error`; see stderr)
1336
+ * - `too_large`: the new state exceeded the result cap
1337
+ * - `timed_out`: the reducer exceeded its time budget
1338
+ * - `conflict`: the compare-and-swap lost the race `attempts` times
1339
+ */
1340
+ export declare const MutationResultType: StructType<{
1341
+ readonly outcome: VariantType<{
1342
+ readonly committed: StructType<{
1343
+ readonly commitHash: StringType;
1344
+ readonly stateHash: StringType;
1345
+ }>;
1346
+ readonly invalid: StructType<{
1347
+ readonly message: StringType;
1348
+ }>;
1349
+ readonly failed: StructType<{
1350
+ readonly exitCode: IntegerType;
1351
+ readonly stderr: StringType;
1352
+ }>;
1353
+ readonly too_large: StructType<{
1354
+ readonly bytes: IntegerType;
1355
+ readonly limit: IntegerType;
1356
+ readonly stderr: StringType;
1357
+ }>;
1358
+ readonly timed_out: StructType<{
1359
+ readonly ms: IntegerType;
1360
+ readonly stderr: StringType;
1361
+ }>;
1362
+ readonly conflict: StructType<{
1363
+ readonly attempts: IntegerType;
1364
+ }>;
1365
+ }>;
1366
+ }>;
1367
+ /**
1368
+ * A record's callable surface, returned by `describe` so dynamic callers can
1369
+ * encode mutation arguments. The mutation `argTypes` are the EXTRA parameters
1370
+ * after the implicit current state.
1371
+ */
1372
+ export declare const RecordSignatureType: StructType<{
1373
+ readonly name: StringType;
1374
+ readonly mutations: ArrayType<StructType<{
1375
+ readonly name: StringType;
1376
+ readonly argTypes: ArrayType<import("@elaraai/east").RecursiveType<VariantType<{
1377
+ readonly Never: NullType;
1378
+ readonly Null: NullType;
1379
+ readonly Boolean: NullType;
1380
+ readonly Integer: NullType;
1381
+ readonly Float: NullType;
1382
+ readonly String: NullType;
1383
+ readonly DateTime: NullType;
1384
+ readonly Blob: NullType;
1385
+ readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
1386
+ readonly Array: import("@elaraai/east").RecursiveTypeMarker;
1387
+ readonly Set: import("@elaraai/east").RecursiveTypeMarker;
1388
+ readonly Dict: StructType<{
1389
+ readonly key: import("@elaraai/east").RecursiveTypeMarker;
1390
+ readonly value: import("@elaraai/east").RecursiveTypeMarker;
1391
+ }>;
1392
+ readonly Struct: ArrayType<StructType<{
1393
+ readonly name: StringType;
1394
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
1395
+ }>>;
1396
+ readonly Variant: ArrayType<StructType<{
1397
+ readonly name: StringType;
1398
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
1399
+ }>>;
1400
+ readonly Recursive: VariantType<{
1401
+ readonly ref: IntegerType;
1402
+ readonly wrapper: StructType<{
1403
+ readonly id: IntegerType;
1404
+ readonly inner: import("@elaraai/east").RecursiveTypeMarker;
1405
+ }>;
1406
+ }>;
1407
+ readonly Function: StructType<{
1408
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1409
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1410
+ }>;
1411
+ readonly AsyncFunction: StructType<{
1412
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
1413
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
1414
+ }>;
1415
+ readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
1416
+ readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
1417
+ }>>>;
1418
+ }>>;
1419
+ }>;
1420
+ /** One commit in a record's history (its hash plus the commit fields). */
1421
+ export declare const RecordCommitInfoType: StructType<{
1422
+ readonly hash: StringType;
1423
+ readonly parent: OptionType<StringType>;
1424
+ readonly state: StringType;
1425
+ readonly mutation: StringType;
1426
+ readonly actor: StringType;
1427
+ readonly at: DateTimeType;
1428
+ }>;
1429
+ /** A page of a record's commit history, newest first. */
1430
+ export declare const RecordHistoryResultType: StructType<{
1431
+ readonly commits: ArrayType<StructType<{
1432
+ readonly hash: StringType;
1433
+ readonly parent: OptionType<StringType>;
1434
+ readonly state: StringType;
1435
+ readonly mutation: StringType;
1436
+ readonly actor: StringType;
1437
+ readonly at: DateTimeType;
1438
+ }>>;
1439
+ }>;
1317
1440
  export type Error = ValueTypeOf<typeof ErrorType>;
1318
1441
  export type RepositoryStatus = ValueTypeOf<typeof RepositoryStatusType>;
1319
1442
  export type GcRequest = ValueTypeOf<typeof GcRequestType>;
@@ -1354,4 +1477,9 @@ export type ExecuteResult = ValueTypeOf<typeof ExecuteResultType>;
1354
1477
  export type FunctionCallRequest = ValueTypeOf<typeof FunctionCallRequestType>;
1355
1478
  export type FunctionSignature = ValueTypeOf<typeof FunctionSignatureType>;
1356
1479
  export type OneShotRequest = ValueTypeOf<typeof OneShotRequestType>;
1480
+ export type MutationCallRequest = ValueTypeOf<typeof MutationCallRequestType>;
1481
+ export type MutationResult = ValueTypeOf<typeof MutationResultType>;
1482
+ export type RecordSignature = ValueTypeOf<typeof RecordSignatureType>;
1483
+ export type RecordCommitInfo = ValueTypeOf<typeof RecordCommitInfoType>;
1484
+ export type RecordHistoryResult = ValueTypeOf<typeof RecordHistoryResultType>;
1357
1485
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EAER,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AASvB,eAAO,MAAM,0BAA0B;;EAAwC,CAAC;AAChF,eAAO,MAAM,6BAA6B;;EAAwC,CAAC;AACnF,eAAO,MAAM,wBAAwB;;EAAwC,CAAC;AAC9E,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;EAGnC,CAAC;AACH,eAAO,MAAM,wBAAwB;;;EAGnC,CAAC;AACH,eAAO,MAAM,sBAAsB;;;EAA+D,CAAC;AACnG,eAAO,MAAM,uBAAuB;;EAAqC,CAAC;AAC1E,eAAO,MAAM,wBAAwB;;;EAA0D,CAAC;AAChG,eAAO,MAAM,qBAAqB;;EAAmC,CAAC;AACtE,eAAO,MAAM,0B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,7 @@
16
16
  * - ApiExecutionStatusType (vs ExecutionStatusType in execution.ts — on-disk task status)
17
17
  * - ApiDataflowExecutionStateType (vs DataflowExecutionStateType in dataflow.ts — persistent state)
18
18
  */
19
- import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, BlobType, NullType, EastTypeType, } from '@elaraai/east';
19
+ import { VariantType, StructType, ArrayType, OptionType, StringType, IntegerType, FloatType, BooleanType, BlobType, NullType, DateTimeType, EastTypeType, } from '@elaraai/east';
20
20
  import { StructureType, TreePathType } from './structure.js';
21
21
  import { RunnerType } from './runner.js';
22
22
  // =============================================================================
@@ -729,4 +729,58 @@ export const OneShotRequestType = StructType({
729
729
  runner: RunnerType,
730
730
  limits: OptionType(ExecuteLimitsType),
731
731
  });
732
+ /**
733
+ * A record mutation call. Positional args (after the implicit current state),
734
+ * one beast2-encoded value per declared parameter.
735
+ */
736
+ export const MutationCallRequestType = StructType({
737
+ args: ArrayType(BlobType),
738
+ actor: OptionType(StringType), // caller identity; the server may override from auth
739
+ limits: OptionType(ExecuteLimitsType),
740
+ });
741
+ /**
742
+ * The terminal result of a mutation call. Only `committed` wrote anything.
743
+ *
744
+ * - `committed`: the new commit + state hashes
745
+ * - `invalid`: record/mutation lookup or arity error; nothing ran
746
+ * - `failed`: the reducer process exited non-zero (incl. a reducer `$.error`; see stderr)
747
+ * - `too_large`: the new state exceeded the result cap
748
+ * - `timed_out`: the reducer exceeded its time budget
749
+ * - `conflict`: the compare-and-swap lost the race `attempts` times
750
+ */
751
+ export const MutationResultType = StructType({
752
+ outcome: VariantType({
753
+ committed: StructType({ commitHash: StringType, stateHash: StringType }),
754
+ invalid: StructType({ message: StringType }),
755
+ failed: StructType({ exitCode: IntegerType, stderr: StringType }),
756
+ too_large: StructType({ bytes: IntegerType, limit: IntegerType, stderr: StringType }),
757
+ timed_out: StructType({ ms: IntegerType, stderr: StringType }),
758
+ conflict: StructType({ attempts: IntegerType }),
759
+ }),
760
+ });
761
+ /**
762
+ * A record's callable surface, returned by `describe` so dynamic callers can
763
+ * encode mutation arguments. The mutation `argTypes` are the EXTRA parameters
764
+ * after the implicit current state.
765
+ */
766
+ export const RecordSignatureType = StructType({
767
+ name: StringType,
768
+ mutations: ArrayType(StructType({
769
+ name: StringType,
770
+ argTypes: ArrayType(EastTypeType),
771
+ })),
772
+ });
773
+ /** One commit in a record's history (its hash plus the commit fields). */
774
+ export const RecordCommitInfoType = StructType({
775
+ hash: StringType,
776
+ parent: OptionType(StringType),
777
+ state: StringType,
778
+ mutation: StringType,
779
+ actor: StringType,
780
+ at: DateTimeType,
781
+ });
782
+ /** A page of a record's commit history, newest first. */
783
+ export const RecordHistoryResultType = StructType({
784
+ commits: ArrayType(RecordCommitInfoType),
785
+ });
732
786
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,YAAY,GAGb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AACnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;AAC9E,MAAM,CAAC,MAAM,c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C,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QAC9C,MAAM,EAAK,UAAU,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QACpE,SAAS,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QACrF,SAAS,EAAE,UAAU,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;QAC9D,QAAQ,EAAG,UAAU,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;KACjD,CAAC;CACH,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC5C,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC;QAC9B,IAAI,EAAM,UAAU;QACpB,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC;KAClC,CAAC,CAAC;CACJ,CAAC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,IAAI,EAAM,UAAU;IACpB,MAAM,EAAI,UAAU,CAAC,UAAU,CAAC;IAChC,KAAK,EAAK,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAK,UAAU;IACpB,EAAE,EAAQ,YAAY;CACvB,CAAC,CAAC;AAEH,yDAAyD;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;IAChD,OAAO,EAAE,SAAS,CAAC,oBAAoB,CAAC;CACzC,CAAC,CAAC"}
@@ -26,12 +26,13 @@ export { TaskObjectType, type TaskObject, } from './task.js';
26
26
  export { StructureType, type Structure, PathSegmentType, type PathSegment, TreePathType, type TreePath, type ParsePathResult, type ParseDatasetPathResult, type ParsePackageRefResult, treePath, pathToString, parsePath, parseDatasetPath, parsePackageRef, urlPathToTreePath, DatasetSchemaType, type DatasetSchema, } from './structure.js';
27
27
  export { RunnerType, type RunnerValue, runnerToArgv, } from './runner.js';
28
28
  export { FunctionObjectType, type FunctionObject, } from './function.js';
29
+ export { RecordCommitType, type RecordCommit, MutationObjectType, type MutationObject, RecordObjectType, type RecordObject, } from './record.js';
29
30
  export { PackageDataType, type PackageData, PackageObjectType, type PackageObject, decodePackageObject, PackageDatasetsType, type PackageDatasets, 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';
30
31
  export { WorkspaceStateType, type WorkspaceState, } from './workspace.js';
31
32
  export { ExecutionStatusType, type ExecutionStatus, } from './execution.js';
32
33
  export { LockOperationType, type LockOperation, ProcessHolderType, type ProcessHolder, LockStateType, type LockState, } from './lock.js';
33
34
  export { TransferUploadRequestType, type TransferUploadRequest, TransferUploadResponseType, type TransferUploadResponse, TransferDoneResponseType, type TransferDoneResponse, } from './transfer.js';
34
35
  export { BEAST2_CONTENT_TYPE } from './constants.js';
35
- export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceInfoType, WorkspaceDeployRequestType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, ApiDataflowExecutionStateType, ExecutionHistoryStatusType, ExecutionListItemType, TreeKindType, ListEntryType, DatasetStatusDetailType, ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, 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 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 ApiDataflowExecutionState, type ExecutionHistoryStatus, type ExecutionListItem, type TreeKind, type ListEntry, type DatasetStatusDetail, type ExecuteLimits, type Diagnostic, type ExecuteResult, type FunctionCallRequest, type FunctionSignature, type OneShotRequest, } from './api.js';
36
+ export { WorkspaceNotFoundErrorType, WorkspaceNotDeployedErrorType, WorkspaceExistsErrorType, LockHolderType, WorkspaceLockedErrorType, PackageNotFoundErrorType, PackageExistsErrorType, PackageInvalidErrorType, DatasetNotFoundErrorType, TaskNotFoundErrorType, ExecutionNotFoundErrorType, ObjectNotFoundErrorType, DataflowErrorType, PermissionDeniedErrorType, InternalErrorType, RepositoryNotFoundErrorType, ErrorType, ResponseType, RepositoryStatusType, GcRequestType, GcResultType, AsyncOperationStatusType, GcStartResultType, GcStatusResultType, PackageListItemType, PackageInfoType, PackageDetailsType, WorkspaceCreateRequestType, WorkspaceInfoType, WorkspaceDeployRequestType, WorkspaceExportRequestType, DatasetStatusType, TaskStatusUpToDateType, TaskStatusWaitingType, TaskStatusInProgressType, TaskStatusFailedType, TaskStatusErrorType, TaskStatusStaleRunningType, TaskStatusType, DatasetStatusInfoType, TaskStatusInfoType, WorkspaceStatusSummaryType, WorkspaceStatusResultType, TaskListItemType, TaskDetailsType, DataflowRequestType, LogChunkType, TaskExecutionResultType, DataflowResultType, DataflowEventType, ApiExecutionStatusType, DataflowExecutionSummaryType, ApiDataflowExecutionStateType, ExecutionHistoryStatusType, ExecutionListItemType, TreeKindType, ListEntryType, DatasetStatusDetailType, ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, 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 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 ApiDataflowExecutionState, type ExecutionHistoryStatus, type ExecutionListItem, type TreeKind, type ListEntry, type DatasetStatusDetail, type ExecuteLimits, type Diagnostic, type ExecuteResult, type FunctionCallRequest, type FunctionSignature, type OneShotRequest, type MutationCallRequest, type MutationResult, type RecordSignature, type RecordCommitInfo, type RecordHistoryResult, } from './api.js';
36
37
  export { type DataflowExecutionStatus, type TaskStatus, TaskStateType, type TaskState, DataflowGraphTaskType, type DataflowGraphTask, DataflowGraphType, type DataflowGraph, ExecutionEventType, type ExecutionEvent, DataflowExecutionStateType, type DataflowExecutionState, DataflowRunStatusType, type DataflowRunStatus, TaskExecutionRecordType, type TaskExecutionRecord, DataflowRunSummaryType, type DataflowRunSummary, DataflowRunType, type DataflowRun, } from './dataflow.js';
37
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EACL,WAAW,EACX,KAAK,OAAO,EACZ,aAAa,EACb,OAAO,EACP,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,iBAAiB,EACjB,KAAK,aAAa,EAClB,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,aAAa,EACb,KAAK,SAAS,EACd,eAAe,EACf,KAAK,WAAW,EAChB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EAEjB,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,kBAAkB,EAClB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,eAAe,EACf,KAAK,WAAW,EAChB,iBAAiB,EACjB,KAAK,aAAa,EAClB,mBAAmB,EAEnB,mBAAmB,EACnB,KAAK,eAAe,EAEpB,8BAA8B,EAC9B,KAAK,0BAA0B,EAC/B,+BAA+B,EAC/B,KAAK,2BAA2B,EAChC,sBAAsB,E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AAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,aAAa,EACb,KAAK,SAAS,EACd,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,KAAK,aAAa,EAClB,kBAAkB,EAClB,KAAK,cAAc,EACnB,0BAA0B,EAC1B,KAAK,sBAAsB,EAE3B,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,WAAW,GACjB,MAAM,eAAe,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,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,aAAa,EACb,KAAK,SAAS,EACd,eAAe,EACf,KAAK,WAAW,EAChB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EAEjB,iBAAiB,EACjB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,UAAU,EACV,KAAK,WAAW,EAChB,YAAY,GACb,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,kBAAkB,EAClB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,kBAAkB,EACl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mB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,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,kBAAkB,EAClB,KAAK,cAAc,EACnB,0BAA0B,EAC1B,KAAK,sBAAsB,EAE3B,qBAAqB,EACrB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,eAAe,EACf,KAAK,WAAW,GACjB,MAAM,eAAe,CAAC"}
package/dist/src/index.js CHANGED
@@ -34,6 +34,8 @@ DatasetSchemaType, } from './structure.js';
34
34
  export { RunnerType, runnerToArgv, } from './runner.js';
35
35
  // Function objects
36
36
  export { FunctionObjectType, } from './function.js';
37
+ // Record objects
38
+ export { RecordCommitType, MutationObjectType, RecordObjectType, } from './record.js';
37
39
  // Package objects
38
40
  export { PackageDataType, PackageObjectType, decodePackageObject,
39
41
  // Backwards compatibility
@@ -75,7 +77,7 @@ TreeKindType, ListEntryType,
75
77
  // Dataset Status Detail
76
78
  DatasetStatusDetailType,
77
79
  // Function / one-shot execution
78
- ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, } from './api.js';
80
+ ExecuteLimitsType, DiagnosticType, ExecuteResultType, FunctionCallRequestType, FunctionSignatureType, OneShotRequestType, MutationCallRequestType, MutationResultType, RecordSignatureType, RecordCommitInfoType, RecordHistoryResultType, } from './api.js';
79
81
  // Dataflow execution state
80
82
  export { TaskStateType, DataflowGraphTaskType, DataflowGraphType, ExecutionEventType, DataflowExecutionStateType,
81
83
  // Dataflow run history
@@ -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,cAAc,GAEf,MAAM,WAAW,CAAC;AAEnB,2BAA2B;AAC3B,OAAO,EACL,aAAa,EAEb,eAAe,EAEf,YAAY,EAKZ,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,iBAAiB;AACjB,0BAA0B;AAC1B,iBAAiB,GAElB,MAAM,gBAAgB,CAAC;AAExB,gCAAgC;AAChC,OAAO,EACL,UAAU,EAEV,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,mBAAmB;AACnB,OAAO,EACL,kBAAkB,GAEnB,MAAM,eAAe,CAAC;AAEvB,kBAAkB;AAClB,OAAO,EACL,eAAe,EAEf,iBAAiB,EAEjB,mBAAmB;AACnB,0BAA0B;AAC1B,mBAAmB;AAEnB,yBAAyB;AACzB,8BAA8B,EAE9B,+BAA+B,EAE/B,sBAAsB,EAEtB,uBAAuB,EAEvB,uBAAuB,EAEvB,yBAAyB,EAEzB,uBAAuB,EAEvB,yBAAyB,EAEzB,uBAAuB,GAExB,MAAM,c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B,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB;AACzB,QAAQ;AACR,gBAAgB,EAChB,eAAe;AACf,YAAY;AACZ,mBAAmB,EACnB,YAAY,EACZ,uBAAuB,EACvB,kBAAkB;AAClB,uBAAuB;AACvB,iBAAiB,EACjB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B;AAC7B,yBAAyB;AACzB,0BAA0B,EAC1B,qBAAqB;AACrB,eAAe;AACf,YAAY,EACZ,aAAa;AACb,wBAAwB;AACxB,uBAAuB;AACvB,gCAAgC;AAChC,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,GA+CxB,MAAM,UAAU,CAAC;AAElB,2BAA2B;AAC3B,OAAO,EAGL,aAAa,EAEb,qBAAqB,EAErB,iBAAiB,EAEjB,kBAAkB,EAElB,0BAA0B;AAE1B,uBAAuB;AACvB,qBAAqB,EAErB,uBAAuB,EAEvB,sBAAsB,EAEtB,eAAe,GAEhB,MAAM,eAAe,CAAC"}
@@ -246,21 +246,23 @@ export declare const PackageObjectType: StructType<{
246
246
  }>;
247
247
  }>>;
248
248
  }>;
249
- /** Functions defined in this package: name -> FunctionObject hash.
250
- * BEAST2 encodes struct fields positionally in declaration order, so this
251
- * field MUST stay last — never insert between `tasks` and `data`. */
249
+ /** Functions defined in this package: name -> FunctionObject hash. */
252
250
  readonly functions: DictType<StringType, StringType>;
251
+ /** Records defined in this package: name -> RecordObject hash.
252
+ * BEAST2 encodes struct fields positionally in declaration order, so new
253
+ * fields MUST be appended LAST — never inserted between existing fields. */
254
+ readonly records: DictType<StringType, StringType>;
253
255
  }>;
254
256
  export type PackageObjectType = typeof PackageObjectType;
255
257
  export type PackageObject = ValueTypeOf<typeof PackageObjectType>;
256
258
  /**
257
- * Decode a `PackageObject` from BEAST2 bytes, tolerating the pre-`functions`
258
- * wire format (dual-decode migration).
259
+ * Decode a `PackageObject` from BEAST2 bytes, tolerating the two older wire
260
+ * formats (dual-decode migration).
259
261
  *
260
262
  * Every package-read path — local AND cloud — must use this instead of
261
263
  * `decodeBeast2For(PackageObjectType)` directly, so packages exported before
262
- * the `functions` field existed keep decoding. Old bytes decode with
263
- * `functions` defaulted to an empty map.
264
+ * the `records`/`functions` fields existed keep decoding. Older bytes decode
265
+ * with the missing maps defaulted to empty.
264
266
  */
265
267
  export declare function decodePackageObject(data: Uint8Array): PackageObject;
266
268
  export declare const PackageTransferInitRequestType: StructType<{
@@ -1 +1 @@
1
- {"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAC;AAInI;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;IAC1B,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEhE,uEAAuE;;;;;;;;;;;EAEvE,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAG9D,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB;IAX9B,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEhE,uEAAuE;;;;;;;;;;;EASvB,CAAC;AACnD,0CAA0C;AAC1C,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAClD,0CAA0C;AAC1C,MAAM,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F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAMlC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -65,13 +65,25 @@ export const PackageObjectType = StructType({
65
65
  tasks: DictType(StringType, StringType),
66
66
  /** Data structure and initial values */
67
67
  data: PackageDataType,
68
- /** Functions defined in this package: name -> FunctionObject hash.
69
- * BEAST2 encodes struct fields positionally in declaration order, so this
70
- * field MUST stay last — never insert between `tasks` and `data`. */
68
+ /** Functions defined in this package: name -> FunctionObject hash. */
71
69
  functions: DictType(StringType, StringType),
70
+ /** Records defined in this package: name -> RecordObject hash.
71
+ * BEAST2 encodes struct fields positionally in declaration order, so new
72
+ * fields MUST be appended LAST — never inserted between existing fields. */
73
+ records: DictType(StringType, StringType),
72
74
  });
73
75
  /**
74
- * The pre-`functions` package object wire shape, kept only so
76
+ * The pre-`records` package object wire shape (tasks, data, functions), kept
77
+ * only so {@link decodePackageObject} can read packages exported before records
78
+ * existed.
79
+ */
80
+ const FunctionsEraPackageObjectType = StructType({
81
+ tasks: DictType(StringType, StringType),
82
+ data: PackageDataType,
83
+ functions: DictType(StringType, StringType),
84
+ });
85
+ /**
86
+ * The pre-`functions` package object wire shape (tasks, data), kept only so
75
87
  * {@link decodePackageObject} can read packages exported before functions
76
88
  * existed.
77
89
  */
@@ -80,15 +92,16 @@ const LegacyPackageObjectType = StructType({
80
92
  data: PackageDataType,
81
93
  });
82
94
  const decodeCurrent = decodeBeast2For(PackageObjectType);
95
+ const decodeFunctionsEra = decodeBeast2For(FunctionsEraPackageObjectType);
83
96
  const decodeLegacy = decodeBeast2For(LegacyPackageObjectType);
84
97
  /**
85
- * Decode a `PackageObject` from BEAST2 bytes, tolerating the pre-`functions`
86
- * wire format (dual-decode migration).
98
+ * Decode a `PackageObject` from BEAST2 bytes, tolerating the two older wire
99
+ * formats (dual-decode migration).
87
100
  *
88
101
  * Every package-read path — local AND cloud — must use this instead of
89
102
  * `decodeBeast2For(PackageObjectType)` directly, so packages exported before
90
- * the `functions` field existed keep decoding. Old bytes decode with
91
- * `functions` defaulted to an empty map.
103
+ * the `records`/`functions` fields existed keep decoding. Older bytes decode
104
+ * with the missing maps defaulted to empty.
92
105
  */
93
106
  export function decodePackageObject(data) {
94
107
  try {
@@ -96,11 +109,17 @@ export function decodePackageObject(data) {
96
109
  }
97
110
  catch (err) {
98
111
  try {
99
- const legacy = decodeLegacy(data);
100
- return { tasks: legacy.tasks, data: legacy.data, functions: new Map() };
112
+ const fnEra = decodeFunctionsEra(data);
113
+ return { tasks: fnEra.tasks, data: fnEra.data, functions: fnEra.functions, records: new Map() };
101
114
  }
102
115
  catch {
103
- throw err; // neither shape — surface the current-format error
116
+ try {
117
+ const legacy = decodeLegacy(data);
118
+ return { tasks: legacy.tasks, data: legacy.data, functions: new Map(), records: new Map() };
119
+ }
120
+ catch {
121
+ throw err; // no known shape — surface the current-format error
122
+ }
104
123
  }
105
124
  }
106
125
  }
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAe,eAAe,EAAE,MAAM,eAAe,CAAC;AACnI,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;IACxC,gEAAgE;IAChE,SAAS,EAAE,aAAa;IACxB,uEAAuE;IACvE,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;CAC3C,CAAC,CAAC;AAKH,gCAAgC;AAChC,8CAA8C;AAC9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CA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See LICENSE for details.
4
+ */
5
+ /**
6
+ * Record object types for e3.
7
+ *
8
+ * An `e3.record` is a root dataset whose writes go through named, typed, pure
9
+ * East **mutations** rather than blind replace. Each committed mutation appends
10
+ * a content-addressed commit object, so a record's history is a git-style chain
11
+ * — the audit trail of who changed what, when, superseding which state.
12
+ *
13
+ * The record's current state is an ordinary `value` dataset ref (its `hash`
14
+ * points at the plain state blob), so every existing read path — task inputs,
15
+ * `e3 get`, the UI `Data.bind` read — works on records unchanged. Only the
16
+ * write protocol differs.
17
+ */
18
+ import { StructType, StringType, OptionType, DateTimeType, ArrayType, DictType, ValueTypeOf } from '@elaraai/east';
19
+ /**
20
+ * A single commit in a record's history.
21
+ *
22
+ * Commits are ordinary content-addressed objects; a typical one is a few
23
+ * hundred bytes. The record ref's version-vector self-entry carries the commit
24
+ * hash (not the state hash), so change detection is commit-granular and there
25
+ * is no ABA even when a mutation reproduces an earlier state.
26
+ */
27
+ export declare const RecordCommitType: StructType<{
28
+ /** Previous commit hash; none for the genesis commit. */
29
+ readonly parent: OptionType<StringType>;
30
+ /** Hash of the state blob this commit produced (== the ref's value.hash). */
31
+ readonly state: StringType;
32
+ /** Mutation name; `$init` for genesis, `$compact` for snapshot rewrites. */
33
+ readonly mutation: StringType;
34
+ /** Hash of the beast2-encoded args tuple; none when the mutation has no args. */
35
+ readonly args: OptionType<StringType>;
36
+ /** Caller identity (auth principal / `cli:<user>`); best-effort string. */
37
+ readonly actor: StringType;
38
+ /** Commit wall-clock time. */
39
+ readonly at: DateTimeType;
40
+ }>;
41
+ export type RecordCommitType = typeof RecordCommitType;
42
+ export type RecordCommit = ValueTypeOf<typeof RecordCommitType>;
43
+ /**
44
+ * A mutation: the write half of the function machinery (CQRS — `e3.function`
45
+ * is the read/query half). A mutation is a pure East reducer
46
+ * `(State, ...Args) => State` run where the data is, in a compare-and-swap
47
+ * retry loop. Its output type IS the owning record's type, so — unlike a
48
+ * {@link FunctionObjectType} — there is no separate `outputType` field.
49
+ */
50
+ export declare const MutationObjectType: StructType<{
51
+ /** Hash of the encoded EastIR bundle (encodeEastIR), like a function's bodyIr. */
52
+ readonly bodyIr: StringType;
53
+ /** The EXTRA positional parameter types after the state parameter. */
54
+ readonly argTypes: ArrayType<import("@elaraai/east").RecursiveType<import("@elaraai/east").VariantType<{
55
+ readonly Never: import("@elaraai/east").NullType;
56
+ readonly Null: import("@elaraai/east").NullType;
57
+ readonly Boolean: import("@elaraai/east").NullType;
58
+ readonly Integer: import("@elaraai/east").NullType;
59
+ readonly Float: import("@elaraai/east").NullType;
60
+ readonly String: import("@elaraai/east").NullType;
61
+ readonly DateTime: import("@elaraai/east").NullType;
62
+ readonly Blob: import("@elaraai/east").NullType;
63
+ readonly Ref: import("@elaraai/east").RecursiveTypeMarker;
64
+ readonly Array: import("@elaraai/east").RecursiveTypeMarker;
65
+ readonly Set: import("@elaraai/east").RecursiveTypeMarker;
66
+ readonly Dict: StructType<{
67
+ readonly key: import("@elaraai/east").RecursiveTypeMarker;
68
+ readonly value: import("@elaraai/east").RecursiveTypeMarker;
69
+ }>;
70
+ readonly Struct: ArrayType<StructType<{
71
+ readonly name: StringType;
72
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
73
+ }>>;
74
+ readonly Variant: ArrayType<StructType<{
75
+ readonly name: StringType;
76
+ readonly type: import("@elaraai/east").RecursiveTypeMarker;
77
+ }>>;
78
+ readonly Recursive: import("@elaraai/east").VariantType<{
79
+ readonly ref: import("@elaraai/east").IntegerType;
80
+ readonly wrapper: StructType<{
81
+ readonly id: import("@elaraai/east").IntegerType;
82
+ readonly inner: import("@elaraai/east").RecursiveTypeMarker;
83
+ }>;
84
+ }>;
85
+ readonly Function: StructType<{
86
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
87
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
88
+ }>;
89
+ readonly AsyncFunction: StructType<{
90
+ readonly inputs: ArrayType<import("@elaraai/east").RecursiveTypeMarker>;
91
+ readonly output: import("@elaraai/east").RecursiveTypeMarker;
92
+ }>;
93
+ readonly Vector: import("@elaraai/east").RecursiveTypeMarker;
94
+ readonly Matrix: import("@elaraai/east").RecursiveTypeMarker;
95
+ }>>>;
96
+ /** Author-chosen runtime; resolved to argv by runnerToArgv. */
97
+ readonly runner: import("@elaraai/east").VariantType<{
98
+ readonly east_node: StructType<{
99
+ readonly platforms: ArrayType<StringType>;
100
+ }>;
101
+ readonly east_py: StructType<{
102
+ readonly platforms: ArrayType<StringType>;
103
+ }>;
104
+ readonly east_c: StructType<{
105
+ readonly platforms: ArrayType<StringType>;
106
+ }>;
107
+ readonly custom: StructType<{
108
+ readonly command: ArrayType<StringType>;
109
+ }>;
110
+ }>;
111
+ }>;
112
+ export type MutationObjectType = typeof MutationObjectType;
113
+ export type MutationObject = ValueTypeOf<typeof MutationObjectType>;
114
+ /**
115
+ * Record object stored in the object store, referenced by name from
116
+ * `PackageObject.records`. Carries the record's dataset path and its mutations.
117
+ */
118
+ export declare const RecordObjectType: StructType<{
119
+ /** refPath of the record's dataset, e.g. `records/orders`. */
120
+ readonly path: StringType;
121
+ /** Mutations by name -> MutationObject hash. */
122
+ readonly mutations: DictType<StringType, StringType>;
123
+ }>;
124
+ export type RecordObjectType = typeof RecordObjectType;
125
+ export type RecordObject = ValueTypeOf<typeof RecordObjectType>;
126
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAgB,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjI;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;IAC3B,yDAAyD;;IAEzD,6EAA6E;;IAE7E,4EAA4E;;IAE5E,iFAAiF;;IAEjF,2EAA2E;;IAE3E,8BAA8B;;EAE9B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;IAC7B,kFAAkF;;IAElF,sEAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEtE,+DAA+D;;;;;;;;;;;;;;;EAE/D,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,8DAA8D;;IAE9D,gDAAgD;;EAEhD,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,67 @@
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
+ * Record object types for e3.
7
+ *
8
+ * An `e3.record` is a root dataset whose writes go through named, typed, pure
9
+ * East **mutations** rather than blind replace. Each committed mutation appends
10
+ * a content-addressed commit object, so a record's history is a git-style chain
11
+ * — the audit trail of who changed what, when, superseding which state.
12
+ *
13
+ * The record's current state is an ordinary `value` dataset ref (its `hash`
14
+ * points at the plain state blob), so every existing read path — task inputs,
15
+ * `e3 get`, the UI `Data.bind` read — works on records unchanged. Only the
16
+ * write protocol differs.
17
+ */
18
+ import { StructType, StringType, OptionType, DateTimeType, ArrayType, DictType, EastTypeType } from '@elaraai/east';
19
+ import { RunnerType } from './runner.js';
20
+ /**
21
+ * A single commit in a record's history.
22
+ *
23
+ * Commits are ordinary content-addressed objects; a typical one is a few
24
+ * hundred bytes. The record ref's version-vector self-entry carries the commit
25
+ * hash (not the state hash), so change detection is commit-granular and there
26
+ * is no ABA even when a mutation reproduces an earlier state.
27
+ */
28
+ export const RecordCommitType = StructType({
29
+ /** Previous commit hash; none for the genesis commit. */
30
+ parent: OptionType(StringType),
31
+ /** Hash of the state blob this commit produced (== the ref's value.hash). */
32
+ state: StringType,
33
+ /** Mutation name; `$init` for genesis, `$compact` for snapshot rewrites. */
34
+ mutation: StringType,
35
+ /** Hash of the beast2-encoded args tuple; none when the mutation has no args. */
36
+ args: OptionType(StringType),
37
+ /** Caller identity (auth principal / `cli:<user>`); best-effort string. */
38
+ actor: StringType,
39
+ /** Commit wall-clock time. */
40
+ at: DateTimeType,
41
+ });
42
+ /**
43
+ * A mutation: the write half of the function machinery (CQRS — `e3.function`
44
+ * is the read/query half). A mutation is a pure East reducer
45
+ * `(State, ...Args) => State` run where the data is, in a compare-and-swap
46
+ * retry loop. Its output type IS the owning record's type, so — unlike a
47
+ * {@link FunctionObjectType} — there is no separate `outputType` field.
48
+ */
49
+ export const MutationObjectType = StructType({
50
+ /** Hash of the encoded EastIR bundle (encodeEastIR), like a function's bodyIr. */
51
+ bodyIr: StringType,
52
+ /** The EXTRA positional parameter types after the state parameter. */
53
+ argTypes: ArrayType(EastTypeType),
54
+ /** Author-chosen runtime; resolved to argv by runnerToArgv. */
55
+ runner: RunnerType,
56
+ });
57
+ /**
58
+ * Record object stored in the object store, referenced by name from
59
+ * `PackageObject.records`. Carries the record's dataset path and its mutations.
60
+ */
61
+ export const RecordObjectType = StructType({
62
+ /** refPath of the record's dataset, e.g. `records/orders`. */
63
+ path: StringType,
64
+ /** Mutations by name -> MutationObject hash. */
65
+ mutations: DictType(StringType, StringType),
66
+ });
67
+ //# sourceMappingURL=record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.js","sourceRoot":"","sources":["../../src/record.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAe,MAAM,eAAe,CAAC;AACjI,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,yDAAyD;IACzD,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC9B,6EAA6E;IAC7E,KAAK,EAAE,UAAU;IACjB,4EAA4E;IAC5E,QAAQ,EAAE,UAAU;IACpB,iFAAiF;IACjF,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAC5B,2EAA2E;IAC3E,KAAK,EAAE,UAAU;IACjB,8BAA8B;IAC9B,EAAE,EAAE,YAAY;CACjB,CAAC,CAAC;AAIH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,kFAAkF;IAClF,MAAM,EAAE,UAAU;IAClB,sEAAsE;IACtE,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC;IACjC,+DAA+D;IAC/D,MAAM,EAAE,UAAU;CACnB,CAAC,CAAC;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACzC,8DAA8D;IAC9D,IAAI,EAAE,UAAU;IAChB,gDAAgD;IAChD,SAAS,EAAE,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CAC5C,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/e3-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
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.12"
21
+ "@elaraai/east": "1.0.14"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@typescript-eslint/eslint-plugin": "^8.47.0",
package/src/api.ts CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  BooleanType,
30
30
  BlobType,
31
31
  NullType,
32
+ DateTimeType,
32
33
  EastTypeType,
33
34
  type EastType,
34
35
  type ValueTypeOf,
@@ -810,6 +811,65 @@ export const OneShotRequestType = StructType({
810
811
  limits: OptionType(ExecuteLimitsType),
811
812
  });
812
813
 
814
+ /**
815
+ * A record mutation call. Positional args (after the implicit current state),
816
+ * one beast2-encoded value per declared parameter.
817
+ */
818
+ export const MutationCallRequestType = StructType({
819
+ args: ArrayType(BlobType),
820
+ actor: OptionType(StringType), // caller identity; the server may override from auth
821
+ limits: OptionType(ExecuteLimitsType),
822
+ });
823
+
824
+ /**
825
+ * The terminal result of a mutation call. Only `committed` wrote anything.
826
+ *
827
+ * - `committed`: the new commit + state hashes
828
+ * - `invalid`: record/mutation lookup or arity error; nothing ran
829
+ * - `failed`: the reducer process exited non-zero (incl. a reducer `$.error`; see stderr)
830
+ * - `too_large`: the new state exceeded the result cap
831
+ * - `timed_out`: the reducer exceeded its time budget
832
+ * - `conflict`: the compare-and-swap lost the race `attempts` times
833
+ */
834
+ export const MutationResultType = StructType({
835
+ outcome: VariantType({
836
+ committed: StructType({ commitHash: StringType, stateHash: StringType }),
837
+ invalid: StructType({ message: StringType }),
838
+ failed: StructType({ exitCode: IntegerType, stderr: StringType }),
839
+ too_large: StructType({ bytes: IntegerType, limit: IntegerType, stderr: StringType }),
840
+ timed_out: StructType({ ms: IntegerType, stderr: StringType }),
841
+ conflict: StructType({ attempts: IntegerType }),
842
+ }),
843
+ });
844
+
845
+ /**
846
+ * A record's callable surface, returned by `describe` so dynamic callers can
847
+ * encode mutation arguments. The mutation `argTypes` are the EXTRA parameters
848
+ * after the implicit current state.
849
+ */
850
+ export const RecordSignatureType = StructType({
851
+ name: StringType,
852
+ mutations: ArrayType(StructType({
853
+ name: StringType,
854
+ argTypes: ArrayType(EastTypeType),
855
+ })),
856
+ });
857
+
858
+ /** One commit in a record's history (its hash plus the commit fields). */
859
+ export const RecordCommitInfoType = StructType({
860
+ hash: StringType,
861
+ parent: OptionType(StringType),
862
+ state: StringType,
863
+ mutation: StringType,
864
+ actor: StringType,
865
+ at: DateTimeType,
866
+ });
867
+
868
+ /** A page of a record's commit history, newest first. */
869
+ export const RecordHistoryResultType = StructType({
870
+ commits: ArrayType(RecordCommitInfoType),
871
+ });
872
+
813
873
  // =============================================================================
814
874
  // Value type aliases
815
875
  // =============================================================================
@@ -854,3 +914,8 @@ export type ExecuteResult = ValueTypeOf<typeof ExecuteResultType>;
854
914
  export type FunctionCallRequest = ValueTypeOf<typeof FunctionCallRequestType>;
855
915
  export type FunctionSignature = ValueTypeOf<typeof FunctionSignatureType>;
856
916
  export type OneShotRequest = ValueTypeOf<typeof OneShotRequestType>;
917
+ export type MutationCallRequest = ValueTypeOf<typeof MutationCallRequestType>;
918
+ export type MutationResult = ValueTypeOf<typeof MutationResultType>;
919
+ export type RecordSignature = ValueTypeOf<typeof RecordSignatureType>;
920
+ export type RecordCommitInfo = ValueTypeOf<typeof RecordCommitInfoType>;
921
+ export type RecordHistoryResult = ValueTypeOf<typeof RecordHistoryResultType>;
package/src/index.ts CHANGED
@@ -80,6 +80,16 @@ export {
80
80
  type FunctionObject,
81
81
  } from './function.js';
82
82
 
83
+ // Record objects
84
+ export {
85
+ RecordCommitType,
86
+ type RecordCommit,
87
+ MutationObjectType,
88
+ type MutationObject,
89
+ RecordObjectType,
90
+ type RecordObject,
91
+ } from './record.js';
92
+
83
93
  // Package objects
84
94
  export {
85
95
  PackageDataType,
@@ -224,6 +234,11 @@ export {
224
234
  FunctionCallRequestType,
225
235
  FunctionSignatureType,
226
236
  OneShotRequestType,
237
+ MutationCallRequestType,
238
+ MutationResultType,
239
+ RecordSignatureType,
240
+ RecordCommitInfoType,
241
+ RecordHistoryResultType,
227
242
  // Type aliases
228
243
  type Error,
229
244
  type RepositoryStatus,
@@ -265,6 +280,11 @@ export {
265
280
  type FunctionCallRequest,
266
281
  type FunctionSignature,
267
282
  type OneShotRequest,
283
+ type MutationCallRequest,
284
+ type MutationResult,
285
+ type RecordSignature,
286
+ type RecordCommitInfo,
287
+ type RecordHistoryResult,
268
288
  } from './api.js';
269
289
 
270
290
  // Dataflow execution state
package/src/package.ts CHANGED
@@ -77,17 +77,30 @@ export const PackageObjectType = StructType({
77
77
  tasks: DictType(StringType, StringType),
78
78
  /** Data structure and initial values */
79
79
  data: PackageDataType,
80
- /** Functions defined in this package: name -> FunctionObject hash.
81
- * BEAST2 encodes struct fields positionally in declaration order, so this
82
- * field MUST stay last — never insert between `tasks` and `data`. */
80
+ /** Functions defined in this package: name -> FunctionObject hash. */
83
81
  functions: DictType(StringType, StringType),
82
+ /** Records defined in this package: name -> RecordObject hash.
83
+ * BEAST2 encodes struct fields positionally in declaration order, so new
84
+ * fields MUST be appended LAST — never inserted between existing fields. */
85
+ records: DictType(StringType, StringType),
84
86
  });
85
87
  export type PackageObjectType = typeof PackageObjectType;
86
88
 
87
89
  export type PackageObject = ValueTypeOf<typeof PackageObjectType>;
88
90
 
89
91
  /**
90
- * The pre-`functions` package object wire shape, kept only so
92
+ * The pre-`records` package object wire shape (tasks, data, functions), kept
93
+ * only so {@link decodePackageObject} can read packages exported before records
94
+ * existed.
95
+ */
96
+ const FunctionsEraPackageObjectType = StructType({
97
+ tasks: DictType(StringType, StringType),
98
+ data: PackageDataType,
99
+ functions: DictType(StringType, StringType),
100
+ });
101
+
102
+ /**
103
+ * The pre-`functions` package object wire shape (tasks, data), kept only so
91
104
  * {@link decodePackageObject} can read packages exported before functions
92
105
  * existed.
93
106
  */
@@ -97,26 +110,32 @@ const LegacyPackageObjectType = StructType({
97
110
  });
98
111
 
99
112
  const decodeCurrent = decodeBeast2For(PackageObjectType);
113
+ const decodeFunctionsEra = decodeBeast2For(FunctionsEraPackageObjectType);
100
114
  const decodeLegacy = decodeBeast2For(LegacyPackageObjectType);
101
115
 
102
116
  /**
103
- * Decode a `PackageObject` from BEAST2 bytes, tolerating the pre-`functions`
104
- * wire format (dual-decode migration).
117
+ * Decode a `PackageObject` from BEAST2 bytes, tolerating the two older wire
118
+ * formats (dual-decode migration).
105
119
  *
106
120
  * Every package-read path — local AND cloud — must use this instead of
107
121
  * `decodeBeast2For(PackageObjectType)` directly, so packages exported before
108
- * the `functions` field existed keep decoding. Old bytes decode with
109
- * `functions` defaulted to an empty map.
122
+ * the `records`/`functions` fields existed keep decoding. Older bytes decode
123
+ * with the missing maps defaulted to empty.
110
124
  */
111
125
  export function decodePackageObject(data: Uint8Array): PackageObject {
112
126
  try {
113
127
  return decodeCurrent(data);
114
128
  } catch (err) {
115
129
  try {
116
- const legacy = decodeLegacy(data);
117
- return { tasks: legacy.tasks, data: legacy.data, functions: new Map() };
130
+ const fnEra = decodeFunctionsEra(data);
131
+ return { tasks: fnEra.tasks, data: fnEra.data, functions: fnEra.functions, records: new Map() };
118
132
  } catch {
119
- throw err; // neither shape — surface the current-format error
133
+ try {
134
+ const legacy = decodeLegacy(data);
135
+ return { tasks: legacy.tasks, data: legacy.data, functions: new Map(), records: new Map() };
136
+ } catch {
137
+ throw err; // no known shape — surface the current-format error
138
+ }
120
139
  }
121
140
  }
122
141
  }
package/src/record.ts ADDED
@@ -0,0 +1,77 @@
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
+ /**
7
+ * Record object types for e3.
8
+ *
9
+ * An `e3.record` is a root dataset whose writes go through named, typed, pure
10
+ * East **mutations** rather than blind replace. Each committed mutation appends
11
+ * a content-addressed commit object, so a record's history is a git-style chain
12
+ * — the audit trail of who changed what, when, superseding which state.
13
+ *
14
+ * The record's current state is an ordinary `value` dataset ref (its `hash`
15
+ * points at the plain state blob), so every existing read path — task inputs,
16
+ * `e3 get`, the UI `Data.bind` read — works on records unchanged. Only the
17
+ * write protocol differs.
18
+ */
19
+
20
+ import { StructType, StringType, OptionType, DateTimeType, ArrayType, DictType, EastTypeType, ValueTypeOf } from '@elaraai/east';
21
+ import { RunnerType } from './runner.js';
22
+
23
+ /**
24
+ * A single commit in a record's history.
25
+ *
26
+ * Commits are ordinary content-addressed objects; a typical one is a few
27
+ * hundred bytes. The record ref's version-vector self-entry carries the commit
28
+ * hash (not the state hash), so change detection is commit-granular and there
29
+ * is no ABA even when a mutation reproduces an earlier state.
30
+ */
31
+ export const RecordCommitType = StructType({
32
+ /** Previous commit hash; none for the genesis commit. */
33
+ parent: OptionType(StringType),
34
+ /** Hash of the state blob this commit produced (== the ref's value.hash). */
35
+ state: StringType,
36
+ /** Mutation name; `$init` for genesis, `$compact` for snapshot rewrites. */
37
+ mutation: StringType,
38
+ /** Hash of the beast2-encoded args tuple; none when the mutation has no args. */
39
+ args: OptionType(StringType),
40
+ /** Caller identity (auth principal / `cli:<user>`); best-effort string. */
41
+ actor: StringType,
42
+ /** Commit wall-clock time. */
43
+ at: DateTimeType,
44
+ });
45
+ export type RecordCommitType = typeof RecordCommitType;
46
+ export type RecordCommit = ValueTypeOf<typeof RecordCommitType>;
47
+
48
+ /**
49
+ * A mutation: the write half of the function machinery (CQRS — `e3.function`
50
+ * is the read/query half). A mutation is a pure East reducer
51
+ * `(State, ...Args) => State` run where the data is, in a compare-and-swap
52
+ * retry loop. Its output type IS the owning record's type, so — unlike a
53
+ * {@link FunctionObjectType} — there is no separate `outputType` field.
54
+ */
55
+ export const MutationObjectType = StructType({
56
+ /** Hash of the encoded EastIR bundle (encodeEastIR), like a function's bodyIr. */
57
+ bodyIr: StringType,
58
+ /** The EXTRA positional parameter types after the state parameter. */
59
+ argTypes: ArrayType(EastTypeType),
60
+ /** Author-chosen runtime; resolved to argv by runnerToArgv. */
61
+ runner: RunnerType,
62
+ });
63
+ export type MutationObjectType = typeof MutationObjectType;
64
+ export type MutationObject = ValueTypeOf<typeof MutationObjectType>;
65
+
66
+ /**
67
+ * Record object stored in the object store, referenced by name from
68
+ * `PackageObject.records`. Carries the record's dataset path and its mutations.
69
+ */
70
+ export const RecordObjectType = StructType({
71
+ /** refPath of the record's dataset, e.g. `records/orders`. */
72
+ path: StringType,
73
+ /** Mutations by name -> MutationObject hash. */
74
+ mutations: DictType(StringType, StringType),
75
+ });
76
+ export type RecordObjectType = typeof RecordObjectType;
77
+ export type RecordObject = ValueTypeOf<typeof RecordObjectType>;