@owlmeans/viable-sdk 0.1.18-rc.8 → 0.1.18

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 (498) hide show
  1. package/README.md +29 -11
  2. package/agent-meta/manifest.json +16 -0
  3. package/agent-meta/skills/viable-sdk/SKILL.md +1033 -0
  4. package/build/api/collect/types.d.ts +30 -0
  5. package/build/api/collect/types.d.ts.map +1 -0
  6. package/build/api/collect/types.js +2 -0
  7. package/build/api/collect/types.js.map +1 -0
  8. package/build/api/collect.d.ts +14 -0
  9. package/build/api/collect.d.ts.map +1 -0
  10. package/build/api/collect.js +132 -0
  11. package/build/api/collect.js.map +1 -0
  12. package/build/api/consts.local.d.ts +21 -0
  13. package/build/api/consts.local.d.ts.map +1 -0
  14. package/build/api/consts.local.js +25 -0
  15. package/build/api/consts.local.js.map +1 -0
  16. package/build/api/index.d.ts +5 -0
  17. package/build/api/index.d.ts.map +1 -1
  18. package/build/api/index.js +2 -0
  19. package/build/api/index.js.map +1 -1
  20. package/build/api/remote.d.ts +13 -6
  21. package/build/api/remote.d.ts.map +1 -1
  22. package/build/api/remote.js +302 -35
  23. package/build/api/remote.js.map +1 -1
  24. package/build/api/transport/types.d.ts +14 -0
  25. package/build/api/transport/types.d.ts.map +1 -0
  26. package/build/api/transport/types.js +2 -0
  27. package/build/api/transport/types.js.map +1 -0
  28. package/build/api/transport.d.ts +4 -0
  29. package/build/api/transport.d.ts.map +1 -0
  30. package/build/api/transport.js +32 -0
  31. package/build/api/transport.js.map +1 -0
  32. package/build/api/types.d.ts +9 -0
  33. package/build/api/types.d.ts.map +1 -0
  34. package/build/api/types.js +2 -0
  35. package/build/api/types.js.map +1 -0
  36. package/build/api/types.local.d.ts +3 -0
  37. package/build/api/types.local.d.ts.map +1 -0
  38. package/build/api/types.local.js +2 -0
  39. package/build/api/types.local.js.map +1 -0
  40. package/build/consts.d.ts +29 -14
  41. package/build/consts.d.ts.map +1 -1
  42. package/build/consts.js +30 -14
  43. package/build/consts.js.map +1 -1
  44. package/build/context/consts.local.d.ts +18 -0
  45. package/build/context/consts.local.d.ts.map +1 -0
  46. package/build/context/consts.local.js +18 -0
  47. package/build/context/consts.local.js.map +1 -0
  48. package/build/context/index.d.ts +3 -7
  49. package/build/context/index.d.ts.map +1 -1
  50. package/build/context/index.js +58 -25
  51. package/build/context/index.js.map +1 -1
  52. package/build/context/types.d.ts +26 -0
  53. package/build/context/types.d.ts.map +1 -0
  54. package/build/context/types.js +2 -0
  55. package/build/context/types.js.map +1 -0
  56. package/build/executor/boot-check.d.ts +1 -40
  57. package/build/executor/boot-check.d.ts.map +1 -1
  58. package/build/executor/boot-check.js +22 -19
  59. package/build/executor/boot-check.js.map +1 -1
  60. package/build/executor/consts.d.ts +55 -0
  61. package/build/executor/consts.d.ts.map +1 -0
  62. package/build/executor/consts.js +66 -0
  63. package/build/executor/consts.js.map +1 -0
  64. package/build/executor/consts.local.d.ts +63 -0
  65. package/build/executor/consts.local.d.ts.map +1 -0
  66. package/build/executor/consts.local.js +69 -0
  67. package/build/executor/consts.local.js.map +1 -0
  68. package/build/executor/env/types.d.ts +40 -0
  69. package/build/executor/env/types.d.ts.map +1 -0
  70. package/build/executor/env/types.js +2 -0
  71. package/build/executor/env/types.js.map +1 -0
  72. package/build/executor/env.d.ts +11 -20
  73. package/build/executor/env.d.ts.map +1 -1
  74. package/build/executor/env.js +39 -59
  75. package/build/executor/env.js.map +1 -1
  76. package/build/executor/errors.d.ts +15 -0
  77. package/build/executor/errors.d.ts.map +1 -1
  78. package/build/executor/errors.js +19 -2
  79. package/build/executor/errors.js.map +1 -1
  80. package/build/executor/files/types.d.ts +106 -0
  81. package/build/executor/files/types.d.ts.map +1 -0
  82. package/build/executor/files/types.js +2 -0
  83. package/build/executor/files/types.js.map +1 -0
  84. package/build/executor/files.d.ts +2 -50
  85. package/build/executor/files.d.ts.map +1 -1
  86. package/build/executor/files.js +225 -68
  87. package/build/executor/files.js.map +1 -1
  88. package/build/executor/git/types.d.ts +19 -0
  89. package/build/executor/git/types.d.ts.map +1 -0
  90. package/build/executor/git/types.js +2 -0
  91. package/build/executor/git/types.js.map +1 -0
  92. package/build/executor/git.d.ts +4 -36
  93. package/build/executor/git.d.ts.map +1 -1
  94. package/build/executor/git.js +206 -241
  95. package/build/executor/git.js.map +1 -1
  96. package/build/executor/glob/types.d.ts +12 -0
  97. package/build/executor/glob/types.d.ts.map +1 -0
  98. package/build/executor/glob/types.js +2 -0
  99. package/build/executor/glob/types.js.map +1 -0
  100. package/build/executor/glob.d.ts +4 -0
  101. package/build/executor/glob.d.ts.map +1 -0
  102. package/build/executor/glob.js +11 -0
  103. package/build/executor/glob.js.map +1 -0
  104. package/build/executor/health/types.d.ts +39 -0
  105. package/build/executor/health/types.d.ts.map +1 -0
  106. package/build/executor/health/types.js +2 -0
  107. package/build/executor/health/types.js.map +1 -0
  108. package/build/executor/health.d.ts +3 -83
  109. package/build/executor/health.d.ts.map +1 -1
  110. package/build/executor/health.js +76 -91
  111. package/build/executor/health.js.map +1 -1
  112. package/build/executor/index.d.ts +14 -15
  113. package/build/executor/index.d.ts.map +1 -1
  114. package/build/executor/index.js +36 -18
  115. package/build/executor/index.js.map +1 -1
  116. package/build/executor/integrity/types.d.ts +25 -0
  117. package/build/executor/integrity/types.d.ts.map +1 -0
  118. package/build/executor/integrity/types.js +2 -0
  119. package/build/executor/integrity/types.js.map +1 -0
  120. package/build/executor/integrity.d.ts +5 -15
  121. package/build/executor/integrity.d.ts.map +1 -1
  122. package/build/executor/integrity.js +28 -39
  123. package/build/executor/integrity.js.map +1 -1
  124. package/build/executor/layout/types.d.ts +69 -0
  125. package/build/executor/layout/types.d.ts.map +1 -0
  126. package/build/executor/layout/types.js +2 -0
  127. package/build/executor/layout/types.js.map +1 -0
  128. package/build/executor/layout.d.ts +9 -56
  129. package/build/executor/layout.d.ts.map +1 -1
  130. package/build/executor/layout.js +35 -82
  131. package/build/executor/layout.js.map +1 -1
  132. package/build/executor/shell/types.d.ts +76 -0
  133. package/build/executor/shell/types.d.ts.map +1 -0
  134. package/build/executor/shell/types.js +2 -0
  135. package/build/executor/shell/types.js.map +1 -0
  136. package/build/executor/shell.d.ts +3 -78
  137. package/build/executor/shell.d.ts.map +1 -1
  138. package/build/executor/shell.js +61 -91
  139. package/build/executor/shell.js.map +1 -1
  140. package/build/executor/spawn/types.d.ts +98 -0
  141. package/build/executor/spawn/types.d.ts.map +1 -0
  142. package/build/executor/spawn/types.js +2 -0
  143. package/build/executor/spawn/types.js.map +1 -0
  144. package/build/executor/spawn.d.ts +3 -103
  145. package/build/executor/spawn.d.ts.map +1 -1
  146. package/build/executor/spawn.js +192 -274
  147. package/build/executor/spawn.js.map +1 -1
  148. package/build/executor/types.d.ts +123 -0
  149. package/build/executor/types.d.ts.map +1 -0
  150. package/build/executor/types.js +2 -0
  151. package/build/executor/types.js.map +1 -0
  152. package/build/executor/types.local.d.ts +6 -0
  153. package/build/executor/types.local.d.ts.map +1 -0
  154. package/build/executor/types.local.js +2 -0
  155. package/build/executor/types.local.js.map +1 -0
  156. package/build/index.d.ts +14 -1
  157. package/build/index.d.ts.map +1 -1
  158. package/build/index.js +5 -1
  159. package/build/index.js.map +1 -1
  160. package/build/project/consts.d.ts +17 -0
  161. package/build/project/consts.d.ts.map +1 -0
  162. package/build/project/consts.js +17 -0
  163. package/build/project/consts.js.map +1 -0
  164. package/build/project/consts.local.d.ts +4 -0
  165. package/build/project/consts.local.d.ts.map +1 -0
  166. package/build/project/consts.local.js +4 -0
  167. package/build/project/consts.local.js.map +1 -0
  168. package/build/project/dotenv/types.d.ts +39 -0
  169. package/build/project/dotenv/types.d.ts.map +1 -0
  170. package/build/project/dotenv/types.js +2 -0
  171. package/build/project/dotenv/types.js.map +1 -0
  172. package/build/project/dotenv.d.ts +4 -0
  173. package/build/project/dotenv.d.ts.map +1 -0
  174. package/build/project/dotenv.js +56 -0
  175. package/build/project/dotenv.js.map +1 -0
  176. package/build/project/env/types.d.ts +40 -0
  177. package/build/project/env/types.d.ts.map +1 -0
  178. package/build/project/env/types.js +2 -0
  179. package/build/project/env/types.js.map +1 -0
  180. package/build/project/env.d.ts +2 -98
  181. package/build/project/env.d.ts.map +1 -1
  182. package/build/project/env.js +63 -215
  183. package/build/project/env.js.map +1 -1
  184. package/build/project/marker/types.d.ts +33 -0
  185. package/build/project/marker/types.d.ts.map +1 -0
  186. package/build/project/marker/types.js +2 -0
  187. package/build/project/marker/types.js.map +1 -0
  188. package/build/project/marker.d.ts +4 -25
  189. package/build/project/marker.d.ts.map +1 -1
  190. package/build/project/marker.js +40 -43
  191. package/build/project/marker.js.map +1 -1
  192. package/build/project/probe/types.d.ts +22 -0
  193. package/build/project/probe/types.d.ts.map +1 -0
  194. package/build/project/probe/types.js +2 -0
  195. package/build/project/probe/types.js.map +1 -0
  196. package/build/project/probe.d.ts +4 -0
  197. package/build/project/probe.d.ts.map +1 -0
  198. package/build/project/probe.js +39 -0
  199. package/build/project/probe.js.map +1 -0
  200. package/build/project/report/types.d.ts +18 -0
  201. package/build/project/report/types.d.ts.map +1 -0
  202. package/build/project/report/types.js +2 -0
  203. package/build/project/report/types.js.map +1 -0
  204. package/build/project/report.d.ts +7 -0
  205. package/build/project/report.d.ts.map +1 -0
  206. package/build/project/report.js +68 -0
  207. package/build/project/report.js.map +1 -0
  208. package/build/project/setup/types.d.ts +32 -0
  209. package/build/project/setup/types.d.ts.map +1 -0
  210. package/build/project/setup/types.js +2 -0
  211. package/build/project/setup/types.js.map +1 -0
  212. package/build/project/setup.d.ts +4 -53
  213. package/build/project/setup.d.ts.map +1 -1
  214. package/build/project/setup.js +112 -175
  215. package/build/project/setup.js.map +1 -1
  216. package/build/project/types.d.ts +37 -0
  217. package/build/project/types.d.ts.map +1 -0
  218. package/build/project/types.js +2 -0
  219. package/build/project/types.js.map +1 -0
  220. package/build/run/consts.local.d.ts +3 -0
  221. package/build/run/consts.local.d.ts.map +1 -0
  222. package/build/run/consts.local.js +26 -0
  223. package/build/run/consts.local.js.map +1 -0
  224. package/build/run/index.d.ts +11 -69
  225. package/build/run/index.d.ts.map +1 -1
  226. package/build/run/index.js +9 -147
  227. package/build/run/index.js.map +1 -1
  228. package/build/run/local/types.d.ts +39 -0
  229. package/build/run/local/types.d.ts.map +1 -0
  230. package/build/run/local/types.js +2 -0
  231. package/build/run/local/types.js.map +1 -0
  232. package/build/run/local.d.ts +3 -0
  233. package/build/run/local.d.ts.map +1 -0
  234. package/build/run/local.js +130 -0
  235. package/build/run/local.js.map +1 -0
  236. package/build/run/process/types.d.ts +15 -0
  237. package/build/run/process/types.d.ts.map +1 -0
  238. package/build/run/process/types.js +2 -0
  239. package/build/run/process/types.js.map +1 -0
  240. package/build/run/process.d.ts +4 -0
  241. package/build/run/process.d.ts.map +1 -0
  242. package/build/run/process.js +20 -0
  243. package/build/run/process.js.map +1 -0
  244. package/build/run/serve.d.ts +14 -9
  245. package/build/run/serve.d.ts.map +1 -1
  246. package/build/run/serve.js +1 -25
  247. package/build/run/serve.js.map +1 -1
  248. package/build/run/state/types.d.ts +35 -0
  249. package/build/run/state/types.d.ts.map +1 -0
  250. package/build/run/state/types.js +2 -0
  251. package/build/run/state/types.js.map +1 -0
  252. package/build/run/state.d.ts +3 -62
  253. package/build/run/state.d.ts.map +1 -1
  254. package/build/run/state.js +96 -123
  255. package/build/run/state.js.map +1 -1
  256. package/build/run/types.d.ts +78 -0
  257. package/build/run/types.d.ts.map +1 -0
  258. package/build/run/types.js +2 -0
  259. package/build/run/types.js.map +1 -0
  260. package/build/session/consts.local.d.ts +5 -0
  261. package/build/session/consts.local.d.ts.map +1 -0
  262. package/build/session/consts.local.js +5 -0
  263. package/build/session/consts.local.js.map +1 -0
  264. package/build/session/index.d.ts +5 -10
  265. package/build/session/index.d.ts.map +1 -1
  266. package/build/session/index.js +84 -15
  267. package/build/session/index.js.map +1 -1
  268. package/build/session/questions.d.ts +16 -0
  269. package/build/session/questions.d.ts.map +1 -0
  270. package/build/session/questions.js +17 -0
  271. package/build/session/questions.js.map +1 -0
  272. package/build/session/queue.d.ts +61 -0
  273. package/build/session/queue.d.ts.map +1 -0
  274. package/build/session/queue.js +156 -0
  275. package/build/session/queue.js.map +1 -0
  276. package/build/session/tasks.d.ts +11 -30
  277. package/build/session/tasks.d.ts.map +1 -1
  278. package/build/session/tasks.js +18 -78
  279. package/build/session/tasks.js.map +1 -1
  280. package/build/session/types.d.ts +20 -0
  281. package/build/session/types.d.ts.map +1 -0
  282. package/build/session/types.js +2 -0
  283. package/build/session/types.js.map +1 -0
  284. package/build/task/consts.d.ts +12 -0
  285. package/build/task/consts.d.ts.map +1 -0
  286. package/build/task/consts.js +12 -0
  287. package/build/task/consts.js.map +1 -0
  288. package/build/task/consts.local.d.ts +19 -0
  289. package/build/task/consts.local.d.ts.map +1 -0
  290. package/build/task/consts.local.js +72 -0
  291. package/build/task/consts.local.js.map +1 -0
  292. package/build/task/driver.d.ts +1 -28
  293. package/build/task/driver.d.ts.map +1 -1
  294. package/build/task/driver.js +2 -9
  295. package/build/task/driver.js.map +1 -1
  296. package/build/task/envelope/types.d.ts +29 -0
  297. package/build/task/envelope/types.d.ts.map +1 -0
  298. package/build/task/envelope/types.js +2 -0
  299. package/build/task/envelope/types.js.map +1 -0
  300. package/build/task/envelope.d.ts +4 -34
  301. package/build/task/envelope.d.ts.map +1 -1
  302. package/build/task/envelope.js +103 -165
  303. package/build/task/envelope.js.map +1 -1
  304. package/build/task/index.d.ts +5 -0
  305. package/build/task/index.d.ts.map +1 -1
  306. package/build/task/index.js +2 -0
  307. package/build/task/index.js.map +1 -1
  308. package/build/task/inquiry/types.d.ts +38 -0
  309. package/build/task/inquiry/types.d.ts.map +1 -0
  310. package/build/task/inquiry/types.js +2 -0
  311. package/build/task/inquiry/types.js.map +1 -0
  312. package/build/task/inquiry.d.ts +5 -0
  313. package/build/task/inquiry.d.ts.map +1 -0
  314. package/build/task/inquiry.js +188 -0
  315. package/build/task/inquiry.js.map +1 -0
  316. package/build/task/types.d.ts +48 -0
  317. package/build/task/types.d.ts.map +1 -0
  318. package/build/task/types.js +2 -0
  319. package/build/task/types.js.map +1 -0
  320. package/build/tools/account/types.d.ts +24 -0
  321. package/build/tools/account/types.d.ts.map +1 -0
  322. package/build/tools/account/types.js +2 -0
  323. package/build/tools/account/types.js.map +1 -0
  324. package/build/tools/account.d.ts +4 -0
  325. package/build/tools/account.d.ts.map +1 -0
  326. package/build/tools/account.js +72 -0
  327. package/build/tools/account.js.map +1 -0
  328. package/build/tools/blueprints/types.d.ts +5 -0
  329. package/build/tools/blueprints/types.d.ts.map +1 -0
  330. package/build/tools/blueprints/types.js +2 -0
  331. package/build/tools/blueprints/types.js.map +1 -0
  332. package/build/tools/blueprints.d.ts +4 -0
  333. package/build/tools/blueprints.d.ts.map +1 -0
  334. package/build/tools/blueprints.js +23 -0
  335. package/build/tools/blueprints.js.map +1 -0
  336. package/build/tools/catalogue/types.d.ts +8 -0
  337. package/build/tools/catalogue/types.d.ts.map +1 -0
  338. package/build/tools/catalogue/types.js +2 -0
  339. package/build/tools/catalogue/types.js.map +1 -0
  340. package/build/tools/catalogue.d.ts +8 -6
  341. package/build/tools/catalogue.d.ts.map +1 -1
  342. package/build/tools/catalogue.js +2565 -213
  343. package/build/tools/catalogue.js.map +1 -1
  344. package/build/tools/config/types.d.ts +19 -0
  345. package/build/tools/config/types.d.ts.map +1 -0
  346. package/build/tools/config/types.js +2 -0
  347. package/build/tools/config/types.js.map +1 -0
  348. package/build/tools/config.d.ts +4 -0
  349. package/build/tools/config.d.ts.map +1 -0
  350. package/build/tools/config.js +42 -0
  351. package/build/tools/config.js.map +1 -0
  352. package/build/tools/consts.d.ts +61 -0
  353. package/build/tools/consts.d.ts.map +1 -0
  354. package/build/tools/consts.js +515 -0
  355. package/build/tools/consts.js.map +1 -0
  356. package/build/tools/consts.local.d.ts +131 -0
  357. package/build/tools/consts.local.d.ts.map +1 -0
  358. package/build/tools/consts.local.js +236 -0
  359. package/build/tools/consts.local.js.map +1 -0
  360. package/build/tools/control/types.d.ts +17 -0
  361. package/build/tools/control/types.d.ts.map +1 -0
  362. package/build/tools/control/types.js +2 -0
  363. package/build/tools/control/types.js.map +1 -0
  364. package/build/tools/control.d.ts +4 -0
  365. package/build/tools/control.d.ts.map +1 -0
  366. package/build/tools/control.js +44 -0
  367. package/build/tools/control.js.map +1 -0
  368. package/build/tools/feed/types.d.ts +21 -0
  369. package/build/tools/feed/types.d.ts.map +1 -0
  370. package/build/tools/feed/types.js +2 -0
  371. package/build/tools/feed/types.js.map +1 -0
  372. package/build/tools/feed.d.ts +4 -0
  373. package/build/tools/feed.d.ts.map +1 -0
  374. package/build/tools/feed.js +75 -0
  375. package/build/tools/feed.js.map +1 -0
  376. package/build/tools/git/types.d.ts +25 -0
  377. package/build/tools/git/types.d.ts.map +1 -0
  378. package/build/tools/git/types.js +2 -0
  379. package/build/tools/git/types.js.map +1 -0
  380. package/build/tools/git.d.ts +4 -0
  381. package/build/tools/git.d.ts.map +1 -0
  382. package/build/tools/git.js +83 -0
  383. package/build/tools/git.js.map +1 -0
  384. package/build/tools/handover/types.d.ts +49 -0
  385. package/build/tools/handover/types.d.ts.map +1 -0
  386. package/build/tools/handover/types.js +2 -0
  387. package/build/tools/handover/types.js.map +1 -0
  388. package/build/tools/handover.d.ts +8 -0
  389. package/build/tools/handover.d.ts.map +1 -0
  390. package/build/tools/handover.js +138 -0
  391. package/build/tools/handover.js.map +1 -0
  392. package/build/tools/host/types.d.ts +34 -0
  393. package/build/tools/host/types.d.ts.map +1 -0
  394. package/build/tools/host/types.js +2 -0
  395. package/build/tools/host/types.js.map +1 -0
  396. package/build/tools/host.d.ts +4 -0
  397. package/build/tools/host.d.ts.map +1 -0
  398. package/build/tools/host.js +13 -0
  399. package/build/tools/host.js.map +1 -0
  400. package/build/tools/iam/types.d.ts +44 -0
  401. package/build/tools/iam/types.d.ts.map +1 -0
  402. package/build/tools/iam/types.js +2 -0
  403. package/build/tools/iam/types.js.map +1 -0
  404. package/build/tools/iam.d.ts +4 -0
  405. package/build/tools/iam.d.ts.map +1 -0
  406. package/build/tools/iam.js +229 -0
  407. package/build/tools/iam.js.map +1 -0
  408. package/build/tools/index.d.ts +27 -1
  409. package/build/tools/index.d.ts.map +1 -1
  410. package/build/tools/index.js +14 -1
  411. package/build/tools/index.js.map +1 -1
  412. package/build/tools/inflight/types.d.ts +47 -0
  413. package/build/tools/inflight/types.d.ts.map +1 -0
  414. package/build/tools/inflight/types.js +2 -0
  415. package/build/tools/inflight/types.js.map +1 -0
  416. package/build/tools/inflight.d.ts +3 -0
  417. package/build/tools/inflight.d.ts.map +1 -0
  418. package/build/tools/inflight.js +88 -0
  419. package/build/tools/inflight.js.map +1 -0
  420. package/build/tools/kits/types.d.ts +12 -0
  421. package/build/tools/kits/types.d.ts.map +1 -0
  422. package/build/tools/kits/types.js +2 -0
  423. package/build/tools/kits/types.js.map +1 -0
  424. package/build/tools/kits.d.ts +4 -0
  425. package/build/tools/kits.d.ts.map +1 -0
  426. package/build/tools/kits.js +33 -0
  427. package/build/tools/kits.js.map +1 -0
  428. package/build/tools/mcp.d.ts +13 -19
  429. package/build/tools/mcp.d.ts.map +1 -1
  430. package/build/tools/mcp.js +117 -38
  431. package/build/tools/mcp.js.map +1 -1
  432. package/build/tools/platform.d.ts +14 -0
  433. package/build/tools/platform.d.ts.map +1 -0
  434. package/build/tools/platform.js +90 -0
  435. package/build/tools/platform.js.map +1 -0
  436. package/build/tools/production/types.d.ts +22 -0
  437. package/build/tools/production/types.d.ts.map +1 -0
  438. package/build/tools/production/types.js +2 -0
  439. package/build/tools/production/types.js.map +1 -0
  440. package/build/tools/production.d.ts +4 -0
  441. package/build/tools/production.d.ts.map +1 -0
  442. package/build/tools/production.js +80 -0
  443. package/build/tools/production.js.map +1 -0
  444. package/build/tools/refusal/types.d.ts +95 -0
  445. package/build/tools/refusal/types.d.ts.map +1 -0
  446. package/build/tools/refusal/types.js +2 -0
  447. package/build/tools/refusal/types.js.map +1 -0
  448. package/build/tools/refusal.d.ts +4 -0
  449. package/build/tools/refusal.d.ts.map +1 -0
  450. package/build/tools/refusal.js +663 -0
  451. package/build/tools/refusal.js.map +1 -0
  452. package/build/tools/settings/types.d.ts +42 -0
  453. package/build/tools/settings/types.d.ts.map +1 -0
  454. package/build/tools/settings/types.js +2 -0
  455. package/build/tools/settings/types.js.map +1 -0
  456. package/build/tools/settings.d.ts +4 -0
  457. package/build/tools/settings.d.ts.map +1 -0
  458. package/build/tools/settings.js +71 -0
  459. package/build/tools/settings.js.map +1 -0
  460. package/build/tools/status/types.d.ts +25 -0
  461. package/build/tools/status/types.d.ts.map +1 -0
  462. package/build/tools/status/types.js +2 -0
  463. package/build/tools/status/types.js.map +1 -0
  464. package/build/tools/status.d.ts +4 -0
  465. package/build/tools/status.d.ts.map +1 -0
  466. package/build/tools/status.js +183 -0
  467. package/build/tools/status.js.map +1 -0
  468. package/build/tools/stories/types.d.ts +48 -0
  469. package/build/tools/stories/types.d.ts.map +1 -0
  470. package/build/tools/stories/types.js +2 -0
  471. package/build/tools/stories/types.js.map +1 -0
  472. package/build/tools/stories.d.ts +8 -0
  473. package/build/tools/stories.d.ts.map +1 -0
  474. package/build/tools/stories.js +79 -0
  475. package/build/tools/stories.js.map +1 -0
  476. package/build/tools/types.d.ts +177 -26
  477. package/build/tools/types.d.ts.map +1 -1
  478. package/build/tools/types.js +1 -32
  479. package/build/tools/types.js.map +1 -1
  480. package/build/types.d.ts +391 -26
  481. package/build/types.d.ts.map +1 -1
  482. package/build/utils.d.ts +8 -0
  483. package/build/utils.d.ts.map +1 -0
  484. package/build/utils.js +12 -0
  485. package/build/utils.js.map +1 -0
  486. package/package.json +30 -34
  487. package/build/harness/index.d.ts +0 -28
  488. package/build/harness/index.d.ts.map +0 -1
  489. package/build/harness/index.js +0 -83
  490. package/build/harness/index.js.map +0 -1
  491. package/build/harness/templates.d.ts +0 -30
  492. package/build/harness/templates.d.ts.map +0 -1
  493. package/build/harness/templates.js +0 -154
  494. package/build/harness/templates.js.map +0 -1
  495. package/build/tools/jobs.d.ts +0 -12
  496. package/build/tools/jobs.d.ts.map +0 -1
  497. package/build/tools/jobs.js +0 -47
  498. package/build/tools/jobs.js.map +0 -1
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The runtime safety net `ensure` appends, so a first commit never captures dependencies, build
3
+ * output, secrets or the connector's own scratch files.
4
+ *
5
+ * `.viable/connect.json` is deliberately NOT here: it is the project's identity, it holds no
6
+ * secret, and a developer who clones their own repository elsewhere should find it. The two files
7
+ * beside it are — a run record names pids on one machine, and the local keypair is a credential.
8
+ */
9
+ export declare const IGNORE_BASELINE: string[];
10
+ /**
11
+ * Why a local repository is never pushed, pulled or given a remote.
12
+ *
13
+ * DELIBERATE DIFFERENCE from the publisher, which does all three against a token the platform
14
+ * holds. A slot's volume is the platform's and its remote is a repository the platform created;
15
+ * a developer's checkout is THEIRS, its remote is whatever they configured, and pushing to it
16
+ * would mean the platform writing to a repository nobody here was asked about — with the
17
+ * developer's own credential helper supplying the authentication. So the platform touches none
18
+ * of it: whoever owns the directory owns its remotes.
19
+ */
20
+ export declare const REMOTE_REFUSAL: string;
21
+ /**
22
+ * Why a local target is never cloned into.
23
+ *
24
+ * A clone exists for one case — the platform fetching an origin repository onto a slot's volume it
25
+ * owns — and a local target has already answered that question: the directory the connector was
26
+ * started in IS the origin, and there is nothing to fetch. Overwriting it with a remote tree would
27
+ * replace a developer's working copy, including whatever they had not committed.
28
+ *
29
+ * Answered as TEXT beside {@link REMOTE_REFUSAL} and never thrown, for the same reason: a caller
30
+ * that received an exception would retry something that can never succeed, while a `cloned: false`
31
+ * in the shape it already parses is a fact its next step can read.
32
+ */
33
+ export declare const CLONE_REFUSAL: string;
34
+ /** Where the api answers. The worker has a health port but no api base in front of it. */
35
+ export declare const TARGET_HEALTH_PATH = "/api/healtz";
36
+ /**
37
+ * The one reason a script refuses that is NOT a verdict about the code.
38
+ *
39
+ * A build with nothing to build on is an ordinary no-op that the next trigger repeats correctly —
40
+ * it happens between attaching to a fresh clone and the first install. It must not be reported as
41
+ * a failed build, or the connector announces broken code during a window in which nothing was
42
+ * even attempted.
43
+ */
44
+ export declare const NOT_INSTALLED_REASON = "cannot run: the target's dependencies are not installed yet";
45
+ /**
46
+ * Output ceiling for every validate/build child process.
47
+ *
48
+ * Node's default is 1 MiB, and a target project with a few hundred type errors exceeds it: the
49
+ * child is killed and the fixer receives `stdout maxBuffer length exceeded` instead of the errors
50
+ * it is supposed to repair.
51
+ */
52
+ export declare const MAX_OUTPUT_BUFFER: number;
53
+ /** One-shot script ceiling. A build that outlives it is wedged, not slow. */
54
+ export declare const BUILD_TIMEOUT = 300000;
55
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/executor/consts.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,UAQ3B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAC6C,CAAA;AAExE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,QACmC,CAAA;AAE7D,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,gBAA+B,CAAA;AAE9D;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,gEAAgE,CAAA;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QAAmB,CAAA;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,aAAa,SAAU,CAAA"}
@@ -0,0 +1,66 @@
1
+ import { TARGET_API_BASE } from '@owlmeans/viable-common';
2
+ /**
3
+ * The runtime safety net `ensure` appends, so a first commit never captures dependencies, build
4
+ * output, secrets or the connector's own scratch files.
5
+ *
6
+ * `.viable/connect.json` is deliberately NOT here: it is the project's identity, it holds no
7
+ * secret, and a developer who clones their own repository elsewhere should find it. The two files
8
+ * beside it are — a run record names pids on one machine, and the local keypair is a credential.
9
+ */
10
+ export const IGNORE_BASELINE = [
11
+ 'node_modules/',
12
+ 'dist/',
13
+ 'build/',
14
+ '.env',
15
+ '.viable/run.json',
16
+ '.viable/local.json',
17
+ 'tsconfig.tsbuildinfo',
18
+ ];
19
+ /**
20
+ * Why a local repository is never pushed, pulled or given a remote.
21
+ *
22
+ * DELIBERATE DIFFERENCE from the publisher, which does all three against a token the platform
23
+ * holds. A slot's volume is the platform's and its remote is a repository the platform created;
24
+ * a developer's checkout is THEIRS, its remote is whatever they configured, and pushing to it
25
+ * would mean the platform writing to a repository nobody here was asked about — with the
26
+ * developer's own credential helper supplying the authentication. So the platform touches none
27
+ * of it: whoever owns the directory owns its remotes.
28
+ */
29
+ export const REMOTE_REFUSAL = 'This project lives on your own machine, so the platform does not touch its '
30
+ + 'git remotes. Push, pull and remote configuration are yours to run.';
31
+ /**
32
+ * Why a local target is never cloned into.
33
+ *
34
+ * A clone exists for one case — the platform fetching an origin repository onto a slot's volume it
35
+ * owns — and a local target has already answered that question: the directory the connector was
36
+ * started in IS the origin, and there is nothing to fetch. Overwriting it with a remote tree would
37
+ * replace a developer's working copy, including whatever they had not committed.
38
+ *
39
+ * Answered as TEXT beside {@link REMOTE_REFUSAL} and never thrown, for the same reason: a caller
40
+ * that received an exception would retry something that can never succeed, while a `cloned: false`
41
+ * in the shape it already parses is a fact its next step can read.
42
+ */
43
+ export const CLONE_REFUSAL = 'This project is the directory the connector was started in, so there is '
44
+ + 'nothing to clone into it. Its sources are already here.';
45
+ /** Where the api answers. The worker has a health port but no api base in front of it. */
46
+ export const TARGET_HEALTH_PATH = `/${TARGET_API_BASE}/healtz`;
47
+ /**
48
+ * The one reason a script refuses that is NOT a verdict about the code.
49
+ *
50
+ * A build with nothing to build on is an ordinary no-op that the next trigger repeats correctly —
51
+ * it happens between attaching to a fresh clone and the first install. It must not be reported as
52
+ * a failed build, or the connector announces broken code during a window in which nothing was
53
+ * even attempted.
54
+ */
55
+ export const NOT_INSTALLED_REASON = "cannot run: the target's dependencies are not installed yet";
56
+ /**
57
+ * Output ceiling for every validate/build child process.
58
+ *
59
+ * Node's default is 1 MiB, and a target project with a few hundred type errors exceeds it: the
60
+ * child is killed and the fixer receives `stdout maxBuffer length exceeded` instead of the errors
61
+ * it is supposed to repair.
62
+ */
63
+ export const MAX_OUTPUT_BUFFER = 10 * 1024 * 1024;
64
+ /** One-shot script ceiling. A build that outlives it is wedged, not slow. */
65
+ export const BUILD_TIMEOUT = 300_000;
66
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/executor/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,eAAe;IACf,OAAO;IACP,QAAQ;IACR,MAAM;IACN,kBAAkB;IAClB,oBAAoB;IACpB,sBAAsB;CACvB,CAAA;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,6EAA6E;MACvG,oEAAoE,CAAA;AAExE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,0EAA0E;MACnG,yDAAyD,CAAA;AAE7D,0FAA0F;AAC1F,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,eAAe,SAAS,CAAA;AAE9D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,6DAA6D,CAAA;AAEjG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { type TargetLayout } from '@owlmeans/viable-common';
2
+ export declare const STARTUP_LOG_CAP = 16384;
3
+ /**
4
+ * Outer bound on one boot-check job.
5
+ *
6
+ * `runBootCheck` caps its own ready poll but not the build in front of it, so this is the only
7
+ * thing that guarantees a poller eventually reads `running: false` — a check that outlives it is
8
+ * abandoned, not awaited.
9
+ */
10
+ export declare const WATCHDOG_MS = 600000;
11
+ /** Keys the frontend build injects on its own, so they are never announced as extras. */
12
+ export declare const FRONTEND_STANDARD_KEYS: Set<string>;
13
+ /**
14
+ * What a tree walk never descends into.
15
+ *
16
+ * {@link CENSUS_SKIP_DIRS} is the shared half — the two directories that are never the repository
17
+ * in any tree, spread from `@owlmeans/viable-common` rather than restated, because the publisher
18
+ * and the library-local helper walk the SAME question and a caller cannot tell which executor
19
+ * produced the listing it is holding. This one used to add `dist`, `build` and `.next` on top,
20
+ * which are ordinary directory names an origin may keep sources in: the same repository then had
21
+ * one `total` here and another one in the slot.
22
+ *
23
+ * {@link CONNECT_MARKER_DIR} is added for a reason that belongs to this executor alone: it is THIS
24
+ * CONNECTOR's directory, not the origin's. It holds the local key pair and the run record and
25
+ * never a line of the application, while a census exists to be followed by a `readHead` of what it
26
+ * listed — and nothing downstream knows which of the two wrote a path.
27
+ */
28
+ export declare const WALK_SKIP: Set<string>;
29
+ /**
30
+ * The git half of the local executor, over the `git` CLI.
31
+ *
32
+ * The platform's own implementation is `@owlmeans/git`, which is private and carries `simple-git`
33
+ * and a GitHub client — neither of which may reach a package a developer installs to drive their
34
+ * own machine. So the semantics are ported and the two constants below are copied, with this
35
+ * comment as the record of where they came from: a connector that invented its own author name
36
+ * would produce a history that does not match what the platform writes for the same project in a
37
+ * slot.
38
+ */
39
+ export declare const DEFAULT_BRANCH = "main";
40
+ export declare const DEFAULT_GIT_USER_NAME = "OwlMeans Viable";
41
+ export declare const DEFAULT_GIT_USER_EMAIL = "agent@owlmeans.com";
42
+ export declare const LOG_LIMIT = 20;
43
+ export declare const STATUS_FILES_CAP = 50;
44
+ export declare const LOG_FORMAT = "--format=%H%x1f%h%x1f%an%x1f%ae%x1f%cI%x1f%s";
45
+ /**
46
+ * How long a clean verdict is reused.
47
+ *
48
+ * Short on purpose. The check runs before every spawn — the build, the backend start, the boot
49
+ * check, every `bun` invocation — and several of those run back to back inside one operation. A
50
+ * longer window would let a write land between the check and the spawn it was meant to guard, so
51
+ * this is a de-duplication of one burst, not a cache.
52
+ */
53
+ export declare const VERDICT_TTL_MS = 2000;
54
+ /** How long a port may stay bound after the process holding it was told to die. */
55
+ export declare const PORT_FREE_TIMEOUT = 10000;
56
+ export declare const PORT_POLL_MS = 200;
57
+ export declare const TERM_TIMEOUT = 5000;
58
+ export declare const KILL_TIMEOUT = 2000;
59
+ /** What every target process runs; the marker is what tells the three of them apart. */
60
+ export declare const TARGET_SCRIPT = "dist/index.js";
61
+ /** Each layout's marker file, as a path of this platform — the probe `detectLayout` runs per call. */
62
+ export declare const LAYOUT_MARKER_PATHS: Array<[TargetLayout, string]>;
63
+ //# sourceMappingURL=consts.local.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/executor/consts.local.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwD,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAEjH,eAAO,MAAM,eAAe,QAAS,CAAA;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,SAAU,CAAA;AAElC,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,aAGjC,CAAA;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,aAAqD,CAAA;AAE3E;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,SAAS,CAAA;AAEpC,eAAO,MAAM,qBAAqB,oBAAoB,CAAA;AAEtD,eAAO,MAAM,sBAAsB,uBAAuB,CAAA;AAE1D,eAAO,MAAM,SAAS,KAAK,CAAA;AAE3B,eAAO,MAAM,gBAAgB,KAAK,CAAA;AAIlC,eAAO,MAAM,UAAU,iDAAiD,CAAA;AAExE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,OAAQ,CAAA;AAEnC,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,QAAS,CAAA;AAEvC,eAAO,MAAM,YAAY,MAAM,CAAA;AAE/B,eAAO,MAAM,YAAY,OAAQ,CAAA;AAEjC,eAAO,MAAM,YAAY,OAAQ,CAAA;AAEjC,wFAAwF;AACxF,eAAO,MAAM,aAAa,kBAAkB,CAAA;AAE5C,sGAAsG;AACtG,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,CAE7D,CAAA"}
@@ -0,0 +1,69 @@
1
+ import path from 'node:path';
2
+ import { CENSUS_SKIP_DIRS, CONNECT_MARKER_DIR, LAYOUT_MARKERS } from '@owlmeans/viable-common';
3
+ export const STARTUP_LOG_CAP = 16_384;
4
+ /**
5
+ * Outer bound on one boot-check job.
6
+ *
7
+ * `runBootCheck` caps its own ready poll but not the build in front of it, so this is the only
8
+ * thing that guarantees a poller eventually reads `running: false` — a check that outlives it is
9
+ * abandoned, not awaited.
10
+ */
11
+ export const WATCHDOG_MS = 600_000;
12
+ /** Keys the frontend build injects on its own, so they are never announced as extras. */
13
+ export const FRONTEND_STANDARD_KEYS = new Set([
14
+ 'FRONTEND_PORT', 'FRONTEND_HOST', 'BACKEND_HOST', 'BACKEND_PORT', 'BACKEND_BASE_URL',
15
+ 'BASE_URL', 'FRONTEND_ENV_KEYS', 'SOURCEMAP',
16
+ ]);
17
+ /**
18
+ * What a tree walk never descends into.
19
+ *
20
+ * {@link CENSUS_SKIP_DIRS} is the shared half — the two directories that are never the repository
21
+ * in any tree, spread from `@owlmeans/viable-common` rather than restated, because the publisher
22
+ * and the library-local helper walk the SAME question and a caller cannot tell which executor
23
+ * produced the listing it is holding. This one used to add `dist`, `build` and `.next` on top,
24
+ * which are ordinary directory names an origin may keep sources in: the same repository then had
25
+ * one `total` here and another one in the slot.
26
+ *
27
+ * {@link CONNECT_MARKER_DIR} is added for a reason that belongs to this executor alone: it is THIS
28
+ * CONNECTOR's directory, not the origin's. It holds the local key pair and the run record and
29
+ * never a line of the application, while a census exists to be followed by a `readHead` of what it
30
+ * listed — and nothing downstream knows which of the two wrote a path.
31
+ */
32
+ export const WALK_SKIP = new Set([...CENSUS_SKIP_DIRS, CONNECT_MARKER_DIR]);
33
+ /**
34
+ * The git half of the local executor, over the `git` CLI.
35
+ *
36
+ * The platform's own implementation is `@owlmeans/git`, which is private and carries `simple-git`
37
+ * and a GitHub client — neither of which may reach a package a developer installs to drive their
38
+ * own machine. So the semantics are ported and the two constants below are copied, with this
39
+ * comment as the record of where they came from: a connector that invented its own author name
40
+ * would produce a history that does not match what the platform writes for the same project in a
41
+ * slot.
42
+ */
43
+ export const DEFAULT_BRANCH = 'main';
44
+ export const DEFAULT_GIT_USER_NAME = 'OwlMeans Viable';
45
+ export const DEFAULT_GIT_USER_EMAIL = 'agent@owlmeans.com';
46
+ export const LOG_LIMIT = 20;
47
+ export const STATUS_FILES_CAP = 50;
48
+ // Unit separator: it cannot appear in any of the fields, so a subject with tabs or spaces in it
49
+ // still parses.
50
+ export const LOG_FORMAT = '--format=%H%x1f%h%x1f%an%x1f%ae%x1f%cI%x1f%s';
51
+ /**
52
+ * How long a clean verdict is reused.
53
+ *
54
+ * Short on purpose. The check runs before every spawn — the build, the backend start, the boot
55
+ * check, every `bun` invocation — and several of those run back to back inside one operation. A
56
+ * longer window would let a write land between the check and the spawn it was meant to guard, so
57
+ * this is a de-duplication of one burst, not a cache.
58
+ */
59
+ export const VERDICT_TTL_MS = 2_000;
60
+ /** How long a port may stay bound after the process holding it was told to die. */
61
+ export const PORT_FREE_TIMEOUT = 10_000;
62
+ export const PORT_POLL_MS = 200;
63
+ export const TERM_TIMEOUT = 5_000;
64
+ export const KILL_TIMEOUT = 2_000;
65
+ /** What every target process runs; the marker is what tells the three of them apart. */
66
+ export const TARGET_SCRIPT = 'dist/index.js';
67
+ /** Each layout's marker file, as a path of this platform — the probe `detectLayout` runs per call. */
68
+ export const LAYOUT_MARKER_PATHS = LAYOUT_MARKERS.map(([layout, marker]) => [layout, path.join(...marker.split('/'))]);
69
+ //# sourceMappingURL=consts.local.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/executor/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAEjH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAA;AAErC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAA;AAElC,yFAAyF;AACzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IAC5C,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB;IACpF,UAAU,EAAE,mBAAmB,EAAE,WAAW;CAC7C,CAAC,CAAA;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,gBAAgB,EAAE,kBAAkB,CAAC,CAAC,CAAA;AAE3E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAA;AAEpC,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAA;AAEtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAE1D,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAA;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAElC,gGAAgG;AAChG,gBAAgB;AAChB,MAAM,CAAC,MAAM,UAAU,GAAG,8CAA8C,CAAA;AAExE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAA;AAEnC,mFAAmF;AACnF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAA;AAEvC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;AAE/B,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC,wFAAwF;AACxF,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAA;AAE5C,sGAAsG;AACtG,MAAM,CAAC,MAAM,mBAAmB,GAAkC,cAAc,CAAC,GAAG,CAClF,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAChE,CAAA"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The environment a locally-run target sees, composed for ONE directory.
3
+ *
4
+ * Same tables the publisher composes for a pod, with two differences that follow from where this
5
+ * runs. The hosts are `localhost` — a loopback address, not a claimed preview hostname — and the
6
+ * VALUES come from the target's own `.env` files rather than from slot metadata, because on a
7
+ * developer's machine the platform provisions nothing: the database URL, the queue URL and the
8
+ * OIDC identity are lines in a file the developer and the configure push both write.
9
+ *
10
+ * The defaults are laid down first and the `.env` is overlaid on top, so a user who set a value
11
+ * gets the value they set. Callers that own a port — the boot check, the worker — spread their
12
+ * override over the result, exactly as the publisher does.
13
+ */
14
+ export interface TargetEnvHelper {
15
+ /**
16
+ * Runtime environment for the target's api and worker processes.
17
+ *
18
+ * Read at runtime, never baked into the bundle — the api resolves `DATABASE_URL`, `VALKEY_URL`
19
+ * and the OIDC triple when it boots, which is why a configure push that lands after a build still
20
+ * reaches it with nothing more than a restart.
21
+ */
22
+ backendEnv: () => Promise<Record<string, string>>;
23
+ /**
24
+ * Build-time environment for the target's browser bundle.
25
+ *
26
+ * DELIBERATE DIFFERENCE from the publisher: `BACKEND_PORT` names the WEB port, not the api's.
27
+ * A slot serves the app and its `/api` from one hostname behind one TLS front door, so the
28
+ * publisher can leave the port blank and let the scheme imply it. A local run has two processes
29
+ * on two loopback ports, and the local server proxies `/api` precisely so the browser stays
30
+ * same-origin — pointing the bundle at 3000 instead would make every call cross-origin and put
31
+ * the target's CORS configuration in the path of a developer's first page load.
32
+ *
33
+ * Composed from the WEB package's own `.env` and never from the root one. The publisher has the
34
+ * same boundary as an allow-list (`frontendEnvVars` / `frontendSecrets`); here it is the file
35
+ * split, and it is what keeps `DATABASE_URL` and `OIDC_SECRET` out of a bundle every visitor
36
+ * downloads.
37
+ */
38
+ frontendEnv: () => Promise<Record<string, string>>;
39
+ }
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executor/env/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD;;;;;;;;;;;;;;OAcG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACnD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/executor/env/types.ts"],"names":[],"mappings":""}
@@ -1,25 +1,16 @@
1
+ import type { TargetEnvHelper } from './env/types.js';
1
2
  /**
2
- * Runtime environment for the target's api and worker processes.
3
+ * The environment a locally-run target sees.
3
4
  *
4
- * Read at runtime, never baked into the bundle — the api resolves `DATABASE_URL`, `VALKEY_URL`
5
- * and the OIDC triple when it boots, which is why a configure push that lands after a build still
6
- * reaches it with nothing more than a restart.
7
- */
8
- export declare const backendEnv: (dir: string) => Promise<Record<string, string>>;
9
- /**
10
- * Build-time environment for the target's browser bundle.
11
- *
12
- * DELIBERATE DIFFERENCE from the publisher: `BACKEND_PORT` names the WEB port, not the api's.
13
- * A slot serves the app and its `/api` from one hostname behind one TLS front door, so the
14
- * publisher can leave the port blank and let the scheme imply it. A local run has two processes
15
- * on two loopback ports, and the local server proxies `/api` precisely so the browser stays
16
- * same-origin — pointing the bundle at 3000 instead would make every call cross-origin and put
17
- * the target's CORS configuration in the path of a developer's first page load.
5
+ * Same tables the publisher composes for a pod, with two differences that follow from where this
6
+ * runs. The hosts are `localhost` — a loopback address, not a claimed preview hostname — and the
7
+ * VALUES come from the target's own `.env` files rather than from slot metadata, because on a
8
+ * developer's machine the platform provisions nothing: the database URL, the queue URL and the
9
+ * OIDC identity are lines in a file the developer and the configure push both write.
18
10
  *
19
- * Composed from the WEB package's own `.env` and never from the root one. The publisher has the
20
- * same boundary as an allow-list (`frontendEnvVars` / `frontendSecrets`); here it is the file
21
- * split, and it is what keeps `DATABASE_URL` and `OIDC_SECRET` out of a bundle every visitor
22
- * downloads.
11
+ * The defaults are laid down first and the `.env` is overlaid on top, so a user who set a value
12
+ * gets the value they set. Callers that own a port — the boot check, the worker — spread their
13
+ * override over the result, exactly as the publisher does.
23
14
  */
24
- export declare const frontendEnv: (dir: string) => Promise<Record<string, string>>;
15
+ export declare const makeTargetEnvHelper: (dir: string) => TargetEnvHelper;
25
16
  //# sourceMappingURL=env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/executor/env.ts"],"names":[],"mappings":"AA0BA;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,QAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAiB5E,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,QAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmB7E,CAAA"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/executor/env.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAErD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,eA6CjD,CAAA"}
@@ -1,5 +1,7 @@
1
1
  import { TARGET_API_BASE, TARGET_API_PORT, TARGET_WEB_PORT, TARGET_WORKER_PORT } from '@owlmeans/viable-common';
2
- import { readEnvFile, ROOT_ENV_FILE, webEnvFile } from '../project/env.js';
2
+ import { makeProjectEnvHelper } from '../project/env.js';
3
+ import { ROOT_ENV_FILE } from '../project/consts.js';
4
+ import { FRONTEND_STANDARD_KEYS } from './consts.local.js';
3
5
  /**
4
6
  * The environment a locally-run target sees.
5
7
  *
@@ -13,65 +15,43 @@ import { readEnvFile, ROOT_ENV_FILE, webEnvFile } from '../project/env.js';
13
15
  * gets the value they set. Callers that own a port — the boot check, the worker — spread their
14
16
  * override over the result, exactly as the publisher does.
15
17
  */
16
- /** Keys the frontend build injects on its own, so they are never announced as extras. */
17
- const FRONTEND_STANDARD_KEYS = new Set([
18
- 'FRONTEND_PORT', 'FRONTEND_HOST', 'BACKEND_HOST', 'BACKEND_PORT', 'BACKEND_BASE_URL',
19
- 'BASE_URL', 'FRONTEND_ENV_KEYS', 'SOURCEMAP',
20
- ]);
21
- /**
22
- * Runtime environment for the target's api and worker processes.
23
- *
24
- * Read at runtime, never baked into the bundle — the api resolves `DATABASE_URL`, `VALKEY_URL`
25
- * and the OIDC triple when it boots, which is why a configure push that lands after a build still
26
- * reaches it with nothing more than a restart.
27
- */
28
- export const backendEnv = async (dir) => {
29
- // The ROOT `.env` alone. The web package's file is compiled into a bundle anybody can read, so
30
- // the two are never merged in either direction.
31
- const values = await readEnvFile(dir, ROOT_ENV_FILE);
32
- return {
33
- BACKEND_PORT: `${TARGET_API_PORT}`,
34
- BACKEND_HOST: 'localhost',
35
- BACKEND_BASE_URL: TARGET_API_BASE,
36
- FRONTEND_HOST: 'localhost',
37
- FRONTEND_PORT: `${TARGET_WEB_PORT}`,
38
- BASE_URL: '',
39
- WORKER_PORT: `${TARGET_WORKER_PORT}`,
40
- // The target's own values last: everything above is a default this machine can state without
41
- // asking, and everything the user or a configure push wrote outranks it.
42
- ...values,
18
+ export const makeTargetEnvHelper = (dir) => {
19
+ const projectEnv = makeProjectEnvHelper(dir);
20
+ const backendEnv = async () => {
21
+ // The ROOT `.env` alone. The web package's file is compiled into a bundle anybody can read, so
22
+ // the two are never merged in either direction.
23
+ const values = await projectEnv.readEnvFile(ROOT_ENV_FILE);
24
+ return {
25
+ BACKEND_PORT: `${TARGET_API_PORT}`,
26
+ BACKEND_HOST: 'localhost',
27
+ BACKEND_BASE_URL: TARGET_API_BASE,
28
+ FRONTEND_HOST: 'localhost',
29
+ FRONTEND_PORT: `${TARGET_WEB_PORT}`,
30
+ BASE_URL: '',
31
+ WORKER_PORT: `${TARGET_WORKER_PORT}`,
32
+ // The target's own values last: everything above is a default this machine can state without
33
+ // asking, and everything the user or a configure push wrote outranks it.
34
+ ...values,
35
+ };
43
36
  };
44
- };
45
- /**
46
- * Build-time environment for the target's browser bundle.
47
- *
48
- * DELIBERATE DIFFERENCE from the publisher: `BACKEND_PORT` names the WEB port, not the api's.
49
- * A slot serves the app and its `/api` from one hostname behind one TLS front door, so the
50
- * publisher can leave the port blank and let the scheme imply it. A local run has two processes
51
- * on two loopback ports, and the local server proxies `/api` precisely so the browser stays
52
- * same-origin — pointing the bundle at 3000 instead would make every call cross-origin and put
53
- * the target's CORS configuration in the path of a developer's first page load.
54
- *
55
- * Composed from the WEB package's own `.env` and never from the root one. The publisher has the
56
- * same boundary as an allow-list (`frontendEnvVars` / `frontendSecrets`); here it is the file
57
- * split, and it is what keeps `DATABASE_URL` and `OIDC_SECRET` out of a bundle every visitor
58
- * downloads.
59
- */
60
- export const frontendEnv = async (dir) => {
61
- const values = await readEnvFile(dir, webEnvFile(dir));
62
- const env = {
63
- FRONTEND_PORT: `${TARGET_WEB_PORT}`,
64
- BACKEND_HOST: 'localhost',
65
- BACKEND_PORT: `${TARGET_WEB_PORT}`,
66
- BACKEND_BASE_URL: TARGET_API_BASE,
67
- BASE_URL: '/',
68
- ...values,
37
+ const frontendEnv = async () => {
38
+ const values = await projectEnv.readEnvFile(projectEnv.webEnvFile());
39
+ const env = {
40
+ APP_UNSECURE: 'true',
41
+ FRONTEND_PORT: `${TARGET_WEB_PORT}`,
42
+ BACKEND_HOST: 'localhost',
43
+ BACKEND_PORT: `${TARGET_WEB_PORT}`,
44
+ BACKEND_BASE_URL: TARGET_API_BASE,
45
+ BASE_URL: '/',
46
+ ...values,
47
+ };
48
+ // What the target's bundler substitutes. A key absent from this list is not replaced at build
49
+ // time and reaches the browser as `process.env.X` against an object that does not exist there.
50
+ env.FRONTEND_ENV_KEYS = Object.keys(env)
51
+ .filter(key => !FRONTEND_STANDARD_KEYS.has(key))
52
+ .join(',');
53
+ return env;
69
54
  };
70
- // What the target's bundler substitutes. A key absent from this list is not replaced at build
71
- // time and reaches the browser as `process.env.X` against an object that does not exist there.
72
- env.FRONTEND_ENV_KEYS = Object.keys(env)
73
- .filter(key => !FRONTEND_STANDARD_KEYS.has(key))
74
- .join(',');
75
- return env;
55
+ return { backendEnv, frontendEnv };
76
56
  };
77
57
  //# sourceMappingURL=env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/executor/env.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EACtE,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE1E;;;;;;;;;;;;GAYG;AAEH,yFAAyF;AACzF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB;IACpF,UAAU,EAAE,mBAAmB,EAAE,WAAW;CAC7C,CAAC,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,GAAW,EAAmC,EAAE;IAC/E,+FAA+F;IAC/F,gDAAgD;IAChD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,aAAa,CAAC,CAAA;IAEpD,OAAO;QACL,YAAY,EAAE,GAAG,eAAe,EAAE;QAClC,YAAY,EAAE,WAAW;QACzB,gBAAgB,EAAE,eAAe;QACjC,aAAa,EAAE,WAAW;QAC1B,aAAa,EAAE,GAAG,eAAe,EAAE;QACnC,QAAQ,EAAE,EAAE;QACZ,WAAW,EAAE,GAAG,kBAAkB,EAAE;QACpC,6FAA6F;QAC7F,yEAAyE;QACzE,GAAG,MAAM;KACV,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,GAAW,EAAmC,EAAE;IAChF,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,CAAA;IAEtD,MAAM,GAAG,GAA2B;QAClC,aAAa,EAAE,GAAG,eAAe,EAAE;QACnC,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,GAAG,eAAe,EAAE;QAClC,gBAAgB,EAAE,eAAe;QACjC,QAAQ,EAAE,GAAG;QACb,GAAG,MAAM;KACV,CAAA;IAED,8FAA8F;IAC9F,+FAA+F;IAC/F,GAAG,CAAC,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACrC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC/C,IAAI,CAAC,GAAG,CAAC,CAAA;IAEZ,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA"}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/executor/env.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EACtE,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAG1D;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,GAAW,EAAmB,EAAE;IAClE,MAAM,UAAU,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAA;IAE5C,MAAM,UAAU,GAAG,KAAK,IAAqC,EAAE;QAC7D,+FAA+F;QAC/F,gDAAgD;QAChD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA;QAE1D,OAAO;YACL,YAAY,EAAE,GAAG,eAAe,EAAE;YAClC,YAAY,EAAE,WAAW;YACzB,gBAAgB,EAAE,eAAe;YACjC,aAAa,EAAE,WAAW;YAC1B,aAAa,EAAE,GAAG,eAAe,EAAE;YACnC,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,GAAG,kBAAkB,EAAE;YACpC,6FAA6F;YAC7F,yEAAyE;YACzE,GAAG,MAAM;SACV,CAAA;IACH,CAAC,CAAA;IAED,MAAM,WAAW,GAAG,KAAK,IAAqC,EAAE;QAC9D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC,CAAA;QAEpE,MAAM,GAAG,GAA2B;YAClC,YAAY,EAAE,MAAM;YACpB,aAAa,EAAE,GAAG,eAAe,EAAE;YACnC,YAAY,EAAE,WAAW;YACzB,YAAY,EAAE,GAAG,eAAe,EAAE;YAClC,gBAAgB,EAAE,eAAe;YACjC,QAAQ,EAAE,GAAG;YACb,GAAG,MAAM;SACV,CAAA;QAED,8FAA8F;QAC9F,+FAA+F;QAC/F,GAAG,CAAC,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aACrC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aAC/C,IAAI,CAAC,GAAG,CAAC,CAAA;QAEZ,OAAO,GAAG,CAAA;IACZ,CAAC,CAAA;IAED,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AACpC,CAAC,CAAA"}
@@ -23,6 +23,21 @@ export declare class SandboxPathError extends Error {
23
23
  readonly name = "SandboxPathError";
24
24
  constructor(file: string);
25
25
  }
26
+ /**
27
+ * A file command was asked for something it must refuse whatever the caller intended.
28
+ *
29
+ * Two conditions today, and both are about not destroying what is already there: a relocation into
30
+ * a directory that already holds files (the move would interleave two trees, and nothing
31
+ * afterwards could tell them apart), and a removal of the project root (which is `deleteProject`,
32
+ * a command with its own name and its own keep list).
33
+ *
34
+ * Thrown rather than answered, unlike the git refusals: those are policies a caller can plan
35
+ * around, and these two mean the caller's own arguments were wrong.
36
+ */
37
+ export declare class FileCommandRefused extends Error {
38
+ readonly name = "FileCommandRefused";
39
+ constructor(message: string);
40
+ }
26
41
  /**
27
42
  * A revert was asked for on a tree with uncommitted work in it.
28
43
  *
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/executor/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAGpE;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAyB,IAAI,sBAAqB;IAElD,YAAY,IAAI,EAAE,MAAM,EAEvB;CACF;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACrC,SAAyB,IAAI,kBAAiB;IAE9C,YAAY,GAAG,EAAE,MAAM,EAEtB;CACF;AAED,2FAA2F;AAC3F,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAyB,IAAI,mBAAkB;IAE/C,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;aAGjB,MAAM,EAAE,qBAAqB;IAFzD,SAAyB,IAAI,0BAAyB;IAEtD,YAA4B,MAAM,EAAE,qBAAqB,EAExD;CACF"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/executor/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAGpE;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAyB,IAAI,sBAAqB;IAElD,YAAY,IAAI,EAAE,MAAM,EAEvB;CACF;AAED;;;;;;;;;;GAUG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,SAAyB,IAAI,wBAAuB;IAEpD,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACrC,SAAyB,IAAI,kBAAiB;IAE9C,YAAY,GAAG,EAAE,MAAM,EAEtB;CACF;AAED,2FAA2F;AAC3F,qBAAa,aAAc,SAAQ,KAAK;IACtC,SAAyB,IAAI,mBAAkB;IAE/C,YAAY,OAAO,EAAE,MAAM,EAE1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;aAGjB,MAAM,EAAE,qBAAqB;IAFzD,SAAyB,IAAI,0BAAyB;IAEtD,YAA4B,MAAM,EAAE,qBAAqB,EAExD;CACF"}
@@ -1,4 +1,4 @@
1
- import { formatIntegrityReport } from '@owlmeans/viable-common';
1
+ import { targetIntegrityHelper } from '@owlmeans/viable-common';
2
2
  /**
3
3
  * What the local executor throws, and why so little of it does.
4
4
  *
@@ -25,6 +25,23 @@ export class SandboxPathError extends Error {
25
25
  super(`Path escapes the sandbox: ${file}`);
26
26
  }
27
27
  }
28
+ /**
29
+ * A file command was asked for something it must refuse whatever the caller intended.
30
+ *
31
+ * Two conditions today, and both are about not destroying what is already there: a relocation into
32
+ * a directory that already holds files (the move would interleave two trees, and nothing
33
+ * afterwards could tell them apart), and a removal of the project root (which is `deleteProject`,
34
+ * a command with its own name and its own keep list).
35
+ *
36
+ * Thrown rather than answered, unlike the git refusals: those are policies a caller can plan
37
+ * around, and these two mean the caller's own arguments were wrong.
38
+ */
39
+ export class FileCommandRefused extends Error {
40
+ name = 'FileCommandRefused';
41
+ constructor(message) {
42
+ super(message);
43
+ }
44
+ }
28
45
  /**
29
46
  * A revert was asked for on a tree with uncommitted work in it.
30
47
  *
@@ -56,7 +73,7 @@ export class TargetIntegrityError extends Error {
56
73
  report;
57
74
  name = 'TargetIntegrityError';
58
75
  constructor(report) {
59
- super(`The project in this directory is not a Viable application:\n${formatIntegrityReport(report)}`);
76
+ super(`The project in this directory is not a Viable application:\n${targetIntegrityHelper.formatIntegrityReport(report)}`);
60
77
  this.report = report;
61
78
  }
62
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/executor/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChB,IAAI,GAAG,kBAAkB,CAAA;IAElD,YAAY,IAAY;QACtB,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAA;IAC5C,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IACZ,IAAI,GAAG,cAAc,CAAA;IAE9C,YAAY,GAAW;QACrB,KAAK,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAA;IACvD,CAAC;CACF;AAED,2FAA2F;AAC3F,MAAM,OAAO,aAAc,SAAQ,KAAK;IACb,IAAI,GAAG,eAAe,CAAA;IAE/C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAGjB,MAAM;IAFT,IAAI,GAAG,sBAAsB,CAAA;IAEtD,YAA4B,MAA6B;QACvD,KAAK,CAAC,+DAA+D,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;sBAD3E,MAAM;IAElC,CAAC;CACF"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/executor/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChB,IAAI,GAAG,kBAAkB,CAAA;IAElD,YAAY,IAAY;QACtB,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAA;IAC5C,CAAC;CACF;AAED;;;;;;;;;;GAUG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAClB,IAAI,GAAG,oBAAoB,CAAA;IAEpD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IACZ,IAAI,GAAG,cAAc,CAAA;IAE9C,YAAY,GAAW;QACrB,KAAK,CAAC,yCAAyC,GAAG,EAAE,CAAC,CAAA;IACvD,CAAC;CACF;AAED,2FAA2F;AAC3F,MAAM,OAAO,aAAc,SAAQ,KAAK;IACb,IAAI,GAAG,eAAe,CAAA;IAE/C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAGjB,MAAM;IAFT,IAAI,GAAG,sBAAsB,CAAA;IAEtD,YAA4B,MAA6B;QACvD,KAAK,CAAC,+DAA+D,qBAAqB,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;sBADjG,MAAM;IAElC,CAAC;CACF"}