dsh-lowtide 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -6
- package/lib/client.js +510 -298
- package/lib/client.js.map +1 -1
- package/lib/index.js +178 -22
- package/lib/types/client/api.d.ts +12 -1
- package/lib/types/client/components/EditTaskModal.d.ts +10 -0
- package/lib/types/client/components/TaskDetail.d.ts +3 -1
- package/lib/types/client/components/TaskForm.d.ts +10 -1
- package/lib/types/client/components/TaskRow.d.ts +3 -1
- package/lib/types/client/i18n.d.ts +10 -7
- package/lib/types/client/store.d.ts +4 -0
- package/lib/types/src/models.d.ts +6 -2
- package/lib/types/src/routes.d.ts +2 -1
- package/lib/types/src/state-machine.d.ts +10 -0
- package/lib/types/src/store.d.ts +19 -9
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -60,14 +60,17 @@ window.__ModuleLoader__.load({
|
|
|
60
60
|
"dock.collapse": "收起",
|
|
61
61
|
"onboarding.text": "把任务交进来、由你决定放行,它会在闲时低价时段自动执行,跑完给你一份执行报告。",
|
|
62
62
|
"onboarding.dismiss": "知道了",
|
|
63
|
-
"empty.title": "
|
|
63
|
+
"empty.title": "队列还空着。随时把活儿交进来,批准了自动跑。",
|
|
64
64
|
"empty.cta": "投递第一个任务",
|
|
65
65
|
"footer.approveAndRun": "放行并执行",
|
|
66
|
+
"footer.approveAndRunConfirm": "再次点击确认:全部放行并立即执行(不可撤销)",
|
|
67
|
+
"footer.approveAndRunConfirmShort": "确认放行并执行",
|
|
66
68
|
"footer.runNow": "立即开跑",
|
|
67
69
|
"action.approve": "批准",
|
|
68
70
|
"action.defer": "顺延",
|
|
69
71
|
"action.drop": "放弃(软删,可从已放弃恢复)",
|
|
70
72
|
"action.retry": "重新执行",
|
|
73
|
+
"action.edit": "编辑任务",
|
|
71
74
|
"action.delete": "彻底删除(不可恢复)",
|
|
72
75
|
"action.deleteConfirm": "再次点击确认删除(不可恢复)",
|
|
73
76
|
"action.deleteConfirmShort": "确认",
|
|
@@ -82,6 +85,8 @@ window.__ModuleLoader__.load({
|
|
|
82
85
|
"toast.requeued": "已重新入队",
|
|
83
86
|
"toast.submitted": "已投递,待你裁定",
|
|
84
87
|
"toast.submitFailed": "投递失败:{error}",
|
|
88
|
+
"toast.edited": "已保存修改",
|
|
89
|
+
"toast.editFailed": "编辑失败:{error}",
|
|
85
90
|
"toast.restored": "已恢复到待裁定",
|
|
86
91
|
"section.running": "执行中",
|
|
87
92
|
"section.done": "已结束",
|
|
@@ -95,6 +100,8 @@ window.__ModuleLoader__.load({
|
|
|
95
100
|
"detail.triaged": "裁定",
|
|
96
101
|
"detail.triagedAuto": "L3 自动",
|
|
97
102
|
"detail.triagedUser": "人工",
|
|
103
|
+
"detail.edited": "最近编辑",
|
|
104
|
+
"detail.editedCount": "{count} 次",
|
|
98
105
|
"detail.continuesFromSession": "接着对话 {id} 继续",
|
|
99
106
|
"detail.model": "模型",
|
|
100
107
|
"detail.estimateKnown": "预估:¥{yuan}({tier})· 约 {minutes} 分钟",
|
|
@@ -109,6 +116,9 @@ window.__ModuleLoader__.load({
|
|
|
109
116
|
"detail.fileCount": "{count} 个文件",
|
|
110
117
|
"modal.title": "新建闲时工单",
|
|
111
118
|
"modal.desc": "投递后落在待裁定,批准后才进入闲时执行集",
|
|
119
|
+
"modal.editTitle": "编辑任务",
|
|
120
|
+
"modal.editDesc": "原地修改,任务状态保持不变 · {id}",
|
|
121
|
+
"modal.saveEdit": "保存修改",
|
|
112
122
|
"modal.cancel": "取消",
|
|
113
123
|
"modal.submit": "投递",
|
|
114
124
|
"modal.promptPlaceholderSingle": "给 src/auth 模块补全所有边界情况的单元测试,描述内容越详细越好|||给 UserService 的 CRUD 接口写完整的集成测试套件,描述内容越详细越好|||给这个 REST API 端点写完整的 OpenAPI 3.0 文档,描述内容越详细越好|||把现有的 Jenkinsfile 迁移到 GitHub Actions workflow,描述内容越详细越好|||分析这段 N+1 查询日志,给出索引优化建议,描述内容越详细越好",
|
|
@@ -167,13 +177,6 @@ window.__ModuleLoader__.load({
|
|
|
167
177
|
"strategy.sampling": "采样",
|
|
168
178
|
"strategy.review": "复核",
|
|
169
179
|
"reasoning.follow": "跟随全局",
|
|
170
|
-
"reasoning.off": "关闭",
|
|
171
|
-
"reasoning.minimal": "极低",
|
|
172
|
-
"reasoning.low": "低",
|
|
173
|
-
"reasoning.medium": "中",
|
|
174
|
-
"reasoning.high": "高",
|
|
175
|
-
"reasoning.xhigh": "很高",
|
|
176
|
-
"reasoning.max": "极致",
|
|
177
180
|
"strategy.singleHint": "简单明确的活儿,跑一次就行。",
|
|
178
181
|
"strategy.iterativeHint": "要打磨的稿子——每轮自己审查改进,直到结果稳定。适合分析、写作、代码。",
|
|
179
182
|
"strategy.samplingHint": "想要几个方案自己挑——独立跑几份,明天你来定。适合标题、思路、候选设计。",
|
|
@@ -381,14 +384,17 @@ window.__ModuleLoader__.load({
|
|
|
381
384
|
"dock.collapse": "Collapse",
|
|
382
385
|
"onboarding.text": "Hand tasks over anytime; once you approve them, they run automatically during low-price off-peak hours and you get an execution report.",
|
|
383
386
|
"onboarding.dismiss": "Got it",
|
|
384
|
-
"empty.title": "The queue is empty — hand a task over, it
|
|
387
|
+
"empty.title": "The queue is empty — hand a task over, it runs once approved.",
|
|
385
388
|
"empty.cta": "Submit the first task",
|
|
386
389
|
"footer.approveAndRun": "Approve & run",
|
|
390
|
+
"footer.approveAndRunConfirm": "Click again to confirm: approve all and run now (irreversible)",
|
|
391
|
+
"footer.approveAndRunConfirmShort": "Confirm approve & run",
|
|
387
392
|
"footer.runNow": "Run now",
|
|
388
393
|
"action.approve": "Approve",
|
|
389
394
|
"action.defer": "Defer",
|
|
390
395
|
"action.drop": "Drop (soft delete, restorable)",
|
|
391
396
|
"action.retry": "Re-run",
|
|
397
|
+
"action.edit": "Edit task",
|
|
392
398
|
"action.delete": "Delete permanently (irreversible)",
|
|
393
399
|
"action.deleteConfirm": "Click again to confirm delete (irreversible)",
|
|
394
400
|
"action.deleteConfirmShort": "Confirm",
|
|
@@ -403,6 +409,8 @@ window.__ModuleLoader__.load({
|
|
|
403
409
|
"toast.requeued": "Re-queued",
|
|
404
410
|
"toast.submitted": "Submitted — waiting for your review",
|
|
405
411
|
"toast.submitFailed": "Submit failed: {error}",
|
|
412
|
+
"toast.edited": "Changes saved",
|
|
413
|
+
"toast.editFailed": "Edit failed: {error}",
|
|
406
414
|
"toast.restored": "Restored to review",
|
|
407
415
|
"section.running": "Running",
|
|
408
416
|
"section.done": "Finished",
|
|
@@ -416,6 +424,8 @@ window.__ModuleLoader__.load({
|
|
|
416
424
|
"detail.triaged": "Triaged",
|
|
417
425
|
"detail.triagedAuto": "L3 auto",
|
|
418
426
|
"detail.triagedUser": "User",
|
|
427
|
+
"detail.edited": "Last edited",
|
|
428
|
+
"detail.editedCount": "{count} times",
|
|
419
429
|
"detail.continuesFromSession": "Continues conversation {id}",
|
|
420
430
|
"detail.model": "Model",
|
|
421
431
|
"detail.estimateKnown": "Est: ¥{yuan} ({tier}) · ~{minutes} min",
|
|
@@ -430,6 +440,9 @@ window.__ModuleLoader__.load({
|
|
|
430
440
|
"detail.fileCount": "{count} files",
|
|
431
441
|
"modal.title": "New off-peak task",
|
|
432
442
|
"modal.desc": "Lands in review; only approved tasks enter the off-peak queue",
|
|
443
|
+
"modal.editTitle": "Edit task",
|
|
444
|
+
"modal.editDesc": "Edits in place — task status is preserved · {id}",
|
|
445
|
+
"modal.saveEdit": "Save changes",
|
|
433
446
|
"modal.cancel": "Cancel",
|
|
434
447
|
"modal.submit": "Submit",
|
|
435
448
|
"modal.promptPlaceholderSingle": "Write full unit tests for src/auth covering all edge cases — be as detailed as possible|||Write a complete integration test suite for the UserService CRUD API — be as detailed as possible|||Write full OpenAPI 3.0 docs for this REST endpoint — be as detailed as possible|||Migrate the existing Jenkinsfile to a GitHub Actions workflow — be as detailed as possible|||Analyze this N+1 query log and suggest index optimizations — be as detailed as possible",
|
|
@@ -488,13 +501,6 @@ window.__ModuleLoader__.load({
|
|
|
488
501
|
"strategy.sampling": "Sampling",
|
|
489
502
|
"strategy.review": "Review",
|
|
490
503
|
"reasoning.follow": "Follow global",
|
|
491
|
-
"reasoning.off": "Off",
|
|
492
|
-
"reasoning.minimal": "Minimal",
|
|
493
|
-
"reasoning.low": "Low",
|
|
494
|
-
"reasoning.medium": "Medium",
|
|
495
|
-
"reasoning.high": "High",
|
|
496
|
-
"reasoning.xhigh": "X-High",
|
|
497
|
-
"reasoning.max": "Max",
|
|
498
504
|
"strategy.singleHint": "Simple, clear jobs — one run is enough.",
|
|
499
505
|
"strategy.iterativeHint": "Work that needs polishing — each round reviews and improves until stable. Good for analysis, writing, and code.",
|
|
500
506
|
"strategy.samplingHint": "Want a few options to choose from — several independent runs, you decide tomorrow. Good for titles, ideas, and candidate designs.",
|
|
@@ -667,8 +673,8 @@ window.__ModuleLoader__.load({
|
|
|
667
673
|
}
|
|
668
674
|
};
|
|
669
675
|
//#endregion
|
|
670
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\atoms.module.css.mjs
|
|
671
|
-
const css$13 = ".
|
|
676
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\atoms.module.css.mjs
|
|
677
|
+
const css$13 = ".CtzV7G_money,.CtzV7G_countdown{font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums;font-size:inherit;line-height:inherit}.CtzV7G_modelBadge{border:1px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);white-space:nowrap;border-radius:4px;flex:none;align-items:center;gap:2px;padding:1px 6px;font-size:11px;line-height:16px;display:inline-flex}.CtzV7G_modelBadgeUnknown{border-color:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-state-warn-primary)}.CtzV7G_modelBadgeQ{font-weight:600}";
|
|
672
678
|
const tagId$13 = "dsh-lowtide/atoms.module.css";
|
|
673
679
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$13) + "]") === null) {
|
|
674
680
|
const tag = document.createElement("style");
|
|
@@ -678,11 +684,11 @@ window.__ModuleLoader__.load({
|
|
|
678
684
|
document.head.appendChild(tag);
|
|
679
685
|
}
|
|
680
686
|
var atoms_module_css_default = {
|
|
681
|
-
"money": "
|
|
682
|
-
"
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
"countdown": "
|
|
687
|
+
"money": "CtzV7G_money",
|
|
688
|
+
"modelBadgeQ": "CtzV7G_modelBadgeQ",
|
|
689
|
+
"modelBadge": "CtzV7G_modelBadge",
|
|
690
|
+
"modelBadgeUnknown": "CtzV7G_modelBadgeUnknown",
|
|
691
|
+
"countdown": "CtzV7G_countdown"
|
|
686
692
|
};
|
|
687
693
|
//#endregion
|
|
688
694
|
//#region client/components/atoms.tsx
|
|
@@ -869,6 +875,19 @@ window.__ModuleLoader__.load({
|
|
|
869
875
|
body: JSON.stringify(input)
|
|
870
876
|
})).json();
|
|
871
877
|
}
|
|
878
|
+
/**
|
|
879
|
+
* Edit an existing task IN PLACE (status preserved — a pending-review task
|
|
880
|
+
* stays pending-review, a queued one stays queued). The request body is the
|
|
881
|
+
* same full form used by submitTask; the server re-runs intake and refreshes
|
|
882
|
+
* the content fields, keeping id/createdAt/status/triage records.
|
|
883
|
+
*/
|
|
884
|
+
async function editTask(id, input) {
|
|
885
|
+
return await (await fetch(`/ds-lowtide/tasks/${encodeURIComponent(id)}/edit`, {
|
|
886
|
+
method: "POST",
|
|
887
|
+
headers: { "content-type": "application/json" },
|
|
888
|
+
body: JSON.stringify(input)
|
|
889
|
+
})).json();
|
|
890
|
+
}
|
|
872
891
|
async function triage(id, action) {
|
|
873
892
|
return await (await fetch(`/ds-lowtide/tasks/${id}/${action}`, { method: "POST" })).json();
|
|
874
893
|
}
|
|
@@ -975,8 +994,8 @@ window.__ModuleLoader__.load({
|
|
|
975
994
|
} catch {}
|
|
976
995
|
}
|
|
977
996
|
//#endregion
|
|
978
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\PriceBand.module.css.mjs
|
|
979
|
-
const css$12 = ".
|
|
997
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\PriceBand.module.css.mjs
|
|
998
|
+
const css$12 = ".DBqEla_bandWrap{flex-direction:column;gap:2px;display:flex}.DBqEla_bandAxis{justify-content:space-between;padding:0 2px;display:flex}.DBqEla_bandAxisLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}.DBqEla_band{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);border-radius:8px;gap:1px;height:32px;padding:4px;display:flex}.DBqEla_bandCell{border-radius:2px;flex:1}.DBqEla_bandPeak{background:var(--dsw-alias-state-error-primary);opacity:.85}.DBqEla_bandOff{background:var(--dsw-alias-state-success-primary);opacity:.85}.DBqEla_bandCustom{background:var(--dsw-alias-state-warn-primary);opacity:.85}.DBqEla_bandNow{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-1px}";
|
|
980
999
|
const tagId$12 = "dsh-lowtide/PriceBand.module.css";
|
|
981
1000
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$12) + "]") === null) {
|
|
982
1001
|
const tag = document.createElement("style");
|
|
@@ -986,15 +1005,15 @@ window.__ModuleLoader__.load({
|
|
|
986
1005
|
document.head.appendChild(tag);
|
|
987
1006
|
}
|
|
988
1007
|
var PriceBand_module_css_default = {
|
|
989
|
-
"
|
|
990
|
-
"
|
|
991
|
-
"
|
|
992
|
-
"
|
|
993
|
-
"band": "
|
|
994
|
-
"
|
|
995
|
-
"bandPeak": "
|
|
996
|
-
"bandNow": "
|
|
997
|
-
"
|
|
1008
|
+
"bandCell": "DBqEla_bandCell",
|
|
1009
|
+
"bandWrap": "DBqEla_bandWrap",
|
|
1010
|
+
"bandAxisLabel": "DBqEla_bandAxisLabel",
|
|
1011
|
+
"bandOff": "DBqEla_bandOff",
|
|
1012
|
+
"band": "DBqEla_band",
|
|
1013
|
+
"bandAxis": "DBqEla_bandAxis",
|
|
1014
|
+
"bandPeak": "DBqEla_bandPeak",
|
|
1015
|
+
"bandNow": "DBqEla_bandNow",
|
|
1016
|
+
"bandCustom": "DBqEla_bandCustom"
|
|
998
1017
|
};
|
|
999
1018
|
//#endregion
|
|
1000
1019
|
//#region client/components/PriceBand.tsx
|
|
@@ -1048,8 +1067,8 @@ window.__ModuleLoader__.load({
|
|
|
1048
1067
|
});
|
|
1049
1068
|
}
|
|
1050
1069
|
//#endregion
|
|
1051
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\WindowEditorModal.module.css.mjs
|
|
1052
|
-
const css$11 = ".
|
|
1070
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\WindowEditorModal.module.css.mjs
|
|
1071
|
+
const css$11 = ".kTArlW_wide{width:min(560px,100%)}.kTArlW_body{flex-direction:column;gap:8px;display:flex}.kTArlW_tzLine{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}.kTArlW_hint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}.kTArlW_error{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);border-radius:6px;padding:6px 8px}.kTArlW_empty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:10px 0}.kTArlW_row{align-items:center;gap:6px;display:flex}.kTArlW_input{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);height:32px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:8px;outline:none;padding:0 8px;font-size:13px}.kTArlW_input:focus{border-color:var(--dsw-alias-brand-primary)}.kTArlW_row select.kTArlW_input{font-family:var(--dsw-font-family);flex:0 0 96px}.kTArlW_row input.kTArlW_input{flex:1;min-width:0}.kTArlW_dash{color:var(--dsw-alias-label-tertiary)}.kTArlW_daysBadge{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:nowrap;background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;padding:2px 8px}.kTArlW_footer{align-items:center;gap:8px;display:flex}.kTArlW_footerSpacer{flex:1}";
|
|
1053
1072
|
const tagId$11 = "dsh-lowtide/WindowEditorModal.module.css";
|
|
1054
1073
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
1055
1074
|
const tag = document.createElement("style");
|
|
@@ -1059,18 +1078,18 @@ window.__ModuleLoader__.load({
|
|
|
1059
1078
|
document.head.appendChild(tag);
|
|
1060
1079
|
}
|
|
1061
1080
|
var WindowEditorModal_module_css_default = {
|
|
1062
|
-
"
|
|
1063
|
-
"footer": "
|
|
1064
|
-
"
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
"
|
|
1069
|
-
"
|
|
1070
|
-
"body": "
|
|
1071
|
-
"
|
|
1072
|
-
"
|
|
1073
|
-
"
|
|
1081
|
+
"row": "kTArlW_row",
|
|
1082
|
+
"footer": "kTArlW_footer",
|
|
1083
|
+
"wide": "kTArlW_wide",
|
|
1084
|
+
"daysBadge": "kTArlW_daysBadge",
|
|
1085
|
+
"dash": "kTArlW_dash",
|
|
1086
|
+
"hint": "kTArlW_hint",
|
|
1087
|
+
"footerSpacer": "kTArlW_footerSpacer",
|
|
1088
|
+
"empty": "kTArlW_empty",
|
|
1089
|
+
"body": "kTArlW_body",
|
|
1090
|
+
"tzLine": "kTArlW_tzLine",
|
|
1091
|
+
"error": "kTArlW_error",
|
|
1092
|
+
"input": "kTArlW_input"
|
|
1074
1093
|
};
|
|
1075
1094
|
//#endregion
|
|
1076
1095
|
//#region client/components/WindowEditorModal.tsx
|
|
@@ -1327,8 +1346,8 @@ window.__ModuleLoader__.load({
|
|
|
1327
1346
|
});
|
|
1328
1347
|
}
|
|
1329
1348
|
//#endregion
|
|
1330
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\PricePill.module.css.mjs
|
|
1331
|
-
const css$10 = ".
|
|
1349
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\PricePill.module.css.mjs
|
|
1350
|
+
const css$10 = "._7C61wa_pill{cursor:pointer;align-items:center;gap:6px;display:inline-flex}._7C61wa_dot{display:inline-flex}._7C61wa_label{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}._7C61wa_count{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums}._7C61wa_queueIcon{color:var(--dsw-alias-label-tertiary)}._7C61wa_badge{background:var(--dsw-alias-state-warn-primary);border-radius:999px;width:6px;height:6px}._7C61wa_saved{color:var(--dsw-alias-state-success-primary)}";
|
|
1332
1351
|
const tagId$10 = "dsh-lowtide/PricePill.module.css";
|
|
1333
1352
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$10) + "]") === null) {
|
|
1334
1353
|
const tag = document.createElement("style");
|
|
@@ -1338,13 +1357,13 @@ window.__ModuleLoader__.load({
|
|
|
1338
1357
|
document.head.appendChild(tag);
|
|
1339
1358
|
}
|
|
1340
1359
|
var PricePill_module_css_default = {
|
|
1341
|
-
"count": "
|
|
1342
|
-
"queueIcon": "
|
|
1343
|
-
"
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1346
|
-
"
|
|
1347
|
-
"pill": "
|
|
1360
|
+
"count": "_7C61wa_count",
|
|
1361
|
+
"queueIcon": "_7C61wa_queueIcon",
|
|
1362
|
+
"badge": "_7C61wa_badge",
|
|
1363
|
+
"saved": "_7C61wa_saved",
|
|
1364
|
+
"dot": "_7C61wa_dot",
|
|
1365
|
+
"label": "_7C61wa_label",
|
|
1366
|
+
"pill": "_7C61wa_pill"
|
|
1348
1367
|
};
|
|
1349
1368
|
//#endregion
|
|
1350
1369
|
//#region client/components/PricePill.tsx
|
|
@@ -1494,8 +1513,8 @@ window.__ModuleLoader__.load({
|
|
|
1494
1513
|
}
|
|
1495
1514
|
}
|
|
1496
1515
|
//#endregion
|
|
1497
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\TaskForm.module.css.mjs
|
|
1498
|
-
const css$9 = ".
|
|
1516
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskForm.module.css.mjs
|
|
1517
|
+
const css$9 = ".IueeoG_modal{flex-direction:column;gap:10px;display:flex}.IueeoG_compact{flex-direction:column;gap:8px;display:flex}.IueeoG_prompt{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-base-16);resize:vertical;border-radius:8px;outline:none;padding:8px 12px}.IueeoG_prompt:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_guidanceInput{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);resize:vertical;border-radius:8px;outline:none;padding:6px 10px}.IueeoG_guidanceInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_field{flex-direction:column;gap:4px;display:flex}.IueeoG_fieldLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}.IueeoG_fieldInput{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;height:32px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:8px;outline:none;padding:0 8px;font-size:12px}.IueeoG_fieldInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_compactRow{align-items:center;gap:8px;display:flex}.IueeoG_compactLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);white-space:nowrap}.IueeoG_compactInput{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);height:28px;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);border-radius:6px;outline:none;flex:1;padding:0 8px;font-size:12px}.IueeoG_compactInput:focus{border-color:var(--dsw-alias-brand-primary)}.IueeoG_warning{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12);align-items:center;gap:4px;display:inline-flex}.IueeoG_warningIcon{color:var(--dsw-alias-state-warn-primary)}.IueeoG_pillRow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.IueeoG_autonomyBtn{display:inline-flex}.IueeoG_sessionPickRow{flex-direction:column;gap:6px;display:flex}.IueeoG_strategyPill{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;user-select:none;border-radius:999px;align-items:center;gap:4px;padding:4px 12px;display:inline-flex}.IueeoG_strategyPill:hover{background:var(--dsw-alias-interactive-bg-hover)}.IueeoG_strategyActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}.IueeoG_costTag{color:var(--dsw-alias-label-tertiary);margin-left:2px;font-size:10px;font-weight:400}.IueeoG_strategyHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}.IueeoG_advancedBtn{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-start;align-items:center;gap:6px;padding:5px 12px;display:inline-flex}.IueeoG_advancedBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.IueeoG_advancedBody{flex-direction:column;gap:12px;display:flex}.IueeoG_advancedIcon{vertical-align:-2px;color:var(--dsw-alias-label-tertiary);margin-right:5px}.IueeoG_modelFallbackRow{grid-template-columns:1fr 1fr;gap:8px;display:grid}";
|
|
1499
1518
|
const tagId$9 = "dsh-lowtide/TaskForm.module.css";
|
|
1500
1519
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$9) + "]") === null) {
|
|
1501
1520
|
const tag = document.createElement("style");
|
|
@@ -1505,29 +1524,29 @@ window.__ModuleLoader__.load({
|
|
|
1505
1524
|
document.head.appendChild(tag);
|
|
1506
1525
|
}
|
|
1507
1526
|
var TaskForm_module_css_default = {
|
|
1508
|
-
"
|
|
1509
|
-
"
|
|
1510
|
-
"
|
|
1511
|
-
"
|
|
1512
|
-
"
|
|
1513
|
-
"fieldInput": "
|
|
1514
|
-
"
|
|
1515
|
-
"
|
|
1516
|
-
"
|
|
1517
|
-
"
|
|
1518
|
-
"
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1521
|
-
"
|
|
1522
|
-
"
|
|
1523
|
-
"
|
|
1524
|
-
"
|
|
1525
|
-
"
|
|
1526
|
-
"
|
|
1527
|
-
"
|
|
1528
|
-
"
|
|
1529
|
-
"
|
|
1530
|
-
"
|
|
1527
|
+
"modal": "IueeoG_modal",
|
|
1528
|
+
"fieldLabel": "IueeoG_fieldLabel",
|
|
1529
|
+
"advancedBtn": "IueeoG_advancedBtn",
|
|
1530
|
+
"modelFallbackRow": "IueeoG_modelFallbackRow",
|
|
1531
|
+
"autonomyBtn": "IueeoG_autonomyBtn",
|
|
1532
|
+
"fieldInput": "IueeoG_fieldInput",
|
|
1533
|
+
"strategyPill": "IueeoG_strategyPill",
|
|
1534
|
+
"strategyHint": "IueeoG_strategyHint",
|
|
1535
|
+
"advancedIcon": "IueeoG_advancedIcon",
|
|
1536
|
+
"costTag": "IueeoG_costTag",
|
|
1537
|
+
"pillRow": "IueeoG_pillRow",
|
|
1538
|
+
"advancedBody": "IueeoG_advancedBody",
|
|
1539
|
+
"field": "IueeoG_field",
|
|
1540
|
+
"guidanceInput": "IueeoG_guidanceInput",
|
|
1541
|
+
"compact": "IueeoG_compact",
|
|
1542
|
+
"compactRow": "IueeoG_compactRow",
|
|
1543
|
+
"compactLabel": "IueeoG_compactLabel",
|
|
1544
|
+
"compactInput": "IueeoG_compactInput",
|
|
1545
|
+
"warning": "IueeoG_warning",
|
|
1546
|
+
"warningIcon": "IueeoG_warningIcon",
|
|
1547
|
+
"strategyActive": "IueeoG_strategyActive",
|
|
1548
|
+
"sessionPickRow": "IueeoG_sessionPickRow",
|
|
1549
|
+
"prompt": "IueeoG_prompt"
|
|
1531
1550
|
};
|
|
1532
1551
|
//#endregion
|
|
1533
1552
|
//#region client/components/TaskForm.tsx
|
|
@@ -1573,27 +1592,23 @@ window.__ModuleLoader__.load({
|
|
|
1573
1592
|
const options = localized.split("|||");
|
|
1574
1593
|
return options[Math.floor(Math.random() * options.length)];
|
|
1575
1594
|
}
|
|
1576
|
-
/**
|
|
1577
|
-
function reasoningLabel(effort
|
|
1578
|
-
|
|
1579
|
-
if (effort === "minimal") return t("reasoning.minimal");
|
|
1580
|
-
if (effort === "low") return t("reasoning.low");
|
|
1581
|
-
if (effort === "medium") return t("reasoning.medium");
|
|
1582
|
-
if (effort === "high") return t("reasoning.high");
|
|
1583
|
-
if (effort === "xhigh") return t("reasoning.xhigh");
|
|
1584
|
-
if (effort === "max") return t("reasoning.max");
|
|
1585
|
-
return effort;
|
|
1595
|
+
/** Label for a reasoning effort: the adapter's native name, or the raw id. */
|
|
1596
|
+
function reasoningLabel(effort) {
|
|
1597
|
+
return effort.name !== "" ? effort.name : effort.id;
|
|
1586
1598
|
}
|
|
1587
|
-
/** Reasoning
|
|
1599
|
+
/** Reasoning efforts to offer for a given model (fallback = standard set). */
|
|
1588
1600
|
function reasoningOptions(model) {
|
|
1589
1601
|
const efforts = model?.reasoningEfforts;
|
|
1590
|
-
if (efforts !== void 0 && efforts.length > 0) return efforts;
|
|
1602
|
+
if (efforts !== void 0 && efforts.length > 0) return [...efforts];
|
|
1591
1603
|
return [
|
|
1592
1604
|
"off",
|
|
1593
1605
|
"low",
|
|
1594
1606
|
"high",
|
|
1595
1607
|
"max"
|
|
1596
|
-
]
|
|
1608
|
+
].map((id) => ({
|
|
1609
|
+
id,
|
|
1610
|
+
name: id
|
|
1611
|
+
}));
|
|
1597
1612
|
}
|
|
1598
1613
|
/** 运行模式(自治级别)按钮组:标签 / 悬停一句话 / 选中后说明行。 */
|
|
1599
1614
|
const AUTONOMY_LABEL_KEYS = {
|
|
@@ -1873,7 +1888,7 @@ window.__ModuleLoader__.load({
|
|
|
1873
1888
|
onChange: (e) => {
|
|
1874
1889
|
const decoded = decode(e.target.value);
|
|
1875
1890
|
const efforts = models.find((m) => m.id === decoded.model)?.reasoningEfforts;
|
|
1876
|
-
const resetReasoning = values.reasoning !== "follow" && efforts !== void 0 && efforts.length > 0 && !efforts.
|
|
1891
|
+
const resetReasoning = values.reasoning !== "follow" && efforts !== void 0 && efforts.length > 0 && !efforts.some((e) => e.id === values.reasoning);
|
|
1877
1892
|
onChange(resetReasoning ? {
|
|
1878
1893
|
...decoded,
|
|
1879
1894
|
reasoning: "follow"
|
|
@@ -1882,13 +1897,17 @@ window.__ModuleLoader__.load({
|
|
|
1882
1897
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1883
1898
|
value: "",
|
|
1884
1899
|
children: t("modal.modelFollowGlobal")
|
|
1885
|
-
}), [...byProvider.keys()].map((provider) =>
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1900
|
+
}), [...byProvider.keys()].map((provider) => {
|
|
1901
|
+
const group = byProvider.get(provider) ?? [];
|
|
1902
|
+
const label = group[0]?.providerLabel ?? provider;
|
|
1903
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("optgroup", {
|
|
1904
|
+
label,
|
|
1905
|
+
children: group.map((m) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
1906
|
+
value: encode(m),
|
|
1907
|
+
children: m.name
|
|
1908
|
+
}, encode(m)))
|
|
1909
|
+
}, provider);
|
|
1910
|
+
})]
|
|
1892
1911
|
});
|
|
1893
1912
|
}
|
|
1894
1913
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1928,10 +1947,10 @@ window.__ModuleLoader__.load({
|
|
|
1928
1947
|
}), (() => {
|
|
1929
1948
|
const selectedModel = props.models?.find((m) => m.id === values.model);
|
|
1930
1949
|
return reasoningOptions(selectedModel).map((effort) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Pill, {
|
|
1931
|
-
active: values.reasoning === effort,
|
|
1932
|
-
onClick: () => onChange({ reasoning: effort }),
|
|
1933
|
-
children: reasoningLabel(effort
|
|
1934
|
-
}, effort));
|
|
1950
|
+
active: values.reasoning === effort.id,
|
|
1951
|
+
onClick: () => onChange({ reasoning: effort.id }),
|
|
1952
|
+
children: reasoningLabel(effort)
|
|
1953
|
+
}, effort.id));
|
|
1935
1954
|
})()]
|
|
1936
1955
|
}),
|
|
1937
1956
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -2074,8 +2093,8 @@ window.__ModuleLoader__.load({
|
|
|
2074
2093
|
});
|
|
2075
2094
|
}
|
|
2076
2095
|
//#endregion
|
|
2077
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\InterceptCard.module.css.mjs
|
|
2078
|
-
const css$8 = ".
|
|
2096
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\InterceptCard.module.css.mjs
|
|
2097
|
+
const css$8 = "._1uv9Ta_card{background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2-darkmode-thin);box-shadow:var(--dsw-shadow-lv2);border-radius:22px;flex-direction:column;gap:8px;padding:16px 20px;display:flex}._1uv9Ta_header{justify-content:space-between;align-items:center;gap:8px;display:flex}._1uv9Ta_title{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-strong-14);align-items:center;gap:6px;display:inline-flex}._1uv9Ta_dot{display:inline-flex}._1uv9Ta_close{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}._1uv9Ta_close:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._1uv9Ta_compare{gap:16px;display:flex}._1uv9Ta_priceLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._1uv9Ta_row{align-items:center;gap:8px;display:flex}._1uv9Ta_dismiss{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;white-space:nowrap;background:0 0;border:none;margin-left:auto;padding:0 4px}._1uv9Ta_dismiss:hover{color:var(--dsw-alias-label-secondary)}._1uv9Ta_queueStatus{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);align-items:center;gap:4px;display:inline-flex}._1uv9Ta_queueIcon{color:var(--dsw-alias-label-tertiary)}";
|
|
2079
2098
|
const tagId$8 = "dsh-lowtide/InterceptCard.module.css";
|
|
2080
2099
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$8) + "]") === null) {
|
|
2081
2100
|
const tag = document.createElement("style");
|
|
@@ -2085,17 +2104,17 @@ window.__ModuleLoader__.load({
|
|
|
2085
2104
|
document.head.appendChild(tag);
|
|
2086
2105
|
}
|
|
2087
2106
|
var InterceptCard_module_css_default = {
|
|
2088
|
-
"
|
|
2089
|
-
"
|
|
2090
|
-
"
|
|
2091
|
-
"
|
|
2092
|
-
"
|
|
2093
|
-
"
|
|
2094
|
-
"
|
|
2095
|
-
"
|
|
2096
|
-
"
|
|
2097
|
-
"
|
|
2098
|
-
"
|
|
2107
|
+
"close": "_1uv9Ta_close",
|
|
2108
|
+
"dot": "_1uv9Ta_dot",
|
|
2109
|
+
"queueIcon": "_1uv9Ta_queueIcon",
|
|
2110
|
+
"header": "_1uv9Ta_header",
|
|
2111
|
+
"queueStatus": "_1uv9Ta_queueStatus",
|
|
2112
|
+
"dismiss": "_1uv9Ta_dismiss",
|
|
2113
|
+
"row": "_1uv9Ta_row",
|
|
2114
|
+
"compare": "_1uv9Ta_compare",
|
|
2115
|
+
"priceLabel": "_1uv9Ta_priceLabel",
|
|
2116
|
+
"title": "_1uv9Ta_title",
|
|
2117
|
+
"card": "_1uv9Ta_card"
|
|
2099
2118
|
};
|
|
2100
2119
|
//#endregion
|
|
2101
2120
|
//#region client/components/InterceptCard.tsx
|
|
@@ -2329,8 +2348,8 @@ window.__ModuleLoader__.load({
|
|
|
2329
2348
|
return "";
|
|
2330
2349
|
}
|
|
2331
2350
|
//#endregion
|
|
2332
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\TaskRow.module.css.mjs
|
|
2333
|
-
const css$7 = ".
|
|
2351
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskRow.module.css.mjs
|
|
2352
|
+
const css$7 = ".qAMb0a_taskRow{border-left:2px solid #0000;border-radius:8px;align-items:center;gap:8px;min-height:36px;padding:4px 5px 4px 12px;display:flex}.qAMb0a_taskRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.qAMb0a_amber{border-left-color:var(--dsw-alias-state-warn-primary)}.qAMb0a_green{border-left-color:var(--dsw-alias-state-success-primary)}.qAMb0a_blue{border-left-color:var(--dsw-alias-state-business-primary)}.qAMb0a_red{border-left-color:var(--dsw-alias-state-error-primary)}.qAMb0a_taskMain{cursor:pointer;flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.qAMb0a_taskMain:hover .qAMb0a_taskPrompt{color:var(--dsw-alias-brand-primary)}.qAMb0a_taskPrompt{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qAMb0a_taskMeta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.qAMb0a_rowActions{gap:2px;display:flex}.qAMb0a_iconBtn{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:999px;font-size:13px}.qAMb0a_iconBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.qAMb0a_iconBtn:disabled{opacity:.4;cursor:not-allowed}.qAMb0a_iconBtn:disabled:hover{color:var(--dsw-alias-label-secondary);background:0 0}.qAMb0a_confirming{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover);font-weight:600}.qAMb0a_confirming:hover{color:var(--dsw-alias-state-error-primary)}.qAMb0a_droppedRow{opacity:.75}.qAMb0a_droppedRow:hover{opacity:1}";
|
|
2334
2353
|
const tagId$7 = "dsh-lowtide/TaskRow.module.css";
|
|
2335
2354
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$7) + "]") === null) {
|
|
2336
2355
|
const tag = document.createElement("style");
|
|
@@ -2340,18 +2359,18 @@ window.__ModuleLoader__.load({
|
|
|
2340
2359
|
document.head.appendChild(tag);
|
|
2341
2360
|
}
|
|
2342
2361
|
var TaskRow_module_css_default = {
|
|
2343
|
-
"
|
|
2344
|
-
"
|
|
2345
|
-
"
|
|
2346
|
-
"
|
|
2347
|
-
"
|
|
2348
|
-
"
|
|
2349
|
-
"
|
|
2350
|
-
"
|
|
2351
|
-
"
|
|
2352
|
-
"
|
|
2353
|
-
"iconBtn": "
|
|
2354
|
-
"
|
|
2362
|
+
"blue": "qAMb0a_blue",
|
|
2363
|
+
"droppedRow": "qAMb0a_droppedRow",
|
|
2364
|
+
"green": "qAMb0a_green",
|
|
2365
|
+
"taskPrompt": "qAMb0a_taskPrompt",
|
|
2366
|
+
"taskMain": "qAMb0a_taskMain",
|
|
2367
|
+
"taskMeta": "qAMb0a_taskMeta",
|
|
2368
|
+
"taskRow": "qAMb0a_taskRow",
|
|
2369
|
+
"rowActions": "qAMb0a_rowActions",
|
|
2370
|
+
"amber": "qAMb0a_amber",
|
|
2371
|
+
"red": "qAMb0a_red",
|
|
2372
|
+
"iconBtn": "qAMb0a_iconBtn",
|
|
2373
|
+
"confirming": "qAMb0a_confirming"
|
|
2355
2374
|
};
|
|
2356
2375
|
//#endregion
|
|
2357
2376
|
//#region client/components/TaskRow.tsx
|
|
@@ -2373,13 +2392,15 @@ window.__ModuleLoader__.load({
|
|
|
2373
2392
|
if (kind === "defer") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPauseOutline16, {});
|
|
2374
2393
|
if (kind === "drop") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutline16, {});
|
|
2375
2394
|
if (kind === "retry") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutline16, {});
|
|
2395
|
+
if (kind === "edit") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutline16, {});
|
|
2376
2396
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, {});
|
|
2377
2397
|
}
|
|
2378
|
-
function TaskRow({ task, t, onOpenDetail }) {
|
|
2398
|
+
function TaskRow({ task, t, onOpenDetail, onEdit }) {
|
|
2379
2399
|
const pending = task.status === "pending-review";
|
|
2380
2400
|
const deferred = task.status === "deferred";
|
|
2381
2401
|
const locked = task.status === "running" || task.status === "preflight";
|
|
2382
2402
|
const failed = task.status === "failed" || task.status === "timeout" || task.status === "stale";
|
|
2403
|
+
const editable = (pending || deferred || task.status === "queued") && !locked;
|
|
2383
2404
|
const [confirming, setConfirming] = (0, react.useState)(false);
|
|
2384
2405
|
async function handleDelete() {
|
|
2385
2406
|
if (!confirming) {
|
|
@@ -2394,6 +2415,13 @@ window.__ModuleLoader__.load({
|
|
|
2394
2415
|
} else showToast(t("toast.deleteFailed", { error: result.error ?? "unknown" }));
|
|
2395
2416
|
}
|
|
2396
2417
|
const actions = [];
|
|
2418
|
+
if (editable && onEdit !== void 0) actions.push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2419
|
+
type: "button",
|
|
2420
|
+
className: TaskRow_module_css_default.iconBtn,
|
|
2421
|
+
title: t("action.edit"),
|
|
2422
|
+
onClick: () => onEdit(task),
|
|
2423
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RowActionIcon, { kind: "edit" })
|
|
2424
|
+
}, "edit"));
|
|
2397
2425
|
if (pending || deferred) actions.push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
2398
2426
|
type: "button",
|
|
2399
2427
|
className: TaskRow_module_css_default.iconBtn,
|
|
@@ -2515,8 +2543,8 @@ window.__ModuleLoader__.load({
|
|
|
2515
2543
|
});
|
|
2516
2544
|
}
|
|
2517
2545
|
//#endregion
|
|
2518
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\CandidatesView.module.css.mjs
|
|
2519
|
-
const css$6 = ".
|
|
2546
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\CandidatesView.module.css.mjs
|
|
2547
|
+
const css$6 = ".hYLrvW_wrap{flex-direction:column;gap:4px;margin-top:4px;display:flex}.hYLrvW_toggle{color:var(--dsw-alias-brand-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;background:0 0;border:none;border-radius:6px;align-self:flex-start;align-items:center;gap:4px;padding:2px 4px;display:inline-flex}.hYLrvW_toggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.hYLrvW_candidate{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-direction:column;gap:3px;padding:6px 8px;display:flex}.hYLrvW_picked{border-color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-interactive-bg-hover)}.hYLrvW_head{align-items:center;gap:8px;display:flex}.hYLrvW_title{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13)}.hYLrvW_pickedTag{color:var(--dsw-alias-state-success-primary);font:var(--dsw-font-xxs-12);margin-left:6px}.hYLrvW_meta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;margin-left:auto}.hYLrvW_excerpt{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:pre-wrap;word-break:break-word;max-height:160px;line-height:1.6;overflow-y:auto}";
|
|
2520
2548
|
const tagId$6 = "dsh-lowtide/CandidatesView.module.css";
|
|
2521
2549
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
2522
2550
|
const tag = document.createElement("style");
|
|
@@ -2526,15 +2554,15 @@ window.__ModuleLoader__.load({
|
|
|
2526
2554
|
document.head.appendChild(tag);
|
|
2527
2555
|
}
|
|
2528
2556
|
var CandidatesView_module_css_default = {
|
|
2529
|
-
"
|
|
2530
|
-
"
|
|
2531
|
-
"
|
|
2532
|
-
"
|
|
2533
|
-
"
|
|
2534
|
-
"
|
|
2535
|
-
"
|
|
2536
|
-
"
|
|
2537
|
-
"pickedTag": "
|
|
2557
|
+
"title": "hYLrvW_title",
|
|
2558
|
+
"candidate": "hYLrvW_candidate",
|
|
2559
|
+
"picked": "hYLrvW_picked",
|
|
2560
|
+
"wrap": "hYLrvW_wrap",
|
|
2561
|
+
"meta": "hYLrvW_meta",
|
|
2562
|
+
"toggle": "hYLrvW_toggle",
|
|
2563
|
+
"excerpt": "hYLrvW_excerpt",
|
|
2564
|
+
"head": "hYLrvW_head",
|
|
2565
|
+
"pickedTag": "hYLrvW_pickedTag"
|
|
2538
2566
|
};
|
|
2539
2567
|
//#endregion
|
|
2540
2568
|
//#region client/components/CandidatesView.tsx
|
|
@@ -2596,8 +2624,8 @@ window.__ModuleLoader__.load({
|
|
|
2596
2624
|
});
|
|
2597
2625
|
}
|
|
2598
2626
|
//#endregion
|
|
2599
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\TaskDetail.module.css.mjs
|
|
2600
|
-
const css$5 = ".
|
|
2627
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\TaskDetail.module.css.mjs
|
|
2628
|
+
const css$5 = "._WRBGW_modalBody{flex-direction:column;gap:10px;display:flex}._WRBGW_modalFooter{justify-content:flex-end;gap:8px;display:flex}._WRBGW_detailPrompt{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);white-space:pre-wrap;word-break:break-word;border-radius:8px;padding:8px 10px;line-height:1.6}._WRBGW_detailGrid{grid-template-columns:1fr 1fr;gap:6px 12px;display:grid}._WRBGW_detailItem{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._WRBGW_detailValue{color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);word-break:break-all}._WRBGW_detailSection{flex-direction:column;gap:3px;display:flex}._WRBGW_detailLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._WRBGW_detailFile{color:var(--dsw-alias-label-secondary);font-family:var(--ds-font-family-code);word-break:break-all;font-size:11px}._WRBGW_detailRun{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);font-variant-numeric:tabular-nums}._WRBGW_detailError{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailResumed{color:var(--dsw-alias-state-success-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailResumeWarn{color:var(--dsw-alias-state-warning-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-alias-interactive-bg-hover);word-break:break-word;border-radius:6px;padding:6px 8px}._WRBGW_detailReview{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._WRBGW_detailReview summary{cursor:pointer;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);user-select:none}._WRBGW_detailReviewBody{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;word-break:break-word;border-radius:6px;margin-top:4px;padding:6px 8px;line-height:1.6}";
|
|
2601
2629
|
const tagId$5 = "dsh-lowtide/TaskDetail.module.css";
|
|
2602
2630
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
2603
2631
|
const tag = document.createElement("style");
|
|
@@ -2607,21 +2635,21 @@ window.__ModuleLoader__.load({
|
|
|
2607
2635
|
document.head.appendChild(tag);
|
|
2608
2636
|
}
|
|
2609
2637
|
var TaskDetail_module_css_default = {
|
|
2610
|
-
"
|
|
2611
|
-
"
|
|
2612
|
-
"
|
|
2613
|
-
"
|
|
2614
|
-
"
|
|
2615
|
-
"
|
|
2616
|
-
"
|
|
2617
|
-
"
|
|
2618
|
-
"
|
|
2619
|
-
"
|
|
2620
|
-
"detailItem": "
|
|
2621
|
-
"
|
|
2622
|
-
"
|
|
2623
|
-
"
|
|
2624
|
-
"
|
|
2638
|
+
"detailError": "_WRBGW_detailError",
|
|
2639
|
+
"detailGrid": "_WRBGW_detailGrid",
|
|
2640
|
+
"detailReviewBody": "_WRBGW_detailReviewBody",
|
|
2641
|
+
"modalFooter": "_WRBGW_modalFooter",
|
|
2642
|
+
"detailPrompt": "_WRBGW_detailPrompt",
|
|
2643
|
+
"detailReview": "_WRBGW_detailReview",
|
|
2644
|
+
"detailSection": "_WRBGW_detailSection",
|
|
2645
|
+
"detailValue": "_WRBGW_detailValue",
|
|
2646
|
+
"modalBody": "_WRBGW_modalBody",
|
|
2647
|
+
"detailResumeWarn": "_WRBGW_detailResumeWarn",
|
|
2648
|
+
"detailItem": "_WRBGW_detailItem",
|
|
2649
|
+
"detailLabel": "_WRBGW_detailLabel",
|
|
2650
|
+
"detailResumed": "_WRBGW_detailResumed",
|
|
2651
|
+
"detailFile": "_WRBGW_detailFile",
|
|
2652
|
+
"detailRun": "_WRBGW_detailRun"
|
|
2625
2653
|
};
|
|
2626
2654
|
//#endregion
|
|
2627
2655
|
//#region client/components/TaskDetail.tsx
|
|
@@ -2629,21 +2657,27 @@ window.__ModuleLoader__.load({
|
|
|
2629
2657
|
* TaskDetail (Phase D split): the task drill-down modal — full prompt,
|
|
2630
2658
|
* snapshots, strategy, sampling candidates, last run, errors.
|
|
2631
2659
|
*/
|
|
2632
|
-
function TaskDetail({ task, t, onClose }) {
|
|
2660
|
+
function TaskDetail({ task, t, onClose, onEdit }) {
|
|
2633
2661
|
const strat = strategyLabel(t, task.lastRun?.strategy ?? task.strategy, task.lastRun?.roundsRun);
|
|
2662
|
+
const editable = task.status === "pending-review" || task.status === "queued" || task.status === "deferred";
|
|
2634
2663
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
2635
2664
|
open: true,
|
|
2636
2665
|
onClose,
|
|
2637
2666
|
title: t("detail.title"),
|
|
2638
2667
|
description: `${statusLabel(t, task.status)} · ${task.id}`,
|
|
2639
|
-
footer: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
2668
|
+
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2640
2669
|
className: TaskDetail_module_css_default.modalFooter,
|
|
2641
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2670
|
+
children: [editable && onEdit !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2671
|
+
variant: "outline",
|
|
2672
|
+
size: "md",
|
|
2673
|
+
onClick: () => onEdit(task),
|
|
2674
|
+
children: t("action.edit")
|
|
2675
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2642
2676
|
variant: "primary",
|
|
2643
2677
|
size: "md",
|
|
2644
2678
|
onClick: onClose,
|
|
2645
2679
|
children: t("detail.close")
|
|
2646
|
-
})
|
|
2680
|
+
})]
|
|
2647
2681
|
}),
|
|
2648
2682
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
2649
2683
|
className: TaskDetail_module_css_default.modalBody,
|
|
@@ -2699,6 +2733,17 @@ window.__ModuleLoader__.load({
|
|
|
2699
2733
|
})
|
|
2700
2734
|
]
|
|
2701
2735
|
}),
|
|
2736
|
+
(task.editCount ?? 0) > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2737
|
+
className: TaskDetail_module_css_default.detailItem,
|
|
2738
|
+
children: [
|
|
2739
|
+
t("detail.edited"),
|
|
2740
|
+
" ",
|
|
2741
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2742
|
+
className: TaskDetail_module_css_default.detailValue,
|
|
2743
|
+
children: t("detail.editedCount", { count: task.editCount ?? 0 })
|
|
2744
|
+
})
|
|
2745
|
+
]
|
|
2746
|
+
}),
|
|
2702
2747
|
task.model !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
2703
2748
|
className: TaskDetail_module_css_default.detailItem,
|
|
2704
2749
|
children: [
|
|
@@ -2827,8 +2872,8 @@ window.__ModuleLoader__.load({
|
|
|
2827
2872
|
});
|
|
2828
2873
|
}
|
|
2829
2874
|
//#endregion
|
|
2830
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\NewTaskModal.module.css.mjs
|
|
2831
|
-
const css$4 = ".
|
|
2875
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\NewTaskModal.module.css.mjs
|
|
2876
|
+
const css$4 = ".QoH8JG_wide{width:min(560px,100%)}.QoH8JG_modalBody{flex-direction:column;gap:10px;display:flex}.QoH8JG_modalFooter{justify-content:flex-end;gap:8px;display:flex}";
|
|
2832
2877
|
const tagId$4 = "dsh-lowtide/NewTaskModal.module.css";
|
|
2833
2878
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
2834
2879
|
const tag = document.createElement("style");
|
|
@@ -2838,9 +2883,9 @@ window.__ModuleLoader__.load({
|
|
|
2838
2883
|
document.head.appendChild(tag);
|
|
2839
2884
|
}
|
|
2840
2885
|
var NewTaskModal_module_css_default = {
|
|
2841
|
-
"
|
|
2842
|
-
"
|
|
2843
|
-
"wide": "
|
|
2886
|
+
"modalFooter": "QoH8JG_modalFooter",
|
|
2887
|
+
"modalBody": "QoH8JG_modalBody",
|
|
2888
|
+
"wide": "QoH8JG_wide"
|
|
2844
2889
|
};
|
|
2845
2890
|
//#endregion
|
|
2846
2891
|
//#region client/components/NewTaskModal.tsx
|
|
@@ -2890,7 +2935,8 @@ window.__ModuleLoader__.load({
|
|
|
2890
2935
|
for (const p of res.providers) for (const m of p.models) flat.push({
|
|
2891
2936
|
id: m.id,
|
|
2892
2937
|
name: m.name,
|
|
2893
|
-
provider: p.
|
|
2938
|
+
provider: p.provider,
|
|
2939
|
+
...p.displayName !== void 0 && p.displayName !== "" && p.displayName !== p.provider ? { providerLabel: p.displayName } : {},
|
|
2894
2940
|
...m.reasoningEfforts !== void 0 ? { reasoningEfforts: m.reasoningEfforts } : {},
|
|
2895
2941
|
...m.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: m.defaultReasoningEffort } : {}
|
|
2896
2942
|
});
|
|
@@ -2991,8 +3037,145 @@ window.__ModuleLoader__.load({
|
|
|
2991
3037
|
});
|
|
2992
3038
|
}
|
|
2993
3039
|
//#endregion
|
|
2994
|
-
//#region
|
|
2995
|
-
|
|
3040
|
+
//#region client/components/EditTaskModal.tsx
|
|
3041
|
+
/**
|
|
3042
|
+
* EditTaskModal: in-place task editing for the off-peak queue.
|
|
3043
|
+
*
|
|
3044
|
+
* Reuses the SAME TaskForm and the SAME modal shell/styles as NewTaskModal —
|
|
3045
|
+
* editing feels exactly like creating, except the form is pre-filled with the
|
|
3046
|
+
* task's current values and the primary button says "保存修改" instead of
|
|
3047
|
+
* "投递". Identity (task id, createdAt) and status are preserved by the
|
|
3048
|
+
* server; this modal only submits the (full, refilled) form.
|
|
3049
|
+
*/
|
|
3050
|
+
function valueOf(task, defaultAutonomy) {
|
|
3051
|
+
return {
|
|
3052
|
+
prompt: task.prompt,
|
|
3053
|
+
workspace: task.workspace,
|
|
3054
|
+
strategy: task.strategy ?? "single",
|
|
3055
|
+
rounds: task.rounds ?? 3,
|
|
3056
|
+
priority: task.priority,
|
|
3057
|
+
files: task.files.map((f) => f.path).join(", "),
|
|
3058
|
+
reasoning: task.reasoning ?? "follow",
|
|
3059
|
+
model: task.model ?? "",
|
|
3060
|
+
modelProvider: task.modelProvider ?? "",
|
|
3061
|
+
strategyHint: task.strategyHint ?? "",
|
|
3062
|
+
autonomy: task.autonomy ?? defaultAutonomy,
|
|
3063
|
+
sessionMode: task.continuesFromSession !== void 0 ? "continue" : "new",
|
|
3064
|
+
continuesFromSession: task.continuesFromSession
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
function EditTaskModal({ task, t, defaultAutonomy, onClose }) {
|
|
3068
|
+
const [form, setForm] = (0, react.useState)(() => valueOf(task, defaultAutonomy));
|
|
3069
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
3070
|
+
const [advancedOpen, setAdvancedOpen] = (0, react.useState)(false);
|
|
3071
|
+
const [sessionWorkspaces, setSessionWorkspaces] = (0, react.useState)(null);
|
|
3072
|
+
const [models, setModels] = (0, react.useState)(null);
|
|
3073
|
+
const [workspaces, setWorkspaces] = (0, react.useState)(null);
|
|
3074
|
+
(0, react.useEffect)(() => {
|
|
3075
|
+
if (advancedOpen && models === null) getModels().then((res) => {
|
|
3076
|
+
if (res.ok && res.providers !== void 0) {
|
|
3077
|
+
const flat = [];
|
|
3078
|
+
for (const p of res.providers) for (const m of p.models) flat.push({
|
|
3079
|
+
id: m.id,
|
|
3080
|
+
name: m.name,
|
|
3081
|
+
provider: p.provider,
|
|
3082
|
+
...p.displayName !== void 0 && p.displayName !== "" && p.displayName !== p.provider ? { providerLabel: p.displayName } : {},
|
|
3083
|
+
...m.reasoningEfforts !== void 0 ? { reasoningEfforts: m.reasoningEfforts } : {},
|
|
3084
|
+
...m.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: m.defaultReasoningEffort } : {}
|
|
3085
|
+
});
|
|
3086
|
+
setModels(flat);
|
|
3087
|
+
} else setModels([]);
|
|
3088
|
+
}).catch(() => setModels([]));
|
|
3089
|
+
}, [advancedOpen, models]);
|
|
3090
|
+
(0, react.useEffect)(() => {
|
|
3091
|
+
if (advancedOpen && sessionWorkspaces === null) getSessions().then((res) => {
|
|
3092
|
+
if (res.ok && res.workspaces !== void 0) setSessionWorkspaces(res.workspaces.map((w) => w));
|
|
3093
|
+
else setSessionWorkspaces([]);
|
|
3094
|
+
}).catch(() => setSessionWorkspaces([]));
|
|
3095
|
+
}, [advancedOpen, sessionWorkspaces]);
|
|
3096
|
+
(0, react.useEffect)(() => {
|
|
3097
|
+
if (advancedOpen && workspaces === null) getWorkspaces().then((res) => {
|
|
3098
|
+
if (res.ok && res.workspaces !== void 0) setWorkspaces(res.workspaces);
|
|
3099
|
+
else setWorkspaces([]);
|
|
3100
|
+
}).catch(() => setWorkspaces([]));
|
|
3101
|
+
}, [advancedOpen, workspaces]);
|
|
3102
|
+
function patch(p) {
|
|
3103
|
+
setForm((f) => ({
|
|
3104
|
+
...f,
|
|
3105
|
+
...p
|
|
3106
|
+
}));
|
|
3107
|
+
}
|
|
3108
|
+
async function save() {
|
|
3109
|
+
if (form.prompt.trim() === "") return;
|
|
3110
|
+
setBusy(true);
|
|
3111
|
+
const result = await editTask(task.id, {
|
|
3112
|
+
prompt: form.prompt,
|
|
3113
|
+
files: form.files.split(",").map((p) => p.trim()).filter((p) => p !== ""),
|
|
3114
|
+
workspace: form.workspace,
|
|
3115
|
+
priority: form.priority,
|
|
3116
|
+
permissionPreset: task.permissionPreset,
|
|
3117
|
+
strategy: form.strategy,
|
|
3118
|
+
rounds: form.strategy === "single" || form.strategy === "review" ? 1 : form.rounds,
|
|
3119
|
+
...form.reasoning !== "follow" ? { reasoning: form.reasoning } : {},
|
|
3120
|
+
...form.model !== "" ? {
|
|
3121
|
+
model: form.model,
|
|
3122
|
+
...form.modelProvider !== "" ? { modelProvider: form.modelProvider } : {}
|
|
3123
|
+
} : {},
|
|
3124
|
+
...form.strategyHint.trim() !== "" ? { strategyHint: form.strategyHint.trim() } : {},
|
|
3125
|
+
autonomy: form.autonomy,
|
|
3126
|
+
...form.sessionMode === "continue" && form.continuesFromSession !== void 0 ? { continuesFromSession: form.continuesFromSession } : {}
|
|
3127
|
+
});
|
|
3128
|
+
setBusy(false);
|
|
3129
|
+
if (result.ok) {
|
|
3130
|
+
showToast(t("toast.edited"));
|
|
3131
|
+
onClose();
|
|
3132
|
+
} else showToast(t("toast.editFailed", { error: result.error ?? "unknown" }));
|
|
3133
|
+
}
|
|
3134
|
+
function mainOnClose() {
|
|
3135
|
+
if (advancedOpen) setAdvancedOpen(false);
|
|
3136
|
+
else onClose();
|
|
3137
|
+
}
|
|
3138
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
3139
|
+
open: true,
|
|
3140
|
+
onClose: mainOnClose,
|
|
3141
|
+
title: t("modal.editTitle"),
|
|
3142
|
+
description: t("modal.editDesc", { id: task.id }),
|
|
3143
|
+
className: NewTaskModal_module_css_default.wide,
|
|
3144
|
+
footer: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3145
|
+
className: NewTaskModal_module_css_default.modalFooter,
|
|
3146
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3147
|
+
variant: "ghost",
|
|
3148
|
+
size: "md",
|
|
3149
|
+
onClick: onClose,
|
|
3150
|
+
children: t("modal.cancel")
|
|
3151
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3152
|
+
variant: "primary",
|
|
3153
|
+
size: "md",
|
|
3154
|
+
disabled: busy || form.prompt.trim() === "",
|
|
3155
|
+
onClick: () => void save(),
|
|
3156
|
+
children: t("modal.saveEdit")
|
|
3157
|
+
})]
|
|
3158
|
+
}),
|
|
3159
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3160
|
+
className: NewTaskModal_module_css_default.modalBody,
|
|
3161
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskForm, {
|
|
3162
|
+
variant: "modal",
|
|
3163
|
+
t,
|
|
3164
|
+
values: form,
|
|
3165
|
+
onChange: patch,
|
|
3166
|
+
autoFocusPrompt: true,
|
|
3167
|
+
advancedOpen,
|
|
3168
|
+
onAdvancedOpenChange: setAdvancedOpen,
|
|
3169
|
+
sessionWorkspaces: sessionWorkspaces ?? [],
|
|
3170
|
+
models: models ?? void 0,
|
|
3171
|
+
workspaces: workspaces ?? void 0
|
|
3172
|
+
})
|
|
3173
|
+
})
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
//#endregion
|
|
3177
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\QueueDock.module.css.mjs
|
|
3178
|
+
const css$3 = ".qgadtG_dock{flex-direction:column;gap:4px;width:calc(100% - 16px);margin:0 8px -3px;display:flex}.qgadtG_dockRow{background:var(--dsw-specific-tip);border-radius:12px 12px 0 0;justify-content:space-between;align-items:center;gap:8px;height:36px;padding:4px 12px;display:flex}.qgadtG_dockTitle{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14);font-variant-numeric:tabular-nums;font-weight:500}.qgadtG_pending{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12)}.qgadtG_dockActions{align-items:center;gap:4px;display:flex}.qgadtG_reportBtn{align-items:center;gap:4px;display:inline-flex;position:relative}.qgadtG_reportDot{background:var(--dsw-alias-state-warn-primary);border-radius:999px;width:6px;height:6px;position:absolute;top:-2px;right:-4px}.qgadtG_sectionHead{justify-content:space-between;align-items:center;gap:8px;display:flex}.qgadtG_sectionToggle{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:center;gap:4px;padding:4px;display:flex}.qgadtG_sectionToggle:hover{color:var(--dsw-alias-label-primary)}.qgadtG_clearBtn{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;padding:3px 8px}.qgadtG_clearBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.qgadtG_clearArmed{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover);font-weight:600}.qgadtG_clearArmed:hover{color:var(--dsw-alias-state-error-primary)}.qgadtG_approveArmed{font-weight:600;color:var(--dsw-alias-state-error-primary)!important;background:var(--dsw-alias-interactive-bg-hover)!important}.qgadtG_drawer{background:var(--dsw-specific-tip);border-top:none;flex-direction:column;gap:4px;max-height:320px;padding:4px 8px 8px;display:flex;overflow-y:auto}.qgadtG_group{flex-direction:column;gap:2px;display:flex}.qgadtG_groupHeader{justify-content:space-between;align-items:center;padding:4px 4px 2px;display:flex}.qgadtG_groupPath{color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);font-size:11px}.qgadtG_onboarding{box-sizing:border-box;background:var(--dsw-specific-tip);border:1px solid var(--dsw-alias-border-l1);width:calc(100% - 16px);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;margin:0 8px;padding:6px 10px;line-height:1.5;display:flex}.qgadtG_onboarding b{color:var(--dsw-alias-label-primary)}.qgadtG_onboardingDismiss{background:var(--dsw-alias-brand-primary);color:var(--dsw-alias-label-primary-foreground);font:var(--dsw-font-xxs-12);cursor:pointer;border:none;border-radius:999px;flex-shrink:0;padding:3px 10px}.qgadtG_onboardingDismiss:hover{opacity:.9}.qgadtG_footer{border-top:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:8px;padding:6px 4px 2px;display:flex}.qgadtG_footerActions{gap:4px;display:flex}.qgadtG_empty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);flex-direction:column;align-items:center;gap:8px;padding:16px 0;display:flex}";
|
|
2996
3179
|
const tagId$3 = "dsh-lowtide/QueueDock.module.css";
|
|
2997
3180
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
2998
3181
|
const tag = document.createElement("style");
|
|
@@ -3002,26 +3185,27 @@ window.__ModuleLoader__.load({
|
|
|
3002
3185
|
document.head.appendChild(tag);
|
|
3003
3186
|
}
|
|
3004
3187
|
var QueueDock_module_css_default = {
|
|
3005
|
-
"
|
|
3006
|
-
"
|
|
3007
|
-
"
|
|
3008
|
-
"
|
|
3009
|
-
"
|
|
3010
|
-
"
|
|
3011
|
-
"
|
|
3012
|
-
"
|
|
3013
|
-
"footer": "
|
|
3014
|
-
"
|
|
3015
|
-
"
|
|
3016
|
-
"
|
|
3017
|
-
"
|
|
3018
|
-
"
|
|
3019
|
-
"
|
|
3020
|
-
"
|
|
3021
|
-
"
|
|
3022
|
-
"
|
|
3023
|
-
"
|
|
3024
|
-
"
|
|
3188
|
+
"onboardingDismiss": "qgadtG_onboardingDismiss",
|
|
3189
|
+
"dockTitle": "qgadtG_dockTitle",
|
|
3190
|
+
"sectionHead": "qgadtG_sectionHead",
|
|
3191
|
+
"groupHeader": "qgadtG_groupHeader",
|
|
3192
|
+
"pending": "qgadtG_pending",
|
|
3193
|
+
"reportBtn": "qgadtG_reportBtn",
|
|
3194
|
+
"clearBtn": "qgadtG_clearBtn",
|
|
3195
|
+
"footerActions": "qgadtG_footerActions",
|
|
3196
|
+
"footer": "qgadtG_footer",
|
|
3197
|
+
"sectionToggle": "qgadtG_sectionToggle",
|
|
3198
|
+
"empty": "qgadtG_empty",
|
|
3199
|
+
"drawer": "qgadtG_drawer",
|
|
3200
|
+
"groupPath": "qgadtG_groupPath",
|
|
3201
|
+
"dock": "qgadtG_dock",
|
|
3202
|
+
"dockActions": "qgadtG_dockActions",
|
|
3203
|
+
"dockRow": "qgadtG_dockRow",
|
|
3204
|
+
"reportDot": "qgadtG_reportDot",
|
|
3205
|
+
"approveArmed": "qgadtG_approveArmed",
|
|
3206
|
+
"onboarding": "qgadtG_onboarding",
|
|
3207
|
+
"group": "qgadtG_group",
|
|
3208
|
+
"clearArmed": "qgadtG_clearArmed"
|
|
3025
3209
|
};
|
|
3026
3210
|
//#endregion
|
|
3027
3211
|
//#region client/components/QueueDock.tsx
|
|
@@ -3039,9 +3223,11 @@ window.__ModuleLoader__.load({
|
|
|
3039
3223
|
const reportUnread = useLowtide((s) => s.reportUnread);
|
|
3040
3224
|
const [modalOpen, setModalOpen] = (0, react.useState)(false);
|
|
3041
3225
|
const [detailTask, setDetailTask] = (0, react.useState)(null);
|
|
3226
|
+
const [editTask, setEditTask] = (0, react.useState)(null);
|
|
3042
3227
|
const [showDone, setShowDone] = (0, react.useState)(false);
|
|
3043
3228
|
const [showDropped, setShowDropped] = (0, react.useState)(false);
|
|
3044
3229
|
const [clearArmed, setClearArmed] = (0, react.useState)(false);
|
|
3230
|
+
const [approveArmed, setApproveArmed] = (0, react.useState)(false);
|
|
3045
3231
|
const [onboarded, setOnboarded] = (0, react.useState)(() => {
|
|
3046
3232
|
try {
|
|
3047
3233
|
return localStorage.getItem("dsh-lowtide:onboarded") === "1";
|
|
@@ -3074,6 +3260,20 @@ window.__ModuleLoader__.load({
|
|
|
3074
3260
|
} catch {}
|
|
3075
3261
|
setOnboarded(true);
|
|
3076
3262
|
}
|
|
3263
|
+
/** 放行并执行:两段式确认。第一次点击武装(变红 + 文案切换),3 秒内
|
|
3264
|
+
* 再次点击才真正 approveAll + runNow —— 防止误触一步放行全部任务。 */
|
|
3265
|
+
function handleApproveAndRun() {
|
|
3266
|
+
if (!approveArmed) {
|
|
3267
|
+
setApproveArmed(true);
|
|
3268
|
+
setTimeout(() => setApproveArmed(false), 3e3);
|
|
3269
|
+
return;
|
|
3270
|
+
}
|
|
3271
|
+
setApproveArmed(false);
|
|
3272
|
+
approveAll().then(() => {
|
|
3273
|
+
showToast(t("toast.gateApproved"));
|
|
3274
|
+
runNow().then(() => showToast(t("toast.runStarted")));
|
|
3275
|
+
});
|
|
3276
|
+
}
|
|
3077
3277
|
/** 清空已完成:两段式确认(执行报告历史保留证据,删除任务不丢账)。 */
|
|
3078
3278
|
function handleClearFinished() {
|
|
3079
3279
|
if (!clearArmed) {
|
|
@@ -3167,7 +3367,14 @@ window.__ModuleLoader__.load({
|
|
|
3167
3367
|
detailTask !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskDetail, {
|
|
3168
3368
|
task: detailTask,
|
|
3169
3369
|
t,
|
|
3170
|
-
onClose: () => setDetailTask(null)
|
|
3370
|
+
onClose: () => setDetailTask(null),
|
|
3371
|
+
onEdit: setEditTask
|
|
3372
|
+
}),
|
|
3373
|
+
editTask !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditTaskModal, {
|
|
3374
|
+
task: editTask,
|
|
3375
|
+
t,
|
|
3376
|
+
defaultAutonomy: host.autonomy,
|
|
3377
|
+
onClose: () => setEditTask(null)
|
|
3171
3378
|
})
|
|
3172
3379
|
]
|
|
3173
3380
|
});
|
|
@@ -3202,7 +3409,8 @@ window.__ModuleLoader__.load({
|
|
|
3202
3409
|
}), group.tasks.map((task) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskRow, {
|
|
3203
3410
|
task,
|
|
3204
3411
|
t,
|
|
3205
|
-
onOpenDetail: setDetailTask
|
|
3412
|
+
onOpenDetail: setDetailTask,
|
|
3413
|
+
onEdit: setEditTask
|
|
3206
3414
|
}, task.id))]
|
|
3207
3415
|
}, group.workspace)),
|
|
3208
3416
|
todo.length === 0 && running.length === 0 && done.length === 0 && dropped.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -3278,13 +3486,10 @@ window.__ModuleLoader__.load({
|
|
|
3278
3486
|
children: pending > 0 && !isL1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3279
3487
|
variant: "primary",
|
|
3280
3488
|
size: "sm",
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
});
|
|
3286
|
-
},
|
|
3287
|
-
children: t("footer.approveAndRun")
|
|
3489
|
+
className: approveArmed ? QueueDock_module_css_default.approveArmed : void 0,
|
|
3490
|
+
title: approveArmed ? t("footer.approveAndRunConfirm") : t("footer.approveAndRun"),
|
|
3491
|
+
onClick: handleApproveAndRun,
|
|
3492
|
+
children: approveArmed ? t("footer.approveAndRunConfirmShort") : t("footer.approveAndRun")
|
|
3288
3493
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3289
3494
|
variant: "outline",
|
|
3290
3495
|
size: "sm",
|
|
@@ -3307,14 +3512,21 @@ window.__ModuleLoader__.load({
|
|
|
3307
3512
|
detailTask !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskDetail, {
|
|
3308
3513
|
task: detailTask,
|
|
3309
3514
|
t,
|
|
3310
|
-
onClose: () => setDetailTask(null)
|
|
3515
|
+
onClose: () => setDetailTask(null),
|
|
3516
|
+
onEdit: setEditTask
|
|
3517
|
+
}),
|
|
3518
|
+
editTask !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EditTaskModal, {
|
|
3519
|
+
task: editTask,
|
|
3520
|
+
t,
|
|
3521
|
+
defaultAutonomy: host.autonomy,
|
|
3522
|
+
onClose: () => setEditTask(null)
|
|
3311
3523
|
})
|
|
3312
3524
|
]
|
|
3313
3525
|
});
|
|
3314
3526
|
}
|
|
3315
3527
|
//#endregion
|
|
3316
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\MorningReport.module.css.mjs
|
|
3317
|
-
const css$2 = ".
|
|
3528
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\MorningReport.module.css.mjs
|
|
3529
|
+
const css$2 = ".REcyxG_historyList{flex-direction:column;gap:4px;max-height:360px;display:flex;overflow-y:auto}.REcyxG_historyRow{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;display:flex}.REcyxG_historyRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_historyDate{font-weight:600}.REcyxG_historyMeta{color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}.REcyxG_historyEmpty{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:12px}.REcyxG_historyHeader{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding:0 10px 2px}.REcyxG_historyRowWrap{border-radius:8px;align-items:center;gap:4px;display:flex}.REcyxG_historyRowWrap:hover{background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_historyRowWrap .REcyxG_historyRow{flex:1;min-width:0}.REcyxG_historyRowWrap .REcyxG_historyRow:hover{background:0 0}.REcyxG_historyDelete{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;margin-right:4px;font-size:12px;display:inline-flex}.REcyxG_historyRowWrap:hover .REcyxG_historyDelete{opacity:1}.REcyxG_historyDelete:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary)}.REcyxG_historyFooter{border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end;padding-top:6px;display:flex}.REcyxG_clearBtn{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 8px}.REcyxG_clearBtn:hover{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover)}.REcyxG_clearArmed{border:1px solid var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border-radius:6px;padding:4px 8px;font-weight:600}.REcyxG_body{flex-direction:column;gap:8px;display:flex}.REcyxG_headline{flex-direction:column;align-items:center;gap:2px;display:flex}.REcyxG_headlineLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14)}.REcyxG_headlineValue{color:var(--dsw-alias-state-success-primary);font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums;font-size:32px;font-weight:700;line-height:40px}.REcyxG_headlineMeta{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);font-variant-numeric:tabular-nums}.REcyxG_divider{background:var(--dsw-alias-border-l1);height:1px}.REcyxG_taskRow{border-left:2px solid #0000;gap:8px;padding:4px 0 4px 8px;display:flex}.REcyxG_doneRow{border-left-color:var(--dsw-alias-state-success-primary)}.REcyxG_badRow{border-left-color:var(--dsw-alias-state-error-primary)}.REcyxG_taskMain{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.REcyxG_taskPrompt{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14)}.REcyxG_taskMeta{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.REcyxG_more{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding-left:8px}.REcyxG_reviewExcerpt{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12)}.REcyxG_reviewExcerpt summary{cursor:pointer;color:var(--dsw-alias-label-tertiary);user-select:none}.REcyxG_reviewExcerptBody{background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;word-break:break-word;border-radius:6px;margin-top:4px;padding:6px 8px;line-height:1.6}.REcyxG_footer{justify-content:space-between;align-items:center;display:flex}.REcyxG_modalFooter{justify-content:flex-end;display:flex}";
|
|
3318
3530
|
const tagId$2 = "dsh-lowtide/MorningReport.module.css";
|
|
3319
3531
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
3320
3532
|
const tag = document.createElement("style");
|
|
@@ -3324,34 +3536,34 @@ window.__ModuleLoader__.load({
|
|
|
3324
3536
|
document.head.appendChild(tag);
|
|
3325
3537
|
}
|
|
3326
3538
|
var MorningReport_module_css_default = {
|
|
3327
|
-
"
|
|
3328
|
-
"
|
|
3329
|
-
"
|
|
3330
|
-
"
|
|
3331
|
-
"
|
|
3332
|
-
"
|
|
3333
|
-
"
|
|
3334
|
-
"
|
|
3335
|
-
"
|
|
3336
|
-
"
|
|
3337
|
-
"
|
|
3338
|
-
"
|
|
3339
|
-
"
|
|
3340
|
-
"
|
|
3341
|
-
"
|
|
3342
|
-
"
|
|
3343
|
-
"
|
|
3344
|
-
"more": "
|
|
3345
|
-
"
|
|
3346
|
-
"
|
|
3347
|
-
"
|
|
3348
|
-
"
|
|
3349
|
-
"
|
|
3350
|
-
"
|
|
3351
|
-
"
|
|
3352
|
-
"
|
|
3353
|
-
"
|
|
3354
|
-
"
|
|
3539
|
+
"clearBtn": "REcyxG_clearBtn",
|
|
3540
|
+
"historyEmpty": "REcyxG_historyEmpty",
|
|
3541
|
+
"reviewExcerptBody": "REcyxG_reviewExcerptBody",
|
|
3542
|
+
"historyHeader": "REcyxG_historyHeader",
|
|
3543
|
+
"historyDelete": "REcyxG_historyDelete",
|
|
3544
|
+
"historyDate": "REcyxG_historyDate",
|
|
3545
|
+
"headline": "REcyxG_headline",
|
|
3546
|
+
"historyRowWrap": "REcyxG_historyRowWrap",
|
|
3547
|
+
"doneRow": "REcyxG_doneRow",
|
|
3548
|
+
"body": "REcyxG_body",
|
|
3549
|
+
"historyList": "REcyxG_historyList",
|
|
3550
|
+
"headlineMeta": "REcyxG_headlineMeta",
|
|
3551
|
+
"headlineLabel": "REcyxG_headlineLabel",
|
|
3552
|
+
"taskRow": "REcyxG_taskRow",
|
|
3553
|
+
"badRow": "REcyxG_badRow",
|
|
3554
|
+
"historyRow": "REcyxG_historyRow",
|
|
3555
|
+
"taskMain": "REcyxG_taskMain",
|
|
3556
|
+
"more": "REcyxG_more",
|
|
3557
|
+
"clearArmed": "REcyxG_clearArmed",
|
|
3558
|
+
"historyFooter": "REcyxG_historyFooter",
|
|
3559
|
+
"headlineValue": "REcyxG_headlineValue",
|
|
3560
|
+
"divider": "REcyxG_divider",
|
|
3561
|
+
"reviewExcerpt": "REcyxG_reviewExcerpt",
|
|
3562
|
+
"taskPrompt": "REcyxG_taskPrompt",
|
|
3563
|
+
"historyMeta": "REcyxG_historyMeta",
|
|
3564
|
+
"taskMeta": "REcyxG_taskMeta",
|
|
3565
|
+
"footer": "REcyxG_footer",
|
|
3566
|
+
"modalFooter": "REcyxG_modalFooter"
|
|
3355
3567
|
};
|
|
3356
3568
|
//#endregion
|
|
3357
3569
|
//#region client/components/MorningReport.tsx
|
|
@@ -3672,8 +3884,8 @@ window.__ModuleLoader__.load({
|
|
|
3672
3884
|
});
|
|
3673
3885
|
}
|
|
3674
3886
|
//#endregion
|
|
3675
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\components\ConfirmGate.module.css.mjs
|
|
3676
|
-
const css$1 = ".
|
|
3887
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\components\ConfirmGate.module.css.mjs
|
|
3888
|
+
const css$1 = ".v0eOsa_card{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l1);width:480px;max-width:calc(100vw - 32px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);z-index:60;border-radius:14px;flex-direction:column;gap:8px;padding:14px 16px;display:flex;position:fixed;top:80px;left:50%;transform:translate(-50%)}.v0eOsa_header{justify-content:space-between;align-items:center;display:flex}.v0eOsa_title{font:var(--dsw-font-s-14);font-weight:600}.v0eOsa_close{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;font-size:13px;display:inline-flex}.v0eOsa_close:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.v0eOsa_meta{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12)}.v0eOsa_list{flex-direction:column;gap:2px;max-height:200px;display:flex;overflow-y:auto}.v0eOsa_row{border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:5px 6px;display:flex}.v0eOsa_row:hover{background:var(--dsw-alias-interactive-bg-hover)}.v0eOsa_prompt{min-width:0;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.v0eOsa_remove{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;font-size:12px;display:inline-flex}.v0eOsa_remove:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary)}.v0eOsa_more{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);padding:4px 6px}.v0eOsa_footer{border-top:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:8px;padding-top:8px;display:flex}.v0eOsa_releaseLabel{align-items:center;gap:4px;display:inline-flex}.v0eOsa_defer{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;text-decoration:underline}.v0eOsa_defer:hover{color:var(--dsw-alias-label-secondary)}";
|
|
3677
3889
|
const tagId$1 = "dsh-lowtide/ConfirmGate.module.css";
|
|
3678
3890
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
3679
3891
|
const tag = document.createElement("style");
|
|
@@ -3683,19 +3895,19 @@ window.__ModuleLoader__.load({
|
|
|
3683
3895
|
document.head.appendChild(tag);
|
|
3684
3896
|
}
|
|
3685
3897
|
var ConfirmGate_module_css_default = {
|
|
3686
|
-
"
|
|
3687
|
-
"
|
|
3688
|
-
"
|
|
3689
|
-
"
|
|
3690
|
-
"
|
|
3691
|
-
"
|
|
3692
|
-
"
|
|
3693
|
-
"
|
|
3694
|
-
"
|
|
3695
|
-
"
|
|
3696
|
-
"
|
|
3697
|
-
"
|
|
3698
|
-
"title": "
|
|
3898
|
+
"header": "v0eOsa_header",
|
|
3899
|
+
"meta": "v0eOsa_meta",
|
|
3900
|
+
"more": "v0eOsa_more",
|
|
3901
|
+
"list": "v0eOsa_list",
|
|
3902
|
+
"close": "v0eOsa_close",
|
|
3903
|
+
"remove": "v0eOsa_remove",
|
|
3904
|
+
"releaseLabel": "v0eOsa_releaseLabel",
|
|
3905
|
+
"card": "v0eOsa_card",
|
|
3906
|
+
"row": "v0eOsa_row",
|
|
3907
|
+
"prompt": "v0eOsa_prompt",
|
|
3908
|
+
"footer": "v0eOsa_footer",
|
|
3909
|
+
"defer": "v0eOsa_defer",
|
|
3910
|
+
"title": "v0eOsa_title"
|
|
3699
3911
|
};
|
|
3700
3912
|
//#endregion
|
|
3701
3913
|
//#region client/components/ConfirmGate.tsx
|
|
@@ -3835,8 +4047,8 @@ window.__ModuleLoader__.load({
|
|
|
3835
4047
|
});
|
|
3836
4048
|
}
|
|
3837
4049
|
//#endregion
|
|
3838
|
-
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh\client\settings.module.css.mjs
|
|
3839
|
-
const css = ".
|
|
4050
|
+
//#region \0dsh-css:C:\Users\胡克劳\Desktop\dsh-lowtide\packages\dsh-lowtide\client\settings.module.css.mjs
|
|
4051
|
+
const css = "._5HaBnq_page{flex-direction:column;gap:14px;padding:4px 2px 16px;display:flex}._5HaBnq_loading{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);padding:12px 0}._5HaBnq_onboarding{background:var(--dsw-specific-tip);border:1px solid var(--dsw-alias-border-l1);border-radius:10px;flex-direction:column;gap:6px;padding:12px 14px;display:flex}._5HaBnq_onboardingTitle{color:var(--dsw-alias-brand-primary);font:var(--dsw-font-s-14);font-weight:600}._5HaBnq_onboardingSteps{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);margin:0;padding-left:18px;line-height:1.7}._5HaBnq_onboardingSteps b{color:var(--dsw-alias-label-primary)}._5HaBnq_langRow{justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}._5HaBnq_langLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._5HaBnq_error{color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xs-13);background:var(--dsw-alias-interactive-bg-hover);border-radius:8px;padding:8px 12px}._5HaBnq_section{flex-direction:column;gap:8px;display:flex}._5HaBnq_sectionHead{justify-content:space-between;align-items:center;display:flex}._5HaBnq_sectionTitle{color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);margin:0;font-weight:600}._5HaBnq_grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;display:grid}._5HaBnq_field{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);flex-direction:column;gap:4px;display:flex}._5HaBnq_fieldLabel{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}._5HaBnq_strategyHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);line-height:1.5}._5HaBnq_input{box-sizing:border-box;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);width:100%;height:32px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:8px;outline:none;padding:0 8px}._5HaBnq_input:focus{border-color:var(--dsw-alias-brand-primary)}._5HaBnq_checkbox{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);align-items:center;gap:6px;display:flex}._5HaBnq_pillRow{gap:6px;display:flex}._5HaBnq_autonomyPill{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);cursor:pointer;user-select:none;border-radius:999px;padding:4px 12px}._5HaBnq_autonomyPill:hover{background:var(--dsw-alias-interactive-bg-hover)}._5HaBnq_autonomyActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}._5HaBnq_confirmBox{color:var(--dsw-alias-state-warn-primary);font:var(--dsw-font-xxs-12);background:var(--dsw-specific-tip);border-radius:8px;align-items:center;gap:8px;padding:8px 10px;display:flex}._5HaBnq_confirmBtn{background:var(--dsw-alias-state-warn-primary);color:var(--dsw-alias-label-primary-foreground);font:var(--dsw-font-xxs-12);cursor:pointer;border:none;border-radius:999px;padding:3px 10px}._5HaBnq_confirmCancel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border:none;padding:3px 8px}._5HaBnq_hint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);margin:0;line-height:1.6}._5HaBnq_windowRow{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._5HaBnq_windowRow ._5HaBnq_input{flex:0 150px}._5HaBnq_dayRow{gap:4px;display:flex}._5HaBnq_dayBtn{border:1px solid var(--dsw-alias-border-l2);width:24px;height:24px;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);cursor:pointer;background:0 0;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}._5HaBnq_dayBtn:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._5HaBnq_dayActive{border-color:var(--dsw-alias-brand-primary);color:var(--dsw-alias-brand-primary);font-weight:600}._5HaBnq_noWindows{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xs-13);background:var(--dsw-specific-tip);border-radius:8px;padding:10px 12px}._5HaBnq_footer{justify-content:flex-end;display:flex}._5HaBnq_footerLeft{gap:8px;margin-right:auto;display:flex}._5HaBnq_officialCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}._5HaBnq_officialTitle{color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13)}._5HaBnq_officialBody{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);line-height:1.6}._5HaBnq_officialActions{align-items:center;gap:8px;margin-top:2px;display:flex}._5HaBnq_legend{gap:14px;display:flex}._5HaBnq_bandPeak{background:var(--dsw-alias-state-error-primary);opacity:.85}._5HaBnq_bandOff{background:var(--dsw-alias-state-success-primary);opacity:.85}._5HaBnq_bandCustom{background:var(--dsw-alias-state-warn-primary);opacity:.85}._5HaBnq_legendItem{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12);align-items:center;gap:5px;display:flex}._5HaBnq_legendDot{opacity:.9;border-radius:2px;width:10px;height:10px}._5HaBnq_priceTable{flex-direction:column;gap:3px;display:flex}._5HaBnq_priceHead,._5HaBnq_priceRow{grid-template-columns:1.4fr .6fr 1fr 1fr 1fr;align-items:center;gap:6px;display:grid}._5HaBnq_priceHead{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxs-12)}._5HaBnq_priceRow ._5HaBnq_input{height:28px}._5HaBnq_priceModel{color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code);font-size:12px}._5HaBnq_priceTier{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13)}";
|
|
3840
4052
|
const tagId = "dsh-lowtide/settings.module.css";
|
|
3841
4053
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
3842
4054
|
const tag = document.createElement("style");
|
|
@@ -3846,52 +4058,52 @@ window.__ModuleLoader__.load({
|
|
|
3846
4058
|
document.head.appendChild(tag);
|
|
3847
4059
|
}
|
|
3848
4060
|
var settings_module_css_default = {
|
|
3849
|
-
"
|
|
3850
|
-
"
|
|
3851
|
-
"
|
|
3852
|
-
"
|
|
3853
|
-
"
|
|
3854
|
-
"
|
|
3855
|
-
"
|
|
3856
|
-
"
|
|
3857
|
-
"
|
|
3858
|
-
"
|
|
3859
|
-
"
|
|
3860
|
-
"
|
|
3861
|
-
"
|
|
3862
|
-
"
|
|
3863
|
-
"
|
|
3864
|
-
"
|
|
3865
|
-
"
|
|
3866
|
-
"
|
|
3867
|
-
"
|
|
3868
|
-
"
|
|
3869
|
-
"
|
|
3870
|
-
"
|
|
3871
|
-
"
|
|
3872
|
-
"
|
|
3873
|
-
"
|
|
3874
|
-
"
|
|
3875
|
-
"
|
|
3876
|
-
"
|
|
3877
|
-
"
|
|
3878
|
-
"
|
|
3879
|
-
"
|
|
3880
|
-
"
|
|
3881
|
-
"
|
|
3882
|
-
"
|
|
3883
|
-
"
|
|
3884
|
-
"
|
|
3885
|
-
"
|
|
3886
|
-
"
|
|
3887
|
-
"
|
|
3888
|
-
"
|
|
3889
|
-
"
|
|
3890
|
-
"input": "
|
|
3891
|
-
"
|
|
3892
|
-
"
|
|
3893
|
-
"
|
|
3894
|
-
"
|
|
4061
|
+
"footer": "_5HaBnq_footer",
|
|
4062
|
+
"legendDot": "_5HaBnq_legendDot",
|
|
4063
|
+
"onboarding": "_5HaBnq_onboarding",
|
|
4064
|
+
"confirmBox": "_5HaBnq_confirmBox",
|
|
4065
|
+
"field": "_5HaBnq_field",
|
|
4066
|
+
"officialActions": "_5HaBnq_officialActions",
|
|
4067
|
+
"sectionTitle": "_5HaBnq_sectionTitle",
|
|
4068
|
+
"fieldLabel": "_5HaBnq_fieldLabel",
|
|
4069
|
+
"checkbox": "_5HaBnq_checkbox",
|
|
4070
|
+
"pillRow": "_5HaBnq_pillRow",
|
|
4071
|
+
"windowRow": "_5HaBnq_windowRow",
|
|
4072
|
+
"bandCustom": "_5HaBnq_bandCustom",
|
|
4073
|
+
"langRow": "_5HaBnq_langRow",
|
|
4074
|
+
"onboardingSteps": "_5HaBnq_onboardingSteps",
|
|
4075
|
+
"legendItem": "_5HaBnq_legendItem",
|
|
4076
|
+
"priceRow": "_5HaBnq_priceRow",
|
|
4077
|
+
"loading": "_5HaBnq_loading",
|
|
4078
|
+
"footerLeft": "_5HaBnq_footerLeft",
|
|
4079
|
+
"priceTier": "_5HaBnq_priceTier",
|
|
4080
|
+
"langLabel": "_5HaBnq_langLabel",
|
|
4081
|
+
"priceHead": "_5HaBnq_priceHead",
|
|
4082
|
+
"onboardingTitle": "_5HaBnq_onboardingTitle",
|
|
4083
|
+
"bandOff": "_5HaBnq_bandOff",
|
|
4084
|
+
"priceModel": "_5HaBnq_priceModel",
|
|
4085
|
+
"dayActive": "_5HaBnq_dayActive",
|
|
4086
|
+
"hint": "_5HaBnq_hint",
|
|
4087
|
+
"error": "_5HaBnq_error",
|
|
4088
|
+
"sectionHead": "_5HaBnq_sectionHead",
|
|
4089
|
+
"autonomyPill": "_5HaBnq_autonomyPill",
|
|
4090
|
+
"page": "_5HaBnq_page",
|
|
4091
|
+
"officialTitle": "_5HaBnq_officialTitle",
|
|
4092
|
+
"confirmCancel": "_5HaBnq_confirmCancel",
|
|
4093
|
+
"noWindows": "_5HaBnq_noWindows",
|
|
4094
|
+
"priceTable": "_5HaBnq_priceTable",
|
|
4095
|
+
"dayRow": "_5HaBnq_dayRow",
|
|
4096
|
+
"officialCard": "_5HaBnq_officialCard",
|
|
4097
|
+
"strategyHint": "_5HaBnq_strategyHint",
|
|
4098
|
+
"dayBtn": "_5HaBnq_dayBtn",
|
|
4099
|
+
"bandPeak": "_5HaBnq_bandPeak",
|
|
4100
|
+
"autonomyActive": "_5HaBnq_autonomyActive",
|
|
4101
|
+
"grid": "_5HaBnq_grid",
|
|
4102
|
+
"input": "_5HaBnq_input",
|
|
4103
|
+
"confirmBtn": "_5HaBnq_confirmBtn",
|
|
4104
|
+
"officialBody": "_5HaBnq_officialBody",
|
|
4105
|
+
"legend": "_5HaBnq_legend",
|
|
4106
|
+
"section": "_5HaBnq_section"
|
|
3895
4107
|
};
|
|
3896
4108
|
//#endregion
|
|
3897
4109
|
//#region client/settings.tsx
|