advisers 0.2.0 → 0.2.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-zh.md +8 -7
- package/README.md +7 -7
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/advisers.js +660 -90
- 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 +355 -19
- 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,12 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
# 0.2.
|
|
9
|
-
# 或安装预发布 `next` 渠道。
|
|
10
|
-
# 从 npm 安装(批准后;稳定渠道 = 默认 `latest`):
|
|
8
|
+
# 0.2.1 正在 staged 到 npm @latest,待账号所有者 OTP 批准(稳定渠道 = 默认 `latest`,批准前仍为 0.2.0):
|
|
11
9
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
12
|
-
#
|
|
10
|
+
# 从 checkout 运行:
|
|
11
|
+
# corepack pnpm install && corepack pnpm -r build
|
|
12
|
+
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
13
|
+
# preview/RC 构建使用 `next` 渠道(当前 `next` 也指向 0.2.0):
|
|
13
14
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
14
15
|
advisers soul init
|
|
15
16
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -35,15 +36,15 @@ CLI 是**本地秘书运行时**:一个 REPL、用户账/承诺账/流程账
|
|
|
35
36
|
|
|
36
37
|
## 状态
|
|
37
38
|
|
|
38
|
-
`0.2.
|
|
39
|
+
`0.2.1` 是当前发布版本(正在 staged 到 npm `latest`,待账号所有者 OTP 批准;尚未发布):
|
|
39
40
|
|
|
40
41
|
- SQLite 账本 `~/.advisers/state.db`(JSON fallback);
|
|
41
42
|
- soul 位于 `~/.advisers/soul.md`,人类独占;
|
|
42
43
|
- turns + 摘要 + FTS 检索;开场协议;`/resume`;
|
|
43
44
|
- 承诺账 + `commit add/ls/done`、`tick`、`snooze`、nudge outcome;
|
|
44
|
-
- `/memory`、`/week`、`/digest`、`/diff`、`/undo
|
|
45
|
+
- `/memory`、`/week`、`/digest`、`/diff`、`/undo`;CLI:`learn ls`、`learn review <id>`;
|
|
45
46
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
46
|
-
- `advisers-office` 提供 DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builder 与
|
|
47
|
+
- `advisers-office` 提供 DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builder 与 7 个模板;
|
|
47
48
|
- `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
49
|
- 真实 IM/Office 打开验证仍未完成。
|
|
49
50
|
|
package/README.md
CHANGED
|
@@ -7,14 +7,13 @@ routines.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
# 0.2.
|
|
11
|
-
#
|
|
10
|
+
# 0.2.1 is staged to npm @latest, pending the account owner's OTP approval
|
|
11
|
+
# (stable channel = default `latest`; 0.2.0 is what it serves until then):
|
|
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.0):
|
|
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,8 @@ turn natural language into commitments or artifacts.
|
|
|
45
44
|
|
|
46
45
|
## Status
|
|
47
46
|
|
|
48
|
-
`0.2.
|
|
47
|
+
`0.2.1` is the current release; it is staged to npm `latest` and awaits the account
|
|
48
|
+
owner's OTP approval (`0.2.0` remains what `latest` serves until then):
|
|
49
49
|
|
|
50
50
|
- SQLite ledger at `~/.advisers/state.db` (JSON fallback with `ADVISERS_STORE=json`);
|
|
51
51
|
- soul at `~/.advisers/soul.md`, human-owned;
|
|
@@ -54,7 +54,7 @@ turn natural language into commitments or artifacts.
|
|
|
54
54
|
- DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builders, 7 templates, read/edit/verify in `advisers-office`;
|
|
55
55
|
- turns + session summaries + FTS search; opening protocol; `/resume`;
|
|
56
56
|
- commitment ledger + `commit add/ls/done`, `tick`, `snooze`, nudge outcomes;
|
|
57
|
-
- `/memory`, `/week`, `/digest`, `/diff`, `/undo`,
|
|
57
|
+
- `/memory`, `/week`, `/digest`, `/diff`, `/undo`; CLI: `learn ls`, `learn review <id>`;
|
|
58
58
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
59
59
|
- 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
60
|
- `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.1 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
|