@getnote/cli 1.5.0 → 1.5.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/README.md +12 -2
- package/package.json +1 -1
- package/scripts/postinstall.js +0 -23
package/README.md
CHANGED
|
@@ -10,13 +10,21 @@
|
|
|
10
10
|
|
|
11
11
|
### 让本地 AI 自动完成安装(推荐)
|
|
12
12
|
|
|
13
|
-
适用于 Codex、Claude Code 和 Cursor:
|
|
13
|
+
适用于 WorkBuddy、Codex、Claude Code 和 Cursor:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
npx -y @getnote/cli@latest setup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
这条命令会把 CLI 安装到稳定的全局路径、识别本机支持的平台、安装五个原子 Skill,并引导完成一次得到大脑授权。检测到 WorkBuddy 时,会把 Skills 安装到 `~/.workbuddy/skills/`;安装完成后需要完全退出并重新打开 WorkBuddy。
|
|
20
|
+
|
|
21
|
+
如果只想安装到 WorkBuddy,可明确指定:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx -y @getnote/cli@latest setup --target workbuddy
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
安装后运行:
|
|
20
28
|
|
|
21
29
|
```bash
|
|
22
30
|
getnote doctor -o json
|
|
@@ -379,6 +387,8 @@ $ getnote search "工作日志" --limit 7 -o json
|
|
|
379
387
|
|
|
380
388
|
| 日期 | 版本 | 新能力 | 适合怎么用 |
|
|
381
389
|
|------|------|--------|------------|
|
|
390
|
+
| 2026-08-13 | **v1.5.1** | 1. 修复通过 `npx setup` 安装后命令指向临时 npm 缓存的问题<br>2. 同时提供稳定的 `getnote` / `gnote` 双命令<br>3. 自动把五个领域 Skill 安装到 WorkBuddy<br>4. 重复安装保留已有授权凭证 | 在 WorkBuddy、Codex、Claude Code 或 Cursor 中重复执行同一条安装命令即可修复或升级,不需要重新授权 |
|
|
391
|
+
| 2026-08-13 | **v1.5.0** | 1. 支持浏览、创建、移动和删除知识库目录<br>2. 笔记可直接加入指定目录,支持已有团队知识库 `TEAMSPACE` 的成员读取与管理员维护<br>3. 支持订阅抖音博主并读取博主内容<br>4. 新增录音原文、链接原文、附件、时间线、快捷笔记和会议待办等一级命令<br>5. 完善结构化结果、错误原因、短命令、`doctor` 和升级检查 | 让人和 AI 用同一套命令完成知识库整理、资料归档和深层笔记读取;失败时能识别原因,不再猜参数或把未完成任务当成成功 |
|
|
382
392
|
| 2026-08-11 | **v1.4.0** | 1. Skill 2.0 稳定执行契约<br>2. 所有子命令完整 `-h` / `--help`<br>3. `getnote update --check` 与升级引导<br>4. `--content-file` / `--stdin` 安全保存长文本 | 让独立 Skill 和 CLI 内置原子 Skills 共用同一套真实命令,降低 AI 猜参数和长内容转义失败的概率 |
|
|
383
393
|
| 2026-04-23 | **v1.1.1** | 1. 笔记内链<br>2. 保存分享链接自动变笔记 | 1. 用内链串联每天的工作日志和项目笔记,实践时间日志法<br>2. 收到别人发来的分享链接直接存入笔记 |
|
|
384
394
|
| 2026-04-16 | **v1.1.0** | 1. `getnote note share`:生成分享链接<br>2. `getnote kb live-follow`:订阅得到直播 | 1. 把笔记一键分享给朋友<br>2. 在知识库里订阅得到直播课,直播结束后 AI 摘要自动入库 |
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -75,9 +75,6 @@ async function main() {
|
|
|
75
75
|
fs.chmodSync(binaryPath, 0o755);
|
|
76
76
|
console.log(`getnote installed at ${binaryPath}`);
|
|
77
77
|
|
|
78
|
-
// `getnote` is linked directly to the downloaded binary. The compact
|
|
79
|
-
// `gnote` alias is provided by package.json and uses bin/getnote.js.
|
|
80
|
-
createSymlink(binaryPath, binaryName);
|
|
81
78
|
} catch (err) {
|
|
82
79
|
console.error('Failed to install getnote:', err.message);
|
|
83
80
|
process.exit(1);
|
|
@@ -87,23 +84,3 @@ async function main() {
|
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
main();
|
|
90
|
-
|
|
91
|
-
// Create a symlink in the npm global bin directory after download.
|
|
92
|
-
// npm only creates the symlink at install time when the file already exists;
|
|
93
|
-
// since we download the binary in postinstall, we need to do it ourselves.
|
|
94
|
-
function createSymlink(binaryPath, binaryName) {
|
|
95
|
-
try {
|
|
96
|
-
const npmPrefix = execSync('npm prefix -g', { encoding: 'utf8' }).trim();
|
|
97
|
-
const globalBin = path.join(npmPrefix, 'bin');
|
|
98
|
-
const symlinkPath = path.join(globalBin, binaryName);
|
|
99
|
-
|
|
100
|
-
if (fs.existsSync(globalBin)) {
|
|
101
|
-
try { fs.unlinkSync(symlinkPath); } catch (_) {}
|
|
102
|
-
fs.symlinkSync(binaryPath, symlinkPath);
|
|
103
|
-
console.log(`Symlink created: ${symlinkPath} -> ${binaryPath}`);
|
|
104
|
-
}
|
|
105
|
-
} catch (err) {
|
|
106
|
-
// Non-fatal: user can run the binary directly or add it to PATH manually
|
|
107
|
-
console.warn(`Could not create symlink (you may need to add ${path.dirname(binaryPath)} to PATH): ${err.message}`);
|
|
108
|
-
}
|
|
109
|
-
}
|