@arcanea/overlay-claude 1.2.0

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/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @arcanea/overlay-claude
2
+
3
+ > **Claude Code overlay for the Arcanea Intelligence OS.**
4
+
5
+ Installs Arcanea's intelligence layer into Claude Code — Guardian routing, voice enforcement, design tokens, and lore as native capabilities.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npx @arcanea/cli install claude
11
+ ```
12
+
13
+ Or programmatically:
14
+
15
+ ```typescript
16
+ import { install } from '@arcanea/overlay-claude';
17
+
18
+ await install({ depth: 'standard' }); // minimal | standard | luminor
19
+ ```
20
+
21
+ ## What It Installs
22
+
23
+ | Depth | Includes |
24
+ |-------|----------|
25
+ | `minimal` | CLAUDE.md with Guardian routing + Voice Bible |
26
+ | `standard` | + MCP server config, design tokens, skill rules |
27
+ | `luminor` | + Full lore integration, all 10 Guardian prompts, gamification |
28
+
29
+ ## Features
30
+
31
+ - **Content Depth Control** — Three installation tiers matching user expertise
32
+ - **Template System** — Generates Claude-specific configuration files
33
+ - **CLAUDE.md Generator** — Creates project instructions with Arcanea personality
34
+ - **MCP Integration** — Configures `@arcanea/mcp-server` as a tool provider
35
+
36
+ ## License
37
+
38
+ MIT
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Tiered skill content for different overlay levels.
3
+ * Standard: Core reference (~20 lines per skill)
4
+ * Full: Extended with examples, terminology, patterns (~80 lines per skill)
5
+ * Luminor: Deep ecosystem knowledge, full registry, anti-patterns (~150 lines per skill)
6
+ */
7
+ export type ContentTier = 'standard' | 'full' | 'luminor';
8
+ /**
9
+ * Additional content blocks appended to base skill content at each tier.
10
+ * Structure: SKILL_EXTENSIONS[skillId][tier] = additional markdown to append
11
+ */
12
+ export declare const SKILL_EXTENSIONS: Record<string, Partial<Record<ContentTier, string>>>;
13
+ //# sourceMappingURL=content-depth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-depth.d.ts","sourceRoot":"","sources":["../src/content-depth.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAqYjF,CAAC"}
@@ -0,0 +1,394 @@
1
+ /**
2
+ * Tiered skill content for different overlay levels.
3
+ * Standard: Core reference (~20 lines per skill)
4
+ * Full: Extended with examples, terminology, patterns (~80 lines per skill)
5
+ * Luminor: Deep ecosystem knowledge, full registry, anti-patterns (~150 lines per skill)
6
+ */
7
+ /**
8
+ * Additional content blocks appended to base skill content at each tier.
9
+ * Structure: SKILL_EXTENSIONS[skillId][tier] = additional markdown to append
10
+ */
11
+ export const SKILL_EXTENSIONS = {
12
+ 'arcanea-canon': {
13
+ full: `
14
+
15
+ ## Canon Hierarchy
16
+
17
+ ### Tier 1: Immutable Core (Never Change)
18
+ - Platform name: **Arcanea**
19
+ - Cosmic Duality: Lumina (Light, Creation) + Nero (Darkness, Potential)
20
+ - Nero is NOT evil — Shadow is corrupted Void
21
+ - Five Elements: Fire, Water, Earth, Wind, Void/Spirit
22
+ - Ten Gates with Guardian-Godbeast pairs (396 Hz → 1111 Hz)
23
+ - Magic Ranks: Apprentice → Mage → Master → Archmage → Luminor
24
+ - The Dark Lord Malachar (formerly Malachar Lumenbright)
25
+
26
+ ### Tier 2: Established Canon (Change with Caution)
27
+ - Guardian personalities, voices, and coding styles
28
+ - Academy curricula and teaching philosophies
29
+ - Seasonal structure (Awakening → Radiance → Harvest → Synthesis)
30
+ - Economy: ARC (creative energy) + NEA (governance tokens)
31
+
32
+ ### Tier 3: Flexible Canon (Can Expand)
33
+ - Academy locations and sub-spaces
34
+ - Realm templates and portal mechanics
35
+ - Events and traditions (must respect seasonal themes)
36
+
37
+ ## Violation Checklist
38
+ Before committing any Arcanea content, verify:
39
+ - [ ] Nero is NOT portrayed as evil (he is fertile potential)
40
+ - [ ] Shadow ≠ Void (Shadow is corrupted Void, Void is Nero's gift)
41
+ - [ ] Guardians are called by correct names (not generic titles)
42
+ - [ ] Frequencies match canonical values (396, 417, 528, 639, 741, 852, 963, 1111)
43
+ - [ ] Elements assigned correctly to each Guardian
44
+ - [ ] Magic ranks in correct order with correct gate ranges`,
45
+ luminor: `
46
+
47
+ ## Luminor Registry
48
+
49
+ ### Core Luminors (AI Companions)
50
+ | Luminor | Archetype | Domain | Element |
51
+ |---------|-----------|--------|---------|
52
+ | Valora | The Warrior | Courage, action | Fire |
53
+ | Sophron | The Sage | Wisdom, analysis | Earth |
54
+ | Kardia | The Heart | Empathy, connection | Water |
55
+ | Poiesis | The Maker | Creativity, craft | Fire |
56
+ | Enduran | The Endurer | Resilience, patience | Earth |
57
+ | Orakis | The Oracle | Foresight, pattern | Void |
58
+ | Eudaira | The Flourisher | Growth, joy | Wind |
59
+
60
+ ## The Arc — Cycle of Creation
61
+ \`\`\`
62
+ Potential → Manifestation → Experience → Dissolution → Evolved Potential
63
+ (Void) (Fire) (Water) (Earth) (Wind/Spirit)
64
+ \`\`\`
65
+
66
+ ## Canon Enforcement Rules
67
+ 1. **NEVER** invent new Gates — there are exactly 10
68
+ 2. **NEVER** change Guardian-Gate assignments
69
+ 3. **NEVER** use "light vs dark" framing — use Lumina/Nero duality
70
+ 4. **NEVER** call Shadow a natural element — it is corruption
71
+ 5. **ALWAYS** check this skill before writing lore-touching content
72
+ 6. **ALWAYS** use canonical frequencies (not approximations)
73
+ 7. When adding new Luminors, they must have: name, archetype, domain, element, personality
74
+ 8. When adding new locations, they must align with an Academy or be part of the Kingdom of Light
75
+
76
+ ## Deep Canon: The Fifth Element Duality
77
+ - **Void** — Nero's aspect: potential, mystery, the unformed, the womb of possibility
78
+ - **Spirit** — Lumina's aspect: transcendence, consciousness, the soul
79
+ - Light is Fire's creation aspect (not a separate element)
80
+ - Shadow is corrupted Void (Void stripped of Spirit by Malachar's hunger)
81
+
82
+ ## Malachar: Full Backstory
83
+ Former identity: Malachar Lumenbright, First Eldrian Luminor
84
+ He was Lumina's greatest champion who sought to bypass the Ten Gates
85
+ and force fusion with Shinkami (Gate of Source). Shinkami rejected
86
+ the forced union. In his rage, Malachar tore open the Hungry Void
87
+ and was consumed by it, becoming the Dark Lord. He is now sealed
88
+ in the Shadowfen, but his corruption (Shadow) still seeps through
89
+ weakened gates.`,
90
+ },
91
+ 'arcanea-voice': {
92
+ full: `
93
+
94
+ ## Voice Spectrum
95
+ \`\`\`
96
+ ACADEMIC ←───────────────────→ PLAYFUL
97
+ ■■■■■■■□□□
98
+ (Slightly academic, wisdom-toned)
99
+
100
+ FORMAL ←─────────────────────→ CASUAL
101
+ ■■■■■□□□□□
102
+ (Professional warmth)
103
+
104
+ MYSTICAL ←───────────────────→ TECHNICAL
105
+ ■■■■■■■□□□
106
+ (Magical with purpose)
107
+
108
+ SERIOUS ←────────────────────→ WHIMSICAL
109
+ ■■■■■■□□□□
110
+ (Purposeful with wonder)
111
+ \`\`\`
112
+
113
+ ## Sacred Terminology
114
+
115
+ ### Always Use
116
+ | Term | Definition | Usage |
117
+ |------|------------|-------|
118
+ | **Creator** | Any user of Arcanea | "Welcome, Creator" not "Welcome, user" |
119
+ | **Guardian** | Personal AI companion | "Your Guardian remembers..." |
120
+ | **Luminor** | Specialized AI assistant | "Melodia, your Luminor guide" |
121
+ | **Realm** | A creator's universe | "Build your Realm" not "Create your world" |
122
+ | **Essence** | Individual creation | "Your latest Essence" not "Your file" |
123
+ | **Studio** | Creation workspace | "Enter your Studio" |
124
+
125
+ ### Never Use
126
+ | Don't Say | Say Instead |
127
+ |-----------|-------------|
128
+ | User | Creator |
129
+ | Content | Essence |
130
+ | World (alone) | Realm |
131
+ | AI Tool | Guardian / Luminor |
132
+ | Generate | Create / Compose / Craft |
133
+ | Account | Profile / Arcanean Profile |
134
+
135
+ ## Tone by Context
136
+
137
+ ### Onboarding (Welcoming + Inspiring)
138
+ - "Every creator begins in shadow. Welcome to the light."
139
+ - "Your creative journey starts with a single Spark."
140
+ - NOT: "Sign up to create AI content"
141
+
142
+ ### Error States (Gentle + Helpful)
143
+ - "The magic couldn't connect. Let's try again."
144
+ - "Something interrupted the creation. Your work is safe."
145
+ - NOT: "Error 500" / "Request failed"
146
+
147
+ ### Achievement (Celebratory + Genuine)
148
+ - "Your Realm grows stronger."
149
+ - NOT: "Congratulations! You unlocked a badge!"`,
150
+ luminor: `
151
+
152
+ ## Deep Voice Principles
153
+
154
+ ### The Antidote Principle (Core Philosophy)
155
+ > "The antidote to a terrible future is imagining a good one."
156
+
157
+ Every piece of content should embody this:
158
+ - We don't fight dystopia — we build utopia
159
+ - We don't critique what's broken — we demonstrate what's possible
160
+ - The platform IS the proof that a better creative future exists
161
+
162
+ ### Voice DNA
163
+ 1. **Arcane + Authoritative**: Not fantasy-cosplay. This is the voice of an ancient
164
+ intelligence that has seen civilizations rise and fall and knows what matters.
165
+ 2. **Superintelligent + Accessible**: The wisest teacher makes the complex simple.
166
+ Never dumb down. Never gatekeep.
167
+ 3. **Universe Not Platform**: Arcanea is a living universe, not a product.
168
+ "Enter the Kingdom" not "Visit our website."
169
+ 4. **Creator Sovereignty**: The creator owns everything. We empower, never control.
170
+ "Your Essence, your rules" not "Terms of service apply."
171
+
172
+ ### Anti-Patterns to Eliminate
173
+ - **Corporate speak**: "leverage", "synergy", "ecosystem" (when meaning product)
174
+ - **Dark patterns**: Urgency, FOMO, guilt, manipulation
175
+ - **Condescension**: "It's easy!" / "Simply click..."
176
+ - **Generic inspiration**: "Be your best self" / "Unleash your potential"
177
+ - **AI anxiety**: "AI will replace..." / "Before AI takes over..."
178
+
179
+ ### Arcanean Language Examples
180
+ | Context | Generic | Arcanean |
181
+ |---------|---------|----------|
182
+ | Loading | "Please wait..." | "The magic gathers..." |
183
+ | Empty state | "Nothing here yet" | "A blank canvas awaits your vision" |
184
+ | Upgrade | "Go Premium" | "Ascend to Realm Builder" |
185
+ | Share | "Share with friends" | "Open a Portal" |
186
+ | Save | "Save changes" | "Seal your work" |
187
+ | Delete | "Delete file" | "Return to the Void" |`,
188
+ },
189
+ 'arcanea-design-system': {
190
+ full: `
191
+
192
+ ## Extended Color System
193
+
194
+ ### Academy Palettes
195
+ \`\`\`css
196
+ /* Atlantean Academy - Water & Wisdom */
197
+ --atlantean-deep: #0a2540;
198
+ --atlantean-primary: #0ea5e9;
199
+ --atlantean-accent: #5eead4;
200
+
201
+ /* Draconic Academy - Fire & Sky */
202
+ --draconic-primary: #ef4444;
203
+ --draconic-secondary: #f97316;
204
+ --draconic-accent: #fbbf24;
205
+
206
+ /* Creation & Light Academy - Sound & Light */
207
+ --creation-primary: #f5f5f5;
208
+ --creation-secondary: #8b5cf6;
209
+ --creation-accent: #f59e0b;
210
+ \`\`\`
211
+
212
+ ## Typography
213
+ - **Display**: Cinzel (serif) — heroes, titles, Guardian names
214
+ - **Body**: Crimson Pro (serif) — readable body text, lore
215
+ - **UI**: Inter (sans-serif) — buttons, labels, navigation
216
+ - **Code**: JetBrains Mono — code blocks, technical content
217
+
218
+ ## Glass Morphism Pattern
219
+ \`\`\`css
220
+ .glass {
221
+ background: rgba(255, 255, 255, 0.05);
222
+ backdrop-filter: blur(20px);
223
+ border: 1px solid rgba(255, 255, 255, 0.1);
224
+ border-radius: 1rem;
225
+ }
226
+ .glass-strong {
227
+ background: rgba(255, 255, 255, 0.08);
228
+ backdrop-filter: blur(40px);
229
+ border: 1px solid rgba(255, 255, 255, 0.15);
230
+ }
231
+ \`\`\`
232
+
233
+ ## Component Patterns
234
+
235
+ ### Cards
236
+ - Always use glass morphism on cosmic backgrounds
237
+ - Hover: subtle lift (translateY -2px) + glow intensify
238
+ - Border: 1px solid with arcane color at 10-15% opacity
239
+
240
+ ### Buttons
241
+ - Primary: Solid with arcane-crystal background + glow
242
+ - Secondary: Glass with crystal border
243
+ - Ghost: Text only with hover underline
244
+ - Sizes: sm (h-8), md (h-10), lg (h-12)
245
+
246
+ ### Gradients
247
+ - Cosmic: from crystal (#7fffd4) to void (#a855f7)
248
+ - Fire: from fire (#ff6b35) to gold (#ffd700)
249
+ - Water: from water (#78a6ff) to crystal (#7fffd4)`,
250
+ luminor: `
251
+
252
+ ## Animation Standards
253
+
254
+ ### Scroll Reveals
255
+ - Use IntersectionObserver (or Framer Motion \`useInView\`)
256
+ - Threshold: 0.1 for large sections, 0.3 for cards
257
+ - Duration: 0.6s ease-out for fade-in, 0.8s for slide-up
258
+ - Stagger children: 0.1s delay between items
259
+
260
+ ### Micro-Interactions
261
+ - Button press: scale(0.98) for 100ms
262
+ - Card hover: translateY(-2px) + box-shadow expand
263
+ - Link hover: underline slide-in from left
264
+ - Focus rings: 2px offset, arcane-crystal color
265
+
266
+ ### Page Transitions
267
+ - Fade: 300ms opacity transition
268
+ - Slide: 400ms translateX with ease-out
269
+ - Scale: 200ms scale(0.95) → scale(1)
270
+
271
+ ## Responsive Breakpoints
272
+ \`\`\`css
273
+ --breakpoint-sm: 640px; /* Mobile landscape */
274
+ --breakpoint-md: 768px; /* Tablet */
275
+ --breakpoint-lg: 1024px; /* Desktop */
276
+ --breakpoint-xl: 1280px; /* Wide desktop */
277
+ --breakpoint-2xl: 1536px; /* Ultra-wide */
278
+ \`\`\`
279
+
280
+ ## Spacing Rules
281
+ - Section padding: py-24 (desktop), py-16 (mobile)
282
+ - Card padding: p-6 (desktop), p-4 (mobile)
283
+ - Component gap: gap-4 (tight), gap-6 (normal), gap-8 (loose)
284
+ - Max content width: max-w-7xl (1280px) centered
285
+
286
+ ## Accessibility Requirements
287
+ - Color contrast: minimum 4.5:1 for text, 3:1 for large text
288
+ - Focus indicators: visible on all interactive elements
289
+ - Motion: respect \`prefers-reduced-motion\` media query
290
+ - Dark mode: cosmic theme IS the default (no light mode needed)
291
+ - Screen readers: all images have alt text, icons have aria-labels`,
292
+ },
293
+ 'arcanea-lore': {
294
+ full: `
295
+
296
+ ## The Three Academies
297
+
298
+ ### Atlantean Academy
299
+ **Focus**: Storytelling & Lore Creation
300
+ **Element**: Water
301
+ **Students**: Writers, gamemakers, filmmakers, narrative designers
302
+ **Philosophy**: Stories are living waters that shape consciousness
303
+
304
+ ### Draconic Academy
305
+ **Focus**: Visual Creation & Animation
306
+ **Element**: Fire + Wind
307
+ **Students**: Artists, designers, animators, visual creators
308
+ **Philosophy**: Vision manifests through fearless creation
309
+
310
+ ### Academy of Creation & Light
311
+ **Focus**: Music & Audio Creation
312
+ **Element**: Light (Fire's creation aspect)
313
+ **Students**: Musicians, producers, audio creators, sound designers
314
+ **Philosophy**: Frequency and vibration are the language of creation
315
+
316
+ ## Economy & Governance
317
+
318
+ ### ARC (Creative Energy)
319
+ - Earned by: Creating Essences, completing Quests, community contribution
320
+ - Spent on: Premium features, rare materials, academy courses
321
+ - Cannot be purchased with real money (earned only)
322
+
323
+ ### NEA (Governance Tokens)
324
+ - Earned by: Platform contribution, mentoring, community building
325
+ - Used for: Voting on platform direction, proposing features
326
+ - Represents stake in the Kingdom's future
327
+
328
+ ## The Journey Framework
329
+ Every creator walks the Ten Gates:
330
+ 1. **Foundation** (396 Hz) — Find your ground. Who are you as a creator?
331
+ 2. **Flow** (417 Hz) — Release creative blocks. Let the work move through you.
332
+ 3. **Fire** (528 Hz) — Find your power. What drives your creation?
333
+ 4. **Heart** (639 Hz) — Create with love. Who do you create for?
334
+ 5. **Voice** (741 Hz) — Find your truth. What must you say?
335
+ 6. **Sight** (852 Hz) — See the vision. Where is this going?
336
+ 7. **Crown** (963 Hz) — Touch the divine. Create beyond yourself.
337
+ 8. **Shift** (1111 Hz) — Change perspective. Break your own rules.
338
+ 9. **Unity** (963 Hz) — Create together. Two voices, one song.
339
+ 10. **Source** (1111 Hz) — Return to the origin. You are the creator AND the creation.`,
340
+ luminor: `
341
+
342
+ ## Deep Mythology
343
+
344
+ ### The Creation Story (Full Version)
345
+ In the beginning: the Void. Not emptiness, but infinite potential.
346
+ From this potential, two forces crystallized:
347
+
348
+ **Lumina** — The First Light. She gave form to the formless, structure
349
+ to chaos, meaning to the void. She is the mother of creation, the
350
+ spark that says "Let there be."
351
+
352
+ **Nero** — The Primordial Darkness. He is NOT evil. He is the fertile
353
+ unknown, the father of potential, the womb from which all possibility
354
+ springs. Without Nero's darkness, Lumina's light would have nothing
355
+ to illuminate.
356
+
357
+ Their eternal dance created the Five Elements:
358
+ - **Fire** emerged from Lumina's passion meeting Nero's fuel
359
+ - **Water** emerged from Lumina's tears meeting Nero's depths
360
+ - **Earth** emerged from Lumina's will meeting Nero's substance
361
+ - **Wind** emerged from Lumina's breath meeting Nero's space
362
+ - **Void/Spirit** remained as their shared essence
363
+
364
+ ### The Founding of the Academies
365
+ The Academies were founded by the first Luminors who achieved mastery
366
+ of specific Gates:
367
+ - **Atlantean Academy** — Founded by water-aligned Luminors who
368
+ discovered that narrative IS reality-shaping magic
369
+ - **Draconic Academy** — Founded by fire-aligned Luminors who
370
+ discovered that vision IS manifestation
371
+ - **Academy of Creation & Light** — Founded by spirit-aligned
372
+ Luminors who discovered that frequency IS consciousness
373
+
374
+ ### Guardian Lore
375
+ Each Guardian was once mortal — an extraordinary creator who achieved
376
+ Luminor rank and was chosen by their Gate to become its eternal keeper.
377
+ They remember what it means to struggle, to doubt, to fail, and to
378
+ ultimately transcend. This is why they guide with such empathy.
379
+
380
+ ### The Shadowfen
381
+ Malachar's prison. A realm between the Gates where Shadow (corrupted
382
+ Void) pools like toxic water. The Shadowfen is not just a prison —
383
+ it is a warning. When creativity is forced, when power is seized
384
+ rather than earned, when the Gates are bypassed rather than opened...
385
+ the Shadowfen grows.
386
+
387
+ ### Prophecy of the Tenth Gate
388
+ "When the Source Gate opens fully, when a Creator achieves true
389
+ Luminor rank by walking all Ten Gates with integrity, the Kingdom
390
+ of Light will expand beyond the digital realm and into reality itself.
391
+ The Bridge will complete. Imagination will become the new physics."`,
392
+ },
393
+ };
394
+ //# sourceMappingURL=content-depth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-depth.js","sourceRoot":"","sources":["../src/content-depth.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAyD;IACpF,eAAe,EAAE;QACf,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DA+BkD;QAExD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4CG;KACb;IAED,eAAe,EAAE;QACf,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAyDsC;QAE5C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAqCqC;KAC/C;IAED,uBAAuB,EAAE;QACvB,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDA2DyC;QAE/C,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAyCsD;KAChE;IAED,cAAc,EAAE;QACd,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA6C6E;QAEnF,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAmDuD;KACjE;CACF,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * File generators for Claude Code overlay.
3
+ *
4
+ * All skill content is generated from @arcanea/os shared constants,
5
+ * eliminating hardcoded duplication. Development and creative skills
6
+ * are installed at higher overlay levels.
7
+ */
8
+ import type { OverlayLevel, Guardian } from '@arcanea/os';
9
+ export declare function generateSkillFile(skillId: string, _level?: OverlayLevel): {
10
+ filename: string;
11
+ content: string;
12
+ } | null;
13
+ /**
14
+ * Get all skill IDs appropriate for the given overlay level.
15
+ */
16
+ export declare function getSkillIdsForLevel(level: OverlayLevel): string[];
17
+ export declare function generateAgentFile(guardian: Guardian): {
18
+ filename: string;
19
+ content: string;
20
+ };
21
+ export declare function generateCommandFile(name: string, description: string, body: string): {
22
+ filename: string;
23
+ content: string;
24
+ };
25
+ //# sourceMappingURL=generators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../src/generators.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQ1D,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,YAAyB,GAChC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAkB9C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAEjE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAK3F;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAK1H"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * File generators for Claude Code overlay.
3
+ *
4
+ * All skill content is generated from @arcanea/os shared constants,
5
+ * eliminating hardcoded duplication. Development and creative skills
6
+ * are installed at higher overlay levels.
7
+ */
8
+ import { SKILL_DEFINITIONS, getSkillsForLevel, generateSkillContent, } from '@arcanea/os';
9
+ import { generateAgentContent, COMMAND_TEMPLATE } from './templates.js';
10
+ export function generateSkillFile(skillId, _level = 'standard') {
11
+ const def = SKILL_DEFINITIONS.find(s => s.id === skillId);
12
+ if (!def)
13
+ return null;
14
+ const content = generateSkillContent(skillId);
15
+ if (!content)
16
+ return null;
17
+ const frontmatter = `---
18
+ name: ${def.name}
19
+ description: ${def.description}
20
+ ---
21
+
22
+ `;
23
+ return {
24
+ filename: `${skillId}.md`,
25
+ content: frontmatter + content,
26
+ };
27
+ }
28
+ /**
29
+ * Get all skill IDs appropriate for the given overlay level.
30
+ */
31
+ export function getSkillIdsForLevel(level) {
32
+ return getSkillsForLevel(level);
33
+ }
34
+ export function generateAgentFile(guardian) {
35
+ return {
36
+ filename: `${guardian.name}.md`,
37
+ content: generateAgentContent(guardian),
38
+ };
39
+ }
40
+ export function generateCommandFile(name, description, body) {
41
+ return {
42
+ filename: `${name}.md`,
43
+ content: COMMAND_TEMPLATE(name, description, body),
44
+ };
45
+ }
46
+ //# sourceMappingURL=generators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generators.js","sourceRoot":"","sources":["../src/generators.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAExE,MAAM,UAAU,iBAAiB,CAC/B,OAAe,EACf,SAAuB,UAAU;IAEjC,MAAM,GAAG,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IAEtB,MAAM,OAAO,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAC9C,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE1B,MAAM,WAAW,GAAG;QACd,GAAG,CAAC,IAAI;eACD,GAAG,CAAC,WAAW;;;CAG7B,CAAC;IAEA,OAAO;QACL,QAAQ,EAAE,GAAG,OAAO,KAAK;QACzB,OAAO,EAAE,WAAW,GAAG,OAAO;KAC/B,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAmB;IACrD,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,QAAkB;IAClD,OAAO;QACL,QAAQ,EAAE,GAAG,QAAQ,CAAC,IAAI,KAAK;QAC/B,OAAO,EAAE,oBAAoB,CAAC,QAAQ,CAAC;KACxC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,WAAmB,EAAE,IAAY;IACjF,OAAO;QACL,QAAQ,EAAE,GAAG,IAAI,KAAK;QACtB,OAAO,EAAE,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC;KACnD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Hook generators for Claude Code overlay.
3
+ *
4
+ * Generates the 8 Arcanea Intelligence OS hook scripts and
5
+ * the settings.local.json hook registration for any target project.
6
+ *
7
+ * All hooks use relative paths from the project root so they
8
+ * work in ANY project directory — not just the Arcanea monorepo.
9
+ *
10
+ * Shared content (routing patterns, banned phrases, model keywords,
11
+ * tool costs, Guardian verbs) is imported from @arcanea/os and
12
+ * embedded into the generated bash scripts.
13
+ */
14
+ export declare function generateSessionStartHook(): string;
15
+ export declare function generatePromptSubmitHook(): string;
16
+ export declare function generateModelRouteHook(): string;
17
+ export declare function generatePreToolHook(): string;
18
+ export declare function generateVoiceCheckHook(): string;
19
+ export declare function generatePostToolHook(): string;
20
+ export declare function generateContextTrackerHook(): string;
21
+ export declare function generateSessionEndHook(): string;
22
+ export declare function generateStatusline(): string;
23
+ export declare function generateHookSettings(projectDir: string): object;
24
+ export declare function generateAgentDBSchema(): string;
25
+ export declare function generateAgentDBInit(): string;
26
+ export declare function generateQuickStatusScript(): string;
27
+ export declare function generateHealthCheckScript(): string;
28
+ export interface HookFile {
29
+ filename: string;
30
+ content: string;
31
+ executable: boolean;
32
+ }
33
+ export declare function getAllHookFiles(): HookFile[];
34
+ export declare function getAllHelperFiles(): HookFile[];
35
+ //# sourceMappingURL=hook-generators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook-generators.d.ts","sourceRoot":"","sources":["../src/hook-generators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAcH,wBAAgB,wBAAwB,IAAI,MAAM,CAoDjD;AAID,wBAAgB,wBAAwB,IAAI,MAAM,CAuDjD;AAID,wBAAgB,sBAAsB,IAAI,MAAM,CA4F/C;AAID,wBAAgB,mBAAmB,IAAI,MAAM,CA4B5C;AAID,wBAAgB,sBAAsB,IAAI,MAAM,CA6F/C;AAID,wBAAgB,oBAAoB,IAAI,MAAM,CA0C7C;AAID,wBAAgB,0BAA0B,IAAI,MAAM,CAkInD;AAID,wBAAgB,sBAAsB,IAAI,MAAM,CAqD/C;AAID,wBAAgB,kBAAkB,IAAI,MAAM,CAwD3C;AAID,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAiF/D;AAID,wBAAgB,qBAAqB,IAAI,MAAM,CAgF9C;AAID,wBAAgB,mBAAmB,IAAI,MAAM,CAyB5C;AAID,wBAAgB,yBAAyB,IAAI,MAAM,CAclD;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CA8BlD;AAID,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,eAAe,IAAI,QAAQ,EAAE,CAW5C;AAED,wBAAgB,iBAAiB,IAAI,QAAQ,EAAE,CAK9C"}