@langlink/dsh-memoq 0.1.7 → 0.1.9

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.7",
3
+ "version": "0.1.9",
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.",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: memoq-setup-troubleshoot
3
- description: Diagnose and safely install or remove MemoQ.AI.Hub.Plugin.dll for memoQ Desktop 10/11/12 using the transparent local setup wizard (zero PowerShell scripts, SHA-256 verified, coexists with memoQ AI Hub).
3
+ description: Diagnose and safely install or remove MemoQ.AI.Hub.Plugin.dll for memoQ Desktop 10/11/12 via Agent-assisted path discovery and confirm-before-copy helper (with visual setup wizard fallback, zero PowerShell scripts, SHA-256 verified, coexists with memoQ AI Hub).
4
4
  ---
5
5
 
6
6
  # memoQ Connector Setup & Troubleshooting (DSH)
@@ -9,9 +9,11 @@ Follow these safety rules whenever helping the user connect memoQ Desktop MT:
9
9
 
10
10
  1. **Preview works immediately without any DLL or admin prompt**: Never ask the user to install DLLs just to use `memoq_get_active_segment`, `memoq_get_document_segments`, or `memoq_focus_segment`.
11
11
  2. **Reuse existing installation if present**: Run `memoq_status` first. If `MemoQ.AI.Hub.Plugin.dll` is already installed (`integration.canReuseExisting: true`), tell the user they do **not** need to reinstall anything—just make sure the memoQ AI Hub desktop app is closed so DSH holds loopback port `5271`.
12
- 3. **Transparent local wizard instead of blind scripts**: If the MT plugin is missing, call `memoq_setup` and give the user the localhost clickable link (`[打开 memoQ 连接器安装与诊断向导](...)`).
12
+ 3. **Two-phase Agent-assisted install (discover → user confirmation → helper copy) instead of blind scripts**:
13
+ - First call `memoq_setup({ action: "plan" })` (read-only). It auto-discovers memoQ Desktop roots (running `MemoQ.exe`, Registry, fixed drives) and local `MemoQ.AI.Hub.Plugin.dll` / `.zip` packages, or accepts user-supplied `customInstallDir` / `dllPath`.
14
+ - Present the exact `plan.plannedChanges` to the user in chat: source path (copied, original preserved), expected SHA-256, target `<memoqRoot>\Addins\MemoQ.AI.Hub.Plugin.dll` (MOTW removed), `ClientDevConfig.xml` `.bak` backup + merge, and whether UAC elevation will appear.
15
+ - **Only after explicit user confirmation**, call `memoq_setup({ action: "install", confirmed: true, memoqRoot, dllPath })`. You may also share the local visual wizard link (`url`) as an alternative UI.
13
16
  - Do **not** generate PowerShell scripts or tell the user to run unsigned commands in Terminal.
14
- - The setup page previews the exact 2 paths written (`ClientDevConfig.xml` with `.bak` backup + `MemoQ.AI.Hub.Plugin.dll` with SHA-256) and invokes `MemoQ.Bridge.Helper.exe` UAC only when the user clicks Install, or provides a 3-step manual fallback.
15
17
  4. **Port 5271 Conflict (`port5271Owner`)**:
16
18
  - If `memoq_status` shows `port5271Owner: "memoq-ai-hub"`, tell the user to close the memoQ AI Hub Electron app (or adjust `MEMOQ_BRIDGE_PORT`), then reload the plugin / restart memoQ.
17
19
  5. After installing `MemoQ.AI.Hub.Plugin.dll`, remind the user to **restart memoQ Desktop** once and enable `memoQ AI Hub` in memoQ *Options -> Machine translation*.