@blxzer/cursor-trellis 0.2.1 → 0.2.2

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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.2.1",
3
+ "description": "v0.2.1 — 移除 vendored smart-search,改用 npm 依赖。",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**@blxzer/cursor-trellis 0.2.1 和 @blxzer/cursor-trellis-core 0.2.1**\n\n### Changed\n- refactor: 移除 vendored smart-search (37个源文件 + wrapper),改用 npm 依赖 @blxzer/smart-search@^0.1.0\n- chore: 从版本控制移除 .trellis/ 和 .cursor/ 目录(这些是生成的工件)\n- docs: 简化用户文档,去除营销化语言\n- test: 删除 smart-search vendor 相关测试和脚本\n\n### Upgrade notes\n- smart-search 现在作为 npm 依赖自动安装\n- 运行 `npm install -g @blxzer/cursor-trellis` 会自动安装 smart-search",
7
+ "migrations": [],
8
+ "notes": "首次将 smart-search 从 vendor 迁移到 npm 依赖的版本。"
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blxzer/cursor-trellis",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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",
@@ -35,7 +35,7 @@
35
35
  "inquirer": "^9.3.7",
36
36
  "undici": "^6.21.0",
37
37
  "zod": "^4.4.2",
38
- "@blxzer/cursor-trellis-core": "0.2.1"
38
+ "@blxzer/cursor-trellis-core": "0.2.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@eslint/js": "^9.18.0",
@@ -1,45 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { spawnSync } from "node:child_process";
4
- import fs from "node:fs";
5
- import path from "node:path";
6
- import { fileURLToPath } from "node:url";
3
+ // smart-search is now a dependency (@blxzer/smart-search)
4
+ // and handles its own postinstall setup.
5
+ // This script is kept for backward compatibility but does nothing.
7
6
 
8
- const packageRoot = path.resolve(
9
- path.dirname(fileURLToPath(import.meta.url)),
10
- "..",
11
- );
12
- const vendorRoot = path.join(packageRoot, "vendor", "smart-search");
13
- const smartSearchPostinstall = path.join(
14
- vendorRoot,
15
- "npm",
16
- "scripts",
17
- "postinstall.js",
18
- );
19
-
20
- if (process.env.TRELLIS_SKIP_SMART_SEARCH_POSTINSTALL === "1") {
21
- console.log(
22
- "Skipping smart-search runtime setup (TRELLIS_SKIP_SMART_SEARCH_POSTINSTALL=1).",
23
- );
24
- process.exit(0);
25
- }
26
-
27
- if (!fs.existsSync(smartSearchPostinstall)) {
28
- console.error(
29
- `Trellis smart-search runtime setup script was not found: ${smartSearchPostinstall}`,
30
- );
31
- process.exit(1);
32
- }
33
-
34
- const result = spawnSync(process.execPath, [smartSearchPostinstall], {
35
- cwd: vendorRoot,
36
- stdio: "inherit",
37
- windowsHide: true,
38
- });
39
-
40
- if (result.error) {
41
- console.error(`Trellis smart-search runtime setup failed: ${result.error.message}`);
42
- process.exit(1);
43
- }
44
-
45
- process.exit(result.status ?? 1);
7
+ process.exit(0);