@githolon/dsl 0.113.4 → 0.115.0
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/assets/operation-contract.wasm +0 -0
- package/compile_package.mjs +23 -3
- package/compile_proof.d.mts +7 -0
- package/compile_proof.mjs +38 -3
- package/dart/CHANGELOG.md +60 -0
- package/dart/lib/src/application_framework_calls.dart +16 -6
- package/dart/lib/src/console_enrolment.dart +7 -0
- package/dart/lib/src/console_http_io.dart +22 -15
- package/dart/lib/src/dev_cloud.dart +62 -0
- package/dart/lib/src/generated_call.dart +14 -3
- package/dart/lib/src/nms_generated_runtime.dart +7 -0
- package/dart/lib/src/node_runner_transport.dart +77 -8
- package/dart/lib/src/nomos_trace.dart +107 -0
- package/dart/lib/src/operation_receipts.dart +74 -7
- package/dart/lib/src/reception/dart_reception.dart +174 -17
- package/dart/lib/src/rows_watch.dart +390 -0
- package/dart/lib/src/runner/node-entry.mjs +7678 -2860
- package/dart/lib/src/runtime_v2_transport.dart +3 -0
- package/dart/lib/src/sync_status_projection.dart +94 -1
- package/dart/lib/src/sync_status_reducer.dart +5 -2
- package/dart/lib/src/test_harness.dart +107 -41
- package/dart/lib/src/testing/test_peer.dart +107 -99
- package/dart/lib/src/testing/test_peer_host.dart +305 -0
- package/dart/lib/src/typed_watch_registry.dart +26 -3
- package/dart/pubspec.lock +1 -1
- package/dart/pubspec.yaml +2 -2
- package/dart/test/background_model_adoption_test.dart +1 -0
- package/dart/test/console_enrolment_test.dart +47 -0
- package/dart/test/custodian_warming_test.dart +105 -0
- package/dart/test/fixtures/offer_watch_order_peer.dart +74 -0
- package/dart/test/kernel_author_after_read_test.dart +6 -3
- package/dart/test/kernel_fence_test.dart +4 -1
- package/dart/test/model_adoption_test.dart +66 -0
- package/dart/test/nomos_trace_test.dart +91 -0
- package/dart/test/own_offer_watch_order_test.dart +90 -0
- package/dart/test/receiving_group_open_test.dart +4 -8
- package/dart/test/replica_readiness_test.dart +14 -4
- package/dart/test/rows_watch_test.dart +331 -0
- package/dart/test/runtime_projections_test.dart +41 -0
- package/dart/test/test_peer_host_selection_test.dart +49 -0
- package/dart_types/CHANGELOG.md +39 -0
- package/dart_types/lib/src/approved_model.dart +100 -6
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pb.dart +1063 -3
- package/dart_types/lib/src/proto/nomos/kernel/v1/kernel.pbenum.dart +89 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/application_desk.pb.dart +14 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/correspondence_desk.pb.dart +2272 -130
- package/dart_types/lib/src/proto/nomos/runtime/v2/correspondence_desk.pbenum.dart +65 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/model_adoption_desk.pb.dart +118 -2
- package/dart_types/lib/src/proto/nomos/runtime/v2/observability_desk.pb.dart +278 -9
- package/dart_types/lib/src/proto/nomos/runtime/v2/receiving_group_desk.pb.dart +7 -85
- package/dart_types/lib/src/proto/nomos/runtime/v2/records_desk.pb.dart +16 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/residency_desk.pb.dart +35 -0
- package/dart_types/lib/src/proto/nomos/runtime/v2/runtime.pb.dart +43 -2
- package/dart_types/pubspec.yaml +1 -1
- package/package.json +6 -2
- package/src/aggregate.ts +93 -0
- package/src/anonymous_value_interning.ts +205 -0
- package/src/baseline.ts +27 -0
- package/src/baseline_export.ts +432 -0
- package/src/baseline_import.ts +312 -0
- package/src/baseline_usda.ts +186 -0
- package/src/birth_key_rule.ts +472 -0
- package/src/births.ts +207 -24
- package/src/build_provenance.ts +17 -2
- package/src/business_birth.ts +50 -4
- package/src/check_package_main.ts +50 -6
- package/src/codegen_call_proto.ts +5 -18
- package/src/codegen_dart.ts +95 -3
- package/src/codegen_dart_client.ts +73 -15
- package/src/codegen_dart_facade.ts +58 -35
- package/src/codegen_dart_framework_calls.ts +32 -10
- package/src/codegen_dart_scenario.ts +7 -0
- package/src/codegen_proof.ts +5 -2
- package/src/codegen_result_proto.ts +8 -6
- package/src/codegen_result_usda.ts +4 -0
- package/src/codegen_ts.ts +135 -34
- package/src/compatibility_graph.ts +41 -4
- package/src/compatibility_usda.ts +11 -1
- package/src/compile_package_main.ts +272 -105
- package/src/composed_wire_identity.ts +24 -0
- package/src/directive.ts +6 -0
- package/src/domain_requirements.ts +75 -0
- package/src/engine_entry.ts +4 -48
- package/src/engine_javascript.ts +12 -6
- package/src/fields.ts +109 -0
- package/src/identity_usda.ts +77 -51
- package/src/index.ts +25 -1
- package/src/intent.ts +5 -0
- package/src/law_graph.ts +142 -1
- package/src/law_graph_usda.ts +25 -141
- package/src/law_layer_prims.ts +199 -0
- package/src/law_unit_selection.ts +45 -0
- package/src/law_unit_set_identity.ts +44 -0
- package/src/law_version.ts +107 -0
- package/src/package_config.ts +44 -0
- package/src/package_dependencies.ts +8 -0
- package/src/query/compile.ts +0 -0
- package/src/release_inspection.ts +24 -0
- package/src/release_publication.ts +298 -0
- package/src/value_object.ts +6 -3
- package/src/wire.ts +2 -0
- package/src/wire_paths.ts +17 -0
- package/src/workspace_routing.ts +1 -1
|
@@ -14,6 +14,30 @@ import 'dart:core' as $core;
|
|
|
14
14
|
|
|
15
15
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
16
16
|
|
|
17
|
+
/// How an installed claim orders against the claim already served for its identity (CAP-811).
|
|
18
|
+
class LawVersionOrder extends $pb.ProtobufEnum {
|
|
19
|
+
static const LawVersionOrder LAW_VERSION_ORDER_UNSPECIFIED =
|
|
20
|
+
LawVersionOrder._(
|
|
21
|
+
0, _omitEnumNames ? '' : 'LAW_VERSION_ORDER_UNSPECIFIED');
|
|
22
|
+
static const LawVersionOrder LAW_VERSION_ORDER_EQUAL =
|
|
23
|
+
LawVersionOrder._(1, _omitEnumNames ? '' : 'LAW_VERSION_ORDER_EQUAL');
|
|
24
|
+
static const LawVersionOrder LAW_VERSION_ORDER_LOWER =
|
|
25
|
+
LawVersionOrder._(2, _omitEnumNames ? '' : 'LAW_VERSION_ORDER_LOWER');
|
|
26
|
+
|
|
27
|
+
static const $core.List<LawVersionOrder> values = <LawVersionOrder>[
|
|
28
|
+
LAW_VERSION_ORDER_UNSPECIFIED,
|
|
29
|
+
LAW_VERSION_ORDER_EQUAL,
|
|
30
|
+
LAW_VERSION_ORDER_LOWER,
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
static final $core.List<LawVersionOrder?> _byValue =
|
|
34
|
+
$pb.ProtobufEnum.$_initByValueList(values, 2);
|
|
35
|
+
static LawVersionOrder? valueOf($core.int value) =>
|
|
36
|
+
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
37
|
+
|
|
38
|
+
const LawVersionOrder._(super.value, super.name);
|
|
39
|
+
}
|
|
40
|
+
|
|
17
41
|
class BirthOutcomeStatus extends $pb.ProtobufEnum {
|
|
18
42
|
static const BirthOutcomeStatus BIRTH_OUTCOME_STATUS_UNSPECIFIED =
|
|
19
43
|
BirthOutcomeStatus._(
|
|
@@ -346,6 +370,71 @@ class KernelRefusalCode extends $pb.ProtobufEnum {
|
|
|
346
370
|
const KernelRefusalCode._(super.value, super.name);
|
|
347
371
|
}
|
|
348
372
|
|
|
373
|
+
/// Typed premise for answering a delta request with the complete result.
|
|
374
|
+
class FullResultReason extends $pb.ProtobufEnum {
|
|
375
|
+
static const FullResultReason FULL_RESULT_REASON_UNSPECIFIED =
|
|
376
|
+
FullResultReason._(
|
|
377
|
+
0, _omitEnumNames ? '' : 'FULL_RESULT_REASON_UNSPECIFIED');
|
|
378
|
+
|
|
379
|
+
/// The request named no base position.
|
|
380
|
+
static const FullResultReason FULL_RESULT_REASON_NO_BASE =
|
|
381
|
+
FullResultReason._(1, _omitEnumNames ? '' : 'FULL_RESULT_REASON_NO_BASE');
|
|
382
|
+
|
|
383
|
+
/// The installed law changed between the two positions.
|
|
384
|
+
static const FullResultReason FULL_RESULT_REASON_LAW_CHANGED =
|
|
385
|
+
FullResultReason._(
|
|
386
|
+
2, _omitEnumNames ? '' : 'FULL_RESULT_REASON_LAW_CHANGED');
|
|
387
|
+
|
|
388
|
+
/// The principal, or the workspace-wide grant the read relied on, changed.
|
|
389
|
+
static const FullResultReason FULL_RESULT_REASON_READ_AUTHORITY_CHANGED =
|
|
390
|
+
FullResultReason._(
|
|
391
|
+
3, _omitEnumNames ? '' : 'FULL_RESULT_REASON_READ_AUTHORITY_CHANGED');
|
|
392
|
+
|
|
393
|
+
/// The principal reads this type record by record; visibility is not a function of the rows.
|
|
394
|
+
static const FullResultReason FULL_RESULT_REASON_PER_RECORD_REFUSAL =
|
|
395
|
+
FullResultReason._(
|
|
396
|
+
4, _omitEnumNames ? '' : 'FULL_RESULT_REASON_PER_RECORD_REFUSAL');
|
|
397
|
+
|
|
398
|
+
/// An ordered read is selected by its declared order and limit, not by membership.
|
|
399
|
+
static const FullResultReason FULL_RESULT_REASON_ORDERED_READ =
|
|
400
|
+
FullResultReason._(
|
|
401
|
+
5, _omitEnumNames ? '' : 'FULL_RESULT_REASON_ORDERED_READ');
|
|
402
|
+
|
|
403
|
+
/// The rows carry clock-derived fields whose value changes without a state change.
|
|
404
|
+
static const FullResultReason FULL_RESULT_REASON_TEMPORAL_FIELDS =
|
|
405
|
+
FullResultReason._(
|
|
406
|
+
6, _omitEnumNames ? '' : 'FULL_RESULT_REASON_TEMPORAL_FIELDS');
|
|
407
|
+
|
|
408
|
+
/// This replica no longer holds the base position's state.
|
|
409
|
+
static const FullResultReason FULL_RESULT_REASON_BASE_UNAVAILABLE =
|
|
410
|
+
FullResultReason._(
|
|
411
|
+
7, _omitEnumNames ? '' : 'FULL_RESULT_REASON_BASE_UNAVAILABLE');
|
|
412
|
+
|
|
413
|
+
/// One of the positions predates the state-tree format, which has no exact change set.
|
|
414
|
+
static const FullResultReason FULL_RESULT_REASON_LEGACY_STATE =
|
|
415
|
+
FullResultReason._(
|
|
416
|
+
8, _omitEnumNames ? '' : 'FULL_RESULT_REASON_LEGACY_STATE');
|
|
417
|
+
|
|
418
|
+
static const $core.List<FullResultReason> values = <FullResultReason>[
|
|
419
|
+
FULL_RESULT_REASON_UNSPECIFIED,
|
|
420
|
+
FULL_RESULT_REASON_NO_BASE,
|
|
421
|
+
FULL_RESULT_REASON_LAW_CHANGED,
|
|
422
|
+
FULL_RESULT_REASON_READ_AUTHORITY_CHANGED,
|
|
423
|
+
FULL_RESULT_REASON_PER_RECORD_REFUSAL,
|
|
424
|
+
FULL_RESULT_REASON_ORDERED_READ,
|
|
425
|
+
FULL_RESULT_REASON_TEMPORAL_FIELDS,
|
|
426
|
+
FULL_RESULT_REASON_BASE_UNAVAILABLE,
|
|
427
|
+
FULL_RESULT_REASON_LEGACY_STATE,
|
|
428
|
+
];
|
|
429
|
+
|
|
430
|
+
static final $core.List<FullResultReason?> _byValue =
|
|
431
|
+
$pb.ProtobufEnum.$_initByValueList(values, 8);
|
|
432
|
+
static FullResultReason? valueOf($core.int value) =>
|
|
433
|
+
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
434
|
+
|
|
435
|
+
const FullResultReason._(super.value, super.name);
|
|
436
|
+
}
|
|
437
|
+
|
|
349
438
|
/// VINTF-inspired compatibility algebra over Nomos's canonical OpenUSD law.
|
|
350
439
|
/// The application matrix is USDA; Protobuf carries only the closed request and
|
|
351
440
|
/// typed verdict across the kernel ABI.
|
|
@@ -115,6 +115,7 @@ class WatchRequest extends $pb.GeneratedMessage {
|
|
|
115
115
|
WatchKind? kind,
|
|
116
116
|
$0.QueryRequest? query,
|
|
117
117
|
$core.int? intervalMillis,
|
|
118
|
+
$core.bool? acceptRowDelta,
|
|
118
119
|
}) {
|
|
119
120
|
final result = create();
|
|
120
121
|
if (session != null) result.session = session;
|
|
@@ -122,6 +123,7 @@ class WatchRequest extends $pb.GeneratedMessage {
|
|
|
122
123
|
if (kind != null) result.kind = kind;
|
|
123
124
|
if (query != null) result.query = query;
|
|
124
125
|
if (intervalMillis != null) result.intervalMillis = intervalMillis;
|
|
126
|
+
if (acceptRowDelta != null) result.acceptRowDelta = acceptRowDelta;
|
|
125
127
|
return result;
|
|
126
128
|
}
|
|
127
129
|
|
|
@@ -147,6 +149,7 @@ class WatchRequest extends $pb.GeneratedMessage {
|
|
|
147
149
|
subBuilder: $0.QueryRequest.create)
|
|
148
150
|
..aI(5, _omitFieldNames ? '' : 'intervalMillis',
|
|
149
151
|
fieldType: $pb.PbFieldType.OU3)
|
|
152
|
+
..aOB(6, _omitFieldNames ? '' : 'acceptRowDelta')
|
|
150
153
|
..hasRequiredFields = false;
|
|
151
154
|
|
|
152
155
|
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
|
@@ -214,6 +217,17 @@ class WatchRequest extends $pb.GeneratedMessage {
|
|
|
214
217
|
$core.bool hasIntervalMillis() => $_has(4);
|
|
215
218
|
@$pb.TagNumber(5)
|
|
216
219
|
void clearIntervalMillis() => $_clearField(5);
|
|
220
|
+
|
|
221
|
+
/// The consumer merges `WatchChanged.application_delta` itself (CAP-731). Without it the runtime
|
|
222
|
+
/// delivers only complete results, as before.
|
|
223
|
+
@$pb.TagNumber(6)
|
|
224
|
+
$core.bool get acceptRowDelta => $_getBF(5);
|
|
225
|
+
@$pb.TagNumber(6)
|
|
226
|
+
set acceptRowDelta($core.bool value) => $_setBool(5, value);
|
|
227
|
+
@$pb.TagNumber(6)
|
|
228
|
+
$core.bool hasAcceptRowDelta() => $_has(5);
|
|
229
|
+
@$pb.TagNumber(6)
|
|
230
|
+
void clearAcceptRowDelta() => $_clearField(6);
|
|
217
231
|
}
|
|
218
232
|
|
|
219
233
|
class WatchStarted extends $pb.GeneratedMessage {
|