@wix/himalaya-cli 0.1769.0 → 0.1771.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 (329) hide show
  1. package/dist/cli.mjs +285 -51
  2. package/package.json +2 -2
  3. package/templates/beauty-salon/dev/index.ts +138 -0
  4. package/templates/beauty-salon/l10n/ar.json +18 -0
  5. package/templates/beauty-salon/l10n/cs.json +18 -0
  6. package/templates/beauty-salon/l10n/da.json +18 -0
  7. package/templates/beauty-salon/l10n/de.json +18 -0
  8. package/templates/beauty-salon/l10n/el.json +18 -0
  9. package/templates/beauty-salon/l10n/en.json +21 -0
  10. package/templates/beauty-salon/l10n/es.json +18 -0
  11. package/templates/beauty-salon/l10n/fi.json +18 -0
  12. package/templates/beauty-salon/l10n/fr.json +18 -0
  13. package/templates/beauty-salon/l10n/he.json +15 -0
  14. package/templates/beauty-salon/l10n/hu.json +18 -0
  15. package/templates/beauty-salon/l10n/id.json +18 -0
  16. package/templates/beauty-salon/l10n/it.json +18 -0
  17. package/templates/beauty-salon/l10n/ja.json +18 -0
  18. package/templates/beauty-salon/l10n/ko.json +18 -0
  19. package/templates/beauty-salon/l10n/lt.json +18 -0
  20. package/templates/beauty-salon/l10n/nl.json +18 -0
  21. package/templates/beauty-salon/l10n/no.json +18 -0
  22. package/templates/beauty-salon/l10n/pl.json +18 -0
  23. package/templates/beauty-salon/l10n/pt.json +18 -0
  24. package/templates/beauty-salon/l10n/ru.json +18 -0
  25. package/templates/beauty-salon/l10n/sv.json +18 -0
  26. package/templates/beauty-salon/l10n/th.json +18 -0
  27. package/templates/beauty-salon/l10n/tr.json +18 -0
  28. package/templates/beauty-salon/l10n/uk.json +18 -0
  29. package/templates/beauty-salon/l10n/vi.json +18 -0
  30. package/templates/beauty-salon/l10n/zh.json +18 -0
  31. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +110 -3
  32. package/templates/branded-lite/dev/index.ts +138 -0
  33. package/templates/branded-lite/l10n/ar.json +18 -0
  34. package/templates/branded-lite/l10n/cs.json +18 -0
  35. package/templates/branded-lite/l10n/da.json +18 -0
  36. package/templates/branded-lite/l10n/de.json +18 -0
  37. package/templates/branded-lite/l10n/el.json +18 -0
  38. package/templates/branded-lite/l10n/en.json +21 -0
  39. package/templates/branded-lite/l10n/es.json +18 -0
  40. package/templates/branded-lite/l10n/fi.json +18 -0
  41. package/templates/branded-lite/l10n/fr.json +18 -0
  42. package/templates/branded-lite/l10n/he.json +15 -0
  43. package/templates/branded-lite/l10n/hu.json +18 -0
  44. package/templates/branded-lite/l10n/id.json +18 -0
  45. package/templates/branded-lite/l10n/it.json +18 -0
  46. package/templates/branded-lite/l10n/ja.json +18 -0
  47. package/templates/branded-lite/l10n/ko.json +18 -0
  48. package/templates/branded-lite/l10n/lt.json +18 -0
  49. package/templates/branded-lite/l10n/nl.json +18 -0
  50. package/templates/branded-lite/l10n/no.json +18 -0
  51. package/templates/branded-lite/l10n/pl.json +18 -0
  52. package/templates/branded-lite/l10n/pt.json +18 -0
  53. package/templates/branded-lite/l10n/ru.json +18 -0
  54. package/templates/branded-lite/l10n/sv.json +18 -0
  55. package/templates/branded-lite/l10n/th.json +18 -0
  56. package/templates/branded-lite/l10n/tr.json +18 -0
  57. package/templates/branded-lite/l10n/uk.json +18 -0
  58. package/templates/branded-lite/l10n/vi.json +18 -0
  59. package/templates/branded-lite/l10n/zh.json +18 -0
  60. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +110 -3
  61. package/templates/brandy/tier5-src/himi-store-account/index.ts +110 -3
  62. package/templates/community-club/dev/index.ts +138 -0
  63. package/templates/community-club/l10n/ar.json +18 -0
  64. package/templates/community-club/l10n/cs.json +18 -0
  65. package/templates/community-club/l10n/da.json +18 -0
  66. package/templates/community-club/l10n/de.json +18 -0
  67. package/templates/community-club/l10n/el.json +18 -0
  68. package/templates/community-club/l10n/en.json +21 -0
  69. package/templates/community-club/l10n/es.json +18 -0
  70. package/templates/community-club/l10n/fi.json +18 -0
  71. package/templates/community-club/l10n/fr.json +18 -0
  72. package/templates/community-club/l10n/he.json +15 -0
  73. package/templates/community-club/l10n/hu.json +18 -0
  74. package/templates/community-club/l10n/id.json +18 -0
  75. package/templates/community-club/l10n/it.json +18 -0
  76. package/templates/community-club/l10n/ja.json +18 -0
  77. package/templates/community-club/l10n/ko.json +18 -0
  78. package/templates/community-club/l10n/lt.json +18 -0
  79. package/templates/community-club/l10n/nl.json +18 -0
  80. package/templates/community-club/l10n/no.json +18 -0
  81. package/templates/community-club/l10n/pl.json +18 -0
  82. package/templates/community-club/l10n/pt.json +18 -0
  83. package/templates/community-club/l10n/ru.json +18 -0
  84. package/templates/community-club/l10n/sv.json +18 -0
  85. package/templates/community-club/l10n/th.json +18 -0
  86. package/templates/community-club/l10n/tr.json +18 -0
  87. package/templates/community-club/l10n/uk.json +18 -0
  88. package/templates/community-club/l10n/vi.json +18 -0
  89. package/templates/community-club/l10n/zh.json +18 -0
  90. package/templates/community-club/tier5-src/himi-store-account/index.ts +110 -3
  91. package/templates/conference/tier5-src/himi-store-account/index.ts +110 -3
  92. package/templates/events-meetups/dev/index.ts +138 -0
  93. package/templates/events-meetups/l10n/ar.json +18 -0
  94. package/templates/events-meetups/l10n/cs.json +18 -0
  95. package/templates/events-meetups/l10n/da.json +18 -0
  96. package/templates/events-meetups/l10n/de.json +18 -0
  97. package/templates/events-meetups/l10n/el.json +18 -0
  98. package/templates/events-meetups/l10n/en.json +21 -0
  99. package/templates/events-meetups/l10n/es.json +18 -0
  100. package/templates/events-meetups/l10n/fi.json +18 -0
  101. package/templates/events-meetups/l10n/fr.json +18 -0
  102. package/templates/events-meetups/l10n/he.json +15 -0
  103. package/templates/events-meetups/l10n/hu.json +18 -0
  104. package/templates/events-meetups/l10n/id.json +18 -0
  105. package/templates/events-meetups/l10n/it.json +18 -0
  106. package/templates/events-meetups/l10n/ja.json +18 -0
  107. package/templates/events-meetups/l10n/ko.json +18 -0
  108. package/templates/events-meetups/l10n/lt.json +18 -0
  109. package/templates/events-meetups/l10n/nl.json +18 -0
  110. package/templates/events-meetups/l10n/no.json +18 -0
  111. package/templates/events-meetups/l10n/pl.json +18 -0
  112. package/templates/events-meetups/l10n/pt.json +18 -0
  113. package/templates/events-meetups/l10n/ru.json +18 -0
  114. package/templates/events-meetups/l10n/sv.json +18 -0
  115. package/templates/events-meetups/l10n/th.json +18 -0
  116. package/templates/events-meetups/l10n/tr.json +18 -0
  117. package/templates/events-meetups/l10n/uk.json +18 -0
  118. package/templates/events-meetups/l10n/vi.json +18 -0
  119. package/templates/events-meetups/l10n/zh.json +18 -0
  120. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +110 -3
  121. package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +110 -3
  122. package/templates/gym-fitness/dev/index.ts +138 -0
  123. package/templates/gym-fitness/l10n/ar.json +18 -0
  124. package/templates/gym-fitness/l10n/cs.json +18 -0
  125. package/templates/gym-fitness/l10n/da.json +18 -0
  126. package/templates/gym-fitness/l10n/de.json +18 -0
  127. package/templates/gym-fitness/l10n/el.json +18 -0
  128. package/templates/gym-fitness/l10n/en.json +21 -0
  129. package/templates/gym-fitness/l10n/es.json +18 -0
  130. package/templates/gym-fitness/l10n/fi.json +18 -0
  131. package/templates/gym-fitness/l10n/fr.json +18 -0
  132. package/templates/gym-fitness/l10n/he.json +15 -0
  133. package/templates/gym-fitness/l10n/hu.json +18 -0
  134. package/templates/gym-fitness/l10n/id.json +18 -0
  135. package/templates/gym-fitness/l10n/it.json +18 -0
  136. package/templates/gym-fitness/l10n/ja.json +18 -0
  137. package/templates/gym-fitness/l10n/ko.json +18 -0
  138. package/templates/gym-fitness/l10n/lt.json +18 -0
  139. package/templates/gym-fitness/l10n/nl.json +18 -0
  140. package/templates/gym-fitness/l10n/no.json +18 -0
  141. package/templates/gym-fitness/l10n/pl.json +18 -0
  142. package/templates/gym-fitness/l10n/pt.json +18 -0
  143. package/templates/gym-fitness/l10n/ru.json +18 -0
  144. package/templates/gym-fitness/l10n/sv.json +18 -0
  145. package/templates/gym-fitness/l10n/th.json +18 -0
  146. package/templates/gym-fitness/l10n/tr.json +18 -0
  147. package/templates/gym-fitness/l10n/uk.json +18 -0
  148. package/templates/gym-fitness/l10n/vi.json +18 -0
  149. package/templates/gym-fitness/l10n/zh.json +18 -0
  150. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +110 -3
  151. package/templates/medical-services/tier5-src/himi-store-account/index.ts +110 -3
  152. package/templates/nonprofit-cause/dev/index.ts +138 -0
  153. package/templates/nonprofit-cause/l10n/ar.json +18 -0
  154. package/templates/nonprofit-cause/l10n/cs.json +18 -0
  155. package/templates/nonprofit-cause/l10n/da.json +18 -0
  156. package/templates/nonprofit-cause/l10n/de.json +18 -0
  157. package/templates/nonprofit-cause/l10n/el.json +18 -0
  158. package/templates/nonprofit-cause/l10n/en.json +21 -0
  159. package/templates/nonprofit-cause/l10n/es.json +18 -0
  160. package/templates/nonprofit-cause/l10n/fi.json +18 -0
  161. package/templates/nonprofit-cause/l10n/fr.json +18 -0
  162. package/templates/nonprofit-cause/l10n/he.json +15 -0
  163. package/templates/nonprofit-cause/l10n/hu.json +18 -0
  164. package/templates/nonprofit-cause/l10n/id.json +18 -0
  165. package/templates/nonprofit-cause/l10n/it.json +18 -0
  166. package/templates/nonprofit-cause/l10n/ja.json +18 -0
  167. package/templates/nonprofit-cause/l10n/ko.json +18 -0
  168. package/templates/nonprofit-cause/l10n/lt.json +18 -0
  169. package/templates/nonprofit-cause/l10n/nl.json +18 -0
  170. package/templates/nonprofit-cause/l10n/no.json +18 -0
  171. package/templates/nonprofit-cause/l10n/pl.json +18 -0
  172. package/templates/nonprofit-cause/l10n/pt.json +18 -0
  173. package/templates/nonprofit-cause/l10n/ru.json +18 -0
  174. package/templates/nonprofit-cause/l10n/sv.json +18 -0
  175. package/templates/nonprofit-cause/l10n/th.json +18 -0
  176. package/templates/nonprofit-cause/l10n/tr.json +18 -0
  177. package/templates/nonprofit-cause/l10n/uk.json +18 -0
  178. package/templates/nonprofit-cause/l10n/vi.json +18 -0
  179. package/templates/nonprofit-cause/l10n/zh.json +18 -0
  180. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +110 -3
  181. package/templates/personal-fitness-trainer/dev/index.ts +138 -0
  182. package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +110 -3
  183. package/templates/podcast-creator/dev/index.ts +138 -0
  184. package/templates/podcast-creator/l10n/ar.json +18 -0
  185. package/templates/podcast-creator/l10n/cs.json +18 -0
  186. package/templates/podcast-creator/l10n/da.json +18 -0
  187. package/templates/podcast-creator/l10n/de.json +18 -0
  188. package/templates/podcast-creator/l10n/el.json +18 -0
  189. package/templates/podcast-creator/l10n/en.json +21 -0
  190. package/templates/podcast-creator/l10n/es.json +18 -0
  191. package/templates/podcast-creator/l10n/fi.json +18 -0
  192. package/templates/podcast-creator/l10n/fr.json +18 -0
  193. package/templates/podcast-creator/l10n/he.json +15 -0
  194. package/templates/podcast-creator/l10n/hu.json +18 -0
  195. package/templates/podcast-creator/l10n/id.json +18 -0
  196. package/templates/podcast-creator/l10n/it.json +18 -0
  197. package/templates/podcast-creator/l10n/ja.json +18 -0
  198. package/templates/podcast-creator/l10n/ko.json +18 -0
  199. package/templates/podcast-creator/l10n/lt.json +18 -0
  200. package/templates/podcast-creator/l10n/nl.json +18 -0
  201. package/templates/podcast-creator/l10n/no.json +18 -0
  202. package/templates/podcast-creator/l10n/pl.json +18 -0
  203. package/templates/podcast-creator/l10n/pt.json +18 -0
  204. package/templates/podcast-creator/l10n/ru.json +18 -0
  205. package/templates/podcast-creator/l10n/sv.json +18 -0
  206. package/templates/podcast-creator/l10n/th.json +18 -0
  207. package/templates/podcast-creator/l10n/tr.json +18 -0
  208. package/templates/podcast-creator/l10n/uk.json +18 -0
  209. package/templates/podcast-creator/l10n/vi.json +18 -0
  210. package/templates/podcast-creator/l10n/zh.json +18 -0
  211. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +110 -3
  212. package/templates/portfolio-creative/dev/index.ts +138 -0
  213. package/templates/portfolio-creative/l10n/ar.json +18 -0
  214. package/templates/portfolio-creative/l10n/cs.json +18 -0
  215. package/templates/portfolio-creative/l10n/da.json +18 -0
  216. package/templates/portfolio-creative/l10n/de.json +18 -0
  217. package/templates/portfolio-creative/l10n/el.json +18 -0
  218. package/templates/portfolio-creative/l10n/en.json +21 -0
  219. package/templates/portfolio-creative/l10n/es.json +18 -0
  220. package/templates/portfolio-creative/l10n/fi.json +18 -0
  221. package/templates/portfolio-creative/l10n/fr.json +18 -0
  222. package/templates/portfolio-creative/l10n/he.json +15 -0
  223. package/templates/portfolio-creative/l10n/hu.json +18 -0
  224. package/templates/portfolio-creative/l10n/id.json +18 -0
  225. package/templates/portfolio-creative/l10n/it.json +18 -0
  226. package/templates/portfolio-creative/l10n/ja.json +18 -0
  227. package/templates/portfolio-creative/l10n/ko.json +18 -0
  228. package/templates/portfolio-creative/l10n/lt.json +18 -0
  229. package/templates/portfolio-creative/l10n/nl.json +18 -0
  230. package/templates/portfolio-creative/l10n/no.json +18 -0
  231. package/templates/portfolio-creative/l10n/pl.json +18 -0
  232. package/templates/portfolio-creative/l10n/pt.json +18 -0
  233. package/templates/portfolio-creative/l10n/ru.json +18 -0
  234. package/templates/portfolio-creative/l10n/sv.json +18 -0
  235. package/templates/portfolio-creative/l10n/th.json +18 -0
  236. package/templates/portfolio-creative/l10n/tr.json +18 -0
  237. package/templates/portfolio-creative/l10n/uk.json +18 -0
  238. package/templates/portfolio-creative/l10n/vi.json +18 -0
  239. package/templates/portfolio-creative/l10n/zh.json +18 -0
  240. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +110 -3
  241. package/templates/restaurant/dev/index.ts +138 -0
  242. package/templates/restaurant/l10n/ar.json +18 -0
  243. package/templates/restaurant/l10n/cs.json +18 -0
  244. package/templates/restaurant/l10n/da.json +18 -0
  245. package/templates/restaurant/l10n/de.json +18 -0
  246. package/templates/restaurant/l10n/el.json +18 -0
  247. package/templates/restaurant/l10n/en.json +21 -0
  248. package/templates/restaurant/l10n/es.json +18 -0
  249. package/templates/restaurant/l10n/fi.json +18 -0
  250. package/templates/restaurant/l10n/fr.json +18 -0
  251. package/templates/restaurant/l10n/he.json +15 -0
  252. package/templates/restaurant/l10n/hu.json +18 -0
  253. package/templates/restaurant/l10n/id.json +18 -0
  254. package/templates/restaurant/l10n/it.json +18 -0
  255. package/templates/restaurant/l10n/ja.json +18 -0
  256. package/templates/restaurant/l10n/ko.json +18 -0
  257. package/templates/restaurant/l10n/lt.json +18 -0
  258. package/templates/restaurant/l10n/nl.json +18 -0
  259. package/templates/restaurant/l10n/no.json +18 -0
  260. package/templates/restaurant/l10n/pl.json +18 -0
  261. package/templates/restaurant/l10n/pt.json +18 -0
  262. package/templates/restaurant/l10n/ru.json +18 -0
  263. package/templates/restaurant/l10n/sv.json +18 -0
  264. package/templates/restaurant/l10n/th.json +18 -0
  265. package/templates/restaurant/l10n/tr.json +18 -0
  266. package/templates/restaurant/l10n/uk.json +18 -0
  267. package/templates/restaurant/l10n/vi.json +18 -0
  268. package/templates/restaurant/l10n/zh.json +18 -0
  269. package/templates/restaurant/tier5-src/himi-store-account/index.ts +110 -3
  270. package/templates/retail-store/dev/index.ts +138 -0
  271. package/templates/retail-store/l10n/ar.json +18 -0
  272. package/templates/retail-store/l10n/cs.json +18 -0
  273. package/templates/retail-store/l10n/da.json +18 -0
  274. package/templates/retail-store/l10n/de.json +18 -0
  275. package/templates/retail-store/l10n/el.json +18 -0
  276. package/templates/retail-store/l10n/en.json +21 -0
  277. package/templates/retail-store/l10n/es.json +18 -0
  278. package/templates/retail-store/l10n/fi.json +18 -0
  279. package/templates/retail-store/l10n/fr.json +18 -0
  280. package/templates/retail-store/l10n/he.json +15 -0
  281. package/templates/retail-store/l10n/hu.json +18 -0
  282. package/templates/retail-store/l10n/id.json +18 -0
  283. package/templates/retail-store/l10n/it.json +18 -0
  284. package/templates/retail-store/l10n/ja.json +18 -0
  285. package/templates/retail-store/l10n/ko.json +18 -0
  286. package/templates/retail-store/l10n/lt.json +18 -0
  287. package/templates/retail-store/l10n/nl.json +18 -0
  288. package/templates/retail-store/l10n/no.json +18 -0
  289. package/templates/retail-store/l10n/pl.json +18 -0
  290. package/templates/retail-store/l10n/pt.json +18 -0
  291. package/templates/retail-store/l10n/ru.json +18 -0
  292. package/templates/retail-store/l10n/sv.json +18 -0
  293. package/templates/retail-store/l10n/th.json +18 -0
  294. package/templates/retail-store/l10n/tr.json +18 -0
  295. package/templates/retail-store/l10n/uk.json +18 -0
  296. package/templates/retail-store/l10n/vi.json +18 -0
  297. package/templates/retail-store/l10n/zh.json +18 -0
  298. package/templates/retail-store/tier5-src/himi-store-account/index.ts +110 -3
  299. package/templates/salon-spa/tier5-src/himi-store-account/index.ts +110 -3
  300. package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +110 -3
  301. package/templates/yoga-studio/dev/index.ts +138 -0
  302. package/templates/yoga-studio/l10n/ar.json +18 -0
  303. package/templates/yoga-studio/l10n/cs.json +18 -0
  304. package/templates/yoga-studio/l10n/da.json +18 -0
  305. package/templates/yoga-studio/l10n/de.json +18 -0
  306. package/templates/yoga-studio/l10n/el.json +18 -0
  307. package/templates/yoga-studio/l10n/en.json +21 -0
  308. package/templates/yoga-studio/l10n/es.json +18 -0
  309. package/templates/yoga-studio/l10n/fi.json +18 -0
  310. package/templates/yoga-studio/l10n/fr.json +18 -0
  311. package/templates/yoga-studio/l10n/he.json +15 -0
  312. package/templates/yoga-studio/l10n/hu.json +18 -0
  313. package/templates/yoga-studio/l10n/id.json +18 -0
  314. package/templates/yoga-studio/l10n/it.json +18 -0
  315. package/templates/yoga-studio/l10n/ja.json +18 -0
  316. package/templates/yoga-studio/l10n/ko.json +18 -0
  317. package/templates/yoga-studio/l10n/lt.json +18 -0
  318. package/templates/yoga-studio/l10n/nl.json +18 -0
  319. package/templates/yoga-studio/l10n/no.json +18 -0
  320. package/templates/yoga-studio/l10n/pl.json +18 -0
  321. package/templates/yoga-studio/l10n/pt.json +18 -0
  322. package/templates/yoga-studio/l10n/ru.json +18 -0
  323. package/templates/yoga-studio/l10n/sv.json +18 -0
  324. package/templates/yoga-studio/l10n/th.json +18 -0
  325. package/templates/yoga-studio/l10n/tr.json +18 -0
  326. package/templates/yoga-studio/l10n/uk.json +18 -0
  327. package/templates/yoga-studio/l10n/vi.json +18 -0
  328. package/templates/yoga-studio/l10n/zh.json +18 -0
  329. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +110 -3
package/dist/cli.mjs CHANGED
@@ -177565,13 +177565,13 @@ function newestSourceChangeMs(dir) {
177565
177565
  const roots2 = renderInputRootDirs(dir);
177566
177566
  const inRead = (hostRel) => !roots2 || roots2.has(hostRel.split(sep18)[0]);
177567
177567
  const counts = (hostRel) => !hostRel.includes(sep18) || inRead(hostRel);
177568
- let newest = 0;
177568
+ let newest2 = 0;
177569
177569
  walkSourceTree(
177570
177570
  dir,
177571
177571
  (archivePath, hostRel) => {
177572
177572
  if (/\.md$/i.test(archivePath) || !counts(hostRel)) return;
177573
177573
  const m2 = lstatSync20(join56(dir, hostRel)).mtimeMs;
177574
- if (m2 > newest) newest = m2;
177574
+ if (m2 > newest2) newest2 = m2;
177575
177575
  },
177576
177576
  () => {
177577
177577
  },
@@ -177583,10 +177583,10 @@ function newestSourceChangeMs(dir) {
177583
177583
  (hostRel) => {
177584
177584
  if (hostRel === "" || !inRead(hostRel)) return;
177585
177585
  const m2 = lstatSync20(join56(dir, hostRel)).mtimeMs;
177586
- if (m2 > newest) newest = m2;
177586
+ if (m2 > newest2) newest2 = m2;
177587
177587
  }
177588
177588
  );
177589
- return newest;
177589
+ return newest2;
177590
177590
  }
177591
177591
  function sourceFingerprint(dir) {
177592
177592
  const files = [];
@@ -179590,6 +179590,43 @@ var init_car = __esm({
179590
179590
  }
179591
179591
  });
179592
179592
 
179593
+ // ../../core/schema/frozen-renderers.json
179594
+ var frozen_renderers_default;
179595
+ var init_frozen_renderers = __esm({
179596
+ "../../core/schema/frozen-renderers.json"() {
179597
+ frozen_renderers_default = {
179598
+ description: "Renderers that are FROZEN: their code stays in the tree, but nothing runs, tests, builds or requires it \u2014 no CI lane, no pre-PR lane, no parity arm, no platforms.json opt-in. A new component or behaviour does NOT have to be implemented in a frozen renderer. Read by tools/ci/frozen-renderers.mjs (the only reader); every gate that used to require the renderer asks that module instead. To see what a revival would have to fix, run the suite with HIMALAYA_UNFREEZE=<key> \u2014 every frozen arm turns back on and its failures are the catch-up list. See docs/react-native-frozen.md.",
179599
+ frozen: {
179600
+ rn: {
179601
+ name: "React Native",
179602
+ paths: ["core/react-native/", "apps/demo-app/rn/", "samples/embed-host-rn/"],
179603
+ since: "2026-11-18",
179604
+ freezeCommit: "9625c66e6d",
179605
+ doc: "docs/react-native-frozen.md",
179606
+ rfc: "core/schema/RFC/0045-react-native-renderer.md"
179607
+ }
179608
+ }
179609
+ };
179610
+ }
179611
+ });
179612
+
179613
+ // ../ci/frozen-renderers.mjs
179614
+ function isFrozen(key4) {
179615
+ return Object.hasOwn(frozen_renderers_default.frozen, key4) && !unfrozen.has(key4);
179616
+ }
179617
+ var unfrozen, FROZEN_RECORD, RN_FROZEN;
179618
+ var init_frozen_renderers2 = __esm({
179619
+ "../ci/frozen-renderers.mjs"() {
179620
+ init_define_HHP_CATALOG();
179621
+ init_frozen_renderers();
179622
+ unfrozen = new Set(
179623
+ (process.env.HIMALAYA_UNFREEZE ?? "").split(",").map((s5) => s5.trim()).filter(Boolean)
179624
+ );
179625
+ FROZEN_RECORD = frozen_renderers_default.frozen;
179626
+ RN_FROZEN = isFrozen("rn");
179627
+ }
179628
+ });
179629
+
179593
179630
  // src/surface-lint.ts
179594
179631
  import { existsSync as existsSync67, readFileSync as readFileSync73 } from "node:fs";
179595
179632
  import { join as join63 } from "node:path";
@@ -179619,6 +179656,9 @@ function surfaceIssues(dir, surfaceNav, strict) {
179619
179656
  error(key4 === "ios" || key4 === "android" ? `platforms.json: unknown key "${key4}" \u2014 iOS and Android are always on \u2014 remove this key (valid keys: ${valid3})` : `platforms.json: unknown key "${key4}" \u2014 valid keys: ${valid3}`);
179620
179657
  } else if (typeof value2 !== "boolean") {
179621
179658
  error(`platforms.json: "${key4}" must be a boolean (got ${JSON.stringify(value2)}) \u2014 the server silently drops non-boolean values`);
179659
+ } else if (value2 && isFrozen(key4)) {
179660
+ const r3 = FROZEN_RECORD[key4];
179661
+ error(`platforms.json: "${key4}" is frozen \u2014 the ${r3.name} renderer has not been supported since ${r3.since}; remove the key or set it to false`);
179622
179662
  }
179623
179663
  }
179624
179664
  }
@@ -179673,6 +179713,7 @@ var init_surface_lint = __esm({
179673
179713
  init_define_HHP_CATALOG();
179674
179714
  init_car();
179675
179715
  init_preview_surfaces();
179716
+ init_frozen_renderers2();
179676
179717
  VALID_PLATFORM_KEYS2 = /* @__PURE__ */ new Set([
179677
179718
  ...PREVIEW_SURFACES.map((s5) => s5.platformKey).filter((k3) => k3 !== null),
179678
179719
  ...PREVIEW_EXEMPT_PLATFORM_KEYS
@@ -207365,10 +207406,10 @@ var init_store_record = __esm({
207365
207406
  if (files.length === 0)
207366
207407
  continue;
207367
207408
  const stores = new Set(files.filter((f2) => f2.includes("/") && STORES.has(f2.split("/")[0])).map((f2) => f2.split("/")[0]));
207368
- let newest = 0;
207409
+ let newest2 = 0;
207369
207410
  for (const f2 of files)
207370
- newest = Math.max(newest, (await stat9(recordFile(this.root, app2, f2)).catch(() => void 0))?.mtimeMs ?? 0);
207371
- index.apps[app2] = { stores: [...stores].sort(), updatedAt: new Date(newest).toISOString() };
207411
+ newest2 = Math.max(newest2, (await stat9(recordFile(this.root, app2, f2)).catch(() => void 0))?.mtimeMs ?? 0);
207412
+ index.apps[app2] = { stores: [...stores].sort(), updatedAt: new Date(newest2).toISOString() };
207372
207413
  }
207373
207414
  return index;
207374
207415
  }
@@ -208390,8 +208431,8 @@ async function tracksPart(deps, record5, app2, packageName) {
208390
208431
  const releases = list5.map(liveRelease);
208391
208432
  if (!releases.length && !held.has(name))
208392
208433
  continue;
208393
- const newest = releases.filter((r3) => typeof r3.versionCode === "number").sort((a3, b3) => b3.versionCode - a3.versionCode)[0] ?? null;
208394
- writes.push({ path: trackPath(name), schema: "google.track@1", merge: true, read: "tracks", data: { track: name, release: newest, releases } });
208434
+ const newest2 = releases.filter((r3) => typeof r3.versionCode === "number").sort((a3, b3) => b3.versionCode - a3.versionCode)[0] ?? null;
208435
+ writes.push({ path: trackPath(name), schema: "google.track@1", merge: true, read: "tracks", data: { track: name, release: newest2, releases } });
208395
208436
  }
208396
208437
  return { writes, notes: [] };
208397
208438
  }
@@ -218874,8 +218915,8 @@ var init_commerce = __esm({
218874
218915
  }
218875
218916
  /** Version-scoped localizations of the group's newest version, else the legacy product-scoped list upstream's validate reads. */
218876
218917
  async groupLocalizations(groupId) {
218877
- const newest = newestVersion(await this.groupVersions(groupId));
218878
- const scoped = newest ? flatList((await this.t.list(`/v1/subscriptionGroupVersions/${encodeURIComponent(newest.id)}/localizations`)).data) : [];
218918
+ const newest2 = newestVersion(await this.groupVersions(groupId));
218919
+ const scoped = newest2 ? flatList((await this.t.list(`/v1/subscriptionGroupVersions/${encodeURIComponent(newest2.id)}/localizations`)).data) : [];
218879
218920
  return scoped.length ? scoped : flatList((await this.t.list(`/v1/subscriptionGroups/${encodeURIComponent(groupId)}/subscriptionGroupLocalizations`)).data);
218880
218921
  }
218881
218922
  /** Creates or updates a locale's text on the group's editable version, creating that version when there is none. */
@@ -218934,8 +218975,8 @@ var init_commerce = __esm({
218934
218975
  }
218935
218976
  /** Version-scoped text of the newest version, else the legacy product-scoped list upstream's validate reads. */
218936
218977
  async localizations(id) {
218937
- const newest = newestVersion(await this.versions(id));
218938
- const scoped = newest ? flatList((await this.t.list(`/v1/subscriptionVersions/${encodeURIComponent(newest.id)}/localizations`)).data) : [];
218978
+ const newest2 = newestVersion(await this.versions(id));
218979
+ const scoped = newest2 ? flatList((await this.t.list(`/v1/subscriptionVersions/${encodeURIComponent(newest2.id)}/localizations`)).data) : [];
218939
218980
  return scoped.length ? scoped : flatList((await this.t.list(`/v1/subscriptions/${encodeURIComponent(id)}/subscriptionLocalizations`)).data);
218940
218981
  }
218941
218982
  /** The legacy product-scoped write; `setLocalization` is the one Apple keeps (API 4.4.1, version-scoped). */
@@ -219388,8 +219429,8 @@ async function iapChecks(api4, appId3) {
219388
219429
  const unverified = (id, what, reason) => ({ ...base2, id: `iap.diagnostics.${id}_unverified`, severity: "info", message: `Could not verify ${what} of ${label4}`, remediation: reason });
219389
219430
  const set3 = `asc-node iap localize --app ${appId3} --iap ${iap.id} --locale en-US --name NAME --description TEXT`;
219390
219431
  const text32 = await attempt(async () => {
219391
- const newest = [...await api4.iap.versions(iap.id)].sort((a3, b3) => (b3.version ?? 0) - (a3.version ?? 0))[0];
219392
- return newest ? api4.iap.localizations(newest.id) : [];
219432
+ const newest2 = [...await api4.iap.versions(iap.id)].sort((a3, b3) => (b3.version ?? 0) - (a3.version ?? 0))[0];
219433
+ return newest2 ? api4.iap.localizations(newest2.id) : [];
219393
219434
  });
219394
219435
  checks.push(..."reason" in text32 ? [unverified("localization", "the localizations", text32.reason)] : textChecks("iap", "inAppPurchaseV2", iap.id, label4, text32.value, set3));
219395
219436
  checks.push(...screenshotChecks("iap", "inAppPurchaseV2", iap.id, label4, await attempt(() => api4.iap.reviewScreenshots.read(iap.id)), `asc-node iap review-screenshot upload --app ${appId3} --iap ${iap.id} --file review.png`, `asc-node iap review-screenshot delete --app ${appId3} --iap ${iap.id}`));
@@ -242303,18 +242344,18 @@ function noteRecordPush(root, key4, note) {
242303
242344
  }
242304
242345
  }
242305
242346
  function readRecordPushNote(root, keys2) {
242306
- let newest;
242347
+ let newest2;
242307
242348
  for (const key4 of new Set(keys2.filter((k3) => !!k3))) {
242308
242349
  try {
242309
242350
  const v2 = JSON.parse(readFileSync126(pushNoteFile(root, key4), "utf8"));
242310
242351
  if (v2.schema !== PUSH_NOTE_SCHEMA || typeof v2.at !== "string") continue;
242311
242352
  const { schema: _schema, ...note } = v2;
242312
242353
  void _schema;
242313
- if (!newest || note.at >= newest.at) newest = note;
242354
+ if (!newest2 || note.at >= newest2.at) newest2 = note;
242314
242355
  } catch {
242315
242356
  }
242316
242357
  }
242317
- return newest;
242358
+ return newest2;
242318
242359
  }
242319
242360
  async function linkStorePackage(root, identity) {
242320
242361
  if (!identity.packageName || !identity.himiAppId) return void 0;
@@ -253113,10 +253154,78 @@ stderr with a code.`;
253113
253154
  }
253114
253155
  });
253115
253156
 
253157
+ // src/store-google-pool-ready.ts
253158
+ async function planReady(runner2, input, view, actor) {
253159
+ const steps = [];
253160
+ const skipped = [];
253161
+ const countries2 = await runner2.plan("gplay.console.countries", { packageName: input.packageName, appId: input.appId, track: input.track, countries: input.countries }, actor);
253162
+ const cp = planProblem(countries2, countries2.plan.changes.map((c2) => c2.resource).filter((r3) => r3.startsWith("countries/")), /^testers in those countries can install the closed test/);
253163
+ if (cp) throw new ReadyRefusal(`countries: ${cp}`, countries2);
253164
+ if (isNoop(countries2)) skipped.push(`countries: ${countries2.plan.changes[0]?.summary ?? "already targeted"}`);
253165
+ else steps.push({ step: "countries", job: countries2 });
253166
+ const versionCode = newest(view.from);
253167
+ if (!versionCode) {
253168
+ skipped.push(`release: ${input.from} has no release to put on ${input.track}`);
253169
+ return { steps, skipped };
253170
+ }
253171
+ if (newest(view.to) >= versionCode) {
253172
+ skipped.push(`release: ${input.track} already carries version ${newest(view.to)}`);
253173
+ return { steps, skipped, versionCode };
253174
+ }
253175
+ const replace3 = (view.to ?? []).some((r3) => (r3.versionCodes ?? []).length > 0);
253176
+ const promote = await runner2.plan("gplay.release.promote", { packageName: input.packageName, versionCode, from: input.from, to: input.track, ...replace3 ? { replace: true } : {} }, actor);
253177
+ const pp = planProblem(promote, [`tracks/${input.track}`], /^$/);
253178
+ if (pp) throw new ReadyRefusal(`release: ${pp}`, promote);
253179
+ if (isNoop(promote)) skipped.push(`release: ${promote.plan.changes[0]?.summary ?? "already on the track"}`);
253180
+ else steps.push({ step: "release", job: promote });
253181
+ return { steps, skipped, versionCode };
253182
+ }
253183
+ async function applySteps(runner2, plan, person, actor, now) {
253184
+ const applied = [];
253185
+ for (const s5 of plan.steps) {
253186
+ const job = await approveAndApply(runner2, s5.job, person, actor, now);
253187
+ if (job.status !== "verified") throw new ReadyRefusal(`${s5.step}: job ${job.id} is ${job.status}: ${job.error ?? "not read back"}`, job);
253188
+ applied.push({ step: s5.step, jobId: job.id, status: job.status, ...job.result?.detail ? { detail: job.result.detail } : {} });
253189
+ }
253190
+ return applied;
253191
+ }
253192
+ async function applyReview(runner2, input, person, actor, now, planned2) {
253193
+ let review = planned2 ?? await planReview(runner2, input, actor);
253194
+ if (!isNoop(review)) {
253195
+ review = await approveAndApply(runner2, review, person, actor, now);
253196
+ if (review.status !== "verified") throw new ReadyRefusal(`review: job ${review.id} is ${review.status}: ${review.error ?? "not read back"}`, review);
253197
+ }
253198
+ return { step: "review", jobId: review.id, status: isNoop(review) ? "noop" : review.status, detail: review.result?.detail ?? review.plan.changes.map((c2) => c2.summary).join("; ") };
253199
+ }
253200
+ var POOL_DEFAULT_COUNTRIES, POOL_DEFAULT_FROM, isNoop, newest, ReadyRefusal, readyLines, planReview;
253201
+ var init_store_google_pool_ready = __esm({
253202
+ "src/store-google-pool-ready.ts"() {
253203
+ init_define_HHP_CATALOG();
253204
+ init_store_relops_google();
253205
+ POOL_DEFAULT_COUNTRIES = ["Israel", "United States"];
253206
+ POOL_DEFAULT_FROM = "alpha";
253207
+ isNoop = (job) => job.plan.changes.every((c2) => c2.op === "noop");
253208
+ newest = (releases = []) => Math.max(0, ...releases.flatMap((r3) => (r3.versionCodes ?? []).map(Number)).filter(Number.isFinite));
253209
+ ReadyRefusal = class extends Error {
253210
+ constructor(message5, job) {
253211
+ super(message5);
253212
+ this.job = job;
253213
+ }
253214
+ };
253215
+ readyLines = (plan, input) => [
253216
+ ...plan.steps.flatMap((s5) => changesOf2(s5.job)),
253217
+ `then send the app's changes on "${input.track}" to Google's review (Play Console), unless Play already sent them`
253218
+ ];
253219
+ planReview = (runner2, input, actor) => runner2.plan("gplay.console.sendReview", { packageName: input.packageName, appId: input.appId, track: input.track }, actor);
253220
+ }
253221
+ });
253222
+
253116
253223
  // src/store-google-testers.ts
253117
253224
  var store_google_testers_exports = {};
253118
253225
  __export(store_google_testers_exports, {
253226
+ POOL_CONSENT_COVERS: () => POOL_CONSENT_COVERS,
253119
253227
  POOL_CONSENT_DAYS: () => POOL_CONSENT_DAYS,
253228
+ POOL_COUNTRIES_ENV: () => POOL_COUNTRIES_ENV,
253120
253229
  POOL_DEFAULT_TRACK: () => POOL_DEFAULT_TRACK,
253121
253230
  POOL_GROUP_ENV: () => POOL_GROUP_ENV,
253122
253231
  STORE_GOOGLE_TESTERS_CODES: () => STORE_GOOGLE_TESTERS_CODES,
@@ -253152,7 +253261,28 @@ function parse7(pos, flags, cwd, env) {
253152
253261
  if (!PACKAGE_RE3.test(packageName)) throw new UsageError9(`"${packageName}" is not an Android package name`);
253153
253262
  const developer = text22(flags.developer) ?? text22(facts?.developerId);
253154
253263
  if (developer && !DEVELOPER_RE3.test(developer)) throw new UsageError9("--developer is your Play developer account id: the number in your Play Console URL");
253155
- return { op, ...consentOp ? { consentOp } : {}, track: track2, group, packageName, ...developer ? { developer } : {} };
253264
+ const groupOnly = flags["group-only"] === true || flags["group-only"] === "true";
253265
+ for (const f2 of ["countries", "from", "app-id", "group-only"]) {
253266
+ if (flags[f2] !== void 0 && op !== "pool-add") throw new UsageError9(`--${f2} is for pool-add`);
253267
+ }
253268
+ const countries2 = (text22(flags.countries) ?? text22(env[POOL_COUNTRIES_ENV]) ?? POOL_DEFAULT_COUNTRIES.join(",")).split(/[,;]/).map((c2) => c2.trim()).filter(Boolean);
253269
+ if (!countries2.length) throw new UsageError9("--countries is a comma-separated list of country names as Play Console lists them");
253270
+ const from = (text22(flags.from) ?? POOL_DEFAULT_FROM).toLowerCase();
253271
+ if (text22(flags.from) && from === track2) throw new UsageError9(`--from ${from} is the pool track itself; name the track the release comes from (default ${POOL_DEFAULT_FROM})`);
253272
+ const appId3 = text22(flags["app-id"]) ?? text22(facts?.appId);
253273
+ if (appId3 && !/^\d{6,25}$/.test(appId3)) throw new UsageError9("--app-id is the number after /app/ in the app's Play Console URL");
253274
+ return {
253275
+ op,
253276
+ ...consentOp ? { consentOp } : {},
253277
+ track: track2,
253278
+ group,
253279
+ packageName,
253280
+ ...developer ? { developer } : {},
253281
+ ready: op === "pool-add" && !groupOnly,
253282
+ countries: countries2,
253283
+ from,
253284
+ ...appId3 ? { appId: appId3 } : {}
253285
+ };
253156
253286
  }
253157
253287
  async function runStoreGoogleTesters(pos, flags, io2, deps = {}) {
253158
253288
  const env = deps.env ?? process.env;
@@ -253225,11 +253355,13 @@ async function consentCommand(p2, io2, ask4, stateDir2, now) {
253225
253355
  track: p2.track,
253226
253356
  grantedAt: at2.toISOString(),
253227
253357
  expiresAt: new Date(at2.getTime() + POOL_CONSENT_DAYS * DAY_MS6).toISOString(),
253228
- osUser: osUser2()
253358
+ osUser: osUser2(),
253359
+ covers: [...POOL_CONSENT_COVERS]
253229
253360
  };
253230
253361
  for (const line of [
253231
253362
  `This records your consent, for ${POOL_CONSENT_DAYS} days (until ${record5.expiresAt.slice(0, 10)}), for himi to add or remove Wix's closed-test pool group ${p2.group}`,
253232
- `on the testers of ${p2.packageName}${developerId ? ` (developer account ${developerId})` : ""} without asking you each time. Every change is still planned, checked and logged as a job.`,
253363
+ `on the testers of ${p2.packageName}${developerId ? ` (developer account ${developerId})` : ""} without asking you each time, and, on pool-add, to add the pool's countries to "${p2.track}",`,
253364
+ `put your newest ${POOL_DEFAULT_FROM} release on it and send the app's changes to Google's review. Every change is still planned, checked and logged as a job.`,
253233
253365
  `Withdraw it any time: himi store google testers consent revoke`
253234
253366
  ]) io2.error(line);
253235
253367
  if ((await ask4(`Type "yes" to agree:`)).trim().toLowerCase() !== "yes") return fail13(io2, "consent_declined", "not confirmed; no consent was recorded", base2);
@@ -253279,71 +253411,169 @@ async function run3(c2) {
253279
253411
  return 0;
253280
253412
  }
253281
253413
  const adding = p2.op === "pool-add";
253282
- if (adding === onTrack) {
253283
- io2.log(JSON.stringify({ ok: true, ...base2, onTrack, changed: false, groups, nothingToDo: `${p2.group} is ${onTrack ? "already" : "not"} on ${p2.track}` }));
253414
+ const groupNeeded = adding !== onTrack;
253415
+ const ready = adding && p2.ready ? await prepareReady(c2, developerId) : void 0;
253416
+ if (!groupNeeded && !ready?.input) {
253417
+ io2.log(JSON.stringify({ ok: true, ...base2, onTrack, changed: false, groups, nothingToDo: `${p2.group} is ${onTrack ? "already" : "not"} on ${p2.track}`, ...ready?.note ? { ready: { skipped: [ready.note] } } : {} }));
253284
253418
  return 0;
253285
253419
  }
253286
253420
  const wanted = adding ? [...groups, p2.group] : groups.filter((g2) => !same5(g2, p2.group));
253287
- if (!wanted.length) {
253421
+ if (groupNeeded && !wanted.length) {
253288
253422
  return fail13(io2, "pool_group_last", `${p2.group} is the only Google Group on ${p2.track}, and Google Play's API cannot set an empty list (it would leave the testers as they are). Remove it by hand: in Google Play Console, open ${p2.packageName} > Test and release > Testing > Closed testing > track "${p2.track}" > Testers, untick or remove ${p2.group} and save. Nothing was changed.`, base2);
253289
253423
  }
253290
253424
  const runner2 = await c2.google.runner(developerId);
253291
253425
  let job;
253292
- try {
253293
- job = await runner2.plan("gplay.closedTest.setup", { packageName: p2.packageName, track: p2.track, groups: wanted }, c2.actor);
253294
- const problem = planProblem(job, [`tracks/${p2.track}`, `testers/${p2.track}`], /^Google's closed-test rule/) ?? (job.plan.changes.some((ch2) => ch2.resource === `tracks/${p2.track}` && ch2.op !== (creating ? "create" : "noop")) ? creating ? `the plan does not create the missing track ${p2.track}` : `the plan also changes the track ${p2.track} itself` : void 0) ?? (JSON.stringify(job.plan.facts?.groups ?? null) !== JSON.stringify([...groups].sort()) ? `the track's groups changed since they were read (${job.plan.facts?.groups?.join(", ") ?? "unknown"})` : void 0);
253295
- if (problem) return fail13(io2, "plan_unexpected", `${problem}; nothing was approved`, { ...base2, jobId: job.id, status: job.status, changes: changesOf2(job) });
253426
+ let readyPlan;
253427
+ let review;
253428
+ let reviewSkipped;
253429
+ const readyRunner = ready?.input ? await c2.google.runner(developerId, { console: true }) : void 0;
253430
+ const readyOut = {};
253431
+ try {
253432
+ if (groupNeeded) {
253433
+ job = await runner2.plan("gplay.closedTest.setup", { packageName: p2.packageName, track: p2.track, groups: wanted }, c2.actor);
253434
+ const problem = planProblem(job, [`tracks/${p2.track}`, `testers/${p2.track}`], /^Google's closed-test rule/) ?? (job.plan.changes.some((ch2) => ch2.resource === `tracks/${p2.track}` && ch2.op !== (creating ? "create" : "noop")) ? creating ? `the plan does not create the missing track ${p2.track}` : `the plan also changes the track ${p2.track} itself` : void 0) ?? (JSON.stringify(job.plan.facts?.groups ?? null) !== JSON.stringify([...groups].sort()) ? `the track's groups changed since they were read (${job.plan.facts?.groups?.join(", ") ?? "unknown"})` : void 0);
253435
+ if (problem) return fail13(io2, "plan_unexpected", `${problem}; nothing was approved`, { ...base2, jobId: job.id, status: job.status, changes: changesOf2(job) });
253436
+ }
253437
+ if (ready?.input && readyRunner) {
253438
+ readyPlan = creating ? void 0 : await planReady(readyRunner, ready.input, ready.view, c2.actor);
253439
+ if (readyPlan) try {
253440
+ const probe2 = await planReview(readyRunner, ready.input, c2.actor);
253441
+ if (readyPlan && !job && !readyPlan.steps.length) review = probe2;
253442
+ } catch (e2) {
253443
+ const why = `${e2.message ?? ""} ${e2.job?.error ?? ""}`;
253444
+ if (!/productionOwnerApprovalId/.test(why)) throw e2;
253445
+ reviewSkipped = `review: sending for review now would also send this app's pending production or beta changes, which pool-add never does; send them yourself in Play Console (Publishing overview), then run pool-add again`;
253446
+ }
253447
+ if (readyPlan && !job && !readyPlan.steps.length && !reviewSkipped) {
253448
+ review ??= await planReview(readyRunner, ready.input, c2.actor);
253449
+ if (isNoop(review)) {
253450
+ io2.log(JSON.stringify({ ok: true, ...base2, onTrack, changed: false, groups, nothingToDo: `${p2.group} is on ${p2.track}, which targets ${ready.input.countries.join(", ")}, carries its release and is in review or published`, ready: { skipped: readyPlan.skipped, review: review.plan.changes.map((ch2) => ch2.summary).join("; ") } }));
253451
+ return 0;
253452
+ }
253453
+ }
253454
+ }
253296
253455
  for (const line of [
253297
- `${adding ? "This adds" : "This removes"} Wix's closed-test pool group ${p2.group} ${adding ? "to" : "from"} the testers of closed track "${p2.track}" on ${p2.packageName} (developer account ${developerId})${creating ? `, creating the custom closed track "${p2.track}"` : ""}:`,
253298
- ...changesOf2(job).map((l3) => ` - ${l3}`),
253299
- adding ? " - Every other group stays. The pool's phones can opt in to the closed test after this." : " - Every other group stays. The pool's phones lose access to the closed test.",
253300
- ` - Job ${job.id}, plan ${job.planHash.slice(0, 8)}.`
253456
+ job ? `${adding ? "This adds" : "This removes"} Wix's closed-test pool group ${p2.group} ${adding ? "to" : "from"} the testers of closed track "${p2.track}" on ${p2.packageName} (developer account ${developerId})${creating ? `, creating the custom closed track "${p2.track}"` : ""}:` : `${p2.group} is already on "${p2.track}" (${p2.packageName}, developer account ${developerId}). This readies the track for the pool's phones:`,
253457
+ ...(job ? changesOf2(job) : []).map((l3) => ` - ${l3}`),
253458
+ ...ready?.input ? (readyPlan ? readyLines(readyPlan, ready.input).slice(0, reviewSkipped ? -1 : void 0) : [`add ${ready.input.countries.join(", ")} to "${p2.track}", put the newest release on ${ready.input.from} onto it, then send the app's changes to Google's review`]).map((l3) => ` - ${l3}`) : [],
253459
+ ...(readyPlan?.skipped ?? []).map((l3) => ` - already done: ${l3}`),
253460
+ ...ready?.note ? [` - not done: ${ready.note}`] : [],
253461
+ ...reviewSkipped ? [` - not done: ${reviewSkipped}`] : [],
253462
+ !job ? " - The track's groups stay as they are." : adding ? " - Every other group stays. The pool's phones can opt in to the closed test after this." : " - Every other group stays. The pool's phones lose access to the closed test.",
253463
+ ...job ? [` - Job ${job.id}, plan ${job.planHash.slice(0, 8)}.`] : []
253301
253464
  ]) io2.error(line);
253302
253465
  if (c2.consent) io2.error(`consent: ${c2.consent.grantedAt} (recorded by ${c2.consent.osUser}, until ${c2.consent.expiresAt}); applying without a prompt`);
253303
- else if (!c2.ask) return fail13(io2, "confirmation_required", "no terminal and no recorded consent: run himi store google testers consent grant in your own terminal", { ...base2, jobId: job.id });
253466
+ else if (!c2.ask) return fail13(io2, "confirmation_required", "no terminal and no recorded consent: run himi store google testers consent grant in your own terminal", { ...base2, ...job ? { jobId: job.id } : {} });
253304
253467
  else {
253305
253468
  const agreed = (await c2.ask(`Type "yes" to agree:`)).trim().toLowerCase() === "yes";
253306
- if (!agreed) return fail13(io2, "consent_declined", "not confirmed; nothing was approved or changed", { ...base2, jobId: job.id });
253469
+ if (!agreed) return fail13(io2, "consent_declined", "not confirmed; nothing was approved or changed", { ...base2, ...job ? { jobId: job.id } : {} });
253307
253470
  }
253308
- const latest = await readGroups(c2, developerId);
253309
- const moved = creating ? latest !== void 0 : !latest || latest.length !== groups.length || !latest.every((g2) => groups.some((o2) => same5(o2, g2)));
253310
- if (moved) {
253311
- return fail13(io2, "groups_changed", `the track's groups changed while you were deciding (now: ${latest?.join(", ") || "none"}); nothing was approved or written. Run the command again.`, { ...base2, jobId: job.id });
253471
+ if (job) {
253472
+ const latest = await readGroups(c2, developerId);
253473
+ const moved = creating ? latest !== void 0 : !latest || latest.length !== groups.length || !latest.every((g2) => groups.some((o2) => same5(o2, g2)));
253474
+ if (moved) {
253475
+ return fail13(io2, "groups_changed", `the track's groups changed while you were deciding (now: ${latest?.join(", ") || "none"}); nothing was approved or written. Run the command again.`, { ...base2, jobId: job.id });
253476
+ }
253477
+ }
253478
+ if (readyPlan && readyRunner) readyOut.applied = await applySteps(readyRunner, readyPlan, c2.person, c2.actor, c2.now);
253479
+ if (job) {
253480
+ if (readyOut.applied) {
253481
+ const latest = await readGroups(c2, developerId);
253482
+ const moved = creating ? latest !== void 0 : !latest || latest.length !== groups.length || !latest.every((g2) => groups.some((o2) => same5(o2, g2)));
253483
+ if (moved) {
253484
+ return fail13(io2, "groups_changed", `the track's groups changed while the countries and release were applied (now: ${latest?.join(", ") || "none"}); those were applied, the pool group was not written. Run the command again.`, { ...base2, jobId: job.id, ...readyOut });
253485
+ }
253486
+ }
253487
+ job = await approveAndApply(runner2, job, c2.person, c2.actor, c2.now);
253312
253488
  }
253313
- job = await approveAndApply(runner2, job, c2.person, c2.actor, c2.now);
253314
253489
  } catch (e2) {
253315
- const failed3 = e2 instanceof JobFailure ? e2.job : e2.job;
253490
+ const failed3 = e2 instanceof JobFailure || e2 instanceof ReadyRefusal ? e2.job : e2.job;
253316
253491
  const upgraded = upgradedRefusal(io2, p2, `${e2.message ?? ""} ${failed3?.error ?? ""}`, { ...base2, ...failed3 ? { jobId: failed3.id, status: failed3.status } : {} });
253317
253492
  if (upgraded !== void 0) return upgraded;
253318
- return fail13(io2, "job_failed", e2.message ?? String(e2), { ...base2, ...failed3 ? { jobId: failed3.id, status: failed3.status, next: `gplay-node jobs show ${failed3.id}` } : {} });
253493
+ return fail13(io2, "job_failed", e2.message ?? String(e2), { ...base2, ...readyOut, ...failed3 ? { jobId: failed3.id, status: failed3.status, next: `gplay-node jobs show ${failed3.id}` } : {} });
253319
253494
  }
253320
- if (job.status !== "verified") {
253495
+ if (job && job.status !== "verified") {
253321
253496
  const upgraded = upgradedRefusal(io2, p2, String(job.error ?? ""), { ...base2, jobId: job.id, status: job.status });
253322
253497
  if (upgraded !== void 0) return upgraded;
253498
+ return fail13(io2, "job_failed", `job ${job.id} is ${job.status}: ${job.error ?? "not read back"}`, { ...base2, ...readyOut, jobId: job.id, status: job.status, next: `gplay-node jobs show ${job.id}` });
253323
253499
  }
253324
- if (job.status !== "verified") return fail13(io2, "job_failed", `job ${job.id} is ${job.status}: ${job.error ?? "not read back"}`, { ...base2, jobId: job.id, status: job.status, next: `gplay-node jobs show ${job.id}` });
253325
253500
  await rememberDeveloper(host.stateDir, p2.packageName, developerId);
253326
253501
  const readBack4 = await readGroups(c2, developerId);
253327
- if (readBack4 === void 0) return fail13(io2, "job_failed", `the job reads ${job.status}, but track ${p2.track} was not found on read-back`, { ...base2, jobId: job.id, status: job.status });
253502
+ if (readBack4 === void 0) return fail13(io2, "job_failed", `the track ${p2.track} was not found on read-back`, { ...base2, ...readyOut, ...job ? { jobId: job.id, status: job.status } : {} });
253328
253503
  const after = readBack4;
253329
253504
  const nowOn = after.some((g2) => same5(g2, p2.group));
253330
- if (nowOn !== adding) return fail13(io2, "job_failed", `the job reads verified, but ${p2.track}'s groups read back as ${after.join(", ") || "none"}`, { ...base2, jobId: job.id, status: job.status });
253505
+ if (nowOn !== adding) return fail13(io2, "job_failed", `${p2.track}'s groups read back as ${after.join(", ") || "none"}`, { ...base2, ...readyOut, ...job ? { jobId: job.id, status: job.status } : {} });
253506
+ if (ready?.input && readyRunner) {
253507
+ try {
253508
+ if (!readyPlan) {
253509
+ readyPlan = await planReady(readyRunner, ready.input, await readReleases(c2, developerId, ready.input.from), c2.actor);
253510
+ readyOut.applied = await applySteps(readyRunner, readyPlan, c2.person, c2.actor, c2.now);
253511
+ }
253512
+ readyOut.skipped = readyPlan.skipped;
253513
+ if (reviewSkipped) readyOut.skipped = [...readyPlan.skipped, reviewSkipped];
253514
+ else {
253515
+ try {
253516
+ readyOut.review = await applyReview(readyRunner, ready.input, c2.person, c2.actor, c2.now, review);
253517
+ } catch (e2) {
253518
+ if (!/productionOwnerApprovalId/.test(`${e2.message ?? ""} ${e2.job?.error ?? ""}`)) throw e2;
253519
+ readyOut.skipped = [...readyPlan.skipped, "review: sending for review now would also send this app's pending production or beta changes, which pool-add never does; send them yourself in Play Console (Publishing overview), then run pool-add again"];
253520
+ }
253521
+ }
253522
+ } catch (e2) {
253523
+ const failed3 = e2 instanceof ReadyRefusal || e2 instanceof JobFailure ? e2.job : e2.job;
253524
+ return fail13(
253525
+ io2,
253526
+ "job_failed",
253527
+ `the pool group is ${adding ? "on" : "off"} the track, but readying it stopped: ${e2.message ?? String(e2)}`,
253528
+ { ...base2, groups: after, ...readyOut, ...failed3 ? { jobId: failed3.id, status: failed3.status, next: `gplay-node jobs show ${failed3.id}` } : {} }
253529
+ );
253530
+ }
253531
+ }
253331
253532
  io2.log(JSON.stringify({
253332
253533
  ok: true,
253333
253534
  ...base2,
253334
- jobId: job.id,
253335
- status: job.status,
253535
+ ...job ? { jobId: job.id, status: job.status, changes: changesOf2(job) } : {},
253336
253536
  onTrack: nowOn,
253337
253537
  changed: true,
253338
253538
  ...creating ? { createdTrack: true } : {},
253339
253539
  groups: after,
253340
- changes: changesOf2(job),
253540
+ ...ready ? { ready: { ...readyOut, ...ready.note ? { skipped: [...readyOut.skipped ?? [], ready.note] } : {} } } : {},
253341
253541
  ...c2.consent ? { consent: c2.consent.grantedAt } : {},
253342
- next: adding ? "tell Wix RelOps the group is on; after the test, run: himi store google testers pool-remove" : "the pool's group is off the track"
253542
+ next: adding ? ready?.input ? "once Google approves the review, the pool's phones can opt in; tell Wix RelOps. After the test, run: himi store google testers pool-remove" : "tell Wix RelOps the group is on; after the test, run: himi store google testers pool-remove" : "the pool's group is off the track"
253343
253543
  }));
253344
253544
  return 0;
253345
253545
  }
253346
- var POOL_GROUP_ENV, POOL_DEFAULT_TRACK, POOL_CONSENT_DAYS, DAY_MS6, UPGRADED_RE, STORE_GOOGLE_TESTERS_USAGE, STORE_GOOGLE_TESTERS_CODES, text22, GROUP_RE, DEVELOPER_RE3, PACKAGE_RE3, NOT_CLOSED, UsageError9, consentPath, same5;
253546
+ async function readReleases(c2, developerId, from) {
253547
+ const host = c2.google.host;
253548
+ const stored = (await host.store.load())?.account;
253549
+ const account2 = { kind: "google", developerId, principal: stored ?? `the gplay-node sign-in (${host.store.id})` };
253550
+ const jobs = await Promise.resolve().then(() => (init_dist2(), dist_exports2));
253551
+ const googleFor = host.googleFor ?? jobs.googleClientsFor({ stateDir: host.stateDir, store: host.store });
253552
+ const clients = await googleFor(account2, { readOnly: true });
253553
+ return clients.api.readEdit(c2.p.packageName, async (edit) => {
253554
+ const tracks = await edit.listTracks();
253555
+ const of2 = (name) => tracks.find((t2) => t2.track === name)?.releases ?? (tracks.some((t2) => t2.track === name) ? [] : void 0);
253556
+ return { from: of2(from), to: of2(c2.p.track) };
253557
+ });
253558
+ }
253559
+ async function prepareReady(c2, developerId) {
253560
+ const { p: p2 } = c2;
253561
+ if (c2.consent && !(c2.consent.covers ?? []).includes("ready")) {
253562
+ return { note: "countries, release and review: your recorded consent covers only the pool group; run himi store google testers consent grant again in your own terminal to cover them" };
253563
+ }
253564
+ let appId3 = p2.appId;
253565
+ if (!appId3) {
253566
+ try {
253567
+ appId3 = (await (await Promise.resolve().then(() => (init_dist(), dist_exports))).readPlanRecord(c2.google.host.stateDir, p2.packageName)).appId;
253568
+ } catch {
253569
+ appId3 = void 0;
253570
+ }
253571
+ }
253572
+ if (!appId3) return { note: `countries, release and review need the app's Play Console id: pass --app-id <the number after /app/ in its Console URL> or set appId in ${GOOGLE_FACTS_FILE}` };
253573
+ const input = { packageName: p2.packageName, track: p2.track, appId: appId3, countries: p2.countries, from: p2.from };
253574
+ return { input, view: await readReleases(c2, developerId, p2.from) };
253575
+ }
253576
+ var POOL_GROUP_ENV, POOL_DEFAULT_TRACK, POOL_COUNTRIES_ENV, POOL_CONSENT_COVERS, POOL_CONSENT_DAYS, DAY_MS6, UPGRADED_RE, STORE_GOOGLE_TESTERS_USAGE, STORE_GOOGLE_TESTERS_CODES, text22, GROUP_RE, DEVELOPER_RE3, PACKAGE_RE3, NOT_CLOSED, UsageError9, consentPath, same5;
253347
253577
  var init_store_google_testers = __esm({
253348
253578
  "src/store-google-testers.ts"() {
253349
253579
  init_define_HHP_CATALOG();
@@ -253351,12 +253581,15 @@ var init_store_google_testers = __esm({
253351
253581
  init_store_host();
253352
253582
  init_store_google_host();
253353
253583
  init_store_relops_google();
253584
+ init_store_google_pool_ready();
253354
253585
  POOL_GROUP_ENV = "HIMI_POOL_TESTER_GROUP";
253355
253586
  POOL_DEFAULT_TRACK = "himi-pool";
253587
+ POOL_COUNTRIES_ENV = "HIMI_POOL_COUNTRIES";
253588
+ POOL_CONSENT_COVERS = ["group", "ready"];
253356
253589
  POOL_CONSENT_DAYS = 90;
253357
253590
  DAY_MS6 = 24 * 60 * 60 * 1e3;
253358
253591
  UPGRADED_RE = /upgraded to use open or closed testing/i;
253359
- STORE_GOOGLE_TESTERS_USAGE = "himi store google testers pool-add|pool-remove|pool-check|consent grant|consent revoke|consent status [--dir <app>] [--track himi-pool] [--android-package <package>] [--developer <id>]";
253592
+ STORE_GOOGLE_TESTERS_USAGE = "himi store google testers pool-add|pool-remove|pool-check|consent grant|consent revoke|consent status [--dir <app>] [--track himi-pool] [--android-package <package>] [--developer <id>] [--app-id <console id>] [--countries <names>] [--from alpha] [--group-only]";
253360
253593
  STORE_GOOGLE_TESTERS_CODES = [
253361
253594
  "invalid_usage",
253362
253595
  "node_too_old",
@@ -280928,6 +281161,7 @@ init_define_HHP_CATALOG();
280928
281161
  var REPEATABLE_FLAGS = /* @__PURE__ */ new Set(["data", "image", "set", "attach"]);
280929
281162
  var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
280930
281163
  "no-network",
281164
+ "group-only",
280931
281165
  "unpin",
280932
281166
  "browser",
280933
281167
  "no-open",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1769.0",
3
+ "version": "0.1771.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": "0e2351fdae217cbddf92fe3d19a6b6f465477cf2cb4b8b1654ad5dc1"
85
+ "falconPackageHash": "f09f199f0f8273746f3d5ff33817d9ef8807e91bf43734557261635a"
86
86
  }