@langlink/dsh-memoq 0.1.9 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langlink/dsh-memoq",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "LangLink memoQ Desktop connector for DeepSeek Harness (dsh): Preview bidirectional bridge, staging pool, confirmed feedback, and DSH live LLM+TM/TB MT fallback.",
@@ -48,6 +48,7 @@
48
48
  "@deepseek-ai/dsh-tools": ">=0.2.1-rc.2 <0.3.0"
49
49
  },
50
50
  "dependencies": {
51
+ "exceljs": "^4.4.0",
51
52
  "fflate": "^0.8.3",
52
53
  "htmlparser2": "^12.0.0",
53
54
  "saxes": "^6.0.0"
@@ -19,6 +19,8 @@ Use this workflow when translating or polishing batches in advance (or preparing
19
19
  - When the user asks to apply feedback from the workbench, call `memoq_list_staged({ status: "needs_revision", onlyWithComment: true })` to read each item's `reviewComment` and revision history, then re-stage updated translations via `memoq_stage_translations` (revision number increments automatically and history is preserved).
20
20
  6. Final release back into memoQ:
21
21
  - Either the translator clicks **"一键放行全部定稿到 memoQ"** in the Review Workbench, or the agent calls `memoq_approve_staged`.
22
+ - Always check `coverage` (`uncoveredPreviewCount`, `draftTotal`, `needsRevisionTotal`, `missedPretranslateCount`) returned by `memoq_approve_staged` / `memoq_status` and explicitly warn the user if any segments remain uncovered or pending approval.
22
23
  - Optional: call `memoq_live_mt_config({ mode: "staging_only" })` when you want memoQ Pre-translate to serve strictly approved staged translations without live LLM fallback.
23
24
  - Ask the translator to run **Pre-translate** in memoQ Desktop using **memoQ AI Hub** (allowing overwrite of unconfirmed segments if replacing earlier translations).
25
+ - If memoQ Pre-translate finishes with a warning or leaves any segment empty (for example a segment outside Preview's current window), immediately call `memoq_get_recent_mt_requests` and inspect `deduplicatedMissed` (or point the user to the red **"Pre-translate 漏翻告警"** banner in the Review Workbench) so those exact segments can be staged (`sourceHtml`/`targetHtml` if `hasInlineTags: true`), approved, and pulled cleanly.
24
26
  7. Periodically read `memoq_get_confirmed_translations` (`StoreTranslation` feedback) to incorporate the translator's live stylistic corrections, and call `memoq_clear_staged` when switching documents.