@lvce-editor/chat-tool-worker 9.7.0 → 9.9.0

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.
@@ -2210,11 +2210,11 @@ const getSearchOptions = args => {
2210
2210
  const {
2211
2211
  exclude,
2212
2212
  isRegex,
2213
- machWholeWord,
2214
2213
  matchCase,
2214
+ matchWholeWord,
2215
2215
  value
2216
2216
  } = candidate;
2217
- if (typeof value !== 'string' || typeof isRegex !== 'boolean' || typeof matchCase !== 'boolean' || typeof machWholeWord !== 'boolean') {
2217
+ if (typeof value !== 'string' || typeof isRegex !== 'boolean' || typeof matchCase !== 'boolean' || typeof matchWholeWord !== 'boolean') {
2218
2218
  return undefined;
2219
2219
  }
2220
2220
  if (!Array.isArray(exclude) || exclude.some(item => typeof item !== 'string')) {
@@ -2223,8 +2223,8 @@ const getSearchOptions = args => {
2223
2223
  return {
2224
2224
  exclude,
2225
2225
  isRegex,
2226
- machWholeWord,
2227
2226
  matchCase,
2227
+ matchWholeWord,
2228
2228
  value
2229
2229
  };
2230
2230
  };
@@ -2232,7 +2232,7 @@ const executeSearchTextTool = async (args, _options) => {
2232
2232
  const searchOptions = getSearchOptions(args);
2233
2233
  if (!searchOptions) {
2234
2234
  return {
2235
- error: 'Invalid argument: options must include value (string), isRegex (boolean), matchCase (boolean), machWholeWord (boolean), and exclude (string[]).'
2235
+ error: 'Invalid argument: options must include value (string), isRegex (boolean), matchCase (boolean), matchWholeWord (boolean), and exclude (string[]).'
2236
2236
  };
2237
2237
  }
2238
2238
  const results = [{
@@ -2433,7 +2433,7 @@ const executeWriteFileTool = async (args, _options) => {
2433
2433
 
2434
2434
  const parseToolArguments = rawArguments => {
2435
2435
  if (typeof rawArguments !== 'string') {
2436
- return {};
2436
+ return rawArguments;
2437
2437
  }
2438
2438
  try {
2439
2439
  const parsed = JSON.parse(rawArguments);
@@ -2879,17 +2879,17 @@ const getSearchTextTool = () => {
2879
2879
  isRegex: {
2880
2880
  type: 'boolean'
2881
2881
  },
2882
- machWholeWord: {
2882
+ matchCase: {
2883
2883
  type: 'boolean'
2884
2884
  },
2885
- matchCase: {
2885
+ matchWholeWord: {
2886
2886
  type: 'boolean'
2887
2887
  },
2888
2888
  value: {
2889
2889
  type: 'string'
2890
2890
  }
2891
2891
  },
2892
- required: ['value', 'isRegex', 'matchCase', 'machWholeWord', 'exclude'],
2892
+ required: ['value', 'isRegex', 'matchCase', 'matchWholeWord', 'exclude'],
2893
2893
  type: 'object'
2894
2894
  }
2895
2895
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/chat-tool-worker",
3
- "version": "9.7.0",
3
+ "version": "9.9.0",
4
4
  "description": "Chat Tool Worker",
5
5
  "repository": {
6
6
  "type": "git",