@fugood/bricks-cli 2.26.0-beta.20 → 2.26.0-beta.21
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/README.md +13 -2
- package/lib/1374.js +4 -0
- package/lib/1708.js +1 -1
- package/lib/2486.js +1 -1
- package/lib/2700.js +1 -0
- package/lib/3690.js +1 -1
- package/lib/4456.js +2 -2
- package/lib/4485.js +1 -0
- package/lib/5698.js +1 -0
- package/lib/6632.js +1 -1
- package/lib/6818.js +1 -1
- package/lib/907.js +79 -45
- package/lib/9320.js +3 -3
- package/lib/9439.js +2 -2
- package/lib/index.js +111 -110
- package/lib/lib.js +97 -63
- package/package.json +5 -5
- package/lib/1975.js +0 -1
- package/lib/3593.js +0 -1
- package/lib/563.js +0 -4
- package/lib/6645.js +0 -1
- package/lib/7574.js +0 -1
- package/lib/7648.js +0 -1
package/lib/907.js
CHANGED
|
@@ -351,7 +351,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
351
351
|
last_modify_datetime
|
|
352
352
|
}
|
|
353
353
|
${$}
|
|
354
|
-
`},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>
|
|
354
|
+
`},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>R,bindApplication:()=>v,bindButtressServer:()=>D,controlDevice:()=>o,createApplication:()=>c,createApplicationWithShareVersion:()=>p,createBlueprint:()=>P,createDevice:()=>r,createMediaFileUploadRequest:()=>b,createModule:()=>h,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>u,heartbeatBlueprintRun:()=>V,issueButtressAccessToken:()=>L,issueDevtoolsAccessToken:()=>w,releaseApplication:()=>C,releaseBlueprintRun:()=>E,releaseModule:()=>S,removeApplication:()=>g,removeBlueprint:()=>x,removeDevice:()=>l,removeModule:()=>I,revertBlueprint:()=>T,shortEditApplication:()=>_,shortEditModule:()=>k,triggerApplicationCanvasControl:()=>f,unbindButtressServer:()=>B,updateApplication:()=>m,updateBlueprint:()=>q,updateModule:()=>y,updateVirtualDevice:()=>d,updateWorkspace:()=>A,useApplicationReleaseVersion:()=>$});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
355
355
|
mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
|
|
356
356
|
createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
|
|
357
357
|
...cliDeviceArguments
|
|
@@ -436,6 +436,8 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
436
436
|
$config: String
|
|
437
437
|
$name: String
|
|
438
438
|
$description: String
|
|
439
|
+
$tags: [String]
|
|
440
|
+
$lock: ApplicationLockInput
|
|
439
441
|
$validateConfig: Boolean
|
|
440
442
|
$lastCommitId: String
|
|
441
443
|
) {
|
|
@@ -444,20 +446,33 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
444
446
|
config: $config
|
|
445
447
|
name: $name
|
|
446
448
|
description: $description
|
|
449
|
+
tags: $tags
|
|
450
|
+
lock: $lock
|
|
447
451
|
validateConfig: $validateConfig
|
|
448
452
|
lastCommitId: $lastCommitId
|
|
449
453
|
) {
|
|
450
454
|
...cliApplicationShortArguments
|
|
451
455
|
config
|
|
452
456
|
has_unreleased_changes
|
|
457
|
+
tags
|
|
458
|
+
lock {
|
|
459
|
+
enabled
|
|
460
|
+
}
|
|
453
461
|
}
|
|
454
462
|
}
|
|
455
463
|
${a.$7}
|
|
456
464
|
`,$=(0,n.default)`
|
|
465
|
+
mutation CLI_useApplicationReleaseVersion($id: ID!, $versionId: ID!) {
|
|
466
|
+
useApplicationReleaseVersion: updateApplication(id: $id, useReleaseVersion: $versionId) {
|
|
467
|
+
...cliApplicationShortArguments
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
${a.$7}
|
|
471
|
+
`,g=(0,n.default)`
|
|
457
472
|
mutation CLI_removeApplication($id: ID!) {
|
|
458
473
|
removeApplication(id: $id)
|
|
459
474
|
}
|
|
460
|
-
`,
|
|
475
|
+
`,_=(0,n.default)`
|
|
461
476
|
mutation CLI_shortEditApplication(
|
|
462
477
|
$id: ID!
|
|
463
478
|
$list: [ShortEditInput]!
|
|
@@ -469,7 +484,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
469
484
|
}
|
|
470
485
|
}
|
|
471
486
|
${a.$7}
|
|
472
|
-
`,
|
|
487
|
+
`,v=(0,n.default)`
|
|
473
488
|
mutation CLI_bindApplication(
|
|
474
489
|
$id: ID!
|
|
475
490
|
$bindDevices: [ID]
|
|
@@ -494,7 +509,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
494
509
|
}
|
|
495
510
|
}
|
|
496
511
|
}
|
|
497
|
-
`,
|
|
512
|
+
`,f=(0,n.default)`
|
|
498
513
|
mutation CLI_triggerApplicationCanvasControl(
|
|
499
514
|
$id: ID!
|
|
500
515
|
$testId: String!
|
|
@@ -512,7 +527,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
512
527
|
_id
|
|
513
528
|
}
|
|
514
529
|
}
|
|
515
|
-
`,
|
|
530
|
+
`,h=(0,n.default)`
|
|
516
531
|
mutation CLI_createModule(
|
|
517
532
|
$name: String
|
|
518
533
|
$description: String
|
|
@@ -537,7 +552,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
537
552
|
}
|
|
538
553
|
}
|
|
539
554
|
${a.$V}
|
|
540
|
-
`,
|
|
555
|
+
`,y=(0,n.default)`
|
|
541
556
|
mutation CLI_updateModule(
|
|
542
557
|
$id: ID!
|
|
543
558
|
$config: String
|
|
@@ -558,11 +573,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
558
573
|
}
|
|
559
574
|
}
|
|
560
575
|
${a.$V}
|
|
561
|
-
`,
|
|
576
|
+
`,I=(0,n.default)`
|
|
562
577
|
mutation CLI_removeModule($id: ID!) {
|
|
563
578
|
removeModule(id: $id)
|
|
564
579
|
}
|
|
565
|
-
`,
|
|
580
|
+
`,k=(0,n.default)`
|
|
566
581
|
mutation CLI_shortEditModule(
|
|
567
582
|
$id: ID!
|
|
568
583
|
$list: [ShortEditInput]!
|
|
@@ -574,7 +589,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
574
589
|
name
|
|
575
590
|
}
|
|
576
591
|
}
|
|
577
|
-
`,
|
|
592
|
+
`,A=(0,n.default)`
|
|
578
593
|
mutation CLI_updateWorkspace(
|
|
579
594
|
$name: String
|
|
580
595
|
$description: String
|
|
@@ -598,7 +613,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
598
613
|
}
|
|
599
614
|
}
|
|
600
615
|
}
|
|
601
|
-
`,
|
|
616
|
+
`,C=(0,n.default)`
|
|
602
617
|
mutation CLI_releaseApplication(
|
|
603
618
|
$id: ID!
|
|
604
619
|
$config: String
|
|
@@ -621,7 +636,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
621
636
|
has_unreleased_changes
|
|
622
637
|
}
|
|
623
638
|
}
|
|
624
|
-
`,
|
|
639
|
+
`,b=(0,n.default)`
|
|
625
640
|
mutation CLI_createMediaFileUploadRequest(
|
|
626
641
|
$name: String!
|
|
627
642
|
$description: String!
|
|
@@ -648,7 +663,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
648
663
|
}
|
|
649
664
|
}
|
|
650
665
|
}
|
|
651
|
-
`,
|
|
666
|
+
`,S=(0,n.default)`
|
|
652
667
|
mutation CLI_releaseModule(
|
|
653
668
|
$id: ID!
|
|
654
669
|
$config: String
|
|
@@ -668,7 +683,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
668
683
|
name
|
|
669
684
|
}
|
|
670
685
|
}
|
|
671
|
-
`,
|
|
686
|
+
`,D=(0,n.default)`
|
|
672
687
|
mutation CLI_bindButtressServer(
|
|
673
688
|
$serverId: String!
|
|
674
689
|
$name: String
|
|
@@ -684,11 +699,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
684
699
|
}
|
|
685
700
|
}
|
|
686
701
|
}
|
|
687
|
-
`,
|
|
702
|
+
`,B=(0,n.default)`
|
|
688
703
|
mutation CLI_unbindButtressServer($serverId: String!) {
|
|
689
704
|
unbindButtressServer(serverId: $serverId)
|
|
690
705
|
}
|
|
691
|
-
`,
|
|
706
|
+
`,L=(0,n.default)`
|
|
692
707
|
mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
|
|
693
708
|
issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
|
|
694
709
|
token
|
|
@@ -697,7 +712,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
697
712
|
jti
|
|
698
713
|
}
|
|
699
714
|
}
|
|
700
|
-
`,
|
|
715
|
+
`,w=(0,n.default)`
|
|
701
716
|
mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
|
|
702
717
|
issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
|
|
703
718
|
token
|
|
@@ -706,32 +721,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
706
721
|
jti
|
|
707
722
|
}
|
|
708
723
|
}
|
|
709
|
-
`,
|
|
724
|
+
`,P=(0,n.default)`
|
|
710
725
|
mutation CLI_createBlueprint($name: String!, $description: String) {
|
|
711
726
|
createBlueprint(name: $name, description: $description) {
|
|
712
727
|
...cliBlueprintArguments
|
|
713
728
|
}
|
|
714
729
|
}
|
|
715
730
|
${a._A}
|
|
716
|
-
`,
|
|
731
|
+
`,q=(0,n.default)`
|
|
717
732
|
mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
|
|
718
733
|
updateBlueprint(id: $id, revision: $revision, patch: $patch) {
|
|
719
734
|
...cliBlueprintArguments
|
|
720
735
|
}
|
|
721
736
|
}
|
|
722
737
|
${a._A}
|
|
723
|
-
`,
|
|
738
|
+
`,T=(0,n.default)`
|
|
724
739
|
mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
|
|
725
740
|
revertBlueprint(id: $id, toRevision: $toRevision) {
|
|
726
741
|
...cliBlueprintArguments
|
|
727
742
|
}
|
|
728
743
|
}
|
|
729
744
|
${a._A}
|
|
730
|
-
`,
|
|
745
|
+
`,x=(0,n.default)`
|
|
731
746
|
mutation CLI_removeBlueprint($id: ID!) {
|
|
732
747
|
removeBlueprint(id: $id)
|
|
733
748
|
}
|
|
734
|
-
`,
|
|
749
|
+
`,R=(0,n.default)`
|
|
735
750
|
mutation CLI_acquireBlueprintRun($id: ID!, $host: String!, $sessionId: String!) {
|
|
736
751
|
acquireBlueprintRun(id: $id, host: $host, sessionId: $sessionId) {
|
|
737
752
|
ok
|
|
@@ -741,7 +756,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
741
756
|
}
|
|
742
757
|
}
|
|
743
758
|
${a.zL}
|
|
744
|
-
`,
|
|
759
|
+
`,V=(0,n.default)`
|
|
745
760
|
mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
|
|
746
761
|
heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
|
|
747
762
|
ok
|
|
@@ -751,11 +766,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
751
766
|
}
|
|
752
767
|
}
|
|
753
768
|
${a.zL}
|
|
754
|
-
`,
|
|
769
|
+
`,E=(0,n.default)`
|
|
755
770
|
mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
|
|
756
771
|
releaseBlueprintRun(id: $id, sessionId: $sessionId)
|
|
757
772
|
}
|
|
758
|
-
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>m,applicationProject:()=>
|
|
773
|
+
`},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>m,applicationProject:()=>D,applicationReleaseVersions:()=>$,applications:()=>g,blueprint:()=>w,blueprintEvents:()=>R,blueprintProjection:()=>T,blueprintRevisions:()=>x,blueprints:()=>P,blueprintsByInstance:()=>q,buttressServers:()=>L,checkBindDevicePasscode:()=>y,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>S,devices:()=>s,devicesApplicationStatus:()=>V,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>C,mediaBoxes:()=>A,mediaFile:()=>b,mediaFiles:()=>I,mediaWorkspace:()=>k,module:()=>v,moduleProject:()=>B,modules:()=>f,publicApplicationShareInfo:()=>_,publicModules:()=>h,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
|
|
759
774
|
query CLI_workspace {
|
|
760
775
|
workspace {
|
|
761
776
|
...cliWorkspaceArguments
|
|
@@ -837,17 +852,36 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
837
852
|
canvas_control
|
|
838
853
|
device_control
|
|
839
854
|
env
|
|
855
|
+
cron_tests {
|
|
856
|
+
test_id
|
|
857
|
+
cron
|
|
858
|
+
date_range {
|
|
859
|
+
start
|
|
860
|
+
end
|
|
861
|
+
}
|
|
862
|
+
update_screenshot
|
|
863
|
+
bind_id
|
|
864
|
+
}
|
|
840
865
|
}
|
|
841
866
|
}
|
|
842
867
|
}
|
|
843
868
|
`,$=(0,n.default)`
|
|
869
|
+
query CLI_applicationReleaseVersions($id: ID!) {
|
|
870
|
+
applicationReleaseVersions(id: $id) {
|
|
871
|
+
_id
|
|
872
|
+
version
|
|
873
|
+
note
|
|
874
|
+
create_datetime
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
`,g=(0,n.default)`
|
|
844
878
|
query CLI_applications($keyword: String, $paginate: Paginate) {
|
|
845
879
|
applications(keyword: $keyword, paginate: $paginate) {
|
|
846
880
|
...cliApplicationShortArguments
|
|
847
881
|
}
|
|
848
882
|
}
|
|
849
883
|
${a.$7}
|
|
850
|
-
`,
|
|
884
|
+
`,_=(0,n.default)`
|
|
851
885
|
query CLI_publicApplicationShareInfo($id: ID!) {
|
|
852
886
|
publicApplicationShareInfo(id: $id) {
|
|
853
887
|
_id
|
|
@@ -872,32 +906,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
872
906
|
}
|
|
873
907
|
}
|
|
874
908
|
}
|
|
875
|
-
`,
|
|
909
|
+
`,v=(0,n.default)`
|
|
876
910
|
query CLI_module($id: ID!) {
|
|
877
911
|
module(id: $id) {
|
|
878
912
|
...cliModuleArguments
|
|
879
913
|
}
|
|
880
914
|
}
|
|
881
915
|
${a.$V}
|
|
882
|
-
`,
|
|
916
|
+
`,f=(0,n.default)`
|
|
883
917
|
query CLI_modules($keyword: String, $paginate: Paginate) {
|
|
884
918
|
modules(keyword: $keyword, paginate: $paginate) {
|
|
885
919
|
...cliModuleShortArguments
|
|
886
920
|
}
|
|
887
921
|
}
|
|
888
922
|
${a.J6}
|
|
889
|
-
`,
|
|
923
|
+
`,h=(0,n.default)`
|
|
890
924
|
query CLI_publicModules($keyword: String!, $limit: Int) {
|
|
891
925
|
publicModules(keyword: $keyword, paginate: { limit: $limit }) {
|
|
892
926
|
...cliModuleShortArguments
|
|
893
927
|
}
|
|
894
928
|
}
|
|
895
929
|
${a.J6}
|
|
896
|
-
`,
|
|
930
|
+
`,y=(0,n.default)`
|
|
897
931
|
query CLI_checkBindDevicePasscode($passcode: String!) {
|
|
898
932
|
checkBindDevicePasscode(passcode: $passcode)
|
|
899
933
|
}
|
|
900
|
-
`,
|
|
934
|
+
`,I=(0,n.default)`
|
|
901
935
|
query CLI_mediaFiles(
|
|
902
936
|
$boxId: ID!
|
|
903
937
|
$includeTypes: [String]
|
|
@@ -940,7 +974,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
940
974
|
}
|
|
941
975
|
}
|
|
942
976
|
}
|
|
943
|
-
`,
|
|
977
|
+
`,k=(0,n.default)`
|
|
944
978
|
query CLI_mediaWorkspace {
|
|
945
979
|
mediaWorkspace {
|
|
946
980
|
id
|
|
@@ -953,7 +987,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
953
987
|
updatedAt
|
|
954
988
|
}
|
|
955
989
|
}
|
|
956
|
-
`,
|
|
990
|
+
`,A=(0,n.default)`
|
|
957
991
|
query CLI_mediaBoxes {
|
|
958
992
|
mediaBoxes {
|
|
959
993
|
id
|
|
@@ -974,7 +1008,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
974
1008
|
}
|
|
975
1009
|
}
|
|
976
1010
|
}
|
|
977
|
-
`,
|
|
1011
|
+
`,C=(0,n.default)`
|
|
978
1012
|
query CLI_mediaBox($id: ID!) {
|
|
979
1013
|
mediaBox(id: $id) {
|
|
980
1014
|
id
|
|
@@ -995,7 +1029,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
995
1029
|
}
|
|
996
1030
|
}
|
|
997
1031
|
}
|
|
998
|
-
`,
|
|
1032
|
+
`,b=(0,n.default)`
|
|
999
1033
|
query CLI_mediaFile($id: ID!) {
|
|
1000
1034
|
mediaFile(id: $id) {
|
|
1001
1035
|
id
|
|
@@ -1026,7 +1060,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1026
1060
|
}
|
|
1027
1061
|
}
|
|
1028
1062
|
}
|
|
1029
|
-
`,
|
|
1063
|
+
`,S=(0,n.default)`
|
|
1030
1064
|
query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
|
|
1031
1065
|
deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
|
|
1032
1066
|
_id
|
|
@@ -1045,7 +1079,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1045
1079
|
}
|
|
1046
1080
|
}
|
|
1047
1081
|
}
|
|
1048
|
-
`,
|
|
1082
|
+
`,D=(0,n.default)`
|
|
1049
1083
|
query CLI_applicationProject(
|
|
1050
1084
|
$id: ID!
|
|
1051
1085
|
$buildApplicationOnly: Boolean
|
|
@@ -1063,7 +1097,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1063
1097
|
setupGeminiCLI: $setupGeminiCLI
|
|
1064
1098
|
)
|
|
1065
1099
|
}
|
|
1066
|
-
`,
|
|
1100
|
+
`,B=(0,n.default)`
|
|
1067
1101
|
query CLI_moduleProject(
|
|
1068
1102
|
$id: ID!
|
|
1069
1103
|
$buildApplicationOnly: Boolean
|
|
@@ -1081,7 +1115,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1081
1115
|
setupGeminiCLI: $setupGeminiCLI
|
|
1082
1116
|
)
|
|
1083
1117
|
}
|
|
1084
|
-
`,
|
|
1118
|
+
`,L=(0,n.default)`
|
|
1085
1119
|
query CLI_buttressServers {
|
|
1086
1120
|
buttressServers {
|
|
1087
1121
|
serverId
|
|
@@ -1090,32 +1124,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1090
1124
|
lastSeenAt
|
|
1091
1125
|
}
|
|
1092
1126
|
}
|
|
1093
|
-
`,
|
|
1127
|
+
`,w=(0,n.default)`
|
|
1094
1128
|
query CLI_blueprint($id: ID!) {
|
|
1095
1129
|
blueprint(id: $id) {
|
|
1096
1130
|
...cliBlueprintArguments
|
|
1097
1131
|
}
|
|
1098
1132
|
}
|
|
1099
1133
|
${a._A}
|
|
1100
|
-
`,
|
|
1134
|
+
`,P=(0,n.default)`
|
|
1101
1135
|
query CLI_blueprints($keyword: String, $paginate: Paginate) {
|
|
1102
1136
|
blueprints(keyword: $keyword, paginate: $paginate) {
|
|
1103
1137
|
...cliBlueprintShortArguments
|
|
1104
1138
|
}
|
|
1105
1139
|
}
|
|
1106
1140
|
${a.C$}
|
|
1107
|
-
`,
|
|
1141
|
+
`,q=(0,n.default)`
|
|
1108
1142
|
query CLI_blueprintsByInstance($kind: BlueprintNodeKind!, $ref: String!) {
|
|
1109
1143
|
blueprintsByInstance(kind: $kind, ref: $ref) {
|
|
1110
1144
|
...cliBlueprintShortArguments
|
|
1111
1145
|
}
|
|
1112
1146
|
}
|
|
1113
1147
|
${a.C$}
|
|
1114
|
-
`,
|
|
1148
|
+
`,T=(0,n.default)`
|
|
1115
1149
|
query CLI_blueprintProjection($id: ID!, $format: Int) {
|
|
1116
1150
|
blueprintProjection(id: $id, format: $format)
|
|
1117
1151
|
}
|
|
1118
|
-
`,
|
|
1152
|
+
`,x=(0,n.default)`
|
|
1119
1153
|
query CLI_blueprintRevisions($id: ID!, $limit: Int) {
|
|
1120
1154
|
blueprintRevisions(id: $id, limit: $limit) {
|
|
1121
1155
|
_id
|
|
@@ -1125,7 +1159,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1125
1159
|
created_at
|
|
1126
1160
|
}
|
|
1127
1161
|
}
|
|
1128
|
-
`,
|
|
1162
|
+
`,R=(0,n.default)`
|
|
1129
1163
|
query CLI_blueprintEvents($id: ID!, $limit: Int) {
|
|
1130
1164
|
blueprintEvents(id: $id, limit: $limit) {
|
|
1131
1165
|
_id
|
|
@@ -1141,7 +1175,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
|
|
|
1141
1175
|
created_at
|
|
1142
1176
|
}
|
|
1143
1177
|
}
|
|
1144
|
-
`,
|
|
1178
|
+
`,V=(0,n.default)`
|
|
1145
1179
|
query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
|
|
1146
1180
|
devicesApplicationStatus(filter: $filter, paginate: $paginate) {
|
|
1147
1181
|
device_id
|
package/lib/9320.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const __rspack_esm_id=9320;export const __rspack_esm_ids=[9320];export const __webpack_modules__={
|
|
1
|
+
export const __rspack_esm_id=9320;export const __rspack_esm_ids=[9320];export const __webpack_modules__={86403(e,t,r){var o=r(62945),n=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(n,""):e}},62945(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},12784(e,t,r){var o=r(41580),n=r(94495),s=r(6131),i=Math.max,a=Math.min;e.exports=function(e,t,r){var u,c,p,l,h,d,f=0,v=!1,y=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(t){var r=u,o=c;return u=c=void 0,f=t,l=e.apply(o,r)}function w(e){var r=e-d,o=e-f;return void 0===d||r>=t||r<0||y&&o>=p}function g(){var e,r,o,s=n();if(w(s))return _(s);h=setTimeout(g,(e=s-d,r=s-f,o=t-e,y?a(o,p-r):o))}function _(e){return(h=void 0,m&&u)?x(e):(u=c=void 0,l)}function b(){var e,r=n(),o=w(r);if(u=arguments,c=this,d=r,o){if(void 0===h)return f=e=d,h=setTimeout(g,t),v?x(e):l;if(y)return clearTimeout(h),h=setTimeout(g,t),x(d)}return void 0===h&&(h=setTimeout(g,t)),l}return t=s(t)||0,o(r)&&(v=!!r.leading,p=(y="maxWait"in r)?i(s(r.maxWait)||0,t):p,m="trailing"in r?!!r.trailing:m),b.cancel=function(){void 0!==h&&clearTimeout(h),f=0,u=d=c=h=void 0},b.flush=function(){return void 0===h?l:_(n())},b}},94495(e,t,r){var o=r(78942);e.exports=function(){return o.Date.now()}},6131(e,t,r){var o=r(86403),n=r(41580),s=r(51187),i=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return i;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var r=u.test(e);return r||c.test(e)?p(e.slice(2),r?2:8):a.test(e)?i:+e}},5018(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},44668(e,t,r){var o=r(56347);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},70604(e){e.exports=function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},90250(e,t,r){var o=r(3634),n=r(70604),s=r(78243),i=r(5523);e.exports=function(e){return o(e)||n(e)||s(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},23878(e,t,r){var o=r(14319).default;e.exports=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56347(e,t,r){var o=r(14319).default,n=r(23878);e.exports=function(e){var t=n(e,"string");return"symbol"==o(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},14319(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},75720(e,t,r){r.d(t,{p:()=>l,sh:()=>f});var o,n,s=r(90250),i=r(99436),a=r(5018),u=r(44668),c=r(31421),p=r(73024),l=()=>{var e=process.argv[1];return e&&!(e.includes("$bunfs")||e.includes("~BUN"))&&(0,p.existsSync)(e)?[process.execPath,e]:[process.execPath]},h=u(function e(t){a(this,e),this._cwd=void 0,this._mode="default",this._throw=!0,this._env=void 0,this._promise=null,this.args=t},[{key:"cwd",value:function(e){return this._cwd=e,this}},{key:"quiet",value:function(){return this._mode="quiet",this}},{key:"nothrow",value:function(){return this._throw=!1,this}},{key:"env",value:function(e){return this._env={...this._env,...e},this}},{key:"text",value:(o=i(function*(){return"default"===this._mode&&(this._mode="text"),(yield this.run()).stdout.toString("utf8")}),function(){return o.apply(this,arguments)})},{key:"then",value:function(e,t){return this.run().then(e,t)}},{key:"run",value:function(){return this._promise||(this._promise=this.exec()),this._promise}},{key:"exec",value:(n=i(function*(){var e=s(this.args),t=e[0],r=(function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o})(e).slice(1);if(!t)throw Error("sh: empty command");var o="default"===this._mode?["inherit","pipe","pipe"]:"quiet"===this._mode?["ignore","pipe","pipe"]:["inherit","pipe","pipe"],n=this._env?{...process.env,...this._env}:void 0,i=(0,c.spawn)(t,r,{cwd:this._cwd,stdio:o,env:n}),a=[],u=[];i.stdout?.on("data",e=>{a.push(e),"default"===this._mode&&process.stdout.write(e)}),i.stderr?.on("data",e=>{u.push(e),"default"===this._mode&&process.stderr.write(e)});var p=yield new Promise((e,t)=>{i.on("error",t),i.on("close",(t,r)=>e({code:t,signal:r}))}),l=p.code,h=p.signal,d=l??1,f=Buffer.concat(a),v=Buffer.concat(u);if(0!==d&&this._throw){var y=h?`signal ${h}`:`exit ${d}`,m=Error(`sh: command failed with ${y}: ${this.args.join(" ")}`);throw m.exitCode=d,m.stdout=f,m.stderr=v,m}return{exitCode:d,stdout:f,stderr:v}}),function(){return n.apply(this,arguments)})}]),d=/\s/;function f(e,...t){var r,o,n,s,i,a=(r=[],o="",n=!1,s=()=>{n&&(r.push(o),o="",n=!1)},i=e=>{o+=e,n=!0},(e.forEach((e,r)=>{for(var o=0;o<e.length;o++){var n=e[o];d.test(n)?s():i(n)}r<t.length&&(e=>{if(null!=e){if(Array.isArray(e))return e.forEach((e,t)=>{t>0&&s(),i(String(e))});i(String(e))}})(t[r])}),s(),r.length>=3&&"cd"===r[0]&&"&&"===r[2])?{tokens:r.slice(3),initialCwd:r[1]}:{tokens:r}),u=a.tokens,c=a.initialCwd,p=new h(u);return c&&p.cwd(c),p}},16749(e,t,r){r.d(t,{W:()=>i});var o=r(73024),n=r(76760),s=r(73136);function i(e){var t=(0,n.dirname)((0,s.fileURLToPath)(e)),r=[(0,n.join)(t,"simulator-main.mjs"),(0,n.join)(t,"..","simulator-main.mjs"),(0,n.join)((0,n.dirname)(process.execPath),"simulator-main.mjs")];for(var i of r)if((0,o.existsSync)(i))return i;throw Error(`Unable to locate the simulator entry (simulator-main.mjs). Probed paths:
|
|
2
2
|
${r.map(e=>` - ${e}`).join("\n")}
|
|
3
|
-
If you installed the standalone bricks binary, re-run the installer to restore the simulator assets.`)}},7931(e,t,r){r.r(t),r.d(t,{simulator:()=>d});var o=r(99436),n=r(31421),s=r(51455),i=r(73024),a=r(80481),u=r(57975),c=r(12784),
|
|
3
|
+
If you installed the standalone bricks binary, re-run the installer to restore the simulator assets.`)}},7931(e,t,r){r.r(t),r.d(t,{simulator:()=>d});var o=r(99436),n=r(31421),s=r(51455),i=r(73024),a=r(80481),u=r(57975),c=r(12784),p=r(75720),l=r(16749),h=`Usage: bricks ctor simulator [options]
|
|
4
4
|
|
|
5
5
|
Compile the project and run it in the web-preview Simulator. Without
|
|
6
6
|
--no-keep-open the Simulator stays open and reloads on source changes.
|
|
@@ -21,4 +21,4 @@ Options:
|
|
|
21
21
|
--clear-cache Clear the preview cache at start
|
|
22
22
|
--show-menu Show the preview menu
|
|
23
23
|
-h, --help Show this help
|
|
24
|
-
`;function d(){return f.apply(this,arguments)}function f(){return(f=o(function*(e=[]){var t,r=(0,u.parseArgs)({args:e,options:{help:{type:"boolean",short:"h"},"skip-typecheck":{type:"boolean"},"clear-cache":{type:"boolean"},screenshot:{type:"boolean"},"screenshot-delay":{type:"string"},"screenshot-width":{type:"string"},"screenshot-height":{type:"string"},"screenshot-path":{type:"string"},"screenshot-no-headless":{type:"boolean"},"show-menu":{type:"boolean"},"test-id":{type:"string"},"test-title-like":{type:"string"},"no-keep-open":{type:"boolean"},"cdp-port":{type:"string"},"no-cdp":{type:"boolean"},"capture-plan":{type:"string"}},strict:!0,allowPositionals:!0}).values;if(r.help)return void process.stdout.write(h);var d=process.cwd(),f=JSON.parse((yield(0,s.readFile)(`${d}/application.json`,"utf8"))),v=[];r["clear-cache"]&&v.push("--clear-cache");var y=!0;if(r.screenshot&&(v.push("--take-screenshot"),v.push(JSON.stringify({delay:Number(r["screenshot-delay"])||1e3,width:Number(r["screenshot-width"])||600,height:Number(r["screenshot-height"])||480,path:r["screenshot-path"]||`${d}/screenshot.jpg`,noHeadless:r["screenshot-no-headless"]??!1})),y=!r["no-keep-open"]),r["capture-plan"]&&(v.push("--capture-plan",r["capture-plan"]),y=!1),r["show-menu"]&&v.push("--show-menu"),r["test-id"]&&v.push("--test-id",r["test-id"]),r["test-title-like"]&&v.push("--test-title-like",r["test-title-like"]),r["no-keep-open"]&&v.push("--no-keep-open"),!r["no-cdp"]){var m=parseInt(r["cdp-port"]||"",10)||19852;v.push("--cdp-port",String(m))}var x=!r["skip-typecheck"],
|
|
24
|
+
`;function d(){return f.apply(this,arguments)}function f(){return(f=o(function*(e=[]){var t,r=(0,u.parseArgs)({args:e,options:{help:{type:"boolean",short:"h"},"skip-typecheck":{type:"boolean"},"clear-cache":{type:"boolean"},screenshot:{type:"boolean"},"screenshot-delay":{type:"string"},"screenshot-width":{type:"string"},"screenshot-height":{type:"string"},"screenshot-path":{type:"string"},"screenshot-no-headless":{type:"boolean"},"show-menu":{type:"boolean"},"test-id":{type:"string"},"test-title-like":{type:"string"},"no-keep-open":{type:"boolean"},"cdp-port":{type:"string"},"no-cdp":{type:"boolean"},"capture-plan":{type:"string"}},strict:!0,allowPositionals:!0}).values;if(r.help)return void process.stdout.write(h);var d=process.cwd(),f=JSON.parse((yield(0,s.readFile)(`${d}/application.json`,"utf8"))),v=[];r["clear-cache"]&&v.push("--clear-cache");var y=!0;if(r.screenshot&&(v.push("--take-screenshot"),v.push(JSON.stringify({delay:Number(r["screenshot-delay"])||1e3,width:Number(r["screenshot-width"])||600,height:Number(r["screenshot-height"])||480,path:r["screenshot-path"]||`${d}/screenshot.jpg`,noHeadless:r["screenshot-no-headless"]??!1})),y=!r["no-keep-open"]),r["capture-plan"]&&(v.push("--capture-plan",r["capture-plan"]),y=!1),r["show-menu"]&&v.push("--show-menu"),r["test-id"]&&v.push("--test-id",r["test-id"]),r["test-title-like"]&&v.push("--test-title-like",r["test-title-like"]),r["no-keep-open"]&&v.push("--no-keep-open"),!r["no-cdp"]){var m=parseInt(r["cdp-port"]||"",10)||19852;v.push("--cdp-port",String(m))}var x=!r["skip-typecheck"],w=(t=o(function*(){yield(0,p.sh)`${(0,p.p)()} ctor compile ${x?[]:["--no-check"]}`}),function(){return t.apply(this,arguments)});yield w();var g=c(o(function*(){try{yield w()}catch(e){console.error(`Recompile failed: ${e.message}`)}}),500),_=null;y&&(_=(0,i.watch)(`${d}/subspaces`,{recursive:!0},(e,t)=>{console.log(`Detected ${e} in ${t}`),g()}));var b=`${d}/.bricks/devtools.json`,k=()=>{try{(0,i.unlinkSync)(b)}catch{}};try{var S=JSON.parse((yield(0,s.readFile)(b,"utf8")));if(S.pid){try{process.kill(S.pid)}catch{}k()}}catch{}var T=(0,l.W)("file:///Users/jhen/workspace/mybigday-bricks/packages/bricks-cli/src/ctor/tools/simulator.js"),$=(0,n.spawn)("bunx",["--bun","electron",T,...v],{env:{...process.env,BRICKS_STAGE:f.stage||"production"},stdio:["inherit","pipe","inherit"]});(0,a.createInterface)({input:$.stdout}).on("line",e=>{if(e.startsWith("[TEST_RESULT_TOON]"))return void console.log(e.replace("[TEST_RESULT_TOON]",""));if(e){var t=e.match(/^CDP server: ws:\/\/localhost:(\d+)/);if(t){var r={port:parseInt(t[1],10),pid:$.pid,address:"localhost",name:`${f.name||"Unnamed"} (CTOR Simulator)`,startedAt:new Date().toISOString()};(0,s.writeFile)(b,JSON.stringify(r,null,2))}console.log(e)}});try{var j=yield new Promise((e,t)=>{$.on("error",t),$.on("close",(t,r)=>e({code:t,signal:r}))}),E=j.code,O=j.signal;if(0!==E)throw Error(`Simulator exited with ${O?`signal ${O}`:`code ${E}`}`)}finally{g.cancel(),k(),_&&_.close()}})).apply(this,arguments)}}};
|