ygl-trees 0.77.2 → 0.77.3
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
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.77.3(2026-10-17)node list 位置参数 UX + 树漂移修正
|
|
4
|
+
- **UX**:node list <tree> 位置参数现在真的选中该树(此前静默忽略并回退 current_tree——巡检中实际踩中)
|
|
5
|
+
- 非树名位置参数给显式提示而非静默误导;-t 标志仍优先
|
|
6
|
+
- 树漂移修正:v2-roadmap 三个已实现节点解锁(time-travel/nl-interface/multi-workspace,138/154=90%)
|
|
7
|
+
|
|
3
8
|
## 0.77.2(2026-10-17)JSON 纯净性修复
|
|
4
9
|
- **契约修复**:unknown-group 错误路径的 try 提示不再泄漏到 --json stdout(冷启动之旅实测发现)
|
|
5
10
|
- degraded mode 提示在 json 模式改走 stderr
|
package/dist/bundle/bin.cjs
CHANGED
|
@@ -7830,9 +7830,15 @@ function run$5(env, action, rest, args) {
|
|
|
7830
7830
|
return 0;
|
|
7831
7831
|
}
|
|
7832
7832
|
}
|
|
7833
|
+
let positionalTree;
|
|
7834
|
+
if (env.group === "node" && (action === "list" || action === void 0) && !sel && rest[0]) {
|
|
7835
|
+
positionalTree = trees.treeByName(rest[0]);
|
|
7836
|
+
if (positionalTree) rest = rest.slice(1);
|
|
7837
|
+
else if (!ctx.json) out(ctx, paint(C.yellow, ` ! "${rest[0]}" is not a tree — showing current tree (use -t <tree> to switch)`, ctx.color));
|
|
7838
|
+
}
|
|
7833
7839
|
let tree;
|
|
7834
7840
|
try {
|
|
7835
|
-
tree = trees.treeResolve(sel);
|
|
7841
|
+
tree = positionalTree || trees.treeResolve(sel);
|
|
7836
7842
|
} catch (e) {
|
|
7837
7843
|
bad(ctx, e.message);
|
|
7838
7844
|
return 1;
|
|
@@ -119,9 +119,22 @@ function run(env, action, rest, args) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
// ---------------------------------------------------------------- node group
|
|
122
|
+
// UX guard (drift-fix 2026-10-17): `node list <tree>` positional was silently
|
|
123
|
+
// ignored (fell back to current_tree — user saw the WRONG tree with no hint).
|
|
124
|
+
// Now: a positional that names an existing tree selects it; anything else
|
|
125
|
+
// earns an explicit "ignored" notice instead of silent misdirection.
|
|
126
|
+
let positionalTree;
|
|
127
|
+
if (env.group === "node" && (action === "list" || action === undefined) && !sel && rest[0]) {
|
|
128
|
+
positionalTree = trees.treeByName(rest[0]);
|
|
129
|
+
if (positionalTree)
|
|
130
|
+
rest = rest.slice(1);
|
|
131
|
+
else if (!ctx.json) {
|
|
132
|
+
(0, fmt_1.out)(ctx, (0, fmt_1.paint)(fmt_1.C.yellow, ` ! "${rest[0]}" is not a tree — showing current tree (use -t <tree> to switch)`, ctx.color));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
122
135
|
let tree;
|
|
123
136
|
try {
|
|
124
|
-
tree = trees.treeResolve(sel);
|
|
137
|
+
tree = positionalTree || trees.treeResolve(sel);
|
|
125
138
|
}
|
|
126
139
|
catch (e) {
|
|
127
140
|
(0, fmt_1.bad)(ctx, e.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ygl-trees",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.3",
|
|
4
4
|
"description": "猿光 · 科技树 — database-centric CLI for research → production → knowledge reuse, built for AI agents.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/apps/cli/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"reflect-metadata": "^0.2.2",
|
|
27
27
|
"typeorm": "^1.1.2",
|
|
28
28
|
"@deepseek-ai/cordis": "~4.0.5-alpha.2",
|
|
29
|
-
"@deepseek-ai/cordis-plugin-timer": "~1.1.7-alpha.2",
|
|
30
29
|
"@deepseek-ai/cosmokit": "~1.8.6-alpha.2",
|
|
30
|
+
"@deepseek-ai/cordis-plugin-timer": "~1.1.7-alpha.2",
|
|
31
31
|
"@deepseek-ai/schemastery": "~3.18.5-alpha.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|