ygl-trees 0.75.1 → 0.76.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/CHANGELOG.md +6 -0
- package/dist/apps/cli/src/bin.js +15 -4
- package/dist/bundle/bin.cjs +1242 -1147
- package/dist/packages/core/database/src/plugin.js +22 -0
- package/dist/packages/core/text/src/eventbus.js +35 -0
- 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/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.76.0(2026-10-17)Cordis 深化——生命周期+事件驱动(A2A 任务 fedc7ab9)
|
|
4
|
+
- **生命周期真实化**:DatabaseService 补 stop() 钩子(关 SQLite + 释放 .ygllock + 关 ORM);bin.ts finally 走 Service.stop() 链(fallback DB 仍手动收口);3 项单测证明 boot→stop 后资源释放
|
|
5
|
+
- **事件驱动真实化**:新建 eventbus(EventEmitter 单例);logEvent 落表后同步 emitEvent(node.unlock/kb.add/claim.resolve 等);webui SSE 升级为事件驱动即时推送(1.5s 轮询保留为兜底)
|
|
6
|
+
- **env 命名文档化**:env.ctx(fmt 输出)vs env.cordis(Cordis 运行时)——AGENTS.md 新增对照表
|
|
7
|
+
- **插件增强**:用户插件可通过 eventbus 的 onEvent/onEventKind 获得反应能力
|
|
8
|
+
|
|
3
9
|
## 0.75.1(2026-10-17)npm 包修复 hotfix——skills/ 确认进入 tarball
|
|
4
10
|
- 0.75.0 发布时 files 字段更新未被 pnpm pack 拾取(时间窗口 bug)——0.75.1 确认 12 个 skills 文件在 tarball 中
|
|
5
11
|
- 包大小:352KB → 381KB(+29KB = 9 个 SKILL.md)
|
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 ──
|