@fugood/bricks-cli 2.26.0-beta.21 → 2.26.0-beta.23

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/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:()=>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)`
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,7 +472,7 @@ ${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
@@ -461,18 +503,18 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
461
503
  }
462
504
  }
463
505
  ${a.$7}
464
- `,$=(0,n.default)`
506
+ `,g=(0,n.default)`
465
507
  mutation CLI_useApplicationReleaseVersion($id: ID!, $versionId: ID!) {
466
508
  useApplicationReleaseVersion: updateApplication(id: $id, useReleaseVersion: $versionId) {
467
509
  ...cliApplicationShortArguments
468
510
  }
469
511
  }
470
512
  ${a.$7}
471
- `,g=(0,n.default)`
513
+ `,_=(0,n.default)`
472
514
  mutation CLI_removeApplication($id: ID!) {
473
515
  removeApplication(id: $id)
474
516
  }
475
- `,_=(0,n.default)`
517
+ `,v=(0,n.default)`
476
518
  mutation CLI_shortEditApplication(
477
519
  $id: ID!
478
520
  $list: [ShortEditInput]!
@@ -484,7 +526,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
484
526
  }
485
527
  }
486
528
  ${a.$7}
487
- `,v=(0,n.default)`
529
+ `,f=(0,n.default)`
488
530
  mutation CLI_bindApplication(
489
531
  $id: ID!
490
532
  $bindDevices: [ID]
@@ -509,7 +551,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
509
551
  }
510
552
  }
511
553
  }
512
- `,f=(0,n.default)`
554
+ `,h=(0,n.default)`
513
555
  mutation CLI_triggerApplicationCanvasControl(
514
556
  $id: ID!
515
557
  $testId: String!
@@ -527,7 +569,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
527
569
  _id
528
570
  }
529
571
  }
530
- `,h=(0,n.default)`
572
+ `,y=(0,n.default)`
531
573
  mutation CLI_createModule(
532
574
  $name: String
533
575
  $description: String
@@ -552,7 +594,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
552
594
  }
553
595
  }
554
596
  ${a.$V}
555
- `,y=(0,n.default)`
597
+ `,I=(0,n.default)`
556
598
  mutation CLI_updateModule(
557
599
  $id: ID!
558
600
  $config: String
@@ -573,11 +615,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
573
615
  }
574
616
  }
575
617
  ${a.$V}
576
- `,I=(0,n.default)`
618
+ `,k=(0,n.default)`
577
619
  mutation CLI_removeModule($id: ID!) {
578
620
  removeModule(id: $id)
579
621
  }
580
- `,k=(0,n.default)`
622
+ `,A=(0,n.default)`
581
623
  mutation CLI_shortEditModule(
582
624
  $id: ID!
583
625
  $list: [ShortEditInput]!
@@ -589,7 +631,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
589
631
  name
590
632
  }
591
633
  }
592
- `,A=(0,n.default)`
634
+ `,C=(0,n.default)`
593
635
  mutation CLI_updateWorkspace(
594
636
  $name: String
595
637
  $description: String
@@ -613,7 +655,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
613
655
  }
614
656
  }
615
657
  }
616
- `,C=(0,n.default)`
658
+ `,b=(0,n.default)`
617
659
  mutation CLI_releaseApplication(
618
660
  $id: ID!
619
661
  $config: String
@@ -636,7 +678,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
636
678
  has_unreleased_changes
637
679
  }
638
680
  }
639
- `,b=(0,n.default)`
681
+ `,S=(0,n.default)`
640
682
  mutation CLI_createMediaFileUploadRequest(
641
683
  $name: String!
642
684
  $description: String!
@@ -663,7 +705,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
663
705
  }
664
706
  }
665
707
  }
666
- `,S=(0,n.default)`
708
+ `,D=(0,n.default)`
667
709
  mutation CLI_releaseModule(
668
710
  $id: ID!
669
711
  $config: String
@@ -683,7 +725,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
683
725
  name
684
726
  }
685
727
  }
686
- `,D=(0,n.default)`
728
+ `,B=(0,n.default)`
687
729
  mutation CLI_bindButtressServer(
688
730
  $serverId: String!
689
731
  $name: String
@@ -699,11 +741,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
699
741
  }
700
742
  }
701
743
  }
702
- `,B=(0,n.default)`
744
+ `,L=(0,n.default)`
703
745
  mutation CLI_unbindButtressServer($serverId: String!) {
704
746
  unbindButtressServer(serverId: $serverId)
705
747
  }
706
- `,L=(0,n.default)`
748
+ `,w=(0,n.default)`
707
749
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
708
750
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
709
751
  token
@@ -712,7 +754,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
712
754
  jti
713
755
  }
714
756
  }
715
- `,w=(0,n.default)`
757
+ `,P=(0,n.default)`
716
758
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
717
759
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
718
760
  token
@@ -721,28 +763,28 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
721
763
  jti
722
764
  }
723
765
  }
724
- `,P=(0,n.default)`
766
+ `,q=(0,n.default)`
725
767
  mutation CLI_createBlueprint($name: String!, $description: String) {
726
768
  createBlueprint(name: $name, description: $description) {
727
769
  ...cliBlueprintArguments
728
770
  }
729
771
  }
730
772
  ${a._A}
731
- `,q=(0,n.default)`
773
+ `,T=(0,n.default)`
732
774
  mutation CLI_updateBlueprint($id: ID!, $revision: Int!, $patch: BlueprintPatchInput!) {
733
775
  updateBlueprint(id: $id, revision: $revision, patch: $patch) {
734
776
  ...cliBlueprintArguments
735
777
  }
736
778
  }
737
779
  ${a._A}
738
- `,T=(0,n.default)`
780
+ `,x=(0,n.default)`
739
781
  mutation CLI_revertBlueprint($id: ID!, $toRevision: Int!) {
740
782
  revertBlueprint(id: $id, toRevision: $toRevision) {
741
783
  ...cliBlueprintArguments
742
784
  }
743
785
  }
744
786
  ${a._A}
745
- `,x=(0,n.default)`
787
+ `,E=(0,n.default)`
746
788
  mutation CLI_removeBlueprint($id: ID!) {
747
789
  removeBlueprint(id: $id)
748
790
  }
@@ -766,11 +808,11 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
766
808
  }
767
809
  }
768
810
  ${a.zL}
769
- `,E=(0,n.default)`
811
+ `,M=(0,n.default)`
770
812
  mutation CLI_releaseBlueprintRun($id: ID!, $sessionId: String!) {
771
813
  releaseBlueprintRun(id: $id, sessionId: $sessionId)
772
814
  }
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)`
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)`
774
816
  query CLI_workspace {
775
817
  workspace {
776
818
  ...cliWorkspaceArguments
@@ -1159,7 +1201,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1159
1201
  created_at
1160
1202
  }
1161
1203
  }
1162
- `,R=(0,n.default)`
1204
+ `,E=(0,n.default)`
1163
1205
  query CLI_blueprintEvents($id: ID!, $limit: Int) {
1164
1206
  blueprintEvents(id: $id, limit: $limit) {
1165
1207
  _id
@@ -1175,7 +1217,7 @@ ${A}`);return n.cause=e,n},b=l(function e(i,t){var n,a=this;d(this,e),this.baseU
1175
1217
  created_at
1176
1218
  }
1177
1219
  }
1178
- `,V=(0,n.default)`
1220
+ `,R=(0,n.default)`
1179
1221
  query CLI_devicesApplicationStatus($filter: DeviceApplicationStatusFilter, $paginate: Paginate) {
1180
1222
  devicesApplicationStatus(filter: $filter, paginate: $paginate) {
1181
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__={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:
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 c,u,p,l,h,d,f=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function w(t){var r=c,o=u;return c=u=void 0,f=t,l=e.apply(o,r)}function g(e){var r=e-d,o=e-f;return void 0===d||r>=t||r<0||m&&o>=p}function x(){var e,r,o,s=n();if(g(s))return _(s);h=setTimeout(x,(e=s-d,r=s-f,o=t-e,m?a(o,p-r):o))}function _(e){return(h=void 0,y&&c)?w(e):(c=u=void 0,l)}function b(){var e,r=n(),o=g(r);if(c=arguments,u=this,d=r,o){if(void 0===h)return f=e=d,h=setTimeout(x,t),v?w(e):l;if(m)return clearTimeout(h),h=setTimeout(x,t),w(d)}return void 0===h&&(h=setTimeout(x,t)),l}return t=s(t)||0,o(r)&&(v=!!r.leading,p=(m="maxWait"in r)?i(s(r.maxWait)||0,t):p,y="trailing"in r?!!r.trailing:y),b.cancel=function(){void 0!==h&&clearTimeout(h),f=0,c=d=u=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,c=/^0b[01]+$/i,u=/^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=c.test(e);return r||u.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},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),c=r(44668),u=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=c(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,u.spawn)(t,r,{cwd:this._cwd,stdio:o,env:n}),a=[],c=[];i.stdout?.on("data",e=>{a.push(e),"default"===this._mode&&process.stdout.write(e)}),i.stderr?.on("data",e=>{c.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(c);if(0!==d&&this._throw){var m=h?`signal ${h}`:`exit ${d}`,y=Error(`sh: command failed with ${m}: ${this.args.join(" ")}`);throw y.exitCode=d,y.stdout=f,y.stderr=v,y}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}),c=a.tokens,u=a.initialCwd,p=new h(c);return u&&p.cwd(u),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),p=r(75720),l=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),c=r(57975),u=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"],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)}}};
24
+ `;function d(){return f.apply(this,arguments)}function f(){return(f=o(function*(e=[]){var t,r=(0,c.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 m=!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})),m=!r["no-keep-open"]),r["capture-plan"]&&(v.push("--capture-plan",r["capture-plan"]),m=!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 y=parseInt(r["cdp-port"]||"",10)||19852;v.push("--cdp-port",String(y))}var w=!r["skip-typecheck"],g=(t=o(function*(){yield(0,p.sh)`${(0,p.p)()} ctor compile ${w?[]:["--no-check"]}`}),function(){return t.apply(this,arguments)});yield g();var x=u(o(function*(){try{yield g()}catch(e){console.error(`Recompile failed: ${e.message}`)}}),500),_=null;m&&(_=(0,i.watch)(`${d}/subspaces`,{recursive:!0},(e,t)=>{console.log(`Detected ${e} in ${t}`),x()}));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{x.cancel(),k(),_&&_.close()}})).apply(this,arguments)}}};