yongle-dadian 1.2.1 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yongle-dadian",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "永乐大典 — AI 开发经验知识库引擎。自动复盘、过程追踪、毫秒级检索。独立于 GSD 运行。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -146,7 +146,10 @@ function main() {
146
146
 
147
147
  let latestTag = '';
148
148
  try {
149
- latestTag = execSync('git describe --tags $(git rev-list --tags --max-count=1)', { cwd: packageRoot, encoding: 'utf8' }).trim();
149
+ const latestCommit = execSync('git rev-list --tags --max-count=1', { cwd: packageRoot, encoding: 'utf8' }).trim();
150
+ if (latestCommit) {
151
+ latestTag = execSync(`git describe --tags ${latestCommit}`, { cwd: packageRoot, encoding: 'utf8' }).trim();
152
+ }
150
153
  } catch (e) {}
151
154
 
152
155
  if (latestTag) {