@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
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[843],{24025:(e,t,a)=>{Promise.resolve().then(a.bind(a,82441))},46601:(e,t,a)=>{"use strict";a.d(t,{G6:()=>v,Gf:()=>h,HH:()=>p,Mj:()=>u,No:()=>g,TN:()=>o,U9:()=>_,cv:()=>c,fF:()=>w,gz:()=>l,kb:()=>d,p_:()=>k,tD:()=>s,tF:()=>m,u8:()=>f});var n=a(12115),r=a(66978);let c=r.q0,s=r.Xb,l=e=>"ok"!==e.outcome,o=e=>{var t;return"".concat(e.at,"|").concat(e.method,"|").concat(null!=(t=e.tool)?t:"","|").concat(e.ms)},i=(e,t)=>e.toDateString()===t.toDateString();function d(e,t){let a=new Date(e);return i(a,t)?"Today":i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",...a.getFullYear()!==t.getFullYear()&&{year:"numeric"}})}let u=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),h=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",second:"2-digit"}),p=e=>new Date(e).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"});function g(e,t){let a=new Date(e);return i(a,t)?u(e):i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{month:"short",day:"numeric"})}let m=e=>{var t;return"string"==typeof(null==(t=e.args)?void 0:t.project)?e.args.project:void 0},f=e=>{let t=m(e),a=(e=>{var t,a;let n="string"==typeof(null==(t=e.args)?void 0:t.screen)?e.args.screen:void 0;return n||e.screen?{id:n,name:null!=(a=e.screen)?a:n}:void 0})(e);return t&&(null==a?void 0:a.id)?"/p/".concat(t,"?screen=").concat(a.id):void 0};function v(e,t){var a;let[r,c]=(0,n.useState)(e),[s,l]=(0,n.useState)(null),[i,d]=(0,n.useState)(0),[u,h]=(0,n.useState)(null),p=(0,n.useRef)(t);p.current=t,(0,n.useEffect)(()=>{h(new Date);let e="",t=async()=>{if("visible"!==document.visibilityState)return;let t=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);if(null==t?void 0:t.ok){let a=await t.text();if(a!==e){let t=!e;e=a;let n=JSON.parse(a).entries;(!t||n.length)&&(p.current?l(n):c(n))}d(0)}else d(e=>e+1);h(new Date)};t();let a=setInterval(t,5e3);return()=>clearInterval(a)},[]),(0,n.useEffect)(()=>{!t&&s&&(c(s),l(null))},[t,s]);let g=s&&r.length?s.findIndex(e=>o(e)===o(r[0])):s?s.length:0;return{entries:r,now:u,fresh:g<0?null!=(a=null==s?void 0:s.length)?a:0:g,showNew:()=>{s&&c(s),l(null)},stale:i>=2}}function w(e){let t=e=>/[",\n]/.test(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e,a=e.map(e=>{var t,a,n,r;return[e.at,e.client,c(e),null!=(t=e.project)?t:"",null!=(a=e.screen)?a:"",e.version?String(e.version):"",e.method,null!=(n=e.tool)?n:"",e.args?JSON.stringify(e.args):"",e.outcome,null!=(r=e.error)?r:"",String(e.ms)]}),n=URL.createObjectURL(new Blob([[["Time","App","What","Project","Screen","Version","Method","Tool","Arguments","Outcome","Error","Took (ms)"],...a].map(e=>e.map(t).join(",")).join("\n")],{type:"text/csv"}));Object.assign(document.createElement("a"),{href:n,download:"playground-activity-".concat(new Date().toISOString().slice(0,10),".csv")}).click(),URL.revokeObjectURL(n)}let _=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(t,"s");return"".concat(e," ").concat(1===e?t:a)},k=e=>{var t;return e.length<=1?null!=(t=e[0])?t:"":"".concat(e.slice(0,-1).join(", ")," and ").concat(e.at(-1))}},66978:(e,t,a)=>{"use strict";a.d(t,{Xb:()=>r,q0:()=>s});let n=new Set(["draw_screen","write_page","create_flow","set_theme","create_theme","write_brief","set_axes","add_direction","finish_round","propose_rule","pin_calls","answer_note","add_variant","pick_variant","plan_section","update_plan","log_decision","commit_screen","create_project"]),r=e=>"tools/call"===e.method&&!!e.tool&&n.has(e.tool),c=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function s(e){var t,a,n,r,s;if("refused"===e.method)return"Refused a request without this Playground's key";let l=null!=(n=c(e,"name"))?n:null==(a=c(e,"uri"))||null==(t=a.match(/skill:\/\/baseline\/([^/]+)/))?void 0:t[1],o=null!=(r=e.screen)?r:c(e,"screen");switch(e.method){case"initialize":case"server/discover":return"Connected";case"tools/list":return"Listed the tools";case"skills/list":case"resources/list":return"Listed the skills";case"skills/get":case"resources/read":return l?"Read the ".concat(l," skill"):"Read a skill"}if("tools/call"!==e.method)return e.method;switch(e.tool){case"list_skills":return"Listed the skills";case"read_skill":return l?"Read the ".concat(l," skill"):"Read a skill";case"list_projects":return"Listed the projects";case"get_feedback":return o?"Read the feedback on ".concat(o):"Read the feedback";case"read_brain":return"Read the Brain's index";case"search_brain":return c(e,"query")?'Searched the Brain for "'.concat(c(e,"query"),'"'):"Searched the Brain";case"read_page":return c(e,"page")?"Read the ".concat(c(e,"page")," page"):"Read a Brain page";case"write_page":return c(e,"title")?"Wrote the ".concat(c(e,"title")," page"):"Wrote a Brain page";case"lint_brain":return"Checked the Brain";case"list_flows":return"Listed the flows";case"create_flow":return c(e,"name")?"Saved the ".concat(c(e,"name")," flow"):"Saved a flow";case"waiting":return"Checked what is waiting";case"list_themes":return"Listed the themes";case"set_theme":return c(e,"theme")?"Set the theme to ".concat(c(e,"theme")):"Set a theme";case"create_theme":return c(e,"name")?"Saved the ".concat(c(e,"name")," theme"):"Saved a theme";case"list_spreads":return"Listed the spreads";case"get_spread":return c(e,"spread")?"Read the ".concat(c(e,"spread")," spread"):"Read a spread";case"write_brief":return"Wrote up a brief";case"set_axes":return"Named a spread's axes";case"add_direction":return c(e,"name")?"Drew the ".concat(c(e,"name")," direction"):"Drew a direction";case"look_at_direction":return"Looked at a direction";case"finish_round":return"Finished a round";case"read_note":return"Read a note";case"answer_note":return"Answered a note";case"pin_calls":return o?"Marked its calls on ".concat(o," for your walkthrough"):"Marked its calls for your walkthrough";case"add_variant":return c(e,"name")?"Drew the ".concat(c(e,"name")," layout").concat(o?" of ".concat(o):""):"Drew a layout".concat(o?" of ".concat(o):"");case"pick_variant":return o?"Picked a layout for ".concat(o):"Picked a layout";case"get_plan":return e.project?"Read the plan for ".concat(e.project):"Read the plan";case"plan_section":return c(e,"title")?"Updated the ".concat(c(e,"title")," part of the plan"):"Updated a part of the plan";case"update_plan":return"Updated the steps of a round";case"log_decision":return c(e,"what")?"Logged a decision: ".concat(c(e,"what")):"Logged a decision";case"commit_screen":return c(e,"note")?"Committed a change: ".concat(c(e,"note")):"Committed a change";case"open_playground":return"Opened Playground";case"create_project":return c(e,"name")?"Started ".concat(c(e,"name")):"Started a project";case"read_taste":return"Read your taste";case"propose_rule":return c(e,"rule")?"Proposed a rule: ".concat(c(e,"rule")):"Proposed a rule";case"draw_screen":return e.version?"Drew version ".concat(e.version," of ").concat(o):"Tried to draw ".concat(null!=o?o:"a screen");case"diff_screen":return e.version?"Measured what changed in version ".concat(e.version," of ").concat(o):"Measured what changed in ".concat(null!=o?o:"a screen");case"screenshot":{let t=c(e,"device");return"Looked at ".concat(null!=o?o:"a screen").concat(t?" on ".concat(t):"")}}return"Used ".concat(null!=(s=e.tool)?s:"a tool")}},82441:(e,t,a)=>{"use strict";a.d(t,{ActivityChanges:()=>C});var n=a(95155),r=a(52619),c=a.n(r),s=a(12115),l=a(20063),o=a(98435),i=a(14233),d=a(54963),u=a(19352),h=a(21886),p=a(26510),g=a(72551),m=a(79911),f=a(22747),v=a(36955),w=a(68772),_=a(68515),k=a(50847),j=a(74371),y=a(32296),x=a(80526),S=a(46601);let b={screen:o.P,theme:i.e,flow:d.A,plan:u.y,brain:h.j,notes:p.Y,project:g.x},N=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function C(e){let{initial:t}=e;(0,y.K7)("Activity");let a=(0,l.useRouter)(),r=(0,l.usePathname)(),c=(0,l.useSearchParams)(),o=c.get("show")||"changed",i=c.get("thing"),{entries:d,now:u,fresh:h,showNew:p,stale:g}=(0,S.G6)(t,!!i),f=e=>{let t=new URLSearchParams(c.toString());for(let[a,n]of Object.entries(e))n?t.set(a,n):t.delete(a);let n=t.toString();a.replace("".concat(r).concat(n?"?".concat(n):""),{scroll:!1})},{groups:v,other:b}=(0,s.useMemo)(()=>{var e,t,a,n;let r=new Map,c=0;for(let t of d){let a=function(e){var t,a,n,r,c,s,l,o;let i=e.project,d=(0,S.tF)(e),u=null!=i?i:"",h=N(e,"screen");if(h||e.screen)return{key:"".concat(u,"|screen|").concat(null!=h?h:e.screen),kind:"screen",name:null!=(t=e.screen)?t:h,project:i,slug:d,screen:h};switch(e.tool){case"set_theme":case"create_theme":return{key:"".concat(u,"|theme"),kind:"theme",name:"Theme",project:i,slug:d};case"create_flow":return{key:"".concat(u,"|flow|").concat(null!=(a=N(e,"name"))?a:""),kind:"flow",name:N(e,"name")?"".concat(N(e,"name")," flow"):"A flow",project:i,slug:d};case"get_plan":case"plan_section":case"update_plan":case"log_decision":return{key:"".concat(u,"|plan"),kind:"plan",name:"Plan",project:i,slug:d};case"write_page":case"propose_rule":return{key:"|brain|".concat(null!=(r=null!=(n=N(e,"title"))?n:N(e,"rule"))?r:""),kind:"brain",name:null!=(c=N(e,"title"))?c:"A rule for your taste"};case"read_note":case"answer_note":return{key:"".concat(u,"|notes"),kind:"notes",name:"Notes",project:i,slug:d};case"create_project":return{key:"".concat(null!=(s=N(e,"name"))?s:u,"|project"),kind:"project",name:null!=(l=N(e,"name"))?l:u,project:null!=(o=N(e,"name"))?o:i}}}(t);if(!a){c++;continue}let n=null!=(e=r.get(a.key))?e:{...a,calls:[],last:t.at};n.calls.push(t),t.at>n.last&&(n.last=t.at),(0,S.tD)(t)&&!(0,S.gz)(t)&&(!n.lastChange||t.at>n.lastChange)&&(n.lastChange=t.at),r.set(a.key,n)}let s=[...r.values()].filter(e=>"all"===o||e.lastChange||e.calls.some(S.gz));s.sort((e,t)=>{var a,n;return(null!=(a=t.lastChange)?a:"").localeCompare(null!=(n=e.lastChange)?n:"")||t.last.localeCompare(e.last)});let l=new Map;for(let e of s)l.set(null!=(t=e.project)?t:"Everywhere",[...null!=(n=l.get(null!=(a=e.project)?a:"Everywhere"))?n:[],e]);return{groups:[...l.entries()],other:c}},[d,o]),C=d.filter(e=>(0,S.tD)(e)&&!(0,S.gz)(e)).length,D=v.reduce((e,t)=>{let[,a]=t;return e+a.length},0);return(0,n.jsxs)(j.Zk,{children:[(0,n.jsxs)(k.Y9,{title:"Activity",children:[h>0&&(0,n.jsxs)(w.$,{variant:"ghost",size:"sm",onClick:()=>(p(),f({thing:null})),children:[h," new"]}),g&&(0,n.jsx)("span",{className:"text-sm text-fg-meta",children:"Not updating"}),(0,n.jsxs)(_.O,{type:"single",size:"sm",value:o,onValueChange:e=>e&&f({show:"changed"===e?null:e,thing:null}),"aria-label":"Show",children:[(0,n.jsx)(_.d,{value:"changed",children:"Changed"}),(0,n.jsx)(_.d,{value:"all",children:"Looked at too"})]})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,x.cn)(j.Eb,"pb-24"),children:[d.length>0&&(0,n.jsxs)("p",{className:"max-w-2xl text-ui text-pretty text-fg-secondary",children:["Claude made ",(0,S.U9)(C,"change")," to ",(0,S.U9)(D,"thing")," in your projects.",b>0&&" Another ".concat((0,S.U9)(b,"call")," only read skills and the Brain.")]}),0===d.length?(0,n.jsx)(k.pp,{plain:!0,icon:m.n,title:"Nothing yet",line:"What Claude changes in your projects shows up here as it happens.",className:"mt-10"}):0===v.length?(0,n.jsx)(k.pp,{plain:!0,title:"No changes yet",className:"mt-10"}):(0,n.jsx)("div",{className:"mt-8",children:v.map(e=>{let[t,a]=e;return(0,n.jsx)(L,{project:t,things:a,open:i,now:u,onOpen:e=>f({thing:i===e?null:e})},t)})})]})})]})}function L(e){var t;let{project:a,things:r,open:s,now:l,onOpen:o}=e,{shown:i,pager:d}=(0,k.Xd)(r),u=null==(t=r.find(e=>e.slug))?void 0:t.slug;return(0,n.jsxs)(k.wn,{title:a,count:r.length,action:u?(0,n.jsx)(w.$,{asChild:!0,variant:"ghost",size:"sm",children:(0,n.jsxs)(c(),{href:"/p/".concat(u),children:["Open ",a,(0,n.jsx)(f.Q,{})]})}):void 0,children:[(0,n.jsx)("div",{className:"-mx-2 grid",children:i.map(e=>{var t,a;let r=b[e.kind],c=e.calls.filter(S.gz).length,i=s===e.key;return(0,n.jsxs)("div",{children:[(0,n.jsx)(k.fI,{stacked:!0,lead:(0,n.jsx)(r,{className:(0,x.cn)("size-4",i?"text-fg-primary":"text-fg-muted")}),title:e.name,parent:(0,n.jsxs)("span",{className:"whitespace-normal text-pretty",children:[function(e){let t=e.calls.filter(e=>!(0,S.gz)(e)),a=t.filter(S.tD),n=[...new Set(a.filter(e=>"draw_screen"===e.tool&&e.version).map(e=>e.version))].sort((e,t)=>e-t),r=a.filter(e=>"add_variant"===e.tool).length,c=a.filter(e=>"pick_variant"===e.tool).length,s=[];for(let e of(n.length&&s.push("drew ".concat(1===n.length?"version ".concat(n[0]):"versions ".concat((0,S.p_)(n.map(String))))),r&&s.push("drew ".concat((0,S.U9)(r,"layout"))),c&&s.push(1===c?"picked a layout":"picked ".concat((0,S.U9)(c,"layout"))),a.filter(e=>{var t;return!["draw_screen","add_variant","pick_variant"].includes(null!=(t=e.tool)?t:"")}))){let t=(0,S.cv)(e),a=t.charAt(0).toLowerCase()+t.slice(1);s.includes(a)||s.push(a)}let l=t.length-a.length,o=s.length>3?[...s.slice(0,3),(0,S.U9)(s.length-3,"more change")]:s,i=o.length?"".concat((0,S.p_)(o)).concat(l?", and looked ".concat(1===l?"once":"".concat(l," times")):""):"Looked ".concat(1===l?"once":"".concat(l," times"),", changed nothing");return i.charAt(0).toUpperCase()+i.slice(1)}(e),c>0&&(0,n.jsx)("span",{className:"text-status-danger",children:". ".concat((0,S.U9)(c,"call")," failed")})]}),trail:l?(0,n.jsx)("span",{title:(0,S.HH)(null!=(t=e.lastChange)?t:e.last),children:(0,S.No)(null!=(a=e.lastChange)?a:e.last,l)}):"",trailWidth:"w-20",selected:i,onClick:()=>o(e.key)}),i&&(0,n.jsx)(D,{t:e})]},e.key)})}),(0,n.jsx)(k.is,{...d})]})}function D(e){let{t}=e,{shown:a,pager:r}=(0,k.Xd)(t.calls),s="screen"===t.kind&&t.slug&&t.screen?"/p/".concat(t.slug,"?screen=").concat(t.screen):"plan"===t.kind&&t.slug?"/p/".concat(t.slug,"?view=plan"):"brain"===t.kind?"/brain":void 0;return(0,n.jsxs)("div",{className:"mb-4 ml-4 mt-1 border-l border-border-divider pl-2",children:[a.map(e=>(0,n.jsx)(k.fI,{stacked:(0,S.gz)(e),lead:(0,S.gz)(e)?(0,n.jsx)(v.t,{className:"size-4 text-status-danger"}):null,status:(0,S.gz)(e)?"Failed":void 0,title:(0,S.cv)(e),parent:(0,S.gz)(e)?(0,n.jsx)("span",{className:"whitespace-normal text-status-danger",children:e.error}):void 0,trail:(0,n.jsx)("span",{title:(0,S.HH)(e.at),children:(0,S.Mj)(e.at)}),trailWidth:"w-20"},(0,S.TN)(e))),(0,n.jsxs)("div",{className:"flex items-center gap-2 pl-2",children:[s&&(0,n.jsx)(w.$,{asChild:!0,size:"sm",children:(0,n.jsxs)(c(),{href:s,children:["Open ","plan"===t.kind?"the plan":"brain"===t.kind?"the Brain":t.name,(0,n.jsx)(f.Q,{})]})}),(0,n.jsx)("span",{className:"flex-1"}),(0,n.jsx)(k.is,{...r})]})]})}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,4730,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=24025)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,307,635,878,1208,1337,2438,2476,2791,2866,3014,3033,3087,3088,3130,3577,3851,3981,4477,4617,4633,5044,5394,5531,6286,6854,6999,7338,7343,7465,7711,7745,7844,7897,8285,8504,8573,8734,8885,9492,9703,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2812],{30184:(e,t,a)=>{"use strict";a.d(t,{ActivityLog:()=>N});var n=a(95155),r=a(52619),l=a.n(r),s=a(12115),c=a(20063),o=a(45319),i=a(98943),d=a(36955),u=a(33144);let h=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),s.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),m=s.forwardRef((e,t)=>s.createElement(u.A,{ref:t,...e,weights:h}));m.displayName="ArrowSquareOutIcon";var p=a(68772),g=a(41880),f=a(70921),v=a(68515),x=a(50847),w=a(74371),j=a(32296),y=a(99365),_=a(80526),k=a(46601);function N(e){var t,a,r;let{initial:l}=e;(0,j.K7)("Activity");let u=(0,c.useRouter)(),h=(0,c.usePathname)(),m=(0,c.useSearchParams)(),N=null!=(t=m.get("q"))?t:"",b=m.get("show")||"all",E=m.get("at"),A=(0,s.useRef)(null),Z=e=>{let t=new URLSearchParams(m.toString());for(let[a,n]of Object.entries(e))n?t.set(a,n):t.delete(a);let a=t.toString();u.replace("".concat(h).concat(a?"?".concat(a):""),{scroll:!1})},{entries:L,now:V,fresh:H,showNew:R,stale:M}=(0,k.G6)(l,!!E||!!N),T=(0,s.useMemo)(()=>{let e=N.toLowerCase().split(/\s+/).filter(Boolean);return L.filter(t=>("changes"===b?(0,k.tD)(t):"errors"!==b||(0,k.gz)(t))&&e.every(e=>[(0,k.cv)(t),t.tool,t.method,t.project,t.screen,t.client,t.error,t.args?JSON.stringify(t.args):""].join(" ").toLowerCase().includes(e)))},[L,N,b]),{shown:C,pager:D}=(0,x.Xd)(T),F=null!=(r=null!=(a=C.find(e=>(0,k.TN)(e)===E))?a:L.find(e=>(0,k.TN)(e)===E))?r:C[0],U=F&&(0,k.TN)(F),O=new Set(L.map(e=>e.client)).size>1,z=new Set(L.map(e=>e.project).filter(Boolean)).size>1,P=(0,s.useRef)({shown:C,pick:U,set:Z});P.current={shown:C,pick:U,set:Z},(0,s.useEffect)(()=>{let e=e=>{let t=e.target;if(e.metaKey||e.ctrlKey||e.altKey||/INPUT|TEXTAREA|SELECT/.test(t.tagName)||t.isContentEditable)return;let{shown:a,pick:n,set:r}=P.current,l=a.findIndex(e=>(0,k.TN)(e)===n);if("/"===e.key){var s;e.preventDefault(),null==(s=A.current)||s.focus()}else if(("j"===e.key||"k"===e.key)&&a.length){let t="j"===e.key?Math.min(a.length-1,l+1):Math.max(0,l<0?0:l-1);r({at:(0,k.TN)(a[t])})}else"Escape"===e.key&&P.current.pick&&r({at:null})};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let q=3+ +!!O+ +!!z;return(0,n.jsxs)(w.Zk,{children:[(0,n.jsx)(x.Y9,{title:"Activity",wide:!0,children:(0,n.jsxs)(p.$,{variant:"ghost",size:"sm",onClick:()=>(0,k.fF)(T),disabled:!T.length,children:[(0,n.jsx)(o.z,{}),"Download"]})}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,_.cn)(w.vv.full,"pb-24"),children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("label",{className:"relative w-full sm:w-72",children:[(0,n.jsx)(i.e,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-fg-muted"}),(0,n.jsx)("span",{className:"sr-only",children:"Search the log"}),(0,n.jsx)(g.p,{ref:A,type:"search",defaultValue:N,placeholder:"Search",onChange:e=>Z({q:e.target.value||null,at:null}),className:"pl-8 pr-8 max-md:text-base"}),(0,n.jsx)(f.u,{className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 max-md:hidden",children:"/"})]}),(0,n.jsxs)(v.O,{type:"single",size:"sm",value:b,onValueChange:e=>e&&Z({show:"all"===e?null:e,at:null}),"aria-label":"Show",children:[(0,n.jsx)(v.d,{value:"all",children:"All"}),(0,n.jsx)(v.d,{value:"changes",children:"Changes"}),(0,n.jsx)(v.d,{value:"errors",children:"Errors"})]}),(0,n.jsx)("span",{className:"flex-1"}),H>0?(0,n.jsxs)(p.$,{variant:"ghost",size:"sm",onClick:()=>(R(),Z({at:null})),children:[H," new"]}):(0,n.jsx)("span",{className:"text-sm text-fg-meta",children:M?"Not updating":V?"".concat(T.length.toLocaleString("en-US")," of ").concat(L.length.toLocaleString("en-US")):""})]}),(0,n.jsxs)("div",{className:"mt-4 grid items-start gap-4 lg:grid-cols-12",children:[(0,n.jsxs)("div",{className:(0,_.cn)(y.TY,"overflow-hidden lg:col-span-8"),children:[0===T.length?0===L.length?(0,n.jsx)(x.pp,{plain:!0,title:"Nothing yet",line:"What Claude does in Playground shows up here as it happens."}):(0,n.jsx)(x.pp,{plain:!0,title:N?'Nothing matches "'.concat(N,'"'):"errors"===b?"No errors":"No changes yet",action:N?(0,n.jsx)(p.$,{size:"sm",onClick:()=>Z({q:null}),children:"Clear the search"}):void 0}):(0,n.jsx)("table",{className:y.y5,children:(0,n.jsx)("tbody",{className:(0,_.cn)(y._F,"[&_td]:py-2"),children:C.map((e,t)=>{let a=(0,k.TN)(e),r=a===U,l=V&&(0===t||(0,k.kb)(C[t-1].at,V)!==(0,k.kb)(e.at,V))?(0,k.kb)(e.at,V):void 0;return(0,n.jsxs)(s.Fragment,{children:[l&&(0,n.jsx)("tr",{children:(0,n.jsx)("th",{colSpan:q,scope:"colgroup",className:"h-8 px-4 text-start align-bottom text-xs font-medium text-fg-meta",children:l})}),(0,n.jsxs)("tr",{onClick:()=>Z({at:a===E?null:a}),className:(0,_.cn)("cursor-pointer transition-hover hover:bg-fill-hover",r&&"bg-fill-selected hover:bg-fill-selected"),children:[(0,n.jsx)("td",{className:"num w-28 whitespace-nowrap text-fg-meta",title:(0,k.HH)(e.at),children:V?(0,k.Gf)(e.at):""}),O&&(0,n.jsx)("td",{className:"w-28 whitespace-nowrap max-md:hidden",children:e.client}),(0,n.jsx)("td",{className:"min-w-0",children:(0,n.jsxs)("button",{type:"button","aria-expanded":r,onClick:e=>(e.stopPropagation(),Z({at:a===E?null:a})),className:(0,_.cn)("flex w-full items-center gap-1.5 text-left outline-hidden focus-visible:underline",r?"text-fg-primary":(0,k.gz)(e)&&"text-status-danger"),children:[(0,k.gz)(e)&&(0,n.jsx)(d.t,{className:"size-3.5 shrink-0 text-status-danger"}),(0,n.jsx)("span",{className:"truncate",children:(0,k.cv)(e)})]})}),z&&(0,n.jsx)("td",{className:"w-36 whitespace-nowrap max-md:hidden",children:e.project}),(0,n.jsx)("td",{className:"num w-20 whitespace-nowrap text-right text-fg-meta max-sm:hidden",children:e.ms<1e3?"".concat(e.ms," ms"):"".concat((e.ms/1e3).toFixed(1)," s")})]}),a===E&&(0,n.jsx)("tr",{className:"lg:hidden",children:(0,n.jsx)("td",{colSpan:q,className:"!pt-0",children:(0,n.jsx)(S,{e:e})})})]},a)})})}),(0,n.jsx)(x.is,{...D,className:"px-1 shadow-divider-t"})]}),F&&(0,n.jsxs)("aside",{"aria-label":"The call",className:(0,_.cn)(y.pj,"sticky top-0 p-4 max-lg:hidden lg:col-span-4"),children:[(0,n.jsx)("h2",{className:"text-ui font-medium text-pretty text-fg-primary",children:(0,k.cv)(F)}),(0,n.jsx)(S,{e:F})]})]})]})})]})}function S(e){var t,a;let{e:r}=e,s=(0,k.u8)(r),c=[["When",(0,k.HH)(r.at)],["App",r.client],...r.project?[["Project",r.project]]:[],...r.screen?[["Screen",r.version?"".concat(r.screen,", version ").concat(r.version):r.screen]]:[],["Took","".concat(r.ms.toLocaleString("en-US")," ms")],["Tool",(0,n.jsx)("span",{className:"font-mono text-xs",children:null!=(t=r.tool)?t:r.method},"t")],...Object.entries(null!=(a=r.args)?a:{}).map(e=>{let[t,a]=e;return[t,(0,n.jsx)("span",{className:"wrap-anywhere",children:"string"==typeof a?a:JSON.stringify(a)},t)]})];return(0,n.jsxs)("div",{className:"mt-3 grid gap-3",children:[(0,k.gz)(r)&&r.error&&(0,n.jsx)("p",{className:"text-sm text-pretty text-status-danger",children:r.error}),(0,n.jsx)("dl",{className:"grid gap-1.5 text-sm",children:c.map(e=>{let[t,a]=e;return(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("dt",{className:"w-20 shrink-0 text-fg-meta",children:t}),(0,n.jsx)("dd",{className:"num min-w-0 flex-1 text-fg-secondary",children:a})]},t)})}),s&&(0,n.jsx)(p.$,{asChild:!0,size:"sm",className:"w-fit",children:(0,n.jsxs)(l(),{href:s,children:["Open ",r.screen,(0,n.jsx)(m,{})]})})]})}},33507:(e,t,a)=>{Promise.resolve().then(a.bind(a,30184))},36955:(e,t,a)=>{"use strict";a.d(t,{t:()=>c});var n=a(12115),r=a(33144);let l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),s=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l}));s.displayName="WarningCircleIcon";let c=s},46601:(e,t,a)=>{"use strict";a.d(t,{G6:()=>v,Gf:()=>h,HH:()=>m,Mj:()=>u,No:()=>p,TN:()=>o,U9:()=>w,cv:()=>l,fF:()=>x,gz:()=>c,kb:()=>d,p_:()=>j,tD:()=>s,tF:()=>g,u8:()=>f});var n=a(12115),r=a(66978);let l=r.q0,s=r.Xb,c=e=>"ok"!==e.outcome,o=e=>{var t;return"".concat(e.at,"|").concat(e.method,"|").concat(null!=(t=e.tool)?t:"","|").concat(e.ms)},i=(e,t)=>e.toDateString()===t.toDateString();function d(e,t){let a=new Date(e);return i(a,t)?"Today":i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",...a.getFullYear()!==t.getFullYear()&&{year:"numeric"}})}let u=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),h=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",second:"2-digit"}),m=e=>new Date(e).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"});function p(e,t){let a=new Date(e);return i(a,t)?u(e):i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{month:"short",day:"numeric"})}let g=e=>{var t;return"string"==typeof(null==(t=e.args)?void 0:t.project)?e.args.project:void 0},f=e=>{let t=g(e),a=(e=>{var t,a;let n="string"==typeof(null==(t=e.args)?void 0:t.screen)?e.args.screen:void 0;return n||e.screen?{id:n,name:null!=(a=e.screen)?a:n}:void 0})(e);return t&&(null==a?void 0:a.id)?"/p/".concat(t,"?screen=").concat(a.id):void 0};function v(e,t){var a;let[r,l]=(0,n.useState)(e),[s,c]=(0,n.useState)(null),[i,d]=(0,n.useState)(0),[u,h]=(0,n.useState)(null),m=(0,n.useRef)(t);m.current=t,(0,n.useEffect)(()=>{h(new Date);let e="",t=async()=>{if("visible"!==document.visibilityState)return;let t=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);if(null==t?void 0:t.ok){let a=await t.text();if(a!==e){let t=!e;e=a;let n=JSON.parse(a).entries;(!t||n.length)&&(m.current?c(n):l(n))}d(0)}else d(e=>e+1);h(new Date)};t();let a=setInterval(t,5e3);return()=>clearInterval(a)},[]),(0,n.useEffect)(()=>{!t&&s&&(l(s),c(null))},[t,s]);let p=s&&r.length?s.findIndex(e=>o(e)===o(r[0])):s?s.length:0;return{entries:r,now:u,fresh:p<0?null!=(a=null==s?void 0:s.length)?a:0:p,showNew:()=>{s&&l(s),c(null)},stale:i>=2}}function x(e){let t=e=>/[",\n]/.test(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e,a=e.map(e=>{var t,a,n,r;return[e.at,e.client,l(e),null!=(t=e.project)?t:"",null!=(a=e.screen)?a:"",e.version?String(e.version):"",e.method,null!=(n=e.tool)?n:"",e.args?JSON.stringify(e.args):"",e.outcome,null!=(r=e.error)?r:"",String(e.ms)]}),n=URL.createObjectURL(new Blob([[["Time","App","What","Project","Screen","Version","Method","Tool","Arguments","Outcome","Error","Took (ms)"],...a].map(e=>e.map(t).join(",")).join("\n")],{type:"text/csv"}));Object.assign(document.createElement("a"),{href:n,download:"playground-activity-".concat(new Date().toISOString().slice(0,10),".csv")}).click(),URL.revokeObjectURL(n)}let w=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(t,"s");return"".concat(e," ").concat(1===e?t:a)},j=e=>{var t;return e.length<=1?null!=(t=e[0])?t:"":"".concat(e.slice(0,-1).join(", ")," and ").concat(e.at(-1))}},66978:(e,t,a)=>{"use strict";a.d(t,{Xb:()=>r,q0:()=>s});let n=new Set(["draw_screen","write_page","create_flow","set_theme","create_theme","write_brief","set_axes","add_direction","finish_round","propose_rule","pin_calls","answer_note","add_variant","pick_variant","plan_section","update_plan","log_decision","commit_screen","create_project"]),r=e=>"tools/call"===e.method&&!!e.tool&&n.has(e.tool),l=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function s(e){var t,a,n,r,s;if("refused"===e.method)return"Refused a request without this Playground's key";let c=null!=(n=l(e,"name"))?n:null==(a=l(e,"uri"))||null==(t=a.match(/skill:\/\/baseline\/([^/]+)/))?void 0:t[1],o=null!=(r=e.screen)?r:l(e,"screen");switch(e.method){case"initialize":case"server/discover":return"Connected";case"tools/list":return"Listed the tools";case"skills/list":case"resources/list":return"Listed the skills";case"skills/get":case"resources/read":return c?"Read the ".concat(c," skill"):"Read a skill"}if("tools/call"!==e.method)return e.method;switch(e.tool){case"list_skills":return"Listed the skills";case"read_skill":return c?"Read the ".concat(c," skill"):"Read a skill";case"list_projects":return"Listed the projects";case"get_feedback":return o?"Read the feedback on ".concat(o):"Read the feedback";case"read_brain":return"Read the Brain's index";case"search_brain":return l(e,"query")?'Searched the Brain for "'.concat(l(e,"query"),'"'):"Searched the Brain";case"read_page":return l(e,"page")?"Read the ".concat(l(e,"page")," page"):"Read a Brain page";case"write_page":return l(e,"title")?"Wrote the ".concat(l(e,"title")," page"):"Wrote a Brain page";case"lint_brain":return"Checked the Brain";case"list_flows":return"Listed the flows";case"create_flow":return l(e,"name")?"Saved the ".concat(l(e,"name")," flow"):"Saved a flow";case"waiting":return"Checked what is waiting";case"list_themes":return"Listed the themes";case"set_theme":return l(e,"theme")?"Set the theme to ".concat(l(e,"theme")):"Set a theme";case"create_theme":return l(e,"name")?"Saved the ".concat(l(e,"name")," theme"):"Saved a theme";case"list_spreads":return"Listed the spreads";case"get_spread":return l(e,"spread")?"Read the ".concat(l(e,"spread")," spread"):"Read a spread";case"write_brief":return"Wrote up a brief";case"set_axes":return"Named a spread's axes";case"add_direction":return l(e,"name")?"Drew the ".concat(l(e,"name")," direction"):"Drew a direction";case"look_at_direction":return"Looked at a direction";case"finish_round":return"Finished a round";case"read_note":return"Read a note";case"answer_note":return"Answered a note";case"pin_calls":return o?"Marked its calls on ".concat(o," for your walkthrough"):"Marked its calls for your walkthrough";case"add_variant":return l(e,"name")?"Drew the ".concat(l(e,"name")," layout").concat(o?" of ".concat(o):""):"Drew a layout".concat(o?" of ".concat(o):"");case"pick_variant":return o?"Picked a layout for ".concat(o):"Picked a layout";case"get_plan":return e.project?"Read the plan for ".concat(e.project):"Read the plan";case"plan_section":return l(e,"title")?"Updated the ".concat(l(e,"title")," part of the plan"):"Updated a part of the plan";case"update_plan":return"Updated the steps of a round";case"log_decision":return l(e,"what")?"Logged a decision: ".concat(l(e,"what")):"Logged a decision";case"commit_screen":return l(e,"note")?"Committed a change: ".concat(l(e,"note")):"Committed a change";case"open_playground":return"Opened Playground";case"create_project":return l(e,"name")?"Started ".concat(l(e,"name")):"Started a project";case"read_taste":return"Read your taste";case"propose_rule":return l(e,"rule")?"Proposed a rule: ".concat(l(e,"rule")):"Proposed a rule";case"draw_screen":return e.version?"Drew version ".concat(e.version," of ").concat(o):"Tried to draw ".concat(null!=o?o:"a screen");case"diff_screen":return e.version?"Measured what changed in version ".concat(e.version," of ").concat(o):"Measured what changed in ".concat(null!=o?o:"a screen");case"screenshot":{let t=l(e,"device");return"Looked at ".concat(null!=o?o:"a screen").concat(t?" on ".concat(t):"")}}return"Used ".concat(null!=(s=e.tool)?s:"a tool")}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=33507)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1663],{17141:(e,t,a)=>{"use strict";a.d(t,{ActivitySessions:()=>w});var n=a(95155),r=a(12115),l=a(20063),c=a(79911),s=a(12543),o=a(36955),i=a(68772),d=a(68515),u=a(50847),h=a(74371),m=a(32296),p=a(80526),g=a(46601);let f=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0},v=e=>1===e.length?"version ".concat(e[0]):"versions ".concat((0,g.p_)(e.map(String)));function w(e){let{initial:t}=e;(0,m.K7)("Activity");let a=(0,l.useRouter)(),s=(0,l.usePathname)(),o=(0,l.useSearchParams)(),f=o.get("show")||"all",v=o.get("open"),{entries:w,now:j,fresh:x,showNew:y,stale:k}=(0,g.G6)(t,!!v),A=(0,r.useMemo)(()=>(function(e){let t=[],a=new Map;for(let n of[...e].sort((e,t)=>e.at.localeCompare(t.at))){let e=a.get(n.client);if(e&&Date.parse(n.at)-Date.parse(e.to)<=12e5)e.calls.push(n),e.to=n.at;else{let e={id:(0,g.TN)(n),client:n.client,from:n.at,to:n.at,calls:[n]};t.push(e),a.set(n.client,e)}}return t.reverse()})(w),[w]),S=(0,r.useMemo)(()=>A.filter(e=>"changes"===f?e.calls.some(e=>(0,g.tD)(e)&&!(0,g.gz)(e)):"failed"!==f||e.calls.some(g.gz)),[A,f]),{shown:Z,pager:E}=(0,u.Xd)(S),b=new Set(w.map(e=>e.client)).size>1,M=e=>{let t=new URLSearchParams(o.toString());for(let[a,n]of Object.entries(e))n?t.set(a,n):t.delete(a);let a=t.toString();return"".concat(s).concat(a?"?".concat(a):"")},N=e=>!!j&&j.getTime()-Date.parse(e)<6048e5,C=A.filter(e=>N(e.to)).length,D=w.filter(e=>N(e.at)&&(0,g.tD)(e)&&!(0,g.gz)(e)).length,R=w.filter(e=>N(e.at)&&(0,g.gz)(e)).length,L=[];for(let e of Z){let t=j?(0,g.kb)(e.to,j):"",a=L.at(-1);(null==a?void 0:a.day)===t?a.sessions.push(e):L.push({day:t,sessions:[e]})}return(0,n.jsxs)(h.Zk,{children:[(0,n.jsxs)(u.Y9,{title:"Activity",children:[x>0&&(0,n.jsxs)(i.$,{variant:"ghost",size:"sm",onClick:()=>(y(),a.replace(M({open:null}),{scroll:!1})),children:[x," new"]}),k&&(0,n.jsx)("span",{className:"text-sm text-fg-meta",children:"Not updating"}),(0,n.jsxs)(d.O,{type:"single",size:"sm",value:f,onValueChange:e=>e&&a.replace(M({show:"all"===e?null:e,open:null}),{scroll:!1}),"aria-label":"Show",children:[(0,n.jsx)(d.d,{value:"all",children:"All"}),(0,n.jsx)(d.d,{value:"changes",children:"Changes"}),(0,n.jsx)(d.d,{value:"failed",children:"Failed"})]})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,p.cn)(h.Eb,"pb-24"),children:[j&&w.length>0&&(0,n.jsxs)("p",{className:"max-w-2xl text-ui text-pretty text-fg-secondary",children:[C?"This week Claude worked in ".concat((0,g.U9)(C,"session")," and made ").concat((0,g.U9)(D,"change"),"."):"Claude hasn't worked in Playground this week.",R>0&&(0,n.jsx)("span",{className:"text-status-danger",children:" ".concat((0,g.U9)(R,"call")," failed.")})]}),0===w.length?(0,n.jsx)(u.pp,{plain:!0,icon:c.n,title:"Nothing yet",line:"What Claude does in Playground shows up here as it happens.",className:"mt-10"}):0===S.length?(0,n.jsx)(u.pp,{plain:!0,title:"failed"===f?"Nothing failed":"No changes yet",className:"mt-10"}):(0,n.jsxs)("div",{className:"mt-8",children:[L.map(e=>(0,n.jsx)(u.wn,{title:e.day,children:(0,n.jsx)("div",{className:"-mx-2 grid",children:e.sessions.map(e=>(0,n.jsx)(_,{s:e,apps:b,open:v===e.id,onToggle:()=>a.replace(M({open:v===e.id?null:e.id}),{scroll:!1})},e.id))})},e.day)),(0,n.jsx)(u.is,{...E,className:"mt-4"})]})]})})]})}function _(e){let{s:t,apps:a,open:r,onToggle:l}=e,c=t.calls.filter(g.gz).length,o=t.from===t.to?(0,g.Mj)(t.from):"".concat((0,g.Mj)(t.from)," to ").concat((0,g.Mj)(t.to));return(0,n.jsxs)("div",{children:[(0,n.jsx)(u.fI,{stacked:!0,lead:(0,n.jsx)(s.K,{weight:"bold",className:(0,p.cn)("size-3 text-fg-muted transition-transform duration-hover",r&&"rotate-90")}),title:(0,n.jsx)("span",{className:"whitespace-normal text-pretty",children:function(e){let t=new Map,a=new Map,n=[],r=[];for(let n of e.calls.filter(e=>!(0,g.gz)(e)&&(0,g.tD)(e))){var l,c,s,o;let e=null!=(c=null!=(l=n.screen)?l:f(n,"screen"))?c:"a screen";"draw_screen"===n.tool&&n.version?t.set(e,[...null!=(s=t.get(e))?s:[],n.version]):"add_variant"===n.tool?a.set(e,(null!=(o=a.get(e))?o:0)+1):r.push(n)}for(let[e,a]of t)n.push("drew ".concat(v([...new Set(a)].sort((e,t)=>e-t))," of ").concat(e));for(let[e,t]of a)n.push("drew ".concat((0,g.U9)(t,"layout")," of ").concat(e));for(let e of r){let t=(0,g.cv)(e),a=t.charAt(0).toLowerCase()+t.slice(1);n.includes(a)||n.push(a)}if(!n.length)return"Read and looked, and changed nothing";let i=(0,g.p_)(n.length>3?[...n.slice(0,3),(0,g.U9)(n.length-3,"more change")]:n);return i.charAt(0).toUpperCase()+i.slice(1)}(t)}),parent:(0,n.jsxs)(n.Fragment,{children:[a?"".concat(t.client,", ").concat(o):o,c>0&&(0,n.jsx)("span",{className:"text-status-danger",children:". ".concat((0,g.U9)(c,"call")," failed")})]}),trail:(0,g.U9)(t.calls.length,"call"),trailWidth:"w-16",selected:r,onClick:l}),r&&(0,n.jsx)(j,{calls:t.calls})]})}function j(e){let{calls:t}=e,{shown:a,pager:r}=(0,u.Xd)(t);return(0,n.jsxs)("div",{className:"mb-4 ml-4 mt-1 border-l border-border-divider pl-2",children:[a.map(e=>(0,n.jsx)(u.fI,{stacked:(0,g.gz)(e),lead:(0,g.gz)(e)?(0,n.jsx)(o.t,{className:"size-4 text-status-danger"}):null,status:(0,g.gz)(e)?"Failed":void 0,title:(0,g.cv)(e),parent:(0,g.gz)(e)?(0,n.jsx)("span",{className:"whitespace-normal text-status-danger",children:e.error}):void 0,trail:(0,n.jsx)("span",{title:(0,g.HH)(e.at),children:(0,g.Mj)(e.at)}),trailWidth:"w-20",href:(0,g.u8)(e)},(0,g.TN)(e))),(0,n.jsx)(u.is,{...r})]})}},30189:(e,t,a)=>{Promise.resolve().then(a.bind(a,17141))},36955:(e,t,a)=>{"use strict";a.d(t,{t:()=>s});var n=a(12115),r=a(33144);let l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),c=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l}));c.displayName="WarningCircleIcon";let s=c},46601:(e,t,a)=>{"use strict";a.d(t,{G6:()=>v,Gf:()=>h,HH:()=>m,Mj:()=>u,No:()=>p,TN:()=>o,U9:()=>_,cv:()=>l,fF:()=>w,gz:()=>s,kb:()=>d,p_:()=>j,tD:()=>c,tF:()=>g,u8:()=>f});var n=a(12115),r=a(66978);let l=r.q0,c=r.Xb,s=e=>"ok"!==e.outcome,o=e=>{var t;return"".concat(e.at,"|").concat(e.method,"|").concat(null!=(t=e.tool)?t:"","|").concat(e.ms)},i=(e,t)=>e.toDateString()===t.toDateString();function d(e,t){let a=new Date(e);return i(a,t)?"Today":i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",...a.getFullYear()!==t.getFullYear()&&{year:"numeric"}})}let u=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),h=e=>new Date(e).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",second:"2-digit"}),m=e=>new Date(e).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"});function p(e,t){let a=new Date(e);return i(a,t)?u(e):i(a,new Date(t.getTime()-864e5))?"Yesterday":a.toLocaleDateString("en-US",{month:"short",day:"numeric"})}let g=e=>{var t;return"string"==typeof(null==(t=e.args)?void 0:t.project)?e.args.project:void 0},f=e=>{let t=g(e),a=(e=>{var t,a;let n="string"==typeof(null==(t=e.args)?void 0:t.screen)?e.args.screen:void 0;return n||e.screen?{id:n,name:null!=(a=e.screen)?a:n}:void 0})(e);return t&&(null==a?void 0:a.id)?"/p/".concat(t,"?screen=").concat(a.id):void 0};function v(e,t){var a;let[r,l]=(0,n.useState)(e),[c,s]=(0,n.useState)(null),[i,d]=(0,n.useState)(0),[u,h]=(0,n.useState)(null),m=(0,n.useRef)(t);m.current=t,(0,n.useEffect)(()=>{h(new Date);let e="",t=async()=>{if("visible"!==document.visibilityState)return;let t=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);if(null==t?void 0:t.ok){let a=await t.text();if(a!==e){let t=!e;e=a;let n=JSON.parse(a).entries;(!t||n.length)&&(m.current?s(n):l(n))}d(0)}else d(e=>e+1);h(new Date)};t();let a=setInterval(t,5e3);return()=>clearInterval(a)},[]),(0,n.useEffect)(()=>{!t&&c&&(l(c),s(null))},[t,c]);let p=c&&r.length?c.findIndex(e=>o(e)===o(r[0])):c?c.length:0;return{entries:r,now:u,fresh:p<0?null!=(a=null==c?void 0:c.length)?a:0:p,showNew:()=>{c&&l(c),s(null)},stale:i>=2}}function w(e){let t=e=>/[",\n]/.test(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e,a=e.map(e=>{var t,a,n,r;return[e.at,e.client,l(e),null!=(t=e.project)?t:"",null!=(a=e.screen)?a:"",e.version?String(e.version):"",e.method,null!=(n=e.tool)?n:"",e.args?JSON.stringify(e.args):"",e.outcome,null!=(r=e.error)?r:"",String(e.ms)]}),n=URL.createObjectURL(new Blob([[["Time","App","What","Project","Screen","Version","Method","Tool","Arguments","Outcome","Error","Took (ms)"],...a].map(e=>e.map(t).join(",")).join("\n")],{type:"text/csv"}));Object.assign(document.createElement("a"),{href:n,download:"playground-activity-".concat(new Date().toISOString().slice(0,10),".csv")}).click(),URL.revokeObjectURL(n)}let _=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(t,"s");return"".concat(e," ").concat(1===e?t:a)},j=e=>{var t;return e.length<=1?null!=(t=e[0])?t:"":"".concat(e.slice(0,-1).join(", ")," and ").concat(e.at(-1))}},66978:(e,t,a)=>{"use strict";a.d(t,{Xb:()=>r,q0:()=>c});let n=new Set(["draw_screen","write_page","create_flow","set_theme","create_theme","write_brief","set_axes","add_direction","finish_round","propose_rule","pin_calls","answer_note","add_variant","pick_variant","plan_section","update_plan","log_decision","commit_screen","create_project"]),r=e=>"tools/call"===e.method&&!!e.tool&&n.has(e.tool),l=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function c(e){var t,a,n,r,c;if("refused"===e.method)return"Refused a request without this Playground's key";let s=null!=(n=l(e,"name"))?n:null==(a=l(e,"uri"))||null==(t=a.match(/skill:\/\/baseline\/([^/]+)/))?void 0:t[1],o=null!=(r=e.screen)?r:l(e,"screen");switch(e.method){case"initialize":case"server/discover":return"Connected";case"tools/list":return"Listed the tools";case"skills/list":case"resources/list":return"Listed the skills";case"skills/get":case"resources/read":return s?"Read the ".concat(s," skill"):"Read a skill"}if("tools/call"!==e.method)return e.method;switch(e.tool){case"list_skills":return"Listed the skills";case"read_skill":return s?"Read the ".concat(s," skill"):"Read a skill";case"list_projects":return"Listed the projects";case"get_feedback":return o?"Read the feedback on ".concat(o):"Read the feedback";case"read_brain":return"Read the Brain's index";case"search_brain":return l(e,"query")?'Searched the Brain for "'.concat(l(e,"query"),'"'):"Searched the Brain";case"read_page":return l(e,"page")?"Read the ".concat(l(e,"page")," page"):"Read a Brain page";case"write_page":return l(e,"title")?"Wrote the ".concat(l(e,"title")," page"):"Wrote a Brain page";case"lint_brain":return"Checked the Brain";case"list_flows":return"Listed the flows";case"create_flow":return l(e,"name")?"Saved the ".concat(l(e,"name")," flow"):"Saved a flow";case"waiting":return"Checked what is waiting";case"list_themes":return"Listed the themes";case"set_theme":return l(e,"theme")?"Set the theme to ".concat(l(e,"theme")):"Set a theme";case"create_theme":return l(e,"name")?"Saved the ".concat(l(e,"name")," theme"):"Saved a theme";case"list_spreads":return"Listed the spreads";case"get_spread":return l(e,"spread")?"Read the ".concat(l(e,"spread")," spread"):"Read a spread";case"write_brief":return"Wrote up a brief";case"set_axes":return"Named a spread's axes";case"add_direction":return l(e,"name")?"Drew the ".concat(l(e,"name")," direction"):"Drew a direction";case"look_at_direction":return"Looked at a direction";case"finish_round":return"Finished a round";case"read_note":return"Read a note";case"answer_note":return"Answered a note";case"pin_calls":return o?"Marked its calls on ".concat(o," for your walkthrough"):"Marked its calls for your walkthrough";case"add_variant":return l(e,"name")?"Drew the ".concat(l(e,"name")," layout").concat(o?" of ".concat(o):""):"Drew a layout".concat(o?" of ".concat(o):"");case"pick_variant":return o?"Picked a layout for ".concat(o):"Picked a layout";case"get_plan":return e.project?"Read the plan for ".concat(e.project):"Read the plan";case"plan_section":return l(e,"title")?"Updated the ".concat(l(e,"title")," part of the plan"):"Updated a part of the plan";case"update_plan":return"Updated the steps of a round";case"log_decision":return l(e,"what")?"Logged a decision: ".concat(l(e,"what")):"Logged a decision";case"commit_screen":return l(e,"note")?"Committed a change: ".concat(l(e,"note")):"Committed a change";case"open_playground":return"Opened Playground";case"create_project":return l(e,"name")?"Started ".concat(l(e,"name")):"Started a project";case"read_taste":return"Read your taste";case"propose_rule":return l(e,"rule")?"Proposed a rule: ".concat(l(e,"rule")):"Proposed a rule";case"draw_screen":return e.version?"Drew version ".concat(e.version," of ").concat(o):"Tried to draw ".concat(null!=o?o:"a screen");case"diff_screen":return e.version?"Measured what changed in version ".concat(e.version," of ").concat(o):"Measured what changed in ".concat(null!=o?o:"a screen");case"screenshot":{let t=l(e,"device");return"Looked at ".concat(null!=o?o:"a screen").concat(t?" on ".concat(t):"")}}return"Used ".concat(null!=(c=e.tool)?c:"a tool")}},79911:(e,t,a)=>{"use strict";a.d(t,{n:()=>s});var n=a(12115),r=a(33144);let l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),n.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"}))]]),c=n.forwardRef((e,t)=>n.createElement(r.A,{ref:t,...e,weights:l}));c.displayName="ClockCounterClockwiseIcon";let s=c}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=30189)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64,307,635,878,1208,1337,2438,2476,2791,2866,3014,3033,3087,3088,3130,3577,3851,3981,4477,4617,4633,5044,5394,5531,6286,6854,6999,7338,7343,7465,7711,7745,7844,7897,8285,8504,8573,8734,8885,9492,9703,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2456],{21892:(e,t,a)=>{"use strict";a.d(t,{BrainLibrary:()=>x});var l=a(95155),s=a(12115),n=a(45878),r=a(98943),i=a(82765),c=a(68772),o=a(41880),d=a(50847),m=a(74371),u=a(32296),h=a(80526),g=a(90608);function p(e){let{kind:t,pages:a,selected:r,onOpen:i}=e,{shown:c,pager:o}=(0,d.Xd)(a),m=a.findIndex(e=>e.slug===r),{onPage:u,page:h}=o;return(0,s.useEffect)(()=>{m>=0&&Math.floor(m/10)!==h&&u(Math.floor(m/10))},[r]),(0,l.jsxs)(d.wn,{title:g.UP[t],count:a.length,children:[(0,l.jsx)("div",{className:"-mx-2 grid",children:c.map(e=>(0,l.jsx)(d.fI,{nav:!0,lead:(0,l.jsx)(n.i,{className:"size-4 text-fg-muted"}),title:e.title,selected:e.slug===r,onClick:()=>i(e.slug),trailWidth:"w-0"},e.slug))}),(0,l.jsx)(d.is,{...o})]})}function x(e){let{initial:t,initialPage:a,actions:n}=e;(0,u.K7)("Brain");let{data:x,refresh:v}=(0,g.wV)(t),f=(0,g.W4)(n,v),j=(0,s.useMemo)(()=>Object.values(x.pages),[x]),y=(0,s.useMemo)(()=>{var e,t;return null!=(t=null==(e=[...j].sort((e,t)=>t.updated.localeCompare(e.updated)||e.title.localeCompare(t.title))[0])?void 0:e.slug)?t:null},[j]),[w,b]=(0,s.useState)(a&&t.pages[a]?a:null),[N,C]=(0,s.useState)(""),k=(0,s.useRef)(null),H=f.removed&&!x.pages[f.removed.slug]?f.removed.slug:null,V=w&&(x.pages[w]||w===H)?w:y,Z=V?x.pages[V]:void 0,E=e=>{var t;b(e),f.reset(),e!==H&&f.setRemoved(null);let a=new URLSearchParams(location.search);e?a.set("page",e):a.delete("page"),history.replaceState(null,"",a.size?"".concat(location.pathname,"?").concat(a):location.pathname),null==(t=k.current)||t.scrollTo({top:0})},A=N.toLowerCase().split(/\s+/).filter(Boolean),M=g.GW.map(e=>({kind:e,pages:j.filter(t=>t.type===e&&(!A.length||(0,g.cK)(t,A))).sort((e,t)=>e.title.localeCompare(t.title))})).filter(e=>e.pages.length);return(0,l.jsxs)(m.Zk,{children:[(0,l.jsx)(d.Y9,{title:"Brain",wide:!0,className:(0,h.cn)(w&&"max-md:hidden"),children:(0,l.jsxs)("span",{className:"num text-sm text-fg-meta",children:[j.length," pages"]})}),(0,l.jsxs)("div",{className:(0,h.cn)(m.vv.full,"flex min-h-0 flex-1"),children:[(0,l.jsxs)("nav",{"aria-label":"Pages",className:(0,h.cn)("flex w-80 shrink-0 flex-col border-r border-border-divider pr-4 max-md:w-full max-md:border-r-0 max-md:pr-0",w&&"max-md:hidden"),children:[(0,l.jsxs)("div",{className:"relative shrink-0 pb-3",children:[(0,l.jsx)(r.e,{className:"pointer-events-none absolute left-2.5 top-4 size-3.5 -translate-y-1/2 text-fg-muted"}),(0,l.jsx)(o.p,{value:N,onChange:e=>C(e.target.value),placeholder:"Find a page","aria-label":"Find a page",className:"h-8 pl-8"})]}),(0,l.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto pb-16",children:M.length?M.map(e=>(0,l.jsx)(p,{kind:e.kind,pages:e.pages,selected:V,onOpen:E},e.kind)):(0,l.jsx)(d.pp,{plain:!0,icon:r.e,title:j.length?"No page mentions that":"Nothing learned yet",line:j.length?void 0:"The agent writes a page when you decide something, prefer something or correct it."})})]}),(0,l.jsx)("div",{ref:k,className:(0,h.cn)("min-h-0 min-w-0 flex-1 overflow-y-auto pl-12 max-lg:pl-8 max-md:pl-0",!w&&"max-md:hidden"),children:(0,l.jsxs)("div",{className:"max-w-2xl pb-24 pt-1 max-md:pt-4",children:[(0,l.jsxs)(c.$,{variant:"ghost",size:"sm",className:"-ml-2 mb-3 md:hidden",onClick:()=>E(null),children:[(0,l.jsx)(i.Z,{}),"Brain"]}),V===H?(0,l.jsx)(g.PC,{edits:f}):Z?(0,l.jsx)(g.Qn,{page:Z,data:x,edits:f,onGo:E}):null]})})]})]})}},32485:(e,t,a)=>{Promise.resolve().then(a.bind(a,21892))},44197:(e,t,a)=>{"use strict";a.d(t,{C:()=>i});var l=a(12115),s=a(33144);let n=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M100,52H40A20,20,0,0,0,20,72v64a20,20,0,0,0,20,20H96v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,100,52Zm-4,80H44V76H96ZM216,52H156a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20h56v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,216,52Zm-4,80H160V76h52Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M108,72v72H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h60A8,8,0,0,1,108,72Zm108-8H156a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h68V72A8,8,0,0,0,216,64Z",opacity:"0.2"}),l.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M116,72v88a48.05,48.05,0,0,1-48,48,8,8,0,0,1,0-16,32,32,0,0,0,32-32v-8H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56h60A16,16,0,0,1,116,72ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M100,58H40A14,14,0,0,0,26,72v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,100,58Zm2,80H40a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2ZM216,58H156a14,14,0,0,0-14,14v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,216,58Zm2,80H156a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M100,60H40A12,12,0,0,0,28,72v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,100,60Zm4,80H40a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4ZM216,60H156a12,12,0,0,0-12,12v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,216,60Zm4,80H156a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4Z"}))]]),r=l.forwardRef((e,t)=>l.createElement(s.A,{ref:t,...e,weights:n}));r.displayName="QuotesIcon";let i=r},90608:(e,t,a)=>{"use strict";a.d(t,{GW:()=>h,Nd:()=>g,PC:()=>N,Qn:()=>b,UP:()=>p,W4:()=>y,cK:()=>v,wV:()=>x});var l=a(95155),s=a(12115),n=a(44197),r=a(45878),i=a(68772),c=a(41880),o=a(76654),d=a(23390),m=a(50847),u=a(80526);let h=["preference","decision","lesson","person","concept"],g={preference:"Preference",decision:"Decision",lesson:"Lesson",person:"Person",concept:"Concept"},p={preference:"Preferences",decision:"Decisions",lesson:"Lessons",person:"People",concept:"Concepts"};function x(e){let[t,a]=(0,s.useState)(e),l=(0,s.useCallback)(async()=>{let e=await fetch("/api/brain",{cache:"no-store"}).catch(()=>null);(null==e?void 0:e.ok)&&a(await e.json())},[]);return(0,s.useEffect)(()=>{let e=setInterval(()=>{"visible"===document.visibilityState&&l()},1e4);return()=>clearInterval(e)},[l]),{data:t,refresh:l}}function v(e,t){let a="".concat(e.title," ").concat(e.summary," ").concat(e.body).toLowerCase();return t.every(e=>a.includes(e))}let f={a:e=>{let{href:t,children:a}=e;return(0,l.jsx)("a",{href:t,className:"text-fg-primary underline decoration-fg-muted underline-offset-2 transition-hover hover:decoration-fg-secondary",children:a})}};function j(e){let{page:t,data:a,className:s}=e;return(0,l.jsx)(d.hJ,{components:f,className:(0,u.cn)("h-auto text-ui leading-relaxed text-fg-secondary [&_strong]:font-medium [&_strong]:text-fg-primary [&_p]:text-pretty [&_li]:my-1 [&_ul]:list-outside [&_ul]:pl-5 [&_ol]:list-outside [&_ol]:pl-5",s),children:function(e,t){let a=new Map(t.nodes.map(e=>[e.id,e]));return e.replace(/\[\[([^\]|#]+)(?:#[^\]|]*)?(?:\|([^\]]*))?\]\]/g,(e,l,s)=>{let n=(null!=s?s:l).trim(),r=l.toLowerCase().replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(t.pages[r])return"[".concat(n,"](#brain:").concat(r,")");let i=a.get(r);return(null==i?void 0:i.href)?"[".concat(n,"](").concat(i.href,")"):n})}(t.body,a)})}function y(e,t){let[a,l]=(0,s.useState)(null),[n,r]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1),[o,d]=(0,s.useState)(""),m=async()=>{if(!a)return;c(!0);let s=await e.save(a.slug,a.summary,a.body);if(s||await t(),c(!1),s)return d(s);l(null),d("")},u=async a=>{c(!0);let l=await e.remove(a);if(c(!1),"error"in l)return d(l.error);r({slug:a,...l}),d(""),await t()},h=async()=>{if(!n)return;c(!0);let a=await e.restore(n.slug,n.md,n.title);if(a||await t(),c(!1),a)return d(a);r(null)};return{editing:a,setEditing:l,removed:n,setRemoved:r,busy:i,error:o,save:m,remove:u,undo:h,reset:()=>{l(null),d("")}}}function w(e){var t;let{page:a,edits:s}=e;return(null==(t=s.editing)?void 0:t.slug)===a.slug?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.$,{variant:"ghost",size:"sm",onClick:s.reset,children:"Cancel"}),(0,l.jsx)(i.$,{variant:"primary",size:"sm",disabled:s.busy,onClick:()=>void s.save(),children:s.busy?"Saving":"Save"})]}):(0,l.jsxs)(l.Fragment,{children:[!a.seed&&(0,l.jsx)(i.$,{variant:"ghost",size:"sm",disabled:s.busy,onClick:()=>void s.remove(a.slug),children:"Remove"}),(0,l.jsx)(i.$,{variant:"secondary",size:"sm",onClick:()=>s.setEditing({slug:a.slug,summary:a.summary,body:a.body}),children:"Edit"})]})}function b(e){var t;let a,{page:s,data:i,edits:d,onGo:u,actions:h,className:p}=e,x=(null==(t=d.editing)?void 0:t.slug)===s.slug?d.editing:null,v=Object.values(i.pages).filter(e=>e.slug!==s.slug&&e.links.includes(s.slug)),f=(0,m.Xd)(s.sources),y=(0,m.Xd)(v);return(0,l.jsxs)("article",{className:p,onClick:e=>{var t,a;let l=e.target.closest("a"),s=null==l||null==(a=l.getAttribute("href"))||null==(t=a.match(/brain:([a-z0-9-]+)$/))?void 0:t[1];s&&(e.preventDefault(),u(s))},children:[(0,l.jsxs)("p",{className:"text-sm text-fg-meta",children:[g[s.type],s.updated&&", updated ".concat((a=s.updated)?new Date("".concat(a.slice(0,10),"T12:00:00")).toLocaleDateString("en-US",{month:"short",day:"numeric"}):""),s.seed&&", a sample"]}),(0,l.jsxs)("div",{className:"mt-1 flex flex-wrap items-start gap-x-3 gap-y-2",children:[(0,l.jsx)("h2",{className:"min-w-0 flex-1 text-title font-semibold text-fg-primary text-balance",children:s.title}),"none"!==h&&(0,l.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:(0,l.jsx)(w,{page:s,edits:d})})]}),x?(0,l.jsxs)("div",{className:"mt-4 grid gap-3",children:[(0,l.jsx)(c.p,{value:x.summary,onChange:e=>d.setEditing({...x,summary:e.target.value}),"aria-label":"One line"}),(0,l.jsx)(o.T,{value:x.body,onChange:e=>d.setEditing({...x,body:e.target.value}),"aria-label":"Page",className:"field-sizing-content min-h-40"})]}):(0,l.jsxs)(l.Fragment,{children:[s.summary&&(0,l.jsx)("p",{className:"mt-2 max-w-2xl text-heading text-fg-secondary text-pretty",children:s.summary}),(0,l.jsx)(j,{page:s,data:i,className:"mt-6 max-w-2xl"})]}),d.error&&(0,l.jsx)("p",{className:"mt-3 text-sm text-status-danger",children:d.error}),!x&&s.sources.length>0&&(0,l.jsxs)(m.wn,{title:"Where it came from",count:s.sources.length,className:"mt-10",children:[(0,l.jsx)("div",{className:"-mx-2 grid",children:f.shown.map(e=>(0,l.jsx)(m.fI,{stacked:!0,lead:(0,l.jsx)(n.C,{className:"size-4 text-fg-muted"}),title:(0,l.jsx)("span",{className:"block whitespace-normal text-pretty font-normal",children:e}),trailWidth:"w-0"},e))}),(0,l.jsx)(m.is,{...f.pager})]}),!x&&v.length>0&&(0,l.jsxs)(m.wn,{title:"Linked from",count:v.length,className:"mt-8",children:[(0,l.jsx)("div",{className:"-mx-2 grid",children:y.shown.map(e=>(0,l.jsx)(m.fI,{lead:(0,l.jsx)(r.i,{className:"size-4 text-fg-muted"}),title:e.title,parent:g[e.type],onClick:()=>u(e.slug),trailWidth:"w-0"},e.slug))}),(0,l.jsx)(m.is,{...y.pager})]})]})}function N(e){let{edits:t,className:a}=e;return t.removed?(0,l.jsxs)("div",{className:(0,u.cn)("flex min-h-control items-center gap-3",a),children:[(0,l.jsxs)("p",{className:"min-w-0 flex-1 text-ui text-fg-secondary text-pretty",children:[(0,l.jsx)("span",{className:"font-medium text-fg-primary",children:t.removed.title})," is out of the Brain. The agent won’t read it again."]}),(0,l.jsx)(i.$,{variant:"secondary",size:"sm",disabled:t.busy,onClick:()=>void t.undo(),children:"Undo"})]}):null}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,3390,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=32485)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4682],{71:(e,t,a)=>{Promise.resolve().then(a.bind(a,34242))},34242:(e,t,a)=>{"use strict";a.d(t,{BrainTimeline:()=>y});var n=a(95155),s=a(12115),l=a(45878),r=a(57784),i=a(82765),c=a(98943),o=a(68772),d=a(41880),m=a(50847),u=a(74371),h=a(32296),x=a(80526),g=a(90608),p=a(41261);let f={create:"New",update:"Changed",remove:"Removed"};function v(e){var t,a,c,d;let{e:u,data:h,edits:v,open:j,onFlip:y}=e,[w,N]=(0,s.useState)([]),b=null!=(d=w.at(-1))?d:u.slug,C=h.pages[b],k=(null==(t=v.removed)?void 0:t.slug)===b&&!C,H=(0,n.jsx)(l.i,{className:"size-4 text-fg-muted"}),_=(0,n.jsx)("span",{className:"block whitespace-normal text-pretty",children:u.title}),A=(0,n.jsx)("span",{className:"block whitespace-normal text-pretty text-ui text-fg-secondary",children:u.why});if(!h.pages[u.slug]&&(null==(a=v.removed)?void 0:a.slug)!==u.slug)return(0,n.jsx)(m.fI,{stacked:!0,lead:H,title:_,parent:A,trail:"remove"===u.verb?f.remove:"Not in the Brain now",trailWidth:"w-40"});let V=w.length>1?null==(c=h.pages[w.at(-2)])?void 0:c.title:u.title;return(0,n.jsxs)("div",{id:"entry-".concat(u.id),children:[(0,n.jsx)(m.fI,{stacked:!0,lead:H,title:_,parent:A,selected:j,onClick:()=>{N([]),y()},trail:(0,n.jsxs)("span",{className:"inline-flex items-center gap-2",children:[f[u.verb],(0,n.jsx)(r.a,{className:(0,x.cn)("size-3.5 text-fg-muted transition-transform duration-200",j&&"rotate-180")})]}),trailWidth:"w-28 flex justify-end"}),(0,n.jsx)(p.gN,{open:j,children:(0,n.jsxs)("div",{className:"mb-4 mt-2 rounded-panel bg-bg-raised p-6 over-ring max-md:p-4",children:[w.length>0&&(0,n.jsxs)(o.$,{variant:"ghost",size:"sm",className:"-ml-2 mb-3",onClick:()=>{v.reset(),N(e=>e.slice(0,-1))},children:[(0,n.jsx)(i.Z,{}),V]}),k?(0,n.jsx)(g.PC,{edits:v}):C&&(0,n.jsx)(g.Qn,{page:C,data:h,edits:v,onGo:e=>{v.reset(),N(t=>[...t,e])}})]})})]})}function j(e){let{date:t,entries:a,...s}=e,{shown:l,pager:r}=(0,m.Xd)(a),i=["create","update","remove"].map(e=>[e,a.filter(t=>t.verb===e).length]).filter(e=>{let[,t]=e;return t});return(0,n.jsxs)("section",{className:"flex gap-x-10 border-t border-border-divider pt-5 max-md:flex-col",children:[(0,n.jsxs)("div",{className:"shrink-0 md:sticky md:top-0 md:w-40 md:self-start md:pt-2.5",children:[(0,n.jsx)("h2",{className:"text-ui font-medium text-fg-primary max-md:hidden",children:new Date("".concat(t,"T12:00:00")).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric"})}),(0,n.jsx)("h2",{className:"text-ui font-medium text-fg-primary md:hidden",children:new Date("".concat(t,"T12:00:00")).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})}),(0,n.jsx)("p",{className:"num mt-0.5 text-sm text-fg-meta",children:i.map(e=>{let[t,a]=e;return"".concat(a," ").concat(f[t].toLowerCase())}).join(", ")})]}),(0,n.jsxs)("div",{className:"-mx-2 grid min-w-0 flex-1 max-md:mt-2",children:[l.map(e=>(0,n.jsx)(v,{e:e,data:s.data,edits:s.edits,open:s.openId===e.id,onFlip:()=>s.onFlip(e.id)},e.id)),(0,n.jsx)(m.is,{...r})]})]})}function y(e){let{initial:t,log:a,actions:l}=e;(0,h.K7)("Brain");let{data:r,refresh:i}=(0,g.wV)(t),o=(0,g.W4)(l,i),[p,f]=(0,s.useState)(null),[v,y]=(0,s.useState)(""),w=v.toLowerCase().split(/\s+/).filter(Boolean),N=(0,s.useMemo)(()=>a.filter(e=>w.every(t=>"".concat(e.title," ").concat(e.why).toLowerCase().includes(t))),[a,w]),b=(0,s.useMemo)(()=>{var e;let t=new Map;for(let a of N)t.set(a.date,[...null!=(e=t.get(a.date))?e:[],a]);return[...t.entries()].map(e=>{let[t,a]=e;return{date:t,entries:a}})},[N]),{shown:C,pager:k}=(0,m.Xd)(b),H=e=>{o.reset(),f(t=>t===e?null:e)},_=Object.entries(Object.values(r.pages).reduce((e,t)=>{var a;return e[t.type]=(null!=(a=e[t.type])?a:0)+1,e},{})).sort((e,t)=>t[1]-e[1]).map(e=>{let[t,a]=e;return"".concat(a," ").concat((1===a?g.Nd[t]:"person"===t?"people":"".concat(g.Nd[t],"s")).toLowerCase())}).join(", ");return(0,n.jsxs)(u.Zk,{children:[(0,n.jsx)(m.Y9,{title:"Brain",children:(0,n.jsxs)("div",{className:"relative w-56 max-md:w-full",children:[(0,n.jsx)(c.e,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-fg-muted"}),(0,n.jsx)(d.p,{value:v,onChange:e=>y(e.target.value),placeholder:"Find in what it learned","aria-label":"Find in what it learned",className:"h-8 pl-8"})]})}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,x.cn)(u.Eb,"pb-24"),children:[(0,n.jsxs)("p",{className:"max-w-2xl text-ui text-fg-secondary text-pretty",children:["What the agent has learned about how you work, newest first. It holds ",_,"."]}),(0,n.jsx)("div",{className:"mt-8 grid gap-8",children:C.length?C.map(e=>(0,n.jsx)("div",{id:"day-".concat(e.date),children:(0,n.jsx)(j,{date:e.date,entries:e.entries,data:r,edits:o,openId:p,onFlip:H})},e.date)):(0,n.jsx)(m.pp,{plain:!0,icon:c.e,title:a.length?"Nothing it learned mentions that":"Nothing learned yet"})}),(0,n.jsx)(m.is,{...k,className:"mt-6"})]})})]})}},41261:(e,t,a)=>{"use strict";a.d(t,{Hq:()=>x,Md:()=>m,N3:()=>g,em:()=>u,gN:()=>p,rn:()=>h});var n=a(95155),s=a(12115),l=a(45878),r=a(23390),i=a(50847),c=a(80526),o=a(39557);let d=(0,c.cn)("text-ui leading-relaxed text-fg-secondary","[&_strong]:font-medium [&_strong]:text-fg-primary [&_code]:font-mono [&_code]:text-xs","[&_p]:text-pretty [&_li]:my-1 [&_li]:text-ui [&_ul]:list-outside [&_ul]:pl-5 [&_ol]:list-outside [&_ol]:pl-5","[&_h3]:mt-8 [&_h3]:text-ui [&_h3]:font-semibold [&_h3]:text-fg-primary");function m(e){let{children:t,className:a}=e;return(0,n.jsx)(r.hJ,{className:(0,c.cn)(d,"h-auto",a),children:t})}let u=e=>e?e[0].toUpperCase()+e.slice(1):e;function h(e,t){let[a,n]=(0,s.useState)(t),[l,r]=(0,s.useState)(!1);return{on:a,failed:l,toggle:async t=>{n(t),r(!1);let a=await fetch("/api/skills",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,on:t})}).catch(()=>null);(null==a?void 0:a.ok)||(n(!t),r(!0))}}}function x(e){let{on:t,failed:a,className:s}=e;return a?(0,n.jsx)("p",{className:(0,c.cn)("text-ui text-status-danger",s),children:t?"Couldn’t turn it off. Try again.":"Couldn’t turn it on. Try again."}):t?null:(0,n.jsx)("p",{className:(0,c.cn)("text-ui text-fg-meta",s),children:"Off. The agent doesn’t read this skill."})}function g(e){let{skill:t,references:a,className:s}=e,{shown:r,pager:c}=(0,i.Xd)(a);return a.length?(0,n.jsxs)(i.wn,{title:"References",count:a.length,className:s,children:[(0,n.jsx)("div",{className:"-mx-2 grid",children:r.map(e=>(0,n.jsx)(i.fI,{stacked:!0,href:"/skills/".concat(t,"/references/").concat(e.file),lead:(0,n.jsx)(l.i,{className:"size-4 text-fg-muted"}),title:e.title,parent:e.covers?u(e.covers):e.file,trailWidth:"w-0"},e.file))}),(0,n.jsx)(i.is,{...c})]}):null}function p(e){let{open:t,children:a,className:l}=e,r=(0,s.useRef)(null),i=(0,s.useRef)(null),d=(0,s.useRef)((0,o.oz)(t?-1:0,o.Cf.smooth)),[m,u]=(0,s.useState)(t),h=(0,s.useRef)(0);return(0,s.useEffect)(()=>{t&&u(!0)},[t]),(0,s.useLayoutEffect)(()=>{let e=r.current,a=i.current;if(!e||!a)return;let n=t?a.offsetHeight:0;if(d.current.x<0){d.current=(0,o.oz)(n,o.Cf.smooth),e.style.height=t?"auto":"0px";return}"auto"===e.style.height&&(d.current.x=e.offsetHeight),d.current.to=n,cancelAnimationFrame(h.current);let s=performance.now(),l=a=>{let n=(0,o.PM)(d.current,Math.min(.05,(a-s)/1e3));if(s=a,e.style.height="".concat(d.current.x,"px"),n){e.style.height=t?"auto":"0px",t||u(!1);return}h.current=requestAnimationFrame(l)};return h.current=requestAnimationFrame(l),()=>cancelAnimationFrame(h.current)},[t,m]),(0,n.jsx)("div",{ref:r,className:(0,c.cn)("overflow-hidden",l),style:{height:t?void 0:0},"aria-hidden":!t,inert:!t,children:(0,n.jsx)("div",{ref:i,children:m&&a})})}},44197:(e,t,a)=>{"use strict";a.d(t,{C:()=>i});var n=a(12115),s=a(33144);let l=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,52H40A20,20,0,0,0,20,72v64a20,20,0,0,0,20,20H96v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,100,52Zm-4,80H44V76H96ZM216,52H156a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20h56v4a28,28,0,0,1-28,28,12,12,0,0,0,0,24,52.06,52.06,0,0,0,52-52V72A20,20,0,0,0,216,52Zm-4,80H160V76h52Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M108,72v72H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8h60A8,8,0,0,1,108,72Zm108-8H156a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h68V72A8,8,0,0,0,216,64Z",opacity:"0.2"}),n.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M116,72v88a48.05,48.05,0,0,1-48,48,8,8,0,0,1,0-16,32,32,0,0,0,32-32v-8H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56h60A16,16,0,0,1,116,72ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,58H40A14,14,0,0,0,26,72v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,100,58Zm2,80H40a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2ZM216,58H156a14,14,0,0,0-14,14v64a14,14,0,0,0,14,14h62v10a34,34,0,0,1-34,34,6,6,0,0,0,0,12,46.06,46.06,0,0,0,46-46V72A14,14,0,0,0,216,58Zm2,80H156a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h60a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,56H40A16,16,0,0,0,24,72v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,100,56Zm0,80H40V72h60ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Zm0,80H156V72h60Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,60H40A12,12,0,0,0,28,72v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,100,60Zm4,80H40a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4ZM216,60H156a12,12,0,0,0-12,12v64a12,12,0,0,0,12,12h64v12a36,36,0,0,1-36,36,4,4,0,0,0,0,8,44.05,44.05,0,0,0,44-44V72A12,12,0,0,0,216,60Zm4,80H156a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h60a4,4,0,0,1,4,4Z"}))]]),r=n.forwardRef((e,t)=>n.createElement(s.A,{ref:t,...e,weights:l}));r.displayName="QuotesIcon";let i=r},90608:(e,t,a)=>{"use strict";a.d(t,{GW:()=>h,Nd:()=>x,PC:()=>b,Qn:()=>N,UP:()=>g,W4:()=>y,cK:()=>f,wV:()=>p});var n=a(95155),s=a(12115),l=a(44197),r=a(45878),i=a(68772),c=a(41880),o=a(76654),d=a(23390),m=a(50847),u=a(80526);let h=["preference","decision","lesson","person","concept"],x={preference:"Preference",decision:"Decision",lesson:"Lesson",person:"Person",concept:"Concept"},g={preference:"Preferences",decision:"Decisions",lesson:"Lessons",person:"People",concept:"Concepts"};function p(e){let[t,a]=(0,s.useState)(e),n=(0,s.useCallback)(async()=>{let e=await fetch("/api/brain",{cache:"no-store"}).catch(()=>null);(null==e?void 0:e.ok)&&a(await e.json())},[]);return(0,s.useEffect)(()=>{let e=setInterval(()=>{"visible"===document.visibilityState&&n()},1e4);return()=>clearInterval(e)},[n]),{data:t,refresh:n}}function f(e,t){let a="".concat(e.title," ").concat(e.summary," ").concat(e.body).toLowerCase();return t.every(e=>a.includes(e))}let v={a:e=>{let{href:t,children:a}=e;return(0,n.jsx)("a",{href:t,className:"text-fg-primary underline decoration-fg-muted underline-offset-2 transition-hover hover:decoration-fg-secondary",children:a})}};function j(e){let{page:t,data:a,className:s}=e;return(0,n.jsx)(d.hJ,{components:v,className:(0,u.cn)("h-auto text-ui leading-relaxed text-fg-secondary [&_strong]:font-medium [&_strong]:text-fg-primary [&_p]:text-pretty [&_li]:my-1 [&_ul]:list-outside [&_ul]:pl-5 [&_ol]:list-outside [&_ol]:pl-5",s),children:function(e,t){let a=new Map(t.nodes.map(e=>[e.id,e]));return e.replace(/\[\[([^\]|#]+)(?:#[^\]|]*)?(?:\|([^\]]*))?\]\]/g,(e,n,s)=>{let l=(null!=s?s:n).trim(),r=n.toLowerCase().replace(/['’]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(t.pages[r])return"[".concat(l,"](#brain:").concat(r,")");let i=a.get(r);return(null==i?void 0:i.href)?"[".concat(l,"](").concat(i.href,")"):l})}(t.body,a)})}function y(e,t){let[a,n]=(0,s.useState)(null),[l,r]=(0,s.useState)(null),[i,c]=(0,s.useState)(!1),[o,d]=(0,s.useState)(""),m=async()=>{if(!a)return;c(!0);let s=await e.save(a.slug,a.summary,a.body);if(s||await t(),c(!1),s)return d(s);n(null),d("")},u=async a=>{c(!0);let n=await e.remove(a);if(c(!1),"error"in n)return d(n.error);r({slug:a,...n}),d(""),await t()},h=async()=>{if(!l)return;c(!0);let a=await e.restore(l.slug,l.md,l.title);if(a||await t(),c(!1),a)return d(a);r(null)};return{editing:a,setEditing:n,removed:l,setRemoved:r,busy:i,error:o,save:m,remove:u,undo:h,reset:()=>{n(null),d("")}}}function w(e){var t;let{page:a,edits:s}=e;return(null==(t=s.editing)?void 0:t.slug)===a.slug?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.$,{variant:"ghost",size:"sm",onClick:s.reset,children:"Cancel"}),(0,n.jsx)(i.$,{variant:"primary",size:"sm",disabled:s.busy,onClick:()=>void s.save(),children:s.busy?"Saving":"Save"})]}):(0,n.jsxs)(n.Fragment,{children:[!a.seed&&(0,n.jsx)(i.$,{variant:"ghost",size:"sm",disabled:s.busy,onClick:()=>void s.remove(a.slug),children:"Remove"}),(0,n.jsx)(i.$,{variant:"secondary",size:"sm",onClick:()=>s.setEditing({slug:a.slug,summary:a.summary,body:a.body}),children:"Edit"})]})}function N(e){var t;let a,{page:s,data:i,edits:d,onGo:u,actions:h,className:g}=e,p=(null==(t=d.editing)?void 0:t.slug)===s.slug?d.editing:null,f=Object.values(i.pages).filter(e=>e.slug!==s.slug&&e.links.includes(s.slug)),v=(0,m.Xd)(s.sources),y=(0,m.Xd)(f);return(0,n.jsxs)("article",{className:g,onClick:e=>{var t,a;let n=e.target.closest("a"),s=null==n||null==(a=n.getAttribute("href"))||null==(t=a.match(/brain:([a-z0-9-]+)$/))?void 0:t[1];s&&(e.preventDefault(),u(s))},children:[(0,n.jsxs)("p",{className:"text-sm text-fg-meta",children:[x[s.type],s.updated&&", updated ".concat((a=s.updated)?new Date("".concat(a.slice(0,10),"T12:00:00")).toLocaleDateString("en-US",{month:"short",day:"numeric"}):""),s.seed&&", a sample"]}),(0,n.jsxs)("div",{className:"mt-1 flex flex-wrap items-start gap-x-3 gap-y-2",children:[(0,n.jsx)("h2",{className:"min-w-0 flex-1 text-title font-semibold text-fg-primary text-balance",children:s.title}),"none"!==h&&(0,n.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:(0,n.jsx)(w,{page:s,edits:d})})]}),p?(0,n.jsxs)("div",{className:"mt-4 grid gap-3",children:[(0,n.jsx)(c.p,{value:p.summary,onChange:e=>d.setEditing({...p,summary:e.target.value}),"aria-label":"One line"}),(0,n.jsx)(o.T,{value:p.body,onChange:e=>d.setEditing({...p,body:e.target.value}),"aria-label":"Page",className:"field-sizing-content min-h-40"})]}):(0,n.jsxs)(n.Fragment,{children:[s.summary&&(0,n.jsx)("p",{className:"mt-2 max-w-2xl text-heading text-fg-secondary text-pretty",children:s.summary}),(0,n.jsx)(j,{page:s,data:i,className:"mt-6 max-w-2xl"})]}),d.error&&(0,n.jsx)("p",{className:"mt-3 text-sm text-status-danger",children:d.error}),!p&&s.sources.length>0&&(0,n.jsxs)(m.wn,{title:"Where it came from",count:s.sources.length,className:"mt-10",children:[(0,n.jsx)("div",{className:"-mx-2 grid",children:v.shown.map(e=>(0,n.jsx)(m.fI,{stacked:!0,lead:(0,n.jsx)(l.C,{className:"size-4 text-fg-muted"}),title:(0,n.jsx)("span",{className:"block whitespace-normal text-pretty font-normal",children:e}),trailWidth:"w-0"},e))}),(0,n.jsx)(m.is,{...v.pager})]}),!p&&f.length>0&&(0,n.jsxs)(m.wn,{title:"Linked from",count:f.length,className:"mt-8",children:[(0,n.jsx)("div",{className:"-mx-2 grid",children:y.shown.map(e=>(0,n.jsx)(m.fI,{lead:(0,n.jsx)(r.i,{className:"size-4 text-fg-muted"}),title:e.title,parent:x[e.type],onClick:()=>u(e.slug),trailWidth:"w-0"},e.slug))}),(0,n.jsx)(m.is,{...y.pager})]})]})}function b(e){let{edits:t,className:a}=e;return t.removed?(0,n.jsxs)("div",{className:(0,u.cn)("flex min-h-control items-center gap-3",a),children:[(0,n.jsxs)("p",{className:"min-w-0 flex-1 text-ui text-fg-secondary text-pretty",children:[(0,n.jsx)("span",{className:"font-medium text-fg-primary",children:t.removed.title})," is out of the Brain. The agent won’t read it again."]}),(0,n.jsx)(i.$,{variant:"secondary",size:"sm",disabled:t.busy,onClick:()=>void t.undo(),children:"Undo"})]}):null}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,3390,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=71)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2849],{32523:(e,t,a)=>{"use strict";a.d(t,{Dt:()=>g,i8:()=>p,uD:()=>h});var n=a(95155),r=a(12115),s=a(88702),o=a(53847),c=a(68772),i=a(68515),d=a(80526),l=a(99365),u=a(50847);let h="pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2";function p(e){let{text:t,label:a="Copy",className:i}=e,[d,l]=(0,r.useState)(!1);return(0,n.jsxs)(c.$,{size:"sm",className:i,"aria-live":"polite",onClick:async()=>{try{await navigator.clipboard.writeText(t),l(!0),setTimeout(()=>l(!1),2e3)}catch(e){}},children:[d?(0,n.jsx)(s.J,{}):(0,n.jsx)(o.Q,{}),d?"Copied":a]})}let m={code:"Claude Code",desktop:"Desktop",phone:"Web and phone"};function g(e){let{address:t,keyValue:a,local:s,run:o,apps:c=["code","desktop","phone"],initial:g="code",touch:x}=e,[f,w]=(0,r.useState)(c.includes(g)?g:c[0]),y="".concat(a.slice(0,6)).concat("•".repeat(10)),v=JSON.stringify({mcpServers:{playground:{command:o.command,args:o.args}}},null,2),_=s?{code:[{text:"Run this once in a terminal. Claude then reaches Playground from any folder, and starts it when it isn't running.",code:"claude mcp add --scope user playground -- ".concat(o.shell)},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Developer, and choose Edit Config."},{text:"Add Playground to the file, then restart Claude.",code:v},{text:"Ask Claude about your projects, or to start a new one."}],phone:[{text:"Claude on the web and the phone need your Playground deployed at a public address. Until then, use Claude Code or Desktop."}]}:{code:[{text:"Run this once in a terminal.",code:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(a,'"'),shown:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(y,'"')},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Connectors, and add a custom connector."},{text:"Paste the address, then add this as its Authorization header.",code:"Bearer ".concat(a),shown:"Bearer ".concat(y)},{text:"In a chat, turn on Playground from the + menu."}],phone:[{text:"Add the connector once in Claude on the web or Desktop."},{text:"It appears in the phone app under the + menu in any chat."}]};return(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(i.O,{type:"single",size:"sm",value:f,onValueChange:e=>e&&w(e),"aria-label":"Claude app",className:"w-fit",children:c.map(e=>(0,n.jsx)(i.d,{value:e,className:x?"pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2.5":void 0,children:m[e]},e))}),(0,n.jsx)("ol",{className:"grid gap-4",children:_[f].map((e,t,a)=>{var r;return(0,n.jsxs)("li",{className:"flex items-start gap-3 text-ui text-fg-secondary",children:[a.length>1&&(0,n.jsx)(u.yU,{n:t+1,quiet:!0}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pt-0.5 text-pretty",children:[e.text,e.code&&(0,n.jsxs)("div",{className:(0,d.cn)(l.TY,"mt-2 flex items-start gap-2 p-3"),children:[(0,n.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap font-mono text-xs leading-relaxed text-fg-secondary [overflow-wrap:anywhere]",children:null!=(r=e.shown)?r:e.code}),(0,n.jsx)(p,{text:e.code,className:x?h:void 0})]})]})]},t)})})]})}},46118:(e,t,a)=>{"use strict";a.d(t,{C3:()=>s,KN:()=>i,XH:()=>r,gt:()=>o});var n=a(12115);let r=e=>e&&/code/i.test(e)?"code":"desktop",s={code:"Claude Code",desktop:"Claude Desktop",phone:"Claude on the web and phone"};function o(e,t){let[a,s]=(0,n.useState)(e),[o]=(0,n.useState)(()=>new Date().toISOString()),[,c]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=setInterval(async()=>{if("visible"!==document.visibilityState)return;let e=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);(null==e?void 0:e.ok)&&s((await e.json()).entries.slice(0,40)),c(e=>e+1)},3e3);return()=>clearInterval(e)},[]);let i=a.filter(e=>"ok"===e.outcome&&"refused"!==e.method),d=e=>{let a=i.find(t=>r(t.client)===e);return[a&&{client:a.client,at:a.at,call:a},t&&r(t.client)===e?t:void 0].filter(e=>!!e).sort((e,t)=>Date.parse(t.at)-Date.parse(e.at))[0]},l=[d("code"),d("desktop")].filter(e=>!!e).sort((e,t)=>Date.parse(t.at)-Date.parse(e.at))[0];return{byApp:d,newest:l,sinceOpened:i.find(e=>e.at>o)}}let c=(e,t)=>e.toDateString()===t.toDateString();function i(e){let t=Math.max(0,(Date.now()-Date.parse(e))/1e3);if(t<60)return"just now";if(t<3600)return"".concat(Math.round(t/60)," ").concat(1===Math.round(t/60)?"minute":"minutes"," ago");let a=new Date(e),n=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return c(a,new Date)?"today at ".concat(n):c(a,new Date(Date.now()-864e5))?"yesterday at ".concat(n):"on ".concat(a.toLocaleDateString("en-US",{month:"short",day:"numeric"}))}},66978:(e,t,a)=>{"use strict";a.d(t,{Xb:()=>r,q0:()=>o});let n=new Set(["draw_screen","write_page","create_flow","set_theme","create_theme","write_brief","set_axes","add_direction","finish_round","propose_rule","pin_calls","answer_note","add_variant","pick_variant","plan_section","update_plan","log_decision","commit_screen","create_project"]),r=e=>"tools/call"===e.method&&!!e.tool&&n.has(e.tool),s=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function o(e){var t,a,n,r,o;if("refused"===e.method)return"Refused a request without this Playground's key";let c=null!=(n=s(e,"name"))?n:null==(a=s(e,"uri"))||null==(t=a.match(/skill:\/\/baseline\/([^/]+)/))?void 0:t[1],i=null!=(r=e.screen)?r:s(e,"screen");switch(e.method){case"initialize":case"server/discover":return"Connected";case"tools/list":return"Listed the tools";case"skills/list":case"resources/list":return"Listed the skills";case"skills/get":case"resources/read":return c?"Read the ".concat(c," skill"):"Read a skill"}if("tools/call"!==e.method)return e.method;switch(e.tool){case"list_skills":return"Listed the skills";case"read_skill":return c?"Read the ".concat(c," skill"):"Read a skill";case"list_projects":return"Listed the projects";case"get_feedback":return i?"Read the feedback on ".concat(i):"Read the feedback";case"read_brain":return"Read the Brain's index";case"search_brain":return s(e,"query")?'Searched the Brain for "'.concat(s(e,"query"),'"'):"Searched the Brain";case"read_page":return s(e,"page")?"Read the ".concat(s(e,"page")," page"):"Read a Brain page";case"write_page":return s(e,"title")?"Wrote the ".concat(s(e,"title")," page"):"Wrote a Brain page";case"lint_brain":return"Checked the Brain";case"list_flows":return"Listed the flows";case"create_flow":return s(e,"name")?"Saved the ".concat(s(e,"name")," flow"):"Saved a flow";case"waiting":return"Checked what is waiting";case"list_themes":return"Listed the themes";case"set_theme":return s(e,"theme")?"Set the theme to ".concat(s(e,"theme")):"Set a theme";case"create_theme":return s(e,"name")?"Saved the ".concat(s(e,"name")," theme"):"Saved a theme";case"list_spreads":return"Listed the spreads";case"get_spread":return s(e,"spread")?"Read the ".concat(s(e,"spread")," spread"):"Read a spread";case"write_brief":return"Wrote up a brief";case"set_axes":return"Named a spread's axes";case"add_direction":return s(e,"name")?"Drew the ".concat(s(e,"name")," direction"):"Drew a direction";case"look_at_direction":return"Looked at a direction";case"finish_round":return"Finished a round";case"read_note":return"Read a note";case"answer_note":return"Answered a note";case"pin_calls":return i?"Marked its calls on ".concat(i," for your walkthrough"):"Marked its calls for your walkthrough";case"add_variant":return s(e,"name")?"Drew the ".concat(s(e,"name")," layout").concat(i?" of ".concat(i):""):"Drew a layout".concat(i?" of ".concat(i):"");case"pick_variant":return i?"Picked a layout for ".concat(i):"Picked a layout";case"get_plan":return e.project?"Read the plan for ".concat(e.project):"Read the plan";case"plan_section":return s(e,"title")?"Updated the ".concat(s(e,"title")," part of the plan"):"Updated a part of the plan";case"update_plan":return"Updated the steps of a round";case"log_decision":return s(e,"what")?"Logged a decision: ".concat(s(e,"what")):"Logged a decision";case"commit_screen":return s(e,"note")?"Committed a change: ".concat(s(e,"note")):"Committed a change";case"open_playground":return"Opened Playground";case"create_project":return s(e,"name")?"Started ".concat(s(e,"name")):"Started a project";case"read_taste":return"Read your taste";case"propose_rule":return s(e,"rule")?"Proposed a rule: ".concat(s(e,"rule")):"Proposed a rule";case"draw_screen":return e.version?"Drew version ".concat(e.version," of ").concat(i):"Tried to draw ".concat(null!=i?i:"a screen");case"diff_screen":return e.version?"Measured what changed in version ".concat(e.version," of ").concat(i):"Measured what changed in ".concat(null!=i?i:"a screen");case"screenshot":{let t=s(e,"device");return"Looked at ".concat(null!=i?i:"a screen").concat(t?" on ".concat(t):"")}}return"Used ".concat(null!=(o=e.tool)?o:"a tool")}},68215:(e,t,a)=>{"use strict";a.d(t,{ConnectionApps:()=>x});var n=a(95155),r=a(12115),s=a(20063),o=a(50847),c=a(74371),i=a(32296),d=a(50645),l=a(28976),u=a(99365),h=a(32523),p=a(66978),m=a(80526),g=a(46118);function x(e){(0,i.K7)("Connection");let{local:t,activity:a,lastSeen:d}=e,u=(0,s.useRouter)(),h=(0,s.usePathname)(),p=(0,s.useSearchParams)(),[x,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>w(!0),[]);let{byApp:y}=(0,g.gt)(a,d),v=t?["code","desktop"]:["code","desktop","phone"],_=v.filter(e=>y(e)).sort((e,t)=>Date.parse(y(t).at)-Date.parse(y(e).at))[0],k=p.get("app"),j=k&&v.includes(k)?k:null!=_?_:"code";return(0,n.jsxs)(c.Zk,{children:[(0,n.jsx)(o.Y9,{title:"Connection"}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,m.cn)(c.Eb,"pb-24"),children:[(0,n.jsx)("p",{className:"max-w-2xl text-ui text-pretty text-fg-secondary",children:t?"Claude starts Playground and talks to it whenever you work in a project.":"Claude reaches this Playground at its address, with its key."}),(0,n.jsxs)("div",{className:"mt-8 grid items-start gap-x-10 gap-y-8 md:grid-cols-12",children:[(0,n.jsx)(o.wn,{title:"Claude apps",className:"!mt-0 md:col-span-5 lg:col-span-4",children:(0,n.jsxs)("div",{className:"-mx-2 grid",children:[v.map(e=>{let t=y(e);return(0,n.jsx)(o.fI,{stacked:!0,lead:(0,n.jsx)(l.rA,{status:t?"built":"brief",tip:!1}),status:t?"Reaches Playground":"Not set up",title:g.C3[e],parent:t?x?"Last used ".concat((0,g.KN)(t.at)):"":"Not set up",trailWidth:"w-0",selected:e===j,onClick:()=>u.replace("".concat(h,"?app=").concat(e),{scroll:!1})},e)}),t&&(0,n.jsx)(o.fI,{stacked:!0,lead:null,title:g.C3.phone,parent:"Can't reach a Playground on your computer",trailWidth:"w-0"})]})}),(0,n.jsx)(f,{app:j,...e},j)]})]})})]})}function f(e){let{app:t,activity:a,lastSeen:s,...c}=e,i=function(e,t){let{address:a,keyValue:n,local:r,run:s}=t,o="".concat(n.slice(0,6)).concat("•".repeat(10));return"code"===e?r?[{text:"Run this once in a terminal. Claude then reaches Playground from any folder, and starts it when it isn't running.",code:"claude mcp add --scope user playground -- ".concat(s.shell)}]:[{text:"Run this once in a terminal.",code:"claude mcp add --transport http playground ".concat(a,' --header "Authorization: Bearer ').concat(n,'"'),shown:"claude mcp add --transport http playground ".concat(a,' --header "Authorization: Bearer ').concat(o,'"')}]:"desktop"===e?r?[{text:"In Claude, open Settings, then Developer, and choose Edit Config."},{text:"Add Playground to the file, then restart Claude.",code:JSON.stringify({mcpServers:{playground:{command:s.command,args:s.args}}},null,2)}]:[{text:"In Claude, open Settings, then Connectors, and add a custom connector with this address.",code:a},{text:"Add this as its Authorization header.",code:"Bearer ".concat(n),shown:"Bearer ".concat(o)}]:[{text:"Add the connector once in Claude on the web or Desktop."},{text:"It appears in the phone app under the + menu in any chat."}]}(t,c),{byApp:x}=(0,g.gt)(a,s),[f]=(0,r.useState)(()=>new Date().toISOString()),w=x(t),y=(null==w?void 0:w.call)&&w.at>f?w.call:void 0;return(0,n.jsxs)("section",{"aria-label":g.C3[t],className:"min-w-0 md:col-span-7 lg:col-span-8",children:[(0,n.jsx)("div",{className:"flex min-h-8 items-center",children:(0,n.jsx)(d.Av,{children:g.C3[t]})}),(0,n.jsx)("ol",{className:"mt-3 grid gap-5",children:[...i,{text:"Ask Claude anything about your projects. This step ticks when the call reaches Playground."}].map((e,a,r)=>(0,n.jsxs)("li",{className:"flex items-start gap-3 text-ui text-fg-secondary",children:[(0,n.jsx)(o.yU,{n:a+1,quiet:!0}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pt-0.5 text-pretty",children:[e.text,"code"in e&&e.code&&(0,n.jsxs)("div",{className:(0,m.cn)(u.TY,"mt-2 flex items-start gap-2 p-3"),children:[(0,n.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap font-mono text-xs leading-relaxed text-fg-secondary wrap-anywhere",children:"shown"in e&&e.shown?e.shown:e.code}),(0,n.jsx)(h.i8,{text:e.code,className:h.uD})]}),a===r.length-1&&(0,n.jsx)("div",{className:"mt-2 flex min-h-6 items-center",children:y?(0,n.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-sm text-fg-secondary",children:[(0,n.jsx)(l.rA,{status:"built",tip:!1}),(0,n.jsx)("span",{className:"truncate",children:"Heard from ".concat(y.client," just now: ").concat((0,p.q0)(y))})]}):(0,n.jsx)(o.vB,{status:"drawing",children:"Listening for ".concat(g.C3[t])})})]})]},a))})]})}},70311:(e,t,a)=>{Promise.resolve().then(a.bind(a,68215))}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=70311)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1248,4207],{2823:(e,t,a)=>{"use strict";a.d(t,{ConnectionPage:()=>h});var n=a(95155),s=a(12115),o=a(4353),r=a(22175),i=a(50645),c=a(28976),l=a(32523);let d=(e,t)=>e.toDateString()===t.toDateString(),u=e=>e&&/code/i.test(e)?"code":e?"desktop":"code";function h(e){let{address:t,keyValue:a,local:h,lastSeen:p,run:x,activity:m}=e,[f,y]=(0,s.useState)(!1);(0,s.useEffect)(()=>y(!0),[]);let[g,v]=(0,s.useState)(m),[,w]=(0,s.useState)(0);(0,s.useEffect)(()=>{let e=setInterval(async()=>{if("visible"!==document.visibilityState)return;let e=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);(null==e?void 0:e.ok)&&v((await e.json()).entries),w(e=>e+1)},5e3);return()=>clearInterval(e)},[]);let j=g.find(e=>"ok"===e.outcome&&"refused"!==e.method),C=[j&&{client:j.client,at:j.at},p].filter(e=>!!e).sort((e,t)=>Date.parse(t.at)-Date.parse(e.at))[0];return(0,n.jsxs)(r.w,{title:"Connection",icon:(0,n.jsx)(o.X,{}),line:h?"Claude starts Playground and talks to it when you work in a project.":"Claude reaches your Playground at this address.",children:[(0,n.jsxs)("div",{className:"-mx-2 mt-8 grid",children:[(0,n.jsx)(i.fI,{lead:(0,n.jsx)(c.rA,{status:C?"built":"brief",tip:!1}),status:C?"Connected":"Not connected",title:C?C.client:"Claude",parent:C?f?function(e){let t=Math.max(0,(Date.now()-Date.parse(e))/1e3);if(t<60)return"Last used just now";if(t<3600)return"Last used ".concat(Math.round(t/60)," ").concat(1===Math.round(t/60)?"minute":"minutes"," ago");let a=new Date(e),n=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return d(a,new Date)?"Last used today at ".concat(n):d(a,new Date(Date.now()-864e5))?"Last used yesterday at ".concat(n):"Last used on ".concat(a.toLocaleDateString("en-US",{month:"short",day:"numeric"}))}(C.at):"":"Not connected yet",trailWidth:"w-0"}),!h&&(0,n.jsx)(i.fI,{lead:null,title:"Address",parent:(0,n.jsx)("span",{className:"font-mono text-xs",children:t}),trailWidth:"w-auto",trail:(0,n.jsx)(l.i8,{text:t,className:l.uD})})]}),(0,n.jsxs)("section",{className:"mt-12",children:[(0,n.jsx)(i.Av,{children:"Set up Claude"}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(l.Dt,{address:t,keyValue:a,local:h,run:x,apps:h?["code","desktop"]:void 0,initial:u(null==C?void 0:C.client),touch:!0},u(null==C?void 0:C.client))})]})]})}},22175:(e,t,a)=>{"use strict";a.d(t,{w:()=>i});var n=a(95155),s=a(80526),o=a(74371),r=a(32296);function i(e){var t;let{title:a,icon:i,line:c,children:l,crumbs:d,actions:u}=e;return(0,r.K7)(a,null==d||null==(t=d.at(-1))?void 0:t.href),(0,n.jsxs)(o.Zk,{children:[(0,n.jsx)(o.M7,{icon:(null==d?void 0:d.length)?void 0:i,title:a,crumbs:d,column:!0,children:u}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,s.cn)(o.Eb,"pb-24"),children:[c&&(0,n.jsx)("p",{className:"max-w-2xl text-ui text-fg-secondary text-pretty",children:c}),l]})})]})}},32523:(e,t,a)=>{"use strict";a.d(t,{Dt:()=>m,i8:()=>p,uD:()=>h});var n=a(95155),s=a(12115),o=a(88702),r=a(53847),i=a(68772),c=a(68515),l=a(80526),d=a(99365),u=a(50847);let h="pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2";function p(e){let{text:t,label:a="Copy",className:c}=e,[l,d]=(0,s.useState)(!1);return(0,n.jsxs)(i.$,{size:"sm",className:c,"aria-live":"polite",onClick:async()=>{try{await navigator.clipboard.writeText(t),d(!0),setTimeout(()=>d(!1),2e3)}catch(e){}},children:[l?(0,n.jsx)(o.J,{}):(0,n.jsx)(r.Q,{}),l?"Copied":a]})}let x={code:"Claude Code",desktop:"Desktop",phone:"Web and phone"};function m(e){let{address:t,keyValue:a,local:o,run:r,apps:i=["code","desktop","phone"],initial:m="code",touch:f}=e,[y,g]=(0,s.useState)(i.includes(m)?m:i[0]),v="".concat(a.slice(0,6)).concat("•".repeat(10)),w=JSON.stringify({mcpServers:{playground:{command:r.command,args:r.args}}},null,2),j=o?{code:[{text:"Run this once in a terminal. Claude then reaches Playground from any folder, and starts it when it isn't running.",code:"claude mcp add --scope user playground -- ".concat(r.shell)},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Developer, and choose Edit Config."},{text:"Add Playground to the file, then restart Claude.",code:w},{text:"Ask Claude about your projects, or to start a new one."}],phone:[{text:"Claude on the web and the phone need your Playground deployed at a public address. Until then, use Claude Code or Desktop."}]}:{code:[{text:"Run this once in a terminal.",code:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(a,'"'),shown:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(v,'"')},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Connectors, and add a custom connector."},{text:"Paste the address, then add this as its Authorization header.",code:"Bearer ".concat(a),shown:"Bearer ".concat(v)},{text:"In a chat, turn on Playground from the + menu."}],phone:[{text:"Add the connector once in Claude on the web or Desktop."},{text:"It appears in the phone app under the + menu in any chat."}]};return(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(c.O,{type:"single",size:"sm",value:y,onValueChange:e=>e&&g(e),"aria-label":"Claude app",className:"w-fit",children:i.map(e=>(0,n.jsx)(c.d,{value:e,className:f?"pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2.5":void 0,children:x[e]},e))}),(0,n.jsx)("ol",{className:"grid gap-4",children:j[y].map((e,t,a)=>{var s;return(0,n.jsxs)("li",{className:"flex items-start gap-3 text-ui text-fg-secondary",children:[a.length>1&&(0,n.jsx)(u.yU,{n:t+1,quiet:!0}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pt-0.5 text-pretty",children:[e.text,e.code&&(0,n.jsxs)("div",{className:(0,l.cn)(d.TY,"mt-2 flex items-start gap-2 p-3"),children:[(0,n.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap font-mono text-xs leading-relaxed text-fg-secondary [overflow-wrap:anywhere]",children:null!=(s=e.shown)?s:e.code}),(0,n.jsx)(p,{text:e.code,className:f?h:void 0})]})]})]},t)})})]})}},66564:(e,t,a)=>{Promise.resolve().then(a.bind(a,2823))}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=66564)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7237],{143:(e,t,a)=>{Promise.resolve().then(a.bind(a,56715))},32523:(e,t,a)=>{"use strict";a.d(t,{Dt:()=>x,i8:()=>p,uD:()=>h});var n=a(95155),r=a(12115),s=a(88702),c=a(53847),o=a(68772),i=a(68515),l=a(80526),d=a(99365),u=a(50847);let h="pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2";function p(e){let{text:t,label:a="Copy",className:i}=e,[l,d]=(0,r.useState)(!1);return(0,n.jsxs)(o.$,{size:"sm",className:i,"aria-live":"polite",onClick:async()=>{try{await navigator.clipboard.writeText(t),d(!0),setTimeout(()=>d(!1),2e3)}catch(e){}},children:[l?(0,n.jsx)(s.J,{}):(0,n.jsx)(c.Q,{}),l?"Copied":a]})}let m={code:"Claude Code",desktop:"Desktop",phone:"Web and phone"};function x(e){let{address:t,keyValue:a,local:s,run:c,apps:o=["code","desktop","phone"],initial:x="code",touch:f}=e,[g,w]=(0,r.useState)(o.includes(x)?x:o[0]),y="".concat(a.slice(0,6)).concat("•".repeat(10)),v=JSON.stringify({mcpServers:{playground:{command:c.command,args:c.args}}},null,2),j=s?{code:[{text:"Run this once in a terminal. Claude then reaches Playground from any folder, and starts it when it isn't running.",code:"claude mcp add --scope user playground -- ".concat(c.shell)},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Developer, and choose Edit Config."},{text:"Add Playground to the file, then restart Claude.",code:v},{text:"Ask Claude about your projects, or to start a new one."}],phone:[{text:"Claude on the web and the phone need your Playground deployed at a public address. Until then, use Claude Code or Desktop."}]}:{code:[{text:"Run this once in a terminal.",code:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(a,'"'),shown:"claude mcp add --transport http playground ".concat(t,' --header "Authorization: Bearer ').concat(y,'"')},{text:"Ask Claude about your projects, or to start a new one."}],desktop:[{text:"In Claude, open Settings, then Connectors, and add a custom connector."},{text:"Paste the address, then add this as its Authorization header.",code:"Bearer ".concat(a),shown:"Bearer ".concat(y)},{text:"In a chat, turn on Playground from the + menu."}],phone:[{text:"Add the connector once in Claude on the web or Desktop."},{text:"It appears in the phone app under the + menu in any chat."}]};return(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(i.O,{type:"single",size:"sm",value:g,onValueChange:e=>e&&w(e),"aria-label":"Claude app",className:"w-fit",children:o.map(e=>(0,n.jsx)(i.d,{value:e,className:f?"pointer-coarse:relative pointer-coarse:after:absolute pointer-coarse:after:inset-x-0 pointer-coarse:after:-inset-y-2.5":void 0,children:m[e]},e))}),(0,n.jsx)("ol",{className:"grid gap-4",children:j[g].map((e,t,a)=>{var r;return(0,n.jsxs)("li",{className:"flex items-start gap-3 text-ui text-fg-secondary",children:[a.length>1&&(0,n.jsx)(u.yU,{n:t+1,quiet:!0}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 pt-0.5 text-pretty",children:[e.text,e.code&&(0,n.jsxs)("div",{className:(0,l.cn)(d.TY,"mt-2 flex items-start gap-2 p-3"),children:[(0,n.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap font-mono text-xs leading-relaxed text-fg-secondary [overflow-wrap:anywhere]",children:null!=(r=e.shown)?r:e.code}),(0,n.jsx)(p,{text:e.code,className:f?h:void 0})]})]})]},t)})})]})}},46118:(e,t,a)=>{"use strict";a.d(t,{C3:()=>s,KN:()=>i,XH:()=>r,gt:()=>c});var n=a(12115);let r=e=>e&&/code/i.test(e)?"code":"desktop",s={code:"Claude Code",desktop:"Claude Desktop",phone:"Claude on the web and phone"};function c(e,t){let[a,s]=(0,n.useState)(e),[c]=(0,n.useState)(()=>new Date().toISOString()),[,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=setInterval(async()=>{if("visible"!==document.visibilityState)return;let e=await fetch("/api/activity",{cache:"no-store"}).catch(()=>null);(null==e?void 0:e.ok)&&s((await e.json()).entries.slice(0,40)),o(e=>e+1)},3e3);return()=>clearInterval(e)},[]);let i=a.filter(e=>"ok"===e.outcome&&"refused"!==e.method),l=e=>{let a=i.find(t=>r(t.client)===e);return[a&&{client:a.client,at:a.at,call:a},t&&r(t.client)===e?t:void 0].filter(e=>!!e).sort((e,t)=>Date.parse(t.at)-Date.parse(e.at))[0]},d=[l("code"),l("desktop")].filter(e=>!!e).sort((e,t)=>Date.parse(t.at)-Date.parse(e.at))[0];return{byApp:l,newest:d,sinceOpened:i.find(e=>e.at>c)}}let o=(e,t)=>e.toDateString()===t.toDateString();function i(e){let t=Math.max(0,(Date.now()-Date.parse(e))/1e3);if(t<60)return"just now";if(t<3600)return"".concat(Math.round(t/60)," ").concat(1===Math.round(t/60)?"minute":"minutes"," ago");let a=new Date(e),n=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return o(a,new Date)?"today at ".concat(n):o(a,new Date(Date.now()-864e5))?"yesterday at ".concat(n):"on ".concat(a.toLocaleDateString("en-US",{month:"short",day:"numeric"}))}},56715:(e,t,a)=>{"use strict";a.d(t,{ConnectionProof:()=>v});var n=a(95155),r=a(52619),s=a.n(r),c=a(12115),o=a(22747),i=a(12543),l=a(68772),d=a(50847),u=a(74371),h=a(32296),p=a(28976),m=a(99365),x=a(32523),f=a(66978),g=a(80526),w=a(46118);let y="What's in my Playground?";function v(e){let{address:t,keyValue:a,local:r,run:v,lastSeen:_,activity:k}=e;(0,h.K7)("Connection");let[C,N]=(0,c.useState)(!1);(0,c.useEffect)(()=>N(!0),[]);let{newest:b,sinceOpened:S}=(0,w.gt)(k,_),[D,P]=(0,c.useState)(!1),R="code"===(b?(0,w.XH)(b.client):void 0)?"desktop":"code",L=r?["code","desktop"]:["code","desktop","phone"];return(0,n.jsxs)(u.Zk,{children:[(0,n.jsx)(d.Y9,{title:"Connection"}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:(0,n.jsxs)("div",{className:(0,g.cn)(u.Eb,"pb-24"),children:[(0,n.jsxs)("div",{className:(0,g.cn)(m.pj,"max-w-2xl p-0"),children:[(0,n.jsxs)("div",{className:"flex items-start gap-3 px-4 pb-3 pt-4",children:[(0,n.jsx)("span",{className:"grid h-5 shrink-0 place-items-center",children:(0,n.jsx)(p.rA,{status:b?"built":"brief",tip:!1})}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("h2",{className:"text-ui font-medium text-fg-primary",children:b?"".concat(b.client," reaches Playground"):"Claude hasn't reached Playground yet"}),(0,n.jsx)("p",{className:"mt-0.5 text-sm text-pretty text-fg-meta",children:b?C?"Last heard ".concat((0,w.KN)(b.at)).concat(b.call?", when it ".concat(j((0,f.q0)(b.call)),"."):"."):" ":r?"Set it up once and Claude starts Playground whenever you work in a project.":"Claude reaches this Playground at ".concat(t,".")})]}),b&&(0,n.jsx)(l.$,{asChild:!0,variant:"ghost",size:"sm",className:(0,g.cn)("-my-1 -mr-2",x.uD),children:(0,n.jsxs)(s(),{href:"/playground-variants/activity/sessions",children:["Activity",(0,n.jsx)(o.Q,{})]})})]}),!r&&(0,n.jsxs)("div",{className:"flex items-center gap-3 px-4 pb-3",children:[(0,n.jsx)("code",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-secondary",children:t}),(0,n.jsx)(x.i8,{text:t,className:x.uD})]}),(0,n.jsxs)("div",{className:(0,g.cn)(m.TY,"m-1 mt-0 grid gap-3 p-4"),children:[b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-ui text-pretty text-fg-secondary",children:"Ask Claude this in any project folder, and this card says when the call lands."}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-ui font-medium text-fg-primary",children:y}),(0,n.jsx)(x.i8,{text:y,className:x.uD})]})]}):(0,n.jsx)(x.Dt,{address:t,keyValue:a,local:r,run:v,apps:L,initial:"code",touch:!0}),(0,n.jsx)("div",{className:"flex min-h-6 items-center",children:S?(0,n.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-sm text-fg-secondary",children:[(0,n.jsx)(p.rA,{status:"built",tip:!1}),(0,n.jsx)("span",{className:"truncate",children:"".concat(S.client," just ").concat(j((0,f.q0)(S)))})]}):(0,n.jsx)(d.vB,{status:"drawing",children:"Listening for Claude"})})]})]}),b&&(0,n.jsxs)("section",{className:"mt-8 max-w-2xl",children:[(0,n.jsxs)(l.$,{variant:"ghost",size:"sm","aria-expanded":D,onClick:()=>P(e=>!e),className:(0,g.cn)("-ml-2",x.uD),children:[(0,n.jsx)(i.K,{weight:"bold",className:(0,g.cn)("transition-transform duration-hover",D&&"rotate-90")}),"Set up ",r?w.C3[R]:"another Claude app"]}),D&&(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(x.Dt,{address:t,keyValue:a,local:r,run:v,apps:L,initial:R,touch:!0})})]})]})})]})}let j=e=>e.charAt(0).toLowerCase()+e.slice(1)},66978:(e,t,a)=>{"use strict";a.d(t,{Xb:()=>r,q0:()=>c});let n=new Set(["draw_screen","write_page","create_flow","set_theme","create_theme","write_brief","set_axes","add_direction","finish_round","propose_rule","pin_calls","answer_note","add_variant","pick_variant","plan_section","update_plan","log_decision","commit_screen","create_project"]),r=e=>"tools/call"===e.method&&!!e.tool&&n.has(e.tool),s=(e,t)=>{var a;return"string"==typeof(null==(a=e.args)?void 0:a[t])?e.args[t]:void 0};function c(e){var t,a,n,r,c;if("refused"===e.method)return"Refused a request without this Playground's key";let o=null!=(n=s(e,"name"))?n:null==(a=s(e,"uri"))||null==(t=a.match(/skill:\/\/baseline\/([^/]+)/))?void 0:t[1],i=null!=(r=e.screen)?r:s(e,"screen");switch(e.method){case"initialize":case"server/discover":return"Connected";case"tools/list":return"Listed the tools";case"skills/list":case"resources/list":return"Listed the skills";case"skills/get":case"resources/read":return o?"Read the ".concat(o," skill"):"Read a skill"}if("tools/call"!==e.method)return e.method;switch(e.tool){case"list_skills":return"Listed the skills";case"read_skill":return o?"Read the ".concat(o," skill"):"Read a skill";case"list_projects":return"Listed the projects";case"get_feedback":return i?"Read the feedback on ".concat(i):"Read the feedback";case"read_brain":return"Read the Brain's index";case"search_brain":return s(e,"query")?'Searched the Brain for "'.concat(s(e,"query"),'"'):"Searched the Brain";case"read_page":return s(e,"page")?"Read the ".concat(s(e,"page")," page"):"Read a Brain page";case"write_page":return s(e,"title")?"Wrote the ".concat(s(e,"title")," page"):"Wrote a Brain page";case"lint_brain":return"Checked the Brain";case"list_flows":return"Listed the flows";case"create_flow":return s(e,"name")?"Saved the ".concat(s(e,"name")," flow"):"Saved a flow";case"waiting":return"Checked what is waiting";case"list_themes":return"Listed the themes";case"set_theme":return s(e,"theme")?"Set the theme to ".concat(s(e,"theme")):"Set a theme";case"create_theme":return s(e,"name")?"Saved the ".concat(s(e,"name")," theme"):"Saved a theme";case"list_spreads":return"Listed the spreads";case"get_spread":return s(e,"spread")?"Read the ".concat(s(e,"spread")," spread"):"Read a spread";case"write_brief":return"Wrote up a brief";case"set_axes":return"Named a spread's axes";case"add_direction":return s(e,"name")?"Drew the ".concat(s(e,"name")," direction"):"Drew a direction";case"look_at_direction":return"Looked at a direction";case"finish_round":return"Finished a round";case"read_note":return"Read a note";case"answer_note":return"Answered a note";case"pin_calls":return i?"Marked its calls on ".concat(i," for your walkthrough"):"Marked its calls for your walkthrough";case"add_variant":return s(e,"name")?"Drew the ".concat(s(e,"name")," layout").concat(i?" of ".concat(i):""):"Drew a layout".concat(i?" of ".concat(i):"");case"pick_variant":return i?"Picked a layout for ".concat(i):"Picked a layout";case"get_plan":return e.project?"Read the plan for ".concat(e.project):"Read the plan";case"plan_section":return s(e,"title")?"Updated the ".concat(s(e,"title")," part of the plan"):"Updated a part of the plan";case"update_plan":return"Updated the steps of a round";case"log_decision":return s(e,"what")?"Logged a decision: ".concat(s(e,"what")):"Logged a decision";case"commit_screen":return s(e,"note")?"Committed a change: ".concat(s(e,"note")):"Committed a change";case"open_playground":return"Opened Playground";case"create_project":return s(e,"name")?"Started ".concat(s(e,"name")):"Started a project";case"read_taste":return"Read your taste";case"propose_rule":return s(e,"rule")?"Proposed a rule: ".concat(s(e,"rule")):"Proposed a rule";case"draw_screen":return e.version?"Drew version ".concat(e.version," of ").concat(i):"Tried to draw ".concat(null!=i?i:"a screen");case"diff_screen":return e.version?"Measured what changed in version ".concat(e.version," of ").concat(i):"Measured what changed in ".concat(null!=i?i:"a screen");case"screenshot":{let t=s(e,"device");return"Looked at ".concat(null!=i?i:"a screen").concat(t?" on ".concat(t):"")}}return"Used ".concat(null!=(c=e.tool)?c:"a tool")}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,8441,1255,7358],()=>e(e.s=143)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1374],{11090:(e,t,n)=>{"use strict";n.d(t,{Catalogue:()=>g});var r=n(95155),s=n(52619),i=n.n(s),a=n(12115),l=n(20063),c=n(68772),d=n(49977),o=n(50847),u=n(74371),h=n(32296),m=n(93890),x=n(63765),f=n(83949),p=n(80526);function g(e){var t,n;let{systems:s,base:g,parent:v,index:k}=e,j=(0,l.useSearchParams)(),w=(0,l.useRouter)(),{mode:y}=(0,m.b)(),C=function(){let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),n=()=>t(e.matches);return n(),e.addEventListener("change",n),()=>e.removeEventListener("change",n)},[]),e}(),N=f.rT.find(e=>e.id===j.get("item")),E=null!=(t=s.find(e=>e.slug===j.get("system")))?t:s[0],S=!!N||!!j.get("system"),R={...E.theme,mode:y},P=e=>{let t=new URLSearchParams;e.item&&t.set("item",e.item),e.system&&(!e.item||e.system!==s[0].slug)&&t.set("system",e.system);let n=t.toString();return n?"".concat(g,"?").concat(n):g},I=N?N.name:E.name;(0,h.K7)(I);let L=[...new Set(s.map(e=>{var t;return null!=(t=e.group)?t:""}))].map(e=>[e,s.filter(t=>{var n;return(null!=(n=t.group)?n:"")===e})]),_=C&&S?[{label:k,href:g}]:v?[v]:void 0;return(0,r.jsx)(u.Zk,{children:(0,r.jsxs)("div",{className:"flex min-h-0 flex-1",children:[(0,r.jsxs)("nav",{"aria-label":"Design system",className:(0,p.cn)("min-h-0 w-60 shrink-0 overflow-y-auto border-r border-border px-2 pb-20 pt-5 md:pt-6 max-md:w-full max-md:border-r-0",S&&"max-md:hidden"),children:[C&&!S&&v&&(0,r.jsx)(i(),{href:v.href,className:"mb-3 ml-2 inline-flex h-5 items-center text-xs font-medium text-fg-meta outline-hidden transition-hover hover:text-fg-primary focus-visible:ring-2 focus-visible:ring-ring",children:v.label}),L.map(e=>{let[t,n]=e;return(0,r.jsx)(b,{title:t,children:n.map(e=>(0,r.jsx)(o.fI,{nav:!0,lead:(0,r.jsx)(x.Ig,{theme:{...e.theme,mode:y}}),title:e.name,selected:!N&&e.slug===E.slug&&(S||!C),href:P({system:e.slug}),trailWidth:"w-0"},e.slug))},t||"lead")}),(0,r.jsx)(b,{title:"Components",children:f.rT.map(e=>(0,r.jsx)(o.fI,{nav:!0,lead:null,title:e.name,selected:(null==N?void 0:N.id)===e.id,href:P({item:e.id,system:E.slug}),trailWidth:"w-0"},e.id))})]}),(0,r.jsxs)("div",{className:(0,p.cn)("min-h-0 min-w-0 flex-1 overflow-y-auto",!S&&"max-md:hidden"),children:[(0,r.jsxs)(o.Y9,{title:I,crumbs:_,wide:!0,children:[N&&s.length>1&&(0,r.jsxs)(d.l6,{value:E.slug,onValueChange:e=>w.replace(P({item:N.id,system:e}),{scroll:!1}),children:[(0,r.jsx)(d.bq,{className:"h-control-sm w-auto gap-2","aria-label":"Shown in",children:(0,r.jsx)(d.yv,{})}),(0,r.jsx)(d.gC,{align:"end",children:s.map(e=>(0,r.jsxs)(d.eb,{value:e.slug,children:[(0,r.jsx)(x.Ig,{theme:{...e.theme,mode:y}}),e.name]},e.slug))})]}),!N&&E.edit&&(0,r.jsx)(c.$,{asChild:!0,size:"sm",children:(0,r.jsx)(i(),{href:E.edit,children:"Change it"})})]}),(0,r.jsxs)("div",{className:"w-full max-w-4xl px-4 pb-24 md:px-10",children:[(0,r.jsx)("p",{className:"max-w-xl text-sm text-fg-secondary text-pretty",children:N?N.line:E.line}),N?(0,r.jsx)(x.WB,{theme:R,className:"mt-6",children:(0,r.jsx)(f.Tg,{p:N})},"".concat(R.slug,"-").concat(y)):f.TB.map(e=>(0,r.jsxs)(o.wn,{title:e.name,action:(0,r.jsx)(f.Kp,{children:e.path}),className:"mt-10",children:[(0,r.jsx)("p",{className:"max-w-xl text-sm text-fg-secondary text-pretty",children:e.line}),(0,r.jsx)(x.WB,{theme:R,className:"mt-4",children:e.body()},"".concat(R.slug,"-").concat(y))]},e.id))]})]},"".concat(E.slug,":").concat(null!=(n=null==N?void 0:N.id)?n:""))]})})}function b(e){let{title:t,children:n}=e,{shown:s,pager:i}=(0,o.Xd)(n),a=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"-mx-2 grid",children:s}),(0,r.jsx)(o.is,{...i})]});return t?(0,r.jsx)(o.wn,{title:t,count:n.length>1?n.length:void 0,className:"px-2",children:a}):(0,r.jsx)("div",{className:"px-2",children:a})}},99211:(e,t,n)=>{"use strict";n.d(t,{S:()=>R});var r=n(95155),s=n(12115),i=n(94446),a=n(3468),l=n(92556),c=n(86182),d=n(84288),o=n(76842),u=n(97602),h=Object.defineProperty,m=(e,t)=>h(e,"name",{value:t,configurable:!0}),x="Checkbox",[f,p]=(0,a.A)(x),[g,b]=f(x);function v(e){let{__scopeCheckbox:t,checked:n,children:i,defaultChecked:a,disabled:l,form:d,name:o,onCheckedChange:u,required:h,value:m="on",internal_do_not_use_render:f}=e,[p,b]=(0,c.i)({prop:n,defaultProp:null!=a&&a,onChange:u,caller:x}),[v,k]=s.useState(null),[j,w]=s.useState(null),[y,E]=s.useState(null),S=!v||!!d||!!v.closest("form"),R={checked:p,disabled:l,setChecked:b,control:v,setControl:k,name:o,form:d,value:m,userClick:y,onUserClick:E,required:h,defaultChecked:!N(a)&&a,isFormControl:S,bubbleInput:j,setBubbleInput:w};return(0,r.jsx)(g,{scope:t,...R,children:C(f)?f(R):i})}m(v,"CheckboxProvider");var k=s.forwardRef(m(function(e,t){let{__scopeCheckbox:n,onKeyDown:a,onClick:c,...d}=e,{control:o,value:h,disabled:x,checked:f,required:p,setControl:g,setChecked:v,onUserClick:k,isFormControl:j,bubbleInput:w}=b("CheckboxTrigger",n),y=(0,i.s)(t,g),C=s.useRef(f);return s.useEffect(()=>{let e=null==o?void 0:o.form;if(e){let t=m(()=>v(C.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,v]),(0,r.jsx)(u.sG.button,{type:"button",role:"checkbox","aria-checked":N(f)?"mixed":f,"aria-required":p,"data-state":E(f),"data-disabled":x?"":void 0,disabled:x,value:h,...d,ref:y,onKeyDown:(0,l.mK)(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,l.mK)(c,e=>{let t=e.isPropagationStopped();k({requestedChecked:!!N(f)||!f,hasConsumerStoppedPropagation:t}),v(e=>!!N(e)||!e),w&&j&&!t&&e.stopPropagation()})})},"CheckboxTrigger")),j=s.forwardRef(m(function(e,t){let{__scopeCheckbox:n,name:s,checked:i,defaultChecked:a,required:l,disabled:c,value:d,onCheckedChange:o,form:u,...h}=e;return(0,r.jsx)(v,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:c,required:l,onCheckedChange:o,name:s,form:u,value:d,internal_do_not_use_render:e=>{let{isFormControl:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{...h,ref:t,__scopeCheckbox:n}),s&&(0,r.jsx)(y,{__scopeCheckbox:n})]})}})},"Checkbox")),w=s.forwardRef(m(function(e,t){let{__scopeCheckbox:n,forceMount:s,...i}=e,a=b("CheckboxIndicator",n);return(0,r.jsx)(o.C,{present:s||N(a.checked)||!0===a.checked,children:(0,r.jsx)(u.sG.span,{"data-state":E(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})},"CheckboxIndicator")),y=s.forwardRef(m(function(e,t){let{__scopeCheckbox:n,onClick:a,...c}=e,{control:o,userClick:h,checked:m,defaultChecked:x,required:f,disabled:p,name:g,value:v,form:k,bubbleInput:j,setBubbleInput:w}=b("CheckboxBubbleInput",n),y=(0,i.s)(t,w),C=(0,d.X)(o),E=s.useRef(!1),S=s.useRef(m),R=s.useRef(h),P=s.useRef(null);s.useEffect(()=>{if(!j)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(!e)return;let t=S.current!==m;S.current=m;let n=null!==h&&h!==R.current;if(R.current=h,n)P.current=t?null:h,t&&(j.indeterminate=N(m),e.call(j,!N(m)&&m)),j.dispatchEvent(new Event("click",{bubbles:!h.hasConsumerStoppedPropagation}));else if(t){let t=P.current;P.current=null;let n=(null==t?void 0:t.requestedChecked)===m;E.current=!0,j.indeterminate=N(m),e.call(j,!N(m)&&m),j.dispatchEvent(new Event("click",{bubbles:!(n&&t.hasConsumerStoppedPropagation)})),E.current=!1}},[j,m,h]);let I=s.useRef(!N(m)&&m);return(0,r.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=x?x:I.current,required:f,disabled:p,name:g,value:v,form:k,...c,tabIndex:-1,ref:y,onClick:(0,l.mK)(a,e=>{E.current&&e.stopPropagation()}),style:{...c.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function C(e){return"function"==typeof e}function N(e){return"indeterminate"===e}function E(e){return N(e)?"indeterminate":e?"checked":"unchecked"}m(C,"isFunction"),m(N,"isIndeterminate"),m(E,"getState");var S=n(68659);let R=s.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,r.jsx)(j,{ref:t,className:(0,S.cn)("group/checkbox peer grid size-4 shrink-0 place-content-center rounded-check text-fg-on-primary shadow-check transition-hover hover:shadow-check-hover focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-brand data-[state=indeterminate]:bg-brand data-[state=checked]:shadow-none data-[state=indeterminate]:shadow-none",n),...s,children:(0,r.jsxs)(w,{className:"grid place-content-center text-current",children:[(0,r.jsx)("svg",{viewBox:"0 0 10 10",className:"size-2.5 group-data-[state=indeterminate]/checkbox:hidden","aria-hidden":!0,children:(0,r.jsx)("path",{d:"m2 5.2 2 2L8 3",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,r.jsx)("svg",{viewBox:"0 0 10 10",className:"hidden size-2.5 group-data-[state=indeterminate]/checkbox:block","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M2.5 5h5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})]})})});R.displayName=j.displayName},99325:(e,t,n)=>{Promise.resolve().then(n.bind(n,11090))}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,2357,645,847,82,1620,8682,3765,3949,8441,1255,7358],()=>e(e.s=99325)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6253,8377],{65617:(e,s,n)=>{Promise.resolve().then(n.bind(n,69381))},69381:(e,s,n)=>{"use strict";n.d(s,{SystemsList:()=>p});var t=n(95155),i=n(52619),a=n.n(i),r=n(68772),l=n(4179),d=n(68515),o=n(50847),c=n(74371),f=n(32296),h=n(93890),m=n(63765),x=n(80526);function g(e){var s;let n,{r:i}=e,{mode:o}=(0,h.b)(),c=null!=(s=i.usedBy)?s:i.from?"Started from ".concat(i.from):(n=i.theme).fonts.heading.family===n.fonts.body.family?n.fonts.body.family:"".concat(n.fonts.heading.family," and ").concat(n.fonts.body.family);return(0,t.jsx)(m.WB,{theme:{...i.theme,mode:o},className:"min-w-0",children:(0,t.jsxs)("div",{className:"group relative flex h-full flex-col gap-5 rounded-panel bg-bg-content p-5 shadow-ring transition-shadow hover:shadow-ring-strong",children:[(0,t.jsxs)("div",{className:"grid min-w-0 gap-1",children:[(0,t.jsx)(a(),{href:i.href,className:"truncate font-heading text-title text-fg-primary outline-hidden after:absolute after:inset-0 after:rounded-panel focus-visible:after:ring-2 focus-visible:after:ring-ring",children:i.name}),(0,t.jsx)("p",{className:"line-clamp-2 font-body text-ui text-pretty text-fg-secondary",children:c})]}),(0,t.jsxs)("div",{"aria-hidden":!0,inert:!0,className:"pointer-events-none mt-auto flex flex-wrap items-center gap-2",children:[(0,t.jsx)(r.$,{size:"sm",variant:"primary",tabIndex:-1,children:"Save"}),(0,t.jsxs)(d.O,{type:"single",size:"sm",defaultValue:"week",children:[(0,t.jsx)(d.d,{value:"day",tabIndex:-1,children:"Day"}),(0,t.jsx)(d.d,{value:"week",tabIndex:-1,children:"Week"})]}),(0,t.jsx)(l.d,{defaultChecked:!0,tabIndex:-1})]})]})})}function u(e){let{rows:s}=e;return(0,t.jsx)("div",{className:"grid grid-cols-3 gap-3 max-lg:grid-cols-2 max-sm:grid-cols-1",children:s.map(e=>(0,t.jsx)(g,{r:e},e.href))})}function p(e){let{foundation:s,projects:n,starts:i}=e;return(0,f.K7)("Design systems"),(0,t.jsx)(c.Zk,{children:(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,t.jsx)(o.Y9,{title:"Design systems"}),(0,t.jsxs)("div",{className:(0,x.cn)(c.Eb,"pb-24"),children:[(0,t.jsx)(o.wn,{title:"Foundation",children:(0,t.jsx)(u,{rows:[s]})}),(0,t.jsx)(o.wn,{title:"Projects",count:n.length,children:n.length?(0,t.jsx)(u,{rows:n}):(0,t.jsx)(o.pp,{plain:!0,title:"Every project is on Baseline",line:"A project gets its own system from its Design system page."})}),(0,t.jsx)(o.wn,{title:"Starting points",count:i.length,children:(0,t.jsx)(u,{rows:i})})]})]})})}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,645,847,82,1620,8682,3765,8441,1255,7358],()=>e(e.s=65617)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8376],{37510:(e,s,n)=>{Promise.resolve().then(n.bind(n,56324))},56324:(e,s,n)=>{"use strict";n.d(s,{DesignSystemOnTheWork:()=>u});var t=n(95155),r=n(20063),c=n(49977),i=n(50847),a=n(74371),l=n(32296),o=n(93890),d=n(40852),m=n(80526);function h(e){let{entries:s,screen:n,mode:r,open:c}=e;return(0,t.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-6 md:grid-cols-4",children:s.map(e=>(0,t.jsx)(i.FA,{device:n.device,name:"project"===e.kind?"".concat(e.name,", from ").concat(e.startedFrom):e.name,href:c(e),picture:(0,t.jsx)(d.L2,{className:"absolute inset-0",screen:n,theme:(0,d.BE)(e.theme,r),styles:e.styles})},e.slug))})}function u(e){var s,n,u;let{systems:j,project:p,screens:g}=e;(0,l.K7)("Design systems");let{mode:x}=(0,o.b)(),v=(0,d.Bh)(j),y=(0,r.useSearchParams)(),f=(0,r.useRouter)(),k=(0,r.usePathname)(),b=null!=(s=g.find(e=>e.id===y.get("screen")))?s:g[0],N=e=>"project"===e.kind?"/playground-variants/project-design-system/specimen?project=".concat(e.project):"/playground-variants/design-system/specimen?system=".concat(e.slug);return(0,t.jsx)(a.Zk,{children:(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,t.jsx)(i.Y9,{title:"Design systems",children:b&&(0,t.jsxs)(c.l6,{value:b.id,onValueChange:e=>f.replace("".concat(k,"?screen=").concat(e),{scroll:!1}),children:[(0,t.jsx)(c.bq,{className:"w-44","aria-label":"".concat(null!=(n=null==p?void 0:p.name)?n:"Project"," screen"),children:(0,t.jsx)(c.yv,{})}),(0,t.jsx)(c.gC,{children:g.map(e=>(0,t.jsx)(c.eb,{value:e.id,children:e.name},e.id))})]})}),(0,t.jsx)("div",{className:(0,m.cn)(a.Eb,"pb-24"),children:b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.wn,{title:"On ".concat(null!=(u=null==p?void 0:p.name)?u:"your project"),children:(0,t.jsx)(h,{entries:v.filter(e=>"start"!==e.kind),screen:b,mode:x,open:N})}),(0,t.jsx)(i.wn,{title:"Starting points",count:v.filter(e=>"start"===e.kind).length,className:"mt-10",children:(0,t.jsx)(h,{entries:v.filter(e=>"start"===e.kind),screen:b,mode:x,open:N})})]}):(0,t.jsx)(i.pp,{title:"No screens to show the systems on",line:"Draw a screen in a project and every design system is shown on it here."})})]})})}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,4196,645,847,82,1620,8682,3765,2383,852,8441,1255,7358],()=>e(e.s=37510)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{59488:(e,s,a)=>{"use strict";a.d(s,{DesignSystemSideBySide:()=>w});var l=a(95155),n=a(52619),t=a.n(n),i=a(20063),c=a(68772),r=a(99211),d=a(41880),m=a(67279),h=a(4179),x=a(50847),o=a(74371),g=a(32296),f=a(93890),u=a(63765),p=a(40852),j=a(65361),b=a(80526);let N=[{name:"Accent",h:"h-16",cell:e=>(0,l.jsxs)("div",{className:"grid w-full gap-1.5",children:[(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"h-5 flex-1 rounded-check bg-brand"}),(0,l.jsx)("span",{"aria-hidden":!0,className:"h-5 flex-1 rounded-check bg-brand-fill"})]}),(0,l.jsx)("span",{className:"text-xs text-fg-meta",children:(0,p.cM)(e.theme)})]})},{name:"Surfaces",h:"h-16",cell:()=>(0,l.jsx)("div",{className:"flex w-full gap-1",children:["bg-bg-chrome","bg-bg-content","bg-bg-raised","bg-bg-floating"].map(e=>(0,l.jsx)("span",{"aria-hidden":!0,className:(0,b.cn)("h-9 flex-1 rounded-check shadow-ring",e)},e))})},{name:"Text",h:"h-16",cell:()=>(0,l.jsxs)("div",{className:"flex w-full items-baseline justify-between font-body text-body",children:[(0,l.jsx)("span",{className:"text-fg-primary",children:"Aa"}),(0,l.jsx)("span",{className:"text-fg-secondary",children:"Aa"}),(0,l.jsx)("span",{className:"text-fg-meta",children:"Aa"}),(0,l.jsx)("span",{className:"text-fg-muted",children:"Aa"})]})},{name:"Headings",h:"h-20",cell:(e,s)=>{var a,n;return(0,l.jsxs)("div",{className:"grid min-w-0 gap-1",children:[(0,l.jsx)("span",{className:"truncate font-heading text-title font-semibold text-fg-primary",children:null!=(n=null==(a=s[0])?void 0:a.title)?n:e.name}),(0,l.jsx)("span",{className:"truncate text-xs text-fg-meta",children:e.theme.fonts.heading.family})]})}},{name:"Body text",h:"h-24",cell:e=>(0,l.jsxs)("div",{className:"grid min-w-0 gap-1",children:[(0,l.jsx)("span",{className:"line-clamp-2 font-body text-sm text-fg-secondary",children:e.line}),(0,l.jsx)("span",{className:"truncate text-xs text-fg-meta",children:e.theme.fonts.body.family})]})},{name:"Corners",h:"h-16",cell:e=>(0,l.jsxs)("div",{className:"flex w-full items-center gap-3",children:[(0,l.jsx)("span",{"aria-hidden":!0,className:"h-8 w-14 rounded-control bg-fill-control shadow-ring-strong"}),(0,l.jsx)("span",{"aria-hidden":!0,className:"size-8 rounded-panel bg-bg-raised shadow-ring"}),(0,l.jsx)("span",{className:"text-xs text-fg-meta",children:(0,p.gG)(e.theme)})]})},{name:"Buttons",h:"h-16",cell:e=>{var s,a;return(0,l.jsxs)("div",{className:"flex gap-2 font-body",style:(0,p.b7)((null!=(s=e.styles)?s:j.k).size),children:[(0,l.jsx)(c.$,{variant:(null!=(a=e.styles)?a:j.k).main,children:"Save"}),(0,l.jsx)(c.$,{children:"Edit"})]})}},{name:"Field",h:"h-16",cell:(e,s)=>{var a,n,t;return(0,l.jsx)(d.p,{"aria-label":"Name in ".concat(e.name),className:"w-full font-body",defaultValue:null!=(n=null==(a=s[1])?void 0:a.title)?n:e.name,style:(0,p.b7)((null!=(t=e.styles)?t:j.k).size)})}},{name:"Switch and check",h:"h-16",cell:e=>(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(h.d,{defaultChecked:!0,"aria-label":"Switch in ".concat(e.name)}),(0,l.jsx)(h.d,{"aria-label":"Switch off in ".concat(e.name)}),(0,l.jsx)(r.S,{defaultChecked:!0,"aria-label":"Check in ".concat(e.name)})]})},{name:"List row",h:"h-20",cell:(e,s)=>{var a,n,t,i;return(0,l.jsx)("div",{className:"-mx-2 w-full font-body",children:(0,l.jsx)(x.fI,{lead:(0,l.jsx)(r.S,{defaultChecked:!0,"aria-label":null!=(t=null==(a=s[2])?void 0:a.title)?t:e.name}),title:null!=(i=null==(n=s[2])?void 0:n.title)?i:e.name})})}}],v={foundation:"Foundation",project:"",start:"Starting point"};function y(e){let{e:s,rows:a,href:n}=e,{mode:i}=(0,f.b)();return(0,l.jsx)(u.WB,{theme:(0,p.BE)(s.theme,i),className:"w-52 shrink-0",children:(0,l.jsxs)("div",{className:"rounded-panel bg-bg-chrome px-4 shadow-ring",children:[(0,l.jsxs)(t(),{href:n,className:"group/col grid h-20 content-center gap-0.5 outline-hidden focus-visible:ring-2 focus-visible:ring-ring",children:[(0,l.jsx)("span",{className:"truncate font-heading text-heading font-semibold text-fg-primary group-hover/col:underline",children:s.name}),(0,l.jsx)("span",{className:"truncate text-xs text-fg-meta",children:v[s.kind]||"Started from ".concat(s.startedFrom)})]}),N.map(e=>(0,l.jsx)("div",{className:(0,b.cn)("flex items-center",e.h),children:e.cell(s,a)},e.name))]})})}function w(e){let{systems:s,rows:a}=e;(0,g.K7)("Design systems");let n=(0,p.Bh)(s),t=(0,i.useSearchParams)(),c=(0,i.useRouter)(),r=(0,i.usePathname)(),d="0"!==t.get("starts"),f=d?n:n.filter(e=>"start"!==e.kind);return(0,l.jsx)(o.Zk,{children:(0,l.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,l.jsx)(x.Y9,{title:"Design systems",wide:!0,children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(h.d,{id:"starts",checked:d,onCheckedChange:e=>c.replace(e?r:"".concat(r,"?starts=0"),{scroll:!1})}),(0,l.jsx)(m.J,{htmlFor:"starts",className:"text-ui text-fg-secondary",children:"Starting points"})]})}),(0,l.jsx)("div",{className:"overflow-x-auto pb-24",role:"region","aria-label":"Every design system side by side",tabIndex:0,children:(0,l.jsxs)("div",{className:"mx-auto flex w-max gap-3 px-4 md:px-10",children:[(0,l.jsxs)("div",{className:"sticky left-0 z-10 -ml-4 w-28 shrink-0 bg-canvas pl-4 md:-ml-10 md:w-44 md:pl-10",children:[(0,l.jsx)("div",{className:"h-20"}),N.map(e=>(0,l.jsx)("div",{className:(0,b.cn)("flex items-center text-sm text-fg-meta",e.h),children:e.name},e.name))]}),f.map(e=>{var s;return(0,l.jsx)(y,{e:e,rows:null!=(s=a[e.slug])?s:[],href:"project"===e.kind?"/playground-variants/project-design-system/specimen?project=".concat(e.project):"/playground-variants/design-system/specimen?system=".concat(e.slug)},e.slug)})]})})]})})}},65361:(e,s,a)=>{"use strict";a.d(s,{k:()=>l});let l={size:"md",main:"primary"}},73344:(e,s,a)=>{Promise.resolve().then(a.bind(a,59488))}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,4196,645,847,82,1620,8682,3765,2383,852,8441,1255,7358],()=>e(e.s=73344)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3227],{43140:(e,s,t)=>{Promise.resolve().then(t.bind(t,84649))},84649:(e,s,t)=>{"use strict";t.d(s,{DesignSystemSpecimen:()=>y});var n=t(95155),a=t(52619),r=t.n(a),l=t(20063),i=t(68772),c=t(50847),m=t(74371),d=t(32296),o=t(93890),h=t(63765),x=t(87601),g=t(40852),p=t(65361),u=t(80526);function j(e){let{entry:s,mode:t}=e;return(0,n.jsxs)(h.WB,{theme:(0,g.BE)(s.theme,t),className:"absolute inset-0 grid content-between bg-bg-chrome p-3",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"font-heading text-h3 font-semibold leading-none tracking-tight text-fg-primary",children:"Aa"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"h-2 rounded-check bg-brand"})]})}function f(e){let{title:s,entries:t,open:a,mode:r}=e;return(0,n.jsxs)("div",{className:"grid shrink-0 content-start gap-2",children:[(0,n.jsx)("h2",{className:"text-sm text-fg-meta",children:s}),(0,n.jsx)("div",{className:"flex gap-2",children:t.map(e=>(0,n.jsx)(c.FA,{device:"tablet",compact:!0,className:"w-20 shrink-0 snap-start",name:e.name,selected:e.slug===a,href:"?system=".concat(e.slug),picture:(0,n.jsx)(j,{entry:e,mode:r})},e.slug))})]})}function y(e){var s,t,a;let{systems:h,rows:j}=e;(0,d.K7)("Design systems");let{mode:y}=(0,o.b)(),b=(0,g.Bh)(h),v=(0,l.useSearchParams)().get("system"),k=null!=(s=b.find(e=>e.slug===v))?s:b[0],N=b.filter(e=>"start"!==e.kind),w=b.filter(e=>"start"===e.kind),E="project"===k.kind?(0,n.jsx)(i.$,{asChild:!0,variant:"primary",children:(0,n.jsxs)(r(),{href:"/playground-variants/project-design-system/specimen?project=".concat(k.project),children:["Change ",k.name,"'s system"]})}):"start"===k.kind?(0,n.jsx)(i.$,{asChild:!0,children:(0,n.jsxs)(r(),{href:"/playground-variants/new-design-system/from-the-screens?start=".concat(k.slug),children:["Start a system from ",k.name]})}):null;return(0,n.jsx)(m.Zk,{children:(0,n.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:[(0,n.jsx)(c.Y9,{title:"Design systems"}),(0,n.jsxs)("div",{className:(0,u.cn)(m.Eb,"pb-24"),children:[(0,n.jsxs)("nav",{"aria-label":"Design systems",className:"-mx-4 flex snap-x scroll-px-4 gap-8 overflow-x-auto px-4 pb-2 scrollbar-none md:-mx-10 md:scroll-px-10 md:px-10",children:[(0,n.jsx)(f,{title:"Yours",entries:N,open:k.slug,mode:y}),(0,n.jsx)(f,{title:"Starting points",entries:w,open:k.slug,mode:y})]}),(0,n.jsx)(x.E,{className:"mt-8",name:k.name,line:"project"===k.kind?"".concat(k.line," Started from ").concat(k.startedFrom,"."):k.line,system:{theme:k.theme,styles:null!=(t=k.styles)?t:p.k},mode:y,rows:null!=(a=j[k.slug])?a:[],cover:E&&(0,n.jsx)("div",{className:"mt-8 flex",children:E})},k.slug)]})]})})}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,4196,645,847,82,1620,8682,3765,2383,852,5889,8441,1255,7358],()=>e(e.s=43140)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7831],{29725:(a,e,t)=>{"use strict";t.d(e,{x:()=>l});var n=t(12115),r=t(33144);let h=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",opacity:"0.2"}),n.createElement("path",{d:"M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z"}))]]),i=n.forwardRef((a,e)=>n.createElement(r.A,{ref:e,...a,weights:h}));i.displayName="SquaresFourIcon";let l=i},43077:(a,e,t)=>{"use strict";t.d(e,{HomeFixes:()=>o});var n=t(95155),r=t(12115),h=t(29979),i=t(69760),l=t(25522),m=t(45515),s=t(85884);function o(a){let{initial:e}=a,t=function(){let{screenStatus:a}=(0,l.Q)(),{spreads:e,runs:t,plans:n}=(0,m.SJ)(),h=(0,s._e)();return(0,r.useCallback)(r=>{let l=function(a,e,t){var n,r,h;let i=t.filter(e=>e.project===a.slug&&"running"===e.status),l=e.find(e=>e.project===a.slug&&e.drawing);if(l)return{text:l.axes?"Drawing round ".concat(l.round," of ").concat(l.title):"Reading the brief for ".concat(l.title),state:l.axes?"drawing":"reading",since:null==(n=i.find(a=>a.spread===l.id))?void 0:n.started};let m=i[0];if(!m)return null;let s=e=>a.screens.find(a=>"".concat(e).concat(a.id)===m.spread),o=m.started;if(m.spread.startsWith("crit-")){let a=s("crit-");return a&&m.round>a.version?{text:"Drawing version ".concat(m.round," of ").concat(a.name),state:"drawing",since:o}:{text:a?"Getting ready to walk you through ".concat(a.name):"Getting a walkthrough ready",state:"looking",since:o}}return m.spread.startsWith("variants-")?{text:"Drawing variants of ".concat(null!=(h=null==(r=s("variants-"))?void 0:r.name)?h:"a screen"),state:"drawing",since:o}:m.spread.startsWith("note-")?{text:"Answering your note",state:"thinking",since:o}:"system"===m.spread?{text:"Building the design system",state:"drawing",since:o}:{text:"Working on the plan",state:"thinking",since:o}}(r,e,t),m=(0,i.hN)(r,e,a,h,n).length;return l?m?{...l,tail:"".concat(m," need you")}:l:m?{text:1===m?"1 thing needs you":"".concat(m," things need you"),state:"waiting"}:void 0},[e,t,n,a,h])}();return(0,n.jsx)(h.Home,{initial:e,title:"Home",emptyLine:"Each project you start lives here, the one that needs you most at the top.",status:t})}},43166:(a,e,t)=>{Promise.resolve().then(t.bind(t,43077))}},a=>{a.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,645,847,82,1620,8682,9979,8441,1255,7358],()=>a(a.s=43166)),_N_E=a.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4673],{26930:(e,t,n)=>{"use strict";n.d(t,{HomeLeftOff:()=>j});var s=n(95155),a=n(12115),c=n(14436),l=n(33144);let r=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.65-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"}),a.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-52.2,6.84-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88Zm-46.37-43.71a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),i=a.forwardRef((e,t)=>a.createElement(l.A,{ref:t,...e,weights:r}));i.displayName="SealCheckIcon";var o=n(26510),d=n(29725),u=n(68772),m=n(50847),h=n(49255),f=n(69760),p=n(51063),g=n(32296),v=n(99868),x=n(80526);let y={version:c.I,decision:i,note:o.Y};function j(e){let{digest:t}=e;(0,g.K7)("Home");let{all:n,loaded:c,agentOff:l}=(0,v.Hz)(t),r=(0,v.DD)(),{newProject:i}=(0,g.E2)(),o=(0,p.uB)(),h=(0,v.iM)(o),f=t.at,x=(0,a.useMemo)(()=>{let e=n.filter(e=>r[e.project.slug]).sort((e,t)=>r[t.project.slug].at-r[e.project.slug].at)[0];return null!=e?e:[...n].sort((e,t)=>{var n,s,a,c;return(null!=(a=null==(n=t.digest)?void 0:n.active)?a:0)-(null!=(c=null==(s=e.digest)?void 0:s.active)?c:0)})[0]},[n,r]);return n.length?x?(0,s.jsx)(w,{lead:x,others:n.filter(e=>e!==x),record:r[x.project.slug],agentOff:l,now:f,open:h},x.project.slug):null:(0,s.jsx)("div",{className:"grid h-full place-items-center px-4",children:c&&(0,s.jsx)(m.pp,{icon:d.x,title:"No projects yet",line:"The screen you were last on opens here, with what changed since.",action:(0,s.jsx)(u.$,{onClick:i,children:"New project"})})})}function w(e){var t,n,c,l;let{lead:r,others:i,record:o,agentOff:d,now:p,open:g}=e,j=r.project,w=null!=(l=null==(t=r.digest)?void 0:t.versions)?l:[],S=(0,a.useMemo)(()=>{var e,t;return null!=(t=null!=(e=j.screens.find(e=>e.id===(null==o?void 0:o.screen)&&(0,v.Dq)(e)))?e:j.screens.find(e=>{var t;return e.id===(null==(t=w[0])?void 0:t.screen)&&(0,v.Dq)(e)}))?t:j.screens.find(v.Dq)},[j.screens,o,w]),N=(0,a.useMemo)(()=>{if(!S)return 0;if(o){let e=w.filter(e=>e.screen===S.id&&Date.parse(e.at)<=o.at).sort((e,t)=>t.v-e.v)[0];if(e&&e.v<S.version)return e.v;if(e)return 0}return S.version>1?S.version-1:0},[S,o,w]),k=S?"/p/".concat(j.slug,"?design=").concat(S.id):"/p/".concat(j.slug),b=null==o?void 0:o.at,E=(0,a.useMemo)(()=>{let e=r.digest;if(!e)return[];let t=[...e.versions.map(e=>({key:"v-".concat(e.screen,"-").concat(e.v),at:e.at,icon:"version",title:"Version ".concat(e.v," of ").concat(e.name),parent:e.note,href:"/p/".concat(j.slug,"?design=").concat(e.screen)})),...e.decisions.map(e=>{var t;return{key:"d-".concat(e.id),at:e.at,icon:"decision",title:e.what,parent:null!=(t=e.why)?t:e.tradeoff,href:e.screen?"/p/".concat(j.slug,"?design=").concat(e.screen):"/p/".concat(j.slug)}}),...e.notes.filter(e=>e.answered).map(e=>({key:"n-".concat(e.id),at:e.updated,icon:"note",title:'Answered "'.concat(e.title,'"'),href:"/p/".concat(j.slug,"/notes?note=").concat(e.id)}))].sort((e,t)=>t.at.localeCompare(e.at));return b?t.filter(e=>Date.parse(e.at)>b):t},[r.digest,j.slug,b]),D=(0,m.Xd)(r.needs),M=(0,m.Xd)(E),Z=(0,m.Xd)(i);return(0,a.useEffect)(()=>{let e=e=>{var t;if("Enter"!==e.key||e.metaKey||e.ctrlKey||e.altKey)return;let n=e.target instanceof Element?e.target:null;null!=n&&n.closest("a, button, input, textarea, select, [contenteditable], [role=dialog]")||null==(t=document.querySelector("[data-resume]"))||t.click()};return addEventListener("keydown",e),()=>removeEventListener("keydown",e)},[]),(0,s.jsxs)("div",{className:"h-full overflow-y-auto overscroll-contain md:flex md:overflow-hidden",children:[(0,s.jsx)(C,{screen:S,seenV:N,brief:(null==(n=j.brief)?void 0:n.body)||(null==(c=j.brief)?void 0:c.lead)||j.name,href:k,open:g}),(0,s.jsxs)("aside",{className:"min-w-0 px-4 pb-16 pt-2 md:h-full md:w-96 md:shrink-0 md:overflow-y-auto md:px-6 md:pb-10 md:pt-6",children:[(0,s.jsx)("h1",{className:"text-title font-semibold text-balance text-fg-primary",children:j.name}),S&&(0,s.jsxs)("p",{className:"mt-1 text-ui text-fg-secondary",children:[S.name,", version ",S.version,o&&(0,s.jsxs)("span",{className:"text-fg-meta",children:[". You left it ",function(e,t){let n=(0,v.KN)(e,t);return"Now"===n?"just now":"Yesterday"===n?"yesterday":/^\d/.test(n)?"".concat(n," ago"):"on ".concat(n)}(o.at,p)]})]}),(0,s.jsx)(v.OI,{doing:r.doing,off:d,className:"mt-2"}),(0,s.jsx)("div",{className:"mt-4 flex gap-2",children:(0,s.jsx)(u.$,{asChild:!0,variant:"primary",className:"max-md:h-11 max-md:flex-1",children:(0,s.jsx)("a",{href:k,"data-resume":!0,onClick:e=>g(e,k),children:S?"Resume":"Open"})})}),r.needs.length>0&&(0,s.jsxs)(m.wn,{title:"Needs you",count:r.needs.length,className:"mt-8",children:[(0,s.jsx)("div",{className:"-mx-2 grid",children:D.shown.map(e=>(0,s.jsx)(m.fI,{lead:(0,s.jsx)(h.q,{state:"waiting",className:"size-3.5 text-agent-wait"}),title:(0,f.gE)(e),parent:(0,f.DG)(e),href:(0,v.Yv)(j.slug,e)},e.key))}),(0,s.jsx)(m.is,{...D.pager})]}),E.length>0&&(0,s.jsxs)(m.wn,{title:b?"Since you left":"Latest",count:b?E.length:void 0,className:"mt-8",children:[(0,s.jsx)("div",{className:"-mx-2 grid",children:M.shown.map(e=>{let t=y[e.icon];return(0,s.jsx)(m.fI,{lead:(0,s.jsx)(t,{className:"size-4 text-fg-meta"}),title:e.title,parent:e.parent,href:e.href,trail:(0,v.KN)(e.at,p),stacked:!0},e.key)})}),(0,s.jsx)(m.is,{...M.pager})]}),b&&!E.length&&(0,s.jsx)("p",{className:"mt-8 text-ui text-fg-meta",children:"Nothing changed here since you left."}),i.length>0&&(0,s.jsxs)(m.wn,{title:"Other projects",className:"mt-8",children:[(0,s.jsx)("div",{className:"-mx-2 grid",children:Z.shown.map(e=>{var t,n;return(0,s.jsx)(m.fI,{lead:(0,s.jsx)(h.q,{state:e.doing?e.doing.state:e.needs.length?"waiting":"idle",className:(0,x.cn)("size-3.5",e.doing?"text-agent-work":e.needs.length?"text-agent-wait":"text-fg-muted")}),title:e.project.name,parent:null!=(n=null==(t=e.doing)?void 0:t.text)?n:e.needs.length?(0,f.c)(e.needs):void 0,trail:(0,s.jsx)(m.y_,{n:e.needs.length,label:"need you"}),href:"/p/".concat(e.project.slug)},e.project.slug)})}),(0,s.jsx)(m.is,{...Z.pager})]})]})]})}function C(e){let{screen:t,seenV:n,brief:c,href:l,open:r}=e,i=(0,a.useRef)(null),o=function(e){let[t,n]=(0,a.useState)({w:0,h:0});return(0,a.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let s=()=>n({w:t.clientWidth,h:t.clientHeight});s();let a=new ResizeObserver(s);return a.observe(t),()=>a.disconnect()},[e]),t}(i),[d,m]=(0,a.useState)(!1),h=t?(0,v.OV)(t):"phone",f="phone"===h?390/844:"tablet"===h?.75:1.6,p=o.w>=600?48:16,g={w:Math.max(0,o.w-2*p),h:Math.max(0,o.h-2*p-48)},x=Math.min(g.w,g.h*f);return(0,s.jsx)("div",{ref:i,className:"relative flex h-3/5 min-w-0 flex-col items-center justify-center md:h-full md:flex-1",children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:l,onClick:e=>r(e,l),"aria-label":"Resume ".concat(t.name),className:"block rounded-dialog shadow-float outline-hidden focus-visible:ring-2 focus-visible:ring-ring",style:{width:x},children:(0,s.jsx)("span",{className:"relative block",children:(0,s.jsx)(v.Dd,{screen:t,v:d&&n?n:t.version,device:h})})}),(0,s.jsx)("div",{className:"mt-3 flex h-9 items-center",children:n>0&&(0,s.jsxs)(u.$,{variant:"ghost",size:"sm","aria-pressed":d,onPointerDown:e=>(e.currentTarget.setPointerCapture(e.pointerId),m(!0)),onPointerUp:()=>m(!1),onPointerCancel:()=>m(!1),onKeyDown:e=>(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),m(!0)),onKeyUp:()=>m(!1),onBlur:()=>m(!1),onContextMenu:e=>e.preventDefault(),className:"touch-none select-none aria-pressed:bg-fill-selected aria-pressed:text-fg-primary max-md:h-11",children:["Hold to see version ",n]})})]}):(0,s.jsx)("p",{className:"line-clamp-6 max-w-md px-6 text-center text-heading font-normal text-fg-secondary",children:c})})}},96990:(e,t,n)=>{Promise.resolve().then(n.bind(n,26930))},99868:(e,t,n)=>{"use strict";n.d(t,{B$:()=>k,DD:()=>N,Dd:()=>C,Dq:()=>f,Hz:()=>g,KN:()=>S,OI:()=>w,OV:()=>p,RS:()=>j,Yv:()=>v,dy:()=>y,iM:()=>b,vi:()=>x});var s=n(95155),a=n(12115),c=n(49255),l=n(41620),r=n(69760),i=n(25522),o=n(45515),d=n(85884),u=n(83942),m=n(82),h=n(80526);let f=e=>"blank"!==e.kind&&e.version>0,p=e=>(0,m.XA)(e)[0];function g(e){let{projects:t,screenStatus:n,loaded:s}=(0,i.Q)(),{spreads:c,runs:l,plans:u}=(0,o.SJ)(),m=(0,d._e)(),h=(0,a.useMemo)(()=>l.filter(t=>"running"===t.status&&!e.agentOff&&(e.live.includes(t.id)||Date.parse(t.started)>e.at)),[l,e]),f=(0,a.useMemo)(()=>t.filter(e=>"playground"!==e.slug).map(t=>({project:t,digest:e.projects.find(e=>e.slug===t.slug),needs:(0,r.hN)(t,c,n,m,u),doing:(0,r.DJ)(t,e.agentOff?[]:c.filter(e=>!e.drawing||h.some(t=>t.spread===e.id)),h)})),[t,c,n,m,u,h,e]),p=f.reduce((e,t)=>e+t.needs.length,0);return{all:f,total:p,loaded:s,agentOff:e.agentOff}}function v(e,t){return"plan"===t.kind?"/p/".concat(e):"round"===t.kind?"/p/".concat(e,"?round=").concat(t.spread.id):"layouts"===t.kind?"/p/".concat(e,"?design=").concat(t.screen.id,"&variants"):"/p/".concat(e,"?design=").concat(t.screen.id,"&review")}function x(e){return"plan"===e.kind?"Read the part":"round"===e.kind?e.plan?"Read the plan":"See the directions":"layouts"===e.kind?"Compare layouts":"Walk me through it"}function y(e){return"plan"===e.kind?"The agent can't start building until you approve this":"round"===e.kind?e.plan?"Nothing is drawn until you approve this plan":"The agent drew directions for you to choose from":"layouts"===e.kind?"The next version waits on your pick":"Ready for you to look at"}let j=e=>1===e?"1 thing needs you":"".concat(e," things need you");function w(e){let{doing:t,off:n,className:a}=e;if(!n&&!t)return null;let r=n?"idle":t.state;return(0,s.jsxs)("p",{className:(0,h.cn)("flex min-w-0 items-center gap-1.5 text-ui text-fg-secondary",a),children:[(0,s.jsx)(c.q,{state:r,className:(0,h.cn)("size-3.5 shrink-0",(0,l.YV)(r))}),(0,s.jsx)("span",{className:"truncate",children:n?"The agent is off":t.text})]})}function C(e){let{screen:t,v:n,device:a,className:c}=e,l=null!=a?a:p(t);return(0,s.jsx)("span",{className:(0,h.cn)("relative block overflow-hidden","phone"===l?"rounded-dialog":"rounded-panel",c),style:{aspectRatio:"phone"===l?390/844:"tablet"===l?.75:1.6},children:(0,s.jsx)(u.VI,{screen:t,v:null!=n?n:t.version,device:l})})}function S(e,t){let n="number"==typeof e?e:Date.parse(e),s=Math.floor((t-n)/6e4);return s<1?"Now":s<60?"".concat(s,"m"):s<1440?"".concat(Math.floor(s/60),"h"):new Date(n).toDateString()===new Date(t-864e5).toDateString()?"Yesterday":new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function N(){let[e,t]=(0,a.useState)({});return(0,a.useEffect)(()=>{try{var e;t(JSON.parse(null!=(e=localStorage.getItem("playground:last"))?e:"{}"))}catch(e){}},[]),e}function k(e){let[t,n]=(0,a.useState)();return(0,a.useEffect)(()=>{try{let t=Number(localStorage.getItem(e));t&&n(t)}catch(e){}let t=()=>{try{localStorage.setItem(e,String(Date.now()))}catch(e){}};return addEventListener("pagehide",t),()=>(removeEventListener("pagehide",t),t())},[e]),t}function b(e){return(0,a.useCallback)((t,n)=>{t.defaultPrevented||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),e(n))},[e])}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,4196,2357,8091,645,847,82,1620,8682,3765,2383,3949,961,3942,8441,1255,7358],()=>e(e.s=96990)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8995],{108:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var a=n(12115),l=n(33144);let s=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212ZM163.27,77l-56,24a12,12,0,0,0-6.3,6.3l-24,56A12,12,0,0,0,92.73,179l56-24a12,12,0,0,0,6.3-6.3l24-56A12,12,0,0,0,163.27,77Zm-28.41,57.89-24,10.29,10.29-24,24-10.29Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm16,112L80,176l32-64,64-32Z",opacity:"0.2"}),a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm51.58,57.79-32,64a4.08,4.08,0,0,1-1.79,1.79l-64,32a4,4,0,0,1-5.37-5.37l32-64a4.08,4.08,0,0,1,1.79-1.79l64-32A4,4,0,0,1,179.58,81.79Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM173.32,74.63l-64,32a6,6,0,0,0-2.69,2.69l-32,64A6,6,0,0,0,80,182a6.06,6.06,0,0,0,2.68-.63l64-32a6,6,0,0,0,2.69-2.69l32-64a6,6,0,0,0-8.05-8.05Zm-33.79,64.9L93.42,162.58l23-46.11,46.11-23Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM174.21,76.42l-64,32a4.08,4.08,0,0,0-1.79,1.79l-32,64A4,4,0,0,0,80,180a4.05,4.05,0,0,0,1.79-.42l64-32a4.08,4.08,0,0,0,1.79-1.79l32-64a4,4,0,0,0-5.37-5.37ZM141,141l-52.08,26L115,115l52.08-26Z"}))]]),r=a.forwardRef((e,t)=>a.createElement(l.A,{ref:t,...e,weights:s}));r.displayName="CompassIcon";let i=r},49146:(e,t,n)=>{Promise.resolve().then(n.bind(n,66812))},66812:(e,t,n)=>{"use strict";n.d(t,{HomeNeedsYou:()=>E});var a=n(95155),l=n(52619),s=n.n(l),r=n(20063),i=n(12115),c=n(19352),o=n(108),d=n(29725),m=n(33144);let u=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),i.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),h=i.forwardRef((e,t)=>i.createElement(m.A,{ref:t,...e,weights:u}));h.displayName="EyeIcon";var p=n(82765),g=n(68772),f=n(50847),x=n(49255),v=n(41620),j=n(69760),y=n(51063),N=n(32296),w=n(83942),k=n(99868),A=n(80526);let Z={plan:c.y,round:o.F,layouts:d.x,review:h};function E(e){let{digest:t}=e;(0,N.K7)("Home");let{all:n,total:l,loaded:s,agentOff:c}=(0,k.Hz)(t),{newProject:o}=(0,N.E2)(),m=(0,r.useSearchParams)(),u=(0,r.useRouter)(),h=(0,r.usePathname)(),p=(0,y.uB)(),w=(0,k.iM)(p),E=(0,i.useMemo)(()=>[...n].filter(e=>e.needs.length).sort((e,t)=>{var n,a,l,s;return t.needs.length-e.needs.length||(null!=(l=null==(n=t.digest)?void 0:n.active)?l:0)-(null!=(s=null==(a=e.digest)?void 0:a.active)?s:0)}).flatMap(e=>e.needs.map(t=>({truth:e,need:t,id:"".concat(e.project.slug,".").concat(t.key)}))),[n]),b=(0,i.useMemo)(()=>n.filter(e=>!e.needs.length).sort((e,t)=>{var n,a,l,s;return(null!=(l=null==(n=t.digest)?void 0:n.active)?l:0)-(null!=(s=null==(a=e.digest)?void 0:a.active)?s:0)}),[n]),C=m.get("item"),S=Math.max(0,E.findIndex(e=>e.id===C)),D=E.length?E[S]:void 0,O=(0,f.Xd)(E),F=(0,f.Xd)(b),I=e=>"".concat(h,"?item=").concat(encodeURIComponent(e));if((0,i.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey||e.altKey||!["j","k","Enter"].includes(e.key))return;let t=e.target instanceof Element?e.target:null;if(null==t?void 0:t.closest("input, textarea, select, [contenteditable], [role=dialog]"))return;if("Enter"===e.key){var n;if(null==t?void 0:t.closest("a, button"))return;return void(null==(n=document.querySelector("[data-act]"))||n.click())}if(!E.length)return;e.preventDefault();let a=Math.max(0,Math.min(E.length-1,S+("j"===e.key?1:-1)));Math.floor(a/10)!==O.pager.page&&O.pager.onPage(Math.floor(a/10)),u.replace(I(E[a].id),{scroll:!1})};return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),s&&!n.length)return(0,a.jsx)("div",{className:"grid h-full place-items-center px-4",children:(0,a.jsx)(f.pp,{icon:d.x,title:"No projects yet",line:"What needs you in each project lands here, one at a time.",action:(0,a.jsx)(g.$,{onClick:o,children:"New project"})})});let K=!!C&&!!D,R=O.shown.reduce((e,t)=>{let n=e.at(-1);return n&&n.truth===t.truth?n.items.push(t):e.push({truth:t.truth,items:[t]}),e},[]);return(0,a.jsxs)("div",{className:"h-full md:flex",children:[(0,a.jsxs)("nav",{"aria-label":"Needs you",className:(0,A.cn)("h-full overflow-y-auto overscroll-contain px-2 pb-16 pt-4 md:w-96 md:shrink-0 md:pb-8 md:pl-4",K&&"max-md:hidden"),children:[0===E.length&&s&&(0,a.jsx)(f.pp,{plain:!0,title:"Nothing needs you",line:c?"The agent is off, so nothing new arrives until it's on.":void 0,className:"mb-4 md:hidden"}),R.map((e,t)=>(0,a.jsx)(f.wn,{title:e.truth.project.name,count:e.truth.needs.length,className:"mt-5 px-2 first:mt-0",children:(0,a.jsx)("div",{className:"-mx-2 grid",children:e.items.map(e=>{let t=Z[e.need.kind];return(0,a.jsx)(f.fI,{lead:(0,a.jsx)(t,{className:"size-4 text-fg-meta"}),title:(0,j.gE)(e.need),parent:(0,j.DG)(e.need),href:I(e.id),selected:e===D},e.id)})})},"".concat(e.truth.project.slug,"-").concat(t))),(0,a.jsx)(f.is,{...O.pager,className:"px-2"}),b.length>0&&(0,a.jsxs)(f.wn,{title:E.length?"Nothing waiting":"Projects",className:"mt-8 px-2",children:[(0,a.jsx)("div",{className:"-mx-2 grid",children:F.shown.map(e=>{var n,l,s,r,i,c;return(0,a.jsx)(f.fI,{lead:(0,a.jsx)(x.q,{state:null!=(i=null==(n=e.doing)?void 0:n.state)?i:"idle",className:(0,A.cn)("size-3.5",(0,v.YV)(null!=(c=null==(l=e.doing)?void 0:l.state)?c:"idle"))}),title:e.project.name,parent:null==(s=e.doing)?void 0:s.text,trail:(null==(r=e.digest)?void 0:r.active)?(0,k.KN)(e.digest.active,t.at):void 0,href:"/p/".concat(e.project.slug)},e.project.slug)})}),(0,a.jsx)(f.is,{...F.pager})]}),E.length>0&&(0,a.jsx)(k.OI,{doing:null,off:c,className:"mt-8 px-2 text-fg-meta"})]}),(0,a.jsx)("section",{"aria-label":"In focus",className:(0,A.cn)("h-full min-w-0 flex-1 overflow-y-auto overscroll-contain px-4 pb-16 pt-4 md:px-10 md:pb-10",!K&&"max-md:hidden"),children:D?(0,a.jsx)(M,{item:D,agentOff:c,open:w,back:h},D.id):s&&!l&&(0,a.jsx)("div",{className:"grid h-full place-items-center max-md:hidden",children:(0,a.jsx)(f.pp,{plain:!0,title:"Nothing needs you",line:c?"The agent is off, so nothing new arrives until it's on.":void 0})})})]})}function M(e){var t;let{item:n,agentOff:l,open:r,back:c}=e,{truth:o,need:d}=n,m=o.project,u="layouts"===d.kind||"review"===d.kind?d.screen:void 0,h=function(e,t,n){let[a,l]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(!t)return;let n=!0;return fetch("/api/studio/crit?project=".concat(e,"&screen=").concat(t),{cache:"no-store"}).then(e=>e.ok?e.json():null).then(e=>{var t;return n&&l(null!=(t=null==e?void 0:e.crit)?t:null)}).catch(()=>{}),()=>void(n=!1)},[e,t]),a&&a.version===n?a.calls.filter(e=>!e.undone):[]}(m.slug,"review"===d.kind?null==u?void 0:u.id:void 0,null==u?void 0:u.version),v="plan"===d.kind?null==(t=o.digest)?void 0:t.parts.find(e=>e.id===d.section.id):void 0,y=(0,k.Yv)(m.slug,d),N=u?(0,k.OV)(u):"phone";return(0,a.jsxs)("article",{className:"mx-auto grid max-w-5xl gap-8 md:grid-cols-5 md:items-start",children:[(0,a.jsxs)("header",{className:"min-w-0 md:order-2 md:col-span-2 md:pt-2",children:[(0,a.jsx)(g.$,{asChild:!0,variant:"ghost",size:"sm",className:"-ml-2.5 mb-3 md:hidden",children:(0,a.jsxs)(s(),{href:c,children:[(0,a.jsx)(p.Z,{}),"Needs you"]})}),(0,a.jsxs)("p",{className:"flex items-center gap-1.5 text-sm font-medium text-agent-wait",children:[(0,a.jsx)(x.q,{state:"waiting",className:"size-3.5"}),h.some(e=>e.doubt)?"The agent isn't sure about part of this":(0,k.dy)(d)]}),(0,a.jsx)("h1",{className:"mt-2 text-title font-semibold text-balance text-fg-primary",children:(0,j.gE)(d)}),(0,a.jsxs)("p",{className:"mt-0.5 text-sm text-fg-meta",children:[(0,a.jsx)(s(),{href:"/p/".concat(m.slug),className:"hover:text-fg-secondary",children:m.name}),u?", screen ".concat(m.screens.indexOf(u)+1," of ").concat(m.screens.length):""]}),"plan"===d.kind&&v&&(0,a.jsxs)("div",{className:"mt-5 grid gap-3 text-ui text-pretty text-fg-secondary",children:[(0,a.jsx)("p",{children:v.does}),v.ask&&(0,a.jsx)("p",{className:"text-fg-primary",children:v.ask})]}),"round"===d.kind&&(0,a.jsx)("p",{className:"mt-5 text-ui text-pretty text-fg-secondary",children:d.spread.brief}),"layouts"===d.kind&&(0,a.jsxs)("p",{className:"mt-5 text-ui text-pretty text-fg-secondary",children:[d.count," ",1===d.count?"layout":"layouts"," of ",d.screen.name,", drawn from version ",d.screen.version,". The agent builds the next version from the one you pick."]}),"review"===d.kind&&(h.length?(0,a.jsx)("ol",{className:"mt-5 grid gap-2.5",children:h.map(e=>(0,a.jsxs)("li",{className:"flex gap-2.5 text-ui",children:[(0,a.jsx)(f.yU,{n:e.n,agent:!0,className:"size-5"}),(0,a.jsxs)("span",{className:"min-w-0 text-pretty text-fg-secondary",children:[e.text,e.doubt&&(0,a.jsx)("span",{className:"mt-0.5 block text-fg-primary",children:e.why})]})]},e.id))}):(0,a.jsxs)("p",{className:"mt-5 text-ui text-pretty text-fg-secondary",children:["Version ",d.screen.version," is ready. The agent walks you through what it changed, one change at a time."]})),(0,a.jsx)("div",{className:"mt-6 flex flex-wrap gap-2",children:(0,a.jsx)(g.$,{asChild:!0,variant:"primary",className:"max-md:h-11",children:(0,a.jsx)("a",{href:y,"data-act":!0,onClick:e=>r(e,y),children:"review"===d.kind&&h.length>1?"Walk me through all ".concat(h.length):(0,k.vi)(d)})})}),o.doing&&(0,a.jsx)(k.OI,{doing:o.doing,off:l,className:"mt-6"})]}),(0,a.jsx)("div",{className:"min-w-0 md:order-1 md:col-span-3",children:u?(0,a.jsxs)("div",{className:(0,A.cn)("relative mx-auto","phone"===N?"w-full max-w-xs":"w-full"),children:[(0,a.jsx)(k.Dd,{screen:u,device:N,className:"shadow-float"}),h.length>0&&(0,a.jsx)("div",{className:(0,A.cn)("pointer-events-none absolute inset-0 overflow-hidden","phone"===N?"rounded-dialog":"rounded-panel"),children:h.map(e=>(0,a.jsx)(w.Gk,{call:e,quiet:!0},e.id))})]}):(0,a.jsx)(b,{truth:o,need:d})})]})}function b(e){let{truth:t,need:n}=e,l=t.project.screens.filter(e=>"blank"!==e.kind&&e.version>0).slice(0,3);return l.length?(0,a.jsxs)("div",{className:"flex items-end justify-center gap-4 rounded-panel bg-fill-control p-8 shadow-ring max-md:p-4","aria-label":"".concat(t.project.name," today"),children:[l.map(e=>(0,a.jsx)(k.Dd,{screen:e,className:(0,A.cn)("shadow-float","phone"===(0,k.OV)(e)?"w-1/4":"w-full")},e.id)),(0,a.jsx)("span",{className:"sr-only",children:(0,j.gE)(n)})]}):(0,a.jsx)("div",{className:"aspect-video rounded-panel hatch"})}},99868:(e,t,n)=>{"use strict";n.d(t,{B$:()=>Z,DD:()=>A,Dd:()=>w,Dq:()=>p,Hz:()=>f,KN:()=>k,OI:()=>N,OV:()=>g,RS:()=>y,Yv:()=>x,dy:()=>j,iM:()=>E,vi:()=>v});var a=n(95155),l=n(12115),s=n(49255),r=n(41620),i=n(69760),c=n(25522),o=n(45515),d=n(85884),m=n(83942),u=n(82),h=n(80526);let p=e=>"blank"!==e.kind&&e.version>0,g=e=>(0,u.XA)(e)[0];function f(e){let{projects:t,screenStatus:n,loaded:a}=(0,c.Q)(),{spreads:s,runs:r,plans:m}=(0,o.SJ)(),u=(0,d._e)(),h=(0,l.useMemo)(()=>r.filter(t=>"running"===t.status&&!e.agentOff&&(e.live.includes(t.id)||Date.parse(t.started)>e.at)),[r,e]),p=(0,l.useMemo)(()=>t.filter(e=>"playground"!==e.slug).map(t=>({project:t,digest:e.projects.find(e=>e.slug===t.slug),needs:(0,i.hN)(t,s,n,u,m),doing:(0,i.DJ)(t,e.agentOff?[]:s.filter(e=>!e.drawing||h.some(t=>t.spread===e.id)),h)})),[t,s,n,u,m,h,e]),g=p.reduce((e,t)=>e+t.needs.length,0);return{all:p,total:g,loaded:a,agentOff:e.agentOff}}function x(e,t){return"plan"===t.kind?"/p/".concat(e):"round"===t.kind?"/p/".concat(e,"?round=").concat(t.spread.id):"layouts"===t.kind?"/p/".concat(e,"?design=").concat(t.screen.id,"&variants"):"/p/".concat(e,"?design=").concat(t.screen.id,"&review")}function v(e){return"plan"===e.kind?"Read the part":"round"===e.kind?e.plan?"Read the plan":"See the directions":"layouts"===e.kind?"Compare layouts":"Walk me through it"}function j(e){return"plan"===e.kind?"The agent can't start building until you approve this":"round"===e.kind?e.plan?"Nothing is drawn until you approve this plan":"The agent drew directions for you to choose from":"layouts"===e.kind?"The next version waits on your pick":"Ready for you to look at"}let y=e=>1===e?"1 thing needs you":"".concat(e," things need you");function N(e){let{doing:t,off:n,className:l}=e;if(!n&&!t)return null;let i=n?"idle":t.state;return(0,a.jsxs)("p",{className:(0,h.cn)("flex min-w-0 items-center gap-1.5 text-ui text-fg-secondary",l),children:[(0,a.jsx)(s.q,{state:i,className:(0,h.cn)("size-3.5 shrink-0",(0,r.YV)(i))}),(0,a.jsx)("span",{className:"truncate",children:n?"The agent is off":t.text})]})}function w(e){let{screen:t,v:n,device:l,className:s}=e,r=null!=l?l:g(t);return(0,a.jsx)("span",{className:(0,h.cn)("relative block overflow-hidden","phone"===r?"rounded-dialog":"rounded-panel",s),style:{aspectRatio:"phone"===r?390/844:"tablet"===r?.75:1.6},children:(0,a.jsx)(m.VI,{screen:t,v:null!=n?n:t.version,device:r})})}function k(e,t){let n="number"==typeof e?e:Date.parse(e),a=Math.floor((t-n)/6e4);return a<1?"Now":a<60?"".concat(a,"m"):a<1440?"".concat(Math.floor(a/60),"h"):new Date(n).toDateString()===new Date(t-864e5).toDateString()?"Yesterday":new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function A(){let[e,t]=(0,l.useState)({});return(0,l.useEffect)(()=>{try{var e;t(JSON.parse(null!=(e=localStorage.getItem("playground:last"))?e:"{}"))}catch(e){}},[]),e}function Z(e){let[t,n]=(0,l.useState)();return(0,l.useEffect)(()=>{try{let t=Number(localStorage.getItem(e));t&&n(t)}catch(e){}let t=()=>{try{localStorage.setItem(e,String(Date.now()))}catch(e){}};return addEventListener("pagehide",t),()=>(removeEventListener("pagehide",t),t())},[e]),t}function E(e){return(0,l.useCallback)((t,n)=>{t.defaultPrevented||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),e(n))},[e])}}},e=>{e.O(0,[5219,4809,2619,3078,8362,280,7404,4873,2548,9729,544,2201,4196,2357,8091,645,847,82,1620,8682,3765,2383,3949,961,3942,8441,1255,7358],()=>e(e.s=49146)),_N_E=e.O()}]);