@ddlqhd/agent-sdk 0.2.0 → 0.2.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.
- package/README.md +2 -1
- package/dist/{chunk-6X7EYQLS.cjs → chunk-JXAJQGV5.cjs} +24 -14
- package/dist/chunk-JXAJQGV5.cjs.map +1 -0
- package/dist/{chunk-Z45DHTDX.cjs → chunk-P2X3AMDK.cjs} +34 -4
- package/dist/chunk-P2X3AMDK.cjs.map +1 -0
- package/dist/{chunk-MEJHTQJM.js → chunk-TKUPLTGJ.js} +31 -5
- package/dist/chunk-TKUPLTGJ.js.map +1 -0
- package/dist/{chunk-EQ5CXH44.js → chunk-UHENMHUS.js} +17 -7
- package/dist/chunk-UHENMHUS.js.map +1 -0
- package/dist/cli/index.cjs +28 -28
- package/dist/cli/index.js +2 -2
- package/dist/{index-Cw3SfEAB.d.ts → index-CnrY1ZA2.d.ts} +25 -2
- package/dist/{index-D2Qntkn_.d.cts → index-DzBt4ewK.d.cts} +25 -2
- package/dist/index.cjs +90 -74
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/models/index.d.cts +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/tools/index.cjs +64 -48
- package/dist/tools/index.d.cts +3 -3
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-CWPAYWzr.d.cts → types-BUwjMwNH.d.cts} +5 -0
- package/dist/{types-CWPAYWzr.d.ts → types-BUwjMwNH.d.ts} +5 -0
- package/package.json +1 -1
- package/dist/chunk-6X7EYQLS.cjs.map +0 -1
- package/dist/chunk-EQ5CXH44.js.map +0 -1
- package/dist/chunk-MEJHTQJM.js.map +0 -1
- package/dist/chunk-Z45DHTDX.cjs.map +0 -1
package/dist/tools/index.cjs
CHANGED
|
@@ -2,198 +2,214 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
require('../chunk-5Y56A64C.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkP2X3AMDK_cjs = require('../chunk-P2X3AMDK.cjs');
|
|
6
6
|
require('../chunk-OZO7D77N.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "DEFAULT_GREP_HEAD_LIMIT", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkP2X3AMDK_cjs.DEFAULT_GREP_HEAD_LIMIT; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "FileStorageStrategy", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkP2X3AMDK_cjs.FileStorageStrategy; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "HookManager", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkP2X3AMDK_cjs.HookManager; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "MAX_LINE_LENGTH", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkP2X3AMDK_cjs.MAX_LINE_LENGTH; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "OUTPUT_CONFIG", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkP2X3AMDK_cjs.OUTPUT_CONFIG; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "OutputHandler", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkP2X3AMDK_cjs.OutputHandler; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "PaginationHintStrategy", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkP2X3AMDK_cjs.PaginationHintStrategy; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkP2X3AMDK_cjs.SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "SUBAGENT_TYPES", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkP2X3AMDK_cjs.SUBAGENT_TYPES; }
|
|
37
45
|
});
|
|
38
46
|
Object.defineProperty(exports, "SmartTruncateStrategy", {
|
|
39
47
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkP2X3AMDK_cjs.SmartTruncateStrategy; }
|
|
41
49
|
});
|
|
42
50
|
Object.defineProperty(exports, "ToolRegistry", {
|
|
43
51
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkP2X3AMDK_cjs.ToolRegistry; }
|
|
45
53
|
});
|
|
46
54
|
Object.defineProperty(exports, "agentTool", {
|
|
47
55
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkP2X3AMDK_cjs.agentTool; }
|
|
49
57
|
});
|
|
50
58
|
Object.defineProperty(exports, "bashTool", {
|
|
51
59
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkP2X3AMDK_cjs.bashTool; }
|
|
53
61
|
});
|
|
54
62
|
Object.defineProperty(exports, "buildHookEnv", {
|
|
55
63
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkP2X3AMDK_cjs.buildHookEnv; }
|
|
57
65
|
});
|
|
58
66
|
Object.defineProperty(exports, "createAgentTool", {
|
|
59
67
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkP2X3AMDK_cjs.createAgentTool; }
|
|
61
69
|
});
|
|
62
70
|
Object.defineProperty(exports, "createAskUserQuestionTool", {
|
|
63
71
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkP2X3AMDK_cjs.createAskUserQuestionTool; }
|
|
65
73
|
});
|
|
66
74
|
Object.defineProperty(exports, "createFunctionHook", {
|
|
67
75
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkP2X3AMDK_cjs.createFunctionHook; }
|
|
69
77
|
});
|
|
70
78
|
Object.defineProperty(exports, "createOutputHandler", {
|
|
71
79
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkP2X3AMDK_cjs.createOutputHandler; }
|
|
73
81
|
});
|
|
74
82
|
Object.defineProperty(exports, "createSkillTool", {
|
|
75
83
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkP2X3AMDK_cjs.createSkillTool; }
|
|
77
85
|
});
|
|
78
86
|
Object.defineProperty(exports, "createTool", {
|
|
79
87
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkP2X3AMDK_cjs.createTool; }
|
|
81
89
|
});
|
|
82
90
|
Object.defineProperty(exports, "editTool", {
|
|
83
91
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkP2X3AMDK_cjs.editTool; }
|
|
85
93
|
});
|
|
86
94
|
Object.defineProperty(exports, "formatAnswerSummary", {
|
|
87
95
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkP2X3AMDK_cjs.formatAnswerSummary; }
|
|
89
97
|
});
|
|
90
98
|
Object.defineProperty(exports, "formatAskUserQuestionPrompt", {
|
|
91
99
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkP2X3AMDK_cjs.formatAskUserQuestionPrompt; }
|
|
93
101
|
});
|
|
94
102
|
Object.defineProperty(exports, "getAllBuiltinTools", {
|
|
95
103
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkP2X3AMDK_cjs.getAllBuiltinTools; }
|
|
97
105
|
});
|
|
98
106
|
Object.defineProperty(exports, "getFileSystemTools", {
|
|
99
107
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkP2X3AMDK_cjs.getFileSystemTools; }
|
|
101
109
|
});
|
|
102
110
|
Object.defineProperty(exports, "getGlobalRegistry", {
|
|
103
111
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkP2X3AMDK_cjs.getGlobalRegistry; }
|
|
105
113
|
});
|
|
106
114
|
Object.defineProperty(exports, "getGrepTools", {
|
|
107
115
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkP2X3AMDK_cjs.getGrepTools; }
|
|
109
117
|
});
|
|
110
118
|
Object.defineProperty(exports, "getInteractionTools", {
|
|
111
119
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkP2X3AMDK_cjs.getInteractionTools; }
|
|
113
121
|
});
|
|
114
122
|
Object.defineProperty(exports, "getPlanningTools", {
|
|
115
123
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkP2X3AMDK_cjs.getPlanningTools; }
|
|
117
125
|
});
|
|
118
126
|
Object.defineProperty(exports, "getSafeBuiltinTools", {
|
|
119
127
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkP2X3AMDK_cjs.getSafeBuiltinTools; }
|
|
121
129
|
});
|
|
122
130
|
Object.defineProperty(exports, "getShellTools", {
|
|
123
131
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkP2X3AMDK_cjs.getShellTools; }
|
|
125
133
|
});
|
|
126
134
|
Object.defineProperty(exports, "getSkillTools", {
|
|
127
135
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkP2X3AMDK_cjs.getSkillTools; }
|
|
129
137
|
});
|
|
130
138
|
Object.defineProperty(exports, "getSubagentTools", {
|
|
131
139
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkP2X3AMDK_cjs.getSubagentTools; }
|
|
133
141
|
});
|
|
134
142
|
Object.defineProperty(exports, "getWebTools", {
|
|
135
143
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkP2X3AMDK_cjs.getWebTools; }
|
|
137
145
|
});
|
|
138
146
|
Object.defineProperty(exports, "globTool", {
|
|
139
147
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkP2X3AMDK_cjs.globTool; }
|
|
141
149
|
});
|
|
142
150
|
Object.defineProperty(exports, "grepTool", {
|
|
143
151
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkP2X3AMDK_cjs.grepTool; }
|
|
145
153
|
});
|
|
146
154
|
Object.defineProperty(exports, "loadHooksSettingsFromProject", {
|
|
147
155
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkP2X3AMDK_cjs.loadHooksSettingsFromProject; }
|
|
149
157
|
});
|
|
150
158
|
Object.defineProperty(exports, "loadHooksSettingsFromUser", {
|
|
151
159
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkP2X3AMDK_cjs.loadHooksSettingsFromUser; }
|
|
153
161
|
});
|
|
154
162
|
Object.defineProperty(exports, "matchTool", {
|
|
155
163
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkP2X3AMDK_cjs.matchTool; }
|
|
157
165
|
});
|
|
158
166
|
Object.defineProperty(exports, "mergeCommandHookLayers", {
|
|
159
167
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkP2X3AMDK_cjs.mergeCommandHookLayers; }
|
|
161
169
|
});
|
|
162
170
|
Object.defineProperty(exports, "parseHooksSettingsFile", {
|
|
163
171
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkP2X3AMDK_cjs.parseHooksSettingsFile; }
|
|
165
173
|
});
|
|
166
174
|
Object.defineProperty(exports, "questionTool", {
|
|
167
175
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkP2X3AMDK_cjs.questionTool; }
|
|
169
177
|
});
|
|
170
178
|
Object.defineProperty(exports, "readFileTool", {
|
|
171
179
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkP2X3AMDK_cjs.readFileTool; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "resolveSubagentTypeAppend", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkP2X3AMDK_cjs.resolveSubagentTypeAppend; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "subagentExploreDefaultsUnavailableMessage", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkP2X3AMDK_cjs.subagentExploreDefaultsUnavailableMessage; }
|
|
173
189
|
});
|
|
174
190
|
Object.defineProperty(exports, "subagentRequestSchema", {
|
|
175
191
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkP2X3AMDK_cjs.subagentRequestSchema; }
|
|
177
193
|
});
|
|
178
194
|
Object.defineProperty(exports, "todoWriteTool", {
|
|
179
195
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkP2X3AMDK_cjs.todoWriteTool; }
|
|
181
197
|
});
|
|
182
198
|
Object.defineProperty(exports, "truncateMatchLineForDisplay", {
|
|
183
199
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkP2X3AMDK_cjs.truncateMatchLineForDisplay; }
|
|
185
201
|
});
|
|
186
202
|
Object.defineProperty(exports, "webFetchTool", {
|
|
187
203
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkP2X3AMDK_cjs.webFetchTool; }
|
|
189
205
|
});
|
|
190
206
|
Object.defineProperty(exports, "webSearchTool", {
|
|
191
207
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkP2X3AMDK_cjs.webSearchTool; }
|
|
193
209
|
});
|
|
194
210
|
Object.defineProperty(exports, "writeFileTool", {
|
|
195
211
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkP2X3AMDK_cjs.writeFileTool; }
|
|
197
213
|
});
|
|
198
214
|
//# sourceMappingURL=index.cjs.map
|
|
199
215
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH,
|
|
2
|
-
import { T as ToolResult } from '../types-
|
|
3
|
-
export { v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, D as CommandHookConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, V as HookResult, W as HooksSettings, X as HooksSettingsFile, d as ToolDefinition, av as ToolResultMetadata, ax as ToolSchema, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from '../types-
|
|
1
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, b as SUBAGENT_TYPES, e as SubagentRequest, f as SubagentRunner, g as SubagentType, h as ToolExecuteOptions, T as ToolRegistry, i as ToolRegistryConfig, j as agentTool, k as bashTool, l as createAgentTool, o as createSkillTool, p as createTool, q as editTool, r as getAllBuiltinTools, s as getFileSystemTools, t as getGlobalRegistry, u as getGrepTools, v as getPlanningTools, w as getSafeBuiltinTools, x as getShellTools, y as getSkillTools, z as getSubagentTools, A as getWebTools, B as globTool, E as grepTool, F as loadHooksSettingsFromProject, G as loadHooksSettingsFromUser, H as parseHooksSettingsFile, I as readFileTool, J as resolveSubagentTypeAppend, K as subagentExploreDefaultsUnavailableMessage, L as subagentRequestSchema, N as todoWriteTool, O as truncateMatchLineForDisplay, P as webFetchTool, Q as webSearchTool, R as writeFileTool } from '../index-DzBt4ewK.cjs';
|
|
2
|
+
import { T as ToolResult } from '../types-BUwjMwNH.cjs';
|
|
3
|
+
export { v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, D as CommandHookConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, V as HookResult, W as HooksSettings, X as HooksSettingsFile, d as ToolDefinition, av as ToolResultMetadata, ax as ToolSchema, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from '../types-BUwjMwNH.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH,
|
|
2
|
-
import { T as ToolResult } from '../types-
|
|
3
|
-
export { v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, D as CommandHookConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, V as HookResult, W as HooksSettings, X as HooksSettingsFile, d as ToolDefinition, av as ToolResultMetadata, ax as ToolSchema, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from '../types-
|
|
1
|
+
export { C as CreateAgentToolOptions, D as DEFAULT_GREP_HEAD_LIMIT, M as MAX_LINE_LENGTH, a as SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, b as SUBAGENT_TYPES, e as SubagentRequest, f as SubagentRunner, g as SubagentType, h as ToolExecuteOptions, T as ToolRegistry, i as ToolRegistryConfig, j as agentTool, k as bashTool, l as createAgentTool, o as createSkillTool, p as createTool, q as editTool, r as getAllBuiltinTools, s as getFileSystemTools, t as getGlobalRegistry, u as getGrepTools, v as getPlanningTools, w as getSafeBuiltinTools, x as getShellTools, y as getSkillTools, z as getSubagentTools, A as getWebTools, B as globTool, E as grepTool, F as loadHooksSettingsFromProject, G as loadHooksSettingsFromUser, H as parseHooksSettingsFile, I as readFileTool, J as resolveSubagentTypeAppend, K as subagentExploreDefaultsUnavailableMessage, L as subagentRequestSchema, N as todoWriteTool, O as truncateMatchLineForDisplay, P as webFetchTool, Q as webSearchTool, R as writeFileTool } from '../index-CnrY1ZA2.js';
|
|
2
|
+
import { T as ToolResult } from '../types-BUwjMwNH.js';
|
|
3
|
+
export { v as AskUserQuestionAnswer, w as AskUserQuestionItem, x as AskUserQuestionResolver, D as CommandHookConfig, H as CreateAskUserQuestionToolOptions, I as FlatCommandHookEntry, J as FunctionHook, K as HookContext, O as HookEventType, Q as HookGroupConfig, R as HookManager, V as HookResult, W as HooksSettings, X as HooksSettingsFile, d as ToolDefinition, av as ToolResultMetadata, ax as ToolSchema, aA as buildHookEnv, aB as createAskUserQuestionTool, aC as createFunctionHook, aD as formatAnswerSummary, aE as formatAskUserQuestionPrompt, aF as getInteractionTools, aH as matchTool, aI as mergeCommandHookLayers, aJ as questionTool } from '../types-BUwjMwNH.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/tools/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import '../chunk-A3S3AGE3.js';
|
|
3
|
-
export { DEFAULT_GREP_HEAD_LIMIT, FileStorageStrategy, HookManager, MAX_LINE_LENGTH, OUTPUT_CONFIG, OutputHandler, PaginationHintStrategy, SmartTruncateStrategy, ToolRegistry, agentTool, bashTool, buildHookEnv, createAgentTool, createAskUserQuestionTool, createFunctionHook, createOutputHandler, createSkillTool, createTool, editTool, formatAnswerSummary, formatAskUserQuestionPrompt, getAllBuiltinTools, getFileSystemTools, getGlobalRegistry, getGrepTools, getInteractionTools, getPlanningTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, subagentRequestSchema, todoWriteTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from '../chunk-
|
|
3
|
+
export { DEFAULT_GREP_HEAD_LIMIT, FileStorageStrategy, HookManager, MAX_LINE_LENGTH, OUTPUT_CONFIG, OutputHandler, PaginationHintStrategy, SUBAGENT_EXPLORE_DEFAULT_TOOL_NAMES, SUBAGENT_TYPES, SmartTruncateStrategy, ToolRegistry, agentTool, bashTool, buildHookEnv, createAgentTool, createAskUserQuestionTool, createFunctionHook, createOutputHandler, createSkillTool, createTool, editTool, formatAnswerSummary, formatAskUserQuestionPrompt, getAllBuiltinTools, getFileSystemTools, getGlobalRegistry, getGrepTools, getInteractionTools, getPlanningTools, getSafeBuiltinTools, getShellTools, getSkillTools, getSubagentTools, getWebTools, globTool, grepTool, loadHooksSettingsFromProject, loadHooksSettingsFromUser, matchTool, mergeCommandHookLayers, parseHooksSettingsFile, questionTool, readFileTool, resolveSubagentTypeAppend, subagentExploreDefaultsUnavailableMessage, subagentRequestSchema, todoWriteTool, truncateMatchLineForDisplay, webFetchTool, webSearchTool, writeFileTool } from '../chunk-TKUPLTGJ.js';
|
|
4
4
|
import '../chunk-LOYIGOBZ.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1044,6 +1044,11 @@ interface AgentConfig {
|
|
|
1044
1044
|
allowDangerousTools?: boolean;
|
|
1045
1045
|
/** 子代理默认允许工具列表(为空时自动使用安全工具) */
|
|
1046
1046
|
defaultAllowedTools?: string[];
|
|
1047
|
+
/**
|
|
1048
|
+
* 按 subagent 类型(general-purpose / explore)覆盖内置追加 system 片段;未设置的类型仍用内置文案。
|
|
1049
|
+
* 设为空字符串表示该类型不追加片段。
|
|
1050
|
+
*/
|
|
1051
|
+
subagentTypePrompts?: Partial<Record<'general-purpose' | 'explore', string>>;
|
|
1047
1052
|
};
|
|
1048
1053
|
}
|
|
1049
1054
|
/**
|
|
@@ -1044,6 +1044,11 @@ interface AgentConfig {
|
|
|
1044
1044
|
allowDangerousTools?: boolean;
|
|
1045
1045
|
/** 子代理默认允许工具列表(为空时自动使用安全工具) */
|
|
1046
1046
|
defaultAllowedTools?: string[];
|
|
1047
|
+
/**
|
|
1048
|
+
* 按 subagent 类型(general-purpose / explore)覆盖内置追加 system 片段;未设置的类型仍用内置文案。
|
|
1049
|
+
* 设为空字符串表示该类型不追加片段。
|
|
1050
|
+
*/
|
|
1051
|
+
subagentTypePrompts?: Partial<Record<'general-purpose' | 'explore', string>>;
|
|
1047
1052
|
};
|
|
1048
1053
|
}
|
|
1049
1054
|
/**
|
package/package.json
CHANGED