@baseline-studio/playground 0.0.0-stage → 0.1.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 (823) hide show
  1. package/README.md +20 -2
  2. package/app/.next-pack/BUILD_ID +1 -0
  3. package/app/.next-pack/app-build-manifest.json +2213 -0
  4. package/app/.next-pack/app-path-routes-manifest.json +118 -0
  5. package/app/.next-pack/build-manifest.json +33 -0
  6. package/app/.next-pack/package.json +1 -0
  7. package/app/.next-pack/prerender-manifest.json +486 -0
  8. package/app/.next-pack/react-loadable-manifest.json +14 -0
  9. package/app/.next-pack/required-server-files.json +344 -0
  10. package/app/.next-pack/routes-manifest.json +629 -0
  11. package/app/.next-pack/server/app/_not-found/page.js +2 -0
  12. package/app/.next-pack/server/app/_not-found/page.js.nft.json +1 -0
  13. package/app/.next-pack/server/app/_not-found/page_client-reference-manifest.js +1 -0
  14. package/app/.next-pack/server/app/_not-found.html +1 -0
  15. package/app/.next-pack/server/app/_not-found.meta +8 -0
  16. package/app/.next-pack/server/app/_not-found.rsc +29 -0
  17. package/app/.next-pack/server/app/activity/page.js +2 -0
  18. package/app/.next-pack/server/app/activity/page.js.nft.json +1 -0
  19. package/app/.next-pack/server/app/activity/page_client-reference-manifest.js +1 -0
  20. package/app/.next-pack/server/app/activity.html +1 -0
  21. package/app/.next-pack/server/app/activity.meta +9 -0
  22. package/app/.next-pack/server/app/activity.rsc +27 -0
  23. package/app/.next-pack/server/app/api/activity/route.js +1 -0
  24. package/app/.next-pack/server/app/api/activity/route.js.nft.json +1 -0
  25. package/app/.next-pack/server/app/api/activity/route_client-reference-manifest.js +1 -0
  26. package/app/.next-pack/server/app/api/apps/shot/route.js +1 -0
  27. package/app/.next-pack/server/app/api/apps/shot/route.js.nft.json +1 -0
  28. package/app/.next-pack/server/app/api/apps/shot/route_client-reference-manifest.js +1 -0
  29. package/app/.next-pack/server/app/api/apps/vshot/route.js +1 -0
  30. package/app/.next-pack/server/app/api/apps/vshot/route.js.nft.json +1 -0
  31. package/app/.next-pack/server/app/api/apps/vshot/route_client-reference-manifest.js +1 -0
  32. package/app/.next-pack/server/app/api/brain/route.js +1 -0
  33. package/app/.next-pack/server/app/api/brain/route.js.nft.json +1 -0
  34. package/app/.next-pack/server/app/api/brain/route_client-reference-manifest.js +1 -0
  35. package/app/.next-pack/server/app/api/build/route.js +1 -0
  36. package/app/.next-pack/server/app/api/build/route.js.nft.json +1 -0
  37. package/app/.next-pack/server/app/api/build/route_client-reference-manifest.js +1 -0
  38. package/app/.next-pack/server/app/api/check/route.js +5 -0
  39. package/app/.next-pack/server/app/api/check/route.js.nft.json +1 -0
  40. package/app/.next-pack/server/app/api/check/route_client-reference-manifest.js +1 -0
  41. package/app/.next-pack/server/app/api/files/route.js +1 -0
  42. package/app/.next-pack/server/app/api/files/route.js.nft.json +1 -0
  43. package/app/.next-pack/server/app/api/files/route_client-reference-manifest.js +1 -0
  44. package/app/.next-pack/server/app/api/fonts/[file]/route.js +1 -0
  45. package/app/.next-pack/server/app/api/fonts/[file]/route.js.nft.json +1 -0
  46. package/app/.next-pack/server/app/api/fonts/[file]/route_client-reference-manifest.js +1 -0
  47. package/app/.next-pack/server/app/api/home/route.js +1 -0
  48. package/app/.next-pack/server/app/api/home/route.js.nft.json +1 -0
  49. package/app/.next-pack/server/app/api/home/route_client-reference-manifest.js +1 -0
  50. package/app/.next-pack/server/app/api/local/pick-folder/route.js +1 -0
  51. package/app/.next-pack/server/app/api/local/pick-folder/route.js.nft.json +1 -0
  52. package/app/.next-pack/server/app/api/local/pick-folder/route_client-reference-manifest.js +1 -0
  53. package/app/.next-pack/server/app/api/local/repos/route.js +1 -0
  54. package/app/.next-pack/server/app/api/local/repos/route.js.nft.json +1 -0
  55. package/app/.next-pack/server/app/api/local/repos/route_client-reference-manifest.js +1 -0
  56. package/app/.next-pack/server/app/api/plan/route.js +1 -0
  57. package/app/.next-pack/server/app/api/plan/route.js.nft.json +1 -0
  58. package/app/.next-pack/server/app/api/plan/route_client-reference-manifest.js +1 -0
  59. package/app/.next-pack/server/app/api/projects/route.js +1 -0
  60. package/app/.next-pack/server/app/api/projects/route.js.nft.json +1 -0
  61. package/app/.next-pack/server/app/api/projects/route_client-reference-manifest.js +1 -0
  62. package/app/.next-pack/server/app/api/remote/route.js +1 -0
  63. package/app/.next-pack/server/app/api/remote/route.js.nft.json +1 -0
  64. package/app/.next-pack/server/app/api/remote/route_client-reference-manifest.js +1 -0
  65. package/app/.next-pack/server/app/api/screens/route.js +1 -0
  66. package/app/.next-pack/server/app/api/screens/route.js.nft.json +1 -0
  67. package/app/.next-pack/server/app/api/screens/route_client-reference-manifest.js +1 -0
  68. package/app/.next-pack/server/app/api/skills/route.js +1 -0
  69. package/app/.next-pack/server/app/api/skills/route.js.nft.json +1 -0
  70. package/app/.next-pack/server/app/api/skills/route_client-reference-manifest.js +1 -0
  71. package/app/.next-pack/server/app/api/state/ref/route.js +1 -0
  72. package/app/.next-pack/server/app/api/state/ref/route.js.nft.json +1 -0
  73. package/app/.next-pack/server/app/api/state/ref/route_client-reference-manifest.js +1 -0
  74. package/app/.next-pack/server/app/api/state/route.js +1 -0
  75. package/app/.next-pack/server/app/api/state/route.js.nft.json +1 -0
  76. package/app/.next-pack/server/app/api/state/route_client-reference-manifest.js +1 -0
  77. package/app/.next-pack/server/app/api/studio/crit/route.js +1 -0
  78. package/app/.next-pack/server/app/api/studio/crit/route.js.nft.json +1 -0
  79. package/app/.next-pack/server/app/api/studio/crit/route_client-reference-manifest.js +1 -0
  80. package/app/.next-pack/server/app/api/studio/diff/route.js +1 -0
  81. package/app/.next-pack/server/app/api/studio/diff/route.js.nft.json +1 -0
  82. package/app/.next-pack/server/app/api/studio/diff/route_client-reference-manifest.js +1 -0
  83. package/app/.next-pack/server/app/api/studio/html/route.js +1 -0
  84. package/app/.next-pack/server/app/api/studio/html/route.js.nft.json +1 -0
  85. package/app/.next-pack/server/app/api/studio/html/route_client-reference-manifest.js +1 -0
  86. package/app/.next-pack/server/app/api/studio/project/route.js +1 -0
  87. package/app/.next-pack/server/app/api/studio/project/route.js.nft.json +1 -0
  88. package/app/.next-pack/server/app/api/studio/project/route_client-reference-manifest.js +1 -0
  89. package/app/.next-pack/server/app/api/studio/route.js +1 -0
  90. package/app/.next-pack/server/app/api/studio/route.js.nft.json +1 -0
  91. package/app/.next-pack/server/app/api/studio/route_client-reference-manifest.js +1 -0
  92. package/app/.next-pack/server/app/api/studio/system/route.js +1 -0
  93. package/app/.next-pack/server/app/api/studio/system/route.js.nft.json +1 -0
  94. package/app/.next-pack/server/app/api/studio/system/route_client-reference-manifest.js +1 -0
  95. package/app/.next-pack/server/app/api/studio/variants/route.js +4 -0
  96. package/app/.next-pack/server/app/api/studio/variants/route.js.nft.json +1 -0
  97. package/app/.next-pack/server/app/api/studio/variants/route_client-reference-manifest.js +1 -0
  98. package/app/.next-pack/server/app/api/sync/route.js +1 -0
  99. package/app/.next-pack/server/app/api/sync/route.js.nft.json +1 -0
  100. package/app/.next-pack/server/app/api/sync/route_client-reference-manifest.js +1 -0
  101. package/app/.next-pack/server/app/api/themes/route.js +1 -0
  102. package/app/.next-pack/server/app/api/themes/route.js.nft.json +1 -0
  103. package/app/.next-pack/server/app/api/themes/route_client-reference-manifest.js +1 -0
  104. package/app/.next-pack/server/app/apple-icon/route.js +1 -0
  105. package/app/.next-pack/server/app/apple-icon/route.js.nft.json +1 -0
  106. package/app/.next-pack/server/app/apple-icon/route_client-reference-manifest.js +1 -0
  107. package/app/.next-pack/server/app/apple-icon.body +0 -0
  108. package/app/.next-pack/server/app/apple-icon.meta +1 -0
  109. package/app/.next-pack/server/app/brain/page.js +3 -0
  110. package/app/.next-pack/server/app/brain/page.js.nft.json +1 -0
  111. package/app/.next-pack/server/app/brain/page_client-reference-manifest.js +1 -0
  112. package/app/.next-pack/server/app/connection/page.js +2 -0
  113. package/app/.next-pack/server/app/connection/page.js.nft.json +1 -0
  114. package/app/.next-pack/server/app/connection/page_client-reference-manifest.js +1 -0
  115. package/app/.next-pack/server/app/design-system/[system]/page.js +2 -0
  116. package/app/.next-pack/server/app/design-system/[system]/page.js.nft.json +1 -0
  117. package/app/.next-pack/server/app/design-system/[system]/page_client-reference-manifest.js +1 -0
  118. package/app/.next-pack/server/app/design-system/components/page.js +2 -0
  119. package/app/.next-pack/server/app/design-system/components/page.js.nft.json +1 -0
  120. package/app/.next-pack/server/app/design-system/components/page_client-reference-manifest.js +1 -0
  121. package/app/.next-pack/server/app/design-system/directions/page.js +2 -0
  122. package/app/.next-pack/server/app/design-system/directions/page.js.nft.json +1 -0
  123. package/app/.next-pack/server/app/design-system/directions/page_client-reference-manifest.js +1 -0
  124. package/app/.next-pack/server/app/design-system/directions.html +1 -0
  125. package/app/.next-pack/server/app/design-system/directions.meta +7 -0
  126. package/app/.next-pack/server/app/design-system/directions.rsc +30 -0
  127. package/app/.next-pack/server/app/design-system/page.js +2 -0
  128. package/app/.next-pack/server/app/design-system/page.js.nft.json +1 -0
  129. package/app/.next-pack/server/app/design-system/page_client-reference-manifest.js +1 -0
  130. package/app/.next-pack/server/app/icon/route.js +1 -0
  131. package/app/.next-pack/server/app/icon/route.js.nft.json +1 -0
  132. package/app/.next-pack/server/app/icon/route_client-reference-manifest.js +1 -0
  133. package/app/.next-pack/server/app/icon.body +0 -0
  134. package/app/.next-pack/server/app/icon.meta +1 -0
  135. package/app/.next-pack/server/app/lab/attention/page.js +2 -0
  136. package/app/.next-pack/server/app/lab/attention/page.js.nft.json +1 -0
  137. package/app/.next-pack/server/app/lab/attention/page_client-reference-manifest.js +1 -0
  138. package/app/.next-pack/server/app/lab/attention.html +1 -0
  139. package/app/.next-pack/server/app/lab/attention.meta +7 -0
  140. package/app/.next-pack/server/app/lab/attention.rsc +30 -0
  141. package/app/.next-pack/server/app/lab/design-system/page.js +2 -0
  142. package/app/.next-pack/server/app/lab/design-system/page.js.nft.json +1 -0
  143. package/app/.next-pack/server/app/lab/design-system/page_client-reference-manifest.js +1 -0
  144. package/app/.next-pack/server/app/lab/home/page.js +2 -0
  145. package/app/.next-pack/server/app/lab/home/page.js.nft.json +1 -0
  146. package/app/.next-pack/server/app/lab/home/page_client-reference-manifest.js +1 -0
  147. package/app/.next-pack/server/app/lab/home.html +1 -0
  148. package/app/.next-pack/server/app/lab/home.meta +7 -0
  149. package/app/.next-pack/server/app/lab/home.rsc +30 -0
  150. package/app/.next-pack/server/app/lab/island/page.js +2 -0
  151. package/app/.next-pack/server/app/lab/island/page.js.nft.json +1 -0
  152. package/app/.next-pack/server/app/lab/island/page_client-reference-manifest.js +1 -0
  153. package/app/.next-pack/server/app/lab/island.html +1 -0
  154. package/app/.next-pack/server/app/lab/island.meta +7 -0
  155. package/app/.next-pack/server/app/lab/island.rsc +30 -0
  156. package/app/.next-pack/server/app/lab/kit/page.js +2 -0
  157. package/app/.next-pack/server/app/lab/kit/page.js.nft.json +1 -0
  158. package/app/.next-pack/server/app/lab/kit/page_client-reference-manifest.js +1 -0
  159. package/app/.next-pack/server/app/lab/kit.html +1 -0
  160. package/app/.next-pack/server/app/lab/kit.meta +7 -0
  161. package/app/.next-pack/server/app/lab/kit.rsc +30 -0
  162. package/app/.next-pack/server/app/lab/page.js +2 -0
  163. package/app/.next-pack/server/app/lab/page.js.nft.json +1 -0
  164. package/app/.next-pack/server/app/lab/page_client-reference-manifest.js +1 -0
  165. package/app/.next-pack/server/app/lab/skills/page.js +2 -0
  166. package/app/.next-pack/server/app/lab/skills/page.js.nft.json +1 -0
  167. package/app/.next-pack/server/app/lab/skills/page_client-reference-manifest.js +1 -0
  168. package/app/.next-pack/server/app/lab/studio/page.js +2 -0
  169. package/app/.next-pack/server/app/lab/studio/page.js.nft.json +1 -0
  170. package/app/.next-pack/server/app/lab/studio/page_client-reference-manifest.js +1 -0
  171. package/app/.next-pack/server/app/lab/studio.html +1 -0
  172. package/app/.next-pack/server/app/lab/studio.meta +7 -0
  173. package/app/.next-pack/server/app/lab/studio.rsc +30 -0
  174. package/app/.next-pack/server/app/lab.html +1 -0
  175. package/app/.next-pack/server/app/lab.meta +7 -0
  176. package/app/.next-pack/server/app/lab.rsc +30 -0
  177. package/app/.next-pack/server/app/manifest.webmanifest/route.js +16 -0
  178. package/app/.next-pack/server/app/manifest.webmanifest/route.js.nft.json +1 -0
  179. package/app/.next-pack/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -0
  180. package/app/.next-pack/server/app/manifest.webmanifest.body +1 -0
  181. package/app/.next-pack/server/app/manifest.webmanifest.meta +1 -0
  182. package/app/.next-pack/server/app/mcp/route.js +16 -0
  183. package/app/.next-pack/server/app/mcp/route.js.nft.json +1 -0
  184. package/app/.next-pack/server/app/mcp/route_client-reference-manifest.js +1 -0
  185. package/app/.next-pack/server/app/p/[slug]/autonomy/page.js +2 -0
  186. package/app/.next-pack/server/app/p/[slug]/autonomy/page.js.nft.json +1 -0
  187. package/app/.next-pack/server/app/p/[slug]/autonomy/page_client-reference-manifest.js +1 -0
  188. package/app/.next-pack/server/app/p/[slug]/brief/page.js +2 -0
  189. package/app/.next-pack/server/app/p/[slug]/brief/page.js.nft.json +1 -0
  190. package/app/.next-pack/server/app/p/[slug]/brief/page_client-reference-manifest.js +1 -0
  191. package/app/.next-pack/server/app/p/[slug]/crit/[screen]/page.js +2 -0
  192. package/app/.next-pack/server/app/p/[slug]/crit/[screen]/page.js.nft.json +1 -0
  193. package/app/.next-pack/server/app/p/[slug]/crit/[screen]/page_client-reference-manifest.js +1 -0
  194. package/app/.next-pack/server/app/p/[slug]/design-system/new/page.js +2 -0
  195. package/app/.next-pack/server/app/p/[slug]/design-system/new/page.js.nft.json +1 -0
  196. package/app/.next-pack/server/app/p/[slug]/design-system/new/page_client-reference-manifest.js +1 -0
  197. package/app/.next-pack/server/app/p/[slug]/design-system/page.js +2 -0
  198. package/app/.next-pack/server/app/p/[slug]/design-system/page.js.nft.json +1 -0
  199. package/app/.next-pack/server/app/p/[slug]/design-system/page_client-reference-manifest.js +1 -0
  200. package/app/.next-pack/server/app/p/[slug]/notes/page.js +2 -0
  201. package/app/.next-pack/server/app/p/[slug]/notes/page.js.nft.json +1 -0
  202. package/app/.next-pack/server/app/p/[slug]/notes/page_client-reference-manifest.js +1 -0
  203. package/app/.next-pack/server/app/p/[slug]/page.js +2 -0
  204. package/app/.next-pack/server/app/p/[slug]/page.js.nft.json +1 -0
  205. package/app/.next-pack/server/app/p/[slug]/page_client-reference-manifest.js +1 -0
  206. package/app/.next-pack/server/app/p/[slug]/plan/page.js +2 -0
  207. package/app/.next-pack/server/app/p/[slug]/plan/page.js.nft.json +1 -0
  208. package/app/.next-pack/server/app/p/[slug]/plan/page_client-reference-manifest.js +1 -0
  209. package/app/.next-pack/server/app/p/habit-tracker.html +1 -0
  210. package/app/.next-pack/server/app/p/habit-tracker.meta +7 -0
  211. package/app/.next-pack/server/app/p/habit-tracker.rsc +29 -0
  212. package/app/.next-pack/server/app/p/ledger.html +1 -0
  213. package/app/.next-pack/server/app/p/ledger.meta +7 -0
  214. package/app/.next-pack/server/app/p/ledger.rsc +29 -0
  215. package/app/.next-pack/server/app/p/portfolio-site.html +1 -0
  216. package/app/.next-pack/server/app/p/portfolio-site.meta +7 -0
  217. package/app/.next-pack/server/app/p/portfolio-site.rsc +29 -0
  218. package/app/.next-pack/server/app/page.js +2 -0
  219. package/app/.next-pack/server/app/page.js.nft.json +1 -0
  220. package/app/.next-pack/server/app/page_client-reference-manifest.js +1 -0
  221. package/app/.next-pack/server/app/playground-variants/activity/changes/page.js +2 -0
  222. package/app/.next-pack/server/app/playground-variants/activity/changes/page.js.nft.json +1 -0
  223. package/app/.next-pack/server/app/playground-variants/activity/changes/page_client-reference-manifest.js +1 -0
  224. package/app/.next-pack/server/app/playground-variants/activity/fixes/page.js +2 -0
  225. package/app/.next-pack/server/app/playground-variants/activity/fixes/page.js.nft.json +1 -0
  226. package/app/.next-pack/server/app/playground-variants/activity/fixes/page_client-reference-manifest.js +1 -0
  227. package/app/.next-pack/server/app/playground-variants/activity/fixes.html +1 -0
  228. package/app/.next-pack/server/app/playground-variants/activity/fixes.meta +9 -0
  229. package/app/.next-pack/server/app/playground-variants/activity/fixes.rsc +28 -0
  230. package/app/.next-pack/server/app/playground-variants/activity/log/page.js +2 -0
  231. package/app/.next-pack/server/app/playground-variants/activity/log/page.js.nft.json +1 -0
  232. package/app/.next-pack/server/app/playground-variants/activity/log/page_client-reference-manifest.js +1 -0
  233. package/app/.next-pack/server/app/playground-variants/activity/sessions/page.js +2 -0
  234. package/app/.next-pack/server/app/playground-variants/activity/sessions/page.js.nft.json +1 -0
  235. package/app/.next-pack/server/app/playground-variants/activity/sessions/page_client-reference-manifest.js +1 -0
  236. package/app/.next-pack/server/app/playground-variants/brain/fixes/page.js +2 -0
  237. package/app/.next-pack/server/app/playground-variants/brain/fixes/page.js.nft.json +1 -0
  238. package/app/.next-pack/server/app/playground-variants/brain/fixes/page_client-reference-manifest.js +1 -0
  239. package/app/.next-pack/server/app/playground-variants/brain/fixes.html +1 -0
  240. package/app/.next-pack/server/app/playground-variants/brain/fixes.meta +9 -0
  241. package/app/.next-pack/server/app/playground-variants/brain/fixes.rsc +28 -0
  242. package/app/.next-pack/server/app/playground-variants/brain/library/page.js +2 -0
  243. package/app/.next-pack/server/app/playground-variants/brain/library/page.js.nft.json +1 -0
  244. package/app/.next-pack/server/app/playground-variants/brain/library/page_client-reference-manifest.js +1 -0
  245. package/app/.next-pack/server/app/playground-variants/brain/timeline/page.js +2 -0
  246. package/app/.next-pack/server/app/playground-variants/brain/timeline/page.js.nft.json +1 -0
  247. package/app/.next-pack/server/app/playground-variants/brain/timeline/page_client-reference-manifest.js +1 -0
  248. package/app/.next-pack/server/app/playground-variants/connection/apps/page.js +2 -0
  249. package/app/.next-pack/server/app/playground-variants/connection/apps/page.js.nft.json +1 -0
  250. package/app/.next-pack/server/app/playground-variants/connection/apps/page_client-reference-manifest.js +1 -0
  251. package/app/.next-pack/server/app/playground-variants/connection/fixes/page.js +2 -0
  252. package/app/.next-pack/server/app/playground-variants/connection/fixes/page.js.nft.json +1 -0
  253. package/app/.next-pack/server/app/playground-variants/connection/fixes/page_client-reference-manifest.js +1 -0
  254. package/app/.next-pack/server/app/playground-variants/connection/proof/page.js +2 -0
  255. package/app/.next-pack/server/app/playground-variants/connection/proof/page.js.nft.json +1 -0
  256. package/app/.next-pack/server/app/playground-variants/connection/proof/page_client-reference-manifest.js +1 -0
  257. package/app/.next-pack/server/app/playground-variants/design-system/list/components/page.js +2 -0
  258. package/app/.next-pack/server/app/playground-variants/design-system/list/components/page.js.nft.json +1 -0
  259. package/app/.next-pack/server/app/playground-variants/design-system/list/components/page_client-reference-manifest.js +1 -0
  260. package/app/.next-pack/server/app/playground-variants/design-system/list/page.js +2 -0
  261. package/app/.next-pack/server/app/playground-variants/design-system/list/page.js.nft.json +1 -0
  262. package/app/.next-pack/server/app/playground-variants/design-system/list/page_client-reference-manifest.js +1 -0
  263. package/app/.next-pack/server/app/playground-variants/design-system/on-the-work/page.js +2 -0
  264. package/app/.next-pack/server/app/playground-variants/design-system/on-the-work/page.js.nft.json +1 -0
  265. package/app/.next-pack/server/app/playground-variants/design-system/on-the-work/page_client-reference-manifest.js +1 -0
  266. package/app/.next-pack/server/app/playground-variants/design-system/side-by-side/page.js +2 -0
  267. package/app/.next-pack/server/app/playground-variants/design-system/side-by-side/page.js.nft.json +1 -0
  268. package/app/.next-pack/server/app/playground-variants/design-system/side-by-side/page_client-reference-manifest.js +1 -0
  269. package/app/.next-pack/server/app/playground-variants/design-system/specimen/page.js +2 -0
  270. package/app/.next-pack/server/app/playground-variants/design-system/specimen/page.js.nft.json +1 -0
  271. package/app/.next-pack/server/app/playground-variants/design-system/specimen/page_client-reference-manifest.js +1 -0
  272. package/app/.next-pack/server/app/playground-variants/home/fixes/page.js +2 -0
  273. package/app/.next-pack/server/app/playground-variants/home/fixes/page.js.nft.json +1 -0
  274. package/app/.next-pack/server/app/playground-variants/home/fixes/page_client-reference-manifest.js +1 -0
  275. package/app/.next-pack/server/app/playground-variants/home/left-off/page.js +2 -0
  276. package/app/.next-pack/server/app/playground-variants/home/left-off/page.js.nft.json +1 -0
  277. package/app/.next-pack/server/app/playground-variants/home/left-off/page_client-reference-manifest.js +1 -0
  278. package/app/.next-pack/server/app/playground-variants/home/needs-you/page.js +2 -0
  279. package/app/.next-pack/server/app/playground-variants/home/needs-you/page.js.nft.json +1 -0
  280. package/app/.next-pack/server/app/playground-variants/home/needs-you/page_client-reference-manifest.js +1 -0
  281. package/app/.next-pack/server/app/playground-variants/home/paper/page.js +2 -0
  282. package/app/.next-pack/server/app/playground-variants/home/paper/page.js.nft.json +1 -0
  283. package/app/.next-pack/server/app/playground-variants/home/paper/page_client-reference-manifest.js +1 -0
  284. package/app/.next-pack/server/app/playground-variants/island/fixes/page.js +2 -0
  285. package/app/.next-pack/server/app/playground-variants/island/fixes/page.js.nft.json +1 -0
  286. package/app/.next-pack/server/app/playground-variants/island/fixes/page_client-reference-manifest.js +1 -0
  287. package/app/.next-pack/server/app/playground-variants/island/prompt/page.js +2 -0
  288. package/app/.next-pack/server/app/playground-variants/island/prompt/page.js.nft.json +1 -0
  289. package/app/.next-pack/server/app/playground-variants/island/prompt/page_client-reference-manifest.js +1 -0
  290. package/app/.next-pack/server/app/playground-variants/island/question/page.js +2 -0
  291. package/app/.next-pack/server/app/playground-variants/island/question/page.js.nft.json +1 -0
  292. package/app/.next-pack/server/app/playground-variants/island/question/page_client-reference-manifest.js +1 -0
  293. package/app/.next-pack/server/app/playground-variants/island/steady-mark/page.js +2 -0
  294. package/app/.next-pack/server/app/playground-variants/island/steady-mark/page.js.nft.json +1 -0
  295. package/app/.next-pack/server/app/playground-variants/island/steady-mark/page_client-reference-manifest.js +1 -0
  296. package/app/.next-pack/server/app/playground-variants/new-brief/axes/page.js +3 -0
  297. package/app/.next-pack/server/app/playground-variants/new-brief/axes/page.js.nft.json +1 -0
  298. package/app/.next-pack/server/app/playground-variants/new-brief/axes/page_client-reference-manifest.js +1 -0
  299. package/app/.next-pack/server/app/playground-variants/new-brief/from-screens/page.js +4 -0
  300. package/app/.next-pack/server/app/playground-variants/new-brief/from-screens/page.js.nft.json +1 -0
  301. package/app/.next-pack/server/app/playground-variants/new-brief/from-screens/page_client-reference-manifest.js +1 -0
  302. package/app/.next-pack/server/app/playground-variants/new-brief/in-the-plan/page.js +3 -0
  303. package/app/.next-pack/server/app/playground-variants/new-brief/in-the-plan/page.js.nft.json +1 -0
  304. package/app/.next-pack/server/app/playground-variants/new-brief/in-the-plan/page_client-reference-manifest.js +1 -0
  305. package/app/.next-pack/server/app/playground-variants/new-brief/plan-part/page.js +5 -0
  306. package/app/.next-pack/server/app/playground-variants/new-brief/plan-part/page.js.nft.json +1 -0
  307. package/app/.next-pack/server/app/playground-variants/new-brief/plan-part/page_client-reference-manifest.js +1 -0
  308. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes/page.js +2 -0
  309. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes/page.js.nft.json +1 -0
  310. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes/page_client-reference-manifest.js +1 -0
  311. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes.html +1 -0
  312. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes.meta +9 -0
  313. package/app/.next-pack/server/app/playground-variants/new-design-system/fixes.rsc +30 -0
  314. package/app/.next-pack/server/app/playground-variants/new-design-system/from-the-screens/page.js +2 -0
  315. package/app/.next-pack/server/app/playground-variants/new-design-system/from-the-screens/page.js.nft.json +1 -0
  316. package/app/.next-pack/server/app/playground-variants/new-design-system/from-the-screens/page_client-reference-manifest.js +1 -0
  317. package/app/.next-pack/server/app/playground-variants/new-design-system/one-sheet/page.js +2 -0
  318. package/app/.next-pack/server/app/playground-variants/new-design-system/one-sheet/page.js.nft.json +1 -0
  319. package/app/.next-pack/server/app/playground-variants/new-design-system/one-sheet/page_client-reference-manifest.js +1 -0
  320. package/app/.next-pack/server/app/playground-variants/notes/fixes/page.js +2 -0
  321. package/app/.next-pack/server/app/playground-variants/notes/fixes/page.js.nft.json +1 -0
  322. package/app/.next-pack/server/app/playground-variants/notes/fixes/page_client-reference-manifest.js +1 -0
  323. package/app/.next-pack/server/app/playground-variants/notes/inbox/page.js +2 -0
  324. package/app/.next-pack/server/app/playground-variants/notes/inbox/page.js.nft.json +1 -0
  325. package/app/.next-pack/server/app/playground-variants/notes/inbox/page_client-reference-manifest.js +1 -0
  326. package/app/.next-pack/server/app/playground-variants/notes/wall/page.js +2 -0
  327. package/app/.next-pack/server/app/playground-variants/notes/wall/page.js.nft.json +1 -0
  328. package/app/.next-pack/server/app/playground-variants/notes/wall/page_client-reference-manifest.js +1 -0
  329. package/app/.next-pack/server/app/playground-variants/project/fixes/page.js +2 -0
  330. package/app/.next-pack/server/app/playground-variants/project/fixes/page.js.nft.json +1 -0
  331. package/app/.next-pack/server/app/playground-variants/project/fixes/page_client-reference-manifest.js +1 -0
  332. package/app/.next-pack/server/app/playground-variants/project-design-system/on-the-product/page.js +2 -0
  333. package/app/.next-pack/server/app/playground-variants/project-design-system/on-the-product/page.js.nft.json +1 -0
  334. package/app/.next-pack/server/app/playground-variants/project-design-system/on-the-product/page_client-reference-manifest.js +1 -0
  335. package/app/.next-pack/server/app/playground-variants/project-design-system/specimen/page.js +2 -0
  336. package/app/.next-pack/server/app/playground-variants/project-design-system/specimen/page.js.nft.json +1 -0
  337. package/app/.next-pack/server/app/playground-variants/project-design-system/specimen/page_client-reference-manifest.js +1 -0
  338. package/app/.next-pack/server/app/playground-variants/project-design-system/variables/page.js +2 -0
  339. package/app/.next-pack/server/app/playground-variants/project-design-system/variables/page.js.nft.json +1 -0
  340. package/app/.next-pack/server/app/playground-variants/project-design-system/variables/page_client-reference-manifest.js +1 -0
  341. package/app/.next-pack/server/app/playground-variants/project-flows/app-map/page.js +2 -0
  342. package/app/.next-pack/server/app/playground-variants/project-flows/app-map/page.js.nft.json +1 -0
  343. package/app/.next-pack/server/app/playground-variants/project-flows/app-map/page_client-reference-manifest.js +1 -0
  344. package/app/.next-pack/server/app/playground-variants/project-flows/by-flow/page.js +2 -0
  345. package/app/.next-pack/server/app/playground-variants/project-flows/by-flow/page.js.nft.json +1 -0
  346. package/app/.next-pack/server/app/playground-variants/project-flows/by-flow/page_client-reference-manifest.js +1 -0
  347. package/app/.next-pack/server/app/playground-variants/project-flows/by-place/page.js +2 -0
  348. package/app/.next-pack/server/app/playground-variants/project-flows/by-place/page.js.nft.json +1 -0
  349. package/app/.next-pack/server/app/playground-variants/project-flows/by-place/page_client-reference-manifest.js +1 -0
  350. package/app/.next-pack/server/app/playground-variants/project-flows/fixes/page.js +2 -0
  351. package/app/.next-pack/server/app/playground-variants/project-flows/fixes/page.js.nft.json +1 -0
  352. package/app/.next-pack/server/app/playground-variants/project-flows/fixes/page_client-reference-manifest.js +1 -0
  353. package/app/.next-pack/server/app/playground-variants/project-plan/board/page.js +2 -0
  354. package/app/.next-pack/server/app/playground-variants/project-plan/board/page.js.nft.json +1 -0
  355. package/app/.next-pack/server/app/playground-variants/project-plan/board/page_client-reference-manifest.js +1 -0
  356. package/app/.next-pack/server/app/playground-variants/project-plan/document/page.js +2 -0
  357. package/app/.next-pack/server/app/playground-variants/project-plan/document/page.js.nft.json +1 -0
  358. package/app/.next-pack/server/app/playground-variants/project-plan/document/page_client-reference-manifest.js +1 -0
  359. package/app/.next-pack/server/app/playground-variants/project-plan/fixes/page.js +2 -0
  360. package/app/.next-pack/server/app/playground-variants/project-plan/fixes/page.js.nft.json +1 -0
  361. package/app/.next-pack/server/app/playground-variants/project-plan/fixes/page_client-reference-manifest.js +1 -0
  362. package/app/.next-pack/server/app/playground-variants/project-plan/timeline/page.js +2 -0
  363. package/app/.next-pack/server/app/playground-variants/project-plan/timeline/page.js.nft.json +1 -0
  364. package/app/.next-pack/server/app/playground-variants/project-plan/timeline/page_client-reference-manifest.js +1 -0
  365. package/app/.next-pack/server/app/playground-variants/project-variants/fixes/page.js +2 -0
  366. package/app/.next-pack/server/app/playground-variants/project-variants/fixes/page.js.nft.json +1 -0
  367. package/app/.next-pack/server/app/playground-variants/project-variants/fixes/page_client-reference-manifest.js +1 -0
  368. package/app/.next-pack/server/app/playground-variants/skill/asks/page.js +6 -0
  369. package/app/.next-pack/server/app/playground-variants/skill/asks/page.js.nft.json +1 -0
  370. package/app/.next-pack/server/app/playground-variants/skill/asks/page_client-reference-manifest.js +1 -0
  371. package/app/.next-pack/server/app/playground-variants/skill/cards/page.js +6 -0
  372. package/app/.next-pack/server/app/playground-variants/skill/cards/page.js.nft.json +1 -0
  373. package/app/.next-pack/server/app/playground-variants/skill/cards/page_client-reference-manifest.js +1 -0
  374. package/app/.next-pack/server/app/playground-variants/skills/beside/page.js +2 -0
  375. package/app/.next-pack/server/app/playground-variants/skills/beside/page.js.nft.json +1 -0
  376. package/app/.next-pack/server/app/playground-variants/skills/beside/page_client-reference-manifest.js +1 -0
  377. package/app/.next-pack/server/app/playground-variants/skills/filter/page.js +2 -0
  378. package/app/.next-pack/server/app/playground-variants/skills/filter/page.js.nft.json +1 -0
  379. package/app/.next-pack/server/app/playground-variants/skills/filter/page_client-reference-manifest.js +1 -0
  380. package/app/.next-pack/server/app/playground-variants/skills/layers/page.js +2 -0
  381. package/app/.next-pack/server/app/playground-variants/skills/layers/page.js.nft.json +1 -0
  382. package/app/.next-pack/server/app/playground-variants/skills/layers/page_client-reference-manifest.js +1 -0
  383. package/app/.next-pack/server/app/playground-variants/skills/ledger/page.js +2 -0
  384. package/app/.next-pack/server/app/playground-variants/skills/ledger/page.js.nft.json +1 -0
  385. package/app/.next-pack/server/app/playground-variants/skills/ledger/page_client-reference-manifest.js +1 -0
  386. package/app/.next-pack/server/app/playground-variants/skills/map/page.js +2 -0
  387. package/app/.next-pack/server/app/playground-variants/skills/map/page.js.nft.json +1 -0
  388. package/app/.next-pack/server/app/playground-variants/skills/map/page_client-reference-manifest.js +1 -0
  389. package/app/.next-pack/server/app/playground-variants/skills/one-group/page.js +2 -0
  390. package/app/.next-pack/server/app/playground-variants/skills/one-group/page.js.nft.json +1 -0
  391. package/app/.next-pack/server/app/playground-variants/skills/one-group/page_client-reference-manifest.js +1 -0
  392. package/app/.next-pack/server/app/playground-variants/skills/rail/page.js +2 -0
  393. package/app/.next-pack/server/app/playground-variants/skills/rail/page.js.nft.json +1 -0
  394. package/app/.next-pack/server/app/playground-variants/skills/rail/page_client-reference-manifest.js +1 -0
  395. package/app/.next-pack/server/app/render/markup/page.js +2 -0
  396. package/app/.next-pack/server/app/render/markup/page.js.nft.json +1 -0
  397. package/app/.next-pack/server/app/render/markup/page_client-reference-manifest.js +1 -0
  398. package/app/.next-pack/server/app/s/[slug]/[id]/page.js +2 -0
  399. package/app/.next-pack/server/app/s/[slug]/[id]/page.js.nft.json +1 -0
  400. package/app/.next-pack/server/app/s/[slug]/[id]/page_client-reference-manifest.js +1 -0
  401. package/app/.next-pack/server/app/skills/[name]/page.js +2 -0
  402. package/app/.next-pack/server/app/skills/[name]/page.js.nft.json +1 -0
  403. package/app/.next-pack/server/app/skills/[name]/page_client-reference-manifest.js +1 -0
  404. package/app/.next-pack/server/app/skills/[name]/references/[file]/page.js +2 -0
  405. package/app/.next-pack/server/app/skills/[name]/references/[file]/page.js.nft.json +1 -0
  406. package/app/.next-pack/server/app/skills/[name]/references/[file]/page_client-reference-manifest.js +1 -0
  407. package/app/.next-pack/server/app/skills/page.js +2 -0
  408. package/app/.next-pack/server/app/skills/page.js.nft.json +1 -0
  409. package/app/.next-pack/server/app/skills/page_client-reference-manifest.js +1 -0
  410. package/app/.next-pack/server/app-paths-manifest.json +118 -0
  411. package/app/.next-pack/server/chunks/1152.js +1 -0
  412. package/app/.next-pack/server/chunks/1559.js +1 -0
  413. package/app/.next-pack/server/chunks/1692.js +1 -0
  414. package/app/.next-pack/server/chunks/1923.js +1 -0
  415. package/app/.next-pack/server/chunks/225.js +9 -0
  416. package/app/.next-pack/server/chunks/2325.js +1 -0
  417. package/app/.next-pack/server/chunks/2585.js +1 -0
  418. package/app/.next-pack/server/chunks/2617.js +1 -0
  419. package/app/.next-pack/server/chunks/2667.js +5 -0
  420. package/app/.next-pack/server/chunks/2841.js +1 -0
  421. package/app/.next-pack/server/chunks/2844.js +1 -0
  422. package/app/.next-pack/server/chunks/2894.js +1 -0
  423. package/app/.next-pack/server/chunks/2935.js +8 -0
  424. package/app/.next-pack/server/chunks/323.js +1 -0
  425. package/app/.next-pack/server/chunks/3381.js +8 -0
  426. package/app/.next-pack/server/chunks/344.js +5 -0
  427. package/app/.next-pack/server/chunks/3515.js +45 -0
  428. package/app/.next-pack/server/chunks/4215.js +133 -0
  429. package/app/.next-pack/server/chunks/458.js +1 -0
  430. package/app/.next-pack/server/chunks/4874.js +1 -0
  431. package/app/.next-pack/server/chunks/4903.js +3 -0
  432. package/app/.next-pack/server/chunks/5442.js +3 -0
  433. package/app/.next-pack/server/chunks/5548.js +111 -0
  434. package/app/.next-pack/server/chunks/5611.js +6 -0
  435. package/app/.next-pack/server/chunks/5646.js +1 -0
  436. package/app/.next-pack/server/chunks/5797.js +17 -0
  437. package/app/.next-pack/server/chunks/5816.js +1 -0
  438. package/app/.next-pack/server/chunks/5873.js +22 -0
  439. package/app/.next-pack/server/chunks/5905.js +1 -0
  440. package/app/.next-pack/server/chunks/5997.js +1 -0
  441. package/app/.next-pack/server/chunks/6261.js +3 -0
  442. package/app/.next-pack/server/chunks/6282.js +2 -0
  443. package/app/.next-pack/server/chunks/6795.js +1 -0
  444. package/app/.next-pack/server/chunks/6802.js +1 -0
  445. package/app/.next-pack/server/chunks/6823.js +1 -0
  446. package/app/.next-pack/server/chunks/8373.js +1 -0
  447. package/app/.next-pack/server/chunks/934.js +1 -0
  448. package/app/.next-pack/server/chunks/9987.js +1 -0
  449. package/app/.next-pack/server/chunks/9997.js +1 -0
  450. package/app/.next-pack/server/functions-config-manifest.json +30 -0
  451. package/app/.next-pack/server/middleware-build-manifest.js +1 -0
  452. package/app/.next-pack/server/middleware-manifest.json +6 -0
  453. package/app/.next-pack/server/middleware-react-loadable-manifest.js +1 -0
  454. package/app/.next-pack/server/next-font-manifest.js +1 -0
  455. package/app/.next-pack/server/next-font-manifest.json +1 -0
  456. package/app/.next-pack/server/pages/404.html +1 -0
  457. package/app/.next-pack/server/pages/500.html +1 -0
  458. package/app/.next-pack/server/pages/_app.js +1 -0
  459. package/app/.next-pack/server/pages/_app.js.nft.json +1 -0
  460. package/app/.next-pack/server/pages/_document.js +1 -0
  461. package/app/.next-pack/server/pages/_document.js.nft.json +1 -0
  462. package/app/.next-pack/server/pages/_error.js +19 -0
  463. package/app/.next-pack/server/pages/_error.js.nft.json +1 -0
  464. package/app/.next-pack/server/pages-manifest.json +6 -0
  465. package/app/.next-pack/server/server-reference-manifest.js +1 -0
  466. package/app/.next-pack/server/server-reference-manifest.json +1 -0
  467. package/app/.next-pack/server/webpack-runtime.js +1 -0
  468. package/app/.next-pack/static/chunks/1255-ab54a41c275880be.js +1 -0
  469. package/app/.next-pack/static/chunks/1620-3887f0a9bb6a6e52.js +1 -0
  470. package/app/.next-pack/static/chunks/2201-5a213ff898336baf.js +1 -0
  471. package/app/.next-pack/static/chunks/2357-8b5189e2265ea7c4.js +1 -0
  472. package/app/.next-pack/static/chunks/2383-15b938c92ef9f24f.js +1 -0
  473. package/app/.next-pack/static/chunks/2442-f2b612920f2deb45.js +1 -0
  474. package/app/.next-pack/static/chunks/2548-0ad3197772c64140.js +1 -0
  475. package/app/.next-pack/static/chunks/2619-04bc32f026a0d946.js +1 -0
  476. package/app/.next-pack/static/chunks/280-469df9888da704bc.js +1 -0
  477. package/app/.next-pack/static/chunks/3078-801925ff2259373c.js +1 -0
  478. package/app/.next-pack/static/chunks/3390-98fae590141e8a3b.js +91 -0
  479. package/app/.next-pack/static/chunks/3557-e90677d95fe82917.js +1 -0
  480. package/app/.next-pack/static/chunks/3765-1bebbcbea8ec579f.js +1 -0
  481. package/app/.next-pack/static/chunks/3942-ac2b767cb4cb9751.js +1 -0
  482. package/app/.next-pack/static/chunks/3949-343003dd0e44f70f.js +1 -0
  483. package/app/.next-pack/static/chunks/4196-ed534d55a1f082ca.js +1 -0
  484. package/app/.next-pack/static/chunks/4730-982221d491dfcf0a.js +1 -0
  485. package/app/.next-pack/static/chunks/4809-34ea5db9d8dab185.js +1 -0
  486. package/app/.next-pack/static/chunks/4842-6d4d7548082dad08.js +1 -0
  487. package/app/.next-pack/static/chunks/4873-d6eb65b5ee35a87a.js +1 -0
  488. package/app/.next-pack/static/chunks/4bd1b696-100b9d70ed4e49c1.js +1 -0
  489. package/app/.next-pack/static/chunks/5102-0ef1e800cc74f022.js +1 -0
  490. package/app/.next-pack/static/chunks/5384-1a55e5bc7d4e33fb.js +1 -0
  491. package/app/.next-pack/static/chunks/544-2c2ebb6324a65f39.js +1 -0
  492. package/app/.next-pack/static/chunks/5889-d11ac55253a33667.js +1 -0
  493. package/app/.next-pack/static/chunks/645-828e8183bd7c82dc.js +1 -0
  494. package/app/.next-pack/static/chunks/7404-c231d7b91a3bf5a9.js +1 -0
  495. package/app/.next-pack/static/chunks/7842-55c0fbd25977fb87.js +1 -0
  496. package/app/.next-pack/static/chunks/7953-2af792d7552f1019.js +1 -0
  497. package/app/.next-pack/static/chunks/8091-1cee6c2d5782680c.js +1 -0
  498. package/app/.next-pack/static/chunks/82-e26c71e4455eb8b9.js +1 -0
  499. package/app/.next-pack/static/chunks/8319.fc6a501f5c0d3c8c.js +1 -0
  500. package/app/.next-pack/static/chunks/8362-3bb810a059470f8a.js +1 -0
  501. package/app/.next-pack/static/chunks/845-c6fa6c59d6a99441.js +1 -0
  502. package/app/.next-pack/static/chunks/847-c7aea7b1f7c70b1d.js +1 -0
  503. package/app/.next-pack/static/chunks/852-26da3aecd173347f.js +1 -0
  504. package/app/.next-pack/static/chunks/8682-034cc1be61c0d2ae.js +1 -0
  505. package/app/.next-pack/static/chunks/876-4fad7d8e04855203.js +1 -0
  506. package/app/.next-pack/static/chunks/961-301e1bef686168c1.js +1 -0
  507. package/app/.next-pack/static/chunks/9729-7ef7b7cf4d60f7a8.js +1 -0
  508. package/app/.next-pack/static/chunks/9806.ff5dcfd2d1d7b40e.js +1 -0
  509. package/app/.next-pack/static/chunks/9906-611eb95340d24876.js +1 -0
  510. package/app/.next-pack/static/chunks/9979-d899b0f0df05f7c1.js +1 -0
  511. package/app/.next-pack/static/chunks/app/_not-found/page-b9c0e3bfc70d4052.js +1 -0
  512. package/app/.next-pack/static/chunks/app/activity/page-b9c0e3bfc70d4052.js +1 -0
  513. package/app/.next-pack/static/chunks/app/api/activity/route-b9c0e3bfc70d4052.js +1 -0
  514. package/app/.next-pack/static/chunks/app/api/apps/shot/route-b9c0e3bfc70d4052.js +1 -0
  515. package/app/.next-pack/static/chunks/app/api/apps/vshot/route-b9c0e3bfc70d4052.js +1 -0
  516. package/app/.next-pack/static/chunks/app/api/brain/route-b9c0e3bfc70d4052.js +1 -0
  517. package/app/.next-pack/static/chunks/app/api/build/route-b9c0e3bfc70d4052.js +1 -0
  518. package/app/.next-pack/static/chunks/app/api/check/route-b9c0e3bfc70d4052.js +1 -0
  519. package/app/.next-pack/static/chunks/app/api/files/route-b9c0e3bfc70d4052.js +1 -0
  520. package/app/.next-pack/static/chunks/app/api/fonts/[file]/route-b9c0e3bfc70d4052.js +1 -0
  521. package/app/.next-pack/static/chunks/app/api/home/route-b9c0e3bfc70d4052.js +1 -0
  522. package/app/.next-pack/static/chunks/app/api/local/pick-folder/route-b9c0e3bfc70d4052.js +1 -0
  523. package/app/.next-pack/static/chunks/app/api/local/repos/route-b9c0e3bfc70d4052.js +1 -0
  524. package/app/.next-pack/static/chunks/app/api/plan/route-b9c0e3bfc70d4052.js +1 -0
  525. package/app/.next-pack/static/chunks/app/api/projects/route-b9c0e3bfc70d4052.js +1 -0
  526. package/app/.next-pack/static/chunks/app/api/remote/route-b9c0e3bfc70d4052.js +1 -0
  527. package/app/.next-pack/static/chunks/app/api/screens/route-b9c0e3bfc70d4052.js +1 -0
  528. package/app/.next-pack/static/chunks/app/api/skills/route-b9c0e3bfc70d4052.js +1 -0
  529. package/app/.next-pack/static/chunks/app/api/state/ref/route-b9c0e3bfc70d4052.js +1 -0
  530. package/app/.next-pack/static/chunks/app/api/state/route-b9c0e3bfc70d4052.js +1 -0
  531. package/app/.next-pack/static/chunks/app/api/studio/crit/route-b9c0e3bfc70d4052.js +1 -0
  532. package/app/.next-pack/static/chunks/app/api/studio/diff/route-b9c0e3bfc70d4052.js +1 -0
  533. package/app/.next-pack/static/chunks/app/api/studio/html/route-b9c0e3bfc70d4052.js +1 -0
  534. package/app/.next-pack/static/chunks/app/api/studio/project/route-b9c0e3bfc70d4052.js +1 -0
  535. package/app/.next-pack/static/chunks/app/api/studio/route-b9c0e3bfc70d4052.js +1 -0
  536. package/app/.next-pack/static/chunks/app/api/studio/system/route-b9c0e3bfc70d4052.js +1 -0
  537. package/app/.next-pack/static/chunks/app/api/studio/variants/route-b9c0e3bfc70d4052.js +1 -0
  538. package/app/.next-pack/static/chunks/app/api/sync/route-b9c0e3bfc70d4052.js +1 -0
  539. package/app/.next-pack/static/chunks/app/api/themes/route-b9c0e3bfc70d4052.js +1 -0
  540. package/app/.next-pack/static/chunks/app/apple-icon/route-b9c0e3bfc70d4052.js +1 -0
  541. package/app/.next-pack/static/chunks/app/brain/page-6b6852005bdea3a1.js +1 -0
  542. package/app/.next-pack/static/chunks/app/connection/page-43258f5ed455145f.js +1 -0
  543. package/app/.next-pack/static/chunks/app/design-system/[system]/page-c1275b9f70359e35.js +1 -0
  544. package/app/.next-pack/static/chunks/app/design-system/components/page-b9c0e3bfc70d4052.js +1 -0
  545. package/app/.next-pack/static/chunks/app/design-system/directions/page-4ccb9d4cfcc1fe30.js +1 -0
  546. package/app/.next-pack/static/chunks/app/design-system/page-94a983ebbb098181.js +1 -0
  547. package/app/.next-pack/static/chunks/app/icon/route-b9c0e3bfc70d4052.js +1 -0
  548. package/app/.next-pack/static/chunks/app/lab/attention/page-e12e4d982da93f29.js +1 -0
  549. package/app/.next-pack/static/chunks/app/lab/design-system/page-b8fe2adddb384eed.js +1 -0
  550. package/app/.next-pack/static/chunks/app/lab/home/page-45d577dfba161de4.js +1 -0
  551. package/app/.next-pack/static/chunks/app/lab/island/page-fa6c4dfe18ff7da7.js +1 -0
  552. package/app/.next-pack/static/chunks/app/lab/kit/page-3baff477bc1bf93c.js +1 -0
  553. package/app/.next-pack/static/chunks/app/lab/page-2a32d0bfa1b59bf7.js +1 -0
  554. package/app/.next-pack/static/chunks/app/lab/skills/page-b731a885dceda086.js +1 -0
  555. package/app/.next-pack/static/chunks/app/lab/studio/page-3b4662783183cef9.js +1 -0
  556. package/app/.next-pack/static/chunks/app/layout-9fbb82b37fb32065.js +1 -0
  557. package/app/.next-pack/static/chunks/app/manifest.webmanifest/route-b9c0e3bfc70d4052.js +1 -0
  558. package/app/.next-pack/static/chunks/app/mcp/route-b9c0e3bfc70d4052.js +1 -0
  559. package/app/.next-pack/static/chunks/app/not-found-d8dd47e48e08331a.js +1 -0
  560. package/app/.next-pack/static/chunks/app/p/[slug]/autonomy/page-b9c0e3bfc70d4052.js +1 -0
  561. package/app/.next-pack/static/chunks/app/p/[slug]/brief/page-8878cf6d7ce7e81b.js +1 -0
  562. package/app/.next-pack/static/chunks/app/p/[slug]/crit/[screen]/page-b9c0e3bfc70d4052.js +1 -0
  563. package/app/.next-pack/static/chunks/app/p/[slug]/design-system/new/page-4fd6758aa223cbb1.js +1 -0
  564. package/app/.next-pack/static/chunks/app/p/[slug]/design-system/page-e2ec421d3c0883f0.js +1 -0
  565. package/app/.next-pack/static/chunks/app/p/[slug]/notes/page-b9c0e3bfc70d4052.js +1 -0
  566. package/app/.next-pack/static/chunks/app/p/[slug]/page-1f8281f54ea9e2f7.js +1 -0
  567. package/app/.next-pack/static/chunks/app/p/[slug]/plan/page-b9c0e3bfc70d4052.js +1 -0
  568. package/app/.next-pack/static/chunks/app/page-a3eacde957659fcc.js +1 -0
  569. package/app/.next-pack/static/chunks/app/playground-variants/activity/changes/page-ad24825167db1ad6.js +1 -0
  570. package/app/.next-pack/static/chunks/app/playground-variants/activity/fixes/page-b9c0e3bfc70d4052.js +1 -0
  571. package/app/.next-pack/static/chunks/app/playground-variants/activity/log/page-d2c54d65b5fca75b.js +1 -0
  572. package/app/.next-pack/static/chunks/app/playground-variants/activity/sessions/page-637cf612c5e1a92f.js +1 -0
  573. package/app/.next-pack/static/chunks/app/playground-variants/brain/fixes/page-b9c0e3bfc70d4052.js +1 -0
  574. package/app/.next-pack/static/chunks/app/playground-variants/brain/library/page-1662ed6dd3f14880.js +1 -0
  575. package/app/.next-pack/static/chunks/app/playground-variants/brain/timeline/page-800786ff1c915f75.js +1 -0
  576. package/app/.next-pack/static/chunks/app/playground-variants/connection/apps/page-2c79fd0beba4dba8.js +1 -0
  577. package/app/.next-pack/static/chunks/app/playground-variants/connection/fixes/page-43258f5ed455145f.js +1 -0
  578. package/app/.next-pack/static/chunks/app/playground-variants/connection/proof/page-7122c43d0f16735c.js +1 -0
  579. package/app/.next-pack/static/chunks/app/playground-variants/design-system/list/components/page-55f4e2bd2dc125a3.js +1 -0
  580. package/app/.next-pack/static/chunks/app/playground-variants/design-system/list/page-94a983ebbb098181.js +1 -0
  581. package/app/.next-pack/static/chunks/app/playground-variants/design-system/on-the-work/page-2e111523b5d9ab81.js +1 -0
  582. package/app/.next-pack/static/chunks/app/playground-variants/design-system/side-by-side/page-7f671cea75afeea9.js +1 -0
  583. package/app/.next-pack/static/chunks/app/playground-variants/design-system/specimen/page-df2593cd7cfdbc2b.js +1 -0
  584. package/app/.next-pack/static/chunks/app/playground-variants/home/fixes/page-1e450e87af5c0d52.js +1 -0
  585. package/app/.next-pack/static/chunks/app/playground-variants/home/left-off/page-e781b91f325db982.js +1 -0
  586. package/app/.next-pack/static/chunks/app/playground-variants/home/needs-you/page-0f7180e904d86eef.js +1 -0
  587. package/app/.next-pack/static/chunks/app/playground-variants/home/paper/page-8acb063092763fe5.js +1 -0
  588. package/app/.next-pack/static/chunks/app/playground-variants/island/fixes/page-581d3e25adf3c12e.js +1 -0
  589. package/app/.next-pack/static/chunks/app/playground-variants/island/prompt/page-a66fe3d33cdbbf39.js +1 -0
  590. package/app/.next-pack/static/chunks/app/playground-variants/island/question/page-a66fe3d33cdbbf39.js +1 -0
  591. package/app/.next-pack/static/chunks/app/playground-variants/island/steady-mark/page-a66fe3d33cdbbf39.js +1 -0
  592. package/app/.next-pack/static/chunks/app/playground-variants/new-brief/axes/page-bc61d726ebbd3af7.js +1 -0
  593. package/app/.next-pack/static/chunks/app/playground-variants/new-brief/from-screens/page-8652d53131d14db4.js +1 -0
  594. package/app/.next-pack/static/chunks/app/playground-variants/new-brief/in-the-plan/page-66a929a1eccb4b18.js +1 -0
  595. package/app/.next-pack/static/chunks/app/playground-variants/new-brief/plan-part/page-8cf72308466a4440.js +1 -0
  596. package/app/.next-pack/static/chunks/app/playground-variants/new-design-system/fixes/page-b9c0e3bfc70d4052.js +1 -0
  597. package/app/.next-pack/static/chunks/app/playground-variants/new-design-system/from-the-screens/page-a1e122b427b4fa9f.js +1 -0
  598. package/app/.next-pack/static/chunks/app/playground-variants/new-design-system/one-sheet/page-ef569809afacf34e.js +1 -0
  599. package/app/.next-pack/static/chunks/app/playground-variants/notes/fixes/page-b9c0e3bfc70d4052.js +1 -0
  600. package/app/.next-pack/static/chunks/app/playground-variants/notes/inbox/page-06ea9d708f23fc22.js +1 -0
  601. package/app/.next-pack/static/chunks/app/playground-variants/notes/wall/page-236712a946c7c7dc.js +1 -0
  602. package/app/.next-pack/static/chunks/app/playground-variants/project/fixes/page-9870e5167e2c2a69.js +1 -0
  603. package/app/.next-pack/static/chunks/app/playground-variants/project-design-system/on-the-product/page-4cc7c265d589b37c.js +1 -0
  604. package/app/.next-pack/static/chunks/app/playground-variants/project-design-system/specimen/page-a2059f1aa40764ca.js +1 -0
  605. package/app/.next-pack/static/chunks/app/playground-variants/project-design-system/variables/page-b7ec19097a83b2d2.js +1 -0
  606. package/app/.next-pack/static/chunks/app/playground-variants/project-flows/app-map/page-cdb5040040ac2396.js +1 -0
  607. package/app/.next-pack/static/chunks/app/playground-variants/project-flows/by-flow/page-611924afb955fc46.js +1 -0
  608. package/app/.next-pack/static/chunks/app/playground-variants/project-flows/by-place/page-47aa437868f25e15.js +1 -0
  609. package/app/.next-pack/static/chunks/app/playground-variants/project-flows/fixes/page-9870e5167e2c2a69.js +1 -0
  610. package/app/.next-pack/static/chunks/app/playground-variants/project-plan/board/page-b926699ad9dd394a.js +1 -0
  611. package/app/.next-pack/static/chunks/app/playground-variants/project-plan/document/page-a5c5a927e81bc566.js +1 -0
  612. package/app/.next-pack/static/chunks/app/playground-variants/project-plan/fixes/page-9870e5167e2c2a69.js +1 -0
  613. package/app/.next-pack/static/chunks/app/playground-variants/project-plan/timeline/page-91c548a5b9ea9470.js +1 -0
  614. package/app/.next-pack/static/chunks/app/playground-variants/project-variants/fixes/page-9870e5167e2c2a69.js +1 -0
  615. package/app/.next-pack/static/chunks/app/playground-variants/skill/asks/page-37739ab08757a61b.js +1 -0
  616. package/app/.next-pack/static/chunks/app/playground-variants/skill/cards/page-1946096eb0c78dcd.js +1 -0
  617. package/app/.next-pack/static/chunks/app/playground-variants/skills/beside/page-a6a8b6a6cdd3fc82.js +1 -0
  618. package/app/.next-pack/static/chunks/app/playground-variants/skills/filter/page-b97db65ac599c400.js +1 -0
  619. package/app/.next-pack/static/chunks/app/playground-variants/skills/layers/page-2a2223c2c424eaec.js +1 -0
  620. package/app/.next-pack/static/chunks/app/playground-variants/skills/ledger/page-f9ea4f3e7a9a9b2c.js +1 -0
  621. package/app/.next-pack/static/chunks/app/playground-variants/skills/map/page-1522188d2ff0ed12.js +1 -0
  622. package/app/.next-pack/static/chunks/app/playground-variants/skills/one-group/page-0f30a8a91821137e.js +1 -0
  623. package/app/.next-pack/static/chunks/app/playground-variants/skills/rail/page-ab8cb5f524ccb497.js +1 -0
  624. package/app/.next-pack/static/chunks/app/render/markup/page-1c01df57f9e7bbb2.js +1 -0
  625. package/app/.next-pack/static/chunks/app/s/[slug]/[id]/page-c9c8db19304e1c1c.js +1 -0
  626. package/app/.next-pack/static/chunks/app/skills/[name]/page-d9cd4b249d5cf1ec.js +1 -0
  627. package/app/.next-pack/static/chunks/app/skills/[name]/references/[file]/page-927e87440aa54686.js +1 -0
  628. package/app/.next-pack/static/chunks/app/skills/page-21bbe0883616280e.js +1 -0
  629. package/app/.next-pack/static/chunks/framework-e9384f6a6720bcd2.js +1 -0
  630. package/app/.next-pack/static/chunks/main-44487cf0f2c31ffd.js +1 -0
  631. package/app/.next-pack/static/chunks/main-app-7c486aa598a9b17f.js +1 -0
  632. package/app/.next-pack/static/chunks/pages/_app-4b3fb5e477a0267f.js +1 -0
  633. package/app/.next-pack/static/chunks/pages/_error-c970d8b55ace1b48.js +1 -0
  634. package/app/.next-pack/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  635. package/app/.next-pack/static/chunks/webpack-b095dc2d90fb61fb.js +1 -0
  636. package/app/.next-pack/static/css/5bf8691e68650fe3.css +1 -0
  637. package/app/.next-pack/static/css/788a5084e46c64ae.css +1 -0
  638. package/app/.next-pack/static/css/b46042613e375027.css +1 -0
  639. package/app/.next-pack/static/g8RKjz4QqH6jA3z4kwQsG/_buildManifest.js +1 -0
  640. package/app/.next-pack/static/g8RKjz4QqH6jA3z4kwQsG/_ssgManifest.js +1 -0
  641. package/app/.next-pack/static/media/013b72fa676f92e0-s.woff2 +0 -0
  642. package/app/.next-pack/static/media/2204a898abe5c90a-s.woff2 +0 -0
  643. package/app/.next-pack/static/media/2aa7577a895dd046-s.woff2 +0 -0
  644. package/app/.next-pack/static/media/2b5b02fc7e511755-s.woff2 +0 -0
  645. package/app/.next-pack/static/media/65f03d54ccadf4a8-s.woff2 +0 -0
  646. package/app/.next-pack/static/media/7d4881bb7e1bf84d-s.p.woff2 +0 -0
  647. package/app/.next-pack/static/media/Geist-Variable.27834908.woff2 +0 -0
  648. package/app/.next-pack/static/media/Satoshi-Variable.2f4d9bbe.woff2 +0 -0
  649. package/app/.next-pack/static/media/a813b685af4569ea-s.p.woff2 +0 -0
  650. package/app/.next-pack/static/media/b9408752a0c24fb9-s.woff2 +0 -0
  651. package/app/.next-pack/static/media/e038a29029a234f2-s.woff2 +0 -0
  652. package/app/package.json +46 -0
  653. package/app/public/ds-fonts/Geist-OFL.txt +92 -0
  654. package/app/public/ds-fonts/Geist-Variable.woff2 +0 -0
  655. package/app/public/ds-fonts/Satoshi-Variable.woff2 +0 -0
  656. package/app/public/sample/note-settings.png +0 -0
  657. package/app/public/sample/p-DSCF7127.webp +0 -0
  658. package/app/public/sample/p-DSCF7256.webp +0 -0
  659. package/app/public/sample/p-DSCF7337.webp +0 -0
  660. package/app/public/sample/p-DSCF7437.webp +0 -0
  661. package/app/public/sample/p-DSCF7609.webp +0 -0
  662. package/app/public/sample/p-DSCF8088.webp +0 -0
  663. package/app/server.js +38 -0
  664. package/app/vendor/REF +1 -0
  665. package/bin/baseline-playground.mjs +160 -0
  666. package/package.json +24 -4
  667. package/skills/agent-teams/SKILL.md +132 -0
  668. package/skills/agent-teams/references/briefs-and-reports.md +81 -0
  669. package/skills/agent-teams/references/evidence.md +64 -0
  670. package/skills/baseline-taste/SKILL.md +204 -0
  671. package/skills/baseline-taste/references/corrections.md +480 -0
  672. package/skills/baseline-taste/references/look.md +494 -0
  673. package/skills/baseline-taste/references/motion-values.md +187 -0
  674. package/skills/baseline-taste/references/voice.md +118 -0
  675. package/skills/cognition/SKILL.md +259 -0
  676. package/skills/cognition/references/choice-architecture.md +83 -0
  677. package/skills/cognition/references/laws-of-ux.md +153 -0
  678. package/skills/cognition/references/simulation.md +101 -0
  679. package/skills/data-visualization/SKILL.md +200 -0
  680. package/skills/data-visualization/references/bars-and-progress.md +114 -0
  681. package/skills/data-visualization/references/chart-anatomy.md +129 -0
  682. package/skills/data-visualization/references/dashboards-and-reports.md +148 -0
  683. package/skills/data-visualization/references/palette.md +63 -0
  684. package/skills/data-visualization/references/timelines.md +83 -0
  685. package/skills/delivery/SKILL.md +249 -0
  686. package/skills/delivery/references/change-and-rollout.md +127 -0
  687. package/skills/delivery/references/facilitation.md +107 -0
  688. package/skills/delivery/references/plans-and-estimates.md +187 -0
  689. package/skills/delivery/references/product-documents.md +206 -0
  690. package/skills/delivery/references/sessions-and-orchestration.md +167 -0
  691. package/skills/delivery/references/stakeholders.md +146 -0
  692. package/skills/delivery/references/status-and-reports.md +142 -0
  693. package/skills/delivery/references/technical-docs.md +177 -0
  694. package/skills/design-critique/SKILL.md +245 -0
  695. package/skills/design-critique/references/changes-and-lessons.md +89 -0
  696. package/skills/design-critique/references/comparison-and-measuring.md +146 -0
  697. package/skills/design-critique/references/generated-tells.md +47 -0
  698. package/skills/design-critique/references/scoring-and-findings.md +148 -0
  699. package/skills/design-critique/references/states-data-and-access.md +94 -0
  700. package/skills/design-critique/references/walkthrough-and-heuristics.md +91 -0
  701. package/skills/design-exploration/SKILL.md +191 -0
  702. package/skills/design-exploration/references/axes-and-generators.md +312 -0
  703. package/skills/design-exploration/references/boards-and-convergence.md +103 -0
  704. package/skills/design-exploration/references/misses-and-rounds.md +87 -0
  705. package/skills/design-study/SKILL.md +162 -0
  706. package/skills/design-study/references/capture-and-breakdown.md +86 -0
  707. package/skills/design-study/references/synthesis.md +164 -0
  708. package/skills/design-systems/SKILL.md +234 -0
  709. package/skills/design-systems/references/audit-and-gates.md +76 -0
  710. package/skills/design-systems/references/components.md +107 -0
  711. package/skills/design-systems/references/tokens.md +150 -0
  712. package/skills/design-thinking/SKILL.md +216 -0
  713. package/skills/design-thinking/references/canon.md +135 -0
  714. package/skills/design-thinking/references/frames-across-briefs.md +133 -0
  715. package/skills/design-thinking/references/questions-and-pushback.md +114 -0
  716. package/skills/desktop-app-design/SKILL.md +251 -0
  717. package/skills/desktop-app-design/references/native-mockup.md +296 -0
  718. package/skills/desktop-app-design/references/platform-conventions.md +243 -0
  719. package/skills/desktop-app-design/references/window-compositions.md +159 -0
  720. package/skills/experience-design/SKILL.md +252 -0
  721. package/skills/experience-design/references/lists-choices-and-data.md +124 -0
  722. package/skills/experience-design/references/navigation-models.md +74 -0
  723. package/skills/experience-design/references/prototyping.md +84 -0
  724. package/skills/experience-design/references/state-inventory.md +58 -0
  725. package/skills/experience-design/references/walkthrough-and-heuristics.md +83 -0
  726. package/skills/frontend-craft/SKILL.md +293 -0
  727. package/skills/frontend-craft/references/gates.md +50 -0
  728. package/skills/frontend-craft/references/gestures-and-rendering.md +111 -0
  729. package/skills/frontend-craft/references/performance-measuring.md +180 -0
  730. package/skills/frontend-craft/references/performance.md +121 -0
  731. package/skills/frontend-craft/references/semantics-and-focus.md +90 -0
  732. package/skills/frontend-craft/references/state-and-structure.md +101 -0
  733. package/skills/frontend-craft/references/streaming-and-agents.md +70 -0
  734. package/skills/human-agent-interaction/SKILL.md +298 -0
  735. package/skills/human-agent-interaction/references/forms.md +87 -0
  736. package/skills/human-agent-interaction/references/frameworks.md +94 -0
  737. package/skills/human-agent-interaction/references/working-beside-a-person.md +60 -0
  738. package/skills/interaction-design/SKILL.md +269 -0
  739. package/skills/interaction-design/references/choreography.md +86 -0
  740. package/skills/interaction-design/references/feedback-and-waiting.md +71 -0
  741. package/skills/interaction-design/references/gestures.md +104 -0
  742. package/skills/interaction-design/references/measuring-feel.md +81 -0
  743. package/skills/interaction-design/references/springs-and-continuity.md +84 -0
  744. package/skills/ios-design/SKILL.md +241 -0
  745. package/skills/ios-design/references/conventions.md +272 -0
  746. package/skills/ios-design/references/ipad-widgets-live-activities.md +106 -0
  747. package/skills/ios-design/references/platform-measurements.md +438 -0
  748. package/skills/ios-design/references/web-on-phone.md +315 -0
  749. package/skills/ios-design/references/worked-screens.md +277 -0
  750. package/skills/knowledge-base/SKILL.md +225 -0
  751. package/skills/knowledge-base/references/capture-formats.md +81 -0
  752. package/skills/knowledge-base/references/depth-standard.md +98 -0
  753. package/skills/knowledge-base/references/page-templates.md +181 -0
  754. package/skills/marketing-design/SKILL.md +242 -0
  755. package/skills/marketing-design/references/brand-systems.md +79 -0
  756. package/skills/marketing-design/references/demos-and-rotators.md +107 -0
  757. package/skills/marketing-design/references/docs-sites.md +61 -0
  758. package/skills/marketing-design/references/formats.md +128 -0
  759. package/skills/marketing-design/references/line-drawings.md +119 -0
  760. package/skills/marketing-design/references/page-structure.md +177 -0
  761. package/skills/marketing-design/references/proof-and-captures.md +137 -0
  762. package/skills/marketing-design/references/studio-home.md +192 -0
  763. package/skills/perception/SKILL.md +271 -0
  764. package/skills/perception/references/colour-perception.md +111 -0
  765. package/skills/perception/references/measurements.md +136 -0
  766. package/skills/perception/references/seeing.md +95 -0
  767. package/skills/product-strategy/SKILL.md +272 -0
  768. package/skills/product-strategy/references/adoption.md +81 -0
  769. package/skills/product-strategy/references/business-models.md +89 -0
  770. package/skills/product-strategy/references/channels.md +92 -0
  771. package/skills/product-strategy/references/copy-structures.md +145 -0
  772. package/skills/product-strategy/references/decisions.md +136 -0
  773. package/skills/product-strategy/references/launch.md +66 -0
  774. package/skills/product-strategy/references/messaging-and-proof.md +113 -0
  775. package/skills/product-strategy/references/pace-layers.md +78 -0
  776. package/skills/product-strategy/references/positioning.md +103 -0
  777. package/skills/product-strategy/references/pricing.md +84 -0
  778. package/skills/product-strategy/references/prioritization.md +131 -0
  779. package/skills/product-strategy/references/sales-enablement.md +84 -0
  780. package/skills/product-strategy/references/stakeholders.md +116 -0
  781. package/skills/product-strategy/references/strategy-frameworks.md +174 -0
  782. package/skills/research/SKILL.md +210 -0
  783. package/skills/research/references/analyses.md +143 -0
  784. package/skills/research/references/competitive-analysis.md +96 -0
  785. package/skills/research/references/deliverables.md +77 -0
  786. package/skills/research/references/desk-research.md +148 -0
  787. package/skills/research/references/experiments.md +115 -0
  788. package/skills/research/references/interviews-and-usability.md +119 -0
  789. package/skills/research/references/methods.md +100 -0
  790. package/skills/research/references/metrics.md +104 -0
  791. package/skills/research/references/synthesis.md +95 -0
  792. package/skills/skill-building/SKILL.md +201 -0
  793. package/skills/skill-building/references/corrections-to-rules.md +93 -0
  794. package/skills/skill-building/references/evals-and-golden-tasks.md +121 -0
  795. package/skills/skill-building/references/ledger.md +71 -0
  796. package/skills/skill-building/references/standard.md +112 -0
  797. package/skills/spatial-design/SKILL.md +278 -0
  798. package/skills/spatial-design/references/camera-and-input.md +70 -0
  799. package/skills/spatial-design/references/measuring.md +48 -0
  800. package/skills/spatial-design/references/spatial-map.md +78 -0
  801. package/skills/ux-writing/SKILL.md +231 -0
  802. package/skills/ux-writing/references/calibration.md +105 -0
  803. package/skills/ux-writing/references/cut-list.md +89 -0
  804. package/skills/ux-writing/references/interface-copy.md +214 -0
  805. package/skills/ux-writing/references/page-copy.md +112 -0
  806. package/skills/ux-writing/references/positioning-lines.md +101 -0
  807. package/skills/ux-writing/references/voice-examples.md +64 -0
  808. package/skills/ux-writing/references/voice-method.md +113 -0
  809. package/skills/verify-before-done/SKILL.md +111 -0
  810. package/skills/verify-before-done/references/lessons.md +101 -0
  811. package/skills/verify-before-done/references/proof-recipes.md +129 -0
  812. package/skills/visual-design/SKILL.md +308 -0
  813. package/skills/visual-design/references/accessibility.md +160 -0
  814. package/skills/visual-design/references/colour.md +82 -0
  815. package/skills/visual-design/references/components-and-icons.md +99 -0
  816. package/skills/visual-design/references/layout-and-grids.md +107 -0
  817. package/skills/visual-design/references/surfaces-and-depth.md +82 -0
  818. package/skills/visual-design/references/type.md +103 -0
  819. package/skills/visual-design/references/worked-systems.md +126 -0
  820. package/skills/web-app-design/SKILL.md +252 -0
  821. package/skills/web-app-design/references/browser-conventions.md +193 -0
  822. package/skills/web-app-design/references/shell-and-navigation.md +159 -0
  823. package/skills/web-app-design/references/worked-screens.md +136 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=458,exports.ids=[458],exports.modules={60458:(a,b,c)=>{c.d(b,{A7:()=>G,O4:()=>K,hP:()=>H,j2:()=>M,wc:()=>R});var d=c(21124),e=c(38301),f=c(42378),g=c(23312),h=c(2271),i=c(50073),j=c(86389),k=c(67791),l=c(58533),m=c(94980),n=c(87050),o=c(94140),p=c(36224),q=c(25196),r=c(9297),s=c(44103),t=c(95648),u=c(7798),v=c(88786),w=c(31541),x=c(45936),y=c(22585),z=c(41378),A=c(16062),B=c(53391),C=c(97065),D=c(9202),E=c(84385),F=c(44863);let G=a=>{let{w:b,h:c}=t.et[a],d=z.Qe[a];return{w:b+2*d.bezel,h:c+2*d.bezel+d.bar}},H=a=>{let b=new Set(a.map(a=>a.id));return new Map(a.map(a=>[a.id,[...new Set((a.links??[]).filter(c=>b.has(c)&&c!==a.id))]]))},I={l:[-1,0],r:[1,0],t:[0,-1],b:[0,1]},J=a=>"l"===a||"r"===a?"y":"x";function K(a,b){let c=new Map(a.map(a=>[a.key,a])),d=new Map;for(let a of b){let b=c.get(a.a),e=c.get(a.b);if(b&&e)for(let[c,f,g,h]of[["a",b,a.sa,e],["b",e,a.sb,b]]){let b=`${f.key}:${g}`;d.set(b,[...d.get(b)??[],{w:a,end:c,other:h}])}}let e=new Map;for(let[a,b]of d){let[d,f]=a.split(":"),g=c.get(d),h=J(f);b.sort((a,b)=>"y"===h?a.other.y+a.other.h/2-(b.other.y+b.other.h/2):a.other.x+a.other.w/2-(b.other.x+b.other.w/2));let i=("y"===h?g.h:g.w)*Math.min(.6,.18*b.length);b.forEach((a,c)=>{let d=1===b.length?0:(c/(b.length-1)-.5)*i,h="l"===f?g.x:"r"===f?g.x+g.w:g.x+g.w/2+d,j="t"===f?g.y:"b"===f?g.y+g.h:g.y+g.h/2+d;e.set(`${a.w.key}:${a.end}`,{x:h,y:j})})}return b.flatMap(a=>{let b=e.get(`${a.key}:a`),c=e.get(`${a.key}:b`);if(!b||!c)return[];let[d,f]=I[a.sa],[g,h]=I[a.sb],i={x:b.x+d*(a.both?10:2),y:b.y+f*(a.both?10:2)},j={x:c.x+10*g,y:c.y+10*h},k=a.bow??Math.max(80,.4*Math.hypot(j.x-i.x,j.y-i.y)),l={x:i.x+d*k,y:i.y+f*k},m={x:j.x+g*k,y:j.y+h*k},n=[{x:j.x,y:j.y,deg:L(j.x-m.x,j.y-m.y)}];return a.both&&n.push({x:i.x,y:i.y,deg:L(i.x-l.x,i.y-l.y)}),[{key:a.key,a:a.a,b:a.b,d:`M${i.x} ${i.y} C${l.x} ${l.y} ${m.x} ${m.y} ${j.x} ${j.y}`,heads:n,both:!!a.both,flow:a.flow,hidden:a.hidden,missing:a.missing}]})}let L=(a,b)=>180*Math.atan2(b,a)/Math.PI;function M(a,b){let c=b.x+b.w/2-(a.x+a.w/2),d=b.y+b.h/2-(a.y+a.h/2);return 1.6*Math.abs(c)>=Math.abs(d)?c>=0?["r","l"]:["l","r"]:d>=0?["b","t"]:["t","b"]}let N=a=>"blank"!==a.kind&&a.version>0,O={top:72,bottom:96,side:40},P={top:64,bottom:80,side:16};function Q({screen:a,device:b,run:c,using:e}){let{w:f,h:g}=t.et[b],h=z.Qe[b];return(0,d.jsx)("div",{style:{padding:`${h.bezel+h.bar}px ${h.bezel}px ${h.bezel}px`},children:(0,d.jsx)(z.KE,{device:b,box:{w:f,h:g,s:1},children:(0,d.jsx)("div",{className:(0,D.cn)("absolute left-0 top-0",!e&&"pointer-events-none"),style:{width:f,height:g},inert:!e||void 0,children:c&&"html"===a.kind&&a.src&&(a.drawnFrom??1)<=a.version?(0,d.jsx)(x.g5,{title:`${a.name}, version ${a.version}`,src:`${a.src}&v=${a.version}&proto=1`,device:b}):(0,d.jsx)(t.ScreenRender,{screen:a,device:b,v:a.version,bare:!0,live:c,eager:!0})})})})}function R({slug:a,layout:b,label:c}){let{projects:e,loaded:f}=(0,u.Q)(),g=e.find(b=>b.slug===a);return((0,w.K7)(g?`${g.name}, ${c}`:"Flows"),g)?(0,d.jsx)(S,{project:g,layout:b},g.slug):f?(0,d.jsx)("div",{className:"grid h-full place-items-center",children:(0,d.jsx)(r.pp,{plain:!0,title:"No project here",line:"It may have been removed, or the link is out of date."})}):null}function S({project:a,layout:b}){let c=a.slug,{flowsOf:f,commentsOf:g,addComment:l,screenStatus:m}=(0,u.Q)(),o=(0,B.SJ)(),p=f(c),q=JSON.stringify(p),w=(0,e.useMemo)(()=>p,[q]),x=(0,A.xe)(c),C=JSON.stringify(a.screens.map(a=>[a.id,a.version,a.kind,a.src,a.drawnFrom,a.links])),G=(0,e.useMemo)(()=>a.screens.filter(N),[C]),H=(0,e.useCallback)(a=>(0,t.XA)(a)[0],[]),I=(0,e.useMemo)(()=>G.length?b({screens:G,flows:w,device:H}):null,[b,G,w,H]),J=(0,e.useMemo)(()=>I?.nodes??[],[I]),K=(0,e.useMemo)(()=>new Map(J.map(a=>[a.key,a])),[J]),L=Object.fromEntries((0,v.hN)(a,o.spreads,m,{[c]:x},o.plans).flatMap(a=>"layouts"===a.kind?[[a.screen.id,"Layouts to pick"]]:"review"===a.kind?[[a.screen.id,"To review"]]:[])),M=(0,e.useMemo)(()=>{let a=new Map;for(let b of o.runs){if("running"!==b.status||b.project!==c)continue;let d=/^crit-(.+)$/.exec(b.spread),e=/^variants-(.+)$/.exec(b.spread),f=G.find(a=>a.id===(d??e)?.[1]);d&&f?a.set(f.id,b.round>f.version?`Drawing version ${b.round}`:"Preparing its walkthrough"):e&&f&&a.set(f.id,"Drawing variants")}return a},[o.runs,G,c]),R=(0,e.useMemo)(()=>new URLSearchParams,[]),[S,Y]=(0,e.useState)(()=>{let a=R.get("screen");return a?J.find(b=>b.screen.id===a)?.key??null:null}),Z=S?K.get(S):void 0,[$,_]=(0,e.useState)(R.get("flow")??""),aa=w.find(a=>a.id===$),[ab,ac]=(0,e.useState)(null),ad=ab??Z?.screen.id??null,[ae,af]=(0,e.useState)(!1),[ag,ah]=(0,e.useState)(!1),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)(null),[am,an]=(0,e.useState)(null),[ao,ap]=(0,e.useState)(null),aq=(0,e.useRef)(null),ar=(0,e.useRef)(null),as=(0,e.useRef)(null),at=(0,e.useRef)({x:(0,E.oz)(0),y:(0,E.oz)(0),l:(0,E.oz)(0)}),au=(0,e.useRef)({W:1440,H:900}),[av,aw]=(0,e.useState)(!1),ax=(0,e.useRef)({pan:!1,zoom:!1}),ay=(0,e.useRef)(null),az=(0,e.useRef)(null),aA=(0,e.useRef)(0),[aB,aC]=(0,e.useState)(null),[aD,aE]=(0,e.useState)(!1),aF=(0,e.useRef)(!1),[aG,aH]=(0,e.useState)("mid"),aI=(0,e.useRef)(aG),aJ=(0,e.useRef)(I);aJ.current=I;let aK=()=>Math.exp(at.current.l.x),aL=(0,e.useCallback)((a,b=2,c=0)=>{let{W:d,H:e}=au.current,f=d<768?P:O,g=Math.min(b,(d-2*f.side)/Math.max(1,a.x1-a.x0),(e-f.top-f.bottom-c)/Math.max(1,a.y1-a.y0)),h=f.top+(e-f.top-f.bottom-c-(a.y1-a.y0)*g)/2;return{z:g,x:(a.x0+a.x1)/2,y:a.y0-(h-e/2)/g}},[]),aM=()=>{let a=aJ.current?.bounds??{x0:0,y0:0,x1:1,y1:1};return{x0:a.x0-60,y0:a.y0-80,x1:a.x1+60,y1:a.y1+120}},aN=()=>({lo:Math.log(Math.min(.5,.6*aL(aM(),1).z)),hi:Math.log(3)}),aO=(0,e.useCallback)(()=>{let a=ar.current,b=aq.current;if(!a||!b)return;let c=at.current,d=Math.exp(c.l.x),{W:e,H:f}=au.current,g=e/2-c.x.x*d,h=f/2-c.y.x*d;a.style.transform=`translate3d(${g}px, ${h}px, 0) scale(${d})`,a.style.setProperty("--z",String(d));let i=16*d*Math.pow(2,Math.max(0,Math.ceil(Math.log2(8/(16*d)))));b.style.backgroundSize=`${i}px ${i}px`,b.style.backgroundPosition=`${g}px ${h}px`,as.current&&(as.current.textContent=`${Math.round(100*d)}%`);let j=390*d,k=aI.current,l="far"===k?j>76?j>230?"near":"mid":"far":"near"===k?j<190?j<64?"far":"mid":"near":j<64?"far":j>230?"near":"mid";l!==k&&(aI.current=l,aH(l))},[]),aP=(0,e.useCallback)(()=>{let a=at.current,b=Math.exp(a.l.x),{W:c,H:d}=au.current;aF.current=!1,aE(!1),ar.current?.style.removeProperty("will-change"),aC({z:b,ox:c/2-a.x.x*b,oy:d/2-a.y.x*b,W:c,H:d});let e=new URLSearchParams(window.location.search);e.set("cam",`${Math.round(a.x.x)},${Math.round(a.y.x)},${b.toFixed(3)}`),history.replaceState(history.state,"",`${location.pathname}?${e}`)},[]),aQ=(0,e.useCallback)(()=>{cancelAnimationFrame(aA.current),aF.current||(aF.current=!0,aE(!0),ar.current?.style.setProperty("will-change","transform"));let a=performance.now(),b=c=>{let d=Math.min(.05,Math.max(0,(c-a)/1e3));a=c;let e=at.current,f=!0;if(ax.current.zoom||(f=(0,E.PM)(e.l,d)&&f),ay.current){let a=ay.current,b=Math.exp(e.l.x),{W:c,H:d}=au.current;e.x.x=e.x.to=a.wx-(a.px-c/2)/b,e.y.x=e.y.to=a.wy-(a.py-d/2)/b,e.x.v=e.y.v=0,f&&(ay.current=null)}else ax.current.pan||(f=(0,E.PM)(e.x,d)&&f,f=(0,E.PM)(e.y,d)&&f);let g=az.current;g&&Math.hypot(e.x.to-e.x.x,e.y.to-e.y.x)<.4*g.d0&&(e.l.to=g.l,az.current=null,f=!1),aO(),!f||ax.current.pan||ax.current.zoom?aA.current=requestAnimationFrame(b):aP()};aA.current=requestAnimationFrame(b)},[aO,aP]),aR=(0,e.useCallback)(a=>{let b=at.current;ay.current=null;let{lo:c,hi:d}=aN(),e=Math.min(d,Math.max(c,Math.log(a.z))),f={x:a.x,y:a.y},g=aK(),{W:h,H:i}=au.current,j=Math.hypot(f.x-b.x.x,f.y-b.y.x),k=j*Math.min(g,Math.exp(e))>1.2*Math.max(h,i);if(b.x.to=f.x,b.y.to=f.y,b.x.r=b.y.r=b.l.r=k?E.Cf.gentle:E.Cf.smooth,k){let a={x0:Math.min(f.x,b.x.x)-h/2/g,y0:Math.min(f.y,b.y.x)-i/2/g,x1:Math.max(f.x,b.x.x)+h/2/g,y1:Math.max(f.y,b.y.x)+i/2/g};b.l.to=Math.max(c,Math.min(e,b.l.x,Math.log(aL(a).z))),az.current={l:e,d0:j}}else b.l.to=e,az.current=null;aQ()},[aQ,aL]),aS=(0,e.useCallback)((a,b,c)=>{let d=at.current,e=aK(),{W:f,H:g}=au.current,{lo:h,hi:i}=aN();ay.current={px:b,py:c,wx:d.x.x+(b-f/2)/e,wy:d.y.x+(c-g/2)/e},az.current=null,d.l.r=E.Cf.snappy,d.l.to=Math.min(i,Math.max(h,d.l.to+Math.log(a))),aQ()},[aQ]),aT=(0,e.useCallback)(()=>aR(aL(aM(),1)),[aR,aL]),aU=(0,e.useCallback)(a=>aL({x0:a.x,y0:a.y,x1:a.x+a.w,y1:a.y+a.h},1.25,au.current.W<768?84:76),[aL]),aV=(0,e.useCallback)(a=>aR(aU(a)),[aR,aU]),aW=(0,e.useCallback)(a=>{Y(a),al(null),aj(null),ah(!1),af(!1)},[]);(0,e.useRef)(!1),(0,e.useRef)(!1);let[aX,aY]=(0,e.useState)(!1);(0,e.useRef)(am).current=am,(0,e.useRef)(ao).current=ao;let[aZ,a$]=(0,e.useState)([]),a_=(0,e.useRef)({id:"",at:0}),a0=(0,e.useCallback)(a=>{if(a_.current.id===a&&performance.now()-a_.current.at<500)return;a_.current={id:a,at:performance.now()};let b=J.filter(b=>b.screen.id===a).sort((a,b)=>Z?Math.hypot(a.x-Z.x,a.y-Z.y)-Math.hypot(b.x-Z.x,b.y-Z.y):0)[0];b&&(aW(b.key),aR(aU(b)))},[Z,J,aW,aU,aR]),a1=!!Z&&aZ.includes(Z.key)&&"near"===aG,a2=()=>{Z&&(ah(!1),aj(null),af(a=>!a||!a1),a1||aV(Z))},a3=()=>{Z&&(af(!1),ah(a=>!a||!a1),a1||aV(Z))},a4=(0,e.useRef)(null),a5=(0,e.useCallback)(()=>{an(null),a4.current&&aR(a4.current),a4.current=null},[aR]);if(!I)return(0,d.jsxs)("div",{className:"relative -mt-14 grid h-dvh place-items-center overflow-hidden dot-grid",children:[(0,d.jsx)(r.pp,{plain:!0,title:"Nothing designed yet",line:"Screens appear here as the agent builds the parts of the plan you approve."}),(0,d.jsx)(W,{project:a,flows:[],onFlow:()=>{},onPlay:null,zoomText:as,onZoom:()=>{}})]});let a6=a=>K.get(a)?.screen.id,a7=a=>{if(!aa)return!1;if(a.flow)return a.flow===aa.id;let b=a6(a.a)??"",c=a6(a.b)??"";return aa.screens.some((d,e)=>d===b&&aa.screens[e+1]===c||a.both&&d===c&&aa.screens[e+1]===b)},a8=aB?.z??1,a9=!!Z&&a1&&!am&&!aD,ba=(()=>{if(!Z||!aB)return null;let a=z.Qe[Z.device],{w:b,h:c}=t.et[Z.device];return{l:aB.ox+(Z.x+a.bezel)*aB.z,t:aB.oy+(Z.y+a.bezel+a.bar)*aB.z,box:{w:b*aB.z,h:c*aB.z,s:aB.z}}})();return(0,d.jsxs)("div",{ref:aq,className:(0,D.cn)("relative -mt-14 h-dvh touch-none select-none overflow-hidden dot-grid",aX&&"cursor-grab"),"aria-label":`${a.name}, every screen and how they connect`,children:[(0,d.jsxs)("div",{ref:ar,className:"absolute left-0 top-0 origin-top-left",style:{"--z":1},children:[(0,d.jsxs)("svg",{"aria-hidden":!0,className:"pointer-events-none absolute left-0 top-0 overflow-visible",width:1,height:1,fill:"none",children:[I.edges.map(a=>{let{on:b,quiet:c}=(a=>{let b=!!ad&&(a6(a.a)===ad||a6(a.b)===ad);return{on:ad?b:a7(a),quiet:!!ad&&!b||!!aa&&!a7(a)&&!b}})(a);return a.hidden&&!b?null:(0,d.jsxs)("g",{className:(0,D.cn)("transition-colors duration-150",b?"text-fg-primary":c?"text-fg-faint":"text-fg-muted"),children:[(0,d.jsx)("path",{d:a.d,stroke:"currentColor",strokeWidth:b?1.75:1.25,vectorEffect:"non-scaling-stroke",strokeDasharray:a.missing?"4 5":void 0}),a.heads.map((a,b)=>(0,d.jsx)("path",{d:"M-8 -4.5 L0 0 L-8 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke",style:{transform:`translate(${a.x}px, ${a.y}px) rotate(${a.deg}deg) scale(calc(1 / var(--z)))`}},b))]},a.key)}),I.starts.map((a,b)=>(0,d.jsxs)("g",{className:"text-fg-secondary",style:{transform:`translate(${a.x}px, ${a.y}px) scale(calc(1 / var(--z)))`},children:[(0,d.jsx)("circle",{cx:-44,cy:0,r:3.5,fill:"currentColor"}),(0,d.jsx)("path",{d:"M-40 0 H-6",stroke:"currentColor",strokeWidth:1.25}),(0,d.jsx)("path",{d:"M-13 -4.5 L-5 0 L-13 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]},b))]}),I.groups.map(a=>{let b=a.nodes.map(a6),c=aa?a.flow===aa.id:!!ad&&b.includes(ad),e=!!aa&&a.flow!==aa.id&&!!a.flow||!!ad&&!c&&!aa;return(0,d.jsxs)("div",{className:"pointer-events-none absolute",style:{left:a.x,top:a.y,width:a.w},children:[a.spine&&(0,d.jsx)("span",{"aria-hidden":!0,className:(0,D.cn)("absolute inset-x-0 top-0 border-t-2 transition-colors duration-150",c?"border-fg-muted":"border-border-divider")}),(0,d.jsx)("span",{className:"absolute bottom-0 left-0 block origin-bottom-left whitespace-nowrap",style:{transform:"scale(calc(1 / var(--z)))"},children:(0,d.jsx)("span",{className:(0,D.cn)("block pb-2.5 text-ui font-medium transition-colors duration-150",c?"text-fg-primary":e?"text-fg-muted":"text-fg-secondary"),children:a.title})})]},a.key)}),J.map(a=>{let b=a.key===S,e=aZ.includes(a.key),f=b&&e&&"near"===aG&&!ae&&!ag&&!aD&&!aX,m=!!aa&&!aa.screens.includes(a.screen.id),o=g(c,a.screen.id).filter(b=>b.device===a.device),p=M.get(a.screen.id)??L[a.screen.id],q=M.has(a.screen.id),r=x[a.screen.id]??0,u=z.Qe[a.device];return(0,d.jsxs)("div",{className:(0,D.cn)("absolute transition-opacity duration-150",m&&"opacity-35"),style:{left:a.x,top:a.y,width:a.w,height:a.h},onPointerEnter:b=>"mouse"===b.pointerType&&ac(a.screen.id),onPointerLeave:()=>ac(b=>b===a.screen.id?null:b),children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute floor-shadow",style:{left:"4%",right:"4%",top:"97%",height:"9%"}}),(0,d.jsx)(Q,{screen:a.screen,device:a.device,run:e,using:f}),!f&&!(b&&(ag||ae))&&(0,d.jsx)("button",{type:"button","data-node":!0,tabIndex:-1,"aria-label":a.screen.name,className:"absolute inset-0 cursor-default outline-hidden",onClick:b=>{aW(a.key),"touch"===b.nativeEvent.pointerType&&aV(a)},onDoubleClick:()=>aV(a)}),b&&ag&&(0,d.jsx)("button",{type:"button","data-control":!0,"aria-label":`Comment on ${a.screen.name}`,className:"absolute cursor-crosshair outline-hidden",style:{left:u.bezel,top:u.bezel+u.bar,width:t.et[a.device].w,height:t.et[a.device].h},onClick:b=>{let c=b.currentTarget.getBoundingClientRect(),{w:d,h:e}=t.et[a.device];aj({key:a.key,x:Math.round((b.clientX-c.left)/c.width*d),y:Math.round((b.clientY-c.top)/c.height*e)}),al(null)}}),"far"!==aG&&!(b&&a9)&&o.map(c=>(0,d.jsx)(T,{c:c,at:{x:u.bezel+c.x,y:u.bezel+u.bar+c.y},open:ak===`${a.key}/${c.id}`,onOpen:()=>{let d=`${a.key}/${c.id}`;b||aW(a.key),al(a=>a===d?null:d)}},c.id)),ai?.key===a.key&&(0,d.jsx)(U,{at:{x:u.bezel+ai.x,y:u.bezel+u.bar+ai.y},onCancel:()=>aj(null),onSend:b=>{l(c,a.screen.id,{id:`c${Date.now()}`,device:a.device,x:ai.x,y:ai.y,who:F.me.name,initials:F.me.initials,text:b,when:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}),aj(null),ah(!1)}}),"far"!==aG&&(0,d.jsx)("div",{className:"pointer-events-none absolute left-1/2 top-full w-0",children:(0,d.jsxs)("div",{className:"absolute left-0 top-0 flex flex-col items-center gap-0.5 pt-3",style:{transform:"translateX(-50%) scale(calc(1 / var(--z)))",transformOrigin:"0 0"},children:[(0,d.jsxs)("button",{type:"button","data-control":!0,onClick:()=>aW(a.key),onDoubleClick:()=>aV(a),"aria-pressed":b,className:(0,D.cn)("pointer-events-auto flex h-6 items-center gap-1.5 rounded-control-sm px-1.5 text-ui outline-hidden transition-hover hover:bg-fill-hover focus-visible:ring-2 focus-visible:ring-ring",b?"font-medium text-fg-primary":ad===a.screen.id?"text-fg-primary":"text-fg-secondary"),style:{maxWidth:Math.max(64,(a.w+120)*a8)},children:[q&&(0,d.jsx)(s.q,{state:"drawing",className:"size-3.5 shrink-0 text-agent-work"}),(0,d.jsx)("span",{className:"truncate",children:a.screen.name})]}),p&&(0,d.jsxs)("span",{className:"flex items-center gap-1.5 whitespace-nowrap text-sm text-fg-secondary",children:[!q&&(0,d.jsx)(s.q,{state:"waiting",className:"size-3 text-agent-wait"}),p]}),b&&!aD&&(0,d.jsxs)("span",{"data-control":!0,className:"settle-in pointer-events-auto mt-1 flex items-center gap-0.5 whitespace-nowrap",children:[(0,d.jsxs)(n.$,{size:"sm",variant:"ghost","aria-pressed":ae,title:"Point at what should change (C)",onClick:a2,className:(0,D.cn)("shrink-0",ae&&"bg-fill-selected text-fg-primary"),children:[!av&&(0,d.jsx)(h.I,{}),"Mark up"]}),(0,d.jsxs)(n.$,{size:"sm",variant:"ghost","aria-pressed":ag,title:"Leave a comment on the screen",onClick:a3,className:(0,D.cn)("shrink-0",ag&&"bg-fill-selected text-fg-primary"),children:[!av&&(0,d.jsx)(i.x,{}),"Comment"]}),(0,A.B_)(a.screen)&&(0,d.jsxs)(n.$,{size:"sm",variant:"ghost",onClick:()=>(a=>{aW(a.key);let b=at.current;a4.current={x:b.x.to,y:b.y.to,z:Math.exp(b.l.to)};let{H:c}=au.current,d=au.current.W<768?P:O,e=Math.max(160,.3*c),f=(e-16)/a.h;aR({x:a.x+a.w/2,y:a.y+a.h/2-(d.top+e/2-c/2)/f,z:f}),an(a.key)})(a),className:"num shrink-0",children:[!av&&!r&&(0,d.jsx)(j.F,{}),r?`${r} ${1===r?"variant":"variants"}`:av?"Variants":"Create variants"]}),(0,d.jsxs)(n.$,{size:"sm",variant:"ghost",title:"Play the prototype from here (P)",onClick:()=>ap(a.screen.id),className:"shrink-0",children:[!av&&(0,d.jsx)(k.j,{weight:"fill"}),"Play"]})]})]})})]},a.key)})]}),a9&&Z&&ba&&(0,d.jsx)("div",{"data-note":!0,className:"pointer-events-none absolute z-30",style:{left:ba.l,top:ba.t},children:(0,d.jsx)(y.$b,{project:a,screen:Z.screen,inReview:"review"===m(c,Z.screen.id),device:Z.device,onScreen:a0,fixedBox:ba.box,frameBelow:!0,marking:{on:ae,set:af}},`${Z.screen.id}-${Z.screen.version}`)}),aX&&(0,d.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 z-30 cursor-grab active:cursor-grabbing"}),am&&K.get(am)&&(0,d.jsx)(V,{slug:c,node:K.get(am),phone:av,onClose:a5}),!am&&(0,d.jsx)(W,{project:a,flows:w,flow:aa,onFlow:a=>{_(a);let b=w.find(b=>b.id===a);if(!b||!I)return;let c=I.groups.find(a=>a.flow===b.id),d=c?c.nodes.map(a=>K.get(a)).filter(Boolean):J.filter(a=>b.screens.includes(a.screen.id));d.length&&aR(aL({x0:Math.min(...d.map(a=>a.x))-60,y0:Math.min(...d.map(a=>a.y))-80,x1:Math.max(...d.map(a=>a.x+a.w))+60,y1:Math.max(...d.map(a=>a.y+a.h))+100},1))},onPlay:()=>ap(aa?.start??Z?.screen.id??J[0]?.screen.id??null),zoomText:as,onZoom:a=>{let{W:b,H:c}=au.current;"in"===a?aS(1.5,b/2,c/2):"out"===a?aS(1/1.5,b/2,c/2):"fit"===a?aT():aR(Z?{...aU(Z),z:1}:{x:at.current.x.x,y:at.current.y.x,z:1})}}),ao&&(0,d.jsx)(X,{screens:G,start:ao,device:H,onClose:a=>{ap(null);let b=J.find(b=>b.screen.id===a);b&&(aW(b.key),aB&&aB.ox+b.x*aB.z>0&&aB.ox+(b.x+b.w)*aB.z<aB.W&&aB.oy+b.y*aB.z>0&&aB.oy+(b.y+b.h)*aB.z<aB.H||aR("near"===aI.current?aU(b):{x:b.x+b.w/2,y:b.y+b.h/2,z:aK()}))}})]})}function T({c:a,at:b,open:c,onOpen:e}){return(0,d.jsx)("div",{className:"absolute z-10 size-0",style:{left:b.x,top:b.y},children:(0,d.jsxs)("div",{className:"absolute left-0 top-0",style:{transform:"scale(calc(1 / var(--z)))",transformOrigin:"0 0"},children:[(0,d.jsx)("button",{type:"button","data-control":!0,"aria-label":`Comment from ${a.who}`,"aria-expanded":c,onClick:e,className:"grid size-7 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-bg-floating text-xs font-semibold text-brand shadow-ring-strong outline-hidden transition-hover hover:scale-110 focus-visible:ring-2 focus-visible:ring-ring",children:a.initials}),c&&(0,d.jsx)("div",{"data-note":!0,className:"absolute left-5 top-0 w-72",children:(0,d.jsx)(y.Sp,{lead:a.initials,title:`${a.who}, ${a.when}`,quote:a.text})})]})})}function U({at:a,onSend:b,onCancel:c}){let[f,g]=(0,e.useState)(""),h=()=>f.trim()&&b(f.trim());return(0,d.jsx)("div",{className:"absolute z-20 size-0",style:{left:a.x,top:a.y},children:(0,d.jsxs)("div",{className:"absolute left-0 top-0",style:{transform:"scale(calc(1 / var(--z)))",transformOrigin:"0 0"},children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"grid size-7 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-bg-floating text-xs font-semibold text-brand shadow-ring-strong",children:F.me.initials}),(0,d.jsx)("div",{"data-note":!0,className:"absolute left-5 top-0 w-72",children:(0,d.jsx)(y.Sp,{title:"Comment",children:(0,d.jsxs)("form",{className:"grid w-full gap-2",onSubmit:a=>{a.preventDefault(),h()},children:[(0,d.jsx)(o.T,{autoFocus:!0,value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{"Escape"===a.key?c():"Enter"===a.key&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),h())},"aria-label":"Comment",rows:2,className:"resize-none"}),(0,d.jsxs)("span",{className:"flex justify-end gap-1.5",children:[(0,d.jsx)(n.$,{type:"button",size:"sm",variant:"ghost",onClick:c,children:"Cancel"}),(0,d.jsx)(n.$,{type:"submit",variant:"primary",size:"sm",disabled:!f.trim(),children:"Comment"})]})]})})})]})})}function V({slug:a,node:b,phone:c,onClose:f}){let g=(0,A.m$)(a,b.screen),[h,i]=(0,e.useState)(null),j=(0,e.useRef)(null),k=c?P:O;return(0,d.jsx)("div",{ref:j,"data-note":!0,className:"absolute inset-x-0 bottom-0 z-30",style:{top:`calc(${k.top}px + max(160px, 30dvh))`},children:h&&(0,d.jsx)(A.al,{slug:a,screen:b.screen,device:b.device,variants:g,room:h,phone:c,onClose:f})})}function W({project:a,flows:b,flow:c,onFlow:e,onPlay:g,zoomText:h,onZoom:i}){let j=(0,f.useRouter)(),m=(0,d.jsx)("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border-divider"});return(0,d.jsx)("div",{"data-bar":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-5",children:(0,d.jsxs)("div",{className:(0,D.cn)(C.LJ,"pointer-events-auto flex max-w-full items-center gap-1 p-1.5"),children:[(0,d.jsxs)(p.O,{type:"single",size:"sm",value:"flows",onValueChange:b=>"plan"===b?j.push(`/p/${a.slug}?view=plan`):"designs"===b?j.push(`/p/${a.slug}`):void 0,"aria-label":`What ${a.name} shows`,className:"shrink-0",children:[(0,d.jsx)(p.d,{value:"plan",children:"Plan"}),(0,d.jsx)(p.d,{value:"designs",children:"Designs"}),(0,d.jsx)(p.d,{value:"flows",children:"Flows"})]}),b.length>0&&(0,d.jsxs)(d.Fragment,{children:[m,(0,d.jsxs)(q.rI,{modal:!1,children:[(0,d.jsx)(q.ty,{asChild:!0,children:(0,d.jsxs)(n.$,{size:"sm",variant:"ghost",className:"min-w-0 shrink",children:[(0,d.jsx)("span",{className:"truncate max-sm:max-w-16",children:c?.name??"Every screen"}),(0,d.jsx)(l.a,{})]})}),(0,d.jsx)(q.SQ,{side:"top",align:"center",className:"w-52",children:(0,d.jsxs)(q.Hr,{value:c?.id??"",onValueChange:e,children:[(0,d.jsx)(q.Ht,{value:"",children:"Every screen"}),b.map(a=>(0,d.jsx)(q.Ht,{value:a.id,children:a.name},a.id))]})})]})]}),g&&(0,d.jsxs)(n.$,{size:"sm",title:"Play the prototype (P)","aria-label":"Play prototype",onClick:g,className:"shrink-0",children:[(0,d.jsx)(k.j,{weight:"fill"}),(0,d.jsx)("span",{className:"max-sm:hidden",children:"Play prototype"})]}),g&&(0,d.jsxs)(d.Fragment,{children:[m,(0,d.jsxs)(q.rI,{modal:!1,children:[(0,d.jsx)(q.ty,{asChild:!0,children:(0,d.jsx)(n.$,{size:"sm",variant:"ghost","aria-label":"Zoom",className:"num shrink-0 tabular-nums",children:(0,d.jsx)("span",{ref:h,children:"100%"})})}),(0,d.jsxs)(q.SQ,{side:"top",align:"end",className:"w-48",children:[(0,d.jsxs)(q._2,{onSelect:()=>i("in"),children:["Zoom in",(0,d.jsx)(q.V0,{children:"+"})]}),(0,d.jsxs)(q._2,{onSelect:()=>i("out"),children:["Zoom out",(0,d.jsx)(q.V0,{children:"-"})]}),(0,d.jsx)(q.mB,{}),(0,d.jsxs)(q._2,{onSelect:()=>i("fit"),children:["Every screen",(0,d.jsx)(q.V0,{children:"0"})]}),(0,d.jsxs)(q._2,{onSelect:()=>i("100"),children:["Actual size",(0,d.jsx)(q.V0,{children:"1"})]})]})]})]})]})})}function X({screens:a,start:b,device:c,onClose:f}){let[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(!0),[l,o]=(0,e.useState)(b),p=(0,e.useRef)(l);p.current=l,(0,e.useRef)(void 0);let q=a.find(a=>a.id===l)??a[0];if(!h||!q)return null;let r=c(q),{w:s,h:u}=t.et[r],v=z.Qe[r],w="desktop"!==r&&h.w>=768,x=w?Math.min(1,(h.h-48)/(u+2*v.bezel),(h.w-48)/(s+2*v.bezel)):Math.min(h.w/s,h.h/u),A={w:Math.round(s*x),h:Math.round(u*x),s:x},B=(0,d.jsx)(y.EY,{screen:q,device:r,box:A,v:q.version,live:!0});return(0,g.createPortal)((0,d.jsxs)("div",{role:"dialog","aria-modal":!0,"aria-label":`${q.name}, playing`,className:(0,D.cn)("fixed inset-0 z-60 grid place-items-center",w?"bg-canvas":"bg-bg-content"),children:[w?(0,d.jsx)(z.KE,{device:r,box:A,children:B}):B,(0,d.jsx)("div",{className:(0,D.cn)(C.LJ,"fixed right-3 top-3 p-1 transition-opacity duration-300",j?"opacity-100":"pointer-events-none opacity-0"),children:(0,d.jsx)(n.$,{size:"icon-sm",variant:"ghost","aria-label":"Stop playing",title:"Stop playing (Esc)",onClick:()=>f(p.current),children:(0,d.jsx)(m.X,{})})})]}),document.body)}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=4874,exports.ids=[4874],exports.modules={22493:(a,b,c)=>{c.d(b,{BY:()=>s,Gl:()=>u,Lp:()=>p,Yx:()=>q,i4:()=>t,readCrit:()=>n,vE:()=>r});var d=c(73024),e=c(76760),f=c.n(e),g=c(77598),h=c(63515),i=c(2667);let j=/^[a-z0-9-]+$/,k=(a,b)=>f().join((0,h.tY)(a),"crits",`${b}.json`),l=()=>new Date().toISOString(),m=a=>Math.min(100,Math.max(0,Number(a)||0));async function n(a,b){if(j.test(a)&&j.test(b))try{return JSON.parse(await d.promises.readFile(k(a,b),"utf8"))}catch{return}}async function o(a,b){b.updated=l();let c=k(a,b.screen);await d.promises.mkdir(f().dirname(c),{recursive:!0});let e=`${c}.${process.pid}.${Date.now()}.tmp`;await d.promises.writeFile(e,JSON.stringify(b,null,1)),await d.promises.rename(e,c)}async function p(a,b,c,d){if(!Array.isArray(d)||!d.length)throw Error("Pin at least one call: where on the screen (x and y as percentages), what you decided, and why.");let e=a=>null!=a&&Number(a)?Math.min(100,Math.max(2,Number(a))):void 0,f=d.slice(0,8).map(a=>{let b;return{x:m(a.x),y:m(a.y),w:e(a.w),h:e(a.h),text:(b=String(a.text??"").trim(),b.length<=160?b:`${b.slice(0,160).replace(/\s+\S*$/,"")}…`),why:String(a.why??"").trim().slice(0,320),doubt:!!a.doubt,changed:!!a.changed||void 0}}).filter(a=>a.text),h=[...f.filter(a=>!a.doubt),...f.filter(a=>a.doubt)].map((a,b)=>({...a,id:(0,g.randomBytes)(3).toString("hex"),n:b+1})),i=await n(a,b),j={screen:b,version:c,calls:h,marks:i&&i.version===c?i.marks:[],updated:l()};return await o(a,j),j}async function q(a,b,c,d){let e=await n(a,b),f=e?.calls.find(a=>a.id===c);if(!e||!f)throw Error("That call isn't on this screen.");f.undone=d||void 0,d&&(f.kept=void 0),await o(a,e);let g=(0,i.u)();return g.reactions.push({at:l(),project:a,spread:`crit:${b}`,direction:`v${e.version}`,name:f.text,note:f.why,reaction:d?"cut":"keep",why:d?"Undid this call in a crit":"Restored this call in a crit"}),await (0,i.fU)(g),e}async function r(a,b,c,d){let e=await n(a,b),f=e?.calls.find(a=>a.id===c);if(!e||!f)throw Error("That call isn't on this screen.");if(f.kept=d||void 0,d&&(f.undone=void 0),await o(a,e),d){let c=(0,i.u)();c.reactions.push({at:l(),project:a,spread:`crit:${b}`,direction:`v${e.version}`,name:f.text,note:f.why,reaction:"keep",why:"Said it looks right in a walkthrough"}),await (0,i.fU)(c)}return e}async function s(a,b,c,d,e,f){let h=await n(a,b)??{screen:b,version:c,calls:[],marks:[],updated:l()};if(!f.trim())throw Error("Say what's off.");return h.marks.push({id:(0,g.randomBytes)(3).toString("hex"),x:m(d),y:m(e),text:f.trim().slice(0,240),at:l()}),await o(a,h),h}async function t(a,b,c){let d=await n(a,b);if(!d)throw Error("No crit on this screen.");return d.marks=d.marks.filter(a=>a.id!==c),await o(a,d),d}let u=a=>a?{undone:a.calls.filter(a=>a.undone),marks:a.marks}:{undone:[],marks:[]}}};
@@ -0,0 +1,3 @@
1
+ "use strict";exports.id=4903,exports.ids=[4903],exports.modules={1666:(a,b,c)=>{c.d(b,{ReferencePage:()=>f,SkillPage:()=>e});var d=c(97954);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call SkillPage() from the server but SkillPage is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/trxnt/baseline-hq/projects/design-os/components/infra/skill.tsx","SkillPage"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call ReferencePage() from the server but ReferencePage is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/trxnt/baseline-hq/projects/design-os/components/infra/skill.tsx","ReferencePage")},25799:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"unstable_rethrow",{enumerable:!0,get:function(){return function a(b){if((0,g.isNextRouterError)(b)||(0,f.isBailoutToCSRError)(b)||(0,i.isDynamicServerError)(b)||(0,h.isDynamicPostpone)(b)||(0,e.isPostpone)(b)||(0,d.isHangingPromiseRejectionError)(b))throw b;b instanceof Error&&"cause"in b&&a(b.cause)}}});let d=c(82831),e=c(43740),f=c(29305),g=c(61981),h=c(26906),i=c(69168);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},29088:(a,b,c)=>{function d(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"unauthorized",{enumerable:!0,get:function(){return d}}),c(98541).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},45800:(a,b,c)=>{c.d(b,{ReferencePage:()=>u,SkillPage:()=>t});var d=c(21124),e=c(38301),f=c(41213),g=c(58533),h=c(87050),i=c(25196),j=c(30096),k=c(4215),l=c(9202),m=c(52825),n=c(9297);let o=(0,l.cn)("text-ui leading-relaxed text-fg-secondary","[&_h2]:!mt-12 [&_h2]:scroll-mt-8 [&_h2]:!text-ui [&_h2]:!font-semibold [&_h2]:text-fg-primary","[&_h3]:!mt-8 [&_h3]:!text-ui [&_h3]:!font-medium [&_h3]:text-fg-primary","[&_strong]:font-medium [&_strong]:text-fg-primary [&_code]:font-mono [&_code]:text-xs","[&_li]:my-1 [&_p]:text-pretty"),p=a=>[...a.matchAll(/^## (.+)$/gm)].map(a=>a[1].trim()),q=a=>a[0].toUpperCase()+a.slice(1);function r({summary:a,body:b,aside:c,children:f}){let g=(0,e.useRef)(null);return(0,d.jsxs)("div",{className:"flex items-start gap-12",children:[(0,d.jsxs)("div",{className:"min-w-0 max-w-2xl flex-1",ref:g,children:[a&&(0,d.jsx)("p",{className:"text-ui text-fg-secondary text-pretty",children:q(a)}),(0,d.jsx)(k.hJ,{className:(0,l.cn)(o,a&&"mt-8"),children:b}),f]}),c&&c.length>1&&(0,d.jsx)("nav",{"aria-label":"Sections",className:"sticky top-0 grid w-56 shrink-0 max-xl:hidden",children:c.map((a,b)=>(0,d.jsx)(n.fI,{nav:!0,lead:null,title:a,trailWidth:"w-0",onClick:()=>g.current?.querySelectorAll("h2")[b]?.scrollIntoView({behavior:"smooth",block:"start"})},a))})]})}function s({skill:a,references:b}){let{shown:c,pager:e}=(0,n.Xd)(b);return(0,d.jsxs)(n.wn,{title:"References",count:b.length,className:"mt-12",children:[(0,d.jsx)("div",{className:"-mx-2 grid",children:c.map(b=>(0,d.jsx)(n.fI,{stacked:!0,href:`/skills/${a}/references/${b.file}`,lead:(0,d.jsx)(f.i,{className:"size-4 text-fg-muted"}),title:b.title,parent:b.covers?q(b.covers):b.file,trailWidth:"w-0"},b.file))}),(0,d.jsx)(n.is,{...e})]})}function t({name:a,title:b,summary:c,on:g,body:h,references:i,parts:k}){let[l,n]=(0,e.useState)(g),o=async b=>{n(b);let c=await fetch("/api/skills",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a,on:b})}).catch(()=>null);c?.ok||n(!b)};return k?(0,d.jsx)(w,{name:a,title:b,summary:c,on:l,toggle:o,body:h,references:i}):(0,d.jsx)(m.w,{title:b,icon:(0,d.jsx)(f.i,{}),crumbs:[{label:"Skills",href:"/skills"}],actions:(0,d.jsx)(j.d,{checked:l,onCheckedChange:o,"aria-label":`Use ${b}`}),children:(0,d.jsx)(r,{summary:c,body:h,aside:[...p(h),...i.length?["References"]:[]],children:i.length>0&&(0,d.jsx)(s,{skill:a,references:i})})})}function u({skill:a,file:b,title:c,summary:e,body:g}){return(0,d.jsx)(m.w,{title:c,icon:(0,d.jsx)(f.i,{}),crumbs:[{label:"Skills",href:"/skills"},{label:a.title,href:`/skills/${a.name}`}],actions:(0,d.jsx)("span",{className:"font-mono text-xs text-fg-meta max-md:hidden",children:b}),children:(0,d.jsx)(r,{summary:e,body:g,aside:p(g)})})}let v=(0,l.cn)("text-ui leading-relaxed text-fg-secondary","[&_strong]:font-medium [&_strong]:text-fg-primary [&_code]:font-mono [&_code]:text-xs","[&_li]:my-1 [&_li]:text-ui [&_p]:text-pretty [&_ul]:list-outside [&_ul]:pl-5 [&_ol]:list-outside [&_ol]:pl-5");function w({name:a,title:b,summary:c,on:o,toggle:p,body:r,references:t}){let{intro:u,blocks:w}=(0,e.useMemo)(()=>(function(a){let b=[...a.matchAll(/^(#{2,3}) (.+)$/gm)],c=b.map((c,d)=>{let e=(c.index??0)+c[0].length,f=b[d+1]?.index??a.length,g=a.slice(e,f).trim(),h=c[1].length,i=c[2].trim().replace(/^\d+\.\s*/,"");return{level:h,title:i,id:`${i.toLowerCase().replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}-${d}`,md:g,parts:3===h&&/\*\*Force\.\*\*/.test(g)?function(a){let b=a.replace(/\n(?=(?:- )?\*\*[A-Z][^*\n]{0,30}\*\*)/g,"\n\n").replace(/[ \t]+(?=\*\*Not (?:when|to)\b)/g,"\n\n"),c=[];for(let a of b.split(/\n{2,}/)){let b=a.trim().replace(/^- /,"");if(!b)continue;let d=b.match(/^\*\*([^*\n]{1,30}?)[.:]?\*\*[.:]?\s*([\s\S]*)$/);d?c.push({label:d[1].trim(),md:d[2].trim()}):c.length?c[c.length-1].md+=`
2
+
3
+ ${b}`:c.push({label:"",md:b})}return c}(g):void 0}});return{intro:a.slice(0,b[0]?.index??a.length).trim(),blocks:c}})(r),[r]),x=(0,e.useMemo)(()=>[...w.map(({level:a,title:b,id:c})=>({level:a,title:b,id:c})),...t.length?[{level:2,title:"References",id:"references"}]:[]],[w,t.length]),y=(0,e.useRef)(null),[z,A]=(0,e.useState)(x[0]?.id),B=(0,e.useCallback)(a=>{let b=matchMedia("(prefers-reduced-motion: reduce)").matches;document.getElementById(a)?.scrollIntoView({behavior:b?"auto":"smooth",block:"start"}),history.replaceState(null,"",`#${a}`)},[]),C=x.find(a=>a.id===z),D=(0,d.jsxs)(i.rI,{modal:!1,children:[(0,d.jsx)(i.ty,{asChild:!0,children:(0,d.jsxs)(h.$,{size:"sm","aria-label":`On this page: ${C?.title??b}`,className:"min-w-0 max-w-48 xl:hidden",children:[(0,d.jsx)("span",{className:"truncate",children:C?.title??"On this page"}),(0,d.jsx)(g.a,{})]})}),(0,d.jsx)(i.SQ,{align:"end",className:"max-h-96 w-72 overflow-y-auto",children:x.map(a=>(0,d.jsx)(i._2,{onSelect:()=>B(a.id),className:(0,l.cn)(3===a.level&&"pl-6",a.id===z&&"bg-fill-selected text-fg-primary"),children:(0,d.jsx)("span",{className:"min-w-0 truncate",children:a.title})},a.id))})]});return(0,d.jsx)(m.w,{title:b,icon:(0,d.jsx)(f.i,{}),crumbs:[{label:"Skills",href:"/skills"}],actions:(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[x.length>1&&D,(0,d.jsx)(j.d,{checked:o,onCheckedChange:p,"aria-label":`Use ${b}`})]}),children:(0,d.jsxs)("div",{className:"flex items-start gap-12",children:[(0,d.jsxs)("div",{ref:y,className:"min-w-0 max-w-2xl flex-1",children:[c&&(0,d.jsx)("p",{className:"text-ui text-fg-secondary text-pretty",children:q(c)}),!o&&(0,d.jsx)("p",{className:"mt-2 text-ui text-fg-meta",children:"Off. The agent doesn’t read this skill."}),u&&(0,d.jsx)(k.hJ,{className:(0,l.cn)(v,"mt-6"),children:u}),w.map(a=>2===a.level?(0,d.jsxs)("section",{children:[(0,d.jsx)("h2",{id:a.id,className:"mt-12 scroll-mt-6 font-heading text-heading font-semibold text-fg-primary text-balance",children:a.title}),a.md&&(0,d.jsx)(k.hJ,{className:(0,l.cn)(v,"mt-4"),children:a.md})]},a.id):(0,d.jsxs)("section",{children:[(0,d.jsx)("h3",{id:a.id,className:"mt-12 scroll-mt-6 text-ui font-semibold text-fg-primary text-balance",children:a.title}),a.parts?(0,d.jsx)("dl",{className:"mt-4 grid gap-4",children:a.parts.map((a,b)=>(0,d.jsxs)("div",{className:"grid gap-1 md:flex md:items-baseline md:gap-6",children:[a.label&&(0,d.jsx)("dt",{className:"text-sm font-medium text-fg-meta md:w-32 md:shrink-0",children:a.label}),(0,d.jsx)("dd",{className:"min-w-0 flex-1",children:(0,d.jsx)(k.hJ,{className:v,children:a.md})})]},b))}):a.md&&(0,d.jsx)(k.hJ,{className:(0,l.cn)(v,"mt-3"),children:a.md})]},a.id)),t.length>0&&(0,d.jsx)("div",{id:"references",className:"scroll-mt-6",children:(0,d.jsx)(s,{skill:a,references:t})})]}),x.length>1&&(0,d.jsx)("nav",{"aria-label":"On this page",className:"sticky top-0 grid max-h-screen w-64 shrink-0 gap-0.5 overflow-y-auto pb-6 max-xl:hidden",children:x.map(a=>(0,d.jsx)("div",{className:(0,l.cn)(3===a.level&&"pl-3"),children:(0,d.jsx)(n.fI,{nav:!0,lead:null,title:(0,d.jsx)("span",{className:"block whitespace-normal text-pretty",children:a.title}),trailWidth:"w-0",selected:a.id===z,onClick:()=>B(a.id)})},a.id))})]})})}},47614:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{getRedirectError:function(){return g},getRedirectStatusCodeFromError:function(){return l},getRedirectTypeFromError:function(){return k},getURLFromRedirectError:function(){return j},permanentRedirect:function(){return i},redirect:function(){return h}});let d=c(91203),e=c(92781),f=c(19121).actionAsyncStorage;function g(a,b,c){void 0===c&&(c=d.RedirectStatusCode.TemporaryRedirect);let f=Object.defineProperty(Error(e.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return f.digest=e.REDIRECT_ERROR_CODE+";"+b+";"+a+";"+c+";",f}function h(a,b){var c;throw null!=b||(b=(null==f||null==(c=f.getStore())?void 0:c.isAction)?e.RedirectType.push:e.RedirectType.replace),g(a,b,d.RedirectStatusCode.TemporaryRedirect)}function i(a,b){throw void 0===b&&(b=e.RedirectType.replace),g(a,b,d.RedirectStatusCode.PermanentRedirect)}function j(a){return(0,e.isRedirectError)(a)?a.digest.split(";").slice(2,-2).join(";"):null}function k(a){if(!(0,e.isRedirectError)(a))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return a.digest.split(";",2)[1]}function l(a){if(!(0,e.isRedirectError)(a))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(a.digest.split(";").at(-2))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},52825:(a,b,c)=>{c.d(b,{w:()=>h});var d=c(21124),e=c(9202),f=c(25563),g=c(31541);function h({title:a,icon:b,line:c,children:h,crumbs:i,actions:j}){return(0,g.K7)(a,i?.at(-1)?.href),(0,d.jsxs)(f.Zk,{children:[(0,d.jsx)(f.M7,{icon:i?.length?void 0:b,title:a,crumbs:i,column:!0,children:j}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,d.jsxs)("div",{className:(0,e.cn)(f.Eb,"pb-24"),children:[c&&(0,d.jsx)("p",{className:"max-w-2xl text-ui text-fg-secondary text-pretty",children:c}),h]})})]})}},64404:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"notFound",{enumerable:!0,get:function(){return e}});let d=""+c(98541).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function e(){let a=Object.defineProperty(Error(d),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw a.digest=d,a}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},64712:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"unstable_rethrow",{enumerable:!0,get:function(){return d}});let d=c(25799).unstable_rethrow;("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},67837:(a,b,c)=>{function d(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"forbidden",{enumerable:!0,get:function(){return d}}),c(98541).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},82161:(a,b,c)=>{var d=c(93045);c.o(d,"notFound")&&c.d(b,{notFound:function(){return d.notFound}}),c.o(d,"redirect")&&c.d(b,{redirect:function(){return d.redirect}})},93045:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{ReadonlyURLSearchParams:function(){return k},RedirectType:function(){return e.RedirectType},forbidden:function(){return g.forbidden},notFound:function(){return f.notFound},permanentRedirect:function(){return d.permanentRedirect},redirect:function(){return d.redirect},unauthorized:function(){return h.unauthorized},unstable_isUnrecognizedActionError:function(){return l},unstable_rethrow:function(){return i.unstable_rethrow}});let d=c(47614),e=c(92781),f=c(64404),g=c(67837),h=c(29088),i=c(64712);class j extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class k extends URLSearchParams{append(){throw new j}delete(){throw new j}set(){throw new j}sort(){throw new j}}function l(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)}};
@@ -0,0 +1,3 @@
1
+ "use strict";exports.id=5442,exports.ids=[5442],exports.modules={5442:(a,b,c)=>{c.d(b,{NewSystem:()=>K,ProjectSystem:()=>C,SystemPage:()=>B,bG:()=>E});var d=c(21124),e=c(3991),f=c.n(e),g=c(42378),h=c(38301),i=c(83898),j=c(87050),k=c(19917),l=c(15716),m=c(21816),n=c(6612),o=c(28580),p=c(26639),q=c(94140),r=c(25563),s=c(31541),t=c(57159),u=c(78373),v=c(9297),w=c(56795),x=c(39997),y=c(87396),z=c(9202);function A({theme:a,className:b}){let{mode:c}=(0,y.b)();return(0,d.jsxs)(u.WB,{theme:{...a,mode:c},className:b,children:[(0,d.jsx)(v.wn,{title:"Colour",children:(0,d.jsx)("div",{className:"grid gap-5",children:w.n7.map(a=>(0,d.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col max-md:gap-2",children:[(0,d.jsx)("span",{className:"w-24 shrink-0 pt-1 text-ui text-fg-meta",children:a.name}),(0,d.jsx)("div",{className:"grid min-w-0 flex-1 grid-cols-4 gap-3 max-md:w-full max-md:gap-2",children:a.items.map(a=>(0,d.jsxs)("div",{className:"min-w-0",children:[a.text?(0,d.jsx)("div",{className:(0,z.cn)("grid h-14 place-items-center rounded-control bg-bg-content font-heading text-title font-semibold shadow-ring",a.cls),children:"Aa"}):(0,d.jsx)("div",{className:(0,z.cn)("h-14 rounded-control shadow-ring",a.cls)}),(0,d.jsx)("div",{className:"mt-1.5 truncate text-ui text-fg-secondary",children:a.name}),(0,d.jsx)(w.Kp,{className:"block break-all",children:a.token})]},a.token))})]},a.name))})}),(0,d.jsxs)(v.wn,{title:"Type",children:[(0,d.jsx)("div",{className:"grid grid-cols-2 gap-3 max-md:grid-cols-1",children:[{role:"Headings",family:a.fonts.heading.family,cls:"font-heading font-semibold"},{role:"Text",family:a.fonts.body.family,cls:"font-sans"}].map(a=>(0,d.jsxs)("div",{className:"flex items-center gap-4 rounded-panel bg-bg-content p-4 shadow-ring",children:[(0,d.jsx)("span",{className:(0,z.cn)("text-display text-fg-primary",a.cls),children:"Aa"}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"truncate text-ui text-fg-primary",children:a.family}),(0,d.jsx)("div",{className:"text-ui text-fg-meta",children:a.role})]})]},a.role))}),(0,d.jsx)("div",{className:"mt-4 grid",children:w.vH.map(b=>(0,d.jsxs)("div",{className:"flex min-h-11 items-center gap-4",children:[(0,d.jsx)("span",{className:(0,z.cn)("min-w-0 flex-1 truncate",b.cls),children:"text-title"===b.token?a.name:b.sample}),(0,d.jsx)(w.Kp,{className:"shrink-0",children:b.token})]},b.token))})]}),(0,d.jsx)(v.wn,{title:"Corners",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-x-6 gap-y-4",children:w.O7.map(a=>(0,d.jsxs)("div",{className:"grid justify-items-start gap-1.5",children:[(0,d.jsx)("span",{className:(0,z.cn)("size-12 bg-fill-control shadow-ring",a.cls)}),(0,d.jsx)(w.Kp,{children:a.token.replace("rounded-","")})]},a.token))})}),(0,d.jsx)(v.wn,{title:"Components",count:w.rT.length,children:(0,d.jsx)("div",{"data-specimen":!0,className:"grid grid-cols-2 gap-x-3 gap-y-6 max-md:grid-cols-1",children:w.rT.map(a=>(0,d.jsxs)("figure",{className:"min-w-0",children:[(0,d.jsx)("div",{className:"grid h-36 place-items-center overflow-hidden rounded-panel bg-bg-content px-4 shadow-ring",children:a.hero}),(0,d.jsx)("figcaption",{className:"mt-2 text-ui text-fg-secondary",children:a.name})]},a.id))})})]},`${a.slug}-${c}`)}function B({theme:a}){return(0,s.K7)(`${a.name}, Design systems`),(0,d.jsx)(r.Zk,{children:(0,d.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,d.jsx)(v.Y9,{title:a.name,crumbs:[{label:"Design systems",href:"/design-system"}]}),(0,d.jsxs)("div",{className:(0,z.cn)(r.Eb,"pb-24"),children:[(0,d.jsx)("p",{className:"max-w-xl text-ui text-fg-secondary text-pretty",children:a.line}),(0,d.jsx)(A,{theme:a,className:"mt-8"})]})]})})}function C({project:a,name:b,theme:c,others:e}){(0,s.K7)(`Design system, ${b}`);let[f,g]=(0,h.useState)(!1);return(0,d.jsx)(r.Zk,{children:(0,d.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,d.jsx)(v.Y9,{title:"Design system",children:!f&&(0,d.jsx)(j.$,{size:"sm",onClick:()=>g(!0),children:"Change design system"})}),(0,d.jsx)("div",{className:(0,z.cn)(r.Eb,"pb-24"),children:(0,d.jsx)(D,{project:a,name:b,theme:c,others:e,changing:f,onChanging:g})})]})})}function D({project:a,name:b,theme:c,others:e,changing:i,onChanging:j}){let{making:k,failed:l}=function(a,b){(0,g.useRouter)();let[c,d]=(0,h.useState)({making:!1,failed:null});return c}(0,c.slug),m=c.name.toLowerCase()===b.toLowerCase();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{className:"text-ui text-fg-secondary",children:["Every screen in ",b," is made in"," ",m?"its own system":(0,d.jsx)(f(),{href:`/design-system/${c.slug}`,className:"text-fg-primary underline-offset-4 outline-hidden hover:underline focus-visible:ring-2 focus-visible:ring-ring",children:c.name}),"."]}),k&&(0,d.jsxs)(v.vB,{status:"drawing",className:"mt-3",children:["Making ",b,"'s own system"]}),l&&!k&&(0,d.jsx)(v.vB,{danger:!0,className:"mt-3",children:l}),i&&(0,d.jsx)(F,{project:a,name:b,current:c,others:e,onCancel:()=>j(!1)}),(0,d.jsx)(A,{theme:c,className:"mt-8"})]})}function E({project:a,name:b,themeSlug:c}){let[e,f]=(0,h.useState)(null),[g,i]=(0,h.useState)(!1),k=e?.find(a=>a.slug===c)??e?.find(a=>"baseline"===a.slug);return k?(0,d.jsxs)("article",{className:"flex flex-col p-8 max-md:p-5","aria-label":`${b}'s design system`,children:[(0,d.jsxs)("header",{className:"flex flex-wrap items-center justify-between gap-3 pb-2",children:[(0,d.jsx)("h2",{className:"text-title font-semibold text-fg-primary",children:k.name}),!g&&(0,d.jsx)(j.$,{size:"sm",onClick:()=>i(!0),children:"Change design system"})]}),(0,d.jsx)(D,{project:a,name:b,theme:k,others:(e??[]).filter(a=>a.preset),changing:g,onChanging:i})]}):(0,d.jsx)("div",{className:"h-96"})}function F({project:a,name:b,current:c,others:e,onCancel:f}){let{mode:g}=(0,y.b)(),i=(0,t.uB)(),[k,l]=(0,h.useState)(""),[m,n]=(0,h.useState)(""),[o,p]=(0,h.useState)(""),[r,s]=(0,h.useState)(!1),w=[...e.filter(a=>a.slug!==c.slug).map(a=>({id:a.slug,name:a.name,line:a.line,swatch:(0,d.jsx)(u.Ig,{theme:{...a,mode:g}})})),{id:"new",name:"A new design system",line:`The agent makes one for ${b} from how you describe it.`,swatch:null}],x=async()=>{if(!k)return p("Pick a design system.");if("new"===k&&!m.trim())return p("Say how it should look and feel, in a few words.");s(!0),p("");let d=e.find(a=>a.slug===k),f="new"===k?`Give ${b} a design system of its own, in place of ${c.name}. Derive its type, colour, spacing, radius, primitives and components from what ${b} is for, then restyle every screen in it.
2
+
3
+ How it should look and feel: ${m.trim()}`:`Move ${b} from ${c.name} to ${d?.name}, and restyle every screen in it.`,g=await fetch("/api/plan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"brief",project:a,brief:f,crew:"one"})}).then(a=>a.json()).catch(()=>({error:"Couldn't reach Playground. Try again."}));if(s(!1),g.error)return p(g.error);i(`/p/${a}?view=plan`)};return(0,d.jsxs)("section",{"aria-labelledby":"change-q",className:"mt-8 grid gap-3",children:[(0,d.jsxs)("h2",{id:"change-q",className:"text-ui font-medium text-fg-primary",children:["Which design system should ",b," use?"]}),(0,d.jsx)("div",{role:"radiogroup","aria-labelledby":"change-q",className:"-mx-2 grid",children:w.map(a=>(0,d.jsx)(v.fI,{stacked:!0,lead:(0,d.jsx)("span",{"aria-hidden":!0,className:(0,z.cn)("size-3.5 rounded-full border border-fg-muted",k===a.id&&"border-fg-primary bg-fg-primary")}),title:a.name,parent:a.line,trail:a.swatch,trailWidth:"w-3",selected:k===a.id,checked:k===a.id,onClick:()=>(l(a.id),p(""))},a.id))}),"new"===k&&(0,d.jsx)(q.T,{"aria-label":"How it should look and feel",placeholder:"How should it look and feel?",autoFocus:!0,rows:3,value:m,onChange:a=>(n(a.target.value),p("")),"aria-invalid":!!o&&!m.trim()}),o&&(0,d.jsx)("p",{className:"text-sm text-status-danger",children:o}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(j.$,{variant:"primary",disabled:r,onClick:x,children:"Ask the agent"}),(0,d.jsx)(j.$,{variant:"ghost",onClick:f,children:"Cancel"})]})]})}let G=["What it's for","Where it starts","The look","What it needs"],H=["Buttons and inputs","Lists and rows","Cards","Navigation","Tables","Charts","Dialogs and sheets","Empty and loading states"],I=[["baseline","From Baseline","Baseline's components, restyled and renamed for it"],["reference","From a reference","A product you admire, which the agent drafts from"],["blank","From nothing","Foundations proposed from what it's for alone"]],J=(a,b)=>({...a,accent:{...a.accent,h:b.hue??a.accent.h},neutral:b.neutral??a.neutral,radius:b.radius??a.radius});function K({project:a,name:b,purpose:c,replaces:e,base:f}){(0,s.K7)(`New design system, ${b}`);let g=(0,t.uB)(),[u,w]=(0,h.useState)(0),[y,A]=(0,h.useState)(c),[B,C]=(0,h.useState)("baseline"),[D,E]=(0,h.useState)(""),[F,K]=(0,h.useState)({notes:""}),M=function(a,b){let c=[null!=b.hue&&`an accent at hue ${b.hue}`,b.neutral&&`${(0,x.NT)(J(a,b)).toLowerCase()} greys`,null!=b.radius&&`${x.n9.find(a=>a.r===b.radius)?.name.toLowerCase()} corners`].filter(Boolean);return[c.length?`Baseline with ${c.join(", ")}.`:"",b.notes.trim()].filter(Boolean).join(" ")}(f,F),[N,O]=(0,h.useState)(H.slice(0,4)),[P,Q]=(0,h.useState)(""),[R,S]=(0,h.useState)(!1),[T,U]=(0,h.useState)(""),V=`new-system:${a}`,[W,X]=(0,h.useState)(!1),Y=[y.trim()?"":"Say what it's for first.","reference"!==B||D.trim()?"":"Name the reference first.","",N.length?"":"Pick at least one."],Z=a=>(Q(""),w(a)),$=async()=>{let b=Y.findIndex(Boolean);if(b>=0)return w(b),Q(Y[b]);S(!0),Q(""),U("");let c=await fetch("/api/studio/system",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:a,purpose:y,start:B,reference:D,look:M,needs:N})}).then(a=>a.json()).catch(()=>({error:"Couldn't reach Playground."}));S(!1),c.error?U(c.error):(sessionStorage.removeItem(V),g(`/p/${a}/design-system`))},_=a=>P&&u===a?{"aria-invalid":!0,"aria-describedby":"ns-error"}:{},aa=a=>P&&u===a?(0,d.jsx)("p",{id:"ns-error",className:"text-sm text-status-danger",children:P}):null,ab=e?`Replace ${b}'s system`:`Make ${b}'s system`;return(0,d.jsx)(r.Zk,{children:(0,d.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,d.jsx)(v.Y9,{title:"New design system",crumbs:[{label:`${b}'s design system`,href:`/p/${a}/design-system`}]}),(0,d.jsxs)("div",{className:(0,z.cn)(r.Eb,"grid gap-x-10 gap-y-6 pb-24 md:grid-cols-4"),children:[(0,d.jsx)("nav",{"aria-label":"Steps",className:"grid content-start max-md:hidden",children:G.map((a,b)=>(0,d.jsx)(v.fI,{nav:!0,lead:(0,d.jsx)("span",{className:"num text-sm",children:b+1}),title:a,selected:b===u,onClick:()=>Z(b),trailWidth:"w-0"},a))}),(0,d.jsxs)("div",{className:"grid content-start gap-5 md:col-span-3",children:[(0,d.jsxs)("p",{className:"num -mb-3 text-sm text-fg-meta md:hidden",children:[u+1," of ",G.length]}),0===u&&(0,d.jsxs)("div",{className:"grid gap-1.5",children:[(0,d.jsxs)(n.J,{htmlFor:"ns-for",children:["What is ",b,"'s system for?"]}),(0,d.jsx)(q.T,{id:"ns-for",value:y,onChange:a=>A(a.target.value),autoFocus:!0,className:"field-sizing-content min-h-24",..._(0)}),aa(0)]}),1===u&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"grid gap-3",children:[(0,d.jsx)(n.J,{id:"ns-start",children:"Where should it start?"}),(0,d.jsx)(o.z,{"aria-labelledby":"ns-start",value:B,onValueChange:a=>C(a),className:"gap-4",children:I.map(([a,b,c])=>(0,d.jsxs)(l.D0,{orientation:"horizontal",children:[(0,d.jsx)(o.C,{value:a,id:`ns-start-${a}`}),(0,d.jsxs)(l.o7,{children:[(0,d.jsx)(l.dh,{htmlFor:`ns-start-${a}`,children:b}),(0,d.jsx)(l.ry,{children:c})]})]},a))})]}),"reference"===B&&(0,d.jsxs)("div",{className:"grid gap-1.5",children:[(0,d.jsx)(n.J,{htmlFor:"ns-ref",children:"Reference"}),(0,d.jsx)(m.p,{id:"ns-ref",value:D,onChange:a=>E(a.target.value),..._(1)}),aa(1)]})]}),2===u&&(0,d.jsx)(L,{base:f,picks:F,onPick:a=>K(b=>({...b,...a}))}),3===u&&(0,d.jsxs)("div",{className:"grid gap-3",children:[(0,d.jsx)(n.J,{id:"ns-needs",children:"What does it need?"}),(0,d.jsx)("div",{role:"group","aria-labelledby":"ns-needs",className:"grid gap-x-6 gap-y-3 sm:grid-cols-2",..._(3),children:H.map(a=>(0,d.jsxs)(l.D0,{orientation:"horizontal",children:[(0,d.jsx)(k.S,{id:`ns-need-${a}`,checked:N.includes(a),onCheckedChange:b=>O(c=>b?[...c,a]:c.filter(b=>b!==a))}),(0,d.jsx)(l.dh,{htmlFor:`ns-need-${a}`,children:a})]},a))}),aa(3)]}),(0,d.jsxs)("div",{className:"grid gap-1.5",children:[(0,d.jsxs)("div",{className:"flex gap-2",children:[u>0&&(0,d.jsx)(j.$,{onClick:()=>Z(u-1),children:"Back"}),u<3?(0,d.jsxs)(j.$,{variant:"primary",onClick:()=>Y[u]?Q(Y[u]):Z(u+1),children:["Next",(0,d.jsx)(i.Q,{})]}):(0,d.jsxs)(j.$,{variant:"primary",disabled:R,onClick:$,children:[R&&(0,d.jsx)(p.y,{}),ab]})]}),T&&(0,d.jsx)("p",{className:"text-sm text-status-danger",children:T})]})]})]})]})})}function L({base:a,picks:b,onPick:c}){let{mode:e}=(0,y.b)(),f=J(a,b);return(0,d.jsxs)("div",{className:"grid gap-6",children:[(0,d.jsx)(n.J,{children:"How should it look?"}),(0,d.jsxs)("div",{className:"grid gap-2",children:[(0,d.jsx)("span",{className:"text-sm text-fg-meta",children:"Accent"}),(0,d.jsx)(x.rz,{theme:f,mode:e,onPick:a=>c({hue:a})})]}),(0,d.jsxs)("div",{className:"grid max-w-md gap-2",children:[(0,d.jsx)("span",{className:"text-sm text-fg-meta",children:"Greys"}),(0,d.jsx)(x.h0,{theme:f,mode:e,onPick:a=>c({neutral:a})})]}),(0,d.jsxs)("div",{className:"grid max-w-md gap-2",children:[(0,d.jsx)("span",{className:"text-sm text-fg-meta",children:"Corners"}),(0,d.jsx)(x.$I,{theme:f,mode:e,onPick:a=>c({radius:a})})]}),(0,d.jsxs)("div",{className:"grid gap-1.5",children:[(0,d.jsx)(n.J,{htmlFor:"ns-look",children:"Anything else"}),(0,d.jsx)(q.T,{id:"ns-look",rows:3,value:b.notes,onChange:a=>c({notes:a.target.value})})]})]})}}};
@@ -0,0 +1,111 @@
1
+ exports.id=5548,exports.ids=[4874,5548],exports.modules={4803:(a,b,c)=>{"use strict";c.d(b,{$t:()=>A,Db:()=>R,Fg:()=>V,Ir:()=>B,Nj:()=>Q,Vz:()=>M,ZB:()=>K,e3:()=>H,ki:()=>I,nD:()=>L,sI:()=>P,u8:()=>C,vH:()=>O,vw:()=>W,w_:()=>N,zE:()=>J});var d=c(31421),e=c(73024),f=c(48161),g=c.n(f),h=c(76760),i=c.n(h),j=c(63515),k=c(80481),l=c(2667),m=c(22493),n=c(56460),o=c(9238),p=c(88128),q=c(37673);let r=()=>{if(process.env.PLAYGROUND_CLAUDE)return process.env.PLAYGROUND_CLAUDE;let a=i().join(g().homedir(),".local/bin/claude");return(0,e.existsSync)(a)?a:"claude"},s={opus:"claude-opus-5-5",fable:"claude-fable-5-2",sonnet:"claude-sonnet-5-5"},t={one:15,team:60},u={worker:{description:"Draws one direction of a spread, start to finish, from the lead's brief.",prompt:"You are one worker on a design team inside Baseline Playground. You draw exactly the one direction your brief names, in the cell it names, and nothing else. Read get_spread for the brief, the device, the assumptions and the accepted rules, and follow them exactly: they were decided for the whole team. Read with read_skill the skills your brief lists, and always design-exploration, visual-design and the medium's skill, then the Brain pages your brief lists. Draw the direction with add_direction as one complete HTML document at the device's real size with real content. Look at it with look_at_direction and fix what's wrong before you stop. Then reply in this shape: what you drew, each acceptance check passed or not, where you departed from the brief and why, what you couldn't check.",tools:["get_spread","add_direction","look_at_direction","list_skills","read_skill","read_brain","search_brain","read_page","read_taste"].map(a=>`mcp__playground__${a}`)},reviewer:{description:"Checks a round's new directions against the brief, the design system and the accepted rules, with fresh eyes.",prompt:"You review design work you didn't make, inside Baseline Playground. Read design-critique with read_skill first. Look at every direction your brief names with look_at_direction, and check each against the acceptance checks in your brief, the brief and assumptions in get_spread, and the accepted rules. Report each direction and each check as pass or fail with what you saw. Don't fix anything.",tools:["get_spread","look_at_direction","list_skills","read_skill","read_brain","search_brain","read_page"].map(a=>`mcp__playground__${a}`)}},v={builder:{description:"Builds one screen of an approved part of the plan in the app's code, from the lead's brief.",prompt:"You are one builder on a team inside Baseline Playground. You build exactly the one screen your brief names, in the files it names, and nothing else; other builders are changing the other screens at the same time. Read get_plan for the part as the person approved it and follow it. Read with read_skill frontend-craft, interaction-design, visual-design, ux-writing, the medium's skill and baseline-taste when the project uses Baseline's design system, then the Brain pages your brief lists. Build only from the design system's components and tokens. Look at the screen with screenshot and fix what's wrong before you stop. Don't commit. Then reply in this shape: the files you changed, each acceptance check passed or not, where you departed from the brief and why, what you couldn't check.",tools:["Read","Edit","Write","Glob","Grep",...["get_plan","list_projects","screenshot","get_feedback","list_skills","read_skill","read_brain","search_brain","read_page","read_taste"].map(a=>`mcp__playground__${a}`)]},checker:{description:"Checks the built screens against the approved part, the design system and the person's taste, with fresh eyes.",prompt:"You review screens you didn't build, inside Baseline Playground. Read design-critique with read_skill first. Look at every screen your brief names with screenshot, read its code, and check each against the acceptance checks in your brief and the part in get_plan. Report each screen and each check as pass or fail with what you saw. Don't fix anything.",tools:["Read","Glob","Grep",...["get_plan","screenshot","list_skills","read_skill","read_brain","search_brain","read_page"].map(a=>`mcp__playground__${a}`)]}},w={get_spread:"Reading the brief",read_skill:"Reading the skills",list_skills:"Reading the skills",read_brain:"Reading the Brain",search_brain:"Reading the Brain",read_page:"Reading the Brain",read_taste:"Reading your taste",add_direction:"Drawing",look_at_direction:"Looking at its work"},x=a=>"string"==typeof a&&a.trim()?a.trim():void 0,y={waiting:()=>["Checking what needs it"],list_projects:()=>["Looking at the projects"],get_spread:()=>["Reading the brief"],list_spreads:()=>["Looking at the explorations"],write_brief:()=>["Writing up the brief"],set_axes:a=>["Setting the axes",Array.isArray(a.x)&&Array.isArray(a.y)?`${a.x.join(" to ")}, ${a.y.join(" to ")}`:void 0],list_skills:()=>["Choosing the skills"],read_skill:a=>["Reading a skill",x(a.name)],read_brain:()=>["Reading the Brain"],search_brain:a=>["Searching the Brain",x(a.query)],read_page:a=>["Reading a Brain page",x(a.page)??x(a.name)],read_taste:()=>["Reading what you kept, cut and changed before"],get_feedback:()=>["Reading your feedback"],add_direction:a=>["Drawing a direction",x(a.name)],look_at_direction:a=>["Looking at its work",x(a.direction)],draw_screen:a=>["Drawing",x(a.name)],commit_screen:a=>["Committing",x(a.note)],Edit:a=>["Editing",x(a.file_path)?.split("/").slice(-2).join("/")],Write:a=>["Writing",x(a.file_path)?.split("/").slice(-2).join("/")],Read:a=>["Reading",x(a.file_path)?.split("/").slice(-2).join("/")],Grep:a=>["Searching the code for",x(a.pattern)],Glob:a=>["Finding files",x(a.pattern)],screenshot:()=>["Looking at it"],diff_screen:()=>["Measuring what changed"],pin_calls:()=>["Pinning its calls"],write_page:a=>["Writing to the Brain",x(a.title)],propose_rule:a=>["Proposing a rule",x(a.title)??x(a.rule)],finish_round:()=>["Finishing the round"],add_variant:a=>["Drawing a variant",x(a.name)],update_plan:()=>["Updating the plan"],get_plan:()=>["Reading the plan"],plan_section:a=>[a.status?"Marking the plan":"Writing the plan",x(a.title)],log_decision:a=>["Logging a decision",x(a.what)],Agent:a=>["Starting a worker",x(a.description)]};async function z(a,b,c,f,h,m={}){let n,o=m.model??"opus",p=m.crew??"one";(0,j.t1)(a)?.app&&(f=`${f}
2
+
3
+ ${function(a){let b=(0,j.t1)(a),c=(0,j._5)().projects.find(b=>b.slug===a)?.folder;return b?.app?`${b.name} is its own app: its screens are routes in the code in ${c} (${b.app.screens.map(a=>`${a.id} at ${a.path}`).join(", ")}), built with the Baseline design system's components (baseline-design-system/ui/*). The design is the product, so there is nothing to draw beside it.
4
+ Wherever these steps say to draw a version with draw_screen, change the code instead: read the route's files, edit them with the design system's components (never a hand-rolled control, colour or size), then call commit_screen with the screens it touched, every file you changed (files) and a note. Read the check commit_screen returns and fix everything it lists, committing again with fix true (it stays the same version), before you go on. screenshot pictures the running app. Run no installs, builds or tests.
5
+ When the check asks for something the design system doesn't have (a touch size, a text colour that passes in light), don't work round it in the app with tricks of your own: leave it, and say so as a doubt in pin_calls naming the design system gap, so it's fixed once in the design system for every project.`:""}(a)}`);let x=await (0,l.Te)(a,b,c,{model:o,crew:p});if("off"===process.env.PLAYGROUND_AGENT)return x;let{key:A}=await (0,j.Xg)();await e.promises.mkdir(l.pt,{recursive:!0});let B=i().join(l.pt,`${x.id}.mcp.json`);await e.promises.writeFile(B,JSON.stringify({mcpServers:{playground:{type:"http",url:`${h}/mcp`,headers:{Authorization:`Bearer ${A}`}}}}),{mode:384});let C=(0,e.createWriteStream)(i().join(l.pt,`${x.id}.log`)),D="team"===p,E=(0,j.t1)(a),F=E?.app?(0,j._5)().projects.find(b=>b.slug===a)?.folder:void 0,G=F?"Read,Edit,Write,Glob,Grep":"",H=["-p",f,"--mcp-config",B,"--strict-mcp-config","--model",s[o],"--max-budget-usd",String(t[p]),...D?["--tools",["Agent",G].filter(Boolean).join(","),"--allowedTools","Agent",...G?G.split(","):[],"mcp__playground","--agents",JSON.stringify(b.startsWith("build-")?v:u)]:["--tools",G,"--allowedTools",...G?G.split(","):[],"mcp__playground"],"--output-format","stream-json","--verbose"],I=(0,d.spawn)(r(),[...H,...F?["--add-dir",F]:[]],{cwd:F??g().tmpdir(),env:{...process.env,CLAUDE_CODE_ENTRYPOINT:"playground"},stdio:["ignore","pipe","pipe"]});I.stdout.pipe(C),I.stderr.pipe(C),await (0,l.PF)({...x,pid:I.pid});let J=new Map,K=[],L=Promise.resolve(),M=()=>L=L.then(()=>(0,l.W5)(x.id,{workers:[...J.values()],steps:K.slice(-40),...null!=n?{cost:n}:{}})).catch(()=>{}),N=a=>{K.push({at:new Date().toISOString(),...a}),K.length>80&&K.splice(0,K.length-40)};(0,k.createInterface)({input:I.stdout}).on("line",b=>{let c;try{c=JSON.parse(b)}catch{return}if("assistant"===c.type&&c.message?.content){let b=c.parent_tool_use_id?J.get(c.parent_tool_use_id)?.name:void 0,d=!1;for(let e of c.message.content)if("tool_use"===e.type&&e.name){("Edit"===e.name||"Write"===e.name)&&(0,q.RE)(a);let c=y[e.name.replace("mcp__playground__","")]?.(e.input??{});c&&(N({text:c[0],detail:c[1],who:b}),d=!0)}else if("text"===e.type&&!b&&e.text?.trim()){let a=e.text.trim().split(/\n+/)[0];N({text:a.length>160?`${a.slice(0,157).trimEnd()}...`:a,says:!0}),d=!0}d&&M()}if("system"===c.type&&"task_started"===c.subtype&&c.tool_use_id)J.set(c.tool_use_id,{id:c.tool_use_id,name:c.description??"A worker",state:"working",doing:"Starting"}),M();else if("system"===c.type&&"task_notification"===c.subtype&&c.tool_use_id&&J.has(c.tool_use_id)){let a=J.get(c.tool_use_id);J.set(a.id,{...a,state:"completed"===c.status?"done":"failed",doing:void 0}),M()}else if("assistant"===c.type&&c.parent_tool_use_id&&J.has(c.parent_tool_use_id)){let a=c.message?.content?.find(a=>"tool_use"===a.type)?.name?.replace("mcp__playground__",""),b=a&&w[a],d=J.get(c.parent_tool_use_id);b&&b!==d.doing&&(J.set(d.id,{...d,doing:b}),M())}else"result"===c.type&&"number"==typeof c.total_cost_usd&&(n=c.total_cost_usd,M())});let O=setTimeout(()=>I.kill("SIGTERM"),D?3e6:15e5),P=async c=>{clearTimeout(O),await e.promises.rm(B,{force:!0}).catch(()=>{}),await L,await (0,l.lb)(a,b,c?"failed":"done",c),await m.after?.().catch(()=>{})};return I.on("error",a=>void P(`Couldn't start Claude Code: ${a.message}`)),I.on("exit",(a,b)=>void P(0===a?void 0:b?"The run took too long and was stopped.":`Claude Code stopped with code ${a}.`)),{...x,pid:I.pid}}async function A(a,b,c,d={}){var e;let f=await (0,l.Ol)(a,b);if(!f)throw Error("No such spread.");let g="team"===d.crew?(e=f.round,`
6
+ You lead a team for this round. You plan, brief, check and assemble; you don't draw directions yourself.
7
+ - Do the reading in steps 1 and 2 yourself${1===e?", and write_brief and set_axes yourself: they are the decisions every worker inherits":""}.
8
+ - Decide each direction this round: its name, its idea in one line, and its free cell (x, y). One worker per direction.
9
+ - Write the content every direction shows, once, and put it word for word in every brief: the people, the items and their names, the numbers and dates, the states (what's done, paused, late). Directions must differ in idea, never in data, so the person can compare them.
10
+ - Start one "worker" agent per direction with the Agent tool. Never more than 5 at once: with 6 directions, start 5 and start the sixth when the first one reports. Each brief gives: the project and spread ids; the direction's name, idea and cell; the skills to read; and these acceptance checks: one complete HTML document at the device's real size; real content and copy, no placeholders; only the design system's tokens; every current assumption followed; every accepted rule followed; the shared content used exactly as given; it differs in idea from the other directions named in the brief.
11
+ - When every worker is done, start one "reviewer" agent with the list of new directions and the same acceptance checks.
12
+ - For each direction the reviewer fails, send one worker to redraw it once, with add_direction's replaces set to that direction's id so the redraw takes its place. Then stop redrawing.
13
+ - Then do steps 5 and 6 yourself. Never call finish_round before every worker is done.`):"";return z(a,b,f.round,`${function(a,b,c,d=!1){return["You are the designer inside Baseline Playground. The person directs and you make. There is no chat: nobody reads a reply from you, so everything you make goes into the spread through the playground tools. Design is fast and iterative: run no tests or builds and wait on none; put the time into making the design right, then hand it over.\n",`Project: ${a}. Spread: ${b}. Round ${c}.`,"\n1. Call get_spread. It holds the brief, the device (and, for a responsive design, every size: then each direction is one document that works at desktop 1440, tablet 834 and phone 390, judged at desktop), the axes, every direction so far with the person's reactions (keep, cut and why), the empty cells they asked you to explore, and the rules they accepted from their taste.\n2. Read the skills that fit with read_skill: design-exploration first (directions differ in structure on named axes, never colourways of one layout), then visual-design, ux-writing, interaction-design for anything that moves, scrolls or is dragged, spatial-design for a canvas or a space, human-agent-interaction when the product has an agent in it, web-app-design for desktop or ios-design for phone, and baseline-taste when the project uses Baseline's design system. Read the Brain's index with read_brain and the pages that bear on this. Follow every accepted rule.",1===c&&d?"3. The person approved your plan (get_spread shows it, with any edits they made): follow it and don't rewrite it. Name the two axes that matter most for this brief with set_axes, each a pair of short opposite words (such as Calm and Lively, Guided and Open). Then draw 6 directions that differ in idea, not just in colour, with add_direction. Place each where it sits on the axes: x from 0 (the first word of the x axis) to 3, y from 0 to 2. Spread them across the map.":1===c?"3. Write the brief up with write_brief: who it's for, what done looks like, what it's built with, two or three assumptions where the brief is silent (each with options, your pick first), and your plan. Then name the two axes that matter most for this brief with set_axes, each a pair of short opposite words (such as Calm and Lively, Guided and Open). Then draw 6 directions that differ in idea, not just in colour, with add_direction. Place each where it sits on the axes: x from 0 (the first word of the x axis) to 3, y from 0 to 2. Spread them across the map.":"3. Cut directions are gone. For each kept direction, draw one or two that go further in the way the person's reasons point, in free cells next to it. For each cell the person asked for, draw a direction that belongs at that spot on both axes. Draw at most 6 this round.","4. Before each direction, call get_spread again and follow the current value of every assumption: the person may flip one while you work. Each direction is one complete HTML document at the device's real size, a working screen with real content and real copy, styled only with the design system's tokens (see the server instructions). Name it in two or three words that say what is different about it, and give a one-line note on the idea.\n5. Then call read_taste. If a preference has held at least 3 times across the person's reactions with no exception, propose it with propose_rule as one sentence with its evidence.\n6. Keep the plan current with update_plan: every step with its status (done, doing, todo), and any step the work now needs.\n7. Call finish_round with one short sentence (under 160 characters) on what this round explored. Stop after that."].join("\n")}(a,b,f.round,!!f.approved)}${g}
14
+
15
+ ${(0,n.TT)(a)}`,c,d)}async function B(a,b,c,d={}){let e=await (0,l.Ol)(a,b);if(!e)throw Error("No such spread.");let f=[F,"",`Project: ${a}. Spread: ${b}. You are planning it; nothing is drawn yet.`,"\n1. Call get_spread for the brief. Read the skills that fit with read_skill (design-thinking first: frame the brief before planning) and the Brain's index with read_brain and the pages that bear on it, and read_taste.",e.replan?`2. The person turned your last plan down: "${e.replan}". Plan again with that in mind.`:"2. Think through what this needs before any design: who it's for, what done looks like, what it's built with, what the brief leaves open.","3. Write the plan with write_brief: who it's for, what done looks like, what it's built with, two or three assumptions where the brief is silent (each with options, your pick first), and the plan as four to seven short steps from exploring to a built screen, each a few words a person can check off (such as Explore six directions on the phone, Pick one and refine it, Walk the person through it, Build it in the repo).\n4. Stop after write_brief. The person reads the plan, edits it and approves it before you draw anything."].join("\n");return z(a,b,0,`${f}
16
+
17
+ ${(0,n.TT)(a)}`,c,d)}let C=a=>`crit-${a}`;async function D(a,b){let c=(await (0,l.$c)()).find(c=>c.project===a&&c.chosen?.screen===b);return c?`Before you stop, keep the plan of spread ${c.id} current with update_plan: every step with its status, and any step the work now needs.`:""}function E(a,b){let c=(0,j.t1)(a),d=c?.app?.screens.find(a=>a.id===b),f=(0,j._5)().projects.find(b=>b.slug===a)?.folder;return c?.app&&d&&f?{path:d.path,folder:f,port:c.app.port,files:function(a,b){let c=(b.split(/[?#]/)[0]||"/").split("/").filter(Boolean),d=["app","src/app"].filter(b=>(0,e.existsSync)(i().join(a,b))),f=[],g=(b,d)=>{let h=[];try{h=(0,e.readdirSync)(i().join(a,b),{withFileTypes:!0})}catch{return}for(let a of h)a.isFile()&&/^page\.(tsx|ts|jsx|js)$/.test(a.name)&&d.length===c.length&&d.every((a,b)=>a.startsWith("[")||a===c[b])?f.push(i().join(b,a.name)):!a.isDirectory()||a.name.startsWith("_")||a.name.startsWith("@")||"api"===a.name||g(i().join(b,a.name),/^\(.*\)$/.test(a.name)?d:[...d,a.name])};for(let a of d)g(a,[]);let h=f.sort((a,b)=>(a.match(/\[/g)?.length??0)-(b.match(/\[/g)?.length??0))[0];if(!h)return[];let j=[h];try{for(let b of(0,e.readFileSync)(i().join(a,h),"utf8").matchAll(/from\s+["']@\/([^"']+)["']/g)){let c=b[1],d=[".tsx",".ts","/index.tsx","/index.ts"].map(a=>c+a).find(b=>(0,e.existsSync)(i().join(a,b))||(0,e.existsSync)(i().join(a,"src",b)));d&&!d.startsWith("lib/")&&j.push((0,e.existsSync)(i().join(a,d))?d:i().join("src",d))}}catch{}return j}(f,d.path)}:null}let F="You are the designer inside Baseline Playground. The person directs and you make. There is no chat: nobody reads a reply from you, so everything you make goes into Playground through the playground tools. Design is fast and iterative: run no tests or builds and wait on none; put the time into making the design right, then hand it over. Read the design skills with read_skill before you draw anything (the medium's skill, visual-design, ux-writing and interaction-design: how it moves and answers the hand is part of the design; design-exploration when there are options to make, spatial-design for a canvas or a space, human-agent-interaction when the product has an agent in it, baseline-taste when the project uses Baseline's design system), build only from the project's design system, and never hand over a first render: judge it with design-critique beside the strongest real product of its kind, fix what fails, twice. The project's plan is its source of truth: when what you made changes what a part of it says, rewrite that part with plan_section before you finish. A screen that shows a list or data also has an empty state: draw it too (draw_screen with state empty, or ?state=empty on an app's route, listed in design/project.json).",G=globalThis.__handedOver??=new Map;function H(a,b,c){let d=Date.now();for(let{id:c,v:e}of b)G.set(`${a}/${c}/${e}`,d);let e=async()=>{if((await (0,l.readRuns)()).some(c=>c.project===a&&"running"===c.status&&!!(0,l.KM)(c.project,c.spread)&&Date.parse(c.started)<=d&&!b.some(a=>c.spread===C(a.id)))&&Date.now()-d<27e5)return void setTimeout(e,2e4);for(let{id:d,v:e}of b)(await (0,m.readCrit)(a,d))?.version===e||(0,l.KM)(a,C(d))||await J(a,d,e,c).catch(()=>{})};setTimeout(()=>void e(),6e4)}function I(a){if("off"===process.env.PLAYGROUND_AGENT)return;let b=globalThis;if(b.__walkSweep)return;b.__walkSweep=!0;let d=async()=>{try{let b=(await (0,l.readRuns)()).filter(a=>"running"===a.status&&(0,l.KM)(a.project,a.spread)),d=2-b.filter(a=>a.spread.startsWith("crit-")).length;if(d<=0)return;let{listProjects:e,readProjectState:f}=await Promise.resolve().then(c.bind(c,63515));for(let c of(await e())){if(b.some(a=>a.project===c.slug))continue;let e=(await f(c.slug)??{}).status??{};for(let b of c.screens){if(d<=0)return;if(!b.awaitingWalk&&(e[b.id]??b.status)!=="review"||"html"!==b.kind&&"app"!==b.kind||(await (0,m.readCrit)(c.slug,b.id))?.version===b.version||(0,l.KM)(c.slug,C(b.id))||Date.now()-(G.get(`${c.slug}/${b.id}/${b.version}`)??0)<3e5)continue;let f=(await (0,l.readRuns)()).find(a=>a.project===c.slug&&a.spread===C(b.id)&&a.round===b.version);f?.status!=="failed"&&(await J(c.slug,b.id,b.version,a).catch(()=>{}),d--)}}}catch{}};setTimeout(()=>void d(),5e3),setInterval(()=>void d(),12e4)}async function J(a,b,d,e){let{readDecisions:f}=await Promise.resolve().then(c.bind(c,86042)),g=(await f(a)).filter(a=>a.screen===b&&a.version===d),h=["You are writing the walkthrough of a screen in Baseline Playground: the steps the person follows to review a new version, each pinned on the area it is about. Nobody reads a reply from you; the walkthrough is what you make. Don't redesign, judge or change anything, and don't read the Brain, the skills or the person's taste: the version is made, and your job is to show what was done and why, from the record below and the measured change.\n",`Project: ${a}. Screen: ${b}, version ${d}.`,g.length?`What was decided for this version, by whom and why:
18
+ ${g.map(a=>`- ${a.who}: ${a.what}${a.why?` Why: ${a.why}`:""}${a.tradeoff?` It cost: ${a.tradeoff}`:""}`).join("\n")}`:"Nothing was logged for this version: read the steps from what changed.","",`1. In your first turn, call these at once: screenshot of version ${d}, get_feedback for the screen${d>1?`, and diff_screen for version ${d} (what really changed from version ${d-1}, piece by piece)`:""}.`,`2. Call pin_calls once: three to six steps in the order that tells the story.${d>1?" First each changed area diff_screen found (changed true, its area as given), each saying what changed in the words of the record above; then any other decision that shaped the screen.":" The decisions that shaped the screen."} For each, the area it's about (x and y its centre, w and h its size, as percentages of the screen from its top left; outline the whole element), what was decided in one short sentence (under 90 characters), and why in one or two plain sentences, from the record. Mark doubt true where the record shows a choice that could have gone the other way, and give the other way in its why.`,"3. Stop after pin_calls."].join("\n");return z(a,C(b),d,h,e)}async function K(a,b,c,d,e,f,g,h){let j=E(a,b),k=[F,"",`Project: ${a}. Screen: ${c} (${b}), version ${d}.`,"\nThe person reviewed it in a crit.",e.length?`They undid these calls of yours, so the next version must not keep them:
19
+ ${e.map(a=>`- ${a.text}`).join("\n")}`:"They undid none of your calls.",f.length?`They marked these places on the screen (x and y as percentages from its top left):
20
+ ${f.map(a=>`- at ${Math.round(a.x)},${Math.round(a.y)}: "${a.text}"`).join("\n")}`:"They left no marks.","",`1. In your first turn, call all of these at once, in parallel, not one after another: screenshot of the current version, read_taste (what the person has kept, cut and undone before), and read_skill for design-critique (change the smallest thing they named, inside the approved structure), the medium's skill, visual-design, ux-writing, interaction-design and, when the project uses Baseline's design system, baseline-taste${j?.files.length?`, and Read for ${j.files.map(a=>i().join(j.folder,a)).join(", ")}`:""}. Read a Brain page only when a mark names something the Brain decided. Then start the change: don't search for what you were given.`,j?`2. Make version ${d+1} in the app's own code: the screen is the route ${j.path} of the app in ${j.folder}${j.files.length?`, served by ${j.files[0]}${j.files.length>1?` with ${j.files.slice(1).join(", ")}`:""}: start there, and search the code only for what those files don't show`:""}. Change its code with the project's design system components, answering every undone call and every mark and keeping everything else, then call commit_screen with screens ["${b}"], every file you changed (files) and a note: one plain sentence, under 100 characters, on what changed for the person using the screen, in sentence case with a full stop (such as "The week's chart now fits on the screen without scrolling."). Fix everything its check lists and commit again with fix true. Never draw_screen: nothing is drawn beside the app.`:`2. Draw version ${d+1} with draw_screen under the same screen name, answering every undone call and every mark and keeping everything else. Give it a note: one plain sentence, under 100 characters, on what changed for the person using the screen, in sentence case with a full stop, no semicolons and no list of edits (such as "The week's chart now fits on the screen without scrolling."). Look at it with screenshot and fix what's wrong before you go on.`,`3. Call diff_screen for version ${d+1}: it measures what really changed. Then walk the person through it with pin_calls, in the order that tells its story: first each changed area diff_screen found (changed true, its area as given), one step per undone call and per mark, saying what you changed and which comment or mark it answers; then any other call that matters. Outline the whole area each is about (x, y, w and h as percentages). Mark doubt true on anything you're not sure of and give the other way in its why.`,"4. Stop after pin_calls.",await D(a,b)].join("\n");return z(a,C(b),d+1,`${k}
21
+
22
+ ${(0,n.TT)(a)}`,g,{model:h})}async function L(a,b,c,d){let e=E(a,b.id),f=c.from,g=[F,"",`Project: ${a}. Screen: ${b.name} (${b.id}), version ${b.version}, drawn for ${b.device} at ${b.w} by ${b.h}.`,"",f?`The person liked one of this screen's variants, "${f.name}" (${f.line}), and asked for ${c.count} variants of that variant${c.text.trim()?`, saying what should change: "${c.text.trim()}"`:""}. Every variant starts from "${f.name}", not from the screen: keep what makes it "${f.name}" and vary it further, each a different step from it.`:`The person asked for ${c.count} variants of this screen${c.text.trim()?`, and said what should change: "${c.text.trim()}"`:""}.`,"A variant changes the layout only: the same information arranged another way (what leads, how it's grouped, how dense, a list or tiles, what sits together). Keep the screen's colours, type, components, words and numbers exactly; a new component is fine when a layout needs one. Never change colour, typography or component style: the design system owns the look.","Where on four layout dimensions to look, each with three stops (0, 1, 2):",c.ranges,"","1. Look at the screen with screenshot. Read read_taste and the Brain page \"Variants are layout, on one screen\" with read_page. Read with read_skill design-exploration (each variant differs in structure on a named axis, never the same layout nudged), visual-design, perception, the medium's skill and baseline-taste when the project uses Baseline's design system.",...e?[`2. This screen is the route ${e.path} of the project's own app, in ${e.folder}. A variant is made in that code, never drawn: copy ${f?.path?`the variant's page (${f.path}, made of ${(f.files??[]).join(", ")})`:"the route's page"} into a new page of the app at ${p.e2}/${b.id}/<variant-slug>, under the same layouts as the route (in Next.js, inside the same route group folder, so it has the same shell), and rearrange it there, with the same components, data and words. Don't change the real route, don't touch anything else, and don't commit.`,`3. Make ${c.count} variants, one at a time, each clearly different from the screen and from each other, inside the ranges above where you can. Look at each running with screenshot of its address on the app (http://127.0.0.1:${e.port}${p.e2}/${b.id}/<variant-slug>) and fix what's wrong. Hand each over with add_variant as soon as it's done: a name of two or three words in sentence case (such as "Streaks first"), one plain sentence on how the layout differs, its place on the four dimensions as at (four numbers, 0 to 2, in the order above), its path (${p.e2}/${b.id}/<variant-slug>) and files (every file you made for it, relative to the project's folder), and no html.`]:[c.html?`2. ${f?`"${f.name}"'s`:"Its"} HTML, which every variant starts from (keep its stylesheet and change only where things sit):
23
+
24
+ ${c.html}`:"2. It isn't drawn in HTML yet: rebuild it faithfully from the screenshot (same colours, type and parts), then rearrange that.",`3. Draw ${c.count} variants, one at a time, each clearly different from the screen and from each other, inside the ranges above where you can. Hand each over with add_variant as soon as it's done: a name of two or three words in sentence case (such as "Streaks first"), one plain sentence on how the layout differs, its place on the four dimensions as at (four numbers, 0 to 2, in the order above), and the whole HTML document at ${b.w} by ${b.h}.`],"4. Then name the one you'd use, from every variant waiting under the screen (earlier ones too), with pick_variant: its id and one plain sentence on what it does for the person using the product.","5. Stop. Don't draw the screen itself, don't call draw_screen, and don't pin calls."].join("\n");return z(a,`variants-${b.id}`,b.version,`${g}
25
+
26
+ ${(0,n.TT)(a)}`,d)}async function M(a,b,c,d){let e=E(a,b.id);if(!e)throw Error("That screen isn't a route of the project's app.");let f=[F,"",`Project: ${a}. Screen: ${b.name} (${b.id}), version ${b.version}, the route ${e.path} of the app in ${e.folder}.`,"",`The person chose the variant "${c.name}" (${c.line}) for this screen. It runs at ${c.path}; its code is ${c.files.join(", ")||`under ${p.e2}/${b.id}`}.`,"",`1. Read frontend-craft and the medium's skill with read_skill. Make version ${b.version+1}: change the real route ${e.path} so it is laid out as the variant, with the same components, data and words, keeping everything the variant didn't change. Then delete the variant's files (and its empty folders under ${p.e2}).`,`2. Call commit_screen with screens ["${b.id}"], every file you changed (files) and a note: one plain sentence, under 100 characters, on what changed for the person using the screen. Fix everything its check lists and commit again with fix true.`,`3. Call diff_screen for version ${b.version+1}, then walk the person through it with pin_calls, each changed area as diff_screen gives it (changed true).`,"4. Stop after pin_calls."].join("\n");return z(a,C(b.id),b.version+1,`${f}
27
+
28
+ ${(0,n.TT)(a)}`,d)}async function N(a,b,c,d){let e=[F,"",`Project: ${b} (${a}). Make this product its own design system.`,"",`What it's for: ${c.purpose}`,`Where it starts: ${"reference"===c.start?`from a reference the person admires: ${c.reference}. Study what you know of its type, colour, density and components.`:"baseline"===c.start?"from Baseline's own system, restyled and renamed for this product.":"from nothing: propose foundations from the brief alone."}`,`The look, in the person's words: ${c.look||"not said; choose from what it's for."}`,`What it needs: ${c.needs.join(", ")||"the usual set"}.`,"\n1. Read the design-systems and visual-design skills, and better-colors if it's on, and the project's brief (list_projects).",`2. Create the system's foundations with create_theme, named ${b}: an accent (oklch), the greys' hue and tint, a heading and a body face that hold up at 13px, and corner roundness. Then set it on the project with set_theme.`,`3. Record it with write_page as a decision titled "${b}'s design system": what it's for, each foundation you chose and why, the components it needs and how each should feel, and what it must never do. Cite the person's answers as the source.`,"4. Stop after write_page."].join("\n");return z(a,"system",1,e,d)}let O=a=>`plan-${a}`,P=a=>`build-${a}`;async function Q(a,b,c,d,e={}){let f=[F,"",`Project: ${a}. The person asked for something new: "${c}". It is part ${b} of the project's plan, and you are planning it; nothing is built yet.`,"\n1. Read the whole plan with get_plan: the project's brief and every part before this one, built or not, so this part fits what's there. Read list_projects for the screens, read_taste, the skills that fit (design-thinking first) and the Brain's index and the pages that bear on it.\n2. Look at what exists before you plan: screenshot the screens this would touch, and for a project that is its own app, read its routes and components.",`3. Write the part with plan_section (section ${b}): a title under 60 characters; what it does for the person using the product, in one or two sentences; what it uses (the skills, the design system's components, routes or files); how you'll go about it and why, in one or two sentences; the screens it adds or changes (such as Pay (new), Invoices (changed)); and the one question the brief leaves open, with two to four answers, your pick first, and what each answer means in one short sentence (ask.why). Plain words, no jargon: the person reads it like a document and edits any line.`,"4. Stop after plan_section. The person edits it, then approves it or turns it down, before you build anything."].join("\n");return z(a,O(b),0,`${f}
29
+
30
+ ${(0,n.TT)(a)}`,d,e)}async function R(a,b,c,d,e,f={}){let g=[F,"",`Project: ${a}. The person asked to change part ${b} of the project's plan: "${c}"${d?`, about the screen ${d}`:""}. You are rewriting that part; nothing is built yet.`,"",`1. Read get_plan: part ${b} as it stands, and every other part, so the rewrite fits. Read read_taste, design-thinking with read_skill, and the Brain pages that bear on it.`,`2. Look at what they mean before you write: screenshot ${d||"the screens the part names"} and read get_feedback for it.`,`3. Rewrite part ${b} with plan_section so it says what the product will be once this change is made: the title if it no longer fits, what it does, what it uses, how you'll go about it and why, the screens it changes (such as Week (changed)), and the one question it leaves open, your pick first, with what each answer means (ask.why). Keep every line the change doesn't touch.`,"4. Stop after plan_section. The person approves the rewrite, edits it or turns it down before you build anything."].join("\n");return z(a,O(b),0,`${g}
31
+
32
+ ${(0,n.TT)(a)}`,e,f)}async function S(a,b,c,d={}){let e=[F,"",`Project: ${a}. The person approved part ${b} of the plan. Build it now.`,"",..."team"===d.crew?["You lead a team for this build: the person chose it with the brief. Split the part by screen. Write each builder a brief (the screen, its files, what the part says it must do, the acceptance checks, the skills and Brain pages to read) and start one builder per screen with the Agent tool, at most 5 at once; screens that share a file go to the same builder. When they're done, start one checker on every screen they built and have a builder fix each failure once. Then you commit each screen, walk the person through it and mark the plan yourself, as below.",""]:[],`1. Read get_plan: part ${b} is what you build, as the person left it (they may have edited lines, and they answered its open question). Follow it; don't rewrite it. Read with read_skill frontend-craft (state first, the design system's real components, the gates), interaction-design, design-systems and the medium's skill, then the skills and Brain pages the part names.`,"2. Build each screen it adds or changes. For a project that is its own app, change its code and call commit_screen; otherwise draw with draw_screen. Give each version a note, and say why in one or two sentences and what it cost (tradeoff), so the decision log can tell the story later. Fix everything the screen check lists before you go on.","3. For any real choice between alternatives you made along the way that a version's why doesn't cover, call log_decision.","4. Walk the person through each screen you changed with pin_calls (diff_screen first for a screen that had a version before): what changed and why, your doubts last.",`5. Call plan_section for part ${b} with status review and the screens it touched. Stop.`].join("\n");return z(a,P(b),1,`${e}
33
+
34
+ ${(0,n.TT)(a)}`,c,d)}let T=new Map,U=new Set;function V(a,b,c){T.set(a,[...T.get(a)??[],...b]),U.has(a)||function a(b,c){let d=T.get(b)?.shift();return d?(U.add(b),(0,o.m3)(b).then(a=>a.sections.find(a=>a.id===d)?.crew).catch(()=>void 0).then(e=>S(b,d,c,{crew:e??"one",after:async()=>a(b,c)}))):void U.delete(b)}(a,c)}async function W(a,b){if("off"===process.env.PLAYGROUND_AGENT||!b.trim())return[];let c=(0,j.t1)(a),e=await (0,o.m3)(a).catch(()=>null),f=(e?.sections??[]).map(a=>`- ${a.title}`).join("\n")||"(nothing planned yet)",h=`You are the designer in Baseline Playground. Someone has just written a brief for ${c?.name??a}. Before you plan it, ask what you must know to plan it well.
35
+
36
+ The plan so far:
37
+ ${f}
38
+
39
+ The brief:
40
+ ${b.trim()}
41
+
42
+ Ask at most three questions, and only ones whose answer changes what the plan says: who it's for, what it must do first, a choice the brief leaves open. Never ask about who builds it or which design system: those are asked already. If the brief is clear, ask nothing.
43
+
44
+ Each question is one short sentence in plain words, with two to four answers of a few words each, in sentence case, the likeliest first. No numbering, no hedging.
45
+
46
+ Reply with JSON only, no prose: {"questions":[{"question":"...","options":["...","..."]}]}`;return new Promise(a=>{let b=(0,d.spawn)(r(),["-p",h,"--model",s.sonnet,"--tools","","--max-budget-usd","0.5","--output-format","text"],{cwd:g().tmpdir(),env:{...process.env,CLAUDE_CODE_ENTRYPOINT:"playground"},stdio:["ignore","pipe","ignore"]}),c="";b.stdout.on("data",a=>c+=a);let e=setTimeout(()=>b.kill("SIGTERM"),9e4);b.on("close",()=>{clearTimeout(e);try{let b=JSON.parse(c.slice(c.indexOf("{"),c.lastIndexOf("}")+1));a((b.questions??[]).filter(a=>a.question&&a.options?.length).slice(0,3).map((a,b)=>({id:`q${b+1}`,question:String(a.question).trim(),options:a.options.slice(0,4).map(a=>String(a).trim())})))}catch{a([])}}),b.on("error",()=>(clearTimeout(e),a([])))})}},22493:(a,b,c)=>{"use strict";c.d(b,{BY:()=>s,Gl:()=>u,Lp:()=>p,Yx:()=>q,i4:()=>t,readCrit:()=>n,vE:()=>r});var d=c(73024),e=c(76760),f=c.n(e),g=c(77598),h=c(63515),i=c(2667);let j=/^[a-z0-9-]+$/,k=(a,b)=>f().join((0,h.tY)(a),"crits",`${b}.json`),l=()=>new Date().toISOString(),m=a=>Math.min(100,Math.max(0,Number(a)||0));async function n(a,b){if(j.test(a)&&j.test(b))try{return JSON.parse(await d.promises.readFile(k(a,b),"utf8"))}catch{return}}async function o(a,b){b.updated=l();let c=k(a,b.screen);await d.promises.mkdir(f().dirname(c),{recursive:!0});let e=`${c}.${process.pid}.${Date.now()}.tmp`;await d.promises.writeFile(e,JSON.stringify(b,null,1)),await d.promises.rename(e,c)}async function p(a,b,c,d){if(!Array.isArray(d)||!d.length)throw Error("Pin at least one call: where on the screen (x and y as percentages), what you decided, and why.");let e=a=>null!=a&&Number(a)?Math.min(100,Math.max(2,Number(a))):void 0,f=d.slice(0,8).map(a=>{let b;return{x:m(a.x),y:m(a.y),w:e(a.w),h:e(a.h),text:(b=String(a.text??"").trim(),b.length<=160?b:`${b.slice(0,160).replace(/\s+\S*$/,"")}…`),why:String(a.why??"").trim().slice(0,320),doubt:!!a.doubt,changed:!!a.changed||void 0}}).filter(a=>a.text),h=[...f.filter(a=>!a.doubt),...f.filter(a=>a.doubt)].map((a,b)=>({...a,id:(0,g.randomBytes)(3).toString("hex"),n:b+1})),i=await n(a,b),j={screen:b,version:c,calls:h,marks:i&&i.version===c?i.marks:[],updated:l()};return await o(a,j),j}async function q(a,b,c,d){let e=await n(a,b),f=e?.calls.find(a=>a.id===c);if(!e||!f)throw Error("That call isn't on this screen.");f.undone=d||void 0,d&&(f.kept=void 0),await o(a,e);let g=(0,i.u)();return g.reactions.push({at:l(),project:a,spread:`crit:${b}`,direction:`v${e.version}`,name:f.text,note:f.why,reaction:d?"cut":"keep",why:d?"Undid this call in a crit":"Restored this call in a crit"}),await (0,i.fU)(g),e}async function r(a,b,c,d){let e=await n(a,b),f=e?.calls.find(a=>a.id===c);if(!e||!f)throw Error("That call isn't on this screen.");if(f.kept=d||void 0,d&&(f.undone=void 0),await o(a,e),d){let c=(0,i.u)();c.reactions.push({at:l(),project:a,spread:`crit:${b}`,direction:`v${e.version}`,name:f.text,note:f.why,reaction:"keep",why:"Said it looks right in a walkthrough"}),await (0,i.fU)(c)}return e}async function s(a,b,c,d,e,f){let h=await n(a,b)??{screen:b,version:c,calls:[],marks:[],updated:l()};if(!f.trim())throw Error("Say what's off.");return h.marks.push({id:(0,g.randomBytes)(3).toString("hex"),x:m(d),y:m(e),text:f.trim().slice(0,240),at:l()}),await o(a,h),h}async function t(a,b,c){let d=await n(a,b);if(!d)throw Error("No crit on this screen.");return d.marks=d.marks.filter(a=>a.id!==c),await o(a,d),d}let u=a=>a?{undone:a.calls.filter(a=>a.undone),marks:a.marks}:{undone:[],marks:[]}},56460:(a,b,c)=>{"use strict";c.d(b,{Ln:()=>k,TT:()=>l,sb:()=>j});var d=c(73024),e=c(76760),f=c.n(e),g=c(63515);let h={autonomy:"decide"},i=a=>f().join((0,g.tY)(a),"studio.json");function j(a){try{return{...h,...JSON.parse((0,d.readFileSync)(i(a),"utf8"))}}catch{return h}}async function k(a,b){let c={...j(a),...b};if(!["explore","decide"].includes(c.autonomy))throw Error("Autonomy is Explore or Decide.");return await d.promises.mkdir(f().dirname(i(a)),{recursive:!0}),await d.promises.writeFile(i(a),JSON.stringify(c,null,1)),c}let l=a=>"Make the small calls yourself (spacing, alignment, copy that follows the voice, empty, loading and error states) and bring the person directions and anything new to the design system. Where the project's plan asks you to hold back on something, bring it to the person instead."},78335:()=>{},88128:(a,b,c)=>{"use strict";c.d(b,{e2:()=>G,rn:()=>H,OL:()=>R,M$:()=>F,NG:()=>P,sg:()=>D,vW:()=>K,oD:()=>M,GJ:()=>y,_O:()=>Q,rx:()=>I,RO:()=>E,Uo:()=>O,hj:()=>C,ng:()=>J,EU:()=>z});var d=c(73024),e=c(76760),f=c.n(e),g=c(63515),h=c(2667);let i=[{id:"density",name:"Density",stops:["Airy","Balanced","Compact"]},{id:"structure",name:"Structure",stops:["List","Mixed","Tiles"]},{id:"leads",name:"Leads with",stops:["The total","Both","The habits"],project:"habit-tracker"},{id:"organised",name:"Organised by",stops:["Habit","Status","Day"],project:"habit-tracker"}],j=[{name:"Read",streak:"41 days",short:"41 days",month:97,weeks:[100,100,96,100,90]},{name:"Meditate",streak:"23 days",short:"23 days",month:90,weeks:[86,100,90,96,78]},{name:"Run",streak:"Paused, 9 days",short:"Paused",month:52,weeks:[86,80,62,10,0],paused:!0},{name:"Drink water",streak:"12 days",short:"12 days",month:86,weeks:[70,96,80,100,84]},{name:"Stretch",streak:"5 days",short:"5 days",month:95,weeks:[96,100,90,100,88]}],k=[54,62,48,58,36],l=j.filter(a=>!a.paused),m=`
47
+ :root{--tint:#0068DA;--l2:rgba(60,60,67,.76);--sep:rgba(60,60,67,.29);--fill:rgba(120,120,128,.12);--orange:#B34A00}
48
+ *{box-sizing:border-box;margin:0}
49
+ body{width:390px;height:844px;overflow:hidden;background:#F2F2F7;font:400 17px/22px -apple-system,"SF Pro Text",system-ui,sans-serif;color:#000;position:relative;-webkit-font-smoothing:antialiased}
50
+ .status{position:absolute;top:0;left:0;right:0;height:54px;display:flex;justify-content:space-between;align-items:center;padding:6px 32px 0 40px;font-weight:600;font-size:16px}
51
+ .page{position:absolute;top:104px;left:20px;right:20px;bottom:83px;display:flex;flex-direction:column}
52
+ h1{font-size:34px;line-height:41px;font-weight:700;letter-spacing:.4px}
53
+ .sub{margin-top:5px;font-size:15px;line-height:20px;color:var(--l2)}
54
+ .seg{margin-top:16px;height:32px;flex:none;border-radius:8px;background:var(--fill);display:flex;padding:2px}
55
+ .seg div{flex:1;text-align:center;font-size:13px;line-height:28px;border-radius:7px}
56
+ .seg .on{background:#fff;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
57
+ .card{background:#fff;border-radius:10px;flex:none}
58
+ .num{font-size:52px;line-height:56px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.3px}
59
+ .cap{font-size:15px;line-height:20px;color:var(--l2);margin-top:2px}
60
+ .bars{display:flex;gap:10px}
61
+ .bars div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;line-height:13px;color:var(--l2)}
62
+ .bars i{display:block;width:100%;border-radius:4px;background:var(--tint)}
63
+ .mini{display:flex;align-items:flex-end;gap:3px}
64
+ .mini i{display:block;flex:1;border-radius:2px;background:var(--tint)}
65
+ .hd{margin:18px 0 6px;padding-left:20px;font-size:13px;line-height:18px;color:var(--l2)}
66
+ .cell{height:44px;display:flex;align-items:center;padding-left:20px;position:relative}
67
+ .cell+.cell:before{content:"";position:absolute;top:0;left:20px;right:0;height:.33px;background:var(--sep)}
68
+ .cell span{flex:1}
69
+ .cell b{font-weight:400;color:var(--l2);padding-right:20px;font-variant-numeric:tabular-nums}
70
+ .p{color:var(--orange)!important}
71
+ .l2{color:var(--l2)}
72
+ .tabs{position:absolute;left:0;right:0;bottom:0;height:83px;background:rgba(249,249,249,.94);border-top:.33px solid var(--sep);display:flex;padding-top:6px}
73
+ .tabs div{flex:1;text-align:center;font-size:10px;line-height:12px;font-weight:500;color:var(--l2)}
74
+ .tabs svg{display:block;margin:0 auto 3px;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
75
+ .tabs .on{color:var(--tint)}
76
+ .home{position:absolute;bottom:8px;left:128px;width:134px;height:5px;border-radius:3px;background:#000}
77
+ `,n=`<div class="tabs">
78
+ <div><svg viewBox="0 0 26 26"><circle cx="13" cy="13" r="9"/><path d="M9 13l3 3 5-6"/></svg>Today</div>
79
+ <div><svg viewBox="0 0 26 26"><rect x="4" y="5" width="18" height="17" rx="3"/><path d="M4 11h18M9 3v4M17 3v4"/></svg>Week</div>
80
+ <div class="on"><svg viewBox="0 0 26 26"><path d="M6 21v-7M13 21V5M20 21v-10"/></svg>Stats</div>
81
+ </div><div class="home"></div>`,o=(a=!0)=>`<h1>Stats</h1>${a?'<div class="sub">5 habits, 1 streak paused</div>':""}`,p=a=>`<div class="seg"${null!=a?` style="margin-top:${a}px"`:""}><div>Week</div><div class="on">Month</div><div>Year</div></div>`,q=(a,b=1,c=!0)=>`<div class="bars" style="height:${a}px">${k.map((a,d)=>`<div><i style="height:${Math.round(a*b)}px"></i>${c?`W${d+1}`:""}</div>`).join("")}</div>`,r=(a,b,c)=>`<div class="mini" style="width:${b}px;height:${c}px">${a.map(a=>`<i style="height:${Math.max(2,Math.round(a/100*c))}px"></i>`).join("")}</div>`,s=(a=j,b=44)=>a.map(a=>`<div class="cell" style="height:${b}px"><span>${a.name}</span><b class="${a.paused?"p":""}">${a.streak}</b></div>`).join(""),t=["var(--fill)","rgba(0,104,218,.3)","rgba(0,104,218,.6)","var(--tint)"],u=[{id:"original",name:"Version 4",line:"",at:[1,1,0,0],body:`${o()}${p()}
82
+ <div class="card" style="margin-top:20px;height:206px;padding:16px 20px;position:relative"><div class="num">84%</div><div class="cap">of check-ins done in November</div>
83
+ <div style="position:absolute;left:20px;right:20px;bottom:14px">${q(80)}</div></div>
84
+ <div class="hd">Current streaks</div><div class="card">${s()}</div>`},{id:"streaks",name:"Streaks first",line:"The habits lead, each with its streak and this month's rate. The month's total moves under them.",at:[1,0,2,0],body:`${o()}${p()}
85
+ <div class="hd" style="margin-top:20px">Current streaks</div>
86
+ <div class="card">${j.map(a=>`<div class="cell" style="height:58px"><span style="display:flex;flex-direction:column"><span>${a.name}</span><span class="l2" style="font-size:13px;line-height:18px">${a.month}% this month</span></span><b class="${a.paused?"p":""}">${a.streak}</b></div>`).join("")}</div>
87
+ <div class="hd">November</div>
88
+ <div class="card" style="display:flex;align-items:flex-end;gap:20px;padding:14px 20px"><div><div style="font-size:34px;line-height:41px;font-weight:600;font-variant-numeric:tabular-nums">84%</div><div class="cap">of check-ins done</div></div><div style="flex:1">${q(60,.55,!1)}</div></div>`},{id:"airy",name:"One big number",line:"November's 84% fills the top with room around it, the weeks under it at full height.",at:[0,1,0,0],body:`${o(!1)}${p()}
89
+ <div class="num" style="margin-top:32px;font-size:76px;line-height:80px">84%</div><div class="cap" style="font-size:17px;line-height:22px">of check-ins done in November</div>
90
+ <div style="margin-top:28px">${q(124,1.25)}</div>
91
+ <div class="card" style="margin-top:28px">${s()}</div>`},{id:"tiles",name:"Tiles",line:"The total and the weeks share one card; every habit gets a tile, and Run sits apart.",at:[1,2,1,0],body:`${o()}${p()}
92
+ <div class="card" style="margin-top:20px;display:flex;align-items:flex-end;gap:20px;padding:16px 20px"><div><div class="num" style="font-size:44px;line-height:48px">84%</div><div class="cap">of check-ins<br>in November</div></div><div style="flex:1">${q(72,.75,!1)}</div></div>
93
+ <div style="margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px">${l.map(a=>`<div class="card" style="padding:14px 16px"><div class="l2" style="font-size:15px;line-height:20px">${a.name}</div><div style="margin-top:4px;font-size:22px;line-height:28px;font-weight:600;font-variant-numeric:tabular-nums">${a.streak}</div><div class="l2" style="font-size:13px;line-height:18px">${a.month}% this month</div></div>`).join("")}</div>
94
+ <div class="card" style="margin-top:12px"><div class="cell"><span>Run</span><b class="p">Paused, 9 days</b></div></div>`},{id:"table",name:"Table",line:"Every habit in one table: its streak, its month and its five weeks side by side.",at:[2,0,1,0],body:`${o()}${p()}
95
+ <div class="card" style="margin-top:20px;padding:4px 0">
96
+ <div style="display:grid;grid-template-columns:1fr 92px 44px 60px;gap:8px;align-items:center;height:32px;padding:0 16px 0 20px;font-size:13px;line-height:18px" class="l2"><span>Habit</span><span>Streak</span><span>Month</span><span>Weeks</span></div>
97
+ ${j.map(a=>`<div class="cell" style="display:grid;grid-template-columns:1fr 92px 44px 60px;gap:8px;height:40px;padding-right:16px;font-size:15px"><span>${a.name}</span><span class="${a.paused?"p":"l2"}">${a.short}</span><span class="l2" style="font-variant-numeric:tabular-nums">${a.month}%</span>${r(a.weeks,60,18)}</div>`).join("")}
98
+ <div class="cell" style="display:grid;grid-template-columns:1fr 92px 44px 60px;gap:8px;height:40px;padding-right:16px;font-size:15px;font-weight:600"><span>All habits</span><span></span><span style="font-variant-numeric:tabular-nums">84%</span>${r(k.map(a=>a/62*100),60,18)}</div>
99
+ </div>`},{id:"cards",name:"A card per habit",line:"Each habit is its own card with its five weeks drawn small. The total closes the page.",at:[1,2,2,0],body:`${o()}${p()}
100
+ <div style="margin-top:20px;display:flex;flex-direction:column;gap:10px">${j.map(a=>`<div class="card" style="display:flex;align-items:center;gap:16px;padding:12px 16px 12px 20px"><div style="flex:1"><div style="font-weight:600">${a.name}</div><div class="${a.paused?"p":"l2"}" style="font-size:15px;line-height:20px">${a.streak}</div></div>${r(a.weeks,72,30)}<div class="l2" style="width:40px;text-align:right;font-size:15px;font-variant-numeric:tabular-nums">${a.month}%</div></div>`).join("")}</div>
101
+ <div class="hd">November</div>
102
+ <div class="card"><div class="cell"><span>All habits</span><b>84% of check-ins</b></div></div>`},{id:"calendar",name:"Month grid",line:"November as a calendar, each day tinted by how many habits were done. The streaks follow in a tighter list.",at:[2,1,0,2],body:`${o()}${p()}
103
+ <div class="card" style="margin-top:20px;padding:14px 16px 16px">
104
+ <div style="display:flex;justify-content:space-between;align-items:baseline"><span style="font-weight:600">November</span><span class="l2" style="font-size:15px">84% of check-ins</span></div>
105
+ <div class="l2" style="margin-top:10px;display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center;font-size:11px;line-height:13px"><span>M</span><span>T</span><span>W</span><span>T</span><span>F</span><span>S</span><span>S</span></div>
106
+ <div style="margin-top:6px;display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:24px;gap:5px">${[...Array(6).fill("transparent"),...[3,3,2,3,3,1,3,3,3,2,3,3,0,2,3,3,3,3,2,3,1,3,3,3,2,3,2,0,0,0].map((a,b)=>b>=27?"rgba(120,120,128,.06)":t[a])].map(a=>`<i style="border-radius:6px;background:${a}"></i>`).join("")}</div>
107
+ </div>
108
+ <div class="hd">Current streaks</div><div class="card">${s(j,38)}</div>`},{id:"status",name:"Going and paused",line:"The habits split into the ones going and the one paused, under the month's total.",at:[1,0,0,1],body:`${o()}${p()}
109
+ <div class="card" style="margin-top:20px;display:flex;align-items:flex-end;gap:20px;padding:16px 20px"><div><div class="num" style="font-size:44px;line-height:48px">84%</div><div class="cap">of check-ins<br>in November</div></div><div style="flex:1">${q(80,.9)}</div></div>
110
+ <div class="hd">Going</div><div class="card">${s(l)}</div>
111
+ <div class="hd">Paused</div><div class="card"><div class="cell"><span>Run</span><b class="p">9 days</b></div></div>`}],v=a=>u.find(b=>b.id===a),w=[[/\b(dens(e|er)|compact|tight(er)?|more on screen)\b/,0,[2,2]],[/\b(airy|calm(er)?|spacious|room(ier)?|breath(e|ing))\b/,0,[0,0]],[/\blists?\b/,1,[0,0]],[/\b(tiles?|cards?|grid)\b/,1,[2,2]],[/\b(total|big number|headline|one number)\b/,2,[0,0]],[/\b(habits? (first|lead)|streaks? (first|lead))\b/,2,[2,2]],[/\b(status|paused)\b/,3,[1,1]],[/\b(days?|calendar|month view)\b/,3,[2,2]]],x=a=>f().join((0,g.tY)(a),"variants.json"),y=(a,b,c)=>f().join((0,g.tY)(a),"variants",b,`${c}.html`),z=a=>`variants-${a}`;async function A(a){try{return JSON.parse(await d.promises.readFile(x(a),"utf8"))}catch{return{}}}async function B(a,b){await d.promises.mkdir(f().dirname(x(a)),{recursive:!0}),await d.promises.writeFile(x(a),JSON.stringify(b,null,1))}async function C(a,b){let c=(await A(a))[b]??{items:[]},d=!!(0,h.KM)(a,z(b)),e=(await (0,h.readRuns)()).find(c=>c.project===a&&c.spread===z(b)),f=d&&c.asked?Math.max(0,c.asked.from+c.asked.count-c.items.length):0,g=c.pick&&c.items.some(a=>a.id===c.pick.id)?c.pick:null;return{items:c.items,pending:f,running:d,failed:!d&&e?.status==="failed"&&c.asked?e.error??"The agent stopped before drawing them all.":null,ranges:c.asked?.ranges??null,pick:g,parent:c.asked?.parent??null}}async function D(a){return Object.fromEntries(Object.entries(await A(a)).map(([a,b])=>[a,b.items.length]).filter(([,a])=>a))}function E(a,b){return i.flatMap((c,d)=>{if(b&&"project"in c&&c.project!==b)return[];let[e,f]=a[d]??[0,2];return[`- ${c.name} (${c.stops.join(", ")}): ${e===f?`hold at ${c.stops[e]}`:0===e&&f===c.stops.length-1?"any":`between ${c.stops[e]} and ${c.stops[f]}`}`]}).join("\n")}async function F(a,b,c,d,e,f){let g=await A(a),h=g[b]??{items:[]},i=e.trim()?function(a,b){let c=a.toLowerCase(),d=b.map(a=>[...a]);for(let[a,b,e]of w)a.test(c)&&(d[b]=e);return d}(e,c):c;if(f&&!h.items.some(a=>a.id===f))throw Error("That variant isn't under this screen any more.");if("off"===process.env.PLAYGROUND_AGENT&&"habit-tracker"===a&&"stats"===b){var j;let c=(j=["original",...h.items.map(a=>a.layout??"")],u.filter(a=>!j.includes(a.id)).map((a,b)=>{let c;return{l:a,d:(c=a.at,c.reduce((a,b,c)=>a+Math.max(0,i[c][0]-b,b-i[c][1]),0)),k:b}}).sort((a,b)=>a.d-b.d||a.k-b.k).slice(0,d).map(a=>a.l.id)),e=Date.now(),k=Math.max(e,...h.items.map(a=>a.readyAt));return h.asked={count:d,from:h.items.length,ranges:i,...f?{parent:f}:{}},h.items.push(...c.map((a,b)=>({id:`${a}-${e.toString(36)}`,name:v(a).name,line:v(a).line,at:[...v(a).at],layout:a,readyAt:k+900*(b+1),...f?{parent:f}:{}}))),g[b]=h,await B(a,g),{ranges:i,agent:!1,drawn:c.length}}return h.asked={count:d,from:h.items.length,ranges:i,...f?{parent:f}:{}},g[b]=h,await B(a,g),{ranges:i,agent:!0,drawn:d}}let G="/playground-variants";async function H(a,b,c){let e=await A(a),g=e[b]??{items:[]},h=c.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)||"variant",j=`${h}-${Date.now().toString(36)}`;return c.html&&(await d.promises.mkdir(f().dirname(y(a,b,j)),{recursive:!0}),await d.promises.writeFile(y(a,b,j),c.html)),g.items.push({id:j,name:c.name.trim(),line:c.line.trim(),at:i.map((a,b)=>Math.max(0,Math.min(2,Math.round(Number(c.at[b])||0)))),readyAt:Date.now(),...c.path?{path:c.path,files:c.files??[]}:{},...g.asked?.parent?{parent:g.asked.parent}:{}}),e[b]=g,await B(a,e),{id:j,count:g.items.length}}async function I(a,b,c,d){let e=await A(a),f=e[b];if(!f?.items.some(a=>a.id===c))throw Error("There's no variant with that id under this screen.");f.pick={id:c,why:d.trim()},await B(a,e)}async function J(a,b,c){let e=(await A(a))[b]?.items.find(a=>a.id===c);if(!e)return null;if(e.layout){var f;return f=e.layout,`<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=390"><style>${m}</style></head><body><div class="status"><span>9:41</span><span>100%</span></div><div class="page">${v(f).body}</div>${n}</body></html>`}return d.promises.readFile(y(a,b,c),"utf8").catch(()=>null)}async function K(a,b){return"html"!==b.kind||(b.drawnFrom??1)>b.version?null:d.promises.readFile((0,g.OM)(a,b.id,b.version),"utf8").catch(()=>null)}async function L(a,b){let c=(0,g._5)().projects.find(b=>b.slug===a)?.folder;if(!c||!b?.files?.length)return;let e=new Set;for(let a of b.files){let b=f().resolve(c,a);b.startsWith(f().resolve(c)+f().sep)&&b.includes(`${f().sep}playground-variants${f().sep}`)&&(await d.promises.rm(b,{force:!0}),e.add(f().dirname(b)))}for(let a of e)for(;a.includes(`${f().sep}playground-variants`)&&0===(await d.promises.readdir(a).catch(()=>["x"])).length;)await d.promises.rmdir(a).catch(()=>{}),a=f().dirname(a)}async function M(a,b,c){let e=await A(a),f=e[b];if(f){let g=new Set([c]);for(let a=!0;a;)for(let b of(a=!1,f.items))b.parent&&g.has(b.parent)&&!g.has(b.id)&&(g.add(b.id),a=!0);for(let c of f.items.filter(a=>g.has(a.id)))await L(a,c),await d.promises.rm(y(a,b,c.id),{force:!0});f.items=f.items.filter(a=>!g.has(a.id)),f.asked?.parent&&g.has(f.asked.parent)&&delete f.asked.parent,await B(a,e)}return C(a,b)}async function N(a,b,c){let e=await A(a);for(let d of e[b]?.items??[])d.id!==c&&await L(a,d);delete e[b],await B(a,e),await d.promises.rm(f().join((0,g.tY)(a),"variants",b),{recursive:!0,force:!0})}async function O(a,b,c){return(await A(a))[b]?.items.find(a=>a.id===c)}async function P(a,b,c){return await N(a,b,c),C(a,b)}async function Q(a,b){return await N(a,b),C(a,b)}async function R(a,b,c,d){let e=(await A(a))[b.id]?.items.find(a=>a.id===d),f=e&&await J(a,b.id,d);if(!e||!f)throw Error("That variant isn't on the row any more.");let h=await (0,g.rA)(a,b.name,f,c,`${e.name}: ${e.line}`.slice(0,120));return await N(a,b.id),{...await C(a,b.id),version:h.v}}},96487:()=>{}};