@archon-claw/cli 0.6.0 → 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);
@@ -112,23 +112,7 @@ export const agentDirPlugin = {
112
112
  file: plugin.pattern,
113
113
  });
114
114
  }
115
- // Special case: tool plugin needs at least 1 tool file
116
- if (plugin.name === "tool") {
117
- // Check if the tools/ directory exists at all
118
- const toolsDir = path.join(dirPath, "tools");
119
- try {
120
- const stat = await fs.stat(toolsDir);
121
- if (!stat.isDirectory()) {
122
- errors.push({ message: "tools is not a directory", severity: "error", file: "tools" });
123
- }
124
- else {
125
- errors.push({ message: "No tool definitions found", severity: "error", file: "tools/" });
126
- }
127
- }
128
- catch {
129
- errors.push({ message: "Missing required directory: tools/", severity: "error", file: "tools/" });
130
- }
131
- }
115
+ // tools/ is optional a pure-conversation agent may have no tools
132
116
  continue;
133
117
  }
134
118
  // Validate each matched file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archon-claw/cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "AI Agent CLI",
5
5
  "type": "module",
6
6
  "bin": {