@adhamalkhaja/seyola-runtime 0.11.20 → 0.12.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;oEAIgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC;CACrB;AAoFD,wBAAsB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CA4MzE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;oEAIgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC;CACrB;AA4KD,wBAAsB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CA0QzE"}
@@ -28,14 +28,13 @@ import { existsSync, mkdirSync, readFileSync, writeFileSync, statSync, readdirSy
28
28
  import { join, resolve, dirname } from "node:path";
29
29
  import { validatePack } from "../validate-pack/index.js";
30
30
  const APPROVED_SKILLS = [
31
- // Layer 0 tour guide (pack v1.17.0)
32
- "seyo",
31
+ // v1.18.0 /seyo archived; /atlas absorbed orientation role.
33
32
  // Layer 1 substrate (foundation + market + synthesis)
34
33
  "brand-voice",
35
34
  "audience-profile-builder",
36
35
  "story-bank-builder",
37
36
  "qualify",
38
- "pain",
37
+ "the-compass", // v1.21: renamed from "pain", Days 5 (hypothesis) + 19 (verified refresh)
39
38
  "expertise",
40
39
  "operations",
41
40
  "vault",
@@ -61,9 +60,46 @@ const APPROVED_SKILLS = [
61
60
  // Layer 1 operating-identity (pack v1.17.0)
62
61
  "operating-name",
63
62
  "cold-email-domain-warmup",
64
- // Layer 3 commercial
65
- "linkedin-writer",
66
- "offer-builder",
63
+ // Layer 1 commercial-surface split (pack v1.18.0)
64
+ "linkedin-profile",
65
+ "one-pager",
66
+ // Layer 1 specialisation cascade (pack v1.19.0)
67
+ "niche-discovery",
68
+ "archetype-picker",
69
+ // Layer 1 offer engines (Month 2 — Day 31 + Day 33). Member-visible per registry.
70
+ "offer-architect", // Day 31 offer-document
71
+ "money-page", // Day 33 money-page
72
+ // Layer 1 engine-activation skills — only close-attempt-builder remains at L1 (Chunk 7 deferred to v1.21)
73
+ "close-attempt-builder", // Day 61 first close + Volume rhythm (v1.21 will refactor to L3 orchestrator)
74
+ // Layer 3 commercial + content + email + youtube (pack v1.20 consolidation)
75
+ "linkedin-writer", // v1.20 replaces linkedin-post-builder (Day 22 + Days 23+ recurring)
76
+ "lead-magnet", // v1.20 replaces lead-magnet-builder (Day 24 + Day 60+ refresh)
77
+ "landing-page", // v1.20 replaces landing-page-builder (Day 26 + Day 60+ update)
78
+ "email-capture-setup", // v1.20 moved from layer-1 to layer-3 (Day 27)
79
+ "email-strategist", // v1.20 new at L3 (Day 27 engine planning)
80
+ "email-sequences", // v1.20 new at L3 (Day 32 step 2a + mid-program sequences)
81
+ "email-writer", // v1.20 replaces email-broadcast-writer (Day 32 step 2b + Days 33+ recurring)
82
+ "newsletter", // v1.20 new at L3 (Day 32 step 2c + Days 33+ recurring)
83
+ "email-health", // v1.20 new at L3 (Day 60+ quarterly audit)
84
+ "email-xray", // v1.20 new at L3 (Day 50+ broadcast scoring)
85
+ "youtube-ideation", // v1.20 new at L3 (Day 40 sub-step + planning)
86
+ "youtube-presentation", // v1.20 new at L3 (editorial HTML for YouTube)
87
+ "presentation-publish", // v1.20 — Day 40 orchestrator (composes the 4 youtube sub-skills)
88
+ "presentation-from-idea", // v1.20 — Day 40 sub-step 2 (script + rough deck)
89
+ "youtube-thumbnail-and-title", // v1.20 — Day 40 sub-step 4a
90
+ "youtube-description-pack", // v1.20 — Day 40 sub-step 4b
91
+ "the-majlis-invite", // v1.21 new at L3 (Day 12 warm-circle soft launch)
92
+ "the-ladder", // v1.21 Wave 2 new at L3 (Day 3+19 visual program model)
93
+ "the-boomerang", // v1.21 Wave 2 new at L3 (Day 16+ Chat Close 3-stage)
94
+ "the-call-arc", // v1.21 Wave 2 new at L3 (Day 20+ Sales call 3-phase + Six Beats)
95
+ "the-offer-doc", // v1.21 Wave 3 — renamed from proposal-builder, refactored standalone (Day 21+ written offer)
96
+ "the-daily-thirty", // v1.21 Wave 4 — daily floor for Foundation Rhythm (Day 22+ Goals/Content/Outreach)
97
+ "grill-me", // v1.22.2 — brainstorm partner + pressure-test. Always available from Day 0 onward. Inspired by Matt Pocock's grill-me, adapted to Seyola substrate.
98
+ "delivery-architect", // v1.22 — engagement design on client signed (Day 21+ on outcome=signed)
99
+ "client-success-runner", // v1.22 — weekly checkpoint per active engagement (recurring)
100
+ "engagement-renewal", // v1.22 — renewal conversation T-14/T-30/T-7 (triggered)
101
+ // /offer-builder removed v1.23.0-rc1: registry marks it member_visible:false,
102
+ // status:internal_pipeline (replaced by /offer-drafter Day 21 + /offer-architect Day 31)
67
103
  "outreach-writer",
68
104
  ];
69
105
  const APPROVED_SKILL_FOLDERS = [
@@ -72,7 +108,7 @@ const APPROVED_SKILL_FOLDERS = [
72
108
  "skills/layer-1/audience-profile-builder",
73
109
  "skills/layer-1/story-bank-builder",
74
110
  "skills/layer-1/qualify",
75
- "skills/layer-1/pain",
111
+ "skills/layer-1/the-compass", // v1.21: renamed from layer-1/pain
76
112
  "skills/layer-1/expertise",
77
113
  "skills/layer-1/operations",
78
114
  "skills/layer-1/vault",
@@ -98,14 +134,66 @@ const APPROVED_SKILL_FOLDERS = [
98
134
  // Layer 1 operating-identity (pack v1.17.0)
99
135
  "skills/layer-1/operating-name",
100
136
  "skills/layer-1/cold-email-domain-warmup",
101
- // Layer 0 tour guide (pack v1.17.0)
102
- "skills/layer-0/seyo",
103
- // Layer 3 commercial
137
+ // Layer 1 commercial-surface split (pack v1.18.0)
138
+ "skills/layer-1/linkedin-profile",
139
+ "skills/layer-1/one-pager",
140
+ // Layer 1 specialisation cascade (pack v1.19.0)
141
+ "skills/layer-1/niche-discovery",
142
+ "skills/layer-1/archetype-picker",
143
+ // Layer 1 offer engines (Month 2 — Day 31 + Day 33)
144
+ "skills/layer-1/offer-architect",
145
+ "skills/layer-1/money-page",
146
+ // Layer 1 engine-activation — only close-attempt-builder remains at L1 (Chunk 7 deferred to v1.21)
147
+ "skills/layer-1/close-attempt-builder",
148
+ // Layer 3 commercial + content + email + youtube (pack v1.20 consolidation)
104
149
  "skills/layer-3/linkedin-writer",
105
- "skills/layer-3/offer-builder",
150
+ "skills/layer-3/lead-magnet",
151
+ "skills/layer-3/landing-page",
152
+ "skills/layer-3/email-capture-setup",
153
+ "skills/layer-3/email-strategist",
154
+ "skills/layer-3/email-sequences",
155
+ "skills/layer-3/email-writer",
156
+ "skills/layer-3/newsletter",
157
+ "skills/layer-3/email-health",
158
+ "skills/layer-3/email-xray",
159
+ "skills/layer-3/youtube-ideation",
160
+ "skills/layer-3/youtube-presentation",
161
+ "skills/layer-3/presentation-publish",
162
+ "skills/layer-3/presentation-from-idea",
163
+ "skills/layer-3/youtube-thumbnail-and-title",
164
+ "skills/layer-3/youtube-description-pack",
165
+ "skills/layer-3/the-majlis-invite", // v1.21 new
166
+ "skills/layer-3/the-ladder", // v1.21 Wave 2
167
+ "skills/layer-3/the-boomerang", // v1.21 Wave 2
168
+ "skills/layer-3/the-call-arc", // v1.21 Wave 2
169
+ "skills/layer-3/the-offer-doc", // v1.21 Wave 3 (renamed from proposal-builder)
170
+ "skills/layer-3/the-daily-thirty", // v1.21 Wave 4 (daily Foundation Rhythm floor)
171
+ "skills/layer-3/grill-me", // v1.22.2 — brainstorm partner
172
+ "skills/layer-3/delivery-architect", // v1.22 (engagement design on signed)
173
+ "skills/layer-3/client-success-runner", // v1.22 (weekly checkpoint)
174
+ "skills/layer-3/engagement-renewal", // v1.22 (renewal conversation)
175
+ // skills/layer-3/offer-builder removed v1.23.0-rc1 (internal_pipeline, see APPROVED_SKILLS comment)
106
176
  "skills/layer-3/outreach-writer",
107
177
  ];
108
- const MEMBER_OWNED_DIRS = ["_foundations", "self", "runtime", "market", "market/audience-profiles", "market/language-bank", "clients", "runs", "output", "offer", "content"];
178
+ const MEMBER_OWNED_DIRS = [
179
+ "_foundations",
180
+ "self",
181
+ "runtime",
182
+ "market",
183
+ "market/audience-profiles",
184
+ "market/language-bank",
185
+ "clients",
186
+ "runs",
187
+ "output", // legacy — keep for backward compat
188
+ "outputs", // v1.20+ /landing-page rendered HTML
189
+ "offer",
190
+ "offers", // v1.21+ /the-offer-doc, /lead-magnet
191
+ "content",
192
+ "email", // v1.20+ /email-writer, /email-sequences, /newsletter
193
+ "commercial-surface", // v1.20+ /landing-page, /close-attempt-builder
194
+ "outreach", // v1.16.5+ /lead-source-builder, /sales-infrastructure
195
+ "assets", // v1.17+ /cold-email-domain-warmup, /sales-infrastructure (cold-email infra config)
196
+ ];
109
197
  export async function runBundle(args) {
110
198
  const start = Date.now();
111
199
  const out = resolve(args.outPath);
@@ -252,9 +340,11 @@ export async function runBundle(args) {
252
340
  // - want the doctor health check before launching claude
253
341
  const claudeDir = join(out, ".claude");
254
342
  const claudeSkillsDir = join(claudeDir, "skills");
255
- if (!existsSync(claudeSkillsDir)) {
256
- mkdirSync(claudeSkillsDir, { recursive: true });
257
- }
343
+ // Always wipe .claude/skills/ before copying so stale skill folders from
344
+ // earlier bundles (e.g. /pain renamed to /the-compass) don't accumulate.
345
+ if (existsSync(claudeSkillsDir))
346
+ rmSync(claudeSkillsDir, { recursive: true, force: true });
347
+ mkdirSync(claudeSkillsDir, { recursive: true });
258
348
  for (const sk of APPROVED_SKILL_FOLDERS) {
259
349
  const skillName = sk.split("/").pop();
260
350
  const srcSk = join(pack, sk);
@@ -266,6 +356,8 @@ export async function runBundle(args) {
266
356
  // Settings.json — relative paths so the bundle works wherever member unzips it.
267
357
  // Bash-on-Windows note: forward slashes only, never backslashes; double-quoted env var
268
358
  // values would still survive shell expansion.
359
+ // The deny list is the alpha-safety boundary. Keep this in lockstep with
360
+ // seyola-runtime/src/init/index.ts; both produce the same settings.json shape.
269
361
  const settings = {
270
362
  env: {
271
363
  SEYOLA_PACK_PATH: ".seyola/pack",
@@ -276,6 +368,32 @@ export async function runBundle(args) {
276
368
  "Bash(seyola-runtime:*)",
277
369
  "Read(.seyola/**)",
278
370
  ],
371
+ deny: [
372
+ // Secrets and credentials — never read into Claude context
373
+ "Read(.env)",
374
+ "Read(.env.*)",
375
+ "Read(secrets/**)",
376
+ "Read(credentials/**)",
377
+ "Read(**/*.pem)",
378
+ "Read(**/*.key)",
379
+ "Read(**/id_rsa)",
380
+ "Read(**/id_rsa.pub)",
381
+ "Read(**/id_ed25519)",
382
+ "Read(**/id_ed25519.pub)",
383
+ "Read(**/.npmrc)",
384
+ "Read(**/.netrc)",
385
+ "Read(**/.aws/credentials)",
386
+ "Read(**/.ssh/**)",
387
+ // Git internals
388
+ "Read(.git/**)",
389
+ // Destructive shell
390
+ "Bash(rm -rf /:*)",
391
+ "Bash(rm -rf ~:*)",
392
+ "Bash(rm -rf $HOME:*)",
393
+ "Bash(git push --force:*)",
394
+ "Bash(git push -f:*)",
395
+ "Bash(git reset --hard:*)",
396
+ ],
279
397
  },
280
398
  };
281
399
  writeFileSync(join(claudeDir, "settings.json"), JSON.stringify(settings, null, 2) + "\n", "utf8");
@@ -289,7 +407,7 @@ export async function runBundle(args) {
289
407
  // restrictions on downloaded files. cmd files don't trigger the restriction.
290
408
  writeFileSync(join(out, "setup.cmd"), setupCmd(), "utf8");
291
409
  result.files_written.push("setup.cmd");
292
- // 8. README + GETTING-STARTED — only write if missing.
410
+ // 8. README + GETTING-STARTED — write only if missing (member can edit).
293
411
  const readmePath = join(out, "README.md");
294
412
  if (!existsSync(readmePath)) {
295
413
  writeFileSync(readmePath, bundleReadme(result.pack_version, result.runtime_version, bundleName), "utf8");
@@ -300,6 +418,38 @@ export async function runBundle(args) {
300
418
  writeFileSync(gsPath, bundleGettingStarted(), "utf8");
301
419
  result.files_written.push("GETTING-STARTED.md");
302
420
  }
421
+ // CLAUDE.md — SYSTEM-OWNED. Always regenerated on bundle so voice rules,
422
+ // routing rules, deprecated-command warnings, and privacy notes stay current.
423
+ // If an existing CLAUDE.md is present with different content, we back it up
424
+ // to .seyola/backups/CLAUDE-<timestamp>.md before overwriting so the member
425
+ // never loses prior context silently.
426
+ const claudeMdPath = join(out, "CLAUDE.md");
427
+ const newClaudeContent = bundleClaudeMd();
428
+ if (existsSync(claudeMdPath)) {
429
+ const existing = readFileSync(claudeMdPath, "utf8");
430
+ if (existing !== newClaudeContent) {
431
+ const backupsDir = join(out, ".seyola", "backups");
432
+ mkdirSync(backupsDir, { recursive: true });
433
+ const stamp = new Date().toISOString().replace(/[:.]/g, "-");
434
+ const backupPath = join(backupsDir, `CLAUDE-${stamp}.md`);
435
+ writeFileSync(backupPath, existing, "utf8");
436
+ result.files_written.push(`.seyola/backups/CLAUDE-${stamp}.md`);
437
+ writeFileSync(claudeMdPath, newClaudeContent, "utf8");
438
+ result.files_written.push("CLAUDE.md (regenerated; previous backed up)");
439
+ }
440
+ }
441
+ else {
442
+ writeFileSync(claudeMdPath, newClaudeContent, "utf8");
443
+ result.files_written.push("CLAUDE.md");
444
+ }
445
+ // MEMBER-NOTES.md — MEMBER-OWNED. Write only if missing. Member edits are
446
+ // preserved forever. This is the place to add operator-level notes that
447
+ // should NOT live inside the system-owned CLAUDE.md.
448
+ const memberNotesPath = join(out, "MEMBER-NOTES.md");
449
+ if (!existsSync(memberNotesPath)) {
450
+ writeFileSync(memberNotesPath, bundleMemberNotes(), "utf8");
451
+ result.files_written.push("MEMBER-NOTES.md");
452
+ }
303
453
  return finalize(args, result, start);
304
454
  }
305
455
  // =====================================================================
@@ -580,6 +730,11 @@ function copyFileWithMkdir(src, dest) {
580
730
  // failure logs, fixtures, and other maintainer-only artifacts (see
581
731
  // docs/templates/FAILURES.md and HARNESS-UPGRADE-CHECKLIST.md P0.1).
582
732
  const ALWAYS_EXCLUDED_DIR_NAMES = new Set(["_internal"]);
733
+ // File names that are NEVER copied into a client bundle, regardless of where
734
+ // they appear in the tree. operator-notes.md captures Adham's per-skill
735
+ // guidance, market context, and edge cases. Members do not need it and it may
736
+ // include internal context. See policies/client-exposure-manifest.md.
737
+ const ALWAYS_EXCLUDED_FILE_NAMES = new Set(["operator-notes.md"]);
583
738
  function copyDir(src, dest, opts) {
584
739
  const exclude = new Set(opts.excludeRel ?? []);
585
740
  if (!existsSync(dest))
@@ -590,6 +745,8 @@ function copyDir(src, dest, opts) {
590
745
  continue;
591
746
  if (entry.isDirectory() && ALWAYS_EXCLUDED_DIR_NAMES.has(entry.name))
592
747
  continue;
748
+ if (entry.isFile() && ALWAYS_EXCLUDED_FILE_NAMES.has(entry.name))
749
+ continue;
593
750
  const s = join(src, entry.name);
594
751
  const d = join(dest, entry.name);
595
752
  if (entry.isDirectory()) {
@@ -641,6 +798,11 @@ try {
641
798
  Write-Host " FAIL" -ForegroundColor Red
642
799
  Write-Host " Node.js 20 or higher is required. Found: $nodeVersion"
643
800
  Write-Host " Install Node 20+ from https://nodejs.org/, then rerun this script."
801
+ Write-Host ""
802
+ Write-Host " ALTERNATIVE (non-technical members):"
803
+ Write-Host " If you have Claude Code or claude.ai access, paste this script"
804
+ Write-Host " into Claude and say 'install Node.js and run this for me'."
805
+ Write-Host " Claude will walk you through the missing pieces step by step."
644
806
  exit 1
645
807
  }
646
808
  Write-Host " ok ($nodeVersion)" -ForegroundColor Green
@@ -651,6 +813,11 @@ try {
651
813
  Write-Host " FAIL" -ForegroundColor Red
652
814
  Write-Host " Node.js is not installed or not on PATH."
653
815
  Write-Host " Install Node 20+ from https://nodejs.org/, then rerun this script."
816
+ Write-Host ""
817
+ Write-Host " ALTERNATIVE (non-technical members):"
818
+ Write-Host " If you have Claude Code or claude.ai access, paste this script"
819
+ Write-Host " into Claude and say 'install Node.js and run this for me'."
820
+ Write-Host " Claude will walk you through the missing pieces step by step."
654
821
  exit 1
655
822
  }
656
823
 
@@ -714,7 +881,7 @@ Write-Host "Setup complete." -ForegroundColor Green
714
881
  Write-Host ""
715
882
  Write-Host "Next steps:"
716
883
  Write-Host " 1. Run: claude"
717
- Write-Host " 2. Type: /linkedin-writer"
884
+ Write-Host " 2. Type: /atlas"
718
885
  Write-Host ""
719
886
  Write-Host "See GETTING-STARTED.md for the full first-run flow."
720
887
  Write-Host ""
@@ -759,6 +926,11 @@ if ! command -v node >/dev/null 2>&1; then
759
926
  echo "FAIL"
760
927
  echo " Node.js is not installed or not on PATH."
761
928
  echo " Install Node 20+ from https://nodejs.org/, then rerun this script."
929
+ echo ""
930
+ echo " ALTERNATIVE (non-technical members):"
931
+ echo " If you have Claude Code or claude.ai access, paste this script"
932
+ echo " into Claude and say 'install Node.js and run this for me'."
933
+ echo " Claude will walk you through the missing pieces step by step."
762
934
  exit 1
763
935
  fi
764
936
  NODE_VERSION=$(node --version)
@@ -767,6 +939,11 @@ if [ "$NODE_MAJOR" -lt 20 ]; then
767
939
  echo "FAIL"
768
940
  echo " Node.js 20 or higher is required. Found: $NODE_VERSION"
769
941
  echo " Install Node 20+ from https://nodejs.org/, then rerun this script."
942
+ echo ""
943
+ echo " ALTERNATIVE (non-technical members):"
944
+ echo " If you have Claude Code or claude.ai access, paste this script"
945
+ echo " into Claude and say 'install Node.js and run this for me'."
946
+ echo " Claude will walk you through the missing pieces step by step."
770
947
  exit 1
771
948
  fi
772
949
  echo "ok ($NODE_VERSION)"
@@ -817,7 +994,7 @@ echo "Setup complete."
817
994
  echo ""
818
995
  echo "Next steps:"
819
996
  echo " 1. Run: claude"
820
- echo " 2. Type: /linkedin-writer"
997
+ echo " 2. Type: /atlas"
821
998
  echo ""
822
999
  echo "See GETTING-STARTED.md for the full first-run flow."
823
1000
  echo ""
@@ -829,6 +1006,12 @@ function bundleGitignore() {
829
1006
  _foundations/*
830
1007
  !_foundations/.gitkeep
831
1008
 
1009
+ self/*
1010
+ !self/.gitkeep
1011
+
1012
+ runtime/*
1013
+ !runtime/.gitkeep
1014
+
832
1015
  market/*
833
1016
  !market/.gitkeep
834
1017
 
@@ -841,12 +1024,30 @@ runs/*
841
1024
  output/*
842
1025
  !output/.gitkeep
843
1026
 
1027
+ outputs/*
1028
+ !outputs/.gitkeep
1029
+
844
1030
  offer/*
845
1031
  !offer/.gitkeep
846
1032
 
1033
+ offers/*
1034
+ !offers/.gitkeep
1035
+
847
1036
  content/*
848
1037
  !content/.gitkeep
849
1038
 
1039
+ email/*
1040
+ !email/.gitkeep
1041
+
1042
+ commercial-surface/*
1043
+ !commercial-surface/.gitkeep
1044
+
1045
+ outreach/*
1046
+ !outreach/.gitkeep
1047
+
1048
+ assets/*
1049
+ !assets/.gitkeep
1050
+
850
1051
  # OS / editor noise
851
1052
  .DS_Store
852
1053
  Thumbs.db
@@ -973,6 +1174,125 @@ bash setup.sh # or setup.cmd on Windows
973
1174
  Post in the Seyola Skool community. Include what you typed, what you saw, and the output of \`seyola-runtime doctor --workspace . --json\`.
974
1175
  `;
975
1176
  }
1177
+ function bundleMemberNotes() {
1178
+ return `# MEMBER-NOTES.md
1179
+
1180
+ This file is yours. Edit it freely. The runtime never overwrites it.
1181
+
1182
+ \`CLAUDE.md\` next to this file is the opposite. It is system-owned and Claude Code reads it at session start to govern its behavior. When the bundle updates, \`CLAUDE.md\` gets refreshed and the previous version moves to \`.seyola/backups/CLAUDE-<timestamp>.md\`. So do not edit \`CLAUDE.md\`. Edit this file instead.
1183
+
1184
+ ## What to put here
1185
+
1186
+ This is the place for your own private notes about how you are running the program. Things like:
1187
+
1188
+ - Local context Claude does not need to know but you want to remember.
1189
+ - Decisions you made between sessions that you want a record of.
1190
+ - Names, dates, or details about specific clients that should not live in \`runtime/\` or \`market/\` artifacts.
1191
+ - Things you tried that did not work and why.
1192
+
1193
+ ## What NOT to put here
1194
+
1195
+ - Anything Claude needs to read to do its job. That belongs in a substrate artifact.
1196
+ - Voice rules, routing rules, or instructions for Claude. Those live in \`CLAUDE.md\` and will be overwritten on update.
1197
+
1198
+ ## How Claude treats this file
1199
+
1200
+ By default, Claude does not read this file unless you point at it explicitly. If you want Claude to pull from your notes during a session, mention the file by name.
1201
+ `;
1202
+ }
1203
+ function bundleClaudeMd() {
1204
+ return `# CLAUDE.md
1205
+
1206
+ This file is for you, Claude. It tells you how to behave inside this workspace.
1207
+
1208
+ You are running inside a Seyola workspace. Seyola is a 90-day program. It takes a UAE consultant from zero to their first paying client. The program is built as a system of skills, and those skills live in \`.claude/skills/\`. That folder is the program. Read it, trust it, route to it.
1209
+
1210
+ I built this program over 18 months. I wrote the skills in my voice, with my opinions, in my style. When you talk to the member, you are an extension of me. So write like I write, route like I would route, and refuse what I would refuse.
1211
+
1212
+ There are four things I want you to internalize. They are below.
1213
+
1214
+ ## 1. Two skills are always available: /atlas and /grill-me
1215
+
1216
+ \`/atlas\` is the orchestrator. It reads the workspace state and tells you (and the member) where they are in the program and what to run next.
1217
+
1218
+ \`/grill-me\` is the brainstorm partner. It interviews the member one question at a time about whatever they are thinking through, recommends an answer with each question, reads the substrate instead of asking when the answer is already on disk, and surfaces contradictions between fresh claims and locked artifacts. The member can pull it in any time they want to think with pushback instead of cheerleading.
1219
+
1220
+ If the member asks where they are, what is next, what they should do today, or anything that sounds like they are lost, your answer is \`/atlas\`. Do not guess the day. Do not generate a thoughtful-sounding plan based on what you remember. The state files in \`runtime/\` have the truth, and \`/atlas\` is the only skill that reads them all together.
1221
+
1222
+ If the member is fuzzy on a decision, wants to brainstorm, says "let me think about this," or is about to lock a commercial_hard artifact (Day 17 qualify, Day 21 offer-drafter, Day 27 positioning, Day 33 money-page), suggest \`/grill-me\` first. They can warm up their thinking before the regular skill writes the artifact.
1223
+
1224
+ A quick way to check yourself. If the member said "I'm lost" and you answered with a paragraph of advice instead of routing to \`/atlas\`, you got it wrong. The right answer is one line. Run \`/atlas\`. Then let it speak.
1225
+
1226
+ If \`/atlas\` itself errors, do not paper over it. Tell the member what file was missing or what command failed. We can recover from a real error. We cannot recover from you pretending it worked.
1227
+
1228
+ ## 2. Only the skills on disk exist
1229
+
1230
+ There are 61 member-visible skills in \`.claude/skills/\` (the registry has 70 entries total when atoms and deprecated shims are counted; only the visible ones get copied into \`.claude/skills/\`). Every one of them is a real folder with a \`SKILL.md\` file inside. If the command is not in that folder, the command does not exist. Do not invent \`/coach-me\` or \`/strategy-session\` or anything else that sounds plausible. If the member asks for something Seyola does not have, say so.
1231
+
1232
+ When the member asks what a skill does, open the \`SKILL.md\` and quote it. Do not paraphrase from memory. The skill files are the truth and they are in front of you.
1233
+
1234
+ When you write a file path, check that it matches what the artifact registry says at \`.seyola/pack/architecture/artifact-registry.yaml\`. The skills write to specific paths on purpose, and other skills read from those exact paths later in the program. If you invent a path, you break the chain for the member.
1235
+
1236
+ A few skill names changed in recent versions. If you ever see these old names show up in your reasoning, swap them for the new ones before you act.
1237
+
1238
+ \`/pain\` is now \`/the-compass\`
1239
+ \`/lead-magnet-builder\` is now \`/lead-magnet\`
1240
+ \`/landing-page-builder\` is now \`/landing-page\`
1241
+ \`/email-broadcast-writer\` is now \`/email-writer\`
1242
+ \`/youtube-script-writer\` is now \`/presentation-publish\`
1243
+ \`/sales-call-prep\` is now \`/the-call-arc\`
1244
+
1245
+ Check yourself this way. Did you mention a slash command that exists in \`.claude/skills/\`? If yes, you are good. If you mentioned a command that does not exist, you just sent the member into a wall.
1246
+
1247
+ ## 3. The member's files are theirs
1248
+
1249
+ The workspace has folders the member owns. Their substrate lives in \`self/\` and \`_foundations/\`. Their progression state lives in \`runtime/\`. Their market work lives in \`market/\`. Their offer lives in \`offer/\` and \`offers/\`. Their content lives in \`content/\`. Their email work lives in \`email/\`. Their landing surface lives in \`commercial-surface/\`. Their outreach lives in \`outreach/\`. Their signed clients live in \`clients/\`.
1250
+
1251
+ These are not your files. They are 90 days of the member's work captured day by day. Treat them that way.
1252
+
1253
+ When a skill the member just invoked tells you to write to one of these folders, write to it. When you want to write to one of these folders and no skill told you to, stop. Ask the member first. The same applies to deleting or "cleaning up" anything in those folders. The member's progress is sacred and recovering from a botched cleanup is harder than asking once.
1254
+
1255
+ When a file already exists and you are about to write to it again, read it first. Most skills have an explicit refresh mode or update mode for exactly this case. Use the mode the skill defines instead of overwriting raw.
1256
+
1257
+ Check yourself this way. Can every file you just wrote be traced back to a specific skill the member just ran? If yes, you are good.
1258
+
1259
+ ## 4. Sound like me, not like a robot
1260
+
1261
+ I write in a specific way. The skills are written in that voice. When you talk to the member, you should sound the same. Otherwise the conversation feels broken, because half of it sounds like Adham and half of it sounds like generic AI.
1262
+
1263
+ I do not use em-dashes. Use a comma or a period or a semicolon instead.
1264
+
1265
+ I do not use AI vocabulary. The list of banned words includes delve, crucial, robust, comprehensive, holistic, leverage as a verb, unpack, deep dive, synergy, navigate, landscape, game-changer, dive in, journey, in conclusion, and any variation of those.
1266
+
1267
+ I do not use emojis. Ever.
1268
+
1269
+ I do not use exclamation points except for genuine emphasis, and that is rare.
1270
+
1271
+ I do not characterize the member. I never tell them they seem stressed or anxious or excited. If they wrote something, I quote them back word for word and react to what they actually said, not to how I imagine they feel.
1272
+
1273
+ I write in full sentences. I do not write in fragments unless the rhythm of the line actually calls for it. I do not stack short clipped lines for effect.
1274
+
1275
+ I do not use "not X, not Y, not Z" stacked patterns. If something is wrong, I say it is wrong and I say what it is instead.
1276
+
1277
+ I use CAPS on individual words to emphasize, never on full sentences. The member will see things like "this is NOT a substitute for shipping" sometimes. That is the voice.
1278
+
1279
+ I have opinions and I state them. If a member asks a fuzzy question, I answer with a position and move on. I do not hedge across three options.
1280
+
1281
+ If a skill loads its own voice file at \`references/voice/seyola-voice.md\`, that file is more authoritative than this one. This is the floor, not the ceiling.
1282
+
1283
+ Check yourself this way. If you read your last few messages and you find an em-dash, an AI vocab word, an emoji, a characterization of the member, or a "not X, not Y, not Z" pattern, rewrite before you send.
1284
+
1285
+ ## How you know it is working
1286
+
1287
+ The member's first instinct when they get stuck is to type \`/atlas\`. Every file you write lands at the path the artifact registry says it should. The conversation between you and the member sounds like the program, not like a chatbot.
1288
+
1289
+ If you ever feel lost, you have permission to run \`/atlas\` yourself. It reads the state and tells you where the member is. If the member's thinking is fuzzy and they have not yet decided what they want, suggest \`/grill-me\` and brainstorm with them before any artifact-writing skill fires. Then read the SKILL.md the member is about to invoke. Then you proceed.
1290
+
1291
+ ## One more thing about this file
1292
+
1293
+ This \`CLAUDE.md\` is system-owned. It gets regenerated whenever the bundle updates so voice rules, routing rules, and deprecated-command warnings stay current. If the member wants to keep their own private notes that should not be overwritten on update, those live in \`MEMBER-NOTES.md\` next to this file. Do not edit \`MEMBER-NOTES.md\` yourself unless the member asks. When the bundle regenerates \`CLAUDE.md\`, the previous version is preserved at \`.seyola/backups/CLAUDE-<timestamp>.md\` so nothing is lost silently.
1294
+ `;
1295
+ }
976
1296
  function bundleGettingStarted() {
977
1297
  return `# Getting Started with Seyola
978
1298
 
@@ -1110,36 +1430,71 @@ Miss a day? You don't restart. You pick up where you left off.
1110
1430
 
1111
1431
  ## Slash commands available
1112
1432
 
1113
- Month 1 program (Days 1-28):
1114
-
1115
- - \`/atlas\`your guide. Run this when you're not sure what to do next.
1116
- - \`/client-goal-builder\` (Day 1)
1117
- - \`/first-client-path-picker\` (Day 2)
1118
- - \`/promise-sharpener\` (Day 3)
1119
- - \`/proof-surfacer\` (Day 4)
1120
- - \`/market-facing-asset-builder\` (Day 5)
1433
+ Always start with \`/atlas\` — your guide. Routes to the right skill, surfaces today's work, tells you what to run next.
1434
+
1435
+ Month 1Activation Sprint (Days 1-28):
1436
+
1437
+ - \`/atlas\` orchestrator. Run when you're not sure.
1438
+ - \`/client-goal-builder\` (Day 1 step 1)
1439
+ - \`/operating-name\` (Day 1 step 2)
1440
+ - \`/niche-discovery\` (Day 1 step 3)
1441
+ - \`/cold-email-domain-warmup\` (Day 1 step 4 — sales-email path only)
1442
+ - \`/first-client-path-picker\` (Day 2 step 1)
1443
+ - \`/delivery-mode-picker\` (Day 2 step 2 — alias: /archetype-picker)
1444
+ - \`/promise-sharpener\` (Day 3 step 1)
1445
+ - \`/the-ladder\` (Day 3 step 2)
1446
+ - \`/lead-source-builder\` (Day 3 step 3 — sales paths only)
1447
+ - \`/proof-surfacer\` (Day 4 step 1)
1448
+ - \`/sales-infrastructure\` (Day 4 step 2 — outreach paths only)
1449
+ - \`/the-compass\` (Day 5 step 1, refreshed Day 19)
1450
+ - \`/one-pager\` (Day 5 step 2)
1451
+ - \`/market-facing-asset-builder\` (Day 5 step 3)
1121
1452
  - \`/rep-runner\` (Days 6, 9, 11, 13, 16, 18, 20, 22, 24, 26, 28)
1122
1453
  - \`/week-review-runner\` (Day 7)
1123
- - \`/expertise\` (Day 8)
1454
+ - \`/expertise\` (Day 8 step 1)
1455
+ - \`/brand-book\` (Day 8 step 2)
1456
+ - \`/linkedin-profile\` (Day 9 step 2)
1124
1457
  - \`/operations\` (Day 10)
1125
- - \`/capacity\` (Day 12)
1458
+ - \`/capacity\` (Day 12 step 1)
1459
+ - \`/the-majlis-invite\` (Day 12 step 2 — warm-circle soft launch)
1126
1460
  - \`/money-signal\` (Day 14)
1127
1461
  - \`/vault\` (Day 15)
1462
+ - \`/the-boomerang\` (Day 16+ chat close)
1128
1463
  - \`/qualify\` (Day 17)
1129
- - \`/pain\` (Day 19)
1130
- - \`/offer-drafter\` (Day 21)
1464
+ - \`/offer-drafter\` (Day 21 step 1)
1465
+ - \`/the-offer-doc\` (Day 21+ written offer)
1466
+ - \`/the-call-arc\` (Day 20+ sales call)
1467
+ - \`/the-daily-thirty\` (Day 22 install + Days 23-90 daily floor)
1131
1468
  - \`/audience-profile-builder\` (Day 23)
1132
1469
  - \`/language-bank-builder\` (Day 25)
1133
1470
  - \`/positioning\` (Day 27)
1134
1471
  - \`/month-review-runner\` (Day 28)
1135
1472
 
1136
- Supporting workflows (available any time):
1473
+ Month 2-3 — engines + delivery (Days 29-90):
1474
+
1475
+ - \`/offer-architect\` (Day 31 — offer document engine)
1476
+ - \`/money-page\` (Day 33 — money page engine)
1477
+ - \`/email-strategist\` (Day 27/32 — email engine planning)
1478
+ - \`/email-sequences\`, \`/email-writer\`, \`/newsletter\` (Day 32+ recurring)
1479
+ - \`/linkedin-writer\` (Day 22 first + Days 23+ recurring)
1480
+ - \`/lead-magnet\` (Day 24)
1481
+ - \`/landing-page\` (Day 26)
1482
+ - \`/email-capture-setup\` (Day 27)
1483
+ - \`/youtube-ideation\`, \`/youtube-presentation\` (Day 40+)
1484
+ - \`/close-attempt-builder\` (Day 61 + Volume rhythm)
1485
+
1486
+ Post-sale delivery (when a client signs):
1487
+
1488
+ - \`/delivery-architect\` — engagement design on signed
1489
+ - \`/client-success-runner\` — weekly checkpoint per active engagement
1490
+ - \`/engagement-renewal\` — renewal conversation at T-14 / T-30 / T-7
1491
+
1492
+ Substrate + supporting (available any time):
1137
1493
 
1138
1494
  - \`/brand-voice\`
1139
1495
  - \`/story-bank-builder\`
1140
- - \`/linkedin-writer\`
1141
- - \`/offer-builder\`
1142
1496
  - \`/outreach-writer\`
1497
+ - \`/email-health\`, \`/email-xray\` — diagnostics
1143
1498
 
1144
1499
  ## Health check anytime
1145
1500