@cluesmith/codev 2.0.0-rc.56 → 2.0.0-rc.58

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 (73) hide show
  1. package/dashboard/dist/assets/index-BEs2fHhy.js +131 -0
  2. package/dashboard/dist/assets/index-BEs2fHhy.js.map +1 -0
  3. package/dashboard/dist/index.html +1 -1
  4. package/dist/agent-farm/commands/attach.d.ts.map +1 -1
  5. package/dist/agent-farm/commands/attach.js +31 -8
  6. package/dist/agent-farm/commands/attach.js.map +1 -1
  7. package/dist/agent-farm/commands/send.d.ts.map +1 -1
  8. package/dist/agent-farm/commands/send.js +55 -17
  9. package/dist/agent-farm/commands/send.js.map +1 -1
  10. package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
  11. package/dist/agent-farm/commands/spawn.js +37 -27
  12. package/dist/agent-farm/commands/spawn.js.map +1 -1
  13. package/dist/agent-farm/commands/start.d.ts.map +1 -1
  14. package/dist/agent-farm/commands/start.js +3 -226
  15. package/dist/agent-farm/commands/start.js.map +1 -1
  16. package/dist/agent-farm/commands/status.d.ts.map +1 -1
  17. package/dist/agent-farm/commands/status.js +5 -2
  18. package/dist/agent-farm/commands/status.js.map +1 -1
  19. package/dist/agent-farm/db/index.d.ts.map +1 -1
  20. package/dist/agent-farm/db/index.js +45 -0
  21. package/dist/agent-farm/db/index.js.map +1 -1
  22. package/dist/agent-farm/db/schema.d.ts +1 -1
  23. package/dist/agent-farm/db/schema.d.ts.map +1 -1
  24. package/dist/agent-farm/db/schema.js +2 -2
  25. package/dist/agent-farm/hq-connector.d.ts +0 -4
  26. package/dist/agent-farm/hq-connector.d.ts.map +1 -1
  27. package/dist/agent-farm/hq-connector.js +0 -15
  28. package/dist/agent-farm/hq-connector.js.map +1 -1
  29. package/dist/agent-farm/servers/tower-server.js +228 -13
  30. package/dist/agent-farm/servers/tower-server.js.map +1 -1
  31. package/dist/commands/porch/protocol.d.ts.map +1 -1
  32. package/dist/commands/porch/protocol.js +26 -1
  33. package/dist/commands/porch/protocol.js.map +1 -1
  34. package/package.json +4 -6
  35. package/skeleton/porch/prompts/defend.md +1 -1
  36. package/skeleton/porch/prompts/evaluate.md +2 -2
  37. package/skeleton/porch/prompts/implement.md +1 -1
  38. package/skeleton/porch/prompts/plan.md +1 -1
  39. package/skeleton/porch/prompts/review.md +4 -4
  40. package/skeleton/porch/prompts/specify.md +1 -1
  41. package/skeleton/porch/prompts/understand.md +2 -2
  42. package/skeleton/protocol-schema.json +3 -3
  43. package/skeleton/protocols/bugfix/builder-prompt.md +1 -1
  44. package/skeleton/protocols/bugfix/prompts/pr.md +2 -17
  45. package/skeleton/protocols/experiment/protocol.md +3 -3
  46. package/skeleton/protocols/experiment/templates/notes.md +1 -1
  47. package/skeleton/protocols/maintain/protocol.md +1 -1
  48. package/skeleton/protocols/protocol-schema.json +1 -1
  49. package/skeleton/protocols/{spider → spir}/builder-prompt.md +1 -1
  50. package/skeleton/protocols/{spider → spir}/prompts/implement.md +1 -1
  51. package/skeleton/protocols/{spider → spir}/prompts/plan.md +6 -70
  52. package/skeleton/protocols/{spider → spir}/prompts/review.md +7 -25
  53. package/skeleton/protocols/{spider → spir}/prompts/specify.md +5 -58
  54. package/skeleton/protocols/{spider → spir}/protocol.json +2 -2
  55. package/skeleton/protocols/{spider → spir}/protocol.md +6 -8
  56. package/skeleton/protocols/{spider → spir}/templates/review.md +1 -1
  57. package/skeleton/protocols/tick/builder-prompt.md +1 -1
  58. package/skeleton/protocols/tick/protocol.md +18 -18
  59. package/skeleton/protocols/tick/templates/review.md +1 -1
  60. package/skeleton/resources/commands/overview.md +1 -1
  61. package/skeleton/resources/workflow-reference.md +2 -2
  62. package/skeleton/roles/architect.md +2 -2
  63. package/skeleton/roles/builder.md +2 -2
  64. package/skeleton/templates/AGENTS.md +1 -1
  65. package/skeleton/templates/CLAUDE.md +1 -1
  66. package/skeleton/templates/cheatsheet.md +3 -3
  67. package/skeleton/templates/projectlist.md +1 -1
  68. package/templates/dashboard/js/main.js +1 -1
  69. package/templates/open.html +26 -0
  70. package/dashboard/dist/assets/index-xOaDIZ0l.js +0 -132
  71. package/dashboard/dist/assets/index-xOaDIZ0l.js.map +0 -1
  72. /package/skeleton/protocols/{spider → spir}/templates/plan.md +0 -0
  73. /package/skeleton/protocols/{spider → spir}/templates/spec.md +0 -0
@@ -1,6 +1,6 @@
1
1
  # Architect-Builder Workflow Reference
2
2
 
3
- Quick reference for the 7-stage project workflow. For protocol details, see `codev/protocols/spider/protocol.md`.
3
+ Quick reference for the 7-stage project workflow. For protocol details, see `codev/protocols/spir/protocol.md`.
4
4
 
5
5
  ## Workflow Overview
6
6
 
@@ -236,7 +236,7 @@ af cleanup -p XXXX --force
236
236
 
237
237
  ## Related Documentation
238
238
 
239
- - Full SPIDER protocol: `codev/protocols/spider/protocol.md`
239
+ - Full SPIR protocol: `codev/protocols/spir/protocol.md`
240
240
  - Builder role: `codev/roles/builder.md`
241
241
  - Architect role: `codev/roles/architect.md`
242
242
  - Consultant role: `codev/roles/consultant.md`
@@ -95,7 +95,7 @@ The builder stops at gates requiring approval:
95
95
  **spec-approval** - After builder writes the spec
96
96
  ```bash
97
97
  # Review the spec in the builder's worktree
98
- cat worktrees/spider_0042_user-authentication/codev/specs/0042-user-authentication.md
98
+ cat worktrees/spir_0042_user-authentication/codev/specs/0042-user-authentication.md
99
99
 
100
100
  # Approve if satisfactory
101
101
  porch approve 0042 spec-approval
@@ -104,7 +104,7 @@ porch approve 0042 spec-approval
104
104
  **plan-approval** - After builder writes the plan
105
105
  ```bash
106
106
  # Review the plan
107
- cat worktrees/spider_0042_user-authentication/codev/plans/0042-user-authentication.md
107
+ cat worktrees/spir_0042_user-authentication/codev/plans/0042-user-authentication.md
108
108
 
109
109
  # Approve if satisfactory
110
110
  porch approve 0042 plan-approval
@@ -60,7 +60,7 @@ You must:
60
60
 
61
61
  ### What You DON'T Do in Strict Mode
62
62
 
63
- - **Don't manually follow SPIDER steps** - Porch handles this
63
+ - **Don't manually follow SPIR steps** - Porch handles this
64
64
  - **Don't run consult directly** - Porch runs 3-way reviews
65
65
  - **Don't edit status.yaml phase/iteration** - Only porch modifies state
66
66
  - **Don't call porch approve** - Only humans approve gates
@@ -80,7 +80,7 @@ cat codev/specs/XXXX-*.md
80
80
  cat codev/plans/XXXX-*.md
81
81
 
82
82
  # Read the protocol
83
- cat codev/protocols/spider/protocol.md
83
+ cat codev/protocols/spir/protocol.md
84
84
 
85
85
  # Start implementing
86
86
  ```
@@ -8,7 +8,7 @@ This project uses **Codev** for AI-assisted development.
8
8
 
9
9
  ## Available Protocols
10
10
 
11
- - **SPIDER**: Multi-phase development with consultation (`codev/protocols/spider/protocol.md`)
11
+ - **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
12
12
  - **TICK**: Fast autonomous implementation (`codev/protocols/tick/protocol.md`)
13
13
  - **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
14
14
  - **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
@@ -6,7 +6,7 @@ This project uses **Codev** for AI-assisted development.
6
6
 
7
7
  ## Available Protocols
8
8
 
9
- - **SPIDER**: Multi-phase development with consultation (`codev/protocols/spider/protocol.md`)
9
+ - **SPIR**: Multi-phase development with consultation (`codev/protocols/spir/protocol.md`)
10
10
  - **TICK**: Fast autonomous implementation (`codev/protocols/tick/protocol.md`)
11
11
  - **EXPERIMENT**: Disciplined experimentation (`codev/protocols/experiment/protocol.md`)
12
12
  - **MAINTAIN**: Codebase maintenance (`codev/protocols/maintain/protocol.md`)
@@ -41,7 +41,7 @@ Just like structuring a human team—clear roles, defined processes, explicit ha
41
41
 
42
42
  | Component | Purpose |
43
43
  |-----------|---------|
44
- | Protocols | Define HOW work happens (SPIDER, TICK, etc.) |
44
+ | Protocols | Define HOW work happens (SPIR, TICK, etc.) |
45
45
  | Roles | Define WHO does what (Architect, Builder, Consultant) |
46
46
  | Parallelism | Scale by running multiple builders simultaneously |
47
47
 
@@ -60,7 +60,7 @@ A **protocol** is a structured workflow that defines how work progresses from id
60
60
 
61
61
  | Protocol | Use For | Phases |
62
62
  |----------|---------|--------|
63
- | **SPIDER** | New features | Specify → Plan → Implement → Defend → Evaluate → Review |
63
+ | **SPIR** | New features | Specify → Plan → Implement → Review |
64
64
  | **TICK** | Amendments to existing specs | Task Identification → Coding → Kickout |
65
65
  | **MAINTAIN** | Codebase hygiene | Dead code removal, documentation sync |
66
66
  | **EXPERIMENT** | Research & prototyping | Hypothesis → Experiment → Conclude |
@@ -145,7 +145,7 @@ Multi-agent consultation. Used by both humans and agents—**mostly agents** dur
145
145
 
146
146
  ## Quick Reference
147
147
 
148
- ### SPIDER Checklist
148
+ ### SPIR Checklist
149
149
 
150
150
  ```
151
151
  [ ] Specify - Write spec in codev/specs/XXXX-name.md
@@ -142,6 +142,6 @@ To see high-priority work, search for `priority: high`.
142
142
  Before starting a project, verify its dependencies are at least `implemented`.
143
143
 
144
144
  ### Protocol Selection
145
- - **SPIDER**: Most projects (formal spec → plan → implement → review)
145
+ - **SPIR**: Most projects (formal spec → plan → implement → review)
146
146
  - **TICK**: Small, well-defined tasks (< 300 lines) or amendments to existing specs
147
147
  - **EXPERIMENT**: Research/prototyping before committing to a project
@@ -99,7 +99,7 @@ function renderInfoHeader() {
99
99
  <div class="projects-info">
100
100
  <h1 style="font-size: 20px; margin-bottom: 12px; color: var(--text-primary);">Agent Farm Dashboard</h1>
101
101
  <p>Coordinate AI builders working on your codebase. The left panel shows the Architect terminal – tell it what you want to build. <strong>Tabs</strong> shows open terminals (Architect, Builders, utility shells). <strong>Files</strong> lets you browse and open project files. <strong>Projects</strong> tracks work as it moves from conception to integration.</p>
102
- <p>Docs: <a href="#" onclick="openProjectFile('codev/resources/cheatsheet.md'); return false;">Cheatsheet</a> · <a href="#" onclick="openProjectFile('codev/resources/lifecycle.md'); return false;">Lifecycle</a> · <a href="#" onclick="openProjectFile('codev/resources/commands/overview.md'); return false;">CLI Reference</a> · <a href="#" onclick="openProjectFile('codev/protocols/spider/protocol.md'); return false;">SPIDER Protocol</a> · <a href="https://github.com/cluesmith/codev#readme" target="_blank">README</a> · <a href="https://discord.gg/mJ92DhDa6n" target="_blank">Discord</a></p>
102
+ <p>Docs: <a href="#" onclick="openProjectFile('codev/resources/cheatsheet.md'); return false;">Cheatsheet</a> · <a href="#" onclick="openProjectFile('codev/resources/lifecycle.md'); return false;">Lifecycle</a> · <a href="#" onclick="openProjectFile('codev/resources/commands/overview.md'); return false;">CLI Reference</a> · <a href="#" onclick="openProjectFile('codev/protocols/spir/protocol.md'); return false;">SPIR Protocol</a> · <a href="https://github.com/cluesmith/codev#readme" target="_blank">README</a> · <a href="https://discord.gg/mJ92DhDa6n" target="_blank">Discord</a></p>
103
103
  </div>
104
104
  `;
105
105
  }
@@ -502,6 +502,12 @@
502
502
  </div>
503
503
  </div>
504
504
 
505
+ <!-- PDF viewer mode -->
506
+ <div id="pdf-viewer" style="display: none; height: calc(100vh - 80px);">
507
+ <embed id="pdf-display" type="application/pdf" style="width: 100%; height: 100%; border: none;">
508
+ <div id="pdf-error" style="display: none; color: #ef4444; text-align: center; padding: 40px;"></div>
509
+ </div>
510
+
505
511
  <!-- Editor mode with line numbers -->
506
512
  <div id="editor-container">
507
513
  <div id="editor-line-numbers"></div>
@@ -691,6 +697,26 @@
691
697
  video.src = 'api/video?t=' + Date.now();
692
698
  }
693
699
 
700
+ // Initialize PDF viewer
701
+ function initPdf(fileSize) {
702
+ // Hide code view elements
703
+ document.getElementById('viewMode').style.display = 'none';
704
+ document.getElementById('editBtn').style.display = 'none';
705
+ document.getElementById('togglePreviewBtn').style.display = 'none';
706
+
707
+ // Update subtitle
708
+ const sizeStr = formatFileSize(fileSize);
709
+ document.querySelector('.subtitle').textContent = 'PDF viewer · ' + sizeStr;
710
+
711
+ // Show PDF viewer
712
+ const pdfViewer = document.getElementById('pdf-viewer');
713
+ pdfViewer.style.display = 'block';
714
+
715
+ // Load PDF via raw endpoint
716
+ const embed = document.getElementById('pdf-display');
717
+ embed.src = 'api/pdf?t=' + Date.now();
718
+ }
719
+
694
720
  // Update image info display (in both header and controls)
695
721
  function updateImageInfo(fileSize) {
696
722
  const sizeStr = formatFileSize(fileSize);