@skillre/dsh-plugin-sticky-wall 0.6.0 → 0.8.0

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Status: experimental · for DSH `0.2.2-rc.1`
4
4
 
5
- A sticky-note wall in the DSH left sidebar: capture a passing idea, a piece of temporary work, or a short reminder, and place it on the board **like a real sticky on a desk** — drag it, resize it, tidy the whole wall in one click. Bodies are written in **Markdown** and rendered right on the card. Both the notes and their placement are persisted by the Host, so position and content survive a DSH restart.
5
+ A sticky-note wall in the DSH left sidebar: capture a passing idea, a piece of temporary work, or a short reminder, and place it on the board **like a real sticky on a desk** — drag it, resize it, tidy the whole wall in one click. Bodies are written in **Markdown** and rendered right on the card. The Host persists both the notes and their placement, and **every note is a real Markdown file**: position and content survive a DSH restart, and you can open, search or back them up in any editor with DSH closed.
6
6
 
7
7
  [中文](README.md)
8
8
 
@@ -17,9 +17,9 @@ Non-goals: task management (no scheduling, assignment or reminders), collaborati
17
17
  - **Sidebar entry** — a "Notes" glyph in `sidebar.panellist`; clicking it swaps the centre column to the wall.
18
18
  - **Free canvas** — notes are cards on a canvas, not list rows. Position, rotation and a three-step width (small/medium/large) are note data owned by the Host, so the same wall opens with the same arrangement in another window.
19
19
  - **Drag to place** — press anywhere on a card and drag; the drop lands on the new position immediately and then writes it to the Host, so the card never snaps back first. A drag does **not** bump `updatedAt`, so tidying your desk never reshuffles a "by updated" sort.
20
- - **A wall with a middle** — "Tidy" packs every note into a **compact composition hugging a clear rectangle** at the world origin, which is kept free for the greeting and the quick-capture field; the camera opens with the whole wall framed and centred. The packer follows the rectangle's own **contour** rather than a circle, so every card is only half its own size away from the middle: the same fourteen notes occupy 1261x705 instead of 1645x1794, and frame at **84% instead of 36%**. Each candidate slot is scored by the zoom the whole wall would need, so the result is a wide, low cluster rather than a disc that leaves the window's sides empty. The reserve is measured against each card's **edge** and stays constant in world space, so no card can cover the field at any zoom.
21
- - **The centre is the entry point** — the middle of the wall is an always-available capture field: type a line, press Enter, and it becomes a note without opening the form. The new note lands in the **nearest free gap** rather than being thrown off screen.
22
- - **The arrival is visible** — a new card pops in and holds a ring for about 0.9s; if the gap is outside the current viewport the camera **glides and zooms out just enough** to bring it into view, so a capture never leaves you guessing whether it worked.
20
+ - **A wall with a middle** — "Tidy" packs every note into a **compact composition hugging a clear rectangle** at the world origin, which is kept free for the greeting and the quick-capture field; the camera opens with the whole wall framed and centred. The packer follows the rectangle's own **contour** rather than a circle, so every card is only half its own size away from the middle: the same fourteen notes occupy 1261x705 instead of 1645x1794, and frame at **84% instead of 36%**. Each candidate slot is scored by the zoom the whole wall would need, so the result is a wide, low cluster rather than a disc that leaves the window's sides empty. The reserve is measured against each card's **edge**. Tidy keeps it constant in world space; a **single new note** instead follows where the field really is in world space, so capturing after panning or zooming still lands beside the field rather than behind it.
21
+ - **The centre is the entry point** — the middle of the wall is an always-available capture field: type a line, press Enter, and it becomes a note without opening the form. The new note lands in the **nearest free gap to the field** rather than being thrown off screen — or hidden behind it.
22
+ - **The arrival is visible** — a new card pops in and holds a ring for about 0.9s; if the gap is not on screen the camera brings it to the free space **beside the capture field** (whichever of above/below/left/right needs the least movement), zooming out only when nothing fits, so a capture never leaves you guessing whether it worked. It deliberately does **not** centre the card, because the centre of the viewport is where the field is drawn.
23
23
  - **The reserve is a magnetic edge** — dragging a card onto the capture field pushes it to the nearest clear spot instead of letting it cover the input.
24
24
  - **One-click tidy** — "Tidy" repacks deterministically and collision-checks every card against the ones already placed, so the same wall always yields the same arrangement and cards never overlap.
25
25
  - **Three views** — canvas (default, free placement), grid (responsive masonry for reading long notes) and list (one line per note for finding one by title).
@@ -33,18 +33,34 @@ Non-goals: task management (no scheduling, assignment or reminders), collaborati
33
33
  - **Search and sort** — live filtering over body, title and tags; order by pinned, created or updated.
34
34
  - **Light and dark** — the frame uses only DSH theme tokens; note pastels are the plugin's own palette with dark variants.
35
35
  - **Bilingual** — follows the DSH GUI language live, without a reload.
36
- - **Model-visible** — optionally registers a `sticky_wall` tool, so "note that …" creates a real note, and `arrange` tidies the wall.
36
+ - **A real body editor** — a plain textarea plus a Markdown insert toolbar (h1–h3, quote, rule, code block, bullet/ordered/to-do lists, table, bold/italic/strikethrough/inline code/link, insert timestamp). It auto-grows with the text and scrolls internally past 60% of the viewport, `Tab` / `Shift + Tab` indents whole lines, and Enter continues a list (an empty item ends it). While a Chinese/Japanese IME composition is open every shortcut goes inert and neither the selection nor the caret is touched, so typing never loses characters.
37
+ - **Saves you can trust** — a failed save shows its error **inside** the editor sheet instead of behind it; an action pressed while another write is in flight is queued rather than silently dropped; leaving with an unsaved draft asks "discard the unsaved content?" first.
38
+ - **Refreshes in the foreground** — the wall re-reads on window focus, on tab visibility, and on a slow poll (and does no work when the revision is unchanged), so a note changed in another window or by the agent shows up on its own.
39
+ - **Model-visible** — optionally registers a `sticky_wall` tool, so "note that …" creates a real note; `list` scans notes, `read` returns one note's **full text and file path**, `create`/`update` write attributes or text, `move` places a card, `archive`/`delete` change state in batches, and `arrange` tidies the wall. An agent may also edit the backing `.md` with its file tools.
37
40
 
38
41
  ## Data and permissions
39
42
 
40
43
  | Item | Detail |
41
44
  |---|---|
42
- | Data owner | Host. Notes (including canvas placement) persist through the native DSH `storageDomain`, domain `skillre_sticky_wall`, `per-record` layout (one file per note). |
43
- | Data location | Decided by the profile's storage backend; the shipped profile's `storage-json` row writes domain files under `$DSH_HOME/storages`. |
45
+ | Data owner | Host. Notes and canvas placement are written to **real files**: one `.md` per note under `$DSH_HOME/sticky-notes/`, named after the note id (`<id>.md`, a UUID — except the seeded welcome note, whose id is literally `welcome`). A YAML frontmatter block at the top carries the attributes; everything after it is the body. |
46
+ | Data location | Follows `DSH_HOME` by default (falling back to `~/.dsh/sticky-notes`), overridable with `notesDir` as an absolute path or `~/…`. Notes span workspaces — they are personal data on this machine, not part of any project directory. |
44
47
  | Network | No external requests. Browser ↔ Host uses the local DSH `/api` channel only. |
45
- | Filesystem | Only the domain directory through the storage backend; no arbitrary user files. |
48
+ | Filesystem | Only the notes directory itself. A write goes to a sibling temp file and is then `rename`d over the target, so a note is either the old file or the new one — never half-written. |
46
49
  | Secrets | None. |
47
- | Model-visible | Only when `enableAgentTool` is true (default): the `sticky_wall` tool, whose results include note text in the session. |
50
+ | Model-visible | Only when `enableAgentTool` is true (default): the `sticky_wall` tool, whose `read` returns a note's full text and file path. |
51
+ | Agent write cost | Reading a note needs **no approval at all** (reads are never sandboxed). But an agent's native `edit`/`write` on a note file is **blocked once** under `workspace-write` and needs a per-call approval with `sandbox_permissions: danger-full-access` plus a justification — unless the user adds the notes directory to `additionalWritableRoots` in their profile. That is real friction, not "seamless integration": if you do not want to pay it, have the agent change attributes through the `sticky_wall` tool, or only let it edit the body in the editor. |
52
+
53
+ ### Where the files live
54
+
55
+ By default that is `$DSH_HOME/sticky-notes/` (`~/.dsh/sticky-notes/` when DSH sets no `DSH_HOME`), and `notesDir` can move it anywhere. Inside, it is one `.md` per note: plain Markdown that any editor can open, that `grep` can search, and that you can put in Git or a backup. The frontmatter block at the top holds the attributes; the rest is the body. After another tool edits a file, the wall picks the change up on window focus or the slow poll. A mangled frontmatter block never drops a note — see [Known limitations](#known-limitations).
56
+
57
+ ### Upgrading from 0.7
58
+
59
+ 0.7.x kept the wall in a DSH storage domain (`$DSH_HOME/storages/skillre_sticky_wall/`); 0.8.0 uses the `.md` files above. **Nothing manual is required**: on the first 0.8.0 start, if the notes directory is still empty while the legacy domain holds notes, every note is converted to a `.md` with its attributes, placement, timestamps and id preserved — written into a sibling staging directory and published with a single `rename`, so a failure midway cannot leave a half-migrated directory. A `migration.json` marker beside the notes records when it happened and how many notes it carried.
60
+
61
+ - **The legacy data is not deleted**: the migration only reads the old domain, never writes back and never cleans up. To roll back, stop DSH, move the `sticky-notes/` directory 0.8.0 wrote aside, and reinstall 0.7.x — the old notes are still there, untouched.
62
+ - **A failed migration does not block opening**: nothing is written, the wall opens (empty rather than broken), and the next start retries.
63
+ - **Once you are satisfied**, the old `$DSH_HOME/storages/skillre_sticky_wall/` directory can be deleted by you.
48
64
 
49
65
  ## Configuration
50
66
 
@@ -54,6 +70,7 @@ Override by row id in the profile's `cordis.patch.yml` (a patch replaces the who
54
70
  - id: skillre-sticky-wall
55
71
  name: '@skillre/dsh-plugin-sticky-wall'
56
72
  config:
73
+ notesDir: ''
57
74
  maxNotes: 400
58
75
  enableAgentTool: true
59
76
  seedWelcomeNote: true
@@ -61,10 +78,13 @@ Override by row id in the profile's `cordis.patch.yml` (a patch replaces the who
61
78
 
62
79
  | Key | Default | Meaning |
63
80
  |---|---|---|
81
+ | `notesDir` | `''` (empty) | Which directory holds the note `.md` files. Empty = follow the DSH home: `$DSH_HOME/sticky-notes`, falling back to `~/.dsh/sticky-notes` when DSH sets no `DSH_HOME`. An absolute path or `~/…` is accepted. Notes span workspaces. |
64
82
  | `maxNotes` | `400` | Cap on live (non-archived) notes, 1–5000. Creating, unarchiving and batch-restoring all respect it; going over returns `sticky-wall/wall-full`, so archive or delete first. |
65
83
  | `enableAgentTool` | `true` | Whether to register the model-facing `sticky_wall` tool. |
66
84
  | `seedWelcomeNote` | `true` | Whether a brand-new empty wall gets one welcome note explaining the shortcuts. |
67
85
 
86
+ Pointing `notesDir` elsewhere means the plugin reads and writes only that directory and never touches the old one on its own. **Do not aim two running DSH instances at the same notes directory**: each Host loads the notes into memory at start and treats that as the authoritative cache, so two processes write whole files over each other instead of merging. To share one set of notes, export/import them or sync through Git.
87
+
68
88
  ## Install
69
89
 
70
90
  After development and test cleanup, **the user** chooses the source and confirms install/enable in the DSH Desktop Client or Web UI **Plugins** manager; no developer or agent preinstalls it into the user's profile.
@@ -96,8 +116,8 @@ Update semantics, stated plainly:
96
116
  - `allow-version` exemptions exist only in the CLI and agent tooling, not in the plugin page.
97
117
 
98
118
  - **Rollback**: npm versions are immutable. `npm deprecate` the faulty version and publish a fix; the user removes the faulty bundle in the plugin manager and reinstalls a known-good version (if the UI cannot pin an older one, the user decides the recovery channel).
99
- - **Data compatibility**: the domain carries a `version` field and compatibility only holds within the same version. Back up the domain directory under `$DSH_HOME/storages` before downgrading. Canvas placement is a new optional field: an older note loads with `layout: null` and the UI derives a preview position from the note id, so a downgrade does not fail on the missing field.
100
- - **Uninstall**: see [UNINSTALL.md](UNINSTALL.md). Uninstalling the plugin does **not** delete note data automatically.
119
+ - **Data compatibility**: from 0.8.0 the notes are `.md` files under `$DSH_HOME/sticky-notes/`, no longer a storage domain, so **rollback and backup are ordinary file copies** — duplicate the whole `sticky-notes/` directory before downgrading. The 0.7.x domain is left untouched by the upgrade, so reinstalling 0.7.x reads it as it was (see [Upgrading from 0.7](#upgrading-from-07)).
120
+ - **Uninstall**: see [UNINSTALL.md](UNINSTALL.md). Uninstalling the plugin does **not** delete the note files automatically.
101
121
 
102
122
  ## Display metadata (plugin card and detail page)
103
123
 
@@ -129,18 +149,21 @@ The install path was verified end to end: derive the spec from the live index, i
129
149
 
130
150
  ## Known limitations
131
151
 
132
- - The wall is a scratchpad: body up to 4000 characters, title 120, up to 8 tags — hard limits.
152
+ - The wall is a scratchpad: body up to **200,000 characters**, title 120, up to 8 tags. The 200k figure is a **resource guard** (so one pathological note cannot drag the Host down), not a product limit — a note may be a short document.
153
+ - A single note file larger than **4 MiB** is **skipped, not read** (refused at the `readdir`/`stat` stage, before the parser sees it) with one line in the Host log. That guards against someone dropping a 200 MB file into the directory; it is not a normal note size.
154
+ - A broken frontmatter block **never drops the note**: the card still shows, the body still renders, the attributes fall back to defaults (yellow, unpinned, not archived, no tags, no placement) and the card carries a "Metadata issue" badge; the file's text is not discarded either. A frontmatter written by a **newer build** (a `schema` above this build's) reads as a normal card with that badge, and unknown keys are preserved on every rewrite.
155
+ - **The agent's write-approval cost**: reads need no approval, but a native `edit`/`write` is blocked once under `workspace-write` and needs a per-call `danger-full-access` approval with a justification unless the notes directory is in the profile's `additionalWritableRoots`. That is a deliberate safety boundary — do not expect "the agent just edits it".
133
156
  - **Markdown is a deliberate subset**, not full CommonMark: headings (`#`–`####`), paragraphs and hard breaks, bold/italic/strikethrough, inline `` `code` ``, ``` / ~~~ code blocks, ordered and unordered lists, `- [ ]` checkboxes, quotes, rules, pipe tables and http(s)/mailto links. **Not supported**: nested list indentation, images, footnotes, or interactive checkboxes (they render as a read-only glyph).
134
157
  - **Raw HTML in a body is shown as text** — it is neither executed nor rendered. That is a safety decision, not a bug.
135
158
  - Card width has only **three presets** (small/medium/large); there is no arbitrary resize. A drag keeps the card's existing tilt.
136
159
  - Tidy is O(n) spiral placement plus a spatial-grid collision check; the wall holds at most 400 notes, and a wall larger than the viewport needs panning or zooming out.
137
160
  - The canvas is a flat plane: no grouping, layers, connectors or snap alignment, and no rotation gesture beyond the stored tilt.
138
- - Auto-framing has a legibility floor (50%): a large wall is centred rather than crammed entirely into view, so panning is expected. The middle is reserved space — tidy never places a card under the greeting or the capture field.
139
- - Placement is owned by the Host, but two windows open on the same wall each render their own snapshot and do not live-push the other's drags.
161
+ - Auto-framing has a legibility floor (42%): a large wall is centred rather than crammed entirely into view, so panning is expected. The middle is reserved space — tidy never places a card under the greeting or the capture field, and a capture on a panned or zoomed wall avoids wherever the field currently sits.
162
+ - Placement is owned by the Host, but two windows open on the same wall each render their own snapshot and do not live-push the other's drags — they do refetch on focus and on the slow poll, so neither stays stale for long.
140
163
  - Archived notes do not occupy a `maxNotes` slot, but restoring them does; a restore at the cap is rejected instead of silently overshooting.
141
164
  - "Clear archive" is a permanent, irreversible delete.
142
165
  - Batch archive/delete is all-or-nothing: one unknown id in the request rejects the whole batch.
143
- - With several windows open, each fetches its own snapshot; the Host is the single source of truth, but no live push across windows.
166
+ - Files in the notes directory that are not notes (a name that is not a valid `<id>.md`, a subdirectory, a stray `*.md.tmp`) are ignored rather than imported; a temp file stranded by an interrupted write costs a little disk and never becomes a duplicate note.
144
167
  - Verified only against DSH `0.2.2-rc.1`; no other DSH line is claimed.
145
168
 
146
169
  ## Compatibility
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 状态:experimental · 面向 DSH `0.2.2-rc.1`
4
4
 
5
- 在 DSH 左侧栏加一个「便签墙」入口:随手记下一闪而过的灵感、临时的活儿和短提醒,像便签贴在桌上一样**自由摆放** —— 拖动、缩放、一键整理;正文用 **Markdown** 写,卡片上直接渲染出来。便签与摆位都由 Host 持久化,重启 DSH 后位置和内容都在。
5
+ 在 DSH 左侧栏加一个「便签墙」入口:随手记下一闪而过的灵感、临时的活儿和短提醒,像便签贴在桌上一样**自由摆放** —— 拖动、缩放、一键整理;正文用 **Markdown** 写,卡片上直接渲染出来。便签与摆位都由 Host 持久化,而且**一张便签就是一个真实的 Markdown 文件**:重启 DSH 后位置和内容都在,退出 DSH 也能用任何编辑器打开、搜索、备份。
6
6
 
7
7
  [English](README.en.md)
8
8
 
@@ -17,9 +17,9 @@
17
17
  - **左侧栏入口**:`sidebar.panellist` 中的「便签墙」图标,点击把中央区域切换到便签墙页面。
18
18
  - **自由画布**:便签不是列表项,而是画布上的卡片。位置、旋转角、宽度三档(小/中/大)都属于便签数据,由 Host 保存;同一面墙在另一个窗口打开时摆位一致。
19
19
  - **拖动摆放**:按住卡片任意位置即可拖动,松手立刻落到新位置再把结果写回 Host(不会先弹回原处)。拖动本身**不会**改 `updatedAt`,所以「按更新」排序不会因为你整理桌面而乱掉。
20
- - **圆心构图**:整理把整面墙排成**贴着中心留白的一圈紧凑构图**,中心空出一块**矩形留白**给问候语和快速记录框;相机打开时把整面墙框进视野并居中。排布不是按「圆环」而是按**留白矩形的轮廓**铺开,所以每张卡片离中心都只有它自己的一半尺寸那么远 —— 同样 14 张便签,0.5.0 的圆环要占 1645×1794、只能框到 36%,现在占 1261×705、能框到 84%。留白按**卡片边缘**判定,并在世界坐标里恒定 —— 任何缩放下都不会有卡片压住记录框。
21
- - **中心即入口**:便签墙正中是随时可用的快速记录框 —— 写一句按回车就落成一张便签,不用打开表单。新便签落在**离中心最近的空缺位置**,不会甩到视野之外。
22
- - **落点可见**:新便签生成时会在落点**弹入并亮一圈**(约 0.9 秒);如果落点在当前视野之外,相机**自动滑动并适度缩小**把它带进视野 —— 记下一条之后不用猜它到底有没有生成。
20
+ - **圆心构图**:整理把整面墙排成**贴着中心留白的一圈紧凑构图**,中心空出一块**矩形留白**给问候语和快速记录框;相机打开时把整面墙框进视野并居中。排布不是按「圆环」而是按**留白矩形的轮廓**铺开,所以每张卡片离中心都只有它自己的一半尺寸那么远 —— 同样 14 张便签,0.5.0 的圆环要占 1645×1794、只能框到 36%,现在占 1261×705、能框到 84%。留白按**卡片边缘**判定;整理时它在世界坐标里恒定,而**单张新便签的落点跟随记录框当前在世界里的真实位置**,所以平移到别处或放大之后再记一条,卡片仍然落在记录框旁边而不是它背后。
21
+ - **中心即入口**:便签墙正中是随时可用的快速记录框 —— 写一句按回车就落成一张便签,不用打开表单。新便签落在**离记录框最近的空缺位置**,不会甩到视野之外,也不会被记录框本身挡住。
22
+ - **落点可见**:新便签生成时会在落点**弹入并亮一圈**(约 0.9 秒);如果落点不在视野里,相机会把它带到**记录框旁边的空位**(上/下/左/右取最省力的那侧),必要时才适度缩小 —— 记下一条之后不用猜它到底有没有生成。相机不会把新便签对到画面正中,因为那里正是记录框。
23
23
  - **留白是磁吸边界**:把卡片拖到中间记录框上会被自动推到最近的空位,不会盖住输入框。
24
24
  - **一键整理**:「整理」把全部便签按确定性算法重新排布并做真实碰撞检测 —— 同一面墙按两次得到同一个结果,卡片永不重叠。
25
25
  - **三种视图**:画布(默认,自由摆位)、网格(响应式瀑布流,适合读长文)、列表(一行一条,适合按标题找)。
@@ -33,18 +33,34 @@
33
33
  - **搜索与排序**:按正文、标题、标签实时过滤;可按「置顶优先 / 按创建 / 按更新」排序。
34
34
  - **深浅色**:只使用 DSH 主题 token 绘制框架,便签底色与文字色为插件自有配色并各自提供深色变体。
35
35
  - **中英双语**:跟随 DSH 界面语言实时切换,无需刷新。
36
- - **模型可用**:可选注册 `sticky_wall` 工具,直接对我说「记一下……」即可落成一张便签;也能让我 `arrange` 整理整面墙。
36
+ - **正文编辑器**:正文用纯文本框编辑,配一排 Markdown 插入工具栏(一~三级标题、引用、分隔线、代码块、无序/有序/待办列表、表格、粗体/斜体/删除线/行内代码/链接、插入当前时间)。输入框随内容自动增高(最多长到视口 60% 后改为内部滚动),`Tab` / `Shift + Tab` 缩进整行,回车自动续写列表(空列表项再回车就结束列表)。中文/日文输入法正在组合时所有快捷键静默、选区与光标不动,打字不会掉字。
37
+ - **保存可靠**:保存失败的错误显示在编辑面板**内部**,不是被面板挡在背后;上一个写入还没回来时再点操作会排队,不会被静默丢掉;有未保存的草稿时离开会先问一句「放弃未保存的内容?」。
38
+ - **前台自动刷新**:窗口重新获得焦点、标签页重新可见,以及一条慢轮询,都会让墙面刷新(未变化时不重新渲染),所以另一个窗口或 agent 改过的便签会自己出现。
39
+ - **模型可用**:可选注册 `sticky_wall` 工具,直接对我说「记一下……」即可落成一张便签;`list` 扫标题、`read` 取回一条便签的**全文和文件路径**、`create`/`update` 写属性与正文、`move` 摆卡片位置、`archive`/`delete` 批量改状态、`arrange` 整理整面墙。也可以让我直接用文件工具改便签的 `.md`。
37
40
 
38
41
  ## 数据与权限
39
42
 
40
43
  | 项目 | 说明 |
41
44
  |---|---|
42
- | 数据所有者 | Host。便签(含画布摆位)通过 DSH 原生 `storageDomain` 持久化,域名为 `skillre_sticky_wall`,`per-record` 布局(一张便签一个文件)。 |
43
- | 数据位置 | 由 profile 的 storage 后端决定;shipped profile 的 `storage-json` 行把域文件放在 `$DSH_HOME/storages` 下。 |
45
+ | 数据所有者 | Host。便签与画布摆位都写进**真实文件**:`$DSH_HOME/sticky-notes/` 下**一张便签一个 `.md` 文件**,文件名就是便签 id(`<id>.md`,id 是 UUID;种子欢迎便签的 id 恰好是 `welcome`)。文件顶部的 YAML frontmatter 存属性,其后就是正文。 |
46
+ | 数据位置 | 默认跟随 `DSH_HOME`(回落 `~/.dsh/sticky-notes`),可用 `notesDir` 覆盖为绝对路径或 `~/…`。便签跨 workspace 共享 —— 它们是这台机器上的个人数据,不属于某个项目目录。 |
44
47
  | 网络 | 无外部网络请求。浏览器 ↔ Host 只走本机 DSH 的 `/api` 通道。 |
45
- | 文件系统 | 仅经由 storage 后端读写该域目录,不读写任意用户文件。 |
48
+ | 文件系统 | 只读写便签目录本身。写入走「先写同目录临时文件再 `rename`」,单条便签要么是旧的、要么是新的,不会是写了一半的。 |
46
49
  | 密钥 | 不使用任何密钥。 |
47
- | 模型可见 | 仅当 `enableAgentTool` 为真(默认)时注册 `sticky_wall` 工具;便签内容在工具调用返回时进入会话。 |
50
+ | 模型可见 | 仅当 `enableAgentTool` 为真(默认)时注册 `sticky_wall` 工具;`read` 会返回一条便签的全文与文件路径。 |
51
+ | agent 写入成本 | 读便签**不需要任何批准**(读操作从不经过沙箱)。但 agent 用原生 `edit`/`write` 改便签文件时,在 `workspace-write` 下**第一次会被拒绝一次**,需要逐次调用带 `sandbox_permissions: danger-full-access` 和理由才会放行 —— 除非用户把便签目录加进自己 profile 的 `additionalWritableRoots`。这是真实的摩擦,不是「无缝集成」:不想付这个成本就让 agent 走 `sticky_wall` 工具改属性,或只让它在编辑器里改正文。 |
52
+
53
+ ### 文件在哪
54
+
55
+ 默认就是 `$DSH_HOME/sticky-notes/`(DSH 没设置 `DSH_HOME` 时是 `~/.dsh/sticky-notes/`),可用 `notesDir` 改到别处。里面一张便签一个 `.md`,纯 Markdown,任何编辑器都能直接打开、`grep`、放进 Git 或备份;顶部的 frontmatter 是属性,下面就是正文。文件被另一个工具改过之后,墙面在窗口重新获得焦点或慢轮询时自动刷新。改坏 frontmatter 不会丢便签,见[已知限制](#已知限制)。
56
+
57
+ ### 从 0.7 升级
58
+
59
+ 0.7.x 把便签存在 DSH 的 storage domain(`$DSH_HOME/storages/skillre_sticky_wall/`)里,0.8.0 改成上面的 `.md` 文件。**升级不需要任何手动操作**:0.8.0 第一次启动时,如果便签目录还是空的、而旧 domain 里还有便签,就把每一条都转成一个 `.md`(属性、摆位、时间戳和 id 全部保留),先写进同级暂存目录再一次性 `rename` 发布,所以中途失败不会留下半截目录。迁移完成后 `sticky-notes/` 里会多一个 `migration.json` 记录迁移时间和条数。
60
+
61
+ - **旧数据不会被删**:迁移只读旧 domain,从不回写也不清理。想回退就停掉 DSH、把 0.8.0 写出的 `sticky-notes/` 移走、装回 0.7.x,旧便签还是原样。
62
+ - **迁移失败不影响打开**:失败时什么也不写,墙面照常打开(空的而不是坏的),下次启动重试。
63
+ - **确认一切正常之后**,旧 domain 目录 `$DSH_HOME/storages/skillre_sticky_wall/` 可以自行删除。
48
64
 
49
65
  ## 配置
50
66
 
@@ -54,6 +70,7 @@
54
70
  - id: skillre-sticky-wall
55
71
  name: '@skillre/dsh-plugin-sticky-wall'
56
72
  config:
73
+ notesDir: ''
57
74
  maxNotes: 400
58
75
  enableAgentTool: true
59
76
  seedWelcomeNote: true
@@ -61,10 +78,13 @@
61
78
 
62
79
  | 键 | 默认 | 含义 |
63
80
  |---|---|---|
81
+ | `notesDir` | `''`(空) | 便签 `.md` 文件放在哪个目录。空 = 跟随 DSH home:`$DSH_HOME/sticky-notes`,DSH 没设置 `DSH_HOME` 时回落 `~/.dsh/sticky-notes`。可写绝对路径或 `~/…`。便签跨 workspace 共享。 |
64
82
  | `maxNotes` | `400` | 未归档便签的数量上限(1–5000)。新建、取消归档、批量恢复都受此约束,超出时返回 `sticky-wall/wall-full`,需先归档或删除。 |
65
83
  | `enableAgentTool` | `true` | 是否向模型注册 `sticky_wall` 工具。 |
66
84
  | `seedWelcomeNote` | `true` | 全新的空墙是否写入一张欢迎便签(说明快捷键与用法)。 |
67
85
 
86
+ `notesDir` 指到别处时,插件只会在那里读写 `.md`,不会自己去动旧目录。**不要把两个同时运行的 DSH 实例指到同一个便签目录**:每个 Host 在启动时把便签读进内存并把它当作权威缓存,两个进程各写各的整份文件,会互相覆盖而不是合并 —— 想共用一份便签,请用导入/导出或 Git 同步。
87
+
68
88
  ## 安装
69
89
 
70
90
  开发与测试完成后,**由用户本人**在 DSH Desktop Client 或 Web UI 的 **Plugins / 插件管理**界面选择来源并确认安装、启用,开发者或 agent 不在用户 profile 中代装。
@@ -99,10 +119,8 @@ DSH `0.2.2` 线起,插件页有官方的**版本**区块(`listVersions` / `u
99
119
 
100
120
  - **回滚**:npm 版本不可覆盖。故障版本用 `npm deprecate` 标记并发布新的修复版本;用户在插件管理界面
101
121
  移除故障 bundle 后重装已知可用的版本(若界面不支持指定旧版,需由用户决定恢复渠道)。
102
- - **数据兼容**:数据域带 `version` 字段,向后兼容只发生在同版本。跨版本降级前先备份
103
- `$DSH_HOME/storages` 下的该域目录。画布摆位是本版本新增的可选字段,旧便签读入时 `layout` 为
104
- `null`,由界面按 id 推导一个预览位置,因此**降级不会因为缺字段而报错**。
105
- - **卸载**:见 [UNINSTALL.md](UNINSTALL.md)。卸载插件**不会**自动删除便签数据。
122
+ - **数据兼容**:0.8.0 起便签是 `$DSH_HOME/sticky-notes/` 下的 `.md` 文件,不再是 storage domain,所以**回滚/备份都是普通的文件拷贝**:降级前把 `sticky-notes/` 整个目录复制一份即可。0.7.x 的旧 domain 在升级后仍然原样保留,回装 0.7.x 会直接读到它(详见[从 0.7 升级](#从-07-升级))。
123
+ - **卸载**:见 [UNINSTALL.md](UNINSTALL.md)。卸载插件**不会**自动删除便签文件。
106
124
 
107
125
  ## 显示元数据(插件卡片与详情页)
108
126
 
@@ -138,7 +156,10 @@ node scripts/preview.mjs check # 离线校验预览图与 locale 元数据(n
138
156
 
139
157
  ## 已知限制
140
158
 
141
- - 便签墙是速记板:正文上限 4000 字符、标题 120 字符、标签 8 个,均为硬限制。
159
+ - 便签墙是速记板:正文上限 **20 万字符**、标题 120 字符、标签 8 个。20 万是**资源护栏**(防止一条病态的长文本把 Host 拖垮),不是产品定位 —— 一条便签可以是一篇短文。
160
+ - 单个便签文件超过 **4 MiB** 时会被**跳过、不读入**(在 `readdir`/`stat` 阶段就拒掉,不交给解析器),并在 Host 日志里留一行说明。这是防止有人往目录里丢一个 200 MB 的文件把墙拖死,不是正常的便签尺寸。
161
+ - frontmatter 写坏(例如手改或模型改错了 YAML 行)**不会丢便签**:卡片照常显示、正文照常渲染,属性退化成默认值(黄色、未置顶、未归档、无标签、无摆位),并挂一个「元数据异常」角标;整份文件内容也不会被当成正文以外的东西丢弃。由**更新版本**写出的 frontmatter(`schema` 比本版本新)同样会读成一张带角标的卡片,并保留本版本看不懂的字段。
162
+ - **agent 改便签文件的批准成本**:读不需要批准,但原生 `edit`/`write` 在 `workspace-write` 下第一次会被拒绝一次,需要逐次调用带 `danger-full-access` 与理由,除非把便签目录加进 profile 的 `additionalWritableRoots`。这是有意的安全边界,别期望「agent 随手就能改」。
142
163
  - **Markdown 是刻意的子集**,不是完整 CommonMark:支持标题(`#`–`####`)、段落与换行、粗体/斜体/删除线、
143
164
  行内 `` `code` ``、`` ``` ``/`~~~` 代码块、有序/无序列表、`- [ ]` 复选、引用、分隔线、管道表格、
144
165
  http(s)/mailto 链接。**不支持**嵌套列表缩进、图片、脚注、任务列表交互(复选框是只读字形)。
@@ -146,13 +167,13 @@ node scripts/preview.mjs check # 离线校验预览图与 locale 元数据(n
146
167
  - 卡片宽度只有小/中/大**三档预设**,不支持任意拖拽调整宽度;拖动会保留卡片原有的轻微倾角。
147
168
  - 整理是 O(n) 的螺旋放置 + 网格碰撞检测;便签上限 400 张,超出视野的墙需要自己平移或缩小。
148
169
  - 画布是二维平面:没有分组、图层、连线或吸附对齐;也不支持双指旋转或触屏捏合之外的手势。
149
- - 自动取景有可读性下限(50%):便签很多时整面墙不会全部挤进视野,而是居中显示、需要平移查看。中心区域是固定留白,整理不会把卡片放在问候语和记录框下面。
150
- - 便签的位置由 Host 保存;同一面墙在两个窗口同时打开时,各自渲染自己的快照,不会实时推送另一个窗口的拖动结果。
170
+ - 自动取景有可读性下限(42%):便签很多时整面墙不会全部挤进视野,而是居中显示、需要平移查看。整理不会把卡片放在问候语和记录框下面;平移到别处再新建时,落点也会避开记录框当前所在的位置。
171
+ - 便签的位置由 Host 保存;同一面墙在两个窗口同时打开时,各自渲染自己的快照,不会实时推送另一个窗口的拖动结果 —— 但窗口重新获得焦点/重新可见时会重新拉取,所以不会长期停在旧状态。
151
172
  - 归档便签不占 `maxNotes` 名额,但恢复它们会占名额;名额已满时恢复会被拒绝而不是悄悄超限。
152
173
  - 「清空归档」是永久删除,不可撤销。
153
174
  - 批量归档/删除要么全部生效,要么一条都不改:请求里含一个不存在的 id 时整批被拒绝。
154
- - 多窗口同时打开时会各自拉取快照;Host 是唯一事实源,但界面不会实时推送其他窗口的改动。
155
- - 本版本仅在 DSH `0.2.1-rc.5` 上做过真实挂载验证,未宣称兼容其他 DSH 版本。
175
+ - 目录里的非便签文件(不叫 `<合法 id>.md` 的、子目录、`*.md.tmp` 残片)会被忽略而不是当成便签;写入中断留下的临时文件最多占一点磁盘,不会变成重复便签。
176
+ - 本版本仅在 DSH `0.2.2-rc.1` 上做过真实挂载验证,未宣称兼容其他 DSH 版本。
156
177
 
157
178
  ## 兼容性
158
179
 
package/UNINSTALL.md CHANGED
@@ -4,16 +4,26 @@ The user removes this bundle in their DSH Desktop Client or Web UI **Plugins** m
4
4
 
5
5
  ## What removal does and does not touch
6
6
 
7
- Removing the package removes its bundle layer, so the sidebar entry, the wall page, the `/api/skillre-sticky-wall/execute` route and the optional `sticky_wall` tool all disappear with it. **Note data is not removed.**
7
+ Removing the package removes its bundle layer, so the sidebar entry, the wall page, the `/api/skillre-sticky-wall/execute` route and the optional `sticky_wall` tool all disappear with it. **The notes are not removed.**
8
8
 
9
- - The notes live in the storage domain `skillre_sticky_wall`, which the profile's storage backend owns. For the shipped profile this is a directory under `$DSH_HOME/storages`; the exact path is decided by the `storage-json` row's `root` and the domain's own directory naming.
10
- - Reinstalling the same version reuses that data, because the domain name and version are unchanged.
11
- - A user who wants the data gone can remove that domain directory while DSH is stopped. That is a user action, and it is irreversible — back it up first if the notes might matter.
12
- - Because a reinstall resolves the same domain name, deleting the directory while DSH is running is not supported: stop the app, delete, then start again.
9
+ - The notes are the user's own files: one `.md` per note in the notes directory. By default that is **`$DSH_HOME/sticky-notes/`**, falling back to `~/.dsh/sticky-notes/` when DSH sets no `DSH_HOME`; a configured `notesDir` moves it anywhere, including under `~/`.
10
+ - Nothing in that directory is owned by the plugin in a way that requires it to be present. Each file is ordinary Markdown with a frontmatter block at the top, so after uninstalling they can still be opened, searched, copied and version-controlled with any editor or tool.
11
+ - Reinstalling the same or a newer version reads that same directory again and rebuilds the wall from it, placement included (placement lives in the frontmatter).
12
+ - A user who wants the files gone can delete the notes directory while DSH is stopped. That is a user action, it is irreversible, and it is the only thing that removes the notes — back it up first if they might matter.
13
+
14
+ ## The legacy storage domain may still be there
15
+
16
+ An install that was upgraded from 0.7.x still has the old storage-domain records at **`$DSH_HOME/storages/skillre_sticky_wall/`** (the exact path is decided by the profile's `storage-json` `root`). The 0.8.0 upgrade copies those notes into `.md` files but deliberately **never deletes the domain**, so a rollback is possible.
17
+
18
+ Once the user is satisfied that the `.md` notes are complete, that leftover directory may be deleted by the user — it is dead weight, and deleting it is the final step of the migration rather than part of uninstalling. Until then, leaving it costs only disk space; nothing reads it except a 0.7.x install.
13
19
 
14
20
  ## Rollback across versions
15
21
 
16
- The domain declares `version: 1`. A downgrade to a build that declares a different version fails loudly at domain open (`version-mismatch` from the storage backend) instead of silently rewriting notes. Before downgrading, copy the domain directory so the previous notes can be restored.
22
+ Notes are plain files now, so data rollback is a file copy: before downgrading, copy the whole notes directory somewhere safe.
23
+
24
+ - **0.8.0 → 0.7.x**: stop DSH, move the `sticky-notes/` directory aside (do not delete it), then install the 0.7.x build. It reads the legacy domain, which the upgrade left untouched. The `.md` files stay on disk and are picked up again if the user returns to 0.8.0.
25
+ - **0.7.x → 0.8.0**: automatic, on first start — see the migration section of the README. A failed migration writes nothing and the wall still opens.
26
+ - A note file written by a **newer** build still loads: it renders with a "metadata issue" badge, keeps every frontmatter key this build does not understand, and writes them back on the next save. That is why an accidental downgrade warns instead of destroying notes — but the newer keys are carried, not interpreted, so move forward again rather than editing that note with an older build.
17
27
 
18
28
  ## Temporary development installs
19
29
 
@@ -23,4 +33,9 @@ If the interface cannot start, arrange user-authorized recovery through the appl
23
33
 
24
34
  ## Leftover files an installed build can leave behind
25
35
 
26
- None by design. The plugin writes no file of its own outside the storage domain, registers no timer, and holds no process. The one residue worth knowing is the note data described above, which deliberately outlives the plugin.
36
+ - The **notes** described above, which deliberately outlive the plugin.
37
+ - A **`migration.json`** marker inside the notes directory, written once after a successful migration. It records what happened; deleting it is harmless but pointless.
38
+ - The **legacy domain directory** under `$DSH_HOME/storages/skillre_sticky_wall/`, if the install was upgraded from 0.7.x.
39
+ - A `<id>.md.tmp` file, only if a write was interrupted by a crash mid-save. It is ignored on load (it is not named like a note) and can be deleted.
40
+
41
+ Beyond those, the plugin writes nothing, registers no timer that outlives it, and holds no process.
@@ -2,9 +2,86 @@
2
2
  "schemaVersion": 1,
3
3
  "package": "@skillre/dsh-plugin-sticky-wall",
4
4
  "verified": [
5
+ {
6
+ "dsh": "0.2.2-rc.2",
7
+ "verifiedAt": "2026-11-13",
8
+ "result": "passed",
9
+ "checks": [
10
+ "dsh-version",
11
+ "profile-template-created",
12
+ "profile-tarball-install",
13
+ "packed-dependency-and-selection",
14
+ "dump-config",
15
+ "packed-payload-present",
16
+ "bounded-startup",
17
+ "api-list",
18
+ "api-create",
19
+ "api-update",
20
+ "api-move",
21
+ "api-move-clamped",
22
+ "api-move-bounds",
23
+ "api-arrange",
24
+ "api-archive",
25
+ "api-archive-hides-note",
26
+ "storage-persistence-across-restart",
27
+ "storage-persistence-layout",
28
+ "api-delete",
29
+ "api-delete-verified",
30
+ "api-auth-fence",
31
+ "browser",
32
+ "browser-shell-overlays-dismissed",
33
+ "browser-sidebar-entry-present",
34
+ "browser-sidebar-click-attempts",
35
+ "browser-sidebar-entry-selects-panel",
36
+ "browser-wall-page-mounted",
37
+ "browser-welcome-note-seeded",
38
+ "browser-zh-copy",
39
+ "browser-composer-opens",
40
+ "browser-composer-save-creates-note",
41
+ "browser-pin-action-sorts-note-first",
42
+ "browser-search-filters-wall",
43
+ "browser-archive-hides-note",
44
+ "browser-show-archived-toggle",
45
+ "browser-note-persists-across-ui-reload",
46
+ "browser-canvas-positions-cards-absolutely",
47
+ "browser-canvas-tidy-repacks-the-wall",
48
+ "browser-canvas-tidy-leaves-no-overlap",
49
+ "browser-canvas-camera-frames-the-wall-centre",
50
+ "browser-canvas-camera-is-a-transform-not-scroll",
51
+ "browser-canvas-drag-persists-placement",
52
+ "browser-canvas-drag-keeps-rotation",
53
+ "browser-canvas-drag-on-paper-pans-the-camera",
54
+ "browser-canvas-wheel-zoom-keeps-the-pointer-anchored",
55
+ "browser-canvas-reset-frames-the-whole-wall",
56
+ "browser-canvas-large-wall-is-a-centred-cluster",
57
+ "browser-canvas-centrepiece-is-at-the-middle",
58
+ "browser-canvas-tidy-keeps-the-centre-clear",
59
+ "browser-canvas-centrepiece-stays-put-while-panning",
60
+ "browser-centre-capture-creates-a-note",
61
+ "browser-centre-capture-lands-visible-and-clear-of-the-field",
62
+ "browser-no-card-covers-the-centrepiece",
63
+ "browser-capture-on-a-panned-wall-stays-clear-of-the-field",
64
+ "browser-capture-on-a-zoomed-wall-stays-clear-of-the-field",
65
+ "browser-canvas-fills-the-page-with-a-floating-dock",
66
+ "browser-canvas-large-wall-screenshot",
67
+ "browser-card-body-renders-markdown",
68
+ "browser-grid-view-renders-notes",
69
+ "browser-list-view-renders-rows",
70
+ "browser-theme-switches-note-palette",
71
+ "browser-no-uncaught-errors"
72
+ ],
73
+ "evidence": "docs/evidence/isolated-mount-0.8.0.json",
74
+ "note": "0.8.0 storage change: notes are now one `.md` file per note under the notes directory (default `$DSH_HOME/sticky-notes/`) instead of storage-domain JSON records. The `storage-persistence-across-restart` and `storage-persistence-layout` checks above were RE-RUN against the new file backend in this packed install: they now assert that notes survive a restart as `.md` files with their attributes, not as domain records. The earlier 0.2.2-rc.1 record predates that change and describes the retired backend.",
75
+ "pending": [
76
+ "desktop-client"
77
+ ],
78
+ "pendingDetail": "Verified in a standalone DSH Web profile. The Electron Desktop Client was not exercised: its profile is application-managed and cannot be driven by this CLI harness.",
79
+ "browserEvidence": "docs/evidence/ui-verification.json",
80
+ "browserChecks": 40
81
+ },
5
82
  {
6
83
  "dsh": "0.2.2-rc.1",
7
- "verifiedAt": "2026-11-09",
84
+ "verifiedAt": "2026-11-10",
8
85
  "result": "passed",
9
86
  "checks": [
10
87
  "dump-config",
@@ -54,9 +131,11 @@
54
131
  "browser-centre-capture-lands-visible",
55
132
  "browser-dock-no-overflow",
56
133
  "browser-dock-menu-show-archived",
57
- "browser-wall-is-a-ring"
134
+ "browser-wall-is-a-ring",
135
+ "browser-capture-clear-of-field-on-panned-wall",
136
+ "browser-capture-clear-of-field-on-zoomed-wall"
58
137
  ],
59
- "notes": "Packed tarball 0.2.0 installed into an owned, disposable, non-Desktop web profile created from the shipped template (DSH 0.2.2-rc.1). dsh --profile <test> --dump-config composed the bundle row; a bounded real startup served the Web app; the authenticated browser transport exercised the exact /api/skillre-sticky-wall/execute route: list, create, update, move (placement echoed back without bumping updatedAt), an out-of-bounds move CLAMPED into the world while a non-finite one is refused as sticky-wall/bad-request, arrange, archive, delete, plus storage persistence of both the note and its canvas placement across a full restart, and an unauthenticated request returning 401. Cleanup stopped every owned process, removed the owned profile root and verified it was gone. The real DSH Web UI was then driven in headless Chromium against a FRESH owned profile: the 便签墙 sidebar entry appeared and selected the panel (the shell's own preview-notice mask was dismissed first, otherwise it swallows pointer input), the wall mounted with the seeded welcome note, the composer created a note whose Markdown body rendered as strong/code/list elements with no literal markers left, pin moved it first, search filtered to it, archive hid it from the default wall, the archived toggle showed it again, the note survived a full page reload, canvas cards were absolutely positioned from stored layouts, a real pointer drag wrote a new placement through the Host, 整理 repacked the wall and left NO overlapping cards, grid and list views rendered the same note set, and the note palette switched between light and dark. 24/24 UI assertions passed with no uncaught errors. Cleanup stopped the harness, killed Chrome, removed both the owned profile and the Chrome scratch directory, and verified they were gone. The display contract was verified offline: meta.detail resolves to docs/DETAIL*.md, each carries exactly one banner image at the 640x300 ratio, and both SVGs render (evidence PNGs committed). Two real defects were found and fixed during this verification: card heights were under-estimated for CJK text (so the tidy pass overlapped cards), and arrange packed only the live set (so an archived visible card stayed on top of tidied ones). A post-review pass fixed four defects the independent review found and proved each with a test that fails when the fix is reverted: (1) the height estimate charged a long title a flat 1.4 lines, so a 120-char CJK title estimated 104px against a rendered ~244px and tidy overlapped; the title and tag pills are now measured by columns. (2) The packer silently clamped cards past the world coordinate limit, pinning hundreds to one edge; the shelf width now scales with the wall and a 300-card worst case is asserted overlap-free. (3) Every drag wrote rotate: 0, destroying the tilt tidy applied; the drag now carries rotation through and the UI harness asserts it. (4) Derived preview positions were indexed off the filtered list, so legacy notes jumped while typing in the search box; the index now comes from the unfiltered snapshot. Rotation is also budgeted into the shelf gap, and the transport clamps instead of rejecting an out-of-bounds drag. 0.2.1 makes the drag direct: the canvas card no longer transitions its transform (which turned every per-frame write into an animation target and made the card trail the pointer), the drag flag moved from React state to a node attribute so pressing no longer re-renders the wall, pointer moves are coalesced into one write per animation frame, the pointer loop is registered once instead of per press, and the hover lift no longer overwrites the drag transform on the canvas. The UI harness caught a regression in that rewrite (the drop cleared the inline transform and stripped the card's tilt) and the fix is covered by a test. 0.3.0 gives the wall a centre and makes the canvas direct. Tidy now packs a phyllotaxis spiral centred on the world origin with a real spatial-grid collision check (no shelf estimate), and the finished disc is re-centred on its centre of mass; the camera opens on that middle and frames the whole wall, capped at 100%. The canvas became a clipping viewport with one transform-driven world instead of a padded scroll container, so panning and zooming cost zero React renders and dragging a card can no longer move the wall under it. Pan is drag-on-paper or wheel, zoom is ctrl/cmd+wheel anchored on the pointer, and reset re-frames the wall. The drop is optimistic: the card lands on its final world position before the Host round-trip. Cards are memoized and note objects are reconciled by identity, the per-note full-size wrapper element is gone, and body clamping follows the width preset. Verified in the real DSH Web UI with 31/31 assertions on a fresh owned profile, including a 14-note wall that tidies into a centred disc with zero overlaps (aspect ratio 0.94) and is framed at 54% by the camera, a real pointer drag that persists its placement and keeps its rotation, a real drag on empty paper that pans the camera by exactly the pointer delta, a wheel zoom that keeps the world point under the cursor fixed to under 2px, and a reset that re-frames the whole wall. The harness itself caught two real defects during this verification: the wheel listener was bound to a canvas node that did not exist yet while the wall was loading (so zoom silently did nothing), and a pan that ended inside a single animation frame was dropped entirely. Both are fixed and asserted. 0.4.0 turns the wall into a centre-anchored board. The tidy pass now packs a phyllotaxis RING that leaves a clear disc (CENTRE_RADIUS, measured to each card's nearest EDGE, not its centre) at the middle, and the re-centring shift is applied only when it preserves that reserve. The wall's middle is now its centrepiece: a time-aware greeting, a running tally and an always-available quick-capture field, rendered as a screen-space overlay that stays put under pan and zoom. The header and toolbar rows are gone — the canvas fills the whole window and every control lives in one floating dock along the bottom. Auto-framing measures the RENDERED card boxes from the DOM instead of deriving them, is capped at 100% and floored at 50% for legibility, and runs one animation frame after the reconcile so tidy frames the wall it actually produced. Canvas cards are rendered at exactly the height the Host estimated, which is what makes the packer's collision geometry true by construction. Verified in the real DSH Web UI with 36/36 assertions: the centrepiece sits at the exact viewport middle and does not move while panning, tidy leaves the centre clear with zero card overlaps, a 14-note wall tidies to a centred ring (offset 1,1; aspect 1.01), quick capture creates a note and clears the field, the canvas covers 100% of the page with a single-row dock, and a real drag, a paper pan and a pointer-anchored wheel zoom all behave. The harness caught four real defects during this pass: the wheel listener bound to a canvas that did not exist yet, a same-frame pan being dropped, tidy consuming a fit request against the pre-tidy bounds, and a fit floor that shrank a large wall to unreadable size. 0.6.0 re-verified on the same DSH line: contour packing replaces ring packing (see CHANGELOG 0.6.0); the packed 0.6.0 tarball mounts, composes, boots and passes the full API suite in an owned isolated profile, and the 38-check real-UI run passes.",
138
+ "notes": "Packed tarball 0.2.0 installed into an owned, disposable, non-Desktop web profile created from the shipped template (DSH 0.2.2-rc.1). dsh --profile <test> --dump-config composed the bundle row; a bounded real startup served the Web app; the authenticated browser transport exercised the exact /api/skillre-sticky-wall/execute route: list, create, update, move (placement echoed back without bumping updatedAt), an out-of-bounds move CLAMPED into the world while a non-finite one is refused as sticky-wall/bad-request, arrange, archive, delete, plus storage persistence of both the note and its canvas placement across a full restart, and an unauthenticated request returning 401. Cleanup stopped every owned process, removed the owned profile root and verified it was gone. The real DSH Web UI was then driven in headless Chromium against a FRESH owned profile: the 便签墙 sidebar entry appeared and selected the panel (the shell's own preview-notice mask was dismissed first, otherwise it swallows pointer input), the wall mounted with the seeded welcome note, the composer created a note whose Markdown body rendered as strong/code/list elements with no literal markers left, pin moved it first, search filtered to it, archive hid it from the default wall, the archived toggle showed it again, the note survived a full page reload, canvas cards were absolutely positioned from stored layouts, a real pointer drag wrote a new placement through the Host, 整理 repacked the wall and left NO overlapping cards, grid and list views rendered the same note set, and the note palette switched between light and dark. 24/24 UI assertions passed with no uncaught errors. Cleanup stopped the harness, killed Chrome, removed both the owned profile and the Chrome scratch directory, and verified they were gone. The display contract was verified offline: meta.detail resolves to docs/DETAIL*.md, each carries exactly one banner image at the 640x300 ratio, and both SVGs render (evidence PNGs committed). Two real defects were found and fixed during this verification: card heights were under-estimated for CJK text (so the tidy pass overlapped cards), and arrange packed only the live set (so an archived visible card stayed on top of tidied ones). A post-review pass fixed four defects the independent review found and proved each with a test that fails when the fix is reverted: (1) the height estimate charged a long title a flat 1.4 lines, so a 120-char CJK title estimated 104px against a rendered ~244px and tidy overlapped; the title and tag pills are now measured by columns. (2) The packer silently clamped cards past the world coordinate limit, pinning hundreds to one edge; the shelf width now scales with the wall and a 300-card worst case is asserted overlap-free. (3) Every drag wrote rotate: 0, destroying the tilt tidy applied; the drag now carries rotation through and the UI harness asserts it. (4) Derived preview positions were indexed off the filtered list, so legacy notes jumped while typing in the search box; the index now comes from the unfiltered snapshot. Rotation is also budgeted into the shelf gap, and the transport clamps instead of rejecting an out-of-bounds drag. 0.2.1 makes the drag direct: the canvas card no longer transitions its transform (which turned every per-frame write into an animation target and made the card trail the pointer), the drag flag moved from React state to a node attribute so pressing no longer re-renders the wall, pointer moves are coalesced into one write per animation frame, the pointer loop is registered once instead of per press, and the hover lift no longer overwrites the drag transform on the canvas. The UI harness caught a regression in that rewrite (the drop cleared the inline transform and stripped the card's tilt) and the fix is covered by a test. 0.3.0 gives the wall a centre and makes the canvas direct. Tidy now packs a phyllotaxis spiral centred on the world origin with a real spatial-grid collision check (no shelf estimate), and the finished disc is re-centred on its centre of mass; the camera opens on that middle and frames the whole wall, capped at 100%. The canvas became a clipping viewport with one transform-driven world instead of a padded scroll container, so panning and zooming cost zero React renders and dragging a card can no longer move the wall under it. Pan is drag-on-paper or wheel, zoom is ctrl/cmd+wheel anchored on the pointer, and reset re-frames the wall. The drop is optimistic: the card lands on its final world position before the Host round-trip. Cards are memoized and note objects are reconciled by identity, the per-note full-size wrapper element is gone, and body clamping follows the width preset. Verified in the real DSH Web UI with 31/31 assertions on a fresh owned profile, including a 14-note wall that tidies into a centred disc with zero overlaps (aspect ratio 0.94) and is framed at 54% by the camera, a real pointer drag that persists its placement and keeps its rotation, a real drag on empty paper that pans the camera by exactly the pointer delta, a wheel zoom that keeps the world point under the cursor fixed to under 2px, and a reset that re-frames the whole wall. The harness itself caught two real defects during this verification: the wheel listener was bound to a canvas node that did not exist yet while the wall was loading (so zoom silently did nothing), and a pan that ended inside a single animation frame was dropped entirely. Both are fixed and asserted. 0.4.0 turns the wall into a centre-anchored board. The tidy pass now packs a phyllotaxis RING that leaves a clear disc (CENTRE_RADIUS, measured to each card's nearest EDGE, not its centre) at the middle, and the re-centring shift is applied only when it preserves that reserve. The wall's middle is now its centrepiece: a time-aware greeting, a running tally and an always-available quick-capture field, rendered as a screen-space overlay that stays put under pan and zoom. The header and toolbar rows are gone — the canvas fills the whole window and every control lives in one floating dock along the bottom. Auto-framing measures the RENDERED card boxes from the DOM instead of deriving them, is capped at 100% and floored at 50% for legibility, and runs one animation frame after the reconcile so tidy frames the wall it actually produced. Canvas cards are rendered at exactly the height the Host estimated, which is what makes the packer's collision geometry true by construction. Verified in the real DSH Web UI with 36/36 assertions: the centrepiece sits at the exact viewport middle and does not move while panning, tidy leaves the centre clear with zero card overlaps, a 14-note wall tidies to a centred ring (offset 1,1; aspect 1.01), quick capture creates a note and clears the field, the canvas covers 100% of the page with a single-row dock, and a real drag, a paper pan and a pointer-anchored wheel zoom all behave. The harness caught four real defects during this pass: the wheel listener bound to a canvas that did not exist yet, a same-frame pan being dropped, tidy consuming a fit request against the pre-tidy bounds, and a fit floor that shrank a large wall to unreadable size. 0.6.0 re-verified on the same DSH line: contour packing replaces ring packing (see CHANGELOG 0.6.0); the packed 0.6.0 tarball mounts, composes, boots and passes the full API suite in an owned isolated profile, and the 38-check real-UI run passes. STORAGE NOTE (0.8.0): the `storage-persistence-across-restart` and `storage-persistence-layout` checks above exercised the 0.7.x storage-DOMAIN backend, i.e. JSON records under `$DSH_HOME/storages/skillre_sticky_wall/`. They are deliberately NOT renamed and NOT re-claimed: no mount test has been run against the 0.8.0 build, whose storage is one `.md` file per note under `$DSH_HOME/sticky-notes/` with a one-time, staging-and-rename migration out of that same legacy domain. The 0.8.0 persistence path is therefore covered only by the test suite (`tests/store.spec.ts`, `tests/migrate.spec.ts`), not by this record, and this record is evidence for the DSH line it names and the build that was current on 2026-11-10.",
60
139
  "evidence": [
61
140
  "docs/evidence/market-install-0.2.1.json",
62
141
  "docs/evidence/ui-verification.json",
@@ -73,7 +152,7 @@
73
152
  "tests/layout.spec.ts",
74
153
  "tests/markdown.spec.tsx",
75
154
  "docs/evidence/sticky-wall-canvas-many.png",
76
- "docs/evidence/isolated-mount-0.6.0.json"
155
+ "docs/evidence/isolated-mount-0.7.0.json"
77
156
  ]
78
157
  }
79
158
  ],