@cueloop/client 0.1.0-alpha.94 → 0.1.0-alpha.96
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/package.json +7 -7
- package/src/{annotation-palette.ts → annotations/annotation-palette.ts} +1 -1
- package/src/{components → annotations/components}/AnnotationCards.stories.tsx +4 -4
- package/src/{components → annotations/components}/AnnotationCards.tsx +7 -7
- package/src/{components → annotations/components}/DiscussionMarkerRail.stories.tsx +3 -3
- package/src/{components → annotations/components}/DiscussionMarkerRail.tsx +5 -5
- package/src/{discussions.ts → annotations/discussions.ts} +1 -1
- package/src/{use-annotation-surface.tsx → annotations/use-annotation-surface.tsx} +7 -7
- package/src/{App.appearance.test.tsx → app/App.appearance.test.tsx} +1 -1
- package/src/{App.autoclose.test.tsx → app/App.autoclose.test.tsx} +1 -1
- package/src/{App.deleted-scroll.test.tsx → app/App.deleted-scroll.test.tsx} +3 -3
- package/src/{App.diff.test.tsx → app/App.diff.test.tsx} +2 -2
- package/src/{App.export.test.tsx → app/App.export.test.tsx} +1 -1
- package/src/{App.identity.test.tsx → app/App.identity.test.tsx} +6 -1
- package/src/{App.plan-render.test.tsx → app/App.plan-render.test.tsx} +2 -2
- package/src/{App.plan-review.test.tsx → app/App.plan-review.test.tsx} +3 -3
- package/src/{App.prototype-markdown.test.tsx → app/App.prototype-markdown.test.tsx} +2 -2
- package/src/{App.prototype.test.tsx → app/App.prototype.test.tsx} +2 -2
- package/src/{App.readonly.test.tsx → app/App.readonly.test.tsx} +1 -1
- package/src/{App.regression.test.tsx → app/App.regression.test.tsx} +1 -1
- package/src/{App.rendering.test.tsx → app/App.rendering.test.tsx} +1 -1
- package/src/{App.share-dialog.test.tsx → app/App.share-dialog.test.tsx} +2 -2
- package/src/{App.submit-confirm.test.tsx → app/App.submit-confirm.test.tsx} +1 -1
- package/src/{App.test.tsx → app/App.test.tsx} +2 -2
- package/src/{App.toast.test.tsx → app/App.toast.test.tsx} +2 -2
- package/src/{App.tsx → app/App.tsx} +37 -37
- package/src/{App.visual.test.tsx → app/App.visual.test.tsx} +4 -4
- package/src/{App.walk.test.tsx → app/App.walk.test.tsx} +2 -2
- package/src/{App.workbench.test.tsx → app/App.workbench.test.tsx} +26 -5
- package/src/{app-key-state.ts → app/app-key-state.ts} +4 -4
- package/src/{app-screens.tsx → app/app-screens.tsx} +31 -31
- package/src/{app-view-model.ts → app/app-view-model.ts} +6 -6
- package/src/{components → app/components}/AppHeader.stories.tsx +4 -4
- package/src/{components → app/components}/AppHeader.tsx +3 -3
- package/src/{components → app/components}/AppShell.brand.test.tsx +2 -2
- package/src/{components → app/components}/AppShell.extensions.test.tsx +2 -2
- package/src/{components → app/components}/AppShell.stories.tsx +2 -2
- package/src/{components → app/components}/AppShell.tsx +12 -9
- package/src/{components → app/components}/AppShell.zoom.test.tsx +4 -4
- package/src/{components → app/components}/Breadcrumb.stories.tsx +2 -2
- package/src/{components → app/components}/Breadcrumb.tsx +2 -2
- package/src/{components → app/components}/MenuBar.stories.tsx +2 -2
- package/src/{components → app/components}/MenuBar.tsx +3 -3
- package/src/{components → app/components}/PaneGrid.stories.tsx +2 -2
- package/src/{components → app/components}/PaneGrid.tsx +1 -1
- package/src/{components → app/components}/PanelColumn.stories.tsx +2 -2
- package/src/{components → app/components}/PanelColumn.tsx +2 -2
- package/src/{components → app/components}/ShellHeader.stories.tsx +3 -3
- package/src/{components → app/components}/ShellHeader.tsx +2 -2
- package/src/{components → app/components}/WorkspacePanels.stories.tsx +3 -3
- package/src/{components → app/components}/WorkspacePanels.tsx +9 -5
- package/src/{components → app/components}/pages/Workspace.stories.tsx +4 -4
- package/src/{intent-dispatch.test.ts → app/intent-dispatch.test.ts} +7 -3
- package/src/{intent-dispatch.ts → app/intent-dispatch.ts} +12 -6
- package/src/{ready-signal.test.ts → app/ready-signal.test.ts} +1 -1
- package/src/{run.ts → app/run.ts} +6 -6
- package/src/{serve.ts → app/serve.ts} +1 -1
- package/src/{version.ts → app/version.ts} +1 -1
- package/src/{components → appearance/components}/theme-context.stories.tsx +2 -2
- package/src/{components → diff/components}/AnnotatableFileView.stories.tsx +2 -2
- package/src/{components → diff/components}/AnnotatableFileView.test.tsx +8 -2
- package/src/{components → diff/components}/AnnotatableFileView.tsx +3 -3
- package/src/{components → diff/components}/BareWorkbenchFileView.stories.tsx +2 -2
- package/src/{components → diff/components}/BareWorkbenchFileView.tsx +2 -2
- package/src/{components → diff/components}/DiffContentView.scroll.test.tsx +4 -4
- package/src/{components → diff/components}/DiffContentView.split.test.tsx +4 -4
- package/src/{components → diff/components}/DiffContentView.stories.tsx +5 -5
- package/src/{components → diff/components}/DiffContentView.syntax.test.tsx +3 -3
- package/src/{components → diff/components}/DiffContentView.tsx +13 -13
- package/src/{components → diff/components}/WalkWizard.stories.tsx +2 -2
- package/src/{components → diff/components}/WalkWizard.tsx +4 -4
- package/src/{components → diff/components}/diff-content-view-layout.test.ts +2 -2
- package/src/{components → diff/components}/diff-content-view-layout.ts +2 -2
- package/src/{diff-syntax.ts → diff/diff-syntax.ts} +1 -1
- package/src/{view-diff.ts → diff/view-diff.ts} +4 -4
- package/src/index.ts +8 -8
- package/src/{components → integrations/components}/ExtensionZone.stories.tsx +1 -1
- package/src/{components → integrations/components}/ExtensionZone.tsx +3 -3
- package/src/{components → integrations/components}/ShareDialog.stories.tsx +2 -2
- package/src/{components → integrations/components}/ShareDialog.tsx +11 -11
- package/src/{integrations.test.ts → integrations/integrations.test.ts} +1 -1
- package/src/{integrations.ts → integrations/integrations.ts} +1 -1
- package/src/{components → keyboard/components}/CompletionOverlay.stories.tsx +2 -2
- package/src/{components → keyboard/components}/CompletionOverlay.tsx +4 -4
- package/src/{components → keyboard/components}/HandleChipsInput.stories.tsx +2 -2
- package/src/{components → keyboard/components}/HandleChipsInput.test.tsx +2 -2
- package/src/{components → keyboard/components}/HandleChipsInput.tsx +3 -3
- package/src/{components → keyboard/components}/KeybindsDialog.stories.tsx +2 -2
- package/src/{components → keyboard/components}/KeybindsDialog.tsx +3 -3
- package/src/{components → keyboard/components}/NavModeHint.stories.tsx +2 -2
- package/src/{components → keyboard/components}/NavModeHint.tsx +1 -1
- package/src/{components → keyboard/components}/SlashComposer.stories.tsx +3 -3
- package/src/{components → keyboard/components}/SlashComposer.tsx +3 -3
- package/src/{key-bindings.test.ts → keyboard/key-bindings.test.ts} +1 -1
- package/src/{keymap.test.ts → keyboard/keymap.test.ts} +1 -1
- package/src/{keymap.ts → keyboard/keymap.ts} +1 -1
- package/src/{slash-palette.ts → keyboard/slash-palette.ts} +1 -1
- package/src/{components → markdown/components}/MarkdownGridBlock.stories.tsx +2 -2
- package/src/{components → markdown/components}/MarkdownGridBlock.tsx +2 -2
- package/src/{components → markdown/components}/MarkdownThreadEditor.stories.tsx +2 -2
- package/src/{components → markdown/components}/MarkdownThreadEditor.test.tsx +2 -2
- package/src/{components → markdown/components}/MarkdownThreadEditor.tsx +1 -1
- package/src/{components → markdown/components}/ThreadView.selection.test.tsx +4 -4
- package/src/{components → markdown/components}/ThreadView.slash.test.tsx +6 -6
- package/src/{components → markdown/components}/ThreadView.stories.tsx +4 -4
- package/src/{components → markdown/components}/ThreadView.tsx +13 -13
- package/src/{mark-runs.ts → markdown/mark-runs.ts} +1 -1
- package/src/{markdown-editor-syntax-style.ts → markdown/markdown-editor-syntax-style.ts} +1 -1
- package/src/{thread-code-syntax.ts → markdown/thread-code-syntax.ts} +3 -3
- package/src/{use-thread-body-editing.tsx → markdown/use-thread-body-editing.tsx} +2 -2
- package/src/{view-plan.ts → markdown/view-plan.ts} +3 -3
- package/src/{components → prototype/components}/PrototypeContentView.stories.tsx +2 -2
- package/src/{components → prototype/components}/PrototypeContentView.tsx +5 -5
- package/src/{components → settings/components}/SettingsDialog.stories.tsx +3 -3
- package/src/{components → settings/components}/SettingsDialog.tsx +7 -7
- package/src/{components → settings/components}/SettingsRows.stories.tsx +2 -2
- package/src/{components → settings/components}/SettingsRows.tsx +2 -2
- package/src/{components → settings/components}/quick-actions-editor.stories.tsx +2 -2
- package/src/{components → settings/components}/quick-actions-editor.test.tsx +1 -1
- package/src/{components → settings/components}/quick-actions-editor.tsx +3 -3
- package/src/{config.test.ts → settings/config.test.ts} +2 -2
- package/src/{config.ts → settings/config.ts} +8 -3
- package/src/{use-settings-dialog.tsx → settings/use-settings-dialog.tsx} +2 -2
- package/src/{components → stories}/stories-app.tsx +8 -8
- package/src/{components → stories}/stories.test.tsx +2 -2
- package/src/{components → stories}/story-fixtures.ts +2 -2
- package/src/{components → stories}/story-tree.test.ts +1 -1
- package/src/{components → stories}/story.ts +4 -4
- package/src/{components → terminal/components}/AnsiScreen.stories.tsx +1 -1
- package/src/{components → terminal/components}/AnsiScreen.tsx +2 -2
- package/src/{components → terminal/components}/terminal-pane.test.tsx +1 -1
- package/src/{ghostty-terminal.ts → terminal/ghostty-terminal.ts} +1 -1
- package/src/{pty.ts → terminal/pty.ts} +1 -1
- package/src/{test-support.test.ts → testing/test-support.test.ts} +1 -1
- package/src/{test-support.ts → testing/test-support.ts} +1 -1
- package/src/{components → thread/components}/ThreadFooter.stories.tsx +2 -2
- package/src/{components → thread/components}/ThreadFooter.test.tsx +2 -2
- package/src/{components → thread/components}/ThreadFooter.tsx +4 -4
- package/src/{components → thread/components}/ThreadTree.stories.tsx +3 -3
- package/src/{components → thread/components}/ThreadTree.tsx +8 -8
- package/src/{thread-controller.live-diff.test.ts → thread/thread-controller.live-diff.test.ts} +1 -1
- package/src/{thread-controller.share.test.ts → thread/thread-controller.share.test.ts} +1 -1
- package/src/{thread-controller.tree.test.ts → thread/thread-controller.tree.test.ts} +1 -1
- package/src/{thread-controller.ts → thread/thread-controller.ts} +18 -13
- package/src/{components → ui/components}/CodeBlock.stories.tsx +2 -2
- package/src/{components → ui/components}/CodeBlock.tsx +2 -2
- package/src/{components → ui/components}/ConfirmCard.stories.tsx +3 -3
- package/src/{components → ui/components}/ConfirmCard.tsx +12 -7
- package/src/{components → ui/components}/ConfirmDialog.stories.tsx +2 -2
- package/src/{components → ui/components}/ConfirmDialog.tsx +2 -2
- package/src/{components → ui/components}/OverlayScrollbar.stories.tsx +2 -2
- package/src/{components → ui/components}/OverlayScrollbar.test.tsx +5 -5
- package/src/{components → ui/components}/OverlayScrollbar.tsx +2 -2
- package/src/{components → ui/components}/PromptDialog.stories.tsx +2 -2
- package/src/{components → ui/components}/PromptDialog.test.tsx +2 -2
- package/src/{components → ui/components}/PromptDialog.tsx +2 -2
- package/src/{components → ui/components}/RootOverlay.stories.tsx +2 -2
- package/src/{components → ui/components}/ScrollArea.stories.tsx +2 -2
- package/src/{components → ui/components}/ScrollArea.tsx +1 -1
- package/src/{components → ui/components}/Toast.stories.tsx +2 -2
- package/src/{components → ui/components}/Toast.tsx +2 -2
- package/src/{components → ui/components}/Tooltip.stories.tsx +2 -2
- package/src/{components → ui/components}/Tooltip.tsx +1 -1
- package/src/{components → ui/components}/menu-control.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Button.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Button.tsx +2 -2
- package/src/{components → ui/components}/primitives/Card.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Card.tsx +2 -2
- package/src/{components → ui/components}/primitives/Dialog.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Dialog.test.tsx +2 -2
- package/src/{components → ui/components}/primitives/Dialog.tsx +2 -2
- package/src/{components → ui/components}/primitives/DialogActions.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/DialogActions.tsx +1 -1
- package/src/{components → ui/components}/primitives/IconButton.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/IconButton.tsx +1 -1
- package/src/{components → ui/components}/primitives/StatusBar.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/StatusBar.tsx +2 -2
- package/src/{components → ui/components}/primitives/Switch.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Switch.tsx +2 -2
- package/src/{components → ui/components}/primitives/Tabs.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Tabs.tsx +2 -2
- package/src/{components → ui/components}/primitives/Toolbar.stories.tsx +1 -1
- package/src/{components → ui/components}/primitives/Tree.stories.tsx +2 -2
- package/src/{components → ui/components}/primitives/Tree.tsx +2 -2
- package/src/{components → ui/components}/syntax-highlight.ts +1 -1
- package/src/{components → workbench/components}/ChangesColumn.stories.tsx +2 -2
- package/src/{components → workbench/components}/ChangesColumn.tsx +7 -7
- package/src/{components → workbench/components}/ChangesFileTree.test.tsx +2 -2
- package/src/{components → workbench/components}/EditorGrid.split.test.tsx +1 -1
- package/src/{components → workbench/components}/EditorGrid.stories.tsx +2 -2
- package/src/{components → workbench/components}/EditorGrid.tabs.test.tsx +2 -2
- package/src/{components → workbench/components}/EditorGrid.tsx +8 -8
- package/src/{components → workbench/components}/EditorGrid.zoom.test.tsx +2 -2
- package/src/{components → workbench/components}/FileContentsView.stories.tsx +2 -2
- package/src/{components → workbench/components}/FileContentsView.test.tsx +2 -2
- package/src/{components → workbench/components}/FileContentsView.tsx +4 -4
- package/src/{components → workbench/components}/GridTabContent.actions.test.tsx +6 -6
- package/src/{components → workbench/components}/GridTabContent.stories.tsx +4 -4
- package/src/{components → workbench/components}/GridTabContent.tsx +4 -4
- package/src/{components → workbench/components}/ProjectTreeView.stories.tsx +2 -2
- package/src/{components → workbench/components}/ProjectTreeView.test.tsx +2 -2
- package/src/{components → workbench/components}/ProjectTreeView.tsx +5 -5
- package/src/{components → workbench/components}/TreePane.stories.tsx +3 -3
- package/src/{components → workbench/components}/TreePane.tsx +6 -6
- package/src/{components → workbench/components}/WelcomePlayground.stories.tsx +2 -2
- package/src/{components → workbench/components}/WelcomePlayground.test.tsx +10 -3
- package/src/{components → workbench/components}/WelcomePlayground.tsx +5 -5
- package/src/{components → workbench/components}/file-tree.ts +1 -1
- package/src/{use-changes-workbench.ts → workbench/use-changes-workbench.ts} +2 -2
- package/src/{use-remember-layout.ts → workbench/use-remember-layout.ts} +2 -2
- /package/src/{thread-selection.test.ts → annotations/thread-selection.test.ts} +0 -0
- /package/src/{thread-selection.ts → annotations/thread-selection.ts} +0 -0
- /package/src/{App.focus.test.ts → app/App.focus.test.ts} +0 -0
- /package/src/{launch-layout.test.ts → app/launch-layout.test.ts} +0 -0
- /package/src/{launch-layout.ts → app/launch-layout.ts} +0 -0
- /package/src/{ready-signal.ts → app/ready-signal.ts} +0 -0
- /package/src/{serve.test.ts → app/serve.test.ts} +0 -0
- /package/src/{components → appearance/components}/theme-context.tsx +0 -0
- /package/src/{theme-presets.test.ts → appearance/theme-presets.test.ts} +0 -0
- /package/src/{theme-presets.ts → appearance/theme-presets.ts} +0 -0
- /package/src/{theme.ts → appearance/theme.ts} +0 -0
- /package/src/{visual → appearance/visual}/contrast.test.ts +0 -0
- /package/src/{visual → appearance/visual}/contrast.ts +0 -0
- /package/src/{diff-fold.test.ts → diff/diff-fold.test.ts} +0 -0
- /package/src/{diff-fold.ts → diff/diff-fold.ts} +0 -0
- /package/src/{diff-hunk-curate.test.ts → diff/diff-hunk-curate.test.ts} +0 -0
- /package/src/{diff-hunk-curate.ts → diff/diff-hunk-curate.ts} +0 -0
- /package/src/{diff-intraline.test.ts → diff/diff-intraline.test.ts} +0 -0
- /package/src/{diff-intraline.ts → diff/diff-intraline.ts} +0 -0
- /package/src/{diff-syntax.test.ts → diff/diff-syntax.test.ts} +0 -0
- /package/src/{split-diff.test.ts → diff/split-diff.test.ts} +0 -0
- /package/src/{split-diff.ts → diff/split-diff.ts} +0 -0
- /package/src/{view-diff.test.ts → diff/view-diff.test.ts} +0 -0
- /package/src/{walk.test.ts → diff/walk.test.ts} +0 -0
- /package/src/{walk.ts → diff/walk.ts} +0 -0
- /package/src/{attribution.test.ts → integrations/attribution.test.ts} +0 -0
- /package/src/{attribution.ts → integrations/attribution.ts} +0 -0
- /package/src/{client-extension-registry.test.tsx → integrations/client-extension-registry.test.tsx} +0 -0
- /package/src/{client-extension-registry.ts → integrations/client-extension-registry.ts} +0 -0
- /package/src/{clipboard.test.ts → integrations/clipboard.test.ts} +0 -0
- /package/src/{clipboard.ts → integrations/clipboard.ts} +0 -0
- /package/src/{components → integrations/components}/share-dialog-store.ts +0 -0
- /package/src/{editor.test.ts → integrations/editor.test.ts} +0 -0
- /package/src/{editor.ts → integrations/editor.ts} +0 -0
- /package/src/{github-identity.test.ts → integrations/github-identity.test.ts} +0 -0
- /package/src/{github-identity.ts → integrations/github-identity.ts} +0 -0
- /package/src/{herdr.test.ts → integrations/herdr.test.ts} +0 -0
- /package/src/{herdr.ts → integrations/herdr.ts} +0 -0
- /package/src/{pasted-image.test.ts → integrations/pasted-image.test.ts} +0 -0
- /package/src/{pasted-image.ts → integrations/pasted-image.ts} +0 -0
- /package/src/{share.ts → integrations/share.ts} +0 -0
- /package/src/{key-bindings.ts → keyboard/key-bindings.ts} +0 -0
- /package/src/{skills.test.ts → keyboard/skills.test.ts} +0 -0
- /package/src/{skills.ts → keyboard/skills.ts} +0 -0
- /package/src/{slash-palette.test.ts → keyboard/slash-palette.test.ts} +0 -0
- /package/src/{thread-chords.test.ts → keyboard/thread-chords.test.ts} +0 -0
- /package/src/{thread-chords.ts → keyboard/thread-chords.ts} +0 -0
- /package/src/{use-shared-keyboard.ts → keyboard/use-shared-keyboard.ts} +0 -0
- /package/src/{__snapshots__ → markdown/__snapshots__}/view-plan.regression.test.ts.snap +0 -0
- /package/src/{markdown-grid.test.ts → markdown/markdown-grid.test.ts} +0 -0
- /package/src/{markdown-grid.ts → markdown/markdown-grid.ts} +0 -0
- /package/src/{markdown-highlight.test.ts → markdown/markdown-highlight.test.ts} +0 -0
- /package/src/{markdown-highlight.ts → markdown/markdown-highlight.ts} +0 -0
- /package/src/{view-plan.regression.test.ts → markdown/view-plan.regression.test.ts} +0 -0
- /package/src/{view-plan.test.ts → markdown/view-plan.test.ts} +0 -0
- /package/src/{perf → performance}/otlp-trace.test.ts +0 -0
- /package/src/{perf → performance}/otlp-trace.ts +0 -0
- /package/src/{perf → performance}/perf-report.ts +0 -0
- /package/src/{perf → performance}/perf-timings.test.ts +0 -0
- /package/src/{perf → performance}/perf-timings.ts +0 -0
- /package/src/{prototype-browser.test.ts → prototype/prototype-browser.test.ts} +0 -0
- /package/src/{prototype-browser.ts → prototype/prototype-browser.ts} +0 -0
- /package/src/{prototype-pixels.tsx → prototype/prototype-pixels.tsx} +0 -0
- /package/src/{config-identity.test.ts → settings/config-identity.test.ts} +0 -0
- /package/src/{components → stories}/__snapshots__/stories.test.tsx.snap +0 -0
- /package/src/{ansi-screen.test.ts → terminal/ansi-screen.test.ts} +0 -0
- /package/src/{ansi-screen.ts → terminal/ansi-screen.ts} +0 -0
- /package/src/{components → terminal/components}/terminal-pane.ts +0 -0
- /package/src/{ghostty-terminal.test.ts → terminal/ghostty-terminal.test.ts} +0 -0
- /package/src/{kitty-image.test.ts → terminal/kitty-image.test.ts} +0 -0
- /package/src/{kitty-image.ts → terminal/kitty-image.ts} +0 -0
- /package/src/{pty.test.ts → terminal/pty.test.ts} +0 -0
- /package/src/{components → thread/components}/thread-tree.test.ts +0 -0
- /package/src/{components → thread/components}/thread-tree.ts +0 -0
- /package/src/{thread-controller.curate.test.ts → thread/thread-controller.curate.test.ts} +0 -0
- /package/src/{thread-controller.derivation.test.ts → thread/thread-controller.derivation.test.ts} +0 -0
- /package/src/{thread-controller.optimistic.test.ts → thread/thread-controller.optimistic.test.ts} +0 -0
- /package/src/{thread-controller.switch-cache.test.ts → thread/thread-controller.switch-cache.test.ts} +0 -0
- /package/src/{tree-view.test.ts → thread/tree-view.test.ts} +0 -0
- /package/src/{tree-view.ts → thread/tree-view.ts} +0 -0
- /package/src/{components → ui/components}/RootOverlay.tsx +0 -0
- /package/src/{components → ui/components}/menu-control.tsx +0 -0
- /package/src/{components → ui/components}/primitives/Toolbar.tsx +0 -0
- /package/src/{components → ui/components}/primitives/frame.test.ts +0 -0
- /package/src/{components → ui/components}/primitives/frame.ts +0 -0
- /package/src/{components → ui/components}/primitives/icons.ts +0 -0
- /package/src/{components → ui/components}/primitives/tree-model.test.ts +0 -0
- /package/src/{components → ui/components}/primitives/tree-model.ts +0 -0
- /package/src/{components → ui/components}/truncate-text.ts +0 -0
- /package/src/{components → ui/components}/truncate-title.test.ts +0 -0
- /package/src/{components → ui/components}/truncate-title.ts +0 -0
- /package/src/{use-frame-measure.ts → ui/use-frame-measure.ts} +0 -0
- /package/src/{use-terminal-virtualizer.ts → ui/use-terminal-virtualizer.ts} +0 -0
- /package/src/{components → workbench/components}/editor-grid.test.ts +0 -0
- /package/src/{components → workbench/components}/editor-grid.ts +0 -0
- /package/src/{components → workbench/components}/file-tree.test.ts +0 -0
- /package/src/{use-repo-changes.ts → workbench/use-repo-changes.ts} +0 -0
- /package/src/{workbench-snapshot.test.ts → workbench/workbench-snapshot.test.ts} +0 -0
- /package/src/{workbench-snapshot.ts → workbench/workbench-snapshot.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Thread } from "@cueloop/schema";
|
|
2
2
|
import type { Mode } from "./intent-dispatch";
|
|
3
|
-
import type { KeyState } from "
|
|
4
|
-
import type { DisplayBlock } from "
|
|
5
|
-
import type { DiffRow } from "
|
|
6
|
-
import type { WalkFile } from "
|
|
3
|
+
import type { KeyState } from "../keyboard/keymap";
|
|
4
|
+
import type { DisplayBlock } from "../markdown/view-plan";
|
|
5
|
+
import type { DiffRow } from "../diff/view-diff";
|
|
6
|
+
import type { WalkFile } from "../diff/walk";
|
|
7
7
|
|
|
8
8
|
export function buildKeyState(params: {
|
|
9
9
|
keys: Record<string, string[]>;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { ScrollArea } from "
|
|
1
|
+
import { ScrollArea } from "../ui/components/ScrollArea";
|
|
2
2
|
import React, { useCallback, useMemo, type Dispatch, type SetStateAction } from "react";
|
|
3
3
|
import type { Thread, MessageOutcome } from "@cueloop/schema";
|
|
4
4
|
import { returnPaneFor } from "@cueloop/schema";
|
|
5
|
-
import type { Theme } from "
|
|
6
|
-
import type { DiffViewMode, QuickAction } from "
|
|
5
|
+
import type { Theme } from "../appearance/theme";
|
|
6
|
+
import type { DiffViewMode, QuickAction } from "../settings/config";
|
|
7
7
|
import type { LaunchLayout } from "./launch-layout";
|
|
8
|
-
import { useRememberLayout } from "
|
|
8
|
+
import { useRememberLayout } from "../workbench/use-remember-layout";
|
|
9
9
|
import type { Mode, TreeAsk } from "./intent-dispatch";
|
|
10
|
-
import type { Intent } from "
|
|
11
|
-
import type { ReviewController, ToastState } from "
|
|
12
|
-
import { noteForFile } from "
|
|
13
|
-
import type { WalkFile } from "
|
|
14
|
-
import type { CheatsheetSection } from "
|
|
15
|
-
import type { SettingsCategory, SettingsValues } from "
|
|
16
|
-
import type { SettingsNav } from "
|
|
10
|
+
import type { Intent } from "../keyboard/keymap";
|
|
11
|
+
import type { ReviewController, ToastState } from "../thread/thread-controller";
|
|
12
|
+
import { noteForFile } from "../diff/walk";
|
|
13
|
+
import type { WalkFile } from "../diff/walk";
|
|
14
|
+
import type { CheatsheetSection } from "../keyboard/key-bindings";
|
|
15
|
+
import type { SettingsCategory, SettingsValues } from "../settings/components/SettingsDialog";
|
|
16
|
+
import type { SettingsNav } from "../settings/use-settings-dialog";
|
|
17
17
|
import { CLIENT_VERSION } from "./version";
|
|
18
|
-
import { ThemeProvider } from "
|
|
19
|
-
import type { InboxRow } from "
|
|
20
|
-
import { SettingsDialog } from "
|
|
21
|
-
import { CompletionOverlay } from "
|
|
22
|
-
import { ThreadTree } from "
|
|
23
|
-
import { WelcomePlayground } from "
|
|
18
|
+
import { ThemeProvider } from "../appearance/components/theme-context";
|
|
19
|
+
import type { InboxRow } from "../thread/components/thread-tree";
|
|
20
|
+
import { SettingsDialog } from "../settings/components/SettingsDialog";
|
|
21
|
+
import { CompletionOverlay } from "../keyboard/components/CompletionOverlay";
|
|
22
|
+
import { ThreadTree } from "../thread/components/ThreadTree";
|
|
23
|
+
import { WelcomePlayground } from "../workbench/components/WelcomePlayground";
|
|
24
24
|
import { AppShell, type FocusPane, type ProjectPanelMode } from "./components/AppShell";
|
|
25
|
-
import type { ClientExtensionRegistry } from "
|
|
25
|
+
import type { ClientExtensionRegistry } from "../integrations/client-extension-registry";
|
|
26
26
|
import type { ExtensionUIContext } from "@cueloop/extension-api/client";
|
|
27
|
-
import { EditorGrid } from "
|
|
28
|
-
import { MenuControlProvider, type MenuControlApi } from "
|
|
29
|
-
import { ProjectTreeView } from "
|
|
30
|
-
import { ChangesFileTree } from "
|
|
31
|
-
import { BareWorkbenchFileView, draftThread } from "
|
|
32
|
-
import { GridTabContent, type DiffSurfaceProps } from "
|
|
33
|
-
import type { DiffFoldControls } from "
|
|
34
|
-
import { useChangesWorkbench } from "
|
|
35
|
-
import { useRepoChanges } from "
|
|
36
|
-
import { ConfirmDialog } from "
|
|
37
|
-
import { PromptDialog } from "
|
|
38
|
-
import { WalkWizard } from "
|
|
39
|
-
import { Toast } from "
|
|
27
|
+
import { EditorGrid } from "../workbench/components/EditorGrid";
|
|
28
|
+
import { MenuControlProvider, type MenuControlApi } from "../ui/components/menu-control";
|
|
29
|
+
import { ProjectTreeView } from "../workbench/components/ProjectTreeView";
|
|
30
|
+
import { ChangesFileTree } from "../workbench/components/ChangesColumn";
|
|
31
|
+
import { BareWorkbenchFileView, draftThread } from "../diff/components/BareWorkbenchFileView";
|
|
32
|
+
import { GridTabContent, type DiffSurfaceProps } from "../workbench/components/GridTabContent";
|
|
33
|
+
import type { DiffFoldControls } from "../diff/components/DiffContentView";
|
|
34
|
+
import { useChangesWorkbench } from "../workbench/use-changes-workbench";
|
|
35
|
+
import { useRepoChanges } from "../workbench/use-repo-changes";
|
|
36
|
+
import { ConfirmDialog } from "../ui/components/ConfirmDialog";
|
|
37
|
+
import { PromptDialog } from "../ui/components/PromptDialog";
|
|
38
|
+
import { WalkWizard } from "../diff/components/WalkWizard";
|
|
39
|
+
import { Toast } from "../ui/components/Toast";
|
|
40
40
|
|
|
41
41
|
export function ErrorScreen({ error, theme }: { error: string; theme: Theme }): React.ReactNode {
|
|
42
42
|
return (
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Dispatch, MutableRefObject, SetStateAction } from "react";
|
|
2
2
|
import type { Thread, MessageOutcome } from "@cueloop/schema";
|
|
3
3
|
import type { Mode } from "./intent-dispatch";
|
|
4
|
-
import type { Intent, KeyState } from "
|
|
5
|
-
import type { Completion } from "
|
|
6
|
-
import type { WalkFile } from "
|
|
7
|
-
import type { QuickAction } from "
|
|
8
|
-
import { viewedCount } from "
|
|
9
|
-
import type { ConfirmCardProps } from "
|
|
4
|
+
import type { Intent, KeyState } from "../keyboard/keymap";
|
|
5
|
+
import type { Completion } from "../thread/thread-controller";
|
|
6
|
+
import type { WalkFile } from "../diff/walk";
|
|
7
|
+
import type { QuickAction } from "../settings/config";
|
|
8
|
+
import { viewedCount } from "../diff/walk";
|
|
9
|
+
import type { ConfirmCardProps } from "../ui/components/ConfirmCard";
|
|
10
10
|
import type { BreadcrumbItem } from "./components/Breadcrumb";
|
|
11
11
|
|
|
12
12
|
export function computeRoleCapabilities(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { AppHeader } from "./AppHeader";
|
|
5
|
-
import { Button } from "
|
|
6
|
-
import { Toolbar } from "
|
|
5
|
+
import { Button } from "../../ui/components/primitives/Button";
|
|
6
|
+
import { Toolbar } from "../../ui/components/primitives/Toolbar";
|
|
7
7
|
|
|
8
8
|
export const meta: StoryMeta = { title: "Chrome/AppHeader" };
|
|
9
9
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// right column. Collapsing a column keeps its toggle reachable at the edge.
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
|
-
import type { Theme } from "
|
|
9
|
-
import { IconButton } from "
|
|
10
|
-
import { NERD } from "
|
|
8
|
+
import type { Theme } from "../../appearance/theme";
|
|
9
|
+
import { IconButton } from "../../ui/components/primitives/IconButton";
|
|
10
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
11
11
|
|
|
12
12
|
export interface AppHeaderProps {
|
|
13
13
|
onOpenMenu: () => void;
|
|
@@ -9,8 +9,8 @@ import { describe, expect, test } from "bun:test";
|
|
|
9
9
|
import { testRender } from "@opentui/react/test-utils";
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { AppShell } from "./AppShell";
|
|
12
|
-
import { NERD } from "
|
|
13
|
-
import { settle } from "
|
|
12
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
13
|
+
import { settle } from "../../testing/test-support";
|
|
14
14
|
|
|
15
15
|
const LONG_TITLE = "working tree @ GRO-1981-fe-billing-promo-cookie-migration";
|
|
16
16
|
|
|
@@ -7,8 +7,8 @@ import { testRender } from "@opentui/react/test-utils";
|
|
|
7
7
|
import {
|
|
8
8
|
ClientExtensionRegistry,
|
|
9
9
|
loadInstalledClientExtensions,
|
|
10
|
-
} from "
|
|
11
|
-
import { settle } from "
|
|
10
|
+
} from "../../integrations/client-extension-registry";
|
|
11
|
+
import { settle } from "../../testing/test-support";
|
|
12
12
|
import { AppShell } from "./AppShell";
|
|
13
13
|
|
|
14
14
|
function shell(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { AppShell } from "./AppShell";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Layout/AppShell" };
|
|
@@ -8,17 +8,20 @@
|
|
|
8
8
|
import React, { useEffect, useRef } from "react";
|
|
9
9
|
import { useTerminalDimensions } from "@opentui/react";
|
|
10
10
|
import type { BoxRenderable } from "@opentui/core";
|
|
11
|
-
import { DARK, type Theme } from "
|
|
12
|
-
import { useFrameMeasure } from "
|
|
13
|
-
import { truncateTitle } from "
|
|
11
|
+
import { DARK, type Theme } from "../../appearance/theme";
|
|
12
|
+
import { useFrameMeasure } from "../../ui/use-frame-measure";
|
|
13
|
+
import { truncateTitle } from "../../ui/components/truncate-title";
|
|
14
14
|
import { PanelColumn } from "./PanelColumn";
|
|
15
|
-
import { IconButton } from "
|
|
16
|
-
import { NERD, HEADER_UNDERLINE_CHARS } from "
|
|
17
|
-
import { TooltipProvider } from "
|
|
18
|
-
import { RootOverlayProvider } from "
|
|
15
|
+
import { IconButton } from "../../ui/components/primitives/IconButton";
|
|
16
|
+
import { NERD, HEADER_UNDERLINE_CHARS } from "../../ui/components/primitives/icons";
|
|
17
|
+
import { TooltipProvider } from "../../ui/components/Tooltip";
|
|
18
|
+
import { RootOverlayProvider } from "../../ui/components/RootOverlay";
|
|
19
19
|
import type { ExtensionUIContext } from "@cueloop/extension-api/client";
|
|
20
|
-
import { ClientExtensionRegistry } from "
|
|
21
|
-
import {
|
|
20
|
+
import { ClientExtensionRegistry } from "../../integrations/client-extension-registry";
|
|
21
|
+
import {
|
|
22
|
+
ExtensionZone,
|
|
23
|
+
useClientExtensionSnapshot,
|
|
24
|
+
} from "../../integrations/components/ExtensionZone";
|
|
22
25
|
import { WorkspacePanels } from "./WorkspacePanels";
|
|
23
26
|
|
|
24
27
|
const EMPTY_EXTENSION_REGISTRY = new ClientExtensionRegistry();
|
|
@@ -10,10 +10,10 @@ import { describe, expect, test } from "bun:test";
|
|
|
10
10
|
import { testRender } from "@opentui/react/test-utils";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { AppShell } from "./AppShell";
|
|
13
|
-
import { EditorGrid } from "
|
|
14
|
-
import { changesTab, makeGroup, splitGroup } from "
|
|
15
|
-
import { NERD } from "
|
|
16
|
-
import { allowEventLoopUpdates } from "
|
|
13
|
+
import { EditorGrid } from "../../workbench/components/EditorGrid";
|
|
14
|
+
import { changesTab, makeGroup, splitGroup } from "../../workbench/components/editor-grid";
|
|
15
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
16
|
+
import { allowEventLoopUpdates } from "../../testing/test-support";
|
|
17
17
|
|
|
18
18
|
const grid = makeGroup([changesTab()]);
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { Breadcrumb } from "./Breadcrumb";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Chrome/Breadcrumb" };
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React from "react";
|
|
8
|
-
import type { Theme } from "
|
|
9
|
-
import { useComponentTheme } from "
|
|
8
|
+
import type { Theme } from "../../appearance/theme";
|
|
9
|
+
import { useComponentTheme } from "../../appearance/components/theme-context";
|
|
10
10
|
|
|
11
11
|
export type BreadcrumbTone = "accent" | "dim" | "text" | "green";
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { MenuBar } from "./MenuBar";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Chrome/MenuBar" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { Theme } from "
|
|
3
|
-
import { useComponentTheme } from "
|
|
4
|
-
import { FRAME_BORDER_STYLE } from "
|
|
2
|
+
import type { Theme } from "../../appearance/theme";
|
|
3
|
+
import { useComponentTheme } from "../../appearance/components/theme-context";
|
|
4
|
+
import { FRAME_BORDER_STYLE } from "../../ui/components/primitives/frame";
|
|
5
5
|
|
|
6
6
|
export interface MenuBarProps {
|
|
7
7
|
open: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { PaneGrid } from "./PaneGrid";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Layout/PaneGrid" };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// storybook runner); the product's four-pane workbench is AppShell.
|
|
5
5
|
|
|
6
6
|
import React from "react";
|
|
7
|
-
import { DARK, type Theme } from "
|
|
7
|
+
import { DARK, type Theme } from "../../appearance/theme";
|
|
8
8
|
import type { BorderSides } from "@opentui/core";
|
|
9
9
|
|
|
10
10
|
export interface PaneGridProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { PanelColumn, FileTab } from "./PanelColumn";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Surfaces/PanelColumn" };
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// header bottoms join the side rules into one grid. The side border runs from the top.
|
|
5
5
|
|
|
6
6
|
import React, { useState } from "react";
|
|
7
|
-
import type { Theme } from "
|
|
8
|
-
import { NERD, HEADER_UNDERLINE_CHARS } from "
|
|
7
|
+
import type { Theme } from "../../appearance/theme";
|
|
8
|
+
import { NERD, HEADER_UNDERLINE_CHARS } from "../../ui/components/primitives/icons";
|
|
9
9
|
|
|
10
10
|
export interface FileTabProps {
|
|
11
11
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { ShellHeader } from "./ShellHeader";
|
|
5
|
-
import { NERD } from "
|
|
5
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
6
6
|
|
|
7
7
|
export const meta: StoryMeta = { title: "Layout/ShellHeader" };
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// The app shell's top bar: left panel toggle + icons + label, an optional title, right icons + panel toggle.
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { DARK, type Theme } from "
|
|
5
|
-
import { NERD } from "
|
|
4
|
+
import { DARK, type Theme } from "../../appearance/theme";
|
|
5
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
6
6
|
|
|
7
7
|
export interface ShellTab {
|
|
8
8
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ClientExtensionRegistry } from "
|
|
3
|
-
import { DARK } from "
|
|
4
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { ClientExtensionRegistry } from "../../integrations/client-extension-registry";
|
|
3
|
+
import { DARK } from "../../appearance/theme";
|
|
4
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
5
5
|
import { WorkspacePanels } from "./WorkspacePanels";
|
|
6
6
|
|
|
7
7
|
export const meta: StoryMeta = { title: "Extensions/WorkspacePanels" };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { useKeyboard } from "@opentui/react";
|
|
3
3
|
import type { ExtensionUIContext } from "@cueloop/extension-api/client";
|
|
4
|
-
import type { ClientExtensionRegistry } from "
|
|
5
|
-
import type { Theme } from "
|
|
4
|
+
import type { ClientExtensionRegistry } from "../../integrations/client-extension-registry";
|
|
5
|
+
import type { Theme } from "../../appearance/theme";
|
|
6
6
|
import type { ProjectPanelMode } from "./AppShell";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
ExtensionZone,
|
|
9
|
+
useClientExtensionSnapshot,
|
|
10
|
+
visibleContributions,
|
|
11
|
+
} from "../../integrations/components/ExtensionZone";
|
|
8
12
|
import { FileTab, PanelColumn } from "./PanelColumn";
|
|
9
|
-
import { IconButton } from "
|
|
10
|
-
import { NERD } from "
|
|
13
|
+
import { IconButton } from "../../ui/components/primitives/IconButton";
|
|
14
|
+
import { NERD } from "../../ui/components/primitives/icons";
|
|
11
15
|
|
|
12
16
|
/** The existing right pane owns built-in modes and selectable extension views. */
|
|
13
17
|
export function WorkspacePanels(props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../../stories/story";
|
|
4
4
|
import { PaneGrid } from "../PaneGrid";
|
|
5
|
-
import { Tree } from "
|
|
6
|
-
import type { TreeNode } from "
|
|
5
|
+
import { Tree } from "../../../ui/components/primitives/Tree";
|
|
6
|
+
import type { TreeNode } from "../../../ui/components/primitives/tree-model";
|
|
7
7
|
|
|
8
8
|
export const meta: StoryMeta = { title: "Pages/Workspace" };
|
|
9
9
|
|
|
@@ -9,9 +9,13 @@ import { describe, expect, mock, test } from "bun:test";
|
|
|
9
9
|
import type { SetStateAction } from "react";
|
|
10
10
|
import { SCHEMA_VERSION, type Annotation, type Thread } from "@cueloop/schema";
|
|
11
11
|
import { createIntentDispatch, type IntentDispatchDeps } from "./intent-dispatch";
|
|
12
|
-
import type {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
import type {
|
|
13
|
+
ControllerSnapshot,
|
|
14
|
+
CurationItem,
|
|
15
|
+
ReviewController,
|
|
16
|
+
} from "../thread/thread-controller";
|
|
17
|
+
import type { DisplayBlock } from "../markdown/view-plan";
|
|
18
|
+
import type { TreeRow } from "../thread/tree-view";
|
|
15
19
|
|
|
16
20
|
function block(text: string): DisplayBlock {
|
|
17
21
|
return { type: "same", kind: "p", work: { kind: "p", text, lineStart: 0, lineEnd: 0 } };
|
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
import type { Dispatch, MutableRefObject, SetStateAction } from "react";
|
|
11
11
|
import { isAddressed, MESSAGE_OUTCOMES, type Thread, type MessageOutcome } from "@cueloop/schema";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import {
|
|
13
|
+
displayText,
|
|
14
|
+
spanKey,
|
|
15
|
+
startSpan,
|
|
16
|
+
type DisplayBlock,
|
|
17
|
+
type SpanState,
|
|
18
|
+
} from "../markdown/view-plan";
|
|
19
|
+
import type { DiffRow } from "../diff/view-diff";
|
|
20
|
+
import type { ReviewController } from "../thread/thread-controller";
|
|
21
|
+
import type { Intent } from "../keyboard/keymap";
|
|
22
|
+
import type { TreeRow } from "../thread/tree-view";
|
|
23
|
+
import { quickActionBody, type QuickAction } from "../settings/config";
|
|
18
24
|
|
|
19
25
|
/** Which pane of the session tree / review the keyboard grammar is aimed at. */
|
|
20
26
|
export type RailTab = "review" | "tree";
|
|
@@ -7,7 +7,7 @@ import { join } from "node:path";
|
|
|
7
7
|
import { createElement, useState } from "react";
|
|
8
8
|
import { testRender } from "@opentui/react/test-utils";
|
|
9
9
|
import { READY_FILE_ENV, useReadySignal } from "./ready-signal";
|
|
10
|
-
import { settle } from "
|
|
10
|
+
import { settle } from "../testing/test-support";
|
|
11
11
|
|
|
12
12
|
const homes: string[] = [];
|
|
13
13
|
|
|
@@ -4,18 +4,18 @@ import React from "react";
|
|
|
4
4
|
import { createCliRenderer } from "@opentui/core";
|
|
5
5
|
import { createRoot } from "@opentui/react";
|
|
6
6
|
import { App } from "./App";
|
|
7
|
-
import { closePrototypeBrowser } from "
|
|
8
|
-
import type { Appearance } from "
|
|
7
|
+
import { closePrototypeBrowser } from "../prototype/prototype-browser";
|
|
8
|
+
import type { Appearance } from "../appearance/theme-presets";
|
|
9
9
|
import type { DiffFileContents, Thread } from "@cueloop/schema";
|
|
10
10
|
import type { ThreadClient } from "@cueloop/daemon/client";
|
|
11
|
-
import { loadConfig } from "
|
|
12
|
-
import { perfMark } from "
|
|
13
|
-
import { reportPerfMarks } from "
|
|
11
|
+
import { loadConfig } from "../settings/config";
|
|
12
|
+
import { perfMark } from "../performance/perf-timings";
|
|
13
|
+
import { reportPerfMarks } from "../performance/perf-report";
|
|
14
14
|
import { defaultLayout, type LaunchLayout } from "./launch-layout";
|
|
15
15
|
import {
|
|
16
16
|
ClientExtensionRegistry,
|
|
17
17
|
loadInstalledClientExtensions,
|
|
18
|
-
} from "
|
|
18
|
+
} from "../integrations/client-extension-registry";
|
|
19
19
|
|
|
20
20
|
export interface RunClientOptions {
|
|
21
21
|
sessionId?: string;
|
|
@@ -23,7 +23,7 @@ import { cueloopHome } from "@cueloop/daemon";
|
|
|
23
23
|
import { DaemonClient } from "@cueloop/daemon/client";
|
|
24
24
|
import type { Artifact } from "@cueloop/schema";
|
|
25
25
|
import { App } from "./App";
|
|
26
|
-
import { snapshotWorkbench } from "
|
|
26
|
+
import { snapshotWorkbench } from "../workbench/workbench-snapshot";
|
|
27
27
|
|
|
28
28
|
/** OSC background query budget: brief so a terminal that never answers falls back to dark. */
|
|
29
29
|
const THEME_QUERY_TIMEOUT_MS = 200;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DARK, type Theme } from "../theme";
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { ThemeProvider } from "./theme-context";
|
|
5
|
-
import { Card } from "
|
|
5
|
+
import { Card } from "../../ui/components/primitives/Card";
|
|
6
6
|
|
|
7
7
|
export const meta: StoryMeta = { title: "Foundations/Theme" };
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SCHEMA_VERSION, type Thread } from "@cueloop/schema";
|
|
3
|
-
import { DARK } from "
|
|
4
|
-
import type { Story, StoryMeta } from "
|
|
3
|
+
import { DARK } from "../../appearance/theme";
|
|
4
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
5
5
|
import { AnnotatableFileView } from "./AnnotatableFileView";
|
|
6
6
|
|
|
7
7
|
export const meta: StoryMeta = { title: "Surfaces/AnnotatableFileView" };
|
|
@@ -9,8 +9,14 @@ import { testRender } from "@opentui/react/test-utils";
|
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { SCHEMA_VERSION, type Anchor, type Thread } from "@cueloop/schema";
|
|
11
11
|
import { AnnotatableFileView } from "./AnnotatableFileView";
|
|
12
|
-
import { DARK } from "
|
|
13
|
-
import {
|
|
12
|
+
import { DARK } from "../../appearance/theme";
|
|
13
|
+
import {
|
|
14
|
+
allowEventLoopUpdates,
|
|
15
|
+
dragText,
|
|
16
|
+
typeText,
|
|
17
|
+
pressKey,
|
|
18
|
+
waitForText,
|
|
19
|
+
} from "../../testing/test-support";
|
|
14
20
|
|
|
15
21
|
const SAMPLE = "export function add(a: number, b: number) {\n return a + b;\n}\n";
|
|
16
22
|
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
type Annotation,
|
|
12
12
|
type Thread,
|
|
13
13
|
} from "@cueloop/schema";
|
|
14
|
-
import type { Theme } from "
|
|
15
|
-
import type { QuickAction } from "
|
|
16
|
-
import { useComponentTheme } from "
|
|
14
|
+
import type { Theme } from "../../appearance/theme";
|
|
15
|
+
import type { QuickAction } from "../../settings/config";
|
|
16
|
+
import { useComponentTheme } from "../../appearance/components/theme-context";
|
|
17
17
|
import { DiffContentView } from "./DiffContentView";
|
|
18
18
|
import { diffRowBlocks, fileContentsRows, marksByRows } from "../view-diff";
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { DARK } from "
|
|
3
|
-
import type { Story, StoryMeta } from "
|
|
2
|
+
import { DARK } from "../../appearance/theme";
|
|
3
|
+
import type { Story, StoryMeta } from "../../stories/story";
|
|
4
4
|
import { BareWorkbenchFileView, type WorkbenchCommenter } from "./BareWorkbenchFileView";
|
|
5
5
|
|
|
6
6
|
export const meta: StoryMeta = { title: "Surfaces/BareWorkbenchFileView" };
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { SCHEMA_VERSION, type Anchor, type AnnotationTarget, type Thread } from "@cueloop/schema";
|
|
7
|
-
import type { Theme } from "
|
|
8
|
-
import type { QuickAction } from "
|
|
7
|
+
import type { Theme } from "../../appearance/theme";
|
|
8
|
+
import type { QuickAction } from "../../settings/config";
|
|
9
9
|
import { AnnotatableFileView } from "./AnnotatableFileView";
|
|
10
10
|
|
|
11
11
|
/** The controller slice this view needs: read a file, and route a comment to the workbench thread. */
|
|
@@ -7,10 +7,10 @@ import { ScrollBoxRenderable, type Renderable } from "@opentui/core";
|
|
|
7
7
|
import type { Annotation } from "@cueloop/schema";
|
|
8
8
|
import { DiffContentView } from "./DiffContentView";
|
|
9
9
|
import { diffRows, marksByRows } from "../view-diff";
|
|
10
|
-
import { DARK } from "
|
|
11
|
-
import { annotationPaletteFor } from "
|
|
12
|
-
import { press, settle, typeText } from "
|
|
13
|
-
import { fixtureDiffSession } from "
|
|
10
|
+
import { DARK } from "../../appearance/theme";
|
|
11
|
+
import { annotationPaletteFor } from "../../annotations/annotation-palette";
|
|
12
|
+
import { press, settle, typeText } from "../../testing/test-support";
|
|
13
|
+
import { fixtureDiffSession } from "../../stories/story-fixtures";
|
|
14
14
|
|
|
15
15
|
const noop = (): void => {};
|
|
16
16
|
|
|
@@ -9,10 +9,10 @@ import { testRender } from "@opentui/react/test-utils";
|
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { DiffContentView } from "./DiffContentView";
|
|
11
11
|
import { diffRows } from "../view-diff";
|
|
12
|
-
import { allowEventLoopUpdates } from "
|
|
13
|
-
import { fixtureDiffSession } from "
|
|
14
|
-
import { annotationPaletteFor } from "
|
|
15
|
-
import { DARK } from "
|
|
12
|
+
import { allowEventLoopUpdates } from "../../testing/test-support";
|
|
13
|
+
import { fixtureDiffSession } from "../../stories/story-fixtures";
|
|
14
|
+
import { annotationPaletteFor } from "../../annotations/annotation-palette";
|
|
15
|
+
import { DARK } from "../../appearance/theme";
|
|
16
16
|
|
|
17
17
|
const noop = (): void => {};
|
|
18
18
|
|