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,259 +0,0 @@
|
|
|
1
|
-
/** TypeScript interfaces for the Codex app-server JSON-RPC protocol. */
|
|
2
|
-
|
|
3
|
-
// --- Skill metadata (from `skills/list`) ---
|
|
4
|
-
|
|
5
|
-
export interface AppServerSkill {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
path: string;
|
|
9
|
-
scope: 'user' | 'repo' | 'system' | 'admin';
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
displayName?: string;
|
|
12
|
-
shortDescription?: string;
|
|
13
|
-
interface?: {
|
|
14
|
-
displayName?: string;
|
|
15
|
-
shortDescription?: string;
|
|
16
|
-
brandColor?: string;
|
|
17
|
-
defaultPrompt?: string;
|
|
18
|
-
iconSmall?: string | null;
|
|
19
|
-
iconLarge?: string | null;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface SkillsListResult {
|
|
24
|
-
data: Array<{
|
|
25
|
-
cwd: string;
|
|
26
|
-
skills: AppServerSkill[];
|
|
27
|
-
errors: string[];
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// --- Model metadata (from `model/list`) ---
|
|
32
|
-
|
|
33
|
-
export interface AppServerModel {
|
|
34
|
-
id: string;
|
|
35
|
-
model: string;
|
|
36
|
-
displayName: string;
|
|
37
|
-
description: string;
|
|
38
|
-
defaultReasoningEffort: string;
|
|
39
|
-
supportedReasoningEfforts: Array<{
|
|
40
|
-
reasoningEffort: string;
|
|
41
|
-
description: string;
|
|
42
|
-
}>;
|
|
43
|
-
inputModalities?: string[];
|
|
44
|
-
isDefault?: boolean;
|
|
45
|
-
hidden?: boolean;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ModelListResult {
|
|
49
|
-
data: AppServerModel[];
|
|
50
|
-
nextCursor: string | null;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// --- Plugin metadata (from `plugin/list`) ---
|
|
54
|
-
|
|
55
|
-
export interface AppServerPlugin {
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
|
-
installed: boolean;
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
availability: string;
|
|
61
|
-
localVersion?: string | null;
|
|
62
|
-
version?: string | null;
|
|
63
|
-
interface?: {
|
|
64
|
-
displayName?: string;
|
|
65
|
-
shortDescription?: string;
|
|
66
|
-
longDescription?: string;
|
|
67
|
-
brandColor?: string;
|
|
68
|
-
developerName?: string;
|
|
69
|
-
category?: string;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface PluginListResult {
|
|
74
|
-
marketplaces: Array<{
|
|
75
|
-
name: string;
|
|
76
|
-
plugins: AppServerPlugin[];
|
|
77
|
-
}>;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// --- MCP server metadata (from `mcpServerStatus/list`) ---
|
|
81
|
-
|
|
82
|
-
export interface AppServerMcpServer {
|
|
83
|
-
name: string;
|
|
84
|
-
serverInfo?: {
|
|
85
|
-
name?: string;
|
|
86
|
-
title?: string | null;
|
|
87
|
-
version?: string;
|
|
88
|
-
description?: string | null;
|
|
89
|
-
};
|
|
90
|
-
authStatus?: string;
|
|
91
|
-
tools?: Record<string, unknown>;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface McpListResult {
|
|
95
|
-
data: AppServerMcpServer[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// --- File search (from `fuzzyFileSearch`) ---
|
|
99
|
-
|
|
100
|
-
export interface AppServerFileSearchResult {
|
|
101
|
-
file_name: string;
|
|
102
|
-
path: string;
|
|
103
|
-
match_type: 'file' | 'directory';
|
|
104
|
-
score: number;
|
|
105
|
-
root: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface FileSearchResult {
|
|
109
|
-
results: AppServerFileSearchResult[];
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// --- Thread / Turn ---
|
|
113
|
-
|
|
114
|
-
export interface ThreadStartParams {
|
|
115
|
-
cwd: string;
|
|
116
|
-
approvalPolicy: string;
|
|
117
|
-
sandbox: string;
|
|
118
|
-
model?: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface ThreadStartResult {
|
|
122
|
-
thread: { id: string };
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface ThreadResumeParams {
|
|
126
|
-
threadId: string;
|
|
127
|
-
cwd: string;
|
|
128
|
-
approvalPolicy: string;
|
|
129
|
-
sandbox: string;
|
|
130
|
-
model?: string;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export interface TurnStartParams {
|
|
134
|
-
threadId: string;
|
|
135
|
-
input: Array<{ type: 'text'; text: string } | { type: 'image'; url: string }>;
|
|
136
|
-
approvalPolicy: string;
|
|
137
|
-
sandbox: { type: 'read-only' | 'workspace-write' | 'danger-full-access' };
|
|
138
|
-
model?: string;
|
|
139
|
-
effort?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface TurnStartResult {
|
|
143
|
-
turn: { id: string };
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface TurnInterruptParams {
|
|
147
|
-
threadId: string;
|
|
148
|
-
turnId: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// --- Notification params ---
|
|
152
|
-
|
|
153
|
-
export interface ItemNotification {
|
|
154
|
-
threadId: string;
|
|
155
|
-
turnId: string;
|
|
156
|
-
item: AppServerItem;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface TurnCompletedNotification {
|
|
160
|
-
threadId: string;
|
|
161
|
-
turnId: string;
|
|
162
|
-
usage?: unknown;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface TurnFailedNotification {
|
|
166
|
-
threadId: string;
|
|
167
|
-
turnId: string;
|
|
168
|
-
error: { message: string };
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/** Params for `item/agentMessage/delta` — incremental text fragment. */
|
|
172
|
-
export interface AgentMessageDeltaNotification {
|
|
173
|
-
threadId: string;
|
|
174
|
-
turnId: string;
|
|
175
|
-
itemId: string;
|
|
176
|
-
delta: string;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/** CamelCase token usage from app-server (needs mapping to snake_case TokenUsage). */
|
|
180
|
-
export interface AppServerTokenUsageData {
|
|
181
|
-
totalTokens: number;
|
|
182
|
-
inputTokens: number;
|
|
183
|
-
cachedInputTokens: number;
|
|
184
|
-
cacheWriteInputTokens: number;
|
|
185
|
-
outputTokens: number;
|
|
186
|
-
reasoningOutputTokens: number;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/** Params for `thread/tokenUsage/updated` — token usage for a turn. */
|
|
190
|
-
export interface TokenUsageNotification {
|
|
191
|
-
threadId: string;
|
|
192
|
-
turnId: string;
|
|
193
|
-
tokenUsage: {
|
|
194
|
-
total: AppServerTokenUsageData;
|
|
195
|
-
last: AppServerTokenUsageData;
|
|
196
|
-
modelContextWindow: number;
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** Map app-server camelCase token usage to shared snake_case TokenUsage. */
|
|
201
|
-
export function mapTokenUsage(data: AppServerTokenUsageData): {
|
|
202
|
-
input_tokens: number;
|
|
203
|
-
cached_input_tokens: number;
|
|
204
|
-
cache_write_input_tokens: number;
|
|
205
|
-
output_tokens: number;
|
|
206
|
-
reasoning_output_tokens: number;
|
|
207
|
-
} {
|
|
208
|
-
return {
|
|
209
|
-
input_tokens: data.inputTokens,
|
|
210
|
-
cached_input_tokens: data.cachedInputTokens,
|
|
211
|
-
cache_write_input_tokens: data.cacheWriteInputTokens,
|
|
212
|
-
output_tokens: data.outputTokens,
|
|
213
|
-
reasoning_output_tokens: data.reasoningOutputTokens,
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// --- Generic item type (replaces SDK ThreadItem) ---
|
|
218
|
-
|
|
219
|
-
export interface AppServerItem {
|
|
220
|
-
id: string;
|
|
221
|
-
type: string;
|
|
222
|
-
text?: string;
|
|
223
|
-
summary?: unknown[];
|
|
224
|
-
content?: unknown[];
|
|
225
|
-
command?: string;
|
|
226
|
-
aggregated_output?: string;
|
|
227
|
-
exit_code?: number | null;
|
|
228
|
-
status?: 'in_progress' | 'completed' | 'failed';
|
|
229
|
-
changes?: unknown;
|
|
230
|
-
server?: string;
|
|
231
|
-
tool?: string;
|
|
232
|
-
arguments?: unknown;
|
|
233
|
-
result?: unknown;
|
|
234
|
-
error?: string | null;
|
|
235
|
-
query?: string;
|
|
236
|
-
items?: unknown[];
|
|
237
|
-
message?: string;
|
|
238
|
-
[key: string]: unknown;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// --- Initialize handshake ---
|
|
242
|
-
|
|
243
|
-
export interface InitializeParams {
|
|
244
|
-
clientInfo: {
|
|
245
|
-
name: string;
|
|
246
|
-
title: string;
|
|
247
|
-
version: string;
|
|
248
|
-
};
|
|
249
|
-
capabilities: {
|
|
250
|
-
experimentalApi: boolean;
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export interface InitializeResult {
|
|
255
|
-
userAgent: string;
|
|
256
|
-
codexHome: string;
|
|
257
|
-
platformFamily: string;
|
|
258
|
-
platformOs: string;
|
|
259
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi } from 'vitest';
|
|
2
|
-
|
|
3
|
-
// Mock the codex-provider module to get access to getThreadOptions
|
|
4
|
-
// We mock everything except getThreadOptions which we want to test
|
|
5
|
-
|
|
6
|
-
vi.mock('../db/index.ts', () => ({
|
|
7
|
-
getDb: vi.fn(),
|
|
8
|
-
initDb: vi.fn(),
|
|
9
|
-
}));
|
|
10
|
-
|
|
11
|
-
vi.mock('../ws/index.ts', () => ({
|
|
12
|
-
broadcast: vi.fn(),
|
|
13
|
-
initWs: vi.fn(),
|
|
14
|
-
handleUpgrade: vi.fn(),
|
|
15
|
-
getWss: vi.fn(),
|
|
16
|
-
}));
|
|
17
|
-
|
|
18
|
-
vi.mock('./item-mapper.ts', () => ({
|
|
19
|
-
mapItemData: vi.fn(),
|
|
20
|
-
getItemStatus: vi.fn(),
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
// Import after mocks are set up
|
|
24
|
-
import type { Session } from '@agentpane/shared';
|
|
25
|
-
|
|
26
|
-
// We need to test getThreadOptions indirectly since it's not exported.
|
|
27
|
-
// Instead, we test the behavior by checking that runtime_config is parsed correctly.
|
|
28
|
-
// Since getThreadOptions is private, we test the parsing logic here.
|
|
29
|
-
|
|
30
|
-
describe('SessionRuntimeConfig parsing', () => {
|
|
31
|
-
function parseRuntimeConfig(session: Pick<Session, 'runtime_config'>): Record<string, unknown> | null {
|
|
32
|
-
if (!session.runtime_config) return null;
|
|
33
|
-
try {
|
|
34
|
-
return JSON.parse(session.runtime_config) as Record<string, unknown>;
|
|
35
|
-
} catch {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
it('returns null when runtime_config is null', () => {
|
|
41
|
-
expect(parseRuntimeConfig({ runtime_config: null })).toBeNull();
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('returns parsed config when valid JSON', () => {
|
|
45
|
-
const config = { sandboxMode: 'read-only', webSearchMode: 'live', networkAccessEnabled: true };
|
|
46
|
-
expect(parseRuntimeConfig({ runtime_config: JSON.stringify(config) })).toEqual(config);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
it('returns null when invalid JSON', () => {
|
|
50
|
-
expect(parseRuntimeConfig({ runtime_config: 'invalid json' })).toBeNull();
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('returns empty object when runtime_config is empty string JSON', () => {
|
|
54
|
-
expect(parseRuntimeConfig({ runtime_config: '{}' })).toEqual({});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi } from 'vitest';
|
|
2
|
-
|
|
3
|
-
// Mock the app-server client to avoid spawning real processes
|
|
4
|
-
vi.mock('../codex/app-server-client.ts', () => ({
|
|
5
|
-
AppServerClient: vi.fn().mockImplementation(() => ({
|
|
6
|
-
initialize: vi.fn().mockResolvedValue(undefined),
|
|
7
|
-
request: vi.fn().mockResolvedValue({ data: [] }),
|
|
8
|
-
onNotification: vi.fn(),
|
|
9
|
-
close: vi.fn().mockResolvedValue(undefined),
|
|
10
|
-
isClosed: vi.fn().mockReturnValue(false),
|
|
11
|
-
events: { once: vi.fn(), on: vi.fn() },
|
|
12
|
-
})),
|
|
13
|
-
}));
|
|
14
|
-
|
|
15
|
-
// Mock the shared app-server to avoid spawning a real process
|
|
16
|
-
vi.mock('../codex/shared-app-server.ts', () => ({
|
|
17
|
-
getSharedAppServer: vi.fn().mockReturnValue({
|
|
18
|
-
request: vi.fn().mockResolvedValue({ data: [] }),
|
|
19
|
-
}),
|
|
20
|
-
closeSharedAppServer: vi.fn().mockResolvedValue(undefined),
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
// Mock broadcast to avoid WebSocket setup
|
|
24
|
-
vi.mock('../ws/index.ts', () => ({
|
|
25
|
-
broadcast: vi.fn(),
|
|
26
|
-
}));
|
|
27
|
-
|
|
28
|
-
import { codexProvider } from './codex-provider.ts';
|
|
29
|
-
import type { RuntimeProvider } from '../providers/runtime-provider.ts';
|
|
30
|
-
|
|
31
|
-
describe('codexProvider', () => {
|
|
32
|
-
it('implements all RuntimeProvider methods', () => {
|
|
33
|
-
const provider: RuntimeProvider = codexProvider;
|
|
34
|
-
expect(typeof provider.startTurn).toBe('function');
|
|
35
|
-
expect(typeof provider.interruptTurn).toBe('function');
|
|
36
|
-
expect(typeof provider.clearThread).toBe('function');
|
|
37
|
-
expect(typeof provider.clearAllThreads).toBe('function');
|
|
38
|
-
expect(typeof provider.getModels).toBe('function');
|
|
39
|
-
expect(typeof provider.shutdown).toBe('function');
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
it('getModels returns an array', async () => {
|
|
43
|
-
const models = await codexProvider.getModels();
|
|
44
|
-
expect(Array.isArray(models)).toBe(true);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('shutdown calls closeSharedAppServer and clearAllThreads', async () => {
|
|
48
|
-
await codexProvider.shutdown();
|
|
49
|
-
// No error thrown — shutdown completed
|
|
50
|
-
// closeSharedAppServer and clearAllThreads are mocked, so this just verifies no crash
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('clearAllThreads does not throw', () => {
|
|
54
|
-
expect(() => codexProvider.clearAllThreads()).not.toThrow();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('clearThread does not throw for unknown session', () => {
|
|
58
|
-
expect(() => codexProvider.clearThread('nonexistent')).not.toThrow();
|
|
59
|
-
});
|
|
60
|
-
});
|