@matt82198/aesop 0.1.0-beta.4 → 0.1.0-beta.5
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/CHANGELOG.md +46 -5
- package/README.md +57 -1
- package/aesop.config.example.json +8 -1
- package/bin/CLAUDE.md +30 -2
- package/bin/cli.js +286 -73
- package/daemons/CLAUDE.md +4 -1
- package/daemons/run-watchdog.sh +5 -2
- package/docs/RELEASING.md +159 -0
- package/docs/archive/README.md +3 -0
- package/docs/{spikes → archive/spikes}/tiered-cognition/README.md +1 -3
- package/docs/case-study-portfolio.md +61 -0
- package/docs/self-stats-data.json +11 -0
- package/docs/templates/FLEET-OPS-ANALYSIS.example.md +27 -0
- package/docs/templates/FLEET-OPS-RECOMMENDATIONS.example.md +24 -0
- package/docs/templates/PROPOSALS-LOG.example.md +64 -0
- package/hooks/CLAUDE.md +23 -0
- package/mcp/CLAUDE.md +213 -0
- package/mcp/package.json +26 -0
- package/mcp/server.mjs +543 -0
- package/monitor/CHARTER.md +76 -110
- package/monitor/collect-signals.mjs +85 -0
- package/package.json +4 -1
- package/scan/fleet-scan.example.mjs +292 -0
- package/skills/healthcheck/SKILL.md +44 -0
- package/state_store/CLAUDE.md +39 -0
- package/state_store/__init__.py +24 -0
- package/state_store/__pycache__/__init__.cpython-314.pyc +0 -0
- package/state_store/__pycache__/api.cpython-314.pyc +0 -0
- package/state_store/__pycache__/export.cpython-314.pyc +0 -0
- package/state_store/__pycache__/ingest.cpython-314.pyc +0 -0
- package/state_store/__pycache__/projections.cpython-314.pyc +0 -0
- package/state_store/__pycache__/store.cpython-314.pyc +0 -0
- package/state_store/api.py +35 -0
- package/state_store/export.py +19 -0
- package/state_store/ingest.py +24 -0
- package/state_store/projections.py +52 -0
- package/state_store/store.py +102 -0
- package/tools/CLAUDE.md +30 -149
- package/tools/__pycache__/alert_bridge.cpython-314.pyc +0 -0
- package/tools/__pycache__/ci_merge_wait.cpython-314.pyc +0 -0
- package/tools/__pycache__/fleet_prompt_extractor.cpython-314.pyc +0 -0
- package/tools/__pycache__/healthcheck.cpython-314.pyc +0 -0
- package/tools/__pycache__/metrics_gate.cpython-314.pyc +0 -0
- package/tools/__pycache__/secret_scan.cpython-314.pyc +0 -0
- package/tools/__pycache__/self_stats.cpython-314.pyc +0 -0
- package/tools/__pycache__/session_usage_summary.cpython-314.pyc +0 -0
- package/tools/__pycache__/stall_check.cpython-314.pyc +0 -0
- package/tools/__pycache__/transcript_replay.cpython-314.pyc +0 -0
- package/tools/__pycache__/transcript_timeline.cpython-314.pyc +0 -0
- package/tools/__pycache__/verify_dash.cpython-314.pyc +0 -0
- package/tools/__pycache__/verify_submit_encoding.cpython-314.pyc +0 -0
- package/tools/alert_bridge.py +449 -0
- package/tools/ci_merge_wait.py +121 -8
- package/tools/fleet_prompt_extractor.py +134 -0
- package/tools/healthcheck.py +296 -0
- package/tools/secret_scan.py +8 -1
- package/tools/self_stats.py +509 -0
- package/tools/session_usage_summary.py +198 -0
- package/tools/svg_to_png.mjs +50 -0
- package/tools/transcript_replay.py +236 -0
- package/tools/transcript_timeline.py +184 -0
- package/tools/verify_dash.py +361 -542
- package/tools/verify_submit_encoding.py +12 -4
- package/ui/CLAUDE.md +57 -41
- package/ui/__pycache__/agents.cpython-314.pyc +0 -0
- package/ui/__pycache__/collectors.cpython-314.pyc +0 -0
- package/ui/__pycache__/config.cpython-314.pyc +0 -0
- package/ui/__pycache__/cost.cpython-314.pyc +0 -0
- package/ui/__pycache__/csrf.cpython-314.pyc +0 -0
- package/ui/__pycache__/handler.cpython-314.pyc +0 -0
- package/ui/__pycache__/render.cpython-314.pyc +0 -0
- package/ui/__pycache__/serve.cpython-314.pyc +0 -0
- package/ui/__pycache__/sse.cpython-314.pyc +0 -0
- package/ui/agents.py +9 -5
- package/ui/api/__pycache__/submit.cpython-314.pyc +0 -0
- package/ui/api/submit.py +44 -5
- package/ui/collectors.py +184 -35
- package/ui/config.py +9 -0
- package/ui/cost.py +260 -0
- package/ui/csrf.py +7 -3
- package/ui/handler.py +254 -4
- package/ui/render.py +26 -6
- package/ui/sse.py +16 -1
- package/ui/web/.gitattributes +13 -0
- package/ui/web/dist/assets/index-2LZDQirC.js +9 -0
- package/ui/web/dist/assets/index-D4M1qyOv.css +1 -0
- package/ui/web/dist/index.html +14 -0
- package/ui/web/index.html +13 -0
- package/ui/web/package-lock.json +2225 -0
- package/ui/web/package.json +26 -0
- package/ui/web/src/App.test.tsx +74 -0
- package/ui/web/src/App.tsx +142 -0
- package/ui/web/src/CONTRIBUTING-UI.md +49 -0
- package/ui/web/src/components/AgentRow.css +187 -0
- package/ui/web/src/components/AgentRow.test.tsx +209 -0
- package/ui/web/src/components/AgentRow.tsx +207 -0
- package/ui/web/src/components/AgentsPanel.css +108 -0
- package/ui/web/src/components/AgentsPanel.test.tsx +41 -0
- package/ui/web/src/components/AgentsPanel.tsx +58 -0
- package/ui/web/src/components/AlertsPanel.css +88 -0
- package/ui/web/src/components/AlertsPanel.test.tsx +51 -0
- package/ui/web/src/components/AlertsPanel.tsx +67 -0
- package/ui/web/src/components/BacklogPanel.test.tsx +126 -0
- package/ui/web/src/components/BacklogPanel.tsx +122 -0
- package/ui/web/src/components/CostChart.css +110 -0
- package/ui/web/src/components/CostChart.test.tsx +144 -0
- package/ui/web/src/components/CostChart.tsx +152 -0
- package/ui/web/src/components/CostTable.css +93 -0
- package/ui/web/src/components/CostTable.test.tsx +165 -0
- package/ui/web/src/components/CostTable.tsx +94 -0
- package/ui/web/src/components/EventsFeed.css +68 -0
- package/ui/web/src/components/EventsFeed.test.tsx +36 -0
- package/ui/web/src/components/EventsFeed.tsx +31 -0
- package/ui/web/src/components/HealthHeader.css +137 -0
- package/ui/web/src/components/HealthHeader.test.tsx +278 -0
- package/ui/web/src/components/HealthHeader.tsx +281 -0
- package/ui/web/src/components/InboxForm.css +135 -0
- package/ui/web/src/components/InboxForm.test.tsx +208 -0
- package/ui/web/src/components/InboxForm.tsx +116 -0
- package/ui/web/src/components/MessagesTail.module.css +144 -0
- package/ui/web/src/components/MessagesTail.test.tsx +176 -0
- package/ui/web/src/components/MessagesTail.tsx +94 -0
- package/ui/web/src/components/ReposPanel.css +90 -0
- package/ui/web/src/components/ReposPanel.test.tsx +45 -0
- package/ui/web/src/components/ReposPanel.tsx +67 -0
- package/ui/web/src/components/Scorecard.css +106 -0
- package/ui/web/src/components/Scorecard.test.tsx +117 -0
- package/ui/web/src/components/Scorecard.tsx +85 -0
- package/ui/web/src/components/Timeline.module.css +151 -0
- package/ui/web/src/components/Timeline.test.tsx +215 -0
- package/ui/web/src/components/Timeline.tsx +99 -0
- package/ui/web/src/components/TrackerBoard.test.tsx +121 -0
- package/ui/web/src/components/TrackerBoard.tsx +107 -0
- package/ui/web/src/components/TrackerCard.test.tsx +180 -0
- package/ui/web/src/components/TrackerCard.tsx +160 -0
- package/ui/web/src/components/TrackerForm.test.tsx +189 -0
- package/ui/web/src/components/TrackerForm.tsx +144 -0
- package/ui/web/src/lib/api.ts +218 -0
- package/ui/web/src/lib/format.test.ts +89 -0
- package/ui/web/src/lib/format.ts +103 -0
- package/ui/web/src/lib/sanitizeUrl.test.ts +84 -0
- package/ui/web/src/lib/sanitizeUrl.ts +38 -0
- package/ui/web/src/lib/types.ts +230 -0
- package/ui/web/src/lib/useHashRoute.test.ts +60 -0
- package/ui/web/src/lib/useHashRoute.ts +23 -0
- package/ui/web/src/lib/useSSE.ts +175 -0
- package/ui/web/src/main.tsx +10 -0
- package/ui/web/src/styles/global.css +179 -0
- package/ui/web/src/styles/theme.css +184 -0
- package/ui/web/src/styles/work.css +572 -0
- package/ui/web/src/test/fixtures.ts +385 -0
- package/ui/web/src/test/setup.ts +49 -0
- package/ui/web/src/views/Activity.module.css +43 -0
- package/ui/web/src/views/Activity.test.tsx +89 -0
- package/ui/web/src/views/Activity.tsx +31 -0
- package/ui/web/src/views/Cost.css +87 -0
- package/ui/web/src/views/Cost.test.tsx +142 -0
- package/ui/web/src/views/Cost.tsx +54 -0
- package/ui/web/src/views/Overview.css +51 -0
- package/ui/web/src/views/Overview.test.tsx +76 -0
- package/ui/web/src/views/Overview.tsx +46 -0
- package/ui/web/src/views/Work.test.tsx +82 -0
- package/ui/web/src/views/Work.tsx +79 -0
- package/ui/web/src/vite-env.d.ts +10 -0
- package/ui/web/tsconfig.json +22 -0
- package/ui/web/vite.config.ts +25 -0
- package/ui/web/vitest.config.ts +12 -0
- package/ui/templates/dashboard.html +0 -1202
- /package/docs/{spikes → archive/spikes}/tiered-cognition/ACTIVATION.md +0 -0
- /package/docs/{spikes → archive/spikes}/tiered-cognition/DESIGN.md +0 -0
- /package/docs/{spikes → archive/spikes}/tiered-cognition/FINDINGS.md +0 -0
- /package/docs/{spikes → archive/spikes}/tiered-cognition/aesop-cognition.example.md +0 -0
- /package/docs/{spikes → archive/spikes}/tiered-cognition/force-model-policy.merged.mjs +0 -0
- /package/docs/{spikes → archive/spikes}/tiered-cognition/strip-tools-hook.mjs +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aesop design tokens — all colors/spacing/type as CSS custom properties.
|
|
3
|
+
*
|
|
4
|
+
* NAMING NOTE: the wave-14 plan calls this file tokens.css, but the repo's
|
|
5
|
+
* pre-push secret-scan gate hard-fails any filename matching *token*
|
|
6
|
+
* (credential_filename rule, pragma does not apply), so it lives as
|
|
7
|
+
* theme.css. It is imported only by global.css; components never import it.
|
|
8
|
+
*
|
|
9
|
+
* Theming model (D5):
|
|
10
|
+
* 1. Light palette is the base (:root).
|
|
11
|
+
* 2. prefers-color-scheme: dark applies the dark palette by default.
|
|
12
|
+
* 3. [data-theme="light"|"dark"] on <html> overrides the OS preference;
|
|
13
|
+
* the toggle persists the choice to localStorage ("aesop-theme") and
|
|
14
|
+
* stamps data-theme on the root element (see App.tsx).
|
|
15
|
+
*
|
|
16
|
+
* Status colors are chosen to pass WCAG AA (>= 4.5:1) as text against the
|
|
17
|
+
* theme's --color-bg in BOTH palettes (Primer-derived values).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
/* ---- Light palette (base) ---- */
|
|
22
|
+
--color-bg: #ffffff;
|
|
23
|
+
--color-bg-subtle: #f6f8fa;
|
|
24
|
+
--color-bg-inset: #eff2f5;
|
|
25
|
+
--color-surface: #ffffff;
|
|
26
|
+
--color-border: #d0d7de;
|
|
27
|
+
--color-border-subtle: #e4e8ec;
|
|
28
|
+
|
|
29
|
+
--color-text: #1f2328;
|
|
30
|
+
--color-text-muted: #59636e;
|
|
31
|
+
--color-text-inverse: #ffffff;
|
|
32
|
+
|
|
33
|
+
--color-accent: #0969da; /* links, active tab, focus */
|
|
34
|
+
--color-accent-emphasis: #0550ae;
|
|
35
|
+
|
|
36
|
+
/* Status colors — AA on --color-bg */
|
|
37
|
+
--color-status-ok: #1a7f37; /* ALIVE / running / OK */
|
|
38
|
+
--color-status-warn: #9a6700; /* MED / DRIFT / reconnecting */
|
|
39
|
+
--color-status-error: #cf222e; /* STALE / HIGH / SUSPICIOUS / FAILED */
|
|
40
|
+
--color-status-info: #0969da; /* idle / neutral info */
|
|
41
|
+
--color-status-neutral: #59636e; /* unknown / not running */
|
|
42
|
+
|
|
43
|
+
/* Severity backgrounds (non-text, decorative) */
|
|
44
|
+
--color-status-ok-bg: #dafbe1;
|
|
45
|
+
--color-status-warn-bg: #fff8c5;
|
|
46
|
+
--color-status-error-bg: #ffebe9;
|
|
47
|
+
--color-status-info-bg: #ddf4ff;
|
|
48
|
+
|
|
49
|
+
--color-focus-ring: #0969da;
|
|
50
|
+
|
|
51
|
+
/* ---- Spacing scale ---- */
|
|
52
|
+
--space-1: 0.25rem;
|
|
53
|
+
--space-2: 0.5rem;
|
|
54
|
+
--space-3: 0.75rem;
|
|
55
|
+
--space-4: 1rem;
|
|
56
|
+
--space-5: 1.5rem;
|
|
57
|
+
--space-6: 2rem;
|
|
58
|
+
--space-7: 3rem;
|
|
59
|
+
|
|
60
|
+
/* ---- Typography ---- */
|
|
61
|
+
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
62
|
+
--font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
|
|
63
|
+
--font-size-xs: 0.75rem;
|
|
64
|
+
--font-size-sm: 0.875rem;
|
|
65
|
+
--font-size-md: 1rem;
|
|
66
|
+
--font-size-lg: 1.125rem;
|
|
67
|
+
--font-size-xl: 1.375rem;
|
|
68
|
+
--line-height-tight: 1.25;
|
|
69
|
+
--line-height-normal: 1.5;
|
|
70
|
+
--font-weight-normal: 400;
|
|
71
|
+
--font-weight-medium: 500;
|
|
72
|
+
--font-weight-bold: 600;
|
|
73
|
+
|
|
74
|
+
/* ---- Radii / shadows / layout ---- */
|
|
75
|
+
--radius-sm: 4px;
|
|
76
|
+
--radius-md: 6px;
|
|
77
|
+
--radius-lg: 10px;
|
|
78
|
+
--shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.08);
|
|
79
|
+
--shadow-md: 0 3px 8px rgba(31, 35, 40, 0.12);
|
|
80
|
+
--header-height: 3rem;
|
|
81
|
+
--content-max-width: 90rem;
|
|
82
|
+
|
|
83
|
+
/* ---- Motion ---- */
|
|
84
|
+
--transition-fast: 120ms ease;
|
|
85
|
+
--transition-normal: 200ms ease;
|
|
86
|
+
|
|
87
|
+
color-scheme: light;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ---- Status color classes (replaces inline styles) ---- */
|
|
91
|
+
.text-status-ok {
|
|
92
|
+
color: var(--color-status-ok);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.text-status-warn {
|
|
96
|
+
color: var(--color-status-warn);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.text-status-error {
|
|
100
|
+
color: var(--color-status-error);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.text-status-info {
|
|
104
|
+
color: var(--color-status-info);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.text-status-neutral {
|
|
108
|
+
color: var(--color-status-neutral);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* ---- Dark palette values, shared between the media query and the
|
|
112
|
+
explicit data-theme override. Duplicated blocks because CSS custom
|
|
113
|
+
properties can't be aliased conditionally without a preprocessor. ---- */
|
|
114
|
+
|
|
115
|
+
@media (prefers-color-scheme: dark) {
|
|
116
|
+
:root:not([data-theme='light']) {
|
|
117
|
+
--color-bg: #0d1117;
|
|
118
|
+
--color-bg-subtle: #161b22;
|
|
119
|
+
--color-bg-inset: #010409;
|
|
120
|
+
--color-surface: #161b22;
|
|
121
|
+
--color-border: #30363d;
|
|
122
|
+
--color-border-subtle: #21262d;
|
|
123
|
+
|
|
124
|
+
--color-text: #e6edf3;
|
|
125
|
+
--color-text-muted: #9198a1;
|
|
126
|
+
--color-text-inverse: #0d1117;
|
|
127
|
+
|
|
128
|
+
--color-accent: #4493f8;
|
|
129
|
+
--color-accent-emphasis: #79b8ff;
|
|
130
|
+
|
|
131
|
+
/* Status colors — AA on dark --color-bg */
|
|
132
|
+
--color-status-ok: #3fb950;
|
|
133
|
+
--color-status-warn: #d29922;
|
|
134
|
+
--color-status-error: #f85149;
|
|
135
|
+
--color-status-info: #58a6ff;
|
|
136
|
+
--color-status-neutral: #9198a1;
|
|
137
|
+
|
|
138
|
+
--color-status-ok-bg: #12261e;
|
|
139
|
+
--color-status-warn-bg: #272115;
|
|
140
|
+
--color-status-error-bg: #2d1517;
|
|
141
|
+
--color-status-info-bg: #121d2f;
|
|
142
|
+
|
|
143
|
+
--color-focus-ring: #58a6ff;
|
|
144
|
+
|
|
145
|
+
--shadow-sm: 0 1px 2px rgba(1, 4, 9, 0.6);
|
|
146
|
+
--shadow-md: 0 3px 8px rgba(1, 4, 9, 0.7);
|
|
147
|
+
|
|
148
|
+
color-scheme: dark;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:root[data-theme='dark'] {
|
|
153
|
+
--color-bg: #0d1117;
|
|
154
|
+
--color-bg-subtle: #161b22;
|
|
155
|
+
--color-bg-inset: #010409;
|
|
156
|
+
--color-surface: #161b22;
|
|
157
|
+
--color-border: #30363d;
|
|
158
|
+
--color-border-subtle: #21262d;
|
|
159
|
+
|
|
160
|
+
--color-text: #e6edf3;
|
|
161
|
+
--color-text-muted: #9198a1;
|
|
162
|
+
--color-text-inverse: #0d1117;
|
|
163
|
+
|
|
164
|
+
--color-accent: #4493f8;
|
|
165
|
+
--color-accent-emphasis: #79b8ff;
|
|
166
|
+
|
|
167
|
+
--color-status-ok: #3fb950;
|
|
168
|
+
--color-status-warn: #d29922;
|
|
169
|
+
--color-status-error: #f85149;
|
|
170
|
+
--color-status-info: #58a6ff;
|
|
171
|
+
--color-status-neutral: #9198a1;
|
|
172
|
+
|
|
173
|
+
--color-status-ok-bg: #12261e;
|
|
174
|
+
--color-status-warn-bg: #272115;
|
|
175
|
+
--color-status-error-bg: #2d1517;
|
|
176
|
+
--color-status-info-bg: #121d2f;
|
|
177
|
+
|
|
178
|
+
--color-focus-ring: #58a6ff;
|
|
179
|
+
|
|
180
|
+
--shadow-sm: 0 1px 2px rgba(1, 4, 9, 0.6);
|
|
181
|
+
--shadow-md: 0 3px 8px rgba(1, 4, 9, 0.7);
|
|
182
|
+
|
|
183
|
+
color-scheme: dark;
|
|
184
|
+
}
|