@githolon/runtime 0.114.0 → 0.116.2
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/RUNTIME-SOURCES.sha256 +82 -63
- package/dist/application-reception.js +2 -2
- package/dist/nomos-native-runtime.js +5387 -2747
- package/dist/nomos-runner-web.js +351 -9
- package/dist/nomos-runner-worker.js +8331 -2727
- package/dist/nomos-runner.js +8056 -2784
- package/dist/remote-reception.cjs +20 -20
- package/dist/remote-reception.js +20 -20
- package/dist/typescript-application-desk.js +23 -23
- package/package.json +1 -1
- package/runner/build.ts +6 -1
- package/runner/node-entry.mjs +4733 -1534
- package/src/application_reception.ts +15 -0
- package/src/protocol/nomos/kernel/v1/kernel_pb.d.ts +263 -0
- package/src/protocol/nomos/kernel/v1/kernel_pb.js +323 -281
- package/src/protocol/nomos/runtime/v2/correspondence_desk_pb.d.ts +704 -0
- package/src/protocol/nomos/runtime/v2/correspondence_desk_pb.js +115 -24
- package/src/protocol/nomos/runtime/v2/model_adoption_desk_pb.d.ts +43 -0
- package/src/protocol/nomos/runtime/v2/model_adoption_desk_pb.js +10 -3
- package/src/protocol/nomos/runtime/v2/observability_desk_pb.d.ts +11 -0
- package/src/protocol/nomos/runtime/v2/observability_desk_pb.js +1 -1
- package/src/protocol/nomos/runtime/v2/records_desk_pb.d.ts +10 -0
- package/src/protocol/nomos/runtime/v2/records_desk_pb.js +1 -1
- package/src/protocol/nomos/runtime/v2/runtime_pb.d.ts +15 -1
- package/src/protocol/nomos/runtime/v2/runtime_pb.js +1 -1
|
@@ -115,10 +115,25 @@ export interface ReceptionSession<ApplicationDesk> {
|
|
|
115
115
|
close(): Promise<void>;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* One application domain's requirement (CAP-666), as the compiler generated it beside the unit set: the
|
|
120
|
+
* hash of the domain's law unit (`domain:<key>` of the unit set) and the sha256 of the domain's own slice
|
|
121
|
+
* of the generated compatibility requirement. A workspace serving exactly that unit for the key is
|
|
122
|
+
* current for this build whatever else its unit set carries. Identities only; never a verdict.
|
|
123
|
+
*/
|
|
124
|
+
export interface ApplicationDomainRequirement {
|
|
125
|
+
readonly domainKey: string;
|
|
126
|
+
readonly unitSha256: string;
|
|
127
|
+
readonly requirementSha256: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
118
130
|
/** Immutable compatibility requirements emitted from the compiler graph. */
|
|
119
131
|
export interface ApplicationCompatibility {
|
|
120
132
|
readonly lawIdentity: Sha256Digest;
|
|
121
133
|
readonly matrixUsda: Uint8Array;
|
|
134
|
+
/** Per application domain key (CAP-666). Absent on a client generated before the table existed:
|
|
135
|
+
* the unit set alone then decides. */
|
|
136
|
+
readonly domainRequirements?: Readonly<Record<string, ApplicationDomainRequirement>>;
|
|
122
137
|
readonly readyCommands: readonly {
|
|
123
138
|
readonly domain: string;
|
|
124
139
|
readonly packageHash: Sha256Digest;
|
|
@@ -723,6 +723,16 @@ export declare type OfferAdmitted = Message<"nomos.kernel.v1.OfferAdmitted"> & {
|
|
|
723
723
|
* @generated from field: optional nomos.kernel.v1.OfferStateChange state_change = 13;
|
|
724
724
|
*/
|
|
725
725
|
stateChange?: OfferStateChange | undefined;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* CAP-811: this offer installed, staged or promoted law whose claimed version is equal to or lower
|
|
729
|
+
* than the claim this workspace already serves for the same law identity (package name). Advice
|
|
730
|
+
* only: the offer was admitted, and the warning never enters custody. Empty when either side claims
|
|
731
|
+
* no version (era rule), when the identity was not served, or when the claim moves forward.
|
|
732
|
+
*
|
|
733
|
+
* @generated from field: repeated nomos.kernel.v1.LawVersionWarning law_version_warnings = 14;
|
|
734
|
+
*/
|
|
735
|
+
lawVersionWarnings: LawVersionWarning[];
|
|
726
736
|
};
|
|
727
737
|
|
|
728
738
|
/**
|
|
@@ -731,6 +741,110 @@ export declare type OfferAdmitted = Message<"nomos.kernel.v1.OfferAdmitted"> & {
|
|
|
731
741
|
*/
|
|
732
742
|
export declare const OfferAdmittedSchema: GenMessage<OfferAdmitted>;
|
|
733
743
|
|
|
744
|
+
/**
|
|
745
|
+
* A law's identity: its package name (/Nomos/Package nomos:name) (CAP-809, CAP-811).
|
|
746
|
+
*
|
|
747
|
+
* @generated from message nomos.kernel.v1.LawIdentity
|
|
748
|
+
*/
|
|
749
|
+
export declare type LawIdentity = Message<"nomos.kernel.v1.LawIdentity"> & {
|
|
750
|
+
/**
|
|
751
|
+
* @generated from field: string package_name = 1;
|
|
752
|
+
*/
|
|
753
|
+
packageName: string;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Describes the message nomos.kernel.v1.LawIdentity.
|
|
758
|
+
* Use `create(LawIdentitySchema)` to create a new message.
|
|
759
|
+
*/
|
|
760
|
+
export declare const LawIdentitySchema: GenMessage<LawIdentity>;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* One version of a law: its closure identity, a canonical lowercase SHA-256 digest (CAP-809).
|
|
764
|
+
*
|
|
765
|
+
* @generated from message nomos.kernel.v1.LawVersion
|
|
766
|
+
*/
|
|
767
|
+
export declare type LawVersion = Message<"nomos.kernel.v1.LawVersion"> & {
|
|
768
|
+
/**
|
|
769
|
+
* @generated from field: string closure_sha256 = 1;
|
|
770
|
+
*/
|
|
771
|
+
closureSha256: string;
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Describes the message nomos.kernel.v1.LawVersion.
|
|
776
|
+
* Use `create(LawVersionSchema)` to create a new message.
|
|
777
|
+
*/
|
|
778
|
+
export declare const LawVersionSchema: GenMessage<LawVersion>;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* A semver 2.0 claim without build metadata, as authored in nomos.project.ts (CAP-811).
|
|
782
|
+
*
|
|
783
|
+
* @generated from message nomos.kernel.v1.LawVersionClaim
|
|
784
|
+
*/
|
|
785
|
+
export declare type LawVersionClaim = Message<"nomos.kernel.v1.LawVersionClaim"> & {
|
|
786
|
+
/**
|
|
787
|
+
* @generated from field: string semver = 1;
|
|
788
|
+
*/
|
|
789
|
+
semver: string;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Describes the message nomos.kernel.v1.LawVersionClaim.
|
|
794
|
+
* Use `create(LawVersionClaimSchema)` to create a new message.
|
|
795
|
+
*/
|
|
796
|
+
export declare const LawVersionClaimSchema: GenMessage<LawVersionClaim>;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* An install that does not move its law's claimed version forward (CAP-811).
|
|
800
|
+
*
|
|
801
|
+
* @generated from message nomos.kernel.v1.LawVersionWarning
|
|
802
|
+
*/
|
|
803
|
+
export declare type LawVersionWarning = Message<"nomos.kernel.v1.LawVersionWarning"> & {
|
|
804
|
+
/**
|
|
805
|
+
* @generated from field: nomos.kernel.v1.LawIdentity law = 1;
|
|
806
|
+
*/
|
|
807
|
+
law?: LawIdentity | undefined;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: nomos.kernel.v1.LawVersionOrder order = 2;
|
|
811
|
+
*/
|
|
812
|
+
order: LawVersionOrder;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: nomos.kernel.v1.LawVersionClaim installed_claim = 3;
|
|
816
|
+
*/
|
|
817
|
+
installedClaim?: LawVersionClaim | undefined;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* @generated from field: nomos.kernel.v1.LawVersion installed_version = 4;
|
|
821
|
+
*/
|
|
822
|
+
installedVersion?: LawVersion | undefined;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @generated from field: nomos.kernel.v1.LawVersionClaim served_claim = 5;
|
|
826
|
+
*/
|
|
827
|
+
servedClaim?: LawVersionClaim | undefined;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* @generated from field: nomos.kernel.v1.LawVersion served_version = 6;
|
|
831
|
+
*/
|
|
832
|
+
servedVersion?: LawVersion | undefined;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Human-readable summary of the same facts.
|
|
836
|
+
*
|
|
837
|
+
* @generated from field: string message = 7;
|
|
838
|
+
*/
|
|
839
|
+
message: string;
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Describes the message nomos.kernel.v1.LawVersionWarning.
|
|
844
|
+
* Use `create(LawVersionWarningSchema)` to create a new message.
|
|
845
|
+
*/
|
|
846
|
+
export declare const LawVersionWarningSchema: GenMessage<LawVersionWarning>;
|
|
847
|
+
|
|
734
848
|
/**
|
|
735
849
|
* The aggregates one admitted offer changed, by the type a read resolves for each (its `__type`,
|
|
736
850
|
* else its id), between the head it was admitted on and the head it produced. Exact or wider,
|
|
@@ -1097,6 +1211,16 @@ export declare type OfferBlockedOnDependency = Message<"nomos.kernel.v1.OfferBlo
|
|
|
1097
1211
|
* @generated from field: nomos.kernel.v1.NomosStruct diagnostics = 3;
|
|
1098
1212
|
*/
|
|
1099
1213
|
diagnostics?: NomosStruct | undefined;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Present only when the kernel itself found that a read the authored plan made needs a
|
|
1217
|
+
* derivative only background maintenance builds (CAP-824): the exact workspace position owed.
|
|
1218
|
+
* Not a verdict of law. The same offer, made again once maintenance has repaid it, is judged.
|
|
1219
|
+
* Absent for every other blocked dependency; a peer never infers it from `detail`.
|
|
1220
|
+
*
|
|
1221
|
+
* @generated from field: nomos.kernel.v1.ReadIndexPending awaits_maintenance = 4;
|
|
1222
|
+
*/
|
|
1223
|
+
awaitsMaintenance?: ReadIndexPending | undefined;
|
|
1100
1224
|
};
|
|
1101
1225
|
|
|
1102
1226
|
/**
|
|
@@ -2128,6 +2252,15 @@ export declare type InterfaceCompatibilityQuery = Message<"nomos.kernel.v1.Inter
|
|
|
2128
2252
|
* @generated from field: bytes application_matrix_usda = 1;
|
|
2129
2253
|
*/
|
|
2130
2254
|
applicationMatrixUsda: Uint8Array;
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* RELEASE QUALIFICATION (CAP-789): judge the matrix against the law this workspace would serve once
|
|
2258
|
+
* these carried units were staged and promoted (composed exactly as that STAGE would compose them at
|
|
2259
|
+
* this frontier), instead of the law it serves now. Nothing is written and no verdict is retained.
|
|
2260
|
+
*
|
|
2261
|
+
* @generated from field: repeated nomos.kernel.v1.LawUnit candidate_units = 2;
|
|
2262
|
+
*/
|
|
2263
|
+
candidateUnits: LawUnit[];
|
|
2131
2264
|
};
|
|
2132
2265
|
|
|
2133
2266
|
/**
|
|
@@ -2200,6 +2333,13 @@ export declare type InterfaceCompatibilityResponse = Message<"nomos.kernel.v1.In
|
|
|
2200
2333
|
* @generated from field: string workspace_frontier = 3;
|
|
2201
2334
|
*/
|
|
2202
2335
|
workspaceFrontier: string;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* The closure the carried candidate units composed to; empty when the installed law was judged.
|
|
2339
|
+
*
|
|
2340
|
+
* @generated from field: string candidate_hash = 4;
|
|
2341
|
+
*/
|
|
2342
|
+
candidateHash: string;
|
|
2203
2343
|
};
|
|
2204
2344
|
|
|
2205
2345
|
/**
|
|
@@ -5726,6 +5866,18 @@ export declare type FrontierTransitionRequest = Message<"nomos.kernel.v1.Frontie
|
|
|
5726
5866
|
* @generated from field: optional string restore_previous_of = 5;
|
|
5727
5867
|
*/
|
|
5728
5868
|
restorePreviousOf?: string | undefined;
|
|
5869
|
+
|
|
5870
|
+
/**
|
|
5871
|
+
* RELEASE QUALIFICATION (CAP-789): the candidate carried as law units instead of named as a staged
|
|
5872
|
+
* closure. The kernel admits each unit from its content, places and composes them exactly as a STAGE
|
|
5873
|
+
* carrying them would at this frontier, and judges the same transition. It writes nothing: no stage, no
|
|
5874
|
+
* custody object, no ref. When set, candidate_hash must equal the composed identity (the response names
|
|
5875
|
+
* it either way). The answer is qualification evidence only: promotion still needs the candidate staged
|
|
5876
|
+
* and judged again at the then-current frontier. Not with restore_previous_of.
|
|
5877
|
+
*
|
|
5878
|
+
* @generated from field: repeated nomos.kernel.v1.LawUnit candidate_units = 6;
|
|
5879
|
+
*/
|
|
5880
|
+
candidateUnits: LawUnit[];
|
|
5729
5881
|
};
|
|
5730
5882
|
|
|
5731
5883
|
/**
|
|
@@ -7039,6 +7191,31 @@ export declare type PackDeltaRequest = Message<"nomos.kernel.v1.PackDeltaRequest
|
|
|
7039
7191
|
* @generated from field: optional string staged_pack_file = 5;
|
|
7040
7192
|
*/
|
|
7041
7193
|
stagedPackFile?: string | undefined;
|
|
7194
|
+
|
|
7195
|
+
/**
|
|
7196
|
+
* A SHALLOW pack instead of a delta (architecture/peer_catchup.md), with no `base`: the commits
|
|
7197
|
+
* within `depth` generations of `head`, each with its complete tree, objects ordered by id
|
|
7198
|
+
* (deterministic bytes). depth 1 is a checkpoint: the frontier state at `head`.
|
|
7199
|
+
*
|
|
7200
|
+
* @generated from field: optional uint32 depth = 6;
|
|
7201
|
+
*/
|
|
7202
|
+
depth?: number | undefined;
|
|
7203
|
+
|
|
7204
|
+
/**
|
|
7205
|
+
* With `depth`: `head` is a shallow boundary the receiver holds. Its commit and tree are omitted
|
|
7206
|
+
* and the `depth` generations below it are packed: one lazy-history slice.
|
|
7207
|
+
*
|
|
7208
|
+
* @generated from field: bool below_head = 7;
|
|
7209
|
+
*/
|
|
7210
|
+
belowHead: boolean;
|
|
7211
|
+
|
|
7212
|
+
/**
|
|
7213
|
+
* With `depth` and not `below_head`: more heads packed beside `head` at the same depth (the
|
|
7214
|
+
* settled-letter outcome commits a checkpoint carries).
|
|
7215
|
+
*
|
|
7216
|
+
* @generated from field: repeated string also_heads = 8;
|
|
7217
|
+
*/
|
|
7218
|
+
alsoHeads: string[];
|
|
7042
7219
|
};
|
|
7043
7220
|
|
|
7044
7221
|
/**
|
|
@@ -7075,6 +7252,16 @@ export declare type ApplyPackRequest = Message<"nomos.kernel.v1.ApplyPackRequest
|
|
|
7075
7252
|
*/
|
|
7076
7253
|
value: string;
|
|
7077
7254
|
case: "stagedPackFile";
|
|
7255
|
+
} | {
|
|
7256
|
+
/**
|
|
7257
|
+
* Continue the import this repository has pending (CAP-806): the one a request with
|
|
7258
|
+
* `work_budget_bytes` began and answered `import_pending`. It carries no pack, head or
|
|
7259
|
+
* boundary; the import keeps those of the request that began it.
|
|
7260
|
+
*
|
|
7261
|
+
* @generated from field: bool continue_pending = 8;
|
|
7262
|
+
*/
|
|
7263
|
+
value: boolean;
|
|
7264
|
+
case: "continuePending";
|
|
7078
7265
|
} | { case: undefined; value?: undefined };
|
|
7079
7266
|
|
|
7080
7267
|
/**
|
|
@@ -7095,6 +7282,18 @@ export declare type ApplyPackRequest = Message<"nomos.kernel.v1.ApplyPackRequest
|
|
|
7095
7282
|
* @generated from field: repeated string unshallow = 6;
|
|
7096
7283
|
*/
|
|
7097
7284
|
unshallow: string[];
|
|
7285
|
+
|
|
7286
|
+
/**
|
|
7287
|
+
* At most about this many bytes of work (hashing, inflating, decoding, rewriting) in this call
|
|
7288
|
+
* (CAP-806). When the pack needs more, the kernel keeps the import's progress, publishes
|
|
7289
|
+
* nothing and answers `import_pending`; `continue_pending` continues it. A host interleaves the
|
|
7290
|
+
* steps with its user's reads and offers, so a large import never holds the kernel for its
|
|
7291
|
+
* whole length. A new pack for the same repository discards a pending import. Absent or 0: the
|
|
7292
|
+
* whole pack in one call, as before.
|
|
7293
|
+
*
|
|
7294
|
+
* @generated from field: uint64 work_budget_bytes = 7;
|
|
7295
|
+
*/
|
|
7296
|
+
workBudgetBytes: bigint;
|
|
7098
7297
|
};
|
|
7099
7298
|
|
|
7100
7299
|
/**
|
|
@@ -8899,6 +9098,28 @@ export declare type PackDeltaResponse = Message<"nomos.kernel.v1.PackDeltaRespon
|
|
|
8899
9098
|
* @generated from field: uint64 bytes = 2;
|
|
8900
9099
|
*/
|
|
8901
9100
|
bytes: bigint;
|
|
9101
|
+
|
|
9102
|
+
/**
|
|
9103
|
+
* A shallow pack only: the commits whose parents it omits, and what it holds.
|
|
9104
|
+
*
|
|
9105
|
+
* @generated from field: repeated string shallow = 3;
|
|
9106
|
+
*/
|
|
9107
|
+
shallow: string[];
|
|
9108
|
+
|
|
9109
|
+
/**
|
|
9110
|
+
* @generated from field: uint32 commits = 4;
|
|
9111
|
+
*/
|
|
9112
|
+
commits: number;
|
|
9113
|
+
|
|
9114
|
+
/**
|
|
9115
|
+
* @generated from field: uint32 trees = 5;
|
|
9116
|
+
*/
|
|
9117
|
+
trees: number;
|
|
9118
|
+
|
|
9119
|
+
/**
|
|
9120
|
+
* @generated from field: uint32 blobs = 6;
|
|
9121
|
+
*/
|
|
9122
|
+
blobs: number;
|
|
8902
9123
|
};
|
|
8903
9124
|
|
|
8904
9125
|
/**
|
|
@@ -8928,6 +9149,21 @@ export declare type ApplyPackResponse = Message<"nomos.kernel.v1.ApplyPackRespon
|
|
|
8928
9149
|
* @generated from field: optional nomos.kernel.v1.PhysicalClosureCheck closure = 3;
|
|
8929
9150
|
*/
|
|
8930
9151
|
closure?: PhysicalClosureCheck | undefined;
|
|
9152
|
+
|
|
9153
|
+
/**
|
|
9154
|
+
* The import spent its `work_budget_bytes` before finishing (CAP-806). Nothing is published;
|
|
9155
|
+
* every other field is empty until the step that completes it.
|
|
9156
|
+
*
|
|
9157
|
+
* @generated from field: bool import_pending = 4;
|
|
9158
|
+
*/
|
|
9159
|
+
importPending: boolean;
|
|
9160
|
+
|
|
9161
|
+
/**
|
|
9162
|
+
* Bytes of work the import has done so far, across its steps.
|
|
9163
|
+
*
|
|
9164
|
+
* @generated from field: uint64 work_done_bytes = 5;
|
|
9165
|
+
*/
|
|
9166
|
+
workDoneBytes: bigint;
|
|
8931
9167
|
};
|
|
8932
9168
|
|
|
8933
9169
|
/**
|
|
@@ -10075,6 +10311,33 @@ export declare type HistoryRequired = Message<"nomos.kernel.v1.HistoryRequired">
|
|
|
10075
10311
|
*/
|
|
10076
10312
|
export declare const HistoryRequiredSchema: GenMessage<HistoryRequired>;
|
|
10077
10313
|
|
|
10314
|
+
/**
|
|
10315
|
+
* How an installed claim orders against the claim already served for its identity (CAP-811).
|
|
10316
|
+
*
|
|
10317
|
+
* @generated from enum nomos.kernel.v1.LawVersionOrder
|
|
10318
|
+
*/
|
|
10319
|
+
export enum LawVersionOrder {
|
|
10320
|
+
/**
|
|
10321
|
+
* @generated from enum value: LAW_VERSION_ORDER_UNSPECIFIED = 0;
|
|
10322
|
+
*/
|
|
10323
|
+
UNSPECIFIED = 0,
|
|
10324
|
+
|
|
10325
|
+
/**
|
|
10326
|
+
* @generated from enum value: LAW_VERSION_ORDER_EQUAL = 1;
|
|
10327
|
+
*/
|
|
10328
|
+
EQUAL = 1,
|
|
10329
|
+
|
|
10330
|
+
/**
|
|
10331
|
+
* @generated from enum value: LAW_VERSION_ORDER_LOWER = 2;
|
|
10332
|
+
*/
|
|
10333
|
+
LOWER = 2,
|
|
10334
|
+
}
|
|
10335
|
+
|
|
10336
|
+
/**
|
|
10337
|
+
* Describes the enum nomos.kernel.v1.LawVersionOrder.
|
|
10338
|
+
*/
|
|
10339
|
+
export declare const LawVersionOrderSchema: GenEnum<LawVersionOrder>;
|
|
10340
|
+
|
|
10078
10341
|
/**
|
|
10079
10342
|
* @generated from enum nomos.kernel.v1.BirthOutcomeStatus
|
|
10080
10343
|
*/
|