@easynet/agent-tool-buildin 0.0.74 → 0.0.76
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/dist/config/tool.yaml +154 -0
- package/package.json +2 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
apiVersion: easynet.world/v1
|
|
2
|
+
kind: ToolConfig
|
|
3
|
+
metadata:
|
|
4
|
+
name: agent-tool-buildin-default
|
|
5
|
+
spec:
|
|
6
|
+
tools:
|
|
7
|
+
sandboxedPath: .
|
|
8
|
+
enableSandboxValidation: false
|
|
9
|
+
allowedHosts: []
|
|
10
|
+
blockedHosts: []
|
|
11
|
+
|
|
12
|
+
# Per-tool default configs. Override any of these via tool.override.yaml.
|
|
13
|
+
defaults:
|
|
14
|
+
|
|
15
|
+
# --- fs tools ---
|
|
16
|
+
fs.readText:
|
|
17
|
+
maxBytes: 5242880 # 5MB
|
|
18
|
+
fs.listDir:
|
|
19
|
+
maxEntries: 2000
|
|
20
|
+
maxDepth: 5
|
|
21
|
+
fs.searchText:
|
|
22
|
+
maxMatches: 100
|
|
23
|
+
maxFiles: 500
|
|
24
|
+
fs.writeText: {}
|
|
25
|
+
fs.deletePath: {}
|
|
26
|
+
fs.sha256: {}
|
|
27
|
+
|
|
28
|
+
# --- http tools ---
|
|
29
|
+
http.fetchText:
|
|
30
|
+
timeoutMs: 15000
|
|
31
|
+
maxBytes: 5242880 # 5MB
|
|
32
|
+
userAgent: "agent-tool-core/1.0"
|
|
33
|
+
http.fetchJson:
|
|
34
|
+
timeoutMs: 15000
|
|
35
|
+
maxBytes: 5242880
|
|
36
|
+
userAgent: "agent-tool-core/1.0"
|
|
37
|
+
http.downloadFile:
|
|
38
|
+
timeoutMs: 15000
|
|
39
|
+
maxBytes: 104857600 # 100MB
|
|
40
|
+
userAgent: "agent-tool-core/1.0"
|
|
41
|
+
http.fetchPageMainContent:
|
|
42
|
+
timeoutMs: 15000
|
|
43
|
+
maxBytes: 5242880
|
|
44
|
+
userAgent: "agent-tool-core/1.0"
|
|
45
|
+
http.head:
|
|
46
|
+
timeoutMs: 15000
|
|
47
|
+
userAgent: "agent-tool-core/1.0"
|
|
48
|
+
http.duckduckgoSearch:
|
|
49
|
+
timeoutMs: 15000
|
|
50
|
+
maxBytes: 5242880
|
|
51
|
+
userAgent: "agent-tool-core/1.0"
|
|
52
|
+
http.yahooFinance:
|
|
53
|
+
timeoutMs: 15000
|
|
54
|
+
maxBytes: 5242880
|
|
55
|
+
userAgent: "agent-tool-core/1.0"
|
|
56
|
+
|
|
57
|
+
# --- exec tools ---
|
|
58
|
+
exec.runCommand:
|
|
59
|
+
allowedCommands:
|
|
60
|
+
- cat
|
|
61
|
+
- echo
|
|
62
|
+
- env
|
|
63
|
+
- find
|
|
64
|
+
- grep
|
|
65
|
+
- head
|
|
66
|
+
- ls
|
|
67
|
+
- pwd
|
|
68
|
+
- tail
|
|
69
|
+
- wc
|
|
70
|
+
- whoami
|
|
71
|
+
maxOutputBytes: 1048576 # 1MB
|
|
72
|
+
timeoutMs: 10000
|
|
73
|
+
|
|
74
|
+
# --- git tools ---
|
|
75
|
+
git.gitStatus: {}
|
|
76
|
+
git.gitLog:
|
|
77
|
+
maxCount: 100
|
|
78
|
+
timeoutMs: 30000
|
|
79
|
+
maxOutputBytes: 2097152 # 2MB
|
|
80
|
+
git.gitDiff:
|
|
81
|
+
timeoutMs: 30000
|
|
82
|
+
maxOutputBytes: 2097152
|
|
83
|
+
git.gitAdd: {}
|
|
84
|
+
git.gitCommit: {}
|
|
85
|
+
git.gitShow:
|
|
86
|
+
timeoutMs: 30000
|
|
87
|
+
maxOutputBytes: 2097152
|
|
88
|
+
git.gitCommand:
|
|
89
|
+
allowedCommands:
|
|
90
|
+
- status
|
|
91
|
+
- log
|
|
92
|
+
- show
|
|
93
|
+
- diff
|
|
94
|
+
- branch
|
|
95
|
+
- rev-parse
|
|
96
|
+
- remote
|
|
97
|
+
- tag
|
|
98
|
+
- reflog
|
|
99
|
+
- blame
|
|
100
|
+
- ls-files
|
|
101
|
+
- grep
|
|
102
|
+
- shortlog
|
|
103
|
+
- describe
|
|
104
|
+
- ls-remote
|
|
105
|
+
- cat-file
|
|
106
|
+
timeoutMs: 30000
|
|
107
|
+
maxOutputBytes: 2097152
|
|
108
|
+
git.ghCommand:
|
|
109
|
+
allowedCommands:
|
|
110
|
+
- "repo view"
|
|
111
|
+
- "pr list"
|
|
112
|
+
- "pr view"
|
|
113
|
+
- "issue list"
|
|
114
|
+
- "issue view"
|
|
115
|
+
- "search prs"
|
|
116
|
+
- "search issues"
|
|
117
|
+
- "release list"
|
|
118
|
+
- "release view"
|
|
119
|
+
- "workflow list"
|
|
120
|
+
- "workflow view"
|
|
121
|
+
- "run list"
|
|
122
|
+
- "run view"
|
|
123
|
+
timeoutMs: 30000
|
|
124
|
+
maxOutputBytes: 2097152
|
|
125
|
+
|
|
126
|
+
# --- analyze tools ---
|
|
127
|
+
analyze.analyzeLog:
|
|
128
|
+
model: "gpt-4o-mini"
|
|
129
|
+
openaiBaseUrl: "https://api.openai.com/v1"
|
|
130
|
+
timeoutMs: 60000
|
|
131
|
+
chunkSize: 2000
|
|
132
|
+
chunkOverlap: 200
|
|
133
|
+
analyze.analyzeProjectRepo:
|
|
134
|
+
model: "gpt-4o-mini"
|
|
135
|
+
openaiBaseUrl: "https://api.openai.com/v1"
|
|
136
|
+
timeoutMs: 60000
|
|
137
|
+
chunkSize: 2000
|
|
138
|
+
chunkOverlap: 200
|
|
139
|
+
embeddingModel: "qwen3-embedding:0.6b"
|
|
140
|
+
embeddingBaseUrl: "http://localhost:11434/v1"
|
|
141
|
+
embeddingTimeoutMs: 30000
|
|
142
|
+
analyze.askProjectRepo:
|
|
143
|
+
model: "gpt-4o-mini"
|
|
144
|
+
openaiBaseUrl: "https://api.openai.com/v1"
|
|
145
|
+
timeoutMs: 60000
|
|
146
|
+
chunkSize: 2000
|
|
147
|
+
chunkOverlap: 200
|
|
148
|
+
embeddingModel: "qwen3-embedding:0.6b"
|
|
149
|
+
embeddingBaseUrl: "http://localhost:11434/v1"
|
|
150
|
+
embeddingTimeoutMs: 30000
|
|
151
|
+
analyze.embedText:
|
|
152
|
+
embeddingModel: "qwen3-embedding:0.6b"
|
|
153
|
+
embeddingBaseUrl: "http://localhost:11434/v1"
|
|
154
|
+
embeddingTimeoutMs: 30000
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easynet/agent-tool-buildin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.76",
|
|
4
4
|
"description": "Tools extension for @easynet/agent-tool: FS, HTTP, util, security (sandbox, SSRF). Same contract as any other extension.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prebuild": "npm run build --prefix ../agent-tool 2>/dev/null || true",
|
|
25
|
-
"build": "npm run check:tool-files && tsx generate-manifest.ts && tsc -p tsconfig.build.json",
|
|
25
|
+
"build": "npm run check:tool-files && tsx generate-manifest.ts && tsc -p tsconfig.build.json && (mkdir -p dist/config && cp config/tool.yaml dist/config/tool.yaml)",
|
|
26
26
|
"check:tool-files": "tsx scripts/check-tool-files.ts",
|
|
27
27
|
"clean": "rm -rf dist",
|
|
28
28
|
"pretest": "npm run build",
|