@cuylabs/agent-code 0.10.0 → 0.12.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.
|
@@ -860,12 +860,35 @@ var defaultCodingTools = [
|
|
|
860
860
|
// src/tools/toolset.ts
|
|
861
861
|
import { defaultRegistry } from "@cuylabs/agent-core";
|
|
862
862
|
function setupToolRegistry() {
|
|
863
|
-
for (const tool of [
|
|
863
|
+
for (const tool of [
|
|
864
|
+
bashTool,
|
|
865
|
+
readTool,
|
|
866
|
+
editTool,
|
|
867
|
+
writeTool,
|
|
868
|
+
grepTool,
|
|
869
|
+
globTool,
|
|
870
|
+
planTool
|
|
871
|
+
]) {
|
|
864
872
|
defaultRegistry.set(tool);
|
|
865
873
|
}
|
|
866
|
-
defaultRegistry.registerGroup("all", [
|
|
874
|
+
defaultRegistry.registerGroup("all", [
|
|
875
|
+
"bash",
|
|
876
|
+
"read",
|
|
877
|
+
"edit",
|
|
878
|
+
"write",
|
|
879
|
+
"grep",
|
|
880
|
+
"glob",
|
|
881
|
+
"plan"
|
|
882
|
+
]);
|
|
867
883
|
defaultRegistry.registerGroup("read-only", ["read", "grep", "glob"]);
|
|
868
|
-
defaultRegistry.registerGroup("safe", [
|
|
884
|
+
defaultRegistry.registerGroup("safe", [
|
|
885
|
+
"read",
|
|
886
|
+
"edit",
|
|
887
|
+
"write",
|
|
888
|
+
"grep",
|
|
889
|
+
"glob",
|
|
890
|
+
"plan"
|
|
891
|
+
]);
|
|
869
892
|
defaultRegistry.registerGroup("minimal", ["read", "write"]);
|
|
870
893
|
}
|
|
871
894
|
var ToolsetBuilder = class {
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
toolset,
|
|
19
19
|
writeParameters,
|
|
20
20
|
writeTool
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HXNSOWHU.js";
|
|
22
22
|
|
|
23
23
|
// src/index.ts
|
|
24
24
|
export * from "@cuylabs/agent-core";
|
|
@@ -36,9 +36,7 @@ import {
|
|
|
36
36
|
SkillRegistry as SkillRegistry2,
|
|
37
37
|
StaticSettings
|
|
38
38
|
} from "@cuylabs/agent-core";
|
|
39
|
-
import {
|
|
40
|
-
discoverSubAgentRoles as discoverSubAgentRoles2
|
|
41
|
-
} from "@cuylabs/agent-core/subagents";
|
|
39
|
+
import { discoverSubAgentRoles as discoverSubAgentRoles2 } from "@cuylabs/agent-core/subagents";
|
|
42
40
|
import { z } from "zod";
|
|
43
41
|
|
|
44
42
|
// src/create.ts
|
|
@@ -136,7 +134,8 @@ function resolveSubAgentOptions(subagents, cwd) {
|
|
|
136
134
|
});
|
|
137
135
|
roles = discovery.roles;
|
|
138
136
|
for (const { path: p, error } of discovery.errors) {
|
|
139
|
-
|
|
137
|
+
process.stderr.write(`[agents] ${p}: ${error}
|
|
138
|
+
`);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
if (roles.length === 0) {
|
package/dist/tools/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuylabs/agent-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Embeddable AI coding agent built on @cuylabs/agent-core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"ai": "^6.0.67",
|
|
26
26
|
"zod": "^3.24.0",
|
|
27
|
-
"@cuylabs/agent-core": "^0.
|
|
27
|
+
"@cuylabs/agent-core": "^0.12.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@ai-sdk/anthropic": "^3.0.0",
|