ygl-trees 0.75.1 → 0.76.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/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/dist/apps/cli/src/bin.js +15 -4
- package/dist/bundle/bin.cjs +1213 -1072
- package/dist/packages/core/database/src/plugin.js +54 -0
- package/dist/packages/core/text/src/eventbus.js +35 -0
- package/dist/packages/knowledge/skills/src/skill-cmds.js +38 -5
- package/dist/packages/ops/tools/src/webui.js +27 -1
- package/dist/packages/research/pipeline/src/writes.js +6 -0
- package/dist/packages/techtree/model/src/writes.js +19 -13
- package/docs/plugin-authoring.md +19 -0
- package/llms.txt +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.76.1(2026-10-17)--ai 多 Agent 支持 + ctx.emit 桥接
|
|
4
|
+
- **skill link --ai <agent>**:一键连接到多种 AI Agent 的技能目录——pi(~/.pi/agent/skills/) · claude · cursor · windsurf · custom(--to)
|
|
5
|
+
- **ctx.emit 桥接**:eventbus 内部事件自动转发到 Cordis ctx.emit——插件可用 ctx.on("ygl") 监听(文档承诺兑现)
|
|
6
|
+
- **plugin-authoring.md**:补 ctx.on 事件监听用法
|
|
7
|
+
|
|
8
|
+
## 0.76.0(2026-10-17)Cordis 深化——生命周期+事件驱动(A2A 任务 fedc7ab9)
|
|
9
|
+
- **生命周期真实化**:DatabaseService 补 stop() 钩子(关 SQLite + 释放 .ygllock + 关 ORM);bin.ts finally 走 Service.stop() 链(fallback DB 仍手动收口);3 项单测证明 boot→stop 后资源释放
|
|
10
|
+
- **事件驱动真实化**:新建 eventbus(EventEmitter 单例);logEvent 落表后同步 emitEvent(node.unlock/kb.add/claim.resolve 等);webui SSE 升级为事件驱动即时推送(1.5s 轮询保留为兜底)
|
|
11
|
+
- **env 命名文档化**:env.ctx(fmt 输出)vs env.cordis(Cordis 运行时)——AGENTS.md 新增对照表
|
|
12
|
+
- **插件增强**:用户插件可通过 eventbus 的 onEvent/onEventKind 获得反应能力
|
|
13
|
+
|
|
3
14
|
## 0.75.1(2026-10-17)npm 包修复 hotfix——skills/ 确认进入 tarball
|
|
4
15
|
- 0.75.0 发布时 files 字段更新未被 pnpm pack 拾取(时间窗口 bug)——0.75.1 确认 12 个 skills 文件在 tarball 中
|
|
5
16
|
- 包大小:352KB → 381KB(+29KB = 9 个 SKILL.md)
|
package/README.md
CHANGED
|
@@ -163,7 +163,7 @@ agent brief 状态 + 建议动作 + 健康度(脏索引、存量
|
|
|
163
163
|
|
|
164
164
|
`skill import <SKILL.md>` 直接解析 frontmatter。
|
|
165
165
|
|
|
166
|
-
`skill link [--global]` 一键软连接到 `.agents/skills/`(DSH/Claude 等 Agent 的技能发现路径即刻可用)。
|
|
166
|
+
`skill link [--global] [--ai pi|claude|cursor|windsurf]` 一键软连接到 `.agents/skills/`(DSH/Claude 等 Agent 的技能发现路径即刻可用)。
|
|
167
167
|
|
|
168
168
|
### rel:关联织物(把研究资产挂到树节点)
|
|
169
169
|
|
package/dist/apps/cli/src/bin.js
CHANGED
|
@@ -559,12 +559,23 @@ async function main(argv) {
|
|
|
559
559
|
return 1;
|
|
560
560
|
})
|
|
561
561
|
.finally(() => {
|
|
562
|
-
// Cordis
|
|
563
|
-
//
|
|
562
|
+
// Cordis lifecycle (0.76): Services' stop() hooks clean resources.
|
|
563
|
+
// This fork has no ctx.dispose() — we call Service.stop() explicitly.
|
|
564
|
+
// DatabaseService.stop() closes SQLite + releases .ygllock + closes ORM.
|
|
564
565
|
try {
|
|
565
|
-
|
|
566
|
+
if (booted?.ctx?.database?.stop) {
|
|
567
|
+
booted.ctx.database.stop(); // service-managed DB cleanup
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
catch { /* dispose best-effort */ }
|
|
571
|
+
// Fallback path: if the service didn't take (bootApp fallback), db was
|
|
572
|
+
// constructed directly — it's not service-managed, close it here.
|
|
573
|
+
if (!booted?.ctx?.database) {
|
|
574
|
+
try {
|
|
575
|
+
db?.close();
|
|
576
|
+
}
|
|
577
|
+
catch { /* best effort */ }
|
|
566
578
|
}
|
|
567
|
-
catch { /* best effort */ }
|
|
568
579
|
});
|
|
569
580
|
}
|
|
570
581
|
// ── llms manifest: structured capability list for LLM consumption ──
|