@mison/ling 1.0.0 → 1.0.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 +13 -1
- package/bin/ling.js +0 -0
- package/package.json +3 -3
- package/scripts/health-check.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [ling-1.0.1] - 2026-03-13
|
|
11
|
+
|
|
12
|
+
### 修复
|
|
13
|
+
|
|
14
|
+
- 健康检查脚本:允许 `ling spec status --quiet` 在 `missing` 状态返回非 0 退出码,并继续校验输出内容。
|
|
15
|
+
- Web 文档站 lint:移除 `useEffect` 内同步 `setState` 的用法,改为渲染期平台判断并对快捷键提示增加 `suppressHydrationWarning`。
|
|
16
|
+
|
|
17
|
+
### 维护
|
|
18
|
+
|
|
19
|
+
- CLI 入口权限:`bin/ling.js` 设置为可执行,保持与 `bin/ag-kit.js` 一致。
|
|
20
|
+
|
|
10
21
|
## [ling-1.0.0] - 2026-03-13
|
|
11
22
|
|
|
12
23
|
### 版本与标签
|
|
@@ -39,5 +50,6 @@
|
|
|
39
50
|
|
|
40
51
|
本项目在 Ling 重启前的 2.x/3.x 版本记录已冻结,不再维护。
|
|
41
52
|
|
|
42
|
-
[Unreleased]: https://github.com/MisonL/Ling/compare/ling-1.0.
|
|
53
|
+
[Unreleased]: https://github.com/MisonL/Ling/compare/ling-1.0.1...HEAD
|
|
54
|
+
[ling-1.0.1]: https://github.com/MisonL/Ling/releases/tag/ling-1.0.1
|
|
43
55
|
[ling-1.0.0]: https://github.com/MisonL/Ling/releases/tag/ling-1.0.0
|
package/bin/ling.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mison/ling",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "AI Agent templates - Skills, Agents, and Workflows for enhanced coding assistance",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"docs/TECH.md"
|
|
51
51
|
],
|
|
52
52
|
"bin": {
|
|
53
|
-
"ling": "
|
|
54
|
-
"ag-kit": "
|
|
53
|
+
"ling": "bin/ling.js",
|
|
54
|
+
"ag-kit": "bin/ag-kit.js"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/scripts/health-check.js
CHANGED
|
@@ -12,6 +12,7 @@ function logStep(message) {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function runCommand(command, options = {}) {
|
|
15
|
+
const allowedStatuses = options.allowedStatuses || [0];
|
|
15
16
|
const result = spawnSync(command, {
|
|
16
17
|
cwd: options.cwd || ROOT_DIR,
|
|
17
18
|
env: {
|
|
@@ -22,9 +23,11 @@ function runCommand(command, options = {}) {
|
|
|
22
23
|
shell: true,
|
|
23
24
|
});
|
|
24
25
|
|
|
25
|
-
if (result.status
|
|
26
|
+
if (!allowedStatuses.includes(result.status)) {
|
|
26
27
|
const detail = result.stderr || result.stdout || "";
|
|
27
|
-
throw new Error(
|
|
28
|
+
throw new Error(
|
|
29
|
+
`${command}\n(exit=${result.status})\n${detail}`.trim(),
|
|
30
|
+
);
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
return result.stdout || "";
|
|
@@ -106,7 +109,10 @@ function main() {
|
|
|
106
109
|
throw new Error(`spec status 结果异常: ${specStatus}`);
|
|
107
110
|
}
|
|
108
111
|
runCommand("node bin/ling.js spec disable --target codex --quiet", { env });
|
|
109
|
-
const specStatusAfterDisable = runCommand("node bin/ling.js spec status --quiet", {
|
|
112
|
+
const specStatusAfterDisable = runCommand("node bin/ling.js spec status --quiet", {
|
|
113
|
+
env,
|
|
114
|
+
allowedStatuses: [0, 2],
|
|
115
|
+
}).trim();
|
|
110
116
|
if (specStatusAfterDisable !== "missing") {
|
|
111
117
|
throw new Error(`spec disable 后状态异常: ${specStatusAfterDisable}`);
|
|
112
118
|
}
|