@cluesmith/codev 2.0.12 → 2.0.14

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.
Files changed (39) hide show
  1. package/dashboard/dist/assets/index-CioZsJfL.js +134 -0
  2. package/dashboard/dist/assets/{index-UI3ATXbB.js.map → index-CioZsJfL.js.map} +1 -1
  3. package/dashboard/dist/assets/index-DShepNcO.css +32 -0
  4. package/dashboard/dist/index.html +2 -2
  5. package/dist/agent-farm/cli.d.ts.map +1 -1
  6. package/dist/agent-farm/cli.js +33 -0
  7. package/dist/agent-farm/cli.js.map +1 -1
  8. package/dist/agent-farm/commands/bench.d.ts +49 -0
  9. package/dist/agent-farm/commands/bench.d.ts.map +1 -0
  10. package/dist/agent-farm/commands/bench.js +262 -0
  11. package/dist/agent-farm/commands/bench.js.map +1 -0
  12. package/dist/agent-farm/servers/tower-websocket.d.ts.map +1 -1
  13. package/dist/agent-farm/servers/tower-websocket.js +14 -1
  14. package/dist/agent-farm/servers/tower-websocket.js.map +1 -1
  15. package/dist/commands/consult/index.d.ts.map +1 -1
  16. package/dist/commands/consult/index.js +33 -5
  17. package/dist/commands/consult/index.js.map +1 -1
  18. package/dist/terminal/ws-protocol.d.ts +1 -1
  19. package/dist/terminal/ws-protocol.d.ts.map +1 -1
  20. package/package.json +1 -1
  21. package/skeleton/protocols/aspir/builder-prompt.md +75 -0
  22. package/skeleton/protocols/aspir/consult-types/impl-review.md +72 -0
  23. package/skeleton/protocols/aspir/consult-types/phase-review.md +72 -0
  24. package/skeleton/protocols/aspir/consult-types/plan-review.md +59 -0
  25. package/skeleton/protocols/aspir/consult-types/pr-review.md +72 -0
  26. package/skeleton/protocols/aspir/consult-types/spec-review.md +55 -0
  27. package/skeleton/protocols/aspir/prompts/implement.md +215 -0
  28. package/skeleton/protocols/aspir/prompts/plan.md +150 -0
  29. package/skeleton/protocols/aspir/prompts/review.md +259 -0
  30. package/skeleton/protocols/aspir/prompts/specify.md +139 -0
  31. package/skeleton/protocols/aspir/protocol.json +161 -0
  32. package/skeleton/protocols/aspir/protocol.md +94 -0
  33. package/skeleton/protocols/aspir/templates/plan.md +204 -0
  34. package/skeleton/protocols/aspir/templates/review.md +120 -0
  35. package/skeleton/protocols/aspir/templates/spec.md +182 -0
  36. package/skeleton/templates/AGENTS.md +1 -0
  37. package/skeleton/templates/CLAUDE.md +1 -0
  38. package/dashboard/dist/assets/index-DCQyWOPv.css +0 -32
  39. package/dashboard/dist/assets/index-UI3ATXbB.js +0 -135
@@ -0,0 +1,120 @@
1
+ # Review: [Feature/Project Name]
2
+
3
+ ## Summary
4
+
5
+ [1-3 sentences: what was built, how many phases, net outcome.]
6
+
7
+ ## Spec Compliance
8
+
9
+ - [x] AC1: [Description] (Phase N)
10
+ - [x] AC2: [Description] (Phase N)
11
+ - [ ] ACn: [Not met — reason]
12
+
13
+ ## Deviations from Plan
14
+
15
+ - **Phase N**: [What changed and why]
16
+
17
+ ## Key Metrics
18
+
19
+ - **Commits**: [N] on the branch
20
+ - **Tests**: [N] passing ([N] existing + [N] new)
21
+ - **Files created**: [list]
22
+ - **Files deleted**: [list]
23
+ - **Net LOC impact**: [+/-N lines]
24
+
25
+ ## Timelog
26
+
27
+ All times [timezone], [date range].
28
+
29
+ | Time | Event |
30
+ |------|-------|
31
+ | HH:MM | First commit: [description] |
32
+ | HH:MM | [Phase/milestone] |
33
+ | — | **GATE: [gate-name]** (human approval required) |
34
+ | HH:MM | Implementation begins |
35
+ | HH:MM | Phase N complete after N iterations |
36
+ | HH:MM | **GATE: pr** |
37
+
38
+ ### Autonomous Operation
39
+
40
+ | Period | Duration | Activity |
41
+ |--------|----------|----------|
42
+ | Spec + Plan | ~Nm | [Summary] |
43
+ | Human gate wait | ~Nh Nm | Idle — waiting for approval |
44
+ | Implementation → PR | ~Nh Nm | N phases, N consultation rounds |
45
+
46
+ **Total wall clock** (first commit to pr): **Xh Ym**
47
+ **Total autonomous work time** (excluding gate waits): **~Xh Ym**
48
+ **Context window resets**: [N] (resumed automatically / required manual restart)
49
+
50
+ ## Consultation Iteration Summary
51
+
52
+ [N] consultation files produced ([N] rounds x [N] models). [N] APPROVE, [N] REQUEST_CHANGES, [N] COMMENT.
53
+
54
+ | Phase | Iters | Who Blocked | What They Caught |
55
+ |-------|-------|-------------|------------------|
56
+ | Specify | N | [Model] | [Brief description] |
57
+ | Plan | N | [Model] | [Brief description] |
58
+ | Phase 1 | N | [Model] | [Brief description] |
59
+ | Phase N | N | [Model] | [Brief description] |
60
+ | Review | N | [Model] | [Brief description] |
61
+
62
+ **Most frequent blocker**: [Model] — blocked in N of N rounds, focused on: [pattern].
63
+
64
+ ### Avoidable Iterations
65
+
66
+ Iterations that could have been prevented with better builder behavior:
67
+
68
+ 1. **[Pattern]**: [Specific thing the builder should have done without needing reviewer feedback. E.g., "Run exhaustive grep before claiming all instances fixed."]
69
+
70
+ 2. **[Pattern]**: [Another avoidable iteration pattern.]
71
+
72
+ ## Consultation Feedback
73
+
74
+ [For each phase that had consultation, summarize every reviewer's concerns and how the builder responded. Use **Addressed** (fixed), **Rebutted** (disagreed with reasoning), or **N/A** (out of scope/moot) for each concern. If all reviewers approved with no concerns: "No concerns raised — all consultations approved."]
75
+
76
+ ### [Phase] Phase (Round N)
77
+
78
+ #### Gemini
79
+ - **Concern**: [Summary of concern]
80
+ - **Addressed**: [What was changed]
81
+
82
+ #### Codex
83
+ - **Concern**: [Summary of concern]
84
+ - **Rebutted**: [Why current approach is correct]
85
+
86
+ #### Claude
87
+ - No concerns raised (APPROVE)
88
+
89
+ ## Lessons Learned
90
+
91
+ ### What Went Well
92
+ - [Specific positive observation — what worked and why]
93
+
94
+ ### Challenges Encountered
95
+ - **[Challenge]**: [How it was resolved. How many iterations it cost.]
96
+
97
+ ### What Would Be Done Differently
98
+ - [Actionable improvement for future builders]
99
+
100
+ ## Architecture Updates
101
+
102
+ [What was added/changed in `codev/resources/arch.md`, or why no changes were needed.]
103
+
104
+ - Updated: [section name] — [what was added/changed]
105
+ - Or: "No architecture updates needed — [brief reason]"
106
+
107
+ ## Lessons Learned Updates
108
+
109
+ [What was added/changed in `codev/resources/lessons-learned.md`, or why no changes were needed.]
110
+
111
+ - Added: [category] — [lesson summary]
112
+ - Or: "No lessons learned updates needed — [brief reason]"
113
+
114
+ ## Technical Debt
115
+
116
+ - [Any shortcuts taken or inconsistencies introduced]
117
+
118
+ ## Follow-up Items
119
+
120
+ - [Items identified for future work, outside this spec's scope]
@@ -0,0 +1,182 @@
1
+ # Specification: [Title]
2
+
3
+ <!--
4
+ SPEC vs PLAN BOUNDARY:
5
+ This spec defines WHAT and WHY. The plan defines HOW and WHEN.
6
+
7
+ DO NOT include in this spec:
8
+ - Implementation phases or steps
9
+ - File paths to modify
10
+ - Code examples or pseudocode
11
+ - "First we will... then we will..."
12
+
13
+ These belong in codev/plans/XXXX-*.md
14
+ -->
15
+
16
+ ## Metadata
17
+ - **ID**: spec-[YYYY-MM-DD]-[short-name]
18
+ - **Status**: draft
19
+ - **Created**: [YYYY-MM-DD]
20
+
21
+ ## Clarifying Questions Asked
22
+ <!-- Document the questions you asked the user/stakeholder and their answers -->
23
+ [List the questions you asked to understand the problem better and the responses received. This shows the discovery process.]
24
+
25
+ ## Problem Statement
26
+ [Clearly articulate the problem being solved. Include context about why this is important, who is affected, and what the current pain points are.]
27
+
28
+ ## Current State
29
+ [Describe how things work today. What are the limitations? What workarounds exist? Include specific examples.]
30
+
31
+ ## Desired State
32
+ [Describe the ideal solution. How should things work after implementation? What specific improvements will users see?]
33
+
34
+ ## Stakeholders
35
+ - **Primary Users**: [Who will directly use this feature?]
36
+ - **Secondary Users**: [Who else is affected?]
37
+ - **Technical Team**: [Who will implement and maintain this?]
38
+ - **Business Owners**: [Who has decision authority?]
39
+
40
+ ## Success Criteria
41
+ - [ ] [Specific, measurable criterion 1]
42
+ - [ ] [Specific, measurable criterion 2]
43
+ - [ ] [Specific, measurable criterion 3]
44
+ - [ ] All tests pass with >90% coverage
45
+ - [ ] Performance benchmarks met (specify below)
46
+ - [ ] Documentation updated
47
+
48
+ ## Constraints
49
+ ### Technical Constraints
50
+ - [Existing system limitations]
51
+ - [Technology stack requirements]
52
+ - [Integration points]
53
+
54
+ ### Business Constraints
55
+ - [Timeline requirements]
56
+ - [Budget considerations]
57
+ - [Compliance requirements]
58
+
59
+ ## Assumptions
60
+ - [List assumptions being made]
61
+ - [Include dependencies on other work]
62
+ - [Note any prerequisites]
63
+
64
+ ## Solution Approaches
65
+
66
+ ### Approach 1: [Name]
67
+ **Description**: [Brief overview of this approach]
68
+
69
+ **Pros**:
70
+ - [Advantage 1]
71
+ - [Advantage 2]
72
+
73
+ **Cons**:
74
+ - [Disadvantage 1]
75
+ - [Disadvantage 2]
76
+
77
+ **Estimated Complexity**: [Low/Medium/High]
78
+ **Risk Level**: [Low/Medium/High]
79
+
80
+ ### Approach 2: [Name]
81
+ [Repeat structure for additional approaches]
82
+
83
+ [Add as many approaches as appropriate for the problem]
84
+
85
+ ## Open Questions
86
+
87
+ ### Critical (Blocks Progress)
88
+ - [ ] [Question that must be answered before proceeding]
89
+
90
+ ### Important (Affects Design)
91
+ - [ ] [Question that influences technical decisions]
92
+
93
+ ### Nice-to-Know (Optimization)
94
+ - [ ] [Question that could improve the solution]
95
+
96
+ ## Performance Requirements
97
+ - **Response Time**: [e.g., <200ms p95]
98
+ - **Throughput**: [e.g., 1000 requests/second]
99
+ - **Resource Usage**: [e.g., <500MB memory]
100
+ - **Availability**: [e.g., 99.9% uptime]
101
+
102
+ ## Security Considerations
103
+ - [Authentication requirements]
104
+ - [Authorization model]
105
+ - [Data privacy concerns]
106
+ - [Audit requirements]
107
+
108
+ ## Test Scenarios
109
+ ### Functional Tests
110
+ 1. [Scenario 1: Happy path]
111
+ 2. [Scenario 2: Edge case]
112
+ 3. [Scenario 3: Error condition]
113
+
114
+ ### Non-Functional Tests
115
+ 1. [Performance test scenario]
116
+ 2. [Security test scenario]
117
+ 3. [Load test scenario]
118
+
119
+ ## Dependencies
120
+ - **External Services**: [List any external APIs or services]
121
+ - **Internal Systems**: [List internal dependencies]
122
+ - **Libraries/Frameworks**: [List required libraries]
123
+
124
+ ## References
125
+ - [Link to relevant documentation in codev/ref/]
126
+ - [Link to related specifications]
127
+ - [Link to architectural diagrams]
128
+ - [Link to research materials]
129
+
130
+ ## Risks and Mitigation
131
+ | Risk | Probability | Impact | Mitigation Strategy |
132
+ |------|------------|--------|-------------------|
133
+ | [Risk 1] | Low/Med/High | Low/Med/High | [How to address] |
134
+ | [Risk 2] | Low/Med/High | Low/Med/High | [How to address] |
135
+
136
+ ## Expert Consultation
137
+ <!-- Only if user requested multi-agent consultation -->
138
+ **Date**: [YYYY-MM-DD]
139
+ **Models Consulted**: [e.g., GPT-5 and Gemini Pro]
140
+ **Sections Updated**:
141
+ - [Section name]: [Brief description of change based on consultation]
142
+ - [Section name]: [Brief description of change based on consultation]
143
+
144
+ Note: All consultation feedback has been incorporated directly into the relevant sections above.
145
+
146
+ ## Approval
147
+ - [ ] Technical Lead Review
148
+ - [ ] Product Owner Review
149
+ - [ ] Stakeholder Sign-off
150
+ - [ ] Expert AI Consultation Complete
151
+
152
+ ## Notes
153
+ [Any additional context or considerations not covered above]
154
+
155
+ ---
156
+
157
+ ## Amendments
158
+
159
+ This section tracks all TICK amendments to this specification. TICKs are lightweight changes that refine an existing spec rather than creating a new one.
160
+
161
+ <!-- When adding a TICK amendment, add a new entry below this line in chronological order -->
162
+
163
+ <!--
164
+ ### TICK-001: [Amendment Title] (YYYY-MM-DD)
165
+
166
+ **Summary**: [One-line description of what changed]
167
+
168
+ **Problem Addressed**:
169
+ [Why this amendment was needed - what gap or issue in the original spec]
170
+
171
+ **Spec Changes**:
172
+ - [Section modified]: [What changed and why]
173
+ - [New section added]: [Purpose]
174
+
175
+ **Plan Changes**:
176
+ - [Phase added/modified]: [Description]
177
+ - [Implementation steps]: [What was updated]
178
+
179
+ **Review**: See `reviews/####-name-tick-001.md`
180
+
181
+ ---
182
+ -->
@@ -9,6 +9,7 @@ This project uses **Codev** for AI-assisted development.
9
9
  ## Available Protocols
10
10
 
11
11
  - **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
12
+ - **ASPIR**: Autonomous SPIR — no human gates on spec/plan (`codev/protocols/aspir/protocol.md`)
12
13
  - **TICK**: Fast autonomous implementation (`codev/protocols/tick/protocol.md`)
13
14
  - **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
14
15
  - **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
@@ -7,6 +7,7 @@ This project uses **Codev** for AI-assisted development.
7
7
  ## Available Protocols
8
8
 
9
9
  - **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
10
+ - **ASPIR**: Autonomous SPIR — no human gates on spec/plan (`codev/protocols/aspir/protocol.md`)
10
11
  - **TICK**: Fast autonomous implementation (`codev/protocols/tick/protocol.md`)
11
12
  - **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
12
13
  - **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
@@ -1,32 +0,0 @@
1
- /**
2
- * Copyright (c) 2014 The xterm.js authors. All rights reserved.
3
- * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
4
- * https://github.com/chjj/term.js
5
- * @license MIT
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in
15
- * all copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- * THE SOFTWARE.
24
- *
25
- * Originally forked from (with the author's permission):
26
- * Fabrice Bellard's javascript vt100 for jslinux:
27
- * http://bellard.org/jslinux/
28
- * Copyright (c) 2011 Fabrice Bellard
29
- * The original design remains. The terminal itself
30
- * has been extended to include xterm CSI codes, among
31
- * other features.
32
- */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{--bg-primary: #1a1a1a;--bg-secondary: #252525;--bg-tertiary: #2a2a2a;--bg-hover: #333333;--text-primary: #e0e0e0;--text-secondary: #a0a0a0;--text-muted: #666666;--border-color: #333333;--accent: #3b82f6;--accent-hover: #2563eb;--status-active: #22c55e;--status-waiting: #eab308;--status-error: #ef4444;--status-implementing: #f97316}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,monospace;background:var(--bg-primary);color:var(--text-primary);font-size:13px}.fullscreen-terminal{height:100vh;width:100vw;overflow:hidden}.fullscreen-terminal>div{height:100%;width:100%}.app{display:flex;flex-direction:column;height:100vh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);height:40px;flex-shrink:0}.app-title{font-size:14px;font-weight:600;color:var(--text-primary)}.header-version{font-size:11px;color:var(--text-secondary);font-weight:400}.app-body{flex:1;overflow:hidden}.split-pane{display:flex;height:100%;width:100%}.split-left,.split-right{height:100%;overflow:hidden}.split-handle{width:4px;cursor:col-resize;background:var(--border-color);flex-shrink:0}.split-handle:hover{background:var(--accent)}.right-panel{display:flex;flex-direction:column;height:100%}.tab-bar{display:flex;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);overflow-x:auto;flex-shrink:0;height:34px}.tab{display:flex;align-items:center;gap:6px;padding:6px 12px;background:none;border:none;border-bottom:2px solid transparent;color:var(--text-secondary);font-size:12px;cursor:pointer;white-space:nowrap;font-family:inherit}.tab:hover{background:var(--bg-hover);color:var(--text-primary)}.tab-active{color:var(--text-primary);border-bottom-color:var(--accent)}.tab-label{max-width:120px;overflow:hidden;text-overflow:ellipsis}.tab-close{font-size:14px;line-height:1;opacity:.5;padding:0 2px;border-radius:3px}.tab-close:hover{opacity:1;background:var(--bg-hover)}.tab-content{flex:1;overflow:hidden}.terminal-tab-pane{width:100%;height:100%}.file-path-decoration{border-bottom:1px dotted rgba(255,255,255,.3)!important;background:transparent!important;pointer-events:none}.file-path-decoration-hover{border-bottom-color:#ffffffb3!important}.terminal-iframe{display:block}.file-tree{padding:8px;overflow-y:auto;height:100%}.file-node{display:flex;align-items:center;gap:6px;padding:3px 0;cursor:pointer;font-size:12px;border-radius:4px}.file-node:hover{background:var(--bg-hover)}.file-icon{font-size:14px;flex-shrink:0}.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-tree-error,.file-tree-loading{padding:16px;color:var(--text-muted);font-size:12px}.no-architect{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-size:14px}.virtual-keyboard{display:flex;gap:6px;padding:6px 8px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);flex-shrink:0}.virtual-key{padding:4px 12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-secondary);font-size:12px;font-family:inherit;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}.virtual-key:active{background:var(--bg-hover);color:var(--text-primary)}.virtual-key-active{background:var(--accent);border-color:var(--accent);color:#fff}.virtual-key-active:active{background:var(--accent-hover)}.terminal-controls{position:absolute;top:8px;right:20px;z-index:20;display:flex;gap:4px}.terminal-control-btn{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:0;background:transparent;border:none;border-radius:4px;color:#e0e0e0;opacity:.4;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}.terminal-control-btn:hover{opacity:.8}.terminal-control-btn:active{opacity:1}.mobile-layout{display:flex;flex-direction:column;height:100vh}.mobile-content{flex:1;overflow:hidden;display:flex;flex-direction:column}@media(max-width:768px){.app-header{padding:6px 12px}.tab{padding:4px 8px;font-size:11px}}.file-viewer{display:flex;flex-direction:column;height:100%;background:var(--bg-primary)}.file-loading,.file-error{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-secondary)}.file-error{color:var(--status-error)}.file-header{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);flex-shrink:0}.file-path{font-family:monospace;font-size:12px;color:var(--text-primary);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-language{font-size:11px;color:var(--text-muted);text-transform:uppercase}.file-save-btn{padding:4px 12px;font-size:11px;background:var(--accent);color:#fff;border:none;border-radius:4px;cursor:pointer}.file-save-btn:hover{background:var(--accent-hover)}.file-save-btn:disabled{opacity:.5;cursor:not-allowed}.file-content{display:flex;flex:1;overflow:auto;background:var(--bg-primary)}.line-numbers{display:flex;flex-direction:column;padding:12px 8px;background:var(--bg-secondary);color:var(--text-muted);font-family:Menlo,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;text-align:right;-webkit-user-select:none;user-select:none;flex-shrink:0;min-width:40px}.line-number{padding-right:8px}.line-number.highlighted-line{background:#3b82f64d}.file-text{flex:1;padding:12px;font-family:Menlo,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;background:var(--bg-primary);color:var(--text-primary);border:none;outline:none;resize:none;white-space:pre;overflow:auto}.file-image-container,.file-video-container{flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;padding:20px}.file-image{max-width:100%;max-height:100%;object-fit:contain}.file-video{max-width:100%;max-height:100%}.file-tree-container{display:flex;flex-direction:column;height:100%;overflow:hidden}.file-search{position:relative;padding:8px;border-bottom:1px solid var(--border-color);flex-shrink:0}.file-search-input{width:100%;padding:6px 10px;font-size:12px;font-family:inherit;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);outline:none}.file-search-input:focus{border-color:var(--accent)}.file-search-input::placeholder{color:var(--text-muted)}.file-search-suggestions{position:absolute;top:100%;left:8px;right:8px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;box-shadow:0 4px 12px #0000004d;z-index:100;max-height:240px;overflow-y:auto}.file-search-suggestion{display:flex;flex-direction:column;padding:8px 10px;cursor:pointer;border-bottom:1px solid var(--border-color)}.file-search-suggestion:last-child{border-bottom:none}.file-search-suggestion:hover{background:var(--bg-hover)}.suggestion-name{font-size:12px;color:var(--text-primary);font-weight:500}.suggestion-path{font-size:10px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-tree-section{display:flex;flex-direction:column;overflow:hidden}.file-tree-section:first-of-type{flex-shrink:0}.file-tree-section:last-of-type{flex:1;overflow:hidden}.file-tree-section-header{padding:8px 12px;font-size:11px;font-weight:600;text-transform:uppercase;color:var(--text-muted);letter-spacing:.5px;border-bottom:1px solid var(--border-color);flex-shrink:0}.recent-file{color:var(--text-secondary)}.recent-file:hover{color:var(--text-primary)}.file-path-hint{font-size:10px;color:var(--text-muted);margin-left:auto;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.git-indicator{font-family:monospace;font-size:10px;font-weight:700;padding:1px 4px;border-radius:3px;margin-left:auto;flex-shrink:0}.git-modified{color:var(--status-implementing);background:#f9731626}.git-staged{color:var(--status-active);background:#22c55e26}.git-untracked{color:var(--text-muted);background:#66666626}.cloud-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);margin-right:12px}.cloud-status--none{color:var(--text-muted)}.cloud-status--error{color:var(--status-error)}.cloud-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.cloud-dot--green{background:var(--status-active)}.cloud-dot--yellow{background:var(--status-waiting);animation:cloud-pulse 1.2s ease-in-out infinite}@keyframes cloud-pulse{0%,to{opacity:1}50%{opacity:.3}}.cloud-dot--red{background:var(--status-error)}.cloud-dot--gray{background:var(--text-muted)}.cloud-uptime{color:var(--text-muted);font-size:11px}.cloud-hint{color:var(--text-muted);font-size:11px;font-style:italic}.cloud-link{color:var(--accent);text-decoration:none;font-size:11px}.cloud-link:hover{text-decoration:underline}.cloud-btn{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary);font-size:11px;padding:1px 6px;border-radius:3px;cursor:pointer}.cloud-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.cloud-btn:disabled{opacity:.5;cursor:default}.mobile-wrapper{display:flex;flex-direction:column;height:100vh}.mobile-header{padding:4px 8px;border-bottom:1px solid var(--border-color);background:var(--bg-primary)}.mobile-wrapper .mobile-layout{flex:1;min-height:0}.work-view{display:flex;flex-direction:column;height:100%;overflow:hidden}.work-content{flex:1;overflow-y:auto;padding:12px 16px}.work-view.file-panel-open .work-content{flex:2}.work-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.work-title{font-size:16px;font-weight:600;color:var(--text-primary)}.work-actions{display:flex;gap:6px}.work-btn{background:var(--accent);color:#fff;border:none;padding:4px 10px;border-radius:4px;font-size:12px;cursor:pointer}.work-btn:hover{background:var(--accent-hover)}.work-btn-secondary{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary)}.work-btn-secondary:hover{background:var(--bg-hover);color:var(--text-primary)}.tip-banner{display:flex;align-items:center;gap:8px;padding:6px 12px;margin-bottom:16px;background:var(--bg-tertiary);border-radius:4px;font-size:12px;color:var(--text-secondary)}.tip-banner-label{font-weight:600;color:var(--text-muted);white-space:nowrap}.tip-banner-text{flex:1;min-width:0}.tip-banner-text code{font-family:var(--font-mono, monospace);background:var(--bg-primary);padding:1px 4px;border-radius:2px;font-size:11px;color:var(--text-primary)}.tip-banner-nav{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:2px 4px;font-size:14px;line-height:1;border-radius:2px}.tip-banner-nav:hover{color:var(--text-primary);background:var(--bg-hover)}.tip-banner-dismiss{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:2px 4px;font-size:14px;line-height:1;border-radius:2px;margin-left:4px}.tip-banner-dismiss:hover{color:var(--text-primary);background:var(--bg-hover)}.work-section{margin-bottom:20px}.work-section-title{font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;display:flex;align-items:center;gap:6px}.work-empty{color:var(--text-muted);font-style:italic;font-size:12px;padding:8px 0}.work-unavailable{color:var(--status-waiting);font-size:12px;padding:8px 0}.work-error{color:var(--status-error);font-size:12px;padding:8px;margin-bottom:12px;background:#ef44441a;border-radius:4px}.work-loading{color:var(--text-muted);padding:16px}.builder-table{width:100%;border-collapse:separate;border-spacing:0 4px}.builder-table thead th{font-size:11px;font-weight:500;color:var(--text-secondary);text-align:left;padding:0 10px 4px;white-space:nowrap}.builder-row td{background:var(--bg-secondary);padding:8px 10px;font-size:13px;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color)}.builder-row td:first-child{border-left:1px solid var(--border-color);border-radius:8px 0 0 8px}.builder-row td:last-child{border-right:1px solid var(--border-color);border-radius:0 8px 8px 0}.builder-row:hover td{border-color:var(--accent)}.builder-row--blocked td:first-child{border-left:3px solid var(--status-waiting)}.builder-col-id{font-weight:500;color:var(--accent);white-space:nowrap;width:60px}.builder-col-title{color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:0;width:40%}.builder-col-state{white-space:nowrap;width:140px}.builder-state-active{font-size:12px;color:var(--accent)}.builder-state-blocked{font-size:12px;color:var(--status-waiting)}.builder-col-progress{width:120px;white-space:nowrap}.progress-bar{width:80px;height:4px;background:var(--bg-tertiary);border-radius:2px;overflow:hidden;display:inline-block;vertical-align:middle}.progress-fill{height:100%;background:var(--status-active);border-radius:2px;transition:width .3s ease}.progress-fill--blocked{background:var(--status-waiting)}.progress-pct{font-size:11px;color:var(--text-secondary);margin-left:6px;vertical-align:middle}.builder-col-elapsed{font-size:12px;color:var(--text-secondary);white-space:nowrap;width:70px}.builder-col-actions{width:60px;text-align:right}.builder-row-open{font-size:11px;color:var(--accent);background:#3b82f614;border:1px solid rgba(59,130,246,.2);padding:3px 10px;border-radius:5px;cursor:pointer;white-space:nowrap}.builder-row-open:hover{background:#3b82f62e}.pr-rows{display:flex;flex-direction:column;gap:4px}a.pr-row{text-decoration:none;color:inherit;cursor:pointer}.pr-row{display:flex;align-items:center;gap:10px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:10px 14px}.pr-row:hover{border-color:var(--accent)}.pr-row-number{font-size:13px;font-weight:500;color:var(--accent);white-space:nowrap}.pr-row-title{flex:1;font-size:13px;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-row-status{font-size:11px;white-space:nowrap}.pr-status--approved{color:var(--status-active)}.pr-status--reviewing{color:var(--status-waiting)}.pr-status--changes{color:var(--status-error)}.pr-row-age{font-size:11px;color:var(--text-muted);white-space:nowrap}.attention-rows{display:flex;flex-direction:column;gap:4px}a.attention-row{text-decoration:none;color:inherit;cursor:pointer}.attention-row{display:flex;align-items:center;gap:10px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:10px 14px}.attention-row:hover{border-color:var(--accent)}.attention-row-id{font-size:13px;font-weight:500;color:var(--accent);white-space:nowrap}.attention-row-title{flex:1;font-size:13px;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attention-row-kind{font-size:11px;white-space:nowrap}.attention-kind--pr{color:var(--status-waiting)}.attention-kind--spec,.attention-kind--plan{color:var(--status-error)}.attention-row-age{font-size:11px;color:var(--text-muted);white-space:nowrap}.backlog-rows{display:flex;flex-direction:column;gap:2px}.backlog-row{display:flex;align-items:center;gap:6px;padding:4px 14px;border-radius:6px}.backlog-row:hover{background:var(--bg-secondary)}.backlog-row-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-decoration:none;color:inherit}.backlog-row-main:hover .backlog-row-title{color:var(--accent)}.backlog-artifacts{display:flex;gap:4px;flex-shrink:0}.backlog-artifact-link{font-size:10px;padding:1px 5px;border-radius:3px;border:1px solid var(--border-color);background:transparent;color:var(--text-secondary);cursor:pointer;white-space:nowrap}.backlog-artifact-link:hover{background:var(--bg-hover);color:var(--accent);border-color:var(--accent)}.backlog-priority-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.priority-dot--high{background:var(--status-error)}.priority-dot--med{background:var(--status-waiting)}.priority-dot--low{background:var(--text-muted)}.backlog-row-number{font-size:13px;font-weight:500;color:var(--accent);white-space:nowrap}.backlog-type-tag{font-size:10px;padding:1px 5px;border-radius:3px;font-weight:500;white-space:nowrap}.type-tag--bug{background:#ef444426;color:var(--status-error)}.type-tag--project{background:#a855f71f;color:#a855f7}.backlog-row-title{flex:1;font-size:13px;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backlog-row-age{font-size:11px;color:var(--text-muted);white-space:nowrap}.recently-closed-rows{display:flex;flex-direction:column;gap:2px}.recently-closed-row{display:flex;align-items:center;gap:10px;padding:4px 14px;border-radius:6px;text-decoration:none;color:inherit;opacity:.7}.recently-closed-row:hover{background:var(--bg-secondary);opacity:1}.recently-closed-check{font-size:11px;color:var(--status-active);flex-shrink:0}.work-file-panel{border-top:1px solid var(--border-color);background:var(--bg-secondary)}.work-file-panel.expanded{flex:1;display:flex;flex-direction:column;overflow:hidden}.work-file-panel.collapsed{flex-shrink:0}.work-file-panel-header{display:flex;align-items:center;gap:6px;padding:6px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.work-file-panel-header:hover{background:var(--bg-hover)}.work-file-panel-toggle{font-size:10px;color:var(--text-muted)}.work-file-panel-label{font-size:12px;font-weight:500;color:var(--text-secondary)}.work-file-panel-search{flex:1;margin-left:8px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:3px;color:var(--text-primary);font-size:12px;padding:3px 8px;outline:none}.work-file-panel-search::placeholder{color:var(--text-muted)}.work-file-panel-search:focus{border-color:var(--accent)}.work-file-panel-content{flex:1;overflow-y:auto;padding:0 12px 12px}@media(max-width:768px){.work-content{padding:8px 12px}.work-header{flex-wrap:wrap;gap:8px}.pr-row,.attention-row{flex-wrap:wrap}.builder-table{font-size:12px}.builder-col-elapsed,.builder-table thead th:nth-child(5){display:none}.pr-row-title,.attention-row-title,.backlog-row-title{min-width:60%}}