painapple-code 1.0.0__py3-none-any.whl
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.
- painapple_code/__init__.py +30 -0
- painapple_code/__main__.py +18 -0
- painapple_code/_version.py +24 -0
- painapple_code/auth_middleware.py +930 -0
- painapple_code/cli/__init__.py +204 -0
- painapple_code/cli/deploy/__init__.py +15 -0
- painapple_code/cli/deploy/claude_seed.py +41 -0
- painapple_code/cli/deploy/config.py +260 -0
- painapple_code/cli/deploy/container.py +715 -0
- painapple_code/cli/deploy/launch.py +163 -0
- painapple_code/cli/deploy/runtime.py +223 -0
- painapple_code/cli/lifecycle_cmd.py +443 -0
- painapple_code/cli/list_cmd.py +572 -0
- painapple_code/cli/manage_cmd.py +670 -0
- painapple_code/cli/netinfo.py +125 -0
- painapple_code/cli/profiles.py +390 -0
- painapple_code/cli/serve_args.py +163 -0
- painapple_code/cli/serve_config.py +256 -0
- painapple_code/cli/setup_cmd.py +664 -0
- painapple_code/cli/ui.py +438 -0
- painapple_code/cost_analytics.py +879 -0
- painapple_code/data/models.defaults.yaml +18 -0
- painapple_code/data/models.yaml +18 -0
- painapple_code/data/presets.defaults.json +32 -0
- painapple_code/data/strings.yaml +2269 -0
- painapple_code/helpers.py +406 -0
- painapple_code/paths.py +1514 -0
- painapple_code/prompt_explorer.py +984 -0
- painapple_code/providers/__init__.py +224 -0
- painapple_code/providers/base.py +710 -0
- painapple_code/providers/claude/__init__.py +74 -0
- painapple_code/providers/claude/capabilities.py +218 -0
- painapple_code/providers/claude/errors.py +79 -0
- painapple_code/providers/claude/launch.py +50 -0
- painapple_code/providers/claude/summary.py +89 -0
- painapple_code/providers/claude/translate.py +74 -0
- painapple_code/providers/claude_sdk/__init__.py +139 -0
- painapple_code/providers/claude_sdk/driver.py +412 -0
- painapple_code/providers/codex/__init__.py +87 -0
- painapple_code/providers/codex/capabilities.py +321 -0
- painapple_code/providers/codex/errors.py +70 -0
- painapple_code/providers/codex/launch.py +142 -0
- painapple_code/providers/codex/summary.py +196 -0
- painapple_code/providers/codex/translate.py +204 -0
- painapple_code/providers/codex_app_server/__init__.py +100 -0
- painapple_code/providers/codex_app_server/capabilities.py +41 -0
- painapple_code/providers/codex_app_server/launch.py +202 -0
- painapple_code/providers/codex_app_server/summary.py +291 -0
- painapple_code/providers/codex_app_server/translate.py +263 -0
- painapple_code/providers/codex_app_server/transport.py +238 -0
- painapple_code/routes/__init__.py +0 -0
- painapple_code/routes/api_agents.py +441 -0
- painapple_code/routes/api_app.py +368 -0
- painapple_code/routes/api_app_commit_sections.py +127 -0
- painapple_code/routes/api_app_config.py +997 -0
- painapple_code/routes/api_app_session_prefs.py +217 -0
- painapple_code/routes/api_browser.py +690 -0
- painapple_code/routes/api_commands.py +374 -0
- painapple_code/routes/api_costs.py +128 -0
- painapple_code/routes/api_drafts.py +139 -0
- painapple_code/routes/api_exec.py +149 -0
- painapple_code/routes/api_files.py +542 -0
- painapple_code/routes/api_git.py +657 -0
- painapple_code/routes/api_logs.py +649 -0
- painapple_code/routes/api_plugins.py +275 -0
- painapple_code/routes/api_project_config.py +418 -0
- painapple_code/routes/api_prompts.py +231 -0
- painapple_code/routes/api_providers.py +53 -0
- painapple_code/routes/api_search.py +411 -0
- painapple_code/routes/api_session_stash.py +234 -0
- painapple_code/routes/api_session_welcome.py +151 -0
- painapple_code/routes/api_sessions.py +742 -0
- painapple_code/routes/api_shadow.py +323 -0
- painapple_code/routes/api_shadow_db.py +512 -0
- painapple_code/routes/api_shadow_files.py +332 -0
- painapple_code/routes/api_shadow_search.py +476 -0
- painapple_code/routes/api_skills.py +610 -0
- painapple_code/routes/api_tasks.py +147 -0
- painapple_code/routes/api_terminal.py +540 -0
- painapple_code/routes/api_upload.py +293 -0
- painapple_code/routes/api_viewer.py +229 -0
- painapple_code/routes/dependencies.py +109 -0
- painapple_code/routes/ws_chat.py +837 -0
- painapple_code/server.py +2208 -0
- painapple_code/server_logging.py +263 -0
- painapple_code/services/__init__.py +0 -0
- painapple_code/services/agent_session.py +2738 -0
- painapple_code/session_store.py +253 -0
- painapple_code/session_store_core.py +879 -0
- painapple_code/shadow_db.py +830 -0
- painapple_code/shadow_db_plans.py +369 -0
- painapple_code/shadow_db_queries.py +595 -0
- painapple_code/shadow_db_schema.py +676 -0
- painapple_code/shadow_git.py +1296 -0
- painapple_code/shadow_git_frontmatter.py +314 -0
- painapple_code/shadow_git_sections.py +520 -0
- painapple_code/shadow_git_summary.py +462 -0
- painapple_code/shadow_parser.py +560 -0
- painapple_code/static/css/00-variables.css +276 -0
- painapple_code/static/css/01-base.css +245 -0
- painapple_code/static/css/02-tooltips.css +36 -0
- painapple_code/static/css/09-left-rail.css +448 -0
- painapple_code/static/css/10-header.css +777 -0
- painapple_code/static/css/11-connection-bar.css +120 -0
- painapple_code/static/css/20-messages.css +750 -0
- painapple_code/static/css/21-tool-blocks.css +2340 -0
- painapple_code/static/css/22-edit-diff.css +619 -0
- painapple_code/static/css/23-thinking.css +1584 -0
- painapple_code/static/css/24-background-tasks.css +359 -0
- painapple_code/static/css/25-context-block.css +252 -0
- painapple_code/static/css/26-session-setup.css +144 -0
- painapple_code/static/css/30-markdown.css +854 -0
- painapple_code/static/css/40-input.css +2418 -0
- painapple_code/static/css/41-autocomplete.css +127 -0
- painapple_code/static/css/42-activity-strip.css +97 -0
- painapple_code/static/css/43-file-autocomplete.css +121 -0
- painapple_code/static/css/44-snippets-autocomplete.css +224 -0
- painapple_code/static/css/45-selection-bar.css +433 -0
- painapple_code/static/css/46-keyboard-bar.css +119 -0
- painapple_code/static/css/47-keyboard-longpress.css +116 -0
- painapple_code/static/css/47-token-profile.css +106 -0
- painapple_code/static/css/50-welcome.css +3095 -0
- painapple_code/static/css/51-modals.css +301 -0
- painapple_code/static/css/52-utilities.css +77 -0
- painapple_code/static/css/53-image-upload.css +456 -0
- painapple_code/static/css/54-todo-list.css +102 -0
- painapple_code/static/css/55-file-upload.css +113 -0
- painapple_code/static/css/56-chat-navigator.css +218 -0
- painapple_code/static/css/56-permission-card.css +332 -0
- painapple_code/static/css/56-plan-approval.css +204 -0
- painapple_code/static/css/56-question-form.css +602 -0
- painapple_code/static/css/57-swipe-indicator.css +95 -0
- painapple_code/static/css/58-session-families.css +627 -0
- painapple_code/static/css/59-about.css +196 -0
- painapple_code/static/css/61-log-explorer.css +723 -0
- painapple_code/static/css/62-json-tree.css +489 -0
- painapple_code/static/css/62-skills-widget.css +650 -0
- painapple_code/static/css/63-commands-widget.css +30 -0
- painapple_code/static/css/63-plugins-widget.css +174 -0
- painapple_code/static/css/63-terminal.css +516 -0
- painapple_code/static/css/64-search-files-widget.css +448 -0
- painapple_code/static/css/65-snippets-widget.css +426 -0
- painapple_code/static/css/66-active-sessions.css +979 -0
- painapple_code/static/css/66-agents-widget.css +265 -0
- painapple_code/static/css/66-file-explorer-widget.css +855 -0
- painapple_code/static/css/66-git-panel.css +791 -0
- painapple_code/static/css/66-history-explorer.css +1496 -0
- painapple_code/static/css/67-diff-viewer.css +602 -0
- painapple_code/static/css/67-editor-view.css +748 -0
- painapple_code/static/css/67-file-preview-widget.css +1873 -0
- painapple_code/static/css/68-browser-widget.css +337 -0
- painapple_code/static/css/68-compare-wizard.css +355 -0
- painapple_code/static/css/68-csv-preview.css +106 -0
- painapple_code/static/css/68-diff-preview.css +103 -0
- painapple_code/static/css/68-helpers-install-widget.css +491 -0
- painapple_code/static/css/68-image-annotate.css +346 -0
- painapple_code/static/css/68-terminal-view.css +98 -0
- painapple_code/static/css/68-uploads-widget.css +229 -0
- painapple_code/static/css/69-cost-analytics.css +537 -0
- painapple_code/static/css/70-config-panel.css +3736 -0
- painapple_code/static/css/70-excalidraw.css +136 -0
- painapple_code/static/css/70-prompt-explorer.css +890 -0
- painapple_code/static/css/71-chart.css +111 -0
- painapple_code/static/css/72-discussion-sidebar.css +678 -0
- painapple_code/static/css/74-debug-logs.css +656 -0
- painapple_code/static/css/80-open-dialog.css +146 -0
- painapple_code/static/css/80-quick-switcher.css +383 -0
- painapple_code/static/css/80-widget-system.css +1763 -0
- painapple_code/static/css/81-quick-actions.css +1020 -0
- painapple_code/static/css/82-context-popover.css +1233 -0
- painapple_code/static/css/83-context-menu.css +339 -0
- painapple_code/static/css/85-lazy-loading.css +102 -0
- painapple_code/static/css/86-zen-mode.css +708 -0
- painapple_code/static/css/87-grid-switcher.css +346 -0
- painapple_code/static/css/login.css +198 -0
- painapple_code/static/dist/app.bundle.js +7177 -0
- painapple_code/static/feature-triage.html +446 -0
- painapple_code/static/icons/apple-touch-icon.png +0 -0
- painapple_code/static/icons/favicon-32.png +0 -0
- painapple_code/static/icons/favicon.ico +0 -0
- painapple_code/static/icons/icon-128.png +0 -0
- painapple_code/static/icons/icon-144.png +0 -0
- painapple_code/static/icons/icon-152.png +0 -0
- painapple_code/static/icons/icon-180.png +0 -0
- painapple_code/static/icons/icon-192.png +0 -0
- painapple_code/static/icons/icon-384.png +0 -0
- painapple_code/static/icons/icon-512.png +0 -0
- painapple_code/static/icons/icon-72.png +0 -0
- painapple_code/static/icons/icon-96.png +0 -0
- painapple_code/static/js/action-delegate.js +187 -0
- painapple_code/static/js/activity-strip.js +193 -0
- painapple_code/static/js/app/context-menus.js +619 -0
- painapple_code/static/js/app/file-preview.js +163 -0
- painapple_code/static/js/app/init-ui.js +574 -0
- painapple_code/static/js/app/input-events.js +561 -0
- painapple_code/static/js/app/input-resize.js +313 -0
- painapple_code/static/js/app/message-actions.js +419 -0
- painapple_code/static/js/app/panels.js +210 -0
- painapple_code/static/js/app/rendering-delegators.js +246 -0
- painapple_code/static/js/app/server-loading.js +365 -0
- painapple_code/static/js/app/session-ops.js +287 -0
- painapple_code/static/js/app/session-switch.js +443 -0
- painapple_code/static/js/app/settings-helpers.js +280 -0
- painapple_code/static/js/app/startup-welcome.js +290 -0
- painapple_code/static/js/app-context.js +157 -0
- painapple_code/static/js/app.js +2134 -0
- painapple_code/static/js/auth-fetch.js +46 -0
- painapple_code/static/js/background-tasks.js +274 -0
- painapple_code/static/js/boot.js +73 -0
- painapple_code/static/js/caret-position.js +171 -0
- painapple_code/static/js/chat-navigator.js +710 -0
- painapple_code/static/js/chat-search.js +323 -0
- painapple_code/static/js/command-executor.js +176 -0
- painapple_code/static/js/command-store.js +497 -0
- painapple_code/static/js/components.js +1414 -0
- painapple_code/static/js/config.js +218 -0
- painapple_code/static/js/context-menu.js +740 -0
- painapple_code/static/js/controllers/chat-controller.js +4252 -0
- painapple_code/static/js/controllers/dialog-controller.js +217 -0
- painapple_code/static/js/controllers/tab-controller.js +1828 -0
- painapple_code/static/js/controllers/thinking-controller.js +915 -0
- painapple_code/static/js/diff-utils.js +486 -0
- painapple_code/static/js/drafts-pill.js +95 -0
- painapple_code/static/js/editor-view.js +815 -0
- painapple_code/static/js/effort-settings.js +430 -0
- painapple_code/static/js/feature-triage.js +811 -0
- painapple_code/static/js/file-autocomplete.js +516 -0
- painapple_code/static/js/file-tabs.js +123 -0
- painapple_code/static/js/gestures.js +448 -0
- painapple_code/static/js/grid-switcher.js +334 -0
- painapple_code/static/js/input-handler.js +1472 -0
- painapple_code/static/js/keyboard-bar.js +495 -0
- painapple_code/static/js/layout-switcher.js +109 -0
- painapple_code/static/js/linkify-utils.js +200 -0
- painapple_code/static/js/login.js +141 -0
- painapple_code/static/js/open-dialog.js +879 -0
- painapple_code/static/js/orphan-terminals.js +373 -0
- painapple_code/static/js/path-utils.js +179 -0
- painapple_code/static/js/perf-marks.js +102 -0
- painapple_code/static/js/permission-settings.js +475 -0
- painapple_code/static/js/pointer-input.js +59 -0
- painapple_code/static/js/preview/json-tree-menu.js +226 -0
- painapple_code/static/js/preview/json-tree-toolbar.js +291 -0
- painapple_code/static/js/preview/json-tree.js +457 -0
- painapple_code/static/js/preview/preview-breadcrumb.js +387 -0
- painapple_code/static/js/preview/preview-edit.js +367 -0
- painapple_code/static/js/preview/preview-events.js +361 -0
- painapple_code/static/js/preview/preview-history.js +567 -0
- painapple_code/static/js/preview/preview-inline-edit.js +869 -0
- painapple_code/static/js/preview/preview-poll.js +108 -0
- painapple_code/static/js/preview/preview-render.js +572 -0
- painapple_code/static/js/preview/preview-search.js +421 -0
- painapple_code/static/js/preview/preview-state.js +256 -0
- painapple_code/static/js/preview/preview-utils.js +251 -0
- painapple_code/static/js/preview-plugins/chart-plugin.js +22 -0
- painapple_code/static/js/preview-plugins/csv-plugin.js +188 -0
- painapple_code/static/js/preview-plugins/diff-plugin.js +258 -0
- painapple_code/static/js/preview-plugins/excalidraw-plugin.js +25 -0
- painapple_code/static/js/preview-plugins/html-plugin.js +104 -0
- painapple_code/static/js/preview-plugins/image-plugin.js +20 -0
- painapple_code/static/js/preview-plugins/index.js +34 -0
- painapple_code/static/js/preview-plugins/json-plugin.js +99 -0
- painapple_code/static/js/preview-plugins/jsonl-plugin.js +152 -0
- painapple_code/static/js/preview-plugins/markdown-plugin.js +266 -0
- painapple_code/static/js/preview-plugins/panzoom-plugin.js +63 -0
- painapple_code/static/js/preview-plugins/plugin-helpers.js +282 -0
- painapple_code/static/js/project-color-picker.js +110 -0
- painapple_code/static/js/project-colors.js +163 -0
- painapple_code/static/js/prompt-favorites.js +187 -0
- painapple_code/static/js/quick-actions-menu.js +1736 -0
- painapple_code/static/js/quick-actions-registry.js +1239 -0
- painapple_code/static/js/quick-switcher/controller.js +294 -0
- painapple_code/static/js/quick-switcher/fuzzy-scorer.js +123 -0
- painapple_code/static/js/quick-switcher/index.js +30 -0
- painapple_code/static/js/quick-switcher/providers/base-provider.js +51 -0
- painapple_code/static/js/quick-switcher/providers/command-provider.js +56 -0
- painapple_code/static/js/quick-switcher/providers/file-provider.js +291 -0
- painapple_code/static/js/quick-switcher/providers/panel-provider.js +132 -0
- painapple_code/static/js/quick-switcher/providers/project-provider.js +361 -0
- painapple_code/static/js/quick-switcher/providers/read-files-provider.js +104 -0
- painapple_code/static/js/quick-switcher/providers/skills-provider.js +129 -0
- painapple_code/static/js/quick-switcher/registry.js +69 -0
- painapple_code/static/js/quick-switcher/ui/item.js +54 -0
- painapple_code/static/js/quick-switcher/ui/picker.js +464 -0
- painapple_code/static/js/recent-opens.js +40 -0
- painapple_code/static/js/scroll-manager.js +530 -0
- painapple_code/static/js/scroll-state-machine.js +359 -0
- painapple_code/static/js/selection/action-bar.js +793 -0
- painapple_code/static/js/selection/index.js +15 -0
- painapple_code/static/js/selection/selection-handler.js +877 -0
- painapple_code/static/js/selection/state.js +181 -0
- painapple_code/static/js/session/agent-progress.js +202 -0
- painapple_code/static/js/session/handle-agent-message.js +481 -0
- painapple_code/static/js/session/handle-message.js +550 -0
- painapple_code/static/js/session/interactive.js +587 -0
- painapple_code/static/js/session/message-store.js +271 -0
- painapple_code/static/js/session/messages.js +253 -0
- painapple_code/static/js/session/persistence.js +179 -0
- painapple_code/static/js/session/restore.js +136 -0
- painapple_code/static/js/session/sync.js +333 -0
- painapple_code/static/js/session-container-pool.js +371 -0
- painapple_code/static/js/session-setup-panel.js +274 -0
- painapple_code/static/js/session.js +1047 -0
- painapple_code/static/js/shortcut-hints.js +272 -0
- painapple_code/static/js/shortcuts.js +1146 -0
- painapple_code/static/js/skills-autocomplete.js +262 -0
- painapple_code/static/js/snippets-autocomplete.js +738 -0
- painapple_code/static/js/stash-refs-view.js +83 -0
- painapple_code/static/js/stash-ui.js +768 -0
- painapple_code/static/js/stash.js +785 -0
- painapple_code/static/js/status-bar.js +1184 -0
- painapple_code/static/js/token-profile.js +274 -0
- painapple_code/static/js/tool-renderer-blocks.js +1626 -0
- painapple_code/static/js/tool-renderer-thinking.js +813 -0
- painapple_code/static/js/tool-renderer.js +1500 -0
- painapple_code/static/js/tooltips.js +197 -0
- painapple_code/static/js/upload-manager.js +1019 -0
- painapple_code/static/js/utils.js +521 -0
- painapple_code/static/js/welcome/api.js +363 -0
- painapple_code/static/js/welcome/cards.js +626 -0
- painapple_code/static/js/welcome/context-menu.js +585 -0
- painapple_code/static/js/welcome/families.js +801 -0
- painapple_code/static/js/welcome/preview.js +234 -0
- painapple_code/static/js/welcome/state.js +129 -0
- painapple_code/static/js/welcome.js +1874 -0
- painapple_code/static/js/widget-system/base-widget.js +717 -0
- painapple_code/static/js/widget-system/device-manager.js +178 -0
- painapple_code/static/js/widget-system/event-bus.js +152 -0
- painapple_code/static/js/widget-system/icons.js +120 -0
- painapple_code/static/js/widget-system/index.js +49 -0
- painapple_code/static/js/widget-system/init.js +54 -0
- painapple_code/static/js/widget-system/types/bottom-sheet.js +307 -0
- painapple_code/static/js/widget-system/types/floating.js +915 -0
- painapple_code/static/js/widget-system/types/index.js +40 -0
- painapple_code/static/js/widget-system/types/modal.js +147 -0
- painapple_code/static/js/widget-system/types/sidebar.js +158 -0
- painapple_code/static/js/widget-system/types/tab.js +146 -0
- painapple_code/static/js/widget-system/types/top-sheet.js +203 -0
- painapple_code/static/js/widget-system/widget-manager.js +1187 -0
- painapple_code/static/js/widgets/about-widget.js +260 -0
- painapple_code/static/js/widgets/active-sessions-widget.js +760 -0
- painapple_code/static/js/widgets/agents-widget.js +897 -0
- painapple_code/static/js/widgets/browser-widget.js +579 -0
- painapple_code/static/js/widgets/commands-widget.js +694 -0
- painapple_code/static/js/widgets/config/commit-sections.js +449 -0
- painapple_code/static/js/widgets/config/dir-autocomplete.js +224 -0
- painapple_code/static/js/widgets/config/gestures.js +161 -0
- painapple_code/static/js/widgets/config/models-tab.js +988 -0
- painapple_code/static/js/widgets/config/quick-actions-tab.js +882 -0
- painapple_code/static/js/widgets/config/shortcut-editor.js +587 -0
- painapple_code/static/js/widgets/config/state.js +517 -0
- painapple_code/static/js/widgets/config/system-controls.js +90 -0
- painapple_code/static/js/widgets/config-widget.js +1535 -0
- painapple_code/static/js/widgets/cost-analytics-widget.js +621 -0
- painapple_code/static/js/widgets/debug-widget.js +693 -0
- painapple_code/static/js/widgets/diff-viewer-widget.js +1420 -0
- painapple_code/static/js/widgets/discussion-widget.js +1107 -0
- painapple_code/static/js/widgets/file-explorer-widget.js +2166 -0
- painapple_code/static/js/widgets/file-preview-widget.js +861 -0
- painapple_code/static/js/widgets/git-widget.js +794 -0
- painapple_code/static/js/widgets/helpers-install-widget.js +720 -0
- painapple_code/static/js/widgets/history-explorer-widget.js +1804 -0
- painapple_code/static/js/widgets/image-annotate-widget.js +951 -0
- painapple_code/static/js/widgets/image-preview-widget.js +692 -0
- painapple_code/static/js/widgets/index.js +176 -0
- painapple_code/static/js/widgets/log-explorer-widget.js +1057 -0
- painapple_code/static/js/widgets/plugins-widget.js +305 -0
- painapple_code/static/js/widgets/prompt-explorer-widget.js +1119 -0
- painapple_code/static/js/widgets/search-files-widget.js +529 -0
- painapple_code/static/js/widgets/skills-widget.js +843 -0
- painapple_code/static/js/widgets/snippets-widget.js +479 -0
- painapple_code/static/js/widgets/sub-agents-widget.js +333 -0
- painapple_code/static/js/widgets/tasks-widget.js +379 -0
- painapple_code/static/js/widgets/terminal/connection.js +283 -0
- painapple_code/static/js/widgets/terminal/gestures.js +357 -0
- painapple_code/static/js/widgets/terminal/init.js +642 -0
- painapple_code/static/js/widgets/terminal/link-providers.js +532 -0
- painapple_code/static/js/widgets/terminal/osc52.js +213 -0
- painapple_code/static/js/widgets/terminal/render.js +159 -0
- painapple_code/static/js/widgets/terminal/size.js +54 -0
- painapple_code/static/js/widgets/terminal/state.js +211 -0
- painapple_code/static/js/widgets/terminal/wrap-utils.js +101 -0
- painapple_code/static/js/widgets/terminal-widget.js +793 -0
- painapple_code/static/js/widgets/uploads-widget.js +461 -0
- painapple_code/static/js/widgets/zen-widget.js +1001 -0
- painapple_code/static/login.html +51 -0
- painapple_code/static/manifest.json +73 -0
- painapple_code/static/sw.js +293 -0
- painapple_code/static/vendor/LICENSES.txt +769 -0
- painapple_code/static/vendor/README.md +103 -0
- painapple_code/static/vendor/codemirror.js +35 -0
- painapple_code/static/vendor/codemirror.js.LEGAL.txt +304 -0
- painapple_code/static/vendor/github-markdown-dark.min.css +1124 -0
- painapple_code/static/vendor/highlight-github-dark.min.css +10 -0
- painapple_code/static/vendor/highlight-lang-dockerfile.min.js +8 -0
- painapple_code/static/vendor/highlight-lang-nginx.min.js +21 -0
- painapple_code/static/vendor/highlight-lang-properties.min.js +10 -0
- painapple_code/static/vendor/highlight-lang-scala.min.js +28 -0
- painapple_code/static/vendor/highlight.min.js +1213 -0
- painapple_code/static/vendor/marked.min.js +6 -0
- painapple_code/static/vendor/purify.min.js +3 -0
- painapple_code/static/vendor/xterm-addon-fit.js +2 -0
- painapple_code/static/vendor/xterm.css +209 -0
- painapple_code/static/vendor/xterm.js +2 -0
- painapple_code/static/web-client.html +635 -0
- painapple_code/subprocess_registry.py +535 -0
- painapple_code/tls_cert.py +79 -0
- painapple_code/tools/agents/shadow-git-helper.md +400 -0
- painapple_code/tools/excalidraw-to-svg.js +143 -0
- painapple_code/tools/install-helpers.sh +148 -0
- painapple_code/tools/shadow-git +320 -0
- painapple_code/tools/shadow-query +120 -0
- painapple_code/tools/vegalite-to-svg.js +79 -0
- painapple_code/turn_query.py +766 -0
- painapple_code/turn_tracker.py +221 -0
- painapple_code/utils/__init__.py +0 -0
- painapple_code/utils/agent_cli.py +306 -0
- painapple_code/utils/chart.py +103 -0
- painapple_code/utils/excalidraw.py +107 -0
- painapple_code/utils/file_lock.py +162 -0
- painapple_code/utils/file_paths.py +648 -0
- painapple_code/utils/generate_icons.py +251 -0
- painapple_code/utils/proc.py +205 -0
- painapple_code/utils/pty_backend.py +59 -0
- painapple_code/utils/pty_posix.py +160 -0
- painapple_code/utils/pty_windows.py +245 -0
- painapple_code/utils/token_profiles.py +91 -0
- painapple_code/viewer_templates.py +657 -0
- painapple_code/welcome_search.py +879 -0
- painapple_code-1.0.0.dist-info/METADATA +292 -0
- painapple_code-1.0.0.dist-info/RECORD +436 -0
- painapple_code-1.0.0.dist-info/WHEEL +5 -0
- painapple_code-1.0.0.dist-info/entry_points.txt +2 -0
- painapple_code-1.0.0.dist-info/licenses/LICENSE +661 -0
- painapple_code-1.0.0.dist-info/licenses/THIRD_PARTY_NOTICES.md +261 -0
- painapple_code-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context Popover Styles
|
|
3
|
+
* Detailed context usage breakdown shown on token bar click
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.context-popover {
|
|
7
|
+
background: var(--bg-secondary, #1e1e1e);
|
|
8
|
+
border: 1px solid var(--border-color, #333);
|
|
9
|
+
border-radius: var(--radius-md);
|
|
10
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
11
|
+
min-width: 260px;
|
|
12
|
+
max-width: 320px;
|
|
13
|
+
z-index: var(--z-overlay);
|
|
14
|
+
opacity: 0;
|
|
15
|
+
transform: translateY(8px);
|
|
16
|
+
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
17
|
+
font-size: var(--font-size-base);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.context-popover.visible {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transform: translateY(0);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Header */
|
|
27
|
+
.popover-header {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-items: center;
|
|
31
|
+
padding: var(--sp-10) var(--sp-12);
|
|
32
|
+
border-bottom: 1px solid var(--border-color, #333);
|
|
33
|
+
background: var(--bg-tertiary, #252525);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.popover-title {
|
|
37
|
+
font-weight: 600;
|
|
38
|
+
color: var(--text-primary, #e0e0e0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.popover-updated {
|
|
42
|
+
font-size: var(--font-size-xs);
|
|
43
|
+
color: var(--text-muted, #888);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Progress bar */
|
|
47
|
+
.popover-progress {
|
|
48
|
+
padding: var(--sp-12);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.progress-bar {
|
|
52
|
+
height: 8px;
|
|
53
|
+
background: var(--bg-tertiary, #252525);
|
|
54
|
+
border-radius: var(--radius-sm);
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
margin-bottom: var(--sp-6);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.progress-fill {
|
|
60
|
+
height: 100%;
|
|
61
|
+
background: var(--accent);
|
|
62
|
+
border-radius: var(--radius-sm);
|
|
63
|
+
transition: width 0.3s ease;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.progress-fill.warning {
|
|
67
|
+
background: var(--warning-color, #f0a030);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.progress-fill.danger {
|
|
71
|
+
background: var(--error-color, #e05050);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.progress-text {
|
|
75
|
+
text-align: center;
|
|
76
|
+
font-size: var(--font-size-sm);
|
|
77
|
+
color: var(--text-secondary, #aaa);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.progress-text.warning {
|
|
81
|
+
color: var(--warning-color, #f0a030);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.progress-text.danger {
|
|
85
|
+
color: var(--error-color, #e05050);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.popover-reserved {
|
|
89
|
+
font-size: 10px;
|
|
90
|
+
color: rgba(255, 120, 120, 0.9);
|
|
91
|
+
margin-left: var(--sp-6);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Breakdown section */
|
|
95
|
+
.context-breakdown {
|
|
96
|
+
padding: var(--sp-8) var(--sp-12);
|
|
97
|
+
border-top: 1px solid var(--border-color, #333);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.breakdown-row {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: space-between;
|
|
103
|
+
padding: var(--sp-4) 0;
|
|
104
|
+
color: var(--text-secondary, #aaa);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.breakdown-row.muted {
|
|
108
|
+
color: var(--text-muted, #666);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.breakdown-label {
|
|
112
|
+
flex: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.breakdown-tokens {
|
|
116
|
+
width: 50px;
|
|
117
|
+
text-align: right;
|
|
118
|
+
font-family: var(--font-mono, monospace);
|
|
119
|
+
font-size: var(--font-size-sm);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.breakdown-pct {
|
|
123
|
+
width: 45px;
|
|
124
|
+
text-align: right;
|
|
125
|
+
font-family: var(--font-mono, monospace);
|
|
126
|
+
font-size: var(--font-size-sm);
|
|
127
|
+
color: var(--text-muted, #666);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.breakdown-divider {
|
|
131
|
+
height: 1px;
|
|
132
|
+
background: var(--border-color, #333);
|
|
133
|
+
margin: var(--sp-6) 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Memory files section */
|
|
137
|
+
.context-memory {
|
|
138
|
+
padding: var(--sp-8) var(--sp-12);
|
|
139
|
+
border-top: 1px solid var(--border-color, #333);
|
|
140
|
+
background: var(--bg-tertiary, #252525);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.memory-title {
|
|
144
|
+
font-size: var(--font-size-xs);
|
|
145
|
+
text-transform: uppercase;
|
|
146
|
+
letter-spacing: 0.5px;
|
|
147
|
+
color: var(--text-muted, #666);
|
|
148
|
+
margin-bottom: var(--sp-6);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.memory-row {
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: space-between;
|
|
154
|
+
padding: var(--sp-3) 0;
|
|
155
|
+
font-size: var(--font-size-sm);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.memory-path {
|
|
159
|
+
color: var(--text-secondary, #aaa);
|
|
160
|
+
overflow: hidden;
|
|
161
|
+
text-overflow: ellipsis;
|
|
162
|
+
white-space: nowrap;
|
|
163
|
+
max-width: 200px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.memory-tokens {
|
|
167
|
+
font-family: var(--font-mono, monospace);
|
|
168
|
+
color: var(--text-muted, #888);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Footer */
|
|
172
|
+
.popover-footer {
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: space-between;
|
|
175
|
+
padding: var(--sp-8) var(--sp-12);
|
|
176
|
+
border-top: 1px solid var(--border-color, #333);
|
|
177
|
+
font-size: var(--font-size-sm);
|
|
178
|
+
color: var(--text-muted, #888);
|
|
179
|
+
background: var(--bg-tertiary, #252525);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Mobile adjustments */
|
|
183
|
+
@media (max-width: 600px) {
|
|
184
|
+
.context-popover {
|
|
185
|
+
min-width: 240px;
|
|
186
|
+
max-width: 280px;
|
|
187
|
+
font-size: var(--font-size-sm);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.breakdown-tokens,
|
|
191
|
+
.breakdown-pct {
|
|
192
|
+
font-size: var(--font-size-xs);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
197
|
+
INLINE CONTEXT INDICATOR
|
|
198
|
+
Compact inline bar with stats on sides
|
|
199
|
+
═══════════════════════════════════════════════════════════════════ */
|
|
200
|
+
|
|
201
|
+
.context-indicator-mini {
|
|
202
|
+
margin: var(--sp-6) var(--sp-16);
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Row layout: stats | bar | delta */
|
|
207
|
+
.context-row {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
gap: var(--sp-10);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* Effective percentage - primary (what actually matters) */
|
|
214
|
+
.context-pct-effective {
|
|
215
|
+
color: #fff;
|
|
216
|
+
font-weight: 600;
|
|
217
|
+
font-size: var(--font-size-base);
|
|
218
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.context-tokens {
|
|
222
|
+
color: rgba(255, 255, 255, 0.6);
|
|
223
|
+
font-size: 10px;
|
|
224
|
+
margin-left: auto;
|
|
225
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
|
|
226
|
+
white-space: nowrap;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Progress bar with text inside - full width */
|
|
230
|
+
.context-bar-mini {
|
|
231
|
+
flex: 1;
|
|
232
|
+
min-width: 0;
|
|
233
|
+
height: 24px;
|
|
234
|
+
background: var(--bg-tertiary, #1a1a1a);
|
|
235
|
+
border-radius: var(--radius-sm);
|
|
236
|
+
position: relative;
|
|
237
|
+
border: 1px solid var(--border-color, #333);
|
|
238
|
+
overflow: hidden;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.context-indicator-mini:hover .context-bar-mini {
|
|
242
|
+
border-color: var(--border-hover, #555);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Text overlay inside bar */
|
|
246
|
+
.context-bar-text {
|
|
247
|
+
position: absolute;
|
|
248
|
+
top: 0;
|
|
249
|
+
left: 0;
|
|
250
|
+
right: 0;
|
|
251
|
+
bottom: 0;
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
padding: 0 var(--sp-8);
|
|
255
|
+
font-size: var(--font-size-xs);
|
|
256
|
+
font-family: var(--font-mono, monospace);
|
|
257
|
+
z-index: 2;
|
|
258
|
+
pointer-events: none;
|
|
259
|
+
gap: var(--sp-4);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Base fill (previous usage) */
|
|
263
|
+
.context-fill-mini {
|
|
264
|
+
height: 100%;
|
|
265
|
+
background: #2a6a5a;
|
|
266
|
+
position: absolute;
|
|
267
|
+
top: 0;
|
|
268
|
+
left: 0;
|
|
269
|
+
border-radius: var(--radius-sm) 0 0 var(--radius-sm);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Gain segment (new usage this turn) - brighter with visible edge */
|
|
273
|
+
.context-gain-mini {
|
|
274
|
+
height: 100%;
|
|
275
|
+
background: linear-gradient(90deg, #3a9a8a, #5abfaf);
|
|
276
|
+
position: absolute;
|
|
277
|
+
top: 0;
|
|
278
|
+
box-shadow: 0 0 8px rgba(74, 170, 154, 0.6);
|
|
279
|
+
border-left: 2px solid rgba(255, 255, 255, 0.5);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* Free space segment (remaining usable context) */
|
|
283
|
+
.context-free-mini {
|
|
284
|
+
height: 100%;
|
|
285
|
+
background: rgba(80, 80, 80, 0.3);
|
|
286
|
+
position: absolute;
|
|
287
|
+
top: 0;
|
|
288
|
+
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* Right side delta (token gain/loss) */
|
|
292
|
+
.context-delta {
|
|
293
|
+
font-size: var(--font-size-sm);
|
|
294
|
+
font-family: var(--font-mono, monospace);
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
min-width: 50px;
|
|
297
|
+
text-align: right;
|
|
298
|
+
flex-shrink: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.context-delta.up {
|
|
302
|
+
color: #5aaa8a;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.context-delta.down {
|
|
306
|
+
color: #aa8a5a;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* Reserved label (shown outside bar) */
|
|
310
|
+
.context-reserved-label {
|
|
311
|
+
font-size: 10px;
|
|
312
|
+
font-family: var(--font-mono, monospace);
|
|
313
|
+
color: rgba(255, 120, 120, 0.8);
|
|
314
|
+
padding: var(--sp-2) var(--sp-6);
|
|
315
|
+
background: rgba(180, 60, 60, 0.2);
|
|
316
|
+
border-radius: var(--radius-sm);
|
|
317
|
+
border: 1px solid rgba(255, 100, 100, 0.3);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Reserved buffer = danger zone (can't use this space) - UNUSED, kept for reference */
|
|
321
|
+
.context-reserved-mini {
|
|
322
|
+
position: absolute;
|
|
323
|
+
top: 0;
|
|
324
|
+
right: 0;
|
|
325
|
+
height: 100%;
|
|
326
|
+
/* Solid dark base + red diagonal stripes */
|
|
327
|
+
background:
|
|
328
|
+
repeating-linear-gradient(
|
|
329
|
+
-45deg,
|
|
330
|
+
transparent,
|
|
331
|
+
transparent 3px,
|
|
332
|
+
rgba(200, 80, 80, 0.3) 3px,
|
|
333
|
+
rgba(200, 80, 80, 0.3) 6px
|
|
334
|
+
),
|
|
335
|
+
rgba(60, 30, 30, 0.8);
|
|
336
|
+
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
|
|
337
|
+
/* Threshold line on left edge */
|
|
338
|
+
border-left: 2px solid rgba(255, 100, 100, 0.5);
|
|
339
|
+
/* Center content */
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: center;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* Percentage label inside reserved section */
|
|
346
|
+
.reserved-pct {
|
|
347
|
+
font-size: 10px;
|
|
348
|
+
font-family: var(--font-mono, monospace);
|
|
349
|
+
color: rgba(255, 150, 150, 0.7);
|
|
350
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Pulse the threshold line when approaching danger */
|
|
354
|
+
.context-indicator-mini.warning .context-reserved-mini,
|
|
355
|
+
.context-indicator-mini.danger .context-reserved-mini {
|
|
356
|
+
border-left-color: rgba(255, 100, 100, 0.7);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.context-indicator-mini.critical .context-reserved-mini {
|
|
360
|
+
border-left-color: rgba(255, 80, 80, 0.9);
|
|
361
|
+
animation: pulse-threshold 1s ease-in-out infinite;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@keyframes pulse-threshold {
|
|
365
|
+
0%, 100% { border-left-color: rgba(255, 80, 80, 0.9); }
|
|
366
|
+
50% { border-left-color: rgba(255, 120, 120, 1); }
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* Warning state (70-85%) - amber/orange */
|
|
370
|
+
.context-bar-mini.warning .context-fill-mini {
|
|
371
|
+
background: #8a6a30;
|
|
372
|
+
}
|
|
373
|
+
.context-bar-mini.warning .context-gain-mini {
|
|
374
|
+
background: linear-gradient(90deg, #bfa050, #dfb060);
|
|
375
|
+
box-shadow: 0 0 8px rgba(200, 160, 80, 0.6);
|
|
376
|
+
border-left: 2px solid rgba(255, 255, 255, 0.5);
|
|
377
|
+
}
|
|
378
|
+
.context-bar-mini.warning {
|
|
379
|
+
border-color: rgba(200, 160, 80, 0.4);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* Danger state (85-95%) - red */
|
|
383
|
+
.context-bar-mini.danger .context-fill-mini {
|
|
384
|
+
background: #a03030;
|
|
385
|
+
}
|
|
386
|
+
.context-bar-mini.danger .context-gain-mini {
|
|
387
|
+
background: linear-gradient(90deg, #e06060, #ff7070);
|
|
388
|
+
box-shadow: 0 0 8px rgba(255, 100, 100, 0.6);
|
|
389
|
+
border-left: 2px solid rgba(255, 255, 255, 0.5);
|
|
390
|
+
}
|
|
391
|
+
.context-bar-mini.danger {
|
|
392
|
+
border-color: rgba(224, 80, 80, 0.5);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/* Critical state (95%+) - pulsing red */
|
|
396
|
+
.context-bar-mini.critical .context-fill-mini {
|
|
397
|
+
background: #a02020;
|
|
398
|
+
}
|
|
399
|
+
.context-bar-mini.critical .context-gain-mini {
|
|
400
|
+
background: linear-gradient(90deg, #ff6060, #ff8080);
|
|
401
|
+
box-shadow: 0 0 10px rgba(255, 100, 100, 0.8);
|
|
402
|
+
border-left: 2px solid rgba(255, 255, 255, 0.6);
|
|
403
|
+
animation: pulse-critical 1.5s ease-in-out infinite;
|
|
404
|
+
}
|
|
405
|
+
.context-bar-mini.critical {
|
|
406
|
+
border-color: #e05050;
|
|
407
|
+
box-shadow: 0 0 8px rgba(224, 80, 80, 0.3);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@keyframes pulse-critical {
|
|
411
|
+
0%, 100% { opacity: 1; }
|
|
412
|
+
50% { opacity: 0.7; }
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* Inline breakdown popover (from hovering indicator) */
|
|
416
|
+
.context-breakdown-popover {
|
|
417
|
+
background: var(--bg-secondary, #1e1e1e);
|
|
418
|
+
border: 1px solid var(--border-color, #333);
|
|
419
|
+
border-radius: var(--radius-md);
|
|
420
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
421
|
+
min-width: 240px;
|
|
422
|
+
max-width: 300px;
|
|
423
|
+
z-index: var(--z-overlay);
|
|
424
|
+
font-size: var(--font-size-sm);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.context-breakdown-popover .popover-header {
|
|
428
|
+
display: flex;
|
|
429
|
+
justify-content: space-between;
|
|
430
|
+
align-items: center;
|
|
431
|
+
padding: var(--sp-8) var(--sp-12);
|
|
432
|
+
border-bottom: 1px solid var(--border-color, #333);
|
|
433
|
+
background: var(--bg-tertiary, #252525);
|
|
434
|
+
font-weight: 500;
|
|
435
|
+
color: var(--text-primary, #e0e0e0);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.context-breakdown-popover .popover-close {
|
|
439
|
+
background: none;
|
|
440
|
+
border: none;
|
|
441
|
+
color: var(--text-muted, #666);
|
|
442
|
+
font-size: 18px;
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
padding: 0 var(--sp-4);
|
|
445
|
+
line-height: 1;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.context-breakdown-popover .popover-close:hover {
|
|
449
|
+
color: var(--text-primary, #e0e0e0);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.context-breakdown-popover .context-breakdown {
|
|
453
|
+
border-top: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Mobile adjustments for indicator */
|
|
457
|
+
@media (max-width: 600px) {
|
|
458
|
+
.context-indicator {
|
|
459
|
+
padding: 0 var(--sp-8);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.context-bar-wrapper {
|
|
463
|
+
max-width: 100%;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.context-info {
|
|
467
|
+
font-size: 10px;
|
|
468
|
+
gap: var(--sp-6);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
474
|
+
TURN SUMMARY BAR
|
|
475
|
+
Compact expandable bar showing turn stats, context usage, and file changes
|
|
476
|
+
═══════════════════════════════════════════════════════════════════ */
|
|
477
|
+
|
|
478
|
+
.turn-summary-bar {
|
|
479
|
+
/* Prevent flex shrink in .session-messages column layout.
|
|
480
|
+
overflow:hidden sets min-height to 0 in flex, allowing the bar
|
|
481
|
+
to collapse to just its border (2px) when many messages overflow. */
|
|
482
|
+
margin: var(--sp-8) 0;
|
|
483
|
+
background: var(--bg-tertiary, #1a1a1a);
|
|
484
|
+
border: 1px solid var(--border-color, #333);
|
|
485
|
+
border-radius: var(--radius-md);
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
488
|
+
overflow: hidden;
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
/* Prevent iOS keyboard and selection behavior */
|
|
491
|
+
-webkit-touch-callout: none;
|
|
492
|
+
-webkit-user-select: none;
|
|
493
|
+
user-select: none;
|
|
494
|
+
-webkit-tap-highlight-color: transparent;
|
|
495
|
+
touch-action: manipulation;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.turn-summary-bar:hover {
|
|
499
|
+
border-color: var(--border-hover, #555);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.turn-summary-bar.expanded {
|
|
503
|
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* Header row - metrics and expand toggle */
|
|
507
|
+
.turn-header-row {
|
|
508
|
+
display: flex;
|
|
509
|
+
align-items: center;
|
|
510
|
+
gap: var(--sp-8);
|
|
511
|
+
padding: var(--sp-8) var(--sp-12);
|
|
512
|
+
min-height: 36px;
|
|
513
|
+
flex-wrap: nowrap;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* Turn badge group - T16 + chevron together */
|
|
517
|
+
.turn-badge-group {
|
|
518
|
+
display: flex;
|
|
519
|
+
align-items: center;
|
|
520
|
+
gap: var(--sp-2);
|
|
521
|
+
flex-shrink: 0;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/* Turn number badge */
|
|
525
|
+
.turn-number {
|
|
526
|
+
font-size: var(--font-size-sm);
|
|
527
|
+
font-weight: 600;
|
|
528
|
+
font-family: var(--font-mono, monospace);
|
|
529
|
+
color: var(--accent);
|
|
530
|
+
background: rgba(74, 158, 255, 0.15);
|
|
531
|
+
padding: var(--sp-3) var(--sp-8);
|
|
532
|
+
border-radius: var(--radius-sm);
|
|
533
|
+
white-space: nowrap;
|
|
534
|
+
flex-shrink: 0;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* Duration */
|
|
538
|
+
.turn-duration {
|
|
539
|
+
font-size: var(--font-size-sm);
|
|
540
|
+
font-family: var(--font-mono, monospace);
|
|
541
|
+
color: var(--text-secondary, #aaa);
|
|
542
|
+
white-space: nowrap;
|
|
543
|
+
flex-shrink: 0;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/* Cost */
|
|
547
|
+
.turn-cost {
|
|
548
|
+
font-size: var(--font-size-sm);
|
|
549
|
+
font-family: var(--font-mono, monospace);
|
|
550
|
+
color: #8a8;
|
|
551
|
+
white-space: nowrap;
|
|
552
|
+
flex-shrink: 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* Expand chevron */
|
|
556
|
+
.turn-expand-chevron {
|
|
557
|
+
font-size: 10px;
|
|
558
|
+
color: var(--text-muted, #666);
|
|
559
|
+
transition: transform 0.2s ease;
|
|
560
|
+
padding: var(--sp-4) var(--sp-4);
|
|
561
|
+
cursor: pointer;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.turn-expand-chevron:hover {
|
|
565
|
+
color: var(--text-secondary, #aaa);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.turn-summary-bar.expanded .turn-expand-chevron {
|
|
569
|
+
transform: rotate(180deg);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* Files row - tappable file pills with full names */
|
|
573
|
+
.turn-files-row {
|
|
574
|
+
display: flex;
|
|
575
|
+
flex-wrap: wrap;
|
|
576
|
+
gap: var(--sp-6);
|
|
577
|
+
padding: var(--sp-6) var(--sp-12) var(--sp-8);
|
|
578
|
+
border-top: 1px solid var(--border-color, #2a2a2a);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.turn-file-pill {
|
|
582
|
+
position: relative;
|
|
583
|
+
display: inline-flex;
|
|
584
|
+
align-items: center;
|
|
585
|
+
gap: var(--sp-2);
|
|
586
|
+
font-size: var(--font-size-sm);
|
|
587
|
+
font-family: var(--font-mono, monospace);
|
|
588
|
+
color: var(--text-primary, #e0e0e0);
|
|
589
|
+
background: rgba(74, 158, 255, 0.12);
|
|
590
|
+
border: 1px solid rgba(74, 158, 255, 0.25);
|
|
591
|
+
padding: var(--sp-4) var(--sp-10);
|
|
592
|
+
border-radius: var(--radius-sm);
|
|
593
|
+
cursor: pointer;
|
|
594
|
+
transition: all 0.15s ease;
|
|
595
|
+
white-space: nowrap;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.turn-file-pill:hover {
|
|
599
|
+
background: rgba(74, 158, 255, 0.25);
|
|
600
|
+
border-color: rgba(74, 158, 255, 0.5);
|
|
601
|
+
color: #fff;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* Turn file pill tooltips handled by JS tooltip system (tooltips.js) */
|
|
605
|
+
|
|
606
|
+
.turn-file-pill:active {
|
|
607
|
+
transform: scale(0.97);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/* Filename - primary visual weight */
|
|
611
|
+
.turn-file-pill .file-name {
|
|
612
|
+
color: inherit;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* GitHub-style additions badge - green */
|
|
616
|
+
.turn-file-pill .file-adds {
|
|
617
|
+
font-size: 10px;
|
|
618
|
+
color: #3fb950;
|
|
619
|
+
font-weight: 600;
|
|
620
|
+
margin-left: var(--sp-6);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* GitHub-style deletions badge - red */
|
|
624
|
+
.turn-file-pill .file-dels {
|
|
625
|
+
font-size: 10px;
|
|
626
|
+
color: #f85149;
|
|
627
|
+
font-weight: 600;
|
|
628
|
+
margin-left: var(--sp-2);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* New file badge */
|
|
632
|
+
.turn-file-pill .file-new {
|
|
633
|
+
font-size: 9px;
|
|
634
|
+
color: #3fb950;
|
|
635
|
+
background: rgba(63, 185, 80, 0.15);
|
|
636
|
+
padding: 1px var(--sp-5);
|
|
637
|
+
border-radius: var(--radius-sm);
|
|
638
|
+
margin-left: var(--sp-6);
|
|
639
|
+
font-weight: 500;
|
|
640
|
+
text-transform: uppercase;
|
|
641
|
+
letter-spacing: 0.3px;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* Tools row - tools on left, duration on right */
|
|
645
|
+
.turn-tools-row {
|
|
646
|
+
position: relative;
|
|
647
|
+
display: flex;
|
|
648
|
+
justify-content: space-between;
|
|
649
|
+
align-items: center;
|
|
650
|
+
font-size: var(--font-size-xs);
|
|
651
|
+
font-family: var(--font-mono, monospace);
|
|
652
|
+
color: var(--text-muted, #888);
|
|
653
|
+
padding: var(--sp-4) var(--sp-12) var(--sp-8);
|
|
654
|
+
gap: var(--sp-12);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.turn-tools-list {
|
|
658
|
+
flex: 1;
|
|
659
|
+
min-width: 0;
|
|
660
|
+
overflow: hidden;
|
|
661
|
+
text-overflow: ellipsis;
|
|
662
|
+
white-space: nowrap;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.turn-right-stats {
|
|
666
|
+
display: flex;
|
|
667
|
+
align-items: center;
|
|
668
|
+
gap: var(--sp-6);
|
|
669
|
+
flex-shrink: 0;
|
|
670
|
+
white-space: nowrap;
|
|
671
|
+
margin-left: auto;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.turn-duration-inline {
|
|
675
|
+
color: var(--text-secondary, #aaa);
|
|
676
|
+
flex-shrink: 0;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.turn-model-inline {
|
|
680
|
+
color: var(--text-muted, #666);
|
|
681
|
+
font-size: 10px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/* Inline cost in tools row (always visible) */
|
|
685
|
+
.turn-cost-inline {
|
|
686
|
+
font-size: var(--font-size-xs);
|
|
687
|
+
font-family: var(--font-mono, monospace);
|
|
688
|
+
color: #8a8;
|
|
689
|
+
flex-shrink: 0;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.turn-tools-row .turn-stats-sep {
|
|
693
|
+
color: var(--text-muted, #555);
|
|
694
|
+
font-size: 9px;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/* "click to expand" hint in tools row — centered on the row (out of flow, so
|
|
698
|
+
the tools list and right-hand stats keep the full width) and hidden when the
|
|
699
|
+
bar is expanded. */
|
|
700
|
+
.turn-expand-hint {
|
|
701
|
+
position: absolute;
|
|
702
|
+
left: 50%;
|
|
703
|
+
top: 50%;
|
|
704
|
+
transform: translate(-50%, -50%);
|
|
705
|
+
color: var(--text-muted, #666);
|
|
706
|
+
font-size: 10px;
|
|
707
|
+
font-style: italic;
|
|
708
|
+
opacity: 0.55;
|
|
709
|
+
pointer-events: none;
|
|
710
|
+
user-select: none;
|
|
711
|
+
white-space: nowrap;
|
|
712
|
+
}
|
|
713
|
+
.turn-summary-bar.expanded .turn-expand-hint {
|
|
714
|
+
display: none;
|
|
715
|
+
}
|
|
716
|
+
/* Narrow viewports: tools list + stats already fill the row — a centered
|
|
717
|
+
overlay would collide with them. */
|
|
718
|
+
@media (max-width: 600px) {
|
|
719
|
+
.turn-expand-hint { display: none; }
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/* Thin separator between turn pills and session-accumulated pills */
|
|
723
|
+
.turn-files-sep {
|
|
724
|
+
display: inline-block;
|
|
725
|
+
width: 1px;
|
|
726
|
+
height: 16px;
|
|
727
|
+
background: rgba(255, 255, 255, 0.12);
|
|
728
|
+
align-self: center;
|
|
729
|
+
margin: 0 var(--sp-2);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/* Hide button on session-compact file pills */
|
|
733
|
+
.session-file-hide {
|
|
734
|
+
display: none;
|
|
735
|
+
font-size: var(--font-size-xs);
|
|
736
|
+
line-height: 1;
|
|
737
|
+
color: var(--text-muted, #666);
|
|
738
|
+
margin-left: var(--sp-4);
|
|
739
|
+
padding: 0 var(--sp-2);
|
|
740
|
+
cursor: pointer;
|
|
741
|
+
opacity: 0.6;
|
|
742
|
+
}
|
|
743
|
+
.session-compact-file:hover .session-file-hide {
|
|
744
|
+
display: inline;
|
|
745
|
+
}
|
|
746
|
+
.session-file-hide:hover {
|
|
747
|
+
opacity: 1;
|
|
748
|
+
color: #f85149;
|
|
749
|
+
}
|
|
750
|
+
@media (hover: none) and (pointer: coarse) {
|
|
751
|
+
.session-file-hide { display: inline; }
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/* Image thumbs — Read-tool images (screenshots, test results) opened but not
|
|
755
|
+
modified. Neutral (no blue) mini previews; tap opens the image gallery. */
|
|
756
|
+
.turn-file-pill.turn-read-file {
|
|
757
|
+
background: rgba(255, 255, 255, 0.04);
|
|
758
|
+
border-color: rgba(255, 255, 255, 0.10);
|
|
759
|
+
color: var(--text-muted, #888);
|
|
760
|
+
}
|
|
761
|
+
.turn-file-pill.turn-read-file:hover {
|
|
762
|
+
background: rgba(255, 255, 255, 0.10);
|
|
763
|
+
border-color: rgba(255, 255, 255, 0.25);
|
|
764
|
+
color: var(--text-primary, #e0e0e0);
|
|
765
|
+
}
|
|
766
|
+
.turn-file-pill.turn-image-thumb {
|
|
767
|
+
padding: var(--sp-2);
|
|
768
|
+
}
|
|
769
|
+
.turn-file-pill.turn-image-thumb img {
|
|
770
|
+
display: block;
|
|
771
|
+
height: 20px;
|
|
772
|
+
width: auto;
|
|
773
|
+
min-width: 20px;
|
|
774
|
+
max-width: 56px;
|
|
775
|
+
object-fit: cover;
|
|
776
|
+
border-radius: var(--radius-xs);
|
|
777
|
+
/* Make the <img> transparent to hit-testing so the WHOLE miniature
|
|
778
|
+
resolves to the .turn-file-pill span — one uniform hover/tap target.
|
|
779
|
+
Without this the image center is a separate hit-target from the bare
|
|
780
|
+
span padding: on WebKit/iPadOS the <img> carries native drag/callout
|
|
781
|
+
behavior the span doesn't, so hover/tap landed only on the thin top &
|
|
782
|
+
bottom strips and "died" over the image center. The pill still owns
|
|
783
|
+
:hover, the JS tooltip (closest()), and the tap handler; the img's
|
|
784
|
+
load-error handler is unaffected (not a pointer event). */
|
|
785
|
+
pointer-events: none;
|
|
786
|
+
}
|
|
787
|
+
/* Images from earlier turns — dimmest tier of the row */
|
|
788
|
+
.turn-file-pill.turn-read-file.session-read {
|
|
789
|
+
opacity: 0.6;
|
|
790
|
+
}
|
|
791
|
+
.turn-file-pill.turn-read-file.session-read:hover {
|
|
792
|
+
opacity: 1;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
/* Loading shimmer for context bar while /context runs */
|
|
796
|
+
.context-bar-loading {
|
|
797
|
+
background: linear-gradient(
|
|
798
|
+
90deg,
|
|
799
|
+
var(--bg-tertiary, #1a1a1a) 25%,
|
|
800
|
+
rgba(74, 158, 255, 0.08) 50%,
|
|
801
|
+
var(--bg-tertiary, #1a1a1a) 75%
|
|
802
|
+
);
|
|
803
|
+
background-size: 200% 100%;
|
|
804
|
+
animation: context-shimmer 1.5s ease-in-out infinite;
|
|
805
|
+
border-color: transparent !important;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.context-bar-loading .context-bar-text,
|
|
809
|
+
.context-bar-loading .context-fill-mini,
|
|
810
|
+
.context-bar-loading .context-gain-mini {
|
|
811
|
+
display: none;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
@keyframes context-shimmer {
|
|
815
|
+
0% { background-position: 200% 0; }
|
|
816
|
+
100% { background-position: -200% 0; }
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/* Rate-limited turn: inline token profile switcher */
|
|
820
|
+
.rate-limited-bar {
|
|
821
|
+
border-color: var(--warning-color, #e6a23c) !important;
|
|
822
|
+
background: var(--bg-tertiary, #1a1a1a);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.rate-limited-bar .context-bar-text {
|
|
826
|
+
pointer-events: auto;
|
|
827
|
+
justify-content: center;
|
|
828
|
+
gap: var(--sp-8);
|
|
829
|
+
align-items: center;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
.rate-limited-bar .rate-limit-label {
|
|
833
|
+
font-size: 10px;
|
|
834
|
+
color: var(--text-muted, #666);
|
|
835
|
+
white-space: nowrap;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.rate-limited-bar .rate-limit-profiles {
|
|
839
|
+
display: flex;
|
|
840
|
+
gap: var(--sp-4);
|
|
841
|
+
align-items: center;
|
|
842
|
+
flex-wrap: wrap;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.rate-limited-bar .rate-limit-profile-btn {
|
|
846
|
+
display: inline-flex;
|
|
847
|
+
align-items: center;
|
|
848
|
+
gap: var(--sp-4);
|
|
849
|
+
background: var(--bg-secondary, #1e1e1e);
|
|
850
|
+
border: 1px solid var(--border-color, #333);
|
|
851
|
+
border-radius: var(--radius-sm);
|
|
852
|
+
color: var(--text-primary);
|
|
853
|
+
font-size: var(--font-size-xs);
|
|
854
|
+
font-family: var(--font-mono, monospace);
|
|
855
|
+
padding: var(--sp-2) var(--sp-8);
|
|
856
|
+
cursor: pointer;
|
|
857
|
+
transition: all 0.15s;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.rate-limited-bar .rate-limit-profile-btn:hover {
|
|
861
|
+
background: var(--bg-hover, #2a2a2a);
|
|
862
|
+
border-color: var(--text-secondary);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.rate-limited-bar .rate-limit-profile-btn.applied {
|
|
866
|
+
border-color: var(--success-color, #67c23a);
|
|
867
|
+
color: var(--success-color, #67c23a);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.rate-limited-bar .rate-limit-dot {
|
|
871
|
+
width: 6px;
|
|
872
|
+
height: 6px;
|
|
873
|
+
border-radius: 50%;
|
|
874
|
+
flex-shrink: 0;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/* Expanded details section - stats + context breakdown */
|
|
878
|
+
.turn-expanded-details {
|
|
879
|
+
display: none;
|
|
880
|
+
border-top: 1px solid var(--border-color, #333);
|
|
881
|
+
background: var(--bg-secondary, #1e1e1e);
|
|
882
|
+
padding: var(--sp-10) var(--sp-12);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.turn-summary-bar.expanded .turn-expanded-details {
|
|
886
|
+
display: block;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/* Turn stats row (duration, cost) */
|
|
890
|
+
.turn-stats-row {
|
|
891
|
+
display: flex;
|
|
892
|
+
align-items: center;
|
|
893
|
+
gap: var(--sp-8);
|
|
894
|
+
margin-bottom: var(--sp-10);
|
|
895
|
+
padding-bottom: var(--sp-8);
|
|
896
|
+
border-bottom: 1px solid var(--border-color, #333);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.turn-stats-row .turn-duration,
|
|
900
|
+
.turn-stats-row .turn-cost {
|
|
901
|
+
font-size: var(--font-size-sm);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.turn-stats-sep {
|
|
905
|
+
color: var(--text-muted, #666);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/* Simple context text when no breakdown available */
|
|
909
|
+
.turn-context-simple {
|
|
910
|
+
font-size: var(--font-size-sm);
|
|
911
|
+
font-family: var(--font-mono, monospace);
|
|
912
|
+
color: var(--text-secondary, #aaa);
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* Context breakdown table — flipped: labels as column headers, values below */
|
|
916
|
+
table.turn-context-breakdown {
|
|
917
|
+
border-collapse: collapse;
|
|
918
|
+
font-size: var(--font-size-xs);
|
|
919
|
+
width: 100%;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
table.turn-context-breakdown th {
|
|
923
|
+
text-align: left;
|
|
924
|
+
font-weight: 400;
|
|
925
|
+
color: var(--text-secondary, #aaa);
|
|
926
|
+
padding: 1px var(--sp-12) 1px 0;
|
|
927
|
+
white-space: nowrap;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
table.turn-context-breakdown td {
|
|
931
|
+
padding: 1px var(--sp-12) 1px var(--sp-2);
|
|
932
|
+
white-space: nowrap;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
table.turn-context-breakdown .breakdown-tokens {
|
|
936
|
+
font-family: var(--font-mono, monospace);
|
|
937
|
+
color: var(--text-primary, #e0e0e0);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
table.turn-context-breakdown .breakdown-pct {
|
|
941
|
+
font-family: var(--font-mono, monospace);
|
|
942
|
+
color: var(--text-muted, #666);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
table.turn-context-breakdown th.muted {
|
|
946
|
+
color: var(--text-muted, #666);
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/* Warning/danger states for turn summary bar */
|
|
950
|
+
.turn-summary-bar.warning {
|
|
951
|
+
border-color: rgba(240, 160, 48, 0.3);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.turn-summary-bar.warning .turn-number {
|
|
955
|
+
color: #f0a030;
|
|
956
|
+
background: rgba(240, 160, 48, 0.15);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.turn-summary-bar.danger {
|
|
960
|
+
border-color: rgba(224, 80, 80, 0.4);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.turn-summary-bar.danger .turn-number {
|
|
964
|
+
color: #e05050;
|
|
965
|
+
background: rgba(224, 80, 80, 0.15);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.turn-summary-bar.critical {
|
|
969
|
+
border-color: rgba(224, 80, 80, 0.5);
|
|
970
|
+
box-shadow: 0 0 8px rgba(224, 80, 80, 0.2);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.turn-summary-bar.critical .turn-number {
|
|
974
|
+
color: #ff6060;
|
|
975
|
+
background: rgba(255, 96, 96, 0.2);
|
|
976
|
+
animation: pulse-critical 1.5s ease-in-out infinite;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/* Mobile adjustments for turn summary bar */
|
|
980
|
+
@media (max-width: 600px) {
|
|
981
|
+
.turn-summary-bar {
|
|
982
|
+
margin: var(--sp-6) 0;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.turn-compact-row {
|
|
986
|
+
padding: var(--sp-6) var(--sp-10);
|
|
987
|
+
gap: var(--sp-6);
|
|
988
|
+
flex-wrap: wrap;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.turn-number {
|
|
992
|
+
font-size: 10px;
|
|
993
|
+
padding: var(--sp-2) var(--sp-4);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.turn-duration,
|
|
997
|
+
.turn-cost,
|
|
998
|
+
.turn-cost-inline {
|
|
999
|
+
font-size: 10px;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.context-bar-mini {
|
|
1003
|
+
/* Keep bar in natural order, just make it full width on mobile */
|
|
1004
|
+
flex-basis: 0;
|
|
1005
|
+
min-width: 80px;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.context-delta {
|
|
1009
|
+
/* Delta after bar on mobile too */
|
|
1010
|
+
min-width: 45px;
|
|
1011
|
+
font-size: var(--font-size-xs);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
/* File pills on mobile - slightly smaller text */
|
|
1015
|
+
.turn-file-pill {
|
|
1016
|
+
font-size: var(--font-size-xs);
|
|
1017
|
+
padding: var(--sp-3) var(--sp-8);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.turn-file-pill .file-adds,
|
|
1021
|
+
.turn-file-pill .file-dels {
|
|
1022
|
+
font-size: 9px;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.turn-file-pill .file-new {
|
|
1026
|
+
font-size: 8px;
|
|
1027
|
+
padding: 1px var(--sp-4);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/* Context breakdown: allow horizontal scroll on mobile */
|
|
1031
|
+
table.turn-context-breakdown {
|
|
1032
|
+
font-size: 10px;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/* File lists: single column on mobile */
|
|
1036
|
+
.session-files-grid {
|
|
1037
|
+
grid-template-columns: 1fr;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
1042
|
+
GIT STATUS INDICATORS ON TURN FILE PILLS
|
|
1043
|
+
═══════════════════════════════════════════════════════════════════ */
|
|
1044
|
+
|
|
1045
|
+
/* Status dot badge prepended to pill */
|
|
1046
|
+
.git-status-dot {
|
|
1047
|
+
display: inline-flex;
|
|
1048
|
+
align-items: center;
|
|
1049
|
+
justify-content: center;
|
|
1050
|
+
width: 14px;
|
|
1051
|
+
height: 14px;
|
|
1052
|
+
font-size: 9px;
|
|
1053
|
+
font-weight: 700;
|
|
1054
|
+
font-family: var(--font-mono, monospace);
|
|
1055
|
+
border-radius: 50%;
|
|
1056
|
+
margin-right: var(--sp-3);
|
|
1057
|
+
flex-shrink: 0;
|
|
1058
|
+
line-height: 1;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.git-dot-modified {
|
|
1062
|
+
color: #f59e0b;
|
|
1063
|
+
background: rgba(245, 158, 11, 0.18);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.git-dot-staged {
|
|
1067
|
+
color: #22c55e;
|
|
1068
|
+
background: rgba(34, 197, 94, 0.18);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.git-dot-untracked {
|
|
1072
|
+
color: #6e7681;
|
|
1073
|
+
background: rgba(110, 118, 129, 0.15);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
/* Pill border-left accent for uncommitted files only.
|
|
1077
|
+
Committed files keep their default appearance (no decoration). */
|
|
1078
|
+
.turn-file-pill.git-modified {
|
|
1079
|
+
border-left: 2px solid #f59e0b;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.turn-file-pill.git-staged {
|
|
1083
|
+
border-left: 2px solid #22c55e;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.turn-file-pill.git-untracked {
|
|
1087
|
+
border-left: 2px solid #6e7681;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
1091
|
+
GIT SUMMARY INDICATOR IN TOOLS ROW
|
|
1092
|
+
═══════════════════════════════════════════════════════════════════ */
|
|
1093
|
+
|
|
1094
|
+
.turn-git-summary {
|
|
1095
|
+
font-size: var(--font-size-xs);
|
|
1096
|
+
font-family: var(--font-mono, monospace);
|
|
1097
|
+
white-space: nowrap;
|
|
1098
|
+
flex-shrink: 0;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.turn-git-summary.git-all-clean {
|
|
1102
|
+
color: var(--success, #3fb950);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.turn-git-summary.git-has-uncommitted {
|
|
1106
|
+
color: #f59e0b;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
.turn-git-project-count {
|
|
1110
|
+
font-size: var(--font-size-xs);
|
|
1111
|
+
font-family: var(--font-mono, monospace);
|
|
1112
|
+
color: var(--text-muted, #6e7681);
|
|
1113
|
+
white-space: nowrap;
|
|
1114
|
+
flex-shrink: 0;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/* ═══════════════════════════════════════════════════════════════════
|
|
1118
|
+
SESSION FILES IN EXPANDED VIEW
|
|
1119
|
+
═══════════════════════════════════════════════════════════════════ */
|
|
1120
|
+
|
|
1121
|
+
.turn-session-files {
|
|
1122
|
+
margin-top: var(--sp-10);
|
|
1123
|
+
border-top: 1px solid var(--border-color, #333);
|
|
1124
|
+
padding-top: var(--sp-8);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.session-files-header {
|
|
1128
|
+
font-size: var(--font-size-xs);
|
|
1129
|
+
font-weight: 600;
|
|
1130
|
+
color: var(--text-secondary, #8b949e);
|
|
1131
|
+
margin-bottom: var(--sp-6);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.session-files-count {
|
|
1135
|
+
font-weight: 400;
|
|
1136
|
+
color: var(--text-muted, #6e7681);
|
|
1137
|
+
margin-left: var(--sp-6);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.session-files-header.other-files-header {
|
|
1141
|
+
margin-top: var(--sp-10);
|
|
1142
|
+
padding-top: var(--sp-8);
|
|
1143
|
+
border-top: 1px solid var(--border-color, #333);
|
|
1144
|
+
color: var(--text-muted, #6e7681);
|
|
1145
|
+
font-weight: 400;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.session-file-row {
|
|
1149
|
+
display: flex;
|
|
1150
|
+
align-items: center;
|
|
1151
|
+
gap: var(--sp-8);
|
|
1152
|
+
padding: var(--sp-3) var(--sp-4);
|
|
1153
|
+
font-size: var(--font-size-sm);
|
|
1154
|
+
font-family: var(--font-mono, monospace);
|
|
1155
|
+
border-radius: var(--radius-sm);
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.session-file-row:hover {
|
|
1159
|
+
background: var(--bg-hover, rgba(255, 255, 255, 0.05));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.session-file-status {
|
|
1163
|
+
width: 14px;
|
|
1164
|
+
text-align: center;
|
|
1165
|
+
font-weight: 700;
|
|
1166
|
+
font-size: var(--font-size-xs);
|
|
1167
|
+
flex-shrink: 0;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.session-file-row.git-committed .session-file-status {
|
|
1171
|
+
color: var(--success, #3fb950);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.session-file-row.git-modified .session-file-status {
|
|
1175
|
+
color: #f59e0b;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
.session-file-row.git-staged .session-file-status {
|
|
1179
|
+
color: #22c55e;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.session-file-row.git-untracked .session-file-status {
|
|
1183
|
+
color: #6e7681;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
.session-file-name {
|
|
1187
|
+
flex: 1;
|
|
1188
|
+
min-width: 0;
|
|
1189
|
+
overflow: hidden;
|
|
1190
|
+
text-overflow: ellipsis;
|
|
1191
|
+
white-space: nowrap;
|
|
1192
|
+
color: var(--text-primary, #e6edf3);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
.session-file-row .sf-stats {
|
|
1196
|
+
flex-shrink: 0;
|
|
1197
|
+
font-size: 10px;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.session-file-row .file-adds {
|
|
1201
|
+
color: #3fb950;
|
|
1202
|
+
font-weight: 600;
|
|
1203
|
+
margin-right: var(--sp-2);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
.session-file-row .file-dels {
|
|
1207
|
+
color: #f85149;
|
|
1208
|
+
font-weight: 600;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
.session-file-turns {
|
|
1212
|
+
color: var(--text-muted, #6e7681);
|
|
1213
|
+
font-size: 10px;
|
|
1214
|
+
flex-shrink: 0;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.session-files-more {
|
|
1218
|
+
font-size: var(--font-size-xs);
|
|
1219
|
+
color: var(--text-muted, #6e7681);
|
|
1220
|
+
padding: var(--sp-4);
|
|
1221
|
+
font-style: italic;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/* 2-column grid for file lists */
|
|
1225
|
+
.session-files-grid {
|
|
1226
|
+
display: grid;
|
|
1227
|
+
grid-template-columns: 1fr 1fr;
|
|
1228
|
+
gap: 0 var(--sp-12);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.session-files-grid .session-files-more {
|
|
1232
|
+
grid-column: 1 / -1;
|
|
1233
|
+
}
|