@akanjs/cli 3.1.2-rc.3 → 3.2.0-rc.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 (130) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-n2tkg59z.js → CodeAgent-h6g8dg3a.js} +2 -2
  3. package/{CodeTui-9wsdx7ap.js → CodeTui-n9gacepn.js} +1 -1
  4. package/README.ko.md +9 -0
  5. package/README.md +9 -0
  6. package/TunnelShare-k3ja4w9x.js +14 -0
  7. package/{agent.command-tffz6wdn.js → agent.command-2f657613.js} +19 -17
  8. package/akanCode.js +2 -2
  9. package/{application.command-7bkxbrsp.js → application.command-yb8v177e.js} +45 -22
  10. package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-sctcmkyx.js} +57 -17
  11. package/buildBatch.proc.js +7 -7
  12. package/{cloud.command-a792bc10.js → cloud.command-et06ja22.js} +35 -18
  13. package/cloud.script-s6rbrwer.js +30 -0
  14. package/{code.command-ma8dtzww.js → code.command-7m67c7zc.js} +6 -6
  15. package/commandManifest.json +1 -1
  16. package/{context.command-80a1qhps.js → context.command-569z0rqf.js} +20 -19
  17. package/context.runner-ms8v1rxy.js +29 -0
  18. package/{guideline.command-195g0h9a.js → guideline.command-gnv3e8p8.js} +2 -2
  19. package/guidelines/akanApi/akanApi.instruction.md +317 -0
  20. package/guidelines/conventions/rules/app.md +5 -5
  21. package/guidelines/conventions/rules/config.md +1 -1
  22. package/guidelines/conventions/rules/gates.md +10 -5
  23. package/guidelines/conventions/rules/page.md +4 -2
  24. package/guidelines/conventions/rules/server.md +2 -0
  25. package/guidelines/conventions/rules/style.md +3 -1
  26. package/guidelines/conventions/rules/ts.md +2 -1
  27. package/guidelines/cssRule/cssRule.instruction.md +3 -1
  28. package/guidelines/pageRule/pageRule.instruction.md +3 -0
  29. package/incrementalBuilder.proc.js +70 -14
  30. package/{index-tns543wd.js → index-0fb3cpbt.js} +3 -3
  31. package/{index-zbrwnmf1.js → index-1q1cjn8s.js} +21 -11
  32. package/{index-wrmq92vk.js → index-3wjbhj2n.js} +1 -1
  33. package/{index-361ex3rb.js → index-48d5qsj3.js} +4 -4
  34. package/{index-aayg4dqf.js → index-5w9my9qe.js} +8 -8
  35. package/{index-1h2jc0x3.js → index-6wpaq392.js} +61 -15
  36. package/{index-tp56652m.js → index-7xdpww43.js} +69 -12
  37. package/index-7y5yghjg.js +2969 -0
  38. package/{index-zttm13c3.js → index-8g7tdsk4.js} +249 -696
  39. package/{index-m02tdq8a.js → index-8pb9yvp8.js} +63 -21
  40. package/{index-gbp1q1b5.js → index-8ts9774g.js} +4 -4
  41. package/{index-9zy8479y.js → index-93ewzmp6.js} +43 -14
  42. package/{index-zdpte1pj.js → index-9tbgb4d8.js} +1 -1
  43. package/index-abgh0jve.js +126 -0
  44. package/{index-khk05tsf.js → index-aj3ehkcx.js} +1 -1
  45. package/{index-84h43kg6.js → index-d4n1wmrz.js} +37 -4
  46. package/{index-gr9thy79.js → index-drz9e84d.js} +22 -8
  47. package/{index-hapx5myy.js → index-e3vmjtph.js} +2 -2
  48. package/{index-k64mhwbw.js → index-eajbmk10.js} +2 -1
  49. package/{index-0j1t1h2b.js → index-ed6ea0qp.js} +1 -1
  50. package/{index-sjabnf7j.js → index-fjr4d6yd.js} +444 -368
  51. package/index-hqrkqxx2.js +176 -0
  52. package/{index-z7kbxdqg.js → index-jdamtr7e.js} +3 -3
  53. package/{index-scck6h6d.js → index-kpdv34rq.js} +4 -4
  54. package/{index-ppvqy5bc.js → index-ktb3wcqz.js} +73 -34
  55. package/{index-sveq36gh.js → index-mmym5xmb.js} +4 -2
  56. package/{index-y4kcmbt2.js → index-mqntfzv5.js} +2 -2
  57. package/{index-4am4dvmf.js → index-ny2k80mv.js} +15 -3
  58. package/index-p6hjwt2d.js +1668 -0
  59. package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
  60. package/{index-jb2sreps.js → index-rc5fvqj2.js} +18 -18
  61. package/{index-db2nqrad.js → index-ryrm5z2c.js} +71 -19
  62. package/{index-eft5c2mp.js → index-s2grpzef.js} +331 -27
  63. package/{index-g500c5j9.js → index-sr5da35e.js} +33 -10
  64. package/{index-defp4gmb.js → index-sy481q2x.js} +1 -1
  65. package/{index-j9d3mjx1.js → index-thckcabc.js} +2 -2
  66. package/{index-9z3egsmg.js → index-vkzfk7qt.js} +25 -23
  67. package/index-w639tvkd.js +166 -0
  68. package/index-ygdbn9jn.js +122 -0
  69. package/{index-sp0qsr7a.js → index-zpv14wpy.js} +3 -3
  70. package/{index-sx91nf4z.js → index-zxsygkda.js} +18 -9
  71. package/index.js +24 -23
  72. package/{library.command-63hgt9te.js → library.command-1gp5qe3r.js} +3 -3
  73. package/{localRegistry.command-343ksmn9.js → localRegistry.command-v3g21rex.js} +25 -16
  74. package/{module.command-2hce9m6k.js → module.command-4xz9he6h.js} +6 -6
  75. package/{package.command-96eheyvd.js → package.command-s7qpnn1g.js} +12 -3
  76. package/package.json +2 -2
  77. package/{page.command-gs6d841d.js → page.command-fan34c49.js} +3 -3
  78. package/{pipeline.command-wdfvdbfj.js → pipeline.command-ph4fnn9w.js} +2 -2
  79. package/{primitive.command-7tdj12wn.js → primitive.command-3fqh8emf.js} +7 -7
  80. package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-vkb40hjc.js} +1 -1
  81. package/{quality.command-29bgarh1.js → quality.command-ecj6exsh.js} +15 -10
  82. package/{repair.command-yng4rf5d.js → repair.command-fe9jw719.js} +6 -6
  83. package/{scalar.command-1nk4329t.js → scalar.command-cnvfhk0n.js} +5 -5
  84. package/skills/akan-debug/SKILL.md +2 -1
  85. package/skills/akan-page/SKILL.md +30 -2
  86. package/skills/akan-service/SKILL.md +77 -1
  87. package/{subspace.command-5cehmcdd.js → subspace.command-yxtt3v3e.js} +8 -8
  88. package/templates/app/lib/___appName__/__appName__.abstract.md.template +6 -0
  89. package/templates/app/page/_index.tsx +4 -284
  90. package/templates/app/page/_layout.tsx +1 -26
  91. package/templates/app/page/styles.css.template +58 -318
  92. package/templates/appSample/page/_index.tsx +281 -0
  93. package/templates/appSample/page/_layout.tsx +55 -0
  94. package/templates/appSample/page/styles.css.template +327 -0
  95. package/templates/libRoot/lib/___libName__/__libName__.abstract.md.template +6 -0
  96. package/templates/workspaceRoot/package.json.template +1 -12
  97. package/{tunnel.command-yrd4atqy.js → tunnel.command-ggj38mqf.js} +7 -7
  98. package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
  99. package/typecheck.proc.js +1 -1
  100. package/{verify.command-kbq0fcg8.js → verify.command-w9ttxkdz.js} +16 -14
  101. package/{workflow.command-274qfa8z.js → workflow.command-ss8devj0.js} +12 -12
  102. package/{workspace.command-r6hgmawy.js → workspace.command-rw1p0xeq.js} +50 -38
  103. package/TunnelShare-6d7z36sr.js +0 -14
  104. package/cloud.script-t2n13gv6.js +0 -27
  105. package/context.runner-wxqb3qcy.js +0 -28
  106. package/index-j2dgmzbj.js +0 -1259
  107. package/index-p6x5b7hr.js +0 -839
  108. package/index-vzpnr12w.js +0 -65
  109. package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
  110. package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
  111. /package/templates/{app → appSample}/page/_overrides.tsx +0 -0
  112. /package/templates/{app → appSample}/public/fonts/Pretendard-Black.woff2 +0 -0
  113. /package/templates/{app → appSample}/public/fonts/Pretendard-Bold.woff2 +0 -0
  114. /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraBold.woff2 +0 -0
  115. /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraLight.woff2 +0 -0
  116. /package/templates/{app → appSample}/public/fonts/Pretendard-Light.woff2 +0 -0
  117. /package/templates/{app → appSample}/public/fonts/Pretendard-Medium.woff2 +0 -0
  118. /package/templates/{app → appSample}/public/fonts/Pretendard-Regular.woff2 +0 -0
  119. /package/templates/{app → appSample}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
  120. /package/templates/{app → appSample}/public/fonts/Pretendard-Thin.woff2 +0 -0
  121. /package/templates/{app → appSample}/public/jelly/cloud.webp +0 -0
  122. /package/templates/{app → appSample}/public/jelly/comet.webp +0 -0
  123. /package/templates/{app → appSample}/public/jelly/moon.webp +0 -0
  124. /package/templates/{app → appSample}/public/jelly/planet.webp +0 -0
  125. /package/templates/{app → appSample}/public/jelly/rocket.webp +0 -0
  126. /package/templates/{app → appSample}/public/jelly/star.webp +0 -0
  127. /package/templates/{app → appSample}/public/jelly/sugar.webp +0 -0
  128. /package/templates/{app → appSample}/public/logo.png +0 -0
  129. /package/templates/{app → appSample}/ui/Recipe/index.ts +0 -0
  130. /package/templates/{app → appSample}/ui/Recipe/jellyButton.ts +0 -0
@@ -1,327 +1,67 @@
1
1
  @import "tailwindcss";
2
2
  @import "akanjs/ui/styles.css";
3
3
 
4
- /* The jelly star palette. akanjs/ui/styles.css owns the theme system (token mapping, dark variant, runtime
5
- data-theme switching), so a rebrand only overrides the token values below. The star red (--jelly) is a fill
6
- color; --primary carries white text, so it is one step darker to keep 4.5:1 contrast. */
7
4
  :root,
5
+ [data-theme="dark"] {
6
+ --background: #0a0a0a;
7
+ --foreground: #fafafa;
8
+ --primary: #fafafa;
9
+ --primary-foreground: #171717;
10
+ --secondary: #262626;
11
+ --secondary-foreground: #fafafa;
12
+ --accent: #262626;
13
+ --accent-foreground: #fafafa;
14
+ --neutral: #262626;
15
+ --neutral-foreground: #fafafa;
16
+ --info: #3b82f6;
17
+ --info-foreground: #ffffff;
18
+ --success: #22c55e;
19
+ --success-foreground: #052e16;
20
+ --warning: #f59e0b;
21
+ --warning-foreground: #1a1a1a;
22
+ --destructive: #ef4444;
23
+ --destructive-foreground: #fafafa;
24
+ --open: #22c55e;
25
+ --open-foreground: #052e16;
26
+ --muted: #262626;
27
+ --muted-foreground: #a3a3a3;
28
+ --card: #171717;
29
+ --card-foreground: #fafafa;
30
+ --popover: #171717;
31
+ --popover-foreground: #fafafa;
32
+ --border: #262626;
33
+ --input: #262626;
34
+ --ring: #d4d4d4;
35
+ }
36
+
8
37
  [data-theme="light"] {
9
- --background: #f1f1ee;
10
- --foreground: #0d0d0e;
11
- --primary: #e02d27;
12
- --primary-foreground: #ffffff;
13
- --secondary: #0d0d0e;
14
- --secondary-foreground: #f6f6f3;
15
- --accent: #7650d8;
16
- --accent-foreground: #ffffff;
17
- --neutral: #26262a;
18
- --neutral-foreground: #f6f6f3;
19
- --info: #1f6fe0;
38
+ --background: #ffffff;
39
+ --foreground: #0a0a0a;
40
+ --primary: #171717;
41
+ --primary-foreground: #fafafa;
42
+ --secondary: #f5f5f5;
43
+ --secondary-foreground: #171717;
44
+ --accent: #f5f5f5;
45
+ --accent-foreground: #171717;
46
+ --neutral: #f5f5f5;
47
+ --neutral-foreground: #171717;
48
+ --info: #2563eb;
20
49
  --info-foreground: #ffffff;
21
- --success: #3f8f1f;
50
+ --success: #16a34a;
22
51
  --success-foreground: #ffffff;
23
- --warning: #f2b51c;
24
- --warning-foreground: #0d0d0e;
25
- --destructive: #c4161c;
26
- --destructive-foreground: #ffffff;
27
- --open: #5aa82a;
28
- --open-foreground: #0d0d0e;
29
- --muted: #e6e6e1;
30
- --muted-foreground: #66666b;
31
- --card: #fbfbf9;
32
- --card-foreground: #0d0d0e;
52
+ --warning: #d97706;
53
+ --warning-foreground: #ffffff;
54
+ --destructive: #dc2626;
55
+ --destructive-foreground: #fafafa;
56
+ --open: #16a34a;
57
+ --open-foreground: #ffffff;
58
+ --muted: #f5f5f5;
59
+ --muted-foreground: #737373;
60
+ --card: #ffffff;
61
+ --card-foreground: #0a0a0a;
33
62
  --popover: #ffffff;
34
- --popover-foreground: #0d0d0e;
35
- --border: #dcdcd6;
36
- --input: #d4d4ce;
37
- --ring: #e02d27;
38
- --jelly: #ef3a2d;
39
- --studio-shadow: color-mix(in oklab, #3a2a20 16%, transparent);
40
- --sky-top: #dfe5f7;
41
- --sky-bottom: #f6eadf;
42
- }
43
-
44
- [data-theme="dark"] {
45
- --background: #0f1129;
46
- --foreground: #f3f1fb;
47
- --primary: #e02d27;
48
- --primary-foreground: #ffffff;
49
- --secondary: #f3f1fb;
50
- --secondary-foreground: #0f1129;
51
- --accent: #a585e0;
52
- --accent-foreground: #0f1129;
53
- --neutral: #262a4d;
54
- --neutral-foreground: #f3f1fb;
55
- --info: #4b8ef0;
56
- --info-foreground: #0f1129;
57
- --success: #7cc23a;
58
- --success-foreground: #0f1129;
59
- --warning: #f6c437;
60
- --warning-foreground: #0f1129;
61
- --destructive: #e5383b;
62
- --destructive-foreground: #ffffff;
63
- --open: #7cc23a;
64
- --open-foreground: #0f1129;
65
- --muted: #1a1d3b;
66
- --muted-foreground: #a6a8c9;
67
- --card: #161935;
68
- --card-foreground: #f3f1fb;
69
- --popover: #1b1e40;
70
- --popover-foreground: #f3f1fb;
71
- --border: #2b2f57;
72
- --input: #33376a;
73
- --ring: #f0392e;
74
- --jelly: #f2402f;
75
- --studio-shadow: color-mix(in oklab, #02030f 65%, transparent);
76
- --sky-top: #25215f;
77
- --sky-bottom: #2d1749;
78
- }
79
-
80
- :root {
81
- --planet: #1f6fe0;
82
- --rocket: #82c43c;
83
- --moon: #f6e27a;
84
- --cloud: #a585e0;
85
- --comet: #e3228e;
86
- }
87
-
88
- @theme inline {
89
- --color-jelly: var(--jelly);
90
- --color-planet: var(--planet);
91
- --color-rocket: var(--rocket);
92
- --color-moon: var(--moon);
93
- --color-cloud: var(--cloud);
94
- --color-comet: var(--comet);
95
- --radius-box: 1.5rem;
96
- --radius-field: 0.875rem;
97
- }
98
-
99
- /* A sampled damped spring: overshoots the target by 18%, wobbles twice and settles. */
100
- @theme {
101
- --ease-jelly: linear(0, 0.42 6%, 0.86 13%, 1.12 21%, 1.18 26%, 1.13 32%, 1 41%, 0.95 48%, 0.97 56%, 1.01 66%, 1.005 78%, 1);
102
- }
103
-
104
- /* html and body both paint a background color, so body's background is not propagated to the canvas: the sky
105
- sits on body, and isolation keeps the grain layer above body's own background. */
106
- @layer base {
107
- body {
108
- isolation: isolate;
109
- background-image:
110
- radial-gradient(120% 60% at 50% -14%, var(--sky-top), transparent 64%),
111
- radial-gradient(110% 55% at 50% 114%, var(--sky-bottom), transparent 68%);
112
- background-attachment: fixed;
113
- }
114
-
115
- body::before {
116
- content: "";
117
- position: fixed;
118
- inset: 0;
119
- z-index: -1;
120
- pointer-events: none;
121
- opacity: 0.06;
122
- mix-blend-mode: multiply;
123
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
124
- }
125
-
126
- [data-theme="dark"] body::before {
127
- opacity: 0.1;
128
- mix-blend-mode: overlay;
129
- }
130
-
131
- h1,
132
- h2 {
133
- letter-spacing: -0.035em;
134
- }
135
-
136
- ::selection {
137
- background-color: color-mix(in oklab, var(--jelly) 24%, transparent);
138
- }
139
- }
140
-
141
- @keyframes jelly-intro {
142
- from {
143
- opacity: 0;
144
- translate: 0 1.25rem;
145
- filter: blur(6px);
146
- }
147
- }
148
-
149
- @keyframes jelly-breathe {
150
- 0%,
151
- 100% {
152
- scale: 1 1;
153
- }
154
- 50% {
155
- scale: 1.035 0.965;
156
- }
157
- }
158
-
159
- @keyframes jelly-wobble {
160
- 0% {
161
- scale: 1 1;
162
- }
163
- 16% {
164
- scale: 1.16 0.86;
165
- }
166
- 32% {
167
- scale: 0.9 1.1;
168
- }
169
- 48% {
170
- scale: 1.06 0.95;
171
- }
172
- 64% {
173
- scale: 0.97 1.03;
174
- }
175
- 82% {
176
- scale: 1.01 0.99;
177
- }
178
- 100% {
179
- scale: 1 1;
180
- }
181
- }
182
-
183
- @keyframes jelly-float {
184
- 0%,
185
- 100% {
186
- translate: 0 0;
187
- rotate: calc(var(--float-tilt, 4deg) * -1);
188
- }
189
- 50% {
190
- translate: 0 calc(var(--float-rise, 0.9rem) * -1);
191
- rotate: var(--float-tilt, 4deg);
192
- }
193
- }
194
-
195
- @utility intro-rise {
196
- @media (prefers-reduced-motion: no-preference) {
197
- animation: jelly-intro 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
198
- animation-delay: var(--intro-delay, 0ms);
199
- }
200
- }
201
-
202
- @utility jelly-breathe {
203
- transform-origin: 50% 100%;
204
- @media (prefers-reduced-motion: no-preference) {
205
- animation: jelly-breathe 3.2s ease-in-out infinite;
206
- }
207
- }
208
-
209
- @utility jelly-wobble {
210
- transform-origin: 50% 100%;
211
- @media (prefers-reduced-motion: no-preference) {
212
- animation: jelly-wobble 0.9s ease-out both;
213
- }
214
- }
215
-
216
- @utility jelly-float {
217
- @media (prefers-reduced-motion: no-preference) {
218
- animation: jelly-float var(--float-duration, 6s) ease-in-out var(--float-delay, 0s) infinite;
219
- }
220
- }
221
-
222
- @utility squish {
223
- transition:
224
- scale 700ms var(--ease-jelly),
225
- translate 700ms var(--ease-jelly);
226
- &:hover {
227
- scale: 1.04 0.97;
228
- }
229
- &:active {
230
- scale: 1.08 0.9;
231
- transition-duration: 90ms;
232
- }
233
- }
234
-
235
- @utility tint-* {
236
- --tint: --value(--color-*);
237
- }
238
-
239
- /* A gummy surface. public/jelly/sugar.webp is a high-pass of the logo star's sugar coating (128 gray = no change),
240
- laid on in hard-light so every tint gets the same sugar grain. */
241
- @utility jelly {
242
- --jelly-tint: var(--tint, var(--primary));
243
- --jelly-deep: color-mix(in oklab, var(--jelly-tint) 70%, black);
244
- --jelly-haze: color-mix(in oklab, var(--jelly-tint) 55%, white);
245
- background-color: var(--jelly-tint);
246
- background-image:
247
- url("/jelly/sugar.webp"),
248
- radial-gradient(120% 95% at 26% -8%, color-mix(in oklab, white 26%, transparent), transparent 58%),
249
- radial-gradient(110% 90% at 60% 125%, color-mix(in oklab, var(--jelly-deep) 30%, transparent), transparent 60%);
250
- background-size:
251
- 100px 100px,
252
- 100% 100%,
253
- 100% 100%;
254
- background-repeat: repeat, no-repeat, no-repeat;
255
- background-blend-mode: hard-light, normal, normal;
256
- box-shadow:
257
- inset 0 0 0 1px color-mix(in oklab, var(--jelly-haze) 40%, transparent),
258
- inset 0 0 8px 1px color-mix(in oklab, white 20%, transparent),
259
- inset 0 -3px 6px color-mix(in oklab, var(--jelly-deep) 28%, transparent),
260
- 0 6px 10px -6px color-mix(in oklab, var(--jelly-deep) 65%, transparent),
261
- 0 1px 2px color-mix(in oklab, black 12%, transparent);
262
- }
263
-
264
- @utility jelly-glass {
265
- --jelly-tint: var(--tint, var(--card));
266
- background-color: color-mix(in oklab, var(--card) 95%, var(--jelly-tint));
267
- background-image:
268
- radial-gradient(120% 70% at 20% -20%, color-mix(in oklab, white 55%, transparent), transparent 60%),
269
- radial-gradient(90% 60% at 100% 120%, color-mix(in oklab, var(--jelly-tint) 9%, transparent), transparent 70%);
270
- box-shadow:
271
- inset 0 1px 0 color-mix(in oklab, white 70%, transparent),
272
- inset 0 -1px 0 color-mix(in oklab, var(--jelly-tint) 14%, transparent),
273
- 0 22px 44px -28px var(--studio-shadow),
274
- 0 2px 6px -3px var(--studio-shadow);
275
- @variant dark {
276
- background-color: color-mix(in oklab, var(--card) 92%, var(--jelly-tint));
277
- background-image:
278
- radial-gradient(120% 70% at 20% -20%, color-mix(in oklab, white 7%, transparent), transparent 60%),
279
- radial-gradient(90% 60% at 100% 120%, color-mix(in oklab, var(--jelly-tint) 14%, transparent), transparent 70%);
280
- box-shadow:
281
- inset 0 1px 0 color-mix(in oklab, white 11%, transparent),
282
- inset 0 -1px 0 color-mix(in oklab, var(--jelly-tint) 18%, transparent),
283
- 0 22px 44px -28px var(--studio-shadow),
284
- 0 2px 6px -3px var(--studio-shadow);
285
- }
286
- }
287
-
288
- /* The same sugar, clipped to the glyphs of plain text-primary text. Clipping replaces the element's background, so
289
- elements with a surface of their own (bg-*, jelly, glass) and currentColor drawings are skipped, and icons inside
290
- get their color back. */
291
- .text-primary:not(svg, [class*="bg-"], [class*="jelly"], [class*="glass"], [class*="-current"]) {
292
- background-color: var(--primary);
293
- background-image:
294
- url("/jelly/sugar.webp"),
295
- linear-gradient(
296
- to bottom,
297
- color-mix(in oklab, black 8%, var(--primary)),
298
- color-mix(in oklab, white 14%, var(--primary)) 22%,
299
- var(--primary) 60%,
300
- color-mix(in oklab, black 8%, var(--primary))
301
- );
302
- background-size:
303
- 100px 100px,
304
- 100% 1lh;
305
- background-origin: content-box;
306
- background-blend-mode: hard-light, normal;
307
- -webkit-background-clip: text;
308
- background-clip: text;
309
- color: transparent;
310
- text-decoration-color: var(--primary);
311
- & :is(svg, [class*="-current"]) {
312
- color: var(--primary);
313
- }
314
- /* A heading's tight leading pushes descenders out of the box, where a text-clipped background is never painted. */
315
- :is(h1, h2, h3, h4, h5, h6) & {
316
- padding-block: 0.15em;
317
- margin-block: -0.15em;
318
- }
319
- }
320
-
321
- /* A descendant with a surface of its own covers the clipped sugar, so the transparent color it inherits would leave
322
- it blank. It takes the primary color back; layered under utilities, a text-* class of its own still wins. */
323
- @layer base {
324
- .text-primary:not(svg, [class*="bg-"], [class*="jelly"], [class*="glass"], [class*="-current"]) [class*="bg-"]:not([class*="bg-clip"]) {
325
- color: var(--primary);
326
- }
63
+ --popover-foreground: #0a0a0a;
64
+ --border: #e5e5e5;
65
+ --input: #e5e5e5;
66
+ --ring: #0a0a0a;
327
67
  }
@@ -0,0 +1,281 @@
1
+ import type { AppInfo, LibInfo } from "akanjs";
2
+
3
+ interface Dict {
4
+ appName: string;
5
+ }
6
+ export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
7
+ return {
8
+ filename: "_index.tsx",
9
+ content: `import { jellyButtonRecipe } from "@apps/${dict.appName}/ui";
10
+ import { getEnv } from "akanjs/base";
11
+ import { cn, page, usePage } from "akanjs/client";
12
+ import { Image, Link, System } from "akanjs/ui";
13
+
14
+ const friendFloat = {
15
+ planet: "[--float-delay:-0.4s] [--float-duration:6.2s]",
16
+ rocket: "[--float-delay:-2.2s] [--float-duration:5.2s] [--float-tilt:7deg]",
17
+ moon: "[--float-delay:-3.6s] [--float-duration:7s] [--float-tilt:-5deg]",
18
+ cloud: "[--float-delay:-1.4s] [--float-duration:8s] [--float-rise:0.6rem]",
19
+ comet: "[--float-delay:-4.8s] [--float-duration:4.6s] [--float-tilt:9deg]",
20
+ } as const;
21
+
22
+ const numeralTiles = [
23
+ "tint-planet text-white",
24
+ "tint-rocket text-black/70",
25
+ "tint-moon text-black/70",
26
+ "tint-comet text-white",
27
+ ] as const;
28
+
29
+ export default page().render(() => {
30
+ const appName = getEnv().appName;
31
+ const { l } = usePage();
32
+ const friends = [
33
+ { name: "planet", role: l.trans({ en: "Web", ko: "웹" }) },
34
+ { name: "rocket", role: l.trans({ en: "App", ko: "앱" }) },
35
+ { name: "moon", role: l.trans({ en: "Server · DB", ko: "서버 · DB" }) },
36
+ { name: "cloud", role: l.trans({ en: "Infra", ko: "인프라" }) },
37
+ { name: "comet", role: l.trans({ en: "Agent", ko: "에이전트" }) },
38
+ ] as const;
39
+ const chapters = [
40
+ {
41
+ numeral: "1",
42
+ title: l.trans({ en: "The line you write.", ko: "당신이 쓰는 한 줄." }),
43
+ body: l.trans({
44
+ en: "A field is one declaration — a name and a type. The database, API, screens and agent tools all come from it.",
45
+ ko: "필드는 이름과 타입, 선언 한 줄입니다. DB, API, 화면, 에이전트 도구가 모두 이 한 줄에서 나옵니다.",
46
+ }),
47
+ },
48
+ {
49
+ numeral: "×8",
50
+ title: l.trans({ en: "Through every layer.", ko: "모든 레이어를 관통하고," }),
51
+ body: l.trans({
52
+ en: "Schema, query, service, API, fetch, client type, state and UI change together. Nothing to chase, nothing to miss.",
53
+ ko: "스키마, 쿼리, 서비스, API, fetch, 클라이언트 타입, 상태, UI가 함께 바뀝니다. 따라 고칠 곳도 빠뜨릴 곳도 없습니다.",
54
+ }),
55
+ },
56
+ {
57
+ numeral: "×6",
58
+ title: l.trans({ en: "Onto every platform.", ko: "모든 플랫폼에 닿고," }),
59
+ body: l.trans({
60
+ en: "The same code ships as SEO-ready web, iOS and Android apps, and macOS, Windows and Linux desktop apps.",
61
+ ko: "같은 코드가 SEO 웹, iOS·Android 앱, macOS·Windows·Linux 데스크톱 앱으로 배포됩니다.",
62
+ }),
63
+ },
64
+ {
65
+ numeral: "×2",
66
+ title: l.trans({ en: "For people and agents alike.", ko: "사람과 에이전트 모두에게." }),
67
+ body: l.trans({
68
+ en: "Guarded endpoints become MCP tools and on-screen controls become in-page agent tools, behind the same guards people pass.",
69
+ ko: "가드를 거친 엔드포인트는 MCP 도구가, 화면의 컨트롤은 인페이지 에이전트 도구가 됩니다. 사람과 같은 가드를 거쳐서요.",
70
+ }),
71
+ },
72
+ ];
73
+ const steps = [
74
+ {
75
+ title: l.trans({ en: "Make this page yours", ko: "이 페이지를 바꿔 보세요" }),
76
+ body: l.trans({
77
+ en: "This welcome screen is an ordinary page. Replace it with the first screen of your product.",
78
+ ko: "이 환영 화면은 평범한 페이지입니다. 제품의 첫 화면으로 바꿔 보세요.",
79
+ }),
80
+ code: "page/_index.tsx",
81
+ },
82
+ {
83
+ title: l.trans({ en: "Restyle the theme", ko: "테마를 바꿔 보세요" }),
84
+ body: l.trans({
85
+ en: "Swap the palette tokens, and every surface and button follows.",
86
+ ko: "팔레트 토큰을 바꾸면 모든 표면과 버튼이 따라옵니다.",
87
+ }),
88
+ code: "page/styles.css",
89
+ },
90
+ {
91
+ title: l.trans({ en: "Add a feature", ko: "기능을 추가해 보세요" }),
92
+ body: l.trans({
93
+ en: "One command scaffolds a domain module — model, service, API, store and UI.",
94
+ ko: "명령 하나로 도메인 모듈(모델, 서비스, API, 스토어, UI)을 만듭니다.",
95
+ }),
96
+ code: "akan create-module <name>",
97
+ },
98
+ {
99
+ title: l.trans({ en: "Read the sample module", ko: "샘플 모듈을 읽어 보세요" }),
100
+ body: l.trans({
101
+ en: "The task module walks one feature end to end — the model, its guarded API, the store and the pages.",
102
+ ko: "task 모듈이 모델부터 가드가 걸린 API, 스토어, 페이지까지 기능 하나를 처음부터 끝까지 보여 줍니다.",
103
+ }),
104
+ code: "lib/task",
105
+ href: "/task",
106
+ },
107
+ {
108
+ title: l.trans({ en: "Connect an agent", ko: "에이전트를 연결해 보세요" }),
109
+ body: l.trans({
110
+ en: "Every guarded endpoint is already published as an MCP tool.",
111
+ ko: "가드가 걸린 엔드포인트는 이미 MCP 도구로 공개되어 있습니다.",
112
+ }),
113
+ code: "POST /mcp",
114
+ href: "https://akanjs.com/docs/arch/agentic",
115
+ },
116
+ ];
117
+ return (
118
+ <main className="relative min-h-screen overflow-x-clip break-keep text-foreground">
119
+ <div className="mx-auto flex min-h-screen w-full max-w-6xl flex-col px-6 py-6 lg:px-8">
120
+ <nav className="flex items-center justify-between gap-4">
121
+ <div className="flex items-center gap-3">
122
+ <Image
123
+ alt={l.trans({ en: "Logo", ko: "로고" })}
124
+ className="jelly-breathe size-10"
125
+ height={80}
126
+ priority
127
+ src="/logo.png"
128
+ width={80}
129
+ />
130
+ <div className="leading-tight">
131
+ <p className="font-black text-lg tracking-tight">{appName}</p>
132
+ <p className="text-foreground/50 text-xs">
133
+ {l.trans({ en: "Built with Akan.js", ko: "Akan.js로 만든 앱" })}
134
+ </p>
135
+ </div>
136
+ </div>
137
+ <div className="flex items-center gap-2">
138
+ <System.ThemeToggle themes={["light", "dark"]} />
139
+ <System.SelectLanguage languages={["en", "ko"]} />
140
+ <Link
141
+ className={jellyButtonRecipe({ variant: "default", size: "sm" }, "max-sm:hidden")}
142
+ href="https://akanjs.com"
143
+ target="_blank"
144
+ >
145
+ {l.trans({ en: "Official Site", ko: "공식 사이트" })} ↗
146
+ </Link>
147
+ </div>
148
+ </nav>
149
+
150
+ <section className="grid min-h-[calc(100svh-5rem)] items-center gap-6 py-12 lg:grid-cols-[0.8fr_1.2fr] lg:gap-10">
151
+ <div className="intro-rise group relative mx-auto aspect-square w-48 sm:w-64 lg:w-full lg:max-w-md">
152
+ <div className="absolute inset-x-[16%] bottom-[3%] h-[7%] rounded-full bg-black/25 blur-xl dark:bg-black/60" />
153
+ <div className="jelly-breathe group-hover:jelly-wobble size-full">
154
+ <Image
155
+ alt=""
156
+ className="pointer-events-none size-full select-none object-contain"
157
+ draggable={false}
158
+ height={640}
159
+ priority
160
+ src="/jelly/star.webp"
161
+ width={640}
162
+ />
163
+ </div>
164
+ </div>
165
+
166
+ <div className="flex flex-col items-center text-center lg:items-start lg:text-left">
167
+ <p className="intro-rise jelly-glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 font-bold text-foreground/75 text-sm [--intro-delay:40ms]">
168
+ <span className="size-2 rounded-full bg-success ring-4 ring-success/20" />
169
+ {l.trans({ en: "Your app is running", ko: "앱이 실행 중입니다" })}
170
+ </p>
171
+ <h1 className="intro-rise wrap-anywhere mt-6 max-w-full font-black text-[clamp(3.5rem,12vw,8.5rem)] leading-[0.85] tracking-[-0.06em] [--intro-delay:80ms]">
172
+ {appName}
173
+ </h1>
174
+ <p className="intro-rise mt-6 max-w-xl font-bold text-foreground/60 text-lg leading-8 [--intro-delay:160ms]">
175
+ {l.trans({
176
+ en: "Built on Akan.js — the TypeScript framework, agents included.",
177
+ ko: "에이전트까지 들어 있는 TypeScript 프레임워크, Akan.js로 만들었습니다.",
178
+ })}
179
+ </p>
180
+ <ul className="intro-rise mt-8 flex items-end gap-2 [--intro-delay:240ms] sm:gap-4">
181
+ {friends.map((friend) => (
182
+ <li className="group flex flex-col items-center gap-2" key={friend.name}>
183
+ <span className={cn("jelly-float block", friendFloat[friend.name])}>
184
+ <span className="group-hover:jelly-wobble block">
185
+ <Image
186
+ alt=""
187
+ className="pointer-events-none size-14 select-none sm:size-18"
188
+ draggable={false}
189
+ height={200}
190
+ src={\`/jelly/\${friend.name}.webp\`}
191
+ width={200}
192
+ />
193
+ </span>
194
+ </span>
195
+ <span className="whitespace-nowrap rounded-full bg-foreground/6 px-2.5 py-0.5 font-bold text-[11px] text-foreground/60">
196
+ {friend.role}
197
+ </span>
198
+ </li>
199
+ ))}
200
+ </ul>
201
+ <div className="intro-rise mt-10 flex flex-wrap justify-center gap-3 [--intro-delay:320ms] lg:justify-start">
202
+ <Link
203
+ className={jellyButtonRecipe({ size: "lg" })}
204
+ href="https://akanjs.com/docs/intro/quickstart"
205
+ target="_blank"
206
+ >
207
+ {l.trans({ en: "Read Quick Start", ko: "빠른 시작 읽기" })}
208
+ </Link>
209
+ <Link className={jellyButtonRecipe({ variant: "default", size: "lg" })} href="/task">
210
+ {l.trans({ en: "Open the Sample", ko: "샘플 열어 보기" })}
211
+ </Link>
212
+ </div>
213
+ </div>
214
+ </section>
215
+
216
+ <section className="py-12">
217
+ <p className="font-bold text-primary text-sm">{l.trans({ en: "How it works", ko: "작동 방식" })}</p>
218
+ <h2 className="mt-2 font-black text-3xl sm:text-4xl">
219
+ {l.trans({ en: "One line reaches the whole product.", ko: "한 줄이 제품 전체에 닿습니다." })}
220
+ </h2>
221
+ <div className="mt-8 grid gap-4 md:grid-cols-2 xl:grid-cols-4">
222
+ {chapters.map((chapter, idx) => (
223
+ <article className="jelly-glass rounded-box p-6" key={chapter.numeral}>
224
+ <span
225
+ className={cn(
226
+ "jelly flex size-12 items-center justify-center rounded-2xl font-black text-xl",
227
+ numeralTiles[idx],
228
+ )}
229
+ >
230
+ {chapter.numeral}
231
+ </span>
232
+ <h3 className="mt-5 font-bold text-lg">{chapter.title}</h3>
233
+ <p className="mt-2 text-foreground/60 text-sm leading-6">{chapter.body}</p>
234
+ </article>
235
+ ))}
236
+ </div>
237
+ </section>
238
+
239
+ <section className="py-12">
240
+ <p className="font-bold text-primary text-sm">{l.trans({ en: "Next steps", ko: "다음 단계" })}</p>
241
+ <h2 className="mt-2 font-black text-3xl sm:text-4xl">
242
+ {l.trans({ en: "Start here.", ko: "여기서 시작하세요." })}
243
+ </h2>
244
+ <ol className="jelly-glass mt-8 divide-y divide-foreground/8 rounded-box">
245
+ {steps.map((step, idx) => (
246
+ <li className="flex items-start gap-4 p-5 sm:p-6" key={step.code}>
247
+ <span className="jelly tint-primary flex size-9 shrink-0 items-center justify-center rounded-full font-black text-primary-foreground text-sm">
248
+ {idx + 1}
249
+ </span>
250
+ <div className="min-w-0 flex-1">
251
+ <h3 className="font-bold">{step.title}</h3>
252
+ <p className="mt-1 text-foreground/60 text-sm leading-6">{step.body}</p>
253
+ <code className="mt-2 inline-block rounded-full bg-foreground/6 px-3 py-1 font-mono text-foreground/75 text-xs">
254
+ {step.code}
255
+ </code>
256
+ </div>
257
+ {step.href ? (
258
+ <Link
259
+ aria-label={step.title}
260
+ className={jellyButtonRecipe({ variant: "ghost", size: "icon" }, "shrink-0 self-center")}
261
+ href={step.href}
262
+ target={step.href.startsWith("http") ? "_blank" : undefined}
263
+ >
264
+ →
265
+ </Link>
266
+ ) : null}
267
+ </li>
268
+ ))}
269
+ </ol>
270
+ </section>
271
+
272
+ <footer className="py-10 text-center text-foreground/45 text-sm">
273
+ {l.trans({ en: "Made with Akan.js · Powered by Bun", ko: "Akan.js로 만들고 Bun으로 구동합니다" })}
274
+ </footer>
275
+ </div>
276
+ </main>
277
+ );
278
+ });
279
+ `,
280
+ };
281
+ }