agent-recorder 0.0.1 → 0.0.9
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/package.json +2 -2
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/configure-wrap.d.ts +15 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure-wrap.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure-wrap.js +233 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure-wrap.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js +9 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/index.js +11 -0
- package/vendor/node_modules/@agent-recorder/cli/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/config.d.ts +4 -0
- package/vendor/node_modules/@agent-recorder/core/config.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/config.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/config.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts +3 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.js +8 -3
- package/vendor/node_modules/@agent-recorder/core/db/events.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js +34 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts +2 -2
- package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/db/migrations.js +14 -6
- package/vendor/node_modules/@agent-recorder/core/db/migrations.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/index.d.ts +1 -1
- package/vendor/node_modules/@agent-recorder/core/index.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/index.js +1 -1
- package/vendor/node_modules/@agent-recorder/core/index.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/core/migrations/006_add_upstream_key.sql +7 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d.ts +2 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js +49 -4
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js +165 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts.map +1 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js +5 -2
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js.map +1 -1
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics 2.js +0 -205
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d 2.ts +0 -50
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test 2.js +0 -253
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/configure 2.js +0 -144
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d 2.ts +0 -17
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose 2.js +0 -141
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor 2.js +0 -253
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/export 2.js +0 -56
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d 2.ts +0 -12
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/export.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/install 2.js +0 -77
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d 2.ts +0 -13
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/logs 2.js +0 -40
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d 2.ts +0 -8
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp 2.js +0 -188
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d 2.ts +0 -10
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/restart 2.js +0 -67
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d 2.ts +0 -9
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions 2.js +0 -333
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d 2.ts +0 -52
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/start 2.js +0 -174
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d 2.ts +0 -10
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/start.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/status 2.js +0 -104
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/status.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/stop 2.js +0 -89
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d 2.ts +0 -8
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/tui 2.js +0 -14
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths 2.js +0 -117
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d 2.ts +0 -55
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test 2.js +0 -152
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/index 2.js +0 -194
- package/vendor/node_modules/@agent-recorder/cli/index.d 2.ts +0 -10
- package/vendor/node_modules/@agent-recorder/cli/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/package 2.json +0 -17
- package/vendor/node_modules/@agent-recorder/cli/tui/App 2.js +0 -84
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d 2.ts +0 -6
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/App.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/api 2.js +0 -105
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d 2.ts +0 -31
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/api.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel 2.js +0 -45
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d 2.ts +0 -11
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header 2.js +0 -13
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d 2.ts +0 -17
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner 2.js +0 -21
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d 2.ts +0 -12
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge 2.js +0 -50
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d 2.ts +0 -16
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table 2.js +0 -20
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d 2.ts +0 -21
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index 2.js +0 -8
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d 2.ts +0 -8
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream 2.js +0 -75
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d 2.ts +0 -22
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen 2.js +0 -190
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d 2.ts +0 -13
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen 2.js +0 -166
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d 2.ts +0 -10
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index 2.js +0 -6
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d 2.ts +0 -6
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/config 2.js +0 -44
- package/vendor/node_modules/@agent-recorder/core/config.d 2.ts +0 -25
- package/vendor/node_modules/@agent-recorder/core/config.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/db/connection.d 2.ts +0 -15
- package/vendor/node_modules/@agent-recorder/core/migrations/001_initial 2.sql +0 -40
- package/vendor/node_modules/@agent-recorder/core/migrations/002_session_sequences 2.sql +0 -8
- package/vendor/node_modules/@agent-recorder/core/migrations/003_add_tool_columns 2.sql +0 -9
- package/vendor/node_modules/@agent-recorder/core/migrations/004_add_cancelled_status 2.sql +0 -23
- package/vendor/node_modules/@agent-recorder/core/migrations/005_add_error_category 2.sql +0 -6
- package/vendor/node_modules/@agent-recorder/core/package 2.json +0 -18
- package/vendor/node_modules/@agent-recorder/core/types/events.d 2.ts +0 -69
- package/vendor/node_modules/@agent-recorder/core/types/index 2.js +0 -2
- package/vendor/node_modules/@agent-recorder/core/types/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/types/session 2.js +0 -6
- package/vendor/node_modules/@agent-recorder/core/types/session.d 2.ts +0 -22
- package/vendor/node_modules/@agent-recorder/core/types/session.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/types/session.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/error-category 2.js +0 -58
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d 2.ts +0 -22
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/index 2.js +0 -6
- package/vendor/node_modules/@agent-recorder/core/utils/index.d 2.ts +0 -6
- package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d 2.ts +0 -19
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/index 2.js +0 -128
- package/vendor/node_modules/@agent-recorder/service/index.d 2.ts +0 -36
- package/vendor/node_modules/@agent-recorder/service/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/index 2.js +0 -7
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d 2.ts +0 -7
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/index.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy 2.js +0 -223
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d 2.ts +0 -26
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder 2.js +0 -62
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d 2.ts +0 -31
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/types 2.js +0 -15
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d 2.ts +0 -40
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/package 2.json +0 -15
- package/vendor/node_modules/@agent-recorder/service/routes/events 2.js +0 -71
- package/vendor/node_modules/@agent-recorder/service/routes/events.d 2.ts +0 -11
- package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/routes/events.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/routes/health 2.js +0 -18
- package/vendor/node_modules/@agent-recorder/service/routes/health.d 2.ts +0 -6
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/routes/health.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/routes/sessions 2.js +0 -80
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d 2.ts +0 -12
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/server 2.js +0 -36
- package/vendor/node_modules/@agent-recorder/service/server.d 2.ts +0 -19
- package/vendor/node_modules/@agent-recorder/service/server.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/server.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/server.test 2.js +0 -296
- package/vendor/node_modules/@agent-recorder/service/server.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/service/server.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/session-manager 2.js +0 -22
- package/vendor/node_modules/@agent-recorder/service/session-manager.d 2.ts +0 -16
- package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/session-manager.js 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/session-manager.test 2.js +0 -61
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d 2.ts +0 -5
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts 2.map +0 -1
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.js 2.map +0 -1
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @agent-recorder/cli
|
|
4
|
-
*
|
|
5
|
-
* CLI for Agent Recorder.
|
|
6
|
-
* Commands: start, stop, restart, status, logs, sessions, export, install,
|
|
7
|
-
* doctor, configure, diagnose, mock-mcp
|
|
8
|
-
*/
|
|
9
|
-
import { Command } from "commander";
|
|
10
|
-
import { startCommand } from "./commands/start.js";
|
|
11
|
-
import { stopCommand } from "./commands/stop.js";
|
|
12
|
-
import { restartCommand } from "./commands/restart.js";
|
|
13
|
-
import { statusCommand } from "./commands/status.js";
|
|
14
|
-
import { logsCommand } from "./commands/logs.js";
|
|
15
|
-
import { sessionsListCommand, sessionsShowCommand, sessionsCurrentCommand, sessionsTailCommand, sessionsViewCommand, sessionsStatsCommand, sessionsGrepCommand, sessionsSummarizeCommand, } from "./commands/sessions.js";
|
|
16
|
-
import { exportCommand } from "./commands/export.js";
|
|
17
|
-
import { installCommand } from "./commands/install.js";
|
|
18
|
-
import { doctorCommand } from "./commands/doctor.js";
|
|
19
|
-
import { configureClaudeCommand, configureShowCommand, } from "./commands/configure.js";
|
|
20
|
-
import { diagnoseMcpCommand } from "./commands/diagnose.js";
|
|
21
|
-
import { mockMcpCommand } from "./commands/mock-mcp.js";
|
|
22
|
-
import { tuiCommand } from "./commands/tui.js";
|
|
23
|
-
const program = new Command();
|
|
24
|
-
program
|
|
25
|
-
.name("agent-recorder")
|
|
26
|
-
.description("Local-first flight recorder for Claude Code")
|
|
27
|
-
.version("0.0.1");
|
|
28
|
-
program
|
|
29
|
-
.command("start")
|
|
30
|
-
.description("Start the daemon")
|
|
31
|
-
.option("-e, --env-file <path>", "Load environment variables from file")
|
|
32
|
-
.option("-d, --daemon", "Run in background (daemon mode)")
|
|
33
|
-
.option("-f, --force", "Force restart if already running")
|
|
34
|
-
.action(async (options) => {
|
|
35
|
-
await startCommand(options);
|
|
36
|
-
});
|
|
37
|
-
program
|
|
38
|
-
.command("stop")
|
|
39
|
-
.description("Stop the daemon")
|
|
40
|
-
.option("-f, --force", "Force kill if not responding")
|
|
41
|
-
.action(async (options) => {
|
|
42
|
-
await stopCommand(options);
|
|
43
|
-
});
|
|
44
|
-
program
|
|
45
|
-
.command("restart")
|
|
46
|
-
.description("Restart the daemon")
|
|
47
|
-
.option("-e, --env-file <path>", "Load environment variables from file")
|
|
48
|
-
.option("-f, --force", "Force kill if not responding")
|
|
49
|
-
.action(async (options) => {
|
|
50
|
-
await restartCommand(options);
|
|
51
|
-
});
|
|
52
|
-
program
|
|
53
|
-
.command("status")
|
|
54
|
-
.description("Show daemon status")
|
|
55
|
-
.action(async () => {
|
|
56
|
-
await statusCommand();
|
|
57
|
-
});
|
|
58
|
-
program
|
|
59
|
-
.command("logs")
|
|
60
|
-
.description("Show daemon logs")
|
|
61
|
-
.option("-t, --tail <n>", "Show last N lines (default 50)")
|
|
62
|
-
.action(async (options) => {
|
|
63
|
-
await logsCommand(options);
|
|
64
|
-
});
|
|
65
|
-
// Sessions subcommand group
|
|
66
|
-
const sessions = program.command("sessions").description("Manage sessions");
|
|
67
|
-
sessions
|
|
68
|
-
.command("list")
|
|
69
|
-
.description("List all sessions")
|
|
70
|
-
.option("-s, --status <status>", "Filter by status (active|completed|error|cancelled)")
|
|
71
|
-
.action(async (options) => {
|
|
72
|
-
await sessionsListCommand(options);
|
|
73
|
-
});
|
|
74
|
-
sessions
|
|
75
|
-
.command("show <id>")
|
|
76
|
-
.description("Show session details")
|
|
77
|
-
.action(async (id) => {
|
|
78
|
-
await sessionsShowCommand(id);
|
|
79
|
-
});
|
|
80
|
-
sessions
|
|
81
|
-
.command("current")
|
|
82
|
-
.description("Get current active session ID")
|
|
83
|
-
.action(async () => {
|
|
84
|
-
await sessionsCurrentCommand();
|
|
85
|
-
});
|
|
86
|
-
sessions
|
|
87
|
-
.command("tail <id>")
|
|
88
|
-
.description("Tail session events (like tail -f)")
|
|
89
|
-
.option("-i, --interval <ms>", "Poll interval in milliseconds", "1000")
|
|
90
|
-
.option("-n, --n <count>", "Number of recent events to show initially", "50")
|
|
91
|
-
.action(async (id, options) => {
|
|
92
|
-
await sessionsTailCommand(id, options);
|
|
93
|
-
});
|
|
94
|
-
sessions
|
|
95
|
-
.command("view <id>")
|
|
96
|
-
.description("View session events with header summary")
|
|
97
|
-
.option("-t, --tail <n>", "Show last N events (default 200)")
|
|
98
|
-
.option("-f, --follow", "Follow new events (like tail -f)")
|
|
99
|
-
.option("-i, --interval <ms>", "Poll interval for follow mode", "1000")
|
|
100
|
-
.action(async (id, options) => {
|
|
101
|
-
await sessionsViewCommand(id, options);
|
|
102
|
-
});
|
|
103
|
-
sessions
|
|
104
|
-
.command("stats <id>")
|
|
105
|
-
.description("Show session statistics")
|
|
106
|
-
.action(async (id) => {
|
|
107
|
-
await sessionsStatsCommand(id);
|
|
108
|
-
});
|
|
109
|
-
sessions
|
|
110
|
-
.command("grep <id>")
|
|
111
|
-
.description("Search/filter session events")
|
|
112
|
-
.option("--tool <name>", "Filter by tool name")
|
|
113
|
-
.option("--status <status>", "Filter by status (success|error|timeout|running|cancelled)")
|
|
114
|
-
.option("--error <category>", "Filter by error category")
|
|
115
|
-
.option("--since-seq <n>", "Only events after sequence N")
|
|
116
|
-
.option("--json", "Output as JSON")
|
|
117
|
-
.action(async (id, options) => {
|
|
118
|
-
await sessionsGrepCommand(id, options);
|
|
119
|
-
});
|
|
120
|
-
sessions
|
|
121
|
-
.command("summarize <id>")
|
|
122
|
-
.description("Summarize session (safe metadata-only)")
|
|
123
|
-
.option("-f, --format <format>", "Output format: text or json", "text")
|
|
124
|
-
.action(async (id, options) => {
|
|
125
|
-
await sessionsSummarizeCommand(id, options);
|
|
126
|
-
});
|
|
127
|
-
// Export command
|
|
128
|
-
program
|
|
129
|
-
.command("export <id>")
|
|
130
|
-
.description("Export session events to JSON or JSONL")
|
|
131
|
-
.option("-f, --format <format>", "Output format: json or jsonl", "jsonl")
|
|
132
|
-
.option("-o, --out <path>", "Output file path (stdout if not specified)")
|
|
133
|
-
.action(async (id, options) => {
|
|
134
|
-
await exportCommand(id, options);
|
|
135
|
-
});
|
|
136
|
-
// Install command
|
|
137
|
-
program
|
|
138
|
-
.command("install")
|
|
139
|
-
.description("Set up ~/.agent-recorder/ and print configuration")
|
|
140
|
-
.action(async () => {
|
|
141
|
-
await installCommand();
|
|
142
|
-
});
|
|
143
|
-
// Doctor command
|
|
144
|
-
program
|
|
145
|
-
.command("doctor")
|
|
146
|
-
.description("Check health and show config")
|
|
147
|
-
.action(async () => {
|
|
148
|
-
await doctorCommand();
|
|
149
|
-
});
|
|
150
|
-
// TUI command
|
|
151
|
-
program
|
|
152
|
-
.command("tui")
|
|
153
|
-
.description("Interactive session explorer")
|
|
154
|
-
.action(async () => {
|
|
155
|
-
await tuiCommand();
|
|
156
|
-
});
|
|
157
|
-
// Configure command group
|
|
158
|
-
const configure = program
|
|
159
|
-
.command("configure")
|
|
160
|
-
.description("Configure integrations");
|
|
161
|
-
configure
|
|
162
|
-
.command("claude")
|
|
163
|
-
.description("Configure Claude Code MCP settings")
|
|
164
|
-
.option("--path <path>", "Custom config file path")
|
|
165
|
-
.option("--legacy", "Use legacy config path (~/.config/claude/mcp.json)")
|
|
166
|
-
.option("--dry-run", "Show changes without writing")
|
|
167
|
-
.action(async (options) => {
|
|
168
|
-
await configureClaudeCommand(options);
|
|
169
|
-
});
|
|
170
|
-
configure
|
|
171
|
-
.command("show")
|
|
172
|
-
.description("Show current Claude Code configuration")
|
|
173
|
-
.action(async () => {
|
|
174
|
-
await configureShowCommand();
|
|
175
|
-
});
|
|
176
|
-
// Diagnose command group
|
|
177
|
-
const diagnose = program.command("diagnose").description("Diagnostic tools");
|
|
178
|
-
diagnose
|
|
179
|
-
.command("mcp")
|
|
180
|
-
.description("Run MCP proxy diagnostics")
|
|
181
|
-
.action(async () => {
|
|
182
|
-
await diagnoseMcpCommand();
|
|
183
|
-
});
|
|
184
|
-
// Mock MCP server
|
|
185
|
-
program
|
|
186
|
-
.command("mock-mcp")
|
|
187
|
-
.description("Start a mock MCP server for testing")
|
|
188
|
-
.option("-p, --port <port>", "Port to listen on", "9999")
|
|
189
|
-
.option("--print-env", "Print export command and exit")
|
|
190
|
-
.action(async (options) => {
|
|
191
|
-
await mockMcpCommand(options);
|
|
192
|
-
});
|
|
193
|
-
program.parse();
|
|
194
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;GAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,gBAAgB,CAAC;KACtB,WAAW,CAAC,6CAA6C,CAAC;KAC1D,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO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wCAAwC,CAAC;KACrD,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,oBAAoB,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEL,yBAAyB;AACzB,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAE7E,QAAQ;KACL,OAAO,CAAC,KAAK,CAAC;KACd,WAAW,CAAC,2BAA2B,CAAC;KACxC,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,kBAAkB,EAAE,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEL,kBAAkB;AAClB,OAAO;KACJ,OAAO,CAAC,UAAU,CAAC;KACnB,WAAW,CAAC,qCAAqC,CAAC;KAClD,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,CAAC;KACxD,MAAM,CAAC,aAAa,EAAE,+BAA+B,CAAC;KACtD,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agent-recorder/cli",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"exports": {
|
|
6
|
-
".": {
|
|
7
|
-
"types": "./index.d.ts",
|
|
8
|
-
"import": "./index.js"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"commander": "^13.0.0",
|
|
13
|
-
"ink": "^5.0.1",
|
|
14
|
-
"ink-text-input": "^6.0.0",
|
|
15
|
-
"react": "^18.3.1"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Main TUI application with screen routing.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useState, useEffect } from "react";
|
|
6
|
-
import { Box, Text } from "ink";
|
|
7
|
-
import { loadConfig } from "@agent-recorder/core";
|
|
8
|
-
import { SessionsScreen, SessionDetailScreen } from "./screens/index.js";
|
|
9
|
-
import { EventInspectPanel } from "./components/EventInspectPanel.js";
|
|
10
|
-
import { checkDaemonHealth } from "./api.js";
|
|
11
|
-
import { Spinner } from "./components/index.js";
|
|
12
|
-
export function App() {
|
|
13
|
-
const config = loadConfig();
|
|
14
|
-
const baseUrl = `http://127.0.0.1:${config.listenPort}`;
|
|
15
|
-
const [state, setState] = useState({
|
|
16
|
-
screen: "loading",
|
|
17
|
-
selectedSessionId: null,
|
|
18
|
-
selectedEvent: null,
|
|
19
|
-
error: null,
|
|
20
|
-
});
|
|
21
|
-
// Check daemon health on startup
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
async function checkHealth() {
|
|
24
|
-
const health = await checkDaemonHealth(baseUrl);
|
|
25
|
-
if (health.running) {
|
|
26
|
-
setState((prev) => ({ ...prev, screen: "sessions" }));
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
setState((prev) => ({
|
|
30
|
-
...prev,
|
|
31
|
-
screen: "error",
|
|
32
|
-
error: health.error ?? "Daemon not running",
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
checkHealth();
|
|
37
|
-
}, [baseUrl]);
|
|
38
|
-
const handleSelectSession = (sessionId) => {
|
|
39
|
-
setState((prev) => ({
|
|
40
|
-
...prev,
|
|
41
|
-
screen: "detail",
|
|
42
|
-
selectedSessionId: sessionId,
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
const handleBack = () => {
|
|
46
|
-
if (state.screen === "inspect") {
|
|
47
|
-
setState((prev) => ({
|
|
48
|
-
...prev,
|
|
49
|
-
screen: "detail",
|
|
50
|
-
selectedEvent: null,
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
setState((prev) => ({
|
|
55
|
-
...prev,
|
|
56
|
-
screen: "sessions",
|
|
57
|
-
selectedSessionId: null,
|
|
58
|
-
}));
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const handleInspectEvent = (event) => {
|
|
62
|
-
setState((prev) => ({
|
|
63
|
-
...prev,
|
|
64
|
-
screen: "inspect",
|
|
65
|
-
selectedEvent: event,
|
|
66
|
-
}));
|
|
67
|
-
};
|
|
68
|
-
// Render based on current screen
|
|
69
|
-
switch (state.screen) {
|
|
70
|
-
case "loading":
|
|
71
|
-
return (_jsx(Box, { flexDirection: "column", children: _jsx(Spinner, { label: "Connecting to daemon..." }) }));
|
|
72
|
-
case "error":
|
|
73
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { bold: true, color: "red", children: "Connection Error" }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: state.error }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Make sure the daemon is running:" }) }), _jsx(Box, { marginLeft: 2, children: _jsx(Text, { color: "cyan", children: "agent-recorder start --daemon" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press Ctrl+C to exit." }) })] }));
|
|
74
|
-
case "sessions":
|
|
75
|
-
return (_jsx(SessionsScreen, { baseUrl: baseUrl, onSelectSession: handleSelectSession }));
|
|
76
|
-
case "detail":
|
|
77
|
-
return (_jsx(SessionDetailScreen, { baseUrl: baseUrl, sessionId: state.selectedSessionId, onBack: handleBack, onInspectEvent: handleInspectEvent }));
|
|
78
|
-
case "inspect":
|
|
79
|
-
return (_jsx(EventInspectPanel, { event: state.selectedEvent, onClose: handleBack }));
|
|
80
|
-
default:
|
|
81
|
-
return _jsx(Text, { children: "Unknown screen" });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=App.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/tui/App.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,wBAAgB,GAAG,IAAI,KAAK,CAAC,YAAY,CAoHxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../../src/tui/App.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAWhD,MAAM,UAAU,GAAG;IACjB,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;IAC5B,MAAM,OAAO,GAAG,oBAAoB,MAAM,CAAC,UAAU,EAAE,CAAC;IAExD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAW;QAC3C,MAAM,EAAE,SAAS;QACjB,iBAAiB,EAAE,IAAI;QACvB,aAAa,EAAE,IAAI;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;IAEH,iCAAiC;IACjC,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,UAAU,WAAW;YACxB,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAChD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EA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
|
-
/**
|
|
2
|
-
* TUI API client for fetching sessions and events.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Fetch all sessions from the API.
|
|
6
|
-
*/
|
|
7
|
-
export async function fetchSessions(baseUrl) {
|
|
8
|
-
try {
|
|
9
|
-
const response = await fetch(`${baseUrl}/api/sessions`, {
|
|
10
|
-
signal: AbortSignal.timeout(5000),
|
|
11
|
-
});
|
|
12
|
-
if (!response.ok) {
|
|
13
|
-
return [];
|
|
14
|
-
}
|
|
15
|
-
return (await response.json());
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
return [];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Fetch a single session by ID.
|
|
23
|
-
*/
|
|
24
|
-
export async function fetchSession(baseUrl, id) {
|
|
25
|
-
try {
|
|
26
|
-
const response = await fetch(`${baseUrl}/api/sessions/${id}`, {
|
|
27
|
-
signal: AbortSignal.timeout(5000),
|
|
28
|
-
});
|
|
29
|
-
if (!response.ok) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return (await response.json());
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Fetch events for a session with optional pagination.
|
|
40
|
-
*/
|
|
41
|
-
export async function fetchEvents(baseUrl, sessionId, options) {
|
|
42
|
-
try {
|
|
43
|
-
const params = new URLSearchParams();
|
|
44
|
-
if (options?.after !== undefined) {
|
|
45
|
-
params.set("after", String(options.after));
|
|
46
|
-
}
|
|
47
|
-
if (options?.limit !== undefined) {
|
|
48
|
-
params.set("limit", String(options.limit));
|
|
49
|
-
}
|
|
50
|
-
const url = `${baseUrl}/api/sessions/${sessionId}/events${params.toString() ? `?${params.toString()}` : ""}`;
|
|
51
|
-
const response = await fetch(url, {
|
|
52
|
-
signal: AbortSignal.timeout(5000),
|
|
53
|
-
});
|
|
54
|
-
if (!response.ok) {
|
|
55
|
-
return [];
|
|
56
|
-
}
|
|
57
|
-
return (await response.json());
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Fetch event count for a session.
|
|
65
|
-
*/
|
|
66
|
-
export async function fetchEventCount(baseUrl, sessionId) {
|
|
67
|
-
try {
|
|
68
|
-
const response = await fetch(`${baseUrl}/api/sessions/${sessionId}/events/count`, {
|
|
69
|
-
signal: AbortSignal.timeout(5000),
|
|
70
|
-
});
|
|
71
|
-
if (!response.ok) {
|
|
72
|
-
return 0;
|
|
73
|
-
}
|
|
74
|
-
const data = (await response.json());
|
|
75
|
-
return data.count;
|
|
76
|
-
}
|
|
77
|
-
catch {
|
|
78
|
-
return 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Check if the daemon is running by hitting the health endpoint.
|
|
83
|
-
*/
|
|
84
|
-
export async function checkDaemonHealth(baseUrl) {
|
|
85
|
-
try {
|
|
86
|
-
const response = await fetch(`${baseUrl}/api/health`, {
|
|
87
|
-
signal: AbortSignal.timeout(3000),
|
|
88
|
-
});
|
|
89
|
-
if (response.ok) {
|
|
90
|
-
return { running: true };
|
|
91
|
-
}
|
|
92
|
-
return { running: false, error: `HTTP ${response.status}` };
|
|
93
|
-
}
|
|
94
|
-
catch (err) {
|
|
95
|
-
const error = err;
|
|
96
|
-
if (error.cause?.code === "ECONNREFUSED") {
|
|
97
|
-
return { running: false, error: "Daemon not running" };
|
|
98
|
-
}
|
|
99
|
-
if (error.name === "TimeoutError") {
|
|
100
|
-
return { running: false, error: "Connection timeout" };
|
|
101
|
-
}
|
|
102
|
-
return { running: false, error: "Connection failed" };
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=api.js.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TUI API client for fetching sessions and events.
|
|
3
|
-
*/
|
|
4
|
-
import type { Session, BaseEvent } from "@agent-recorder/core";
|
|
5
|
-
/**
|
|
6
|
-
* Fetch all sessions from the API.
|
|
7
|
-
*/
|
|
8
|
-
export declare function fetchSessions(baseUrl: string): Promise<Session[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Fetch a single session by ID.
|
|
11
|
-
*/
|
|
12
|
-
export declare function fetchSession(baseUrl: string, id: string): Promise<Session | null>;
|
|
13
|
-
/**
|
|
14
|
-
* Fetch events for a session with optional pagination.
|
|
15
|
-
*/
|
|
16
|
-
export declare function fetchEvents(baseUrl: string, sessionId: string, options?: {
|
|
17
|
-
after?: number;
|
|
18
|
-
limit?: number;
|
|
19
|
-
}): Promise<BaseEvent[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Fetch event count for a session.
|
|
22
|
-
*/
|
|
23
|
-
export declare function fetchEventCount(baseUrl: string, sessionId: string): Promise<number>;
|
|
24
|
-
/**
|
|
25
|
-
* Check if the daemon is running by hitting the health endpoint.
|
|
26
|
-
*/
|
|
27
|
-
export declare function checkDaemonHealth(baseUrl: string): Promise<{
|
|
28
|
-
running: boolean;
|
|
29
|
-
error?: string;
|
|
30
|
-
}>;
|
|
31
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/tui/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAYvE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAYzB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAC/B,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,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;QACzD,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;IACxD,CAAC;AACH,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Event inspect panel for viewing event details.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useState } from "react";
|
|
6
|
-
import { Box, Text, useInput } from "ink";
|
|
7
|
-
import { Header, StatusBadge } from "./index.js";
|
|
8
|
-
/**
|
|
9
|
-
* Format duration in ms.
|
|
10
|
-
*/
|
|
11
|
-
function formatDurationMs(startedAt, endedAt) {
|
|
12
|
-
if (!endedAt)
|
|
13
|
-
return "running...";
|
|
14
|
-
const start = new Date(startedAt).getTime();
|
|
15
|
-
const end = new Date(endedAt).getTime();
|
|
16
|
-
const ms = end - start;
|
|
17
|
-
if (ms < 1000)
|
|
18
|
-
return `${ms}ms`;
|
|
19
|
-
if (ms < 60000)
|
|
20
|
-
return `${(ms / 1000).toFixed(2)}s`;
|
|
21
|
-
return `${Math.floor(ms / 60000)}m ${Math.floor((ms % 60000) / 1000)}s`;
|
|
22
|
-
}
|
|
23
|
-
function Row({ label, value, color, }) {
|
|
24
|
-
if (color) {
|
|
25
|
-
return (_jsxs(Box, { children: [_jsx(Box, { width: 14, children: _jsxs(Text, { dimColor: true, children: [label, ":"] }) }), _jsx(Text, { color: color, children: value })] }));
|
|
26
|
-
}
|
|
27
|
-
return (_jsxs(Box, { children: [_jsx(Box, { width: 14, children: _jsxs(Text, { dimColor: true, children: [label, ":"] }) }), _jsx(Text, { children: value })] }));
|
|
28
|
-
}
|
|
29
|
-
export function EventInspectPanel({ event, onClose, }) {
|
|
30
|
-
const [showJson, setShowJson] = useState(false);
|
|
31
|
-
useInput((input, key) => {
|
|
32
|
-
if (key.escape) {
|
|
33
|
-
onClose();
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (input === "j") {
|
|
37
|
-
setShowJson((prev) => !prev);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { title: "Event Details", hints: [
|
|
41
|
-
{ key: "Esc", label: "close" },
|
|
42
|
-
{ key: "j", label: "toggle JSON" },
|
|
43
|
-
] }), _jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Row, { label: "ID", value: event.id }), _jsx(Row, { label: "Type", value: event.eventType }), event.toolName && _jsx(Row, { label: "Tool", value: event.toolName }), event.mcpMethod && _jsx(Row, { label: "MCP Method", value: event.mcpMethod }), event.skillName && _jsx(Row, { label: "Skill", value: event.skillName }), event.agentName && _jsx(Row, { label: "Agent", value: event.agentName }), _jsx(Row, { label: "Started", value: event.startedAt }), _jsx(Row, { label: "Ended", value: event.endedAt ?? "still running" }), _jsx(Row, { label: "Duration", value: formatDurationMs(event.startedAt, event.endedAt) }), _jsx(Box, { marginTop: 1, children: _jsx(Row, { label: "Status", value: _jsxs(Text, { children: [_jsx(StatusBadge, { status: event.status }), " ", event.status] }) }) }), event.errorCategory && (_jsx(Row, { label: "Error", value: event.errorCategory, color: "red" })), event.parentEventId && (_jsx(Row, { label: "Parent", value: event.parentEventId.slice(0, 12) + "..." }))] }), showJson && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { dimColor: true, children: "─".repeat(66) }), _jsx(Text, { bold: true, children: "Raw Event JSON" }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { dimColor: true, wrap: "truncate", children: [JSON.stringify(event, null, 2).slice(0, 1000), JSON.stringify(event).length > 1000 && "..."] }) })] })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "[j] toggle JSON [Esc] close" }) })] }));
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=EventInspectPanel.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event inspect panel for viewing event details.
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import type { BaseEvent } from "@agent-recorder/core";
|
|
6
|
-
export interface EventInspectPanelProps {
|
|
7
|
-
event: BaseEvent;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function EventInspectPanel({ event, onClose, }: EventInspectPanelProps): React.ReactElement;
|
|
11
|
-
//# sourceMappingURL=EventInspectPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventInspectPanel.d.ts","sourceRoot":"","sources":["../../../src/tui/components/EventInspectPanel.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAkDD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,GACR,EAAE,sBAAsB,GAAG,KAAK,CAAC,YAAY,CAiF7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventInspectPanel.js","sourceRoot":"","sources":["../../../src/tui/components/EventInspectPanel.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAOjD;;GAEG;AACH,SAAS,gBAAgB,CAAC,SAAiB,EAAE,OAAsB;IACjE,IAAI,CAAC,OAAO;QAAE,OAAO,YAAY,CAAC;IAClC,MAAM,KAAK,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AC,CAAC,MAAM,GAAG,IAAI,IAAI,KAAK,IACxC,GACH,IACF,CACP,EAED,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,QAAQ,kDAAmC,GAC7C,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Header component with title and keyboard hints.
|
|
4
|
-
*/
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { Box, Text } from "ink";
|
|
7
|
-
/**
|
|
8
|
-
* Screen header with title and keyboard hints.
|
|
9
|
-
*/
|
|
10
|
-
export function Header({ title, hints = [] }) {
|
|
11
|
-
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Text, { bold: true, children: title }), _jsx(Box, { children: hints.map((hint, i) => (_jsxs(Text, { children: [_jsxs(Text, { color: "cyan", children: ["[", hint.key, "]"] }), " ", _jsx(Text, { dimColor: true, children: hint.label }), i < hints.length - 1 ? " " : ""] }, hint.key))) })] }), _jsx(Text, { dimColor: true, children: "─".repeat(66) })] }));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Header component with title and keyboard hints.
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
export interface KeyHint {
|
|
6
|
-
key: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}
|
|
9
|
-
export interface HeaderProps {
|
|
10
|
-
title: string;
|
|
11
|
-
hints?: KeyHint[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Screen header with title and keyboard hints.
|
|
15
|
-
*/
|
|
16
|
-
export declare function Header({ title, hints }: HeaderProps): React.ReactElement;
|
|
17
|
-
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,KAAU,EAAE,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CAkB7E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/tui/components/Header.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAYhC;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAe;IACvD,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,GAAG,IAAC,cAAc,EAAC,eAAe,aACjC,KAAC,IAAI,IAAC,IAAI,kBAAE,KAAK,GAAQ,EACzB,KAAC,GAAG,cACD,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,MAAC,IAAI,eACH,MAAC,IAAI,IAAC,KAAK,EAAC,MAAM,kBAAG,IAAI,CAAC,GAAG,SAAS,EAAC,GAAG,EAC1C,KAAC,IAAI,IAAC,QAAQ,kBAAE,IAAI,CAAC,KAAK,GAAQ,EACjC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAHxB,IAAI,CAAC,GAAG,CAIZ,CACR,CAAC,GACE,IACF,EACN,KAAC,IAAI,IAAC,QAAQ,kBAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAQ,IAClC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Loading spinner component.
|
|
4
|
-
*/
|
|
5
|
-
import React, { useState, useEffect } from "react";
|
|
6
|
-
import { Text } from "ink";
|
|
7
|
-
const frames = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
|
8
|
-
/**
|
|
9
|
-
* Animated loading spinner.
|
|
10
|
-
*/
|
|
11
|
-
export function Spinner({ label }) {
|
|
12
|
-
const [frame, setFrame] = useState(0);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
const interval = setInterval(() => {
|
|
15
|
-
setFrame((prev) => (prev + 1) % frames.length);
|
|
16
|
-
}, 80);
|
|
17
|
-
return () => clearInterval(interval);
|
|
18
|
-
}, []);
|
|
19
|
-
return (_jsxs(Text, { children: [_jsx(Text, { color: "cyan", children: frames[frame] }), label && _jsxs(Text, { children: [" ", label] })] }));
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loading spinner component.
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
export interface SpinnerProps {
|
|
6
|
-
label?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Animated loading spinner.
|
|
10
|
-
*/
|
|
11
|
-
export declare function Spinner({ label }: SpinnerProps): React.ReactElement;
|
|
12
|
-
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/tui/components/Spinner.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY,CAgBnE"}
|