advisers 0.3.0 → 0.3.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 +11 -7
- package/README.md +21 -13
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/advisers.js +561 -63
- package/index.js +1 -1
- package/lib/customer-read.js +524 -0
- package/lib/evidence.js +233 -9
- package/lib/ledger-read.js +109 -1
- package/lib/mcp-server.js +202 -2
- package/lib/receipt-verify.js +84 -7
- package/lib/sqlite.js +135 -0
- package/lib/tui/labels.js +1 -1
- package/lib/tui/render.js +1 -1
- package/package.json +4 -4
package/README-zh.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
# 0.3.
|
|
8
|
+
# 0.3.1 已于 2026-11-20 发布;npm @latest 现为 0.3.1(稳定渠道 = 默认 `latest`):
|
|
9
9
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
10
10
|
# 从 checkout 运行:
|
|
11
11
|
# corepack pnpm install && corepack pnpm -r build
|
|
12
12
|
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
13
|
-
#
|
|
13
|
+
# `next` 渠道也指向 0.3.1:
|
|
14
14
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
15
15
|
advisers soul init
|
|
16
16
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -36,12 +36,16 @@ CLI 是**本地秘书运行时**:一个 REPL、用户账/承诺账/流程账
|
|
|
36
36
|
|
|
37
37
|
## 状态
|
|
38
38
|
|
|
39
|
-
`0.3.
|
|
40
|
-
0.3.
|
|
39
|
+
`0.3.2` 已于 2026-11-21 发布(npm `latest` = `0.3.2`;`next` 也为 `0.3.2`)。
|
|
40
|
+
0.3.2 是**功能版本**:交付面向客户的闭环(subject 回执包、`client export` 客户状态包、MCP/DSH 只读客户投影)
|
|
41
|
+
与性能收尾(`today --json --limit`、MCP 窄承诺读模型),契约只做加法、无 schema 迁移。`0.3.1` 是 0.3.0 的
|
|
42
|
+
发布面修复版(运行时不变),两者仍可按版本号安装但已被取代。运行时基线是「可信交付」feature line:所有出网面逐 item secrecy clearance、本地审计尾锚、备份轮换/可验证恢复与
|
|
41
43
|
`doctor --repair`、200k 读路径消除 TEMP B-TREE 写放大、MCP 输出上限 + legacy 协议协商、DSH 只读账本门面、
|
|
42
|
-
机器可读契约、无 key 的确定性评测套件与 SBOM
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
机器可读契约、无 key 的确定性评测套件与 SBOM 门禁;被该 line 取代的 0.2.4 candidate 从未发布。0.3.2 tarball 由 GitHub Actions OIDC/Trusted Publishing 发布,
|
|
45
|
+
带 SLSA provenance;可用 `scripts/verify-release.mjs --version 0.3.2 --tag latest --sbom artifacts/sbom.cdx.json --require-sbom`
|
|
46
|
+
校验(SBOM 由 `pnpm run sbom` 生成)。Release notes:
|
|
47
|
+
<https://github.com/PerryLink/advisers/releases/tag/v0.3.2>。完整 TUI 壳、邮件入口、PolicyGrant、MCP
|
|
48
|
+
modern 与 DSH 写账本不在 0.3.2;未交付清单见仓库 CHANGELOG。
|
|
45
49
|
|
|
46
50
|
- SQLite 账本 `~/.advisers/state.db`(JSON fallback;schema v21 —— v21 增量加入客户/项目实体、无锁只读快照、增量写);
|
|
47
51
|
- soul 位于 `~/.advisers/soul.md`,人类独占;
|
package/README.md
CHANGED
|
@@ -7,12 +7,12 @@ routines.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
# 0.3.
|
|
10
|
+
# 0.3.2 was published on 2026-11-21; npm @latest is now 0.3.2:
|
|
11
11
|
# npm i -g --registry=https://registry.npmjs.org advisers@latest advisers-office@latest
|
|
12
12
|
# From checkout:
|
|
13
13
|
# corepack pnpm install && corepack pnpm -r build
|
|
14
14
|
# ADVISERS_OFFICE_LOCAL=1 node packages/advisers/bin/advisers.js status
|
|
15
|
-
# The `next` channel
|
|
15
|
+
# The `next` channel also points at 0.3.2:
|
|
16
16
|
# npm i -g --registry=https://registry.npmjs.org advisers@next advisers-office@next
|
|
17
17
|
advisers soul init
|
|
18
18
|
advisers brief "做一份 Q4 预算 Excel,周五前给老板"
|
|
@@ -43,17 +43,25 @@ turn natural language into commitments or artifacts.
|
|
|
43
43
|
|
|
44
44
|
## Status
|
|
45
45
|
|
|
46
|
-
`0.3.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
The
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
`0.3.2` was published on 2026-11-21 (npm `latest` = `0.3.2`; `next` is also `0.3.2`). It
|
|
47
|
+
is a **feature release**: it adds the external customer loop (subject receipt packs,
|
|
48
|
+
`client export` status sheets, read-only MCP/DSH customer projections) and the
|
|
49
|
+
performance closeout (`today --json --limit`, a narrow MCP read model), with additive
|
|
50
|
+
contract changes and no schema migration. `0.3.1` was a release-metadata correction for
|
|
51
|
+
`0.3.0` with the same runtime; both remain installable by pinning but are superseded.
|
|
52
|
+
The runtime baseline is the "trustworthy delivery" feature line:
|
|
53
|
+
per-item secrecy clearance on every egress surface, a local audit tail anchor, backup
|
|
54
|
+
rotation/verified restore and `doctor --repair`, 200k-row read paths without the TEMP
|
|
55
|
+
B-TREE write amplification, MCP output caps plus legacy protocol negotiation, a read-only
|
|
56
|
+
ledger facade for the DSH adapter, machine-readable contracts, a deterministic no-key
|
|
57
|
+
eval suite and an SBOM gate. The 0.2.4 candidate superseded by that line was never
|
|
58
|
+
published. The 0.3.2 tarballs are published from GitHub Actions OIDC/Trusted Publishing
|
|
59
|
+
with SLSA provenance; verify with
|
|
60
|
+
`scripts/verify-release.mjs --version 0.3.2 --tag latest --sbom artifacts/sbom.cdx.json --require-sbom`
|
|
61
|
+
(the SBOM is generated by `pnpm run sbom`).
|
|
62
|
+
Release notes: <https://github.com/PerryLink/advisers/releases/tag/v0.3.2>. The full
|
|
63
|
+
interactive TUI shell, mail entry, PolicyGrant, MCP modern and DSH writes are not in
|
|
64
|
+
0.3.2; see the repository CHANGELOG for the full not-delivered list.
|
|
57
65
|
|
|
58
66
|
- 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);
|
|
59
67
|
- soul at `~/.advisers/soul.md`, human-owned;
|
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.3.
|
|
14
|
+
This file is shipped with the advisers@0.3.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
|