advisers 0.2.2 → 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/LICENSE +0 -0
- package/NOTICE +0 -0
- package/README-zh.md +11 -7
- package/README.md +16 -8
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/advisers.js +6347 -542
- package/index.js +1 -1
- package/lib/agent.js +529 -80
- package/lib/attachments.js +0 -0
- package/lib/audit-anchor.js +683 -0
- package/lib/backup.js +1345 -0
- package/lib/capture.js +0 -0
- package/lib/context-window.js +0 -0
- package/lib/digest.js +0 -0
- package/lib/doc-review.js +0 -0
- package/lib/egress.js +0 -0
- package/lib/error-codes.js +1373 -0
- package/lib/evidence.js +352 -43
- package/lib/fs-safe.js +347 -0
- package/lib/ical.js +0 -0
- package/lib/imap.js +6 -2
- package/lib/importers.js +0 -0
- package/lib/learning.js +0 -0
- package/lib/ledger-read.js +608 -0
- package/lib/mcp-server.js +331 -50
- package/lib/model.js +73 -1
- package/lib/node-warning-filter.js +15 -0
- package/lib/notify.js +13 -3
- package/lib/nudge.js +0 -0
- package/lib/ocr.js +29 -9
- package/lib/pdf.js +0 -0
- package/lib/pet-brief-store.js +0 -0
- package/lib/pet-brief.js +126 -64
- package/lib/receipt-verify.js +213 -15
- package/lib/relative-date.js +0 -0
- package/lib/remind.js +91 -36
- package/lib/research.js +0 -0
- package/lib/review.js +0 -0
- package/lib/routine.js +0 -0
- package/lib/safety/classifier.js +55 -2
- package/lib/safety/explain.js +0 -0
- package/lib/safety/index.js +0 -0
- package/lib/safety/redact.js +0 -0
- package/lib/safety/rules.js +28 -0
- package/lib/scheduler.js +0 -0
- package/lib/source.js +0 -0
- package/lib/sqlite.js +2302 -55
- package/lib/sync.js +398 -71
- package/lib/text-safe.js +229 -0
- package/lib/timestamp.js +29 -9
- package/lib/tos/index.js +1 -1
- package/lib/tos/manifest.json +6 -6
- package/lib/tos/privacy.zh-CN.md +12 -9
- package/lib/tos/safety.zh-CN.md +4 -3
- package/lib/tos/summary.zh-CN.md +3 -3
- package/lib/tos/terms.zh-CN.md +8 -6
- package/lib/tui/color.js +164 -0
- package/lib/tui/index.js +33 -0
- package/lib/tui/json.js +124 -0
- package/lib/tui/labels.js +50 -0
- package/lib/tui/policy.js +108 -0
- package/lib/tui/render.js +371 -0
- package/lib/tui/sanitize.js +142 -0
- package/lib/tui/text-file.js +116 -0
- package/lib/tui/width.js +577 -0
- package/lib/ui.js +0 -0
- package/lib/undo.js +0 -0
- package/lib/untrusted.js +186 -0
- package/lib/vault.js +0 -0
- package/package.json +6 -5
package/LICENSE
CHANGED
|
File without changes
|
package/NOTICE
CHANGED
|
File without changes
|
package/README-zh.md
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
# 0.
|
|
9
|
-
# 0.2.1 是当前已发布的 @latest(稳定渠道 = 默认 `latest`):
|
|
8
|
+
# 0.3.0 是 release candidate;npm @latest 仍为 0.2.3(稳定渠道 = 默认 `latest`):
|
|
10
9
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
11
10
|
# 从 checkout 运行:
|
|
12
11
|
# corepack pnpm install && corepack pnpm -r build
|
|
13
12
|
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
14
|
-
# preview/RC 构建使用 `next` 渠道(当前 `next` 也指向 0.2.
|
|
13
|
+
# preview/RC 构建使用 `next` 渠道(当前 `next` 也指向 0.2.3):
|
|
15
14
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
16
15
|
advisers soul init
|
|
17
16
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -25,7 +24,7 @@ advisers export
|
|
|
25
24
|
> 金融等专业意见;AI 输出可能出错,使用前请自行核验。禁止用于违法、侵权、欺诈、骚扰、
|
|
26
25
|
> 伪造或未标识合成内容等用途;未成年人须经监护人同意。
|
|
27
26
|
> 软件许可:PolyForm Noncommercial 1.0.0(源码可见、非 OSI 开源;商业使用须另行取得许可)。
|
|
28
|
-
> 使用前请阅读[服务条款](https://github.com/PerryLink/advisers/blob/main/docs/TOS.md)(v2026.11.
|
|
27
|
+
> 使用前请阅读[服务条款](https://github.com/PerryLink/advisers/blob/main/docs/TOS.md)(v2026.11.3)、
|
|
29
28
|
> [免责声明](https://github.com/PerryLink/advisers/blob/main/docs/DISCLAIMER.md)、
|
|
30
29
|
> [安全与内容审核说明](https://github.com/PerryLink/advisers/blob/main/docs/SAFETY.md) 与
|
|
31
30
|
> [隐私与数据流说明](https://github.com/PerryLink/advisers/blob/main/docs/PRIVACY.md)。
|
|
@@ -37,10 +36,14 @@ CLI 是**本地秘书运行时**:一个 REPL、用户账/承诺账/流程账
|
|
|
37
36
|
|
|
38
37
|
## 状态
|
|
39
38
|
|
|
40
|
-
`0.
|
|
41
|
-
|
|
39
|
+
`0.3.0` 是 release candidate(2026-11-20;npm `latest` 仍为 `0.2.3`,2026-11-18 发布)。
|
|
40
|
+
0.3.0 是「可信交付」minor:所有出网面逐 item secrecy clearance、本地审计尾锚、备份轮换/可验证恢复与
|
|
41
|
+
`doctor --repair`、200k 读路径消除 TEMP B-TREE 写放大、MCP 输出上限 + legacy 协议协商、DSH 只读账本门面、
|
|
42
|
+
机器可读契约、无 key 的确定性评测套件与 SBOM 门禁;被它取代的 0.2.4 candidate 从未发布。0.3.0 须待账号所有者
|
|
43
|
+
OTP 批准 CI staged 构建后才可安装,且只有在 6 个包 `dist.attestations` 非空后才能称为 provenance-signed。
|
|
44
|
+
完整 TUI 壳、客户/项目 CLI、邮件入口、PolicyGrant 与 MCP modern 不在 0.3.0;未交付清单见仓库 CHANGELOG。
|
|
42
45
|
|
|
43
|
-
- SQLite 账本 `~/.advisers/state.db`(JSON fallback
|
|
46
|
+
- SQLite 账本 `~/.advisers/state.db`(JSON fallback;schema v21 —— v21 增量加入客户/项目实体、无锁只读快照、增量写);
|
|
44
47
|
- soul 位于 `~/.advisers/soul.md`,人类独占;
|
|
45
48
|
- turns + 摘要 + FTS 检索;开场协议;`/resume`;
|
|
46
49
|
- 承诺账 + `commit add/ls/done`、`tick`、`snooze`、nudge outcome;
|
|
@@ -48,6 +51,7 @@ CLI 是**本地秘书运行时**:一个 REPL、用户账/承诺账/流程账
|
|
|
48
51
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
49
52
|
- `advisers-office` 提供 DOCX/XLSX/PPTX/Mermaid/draw.io/XMind builder 与 7 个模板;
|
|
50
53
|
- `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);
|
|
54
|
+
- `matter add|ls|show|rename|archive|use`(客户/项目最小闭环,`--matter` 校验);`agenda --days 1..31 --json` + 确定性 `morning` 晨报;确定性 `template quote|proposal`(DOCX/XLSX,`verify --content --template` 可复核);操作者手工证据标记为不可外部核验而非缺失;
|
|
51
55
|
- 真实 IM/Office 打开验证仍未完成。
|
|
52
56
|
|
|
53
57
|
核心与架构:
|
package/README.md
CHANGED
|
@@ -7,13 +7,12 @@ routines.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
# 0.
|
|
11
|
-
# 0.2.1 is the published @latest (stable channel = default `latest`):
|
|
10
|
+
# 0.3.0 is a release candidate; npm @latest is still 0.2.3:
|
|
12
11
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
13
12
|
# From checkout:
|
|
14
13
|
# corepack pnpm install && corepack pnpm -r build
|
|
15
14
|
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
16
|
-
#
|
|
15
|
+
# The `next` channel currently also points at 0.2.3:
|
|
17
16
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
18
17
|
advisers soul init
|
|
19
18
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -29,7 +28,7 @@ advisers export
|
|
|
29
28
|
> AI-generated content only with the required labels. Minors need guardian consent.
|
|
30
29
|
> Software licence: PolyForm Noncommercial 1.0.0 (source-available, not OSI open source;
|
|
31
30
|
> commercial use requires a separate licence). Terms:
|
|
32
|
-
> <https://github.com/PerryLink/advisers/blob/main/docs/TOS.md> (v2026.11.
|
|
31
|
+
> <https://github.com/PerryLink/advisers/blob/main/docs/TOS.md> (v2026.11.3) · Disclaimer:
|
|
33
32
|
> <https://github.com/PerryLink/advisers/blob/main/docs/DISCLAIMER.md> · Safety:
|
|
34
33
|
> <https://github.com/PerryLink/advisers/blob/main/docs/SAFETY.md> · Privacy & data-flow:
|
|
35
34
|
> <https://github.com/PerryLink/advisers/blob/main/docs/PRIVACY.md>. The local database is
|
|
@@ -44,11 +43,19 @@ turn natural language into commitments or artifacts.
|
|
|
44
43
|
|
|
45
44
|
## Status
|
|
46
45
|
|
|
47
|
-
`0.
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
`0.3.0` is a release candidate (2026-11-20; npm `latest` is still `0.2.3`, published
|
|
47
|
+
2026-11-18). It is the "trustworthy delivery" minor: per-item secrecy clearance on every
|
|
48
|
+
egress surface, a local audit tail anchor, backup rotation/verified restore and
|
|
49
|
+
`doctor --repair`, 200k-row read paths without the TEMP B-TREE write amplification, MCP
|
|
50
|
+
output caps plus legacy protocol negotiation, a read-only ledger facade for the DSH
|
|
51
|
+
adapter, machine-readable contracts, a deterministic no-key eval suite and an SBOM gate.
|
|
52
|
+
The 0.2.4 candidate it supersedes was never published. 0.3.0 becomes installable only
|
|
53
|
+
after the account owner approves the CI-staged Trusted-Publishing build, and may only be
|
|
54
|
+
called provenance-signed once all six packages show non-empty `dist.attestations`.
|
|
55
|
+
Interactive TUI shell, client/project CLI, mail entry, PolicyGrant and MCP modern are not
|
|
56
|
+
in 0.3.0; see the repository CHANGELOG for the full not-delivered list.
|
|
50
57
|
|
|
51
|
-
- SQLite ledger at `~/.advisers/state.db` (JSON fallback with `ADVISERS_STORE=json
|
|
58
|
+
- SQLite ledger at `~/.advisers/state.db` (JSON fallback with `ADVISERS_STORE=json`; schema v21 — v21 adds the additive customer/project entities — lock-free read snapshot, incremental writes);
|
|
52
59
|
- soul at `~/.advisers/soul.md`, human-owned;
|
|
53
60
|
- local REPL, `chat`, `office`, `template`, `routine`, `link`, `bridge`, `soul`, `ls`, `why`, `forget`, `export`;
|
|
54
61
|
- IntentBrief + clarification policy + readback;
|
|
@@ -59,6 +66,7 @@ the account owner's OTP approval; npm `latest` still resolves to `0.2.1` (publis
|
|
|
59
66
|
- routine draft/approve/patch/curator + active routine index + `routine_view`;
|
|
60
67
|
- 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`;
|
|
61
68
|
- `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;
|
|
69
|
+
- `matter add|ls|show|rename|archive|use` (client/project loop, `--matter` validation); `agenda --days 1..31 --json` + deterministic `morning` brief; deterministic `template quote|proposal` (DOCX/XLSX) with `verify --content --template` re-check; operator-entered evidence typed as unverifiable instead of missing;
|
|
62
70
|
- DSH bundle, email IMAP/draft, Feishu webhook, Hermes bridge; strict policy pack;
|
|
63
71
|
- real-account/WS/Office-L3 validation still pending.
|
|
64
72
|
|
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.
|
|
14
|
+
This file is shipped with the advisers@0.3.0 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
|