@songtonyli/dsh-cli 0.1.54 → 0.1.55
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.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +61 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +49 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +207 -207
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +153 -153
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +74 -74
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +80 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +39 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +23 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +31 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +139 -139
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +11 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +182 -182
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +128 -128
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +49 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +87 -87
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +41 -41
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +24 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +42 -42
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +44 -44
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +25 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +70 -70
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +99 -99
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +197 -197
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +73 -73
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +92 -92
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +11 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +4 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +32 -32
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +24 -24
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DxezulnA.js +1324 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +30 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +68 -0
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +22 -0
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +1525 -0
- package/package.json +1 -1
|
@@ -1057,8 +1057,8 @@ window.__ModuleLoader__.load({
|
|
|
1057
1057
|
return title === "default-workspace" ? localizedDefault : title;
|
|
1058
1058
|
}
|
|
1059
1059
|
//#endregion
|
|
1060
|
-
//#region \0dsh-css:/
|
|
1061
|
-
const css$3 = ".
|
|
1060
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/Rows.module.css.mjs
|
|
1061
|
+
const css$3 = ".wyiY7G_projectRow,.wyiY7G_sessionRow{border-radius:var(--dsw-radius-md);padding:0 8px;cursor:pointer;user-select:none;color:var(--dsw-alias-label-primary);align-items:center;gap:6px;padding-inline-start:calc(8px + var(--dsh-workspace-indent,0px));display:flex}.wyiY7G_projectRow:hover,.wyiY7G_sessionRow:hover,.wyiY7G_sessionRow.wyiY7G_selected{background:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_searchResultRow{box-sizing:border-box;border-radius:var(--dsw-radius-lg);cursor:pointer;text-align:left;width:100%;min-height:48px;color:var(--dsw-alias-label-primary);background:0 0;border:none;flex-direction:column;align-items:stretch;padding:4px 8px;display:flex}.wyiY7G_searchResultRow:hover,.wyiY7G_searchResultRow.wyiY7G_selected{background:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_searchResultHeading{align-items:center;min-width:0;display:flex}.wyiY7G_searchResultTitle{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;margin-left:4px;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_searchResultMeta{align-items:center;gap:6px;min-width:0;margin-left:20px;display:flex}.wyiY7G_searchResultWorkspace,.wyiY7G_searchResultSnippet{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.wyiY7G_searchResultWorkspace{max-width:40%;color:var(--dsw-alias-label-tertiary);flex:none}.wyiY7G_searchResultWorkspace:only-child{max-width:100%}.wyiY7G_searchResultSnippet{min-width:0;color:var(--dsw-alias-label-secondary);flex:1}.wyiY7G_projectRow{box-sizing:border-box;align-items:center;height:34px}.wyiY7G_projectRow .wyiY7G_rowActions{height:20px}.wyiY7G_sessionRow{gap:0;height:32px}.wyiY7G_sessionRow .wyiY7G_title{margin:0 6px 0 4px}.wyiY7G_slot{width:16px;height:20px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;display:inline-flex}.wyiY7G_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wyiY7G_folderActive{color:var(--dsw-alias-state-business-primary)}.wyiY7G_projectRow .wyiY7G_chevron{display:none}.wyiY7G_projectRow:hover .wyiY7G_chevron{display:inline-flex}.wyiY7G_projectRow:hover .wyiY7G_folder{display:none}.wyiY7G_arrow{transition:transform .15s var(--ds-ease-in-out)}.wyiY7G_arrowOpen{transform:rotate(90deg)}.wyiY7G_projectText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.wyiY7G_title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_renameInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-button-elevated-fill);min-width:0;color:inherit;outline:none;padding:0 2px;font-size:14px;line-height:20px}.wyiY7G_sessionRow .wyiY7G_title{flex:1}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled]{mask-image:linear-gradient(90deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-clipped]{mask-image:linear-gradient(270deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled][data-clipped]{mask-image:linear-gradient(90deg,#0000,#000 12px calc(100% - 12px),#0000)}.wyiY7G_meta{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow:hidden}.wyiY7G_time{color:var(--dsw-alias-label-tertiary);flex:none;font-size:10px;line-height:16px}.wyiY7G_pinIndicator{width:16px;height:20px;color:var(--dsw-alias-label-caption);flex:none;justify-content:center;align-items:center;margin-left:6px;display:inline-flex}.wyiY7G_sessionRow.wyiY7G_archived .wyiY7G_title,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultTitle,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultWorkspace,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultSnippet{color:var(--dsw-alias-label-caption)}.wyiY7G_dot{flex:none}.wyiY7G_rowActions{flex:none;align-items:center;gap:10px;display:none}.wyiY7G_projectRow:hover .wyiY7G_rowActions,.wyiY7G_sessionRow:hover .wyiY7G_rowActions,.wyiY7G_searchResultRow:hover .wyiY7G_rowActions,.wyiY7G_projectRow.wyiY7G_menuOpen .wyiY7G_rowActions,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_rowActions{display:inline-flex}.wyiY7G_searchResultHeading .wyiY7G_rowActions{margin-left:auto}.wyiY7G_sessionRow:hover .wyiY7G_time,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_time,.wyiY7G_sessionRow:hover .wyiY7G_pinIndicator,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_pinIndicator{display:none}@media (hover:hover){.wyiY7G_sessionRow:hover .wyiY7G_title,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_title{text-overflow:clip}}.wyiY7G_projectRow.wyiY7G_menuOpen,.wyiY7G_sessionRow.wyiY7G_menuOpen{background:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_sessionRow.wyiY7G_dropBefore,.wyiY7G_sessionRow.wyiY7G_dropAfter{position:relative}.wyiY7G_sessionRow.wyiY7G_dropBefore:before,.wyiY7G_sessionRow.wyiY7G_dropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:4px}.wyiY7G_sessionRow.wyiY7G_dropBefore:before{top:-7px}.wyiY7G_sessionRow.wyiY7G_dropAfter:after{bottom:-7px}.wyiY7G_hoverContent{flex-direction:column;gap:8px;display:flex}.wyiY7G_hoverTitle{color:#fff;overflow-wrap:break-word;font-size:14px;line-height:20px}.wyiY7G_hoverPath{color:#cfd3d6;word-break:break-all;font-size:12px;line-height:16px}.wyiY7G_hoverTime{color:#cfd3d6;font-size:12px;line-height:16px}.wyiY7G_hoverStatus{color:#adb2b8;align-items:center;gap:8px;font-size:12px;line-height:20px;display:flex}.wyiY7G_hoverArchived svg{flex-shrink:0;margin:0 -4px}.wyiY7G_iconButton{border-radius:var(--dsw-radius-xs);cursor:pointer;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wyiY7G_iconButton:hover{color:var(--dsw-alias-label-primary)}.wyiY7G_chevron{color:var(--dsw-alias-label-caption)}@media (prefers-reduced-motion:reduce){.wyiY7G_arrow{transition:none;animation:none}}";
|
|
1062
1062
|
const tagId$3 = "@deepseek-ai/dsh-client-ui-workspace/Rows.module.css";
|
|
1063
1063
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
1064
1064
|
const tag = document.createElement("style");
|
|
@@ -1068,41 +1068,41 @@ window.__ModuleLoader__.load({
|
|
|
1068
1068
|
document.head.appendChild(tag);
|
|
1069
1069
|
}
|
|
1070
1070
|
var Rows_module_css_default = {
|
|
1071
|
-
"archived": "
|
|
1072
|
-
"arrow": "
|
|
1073
|
-
"arrowOpen": "
|
|
1074
|
-
"chevron": "
|
|
1075
|
-
"dot": "
|
|
1076
|
-
"dropAfter": "
|
|
1077
|
-
"dropBefore": "
|
|
1078
|
-
"folder": "
|
|
1079
|
-
"folderActive": "
|
|
1080
|
-
"hoverArchived": "
|
|
1081
|
-
"hoverContent": "
|
|
1082
|
-
"hoverPath": "
|
|
1083
|
-
"hoverStatus": "
|
|
1084
|
-
"hoverTime": "
|
|
1085
|
-
"hoverTitle": "
|
|
1086
|
-
"iconButton": "
|
|
1087
|
-
"menuOpen": "
|
|
1088
|
-
"meta": "
|
|
1089
|
-
"pinIndicator": "
|
|
1090
|
-
"projectRow": "
|
|
1091
|
-
"projectText": "
|
|
1092
|
-
"renameInput": "
|
|
1093
|
-
"rowActions": "
|
|
1094
|
-
"searchResultHeading": "
|
|
1095
|
-
"searchResultMeta": "
|
|
1096
|
-
"searchResultRow": "
|
|
1097
|
-
"searchResultSnippet": "
|
|
1098
|
-
"searchResultTitle": "
|
|
1099
|
-
"searchResultWorkspace": "
|
|
1100
|
-
"selected": "
|
|
1101
|
-
"sessionRow": "
|
|
1102
|
-
"slot": "
|
|
1103
|
-
"time": "
|
|
1104
|
-
"title": "
|
|
1105
|
-
"visuallyHidden": "
|
|
1071
|
+
"archived": "wyiY7G_archived",
|
|
1072
|
+
"arrow": "wyiY7G_arrow",
|
|
1073
|
+
"arrowOpen": "wyiY7G_arrowOpen",
|
|
1074
|
+
"chevron": "wyiY7G_chevron",
|
|
1075
|
+
"dot": "wyiY7G_dot",
|
|
1076
|
+
"dropAfter": "wyiY7G_dropAfter",
|
|
1077
|
+
"dropBefore": "wyiY7G_dropBefore",
|
|
1078
|
+
"folder": "wyiY7G_folder",
|
|
1079
|
+
"folderActive": "wyiY7G_folderActive",
|
|
1080
|
+
"hoverArchived": "wyiY7G_hoverArchived",
|
|
1081
|
+
"hoverContent": "wyiY7G_hoverContent",
|
|
1082
|
+
"hoverPath": "wyiY7G_hoverPath",
|
|
1083
|
+
"hoverStatus": "wyiY7G_hoverStatus",
|
|
1084
|
+
"hoverTime": "wyiY7G_hoverTime",
|
|
1085
|
+
"hoverTitle": "wyiY7G_hoverTitle",
|
|
1086
|
+
"iconButton": "wyiY7G_iconButton",
|
|
1087
|
+
"menuOpen": "wyiY7G_menuOpen",
|
|
1088
|
+
"meta": "wyiY7G_meta",
|
|
1089
|
+
"pinIndicator": "wyiY7G_pinIndicator",
|
|
1090
|
+
"projectRow": "wyiY7G_projectRow",
|
|
1091
|
+
"projectText": "wyiY7G_projectText",
|
|
1092
|
+
"renameInput": "wyiY7G_renameInput",
|
|
1093
|
+
"rowActions": "wyiY7G_rowActions",
|
|
1094
|
+
"searchResultHeading": "wyiY7G_searchResultHeading",
|
|
1095
|
+
"searchResultMeta": "wyiY7G_searchResultMeta",
|
|
1096
|
+
"searchResultRow": "wyiY7G_searchResultRow",
|
|
1097
|
+
"searchResultSnippet": "wyiY7G_searchResultSnippet",
|
|
1098
|
+
"searchResultTitle": "wyiY7G_searchResultTitle",
|
|
1099
|
+
"searchResultWorkspace": "wyiY7G_searchResultWorkspace",
|
|
1100
|
+
"selected": "wyiY7G_selected",
|
|
1101
|
+
"sessionRow": "wyiY7G_sessionRow",
|
|
1102
|
+
"slot": "wyiY7G_slot",
|
|
1103
|
+
"time": "wyiY7G_time",
|
|
1104
|
+
"title": "wyiY7G_title",
|
|
1105
|
+
"visuallyHidden": "wyiY7G_visuallyHidden"
|
|
1106
1106
|
};
|
|
1107
1107
|
//#endregion
|
|
1108
1108
|
//#region lib/types/client/rows/Rows.js
|
|
@@ -1683,8 +1683,8 @@ window.__ModuleLoader__.load({
|
|
|
1683
1683
|
});
|
|
1684
1684
|
}
|
|
1685
1685
|
//#endregion
|
|
1686
|
-
//#region \0dsh-css:/
|
|
1687
|
-
const css$2 = ".
|
|
1686
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/AnimatedRows.module.css.mjs
|
|
1687
|
+
const css$2 = ".HjF8SG_exits{contain:strict;pointer-events:none;position:absolute;inset:0;overflow:clip}";
|
|
1688
1688
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-workspace/AnimatedRows.module.css";
|
|
1689
1689
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
1690
1690
|
const tag = document.createElement("style");
|
|
@@ -1693,7 +1693,7 @@ window.__ModuleLoader__.load({
|
|
|
1693
1693
|
tag.textContent = css$2;
|
|
1694
1694
|
document.head.appendChild(tag);
|
|
1695
1695
|
}
|
|
1696
|
-
var AnimatedRows_module_css_default = { "exits": "
|
|
1696
|
+
var AnimatedRows_module_css_default = { "exits": "HjF8SG_exits" };
|
|
1697
1697
|
//#endregion
|
|
1698
1698
|
//#region lib/types/client/rows/AnimatedRows.js
|
|
1699
1699
|
/** React-commit-driven movement and entry/exit fades for the sidebar's keyed rows. */
|
|
@@ -1859,8 +1859,8 @@ window.__ModuleLoader__.load({
|
|
|
1859
1859
|
}
|
|
1860
1860
|
};
|
|
1861
1861
|
//#endregion
|
|
1862
|
-
//#region \0dsh-css:/
|
|
1863
|
-
const css$1 = ".
|
|
1862
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/WorkspacePicker.module.css.mjs
|
|
1863
|
+
const css$1 = ".E6FAYG_modalAction{min-width:72px}.E6FAYG_modalError,.E6FAYG_menuStatus{margin-top:8px;font-size:12px;line-height:18px}.E6FAYG_modalError{color:var(--dsw-alias-state-error-primary)}.E6FAYG_menuStatus{color:var(--dsw-alias-label-secondary)}";
|
|
1864
1864
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-workspace/WorkspacePicker.module.css";
|
|
1865
1865
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
1866
1866
|
const tag = document.createElement("style");
|
|
@@ -1870,9 +1870,9 @@ window.__ModuleLoader__.load({
|
|
|
1870
1870
|
document.head.appendChild(tag);
|
|
1871
1871
|
}
|
|
1872
1872
|
var WorkspacePicker_module_css_default = {
|
|
1873
|
-
"menuStatus": "
|
|
1874
|
-
"modalAction": "
|
|
1875
|
-
"modalError": "
|
|
1873
|
+
"menuStatus": "E6FAYG_menuStatus",
|
|
1874
|
+
"modalAction": "E6FAYG_modalAction",
|
|
1875
|
+
"modalError": "E6FAYG_modalError"
|
|
1876
1876
|
};
|
|
1877
1877
|
//#endregion
|
|
1878
1878
|
//#region lib/types/client/WorkspacePicker.js
|
|
@@ -2032,8 +2032,8 @@ window.__ModuleLoader__.load({
|
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
2034
|
//#endregion
|
|
2035
|
-
//#region \0dsh-css:/
|
|
2036
|
-
const css = ".
|
|
2035
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/WorkspaceBrowser.module.css.mjs
|
|
2036
|
+
const css = ".BpFSpG_root{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding);--dsh-session-list-scrollbar-width:5px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;min-height:0;padding-right:var(--dsh-session-list-edge-inset);flex-direction:column;flex:1;display:flex}.BpFSpG_root.BpFSpG_rail{padding-right:0}.BpFSpG_iconButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_iconButton:focus-visible,.BpFSpG_searchButton:focus-visible,.BpFSpG_clearButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.BpFSpG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_viewOptionsMenu{min-width:200px}.BpFSpG_sectionHeader{box-sizing:border-box;border-radius:var(--dsw-radius-md);height:36px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:4px;padding-left:4px;display:flex;overflow:hidden}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader{margin-top:2px;margin-right:-4px}.BpFSpG_sectionLabel{white-space:nowrap;opacity:1;visibility:visible;min-width:0;max-width:45%;transition:max-width .18s var(--ds-ease-in-out), margin-right .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;line-height:20px;overflow:hidden}.BpFSpG_sectionLabelHidden{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transition-delay:0s,0s,0s,0s,.18s;transform:translate(-4px)}.BpFSpG_searchSlot{box-sizing:border-box;min-width:0;max-width:28px;transition:max-width .18s var(--ds-ease-in-out), padding-left .18s var(--ds-ease-in-out);flex:1;align-items:center;margin-left:auto;padding-left:0;display:flex}.BpFSpG_searchSlotExpanded{max-width:100%;padding-left:0}.BpFSpG_headerActions{opacity:1;visibility:visible;max-width:60px;transition:max-width .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:hidden}.BpFSpG_headerActionsHidden{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transition-delay:0s,0s,0s,.18s;transform:translate(4px)}.BpFSpG_search{box-sizing:border-box;border-radius:var(--dsw-radius-sm);cursor:text;width:100%;height:28px;color:var(--dsw-alias-label-secondary);transition:width .18s var(--ds-ease-in-out), padding .18s var(--ds-ease-in-out), border-color .18s var(--ds-ease-in-out), background-color .18s var(--ds-ease-in-out);background:0 0;border:none;flex:none;align-items:center;gap:0;margin:0;padding:0;display:flex;overflow:hidden}.BpFSpG_searchExpanded{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:calc(100% + 4px);height:30px;color:var(--dsw-alias-label-caption);background:0 0;margin-inline:-2px;padding:0 4px 0 0}.BpFSpG_searchButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:inherit;background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_searchExpanded .BpFSpG_searchButton{width:28px;height:30px}.BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_searchExpanded .BpFSpG_searchButton:hover{background:0 0}.BpFSpG_searchInput{opacity:0;pointer-events:none;width:0;min-width:0;color:var(--dsw-alias-label-primary);transition:opacity .12s var(--ds-ease-in-out);background:0 0;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.BpFSpG_searchExpanded .BpFSpG_searchInput{opacity:1;pointer-events:auto;margin-left:-2px}.BpFSpG_searchInput::placeholder{color:var(--dsw-alias-label-tertiary)}.BpFSpG_clearButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_clearButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_rail .BpFSpG_sectionHeader{justify-content:flex-start;gap:0;margin-bottom:12px;padding-left:0}.BpFSpG_rail .BpFSpG_headerActions{max-width:none}.BpFSpG_rail .BpFSpG_iconButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}.BpFSpG_rail .BpFSpG_search{border-radius:var(--dsw-radius-md);background:0 0;border-color:#0000;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.BpFSpG_rail .BpFSpG_searchButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}.BpFSpG_rail .BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_listArea{min-height:0;margin-left:-4px;margin-right:calc(-1 * var(--dsh-session-list-edge-inset));flex-direction:column;flex:1;padding-left:4px;display:flex;overflow:visible}.BpFSpG_rail .BpFSpG_listArea{margin-left:0;margin-right:0;padding-left:0}.BpFSpG_treeBody{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.BpFSpG_fade{left:0;right:var(--dsh-session-list-edge-inset);background:linear-gradient(to bottom, transparent, var(--dsw-specific-sidebar-fill));pointer-events:none;height:24px;position:absolute;bottom:0}[data-platform=darwin] .BpFSpG_fade{display:none}.BpFSpG_wide{animation:BpFSpG_wide-in .2s var(--ds-ease-in-out)}@keyframes BpFSpG_wide-in{0%{opacity:0}}.BpFSpG_list{min-height:0;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);padding-left:4px;padding-right:calc(var(--dsh-session-list-edge-inset) - var(--dsh-session-list-scrollbar-width) - var(--dsh-session-list-scrollbar-offset));scrollbar-gutter:stable;flex:1;padding-bottom:16px;overflow-y:auto}.BpFSpG_flatList>*+*,.BpFSpG_searchTree>[role=treeitem]+[role=treeitem],.BpFSpG_groupSection>*+*{margin-top:2px}.BpFSpG_searchStatus{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.BpFSpG_skeletonRow{box-sizing:border-box;align-items:flex-start;gap:8px;min-height:48px;padding:6px 8px 7px;display:flex}.BpFSpG_skeletonDot{corner-shape:round;border-radius:50%;flex:none;width:16px;height:16px}.BpFSpG_skeletonBars{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{background:var(--dsw-alias-bg-skeleton);animation:2s cubic-bezier(.36,0,.64,1) infinite BpFSpG_search-skeleton}.BpFSpG_skeletonBar{border-radius:var(--dsw-radius-xs);width:65%;height:16px}.BpFSpG_skeletonBarWide{width:90%;height:13px}@keyframes BpFSpG_search-skeleton{0%{opacity:1}40%{opacity:.6}80%,to{opacity:1}}.BpFSpG_groupSection{position:relative}.BpFSpG_groupSection+.BpFSpG_groupSection{margin-top:4px}.BpFSpG_listTopDropIndicator,.BpFSpG_workspaceDropBefore:before,.BpFSpG_workspaceDropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:0}.BpFSpG_listTopDropIndicator{top:-8px;left:0;right:var(--dsh-session-list-edge-inset)}.BpFSpG_listTopDropActive>.BpFSpG_workspaceDropBefore:first-child:before{display:none}.BpFSpG_workspaceDropBefore:before{top:-8px}.BpFSpG_workspaceDropAfter:after{bottom:-8px}.BpFSpG_sessionOverflowButton{border-radius:var(--dsw-radius-sm);width:100%;height:28px;padding:0 12px 0 calc(28px + var(--dsh-workspace-indent,0px));cursor:pointer;text-align:left;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;font-size:12px}.BpFSpG_groupSection>.BpFSpG_sessionOverflowButton{margin-top:0}.BpFSpG_sessionOverflowButton:hover{color:var(--dsw-alias-label-secondary);background:0 0}.BpFSpG_empty{color:var(--dsw-alias-label-tertiary);padding:16px 12px;font-size:13px}.BpFSpG_emptyState{color:var(--dsw-alias-label-tertiary);flex-direction:column;align-items:center;gap:8px;margin-top:80px;padding:0 12px;font-size:13px;line-height:20px;display:flex}.BpFSpG_emptyState>svg{color:var(--dsw-alias-label-caption);margin-bottom:4px}.BpFSpG_emptyAction{cursor:pointer;color:var(--dsw-alias-link);background:0 0;border:none;padding:0;font-size:13px;line-height:20px}.BpFSpG_renameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);width:100%;height:44px;color:var(--dsw-alias-label-primary);background:0 0;outline:none;padding:7px 14px;font-size:14px;font-weight:400;line-height:22px}.BpFSpG_renameInput:disabled{color:var(--dsw-alias-label-dimmed)}.BpFSpG_renameError{color:var(--dsw-alias-state-error-primary);margin-top:8px;font-size:12px;line-height:18px}.BpFSpG_deleteAction:not(:disabled){color:var(--dsw-alias-state-error-primary)}.BpFSpG_deleteStatus{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.BpFSpG_archiveActivity{color:var(--dsw-alias-label-primary);margin:0 0 8px;padding-left:18px;font-size:13px;line-height:20px}.BpFSpG_archiveActivity li{overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.BpFSpG_wide,.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{animation:none}.BpFSpG_search,.BpFSpG_sectionLabel,.BpFSpG_searchSlot,.BpFSpG_searchInput,.BpFSpG_headerActions{transition:none}}";
|
|
2037
2037
|
const tagId = "@deepseek-ai/dsh-client-ui-workspace/WorkspaceBrowser.module.css";
|
|
2038
2038
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
2039
2039
|
const tag = document.createElement("style");
|
|
@@ -2043,51 +2043,51 @@ window.__ModuleLoader__.load({
|
|
|
2043
2043
|
document.head.appendChild(tag);
|
|
2044
2044
|
}
|
|
2045
2045
|
var WorkspaceBrowser_module_css_default = {
|
|
2046
|
-
"archiveActivity": "
|
|
2047
|
-
"clearButton": "
|
|
2048
|
-
"deleteAction": "
|
|
2049
|
-
"deleteStatus": "
|
|
2050
|
-
"empty": "
|
|
2051
|
-
"emptyAction": "
|
|
2052
|
-
"emptyState": "
|
|
2053
|
-
"fade": "
|
|
2054
|
-
"flatList": "
|
|
2055
|
-
"groupSection": "
|
|
2056
|
-
"headerActions": "
|
|
2057
|
-
"headerActionsHidden": "
|
|
2058
|
-
"iconButton": "
|
|
2059
|
-
"list": "
|
|
2060
|
-
"listArea": "
|
|
2061
|
-
"listTopDropActive": "
|
|
2062
|
-
"listTopDropIndicator": "
|
|
2063
|
-
"rail": "
|
|
2064
|
-
"renameError": "
|
|
2065
|
-
"renameInput": "
|
|
2066
|
-
"root": "
|
|
2067
|
-
"search": "
|
|
2068
|
-
"search-skeleton": "
|
|
2069
|
-
"searchButton": "
|
|
2070
|
-
"searchExpanded": "
|
|
2071
|
-
"searchInput": "
|
|
2072
|
-
"searchSlot": "
|
|
2073
|
-
"searchSlotExpanded": "
|
|
2074
|
-
"searchStatus": "
|
|
2075
|
-
"searchTree": "
|
|
2076
|
-
"sectionHeader": "
|
|
2077
|
-
"sectionLabel": "
|
|
2078
|
-
"sectionLabelHidden": "
|
|
2079
|
-
"sessionOverflowButton": "
|
|
2080
|
-
"skeletonBar": "
|
|
2081
|
-
"skeletonBarWide": "
|
|
2082
|
-
"skeletonBars": "
|
|
2083
|
-
"skeletonDot": "
|
|
2084
|
-
"skeletonRow": "
|
|
2085
|
-
"treeBody": "
|
|
2086
|
-
"viewOptionsMenu": "
|
|
2087
|
-
"wide": "
|
|
2088
|
-
"wide-in": "
|
|
2089
|
-
"workspaceDropAfter": "
|
|
2090
|
-
"workspaceDropBefore": "
|
|
2046
|
+
"archiveActivity": "BpFSpG_archiveActivity",
|
|
2047
|
+
"clearButton": "BpFSpG_clearButton",
|
|
2048
|
+
"deleteAction": "BpFSpG_deleteAction",
|
|
2049
|
+
"deleteStatus": "BpFSpG_deleteStatus",
|
|
2050
|
+
"empty": "BpFSpG_empty",
|
|
2051
|
+
"emptyAction": "BpFSpG_emptyAction",
|
|
2052
|
+
"emptyState": "BpFSpG_emptyState",
|
|
2053
|
+
"fade": "BpFSpG_fade",
|
|
2054
|
+
"flatList": "BpFSpG_flatList",
|
|
2055
|
+
"groupSection": "BpFSpG_groupSection",
|
|
2056
|
+
"headerActions": "BpFSpG_headerActions",
|
|
2057
|
+
"headerActionsHidden": "BpFSpG_headerActionsHidden",
|
|
2058
|
+
"iconButton": "BpFSpG_iconButton",
|
|
2059
|
+
"list": "BpFSpG_list",
|
|
2060
|
+
"listArea": "BpFSpG_listArea",
|
|
2061
|
+
"listTopDropActive": "BpFSpG_listTopDropActive",
|
|
2062
|
+
"listTopDropIndicator": "BpFSpG_listTopDropIndicator",
|
|
2063
|
+
"rail": "BpFSpG_rail",
|
|
2064
|
+
"renameError": "BpFSpG_renameError",
|
|
2065
|
+
"renameInput": "BpFSpG_renameInput",
|
|
2066
|
+
"root": "BpFSpG_root",
|
|
2067
|
+
"search": "BpFSpG_search",
|
|
2068
|
+
"search-skeleton": "BpFSpG_search-skeleton",
|
|
2069
|
+
"searchButton": "BpFSpG_searchButton",
|
|
2070
|
+
"searchExpanded": "BpFSpG_searchExpanded",
|
|
2071
|
+
"searchInput": "BpFSpG_searchInput",
|
|
2072
|
+
"searchSlot": "BpFSpG_searchSlot",
|
|
2073
|
+
"searchSlotExpanded": "BpFSpG_searchSlotExpanded",
|
|
2074
|
+
"searchStatus": "BpFSpG_searchStatus",
|
|
2075
|
+
"searchTree": "BpFSpG_searchTree",
|
|
2076
|
+
"sectionHeader": "BpFSpG_sectionHeader",
|
|
2077
|
+
"sectionLabel": "BpFSpG_sectionLabel",
|
|
2078
|
+
"sectionLabelHidden": "BpFSpG_sectionLabelHidden",
|
|
2079
|
+
"sessionOverflowButton": "BpFSpG_sessionOverflowButton",
|
|
2080
|
+
"skeletonBar": "BpFSpG_skeletonBar",
|
|
2081
|
+
"skeletonBarWide": "BpFSpG_skeletonBarWide",
|
|
2082
|
+
"skeletonBars": "BpFSpG_skeletonBars",
|
|
2083
|
+
"skeletonDot": "BpFSpG_skeletonDot",
|
|
2084
|
+
"skeletonRow": "BpFSpG_skeletonRow",
|
|
2085
|
+
"treeBody": "BpFSpG_treeBody",
|
|
2086
|
+
"viewOptionsMenu": "BpFSpG_viewOptionsMenu",
|
|
2087
|
+
"wide": "BpFSpG_wide",
|
|
2088
|
+
"wide-in": "BpFSpG_wide-in",
|
|
2089
|
+
"workspaceDropAfter": "BpFSpG_workspaceDropAfter",
|
|
2090
|
+
"workspaceDropBefore": "BpFSpG_workspaceDropBefore"
|
|
2091
2091
|
};
|
|
2092
2092
|
//#endregion
|
|
2093
2093
|
//#region lib/types/client/rows/WorkspaceBrowser.js
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
en: 7ec217b1012cd8fa
|
|
37
37
|
zh: 6188796b4990f2ef
|
|
38
38
|
/deepseek-ai-dsh-experimental-auto-review/model-experience/per-call-reviewer/what-the-model-sees:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: f77cfa836d8f9aef
|
|
40
|
+
zh: fd93d0afcac4fb64
|
|
41
41
|
/deepseek-ai-dsh-experimental-auto-review/model-experience/per-call-reviewer/token-effect:
|
|
42
42
|
en: 9c3e575c061d53fe
|
|
43
43
|
zh: 74db1c5a77b2d2a7
|
|
@@ -84,7 +84,7 @@ No runtime invariant companion is published: this single effect owns selection a
|
|
|
84
84
|
|
|
85
85
|
#### What the model sees
|
|
86
86
|
|
|
87
|
-
The reviewer uses the latest `request/header.config` provider and model with the shipped adapter's default reasoning. Its fixed `REVIEW_POLICY` replaces human approval for exactly one action: allow executes immediately with Full access. The other four sections contain only the retained facts described above. It returns one strict JSON text object with `risk` and `decision`; deny may include a string `reason`. Reasoning blocks may precede that single text block. Only `low + allow`, `medium + allow/deny`, and `high + deny` are valid.
|
|
87
|
+
The reviewer uses the latest `request/header.config` provider and model with the shipped adapter's default reasoning. The `temperature` setting accepts numbers from `0` through `2` or `provider-default`, which omits the request parameter; the plugin defaults to `0`, while the bundle selects `provider-default` only for the `tui` profile so providers that reject temperature can review calls. Its fixed `REVIEW_POLICY` replaces human approval for exactly one action: allow executes immediately with Full access. The other four sections contain only the retained facts described above. It returns one strict JSON text object with `risk` and `decision`; deny may include a string `reason`. Reasoning blocks may precede that single text block. Only `low + allow`, `medium + allow/deny`, and `high + deny` are valid.
|
|
88
88
|
|
|
89
89
|
#### Token effect
|
|
90
90
|
|
|
@@ -84,7 +84,7 @@ Reviewer 从当前 Session surface 与待执行调用重建五个分区:固定
|
|
|
84
84
|
|
|
85
85
|
#### 模型看到什么
|
|
86
86
|
|
|
87
|
-
Reviewer 使用最新 `request/header.config` 的 provider 与模型,并沿用 shipped adapter 默认 reasoning
|
|
87
|
+
Reviewer 使用最新 `request/header.config` 的 provider 与模型,并沿用 shipped adapter 默认 reasoning。`temperature` 设置接受 `0` 到 `2` 的数值或 `provider-default`;后者省略请求参数。插件默认值为 `0`,bundle 仅在 `tui` profile 中选择 `provider-default`,使不接受 temperature 的 provider 也能审查调用。固定 `REVIEW_POLICY` 替代恰好一个动作的人工审批:allow 后立即以 Full access 执行。其余四个分区只包含上文列出的保留事实。响应为一个严格 JSON text 对象,包含 `risk` 与 `decision`;deny 可附字符串 `reason`。Reasoning blocks 可以位于这唯一 text block 之前。只有 `low + allow`、`medium + allow/deny` 和 `high + deny` 合法。
|
|
88
88
|
|
|
89
89
|
#### Token 影响
|
|
90
90
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import z from "@deepseek-ai/schemastery";
|
|
1
2
|
import { BlockAssembler } from "@deepseek-ai/dsh-llm";
|
|
2
3
|
import { deepFreeze } from "@deepseek-ai/dsh-util-values";
|
|
3
4
|
import { AUTO_PRESET } from "@deepseek-ai/dsh-permission-presets";
|
|
@@ -49,6 +50,11 @@ const inject = [
|
|
|
49
50
|
"sessions",
|
|
50
51
|
"tools"
|
|
51
52
|
];
|
|
53
|
+
/** Validate reviewer sampling configuration. */
|
|
54
|
+
const Config = z.object({ temperature: z.union([z.transform(z.number().min(0).max(2), (value) => {
|
|
55
|
+
if (!Number.isFinite(value)) throw new Error("reviewer temperature must be finite");
|
|
56
|
+
return value;
|
|
57
|
+
}), z.const("provider-default")]).default(0) });
|
|
52
58
|
/** Return JSON text for one immutable logged value. */
|
|
53
59
|
function json(value) {
|
|
54
60
|
const rendered = JSON.stringify(value, null, 2);
|
|
@@ -399,7 +405,7 @@ async function readDecision(stream) {
|
|
|
399
405
|
return parseDecision(final.text);
|
|
400
406
|
}
|
|
401
407
|
/** Review one frozen pending action with the fixed policy and current LLM route. */
|
|
402
|
-
async function classifyRisk(ctx, agent, exec, signal) {
|
|
408
|
+
async function classifyRisk(ctx, agent, exec, signal, config) {
|
|
403
409
|
const snapshot = snapshotAutoReview(agent, exec);
|
|
404
410
|
const options = deepFreeze({
|
|
405
411
|
provider: snapshot.provider,
|
|
@@ -412,7 +418,7 @@ async function classifyRisk(ctx, agent, exec, signal) {
|
|
|
412
418
|
text: reviewUserText(snapshot)
|
|
413
419
|
}]
|
|
414
420
|
}],
|
|
415
|
-
temperature:
|
|
421
|
+
...config.temperature === "provider-default" ? {} : { temperature: config.temperature },
|
|
416
422
|
signal
|
|
417
423
|
});
|
|
418
424
|
return readDecision(ctx.llm.stream(options));
|
|
@@ -456,7 +462,7 @@ function failed(exec, error) {
|
|
|
456
462
|
};
|
|
457
463
|
}
|
|
458
464
|
/** Install the Auto preset and its prepended per-call review gate. */
|
|
459
|
-
function apply(ctx) {
|
|
465
|
+
function apply(ctx, config) {
|
|
460
466
|
const permissionPresets = ctx.permissionPresets;
|
|
461
467
|
let accepting = true;
|
|
462
468
|
const active = /* @__PURE__ */ new Set();
|
|
@@ -470,7 +476,7 @@ function apply(ctx) {
|
|
|
470
476
|
const completed = Promise.withResolvers();
|
|
471
477
|
active.add(completed.promise);
|
|
472
478
|
try {
|
|
473
|
-
const review = await classifyRisk(ctx, agent, exec, AbortSignal.any([exec.signal, lifecycle.signal])).then((decision) => ({
|
|
479
|
+
const review = await classifyRisk(ctx, agent, exec, AbortSignal.any([exec.signal, lifecycle.signal]), config).then((decision) => ({
|
|
474
480
|
ok: true,
|
|
475
481
|
decision
|
|
476
482
|
}), (error) => ({
|
|
@@ -508,4 +514,4 @@ function apply(ctx) {
|
|
|
508
514
|
}, "auto-review lifecycle");
|
|
509
515
|
}
|
|
510
516
|
//#endregion
|
|
511
|
-
export { apply, inject, name };
|
|
517
|
+
export { Config, apply, inject, name };
|
|
@@ -39,9 +39,13 @@
|
|
|
39
39
|
"@deepseek-ai/cordis": "4.0.4"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@deepseek-ai/schemastery": "3.18.4",
|
|
42
43
|
"@deepseek-ai/dsh-util-values": "0.2.0-rc.2"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
46
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.9",
|
|
47
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.5",
|
|
48
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
45
49
|
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
46
50
|
"@deepseek-ai/dsh-agent-instructions": "0.2.0-rc.2",
|
|
47
51
|
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
|
|
@@ -8,8 +8,8 @@ window.__ModuleLoader__.load({
|
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_dom = require("react-dom");
|
|
10
10
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
11
|
-
//#region \0dsh-css:/
|
|
12
|
-
const css = ".
|
|
11
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/experimental/client-ui-agent-team/src/client/TeamAction.module.css.mjs
|
|
12
|
+
const css = "._6oYBGa_root{position:relative}._6oYBGa_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:3px 7px;font-size:12px;display:inline-flex}._6oYBGa_trigger:hover,._6oYBGa_trigger:focus-visible{color:var(--dsw-alias-label-primary)}@container (width<=480px){._6oYBGa_triggerLabel{display:none}}._6oYBGa_count{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;line-height:16px}._6oYBGa_panel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);z-index:100;box-sizing:border-box;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:min(500px,100vw - 32px);max-height:min(680px,100vh - 32px);box-shadow:var(--dsw-elevation-prominent);border:0;border-radius:12px;flex-direction:column;padding:8px 2px 0;display:flex;position:fixed;overflow:hidden}._6oYBGa_panel:before{content:\"\";z-index:-1;background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);border-radius:12px;position:absolute;inset:0}._6oYBGa_panelCompact{width:min(320px,100vw - 32px)}._6oYBGa_panelCompact ._6oYBGa_roster{grid-template-columns:minmax(0,1fr)}._6oYBGa_body{--dsh-scrollbar-track-margin:8px;scrollbar-gutter:stable;flex:auto;min-height:0;padding:0 9px 16px 14px;overflow-y:auto}._6oYBGa_taskTitle{align-items:center;gap:8px;display:flex}._6oYBGa_taskTitle strong{font-size:13px;font-weight:500}._6oYBGa_panel h3{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;margin:16px 0 8px 4px;font-size:13px;font-weight:500;display:flex}._6oYBGa_body section:first-of-type h3{margin-top:8px}._6oYBGa_roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}._6oYBGa_member{--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);min-width:0;box-shadow:var(--dsw-elevation-stroke);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;border:0;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}._6oYBGa_member:disabled{cursor:default}._6oYBGa_memberCurrent{--dsw-elevation-stroke-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent);box-shadow:var(--dsw-elevation-stroke), inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent)}._6oYBGa_member:not(:disabled):hover,._6oYBGa_member:not(:disabled):focus-visible{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);box-shadow:var(--dsw-elevation-panel)}._6oYBGa_memberDot{flex:none;align-items:center;height:1lh;display:inline-flex}._6oYBGa_inactiveIcon{color:var(--dsw-alias-label-tertiary)}._6oYBGa_memberText{flex-direction:column;min-width:0;display:flex}._6oYBGa_memberName{align-items:center;gap:5px;min-width:0;display:inline-flex}._6oYBGa_memberNameText,._6oYBGa_memberText small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._6oYBGa_memberModel{display:none}._6oYBGa_member:hover ._6oYBGa_memberModel,._6oYBGa_member:focus-visible ._6oYBGa_memberModel{display:inline}._6oYBGa_currentTag{text-overflow:ellipsis;flex:0 999 auto;min-width:0;padding:0 4px;font-size:10px;line-height:15px;display:inline-block;overflow:hidden}._6oYBGa_memberText small,._6oYBGa_meta{color:var(--dsw-alias-label-tertiary);font-size:11px}._6oYBGa_diagnostic,._6oYBGa_error,._6oYBGa_warning{color:var(--dsw-alias-state-error-primary)}._6oYBGa_tasks{flex-direction:column;gap:7px;display:flex}._6oYBGa_emptyNotice{color:var(--dsw-alias-label-tertiary);margin:16px 0 0 4px;font-size:12px}._6oYBGa_task{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:9px;padding:11px 13px}._6oYBGa_taskState{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin-left:auto;font-size:11px;display:inline-flex}._6oYBGa_task p{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:5px 0;font-size:12px;line-height:18px}._6oYBGa_clampedDescription{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._6oYBGa_expandToggle{float:right;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;margin-left:10px;padding:0;font-size:11px;line-height:20px;display:inline-flex}._6oYBGa_expandToggle:hover,._6oYBGa_expandToggle:focus-visible{color:var(--dsw-alias-label-primary)}._6oYBGa_expandToggle svg{transition:transform .12s}._6oYBGa_expandToggleOpen{transform:rotate(180deg)}._6oYBGa_meta{line-height:20px}._6oYBGa_meta>span{margin-right:10px}._6oYBGa_notice,._6oYBGa_error{align-items:center;gap:6px;padding:9px;font-size:12px;display:flex}";
|
|
13
13
|
const tagId = "@deepseek-ai/dsh-experimental-client-ui-agent-team/TeamAction.module.css";
|
|
14
14
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
15
15
|
const tag = document.createElement("style");
|
|
@@ -19,36 +19,36 @@ window.__ModuleLoader__.load({
|
|
|
19
19
|
document.head.appendChild(tag);
|
|
20
20
|
}
|
|
21
21
|
var TeamAction_module_css_default = {
|
|
22
|
-
"body": "
|
|
23
|
-
"clampedDescription": "
|
|
24
|
-
"count": "
|
|
25
|
-
"currentTag": "
|
|
26
|
-
"diagnostic": "
|
|
27
|
-
"emptyNotice": "
|
|
28
|
-
"error": "
|
|
29
|
-
"expandToggle": "
|
|
30
|
-
"expandToggleOpen": "
|
|
31
|
-
"inactiveIcon": "
|
|
32
|
-
"member": "
|
|
33
|
-
"memberCurrent": "
|
|
34
|
-
"memberDot": "
|
|
35
|
-
"memberModel": "
|
|
36
|
-
"memberName": "
|
|
37
|
-
"memberNameText": "
|
|
38
|
-
"memberText": "
|
|
39
|
-
"meta": "
|
|
40
|
-
"notice": "
|
|
41
|
-
"panel": "
|
|
42
|
-
"panelCompact": "
|
|
43
|
-
"root": "
|
|
44
|
-
"roster": "
|
|
45
|
-
"task": "
|
|
46
|
-
"taskState": "
|
|
47
|
-
"taskTitle": "
|
|
48
|
-
"tasks": "
|
|
49
|
-
"trigger": "
|
|
50
|
-
"triggerLabel": "
|
|
51
|
-
"warning": "
|
|
22
|
+
"body": "_6oYBGa_body",
|
|
23
|
+
"clampedDescription": "_6oYBGa_clampedDescription",
|
|
24
|
+
"count": "_6oYBGa_count",
|
|
25
|
+
"currentTag": "_6oYBGa_currentTag",
|
|
26
|
+
"diagnostic": "_6oYBGa_diagnostic",
|
|
27
|
+
"emptyNotice": "_6oYBGa_emptyNotice",
|
|
28
|
+
"error": "_6oYBGa_error",
|
|
29
|
+
"expandToggle": "_6oYBGa_expandToggle",
|
|
30
|
+
"expandToggleOpen": "_6oYBGa_expandToggleOpen",
|
|
31
|
+
"inactiveIcon": "_6oYBGa_inactiveIcon",
|
|
32
|
+
"member": "_6oYBGa_member",
|
|
33
|
+
"memberCurrent": "_6oYBGa_memberCurrent",
|
|
34
|
+
"memberDot": "_6oYBGa_memberDot",
|
|
35
|
+
"memberModel": "_6oYBGa_memberModel",
|
|
36
|
+
"memberName": "_6oYBGa_memberName",
|
|
37
|
+
"memberNameText": "_6oYBGa_memberNameText",
|
|
38
|
+
"memberText": "_6oYBGa_memberText",
|
|
39
|
+
"meta": "_6oYBGa_meta",
|
|
40
|
+
"notice": "_6oYBGa_notice",
|
|
41
|
+
"panel": "_6oYBGa_panel",
|
|
42
|
+
"panelCompact": "_6oYBGa_panelCompact",
|
|
43
|
+
"root": "_6oYBGa_root",
|
|
44
|
+
"roster": "_6oYBGa_roster",
|
|
45
|
+
"task": "_6oYBGa_task",
|
|
46
|
+
"taskState": "_6oYBGa_taskState",
|
|
47
|
+
"taskTitle": "_6oYBGa_taskTitle",
|
|
48
|
+
"tasks": "_6oYBGa_tasks",
|
|
49
|
+
"trigger": "_6oYBGa_trigger",
|
|
50
|
+
"triggerLabel": "_6oYBGa_triggerLabel",
|
|
51
|
+
"warning": "_6oYBGa_warning"
|
|
52
52
|
};
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region lib/types/client/TeamAction.js
|