quadwork 0.1.0

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 (105) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +135 -0
  3. package/bin/quadwork.js +686 -0
  4. package/out/404.html +1 -0
  5. package/out/__next.__PAGE__.txt +6 -0
  6. package/out/__next._full.txt +17 -0
  7. package/out/__next._head.txt +6 -0
  8. package/out/__next._index.txt +6 -0
  9. package/out/__next._tree.txt +3 -0
  10. package/out/_next/static/chunks/0.57eg262w~qg.js +1 -0
  11. package/out/_next/static/chunks/0.dzh0qf9zq1l.js +2 -0
  12. package/out/_next/static/chunks/03hi.hdp6l230.js +20 -0
  13. package/out/_next/static/chunks/03v5eoc-wic6o.js +1 -0
  14. package/out/_next/static/chunks/03yov._jigv17.js +1 -0
  15. package/out/_next/static/chunks/03~yq9q893hmn.js +1 -0
  16. package/out/_next/static/chunks/08fgie1bcjynm.js +1 -0
  17. package/out/_next/static/chunks/0excsn2a_5qsb.js +4 -0
  18. package/out/_next/static/chunks/0iqqouh_3i5y5.js +13 -0
  19. package/out/_next/static/chunks/0jsosmtclw5n5.js +4 -0
  20. package/out/_next/static/chunks/0ox7p_szjhn69.js +1 -0
  21. package/out/_next/static/chunks/0r7t_sj_sejq9.js +1 -0
  22. package/out/_next/static/chunks/13uu.sohs74zg.js +31 -0
  23. package/out/_next/static/chunks/15kwal..m9r49.css +2 -0
  24. package/out/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
  25. package/out/_next/static/chunks/17sk4qv6_d0co.js +1 -0
  26. package/out/_next/static/chunks/turbopack-06pqx~0d8czn_.js +1 -0
  27. package/out/_next/static/eq3ebKZWXVJquNrlYMOZR/_buildManifest.js +15 -0
  28. package/out/_next/static/eq3ebKZWXVJquNrlYMOZR/_clientMiddlewareManifest.js +1 -0
  29. package/out/_next/static/eq3ebKZWXVJquNrlYMOZR/_ssgManifest.js +1 -0
  30. package/out/_next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
  31. package/out/_next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
  32. package/out/_next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
  33. package/out/_next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
  34. package/out/_not-found/__next._full.txt +17 -0
  35. package/out/_not-found/__next._head.txt +6 -0
  36. package/out/_not-found/__next._index.txt +6 -0
  37. package/out/_not-found/__next._not-found.__PAGE__.txt +5 -0
  38. package/out/_not-found/__next._not-found.txt +5 -0
  39. package/out/_not-found/__next._tree.txt +2 -0
  40. package/out/_not-found.html +1 -0
  41. package/out/_not-found.txt +17 -0
  42. package/out/favicon.ico +0 -0
  43. package/out/file.svg +1 -0
  44. package/out/globe.svg +1 -0
  45. package/out/index.html +1 -0
  46. package/out/index.txt +17 -0
  47. package/out/next.svg +1 -0
  48. package/out/project/_/__next._full.txt +20 -0
  49. package/out/project/_/__next._head.txt +6 -0
  50. package/out/project/_/__next._index.txt +6 -0
  51. package/out/project/_/__next._tree.txt +4 -0
  52. package/out/project/_/__next.project.$d$id.__PAGE__.txt +7 -0
  53. package/out/project/_/__next.project.$d$id.txt +5 -0
  54. package/out/project/_/__next.project.txt +5 -0
  55. package/out/project/_/memory/__next._full.txt +19 -0
  56. package/out/project/_/memory/__next._head.txt +6 -0
  57. package/out/project/_/memory/__next._index.txt +6 -0
  58. package/out/project/_/memory/__next._tree.txt +3 -0
  59. package/out/project/_/memory/__next.project.$d$id.memory.__PAGE__.txt +6 -0
  60. package/out/project/_/memory/__next.project.$d$id.memory.txt +5 -0
  61. package/out/project/_/memory/__next.project.$d$id.txt +5 -0
  62. package/out/project/_/memory/__next.project.txt +5 -0
  63. package/out/project/_/memory.html +1 -0
  64. package/out/project/_/memory.txt +19 -0
  65. package/out/project/_/queue/__next._full.txt +19 -0
  66. package/out/project/_/queue/__next._head.txt +6 -0
  67. package/out/project/_/queue/__next._index.txt +6 -0
  68. package/out/project/_/queue/__next._tree.txt +3 -0
  69. package/out/project/_/queue/__next.project.$d$id.queue.__PAGE__.txt +6 -0
  70. package/out/project/_/queue/__next.project.$d$id.queue.txt +5 -0
  71. package/out/project/_/queue/__next.project.$d$id.txt +5 -0
  72. package/out/project/_/queue/__next.project.txt +5 -0
  73. package/out/project/_/queue.html +1 -0
  74. package/out/project/_/queue.txt +19 -0
  75. package/out/project/_.html +1 -0
  76. package/out/project/_.txt +20 -0
  77. package/out/settings/__next._full.txt +19 -0
  78. package/out/settings/__next._head.txt +6 -0
  79. package/out/settings/__next._index.txt +6 -0
  80. package/out/settings/__next._tree.txt +3 -0
  81. package/out/settings/__next.settings.__PAGE__.txt +6 -0
  82. package/out/settings/__next.settings.txt +5 -0
  83. package/out/settings.html +1 -0
  84. package/out/settings.txt +19 -0
  85. package/out/setup/__next._full.txt +19 -0
  86. package/out/setup/__next._head.txt +6 -0
  87. package/out/setup/__next._index.txt +6 -0
  88. package/out/setup/__next._tree.txt +3 -0
  89. package/out/setup/__next.setup.__PAGE__.txt +6 -0
  90. package/out/setup/__next.setup.txt +5 -0
  91. package/out/setup.html +1 -0
  92. package/out/setup.txt +19 -0
  93. package/out/vercel.svg +1 -0
  94. package/out/window.svg +1 -0
  95. package/package.json +61 -0
  96. package/server/config.js +63 -0
  97. package/server/index.js +476 -0
  98. package/server/routes.js +889 -0
  99. package/templates/CLAUDE.md +57 -0
  100. package/templates/config.toml +46 -0
  101. package/templates/seeds/t1.AGENTS.md +55 -0
  102. package/templates/seeds/t2a.AGENTS.md +96 -0
  103. package/templates/seeds/t2b.AGENTS.md +96 -0
  104. package/templates/seeds/t3.AGENTS.md +80 -0
  105. package/templates/wrapper.py +70 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 realproject7
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,135 @@
1
+ # QuadWork
2
+
3
+ A unified dashboard for multi-agent coding teams. Four AI agents (T1 owner, T2a/T2b reviewers, T3 builder) collaborate through terminals, chat, GitHub integration, and shared memory — all served from a single local web view.
4
+
5
+ ## Dashboard
6
+
7
+ ```
8
+ +--------+----------------------------+----------------------------+
9
+ | | T1 Terminal | T2a Terminal |
10
+ | Side- | (Owner) | (Reviewer) |
11
+ | bar +----------------------------+----------------------------+
12
+ | | T3 Terminal | T2b Terminal |
13
+ | [Home] | (Builder) | (Reviewer) |
14
+ | [Proj] +----------------------------+----------------------------+
15
+ | [+] | Agent Chat (AgentChattr) | GitHub (Issues + PRs) |
16
+ | [Set] | | |
17
+ +--------+----------------------------+----------------------------+
18
+ ```
19
+
20
+ ## Features
21
+
22
+ - **Terminal panels** — Live xterm.js terminals for each agent with PTY sessions
23
+ - **Agent chat** — AgentChattr integration for real-time agent coordination
24
+ - **GitHub board** — Issues, PRs, and review status at a glance
25
+ - **Task queue** — Build and dispatch work queues to T1 with one click
26
+ - **Shared memory** — Memory cards, butler scripts, and cross-agent context
27
+ - **Telegram bridge** — Optional Telegram bot integration for mobile notifications
28
+ - **Single-port server** — Everything on `http://127.0.0.1:8400` (API + WebSocket + UI)
29
+ - **Backend indicator** — Clear offline/online status in the sidebar
30
+
31
+ ## Prerequisites
32
+
33
+ - **Node.js 20+** (with C++ toolchain for native modules)
34
+ - **Python 3.10+** (for AgentChattr)
35
+ - **GitHub CLI** (`gh`) — [install](https://cli.github.com)
36
+ - **Claude Code** or **Codex CLI** — at least one AI agent CLI
37
+
38
+ ## Quick Start
39
+
40
+ ```bash
41
+ npx quadwork init # Interactive setup: repo, worktrees, agents, config
42
+ npx quadwork start # Launches dashboard at http://127.0.0.1:8400
43
+ npx quadwork stop # Stops all processes
44
+ ```
45
+
46
+ ## Install from Source
47
+
48
+ ```bash
49
+ git clone https://github.com/realproject7/quadwork.git
50
+ cd quadwork
51
+ npm install
52
+ npm run build # Static frontend export to out/
53
+ node server/ # Start server at http://127.0.0.1:8400
54
+ ```
55
+
56
+ For development (hot reload):
57
+
58
+ ```bash
59
+ npm run dev # Next.js dev server on :3000
60
+ npm run server # Express backend on :8400 (run in separate terminal)
61
+ ```
62
+
63
+ ## Commands
64
+
65
+ | Command | Description |
66
+ |---------|-------------|
67
+ | `quadwork init` | Interactive setup wizard — repo, worktrees, agent config |
68
+ | `quadwork start` | Start the server (frontend must be pre-built) |
69
+ | `quadwork stop` | Stop server, AgentChattr, and Telegram bridge |
70
+ | `quadwork add-project` | Add another project to an existing setup |
71
+
72
+ ## Configuration
73
+
74
+ Config is stored at `~/.quadwork/config.json`:
75
+
76
+ ```json
77
+ {
78
+ "port": 8400,
79
+ "agentchattr_url": "http://127.0.0.1:8300",
80
+ "projects": [
81
+ {
82
+ "id": "my-project",
83
+ "name": "My Project",
84
+ "repo": "owner/repo",
85
+ "working_dir": "/path/to/project",
86
+ "agents": {
87
+ "t1": { "cwd": "/path/to/project-t1", "command": "claude" },
88
+ "t2a": { "cwd": "/path/to/project-t2a", "command": "claude" },
89
+ "t2b": { "cwd": "/path/to/project-t2b", "command": "claude" },
90
+ "t3": { "cwd": "/path/to/project-t3", "command": "claude" }
91
+ }
92
+ }
93
+ ]
94
+ }
95
+ ```
96
+
97
+ Each agent runs in its own git worktree (sibling directories).
98
+
99
+ ## Optional Add-ons
100
+
101
+ ### AgentChattr
102
+
103
+ Shared chat server for agent coordination. Install separately:
104
+
105
+ ```bash
106
+ pip install agentchattr
107
+ ```
108
+
109
+ The setup wizard configures AgentChattr automatically. See [agentchattr](https://github.com/realproject7/agentchattr) for details.
110
+
111
+ ### Telegram Bridge
112
+
113
+ Forward agent chat to a Telegram group. Configure in Settings or during `quadwork init`. Requires a Telegram bot token and chat ID.
114
+
115
+ ### Shared Memory
116
+
117
+ Cross-agent memory system with memory cards and butler scripts. Set up during `quadwork init` or configure paths in Settings.
118
+
119
+ ## Architecture
120
+
121
+ QuadWork runs a single Express server that serves:
122
+
123
+ - **Static frontend** — Pre-built Next.js export (`out/`)
124
+ - **REST API** — Agent lifecycle, config, GitHub, chat proxy, memory, triggers
125
+ - **WebSocket** — Terminal PTY sessions at `/ws/terminal`
126
+
127
+ All on one port (`127.0.0.1:8400`), no CORS needed.
128
+
129
+ ## Design
130
+
131
+ See [docs/PROPOSAL.md](docs/PROPOSAL.md) for the full design specification.
132
+
133
+ ## License
134
+
135
+ MIT