@lace-cloud/proto 0.13.0 → 0.15.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/LICENSE +86 -13
- package/README.md +1 -1
- package/dist/index.cjs +252 -853
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +31 -51
- package/dist/index.d.ts +31 -51
- package/dist/index.mjs +249 -850
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -23,8 +23,6 @@ __export(index_exports, {
|
|
|
23
23
|
Bundle: () => Bundle,
|
|
24
24
|
CanvasViewProto: () => CanvasViewProto,
|
|
25
25
|
EdgeConfigProto: () => EdgeConfigProto,
|
|
26
|
-
GraphLayout: () => GraphLayout,
|
|
27
|
-
LayoutsMap: () => LayoutsMap,
|
|
28
26
|
NodeConfigProto: () => NodeConfigProto,
|
|
29
27
|
SettingsConfigProto: () => SettingsConfigProto,
|
|
30
28
|
convertCanvasView: () => convertCanvasView,
|
|
@@ -40,7 +38,9 @@ __export(index_exports, {
|
|
|
40
38
|
convertSettingsConfig: () => convertSettingsConfig,
|
|
41
39
|
modeToInputMode: () => modeToInputMode,
|
|
42
40
|
parseModuleKey: () => parseModuleKey,
|
|
43
|
-
projectCanvasView: () => projectCanvasView
|
|
41
|
+
projectCanvasView: () => projectCanvasView,
|
|
42
|
+
resolveScopePath: () => resolveScopePath,
|
|
43
|
+
resolveScopePositions: () => resolveScopePositions
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(index_exports);
|
|
46
46
|
|
|
@@ -3356,7 +3356,7 @@ var TerraformBlock_RequiredProvidersEntry = {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
};
|
|
3358
3358
|
function createBaseProviderRequirement() {
|
|
3359
|
-
return { source: "", version: "" };
|
|
3359
|
+
return { source: "", version: "", configuration_aliases: [] };
|
|
3360
3360
|
}
|
|
3361
3361
|
var ProviderRequirement = {
|
|
3362
3362
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -3366,6 +3366,9 @@ var ProviderRequirement = {
|
|
|
3366
3366
|
if (message.version !== "") {
|
|
3367
3367
|
writer.uint32(18).string(message.version);
|
|
3368
3368
|
}
|
|
3369
|
+
for (const v of message.configuration_aliases) {
|
|
3370
|
+
writer.uint32(26).string(v);
|
|
3371
|
+
}
|
|
3369
3372
|
return writer;
|
|
3370
3373
|
},
|
|
3371
3374
|
decode(input, length) {
|
|
@@ -3389,692 +3392,11 @@ var ProviderRequirement = {
|
|
|
3389
3392
|
message.version = reader.string();
|
|
3390
3393
|
continue;
|
|
3391
3394
|
}
|
|
3392
|
-
}
|
|
3393
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3394
|
-
break;
|
|
3395
|
-
}
|
|
3396
|
-
reader.skip(tag & 7);
|
|
3397
|
-
}
|
|
3398
|
-
return message;
|
|
3399
|
-
},
|
|
3400
|
-
fromJSON(object) {
|
|
3401
|
-
return {
|
|
3402
|
-
source: isSet2(object.source) ? globalThis.String(object.source) : "",
|
|
3403
|
-
version: isSet2(object.version) ? globalThis.String(object.version) : ""
|
|
3404
|
-
};
|
|
3405
|
-
},
|
|
3406
|
-
toJSON(message) {
|
|
3407
|
-
const obj = {};
|
|
3408
|
-
if (message.source !== "") {
|
|
3409
|
-
obj.source = message.source;
|
|
3410
|
-
}
|
|
3411
|
-
if (message.version !== "") {
|
|
3412
|
-
obj.version = message.version;
|
|
3413
|
-
}
|
|
3414
|
-
return obj;
|
|
3415
|
-
},
|
|
3416
|
-
create(base) {
|
|
3417
|
-
return ProviderRequirement.fromPartial(base ?? {});
|
|
3418
|
-
},
|
|
3419
|
-
fromPartial(object) {
|
|
3420
|
-
const message = createBaseProviderRequirement();
|
|
3421
|
-
message.source = object.source ?? "";
|
|
3422
|
-
message.version = object.version ?? "";
|
|
3423
|
-
return message;
|
|
3424
|
-
}
|
|
3425
|
-
};
|
|
3426
|
-
function createBaseBackendConfig() {
|
|
3427
|
-
return { type: "", config: {} };
|
|
3428
|
-
}
|
|
3429
|
-
var BackendConfig = {
|
|
3430
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3431
|
-
if (message.type !== "") {
|
|
3432
|
-
writer.uint32(10).string(message.type);
|
|
3433
|
-
}
|
|
3434
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3435
|
-
if (value !== void 0) {
|
|
3436
|
-
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3437
|
-
}
|
|
3438
|
-
});
|
|
3439
|
-
return writer;
|
|
3440
|
-
},
|
|
3441
|
-
decode(input, length) {
|
|
3442
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3443
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3444
|
-
const message = createBaseBackendConfig();
|
|
3445
|
-
while (reader.pos < end) {
|
|
3446
|
-
const tag = reader.uint32();
|
|
3447
|
-
switch (tag >>> 3) {
|
|
3448
|
-
case 1: {
|
|
3449
|
-
if (tag !== 10) {
|
|
3450
|
-
break;
|
|
3451
|
-
}
|
|
3452
|
-
message.type = reader.string();
|
|
3453
|
-
continue;
|
|
3454
|
-
}
|
|
3455
|
-
case 2: {
|
|
3456
|
-
if (tag !== 18) {
|
|
3457
|
-
break;
|
|
3458
|
-
}
|
|
3459
|
-
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3460
|
-
if (entry2.value !== void 0) {
|
|
3461
|
-
message.config[entry2.key] = entry2.value;
|
|
3462
|
-
}
|
|
3463
|
-
continue;
|
|
3464
|
-
}
|
|
3465
|
-
}
|
|
3466
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3467
|
-
break;
|
|
3468
|
-
}
|
|
3469
|
-
reader.skip(tag & 7);
|
|
3470
|
-
}
|
|
3471
|
-
return message;
|
|
3472
|
-
},
|
|
3473
|
-
fromJSON(object) {
|
|
3474
|
-
return {
|
|
3475
|
-
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3476
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3477
|
-
(acc, [key, value]) => {
|
|
3478
|
-
acc[key] = value;
|
|
3479
|
-
return acc;
|
|
3480
|
-
},
|
|
3481
|
-
{}
|
|
3482
|
-
) : {}
|
|
3483
|
-
};
|
|
3484
|
-
},
|
|
3485
|
-
toJSON(message) {
|
|
3486
|
-
const obj = {};
|
|
3487
|
-
if (message.type !== "") {
|
|
3488
|
-
obj.type = message.type;
|
|
3489
|
-
}
|
|
3490
|
-
if (message.config) {
|
|
3491
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3492
|
-
if (entries.length > 0) {
|
|
3493
|
-
obj.config = {};
|
|
3494
|
-
entries.forEach(([k, v]) => {
|
|
3495
|
-
obj.config[k] = v;
|
|
3496
|
-
});
|
|
3497
|
-
}
|
|
3498
|
-
}
|
|
3499
|
-
return obj;
|
|
3500
|
-
},
|
|
3501
|
-
create(base) {
|
|
3502
|
-
return BackendConfig.fromPartial(base ?? {});
|
|
3503
|
-
},
|
|
3504
|
-
fromPartial(object) {
|
|
3505
|
-
const message = createBaseBackendConfig();
|
|
3506
|
-
message.type = object.type ?? "";
|
|
3507
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3508
|
-
(acc, [key, value]) => {
|
|
3509
|
-
if (value !== void 0) {
|
|
3510
|
-
acc[key] = value;
|
|
3511
|
-
}
|
|
3512
|
-
return acc;
|
|
3513
|
-
},
|
|
3514
|
-
{}
|
|
3515
|
-
);
|
|
3516
|
-
return message;
|
|
3517
|
-
}
|
|
3518
|
-
};
|
|
3519
|
-
function createBaseBackendConfig_ConfigEntry() {
|
|
3520
|
-
return { key: "", value: void 0 };
|
|
3521
|
-
}
|
|
3522
|
-
var BackendConfig_ConfigEntry = {
|
|
3523
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3524
|
-
if (message.key !== "") {
|
|
3525
|
-
writer.uint32(10).string(message.key);
|
|
3526
|
-
}
|
|
3527
|
-
if (message.value !== void 0) {
|
|
3528
|
-
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3529
|
-
}
|
|
3530
|
-
return writer;
|
|
3531
|
-
},
|
|
3532
|
-
decode(input, length) {
|
|
3533
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3534
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3535
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3536
|
-
while (reader.pos < end) {
|
|
3537
|
-
const tag = reader.uint32();
|
|
3538
|
-
switch (tag >>> 3) {
|
|
3539
|
-
case 1: {
|
|
3540
|
-
if (tag !== 10) {
|
|
3541
|
-
break;
|
|
3542
|
-
}
|
|
3543
|
-
message.key = reader.string();
|
|
3544
|
-
continue;
|
|
3545
|
-
}
|
|
3546
|
-
case 2: {
|
|
3547
|
-
if (tag !== 18) {
|
|
3548
|
-
break;
|
|
3549
|
-
}
|
|
3550
|
-
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
3551
|
-
continue;
|
|
3552
|
-
}
|
|
3553
|
-
}
|
|
3554
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3555
|
-
break;
|
|
3556
|
-
}
|
|
3557
|
-
reader.skip(tag & 7);
|
|
3558
|
-
}
|
|
3559
|
-
return message;
|
|
3560
|
-
},
|
|
3561
|
-
fromJSON(object) {
|
|
3562
|
-
return {
|
|
3563
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3564
|
-
value: isSet2(object?.value) ? object.value : void 0
|
|
3565
|
-
};
|
|
3566
|
-
},
|
|
3567
|
-
toJSON(message) {
|
|
3568
|
-
const obj = {};
|
|
3569
|
-
if (message.key !== "") {
|
|
3570
|
-
obj.key = message.key;
|
|
3571
|
-
}
|
|
3572
|
-
if (message.value !== void 0) {
|
|
3573
|
-
obj.value = message.value;
|
|
3574
|
-
}
|
|
3575
|
-
return obj;
|
|
3576
|
-
},
|
|
3577
|
-
create(base) {
|
|
3578
|
-
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3579
|
-
},
|
|
3580
|
-
fromPartial(object) {
|
|
3581
|
-
const message = createBaseBackendConfig_ConfigEntry();
|
|
3582
|
-
message.key = object.key ?? "";
|
|
3583
|
-
message.value = object.value ?? void 0;
|
|
3584
|
-
return message;
|
|
3585
|
-
}
|
|
3586
|
-
};
|
|
3587
|
-
function createBaseProviderConfig() {
|
|
3588
|
-
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3589
|
-
}
|
|
3590
|
-
var ProviderConfig = {
|
|
3591
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3592
|
-
if (message.name !== "") {
|
|
3593
|
-
writer.uint32(10).string(message.name);
|
|
3594
|
-
}
|
|
3595
|
-
if (message.alias !== "") {
|
|
3596
|
-
writer.uint32(18).string(message.alias);
|
|
3597
|
-
}
|
|
3598
|
-
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3599
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3600
|
-
});
|
|
3601
|
-
for (const v of message.blocks) {
|
|
3602
|
-
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3603
|
-
}
|
|
3604
|
-
return writer;
|
|
3605
|
-
},
|
|
3606
|
-
decode(input, length) {
|
|
3607
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3608
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3609
|
-
const message = createBaseProviderConfig();
|
|
3610
|
-
while (reader.pos < end) {
|
|
3611
|
-
const tag = reader.uint32();
|
|
3612
|
-
switch (tag >>> 3) {
|
|
3613
|
-
case 1: {
|
|
3614
|
-
if (tag !== 10) {
|
|
3615
|
-
break;
|
|
3616
|
-
}
|
|
3617
|
-
message.name = reader.string();
|
|
3618
|
-
continue;
|
|
3619
|
-
}
|
|
3620
|
-
case 2: {
|
|
3621
|
-
if (tag !== 18) {
|
|
3622
|
-
break;
|
|
3623
|
-
}
|
|
3624
|
-
message.alias = reader.string();
|
|
3625
|
-
continue;
|
|
3626
|
-
}
|
|
3627
3395
|
case 3: {
|
|
3628
3396
|
if (tag !== 26) {
|
|
3629
3397
|
break;
|
|
3630
3398
|
}
|
|
3631
|
-
|
|
3632
|
-
if (entry3.value !== void 0) {
|
|
3633
|
-
message.config[entry3.key] = entry3.value;
|
|
3634
|
-
}
|
|
3635
|
-
continue;
|
|
3636
|
-
}
|
|
3637
|
-
case 4: {
|
|
3638
|
-
if (tag !== 34) {
|
|
3639
|
-
break;
|
|
3640
|
-
}
|
|
3641
|
-
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
3642
|
-
continue;
|
|
3643
|
-
}
|
|
3644
|
-
}
|
|
3645
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3646
|
-
break;
|
|
3647
|
-
}
|
|
3648
|
-
reader.skip(tag & 7);
|
|
3649
|
-
}
|
|
3650
|
-
return message;
|
|
3651
|
-
},
|
|
3652
|
-
fromJSON(object) {
|
|
3653
|
-
return {
|
|
3654
|
-
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
3655
|
-
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3656
|
-
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3657
|
-
(acc, [key, value]) => {
|
|
3658
|
-
acc[key] = Binding.fromJSON(value);
|
|
3659
|
-
return acc;
|
|
3660
|
-
},
|
|
3661
|
-
{}
|
|
3662
|
-
) : {},
|
|
3663
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
3664
|
-
};
|
|
3665
|
-
},
|
|
3666
|
-
toJSON(message) {
|
|
3667
|
-
const obj = {};
|
|
3668
|
-
if (message.name !== "") {
|
|
3669
|
-
obj.name = message.name;
|
|
3670
|
-
}
|
|
3671
|
-
if (message.alias !== "") {
|
|
3672
|
-
obj.alias = message.alias;
|
|
3673
|
-
}
|
|
3674
|
-
if (message.config) {
|
|
3675
|
-
const entries = globalThis.Object.entries(message.config);
|
|
3676
|
-
if (entries.length > 0) {
|
|
3677
|
-
obj.config = {};
|
|
3678
|
-
entries.forEach(([k, v]) => {
|
|
3679
|
-
obj.config[k] = Binding.toJSON(v);
|
|
3680
|
-
});
|
|
3681
|
-
}
|
|
3682
|
-
}
|
|
3683
|
-
if (message.blocks?.length) {
|
|
3684
|
-
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3685
|
-
}
|
|
3686
|
-
return obj;
|
|
3687
|
-
},
|
|
3688
|
-
create(base) {
|
|
3689
|
-
return ProviderConfig.fromPartial(base ?? {});
|
|
3690
|
-
},
|
|
3691
|
-
fromPartial(object) {
|
|
3692
|
-
const message = createBaseProviderConfig();
|
|
3693
|
-
message.name = object.name ?? "";
|
|
3694
|
-
message.alias = object.alias ?? "";
|
|
3695
|
-
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3696
|
-
(acc, [key, value]) => {
|
|
3697
|
-
if (value !== void 0) {
|
|
3698
|
-
acc[key] = Binding.fromPartial(value);
|
|
3699
|
-
}
|
|
3700
|
-
return acc;
|
|
3701
|
-
},
|
|
3702
|
-
{}
|
|
3703
|
-
);
|
|
3704
|
-
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
3705
|
-
return message;
|
|
3706
|
-
}
|
|
3707
|
-
};
|
|
3708
|
-
function createBaseProviderConfig_ConfigEntry() {
|
|
3709
|
-
return { key: "", value: void 0 };
|
|
3710
|
-
}
|
|
3711
|
-
var ProviderConfig_ConfigEntry = {
|
|
3712
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3713
|
-
if (message.key !== "") {
|
|
3714
|
-
writer.uint32(10).string(message.key);
|
|
3715
|
-
}
|
|
3716
|
-
if (message.value !== void 0) {
|
|
3717
|
-
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3718
|
-
}
|
|
3719
|
-
return writer;
|
|
3720
|
-
},
|
|
3721
|
-
decode(input, length) {
|
|
3722
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3723
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3724
|
-
const message = createBaseProviderConfig_ConfigEntry();
|
|
3725
|
-
while (reader.pos < end) {
|
|
3726
|
-
const tag = reader.uint32();
|
|
3727
|
-
switch (tag >>> 3) {
|
|
3728
|
-
case 1: {
|
|
3729
|
-
if (tag !== 10) {
|
|
3730
|
-
break;
|
|
3731
|
-
}
|
|
3732
|
-
message.key = reader.string();
|
|
3733
|
-
continue;
|
|
3734
|
-
}
|
|
3735
|
-
case 2: {
|
|
3736
|
-
if (tag !== 18) {
|
|
3737
|
-
break;
|
|
3738
|
-
}
|
|
3739
|
-
message.value = Binding.decode(reader, reader.uint32());
|
|
3740
|
-
continue;
|
|
3741
|
-
}
|
|
3742
|
-
}
|
|
3743
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3744
|
-
break;
|
|
3745
|
-
}
|
|
3746
|
-
reader.skip(tag & 7);
|
|
3747
|
-
}
|
|
3748
|
-
return message;
|
|
3749
|
-
},
|
|
3750
|
-
fromJSON(object) {
|
|
3751
|
-
return {
|
|
3752
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3753
|
-
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3754
|
-
};
|
|
3755
|
-
},
|
|
3756
|
-
toJSON(message) {
|
|
3757
|
-
const obj = {};
|
|
3758
|
-
if (message.key !== "") {
|
|
3759
|
-
obj.key = message.key;
|
|
3760
|
-
}
|
|
3761
|
-
if (message.value !== void 0) {
|
|
3762
|
-
obj.value = Binding.toJSON(message.value);
|
|
3763
|
-
}
|
|
3764
|
-
return obj;
|
|
3765
|
-
},
|
|
3766
|
-
create(base) {
|
|
3767
|
-
return ProviderConfig_ConfigEntry.fromPartial(base ?? {});
|
|
3768
|
-
},
|
|
3769
|
-
fromPartial(object) {
|
|
3770
|
-
const message = createBaseProviderConfig_ConfigEntry();
|
|
3771
|
-
message.key = object.key ?? "";
|
|
3772
|
-
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3773
|
-
return message;
|
|
3774
|
-
}
|
|
3775
|
-
};
|
|
3776
|
-
function createBaseGraphLayout() {
|
|
3777
|
-
return { nodes: {}, groups: {} };
|
|
3778
|
-
}
|
|
3779
|
-
var GraphLayout = {
|
|
3780
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3781
|
-
globalThis.Object.entries(message.nodes).forEach(([key, value]) => {
|
|
3782
|
-
GraphLayout_NodesEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
3783
|
-
});
|
|
3784
|
-
globalThis.Object.entries(message.groups).forEach(([key, value]) => {
|
|
3785
|
-
GraphLayout_GroupsEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3786
|
-
});
|
|
3787
|
-
return writer;
|
|
3788
|
-
},
|
|
3789
|
-
decode(input, length) {
|
|
3790
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3791
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3792
|
-
const message = createBaseGraphLayout();
|
|
3793
|
-
while (reader.pos < end) {
|
|
3794
|
-
const tag = reader.uint32();
|
|
3795
|
-
switch (tag >>> 3) {
|
|
3796
|
-
case 1: {
|
|
3797
|
-
if (tag !== 10) {
|
|
3798
|
-
break;
|
|
3799
|
-
}
|
|
3800
|
-
const entry1 = GraphLayout_NodesEntry.decode(reader, reader.uint32());
|
|
3801
|
-
if (entry1.value !== void 0) {
|
|
3802
|
-
message.nodes[entry1.key] = entry1.value;
|
|
3803
|
-
}
|
|
3804
|
-
continue;
|
|
3805
|
-
}
|
|
3806
|
-
case 2: {
|
|
3807
|
-
if (tag !== 18) {
|
|
3808
|
-
break;
|
|
3809
|
-
}
|
|
3810
|
-
const entry2 = GraphLayout_GroupsEntry.decode(reader, reader.uint32());
|
|
3811
|
-
if (entry2.value !== void 0) {
|
|
3812
|
-
message.groups[entry2.key] = entry2.value;
|
|
3813
|
-
}
|
|
3814
|
-
continue;
|
|
3815
|
-
}
|
|
3816
|
-
}
|
|
3817
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3818
|
-
break;
|
|
3819
|
-
}
|
|
3820
|
-
reader.skip(tag & 7);
|
|
3821
|
-
}
|
|
3822
|
-
return message;
|
|
3823
|
-
},
|
|
3824
|
-
fromJSON(object) {
|
|
3825
|
-
return {
|
|
3826
|
-
nodes: isObject2(object.nodes) ? globalThis.Object.entries(object.nodes).reduce(
|
|
3827
|
-
(acc, [key, value]) => {
|
|
3828
|
-
acc[key] = NodeLayout.fromJSON(value);
|
|
3829
|
-
return acc;
|
|
3830
|
-
},
|
|
3831
|
-
{}
|
|
3832
|
-
) : {},
|
|
3833
|
-
groups: isObject2(object.groups) ? globalThis.Object.entries(object.groups).reduce(
|
|
3834
|
-
(acc, [key, value]) => {
|
|
3835
|
-
acc[key] = NodeGroup.fromJSON(value);
|
|
3836
|
-
return acc;
|
|
3837
|
-
},
|
|
3838
|
-
{}
|
|
3839
|
-
) : {}
|
|
3840
|
-
};
|
|
3841
|
-
},
|
|
3842
|
-
toJSON(message) {
|
|
3843
|
-
const obj = {};
|
|
3844
|
-
if (message.nodes) {
|
|
3845
|
-
const entries = globalThis.Object.entries(message.nodes);
|
|
3846
|
-
if (entries.length > 0) {
|
|
3847
|
-
obj.nodes = {};
|
|
3848
|
-
entries.forEach(([k, v]) => {
|
|
3849
|
-
obj.nodes[k] = NodeLayout.toJSON(v);
|
|
3850
|
-
});
|
|
3851
|
-
}
|
|
3852
|
-
}
|
|
3853
|
-
if (message.groups) {
|
|
3854
|
-
const entries = globalThis.Object.entries(message.groups);
|
|
3855
|
-
if (entries.length > 0) {
|
|
3856
|
-
obj.groups = {};
|
|
3857
|
-
entries.forEach(([k, v]) => {
|
|
3858
|
-
obj.groups[k] = NodeGroup.toJSON(v);
|
|
3859
|
-
});
|
|
3860
|
-
}
|
|
3861
|
-
}
|
|
3862
|
-
return obj;
|
|
3863
|
-
},
|
|
3864
|
-
create(base) {
|
|
3865
|
-
return GraphLayout.fromPartial(base ?? {});
|
|
3866
|
-
},
|
|
3867
|
-
fromPartial(object) {
|
|
3868
|
-
const message = createBaseGraphLayout();
|
|
3869
|
-
message.nodes = globalThis.Object.entries(object.nodes ?? {}).reduce(
|
|
3870
|
-
(acc, [key, value]) => {
|
|
3871
|
-
if (value !== void 0) {
|
|
3872
|
-
acc[key] = NodeLayout.fromPartial(value);
|
|
3873
|
-
}
|
|
3874
|
-
return acc;
|
|
3875
|
-
},
|
|
3876
|
-
{}
|
|
3877
|
-
);
|
|
3878
|
-
message.groups = globalThis.Object.entries(object.groups ?? {}).reduce(
|
|
3879
|
-
(acc, [key, value]) => {
|
|
3880
|
-
if (value !== void 0) {
|
|
3881
|
-
acc[key] = NodeGroup.fromPartial(value);
|
|
3882
|
-
}
|
|
3883
|
-
return acc;
|
|
3884
|
-
},
|
|
3885
|
-
{}
|
|
3886
|
-
);
|
|
3887
|
-
return message;
|
|
3888
|
-
}
|
|
3889
|
-
};
|
|
3890
|
-
function createBaseGraphLayout_NodesEntry() {
|
|
3891
|
-
return { key: "", value: void 0 };
|
|
3892
|
-
}
|
|
3893
|
-
var GraphLayout_NodesEntry = {
|
|
3894
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3895
|
-
if (message.key !== "") {
|
|
3896
|
-
writer.uint32(10).string(message.key);
|
|
3897
|
-
}
|
|
3898
|
-
if (message.value !== void 0) {
|
|
3899
|
-
NodeLayout.encode(message.value, writer.uint32(18).fork()).join();
|
|
3900
|
-
}
|
|
3901
|
-
return writer;
|
|
3902
|
-
},
|
|
3903
|
-
decode(input, length) {
|
|
3904
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3905
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3906
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3907
|
-
while (reader.pos < end) {
|
|
3908
|
-
const tag = reader.uint32();
|
|
3909
|
-
switch (tag >>> 3) {
|
|
3910
|
-
case 1: {
|
|
3911
|
-
if (tag !== 10) {
|
|
3912
|
-
break;
|
|
3913
|
-
}
|
|
3914
|
-
message.key = reader.string();
|
|
3915
|
-
continue;
|
|
3916
|
-
}
|
|
3917
|
-
case 2: {
|
|
3918
|
-
if (tag !== 18) {
|
|
3919
|
-
break;
|
|
3920
|
-
}
|
|
3921
|
-
message.value = NodeLayout.decode(reader, reader.uint32());
|
|
3922
|
-
continue;
|
|
3923
|
-
}
|
|
3924
|
-
}
|
|
3925
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3926
|
-
break;
|
|
3927
|
-
}
|
|
3928
|
-
reader.skip(tag & 7);
|
|
3929
|
-
}
|
|
3930
|
-
return message;
|
|
3931
|
-
},
|
|
3932
|
-
fromJSON(object) {
|
|
3933
|
-
return {
|
|
3934
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3935
|
-
value: isSet2(object.value) ? NodeLayout.fromJSON(object.value) : void 0
|
|
3936
|
-
};
|
|
3937
|
-
},
|
|
3938
|
-
toJSON(message) {
|
|
3939
|
-
const obj = {};
|
|
3940
|
-
if (message.key !== "") {
|
|
3941
|
-
obj.key = message.key;
|
|
3942
|
-
}
|
|
3943
|
-
if (message.value !== void 0) {
|
|
3944
|
-
obj.value = NodeLayout.toJSON(message.value);
|
|
3945
|
-
}
|
|
3946
|
-
return obj;
|
|
3947
|
-
},
|
|
3948
|
-
create(base) {
|
|
3949
|
-
return GraphLayout_NodesEntry.fromPartial(base ?? {});
|
|
3950
|
-
},
|
|
3951
|
-
fromPartial(object) {
|
|
3952
|
-
const message = createBaseGraphLayout_NodesEntry();
|
|
3953
|
-
message.key = object.key ?? "";
|
|
3954
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeLayout.fromPartial(object.value) : void 0;
|
|
3955
|
-
return message;
|
|
3956
|
-
}
|
|
3957
|
-
};
|
|
3958
|
-
function createBaseGraphLayout_GroupsEntry() {
|
|
3959
|
-
return { key: "", value: void 0 };
|
|
3960
|
-
}
|
|
3961
|
-
var GraphLayout_GroupsEntry = {
|
|
3962
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
3963
|
-
if (message.key !== "") {
|
|
3964
|
-
writer.uint32(10).string(message.key);
|
|
3965
|
-
}
|
|
3966
|
-
if (message.value !== void 0) {
|
|
3967
|
-
NodeGroup.encode(message.value, writer.uint32(18).fork()).join();
|
|
3968
|
-
}
|
|
3969
|
-
return writer;
|
|
3970
|
-
},
|
|
3971
|
-
decode(input, length) {
|
|
3972
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
3973
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3974
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
3975
|
-
while (reader.pos < end) {
|
|
3976
|
-
const tag = reader.uint32();
|
|
3977
|
-
switch (tag >>> 3) {
|
|
3978
|
-
case 1: {
|
|
3979
|
-
if (tag !== 10) {
|
|
3980
|
-
break;
|
|
3981
|
-
}
|
|
3982
|
-
message.key = reader.string();
|
|
3983
|
-
continue;
|
|
3984
|
-
}
|
|
3985
|
-
case 2: {
|
|
3986
|
-
if (tag !== 18) {
|
|
3987
|
-
break;
|
|
3988
|
-
}
|
|
3989
|
-
message.value = NodeGroup.decode(reader, reader.uint32());
|
|
3990
|
-
continue;
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3994
|
-
break;
|
|
3995
|
-
}
|
|
3996
|
-
reader.skip(tag & 7);
|
|
3997
|
-
}
|
|
3998
|
-
return message;
|
|
3999
|
-
},
|
|
4000
|
-
fromJSON(object) {
|
|
4001
|
-
return {
|
|
4002
|
-
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
4003
|
-
value: isSet2(object.value) ? NodeGroup.fromJSON(object.value) : void 0
|
|
4004
|
-
};
|
|
4005
|
-
},
|
|
4006
|
-
toJSON(message) {
|
|
4007
|
-
const obj = {};
|
|
4008
|
-
if (message.key !== "") {
|
|
4009
|
-
obj.key = message.key;
|
|
4010
|
-
}
|
|
4011
|
-
if (message.value !== void 0) {
|
|
4012
|
-
obj.value = NodeGroup.toJSON(message.value);
|
|
4013
|
-
}
|
|
4014
|
-
return obj;
|
|
4015
|
-
},
|
|
4016
|
-
create(base) {
|
|
4017
|
-
return GraphLayout_GroupsEntry.fromPartial(base ?? {});
|
|
4018
|
-
},
|
|
4019
|
-
fromPartial(object) {
|
|
4020
|
-
const message = createBaseGraphLayout_GroupsEntry();
|
|
4021
|
-
message.key = object.key ?? "";
|
|
4022
|
-
message.value = object.value !== void 0 && object.value !== null ? NodeGroup.fromPartial(object.value) : void 0;
|
|
4023
|
-
return message;
|
|
4024
|
-
}
|
|
4025
|
-
};
|
|
4026
|
-
function createBaseNodeGroup() {
|
|
4027
|
-
return { id: "", label: "", node_ids: [], collapsed: false };
|
|
4028
|
-
}
|
|
4029
|
-
var NodeGroup = {
|
|
4030
|
-
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
4031
|
-
if (message.id !== "") {
|
|
4032
|
-
writer.uint32(10).string(message.id);
|
|
4033
|
-
}
|
|
4034
|
-
if (message.label !== "") {
|
|
4035
|
-
writer.uint32(18).string(message.label);
|
|
4036
|
-
}
|
|
4037
|
-
for (const v of message.node_ids) {
|
|
4038
|
-
writer.uint32(26).string(v);
|
|
4039
|
-
}
|
|
4040
|
-
if (message.collapsed !== false) {
|
|
4041
|
-
writer.uint32(32).bool(message.collapsed);
|
|
4042
|
-
}
|
|
4043
|
-
return writer;
|
|
4044
|
-
},
|
|
4045
|
-
decode(input, length) {
|
|
4046
|
-
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
4047
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4048
|
-
const message = createBaseNodeGroup();
|
|
4049
|
-
while (reader.pos < end) {
|
|
4050
|
-
const tag = reader.uint32();
|
|
4051
|
-
switch (tag >>> 3) {
|
|
4052
|
-
case 1: {
|
|
4053
|
-
if (tag !== 10) {
|
|
4054
|
-
break;
|
|
4055
|
-
}
|
|
4056
|
-
message.id = reader.string();
|
|
4057
|
-
continue;
|
|
4058
|
-
}
|
|
4059
|
-
case 2: {
|
|
4060
|
-
if (tag !== 18) {
|
|
4061
|
-
break;
|
|
4062
|
-
}
|
|
4063
|
-
message.label = reader.string();
|
|
4064
|
-
continue;
|
|
4065
|
-
}
|
|
4066
|
-
case 3: {
|
|
4067
|
-
if (tag !== 26) {
|
|
4068
|
-
break;
|
|
4069
|
-
}
|
|
4070
|
-
message.node_ids.push(reader.string());
|
|
4071
|
-
continue;
|
|
4072
|
-
}
|
|
4073
|
-
case 4: {
|
|
4074
|
-
if (tag !== 32) {
|
|
4075
|
-
break;
|
|
4076
|
-
}
|
|
4077
|
-
message.collapsed = reader.bool();
|
|
3399
|
+
message.configuration_aliases.push(reader.string());
|
|
4078
3400
|
continue;
|
|
4079
3401
|
}
|
|
4080
3402
|
}
|
|
@@ -4087,54 +3409,54 @@ var NodeGroup = {
|
|
|
4087
3409
|
},
|
|
4088
3410
|
fromJSON(object) {
|
|
4089
3411
|
return {
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
collapsed: isSet2(object.collapsed) ? globalThis.Boolean(object.collapsed) : false
|
|
3412
|
+
source: isSet2(object.source) ? globalThis.String(object.source) : "",
|
|
3413
|
+
version: isSet2(object.version) ? globalThis.String(object.version) : "",
|
|
3414
|
+
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
4094
3415
|
};
|
|
4095
3416
|
},
|
|
4096
3417
|
toJSON(message) {
|
|
4097
3418
|
const obj = {};
|
|
4098
|
-
if (message.
|
|
4099
|
-
obj.
|
|
4100
|
-
}
|
|
4101
|
-
if (message.label !== "") {
|
|
4102
|
-
obj.label = message.label;
|
|
3419
|
+
if (message.source !== "") {
|
|
3420
|
+
obj.source = message.source;
|
|
4103
3421
|
}
|
|
4104
|
-
if (message.
|
|
4105
|
-
obj.
|
|
3422
|
+
if (message.version !== "") {
|
|
3423
|
+
obj.version = message.version;
|
|
4106
3424
|
}
|
|
4107
|
-
if (message.
|
|
4108
|
-
obj.
|
|
3425
|
+
if (message.configuration_aliases?.length) {
|
|
3426
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
4109
3427
|
}
|
|
4110
3428
|
return obj;
|
|
4111
3429
|
},
|
|
4112
3430
|
create(base) {
|
|
4113
|
-
return
|
|
3431
|
+
return ProviderRequirement.fromPartial(base ?? {});
|
|
4114
3432
|
},
|
|
4115
3433
|
fromPartial(object) {
|
|
4116
|
-
const message =
|
|
4117
|
-
message.
|
|
4118
|
-
message.
|
|
4119
|
-
message.
|
|
4120
|
-
message.collapsed = object.collapsed ?? false;
|
|
3434
|
+
const message = createBaseProviderRequirement();
|
|
3435
|
+
message.source = object.source ?? "";
|
|
3436
|
+
message.version = object.version ?? "";
|
|
3437
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
4121
3438
|
return message;
|
|
4122
3439
|
}
|
|
4123
3440
|
};
|
|
4124
|
-
function
|
|
4125
|
-
return {
|
|
3441
|
+
function createBaseBackendConfig() {
|
|
3442
|
+
return { type: "", config: {} };
|
|
4126
3443
|
}
|
|
4127
|
-
var
|
|
3444
|
+
var BackendConfig = {
|
|
4128
3445
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
4129
|
-
if (message.
|
|
4130
|
-
|
|
3446
|
+
if (message.type !== "") {
|
|
3447
|
+
writer.uint32(10).string(message.type);
|
|
4131
3448
|
}
|
|
3449
|
+
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3450
|
+
if (value !== void 0) {
|
|
3451
|
+
BackendConfig_ConfigEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
3452
|
+
}
|
|
3453
|
+
});
|
|
4132
3454
|
return writer;
|
|
4133
3455
|
},
|
|
4134
3456
|
decode(input, length) {
|
|
4135
3457
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
4136
3458
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4137
|
-
const message =
|
|
3459
|
+
const message = createBaseBackendConfig();
|
|
4138
3460
|
while (reader.pos < end) {
|
|
4139
3461
|
const tag = reader.uint32();
|
|
4140
3462
|
switch (tag >>> 3) {
|
|
@@ -4142,7 +3464,17 @@ var NodeLayout = {
|
|
|
4142
3464
|
if (tag !== 10) {
|
|
4143
3465
|
break;
|
|
4144
3466
|
}
|
|
4145
|
-
message.
|
|
3467
|
+
message.type = reader.string();
|
|
3468
|
+
continue;
|
|
3469
|
+
}
|
|
3470
|
+
case 2: {
|
|
3471
|
+
if (tag !== 18) {
|
|
3472
|
+
break;
|
|
3473
|
+
}
|
|
3474
|
+
const entry2 = BackendConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3475
|
+
if (entry2.value !== void 0) {
|
|
3476
|
+
message.config[entry2.key] = entry2.value;
|
|
3477
|
+
}
|
|
4146
3478
|
continue;
|
|
4147
3479
|
}
|
|
4148
3480
|
}
|
|
@@ -4154,56 +3486,83 @@ var NodeLayout = {
|
|
|
4154
3486
|
return message;
|
|
4155
3487
|
},
|
|
4156
3488
|
fromJSON(object) {
|
|
4157
|
-
return {
|
|
3489
|
+
return {
|
|
3490
|
+
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
3491
|
+
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3492
|
+
(acc, [key, value]) => {
|
|
3493
|
+
acc[key] = value;
|
|
3494
|
+
return acc;
|
|
3495
|
+
},
|
|
3496
|
+
{}
|
|
3497
|
+
) : {}
|
|
3498
|
+
};
|
|
4158
3499
|
},
|
|
4159
3500
|
toJSON(message) {
|
|
4160
3501
|
const obj = {};
|
|
4161
|
-
if (message.
|
|
4162
|
-
obj.
|
|
3502
|
+
if (message.type !== "") {
|
|
3503
|
+
obj.type = message.type;
|
|
3504
|
+
}
|
|
3505
|
+
if (message.config) {
|
|
3506
|
+
const entries = globalThis.Object.entries(message.config);
|
|
3507
|
+
if (entries.length > 0) {
|
|
3508
|
+
obj.config = {};
|
|
3509
|
+
entries.forEach(([k, v]) => {
|
|
3510
|
+
obj.config[k] = v;
|
|
3511
|
+
});
|
|
3512
|
+
}
|
|
4163
3513
|
}
|
|
4164
3514
|
return obj;
|
|
4165
3515
|
},
|
|
4166
3516
|
create(base) {
|
|
4167
|
-
return
|
|
3517
|
+
return BackendConfig.fromPartial(base ?? {});
|
|
4168
3518
|
},
|
|
4169
3519
|
fromPartial(object) {
|
|
4170
|
-
const message =
|
|
4171
|
-
message.
|
|
3520
|
+
const message = createBaseBackendConfig();
|
|
3521
|
+
message.type = object.type ?? "";
|
|
3522
|
+
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3523
|
+
(acc, [key, value]) => {
|
|
3524
|
+
if (value !== void 0) {
|
|
3525
|
+
acc[key] = value;
|
|
3526
|
+
}
|
|
3527
|
+
return acc;
|
|
3528
|
+
},
|
|
3529
|
+
{}
|
|
3530
|
+
);
|
|
4172
3531
|
return message;
|
|
4173
3532
|
}
|
|
4174
3533
|
};
|
|
4175
|
-
function
|
|
4176
|
-
return {
|
|
3534
|
+
function createBaseBackendConfig_ConfigEntry() {
|
|
3535
|
+
return { key: "", value: void 0 };
|
|
4177
3536
|
}
|
|
4178
|
-
var
|
|
3537
|
+
var BackendConfig_ConfigEntry = {
|
|
4179
3538
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
4180
|
-
if (message.
|
|
4181
|
-
writer.uint32(
|
|
3539
|
+
if (message.key !== "") {
|
|
3540
|
+
writer.uint32(10).string(message.key);
|
|
4182
3541
|
}
|
|
4183
|
-
if (message.
|
|
4184
|
-
writer.uint32(
|
|
3542
|
+
if (message.value !== void 0) {
|
|
3543
|
+
Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
4185
3544
|
}
|
|
4186
3545
|
return writer;
|
|
4187
3546
|
},
|
|
4188
3547
|
decode(input, length) {
|
|
4189
3548
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
4190
3549
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4191
|
-
const message =
|
|
3550
|
+
const message = createBaseBackendConfig_ConfigEntry();
|
|
4192
3551
|
while (reader.pos < end) {
|
|
4193
3552
|
const tag = reader.uint32();
|
|
4194
3553
|
switch (tag >>> 3) {
|
|
4195
3554
|
case 1: {
|
|
4196
|
-
if (tag !==
|
|
3555
|
+
if (tag !== 10) {
|
|
4197
3556
|
break;
|
|
4198
3557
|
}
|
|
4199
|
-
message.
|
|
3558
|
+
message.key = reader.string();
|
|
4200
3559
|
continue;
|
|
4201
3560
|
}
|
|
4202
3561
|
case 2: {
|
|
4203
|
-
if (tag !==
|
|
3562
|
+
if (tag !== 18) {
|
|
4204
3563
|
break;
|
|
4205
3564
|
}
|
|
4206
|
-
message.
|
|
3565
|
+
message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
|
|
4207
3566
|
continue;
|
|
4208
3567
|
}
|
|
4209
3568
|
}
|
|
@@ -4216,44 +3575,53 @@ var Position = {
|
|
|
4216
3575
|
},
|
|
4217
3576
|
fromJSON(object) {
|
|
4218
3577
|
return {
|
|
4219
|
-
|
|
4220
|
-
|
|
3578
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3579
|
+
value: isSet2(object?.value) ? object.value : void 0
|
|
4221
3580
|
};
|
|
4222
3581
|
},
|
|
4223
3582
|
toJSON(message) {
|
|
4224
3583
|
const obj = {};
|
|
4225
|
-
if (message.
|
|
4226
|
-
obj.
|
|
3584
|
+
if (message.key !== "") {
|
|
3585
|
+
obj.key = message.key;
|
|
4227
3586
|
}
|
|
4228
|
-
if (message.
|
|
4229
|
-
obj.
|
|
3587
|
+
if (message.value !== void 0) {
|
|
3588
|
+
obj.value = message.value;
|
|
4230
3589
|
}
|
|
4231
3590
|
return obj;
|
|
4232
3591
|
},
|
|
4233
3592
|
create(base) {
|
|
4234
|
-
return
|
|
3593
|
+
return BackendConfig_ConfigEntry.fromPartial(base ?? {});
|
|
4235
3594
|
},
|
|
4236
3595
|
fromPartial(object) {
|
|
4237
|
-
const message =
|
|
4238
|
-
message.
|
|
4239
|
-
message.
|
|
3596
|
+
const message = createBaseBackendConfig_ConfigEntry();
|
|
3597
|
+
message.key = object.key ?? "";
|
|
3598
|
+
message.value = object.value ?? void 0;
|
|
4240
3599
|
return message;
|
|
4241
3600
|
}
|
|
4242
3601
|
};
|
|
4243
|
-
function
|
|
4244
|
-
return {
|
|
3602
|
+
function createBaseProviderConfig() {
|
|
3603
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
4245
3604
|
}
|
|
4246
|
-
var
|
|
3605
|
+
var ProviderConfig = {
|
|
4247
3606
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
4248
|
-
|
|
4249
|
-
|
|
3607
|
+
if (message.name !== "") {
|
|
3608
|
+
writer.uint32(10).string(message.name);
|
|
3609
|
+
}
|
|
3610
|
+
if (message.alias !== "") {
|
|
3611
|
+
writer.uint32(18).string(message.alias);
|
|
3612
|
+
}
|
|
3613
|
+
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3614
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
4250
3615
|
});
|
|
3616
|
+
for (const v of message.blocks) {
|
|
3617
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3618
|
+
}
|
|
4251
3619
|
return writer;
|
|
4252
3620
|
},
|
|
4253
3621
|
decode(input, length) {
|
|
4254
3622
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
4255
3623
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4256
|
-
const message =
|
|
3624
|
+
const message = createBaseProviderConfig();
|
|
4257
3625
|
while (reader.pos < end) {
|
|
4258
3626
|
const tag = reader.uint32();
|
|
4259
3627
|
switch (tag >>> 3) {
|
|
@@ -4261,10 +3629,31 @@ var LayoutsMap = {
|
|
|
4261
3629
|
if (tag !== 10) {
|
|
4262
3630
|
break;
|
|
4263
3631
|
}
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
3632
|
+
message.name = reader.string();
|
|
3633
|
+
continue;
|
|
3634
|
+
}
|
|
3635
|
+
case 2: {
|
|
3636
|
+
if (tag !== 18) {
|
|
3637
|
+
break;
|
|
3638
|
+
}
|
|
3639
|
+
message.alias = reader.string();
|
|
3640
|
+
continue;
|
|
3641
|
+
}
|
|
3642
|
+
case 3: {
|
|
3643
|
+
if (tag !== 26) {
|
|
3644
|
+
break;
|
|
3645
|
+
}
|
|
3646
|
+
const entry3 = ProviderConfig_ConfigEntry.decode(reader, reader.uint32());
|
|
3647
|
+
if (entry3.value !== void 0) {
|
|
3648
|
+
message.config[entry3.key] = entry3.value;
|
|
3649
|
+
}
|
|
3650
|
+
continue;
|
|
3651
|
+
}
|
|
3652
|
+
case 4: {
|
|
3653
|
+
if (tag !== 34) {
|
|
3654
|
+
break;
|
|
4267
3655
|
}
|
|
3656
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
4268
3657
|
continue;
|
|
4269
3658
|
}
|
|
4270
3659
|
}
|
|
@@ -4277,62 +3666,77 @@ var LayoutsMap = {
|
|
|
4277
3666
|
},
|
|
4278
3667
|
fromJSON(object) {
|
|
4279
3668
|
return {
|
|
4280
|
-
|
|
3669
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
3670
|
+
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3671
|
+
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
4281
3672
|
(acc, [key, value]) => {
|
|
4282
|
-
acc[key] =
|
|
3673
|
+
acc[key] = Binding.fromJSON(value);
|
|
4283
3674
|
return acc;
|
|
4284
3675
|
},
|
|
4285
3676
|
{}
|
|
4286
|
-
) : {}
|
|
3677
|
+
) : {},
|
|
3678
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
4287
3679
|
};
|
|
4288
3680
|
},
|
|
4289
3681
|
toJSON(message) {
|
|
4290
3682
|
const obj = {};
|
|
4291
|
-
if (message.
|
|
4292
|
-
|
|
3683
|
+
if (message.name !== "") {
|
|
3684
|
+
obj.name = message.name;
|
|
3685
|
+
}
|
|
3686
|
+
if (message.alias !== "") {
|
|
3687
|
+
obj.alias = message.alias;
|
|
3688
|
+
}
|
|
3689
|
+
if (message.config) {
|
|
3690
|
+
const entries = globalThis.Object.entries(message.config);
|
|
4293
3691
|
if (entries.length > 0) {
|
|
4294
|
-
obj.
|
|
3692
|
+
obj.config = {};
|
|
4295
3693
|
entries.forEach(([k, v]) => {
|
|
4296
|
-
obj.
|
|
3694
|
+
obj.config[k] = Binding.toJSON(v);
|
|
4297
3695
|
});
|
|
4298
3696
|
}
|
|
4299
3697
|
}
|
|
3698
|
+
if (message.blocks?.length) {
|
|
3699
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3700
|
+
}
|
|
4300
3701
|
return obj;
|
|
4301
3702
|
},
|
|
4302
3703
|
create(base) {
|
|
4303
|
-
return
|
|
3704
|
+
return ProviderConfig.fromPartial(base ?? {});
|
|
4304
3705
|
},
|
|
4305
3706
|
fromPartial(object) {
|
|
4306
|
-
const message =
|
|
4307
|
-
message.
|
|
3707
|
+
const message = createBaseProviderConfig();
|
|
3708
|
+
message.name = object.name ?? "";
|
|
3709
|
+
message.alias = object.alias ?? "";
|
|
3710
|
+
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
4308
3711
|
(acc, [key, value]) => {
|
|
4309
3712
|
if (value !== void 0) {
|
|
4310
|
-
acc[key] =
|
|
3713
|
+
acc[key] = Binding.fromPartial(value);
|
|
4311
3714
|
}
|
|
4312
3715
|
return acc;
|
|
4313
3716
|
},
|
|
4314
3717
|
{}
|
|
4315
3718
|
);
|
|
3719
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
4316
3720
|
return message;
|
|
4317
3721
|
}
|
|
4318
3722
|
};
|
|
4319
|
-
function
|
|
3723
|
+
function createBaseProviderConfig_ConfigEntry() {
|
|
4320
3724
|
return { key: "", value: void 0 };
|
|
4321
3725
|
}
|
|
4322
|
-
var
|
|
3726
|
+
var ProviderConfig_ConfigEntry = {
|
|
4323
3727
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
4324
3728
|
if (message.key !== "") {
|
|
4325
3729
|
writer.uint32(10).string(message.key);
|
|
4326
3730
|
}
|
|
4327
3731
|
if (message.value !== void 0) {
|
|
4328
|
-
|
|
3732
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
4329
3733
|
}
|
|
4330
3734
|
return writer;
|
|
4331
3735
|
},
|
|
4332
3736
|
decode(input, length) {
|
|
4333
3737
|
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
4334
3738
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4335
|
-
const message =
|
|
3739
|
+
const message = createBaseProviderConfig_ConfigEntry();
|
|
4336
3740
|
while (reader.pos < end) {
|
|
4337
3741
|
const tag = reader.uint32();
|
|
4338
3742
|
switch (tag >>> 3) {
|
|
@@ -4347,7 +3751,7 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4347
3751
|
if (tag !== 18) {
|
|
4348
3752
|
break;
|
|
4349
3753
|
}
|
|
4350
|
-
message.value =
|
|
3754
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
4351
3755
|
continue;
|
|
4352
3756
|
}
|
|
4353
3757
|
}
|
|
@@ -4361,7 +3765,7 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4361
3765
|
fromJSON(object) {
|
|
4362
3766
|
return {
|
|
4363
3767
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
4364
|
-
value: isSet2(object.value) ?
|
|
3768
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
4365
3769
|
};
|
|
4366
3770
|
},
|
|
4367
3771
|
toJSON(message) {
|
|
@@ -4370,17 +3774,17 @@ var LayoutsMap_LayoutsEntry = {
|
|
|
4370
3774
|
obj.key = message.key;
|
|
4371
3775
|
}
|
|
4372
3776
|
if (message.value !== void 0) {
|
|
4373
|
-
obj.value =
|
|
3777
|
+
obj.value = Binding.toJSON(message.value);
|
|
4374
3778
|
}
|
|
4375
3779
|
return obj;
|
|
4376
3780
|
},
|
|
4377
3781
|
create(base) {
|
|
4378
|
-
return
|
|
3782
|
+
return ProviderConfig_ConfigEntry.fromPartial(base ?? {});
|
|
4379
3783
|
},
|
|
4380
3784
|
fromPartial(object) {
|
|
4381
|
-
const message =
|
|
3785
|
+
const message = createBaseProviderConfig_ConfigEntry();
|
|
4382
3786
|
message.key = object.key ?? "";
|
|
4383
|
-
message.value = object.value !== void 0 && object.value !== null ?
|
|
3787
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
4384
3788
|
return message;
|
|
4385
3789
|
}
|
|
4386
3790
|
};
|
|
@@ -4405,6 +3809,47 @@ function isGroupUse(bundle, use) {
|
|
|
4405
3809
|
return (target.modules?.length ?? 0) > 0;
|
|
4406
3810
|
}
|
|
4407
3811
|
|
|
3812
|
+
// src/projection/compute-layout.ts
|
|
3813
|
+
var SPACING_X = 260;
|
|
3814
|
+
var SPACING_Y = 180;
|
|
3815
|
+
function gridPosition(index, n) {
|
|
3816
|
+
const cols = Math.max(2, Math.ceil(Math.sqrt(n)));
|
|
3817
|
+
const col = index % cols;
|
|
3818
|
+
const row = Math.floor(index / cols);
|
|
3819
|
+
return { x: col * SPACING_X, y: row * SPACING_Y };
|
|
3820
|
+
}
|
|
3821
|
+
function overlapsAny(candidate, occupied) {
|
|
3822
|
+
return occupied.some(
|
|
3823
|
+
(o) => candidate.x < o.x + SPACING_X && candidate.x + SPACING_X > o.x && candidate.y < o.y + SPACING_Y && candidate.y + SPACING_Y > o.y
|
|
3824
|
+
);
|
|
3825
|
+
}
|
|
3826
|
+
function resolveScopePositions(ids, arrangementNodes) {
|
|
3827
|
+
const positions = /* @__PURE__ */ new Map();
|
|
3828
|
+
const occupied = [];
|
|
3829
|
+
const unresolved = [];
|
|
3830
|
+
for (const id of ids) {
|
|
3831
|
+
const stored = arrangementNodes?.[id];
|
|
3832
|
+
if (stored) {
|
|
3833
|
+
positions.set(id, stored);
|
|
3834
|
+
occupied.push(stored);
|
|
3835
|
+
} else {
|
|
3836
|
+
unresolved.push(id);
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
let slot = 0;
|
|
3840
|
+
for (const id of unresolved) {
|
|
3841
|
+
let candidate = gridPosition(slot, ids.length);
|
|
3842
|
+
while (overlapsAny(candidate, occupied)) {
|
|
3843
|
+
slot += 1;
|
|
3844
|
+
candidate = gridPosition(slot, ids.length);
|
|
3845
|
+
}
|
|
3846
|
+
positions.set(id, candidate);
|
|
3847
|
+
occupied.push(candidate);
|
|
3848
|
+
slot += 1;
|
|
3849
|
+
}
|
|
3850
|
+
return positions;
|
|
3851
|
+
}
|
|
3852
|
+
|
|
4408
3853
|
// src/projection/derive-edges.ts
|
|
4409
3854
|
var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
4410
3855
|
function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
|
|
@@ -4470,11 +3915,11 @@ function joinPath(prefix, localId) {
|
|
|
4470
3915
|
}
|
|
4471
3916
|
|
|
4472
3917
|
// src/projection/project-group.ts
|
|
4473
|
-
function projectGroup(use, target, fullId,
|
|
3918
|
+
function projectGroup(use, target, fullId, parentArrangement) {
|
|
4474
3919
|
const childIds = (target.modules ?? []).map((u) => joinPath(fullId, u.id));
|
|
4475
|
-
const parentGroup =
|
|
3920
|
+
const parentGroup = parentArrangement?.groups?.[use.id];
|
|
4476
3921
|
const collapsed = parentGroup ? parentGroup.collapsed : true;
|
|
4477
|
-
const label = parentGroup
|
|
3922
|
+
const label = parentGroup?.label ? parentGroup.label : use.id;
|
|
4478
3923
|
const inputs = (target.interface?.inputs ?? []).map((in_) => ({
|
|
4479
3924
|
name: in_.name,
|
|
4480
3925
|
type: in_.type,
|
|
@@ -4498,21 +3943,6 @@ function projectGroup(use, target, fullId, parentLayout) {
|
|
|
4498
3943
|
};
|
|
4499
3944
|
}
|
|
4500
3945
|
|
|
4501
|
-
// src/projection/compute-layout.ts
|
|
4502
|
-
var SPACING_X = 260;
|
|
4503
|
-
var SPACING_Y = 180;
|
|
4504
|
-
function gridPosition(index, n) {
|
|
4505
|
-
const cols = Math.max(2, Math.ceil(Math.sqrt(n)));
|
|
4506
|
-
const col = index % cols;
|
|
4507
|
-
const row = Math.floor(index / cols);
|
|
4508
|
-
return { x: col * SPACING_X, y: row * SPACING_Y };
|
|
4509
|
-
}
|
|
4510
|
-
function resolveChildPosition(childId, childIndex, totalChildren, existing) {
|
|
4511
|
-
const stored = existing?.[childId]?.position;
|
|
4512
|
-
if (stored) return stored;
|
|
4513
|
-
return gridPosition(childIndex, totalChildren);
|
|
4514
|
-
}
|
|
4515
|
-
|
|
4516
3946
|
// src/projection/resolve-schema.ts
|
|
4517
3947
|
function resolveSchema(bundle, use) {
|
|
4518
3948
|
const target = bundle.modules[use.module];
|
|
@@ -4540,8 +3970,7 @@ function descendScope(bundle, scopeKey, segments) {
|
|
|
4540
3970
|
}
|
|
4541
3971
|
|
|
4542
3972
|
// src/projection/project-node.ts
|
|
4543
|
-
function projectNode(bundle, use, fullId,
|
|
4544
|
-
const position = resolveChildPosition(use.id, childIndex, totalChildren, scopeLayout?.nodes);
|
|
3973
|
+
function projectNode(bundle, use, fullId, position, wiredIn, wiredOut, errorsByInstance) {
|
|
4545
3974
|
const errorMessages = errorsByInstance.get(use.id) ?? [];
|
|
4546
3975
|
const schema = resolveSchema(bundle, use);
|
|
4547
3976
|
return {
|
|
@@ -4570,49 +3999,38 @@ function projectNode(bundle, use, fullId, childIndex, totalChildren, scopeLayout
|
|
|
4570
3999
|
}
|
|
4571
4000
|
|
|
4572
4001
|
// src/projection/project-scope.ts
|
|
4573
|
-
function projectScope(bundle, mod, path,
|
|
4002
|
+
function projectScope(bundle, mod, path, arrangement, errorsByInstance) {
|
|
4574
4003
|
const uses = mod.modules ?? [];
|
|
4575
4004
|
const derived = deriveEdges(uses);
|
|
4576
4005
|
const { inputs: wiredIn, outputs: wiredOut } = indexWires(derived);
|
|
4577
4006
|
const scopeKey = resolveScopePath(bundle, path);
|
|
4578
|
-
const
|
|
4007
|
+
const scopeArrangement = scopeKey ? arrangement?.[scopeKey] : void 0;
|
|
4579
4008
|
const nodes = [];
|
|
4580
4009
|
const groups = [];
|
|
4581
|
-
const
|
|
4582
|
-
|
|
4010
|
+
const classified = uses.map((use) => ({ use, group: isGroupUse(bundle, use) }));
|
|
4011
|
+
const nodeUseIds = classified.filter((c) => !c.group).map((c) => c.use.id);
|
|
4012
|
+
const positions = resolveScopePositions(nodeUseIds, scopeArrangement?.nodes);
|
|
4013
|
+
for (const { use, group } of classified) {
|
|
4583
4014
|
const fullId = joinPath(path, use.id);
|
|
4584
|
-
if (
|
|
4015
|
+
if (group) {
|
|
4585
4016
|
const target = bundle.modules[use.module];
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
emittedGroupIds.add(use.id);
|
|
4589
|
-
return;
|
|
4590
|
-
}
|
|
4017
|
+
groups.push(projectGroup(use, target, fullId, scopeArrangement));
|
|
4018
|
+
continue;
|
|
4591
4019
|
}
|
|
4592
4020
|
nodes.push(
|
|
4593
4021
|
projectNode(
|
|
4594
4022
|
bundle,
|
|
4595
4023
|
use,
|
|
4596
4024
|
fullId,
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4025
|
+
// Every non-group use is in nodeUseIds, so resolveScopePositions
|
|
4026
|
+
// always has an entry for it — a fallback here would only mask a
|
|
4027
|
+
// classification bug, not handle a real gap.
|
|
4028
|
+
positions.get(use.id),
|
|
4600
4029
|
wiredIn.get(use.id) ?? /* @__PURE__ */ new Set(),
|
|
4601
4030
|
wiredOut.get(use.id) ?? /* @__PURE__ */ new Set(),
|
|
4602
4031
|
errorsByInstance
|
|
4603
4032
|
)
|
|
4604
4033
|
);
|
|
4605
|
-
});
|
|
4606
|
-
if (layout?.groups) {
|
|
4607
|
-
for (const [groupId, g] of Object.entries(layout.groups)) {
|
|
4608
|
-
if (emittedGroupIds.has(groupId)) continue;
|
|
4609
|
-
groups.push({
|
|
4610
|
-
id: g.id,
|
|
4611
|
-
label: g.label,
|
|
4612
|
-
node_ids: g.node_ids.map((id) => joinPath(path, id)),
|
|
4613
|
-
collapsed: g.collapsed
|
|
4614
|
-
});
|
|
4615
|
-
}
|
|
4616
4034
|
}
|
|
4617
4035
|
const edges = derived.map((de) => {
|
|
4618
4036
|
const sourceId = joinPath(path, de.source_instance);
|
|
@@ -4659,25 +4077,6 @@ function danglingEdgeErrors(nodes, groups, edges) {
|
|
|
4659
4077
|
}
|
|
4660
4078
|
return errors;
|
|
4661
4079
|
}
|
|
4662
|
-
function overlappingGroupsWarnings(groups) {
|
|
4663
|
-
const errors = [];
|
|
4664
|
-
const userGroups = groups.filter((g) => !g.module_key);
|
|
4665
|
-
for (let i = 0; i < userGroups.length; i++) {
|
|
4666
|
-
for (let j = i + 1; j < userGroups.length; j++) {
|
|
4667
|
-
const a = userGroups[i];
|
|
4668
|
-
const b = userGroups[j];
|
|
4669
|
-
const aSet = new Set(a.node_ids);
|
|
4670
|
-
const overlap = b.node_ids.filter((id) => aSet.has(id));
|
|
4671
|
-
if (overlap.length > 0) {
|
|
4672
|
-
errors.push({
|
|
4673
|
-
instance_id: a.id,
|
|
4674
|
-
message: `Group "${a.label}" overlaps group "${b.label}" on ${overlap.length} member(s)`
|
|
4675
|
-
});
|
|
4676
|
-
}
|
|
4677
|
-
}
|
|
4678
|
-
}
|
|
4679
|
-
return errors;
|
|
4680
|
-
}
|
|
4681
4080
|
|
|
4682
4081
|
// src/projection/walk-modules.ts
|
|
4683
4082
|
function walk(bundle, visit) {
|
|
@@ -4696,21 +4095,20 @@ function walkFrom(bundle, mod, use, path, visit) {
|
|
|
4696
4095
|
}
|
|
4697
4096
|
|
|
4698
4097
|
// src/projection/project.ts
|
|
4699
|
-
function projectCanvasView(bundle,
|
|
4098
|
+
function projectCanvasView(bundle, arrangement, meta) {
|
|
4700
4099
|
const nodes = [];
|
|
4701
4100
|
const edges = [];
|
|
4702
4101
|
const groups = [];
|
|
4703
4102
|
const errorsByInstance = /* @__PURE__ */ new Map();
|
|
4704
4103
|
walk(bundle, (mod, _use, path) => {
|
|
4705
|
-
const scope = projectScope(bundle, mod, path,
|
|
4104
|
+
const scope = projectScope(bundle, mod, path, arrangement, errorsByInstance);
|
|
4706
4105
|
nodes.push(...scope.nodes);
|
|
4707
4106
|
edges.push(...scope.edges);
|
|
4708
4107
|
groups.push(...scope.groups);
|
|
4709
4108
|
});
|
|
4710
4109
|
const errors = [
|
|
4711
4110
|
...missingRequiredInputErrors(nodes),
|
|
4712
|
-
...danglingEdgeErrors(nodes, groups, edges)
|
|
4713
|
-
...overlappingGroupsWarnings(groups)
|
|
4111
|
+
...danglingEdgeErrors(nodes, groups, edges)
|
|
4714
4112
|
];
|
|
4715
4113
|
errors.sort((a, b) => {
|
|
4716
4114
|
const ai = a.instance_id ?? "";
|
|
@@ -4721,8 +4119,6 @@ function projectCanvasView(bundle, layouts, meta) {
|
|
|
4721
4119
|
if (an !== bn) return an < bn ? -1 : 1;
|
|
4722
4120
|
return a.message < b.message ? -1 : a.message > b.message ? 1 : 0;
|
|
4723
4121
|
});
|
|
4724
|
-
const moduleGroups = groups.filter((g) => g.module_key);
|
|
4725
|
-
const userGroups = groups.filter((g) => !g.module_key).sort((a, b) => a.id < b.id ? -1 : a.id > b.id ? 1 : 0);
|
|
4726
4122
|
const moduleName = meta.moduleName ?? parseModuleKey(bundle.entry).id;
|
|
4727
4123
|
return {
|
|
4728
4124
|
module_name: moduleName,
|
|
@@ -4732,7 +4128,10 @@ function projectCanvasView(bundle, layouts, meta) {
|
|
|
4732
4128
|
can_undo: meta.canUndo,
|
|
4733
4129
|
can_redo: meta.canRedo,
|
|
4734
4130
|
is_dirty: meta.isDirty,
|
|
4735
|
-
|
|
4131
|
+
// Every group is now a Use whose target has sub-Uses (CreateGroupAction
|
|
4132
|
+
// mints a module); emission order already mirrors Use declaration order
|
|
4133
|
+
// via the walk, so no separate user-group sort is needed.
|
|
4134
|
+
groups
|
|
4736
4135
|
};
|
|
4737
4136
|
}
|
|
4738
4137
|
|
|
@@ -5243,7 +4642,7 @@ var RenderNode = {
|
|
|
5243
4642
|
writer.uint32(42).string(message.icon_url);
|
|
5244
4643
|
}
|
|
5245
4644
|
if (message.position !== void 0) {
|
|
5246
|
-
|
|
4645
|
+
Position.encode(message.position, writer.uint32(50).fork()).join();
|
|
5247
4646
|
}
|
|
5248
4647
|
if (message.has_errors !== false) {
|
|
5249
4648
|
writer.uint32(56).bool(message.has_errors);
|
|
@@ -5305,7 +4704,7 @@ var RenderNode = {
|
|
|
5305
4704
|
if (tag !== 50) {
|
|
5306
4705
|
break;
|
|
5307
4706
|
}
|
|
5308
|
-
message.position =
|
|
4707
|
+
message.position = Position.decode(reader, reader.uint32());
|
|
5309
4708
|
continue;
|
|
5310
4709
|
}
|
|
5311
4710
|
case 7: {
|
|
@@ -5351,7 +4750,7 @@ var RenderNode = {
|
|
|
5351
4750
|
kind: isSet3(object.kind) ? nodeKindFromJSON(object.kind) : 0,
|
|
5352
4751
|
module_key: isSet3(object.moduleKey) ? globalThis.String(object.moduleKey) : isSet3(object.module_key) ? globalThis.String(object.module_key) : "",
|
|
5353
4752
|
icon_url: isSet3(object.iconUrl) ? globalThis.String(object.iconUrl) : isSet3(object.icon_url) ? globalThis.String(object.icon_url) : "",
|
|
5354
|
-
position: isSet3(object.position) ?
|
|
4753
|
+
position: isSet3(object.position) ? Position.fromJSON(object.position) : void 0,
|
|
5355
4754
|
has_errors: isSet3(object.hasErrors) ? globalThis.Boolean(object.hasErrors) : isSet3(object.has_errors) ? globalThis.Boolean(object.has_errors) : false,
|
|
5356
4755
|
error_messages: globalThis.Array.isArray(object?.errorMessages) ? object.errorMessages.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.error_messages) ? object.error_messages.map((e) => globalThis.String(e)) : [],
|
|
5357
4756
|
inputs: globalThis.Array.isArray(object?.inputs) ? object.inputs.map((e) => NodePin.fromJSON(e)) : [],
|
|
@@ -5376,7 +4775,7 @@ var RenderNode = {
|
|
|
5376
4775
|
obj.iconUrl = message.icon_url;
|
|
5377
4776
|
}
|
|
5378
4777
|
if (message.position !== void 0) {
|
|
5379
|
-
obj.position =
|
|
4778
|
+
obj.position = Position.toJSON(message.position);
|
|
5380
4779
|
}
|
|
5381
4780
|
if (message.has_errors !== false) {
|
|
5382
4781
|
obj.hasErrors = message.has_errors;
|
|
@@ -5402,7 +4801,7 @@ var RenderNode = {
|
|
|
5402
4801
|
message.kind = object.kind ?? 0;
|
|
5403
4802
|
message.module_key = object.module_key ?? "";
|
|
5404
4803
|
message.icon_url = object.icon_url ?? "";
|
|
5405
|
-
message.position = object.position !== void 0 && object.position !== null ?
|
|
4804
|
+
message.position = object.position !== void 0 && object.position !== null ? Position.fromPartial(object.position) : void 0;
|
|
5406
4805
|
message.has_errors = object.has_errors ?? false;
|
|
5407
4806
|
message.error_messages = object.error_messages?.map((e) => e) || [];
|
|
5408
4807
|
message.inputs = object.inputs?.map((e) => NodePin.fromPartial(e)) || [];
|
|
@@ -7428,10 +6827,10 @@ var RenderError = {
|
|
|
7428
6827
|
return message;
|
|
7429
6828
|
}
|
|
7430
6829
|
};
|
|
7431
|
-
function
|
|
6830
|
+
function createBasePosition() {
|
|
7432
6831
|
return { x: 0, y: 0 };
|
|
7433
6832
|
}
|
|
7434
|
-
var
|
|
6833
|
+
var Position = {
|
|
7435
6834
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
7436
6835
|
if (message.x !== 0) {
|
|
7437
6836
|
writer.uint32(9).double(message.x);
|
|
@@ -7444,7 +6843,7 @@ var Position2 = {
|
|
|
7444
6843
|
decode(input, length) {
|
|
7445
6844
|
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
7446
6845
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
7447
|
-
const message =
|
|
6846
|
+
const message = createBasePosition();
|
|
7448
6847
|
while (reader.pos < end) {
|
|
7449
6848
|
const tag = reader.uint32();
|
|
7450
6849
|
switch (tag >>> 3) {
|
|
@@ -7487,10 +6886,10 @@ var Position2 = {
|
|
|
7487
6886
|
return obj;
|
|
7488
6887
|
},
|
|
7489
6888
|
create(base) {
|
|
7490
|
-
return
|
|
6889
|
+
return Position.fromPartial(base ?? {});
|
|
7491
6890
|
},
|
|
7492
6891
|
fromPartial(object) {
|
|
7493
|
-
const message =
|
|
6892
|
+
const message = createBasePosition();
|
|
7494
6893
|
message.x = object.x ?? 0;
|
|
7495
6894
|
message.y = object.y ?? 0;
|
|
7496
6895
|
return message;
|
|
@@ -7877,8 +7276,6 @@ var SettingsConfigProto = SettingsConfig;
|
|
|
7877
7276
|
Bundle,
|
|
7878
7277
|
CanvasViewProto,
|
|
7879
7278
|
EdgeConfigProto,
|
|
7880
|
-
GraphLayout,
|
|
7881
|
-
LayoutsMap,
|
|
7882
7279
|
NodeConfigProto,
|
|
7883
7280
|
SettingsConfigProto,
|
|
7884
7281
|
convertCanvasView,
|
|
@@ -7894,6 +7291,8 @@ var SettingsConfigProto = SettingsConfig;
|
|
|
7894
7291
|
convertSettingsConfig,
|
|
7895
7292
|
modeToInputMode,
|
|
7896
7293
|
parseModuleKey,
|
|
7897
|
-
projectCanvasView
|
|
7294
|
+
projectCanvasView,
|
|
7295
|
+
resolveScopePath,
|
|
7296
|
+
resolveScopePositions
|
|
7898
7297
|
});
|
|
7899
7298
|
//# sourceMappingURL=index.cjs.map
|