dsh-mnemon 0.1.3 → 0.1.4

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.en.md DELETED
@@ -1,166 +0,0 @@
1
- <h1 align="center">dsh-mnemon</h1>
2
-
3
- <p align="center"><a href="./README.md">简体中文</a> · <strong>English</strong></p>
4
-
5
- <p align="center">
6
- <a href="./docs/en/ui-guide.md">
7
- <img src="./docs/assets/media/dsh-mnemon-memory-system-demo-poster.jpg" alt="dsh-mnemon Sidebar Memory System with Memory Space catalog and relationship graph" width="760">
8
- </a>
9
- </p>
10
-
11
- <p align="center"><strong>Local, layered, supervised long-term memory for DeepSeek Harness.</strong></p>
12
-
13
- `dsh-mnemon` integrates [Mnemon](https://github.com/mnemon-dev/mnemon) with DeepSeek Harness (DSH). It brings hot memory needed every turn, full project Documents, and on-demand long-term Memory Spaces into one workbench.
14
-
15
- - **Local first**: memory stays in local SQLite, JSON, and Markdown; no remote memory service is required.
16
- - **Three cooperating tiers**: Runtime Memory, Project Documents, and Memory Spaces retain information at the right granularity.
17
- - **Supervised writes**: isolated memory subagents make semantic decisions; the Host enforces paths, permissions, capacity, locks, and revisions.
18
- - **Native DSH experience**: a Sidebar workbench by default, turn memory, a Save-to-memory dialog, bilingual copy, and global themes.
19
-
20
- Current user instructions, repository files, and live tool results always take precedence over historical memory.
21
-
22
- ## Live demo
23
-
24
- ![dsh-mnemon Sidebar Memory System and in-conversation interaction demo](./docs/assets/media/dsh-mnemon-memory-system-demo.gif)
25
-
26
- See the [Sidebar and conversation UI guide](./docs/en/ui-guide.md) for the complete visual walkthrough.
27
-
28
- ## Start in five minutes
29
-
30
- ### 1. Install Mnemon
31
-
32
- ```sh
33
- # macOS
34
- brew install --cask mnemon-dev/tap/mnemon
35
-
36
- # macOS / Linux via Go
37
- go install github.com/mnemon-dev/mnemon@latest
38
-
39
- mnemon --version
40
- ```
41
-
42
- ### 2. Install the plugin
43
-
44
- ```sh
45
- dsh plugin --profile web add dsh-mnemon
46
- dsh --profile web
47
- ```
48
-
49
- Use an absolute path for a local development checkout:
50
-
51
- ```sh
52
- dsh plugin --profile web add "link:/absolute/path/to/dsh-mnemon"
53
- ```
54
-
55
- ### 3. Open Memory System
56
-
57
- New installations use `sidebar` by default. Click **Memory System** in the DSH sidebar, then follow this first-run path:
58
-
59
- 1. Confirm the Mnemon CLI, Runtime, Memory Spaces, and Documents are healthy under **Status**.
60
- 2. Create a narrowly scoped Memory Space under **Memory Spaces → Overview**.
61
- 3. Submit one stable, future-useful item through **Remember**.
62
- 4. Verify it with a focused question under **Recall**.
63
- 5. Return to the conversation and expand **Turn memory** below the answer.
64
-
65
- See [Getting Started](./docs/en/getting-started.md) for provider requirements and complete verification.
66
-
67
- ## One workbench, three memory tiers
68
-
69
- | Tier | Best for | How it reaches context |
70
- |---|---|---|
71
- | **Runtime** | User preferences, collaboration rules, project conventions, environment facts | Compact `USER.md` / `MEMORY.md` projections on every turn |
72
- | **Documents** | Designs, investigations, procedures, postmortems, and handoffs | Deterministic search of active Documents, then full text on demand |
73
- | **Memory Spaces** | Cross-session facts, decisions, entities, and relations | Bounded evidence recalled on demand from active spaces only |
74
-
75
- The tiers are not simple copies of the same content. Knowledge is routed by frequency, narrative length, and retrieval needs. See [Storage and the three-tier model](./docs/en/storage-model.md).
76
-
77
- ## Sidebar workbench
78
-
79
- | Page | Main purpose |
80
- |---|---|
81
- | **Status** | Inspect connection, storage root, tier summaries, and Mnemon / dsh-mnemon versions |
82
- | **Runtime** | Inspect USER / MEMORY capacity; filter, add, edit, or remove hot memory |
83
- | **Memory Spaces** | Manage activation; switch among Overview, Recall, Content, and Entities; open Remember |
84
- | **Documents** | Search, read, create, edit, and archive managed Markdown documents |
85
-
86
- Add and edit use consistent dialogs, destructive actions require confirmation, long collections expose filters and progressive loading, and Documents use a dedicated reader.
87
-
88
- ### Memory inside conversations
89
-
90
- | Turn memory | Save to memory |
91
- |---|---|
92
- | [![Expanded Turn memory with exact tool links](./docs/assets/screenshots/conversation-turn-memory.png)](./docs/assets/screenshots/conversation-turn-memory.png) | [![Confirm save to memory dialog](./docs/assets/screenshots/conversation-save-dialog.png)](./docs/assets/screenshots/conversation-save-dialog.png) |
93
-
94
- - **Turn memory** summarizes recalls, writes, and Document searches for the turn; expand it to jump to the matching page.
95
- - **Save to memory** loads an editable candidate. Only confirmation sends it to the memory subagent for qualification, deduplication, distillation, and writing.
96
-
97
- Both are on by default. Disable them independently under **Settings → Memory System → Conversation interface**; saved changes apply live.
98
-
99
- ## Display and storage
100
-
101
- Configuration lives in `$DSH_HOME/settings.yaml` (commonly `~/.dsh/settings.yaml`):
102
-
103
- ```yaml
104
- mnemon:
105
- displayMode: sidebar # sidebar | buildin; sidebar by default
106
- storageScope: global # global | workspace | custom
107
- ```
108
-
109
- | Choice | Behavior |
110
- |---|---|
111
- | `sidebar` | Default dedicated workbench aligned with official DSH panel styling |
112
- | `buildin` | Preserves the original conversation-area presentation and visuals |
113
- | `global` | Shares `~/.mnemon` (or `MNEMON_DATA_DIR`) across workspaces |
114
- | `workspace` | Uses `<workspace>/.mnemon`; the workbench may inspect another workspace while the Agent still follows the current session |
115
- | `custom` | Uses an absolute or `~/...` path supplied through `dataDir` |
116
-
117
- Saved settings apply live without a manual refresh. Changing scope never migrates, merges, or deletes old data. If the inspected workspace differs from the session's effective workspace, the header explains the mismatch and offers one-click alignment.
118
-
119
- ## Common commands
120
-
121
- ```text
122
- /mnemon status
123
- /mnemon recall <query>
124
- /mnemon related <full memory ID>
125
- /mnemon remember <stable, self-contained durable insight>
126
- /mnemon forget <full memory ID>
127
- ```
128
-
129
- Recommended lookup order: Runtime Memory → active Documents → active Memory Spaces → archived original referenced by a hit.
130
-
131
- ## Data and security boundaries
132
-
133
- - The plugin reaches durable memory through the local `mnemon` CLI. The WebUI neither reads SQLite directly nor starts processes.
134
- - CLI calls use argument arrays with shell disabled, bounded output, timeouts, and cancellation.
135
- - The plugin stores no API keys. Subagent inference uses the provider already configured in DSH.
136
- - There is no deterministic secret scanner yet. Never store keys, tokens, private keys, or raw sensitive logs in any tier.
137
- - Uninstalling the plugin does not remove data under `~/.mnemon`, workspace `.mnemon` roots, or custom directories.
138
-
139
- See [Operations, security, and troubleshooting](./docs/en/operations.md) for complete boundaries, backup, recovery, and diagnostics.
140
-
141
- ## Documentation
142
-
143
- | I want to… | Start here |
144
- |---|---|
145
- | Install and complete first-run verification | [Getting Started](./docs/en/getting-started.md) |
146
- | Learn every page and conversation entry | [Sidebar and conversation UI guide](./docs/en/ui-guide.md) |
147
- | Understand the three tiers and complete flow | [Project overview](./docs/en/project-overview.md) · [Lifecycle and workflows](./docs/en/workflows.md) |
148
- | Choose storage scope or advanced switches | [Configuration reference](./docs/en/configuration.md) |
149
- | Back up, update, or troubleshoot | [Operations, security, and troubleshooting](./docs/en/operations.md) |
150
- | Integrate tools, commands, or RPC | [Interface reference](./docs/en/interfaces.md) |
151
- | Develop, test, or publish | [Development and verification](./docs/en/development.md) |
152
-
153
- See the [documentation hub](./docs/en/README.md) for the full map.
154
-
155
- ## Development
156
-
157
- ```sh
158
- pnpm install
159
- pnpm run verify
160
- ```
161
-
162
- `verify` runs TypeScript checks, Vitest, and the production build. Generated artifacts are committed under `lib/`.
163
-
164
- ## License
165
-
166
- MIT. Report security issues privately through [SECURITY.md](./SECURITY.md), not a public issue.