@langlink/dsh-memoq 0.1.10 → 0.1.11
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/bin/MemoQ.Bridge.Helper.exe +0 -0
- package/dist/index.js +865 -167
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/skills/memoq-setup-troubleshoot/SKILL.md +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langlink/dsh-memoq",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
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.",
|
|
@@ -8,12 +8,12 @@ description: Diagnose and safely install or remove MemoQ.AI.Hub.Plugin.dll for m
|
|
|
8
8
|
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
|
-
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
|
|
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 the DLL—just make sure the memoQ AI Hub desktop app is closed so DSH holds loopback port `5271`, and if it is their first time using it, walk them through `memoqResourceSetupSteps` in Step 5.
|
|
12
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`.
|
|
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`. When no local package exists, confirmed install fetches only the ~150 KB DLL slice via HTTP Range (with automatic Windows system-proxy `.NET 4.8` helper fallback) and verifies SHA-256.
|
|
14
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
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.
|
|
16
16
|
- Do **not** generate PowerShell scripts or tell the user to run unsigned commands in Terminal.
|
|
17
17
|
4. **Port 5271 Conflict (`port5271Owner`)**:
|
|
18
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.
|
|
19
|
-
5. After installing `MemoQ.AI.Hub.Plugin.dll
|
|
19
|
+
5. **First-time memoQ MT resource setup**: After installing `MemoQ.AI.Hub.Plugin.dll` (or reusing an existing copy on first setup), remind the user to **restart memoQ Desktop**, open **Resource Console → MT settings → Create new** (`My Computer`), tick **memoQ AI Hub**, verify **Gateway Base URL** (`http://127.0.0.1:5271`), **Enable Gateway**, **Formatting Mode** (`BothFormattingAndTags`), and **Pre-translation / Match and Patch / Send best fuzzy TM match / Self-learning MT**, set it in **Options → Default resources → MT settings**, and enable it in the active project's **Project home → Settings → MT settings**.
|