create-avocado-site 0.16.0 → 0.17.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 (54) hide show
  1. package/assets/generated-images/gen_1789981693445_284abc56.jpg +0 -0
  2. package/assets/generated-images/gen_1789981703140_99ea2d8b.jpg +0 -0
  3. package/assets/generated-images/gen_1789981712535_d49ec7bb.jpg +0 -0
  4. package/assets/generated-images/gen_1789981721898_119231c3.jpg +0 -0
  5. package/assets/generated-images/gen_1789981730383_637ea1b8.jpg +0 -0
  6. package/assets/generated-images/gen_1789981739789_5cc514da.jpg +0 -0
  7. package/assets/generated-images/gen_1789981749474_0be65523.jpg +0 -0
  8. package/assets/generated-images/gen_1789982485512_1932c58c.jpg +0 -0
  9. package/assets/generated-images/gen_1789982495151_4a0113e0.jpg +0 -0
  10. package/assets/generated-images/gen_1789982505374_5c12f604.jpg +0 -0
  11. package/assets/generated-images/gen_1789982517293_ed7fc0f2.jpg +0 -0
  12. package/assets/generated-images/gen_1789982525626_5468907f.jpg +0 -0
  13. package/assets/generated-images/gen_1789982534675_6d1b122e.jpg +0 -0
  14. package/assets/generated-images/gen_1789982542619_faba5835.jpg +0 -0
  15. package/assets/generated-images/gen_1789982552275_17891fd1.jpg +0 -0
  16. package/assets/generated-images/gen_1789982561072_c3631ea6.jpg +0 -0
  17. package/assets/generated-images/gen_1789982570680_82f806c3.jpg +0 -0
  18. package/assets/generated-images/gen_1789982580474_c3304b74.jpg +0 -0
  19. package/assets/generated-images/gen_1789982589383_87f4e381.jpg +0 -0
  20. package/assets/generated-images/gen_1789982599838_c8f89267.jpg +0 -0
  21. package/assets/generated-images/gen_1789982608948_b08d16ad.jpg +0 -0
  22. package/assets/generated-images/gen_1789982618063_c2d3fb42.jpg +0 -0
  23. package/assets/generated-images/gen_1789982626863_3c386cb6.jpg +0 -0
  24. package/assets/generated-images/gen_1789982636865_c9fdfa16.jpg +0 -0
  25. package/assets/generated-images/gen_1789982646478_0e7c60b3.jpg +0 -0
  26. package/assets/generated-images/gen_1789982655687_3d71a0cc.jpg +0 -0
  27. package/assets/generated-images/gen_1789982665153_e2ecd91f.jpg +0 -0
  28. package/assets/generated-images/gen_1789982674589_9bcabe11.jpg +0 -0
  29. package/assets/generated-images/gen_1789982683093_e92fc3ac.jpg +0 -0
  30. package/assets/generated-images/gen_1789982693035_b6d184c7.jpg +0 -0
  31. package/assets/generated-images/gen_1789982702257_3b108f7b.jpg +0 -0
  32. package/assets/generated-images/gen_1789982711758_9f480e3f.jpg +0 -0
  33. package/assets/generated-images/gen_1789982721489_4bf84186.jpg +0 -0
  34. package/assets/generated-images/gen_1789982730122_db36d0e4.jpg +0 -0
  35. package/assets/generated-images/gen_1789982740142_bea82ed7.jpg +0 -0
  36. package/assets/generated-images/gen_1789982748906_a97ffb7a.jpg +0 -0
  37. package/assets/generated-images/gen_1789982818435_30194053.jpg +0 -0
  38. package/assets/logos/avocado-hub.svg +7 -4
  39. package/dist/index.js +5 -4
  40. package/dist/prompts.js +26 -6
  41. package/dist/templates/demo-content.d.ts +1 -1
  42. package/dist/templates/demo-content.js +1 -1
  43. package/dist/versions.d.ts +1 -1
  44. package/dist/versions.js +1 -1
  45. package/package.json +4 -4
  46. package/assets/generated-images/gen_1774991902955_0p1i2o.webp +0 -0
  47. package/assets/generated-images/gen_1788955681679_454dc316.webp +0 -0
  48. package/assets/generated-images/gen_1789906172816_d7d537c1.jpg +0 -0
  49. package/assets/generated-images/var_1773434968055_8g99nk.webp +0 -0
  50. package/assets/generated-images/var_1773435042084_wvet78.webp +0 -0
  51. package/assets/generated-images/var_1773435061562_6hf8s6.webp +0 -0
  52. package/assets/generated-images/var_1773435080764_6ocahu.webp +0 -0
  53. package/assets/generated-images/var_1773435101045_1y544z.webp +0 -0
  54. package/assets/generated-images/var_1776858715876_iuu72w.webp +0 -0
@@ -1,7 +1,10 @@
1
1
  <svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="title desc">
2
2
  <title id="title">The Avocado Hub logo</title>
3
- <desc id="desc">Stylized avocado mark — dark green shell, light green flesh, brown pit.</desc>
4
- <path d="M64 8C88 8 112 40 112 72C112 104 88 120 64 120C40 120 16 104 16 72C16 40 40 8 64 8Z" fill="#1F7A3A"/>
5
- <path d="M64 18C82 18 100 44 100 72C100 100 82 110 64 110C46 110 28 100 28 72C28 44 46 18 64 18Z" fill="#7ED957"/>
6
- <circle cx="64" cy="72" r="20" fill="#8B5E3C"/>
3
+ <desc id="desc">Stylized avocado mark — brand green shell, warm cream flesh, muted brown stone.</desc>
4
+ <!-- One green, and it is the brand's. The mark previously used #1F7A3A over
5
+ #7ED957: two greens, neither of them the #0f766e on every button, and the
6
+ lime saturated well past anything else on the page. -->
7
+ <path d="M64 8C88 8 112 40 112 72C112 104 88 120 64 120C40 120 16 104 16 72C16 40 40 8 64 8Z" fill="#0f766e"/>
8
+ <path d="M64 18C82 18 100 44 100 72C100 100 82 110 64 110C46 110 28 100 28 72C28 44 46 18 64 18Z" fill="#e9e4d4"/>
9
+ <circle cx="64" cy="72" r="20" fill="#8a6a4f"/>
7
10
  </svg>
package/dist/index.js CHANGED
@@ -138,11 +138,12 @@ async function bootstrapDemo(cwd, dirName, config) {
138
138
  ` https://docs.avocadostudio.dev/sites`,
139
139
  ``,
140
140
  ...(config.apiKey
141
- ? [` Chat is enabled \u2014 ${config.apiKey.variable} is in .env.local.`]
141
+ ? [` AI editing is on \u2014 ${config.apiKey.variable} is in .env.local.`]
142
142
  : [
143
- ` No API key needed to look around. Add ANTHROPIC_API_KEY,`,
144
- ` OPENAI_API_KEY or GOOGLE_GENAI_API_KEY to .env.local and restart`,
145
- ` when you want to edit by chat.`,
143
+ ` Visual editing works now: click a block, edit its fields, publish.`,
144
+ ` For AI editing \u2014 describing a change and having it planned for you \u2014`,
145
+ ` add ANTHROPIC_API_KEY, OPENAI_API_KEY or GOOGLE_GENAI_API_KEY to`,
146
+ ` .env.local and restart.`,
146
147
  ]),
147
148
  ].join("\n"));
148
149
  /*
package/dist/prompts.js CHANGED
@@ -64,12 +64,30 @@ export async function promptForApiKey() {
64
64
  * variable is chosen from the prefix, so a reader had no way to know whether
65
65
  * their key was one of the right ones.
66
66
  */
67
- p.note("Chat needs a model. Everything else works without one \u2014 the preview,\n" +
68
- "click-to-select, the property panel and publishing.\n\n" +
67
+ /*
68
+ * Name the product's own headline feature as the headline feature.
69
+ *
70
+ * This heading read "Optional \u2014 enable chat now", which is two mistakes in
71
+ * five words. "Chat" names the input box rather than what it does, and
72
+ * "optional" is the first word a newcomer reads about the one capability
73
+ * the whole product exists for \u2014 describing a change in a sentence and
74
+ * having it planned, applied and previewed for you. Skipping has to stay
75
+ * available and free of friction; it does not have to be the frame.
76
+ *
77
+ * So the heading says what this is, the first paragraph says what it does
78
+ * with an example, and *then* it says you can skip \u2014 in that order,
79
+ * because a reader who skips should know what they are skipping.
80
+ */
81
+ p.note("Describe a change and Avocado plans it, applies it and shows you the\n" +
82
+ "result in the live preview \u2014 \"make the hero headline shorter\",\n" +
83
+ "\"add a testimonials section\", \"translate this page to German\".\n" +
84
+ "That is the product, and it needs a model.\n\n" +
85
+ "You can skip and add one later. Visual editing works without a key:\n" +
86
+ "the preview, click-to-select, the property panel and publishing.\n\n" +
69
87
  " ANTHROPIC_API_KEY \u2190 recommended, the best-tested planner\n" +
70
88
  " OPENAI_API_KEY also does image generation\n" +
71
89
  " GOOGLE_GENAI_API_KEY also does image generation\n\n" +
72
- "The right variable is picked from the key itself.", "Optional \u2014 enable chat now");
90
+ "The right variable is picked from the key itself.", "AI editing \u2014 the main event");
73
91
  const key = await p.password({
74
92
  message: "Paste a key, or press Enter to skip",
75
93
  mask: "\u2022",
@@ -79,9 +97,11 @@ export async function promptForApiKey() {
79
97
  return undefined;
80
98
  const value = typeof key === "string" ? key.trim() : "";
81
99
  if (!value) {
82
- p.note("Chat will use the built-in demo planner, which handles simple, literal edits.\n" +
83
- "Everything else works: the preview, click-to-select, the property panel and publishing.\n" +
84
- "You can add a key to .env.local later and restart the dev server.", "No key \u2014 that is fine");
100
+ p.note("Visual editing works in full: the preview, click-to-select, the property\n" +
101
+ "panel and publishing. AI editing falls back to a built-in demo planner,\n" +
102
+ "which handles simple, literal edits and cannot write copy or reason\n" +
103
+ "about a page.\n\n" +
104
+ "Add a key to .env.local and restart the dev server to turn on the real thing.", "No key \u2014 that is fine");
85
105
  return undefined;
86
106
  }
87
107
  const variable = variableForKey(value);