konoha-mcp 2.1.13 → 2.1.15
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/.agents/skills/konoha/SKILL.md +19 -3
- package/.agents/skills/tokubetsu-jonin-skill/SKILL.md +48 -23
- package/.agents/skills/tokubetsu-jonin-skill/references/docx.md +25 -4
- package/.agents/skills/tokubetsu-jonin-skill/references/elite-powerpoint-designer.md +48 -23
- package/.agents/skills/tokubetsu-jonin-skill/references/pdf.md +78 -46
- package/.agents/skills/tokubetsu-jonin-skill/references/pptx.md +25 -3
- package/.agents/skills/tokubetsu-jonin-skill/references/xlsx.md +60 -33
- package/.agents/skills/tokubetsu-jonin-skill/references/zero-ai-human-writing.md +34 -11
- package/.agents/skills.fingerprint +1 -1
- package/README.md +18 -6
- package/apps/web/build/adapter-node.js +1 -1
- package/apps/web/build/client/_app/version.json +1 -1
- package/apps/web/build/client/_app/version.json.br +0 -0
- package/apps/web/build/client/_app/version.json.gz +0 -0
- package/apps/web/build/server/chunks/instance.js +3 -3
- package/apps/web/build/server/chunks/internal.js +1 -1
- package/apps/web/package.json +1 -1
- package/bin/cli.js +10 -10
- package/bin/lib/ui_commands.js +4 -4
- package/docs/ALL-WORKFLOW-DIAGRAMS.md +642 -0
- package/docs/ARCHITECTURE.md +15 -7
- package/docs/SETUP-CLI.md +1 -1
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.13_2026-10-07.md +10 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.14_2026-10-08.md +88 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.15_2026-10-08.md +74 -0
- package/docs/diagrams/README.md +1 -1
- package/package.json +3 -2
- package/src/agent_manager.js +20 -4
- package/src/antigravity_manager.js +8 -6
- package/src/canonical_skills.js +1 -1
- package/src/codex_manager.js +3 -3
- package/src/cursor_bootstrap.js +3 -3
- package/src/cursor_manager.js +4 -3
- package/src/deploy_utils.js +38 -15
- package/src/docs_ai_detector.js +9 -6
- package/src/file_tools_router.js +3 -1
- package/src/mcp/anti_slop.js +281 -0
- package/src/mcp/memory_reporting.js +21 -0
- package/src/mcp/skills.js +274 -0
- package/src/mcp/tool_dispatch.js +14 -1
- package/src/mcp/workflow.js +1 -1
- package/src/mcp_tool_manifest.json +59 -0
- package/src/platform_utils.js +11 -9
- package/src/templates/agents.yaml +21 -0
- package/src/templates/skills/konoha/SKILL.md +19 -3
- package/src/templates/skills/tokubetsu-jonin-skill/SKILL.md +48 -23
- package/src/templates/skills/tokubetsu-jonin-skill/references/docx.md +25 -4
- package/src/templates/skills/tokubetsu-jonin-skill/references/elite-powerpoint-designer.md +48 -23
- package/src/templates/skills/tokubetsu-jonin-skill/references/pdf.md +78 -46
- package/src/templates/skills/tokubetsu-jonin-skill/references/pptx.md +25 -3
- package/src/templates/skills/tokubetsu-jonin-skill/references/xlsx.md +60 -33
- package/src/templates/skills/tokubetsu-jonin-skill/references/zero-ai-human-writing.md +34 -11
- package/src/web_server.js +16 -4
- package/.agents/skills/helm-chart-scaffolding/SKILL.md +0 -71
- package/.agents/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -42
- package/.agents/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -185
- package/.agents/skills/helm-chart-scaffolding/references/chart-structure.md +0 -509
- package/.agents/skills/helm-chart-scaffolding/references/details.md +0 -497
- package/.agents/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -244
- package/src/templates/skills/helm-chart-scaffolding/SKILL.md +0 -71
- package/src/templates/skills/helm-chart-scaffolding/references/chart-structure.md +0 -509
- package/src/templates/skills/helm-chart-scaffolding/references/details.md +0 -497
|
@@ -21,28 +21,52 @@ Use this reference whenever generating, styling, or auditing standalone PDF docu
|
|
|
21
21
|
## 1. Zero-AI Human Document Invariants
|
|
22
22
|
|
|
23
23
|
When creating executive PDFs:
|
|
24
|
-
- **Strict Light Mode
|
|
25
|
-
- **
|
|
24
|
+
- **Strict Light Mode & Zero Black/Dark Invariant**: Under NO circumstances create, generate, or style PDF documents with black, dark gray, or dark blue anywhere (text, fills, lines, backgrounds). Strictly forbidden: `#000000`, `#000`, dark navy, dark slate (`#0F172A`, `#1E293B`, `#1E3A8A`), or dark blocks. All document backgrounds must be pure white (`#FFFFFF`) or pearl (`#FAFAFA`), with text strictly in **medium slate `#64748B`**.
|
|
25
|
+
- **20 Canonical 4-Base-Color Themes**: When decorative color is applied to headers, footers, cover accents, or callout ribbons, ALWAYS apply a smooth **4-base-color gradient**, randomly selecting ONE of the 20 canonical themes (T01–T20) per document and keeping it consistent throughout:
|
|
26
|
+
- **T01**: `linear-gradient(90deg,#8A4FD0,#E8453C,#F08A24,#F7C948)`
|
|
27
|
+
- **T02**: `linear-gradient(90deg,#17B3A3,#3A8DDE,#8A4FD0,#E85DA0)`
|
|
28
|
+
- **T03**: `linear-gradient(90deg,#34B38A,#F7C948,#F08A24,#E85DA0)`
|
|
29
|
+
- **T04**: `linear-gradient(90deg,#3A8DDE,#17B3A3,#6FCF7A,#F7C948)`
|
|
30
|
+
- **T05**: `linear-gradient(90deg,#8A4FD0,#D6459E,#E8453C,#F5A04A)`
|
|
31
|
+
- **T06**: `linear-gradient(90deg,#5CC46A,#F7C948,#F08A24,#E8453C)`
|
|
32
|
+
- **T07**: `linear-gradient(90deg,#4F8DF0,#8A4FD0,#E85DA0,#F5A04A)`
|
|
33
|
+
- **T08**: `linear-gradient(90deg,#17B3A3,#6FCF7A,#F7C948,#F2705F)`
|
|
34
|
+
- **T09**: `linear-gradient(90deg,#3AA6C9,#8A4FD0,#E85DA0,#F7C948)`
|
|
35
|
+
- **T10**: `linear-gradient(90deg,#3A8DDE,#52D1BC,#8BCB4A,#F5A623)`
|
|
36
|
+
- **T11**: `linear-gradient(90deg,#8A4FD0,#E85DA0,#F2705F,#F7C948)`
|
|
37
|
+
- **T12**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#E85D75)`
|
|
38
|
+
- **T13**: `linear-gradient(90deg,#4F8DF0,#D6459E,#E85D75,#F5A04A)`
|
|
39
|
+
- **T14**: `linear-gradient(90deg,#8A4FD0,#3A8DDE,#17B3A3,#8BCB4A)`
|
|
40
|
+
- **T15**: `linear-gradient(90deg,#E85DA0,#E8453C,#F08A24,#8BCB4A)`
|
|
41
|
+
- **T16**: `linear-gradient(90deg,#7C5CE0,#3A8DDE,#52D1BC,#6FCF7A)`
|
|
42
|
+
- **T17**: `linear-gradient(90deg,#E8453C,#F08A24,#F7C948,#8BCB4A)`
|
|
43
|
+
- **T18**: `linear-gradient(90deg,#3A8DDE,#8A4FD0,#D6459E,#F2705F)`
|
|
44
|
+
- **T19**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#F08A24)`
|
|
45
|
+
- **T20**: `linear-gradient(90deg,#E85DA0,#F08A24,#F7C948,#17B3A3)`
|
|
26
46
|
- **Dynamic Two-Pass Pagination**: Every multi-page PDF must include running headers/footers with dynamic page numbering in the exact format: `Page X of Y`. Hardcoded single numbers (`Page 1`) signal naive generation.
|
|
27
|
-
- **
|
|
28
|
-
- **Executive Data Tables**: Table headers use light executive fills (`#F1F5F9`
|
|
29
|
-
- **Executive Callout Boxes**: Light tinted fill (`#
|
|
47
|
+
- **Strict Typography Contract**: PDF/digital deliverables strictly use **Inter (headings and body)** (fallback: Helvetica/Arial). Body copy at 10–10.5pt with 14–15pt leading in medium slate `#64748B`. Headlines in bold, authoritative hierarchy (H1: 22–26pt, H2: 15–18pt, H3: 12–14pt) in medium slate `#64748B`.
|
|
48
|
+
- **Executive Data Tables**: Table headers use light executive fills (`#F1F5F9`) with `#64748B` typography. Subtle grid borders (`#CBD5E1` / `#E2E8F0`). Alternating rows use pearl shading (`#F8FAFC`).
|
|
49
|
+
- **Executive Callout Boxes**: Light tinted fill (`#F8FAFC`) with a 4-color gradient accent bar along the left edge.
|
|
30
50
|
- **Strict Zero Watermark Invariant**: Under NO circumstances should generated, styled, or compiled PDFs include watermarks, diagonal background stamps ("DRAFT", "CONFIDENTIAL", "SAMPLE"), translucent overlay text, or evaluation markings. All pages must be crisp, unblemished, executive-class documents.
|
|
31
51
|
- **Metadata Scrubbing**: Author, Title, and Subject fields must be sanitized to human executive attributes; automated generator tags (e.g. `ReportLab PDF Library`, `WeasyPrint`) must be purged.
|
|
52
|
+
- **Mandatory Kage Review Gate**: Every generated PDF document must undergo Kage review before completion.
|
|
32
53
|
|
|
33
54
|
---
|
|
34
55
|
|
|
35
56
|
## 2. Professional Color Palettes (Pure Light Mode)
|
|
36
57
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
|
40
|
-
|
|
41
|
-
| **
|
|
42
|
-
| **
|
|
43
|
-
| **
|
|
44
|
-
| **Table Header
|
|
45
|
-
| **
|
|
58
|
+
Never use black, dark gray, dark blue, or dark theme fills. Use refined business-class light palettes with text in medium slate `#64748B`:
|
|
59
|
+
|
|
60
|
+
| Element | Specification & Values |
|
|
61
|
+
|---|---|
|
|
62
|
+
| **Page Background** | Pure White `#FFFFFF` or Soft Pearl `#FAFAFA` |
|
|
63
|
+
| **Typography (Headings & Body)** | Medium Slate `#64748B` (Inter font exclusively) |
|
|
64
|
+
| **4-Base-Color Accent Gradient** | 4-base-color gradient ribbon matching chosen theme (T01–T20) |
|
|
65
|
+
| **Table Header Fill** | Executive Light Tint `#F1F5F9` |
|
|
66
|
+
| **Table Header Text** | Medium Slate `#64748B` (Bold) |
|
|
67
|
+
| **Table Cell Borders** | Subtle Light Slate `#CBD5E1` / `#E2E8F0` |
|
|
68
|
+
| **Alternating Rows** | Soft Pearl `#F8FAFC` |
|
|
69
|
+
| **Callout Background** | Soft Slate `#F8FAFC` with 4-color left border accent |
|
|
46
70
|
|
|
47
71
|
---
|
|
48
72
|
|
|
@@ -88,22 +112,26 @@ class NumberedCanvas(canvas.Canvas):
|
|
|
88
112
|
if self._pageNumber > 1:
|
|
89
113
|
self.drawString(54, 11 * inch - 36, "Konoha Infrastructure Engineering · Architecture Audit")
|
|
90
114
|
self.drawRightString(8.5 * inch - 54, 11 * inch - 36, "Q3 Production Performance")
|
|
91
|
-
#
|
|
92
|
-
self.setFillColor(colors.HexColor("#
|
|
93
|
-
self.rect(54, 11 * inch - 42,
|
|
94
|
-
self.setFillColor(colors.HexColor("#
|
|
95
|
-
self.rect(
|
|
96
|
-
self.setFillColor(colors.HexColor("#
|
|
97
|
-
self.rect(
|
|
115
|
+
# 4-Base-Color Gradient Running Header Accent Ribbon (Theme T01)
|
|
116
|
+
self.setFillColor(colors.HexColor("#8A4FD0"))
|
|
117
|
+
self.rect(54, 11 * inch - 42, 125, 2, fill=True, stroke=False)
|
|
118
|
+
self.setFillColor(colors.HexColor("#E8453C"))
|
|
119
|
+
self.rect(179, 11 * inch - 42, 125, 2, fill=True, stroke=False)
|
|
120
|
+
self.setFillColor(colors.HexColor("#F08A24"))
|
|
121
|
+
self.rect(304, 11 * inch - 42, 125, 2, fill=True, stroke=False)
|
|
122
|
+
self.setFillColor(colors.HexColor("#F7C948"))
|
|
123
|
+
self.rect(429, 11 * inch - 42, 75, 2, fill=True, stroke=False)
|
|
98
124
|
|
|
99
125
|
# Footer (all pages)
|
|
100
|
-
#
|
|
101
|
-
self.setFillColor(colors.HexColor("#
|
|
102
|
-
self.rect(54, 46,
|
|
103
|
-
self.setFillColor(colors.HexColor("#
|
|
104
|
-
self.rect(
|
|
105
|
-
self.setFillColor(colors.HexColor("#
|
|
106
|
-
self.rect(
|
|
126
|
+
# 4-Base-Color Gradient Running Footer Accent Ribbon (Theme T01)
|
|
127
|
+
self.setFillColor(colors.HexColor("#8A4FD0"))
|
|
128
|
+
self.rect(54, 46, 125, 1.5, fill=True, stroke=False)
|
|
129
|
+
self.setFillColor(colors.HexColor("#E8453C"))
|
|
130
|
+
self.rect(179, 46, 125, 1.5, fill=True, stroke=False)
|
|
131
|
+
self.setFillColor(colors.HexColor("#F08A24"))
|
|
132
|
+
self.rect(304, 46, 125, 1.5, fill=True, stroke=False)
|
|
133
|
+
self.setFillColor(colors.HexColor("#F7C948"))
|
|
134
|
+
self.rect(429, 46, 75, 1.5, fill=True, stroke=False)
|
|
107
135
|
|
|
108
136
|
self.drawString(54, 32, "Confidential · Internal Executive Review Only")
|
|
109
137
|
page_str = f"Page {self._pageNumber} of {page_count}"
|
|
@@ -129,7 +157,7 @@ def build_executive_pdf(output_path="executive_report.pdf"):
|
|
|
129
157
|
fontName='Helvetica-Bold',
|
|
130
158
|
fontSize=24,
|
|
131
159
|
leading=30,
|
|
132
|
-
textColor=colors.HexColor("#
|
|
160
|
+
textColor=colors.HexColor("#64748B"),
|
|
133
161
|
spaceAfter=8
|
|
134
162
|
)
|
|
135
163
|
subtitle_style = ParagraphStyle(
|
|
@@ -138,7 +166,7 @@ def build_executive_pdf(output_path="executive_report.pdf"):
|
|
|
138
166
|
fontName='Helvetica',
|
|
139
167
|
fontSize=12,
|
|
140
168
|
leading=16,
|
|
141
|
-
textColor=colors.HexColor("#
|
|
169
|
+
textColor=colors.HexColor("#64748B"),
|
|
142
170
|
spaceAfter=20
|
|
143
171
|
)
|
|
144
172
|
body_style = ParagraphStyle(
|
|
@@ -147,7 +175,7 @@ def build_executive_pdf(output_path="executive_report.pdf"):
|
|
|
147
175
|
fontName='Helvetica',
|
|
148
176
|
fontSize=10,
|
|
149
177
|
leading=14,
|
|
150
|
-
textColor=colors.HexColor("#
|
|
178
|
+
textColor=colors.HexColor("#64748B"),
|
|
151
179
|
spaceAfter=10
|
|
152
180
|
)
|
|
153
181
|
|
|
@@ -183,7 +211,7 @@ def build_executive_pdf(output_path="executive_report.pdf"):
|
|
|
183
211
|
t = Table(table_data, colWidths=[150, 110, 110, 134])
|
|
184
212
|
t.setStyle(TableStyle([
|
|
185
213
|
('BACKGROUND', (0, 0), (-1, 0), colors.HexColor("#F1F5F9")),
|
|
186
|
-
('TEXTCOLOR', (0, 0), (-1, 0), colors.HexColor("#
|
|
214
|
+
('TEXTCOLOR', (0, 0), (-1, 0), colors.HexColor("#64748B")),
|
|
187
215
|
('BOTTOMPADDING', (0, 0), (-1, -1), 6),
|
|
188
216
|
('TOPPADDING', (0, 0), (-1, -1), 6),
|
|
189
217
|
('GRID', (0, 0), (-1, -1), 0.5, colors.HexColor("#CBD5E1")),
|
|
@@ -227,32 +255,32 @@ For environments leveraging HTML-to-PDF compilation via `weasyprint`, use strict
|
|
|
227
255
|
}
|
|
228
256
|
@bottom-right {
|
|
229
257
|
content: "Page " counter(page) " of " counter(pages);
|
|
230
|
-
font-family: '
|
|
258
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
231
259
|
font-size: 8pt;
|
|
232
260
|
font-weight: bold;
|
|
233
|
-
color: #
|
|
261
|
+
color: #64748B;
|
|
234
262
|
}
|
|
235
263
|
}
|
|
236
264
|
|
|
237
265
|
body {
|
|
238
|
-
font-family: '
|
|
239
|
-
color: #
|
|
266
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
267
|
+
color: #64748B;
|
|
240
268
|
background-color: #FFFFFF;
|
|
241
269
|
line-height: 1.5;
|
|
242
270
|
font-size: 10pt;
|
|
243
271
|
}
|
|
244
272
|
|
|
245
|
-
/*
|
|
273
|
+
/* 4-Base-Color Theme Gradient Accent Ribbon (Theme T01) */
|
|
246
274
|
.gradient-bar {
|
|
247
275
|
height: 4px;
|
|
248
|
-
background: linear-gradient(90deg, #
|
|
276
|
+
background: linear-gradient(90deg, #8A4FD0 0%, #E8453C 33%, #F08A24 66%, #F7C948 100%);
|
|
249
277
|
margin-bottom: 24px;
|
|
250
278
|
border-radius: 2px;
|
|
251
279
|
}
|
|
252
280
|
|
|
253
281
|
h1 {
|
|
254
282
|
font-size: 22pt;
|
|
255
|
-
color: #
|
|
283
|
+
color: #64748B;
|
|
256
284
|
margin: 0 0 6px 0;
|
|
257
285
|
font-weight: 700;
|
|
258
286
|
}
|
|
@@ -271,7 +299,7 @@ table {
|
|
|
271
299
|
|
|
272
300
|
th {
|
|
273
301
|
background-color: #F1F5F9;
|
|
274
|
-
color: #
|
|
302
|
+
color: #64748B;
|
|
275
303
|
font-weight: 600;
|
|
276
304
|
text-align: left;
|
|
277
305
|
padding: 8px 12px;
|
|
@@ -282,6 +310,7 @@ th {
|
|
|
282
310
|
td {
|
|
283
311
|
padding: 8px 12px;
|
|
284
312
|
border: 1px solid #E2E8F0;
|
|
313
|
+
color: #64748B;
|
|
285
314
|
font-size: 9pt;
|
|
286
315
|
}
|
|
287
316
|
|
|
@@ -304,9 +333,12 @@ tr:nth-child(even) td {
|
|
|
304
333
|
## 5. Delivery & Verification Checklist
|
|
305
334
|
|
|
306
335
|
Before releasing any executive PDF document:
|
|
307
|
-
1. **Zero Dark
|
|
308
|
-
2. **
|
|
309
|
-
3. **
|
|
310
|
-
4. **
|
|
311
|
-
5. **
|
|
312
|
-
6. **
|
|
336
|
+
1. **Strict Light Mode & Zero Black/Dark Invariant**: Every page must have a pure white (`#FFFFFF`) or pearl (`#FAFAFA`) background. Zero black, dark gray, or dark blue anywhere (text, fills, lines, backgrounds).
|
|
337
|
+
2. **Medium Slate `#64748B` Typography**: All typography strictly in `#64748B`.
|
|
338
|
+
3. **Inter Typography Contract**: Inter font strictly used for headings and body.
|
|
339
|
+
4. **4-Base-Color Theme Gradient**: Running header/footer ribbons, cover accents, or decorative dividers must use a 4-base-color gradient matching one of the 20 canonical themes (T01–T20) consistently.
|
|
340
|
+
5. **Table Header Fills**: Executive light tint (`#F1F5F9`) with medium slate `#64748B` text and subtle `#CBD5E1` borders.
|
|
341
|
+
6. **Dynamic Pagination**: Footers must display dynamic `Page X of Y` computed over the actual document length.
|
|
342
|
+
7. **No Overflow / Clipping**: Verify tables and text blocks fit within page margins without trailing orphans or text clipping.
|
|
343
|
+
8. **Metadata Sanitization**: Check PDF properties with `pdfinfo` or Adobe Reader to ensure generator tags (`ReportLab`, `WeasyPrint`) are replaced with professional author and organization names.
|
|
344
|
+
9. **Mandatory Kage Review Gate**: Always run Kage review to verify zero-slop compliance, visual hierarchy, and 0% AI detection before delivery.
|
|
@@ -21,8 +21,29 @@ Use this reference whenever building, modifying, or styling presentations and sl
|
|
|
21
21
|
## 1. Zero-AI Slide Design Invariants
|
|
22
22
|
|
|
23
23
|
When creating slide presentations:
|
|
24
|
-
- **Strict Light Mode
|
|
25
|
-
- **
|
|
24
|
+
- **Strict Light Mode & Zero Black/Dark Invariant**: Under NO circumstances generate, style, or refine slides with black, dark gray, or dark blue anywhere (text, fills, lines, backgrounds). Strictly forbidden: `#000000`, `#000`, dark navy, dark slate (`#0F172A`, `#1E293B`, `#1E3A8A`), or dark blocks. All slides must use pure white (`#FFFFFF`) or pearl (`#F8FAFC`), with text strictly in **medium slate `#64748B`**.
|
|
25
|
+
- **20 Canonical 4-Base-Color Themes**: When decorative color or visual emphasis is needed for title covers, headers, footers, card accent strips, or divider rules, ALWAYS apply a smooth **4-base-color gradient**, randomly selecting ONE of the 20 canonical themes (T01–T20) per deck and keeping it consistent throughout:
|
|
26
|
+
- **T01**: `linear-gradient(90deg,#8A4FD0,#E8453C,#F08A24,#F7C948)`
|
|
27
|
+
- **T02**: `linear-gradient(90deg,#17B3A3,#3A8DDE,#8A4FD0,#E85DA0)`
|
|
28
|
+
- **T03**: `linear-gradient(90deg,#34B38A,#F7C948,#F08A24,#E85DA0)`
|
|
29
|
+
- **T04**: `linear-gradient(90deg,#3A8DDE,#17B3A3,#6FCF7A,#F7C948)`
|
|
30
|
+
- **T05**: `linear-gradient(90deg,#8A4FD0,#D6459E,#E8453C,#F5A04A)`
|
|
31
|
+
- **T06**: `linear-gradient(90deg,#5CC46A,#F7C948,#F08A24,#E8453C)`
|
|
32
|
+
- **T07**: `linear-gradient(90deg,#4F8DF0,#8A4FD0,#E85DA0,#F5A04A)`
|
|
33
|
+
- **T08**: `linear-gradient(90deg,#17B3A3,#6FCF7A,#F7C948,#F2705F)`
|
|
34
|
+
- **T09**: `linear-gradient(90deg,#3AA6C9,#8A4FD0,#E85DA0,#F7C948)`
|
|
35
|
+
- **T10**: `linear-gradient(90deg,#3A8DDE,#52D1BC,#8BCB4A,#F5A623)`
|
|
36
|
+
- **T11**: `linear-gradient(90deg,#8A4FD0,#E85DA0,#F2705F,#F7C948)`
|
|
37
|
+
- **T12**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#E85D75)`
|
|
38
|
+
- **T13**: `linear-gradient(90deg,#4F8DF0,#D6459E,#E85D75,#F5A04A)`
|
|
39
|
+
- **T14**: `linear-gradient(90deg,#8A4FD0,#3A8DDE,#17B3A3,#8BCB4A)`
|
|
40
|
+
- **T15**: `linear-gradient(90deg,#E85DA0,#E8453C,#F08A24,#8BCB4A)`
|
|
41
|
+
- **T16**: `linear-gradient(90deg,#7C5CE0,#3A8DDE,#52D1BC,#6FCF7A)`
|
|
42
|
+
- **T17**: `linear-gradient(90deg,#E8453C,#F08A24,#F7C948,#8BCB4A)`
|
|
43
|
+
- **T18**: `linear-gradient(90deg,#3A8DDE,#8A4FD0,#D6459E,#F2705F)`
|
|
44
|
+
- **T19**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#F08A24)`
|
|
45
|
+
- **T20**: `linear-gradient(90deg,#E85DA0,#F08A24,#F7C948,#17B3A3)`
|
|
46
|
+
- **Strict Typography Contract**: PowerPoint strictly uses **Segoe UI Semibold or Georgia (headings) + Segoe UI or Calibri (body)** with consistent spacing, alignment, and visual hierarchy.
|
|
26
47
|
- **The "Rule of One"**: Exactly 1 central thesis or key takeaway per slide.
|
|
27
48
|
- **Strict Ban on AI Bullet Walls**: Never write slides with 4–6 generic bullet points of identical sentence length.
|
|
28
49
|
- *Bad (AI)*: 5 bullets each starting with "Ensures that...", "Facilitates...", "Helps to optimize..."
|
|
@@ -30,8 +51,9 @@ When creating slide presentations:
|
|
|
30
51
|
- **Stat Callouts as Visuals**: When presenting performance, savings, or metrics, render the number in massive 44–60pt bold font with a concise 12pt label below it.
|
|
31
52
|
- **Asymmetric 2-Column Layouts**: Use 60/40 or 70/30 split layouts (e.g. left side big takeaway and key metrics, right side data table or architectural diagram).
|
|
32
53
|
- **16:9 Widescreen Standard**: Always format for 16:9 widescreen (`layout: 'LAYOUT_16x9'` in pptxgenjs; `slide_width = Inches(13.333)`, `slide_height = Inches(7.5)` in python-pptx).
|
|
33
|
-
- **Strict Zero Watermark Invariant**: Under NO circumstances should presentation slide decks contain watermarks, translucent
|
|
54
|
+
- **Strict Zero Watermark Invariant**: Under NO circumstances should presentation slide decks contain watermarks, translucent stamps, or background evaluation watermarks.
|
|
34
55
|
- **Metadata Scrubbing**: Set core presentation properties (`creator`, `lastModifiedBy`, `title`) to the human author or project name; remove `python-pptx` and `pptxgenjs` tags.
|
|
56
|
+
- **Mandatory Kage Review Gate**: Always use Kage review on every generated PPTX presentation.
|
|
35
57
|
|
|
36
58
|
---
|
|
37
59
|
|
|
@@ -20,8 +20,29 @@ Use this reference whenever generating, editing, or auditing Microsoft Excel (.x
|
|
|
20
20
|
## 1. Zero-AI Human Data Presentation Invariants
|
|
21
21
|
|
|
22
22
|
When creating spreadsheets:
|
|
23
|
-
- **Strict Light Mode
|
|
24
|
-
- **
|
|
23
|
+
- **Strict Light Mode & Zero Black/Dark Invariant**: Under NO circumstances create, generate, or style Excel workbooks with black, dark gray, or dark blue anywhere (text, fills, lines, backgrounds). Strictly forbidden: `#000000`, `#000`, dark navy, dark slate (`#0F172A`, `#1E293B`, `#1E3A8A`), or dark blocks. All sheet backgrounds must be pure white (`#FFFFFF`) or pearl (`#F8FAFC`), with text strictly in **medium slate `#64748B`**.
|
|
24
|
+
- **20 Canonical 4-Base-Color Themes**: When decorative accent styling is applied (such as top accent ribbons on table headers, summary cards, or KPI divider rows), ALWAYS apply a smooth **4-base-color gradient**, randomly selecting ONE of the 20 canonical themes (T01–T20) per document and keeping it consistent throughout:
|
|
25
|
+
- **T01**: `linear-gradient(90deg,#8A4FD0,#E8453C,#F08A24,#F7C948)`
|
|
26
|
+
- **T02**: `linear-gradient(90deg,#17B3A3,#3A8DDE,#8A4FD0,#E85DA0)`
|
|
27
|
+
- **T03**: `linear-gradient(90deg,#34B38A,#F7C948,#F08A24,#E85DA0)`
|
|
28
|
+
- **T04**: `linear-gradient(90deg,#3A8DDE,#17B3A3,#6FCF7A,#F7C948)`
|
|
29
|
+
- **T05**: `linear-gradient(90deg,#8A4FD0,#D6459E,#E8453C,#F5A04A)`
|
|
30
|
+
- **T06**: `linear-gradient(90deg,#5CC46A,#F7C948,#F08A24,#E8453C)`
|
|
31
|
+
- **T07**: `linear-gradient(90deg,#4F8DF0,#8A4FD0,#E85DA0,#F5A04A)`
|
|
32
|
+
- **T08**: `linear-gradient(90deg,#17B3A3,#6FCF7A,#F7C948,#F2705F)`
|
|
33
|
+
- **T09**: `linear-gradient(90deg,#3AA6C9,#8A4FD0,#E85DA0,#F7C948)`
|
|
34
|
+
- **T10**: `linear-gradient(90deg,#3A8DDE,#52D1BC,#8BCB4A,#F5A623)`
|
|
35
|
+
- **T11**: `linear-gradient(90deg,#8A4FD0,#E85DA0,#F2705F,#F7C948)`
|
|
36
|
+
- **T12**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#E85D75)`
|
|
37
|
+
- **T13**: `linear-gradient(90deg,#4F8DF0,#D6459E,#E85D75,#F5A04A)`
|
|
38
|
+
- **T14**: `linear-gradient(90deg,#8A4FD0,#3A8DDE,#17B3A3,#8BCB4A)`
|
|
39
|
+
- **T15**: `linear-gradient(90deg,#E85DA0,#E8453C,#F08A24,#8BCB4A)`
|
|
40
|
+
- **T16**: `linear-gradient(90deg,#7C5CE0,#3A8DDE,#52D1BC,#6FCF7A)`
|
|
41
|
+
- **T17**: `linear-gradient(90deg,#E8453C,#F08A24,#F7C948,#8BCB4A)`
|
|
42
|
+
- **T18**: `linear-gradient(90deg,#3A8DDE,#8A4FD0,#D6459E,#F2705F)`
|
|
43
|
+
- **T19**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#F08A24)`
|
|
44
|
+
- **T20**: `linear-gradient(90deg,#E85DA0,#F08A24,#F7C948,#17B3A3)`
|
|
45
|
+
- **Strict Typography Contract**: Excel spreadsheets strictly use **Calibri for both headings and body**, with crisp point sizing (Title: 16pt, Subtitle: 10pt, Headers/Data: 11pt, Totals: 11pt bold).
|
|
25
46
|
- **Zero Raw Numbers**: Never leave bare floats (`0.3333333333`). Format currency as `$#,##0` or `$#,##0.00`, percentages as `0.0%` or `0%`, counts as `#,##0`.
|
|
26
47
|
- **Formulas Over Hardcoded Values**: If a number is derived from other cells, calculate it via an Excel formula (`=SUM(C4:C12)`, `=C13-D13`), never paste pre-calculated static values into summary rows.
|
|
27
48
|
- **Formula Casing**: Always write formula names in ALL CAPS (`SUM`, `AVERAGE`, `IF`, `XLOOKUP`, `INDEX`, `MATCH`). Lowercase formula names (`=sum(...)`) signal hasty robotic generation.
|
|
@@ -29,21 +50,23 @@ When creating spreadsheets:
|
|
|
29
50
|
- **Visual Grid & Freeze Panes**: Explicitly enable `ws.views.sheetView[0].showGridLines = True` and freeze header rows (`ws.freeze_panes = 'A5'`).
|
|
30
51
|
- **Strict Zero Watermark Invariant**: Under NO circumstances should generated, styled, or edited Excel workbooks contain watermarks, diagonal background stamps, sheet header watermark graphics, or evaluation marks.
|
|
31
52
|
- **Metadata Scrubbing**: Set workbook author and properties to the human analyst / organization; remove `openpyxl` / `pandas` application tags.
|
|
53
|
+
- **Mandatory Kage Review Gate**: Every generated Excel workbook must undergo Kage review before completion.
|
|
32
54
|
|
|
33
55
|
---
|
|
34
56
|
|
|
35
57
|
## 2. Professional Enterprise Color Palettes (Pure Light Mode)
|
|
36
58
|
|
|
37
|
-
Never use dark
|
|
59
|
+
Never use black, dark gray, dark blue, or dark theme fills. Use refined business-class light palettes with text in medium slate `#64748B`:
|
|
38
60
|
|
|
39
|
-
| Element |
|
|
40
|
-
|
|
41
|
-
| **
|
|
42
|
-
| **
|
|
43
|
-
| **Header
|
|
44
|
-
| **
|
|
45
|
-
| **
|
|
46
|
-
| **
|
|
61
|
+
| Element | Specification & Values |
|
|
62
|
+
|---|---|
|
|
63
|
+
| **Sheet Background** | Pure White `#FFFFFF` or Pearl `#F8FAFC` |
|
|
64
|
+
| **Typography (Headings & Body)** | Medium Slate `#64748B` (Calibri font exclusively) |
|
|
65
|
+
| **Header Background** | Executive Slate Tint `#F1F5F9` |
|
|
66
|
+
| **Header Accent Ribbon** | 4-base-color gradient ribbon matching the chosen theme (T01–T20) |
|
|
67
|
+
| **Zebra Row Shading** | Pearl `#F8FAFC` |
|
|
68
|
+
| **Total / Summary Row** | Top thin border `#CBD5E1`, double bottom `#64748B`, text in `#64748B` (bold) |
|
|
69
|
+
| **Cell Borders** | Subtle light slate `#E2E8F0` / `#CBD5E1` |
|
|
47
70
|
|
|
48
71
|
---
|
|
49
72
|
|
|
@@ -63,20 +86,21 @@ ws.title = "Q3 Infrastructure ROI"
|
|
|
63
86
|
# Enforce explicit gridlines
|
|
64
87
|
ws.views.sheetView[0].showGridLines = True
|
|
65
88
|
|
|
66
|
-
# Styling definitions (Pure Light Executive Class)
|
|
67
|
-
font_title = Font(name="Calibri", size=16, bold=True, color="
|
|
89
|
+
# Styling definitions (Pure Light Executive Class - Text strictly in #64748B, Zero dark colors)
|
|
90
|
+
font_title = Font(name="Calibri", size=16, bold=True, color="64748B")
|
|
68
91
|
font_subtitle = Font(name="Calibri", size=10, italic=True, color="64748B")
|
|
69
|
-
font_header = Font(name="Calibri", size=11, bold=True, color="
|
|
70
|
-
font_body = Font(name="Calibri", size=11, color="
|
|
71
|
-
font_total = Font(name="Calibri", size=11, bold=True, color="
|
|
92
|
+
font_header = Font(name="Calibri", size=11, bold=True, color="64748B")
|
|
93
|
+
font_body = Font(name="Calibri", size=11, color="64748B")
|
|
94
|
+
font_total = Font(name="Calibri", size=11, bold=True, color="64748B")
|
|
72
95
|
|
|
73
96
|
fill_header = PatternFill(start_color="F1F5F9", end_color="F1F5F9", fill_type="solid")
|
|
74
97
|
fill_zebra = PatternFill(start_color="F8FAFC", end_color="F8FAFC", fill_type="solid")
|
|
75
98
|
|
|
76
|
-
#
|
|
77
|
-
fill_accent_1 = PatternFill(start_color="
|
|
78
|
-
fill_accent_2 = PatternFill(start_color="
|
|
79
|
-
fill_accent_3 = PatternFill(start_color="
|
|
99
|
+
# 4-Base-Color Gradient Accent Ribbon (Theme T01 example: #8A4FD0, #E8453C, #F08A24, #F7C948)
|
|
100
|
+
fill_accent_1 = PatternFill(start_color="8A4FD0", end_color="8A4FD0", fill_type="solid")
|
|
101
|
+
fill_accent_2 = PatternFill(start_color="E8453C", end_color="E8453C", fill_type="solid")
|
|
102
|
+
fill_accent_3 = PatternFill(start_color="F08A24", end_color="F08A24", fill_type="solid")
|
|
103
|
+
fill_accent_4 = PatternFill(start_color="F7C948", end_color="F7C948", fill_type="solid")
|
|
80
104
|
|
|
81
105
|
align_left = Alignment(horizontal="left", vertical="center")
|
|
82
106
|
align_right = Alignment(horizontal="right", vertical="center")
|
|
@@ -84,7 +108,7 @@ align_center = Alignment(horizontal="center", vertical="center")
|
|
|
84
108
|
|
|
85
109
|
border_thin = Side(style="thin", color="E2E8F0")
|
|
86
110
|
border_header = Side(style="medium", color="CBD5E1")
|
|
87
|
-
border_double = Side(style="double", color="
|
|
111
|
+
border_double = Side(style="double", color="64748B")
|
|
88
112
|
border_total = Border(top=border_thin, bottom=border_double)
|
|
89
113
|
border_cell = Border(left=border_thin, right=border_thin, top=border_thin, bottom=border_thin)
|
|
90
114
|
|
|
@@ -94,14 +118,14 @@ ws["A1"].font = font_title
|
|
|
94
118
|
ws["A2"] = "Prepared by Infrastructure SRE Team | Target Savings: $450,000/yr"
|
|
95
119
|
ws["A2"].font = font_subtitle
|
|
96
120
|
|
|
97
|
-
#
|
|
121
|
+
# 4-Color Gradient Accent Ribbon above table header (Theme T01)
|
|
98
122
|
ws.row_dimensions[3].height = 4
|
|
99
123
|
ws["A3"].fill = fill_accent_1
|
|
100
124
|
ws["B3"].fill = fill_accent_1
|
|
101
125
|
ws["C3"].fill = fill_accent_2
|
|
102
|
-
ws["D3"].fill =
|
|
103
|
-
ws["E3"].fill =
|
|
104
|
-
ws["F3"].fill =
|
|
126
|
+
ws["D3"].fill = fill_accent_3
|
|
127
|
+
ws["E3"].fill = fill_accent_4
|
|
128
|
+
ws["F3"].fill = fill_accent_4
|
|
105
129
|
|
|
106
130
|
# Table Headers (Light Executive Tint)
|
|
107
131
|
headers = ["Service Component", "Cluster Tier", "Old Monthly Cost", "New Monthly Cost", "Net Savings", "Delta %"]
|
|
@@ -206,11 +230,14 @@ wb.save("infrastructure_roi.xlsx")
|
|
|
206
230
|
## 4. Delivery & Verification Checklist
|
|
207
231
|
|
|
208
232
|
Before shipping any spreadsheet:
|
|
209
|
-
1. **Zero Dark
|
|
210
|
-
2. **
|
|
211
|
-
3. **
|
|
212
|
-
4. **
|
|
213
|
-
5. **
|
|
214
|
-
6. **
|
|
215
|
-
7. **
|
|
216
|
-
8. **
|
|
233
|
+
1. **Strict Light Mode & Zero Black/Dark Invariant**: Pure light mode strictly enforced. Background is pure white (`#FFFFFF`) or soft pearl (`#F8FAFC`). Zero dark headers, black cells, dark blue, or dark gray anywhere.
|
|
234
|
+
2. **Medium Slate `#64748B` Typography**: All text (titles, headers, body, numbers, totals) strictly set in `#64748B`.
|
|
235
|
+
3. **Calibri Typography Contract**: Calibri font strictly used for both headings and body text.
|
|
236
|
+
4. **4-Base-Color Theme Gradient**: Decorative accent ribbons or KPI highlights strictly use a smooth 4-base-color gradient matching one of the 20 canonical themes (T01–T20) consistently.
|
|
237
|
+
5. **Table Header Fills**: Executive light tint (`#F1F5F9`) with bold `#64748B` typography and subtle `#CBD5E1` borders.
|
|
238
|
+
6. **Formula Accuracy**: Verify workbook opens in Excel/LibreOffice with 0 formula repair warnings (`#NAME?`, `#VALUE!`, `#REF!`). Formulas use UPPERCASE names (`SUM`, `AVERAGE`).
|
|
239
|
+
7. **Formatting**: Verify all numbers have explicit number formatting (`$#,##0`, `0.0%`, `#,##0`).
|
|
240
|
+
8. **Freeze Panes & Gridlines**: Confirm freeze panes are set on the header row and gridlines are explicitly turned on (`showGridLines = True`).
|
|
241
|
+
9. **Auto-Fit**: Check column widths: no text is clipped and no numbers appear as `###`.
|
|
242
|
+
10. **Metadata**: Confirm metadata properties have been sanitized.
|
|
243
|
+
11. **Mandatory Kage Review Gate**: Always run Kage review to verify zero-slop compliance, visual hierarchy, and 0% AI detection before delivery.
|
|
@@ -209,17 +209,40 @@ def sanitize_pdf(document, pdf):
|
|
|
209
209
|
Across all generated and refined documents (DOCX, PPTX, XLSX, PDF), adhere strictly to executive enterprise design standards:
|
|
210
210
|
|
|
211
211
|
### Global Visual Invariants
|
|
212
|
-
1. **Strict Zero Dark
|
|
213
|
-
- NEVER create, generate, or refine documents using dark
|
|
214
|
-
- Strictly forbidden: dark
|
|
215
|
-
- All
|
|
216
|
-
2. **
|
|
217
|
-
- Whenever color is
|
|
218
|
-
-
|
|
219
|
-
|
|
220
|
-
- **
|
|
221
|
-
- **
|
|
222
|
-
- **
|
|
212
|
+
1. **Strict Zero Black/Dark Invariant (Zero Dark Style)**:
|
|
213
|
+
- NEVER create, generate, or refine documents using black, dark gray, or dark blue anywhere (text, fills, lines, backgrounds).
|
|
214
|
+
- Strictly forbidden: `#000000`, `#000`, dark navy, dark slate (`#0F172A`, `#1E293B`, `#1E3A8A`), charcoal, dark fills, or dark borders.
|
|
215
|
+
- All canvases and backgrounds must be pure white (`#FFFFFF`) or soft pearl (`#F8FAFC`). Text must strictly be in **medium slate `#64748B`**.
|
|
216
|
+
2. **20 Canonical 4-Base-Color Gradient Themes**:
|
|
217
|
+
- Whenever color is applied to covers, headers, footers, accent ribbons, or dividing rules, use a smooth **4-base-color gradient**.
|
|
218
|
+
- Randomly pick ONE of these 20 themes per document and keep it consistent throughout:
|
|
219
|
+
- **T01**: `linear-gradient(90deg,#8A4FD0,#E8453C,#F08A24,#F7C948)`
|
|
220
|
+
- **T02**: `linear-gradient(90deg,#17B3A3,#3A8DDE,#8A4FD0,#E85DA0)`
|
|
221
|
+
- **T03**: `linear-gradient(90deg,#34B38A,#F7C948,#F08A24,#E85DA0)`
|
|
222
|
+
- **T04**: `linear-gradient(90deg,#3A8DDE,#17B3A3,#6FCF7A,#F7C948)`
|
|
223
|
+
- **T05**: `linear-gradient(90deg,#8A4FD0,#D6459E,#E8453C,#F5A04A)`
|
|
224
|
+
- **T06**: `linear-gradient(90deg,#5CC46A,#F7C948,#F08A24,#E8453C)`
|
|
225
|
+
- **T07**: `linear-gradient(90deg,#4F8DF0,#8A4FD0,#E85DA0,#F5A04A)`
|
|
226
|
+
- **T08**: `linear-gradient(90deg,#17B3A3,#6FCF7A,#F7C948,#F2705F)`
|
|
227
|
+
- **T09**: `linear-gradient(90deg,#3AA6C9,#8A4FD0,#E85DA0,#F7C948)`
|
|
228
|
+
- **T10**: `linear-gradient(90deg,#3A8DDE,#52D1BC,#8BCB4A,#F5A623)`
|
|
229
|
+
- **T11**: `linear-gradient(90deg,#8A4FD0,#E85DA0,#F2705F,#F7C948)`
|
|
230
|
+
- **T12**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#E85D75)`
|
|
231
|
+
- **T13**: `linear-gradient(90deg,#4F8DF0,#D6459E,#E85D75,#F5A04A)`
|
|
232
|
+
- **T14**: `linear-gradient(90deg,#8A4FD0,#3A8DDE,#17B3A3,#8BCB4A)`
|
|
233
|
+
- **T15**: `linear-gradient(90deg,#E85DA0,#E8453C,#F08A24,#8BCB4A)`
|
|
234
|
+
- **T16**: `linear-gradient(90deg,#7C5CE0,#3A8DDE,#52D1BC,#6FCF7A)`
|
|
235
|
+
- **T17**: `linear-gradient(90deg,#E8453C,#F08A24,#F7C948,#8BCB4A)`
|
|
236
|
+
- **T18**: `linear-gradient(90deg,#3A8DDE,#8A4FD0,#D6459E,#F2705F)`
|
|
237
|
+
- **T19**: `linear-gradient(90deg,#17B3A3,#8BCB4A,#F7C948,#F08A24)`
|
|
238
|
+
- **T20**: `linear-gradient(90deg,#E85DA0,#F08A24,#F7C948,#17B3A3)`
|
|
239
|
+
3. **Typography Contract**:
|
|
240
|
+
- **Word/reports (DOCX)**: Georgia (headings) + Calibri (body)
|
|
241
|
+
- **PowerPoint (PPTX)**: Segoe UI Semibold or Georgia (headings) + Segoe UI or Calibri (body)
|
|
242
|
+
- **Excel (XLSX)**: Calibri (headings and body)
|
|
243
|
+
- **PDF/digital (PDF)**: Inter (headings and body)
|
|
244
|
+
4. **Mandatory Kage Review Gate**:
|
|
245
|
+
- Every generated document (DOCX, PPTX, XLSX, PDF) must be verified by Kage review before completion.
|
|
223
246
|
|
|
224
247
|
---
|
|
225
248
|
|
package/src/web_server.js
CHANGED
|
@@ -19,15 +19,25 @@ const { SKILLS_DB_DIR } = require('../bin/lib/paths');
|
|
|
19
19
|
|
|
20
20
|
// Web UI build resolution works across runtimes (repo, installed ~/.konoha
|
|
21
21
|
// copy, npm global package) via deployUtils.resolveWebUiDir()
|
|
22
|
+
let cachedWebUiDir = null;
|
|
23
|
+
let cachedDistDir = null;
|
|
24
|
+
|
|
22
25
|
function getWebUiDir() {
|
|
23
|
-
|
|
26
|
+
if (cachedWebUiDir) return cachedWebUiDir;
|
|
27
|
+
cachedWebUiDir = deployUtils.resolveWebUiDir() || path.resolve(__dirname, '..', 'apps', 'web');
|
|
28
|
+
return cachedWebUiDir;
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
function getDistDir() {
|
|
32
|
+
if (cachedDistDir) return cachedDistDir;
|
|
27
33
|
const base = getWebUiDir();
|
|
28
34
|
const buildClient = path.join(base, 'build', 'client');
|
|
29
|
-
if (fs.existsSync(buildClient))
|
|
30
|
-
|
|
35
|
+
if (fs.existsSync(buildClient)) {
|
|
36
|
+
cachedDistDir = buildClient;
|
|
37
|
+
return cachedDistDir;
|
|
38
|
+
}
|
|
39
|
+
cachedDistDir = path.join(base, 'dist');
|
|
40
|
+
return cachedDistDir;
|
|
31
41
|
}
|
|
32
42
|
|
|
33
43
|
const WEB_UI_DIR = getWebUiDir();
|
|
@@ -624,6 +634,7 @@ function createWebServer(options = {}) {
|
|
|
624
634
|
const child = spawn(process.execPath || 'node', [mcpScript], {
|
|
625
635
|
detached: true,
|
|
626
636
|
stdio: 'ignore',
|
|
637
|
+
windowsHide: true,
|
|
627
638
|
env: Object.assign({}, process.env, { KONOHA_DAEMON: 'true' })
|
|
628
639
|
});
|
|
629
640
|
child.unref();
|
|
@@ -694,6 +705,7 @@ function createWebServer(options = {}) {
|
|
|
694
705
|
const child = spawn(process.execPath || 'node', [mcpScript], {
|
|
695
706
|
detached: true,
|
|
696
707
|
stdio: 'ignore',
|
|
708
|
+
windowsHide: true,
|
|
697
709
|
env: Object.assign({}, process.env, { KONOHA_DAEMON: 'true' })
|
|
698
710
|
});
|
|
699
711
|
// aislop-ignore-next-line code-quality/duplicate-block (structurally similar handler boilerplate with contextual differences)
|
|
@@ -965,7 +977,7 @@ function createWebServer(options = {}) {
|
|
|
965
977
|
try {
|
|
966
978
|
const { spawnSync } = require('child_process');
|
|
967
979
|
const cliPath = path.join(__dirname, '..', 'bin', 'cli.js');
|
|
968
|
-
const run = spawnSync(process.execPath || 'node', [cliPath, 'migrate'], { encoding: 'utf8' });
|
|
980
|
+
const run = spawnSync(process.execPath || 'node', [cliPath, 'migrate'], { encoding: 'utf8', windowsHide: true });
|
|
969
981
|
broadcastEvent('skills_updated', { action: 'reindex' });
|
|
970
982
|
return sendJson(res, 200, { ok: true, output: (run.stdout || '').trim() });
|
|
971
983
|
} catch (err) {
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: helm-chart-scaffolding
|
|
3
|
-
description: Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Helm Chart Scaffolding
|
|
7
|
-
|
|
8
|
-
Comprehensive guidance for creating, organizing, and managing Helm charts for packaging and deploying Kubernetes applications.
|
|
9
|
-
|
|
10
|
-
## Purpose
|
|
11
|
-
|
|
12
|
-
> [!NOTE]
|
|
13
|
-
> **Integrated into Anbu**: This skill is merged directly into `anbu-skill` as an embedded domain reference: `anbu-skill/helm-chart-scaffolding`.
|
|
14
|
-
|
|
15
|
-
This skill provides step-by-step instructions for building production-ready Helm charts, including chart structure, templating patterns, values management, and validation strategies.
|
|
16
|
-
|
|
17
|
-
## When to Use This Skill
|
|
18
|
-
|
|
19
|
-
Use this skill when you need to:
|
|
20
|
-
|
|
21
|
-
- Create new Helm charts from scratch
|
|
22
|
-
- Package Kubernetes applications for distribution
|
|
23
|
-
- Manage multi-environment deployments with Helm
|
|
24
|
-
- Implement templating for reusable Kubernetes manifests
|
|
25
|
-
- Set up Helm chart repositories
|
|
26
|
-
- Follow Helm best practices and conventions
|
|
27
|
-
|
|
28
|
-
## Detailed patterns and worked examples
|
|
29
|
-
|
|
30
|
-
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
|
|
31
|
-
|
|
32
|
-
## Best Practices
|
|
33
|
-
|
|
34
|
-
1. **Use semantic versioning** for chart and app versions
|
|
35
|
-
2. **Document all values** in values.yaml with comments
|
|
36
|
-
3. **Use template helpers** for repeated logic
|
|
37
|
-
4. **Validate charts** before packaging
|
|
38
|
-
5. **Pin dependency versions** explicitly
|
|
39
|
-
6. **Use conditions** for optional resources
|
|
40
|
-
7. **Follow naming conventions** (lowercase, hyphens)
|
|
41
|
-
8. **Include NOTES.txt** with usage instructions
|
|
42
|
-
9. **Add labels** consistently using helpers
|
|
43
|
-
10. **Test installations** in all environments
|
|
44
|
-
|
|
45
|
-
## Troubleshooting
|
|
46
|
-
|
|
47
|
-
**Template rendering errors:**
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
helm template my-app ./my-app --debug
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**Dependency issues:**
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
helm dependency update
|
|
57
|
-
helm dependency list
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Installation failures:**
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
helm install my-app ./my-app --dry-run --debug
|
|
64
|
-
kubectl get events --sort-by='.lastTimestamp'
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## Related Skills
|
|
69
|
-
|
|
70
|
-
- `k8s-manifest-generator` - For creating base Kubernetes manifests
|
|
71
|
-
- `gitops-workflow` - For automated Helm chart deployments
|