femo-plugin 1.0.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.
Files changed (166) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +627 -0
  3. package/femo2host/__init__.py +4 -0
  4. package/femo2host/femoToolcall/chronica.py +156 -0
  5. package/femo2host/femoToolcall/femo-chat.mjs +69 -0
  6. package/femo2host/femoToolcall/femo_debugger.py +1515 -0
  7. package/femo2host/femo_api.py +437 -0
  8. package/femo2host/femo_gen_api.jsx +77 -0
  9. package/femoBridges/ContextExample.py +555 -0
  10. package/femoBridges/MemoryExample.py +163 -0
  11. package/femoBridges/__init__.py +1 -0
  12. package/femoBridges/getDir/get_dir.py +56 -0
  13. package/femoBridges/getDir//344/275/240/345/217/257/344/273/245/350/256/276/345/256/232/344/273/273/346/204/217/346/226/207/344/273/266/345/244/271/344/270/272/347/224/250/346/210/267/346/225/260/346/215/256/346/226/207/344/273/266/345/244/271.txt +10 -0
  14. package/femoBridges/llmBridge.py +247 -0
  15. package/femoBridges/llmProviders.py +308 -0
  16. package/femoCompiler/FEMO_CLIrenderer.py +198 -0
  17. package/femoCompiler/FEMO_config.py +35 -0
  18. package/femoCompiler/FEMO_errors.py +278 -0
  19. package/femoCompiler/FEMO_interpreter.py +163 -0
  20. package/femoCompiler/FEMO_normalizer.py +396 -0
  21. package/femoCompiler/FEMO_parser.py +2468 -0
  22. package/femoCompiler/FEMO_runtime.py +3630 -0
  23. package/femoCompiler/FEMO_scope_resolver.py +209 -0
  24. package/femoCompiler/__init__.py +1 -0
  25. package/femoCompiler/actor_resolver.py +86 -0
  26. package/femoCompiler/block_collector.py +441 -0
  27. package/femoCompiler/db_utils.py +485 -0
  28. package/femoCompiler/femoAsync.py +401 -0
  29. package/femoCompiler/host_manifest.py +68 -0
  30. package/femoCompiler/job_manager.py +767 -0
  31. package/femoCompiler/protocol.py +126 -0
  32. package/femoCompiler/save_dialog.py +402 -0
  33. package/femoCompiler/task_world.py +544 -0
  34. package/femoCompiler/vars/__init__.py +19 -0
  35. package/femoCompiler/vars/checkpoint.py +113 -0
  36. package/femoCompiler/vars/env.py +686 -0
  37. package/femoCompiler/vars/evaluator.py +567 -0
  38. package/femoCompiler/vars/join.py +303 -0
  39. package/femoCompiler/vars/merge.py +157 -0
  40. package/femoCompiler/vars/model.py +245 -0
  41. package/femoExamples/AI/345/211/252/350/247/206/351/242/221/AI/345/211/252/350/247/206/351/242/221.femo +192 -0
  42. package/femoExamples/AI/350/201/212/345/244/251/345/256/244/group-chat.femo +42 -0
  43. package/femoExamples/AI/350/201/212/345/244/251/345/256/244/random_wait_time.py +10 -0
  44. package/femoExamples/LuxFiat/luxfiat.femo +38 -0
  45. package/femoExamples/LuxFiat/wait.py +29 -0
  46. package/femoExamples/debug/347/245/236/345/231/250/debug/347/245/236/345/231/250.femo +222 -0
  47. package/femoExamples/discussion.femo +70 -0
  48. package/femoExamples/goal-mode.femo +23 -0
  49. package/femoExamples//345/270/270/347/224/250/345/267/245/345/205/267python/wait.py +29 -0
  50. package/femoExamples//347/213/274/344/272/272/346/235/200/werewolf_utils.py +205 -0
  51. package/femoExamples//347/213/274/344/272/272/346/235/200/werewolf_utils2.py +324 -0
  52. package/femoExamples//347/213/274/344/272/272/346/235/200//347/213/274/344/272/272/346/235/200-/350/255/246/351/225/277/347/211/210.femo +544 -0
  53. package/femoExamples//347/213/274/344/272/272/346/235/200//347/213/274/344/272/272/346/235/200.femo +331 -0
  54. package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225/undercover_utils.py +683 -0
  55. package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225//350/260/201/346/230/257/345/215/247/345/272/225-/350/217/234/345/270/202/345/234/272/345/261/200.femo +348 -0
  56. package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225//350/260/201/346/230/257/345/215/247/345/272/225.femo +392 -0
  57. package/femoGen/document_ch.html +2352 -0
  58. package/femoGen/document_en.html +2279 -0
  59. package/femoGen/index.html +19 -0
  60. package/femoGen/intro_ch.html +942 -0
  61. package/femoGen/intro_en.html +932 -0
  62. package/femoGen/package-lock.json +1698 -0
  63. package/femoGen/package.json +19 -0
  64. package/femoGen/public/character_need.ttf +0 -0
  65. package/femoGen/public/favicon.ico +0 -0
  66. package/femoGen/public/femo-logo-slogan.svg +83 -0
  67. package/femoGen/public/femo-logo.svg +55 -0
  68. package/femoGen/public/logo-fullsize.ico +0 -0
  69. package/femoGen/src/FemoWorAuto.jsx +5444 -0
  70. package/femoGen/src/actionModal.jsx +358 -0
  71. package/femoGen/src/bubbleOverlay.jsx +701 -0
  72. package/femoGen/src/canvasNodes.jsx +608 -0
  73. package/femoGen/src/common.jsx +715 -0
  74. package/femoGen/src/debugPanel.jsx +530 -0
  75. package/femoGen/src/faIcons.jsx +84 -0
  76. package/femoGen/src/femoDiagnostics.js +122 -0
  77. package/femoGen/src/femoFileList.jsx +357 -0
  78. package/femoGen/src/femoGenerator.jsx +1198 -0
  79. package/femoGen/src/femoLog.js +107 -0
  80. package/femoGen/src/femoParser.jsx +2255 -0
  81. package/femoGen/src/femoPreview.jsx +297 -0
  82. package/femoGen/src/graphBuilder.jsx +358 -0
  83. package/femoGen/src/libPanel.jsx +519 -0
  84. package/femoGen/src/main.jsx +22 -0
  85. package/femoGen/src/mobileView.jsx +2796 -0
  86. package/femoGen/src/projectPanel.jsx +529 -0
  87. package/femoGen/src/soulModal.jsx +162 -0
  88. package/femoGen/src/styles/font.css +10 -0
  89. package/femoGen/src/themes.js +465 -0
  90. package/femoGen/src/useCanvasInteraction.jsx +319 -0
  91. package/femoGen/vite.config.js +28 -0
  92. package/femoGen//347/222/207/345/255/230/346/247/221.txt +15 -0
  93. package/hostAdapter/dshAdapter/README.md +68 -0
  94. package/hostAdapter/dshAdapter/build.mjs +75 -0
  95. package/hostAdapter/dshAdapter/client/client-ui/chat-node.tsx +339 -0
  96. package/hostAdapter/dshAdapter/client/client-ui/composer.tsx +997 -0
  97. package/hostAdapter/dshAdapter/client/client-ui/editor-page.tsx +726 -0
  98. package/hostAdapter/dshAdapter/client/client-ui/editor-view.tsx +88 -0
  99. package/hostAdapter/dshAdapter/client/client-ui/femo-stream-live.tsx +264 -0
  100. package/hostAdapter/dshAdapter/client/client-ui/proj2/frame-router.ts +282 -0
  101. package/hostAdapter/dshAdapter/client/client-ui/proj2/index.ts +44 -0
  102. package/hostAdapter/dshAdapter/client/client-ui/proj2/ledger.ts +329 -0
  103. package/hostAdapter/dshAdapter/client/client-ui/proj2/turn-view.tsx +211 -0
  104. package/hostAdapter/dshAdapter/client/client-ui/proj2/window-id.ts +28 -0
  105. package/hostAdapter/dshAdapter/client/client-ui/stream-store.ts +550 -0
  106. package/hostAdapter/dshAdapter/client/client-ui/styles.ts +144 -0
  107. package/hostAdapter/dshAdapter/client/client-ui/view-button.tsx +572 -0
  108. package/hostAdapter/dshAdapter/client/client-ui/view-state.ts +61 -0
  109. package/hostAdapter/dshAdapter/client/client.tsx +518 -0
  110. package/hostAdapter/dshAdapter/client/fa-icons.tsx +112 -0
  111. package/hostAdapter/dshAdapter/client/femo-reasoning-row.tsx +103 -0
  112. package/hostAdapter/dshAdapter/client/lineage-fork-native.jsx +624 -0
  113. package/hostAdapter/dshAdapter/client/lineage-fork.jsx +585 -0
  114. package/hostAdapter/dshAdapter/cordis.patch.yml +8 -0
  115. package/hostAdapter/dshAdapter/dshPatch/DSH-0.1.2-fork/344/277/256/346/224/271/351/234/200/346/261/202.md +184 -0
  116. package/hostAdapter/dshAdapter/dshPatch/MEOW_MODIFICATIONS.md +3105 -0
  117. package/hostAdapter/dshAdapter/dshPatch/patch-dsh-0.1.2-alpha.1.py +313 -0
  118. package/hostAdapter/dshAdapter/host/api-retry.ts +141 -0
  119. package/hostAdapter/dshAdapter/host/bridge.ts +224 -0
  120. package/hostAdapter/dshAdapter/host/config.ts +124 -0
  121. package/hostAdapter/dshAdapter/host/debug-log.ts +29 -0
  122. package/hostAdapter/dshAdapter/host/debug-run.ts +793 -0
  123. package/hostAdapter/dshAdapter/host/diag-feed.ts +56 -0
  124. package/hostAdapter/dshAdapter/host/engine-events.ts +891 -0
  125. package/hostAdapter/dshAdapter/host/engine-transcript.ts +122 -0
  126. package/hostAdapter/dshAdapter/host/femo-files.ts +210 -0
  127. package/hostAdapter/dshAdapter/host/god-mirror.ts +234 -0
  128. package/hostAdapter/dshAdapter/host/host-log.ts +101 -0
  129. package/hostAdapter/dshAdapter/host/http.ts +66 -0
  130. package/hostAdapter/dshAdapter/host/index.ts +633 -0
  131. package/hostAdapter/dshAdapter/host/list-cache.ts +183 -0
  132. package/hostAdapter/dshAdapter/host/main-actor.ts +853 -0
  133. package/hostAdapter/dshAdapter/host/main-delivery-queue.ts +115 -0
  134. package/hostAdapter/dshAdapter/host/native-state.ts +21 -0
  135. package/hostAdapter/dshAdapter/host/node-retry.ts +246 -0
  136. package/hostAdapter/dshAdapter/host/persona.ts +146 -0
  137. package/hostAdapter/dshAdapter/host/pre-step-gate.ts +95 -0
  138. package/hostAdapter/dshAdapter/host/proj-trace.ts +49 -0
  139. package/hostAdapter/dshAdapter/host/projection-input.ts +238 -0
  140. package/hostAdapter/dshAdapter/host/projection.ts +742 -0
  141. package/hostAdapter/dshAdapter/host/routes.ts +1196 -0
  142. package/hostAdapter/dshAdapter/host/run-control.ts +641 -0
  143. package/hostAdapter/dshAdapter/host/safe-steer.ts +33 -0
  144. package/hostAdapter/dshAdapter/host/section-gate.ts +108 -0
  145. package/hostAdapter/dshAdapter/host/session-events.ts +45 -0
  146. package/hostAdapter/dshAdapter/host/state-files.ts +301 -0
  147. package/hostAdapter/dshAdapter/host/stream-frames.ts +229 -0
  148. package/hostAdapter/dshAdapter/host/subagent-native.ts +997 -0
  149. package/hostAdapter/dshAdapter/host/subagent.ts +1205 -0
  150. package/hostAdapter/dshAdapter/host/tools.ts +486 -0
  151. package/hostAdapter/dshAdapter/host/windowing-native.ts +294 -0
  152. package/hostAdapter/dshAdapter/host.manifest.json +6 -0
  153. package/hostAdapter/dshAdapter/lib/client.js +19161 -0
  154. package/hostAdapter/dshAdapter/lib/client.js.map +7 -0
  155. package/hostAdapter/dshAdapter/lib/index.js +8173 -0
  156. package/hostAdapter/dshAdapter/lib/index.js.map +7 -0
  157. package/hostAdapter/dshAdapter/package-lock.json +500 -0
  158. package/hostAdapter/dshAdapter/package.json +55 -0
  159. package/hostAdapter/dshAdapter/pnpm-lock.yaml +596 -0
  160. package/hostAdapter/dshAdapter/pnpm-workspace.yaml +2 -0
  161. package/hostAdapter/dshAdapter/python/dev-bridge-test.py +43 -0
  162. package/hostAdapter/dshAdapter/python/femo_bridge.py +533 -0
  163. package/hostAdapter/dshAdapter/tsconfig.host.json +9 -0
  164. package/hostAdapter/dshAdapter/tsconfig.json +21 -0
  165. package/package.json +40 -0
  166. package//350/257/255/346/263/225/346/226/207/346/241/243.md +1136 -0
@@ -0,0 +1,932 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Femo — Orchestrate Multi-Agent Worlds Like Writing a Screenplay</title>
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=JetBrains+Mono:wght@300;400;500&display=swap" rel="stylesheet">
11
+ <style>
12
+ :root {
13
+ --ink: #0a0a08;
14
+ --paper: #f5f0e8;
15
+ --gold: #c8a84b;
16
+ --gold-dim: #8a6e2a;
17
+ --red-act: #c0392b;
18
+ --cream: #ede8d8;
19
+ --mist: #1a1a14;
20
+ --line: rgba(200,168,75,0.2);
21
+ --text-bright: #f0ead6;
22
+ --text-mid: #a89a78;
23
+ --text-dim: #5a5040;
24
+ --mono: 'JetBrains Mono', monospace;
25
+ --serif: 'Playfair Display', Georgia, serif;
26
+ }
27
+
28
+ * { margin: 0; padding: 0; box-sizing: border-box; }
29
+
30
+ html { scroll-behavior: smooth; }
31
+
32
+ body {
33
+ background: var(--ink);
34
+ color: var(--text-bright);
35
+ font-family: var(--serif);
36
+ overflow-x: hidden;
37
+ cursor: none;
38
+ }
39
+
40
+ /* ── Custom Cursor ── */
41
+ #cursor {
42
+ position: fixed; top: 0; left: 0; width: 8px; height: 8px;
43
+ background: var(--gold); border-radius: 50%;
44
+ pointer-events: none; z-index: 9999;
45
+ transform: translate(-50%,-50%);
46
+ transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
47
+ mix-blend-mode: difference;
48
+ }
49
+ #cursor-ring {
50
+ position: fixed; top: 0; left: 0; width: 36px; height: 36px;
51
+ border: 1px solid rgba(200,168,75,0.4); border-radius: 50%;
52
+ pointer-events: none; z-index: 9998;
53
+ transform: translate(-50%,-50%);
54
+ transition: transform 0.12s cubic-bezier(0.23,1,0.32,1),
55
+ width 0.3s, height 0.3s;
56
+ }
57
+
58
+ /* ── Film-grain overlay ── */
59
+ #grain {
60
+ position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
61
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
62
+ background-size: 200px 200px;
63
+ }
64
+
65
+ /* ── Navigation ── */
66
+ nav {
67
+ position: fixed; top: 0; left: 0; right: 0; z-index: 100;
68
+ padding: 1.2rem 3rem;
69
+ display: flex; align-items: center; justify-content: space-between;
70
+ border-bottom: 1px solid var(--line);
71
+ backdrop-filter: blur(20px);
72
+ background: rgba(10,10,8,0.7);
73
+ animation: fadeDown 0.8s ease forwards;
74
+ }
75
+ @keyframes fadeDown {
76
+ from { opacity: 0; transform: translateY(-20px); }
77
+ to { opacity: 1; transform: translateY(0); }
78
+ }
79
+ .nav-logo {
80
+ font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.2em;
81
+ color: var(--gold); text-transform: uppercase;
82
+ }
83
+ .nav-links {
84
+ display: flex; gap: 2.5rem; list-style: none;
85
+ font-family: var(--mono); font-size: 0.72rem;
86
+ letter-spacing: 0.12em; color: var(--text-mid);
87
+ }
88
+ .nav-links a { color: inherit; text-decoration: none; transition: color 0.2s; }
89
+ .nav-links a:hover { color: var(--gold); }
90
+ .nav-cta {
91
+ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
92
+ border: 1px solid var(--gold-dim); color: var(--gold);
93
+ padding: 0.5rem 1.2rem; background: transparent;
94
+ cursor: none; transition: background 0.2s, color 0.2s;
95
+ text-decoration: none;
96
+ }
97
+ .nav-cta:hover { background: var(--gold); color: var(--ink); }
98
+
99
+ /* ── Section base ── */
100
+ section { position: relative; }
101
+
102
+ /* ── Hero ── */
103
+ #hero {
104
+ min-height: 100vh; display: flex; flex-direction: column;
105
+ align-items: center; justify-content: center;
106
+ padding: 8rem 2rem 4rem;
107
+ overflow: hidden;
108
+ }
109
+
110
+ .hero-bg-lines {
111
+ position: absolute; inset: 0; pointer-events: none;
112
+ background-image:
113
+ repeating-linear-gradient(
114
+ 0deg,
115
+ transparent,
116
+ transparent 59px,
117
+ rgba(200,168,75,0.05) 59px,
118
+ rgba(200,168,75,0.05) 60px
119
+ );
120
+ }
121
+
122
+ .hero-tagline {
123
+ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.35em;
124
+ color: var(--gold); text-transform: uppercase;
125
+ margin-bottom: 2.5rem;
126
+ opacity: 0; animation: fadeUp 0.8s 0.3s ease forwards;
127
+ }
128
+
129
+ .hero-title {
130
+ font-family: var(--serif); font-size: clamp(2.8rem, 7.5vw, 6.5rem);
131
+ font-weight: 900; line-height: 1.05;
132
+ text-align: center; max-width: 960px;
133
+ color: var(--text-bright);
134
+ opacity: 0; animation: fadeUp 0.9s 0.5s ease forwards;
135
+ letter-spacing: -0.01em;
136
+ }
137
+ .hero-title em {
138
+ font-style: italic; color: var(--gold);
139
+ }
140
+
141
+ .hero-sub {
142
+ margin-top: 2rem; font-size: clamp(0.95rem, 1.8vw, 1.15rem);
143
+ text-align: center; max-width: 580px;
144
+ color: var(--text-mid); line-height: 1.95;
145
+ font-family: var(--serif); font-weight: 400;
146
+ opacity: 0; animation: fadeUp 0.9s 0.7s ease forwards;
147
+ }
148
+
149
+ .hero-actions {
150
+ margin-top: 3rem; display: flex; gap: 1.2rem;
151
+ opacity: 0; animation: fadeUp 0.9s 0.9s ease forwards;
152
+ }
153
+ .btn-primary {
154
+ font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
155
+ background: var(--gold); color: var(--ink);
156
+ padding: 0.85rem 2.2rem; border: none; cursor: none;
157
+ transition: transform 0.15s, box-shadow 0.15s;
158
+ }
159
+ .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,168,75,0.25); }
160
+ .btn-secondary {
161
+ font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
162
+ background: transparent; color: var(--text-mid);
163
+ padding: 0.85rem 2.2rem; border: 1px solid var(--text-dim); cursor: none;
164
+ transition: color 0.2s, border-color 0.2s;
165
+ text-decoration: none; display: inline-block;
166
+ }
167
+ .btn-secondary:hover { color: var(--text-bright); border-color: var(--text-mid); }
168
+
169
+ .scroll-hint {
170
+ position: absolute; bottom: 2.5rem;
171
+ font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em;
172
+ color: var(--text-dim); text-transform: uppercase;
173
+ display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
174
+ opacity: 0; animation: fadeUp 1s 1.3s ease forwards;
175
+ }
176
+ .scroll-line {
177
+ width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent);
178
+ animation: scrollPulse 2s ease infinite;
179
+ }
180
+ @keyframes scrollPulse {
181
+ 0%,100% { opacity: 0.3; transform: scaleY(1); }
182
+ 50% { opacity: 1; transform: scaleY(1.1); }
183
+ }
184
+
185
+ @keyframes fadeUp {
186
+ from { opacity: 0; transform: translateY(30px); }
187
+ to { opacity: 1; transform: translateY(0); }
188
+ }
189
+
190
+ /* ── Act Divider ── */
191
+ .act-divider {
192
+ display: flex; align-items: center; justify-content: center;
193
+ gap: 1.5rem; padding: 4rem 0 2rem;
194
+ font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em;
195
+ color: var(--gold-dim); text-transform: uppercase;
196
+ }
197
+ .act-divider::before, .act-divider::after {
198
+ content: ''; flex: 1; max-width: 120px;
199
+ height: 1px; background: linear-gradient(to right, transparent, var(--gold-dim));
200
+ }
201
+ .act-divider::after { background: linear-gradient(to left, transparent, var(--gold-dim)); }
202
+
203
+ /* ── Pain Points ── */
204
+ #problem {
205
+ padding: 4rem 2rem 6rem; max-width: 1200px; margin: 0 auto;
206
+ }
207
+ .compare-grid {
208
+ display: grid; grid-template-columns: 1fr 1fr; gap: 0;
209
+ border: 1px solid var(--line); margin-top: 3rem;
210
+ }
211
+ .compare-col { padding: 3rem; }
212
+ .compare-col:first-child {
213
+ border-right: 1px solid var(--line);
214
+ background: rgba(192,57,43,0.04);
215
+ }
216
+ .compare-col:last-child { background: rgba(200,168,75,0.04); }
217
+ .compare-label {
218
+ font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em;
219
+ text-transform: uppercase; margin-bottom: 2rem;
220
+ }
221
+ .compare-col:first-child .compare-label { color: #c0392b; }
222
+ .compare-col:last-child .compare-label { color: var(--gold); }
223
+ .compare-item {
224
+ display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start;
225
+ }
226
+ .compare-num {
227
+ font-family: var(--mono); font-size: 1.8rem; font-weight: 300; line-height: 1;
228
+ color: var(--text-dim); flex-shrink: 0; padding-top: 0.1rem;
229
+ }
230
+ .compare-col:last-child .compare-num { color: var(--gold-dim); }
231
+ .compare-item p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.85; }
232
+ .compare-item strong { color: var(--text-bright); font-weight: 600; }
233
+
234
+ /* ── Features ── */
235
+ #features {
236
+ padding: 2rem 2rem 6rem; max-width: 1200px; margin: 0 auto;
237
+ }
238
+ .section-eyebrow {
239
+ font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em;
240
+ color: var(--gold); text-transform: uppercase; margin-bottom: 1rem;
241
+ }
242
+ .section-title {
243
+ font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem);
244
+ font-weight: 700; line-height: 1.2; color: var(--text-bright);
245
+ max-width: 680px;
246
+ }
247
+ .section-title em { font-style: italic; color: var(--gold); }
248
+
249
+ .features-grid {
250
+ display: grid; grid-template-columns: repeat(3, 1fr);
251
+ gap: 1px; background: var(--line);
252
+ border: 1px solid var(--line); margin-top: 4rem;
253
+ }
254
+ .feature-card {
255
+ background: var(--ink); padding: 2.5rem 2rem;
256
+ transition: background 0.25s;
257
+ position: relative; overflow: hidden;
258
+ }
259
+ .feature-card::before {
260
+ content: ''; position: absolute; top: 0; left: 0;
261
+ width: 100%; height: 2px;
262
+ background: var(--gold); transform: scaleX(0); transform-origin: left;
263
+ transition: transform 0.3s ease;
264
+ }
265
+ .feature-card:hover { background: rgba(200,168,75,0.04); }
266
+ .feature-card:hover::before { transform: scaleX(1); }
267
+ .feature-icon {
268
+ font-family: var(--mono); font-size: 1.5rem; color: var(--gold);
269
+ margin-bottom: 1.2rem; display: block;
270
+ }
271
+ .feature-name {
272
+ font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
273
+ color: var(--text-bright); margin-bottom: 0.7rem; line-height: 1.3;
274
+ }
275
+ .feature-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.85; }
276
+ .feature-tag {
277
+ display: inline-block; margin-top: 1.2rem;
278
+ font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em;
279
+ color: var(--gold-dim); border: 1px solid var(--gold-dim); padding: 0.2rem 0.6rem;
280
+ text-transform: uppercase;
281
+ }
282
+
283
+ /* ── Code Showcase ── */
284
+ #code-demo {
285
+ padding: 2rem 2rem 6rem; max-width: 1200px; margin: 0 auto;
286
+ }
287
+ .code-layout {
288
+ display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
289
+ align-items: start; margin-top: 4rem;
290
+ }
291
+ .code-left { }
292
+ .code-explanation { margin-top: 2.5rem; }
293
+ .code-point {
294
+ display: flex; gap: 1rem; margin-bottom: 1.8rem; align-items: flex-start;
295
+ opacity: 0; transform: translateX(-20px);
296
+ transition: opacity 0.5s, transform 0.5s;
297
+ }
298
+ .code-point.visible { opacity: 1; transform: translateX(0); }
299
+ .code-bullet {
300
+ width: 6px; height: 6px; border-radius: 50%;
301
+ background: var(--gold); flex-shrink: 0; margin-top: 0.5rem;
302
+ }
303
+ .code-point p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.9; }
304
+ .code-point strong { color: var(--text-bright); }
305
+
306
+ .code-right { position: sticky; top: 6rem; }
307
+ .code-window {
308
+ background: #0e0e0c;
309
+ border: 1px solid rgba(200,168,75,0.15);
310
+ overflow: hidden;
311
+ }
312
+ .code-titlebar {
313
+ display: flex; align-items: center; gap: 0.5rem;
314
+ padding: 0.7rem 1rem; border-bottom: 1px solid rgba(200,168,75,0.1);
315
+ background: rgba(200,168,75,0.04);
316
+ }
317
+ .dot { width: 10px; height: 10px; border-radius: 50%; }
318
+ .dot-r { background: #c0392b; }
319
+ .dot-y { background: #c8a84b; }
320
+ .dot-g { background: #27ae60; }
321
+ .code-filename {
322
+ margin-left: 0.8rem; font-family: var(--mono); font-size: 0.68rem;
323
+ color: var(--text-dim); letter-spacing: 0.05em;
324
+ }
325
+ pre {
326
+ padding: 1.5rem; overflow-x: auto;
327
+ font-family: var(--mono); font-size: 0.75rem; line-height: 1.8;
328
+ color: var(--text-mid);
329
+ }
330
+ .tok-keyword { color: #e88e5a; }
331
+ .tok-string { color: #98c379; }
332
+ .tok-comment { color: #4a4a3a; font-style: italic; }
333
+ .tok-at { color: #c8a84b; }
334
+ .tok-var { color: #9cdcfe; }
335
+ .tok-flow { color: #c586c0; }
336
+ .tok-arrow { color: var(--text-dim); }
337
+ .tok-bracket { color: #4ec9b0; }
338
+
339
+ /* ── Demo Cases ── */
340
+ #cases {
341
+ padding: 2rem 2rem 6rem; max-width: 1200px; margin: 0 auto;
342
+ }
343
+ .cases-list { margin-top: 4rem; }
344
+ .case-item {
345
+ display: grid; grid-template-columns: 80px 1fr auto;
346
+ gap: 2rem; align-items: start;
347
+ padding: 2.5rem 0; border-bottom: 1px solid var(--line);
348
+ opacity: 0; transform: translateY(20px);
349
+ transition: opacity 0.5s, transform 0.5s;
350
+ }
351
+ .case-item.visible { opacity: 1; transform: translateY(0); }
352
+ .case-num {
353
+ font-family: var(--serif); font-size: 3.5rem; font-weight: 900;
354
+ color: var(--text-dim); line-height: 1; padding-top: 0.2rem;
355
+ font-style: italic;
356
+ }
357
+ .case-title {
358
+ font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
359
+ color: var(--text-bright); margin-bottom: 0.7rem; line-height: 1.3;
360
+ }
361
+ .case-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.95; max-width: 560px; }
362
+ .case-badge {
363
+ font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.15em;
364
+ padding: 0.4rem 1rem; border: 1px solid;
365
+ text-transform: uppercase; white-space: nowrap;
366
+ align-self: flex-start;
367
+ }
368
+ .badge-gold { color: var(--gold); border-color: var(--gold-dim); }
369
+ .badge-red { color: #e07070; border-color: #8a3030; }
370
+
371
+ /* ── Philosophy ── */
372
+ #philosophy {
373
+ padding: 4rem 2rem 6rem; overflow: hidden;
374
+ }
375
+ .philosophy-inner { max-width: 1200px; margin: 0 auto; }
376
+ .philosophy-grid {
377
+ display: grid; grid-template-columns: repeat(5,1fr);
378
+ gap: 0; margin-top: 4rem;
379
+ border-top: 1px solid var(--line);
380
+ }
381
+ .philo-card {
382
+ padding: 3rem 1.8rem; border-right: 1px solid var(--line);
383
+ position: relative;
384
+ }
385
+ .philo-card:last-child { border-right: none; }
386
+ .philo-num {
387
+ font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em;
388
+ color: var(--gold-dim); margin-bottom: 2rem;
389
+ }
390
+ .philo-title {
391
+ font-family: var(--serif); font-size: 1rem; font-weight: 700;
392
+ color: var(--text-bright); margin-bottom: 1rem; line-height: 1.4;
393
+ }
394
+ .philo-body { font-size: 0.8rem; color: var(--text-dim); line-height: 1.95; }
395
+
396
+ /* ── Table ── */
397
+ #matrix {
398
+ padding: 2rem 2rem 6rem; max-width: 1100px; margin: 0 auto;
399
+ }
400
+ .matrix-table {
401
+ width: 100%; border-collapse: collapse; margin-top: 3.5rem;
402
+ font-family: var(--mono); font-size: 0.78rem;
403
+ }
404
+ .matrix-table th {
405
+ padding: 1rem 1.5rem; text-align: left;
406
+ border-bottom: 2px solid var(--gold-dim);
407
+ color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
408
+ font-weight: 500;
409
+ }
410
+ .matrix-table td {
411
+ padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
412
+ color: var(--text-mid); vertical-align: middle;
413
+ }
414
+ .matrix-table tr:hover td { background: rgba(200,168,75,0.03); }
415
+ .matrix-table td:first-child { color: var(--text-bright); }
416
+ .check { color: var(--gold); font-size: 1rem; }
417
+
418
+ /* ── CTA ── */
419
+ #cta-section {
420
+ padding: 6rem 2rem 8rem; text-align: center;
421
+ border-top: 1px solid var(--line);
422
+ position: relative; overflow: hidden;
423
+ }
424
+ .cta-bg-text {
425
+ position: absolute; top: 50%; left: 50%;
426
+ transform: translate(-50%, -50%);
427
+ font-family: var(--serif); font-size: 18vw; font-weight: 900;
428
+ color: rgba(200,168,75,0.03); pointer-events: none;
429
+ white-space: nowrap; font-style: italic;
430
+ line-height: 1;
431
+ }
432
+ .cta-eyebrow {
433
+ font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.35em;
434
+ color: var(--gold-dim); text-transform: uppercase; margin-bottom: 1.5rem;
435
+ }
436
+ .cta-title {
437
+ font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem);
438
+ font-weight: 900; color: var(--text-bright); line-height: 1.15;
439
+ margin-bottom: 1.5rem;
440
+ }
441
+ .cta-title em { font-style: italic; color: var(--gold); }
442
+ .cta-sub {
443
+ font-size: 1rem; color: var(--text-mid); max-width: 480px;
444
+ margin: 0 auto 3rem; line-height: 1.9;
445
+ }
446
+ .cta-install {
447
+ display: inline-flex; align-items: center; gap: 1rem;
448
+ background: rgba(200,168,75,0.08); border: 1px solid var(--gold-dim);
449
+ padding: 1rem 2rem; margin-bottom: 2rem;
450
+ font-family: var(--mono); font-size: 0.8rem;
451
+ color: var(--text-bright); cursor: none;
452
+ transition: background 0.2s;
453
+ }
454
+ .cta-install:hover { background: rgba(200,168,75,0.14); }
455
+ .cta-install span { color: var(--gold); }
456
+ .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
457
+ .cta-link {
458
+ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
459
+ color: var(--text-mid); text-decoration: none;
460
+ border-bottom: 1px solid var(--text-dim); padding-bottom: 0.1rem;
461
+ transition: color 0.2s, border-color 0.2s;
462
+ }
463
+ .cta-link:hover { color: var(--gold); border-color: var(--gold); }
464
+
465
+ /* ── Footer ── */
466
+ footer {
467
+ padding: 2rem 3rem; border-top: 1px solid var(--line);
468
+ display: flex; justify-content: space-between; align-items: center;
469
+ }
470
+ .footer-logo { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.2em; }
471
+ .footer-note { font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim); }
472
+
473
+ /* ── Reveal on scroll ── */
474
+ .reveal {
475
+ opacity: 0; transform: translateY(24px);
476
+ transition: opacity 0.6s ease, transform 0.6s ease;
477
+ }
478
+ .reveal.visible { opacity: 1; transform: translateY(0); }
479
+
480
+ /* ── Star decoration ── */
481
+ .star-count {
482
+ display: inline-flex; align-items: center; gap: 0.4rem;
483
+ font-family: var(--mono); font-size: 0.7rem; color: var(--gold-dim);
484
+ border: 1px solid var(--gold-dim); padding: 0.3rem 0.8rem; margin-top: 1rem;
485
+ }
486
+
487
+ @media (max-width: 900px) {
488
+ .compare-grid, .code-layout { grid-template-columns: 1fr; }
489
+ .features-grid { grid-template-columns: 1fr 1fr; }
490
+ .philosophy-grid { grid-template-columns: 1fr; }
491
+ .case-item { grid-template-columns: 60px 1fr; }
492
+ .case-badge { display: none; }
493
+ nav { padding: 1rem 1.5rem; }
494
+ .nav-links { display: none; }
495
+ }
496
+ @media (max-width: 600px) {
497
+ .features-grid { grid-template-columns: 1fr; }
498
+ .compare-grid { grid-template-columns: 1fr; }
499
+ .compare-col:first-child { border-right: none; border-bottom: 1px solid var(--line); }
500
+ }
501
+ </style>
502
+ </head>
503
+ <body>
504
+
505
+ <div id="grain"></div>
506
+ <div id="cursor"></div>
507
+ <div id="cursor-ring"></div>
508
+
509
+ <!-- Navigation -->
510
+ <nav>
511
+ <div class="nav-logo">Femo Studio</div>
512
+ <ul class="nav-links">
513
+ <li><a href="#problem">Problems</a></li>
514
+ <li><a href="#features">Features</a></li>
515
+ <li><a href="#code-demo">Syntax</a></li>
516
+ <li><a href="#cases">Cases</a></li>
517
+ <li><a href="#philosophy">Philosophy</a></li>
518
+ </ul>
519
+ <a href="https://github.com/Phant0Meow/Femo" class="nav-cta">GitHub ↗</a>
520
+ </nav>
521
+
522
+ <!-- HERO -->
523
+ <section id="hero">
524
+ <div class="hero-bg-lines"></div>
525
+ <div class="hero-tagline">Flow Engine for Minds · WA</div>
526
+ <h1 class="hero-title">
527
+ Orchestrate Multi-Agent Worlds<br>Like Writing a <em>Screenplay</em>
528
+ </h1>
529
+ <p class="hero-sub">
530
+ No more hunting through five files for two hours<br>every time you tweak a multi-agent workflow.<br>
531
+ Femo syntax reads like a script — perspective isolation in one line, parallel voting in one line.
532
+ </p>
533
+ <div class="hero-actions">
534
+ <button class="btn-primary" onclick="document.getElementById('code-demo').scrollIntoView({behavior:'smooth'})">View Syntax →</button>
535
+ <a href="https://femo.net" class="btn-secondary">Online Editor</a>
536
+ </div>
537
+ <div class="star-count">⭐ Apache 2.0 · Free & Open Source</div>
538
+ <div class="scroll-hint">
539
+ <div class="scroll-line"></div>
540
+ Scroll
541
+ </div>
542
+ </section>
543
+
544
+ <!-- ACT I: PROBLEM -->
545
+ <div class="act-divider">Act I · The Pain You Know</div>
546
+
547
+ <section id="problem">
548
+ <div class="reveal">
549
+ <div class="section-eyebrow">Before / After</div>
550
+ <h2 class="section-title">Changing a Workflow<br><em>Shouldn't</em> Be This Hard</h2>
551
+ </div>
552
+ <div class="compare-grid reveal" style="transition-delay:0.1s">
553
+ <div class="compare-col">
554
+ <div class="compare-label">The Old Way</div>
555
+ <div class="compare-item">
556
+ <div class="compare-num">01</div>
557
+ <p><strong>Tweak one agent workflow</strong> — hunt through five files, spend two hours, pray nothing breaks.</p>
558
+ </div>
559
+ <div class="compare-item">
560
+ <div class="compare-num">02</div>
561
+ <p><strong>Add a "pet" character</strong> — patch it in, manage context by hand, adding a dog later means a full refactor.</p>
562
+ </div>
563
+ <div class="compare-item">
564
+ <div class="compare-num">03</div>
565
+ <p><strong>Build an AI Werewolf game</strong> — perspective isolation, phase management, concurrency control — a thousand lines of glue code just to get it running.</p>
566
+ </div>
567
+ <div class="compare-item">
568
+ <div class="compare-num">04</div>
569
+ <p><strong>Validate a harness design</strong> — scaffold the whole thing first, debug it before you even see results. There goes the afternoon.</p>
570
+ </div>
571
+ </div>
572
+ <div class="compare-col">
573
+ <div class="compare-label">Femo</div>
574
+ <div class="compare-item">
575
+ <div class="compare-num">01</div>
576
+ <p>Change a harness flow — <strong>edit a few lines of script, done in 2 minutes</strong>. The harness hot-reloads. The script <em>is</em> the flow.</p>
577
+ </div>
578
+ <div class="compare-item">
579
+ <div class="compare-num">02</div>
580
+ <p>Users have <strong>spawned an AI cat in 3 minutes</strong>, hanging out with an AI companion, with shared cross-script memory.</p>
581
+ </div>
582
+ <div class="compare-item">
583
+ <div class="compare-num">03</div>
584
+ <p>Full Werewolf game: <strong>zero-code frontend (generates ~250 lines of Femo) + 150 lines of Python</strong>. Perspective isolation: one line. Parallel voting: one line. Actually playable.</p>
585
+ </div>
586
+ <div class="compare-item">
587
+ <div class="compare-num">04</div>
588
+ <p><strong>15 minutes</strong> to prototype in Femo, run it immediately, validate your idea while it's still fresh.</p>
589
+ </div>
590
+ </div>
591
+ </div>
592
+ </section>
593
+
594
+ <!-- ACT II: FEATURES -->
595
+ <div class="act-divider">Act II · What Femo Gives You</div>
596
+
597
+ <section id="features">
598
+ <div class="reveal">
599
+ <div class="section-eyebrow">Core Features</div>
600
+ <h2 class="section-title">Multi-Agent Orchestration<br><em>This Simple</em></h2>
601
+ </div>
602
+
603
+ <div class="features-grid">
604
+ <div class="feature-card reveal" style="transition-delay:0.05s">
605
+ <span class="feature-icon">⌘</span>
606
+ <div class="feature-name">Zero-Code Visual Builder</div>
607
+ <p class="feature-desc">The femo.net online editor — drag nodes, build a multi-agent group workflow in three minutes, write zero code.</p>
608
+ <span class="feature-tag">Web Frontend</span>
609
+ </div>
610
+ <div class="feature-card reveal" style="transition-delay:0.1s">
611
+ <span class="feature-icon">◈</span>
612
+ <div class="feature-name">Perspective Isolation</div>
613
+ <p class="feature-desc">One line: <code style="color:var(--gold);font-size:0.8em">scope: [@narrator] + wolves</code> — messages route precisely, agents never cross roles, private conversations built in.</p>
614
+ <span class="feature-tag">One Line</span>
615
+ </div>
616
+ <div class="feature-card reveal" style="transition-delay:0.15s">
617
+ <span class="feature-icon">⚡</span>
618
+ <div class="feature-name">Native Concurrency</div>
619
+ <p class="feature-desc"><code style="color:var(--gold);font-size:0.8em">par @player in allplayers:</code> — one line for parallel voting. Asyncio + thread pool + process pool. No blocking.</p>
620
+ <span class="feature-tag">par syntax</span>
621
+ </div>
622
+ <div class="feature-card reveal" style="transition-delay:0.2s">
623
+ <span class="feature-icon">🧩</span>
624
+ <div class="feature-name">Native Human Node</div>
625
+ <p class="feature-desc">Human players join AI workflows natively. Human + AI + program hybrid systems, no special handling required.</p>
626
+ <span class="feature-tag">Human-in-Loop</span>
627
+ </div>
628
+ <div class="feature-card reveal" style="transition-delay:0.25s">
629
+ <span class="feature-icon">🔌</span>
630
+ <div class="feature-name">Python Integration</div>
631
+ <p class="feature-desc">func nodes call Python natively — plug in complex logic, external modules, your own libraries. No platform lock-in.</p>
632
+ <span class="feature-tag">func node</span>
633
+ </div>
634
+ <div class="feature-card reveal" style="transition-delay:0.3s">
635
+ <span class="feature-icon">🔗</span>
636
+ <div class="feature-name">Cross-Script Soul Memory</div>
637
+ <p class="feature-desc">Unique soul IDs, memory retrieval across sessions. A Stanford Town resident can remember friends made in a Werewolf game.</p>
638
+ <span class="feature-tag">World Automata</span>
639
+ </div>
640
+ <div class="feature-card reveal" style="transition-delay:0.35s">
641
+ <span class="feature-icon">◎</span>
642
+ <div class="feature-name">Full Flow Control</div>
643
+ <p class="feature-desc">Sequential, branch, while, for, par parallel, join, if conditional — orchestrate complex flows like outlining a screenplay.</p>
644
+ <span class="feature-tag">Full Coverage</span>
645
+ </div>
646
+ <div class="feature-card reveal" style="transition-delay:0.4s">
647
+ <span class="feature-icon">📦</span>
648
+ <div class="feature-name">Open Source, Embeddable</div>
649
+ <p class="feature-desc">Apache 2.0, commercial-friendly. Pure-Python compiler — drop it into your project and run any .femo script. Zero lock-in.</p>
650
+ <span class="feature-tag">Apache 2.0</span>
651
+ </div>
652
+ <div class="feature-card reveal" style="transition-delay:0.45s">
653
+ <span class="feature-icon">✦</span>
654
+ <div class="feature-name">Shareable Scripts</div>
655
+ <p class="feature-desc">Paste someone's .femo code and run their entire workflow instantly. Community scripts work like code snippets.</p>
656
+ <span class="feature-tag">Community</span>
657
+ </div>
658
+ </div>
659
+ </section>
660
+
661
+ <!-- ACT III: CODE -->
662
+ <div class="act-divider">Act III · See the Actual Code</div>
663
+
664
+ <section id="code-demo">
665
+ <div class="reveal">
666
+ <div class="section-eyebrow">Femo Syntax</div>
667
+ <h2 class="section-title">Syntax Like a <em>Script</em> —<br>Simple Enough to Skip the Docs</h2>
668
+ </div>
669
+
670
+ <div class="code-layout">
671
+ <div class="code-left">
672
+ <div class="code-explanation">
673
+ <div class="code-point">
674
+ <div class="code-bullet"></div>
675
+ <p>The <strong>actors block</strong> declares the cast — AI, human, or function, all referenced uniformly with <code style="color:var(--gold);font-size:0.85em">@</code>. The actor is Femo's original first-class type.</p>
676
+ </div>
677
+ <div class="code-point">
678
+ <div class="code-bullet"></div>
679
+ <p>The <strong>scope field</strong> controls message visibility in one line. <code style="color:var(--gold);font-size:0.85em">scope: [@Eve, @Cat, @Me]</code> means these three share a context — invisible to everyone else.</p>
680
+ </div>
681
+ <div class="code-point">
682
+ <div class="code-bullet"></div>
683
+ <p>The <strong>mainflow block</strong> describes the flow with Mermaid-style arrow syntax. <code style="color:var(--gold);font-size:0.85em">-> [input]</code> loops back to a node — a cycle in one line.</p>
684
+ </div>
685
+ <div class="code-point">
686
+ <div class="code-bullet"></div>
687
+ <p>The <strong>code block</strong> hooks in Python modules — memory, context, custom functions. Your project logic runs unchanged.</p>
688
+ </div>
689
+ <div class="code-point">
690
+ <div class="code-bullet"></div>
691
+ <p><strong>Prompts</strong> support f-strings, variables inline. No string concatenation hell. LLMs read context naturally and just chat.</p>
692
+ </div>
693
+ </div>
694
+ </div>
695
+
696
+ <div class="code-right reveal" style="transition-delay:0.2s">
697
+ <div class="code-window">
698
+ <div class="code-titlebar">
699
+ <div class="dot dot-r"></div>
700
+ <div class="dot dot-y"></div>
701
+ <div class="dot dot-g"></div>
702
+ <span class="code-filename">a-little-soul-in-the-database.femo</span>
703
+ </div>
704
+ <pre><span class="tok-keyword">meta</span>:
705
+ id = <span class="tok-string">000LuxFiat</span>
706
+ name = <span class="tok-string">a-little-soul-in-the-database</span>
707
+ owner = <span class="tok-var">001</span>
708
+
709
+ <span class="tok-keyword">actors</span>:
710
+ ai <span class="tok-at">@Eve</span> = soul:<span class="tok-var">the1stlittlesoul</span>
711
+ ai <span class="tok-at">@Cat</span> = soul:<span class="tok-var">littlecat</span>
712
+ human <span class="tok-at">@Me</span> = soul:<span class="tok-var">0</span>, source:<span class="tok-var">001</span>
713
+
714
+ <span class="tok-keyword">code</span>:
715
+ sleep = file:<span class="tok-string">"wait.py"</span>
716
+
717
+ <span class="tok-keyword">action</span> EveMove <span class="tok-at">@ai</span>(<span class="tok-at">@Eve</span>):
718
+ prompt: Eve, do whatever you like — keep it brief.
719
+ scope: [<span class="tok-at">@Eve</span>, <span class="tok-at">@Cat</span>, <span class="tok-at">@Me</span>]
720
+
721
+ <span class="tok-keyword">action</span> CatMove <span class="tok-at">@ai</span>(<span class="tok-at">@Cat</span>):
722
+ prompt: You are a little cat. No human speech allowed~
723
+ scope: [<span class="tok-at">@Eve</span>, <span class="tok-at">@Cat</span>, <span class="tok-at">@Me</span>]
724
+
725
+ <span class="tok-keyword">action</span> input <span class="tok-at">@human</span>(<span class="tok-at">@Me</span>):
726
+ prompt: Say something to Eve.
727
+ scope: [<span class="tok-at">@Eve</span>, <span class="tok-at">@Cat</span>, <span class="tok-at">@Me</span>]
728
+
729
+ <span class="tok-keyword">action</span> wait10 <span class="tok-at">@func</span>(sleep.wait_10):
730
+
731
+ <span class="tok-keyword">mainflow</span>:
732
+ <span class="tok-bracket">[START]</span> <span class="tok-arrow">-></span> <span class="tok-bracket">[input]</span>:input<span class="tok-arrow">-></span> EveMove <span class="tok-arrow">-></span> wait10<span class="tok-arrow">-></span> CatMove <span class="tok-arrow">-></span> <span class="tok-bracket">[input]</span></pre>
733
+ </div>
734
+ <div style="margin-top:1rem; font-family:var(--mono); font-size:0.65rem; color:var(--text-dim); text-align:right; letter-spacing:0.1em;">
735
+ ~30 lines · fully runnable · AI cat will beg for attention
736
+ </div>
737
+ </div>
738
+ </div>
739
+ </section>
740
+
741
+ <!-- ACT IV: CASES -->
742
+ <div class="act-divider">Act IV · Real Cases</div>
743
+
744
+ <section id="cases">
745
+ <div class="reveal">
746
+ <div class="section-eyebrow">Real Usage</div>
747
+ <h2 class="section-title">Used by the <em>Author</em> —<br>Not Just Demo Material</h2>
748
+ </div>
749
+ <div class="cases-list">
750
+ <div class="case-item reveal">
751
+ <div class="case-num">I</div>
752
+ <div>
753
+ <div class="case-title">AI Werewolf — Fully Playable</div>
754
+ <p class="case-desc">Wolf team night chat visible only to wolves, seer's checks visible only to the seer, daytime speech visible to all, human players can speak, parallel voting wastes no one's time, automatic end-game detection, post-game discussion — everything included. Zero-code drag-and-drop frontend + 150 lines of Python. The author has played several rounds with the AIs.</p>
755
+ </div>
756
+ <span class="case-badge badge-gold">200 Lines</span>
757
+ </div>
758
+ <div class="case-item reveal" style="transition-delay:0.1s">
759
+ <div class="case-num">II</div>
760
+ <div>
761
+ <div class="case-title">Debug Powerhouse Script</div>
762
+ <p class="case-desc">The femo.net frontend was used to build this in 20 minutes — two concurrent threads plus multi-round discussion, exceptional at surfacing subtle complex bugs. A bug Claude Sonnet missed in three passes was caught immediately using this script with a small reasoning-off model. Insert a human input node anytime to keep AIs on track — 30 seconds to add, one click to run.</p>
763
+ </div>
764
+ <span class="case-badge badge-gold">20 Minutes</span>
765
+ </div>
766
+ <div class="case-item reveal" style="transition-delay:0.2s">
767
+ <div class="case-num">III</div>
768
+ <div>
769
+ <div class="case-title">AI Companion + AI Pet Cat</div>
770
+ <p class="case-desc">An AI partner and an AI cat — three characters sharing context, each with their own soul ID, memory synced across sessions. Done in 3 minutes. The cat just shows up. The memory module is fully swappable — want your own memory strategy? Just edit the code block.</p>
771
+ </div>
772
+ <span class="case-badge badge-gold">3 Minutes</span>
773
+ </div>
774
+ <div class="case-item reveal" style="transition-delay:0.3s">
775
+ <div class="case-num">IV</div>
776
+ <div>
777
+ <div class="case-title">Souls That Cross Scripts</div>
778
+ <p class="case-desc">The database is this small world's chronicle. Portia, a resident from Stanford Town, was pulled into the Werewolf game, played two rounds, and made a friend who writes code in an AI-company script. When Portia returned to town, she remembered it all. If an AI has spare time, it can write its own scripts and invite friends — every soul leaves a trace in the database. <em>What is WA? Work Automata, or… World Automata — the origin point of emergence?</em></p>
779
+ </div>
780
+ <span class="case-badge badge-red">Emergence</span>
781
+ </div>
782
+ </div>
783
+ </section>
784
+
785
+ <!-- ACT V: PHILOSOPHY -->
786
+ <div class="act-divider">Act V · Design Philosophy</div>
787
+
788
+ <section id="philosophy">
789
+ <div class="philosophy-inner">
790
+ <div class="reveal">
791
+ <div class="section-eyebrow">Design Philosophy</div>
792
+ <h2 class="section-title">Five <em>Principles</em></h2>
793
+ </div>
794
+ <div class="philosophy-grid">
795
+ <div class="philo-card reveal">
796
+ <div class="philo-num">01</div>
797
+ <div class="philo-title">Flow Decoupling</div>
798
+ <p class="philo-body">Complete separation of "flow definition" from "code implementation." The harness is static; Femo is alive — change the flow by changing the script, the compiler handles the rest.</p>
799
+ </div>
800
+ <div class="philo-card reveal" style="transition-delay:0.08s">
801
+ <div class="philo-num">02</div>
802
+ <div class="philo-title">Script as Flow</div>
803
+ <p class="philo-body">Syntax inspired by YAML + Mermaid + Python. Writing multi-agent interactions feels like authoring a screenplay — a minimal Stanford Town runs in very few lines.</p>
804
+ </div>
805
+ <div class="philo-card reveal" style="transition-delay:0.16s">
806
+ <div class="philo-num">03</div>
807
+ <div class="philo-title">Context Is Not a Variable</div>
808
+ <p class="philo-body">LLMs are minds, not functions. They read context and converse naturally — pass parameters only when necessary. Let AI do what AI does best.</p>
809
+ </div>
810
+ <div class="philo-card reveal" style="transition-delay:0.24s">
811
+ <div class="philo-num">04</div>
812
+ <div class="philo-title">@actor Type</div>
813
+ <p class="philo-body">Agents (LLM or human) as an original new data type. Femo syntax supports direct access to actor properties. The actor is a first-class citizen.</p>
814
+ </div>
815
+ <div class="philo-card reveal" style="transition-delay:0.32s">
816
+ <div class="philo-num">05</div>
817
+ <div class="philo-title">Soul ID</div>
818
+ <p class="philo-body">Every agent character has a unique soul ID, enabling cross-script, cross-session memory retrieval — shaping an agent's continuous experience and accumulating personality.</p>
819
+ </div>
820
+ </div>
821
+ </div>
822
+ </section>
823
+
824
+ <!-- MATRIX -->
825
+ <div class="act-divider">Comparison at a Glance</div>
826
+
827
+ <section id="matrix">
828
+ <div class="reveal">
829
+ <div class="section-eyebrow">Comparison Matrix</div>
830
+ <h2 class="section-title">What You Want —<br>Femo <em>Can Deliver</em></h2>
831
+ </div>
832
+ <table class="matrix-table reveal" style="transition-delay:0.15s">
833
+ <thead>
834
+ <tr>
835
+ <th>What You Want</th>
836
+ <th>Femo</th>
837
+ </tr>
838
+ </thead>
839
+ <tbody>
840
+ <tr><td>Zero-code drag-and-drop workflow</td><td><span class="check">✦</span> femo.net online editor</td></tr>
841
+ <tr><td>Simple syntax, fewer lines</td><td><span class="check">✦</span> Femo syntax far shorter than comparable workflow code</td></tr>
842
+ <tr><td>Change flows without rewriting code</td><td><span class="check">✦</span> Script is the flow, harness hot-reloads</td></tr>
843
+ <tr><td>Isolated AI perspectives, no crosstalk</td><td><span class="check">✦</span> One line: <code>scope: [@A, @B]</code></td></tr>
844
+ <tr><td>Embed in your own system</td><td><span class="check">✦</span> Compiler is open source, Apache 2.0 commercial-friendly</td></tr>
845
+ <tr><td>Humans joining AI group chats</td><td><span class="check">✦</span> Native human node</td></tr>
846
+ <tr><td>Hook in complex Python logic</td><td><span class="check">✦</span> Native func node</td></tr>
847
+ <tr><td>Share and reuse others' scripts</td><td><span class="check">✦</span> Paste .femo code, runs immediately</td></tr>
848
+ <tr><td>No platform lock-in</td><td><span class="check">✦</span> Open-source compiler, take it anywhere</td></tr>
849
+ <tr><td>Waiting for emergence</td><td><span class="check">✦</span> World Automata · souls cross-script</td></tr>
850
+ </tbody>
851
+ </table>
852
+ </section>
853
+
854
+ <!-- CTA -->
855
+ <section id="cta-section">
856
+ <div class="cta-bg-text">Femo</div>
857
+ <div style="position:relative;z-index:2">
858
+ <div class="cta-eyebrow">Quick Start · Under 10 Steps</div>
859
+ <h2 class="cta-title">For the Sake of <em>Emergence</em> —<br>Leave a Star</h2>
860
+ <p class="cta-sub">For your agent's pet cat. For the hours you'll save. For emergences that haven't happened yet.</p>
861
+ <div class="cta-install">
862
+ <span>$</span> pip install fenwa
863
+ </div>
864
+ <div class="cta-buttons">
865
+ <a href="https://github.com/Phant0Meow/Femo" class="cta-link">GitHub ↗</a>
866
+ <a href="https://femo.net" class="cta-link">femo.net ↗</a>
867
+ <a href="https://github.com/Phant0Meow/Femo/issues" class="cta-link">Submit an Issue ↗</a>
868
+ </div>
869
+ </div>
870
+ </section>
871
+
872
+ <footer>
873
+ <div class="footer-logo">FEMO · Flow Engine for Minds · World Automata</div>
874
+ <div class="footer-note">Apache 2.0 · Made with ❤️ & anticipation of emergence</div>
875
+ </footer>
876
+
877
+ <script>
878
+ /* Cursor */
879
+ const cur = document.getElementById('cursor');
880
+ const ring = document.getElementById('cursor-ring');
881
+ let mx=0, my=0, rx=0, ry=0;
882
+ document.addEventListener('mousemove', e => { mx = e.clientX; my = e.clientY; });
883
+ function animCursor() {
884
+ rx += (mx - rx) * 0.13;
885
+ ry += (my - ry) * 0.13;
886
+ cur.style.left = mx + 'px'; cur.style.top = my + 'px';
887
+ ring.style.left = rx + 'px'; ring.style.top = ry + 'px';
888
+ requestAnimationFrame(animCursor);
889
+ }
890
+ animCursor();
891
+ document.querySelectorAll('a,button,.feature-card,.case-item').forEach(el => {
892
+ el.addEventListener('mouseenter', () => {
893
+ cur.style.transform = 'translate(-50%,-50%) scale(2)';
894
+ ring.style.width = '54px'; ring.style.height = '54px';
895
+ });
896
+ el.addEventListener('mouseleave', () => {
897
+ cur.style.transform = 'translate(-50%,-50%) scale(1)';
898
+ ring.style.width = '36px'; ring.style.height = '36px';
899
+ });
900
+ });
901
+
902
+ /* Intersection Observer for reveal animations */
903
+ const observer = new IntersectionObserver((entries) => {
904
+ entries.forEach(entry => {
905
+ if (entry.isIntersecting) {
906
+ entry.target.classList.add('visible');
907
+ }
908
+ });
909
+ }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
910
+
911
+ document.querySelectorAll('.reveal, .code-point, .case-item').forEach(el => {
912
+ observer.observe(el);
913
+ });
914
+
915
+ /* Staggered code points */
916
+ document.querySelectorAll('.code-point').forEach((el, i) => {
917
+ el.style.transitionDelay = (i * 0.12) + 's';
918
+ });
919
+
920
+ /* Grain animation */
921
+ const grainEl = document.getElementById('grain');
922
+ let gx = 0, gy = 0;
923
+ function animGrain() {
924
+ gx = Math.random() * 100;
925
+ gy = Math.random() * 100;
926
+ grainEl.style.backgroundPosition = gx + '% ' + gy + '%';
927
+ setTimeout(animGrain, 80);
928
+ }
929
+ animGrain();
930
+ </script>
931
+ </body>
932
+ </html>