@archon-claw/cli 0.5.1 → 0.6.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/dist/config.js +8 -2
- package/dist/public/assets/{chat-input-D-F2IIDK.js → chat-input-BNct1ILJ.js} +34 -34
- package/dist/public/assets/{embed-XPDwGdtM.js → embed-D4R7hpA_.js} +1 -1
- package/dist/public/assets/{main-DDb5hJ5F.js → main-C4meEBxF.js} +2 -2
- package/dist/public/embed.html +3 -3
- package/dist/public/index.html +3 -3
- package/dist/server.d.ts +5 -1
- package/dist/server.js +57 -12
- package/dist/validator/plugins/agent-dir.js +1 -17
- package/package.json +3 -2
package/dist/config.js
CHANGED
|
@@ -55,9 +55,15 @@ export async function loadAgentConfig(agentDir) {
|
|
|
55
55
|
catch {
|
|
56
56
|
// skills/ is optional
|
|
57
57
|
}
|
|
58
|
-
// Load tool schemas
|
|
58
|
+
// Load tool schemas (tools/ is optional for pure-conversation agents)
|
|
59
59
|
const toolsDir = path.join(absDir, "tools");
|
|
60
|
-
|
|
60
|
+
let toolFiles = [];
|
|
61
|
+
try {
|
|
62
|
+
toolFiles = (await fs.readdir(toolsDir)).filter((f) => f.endsWith(".json"));
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// tools/ doesn't exist — agent has no tools
|
|
66
|
+
}
|
|
61
67
|
const tools = await Promise.all(toolFiles.map(async (file) => {
|
|
62
68
|
const content = await fs.readFile(path.join(toolsDir, file), "utf-8");
|
|
63
69
|
return JSON.parse(content);
|