tycono 0.1.96-beta.1 → 0.1.96-beta.11
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.
- package/README.md +106 -35
- package/bin/tycono.ts +23 -1
- package/package.json +1 -1
- package/src/tui/api.ts +44 -4
- package/src/tui/app.tsx +201 -148
- package/src/tui/components/CommandMode.tsx +228 -0
- package/src/tui/components/OrgTree.tsx +3 -3
- package/src/tui/components/PanelMode.tsx +122 -0
- package/src/tui/components/SetupWizard.tsx +213 -0
- package/src/tui/components/{StreamPanel.tsx → StreamView.tsx} +53 -73
- package/src/tui/hooks/useApi.ts +4 -1
- package/src/tui/hooks/useCommand.ts +187 -0
- package/src/tui/components/CommandInput.tsx +0 -32
- package/src/tui/components/HelpOverlay.tsx +0 -51
- package/src/tui/components/SessionList.tsx +0 -74
- package/src/tui/components/WaveDialog.tsx +0 -56
- package/src/tui/hooks/useKeyboard.ts +0 -62
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src=".github/assets/
|
|
2
|
+
<img src=".github/assets/wave-org-propagation.png" alt="Tycono — CEO dispatches through org hierarchy in real time" width="720" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">tycono</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>
|
|
9
|
-
<sub>
|
|
8
|
+
<strong>Cursor gives you one AI developer. Tycono gives you an AI team.</strong><br>
|
|
9
|
+
<sub>Give one order. Watch your AI team plan, build, and learn together.</sub>
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
@@ -25,26 +25,76 @@
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Cursor, Lovable, Bolt — they all give you **one AI agent**. It helps, but you still drive everything.
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
**tycono** gives you an **AI team**. A CTO reviews architecture. Engineers write code. A PM breaks down tasks. QA catches bugs. You just give the order and watch them work.
|
|
31
|
+
|
|
32
|
+
One command. Your AI team is running.
|
|
31
33
|
|
|
32
34
|
```bash
|
|
33
35
|
npx tycono
|
|
34
36
|
```
|
|
35
37
|
|
|
38
|
+
## Core Pillars
|
|
39
|
+
|
|
40
|
+
### 1. CEO Supervisor — Org-chart orchestration
|
|
41
|
+
|
|
42
|
+
You give one order. The system dispatches through a real hierarchy.
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
dispatch → watch → relay → quality gate → re-dispatch (if needed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
CEO delegates to C-levels, C-levels dispatch to their teams. Authority is enforced — engineers can't make CEO decisions, PMs can't merge code. The org chart isn't decoration, it's the execution engine.
|
|
49
|
+
|
|
50
|
+
<p align="center">
|
|
51
|
+
<img src=".github/assets/wave-org-propagation.png" alt="Wave Center — org propagation with real-time status" width="640" />
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
### 2. Observability — See everything, intervene anytime
|
|
55
|
+
|
|
56
|
+
Your AI team isn't a black box. Watch every agent work in real time, inject directives mid-execution, and drill down to any level.
|
|
57
|
+
|
|
58
|
+
- **Wave Center** — Org-tree dispatch with real-time streaming
|
|
59
|
+
- **Activity Stream** — Every event logged (dispatches, tool calls, decisions)
|
|
60
|
+
- **CEO Directive** — Change direction while agents are running
|
|
61
|
+
- **Cost Tracking** — Per-role, per-model token breakdown
|
|
62
|
+
|
|
63
|
+
### 3. Isolation Infrastructure — Agents don't collide
|
|
64
|
+
|
|
65
|
+
Multiple agents working simultaneously without stepping on each other.
|
|
66
|
+
|
|
67
|
+
| Resource | Isolation | Status |
|
|
68
|
+
|----------|-----------|--------|
|
|
69
|
+
| **Code** | Git worktree per session | Designed |
|
|
70
|
+
| **Ports** | Dynamic port registry | ✅ Live |
|
|
71
|
+
| **Browser** | Separate daemon per session | ✅ Live |
|
|
72
|
+
| **Knowledge** | Shared reads, scoped writes | ✅ Live |
|
|
73
|
+
|
|
74
|
+
### 4. AKB (Pre-K / Post-K) — Knowledge that compounds
|
|
75
|
+
|
|
76
|
+
Every AI tool today: `Plan → Execute → Done`. Knowledge resets. Tycono adds what the industry doesn't have:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
Pre-K: Read existing knowledge → Plan grounded in what the company knows
|
|
80
|
+
Execute: Do the work
|
|
81
|
+
Post-K: Extract insights → Cross-link → Register in knowledge graph
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Session 50 is dramatically smarter than session 1. Your company learns.
|
|
85
|
+
|
|
36
86
|
## Why Tycono?
|
|
37
87
|
|
|
38
|
-
|
|
88
|
+
Same goal as Cursor, Lovable, Bolt — **get AI to do your work**. Different method.
|
|
39
89
|
|
|
40
|
-
| |
|
|
90
|
+
| | Cursor / Lovable / Bolt | Tycono |
|
|
41
91
|
|---|---|---|
|
|
42
|
-
| **
|
|
43
|
-
| **
|
|
44
|
-
| **
|
|
45
|
-
| **
|
|
46
|
-
| **Scale** | 1
|
|
47
|
-
| **Visibility** |
|
|
92
|
+
| **Agents** | 1 AI helps you | **AI team works for you** |
|
|
93
|
+
| **Your role** | Keep directing | **Give one order, watch** |
|
|
94
|
+
| **Knowledge** | Resets every session | **Compounds forever** |
|
|
95
|
+
| **Quality** | You review everything | **QA agent catches bugs** |
|
|
96
|
+
| **Scale** | 1 task at a time | **Parallel across roles** |
|
|
97
|
+
| **Visibility** | Editor / chat | **Real-time org tree** |
|
|
48
98
|
|
|
49
99
|
## Company-as-Code
|
|
50
100
|
|
|
@@ -80,33 +130,46 @@ A setup wizard guides you through:
|
|
|
80
130
|
- Node.js >= 18
|
|
81
131
|
- [Anthropic API key](https://console.anthropic.com/) or Claude Max subscription
|
|
82
132
|
|
|
83
|
-
##
|
|
133
|
+
## Interfaces
|
|
84
134
|
|
|
85
|
-
###
|
|
135
|
+
### Web Dashboard — Visual management
|
|
86
136
|
|
|
87
|
-
|
|
137
|
+
A browser-based dashboard for visual management. Org tree, Wave dispatch, Knowledge graph, Activity stream.
|
|
88
138
|
|
|
89
139
|
<p align="center">
|
|
90
|
-
<img src=".github/assets/hero-office.png" alt="
|
|
140
|
+
<img src=".github/assets/hero-office.png" alt="Web Dashboard" width="640" />
|
|
91
141
|
</p>
|
|
92
142
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
143
|
+
- **Wave Center** — selective org-tree dispatch with target checkboxes
|
|
144
|
+
- **Chats** — 1:1 conversations with any role, persistent sessions
|
|
145
|
+
- **Knowledge Base** — graph/tree/list views, cross-linked documents
|
|
146
|
+
- **Decisions** — CEO strategic decision log with full context
|
|
97
147
|
|
|
98
|
-
###
|
|
148
|
+
### TUI — Terminal-native operations *(coming soon)*
|
|
99
149
|
|
|
100
|
-
|
|
150
|
+
For developers who live in the terminal. A k9s/lazygit-style multi-panel TUI built with [Ink](https://github.com/vadimdemedes/ink).
|
|
101
151
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
152
|
+
```
|
|
153
|
+
┌──────────────────────────────────────────────────┐
|
|
154
|
+
│ TYCONO v0.2 │ Wave #37 running │ 3 active │$2.1│
|
|
155
|
+
├──────────────┬───────────────────────────────────┤
|
|
156
|
+
│ [Org Tree] │ [Real-time Stream] │
|
|
157
|
+
│ CEO │ CTO: "Reviewing architecture..." │
|
|
158
|
+
│ ├ CTO ● │ → dispatch → Engineer │
|
|
159
|
+
│ │ ├ ENG ○ │ CBO: "Market analysis done" ✓ │
|
|
160
|
+
│ │ └ QA ○ │ │
|
|
161
|
+
│ └ CBO ● │ │
|
|
162
|
+
├──────────────┴───────────────────────────────────┤
|
|
163
|
+
│ > wave "Write the Q1 strategy report" │
|
|
164
|
+
└──────────────────────────────────────────────────┘
|
|
165
|
+
```
|
|
105
166
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
167
|
+
```bash
|
|
168
|
+
npx tycono --tui # Terminal mode (coming soon)
|
|
169
|
+
npx tycono # Web dashboard (current)
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Same API server, same engine — just a different frontend. Use what fits your workflow.
|
|
110
173
|
|
|
111
174
|
## Key Features
|
|
112
175
|
|
|
@@ -130,10 +193,6 @@ Every task produces knowledge. Cross-linked Markdown documents that grow with ev
|
|
|
130
193
|
|
|
131
194
|
Each role has scoped authority defined in `role.yaml`. Engineers can't make CEO decisions. PMs can't merge code. The org chart isn't decoration — it's enforcement.
|
|
132
195
|
|
|
133
|
-
### Level System
|
|
134
|
-
|
|
135
|
-
Roles gain XP from completed work. Level up unlocks accessories and reflects experience. Your CTO at Lv.14 has seen things your new intern hasn't.
|
|
136
|
-
|
|
137
196
|
### Local-First, BYOK
|
|
138
197
|
|
|
139
198
|
Everything runs on your machine. Your data never leaves. Bring your own Anthropic API key — no middleman, no telemetry, no tracking.
|
|
@@ -181,7 +240,8 @@ your-company/
|
|
|
181
240
|
## CLI Usage
|
|
182
241
|
|
|
183
242
|
```bash
|
|
184
|
-
npx tycono # Start server +
|
|
243
|
+
npx tycono # Start server + web dashboard
|
|
244
|
+
npx tycono --tui # Terminal UI (coming soon)
|
|
185
245
|
npx tycono --help # Show help
|
|
186
246
|
npx tycono --version # Show version
|
|
187
247
|
```
|
|
@@ -194,6 +254,17 @@ npx tycono --version # Show version
|
|
|
194
254
|
| `PORT` | Server port | auto-detect |
|
|
195
255
|
| `COMPANY_ROOT` | Company directory | current directory |
|
|
196
256
|
|
|
257
|
+
## Roadmap
|
|
258
|
+
|
|
259
|
+
- [x] Web dashboard (Office + Pro views)
|
|
260
|
+
- [x] CEO Wave dispatch with org-tree targeting
|
|
261
|
+
- [x] AKB — Pre-K / Post-K knowledge loop
|
|
262
|
+
- [x] Port Registry for multi-agent isolation
|
|
263
|
+
- [ ] **TUI mode** — terminal-native multi-panel interface *(in progress)*
|
|
264
|
+
- [ ] Git worktree isolation per agent session
|
|
265
|
+
- [ ] **Desktop app** (.dmg / .exe) — background execution, notifications, no API key setup needed
|
|
266
|
+
- [ ] Multi-LLM support (OpenAI, local models)
|
|
267
|
+
|
|
197
268
|
## Built with Tycono
|
|
198
269
|
|
|
199
270
|
This isn't a demo. Tycono's own landing page, documentation, and knowledge base were built by AI agents running inside Tycono. The PM wrote the PRD. The CTO reviewed architecture. The Designer created UX specs. The Engineer implemented every section.
|
package/bin/tycono.ts
CHANGED
|
@@ -213,6 +213,27 @@ async function startServerForTui(): Promise<void> {
|
|
|
213
213
|
const port = process.env.PORT ? Number(process.env.PORT) : await findFreePort();
|
|
214
214
|
process.env.PORT = String(port);
|
|
215
215
|
|
|
216
|
+
// Suppress ALL server output BEFORE creating server — hijack process streams
|
|
217
|
+
const logFile = path.resolve(process.env.COMPANY_ROOT || process.cwd(), '.tycono', 'server.log');
|
|
218
|
+
try { fs.mkdirSync(path.dirname(logFile), { recursive: true }); } catch {}
|
|
219
|
+
const logFd = fs.openSync(logFile, 'a');
|
|
220
|
+
const logStream = fs.createWriteStream(logFile, { fd: logFd });
|
|
221
|
+
const origStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
222
|
+
const origStderrWrite = process.stderr.write.bind(process.stderr);
|
|
223
|
+
// Intercept all stdout/stderr — only allow Ink's output (ANSI escape sequences)
|
|
224
|
+
const isInkOutput = (s: string) => s.includes('\x1b[') || s.includes('\x1b(');
|
|
225
|
+
process.stdout.write = ((chunk: any, ...args: any[]) => {
|
|
226
|
+
const str = typeof chunk === 'string' ? chunk : chunk.toString();
|
|
227
|
+
if (isInkOutput(str)) return origStdoutWrite(chunk, ...args);
|
|
228
|
+
logStream.write(str);
|
|
229
|
+
return true;
|
|
230
|
+
}) as any;
|
|
231
|
+
process.stderr.write = ((chunk: any, ...args: any[]) => {
|
|
232
|
+
logStream.write(typeof chunk === 'string' ? chunk : chunk.toString());
|
|
233
|
+
return true;
|
|
234
|
+
}) as any;
|
|
235
|
+
const origLog = (...args: unknown[]) => origStdoutWrite(args.join(' ') + '\n');
|
|
236
|
+
|
|
216
237
|
const { createHttpServer } = await import('../src/api/src/create-server.js');
|
|
217
238
|
const server = createHttpServer();
|
|
218
239
|
|
|
@@ -222,7 +243,8 @@ async function startServerForTui(): Promise<void> {
|
|
|
222
243
|
server.listen(port, host, () => resolve());
|
|
223
244
|
});
|
|
224
245
|
|
|
225
|
-
|
|
246
|
+
origLog(` API server started on port ${port}`);
|
|
247
|
+
origLog(` Logs: ${logFile}`);
|
|
226
248
|
|
|
227
249
|
// Graceful shutdown
|
|
228
250
|
const shutdown = () => {
|
package/package.json
CHANGED
package/src/tui/api.ts
CHANGED
|
@@ -16,7 +16,7 @@ export function getBaseUrl(): string {
|
|
|
16
16
|
|
|
17
17
|
/* ─── HTTP helpers ─── */
|
|
18
18
|
|
|
19
|
-
async function fetchJson<T>(path: string, options?: { method?: string; body?: unknown }): Promise<T> {
|
|
19
|
+
export async function fetchJson<T>(path: string, options?: { method?: string; body?: unknown }): Promise<T> {
|
|
20
20
|
const url = `${BASE_URL}${path}`;
|
|
21
21
|
const method = options?.method ?? 'GET';
|
|
22
22
|
const bodyStr = options?.body ? JSON.stringify(options.body) : undefined;
|
|
@@ -39,7 +39,12 @@ async function fetchJson<T>(path: string, options?: { method?: string; body?: un
|
|
|
39
39
|
res.on('data', (chunk) => { data += chunk; });
|
|
40
40
|
res.on('end', () => {
|
|
41
41
|
try {
|
|
42
|
-
|
|
42
|
+
const parsed = JSON.parse(data);
|
|
43
|
+
if (res.statusCode && res.statusCode >= 400) {
|
|
44
|
+
reject(new Error(parsed.error ?? `HTTP ${res.statusCode} from ${path}`));
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
resolve(parsed as T);
|
|
43
48
|
} catch {
|
|
44
49
|
reject(new Error(`Invalid JSON from ${path}: ${data.slice(0, 200)}`));
|
|
45
50
|
}
|
|
@@ -150,6 +155,38 @@ export async function fetchActiveWaves(): Promise<{ waves: Array<{ waveId: strin
|
|
|
150
155
|
return fetchJson('/api/waves/active');
|
|
151
156
|
}
|
|
152
157
|
|
|
158
|
+
/* ─── Setup API calls ─── */
|
|
159
|
+
|
|
160
|
+
export interface TeamTemplate {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
description: string;
|
|
164
|
+
roles: Array<string | { id: string; name: string; level?: string }>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface ScaffoldResult {
|
|
168
|
+
path: string;
|
|
169
|
+
rolesCreated: number;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export async function fetchSetupTeams(): Promise<TeamTemplate[]> {
|
|
173
|
+
return fetchJson<TeamTemplate[]>('/api/setup/teams');
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export async function postSetupScaffold(companyName: string, teamId: string): Promise<ScaffoldResult> {
|
|
177
|
+
return fetchJson<ScaffoldResult>('/api/setup/scaffold', {
|
|
178
|
+
method: 'POST',
|
|
179
|
+
body: { companyName, teamId },
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export async function postSetupCodeRoot(codeRoot: string): Promise<{ ok: boolean }> {
|
|
184
|
+
return fetchJson<{ ok: boolean }>('/api/setup/code-root', {
|
|
185
|
+
method: 'POST',
|
|
186
|
+
body: { codeRoot },
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
153
190
|
/* ─── SSE stream ─── */
|
|
154
191
|
|
|
155
192
|
export interface SSEConnection {
|
|
@@ -195,9 +232,12 @@ export function subscribeToWaveStream(
|
|
|
195
232
|
}
|
|
196
233
|
}
|
|
197
234
|
|
|
198
|
-
if (eventType === 'activity' && data) {
|
|
235
|
+
if ((eventType === 'activity' || eventType === 'wave:event') && data) {
|
|
199
236
|
try {
|
|
200
|
-
|
|
237
|
+
const parsed = JSON.parse(data);
|
|
238
|
+
// wave:event wraps the actual event in .event field
|
|
239
|
+
const evt = parsed.event ?? parsed;
|
|
240
|
+
onEvent(evt as SSEEvent);
|
|
201
241
|
} catch { /* ignore parse errors */ }
|
|
202
242
|
} else if (eventType === 'stream:end' && data) {
|
|
203
243
|
try {
|