advisers 0.2.0 → 0.2.2
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-zh.md +10 -7
- package/README.md +8 -7
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/advisers.js +758 -113
- package/index.js +1 -1
- package/lib/attachments.js +5 -2
- package/lib/notify.js +27 -1
- package/lib/ocr.js +26 -1
- package/lib/pdf.js +8 -0
- package/lib/receipt-verify.js +24 -4
- package/lib/research.js +9 -3
- package/lib/safety/classifier.js +55 -3
- package/lib/sqlite.js +889 -125
- package/lib/sync.js +86 -10
- package/lib/timestamp.js +26 -1
- package/package.json +7 -6
package/README-zh.md
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
# 0.2.
|
|
9
|
-
#
|
|
10
|
-
# 从 npm 安装(批准后;稳定渠道 = 默认 `latest`):
|
|
8
|
+
# 0.2.2 是已 staged 到 npm @latest 的发布候选,待账号所有者 OTP 批准;
|
|
9
|
+
# 0.2.1 是当前已发布的 @latest(稳定渠道 = 默认 `latest`):
|
|
11
10
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
12
|
-
#
|
|
11
|
+
# 从 checkout 运行:
|
|
12
|
+
# corepack pnpm install && corepack pnpm -r build
|
|
13
|
+
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
14
|
+
# preview/RC 构建使用 `next` 渠道(当前 `next` 也指向 0.2.1):
|
|
13
15
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
14
16
|
advisers soul init
|
|
15
17
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -35,15 +37,16 @@ CLI 是**本地秘书运行时**:一个 REPL、用户账/承诺账/流程账
|
|
|
35
37
|
|
|
36
38
|
## 状态
|
|
37
39
|
|
|
38
|
-
`0.2.
|
|
40
|
+
`0.2.2` 是发布候选(2026-11-18),已 staged 到 npm `latest`、待账号所有者 OTP 批准;
|
|
41
|
+
批准前 npm `latest` 仍为 `0.2.1`(2026-11-17 已发布):
|
|
39
42
|
|
|
40
43
|
- SQLite 账本 `~/.advisers/state.db`(JSON fallback);
|
|
41
44
|
- soul 位于 `~/.advisers/soul.md`,人类独占;
|
|
42
45
|
- turns + 摘要 + FTS 检索;开场协议;`/resume`;
|
|
43
46
|
- 承诺账 + `commit add/ls/done`、`tick`、`snooze`、nudge outcome;
|
|
44
|
-
- `/memory`、`/week`、`/digest`、`/diff`、`/undo
|
|
47
|
+
- `/memory`、`/week`、`/digest`、`/diff`、`/undo`;CLI:`learn ls`、`learn review <id>`;
|
|
45
48
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
46
|
-
- `advisers-office` 提供 DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builder 与
|
|
49
|
+
- `advisers-office` 提供 DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builder 与 7 个模板;
|
|
47
50
|
- `advisers pet-brief`:只读脱敏 Pet Brief 投影(契约 v0.2:`schemaVersion: 2` + `displayPolicy`,默认 `private`;`--json`/`--out`/`--check [--strict]`/`--print-schema`/`--display-policy`;`secrecy >= 2` 全排除;5 分钟 TTL;v0.1 brief 按 legacy 可读;未接桌宠 UI);
|
|
48
51
|
- 真实 IM/Office 打开验证仍未完成。
|
|
49
52
|
|
package/README.md
CHANGED
|
@@ -7,14 +7,13 @@ routines.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
# 0.2.
|
|
11
|
-
#
|
|
10
|
+
# 0.2.2 is the release candidate staged to npm @latest (owner OTP pending);
|
|
11
|
+
# 0.2.1 is the published @latest (stable channel = default `latest`):
|
|
12
|
+
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
12
13
|
# From checkout:
|
|
13
14
|
# corepack pnpm install && corepack pnpm -r build
|
|
14
15
|
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
15
|
-
#
|
|
16
|
-
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
17
|
-
# Pre-release/RC builds until then:
|
|
16
|
+
# Pre-release/RC builds land on the `next` channel (currently also 0.2.1):
|
|
18
17
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
19
18
|
advisers soul init
|
|
20
19
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -45,7 +44,9 @@ turn natural language into commitments or artifacts.
|
|
|
45
44
|
|
|
46
45
|
## Status
|
|
47
46
|
|
|
48
|
-
`0.2.
|
|
47
|
+
`0.2.2` is the release candidate (2026-11-18), staged to npm `latest` and awaiting
|
|
48
|
+
the account owner's OTP approval; npm `latest` still resolves to `0.2.1` (published
|
|
49
|
+
2026-11-17):
|
|
49
50
|
|
|
50
51
|
- SQLite ledger at `~/.advisers/state.db` (JSON fallback with `ADVISERS_STORE=json`);
|
|
51
52
|
- soul at `~/.advisers/soul.md`, human-owned;
|
|
@@ -54,7 +55,7 @@ turn natural language into commitments or artifacts.
|
|
|
54
55
|
- DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builders, 7 templates, read/edit/verify in `advisers-office`;
|
|
55
56
|
- turns + session summaries + FTS search; opening protocol; `/resume`;
|
|
56
57
|
- commitment ledger + `commit add/ls/done`, `tick`, `snooze`, nudge outcomes;
|
|
57
|
-
- `/memory`, `/week`, `/digest`, `/diff`, `/undo`,
|
|
58
|
+
- `/memory`, `/week`, `/digest`, `/diff`, `/undo`; CLI: `learn ls`, `learn review <id>`;
|
|
58
59
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
59
60
|
- local agent loop with Office/file tools, `commitment_add`, `search_turns`; attachments (txt/md/docx/xlsx/pptx/pdf); optional model via `ADVISERS_API_KEY` / `ADVISERS_BASE_URL` / `ADVISERS_MODEL`;
|
|
60
61
|
- `advisers pet-brief` read-only redacted projection for the desktop-pet consumer (contract v0.2: `schemaVersion: 2` + `displayPolicy`, default `private`; `--json`/`--out`/`--check [--strict]`/`--print-schema`/`--display-policy`; `secrecy >= 2` excluded; 5-minute TTL; v0.1 briefs readable as legacy); no UI wiring yet;
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -11,7 +11,7 @@ dependency closure of the published packages ("pnpm list --prod --depth 100";
|
|
|
11
11
|
devDependencies and workspace packages excluded). Do not edit by hand; CI runs
|
|
12
12
|
"node scripts/check-licenses.mjs".
|
|
13
13
|
|
|
14
|
-
This file is shipped with the advisers@0.2.
|
|
14
|
+
This file is shipped with the advisers@0.2.2 npm package and covers the third-party production dependencies of that package only. Each dependency keeps its own license.
|
|
15
15
|
|
|
16
16
|
Optional platform-specific binaries (for example the @napi-rs/canvas builds for
|
|
17
17
|
other operating systems and CPU architectures) are installed only on a matching
|