refactor: replace agent self-ID MCP with structured metadata generation

This commit is contained in:
Mohamed Boudra
2026-02-02 13:07:04 +07:00
parent bf9555829b
commit 3aecead839
29 changed files with 672 additions and 1658 deletions
-18
View File
@@ -1,6 +1,4 @@
import { Command } from 'commander'
import { homedir } from 'node:os'
import { join } from 'node:path'
import { createAgentCommand } from './commands/agent/index.js'
import { createDaemonCommand } from './commands/daemon/index.js'
import { createPermitCommand } from './commands/permit/index.js'
@@ -15,7 +13,6 @@ import { runInspectCommand } from './commands/agent/inspect.js'
import { runWaitCommand } from './commands/agent/wait.js'
import { runAttachCommand } from './commands/agent/attach.js'
import { withOutput } from './output/index.js'
import { runSelfIdBridge } from '@paseo/server/self-id-bridge'
const VERSION = '0.1.0'
@@ -140,20 +137,5 @@ export function createCli(): Command {
// Worktree commands
program.addCommand(createWorktreeCommand())
// Self-ID bridge command (for internal use by agents to call set_title/set_branch)
program
.command('self-id-bridge')
.description('Stdio-to-HTTP bridge for Agent Self-ID MCP (internal use)')
.option('--socket <path>', 'Unix socket path', join(process.env.PASEO_HOME ?? join(homedir(), '.paseo'), 'self-id-mcp.sock'))
.option('--agent-id <id>', 'Caller agent ID')
.option('--debug', 'Enable debug logging to stderr')
.action(async (options) => {
await runSelfIdBridge({
socketPath: options.socket,
agentId: options.agentId,
debug: options.debug,
})
})
return program
}