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
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
import type { SessionSlice } from './sessionSlice.ts';
|
|
3
|
-
import type { WorkspaceSlice } from './workspaceSlice.ts';
|
|
4
|
-
import type { WsSlice } from './wsSlice.ts';
|
|
5
|
-
import type { UiSlice } from './uiSlice.ts';
|
|
6
|
-
import type { ThreadSlice } from './threadSlice.ts';
|
|
7
|
-
import { createSessionSlice } from './sessionSlice.ts';
|
|
8
|
-
import { createWorkspaceSlice } from './workspaceSlice.ts';
|
|
9
|
-
import { createWsSlice } from './wsSlice.ts';
|
|
10
|
-
import { createUiSlice } from './uiSlice.ts';
|
|
11
|
-
import { createThreadSlice } from './threadSlice.ts';
|
|
12
|
-
|
|
13
|
-
export interface CreateSessionBody {
|
|
14
|
-
title?: string;
|
|
15
|
-
runtime_type?: string;
|
|
16
|
-
model?: string;
|
|
17
|
-
model_reasoning_effort?: string;
|
|
18
|
-
cwd?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface Toast {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'success' | 'error' | 'info' | 'warn';
|
|
24
|
-
message: string;
|
|
25
|
-
undoAction?: () => void;
|
|
26
|
-
undoLabel?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type StoreState = SessionSlice & WorkspaceSlice & WsSlice & UiSlice & ThreadSlice;
|
|
30
|
-
|
|
31
|
-
export const useStore = create<StoreState>()((...a) => ({
|
|
32
|
-
...createSessionSlice(...a),
|
|
33
|
-
...createWorkspaceSlice(...a),
|
|
34
|
-
...createWsSlice(...a),
|
|
35
|
-
...createUiSlice(...a),
|
|
36
|
-
...createThreadSlice(...a),
|
|
37
|
-
}));
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import type { StateCreator } from 'zustand';
|
|
2
|
-
import type { DiscussionThread, Turn } from '../types/index.ts';
|
|
3
|
-
import type { StoreState } from './store.ts';
|
|
4
|
-
import { apiPost, apiPatch, apiDelete } from '../api/client.ts';
|
|
5
|
-
|
|
6
|
-
export type ThreadSlice = {
|
|
7
|
-
createThread: (sessionId: string, params: {
|
|
8
|
-
itemId: string;
|
|
9
|
-
turnId: string;
|
|
10
|
-
startOffset: number;
|
|
11
|
-
endOffset: number;
|
|
12
|
-
selectedText: string;
|
|
13
|
-
message: string;
|
|
14
|
-
}) => Promise<void>;
|
|
15
|
-
followupThread: (sessionId: string, threadId: string, message: string) => Promise<void>;
|
|
16
|
-
resolveThread: (sessionId: string, threadId: string) => Promise<void>;
|
|
17
|
-
reopenThread: (sessionId: string, threadId: string) => Promise<void>;
|
|
18
|
-
deleteThread: (sessionId: string, threadId: string) => Promise<void>;
|
|
19
|
-
|
|
20
|
-
onThreadCreated: (sessionId: string, thread: DiscussionThread, turn: Turn) => void;
|
|
21
|
-
onThreadFollowup: (sessionId: string, threadId: string, turn: Turn) => void;
|
|
22
|
-
onThreadResolved: (sessionId: string, threadId: string, status: 'open' | 'resolved') => void;
|
|
23
|
-
onThreadDeleted: (sessionId: string, threadId: string) => void;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const createThreadSlice: StateCreator<StoreState, [], [], ThreadSlice> = (set, get) => ({
|
|
27
|
-
createThread: async (sessionId, params) => {
|
|
28
|
-
try {
|
|
29
|
-
await apiPost(`/sessions/${sessionId}/threads`, params);
|
|
30
|
-
get().addLogEntry('INFO', `Thread created — "${params.message.slice(0, 40)}"`);
|
|
31
|
-
} catch (err) {
|
|
32
|
-
get().addToast('error', `Failed to create thread — ${(err as Error).message}`);
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
followupThread: async (sessionId, threadId, message) => {
|
|
37
|
-
try {
|
|
38
|
-
await apiPost(`/sessions/${sessionId}/threads/${threadId}/followup`, { message });
|
|
39
|
-
get().addLogEntry('INFO', `Thread follow-up — "${message.slice(0, 40)}"`);
|
|
40
|
-
} catch (err) {
|
|
41
|
-
get().addToast('error', `Failed to send follow-up — ${(err as Error).message}`);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
resolveThread: async (sessionId, threadId) => {
|
|
46
|
-
try {
|
|
47
|
-
await apiPatch(`/sessions/${sessionId}/threads/${threadId}`, { status: 'resolved' });
|
|
48
|
-
} catch (err) {
|
|
49
|
-
get().addToast('error', `Failed to resolve thread — ${(err as Error).message}`);
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
reopenThread: async (sessionId, threadId) => {
|
|
54
|
-
try {
|
|
55
|
-
await apiPatch(`/sessions/${sessionId}/threads/${threadId}`, { status: 'open' });
|
|
56
|
-
} catch (err) {
|
|
57
|
-
get().addToast('error', `Failed to reopen thread — ${(err as Error).message}`);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
deleteThread: async (sessionId, threadId) => {
|
|
62
|
-
try {
|
|
63
|
-
await apiDelete(`/sessions/${sessionId}/threads/${threadId}`);
|
|
64
|
-
} catch (err) {
|
|
65
|
-
get().addToast('error', `Failed to delete thread — ${(err as Error).message}`);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
onThreadCreated: (sessionId, thread, turn) => {
|
|
70
|
-
set((state) => {
|
|
71
|
-
const detail = state.sessionDetails[sessionId];
|
|
72
|
-
if (!detail) return {};
|
|
73
|
-
return {
|
|
74
|
-
sessionDetails: {
|
|
75
|
-
...state.sessionDetails,
|
|
76
|
-
[sessionId]: {
|
|
77
|
-
...detail,
|
|
78
|
-
threads: [...(detail.threads ?? []), thread],
|
|
79
|
-
turns: [...detail.turns, { ...turn, items: [] }],
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
onThreadFollowup: (sessionId, _threadId, turn) => {
|
|
87
|
-
set((state) => {
|
|
88
|
-
const detail = state.sessionDetails[sessionId];
|
|
89
|
-
if (!detail) return {};
|
|
90
|
-
return {
|
|
91
|
-
sessionDetails: {
|
|
92
|
-
...state.sessionDetails,
|
|
93
|
-
[sessionId]: {
|
|
94
|
-
...detail,
|
|
95
|
-
turns: [...detail.turns, { ...turn, items: [] }],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
});
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
onThreadResolved: (sessionId, threadId, status) => {
|
|
103
|
-
set((state) => {
|
|
104
|
-
const detail = state.sessionDetails[sessionId];
|
|
105
|
-
if (!detail) return {};
|
|
106
|
-
const threads = (detail.threads ?? []).map((t) =>
|
|
107
|
-
t.id === threadId
|
|
108
|
-
? { ...t, status, resolved_at: status === 'resolved' ? new Date().toISOString() : null }
|
|
109
|
-
: t,
|
|
110
|
-
);
|
|
111
|
-
return {
|
|
112
|
-
sessionDetails: {
|
|
113
|
-
...state.sessionDetails,
|
|
114
|
-
[sessionId]: { ...detail, threads },
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
});
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
onThreadDeleted: (sessionId, threadId) => {
|
|
121
|
-
set((state) => {
|
|
122
|
-
const detail = state.sessionDetails[sessionId];
|
|
123
|
-
if (!detail) return {};
|
|
124
|
-
return {
|
|
125
|
-
sessionDetails: {
|
|
126
|
-
...state.sessionDetails,
|
|
127
|
-
[sessionId]: {
|
|
128
|
-
...detail,
|
|
129
|
-
threads: (detail.threads ?? []).filter((t) => t.id !== threadId),
|
|
130
|
-
turns: detail.turns.filter((t) => t.thread_id !== threadId),
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
});
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import type { StateCreator } from 'zustand';
|
|
2
|
-
import type { LogEntry, RightTab, ChangesScope, ModelInfo } from '../types/index.ts';
|
|
3
|
-
import type { StoreState, Toast } from './store.ts';
|
|
4
|
-
import { fetchModels } from '../api/models.ts';
|
|
5
|
-
|
|
6
|
-
/** Default + clamp bounds for resizable side panels (px). */
|
|
7
|
-
export const SIDEBAR_MIN = 160;
|
|
8
|
-
export const SIDEBAR_MAX = 480;
|
|
9
|
-
export const SIDEBAR_DEFAULT = 240;
|
|
10
|
-
export const RIGHT_PANEL_MIN = 220;
|
|
11
|
-
export const RIGHT_PANEL_MAX = 600;
|
|
12
|
-
export const RIGHT_PANEL_DEFAULT = 300;
|
|
13
|
-
|
|
14
|
-
const SIDEBAR_KEY = 'agentpane:sidebar-width';
|
|
15
|
-
const RIGHT_PANEL_KEY = 'agentpane:right-panel-width';
|
|
16
|
-
|
|
17
|
-
/** Read a stored px width, falling back to `fallback` on missing/invalid data. */
|
|
18
|
-
function readWidth(key: string, min: number, max: number, fallback: number): number {
|
|
19
|
-
try {
|
|
20
|
-
const raw = localStorage.getItem(key);
|
|
21
|
-
if (raw == null) return fallback;
|
|
22
|
-
const n = Number(raw);
|
|
23
|
-
if (!Number.isFinite(n)) return fallback;
|
|
24
|
-
return Math.min(max, Math.max(min, n));
|
|
25
|
-
} catch {
|
|
26
|
-
return fallback;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type UiSlice = {
|
|
31
|
-
activeRightTab: RightTab;
|
|
32
|
-
changesScope: ChangesScope;
|
|
33
|
-
eventLog: LogEntry[];
|
|
34
|
-
loading: boolean;
|
|
35
|
-
error: string | null;
|
|
36
|
-
showNewSessionDialog: boolean;
|
|
37
|
-
toasts: Toast[];
|
|
38
|
-
showCommandPalette: boolean;
|
|
39
|
-
selectedChangePath: string | null;
|
|
40
|
-
lastModelConfig: { provider: string; model: string; reasoning: string } | null;
|
|
41
|
-
models: ModelInfo[];
|
|
42
|
-
modelsLoading: boolean;
|
|
43
|
-
showModelSelector: boolean;
|
|
44
|
-
sidebarWidth: number;
|
|
45
|
-
rightPanelWidth: number;
|
|
46
|
-
|
|
47
|
-
setActiveTurnIndex: (idx: number) => void;
|
|
48
|
-
switchRightTab: (tab: RightTab) => void;
|
|
49
|
-
setChangesScope: (scope: ChangesScope) => void;
|
|
50
|
-
setShowNewSessionDialog: (show: boolean) => void;
|
|
51
|
-
setShowCommandPalette: (show: boolean) => void;
|
|
52
|
-
setShowModelSelector: (show: boolean) => void;
|
|
53
|
-
setSelectedChangePath: (path: string | null) => void;
|
|
54
|
-
setSidebarWidth: (w: number) => void;
|
|
55
|
-
setRightPanelWidth: (w: number) => void;
|
|
56
|
-
addToast: (type: Toast['type'], message: string, undoAction?: () => void, undoLabel?: string) => void;
|
|
57
|
-
removeToast: (id: string) => void;
|
|
58
|
-
addLogEntry: (level: LogEntry['level'], message: string) => void;
|
|
59
|
-
loadModels: (providerId: string) => Promise<void>;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const createUiSlice: StateCreator<StoreState, [], [], UiSlice> = (set, get) => ({
|
|
63
|
-
activeRightTab: 'turns',
|
|
64
|
-
changesScope: 'session',
|
|
65
|
-
eventLog: [],
|
|
66
|
-
loading: false,
|
|
67
|
-
error: null,
|
|
68
|
-
showNewSessionDialog: false,
|
|
69
|
-
toasts: [],
|
|
70
|
-
showCommandPalette: false,
|
|
71
|
-
selectedChangePath: null,
|
|
72
|
-
lastModelConfig: null,
|
|
73
|
-
models: [],
|
|
74
|
-
modelsLoading: false,
|
|
75
|
-
showModelSelector: false,
|
|
76
|
-
sidebarWidth: readWidth(SIDEBAR_KEY, SIDEBAR_MIN, SIDEBAR_MAX, SIDEBAR_DEFAULT),
|
|
77
|
-
rightPanelWidth: readWidth(RIGHT_PANEL_KEY, RIGHT_PANEL_MIN, RIGHT_PANEL_MAX, RIGHT_PANEL_DEFAULT),
|
|
78
|
-
|
|
79
|
-
setActiveTurnIndex: (idx) => set({ activeTurnIndex: idx }),
|
|
80
|
-
switchRightTab: (tab) => set({ activeRightTab: tab }),
|
|
81
|
-
setChangesScope: (scope) => set({ changesScope: scope }),
|
|
82
|
-
setShowNewSessionDialog: (show) => set({ showNewSessionDialog: show }),
|
|
83
|
-
setShowCommandPalette: (show) => set({ showCommandPalette: show }),
|
|
84
|
-
setShowModelSelector: (show) => set({ showModelSelector: show }),
|
|
85
|
-
setSelectedChangePath: (path) => set({ selectedChangePath: path }),
|
|
86
|
-
|
|
87
|
-
setSidebarWidth: (w) => {
|
|
88
|
-
const clamped = Math.min(SIDEBAR_MAX, Math.max(SIDEBAR_MIN, Math.round(w)));
|
|
89
|
-
set({ sidebarWidth: clamped });
|
|
90
|
-
try {
|
|
91
|
-
localStorage.setItem(SIDEBAR_KEY, String(clamped));
|
|
92
|
-
} catch {
|
|
93
|
-
/* ignore quota / disabled storage */
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
setRightPanelWidth: (w) => {
|
|
98
|
-
const clamped = Math.min(RIGHT_PANEL_MAX, Math.max(RIGHT_PANEL_MIN, Math.round(w)));
|
|
99
|
-
set({ rightPanelWidth: clamped });
|
|
100
|
-
try {
|
|
101
|
-
localStorage.setItem(RIGHT_PANEL_KEY, String(clamped));
|
|
102
|
-
} catch {
|
|
103
|
-
/* ignore quota / disabled storage */
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
addToast: (type, message, undoAction, undoLabel) => {
|
|
108
|
-
const id = Math.random().toString(36).slice(2, 9);
|
|
109
|
-
set((state) => ({ toasts: [...state.toasts, { id, type, message, undoAction, undoLabel }] }));
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
removeToast: (id) => {
|
|
113
|
-
set((state) => ({ toasts: state.toasts.filter((t) => t.id !== id) }));
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
addLogEntry: (level, message) => {
|
|
117
|
-
const time = new Date().toLocaleTimeString('en-GB', { hour12: false });
|
|
118
|
-
set((state) => ({
|
|
119
|
-
eventLog: [...state.eventLog, { time, level, message }],
|
|
120
|
-
}));
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
loadModels: async (providerId) => {
|
|
124
|
-
if (get().modelsLoading) return;
|
|
125
|
-
set({ modelsLoading: true, models: [] });
|
|
126
|
-
try {
|
|
127
|
-
const models = await fetchModels(providerId);
|
|
128
|
-
set({ models, modelsLoading: false });
|
|
129
|
-
} catch {
|
|
130
|
-
set({ modelsLoading: false });
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { StateCreator } from 'zustand';
|
|
2
|
-
import type { Workspace } from '../types/index.ts';
|
|
3
|
-
import type { StoreState } from './store.ts';
|
|
4
|
-
import {
|
|
5
|
-
fetchWorkspaces as apiFetchWorkspaces,
|
|
6
|
-
createWorkspace as apiCreateWorkspace,
|
|
7
|
-
hideWorkspace as apiHideWorkspace,
|
|
8
|
-
pickDirectory as apiPickDirectory,
|
|
9
|
-
} from '../api/workspaces.ts';
|
|
10
|
-
import { createSession as apiCreateSession } from '../api/sessions.ts';
|
|
11
|
-
|
|
12
|
-
export type WorkspaceSlice = {
|
|
13
|
-
workspaces: Workspace[];
|
|
14
|
-
addWorkspace: (path: string) => Promise<void>;
|
|
15
|
-
removeWorkspace: (path: string) => Promise<void>;
|
|
16
|
-
createSessionInWorkspace: (cwd: string) => Promise<void>;
|
|
17
|
-
pickAndAddWorkspace: () => Promise<void>;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const createWorkspaceSlice: StateCreator<StoreState, [], [], WorkspaceSlice> = (set, get) => ({
|
|
21
|
-
workspaces: [],
|
|
22
|
-
|
|
23
|
-
addWorkspace: async (path) => {
|
|
24
|
-
set({ error: null });
|
|
25
|
-
try {
|
|
26
|
-
const workspace = await apiCreateWorkspace(path.trim());
|
|
27
|
-
set((state) => ({ workspaces: [...state.workspaces, workspace] }));
|
|
28
|
-
get().addToast('success', `Workspace added — ${workspace.path}`);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
get().addToast('error', `Failed to add workspace — ${(err as Error).message}`);
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
removeWorkspace: async (path) => {
|
|
35
|
-
set({ error: null });
|
|
36
|
-
try {
|
|
37
|
-
await apiHideWorkspace(path);
|
|
38
|
-
const workspaces = await apiFetchWorkspaces();
|
|
39
|
-
set({ workspaces });
|
|
40
|
-
get().addToast('info', 'Workspace hidden');
|
|
41
|
-
} catch (err) {
|
|
42
|
-
get().addToast('error', `Failed to hide workspace — ${(err as Error).message}`);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
createSessionInWorkspace: async (cwd) => {
|
|
47
|
-
set({ error: null });
|
|
48
|
-
try {
|
|
49
|
-
const lastConfig = get().lastModelConfig;
|
|
50
|
-
const session = await apiCreateSession({
|
|
51
|
-
cwd,
|
|
52
|
-
runtime_type: lastConfig?.provider ?? 'codex',
|
|
53
|
-
model: lastConfig?.model,
|
|
54
|
-
model_reasoning_effort: lastConfig?.reasoning,
|
|
55
|
-
});
|
|
56
|
-
set((state) => ({
|
|
57
|
-
sessions: [session, ...state.sessions],
|
|
58
|
-
}));
|
|
59
|
-
await get().selectSession(session.id);
|
|
60
|
-
get().addLogEntry('INFO', `Session created in ${cwd} — ${session.id.slice(0, 8)}`);
|
|
61
|
-
get().addToast('success', `Session created in ${cwd.split('/').pop() || cwd}`);
|
|
62
|
-
} catch (err) {
|
|
63
|
-
set({ error: (err as Error).message });
|
|
64
|
-
get().addToast('error', `Failed to create session — ${(err as Error).message}`);
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
pickAndAddWorkspace: async () => {
|
|
69
|
-
try {
|
|
70
|
-
const result = await apiPickDirectory();
|
|
71
|
-
if (result.cancelled || !result.path) return;
|
|
72
|
-
await get().addWorkspace(result.path);
|
|
73
|
-
} catch (err) {
|
|
74
|
-
get().addToast('error', `Failed to pick directory — ${(err as Error).message}`);
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
});
|