@xfe-repo/cli-plugin-ai-rules 2.0.5 → 2.0.6

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,14 @@
1
1
  # @xfe-repo/cli-plugin-ai-rules
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 优化体验
8
+ - Updated dependencies
9
+ - @xfe-repo/cli-plugin-git@2.0.6
10
+ - @xfe-repo/cli-core@2.0.7
11
+
3
12
  ## 2.0.5
4
13
 
5
14
  ### Patch Changes
package/dist/pipeline.js CHANGED
@@ -127,7 +127,9 @@ export async function checkSyncStatus(ctx, config) {
127
127
  return false;
128
128
  const git = ctx.inject('git');
129
129
  const cachePath = getCachePath(config.source);
130
- await git.pull(ctx, { cwd: cachePath });
130
+ const pullSuccess = await git.pull(ctx, { cwd: cachePath });
131
+ if (!pullSuccess)
132
+ return false;
131
133
  if ((await git.latestHash({ cwd: cachePath })) !== storeState.lastRemoteHash)
132
134
  return false;
133
135
  const lastHashes = storeState.lastSyncHash ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/cli-plugin-ai-rules",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "XFE AI Rules plugin - sync AI coding rules from remote repo to IDE configs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,8 +9,8 @@
9
9
  "fs-extra": "^11.3.0",
10
10
  "gray-matter": "^4.0.3",
11
11
  "zod": "^4.3.6",
12
- "@xfe-repo/cli-core": "2.0.6",
13
- "@xfe-repo/cli-plugin-git": "2.0.5"
12
+ "@xfe-repo/cli-core": "2.0.7",
13
+ "@xfe-repo/cli-plugin-git": "2.0.6"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/fs-extra": "^11.0.4",