tuna-agent 0.1.52 → 0.1.54
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.
|
@@ -13,7 +13,7 @@ export class ClaudeCodeAdapter {
|
|
|
13
13
|
displayName = 'Claude Code';
|
|
14
14
|
agentConfig;
|
|
15
15
|
taskCount = 0;
|
|
16
|
-
static PATTERN_CHECK_INTERVAL =
|
|
16
|
+
static PATTERN_CHECK_INTERVAL = 1; // Check patterns every N tasks
|
|
17
17
|
// Per-agent state (one daemon handles multiple agents)
|
|
18
18
|
metricsMap = new Map();
|
|
19
19
|
currentAgentId = '';
|
package/dist/daemon/index.js
CHANGED
|
@@ -287,15 +287,15 @@ export async function startDaemon(config) {
|
|
|
287
287
|
// Create folder structure
|
|
288
288
|
fs.mkdirSync(path.join(folderPath, '.claude', 'commands'), { recursive: true });
|
|
289
289
|
fs.mkdirSync(path.join(folderPath, 'knowledge'), { recursive: true });
|
|
290
|
-
// Write CLAUDE.md only if it doesn't exist
|
|
291
|
-
const claudeMdPath = path.join(folderPath, 'CLAUDE.md');
|
|
290
|
+
// Write .claude/CLAUDE.md only if it doesn't exist
|
|
291
|
+
const claudeMdPath = path.join(folderPath, '.claude', 'CLAUDE.md');
|
|
292
292
|
if (!fs.existsSync(claudeMdPath)) {
|
|
293
293
|
const claudeContent = buildAgentClaudeMd(agentName, roleDesc);
|
|
294
294
|
fs.writeFileSync(claudeMdPath, claudeContent, 'utf-8');
|
|
295
|
-
console.log(`[Daemon] Created CLAUDE.md for "${agentName}"`);
|
|
295
|
+
console.log(`[Daemon] Created .claude/CLAUDE.md for "${agentName}"`);
|
|
296
296
|
}
|
|
297
297
|
else {
|
|
298
|
-
console.log(`[Daemon] CLAUDE.md already exists, skipping`);
|
|
298
|
+
console.log(`[Daemon] .claude/CLAUDE.md already exists, skipping`);
|
|
299
299
|
}
|
|
300
300
|
ws.send({ action: 'agent_folder_created', agent_id: agentId, success: true });
|
|
301
301
|
console.log(`[Daemon] Agent folder created: ${folderPath}`);
|