dsh-quicknote 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ - Restore dark-mode styling with the DSH theme tokens
6
+ - Restore the notebook icon and use Quick Note / 随手记 consistently in the composer
7
+ - Add search, All/Open/Done filters, timestamps, copy and insert actions
8
+ - Add copy-all as Markdown and the primary+alt+S capture shortcut
9
+ - Record the source Session on captured notes
10
+ - Show a parked-draft receipt with undo after “save and clear draft”
11
+ - Parse `#tag` in notes and filter the list by tag
12
+ - Make delete reversible with an undo toast, including batch undo
13
+ - Insert a note into the current Session even while the page covers the conversation
14
+ - Open the notes page from the capture card with View all
15
+ - Return to the conversation from the notes page, with the Session name in the link
16
+ - Serialize note-store writes so overlapping requests cannot corrupt the JSON file
17
+ - Stack note actions under the text in narrow windows so labels no longer wrap
18
+ - Package homepage now points to the plugin documentation, not the GitHub repository
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  First release.
package/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # dsh-quicknote
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-quicknote)](https://www.npmjs.com/package/dsh-quicknote)
4
+ [![release](https://img.shields.io/github/v/release/dsh-kit/dsh-quicknote?label=release)](https://github.com/dsh-kit/dsh-quicknote/releases)
5
+
3
6
  Capture a note from the composer, keep it out of the way, and find it again on one page.
4
7
 
5
- - **From the composer**: click **Note** in the composer toolbar. The card opens with the current draft; save it
6
- as a note, or save and explicitly clear the draft.
7
- - **From the sidebar**: the Quick Note page lists everything newest-first, with done/reopen and delete.
8
+ - **From the composer**: click **Quick Note** in the composer toolbar. The card opens with the current draft; save it
9
+ as a note, save and explicitly clear the draft, or jump to the notes page with **View all**.
10
+ - **From the sidebar**: search, filter All/Open/Done or by `#tag`, copy, insert into the active draft, and mark done or
11
+ delete with an undo toast.
8
12
  - **From an agent**: `quicknote_add`, `quicknote_list`, `quicknote_done`, `quicknote_delete`.
9
13
  - **Storage**: `~/.dsh/quicknote/notes.json` — local, mode `0600`, atomic writes. No telemetry.
10
14
 
@@ -14,25 +18,26 @@ Capture a note from the composer, keep it out of the way, and find it again on o
14
18
 
15
19
  ## Install
16
20
 
17
- For development, link the working copy:
21
+ For development, link the working copy into a CLI/web profile:
18
22
 
19
23
  ```bash
20
- dsh plugin --profile <profile> add link:$PWD
24
+ dsh plugin --profile web add link:$PWD
21
25
  ```
22
26
 
23
- A published release installs by package name:
27
+ For the desktop app, use the in-app plugin page; the `desktop` profile is app-managed.
28
+
29
+ A published release installs by package name into a CLI/web profile:
24
30
 
25
31
  ```bash
26
- dsh plugin --profile <profile> add dsh-quicknote
32
+ dsh plugin --profile web add dsh-quicknote
27
33
  ```
28
34
 
29
- Desktop profiles are managed by the app: add `dsh-quicknote` to `dsh.profile.bundles` and the dependency, run
30
- `pnpm install` in the profile, then restart DSH.
35
+ For the desktop app, use its plugin page; the `desktop` profile is app-managed.
31
36
 
32
37
  ## Verify
33
38
 
34
39
  ```bash
35
- dsh --profile <profile> --dump-config | grep -A2 "id: dsh-quicknote"
40
+ dsh --profile web --dump-config | grep -A2 "id: dsh-quicknote"
36
41
  ```
37
42
 
38
43
  ## Develop
@@ -44,7 +49,7 @@ pnpm verify # format → lint → typecheck → tests → build → pack
44
49
 
45
50
  npm works too: `npm install && npm run verify`.
46
51
 
47
- - `src/host/` — store, four JSON routes and four Agent tools.
52
+ - `src/host/` — store, JSON routes and four Agent tools.
48
53
  - `src/client/` — composer button, capture card, sidebar page.
49
54
  - `lib/` — generated, committed (a `link:` install never builds).
50
55
  - `tests/` — store and client registration.
@@ -56,7 +61,8 @@ npm works too: `npm install && npm run verify`.
56
61
  - `GET /api/quicknote/notes`
57
62
  - `POST /api/quicknote/notes/create` `{ text }`
58
63
  - `POST /api/quicknote/notes/update` `{ id, done }`
59
- - `POST /api/quicknote/notes/delete` `{ id }`
64
+ - `POST /api/quicknote/notes/delete` `{ id }` (returns the removed note)
65
+ - `POST /api/quicknote/notes/restore` `{ note }`
60
66
 
61
67
  ## License
62
68
 
package/README.zh.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # dsh-quicknote
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/dsh-quicknote)](https://www.npmjs.com/package/dsh-quicknote)
4
+ [![release](https://img.shields.io/github/v/release/dsh-kit/dsh-quicknote?label=release)](https://github.com/dsh-kit/dsh-quicknote/releases)
5
+
3
6
  从输入框随手记下一条,不打断当前对话,之后在一页里找回。
4
7
 
5
- - **从输入框**:点击工具栏的 **记一下**;卡片会带上当前草稿。可以只保存笔记,也可以显式选择“保存并清空输入框”。
6
- - **从侧栏**:随手记页面按时间倒序列出全部笔记,可完成、重新打开、删除。
8
+ - **从输入框**:点击工具栏的 **随手记**;卡片会带上当前草稿。可以只保存笔记、显式选择“保存并清空输入框”,或点卡片右上角的 **查看全部** 直接打开笔记页。
9
+ - **从侧栏**:随手记页面支持搜索、全部/未完成/已完成或 `#标签` 筛选、复制、插入当前草稿,以及完成或删除(删除后可撤销)。
7
10
  - **从 Agent**:`quicknote_add`、`quicknote_list`、`quicknote_done`、`quicknote_delete`。
8
11
  - **存储**:`~/.dsh/quicknote/notes.json`,本地、权限 `0600`、原子写入,无遥测。
9
12
 
@@ -13,24 +16,26 @@
13
16
 
14
17
  ## 安装
15
18
 
16
- 开发时链接工作副本:
19
+ 开发时链接到 CLI/web profile:
17
20
 
18
21
  ```bash
19
- dsh plugin --profile <profile> add link:$PWD
22
+ dsh plugin --profile web add link:$PWD
20
23
  ```
21
24
 
22
- 发布后按包名安装:
25
+ 桌面端请使用应用内插件页;`desktop` profile 由应用管理。
26
+
27
+ 发布后按包名安装到 CLI/web profile:
23
28
 
24
29
  ```bash
25
- dsh plugin --profile <profile> add dsh-quicknote
30
+ dsh plugin --profile web add dsh-quicknote
26
31
  ```
27
32
 
28
- 桌面 profile 由应用托管:把 `dsh-quicknote` 加进 `dsh.profile.bundles` 与依赖,在 profile 里执行 `pnpm install`,重启 DSH。
33
+ 桌面端请使用应用内插件页;`desktop` profile 由应用管理。
29
34
 
30
35
  ## 验证
31
36
 
32
37
  ```bash
33
- dsh --profile <profile> --dump-config | grep -A2 "id: dsh-quicknote"
38
+ dsh --profile web --dump-config | grep -A2 "id: dsh-quicknote"
34
39
  ```
35
40
 
36
41
  ## 开发
@@ -42,7 +47,7 @@ pnpm verify # 格式 → lint → 类型 → 测试 → 构建 → 打包
42
47
 
43
48
  npm 也可用:`npm install && npm run verify`。
44
49
 
45
- - `src/host/`:存储、四个 JSON 路由、四个 Agent 工具;
50
+ - `src/host/`:存储、JSON 路由、四个 Agent 工具;
46
51
  - `src/client/`:输入框按钮、记录卡片、侧栏页面;
47
52
  - `lib/`:构建产物,提交进仓库(`link:` 安装不会构建);
48
53
  - `tests/`:存储与客户端注册测试;
@@ -54,7 +59,8 @@ npm 也可用:`npm install && npm run verify`。
54
59
  - `GET /api/quicknote/notes`
55
60
  - `POST /api/quicknote/notes/create` `{ text }`
56
61
  - `POST /api/quicknote/notes/update` `{ id, done }`
57
- - `POST /api/quicknote/notes/delete` `{ id }`
62
+ - `POST /api/quicknote/notes/delete` `{ id }`(返回被删除的笔记)
63
+ - `POST /api/quicknote/notes/restore` `{ note }`
58
64
 
59
65
  ## 许可
60
66
 
package/icon.svg CHANGED
@@ -1,4 +1,4 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none">
2
- <rect x="4" y="4" width="16" height="16" rx="4" stroke="currentColor" stroke-width="1.6"/>
3
- <path d="M8 12h8" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
2
+ <rect x="4" y="3.5" width="16" height="17" rx="3" stroke="currentColor" stroke-width="1.6"/>
3
+ <path d="M8 8h8M8 12h8M8 16h5" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
4
4
  </svg>