secfoo 0.1.0__py3-none-any.whl
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.
Potentially problematic release.
This version of secfoo might be problematic. Click here for more details.
- secfoo/__about__.py +1 -0
- secfoo/__init__.py +3 -0
- secfoo/agents/__init__.py +4 -0
- secfoo/agents/antigravity.py +47 -0
- secfoo/agents/base.py +113 -0
- secfoo/agents/claude.py +36 -0
- secfoo/agents/cursor.py +26 -0
- secfoo/agents/gemini.py +38 -0
- secfoo/agents/registry.py +22 -0
- secfoo/cli.py +243 -0
- secfoo/config.py +21 -0
- secfoo/report/__init__.py +3 -0
- secfoo/report/markdown.py +43 -0
- secfoo/runner.py +197 -0
- secfoo/skills/__init__.py +11 -0
- secfoo/skills/definitions/deployment-readiness.md +42 -0
- secfoo/skills/definitions/prompt-review.md +44 -0
- secfoo/skills/definitions/responsible-ai-compliance.md +41 -0
- secfoo/skills/definitions/threat-assessment.md +41 -0
- secfoo/skills/loader.py +77 -0
- secfoo/skills/renderer.py +149 -0
- secfoo/storage/__init__.py +4 -0
- secfoo/storage/models.py +33 -0
- secfoo/storage/repository.py +154 -0
- secfoo/storage/schema.sql +30 -0
- secfoo/targets/__init__.py +19 -0
- secfoo/targets/github.py +35 -0
- secfoo/targets/resolver.py +50 -0
- secfoo/web/__init__.py +0 -0
- secfoo/web/app.py +19 -0
- secfoo/web/routes/__init__.py +0 -0
- secfoo/web/routes/overview.py +20 -0
- secfoo/web/routes/projects.py +22 -0
- secfoo/web/routes/runs.py +41 -0
- secfoo/web/static/design-system/README.md +108 -0
- secfoo/web/static/design-system/base.css +91 -0
- secfoo/web/static/design-system/components/alerts.css +49 -0
- secfoo/web/static/design-system/components/badges.css +48 -0
- secfoo/web/static/design-system/components/buttons.css +120 -0
- secfoo/web/static/design-system/components/cards.css +72 -0
- secfoo/web/static/design-system/components/forms.css +108 -0
- secfoo/web/static/design-system/components/modal.css +63 -0
- secfoo/web/static/design-system/components/navigation.css +79 -0
- secfoo/web/static/design-system/components/tables.css +38 -0
- secfoo/web/static/design-system/components/tabs.css +40 -0
- secfoo/web/static/design-system/demo.html +222 -0
- secfoo/web/static/design-system/design-system.css +18 -0
- secfoo/web/static/design-system/tokens.css +146 -0
- secfoo/web/templates/base.html +31 -0
- secfoo/web/templates/overview.html +48 -0
- secfoo/web/templates/project.html +25 -0
- secfoo/web/templates/run_detail.html +50 -0
- secfoo/web/templating.py +38 -0
- secfoo-0.1.0.dist-info/METADATA +73 -0
- secfoo-0.1.0.dist-info/RECORD +58 -0
- secfoo-0.1.0.dist-info/WHEEL +4 -0
- secfoo-0.1.0.dist-info/entry_points.txt +2 -0
- secfoo-0.1.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Design System — Style Guide</title>
|
|
7
|
+
<link rel="stylesheet" href="./design-system.css" />
|
|
8
|
+
<style>
|
|
9
|
+
.swatch { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; width: 6rem; margin-bottom: 1rem; }
|
|
10
|
+
.swatch__color { width: 4rem; height: 4rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
|
|
11
|
+
.swatch-row { display: flex; flex-wrap: wrap; gap: 1rem; }
|
|
12
|
+
.section { padding-block: var(--space-16); border-bottom: 1px solid var(--color-border); }
|
|
13
|
+
.row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-4); }
|
|
14
|
+
</style>
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
|
|
18
|
+
<nav class="nav">
|
|
19
|
+
<div class="nav__inner">
|
|
20
|
+
<a class="nav__brand" href="#">Brandmark</a>
|
|
21
|
+
<ul class="nav__links">
|
|
22
|
+
<li><a class="nav__link" href="#" aria-current="page">Home</a></li>
|
|
23
|
+
<li><a class="nav__link" href="#">Products</a></li>
|
|
24
|
+
<li><a class="nav__link" href="#">Pricing</a></li>
|
|
25
|
+
<li><a class="nav__link" href="#">About</a></li>
|
|
26
|
+
</ul>
|
|
27
|
+
<div class="nav__actions">
|
|
28
|
+
<button class="btn btn--outline btn--sm">Sign in</button>
|
|
29
|
+
<button class="btn btn--primary btn--sm">Get started</button>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</nav>
|
|
33
|
+
|
|
34
|
+
<div class="ds-container">
|
|
35
|
+
|
|
36
|
+
<section class="section">
|
|
37
|
+
<span class="ds-overline">Foundations</span>
|
|
38
|
+
<h1 class="ds-display" style="margin-top:.5rem">Design System</h1>
|
|
39
|
+
<p class="ds-body-lg" style="max-width:40rem;color:var(--color-text-muted)">
|
|
40
|
+
An original component library and token set — colors, type, spacing, and
|
|
41
|
+
components — ready to theme any product surface.
|
|
42
|
+
</p>
|
|
43
|
+
</section>
|
|
44
|
+
|
|
45
|
+
<section class="section">
|
|
46
|
+
<h2>Color</h2>
|
|
47
|
+
<p class="ds-caption" style="margin-bottom:1rem">Primary</p>
|
|
48
|
+
<div class="swatch-row">
|
|
49
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-primary-100)"></div>100</div>
|
|
50
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-primary-300)"></div>300</div>
|
|
51
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-primary-500)"></div>500</div>
|
|
52
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-primary-700)"></div>700</div>
|
|
53
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-primary-900)"></div>900</div>
|
|
54
|
+
</div>
|
|
55
|
+
<p class="ds-caption" style="margin:1rem 0">Accents</p>
|
|
56
|
+
<div class="swatch-row">
|
|
57
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-teal-500)"></div>Teal</div>
|
|
58
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-amber-500)"></div>Amber</div>
|
|
59
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-success)"></div>Success</div>
|
|
60
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-warning)"></div>Warning</div>
|
|
61
|
+
<div class="swatch"><div class="swatch__color" style="background:var(--color-error)"></div>Error</div>
|
|
62
|
+
</div>
|
|
63
|
+
</section>
|
|
64
|
+
|
|
65
|
+
<section class="section">
|
|
66
|
+
<h2>Typography</h2>
|
|
67
|
+
<p class="ds-display">Display heading</p>
|
|
68
|
+
<h1>Heading 1</h1>
|
|
69
|
+
<h2>Heading 2</h2>
|
|
70
|
+
<h3>Heading 3</h3>
|
|
71
|
+
<h4>Heading 4</h4>
|
|
72
|
+
<p class="ds-body-lg">Body large — used for lead paragraphs and intros.</p>
|
|
73
|
+
<p class="ds-body">Body — the default paragraph style across the product.</p>
|
|
74
|
+
<p class="ds-body-sm">Body small — secondary text, dense UI.</p>
|
|
75
|
+
<p class="ds-caption">Caption — timestamps, helper text, metadata.</p>
|
|
76
|
+
</section>
|
|
77
|
+
|
|
78
|
+
<section class="section">
|
|
79
|
+
<h2>Buttons</h2>
|
|
80
|
+
<div class="row">
|
|
81
|
+
<button class="btn btn--primary btn--lg">Primary</button>
|
|
82
|
+
<button class="btn btn--secondary btn--lg">Secondary</button>
|
|
83
|
+
<button class="btn btn--outline btn--lg">Outline</button>
|
|
84
|
+
<button class="btn btn--ghost btn--lg">Ghost</button>
|
|
85
|
+
<button class="btn btn--dark btn--lg">Dark</button>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="row">
|
|
88
|
+
<button class="btn btn--primary btn--md">Medium</button>
|
|
89
|
+
<button class="btn btn--primary btn--sm">Small</button>
|
|
90
|
+
<button class="btn btn--primary btn--lg" disabled>Disabled</button>
|
|
91
|
+
<button class="btn btn--primary btn--lg btn--loading">Loading</button>
|
|
92
|
+
</div>
|
|
93
|
+
</section>
|
|
94
|
+
|
|
95
|
+
<section class="section">
|
|
96
|
+
<h2>Badges & Chips</h2>
|
|
97
|
+
<div class="row">
|
|
98
|
+
<span class="badge badge--primary">Primary</span>
|
|
99
|
+
<span class="badge badge--teal">Teal</span>
|
|
100
|
+
<span class="badge badge--amber">Amber</span>
|
|
101
|
+
<span class="badge badge--success">Success</span>
|
|
102
|
+
<span class="badge badge--warning">Warning</span>
|
|
103
|
+
<span class="badge badge--error">Error</span>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="row">
|
|
106
|
+
<span class="chip">Fintech <button class="chip__remove" aria-label="Remove">×</button></span>
|
|
107
|
+
<span class="chip">B2B <button class="chip__remove" aria-label="Remove">×</button></span>
|
|
108
|
+
</div>
|
|
109
|
+
</section>
|
|
110
|
+
|
|
111
|
+
<section class="section">
|
|
112
|
+
<h2>Alerts</h2>
|
|
113
|
+
<div class="row" style="flex-direction:column;align-items:stretch">
|
|
114
|
+
<div class="alert alert--info"><div><div class="alert__title">Heads up</div>New data refresh available for your workspace.</div></div>
|
|
115
|
+
<div class="alert alert--success"><div><div class="alert__title">Success</div>Your changes have been saved.</div></div>
|
|
116
|
+
<div class="alert alert--warning"><div><div class="alert__title">Warning</div>Your session will expire in 5 minutes.</div></div>
|
|
117
|
+
<div class="alert alert--error"><div><div class="alert__title">Error</div>Unable to reach the server. Please retry.</div></div>
|
|
118
|
+
</div>
|
|
119
|
+
</section>
|
|
120
|
+
|
|
121
|
+
<section class="section">
|
|
122
|
+
<h2>Forms</h2>
|
|
123
|
+
<div style="max-width:24rem">
|
|
124
|
+
<div class="field">
|
|
125
|
+
<label class="field__label" for="name">Full name</label>
|
|
126
|
+
<input class="input" id="name" type="text" placeholder="Ada Lovelace" />
|
|
127
|
+
</div>
|
|
128
|
+
<div class="field">
|
|
129
|
+
<label class="field__label" for="email">Email</label>
|
|
130
|
+
<input class="input" id="email" type="email" aria-invalid="true" placeholder="you@company.com" />
|
|
131
|
+
<span class="field__error">Enter a valid email address.</span>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="field">
|
|
134
|
+
<label class="field__label" for="plan">Plan</label>
|
|
135
|
+
<select class="select" id="plan">
|
|
136
|
+
<option>Starter</option>
|
|
137
|
+
<option>Growth</option>
|
|
138
|
+
<option>Enterprise</option>
|
|
139
|
+
</select>
|
|
140
|
+
<span class="field__helper">You can change this later.</span>
|
|
141
|
+
</div>
|
|
142
|
+
<label class="checkbox"><input type="checkbox" checked /> Send me product updates</label>
|
|
143
|
+
</div>
|
|
144
|
+
</section>
|
|
145
|
+
|
|
146
|
+
<section class="section">
|
|
147
|
+
<h2>Tabs</h2>
|
|
148
|
+
<div role="tablist" class="tabs__list">
|
|
149
|
+
<button class="tabs__tab" role="tab" aria-selected="true">Overview</button>
|
|
150
|
+
<button class="tabs__tab" role="tab" aria-selected="false">Activity</button>
|
|
151
|
+
<button class="tabs__tab" role="tab" aria-selected="false">Settings</button>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="tabs__panel">Panel content for the selected tab.</div>
|
|
154
|
+
</section>
|
|
155
|
+
|
|
156
|
+
<section class="section">
|
|
157
|
+
<h2>Cards</h2>
|
|
158
|
+
<div class="card-grid">
|
|
159
|
+
<div class="card card--interactive">
|
|
160
|
+
<span class="card__eyebrow">Category</span>
|
|
161
|
+
<h4 class="card__title">Card title</h4>
|
|
162
|
+
<p class="card__body">Supporting copy describing this card's content in one or two lines.</p>
|
|
163
|
+
<div class="card__footer">
|
|
164
|
+
<span class="badge badge--neutral">Tag</span>
|
|
165
|
+
<a href="#">Learn more →</a>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="card card--interactive">
|
|
169
|
+
<span class="card__eyebrow">Category</span>
|
|
170
|
+
<h4 class="card__title">Another card</h4>
|
|
171
|
+
<p class="card__body">Cards use the same radius and shadow tokens as the rest of the system.</p>
|
|
172
|
+
<div class="card__footer">
|
|
173
|
+
<span class="badge badge--teal">New</span>
|
|
174
|
+
<a href="#">Learn more →</a>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="card card--interactive">
|
|
178
|
+
<span class="card__eyebrow">Category</span>
|
|
179
|
+
<h4 class="card__title">Third card</h4>
|
|
180
|
+
<p class="card__body">Grid auto-wraps responsively via CSS grid auto-fit.</p>
|
|
181
|
+
<div class="card__footer">
|
|
182
|
+
<span class="badge badge--amber">Beta</span>
|
|
183
|
+
<a href="#">Learn more →</a>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</section>
|
|
188
|
+
|
|
189
|
+
<section class="section">
|
|
190
|
+
<h2>Table</h2>
|
|
191
|
+
<div class="table-wrap">
|
|
192
|
+
<table class="table">
|
|
193
|
+
<thead><tr><th>Company</th><th>Sector</th><th>Risk score</th></tr></thead>
|
|
194
|
+
<tbody>
|
|
195
|
+
<tr><td>Acme Corp</td><td>Manufacturing</td><td><span class="badge badge--success">Low</span></td></tr>
|
|
196
|
+
<tr><td>Globex Ltd</td><td>Retail</td><td><span class="badge badge--warning">Medium</span></td></tr>
|
|
197
|
+
<tr><td>Initech</td><td>Software</td><td><span class="badge badge--error">High</span></td></tr>
|
|
198
|
+
</tbody>
|
|
199
|
+
</table>
|
|
200
|
+
</div>
|
|
201
|
+
</section>
|
|
202
|
+
|
|
203
|
+
<section class="section" style="border-bottom:none">
|
|
204
|
+
<h2>Modal</h2>
|
|
205
|
+
<button class="btn btn--primary" onclick="document.getElementById('demo-modal').style.display='flex'">Open modal</button>
|
|
206
|
+
<div id="demo-modal" class="modal-backdrop" style="display:none">
|
|
207
|
+
<div class="modal">
|
|
208
|
+
<button class="modal__close" onclick="document.getElementById('demo-modal').style.display='none'">×</button>
|
|
209
|
+
<h3 class="modal__title">Confirm action</h3>
|
|
210
|
+
<p class="modal__body">This is a sample dialog built from the modal component styles.</p>
|
|
211
|
+
<div class="modal__footer">
|
|
212
|
+
<button class="btn btn--ghost" onclick="document.getElementById('demo-modal').style.display='none'">Cancel</button>
|
|
213
|
+
<button class="btn btn--primary">Confirm</button>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</section>
|
|
218
|
+
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
</body>
|
|
222
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Design System — entry point
|
|
3
|
+
----------------------------
|
|
4
|
+
Import this single file to get tokens + base styles + all components.
|
|
5
|
+
Each layer can also be imported individually if you only need part of it.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import url("./tokens.css");
|
|
9
|
+
@import url("./base.css");
|
|
10
|
+
@import url("./components/buttons.css");
|
|
11
|
+
@import url("./components/forms.css");
|
|
12
|
+
@import url("./components/cards.css");
|
|
13
|
+
@import url("./components/navigation.css");
|
|
14
|
+
@import url("./components/badges.css");
|
|
15
|
+
@import url("./components/alerts.css");
|
|
16
|
+
@import url("./components/tabs.css");
|
|
17
|
+
@import url("./components/tables.css");
|
|
18
|
+
@import url("./components/modal.css");
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Design Tokens
|
|
3
|
+
-------------
|
|
4
|
+
Single source of truth for color, type, spacing, radius, shadow and motion.
|
|
5
|
+
Framework-agnostic CSS custom properties — safe to port into Tailwind config,
|
|
6
|
+
React theme objects, Figma variables, etc. later.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
/* ---------- Color: Primary (deep petrol blue) ---------- */
|
|
11
|
+
--color-primary-50: #eef6f8;
|
|
12
|
+
--color-primary-100: #d3e8ee;
|
|
13
|
+
--color-primary-200: #a7d1dd;
|
|
14
|
+
--color-primary-300: #78b4c6;
|
|
15
|
+
--color-primary-400: #4b93a9;
|
|
16
|
+
--color-primary-500: #2c7690;
|
|
17
|
+
--color-primary-600: #1d5c75;
|
|
18
|
+
--color-primary-700: #124a60; /* base brand color */
|
|
19
|
+
--color-primary-800: #0b3a4d;
|
|
20
|
+
--color-primary-900: #072736;
|
|
21
|
+
|
|
22
|
+
/* ---------- Color: Accent Teal ---------- */
|
|
23
|
+
--color-teal-100: #d6f5f0;
|
|
24
|
+
--color-teal-300: #6fd9cc;
|
|
25
|
+
--color-teal-500: #14a89c;
|
|
26
|
+
--color-teal-700: #0c766d;
|
|
27
|
+
|
|
28
|
+
/* ---------- Color: Accent Amber ---------- */
|
|
29
|
+
--color-amber-100: #fbe9d4;
|
|
30
|
+
--color-amber-300: #f0bd7c;
|
|
31
|
+
--color-amber-500: #d98a3d;
|
|
32
|
+
--color-amber-700: #a4631f;
|
|
33
|
+
|
|
34
|
+
/* ---------- Color: Neutrals ---------- */
|
|
35
|
+
--color-white: #ffffff;
|
|
36
|
+
--color-gray-50: #f7f8f9;
|
|
37
|
+
--color-gray-100: #eceef0;
|
|
38
|
+
--color-gray-200: #dadde1;
|
|
39
|
+
--color-gray-300: #bcc1c7;
|
|
40
|
+
--color-gray-400: #8f969e;
|
|
41
|
+
--color-gray-500: #6b7280;
|
|
42
|
+
--color-gray-600: #4d545c;
|
|
43
|
+
--color-gray-700: #363c42;
|
|
44
|
+
--color-gray-800: #23272b;
|
|
45
|
+
--color-gray-900: #131619;
|
|
46
|
+
--color-black: #000000;
|
|
47
|
+
|
|
48
|
+
/* ---------- Color: Semantic ---------- */
|
|
49
|
+
--color-success: #1f8a4c;
|
|
50
|
+
--color-success-bg: #e6f5eb;
|
|
51
|
+
--color-warning: #b5790f;
|
|
52
|
+
--color-warning-bg: #fbf0d9;
|
|
53
|
+
--color-error: #c8372f;
|
|
54
|
+
--color-error-bg: #fbe8e7;
|
|
55
|
+
--color-info: var(--color-primary-600);
|
|
56
|
+
--color-info-bg: var(--color-primary-50);
|
|
57
|
+
|
|
58
|
+
/* ---------- Color: Semantic role mapping ---------- */
|
|
59
|
+
--color-bg: var(--color-white);
|
|
60
|
+
--color-bg-subtle: var(--color-gray-50);
|
|
61
|
+
--color-surface: var(--color-white);
|
|
62
|
+
--color-border: var(--color-gray-200);
|
|
63
|
+
--color-text: var(--color-gray-900);
|
|
64
|
+
--color-text-muted: var(--color-gray-500);
|
|
65
|
+
--color-text-on-primary: var(--color-white);
|
|
66
|
+
--color-link: var(--color-primary-700);
|
|
67
|
+
--color-link-hover: var(--color-primary-800);
|
|
68
|
+
--color-focus-ring: var(--color-teal-500);
|
|
69
|
+
|
|
70
|
+
/* ---------- Typography ---------- */
|
|
71
|
+
--font-family-base: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system,
|
|
72
|
+
Roboto, Helvetica, Arial, sans-serif;
|
|
73
|
+
--font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
74
|
+
|
|
75
|
+
--font-weight-regular: 400;
|
|
76
|
+
--font-weight-medium: 500;
|
|
77
|
+
--font-weight-bold: 700;
|
|
78
|
+
|
|
79
|
+
--text-display: 400 3.25rem/1.1 var(--font-family-base);
|
|
80
|
+
--text-h1: 400 2.5rem/1.15 var(--font-family-base);
|
|
81
|
+
--text-h2: 400 2rem/1.2 var(--font-family-base);
|
|
82
|
+
--text-h3: 600 1.5rem/1.25 var(--font-family-base);
|
|
83
|
+
--text-h4: 600 1.25rem/1.3 var(--font-family-base);
|
|
84
|
+
--text-body-lg: 400 1.125rem/1.6 var(--font-family-base);
|
|
85
|
+
--text-body: 400 1rem/1.6 var(--font-family-base);
|
|
86
|
+
--text-body-sm: 400 0.875rem/1.5 var(--font-family-base);
|
|
87
|
+
--text-caption: 400 0.75rem/1.4 var(--font-family-base);
|
|
88
|
+
--text-button: 600 1rem/1.1 var(--font-family-base);
|
|
89
|
+
--text-button-sm: 600 0.875rem/1.1 var(--font-family-base);
|
|
90
|
+
--text-overline: 700 0.75rem/1.2 var(--font-family-base);
|
|
91
|
+
--overline-letter-spacing: 0.08em;
|
|
92
|
+
|
|
93
|
+
/* ---------- Spacing (4px base grid) ---------- */
|
|
94
|
+
--space-0: 0;
|
|
95
|
+
--space-1: 0.25rem; /* 4px */
|
|
96
|
+
--space-2: 0.5rem; /* 8px */
|
|
97
|
+
--space-3: 0.75rem; /* 12px */
|
|
98
|
+
--space-4: 1rem; /* 16px */
|
|
99
|
+
--space-5: 1.25rem; /* 20px */
|
|
100
|
+
--space-6: 1.5rem; /* 24px */
|
|
101
|
+
--space-8: 2rem; /* 32px */
|
|
102
|
+
--space-10: 2.5rem; /* 40px */
|
|
103
|
+
--space-12: 3rem; /* 48px */
|
|
104
|
+
--space-16: 4rem; /* 64px */
|
|
105
|
+
--space-20: 5rem; /* 80px */
|
|
106
|
+
--space-24: 6rem; /* 96px */
|
|
107
|
+
|
|
108
|
+
/* ---------- Radius ---------- */
|
|
109
|
+
--radius-sm: 0.375rem; /* 6px – inputs, badges */
|
|
110
|
+
--radius-md: 0.625rem; /* 10px – small cards */
|
|
111
|
+
--radius-lg: 1rem; /* 16px – cards */
|
|
112
|
+
--radius-xl: 1.5rem; /* 24px – large panels */
|
|
113
|
+
--radius-pill: 999px; /* buttons, chips */
|
|
114
|
+
--radius-circle: 50%;
|
|
115
|
+
|
|
116
|
+
/* ---------- Shadow (soft, brand-tinted) ---------- */
|
|
117
|
+
--shadow-sm: 0 1px 3px rgba(7, 39, 54, 0.08);
|
|
118
|
+
--shadow-md: 0.25rem 0.25rem 1.25rem rgba(7, 39, 54, 0.08);
|
|
119
|
+
--shadow-lg: 0.625rem 0.625rem 2.5rem rgba(7, 39, 54, 0.10);
|
|
120
|
+
--shadow-focus: 0 0 0 3px rgba(20, 168, 156, 0.35);
|
|
121
|
+
|
|
122
|
+
/* ---------- Motion ---------- */
|
|
123
|
+
--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
124
|
+
--duration-fast: 120ms;
|
|
125
|
+
--duration-base: 200ms;
|
|
126
|
+
|
|
127
|
+
/* ---------- Layout ---------- */
|
|
128
|
+
--container-max: 77.5rem;
|
|
129
|
+
--nav-height: 4.5rem;
|
|
130
|
+
--z-nav: 100;
|
|
131
|
+
--z-modal-backdrop: 900;
|
|
132
|
+
--z-modal: 901;
|
|
133
|
+
--z-toast: 950;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ---------- Dark theme override (optional, opt-in via [data-theme="dark"]) ---------- */
|
|
137
|
+
[data-theme="dark"] {
|
|
138
|
+
--color-bg: var(--color-gray-900);
|
|
139
|
+
--color-bg-subtle: var(--color-gray-800);
|
|
140
|
+
--color-surface: var(--color-gray-800);
|
|
141
|
+
--color-border: var(--color-gray-700);
|
|
142
|
+
--color-text: var(--color-gray-50);
|
|
143
|
+
--color-text-muted: var(--color-gray-300);
|
|
144
|
+
--color-link: var(--color-teal-300);
|
|
145
|
+
--color-link-hover: var(--color-teal-100);
|
|
146
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>{% block title %}secfoo{% endblock %}</title>
|
|
7
|
+
<link rel="stylesheet" href="/static/design-system/design-system.css" />
|
|
8
|
+
<style>
|
|
9
|
+
.section { padding-block: var(--space-10); }
|
|
10
|
+
.meta-row { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-bottom: var(--space-4); }
|
|
11
|
+
.meta-row > div { min-width: 8rem; }
|
|
12
|
+
tr.run-row { cursor: pointer; }
|
|
13
|
+
tr.run-row:hover { background-color: var(--color-primary-50); }
|
|
14
|
+
</style>
|
|
15
|
+
</head>
|
|
16
|
+
<body>
|
|
17
|
+
<nav class="nav">
|
|
18
|
+
<div class="nav__inner">
|
|
19
|
+
<a class="nav__brand" href="/">secfoo</a>
|
|
20
|
+
<ul class="nav__links">
|
|
21
|
+
<li><a class="nav__link" href="/">Overview</a></li>
|
|
22
|
+
</ul>
|
|
23
|
+
</div>
|
|
24
|
+
</nav>
|
|
25
|
+
<div class="ds-container">
|
|
26
|
+
<div class="section">
|
|
27
|
+
{% block content %}{% endblock %}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
{% block title %}secfoo — Overview{% endblock %}
|
|
3
|
+
{% block content %}
|
|
4
|
+
<span class="ds-overline">Dashboard</span>
|
|
5
|
+
<h1>Assessments overview</h1>
|
|
6
|
+
<p class="ds-body" style="color:var(--color-text-muted);max-width:40rem">
|
|
7
|
+
All security assessments run across every project, in one place.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<h2 style="margin-top:var(--space-10)">Projects</h2>
|
|
11
|
+
{% if projects %}
|
|
12
|
+
<div class="card-grid">
|
|
13
|
+
{% for project in projects %}
|
|
14
|
+
<a class="card card--interactive" href="/projects/{{ project.id }}" style="text-decoration:none;color:inherit;display:block">
|
|
15
|
+
<span class="card__eyebrow">{{ project.kind }}</span>
|
|
16
|
+
<h4 class="card__title">{{ project.display_name }}</h4>
|
|
17
|
+
<p class="card__body">Last run: {{ project.last_run_at | fmt_time }}</p>
|
|
18
|
+
</a>
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</div>
|
|
21
|
+
{% else %}
|
|
22
|
+
<div class="alert alert--info">
|
|
23
|
+
<div>No projects assessed yet. Run <code>secfoo run --skill threat-assessment --agent claude</code> to get started.</div>
|
|
24
|
+
</div>
|
|
25
|
+
{% endif %}
|
|
26
|
+
|
|
27
|
+
<h2 style="margin-top:var(--space-12)">Recent runs</h2>
|
|
28
|
+
{% if recent_runs %}
|
|
29
|
+
<div class="table-wrap">
|
|
30
|
+
<table class="table">
|
|
31
|
+
<thead><tr><th>Started</th><th>Project</th><th>Skill</th><th>Agent</th><th>Status</th></tr></thead>
|
|
32
|
+
<tbody>
|
|
33
|
+
{% for run in recent_runs %}
|
|
34
|
+
<tr class="run-row" onclick="location.href='/runs/{{ run.run_uuid }}'">
|
|
35
|
+
<td>{{ run.started_at | fmt_time }}</td>
|
|
36
|
+
<td>{{ run.project_display_name }}</td>
|
|
37
|
+
<td>{{ run.skill_name }}</td>
|
|
38
|
+
<td>{{ run.agent_id }}</td>
|
|
39
|
+
<td><span class="badge {{ run.status | status_badge }}">{{ run.status }}</span></td>
|
|
40
|
+
</tr>
|
|
41
|
+
{% endfor %}
|
|
42
|
+
</tbody>
|
|
43
|
+
</table>
|
|
44
|
+
</div>
|
|
45
|
+
{% else %}
|
|
46
|
+
<p class="ds-body" style="color:var(--color-text-muted)">No runs yet.</p>
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% endblock %}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
{% block title %}{{ project.display_name }} — secfoo{% endblock %}
|
|
3
|
+
{% block content %}
|
|
4
|
+
<a href="/" class="ds-caption">← All projects</a>
|
|
5
|
+
<span class="ds-overline" style="display:block;margin-top:var(--space-4)">{{ project.kind }}</span>
|
|
6
|
+
<h1>{{ project.display_name }}</h1>
|
|
7
|
+
<p class="ds-caption">{{ project.identifier }}</p>
|
|
8
|
+
|
|
9
|
+
<div class="table-wrap" style="margin-top:var(--space-6)">
|
|
10
|
+
<table class="table">
|
|
11
|
+
<thead><tr><th>Started</th><th>Skill</th><th>Agent</th><th>Status</th><th>Duration</th></tr></thead>
|
|
12
|
+
<tbody>
|
|
13
|
+
{% for run in runs %}
|
|
14
|
+
<tr class="run-row" onclick="location.href='/runs/{{ run.run_uuid }}'">
|
|
15
|
+
<td>{{ run.started_at | fmt_time }}</td>
|
|
16
|
+
<td>{{ run.skill_name }}</td>
|
|
17
|
+
<td>{{ run.agent_id }}</td>
|
|
18
|
+
<td><span class="badge {{ run.status | status_badge }}">{{ run.status }}</span></td>
|
|
19
|
+
<td>{{ run.duration_seconds | fmt_duration }}</td>
|
|
20
|
+
</tr>
|
|
21
|
+
{% endfor %}
|
|
22
|
+
</tbody>
|
|
23
|
+
</table>
|
|
24
|
+
</div>
|
|
25
|
+
{% endblock %}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{% extends "base.html" %}
|
|
2
|
+
{% block title %}{{ run.skill_name }} — secfoo{% endblock %}
|
|
3
|
+
{% block content %}
|
|
4
|
+
<a href="/projects/{{ run.project_id }}" class="ds-caption">← Back to project</a>
|
|
5
|
+
<h1 style="margin-top:var(--space-4)">{{ run.skill_name }}</h1>
|
|
6
|
+
|
|
7
|
+
<div class="card" style="margin-bottom:var(--space-6)">
|
|
8
|
+
<div class="meta-row">
|
|
9
|
+
<div><span class="ds-caption">Status</span><br><span class="badge {{ run.status | status_badge }}">{{ run.status }}</span></div>
|
|
10
|
+
<div><span class="ds-caption">Agent</span><br>{{ run.agent_id }}</div>
|
|
11
|
+
<div><span class="ds-caption">Started</span><br>{{ run.started_at | fmt_time }}</div>
|
|
12
|
+
<div><span class="ds-caption">Duration</span><br>{{ run.duration_seconds | fmt_duration }}</div>
|
|
13
|
+
<div><span class="ds-caption">Exit code</span><br>{{ run.exit_code if run.exit_code is not none else '-' }}</div>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
{% if run.confluence_urls %}
|
|
17
|
+
<div style="margin-top:var(--space-4)">
|
|
18
|
+
<span class="ds-caption">Confluence context</span>
|
|
19
|
+
<ul>
|
|
20
|
+
{% for url in run.confluence_urls %}<li><a href="{{ url }}" target="_blank" rel="noreferrer">{{ url }}</a></li>{% endfor %}
|
|
21
|
+
</ul>
|
|
22
|
+
</div>
|
|
23
|
+
{% endif %}
|
|
24
|
+
|
|
25
|
+
<div style="margin-top:var(--space-4)">
|
|
26
|
+
<a class="btn btn--outline btn--sm" href="/runs/{{ run.run_uuid }}/report.md">Download raw report</a>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="card">
|
|
31
|
+
{% if report_html %}
|
|
32
|
+
{{ report_html | safe }}
|
|
33
|
+
{% else %}
|
|
34
|
+
<p class="ds-body" style="color:var(--color-text-muted)">
|
|
35
|
+
{% if run.status == 'running' %}This assessment is still running.
|
|
36
|
+
{% elif run.status == 'timeout' %}This run timed out before producing a report.
|
|
37
|
+
{% elif run.status == 'binary_not_found' %}The selected agent's CLI was not found on PATH.
|
|
38
|
+
{% else %}No report content available.{% endif %}
|
|
39
|
+
</p>
|
|
40
|
+
{% if run.stderr_excerpt %}
|
|
41
|
+
<div class="alert alert--error" style="margin-top:var(--space-4)">
|
|
42
|
+
<div>
|
|
43
|
+
<div class="alert__title">stderr</div>
|
|
44
|
+
<pre style="white-space:pre-wrap;margin:0;font:var(--text-body-sm)">{{ run.stderr_excerpt }}</pre>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% endif %}
|
|
49
|
+
</div>
|
|
50
|
+
{% endblock %}
|
secfoo/web/templating.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from fastapi.templating import Jinja2Templates
|
|
6
|
+
|
|
7
|
+
TEMPLATES_DIR = Path(__file__).parent / "templates"
|
|
8
|
+
templates = Jinja2Templates(directory=str(TEMPLATES_DIR))
|
|
9
|
+
|
|
10
|
+
_STATUS_BADGE_CLASS = {
|
|
11
|
+
"success": "badge--success",
|
|
12
|
+
"failed": "badge--error",
|
|
13
|
+
"timeout": "badge--warning",
|
|
14
|
+
"binary_not_found": "badge--error",
|
|
15
|
+
"running": "badge--primary",
|
|
16
|
+
"pending": "badge--neutral",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def status_badge_class(status: str) -> str:
|
|
21
|
+
return _STATUS_BADGE_CLASS.get(status, "badge--neutral")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def format_timestamp(value: str | None) -> str:
|
|
25
|
+
if not value:
|
|
26
|
+
return "-"
|
|
27
|
+
return value[:19].replace("T", " ")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def format_duration(value: float | None) -> str:
|
|
31
|
+
if value is None:
|
|
32
|
+
return "-"
|
|
33
|
+
return f"{value:.1f}s"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
templates.env.filters["status_badge"] = status_badge_class
|
|
37
|
+
templates.env.filters["fmt_time"] = format_timestamp
|
|
38
|
+
templates.env.filters["fmt_duration"] = format_duration
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: secfoo
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Context-based security architectural assessment orchestrator: pick skills, targets, and an agent CLI to run them.
|
|
5
|
+
Author-email: RakFort <info@rakfort.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: compliance,llm-agent,owasp,security,stride,threat-modeling
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Security
|
|
15
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Requires-Dist: fastapi>=0.110
|
|
18
|
+
Requires-Dist: jinja2>=3.1
|
|
19
|
+
Requires-Dist: markdown-it-py>=3.0
|
|
20
|
+
Requires-Dist: rich>=13.0
|
|
21
|
+
Requires-Dist: typer>=0.12
|
|
22
|
+
Requires-Dist: uvicorn[standard]>=0.29
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: httpx>=0.27; extra == 'dev'
|
|
25
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
26
|
+
Requires-Dist: ruff>=0.4; extra == 'dev'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# secfoo
|
|
30
|
+
|
|
31
|
+
Context-based security architectural assessment orchestrator.
|
|
32
|
+
|
|
33
|
+
Pick one or more security **skills** (Threat Assessment, Prompt Review,
|
|
34
|
+
Responsible AI Compliance, Deployment Readiness), point them at a **target**
|
|
35
|
+
(a GitHub URL, the current local directory, plus optional Confluence links
|
|
36
|
+
for extra context), choose which coding-agent CLI runs them (Claude Code,
|
|
37
|
+
Cursor, Antigravity, or Gemini CLI), and browse every assessment ever run,
|
|
38
|
+
across every project, in a local web dashboard.
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install -e ".[dev]"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Run a skill against the current directory with Claude Code
|
|
50
|
+
secfoo run --skill threat-assessment --agent claude
|
|
51
|
+
|
|
52
|
+
# Run multiple skills against a GitHub repo, with Confluence context
|
|
53
|
+
secfoo run \
|
|
54
|
+
--skill threat-assessment --skill deployment-readiness \
|
|
55
|
+
--target https://github.com/org/repo \
|
|
56
|
+
--confluence https://yourcompany.atlassian.net/wiki/spaces/SEC/pages/123 \
|
|
57
|
+
--agent agent
|
|
58
|
+
|
|
59
|
+
# See what's on PATH
|
|
60
|
+
secfoo agents
|
|
61
|
+
|
|
62
|
+
# List past runs
|
|
63
|
+
secfoo list
|
|
64
|
+
|
|
65
|
+
# View a single run's report in the terminal
|
|
66
|
+
secfoo show <run-uuid>
|
|
67
|
+
|
|
68
|
+
# Launch the local dashboard
|
|
69
|
+
secfoo serve
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
See [`design-system/README.md`](design-system/README.md) for the design
|
|
73
|
+
system used by the dashboard.
|