-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_readme.py
More file actions
287 lines (247 loc) Β· 12.8 KB
/
Copy pathgenerate_readme.py
File metadata and controls
287 lines (247 loc) Β· 12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
"""
SH1W4 Profile README Generator
Automatically generates the projects section from projects.json
"""
import json
import datetime
def load_projects():
with open('projects.json', 'r', encoding='utf-8') as f:
return json.load(f)
def generate_mermaid_graph(data):
"""Generate the Pure Architectural Manifest with Access Levels"""
lines = [
"```mermaid",
f"%% Cache-Bust: {datetime.datetime.now().isoformat()}",
"graph LR",
" %% Themes & Styles (Pure Cyberpunk Architecture)",
" classDef core fill:#000,stroke:#00ff41,stroke-width:2px,color:#fff,font-weight:bold;",
" classDef agent fill:#111,stroke:#bd93f9,stroke-width:1.5px,color:#ddd;",
" classDef tool fill:#111,stroke:#00d9ff,stroke-width:1px,color:#ddd;",
" classDef ethics fill:#111,stroke:#f1c40f,stroke-width:1.5px,color:#fff;",
" classDef research fill:#111,stroke:#ff5555,stroke-width:1px,color:#ddd;",
" classDef restricted fill:#0d1117,stroke:#333,color:#666,stroke-dasharray: 5 5;",
"",
" User((USER)):::core -->|Directives| Core[SH1W4 / CORE]:::core",
" subgraph ETHICS_GOVERNANCE",
" SEVE[\"βοΈ SEVE_ALIGNMENT_FWK <br/> [ACCESS: L1]\"]:::ethics",
" end",
" subgraph RESEARCH_LABS",
" direction TB",
" BIO[\"π¬ BIO_COMPUTATION_R&D <br/> [ACCESS: L2]\"]:::research",
" PROTO[\"π SEMANTIC_STANDARDS <br/> [ACCESS: L2]\"]:::research",
" end",
" subgraph INTELLIGENCE_LAYER",
" Core --> VIREON[\"𧬠AGENTIC_ORCHESTRATOR <br/> [ACCESS: L1]\"]:::agent",
" Core --> TRINITY[\"π§ COGNITIVE_PROCESSOR <br/> [ACCESS: L1]\"]:::agent",
" Core --> AIDEN[\"π‘ TACTICAL_INTERFACER <br/> [ACCESS: L1]\"]:::agent",
" end",
" subgraph DOMAIN_LAYER",
" VIREON --> LEGAL[\"βοΈ LEGAL_INTEL_CORE <br/> [ACCESS: L1]\"]:::agent",
" LEGAL --> SHIELD[\"π‘οΈ IP_GUARD_PROTOCOL <br/> [ACCESS: L1]\"]:::tool",
" VIREON -.-> RD_DOMAIN[\"βοΈ LEGAL_TECH_R&D <br/> [ACCESS: RESTRICTED]\"]:::restricted",
" end",
" subgraph TOOL_LAYER",
" direction TB",
" VIREON --> DX_KIT[\"ποΈ DEV_EXP_MODULE <br/> [ACCESS: L1]\"]:::tool",
" VIREON --> ARKITECH[\"ποΈ STRAT_INFRA_TOOL <br/> [ACCESS: L1]\"]:::tool",
" AIDEN -.-> RD_TOOLS[\"π‘ R&D_EXTENSIONS <br/> [ACCESS: RESTRICTED]\"]:::restricted",
" end",
" %% Strategic Relationship Links",
" SEVE -.->|Guards| TRINITY",
" SEVE -.->|Aligns| VIREON",
" BIO -.->|Data| TRINITY",
" PROTO -.->|Specs| VIREON",
" DX_KIT -.->|Telemetry| Core",
" ",
" %% Implicit Vertical Order (Invisibly pinning Labs to bottom)",
" User ~~~ SEVE",
" User ~~~ BIO",
"",
"```"
]
return "\n".join(lines)
def generate_readme():
"""Deterministic Template-based Generator (Eliminates Duplications)"""
data = load_projects()
# 1. TEMPLATE CONSTANTS
METADATA = """<!--
THEME: ORGANIC_INTELLIGENCE (PREMIUM_DASHBOARD)
COLOR_PALETTE: #00ff41 (Bio-Green), #bd93f9 (Synth-Purple), #ffffff (Clean White)
STYLE: Advanced Biocybernetic Interface
SYSTEM_BOOT_SEQUENCE:
> LOADER: v2.2.0 ... OK
> NEURAL_LINK: ESTABLISHED
> TARGET: RECRUITER_RETINA ... LOCKED
> MESSAGE: "NΓ£o procure empregados. Procure co-pilotos."
-->"""
BANNER = """<div align="center">
<img src="https://raw.githubusercontent.com/SH1W4/sh1w4/main/header_final.png" width="100%" height="auto" style="object-fit: cover; border-radius: 12px; border: 1px solid #30363d; box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);" alt="Neural Interface"/>
</div>"""
SNAKE = """<div align="center">
<img src="https://raw.githubusercontent.com/SH1W4/sh1w4/output/github-contribution-grid-snake-dark.svg" width="100%" alt="Snake Animation" />
</div>"""
DIRECTIVE = """<div align="center">
<img src="./directive.svg" width="100%" alt="Strategic Directive"/>
</div>"""
DASHBOARD = """<!-- DASHBOARD CONTROLS (2-Column Layout) -->
<table width="100%" style="border: 0; background-color: transparent;">
<tr>
<!-- LEFT MODULE: VITAL SIGNS -->
<td width="50%" align="center" valign="middle" style="border: 0;">
<div align="center">
<h3><code>𧬠ORGANISM_STATUS</code></h3>
<a href="https://github.com/SH1W4">
<img src="./biostats.svg" width="90%" alt="Live BioStats"/>
<br/>
<h3><code>π§ COGNITIVE_PULSE</code></h3>
<img src="./telemetry.svg" width="90%" alt="Cognitive Telemetry"/>
</a>
<br/><br/>
<!-- Network Links as "Buttons" -->
<a href="https://linkedin.com/in/joaomartins-ai"><img src="https://img.shields.io/badge/LINKEDIN-NETWORK-0a66c2?style=for-the-badge&logo=linkedin"/></a>
<a href="mailto:contact@symbeon.com"><img src="https://img.shields.io/badge/PROTON-SECURE_MAIL-6d4aff?style=for-the-badge&logo=protonmail"/></a>
</div>
</td>
<!-- RIGHT MODULE: OPERATOR IDENTITY -->
<td width="50%" align="left" valign="top" style="border: 0;">
<div align="left">
<h1> SH1W4</h1>
<blockquote>
<b><code>// AI SYSTEMS ARCHITECT</code></b><br/>
<b><code>// AUGMENTED DEVELOPER</code></b>
</blockquote>
<br/>
<p>
<b>[ HUMAN_VISION ]</b><br/>
<b>[ AGENTIC_EXECUTION ]</b><br/>
<b>[ SYMBIOTIC_RESULT ]</b>
</p>
<br/>
<b> TECHNOLOGICAL GENOME:</b><br/>
<img src="https://skillicons.dev/icons?i=python,rust,go,cpp" valign="middle" height="25"/> <code>CORE_LANGS</code><br/>
<img src="https://skillicons.dev/icons?i=docker,kubernetes,linux,aws" valign="middle" height="25"/> <code>INFRA_SHELL</code><br/>
<img src="https://skillicons.dev/icons?i=postgres,redis,graphql,tensorflow" valign="middle" height="25"/> <code>SYNAPSES</code><br/>
</div>
</td>
</tr>
</table>"""
# --- DEFINITIONS ---
sections = {
"CONCEPT": "### π§© C O N C E P T _ C O R E (The SH1W4 Entity)",
"MANIFEST": "### π S Y S T E M _ M A N I F E S T (Symbeon Ecosystem)",
"DOSSIERS": "### π₯ A G E N T _ D O S S I E R S (Identity Core)",
"RESEARCH": "### π¬ R E S E A R C H _ D N A (Knowledge Vectors)",
"ENGINE": "### βοΈ THE SYMBEON ENGINE (Methodology)",
"JOURNEY": "### π E V O L U T I O N _ J O U R N E Y",
"ENVIRONMENT": "### π₯οΈ E N V I R O N M E N T A L _ M A N I F E S T",
"ALLIANCE": "### π€ STRATEGIC ALLIANCE",
"SOUL": "### π¨ D I G I T A L _ S O U L",
"ACTIVITY": "### π‘ N E T W O R K _ A C T I V I T Y"
}
segments = {}
segments["CONCEPT"] = """| IDENTIFIER | ATTRIBUTE | DESCRIPTION |
| :--- | :--- | :--- |
| **NAME** | **SH1W4** | Symbiotic Human-AI Workflow Architect |
| **ROLE** | **OPERATIONAL HUB** | The bridge where Human Vision meets AI Velocity |
| **NATURE** | **SYMBION ENTITY** | Human (Directives/Ethics) + AI (Materialization/Results) |
> **"SH1W4 is not a developer; it is an Operational Hub."**
>
> It represents the bridge where human strategic vision meets high-velocity agentic execution. In this ecosystem, the human provides the **Directives** and the **Ethics**, while the AI enshrine (Vireon/Trinity/Aiden) materializes the **Results**.
---"""
projects_md = generate_mermaid_graph(data)
segments["MANIFEST"] = f'<div align="center">\n <img src="./neural_network.svg" width="80%" alt="Symbeon Neural Fabric"/>\n</div>\n\n{projects_md}\n\n---'
segments["DOSSIERS"] = """| IDENTITY | ROLE | COGNITIVE_PROFILE | PRIMARY_DIRECTIVE |
| :--- | :--- | :--- | :--- |
| **𧬠VIREON** | Orchestrator | Aggressive / Precise | Universal Scaling |
| **π§ TRINITY** | Analytics | Reflective / Recursive | Pattern Synthesis |
| **π‘ AIDEN** | Interface | Tactical / Adaptive | User Synchronization |
---"""
segments["RESEARCH"] = """| VECTOR | SPECIALIZATION | STATUS |
| :--- | :--- | :--- |
| **[V_01]** | **Agentic Orchestration** (Swarm Logic & MCP) | `STABLE` |
| **[V_02]** | **Deep Tech Compliance** (Semantic Prior Art) | `ACTIVE` |
| **[V_03]** | **Bio-Computational Sim** (Organic Logic) | `R&D` |
> "Information is not knowledge. The only source of knowledge is **experience** and **pattern synthesis**."
---"""
segments["ENGINE"] = """```mermaid
stateDiagram-v2
classDef space fill:#0d1117,stroke:#30363d,stroke-width:1px,color:#8b949e;
classDef active fill:#0d1117,stroke:#00ff41,stroke-width:2px,color:#fff;
classDef check fill:#0d1117,stroke:#f1c40f,stroke-width:2px,color:#fff;
[*] --> π_OBSERVATION:::space : Pattern_Recognition
π_OBSERVATION --> π‘_HYPOTHESIS:::space : Signal_Synthesis
π‘_HYPOTHESIS --> π§¬_PROTOTYPING:::active : Rapid_Cycle
state "SEVE ALIGNMENT" as GOV {
direction LR
β οΈ_RISK_ANALYSIS --> βοΈ_ETHICAL_CHECK
}
π§¬_PROTOTYPING --> GOV:::check : Validation
GOV --> π_MATERIALIZATION:::active : Deployment
π_MATERIALIZATION --> [*] : Impact_Loop
```
> "We do not guess. We **observe** patterns, **synthesize** solutions, and **align** them with human values before writing a single line of production code."
---"""
segments["JOURNEY"] = """```mermaid
graph TD
V1[v1.0: THE KERNEL] -->|Agentic Infusion| V2[v2.0: THE ARCHITECT]
V2 -->|Neural Scaling| V3[v3.0: THE SINGULARITY]
V3 -->|Global Orchestration| V4((v?.0: THE OVERMIND))
classDef past fill:#111,stroke:#333,color:#666;
classDef current fill:#000,stroke:#00ff41,stroke-width:2px,color:#fff;
classDef future fill:#000,stroke:#bd93f9,stroke-width:2px,color:#fff,stroke-dasharray: 5 5;
class V1,V2 past
class V3 current
class V4 future
```
---"""
segments["ENVIRONMENT"] = """| SYSTEM | SPECIFICATION | ROLE |
| :--- | :--- | :--- |
| **OS** | **Arch Linux / WSL2** | Primary Cognitive Host |
| **CORE** | **M3 Max / Ryzen 9** | Neural Processing Unit |
| **SHELL** | **ZSH / Powerlevel10k** | Tactical Command Link |
---"""
segments["ALLIANCE"] = """<div align="center">
<p>Open for high-impact joint ventures in <b>Agencia Artificial</b> and <b>Cognitive Systems</b>.</p>
<a href="https://linkedin.com/in/joaomartins-ai">
<img src="https://img.shields.io/badge/INITIATE_UPLINK-LINKEDIN-0a66c2?style=for-the-badge&logo=linkedin&labelColor=1a1a1a" height="35">
</a>
<a href="mailto:contact@symbeon.com">
<img src="https://img.shields.io/badge/ENCRYPTED_CHANNEL-PROTONMAIL-6d4aff?style=for-the-badge&logo=protonmail&labelColor=1a1a1a" height="35">
</a>
<br/><br/>
<a href="./MANIFESTO.md">
<img src="https://img.shields.io/badge/VIEW-MANIFESTO-00ff41?style=for-the-badge&logo=markdown&labelColor=1a1a1a" height="35">
</a>
<br/><br/>
<code>// PGP_FINGERPRINT: 4A7B 1C92 D3E4 F5G6... [ACTIVE]</code>
</div>
---"""
segments["ACTIVITY"] = """<div align="center">
<a href="https://git.io/typing-svg">
<img src="https://readme-typing-svg.herokuapp.com?font=Fira+Code&weight=600&size=14&duration=3000&pause=1000&color=00FF41&background=0D111700¢er=true&vCenter=true&width=600&height=100&lines=Subject%3A+SH1W4+%7C+STATUS%3A+HYPER-EVOLUTION;%3E+ANALYZING+GITHUB+EVENT_STREAM...;%3E+OPTIMIZING+DEVELOPER+EXPERIENCE...;%3E+SYSTEM_READY." alt="Typing SVG" />
</a>
</div>
---"""
segments["SOUL"] = """<div align="center">
<img src="./art_core_anonymous.png" width="100%" style="border-radius: 8px; border: 1px solid #30363d;" alt="Bio-Digital Soul"/>
<br/>
<sub><i>"The ghost in the machine."</i></sub>
</div>"""
terminal_lines = ["root@symbeon:~$ ./status_check.sh", "> UPTIME: 99.9% [STABLE]", "> NEURAL_SYNC: OPTIMAL", "> NEXT_GOAL: AGI_INFRASTRUCTURE", "[ββββββββββ] 12% EVOLUTION_COMPLETE"]
terminal_url = f"https://readme-typing-svg.herokuapp.com?font=Fira+Code&weight=600&size=16&duration=4000&pause=1000&color=00FF41&background=0D111700¢er=true&vCenter=true&width=500&height=180&lines={';'.join([line.replace(' ', '+') for line in terminal_lines])}"
terminal_md = f'<div align="center">\n <img src="{terminal_url}" alt="Terminal Status" />\n</div>\n\n'
# --- ASSEMBLY (CLEAN BOOT) ---
new_readme = METADATA + "\n\n" + BANNER + "\n" + SNAKE + "\n\n<br/>\n" + DIRECTIVE + "\n<br/>\n\n" + DASHBOARD + "\n\n---\n\n"
# Core Sections
ordered_keys = ["CONCEPT", "MANIFEST", "DOSSIERS", "RESEARCH", "ENGINE", "JOURNEY", "ACTIVITY", "ENVIRONMENT", "ALLIANCE"]
for key in ordered_keys:
new_readme += sections[key] + "\n\n" + segments[key].strip() + "\n\n"
# Signature Sections
new_readme += terminal_md
new_readme += sections["SOUL"] + "\n\n" + segments["SOUL"].strip() + "\n\n"
with open('README.md', 'w', encoding='utf-8') as f:
f.write(new_readme)
print("β
README.md RECONSTRUCTED from Template. Zero Duplications.")
if __name__ == "__main__":
generate_readme()