@creativeintelligence/abbie 0.1.3 → 0.1.5
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/dist/cli/commands/start.js +2 -1
- package/oclif.manifest.json +1 -1
- package/package.json +13 -7
- package/dist/cli/base-command.d.ts.map +0 -1
- package/dist/cli/commands/agent/list.d.ts.map +0 -1
- package/dist/cli/commands/annotation/ack.d.ts.map +0 -1
- package/dist/cli/commands/annotation/create.d.ts.map +0 -1
- package/dist/cli/commands/annotation/events.d.ts.map +0 -1
- package/dist/cli/commands/annotation/export.d.ts.map +0 -1
- package/dist/cli/commands/annotation/import.d.ts.map +0 -1
- package/dist/cli/commands/annotation/ingest.d.ts.map +0 -1
- package/dist/cli/commands/annotation/list.d.ts.map +0 -1
- package/dist/cli/commands/annotation/reply.d.ts.map +0 -1
- package/dist/cli/commands/annotation/resolve.d.ts.map +0 -1
- package/dist/cli/commands/auto/index.d.ts.map +0 -1
- package/dist/cli/commands/backlog/add.d.ts.map +0 -1
- package/dist/cli/commands/backlog/claim.d.ts.map +0 -1
- package/dist/cli/commands/backlog/complete.d.ts.map +0 -1
- package/dist/cli/commands/backlog/list.d.ts.map +0 -1
- package/dist/cli/commands/backlog/pick.d.ts.map +0 -1
- package/dist/cli/commands/backlog/sync.d.ts.map +0 -1
- package/dist/cli/commands/bootstrap.d.ts.map +0 -1
- package/dist/cli/commands/bridge.d.ts.map +0 -1
- package/dist/cli/commands/context/inject.d.ts.map +0 -1
- package/dist/cli/commands/context/list.d.ts.map +0 -1
- package/dist/cli/commands/context/publish.d.ts.map +0 -1
- package/dist/cli/commands/context/read.d.ts.map +0 -1
- package/dist/cli/commands/daemon.d.ts.map +0 -1
- package/dist/cli/commands/digest/index.d.ts.map +0 -1
- package/dist/cli/commands/docs/lint.d.ts.map +0 -1
- package/dist/cli/commands/docs/sync.d.ts.map +0 -1
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/find/index.d.ts.map +0 -1
- package/dist/cli/commands/gc.d.ts.map +0 -1
- package/dist/cli/commands/history/index.d.ts.map +0 -1
- package/dist/cli/commands/hooks/guard.d.ts.map +0 -1
- package/dist/cli/commands/hooks/list.d.ts.map +0 -1
- package/dist/cli/commands/hooks/lock.d.ts.map +0 -1
- package/dist/cli/commands/hooks/status.d.ts.map +0 -1
- package/dist/cli/commands/hooks/test.d.ts.map +0 -1
- package/dist/cli/commands/hooks/unlock.d.ts.map +0 -1
- package/dist/cli/commands/index.d.ts.map +0 -1
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.e2e.test.d.ts +0 -1
- package/dist/cli/commands/list.e2e.test.js +0 -47
- package/dist/cli/commands/login.d.ts.map +0 -1
- package/dist/cli/commands/logout.d.ts.map +0 -1
- package/dist/cli/commands/panes/broker.d.ts.map +0 -1
- package/dist/cli/commands/panes/pipe-sink.d.ts.map +0 -1
- package/dist/cli/commands/panes/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/plan.d.ts.map +0 -1
- package/dist/cli/commands/plan.e2e.test.d.ts +0 -1
- package/dist/cli/commands/plan.e2e.test.js +0 -74
- package/dist/cli/commands/preview/index.d.ts.map +0 -1
- package/dist/cli/commands/preview/init.d.ts.map +0 -1
- package/dist/cli/commands/preview/list.d.ts.map +0 -1
- package/dist/cli/commands/preview/status.d.ts.map +0 -1
- package/dist/cli/commands/preview/stop.d.ts.map +0 -1
- package/dist/cli/commands/preview/sync.d.ts.map +0 -1
- package/dist/cli/commands/preview/watch.d.ts.map +0 -1
- package/dist/cli/commands/project/add.d.ts.map +0 -1
- package/dist/cli/commands/project/list.d.ts.map +0 -1
- package/dist/cli/commands/project/remove.d.ts.map +0 -1
- package/dist/cli/commands/push.d.ts.map +0 -1
- package/dist/cli/commands/reference/add.d.ts.map +0 -1
- package/dist/cli/commands/reference/delete.d.ts.map +0 -1
- package/dist/cli/commands/reference/extract.d.ts.map +0 -1
- package/dist/cli/commands/reference/list.d.ts.map +0 -1
- package/dist/cli/commands/reference/normalize.d.ts.map +0 -1
- package/dist/cli/commands/reference/open.d.ts.map +0 -1
- package/dist/cli/commands/reference/save.d.ts.map +0 -1
- package/dist/cli/commands/reference/search.d.ts.map +0 -1
- package/dist/cli/commands/reference/show.d.ts.map +0 -1
- package/dist/cli/commands/reference/update-index.d.ts.map +0 -1
- package/dist/cli/commands/reference/update.d.ts.map +0 -1
- package/dist/cli/commands/report/blocked.d.ts.map +0 -1
- package/dist/cli/commands/report/complete.d.ts.map +0 -1
- package/dist/cli/commands/report/progress.d.ts.map +0 -1
- package/dist/cli/commands/report/start.d.ts.map +0 -1
- package/dist/cli/commands/resource/acquire.d.ts.map +0 -1
- package/dist/cli/commands/resource/list.d.ts.map +0 -1
- package/dist/cli/commands/resource/release.d.ts.map +0 -1
- package/dist/cli/commands/resource/wait.d.ts.map +0 -1
- package/dist/cli/commands/review.d.ts.map +0 -1
- package/dist/cli/commands/session/attach.d.ts.map +0 -1
- package/dist/cli/commands/session/await.d.ts.map +0 -1
- package/dist/cli/commands/session/complete.d.ts.map +0 -1
- package/dist/cli/commands/session/create.d.ts.map +0 -1
- package/dist/cli/commands/session/heartbeat.d.ts.map +0 -1
- package/dist/cli/commands/session/list.d.ts.map +0 -1
- package/dist/cli/commands/session/mark-done.d.ts.map +0 -1
- package/dist/cli/commands/session/mine.d.ts.map +0 -1
- package/dist/cli/commands/session/replay.d.ts.map +0 -1
- package/dist/cli/commands/session/run.d.ts.map +0 -1
- package/dist/cli/commands/session/show.d.ts.map +0 -1
- package/dist/cli/commands/session/start.d.ts.map +0 -1
- package/dist/cli/commands/session/state/cleanup.d.ts.map +0 -1
- package/dist/cli/commands/session/state/end.d.ts.map +0 -1
- package/dist/cli/commands/session/state/get.d.ts.map +0 -1
- package/dist/cli/commands/session/state/init.d.ts.map +0 -1
- package/dist/cli/commands/session/state/list.d.ts.map +0 -1
- package/dist/cli/commands/session/state/update.d.ts.map +0 -1
- package/dist/cli/commands/session/stop.d.ts.map +0 -1
- package/dist/cli/commands/session/view.d.ts.map +0 -1
- package/dist/cli/commands/start.d.ts.map +0 -1
- package/dist/cli/commands/state/dump.d.ts.map +0 -1
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/trace/export.d.ts.map +0 -1
- package/dist/cli/commands/triage/claim.d.ts.map +0 -1
- package/dist/cli/commands/triage/list.d.ts.map +0 -1
- package/dist/cli/commands/triage/next.d.ts.map +0 -1
- package/dist/cli/commands/triage/pull.d.ts.map +0 -1
- package/dist/cli/commands/triage/stats.d.ts.map +0 -1
- package/dist/cli/commands/tunnel/list.d.ts.map +0 -1
- package/dist/cli/commands/tunnel/start.d.ts.map +0 -1
- package/dist/cli/commands/tunnel/stop.d.ts.map +0 -1
- package/dist/cli/commands/tunnel/url.d.ts.map +0 -1
- package/dist/cli/commands/web/start.d.ts.map +0 -1
- package/dist/cli/commands/windows/context.d.ts.map +0 -1
- package/dist/cli/commands/windows/focus.d.ts.map +0 -1
- package/dist/cli/commands/windows/list.d.ts.map +0 -1
- package/dist/cli/commands/windows/map.d.ts.map +0 -1
- package/dist/cli/commands/windows/read.d.ts.map +0 -1
- package/dist/cli/commands/windows/search.d.ts.map +0 -1
- package/dist/cli/commands/windows/show.d.ts.map +0 -1
- package/dist/cli/commands/windows/watch.d.ts.map +0 -1
- package/dist/lib/active-sessions.d.ts.map +0 -1
- package/dist/lib/agent-adapters.d.ts.map +0 -1
- package/dist/lib/agent-sessions.d.ts.map +0 -1
- package/dist/lib/agent-trace.d.ts.map +0 -1
- package/dist/lib/analytics.d.ts.map +0 -1
- package/dist/lib/annotations-convex.d.ts.map +0 -1
- package/dist/lib/annotations.d.ts.map +0 -1
- package/dist/lib/auto/discover.d.ts.map +0 -1
- package/dist/lib/auto/ideate.d.ts.map +0 -1
- package/dist/lib/auto/spawn.d.ts.map +0 -1
- package/dist/lib/auto/workspace.d.ts.map +0 -1
- package/dist/lib/backlog.d.ts.map +0 -1
- package/dist/lib/backlog.test.d.ts +0 -1
- package/dist/lib/backlog.test.js +0 -162
- package/dist/lib/config-loader.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/claude.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/codex.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/copilot.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/gemini.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/index.d.ts.map +0 -1
- package/dist/lib/config-sync/adapters/opencode.d.ts.map +0 -1
- package/dist/lib/config-sync/index.d.ts.map +0 -1
- package/dist/lib/config-sync/types.d.ts.map +0 -1
- package/dist/lib/config-sync/writer.d.ts.map +0 -1
- package/dist/lib/content-sync/index.d.ts.map +0 -1
- package/dist/lib/content-sync/types.d.ts.map +0 -1
- package/dist/lib/contracts.d.ts.map +0 -1
- package/dist/lib/convex.d.ts.map +0 -1
- package/dist/lib/device.d.ts.map +0 -1
- package/dist/lib/digest/index.d.ts.map +0 -1
- package/dist/lib/docs/lint.d.ts.map +0 -1
- package/dist/lib/docs/lint.test.d.ts +0 -1
- package/dist/lib/docs/lint.test.js +0 -120
- package/dist/lib/docs/sync.d.ts.map +0 -1
- package/dist/lib/doctor/index.d.ts.map +0 -1
- package/dist/lib/doctor/repos.d.ts.map +0 -1
- package/dist/lib/doctor/templates.d.ts.map +0 -1
- package/dist/lib/errors.d.ts.map +0 -1
- package/dist/lib/events.d.ts.map +0 -1
- package/dist/lib/heartbeat.d.ts.map +0 -1
- package/dist/lib/heartbeat.test.d.ts +0 -1
- package/dist/lib/heartbeat.test.js +0 -124
- package/dist/lib/hooks/adapters/claude.d.ts.map +0 -1
- package/dist/lib/hooks/adapters/codex.d.ts.map +0 -1
- package/dist/lib/hooks/adapters/copilot.d.ts.map +0 -1
- package/dist/lib/hooks/context.d.ts.map +0 -1
- package/dist/lib/hooks/index.d.ts.map +0 -1
- package/dist/lib/hooks/registry.d.ts.map +0 -1
- package/dist/lib/hooks/runner.d.ts.map +0 -1
- package/dist/lib/hooks/types.d.ts.map +0 -1
- package/dist/lib/index.test.d.ts +0 -1
- package/dist/lib/index.test.js +0 -334
- package/dist/lib/managed-session.d.ts.map +0 -1
- package/dist/lib/math.d.ts.map +0 -1
- package/dist/lib/math.test.d.ts +0 -1
- package/dist/lib/math.test.js +0 -238
- package/dist/lib/ngrok.d.ts.map +0 -1
- package/dist/lib/nvim/discovery.d.ts.map +0 -1
- package/dist/lib/nvim/discovery.test.d.ts +0 -1
- package/dist/lib/nvim/discovery.test.js +0 -131
- package/dist/lib/nvim/index.d.ts.map +0 -1
- package/dist/lib/nvim/remote.d.ts.map +0 -1
- package/dist/lib/nvim/remote.test.d.ts +0 -1
- package/dist/lib/nvim/remote.test.js +0 -18
- package/dist/lib/panes/broker.d.ts.map +0 -1
- package/dist/lib/panes/index.d.ts.map +0 -1
- package/dist/lib/panes/server.d.ts.map +0 -1
- package/dist/lib/preview/detect.d.ts.map +0 -1
- package/dist/lib/preview/index.d.ts.map +0 -1
- package/dist/lib/preview/manager.d.ts.map +0 -1
- package/dist/lib/preview/schema.d.ts.map +0 -1
- package/dist/lib/preview/sprite.d.ts.map +0 -1
- package/dist/lib/preview/watcher.d.ts.map +0 -1
- package/dist/lib/process/index.d.ts.map +0 -1
- package/dist/lib/process/snapshot.d.ts.map +0 -1
- package/dist/lib/process/snapshot.test.d.ts +0 -1
- package/dist/lib/process/snapshot.test.js +0 -127
- package/dist/lib/project-identity.d.ts.map +0 -1
- package/dist/lib/provider-auth.d.ts.map +0 -1
- package/dist/lib/references.d.ts.map +0 -1
- package/dist/lib/report.d.ts.map +0 -1
- package/dist/lib/resources.d.ts.map +0 -1
- package/dist/lib/resources.test.d.ts +0 -1
- package/dist/lib/resources.test.js +0 -94
- package/dist/lib/runner.d.ts.map +0 -1
- package/dist/lib/runner.test.d.ts +0 -1
- package/dist/lib/runner.test.js +0 -234
- package/dist/lib/session-artifacts.d.ts.map +0 -1
- package/dist/lib/session-manager.d.ts.map +0 -1
- package/dist/lib/session-manager.test.d.ts +0 -1
- package/dist/lib/session-manager.test.js +0 -310
- package/dist/lib/session-result.d.ts.map +0 -1
- package/dist/lib/session-state.d.ts.map +0 -1
- package/dist/lib/slack-workspace.d.ts.map +0 -1
- package/dist/lib/tmux/bridge.d.ts.map +0 -1
- package/dist/lib/tmux/context.d.ts.map +0 -1
- package/dist/lib/tmux/context.test.d.ts +0 -1
- package/dist/lib/tmux/context.test.js +0 -215
- package/dist/lib/tmux/index.d.ts.map +0 -1
- package/dist/lib/tmux/map.d.ts.map +0 -1
- package/dist/lib/tmux/map.test.d.ts +0 -1
- package/dist/lib/tmux/map.test.js +0 -80
- package/dist/lib/tmux/panes.d.ts.map +0 -1
- package/dist/lib/tmux/redaction.d.ts.map +0 -1
- package/dist/lib/tmux/redaction.test.d.ts +0 -1
- package/dist/lib/tmux/redaction.test.js +0 -183
- package/dist/lib/triage-llm.d.ts.map +0 -1
- package/dist/lib/triage-tracker.d.ts.map +0 -1
- package/dist/lib/triage.d.ts.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/windows/index.d.ts.map +0 -1
- package/dist/lib/windows/inventory.d.ts.map +0 -1
- package/dist/lib/windows/inventory.test.d.ts +0 -1
- package/dist/lib/windows/inventory.test.js +0 -292
- package/dist/lib/windows/types.d.ts.map +0 -1
- package/dist/lib.d.ts.map +0 -1
- package/dist/web/app/@overlay/default.d.ts +0 -1
- package/dist/web/app/@overlay/default.js +0 -3
- package/dist/web/app/about/page.d.ts +0 -1
- package/dist/web/app/about/page.js +0 -6
- package/dist/web/app/layout.d.ts +0 -7
- package/dist/web/app/layout.js +0 -19
- package/dist/web/app/page.d.ts +0 -1
- package/dist/web/app/page.js +0 -38
- package/dist/web/app/settings/page.d.ts +0 -1
- package/dist/web/app/settings/page.js +0 -6
- package/dist/web/app/shortcuts/page.d.ts +0 -1
- package/dist/web/app/shortcuts/page.js +0 -6
- package/dist/web/atoms/sidebar.d.ts +0 -16
- package/dist/web/atoms/sidebar.js +0 -58
- package/dist/web/atoms/state.d.ts +0 -24
- package/dist/web/atoms/state.js +0 -43
- package/dist/web/components/command-palette.d.ts +0 -6
- package/dist/web/components/command-palette.js +0 -297
- package/dist/web/components/main-view.d.ts +0 -1
- package/dist/web/components/main-view.js +0 -93
- package/dist/web/components/overlay/page-overlay.d.ts +0 -16
- package/dist/web/components/overlay/page-overlay.js +0 -84
- package/dist/web/components/pane-view.d.ts +0 -5
- package/dist/web/components/pane-view.js +0 -168
- package/dist/web/components/project-files-view.d.ts +0 -6
- package/dist/web/components/project-files-view.js +0 -205
- package/dist/web/components/project-planning-view.d.ts +0 -6
- package/dist/web/components/project-planning-view.js +0 -146
- package/dist/web/components/session-view.d.ts +0 -6
- package/dist/web/components/session-view.js +0 -211
- package/dist/web/components/sessions-list-view.d.ts +0 -1
- package/dist/web/components/sessions-list-view.js +0 -118
- package/dist/web/components/sidebar/index.d.ts +0 -9
- package/dist/web/components/sidebar/index.js +0 -29
- package/dist/web/components/sidebar/kbd.d.ts +0 -17
- package/dist/web/components/sidebar/kbd.js +0 -47
- package/dist/web/components/sidebar/nav-group.d.ts +0 -22
- package/dist/web/components/sidebar/nav-group.js +0 -43
- package/dist/web/components/sidebar/nav-item.d.ts +0 -17
- package/dist/web/components/sidebar/nav-item.js +0 -38
- package/dist/web/components/sidebar/sidebar-header.d.ts +0 -9
- package/dist/web/components/sidebar/sidebar-header.js +0 -18
- package/dist/web/components/sidebar/sidebar-nav.d.ts +0 -7
- package/dist/web/components/sidebar/sidebar-nav.js +0 -505
- package/dist/web/components/sidebar/sidebar-search.d.ts +0 -7
- package/dist/web/components/sidebar/sidebar-search.js +0 -18
- package/dist/web/components/sidebar/sidebar-settings.d.ts +0 -4
- package/dist/web/components/sidebar/sidebar-settings.js +0 -28
- package/dist/web/components/sidebar/sidebar-transition.d.ts +0 -12
- package/dist/web/components/sidebar/sidebar-transition.js +0 -58
- package/dist/web/components/status-bar.d.ts +0 -1
- package/dist/web/components/status-bar.js +0 -53
- package/dist/web/components/terminal.d.ts +0 -4
- package/dist/web/components/terminal.js +0 -324
- package/dist/web/components/toast.d.ts +0 -7
- package/dist/web/components/toast.js +0 -72
- package/dist/web/hooks/use-keybindings.d.ts +0 -30
- package/dist/web/hooks/use-keybindings.js +0 -322
- package/dist/web/hooks/use-state.d.ts +0 -11
- package/dist/web/hooks/use-state.js +0 -84
- package/dist/web/lib/api.d.ts +0 -179
- package/dist/web/lib/api.js +0 -79
- package/dist/web/lib/paths.d.ts +0 -2
- package/dist/web/lib/paths.js +0 -26
- package/dist/web/lib/utils.d.ts +0 -2
- package/dist/web/lib/utils.js +0 -5
- package/dist/web/lib/ws.d.ts +0 -18
- package/dist/web/lib/ws.js +0 -138
- package/dist/web/next.config.d.ts +0 -3
- package/dist/web/next.config.js +0 -9
- package/scripts/generate-manifest.ts +0 -44
- package/src/cli/base-command.ts +0 -233
- package/src/cli/commands/__tests__/annotations.test.ts +0 -704
- package/src/cli/commands/__tests__/bridge.test.ts +0 -101
- package/src/cli/commands/__tests__/daemon.test.ts +0 -79
- package/src/cli/commands/agent/list.ts +0 -75
- package/src/cli/commands/annotation/ack.ts +0 -37
- package/src/cli/commands/annotation/create.ts +0 -67
- package/src/cli/commands/annotation/events.ts +0 -63
- package/src/cli/commands/annotation/export.ts +0 -67
- package/src/cli/commands/annotation/import.ts +0 -98
- package/src/cli/commands/annotation/ingest.ts +0 -112
- package/src/cli/commands/annotation/list.ts +0 -57
- package/src/cli/commands/annotation/reply.ts +0 -46
- package/src/cli/commands/annotation/resolve.ts +0 -37
- package/src/cli/commands/auto/index.ts +0 -755
- package/src/cli/commands/backlog/add.ts +0 -74
- package/src/cli/commands/backlog/claim.ts +0 -53
- package/src/cli/commands/backlog/complete.ts +0 -51
- package/src/cli/commands/backlog/list.ts +0 -107
- package/src/cli/commands/backlog/pick.ts +0 -50
- package/src/cli/commands/backlog/sync.ts +0 -131
- package/src/cli/commands/bootstrap.ts +0 -205
- package/src/cli/commands/bridge.ts +0 -233
- package/src/cli/commands/context/inject.ts +0 -103
- package/src/cli/commands/context/list.ts +0 -112
- package/src/cli/commands/context/publish.ts +0 -83
- package/src/cli/commands/context/read.ts +0 -85
- package/src/cli/commands/daemon.ts +0 -1809
- package/src/cli/commands/digest/index.ts +0 -245
- package/src/cli/commands/docs/lint.ts +0 -93
- package/src/cli/commands/docs/sync.ts +0 -90
- package/src/cli/commands/doctor.ts +0 -267
- package/src/cli/commands/find/index.ts +0 -313
- package/src/cli/commands/history/index.ts +0 -269
- package/src/cli/commands/hooks/guard.ts +0 -71
- package/src/cli/commands/hooks/list.ts +0 -139
- package/src/cli/commands/hooks/lock.ts +0 -47
- package/src/cli/commands/hooks/status.ts +0 -56
- package/src/cli/commands/hooks/test.ts +0 -190
- package/src/cli/commands/hooks/unlock.ts +0 -56
- package/src/cli/commands/list.e2e.test.ts +0 -58
- package/src/cli/commands/list.ts +0 -96
- package/src/cli/commands/login.ts +0 -236
- package/src/cli/commands/logout.ts +0 -45
- package/src/cli/commands/panes/broker.ts +0 -68
- package/src/cli/commands/panes/pipe-sink.ts +0 -101
- package/src/cli/commands/panes/snapshot.ts +0 -156
- package/src/cli/commands/plan.e2e.test.ts +0 -90
- package/src/cli/commands/plan.ts +0 -68
- package/src/cli/commands/preview/index.ts +0 -282
- package/src/cli/commands/preview/list.ts +0 -116
- package/src/cli/commands/preview/status.ts +0 -137
- package/src/cli/commands/preview/stop.ts +0 -165
- package/src/cli/commands/project/add.ts +0 -110
- package/src/cli/commands/project/list.ts +0 -136
- package/src/cli/commands/project/remove.ts +0 -60
- package/src/cli/commands/push.ts +0 -115
- package/src/cli/commands/reference/add.ts +0 -266
- package/src/cli/commands/reference/delete.ts +0 -67
- package/src/cli/commands/reference/extract.ts +0 -389
- package/src/cli/commands/reference/list.ts +0 -117
- package/src/cli/commands/reference/normalize.ts +0 -90
- package/src/cli/commands/reference/open.ts +0 -92
- package/src/cli/commands/reference/save.ts +0 -103
- package/src/cli/commands/reference/search.ts +0 -85
- package/src/cli/commands/reference/show.ts +0 -174
- package/src/cli/commands/reference/update-index.ts +0 -103
- package/src/cli/commands/reference/update.ts +0 -136
- package/src/cli/commands/report/blocked.ts +0 -165
- package/src/cli/commands/report/complete.ts +0 -179
- package/src/cli/commands/report/progress.ts +0 -142
- package/src/cli/commands/report/start.ts +0 -140
- package/src/cli/commands/resource/acquire.ts +0 -116
- package/src/cli/commands/resource/list.ts +0 -77
- package/src/cli/commands/resource/release.ts +0 -64
- package/src/cli/commands/resource/wait.ts +0 -93
- package/src/cli/commands/review.ts +0 -105
- package/src/cli/commands/session/attach.ts +0 -200
- package/src/cli/commands/session/await.ts +0 -83
- package/src/cli/commands/session/complete.ts +0 -100
- package/src/cli/commands/session/create.ts +0 -92
- package/src/cli/commands/session/heartbeat.ts +0 -63
- package/src/cli/commands/session/list.ts +0 -281
- package/src/cli/commands/session/mark-done.ts +0 -132
- package/src/cli/commands/session/mine.ts +0 -189
- package/src/cli/commands/session/replay.ts +0 -659
- package/src/cli/commands/session/run.ts +0 -44
- package/src/cli/commands/session/show.ts +0 -177
- package/src/cli/commands/session/start.ts +0 -580
- package/src/cli/commands/session/state/cleanup.ts +0 -61
- package/src/cli/commands/session/state/end.ts +0 -47
- package/src/cli/commands/session/state/get.ts +0 -65
- package/src/cli/commands/session/state/init.ts +0 -50
- package/src/cli/commands/session/state/list.ts +0 -68
- package/src/cli/commands/session/state/update.ts +0 -108
- package/src/cli/commands/session/stop.ts +0 -134
- package/src/cli/commands/session/view.ts +0 -186
- package/src/cli/commands/start.ts +0 -256
- package/src/cli/commands/state/dump.ts +0 -449
- package/src/cli/commands/status.ts +0 -244
- package/src/cli/commands/sync.ts +0 -174
- package/src/cli/commands/trace/export.ts +0 -255
- package/src/cli/commands/triage/claim.ts +0 -203
- package/src/cli/commands/triage/list.ts +0 -137
- package/src/cli/commands/triage/next.ts +0 -73
- package/src/cli/commands/triage/pull.ts +0 -97
- package/src/cli/commands/triage/stats.ts +0 -82
- package/src/cli/commands/tunnel/list.ts +0 -113
- package/src/cli/commands/tunnel/start.ts +0 -122
- package/src/cli/commands/tunnel/stop.ts +0 -108
- package/src/cli/commands/tunnel/url.ts +0 -82
- package/src/cli/commands/web/start.ts +0 -125
- package/src/cli/commands/windows/context.ts +0 -439
- package/src/cli/commands/windows/focus.ts +0 -130
- package/src/cli/commands/windows/list.ts +0 -213
- package/src/cli/commands/windows/map.ts +0 -223
- package/src/cli/commands/windows/read.ts +0 -279
- package/src/cli/commands/windows/search.ts +0 -219
- package/src/cli/commands/windows/show.ts +0 -188
- package/src/cli/commands/windows/watch.ts +0 -262
- package/src/lib/__tests__/annotations-convex.test.ts +0 -104
- package/src/lib/active-sessions.ts +0 -1486
- package/src/lib/agent-adapters.ts +0 -412
- package/src/lib/agent-sessions.ts +0 -671
- package/src/lib/agent-trace.test.ts +0 -296
- package/src/lib/agent-trace.ts +0 -513
- package/src/lib/analytics.ts +0 -178
- package/src/lib/annotations-convex.ts +0 -296
- package/src/lib/annotations.test.ts +0 -274
- package/src/lib/annotations.ts +0 -836
- package/src/lib/auto/discover.ts +0 -545
- package/src/lib/auto/ideate.ts +0 -412
- package/src/lib/auto/spawn.ts +0 -549
- package/src/lib/auto/workspace.ts +0 -282
- package/src/lib/backlog.test.ts +0 -194
- package/src/lib/backlog.ts +0 -428
- package/src/lib/config-loader.ts +0 -391
- package/src/lib/config-sync/adapters/claude.ts +0 -91
- package/src/lib/config-sync/adapters/codex.ts +0 -135
- package/src/lib/config-sync/adapters/copilot.ts +0 -98
- package/src/lib/config-sync/adapters/gemini.ts +0 -86
- package/src/lib/config-sync/adapters/index.ts +0 -39
- package/src/lib/config-sync/adapters/opencode.ts +0 -94
- package/src/lib/config-sync/index.ts +0 -399
- package/src/lib/config-sync/types.ts +0 -92
- package/src/lib/config-sync/writer.ts +0 -188
- package/src/lib/content-sync/index.ts +0 -882
- package/src/lib/content-sync/types.ts +0 -104
- package/src/lib/contracts.test.ts +0 -186
- package/src/lib/contracts.ts +0 -195
- package/src/lib/convex.ts +0 -54
- package/src/lib/device.ts +0 -41
- package/src/lib/digest/index.ts +0 -529
- package/src/lib/docs/lint.test.ts +0 -135
- package/src/lib/docs/lint.ts +0 -310
- package/src/lib/docs/sync.ts +0 -184
- package/src/lib/doctor/index.ts +0 -647
- package/src/lib/doctor/repos.ts +0 -381
- package/src/lib/doctor/templates.ts +0 -191
- package/src/lib/errors.ts +0 -111
- package/src/lib/events.ts +0 -479
- package/src/lib/heartbeat.test.ts +0 -164
- package/src/lib/heartbeat.ts +0 -326
- package/src/lib/hooks/adapters/claude.ts +0 -115
- package/src/lib/hooks/adapters/codex.ts +0 -92
- package/src/lib/hooks/adapters/copilot.ts +0 -141
- package/src/lib/hooks/context.ts +0 -174
- package/src/lib/hooks/index.ts +0 -39
- package/src/lib/hooks/registry.ts +0 -101
- package/src/lib/hooks/runner.ts +0 -208
- package/src/lib/hooks/types.ts +0 -89
- package/src/lib/index.test.ts +0 -426
- package/src/lib/managed-session.ts +0 -117
- package/src/lib/math.test.ts +0 -299
- package/src/lib/math.ts +0 -120
- package/src/lib/ngrok.ts +0 -441
- package/src/lib/nvim/discovery.test.ts +0 -157
- package/src/lib/nvim/discovery.ts +0 -181
- package/src/lib/nvim/index.ts +0 -28
- package/src/lib/nvim/remote.test.ts +0 -21
- package/src/lib/nvim/remote.ts +0 -184
- package/src/lib/panes/README.md +0 -20
- package/src/lib/panes/broker.ts +0 -261
- package/src/lib/panes/index.ts +0 -1
- package/src/lib/panes/server.ts +0 -379
- package/src/lib/preview/detect.ts +0 -184
- package/src/lib/preview/index.ts +0 -1
- package/src/lib/process/index.ts +0 -16
- package/src/lib/process/snapshot.test.ts +0 -188
- package/src/lib/process/snapshot.ts +0 -257
- package/src/lib/provider-auth.ts +0 -258
- package/src/lib/references.ts +0 -481
- package/src/lib/report.ts +0 -973
- package/src/lib/resources.test.ts +0 -132
- package/src/lib/resources.ts +0 -429
- package/src/lib/runner.test.ts +0 -288
- package/src/lib/runner.ts +0 -1223
- package/src/lib/session-artifacts.test.ts +0 -107
- package/src/lib/session-artifacts.ts +0 -193
- package/src/lib/session-manager.test.ts +0 -402
- package/src/lib/session-manager.ts +0 -150
- package/src/lib/session-result.test.ts +0 -98
- package/src/lib/session-result.ts +0 -262
- package/src/lib/session-state.ts +0 -470
- package/src/lib/slack-workspace.ts +0 -25
- package/src/lib/tmux/bridge.ts +0 -439
- package/src/lib/tmux/context.test.ts +0 -242
- package/src/lib/tmux/context.ts +0 -380
- package/src/lib/tmux/index.ts +0 -46
- package/src/lib/tmux/map.test.ts +0 -99
- package/src/lib/tmux/map.ts +0 -252
- package/src/lib/tmux/panes.ts +0 -170
- package/src/lib/tmux/redaction.test.ts +0 -231
- package/src/lib/tmux/redaction.ts +0 -201
- package/src/lib/triage-llm.ts +0 -312
- package/src/lib/triage-tracker.ts +0 -400
- package/src/lib/triage.ts +0 -655
- package/src/lib/types.ts +0 -61
- package/src/lib/windows/index.ts +0 -2
- package/src/lib/windows/inventory.test.ts +0 -370
- package/src/lib/windows/inventory.ts +0 -352
- package/src/lib/windows/types.ts +0 -46
- package/src/lib.ts +0 -260
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useState, useCallback, useRef } from 'react';
|
|
3
|
-
import { useAtom, useAtomValue, useSetAtom } from 'jotai';
|
|
4
|
-
import { Menu } from '@base-ui-components/react/menu';
|
|
5
|
-
import { Tooltip } from '@base-ui-components/react/tooltip';
|
|
6
|
-
import { ArrowDown, CaretDown, CaretLeft, Terminal, Robot, Export, Copy, SidebarSimple, } from '@phosphor-icons/react';
|
|
7
|
-
import { cn } from '@/lib/utils';
|
|
8
|
-
import { tmuxWindowsAtom, selectedWindowAtom, sidebarCollapsedAtom } from '@/atoms/state';
|
|
9
|
-
import { TerminalView } from './terminal';
|
|
10
|
-
import { toastSuccess, toastError } from './toast';
|
|
11
|
-
import { api } from '@/lib/api';
|
|
12
|
-
import { formatTmuxWindowName } from '@/lib/paths';
|
|
13
|
-
const ACTIONS = [
|
|
14
|
-
{ id: 'copy', label: 'Copy output', icon: Copy },
|
|
15
|
-
{ id: 'terminal', label: 'Open in Terminal.app', icon: Terminal },
|
|
16
|
-
{ id: 'agent', label: 'Send to agent', icon: Robot },
|
|
17
|
-
{ id: 'export', label: 'Export as file', icon: Export },
|
|
18
|
-
];
|
|
19
|
-
function toSafeDownloadName(label) {
|
|
20
|
-
return (label
|
|
21
|
-
.replace(/^\//, '')
|
|
22
|
-
.replace(/[\\/]/g, '-')
|
|
23
|
-
.replace(/[^a-z0-9._-]+/gi, '-')
|
|
24
|
-
.replace(/-+/g, '-')
|
|
25
|
-
.replace(/^-|-$/g, '') || 'window');
|
|
26
|
-
}
|
|
27
|
-
export function PaneView({ windowKey }) {
|
|
28
|
-
const windows = useAtomValue(tmuxWindowsAtom);
|
|
29
|
-
const setSelectedWindow = useSetAtom(selectedWindowAtom);
|
|
30
|
-
const [sidebarCollapsed, setSidebarCollapsed] = useAtom(sidebarCollapsedAtom);
|
|
31
|
-
const window = windows.find((w) => w.id === windowKey || String(w.index) === windowKey || w.name === windowKey);
|
|
32
|
-
const windowLabel = window ? formatTmuxWindowName(window.name) : windowKey;
|
|
33
|
-
const [isAtBottom, setIsAtBottom] = useState(true);
|
|
34
|
-
const terminalRef = useRef(null);
|
|
35
|
-
const handleBack = () => {
|
|
36
|
-
setSelectedWindow(null);
|
|
37
|
-
};
|
|
38
|
-
const handleShare = async () => {
|
|
39
|
-
// TODO: Generate shareable link
|
|
40
|
-
toastSuccess('Link copied to clipboard');
|
|
41
|
-
};
|
|
42
|
-
const handleScrollChange = useCallback((atBottom) => {
|
|
43
|
-
setIsAtBottom(atBottom);
|
|
44
|
-
}, []);
|
|
45
|
-
const handleScrollToBottom = () => {
|
|
46
|
-
terminalRef.current?.scrollToBottom?.();
|
|
47
|
-
setIsAtBottom(true);
|
|
48
|
-
};
|
|
49
|
-
const handleAction = async (actionId) => {
|
|
50
|
-
switch (actionId) {
|
|
51
|
-
case 'copy':
|
|
52
|
-
try {
|
|
53
|
-
// Fetch current content for copy
|
|
54
|
-
const data = await api.captureTmuxPane(windowKey, 0, 500);
|
|
55
|
-
await navigator.clipboard.writeText(data.content);
|
|
56
|
-
toastSuccess('Copied to clipboard');
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
toastError('Failed to copy');
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
case 'terminal':
|
|
63
|
-
console.log('[action] open in terminal');
|
|
64
|
-
break;
|
|
65
|
-
case 'agent':
|
|
66
|
-
console.log('[action] send to agent');
|
|
67
|
-
break;
|
|
68
|
-
case 'export':
|
|
69
|
-
try {
|
|
70
|
-
const data = await api.captureTmuxPane(windowKey, 0, 500);
|
|
71
|
-
const blob = new Blob([data.content], { type: 'text/plain' });
|
|
72
|
-
const url = URL.createObjectURL(blob);
|
|
73
|
-
const a = document.createElement('a');
|
|
74
|
-
a.href = url;
|
|
75
|
-
a.download = `${toSafeDownloadName(windowLabel)}-${new Date().toISOString().slice(0, 10)}.txt`;
|
|
76
|
-
a.click();
|
|
77
|
-
URL.revokeObjectURL(url);
|
|
78
|
-
toastSuccess('File downloaded');
|
|
79
|
-
}
|
|
80
|
-
catch {
|
|
81
|
-
toastError('Failed to export');
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
default:
|
|
85
|
-
console.log(`[action] ${actionId}`);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
return (<div className="flex h-full flex-col">
|
|
89
|
-
{/* Header bar - CSS grid for true center */}
|
|
90
|
-
<div className="grid h-12 shrink-0 grid-cols-[1fr_auto_1fr] items-center px-4">
|
|
91
|
-
{/* Left: Sidebar toggle + Back button */}
|
|
92
|
-
<Tooltip.Provider delay={300} closeDelay={0}>
|
|
93
|
-
<div className="flex items-center justify-start gap-1.5">
|
|
94
|
-
<Tooltip.Root>
|
|
95
|
-
<Tooltip.Trigger render={<button onClick={() => setSidebarCollapsed(!sidebarCollapsed)} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
96
|
-
<SidebarSimple className="h-3.5 w-3.5"/>
|
|
97
|
-
</button>}/>
|
|
98
|
-
<Tooltip.Portal>
|
|
99
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
100
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
101
|
-
{sidebarCollapsed ? 'Show sidebar' : 'Hide sidebar'}
|
|
102
|
-
</Tooltip.Popup>
|
|
103
|
-
</Tooltip.Positioner>
|
|
104
|
-
</Tooltip.Portal>
|
|
105
|
-
</Tooltip.Root>
|
|
106
|
-
|
|
107
|
-
<Tooltip.Root>
|
|
108
|
-
<Tooltip.Trigger render={<button onClick={handleBack} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
109
|
-
<CaretLeft className="h-3.5 w-3.5" weight="bold"/>
|
|
110
|
-
</button>}/>
|
|
111
|
-
<Tooltip.Portal>
|
|
112
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
113
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
114
|
-
Back
|
|
115
|
-
</Tooltip.Popup>
|
|
116
|
-
</Tooltip.Positioner>
|
|
117
|
-
</Tooltip.Portal>
|
|
118
|
-
</Tooltip.Root>
|
|
119
|
-
</div>
|
|
120
|
-
</Tooltip.Provider>
|
|
121
|
-
|
|
122
|
-
{/* Center: Session title (matches sidebar exactly) */}
|
|
123
|
-
<span className="text-sm font-medium text-foreground">{windowLabel}</span>
|
|
124
|
-
|
|
125
|
-
{/* Right: Share and Actions */}
|
|
126
|
-
<div className="flex items-center justify-end gap-2">
|
|
127
|
-
<button onClick={handleShare} className={cn('rounded-full px-3 py-1.5 text-xs font-medium', 'outline-none', 'bg-background-tertiary text-foreground-secondary hover:bg-background-elevated hover:text-foreground')}>
|
|
128
|
-
Share
|
|
129
|
-
</button>
|
|
130
|
-
|
|
131
|
-
<Menu.Root>
|
|
132
|
-
<Menu.Trigger className={cn('flex items-center gap-1 rounded-full px-3 py-1.5', 'bg-foreground text-background text-xs font-medium', 'outline-none hover:bg-foreground/90')}>
|
|
133
|
-
Actions
|
|
134
|
-
<CaretDown className="h-3 w-3" weight="bold"/>
|
|
135
|
-
</Menu.Trigger>
|
|
136
|
-
<Menu.Portal>
|
|
137
|
-
<Menu.Positioner sideOffset={8} align="end">
|
|
138
|
-
<Menu.Popup className={cn('z-50 min-w-[200px] rounded-xl p-1.5', 'bg-card border border-border shadow-xl', 'outline-none', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-150', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
139
|
-
{ACTIONS.map((action) => (<Menu.Item key={action.id} onClick={() => handleAction(action.id)} className={cn('flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-sm', 'outline-none cursor-pointer', 'text-foreground-secondary', 'hover:bg-background-tertiary hover:text-foreground', 'data-[highlighted]:bg-background-tertiary data-[highlighted]:text-foreground')}>
|
|
140
|
-
<action.icon className="h-4 w-4"/>
|
|
141
|
-
{action.label}
|
|
142
|
-
</Menu.Item>))}
|
|
143
|
-
</Menu.Popup>
|
|
144
|
-
</Menu.Positioner>
|
|
145
|
-
</Menu.Portal>
|
|
146
|
-
</Menu.Root>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
|
|
150
|
-
{/* Content area with padding */}
|
|
151
|
-
<div className="flex-1 overflow-hidden px-4 pb-4">
|
|
152
|
-
{/* Terminal card */}
|
|
153
|
-
<div className="relative flex h-full flex-col overflow-hidden rounded-xl border border-border/60 bg-[#0c0c0d]">
|
|
154
|
-
{/* Terminal content */}
|
|
155
|
-
<div className="relative flex-1 w-full h-full">
|
|
156
|
-
<TerminalView ref={terminalRef} windowName={windowKey} onScrollChange={handleScrollChange}/>
|
|
157
|
-
</div>
|
|
158
|
-
|
|
159
|
-
{/* Scroll to bottom FAB */}
|
|
160
|
-
<button onClick={handleScrollToBottom} className={cn('absolute bottom-4 left-1/2 -translate-x-1/2', 'flex h-7 w-7 items-center justify-center rounded-full', 'bg-foreground/90 text-background shadow-md', 'outline-none transition-all duration-200', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', isAtBottom
|
|
161
|
-
? 'pointer-events-none translate-y-1 scale-95 opacity-0'
|
|
162
|
-
: 'translate-y-0 scale-100 opacity-100')} aria-hidden={isAtBottom}>
|
|
163
|
-
<ArrowDown className="h-3.5 w-3.5"/>
|
|
164
|
-
</button>
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
</div>);
|
|
168
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { useAtom, useSetAtom } from 'jotai';
|
|
4
|
-
import { Tooltip } from '@base-ui-components/react/tooltip';
|
|
5
|
-
import { ChevronLeftIcon, DocumentIcon, FolderIcon, Bars3Icon, } from '@heroicons/react/24/outline';
|
|
6
|
-
import { cn } from '@/lib/utils';
|
|
7
|
-
import { api } from '@/lib/api';
|
|
8
|
-
import { toastError } from '@/components/toast';
|
|
9
|
-
import { formatDisplayPath } from '@/lib/paths';
|
|
10
|
-
import { selectedProjectAtom, sidebarCollapsedAtom, } from '@/atoms/state';
|
|
11
|
-
function joinRelPath(base, segment) {
|
|
12
|
-
const cleanBase = base === '.' ? '' : base;
|
|
13
|
-
const next = [cleanBase, segment].filter(Boolean).join('/');
|
|
14
|
-
return next || '.';
|
|
15
|
-
}
|
|
16
|
-
function dirname(relPath) {
|
|
17
|
-
if (!relPath || relPath === '.')
|
|
18
|
-
return null;
|
|
19
|
-
const parts = relPath.split('/').filter(Boolean);
|
|
20
|
-
parts.pop();
|
|
21
|
-
const next = parts.join('/');
|
|
22
|
-
return next || '.';
|
|
23
|
-
}
|
|
24
|
-
function isTextFile(name) {
|
|
25
|
-
const lower = name.toLowerCase();
|
|
26
|
-
return (lower.endsWith('.md') ||
|
|
27
|
-
lower.endsWith('.txt') ||
|
|
28
|
-
lower.endsWith('.ts') ||
|
|
29
|
-
lower.endsWith('.tsx') ||
|
|
30
|
-
lower.endsWith('.js') ||
|
|
31
|
-
lower.endsWith('.jsx') ||
|
|
32
|
-
lower.endsWith('.json') ||
|
|
33
|
-
lower.endsWith('.yml') ||
|
|
34
|
-
lower.endsWith('.yaml') ||
|
|
35
|
-
lower.endsWith('.css') ||
|
|
36
|
-
lower.endsWith('.scss') ||
|
|
37
|
-
lower.endsWith('.html') ||
|
|
38
|
-
lower.endsWith('.env') ||
|
|
39
|
-
lower.endsWith('.sh') ||
|
|
40
|
-
lower.endsWith('.py') ||
|
|
41
|
-
lower.endsWith('.go') ||
|
|
42
|
-
lower.endsWith('.rs'));
|
|
43
|
-
}
|
|
44
|
-
export function ProjectFilesView({ windowId, label }) {
|
|
45
|
-
const setSelectedProject = useSetAtom(selectedProjectAtom);
|
|
46
|
-
const [sidebarCollapsed, setSidebarCollapsed] = useAtom(sidebarCollapsedAtom);
|
|
47
|
-
const [currentPath, setCurrentPath] = useState('.');
|
|
48
|
-
const [entries, setEntries] = useState([]);
|
|
49
|
-
const [root, setRoot] = useState(null);
|
|
50
|
-
const [loading, setLoading] = useState(false);
|
|
51
|
-
const [selectedFilePath, setSelectedFilePath] = useState(null);
|
|
52
|
-
const [fileContent, setFileContent] = useState('');
|
|
53
|
-
const [fileLoading, setFileLoading] = useState(false);
|
|
54
|
-
const title = useMemo(() => `Files`, []);
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
let cancelled = false;
|
|
57
|
-
setLoading(true);
|
|
58
|
-
api
|
|
59
|
-
.listProjectFiles(windowId, currentPath)
|
|
60
|
-
.then((data) => {
|
|
61
|
-
if (cancelled)
|
|
62
|
-
return;
|
|
63
|
-
setRoot(data.root);
|
|
64
|
-
setEntries(data.entries);
|
|
65
|
-
})
|
|
66
|
-
.catch(() => toastError('Failed to load files'))
|
|
67
|
-
.finally(() => {
|
|
68
|
-
if (cancelled)
|
|
69
|
-
return;
|
|
70
|
-
setLoading(false);
|
|
71
|
-
});
|
|
72
|
-
return () => {
|
|
73
|
-
cancelled = true;
|
|
74
|
-
};
|
|
75
|
-
}, [windowId, currentPath]);
|
|
76
|
-
const openFile = async (relPath) => {
|
|
77
|
-
setSelectedFilePath(relPath);
|
|
78
|
-
setFileLoading(true);
|
|
79
|
-
try {
|
|
80
|
-
const data = await api.getProjectFile(windowId, relPath);
|
|
81
|
-
setFileContent(data.content);
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
toastError('Failed to open file');
|
|
85
|
-
}
|
|
86
|
-
finally {
|
|
87
|
-
setFileLoading(false);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
return (<div className="flex h-full flex-col bg-background-secondary">
|
|
91
|
-
{/* Header */}
|
|
92
|
-
<div className="grid h-12 shrink-0 grid-cols-[1fr_auto_1fr] items-center px-4">
|
|
93
|
-
{/* Left: Sidebar toggle + Back */}
|
|
94
|
-
<Tooltip.Provider delay={300} closeDelay={0}>
|
|
95
|
-
<div className="flex items-center justify-start gap-1.5">
|
|
96
|
-
<Tooltip.Root>
|
|
97
|
-
<Tooltip.Trigger render={<button onClick={() => setSidebarCollapsed(!sidebarCollapsed)} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
98
|
-
<Bars3Icon className="h-3.5 w-3.5"/>
|
|
99
|
-
</button>}/>
|
|
100
|
-
<Tooltip.Portal>
|
|
101
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
102
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
103
|
-
{sidebarCollapsed ? 'Show sidebar' : 'Hide sidebar'}
|
|
104
|
-
</Tooltip.Popup>
|
|
105
|
-
</Tooltip.Positioner>
|
|
106
|
-
</Tooltip.Portal>
|
|
107
|
-
</Tooltip.Root>
|
|
108
|
-
|
|
109
|
-
<Tooltip.Root>
|
|
110
|
-
<Tooltip.Trigger render={<button onClick={() => setSelectedProject(null)} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
111
|
-
<ChevronLeftIcon className="h-3.5 w-3.5"/>
|
|
112
|
-
</button>}/>
|
|
113
|
-
<Tooltip.Portal>
|
|
114
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
115
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
116
|
-
Back
|
|
117
|
-
</Tooltip.Popup>
|
|
118
|
-
</Tooltip.Positioner>
|
|
119
|
-
</Tooltip.Portal>
|
|
120
|
-
</Tooltip.Root>
|
|
121
|
-
</div>
|
|
122
|
-
</Tooltip.Provider>
|
|
123
|
-
|
|
124
|
-
{/* Center */}
|
|
125
|
-
<span className="text-sm font-medium text-foreground">
|
|
126
|
-
{label} · {title}
|
|
127
|
-
</span>
|
|
128
|
-
|
|
129
|
-
{/* Right */}
|
|
130
|
-
<div />
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
{/* Content */}
|
|
134
|
-
<div className="flex-1 overflow-hidden px-4 pb-4">
|
|
135
|
-
<div className="grid h-full grid-cols-[340px_1fr] gap-4">
|
|
136
|
-
{/* Tree */}
|
|
137
|
-
<div className="flex h-full flex-col overflow-hidden rounded-xl border border-border/60 bg-background">
|
|
138
|
-
<div className="flex h-11 items-center justify-between border-b border-border/60 px-3">
|
|
139
|
-
<div className="min-w-0">
|
|
140
|
-
<div className="truncate text-xs font-medium text-foreground-secondary">
|
|
141
|
-
{root ? formatDisplayPath(root) : '…'}
|
|
142
|
-
</div>
|
|
143
|
-
<div className="mt-0.5 truncate text-[11px] text-foreground-quaternary">
|
|
144
|
-
{currentPath === '.' ? '/' : `/${currentPath}`}
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
|
|
148
|
-
{dirname(currentPath) && (<button onClick={() => {
|
|
149
|
-
const up = dirname(currentPath);
|
|
150
|
-
if (up)
|
|
151
|
-
setCurrentPath(up);
|
|
152
|
-
}} className={cn('rounded-full px-2 py-1 text-[11px] font-medium', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
153
|
-
Up
|
|
154
|
-
</button>)}
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<div className="flex-1 overflow-auto p-1.5">
|
|
158
|
-
{loading ? (<div className="px-3 py-6 text-center text-xs text-foreground-tertiary">
|
|
159
|
-
Loading…
|
|
160
|
-
</div>) : entries.length === 0 ? (<div className="px-3 py-6 text-center text-xs text-foreground-tertiary">
|
|
161
|
-
Empty folder.
|
|
162
|
-
</div>) : (<div className="space-y-0.5">
|
|
163
|
-
{entries.map((entry) => {
|
|
164
|
-
const rel = joinRelPath(currentPath, entry.name);
|
|
165
|
-
const isDir = entry.type === 'dir';
|
|
166
|
-
const selected = selectedFilePath === rel;
|
|
167
|
-
return (<button key={rel} onClick={() => {
|
|
168
|
-
if (isDir) {
|
|
169
|
-
setSelectedFilePath(null);
|
|
170
|
-
setFileContent('');
|
|
171
|
-
setCurrentPath(rel);
|
|
172
|
-
}
|
|
173
|
-
else if (isTextFile(entry.name)) {
|
|
174
|
-
openFile(rel);
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
toastError('Preview not supported for this file type');
|
|
178
|
-
}
|
|
179
|
-
}} className={cn('flex h-10 w-full items-center gap-2 rounded-[12px] px-3 text-left text-sm', 'outline-none', selected ? 'bg-background-secondary text-foreground' : 'text-foreground-secondary hover:bg-background-secondary hover:text-foreground')}>
|
|
180
|
-
{isDir ? (<FolderIcon className="h-4 w-4 stroke-[1.75] text-foreground-tertiary"/>) : (<DocumentIcon className="h-4 w-4 stroke-[1.75] text-foreground-tertiary"/>)}
|
|
181
|
-
<span className="min-w-0 flex-1 truncate">{entry.name}</span>
|
|
182
|
-
</button>);
|
|
183
|
-
})}
|
|
184
|
-
</div>)}
|
|
185
|
-
</div>
|
|
186
|
-
</div>
|
|
187
|
-
|
|
188
|
-
{/* Preview */}
|
|
189
|
-
<div className="flex h-full flex-col overflow-hidden rounded-xl border border-border/60 bg-[#0c0c0d]">
|
|
190
|
-
<div className="flex h-11 items-center justify-between border-b border-border/60 px-3">
|
|
191
|
-
<span className="truncate text-xs font-medium text-foreground-secondary">
|
|
192
|
-
{selectedFilePath ? selectedFilePath.split('/').pop() : 'Preview'}
|
|
193
|
-
</span>
|
|
194
|
-
<span className="text-[11px] text-foreground-quaternary">
|
|
195
|
-
{selectedFilePath ? `/${selectedFilePath === '.' ? '' : selectedFilePath}` : ''}
|
|
196
|
-
</span>
|
|
197
|
-
</div>
|
|
198
|
-
<div className="flex-1 overflow-auto p-4 font-mono text-xs leading-relaxed text-foreground">
|
|
199
|
-
{fileLoading ? (<div className="text-foreground-tertiary">Loading…</div>) : selectedFilePath ? (<pre className="whitespace-pre-wrap break-words">{fileContent}</pre>) : (<div className="text-foreground-tertiary">Select a file to preview.</div>)}
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
</div>);
|
|
205
|
-
}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { useAtom, useSetAtom } from 'jotai';
|
|
4
|
-
import { Tooltip } from '@base-ui-components/react/tooltip';
|
|
5
|
-
import { ChevronLeftIcon, DocumentIcon, Bars3Icon, } from '@heroicons/react/24/outline';
|
|
6
|
-
import { cn } from '@/lib/utils';
|
|
7
|
-
import { api } from '@/lib/api';
|
|
8
|
-
import { toastError } from '@/components/toast';
|
|
9
|
-
import { selectedProjectAtom, sidebarCollapsedAtom, } from '@/atoms/state';
|
|
10
|
-
function formatTime(iso) {
|
|
11
|
-
const date = new Date(iso);
|
|
12
|
-
return date.toLocaleString('en-US', {
|
|
13
|
-
month: 'short',
|
|
14
|
-
day: 'numeric',
|
|
15
|
-
hour: 'numeric',
|
|
16
|
-
minute: '2-digit',
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
export function ProjectPlanningView({ projectName, label }) {
|
|
20
|
-
const setSelectedProject = useSetAtom(selectedProjectAtom);
|
|
21
|
-
const [sidebarCollapsed, setSidebarCollapsed] = useAtom(sidebarCollapsedAtom);
|
|
22
|
-
const [plans, setPlans] = useState([]);
|
|
23
|
-
const [loading, setLoading] = useState(false);
|
|
24
|
-
const [selectedSlug, setSelectedSlug] = useState(null);
|
|
25
|
-
const [content, setContent] = useState('');
|
|
26
|
-
const [contentLoading, setContentLoading] = useState(false);
|
|
27
|
-
const title = useMemo(() => `Planning`, []);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
let cancelled = false;
|
|
30
|
-
setLoading(true);
|
|
31
|
-
api
|
|
32
|
-
.listProjectPlans(projectName)
|
|
33
|
-
.then((data) => {
|
|
34
|
-
if (cancelled)
|
|
35
|
-
return;
|
|
36
|
-
setPlans(data.plans);
|
|
37
|
-
})
|
|
38
|
-
.catch(() => toastError('Failed to load plans'))
|
|
39
|
-
.finally(() => {
|
|
40
|
-
if (cancelled)
|
|
41
|
-
return;
|
|
42
|
-
setLoading(false);
|
|
43
|
-
});
|
|
44
|
-
return () => {
|
|
45
|
-
cancelled = true;
|
|
46
|
-
};
|
|
47
|
-
}, [projectName]);
|
|
48
|
-
const openPlan = async (slug) => {
|
|
49
|
-
setSelectedSlug(slug);
|
|
50
|
-
setContentLoading(true);
|
|
51
|
-
try {
|
|
52
|
-
const data = await api.getProjectPlan(projectName, slug);
|
|
53
|
-
setContent(data.content);
|
|
54
|
-
}
|
|
55
|
-
catch {
|
|
56
|
-
toastError('Failed to open plan');
|
|
57
|
-
}
|
|
58
|
-
finally {
|
|
59
|
-
setContentLoading(false);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
return (<div className="flex h-full flex-col bg-background-secondary">
|
|
63
|
-
{/* Header */}
|
|
64
|
-
<div className="grid h-12 shrink-0 grid-cols-[1fr_auto_1fr] items-center px-4">
|
|
65
|
-
<Tooltip.Provider delay={300} closeDelay={0}>
|
|
66
|
-
<div className="flex items-center justify-start gap-1.5">
|
|
67
|
-
<Tooltip.Root>
|
|
68
|
-
<Tooltip.Trigger render={<button onClick={() => setSidebarCollapsed(!sidebarCollapsed)} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
69
|
-
<Bars3Icon className="h-3.5 w-3.5"/>
|
|
70
|
-
</button>}/>
|
|
71
|
-
<Tooltip.Portal>
|
|
72
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
73
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
74
|
-
{sidebarCollapsed ? 'Show sidebar' : 'Hide sidebar'}
|
|
75
|
-
</Tooltip.Popup>
|
|
76
|
-
</Tooltip.Positioner>
|
|
77
|
-
</Tooltip.Portal>
|
|
78
|
-
</Tooltip.Root>
|
|
79
|
-
|
|
80
|
-
<Tooltip.Root>
|
|
81
|
-
<Tooltip.Trigger render={<button onClick={() => setSelectedProject(null)} className={cn('flex h-7 w-7 items-center justify-center rounded-full', 'outline-none', 'bg-background-tertiary text-foreground-secondary', 'hover:bg-background-elevated hover:text-foreground')}>
|
|
82
|
-
<ChevronLeftIcon className="h-3.5 w-3.5"/>
|
|
83
|
-
</button>}/>
|
|
84
|
-
<Tooltip.Portal>
|
|
85
|
-
<Tooltip.Positioner side="bottom" sideOffset={6}>
|
|
86
|
-
<Tooltip.Popup className={cn('z-50 rounded-md px-2 py-1', 'bg-background-secondary border border-border', 'text-xs text-foreground-secondary', 'shadow-lg', 'origin-[var(--transform-origin)]', 'transition-[transform,opacity] duration-100', '[transition-timing-function:cubic-bezier(0.32,0.72,0,1)]', 'data-[instant]:duration-0', 'data-[starting-style]:scale-[0.96] data-[starting-style]:opacity-0', 'data-[ending-style]:scale-[0.96] data-[ending-style]:opacity-0')}>
|
|
87
|
-
Back
|
|
88
|
-
</Tooltip.Popup>
|
|
89
|
-
</Tooltip.Positioner>
|
|
90
|
-
</Tooltip.Portal>
|
|
91
|
-
</Tooltip.Root>
|
|
92
|
-
</div>
|
|
93
|
-
</Tooltip.Provider>
|
|
94
|
-
|
|
95
|
-
<span className="text-sm font-medium text-foreground">
|
|
96
|
-
{label} · {title}
|
|
97
|
-
</span>
|
|
98
|
-
<div />
|
|
99
|
-
</div>
|
|
100
|
-
|
|
101
|
-
{/* Content */}
|
|
102
|
-
<div className="flex-1 overflow-hidden px-4 pb-4">
|
|
103
|
-
<div className="grid h-full grid-cols-[340px_1fr] gap-4">
|
|
104
|
-
{/* Plan list */}
|
|
105
|
-
<div className="flex h-full flex-col overflow-hidden rounded-xl border border-border/60 bg-background">
|
|
106
|
-
<div className="flex h-11 items-center justify-between border-b border-border/60 px-3">
|
|
107
|
-
<span className="text-xs font-medium text-foreground-secondary">Plans</span>
|
|
108
|
-
<span className="text-[11px] text-foreground-quaternary">{plans.length}</span>
|
|
109
|
-
</div>
|
|
110
|
-
<div className="flex-1 overflow-auto p-1.5">
|
|
111
|
-
{loading ? (<div className="px-3 py-6 text-center text-xs text-foreground-tertiary">
|
|
112
|
-
Loading…
|
|
113
|
-
</div>) : plans.length === 0 ? (<div className="px-3 py-6 text-center text-xs text-foreground-tertiary">
|
|
114
|
-
No plans for this project.
|
|
115
|
-
</div>) : (<div className="space-y-0.5">
|
|
116
|
-
{plans.map((plan) => {
|
|
117
|
-
const selected = selectedSlug === plan.slug;
|
|
118
|
-
return (<button key={plan.slug} onClick={() => openPlan(plan.slug)} className={cn('flex h-10 w-full items-center gap-2 rounded-[12px] px-3 text-left text-sm', 'outline-none', selected
|
|
119
|
-
? 'bg-background-secondary text-foreground'
|
|
120
|
-
: 'text-foreground-secondary hover:bg-background-secondary hover:text-foreground')}>
|
|
121
|
-
<DocumentIcon className="h-4 w-4 text-foreground-tertiary"/>
|
|
122
|
-
<span className="min-w-0 flex-1 truncate">{plan.title}</span>
|
|
123
|
-
{plan.modified && (<span className="shrink-0 text-[11px] text-foreground-quaternary">
|
|
124
|
-
{formatTime(plan.modified)}
|
|
125
|
-
</span>)}
|
|
126
|
-
</button>);
|
|
127
|
-
})}
|
|
128
|
-
</div>)}
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
|
|
132
|
-
{/* Preview */}
|
|
133
|
-
<div className="flex h-full flex-col overflow-hidden rounded-xl border border-border/60 bg-[#0c0c0d]">
|
|
134
|
-
<div className="flex h-11 items-center justify-between border-b border-border/60 px-3">
|
|
135
|
-
<span className="truncate text-xs font-medium text-foreground-secondary">
|
|
136
|
-
{selectedSlug ? selectedSlug : 'Preview'}
|
|
137
|
-
</span>
|
|
138
|
-
</div>
|
|
139
|
-
<div className="flex-1 overflow-auto p-4 font-mono text-xs leading-relaxed text-foreground">
|
|
140
|
-
{contentLoading ? (<div className="text-foreground-tertiary">Loading…</div>) : selectedSlug ? (<pre className="whitespace-pre-wrap break-words">{content}</pre>) : (<div className="text-foreground-tertiary">Select a plan to view.</div>)}
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>);
|
|
146
|
-
}
|