dsh-plugin 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +8 -0
- package/README.md +8 -0
- package/client/client.js +333 -310
- package/client/client.js.map +1 -1
- package/lib/http/routes.js +3 -1
- package/lib/services/install/task-queue.js +29 -15
- package/lib/services/profile/profile.js +4 -3
- package/lib/types/services/install/install-types.d.ts +2 -2
- package/lib/types/services/install/task-queue.d.ts +3 -3
- package/package.json +1 -1
- package/src/client/components/PluginHubSection.tsx +2 -0
- package/src/client/components/views/CustomInstallView.tsx +35 -14
- package/src/client/locales.ts +8 -6
- package/src/client/logic/renderMarkdown.ts +9 -5
- package/src/client/styles/CustomInstallView.module.css +25 -0
- package/src/server/http/routes.ts +3 -1
- package/src/server/services/install/install-types.ts +2 -2
- package/src/server/services/install/task-queue.ts +36 -20
- package/src/server/services/profile/profile.ts +4 -3
package/client/client.js
CHANGED
|
@@ -59,13 +59,14 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
59
59
|
gitInstallInvalid: "请输入 GitHub 仓库地址,例如:owner/repo 或 https://github.com/owner/repo",
|
|
60
60
|
dshCmdLabel: "DeepSeek Harness 命令",
|
|
61
61
|
dshCmdPlaceholder: "粘贴官方 dsh plugin 命令",
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
dshCmdInsertHubUpdate: "插入更新命令",
|
|
63
|
+
dshCmdExample: "例如:dsh plugin --profile web add github:owner/repo,或 dsh plugin --profile web update dsh-plugin",
|
|
64
|
+
dshCmdInvalid: "请输入官方 dsh plugin 命令(--profile 必填,支持 add / update)。例如:dsh plugin --profile web update dsh-plugin",
|
|
64
65
|
installHelp: "帮助",
|
|
65
66
|
helpModalTitle: "支持的命令格式",
|
|
66
67
|
npmInstallHelp: "lodash、@scope/pkg 直接输入包名\nnpm install lodash\nnpm i lodash\npnpm add @scope/pkg\npnpm i @scope/pkg\nnpm install -g @scope/cli 全局安装 CLI 工具,不进「已安装」列表",
|
|
67
68
|
gitInstallHelp: "owner/repo\nhttps://github.com/owner/repo\ngithub:owner/repo\ngit+https://github.com/owner/repo.git\ngit@github.com:owner/repo.git",
|
|
68
|
-
dshCmdHelp: "dsh plugin --profile web add
|
|
69
|
+
dshCmdHelp: "dsh plugin --profile web add <目标> 安装\ndsh plugin --profile web update <目标> 更新已安装目标到最新版本\ndsh plugin --profile=web add <目标>\ndsh plugin --profile=web update <目标>\n --profile 必填,官方 CLI 无 -p 简写;<目标> 可为 npm 包名或 github:owner/repo;卸载请用「已安装」列表",
|
|
69
70
|
globalNpmHint: "将全局安装 CLI 工具(npm install -g),不会出现在「已安装」列表,无需重启宿主",
|
|
70
71
|
installCliBtn: "安装",
|
|
71
72
|
channelDisabledHint: "该安装通道已关闭,请在「设置 → 安全信任」中打开开关",
|
|
@@ -359,13 +360,14 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
359
360
|
gitInstallInvalid: "Enter a GitHub repository address, e.g. owner/repo or https://github.com/owner/repo",
|
|
360
361
|
dshCmdLabel: "DeepSeek Harness command",
|
|
361
362
|
dshCmdPlaceholder: "Paste an official dsh plugin command",
|
|
362
|
-
|
|
363
|
-
|
|
363
|
+
dshCmdInsertHubUpdate: "Insert update command",
|
|
364
|
+
dshCmdExample: "e.g. dsh plugin --profile web add github:owner/repo, or dsh plugin --profile web update dsh-plugin",
|
|
365
|
+
dshCmdInvalid: "Paste an official dsh plugin command (--profile required, add / update), e.g. dsh plugin --profile web update dsh-plugin",
|
|
364
366
|
installHelp: "Help",
|
|
365
367
|
helpModalTitle: "Supported command formats",
|
|
366
368
|
npmInstallHelp: "lodash or @scope/pkg just type the package name\nnpm install lodash\nnpm i lodash\npnpm add @scope/pkg\npnpm i @scope/pkg\nnpm install -g @scope/cli installs the CLI globally, not shown in Installed",
|
|
367
369
|
gitInstallHelp: "owner/repo\nhttps://github.com/owner/repo\ngithub:owner/repo\ngit+https://github.com/owner/repo.git\ngit@github.com:owner/repo.git",
|
|
368
|
-
dshCmdHelp: "dsh plugin --profile web add <target
|
|
370
|
+
dshCmdHelp: "dsh plugin --profile web add <target> install\ndsh plugin --profile web update <target> update an installed target to the latest version\ndsh plugin --profile=web add <target>\ndsh plugin --profile=web update <target>\n --profile is required and there is no -p shorthand; <target> can be an npm package or github:owner/repo; uninstall from the Installed list",
|
|
369
371
|
globalNpmHint: "This installs CLI tools globally (npm install -g). They won't appear in Installed and no host restart is needed.",
|
|
370
372
|
installCliBtn: "Install",
|
|
371
373
|
channelDisabledHint: "This install channel is disabled — enable it in Settings → Security & Trust",
|
|
@@ -632,42 +634,42 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
632
634
|
css: css$11
|
|
633
635
|
});
|
|
634
636
|
var Header_module_css_default = {
|
|
635
|
-
"
|
|
636
|
-
"
|
|
637
|
-
"segGroup": "qikqja_segGroup",
|
|
637
|
+
"segBtnActive": "qikqja_segBtnActive",
|
|
638
|
+
"adBanner": "qikqja_adBanner",
|
|
638
639
|
"segBtn": "qikqja_segBtn",
|
|
639
|
-
"
|
|
640
|
-
"
|
|
640
|
+
"brandTitle": "qikqja_brandTitle",
|
|
641
|
+
"adArrow": "qikqja_adArrow",
|
|
641
642
|
"header": "qikqja_header",
|
|
642
|
-
"tabs": "qikqja_tabs",
|
|
643
|
-
"copyIcon": "qikqja_copyIcon",
|
|
644
|
-
"adBanner": "qikqja_adBanner",
|
|
645
|
-
"segBtnActive": "qikqja_segBtnActive",
|
|
646
|
-
"githubLink": "qikqja_githubLink",
|
|
647
|
-
"langBtn": "qikqja_langBtn",
|
|
648
|
-
"headerRight": "qikqja_headerRight",
|
|
649
|
-
"tabActive": "qikqja_tabActive",
|
|
650
|
-
"aboutBtn": "qikqja_aboutBtn",
|
|
651
643
|
"resultSeg": "qikqja_resultSeg",
|
|
652
|
-
"
|
|
644
|
+
"githubIcon": "qikqja_githubIcon",
|
|
645
|
+
"logoIcon": "qikqja_logoIcon",
|
|
646
|
+
"tabs": "qikqja_tabs",
|
|
647
|
+
"tab": "qikqja_tab",
|
|
653
648
|
"adBadge": "qikqja_adBadge",
|
|
654
|
-
"
|
|
655
|
-
"
|
|
649
|
+
"adText": "qikqja_adText",
|
|
650
|
+
"title": "qikqja_title",
|
|
656
651
|
"versionBtn": "qikqja_versionBtn",
|
|
657
|
-
"
|
|
658
|
-
"
|
|
652
|
+
"taglineLink": "qikqja_taglineLink",
|
|
653
|
+
"search": "qikqja_search",
|
|
654
|
+
"headerTitleRow": "qikqja_headerTitleRow",
|
|
655
|
+
"githubLink": "qikqja_githubLink",
|
|
656
|
+
"copyIcon": "qikqja_copyIcon",
|
|
657
|
+
"langBtn": "qikqja_langBtn",
|
|
659
658
|
"searchRow": "qikqja_searchRow",
|
|
660
|
-
"githubIcon": "qikqja_githubIcon",
|
|
661
|
-
"segLabel": "qikqja_segLabel",
|
|
662
|
-
"tab": "qikqja_tab",
|
|
663
659
|
"tabCount": "qikqja_tabCount",
|
|
660
|
+
"root": "qikqja_root",
|
|
661
|
+
"segGroup": "qikqja_segGroup",
|
|
662
|
+
"version": "qikqja_version",
|
|
663
|
+
"controls": "qikqja_controls",
|
|
664
664
|
"hubUpdateBadge": "qikqja_hubUpdateBadge",
|
|
665
|
+
"aboutBtn": "qikqja_aboutBtn",
|
|
666
|
+
"headerRight": "qikqja_headerRight",
|
|
667
|
+
"tagline": "qikqja_tagline",
|
|
665
668
|
"resultCount": "qikqja_resultCount",
|
|
666
|
-
"
|
|
667
|
-
"
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"adArrow": "qikqja_adArrow"
|
|
669
|
+
"segLabel": "qikqja_segLabel",
|
|
670
|
+
"tabActive": "qikqja_tabActive",
|
|
671
|
+
"tabsRow": "qikqja_tabsRow",
|
|
672
|
+
"sortGroup": "qikqja_sortGroup"
|
|
671
673
|
};
|
|
672
674
|
//#endregion
|
|
673
675
|
//#region \0dsh-css:src/client/styles/Modal.module.css.mjs
|
|
@@ -686,134 +688,134 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
686
688
|
css: css$10
|
|
687
689
|
});
|
|
688
690
|
var Modal_module_css_default = {
|
|
689
|
-
"
|
|
690
|
-
"dangerConfirm": "BiQ1zG_dangerConfirm",
|
|
691
|
-
"detailModal": "BiQ1zG_detailModal",
|
|
692
|
-
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
693
|
-
"modalLabel": "BiQ1zG_modalLabel",
|
|
694
|
-
"toast": "BiQ1zG_toast",
|
|
695
|
-
"queueRowHead": "BiQ1zG_queueRowHead",
|
|
696
|
-
"queueRowTarget": "BiQ1zG_queueRowTarget",
|
|
697
|
-
"queueSection": "BiQ1zG_queueSection",
|
|
698
|
-
"errorTitle": "BiQ1zG_errorTitle",
|
|
699
|
-
"progressTrack": "BiQ1zG_progressTrack",
|
|
700
|
-
"failKindUninstall": "BiQ1zG_failKindUninstall",
|
|
701
|
-
"hubUpdateMetaItem": "BiQ1zG_hubUpdateMetaItem",
|
|
702
|
-
"hubUpdateMeta": "BiQ1zG_hubUpdateMeta",
|
|
703
|
-
"errorBox": "BiQ1zG_errorBox",
|
|
704
|
-
"detailStatusText": "BiQ1zG_detailStatusText",
|
|
705
|
-
"errorCopySoft": "BiQ1zG_errorCopySoft",
|
|
706
|
-
"failHead": "BiQ1zG_failHead",
|
|
707
|
-
"pendingRowStatus": "BiQ1zG_pendingRowStatus",
|
|
708
|
-
"noticeRowMain": "BiQ1zG_noticeRowMain",
|
|
709
|
-
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
710
|
-
"queueSectionTitle": "BiQ1zG_queueSectionTitle",
|
|
711
|
-
"progress": "BiQ1zG_progress",
|
|
712
|
-
"aboutContent": "BiQ1zG_aboutContent",
|
|
713
|
-
"overlayIn": "BiQ1zG_overlayIn",
|
|
714
|
-
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
715
|
-
"noticeBadgeFail": "BiQ1zG_noticeBadgeFail",
|
|
716
|
-
"noticeList": "BiQ1zG_noticeList",
|
|
717
|
-
"failKindInstall": "BiQ1zG_failKindInstall",
|
|
718
|
-
"modalDesc": "BiQ1zG_modalDesc",
|
|
719
|
-
"modalLink": "BiQ1zG_modalLink",
|
|
691
|
+
"noticeRemove": "BiQ1zG_noticeRemove",
|
|
720
692
|
"restartNow": "BiQ1zG_restartNow",
|
|
721
|
-
"detailDim": "BiQ1zG_detailDim",
|
|
722
|
-
"detailMono": "BiQ1zG_detailMono",
|
|
723
|
-
"modalWide": "BiQ1zG_modalWide",
|
|
724
|
-
"queuedHint": "BiQ1zG_queuedHint",
|
|
725
693
|
"failPrepareHint": "BiQ1zG_failPrepareHint",
|
|
726
|
-
"overlay": "BiQ1zG_overlay",
|
|
727
|
-
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
728
|
-
"failedCopyHint": "BiQ1zG_failedCopyHint",
|
|
729
|
-
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
730
|
-
"resultTitle": "BiQ1zG_resultTitle",
|
|
731
|
-
"detailArrow": "BiQ1zG_detailArrow",
|
|
732
|
-
"noticeHead": "BiQ1zG_noticeHead",
|
|
733
|
-
"noticeTextFail": "BiQ1zG_noticeTextFail",
|
|
734
694
|
"modalValue": "BiQ1zG_modalValue",
|
|
735
|
-
"
|
|
695
|
+
"aboutModal": "BiQ1zG_aboutModal",
|
|
696
|
+
"overlay": "BiQ1zG_overlay",
|
|
697
|
+
"noticeList": "BiQ1zG_noticeList",
|
|
698
|
+
"aboutContent": "BiQ1zG_aboutContent",
|
|
699
|
+
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
700
|
+
"modalIn": "BiQ1zG_modalIn",
|
|
701
|
+
"noticeTextOk": "BiQ1zG_noticeTextOk",
|
|
736
702
|
"pendingRowActions": "BiQ1zG_pendingRowActions",
|
|
737
|
-
"
|
|
738
|
-
"
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
"queueRowStatus": "BiQ1zG_queueRowStatus",
|
|
748
|
-
"modalTitleQueued": "BiQ1zG_modalTitleQueued",
|
|
703
|
+
"failHead": "BiQ1zG_failHead",
|
|
704
|
+
"resultCheckIcon": "BiQ1zG_resultCheckIcon",
|
|
705
|
+
"errorTitle": "BiQ1zG_errorTitle",
|
|
706
|
+
"logModal": "BiQ1zG_logModal",
|
|
707
|
+
"detailMono": "BiQ1zG_detailMono",
|
|
708
|
+
"modalClose": "BiQ1zG_modalClose",
|
|
709
|
+
"hubUpdateModal": "BiQ1zG_hubUpdateModal",
|
|
710
|
+
"failRow": "BiQ1zG_failRow",
|
|
711
|
+
"detailValue": "BiQ1zG_detailValue",
|
|
712
|
+
"overlayIn": "BiQ1zG_overlayIn",
|
|
749
713
|
"noticeIgnore": "BiQ1zG_noticeIgnore",
|
|
714
|
+
"queueSectionTitle": "BiQ1zG_queueSectionTitle",
|
|
715
|
+
"modalCmdText": "BiQ1zG_modalCmdText",
|
|
716
|
+
"noticeUpdateGo": "BiQ1zG_noticeUpdateGo",
|
|
717
|
+
"detailPathBtn": "BiQ1zG_detailPathBtn",
|
|
750
718
|
"confirmIconWrap": "BiQ1zG_confirmIconWrap",
|
|
751
|
-
"
|
|
752
|
-
"
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
"result": "BiQ1zG_result",
|
|
758
|
-
"failCopy": "BiQ1zG_failCopy",
|
|
759
|
-
"queueRowTrack": "BiQ1zG_queueRowTrack",
|
|
760
|
-
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
761
|
-
"detailUpdateHint": "BiQ1zG_detailUpdateHint",
|
|
762
|
-
"detailPathText": "BiQ1zG_detailPathText",
|
|
719
|
+
"resultCheck": "BiQ1zG_resultCheck",
|
|
720
|
+
"detailDim": "BiQ1zG_detailDim",
|
|
721
|
+
"modalCmd": "BiQ1zG_modalCmd",
|
|
722
|
+
"queueRowDesc": "BiQ1zG_queueRowDesc",
|
|
723
|
+
"modalRow": "BiQ1zG_modalRow",
|
|
724
|
+
"noticeTextFail": "BiQ1zG_noticeTextFail",
|
|
763
725
|
"resultDesc": "BiQ1zG_resultDesc",
|
|
764
|
-
"
|
|
765
|
-
"aboutModal": "BiQ1zG_aboutModal",
|
|
766
|
-
"hubUpdateNotes": "BiQ1zG_hubUpdateNotes",
|
|
726
|
+
"failClear": "BiQ1zG_failClear",
|
|
767
727
|
"progressFill": "BiQ1zG_progressFill",
|
|
728
|
+
"detailPathText": "BiQ1zG_detailPathText",
|
|
729
|
+
"queueRowTarget": "BiQ1zG_queueRowTarget",
|
|
730
|
+
"detailStars": "BiQ1zG_detailStars",
|
|
731
|
+
"cliOnlyHint": "BiQ1zG_cliOnlyHint",
|
|
768
732
|
"aboutMeta": "BiQ1zG_aboutMeta",
|
|
769
|
-
"modalRow": "BiQ1zG_modalRow",
|
|
770
|
-
"noticeRemove": "BiQ1zG_noticeRemove",
|
|
771
|
-
"queueRowBody": "BiQ1zG_queueRowBody",
|
|
772
|
-
"queueRowPct": "BiQ1zG_queueRowPct",
|
|
773
|
-
"detailLink": "BiQ1zG_detailLink",
|
|
774
|
-
"modalClose": "BiQ1zG_modalClose",
|
|
775
|
-
"noticeRow": "BiQ1zG_noticeRow",
|
|
776
|
-
"modalBody": "BiQ1zG_modalBody",
|
|
777
|
-
"toastFail": "BiQ1zG_toastFail",
|
|
778
|
-
"modalTitleBusy": "BiQ1zG_modalTitleBusy",
|
|
779
733
|
"noticeFoot": "BiQ1zG_noticeFoot",
|
|
780
|
-
"
|
|
781
|
-
"detailRow": "BiQ1zG_detailRow",
|
|
782
|
-
"modalCopy": "BiQ1zG_modalCopy",
|
|
783
|
-
"restartLater": "BiQ1zG_restartLater",
|
|
784
|
-
"progressHead": "BiQ1zG_progressHead",
|
|
785
|
-
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
786
|
-
"queueRowDesc": "BiQ1zG_queueRowDesc",
|
|
787
|
-
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
788
|
-
"modalTitle": "BiQ1zG_modalTitle",
|
|
734
|
+
"modalInstall": "BiQ1zG_modalInstall",
|
|
789
735
|
"modal": "BiQ1zG_modal",
|
|
736
|
+
"failRepo": "BiQ1zG_failRepo",
|
|
737
|
+
"detailLink": "BiQ1zG_detailLink",
|
|
738
|
+
"hubUpdateMetaItem": "BiQ1zG_hubUpdateMetaItem",
|
|
790
739
|
"errorModal": "BiQ1zG_errorModal",
|
|
740
|
+
"result": "BiQ1zG_result",
|
|
741
|
+
"noticeBadgeIcon": "BiQ1zG_noticeBadgeIcon",
|
|
742
|
+
"failedCopyHint": "BiQ1zG_failedCopyHint",
|
|
743
|
+
"progressFillFail": "BiQ1zG_progressFillFail",
|
|
744
|
+
"noticeRowMain": "BiQ1zG_noticeRowMain",
|
|
745
|
+
"queueRowTrack": "BiQ1zG_queueRowTrack",
|
|
746
|
+
"detailRow": "BiQ1zG_detailRow",
|
|
747
|
+
"noticeMain": "BiQ1zG_noticeMain",
|
|
748
|
+
"queueRowHead": "BiQ1zG_queueRowHead",
|
|
749
|
+
"toastIn": "BiQ1zG_toastIn",
|
|
750
|
+
"modalTitle": "BiQ1zG_modalTitle",
|
|
751
|
+
"modalBody": "BiQ1zG_modalBody",
|
|
752
|
+
"modalActions": "BiQ1zG_modalActions",
|
|
753
|
+
"linkIcon": "BiQ1zG_linkIcon",
|
|
754
|
+
"uninstallConfirm": "BiQ1zG_uninstallConfirm",
|
|
755
|
+
"pendingRowStatus": "BiQ1zG_pendingRowStatus",
|
|
756
|
+
"errorHint": "BiQ1zG_errorHint",
|
|
757
|
+
"detailPath": "BiQ1zG_detailPath",
|
|
758
|
+
"noticeHead": "BiQ1zG_noticeHead",
|
|
759
|
+
"modalLabel": "BiQ1zG_modalLabel",
|
|
760
|
+
"resultRestarting": "BiQ1zG_resultRestarting",
|
|
761
|
+
"progressText": "BiQ1zG_progressText",
|
|
791
762
|
"modalHead": "BiQ1zG_modalHead",
|
|
763
|
+
"failList": "BiQ1zG_failList",
|
|
764
|
+
"noticeVersion": "BiQ1zG_noticeVersion",
|
|
765
|
+
"noticeRowOk": "BiQ1zG_noticeRowOk",
|
|
766
|
+
"detailPathActions": "BiQ1zG_detailPathActions",
|
|
767
|
+
"detailGrid": "BiQ1zG_detailGrid",
|
|
768
|
+
"toast": "BiQ1zG_toast",
|
|
769
|
+
"errorCopySoft": "BiQ1zG_errorCopySoft",
|
|
770
|
+
"modalCloseIcon": "BiQ1zG_modalCloseIcon",
|
|
771
|
+
"hubUpdateNotes": "BiQ1zG_hubUpdateNotes",
|
|
772
|
+
"modalCmdCopy": "BiQ1zG_modalCmdCopy",
|
|
773
|
+
"detailArrow": "BiQ1zG_detailArrow",
|
|
774
|
+
"restartNowWarning": "BiQ1zG_restartNowWarning",
|
|
775
|
+
"failKind": "BiQ1zG_failKind",
|
|
776
|
+
"detailModal": "BiQ1zG_detailModal",
|
|
777
|
+
"queueRow": "BiQ1zG_queueRow",
|
|
778
|
+
"confirmIcon": "BiQ1zG_confirmIcon",
|
|
779
|
+
"queuedHint": "BiQ1zG_queuedHint",
|
|
780
|
+
"errorBox": "BiQ1zG_errorBox",
|
|
781
|
+
"trustHint": "BiQ1zG_trustHint",
|
|
782
|
+
"toastFail": "BiQ1zG_toastFail",
|
|
792
783
|
"noticeRowUpdate": "BiQ1zG_noticeRowUpdate",
|
|
793
|
-
"
|
|
784
|
+
"detailStatusPending": "BiQ1zG_detailStatusPending",
|
|
785
|
+
"queueRowStatus": "BiQ1zG_queueRowStatus",
|
|
786
|
+
"resultTitle": "BiQ1zG_resultTitle",
|
|
787
|
+
"failKindUninstall": "BiQ1zG_failKindUninstall",
|
|
794
788
|
"failEmpty": "BiQ1zG_failEmpty",
|
|
795
|
-
"
|
|
796
|
-
"
|
|
797
|
-
"
|
|
789
|
+
"modalCopy": "BiQ1zG_modalCopy",
|
|
790
|
+
"failCopy": "BiQ1zG_failCopy",
|
|
791
|
+
"noticeBadgeFail": "BiQ1zG_noticeBadgeFail",
|
|
792
|
+
"failKindInstall": "BiQ1zG_failKindInstall",
|
|
793
|
+
"queueRowPct": "BiQ1zG_queueRowPct",
|
|
794
|
+
"stripCancel": "BiQ1zG_stripCancel",
|
|
795
|
+
"confirmPrimary": "BiQ1zG_confirmPrimary",
|
|
796
|
+
"queueSection": "BiQ1zG_queueSection",
|
|
797
|
+
"progressTrack": "BiQ1zG_progressTrack",
|
|
798
|
+
"noticeBadgeOk": "BiQ1zG_noticeBadgeOk",
|
|
798
799
|
"detailLabel": "BiQ1zG_detailLabel",
|
|
799
|
-
"
|
|
800
|
-
"
|
|
801
|
-
"
|
|
802
|
-
"
|
|
803
|
-
"
|
|
804
|
-
"
|
|
805
|
-
"failRow": "BiQ1zG_failRow",
|
|
806
|
-
"noticeVersion": "BiQ1zG_noticeVersion",
|
|
800
|
+
"hubUpdateMeta": "BiQ1zG_hubUpdateMeta",
|
|
801
|
+
"dangerConfirm": "BiQ1zG_dangerConfirm",
|
|
802
|
+
"failBigIssue": "BiQ1zG_failBigIssue",
|
|
803
|
+
"restartLater": "BiQ1zG_restartLater",
|
|
804
|
+
"progress": "BiQ1zG_progress",
|
|
805
|
+
"detailStatusText": "BiQ1zG_detailStatusText",
|
|
807
806
|
"modalCancel": "BiQ1zG_modalCancel",
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"
|
|
816
|
-
"
|
|
807
|
+
"noticeRow": "BiQ1zG_noticeRow",
|
|
808
|
+
"modalDesc": "BiQ1zG_modalDesc",
|
|
809
|
+
"modalWide": "BiQ1zG_modalWide",
|
|
810
|
+
"confirmIconDanger": "BiQ1zG_confirmIconDanger",
|
|
811
|
+
"modalTitleQueued": "BiQ1zG_modalTitleQueued",
|
|
812
|
+
"detailStatusRunning": "BiQ1zG_detailStatusRunning",
|
|
813
|
+
"queueRowBody": "BiQ1zG_queueRowBody",
|
|
814
|
+
"modalLink": "BiQ1zG_modalLink",
|
|
815
|
+
"progressHead": "BiQ1zG_progressHead",
|
|
816
|
+
"helpModal": "BiQ1zG_helpModal",
|
|
817
|
+
"noticeTime": "BiQ1zG_noticeTime",
|
|
818
|
+
"modalTitleBusy": "BiQ1zG_modalTitleBusy"
|
|
817
819
|
};
|
|
818
820
|
//#endregion
|
|
819
821
|
//#region src/client/logic/install-command.ts
|
|
@@ -822,7 +824,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
822
824
|
* (走 npm registry tarball,更快、与 GitHub 网络无关);无 npm 包名 → git 直装。
|
|
823
825
|
* 返回值 target 即传给后端 /install 的安装目标(npm 包名 或 owner/repo)。
|
|
824
826
|
*/
|
|
825
|
-
function installTargetOf
|
|
827
|
+
function installTargetOf(p) {
|
|
826
828
|
const pkg = (p.source?.npmPackage ?? "").trim();
|
|
827
829
|
const repo = (p.source?.repo ?? "").trim();
|
|
828
830
|
if (pkg && repo) return {
|
|
@@ -838,7 +840,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
838
840
|
* 需专属 profile(--profile dsh-tui),无法从 repo/npm 包名推断,必须用官方命令);
|
|
839
841
|
* 常规插件无目录命令时按通道回退生成:npm 显示包名,git 显示显式 HTTPS URL。 */
|
|
840
842
|
function installCommandOf(p, withProfile = false) {
|
|
841
|
-
const { target, via } = installTargetOf
|
|
843
|
+
const { target, via } = installTargetOf(p);
|
|
842
844
|
if (via === "npm") {
|
|
843
845
|
const cmd = p.install?.command;
|
|
844
846
|
if (cmd) return cmd;
|
|
@@ -883,7 +885,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
883
885
|
* tsdown 构建时用 define 把 __PLUGIN_VERSION__ 替换成 package.json 的版本号;
|
|
884
886
|
* node --test 直接 import 本模块时该标识符不存在,typeof 守卫兜底为空串。
|
|
885
887
|
*/
|
|
886
|
-
const PLUGIN_VERSION = "1.3.
|
|
888
|
+
const PLUGIN_VERSION = "1.3.5";
|
|
887
889
|
const CATEGORY_ORDER = [
|
|
888
890
|
"interface",
|
|
889
891
|
"session",
|
|
@@ -1516,7 +1518,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
1516
1518
|
*/
|
|
1517
1519
|
const hubHasUpdate = (() => {
|
|
1518
1520
|
if (!hubUpdateInfo) return false;
|
|
1519
|
-
return hubUpdateInfo.version !== "1.3.
|
|
1521
|
+
return hubUpdateInfo.version !== "1.3.5";
|
|
1520
1522
|
})();
|
|
1521
1523
|
(0, react.useMemo)(() => {
|
|
1522
1524
|
if (!plugins) return [];
|
|
@@ -2323,7 +2325,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
2323
2325
|
const installNow = async (p, opts) => {
|
|
2324
2326
|
const repo = p.source?.repo ?? "";
|
|
2325
2327
|
if (!repo) return;
|
|
2326
|
-
const { target } = installTargetOf
|
|
2328
|
+
const { target } = installTargetOf(p);
|
|
2327
2329
|
if (!target) return;
|
|
2328
2330
|
await submitInstall({
|
|
2329
2331
|
target,
|
|
@@ -3236,7 +3238,12 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
3236
3238
|
codeSpans.push(String(code));
|
|
3237
3239
|
return `\u0000${codeSpans.length - 1}\u0000`;
|
|
3238
3240
|
});
|
|
3239
|
-
out = out.replace(/!\[([^\]]*)\]\(([^)\s]+)\)/g, (m, alt, url) =>
|
|
3241
|
+
out = out.replace(/!\[([^\]]*)\]\(([^)\s]+)\)/g, (m, alt, url) => {
|
|
3242
|
+
const src = String(url);
|
|
3243
|
+
if (!/^https?:\/\//i.test(src) || /[\u0000]/.test(src)) return m;
|
|
3244
|
+
if (/\/dsh-plugin-user-group-qr-[^/]*$/i.test(src)) return `<img src="${src}" alt="${String(alt)}" width="250" height="250" loading="lazy">`;
|
|
3245
|
+
return `<img src="${src}" alt="${String(alt)}" loading="lazy">`;
|
|
3246
|
+
});
|
|
3240
3247
|
out = out.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (m, text, url) => /^https?:\/\//i.test(String(url)) && !/[\u0000]/.test(String(url)) ? `<a href="${String(url)}" target="_blank" rel="noopener noreferrer">${String(text)}</a>` : m);
|
|
3241
3248
|
out = out.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>");
|
|
3242
3249
|
out = out.replace(/(^|[^*])\*([^*]+)\*/g, "$1<em>$2</em>");
|
|
@@ -3879,38 +3886,38 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
3879
3886
|
css: css$9
|
|
3880
3887
|
});
|
|
3881
3888
|
var List_module_css_default = {
|
|
3882
|
-
"
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3885
|
-
"
|
|
3886
|
-
"installBtn": "_3XaZHa_installBtn",
|
|
3887
|
-
"stateTitle": "_3XaZHa_stateTitle",
|
|
3888
|
-
"retryBtn": "_3XaZHa_retryBtn",
|
|
3889
|
+
"body": "_3XaZHa_body",
|
|
3890
|
+
"verified": "_3XaZHa_verified",
|
|
3891
|
+
"actions": "_3XaZHa_actions",
|
|
3892
|
+
"topic": "_3XaZHa_topic",
|
|
3889
3893
|
"cardSide": "_3XaZHa_cardSide",
|
|
3890
|
-
"
|
|
3891
|
-
"
|
|
3892
|
-
"
|
|
3893
|
-
"
|
|
3894
|
+
"uninstallBtn": "_3XaZHa_uninstallBtn",
|
|
3895
|
+
"footLink": "_3XaZHa_footLink",
|
|
3896
|
+
"versionBadge": "_3XaZHa_versionBadge",
|
|
3897
|
+
"desc": "_3XaZHa_desc",
|
|
3894
3898
|
"cardMain": "_3XaZHa_cardMain",
|
|
3895
|
-
"verified": "_3XaZHa_verified",
|
|
3896
|
-
"topic": "_3XaZHa_topic",
|
|
3897
|
-
"card": "_3XaZHa_card",
|
|
3898
|
-
"body": "_3XaZHa_body",
|
|
3899
3899
|
"fork": "_3XaZHa_fork",
|
|
3900
|
-
"
|
|
3901
|
-
"uninstallBtn": "_3XaZHa_uninstallBtn",
|
|
3902
|
-
"stats": "_3XaZHa_stats",
|
|
3903
|
-
"state": "_3XaZHa_state",
|
|
3900
|
+
"categoryBadge": "_3XaZHa_categoryBadge",
|
|
3904
3901
|
"stateDesc": "_3XaZHa_stateDesc",
|
|
3905
|
-
"
|
|
3906
|
-
"versionBadge": "_3XaZHa_versionBadge",
|
|
3902
|
+
"installBtnInstalled": "_3XaZHa_installBtnInstalled",
|
|
3907
3903
|
"topics": "_3XaZHa_topics",
|
|
3908
|
-
"
|
|
3909
|
-
"
|
|
3904
|
+
"cardHead": "_3XaZHa_cardHead",
|
|
3905
|
+
"stats": "_3XaZHa_stats",
|
|
3906
|
+
"list": "_3XaZHa_list",
|
|
3910
3907
|
"footer": "_3XaZHa_footer",
|
|
3911
|
-
"
|
|
3908
|
+
"state": "_3XaZHa_state",
|
|
3909
|
+
"updateBadge": "_3XaZHa_updateBadge",
|
|
3910
|
+
"retryBtn": "_3XaZHa_retryBtn",
|
|
3911
|
+
"stateTitle": "_3XaZHa_stateTitle",
|
|
3912
|
+
"card": "_3XaZHa_card",
|
|
3912
3913
|
"detailBtn": "_3XaZHa_detailBtn",
|
|
3913
|
-
"date": "_3XaZHa_date"
|
|
3914
|
+
"date": "_3XaZHa_date",
|
|
3915
|
+
"installBtnUpdate": "_3XaZHa_installBtnUpdate",
|
|
3916
|
+
"installBtnCopied": "_3XaZHa_installBtnCopied",
|
|
3917
|
+
"installBtn": "_3XaZHa_installBtn",
|
|
3918
|
+
"star": "_3XaZHa_star",
|
|
3919
|
+
"moreSentinel": "_3XaZHa_moreSentinel",
|
|
3920
|
+
"cardTitle": "_3XaZHa_cardTitle"
|
|
3914
3921
|
};
|
|
3915
3922
|
//#endregion
|
|
3916
3923
|
//#region src/client/hooks/useIncrementalList.ts
|
|
@@ -4112,14 +4119,14 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4112
4119
|
css: css$8
|
|
4113
4120
|
});
|
|
4114
4121
|
var SectionTabs_module_css_default = {
|
|
4115
|
-
"
|
|
4116
|
-
"tabIcon": "_7tvizq_tabIcon",
|
|
4122
|
+
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4117
4123
|
"noticeBtn": "_7tvizq_noticeBtn",
|
|
4118
4124
|
"noticeIcon": "_7tvizq_noticeIcon",
|
|
4119
4125
|
"tabActive": "_7tvizq_tabActive",
|
|
4120
4126
|
"tabCount": "_7tvizq_tabCount",
|
|
4127
|
+
"tabIcon": "_7tvizq_tabIcon",
|
|
4128
|
+
"root": "_7tvizq_root",
|
|
4121
4129
|
"tab": "_7tvizq_tab",
|
|
4122
|
-
"tabCountActive": "_7tvizq_tabCountActive",
|
|
4123
4130
|
"noticeCount": "_7tvizq_noticeCount"
|
|
4124
4131
|
};
|
|
4125
4132
|
//#endregion
|
|
@@ -4197,42 +4204,42 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4197
4204
|
css: css$7
|
|
4198
4205
|
});
|
|
4199
4206
|
var InstalledView_module_css_default = {
|
|
4200
|
-
"
|
|
4201
|
-
"empty": "_1nXeGW_empty",
|
|
4202
|
-
"segGroup": "_1nXeGW_segGroup",
|
|
4207
|
+
"searchWrap": "_1nXeGW_searchWrap",
|
|
4203
4208
|
"toolbar": "_1nXeGW_toolbar",
|
|
4204
|
-
"statusDot": "_1nXeGW_statusDot",
|
|
4205
|
-
"list": "_1nXeGW_list",
|
|
4206
4209
|
"segBtnActive": "_1nXeGW_segBtnActive",
|
|
4207
|
-
"
|
|
4208
|
-
"rowSourceTag": "_1nXeGW_rowSourceTag",
|
|
4209
|
-
"searchInput": "_1nXeGW_searchInput",
|
|
4210
|
-
"segBtn": "_1nXeGW_segBtn",
|
|
4211
|
-
"emptyTitle": "_1nXeGW_emptyTitle",
|
|
4210
|
+
"rowRepo": "_1nXeGW_rowRepo",
|
|
4212
4211
|
"row": "_1nXeGW_row",
|
|
4213
|
-
"
|
|
4214
|
-
"
|
|
4215
|
-
"
|
|
4212
|
+
"rowSourceTagManual": "_1nXeGW_rowSourceTagManual",
|
|
4213
|
+
"root": "_1nXeGW_root",
|
|
4214
|
+
"versionBadge": "_1nXeGW_versionBadge",
|
|
4215
|
+
"rowMain": "_1nXeGW_rowMain",
|
|
4216
|
+
"rowSourceTag": "_1nXeGW_rowSourceTag",
|
|
4217
|
+
"segRow": "_1nXeGW_segRow",
|
|
4218
|
+
"emptyDesc": "_1nXeGW_emptyDesc",
|
|
4216
4219
|
"rowRestart": "_1nXeGW_rowRestart",
|
|
4217
4220
|
"rowSourceTagHub": "_1nXeGW_rowSourceTagHub",
|
|
4218
|
-
"
|
|
4219
|
-
"
|
|
4220
|
-
"
|
|
4221
|
+
"rowCategory": "_1nXeGW_rowCategory",
|
|
4222
|
+
"empty": "_1nXeGW_empty",
|
|
4223
|
+
"searchInput": "_1nXeGW_searchInput",
|
|
4221
4224
|
"updateBadge": "_1nXeGW_updateBadge",
|
|
4225
|
+
"emptyTitle": "_1nXeGW_emptyTitle",
|
|
4222
4226
|
"rowActions": "_1nXeGW_rowActions",
|
|
4223
|
-
"
|
|
4224
|
-
"
|
|
4225
|
-
"
|
|
4227
|
+
"rowUninstall": "_1nXeGW_rowUninstall",
|
|
4228
|
+
"rowTitleLine": "_1nXeGW_rowTitleLine",
|
|
4229
|
+
"exampleBadge": "_1nXeGW_exampleBadge",
|
|
4226
4230
|
"statusInactive": "_1nXeGW_statusInactive",
|
|
4227
|
-
"
|
|
4228
|
-
"
|
|
4229
|
-
"rowSourceTagManual": "_1nXeGW_rowSourceTagManual",
|
|
4231
|
+
"segGroup": "_1nXeGW_segGroup",
|
|
4232
|
+
"rowDetail": "_1nXeGW_rowDetail",
|
|
4230
4233
|
"rowMeta": "_1nXeGW_rowMeta",
|
|
4231
|
-
"rowUninstall": "_1nXeGW_rowUninstall",
|
|
4232
|
-
"segLabel": "_1nXeGW_segLabel",
|
|
4233
4234
|
"rowTitle": "_1nXeGW_rowTitle",
|
|
4235
|
+
"segLabel": "_1nXeGW_segLabel",
|
|
4236
|
+
"statusDot": "_1nXeGW_statusDot",
|
|
4237
|
+
"statusPending": "_1nXeGW_statusPending",
|
|
4238
|
+
"list": "_1nXeGW_list",
|
|
4234
4239
|
"rowUpdate": "_1nXeGW_rowUpdate",
|
|
4235
|
-
"
|
|
4240
|
+
"segBtn": "_1nXeGW_segBtn",
|
|
4241
|
+
"exampleRow": "_1nXeGW_exampleRow",
|
|
4242
|
+
"rowDesc": "_1nXeGW_rowDesc"
|
|
4236
4243
|
};
|
|
4237
4244
|
//#endregion
|
|
4238
4245
|
//#region src/client/components/views/InstalledView.tsx
|
|
@@ -4463,7 +4470,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4463
4470
|
}
|
|
4464
4471
|
//#endregion
|
|
4465
4472
|
//#region \0dsh-css:src/client/styles/CustomInstallView.module.css.mjs
|
|
4466
|
-
const css$6 = ".zISxCG_root{flex-direction:column;gap:10px;min-width:0;max-width:560px;display:flex}.zISxCG_desc{color:var(--hub-text-tertiary);margin:0;font-size:12px;line-height:18px}.zISxCG_installCards{flex-direction:column;flex-shrink:0;gap:10px;min-width:0;display:flex}.zISxCG_installCard{background:var(--hub-bg-1);border:1px solid var(--hub-border-1);border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}.zISxCG_installCardHead{align-items:center;min-width:0;display:flex}.zISxCG_installLabel{color:var(--hub-text-primary);font-size:12px;font-weight:600;line-height:18px}.zISxCG_installHelpBtn{width:18px;height:18px;color:var(--hub-text-tertiary);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:1px solid #0000;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-left:6px;padding:0;transition:color .12s,background .12s,border-color .12s;display:inline-flex}.zISxCG_installHelpBtn:hover{color:var(--hub-brand);background:var(--hub-brand-tint);border-color:var(--hub-brand-border-soft)}.zISxCG_installExample{color:var(--hub-text-tertiary);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11px;line-height:16px;overflow:hidden}.zISxCG_installRow{align-items:center;gap:8px;min-width:0;display:flex}.zISxCG_installInput{min-width:0;height:28px;color:var(--hub-text-primary);border:1px solid var(--hub-border-2);background:0 0;border-radius:6px;outline:none;flex:auto;padding:0 9px;font-size:12px;line-height:26px;transition:border-color .12s}.zISxCG_installInput::placeholder{color:var(--hub-text-tertiary)}.zISxCG_installInput:focus{border-color:var(--hub-brand)}.zISxCG_installInputError,.zISxCG_installInputError:focus{border-color:var(--hub-danger-text)}.zISxCG_installBtn{color:#fff;background:var(--hub-brand);cursor:pointer;-webkit-user-select:none;user-select:none;border:none;border-radius:6px;flex-shrink:0;padding:5px 14px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;transition:background .12s,opacity .12s}.zISxCG_installBtn:hover{background:var(--hub-brand-hover)}.zISxCG_installBtn:disabled{opacity:.45;cursor:default}.zISxCG_installCardDisabled{opacity:.8}.zISxCG_channelOff{min-width:0;color:var(--hub-warn);background:var(--hub-warn-tint);border:1px solid var(--hub-warn-border);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:6px 9px;font-size:12px;line-height:16px;display:flex}.zISxCG_channelOffText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.zISxCG_channelOffBtn{color:var(--hub-warn-strong);border:1px solid var(--hub-warn-border);cursor:pointer;white-space:nowrap;background:0 0;border-radius:6px;flex-shrink:0;padding:3px 10px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;transition:background .12s,color .12s}.zISxCG_channelOffBtn:hover{background:var(--hub-warn-tint);color:var(--hub-warn)}.zISxCG_installError{color:var(--hub-danger-text);background:var(--hub-danger-tint);border:1px solid var(--hub-danger-border);border-radius:6px;padding:5px 8px;font-size:12px;line-height:16px}.zISxCG_helpBody{flex-direction:column;gap:7px;padding:4px 2px;display:flex}.zISxCG_helpLine{align-items:baseline;gap:12px;min-width:0;font-size:12px;line-height:20px;display:flex}.zISxCG_helpCmd{color:var(--hub-text-primary);white-space:nowrap;flex-shrink:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.zISxCG_helpNote{min-width:0;color:var(--hub-text-tertiary);font-size:11px}";
|
|
4473
|
+
const css$6 = ".zISxCG_root{flex-direction:column;gap:10px;min-width:0;max-width:560px;display:flex}.zISxCG_desc{color:var(--hub-text-tertiary);margin:0;font-size:12px;line-height:18px}.zISxCG_installCards{flex-direction:column;flex-shrink:0;gap:10px;min-width:0;display:flex}.zISxCG_installCard{background:var(--hub-bg-1);border:1px solid var(--hub-border-1);border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}.zISxCG_installCardHead{align-items:center;min-width:0;display:flex}.zISxCG_installLabel{color:var(--hub-text-primary);font-size:12px;font-weight:600;line-height:18px}.zISxCG_installHelpBtn{width:18px;height:18px;color:var(--hub-text-tertiary);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:1px solid #0000;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-left:6px;padding:0;transition:color .12s,background .12s,border-color .12s;display:inline-flex}.zISxCG_installHelpBtn:hover{color:var(--hub-brand);background:var(--hub-brand-tint);border-color:var(--hub-brand-border-soft)}.zISxCG_installInsertBtn{color:var(--hub-text-secondary);border:1px solid var(--hub-border-2);cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;background:0 0;border-radius:6px;flex-shrink:0;margin-left:auto;padding:2px 9px;font-family:inherit;font-size:11px;font-weight:500;line-height:16px;transition:color .12s,border-color .12s,background .12s}.zISxCG_installInsertBtn:hover{color:var(--hub-brand);border-color:var(--hub-brand-border-soft);background:var(--hub-brand-tint)}.zISxCG_installExample{color:var(--hub-text-tertiary);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11px;line-height:16px;overflow:hidden}.zISxCG_installRow{align-items:center;gap:8px;min-width:0;display:flex}.zISxCG_installInput{min-width:0;height:28px;color:var(--hub-text-primary);border:1px solid var(--hub-border-2);background:0 0;border-radius:6px;outline:none;flex:auto;padding:0 9px;font-size:12px;line-height:26px;transition:border-color .12s}.zISxCG_installInput::placeholder{color:var(--hub-text-tertiary)}.zISxCG_installInput:focus{border-color:var(--hub-brand)}.zISxCG_installInputError,.zISxCG_installInputError:focus{border-color:var(--hub-danger-text)}.zISxCG_installBtn{color:#fff;background:var(--hub-brand);cursor:pointer;-webkit-user-select:none;user-select:none;border:none;border-radius:6px;flex-shrink:0;padding:5px 14px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;transition:background .12s,opacity .12s}.zISxCG_installBtn:hover{background:var(--hub-brand-hover)}.zISxCG_installBtn:disabled{opacity:.45;cursor:default}.zISxCG_installCardDisabled{opacity:.8}.zISxCG_channelOff{min-width:0;color:var(--hub-warn);background:var(--hub-warn-tint);border:1px solid var(--hub-warn-border);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:6px 9px;font-size:12px;line-height:16px;display:flex}.zISxCG_channelOffText{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.zISxCG_channelOffBtn{color:var(--hub-warn-strong);border:1px solid var(--hub-warn-border);cursor:pointer;white-space:nowrap;background:0 0;border-radius:6px;flex-shrink:0;padding:3px 10px;font-family:inherit;font-size:12px;font-weight:500;line-height:18px;transition:background .12s,color .12s}.zISxCG_channelOffBtn:hover{background:var(--hub-warn-tint);color:var(--hub-warn)}.zISxCG_installError{color:var(--hub-danger-text);background:var(--hub-danger-tint);border:1px solid var(--hub-danger-border);border-radius:6px;padding:5px 8px;font-size:12px;line-height:16px}.zISxCG_helpBody{flex-direction:column;gap:7px;padding:4px 2px;display:flex}.zISxCG_helpLine{align-items:baseline;gap:12px;min-width:0;font-size:12px;line-height:20px;display:flex}.zISxCG_helpCmd{color:var(--hub-text-primary);white-space:nowrap;flex-shrink:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.zISxCG_helpNote{min-width:0;color:var(--hub-text-tertiary);font-size:11px}";
|
|
4467
4474
|
const tagId$6 = "dsh-plugin/CustomInstallView.module.css";
|
|
4468
4475
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
4469
4476
|
const tag = document.createElement("style");
|
|
@@ -4478,27 +4485,28 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4478
4485
|
css: css$6
|
|
4479
4486
|
});
|
|
4480
4487
|
var CustomInstallView_module_css_default = {
|
|
4481
|
-
"
|
|
4482
|
-
"
|
|
4483
|
-
"installCards": "zISxCG_installCards",
|
|
4488
|
+
"helpBody": "zISxCG_helpBody",
|
|
4489
|
+
"helpCmd": "zISxCG_helpCmd",
|
|
4484
4490
|
"helpNote": "zISxCG_helpNote",
|
|
4485
|
-
"installBtn": "zISxCG_installBtn",
|
|
4486
|
-
"installExample": "zISxCG_installExample",
|
|
4487
|
-
"installCardDisabled": "zISxCG_installCardDisabled",
|
|
4488
|
-
"channelOffText": "zISxCG_channelOffText",
|
|
4489
|
-
"channelOffBtn": "zISxCG_channelOffBtn",
|
|
4490
|
-
"helpLine": "zISxCG_helpLine",
|
|
4491
|
-
"root": "zISxCG_root",
|
|
4492
4491
|
"channelOff": "zISxCG_channelOff",
|
|
4493
|
-
"
|
|
4494
|
-
"
|
|
4495
|
-
"installCardHead": "zISxCG_installCardHead",
|
|
4496
|
-
"helpBody": "zISxCG_helpBody",
|
|
4492
|
+
"installInsertBtn": "zISxCG_installInsertBtn",
|
|
4493
|
+
"installError": "zISxCG_installError",
|
|
4497
4494
|
"installCard": "zISxCG_installCard",
|
|
4498
4495
|
"installRow": "zISxCG_installRow",
|
|
4496
|
+
"helpLine": "zISxCG_helpLine",
|
|
4497
|
+
"root": "zISxCG_root",
|
|
4498
|
+
"installExample": "zISxCG_installExample",
|
|
4499
|
+
"installCards": "zISxCG_installCards",
|
|
4500
|
+
"installCardDisabled": "zISxCG_installCardDisabled",
|
|
4501
|
+
"installCardHead": "zISxCG_installCardHead",
|
|
4499
4502
|
"desc": "zISxCG_desc",
|
|
4500
4503
|
"installHelpBtn": "zISxCG_installHelpBtn",
|
|
4501
|
-
"
|
|
4504
|
+
"installInput": "zISxCG_installInput",
|
|
4505
|
+
"installInputError": "zISxCG_installInputError",
|
|
4506
|
+
"channelOffText": "zISxCG_channelOffText",
|
|
4507
|
+
"installLabel": "zISxCG_installLabel",
|
|
4508
|
+
"channelOffBtn": "zISxCG_channelOffBtn",
|
|
4509
|
+
"installBtn": "zISxCG_installBtn"
|
|
4502
4510
|
};
|
|
4503
4511
|
//#endregion
|
|
4504
4512
|
//#region src/client/components/views/CustomInstallView.tsx
|
|
@@ -4526,20 +4534,27 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4526
4534
|
const GITHUB_BARE_RE = /^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/;
|
|
4527
4535
|
/** npm 包名(含 @scope/pkg) */
|
|
4528
4536
|
const NPM_PACKAGE_RE = /^(?:@[a-z0-9._-]+\/)?[a-z0-9._-]+$/;
|
|
4529
|
-
/** DSH 命令行前缀(官方唯一形式 `dsh plugin --profile <name> add <target>`)——
|
|
4537
|
+
/** DSH 命令行前缀(官方唯一形式 `dsh plugin --profile <name> <add|update> <target>`)—— 提取其中的动作与目标。
|
|
4530
4538
|
* 官方 CLI(apps/cli/src/args.ts,commander):--profile 为必填长选项(无 -p 简写,省略即报错),
|
|
4531
|
-
* 支持 `--profile=<name>`
|
|
4532
|
-
|
|
4539
|
+
* 支持 `--profile=<name>` 等号形式;命令大小写不敏感。update = 已安装目标覆盖更新到最新;
|
|
4540
|
+
* remove 不走这里(卸载由「已安装」列表的卸载按钮执行,命令框不认卸载动词)。
|
|
4541
|
+
* 与 server 端 installTargetOf 口径一致。 */
|
|
4542
|
+
const DSH_PLUGIN_CMD_RE = /^dsh\s+plugin\s+--profile(?:\s+|=)\S+\s+(add|update)\s+(.+)$/i;
|
|
4533
4543
|
/** npm 全局安装命令(官方 README 格式,如 `npm install -g @deepseek-ai/dsh @deepseek-harness-tui/dsh-tui`)——
|
|
4534
4544
|
* 提取 -g 之后的包列表;任一包名非法返回 null(交给格式错误提示)。与 server 端 globalNpmPackagesOf 口径一致。 */
|
|
4535
4545
|
const NPM_GLOBAL_CMD_RE = /^npm\s+(?:install|i)\s+(?:-g|--global)\s+(.+)$/i;
|
|
4536
4546
|
/** 常规 npm/pnpm 安装命令(装进当前 profile,如 `npm install lodash`、`pnpm add @scope/pkg`)——
|
|
4537
4547
|
* 提取命令后的包列表;包列表在 splitPackages 里逐个校验。 */
|
|
4538
4548
|
const NPM_INSTALL_CMD_RE = /^(?:npm\s+(?:install|i)|pnpm\s+(?:add|i|install))\s+(.+)$/i;
|
|
4539
|
-
|
|
4549
|
+
/** 解析 DSH 命令:返回 { action, target };非官方命令返回 null(交给格式错误提示)。 */
|
|
4550
|
+
function parseDshCommand(raw) {
|
|
4540
4551
|
const input = raw.trim();
|
|
4541
4552
|
const match = DSH_PLUGIN_CMD_RE.exec(input);
|
|
4542
|
-
|
|
4553
|
+
if (match === null) return null;
|
|
4554
|
+
return {
|
|
4555
|
+
action: match[1].toLowerCase(),
|
|
4556
|
+
target: match[2].trim()
|
|
4557
|
+
};
|
|
4543
4558
|
}
|
|
4544
4559
|
/** 空格分隔的包列表:逐个按 npm 包名语法校验 + 拒绝以 - 开头的 token(npm 会把 --xxx 当参数而非包名),
|
|
4545
4560
|
* 任一非法返回 null(交给格式错误提示)。与 server 端 globalNpmPackagesOf 同口径。 */
|
|
@@ -4578,9 +4593,6 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4578
4593
|
const input = raw.trim();
|
|
4579
4594
|
return GITHUB_URL_RE.test(input) || GITHUB_BARE_RE.test(input);
|
|
4580
4595
|
}
|
|
4581
|
-
function isDshCommand(raw) {
|
|
4582
|
-
return DSH_PLUGIN_CMD_RE.test(raw.trim());
|
|
4583
|
-
}
|
|
4584
4596
|
/** 卡片标题旁的「帮助」弹窗:三块卡片各自的标题与格式清单语言包 key。 */
|
|
4585
4597
|
const HELP_CARDS = {
|
|
4586
4598
|
npm: {
|
|
@@ -4596,7 +4608,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4596
4608
|
contentKey: "dshCmdHelp"
|
|
4597
4609
|
}
|
|
4598
4610
|
};
|
|
4599
|
-
function CustomInstallView({ t, onInstallCustom, enableNpm, enableGit, enableDsh, onOpenSettings }) {
|
|
4611
|
+
function CustomInstallView({ t, onInstallCustom, enableNpm, enableGit, enableDsh, onOpenSettings, profile }) {
|
|
4600
4612
|
/** 自定义安装:NPM 包输入与格式错误('' = 无错误) */
|
|
4601
4613
|
const [npmQuery, setNpmQuery] = (0, react.useState)("");
|
|
4602
4614
|
const [npmError, setNpmError] = (0, react.useState)("");
|
|
@@ -4641,14 +4653,20 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4641
4653
|
const submitCmd = () => {
|
|
4642
4654
|
const raw = cmdQuery.trim();
|
|
4643
4655
|
if (!raw) return;
|
|
4644
|
-
|
|
4656
|
+
const parsed = parseDshCommand(raw);
|
|
4657
|
+
if (parsed === null) {
|
|
4645
4658
|
setCmdError(t("dshCmdInvalid"));
|
|
4646
4659
|
return;
|
|
4647
4660
|
}
|
|
4648
|
-
onInstallCustom(
|
|
4661
|
+
onInstallCustom(parsed.target);
|
|
4649
4662
|
setCmdQuery("");
|
|
4650
4663
|
setCmdError("");
|
|
4651
4664
|
};
|
|
4665
|
+
/** 一键插入 DSH Plugin Hub 自身的更新命令:按当前 profile 拼官方命令填进输入框,用户确认后提交 */
|
|
4666
|
+
const insertHubUpdate = () => {
|
|
4667
|
+
setCmdQuery(`dsh plugin --profile ${profile} update dsh-plugin`);
|
|
4668
|
+
setCmdError("");
|
|
4669
|
+
};
|
|
4652
4670
|
return (0, react.createElement)("div", { className: CustomInstallView_module_css_default.root }, (0, react.createElement)("p", { className: CustomInstallView_module_css_default.desc }, t("customViewDesc")), (0, react.createElement)("div", { className: CustomInstallView_module_css_default.installCards }, (0, react.createElement)("div", { className: enableNpm ? CustomInstallView_module_css_default.installCard : `${CustomInstallView_module_css_default.installCard} ${CustomInstallView_module_css_default.installCardDisabled}` }, (0, react.createElement)("div", { className: CustomInstallView_module_css_default.installCardHead }, (0, react.createElement)("span", { className: CustomInstallView_module_css_default.installLabel }, t("npmInstallLabel")), (0, react.createElement)("button", {
|
|
4653
4671
|
type: "button",
|
|
4654
4672
|
className: CustomInstallView_module_css_default.installHelpBtn,
|
|
@@ -4711,7 +4729,11 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4711
4729
|
title: t("installHelp"),
|
|
4712
4730
|
"aria-label": t("installHelp"),
|
|
4713
4731
|
onClick: () => setHelpFor("cmd")
|
|
4714
|
-
}, (0, react.createElement)(HelpIcon))
|
|
4732
|
+
}, (0, react.createElement)(HelpIcon)), enableDsh ? (0, react.createElement)("button", {
|
|
4733
|
+
type: "button",
|
|
4734
|
+
className: CustomInstallView_module_css_default.installInsertBtn,
|
|
4735
|
+
onClick: insertHubUpdate
|
|
4736
|
+
}, t("dshCmdInsertHubUpdate")) : null), !enableDsh ? channelOffRow : [
|
|
4715
4737
|
(0, react.createElement)("div", { className: CustomInstallView_module_css_default.installExample }, t("dshCmdExample")),
|
|
4716
4738
|
(0, react.createElement)("div", { className: CustomInstallView_module_css_default.installRow }, (0, react.createElement)("input", {
|
|
4717
4739
|
className: cmdError ? `${CustomInstallView_module_css_default.installInput} ${CustomInstallView_module_css_default.installInputError}` : CustomInstallView_module_css_default.installInput,
|
|
@@ -4771,26 +4793,26 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4771
4793
|
css: css$5
|
|
4772
4794
|
});
|
|
4773
4795
|
var SettingsView_module_css_default = {
|
|
4774
|
-
"pageHeader": "_506LLG_pageHeader",
|
|
4775
|
-
"navItemActive": "_506LLG_navItemActive",
|
|
4776
4796
|
"controlDropdown": "_506LLG_controlDropdown",
|
|
4777
|
-
"
|
|
4778
|
-
"
|
|
4797
|
+
"settingTitle": "_506LLG_settingTitle",
|
|
4798
|
+
"settingControl": "_506LLG_settingControl",
|
|
4799
|
+
"settingControlStack": "_506LLG_settingControlStack",
|
|
4800
|
+
"sidebar": "_506LLG_sidebar",
|
|
4801
|
+
"navItemActive": "_506LLG_navItemActive",
|
|
4779
4802
|
"settingLabel": "_506LLG_settingLabel",
|
|
4780
|
-
"
|
|
4781
|
-
"
|
|
4782
|
-
"settingRowStack": "_506LLG_settingRowStack",
|
|
4803
|
+
"card": "_506LLG_card",
|
|
4804
|
+
"pageTitle": "_506LLG_pageTitle",
|
|
4783
4805
|
"navIcon": "_506LLG_navIcon",
|
|
4784
|
-
"
|
|
4806
|
+
"pageHeader": "_506LLG_pageHeader",
|
|
4807
|
+
"pageDesc": "_506LLG_pageDesc",
|
|
4808
|
+
"textInput": "_506LLG_textInput",
|
|
4809
|
+
"root": "_506LLG_root",
|
|
4785
4810
|
"navItem": "_506LLG_navItem",
|
|
4786
|
-
"settingControlStack": "_506LLG_settingControlStack",
|
|
4787
|
-
"content": "_506LLG_content",
|
|
4788
4811
|
"settingDesc": "_506LLG_settingDesc",
|
|
4789
4812
|
"resetBtn": "_506LLG_resetBtn",
|
|
4790
|
-
"
|
|
4791
|
-
"
|
|
4792
|
-
"
|
|
4793
|
-
"pageTitle": "_506LLG_pageTitle"
|
|
4813
|
+
"content": "_506LLG_content",
|
|
4814
|
+
"settingRow": "_506LLG_settingRow",
|
|
4815
|
+
"settingRowStack": "_506LLG_settingRowStack"
|
|
4794
4816
|
};
|
|
4795
4817
|
//#endregion
|
|
4796
4818
|
//#region \0dsh-css:src/client/styles/Dropdown.module.css.mjs
|
|
@@ -4809,16 +4831,16 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4809
4831
|
css: css$4
|
|
4810
4832
|
});
|
|
4811
4833
|
var Dropdown_module_css_default = {
|
|
4834
|
+
"dropdownArrow": "B_Gxsq_dropdownArrow",
|
|
4835
|
+
"dropdownItemActive": "B_Gxsq_dropdownItemActive",
|
|
4812
4836
|
"dropdownLabel": "B_Gxsq_dropdownLabel",
|
|
4813
|
-
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
4814
|
-
"dropdownArrowOpen": "B_Gxsq_dropdownArrowOpen",
|
|
4815
|
-
"dropdown": "B_Gxsq_dropdown",
|
|
4816
4837
|
"dropdownCount": "B_Gxsq_dropdownCount",
|
|
4817
|
-
"dropdownItemActive": "B_Gxsq_dropdownItemActive",
|
|
4818
4838
|
"dropdownBtn": "B_Gxsq_dropdownBtn",
|
|
4819
|
-
"
|
|
4839
|
+
"dropdown": "B_Gxsq_dropdown",
|
|
4820
4840
|
"dropdownPanel": "B_Gxsq_dropdownPanel",
|
|
4821
|
-
"
|
|
4841
|
+
"dropdownCountActive": "B_Gxsq_dropdownCountActive",
|
|
4842
|
+
"dropdownItem": "B_Gxsq_dropdownItem",
|
|
4843
|
+
"dropdownArrowOpen": "B_Gxsq_dropdownArrowOpen",
|
|
4822
4844
|
"dropdownItemLabel": "B_Gxsq_dropdownItemLabel"
|
|
4823
4845
|
};
|
|
4824
4846
|
//#endregion
|
|
@@ -4897,9 +4919,9 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4897
4919
|
css: css$3
|
|
4898
4920
|
});
|
|
4899
4921
|
var Toggle_module_css_default = {
|
|
4900
|
-
"toggle": "k-cD4G_toggle",
|
|
4901
4922
|
"knob": "k-cD4G_knob",
|
|
4902
|
-
"toggleOn": "k-cD4G_toggleOn"
|
|
4923
|
+
"toggleOn": "k-cD4G_toggleOn",
|
|
4924
|
+
"toggle": "k-cD4G_toggle"
|
|
4903
4925
|
};
|
|
4904
4926
|
//#endregion
|
|
4905
4927
|
//#region src/client/components/ui/Toggle.tsx
|
|
@@ -4940,29 +4962,29 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
4940
4962
|
css: css$2
|
|
4941
4963
|
});
|
|
4942
4964
|
var DiagnosticsView_module_css_default = {
|
|
4965
|
+
"panel": "k9eRya_panel",
|
|
4943
4966
|
"summaryRunning": "k9eRya_summaryRunning",
|
|
4944
|
-
"envDesc": "k9eRya_envDesc",
|
|
4945
|
-
"name": "k9eRya_name",
|
|
4946
|
-
"row": "k9eRya_row",
|
|
4947
|
-
"meta": "k9eRya_meta",
|
|
4948
|
-
"badge": "k9eRya_badge",
|
|
4949
|
-
"badgeOk": "k9eRya_badgeOk",
|
|
4950
4967
|
"envRow": "k9eRya_envRow",
|
|
4951
|
-
"badgeIdle": "k9eRya_badgeIdle",
|
|
4952
|
-
"badgeRunning": "k9eRya_badgeRunning",
|
|
4953
|
-
"summary": "k9eRya_summary",
|
|
4954
|
-
"envTitle": "k9eRya_envTitle",
|
|
4955
|
-
"runBtn": "k9eRya_runBtn",
|
|
4956
|
-
"diagPulse": "k9eRya_diagPulse",
|
|
4957
|
-
"head": "k9eRya_head",
|
|
4958
|
-
"envCopyBtn": "k9eRya_envCopyBtn",
|
|
4959
|
-
"panel": "k9eRya_panel",
|
|
4960
4968
|
"headHint": "k9eRya_headHint",
|
|
4969
|
+
"runBtn": "k9eRya_runBtn",
|
|
4961
4970
|
"display": "k9eRya_display",
|
|
4971
|
+
"badge": "k9eRya_badge",
|
|
4972
|
+
"envCopyBtn": "k9eRya_envCopyBtn",
|
|
4973
|
+
"envDesc": "k9eRya_envDesc",
|
|
4974
|
+
"diagPulse": "k9eRya_diagPulse",
|
|
4975
|
+
"envLabel": "k9eRya_envLabel",
|
|
4962
4976
|
"summaryOk": "k9eRya_summaryOk",
|
|
4977
|
+
"head": "k9eRya_head",
|
|
4963
4978
|
"summaryFail": "k9eRya_summaryFail",
|
|
4979
|
+
"row": "k9eRya_row",
|
|
4980
|
+
"badgeOk": "k9eRya_badgeOk",
|
|
4981
|
+
"summary": "k9eRya_summary",
|
|
4982
|
+
"envTitle": "k9eRya_envTitle",
|
|
4983
|
+
"badgeIdle": "k9eRya_badgeIdle",
|
|
4964
4984
|
"badgeFail": "k9eRya_badgeFail",
|
|
4965
|
-
"
|
|
4985
|
+
"badgeRunning": "k9eRya_badgeRunning",
|
|
4986
|
+
"name": "k9eRya_name",
|
|
4987
|
+
"meta": "k9eRya_meta"
|
|
4966
4988
|
};
|
|
4967
4989
|
//#endregion
|
|
4968
4990
|
//#region src/client/components/views/DiagnosticsView.tsx
|
|
@@ -5125,57 +5147,57 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
5125
5147
|
css: css$1
|
|
5126
5148
|
});
|
|
5127
5149
|
var LogsView_module_css_default = {
|
|
5128
|
-
"
|
|
5129
|
-
"
|
|
5150
|
+
"badgeError": "_3j77BW_badgeError",
|
|
5151
|
+
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5152
|
+
"search": "_3j77BW_search",
|
|
5153
|
+
"catUpdate": "_3j77BW_catUpdate",
|
|
5130
5154
|
"more": "_3j77BW_more",
|
|
5131
|
-
"catBadge": "_3j77BW_catBadge",
|
|
5132
5155
|
"panel": "_3j77BW_panel",
|
|
5133
|
-
"
|
|
5134
|
-
"
|
|
5156
|
+
"entry": "_3j77BW_entry",
|
|
5157
|
+
"filterChip": "_3j77BW_filterChip",
|
|
5158
|
+
"event": "_3j77BW_event",
|
|
5159
|
+
"pathDialogRow": "_3j77BW_pathDialogRow",
|
|
5160
|
+
"foot": "_3j77BW_foot",
|
|
5161
|
+
"pathDialogReset": "_3j77BW_pathDialogReset",
|
|
5162
|
+
"actions": "_3j77BW_actions",
|
|
5163
|
+
"badgeWarn": "_3j77BW_badgeWarn",
|
|
5164
|
+
"catUninstall": "_3j77BW_catUninstall",
|
|
5165
|
+
"catSettings": "_3j77BW_catSettings",
|
|
5166
|
+
"clearBtn": "_3j77BW_clearBtn",
|
|
5135
5167
|
"pathLabel": "_3j77BW_pathLabel",
|
|
5168
|
+
"logList": "_3j77BW_logList",
|
|
5169
|
+
"footCount": "_3j77BW_footCount",
|
|
5136
5170
|
"catInstall": "_3j77BW_catInstall",
|
|
5137
|
-
"
|
|
5138
|
-
"
|
|
5139
|
-
"pathDraft": "_3j77BW_pathDraft",
|
|
5171
|
+
"previewRow": "_3j77BW_previewRow",
|
|
5172
|
+
"badgeInfo": "_3j77BW_badgeInfo",
|
|
5140
5173
|
"moreEnd": "_3j77BW_moreEnd",
|
|
5141
|
-
"pathText": "_3j77BW_pathText",
|
|
5142
|
-
"badgeWarn": "_3j77BW_badgeWarn",
|
|
5143
5174
|
"catSystem": "_3j77BW_catSystem",
|
|
5144
|
-
"
|
|
5145
|
-
"
|
|
5146
|
-
"
|
|
5175
|
+
"footFail": "_3j77BW_footFail",
|
|
5176
|
+
"btn": "_3j77BW_btn",
|
|
5177
|
+
"catBadge": "_3j77BW_catBadge",
|
|
5178
|
+
"pathDraft": "_3j77BW_pathDraft",
|
|
5179
|
+
"linkBtn": "_3j77BW_linkBtn",
|
|
5147
5180
|
"head": "_3j77BW_head",
|
|
5148
|
-
"
|
|
5149
|
-
"
|
|
5150
|
-
"previewRow": "_3j77BW_previewRow",
|
|
5151
|
-
"actions": "_3j77BW_actions",
|
|
5152
|
-
"headActions": "_3j77BW_headActions",
|
|
5153
|
-
"pathRow": "_3j77BW_pathRow",
|
|
5181
|
+
"badge": "_3j77BW_badge",
|
|
5182
|
+
"list": "_3j77BW_list",
|
|
5154
5183
|
"searchInput": "_3j77BW_searchInput",
|
|
5155
|
-
"
|
|
5156
|
-
"
|
|
5157
|
-
"
|
|
5158
|
-
"pathDialogHint": "_3j77BW_pathDialogHint",
|
|
5159
|
-
"footCount": "_3j77BW_footCount",
|
|
5184
|
+
"catDiagnostics": "_3j77BW_catDiagnostics",
|
|
5185
|
+
"empty": "_3j77BW_empty",
|
|
5186
|
+
"footActions": "_3j77BW_footActions",
|
|
5160
5187
|
"badgeSuccess": "_3j77BW_badgeSuccess",
|
|
5161
5188
|
"badgeDebug": "_3j77BW_badgeDebug",
|
|
5162
|
-
"
|
|
5163
|
-
"
|
|
5164
|
-
"
|
|
5165
|
-
"
|
|
5166
|
-
"
|
|
5167
|
-
"badgeError": "_3j77BW_badgeError",
|
|
5168
|
-
"badgeInfo": "_3j77BW_badgeInfo",
|
|
5169
|
-
"search": "_3j77BW_search",
|
|
5170
|
-
"catUninstall": "_3j77BW_catUninstall",
|
|
5171
|
-
"catUpdate": "_3j77BW_catUpdate",
|
|
5172
|
-
"catDiagnostics": "_3j77BW_catDiagnostics",
|
|
5173
|
-
"clearBtn": "_3j77BW_clearBtn",
|
|
5189
|
+
"pathDialogFoot": "_3j77BW_pathDialogFoot",
|
|
5190
|
+
"footPath": "_3j77BW_footPath",
|
|
5191
|
+
"pathText": "_3j77BW_pathText",
|
|
5192
|
+
"filterBar": "_3j77BW_filterBar",
|
|
5193
|
+
"pathRow": "_3j77BW_pathRow",
|
|
5174
5194
|
"pathDialog": "_3j77BW_pathDialog",
|
|
5175
|
-
"
|
|
5176
|
-
"
|
|
5177
|
-
"
|
|
5178
|
-
"
|
|
5195
|
+
"filterChipActive": "_3j77BW_filterChipActive",
|
|
5196
|
+
"time": "_3j77BW_time",
|
|
5197
|
+
"headActions": "_3j77BW_headActions",
|
|
5198
|
+
"message": "_3j77BW_message",
|
|
5199
|
+
"headHint": "_3j77BW_headHint",
|
|
5200
|
+
"pathDialogDesc": "_3j77BW_pathDialogDesc"
|
|
5179
5201
|
};
|
|
5180
5202
|
//#endregion
|
|
5181
5203
|
//#region src/client/components/modals/LogsModal.tsx
|
|
@@ -6321,6 +6343,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6321
6343
|
enableGit: hubSettings.enableGitInstall,
|
|
6322
6344
|
enableDsh: hubSettings.enableDshInstall,
|
|
6323
6345
|
onOpenSettings: () => setView("settings"),
|
|
6346
|
+
profile: env?.profile ?? "web",
|
|
6324
6347
|
onInstallCustom: (raw, opts) => {
|
|
6325
6348
|
const target = raw.trim();
|
|
6326
6349
|
if (!target) return;
|
|
@@ -6353,7 +6376,7 @@ window.__ModuleLoader__.load({ id: "dsh-plugin", factory: (require) => {
|
|
|
6353
6376
|
});
|
|
6354
6377
|
}
|
|
6355
6378
|
}), showHubUpdate && (0, react.createElement)(HubUpdateModal, {
|
|
6356
|
-
info: catalog.hubUpdateInfo ?? { version: "1.3.
|
|
6379
|
+
info: catalog.hubUpdateInfo ?? { version: "1.3.5" },
|
|
6357
6380
|
lang,
|
|
6358
6381
|
t,
|
|
6359
6382
|
hasUpdate: catalog.hubHasUpdate,
|