chore: version packages

This commit is contained in:
arkon
2026-02-27 10:58:10 +01:00
parent b99821cd10
commit 2b2829ebde
13 changed files with 3198 additions and 3959 deletions
+27
View File
@@ -0,0 +1,27 @@
# Changesets
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can find
the full documentation for it [in the repository](https://github.com/changesets/changesets).
## What is a changeset?
A changeset is a piece of information about changes made in a branch or commit. It holds three bits of information:
- What packages need to be released
- What semver bump type each package should receive (major / minor / patch)
- A summary of the changes
## How do I create a changeset?
Run `npx changeset` or create a `.md` file in this directory with the following format:
```markdown
---
"codeman": patch
---
Description of changes
```
The frontmatter specifies which package(s) to bump and the bump type. The body is the changelog entry.
+11
View File
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
+40
View File
@@ -0,0 +1,40 @@
name: Release
on:
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Create release PR or publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
version: npm run version-packages
title: "chore: version packages"
commit: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+13
View File
@@ -0,0 +1,13 @@
# codeman
## 0.2.1
### Patch Changes
- Integrate @changesets/cli for automated releases with changelogs, GitHub Releases, and npm publishing
## 0.2.0
### Minor Changes
- Initial public release with changesets-based versioning
+19 -4
View File
@@ -31,11 +31,26 @@ The production server caches static files for 1 hour (`maxAge: '1h'` in `server.
## COM Shorthand (Deployment)
When user says "COM":
1. Increment version in BOTH `package.json` AND `CLAUDE.md` (verify they match with `grep version package.json && grep Version CLAUDE.md`)
2. Run: `git add -A && git commit -m "chore: bump version to X.XXXX" && git push && npm run build && systemctl --user restart codeman-web`
Uses [Semantic Versioning](https://semver.org/) (`MAJOR.MINOR.PATCH`) via `@changesets/cli`.
**Version**: 0.1658 (must match `package.json`)
When user says "COM":
1. **Determine bump type**: `COM` = patch (default), `COM minor` = minor, `COM major` = major
2. **Create a changeset file** (no interactive prompts). Write a `.md` file in `.changeset/` with a random filename:
```bash
cat > .changeset/$(openssl rand -hex 4).md << 'CHANGESET'
---
"codeman": patch
---
Description of changes
CHANGESET
```
Replace `patch` with `minor` or `major` as needed. Include `"xterm-zerolag-input": patch` on a separate line if that package changed too.
3. **Consume the changeset**: `npm run version-packages` (bumps versions in `package.json` files and updates `CHANGELOG.md`)
4. **Sync CLAUDE.md version**: Update the `**Version**` line below to match the new version from `package.json`
5. **Commit and deploy**: `git add -A && git commit -m "chore: version packages" && git push && npm run build && systemctl --user restart codeman-web`
**Version**: 0.2.1 (must match `package.json`)
## Project Overview
+221 -52
View File
@@ -23,7 +23,7 @@ TARGET_NODE_VERSION="${CODEMAN_NODE_VERSION:-22}"
NONINTERACTIVE="${CODEMAN_NONINTERACTIVE:-0}"
SKIP_SYSTEMD="${CODEMAN_SKIP_SYSTEMD:-0}"
# Claude CLI search paths (from src/session.ts)
# Claude CLI search paths (from src/utils/claude-cli-resolver.ts)
CLAUDE_SEARCH_PATHS=(
"$HOME/.local/bin/claude"
"$HOME/.claude/local/claude"
@@ -32,6 +32,17 @@ CLAUDE_SEARCH_PATHS=(
"$HOME/bin/claude"
)
# OpenCode CLI search paths (from src/utils/opencode-cli-resolver.ts)
OPENCODE_SEARCH_PATHS=(
"$HOME/.opencode/bin/opencode"
"$HOME/.local/bin/opencode"
"/usr/local/bin/opencode"
"$HOME/go/bin/opencode"
"$HOME/.bun/bin/opencode"
"$HOME/.npm-global/bin/opencode"
"$HOME/bin/opencode"
)
# ============================================================================
# Color Output
# ============================================================================
@@ -273,6 +284,34 @@ get_claude_path() {
done
}
check_opencode() {
if command -v opencode &>/dev/null; then
return 0
fi
for path in "${OPENCODE_SEARCH_PATHS[@]}"; do
if [[ -x "$path" ]]; then
return 0
fi
done
return 1
}
get_opencode_path() {
if command -v opencode &>/dev/null; then
command -v opencode
return
fi
for path in "${OPENCODE_SEARCH_PATHS[@]}"; do
if [[ -x "$path" ]]; then
echo "$path"
return
fi
done
}
# ============================================================================
# Dependency Installation
# ============================================================================
@@ -688,8 +727,10 @@ EOF
loginctl enable-linger "$USER" 2>/dev/null || true
fi
success "Systemd service installed at $service_file"
info "Start with: systemctl --user start codeman-web"
# Start the service immediately
systemctl --user start codeman-web.service 2>/dev/null || true
success "Systemd service installed and started"
}
# ============================================================================
@@ -806,24 +847,72 @@ main() {
fi
fi
# Claude CLI (required)
info "Checking Claude CLI..."
if ! check_claude; then
info "Installing Claude CLI..."
download_to_stdout https://claude.ai/install.sh | bash
# Rehash to pick up new binary
hash -r 2>/dev/null || true
if check_claude; then
local claude_path
claude_path=$(get_claude_path)
success "Claude CLI installed at $claude_path"
# AI CLI (at least one required: Claude Code or OpenCode)
local has_claude=false
local has_opencode=false
info "Checking AI CLI tools..."
if check_claude; then
has_claude=true
success "Claude Code found at $(get_claude_path)"
fi
if check_opencode; then
has_opencode=true
success "OpenCode found at $(get_opencode_path)"
fi
if [[ "$has_claude" == "false" ]] && [[ "$has_opencode" == "false" ]]; then
echo ""
warn "No AI CLI found. Codeman requires at least one: Claude Code or OpenCode."
echo ""
echo -e " ${BOLD}Which AI CLI would you like to install?${NC}"
echo -e " ${CYAN}1)${NC} Claude Code (Anthropic)"
echo -e " ${CYAN}2)${NC} OpenCode (open-source)"
echo -e " ${CYAN}3)${NC} Both"
echo ""
local cli_choice=""
if [[ "$NONINTERACTIVE" == "1" ]] || [[ ! -t 0 ]]; then
# Non-interactive: default to Claude Code
cli_choice="1"
else
die "Claude CLI installation failed. Install manually with: curl -fsSL https://claude.ai/install.sh | bash"
while true; do
echo -en "${CYAN}Choose [1/2/3]:${NC} " >&2
read -r cli_choice
case "$cli_choice" in
1|2|3) break ;;
*) echo "Please enter 1, 2, or 3." >&2 ;;
esac
done
fi
if [[ "$cli_choice" == "1" ]] || [[ "$cli_choice" == "3" ]]; then
info "Installing Claude Code CLI..."
download_to_stdout https://claude.ai/install.sh | bash
hash -r 2>/dev/null || true
if check_claude; then
has_claude=true
success "Claude Code installed at $(get_claude_path)"
else
warn "Claude Code installation failed."
fi
fi
if [[ "$cli_choice" == "2" ]] || [[ "$cli_choice" == "3" ]]; then
info "Installing OpenCode CLI..."
download_to_stdout https://opencode.ai/install | bash
hash -r 2>/dev/null || true
if check_opencode; then
has_opencode=true
success "OpenCode installed at $(get_opencode_path)"
else
warn "OpenCode installation failed."
fi
fi
if [[ "$has_claude" == "false" ]] && [[ "$has_opencode" == "false" ]]; then
die "At least one AI CLI is required. Install manually and re-run the installer."
fi
else
local claude_path
claude_path=$(get_claude_path)
success "Claude CLI found at $claude_path"
fi
echo ""
@@ -919,17 +1008,40 @@ main() {
echo -e "${GREEN}${BOLD} Codeman installed successfully!${NC}"
echo -e "${GREEN}${BOLD}============================================================${NC}"
echo ""
echo -e " ${BOLD}Quick Start:${NC}"
echo ""
echo -e " ${CYAN}# Start the web server${NC}"
echo -e " codeman web"
echo ""
echo -e " ${CYAN}# Start with HTTPS (only needed for remote access)${NC}"
echo -e " codeman web --https"
echo ""
echo -e " ${CYAN}# Open in browser${NC}"
echo -e " http://localhost:3000"
echo ""
# Check if systemd service is running (we just started it above)
local service_running=false
if systemctl --user is-active codeman-web.service &>/dev/null; then
service_running=true
fi
if [[ "$service_running" == "true" ]]; then
echo -e " ${GREEN}${BOLD}Codeman is running now!${NC}"
echo ""
echo -e " ${CYAN}# Open in browser${NC}"
echo -e " http://localhost:3000"
echo ""
echo -e " ${BOLD}Manage the service:${NC}"
echo ""
echo -e " ${CYAN}systemctl --user stop codeman-web${NC} # Stop"
echo -e " ${CYAN}systemctl --user restart codeman-web${NC} # Restart"
echo -e " ${CYAN}systemctl --user status codeman-web${NC} # Check status"
echo -e " ${CYAN}journalctl --user -u codeman-web -f${NC} # View logs"
echo ""
else
echo -e " ${BOLD}Quick Start:${NC}"
echo ""
echo -e " ${CYAN}# Start the web server${NC}"
echo -e " codeman web"
echo ""
echo -e " ${CYAN}# Start with HTTPS (only needed for remote access)${NC}"
echo -e " codeman web --https"
echo ""
echo -e " ${CYAN}# Open in browser${NC}"
echo -e " http://localhost:3000"
echo ""
fi
echo -e " ${BOLD}Mobile Access (Termius/SSH):${NC}"
echo ""
echo -e " ${CYAN}sc${NC} # Interactive tmux session chooser"
@@ -937,33 +1049,27 @@ main() {
echo -e " ${CYAN}sc -h${NC} # Help"
echo ""
if [[ "$os" == "linux" ]] && [[ -f "$HOME/.config/systemd/user/codeman-web.service" ]]; then
echo -e " ${BOLD}Systemd Service:${NC}"
echo ""
echo -e " ${CYAN}systemctl --user start codeman-web${NC} # Start"
echo -e " ${CYAN}systemctl --user status codeman-web${NC} # Check status"
echo -e " ${CYAN}journalctl --user -u codeman-web -f${NC} # View logs"
echo ""
fi
echo -e " ${BOLD}Documentation:${NC}"
echo -e " https://github.com/Ark0N/Codeman"
echo ""
if ! check_claude; then
echo -e " ${YELLOW}${BOLD}Reminder:${NC} Install Claude CLI to start using Codeman:"
echo -e " ${CYAN}curl -fsSL https://claude.ai/install.sh | bash${NC}"
if ! check_claude && ! check_opencode; then
echo -e " ${YELLOW}${BOLD}Reminder:${NC} Install at least one AI CLI to start using Codeman:"
echo -e " ${CYAN}curl -fsSL https://claude.ai/install.sh | bash${NC} # Claude Code"
echo -e " ${CYAN}curl -fsSL https://opencode.ai/install | bash${NC} # OpenCode"
echo ""
fi
# Check if PATH needs reload in user's shell
local profile
profile=$(detect_shell_profile)
if ! command -v codeman &>/dev/null 2>&1; then
echo -e " ${YELLOW}Run this to start using codeman now:${NC}"
echo ""
echo -e " ${CYAN}source $profile && codeman web${NC}"
echo ""
# Check if PATH needs reload in user's shell (only relevant if service not running)
if [[ "$service_running" != "true" ]]; then
local profile
profile=$(detect_shell_profile)
if ! command -v codeman &>/dev/null 2>&1; then
echo -e " ${YELLOW}Run this to start using codeman now:${NC}"
echo ""
echo -e " ${CYAN}source $profile && codeman web${NC}"
echo ""
fi
fi
}
@@ -984,8 +1090,71 @@ update() {
echo ""
}
uninstall() {
print_banner
info "Uninstalling Codeman..."
echo ""
# Stop and remove systemd service
if systemctl --user is-active codeman-web.service &>/dev/null; then
info "Stopping codeman-web service..."
systemctl --user stop codeman-web.service
fi
if systemctl --user is-enabled codeman-web.service &>/dev/null 2>&1; then
info "Disabling codeman-web service..."
systemctl --user disable codeman-web.service 2>/dev/null || true
fi
local service_file="$HOME/.config/systemd/user/codeman-web.service"
if [[ -f "$service_file" ]]; then
rm -f "$service_file"
systemctl --user daemon-reload 2>/dev/null || true
success "Systemd service removed"
fi
# Remove symlinks
local symlink_dir="$HOME/.local/bin"
if [[ -L "$symlink_dir/codeman" ]]; then
rm -f "$symlink_dir/codeman"
success "Removed symlink: $symlink_dir/codeman"
fi
if [[ -L "$symlink_dir/tmux-chooser" ]]; then
rm -f "$symlink_dir/tmux-chooser"
success "Removed symlink: $symlink_dir/tmux-chooser"
fi
# Remove install directory
if [[ -d "$INSTALL_DIR" ]]; then
if prompt_yes_no "Remove installation directory ($INSTALL_DIR)?"; then
rm -rf "$INSTALL_DIR"
success "Removed $INSTALL_DIR"
else
info "Kept $INSTALL_DIR"
fi
fi
# Ask about data directory
local data_dir="$HOME/.codeman"
if [[ -d "$data_dir" ]]; then
warn "Data directory exists at $data_dir (contains sessions, settings, state)"
if prompt_yes_no "Remove data directory ($data_dir)?" "n"; then
rm -rf "$data_dir"
success "Removed $data_dir"
else
info "Kept $data_dir"
fi
fi
echo ""
success "Codeman uninstalled."
echo ""
echo -e " ${DIM}Note: Shell profile entries (PATH, sc alias) were not removed.${NC}"
echo -e " ${DIM}You can remove them manually from $(detect_shell_profile)${NC}"
echo ""
}
# Wrap in main to prevent partial execution on curl | bash
case "${1:-}" in
update) update ;;
*) main "$@" ;;
update) update ;;
uninstall) uninstall ;;
*) main "$@" ;;
esac
+1793 -2
View File
File diff suppressed because it is too large Load Diff
+6 -2
View File
@@ -1,6 +1,6 @@
{
"name": "codeman",
"version": "0.1658",
"version": "0.2.1",
"description": "The missing control plane for AI coding agents - run 20 autonomous agents with real-time monitoring and session persistence",
"type": "module",
"main": "dist/index.js",
@@ -19,7 +19,10 @@
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"capture:subagents": "node scripts/capture-subagent-screenshots.mjs"
"capture:subagents": "node scripts/capture-subagent-screenshots.mjs",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "changeset publish"
},
"keywords": [
"claude",
@@ -58,6 +61,7 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@changesets/cli": "^2.29.8",
"@types/node": "^20.19.33",
"@types/pngjs": "^6.0.5",
"@types/react": "^19.2.14",
@@ -0,0 +1,7 @@
# xterm-zerolag-input
## 0.1.4
### Patch Changes
- Initial changelog entry for changesets-based versioning
+7 -2940
View File
File diff suppressed because it is too large Load Diff
+2 -10
View File
@@ -247,16 +247,13 @@
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="5 3 19 12 5 21 5 3"/></svg>
Run OpenCode
</button>
<button class="welcome-btn welcome-btn-ralph" onclick="app.showRalphWizard()">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 1 1-6.219-8.56"/><polyline points="21 3 21 9 15 9"/></svg>
Start Ralph Loop
</button>
</div>
<div class="welcome-qr" id="welcomeQr" onclick="app.toggleWelcomeQrSize()">
<div class="welcome-qr-inner" id="welcomeQrInner"></div>
<div class="welcome-qr-url" id="welcomeQrUrl"></div>
</div>
<p class="welcome-hint">Or press <kbd>Ctrl</kbd>+<kbd>Enter</kbd> to start</p>
<button class="welcome-ralph-link" onclick="app.showRalphWizard()">Start Ralph Loop &rarr;</button>
</div>
</div>
</main>
@@ -1535,12 +1532,6 @@
</div>
</div>
<!-- Ralph Wizard Minimized Indicator -->
<div class="wizard-minimized-indicator" id="wizardMinimizedIndicator" onclick="app.restoreRalphWizard()">
<span class="wizard-minimized-icon">🔄</span>
<span class="wizard-minimized-text">Ralph Wizard</span>
<span class="wizard-minimized-time" id="wizardMinimizedTime">0s</span>
</div>
<!-- Kill All Confirmation Modal -->
<div class="modal" id="killAllModal">
@@ -1679,5 +1670,6 @@
</svg>
<script defer src="app.js?v=0.1631"></script>
<script defer src="ralph-wizard.js?v=0.1631"></script>
</body>
</html>
File diff suppressed because it is too large Load Diff
+15 -949
View File
@@ -1791,18 +1791,7 @@ body {
to { transform: rotate(360deg); }
}
.welcome-btn-ralph {
background: linear-gradient(135deg, #3d3415 0%, #4a3f1a 100%);
border-color: #6b5a1e;
color: #eab308;
}
.welcome-btn-ralph:hover {
background: linear-gradient(135deg, #4a3f1a 0%, #5a4d20 100%);
border-color: #8b7a2e;
box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
color: #fcd34d;
}
.welcome-qr {
display: none;
@@ -1864,6 +1853,21 @@ body {
color: var(--text-dim);
}
.welcome-ralph-link {
background: none;
border: none;
color: var(--text-muted);
font-size: 0.75rem;
cursor: pointer;
padding: 0.25rem 0;
margin-top: 0.25rem;
transition: color 0.15s ease;
}
.welcome-ralph-link:hover {
color: var(--accent);
}
/* Bottom Toolbar */
.toolbar {
display: flex;
@@ -6432,159 +6436,6 @@ kbd {
cursor: default;
}
.modal-wizard .modal-header {
cursor: grab;
user-select: none;
}
.modal-wizard .modal-header:active {
cursor: grabbing;
}
/* Agents minimized tab */
.wizard-agents-tab {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: var(--bg-card);
border: 1px solid var(--accent);
border-radius: 20px;
padding: 0.5rem 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(96, 165, 250, 0.2);
z-index: 1200;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wizard-agents-tab:hover {
transform: translateX(-50%) scale(1.05);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(96, 165, 250, 0.3);
}
.wizard-agents-tab .tab-icon {
font-size: 1.1rem;
}
.wizard-agents-tab .tab-label {
font-size: 0.85rem;
font-weight: 500;
color: var(--text);
}
.wizard-agents-tab .tab-count {
background: var(--accent);
color: white;
padding: 0.15rem 0.5rem;
border-radius: 10px;
font-size: 0.75rem;
font-weight: 600;
}
.wizard-agents-tab .tab-running {
display: flex;
align-items: center;
gap: 0.35rem;
}
.wizard-agents-tab .tab-spinner {
width: 12px;
height: 12px;
border: 2px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* Minimize button in wizard header */
.wizard-minimize-agents {
background: transparent;
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.25rem 0.5rem;
font-size: 0.7rem;
color: var(--text-dim);
cursor: pointer;
margin-right: 0.5rem;
display: flex;
align-items: center;
gap: 0.3rem;
transition: all 0.15s ease;
}
.wizard-minimize-agents:hover {
background: var(--bg-hover);
color: var(--text);
border-color: var(--accent);
}
.wizard-minimize-agents .agent-count {
background: var(--accent);
color: white;
padding: 0.1rem 0.35rem;
border-radius: 8px;
font-size: 0.65rem;
font-weight: 600;
}
/* Wizard minimize button */
.wizard-minimize-btn {
margin-right: 0.25rem;
font-size: 1.2rem;
line-height: 1;
}
/* Wizard minimized floating indicator */
.wizard-minimized-indicator {
display: none;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: var(--bg-card);
border: 1px solid var(--accent);
border-radius: 8px;
padding: 0.5rem 1rem;
cursor: pointer;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition: all 0.2s ease;
gap: 0.5rem;
align-items: center;
}
.wizard-minimized-indicator.visible {
display: flex;
}
.wizard-minimized-indicator:hover {
background: var(--bg-hover);
border-color: var(--accent-bright);
transform: translateX(-50%) scale(1.02);
}
.wizard-minimized-icon {
font-size: 1.1rem;
animation: spin 2s linear infinite;
}
.wizard-minimized-text {
font-size: 0.8rem;
color: var(--text);
font-weight: 500;
}
.wizard-minimized-time {
font-size: 0.75rem;
color: var(--text-dim);
background: var(--bg-input);
padding: 0.15rem 0.4rem;
border-radius: 4px;
}
.modal-wizard .modal-body {
overflow-y: auto;
flex: 1;
@@ -7116,791 +6967,6 @@ kbd {
color: var(--accent);
}
/* ========== Plan File Manager ========== */
.plan-file-manager {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 320px;
max-height: 450px;
background: var(--bg-card);
border: 1px solid var(--accent);
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(96, 165, 250, 0.15);
z-index: 2000;
display: flex;
flex-direction: column;
overflow: hidden;
contain: layout paint;
}
.plan-fm-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
border-bottom: 1px solid var(--border);
cursor: grab;
}
.plan-fm-header:active {
cursor: grabbing;
}
.plan-fm-title {
font-weight: 600;
font-size: 0.9rem;
color: var(--text);
}
.plan-fm-close {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 1.2rem;
cursor: pointer;
padding: 0.25rem 0.5rem;
line-height: 1;
border-radius: 4px;
}
.plan-fm-close:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text);
}
.plan-fm-body {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.plan-fm-loading,
.plan-fm-error {
padding: 2rem;
text-align: center;
color: var(--text-muted);
}
.plan-fm-error {
color: var(--red);
}
.plan-fm-files {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.plan-fm-file,
.plan-fm-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s ease;
}
.plan-fm-file:hover,
.plan-fm-item:hover {
background: rgba(96, 165, 250, 0.15);
}
.plan-fm-file-icon,
.plan-fm-item-icon {
font-size: 1rem;
}
.plan-fm-file-name,
.plan-fm-item-name {
flex: 1;
font-size: 0.85rem;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.plan-fm-item-count {
background: var(--bg-dark);
padding: 0.15rem 0.5rem;
border-radius: 10px;
font-size: 0.7rem;
color: var(--text-muted);
}
.plan-fm-divider {
height: 1px;
background: var(--border);
margin: 0.5rem 0;
}
.plan-fm-section-title {
font-size: 0.75rem;
color: var(--text-muted);
padding: 0.25rem 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ========== Plan File Viewer Window ========== */
.plan-file-window {
position: fixed;
width: 500px;
height: 400px;
min-width: 300px;
min-height: 200px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
z-index: 1500;
display: flex;
flex-direction: column;
overflow: hidden;
contain: layout paint;
}
.plan-file-window-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0.75rem;
background: var(--bg-dark);
border-bottom: 1px solid var(--border);
cursor: grab;
flex-shrink: 0;
}
.plan-file-window-header:active {
cursor: grabbing;
}
.plan-file-window-title {
font-size: 0.8rem;
font-weight: 500;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.plan-file-window-close {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 1.1rem;
cursor: pointer;
padding: 0.2rem 0.4rem;
line-height: 1;
border-radius: 4px;
}
.plan-file-window-close:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text);
}
.plan-file-window-body {
flex: 1;
overflow: auto;
padding: 0;
}
.plan-file-content {
margin: 0;
padding: 1rem;
font-family: 'SF Mono', Monaco, 'Menlo', monospace;
font-size: 0.75rem;
line-height: 1.5;
color: var(--text);
white-space: pre-wrap;
word-break: break-word;
}
.plan-file-content.json {
color: #a5d6ff;
}
.plan-file-content.markdown {
color: var(--text-dim);
}
.plan-file-window-resize {
position: absolute;
bottom: 0;
right: 0;
width: 16px;
height: 16px;
cursor: se-resize;
background: linear-gradient(135deg, transparent 50%, var(--border) 50%);
border-radius: 0 0 8px 0;
}
.plan-file-window-resize:hover {
background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
}
/* Note: main .plan-item styles are in "Enhanced Plan Item Styling" section below */
.plan-item-checkbox {
flex-shrink: 0;
width: 14px;
height: 14px;
}
.plan-item-content {
flex: 1;
background: transparent;
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.2rem 0.4rem;
color: var(--text);
font-size: 0.8rem;
}
.plan-item-content:focus {
outline: none;
border-color: var(--accent);
}
.plan-item-priority {
width: 50px;
flex-shrink: 0;
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text);
padding: 0.2rem;
border-radius: 4px;
font-size: 0.75rem;
}
.plan-item-remove {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 1rem;
padding: 0 0.2rem;
line-height: 1;
}
.plan-item-remove:hover {
color: var(--red);
}
/* Note: .plan-item-phase and .plan-item-verify enhanced styles are in section below */
.plan-item:has(.plan-item-checkbox:not(:checked)) {
opacity: 0.5;
}
.plan-item:has(.plan-item-checkbox:not(:checked)) .plan-item-content {
text-decoration: line-through;
}
#planEditor {
text-align: left;
padding: 0.75rem;
}
.plan-editor-footer {
text-align: left;
}
/* Quality score indicators for detailed plan mode */
.quality-high {
color: #4ade80;
font-weight: 500;
}
.quality-medium {
color: #fbbf24;
font-weight: 500;
}
.quality-low {
color: #f87171;
font-weight: 500;
}
/* Plan warnings and gaps display */
#planWarnings {
margin-bottom: 0.75rem;
padding: 0.5rem;
background: rgba(251, 191, 36, 0.1);
border-radius: 4px;
font-size: 0.8rem;
}
#planWarnings.hidden {
display: none;
}
.plan-gaps {
color: #f87171;
margin-bottom: 0.25rem;
}
.plan-warnings {
color: #fbbf24;
}
/* Enhanced Plan Item Styling */
.plan-item {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.35rem 0.5rem;
background: var(--bg-input);
border-radius: 4px;
border-left: 3px solid transparent;
transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
cursor: default;
}
.plan-item.dragging {
opacity: 0.5;
transform: scale(0.98);
}
.plan-item.drag-over {
background: var(--accent-dim);
border-left-color: var(--accent);
}
/* Priority color borders */
.plan-item.priority-p0 {
border-left-color: #ef4444;
}
.plan-item.priority-p1 {
border-left-color: #f59e0b;
}
.plan-item.priority-p2 {
border-left-color: #3b82f6;
}
/* Drag handle */
.plan-item-drag {
cursor: grab;
color: var(--text-muted);
font-size: 0.9rem;
padding: 0 0.2rem;
opacity: 0.5;
user-select: none;
}
.plan-item-drag:hover {
opacity: 1;
}
.plan-item-drag:active {
cursor: grabbing;
}
/* TDD Phase badge - enhanced */
.plan-item-phase {
flex-shrink: 0;
min-width: 22px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.7rem;
border-radius: 3px;
background: var(--bg-card);
}
.plan-item-phase.phase-setup {
background: #6366f1;
color: white;
}
.plan-item-phase.phase-test {
background: #8b5cf6;
color: white;
}
.plan-item-phase.phase-impl {
background: #06b6d4;
color: white;
}
.plan-item-phase.phase-review {
background: #f59e0b;
color: white;
}
.plan-item-phase.phase-verify {
background: #22c55e;
color: white;
}
/* Enhanced verification indicator */
.plan-item-verify {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 0.15rem;
color: var(--green);
font-size: 0.65rem;
cursor: help;
padding: 0.1rem 0.25rem;
background: rgba(34, 197, 94, 0.1);
border-radius: 3px;
opacity: 0.85;
}
.plan-item-verify:hover {
opacity: 1;
background: rgba(34, 197, 94, 0.2);
}
/* Dependencies indicator */
.plan-item-deps {
flex-shrink: 0;
font-size: 0.65rem;
color: var(--text-muted);
padding: 0.1rem 0.25rem;
background: var(--bg-card);
border-radius: 3px;
cursor: help;
}
.plan-item-deps:hover {
color: var(--accent);
}
/* Review checklist indicator */
.plan-item-checklist {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 0.15rem;
color: #f59e0b;
font-size: 0.65rem;
cursor: help;
padding: 0.1rem 0.25rem;
background: rgba(245, 158, 11, 0.1);
border-radius: 3px;
opacity: 0.85;
}
.plan-item-checklist:hover {
opacity: 1;
background: rgba(245, 158, 11, 0.2);
}
/* Checklist modal */
.checklist-modal-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.checklist-modal {
padding: 1rem;
}
.checklist-modal h3 {
margin: 0 0 0.5rem 0;
color: var(--text);
}
.checklist-task {
color: var(--text-muted);
font-size: 0.85rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
}
.checklist-list {
list-style: none;
padding: 0;
margin: 0 0 1rem 0;
max-height: 300px;
overflow-y: auto;
}
.checklist-item {
display: flex;
align-items: flex-start;
gap: 0.5rem;
padding: 0.35rem 0;
}
.checklist-checkbox {
flex-shrink: 0;
margin-top: 0.15rem;
}
.checklist-item label {
color: var(--text);
font-size: 0.85rem;
cursor: pointer;
}
.checklist-footer {
text-align: right;
}
/* Group headers for TDD phases */
.plan-group-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.3rem 0.5rem;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
margin-top: 0.5rem;
cursor: pointer;
user-select: none;
}
.plan-group-header:first-child {
margin-top: 0;
}
.plan-group-header:hover {
color: var(--text);
}
.plan-group-header .group-icon {
font-size: 0.8rem;
}
.plan-group-header .group-count {
margin-left: auto;
color: var(--text-dim);
font-weight: normal;
}
.plan-group-header .group-chevron {
transition: transform 0.15s;
}
.plan-group-header.collapsed .group-chevron {
transform: rotate(-90deg);
}
.plan-group-items {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 0.25rem 0;
}
.plan-group-items.collapsed {
display: none;
}
/* View mode toggle */
.plan-view-toggle {
display: flex;
gap: 0.25rem;
}
.plan-view-btn {
padding: 0.2rem 0.4rem;
font-size: 0.7rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 3px;
color: var(--text-muted);
cursor: pointer;
transition: all 0.15s;
}
.plan-view-btn:hover {
color: var(--text);
border-color: var(--accent);
}
.plan-view-btn.active {
background: var(--accent);
color: white;
border-color: var(--accent);
}
/* Plan item inline actions */
.plan-item-actions {
display: flex;
gap: 0.1rem;
opacity: 0;
transition: opacity 0.15s;
}
.plan-item:hover .plan-item-actions {
opacity: 1;
}
.plan-item-action {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 0.75rem;
padding: 0.1rem 0.2rem;
border-radius: 2px;
}
.plan-item-action:hover {
color: var(--text);
background: var(--bg-card);
}
.ralph-task-attempts {
position: absolute;
top: 2px;
right: 2px;
font-size: 0.6rem;
color: var(--text-muted);
background: var(--bg-card);
padding: 0 3px;
border-radius: 2px;
}
.ralph-task-attempts.has-errors {
color: var(--red);
background: rgba(239, 68, 68, 0.1);
}
.ralph-task-verify-badge {
position: absolute;
bottom: 2px;
right: 2px;
font-size: 0.6rem;
color: var(--green);
opacity: 0.7;
}
.ralph-task-deps-indicator {
position: absolute;
top: 2px;
left: 2px;
font-size: 0.55rem;
color: var(--accent);
}
/* Quick actions on task hover */
.ralph-task-actions {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
gap: 0.25rem;
background: rgba(0,0,0,0.85);
padding: 0.25rem;
border-radius: 4px;
}
.ralph-task-card:hover .ralph-task-actions {
display: flex;
}
.ralph-task-action-btn {
padding: 0.2rem 0.35rem;
font-size: 0.65rem;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 3px;
color: var(--text);
cursor: pointer;
}
.ralph-task-action-btn:hover {
background: var(--accent);
color: white;
border-color: var(--accent);
}
/* Plan history dropdown */
.plan-history-dropdown {
position: absolute;
top: 100%;
right: 0;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
z-index: 100;
min-width: 200px;
max-height: 200px;
overflow-y: auto;
}
.plan-history-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 4px;
}
.plan-history-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--border);
cursor: pointer;
font-size: 0.8rem;
transition: background-color 0.15s;
}
.plan-history-item:last-child {
border-bottom: none;
}
.plan-history-item:hover {
background: var(--bg-input);
}
.plan-history-item.current {
background: var(--accent-dim);
cursor: default;
}
.plan-history-item.current::after {
content: '(current)';
font-size: 0.65rem;
color: var(--accent);
margin-left: 0.5rem;
}
.plan-history-version {
font-weight: 500;
color: var(--text);
}
.plan-history-tasks {
font-size: 0.7rem;
color: var(--text-muted);
margin-left: 0.5rem;
}
.plan-history-time {
color: var(--text-muted);
font-size: 0.7rem;
}
/* Ralph panel version info */
.ralph-version-info {
display: flex;