@dsh-workbench/shared 1.5.5-rc.0 → 1.5.6
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/dist/api/dsh.d.ts +9 -1
- package/dist/components/card/ApprovalPlan.css +3 -0
- package/dist/components/card/ApprovalPlan.js +7 -2
- package/dist/components/card/LongTaskRow.css +32 -0
- package/dist/components/card/LongTaskRow.d.ts +8 -2
- package/dist/components/card/LongTaskRow.js +26 -5
- package/dist/components/card/board-module.d.ts +35 -4
- package/dist/components/card/use-text-marquee.d.ts +15 -0
- package/dist/components/card/use-text-marquee.js +66 -0
- package/dist/components/feedback/ProgressBar.css +56 -0
- package/dist/components/feedback/ProgressBar.d.ts +25 -0
- package/dist/components/feedback/ProgressBar.js +22 -0
- package/dist/config/constants.d.ts +2 -0
- package/dist/config/constants.js +2 -0
- package/dist/contract/guards.d.ts +1 -0
- package/dist/contract/guards.js +3 -0
- package/dist/contract/long-task.d.ts +56 -0
- package/dist/contract/long-task.js +41 -0
- package/dist/contract/protocol/long-tasks.d.ts +8 -2
- package/dist/contract/unit.d.ts +1 -0
- package/dist/host/diy/diy-preset.d.ts +1 -1
- package/dist/host/diy/diy-preset.js +3 -3
- package/dist/host/flow/create.d.ts +2 -1
- package/dist/host/flow/create.js +6 -0
- package/dist/host/flow/dsh-journal.d.ts +3 -0
- package/dist/host/flow/dsh-journal.js +55 -0
- package/dist/host/flow/journal.d.ts +20 -0
- package/dist/host/flow/journal.js +30 -0
- package/dist/host/flow/open.js +43 -26
- package/dist/host/flow/task.js +12 -1
- package/dist/host/flow/types.d.ts +5 -0
- package/dist/host/platform/integration/browser-launch.d.ts +1 -0
- package/dist/host/platform/integration/browser-launch.js +9 -2
- package/dist/host/profile/bundle-manager.js +4 -6
- package/dist/host/unit/long-task-host.d.ts +18 -0
- package/dist/host/unit/long-task-host.js +44 -0
- package/dist/host/unit/long-task-progress.d.ts +3 -0
- package/dist/host/unit/long-task-progress.js +32 -0
- package/dist/host/unit/long-task.d.ts +14 -38
- package/dist/host/unit/long-task.js +95 -94
- package/dist/host/unit/unit-face.d.ts +2 -1
- package/dist/host/unit/with-intervention-retry.d.ts +20 -0
- package/dist/host/unit/with-intervention-retry.js +45 -0
- package/dist/host.d.ts +30 -19
- package/dist/host.js +30 -19
- package/dist/i18n/en.js +33 -7
- package/dist/i18n/index.d.ts +33 -7
- package/dist/i18n/zh.d.ts +32 -6
- package/dist/i18n/zh.js +32 -6
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/package.json +2 -1
- package/src/api/dsh.ts +12 -1
- package/src/components/card/ApprovalPlan.css +3 -0
- package/src/components/card/ApprovalPlan.tsx +9 -2
- package/src/components/card/LongTaskRow.css +32 -0
- package/src/components/card/LongTaskRow.tsx +51 -4
- package/src/components/card/__tests__/ApprovalPlan.test.tsx +50 -0
- package/src/components/card/__tests__/long-task-row.test.ts +64 -2
- package/src/components/card/board-module.ts +36 -4
- package/src/components/card/use-text-marquee.ts +79 -0
- package/src/components/feedback/ProgressBar.css +56 -0
- package/src/components/feedback/ProgressBar.tsx +60 -0
- package/src/config/constants.ts +3 -0
- package/src/contract/__tests__/long-task.test.ts +43 -1
- package/src/contract/guards.ts +4 -0
- package/src/contract/long-task.ts +75 -0
- package/src/contract/protocol/long-tasks.ts +9 -1
- package/src/contract/unit.ts +1 -0
- package/src/host/diy/__tests__/diy-preset.test.ts +2 -0
- package/src/host/diy/diy-preset.ts +3 -2
- package/src/host/flow/__tests__/dsh-journal.test.ts +56 -0
- package/src/host/flow/__tests__/flow-create.test.ts +41 -1
- package/src/host/flow/__tests__/flow-open.test.ts +32 -0
- package/src/host/flow/create.ts +8 -5
- package/src/host/flow/dsh-journal.ts +74 -0
- package/src/host/flow/journal.ts +46 -0
- package/src/host/flow/open.ts +41 -26
- package/src/host/flow/task.ts +11 -1
- package/src/host/flow/types.ts +6 -0
- package/src/host/platform/integration/__tests__/browser-launch.test.ts +27 -0
- package/src/host/platform/integration/browser-launch.ts +15 -3
- package/src/host/profile/bundle-manager.ts +4 -7
- package/src/host/unit/__tests__/long-task.test.ts +203 -2
- package/src/host/unit/long-task-host.ts +64 -0
- package/src/host/unit/long-task-progress.ts +37 -0
- package/src/host/unit/long-task.ts +112 -126
- package/src/host/unit/unit-face.ts +2 -1
- package/src/host/unit/with-intervention-retry.ts +55 -0
- package/src/host.ts +31 -20
- package/src/i18n/en.ts +33 -7
- package/src/i18n/zh.ts +32 -6
- package/src/index.ts +4 -2
package/src/i18n/zh.ts
CHANGED
|
@@ -63,6 +63,7 @@ export const zh = {
|
|
|
63
63
|
'status.running': '运行中',
|
|
64
64
|
'status.longTask': '长任务运行中',
|
|
65
65
|
'status.longTaskWaiting': '长任务等待你处理',
|
|
66
|
+
'status.longTaskDone': '长任务已完成',
|
|
66
67
|
'status.waitingApproval': '等待审批',
|
|
67
68
|
'status.planReview': '计划待审',
|
|
68
69
|
'status.waitingAnswer': '等待回答',
|
|
@@ -80,10 +81,13 @@ export const zh = {
|
|
|
80
81
|
'project.attention.longTask.other': '{n} 个长任务运行中',
|
|
81
82
|
'project.attention.longTaskWaiting.one': '1 个长任务等待你处理',
|
|
82
83
|
'project.attention.longTaskWaiting.other': '{n} 个长任务等待你处理',
|
|
84
|
+
'project.attention.longTaskDone.one': '1 个长任务已完成',
|
|
85
|
+
'project.attention.longTaskDone.other': '{n} 个长任务已完成',
|
|
83
86
|
'project.attention.done.one': '1 个会话已完成,待查看',
|
|
84
87
|
'project.attention.done.other': '{n} 个会话已完成,待查看',
|
|
85
88
|
'project.attention.state.warning': '待审批',
|
|
86
89
|
'project.attention.state.longTaskWaiting': '待处理',
|
|
90
|
+
'project.attention.state.longTaskDone': '已完成',
|
|
87
91
|
'project.attention.state.running': '运行中',
|
|
88
92
|
'project.attention.state.done': '新消息',
|
|
89
93
|
|
|
@@ -729,14 +733,29 @@ export const zh = {
|
|
|
729
733
|
'env.runtime.ok': '已就绪',
|
|
730
734
|
'env.bridge.ok': '已连接',
|
|
731
735
|
'env.bridge.short': '未连接',
|
|
732
|
-
'env.bridge.
|
|
733
|
-
'env.bridge.
|
|
734
|
-
'env.bridge.
|
|
735
|
-
'env.bridge.
|
|
736
|
-
'env.bridge.
|
|
736
|
+
'env.bridge.reason.extension': '扩展没有连接,依赖登录的面板取不到数据。',
|
|
737
|
+
'env.bridge.extension.local': '用工作台自带的扩展副本',
|
|
738
|
+
'env.bridge.extension.devMode': '在右上角开启「开发者模式」',
|
|
739
|
+
'env.bridge.extension.loadUnpacked': '点击「加载已解压的扩展程序」',
|
|
740
|
+
'env.bridge.extension.chooseDir': '选择这个目录',
|
|
741
|
+
'env.bridge.extension.enable': '确认扩展已经启用',
|
|
742
|
+
'env.bridge.incompatible.why': '浏览器扩展和后台工具的版本不兼容,面板读不到数据。',
|
|
743
|
+
'env.bridge.incompatible.reload': '找到浏览器扩展那一项,点「重新加载」;从应用商店装的点「更新」',
|
|
744
|
+
'env.bridge.incompatible.confirm': '确认版本变成 v{version}',
|
|
745
|
+
'env.bridge.incompatible.confirmAny': '确认版本已经更新',
|
|
746
|
+
'env.bridge.opened': '已在浏览器里打开扩展页。',
|
|
747
|
+
'env.bridge.openFailed': '没能打开浏览器,请手动打开 chrome://extensions。',
|
|
737
748
|
'env.bridge.hold': '浏览器还没有连接。请按下面的步骤修复后点击「重试」,也可以先进入工作台。',
|
|
738
|
-
'env.bridge.unknown': '
|
|
749
|
+
'env.bridge.unknown': '浏览器连接有问题,但工作台没能识别是哪一类。',
|
|
739
750
|
'env.fix.title': '解决方法',
|
|
751
|
+
'env.fix.reason': '原因',
|
|
752
|
+
'env.fix.situation': '现象',
|
|
753
|
+
'env.fix.methods': '怎么解决',
|
|
754
|
+
'env.fix.pickMethod': '下面两种任选一种。',
|
|
755
|
+
'env.fix.note': '做完后回来点击「重试」。',
|
|
756
|
+
'env.fix.open': '打开',
|
|
757
|
+
'env.fix.openExtensions': '打开 Chrome 扩展页',
|
|
758
|
+
'env.fix.runCommand': '在终端里运行这条命令',
|
|
740
759
|
'env.fix.why': '工作台使用自带的后台工具,与你在终端中安装的那份相互独立。这台机器上还没有安装完成。',
|
|
741
760
|
'env.fix.whyPath': '后台工具已经安装,但当前环境仍然找不到它。',
|
|
742
761
|
'env.fix.whyShell': '工作台无法访问本机命令行,因此无法获取数据。这一步无法在这里完成,需要管理员处理后台环境。',
|
|
@@ -908,6 +927,10 @@ export const zh = {
|
|
|
908
927
|
'approval.plan.do': '你可以做什么',
|
|
909
928
|
'approval.plan.agent': 'AI 能做什么',
|
|
910
929
|
'approval.plan.data': '数据来源',
|
|
930
|
+
'approval.plan.output': '输出',
|
|
931
|
+
'approval.plan.trigger': '触发',
|
|
932
|
+
'approval.plan.approval': '批准',
|
|
933
|
+
'approval.plan.headlessData': '数据',
|
|
911
934
|
'approval.fact.object': '修改项',
|
|
912
935
|
'approval.fact.change': '修改后',
|
|
913
936
|
'approval.fact.target': '目标位置',
|
|
@@ -1028,12 +1051,15 @@ export const zh = {
|
|
|
1028
1051
|
'longTask.stopPending': '已请求停止,等模块确认',
|
|
1029
1052
|
'longTask.attempt': '第 {attempt} 次',
|
|
1030
1053
|
'longTask.list.entry': '工作台任务 {n}',
|
|
1054
|
+
'longTask.list.openWorkspace': '打开工作区 {name}',
|
|
1031
1055
|
'longTask.list.count': '{n} 个',
|
|
1032
1056
|
'longTask.list.title': '工作台任务',
|
|
1033
1057
|
'longTask.state.running': '运行中',
|
|
1034
1058
|
'longTask.state.needsHuman': '等你处理',
|
|
1035
1059
|
'longTask.state.needsLogin': '需要登录',
|
|
1036
1060
|
'longTask.state.stopped': '已停止',
|
|
1061
|
+
'longTask.progress.text': '{done}/{total}',
|
|
1062
|
+
'longTask.progress.label': '进度',
|
|
1037
1063
|
'longTask.state.ok': '已完成',
|
|
1038
1064
|
'longTask.state.failed': '失败',
|
|
1039
1065
|
'longTask.duration.sec': '{s} 秒',
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './api/context-ref.js';
|
|
|
3
3
|
export * from './api/dsh.js';
|
|
4
4
|
export * from './api/host-write.js';
|
|
5
5
|
export * from './api/workbench-client.js';
|
|
6
|
+
export * from './client/platform/surface.js';
|
|
6
7
|
export * from './components/card/Activity.js';
|
|
7
8
|
export * from './components/card/ApprovalDetail.js';
|
|
8
9
|
export * from './components/card/ApprovalPlan.js';
|
|
@@ -13,8 +14,10 @@ export * from './components/card/CardHead.js';
|
|
|
13
14
|
export * from './components/card/LongTaskRow.js';
|
|
14
15
|
export * from './components/card/board-module.js';
|
|
15
16
|
export * from './components/card/card-view-validate.js';
|
|
17
|
+
export * from './components/card/use-text-marquee.js';
|
|
16
18
|
export * from './components/feedback/EmptyIllustration.js';
|
|
17
19
|
export * from './components/feedback/Note.js';
|
|
20
|
+
export * from './components/feedback/ProgressBar.js';
|
|
18
21
|
export * from './components/feedback/ResourceStates.js';
|
|
19
22
|
export * from './components/feedback/Spinner.js';
|
|
20
23
|
export * from './components/feedback/StateBlock.js';
|
|
@@ -37,7 +40,6 @@ export * from './components/layout/SettingsSection.js';
|
|
|
37
40
|
export * from './components/layout/SetupShell.js';
|
|
38
41
|
export * from './components/layout/Stack.js';
|
|
39
42
|
export * from './components/layout/icons.js';
|
|
40
|
-
export * from './client/platform/surface.js';
|
|
41
43
|
export * from './config/constants.js';
|
|
42
44
|
export * from './config/storage.js';
|
|
43
45
|
export * from './contract/adapters.js';
|
|
@@ -56,7 +58,6 @@ export * from './contract/long-task.js';
|
|
|
56
58
|
export * from './contract/module-context.js';
|
|
57
59
|
export * from './contract/needs.js';
|
|
58
60
|
export * from './contract/plugin-source.js';
|
|
59
|
-
export * from './contract/readme.js';
|
|
60
61
|
export * from './contract/protocol/boot-ok.js';
|
|
61
62
|
export * from './contract/protocol/bundle-install.js';
|
|
62
63
|
export * from './contract/protocol/config-sync.js';
|
|
@@ -72,6 +73,7 @@ export * from './contract/protocol/release.js';
|
|
|
72
73
|
export * from './contract/protocol/sidebar-edition.js';
|
|
73
74
|
export * from './contract/protocol/unit-manifests.js';
|
|
74
75
|
export * from './contract/protocol/workbench-settings.js';
|
|
76
|
+
export * from './contract/readme.js';
|
|
75
77
|
export * from './contract/runner.js';
|
|
76
78
|
export * from './contract/unit-board.js';
|
|
77
79
|
export * from './contract/unit-capability.js';
|