dsh-cliworker-now 0.7.7 → 0.7.8

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.
Files changed (87) hide show
  1. package/README.en.md +29 -7
  2. package/README.md +30 -7
  3. package/lib/account-models.mjs +33 -5
  4. package/lib/client.js +575 -102
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +7573 -6269
  7. package/lib/index.js.map +1 -1
  8. package/lib/pi-native-catalog.mjs +15 -5
  9. package/lib/pi-omp-refresh.mjs +3 -3
  10. package/lib/typert.host.js +194 -26
  11. package/lib/typert.remote-client.d.ts +6 -0
  12. package/lib/typert.remote-client.d.ts.map +1 -1
  13. package/lib/typert.remote-client.js +176 -26
  14. package/lib/types/client/cli-executable-settings.d.ts +13 -0
  15. package/lib/types/client/cli-executable-settings.js +128 -0
  16. package/lib/types/client/cli-executable-settings.js.map +1 -0
  17. package/lib/types/client/management-styles.d.ts +1 -1
  18. package/lib/types/client/management-styles.js +4 -0
  19. package/lib/types/client/management-styles.js.map +1 -1
  20. package/lib/types/client/settings-dialog.js +134 -45
  21. package/lib/types/client/settings-dialog.js.map +1 -1
  22. package/lib/types/client/styles.d.ts +1 -1
  23. package/lib/types/client/styles.js +18 -16
  24. package/lib/types/client/styles.js.map +1 -1
  25. package/lib/types/host/account-models.d.mts +7 -1
  26. package/lib/types/host/account-models.mjs +33 -5
  27. package/lib/types/host/accounts.js +51 -19
  28. package/lib/types/host/accounts.js.map +1 -1
  29. package/lib/types/host/adapters.d.ts +2 -0
  30. package/lib/types/host/adapters.js +93 -15
  31. package/lib/types/host/adapters.js.map +1 -1
  32. package/lib/types/host/agy-background-environment.d.ts +2 -0
  33. package/lib/types/host/agy-background-environment.js +7 -0
  34. package/lib/types/host/agy-background-environment.js.map +1 -0
  35. package/lib/types/host/claude-native-oauth.js +2 -0
  36. package/lib/types/host/claude-native-oauth.js.map +1 -1
  37. package/lib/types/host/claude-own-route.d.ts +15 -3
  38. package/lib/types/host/claude-own-route.js +158 -33
  39. package/lib/types/host/claude-own-route.js.map +1 -1
  40. package/lib/types/host/cli-account-binding.js +9 -4
  41. package/lib/types/host/cli-account-binding.js.map +1 -1
  42. package/lib/types/host/cli-executable-paths.d.ts +30 -0
  43. package/lib/types/host/cli-executable-paths.js +272 -0
  44. package/lib/types/host/cli-executable-paths.js.map +1 -0
  45. package/lib/types/host/codex-models.d.ts +3 -1
  46. package/lib/types/host/codex-models.js +37 -4
  47. package/lib/types/host/codex-models.js.map +1 -1
  48. package/lib/types/host/first-party-models.d.ts +4 -0
  49. package/lib/types/host/first-party-models.js +43 -9
  50. package/lib/types/host/first-party-models.js.map +1 -1
  51. package/lib/types/host/hermes-accounts.js +54 -9
  52. package/lib/types/host/hermes-accounts.js.map +1 -1
  53. package/lib/types/host/hermes-models.js +21 -2
  54. package/lib/types/host/hermes-models.js.map +1 -1
  55. package/lib/types/host/index.d.ts +10 -0
  56. package/lib/types/host/index.js +121 -6
  57. package/lib/types/host/index.js.map +1 -1
  58. package/lib/types/host/native-process.js +14 -4
  59. package/lib/types/host/native-process.js.map +1 -1
  60. package/lib/types/host/opencode-native.js +13 -0
  61. package/lib/types/host/opencode-native.js.map +1 -1
  62. package/lib/types/host/pi-omp-adapter.js +2 -2
  63. package/lib/types/host/pi-omp-adapter.js.map +1 -1
  64. package/lib/types/host/pi-omp-native.js +5 -3
  65. package/lib/types/host/pi-omp-native.js.map +1 -1
  66. package/lib/types/host/pi-omp-refresh.mjs +3 -3
  67. package/lib/types/host/process.d.ts +3 -0
  68. package/lib/types/host/process.js +3 -1
  69. package/lib/types/host/process.js.map +1 -1
  70. package/lib/types/host/runtime.js +5 -1
  71. package/lib/types/host/runtime.js.map +1 -1
  72. package/lib/types/host/settings-catalog-cache.d.ts +28 -0
  73. package/lib/types/host/settings-catalog-cache.js +189 -0
  74. package/lib/types/host/settings-catalog-cache.js.map +1 -0
  75. package/lib/types/host/windows-cli-installation.d.ts +4 -0
  76. package/lib/types/host/windows-cli-installation.js +7 -0
  77. package/lib/types/host/windows-cli-installation.js.map +1 -1
  78. package/lib/types/host/windows-codex-launch.d.ts +9 -0
  79. package/lib/types/host/windows-codex-launch.js +216 -0
  80. package/lib/types/host/windows-codex-launch.js.map +1 -0
  81. package/lib/types/host/windows-desktop-cli-installation.d.ts +20 -0
  82. package/lib/types/host/windows-desktop-cli-installation.js +420 -0
  83. package/lib/types/host/windows-desktop-cli-installation.js.map +1 -0
  84. package/lib/types/host/windows-hidden-launch.mjs +3 -1
  85. package/lib/types/shared/cli-settings.d.ts +8 -0
  86. package/lib/windows-hidden-launch.mjs +3 -1
  87. package/package.json +2 -2
@@ -75,6 +75,12 @@ let dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema$value
75
75
  const dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema = () => (dsh_cliworker_now_cliworker_catalogForCli_parameter_1$schema$value ??= z.string())
76
76
  let dsh_cliworker_now_cliworker_catalogForCli_result$schema$value
77
77
  const dsh_cliworker_now_cliworker_catalogForCli_result$schema = () => (dsh_cliworker_now_cliworker_catalogForCli_result$schema$value ??= z.string())
78
+ let dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema$value
79
+ const dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema$value ??= z.string())
80
+ let dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema$value
81
+ const dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema$value ??= z.string())
82
+ let dsh_cliworker_now_cliworker_cliExecutablePath_result$schema$value
83
+ const dsh_cliworker_now_cliworker_cliExecutablePath_result$schema = () => (dsh_cliworker_now_cliworker_cliExecutablePath_result$schema$value ??= z.string())
78
84
  let dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema$value
79
85
  const dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema = () => (dsh_cliworker_now_cliworker_cliSettings_parameter_0$schema$value ??= z.string())
80
86
  let dsh_cliworker_now_cliworker_cliSettings_result$schema$value
@@ -123,6 +129,22 @@ let dsh_cliworker_now_cliworker_history_parameter_3$schema$value
123
129
  const dsh_cliworker_now_cliworker_history_parameter_3$schema = () => (dsh_cliworker_now_cliworker_history_parameter_3$schema$value ??= z.string())
124
130
  let dsh_cliworker_now_cliworker_history_result$schema$value
125
131
  const dsh_cliworker_now_cliworker_history_result$schema = () => (dsh_cliworker_now_cliworker_history_result$schema$value ??= z.string())
132
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema$value
133
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema$value ??= z.string())
134
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema$value
135
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema$value ??= z.string())
136
+ let dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema$value
137
+ const dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema = () => (dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema$value ??= z.string())
138
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema$value
139
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema$value ??= z.string())
140
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema$value
141
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema$value ??= z.string())
142
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema$value
143
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema$value ??= z.string())
144
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema$value
145
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema$value ??= z.string())
146
+ let dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema$value
147
+ const dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema = () => (dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema$value ??= z.string())
126
148
  let dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema$value
127
149
  const dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema = () => (dsh_cliworker_now_cliworker_renameWorker_parameter_0$schema$value ??= z.string())
128
150
  let dsh_cliworker_now_cliworker_renameWorker_parameter_1$schema$value
@@ -240,7 +262,7 @@ export const TYPERT_REMOTE = {
240
262
  typeSymbol: 'dsh-cliworker-now#cliworker/accountResize:result',
241
263
  create: dsh_cliworker_now_cliworker_accountResize_result$schema,
242
264
  },
243
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":942,"column":9},
265
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1035,"column":9},
244
266
  },
245
267
  {
246
268
  id: 'dsh-cliworker-now#cliworker/accountStart',
@@ -286,7 +308,7 @@ export const TYPERT_REMOTE = {
286
308
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStart:result',
287
309
  create: dsh_cliworker_now_cliworker_accountStart_result$schema,
288
310
  },
289
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":838,"column":9},
311
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":930,"column":9},
290
312
  },
291
313
  {
292
314
  id: 'dsh-cliworker-now#cliworker/accountStartForProvider',
@@ -342,7 +364,7 @@ export const TYPERT_REMOTE = {
342
364
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStartForProvider:result',
343
365
  create: dsh_cliworker_now_cliworker_accountStartForProvider_result$schema,
344
366
  },
345
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":866,"column":9},
367
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":958,"column":9},
346
368
  },
347
369
  {
348
370
  id: 'dsh-cliworker-now#cliworker/accountStartForSource',
@@ -398,7 +420,7 @@ export const TYPERT_REMOTE = {
398
420
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStartForSource:result',
399
421
  create: dsh_cliworker_now_cliworker_accountStartForSource_result$schema,
400
422
  },
401
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":849,"column":9},
423
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":941,"column":9},
402
424
  },
403
425
  {
404
426
  id: 'dsh-cliworker-now#cliworker/accountStatus',
@@ -434,7 +456,7 @@ export const TYPERT_REMOTE = {
434
456
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStatus:result',
435
457
  create: dsh_cliworker_now_cliworker_accountStatus_result$schema,
436
458
  },
437
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":822,"column":9},
459
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":831,"column":9},
438
460
  },
439
461
  {
440
462
  id: 'dsh-cliworker-now#cliworker/accountStop',
@@ -469,7 +491,7 @@ export const TYPERT_REMOTE = {
469
491
  typeSymbol: 'dsh-cliworker-now#cliworker/accountStop:result',
470
492
  create: dsh_cliworker_now_cliworker_accountStop_result$schema,
471
493
  },
472
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":958,"column":9},
494
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1051,"column":9},
473
495
  },
474
496
  {
475
497
  id: 'dsh-cliworker-now#cliworker/accountWatch',
@@ -506,7 +528,7 @@ export const TYPERT_REMOTE = {
506
528
  typeSymbol: 'dsh-cliworker-now#cliworker/accountWatch:result',
507
529
  create: dsh_cliworker_now_cliworker_accountWatch_result$schema,
508
530
  },
509
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":916,"column":10},
531
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1009,"column":10},
510
532
  },
511
533
  {
512
534
  id: 'dsh-cliworker-now#cliworker/accountWrite',
@@ -551,7 +573,7 @@ export const TYPERT_REMOTE = {
551
573
  typeSymbol: 'dsh-cliworker-now#cliworker/accountWrite:result',
552
574
  create: dsh_cliworker_now_cliworker_accountWrite_result$schema,
553
575
  },
554
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":931,"column":9},
576
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1024,"column":9},
555
577
  },
556
578
  {
557
579
  id: 'dsh-cliworker-now#cliworker/catalog',
@@ -577,7 +599,7 @@ export const TYPERT_REMOTE = {
577
599
  typeSymbol: 'dsh-cliworker-now#cliworker/catalog:result',
578
600
  create: dsh_cliworker_now_cliworker_catalog_result$schema,
579
601
  },
580
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":968,"column":9},
602
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1061,"column":9},
581
603
  },
582
604
  {
583
605
  id: 'dsh-cliworker-now#cliworker/catalogForCli',
@@ -613,7 +635,43 @@ export const TYPERT_REMOTE = {
613
635
  typeSymbol: 'dsh-cliworker-now#cliworker/catalogForCli:result',
614
636
  create: dsh_cliworker_now_cliworker_catalogForCli_result$schema,
615
637
  },
616
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":973,"column":9},
638
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1066,"column":9},
639
+ },
640
+ {
641
+ id: 'dsh-cliworker-now#cliworker/cliExecutablePath',
642
+ service: 'cliworker',
643
+ namespace: 'cliworker',
644
+ method: 'cliExecutablePath',
645
+ invocation: { kind: 'direct' },
646
+ parameters: [
647
+ {
648
+ name: 'parentSessionId',
649
+ wire: 'parentSessionId',
650
+ source: 'json',
651
+ codec: {
652
+ mode: 'strict',
653
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:parentSessionId',
654
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_parameter_0$schema,
655
+ },
656
+ },
657
+ {
658
+ name: 'cli',
659
+ wire: 'cli',
660
+ source: 'json',
661
+ codec: {
662
+ mode: 'strict',
663
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:cli',
664
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_parameter_1$schema,
665
+ },
666
+ },
667
+ ],
668
+ cancellation: { parameter: 'signal' },
669
+ result: {
670
+ mode: 'strict',
671
+ typeSymbol: 'dsh-cliworker-now#cliworker/cliExecutablePath:result',
672
+ create: dsh_cliworker_now_cliworker_cliExecutablePath_result$schema,
673
+ },
674
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":880,"column":9},
617
675
  },
618
676
  {
619
677
  id: 'dsh-cliworker-now#cliworker/cliSettings',
@@ -639,7 +697,7 @@ export const TYPERT_REMOTE = {
639
697
  typeSymbol: 'dsh-cliworker-now#cliworker/cliSettings:result',
640
698
  create: dsh_cliworker_now_cliworker_cliSettings_result$schema,
641
699
  },
642
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":698,"column":9},
700
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":707,"column":9},
643
701
  },
644
702
  {
645
703
  id: 'dsh-cliworker-now#cliworker/configure',
@@ -675,7 +733,7 @@ export const TYPERT_REMOTE = {
675
733
  typeSymbol: 'dsh-cliworker-now#cliworker/configure:result',
676
734
  create: dsh_cliworker_now_cliworker_configure_result$schema,
677
735
  },
678
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":991,"column":9},
736
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1105,"column":9},
679
737
  },
680
738
  {
681
739
  id: 'dsh-cliworker-now#cliworker/configureWorker',
@@ -721,7 +779,7 @@ export const TYPERT_REMOTE = {
721
779
  typeSymbol: 'dsh-cliworker-now#cliworker/configureWorker:result',
722
780
  create: dsh_cliworker_now_cliworker_configureWorker_result$schema,
723
781
  },
724
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1018,"column":9},
782
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1132,"column":9},
725
783
  },
726
784
  {
727
785
  id: 'dsh-cliworker-now#cliworker/deleteRolePreset',
@@ -757,7 +815,7 @@ export const TYPERT_REMOTE = {
757
815
  typeSymbol: 'dsh-cliworker-now#cliworker/deleteRolePreset:result',
758
816
  create: dsh_cliworker_now_cliworker_deleteRolePreset_result$schema,
759
817
  },
760
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":733,"column":9},
818
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":742,"column":9},
761
819
  },
762
820
  {
763
821
  id: 'dsh-cliworker-now#cliworker/deleteWorker',
@@ -793,7 +851,7 @@ export const TYPERT_REMOTE = {
793
851
  typeSymbol: 'dsh-cliworker-now#cliworker/deleteWorker:result',
794
852
  create: dsh_cliworker_now_cliworker_deleteWorker_result$schema,
795
853
  },
796
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":777,"column":9},
854
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":786,"column":9},
797
855
  },
798
856
  {
799
857
  id: 'dsh-cliworker-now#cliworker/followup',
@@ -839,7 +897,7 @@ export const TYPERT_REMOTE = {
839
897
  typeSymbol: 'dsh-cliworker-now#cliworker/followup:result',
840
898
  create: dsh_cliworker_now_cliworker_followup_result$schema,
841
899
  },
842
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1052,"column":9},
900
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1166,"column":9},
843
901
  },
844
902
  {
845
903
  id: 'dsh-cliworker-now#cliworker/history',
@@ -894,7 +952,99 @@ export const TYPERT_REMOTE = {
894
952
  typeSymbol: 'dsh-cliworker-now#cliworker/history:result',
895
953
  create: dsh_cliworker_now_cliworker_history_result$schema,
896
954
  },
897
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":684,"column":9},
955
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":693,"column":9},
956
+ },
957
+ {
958
+ id: 'dsh-cliworker-now#cliworker/refreshCatalogForCli',
959
+ service: 'cliworker',
960
+ namespace: 'cliworker',
961
+ method: 'refreshCatalogForCli',
962
+ invocation: { kind: 'direct' },
963
+ parameters: [
964
+ {
965
+ name: 'parentSessionId',
966
+ wire: 'parentSessionId',
967
+ source: 'json',
968
+ codec: {
969
+ mode: 'strict',
970
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:parentSessionId',
971
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_0$schema,
972
+ },
973
+ },
974
+ {
975
+ name: 'cli',
976
+ wire: 'cli',
977
+ source: 'json',
978
+ codec: {
979
+ mode: 'strict',
980
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:cli',
981
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_parameter_1$schema,
982
+ },
983
+ },
984
+ ],
985
+ cancellation: { parameter: 'signal' },
986
+ result: {
987
+ mode: 'strict',
988
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCatalogForCli:result',
989
+ create: dsh_cliworker_now_cliworker_refreshCatalogForCli_result$schema,
990
+ },
991
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1071,"column":9},
992
+ },
993
+ {
994
+ id: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath',
995
+ service: 'cliworker',
996
+ namespace: 'cliworker',
997
+ method: 'refreshCliExecutablePath',
998
+ invocation: { kind: 'direct' },
999
+ parameters: [
1000
+ {
1001
+ name: 'parentSessionId',
1002
+ wire: 'parentSessionId',
1003
+ source: 'json',
1004
+ codec: {
1005
+ mode: 'strict',
1006
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:parentSessionId',
1007
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_0$schema,
1008
+ },
1009
+ },
1010
+ {
1011
+ name: 'cli',
1012
+ wire: 'cli',
1013
+ source: 'json',
1014
+ codec: {
1015
+ mode: 'strict',
1016
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:cli',
1017
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_1$schema,
1018
+ },
1019
+ },
1020
+ {
1021
+ name: 'path',
1022
+ wire: 'path',
1023
+ source: 'json',
1024
+ codec: {
1025
+ mode: 'strict',
1026
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:path',
1027
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_2$schema,
1028
+ },
1029
+ },
1030
+ {
1031
+ name: 'action',
1032
+ wire: 'action',
1033
+ source: 'json',
1034
+ codec: {
1035
+ mode: 'strict',
1036
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:action',
1037
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_parameter_3$schema,
1038
+ },
1039
+ },
1040
+ ],
1041
+ cancellation: { parameter: 'signal' },
1042
+ result: {
1043
+ mode: 'strict',
1044
+ typeSymbol: 'dsh-cliworker-now#cliworker/refreshCliExecutablePath:result',
1045
+ create: dsh_cliworker_now_cliworker_refreshCliExecutablePath_result$schema,
1046
+ },
1047
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":901,"column":9},
898
1048
  },
899
1049
  {
900
1050
  id: 'dsh-cliworker-now#cliworker/renameWorker',
@@ -940,7 +1090,7 @@ export const TYPERT_REMOTE = {
940
1090
  typeSymbol: 'dsh-cliworker-now#cliworker/renameWorker:result',
941
1091
  create: dsh_cliworker_now_cliworker_renameWorker_result$schema,
942
1092
  },
943
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":745,"column":9},
1093
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":754,"column":9},
944
1094
  },
945
1095
  {
946
1096
  id: 'dsh-cliworker-now#cliworker/renameWorkerTitle',
@@ -986,7 +1136,7 @@ export const TYPERT_REMOTE = {
986
1136
  typeSymbol: 'dsh-cliworker-now#cliworker/renameWorkerTitle:result',
987
1137
  create: dsh_cliworker_now_cliworker_renameWorkerTitle_result$schema,
988
1138
  },
989
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":761,"column":9},
1139
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":770,"column":9},
990
1140
  },
991
1141
  {
992
1142
  id: 'dsh-cliworker-now#cliworker/restartWorker',
@@ -1032,7 +1182,7 @@ export const TYPERT_REMOTE = {
1032
1182
  typeSymbol: 'dsh-cliworker-now#cliworker/restartWorker:result',
1033
1183
  create: dsh_cliworker_now_cliworker_restartWorker_result$schema,
1034
1184
  },
1035
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1080,"column":9},
1185
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1194,"column":9},
1036
1186
  },
1037
1187
  {
1038
1188
  id: 'dsh-cliworker-now#cliworker/restoreWorker',
@@ -1068,7 +1218,7 @@ export const TYPERT_REMOTE = {
1068
1218
  typeSymbol: 'dsh-cliworker-now#cliworker/restoreWorker:result',
1069
1219
  create: dsh_cliworker_now_cliworker_restoreWorker_result$schema,
1070
1220
  },
1071
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":788,"column":9},
1221
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":797,"column":9},
1072
1222
  },
1073
1223
  {
1074
1224
  id: 'dsh-cliworker-now#cliworker/rolePresets',
@@ -1094,7 +1244,7 @@ export const TYPERT_REMOTE = {
1094
1244
  typeSymbol: 'dsh-cliworker-now#cliworker/rolePresets:result',
1095
1245
  create: dsh_cliworker_now_cliworker_rolePresets_result$schema,
1096
1246
  },
1097
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":709,"column":9},
1247
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":718,"column":9},
1098
1248
  },
1099
1249
  {
1100
1250
  id: 'dsh-cliworker-now#cliworker/saveRolePreset',
@@ -1130,7 +1280,7 @@ export const TYPERT_REMOTE = {
1130
1280
  typeSymbol: 'dsh-cliworker-now#cliworker/saveRolePreset:result',
1131
1281
  create: dsh_cliworker_now_cliworker_saveRolePreset_result$schema,
1132
1282
  },
1133
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":720,"column":9},
1283
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":729,"column":9},
1134
1284
  },
1135
1285
  {
1136
1286
  id: 'dsh-cliworker-now#cliworker/setCliEnabled',
@@ -1176,7 +1326,7 @@ export const TYPERT_REMOTE = {
1176
1326
  typeSymbol: 'dsh-cliworker-now#cliworker/setCliEnabled:result',
1177
1327
  create: dsh_cliworker_now_cliworker_setCliEnabled_result$schema,
1178
1328
  },
1179
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":799,"column":9},
1329
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":808,"column":9},
1180
1330
  },
1181
1331
  {
1182
1332
  id: 'dsh-cliworker-now#cliworker/stop',
@@ -1211,7 +1361,7 @@ export const TYPERT_REMOTE = {
1211
1361
  typeSymbol: 'dsh-cliworker-now#cliworker/stop:result',
1212
1362
  create: dsh_cliworker_now_cliworker_stop_result$schema,
1213
1363
  },
1214
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1109,"column":9},
1364
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":1223,"column":9},
1215
1365
  },
1216
1366
  {
1217
1367
  id: 'dsh-cliworker-now#cliworker/watch',
@@ -1248,7 +1398,7 @@ export const TYPERT_REMOTE = {
1248
1398
  typeSymbol: 'dsh-cliworker-now#cliworker/watch:result',
1249
1399
  create: dsh_cliworker_now_cliworker_watch_result$schema,
1250
1400
  },
1251
- sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":653,"column":10},
1401
+ sourceLocation: {"file":"packages/cliworker/src/host/index.ts","line":662,"column":10},
1252
1402
  },
1253
1403
  ],
1254
1404
  }
@@ -0,0 +1,13 @@
1
+ import { type CliId } from '../shared/types.ts';
2
+ import { type API } from './workers.ts';
3
+ /** Path management remains usable for a disabled CLI and never saves model defaults. */
4
+ export declare function CliExecutableSettings({ api, sessionId, cli, blocked, accountLoading, accountRevision, onApplied, onBusyChange, }: {
5
+ api: API;
6
+ sessionId: string;
7
+ cli: CliId;
8
+ blocked: boolean;
9
+ accountLoading: boolean;
10
+ accountRevision: unknown;
11
+ onApplied: () => void;
12
+ onBusyChange: (busy: boolean) => void;
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,128 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useId, useRef, useState } from 'react';
3
+ import { Button, Input, StateDot, IconChevronDownOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives';
4
+ import { CLI_LABELS } from "../shared/types.js";
5
+ import { operationMessage } from "./operation-error.js";
6
+ import { value } from "./workers.js";
7
+ function readPath(raw, cli) {
8
+ const next = JSON.parse(raw);
9
+ if (next?.cli !== cli || typeof next.path !== 'string' || typeof next.available !== 'boolean' ||
10
+ !['auto', 'manual', 'configured', 'none'].includes(next.source) ||
11
+ (next.error !== undefined && typeof next.error !== 'string'))
12
+ throw new Error('收到不匹配的 CLI 路径信息,请刷新重试');
13
+ return next;
14
+ }
15
+ /** Path management remains usable for a disabled CLI and never saves model defaults. */
16
+ export function CliExecutableSettings({ api, sessionId, cli, blocked, accountLoading, accountRevision, onApplied, onBusyChange, }) {
17
+ const [expanded, setExpanded] = useState(false);
18
+ const [hasExpanded, setHasExpanded] = useState(false);
19
+ const [draft, setDraft] = useState('');
20
+ const [loading, setLoading] = useState(false);
21
+ const [saving, setSaving] = useState(false);
22
+ const [error, setError] = useState('');
23
+ const [feedback, setFeedback] = useState('');
24
+ const contentId = useId();
25
+ const inputId = useId();
26
+ const hintId = useId();
27
+ const draftRef = useRef(draft);
28
+ const baseline = useRef('');
29
+ const revision = useRef(0);
30
+ const request = useRef();
31
+ const callbacks = useRef({ onApplied, onBusyChange });
32
+ callbacks.current = { onApplied, onBusyChange };
33
+ const service = api.cliworker;
34
+ useEffect(() => () => {
35
+ request.current?.controller.abort();
36
+ request.current = undefined;
37
+ }, []);
38
+ useEffect(() => {
39
+ if (request.current?.kind === 'write')
40
+ return;
41
+ request.current?.controller.abort();
42
+ request.current = undefined;
43
+ setLoading(false);
44
+ if (!expanded || blocked || accountLoading)
45
+ return;
46
+ const controller = new AbortController();
47
+ const editRevision = revision.current;
48
+ const dirty = draftRef.current.trim() !== baseline.current;
49
+ request.current = { controller, kind: 'read' };
50
+ setLoading(true);
51
+ void (async () => {
52
+ try {
53
+ const next = readPath(value(await service.cliExecutablePath(sessionId, cli, controller.signal)), cli);
54
+ if (controller.signal.aborted || revision.current !== editRevision)
55
+ return;
56
+ baseline.current = next.path;
57
+ if (!dirty) {
58
+ draftRef.current = next.path;
59
+ setDraft(next.path);
60
+ setError(next.error || '');
61
+ }
62
+ }
63
+ catch (error) {
64
+ if (!controller.signal.aborted && revision.current === editRevision)
65
+ setError(operationMessage(error));
66
+ }
67
+ finally {
68
+ if (request.current?.controller === controller) {
69
+ request.current = undefined;
70
+ setLoading(false);
71
+ }
72
+ }
73
+ })();
74
+ }, [service, sessionId, cli, expanded, blocked, accountLoading, accountRevision]);
75
+ async function refresh(action) {
76
+ if (blocked || request.current?.kind === 'write')
77
+ return;
78
+ request.current?.controller.abort();
79
+ const controller = new AbortController();
80
+ const submitted = draftRef.current.trim();
81
+ request.current = { controller, kind: 'write' };
82
+ setLoading(false);
83
+ setSaving(true);
84
+ setError('');
85
+ setFeedback('');
86
+ callbacks.current.onBusyChange(true);
87
+ try {
88
+ const next = readPath(value(await service.refreshCliExecutablePath(sessionId, cli, submitted, action, controller.signal)), cli);
89
+ if (controller.signal.aborted)
90
+ return;
91
+ baseline.current = next.path;
92
+ if (action === 'auto' || next.available) {
93
+ draftRef.current = next.path;
94
+ setDraft(next.path);
95
+ }
96
+ setError(next.error || (!next.available ? '未找到可用 CLI,请检查路径后重试' : ''));
97
+ setFeedback(next.available ? (action === 'auto' ? '已恢复自动识别' : 'CLI 路径已刷新') : '');
98
+ // A saved but unavailable manual path must also invalidate the previous
99
+ // account and models; the Host retains that explicit choice.
100
+ callbacks.current.onApplied();
101
+ }
102
+ catch (error) {
103
+ if (!controller.signal.aborted)
104
+ setError(operationMessage(error));
105
+ }
106
+ finally {
107
+ if (request.current?.controller === controller) {
108
+ request.current = undefined;
109
+ setSaving(false);
110
+ callbacks.current.onBusyChange(false);
111
+ }
112
+ }
113
+ }
114
+ return (_jsxs("section", { className: "cwn-settings-section", "aria-label": "\u9AD8\u7EA7\u8BBE\u7F6E", children: [_jsxs("div", { className: "cwn-settings-section-head", children: [_jsx("h3", { className: "cwn-settings-advanced-heading", children: "\u9AD8\u7EA7\u8BBE\u7F6E" }), _jsx(Button, { type: "button", variant: "ghost", size: "md", className: "cwn-settings-advanced-toggle", "aria-label": "\u9AD8\u7EA7\u8BBE\u7F6E", "aria-expanded": expanded, "aria-controls": contentId, onClick: () => {
115
+ setHasExpanded(true);
116
+ setExpanded((old) => !old);
117
+ }, children: _jsx(IconChevronDownOutlineRegular, { size: 14 }) })] }), _jsx("div", { id: contentId, className: "cwn-settings-advanced-body", "data-expanded": expanded, "aria-hidden": !expanded, ...(!expanded ? { inert: '' } : {}), children: _jsx("div", { className: "cwn-settings-advanced-body-inner", children: hasExpanded && (_jsxs("div", { className: "cwn-cli-path-settings", children: [_jsxs("label", { className: "cwn-setting-row-text", htmlFor: inputId, children: [_jsx("span", { children: "CLI \u8DEF\u5F84\u7BA1\u7406" }), _jsx("span", { className: "cwn-setting-description", id: hintId, children: "\u81EA\u52A8\u8BC6\u522B\u5B89\u88C5\u4F4D\u7F6E\uFF0C\u4E5F\u53EF\u8F93\u5165 CLI \u53EF\u6267\u884C\u6587\u4EF6\u7684\u5B8C\u6574\u8DEF\u5F84\u3002" })] }), _jsxs("form", { onSubmit: (event) => {
118
+ event.preventDefault();
119
+ void refresh(draftRef.current.trim() === baseline.current ? 'refresh' : 'manual');
120
+ }, children: [_jsx(Input, { id: inputId, className: "cwn-control-input cwn-cli-path-input", "aria-label": `${CLI_LABELS[cli]} CLI 路径`, "aria-describedby": hintId, value: draft, disabled: blocked || saving, spellCheck: false, autoComplete: "off", placeholder: "\u8F93\u5165 CLI \u53EF\u6267\u884C\u6587\u4EF6\u7684\u5B8C\u6574\u8DEF\u5F84", onChange: (event) => {
121
+ revision.current++;
122
+ draftRef.current = event.target.value;
123
+ setDraft(event.target.value);
124
+ setError('');
125
+ setFeedback('');
126
+ } }), _jsxs("div", { className: "cwn-cli-path-actions", children: [_jsx(Button, { type: "button", variant: "ghost", size: "md", disabled: blocked || saving, onClick: () => void refresh('auto'), children: "\u6062\u590D\u81EA\u52A8\u8BC6\u522B" }), _jsxs(Button, { type: "submit", variant: "outline", size: "md", "aria-label": "\u5237\u65B0 CLI \u8DEF\u5F84", disabled: blocked || saving, children: [(loading || saving) && _jsx(StateDot, { state: "ongoing", size: 14 }), "\u5237\u65B0"] })] }), _jsx("p", { className: "cwn-cli-path-feedback", role: "status", children: blocked ? '请先结束当前账号操作或设置保存' : error || feedback || (loading ? '正在检查 CLI 路径…' : '') })] })] })) }) })] }));
127
+ }
128
+ //# sourceMappingURL=cli-executable-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-executable-settings.js","sourceRoot":"","sources":["../../../src/client/cli-executable-settings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAA;AAC9G,OAAO,EAAE,UAAU,EAAc,MAAM,oBAAoB,CAAA;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAA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AC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,EAAC,QAAQ,EAAE,OAAO,IAAI,MAAM,EACzE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,qDAAiB,EACtD,MAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,gBAAY,+BAAW,EACtE,QAAQ,EAAE,OAAO,IAAI,MAAM,aAC1B,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,KAAC,QAAQ,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAE,EAAE,GAAI,oBAEvD,IACL,EACN,YAAG,SAAS,EAAC,uBAAuB,EAAC,IAAI,EAAC,QAAQ,YAC/C,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,QAAQ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,GACjF,IACC,IACH,CACP,GACG,GACF,IACE,CACX,CAAA;AACH,CAAC"}
@@ -1 +1 @@
1
- export declare const workerManagementStyles = "\n.cwn-worker{display:block;padding:12px;min-height:62px}\n.cwn .cwn-worker-menu-anchor{display:block;width:100%}\n.cwn-worker-layout{display:grid;grid-template-columns:minmax(0,1fr) 14px;column-gap:10px;align-items:center;min-width:0}\n.cwn-worker-open{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit}\n.cwn-worker-open{grid-column:1;grid-row:1}.cwn-worker-open>.cwn-worker-line{flex:1;min-width:0}\n.cwn-worker-layout>.cwn-worker-meta{grid-column:1;grid-row:2}\n.cwn-worker-chevron{grid-column:2;grid-row:1/span 2;align-self:center;display:grid;place-items:center;color:var(--cwn-muted);pointer-events:none}.cwn-worker-chevron>svg{display:block;width:14px;height:14px}\n.cwn-worker-menu{z-index:1100}\n.cwn-archived-list{display:grid;gap:8px}.cwn-archived-row{display:flex;gap:8px;align-items:center;padding:12px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover)}.cwn-archived-row>div{min-width:0;flex:1}.cwn-archived-row strong,.cwn-archived-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cwn-archived-row small{color:var(--cwn-muted);margin-top:3px}\n.cwn-filter-row{display:flex;align-items:center;gap:6px;margin:10px 0 14px;min-width:0}.cwn-filter-row .cwn-filters{flex:1;min-width:0;margin:0}\n.cwn .cwn-archive-toggle{width:var(--cwn-control-height,36px);min-width:var(--cwn-control-height,36px);height:var(--cwn-control-height,36px);min-height:var(--cwn-control-height,36px);flex:none;padding:0;background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 9%,transparent);color:var(--dsw-alias-state-error-primary);border-radius:var(--dsw-radius-md)}.cwn-archive-toggle svg{width:16px;height:16px}.cwn .cwn-archive-toggle:hover:not([aria-pressed=true]){background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 16%,transparent)}.cwn .cwn-archive-toggle[aria-pressed=true]{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 85%,#000);color:#fff}.cwn .cwn-archive-toggle[aria-pressed=true]:hover{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 75%,#000);color:#fff}\n.cwn-resume-banner{box-sizing:border-box;display:flex;align-items:center;gap:8px;flex:none;min-width:0;min-height:38px;margin:0 16px 8px;padding:5px 8px 5px 12px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover);color:var(--cwn-muted);font-size:12px;line-height:20px}.cwn-resume-banner>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cwn .cwn-resume-banner button{flex:none;height:28px;min-height:28px;padding:0 8px;font-size:12px}\n.cwn-start-empty{height:100%;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 12px}.cwn-start-empty h3{margin:0 0 8px;font-size:16px;font-weight:500;line-height:24px;color:var(--dsw-alias-label-primary);text-wrap:balance}.cwn-start-empty p{max-width:360px;margin:0;font-size:13px;line-height:22px;color:var(--dsw-alias-label-tertiary);text-wrap:balance}\n";
1
+ export declare const workerManagementStyles = "\n.cwn-settings-advanced-heading{flex:1;min-width:0}.cwn-settings-section-head>.cwn-settings-advanced-toggle{flex:none;width:var(--cwn-settings-control-height);min-width:var(--cwn-settings-control-height);padding:0;color:inherit}.cwn-settings-advanced-toggle>svg{transition:transform 220ms cubic-bezier(.2,0,0,1)}.cwn-settings-advanced-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}\n.cwn-settings-advanced-body{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows 220ms cubic-bezier(.2,0,0,1),opacity 180ms ease,visibility 220ms}.cwn-settings-advanced-body[data-expanded=false]{grid-template-rows:0fr;opacity:0;visibility:hidden}.cwn-settings-advanced-body-inner{min-height:0;overflow:hidden}\n.cwn-cli-path-settings{display:flex;flex-direction:column;gap:var(--cwn-settings-field-gap);min-width:0}.cwn-cli-path-settings>.cwn-setting-row-text{flex:none;color:var(--dsw-alias-label-primary)}.cwn-cli-path-settings form{display:flex;flex-direction:column;gap:var(--cwn-settings-action-gap);min-width:0}.cwn-cli-path-settings .cwn-cli-path-input{width:100%;min-width:0}.cwn-cli-path-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--cwn-settings-action-gap)}\n@media(prefers-reduced-motion:reduce){.cwn-settings-advanced-body,.cwn-settings-advanced-toggle>svg{transition:none}}\n.cwn-worker{display:block;padding:12px;min-height:62px}\n.cwn .cwn-worker-menu-anchor{display:block;width:100%}\n.cwn-worker-layout{display:grid;grid-template-columns:minmax(0,1fr) 14px;column-gap:10px;align-items:center;min-width:0}\n.cwn-worker-open{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit}\n.cwn-worker-open{grid-column:1;grid-row:1}.cwn-worker-open>.cwn-worker-line{flex:1;min-width:0}\n.cwn-worker-layout>.cwn-worker-meta{grid-column:1;grid-row:2}\n.cwn-worker-chevron{grid-column:2;grid-row:1/span 2;align-self:center;display:grid;place-items:center;color:var(--cwn-muted);pointer-events:none}.cwn-worker-chevron>svg{display:block;width:14px;height:14px}\n.cwn-worker-menu{z-index:1100}\n.cwn-archived-list{display:grid;gap:8px}.cwn-archived-row{display:flex;gap:8px;align-items:center;padding:12px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover)}.cwn-archived-row>div{min-width:0;flex:1}.cwn-archived-row strong,.cwn-archived-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cwn-archived-row small{color:var(--cwn-muted);margin-top:3px}\n.cwn-filter-row{display:flex;align-items:center;gap:6px;margin:10px 0 14px;min-width:0}.cwn-filter-row .cwn-filters{flex:1;min-width:0;margin:0}\n.cwn .cwn-archive-toggle{width:var(--cwn-control-height,36px);min-width:var(--cwn-control-height,36px);height:var(--cwn-control-height,36px);min-height:var(--cwn-control-height,36px);flex:none;padding:0;background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 9%,transparent);color:var(--dsw-alias-state-error-primary);border-radius:var(--dsw-radius-md)}.cwn-archive-toggle svg{width:16px;height:16px}.cwn .cwn-archive-toggle:hover:not([aria-pressed=true]){background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 16%,transparent)}.cwn .cwn-archive-toggle[aria-pressed=true]{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 85%,#000);color:#fff}.cwn .cwn-archive-toggle[aria-pressed=true]:hover{background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 75%,#000);color:#fff}\n.cwn-resume-banner{box-sizing:border-box;display:flex;align-items:center;gap:8px;flex:none;min-width:0;min-height:38px;margin:0 16px 8px;padding:5px 8px 5px 12px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover);color:var(--cwn-muted);font-size:12px;line-height:20px}.cwn-resume-banner>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cwn .cwn-resume-banner button{flex:none;height:28px;min-height:28px;padding:0 8px;font-size:12px}\n.cwn-start-empty{height:100%;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 12px}.cwn-start-empty h3{margin:0 0 8px;font-size:16px;font-weight:500;line-height:24px;color:var(--dsw-alias-label-primary);text-wrap:balance}.cwn-start-empty p{max-width:360px;margin:0;font-size:13px;line-height:22px;color:var(--dsw-alias-label-tertiary);text-wrap:balance}\n";
@@ -1,5 +1,9 @@
1
1
  // Management additions retain the host Menu, Tooltip, theme and motion primitives.
2
2
  export const workerManagementStyles = `
3
+ .cwn-settings-advanced-heading{flex:1;min-width:0}.cwn-settings-section-head>.cwn-settings-advanced-toggle{flex:none;width:var(--cwn-settings-control-height);min-width:var(--cwn-settings-control-height);padding:0;color:inherit}.cwn-settings-advanced-toggle>svg{transition:transform 220ms cubic-bezier(.2,0,0,1)}.cwn-settings-advanced-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}
4
+ .cwn-settings-advanced-body{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows 220ms cubic-bezier(.2,0,0,1),opacity 180ms ease,visibility 220ms}.cwn-settings-advanced-body[data-expanded=false]{grid-template-rows:0fr;opacity:0;visibility:hidden}.cwn-settings-advanced-body-inner{min-height:0;overflow:hidden}
5
+ .cwn-cli-path-settings{display:flex;flex-direction:column;gap:var(--cwn-settings-field-gap);min-width:0}.cwn-cli-path-settings>.cwn-setting-row-text{flex:none;color:var(--dsw-alias-label-primary)}.cwn-cli-path-settings form{display:flex;flex-direction:column;gap:var(--cwn-settings-action-gap);min-width:0}.cwn-cli-path-settings .cwn-cli-path-input{width:100%;min-width:0}.cwn-cli-path-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:var(--cwn-settings-action-gap)}
6
+ @media(prefers-reduced-motion:reduce){.cwn-settings-advanced-body,.cwn-settings-advanced-toggle>svg{transition:none}}
3
7
  .cwn-worker{display:block;padding:12px;min-height:62px}
4
8
  .cwn .cwn-worker-menu-anchor{display:block;width:100%}
5
9
  .cwn-worker-layout{display:grid;grid-template-columns:minmax(0,1fr) 14px;column-gap:10px;align-items:center;min-width:0}
@@ -1 +1 @@
1
- {"version":3,"file":"management-styles.js","sourceRoot":"","sources":["../../../src/client/management-styles.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;CAcrC,CAAA"}
1
+ {"version":3,"file":"management-styles.js","sourceRoot":"","sources":["../../../src/client/management-styles.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;CAkBrC,CAAA"}