@bryanhu/codexly 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-XXAU2AQY.js → chunk-47AJCGF6.js} +5 -11
- package/dist/{chunk-OVQSIEIK.js → chunk-I74DBIGI.js} +1 -1
- package/dist/{chunk-G4BIMVEW.js → chunk-P3ZQ3QOJ.js} +2 -176
- package/dist/{chunk-TVRHN6RY.js → chunk-PJNYCTFC.js} +1 -1
- package/dist/cli.js +5 -5
- package/dist/client/index.js +2 -2
- package/dist/protocol/index.js +1 -1
- package/dist/providers/codex/index.js +2 -2
- package/dist/server/index.js +4 -4
- package/dist/web/.vite/manifest.json +69 -69
- package/dist/web/.vite/manifest.json.br +0 -0
- package/dist/web/.vite/manifest.json.gz +0 -0
- package/dist/web/assets/{button-group-JQ4SKm_M.js → button-group-BXsWRHx1.js} +1 -1
- package/dist/web/assets/button-group-BXsWRHx1.js.br +0 -0
- package/dist/web/assets/button-group-BXsWRHx1.js.gz +0 -0
- package/dist/web/assets/{context-menu-BY4fW29a.js → context-menu-D28EIDXC.js} +1 -1
- package/dist/web/assets/context-menu-D28EIDXC.js.br +0 -0
- package/dist/web/assets/context-menu-D28EIDXC.js.gz +0 -0
- package/dist/web/assets/{file-review-dialog-CQIeVer4.js → file-review-dialog-D5uAITDY.js} +1 -1
- package/dist/web/assets/file-review-dialog-D5uAITDY.js.br +0 -0
- package/dist/web/assets/file-review-dialog-D5uAITDY.js.gz +0 -0
- package/dist/web/assets/{git-history-panel-cnmuCR7N.js → git-history-panel-CJ0YniVw.js} +1 -1
- package/dist/web/assets/git-history-panel-CJ0YniVw.js.br +0 -0
- package/dist/web/assets/git-history-panel-CJ0YniVw.js.gz +0 -0
- package/dist/web/assets/{global-settings-dialog-BtJYh2_p.js → global-settings-dialog-DxUssxBm.js} +1 -1
- package/dist/web/assets/global-settings-dialog-DxUssxBm.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-DxUssxBm.js.gz +0 -0
- package/dist/web/assets/{index-CaTeB0Nm.js → index-DU2EMreA.js} +3 -3
- package/dist/web/assets/index-DU2EMreA.js.br +0 -0
- package/dist/web/assets/index-DU2EMreA.js.gz +0 -0
- package/dist/web/assets/initial-deps-Dr1AWuHB.js +1 -0
- package/dist/web/assets/initial-deps-Dr1AWuHB.js.br +0 -0
- package/dist/web/assets/initial-deps-Dr1AWuHB.js.gz +0 -0
- package/dist/web/assets/{installed-skills-pane-mwXKrGXA.js → installed-skills-pane-B2bwKvYB.js} +1 -1
- package/dist/web/assets/installed-skills-pane-B2bwKvYB.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-B2bwKvYB.js.gz +0 -0
- package/dist/web/assets/{lazy-message-response-Biq2ok2E.js → lazy-message-response-CD-7ydp6.js} +2 -2
- package/dist/web/assets/lazy-message-response-CD-7ydp6.js.br +0 -0
- package/dist/web/assets/lazy-message-response-CD-7ydp6.js.gz +0 -0
- package/dist/web/assets/{mcp-management-pane-BdtuiZSq.js → mcp-management-pane-Bu90n81z.js} +1 -1
- package/dist/web/assets/mcp-management-pane-Bu90n81z.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-Bu90n81z.js.gz +0 -0
- package/dist/web/assets/{message-response-CHtn6tyl.js → message-response-4TUNdrGf.js} +1 -1
- package/dist/web/assets/message-response-4TUNdrGf.js.br +0 -0
- package/dist/web/assets/message-response-4TUNdrGf.js.gz +0 -0
- package/dist/web/assets/{official-plugins-pane-BfNSSHYd.js → official-plugins-pane-BAplGO76.js} +1 -1
- package/dist/web/assets/official-plugins-pane-BAplGO76.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BAplGO76.js.gz +0 -0
- package/dist/web/assets/{project-file-popup-page-CfPvJlpw.js → project-file-popup-page-Dad56YW6.js} +1 -1
- package/dist/web/assets/project-file-popup-page-Dad56YW6.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-Dad56YW6.js.gz +0 -0
- package/dist/web/assets/{project-source-panel-Cw_heTH4.js → project-source-panel-DdnLauha.js} +1 -1
- package/dist/web/assets/project-source-panel-DdnLauha.js.br +0 -0
- package/dist/web/assets/project-source-panel-DdnLauha.js.gz +0 -0
- package/dist/web/assets/{prompt-input-C4sSOZy9.js → prompt-input-BLHOBOyz.js} +1 -1
- package/dist/web/assets/prompt-input-BLHOBOyz.js.br +0 -0
- package/dist/web/assets/prompt-input-BLHOBOyz.js.gz +0 -0
- package/dist/web/assets/{prompt-input-controls-CcVBHVXv.js → prompt-input-controls-Bu3i8AYj.js} +1 -1
- package/dist/web/assets/prompt-input-controls-Bu3i8AYj.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-Bu3i8AYj.js.gz +0 -0
- package/dist/web/assets/{scheduled-task-date-time-picker-DwKbR28n.js → scheduled-task-date-time-picker-DbSm8_GZ.js} +1 -1
- package/dist/web/assets/scheduled-task-date-time-picker-DbSm8_GZ.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DbSm8_GZ.js.gz +0 -0
- package/dist/web/assets/{scheduled-tasks-container-CiYF44lc.js → scheduled-tasks-container-mdJsjyAO.js} +2 -2
- package/dist/web/assets/scheduled-tasks-container-mdJsjyAO.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-mdJsjyAO.js.gz +0 -0
- package/dist/web/assets/{sheet-BNFRnQAh.js → sheet-fQvy64oz.js} +1 -1
- package/dist/web/assets/sheet-fQvy64oz.js.br +0 -0
- package/dist/web/assets/sheet-fQvy64oz.js.gz +0 -0
- package/dist/web/assets/{skills-market-container-CfaZk3xM.js → skills-market-container-D6fr7HYq.js} +2 -2
- package/dist/web/assets/skills-market-container-D6fr7HYq.js.br +0 -0
- package/dist/web/assets/skills-market-container-D6fr7HYq.js.gz +0 -0
- package/dist/web/assets/{third-party-marketplace-pane-okgMXBqM.js → third-party-marketplace-pane-DH6UbCFu.js} +1 -1
- package/dist/web/assets/third-party-marketplace-pane-DH6UbCFu.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-DH6UbCFu.js.gz +0 -0
- package/dist/web/assets/workbench-composer-CB04rkAG.js +10 -0
- package/dist/web/assets/workbench-composer-CB04rkAG.js.br +0 -0
- package/dist/web/assets/workbench-composer-CB04rkAG.js.gz +0 -0
- package/dist/web/assets/{workbench-inspector-changes-DXkowHaf.js → workbench-inspector-changes-DB14OhYw.js} +1 -1
- package/dist/web/assets/workbench-inspector-changes-DB14OhYw.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DB14OhYw.js.gz +0 -0
- package/dist/web/assets/{workbench-pet-canvas-BroOHYwq.js → workbench-pet-canvas-B8-i2EYj.js} +1 -1
- package/dist/web/assets/workbench-pet-canvas-B8-i2EYj.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-B8-i2EYj.js.gz +0 -0
- package/dist/web/assets/{workbench-shell-DnnhILPt.js → workbench-shell-BqIxxcmn.js} +3 -3
- package/dist/web/assets/workbench-shell-BqIxxcmn.js.br +0 -0
- package/dist/web/assets/workbench-shell-BqIxxcmn.js.gz +0 -0
- package/dist/web/index.html +2 -2
- package/dist/web/index.html.br +0 -0
- package/dist/web/index.html.gz +0 -0
- package/package.json +1 -1
- package/dist/web/assets/button-group-JQ4SKm_M.js.br +0 -0
- package/dist/web/assets/button-group-JQ4SKm_M.js.gz +0 -0
- package/dist/web/assets/context-menu-BY4fW29a.js.br +0 -0
- package/dist/web/assets/context-menu-BY4fW29a.js.gz +0 -0
- package/dist/web/assets/file-review-dialog-CQIeVer4.js.br +0 -0
- package/dist/web/assets/file-review-dialog-CQIeVer4.js.gz +0 -0
- package/dist/web/assets/git-history-panel-cnmuCR7N.js.br +0 -0
- package/dist/web/assets/git-history-panel-cnmuCR7N.js.gz +0 -0
- package/dist/web/assets/global-settings-dialog-BtJYh2_p.js.br +0 -0
- package/dist/web/assets/global-settings-dialog-BtJYh2_p.js.gz +0 -0
- package/dist/web/assets/index-CaTeB0Nm.js.br +0 -0
- package/dist/web/assets/index-CaTeB0Nm.js.gz +0 -0
- package/dist/web/assets/initial-deps-Ds-edw-P.js +0 -1
- package/dist/web/assets/initial-deps-Ds-edw-P.js.br +0 -0
- package/dist/web/assets/initial-deps-Ds-edw-P.js.gz +0 -0
- package/dist/web/assets/installed-skills-pane-mwXKrGXA.js.br +0 -0
- package/dist/web/assets/installed-skills-pane-mwXKrGXA.js.gz +0 -0
- package/dist/web/assets/lazy-message-response-Biq2ok2E.js.br +0 -0
- package/dist/web/assets/lazy-message-response-Biq2ok2E.js.gz +0 -0
- package/dist/web/assets/mcp-management-pane-BdtuiZSq.js.br +0 -0
- package/dist/web/assets/mcp-management-pane-BdtuiZSq.js.gz +0 -0
- package/dist/web/assets/message-response-CHtn6tyl.js.br +0 -0
- package/dist/web/assets/message-response-CHtn6tyl.js.gz +0 -0
- package/dist/web/assets/official-plugins-pane-BfNSSHYd.js.br +0 -0
- package/dist/web/assets/official-plugins-pane-BfNSSHYd.js.gz +0 -0
- package/dist/web/assets/project-file-popup-page-CfPvJlpw.js.br +0 -0
- package/dist/web/assets/project-file-popup-page-CfPvJlpw.js.gz +0 -0
- package/dist/web/assets/project-source-panel-Cw_heTH4.js.br +0 -0
- package/dist/web/assets/project-source-panel-Cw_heTH4.js.gz +0 -0
- package/dist/web/assets/prompt-input-C4sSOZy9.js.br +0 -0
- package/dist/web/assets/prompt-input-C4sSOZy9.js.gz +0 -0
- package/dist/web/assets/prompt-input-controls-CcVBHVXv.js.br +0 -0
- package/dist/web/assets/prompt-input-controls-CcVBHVXv.js.gz +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DwKbR28n.js.br +0 -0
- package/dist/web/assets/scheduled-task-date-time-picker-DwKbR28n.js.gz +0 -0
- package/dist/web/assets/scheduled-tasks-container-CiYF44lc.js.br +0 -0
- package/dist/web/assets/scheduled-tasks-container-CiYF44lc.js.gz +0 -0
- package/dist/web/assets/sheet-BNFRnQAh.js.br +0 -0
- package/dist/web/assets/sheet-BNFRnQAh.js.gz +0 -0
- package/dist/web/assets/skills-market-container-CfaZk3xM.js.br +0 -0
- package/dist/web/assets/skills-market-container-CfaZk3xM.js.gz +0 -0
- package/dist/web/assets/third-party-marketplace-pane-okgMXBqM.js.br +0 -0
- package/dist/web/assets/third-party-marketplace-pane-okgMXBqM.js.gz +0 -0
- package/dist/web/assets/workbench-composer-Bx73x_MF.js +0 -10
- package/dist/web/assets/workbench-composer-Bx73x_MF.js.br +0 -0
- package/dist/web/assets/workbench-composer-Bx73x_MF.js.gz +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXkowHaf.js.br +0 -0
- package/dist/web/assets/workbench-inspector-changes-DXkowHaf.js.gz +0 -0
- package/dist/web/assets/workbench-pet-canvas-BroOHYwq.js.br +0 -0
- package/dist/web/assets/workbench-pet-canvas-BroOHYwq.js.gz +0 -0
- package/dist/web/assets/workbench-shell-DnnhILPt.js.br +0 -0
- package/dist/web/assets/workbench-shell-DnnhILPt.js.gz +0 -0
|
@@ -359,8 +359,8 @@
|
|
|
359
359
|
"_chunk-BO2N2NFS-CiutqNGv.js"
|
|
360
360
|
]
|
|
361
361
|
},
|
|
362
|
-
"_button-group-
|
|
363
|
-
"file": "assets/button-group-
|
|
362
|
+
"_button-group-BXsWRHx1.js": {
|
|
363
|
+
"file": "assets/button-group-BXsWRHx1.js",
|
|
364
364
|
"name": "button-group",
|
|
365
365
|
"imports": [
|
|
366
366
|
"_react-runtime-DaCTDC27.js",
|
|
@@ -434,8 +434,8 @@
|
|
|
434
434
|
"../../node_modules/.pnpm/shiki@4.4.3/node_modules/shiki/dist/langs/yaml.mjs"
|
|
435
435
|
]
|
|
436
436
|
},
|
|
437
|
-
"_context-menu-
|
|
438
|
-
"file": "assets/context-menu-
|
|
437
|
+
"_context-menu-D28EIDXC.js": {
|
|
438
|
+
"file": "assets/context-menu-D28EIDXC.js",
|
|
439
439
|
"name": "context-menu",
|
|
440
440
|
"imports": [
|
|
441
441
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -513,8 +513,8 @@
|
|
|
513
513
|
"_initial-deps-DqJTHr9A.js"
|
|
514
514
|
]
|
|
515
515
|
},
|
|
516
|
-
"_file-review-dialog-
|
|
517
|
-
"file": "assets/file-review-dialog-
|
|
516
|
+
"_file-review-dialog-D5uAITDY.js": {
|
|
517
|
+
"file": "assets/file-review-dialog-D5uAITDY.js",
|
|
518
518
|
"name": "file-review-dialog",
|
|
519
519
|
"imports": [
|
|
520
520
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -622,8 +622,8 @@
|
|
|
622
622
|
"_initial-deps-BsEyuMB0.js"
|
|
623
623
|
]
|
|
624
624
|
},
|
|
625
|
-
"_initial-deps-
|
|
626
|
-
"file": "assets/initial-deps-
|
|
625
|
+
"_initial-deps-Dr1AWuHB.js": {
|
|
626
|
+
"file": "assets/initial-deps-Dr1AWuHB.js",
|
|
627
627
|
"name": "initial-deps",
|
|
628
628
|
"imports": [
|
|
629
629
|
"_initial-deps-CNK9MBOP.js",
|
|
@@ -646,8 +646,8 @@
|
|
|
646
646
|
"file": "assets/jsx-D3KKoC5L.js",
|
|
647
647
|
"name": "jsx"
|
|
648
648
|
},
|
|
649
|
-
"_lazy-message-response-
|
|
650
|
-
"file": "assets/lazy-message-response-
|
|
649
|
+
"_lazy-message-response-CD-7ydp6.js": {
|
|
650
|
+
"file": "assets/lazy-message-response-CD-7ydp6.js",
|
|
651
651
|
"name": "lazy-message-response",
|
|
652
652
|
"imports": [
|
|
653
653
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -673,18 +673,18 @@
|
|
|
673
673
|
"_c-SSSlmE39.js"
|
|
674
674
|
]
|
|
675
675
|
},
|
|
676
|
-
"_project-source-panel-
|
|
677
|
-
"file": "assets/project-source-panel-
|
|
676
|
+
"_project-source-panel-DdnLauha.js": {
|
|
677
|
+
"file": "assets/project-source-panel-DdnLauha.js",
|
|
678
678
|
"name": "project-source-panel",
|
|
679
679
|
"imports": [
|
|
680
680
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
681
681
|
"_initial-deps-Bx4af_YG.js",
|
|
682
682
|
"_react-runtime-DaCTDC27.js",
|
|
683
683
|
"_initial-deps-CTprc_pY.js",
|
|
684
|
-
"_initial-deps-
|
|
684
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
685
685
|
"_initial-deps-DqJTHr9A.js",
|
|
686
686
|
"_file-code-corner-CYF-BidF.js",
|
|
687
|
-
"_lazy-message-response-
|
|
687
|
+
"_lazy-message-response-CD-7ydp6.js",
|
|
688
688
|
"index.html",
|
|
689
689
|
"_code-languages-DVcuYjhn.js"
|
|
690
690
|
],
|
|
@@ -692,20 +692,20 @@
|
|
|
692
692
|
"src/shared/components/agent/code-highlighter.ts"
|
|
693
693
|
]
|
|
694
694
|
},
|
|
695
|
-
"_prompt-input-
|
|
696
|
-
"file": "assets/prompt-input-
|
|
695
|
+
"_prompt-input-BLHOBOyz.js": {
|
|
696
|
+
"file": "assets/prompt-input-BLHOBOyz.js",
|
|
697
697
|
"name": "prompt-input",
|
|
698
698
|
"imports": [
|
|
699
699
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
700
700
|
"_react-runtime-DaCTDC27.js",
|
|
701
701
|
"_initial-deps-BsEyuMB0.js",
|
|
702
702
|
"_initial-deps-DqJTHr9A.js",
|
|
703
|
-
"_prompt-input-controls-
|
|
703
|
+
"_prompt-input-controls-Bu3i8AYj.js",
|
|
704
704
|
"index.html"
|
|
705
705
|
]
|
|
706
706
|
},
|
|
707
|
-
"_prompt-input-controls-
|
|
708
|
-
"file": "assets/prompt-input-controls-
|
|
707
|
+
"_prompt-input-controls-Bu3i8AYj.js": {
|
|
708
|
+
"file": "assets/prompt-input-controls-Bu3i8AYj.js",
|
|
709
709
|
"name": "prompt-input-controls",
|
|
710
710
|
"imports": [
|
|
711
711
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
"file": "assets/scheduled-task-schedule-Cfuv_Kyf.js",
|
|
751
751
|
"name": "scheduled-task-schedule"
|
|
752
752
|
},
|
|
753
|
-
"_sheet-
|
|
754
|
-
"file": "assets/sheet-
|
|
753
|
+
"_sheet-fQvy64oz.js": {
|
|
754
|
+
"file": "assets/sheet-fQvy64oz.js",
|
|
755
755
|
"name": "sheet",
|
|
756
756
|
"imports": [
|
|
757
757
|
"_react-runtime-DaCTDC27.js",
|
|
@@ -799,33 +799,33 @@
|
|
|
799
799
|
"_initial-deps-DqJTHr9A.js"
|
|
800
800
|
]
|
|
801
801
|
},
|
|
802
|
-
"_workbench-composer-
|
|
803
|
-
"file": "assets/workbench-composer-
|
|
802
|
+
"_workbench-composer-CB04rkAG.js": {
|
|
803
|
+
"file": "assets/workbench-composer-CB04rkAG.js",
|
|
804
804
|
"name": "workbench-composer",
|
|
805
805
|
"imports": [
|
|
806
806
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
807
807
|
"_react-runtime-DaCTDC27.js",
|
|
808
808
|
"_initial-deps-CTprc_pY.js",
|
|
809
809
|
"_initial-deps-BsEyuMB0.js",
|
|
810
|
-
"_initial-deps-
|
|
810
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
811
811
|
"_initial-deps-DqJTHr9A.js",
|
|
812
812
|
"_file-pen-line-B05lVjWh.js",
|
|
813
|
-
"_prompt-input-controls-
|
|
814
|
-
"_prompt-input-
|
|
813
|
+
"_prompt-input-controls-Bu3i8AYj.js",
|
|
814
|
+
"_prompt-input-BLHOBOyz.js",
|
|
815
815
|
"_sparkles-BLY9rqMO.js",
|
|
816
816
|
"_initial-deps-CQxWMuPh.js",
|
|
817
817
|
"index.html",
|
|
818
818
|
"_prompt-reference-token-Cxx6C-IR.js"
|
|
819
819
|
]
|
|
820
820
|
},
|
|
821
|
-
"_workbench-pet-canvas-
|
|
822
|
-
"file": "assets/workbench-pet-canvas-
|
|
821
|
+
"_workbench-pet-canvas-B8-i2EYj.js": {
|
|
822
|
+
"file": "assets/workbench-pet-canvas-B8-i2EYj.js",
|
|
823
823
|
"name": "workbench-pet-canvas",
|
|
824
824
|
"imports": [
|
|
825
825
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
826
826
|
"_react-runtime-DaCTDC27.js",
|
|
827
827
|
"_initial-deps-CTprc_pY.js",
|
|
828
|
-
"_initial-deps-
|
|
828
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
829
829
|
"_initial-deps-DqJTHr9A.js",
|
|
830
830
|
"index.html"
|
|
831
831
|
]
|
|
@@ -842,7 +842,7 @@
|
|
|
842
842
|
"name": "yaml"
|
|
843
843
|
},
|
|
844
844
|
"index.html": {
|
|
845
|
-
"file": "assets/index-
|
|
845
|
+
"file": "assets/index-DU2EMreA.js",
|
|
846
846
|
"name": "index",
|
|
847
847
|
"src": "index.html",
|
|
848
848
|
"isEntry": true,
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
"_react-runtime-DaCTDC27.js",
|
|
853
853
|
"_initial-deps-CTprc_pY.js",
|
|
854
854
|
"_initial-deps-BsEyuMB0.js",
|
|
855
|
-
"_initial-deps-
|
|
855
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
856
856
|
"_initial-deps-DqJTHr9A.js",
|
|
857
857
|
"_initial-deps-CQxWMuPh.js"
|
|
858
858
|
],
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
]
|
|
887
887
|
},
|
|
888
888
|
"src/features/scheduled-tasks/components/scheduled-task-date-time-picker.tsx": {
|
|
889
|
-
"file": "assets/scheduled-task-date-time-picker-
|
|
889
|
+
"file": "assets/scheduled-task-date-time-picker-DbSm8_GZ.js",
|
|
890
890
|
"name": "scheduled-task-date-time-picker",
|
|
891
891
|
"src": "src/features/scheduled-tasks/components/scheduled-task-date-time-picker.tsx",
|
|
892
892
|
"isDynamicEntry": true,
|
|
@@ -904,7 +904,7 @@
|
|
|
904
904
|
]
|
|
905
905
|
},
|
|
906
906
|
"src/features/scheduled-tasks/scheduled-tasks-container.tsx": {
|
|
907
|
-
"file": "assets/scheduled-tasks-container-
|
|
907
|
+
"file": "assets/scheduled-tasks-container-mdJsjyAO.js",
|
|
908
908
|
"name": "scheduled-tasks-container",
|
|
909
909
|
"src": "src/features/scheduled-tasks/scheduled-tasks-container.tsx",
|
|
910
910
|
"isDynamicEntry": true,
|
|
@@ -913,9 +913,9 @@
|
|
|
913
913
|
"_initial-deps-Bx4af_YG.js",
|
|
914
914
|
"_react-runtime-DaCTDC27.js",
|
|
915
915
|
"_initial-deps-CTprc_pY.js",
|
|
916
|
-
"_initial-deps-
|
|
916
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
917
917
|
"_initial-deps-DqJTHr9A.js",
|
|
918
|
-
"_workbench-composer-
|
|
918
|
+
"_workbench-composer-CB04rkAG.js",
|
|
919
919
|
"_external-link-xbPJFZkP.js",
|
|
920
920
|
"_dist-Czw-hil0.js",
|
|
921
921
|
"index.html",
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
]
|
|
930
930
|
},
|
|
931
931
|
"src/features/settings/components/global-settings-dialog.tsx": {
|
|
932
|
-
"file": "assets/global-settings-dialog-
|
|
932
|
+
"file": "assets/global-settings-dialog-DxUssxBm.js",
|
|
933
933
|
"name": "global-settings-dialog",
|
|
934
934
|
"src": "src/features/settings/components/global-settings-dialog.tsx",
|
|
935
935
|
"isDynamicEntry": true,
|
|
@@ -937,14 +937,14 @@
|
|
|
937
937
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
938
938
|
"_react-runtime-DaCTDC27.js",
|
|
939
939
|
"_initial-deps-CTprc_pY.js",
|
|
940
|
-
"_initial-deps-
|
|
940
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
941
941
|
"_initial-deps-DqJTHr9A.js",
|
|
942
|
-
"_workbench-pet-canvas-
|
|
942
|
+
"_workbench-pet-canvas-B8-i2EYj.js",
|
|
943
943
|
"_download-iHkzQYEd.js",
|
|
944
|
-
"_prompt-input-controls-
|
|
944
|
+
"_prompt-input-controls-Bu3i8AYj.js",
|
|
945
945
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
946
|
-
"_prompt-input-
|
|
947
|
-
"_lazy-message-response-
|
|
946
|
+
"_prompt-input-BLHOBOyz.js",
|
|
947
|
+
"_lazy-message-response-CD-7ydp6.js",
|
|
948
948
|
"_info-whxTXvIJ.js",
|
|
949
949
|
"_sparkles-BLY9rqMO.js",
|
|
950
950
|
"_upload-D_8Uk8f-.js",
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
]
|
|
953
953
|
},
|
|
954
954
|
"src/features/skills-market/installed-skills-pane.tsx": {
|
|
955
|
-
"file": "assets/installed-skills-pane-
|
|
955
|
+
"file": "assets/installed-skills-pane-B2bwKvYB.js",
|
|
956
956
|
"name": "installed-skills-pane",
|
|
957
957
|
"src": "src/features/skills-market/installed-skills-pane.tsx",
|
|
958
958
|
"isDynamicEntry": true,
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
]
|
|
967
967
|
},
|
|
968
968
|
"src/features/skills-market/mcp-management-pane.tsx": {
|
|
969
|
-
"file": "assets/mcp-management-pane-
|
|
969
|
+
"file": "assets/mcp-management-pane-Bu90n81z.js",
|
|
970
970
|
"name": "mcp-management-pane",
|
|
971
971
|
"src": "src/features/skills-market/mcp-management-pane.tsx",
|
|
972
972
|
"isDynamicEntry": true,
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
]
|
|
980
980
|
},
|
|
981
981
|
"src/features/skills-market/official-plugins-pane.tsx": {
|
|
982
|
-
"file": "assets/official-plugins-pane-
|
|
982
|
+
"file": "assets/official-plugins-pane-BAplGO76.js",
|
|
983
983
|
"name": "official-plugins-pane",
|
|
984
984
|
"src": "src/features/skills-market/official-plugins-pane.tsx",
|
|
985
985
|
"isDynamicEntry": true,
|
|
@@ -991,14 +991,14 @@
|
|
|
991
991
|
"_external-link-xbPJFZkP.js",
|
|
992
992
|
"_info-whxTXvIJ.js",
|
|
993
993
|
"index.html",
|
|
994
|
-
"_sheet-
|
|
994
|
+
"_sheet-fQvy64oz.js"
|
|
995
995
|
],
|
|
996
996
|
"css": [
|
|
997
997
|
"assets/official-plugins-pane-BCxHJLaj.css"
|
|
998
998
|
]
|
|
999
999
|
},
|
|
1000
1000
|
"src/features/skills-market/skills-market-container.tsx": {
|
|
1001
|
-
"file": "assets/skills-market-container-
|
|
1001
|
+
"file": "assets/skills-market-container-D6fr7HYq.js",
|
|
1002
1002
|
"name": "skills-market-container",
|
|
1003
1003
|
"src": "src/features/skills-market/skills-market-container.tsx",
|
|
1004
1004
|
"isDynamicEntry": true,
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
]
|
|
1021
1021
|
},
|
|
1022
1022
|
"src/features/skills-market/third-party-marketplace-pane.tsx": {
|
|
1023
|
-
"file": "assets/third-party-marketplace-pane-
|
|
1023
|
+
"file": "assets/third-party-marketplace-pane-DH6UbCFu.js",
|
|
1024
1024
|
"name": "third-party-marketplace-pane",
|
|
1025
1025
|
"src": "src/features/skills-market/third-party-marketplace-pane.tsx",
|
|
1026
1026
|
"isDynamicEntry": true,
|
|
@@ -1033,11 +1033,11 @@
|
|
|
1033
1033
|
"_external-link-xbPJFZkP.js",
|
|
1034
1034
|
"_sparkles-BLY9rqMO.js",
|
|
1035
1035
|
"index.html",
|
|
1036
|
-
"_sheet-
|
|
1036
|
+
"_sheet-fQvy64oz.js"
|
|
1037
1037
|
]
|
|
1038
1038
|
},
|
|
1039
1039
|
"src/features/workbench/components/git-history-panel.tsx": {
|
|
1040
|
-
"file": "assets/git-history-panel-
|
|
1040
|
+
"file": "assets/git-history-panel-CJ0YniVw.js",
|
|
1041
1041
|
"name": "git-history-panel",
|
|
1042
1042
|
"src": "src/features/workbench/components/git-history-panel.tsx",
|
|
1043
1043
|
"isDynamicEntry": true,
|
|
@@ -1048,9 +1048,9 @@
|
|
|
1048
1048
|
"_initial-deps-CTprc_pY.js",
|
|
1049
1049
|
"_initial-deps-DqJTHr9A.js",
|
|
1050
1050
|
"_file-code-corner-CYF-BidF.js",
|
|
1051
|
-
"_file-review-dialog-
|
|
1051
|
+
"_file-review-dialog-D5uAITDY.js",
|
|
1052
1052
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
1053
|
-
"_context-menu-
|
|
1053
|
+
"_context-menu-D28EIDXC.js",
|
|
1054
1054
|
"index.html"
|
|
1055
1055
|
],
|
|
1056
1056
|
"dynamicImports": [
|
|
@@ -1058,19 +1058,19 @@
|
|
|
1058
1058
|
]
|
|
1059
1059
|
},
|
|
1060
1060
|
"src/features/workbench/components/project-file-popup-page.tsx": {
|
|
1061
|
-
"file": "assets/project-file-popup-page-
|
|
1061
|
+
"file": "assets/project-file-popup-page-Dad56YW6.js",
|
|
1062
1062
|
"name": "project-file-popup-page",
|
|
1063
1063
|
"src": "src/features/workbench/components/project-file-popup-page.tsx",
|
|
1064
1064
|
"isDynamicEntry": true,
|
|
1065
1065
|
"imports": [
|
|
1066
1066
|
"_rolldown-runtime-CNC7AqOf.js",
|
|
1067
1067
|
"_react-runtime-DaCTDC27.js",
|
|
1068
|
-
"_project-source-panel-
|
|
1068
|
+
"_project-source-panel-DdnLauha.js",
|
|
1069
1069
|
"index.html"
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
1072
|
"src/features/workbench/components/workbench-inspector-changes.tsx": {
|
|
1073
|
-
"file": "assets/workbench-inspector-changes-
|
|
1073
|
+
"file": "assets/workbench-inspector-changes-DB14OhYw.js",
|
|
1074
1074
|
"name": "workbench-inspector-changes",
|
|
1075
1075
|
"src": "src/features/workbench/components/workbench-inspector-changes.tsx",
|
|
1076
1076
|
"isDynamicEntry": true,
|
|
@@ -1080,16 +1080,16 @@
|
|
|
1080
1080
|
"_initial-deps-CTprc_pY.js",
|
|
1081
1081
|
"_initial-deps-DqJTHr9A.js",
|
|
1082
1082
|
"_file-pen-line-B05lVjWh.js",
|
|
1083
|
-
"_prompt-input-controls-
|
|
1083
|
+
"_prompt-input-controls-Bu3i8AYj.js",
|
|
1084
1084
|
"_file-navigation-view-preference-BRWa_l_a.js",
|
|
1085
1085
|
"_sparkles-BLY9rqMO.js",
|
|
1086
1086
|
"_upload-D_8Uk8f-.js",
|
|
1087
1087
|
"index.html",
|
|
1088
|
-
"_button-group-
|
|
1088
|
+
"_button-group-BXsWRHx1.js"
|
|
1089
1089
|
]
|
|
1090
1090
|
},
|
|
1091
1091
|
"src/features/workbench/components/workbench-shell.tsx": {
|
|
1092
|
-
"file": "assets/workbench-shell-
|
|
1092
|
+
"file": "assets/workbench-shell-BqIxxcmn.js",
|
|
1093
1093
|
"name": "workbench-shell",
|
|
1094
1094
|
"src": "src/features/workbench/components/workbench-shell.tsx",
|
|
1095
1095
|
"isDynamicEntry": true,
|
|
@@ -1099,26 +1099,26 @@
|
|
|
1099
1099
|
"_react-runtime-DaCTDC27.js",
|
|
1100
1100
|
"_initial-deps-CTprc_pY.js",
|
|
1101
1101
|
"_initial-deps-BsEyuMB0.js",
|
|
1102
|
-
"_initial-deps-
|
|
1102
|
+
"_initial-deps-Dr1AWuHB.js",
|
|
1103
1103
|
"_initial-deps-DqJTHr9A.js",
|
|
1104
|
-
"_workbench-composer-
|
|
1105
|
-
"_workbench-pet-canvas-
|
|
1106
|
-
"_project-source-panel-
|
|
1104
|
+
"_workbench-composer-CB04rkAG.js",
|
|
1105
|
+
"_workbench-pet-canvas-B8-i2EYj.js",
|
|
1106
|
+
"_project-source-panel-DdnLauha.js",
|
|
1107
1107
|
"_file-code-corner-CYF-BidF.js",
|
|
1108
1108
|
"_external-link-xbPJFZkP.js",
|
|
1109
1109
|
"_file-pen-line-B05lVjWh.js",
|
|
1110
|
-
"_prompt-input-controls-
|
|
1111
|
-
"_file-review-dialog-
|
|
1110
|
+
"_prompt-input-controls-Bu3i8AYj.js",
|
|
1111
|
+
"_file-review-dialog-D5uAITDY.js",
|
|
1112
1112
|
"_git-commit-horizontal-CV-KjCHw.js",
|
|
1113
|
-
"_prompt-input-
|
|
1114
|
-
"_lazy-message-response-
|
|
1113
|
+
"_prompt-input-BLHOBOyz.js",
|
|
1114
|
+
"_lazy-message-response-CD-7ydp6.js",
|
|
1115
1115
|
"_info-whxTXvIJ.js",
|
|
1116
1116
|
"_sparkles-BLY9rqMO.js",
|
|
1117
|
-
"_context-menu-
|
|
1117
|
+
"_context-menu-D28EIDXC.js",
|
|
1118
1118
|
"index.html",
|
|
1119
1119
|
"_code-languages-DVcuYjhn.js",
|
|
1120
1120
|
"_file-change-D7aZLgtG.js",
|
|
1121
|
-
"_button-group-
|
|
1121
|
+
"_button-group-BXsWRHx1.js"
|
|
1122
1122
|
],
|
|
1123
1123
|
"dynamicImports": [
|
|
1124
1124
|
"src/features/diff/patch-diff-viewer.tsx",
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
]
|
|
1142
1142
|
},
|
|
1143
1143
|
"src/shared/components/agent/message-response.tsx": {
|
|
1144
|
-
"file": "assets/message-response-
|
|
1144
|
+
"file": "assets/message-response-4TUNdrGf.js",
|
|
1145
1145
|
"name": "message-response",
|
|
1146
1146
|
"src": "src/shared/components/agent/message-response.tsx",
|
|
1147
1147
|
"isDynamicEntry": true,
|
|
@@ -1150,7 +1150,7 @@
|
|
|
1150
1150
|
"_react-runtime-DaCTDC27.js",
|
|
1151
1151
|
"_initial-deps-DqJTHr9A.js",
|
|
1152
1152
|
"_external-link-xbPJFZkP.js",
|
|
1153
|
-
"_context-menu-
|
|
1153
|
+
"_context-menu-D28EIDXC.js",
|
|
1154
1154
|
"index.html",
|
|
1155
1155
|
"_chunk-BO2N2NFS-CiutqNGv.js",
|
|
1156
1156
|
"_prompt-reference-token-Cxx6C-IR.js"
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./react-runtime-DaCTDC27.js";import{ht as t}from"./index-
|
|
1
|
+
import{t as e}from"./react-runtime-DaCTDC27.js";import{ht as t}from"./index-DU2EMreA.js";var n=e();function r({className:e,orientation:r=`horizontal`,role:i=`group`,...a}){return(0,n.jsx)(`div`,{className:t(`flex w-fit items-stretch [&>*]:relative [&>*]:focus-visible:z-10`,r===`vertical`?`flex-col`:`flex-row`,e),"data-orientation":r,"data-slot":`button-group`,role:i,...a})}export{r as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,t as n}from"./react-runtime-DaCTDC27.js";import{V as r}from"./initial-deps-DqJTHr9A.js";import{B as i,F as a,H as o,I as s,L as c,N as l,P as u,R as d,V as f,dt as p,ft as m,pt as h,ut as g,z as _}from"./initial-deps-CQxWMuPh.js";import{ht as v}from"./index-
|
|
1
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{i as t,t as n}from"./react-runtime-DaCTDC27.js";import{V as r}from"./initial-deps-DqJTHr9A.js";import{B as i,F as a,H as o,I as s,L as c,N as l,P as u,R as d,V as f,dt as p,ft as m,pt as h,ut as g,z as _}from"./initial-deps-CQxWMuPh.js";import{ht as v}from"./index-DU2EMreA.js";var y=e(t(),1),b=n(),x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0}),C=`ContextMenu`,[w,ee]=m(C,[o]),T=o(),[E,D]=w(C),O=S(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=y.useRef(!1),[l,u]=g({prop:i,defaultProp:!1,onChange:r,caller:C}),d=T(t);return(0,b.jsx)(E,{scope:t,open:l,onOpenChange:u,modal:o,hasInteractedRef:s,children:(0,b.jsx)(c,{...d,dir:a,open:l,onOpenChange:u,modal:o,children:n})})},`ContextMenu`),k=`ContextMenuTrigger`,A=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=D(k,n),o=T(n),[s,c]=y.useState({x:0,y:0}),u=y.useMemo(()=>({current:{getBoundingClientRect:S(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),d=y.useRef(0),f=y.useCallback(()=>window.clearTimeout(d.current),[]),m=S(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return y.useEffect(()=>f,[f]),y.useEffect(()=>void(r&&f()),[r,f]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l,{...o,virtualRef:u}),(0,b.jsx)(h.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:p(e.onContextMenu,e=>{f(),m(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:p(e.onPointerDown,B(e=>{f(),a.open&&a.onOpenChange(!1),d.current=window.setTimeout(()=>m(e),700)})),onPointerMove:r?e.onPointerMove:p(e.onPointerMove,B(f)),onPointerCancel:r?e.onPointerCancel:p(e.onPointerCancel,B(f)),onPointerUp:r?e.onPointerUp:p(e.onPointerUp,B(f))})]})},`ContextMenuTrigger`)),j=S(e=>{let{__scopeContextMenu:t,...n}=e,r=T(t);return(0,b.jsx)(s,{...r,...n})},`ContextMenuPortal`),M=`ContextMenuContent`,N=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=D(M,n),a=T(n),o=y.useRef(!1);return(0,b.jsx)(u,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),P=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(a,{...i,...r,ref:t})},`ContextMenuItem`)),F=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(d,{...i,...r,ref:t})},`ContextMenuSeparator`)),I=`ContextMenuSub`,L=S(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=T(t),[s,c]=g({prop:i,defaultProp:a??!1,onChange:r,caller:I});return(0,b.jsx)(_,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),R=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,i=T(n);return(0,b.jsx)(f,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),z=y.forwardRef(S(function(e,t){let{__scopeContextMenu:n,...r}=e,a=T(n);return(0,b.jsx)(i,{...a,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function B(e){return t=>t.pointerType===`mouse`?void 0:e(t)}S(B,`whenTouchOrPen`);var te=O,V=A,H=j,U=N,W=P,G=F,K=L,q=R,J=z;function Y(e){return(0,b.jsx)(te,{"data-slot":`context-menu`,...e})}function X(e){return(0,b.jsx)(V,{"data-slot":`context-menu-trigger`,...e})}function Z(e){return(0,b.jsx)(K,{"data-slot":`context-menu-sub`,...e})}function Q({children:e,...t}){return typeof document>`u`?(0,b.jsx)(b.Fragment,{children:e}):(0,b.jsx)(H,{"data-slot":`context-menu-portal`,...t,children:e})}function $({children:e,className:t,collisionPadding:n=8,...r}){return(0,b.jsx)(Q,{children:(0,b.jsx)(U,{className:v(`z-50 max-h-[var(--radix-context-menu-content-available-height)] min-w-32 overflow-x-hidden overflow-y-auto rounded-surface border border-separator-strong bg-raised p-1.5 text-foreground shadow-floating outline-none`,t),collisionPadding:n,"data-slot":`context-menu-content`,...r,children:e})})}function ne({className:e,...t}){return(0,b.jsx)(W,{className:v(`flex cursor-default select-none items-center gap-2.5 rounded-control px-2 py-1.5 text-body-small outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-control-hover [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),"data-slot":`context-menu-item`,...t})}function re({children:e,className:t,...n}){return(0,b.jsxs)(q,{className:v(`flex cursor-default select-none items-center gap-2.5 rounded-control px-2 py-1.5 text-body-small outline-none transition-colors data-[state=open]:bg-control-hover data-[highlighted]:bg-control-hover [&_svg]:pointer-events-none [&_svg]:shrink-0`,t),"data-slot":`context-menu-sub-trigger`,...n,children:[e,(0,b.jsx)(r,{"aria-hidden":`true`,className:`ml-auto size-3.5 text-muted-foreground`})]})}function ie({children:e,className:t,collisionPadding:n=8,sideOffset:r=0,...i}){return(0,b.jsx)(Q,{children:(0,b.jsx)(J,{className:v(`z-50 min-w-40 max-h-[calc(100dvh-1rem)] overflow-y-auto rounded-surface border border-separator-strong bg-raised p-1.5 text-foreground shadow-floating outline-none`,t),collisionPadding:n,"data-slot":`context-menu-sub-content`,sideOffset:r,...i,children:e})})}function ae({className:e,...t}){return(0,b.jsx)(G,{className:v(`-mx-1.5 my-1 h-px bg-separator`,e),"data-slot":`context-menu-separator`,...t})}export{Z as a,X as c,ae as i,$ as n,ie as o,ne as r,re as s,Y as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/patch-diff-viewer-CwDRm5oN.js","assets/rolldown-runtime-CNC7AqOf.js","assets/initial-deps-Bx4af_YG.js","assets/react-runtime-DaCTDC27.js","assets/engine-compile-DcaAFSGO.js","assets/lib-DE0ZEvGM.js","assets/code-languages-DVcuYjhn.js","assets/shiki-bundle-DdeD2OLK.js","assets/file-change-D7aZLgtG.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{B as i,Q as a,U as o,nt as s,s as c}from"./initial-deps-DqJTHr9A.js";import{t as l}from"./file-code-corner-CYF-BidF.js";import{n as u,r as d,t as f}from"./file-navigation-view-preference-BRWa_l_a.js";import{B as p,V as m,X as h,Y as g,at as _,et as v,mt as y,ot as b,rt as x,z as S}from"./index-CaTeB0Nm.js";import{n as C,t as w}from"./file-change-D7aZLgtG.js";var T=a(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),E=a(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),D=a(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),O=e(n(),1),k=r();function A(e,t){return e.name.localeCompare(t.name,`en`)}function j(e){let t=[e.name],n=e;for(;n.files.length===0&&n.directories.size===1;){let e=n.directories.values().next().value;if(e===void 0)break;t.push(e.name),n=e}let r=[...n.directories.values()].sort(A).map(j),i=n.files.toSorted(A);return{children:[...r,...i],name:t.join(`/`),path:n.path,type:`folder`}}function M(e){let t={directories:new Map,files:[],name:``,path:``};return e.forEach((e,n)=>{let r=e.path.split(/[\\/]/),i=r.at(-1)??e.path,a=t,o=``;for(let e of r.slice(0,-1)){o=o.length===0?e:`${o}/${e}`;let t=a.directories.get(e);t===void 0&&(t={directories:new Map,files:[],name:e,path:o},a.directories.set(e,t)),a=t}let{additions:s,removals:c}=w(e);a.files.push({additions:s,changeIndex:n,name:i,path:r.join(`/`),removals:c,type:`file`})}),[...[...t.directories.values()].sort(A).map(j),...t.files.toSorted(A)]}function N(e,t=new Set){for(let n of e)n.type===`folder`&&(t.add(n.path),N(n.children,t));return t}function P(e,t=[]){for(let n of e)n.type===`folder`?P(n.children,t):t.push(n);return t}function F({fileLabel:e,nodes:t,showStats:n}){return t.map(t=>t.type===`folder`?(0,k.jsx)(b,{name:t.name,path:t.path,children:(0,k.jsx)(F,{fileLabel:e,nodes:t.children,showStats:n})},t.path):(0,k.jsx)(_,{"aria-label":e(t),icon:(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),name:t.name,path:t.path,trailing:n?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`ml-auto flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,t.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,t.removals]})]}):void 0},`${t.path}:${String(t.changeIndex)}`))}function I({nodes:e,onSelect:t,selectedPath:n,showStats:r=!0,viewMode:i=`tree`}){let{t:a}=s(`workbench`),o=(0,O.useMemo)(()=>N(e),[e]),c=(0,O.useMemo)(()=>P(e),[e]),u=e=>r?a(`diff.fileStats`,{additions:e.additions,path:e.path,removals:e.removals}):e.path;return i===`list`?(0,k.jsx)(`div`,{"aria-label":a(`diff.changedFilesNavigation`),className:`font-mono text-label`,"data-slot":`review-file-list`,role:`listbox`,children:c.map(e=>(0,k.jsxs)(`button`,{"aria-label":u(e),"aria-selected":e.path===n,className:`flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-control px-1.5 text-left outline-none transition-colors hover:bg-control-hover focus-visible:shadow-focus aria-selected:bg-control`,onClick:()=>{t(e.path)},role:`option`,type:`button`,children:[(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,k.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.path,children:e.path}),r?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,e.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,e.removals]})]}):null]},`${e.path}:${String(e.changeIndex)}`))}):(0,k.jsx)(x,{"aria-label":a(`diff.changedFilesNavigation`),defaultExpanded:o,onSelect:t,selectedPath:n,children:(0,k.jsx)(F,{fileLabel:u,nodes:e,showStats:r})})}var L=(0,O.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),R=`(max-width: 760px)`;function z(){return typeof window>`u`||!window.matchMedia(R).matches}function B(e){return e===`ArrowUp`?`previous`:e===`ArrowDown`?`next`:null}function V(e,t,n){return n<=0?0:Math.min(Math.max(e+(t===`next`?1:-1),0),n-1)}function H({changes:e,currentIndex:t,navigationFooter:n,onClose:r,onCurrentIndexChange:a,renderContent:h,showStats:g=!0,titleId:_}){let{t:v}=s(`workbench`),[b,x]=f(`review`),w=(0,O.useRef)(null),[A,j]=(0,O.useState)(z),N=(0,O.useMemo)(()=>M(e),[e]),P=(0,O.useMemo)(()=>new Map(e.map((e,t)=>[e.path.replaceAll(`\\`,`/`),t])),[e]);if((0,O.useEffect)(()=>{j(z())},[e]),(0,O.useEffect)(()=>{let n=n=>{if(n.defaultPrevented)return;let r=B(n.key);r!==null&&(n.preventDefault(),a(V(t,r,e.length)))};return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n)}},[e.length,t,a]),(0,O.useLayoutEffect)(()=>{w.current!==null&&(w.current.scrollTop=0)},[t]),e.length===0)return null;let F=e[0];if(F===void 0)return null;let R=e[t]??F,H=R.path.replaceAll(`\\`,`/`),U=C(R.path),W=v(A?`diff.collapseChangedFilesNavigation`:`diff.expandChangedFilesNavigation`),G=n=>{a(V(t,n,e.length))};return(0,k.jsxs)(`section`,{className:`grid h-full min-h-0 w-full min-w-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,k.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,k.jsx)(l,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`h2`,{className:`truncate text-body-small font-semibold`,id:_,title:R.path,children:U}),(0,k.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:R.path,children:R.path})]}),(0,k.jsxs)(`span`,{className:`shrink-0 text-label text-muted-foreground`,children:[t+1,` / `,e.length]}),(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.previousFile`),disabled:t===0,onClick:()=>{G(`previous`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(i,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.previousFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.nextFile`),disabled:t===e.length-1,onClick:()=>{G(`next`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(o,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.nextFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-controls":`file-review-navigation`,"aria-expanded":A,"aria-label":W,onClick:()=>{j(e=>!e)},size:`icon-sm`,type:`button`,variant:`ghost`,children:A?(0,k.jsx)(E,{className:`size-3.5`,"aria-hidden":`true`}):(0,k.jsx)(D,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:W})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.closeReview`),onClick:r,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(c,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.closeReview`)})]})]})]}),(0,k.jsxs)(`div`,{className:`relative grid min-h-0 min-w-0 grid-cols-[minmax(0,1fr)] bg-content ${A?`workbench:grid-cols-[minmax(0,1fr)_minmax(12rem,26%)]`:``}`,children:[(0,k.jsx)(`section`,{"aria-label":v(`diff.reviewContent`),className:`min-h-0 min-w-0 overflow-auto`,ref:w,children:h===void 0?(0,k.jsx)(O.Suspense,{fallback:(0,k.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:v(`diff.loading`)}),children:(0,k.jsx)(L,{change:R})}):h(R)}),(0,k.jsxs)(`aside`,{"aria-label":v(`diff.changedFilesNavigation`),className:`absolute inset-y-0 right-0 z-10 grid min-h-0 w-[min(16rem,82%)] grid-rows-[auto_minmax(0,1fr)] border-l border-separator bg-panel shadow-panel workbench:static workbench:z-auto workbench:w-auto workbench:shadow-none`,hidden:!A,id:`file-review-navigation`,children:[(0,k.jsxs)(`div`,{className:`flex min-h-toolbar items-center gap-2 border-b border-separator px-3`,children:[(0,k.jsx)(T,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,k.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-label font-semibold`,children:v(`diff.changedFiles`)}),(0,k.jsx)(`span`,{className:`text-meta text-muted-foreground`,children:e.length}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(b===`tree`?`diff.showFileList`:`diff.showFileTree`),onClick:()=>{x(b===`tree`?`list`:`tree`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:b===`tree`?(0,k.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}):(0,k.jsx)(d,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,k.jsx)(p,{children:v(b===`tree`?`diff.showFileList`:`diff.showFileTree`)})]})]}),(0,k.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-2 py-2`,children:[(0,k.jsx)(I,{nodes:N,onSelect:e=>{let t=P.get(e);t!==void 0&&a(t)},selectedPath:H,showStats:g,viewMode:b}),n]})]})]})]})}function U({changes:e,onClose:t}){let[n,r]=(0,O.useState)(0);if((0,O.useEffect)(()=>{e!==null&&r(0)},[e]),e===null||e.length===0)return null;let i=`file-review-dialog-title`;return(0,k.jsx)(g,{onOpenChange:e=>{e||t()},open:!0,children:(0,k.jsxs)(h,{"aria-labelledby":i,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden bg-transparent p-0`,children:[(0,k.jsx)(v,{className:`sr-only`,children:C(e[0]?.path??``)}),(0,k.jsx)(H,{changes:e,currentIndex:n,onClose:t,onCurrentIndexChange:r,titleId:i})]})})}export{T as i,H as n,E as r,U as t};
|
|
2
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{B as i,Q as a,U as o,nt as s,s as c}from"./initial-deps-DqJTHr9A.js";import{t as l}from"./file-code-corner-CYF-BidF.js";import{n as u,r as d,t as f}from"./file-navigation-view-preference-BRWa_l_a.js";import{B as p,V as m,X as h,Y as g,at as _,et as v,mt as y,ot as b,rt as x,z as S}from"./index-DU2EMreA.js";import{n as C,t as w}from"./file-change-D7aZLgtG.js";var T=a(`files`,[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),E=a(`panel-right-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]),D=a(`panel-right-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m10 15-3-3 3-3`,key:`1pgupc`}]]),O=e(n(),1),k=r();function A(e,t){return e.name.localeCompare(t.name,`en`)}function j(e){let t=[e.name],n=e;for(;n.files.length===0&&n.directories.size===1;){let e=n.directories.values().next().value;if(e===void 0)break;t.push(e.name),n=e}let r=[...n.directories.values()].sort(A).map(j),i=n.files.toSorted(A);return{children:[...r,...i],name:t.join(`/`),path:n.path,type:`folder`}}function M(e){let t={directories:new Map,files:[],name:``,path:``};return e.forEach((e,n)=>{let r=e.path.split(/[\\/]/),i=r.at(-1)??e.path,a=t,o=``;for(let e of r.slice(0,-1)){o=o.length===0?e:`${o}/${e}`;let t=a.directories.get(e);t===void 0&&(t={directories:new Map,files:[],name:e,path:o},a.directories.set(e,t)),a=t}let{additions:s,removals:c}=w(e);a.files.push({additions:s,changeIndex:n,name:i,path:r.join(`/`),removals:c,type:`file`})}),[...[...t.directories.values()].sort(A).map(j),...t.files.toSorted(A)]}function N(e,t=new Set){for(let n of e)n.type===`folder`&&(t.add(n.path),N(n.children,t));return t}function P(e,t=[]){for(let n of e)n.type===`folder`?P(n.children,t):t.push(n);return t}function F({fileLabel:e,nodes:t,showStats:n}){return t.map(t=>t.type===`folder`?(0,k.jsx)(b,{name:t.name,path:t.path,children:(0,k.jsx)(F,{fileLabel:e,nodes:t.children,showStats:n})},t.path):(0,k.jsx)(_,{"aria-label":e(t),icon:(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),name:t.name,path:t.path,trailing:n?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`ml-auto flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,t.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,t.removals]})]}):void 0},`${t.path}:${String(t.changeIndex)}`))}function I({nodes:e,onSelect:t,selectedPath:n,showStats:r=!0,viewMode:i=`tree`}){let{t:a}=s(`workbench`),o=(0,O.useMemo)(()=>N(e),[e]),c=(0,O.useMemo)(()=>P(e),[e]),u=e=>r?a(`diff.fileStats`,{additions:e.additions,path:e.path,removals:e.removals}):e.path;return i===`list`?(0,k.jsx)(`div`,{"aria-label":a(`diff.changedFilesNavigation`),className:`font-mono text-label`,"data-slot":`review-file-list`,role:`listbox`,children:c.map(e=>(0,k.jsxs)(`button`,{"aria-label":u(e),"aria-selected":e.path===n,className:`flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-control px-1.5 text-left outline-none transition-colors hover:bg-control-hover focus-visible:shadow-focus aria-selected:bg-control`,onClick:()=>{t(e.path)},role:`option`,type:`button`,children:[(0,k.jsx)(l,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,k.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:e.path,children:e.path}),r?(0,k.jsxs)(`span`,{"aria-hidden":`true`,className:`flex shrink-0 items-center gap-1 text-meta`,children:[(0,k.jsxs)(`span`,{className:`font-medium text-diff-added`,children:[`+`,e.additions]}),(0,k.jsxs)(`span`,{className:`font-medium text-diff-removed`,children:[`-`,e.removals]})]}):null]},`${e.path}:${String(e.changeIndex)}`))}):(0,k.jsx)(x,{"aria-label":a(`diff.changedFilesNavigation`),defaultExpanded:o,onSelect:t,selectedPath:n,children:(0,k.jsx)(F,{fileLabel:u,nodes:e,showStats:r})})}var L=(0,O.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),R=`(max-width: 760px)`;function z(){return typeof window>`u`||!window.matchMedia(R).matches}function B(e){return e===`ArrowUp`?`previous`:e===`ArrowDown`?`next`:null}function V(e,t,n){return n<=0?0:Math.min(Math.max(e+(t===`next`?1:-1),0),n-1)}function H({changes:e,currentIndex:t,navigationFooter:n,onClose:r,onCurrentIndexChange:a,renderContent:h,showStats:g=!0,titleId:_}){let{t:v}=s(`workbench`),[b,x]=f(`review`),w=(0,O.useRef)(null),[A,j]=(0,O.useState)(z),N=(0,O.useMemo)(()=>M(e),[e]),P=(0,O.useMemo)(()=>new Map(e.map((e,t)=>[e.path.replaceAll(`\\`,`/`),t])),[e]);if((0,O.useEffect)(()=>{j(z())},[e]),(0,O.useEffect)(()=>{let n=n=>{if(n.defaultPrevented)return;let r=B(n.key);r!==null&&(n.preventDefault(),a(V(t,r,e.length)))};return window.addEventListener(`keydown`,n),()=>{window.removeEventListener(`keydown`,n)}},[e.length,t,a]),(0,O.useLayoutEffect)(()=>{w.current!==null&&(w.current.scrollTop=0)},[t]),e.length===0)return null;let F=e[0];if(F===void 0)return null;let R=e[t]??F,H=R.path.replaceAll(`\\`,`/`),U=C(R.path),W=v(A?`diff.collapseChangedFilesNavigation`:`diff.expandChangedFilesNavigation`),G=n=>{a(V(t,n,e.length))};return(0,k.jsxs)(`section`,{className:`grid h-full min-h-0 w-full min-w-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,k.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,k.jsx)(l,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`h2`,{className:`truncate text-body-small font-semibold`,id:_,title:R.path,children:U}),(0,k.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:R.path,children:R.path})]}),(0,k.jsxs)(`span`,{className:`shrink-0 text-label text-muted-foreground`,children:[t+1,` / `,e.length]}),(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.previousFile`),disabled:t===0,onClick:()=>{G(`previous`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(i,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.previousFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.nextFile`),disabled:t===e.length-1,onClick:()=>{G(`next`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(o,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.nextFile`)})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-controls":`file-review-navigation`,"aria-expanded":A,"aria-label":W,onClick:()=>{j(e=>!e)},size:`icon-sm`,type:`button`,variant:`ghost`,children:A?(0,k.jsx)(E,{className:`size-3.5`,"aria-hidden":`true`}):(0,k.jsx)(D,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:W})]}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(`diff.closeReview`),onClick:r,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,k.jsx)(c,{className:`size-3.5`,"aria-hidden":`true`})})}),(0,k.jsx)(p,{children:v(`diff.closeReview`)})]})]})]}),(0,k.jsxs)(`div`,{className:`relative grid min-h-0 min-w-0 grid-cols-[minmax(0,1fr)] bg-content ${A?`workbench:grid-cols-[minmax(0,1fr)_minmax(12rem,26%)]`:``}`,children:[(0,k.jsx)(`section`,{"aria-label":v(`diff.reviewContent`),className:`min-h-0 min-w-0 overflow-auto`,ref:w,children:h===void 0?(0,k.jsx)(O.Suspense,{fallback:(0,k.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:v(`diff.loading`)}),children:(0,k.jsx)(L,{change:R})}):h(R)}),(0,k.jsxs)(`aside`,{"aria-label":v(`diff.changedFilesNavigation`),className:`absolute inset-y-0 right-0 z-10 grid min-h-0 w-[min(16rem,82%)] grid-rows-[auto_minmax(0,1fr)] border-l border-separator bg-panel shadow-panel workbench:static workbench:z-auto workbench:w-auto workbench:shadow-none`,hidden:!A,id:`file-review-navigation`,children:[(0,k.jsxs)(`div`,{className:`flex min-h-toolbar items-center gap-2 border-b border-separator px-3`,children:[(0,k.jsx)(T,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,k.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-label font-semibold`,children:v(`diff.changedFiles`)}),(0,k.jsx)(`span`,{className:`text-meta text-muted-foreground`,children:e.length}),(0,k.jsxs)(S,{children:[(0,k.jsx)(m,{asChild:!0,children:(0,k.jsx)(y,{"aria-label":v(b===`tree`?`diff.showFileList`:`diff.showFileTree`),onClick:()=>{x(b===`tree`?`list`:`tree`)},size:`icon-sm`,type:`button`,variant:`ghost`,children:b===`tree`?(0,k.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}):(0,k.jsx)(d,{"aria-hidden":`true`,className:`size-3.5`})})}),(0,k.jsx)(p,{children:v(b===`tree`?`diff.showFileList`:`diff.showFileTree`)})]})]}),(0,k.jsxs)(`div`,{className:`min-h-0 overflow-y-auto px-2 py-2`,children:[(0,k.jsx)(I,{nodes:N,onSelect:e=>{let t=P.get(e);t!==void 0&&a(t)},selectedPath:H,showStats:g,viewMode:b}),n]})]})]})]})}function U({changes:e,onClose:t}){let[n,r]=(0,O.useState)(0);if((0,O.useEffect)(()=>{e!==null&&r(0)},[e]),e===null||e.length===0)return null;let i=`file-review-dialog-title`;return(0,k.jsx)(g,{onOpenChange:e=>{e||t()},open:!0,children:(0,k.jsxs)(h,{"aria-labelledby":i,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden bg-transparent p-0`,children:[(0,k.jsx)(v,{className:`sr-only`,children:C(e[0]?.path??``)}),(0,k.jsx)(H,{changes:e,currentIndex:n,onClose:t,onCurrentIndexChange:r,titleId:i})]})})}export{T as i,H as n,E as r,U as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/patch-diff-viewer-CwDRm5oN.js","assets/rolldown-runtime-CNC7AqOf.js","assets/initial-deps-Bx4af_YG.js","assets/react-runtime-DaCTDC27.js","assets/engine-compile-DcaAFSGO.js","assets/lib-DE0ZEvGM.js","assets/code-languages-DVcuYjhn.js","assets/shiki-bundle-DdeD2OLK.js","assets/file-change-D7aZLgtG.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{o as i,t as a}from"./initial-deps-CTprc_pY.js";import{E as o,at as s,nt as c,s as l}from"./initial-deps-DqJTHr9A.js";import{n as u}from"./file-code-corner-CYF-BidF.js";import{n as d}from"./file-review-dialog-CQIeVer4.js";import{t as f}from"./git-commit-horizontal-CV-KjCHw.js";import{c as p,n as m,r as h,t as g}from"./context-menu-BY4fW29a.js";import{Gt as _,Jt as v,Kt as y,X as b,Y as x,dn as S,et as C,ht as w,mt as T}from"./index-CaTeB0Nm.js";var E=e(n(),1),D=r(),O=(0,E.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8])));function k({change:e,client:t,projectId:n,repository:r,rootPath:a,sha:o}){let c=i(_(n,a,r,o,e.path,!0,t));if(c.isPending)return(0,D.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:s.t(`gitHistory.diffLoading`,{ns:`conversation`})});if(c.error!==null)return(0,D.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-3 px-5 text-center`,children:[(0,D.jsx)(`p`,{className:`text-body-small text-danger`,children:s.t(`gitHistory.diffLoadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void c.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]});let l={...e,diff:c.data.diff};return(0,D.jsxs)(`div`,{className:`min-h-full min-w-max`,children:[c.data.truncated?(0,D.jsx)(`p`,{className:`sticky left-0 top-0 z-10 border-b border-separator bg-warning px-3 py-2 text-caption text-warning-foreground`,role:`status`,children:s.t(`gitHistory.diffTruncated`,{ns:`conversation`})}):null,(0,D.jsx)(E.Suspense,{fallback:(0,D.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:s.t(`gitHistory.diffLoading`,{ns:`conversation`})}),children:(0,D.jsx)(O,{change:l})})]})}function A({client:e,commit:t,onClose:n,projectId:r,repository:i,rootPath:u}){c(`conversation`);let[f,p]=(0,E.useState)(0),m=a(y(r,u,i,t.sha,!0,e)),h=(0,E.useMemo)(()=>m.data?.pages.flatMap(e=>e.files)??[],[m.data?.pages]),g=(0,E.useMemo)(()=>h.map(e=>({...e,diff:``})),[h]);return(0,E.useEffect)(()=>{p(0)},[t.sha]),(0,D.jsx)(x,{onOpenChange:e=>{e||n()},open:!0,children:(0,D.jsxs)(b,{"aria-labelledby":`git-commit-review-dialog-title`,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden p-0`,children:[(0,D.jsx)(C,{className:`sr-only`,id:`git-commit-review-dialog-title`,children:t.title}),m.isPending||m.error!==null||g.length===0?(0,D.jsxs)(`section`,{className:`grid h-full min-h-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,D.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,D.jsx)(`h2`,{className:`min-w-0 flex-1 truncate text-body-small font-semibold`,children:t.title}),(0,D.jsx)(T,{"aria-label":s.t(`diff.closeReview`,{ns:`workbench`}),onClick:n,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,D.jsx)(l,{"aria-hidden":`true`,className:`size-3.5`})})]}),(0,D.jsx)(`div`,{className:`grid min-h-0 place-items-center px-5 text-center text-body-small`,children:m.isPending?(0,D.jsx)(`p`,{className:`text-muted-foreground`,role:`status`,children:s.t(`gitHistory.filesLoading`,{ns:`conversation`})}):m.error===null?(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:s.t(`gitHistory.filesEmpty`,{ns:`conversation`})}):(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,D.jsx)(`p`,{className:`text-danger`,children:s.t(`gitHistory.filesLoadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void m.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]})})]}):(0,D.jsx)(d,{changes:g,currentIndex:f,navigationFooter:m.hasNextPage?(0,D.jsx)(`div`,{className:`flex min-h-12 items-center justify-center px-2 py-2`,children:(0,D.jsxs)(T,{className:`max-workbench:h-11`,disabled:m.isFetchingNextPage,onClick:()=>void m.fetchNextPage(),type:`button`,variant:`outline`,children:[m.isFetchingNextPage?(0,D.jsx)(o,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):null,m.isFetchingNextPage?s.t(`gitHistory.loadingMoreFiles`,{ns:`conversation`}):s.t(`gitHistory.loadMoreFiles`,{ns:`conversation`})]})}):null,onClose:n,onCurrentIndexChange:p,renderContent:n=>(0,D.jsx)(k,{change:n,client:e,projectId:r,rootPath:u,...i===void 0?{}:{repository:i},sha:t.sha}),showStats:!1,titleId:`git-commit-review-file-title`})]})})}function j({commit:e,compact:t,dateFormatter:n}){let r=n.format(new Date(e.authoredAt));return(0,D.jsxs)(`span`,{className:`min-w-0`,children:[(0,D.jsx)(`span`,{className:w(`block truncate font-medium text-foreground`,t?`text-label`:`text-body-small`),title:e.title,children:e.title}),(0,D.jsxs)(`span`,{className:w(`flex min-w-0 items-center gap-1.5 text-muted-foreground`,t?`text-meta`:`mt-0.5 text-caption`),children:[(0,D.jsx)(`code`,{className:`shrink-0`,children:e.sha.slice(0,t?7:12)}),(0,D.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,D.jsx)(`span`,{className:`truncate`,title:e.authorEmail,children:e.authorName}),(0,D.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,D.jsx)(`time`,{className:w(t?`min-w-0 truncate`:`shrink-0`),dateTime:e.authoredAt,title:r,children:r})]})]})}function M(e,t){return{author:e.authorName,hash:e.sha,message:e.title}[t]}function N(e,t){navigator.clipboard.writeText(M(e,t)).catch(()=>void 0)}function P({commit:e}){c(`conversation`);let t=[[`message`,s.t(`gitHistory.copyMessage`,{ns:`conversation`})],[`author`,s.t(`gitHistory.copyAuthor`,{ns:`conversation`})],[`hash`,s.t(`gitHistory.copyHash`,{ns:`conversation`})]];return(0,D.jsx)(m,{"aria-label":s.t(`gitHistory.copyMenuLabel`,{ns:`conversation`}),children:t.map(([t,n])=>(0,D.jsxs)(h,{onSelect:()=>{N(e,t)},children:[(0,D.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}),n]},t))})}function F({commit:e,compact:t,dateFormatter:n,isLast:r,onSelectCommit:i}){return(0,D.jsxs)(g,{modal:!1,children:[(0,D.jsx)(p,{asChild:!0,children:(0,D.jsxs)(`li`,{className:w(`relative grid min-w-0 grid-cols-[auto_minmax(0,1fr)]`,t?`gap-x-1.5 px-3 py-1.5`:`gap-x-2.5 px-4 py-2.5`),children:[(0,D.jsxs)(`div`,{className:`relative flex w-4 justify-center`,"aria-hidden":`true`,children:[r?null:(0,D.jsx)(`span`,{className:`absolute bottom-[-0.625rem] top-3 w-px bg-separator-strong`}),(0,D.jsx)(f,{className:`relative mt-0.5 size-3.5 text-brand`})]}),i===void 0?(0,D.jsx)(`div`,{className:`min-w-0`,children:(0,D.jsx)(j,{commit:e,compact:t,dateFormatter:n})}):(0,D.jsx)(T,{className:`h-auto min-w-0 justify-start rounded-none p-0 text-left`,contentAlign:`start`,onClick:()=>{i(e)},type:`button`,variant:`ghost`,children:(0,D.jsx)(j,{commit:e,compact:t,dateFormatter:n})})]})}),(0,D.jsx)(P,{commit:e})]})}function I({active:e,className:t,compact:n=!1,dateFormatter:r,panelId:i,onSelectCommit:a,query:c}){let l=(0,E.useMemo)(()=>c.data?.pages.flatMap(e=>e.commits)??[],[c.data?.pages]);return(0,D.jsx)(`div`,{"aria-label":s.t(`gitHistory.commits`,{ns:`conversation`}),className:w(`h-full min-h-0 overflow-y-auto`,!e&&`hidden`,t),"data-slot":`git-history-content`,hidden:!e,id:i,role:`tabpanel`,children:c.isPending?(0,D.jsx)(`p`,{className:`px-5 py-12 text-center text-body-small text-muted-foreground`,children:s.t(`gitHistory.loading`,{ns:`conversation`})}):c.error===null?l.length===0?(0,D.jsx)(`p`,{className:`px-5 py-12 text-center text-body-small text-muted-foreground`,children:s.t(`gitHistory.empty`,{ns:`conversation`})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`ol`,{"aria-label":s.t(`gitHistory.commits`,{ns:`conversation`}),children:l.map((e,t)=>(0,D.jsx)(F,{commit:e,compact:n,dateFormatter:r,isLast:t===l.length-1,...a===void 0?{}:{onSelectCommit:a}},e.sha))}),(0,D.jsx)(`div`,{className:w(`flex items-center justify-center`,n?`min-h-8 px-3 py-1`:`min-h-12 px-4 py-3`),children:c.hasNextPage?(0,D.jsxs)(T,{className:n?`w-full`:`max-workbench:h-11`,disabled:c.isFetchingNextPage,onClick:()=>void c.fetchNextPage(),size:n?`sm`:`default`,type:`button`,variant:`outline`,children:[c.isFetchingNextPage?(0,D.jsx)(o,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):null,c.isFetchingNextPage?s.t(`gitHistory.loadingMore`,{ns:`conversation`}):s.t(`gitHistory.loadMore`,{ns:`conversation`})]}):(0,D.jsx)(`p`,{className:`text-caption text-muted-foreground`,role:`status`,children:s.t(`gitHistory.end`,{ns:`conversation`})})})]}):(0,D.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-3 px-5 text-center`,children:[(0,D.jsx)(`p`,{className:`text-body-small text-danger`,children:s.t(`gitHistory.loadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void c.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]})})}function L({active:e=!0,client:t,compact:n=!1,dateFormatter:r,enabled:i=!0,onBranchLoaded:o,onSelectCommit:l,panelId:u,projectId:d,repository:f,rootPath:p,showBranch:m=!1}){c(`conversation`);let h=a(v(d,p,f,i,t)),g=h.data?.pages[0]?.branch;(0,E.useEffect)(()=>{f!==void 0&&g!==void 0&&o?.(f,g)},[g,o,f]);let _=(0,D.jsx)(I,{active:e,compact:n,dateFormatter:r,panelId:u,...l===void 0?{}:{onSelectCommit:l},query:h});if(!m)return _;let y=g===void 0?null:g??`detached HEAD`;return(0,D.jsxs)(`div`,{className:w(`flex h-full min-h-0 flex-col`,!e&&`hidden`),hidden:!e,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-4 py-2`,children:(0,D.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:y??void 0,children:y===null?s.t(`gitHistory.branchLoading`,{ns:`conversation`}):s.t(`gitHistory.branch`,{branch:y,ns:`conversation`})})}),(0,D.jsx)(`div`,{className:`min-h-0 flex-1`,children:_})]})}function R({active:e,client:t,dateFormatter:n,onBranchLoaded:r,onSelectCommit:i,panelId:a,projectId:o,repository:s,rootPath:c}){return(0,D.jsx)(L,{active:e,client:t,dateFormatter:n,onBranchLoaded:r,onSelectCommit:e=>{i(e,s)},panelId:a,projectId:o,repository:s,rootPath:c})}function z(e){return`git-history-panel-${String(e)}`}function B({client:e=S,projectId:t,rootPath:n}){c(`conversation`);let[r,i]=(0,E.useState)(),[o,l]=(0,E.useState)([]),[u,d]=(0,E.useState)(()=>new Map),[f,p]=(0,E.useState)(),m=a(v(t,n,void 0,!0,e)),h=m.data?.pages[0],g=h?.repository??null,_=r??g,y=h?.repositories??[],b=Math.max(0,g===null?0:y.indexOf(g)),x=y.length===0?`git-history-panel`:z(b),C=r===void 0?h?.branch:u.get(r),O=C===void 0?null:C??`detached HEAD`,k=(0,E.useMemo)(()=>new Intl.DateTimeFormat(s.resolvedLanguage===`en`?`en`:`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),[]),j=e=>{if(e===g){i(void 0);return}l(t=>t.includes(e)?t:[...t,e]),i(e)},M=(0,E.useCallback)((e,t)=>{d(n=>n.has(e)&&n.get(e)===t?n:new Map(n).set(e,t))},[]),N=(e,t)=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;e.preventDefault();let n=(t+(e.key===`ArrowRight`?1:-1)+y.length)%y.length,r=y[n];r!==void 0&&(j(r),document.querySelector(`#git-history-tab-${String(n)}`)?.focus())};return(0,D.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,"data-slot":`git-history-panel`,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-3 pb-2 pt-1`,children:(0,D.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:O??void 0,children:O===null?s.t(`gitHistory.branchLoading`,{ns:`conversation`}):s.t(`gitHistory.branch`,{branch:O,ns:`conversation`})})}),y.length===0?null:(0,D.jsx)(`div`,{"aria-label":s.t(`gitHistory.repositories`,{ns:`conversation`}),className:`flex min-w-0 shrink-0 gap-1 overflow-x-auto border-b border-separator px-2.5 pb-2`,role:`tablist`,children:y.map((e,t)=>{let n=e===_;return(0,D.jsx)(T,{"aria-controls":z(t),"aria-selected":n,className:w(`h-7 shrink-0 rounded-control px-2 text-label max-workbench:h-11`,n?`bg-control text-foreground`:`text-muted-foreground hover:bg-control-hover hover:text-foreground`),id:`git-history-tab-${String(t)}`,onClick:()=>{j(e)},onKeyDown:e=>{N(e,t)},role:`tab`,tabIndex:n?0:-1,type:`button`,variant:`ghost`,children:e},e)})}),(0,D.jsxs)(`div`,{className:`min-h-0 flex-1`,"data-slot":`git-history-panels`,children:[(0,D.jsx)(I,{active:r===void 0,compact:!0,dateFormatter:k,panelId:x,onSelectCommit:e=>{p({commit:e,..._===null?{}:{repository:_}})},query:m}),o.map(i=>{let a=y.indexOf(i);return a<0?null:(0,D.jsx)(R,{active:r===i,client:e,dateFormatter:k,onBranchLoaded:M,onSelectCommit:(e,t)=>{p({commit:e,repository:t})},panelId:z(a),projectId:t,repository:i,rootPath:n},i)})]}),f===void 0?null:(0,D.jsx)(A,{client:e,commit:f.commit,onClose:()=>{p(void 0)},projectId:t,rootPath:n,...f.repository===void 0?{}:{repository:f.repository}})]})}export{B as GitHistoryPanel};
|
|
2
|
+
import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{t}from"./initial-deps-Bx4af_YG.js";import{i as n,t as r}from"./react-runtime-DaCTDC27.js";import{o as i,t as a}from"./initial-deps-CTprc_pY.js";import{E as o,at as s,nt as c,s as l}from"./initial-deps-DqJTHr9A.js";import{n as u}from"./file-code-corner-CYF-BidF.js";import{n as d}from"./file-review-dialog-D5uAITDY.js";import{t as f}from"./git-commit-horizontal-CV-KjCHw.js";import{c as p,n as m,r as h,t as g}from"./context-menu-D28EIDXC.js";import{Gt as _,Jt as v,Kt as y,X as b,Y as x,dn as S,et as C,ht as w,mt as T}from"./index-DU2EMreA.js";var E=e(n(),1),D=r(),O=(0,E.lazy)(()=>t(()=>import(`./patch-diff-viewer-CwDRm5oN.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8])));function k({change:e,client:t,projectId:n,repository:r,rootPath:a,sha:o}){let c=i(_(n,a,r,o,e.path,!0,t));if(c.isPending)return(0,D.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:s.t(`gitHistory.diffLoading`,{ns:`conversation`})});if(c.error!==null)return(0,D.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-3 px-5 text-center`,children:[(0,D.jsx)(`p`,{className:`text-body-small text-danger`,children:s.t(`gitHistory.diffLoadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void c.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]});let l={...e,diff:c.data.diff};return(0,D.jsxs)(`div`,{className:`min-h-full min-w-max`,children:[c.data.truncated?(0,D.jsx)(`p`,{className:`sticky left-0 top-0 z-10 border-b border-separator bg-warning px-3 py-2 text-caption text-warning-foreground`,role:`status`,children:s.t(`gitHistory.diffTruncated`,{ns:`conversation`})}):null,(0,D.jsx)(E.Suspense,{fallback:(0,D.jsx)(`div`,{className:`grid min-h-48 place-items-center text-body-small text-muted-foreground`,role:`status`,children:s.t(`gitHistory.diffLoading`,{ns:`conversation`})}),children:(0,D.jsx)(O,{change:l})})]})}function A({client:e,commit:t,onClose:n,projectId:r,repository:i,rootPath:u}){c(`conversation`);let[f,p]=(0,E.useState)(0),m=a(y(r,u,i,t.sha,!0,e)),h=(0,E.useMemo)(()=>m.data?.pages.flatMap(e=>e.files)??[],[m.data?.pages]),g=(0,E.useMemo)(()=>h.map(e=>({...e,diff:``})),[h]);return(0,E.useEffect)(()=>{p(0)},[t.sha]),(0,D.jsx)(x,{onOpenChange:e=>{e||n()},open:!0,children:(0,D.jsxs)(b,{"aria-labelledby":`git-commit-review-dialog-title`,className:`h-[min(86dvh,58rem)] max-w-[78rem] overflow-hidden p-0`,children:[(0,D.jsx)(C,{className:`sr-only`,id:`git-commit-review-dialog-title`,children:t.title}),m.isPending||m.error!==null||g.length===0?(0,D.jsxs)(`section`,{className:`grid h-full min-h-0 grid-rows-[auto_minmax(0,1fr)] bg-raised`,children:[(0,D.jsxs)(`header`,{className:`flex min-h-toolbar min-w-0 items-center gap-2 px-3 shadow-toolbar sm:px-4`,children:[(0,D.jsx)(`h2`,{className:`min-w-0 flex-1 truncate text-body-small font-semibold`,children:t.title}),(0,D.jsx)(T,{"aria-label":s.t(`diff.closeReview`,{ns:`workbench`}),onClick:n,size:`icon-sm`,type:`button`,variant:`ghost`,children:(0,D.jsx)(l,{"aria-hidden":`true`,className:`size-3.5`})})]}),(0,D.jsx)(`div`,{className:`grid min-h-0 place-items-center px-5 text-center text-body-small`,children:m.isPending?(0,D.jsx)(`p`,{className:`text-muted-foreground`,role:`status`,children:s.t(`gitHistory.filesLoading`,{ns:`conversation`})}):m.error===null?(0,D.jsx)(`p`,{className:`text-muted-foreground`,children:s.t(`gitHistory.filesEmpty`,{ns:`conversation`})}):(0,D.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,D.jsx)(`p`,{className:`text-danger`,children:s.t(`gitHistory.filesLoadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void m.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]})})]}):(0,D.jsx)(d,{changes:g,currentIndex:f,navigationFooter:m.hasNextPage?(0,D.jsx)(`div`,{className:`flex min-h-12 items-center justify-center px-2 py-2`,children:(0,D.jsxs)(T,{className:`max-workbench:h-11`,disabled:m.isFetchingNextPage,onClick:()=>void m.fetchNextPage(),type:`button`,variant:`outline`,children:[m.isFetchingNextPage?(0,D.jsx)(o,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):null,m.isFetchingNextPage?s.t(`gitHistory.loadingMoreFiles`,{ns:`conversation`}):s.t(`gitHistory.loadMoreFiles`,{ns:`conversation`})]})}):null,onClose:n,onCurrentIndexChange:p,renderContent:n=>(0,D.jsx)(k,{change:n,client:e,projectId:r,rootPath:u,...i===void 0?{}:{repository:i},sha:t.sha}),showStats:!1,titleId:`git-commit-review-file-title`})]})})}function j({commit:e,compact:t,dateFormatter:n}){let r=n.format(new Date(e.authoredAt));return(0,D.jsxs)(`span`,{className:`min-w-0`,children:[(0,D.jsx)(`span`,{className:w(`block truncate font-medium text-foreground`,t?`text-label`:`text-body-small`),title:e.title,children:e.title}),(0,D.jsxs)(`span`,{className:w(`flex min-w-0 items-center gap-1.5 text-muted-foreground`,t?`text-meta`:`mt-0.5 text-caption`),children:[(0,D.jsx)(`code`,{className:`shrink-0`,children:e.sha.slice(0,t?7:12)}),(0,D.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,D.jsx)(`span`,{className:`truncate`,title:e.authorEmail,children:e.authorName}),(0,D.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,D.jsx)(`time`,{className:w(t?`min-w-0 truncate`:`shrink-0`),dateTime:e.authoredAt,title:r,children:r})]})]})}function M(e,t){return{author:e.authorName,hash:e.sha,message:e.title}[t]}function N(e,t){navigator.clipboard.writeText(M(e,t)).catch(()=>void 0)}function P({commit:e}){c(`conversation`);let t=[[`message`,s.t(`gitHistory.copyMessage`,{ns:`conversation`})],[`author`,s.t(`gitHistory.copyAuthor`,{ns:`conversation`})],[`hash`,s.t(`gitHistory.copyHash`,{ns:`conversation`})]];return(0,D.jsx)(m,{"aria-label":s.t(`gitHistory.copyMenuLabel`,{ns:`conversation`}),children:t.map(([t,n])=>(0,D.jsxs)(h,{onSelect:()=>{N(e,t)},children:[(0,D.jsx)(u,{"aria-hidden":`true`,className:`size-3.5`}),n]},t))})}function F({commit:e,compact:t,dateFormatter:n,isLast:r,onSelectCommit:i}){return(0,D.jsxs)(g,{modal:!1,children:[(0,D.jsx)(p,{asChild:!0,children:(0,D.jsxs)(`li`,{className:w(`relative grid min-w-0 grid-cols-[auto_minmax(0,1fr)]`,t?`gap-x-1.5 px-3 py-1.5`:`gap-x-2.5 px-4 py-2.5`),children:[(0,D.jsxs)(`div`,{className:`relative flex w-4 justify-center`,"aria-hidden":`true`,children:[r?null:(0,D.jsx)(`span`,{className:`absolute bottom-[-0.625rem] top-3 w-px bg-separator-strong`}),(0,D.jsx)(f,{className:`relative mt-0.5 size-3.5 text-brand`})]}),i===void 0?(0,D.jsx)(`div`,{className:`min-w-0`,children:(0,D.jsx)(j,{commit:e,compact:t,dateFormatter:n})}):(0,D.jsx)(T,{className:`h-auto min-w-0 justify-start rounded-none p-0 text-left`,contentAlign:`start`,onClick:()=>{i(e)},type:`button`,variant:`ghost`,children:(0,D.jsx)(j,{commit:e,compact:t,dateFormatter:n})})]})}),(0,D.jsx)(P,{commit:e})]})}function I({active:e,className:t,compact:n=!1,dateFormatter:r,panelId:i,onSelectCommit:a,query:c}){let l=(0,E.useMemo)(()=>c.data?.pages.flatMap(e=>e.commits)??[],[c.data?.pages]);return(0,D.jsx)(`div`,{"aria-label":s.t(`gitHistory.commits`,{ns:`conversation`}),className:w(`h-full min-h-0 overflow-y-auto`,!e&&`hidden`,t),"data-slot":`git-history-content`,hidden:!e,id:i,role:`tabpanel`,children:c.isPending?(0,D.jsx)(`p`,{className:`px-5 py-12 text-center text-body-small text-muted-foreground`,children:s.t(`gitHistory.loading`,{ns:`conversation`})}):c.error===null?l.length===0?(0,D.jsx)(`p`,{className:`px-5 py-12 text-center text-body-small text-muted-foreground`,children:s.t(`gitHistory.empty`,{ns:`conversation`})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`ol`,{"aria-label":s.t(`gitHistory.commits`,{ns:`conversation`}),children:l.map((e,t)=>(0,D.jsx)(F,{commit:e,compact:n,dateFormatter:r,isLast:t===l.length-1,...a===void 0?{}:{onSelectCommit:a}},e.sha))}),(0,D.jsx)(`div`,{className:w(`flex items-center justify-center`,n?`min-h-8 px-3 py-1`:`min-h-12 px-4 py-3`),children:c.hasNextPage?(0,D.jsxs)(T,{className:n?`w-full`:`max-workbench:h-11`,disabled:c.isFetchingNextPage,onClick:()=>void c.fetchNextPage(),size:n?`sm`:`default`,type:`button`,variant:`outline`,children:[c.isFetchingNextPage?(0,D.jsx)(o,{"aria-hidden":`true`,className:`animate-spin`,"data-icon":`inline-start`}):null,c.isFetchingNextPage?s.t(`gitHistory.loadingMore`,{ns:`conversation`}):s.t(`gitHistory.loadMore`,{ns:`conversation`})]}):(0,D.jsx)(`p`,{className:`text-caption text-muted-foreground`,role:`status`,children:s.t(`gitHistory.end`,{ns:`conversation`})})})]}):(0,D.jsxs)(`div`,{className:`flex min-h-48 flex-col items-center justify-center gap-3 px-5 text-center`,children:[(0,D.jsx)(`p`,{className:`text-body-small text-danger`,children:s.t(`gitHistory.loadError`,{ns:`conversation`})}),(0,D.jsx)(T,{onClick:()=>void c.refetch(),type:`button`,variant:`outline`,children:s.t(`gitHistory.retry`,{ns:`conversation`})})]})})}function L({active:e=!0,client:t,compact:n=!1,dateFormatter:r,enabled:i=!0,onBranchLoaded:o,onSelectCommit:l,panelId:u,projectId:d,repository:f,rootPath:p,showBranch:m=!1}){c(`conversation`);let h=a(v(d,p,f,i,t)),g=h.data?.pages[0]?.branch;(0,E.useEffect)(()=>{f!==void 0&&g!==void 0&&o?.(f,g)},[g,o,f]);let _=(0,D.jsx)(I,{active:e,compact:n,dateFormatter:r,panelId:u,...l===void 0?{}:{onSelectCommit:l},query:h});if(!m)return _;let y=g===void 0?null:g??`detached HEAD`;return(0,D.jsxs)(`div`,{className:w(`flex h-full min-h-0 flex-col`,!e&&`hidden`),hidden:!e,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-4 py-2`,children:(0,D.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:y??void 0,children:y===null?s.t(`gitHistory.branchLoading`,{ns:`conversation`}):s.t(`gitHistory.branch`,{branch:y,ns:`conversation`})})}),(0,D.jsx)(`div`,{className:`min-h-0 flex-1`,children:_})]})}function R({active:e,client:t,dateFormatter:n,onBranchLoaded:r,onSelectCommit:i,panelId:a,projectId:o,repository:s,rootPath:c}){return(0,D.jsx)(L,{active:e,client:t,dateFormatter:n,onBranchLoaded:r,onSelectCommit:e=>{i(e,s)},panelId:a,projectId:o,repository:s,rootPath:c})}function z(e){return`git-history-panel-${String(e)}`}function B({client:e=S,projectId:t,rootPath:n}){c(`conversation`);let[r,i]=(0,E.useState)(),[o,l]=(0,E.useState)([]),[u,d]=(0,E.useState)(()=>new Map),[f,p]=(0,E.useState)(),m=a(v(t,n,void 0,!0,e)),h=m.data?.pages[0],g=h?.repository??null,_=r??g,y=h?.repositories??[],b=Math.max(0,g===null?0:y.indexOf(g)),x=y.length===0?`git-history-panel`:z(b),C=r===void 0?h?.branch:u.get(r),O=C===void 0?null:C??`detached HEAD`,k=(0,E.useMemo)(()=>new Intl.DateTimeFormat(s.resolvedLanguage===`en`?`en`:`zh-CN`,{dateStyle:`medium`,timeStyle:`short`}),[]),j=e=>{if(e===g){i(void 0);return}l(t=>t.includes(e)?t:[...t,e]),i(e)},M=(0,E.useCallback)((e,t)=>{d(n=>n.has(e)&&n.get(e)===t?n:new Map(n).set(e,t))},[]),N=(e,t)=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;e.preventDefault();let n=(t+(e.key===`ArrowRight`?1:-1)+y.length)%y.length,r=y[n];r!==void 0&&(j(r),document.querySelector(`#git-history-tab-${String(n)}`)?.focus())};return(0,D.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,"data-slot":`git-history-panel`,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-3 pb-2 pt-1`,children:(0,D.jsx)(`p`,{className:`truncate text-caption text-muted-foreground`,title:O??void 0,children:O===null?s.t(`gitHistory.branchLoading`,{ns:`conversation`}):s.t(`gitHistory.branch`,{branch:O,ns:`conversation`})})}),y.length===0?null:(0,D.jsx)(`div`,{"aria-label":s.t(`gitHistory.repositories`,{ns:`conversation`}),className:`flex min-w-0 shrink-0 gap-1 overflow-x-auto border-b border-separator px-2.5 pb-2`,role:`tablist`,children:y.map((e,t)=>{let n=e===_;return(0,D.jsx)(T,{"aria-controls":z(t),"aria-selected":n,className:w(`h-7 shrink-0 rounded-control px-2 text-label max-workbench:h-11`,n?`bg-control text-foreground`:`text-muted-foreground hover:bg-control-hover hover:text-foreground`),id:`git-history-tab-${String(t)}`,onClick:()=>{j(e)},onKeyDown:e=>{N(e,t)},role:`tab`,tabIndex:n?0:-1,type:`button`,variant:`ghost`,children:e},e)})}),(0,D.jsxs)(`div`,{className:`min-h-0 flex-1`,"data-slot":`git-history-panels`,children:[(0,D.jsx)(I,{active:r===void 0,compact:!0,dateFormatter:k,panelId:x,onSelectCommit:e=>{p({commit:e,..._===null?{}:{repository:_}})},query:m}),o.map(i=>{let a=y.indexOf(i);return a<0?null:(0,D.jsx)(R,{active:r===i,client:e,dateFormatter:k,onBranchLoaded:M,onSelectCommit:(e,t)=>{p({commit:e,repository:t})},panelId:z(a),projectId:t,repository:i,rootPath:n},i)})]}),f===void 0?null:(0,D.jsx)(A,{client:e,commit:f.commit,onClose:()=>{p(void 0)},projectId:t,rootPath:n,...f.repository===void 0?{}:{repository:f.repository}})]})}export{B as GitHistoryPanel};
|
|
Binary file
|
|
Binary file
|