tuna-agent 0.1.32 → 0.1.34

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.
@@ -9,6 +9,7 @@ export interface AgentMetrics {
9
9
  avgDurationMs: number;
10
10
  reflectionCount: number;
11
11
  reflectionSkipCount: number;
12
+ memoryCount: number;
12
13
  patternsLearnedCount: number;
13
14
  rulesCount: number;
14
15
  lastTaskAt: string | null;
@@ -23,6 +23,7 @@ export class ClaudeCodeAdapter {
23
23
  avgDurationMs: 0,
24
24
  reflectionCount: 0,
25
25
  reflectionSkipCount: 0,
26
+ memoryCount: 0,
26
27
  patternsLearnedCount: 0,
27
28
  rulesCount: 0,
28
29
  lastTaskAt: null,
@@ -727,6 +728,7 @@ export class ClaudeCodeAdapter {
727
728
  console.log(`[Reflection] Storing: "${aiReflection.substring(0, 100)}..."`);
728
729
  await callMem0AddMemory(aiReflection, this.agentConfig.name);
729
730
  this.metrics.reflectionCount++;
731
+ this.metrics.memoryCount++;
730
732
  this.metrics.lastReflectionAt = new Date().toISOString();
731
733
  console.log(`[Reflection] Stored for task ${task.id}`);
732
734
  }
package/dist/mcp/setup.js CHANGED
@@ -308,6 +308,9 @@ export function getMcpConfigPath() {
308
308
  export function writeAgentFolderMcpConfig(agentFolderPath, config) {
309
309
  const knowledgeServerPath = path.join(__dirname, 'knowledge-server.js');
310
310
  const browserServerPath = path.join(__dirname, 'browser-server.js');
311
+ // Derive agent name from folder path (e.g. ~/agents/co-founder → "co-founder")
312
+ // config.name is the machine name, NOT the agent name
313
+ const agentName = path.basename(agentFolderPath) || config.name;
311
314
  try {
312
315
  const mcpJsonPath = path.join(agentFolderPath, '.mcp.json');
313
316
  // Read existing .mcp.json to preserve other servers (e.g. playwright)
@@ -332,7 +335,7 @@ export function writeAgentFolderMcpConfig(agentFolderPath, config) {
332
335
  args: [browserServerPath, '--user-data-dir', path.join(process.env.HOME || '', '.config', 'tuna-browser', 'chrome-profile')],
333
336
  },
334
337
  };
335
- const mem0Config = buildMem0McpConfig(config.name);
338
+ const mem0Config = buildMem0McpConfig(agentName);
336
339
  if (mem0Config) {
337
340
  newServers['mem0'] = mem0Config;
338
341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"