@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 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
- const toolFiles = (await fs.readdir(toolsDir)).filter((f) => f.endsWith(".json"));
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);