dsh-tender-workbench 0.5.7 → 0.5.8

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.en.md +7 -7
  3. package/README.md +8 -8
  4. package/docs/RELEASE-0.5.8.md +14 -0
  5. package/lib/client.js +539 -282
  6. package/lib/client.js.map +1 -1
  7. package/lib/index.js +483 -23
  8. package/lib/types/client/index.d.ts.map +1 -1
  9. package/lib/types/client/workbench/SessionWriteProgress.d.ts +5 -1
  10. package/lib/types/client/workbench/SessionWriteProgress.d.ts.map +1 -1
  11. package/lib/types/client/workbench/TenderHistoryView.d.ts +10 -0
  12. package/lib/types/client/workbench/TenderHistoryView.d.ts.map +1 -0
  13. package/lib/types/client/workbench/TenderWorkbench.d.ts +5 -1
  14. package/lib/types/client/workbench/TenderWorkbench.d.ts.map +1 -1
  15. package/lib/types/contracts/execution.d.ts +58 -0
  16. package/lib/types/contracts/execution.d.ts.map +1 -0
  17. package/lib/types/contracts/history.d.ts +60 -0
  18. package/lib/types/contracts/history.d.ts.map +1 -0
  19. package/lib/types/contracts/reporting.d.ts +3 -3
  20. package/lib/types/contracts/workflow.d.ts +142 -24
  21. package/lib/types/contracts/workflow.d.ts.map +1 -1
  22. package/lib/types/host/history.d.ts +26 -0
  23. package/lib/types/host/history.d.ts.map +1 -0
  24. package/lib/types/host/http-trust.d.ts +2 -0
  25. package/lib/types/host/http-trust.d.ts.map +1 -1
  26. package/lib/types/host/pipeline/provider-envelope.d.ts +10 -0
  27. package/lib/types/host/pipeline/provider-envelope.d.ts.map +1 -0
  28. package/lib/types/host/pipeline/qcc-adapters.d.ts +1 -1
  29. package/lib/types/host/pipeline/qcc-adapters.d.ts.map +1 -1
  30. package/lib/types/host/projection.d.ts +6 -0
  31. package/lib/types/host/projection.d.ts.map +1 -1
  32. package/lib/types/host/tools/analysis-review-tools.d.ts +213 -36
  33. package/lib/types/host/tools/analysis-review-tools.d.ts.map +1 -1
  34. package/lib/types/host/tools/query-tool.d.ts +71 -12
  35. package/lib/types/host/tools/query-tool.d.ts.map +1 -1
  36. package/lib/types/host/tools/report-tools.d.ts +148 -30
  37. package/lib/types/host/tools/report-tools.d.ts.map +1 -1
  38. package/lib/types/host/tools/rule-tools.d.ts +142 -24
  39. package/lib/types/host/tools/rule-tools.d.ts.map +1 -1
  40. package/lib/types/host/tools/workflow-state-tool.d.ts +5 -5
  41. package/lib/types/index.d.ts.map +1 -1
  42. package/package.json +2 -2
  43. package/docs/RELEASE-0.5.7.md +0 -20
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to `dsh-tender-workbench` are documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.5.8] - 2026-09-13
8
+
9
+ - 按共享规范 v1.5.3 增加 Profile 持久只读历史:来源 Workspace/Session 不变,显式导航来源会话,不复制或重绑旧 projection;完成记录锁定。
10
+ - 真实 Session 事件驱动执行动作、已返回来源数、记录数、最近处理项和耗时;终态防迟到回调回退,不估算百分比,业务分类与执行状态分离。
11
+ - 明确数据、零记录、不需要、无权限、失败、未知来源,支持已知包装及数字字符串;缺失或 null 列表不再伪装成零记录。
12
+ - 保留 IME、Session 单例 Tab、人工确认、不可变报告快照、Excel/PDF 交付及 0.5.6 授权边界。
13
+
7
14
  ## [0.5.7] - 2026-09-11
8
15
 
9
16
  - 按 DSH-UX-001 v1.5.2,以 workspaceId + 命名空间 sessionId 创建业务会话,修复新会话落入“未分组”;保留普通会话防复用守卫及 0.5.6 Host 授权契约。
package/README.en.md CHANGED
@@ -10,9 +10,9 @@ Related agents: [数据清洗补全](https://github.com/duhu2000/dsh-data-cleani
10
10
 
11
11
  `dsh-tender-workbench` is an open-source DeepSeek Harness plugin for finding, screening, reviewing, and delivering tender opportunities. It combines authorized `qcc-tender` data, deterministic screening rules, bounded Agent analysis, explicit human decisions, and immutable Excel/PDF reports in one Session-scoped Better Sidebar workbench.
12
12
 
13
- Current stable version: **0.5.7** (stable release).
13
+ Current stable version: **0.5.8** (stable release).
14
14
 
15
- Version 0.5.7 fixes Workspace ownership for new business Sessions. See the [release record](docs/RELEASE-0.5.7.md) for publication status and verification boundaries.
15
+ Version 0.5.8 adds Profile-persistent read-only task history, explicit origin Session navigation and actual execution telemetry. Zero, permission-denied, failed and unknown Provider outcomes remain distinct. See the [release record](docs/RELEASE-0.5.8.md) for publication status and verification boundaries.
16
16
 
17
17
  Base mode targets the full DSH 0.1.2-rc.1 distribution; Better Sidebar 0.18.1 is optional and only provides the visual workbench. Legacy hosts remain unsupported. Back up the complete Profile and verify dependencies before upgrading.
18
18
 
@@ -84,11 +84,11 @@ dsh web --no-open
84
84
 
85
85
  Optionally enable the visual workbench with `dsh plugin --profile web add dsh-better-sidebar@0.18.1`, enable the tender Tab and fully restart the Profile.
86
86
 
87
- To install the exact 0.5.7 release:
87
+ To install the exact 0.5.8 release:
88
88
 
89
89
  ```sh
90
90
  dsh plugin --profile web add 'dsh-mcp-connector@>=0.2.31'
91
- dsh plugin --profile web add dsh-tender-workbench@0.5.7
91
+ dsh plugin --profile web add dsh-tender-workbench@0.5.8
92
92
  ```
93
93
 
94
94
  To install base mode from an independent checkout:
@@ -105,7 +105,7 @@ To install a packed build:
105
105
 
106
106
  ```sh
107
107
  dsh plugin --profile web add 'dsh-mcp-connector@>=0.2.31'
108
- dsh plugin --profile web add ./dsh-tender-workbench-0.5.7.tgz
108
+ dsh plugin --profile web add ./dsh-tender-workbench-0.5.8.tgz
109
109
  dsh web --no-open
110
110
  ```
111
111
 
@@ -122,11 +122,11 @@ dsh plugin --profile web remove dsh-tender-workbench
122
122
  Upgrade an existing installation by installing the stable version and fully restarting the Web profile:
123
123
 
124
124
  ```sh
125
- dsh plugin --profile web add dsh-tender-workbench@0.5.7
125
+ dsh plugin --profile web add dsh-tender-workbench@0.5.8
126
126
  dsh web --no-open
127
127
  ```
128
128
 
129
- Version 0.5.7 creates business Sessions with workspaceId plus a namespaced sessionId, not cwd-only. Current membership wins; a legacy ungrouped Session must match a registered path, and an unregistered selected directory is rejected rather than redirected. Existing ungrouped history is not automatically migrated. The ordinary Session guard and 0.5.6 snapshotEvents/turn-start authorization contract remain intact. Business schemas are unchanged; history remains Session-local and live MCP is not verified. Roll back the complete backed-up host/plugin combination, not an old plugin alone on the new host.
129
+ Version 0.5.8 retains Workspace ownership, the ordinary Session guard and the 0.5.6 snapshotEvents/turn-start authorization contract. Business state remains Session-local; Profile history stores metadata only, never writable projections or download capabilities. Existing unopened Sessions are not scanned: reopening indexes their current task, without restoring old snapshots. Back up the Profile's `.dsh-tender-workbench/history-v1.json` alongside task directories. Live MCP is not verified. Roll back the complete backed-up host/plugin combination, not an old plugin alone on the new host.
130
130
 
131
131
  ## Using the workbench
132
132
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  招投标智能体:支持招投标搜索、招标查询、投标查询、标讯查询、拟建项目与项目筛选,辅助商机发现、人工复核及 Excel/PDF 导出,使用客户自备授权的企查查 MCP。
8
8
 
9
9
  ```sh
10
- dsh plugin --profile web add dsh-tender-workbench@0.5.7
10
+ dsh plugin --profile web add dsh-tender-workbench@0.5.8
11
11
  ```
12
12
 
13
13
  请先满足下文的 DSH、连接器及侧边栏依赖要求;安装后完整停止并重启对应 Profile。
@@ -27,9 +27,9 @@ dsh plugin --profile web add dsh-tender-workbench@0.5.7
27
27
 
28
28
  > 面向国内招投标团队的 DeepSeek Harness 开源智能体插件:在一个会话级工作台内完成标讯与拟建项目查询、确定性规则初筛、限定范围智能分析、人工复核,以及 Excel/PDF 报告交付。
29
29
  >
30
- > 当前稳定版本:**0.5.7**(正式版本)
30
+ > 当前稳定版本:**0.5.8**(正式版本)
31
31
 
32
- 0.5.7 修复新建业务 Session Workspace 归组;发布状态及验收边界见 [发布记录](docs/RELEASE-0.5.7.md)。
32
+ 0.5.8 新增当前 Profile 持久只读任务历史、来源会话导航与真实执行进度,并区分零记录、无权限、失败和未知数据源结果;发布状态及验收边界见 [发布记录](docs/RELEASE-0.5.8.md)。
33
33
 
34
34
  [![CI](https://github.com/duhu2000/dsh-tender-workbench/actions/workflows/ci.yml/badge.svg)](https://github.com/duhu2000/dsh-tender-workbench/actions/workflows/ci.yml)
35
35
  [![npm](https://img.shields.io/npm/v/dsh-tender-workbench)](https://www.npmjs.com/package/dsh-tender-workbench)
@@ -75,10 +75,10 @@ dsh web --no-open
75
75
 
76
76
  需要可视化工作台时,再自选安装 `dsh plugin --profile web add dsh-better-sidebar@0.18.1`、在宿主设置启用招投标 Tab,并完整重启。无需侧栏也可使用下方列明的基础功能。
77
77
 
78
- 安装指定的 `0.5.7` 版本:
78
+ 安装指定的 `0.5.8` 版本:
79
79
 
80
80
  ```sh
81
- dsh plugin --profile web add dsh-tender-workbench@0.5.7
81
+ dsh plugin --profile web add dsh-tender-workbench@0.5.8
82
82
  ```
83
83
 
84
84
  移除插件:
@@ -146,11 +146,11 @@ node scripts/check-host-compatibility.mjs --host-root /实际路径/node_modules
146
146
  从已有版本升级:
147
147
 
148
148
  ```sh
149
- dsh plugin --profile web add dsh-tender-workbench@0.5.7
149
+ dsh plugin --profile web add dsh-tender-workbench@0.5.8
150
150
  dsh web --no-open
151
151
  ```
152
152
 
153
- 0.5.7 修复新建业务 Session 的 Workspace 归组,不自动搬迁已有未分组历史。保留 0.5.6 可选侧栏、`snapshotEvents()` / `turn/start` 授权绑定、Session 单例 Tab、五入口及草稿恢复。业务数据格式不变,历史仍仅限当前 Session,真实 MCP 连接未核验。回退应恢复备份的完整已验证宿主/插件组合,不能在新版宿主上单独安装原始 0.5.4 或更早版本。
153
+ 0.5.8 保留 Workspace 归组、0.5.6 可选侧栏与 `snapshotEvents()` / `turn/start` 授权绑定。业务任务仍属于原 Session;Profile 历史只存摘要,不复制旧 projection,也不自动搬迁未分组任务。旧会话在重新打开后才补入当前任务摘要,历史页不恢复旧快照到当前任务。索引位于对应 Profile 的 `.dsh-tender-workbench/history-v1.json`,备份时一并保留。真实 MCP 连接未核验。回退应恢复备份的完整已验证宿主/插件组合,不能在新版宿主上单独安装原始 0.5.4 或更早版本。
154
154
 
155
155
  ## 本地开发
156
156
 
@@ -165,7 +165,7 @@ corepack pnpm@11.7.0 run check
165
165
 
166
166
  `check` 会执行类型检查、完整 Vitest 测试、生产构建、README/发布状态校验以及 npm tarball 白名单预检。配置 npm Trusted Publishing 后,[发布工作流](.github/workflows/release.yml)可使用 OIDC 和 provenance;手工发布不得声称 provenance。
167
167
 
168
- 省、市、区数据源快照维护在 [resources/area.ts](resources/area.ts)。版本变更见 [CHANGELOG.md](CHANGELOG.md),发布检查见 [0.5.7 发布清单](docs/RELEASE-0.5.7.md)。
168
+ 省、市、区数据源快照维护在 [resources/area.ts](resources/area.ts)。版本变更见 [CHANGELOG.md](CHANGELOG.md),发布检查见 [0.5.8 发布清单](docs/RELEASE-0.5.8.md)。
169
169
 
170
170
  ## 界面演示与市场投稿
171
171
 
@@ -0,0 +1,14 @@
1
+ # 0.5.8 — History and actual progress
2
+
3
+ Version: **0.5.8**
4
+ Status: **ready for release**
5
+
6
+ Profile-persistent read-only history, immutable origin Workspace/Session, explicit source navigation, terminal completion latch, actual Session-event telemetry, and strict Provider result distinctions. No historical projection is rebound to a new task. Excel/PDF remain the primary customer deliverables; human confirmation and immutable report snapshots remain intact.
7
+
8
+ Adopts DSH-UX-001 v1.5.3. The 0.5.6 snapshotEvents/turn-start authorization implementation is unchanged. See `HISTORY-PROGRESS-ADOPTION.md` for contracts, test evidence and limits.
9
+
10
+ Publication gate: complete local checks, isolated DSH checks, PR Linux Node 22/24 + Windows Node 24 + installable package, merged default-branch exact-SHA CI, annotated immutable tag, GitHub Actions OIDC/provenance and registry gitHead readback. Publication evidence is recorded after those actions, not inferred from this preparation record.
11
+
12
+ Verified locally: 267 tests passed (one Windows-only skip on macOS), eight Chromium UI cases, isolated DSH 0.1.2-rc.1 with Sidebar 0.18.1 / absent, actual persisted progress and restart history, and Excel/PDF artifacts. Four-product public-entry switching, return to tender, explicit origin-history navigation and restart passed with cleaning 0.9.7 / previsit 0.1.22 / form-fill 0.2.28. An earlier form-fill entry test was a button-vs-link locator false negative, not a product defect.
13
+
14
+ Limits: synthetic Provider only; no paid QCC/model end-to-end acceptance. History is a local Profile derivative index (single writer); older unopened Sessions and their earlier tasks are not globally scanned. Historical artifacts stay in original Session messages and retain existing download authorization. A corrupt/unavailable index is an explicit error, never fabricated empty history. Hot HMR and the other products' full business flows remain independently unverified; entry checks are not full combined-business acceptance.