tuna-agent 0.1.49 → 0.1.51

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.
@@ -202,7 +202,7 @@ export async function startDaemon(config) {
202
202
  activeTasks++;
203
203
  currentTaskId = task.id;
204
204
  currentTaskAbort = new AbortController();
205
- console.log(`[Daemon] Received task: ${task.id} — ${task.description.slice(0, 80)} (attachments: ${task.attachments?.length ?? 0})`);
205
+ console.log(`[Daemon] Received task: ${task.id} agentId=${task.agentId || '(none)'} — ${task.description.slice(0, 80)} (attachments: ${task.attachments?.length ?? 0})`);
206
206
  // Update MCP config with the task's agent ID so knowledge server uses correct attribution
207
207
  if (task.agentId) {
208
208
  try {
package/dist/mcp/setup.js CHANGED
@@ -357,10 +357,8 @@ export function setupMcpConfig(config) {
357
357
  args: [browserServerPath, '--user-data-dir', path.join(process.env.HOME || '', '.config', 'tuna-browser', 'chrome-profile')],
358
358
  },
359
359
  };
360
- const mem0Config = buildMem0McpConfig(config.name);
361
- if (mem0Config) {
362
- mcpServers['mem0'] = mem0Config;
363
- }
360
+ // mem0 is NOT added here — it's added per-agent in writeAgentFolderMcpJson with the correct user_id.
361
+ // Adding it here (with machine name as user_id) would override the per-agent .mcp.json.
364
362
  const mcpConfig = { mcpServers };
365
363
  if (!fs.existsSync(MCP_CONFIG_DIR)) {
366
364
  fs.mkdirSync(MCP_CONFIG_DIR, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"