@epoch-agent/plugin-file 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -713,13 +713,14 @@ function execSearch(args, ctx) {
713
713
  });
714
714
  child.on("error", (err) => {
715
715
  const notFound = err.code === "ENOENT";
716
+ const suggestion = resolveRipgrep().hint ?? ripgrepInstallHint();
716
717
  resolve4({
717
718
  success: false,
718
719
  output: "",
719
720
  error: {
720
721
  code: 2005,
721
722
  message: `ripgrep \u672A\u5B89\u88C5\u6216\u4E0D\u53EF\u7528: ${err.message}`,
722
- ...notFound ? { suggestion: `\u5B89\u88C5 ripgrep \u540E\u91CD\u8BD5\uFF1A${ripgrepInstallHint()}` } : {}
723
+ ...notFound ? { suggestion } : {}
723
724
  },
724
725
  duration: 0
725
726
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-agent/plugin-file",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "epoch-agent 文件系统操作插件",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "diff": "^9.0.0",
25
- "@epoch-agent/infra": "0.2.0",
26
- "@epoch-agent/protocol": "0.2.0"
25
+ "@epoch-agent/infra": "0.3.1",
26
+ "@epoch-agent/protocol": "0.3.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^26.1.2",