@chiimagnus/applebookscli 0.2.1 → 0.3.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.md +12 -2
- package/README.zh.md +12 -2
- package/bin/applebookscli +0 -0
- package/libexec/applebookscli/applebookscli-pdf-worker +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ English | [简体中文](README.zh.md)
|
|
|
13
13
|
- Extract PDF highlights and notes.
|
|
14
14
|
- Export JSON, CSV, Markdown, or HTML.
|
|
15
15
|
- **Safely update notes and manage collections, with an automatic backup before writes.**
|
|
16
|
+
- Review the last 24 hours of AppleBooksCLI write/sync tool calls through local operation history.
|
|
16
17
|
- Provide a standard `applebookscli` Agent Skill in English and Chinese.
|
|
17
18
|
|
|
18
19
|
## Requirements
|
|
@@ -27,8 +28,6 @@ npm install --global @chiimagnus/applebookscli@latest
|
|
|
27
28
|
npx -y skills@1.5.23 add "chiimagnus/AppleBooksCLI#v$(applebookscli --version)" --skill applebookscli --global
|
|
28
29
|
```
|
|
29
30
|
|
|
30
|
-
For the Chinese Skill, replace `applebookscli` with `applebookscli-zh` in the second command.
|
|
31
|
-
|
|
32
31
|
Future npm upgrades keep an Agent Skills CLI-managed Skill on the same CLI release tag automatically. `--ignore-scripts` disables that automatic update.
|
|
33
32
|
|
|
34
33
|
## Help
|
|
@@ -144,6 +143,17 @@ applebookscli sync --json
|
|
|
144
143
|
|
|
145
144
|
`sync` only processes already pending collection/member/annotation cloud records and does not trigger the lifecycle when none are pending. Acknowledgement proves only that **this Mac** completed the Apple Books CloudKit upload; it does not prove that another device already displays the change. A post-commit `cloud_sync_failed` must not cause an automatic mutation retry, and restoring a BKLibrary snapshot is not equivalent to replaying individually flushable cloud mutations.
|
|
146
145
|
|
|
146
|
+
## Operation history
|
|
147
|
+
|
|
148
|
+
AppleBooksCLI keeps a private local history of the last 24 hours of its annotation/collection mutations, backup restores, and explicit `sync` calls. `history list` returns only summaries; `history get` is the explicit full-detail read and may contain the original note/title/details/selectors plus captured stdout/stderr.
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
applebookscli history list --json
|
|
152
|
+
applebookscli history get <history-id> --json
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
History is stored only for the current user under AppleBooksCLI's Application Support directory. AppleBooksCLI does not send it as telemetry or sync it between devices, and history is evidence of prior tool calls rather than an undo engine.
|
|
156
|
+
|
|
147
157
|
## Optional configuration
|
|
148
158
|
|
|
149
159
|
Most users do not need a configuration file. `~/.config/applebookscli/config.json` is only needed for an additional EPUB directory or to supplement title/author metadata for historical annotations.
|
package/README.zh.md
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- 提取 PDF 划线与笔记。
|
|
14
14
|
- 导出 JSON、CSV、Markdown 或 HTML。
|
|
15
15
|
- **安全修改笔记、管理藏书,并在写入前自动备份。**
|
|
16
|
+
- 通过本地 operation history 查看最近 24 小时的 AppleBooksCLI 写入/同步 tool calls。
|
|
16
17
|
- 提供标准 `applebookscli` Agent Skill,并提供英文/中文两个版本。
|
|
17
18
|
|
|
18
19
|
## 系统要求
|
|
@@ -27,8 +28,6 @@ npm install --global @chiimagnus/applebookscli@latest
|
|
|
27
28
|
npx -y skills@1.5.23 add "chiimagnus/AppleBooksCLI#v$(applebookscli --version)" --skill applebookscli-zh --global
|
|
28
29
|
```
|
|
29
30
|
|
|
30
|
-
英文 Skill 把第二条命令里的 `applebookscli-zh` 改成 `applebookscli` 即可。
|
|
31
|
-
|
|
32
31
|
以后通过 npm 升级 CLI 时,由 Agent Skills CLI 管理的 Skill 会自动跟随到相同的 CLI release tag。使用 `--ignore-scripts` 会关闭这项自动更新。
|
|
33
32
|
|
|
34
33
|
## 获取帮助
|
|
@@ -144,6 +143,17 @@ applebookscli sync --json
|
|
|
144
143
|
|
|
145
144
|
`sync` 只处理已存在的 pending collection/member/annotation cloud records;无 pending 时不触发生命周期。acknowledgement 只证明**当前 Mac** 已完成 Apple Books CloudKit upload,不等于另一台设备已经显示。post-commit `cloud_sync_failed` 不能触发自动重试;BKLibrary restore 也不等同于可逐条 flush 的 cloud mutation。
|
|
146
145
|
|
|
146
|
+
## 操作历史
|
|
147
|
+
|
|
148
|
+
AppleBooksCLI 会在本机私有保存最近 24 小时的批注/藏书 mutation、backup restore 与显式 `sync` 调用。`history list` 只返回摘要;只有显式 `history get` 才返回完整记录,其中可能包含原始 note/title/details/selector 以及捕获的 stdout/stderr。
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
applebookscli history list --json
|
|
152
|
+
applebookscli history get <history-id> --json
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
History 只存放在当前用户的 AppleBooksCLI Application Support 目录中;AppleBooksCLI 不把它作为 telemetry 上传,也不跨设备同步。它只是既往 tool call 的证据,不是 undo engine。
|
|
156
|
+
|
|
147
157
|
## 可选配置
|
|
148
158
|
|
|
149
159
|
大多数用户不需要配置文件。只有需要指定额外的 EPUB 目录,或给历史批注补充书名/作者信息时,才需要 `~/.config/applebookscli/config.json`。
|
package/bin/applebookscli
CHANGED
|
Binary file
|
|
Binary file
|