@owlmeans/viable-common 0.0.4

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 (453) hide show
  1. package/README.md +68 -0
  2. package/agent-meta/manifest.json +16 -0
  3. package/agent-meta/skills/viable-common/SKILL.md +179 -0
  4. package/build/agent/index.d.ts +4 -0
  5. package/build/agent/index.d.ts.map +1 -0
  6. package/build/agent/index.js +3 -0
  7. package/build/agent/index.js.map +1 -0
  8. package/build/agent/memory.d.ts +12 -0
  9. package/build/agent/memory.d.ts.map +1 -0
  10. package/build/agent/memory.js +11 -0
  11. package/build/agent/memory.js.map +1 -0
  12. package/build/agent/spectator/consts.d.ts +9 -0
  13. package/build/agent/spectator/consts.d.ts.map +1 -0
  14. package/build/agent/spectator/consts.js +10 -0
  15. package/build/agent/spectator/consts.js.map +1 -0
  16. package/build/agent/spectator/index.d.ts +3 -0
  17. package/build/agent/spectator/index.d.ts.map +1 -0
  18. package/build/agent/spectator/index.js +2 -0
  19. package/build/agent/spectator/index.js.map +1 -0
  20. package/build/agent/spectator/types.d.ts +13 -0
  21. package/build/agent/spectator/types.d.ts.map +1 -0
  22. package/build/agent/spectator/types.js +2 -0
  23. package/build/agent/spectator/types.js.map +1 -0
  24. package/build/agent/types.d.ts +10 -0
  25. package/build/agent/types.d.ts.map +1 -0
  26. package/build/agent/types.js +2 -0
  27. package/build/agent/types.js.map +1 -0
  28. package/build/areas/consts.d.ts +88 -0
  29. package/build/areas/consts.d.ts.map +1 -0
  30. package/build/areas/consts.js +106 -0
  31. package/build/areas/consts.js.map +1 -0
  32. package/build/areas/index.d.ts +3 -0
  33. package/build/areas/index.d.ts.map +1 -0
  34. package/build/areas/index.js +2 -0
  35. package/build/areas/index.js.map +1 -0
  36. package/build/areas/types.d.ts +28 -0
  37. package/build/areas/types.d.ts.map +1 -0
  38. package/build/areas/types.js +2 -0
  39. package/build/areas/types.js.map +1 -0
  40. package/build/ba/consts.d.ts +38 -0
  41. package/build/ba/consts.d.ts.map +1 -0
  42. package/build/ba/consts.js +41 -0
  43. package/build/ba/consts.js.map +1 -0
  44. package/build/ba/helpers.d.ts +41 -0
  45. package/build/ba/helpers.d.ts.map +1 -0
  46. package/build/ba/helpers.js +79 -0
  47. package/build/ba/helpers.js.map +1 -0
  48. package/build/ba/index.d.ts +5 -0
  49. package/build/ba/index.d.ts.map +1 -0
  50. package/build/ba/index.js +4 -0
  51. package/build/ba/index.js.map +1 -0
  52. package/build/ba/schemas.d.ts +13 -0
  53. package/build/ba/schemas.d.ts.map +1 -0
  54. package/build/ba/schemas.js +181 -0
  55. package/build/ba/schemas.js.map +1 -0
  56. package/build/ba/types.d.ts +113 -0
  57. package/build/ba/types.d.ts.map +1 -0
  58. package/build/ba/types.js +2 -0
  59. package/build/ba/types.js.map +1 -0
  60. package/build/blueprint/case.d.ts +73 -0
  61. package/build/blueprint/case.d.ts.map +1 -0
  62. package/build/blueprint/case.js +244 -0
  63. package/build/blueprint/case.js.map +1 -0
  64. package/build/blueprint/consts.d.ts +11 -0
  65. package/build/blueprint/consts.d.ts.map +1 -0
  66. package/build/blueprint/consts.js +11 -0
  67. package/build/blueprint/consts.js.map +1 -0
  68. package/build/blueprint/index.d.ts +6 -0
  69. package/build/blueprint/index.d.ts.map +1 -0
  70. package/build/blueprint/index.js +6 -0
  71. package/build/blueprint/index.js.map +1 -0
  72. package/build/blueprint/resolve.d.ts +51 -0
  73. package/build/blueprint/resolve.d.ts.map +1 -0
  74. package/build/blueprint/resolve.js +108 -0
  75. package/build/blueprint/resolve.js.map +1 -0
  76. package/build/blueprint/schemas.d.ts +41 -0
  77. package/build/blueprint/schemas.d.ts.map +1 -0
  78. package/build/blueprint/schemas.js +27 -0
  79. package/build/blueprint/schemas.js.map +1 -0
  80. package/build/blueprint/types.d.ts +186 -0
  81. package/build/blueprint/types.d.ts.map +1 -0
  82. package/build/blueprint/types.js +32 -0
  83. package/build/blueprint/types.js.map +1 -0
  84. package/build/branding.d.ts +19 -0
  85. package/build/branding.d.ts.map +1 -0
  86. package/build/branding.js +32 -0
  87. package/build/branding.js.map +1 -0
  88. package/build/connect/consts.d.ts +378 -0
  89. package/build/connect/consts.d.ts.map +1 -0
  90. package/build/connect/consts.js +425 -0
  91. package/build/connect/consts.js.map +1 -0
  92. package/build/connect/entrypoints.d.ts +41 -0
  93. package/build/connect/entrypoints.d.ts.map +1 -0
  94. package/build/connect/entrypoints.js +141 -0
  95. package/build/connect/entrypoints.js.map +1 -0
  96. package/build/connect/errors.d.ts +50 -0
  97. package/build/connect/errors.d.ts.map +1 -0
  98. package/build/connect/errors.js +77 -0
  99. package/build/connect/errors.js.map +1 -0
  100. package/build/connect/index.d.ts +8 -0
  101. package/build/connect/index.d.ts.map +1 -0
  102. package/build/connect/index.js +6 -0
  103. package/build/connect/index.js.map +1 -0
  104. package/build/connect/ops.d.ts +192 -0
  105. package/build/connect/ops.d.ts.map +1 -0
  106. package/build/connect/ops.js +2 -0
  107. package/build/connect/ops.js.map +1 -0
  108. package/build/connect/references.d.ts +194 -0
  109. package/build/connect/references.d.ts.map +1 -0
  110. package/build/connect/references.js +62 -0
  111. package/build/connect/references.js.map +1 -0
  112. package/build/connect/schemas.d.ts +59 -0
  113. package/build/connect/schemas.d.ts.map +1 -0
  114. package/build/connect/schemas.js +346 -0
  115. package/build/connect/schemas.js.map +1 -0
  116. package/build/connect/types.d.ts +428 -0
  117. package/build/connect/types.d.ts.map +1 -0
  118. package/build/connect/types.js +2 -0
  119. package/build/connect/types.js.map +1 -0
  120. package/build/consts.d.ts +9 -0
  121. package/build/consts.d.ts.map +1 -0
  122. package/build/consts.js +31 -0
  123. package/build/consts.js.map +1 -0
  124. package/build/convert/consts.d.ts +539 -0
  125. package/build/convert/consts.d.ts.map +1 -0
  126. package/build/convert/consts.js +630 -0
  127. package/build/convert/consts.js.map +1 -0
  128. package/build/convert/helpers.d.ts +91 -0
  129. package/build/convert/helpers.d.ts.map +1 -0
  130. package/build/convert/helpers.js +301 -0
  131. package/build/convert/helpers.js.map +1 -0
  132. package/build/convert/index.d.ts +11 -0
  133. package/build/convert/index.d.ts.map +1 -0
  134. package/build/convert/index.js +4 -0
  135. package/build/convert/index.js.map +1 -0
  136. package/build/convert/schemas.d.ts +62 -0
  137. package/build/convert/schemas.d.ts.map +1 -0
  138. package/build/convert/schemas.js +626 -0
  139. package/build/convert/schemas.js.map +1 -0
  140. package/build/convert/types.d.ts +683 -0
  141. package/build/convert/types.d.ts.map +1 -0
  142. package/build/convert/types.js +2 -0
  143. package/build/convert/types.js.map +1 -0
  144. package/build/design/consts.d.ts +25 -0
  145. package/build/design/consts.d.ts.map +1 -0
  146. package/build/design/consts.js +26 -0
  147. package/build/design/consts.js.map +1 -0
  148. package/build/design/helpers.d.ts +60 -0
  149. package/build/design/helpers.d.ts.map +1 -0
  150. package/build/design/helpers.js +221 -0
  151. package/build/design/helpers.js.map +1 -0
  152. package/build/design/index.d.ts +6 -0
  153. package/build/design/index.d.ts.map +1 -0
  154. package/build/design/index.js +5 -0
  155. package/build/design/index.js.map +1 -0
  156. package/build/design/runtime.d.ts +126 -0
  157. package/build/design/runtime.d.ts.map +1 -0
  158. package/build/design/runtime.js +65 -0
  159. package/build/design/runtime.js.map +1 -0
  160. package/build/design/schemas.d.ts +21 -0
  161. package/build/design/schemas.d.ts.map +1 -0
  162. package/build/design/schemas.js +369 -0
  163. package/build/design/schemas.js.map +1 -0
  164. package/build/design/types.d.ts +199 -0
  165. package/build/design/types.d.ts.map +1 -0
  166. package/build/design/types.js +2 -0
  167. package/build/design/types.js.map +1 -0
  168. package/build/dev/consts.d.ts +32 -0
  169. package/build/dev/consts.d.ts.map +1 -0
  170. package/build/dev/consts.js +33 -0
  171. package/build/dev/consts.js.map +1 -0
  172. package/build/dev/index.d.ts +4 -0
  173. package/build/dev/index.d.ts.map +1 -0
  174. package/build/dev/index.js +3 -0
  175. package/build/dev/index.js.map +1 -0
  176. package/build/dev/schemas.d.ts +15 -0
  177. package/build/dev/schemas.d.ts.map +1 -0
  178. package/build/dev/schemas.js +116 -0
  179. package/build/dev/schemas.js.map +1 -0
  180. package/build/dev/types.d.ts +42 -0
  181. package/build/dev/types.d.ts.map +1 -0
  182. package/build/dev/types.js +2 -0
  183. package/build/dev/types.js.map +1 -0
  184. package/build/execution/consts.d.ts +36 -0
  185. package/build/execution/consts.d.ts.map +1 -0
  186. package/build/execution/consts.js +37 -0
  187. package/build/execution/consts.js.map +1 -0
  188. package/build/execution/index.d.ts +3 -0
  189. package/build/execution/index.d.ts.map +1 -0
  190. package/build/execution/index.js +2 -0
  191. package/build/execution/index.js.map +1 -0
  192. package/build/execution/types.d.ts +50 -0
  193. package/build/execution/types.d.ts.map +1 -0
  194. package/build/execution/types.js +2 -0
  195. package/build/execution/types.js.map +1 -0
  196. package/build/index.d.ts +22 -0
  197. package/build/index.d.ts.map +1 -0
  198. package/build/index.js +21 -0
  199. package/build/index.js.map +1 -0
  200. package/build/integrity/consts.d.ts +226 -0
  201. package/build/integrity/consts.d.ts.map +1 -0
  202. package/build/integrity/consts.js +401 -0
  203. package/build/integrity/consts.js.map +1 -0
  204. package/build/integrity/index.d.ts +4 -0
  205. package/build/integrity/index.d.ts.map +1 -0
  206. package/build/integrity/index.js +3 -0
  207. package/build/integrity/index.js.map +1 -0
  208. package/build/integrity/types.d.ts +35 -0
  209. package/build/integrity/types.d.ts.map +1 -0
  210. package/build/integrity/types.js +2 -0
  211. package/build/integrity/types.js.map +1 -0
  212. package/build/integrity/verify.d.ts +23 -0
  213. package/build/integrity/verify.d.ts.map +1 -0
  214. package/build/integrity/verify.js +198 -0
  215. package/build/integrity/verify.js.map +1 -0
  216. package/build/metadata/consts.d.ts +101 -0
  217. package/build/metadata/consts.d.ts.map +1 -0
  218. package/build/metadata/consts.js +104 -0
  219. package/build/metadata/consts.js.map +1 -0
  220. package/build/metadata/index.d.ts +3 -0
  221. package/build/metadata/index.d.ts.map +1 -0
  222. package/build/metadata/index.js +3 -0
  223. package/build/metadata/index.js.map +1 -0
  224. package/build/metadata/types.d.ts +286 -0
  225. package/build/metadata/types.d.ts.map +1 -0
  226. package/build/metadata/types.js +39 -0
  227. package/build/metadata/types.js.map +1 -0
  228. package/build/moderation/consts.d.ts +58 -0
  229. package/build/moderation/consts.d.ts.map +1 -0
  230. package/build/moderation/consts.js +60 -0
  231. package/build/moderation/consts.js.map +1 -0
  232. package/build/moderation/index.d.ts +5 -0
  233. package/build/moderation/index.d.ts.map +1 -0
  234. package/build/moderation/index.js +4 -0
  235. package/build/moderation/index.js.map +1 -0
  236. package/build/moderation/schemas.d.ts +19 -0
  237. package/build/moderation/schemas.d.ts.map +1 -0
  238. package/build/moderation/schemas.js +26 -0
  239. package/build/moderation/schemas.js.map +1 -0
  240. package/build/moderation/types.d.ts +64 -0
  241. package/build/moderation/types.d.ts.map +1 -0
  242. package/build/moderation/types.js +2 -0
  243. package/build/moderation/types.js.map +1 -0
  244. package/build/moderation/utils.d.ts +21 -0
  245. package/build/moderation/utils.d.ts.map +1 -0
  246. package/build/moderation/utils.js +31 -0
  247. package/build/moderation/utils.js.map +1 -0
  248. package/build/preview/consts.d.ts +10 -0
  249. package/build/preview/consts.d.ts.map +1 -0
  250. package/build/preview/consts.js +11 -0
  251. package/build/preview/consts.js.map +1 -0
  252. package/build/preview/index.d.ts +3 -0
  253. package/build/preview/index.d.ts.map +1 -0
  254. package/build/preview/index.js +2 -0
  255. package/build/preview/index.js.map +1 -0
  256. package/build/preview/types.d.ts +60 -0
  257. package/build/preview/types.d.ts.map +1 -0
  258. package/build/preview/types.js +2 -0
  259. package/build/preview/types.js.map +1 -0
  260. package/build/scaffold/consts.d.ts +25 -0
  261. package/build/scaffold/consts.d.ts.map +1 -0
  262. package/build/scaffold/consts.js +26 -0
  263. package/build/scaffold/consts.js.map +1 -0
  264. package/build/scaffold/helpers.d.ts +35 -0
  265. package/build/scaffold/helpers.d.ts.map +1 -0
  266. package/build/scaffold/helpers.js +54 -0
  267. package/build/scaffold/helpers.js.map +1 -0
  268. package/build/scaffold/index.d.ts +5 -0
  269. package/build/scaffold/index.d.ts.map +1 -0
  270. package/build/scaffold/index.js +4 -0
  271. package/build/scaffold/index.js.map +1 -0
  272. package/build/scaffold/schemas.d.ts +5 -0
  273. package/build/scaffold/schemas.d.ts.map +1 -0
  274. package/build/scaffold/schemas.js +273 -0
  275. package/build/scaffold/schemas.js.map +1 -0
  276. package/build/scaffold/types.d.ts +144 -0
  277. package/build/scaffold/types.d.ts.map +1 -0
  278. package/build/scaffold/types.js +2 -0
  279. package/build/scaffold/types.js.map +1 -0
  280. package/build/skills/catalogue.d.ts +47 -0
  281. package/build/skills/catalogue.d.ts.map +1 -0
  282. package/build/skills/catalogue.js +1566 -0
  283. package/build/skills/catalogue.js.map +1 -0
  284. package/build/skills/consts.d.ts +104 -0
  285. package/build/skills/consts.d.ts.map +1 -0
  286. package/build/skills/consts.js +170 -0
  287. package/build/skills/consts.js.map +1 -0
  288. package/build/skills/index.d.ts +4 -0
  289. package/build/skills/index.d.ts.map +1 -0
  290. package/build/skills/index.js +4 -0
  291. package/build/skills/index.js.map +1 -0
  292. package/build/skills/roles.d.ts +52 -0
  293. package/build/skills/roles.d.ts.map +1 -0
  294. package/build/skills/roles.js +256 -0
  295. package/build/skills/roles.js.map +1 -0
  296. package/build/slot/consts.d.ts +305 -0
  297. package/build/slot/consts.d.ts.map +1 -0
  298. package/build/slot/consts.js +376 -0
  299. package/build/slot/consts.js.map +1 -0
  300. package/build/slot/helpers.d.ts +25 -0
  301. package/build/slot/helpers.d.ts.map +1 -0
  302. package/build/slot/helpers.js +27 -0
  303. package/build/slot/helpers.js.map +1 -0
  304. package/build/slot/index.d.ts +6 -0
  305. package/build/slot/index.d.ts.map +1 -0
  306. package/build/slot/index.js +5 -0
  307. package/build/slot/index.js.map +1 -0
  308. package/build/slot/layout.d.ts +72 -0
  309. package/build/slot/layout.d.ts.map +1 -0
  310. package/build/slot/layout.js +82 -0
  311. package/build/slot/layout.js.map +1 -0
  312. package/build/slot/schemas.d.ts +12 -0
  313. package/build/slot/schemas.d.ts.map +1 -0
  314. package/build/slot/schemas.js +43 -0
  315. package/build/slot/schemas.js.map +1 -0
  316. package/build/slot/types.d.ts +147 -0
  317. package/build/slot/types.d.ts.map +1 -0
  318. package/build/slot/types.js +2 -0
  319. package/build/slot/types.js.map +1 -0
  320. package/build/topology/card.d.ts +23 -0
  321. package/build/topology/card.d.ts.map +1 -0
  322. package/build/topology/card.js +95 -0
  323. package/build/topology/card.js.map +1 -0
  324. package/build/topology/consts.d.ts +32 -0
  325. package/build/topology/consts.d.ts.map +1 -0
  326. package/build/topology/consts.js +55 -0
  327. package/build/topology/consts.js.map +1 -0
  328. package/build/topology/helpers.d.ts +44 -0
  329. package/build/topology/helpers.d.ts.map +1 -0
  330. package/build/topology/helpers.js +112 -0
  331. package/build/topology/helpers.js.map +1 -0
  332. package/build/topology/index.d.ts +5 -0
  333. package/build/topology/index.d.ts.map +1 -0
  334. package/build/topology/index.js +4 -0
  335. package/build/topology/index.js.map +1 -0
  336. package/build/topology/types.d.ts +83 -0
  337. package/build/topology/types.d.ts.map +1 -0
  338. package/build/topology/types.js +2 -0
  339. package/build/topology/types.js.map +1 -0
  340. package/build/types.d.ts +88 -0
  341. package/build/types.d.ts.map +1 -0
  342. package/build/types.js +2 -0
  343. package/build/types.js.map +1 -0
  344. package/build/ux/consts.d.ts +5 -0
  345. package/build/ux/consts.d.ts.map +1 -0
  346. package/build/ux/consts.js +6 -0
  347. package/build/ux/consts.js.map +1 -0
  348. package/build/ux/index.d.ts +4 -0
  349. package/build/ux/index.d.ts.map +1 -0
  350. package/build/ux/index.js +3 -0
  351. package/build/ux/index.js.map +1 -0
  352. package/build/ux/schemas.d.ts +8 -0
  353. package/build/ux/schemas.d.ts.map +1 -0
  354. package/build/ux/schemas.js +91 -0
  355. package/build/ux/schemas.js.map +1 -0
  356. package/build/ux/types.d.ts +21 -0
  357. package/build/ux/types.d.ts.map +1 -0
  358. package/build/ux/types.js +2 -0
  359. package/build/ux/types.js.map +1 -0
  360. package/package.json +71 -0
  361. package/src/agent/index.ts +4 -0
  362. package/src/agent/memory.ts +16 -0
  363. package/src/agent/spectator/consts.ts +10 -0
  364. package/src/agent/spectator/index.ts +3 -0
  365. package/src/agent/spectator/types.ts +14 -0
  366. package/src/agent/types.ts +10 -0
  367. package/src/areas/consts.ts +112 -0
  368. package/src/areas/index.ts +3 -0
  369. package/src/areas/types.ts +29 -0
  370. package/src/ba/consts.ts +40 -0
  371. package/src/ba/helpers.ts +93 -0
  372. package/src/ba/index.ts +5 -0
  373. package/src/ba/schemas.ts +196 -0
  374. package/src/ba/types.ts +125 -0
  375. package/src/blueprint/case.ts +272 -0
  376. package/src/blueprint/consts.ts +11 -0
  377. package/src/blueprint/index.ts +6 -0
  378. package/src/blueprint/resolve.ts +133 -0
  379. package/src/blueprint/schemas.ts +44 -0
  380. package/src/blueprint/types.ts +204 -0
  381. package/src/branding.ts +34 -0
  382. package/src/connect/consts.ts +441 -0
  383. package/src/connect/entrypoints.ts +291 -0
  384. package/src/connect/errors.ts +91 -0
  385. package/src/connect/index.ts +7 -0
  386. package/src/connect/ops.ts +208 -0
  387. package/src/connect/references.ts +89 -0
  388. package/src/connect/schemas.ts +384 -0
  389. package/src/connect/types.ts +456 -0
  390. package/src/consts.ts +34 -0
  391. package/src/convert/consts.ts +672 -0
  392. package/src/convert/helpers.ts +340 -0
  393. package/src/convert/index.ts +10 -0
  394. package/src/convert/schemas.ts +663 -0
  395. package/src/convert/types.ts +741 -0
  396. package/src/design/consts.ts +26 -0
  397. package/src/design/helpers.ts +255 -0
  398. package/src/design/index.ts +5 -0
  399. package/src/design/runtime.ts +142 -0
  400. package/src/design/schemas.ts +384 -0
  401. package/src/design/types.ts +191 -0
  402. package/src/dev/consts.ts +35 -0
  403. package/src/dev/index.ts +4 -0
  404. package/src/dev/schemas.ts +124 -0
  405. package/src/dev/types.ts +47 -0
  406. package/src/execution/consts.ts +37 -0
  407. package/src/execution/index.ts +3 -0
  408. package/src/execution/types.ts +55 -0
  409. package/src/index.ts +22 -0
  410. package/src/integrity/consts.ts +477 -0
  411. package/src/integrity/index.ts +3 -0
  412. package/src/integrity/types.ts +37 -0
  413. package/src/integrity/verify.ts +221 -0
  414. package/src/metadata/consts.ts +118 -0
  415. package/src/metadata/index.ts +3 -0
  416. package/src/metadata/types.ts +310 -0
  417. package/src/moderation/consts.ts +59 -0
  418. package/src/moderation/index.ts +4 -0
  419. package/src/moderation/schemas.ts +28 -0
  420. package/src/moderation/types.ts +68 -0
  421. package/src/moderation/utils.ts +35 -0
  422. package/src/preview/consts.ts +9 -0
  423. package/src/preview/index.ts +3 -0
  424. package/src/preview/types.ts +79 -0
  425. package/src/scaffold/consts.ts +26 -0
  426. package/src/scaffold/helpers.ts +84 -0
  427. package/src/scaffold/index.ts +4 -0
  428. package/src/scaffold/schemas.ts +283 -0
  429. package/src/scaffold/types.ts +118 -0
  430. package/src/skills/catalogue.ts +1617 -0
  431. package/src/skills/consts.ts +183 -0
  432. package/src/skills/index.ts +4 -0
  433. package/src/skills/roles.ts +299 -0
  434. package/src/slot/consts.ts +393 -0
  435. package/src/slot/helpers.ts +34 -0
  436. package/src/slot/index.ts +5 -0
  437. package/src/slot/layout.ts +141 -0
  438. package/src/slot/schemas.ts +46 -0
  439. package/src/slot/types.ts +164 -0
  440. package/src/topology/card.ts +106 -0
  441. package/src/topology/consts.ts +59 -0
  442. package/src/topology/helpers.ts +138 -0
  443. package/src/topology/index.ts +5 -0
  444. package/src/topology/types.ts +86 -0
  445. package/src/types.ts +104 -0
  446. package/src/ux/consts.ts +5 -0
  447. package/src/ux/index.ts +4 -0
  448. package/src/ux/schemas.ts +97 -0
  449. package/src/ux/types.ts +25 -0
  450. package/tests/connect-convert.spec.ts +161 -0
  451. package/tests/convert.spec.ts +318 -0
  452. package/tests/design.spec.ts +136 -0
  453. package/tsconfig.json +16 -0
@@ -0,0 +1,630 @@
1
+ /**
2
+ * The conversion vocabulary — what the platform says about an ORIGIN project it did not generate.
3
+ *
4
+ * A converted project has two histories on one volume: the tree somebody else wrote, and the
5
+ * Viable target grown around it. Every layer of the conversion — the library that reads the
6
+ * origin, the agent that runs the stages, the manager API that prices them and the browser that
7
+ * shows the dialog — has to name the same things the same way, so the names live here rather than
8
+ * in whichever package happened to need them first. That is the same reason the slot command
9
+ * vocabulary and the connector protocol sit beside this file: three or four independent runtimes
10
+ * answer them and none of them owns the words.
11
+ *
12
+ * Nothing here is a heuristic and nothing here reads a file. These are enumerations, path layouts
13
+ * and budgets — the parts that must be identical everywhere or the conversion means different
14
+ * things at each hop.
15
+ */
16
+ import { HISTORY_FILE, METADATA_DIRS } from '../metadata/consts.js';
17
+ /**
18
+ * The four stages of a conversion, in order.
19
+ *
20
+ * Each is ONE platform pipeline run and ends at a decision the user makes: intake establishes what
21
+ * the origin IS, analysis restores the specification Viable would have written for it, extraction
22
+ * restores the story list with proofs from the code, and implementation re-implements those
23
+ * stories with the ordinary Viable helpers. A stage is never entered by skipping the one before
24
+ * it ({@link canEnter}) — every stage reads the documents the previous stage wrote.
25
+ */
26
+ export var ConversionStage;
27
+ (function (ConversionStage) {
28
+ ConversionStage["Intake"] = "intake";
29
+ ConversionStage["Analysis"] = "analysis";
30
+ ConversionStage["Extraction"] = "extraction";
31
+ ConversionStage["Implementation"] = "implementation";
32
+ })(ConversionStage || (ConversionStage = {}));
33
+ /**
34
+ * Where a conversion stands.
35
+ *
36
+ * `Awaiting` and `Waiting` are deliberately different words for deliberately different things:
37
+ * `Awaiting` means the platform has finished a stage and is waiting for the USER to decide what
38
+ * happens next, `Waiting` means a run is parked mid-step on an inquiry and will continue by
39
+ * itself the moment somebody answers it. A UI that collapses the two offers a decision button for
40
+ * a run that is not asking for one, and shows a spinner for a run that will never move again.
41
+ */
42
+ export var ConversionStatus;
43
+ (function (ConversionStatus) {
44
+ ConversionStatus["Pending"] = "pending";
45
+ ConversionStatus["Running"] = "running";
46
+ /** A stage finished; the next one starts only on a {@link ConversionDecision}. */
47
+ ConversionStatus["Awaiting"] = "awaiting";
48
+ /** A run is parked on an inquiry — see the connector's inquiry payload. */
49
+ ConversionStatus["Waiting"] = "waiting";
50
+ ConversionStatus["Failed"] = "failed";
51
+ ConversionStatus["Cancelled"] = "cancelled";
52
+ ConversionStatus["Done"] = "done";
53
+ })(ConversionStatus || (ConversionStatus = {}));
54
+ /**
55
+ * What the user decides at a stage boundary.
56
+ *
57
+ * `Leave` is the deliberate terminal of a conversion that keeps the analysis and never
58
+ * re-implements anything — a perfectly ordinary outcome, not a failure. `Retry` re-runs the stage
59
+ * that failed or stalled, and `Cancel` ends the conversion without destroying the project.
60
+ */
61
+ export var ConversionDecision;
62
+ (function (ConversionDecision) {
63
+ ConversionDecision["Analyze"] = "analyze";
64
+ ConversionDecision["Extract"] = "extract";
65
+ ConversionDecision["Implement"] = "implement";
66
+ ConversionDecision["Leave"] = "leave";
67
+ ConversionDecision["Retry"] = "retry";
68
+ ConversionDecision["Cancel"] = "cancel";
69
+ })(ConversionDecision || (ConversionDecision = {}));
70
+ /** Where the origin code came from. Never what the tree IS — that is {@link OriginShape}. */
71
+ export var OriginKind;
72
+ (function (OriginKind) {
73
+ OriginKind["Github"] = "github";
74
+ OriginKind["Local"] = "local";
75
+ })(OriginKind || (OriginKind = {}));
76
+ /**
77
+ * What the origin tree turned out to be.
78
+ *
79
+ * Separate from {@link OriginKind} because the two answer different questions and a single word
80
+ * for both is how a GitHub clone of a Viable project came to be treated as foreign code. `Viable`
81
+ * means the integrity manifest recognises it and the conversion is a REPAIR; `CreateApp` is an
82
+ * OwlMeans scaffold that never became a Viable target; `Foreign` is everything else; `Empty` is a
83
+ * tree with no sources in it at all.
84
+ */
85
+ export var OriginShape;
86
+ (function (OriginShape) {
87
+ OriginShape["Viable"] = "viable";
88
+ OriginShape["CreateApp"] = "create-app";
89
+ OriginShape["Foreign"] = "foreign";
90
+ OriginShape["Empty"] = "empty";
91
+ })(OriginShape || (OriginShape = {}));
92
+ /**
93
+ * Whether the origin sources are still on the volume.
94
+ *
95
+ * `Purged` is not `Absent`: a purged conversion has had its origin deleted on request AND its
96
+ * documents rewritten to stop quoting it, and that is irreversible. `Absent` is simply "not there
97
+ * yet" — the ordinary state before intake clones anything.
98
+ */
99
+ export var OriginState;
100
+ (function (OriginState) {
101
+ OriginState["Absent"] = "absent";
102
+ OriginState["Present"] = "present";
103
+ OriginState["Purged"] = "purged";
104
+ })(OriginState || (OriginState = {}));
105
+ /**
106
+ * The shape of the application, as one of five cases.
107
+ *
108
+ * ONE layer of sub-pipelines and no more. A case decides which taxonomy pipeline reads the origin
109
+ * and which role plan prices it; the STACK decides only which skill pack is loaded as data. Cases
110
+ * multiply the code, stacks multiply a table — which is why there are five of the first and
111
+ * twenty-odd of the second.
112
+ */
113
+ export var ArchitectureCase;
114
+ (function (ArchitectureCase) {
115
+ ArchitectureCase["SpaApi"] = "spa-api";
116
+ ArchitectureCase["SsrMonolith"] = "ssr-monolith";
117
+ ArchitectureCase["ApiOnly"] = "api-only";
118
+ ArchitectureCase["CliPipeline"] = "cli-pipeline";
119
+ /** The origin already IS a Viable target; the conversion repairs it rather than re-deriving it. */
120
+ ArchitectureCase["ViableRepair"] = "viable-repair";
121
+ })(ArchitectureCase || (ArchitectureCase = {}));
122
+ /** The language ecosystem a stack belongs to. */
123
+ export var StackFamily;
124
+ (function (StackFamily) {
125
+ StackFamily["Js"] = "js";
126
+ StackFamily["Java"] = "java";
127
+ StackFamily["Kotlin"] = "kotlin";
128
+ StackFamily["Go"] = "go";
129
+ StackFamily["Python"] = "python";
130
+ StackFamily["Php"] = "php";
131
+ StackFamily["Csharp"] = "csharp";
132
+ StackFamily["Elixir"] = "elixir";
133
+ StackFamily["Ruby"] = "ruby";
134
+ StackFamily["OwlMeans"] = "owlmeans";
135
+ StackFamily["Unknown"] = "unknown";
136
+ })(StackFamily || (StackFamily = {}));
137
+ /**
138
+ * The frameworks the converter carries a skill pack for.
139
+ *
140
+ * DATA, not code: a stack contributes signatures to detection and a short pack of conventions to
141
+ * the prompts, and nothing else branches on it. Adding one is a table entry plus a pack; adding an
142
+ * {@link ArchitectureCase} is a pipeline.
143
+ */
144
+ export var StackId;
145
+ (function (StackId) {
146
+ StackId["NextJs"] = "next";
147
+ StackId["Nuxt"] = "nuxt";
148
+ StackId["ReactSpa"] = "react-spa";
149
+ StackId["VueSpa"] = "vue-spa";
150
+ StackId["AngularSpa"] = "angular-spa";
151
+ StackId["Express"] = "express";
152
+ StackId["Fastify"] = "fastify";
153
+ StackId["NestJs"] = "nest";
154
+ StackId["LangchainJs"] = "langchain-js";
155
+ StackId["SpringBoot"] = "spring-boot";
156
+ StackId["Ktor"] = "ktor";
157
+ StackId["KotlinSpring"] = "kotlin-spring";
158
+ StackId["GoNetHttp"] = "go-net-http";
159
+ StackId["Gin"] = "gin";
160
+ StackId["Echo"] = "echo";
161
+ StackId["Django"] = "django";
162
+ StackId["FastApi"] = "fastapi";
163
+ StackId["Flask"] = "flask";
164
+ StackId["LangchainPy"] = "langchain-py";
165
+ StackId["Laravel"] = "laravel";
166
+ StackId["Symfony"] = "symfony";
167
+ StackId["AspNetCore"] = "aspnet-core";
168
+ StackId["Phoenix"] = "phoenix";
169
+ StackId["Rails"] = "rails";
170
+ StackId["OwlMeansCreateApp"] = "owlmeans-create-app";
171
+ StackId["Viable"] = "viable";
172
+ StackId["Unknown"] = "unknown";
173
+ })(StackId || (StackId = {}));
174
+ /**
175
+ * Stack → family. TOTAL over {@link StackId}, and a test pins it.
176
+ *
177
+ * A partial map with a fall-through default is the same bug the target-role vocabulary carried:
178
+ * every unlisted member answers with whatever the default is, nothing fails, and the answers are
179
+ * simply about another language.
180
+ */
181
+ export const STACK_FAMILY = {
182
+ [StackId.NextJs]: StackFamily.Js,
183
+ [StackId.Nuxt]: StackFamily.Js,
184
+ [StackId.ReactSpa]: StackFamily.Js,
185
+ [StackId.VueSpa]: StackFamily.Js,
186
+ [StackId.AngularSpa]: StackFamily.Js,
187
+ [StackId.Express]: StackFamily.Js,
188
+ [StackId.Fastify]: StackFamily.Js,
189
+ [StackId.NestJs]: StackFamily.Js,
190
+ [StackId.LangchainJs]: StackFamily.Js,
191
+ [StackId.SpringBoot]: StackFamily.Java,
192
+ [StackId.Ktor]: StackFamily.Kotlin,
193
+ [StackId.KotlinSpring]: StackFamily.Kotlin,
194
+ [StackId.GoNetHttp]: StackFamily.Go,
195
+ [StackId.Gin]: StackFamily.Go,
196
+ [StackId.Echo]: StackFamily.Go,
197
+ [StackId.Django]: StackFamily.Python,
198
+ [StackId.FastApi]: StackFamily.Python,
199
+ [StackId.Flask]: StackFamily.Python,
200
+ [StackId.LangchainPy]: StackFamily.Python,
201
+ [StackId.Laravel]: StackFamily.Php,
202
+ [StackId.Symfony]: StackFamily.Php,
203
+ [StackId.AspNetCore]: StackFamily.Csharp,
204
+ [StackId.Phoenix]: StackFamily.Elixir,
205
+ [StackId.Rails]: StackFamily.Ruby,
206
+ [StackId.OwlMeansCreateApp]: StackFamily.OwlMeans,
207
+ [StackId.Viable]: StackFamily.OwlMeans,
208
+ [StackId.Unknown]: StackFamily.Unknown,
209
+ };
210
+ /**
211
+ * Whether the platform will convert this origin at all.
212
+ *
213
+ * `Limited` is not a refusal — it is a conversion that will produce less than a whole one, and the
214
+ * user is told which parts before they pay for it.
215
+ */
216
+ export var ConvertibilityVerdict;
217
+ (function (ConvertibilityVerdict) {
218
+ ConvertibilityVerdict["Ready"] = "ready";
219
+ ConvertibilityVerdict["Limited"] = "limited";
220
+ ConvertibilityVerdict["Refused"] = "refused";
221
+ })(ConvertibilityVerdict || (ConvertibilityVerdict = {}));
222
+ /** Why a {@link ConvertibilityVerdict} is not `Ready`. Every one of them is shown to the user. */
223
+ export var ConvertibilityReason;
224
+ (function (ConvertibilityReason) {
225
+ ConvertibilityReason["Empty"] = "empty";
226
+ ConvertibilityReason["NoSources"] = "no-sources";
227
+ ConvertibilityReason["TooLarge"] = "too-large";
228
+ ConvertibilityReason["UnknownStack"] = "unknown-stack";
229
+ /** A workspace member or a directory nothing declares — its code would be read as orphaned. */
230
+ ConvertibilityReason["UnlinkedSubproject"] = "unlinked-subproject";
231
+ ConvertibilityReason["MissingSubmodule"] = "missing-submodule";
232
+ ConvertibilityReason["BinaryOnly"] = "binary-only";
233
+ ConvertibilityReason["Encrypted"] = "encrypted";
234
+ ConvertibilityReason["AlreadyConverted"] = "already-converted";
235
+ })(ConvertibilityReason || (ConvertibilityReason = {}));
236
+ /** What a file in the origin is, as far as the census can tell from its path and its head. */
237
+ export var FileClass;
238
+ (function (FileClass) {
239
+ FileClass["Source"] = "source";
240
+ FileClass["Config"] = "config";
241
+ FileClass["Manifest"] = "manifest";
242
+ FileClass["Doc"] = "doc";
243
+ FileClass["Style"] = "style";
244
+ FileClass["Template"] = "template";
245
+ FileClass["Test"] = "test";
246
+ FileClass["Data"] = "data";
247
+ FileClass["Binary"] = "binary";
248
+ FileClass["Lock"] = "lock";
249
+ FileClass["Generated"] = "generated";
250
+ FileClass["Unknown"] = "unknown";
251
+ })(FileClass || (FileClass = {}));
252
+ /** Size bands: `< 2 KB`, `< 32 KB`, `< 256 KB`, `< 2 MB`, `>= 2 MB`. See {@link SIZE_CLASS_BOUNDS}. */
253
+ export var SizeClass;
254
+ (function (SizeClass) {
255
+ SizeClass["Tiny"] = "tiny";
256
+ SizeClass["Small"] = "small";
257
+ SizeClass["Medium"] = "medium";
258
+ SizeClass["Large"] = "large";
259
+ SizeClass["Huge"] = "huge";
260
+ })(SizeClass || (SizeClass = {}));
261
+ /** How readable a file's head is — the cheap stand-in for "is this text a model can use". */
262
+ export var EntropyClass;
263
+ (function (EntropyClass) {
264
+ EntropyClass["Text"] = "text";
265
+ /** Printable, but minified, base64-ish or otherwise not prose the model can reason over. */
266
+ EntropyClass["Dense"] = "dense";
267
+ EntropyClass["Opaque"] = "opaque";
268
+ })(EntropyClass || (EntropyClass = {}));
269
+ /** What a data file in the origin is for. */
270
+ export var DumpKind;
271
+ (function (DumpKind) {
272
+ /** Small and referenced by the code — the data the app needs to make sense. Carried over. */
273
+ DumpKind["Seed"] = "seed";
274
+ /** A large export. Sampled, described, never carried. */
275
+ DumpKind["Bulk"] = "bulk";
276
+ DumpKind["Fixture"] = "fixture";
277
+ DumpKind["Migration"] = "migration";
278
+ })(DumpKind || (DumpKind = {}));
279
+ /** How the origin declares its packages, when it has more than one. */
280
+ export var WorkspaceKind;
281
+ (function (WorkspaceKind) {
282
+ WorkspaceKind["Single"] = "single";
283
+ WorkspaceKind["BunWorkspaces"] = "bun";
284
+ WorkspaceKind["PnpmWorkspaces"] = "pnpm";
285
+ WorkspaceKind["YarnWorkspaces"] = "yarn";
286
+ WorkspaceKind["Lerna"] = "lerna";
287
+ WorkspaceKind["Nx"] = "nx";
288
+ WorkspaceKind["Turbo"] = "turbo";
289
+ WorkspaceKind["GoWork"] = "go-work";
290
+ WorkspaceKind["Maven"] = "maven";
291
+ WorkspaceKind["Gradle"] = "gradle";
292
+ })(WorkspaceKind || (WorkspaceKind = {}));
293
+ /**
294
+ * The layers a taxonomy pass reads out of the origin, one model call each.
295
+ *
296
+ * Ordered by what a later layer needs from an earlier one ({@link TAXONOMY_ORDER}): types before
297
+ * the resources that store them, resources before the models that compose them, screens before
298
+ * the navigation that addresses them.
299
+ */
300
+ export var TaxonomyKind;
301
+ (function (TaxonomyKind) {
302
+ TaxonomyKind["Type"] = "type";
303
+ TaxonomyKind["Resource"] = "resource";
304
+ TaxonomyKind["Model"] = "model";
305
+ TaxonomyKind["Service"] = "service";
306
+ TaxonomyKind["ViewModel"] = "view-model";
307
+ TaxonomyKind["Component"] = "component";
308
+ TaxonomyKind["Layout"] = "layout";
309
+ TaxonomyKind["Screen"] = "screen";
310
+ TaxonomyKind["Navigation"] = "navigation";
311
+ TaxonomyKind["Endpoint"] = "endpoint";
312
+ TaxonomyKind["Job"] = "job";
313
+ })(TaxonomyKind || (TaxonomyKind = {}));
314
+ /** The order the taxonomy layers are read in. A permutation of {@link TaxonomyKind}; a test pins it. */
315
+ export const TAXONOMY_ORDER = [
316
+ TaxonomyKind.Type,
317
+ TaxonomyKind.Resource,
318
+ TaxonomyKind.Model,
319
+ TaxonomyKind.Service,
320
+ TaxonomyKind.ViewModel,
321
+ TaxonomyKind.Component,
322
+ TaxonomyKind.Layout,
323
+ TaxonomyKind.Screen,
324
+ TaxonomyKind.Navigation,
325
+ TaxonomyKind.Endpoint,
326
+ TaxonomyKind.Job,
327
+ ];
328
+ /**
329
+ * Where the answer to "what is this application for" came from, best first.
330
+ *
331
+ * It is recorded because the confidence of the whole analysis follows from it: a purpose read out
332
+ * of a written harness is a statement of intent, one inferred from screen labels is a guess.
333
+ */
334
+ export var PurposeEvidenceSource;
335
+ (function (PurposeEvidenceSource) {
336
+ PurposeEvidenceSource["Harness"] = "harness";
337
+ PurposeEvidenceSource["Checks"] = "checks";
338
+ PurposeEvidenceSource["Ui"] = "ui";
339
+ PurposeEvidenceSource["Jobs"] = "jobs";
340
+ PurposeEvidenceSource["Manifest"] = "manifest";
341
+ })(PurposeEvidenceSource || (PurposeEvidenceSource = {}));
342
+ /** The input slices a cost estimate projects a stage's token spend from. */
343
+ export var EstimateSlice;
344
+ (function (EstimateSlice) {
345
+ EstimateSlice["Manifests"] = "manifests";
346
+ EstimateSlice["Harness"] = "harness";
347
+ EstimateSlice["Sources"] = "sources";
348
+ EstimateSlice["Styles"] = "styles";
349
+ EstimateSlice["Config"] = "config";
350
+ EstimateSlice["Taxonomy"] = "taxonomy";
351
+ EstimateSlice["Spec"] = "spec";
352
+ EstimateSlice["StoryList"] = "story-list";
353
+ EstimateSlice["OriginCard"] = "origin-card";
354
+ /** A fixed per-call overhead that does not scale with the origin. */
355
+ EstimateSlice["Fixed"] = "fixed";
356
+ })(EstimateSlice || (EstimateSlice = {}));
357
+ /**
358
+ * Where the origin's own sources live inside the target's volume.
359
+ *
360
+ * One directory, at the sandbox root, named so nothing a generator writes can collide with it.
361
+ * Everything that walks the tree must skip it — the source listing, the file watcher, every build,
362
+ * and the placeholder walk an initialization does — or the origin is compiled, watched and
363
+ * type-checked as if it were the generated application.
364
+ */
365
+ export const CONVERTED_ORIGIN_DIR = '__viable_converted';
366
+ /**
367
+ * Directories excluded from every source listing of a target project.
368
+ *
369
+ * ONE constant, spread by the library-local helper, the publisher and the connector SDK executor.
370
+ * Three copies of this list is three chances for one of them to keep listing the origin, and the
371
+ * symptom is a coder helper reading a foreign framework's files as if they were the target's.
372
+ */
373
+ export const SOURCE_LIST_EXCLUSIONS = [...METADATA_DIRS, CONVERTED_ORIGIN_DIR];
374
+ /**
375
+ * What stays at the project root through a relocation AND through an initialization, whatever
376
+ * the caller names.
377
+ *
378
+ * These three belong to the SLOT, not to the project inside it: the git repository every rollback
379
+ * works through, the metadata file the publisher configures itself from, and the project's own
380
+ * rolling history — which is NESTED, and therefore the reason both operations run through a prune
381
+ * walk rather than over a `readdir`.
382
+ *
383
+ * ONE list, for the same reason as {@link SOURCE_LIST_EXCLUSIONS}: the publisher and the library
384
+ * helper act on the SAME volume, and two hand-synced copies is two chances for them to disagree
385
+ * about the same three paths. They did — a conversion's `relocate` carefully preserved the
386
+ * developer's `.git` and the `initializeProject` one step later deleted it, removing the only
387
+ * rollback path with nothing failing.
388
+ *
389
+ * The connector's local helper deliberately keeps a DIFFERENT set: it empties a directory the
390
+ * developer owns rather than a volume the platform owns, so `.viable/` and the `.env` files the
391
+ * platform cannot re-derive are in it and `sandbox-meta.json`, which no local project has, is not.
392
+ */
393
+ export const RELOCATE_ALWAYS_KEEP = ['.git', 'sandbox-meta.json', HISTORY_FILE];
394
+ /**
395
+ * The pipeline alias prefixes a conversion run carries.
396
+ *
397
+ * Two, because a conversion is a platform pipeline that composes library pipelines as steps: the
398
+ * platform's own runs are `vib:project:convert:<stage>` and the library's are `vib:convert:<name>`.
399
+ * Anything filtering progress by pipeline — the browser's thinking journal, the reconciler's run
400
+ * lookup — must match on BOTH, or half of a conversion's progress is invisible.
401
+ */
402
+ export const CONVERSION_PIPELINE_PREFIXES = ['vib:project:convert:', 'vib:convert:'];
403
+ /**
404
+ * Where a conversion's documents live inside the target project.
405
+ *
406
+ * Under `docs/`, beside the metadata an ordinary project carries, because they are the same kind
407
+ * of thing: markdown the pipeline writes and the next pipeline reads back. They are the ONLY
408
+ * durable record of what the origin was — a purge deletes the origin sources, and after it these
409
+ * documents are what remains.
410
+ */
411
+ export const CONVERSION_DIR = 'docs/conversion';
412
+ export const CONVERSION_INDEX_FILE = `${CONVERSION_DIR}/README.md`;
413
+ export const CONVERSION_INVENTORY_FILE = `${CONVERSION_DIR}/inventory.md`;
414
+ export const CONVERSION_STACK_FILE = `${CONVERSION_DIR}/stack.md`;
415
+ export const CONVERSION_ARCHITECTURE_FILE = `${CONVERSION_DIR}/architecture.md`;
416
+ export const CONVERSION_HARNESS_FILE = `${CONVERSION_DIR}/harness.md`;
417
+ export const CONVERSION_TAXONOMY_FILE = `${CONVERSION_DIR}/taxonomy.md`;
418
+ export const CONVERSION_PURPOSE_FILE = `${CONVERSION_DIR}/purpose.md`;
419
+ export const CONVERSION_DESIGN_FILE = `${CONVERSION_DIR}/design.md`;
420
+ export const CONVERSION_ANALYSIS_FILE = `${CONVERSION_DIR}/analysis.md`;
421
+ export const CONVERSION_STORY_LIST_FILE = `${CONVERSION_DIR}/story-list.md`;
422
+ export const CONVERSION_FLOWS_FILE = `${CONVERSION_DIR}/flows.md`;
423
+ export const CONVERSION_AREAS_FILE = `${CONVERSION_DIR}/areas.md`;
424
+ export const CONVERSION_SCAFFOLD_FILE = `${CONVERSION_DIR}/scaffold.md`;
425
+ export const CONVERSION_STRUCTURE_FILE = `${CONVERSION_DIR}/structure.md`;
426
+ export const CONVERSION_ESTIMATE_FILE = `${CONVERSION_DIR}/estimate.md`;
427
+ export const CONVERSION_ASSUMPTIONS_FILE = `${CONVERSION_DIR}/assumptions.md`;
428
+ export const CONVERSION_INQUIRIES_FILE = `${CONVERSION_DIR}/inquiries.md`;
429
+ export const CONVERSION_DUMPS_FILE = `${CONVERSION_DIR}/dumps.md`;
430
+ export const CONVERSION_ORIGIN_CARD_FILE = `${CONVERSION_DIR}/origin.md`;
431
+ /** One document per extracted story, named by the platform's story code. */
432
+ export const CONVERSION_STORY_DIR = `${CONVERSION_DIR}/stories`;
433
+ /** One document per carried seed file, describing what it is and how to load it. */
434
+ export const CONVERSION_SEED_DIR = `${CONVERSION_DIR}/seed`;
435
+ /** The carried seed data itself, beside its description. */
436
+ export const CONVERSION_SEED_DATA_DIR = `${CONVERSION_SEED_DIR}/data`;
437
+ export const conversionStoryDoc = (code) => `${CONVERSION_STORY_DIR}/${code}.md`;
438
+ export const conversionSeedDoc = (name) => `${CONVERSION_SEED_DIR}/${name}.md`;
439
+ export const conversionSeedData = (name, ext) => `${CONVERSION_SEED_DATA_DIR}/${name}.${ext}`;
440
+ /**
441
+ * The two agent-memory nodes a conversion writes into the TARGET's own harness.
442
+ *
443
+ * Flat files, not a directory: the target's agent-memory harness states that the graph structure
444
+ * lives in scopes and wiki-links rather than in subdirectories, and that harness is read by the
445
+ * user's own agents inside the slot.
446
+ */
447
+ export const CONVERSION_MEMORY_FILE = '.agents/memory/conversion.md';
448
+ export const CONVERSION_ORIGIN_MAP_FILE = '.agents/memory/conversion-origin.md';
449
+ /** Every FIXED conversion document. The per-story and per-seed ones are named by their helpers. */
450
+ export const CONVERSION_DOCS = [
451
+ CONVERSION_INDEX_FILE,
452
+ CONVERSION_INVENTORY_FILE,
453
+ CONVERSION_STACK_FILE,
454
+ CONVERSION_ARCHITECTURE_FILE,
455
+ CONVERSION_HARNESS_FILE,
456
+ CONVERSION_TAXONOMY_FILE,
457
+ CONVERSION_PURPOSE_FILE,
458
+ CONVERSION_DESIGN_FILE,
459
+ CONVERSION_ANALYSIS_FILE,
460
+ CONVERSION_STORY_LIST_FILE,
461
+ CONVERSION_FLOWS_FILE,
462
+ CONVERSION_AREAS_FILE,
463
+ CONVERSION_SCAFFOLD_FILE,
464
+ CONVERSION_STRUCTURE_FILE,
465
+ CONVERSION_ESTIMATE_FILE,
466
+ CONVERSION_ASSUMPTIONS_FILE,
467
+ CONVERSION_INQUIRIES_FILE,
468
+ CONVERSION_DUMPS_FILE,
469
+ CONVERSION_ORIGIN_CARD_FILE,
470
+ ];
471
+ /** The memory nodes a conversion owns in the target's harness. */
472
+ export const CONVERSION_MEMORY = [
473
+ CONVERSION_MEMORY_FILE, CONVERSION_ORIGIN_MAP_FILE,
474
+ ];
475
+ /**
476
+ * Everything a conversion OWNS on the volume — the documents and the two memory nodes.
477
+ *
478
+ * One list, because two consumers must agree about it and each of them is a wipe: the relocation
479
+ * keeps these at the root when it files the origin away, and the initialization one step later
480
+ * must leave the same set alone. A conversion writes its taxonomy, its restored specification and
481
+ * its per-story proofs BEFORE the target exists — the analysis is what decides there is a target
482
+ * worth laying down — so a second, hand-kept copy of this list is a document that survives the
483
+ * relocation and not the install, which is hours of model calls thrown away with nothing failing.
484
+ */
485
+ export const CONVERSION_ARTIFACTS = [
486
+ CONVERSION_DIR, ...CONVERSION_MEMORY,
487
+ ];
488
+ /** The frontmatter version every conversion document carries, so a reader can refuse an old one. */
489
+ export const CONVERSION_DOC_VERSION = 1;
490
+ // --- budgets ------------------------------------------------------------------------------
491
+ //
492
+ // Every one of these bounds something an origin controls the size of. An origin is a repository a
493
+ // stranger wrote: it may hold a hundred thousand files, a gigabyte of exports, or one minified
494
+ // bundle. A pass with no ceiling is a pass whose cost and duration are set by the input rather
495
+ // than by the platform, which is how a conversion of a large monorepo becomes an unbounded bill.
496
+ /** Entries the census walks before it stops and reports itself truncated. */
497
+ export const CENSUS_MAX_ENTRIES = 20_000;
498
+ /** Files the census opens. Everything else is classified from its path and its size alone. */
499
+ export const CENSUS_READ_FILES = 400;
500
+ /** Total bytes the census reads across those files. */
501
+ export const CENSUS_READ_BYTES = 6_000_000;
502
+ /** Bytes read from the head of one file — enough to classify it, never enough to hold it. */
503
+ export const CENSUS_HEAD_BYTES = 4096;
504
+ /**
505
+ * The most one `readHead` may allocate, whatever the caller asked for.
506
+ *
507
+ * A head is read to CLASSIFY a file — the census reads {@link CENSUS_HEAD_BYTES} of it, a dump
508
+ * sample four times that — so a caller asking for megabytes has misunderstood the command rather
509
+ * than needed them, and honouring it would allocate that much before the read, inside a slot pod
510
+ * or on a developer's machine, for a file that may be shorter than the request.
511
+ */
512
+ export const CENSUS_MAX_HEAD_BYTES = 1_048_576;
513
+ /**
514
+ * How much of a file is read to decide whether it is binary.
515
+ *
516
+ * Smaller than {@link CENSUS_HEAD_BYTES} because the question is smaller: a NUL byte near the
517
+ * beginning, which is git's own heuristic and the one signal that separates bytes a model can be
518
+ * handed from bytes that would arrive as replacement characters.
519
+ */
520
+ export const BINARY_PROBE_BYTES = 512;
521
+ /**
522
+ * Directories a census walk never descends into.
523
+ *
524
+ * ONE constant, spread by the library-local helper, the publisher and the connector SDK executor,
525
+ * because the three of them answer the SAME question about the same tree and a caller cannot tell
526
+ * which one produced the listing it is holding — so a directory skipped by one and walked by
527
+ * another means one repository has two different `total`s.
528
+ *
529
+ * Deliberately not {@link SOURCE_LIST_EXCLUSIONS}: a census is asked what the tree HOLDS, so it
530
+ * reports the metadata and the converted origin that a coder's source listing hides. What it must
531
+ * never walk is what a package manager or a build put there, and only `node_modules` and `.git`
532
+ * are that in every repository — `dist`, `build` and `.next` are ordinary directory names an
533
+ * origin may keep sources in, and skipping them silently subtracted files from the census of a
534
+ * repository nobody here wrote.
535
+ */
536
+ export const CENSUS_SKIP_DIRS = ['node_modules', '.git'];
537
+ /** The upper bounds of every {@link SizeClass} but `Huge`, which is everything above the last. */
538
+ export const SIZE_CLASS_BOUNDS = {
539
+ [SizeClass.Tiny]: 2_048,
540
+ [SizeClass.Small]: 32_768,
541
+ [SizeClass.Medium]: 262_144,
542
+ [SizeClass.Large]: 2_097_152,
543
+ };
544
+ /** Above this a data file is a {@link DumpKind.Bulk} export, never a seed the target carries. */
545
+ export const SEED_MAX_BYTES = 262_144;
546
+ /** Bytes read from a dump to describe it. */
547
+ export const DUMP_SAMPLE_BYTES = 16_384;
548
+ /** Lines of that sample kept in the document. */
549
+ export const DUMP_SAMPLE_LINES = 20;
550
+ /** At or above this, a data file is reported as a bulk export even where its path looks like seed. */
551
+ export const BULK_DUMP_MIN_BYTES = 1_000_000;
552
+ /** Distinct extensions reported in the inventory document. */
553
+ export const TOP_EXTENSIONS = 30;
554
+ /** Files one taxonomy layer samples, and the characters those samples may total. */
555
+ export const TAXONOMY_SAMPLE_FILES = 60;
556
+ export const TAXONOMY_SAMPLE_CHARS = 120_000;
557
+ /**
558
+ * The ceiling on the origin card — the standing description of the origin every coder prompt
559
+ * carries once a conversion has produced one.
560
+ *
561
+ * It rides on EVERY generation call of the implementation stage, so its size is multiplied by the
562
+ * number of calls a conversion makes. Enforced by truncation after the card is composed, never by
563
+ * asking a model to obey a limit.
564
+ */
565
+ export const ORIGIN_CARD_MAX_CHARS = 6000;
566
+ /** The ceiling on one stack's skill pack, for the same reason. */
567
+ export const STACK_PACK_MAX_CHARS = 2400;
568
+ /** The estimator's crude token conversion, and the input it assumes it reads of a source tree. */
569
+ export const CHARS_PER_TOKEN = 4;
570
+ export const SOURCE_SAMPLE_RATIO = 0.35;
571
+ /** What the estimator adds for the retries a model pass normally makes. */
572
+ export const RETRY_FACTOR = 1.15;
573
+ export const ESTIMATE_VERSION = 1;
574
+ /**
575
+ * The per-story price band shown before the implementation stage starts.
576
+ *
577
+ * A BAND and not a number: a story's cost is set by how much code it turns out to need, which is
578
+ * exactly what nothing knows before it is written. Shown with a disclaimer saying so.
579
+ */
580
+ export const STORY_BAND_MIN_USD = 2;
581
+ export const STORY_BAND_MAX_USD = 5;
582
+ /** Below this, a purpose inference is reported as a guess and the user is asked to confirm it. */
583
+ export const PURPOSE_CONFIDENCE_FLOOR = 0.4;
584
+ /**
585
+ * The ceiling on an inquiry answer stored in a PIPELINE STATE.
586
+ *
587
+ * Pipeline state is keys, not content: a run's state is written back at every step boundary and a
588
+ * couple of long free-text answers is all it takes to stop that being true. The answer's full text
589
+ * goes to `docs/conversion/inquiries.md`, keyed by the inquiry id, and the state keeps a scalar.
590
+ *
591
+ * ONE ceiling for the whole stack, exactly as {@link CONNECT_INQUIRY_MAX_TEXT} is: the twin is
592
+ * `INQUIRY_STATE_TEXT_CHARS` in `@owlmeans/llm-common`, and the two must stay equal. The runtime
593
+ * truncates with its own copy and this package's documents are written against this one, so a
594
+ * disagreement means a state saying one thing and the document beside it saying another.
595
+ */
596
+ export const INQUIRY_STATE_TEXT_CHARS = 200;
597
+ /** The ceiling on an error message recorded on the conversion record. */
598
+ export const CONVERSION_ERROR_CAP = 500;
599
+ /** Assumptions kept on the conversion record; the rest live in `docs/conversion/assumptions.md`. */
600
+ export const CONVERSION_ASSUMPTION_CAP = 40;
601
+ /**
602
+ * How deep intake clones an origin repository.
603
+ *
604
+ * One commit. A conversion reads the tree as it is now and has no use for its history, and a full
605
+ * clone of a long-lived repository is minutes of network and a volume's worth of pack files.
606
+ */
607
+ export const CONVERT_CLONE_DEPTH = 1;
608
+ /** The stages in order. The single source for {@link canEnter} and the stage ladder. */
609
+ export const CONVERSION_STAGE_ORDER = [
610
+ ConversionStage.Intake,
611
+ ConversionStage.Analysis,
612
+ ConversionStage.Extraction,
613
+ ConversionStage.Implementation,
614
+ ];
615
+ /**
616
+ * The inquiry ids a conversion can ask under.
617
+ *
618
+ * Stable strings, because an answer is recorded against one and re-read on a resume: renaming an
619
+ * id orphans every answer already given under it.
620
+ */
621
+ export const CONVERSION_INQUIRY = {
622
+ workspaceUnlinked: 'convert.workspace.unlinked',
623
+ seedCarry: 'convert.seed.carry',
624
+ verdictLimited: 'convert.verdict.limited',
625
+ purposeConfirm: 'convert.purpose.confirm',
626
+ caseConfirm: 'convert.case.confirm',
627
+ areasMap: 'convert.areas.map',
628
+ originRelocate: 'convert.origin.relocate',
629
+ };
630
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/convert/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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