@wix/himalaya-cli 0.1764.0 → 0.1766.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 (325) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/wix-member-login.d.ts +7 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +1 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +6 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +6 -2
  6. package/dist/browser-plane/assets.json +5 -5
  7. package/dist/browser-plane/preview-deferred/{a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed.bin → cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92.bin} +1 -1
  8. package/dist/browser-plane/sw.js +6 -6
  9. package/dist/cli.mjs +114 -44
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/base44-app-context.md +7 -2
  12. package/guides/base44-app-to-himi-app.md +4 -2
  13. package/guides/release-notes.md +22 -0
  14. package/guides/wix-site-to-himi-app.md +2 -1
  15. package/package.json +2 -2
  16. package/templates/beauty-salon/dev/index.ts +5 -5
  17. package/templates/beauty-salon/l10n/ar.json +6 -12
  18. package/templates/beauty-salon/l10n/cs.json +6 -12
  19. package/templates/beauty-salon/l10n/da.json +6 -12
  20. package/templates/beauty-salon/l10n/de.json +6 -12
  21. package/templates/beauty-salon/l10n/el.json +6 -12
  22. package/templates/beauty-salon/l10n/en.json +6 -14
  23. package/templates/beauty-salon/l10n/es.json +6 -12
  24. package/templates/beauty-salon/l10n/fi.json +6 -12
  25. package/templates/beauty-salon/l10n/fr.json +6 -12
  26. package/templates/beauty-salon/l10n/he.json +5 -10
  27. package/templates/beauty-salon/l10n/hu.json +6 -12
  28. package/templates/beauty-salon/l10n/id.json +6 -12
  29. package/templates/beauty-salon/l10n/it.json +6 -12
  30. package/templates/beauty-salon/l10n/ja.json +6 -12
  31. package/templates/beauty-salon/l10n/ko.json +6 -12
  32. package/templates/beauty-salon/l10n/lt.json +6 -12
  33. package/templates/beauty-salon/l10n/nl.json +6 -12
  34. package/templates/beauty-salon/l10n/no.json +6 -12
  35. package/templates/beauty-salon/l10n/pl.json +6 -12
  36. package/templates/beauty-salon/l10n/pt.json +6 -12
  37. package/templates/beauty-salon/l10n/ru.json +6 -12
  38. package/templates/beauty-salon/l10n/sv.json +6 -12
  39. package/templates/beauty-salon/l10n/th.json +6 -12
  40. package/templates/beauty-salon/l10n/tr.json +6 -12
  41. package/templates/beauty-salon/l10n/uk.json +6 -12
  42. package/templates/beauty-salon/l10n/vi.json +6 -12
  43. package/templates/beauty-salon/l10n/zh.json +6 -12
  44. package/templates/branded-lite/dev/index.ts +5 -5
  45. package/templates/branded-lite/l10n/ar.json +6 -12
  46. package/templates/branded-lite/l10n/cs.json +6 -12
  47. package/templates/branded-lite/l10n/da.json +6 -12
  48. package/templates/branded-lite/l10n/de.json +6 -12
  49. package/templates/branded-lite/l10n/el.json +6 -12
  50. package/templates/branded-lite/l10n/en.json +6 -14
  51. package/templates/branded-lite/l10n/es.json +6 -12
  52. package/templates/branded-lite/l10n/fi.json +6 -12
  53. package/templates/branded-lite/l10n/fr.json +6 -12
  54. package/templates/branded-lite/l10n/he.json +5 -10
  55. package/templates/branded-lite/l10n/hu.json +6 -12
  56. package/templates/branded-lite/l10n/id.json +6 -12
  57. package/templates/branded-lite/l10n/it.json +6 -12
  58. package/templates/branded-lite/l10n/ja.json +6 -12
  59. package/templates/branded-lite/l10n/ko.json +6 -12
  60. package/templates/branded-lite/l10n/lt.json +6 -12
  61. package/templates/branded-lite/l10n/nl.json +6 -12
  62. package/templates/branded-lite/l10n/no.json +6 -12
  63. package/templates/branded-lite/l10n/pl.json +6 -12
  64. package/templates/branded-lite/l10n/pt.json +6 -12
  65. package/templates/branded-lite/l10n/ru.json +6 -12
  66. package/templates/branded-lite/l10n/sv.json +6 -12
  67. package/templates/branded-lite/l10n/th.json +6 -12
  68. package/templates/branded-lite/l10n/tr.json +6 -12
  69. package/templates/branded-lite/l10n/uk.json +6 -12
  70. package/templates/branded-lite/l10n/vi.json +6 -12
  71. package/templates/branded-lite/l10n/zh.json +6 -12
  72. package/templates/brandy/README.md +15 -2
  73. package/templates/community-club/dev/index.ts +5 -5
  74. package/templates/community-club/l10n/ar.json +6 -12
  75. package/templates/community-club/l10n/cs.json +6 -12
  76. package/templates/community-club/l10n/da.json +6 -12
  77. package/templates/community-club/l10n/de.json +6 -12
  78. package/templates/community-club/l10n/el.json +6 -12
  79. package/templates/community-club/l10n/en.json +6 -14
  80. package/templates/community-club/l10n/es.json +6 -12
  81. package/templates/community-club/l10n/fi.json +6 -12
  82. package/templates/community-club/l10n/fr.json +6 -12
  83. package/templates/community-club/l10n/he.json +5 -10
  84. package/templates/community-club/l10n/hu.json +6 -12
  85. package/templates/community-club/l10n/id.json +6 -12
  86. package/templates/community-club/l10n/it.json +6 -12
  87. package/templates/community-club/l10n/ja.json +6 -12
  88. package/templates/community-club/l10n/ko.json +6 -12
  89. package/templates/community-club/l10n/lt.json +6 -12
  90. package/templates/community-club/l10n/nl.json +6 -12
  91. package/templates/community-club/l10n/no.json +6 -12
  92. package/templates/community-club/l10n/pl.json +6 -12
  93. package/templates/community-club/l10n/pt.json +6 -12
  94. package/templates/community-club/l10n/ru.json +6 -12
  95. package/templates/community-club/l10n/sv.json +6 -12
  96. package/templates/community-club/l10n/th.json +6 -12
  97. package/templates/community-club/l10n/tr.json +6 -12
  98. package/templates/community-club/l10n/uk.json +6 -12
  99. package/templates/community-club/l10n/vi.json +6 -12
  100. package/templates/community-club/l10n/zh.json +6 -12
  101. package/templates/events-meetups/dev/index.ts +5 -5
  102. package/templates/events-meetups/l10n/ar.json +6 -12
  103. package/templates/events-meetups/l10n/cs.json +6 -12
  104. package/templates/events-meetups/l10n/da.json +6 -12
  105. package/templates/events-meetups/l10n/de.json +6 -12
  106. package/templates/events-meetups/l10n/el.json +6 -12
  107. package/templates/events-meetups/l10n/en.json +6 -14
  108. package/templates/events-meetups/l10n/es.json +6 -12
  109. package/templates/events-meetups/l10n/fi.json +6 -12
  110. package/templates/events-meetups/l10n/fr.json +6 -12
  111. package/templates/events-meetups/l10n/he.json +5 -10
  112. package/templates/events-meetups/l10n/hu.json +6 -12
  113. package/templates/events-meetups/l10n/id.json +6 -12
  114. package/templates/events-meetups/l10n/it.json +6 -12
  115. package/templates/events-meetups/l10n/ja.json +6 -12
  116. package/templates/events-meetups/l10n/ko.json +6 -12
  117. package/templates/events-meetups/l10n/lt.json +6 -12
  118. package/templates/events-meetups/l10n/nl.json +6 -12
  119. package/templates/events-meetups/l10n/no.json +6 -12
  120. package/templates/events-meetups/l10n/pl.json +6 -12
  121. package/templates/events-meetups/l10n/pt.json +6 -12
  122. package/templates/events-meetups/l10n/ru.json +6 -12
  123. package/templates/events-meetups/l10n/sv.json +6 -12
  124. package/templates/events-meetups/l10n/th.json +6 -12
  125. package/templates/events-meetups/l10n/tr.json +6 -12
  126. package/templates/events-meetups/l10n/uk.json +6 -12
  127. package/templates/events-meetups/l10n/vi.json +6 -12
  128. package/templates/events-meetups/l10n/zh.json +6 -12
  129. package/templates/gym-fitness/dev/index.ts +5 -5
  130. package/templates/gym-fitness/l10n/ar.json +6 -12
  131. package/templates/gym-fitness/l10n/cs.json +6 -12
  132. package/templates/gym-fitness/l10n/da.json +6 -12
  133. package/templates/gym-fitness/l10n/de.json +6 -12
  134. package/templates/gym-fitness/l10n/el.json +6 -12
  135. package/templates/gym-fitness/l10n/en.json +6 -14
  136. package/templates/gym-fitness/l10n/es.json +6 -12
  137. package/templates/gym-fitness/l10n/fi.json +6 -12
  138. package/templates/gym-fitness/l10n/fr.json +6 -12
  139. package/templates/gym-fitness/l10n/he.json +5 -10
  140. package/templates/gym-fitness/l10n/hu.json +6 -12
  141. package/templates/gym-fitness/l10n/id.json +6 -12
  142. package/templates/gym-fitness/l10n/it.json +6 -12
  143. package/templates/gym-fitness/l10n/ja.json +6 -12
  144. package/templates/gym-fitness/l10n/ko.json +6 -12
  145. package/templates/gym-fitness/l10n/lt.json +6 -12
  146. package/templates/gym-fitness/l10n/nl.json +6 -12
  147. package/templates/gym-fitness/l10n/no.json +6 -12
  148. package/templates/gym-fitness/l10n/pl.json +6 -12
  149. package/templates/gym-fitness/l10n/pt.json +6 -12
  150. package/templates/gym-fitness/l10n/ru.json +6 -12
  151. package/templates/gym-fitness/l10n/sv.json +6 -12
  152. package/templates/gym-fitness/l10n/th.json +6 -12
  153. package/templates/gym-fitness/l10n/tr.json +6 -12
  154. package/templates/gym-fitness/l10n/uk.json +6 -12
  155. package/templates/gym-fitness/l10n/vi.json +6 -12
  156. package/templates/gym-fitness/l10n/zh.json +6 -12
  157. package/templates/nonprofit-cause/dev/index.ts +5 -5
  158. package/templates/nonprofit-cause/l10n/ar.json +6 -12
  159. package/templates/nonprofit-cause/l10n/cs.json +6 -12
  160. package/templates/nonprofit-cause/l10n/da.json +6 -12
  161. package/templates/nonprofit-cause/l10n/de.json +6 -12
  162. package/templates/nonprofit-cause/l10n/el.json +6 -12
  163. package/templates/nonprofit-cause/l10n/en.json +6 -14
  164. package/templates/nonprofit-cause/l10n/es.json +6 -12
  165. package/templates/nonprofit-cause/l10n/fi.json +6 -12
  166. package/templates/nonprofit-cause/l10n/fr.json +6 -12
  167. package/templates/nonprofit-cause/l10n/he.json +5 -10
  168. package/templates/nonprofit-cause/l10n/hu.json +6 -12
  169. package/templates/nonprofit-cause/l10n/id.json +6 -12
  170. package/templates/nonprofit-cause/l10n/it.json +6 -12
  171. package/templates/nonprofit-cause/l10n/ja.json +6 -12
  172. package/templates/nonprofit-cause/l10n/ko.json +6 -12
  173. package/templates/nonprofit-cause/l10n/lt.json +6 -12
  174. package/templates/nonprofit-cause/l10n/nl.json +6 -12
  175. package/templates/nonprofit-cause/l10n/no.json +6 -12
  176. package/templates/nonprofit-cause/l10n/pl.json +6 -12
  177. package/templates/nonprofit-cause/l10n/pt.json +6 -12
  178. package/templates/nonprofit-cause/l10n/ru.json +6 -12
  179. package/templates/nonprofit-cause/l10n/sv.json +6 -12
  180. package/templates/nonprofit-cause/l10n/th.json +6 -12
  181. package/templates/nonprofit-cause/l10n/tr.json +6 -12
  182. package/templates/nonprofit-cause/l10n/uk.json +6 -12
  183. package/templates/nonprofit-cause/l10n/vi.json +6 -12
  184. package/templates/nonprofit-cause/l10n/zh.json +6 -12
  185. package/templates/personal-fitness-trainer/dev/index.ts +3 -3
  186. package/templates/podcast-creator/dev/index.ts +5 -5
  187. package/templates/podcast-creator/l10n/ar.json +6 -12
  188. package/templates/podcast-creator/l10n/cs.json +6 -12
  189. package/templates/podcast-creator/l10n/da.json +6 -12
  190. package/templates/podcast-creator/l10n/de.json +6 -12
  191. package/templates/podcast-creator/l10n/el.json +6 -12
  192. package/templates/podcast-creator/l10n/en.json +6 -14
  193. package/templates/podcast-creator/l10n/es.json +6 -12
  194. package/templates/podcast-creator/l10n/fi.json +6 -12
  195. package/templates/podcast-creator/l10n/fr.json +6 -12
  196. package/templates/podcast-creator/l10n/he.json +5 -10
  197. package/templates/podcast-creator/l10n/hu.json +6 -12
  198. package/templates/podcast-creator/l10n/id.json +6 -12
  199. package/templates/podcast-creator/l10n/it.json +6 -12
  200. package/templates/podcast-creator/l10n/ja.json +6 -12
  201. package/templates/podcast-creator/l10n/ko.json +6 -12
  202. package/templates/podcast-creator/l10n/lt.json +6 -12
  203. package/templates/podcast-creator/l10n/nl.json +6 -12
  204. package/templates/podcast-creator/l10n/no.json +6 -12
  205. package/templates/podcast-creator/l10n/pl.json +6 -12
  206. package/templates/podcast-creator/l10n/pt.json +6 -12
  207. package/templates/podcast-creator/l10n/ru.json +6 -12
  208. package/templates/podcast-creator/l10n/sv.json +6 -12
  209. package/templates/podcast-creator/l10n/th.json +6 -12
  210. package/templates/podcast-creator/l10n/tr.json +6 -12
  211. package/templates/podcast-creator/l10n/uk.json +6 -12
  212. package/templates/podcast-creator/l10n/vi.json +6 -12
  213. package/templates/podcast-creator/l10n/zh.json +6 -12
  214. package/templates/portfolio-creative/dev/index.ts +5 -5
  215. package/templates/portfolio-creative/l10n/ar.json +6 -12
  216. package/templates/portfolio-creative/l10n/cs.json +6 -12
  217. package/templates/portfolio-creative/l10n/da.json +6 -12
  218. package/templates/portfolio-creative/l10n/de.json +6 -12
  219. package/templates/portfolio-creative/l10n/el.json +6 -12
  220. package/templates/portfolio-creative/l10n/en.json +6 -14
  221. package/templates/portfolio-creative/l10n/es.json +6 -12
  222. package/templates/portfolio-creative/l10n/fi.json +6 -12
  223. package/templates/portfolio-creative/l10n/fr.json +6 -12
  224. package/templates/portfolio-creative/l10n/he.json +5 -10
  225. package/templates/portfolio-creative/l10n/hu.json +6 -12
  226. package/templates/portfolio-creative/l10n/id.json +6 -12
  227. package/templates/portfolio-creative/l10n/it.json +6 -12
  228. package/templates/portfolio-creative/l10n/ja.json +6 -12
  229. package/templates/portfolio-creative/l10n/ko.json +6 -12
  230. package/templates/portfolio-creative/l10n/lt.json +6 -12
  231. package/templates/portfolio-creative/l10n/nl.json +6 -12
  232. package/templates/portfolio-creative/l10n/no.json +6 -12
  233. package/templates/portfolio-creative/l10n/pl.json +6 -12
  234. package/templates/portfolio-creative/l10n/pt.json +6 -12
  235. package/templates/portfolio-creative/l10n/ru.json +6 -12
  236. package/templates/portfolio-creative/l10n/sv.json +6 -12
  237. package/templates/portfolio-creative/l10n/th.json +6 -12
  238. package/templates/portfolio-creative/l10n/tr.json +6 -12
  239. package/templates/portfolio-creative/l10n/uk.json +6 -12
  240. package/templates/portfolio-creative/l10n/vi.json +6 -12
  241. package/templates/portfolio-creative/l10n/zh.json +6 -12
  242. package/templates/restaurant/dev/index.ts +5 -5
  243. package/templates/restaurant/l10n/ar.json +6 -12
  244. package/templates/restaurant/l10n/cs.json +6 -12
  245. package/templates/restaurant/l10n/da.json +6 -12
  246. package/templates/restaurant/l10n/de.json +6 -12
  247. package/templates/restaurant/l10n/el.json +6 -12
  248. package/templates/restaurant/l10n/en.json +6 -14
  249. package/templates/restaurant/l10n/es.json +6 -12
  250. package/templates/restaurant/l10n/fi.json +6 -12
  251. package/templates/restaurant/l10n/fr.json +6 -12
  252. package/templates/restaurant/l10n/he.json +5 -10
  253. package/templates/restaurant/l10n/hu.json +6 -12
  254. package/templates/restaurant/l10n/id.json +6 -12
  255. package/templates/restaurant/l10n/it.json +6 -12
  256. package/templates/restaurant/l10n/ja.json +6 -12
  257. package/templates/restaurant/l10n/ko.json +6 -12
  258. package/templates/restaurant/l10n/lt.json +6 -12
  259. package/templates/restaurant/l10n/nl.json +6 -12
  260. package/templates/restaurant/l10n/no.json +6 -12
  261. package/templates/restaurant/l10n/pl.json +6 -12
  262. package/templates/restaurant/l10n/pt.json +6 -12
  263. package/templates/restaurant/l10n/ru.json +6 -12
  264. package/templates/restaurant/l10n/sv.json +6 -12
  265. package/templates/restaurant/l10n/th.json +6 -12
  266. package/templates/restaurant/l10n/tr.json +6 -12
  267. package/templates/restaurant/l10n/uk.json +6 -12
  268. package/templates/restaurant/l10n/vi.json +6 -12
  269. package/templates/restaurant/l10n/zh.json +6 -12
  270. package/templates/retail-store/dev/index.ts +5 -5
  271. package/templates/retail-store/l10n/ar.json +6 -12
  272. package/templates/retail-store/l10n/cs.json +6 -12
  273. package/templates/retail-store/l10n/da.json +6 -12
  274. package/templates/retail-store/l10n/de.json +6 -12
  275. package/templates/retail-store/l10n/el.json +6 -12
  276. package/templates/retail-store/l10n/en.json +6 -14
  277. package/templates/retail-store/l10n/es.json +6 -12
  278. package/templates/retail-store/l10n/fi.json +6 -12
  279. package/templates/retail-store/l10n/fr.json +6 -12
  280. package/templates/retail-store/l10n/he.json +5 -10
  281. package/templates/retail-store/l10n/hu.json +6 -12
  282. package/templates/retail-store/l10n/id.json +6 -12
  283. package/templates/retail-store/l10n/it.json +6 -12
  284. package/templates/retail-store/l10n/ja.json +6 -12
  285. package/templates/retail-store/l10n/ko.json +6 -12
  286. package/templates/retail-store/l10n/lt.json +6 -12
  287. package/templates/retail-store/l10n/nl.json +6 -12
  288. package/templates/retail-store/l10n/no.json +6 -12
  289. package/templates/retail-store/l10n/pl.json +6 -12
  290. package/templates/retail-store/l10n/pt.json +6 -12
  291. package/templates/retail-store/l10n/ru.json +6 -12
  292. package/templates/retail-store/l10n/sv.json +6 -12
  293. package/templates/retail-store/l10n/th.json +6 -12
  294. package/templates/retail-store/l10n/tr.json +6 -12
  295. package/templates/retail-store/l10n/uk.json +6 -12
  296. package/templates/retail-store/l10n/vi.json +6 -12
  297. package/templates/retail-store/l10n/zh.json +6 -12
  298. package/templates/yoga-studio/dev/index.ts +5 -5
  299. package/templates/yoga-studio/l10n/ar.json +6 -12
  300. package/templates/yoga-studio/l10n/cs.json +6 -12
  301. package/templates/yoga-studio/l10n/da.json +6 -12
  302. package/templates/yoga-studio/l10n/de.json +6 -12
  303. package/templates/yoga-studio/l10n/el.json +6 -12
  304. package/templates/yoga-studio/l10n/en.json +6 -14
  305. package/templates/yoga-studio/l10n/es.json +6 -12
  306. package/templates/yoga-studio/l10n/fi.json +6 -12
  307. package/templates/yoga-studio/l10n/fr.json +6 -12
  308. package/templates/yoga-studio/l10n/he.json +5 -10
  309. package/templates/yoga-studio/l10n/hu.json +6 -12
  310. package/templates/yoga-studio/l10n/id.json +6 -12
  311. package/templates/yoga-studio/l10n/it.json +6 -12
  312. package/templates/yoga-studio/l10n/ja.json +6 -12
  313. package/templates/yoga-studio/l10n/ko.json +6 -12
  314. package/templates/yoga-studio/l10n/lt.json +6 -12
  315. package/templates/yoga-studio/l10n/nl.json +6 -12
  316. package/templates/yoga-studio/l10n/no.json +6 -12
  317. package/templates/yoga-studio/l10n/pl.json +6 -12
  318. package/templates/yoga-studio/l10n/pt.json +6 -12
  319. package/templates/yoga-studio/l10n/ru.json +6 -12
  320. package/templates/yoga-studio/l10n/sv.json +6 -12
  321. package/templates/yoga-studio/l10n/th.json +6 -12
  322. package/templates/yoga-studio/l10n/tr.json +6 -12
  323. package/templates/yoga-studio/l10n/uk.json +6 -12
  324. package/templates/yoga-studio/l10n/vi.json +6 -12
  325. package/templates/yoga-studio/l10n/zh.json +6 -12
package/dist/cli.mjs CHANGED
@@ -41879,6 +41879,7 @@ function shouldRevealError(args) {
41879
41879
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
41880
41880
  var init_validation = __esm({
41881
41881
  "../../core/ts/src/validation.ts"() {
41882
+ "use strict";
41882
41883
  init_define_HHP_CATALOG();
41883
41884
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
41884
41885
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -43154,6 +43155,7 @@ var init_wix_hosts = __esm({
43154
43155
  // ../../core/dev-server/src/wix-member-login.ts
43155
43156
  var wix_member_login_exports = {};
43156
43157
  __export(wix_member_login_exports, {
43158
+ IamCallError: () => IamCallError,
43157
43159
  isAllowedConsumerStreamTarget: () => isAllowedConsumerStreamTarget,
43158
43160
  memberDirectLogin: () => memberDirectLogin,
43159
43161
  memberDirectRegister: () => memberDirectRegister,
@@ -43276,7 +43278,10 @@ async function memberDirectRegister(clientId, redirectUri, email, password, firs
43276
43278
  `Bearer ${visitorToken}`
43277
43279
  );
43278
43280
  const sessionToken = register.json?.sessionToken;
43279
- if (register.status !== 200 || !sessionToken) throw new Error(`IAM register failed (${register.status})`);
43281
+ if (register.status !== 200 || !sessionToken) {
43282
+ const code2 = register.json?.details?.applicationError?.code;
43283
+ throw new IamCallError(`IAM register failed (${register.status})`, register.status, typeof code2 === "string" ? code2 : void 0);
43284
+ }
43280
43285
  const memberToken = await exchangeSessionToken(clientId, redirectUri, visitorToken, sessionToken);
43281
43286
  return { memberToken, visitorToken };
43282
43287
  }
@@ -43326,7 +43331,7 @@ async function readMemberId(memberToken) {
43326
43331
  return null;
43327
43332
  }
43328
43333
  }
43329
- var API;
43334
+ var API, IamCallError;
43330
43335
  var init_wix_member_login = __esm({
43331
43336
  "../../core/dev-server/src/wix-member-login.ts"() {
43332
43337
  init_define_HHP_CATALOG();
@@ -43334,6 +43339,13 @@ var init_wix_member_login = __esm({
43334
43339
  init_wix_hosts();
43335
43340
  init_wix_bridge();
43336
43341
  API = "https://www.wixapis.com";
43342
+ IamCallError = class extends Error {
43343
+ constructor(message5, status2, applicationCode) {
43344
+ super(message5);
43345
+ this.status = status2;
43346
+ this.applicationCode = applicationCode;
43347
+ }
43348
+ };
43337
43349
  }
43338
43350
  });
43339
43351
 
@@ -149556,7 +149568,8 @@ async function handleWebWix(req, res, state) {
149556
149568
  session.account = void 0;
149557
149569
  return reply(200, { ok: true, email: session.email });
149558
149570
  } catch (e2) {
149559
- return reply(200, { ok: false, error: String(e2?.message ?? e2) });
149571
+ const iam = e2 instanceof IamCallError ? { iamStatus: e2.status, ...e2.applicationCode ? { applicationCode: e2.applicationCode } : {} } : {};
149572
+ return reply(200, { ok: false, ...iam, error: String(e2?.message ?? e2) });
149560
149573
  }
149561
149574
  }
149562
149575
  reply(404, { error: "unknown_webwix_route" });
@@ -171439,7 +171452,20 @@ var init_net_guard = __esm({
171439
171452
  function isSafeFreeText(text32) {
171440
171453
  return !FREE_TEXT_UNSAFE.test(text32) && text32.length <= FREE_TEXT_MAX;
171441
171454
  }
171442
- var FREE_TEXT_UNSAFE, FREE_TEXT_MAX;
171455
+ function base44RecordOwnsTenant(record5, origin, appId3) {
171456
+ const tenant = base44TenantOrigin(origin);
171457
+ if (!tenant || !record5 || typeof record5 !== "object") return false;
171458
+ const { id, slug } = record5;
171459
+ const label4 = new URL(tenant).hostname.slice(0, -".base44.app".length);
171460
+ return typeof id === "string" && id === appId3 && typeof slug === "string" && slug.toLowerCase() === label4;
171461
+ }
171462
+ function base44TenantOrigin(value2) {
171463
+ const origin = bakeableHttpsOrigin(value2);
171464
+ if (!origin) return void 0;
171465
+ const u2 = new URL(origin);
171466
+ return u2.port === "" && BASE44_TENANT_HOST.test(u2.hostname) ? origin : void 0;
171467
+ }
171468
+ var FREE_TEXT_UNSAFE, FREE_TEXT_MAX, BASE44_APP_RECORD_URL, BASE44_RECORD_MAX_BYTES, BASE44_TENANT_HOST;
171443
171469
  var init_dist_release_contract = __esm({
171444
171470
  "../../core/serve-control/src/dist-release-contract.ts"() {
171445
171471
  init_define_HHP_CATALOG();
@@ -171449,6 +171475,9 @@ var init_dist_release_contract = __esm({
171449
171475
  init_site_shell();
171450
171476
  FREE_TEXT_UNSAFE = /[\u0000-\u001f\u007f-\u009f\u2028\u2029$`{}<>\\]/;
171451
171477
  FREE_TEXT_MAX = 200;
171478
+ BASE44_APP_RECORD_URL = (appId3) => `https://base44.app/api/apps/public/login-info/by-id/${encodeURIComponent(appId3)}`;
171479
+ BASE44_RECORD_MAX_BYTES = 256e3;
171480
+ BASE44_TENANT_HOST = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.base44\.app$/;
171452
171481
  }
171453
171482
  });
171454
171483
 
@@ -175137,6 +175166,7 @@ var init_write_artifacts = __esm({
175137
175166
  var infer_exports = {};
175138
175167
  __export(infer_exports, {
175139
175168
  base44AppIdFor: () => base44AppIdFor,
175169
+ confirmBase44App: () => confirmBase44App,
175140
175170
  inferSite: () => inferSite,
175141
175171
  largestSize: () => largestSize,
175142
175172
  readManifest: () => readManifest2,
@@ -175238,6 +175268,31 @@ function base44AppIdFor(html, siteUrl) {
175238
175268
  });
175239
175269
  return found.size === 1 ? [...found][0] : void 0;
175240
175270
  }
175271
+ async function confirmBase44App(origin, appId3, deps = {}) {
175272
+ const fetchSite = deps.fetchSite ?? guardedSiteFetch;
175273
+ try {
175274
+ const res = await fetchSite(BASE44_APP_RECORD_URL(appId3), { redirect: "error", signal: AbortSignal.timeout(TIMEOUT_MS), headers: { accept: "application/json" } });
175275
+ if (res.status === 404) {
175276
+ await res.body?.cancel();
175277
+ return "not-owned";
175278
+ }
175279
+ if (!res.ok) {
175280
+ await res.body?.cancel();
175281
+ return "unknown";
175282
+ }
175283
+ const bytes2 = await readCapped(res, BASE44_RECORD_MAX_BYTES);
175284
+ if (!bytes2) return "unknown";
175285
+ let record5;
175286
+ try {
175287
+ record5 = JSON.parse(bytes2.toString("utf8"));
175288
+ } catch {
175289
+ return "unknown";
175290
+ }
175291
+ return base44RecordOwnsTenant(record5, origin, appId3) ? "owned" : "not-owned";
175292
+ } catch {
175293
+ return "unknown";
175294
+ }
175295
+ }
175241
175296
  async function fetchText(url, fetchSite, cap2) {
175242
175297
  const res = await fetchSite(url, { signal: AbortSignal.timeout(TIMEOUT_MS), headers: { accept: "text/html,application/json;q=0.9,*/*;q=0.5" } });
175243
175298
  if (!res.ok) {
@@ -175283,6 +175338,7 @@ var init_infer = __esm({
175283
175338
  init_net_guard();
175284
175339
  init_write_artifacts();
175285
175340
  init_spec();
175341
+ init_dist_release_contract();
175286
175342
  HTML_CAP = 2 * 1024 * 1024;
175287
175343
  MANIFEST_CAP = 256 * 1024;
175288
175344
  TIMEOUT_MS = 15e3;
@@ -250511,52 +250567,52 @@ var init_preview_assets_generated = __esm({
250511
250567
  init_define_HHP_CATALOG();
250512
250568
  init_preview_assets_format();
250513
250569
  PREVIEW_ASSET_MANIFEST = [
250514
- { key: "assets/DashboardHost-BJOsWZ0U.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "689eea1b8e106f562932442c1a93e8b85f2b5ece7b45f1caae6bff0eb2125e70" },
250515
- { key: "assets/DevDrawer-ysVWmWlD.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "1a9c4a3bae5a5133c653690688805b8040347a9dad1702e708faa93be4c714ff" },
250516
- { key: "assets/IdiomCompare-LC0t2Yj4.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "0bd5079d7ecd6ed3af1d09aeff40623783090a08a7a39804e437b08f073dce20" },
250517
- { key: "assets/LightboxViewer-DhvgrjnA.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "b1894d5873cf4ec70d7c03686a1928cb036de78fdb6f4fcb940b8346624ea794" },
250518
- { key: "assets/OfflineReadingBar-9ECQ4s9p.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "0367aeee83bbbb40b2f7f77205a249382a439e4e033d6f2b2bc941784031246b" },
250519
- { key: "assets/PhonePreviewControl-hD6o0YTu.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "b204d2cfb2bfe528c0b2c813dbc1e6705601d342cc7ad822a198855560cfcb77" },
250520
- { key: "assets/SchemeCompare-H7qSKHxt.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "632d25760e28ea66c39ecf002a2435c4b4a0eb0d2fede8823ac420528eb4d0b7" },
250521
- { key: "assets/WixFrogTelemetrySink-BtU5_CuB.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "4155b5d17e767f9ddad8789c162b53492e6a4052e36decd1a4cdae79b5e4f7c1" },
250570
+ { key: "assets/DashboardHost-6lnHOyve.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "68ff555df2dc3c2f48559cc6eee4ae23567b73b44badb1c6c79f3218fe03a74a" },
250571
+ { key: "assets/DevDrawer-DjHfkMkY.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "fc15728035a6770b41dc41aec34a35c09f56df008f5a7df8613e078b523821d9" },
250572
+ { key: "assets/IdiomCompare-4pcPSt4M.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "7ad8d9c10412e494cea85e6e6c7d83fb785b09dd2bdfa16c197596d5ec12ac00" },
250573
+ { key: "assets/LightboxViewer-CmkfM50_.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 17382, sha256: "5c6fc926980514955e18d7b72ed5977834d473cb2fa33469192995202ebffc1a" },
250574
+ { key: "assets/OfflineReadingBar-DHAcphNP.js", contentType: "application/javascript; charset=utf-8", offset: 39084, length: 1646, sha256: "fc06f29ed38209c5b99007e0b76f37cd4c542eeb2fa03b809ddff3e37876ceb7" },
250575
+ { key: "assets/PhonePreviewControl-Dxt42I1s.js", contentType: "application/javascript; charset=utf-8", offset: 40730, length: 37851, sha256: "756ff003f48c7186df51f46334be3a654ceee20d8b5f0407871c85e8143d1ba4" },
250576
+ { key: "assets/SchemeCompare-SItDKyyK.js", contentType: "application/javascript; charset=utf-8", offset: 78581, length: 1858, sha256: "49a56710f17d00b050f5d583c47a3e386be791c3d957e39922b0ea6bf9287b16" },
250577
+ { key: "assets/WixFrogTelemetrySink-Dt-ZS55l.js", contentType: "application/javascript; charset=utf-8", offset: 80439, length: 3515, sha256: "5af3a2a89d148798c862f625b7ffa8702042e7085d43c8afb4fe0f4ad6a07f6a" },
250522
250578
  { key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 83954, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
250523
250579
  { key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 86146, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
250524
- { key: "assets/catalogFontFaces-BcTiucts.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "393df51e727176c5b4ff2dbe1cd13b036d07d1069884f7469d0f413b63373072" },
250580
+ { key: "assets/catalogFontFaces-BE0kdLC4.js", contentType: "application/javascript; charset=utf-8", offset: 112192, length: 1111, sha256: "8f533ffd8ced1d1a9094664c5aa4976c7120016f501bb545f500edda75ec9477" },
250525
250581
  { key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 113303, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
250526
- { key: "assets/files-transfer-C1BhSp9N.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "6e7715c6a35858e56e547bac151007e49b9e8267c841bf17dec7a3040b998ad9" },
250582
+ { key: "assets/files-transfer-Dlcd1iah.js", contentType: "application/javascript; charset=utf-8", offset: 115870, length: 6446, sha256: "b0868bd52f43d85ab5c6d01ca26522bacd9ff31241536dc879d8cbac1d96153a" },
250527
250583
  { key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 122316, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
250528
- { key: "assets/frogApiRules-DZBDB5uq.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "ea834de2598b1409fc79394ee9006b810d9e6d1fe1cd3e8dd49c2026e3cdddd9" },
250584
+ { key: "assets/frogApiRules-CQFbROzu.js", contentType: "application/javascript; charset=utf-8", offset: 123488, length: 2207, sha256: "eff11d3260ac44cb2b4f5e4e39d20b78e0c98da618e544d108f7f4fba7048bfd" },
250529
250585
  { key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 125695, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
250530
250586
  { key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 126762, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
250531
250587
  { key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 133340, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
250532
- { key: "assets/index-3x7aobKd.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1601039, sha256: "ba01484f299cbba32269da6b0bde3449a3e285a04aa00909445ee0fd6c55e071" },
250533
- { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1737083, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
250534
- { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1744834, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
250535
- { key: "assets/pdf-Q7DgSDyV.js", contentType: "application/javascript; charset=utf-8", offset: 1755365, length: 488215, sha256: "a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed" },
250536
- { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2243580, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
250537
- { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2243670, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
250538
- { key: "assets/pdfDocument-D_40KwCd.js", contentType: "application/javascript; charset=utf-8", offset: 3560704, length: 3470, sha256: "b60b1719e2d2b6e840b4c1877c856e652e883188845beea719b1349855d25252" },
250539
- { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3564174, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
250540
- { key: "assets/scrollLinkedRuntime-D4POM6Ya.js", contentType: "application/javascript; charset=utf-8", offset: 3566440, length: 2278, sha256: "b5da9f5eabb52badd8d1463b35ea326451b095c7723b477265ec9ab21fd0d3bd" },
250541
- { key: "assets/webviewBridgeHost-U_lTl8xD.js", contentType: "application/javascript; charset=utf-8", offset: 3568718, length: 9889, sha256: "923075aa38686fc9a72750eb909d2e2dc0cc6bb03ac3aeb330def50f7c319fda" },
250542
- { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3578607, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
250543
- { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3583217, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
250544
- { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4071801, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
250545
- { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4162725, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
250546
- { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4253709, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
250547
- { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4344689, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
250548
- { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4435561, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
250549
- { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4526541, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
250550
- { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4635177, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
250551
- { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4744261, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
250552
- { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4853309, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
250553
- { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4961009, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
250554
- { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5049117, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
250555
- { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5055935, length: 4924, sha256: "1835c73b079de40f086a7e786ad716a00d64b7cabdac6d67e6fc2b3e4d4349d6" },
250556
- { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5060859, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
250557
- { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5072316, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
250558
- { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5073487, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
250559
- { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5097790, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
250588
+ { key: "assets/index-Botp3sHT.js", contentType: "application/javascript; charset=utf-8", offset: 136044, length: 1601284, sha256: "fe905a3112c2e454db7c8a71b058faee1cbd3094dfde5647095bfb2f9e7fa73b" },
250589
+ { key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1737328, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
250590
+ { key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1745079, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
250591
+ { key: "assets/pdf-CRFkfIB7.js", contentType: "application/javascript; charset=utf-8", offset: 1755610, length: 488215, sha256: "cba469735852da3b19235ce6d163f0e0bb4fd2e751c0042493147e4d9c143d92" },
250592
+ { key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2243825, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
250593
+ { key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2243915, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
250594
+ { key: "assets/pdfDocument-sn-I-3Zi.js", contentType: "application/javascript; charset=utf-8", offset: 3560949, length: 3470, sha256: "32bc78db1d7aa9cc57faeaf3a20f21ecf50f7dde241321df941b3124f94f4319" },
250595
+ { key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3564419, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
250596
+ { key: "assets/scrollLinkedRuntime-BRLsWHsQ.js", contentType: "application/javascript; charset=utf-8", offset: 3566685, length: 2278, sha256: "812a87c8d2842ce75fa68af360dae13cf785392049de66d1f86eae66e05fdca8" },
250597
+ { key: "assets/webviewBridgeHost-Yh0dkDD6.js", contentType: "application/javascript; charset=utf-8", offset: 3568963, length: 9889, sha256: "527f2672ed6bc45d6291e0b3acfd0422eb3a573ed7d14ceaa0bd8dea6a908b1b" },
250598
+ { key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3578852, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
250599
+ { key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3583462, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
250600
+ { key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4072046, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
250601
+ { key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4162970, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
250602
+ { key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4253954, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
250603
+ { key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4344934, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
250604
+ { key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4435806, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
250605
+ { key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4526786, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
250606
+ { key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4635422, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
250607
+ { key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4744506, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
250608
+ { key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4853554, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
250609
+ { key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4961254, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
250610
+ { key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5049362, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
250611
+ { key: "index.html", contentType: "text/html; charset=utf-8", offset: 5056180, length: 4924, sha256: "05d65beed22368b5a49e6ec462bbdd1c9a8dd13bb6c1f4d6a368390ca3b66d07" },
250612
+ { key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5061104, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
250613
+ { key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5072561, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
250614
+ { key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5073732, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
250615
+ { key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5098035, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
250560
250616
  ];
250561
250617
  }
250562
250618
  });
@@ -282009,7 +282065,21 @@ async function resolveFromUrl(ctx) {
282009
282065
  const { inferSite: inferSite2 } = await Promise.resolve().then(() => (init_infer(), infer_exports));
282010
282066
  const facts = await inferSite2(origin, { fetchSite: ctx.deps.fromUrl?.fetchSite });
282011
282067
  const { resolveApp: resolveApp2 } = await Promise.resolve().then(() => (init_resolve(), resolve_exports));
282012
- return { app: resolveApp2(origin, spec, facts) };
282068
+ const app2 = resolveApp2(origin, spec, facts);
282069
+ if (app2.base44AppId.value) {
282070
+ const { confirmBase44App: confirmBase44App2 } = await Promise.resolve().then(() => (init_infer(), infer_exports));
282071
+ const verdict = await confirmBase44App2(origin, app2.base44AppId.value, { fetchSite: ctx.deps.fromUrl?.fetchSite });
282072
+ if (verdict === "not-owned") {
282073
+ if (app2.base44AppId.from === "spec") {
282074
+ throw new FromUrlError2("app_spec_invalid", `base44.appId ${app2.base44AppId.value}: Base44's record of that app does not give it ${origin} \u2014 use the id from that app's editor URL, or omit base44.appId`);
282075
+ }
282076
+ app2.notes.push(`Base44's record did not confirm app ${app2.base44AppId.value} for ${origin}, so the app is visitor-only \u2014 set base44.appId in the spec once the app is published on this host`);
282077
+ app2.base44AppId = { value: void 0, from: "default" };
282078
+ } else if (verdict === "unknown") {
282079
+ app2.notes.push(`could not reach Base44 to confirm app ${app2.base44AppId.value} for ${origin}; \`himi dist\` checks it again before building`);
282080
+ }
282081
+ }
282082
+ return { app: app2 };
282013
282083
  } catch (e2) {
282014
282084
  return refuse10(e2);
282015
282085
  }
Binary file
@@ -207,8 +207,13 @@ names the user. The Base44 CLI keeps its own session in `~/.base44/auth/auth.jso
207
207
  own, and reads the Base44 CLI's only on `--from-base44-cli`.
208
208
 
209
209
  **Published apps.** An app published on `<tenant>.base44.app` is served by Base44's platform shell.
210
- Its HTML carries the app's identity: `og:site_name`, description, favicon, `theme-color`, and the
211
- app id on the Base44 badge tag (`<script data-app-id="<id>" …>`). The app's own page code loads at
210
+ Its HTML carries the app's identity: `og:site_name`, description, favicon and `theme-color`. Older
211
+ pages also named the app id on a Base44 badge tag (`<script data-app-id="<id>" …>`); current ones do
212
+ not, and the id that does appear (in asset URLs, in the bundle) is the app author's to write. Which
213
+ app owns a tenant is Base44's own answer: its public app record,
214
+ `https://base44.app/api/apps/public/login-info/by-id/<id>`, gives the app's `slug`, the tenant's host
215
+ label. `himi dist` (before it trusts the site with a member's session) and `himi init --from-url`
216
+ (before it writes a binding) both check that record. The app's own page code loads at
212
217
  run time, so the visitor pass usually finds **no routes** there and says so in `gaps[]`. The owner
213
218
  pass reads them from the source router instead. A self-hosted build of an ejected app is a plain
214
219
  Vite bundle: the app id is baked in (`VITE_BASE44_APP_ID`) and the router's `path` strings survive
@@ -32,8 +32,10 @@ himi dist --app <slug> --shell brandy --platform android # and --platform ios
32
32
  (manifest `short_name`/`name`, `apple-mobile-web-app-title`, `og:site_name`, `<title>`, the host),
33
33
  the description, the icon (the manifest's largest raster icon, normalized to the 1024 opaque PNG the
34
34
  stores require), the brand colour (the theme colour — unless it is black, white or grey, which is a
35
- generator default), and the **Base44 app id**, taken from the page's own asset URLs only when it
36
- matches the host's suffix. With the app id the shell signs members in natively and carries the
35
+ generator default), and the **Base44 app id**: a candidate from the page's own asset URLs, written
36
+ only once Base44's own app record (`base44.app/api/apps/public/login-info/by-id/<id>`) gives that app
37
+ this host — the same check `himi dist` makes before it trusts the site with a member's session. An id
38
+ the record does not confirm is dropped (visitor-only, with a note); one you name in the spec is refused. With the app id the shell signs members in natively and carries the
37
39
  session into the pages — Google sign-in inside a WebView is blocked by Google, so without it a
38
40
  login-gated app cannot be signed in to.
39
41
 
@@ -14,6 +14,28 @@ areas, always in the same order, so you can skim for the one you care about.
14
14
 
15
15
  ---
16
16
 
17
+ ## 2026-11-18
18
+
19
+ ### Getting started & the CLI
20
+
21
+ - **Turn a live website into an app with one command.** `himi init --from-url <https://site>` scaffolds
22
+ the brandy site shell and fills it from the site's own web manifest and `<head>`. It takes the name,
23
+ description and icon, normalizing the icon to the 1024 store PNG. It takes the brand colour from the
24
+ theme colour, unless that is black, white or grey. On a Base44 site it also takes the app id, once
25
+ Base44's own app record confirms it, so members sign in natively. A spec file overrides any value,
26
+ and only `url` is required: `himi init --spec app.json`. It accepts `name`, `description`, `icon`,
27
+ `colors`, `splash`, `base44`, `pages` and the support, privacy and terms links. The JSON output's
28
+ `fromUrl` block says where each value came from and gives the push and dist commands to run next.
29
+ A refusal carries a typed `code` and writes nothing. (#6128)
30
+
31
+ ### Shipping binaries
32
+
33
+ - **`himi dist` builds Base44 site-shell apps with native sign-in again.** Published Base44 pages no
34
+ longer carry the `data-app-id` badge attribute `himi dist` used to prove a site belongs to the bound app, so every
35
+ Base44-bound build was refused with `release_base44_site_unverified`. The check now asks Base44's own
36
+ app record, which must give the bound app this `<slug>.base44.app` host. `himi init --from-url`
37
+ confirms the app id the same way before writing it. (#6136)
38
+
17
39
  ## 2026-11-15
18
40
 
19
41
  ### Logic, data & SDKs
@@ -8,7 +8,8 @@ IA and UX rewritten for a phone. Not a WebView. Not a shrunk desktop. Not
8
8
 
9
9
  > **Not this page: "my website, as an app, today."** That is the *site shell*
10
10
  > (`himi dist --shell brandy`) — the customer's live site in native-framed WebView tabs (a Wix or Base44 site, or any other
11
- > https site with `site.kind: "web"`; see `himi docs wix-business-context`). It is a separate, day-0 path that
11
+ > https site with `site.kind: "web"`; see `himi docs wix-business-context`). Start it with
12
+ > `himi init --from-url <site>` (`himi docs base44-app-to-himi-app`, "Wrap"). It is a separate, day-0 path that
12
13
  > graduates to this page's native app one tab at a time; it never replaces it. Everything
13
14
  > below is the native app.
14
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1764.0",
3
+ "version": "0.1766.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "59a2973076804455f6fef8aa666aee5c011a83ec15d26fe0364f06cc"
85
+ "falconPackageHash": "e73b653a66e4b53e730c953bbfc37f1dfc0bb265bab6331d8b3db607"
86
86
  }
@@ -2834,7 +2834,7 @@ const SCREENS = runtimeSetting({
2834
2834
  "package": "himalaya",
2835
2835
  "type": "Button",
2836
2836
  "props": {
2837
- "title": "SIGN IN",
2837
+ "title": "Sign in",
2838
2838
  "style": "primary",
2839
2839
  "fullWidth": true,
2840
2840
  "action": {
@@ -2856,7 +2856,7 @@ const SCREENS = runtimeSetting({
2856
2856
  "package": "himalaya",
2857
2857
  "type": "Button",
2858
2858
  "props": {
2859
- "title": "CREATE ACCOUNT",
2859
+ "title": "Create account",
2860
2860
  "style": "secondary",
2861
2861
  "fullWidth": true,
2862
2862
  "action": {
@@ -6259,7 +6259,7 @@ const SCREENS = runtimeSetting({
6259
6259
  "package": "himalaya",
6260
6260
  "type": "Button",
6261
6261
  "props": {
6262
- "title": "SIGN IN",
6262
+ "title": "Sign in",
6263
6263
  "style": "primary",
6264
6264
  "fullWidth": true,
6265
6265
  "disabledPath": "$service:himiStoreAccount.authBusy",
@@ -6278,7 +6278,7 @@ const SCREENS = runtimeSetting({
6278
6278
  "package": "himalaya",
6279
6279
  "type": "Button",
6280
6280
  "props": {
6281
- "title": "CREATE ACCOUNT",
6281
+ "title": "Create account",
6282
6282
  "style": "primary",
6283
6283
  "fullWidth": true,
6284
6284
  "disabledPath": "$service:himiStoreAccount.authBusy",
@@ -6316,7 +6316,7 @@ const SCREENS = runtimeSetting({
6316
6316
  "package": "himalaya",
6317
6317
  "type": "Button",
6318
6318
  "props": {
6319
- "title": "CREATE ACCOUNT",
6319
+ "title": "Create account",
6320
6320
  "style": "secondary",
6321
6321
  "fullWidth": true,
6322
6322
  "disabledPath": "$service:himiStoreAccount.authBusy",
@@ -152,12 +152,6 @@
152
152
  "translation": "شقة، جناح، إلخ.",
153
153
  "origin": "machine"
154
154
  },
155
- "h_174f9cc09136": {
156
- "key": "account.signInButton",
157
- "source": "SIGN IN",
158
- "translation": "تسجيل الدخول",
159
- "origin": "machine"
160
- },
161
155
  "h_1753c2061c67": {
162
156
  "key": "account.deleteAccountCta",
163
157
  "source": "Delete account",
@@ -608,12 +602,6 @@
608
602
  "translation": "سجّل الدخول للانضمام",
609
603
  "origin": "machine"
610
604
  },
611
- "h_6cb8411971b9": {
612
- "key": "account.createAccountButton",
613
- "source": "CREATE ACCOUNT",
614
- "translation": "إنشاء حساب",
615
- "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
616
- },
617
605
  "h_6ccb60071be8": {
618
606
  "key": "shop.categoriesLabel",
619
607
  "source": "Categories",
@@ -992,6 +980,12 @@
992
980
  "translation": "هل تريد إلغاء حظر هذا العضو؟ قد يتمكن من التفاعل مع ملفك الشخصي مجددًا.",
993
981
  "origin": "machine"
994
982
  },
983
+ "h_aaf374479756": {
984
+ "key": "account.createAccountButton",
985
+ "source": "Create account",
986
+ "translation": "إنشاء حساب",
987
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
988
+ },
995
989
  "h_ab301b04c7fa": {
996
990
  "key": "addresses.emptyTitle",
997
991
  "source": "No saved addresses yet",
@@ -152,12 +152,6 @@
152
152
  "translation": "Byt, apartmán atd.",
153
153
  "origin": "machine"
154
154
  },
155
- "h_174f9cc09136": {
156
- "key": "account.signInButton",
157
- "source": "SIGN IN",
158
- "translation": "PŘIHLÁSIT SE",
159
- "origin": "machine"
160
- },
161
155
  "h_1753c2061c67": {
162
156
  "key": "account.deleteAccountCta",
163
157
  "source": "Delete account",
@@ -608,12 +602,6 @@
608
602
  "translation": "Pro připojení se přihlaste",
609
603
  "origin": "machine"
610
604
  },
611
- "h_6cb8411971b9": {
612
- "key": "account.createAccountButton",
613
- "source": "CREATE ACCOUNT",
614
- "translation": "Vytvořit účet",
615
- "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
616
- },
617
605
  "h_6ccb60071be8": {
618
606
  "key": "shop.categoriesLabel",
619
607
  "source": "Categories",
@@ -992,6 +980,12 @@
992
980
  "translation": "Odblokovat tohoto člena? Může s vaším profilem opět komunikovat.",
993
981
  "origin": "machine"
994
982
  },
983
+ "h_aaf374479756": {
984
+ "key": "account.createAccountButton",
985
+ "source": "Create account",
986
+ "translation": "Vytvořit účet",
987
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
988
+ },
995
989
  "h_ab301b04c7fa": {
996
990
  "key": "addresses.emptyTitle",
997
991
  "source": "No saved addresses yet",
@@ -152,12 +152,6 @@
152
152
  "translation": "Lejlighed, suite osv.",
153
153
  "origin": "machine"
154
154
  },
155
- "h_174f9cc09136": {
156
- "key": "account.signInButton",
157
- "source": "SIGN IN",
158
- "translation": "LOG IND",
159
- "origin": "machine"
160
- },
161
155
  "h_1753c2061c67": {
162
156
  "key": "account.deleteAccountCta",
163
157
  "source": "Delete account",
@@ -608,12 +602,6 @@
608
602
  "translation": "Log ind for at deltage",
609
603
  "origin": "machine"
610
604
  },
611
- "h_6cb8411971b9": {
612
- "key": "account.createAccountButton",
613
- "source": "CREATE ACCOUNT",
614
- "translation": "Opret konto",
615
- "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
616
- },
617
605
  "h_6ccb60071be8": {
618
606
  "key": "shop.categoriesLabel",
619
607
  "source": "Categories",
@@ -992,6 +980,12 @@
992
980
  "translation": "Vil du fjerne blokeringen af dette medlem? Vedkommende kan muligvis interagere med din profil igen.",
993
981
  "origin": "machine"
994
982
  },
983
+ "h_aaf374479756": {
984
+ "key": "account.createAccountButton",
985
+ "source": "Create account",
986
+ "translation": "Opret konto",
987
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
988
+ },
995
989
  "h_ab301b04c7fa": {
996
990
  "key": "addresses.emptyTitle",
997
991
  "source": "No saved addresses yet",
@@ -152,12 +152,6 @@
152
152
  "translation": "Wohnung, Etage usw.",
153
153
  "origin": "machine"
154
154
  },
155
- "h_174f9cc09136": {
156
- "key": "account.signInButton",
157
- "source": "SIGN IN",
158
- "translation": "ANMELDEN",
159
- "origin": "machine"
160
- },
161
155
  "h_1753c2061c67": {
162
156
  "key": "account.deleteAccountCta",
163
157
  "source": "Delete account",
@@ -608,12 +602,6 @@
608
602
  "translation": "Zum Beitreten anmelden",
609
603
  "origin": "machine"
610
604
  },
611
- "h_6cb8411971b9": {
612
- "key": "account.createAccountButton",
613
- "source": "CREATE ACCOUNT",
614
- "translation": "Konto erstellen",
615
- "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
616
- },
617
605
  "h_6ccb60071be8": {
618
606
  "key": "shop.categoriesLabel",
619
607
  "source": "Categories",
@@ -992,6 +980,12 @@
992
980
  "translation": "Dieses Mitglied entsperren? Es kann dann möglicherweise wieder mit deinem Profil interagieren.",
993
981
  "origin": "machine"
994
982
  },
983
+ "h_aaf374479756": {
984
+ "key": "account.createAccountButton",
985
+ "source": "Create account",
986
+ "translation": "Konto erstellen",
987
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
988
+ },
995
989
  "h_ab301b04c7fa": {
996
990
  "key": "addresses.emptyTitle",
997
991
  "source": "No saved addresses yet",
@@ -152,12 +152,6 @@
152
152
  "translation": "Διαμέρισμα, όροφος κ.λπ.",
153
153
  "origin": "machine"
154
154
  },
155
- "h_174f9cc09136": {
156
- "key": "account.signInButton",
157
- "source": "SIGN IN",
158
- "translation": "ΣΥΝΔΕΣΗ",
159
- "origin": "machine"
160
- },
161
155
  "h_1753c2061c67": {
162
156
  "key": "account.deleteAccountCta",
163
157
  "source": "Delete account",
@@ -608,12 +602,6 @@
608
602
  "translation": "Συνδεθείτε για να συμμετάσχετε",
609
603
  "origin": "machine"
610
604
  },
611
- "h_6cb8411971b9": {
612
- "key": "account.createAccountButton",
613
- "source": "CREATE ACCOUNT",
614
- "translation": "Δημ. λογαριασμού",
615
- "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
616
- },
617
605
  "h_6ccb60071be8": {
618
606
  "key": "shop.categoriesLabel",
619
607
  "source": "Categories",
@@ -992,6 +980,12 @@
992
980
  "translation": "Κατάργηση αποκλεισμού αυτού του μέλους; Μπορεί να αλληλεπιδρά ξανά με το προφίλ σας.",
993
981
  "origin": "machine"
994
982
  },
983
+ "h_aaf374479756": {
984
+ "key": "account.createAccountButton",
985
+ "source": "Create account",
986
+ "translation": "Δημ. λογαριασμού",
987
+ "origin": "one-app:wix-one-app-merchant-settings__merchantSettingsStrings__messages_en.json:createProviderAccountScreen.screenTitle"
988
+ },
995
989
  "h_ab301b04c7fa": {
996
990
  "key": "addresses.emptyTitle",
997
991
  "source": "No saved addresses yet",