@blxzer/cursor-trellis 0.2.2 → 0.2.4
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/README.zh-CN.md +13 -11
- package/bin/smart-search.js +27 -0
- package/dist/migrations/manifests/0.2.3.json +9 -0
- package/package.json +4 -3
package/README.zh-CN.md
CHANGED
|
@@ -128,23 +128,25 @@ trellis uninstall -y
|
|
|
128
128
|
|
|
129
129
|
---
|
|
130
130
|
|
|
131
|
-
## smart-search
|
|
131
|
+
## smart-search 集成
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
Trellis 集成了 [smart-search](https://github.com/blxzer77/smart-search),这是一个用于 Agent 从网络检索当前信息的 CLI 工具。当你安装 cursor-trellis 时,smart-search 会自动作为依赖安装。
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
| Agent 何时用 | 项目 `.trellis/workflow.md` 约定外部事实在健康时**优先**走 smart-search |
|
|
139
|
-
| 配置 | `smart-search setup`、`smart-search doctor`(见 [vendor README](vendor/smart-search/README.zh-CN.md)) |
|
|
140
|
-
| Readiness | `init`/`update` 默认检查,可用 `--skip-readiness` 跳过 |
|
|
135
|
+
**安装:**
|
|
136
|
+
|
|
137
|
+
当你安装 cursor-trellis 时,smart-search 会自动安装:
|
|
141
138
|
|
|
142
139
|
```bash
|
|
143
|
-
|
|
144
|
-
smart-search
|
|
140
|
+
npm install -g @blxzer/cursor-trellis
|
|
141
|
+
# smart-search 现已可用
|
|
142
|
+
smart-search --version
|
|
145
143
|
```
|
|
146
144
|
|
|
147
|
-
|
|
145
|
+
**链接:**
|
|
146
|
+
- npm 包:https://www.npmjs.com/package/@blxzer/smart-search
|
|
147
|
+
- GitHub 仓库:https://github.com/blxzer77/smart-search
|
|
148
|
+
|
|
149
|
+
工作流会在 smart-search 可用时,将外部事实查询路由到它。详见仓库了解配置和使用详情。
|
|
148
150
|
|
|
149
151
|
---
|
|
150
152
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { spawn } from "node:child_process";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
// Resolve @blxzer/smart-search package location
|
|
9
|
+
let smartSearchBin;
|
|
10
|
+
try {
|
|
11
|
+
const smartSearchPackage = require.resolve("@blxzer/smart-search/package.json");
|
|
12
|
+
const smartSearchRoot = smartSearchPackage.replace(/[\/\\]package\.json$/, "");
|
|
13
|
+
smartSearchBin = `${smartSearchRoot}/bin/smart-search.js`;
|
|
14
|
+
} catch (err) {
|
|
15
|
+
console.error("Error: @blxzer/smart-search dependency not found.");
|
|
16
|
+
console.error("Please reinstall: npm install -g @blxzer/cursor-trellis");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const child = spawn(process.execPath, [smartSearchBin, ...process.argv.slice(2)], {
|
|
21
|
+
stdio: "inherit",
|
|
22
|
+
windowsHide: true,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
child.on("exit", (code) => {
|
|
26
|
+
process.exit(code ?? 1);
|
|
27
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.3",
|
|
3
|
+
"description": "v0.2.3 — 修复 smart-search bin wrapper。",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "**@blxzer/cursor-trellis 0.2.3 和 @blxzer/cursor-trellis-core 0.2.3**\n\n### Fixed\n- fix(bin): 添加 smart-search bin wrapper,将命令转发到 @blxzer/smart-search 依赖包\n- fix(scripts): 更新 check-release-pack-contents.js,移除 vendor/ 路径检查\n- docs(readme): 更新中文 README,移除 vendor 相关说明\n\n### Upgrade notes\n- 运行 `npm install -g @blxzer/cursor-trellis@latest` 升级\n- smart-search 命令现在可以全局使用",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "修复 smart-search 命令不可用的问题。"
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blxzer/cursor-trellis",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
9
|
"trellis": "./bin/trellis.js",
|
|
10
|
-
"tl": "./bin/trellis.js"
|
|
10
|
+
"tl": "./bin/trellis.js",
|
|
11
|
+
"smart-search": "./bin/smart-search.js"
|
|
11
12
|
},
|
|
12
13
|
"publishConfig": {
|
|
13
14
|
"access": "public"
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"inquirer": "^9.3.7",
|
|
36
37
|
"undici": "^6.21.0",
|
|
37
38
|
"zod": "^4.4.2",
|
|
38
|
-
"@blxzer/cursor-trellis-core": "0.2.
|
|
39
|
+
"@blxzer/cursor-trellis-core": "0.2.4"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@eslint/js": "^9.18.0",
|