dsh-mnemon 0.1.4 → 0.1.5
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/README.md +14 -0
- package/README.zh-CN.md +14 -0
- package/cordis.patch.yml +3 -2
- package/docs/en/README.md +1 -1
- package/docs/en/configuration.md +17 -6
- package/docs/en/getting-started.md +48 -4
- package/docs/en/operations.md +8 -1
- package/docs/en/ui-guide.md +1 -1
- package/docs/zh-CN/README.md +1 -1
- package/docs/zh-CN/configuration.md +17 -6
- package/docs/zh-CN/getting-started.md +48 -4
- package/docs/zh-CN/operations.md +8 -1
- package/docs/zh-CN/ui-guide.md +1 -1
- package/lib/client.js +277 -251
- package/lib/client.js.map +1 -1
- package/lib/index.js +74 -36
- package/lib/types/client/MnemonView.d.ts.map +1 -1
- package/lib/types/client/MnemonView.js +10 -1
- package/lib/types/client/MnemonView.js.map +1 -1
- package/lib/types/client/locales.d.ts +10 -0
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/locales.js +12 -2
- package/lib/types/client/locales.js.map +1 -1
- package/lib/types/process.js +1 -1
- package/lib/types/process.js.map +1 -1
- package/lib/types/runner.d.ts +7 -1
- package/lib/types/runner.d.ts.map +1 -1
- package/lib/types/runner.js +65 -22
- package/lib/types/runner.js.map +1 -1
- package/lib/types/version-updates.d.ts +3 -0
- package/lib/types/version-updates.d.ts.map +1 -1
- package/lib/types/version-updates.js +12 -6
- package/lib/types/version-updates.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,20 @@ go install github.com/mnemon-dev/mnemon@latest
|
|
|
40
40
|
mnemon --version
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
On Windows, install the official v0.2.3-or-newer release ZIP. This path is auto-discovered without changing `PATH`; see [Getting Started](./docs/en/getting-started.md#2-install-mnemon) for checksum verification:
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
$version = '0.2.3'
|
|
47
|
+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' }
|
|
48
|
+
$archiveName = "mnemon_${version}_windows_${arch}.zip"
|
|
49
|
+
$archive = Join-Path $env:TEMP $archiveName
|
|
50
|
+
Invoke-WebRequest "https://github.com/mnemon-dev/mnemon/releases/download/v${version}/${archiveName}" -OutFile $archive
|
|
51
|
+
$installDir = Join-Path $env:LOCALAPPDATA 'Programs\mnemon'
|
|
52
|
+
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
|
|
53
|
+
Expand-Archive -Path $archive -DestinationPath $installDir -Force
|
|
54
|
+
& (Join-Path $installDir 'mnemon.exe') --version
|
|
55
|
+
```
|
|
56
|
+
|
|
43
57
|
### 2. Install the plugin
|
|
44
58
|
|
|
45
59
|
```sh
|
package/README.zh-CN.md
CHANGED
|
@@ -40,6 +40,20 @@ go install github.com/mnemon-dev/mnemon@latest
|
|
|
40
40
|
mnemon --version
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
Windows 推荐安装 v0.2.3 或更高版本的官方 ZIP;解压到以下目录后无需修改 `PATH` 即可自动发现。checksum 校验步骤见[入门指南](./docs/zh-CN/getting-started.md#2-安装-mnemon):
|
|
44
|
+
|
|
45
|
+
```powershell
|
|
46
|
+
$version = '0.2.3'
|
|
47
|
+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' }
|
|
48
|
+
$archiveName = "mnemon_${version}_windows_${arch}.zip"
|
|
49
|
+
$archive = Join-Path $env:TEMP $archiveName
|
|
50
|
+
Invoke-WebRequest "https://github.com/mnemon-dev/mnemon/releases/download/v${version}/${archiveName}" -OutFile $archive
|
|
51
|
+
$installDir = Join-Path $env:LOCALAPPDATA 'Programs\mnemon'
|
|
52
|
+
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
|
|
53
|
+
Expand-Archive -Path $archive -DestinationPath $installDir -Force
|
|
54
|
+
& (Join-Path $installDir 'mnemon.exe') --version
|
|
55
|
+
```
|
|
56
|
+
|
|
43
57
|
### 2. 安装插件
|
|
44
58
|
|
|
45
59
|
```sh
|
package/cordis.patch.yml
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
# Mount the Mnemon bridge into a DSH profile.
|
|
2
|
-
#
|
|
1
|
+
# Mount the Mnemon bridge into a DSH profile. A profile's final patch may
|
|
2
|
+
# replace this config row as a whole; use user settings or environment
|
|
3
|
+
# variables for one-field overrides such as cliPath.
|
|
3
4
|
- insert:
|
|
4
5
|
- id: mnemon
|
|
5
6
|
name: dsh-mnemon
|
package/docs/en/README.md
CHANGED
|
@@ -42,7 +42,7 @@ This hub is organized by what you need to accomplish. New users should follow Ge
|
|
|
42
42
|
|
|
43
43
|
## Documentation boundaries
|
|
44
44
|
|
|
45
|
-
- User documentation targets the v0.1.
|
|
45
|
+
- User documentation targets the v0.1.5 Sidebar-default experience while covering the compatible Buildin presentation.
|
|
46
46
|
- Architecture diagrams describe stable execution boundaries, not live monitoring. Use Status for current counts and versions.
|
|
47
47
|
- RPC is an internal Host-to-client protocol, not a promised stable external API.
|
|
48
48
|
- There is no formal fixed DSH / Mnemon version matrix yet. Back up and validate in an isolated root before upgrading.
|
package/docs/en/configuration.md
CHANGED
|
@@ -103,13 +103,17 @@ Only the Mnemon durable tier under `data/<store>/mnemon.db` has native cross-age
|
|
|
103
103
|
config.cliPath
|
|
104
104
|
-> executable MNEMON_CLI_PATH
|
|
105
105
|
-> each PATH directory
|
|
106
|
-
->
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
-> Windows: GOBIN/mnemon.exe
|
|
107
|
+
first GOPATH/bin/mnemon.exe, or ~/go/bin/mnemon.exe
|
|
108
|
+
%LOCALAPPDATA%/Programs/mnemon/mnemon.exe
|
|
109
|
+
%ProgramFiles%/mnemon/mnemon.exe
|
|
110
|
+
-> Unix: ~/.local/bin/mnemon
|
|
111
|
+
/opt/homebrew/bin/mnemon
|
|
112
|
+
/usr/local/bin/mnemon
|
|
113
|
+
/usr/bin/mnemon
|
|
110
114
|
```
|
|
111
115
|
|
|
112
|
-
An explicit `cliPath` is accepted as configured; if it is not executable, actual calls return a launch error.
|
|
116
|
+
An explicit `cliPath` is accepted as configured; if it is not executable, actual calls return a launch error. Automatically discovered Windows commands must be regular `.exe` files. `.cmd` and `.bat` wrappers are intentionally excluded because process execution does not use a shell.
|
|
113
117
|
|
|
114
118
|
## Compatibility Store Hint Precedence
|
|
115
119
|
|
|
@@ -188,7 +192,7 @@ routingGuidance=false
|
|
|
188
192
|
|
|
189
193
|
## Profile Patch Overrides
|
|
190
194
|
|
|
191
|
-
The bundled `cordis.patch.yml` provides the default config row. A DSH profile configuration with the same ID may replace that row as a whole.
|
|
195
|
+
The bundled `cordis.patch.yml` provides the default config row. A DSH profile configuration with the same ID may replace that row as a whole. Do not add only `cliPath` to a final profile patch: use `MNEMON_CLI_PATH` or the `mnemon.cliPath` user setting instead. When a profile patch must be customized for another reason, retain every key that must remain enabled instead of assuming a deep merge.
|
|
192
196
|
|
|
193
197
|
## Common Configurations
|
|
194
198
|
|
|
@@ -199,6 +203,13 @@ mnemon:
|
|
|
199
203
|
storageScope: workspace
|
|
200
204
|
```
|
|
201
205
|
|
|
206
|
+
An explicit Windows CLI path:
|
|
207
|
+
|
|
208
|
+
```yaml
|
|
209
|
+
mnemon:
|
|
210
|
+
cliPath: 'C:\Users\alice\AppData\Local\Programs\mnemon\mnemon.exe'
|
|
211
|
+
```
|
|
212
|
+
|
|
202
213
|
A custom data volume and a longer CLI timeout:
|
|
203
214
|
|
|
204
215
|
```yaml
|
|
@@ -14,7 +14,7 @@ You need:
|
|
|
14
14
|
|
|
15
15
|
Regular semantic work prefers a provider named `spawn` with `outputSchema`, `toolFilter`, `persona`, and `depthLimit`. Optional score-based background review additionally requires a provider named `fork` with `inheritsParentContext=true`. Missing `fork` does not block deterministic pages or regular manual actions.
|
|
16
16
|
|
|
17
|
-
The project does not declare a fixed minimum DSH / Mnemon matrix. This guide and its screenshots target dsh-mnemon v0.1.
|
|
17
|
+
The project does not declare a fixed minimum DSH / Mnemon matrix. This guide and its screenshots target dsh-mnemon v0.1.5. Back up and repeat this verification against an isolated root before upgrading.
|
|
18
18
|
|
|
19
19
|
## 2. Install Mnemon
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ Homebrew Cask is recommended on macOS:
|
|
|
24
24
|
brew install --cask mnemon-dev/tap/mnemon
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Go works on macOS and Linux:
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
30
|
go install github.com/mnemon-dev/mnemon@latest
|
|
@@ -36,7 +36,51 @@ Verify the binary:
|
|
|
36
36
|
mnemon --version
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
On Windows, the official release provides ZIP archives for AMD64 and ARM64. The following PowerShell installs v0.2.3 under the auto-discovered per-user Programs directory and verifies it against the published checksum:
|
|
40
|
+
|
|
41
|
+
```powershell
|
|
42
|
+
$version = '0.2.3'
|
|
43
|
+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' }
|
|
44
|
+
$archiveName = "mnemon_${version}_windows_${arch}.zip"
|
|
45
|
+
$releaseBase = "https://github.com/mnemon-dev/mnemon/releases/download/v${version}"
|
|
46
|
+
$archive = Join-Path $env:TEMP $archiveName
|
|
47
|
+
$checksumFile = Join-Path $env:TEMP "mnemon_${version}_checksums.txt"
|
|
48
|
+
Invoke-WebRequest "${releaseBase}/${archiveName}" -OutFile $archive
|
|
49
|
+
Invoke-WebRequest "${releaseBase}/checksums.txt" -OutFile $checksumFile
|
|
50
|
+
$line = Get-Content $checksumFile | Where-Object { $_.EndsWith(" $archiveName") } | Select-Object -First 1
|
|
51
|
+
if (-not $line) { throw "Checksum entry not found for $archiveName" }
|
|
52
|
+
$expected = (($line -split '\s+')[0]).ToLowerInvariant()
|
|
53
|
+
$actual = (Get-FileHash -Path $archive -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
54
|
+
if ($actual -ne $expected) { throw "Checksum mismatch for $archiveName" }
|
|
55
|
+
$installDir = Join-Path $env:LOCALAPPDATA 'Programs\mnemon'
|
|
56
|
+
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
|
|
57
|
+
Expand-Archive -Path $archive -DestinationPath $installDir -Force
|
|
58
|
+
$mnemon = Join-Path $installDir 'mnemon.exe'
|
|
59
|
+
& $mnemon --version
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Go remains an alternative when a Go toolchain is already available:
|
|
63
|
+
|
|
64
|
+
```powershell
|
|
65
|
+
go install github.com/mnemon-dev/mnemon@latest
|
|
66
|
+
$mnemonBin = go env GOBIN
|
|
67
|
+
if (-not $mnemonBin) {
|
|
68
|
+
$mnemonBin = Join-Path (((go env GOPATH) -split ';')[0]) 'bin'
|
|
69
|
+
}
|
|
70
|
+
$mnemon = Join-Path $mnemonBin 'mnemon.exe'
|
|
71
|
+
& $mnemon --version
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
On Windows, dsh-mnemon discovers native `mnemon.exe` from `PATH`, an exported `GOBIN` or `GOPATH`, the default `%USERPROFILE%\go\bin`, `%LOCALAPPDATA%\Programs\mnemon`, and Program Files. `.cmd` and `.bat` wrappers are not accepted because CLI calls deliberately run without a shell.
|
|
75
|
+
|
|
76
|
+
If DSH still cannot find the binary, set `MNEMON_CLI_PATH` or add an absolute path to the user settings file instead of replacing the plugin's profile patch:
|
|
77
|
+
|
|
78
|
+
```yaml
|
|
79
|
+
mnemon:
|
|
80
|
+
cliPath: 'C:\Users\alice\AppData\Local\Programs\mnemon\mnemon.exe'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`mnemon status` opens the effective Store and may initialize data or run upstream migrations, so it is not a side-effect-free installation probe.
|
|
40
84
|
|
|
41
85
|
## 3. Install dsh-mnemon
|
|
42
86
|
|
|
@@ -103,7 +147,7 @@ Confirm that:
|
|
|
103
147
|
- the storage root matches your chosen scope;
|
|
104
148
|
- Runtime, Memory Spaces, and Documents report no errors.
|
|
105
149
|
|
|
106
|
-
If Mnemon is unavailable, run `command -v mnemon` and `mnemon --version
|
|
150
|
+
If Mnemon is unavailable, run `command -v mnemon` and `mnemon --version` on macOS/Linux, or `Get-Command mnemon` and `Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"` on Windows PowerShell. See [Troubleshooting](./operations.md#troubleshooting) for other symptoms.
|
|
107
151
|
|
|
108
152
|
## 6. Complete first verification
|
|
109
153
|
|
package/docs/en/operations.md
CHANGED
|
@@ -11,6 +11,13 @@ command -v mnemon
|
|
|
11
11
|
mnemon --version
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Windows PowerShell:
|
|
15
|
+
|
|
16
|
+
```powershell
|
|
17
|
+
Get-Command mnemon -ErrorAction SilentlyContinue
|
|
18
|
+
Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"
|
|
19
|
+
```
|
|
20
|
+
|
|
14
21
|
```text
|
|
15
22
|
/mnemon status
|
|
16
23
|
```
|
|
@@ -125,7 +132,7 @@ Report vulnerabilities privately through [SECURITY.md](../../SECURITY.md), not a
|
|
|
125
132
|
|
|
126
133
|
| Symptom | Check and resolution |
|
|
127
134
|
|---|---|
|
|
128
|
-
| Mnemon unavailable |
|
|
135
|
+
| Mnemon unavailable | macOS/Linux: run `command -v mnemon`, `mnemon --version`. Windows PowerShell: run `Get-Command mnemon`, `Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"`. Set `MNEMON_CLI_PATH` or `mnemon.cliPath`, then restart |
|
|
129
136
|
| Memory System missing from sidebar | Check `tabEnabled=true`, `displayMode=sidebar`; Buildin is in the conversation area; for a local link run `pnpm run build`, then restart |
|
|
130
137
|
| Status healthy but recall empty | Check active spaces, storage scope, inspected root, effective session root, and query focus |
|
|
131
138
|
| Header reports misalignment | The workbench is inspecting another workspace; align or keep deliberate read-only inspection; Agent-backed actions are rejected |
|
package/docs/en/ui-guide.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[简体中文](../zh-CN/ui-guide.md) | **English** | [Documentation hub](./README.md)
|
|
4
4
|
|
|
5
|
-
This guide follows the default `sidebar` presentation and a real user path through Memory System. Screenshots come from the v0.1.
|
|
5
|
+
This guide follows the default `sidebar` presentation and a real user path through Memory System. Screenshots come from the v0.1.5 interface and use the Chinese locale; names, counts, and content vary with your data.
|
|
6
6
|
|
|
7
7
|
## Start with the two display modes
|
|
8
8
|
|
package/docs/zh-CN/README.md
CHANGED
|
@@ -103,13 +103,17 @@ mnemon:
|
|
|
103
103
|
config.cliPath
|
|
104
104
|
-> executable MNEMON_CLI_PATH
|
|
105
105
|
-> each PATH directory
|
|
106
|
-
->
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
-> Windows: GOBIN/mnemon.exe
|
|
107
|
+
first GOPATH/bin/mnemon.exe, or ~/go/bin/mnemon.exe
|
|
108
|
+
%LOCALAPPDATA%/Programs/mnemon/mnemon.exe
|
|
109
|
+
%ProgramFiles%/mnemon/mnemon.exe
|
|
110
|
+
-> Unix: ~/.local/bin/mnemon
|
|
111
|
+
/opt/homebrew/bin/mnemon
|
|
112
|
+
/usr/local/bin/mnemon
|
|
113
|
+
/usr/bin/mnemon
|
|
110
114
|
```
|
|
111
115
|
|
|
112
|
-
显式 `cliPath` 会被采用;若它不可执行,实际调用会返回启动错误。
|
|
116
|
+
显式 `cliPath` 会被采用;若它不可执行,实际调用会返回启动错误。Windows 自动发现只接受普通 `.exe` 文件;进程执行不使用 shell,因此有意排除 `.cmd` 与 `.bat` wrapper。
|
|
113
117
|
|
|
114
118
|
## 兼容 Store 提示优先级
|
|
115
119
|
|
|
@@ -188,7 +192,7 @@ routingGuidance=false
|
|
|
188
192
|
|
|
189
193
|
## Profile patch 覆盖
|
|
190
194
|
|
|
191
|
-
包内 `cordis.patch.yml` 提供默认 config 行。DSH profile 的同 ID
|
|
195
|
+
包内 `cordis.patch.yml` 提供默认 config 行。DSH profile 的同 ID 配置可能整体覆盖这行。不要在 profile 的最终 patch 中只增加 `cliPath`;请改用 `MNEMON_CLI_PATH` 或用户设置 `mnemon.cliPath`。确因其他原因需要自定义 profile patch 时,应保留仍需启用的全部键,而不是假设深合并。
|
|
192
196
|
|
|
193
197
|
## 常见配置
|
|
194
198
|
|
|
@@ -199,6 +203,13 @@ mnemon:
|
|
|
199
203
|
storageScope: workspace
|
|
200
204
|
```
|
|
201
205
|
|
|
206
|
+
显式指定 Windows CLI 路径:
|
|
207
|
+
|
|
208
|
+
```yaml
|
|
209
|
+
mnemon:
|
|
210
|
+
cliPath: 'C:\Users\alice\AppData\Local\Programs\mnemon\mnemon.exe'
|
|
211
|
+
```
|
|
212
|
+
|
|
202
213
|
自定义数据盘和较长 CLI 超时:
|
|
203
214
|
|
|
204
215
|
```yaml
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
普通语义任务优先使用名为 `spawn` 的 Provider,并要求 `outputSchema`、`toolFilter`、`persona` 与 `depthLimit`。可选的评分后台审查还要求名为 `fork`、且 `inheritsParentContext=true` 的 Provider。缺少 `fork` 不影响确定性页面读取和普通手动操作。
|
|
16
16
|
|
|
17
|
-
项目当前不声明固定的 DSH / Mnemon 最低版本矩阵。本文与截图以 dsh-mnemon v0.1.
|
|
17
|
+
项目当前不声明固定的 DSH / Mnemon 最低版本矩阵。本文与截图以 dsh-mnemon v0.1.5 为基线;升级前先备份,并在隔离目录重复本页验证。
|
|
18
18
|
|
|
19
19
|
## 2. 安装 Mnemon
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ macOS 推荐 Homebrew Cask:
|
|
|
24
24
|
brew install --cask mnemon-dev/tap/mnemon
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
macOS
|
|
27
|
+
macOS 和 Linux 可通过 Go 安装:
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
30
|
go install github.com/mnemon-dev/mnemon@latest
|
|
@@ -36,7 +36,51 @@ go install github.com/mnemon-dev/mnemon@latest
|
|
|
36
36
|
mnemon --version
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Windows 官方发行包同时提供 AMD64 与 ARM64 ZIP。下面的 PowerShell 会把 v0.2.3 安装到可自动发现的用户 Programs 目录,并使用官方 checksum 校验下载内容:
|
|
40
|
+
|
|
41
|
+
```powershell
|
|
42
|
+
$version = '0.2.3'
|
|
43
|
+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'amd64' }
|
|
44
|
+
$archiveName = "mnemon_${version}_windows_${arch}.zip"
|
|
45
|
+
$releaseBase = "https://github.com/mnemon-dev/mnemon/releases/download/v${version}"
|
|
46
|
+
$archive = Join-Path $env:TEMP $archiveName
|
|
47
|
+
$checksumFile = Join-Path $env:TEMP "mnemon_${version}_checksums.txt"
|
|
48
|
+
Invoke-WebRequest "${releaseBase}/${archiveName}" -OutFile $archive
|
|
49
|
+
Invoke-WebRequest "${releaseBase}/checksums.txt" -OutFile $checksumFile
|
|
50
|
+
$line = Get-Content $checksumFile | Where-Object { $_.EndsWith(" $archiveName") } | Select-Object -First 1
|
|
51
|
+
if (-not $line) { throw "Checksum entry not found for $archiveName" }
|
|
52
|
+
$expected = (($line -split '\s+')[0]).ToLowerInvariant()
|
|
53
|
+
$actual = (Get-FileHash -Path $archive -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
54
|
+
if ($actual -ne $expected) { throw "Checksum mismatch for $archiveName" }
|
|
55
|
+
$installDir = Join-Path $env:LOCALAPPDATA 'Programs\mnemon'
|
|
56
|
+
New-Item -ItemType Directory -Force -Path $installDir | Out-Null
|
|
57
|
+
Expand-Archive -Path $archive -DestinationPath $installDir -Force
|
|
58
|
+
$mnemon = Join-Path $installDir 'mnemon.exe'
|
|
59
|
+
& $mnemon --version
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
如果已经安装 Go 工具链,也可以继续使用 Go:
|
|
63
|
+
|
|
64
|
+
```powershell
|
|
65
|
+
go install github.com/mnemon-dev/mnemon@latest
|
|
66
|
+
$mnemonBin = go env GOBIN
|
|
67
|
+
if (-not $mnemonBin) {
|
|
68
|
+
$mnemonBin = Join-Path (((go env GOPATH) -split ';')[0]) 'bin'
|
|
69
|
+
}
|
|
70
|
+
$mnemon = Join-Path $mnemonBin 'mnemon.exe'
|
|
71
|
+
& $mnemon --version
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Windows 上,dsh-mnemon 会从 `PATH`、导出的 `GOBIN` 或 `GOPATH`、默认 `%USERPROFILE%\go\bin`、`%LOCALAPPDATA%\Programs\mnemon` 和 Program Files 中发现原生 `mnemon.exe`。CLI 调用刻意禁用 shell,因此不接受 `.cmd` 与 `.bat` wrapper。
|
|
75
|
+
|
|
76
|
+
如果 DSH 仍无法找到二进制,请设置 `MNEMON_CLI_PATH`,或在用户 settings 中写入绝对路径;不要为此整体替换插件的 profile patch:
|
|
77
|
+
|
|
78
|
+
```yaml
|
|
79
|
+
mnemon:
|
|
80
|
+
cliPath: 'C:\Users\alice\AppData\Local\Programs\mnemon\mnemon.exe'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`mnemon status` 会打开有效 Store,可能初始化数据或执行上游迁移,不要把它当作完全无副作用的安装探测。
|
|
40
84
|
|
|
41
85
|
## 3. 安装 dsh-mnemon
|
|
42
86
|
|
|
@@ -103,7 +147,7 @@ dsh plugin --profile web remove dsh-mnemon
|
|
|
103
147
|
- 存储根与刚才选择的范围一致;
|
|
104
148
|
- Runtime、Memory Spaces 和 Documents 没有错误提示。
|
|
105
149
|
|
|
106
|
-
如果 Mnemon
|
|
150
|
+
如果 Mnemon 不可用,macOS/Linux 先运行 `command -v mnemon` 与 `mnemon --version`;Windows PowerShell 运行 `Get-Command mnemon` 与 `Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"`。更多症状见[故障排查](./operations.md#故障排查)。
|
|
107
151
|
|
|
108
152
|
## 6. 完成第一次验证
|
|
109
153
|
|
package/docs/zh-CN/operations.md
CHANGED
|
@@ -11,6 +11,13 @@ command -v mnemon
|
|
|
11
11
|
mnemon --version
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Windows PowerShell:
|
|
15
|
+
|
|
16
|
+
```powershell
|
|
17
|
+
Get-Command mnemon -ErrorAction SilentlyContinue
|
|
18
|
+
Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"
|
|
19
|
+
```
|
|
20
|
+
|
|
14
21
|
```text
|
|
15
22
|
/mnemon status
|
|
16
23
|
```
|
|
@@ -125,7 +132,7 @@ mnemon --version
|
|
|
125
132
|
|
|
126
133
|
| 现象 | 检查与处理 |
|
|
127
134
|
|---|---|
|
|
128
|
-
| Mnemon 不可用 | 运行 `command -v mnemon`、`mnemon --version
|
|
135
|
+
| Mnemon 不可用 | macOS/Linux 运行 `command -v mnemon`、`mnemon --version`;Windows PowerShell 运行 `Get-Command mnemon`、`Test-Path "$env:LOCALAPPDATA\Programs\mnemon\mnemon.exe"`。设置 `MNEMON_CLI_PATH` 或 `mnemon.cliPath` 后重启 |
|
|
129
136
|
| 左侧栏没有“记忆系统” | 检查 `tabEnabled=true`、`displayMode=sidebar`;Buildin 位于对话区;本地 link 先 `pnpm run build` 再重启 profile |
|
|
130
137
|
| 状态正常但召回为空 | 检查 active 记忆体、存储范围、查看目录、会话实际目录和查询是否足够聚焦 |
|
|
131
138
|
| 顶部提示目录未对齐 | 工作台正在查看另一个工作区;点击一键对齐,或有意保留只读查看;Agent-backed 操作在未对齐时拒绝 |
|
package/docs/zh-CN/ui-guide.md
CHANGED