@fugood/bricks-cli 2.26.0-beta.20 → 2.26.0-beta.22

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/lib/6818.js CHANGED
@@ -1 +1 @@
1
- export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.20")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
1
+ export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.22")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
package/lib/907.js CHANGED
@@ -113,6 +113,21 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
113
113
  env {
114
114
  variables
115
115
  }
116
+ lock {
117
+ enabled
118
+ }
119
+ activity_log {
120
+ enabled
121
+ filter
122
+ screenshot_enabled
123
+ }
124
+ # Stored settings; entry_detail.local_sync is the runtime status reported by the device
125
+ local_sync {
126
+ enabled
127
+ priority_as_main
128
+ disable_dynamic_latency
129
+ latency_offset
130
+ }
116
131
  used_workspace {
117
132
  _id
118
133
  media_resource {
@@ -351,7 +366,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
351
366
  last_modify_datetime
352
367
  }
353
368
  ${$}
354
- `},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>x,bindApplication:()=>_,bindButtressServer:()=>S,controlDevice:()=>o,createApplication:()=>c,createApplicationWithShareVersion:()=>p,createBlueprint:()=>w,createDevice:()=>r,createMediaFileUploadRequest:()=>C,createModule:()=>f,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>u,heartbeatBlueprintRun:()=>E,issueButtressAccessToken:()=>B,issueDevtoolsAccessToken:()=>L,releaseApplication:()=>A,releaseBlueprintRun:()=>M,releaseModule:()=>b,removeApplication:()=>$,removeBlueprint:()=>T,removeDevice:()=>l,removeModule:()=>y,revertBlueprint:()=>q,shortEditApplication:()=>g,shortEditModule:()=>I,triggerApplicationCanvasControl:()=>v,unbindButtressServer:()=>D,updateApplication:()=>m,updateBlueprint:()=>P,updateModule:()=>h,updateVirtualDevice:()=>d,updateWorkspace:()=>k});var n=t(94370),a=t(48596),r=(0,n.default)`
369
+ `},89293(e,i,t){t.r(i),t.d(i,{acquireBlueprintRun:()=>R,bindApplication:()=>f,bindButtressServer:()=>B,controlDevice:()=>o,createApplication:()=>p,createApplicationWithShareVersion:()=>m,createBlueprint:()=>q,createDevice:()=>r,createMediaFileUploadRequest:()=>S,createModule:()=>y,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>c,heartbeatBlueprintRun:()=>V,issueButtressAccessToken:()=>w,issueDevtoolsAccessToken:()=>P,releaseApplication:()=>b,releaseBlueprintRun:()=>M,releaseModule:()=>D,removeApplication:()=>_,removeBlueprint:()=>E,removeDevice:()=>u,removeModule:()=>k,revertBlueprint:()=>x,shortEditApplication:()=>v,shortEditModule:()=>A,triggerApplicationCanvasControl:()=>h,unbindButtressServer:()=>L,updateApplication:()=>$,updateBlueprint:()=>T,updateDevice:()=>l,updateModule:()=>I,updateVirtualDevice:()=>d,updateWorkspace:()=>C,useApplicationReleaseVersion:()=>g});var n=t(94370),a=t(48596),r=(0,n.default)`
355
370
  mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
356
371
  createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
357
372
  ...cliDeviceArguments
@@ -386,17 +401,44 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
386
401
  }
387
402
  ${a.F3}
388
403
  `,l=(0,n.default)`
404
+ mutation CLI_updateDevice(
405
+ $id: ID!
406
+ $name: String
407
+ $description: String
408
+ $tags: [String]
409
+ $env: DeviceEnvInput
410
+ $activityLog: ActivityLogInput
411
+ $localSync: LocalSyncInput
412
+ $lock: DeviceLockInput
413
+ $forceNotifyDevice: Boolean
414
+ ) {
415
+ updateDevice(
416
+ id: $id
417
+ name: $name
418
+ description: $description
419
+ tags: $tags
420
+ env: $env
421
+ activityLog: $activityLog
422
+ localSync: $localSync
423
+ lock: $lock
424
+ forceNotifyDevice: $forceNotifyDevice
425
+ ) {
426
+ ...cliDeviceArguments
427
+ }
428
+ }
429
+ ${a.F3}
430
+ `,u=(0,n.default)`
389
431
  mutation CLI_removeDevice($id: ID!) {
390
432
  removeDevice(id: $id)
391
433
  }
392
- `,u=(0,n.default)`
434
+ `,c=(0,n.default)`
393
435
  mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
394
436
  dispatchDeviceGroupAction(id: $id, action: $action) {
395
437
  dispatched
396
438
  devices
397
439
  }
398
440
  }
399
- `,c=(0,n.default)`
441
+ `,p=(0,n.default)`
400
442
  mutation CLI_createApplication(
401
443
  $name: String
402
444
  $description: String
@@ -413,7 +455,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
413
455
  }
414
456
  }
415
457
  ${a.$7}
416
- `,p=(0,n.default)`
458
+ `,m=(0,n.default)`
417
459
  mutation CLI_createApplicationWithShareVersion(
418
460
  $name: String
419
461
  $description: String
@@ -430,12 +472,14 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
430
472
  }
431
473
  }
432
474
  ${a.$7}
433
- `,m=(0,n.default)`
475
+ `,$=(0,n.default)`
434
476
  mutation CLI_updateApplication(
435
477
  $id: ID!
436
478
  $config: String
437
479
  $name: String
438
480
  $description: String
481
+ $tags: [String]
482
+ $lock: ApplicationLockInput
439
483
  $validateConfig: Boolean
440
484
  $lastCommitId: String
441
485
  ) {
@@ -444,20 +488,33 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
444
488
  config: $config
445
489
  name: $name
446
490
  description: $description
491
+ tags: $tags
492
+ lock: $lock
447
493
  validateConfig: $validateConfig
448
494
  lastCommitId: $lastCommitId
449
495
  ) {
450
496
  ...cliApplicationShortArguments
451
497
  config
452
498
  has_unreleased_changes
499
+ tags
500
+ lock {
501
+ enabled
502
+ }
453
503
  }
454
504
  }
455
505
  ${a.$7}
456
- `,$=(0,n.default)`
506
+ `,g=(0,n.default)`
507
+ mutation CLI_useApplicationReleaseVersion($id: ID!, $versionId: ID!) {
508
+ useApplicationReleaseVersion: updateApplication(id: $id, useReleaseVersion: $versionId) {
509
+ ...cliApplicationShortArguments
510
+ }
511
+ }
512
+ ${a.$7}
513
+ `,_=(0,n.default)`
457
514
  mutation CLI_removeApplication($id: ID!) {
458
515
  removeApplication(id: $id)
459
516
  }
460
- `,g=(0,n.default)`
517
+ `,v=(0,n.default)`
461
518
  mutation CLI_shortEditApplication(
462
519
  $id: ID!
463
520
  $list: [ShortEditInput]!
@@ -469,7 +526,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
469
526
  }
470
527
  }
471
528
  ${a.$7}
472
- `,_=(0,n.default)`
529
+ `,f=(0,n.default)`
473
530
  mutation CLI_bindApplication(
474
531
  $id: ID!
475
532
  $bindDevices: [ID]
@@ -494,7 +551,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
494
551
  }
495
552
  }
496
553
  }
497
- `,v=(0,n.default)`
554
+ `,h=(0,n.default)`
498
555
  mutation CLI_triggerApplicationCanvasControl(
499
556
  $id: ID!
500
557
  $testId: String!
@@ -512,7 +569,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
512
569
  _id
513
570
  }
514
571
  }
515
- `,f=(0,n.default)`
572
+ `,y=(0,n.default)`
516
573
  mutation CLI_createModule(
517
574
  $name: String
518
575
  $description: String
@@ -537,7 +594,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
537
594
  }
538
595
  }
539
596
  ${a.$V}
540
- `,h=(0,n.default)`
597
+ `,I=(0,n.default)`
541
598
  mutation CLI_updateModule(
542
599
  $id: ID!
543
600
  $config: String
@@ -558,11 +615,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
558
615
  }
559
616
  }
560
617
  ${a.$V}
561
- `,y=(0,n.default)`
618
+ `,k=(0,n.default)`
562
619
  mutation CLI_removeModule($id: ID!) {
563
620
  removeModule(id: $id)
564
621
  }
565
- `,I=(0,n.default)`
622
+ `,A=(0,n.default)`
566
623
  mutation CLI_shortEditModule(
567
624
  $id: ID!
568
625
  $list: [ShortEditInput]!
@@ -574,7 +631,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
574
631
  name
575
632
  }
576
633
  }
577
- `,k=(0,n.default)`
634
+ `,C=(0,n.default)`
578
635
  mutation CLI_updateWorkspace(
579
636
  $name: String
580
637
  $description: String
@@ -598,7 +655,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
598
655
  }
599
656
  }
600
657
  }
601
- `,A=(0,n.default)`
658
+ `,b=(0,n.default)`
602
659
  mutation CLI_releaseApplication(
603
660
  $id: ID!
604
661
  $config: String
@@ -621,7 +678,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
621
678
  has_unreleased_changes
622
679
  }
623
680
  }
624
- `,C=(0,n.default)`
681
+ `,S=(0,n.default)`
625
682
  mutation CLI_createMediaFileUploadRequest(
626
683
  $name: String!
627
684
  $description: String!
@@ -648,7 +705,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
648
705
  }
649
706
  }
650
707
  }
651
- `,b=(0,n.default)`
708
+ `,D=(0,n.default)`
652
709
  mutation CLI_releaseModule(
653
710
  $id: ID!
654
711
  $config: String
@@ -668,7 +725,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
668
725
  name
669
726
  }
670
727
  }
671
- `,S=(0,n.default)`
728
+ `,B=(0,n.default)`
672
729
  mutation CLI_bindButtressServer(
673
730
  $serverId: String!
674
731
  $name: String
@@ -684,11 +741,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
684
741
  }
685
742
  }
686
743
  }
687
- `,D=(0,n.default)`
744
+ `,L=(0,n.default)`
688
745
  mutation CLI_unbindButtressServer($serverId: String!) {
689
746
  unbindButtressServer(serverId: $serverId)
690
747
  }
691
- `,B=(0,n.default)`
748
+ `,w=(0,n.default)`
692
749
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
693
750
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
694
751
  token
@@ -697,7 +754,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
697
754
  jti
698
755
  }
699
756
  }
700
- `,L=(0,n.default)`
757
+ `,P=(0,n.default)`
701
758
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
702
759
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
703
760
  token
@@ -706,32 +763,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
706
763
  jti
707
764
  }
708
765
  }
709
- `,w=(0,n.default)`
766
+ `,q=(0,n.default)`
710
767
  mutation CLI_createBlueprint($name: String!, $description: String) {
711
768
  createBlueprint(name: $name, description: $description) {
712
769
  ...cliBlueprintArguments
713
770
  }
714
771
  }
715
772
  ${a._A}
716
- `,P=(0,n.default)`
773
+ `,T=(0,n.default)`
717
774
  mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
718
775
  updateBlueprint(id: $id, revision: $revision, patch: $patch) {
719
776
  ...cliBlueprintArguments
720
777
  }
721
778
  }
722
779
  ${a._A}
723
- `,q=(0,n.default)`
780
+ `,x=(0,n.default)`
724
781
  mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
725
782
  revertBlueprint(id: $id, toRevision: $toRevision) {
726
783
  ...cliBlueprintArguments
727
784
  }
728
785
  }
729
786
  ${a._A}
730
- `,T=(0,n.default)`
787
+ `,E=(0,n.default)`
731
788
  mutation CLI_removeBlueprint($id: ID!) {
732
789
  removeBlueprint(id: $id)
733
790
  }
734
- `,x=(0,n.default)`
791
+ `,R=(0,n.default)`
735
792
  mutation CLI_acquireBlueprintRun($id: ID!, $host: String!, $sessionId: String!) {
736
793
  acquireBlueprintRun(id: $id, host: $host, sessionId: $sessionId) {
737
794
  ok
@@ -741,7 +798,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
741
798
  }
742
799
  }
743
800
  ${a.zL}
744
- `,E=(0,n.default)`
801
+ `,V=(0,n.default)`
745
802
  mutation CLI_heartbeatBlueprintRun($id: ID!, $sessionId: String!) {
746
803
  heartbeatBlueprintRun(id: $id, sessionId: $sessionId) {
747
804
  ok
@@ -755,7 +812,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
755
812
  mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
756
813
  releaseBlueprintRun(id: $id, sessionId: $sessionId)
757
814
  }
758
- `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>m,applicationProject:()=>S,applications:()=>$,blueprint:()=>L,blueprintEvents:()=>x,blueprintProjection:()=>q,blueprintRevisions:()=>T,blueprints:()=>w,blueprintsByInstance:()=>P,buttressServers:()=>B,checkBindDevicePasscode:()=>h,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>b,devices:()=>s,devicesApplicationStatus:()=>E,devicesByGroup:()=>c,devicesPanel:()=>d,mediaBox:()=>A,mediaBoxes:()=>k,mediaFile:()=>C,mediaFiles:()=>y,mediaWorkspace:()=>I,module:()=>_,moduleProject:()=>D,modules:()=>v,publicApplicationShareInfo:()=>g,publicModules:()=>f,workspace:()=>r});var n=t(94370),a=t(48596),r=(0,n.default)`
815
+ `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationDeviceSettings:()=>m,applicationProject:()=>D,applicationReleaseVersions:()=>$,applications:()=>g,blueprint:()=>w,blueprintEvents:()=>E,blueprintProjection:()=>T,blueprintRevisions:()=>x,blueprints:()=>P,blueprintsByInstance:()=>q,buttressServers:()=>L,checkBindDevicePasscode:()=>y,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>u,deviceUsage:()=>S,devices:()=>s,devicesApplicationStatus:()=>R,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
816
  query CLI_workspace {
760
817
  workspace {
761
818
  ...cliWorkspaceArguments
@@ -837,17 +894,36 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
837
894
  canvas_control
838
895
  device_control
839
896
  env
897
+ cron_tests {
898
+ test_id
899
+ cron
900
+ date_range {
901
+ start
902
+ end
903
+ }
904
+ update_screenshot
905
+ bind_id
906
+ }
840
907
  }
841
908
  }
842
909
  }
843
910
  `,$=(0,n.default)`
911
+ query CLI_applicationReleaseVersions($id: ID!) {
912
+ applicationReleaseVersions(id: $id) {
913
+ _id
914
+ version
915
+ note
916
+ create_datetime
917
+ }
918
+ }
919
+ `,g=(0,n.default)`
844
920
  query CLI_applications($keyword: String, $paginate: Paginate) {
845
921
  applications(keyword: $keyword, paginate: $paginate) {
846
922
  ...cliApplicationShortArguments
847
923
  }
848
924
  }
849
925
  ${a.$7}
850
- `,g=(0,n.default)`
926
+ `,_=(0,n.default)`
851
927
  query CLI_publicApplicationShareInfo($id: ID!) {
852
928
  publicApplicationShareInfo(id: $id) {
853
929
  _id
@@ -872,32 +948,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
872
948
  }
873
949
  }
874
950
  }
875
- `,_=(0,n.default)`
951
+ `,v=(0,n.default)`
876
952
  query CLI_module($id: ID!) {
877
953
  module(id: $id) {
878
954
  ...cliModuleArguments
879
955
  }
880
956
  }
881
957
  ${a.$V}
882
- `,v=(0,n.default)`
958
+ `,f=(0,n.default)`
883
959
  query CLI_modules($keyword: String, $paginate: Paginate) {
884
960
  modules(keyword: $keyword, paginate: $paginate) {
885
961
  ...cliModuleShortArguments
886
962
  }
887
963
  }
888
964
  ${a.J6}
889
- `,f=(0,n.default)`
965
+ `,h=(0,n.default)`
890
966
  query CLI_publicModules($keyword: String!, $limit: Int) {
891
967
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
892
968
  ...cliModuleShortArguments
893
969
  }
894
970
  }
895
971
  ${a.J6}
896
- `,h=(0,n.default)`
972
+ `,y=(0,n.default)`
897
973
  query CLI_checkBindDevicePasscode($passcode: String!) {
898
974
  checkBindDevicePasscode(passcode: $passcode)
899
975
  }
900
- `,y=(0,n.default)`
976
+ `,I=(0,n.default)`
901
977
  query CLI_mediaFiles(
902
978
  $boxId: ID!
903
979
  $includeTypes: [String]
@@ -940,7 +1016,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
940
1016
  }
941
1017
  }
942
1018
  }
943
- `,I=(0,n.default)`
1019
+ `,k=(0,n.default)`
944
1020
  query CLI_mediaWorkspace {
945
1021
  mediaWorkspace {
946
1022
  id
@@ -953,7 +1029,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
953
1029
  updatedAt
954
1030
  }
955
1031
  }
956
- `,k=(0,n.default)`
1032
+ `,A=(0,n.default)`
957
1033
  query CLI_mediaBoxes {
958
1034
  mediaBoxes {
959
1035
  id
@@ -974,7 +1050,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
974
1050
  }
975
1051
  }
976
1052
  }
977
- `,A=(0,n.default)`
1053
+ `,C=(0,n.default)`
978
1054
  query CLI_mediaBox($id: ID!) {
979
1055
  mediaBox(id: $id) {
980
1056
  id
@@ -995,7 +1071,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
995
1071
  }
996
1072
  }
997
1073
  }
998
- `,C=(0,n.default)`
1074
+ `,b=(0,n.default)`
999
1075
  query CLI_mediaFile($id: ID!) {
1000
1076
  mediaFile(id: $id) {
1001
1077
  id
@@ -1026,7 +1102,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1026
1102
  }
1027
1103
  }
1028
1104
  }
1029
- `,b=(0,n.default)`
1105
+ `,S=(0,n.default)`
1030
1106
  query CLI_deviceUsage($deviceId: ID, $startDate: Date, $endDate: Date) {
1031
1107
  deviceUsage(deviceId: $deviceId, startDate: $startDate, endDate: $endDate) {
1032
1108
  _id
@@ -1045,7 +1121,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1045
1121
  }
1046
1122
  }
1047
1123
  }
1048
- `,S=(0,n.default)`
1124
+ `,D=(0,n.default)`
1049
1125
  query CLI_applicationProject(
1050
1126
  $id: ID!
1051
1127
  $buildApplicationOnly: Boolean
@@ -1063,7 +1139,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1063
1139
  setupGeminiCLI: $setupGeminiCLI
1064
1140
  )
1065
1141
  }
1066
- `,D=(0,n.default)`
1142
+ `,B=(0,n.default)`
1067
1143
  query CLI_moduleProject(
1068
1144
  $id: ID!
1069
1145
  $buildApplicationOnly: Boolean
@@ -1081,7 +1157,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1081
1157
  setupGeminiCLI: $setupGeminiCLI
1082
1158
  )
1083
1159
  }
1084
- `,B=(0,n.default)`
1160
+ `,L=(0,n.default)`
1085
1161
  query CLI_buttressServers {
1086
1162
  buttressServers {
1087
1163
  serverId
@@ -1090,32 +1166,32 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1090
1166
  lastSeenAt
1091
1167
  }
1092
1168
  }
1093
- `,L=(0,n.default)`
1169
+ `,w=(0,n.default)`
1094
1170
  query CLI_blueprint($id: ID!) {
1095
1171
  blueprint(id: $id) {
1096
1172
  ...cliBlueprintArguments
1097
1173
  }
1098
1174
  }
1099
1175
  ${a._A}
1100
- `,w=(0,n.default)`
1176
+ `,P=(0,n.default)`
1101
1177
  query CLI_blueprints($keyword: String, $paginate: Paginate) {
1102
1178
  blueprints(keyword: $keyword, paginate: $paginate) {
1103
1179
  ...cliBlueprintShortArguments
1104
1180
  }
1105
1181
  }
1106
1182
  ${a.C$}
1107
- `,P=(0,n.default)`
1183
+ `,q=(0,n.default)`
1108
1184
  query CLI_blueprintsByInstance($kind: BlueprintNodeKind!, $ref: String!) {
1109
1185
  blueprintsByInstance(kind: $kind, ref: $ref) {
1110
1186
  ...cliBlueprintShortArguments
1111
1187
  }
1112
1188
  }
1113
1189
  ${a.C$}
1114
- `,q=(0,n.default)`
1190
+ `,T=(0,n.default)`
1115
1191
  query CLI_blueprintProjection($id: ID!, $format: Int) {
1116
1192
  blueprintProjection(id: $id, format: $format)
1117
1193
  }
1118
- `,T=(0,n.default)`
1194
+ `,x=(0,n.default)`
1119
1195
  query CLI_blueprintRevisions($id: ID!, $limit: Int) {
1120
1196
  blueprintRevisions(id: $id, limit: $limit) {
1121
1197
  _id
@@ -1125,7 +1201,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1125
1201
  created_at
1126
1202
  }
1127
1203
  }
1128
- `,x=(0,n.default)`
1204
+ `,E=(0,n.default)`
1129
1205
  query CLI_blueprintEvents($id: ID!, $limit: Int) {
1130
1206
  blueprintEvents(id: $id, limit: $limit) {
1131
1207
  _id
@@ -1141,7 +1217,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1141
1217
  created_at
1142
1218
  }
1143
1219
  }
1144
- `,E=(0,n.default)`
1220
+ `,R=(0,n.default)`
1145
1221
  query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
1146
1222
  devicesApplicationStatus(filter: $filter, paginate: $paginate) {
1147
1223
  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__={65650(e,t,r){e.exports=r(78942).Symbol},87379(e,t,r){var o=r(65650),n=r(8870),s=r(29005),i=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?n(e):s(e)}},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}},74967(e){e.exports="object"==typeof global&&global&&global.Object===Object&&global},8870(e,t,r){var o=r(65650),n=Object.prototype,s=n.hasOwnProperty,i=n.toString,a=o?o.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),r=e[a];try{e[a]=void 0;var o=!0}catch(e){}var n=i.call(e);return o&&(t?e[a]=r:delete e[a]),n}},29005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78942(e,t,r){var o=r(74967),n="object"==typeof self&&self&&self.Object===Object&&self;e.exports=o||n||Function("return this")()},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,l,p,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,p=e.apply(o,r)}function b(e){var r=e-d,o=e-f;return void 0===d||r>=t||r<0||y&&o>=l}function g(){var e,r,o,s=n();if(b(s))return w(s);h=setTimeout(g,(e=s-d,r=s-f,o=t-e,y?a(o,l-r):o))}function w(e){return(h=void 0,m&&u)?x(e):(u=c=void 0,p)}function _(){var e,r=n(),o=b(r);if(u=arguments,c=this,d=r,o){if(void 0===h)return f=e=d,h=setTimeout(g,t),v?x(e):p;if(y)return clearTimeout(h),h=setTimeout(g,t),x(d)}return void 0===h&&(h=setTimeout(g,t)),p}return t=s(t)||0,o(r)&&(v=!!r.leading,l=(y="maxWait"in r)?i(s(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m),_.cancel=function(){void 0!==h&&clearTimeout(h),f=0,u=d=c=h=void 0},_.flush=function(){return void 0===h?p:w(n())},_}},41580(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},80547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},51187(e,t,r){var o=r(87379),n=r(80547);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==o(e)}},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,l=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)?l(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:()=>p,sh:()=>f});var o,n,s=r(90250),i=r(99436),a=r(5018),u=r(44668),c=r(31421),l=r(73024),p=()=>{var e=process.argv[1];return e&&!(e.includes("$bunfs")||e.includes("~BUN"))&&(0,l.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 l=yield new Promise((e,t)=>{i.on("error",t),i.on("close",(t,r)=>e({code:t,signal:r}))}),p=l.code,h=l.signal,d=p??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,l=new h(u);return c&&l.cwd(c),l}},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:
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),l=r(75720),p=r(16749),h=`Usage: bricks ctor simulator [options]
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"],b=(t=o(function*(){yield(0,l.sh)`${(0,l.p)()} ctor compile ${x?[]:["--no-check"]}`}),function(){return t.apply(this,arguments)});yield b();var g=null;if(y){var w=c(b,500);g=(0,i.watch)(`${d}/subspaces`,{recursive:!0},(e,t)=>{console.log(`Detected ${e} in ${t}`),w()})}var _=`${d}/.bricks/devtools.json`,k=()=>{try{(0,i.unlinkSync)(_)}catch{}};try{var S=JSON.parse((yield(0,s.readFile)(_,"utf8")));if(S.pid){try{process.kill(S.pid)}catch{}k()}}catch{}var j=(0,p.W)("file:///Users/jhen/workspace/mybigday-bricks/packages/bricks-cli/src/ctor/tools/simulator.js"),T=(0,n.spawn)("bunx",["--bun","electron",j,...v],{env:{...process.env,BRICKS_STAGE:f.stage||"production"},stdio:["inherit","pipe","inherit"]});(0,a.createInterface)({input:T.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:T.pid,address:"localhost",name:`${f.name||"Unnamed"} (CTOR Simulator)`,startedAt:new Date().toISOString()};(0,s.writeFile)(_,JSON.stringify(r,null,2))}console.log(e)}});try{var O=yield new Promise((e,t)=>{T.on("error",t),T.on("close",(t,r)=>e({code:t,signal:r}))}),$=O.code,E=O.signal;if(0!==$)throw Error(`Simulator exited with ${E?`signal ${E}`:`code ${$}`}`)}finally{k(),g&&g.close()}})).apply(this,arguments)}}};
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)}}};