@cluesmith/codev 2.0.0-rc.5 → 2.0.0-rc.51
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/bin/af.js +2 -2
- package/bin/consult.js +1 -1
- package/bin/porch.js +6 -35
- package/dashboard/dist/assets/index-BIHeqvy0.css +32 -0
- package/dashboard/dist/assets/index-VvUWRPNP.js +120 -0
- package/dashboard/dist/assets/index-VvUWRPNP.js.map +1 -0
- package/dashboard/dist/index.html +14 -0
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +93 -64
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/architect.d.ts.map +1 -1
- package/dist/agent-farm/commands/architect.js +13 -6
- package/dist/agent-farm/commands/architect.js.map +1 -1
- package/dist/agent-farm/commands/attach.d.ts +13 -0
- package/dist/agent-farm/commands/attach.d.ts.map +1 -0
- package/dist/agent-farm/commands/attach.js +179 -0
- package/dist/agent-farm/commands/attach.js.map +1 -0
- package/dist/agent-farm/commands/cleanup.d.ts.map +1 -1
- package/dist/agent-farm/commands/cleanup.js +30 -3
- package/dist/agent-farm/commands/cleanup.js.map +1 -1
- package/dist/agent-farm/commands/consult.js +1 -1
- package/dist/agent-farm/commands/consult.js.map +1 -1
- package/dist/agent-farm/commands/index.d.ts +2 -2
- package/dist/agent-farm/commands/index.d.ts.map +1 -1
- package/dist/agent-farm/commands/index.js +2 -2
- package/dist/agent-farm/commands/index.js.map +1 -1
- package/dist/agent-farm/commands/{util.d.ts → shell.d.ts} +5 -5
- package/dist/agent-farm/commands/shell.d.ts.map +1 -0
- package/dist/agent-farm/commands/{util.js → shell.js} +23 -36
- package/dist/agent-farm/commands/shell.js.map +1 -0
- package/dist/agent-farm/commands/spawn.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn.js +455 -217
- package/dist/agent-farm/commands/spawn.js.map +1 -1
- package/dist/agent-farm/commands/start.d.ts +3 -0
- package/dist/agent-farm/commands/start.d.ts.map +1 -1
- package/dist/agent-farm/commands/start.js +92 -79
- package/dist/agent-farm/commands/start.js.map +1 -1
- package/dist/agent-farm/commands/status.d.ts +2 -0
- package/dist/agent-farm/commands/status.d.ts.map +1 -1
- package/dist/agent-farm/commands/status.js +56 -1
- package/dist/agent-farm/commands/status.js.map +1 -1
- package/dist/agent-farm/commands/stop.d.ts +6 -0
- package/dist/agent-farm/commands/stop.d.ts.map +1 -1
- package/dist/agent-farm/commands/stop.js +115 -11
- package/dist/agent-farm/commands/stop.js.map +1 -1
- package/dist/agent-farm/commands/tower.d.ts +9 -0
- package/dist/agent-farm/commands/tower.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower.js +59 -19
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/db/index.d.ts.map +1 -1
- package/dist/agent-farm/db/index.js +59 -0
- package/dist/agent-farm/db/index.js.map +1 -1
- package/dist/agent-farm/db/schema.d.ts +2 -2
- package/dist/agent-farm/db/schema.d.ts.map +1 -1
- package/dist/agent-farm/db/schema.js +8 -3
- package/dist/agent-farm/db/schema.js.map +1 -1
- package/dist/agent-farm/db/types.d.ts +3 -0
- package/dist/agent-farm/db/types.d.ts.map +1 -1
- package/dist/agent-farm/db/types.js +3 -0
- package/dist/agent-farm/db/types.js.map +1 -1
- package/dist/agent-farm/hq-connector.d.ts +2 -2
- package/dist/agent-farm/hq-connector.js +2 -2
- package/dist/agent-farm/lib/tower-client.d.ts +157 -0
- package/dist/agent-farm/lib/tower-client.d.ts.map +1 -0
- package/dist/agent-farm/lib/tower-client.js +223 -0
- package/dist/agent-farm/lib/tower-client.js.map +1 -0
- package/dist/agent-farm/servers/tower-server.js +1155 -99
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/state.d.ts +4 -10
- package/dist/agent-farm/state.d.ts.map +1 -1
- package/dist/agent-farm/state.js +30 -31
- package/dist/agent-farm/state.js.map +1 -1
- package/dist/agent-farm/types.d.ts +48 -0
- package/dist/agent-farm/types.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.d.ts.map +1 -1
- package/dist/agent-farm/utils/config.js +12 -11
- package/dist/agent-farm/utils/config.js.map +1 -1
- package/dist/agent-farm/utils/deps.d.ts.map +1 -1
- package/dist/agent-farm/utils/deps.js +0 -16
- package/dist/agent-farm/utils/deps.js.map +1 -1
- package/dist/agent-farm/utils/notifications.d.ts +30 -0
- package/dist/agent-farm/utils/notifications.d.ts.map +1 -0
- package/dist/agent-farm/utils/notifications.js +121 -0
- package/dist/agent-farm/utils/notifications.js.map +1 -0
- package/dist/agent-farm/utils/server-utils.d.ts +2 -1
- package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
- package/dist/agent-farm/utils/server-utils.js +11 -1
- package/dist/agent-farm/utils/server-utils.js.map +1 -1
- package/dist/agent-farm/utils/shell.d.ts +9 -22
- package/dist/agent-farm/utils/shell.d.ts.map +1 -1
- package/dist/agent-farm/utils/shell.js +34 -34
- package/dist/agent-farm/utils/shell.js.map +1 -1
- package/dist/agent-farm/utils/terminal-ports.d.ts +1 -1
- package/dist/agent-farm/utils/terminal-ports.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -54
- package/dist/cli.js.map +1 -1
- package/dist/commands/adopt.d.ts.map +1 -1
- package/dist/commands/adopt.js +39 -4
- package/dist/commands/adopt.js.map +1 -1
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +63 -3
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +0 -15
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +31 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/porch/build-counter.d.ts +5 -0
- package/dist/commands/porch/build-counter.d.ts.map +1 -0
- package/dist/commands/porch/build-counter.js +5 -0
- package/dist/commands/porch/build-counter.js.map +1 -0
- package/dist/commands/porch/checks.d.ts +16 -29
- package/dist/commands/porch/checks.d.ts.map +1 -1
- package/dist/commands/porch/checks.js +90 -144
- package/dist/commands/porch/checks.js.map +1 -1
- package/dist/commands/porch/claude.d.ts +27 -0
- package/dist/commands/porch/claude.d.ts.map +1 -0
- package/dist/commands/porch/claude.js +107 -0
- package/dist/commands/porch/claude.js.map +1 -0
- package/dist/commands/porch/index.d.ts +21 -43
- package/dist/commands/porch/index.d.ts.map +1 -1
- package/dist/commands/porch/index.js +456 -1015
- package/dist/commands/porch/index.js.map +1 -1
- package/dist/commands/porch/plan.d.ts +70 -0
- package/dist/commands/porch/plan.d.ts.map +1 -0
- package/dist/commands/porch/plan.js +190 -0
- package/dist/commands/porch/plan.js.map +1 -0
- package/dist/commands/porch/prompts.d.ts +19 -0
- package/dist/commands/porch/prompts.d.ts.map +1 -0
- package/dist/commands/porch/prompts.js +250 -0
- package/dist/commands/porch/prompts.js.map +1 -0
- package/dist/commands/porch/protocol.d.ts +59 -0
- package/dist/commands/porch/protocol.d.ts.map +1 -0
- package/dist/commands/porch/protocol.js +260 -0
- package/dist/commands/porch/protocol.js.map +1 -0
- package/dist/commands/porch/run.d.ts +40 -0
- package/dist/commands/porch/run.d.ts.map +1 -0
- package/dist/commands/porch/run.js +893 -0
- package/dist/commands/porch/run.js.map +1 -0
- package/dist/commands/porch/state.d.ts +23 -112
- package/dist/commands/porch/state.d.ts.map +1 -1
- package/dist/commands/porch/state.js +81 -699
- package/dist/commands/porch/state.js.map +1 -1
- package/dist/commands/porch/types.d.ts +72 -173
- package/dist/commands/porch/types.d.ts.map +1 -1
- package/dist/commands/porch/types.js +2 -1
- package/dist/commands/porch/types.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +22 -0
- package/dist/commands/update.js.map +1 -1
- package/dist/lib/scaffold.d.ts +24 -0
- package/dist/lib/scaffold.d.ts.map +1 -1
- package/dist/lib/scaffold.js +78 -0
- package/dist/lib/scaffold.js.map +1 -1
- package/dist/terminal/index.d.ts +8 -0
- package/dist/terminal/index.d.ts.map +1 -0
- package/dist/terminal/index.js +5 -0
- package/dist/terminal/index.js.map +1 -0
- package/dist/terminal/pty-manager.d.ts +60 -0
- package/dist/terminal/pty-manager.d.ts.map +1 -0
- package/dist/terminal/pty-manager.js +334 -0
- package/dist/terminal/pty-manager.js.map +1 -0
- package/dist/terminal/pty-session.d.ts +79 -0
- package/dist/terminal/pty-session.d.ts.map +1 -0
- package/dist/terminal/pty-session.js +215 -0
- package/dist/terminal/pty-session.js.map +1 -0
- package/dist/terminal/ring-buffer.d.ts +27 -0
- package/dist/terminal/ring-buffer.d.ts.map +1 -0
- package/dist/terminal/ring-buffer.js +74 -0
- package/dist/terminal/ring-buffer.js.map +1 -0
- package/dist/terminal/ws-protocol.d.ts +27 -0
- package/dist/terminal/ws-protocol.d.ts.map +1 -0
- package/dist/terminal/ws-protocol.js +44 -0
- package/dist/terminal/ws-protocol.js.map +1 -0
- package/package.json +18 -3
- package/skeleton/DEPENDENCIES.md +3 -29
- package/skeleton/builders.md +1 -1
- package/skeleton/protocol-schema.json +282 -0
- package/skeleton/protocols/bugfix/builder-prompt.md +49 -0
- package/skeleton/protocols/bugfix/protocol.json +14 -2
- package/skeleton/protocols/experiment/builder-prompt.md +47 -0
- package/skeleton/protocols/experiment/protocol.json +101 -0
- package/skeleton/protocols/maintain/builder-prompt.md +41 -0
- package/skeleton/protocols/maintain/prompts/audit.md +111 -0
- package/skeleton/protocols/maintain/prompts/clean.md +91 -0
- package/skeleton/protocols/maintain/prompts/sync.md +113 -0
- package/skeleton/protocols/maintain/prompts/verify.md +110 -0
- package/skeleton/protocols/maintain/protocol.json +141 -0
- package/skeleton/protocols/maintain/protocol.md +13 -7
- package/skeleton/protocols/protocol-schema.json +53 -0
- package/skeleton/protocols/spider/builder-prompt.md +53 -0
- package/skeleton/protocols/spider/prompts/implement.md +109 -50
- package/skeleton/protocols/spider/prompts/specify.md +29 -4
- package/skeleton/protocols/spider/protocol.json +96 -154
- package/skeleton/protocols/spider/protocol.md +26 -16
- package/skeleton/protocols/spider/templates/plan.md +14 -0
- package/skeleton/protocols/tick/builder-prompt.md +51 -0
- package/skeleton/protocols/tick/protocol.json +7 -2
- package/skeleton/resources/commands/agent-farm.md +25 -43
- package/skeleton/resources/commands/overview.md +6 -16
- package/skeleton/resources/workflow-reference.md +2 -2
- package/skeleton/roles/architect.md +152 -315
- package/skeleton/roles/builder.md +109 -218
- package/skeleton/templates/AGENTS.md +1 -1
- package/skeleton/templates/CLAUDE.md +1 -1
- package/skeleton/templates/cheatsheet.md +4 -2
- package/templates/dashboard/index.html +17 -43
- package/templates/dashboard/js/dialogs.js +7 -7
- package/templates/dashboard/js/files.js +2 -2
- package/templates/dashboard/js/main.js +3 -3
- package/templates/dashboard/js/projects.js +3 -3
- package/templates/dashboard/js/tabs.js +1 -1
- package/templates/dashboard/js/utils.js +22 -87
- package/templates/tower.html +542 -27
- package/dist/agent-farm/commands/kickoff.d.ts +0 -19
- package/dist/agent-farm/commands/kickoff.d.ts.map +0 -1
- package/dist/agent-farm/commands/kickoff.js +0 -331
- package/dist/agent-farm/commands/kickoff.js.map +0 -1
- package/dist/agent-farm/commands/rename.d.ts +0 -13
- package/dist/agent-farm/commands/rename.d.ts.map +0 -1
- package/dist/agent-farm/commands/rename.js +0 -33
- package/dist/agent-farm/commands/rename.js.map +0 -1
- package/dist/agent-farm/commands/tutorial.d.ts +0 -10
- package/dist/agent-farm/commands/tutorial.d.ts.map +0 -1
- package/dist/agent-farm/commands/tutorial.js +0 -49
- package/dist/agent-farm/commands/tutorial.js.map +0 -1
- package/dist/agent-farm/commands/util.d.ts.map +0 -1
- package/dist/agent-farm/commands/util.js.map +0 -1
- package/dist/agent-farm/servers/dashboard-server.d.ts +0 -7
- package/dist/agent-farm/servers/dashboard-server.d.ts.map +0 -1
- package/dist/agent-farm/servers/dashboard-server.js +0 -1872
- package/dist/agent-farm/servers/dashboard-server.js.map +0 -1
- package/dist/agent-farm/tutorial/index.d.ts +0 -8
- package/dist/agent-farm/tutorial/index.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/index.js +0 -8
- package/dist/agent-farm/tutorial/index.js.map +0 -1
- package/dist/agent-farm/tutorial/prompts.d.ts +0 -57
- package/dist/agent-farm/tutorial/prompts.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/prompts.js +0 -147
- package/dist/agent-farm/tutorial/prompts.js.map +0 -1
- package/dist/agent-farm/tutorial/runner.d.ts +0 -52
- package/dist/agent-farm/tutorial/runner.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/runner.js +0 -204
- package/dist/agent-farm/tutorial/runner.js.map +0 -1
- package/dist/agent-farm/tutorial/state.d.ts +0 -26
- package/dist/agent-farm/tutorial/state.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/state.js +0 -89
- package/dist/agent-farm/tutorial/state.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/first-spec.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/first-spec.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/first-spec.js +0 -136
- package/dist/agent-farm/tutorial/steps/first-spec.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/implementation.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/implementation.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/implementation.js +0 -76
- package/dist/agent-farm/tutorial/steps/implementation.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/index.d.ts +0 -10
- package/dist/agent-farm/tutorial/steps/index.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/index.js +0 -10
- package/dist/agent-farm/tutorial/steps/index.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/planning.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/planning.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/planning.js +0 -143
- package/dist/agent-farm/tutorial/steps/planning.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/review.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/review.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/review.js +0 -78
- package/dist/agent-farm/tutorial/steps/review.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/setup.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/setup.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/setup.js +0 -126
- package/dist/agent-farm/tutorial/steps/setup.js.map +0 -1
- package/dist/agent-farm/tutorial/steps/welcome.d.ts +0 -7
- package/dist/agent-farm/tutorial/steps/welcome.d.ts.map +0 -1
- package/dist/agent-farm/tutorial/steps/welcome.js +0 -50
- package/dist/agent-farm/tutorial/steps/welcome.js.map +0 -1
- package/dist/commands/pcheck/cache.d.ts +0 -48
- package/dist/commands/pcheck/cache.d.ts.map +0 -1
- package/dist/commands/pcheck/cache.js +0 -170
- package/dist/commands/pcheck/cache.js.map +0 -1
- package/dist/commands/pcheck/evaluator.d.ts +0 -15
- package/dist/commands/pcheck/evaluator.d.ts.map +0 -1
- package/dist/commands/pcheck/evaluator.js +0 -246
- package/dist/commands/pcheck/evaluator.js.map +0 -1
- package/dist/commands/pcheck/index.d.ts +0 -12
- package/dist/commands/pcheck/index.d.ts.map +0 -1
- package/dist/commands/pcheck/index.js +0 -249
- package/dist/commands/pcheck/index.js.map +0 -1
- package/dist/commands/pcheck/parser.d.ts +0 -39
- package/dist/commands/pcheck/parser.d.ts.map +0 -1
- package/dist/commands/pcheck/parser.js +0 -155
- package/dist/commands/pcheck/parser.js.map +0 -1
- package/dist/commands/pcheck/types.d.ts +0 -82
- package/dist/commands/pcheck/types.d.ts.map +0 -1
- package/dist/commands/pcheck/types.js +0 -5
- package/dist/commands/pcheck/types.js.map +0 -1
- package/dist/commands/porch/consultation.d.ts +0 -56
- package/dist/commands/porch/consultation.d.ts.map +0 -1
- package/dist/commands/porch/consultation.js +0 -330
- package/dist/commands/porch/consultation.js.map +0 -1
- package/dist/commands/porch/notifications.d.ts +0 -99
- package/dist/commands/porch/notifications.d.ts.map +0 -1
- package/dist/commands/porch/notifications.js +0 -223
- package/dist/commands/porch/notifications.js.map +0 -1
- package/dist/commands/porch/plan-parser.d.ts +0 -38
- package/dist/commands/porch/plan-parser.d.ts.map +0 -1
- package/dist/commands/porch/plan-parser.js +0 -166
- package/dist/commands/porch/plan-parser.js.map +0 -1
- package/dist/commands/porch/protocol-loader.d.ts +0 -46
- package/dist/commands/porch/protocol-loader.d.ts.map +0 -1
- package/dist/commands/porch/protocol-loader.js +0 -253
- package/dist/commands/porch/protocol-loader.js.map +0 -1
- package/dist/commands/porch/signal-parser.d.ts +0 -88
- package/dist/commands/porch/signal-parser.d.ts.map +0 -1
- package/dist/commands/porch/signal-parser.js +0 -148
- package/dist/commands/porch/signal-parser.js.map +0 -1
- package/dist/commands/tower.d.ts +0 -16
- package/dist/commands/tower.d.ts.map +0 -1
- package/dist/commands/tower.js +0 -21
- package/dist/commands/tower.js.map +0 -1
- package/skeleton/config.json +0 -7
- package/skeleton/porch/protocols/bugfix.json +0 -85
- package/skeleton/porch/protocols/spider.json +0 -135
- package/skeleton/porch/protocols/tick.json +0 -76
- package/skeleton/protocols/spider/prompts/defend.md +0 -215
- package/skeleton/protocols/spider/prompts/evaluate.md +0 -241
- package/templates/dashboard/css/activity.css +0 -151
- package/templates/dashboard/js/activity.js +0 -112
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/* Activity Summary Modal and Tab (Spec 0059) */
|
|
2
|
-
|
|
3
|
-
/* Activity Summary Modal */
|
|
4
|
-
.activity-dialog {
|
|
5
|
-
width: 600px;
|
|
6
|
-
max-width: 90vw;
|
|
7
|
-
max-height: 80vh;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.activity-dialog-header {
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
align-items: center;
|
|
16
|
-
margin-bottom: 16px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.activity-dialog-header h3 {
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.activity-close-btn {
|
|
24
|
-
background: none;
|
|
25
|
-
border: none;
|
|
26
|
-
font-size: 24px;
|
|
27
|
-
color: var(--text-muted);
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
padding: 0 8px;
|
|
30
|
-
line-height: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.activity-close-btn:hover {
|
|
34
|
-
color: var(--text-primary);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.activity-dialog-content {
|
|
38
|
-
flex: 1;
|
|
39
|
-
overflow-y: auto;
|
|
40
|
-
max-height: 50vh;
|
|
41
|
-
margin-bottom: 16px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.activity-loading {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
gap: 12px;
|
|
49
|
-
padding: 40px 20px;
|
|
50
|
-
color: var(--text-muted);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.activity-spinner {
|
|
54
|
-
width: 20px;
|
|
55
|
-
height: 20px;
|
|
56
|
-
border: 2px solid var(--border);
|
|
57
|
-
border-top-color: var(--accent);
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
animation: spin 1s linear infinite;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@keyframes spin {
|
|
63
|
-
to { transform: rotate(360deg); }
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.activity-empty {
|
|
67
|
-
text-align: center;
|
|
68
|
-
padding: 40px 20px;
|
|
69
|
-
color: var(--text-muted);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.activity-error {
|
|
73
|
-
text-align: center;
|
|
74
|
-
padding: 40px 20px;
|
|
75
|
-
color: #ef4444;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.activity-summary {
|
|
79
|
-
line-height: 1.6;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.activity-ai-summary {
|
|
83
|
-
background: var(--bg-tertiary);
|
|
84
|
-
border-left: 3px solid var(--accent);
|
|
85
|
-
padding: 12px 16px;
|
|
86
|
-
margin-bottom: 20px;
|
|
87
|
-
font-style: italic;
|
|
88
|
-
color: var(--text-secondary);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.activity-section {
|
|
92
|
-
margin-bottom: 16px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.activity-section h4 {
|
|
96
|
-
font-size: 13px;
|
|
97
|
-
text-transform: uppercase;
|
|
98
|
-
color: var(--text-muted);
|
|
99
|
-
margin: 0 0 8px 0;
|
|
100
|
-
letter-spacing: 0.5px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.activity-section ul {
|
|
104
|
-
margin: 0;
|
|
105
|
-
padding-left: 20px;
|
|
106
|
-
color: var(--text-secondary);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.activity-section li {
|
|
110
|
-
margin-bottom: 4px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.activity-section p {
|
|
114
|
-
margin: 4px 0;
|
|
115
|
-
color: var(--text-secondary);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.activity-time-value {
|
|
119
|
-
font-size: 18px;
|
|
120
|
-
font-weight: 500;
|
|
121
|
-
color: var(--text-primary);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.activity-dialog-footer {
|
|
125
|
-
display: flex;
|
|
126
|
-
justify-content: flex-end;
|
|
127
|
-
gap: 8px;
|
|
128
|
-
padding-top: 12px;
|
|
129
|
-
border-top: 1px solid var(--border);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* Activity Tab Styles */
|
|
133
|
-
.activity-tab-container {
|
|
134
|
-
padding: 24px;
|
|
135
|
-
max-width: 700px;
|
|
136
|
-
margin: 0 auto;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.activity-tab-container .activity-summary {
|
|
140
|
-
background: var(--bg-secondary);
|
|
141
|
-
border-radius: 8px;
|
|
142
|
-
padding: 20px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.activity-tab-container .activity-actions {
|
|
146
|
-
margin-top: 20px;
|
|
147
|
-
padding-top: 16px;
|
|
148
|
-
border-top: 1px solid var(--border);
|
|
149
|
-
display: flex;
|
|
150
|
-
justify-content: flex-end;
|
|
151
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// Activity Summary Functions (Spec 0059)
|
|
2
|
-
|
|
3
|
-
// Show activity summary - creates tab if needed
|
|
4
|
-
async function showActivitySummary() {
|
|
5
|
-
let activityTab = tabs.find(t => t.type === 'activity');
|
|
6
|
-
|
|
7
|
-
if (!activityTab) {
|
|
8
|
-
activityTab = {
|
|
9
|
-
id: 'activity-today',
|
|
10
|
-
type: 'activity',
|
|
11
|
-
name: 'Today'
|
|
12
|
-
};
|
|
13
|
-
tabs.push(activityTab);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
activeTabId = activityTab.id;
|
|
17
|
-
currentTabType = null;
|
|
18
|
-
renderTabs();
|
|
19
|
-
renderTabContent();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Render the activity tab content
|
|
23
|
-
async function renderActivityTab() {
|
|
24
|
-
const content = document.getElementById('tab-content');
|
|
25
|
-
|
|
26
|
-
content.innerHTML = `
|
|
27
|
-
<div class="activity-tab-container">
|
|
28
|
-
<div class="activity-loading">
|
|
29
|
-
<span class="activity-spinner"></span>
|
|
30
|
-
Loading activity...
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const response = await fetch('/api/activity-summary');
|
|
37
|
-
if (!response.ok) {
|
|
38
|
-
throw new Error(await response.text());
|
|
39
|
-
}
|
|
40
|
-
activityData = await response.json();
|
|
41
|
-
renderActivityTabContent(activityData);
|
|
42
|
-
} catch (err) {
|
|
43
|
-
content.innerHTML = `
|
|
44
|
-
<div class="activity-tab-container">
|
|
45
|
-
<div class="activity-error">
|
|
46
|
-
Failed to load activity: ${escapeHtml(err.message)}
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
`;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Render activity tab content
|
|
54
|
-
// Uses shared renderActivityContentHtml from utils.js (Maintenance Run 0004)
|
|
55
|
-
function renderActivityTabContent(data) {
|
|
56
|
-
const content = document.getElementById('tab-content');
|
|
57
|
-
content.innerHTML = renderActivityContentHtml(data, { isTab: true });
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Render activity summary content (for modal)
|
|
61
|
-
// Uses shared renderActivityContentHtml from utils.js (Maintenance Run 0004)
|
|
62
|
-
function renderActivitySummary(data) {
|
|
63
|
-
const content = document.getElementById('activity-content');
|
|
64
|
-
content.innerHTML = renderActivityContentHtml(data, { isTab: false });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Close activity modal
|
|
68
|
-
function closeActivityModal() {
|
|
69
|
-
document.getElementById('activity-modal').classList.add('hidden');
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Copy activity summary to clipboard (shared by tab and modal)
|
|
73
|
-
function copyActivityToClipboard() {
|
|
74
|
-
copyActivitySummary();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function copyActivitySummary() {
|
|
78
|
-
if (!activityData) return;
|
|
79
|
-
|
|
80
|
-
const hours = Math.floor(activityData.timeTracking.activeMinutes / 60);
|
|
81
|
-
const mins = activityData.timeTracking.activeMinutes % 60;
|
|
82
|
-
const uniqueBranches = new Set(activityData.commits.map(c => c.branch)).size;
|
|
83
|
-
const mergedPrs = activityData.prs.filter(p => p.state === 'MERGED').length;
|
|
84
|
-
|
|
85
|
-
let markdown = `## Today's Summary\n\n`;
|
|
86
|
-
|
|
87
|
-
if (activityData.aiSummary) {
|
|
88
|
-
markdown += `${activityData.aiSummary}\n\n`;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
markdown += `### Activity\n`;
|
|
92
|
-
markdown += `- ${activityData.commits.length} commits across ${uniqueBranches} branches\n`;
|
|
93
|
-
markdown += `- ${activityData.files.length} files modified\n`;
|
|
94
|
-
markdown += `- ${activityData.prs.length} PRs${mergedPrs > 0 ? ` (${mergedPrs} merged)` : ''}\n\n`;
|
|
95
|
-
|
|
96
|
-
if (activityData.projectChanges && activityData.projectChanges.length > 0) {
|
|
97
|
-
markdown += `### Projects Touched\n`;
|
|
98
|
-
activityData.projectChanges.forEach(p => {
|
|
99
|
-
markdown += `- ${p.id}: ${p.title} (${p.oldStatus} → ${p.newStatus})\n`;
|
|
100
|
-
});
|
|
101
|
-
markdown += '\n';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
markdown += `### Time\n`;
|
|
105
|
-
markdown += `Active time: ~${hours}h ${mins}m\n`;
|
|
106
|
-
|
|
107
|
-
navigator.clipboard.writeText(markdown).then(() => {
|
|
108
|
-
showToast('Copied to clipboard', 'success');
|
|
109
|
-
}).catch(() => {
|
|
110
|
-
showToast('Failed to copy', 'error');
|
|
111
|
-
});
|
|
112
|
-
}
|