repoburg 1.3.201 → 1.3.204
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/agent-pane/backend/dist/index.js +2714 -32395
- package/agent-pane/backend/dist/server.js +45304 -0
- package/askuser-after-step5-postgres-selected.png +0 -0
- package/askuser-after-step7-answer-sent.png +0 -0
- package/askuser-card-visible.png +0 -0
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.d.ts +16 -0
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js +87 -0
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js.map +1 -1
- package/backend/dist/src/agent-runtime/agent-runtime.types.d.ts +16 -1
- package/backend/dist/src/app.controller.d.ts +1 -0
- package/backend/dist/src/app.service.d.ts +1 -0
- package/backend/dist/src/app.service.js +4 -1
- package/backend/dist/src/app.service.js.map +1 -1
- package/backend/dist/src/interactive-chat/chat.service.d.ts +4 -0
- package/backend/dist/src/interactive-chat/chat.service.js +21 -1
- package/backend/dist/src/interactive-chat/chat.service.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/invoke-subagent.handler.js +12 -1
- package/backend/dist/src/llm-orchestration/action-handlers/invoke-subagent.handler.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.d.ts +1 -0
- package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.js +1 -0
- package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js +2 -0
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/daemon/dist/agentPane.js +128 -0
- package/daemon/dist/agentPane.spec.js +183 -0
- package/daemon/dist/api/services.js +4 -0
- package/daemon/dist/index.js +28 -8
- package/daemon/dist/serviceManager.js +30 -11
- package/daemon/dist/serviceManager.spec.js +26 -0
- package/daemon/dist/workspace-validation.js +63 -0
- package/daemon/dist/workspace-validation.spec.js +63 -0
- package/daemon/package.json +1 -1
- package/package.json +15 -2
- package/r2-step4-apple-banana.png +0 -0
- package/r2-step5-after-rewind-apple-last.png +0 -0
- package/r2-step7-apple-cherry.png +0 -0
- package/r2-step8-cherry-menu-no-restore.png +0 -0
- package/r3-step3-live-task-card-running.png +0 -0
- package/r3-step4-after-completion.png +0 -0
- package/r3-step5-persistence-after-reload.png +0 -0
- package/r3-step6-tasks-tab-card.png +0 -0
- package/reverify-answered-state-answer-sent.png +0 -0
- package/reverify-card-visible-after-completion.png +0 -0
- package/rewind-step3-apple-banana-turns.png +0 -0
- package/rewind-step5-ui-unchanged-after-confirmed-rewind.png +0 -0
- package/rewind-step6-apple-menu-no-restore.png +0 -0
- package/rewind-step7-final-turnlist-unchanged.png +0 -0
- package/rewind-step7-negative-error-toast.png +0 -0
- package/rewind-step7-negative-error-toast2.png +0 -0
- package/subagent-r2-step5-turn-after-reload-no-card.png +0 -0
- package/subagent-r2-step6-tasks-panel-card.png +0 -0
- package/subagent-step3-tasks-tab-done-card.png +0 -0
- package/subagent-step4-turn-stuck-no-cards.png +0 -0
- package/agent-pane/.prettierignore +0 -5
- package/agent-pane/.prettierrc +0 -8
- package/agent-pane/backend/coverage/base.css +0 -224
- package/agent-pane/backend/coverage/block-navigation.js +0 -87
- package/agent-pane/backend/coverage/clover.xml +0 -887
- package/agent-pane/backend/coverage/coverage-final.json +0 -10
- package/agent-pane/backend/coverage/favicon.png +0 -0
- package/agent-pane/backend/coverage/index.html +0 -176
- package/agent-pane/backend/coverage/prettify.css +0 -1
- package/agent-pane/backend/coverage/prettify.js +0 -2
- package/agent-pane/backend/coverage/sort-arrow-sprite.png +0 -0
- package/agent-pane/backend/coverage/sorter.js +0 -210
- package/agent-pane/backend/coverage/src/codex/codex-provider.ts.html +0 -1402
- package/agent-pane/backend/coverage/src/codex/index.html +0 -131
- package/agent-pane/backend/coverage/src/codex/item-mapper.ts.html +0 -331
- package/agent-pane/backend/coverage/src/db/index.html +0 -131
- package/agent-pane/backend/coverage/src/db/index.ts.html +0 -436
- package/agent-pane/backend/coverage/src/db/schema.ts.html +0 -175
- package/agent-pane/backend/coverage/src/index.html +0 -116
- package/agent-pane/backend/coverage/src/index.ts.html +0 -262
- package/agent-pane/backend/coverage/src/routes/index.html +0 -146
- package/agent-pane/backend/coverage/src/routes/sessions.ts.html +0 -991
- package/agent-pane/backend/coverage/src/routes/turns.ts.html +0 -256
- package/agent-pane/backend/coverage/src/routes/workspaces.ts.html +0 -406
- package/agent-pane/backend/coverage/src/ws/index.html +0 -116
- package/agent-pane/backend/coverage/src/ws/index.ts.html +0 -238
- package/agent-pane/backend/data.db +0 -0
- package/agent-pane/backend/data.db-shm +0 -0
- package/agent-pane/backend/data.db-wal +0 -0
- package/agent-pane/backend/package-lock.json +0 -5945
- package/agent-pane/backend/package.json +0 -33
- package/agent-pane/backend/scripts/backfill-from-jsonl.ts +0 -206
- package/agent-pane/backend/scripts/import-session-from-jsonl.ts +0 -264
- package/agent-pane/backend/src/claude/claude-message-mapper.test.ts +0 -271
- package/agent-pane/backend/src/claude/claude-message-mapper.ts +0 -259
- package/agent-pane/backend/src/claude/claude-provider.test.ts +0 -455
- package/agent-pane/backend/src/claude/claude-provider.ts +0 -1319
- package/agent-pane/backend/src/claude/claude-types.ts +0 -45
- package/agent-pane/backend/src/codex/app-server-client.test.ts +0 -183
- package/agent-pane/backend/src/codex/app-server-client.ts +0 -247
- package/agent-pane/backend/src/codex/app-server-types.ts +0 -259
- package/agent-pane/backend/src/codex/codex-provider-runtime-config.test.ts +0 -56
- package/agent-pane/backend/src/codex/codex-provider.test.ts +0 -60
- package/agent-pane/backend/src/codex/codex-provider.ts +0 -619
- package/agent-pane/backend/src/codex/item-mapper.test.ts +0 -221
- package/agent-pane/backend/src/codex/item-mapper.ts +0 -86
- package/agent-pane/backend/src/codex/shared-app-server.ts +0 -25
- package/agent-pane/backend/src/db/index.test.ts +0 -125
- package/agent-pane/backend/src/db/index.ts +0 -230
- package/agent-pane/backend/src/db/schema.ts +0 -34
- package/agent-pane/backend/src/index.ts +0 -89
- package/agent-pane/backend/src/integration/__fixtures__/cancel-turn.json +0 -29
- package/agent-pane/backend/src/integration/__fixtures__/delta-streaming.json +0 -40
- package/agent-pane/backend/src/integration/__fixtures__/failed-turn.json +0 -16
- package/agent-pane/backend/src/integration/__fixtures__/mcp-tool-call.json +0 -60
- package/agent-pane/backend/src/integration/__fixtures__/missing-item-started.json +0 -34
- package/agent-pane/backend/src/integration/__fixtures__/multi-item-turn.json +0 -85
- package/agent-pane/backend/src/integration/__fixtures__/multi-turn.json +0 -48
- package/agent-pane/backend/src/integration/__fixtures__/simple-turn.json +0 -35
- package/agent-pane/backend/src/integration/delta-streaming.test.ts +0 -130
- package/agent-pane/backend/src/integration/helpers/app-server-mock.ts +0 -272
- package/agent-pane/backend/src/integration/helpers/test-app.ts +0 -110
- package/agent-pane/backend/src/integration/helpers/ws-capture.ts +0 -64
- package/agent-pane/backend/src/integration/item-lifecycle.test.ts +0 -133
- package/agent-pane/backend/src/integration/mcp-tool-call.test.ts +0 -102
- package/agent-pane/backend/src/integration/missing-item-started.test.ts +0 -91
- package/agent-pane/backend/src/integration/multi-turn.test.ts +0 -121
- package/agent-pane/backend/src/integration/session-operations.test.ts +0 -175
- package/agent-pane/backend/src/integration/threads-claude-fork.test.ts +0 -241
- package/agent-pane/backend/src/integration/threads.test.ts +0 -309
- package/agent-pane/backend/src/integration/title-generation.test.ts +0 -109
- package/agent-pane/backend/src/integration/turn-cancel.test.ts +0 -111
- package/agent-pane/backend/src/integration/turn-failure.test.ts +0 -97
- package/agent-pane/backend/src/integration/turn-lifecycle.test.ts +0 -141
- package/agent-pane/backend/src/providers/index.ts +0 -16
- package/agent-pane/backend/src/providers/registry.test.ts +0 -92
- package/agent-pane/backend/src/providers/registry.ts +0 -43
- package/agent-pane/backend/src/providers/runtime-provider.ts +0 -43
- package/agent-pane/backend/src/repoburg/action-mapping.ts +0 -216
- package/agent-pane/backend/src/repoburg/agent-runtime-client.test.ts +0 -271
- package/agent-pane/backend/src/repoburg/agent-runtime-client.ts +0 -262
- package/agent-pane/backend/src/repoburg/backend-resolver.test.ts +0 -271
- package/agent-pane/backend/src/repoburg/backend-resolver.ts +0 -246
- package/agent-pane/backend/src/repoburg/repoburg-client.test.ts +0 -159
- package/agent-pane/backend/src/repoburg/repoburg-client.ts +0 -181
- package/agent-pane/backend/src/repoburg/repoburg-provider.test.ts +0 -723
- package/agent-pane/backend/src/repoburg/repoburg-provider.ts +0 -422
- package/agent-pane/backend/src/repoburg/turn-projector.test.ts +0 -475
- package/agent-pane/backend/src/repoburg/turn-projector.ts +0 -537
- package/agent-pane/backend/src/routes/files.ts +0 -31
- package/agent-pane/backend/src/routes/mcp.ts +0 -33
- package/agent-pane/backend/src/routes/models.test.ts +0 -92
- package/agent-pane/backend/src/routes/models.ts +0 -16
- package/agent-pane/backend/src/routes/plugins.ts +0 -40
- package/agent-pane/backend/src/routes/providers.test.ts +0 -86
- package/agent-pane/backend/src/routes/providers.ts +0 -86
- package/agent-pane/backend/src/routes/sessions.test.ts +0 -558
- package/agent-pane/backend/src/routes/sessions.ts +0 -504
- package/agent-pane/backend/src/routes/skills.test.ts +0 -114
- package/agent-pane/backend/src/routes/skills.ts +0 -70
- package/agent-pane/backend/src/routes/threads.ts +0 -323
- package/agent-pane/backend/src/routes/turns.test.ts +0 -196
- package/agent-pane/backend/src/routes/turns.ts +0 -103
- package/agent-pane/backend/src/routes/workspaces.test.ts +0 -197
- package/agent-pane/backend/src/routes/workspaces.ts +0 -128
- package/agent-pane/backend/src/ws/index.test.ts +0 -107
- package/agent-pane/backend/src/ws/index.ts +0 -51
- package/agent-pane/backend/tsconfig.json +0 -25
- package/agent-pane/backend/vitest.config.ts +0 -20
- package/agent-pane/eslint.config.js +0 -33
- package/agent-pane/frontend/coverage/base.css +0 -224
- package/agent-pane/frontend/coverage/block-navigation.js +0 -87
- package/agent-pane/frontend/coverage/clover.xml +0 -2962
- package/agent-pane/frontend/coverage/coverage-final.json +0 -37
- package/agent-pane/frontend/coverage/favicon.png +0 -0
- package/agent-pane/frontend/coverage/index.html +0 -251
- package/agent-pane/frontend/coverage/prettify.css +0 -1
- package/agent-pane/frontend/coverage/prettify.js +0 -2
- package/agent-pane/frontend/coverage/sort-arrow-sprite.png +0 -0
- package/agent-pane/frontend/coverage/sorter.js +0 -210
- package/agent-pane/frontend/coverage/src/App.tsx.html +0 -217
- package/agent-pane/frontend/coverage/src/AppInitializer.tsx.html +0 -223
- package/agent-pane/frontend/coverage/src/api/client.ts.html +0 -187
- package/agent-pane/frontend/coverage/src/api/index.html +0 -161
- package/agent-pane/frontend/coverage/src/api/sessions.ts.html +0 -316
- package/agent-pane/frontend/coverage/src/api/websocket.ts.html +0 -544
- package/agent-pane/frontend/coverage/src/api/workspaces.ts.html +0 -199
- package/agent-pane/frontend/coverage/src/components/CollapsibleToolCalls.tsx.html +0 -226
- package/agent-pane/frontend/coverage/src/components/CommandInputBar.tsx.html +0 -382
- package/agent-pane/frontend/coverage/src/components/CommandPalette.tsx.html +0 -715
- package/agent-pane/frontend/coverage/src/components/IdeWorkspace.tsx.html +0 -160
- package/agent-pane/frontend/coverage/src/components/ModelSelector.tsx.html +0 -478
- package/agent-pane/frontend/coverage/src/components/NewSessionDialog.tsx.html +0 -472
- package/agent-pane/frontend/coverage/src/components/RenderArea.tsx.html +0 -574
- package/agent-pane/frontend/coverage/src/components/RightPanel.tsx.html +0 -205
- package/agent-pane/frontend/coverage/src/components/RuntimeIcon.tsx.html +0 -133
- package/agent-pane/frontend/coverage/src/components/SessionTabs.tsx.html +0 -217
- package/agent-pane/frontend/coverage/src/components/StatusBar.tsx.html +0 -271
- package/agent-pane/frontend/coverage/src/components/StatusDot.tsx.html +0 -109
- package/agent-pane/frontend/coverage/src/components/Toast.tsx.html +0 -313
- package/agent-pane/frontend/coverage/src/components/TurnContent.tsx.html +0 -1216
- package/agent-pane/frontend/coverage/src/components/WorkspaceSidebar.tsx.html +0 -1138
- package/agent-pane/frontend/coverage/src/components/index.html +0 -326
- package/agent-pane/frontend/coverage/src/components/panels/ChangesPanel.tsx.html +0 -247
- package/agent-pane/frontend/coverage/src/components/panels/LogsPanel.tsx.html +0 -160
- package/agent-pane/frontend/coverage/src/components/panels/MetricsPanel.tsx.html +0 -427
- package/agent-pane/frontend/coverage/src/components/panels/TurnsPanel.tsx.html +0 -397
- package/agent-pane/frontend/coverage/src/components/panels/index.html +0 -161
- package/agent-pane/frontend/coverage/src/constants/index.html +0 -116
- package/agent-pane/frontend/coverage/src/constants/models.ts.html +0 -406
- package/agent-pane/frontend/coverage/src/hooks/index.html +0 -146
- package/agent-pane/frontend/coverage/src/hooks/useEscapeKey.ts.html +0 -124
- package/agent-pane/frontend/coverage/src/hooks/useOutsideClick.ts.html +0 -142
- package/agent-pane/frontend/coverage/src/hooks/useSessionStatus.ts.html +0 -187
- package/agent-pane/frontend/coverage/src/index.html +0 -146
- package/agent-pane/frontend/coverage/src/main.tsx.html +0 -115
- package/agent-pane/frontend/coverage/src/store/index.html +0 -116
- package/agent-pane/frontend/coverage/src/store/store.ts.html +0 -2404
- package/agent-pane/frontend/coverage/src/test/component-helpers.ts.html +0 -190
- package/agent-pane/frontend/coverage/src/test/fixtures.ts.html +0 -367
- package/agent-pane/frontend/coverage/src/test/index.html +0 -131
- package/agent-pane/frontend/coverage/src/types/index.html +0 -116
- package/agent-pane/frontend/coverage/src/types/index.ts.html +0 -466
- package/agent-pane/frontend/coverage/src/utils/changes.ts.html +0 -202
- package/agent-pane/frontend/coverage/src/utils/duration.ts.html +0 -127
- package/agent-pane/frontend/coverage/src/utils/index.html +0 -131
- package/agent-pane/frontend/dist/assets/index-34WaZYsW.css +0 -1
- package/agent-pane/frontend/dist/assets/index-y7xlT86e.js +0 -362
- package/agent-pane/frontend/dist/index.html +0 -19
- package/agent-pane/frontend/index.html +0 -18
- package/agent-pane/frontend/package-lock.json +0 -4211
- package/agent-pane/frontend/package.json +0 -35
- package/agent-pane/frontend/src/App.test.tsx +0 -74
- package/agent-pane/frontend/src/App.tsx +0 -44
- package/agent-pane/frontend/src/AppInitializer.test.tsx +0 -142
- package/agent-pane/frontend/src/AppInitializer.tsx +0 -46
- package/agent-pane/frontend/src/__tests__/ThreadsPanel.test.tsx +0 -192
- package/agent-pane/frontend/src/api/client.test.ts +0 -126
- package/agent-pane/frontend/src/api/client.ts +0 -34
- package/agent-pane/frontend/src/api/models.ts +0 -7
- package/agent-pane/frontend/src/api/providers.ts +0 -17
- package/agent-pane/frontend/src/api/sessions.test.ts +0 -245
- package/agent-pane/frontend/src/api/sessions.ts +0 -97
- package/agent-pane/frontend/src/api/skills.ts +0 -12
- package/agent-pane/frontend/src/api/websocket.test.ts +0 -288
- package/agent-pane/frontend/src/api/websocket.ts +0 -238
- package/agent-pane/frontend/src/api/workspaces.test.ts +0 -112
- package/agent-pane/frontend/src/api/workspaces.ts +0 -38
- package/agent-pane/frontend/src/components/CollapsibleToolCalls.test.tsx +0 -49
- package/agent-pane/frontend/src/components/CollapsibleToolCalls.tsx +0 -56
- package/agent-pane/frontend/src/components/CommandInputBar.test.tsx +0 -133
- package/agent-pane/frontend/src/components/CommandInputBar.tsx +0 -584
- package/agent-pane/frontend/src/components/CommandPalette.test.tsx +0 -226
- package/agent-pane/frontend/src/components/CommandPalette.tsx +0 -194
- package/agent-pane/frontend/src/components/CommentableText.test.tsx +0 -196
- package/agent-pane/frontend/src/components/CommentableText.tsx +0 -379
- package/agent-pane/frontend/src/components/IdeWorkspace.test.tsx +0 -39
- package/agent-pane/frontend/src/components/IdeWorkspace.tsx +0 -51
- package/agent-pane/frontend/src/components/ModelSelector.test.tsx +0 -129
- package/agent-pane/frontend/src/components/ModelSelector.tsx +0 -191
- package/agent-pane/frontend/src/components/NewSessionDialog.test.tsx +0 -95
- package/agent-pane/frontend/src/components/NewSessionDialog.tsx +0 -129
- package/agent-pane/frontend/src/components/RenderArea.test.tsx +0 -160
- package/agent-pane/frontend/src/components/RenderArea.tsx +0 -170
- package/agent-pane/frontend/src/components/ResizeHandle.tsx +0 -29
- package/agent-pane/frontend/src/components/RightPanel.test.tsx +0 -43
- package/agent-pane/frontend/src/components/RightPanel.tsx +0 -46
- package/agent-pane/frontend/src/components/RuntimeIcon.test.tsx +0 -32
- package/agent-pane/frontend/src/components/RuntimeIcon.tsx +0 -16
- package/agent-pane/frontend/src/components/SessionTabs.test.tsx +0 -72
- package/agent-pane/frontend/src/components/SessionTabs.tsx +0 -49
- package/agent-pane/frontend/src/components/StatusBar.test.tsx +0 -56
- package/agent-pane/frontend/src/components/StatusBar.tsx +0 -129
- package/agent-pane/frontend/src/components/StatusDot.test.tsx +0 -25
- package/agent-pane/frontend/src/components/StatusDot.tsx +0 -8
- package/agent-pane/frontend/src/components/Toast.test.tsx +0 -79
- package/agent-pane/frontend/src/components/Toast.tsx +0 -76
- package/agent-pane/frontend/src/components/TurnContent.test.tsx +0 -298
- package/agent-pane/frontend/src/components/TurnContent.tsx +0 -548
- package/agent-pane/frontend/src/components/WorkspaceSidebar.test.tsx +0 -297
- package/agent-pane/frontend/src/components/WorkspaceSidebar.tsx +0 -351
- package/agent-pane/frontend/src/components/input/OptionSubPopup.tsx +0 -32
- package/agent-pane/frontend/src/components/input/SkillMentionPopup.test.tsx +0 -63
- package/agent-pane/frontend/src/components/input/SkillMentionPopup.tsx +0 -78
- package/agent-pane/frontend/src/components/input/SlashPopup.test.tsx +0 -96
- package/agent-pane/frontend/src/components/input/SlashPopup.tsx +0 -82
- package/agent-pane/frontend/src/components/panels/ChangesPanel.test.tsx +0 -61
- package/agent-pane/frontend/src/components/panels/ChangesPanel.tsx +0 -54
- package/agent-pane/frontend/src/components/panels/TasksPanel.test.tsx +0 -97
- package/agent-pane/frontend/src/components/panels/TasksPanel.tsx +0 -208
- package/agent-pane/frontend/src/components/panels/ThreadsPanel.tsx +0 -382
- package/agent-pane/frontend/src/components/panels/TurnsPanel.test.tsx +0 -83
- package/agent-pane/frontend/src/components/panels/TurnsPanel.tsx +0 -126
- package/agent-pane/frontend/src/constants/models.test.ts +0 -97
- package/agent-pane/frontend/src/constants/models.ts +0 -166
- package/agent-pane/frontend/src/hooks/useEscapeKey.test.ts +0 -42
- package/agent-pane/frontend/src/hooks/useEscapeKey.ts +0 -13
- package/agent-pane/frontend/src/hooks/useOutsideClick.test.ts +0 -92
- package/agent-pane/frontend/src/hooks/useOutsideClick.ts +0 -19
- package/agent-pane/frontend/src/hooks/useProvider.ts +0 -44
- package/agent-pane/frontend/src/hooks/useResizable.test.ts +0 -97
- package/agent-pane/frontend/src/hooks/useResizable.ts +0 -75
- package/agent-pane/frontend/src/hooks/useSessionStatus.test.ts +0 -116
- package/agent-pane/frontend/src/hooks/useSessionStatus.ts +0 -34
- package/agent-pane/frontend/src/main.test.tsx +0 -37
- package/agent-pane/frontend/src/main.tsx +0 -10
- package/agent-pane/frontend/src/store/sessionSlice.ts +0 -440
- package/agent-pane/frontend/src/store/store.test.ts +0 -1319
- package/agent-pane/frontend/src/store/store.ts +0 -37
- package/agent-pane/frontend/src/store/threadSlice.ts +0 -136
- package/agent-pane/frontend/src/store/uiSlice.ts +0 -133
- package/agent-pane/frontend/src/store/workspaceSlice.ts +0 -77
- package/agent-pane/frontend/src/store/wsSlice.ts +0 -361
- package/agent-pane/frontend/src/styles/app.css +0 -611
- package/agent-pane/frontend/src/styles/tokens.css +0 -62
- package/agent-pane/frontend/src/test/component-helpers.ts +0 -38
- package/agent-pane/frontend/src/test/fixtures.ts +0 -100
- package/agent-pane/frontend/src/test-setup.ts +0 -5
- package/agent-pane/frontend/src/types/index.test.ts +0 -128
- package/agent-pane/frontend/src/types/index.ts +0 -132
- package/agent-pane/frontend/src/utils/changes.test.ts +0 -81
- package/agent-pane/frontend/src/utils/changes.ts +0 -39
- package/agent-pane/frontend/src/utils/duration.test.ts +0 -75
- package/agent-pane/frontend/src/utils/duration.ts +0 -14
- package/agent-pane/frontend/tsconfig.json +0 -25
- package/agent-pane/frontend/vite.config.ts +0 -22
- package/agent-pane/frontend/vitest.config.ts +0 -29
- package/agent-pane/package-lock.json +0 -1527
- package/agent-pane/package.json +0 -19
- package/agent-pane/shared/provider-types.ts +0 -67
- package/agent-pane/shared/types.ts +0 -167
package/agent-pane/package.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "agent-pane",
|
|
3
|
-
"private": true,
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"lint": "eslint . --max-warnings 0",
|
|
7
|
-
"lint:fix": "eslint . --fix",
|
|
8
|
-
"format": "prettier --write .",
|
|
9
|
-
"format:check": "prettier --check .",
|
|
10
|
-
"typecheck": "cd backend && npx tsc --noEmit && cd ../frontend && npx tsc --noEmit"
|
|
11
|
-
},
|
|
12
|
-
"devDependencies": {
|
|
13
|
-
"@eslint/js": "^9.39.5",
|
|
14
|
-
"eslint": "^9.39.5",
|
|
15
|
-
"eslint-config-prettier": "^10.1.8",
|
|
16
|
-
"prettier": "^3.9.6",
|
|
17
|
-
"typescript-eslint": "^8.67.0"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-agnostic types for AgentPane.
|
|
3
|
-
*
|
|
4
|
-
* These types let the UI show/hide controls based on what a provider supports.
|
|
5
|
-
* Adding a new provider (e.g. Claude) = add a ProviderDefinition with its own capabilities.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/** Features a provider supports. The UI uses these to show or hide slash commands and initializers. */
|
|
9
|
-
export interface ProviderCapabilities {
|
|
10
|
-
dynamicModels: boolean;
|
|
11
|
-
skills: boolean;
|
|
12
|
-
plugins: boolean;
|
|
13
|
-
mcpServers: boolean;
|
|
14
|
-
imageAttachments: boolean;
|
|
15
|
-
sandbox: boolean;
|
|
16
|
-
webSearch: boolean;
|
|
17
|
-
networkAccess: boolean;
|
|
18
|
-
fileReferences: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Per-session runtime config — provider-agnostic. Stored as JSON in the `runtime_config` DB column. */
|
|
22
|
-
export interface SessionRuntimeConfig {
|
|
23
|
-
sandboxMode?: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
24
|
-
webSearchMode?: 'disabled' | 'cached' | 'live';
|
|
25
|
-
networkAccessEnabled?: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Model info — provider-agnostic. Returned by `GET /api/providers/:id/models`. */
|
|
29
|
-
export interface ModelInfo {
|
|
30
|
-
slug: string;
|
|
31
|
-
displayName: string;
|
|
32
|
-
description: string;
|
|
33
|
-
defaultReasoning: string;
|
|
34
|
-
reasoningLevels: { effort: string; label: string }[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** Provider definition. Returned by `GET /api/providers`. */
|
|
38
|
-
export interface ProviderDefinition {
|
|
39
|
-
id: string;
|
|
40
|
-
label: string;
|
|
41
|
-
available: boolean;
|
|
42
|
-
capabilities: ProviderCapabilities;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** Generic extension — used for skills, plugins, and MCP servers. */
|
|
46
|
-
export interface Extension {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
description: string;
|
|
50
|
-
type: 'skill' | 'plugin' | 'mcp-server';
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
metadata: Record<string, unknown>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** A slash command exposed by a provider's runtime (e.g. Claude CLI commands).
|
|
56
|
-
* The UI surfaces these dynamically (fetched from the SDK) so provider-native
|
|
57
|
-
* commands like `/compact`, `/clear`, `/cost` appear without hardcoding. */
|
|
58
|
-
export interface ProviderSlashCommand {
|
|
59
|
-
/** Command name without the leading slash (e.g. `compact`). */
|
|
60
|
-
name: string;
|
|
61
|
-
/** Short human-readable description. */
|
|
62
|
-
description: string;
|
|
63
|
-
/** Optional hint for command arguments (e.g. `<file>`). */
|
|
64
|
-
argumentHint?: string;
|
|
65
|
-
/** Alternate names resolving to this command. */
|
|
66
|
-
aliases?: string[];
|
|
67
|
-
}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared types for AgentPane — imported by both backend and frontend.
|
|
3
|
-
*
|
|
4
|
-
* These types define the contract between the REST/WS backend and the
|
|
5
|
-
* React frontend. The backend's SQLite schema matches these interfaces;
|
|
6
|
-
* the frontend's Zustand store and components consume them.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/** Session lifecycle state in the sidebar. */
|
|
10
|
-
export type SessionStatus = 'active' | 'running' | 'completed' | 'failed' | 'aborted';
|
|
11
|
-
/** Turn execution state. */
|
|
12
|
-
export type TurnStatus = 'pending' | 'running' | 'completed' | 'failed' | 'aborted';
|
|
13
|
-
|
|
14
|
-
/** Codex SDK item types — each maps to a different data shape. */
|
|
15
|
-
export type ItemType =
|
|
16
|
-
| 'agent_message'
|
|
17
|
-
| 'reasoning'
|
|
18
|
-
| 'command_execution'
|
|
19
|
-
| 'file_change'
|
|
20
|
-
| 'mcp_tool_call'
|
|
21
|
-
| 'web_search'
|
|
22
|
-
| 'todo_list'
|
|
23
|
-
| 'context_compaction'
|
|
24
|
-
| 'background_task'
|
|
25
|
-
| 'error';
|
|
26
|
-
/** Item processing state. */
|
|
27
|
-
export type ItemStatus = 'in_progress' | 'completed' | 'failed';
|
|
28
|
-
|
|
29
|
-
/** A session row — maps directly to the `sessions` SQLite table. */
|
|
30
|
-
export interface Session {
|
|
31
|
-
id: string;
|
|
32
|
-
title: string | null;
|
|
33
|
-
runtime_type: string;
|
|
34
|
-
model: string | null;
|
|
35
|
-
model_reasoning_effort: string | null;
|
|
36
|
-
cwd: string | null;
|
|
37
|
-
external_thread_id: string | null;
|
|
38
|
-
status: SessionStatus;
|
|
39
|
-
is_running: number; // 0 | 1
|
|
40
|
-
lifecycle: string; // 'working' | 'finished'
|
|
41
|
-
has_unreviewed: number; // 0 | 1
|
|
42
|
-
runtime_config: string | null; // JSON-encoded SessionRuntimeConfig
|
|
43
|
-
rewound_at_turn_id: string | null; // turn ID of the rewind point (null = not rewound)
|
|
44
|
-
pre_rewind_thread_id: string | null; // original external_thread_id before first rewind (for restore)
|
|
45
|
-
created_at: string; // ISO
|
|
46
|
-
updated_at: string; // ISO
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** Token usage from a completed Codex turn. */
|
|
50
|
-
export interface TokenUsage {
|
|
51
|
-
input_tokens: number;
|
|
52
|
-
cached_input_tokens: number;
|
|
53
|
-
cache_write_input_tokens: number;
|
|
54
|
-
output_tokens: number;
|
|
55
|
-
reasoning_output_tokens: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/** Context window usage for the active session's current model. */
|
|
59
|
-
export interface ContextUsage {
|
|
60
|
-
/** Total tokens currently in the context window (input + cached + cache-write). */
|
|
61
|
-
totalTokens: number;
|
|
62
|
-
/** The model's context window limit. */
|
|
63
|
-
contextWindow: number;
|
|
64
|
-
/** Rounded percentage (0-100+). May exceed 100 when over limit. */
|
|
65
|
-
percentage: number;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** An attachment sent with a user prompt — image or document. */
|
|
69
|
-
export interface Attachment {
|
|
70
|
-
/** Original filename. */
|
|
71
|
-
name: string;
|
|
72
|
-
/** MIME type (e.g. 'image/png', 'application/pdf', 'text/plain'). */
|
|
73
|
-
media_type: string;
|
|
74
|
-
/** Base64-encoded file data (no data: URI prefix). */
|
|
75
|
-
data: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/** Base turn — matches the DB `turns` table (no items field). */
|
|
79
|
-
export interface TurnBase {
|
|
80
|
-
id: string;
|
|
81
|
-
session_id: string;
|
|
82
|
-
user_prompt: string;
|
|
83
|
-
agent_response: string | null;
|
|
84
|
-
thoughts: string | null;
|
|
85
|
-
token_usage: TokenUsage | null;
|
|
86
|
-
external_turn_id: string | null;
|
|
87
|
-
status: TurnStatus;
|
|
88
|
-
error: string | null;
|
|
89
|
-
/** Discussion thread ID — null = main conversation, non-null = belongs to a discussion thread. */
|
|
90
|
-
thread_id: string | null;
|
|
91
|
-
/** Attachments sent with the user prompt (images, PDFs, text files). Null = no attachments. */
|
|
92
|
-
attachments: Attachment[] | null;
|
|
93
|
-
created_at: string;
|
|
94
|
-
updated_at: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/** Turn with items — used in API responses and the frontend store. */
|
|
98
|
-
export interface Turn extends TurnBase {
|
|
99
|
-
items: Item[];
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** An item within a turn — maps to the `items` SQLite table. */
|
|
103
|
-
export interface Item {
|
|
104
|
-
id: string;
|
|
105
|
-
turn_id: string;
|
|
106
|
-
external_item_id: string | null;
|
|
107
|
-
type: ItemType;
|
|
108
|
-
data: Record<string, unknown> | null;
|
|
109
|
-
status: ItemStatus;
|
|
110
|
-
created_at: string;
|
|
111
|
-
updated_at: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/** A workspace row — maps directly to the `workspaces` SQLite table. */
|
|
115
|
-
export interface Workspace {
|
|
116
|
-
id: string;
|
|
117
|
-
path: string;
|
|
118
|
-
label: string | null;
|
|
119
|
-
deleted: number; // 0 = active, 1 = soft-deleted
|
|
120
|
-
created_at: string; // ISO
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/** Session with turns (including items) — returned by `GET /api/sessions/:id`. */
|
|
124
|
-
export interface SessionDetail extends Session {
|
|
125
|
-
turns: Turn[];
|
|
126
|
-
/** Live background tasks (Monitor/subagent) — REPLACE semantics from WS. Empty/undefined when none. */
|
|
127
|
-
backgroundTasks?: Array<{ task_id: string; task_type: string; description: string }>;
|
|
128
|
-
/** Discussion threads anchored to text selections in this session's turns. */
|
|
129
|
-
threads?: DiscussionThread[];
|
|
130
|
-
/** Context window usage — updated after each turn completes (Claude only). */
|
|
131
|
-
contextUsage?: ContextUsage | null;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/** A discussion thread anchored to a text selection in an agent response.
|
|
135
|
-
* Each thread has its own conversation history (turns with matching `thread_id`). */
|
|
136
|
-
export interface DiscussionThread {
|
|
137
|
-
id: string;
|
|
138
|
-
session_id: string;
|
|
139
|
-
/** FK to `items.id` — the anchored agent_message item. */
|
|
140
|
-
item_id: string;
|
|
141
|
-
/** FK to `turns.id` — the anchored turn. */
|
|
142
|
-
turn_id: string;
|
|
143
|
-
/** Character offset in the rendered textContent where the selection starts. */
|
|
144
|
-
start_offset: number;
|
|
145
|
-
/** Character offset in the rendered textContent where the selection ends (exclusive). */
|
|
146
|
-
end_offset: number;
|
|
147
|
-
/** The selected text — used as quote context for the AI and as fallback for highlighting. */
|
|
148
|
-
selected_text: string;
|
|
149
|
-
status: 'open' | 'resolved';
|
|
150
|
-
resolved_at: string | null;
|
|
151
|
-
created_at: string;
|
|
152
|
-
updated_at: string;
|
|
153
|
-
/** Forked Claude session ID for thread branching — null = not forked (uses main session). */
|
|
154
|
-
external_thread_id: string | null;
|
|
155
|
-
/** Turns belonging to this thread (populated by the backend in API responses). */
|
|
156
|
-
turns?: Turn[];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Re-export provider-agnostic types
|
|
160
|
-
export type {
|
|
161
|
-
ProviderCapabilities,
|
|
162
|
-
SessionRuntimeConfig,
|
|
163
|
-
ModelInfo,
|
|
164
|
-
ProviderDefinition,
|
|
165
|
-
ProviderSlashCommand,
|
|
166
|
-
Extension,
|
|
167
|
-
} from './provider-types.ts';
|