@roarpeng/graphflow 1.7.12 → 1.7.15
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/CHANGELOG.md +42 -0
- package/README.md +107 -486
- package/dist/config/loader.js +4 -4
- package/dist/config/loader.js.map +1 -1
- package/dist/config/paths.js +1 -1
- package/dist/config/paths.js.map +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/core/agent-delegation.d.ts +25 -0
- package/dist/core/agent-delegation.d.ts.map +1 -1
- package/dist/core/agent-delegation.js +109 -1
- package/dist/core/agent-delegation.js.map +1 -1
- package/dist/core/merge-agent-insight.d.ts.map +1 -1
- package/dist/core/merge-agent-insight.js +32 -2
- package/dist/core/merge-agent-insight.js.map +1 -1
- package/dist/core/orchestrator-context.d.ts.map +1 -1
- package/dist/core/orchestrator-context.js +1 -0
- package/dist/core/orchestrator-context.js.map +1 -1
- package/dist/core/orchestrator.js +6 -1
- package/dist/core/orchestrator.js.map +1 -1
- package/dist/core/types.d.ts +2 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/graph/client-factory.d.ts.map +1 -1
- package/dist/graph/client-factory.js +14 -0
- package/dist/graph/client-factory.js.map +1 -1
- package/dist/graph/context-slicer-types.d.ts +2 -0
- package/dist/graph/context-slicer-types.d.ts.map +1 -1
- package/dist/graph/context-slicer-types.js.map +1 -1
- package/dist/graph/context-slicer.d.ts.map +1 -1
- package/dist/graph/context-slicer.js +7 -6
- package/dist/graph/context-slicer.js.map +1 -1
- package/dist/graph/file-indexer-edges.d.ts.map +1 -1
- package/dist/graph/file-indexer-edges.js +8 -4
- package/dist/graph/file-indexer-edges.js.map +1 -1
- package/dist/graph/graph-compression.d.ts +7 -0
- package/dist/graph/graph-compression.d.ts.map +1 -1
- package/dist/graph/graph-compression.js +64 -1
- package/dist/graph/graph-compression.js.map +1 -1
- package/dist/graph/graph-utils.d.ts.map +1 -1
- package/dist/graph/graph-utils.js +16 -0
- package/dist/graph/graph-utils.js.map +1 -1
- package/dist/graph/sqlite-client.d.ts +9 -0
- package/dist/graph/sqlite-client.d.ts.map +1 -1
- package/dist/graph/sqlite-client.js +66 -10
- package/dist/graph/sqlite-client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/learning/hnsw-index.d.ts +30 -1
- package/dist/learning/hnsw-index.d.ts.map +1 -1
- package/dist/learning/hnsw-index.js +134 -0
- package/dist/learning/hnsw-index.js.map +1 -1
- package/dist/skills/index.d.ts +7 -1
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +5 -1
- package/dist/skills/index.js.map +1 -1
- package/dist/surfaces/cli/index.js +34 -0
- package/dist/surfaces/cli/index.js.map +1 -1
- package/dist/surfaces/cli/output.d.ts.map +1 -1
- package/dist/surfaces/cli/output.js +2 -0
- package/dist/surfaces/cli/output.js.map +1 -1
- package/dist/surfaces/cli/runtime/env.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/env.js +4 -0
- package/dist/surfaces/cli/runtime/env.js.map +1 -1
- package/dist/surfaces/cli/runtime/graph.d.ts +55 -0
- package/dist/surfaces/cli/runtime/graph.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/graph.js +110 -1
- package/dist/surfaces/cli/runtime/graph.js.map +1 -1
- package/dist/surfaces/cli/runtime/helpers.js +1 -1
- package/dist/surfaces/cli/runtime/helpers.js.map +1 -1
- package/dist/surfaces/cli/runtime/routing.d.ts +2 -2
- package/dist/surfaces/cli/runtime/routing.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime/routing.js +19 -6
- package/dist/surfaces/cli/runtime/routing.js.map +1 -1
- package/dist/surfaces/cli/runtime/types.d.ts +17 -1
- package/dist/surfaces/cli/runtime/types.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.d.ts +1 -1
- package/dist/surfaces/cli/runtime.d.ts.map +1 -1
- package/dist/surfaces/cli/runtime.js +4 -1
- package/dist/surfaces/cli/runtime.js.map +1 -1
- package/dist/surfaces/mcp/tool-definitions.js +2 -2
- package/dist/surfaces/mcp/tool-definitions.js.map +1 -1
- package/dist/surfaces/mcp/tool-handlers.d.ts.map +1 -1
- package/dist/surfaces/mcp/tool-handlers.js +3 -1
- package/dist/surfaces/mcp/tool-handlers.js.map +1 -1
- package/dist/surfaces/trae-skill/graphflow/SKILL.md +4 -0
- package/package.json +2 -1
- package/src/surfaces/trae-skill/graphflow/SKILL.md +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.7.15] - 2026-07-28
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **检索 golden set 回归测试**:`tests/retrieval-golden.test.ts` 固定 26 条代表性查询(orchestrator / context / skill flywheel / planner 等),断言关键源文件召得回且命中率 ≥ 80%,检索质量从此有回归护栏
|
|
10
|
+
- **词干匹配**:`rankNodesForContextQuery` 对 ≥ 6 字符的查询 token 做前缀词干匹配(如 `routing` 命中 `route`),修复 "orchestrate task routing" 类查询召不回 orchestrator 的盲区
|
|
11
|
+
- **PageRank LRU 缓存**:`computePageRank` 以全图指纹(节点 + 边 + 参数)为键缓存结果(上限 8 条),重复上下文打包零重算;导出 `pageRankCacheStats` / `resetPageRankCache`
|
|
12
|
+
- **HNSW 向量索引持久化**:`getSharedVectorIndex(nodes, persistPath?)` 进程内 memo + 磁盘恢复(Float32 base64,上限 20k 向量);`OrchestrateOptions.hnswIndexPath` / `embeddingPolicy.vectorStorePath` 派生 `.hnsw` 路径,跨进程复用向量召回索引
|
|
13
|
+
- **`transport: "auto"`**:图存储自动选择——sqlite 优先(FTS5 检索、避免大仓库全文件读写放大),better-sqlite3 不可用时透明降级 JSON 文件存储;`graphflow.config.example.json` 默认改为 auto
|
|
14
|
+
- **Skill A/B 基准**:`benchmarks/run-skill-ab-benchmark.ts`(`npm run benchmark:skills`)离线确定性度量 skill 飞轮价值——hint 注入率、episode 召回率、Jaccard 相关性代理、token 开销(实测注入 100% / 召回 100% / 25.6 tok 每任务)
|
|
15
|
+
- **技能包团队共享**:`graphflow skill sync export|import [--path]` 双向同步技能包到可进 git 的 JSON 文件(默认 `.graphflow/skills/team-skills.json`),幂等再导入
|
|
16
|
+
- **飞轮贡献报告**:`graphflow skill report` / `graphflow_diagnose` 新增 flywheel 字段——skills 正/中/负分分布、topUsed、episodes pass/fail/pending/withLessons、insight decisions 计数
|
|
17
|
+
- **ATP IR 公开规范**:`docs/atp-ir-spec-v1.md` 定义 `atp-ir/1.0`——角色、AgentWorkItem/TaskNode 载荷 schema、full ATP vs simple-plan bridge ID 注册表、submit/merge 契约、兼容性规则
|
|
18
|
+
- **测试基建**:`tests/helpers/no-llm-config.ts` 隔离配置工厂(providers 空 + budget/learning/embedding/graph policy 完整,防 `loadConfigSafe` 静默回退默认配置);`tests/helpers/setup.ts` 注册进 vitest setupFiles,测试默认 2s provider/embedding 超时
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **README 重写**:新定位「编码 Agent 的上下文与记忆层」,修复旧版中文乱码(0x3F 损坏);30 秒上手、能力矩阵、10 MCP 工具表、CLI 速查、基准与 ATP 规范链接
|
|
23
|
+
- **Bridge 模式省一次 LLM 调用**:orchestrate 在 bridge(agent-delegated)模式下跳过 `plannerDraft` 的纯装饰性 LLM 调用(其结果仅用于 feedback 字符串,无下游引用)
|
|
24
|
+
- **引用边构建优化**:`file-indexer-edges` 改用 `matchAll` 流式扫描避免大中间数组,symbolIndex 为空时早退
|
|
25
|
+
- **测试环境隔离**:m7/m9/m10/m14/m16/m44/m48/m-bridge-cli-loop 全部改用显式隔离 configPath,本机 ambient 配置(真实 API key)不再把单测变成 30–60s 网络调用
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- **sqlite FTS camelCase 盲区**:FTS5 不拆 camelCase,而查询侧经 `tokenizeForIndex` 拆成子词,后缀子词永远匹配不上;schema 升级 v2(`searchtext` 列 = 原文 + 拆分子词,含 ALTER/backfill/重建 FTS/trigger 迁移)
|
|
30
|
+
- **m16 环境敏感断言**:agent 集成测试改用 mkdtemp 临时 config,`agent-delegated` 断言在任意本机环境下确定性通过
|
|
31
|
+
- **m48 文档一致性**:README 版本徽章回归,与 package.json 单一事实源对齐
|
|
32
|
+
- **lint**:`client-factory` auto 降级分支未使用变量、golden set 测试冗余 eslint-disable
|
|
33
|
+
|
|
34
|
+
## [1.7.14] - 2026-07-28
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **CI / m16**:无 LLM 时 `graphflow_plan` 返回 `mode=agent-delegated`,更新集成测试断言(修复 v1.7.13 构建失败)
|
|
39
|
+
|
|
40
|
+
## [1.7.13] - 2026-07-28
|
|
41
|
+
|
|
42
|
+
### Changed
|
|
43
|
+
|
|
44
|
+
- **`graphflow_plan` 无 LLM 也 Bridge**:默认 simple 模式在未配置 GraphFlow LLM 时返回 `mode=agent-delegated`,下发 `simple-plan-intent` + `simple-plan-decomposition` work items,由连接的 coding agent 理解任务并拆 DAG;本地启发式结果以 `suggestedNodes`(`nodesStatus=suggested`)附带,不作终稿
|
|
45
|
+
- **merge 协议**:识别 simple-plan work item ID,两步 submit 后即可 merge 出最终 plan(不与 insight 全量帽子协议混淆)
|
|
46
|
+
|
|
5
47
|
## [1.7.12] - 2026-07-28
|
|
6
48
|
|
|
7
49
|
### Fixed
|