@raolin2025/claude-code-node 2.0.0 → 2.2.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.
@@ -10,6 +10,7 @@ import { grepTool } from './grep.js'
10
10
  import { webFetchTool } from './web-fetch.js'
11
11
  import { webSearchTool } from './web-search.js'
12
12
  import { askUserTool } from './ask-user.js'
13
+ import { gitTool } from './git-tool.js'
13
14
 
14
15
  /**
15
16
  * 所有内置工具列表
@@ -24,6 +25,7 @@ export const builtinTools = [
24
25
  webFetchTool,
25
26
  webSearchTool,
26
27
  askUserTool,
28
+ gitTool,
27
29
  ]
28
30
 
29
31
  /**
@@ -35,6 +35,8 @@ function htmlToText(html) {
35
35
  return text
36
36
  }
37
37
 
38
+ const VERSION = '2.0.0'
39
+
38
40
  export const webFetchTool = new ToolDef(
39
41
  'WebFetch',
40
42
  `Fetch and extract content from a URL.
@@ -69,7 +71,7 @@ Usage:
69
71
  try {
70
72
  const response = await fetch(url, {
71
73
  headers: {
72
- 'User-Agent': 'ClaudeCode-Node/1.0',
74
+ 'User-Agent': `ClaudeCode-Node/${VERSION}`,
73
75
  'Accept': 'text/html,application/json,text/plain,*/*',
74
76
  },
75
77
  signal: AbortSignal.timeout(30000),