agent-recorder 0.0.1
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/README.md +133 -0
- package/dist/bundle.d.ts +8 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +131 -0
- package/dist/bundle.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics 2.js +205 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d 2.ts +50 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts +50 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js +205 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test 2.js +253 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js +253 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/analytics/session-analytics.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure 2.js +144 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d 2.ts +17 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts +17 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.js +144 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/configure.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose 2.js +141 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js +141 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/diagnose.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor 2.js +253 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js +253 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/doctor.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export 2.js +56 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d 2.ts +12 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts +12 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.js +56 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/export.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install 2.js +77 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d 2.ts +13 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts +13 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js +77 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/install.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs 2.js +40 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d 2.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.js +40 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/logs.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp 2.js +188 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d 2.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js +188 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/mock-mcp.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart 2.js +67 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d 2.ts +9 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts +9 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.js +67 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/restart.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions 2.js +333 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d 2.ts +52 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts +52 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js +333 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/sessions.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start 2.js +174 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d 2.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.js +174 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/start.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status 2.js +104 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.js +104 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/status.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop 2.js +89 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d 2.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.js +89 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/stop.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui 2.js +14 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.js +14 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/commands/tui.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths 2.js +117 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d 2.ts +55 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts +55 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js +117 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test 2.js +152 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js +152 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/config/claude-paths.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/index 2.js +194 -0
- package/vendor/node_modules/@agent-recorder/cli/index.d 2.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/index.d.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/index.js +194 -0
- package/vendor/node_modules/@agent-recorder/cli/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/package 2.json +17 -0
- package/vendor/node_modules/@agent-recorder/cli/package.json +17 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App 2.js +84 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d 2.ts +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.js +84 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/App.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api 2.js +105 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d 2.ts +31 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts +31 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.js +105 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/api.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel 2.js +45 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d 2.ts +11 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts +11 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js +45 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/EventInspectPanel.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header 2.js +13 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d 2.ts +17 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts +17 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js +13 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Header.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner 2.js +21 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d 2.ts +12 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts +12 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js +21 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Spinner.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge 2.js +50 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d 2.ts +16 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts +16 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js +50 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/StatusBadge.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table 2.js +20 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d 2.ts +21 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts +21 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js +20 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/Table.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index 2.js +8 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d 2.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts +8 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js +8 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/components/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream 2.js +75 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d 2.ts +22 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts +22 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js +75 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/hooks/useEventStream.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen 2.js +190 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d 2.ts +13 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts +13 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js +190 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionDetailScreen.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen 2.js +166 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d 2.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts +10 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js +166 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/SessionsScreen.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index 2.js +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d 2.ts +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js +6 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/cli/tui/screens/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/config 2.js +44 -0
- package/vendor/node_modules/@agent-recorder/core/config.d 2.ts +25 -0
- package/vendor/node_modules/@agent-recorder/core/config.d.ts +25 -0
- package/vendor/node_modules/@agent-recorder/core/config.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/config.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/config.js +44 -0
- package/vendor/node_modules/@agent-recorder/core/config.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/config.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/config.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/config.test.js +78 -0
- package/vendor/node_modules/@agent-recorder/core/config.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.d.ts +50 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.js +113 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.js +143 -0
- package/vendor/node_modules/@agent-recorder/core/daemon-paths.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/connection.d 2.ts +15 -0
- package/vendor/node_modules/@agent-recorder/core/db/connection.d.ts +15 -0
- package/vendor/node_modules/@agent-recorder/core/db/connection.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/connection.js +30 -0
- package/vendor/node_modules/@agent-recorder/core/db/connection.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts +65 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.js +117 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js +72 -0
- package/vendor/node_modules/@agent-recorder/core/db/events.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/index.d.ts +9 -0
- package/vendor/node_modules/@agent-recorder/core/db/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/index.js +9 -0
- package/vendor/node_modules/@agent-recorder/core/db/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts +17 -0
- package/vendor/node_modules/@agent-recorder/core/db/migrations.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/migrations.js +56 -0
- package/vendor/node_modules/@agent-recorder/core/db/migrations.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/sequences.d.ts +17 -0
- package/vendor/node_modules/@agent-recorder/core/db/sequences.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/sequences.js +41 -0
- package/vendor/node_modules/@agent-recorder/core/db/sequences.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts +17 -0
- package/vendor/node_modules/@agent-recorder/core/db/sessions.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/db/sessions.js +61 -0
- package/vendor/node_modules/@agent-recorder/core/db/sessions.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/index.d.ts +13 -0
- package/vendor/node_modules/@agent-recorder/core/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/index.js +13 -0
- package/vendor/node_modules/@agent-recorder/core/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.d.ts +42 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.js +122 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.test.js +136 -0
- package/vendor/node_modules/@agent-recorder/core/lockfile.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/001_initial 2.sql +40 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/001_initial.sql +40 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/002_session_sequences 2.sql +8 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/002_session_sequences.sql +8 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/003_add_tool_columns 2.sql +9 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/003_add_tool_columns.sql +9 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/004_add_cancelled_status 2.sql +23 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/004_add_cancelled_status.sql +23 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/005_add_error_category 2.sql +6 -0
- package/vendor/node_modules/@agent-recorder/core/migrations/005_add_error_category.sql +6 -0
- package/vendor/node_modules/@agent-recorder/core/package 2.json +18 -0
- package/vendor/node_modules/@agent-recorder/core/package.json +18 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d 2.ts +69 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d.ts +69 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/types/events.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/index 2.js +2 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.d.ts +3 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.js +2 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/session 2.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.d 2.ts +22 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.d.ts +22 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/types/session.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category 2.js +58 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d 2.ts +22 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts +22 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.js +58 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js +89 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/error-category.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index 2.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.d 2.ts +6 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.js +6 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d 2.ts +19 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts +19 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js +52 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/core/utils/redact.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/index 2.js +128 -0
- package/vendor/node_modules/@agent-recorder/service/index.d 2.ts +36 -0
- package/vendor/node_modules/@agent-recorder/service/index.d.ts +36 -0
- package/vendor/node_modules/@agent-recorder/service/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/index.js +128 -0
- package/vendor/node_modules/@agent-recorder/service/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index 2.js +7 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d 2.ts +7 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts +7 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.js +7 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/index.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy 2.js +223 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d 2.ts +26 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts +26 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js +223 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js +367 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/proxy.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder 2.js +62 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d 2.ts +31 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts +31 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js +62 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/recorder.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types 2.js +15 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d 2.ts +40 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts +40 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js +15 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/mcp/types.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/package 2.json +15 -0
- package/vendor/node_modules/@agent-recorder/service/package.json +15 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events 2.js +71 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.d 2.ts +11 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts +11 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.js +71 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/events.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health 2.js +18 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.d 2.ts +6 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts +6 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.js +18 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/health.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions 2.js +80 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d 2.ts +12 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts +12 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js +80 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/routes/sessions.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server 2.js +36 -0
- package/vendor/node_modules/@agent-recorder/service/server.d 2.ts +19 -0
- package/vendor/node_modules/@agent-recorder/service/server.d.ts +19 -0
- package/vendor/node_modules/@agent-recorder/service/server.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.js +36 -0
- package/vendor/node_modules/@agent-recorder/service/server.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.test 2.js +296 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.js +296 -0
- package/vendor/node_modules/@agent-recorder/service/server.test.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager 2.js +22 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.d 2.ts +16 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts +16 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.js +22 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.js.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test 2.js +61 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d 2.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts +5 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.d.ts.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.js +61 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.js 2.map +1 -0
- package/vendor/node_modules/@agent-recorder/service/session-manager.test.js.map +1 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Sessions list screen with table and navigation.
|
|
4
|
+
*/
|
|
5
|
+
import React, { useState, useEffect, useCallback } from "react";
|
|
6
|
+
import { Box, Text, useInput, useApp } from "ink";
|
|
7
|
+
import TextInput from "ink-text-input";
|
|
8
|
+
import { Header, Table, StatusBadge, Spinner, } from "../components/index.js";
|
|
9
|
+
import { fetchSessions, fetchEventCount } from "../api.js";
|
|
10
|
+
/**
|
|
11
|
+
* Format time ago.
|
|
12
|
+
*/
|
|
13
|
+
function formatTimeAgo(isoDate) {
|
|
14
|
+
const then = new Date(isoDate).getTime();
|
|
15
|
+
const now = Date.now();
|
|
16
|
+
const seconds = Math.floor((now - then) / 1000);
|
|
17
|
+
if (seconds < 60)
|
|
18
|
+
return `${seconds}s ago`;
|
|
19
|
+
if (seconds < 3600)
|
|
20
|
+
return `${Math.floor(seconds / 60)}m ago`;
|
|
21
|
+
if (seconds < 86400)
|
|
22
|
+
return `${Math.floor(seconds / 3600)}h ago`;
|
|
23
|
+
return `${Math.floor(seconds / 86400)}d ago`;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Format duration.
|
|
27
|
+
*/
|
|
28
|
+
function formatDuration(startedAt, endedAt) {
|
|
29
|
+
const start = new Date(startedAt).getTime();
|
|
30
|
+
const end = endedAt ? new Date(endedAt).getTime() : Date.now();
|
|
31
|
+
const seconds = Math.floor((end - start) / 1000);
|
|
32
|
+
if (seconds < 60)
|
|
33
|
+
return `${seconds}s`;
|
|
34
|
+
if (seconds < 3600) {
|
|
35
|
+
const m = Math.floor(seconds / 60);
|
|
36
|
+
const s = seconds % 60;
|
|
37
|
+
return `${m}m ${s}s`;
|
|
38
|
+
}
|
|
39
|
+
const h = Math.floor(seconds / 3600);
|
|
40
|
+
const m = Math.floor((seconds % 3600) / 60);
|
|
41
|
+
return `${h}h ${m}m`;
|
|
42
|
+
}
|
|
43
|
+
export function SessionsScreen({ baseUrl, onSelectSession, }) {
|
|
44
|
+
const { exit } = useApp();
|
|
45
|
+
const [sessions, setSessions] = useState([]);
|
|
46
|
+
const [loading, setLoading] = useState(true);
|
|
47
|
+
const [error, setError] = useState(null);
|
|
48
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
49
|
+
const [searchMode, setSearchMode] = useState(false);
|
|
50
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
51
|
+
const loadSessions = useCallback(async () => {
|
|
52
|
+
setLoading(true);
|
|
53
|
+
setError(null);
|
|
54
|
+
try {
|
|
55
|
+
const sessionsData = await fetchSessions(baseUrl);
|
|
56
|
+
// Fetch event counts for each session
|
|
57
|
+
const sessionsWithCounts = await Promise.all(sessionsData.map(async (session) => {
|
|
58
|
+
const eventCount = await fetchEventCount(baseUrl, session.id);
|
|
59
|
+
return { ...session, eventCount };
|
|
60
|
+
}));
|
|
61
|
+
setSessions(sessionsWithCounts);
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
setError(err instanceof Error ? err.message : "Failed to load sessions");
|
|
65
|
+
}
|
|
66
|
+
finally {
|
|
67
|
+
setLoading(false);
|
|
68
|
+
}
|
|
69
|
+
}, [baseUrl]);
|
|
70
|
+
// Initial load
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
loadSessions();
|
|
73
|
+
}, [loadSessions]);
|
|
74
|
+
// Auto-refresh every 2 seconds
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
const timer = setInterval(loadSessions, 2000);
|
|
77
|
+
return () => clearInterval(timer);
|
|
78
|
+
}, [loadSessions]);
|
|
79
|
+
// Filter sessions by search query
|
|
80
|
+
const filteredSessions = searchQuery
|
|
81
|
+
? sessions.filter((s) => s.id.toLowerCase().includes(searchQuery.toLowerCase()))
|
|
82
|
+
: sessions;
|
|
83
|
+
// Handle keyboard input
|
|
84
|
+
useInput((input, key) => {
|
|
85
|
+
if (searchMode) {
|
|
86
|
+
if (key.escape) {
|
|
87
|
+
setSearchMode(false);
|
|
88
|
+
setSearchQuery("");
|
|
89
|
+
}
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (input === "q") {
|
|
93
|
+
exit();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (input === "/" || input === "s") {
|
|
97
|
+
setSearchMode(true);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (input === "r") {
|
|
101
|
+
loadSessions();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (key.upArrow) {
|
|
105
|
+
setSelectedIndex((prev) => Math.max(0, prev - 1));
|
|
106
|
+
}
|
|
107
|
+
else if (key.downArrow) {
|
|
108
|
+
setSelectedIndex((prev) => Math.min(filteredSessions.length - 1, prev + 1));
|
|
109
|
+
}
|
|
110
|
+
else if (key.return) {
|
|
111
|
+
const selectedSession = filteredSessions[selectedIndex];
|
|
112
|
+
if (filteredSessions.length > 0 && selectedSession) {
|
|
113
|
+
onSelectSession(selectedSession.id);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
// Reset selection when filtered list changes
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (selectedIndex >= filteredSessions.length) {
|
|
120
|
+
setSelectedIndex(Math.max(0, filteredSessions.length - 1));
|
|
121
|
+
}
|
|
122
|
+
}, [filteredSessions.length, selectedIndex]);
|
|
123
|
+
const columns = [
|
|
124
|
+
{
|
|
125
|
+
key: "id",
|
|
126
|
+
header: "ID",
|
|
127
|
+
width: 14,
|
|
128
|
+
render: (row) => _jsxs(Text, { children: [row.id.slice(0, 12), "..."] }),
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: "status",
|
|
132
|
+
header: "Status",
|
|
133
|
+
width: 10,
|
|
134
|
+
render: (row) => (_jsxs(Text, { children: [_jsx(StatusBadge, { status: row.status }), " ", row.status] })),
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: "events",
|
|
138
|
+
header: "Events",
|
|
139
|
+
width: 8,
|
|
140
|
+
render: (row) => _jsx(Text, { children: row.eventCount }),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: "started",
|
|
144
|
+
header: "Started",
|
|
145
|
+
width: 12,
|
|
146
|
+
render: (row) => _jsx(Text, { dimColor: true, children: formatTimeAgo(row.startedAt) }),
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: "duration",
|
|
150
|
+
header: "Duration",
|
|
151
|
+
width: 10,
|
|
152
|
+
render: (row) => (_jsx(Text, { dimColor: true, children: formatDuration(row.startedAt, row.endedAt) })),
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
if (error) {
|
|
156
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { title: "Sessions", hints: [
|
|
157
|
+
{ key: "q", label: "quit" },
|
|
158
|
+
{ key: "r", label: "retry" },
|
|
159
|
+
] }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: "red", children: ["Error: ", error] }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press r to retry or q to quit." }) })] }));
|
|
160
|
+
}
|
|
161
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { title: "Sessions", hints: [
|
|
162
|
+
{ key: "q", label: "quit" },
|
|
163
|
+
{ key: "/", label: "search" },
|
|
164
|
+
] }), searchMode && (_jsxs(Box, { marginTop: 1, children: [_jsx(Text, { children: "Search: " }), _jsx(TextInput, { value: searchQuery, onChange: setSearchQuery, placeholder: "session id..." }), _jsx(Text, { dimColor: true, children: " (Esc to cancel)" })] })), _jsx(Box, { marginTop: 1, children: loading && sessions.length === 0 ? (_jsx(Spinner, { label: "Loading sessions..." })) : filteredSessions.length === 0 ? (_jsx(Text, { dimColor: true, children: searchQuery ? "No matching sessions" : "No sessions recorded" })) : (_jsx(Table, { columns: columns, data: filteredSessions, selectedIndex: selectedIndex, maxRows: 15 })) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { dimColor: true, children: ["[\u2191/\u2193] navigate [Enter] view [r] refresh", loading && sessions.length > 0 && " (refreshing...)"] }) })] }));
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=SessionsScreen.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sessions list screen with table and navigation.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
export interface SessionsScreenProps {
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
onSelectSession: (sessionId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function SessionsScreen({ baseUrl, onSelectSession, }: SessionsScreenProps): React.ReactElement;
|
|
10
|
+
//# sourceMappingURL=SessionsScreen.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sessions list screen with table and navigation.
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
export interface SessionsScreenProps {
|
|
6
|
+
baseUrl: string;
|
|
7
|
+
onSelectSession: (sessionId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function SessionsScreen({ baseUrl, onSelectSession, }: SessionsScreenProps): React.ReactElement;
|
|
10
|
+
//# sourceMappingURL=SessionsScreen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionsScreen.d.ts","sourceRoot":"","sources":["../../../src/tui/screens/SessionsScreen.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAuCD,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,eAAe,GAChB,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CA2M1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionsScreen.d.ts","sourceRoot":"","sources":["../../../src/tui/screens/SessionsScreen.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAuCD,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,eAAe,GAChB,EAAE,mBAAmB,GAAG,KAAK,CAAC,YAAY,CA2M1C"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Sessions list screen with table and navigation.
|
|
4
|
+
*/
|
|
5
|
+
import React, { useState, useEffect, useCallback } from "react";
|
|
6
|
+
import { Box, Text, useInput, useApp } from "ink";
|
|
7
|
+
import TextInput from "ink-text-input";
|
|
8
|
+
import { Header, Table, StatusBadge, Spinner, } from "../components/index.js";
|
|
9
|
+
import { fetchSessions, fetchEventCount } from "../api.js";
|
|
10
|
+
/**
|
|
11
|
+
* Format time ago.
|
|
12
|
+
*/
|
|
13
|
+
function formatTimeAgo(isoDate) {
|
|
14
|
+
const then = new Date(isoDate).getTime();
|
|
15
|
+
const now = Date.now();
|
|
16
|
+
const seconds = Math.floor((now - then) / 1000);
|
|
17
|
+
if (seconds < 60)
|
|
18
|
+
return `${seconds}s ago`;
|
|
19
|
+
if (seconds < 3600)
|
|
20
|
+
return `${Math.floor(seconds / 60)}m ago`;
|
|
21
|
+
if (seconds < 86400)
|
|
22
|
+
return `${Math.floor(seconds / 3600)}h ago`;
|
|
23
|
+
return `${Math.floor(seconds / 86400)}d ago`;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Format duration.
|
|
27
|
+
*/
|
|
28
|
+
function formatDuration(startedAt, endedAt) {
|
|
29
|
+
const start = new Date(startedAt).getTime();
|
|
30
|
+
const end = endedAt ? new Date(endedAt).getTime() : Date.now();
|
|
31
|
+
const seconds = Math.floor((end - start) / 1000);
|
|
32
|
+
if (seconds < 60)
|
|
33
|
+
return `${seconds}s`;
|
|
34
|
+
if (seconds < 3600) {
|
|
35
|
+
const m = Math.floor(seconds / 60);
|
|
36
|
+
const s = seconds % 60;
|
|
37
|
+
return `${m}m ${s}s`;
|
|
38
|
+
}
|
|
39
|
+
const h = Math.floor(seconds / 3600);
|
|
40
|
+
const m = Math.floor((seconds % 3600) / 60);
|
|
41
|
+
return `${h}h ${m}m`;
|
|
42
|
+
}
|
|
43
|
+
export function SessionsScreen({ baseUrl, onSelectSession, }) {
|
|
44
|
+
const { exit } = useApp();
|
|
45
|
+
const [sessions, setSessions] = useState([]);
|
|
46
|
+
const [loading, setLoading] = useState(true);
|
|
47
|
+
const [error, setError] = useState(null);
|
|
48
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
49
|
+
const [searchMode, setSearchMode] = useState(false);
|
|
50
|
+
const [searchQuery, setSearchQuery] = useState("");
|
|
51
|
+
const loadSessions = useCallback(async () => {
|
|
52
|
+
setLoading(true);
|
|
53
|
+
setError(null);
|
|
54
|
+
try {
|
|
55
|
+
const sessionsData = await fetchSessions(baseUrl);
|
|
56
|
+
// Fetch event counts for each session
|
|
57
|
+
const sessionsWithCounts = await Promise.all(sessionsData.map(async (session) => {
|
|
58
|
+
const eventCount = await fetchEventCount(baseUrl, session.id);
|
|
59
|
+
return { ...session, eventCount };
|
|
60
|
+
}));
|
|
61
|
+
setSessions(sessionsWithCounts);
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
setError(err instanceof Error ? err.message : "Failed to load sessions");
|
|
65
|
+
}
|
|
66
|
+
finally {
|
|
67
|
+
setLoading(false);
|
|
68
|
+
}
|
|
69
|
+
}, [baseUrl]);
|
|
70
|
+
// Initial load
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
loadSessions();
|
|
73
|
+
}, [loadSessions]);
|
|
74
|
+
// Auto-refresh every 2 seconds
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
const timer = setInterval(loadSessions, 2000);
|
|
77
|
+
return () => clearInterval(timer);
|
|
78
|
+
}, [loadSessions]);
|
|
79
|
+
// Filter sessions by search query
|
|
80
|
+
const filteredSessions = searchQuery
|
|
81
|
+
? sessions.filter((s) => s.id.toLowerCase().includes(searchQuery.toLowerCase()))
|
|
82
|
+
: sessions;
|
|
83
|
+
// Handle keyboard input
|
|
84
|
+
useInput((input, key) => {
|
|
85
|
+
if (searchMode) {
|
|
86
|
+
if (key.escape) {
|
|
87
|
+
setSearchMode(false);
|
|
88
|
+
setSearchQuery("");
|
|
89
|
+
}
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (input === "q") {
|
|
93
|
+
exit();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (input === "/" || input === "s") {
|
|
97
|
+
setSearchMode(true);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (input === "r") {
|
|
101
|
+
loadSessions();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (key.upArrow) {
|
|
105
|
+
setSelectedIndex((prev) => Math.max(0, prev - 1));
|
|
106
|
+
}
|
|
107
|
+
else if (key.downArrow) {
|
|
108
|
+
setSelectedIndex((prev) => Math.min(filteredSessions.length - 1, prev + 1));
|
|
109
|
+
}
|
|
110
|
+
else if (key.return) {
|
|
111
|
+
const selectedSession = filteredSessions[selectedIndex];
|
|
112
|
+
if (filteredSessions.length > 0 && selectedSession) {
|
|
113
|
+
onSelectSession(selectedSession.id);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
// Reset selection when filtered list changes
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (selectedIndex >= filteredSessions.length) {
|
|
120
|
+
setSelectedIndex(Math.max(0, filteredSessions.length - 1));
|
|
121
|
+
}
|
|
122
|
+
}, [filteredSessions.length, selectedIndex]);
|
|
123
|
+
const columns = [
|
|
124
|
+
{
|
|
125
|
+
key: "id",
|
|
126
|
+
header: "ID",
|
|
127
|
+
width: 14,
|
|
128
|
+
render: (row) => _jsxs(Text, { children: [row.id.slice(0, 12), "..."] }),
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: "status",
|
|
132
|
+
header: "Status",
|
|
133
|
+
width: 10,
|
|
134
|
+
render: (row) => (_jsxs(Text, { children: [_jsx(StatusBadge, { status: row.status }), " ", row.status] })),
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: "events",
|
|
138
|
+
header: "Events",
|
|
139
|
+
width: 8,
|
|
140
|
+
render: (row) => _jsx(Text, { children: row.eventCount }),
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: "started",
|
|
144
|
+
header: "Started",
|
|
145
|
+
width: 12,
|
|
146
|
+
render: (row) => _jsx(Text, { dimColor: true, children: formatTimeAgo(row.startedAt) }),
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: "duration",
|
|
150
|
+
header: "Duration",
|
|
151
|
+
width: 10,
|
|
152
|
+
render: (row) => (_jsx(Text, { dimColor: true, children: formatDuration(row.startedAt, row.endedAt) })),
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
if (error) {
|
|
156
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { title: "Sessions", hints: [
|
|
157
|
+
{ key: "q", label: "quit" },
|
|
158
|
+
{ key: "r", label: "retry" },
|
|
159
|
+
] }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { color: "red", children: ["Error: ", error] }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Press r to retry or q to quit." }) })] }));
|
|
160
|
+
}
|
|
161
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, { title: "Sessions", hints: [
|
|
162
|
+
{ key: "q", label: "quit" },
|
|
163
|
+
{ key: "/", label: "search" },
|
|
164
|
+
] }), searchMode && (_jsxs(Box, { marginTop: 1, children: [_jsx(Text, { children: "Search: " }), _jsx(TextInput, { value: searchQuery, onChange: setSearchQuery, placeholder: "session id..." }), _jsx(Text, { dimColor: true, children: " (Esc to cancel)" })] })), _jsx(Box, { marginTop: 1, children: loading && sessions.length === 0 ? (_jsx(Spinner, { label: "Loading sessions..." })) : filteredSessions.length === 0 ? (_jsx(Text, { dimColor: true, children: searchQuery ? "No matching sessions" : "No sessions recorded" })) : (_jsx(Table, { columns: columns, data: filteredSessions, selectedIndex: selectedIndex, maxRows: 15 })) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { dimColor: true, children: ["[\u2191/\u2193] navigate [Enter] view [r] refresh", loading && sessions.length > 0 && " (refreshing...)"] }) })] }));
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=SessionsScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SessionsScreen.js","sourceRoot":"","sources":["../../../src/tui/screens/SessionsScreen.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,EAAE,Q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,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,GACzD,CACR,CAAC,CAAC,CAAC,CACF,KAAC,KAAK,IACJ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,gBAAgB,EACtB,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,EAAE,GACX,CACH,GACG,EAEN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,MAAC,IAAI,IAAC,QAAQ,wEAEX,OAAO,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,kBAAkB,IAChD,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/screens/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/screens/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/screens/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EACL,mBAAmB,GAEpB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/screens/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAA4B,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EACL,mBAAmB,GAEpB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management.
|
|
3
|
+
* Reads from environment variables with sensible defaults.
|
|
4
|
+
*/
|
|
5
|
+
import { homedir } from "node:os";
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
/** Get the default database path in user's home directory */
|
|
8
|
+
export function getDefaultDbPath() {
|
|
9
|
+
return join(homedir(), ".agent-recorder", "agent-recorder.sqlite");
|
|
10
|
+
}
|
|
11
|
+
const DEFAULT_REDACT_KEYS = [
|
|
12
|
+
"authorization",
|
|
13
|
+
"Authorization",
|
|
14
|
+
"api_key",
|
|
15
|
+
"apikey",
|
|
16
|
+
"token",
|
|
17
|
+
"access_token",
|
|
18
|
+
"refresh_token",
|
|
19
|
+
"secret",
|
|
20
|
+
"password",
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Load configuration from environment variables.
|
|
24
|
+
*/
|
|
25
|
+
export function loadConfig() {
|
|
26
|
+
const listenPort = parseInt(process.env["AR_LISTEN_PORT"] ?? "8787", 10);
|
|
27
|
+
const dbPath = process.env["AR_DB_PATH"] ?? getDefaultDbPath();
|
|
28
|
+
const redactKeysRaw = process.env["AR_REDACT_KEYS"];
|
|
29
|
+
const redactKeys = redactKeysRaw
|
|
30
|
+
? redactKeysRaw.split(",").map((k) => k.trim())
|
|
31
|
+
: DEFAULT_REDACT_KEYS;
|
|
32
|
+
const mcpProxyPort = parseInt(process.env["AR_MCP_PROXY_PORT"] ?? "8788", 10);
|
|
33
|
+
const downstreamMcpUrl = process.env["AR_DOWNSTREAM_MCP_URL"] ?? null;
|
|
34
|
+
const debugProxy = process.env["AR_DEBUG_PROXY"] === "1";
|
|
35
|
+
return {
|
|
36
|
+
listenPort,
|
|
37
|
+
dbPath,
|
|
38
|
+
redactKeys,
|
|
39
|
+
mcpProxyPort,
|
|
40
|
+
downstreamMcpUrl,
|
|
41
|
+
debugProxy,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management.
|
|
3
|
+
* Reads from environment variables with sensible defaults.
|
|
4
|
+
*/
|
|
5
|
+
/** Get the default database path in user's home directory */
|
|
6
|
+
export declare function getDefaultDbPath(): string;
|
|
7
|
+
export interface Config {
|
|
8
|
+
/** Port for the daemon to listen on (default: 8787) */
|
|
9
|
+
listenPort: number;
|
|
10
|
+
/** Path to SQLite database file (default: ~/.agent-recorder/agent-recorder.sqlite) */
|
|
11
|
+
dbPath: string;
|
|
12
|
+
/** Keys to redact from JSON payloads */
|
|
13
|
+
redactKeys: string[];
|
|
14
|
+
/** Port for MCP proxy to listen on (default: 8788) */
|
|
15
|
+
mcpProxyPort: number;
|
|
16
|
+
/** URL of downstream MCP server to forward requests to (optional) */
|
|
17
|
+
downstreamMcpUrl: string | null;
|
|
18
|
+
/** Enable debug logging for MCP proxy (tools/call only) */
|
|
19
|
+
debugProxy: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Load configuration from environment variables.
|
|
23
|
+
*/
|
|
24
|
+
export declare function loadConfig(): Config;
|
|
25
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management.
|
|
3
|
+
* Reads from environment variables with sensible defaults.
|
|
4
|
+
*/
|
|
5
|
+
/** Get the default database path in user's home directory */
|
|
6
|
+
export declare function getDefaultDbPath(): string;
|
|
7
|
+
export interface Config {
|
|
8
|
+
/** Port for the daemon to listen on (default: 8787) */
|
|
9
|
+
listenPort: number;
|
|
10
|
+
/** Path to SQLite database file (default: ~/.agent-recorder/agent-recorder.sqlite) */
|
|
11
|
+
dbPath: string;
|
|
12
|
+
/** Keys to redact from JSON payloads */
|
|
13
|
+
redactKeys: string[];
|
|
14
|
+
/** Port for MCP proxy to listen on (default: 8788) */
|
|
15
|
+
mcpProxyPort: number;
|
|
16
|
+
/** URL of downstream MCP server to forward requests to (optional) */
|
|
17
|
+
downstreamMcpUrl: string | null;
|
|
18
|
+
/** Enable debug logging for MCP proxy (tools/call only) */
|
|
19
|
+
debugProxy: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Load configuration from environment variables.
|
|
23
|
+
*/
|
|
24
|
+
export declare function loadConfig(): Config;
|
|
25
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,MAAM,WAAW,MAAM;IACrB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IAEnB,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IAEf,wCAAwC;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,2DAA2D;IAC3D,UAAU,EAAE,OAAO,CAAC;CACrB;AAcD;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAmBnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,MAAM,WAAW,MAAM;IACrB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IAEnB,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IAEf,wCAAwC;IACxC,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB,qEAAqE;IACrE,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,2DAA2D;IAC3D,UAAU,EAAE,OAAO,CAAC;CACrB;AAcD;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAmBnC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration management.
|
|
3
|
+
* Reads from environment variables with sensible defaults.
|
|
4
|
+
*/
|
|
5
|
+
import { homedir } from "node:os";
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
/** Get the default database path in user's home directory */
|
|
8
|
+
export function getDefaultDbPath() {
|
|
9
|
+
return join(homedir(), ".agent-recorder", "agent-recorder.sqlite");
|
|
10
|
+
}
|
|
11
|
+
const DEFAULT_REDACT_KEYS = [
|
|
12
|
+
"authorization",
|
|
13
|
+
"Authorization",
|
|
14
|
+
"api_key",
|
|
15
|
+
"apikey",
|
|
16
|
+
"token",
|
|
17
|
+
"access_token",
|
|
18
|
+
"refresh_token",
|
|
19
|
+
"secret",
|
|
20
|
+
"password",
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* Load configuration from environment variables.
|
|
24
|
+
*/
|
|
25
|
+
export function loadConfig() {
|
|
26
|
+
const listenPort = parseInt(process.env["AR_LISTEN_PORT"] ?? "8787", 10);
|
|
27
|
+
const dbPath = process.env["AR_DB_PATH"] ?? getDefaultDbPath();
|
|
28
|
+
const redactKeysRaw = process.env["AR_REDACT_KEYS"];
|
|
29
|
+
const redactKeys = redactKeysRaw
|
|
30
|
+
? redactKeysRaw.split(",").map((k) => k.trim())
|
|
31
|
+
: DEFAULT_REDACT_KEYS;
|
|
32
|
+
const mcpProxyPort = parseInt(process.env["AR_MCP_PROXY_PORT"] ?? "8788", 10);
|
|
33
|
+
const downstreamMcpUrl = process.env["AR_DOWNSTREAM_MCP_URL"] ?? null;
|
|
34
|
+
const debugProxy = process.env["AR_DEBUG_PROXY"] === "1";
|
|
35
|
+
return {
|
|
36
|
+
listenPort,
|
|
37
|
+
dbPath,
|
|
38
|
+
redactKeys,
|
|
39
|
+
mcpProxyPort,
|
|
40
|
+
downstreamMcpUrl,
|
|
41
|
+
debugProxy,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB;IAC9B,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,uBAAuB,CAAC,CAAC;AACrE,CAAC;AAsBD,MAAM,mBAAmB,GAAG;IAC1B,eAAe;IACf,eAAe;IACf,SAAS;IACT,QAAQ;IACR,OAAO;IACP,cAAc;IACd,eAAe;IACf,QAAQ;IACR,UAAU;CACX,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,gBAAgB,EAAE,CAAC;IAC/D,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACpD,MAAM,UAAU,GAAG,aAAa;QAC9B,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;Q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