@wenathlan/saddle 1.8.18 → 2.0.2

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 (802) hide show
  1. package/Dockerfile +1339 -0
  2. package/README.md +33 -12
  3. package/alternatives.ts +1218 -0
  4. package/biome.json +153 -0
  5. package/boards.json +1517 -0
  6. package/compute.ts +3144 -0
  7. package/cores.json +1801 -0
  8. package/dist/acquisition.d.ts +359 -0
  9. package/dist/acquisition.d.ts.map +1 -0
  10. package/dist/acquisition.js +629 -0
  11. package/dist/acquisition.js.map +1 -0
  12. package/dist/alternatives.d.ts +509 -0
  13. package/dist/alternatives.d.ts.map +1 -0
  14. package/dist/alternatives.js +951 -0
  15. package/dist/alternatives.js.map +1 -0
  16. package/dist/automation.d.ts +426 -0
  17. package/dist/automation.d.ts.map +1 -0
  18. package/dist/automation.js +561 -0
  19. package/dist/automation.js.map +1 -0
  20. package/dist/browser.d.ts +562 -0
  21. package/dist/browser.d.ts.map +1 -0
  22. package/dist/browser.js +1057 -0
  23. package/dist/browser.js.map +1 -0
  24. package/dist/capacitor.config.d.ts +13 -0
  25. package/dist/capacitor.config.d.ts.map +1 -0
  26. package/dist/capacitor.config.js +26 -0
  27. package/dist/capacitor.config.js.map +1 -0
  28. package/dist/cli.d.ts +17 -0
  29. package/dist/cli.d.ts.map +1 -0
  30. package/dist/cli.js +111 -0
  31. package/dist/cli.js.map +1 -0
  32. package/dist/communication.d.ts +192 -0
  33. package/dist/communication.d.ts.map +1 -0
  34. package/dist/communication.js +418 -0
  35. package/dist/communication.js.map +1 -0
  36. package/dist/compute.d.ts +1161 -0
  37. package/dist/compute.d.ts.map +1 -0
  38. package/dist/compute.js +2273 -0
  39. package/dist/compute.js.map +1 -0
  40. package/dist/distribution.d.ts +529 -0
  41. package/dist/distribution.d.ts.map +1 -0
  42. package/dist/distribution.js +811 -0
  43. package/dist/distribution.js.map +1 -0
  44. package/dist/execution.d.ts +530 -0
  45. package/dist/execution.d.ts.map +1 -0
  46. package/dist/execution.js +761 -0
  47. package/dist/execution.js.map +1 -0
  48. package/dist/format.d.ts +19 -0
  49. package/dist/format.d.ts.map +1 -0
  50. package/dist/format.js +60 -0
  51. package/dist/format.js.map +1 -0
  52. package/dist/foundation.d.ts +176 -0
  53. package/dist/foundation.d.ts.map +1 -0
  54. package/dist/foundation.js +309 -0
  55. package/dist/foundation.js.map +1 -0
  56. package/dist/index.d.ts +733 -123
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +1018 -123
  59. package/dist/index.js.map +1 -1
  60. package/dist/integration.d.ts +236 -0
  61. package/dist/integration.d.ts.map +1 -0
  62. package/dist/integration.js +236 -0
  63. package/dist/integration.js.map +1 -0
  64. package/dist/intelligence.d.ts +94 -0
  65. package/dist/intelligence.d.ts.map +1 -0
  66. package/dist/intelligence.js +145 -0
  67. package/dist/intelligence.js.map +1 -0
  68. package/dist/{isolation/contracts.d.ts → isolation.d.ts} +12 -1
  69. package/dist/isolation.d.ts.map +1 -0
  70. package/dist/{isolation/contracts.js → isolation.js} +13 -1
  71. package/dist/isolation.js.map +1 -0
  72. package/dist/media.d.ts +344 -0
  73. package/dist/media.d.ts.map +1 -0
  74. package/dist/media.js +986 -0
  75. package/dist/media.js.map +1 -0
  76. package/dist/modes.d.ts +359 -0
  77. package/dist/modes.d.ts.map +1 -0
  78. package/dist/modes.js +134 -0
  79. package/dist/modes.js.map +1 -0
  80. package/dist/{library/public.d.ts → operations.d.ts} +15 -1
  81. package/dist/operations.d.ts.map +1 -0
  82. package/dist/{library/public.js → operations.js} +18 -7
  83. package/dist/operations.js.map +1 -0
  84. package/dist/orchestrator.d.ts +1339 -0
  85. package/dist/orchestrator.d.ts.map +1 -0
  86. package/dist/orchestrator.js +4308 -0
  87. package/dist/orchestrator.js.map +1 -0
  88. package/dist/performance.d.ts +416 -0
  89. package/dist/performance.d.ts.map +1 -0
  90. package/dist/performance.js +827 -0
  91. package/dist/performance.js.map +1 -0
  92. package/dist/quantum.d.ts +810 -0
  93. package/dist/quantum.d.ts.map +1 -0
  94. package/dist/quantum.js +2073 -0
  95. package/dist/quantum.js.map +1 -0
  96. package/dist/render.d.ts +381 -0
  97. package/dist/render.d.ts.map +1 -0
  98. package/dist/render.js +1073 -0
  99. package/dist/render.js.map +1 -0
  100. package/dist/scheduler.d.ts +596 -0
  101. package/dist/scheduler.d.ts.map +1 -0
  102. package/dist/scheduler.js +1259 -0
  103. package/dist/scheduler.js.map +1 -0
  104. package/dist/security.d.ts +501 -0
  105. package/dist/security.d.ts.map +1 -0
  106. package/dist/security.js +1170 -0
  107. package/dist/security.js.map +1 -0
  108. package/dist/server.d.ts +21 -0
  109. package/dist/server.d.ts.map +1 -0
  110. package/dist/{server/node.js → server.js} +16 -2
  111. package/dist/server.js.map +1 -0
  112. package/dist/tiers.d.ts +1002 -0
  113. package/dist/tiers.d.ts.map +1 -0
  114. package/dist/tiers.js +2165 -0
  115. package/dist/tiers.js.map +1 -0
  116. package/dist/virtual.d.ts +641 -0
  117. package/dist/virtual.d.ts.map +1 -0
  118. package/dist/virtual.js +1285 -0
  119. package/dist/virtual.js.map +1 -0
  120. package/dist/virtualcpu.d.ts +316 -0
  121. package/dist/virtualcpu.d.ts.map +1 -0
  122. package/dist/virtualcpu.js +1180 -0
  123. package/dist/virtualcpu.js.map +1 -0
  124. package/dist/virtualgpu.d.ts +345 -0
  125. package/dist/virtualgpu.d.ts.map +1 -0
  126. package/dist/virtualgpu.js +1000 -0
  127. package/dist/virtualgpu.js.map +1 -0
  128. package/dist/virtualization.d.ts +607 -0
  129. package/dist/virtualization.d.ts.map +1 -0
  130. package/dist/virtualization.js +1187 -0
  131. package/dist/virtualization.js.map +1 -0
  132. package/dist/virtualmemory.d.ts +818 -0
  133. package/dist/virtualmemory.d.ts.map +1 -0
  134. package/dist/virtualmemory.js +1796 -0
  135. package/dist/virtualmemory.js.map +1 -0
  136. package/dist/webscrape.d.ts +720 -0
  137. package/dist/webscrape.d.ts.map +1 -0
  138. package/dist/webscrape.js +2697 -0
  139. package/dist/webscrape.js.map +1 -0
  140. package/docker.config +769 -0
  141. package/docs/CONVERSA.txt +1523 -0
  142. package/docs/alternatives.md +499 -0
  143. package/docs/architecture-1.8.19.md +76 -0
  144. package/docs/architecture-1.8.19.mmd +33 -0
  145. package/docs/architecture-1.8.19.png +0 -0
  146. package/docs/architecture.md +355 -0
  147. package/docs/brancharchive-2026-08-18.md +18 -0
  148. package/docs/browser.md +7 -0
  149. package/docs/consolidation.md +70 -0
  150. package/docs/e2ugh-engine.md +528 -0
  151. package/{dist/examples/localjob.js → docs/example-localjob.ts} +3 -3
  152. package/{dist/examples/publicapi.js → docs/example-publicapi.ts} +2 -2
  153. package/docs/hardware.md +342 -0
  154. package/docs/optimization.md +126 -0
  155. package/docs/performance.md +499 -0
  156. package/docs/planning.1.8.18.md +94 -0
  157. package/docs/planning.1.8.19.md +49 -0
  158. package/docs/releasenotes-1.8.19.md +35 -0
  159. package/docs/research-1.8.19-virtual-browser.md +27 -0
  160. package/docs/security.md +454 -0
  161. package/docs/todo-1.8.18.md +12 -0
  162. package/docs/todo-1.8.19.md +241 -0
  163. package/docs/viability.md +777 -0
  164. package/docs/virtualization.md +335 -0
  165. package/docs/web-duplicatecleanup.md +9 -0
  166. package/docs/web-ideas.md +106 -0
  167. package/docs/workflowimprovements-2026-08-19.md +70 -0
  168. package/gpumonitor.cpp +1543 -0
  169. package/gpus.json +2408 -0
  170. package/index.ts +1478 -0
  171. package/media.ts +1337 -0
  172. package/mttg.config +1549 -0
  173. package/orchestrator.ts +5462 -0
  174. package/package.json +304 -56
  175. package/passage.config +1331 -0
  176. package/performance.ts +1049 -0
  177. package/processors.json +2217 -0
  178. package/qemu.config +1062 -0
  179. package/qemubridge.py +1340 -0
  180. package/quantum.ts +2393 -0
  181. package/render.ts +1325 -0
  182. package/scheduler.ts +1600 -0
  183. package/security.ts +1449 -0
  184. package/tiers.ts +2871 -0
  185. package/tsconfig.json +29 -0
  186. package/virtualcpu.ts +1273 -0
  187. package/virtualgpu.ts +1181 -0
  188. package/virtualhardware.c +1011 -0
  189. package/virtualhardware.json +739 -0
  190. package/virtualization.ts +1628 -0
  191. package/virtualizationcore.cpp +4635 -0
  192. package/virtualmemory.ts +2303 -0
  193. package/vm.config.json +1910 -0
  194. package/{extension → web/extension}/manifest.json +1 -1
  195. package/web/readme.md +382 -0
  196. package/web/tsconfig.json +25 -0
  197. package/dist/adapters/forge.d.ts +0 -17
  198. package/dist/adapters/forge.d.ts.map +0 -1
  199. package/dist/adapters/forge.js +0 -19
  200. package/dist/adapters/forge.js.map +0 -1
  201. package/dist/adapters/forgejo.d.ts +0 -49
  202. package/dist/adapters/forgejo.d.ts.map +0 -1
  203. package/dist/adapters/forgejo.js +0 -8
  204. package/dist/adapters/forgejo.js.map +0 -1
  205. package/dist/adapters/github.d.ts +0 -12
  206. package/dist/adapters/github.d.ts.map +0 -1
  207. package/dist/adapters/github.js +0 -20
  208. package/dist/adapters/github.js.map +0 -1
  209. package/dist/adapters/gitlab.d.ts +0 -17
  210. package/dist/adapters/gitlab.d.ts.map +0 -1
  211. package/dist/adapters/gitlab.js +0 -10
  212. package/dist/adapters/gitlab.js.map +0 -1
  213. package/dist/adapters/huggingface.d.ts +0 -17
  214. package/dist/adapters/huggingface.d.ts.map +0 -1
  215. package/dist/adapters/huggingface.js +0 -6
  216. package/dist/adapters/huggingface.js.map +0 -1
  217. package/dist/adapters/socket.d.ts +0 -11
  218. package/dist/adapters/socket.d.ts.map +0 -1
  219. package/dist/adapters/socket.js +0 -17
  220. package/dist/adapters/socket.js.map +0 -1
  221. package/dist/adapters/transport.d.ts +0 -7
  222. package/dist/adapters/transport.d.ts.map +0 -1
  223. package/dist/adapters/transport.js +0 -36
  224. package/dist/adapters/transport.js.map +0 -1
  225. package/dist/ai/chunk.d.ts +0 -2
  226. package/dist/ai/chunk.d.ts.map +0 -1
  227. package/dist/ai/chunk.js +0 -36
  228. package/dist/ai/chunk.js.map +0 -1
  229. package/dist/ai/llmstxt.d.ts +0 -6
  230. package/dist/ai/llmstxt.d.ts.map +0 -1
  231. package/dist/ai/llmstxt.js +0 -12
  232. package/dist/ai/llmstxt.js.map +0 -1
  233. package/dist/ai/provenance.d.ts +0 -22
  234. package/dist/ai/provenance.d.ts.map +0 -1
  235. package/dist/ai/provenance.js +0 -25
  236. package/dist/ai/provenance.js.map +0 -1
  237. package/dist/ai/rag.d.ts +0 -26
  238. package/dist/ai/rag.d.ts.map +0 -1
  239. package/dist/ai/rag.js +0 -22
  240. package/dist/ai/rag.js.map +0 -1
  241. package/dist/ai/tokens.d.ts +0 -15
  242. package/dist/ai/tokens.d.ts.map +0 -1
  243. package/dist/ai/tokens.js +0 -9
  244. package/dist/ai/tokens.js.map +0 -1
  245. package/dist/api/auth.d.ts +0 -16
  246. package/dist/api/auth.d.ts.map +0 -1
  247. package/dist/api/auth.js +0 -19
  248. package/dist/api/auth.js.map +0 -1
  249. package/dist/api/contracts.d.ts +0 -28
  250. package/dist/api/contracts.d.ts.map +0 -1
  251. package/dist/api/contracts.js +0 -14
  252. package/dist/api/contracts.js.map +0 -1
  253. package/dist/api/control.d.ts +0 -10
  254. package/dist/api/control.d.ts.map +0 -1
  255. package/dist/api/control.js +0 -35
  256. package/dist/api/control.js.map +0 -1
  257. package/dist/api/http.d.ts +0 -7
  258. package/dist/api/http.d.ts.map +0 -1
  259. package/dist/api/http.js +0 -12
  260. package/dist/api/http.js.map +0 -1
  261. package/dist/api/rate.d.ts +0 -28
  262. package/dist/api/rate.d.ts.map +0 -1
  263. package/dist/api/rate.js +0 -36
  264. package/dist/api/rate.js.map +0 -1
  265. package/dist/api/security.d.ts +0 -12
  266. package/dist/api/security.d.ts.map +0 -1
  267. package/dist/api/security.js +0 -56
  268. package/dist/api/security.js.map +0 -1
  269. package/dist/api/service.d.ts +0 -5
  270. package/dist/api/service.d.ts.map +0 -1
  271. package/dist/api/service.js +0 -70
  272. package/dist/api/service.js.map +0 -1
  273. package/dist/apps/registry.d.ts +0 -33
  274. package/dist/apps/registry.d.ts.map +0 -1
  275. package/dist/apps/registry.js +0 -24
  276. package/dist/apps/registry.js.map +0 -1
  277. package/dist/binary/archive.d.ts +0 -27
  278. package/dist/binary/archive.d.ts.map +0 -1
  279. package/dist/binary/archive.js +0 -46
  280. package/dist/binary/archive.js.map +0 -1
  281. package/dist/binary/build.d.ts +0 -29
  282. package/dist/binary/build.d.ts.map +0 -1
  283. package/dist/binary/build.js +0 -17
  284. package/dist/binary/build.js.map +0 -1
  285. package/dist/binary/transform.d.ts +0 -70
  286. package/dist/binary/transform.d.ts.map +0 -1
  287. package/dist/binary/transform.js +0 -105
  288. package/dist/binary/transform.js.map +0 -1
  289. package/dist/bot/adapter.d.ts +0 -5
  290. package/dist/bot/adapter.d.ts.map +0 -1
  291. package/dist/bot/adapter.js +0 -11
  292. package/dist/bot/adapter.js.map +0 -1
  293. package/dist/bot/bot.d.ts +0 -28
  294. package/dist/bot/bot.d.ts.map +0 -1
  295. package/dist/bot/bot.js +0 -52
  296. package/dist/bot/bot.js.map +0 -1
  297. package/dist/bot/commands.d.ts +0 -8
  298. package/dist/bot/commands.d.ts.map +0 -1
  299. package/dist/bot/commands.js +0 -19
  300. package/dist/bot/commands.js.map +0 -1
  301. package/dist/bot/permissions.d.ts +0 -13
  302. package/dist/bot/permissions.d.ts.map +0 -1
  303. package/dist/bot/permissions.js +0 -16
  304. package/dist/bot/permissions.js.map +0 -1
  305. package/dist/browser/actions.d.ts +0 -33
  306. package/dist/browser/actions.d.ts.map +0 -1
  307. package/dist/browser/actions.js +0 -44
  308. package/dist/browser/actions.js.map +0 -1
  309. package/dist/browser/agent.d.ts +0 -21
  310. package/dist/browser/agent.d.ts.map +0 -1
  311. package/dist/browser/agent.js +0 -13
  312. package/dist/browser/agent.js.map +0 -1
  313. package/dist/browser/context.d.ts +0 -43
  314. package/dist/browser/context.d.ts.map +0 -1
  315. package/dist/browser/context.js +0 -54
  316. package/dist/browser/context.js.map +0 -1
  317. package/dist/browser/fingerprint.d.ts +0 -4
  318. package/dist/browser/fingerprint.d.ts.map +0 -1
  319. package/dist/browser/fingerprint.js +0 -12
  320. package/dist/browser/fingerprint.js.map +0 -1
  321. package/dist/browser/index.d.ts +0 -11
  322. package/dist/browser/index.d.ts.map +0 -1
  323. package/dist/browser/index.js +0 -11
  324. package/dist/browser/index.js.map +0 -1
  325. package/dist/browser/playwright.d.ts +0 -11
  326. package/dist/browser/playwright.d.ts.map +0 -1
  327. package/dist/browser/playwright.js +0 -24
  328. package/dist/browser/playwright.js.map +0 -1
  329. package/dist/browser/recorder.d.ts +0 -21
  330. package/dist/browser/recorder.d.ts.map +0 -1
  331. package/dist/browser/recorder.js +0 -58
  332. package/dist/browser/recorder.js.map +0 -1
  333. package/dist/browser/session.d.ts +0 -14
  334. package/dist/browser/session.d.ts.map +0 -1
  335. package/dist/browser/session.js +0 -21
  336. package/dist/browser/session.js.map +0 -1
  337. package/dist/browser/snapshot.d.ts +0 -69
  338. package/dist/browser/snapshot.d.ts.map +0 -1
  339. package/dist/browser/snapshot.js +0 -133
  340. package/dist/browser/snapshot.js.map +0 -1
  341. package/dist/captcha/contract.d.ts +0 -35
  342. package/dist/captcha/contract.d.ts.map +0 -1
  343. package/dist/captcha/contract.js +0 -17
  344. package/dist/captcha/contract.js.map +0 -1
  345. package/dist/captcha/evidence.d.ts +0 -10
  346. package/dist/captcha/evidence.d.ts.map +0 -1
  347. package/dist/captcha/evidence.js +0 -9
  348. package/dist/captcha/evidence.js.map +0 -1
  349. package/dist/captcha/guard.d.ts +0 -23
  350. package/dist/captcha/guard.d.ts.map +0 -1
  351. package/dist/captcha/guard.js +0 -12
  352. package/dist/captcha/guard.js.map +0 -1
  353. package/dist/cli/main.d.ts +0 -4
  354. package/dist/cli/main.d.ts.map +0 -1
  355. package/dist/cli/main.js +0 -46
  356. package/dist/cli/main.js.map +0 -1
  357. package/dist/core/errors.d.ts +0 -84
  358. package/dist/core/errors.d.ts.map +0 -1
  359. package/dist/core/errors.js +0 -54
  360. package/dist/core/errors.js.map +0 -1
  361. package/dist/core/events.d.ts +0 -9
  362. package/dist/core/events.d.ts.map +0 -1
  363. package/dist/core/events.js +0 -21
  364. package/dist/core/events.js.map +0 -1
  365. package/dist/core/hash.d.ts +0 -10
  366. package/dist/core/hash.d.ts.map +0 -1
  367. package/dist/core/hash.js +0 -82
  368. package/dist/core/hash.js.map +0 -1
  369. package/dist/core/ids.d.ts +0 -10
  370. package/dist/core/ids.d.ts.map +0 -1
  371. package/dist/core/ids.js +0 -15
  372. package/dist/core/ids.js.map +0 -1
  373. package/dist/delivery/manifest.d.ts +0 -35
  374. package/dist/delivery/manifest.d.ts.map +0 -1
  375. package/dist/delivery/manifest.js +0 -68
  376. package/dist/delivery/manifest.js.map +0 -1
  377. package/dist/deploy/index.d.ts +0 -6
  378. package/dist/deploy/index.d.ts.map +0 -1
  379. package/dist/deploy/index.js +0 -6
  380. package/dist/deploy/index.js.map +0 -1
  381. package/dist/dispatch/resumable.d.ts +0 -102
  382. package/dist/dispatch/resumable.d.ts.map +0 -1
  383. package/dist/dispatch/resumable.js +0 -64
  384. package/dist/dispatch/resumable.js.map +0 -1
  385. package/dist/dispatch/workflow.d.ts +0 -6
  386. package/dist/dispatch/workflow.d.ts.map +0 -1
  387. package/dist/dispatch/workflow.js +0 -37
  388. package/dist/dispatch/workflow.js.map +0 -1
  389. package/dist/domain/artifacts.d.ts +0 -12
  390. package/dist/domain/artifacts.d.ts.map +0 -1
  391. package/dist/domain/artifacts.js +0 -14
  392. package/dist/domain/artifacts.js.map +0 -1
  393. package/dist/domain/jobs.d.ts +0 -12
  394. package/dist/domain/jobs.d.ts.map +0 -1
  395. package/dist/domain/jobs.js +0 -20
  396. package/dist/domain/jobs.js.map +0 -1
  397. package/dist/domain/providers.d.ts +0 -10
  398. package/dist/domain/providers.d.ts.map +0 -1
  399. package/dist/domain/providers.js +0 -8
  400. package/dist/domain/providers.js.map +0 -1
  401. package/dist/domain/runtime.d.ts +0 -14
  402. package/dist/domain/runtime.d.ts.map +0 -1
  403. package/dist/domain/runtime.js +0 -10
  404. package/dist/domain/runtime.js.map +0 -1
  405. package/dist/domain/sessions.d.ts +0 -12
  406. package/dist/domain/sessions.d.ts.map +0 -1
  407. package/dist/domain/sessions.js +0 -57
  408. package/dist/domain/sessions.js.map +0 -1
  409. package/dist/examples/localjob.d.ts +0 -2
  410. package/dist/examples/localjob.d.ts.map +0 -1
  411. package/dist/examples/localjob.js.map +0 -1
  412. package/dist/examples/publicapi.d.ts +0 -2
  413. package/dist/examples/publicapi.d.ts.map +0 -1
  414. package/dist/examples/publicapi.js.map +0 -1
  415. package/dist/extension/build.d.ts +0 -9
  416. package/dist/extension/build.d.ts.map +0 -1
  417. package/dist/extension/build.js +0 -85
  418. package/dist/extension/build.js.map +0 -1
  419. package/dist/extension/content.d.ts +0 -6
  420. package/dist/extension/content.d.ts.map +0 -1
  421. package/dist/extension/content.js +0 -135
  422. package/dist/extension/content.js.map +0 -1
  423. package/dist/extension/index.d.ts +0 -7
  424. package/dist/extension/index.d.ts.map +0 -1
  425. package/dist/extension/index.js +0 -7
  426. package/dist/extension/index.js.map +0 -1
  427. package/dist/extension/pagebridge.d.ts +0 -6
  428. package/dist/extension/pagebridge.d.ts.map +0 -1
  429. package/dist/extension/pagebridge.js +0 -42
  430. package/dist/extension/pagebridge.js.map +0 -1
  431. package/dist/extension/permissions.d.ts +0 -26
  432. package/dist/extension/permissions.d.ts.map +0 -1
  433. package/dist/extension/permissions.js +0 -28
  434. package/dist/extension/permissions.js.map +0 -1
  435. package/dist/extension/popup.d.ts +0 -5
  436. package/dist/extension/popup.d.ts.map +0 -1
  437. package/dist/extension/popup.js +0 -26
  438. package/dist/extension/popup.js.map +0 -1
  439. package/dist/extension/protocol.d.ts +0 -58
  440. package/dist/extension/protocol.d.ts.map +0 -1
  441. package/dist/extension/protocol.js +0 -101
  442. package/dist/extension/protocol.js.map +0 -1
  443. package/dist/extension/serviceworker.d.ts +0 -25
  444. package/dist/extension/serviceworker.d.ts.map +0 -1
  445. package/dist/extension/serviceworker.js +0 -102
  446. package/dist/extension/serviceworker.js.map +0 -1
  447. package/dist/extension/worker.d.ts +0 -28
  448. package/dist/extension/worker.d.ts.map +0 -1
  449. package/dist/extension/worker.js +0 -22
  450. package/dist/extension/worker.js.map +0 -1
  451. package/dist/format/check.d.ts +0 -8
  452. package/dist/format/check.d.ts.map +0 -1
  453. package/dist/format/check.js +0 -38
  454. package/dist/format/check.js.map +0 -1
  455. package/dist/isolation/contracts.d.ts.map +0 -1
  456. package/dist/isolation/contracts.js.map +0 -1
  457. package/dist/library/public.d.ts.map +0 -1
  458. package/dist/library/public.js.map +0 -1
  459. package/dist/mcp/browser.d.ts +0 -9
  460. package/dist/mcp/browser.d.ts.map +0 -1
  461. package/dist/mcp/browser.js +0 -13
  462. package/dist/mcp/browser.js.map +0 -1
  463. package/dist/mcp/server.d.ts +0 -35
  464. package/dist/mcp/server.d.ts.map +0 -1
  465. package/dist/mcp/server.js +0 -40
  466. package/dist/mcp/server.js.map +0 -1
  467. package/dist/mcp/transport.d.ts +0 -7
  468. package/dist/mcp/transport.d.ts.map +0 -1
  469. package/dist/mcp/transport.js +0 -17
  470. package/dist/mcp/transport.js.map +0 -1
  471. package/dist/memory/bridge.d.ts +0 -14
  472. package/dist/memory/bridge.d.ts.map +0 -1
  473. package/dist/memory/bridge.js +0 -16
  474. package/dist/memory/bridge.js.map +0 -1
  475. package/dist/memory/engine.d.ts +0 -38
  476. package/dist/memory/engine.d.ts.map +0 -1
  477. package/dist/memory/engine.js +0 -109
  478. package/dist/memory/engine.js.map +0 -1
  479. package/dist/memory/modes.d.ts +0 -43
  480. package/dist/memory/modes.d.ts.map +0 -1
  481. package/dist/memory/modes.js +0 -66
  482. package/dist/memory/modes.js.map +0 -1
  483. package/dist/memory/objects.d.ts +0 -21
  484. package/dist/memory/objects.d.ts.map +0 -1
  485. package/dist/memory/objects.js +0 -20
  486. package/dist/memory/objects.js.map +0 -1
  487. package/dist/memory/planner.d.ts +0 -66
  488. package/dist/memory/planner.d.ts.map +0 -1
  489. package/dist/memory/planner.js +0 -108
  490. package/dist/memory/planner.js.map +0 -1
  491. package/dist/memory/targets.d.ts +0 -78
  492. package/dist/memory/targets.d.ts.map +0 -1
  493. package/dist/memory/targets.js +0 -29
  494. package/dist/memory/targets.js.map +0 -1
  495. package/dist/memory/transforms.d.ts +0 -19
  496. package/dist/memory/transforms.d.ts.map +0 -1
  497. package/dist/memory/transforms.js +0 -14
  498. package/dist/memory/transforms.js.map +0 -1
  499. package/dist/modes/matrix.d.ts +0 -23
  500. package/dist/modes/matrix.d.ts.map +0 -1
  501. package/dist/modes/matrix.js +0 -18
  502. package/dist/modes/matrix.js.map +0 -1
  503. package/dist/modes/modes.d.ts +0 -33
  504. package/dist/modes/modes.d.ts.map +0 -1
  505. package/dist/modes/modes.js +0 -15
  506. package/dist/modes/modes.js.map +0 -1
  507. package/dist/modes/resolve.d.ts +0 -96
  508. package/dist/modes/resolve.d.ts.map +0 -1
  509. package/dist/modes/resolve.js +0 -48
  510. package/dist/modes/resolve.js.map +0 -1
  511. package/dist/observability/metrics.d.ts +0 -14
  512. package/dist/observability/metrics.d.ts.map +0 -1
  513. package/dist/observability/metrics.js +0 -18
  514. package/dist/observability/metrics.js.map +0 -1
  515. package/dist/packager/manifest.d.ts +0 -66
  516. package/dist/packager/manifest.d.ts.map +0 -1
  517. package/dist/packager/manifest.js +0 -94
  518. package/dist/packager/manifest.js.map +0 -1
  519. package/dist/packager/publish.d.ts +0 -51
  520. package/dist/packager/publish.d.ts.map +0 -1
  521. package/dist/packager/publish.js +0 -18
  522. package/dist/packager/publish.js.map +0 -1
  523. package/dist/packager/targetcli.d.ts +0 -7
  524. package/dist/packager/targetcli.d.ts.map +0 -1
  525. package/dist/packager/targetcli.js +0 -22
  526. package/dist/packager/targetcli.js.map +0 -1
  527. package/dist/persistence/adapter.d.ts +0 -5
  528. package/dist/persistence/adapter.d.ts.map +0 -1
  529. package/dist/persistence/adapter.js +0 -11
  530. package/dist/persistence/adapter.js.map +0 -1
  531. package/dist/persistence/drizzle.d.ts +0 -2
  532. package/dist/persistence/drizzle.d.ts.map +0 -1
  533. package/dist/persistence/drizzle.js +0 -12
  534. package/dist/persistence/drizzle.js.map +0 -1
  535. package/dist/persistence/memory.d.ts +0 -2
  536. package/dist/persistence/memory.d.ts.map +0 -1
  537. package/dist/persistence/memory.js +0 -27
  538. package/dist/persistence/memory.js.map +0 -1
  539. package/dist/persistence/migrations.d.ts +0 -19
  540. package/dist/persistence/migrations.d.ts.map +0 -1
  541. package/dist/persistence/migrations.js +0 -13
  542. package/dist/persistence/migrations.js.map +0 -1
  543. package/dist/persistence/prisma.d.ts +0 -2
  544. package/dist/persistence/prisma.d.ts.map +0 -1
  545. package/dist/persistence/prisma.js +0 -25
  546. package/dist/persistence/prisma.js.map +0 -1
  547. package/dist/persistence/schema.d.ts +0 -63
  548. package/dist/persistence/schema.d.ts.map +0 -1
  549. package/dist/persistence/schema.js +0 -28
  550. package/dist/persistence/schema.js.map +0 -1
  551. package/dist/persistence/sql.d.ts +0 -3
  552. package/dist/persistence/sql.d.ts.map +0 -1
  553. package/dist/persistence/sql.js +0 -37
  554. package/dist/persistence/sql.js.map +0 -1
  555. package/dist/protocol/blocks.d.ts +0 -10
  556. package/dist/protocol/blocks.d.ts.map +0 -1
  557. package/dist/protocol/blocks.js +0 -26
  558. package/dist/protocol/blocks.js.map +0 -1
  559. package/dist/protocol/json.d.ts +0 -6
  560. package/dist/protocol/json.d.ts.map +0 -1
  561. package/dist/protocol/json.js +0 -6
  562. package/dist/protocol/json.js.map +0 -1
  563. package/dist/protocol/ndjson.d.ts +0 -3
  564. package/dist/protocol/ndjson.d.ts.map +0 -1
  565. package/dist/protocol/ndjson.js +0 -20
  566. package/dist/protocol/ndjson.js.map +0 -1
  567. package/dist/protocol/sse.d.ts +0 -7
  568. package/dist/protocol/sse.d.ts.map +0 -1
  569. package/dist/protocol/sse.js +0 -25
  570. package/dist/protocol/sse.js.map +0 -1
  571. package/dist/proxy/pool.d.ts +0 -9
  572. package/dist/proxy/pool.d.ts.map +0 -1
  573. package/dist/proxy/pool.js +0 -27
  574. package/dist/proxy/pool.js.map +0 -1
  575. package/dist/queue/idempotency.d.ts +0 -10
  576. package/dist/queue/idempotency.d.ts.map +0 -1
  577. package/dist/queue/idempotency.js +0 -13
  578. package/dist/queue/idempotency.js.map +0 -1
  579. package/dist/queue/persistent.d.ts +0 -14
  580. package/dist/queue/persistent.d.ts.map +0 -1
  581. package/dist/queue/persistent.js +0 -66
  582. package/dist/queue/persistent.js.map +0 -1
  583. package/dist/queue/queue.d.ts +0 -7
  584. package/dist/queue/queue.d.ts.map +0 -1
  585. package/dist/queue/queue.js +0 -55
  586. package/dist/queue/queue.js.map +0 -1
  587. package/dist/queue/saga.d.ts +0 -5
  588. package/dist/queue/saga.d.ts.map +0 -1
  589. package/dist/queue/saga.js +0 -20
  590. package/dist/queue/saga.js.map +0 -1
  591. package/dist/release/assets.d.ts +0 -144
  592. package/dist/release/assets.d.ts.map +0 -1
  593. package/dist/release/assets.js +0 -157
  594. package/dist/release/assets.js.map +0 -1
  595. package/dist/release/evidence.d.ts +0 -92
  596. package/dist/release/evidence.d.ts.map +0 -1
  597. package/dist/release/evidence.js +0 -148
  598. package/dist/release/evidence.js.map +0 -1
  599. package/dist/release/verify.d.ts +0 -12
  600. package/dist/release/verify.d.ts.map +0 -1
  601. package/dist/release/verify.js +0 -112
  602. package/dist/release/verify.js.map +0 -1
  603. package/dist/runners/chain.d.ts +0 -125
  604. package/dist/runners/chain.d.ts.map +0 -1
  605. package/dist/runners/chain.js +0 -95
  606. package/dist/runners/chain.js.map +0 -1
  607. package/dist/runners/health.d.ts +0 -36
  608. package/dist/runners/health.d.ts.map +0 -1
  609. package/dist/runners/health.js +0 -26
  610. package/dist/runners/health.js.map +0 -1
  611. package/dist/runners/heartbeat.d.ts +0 -23
  612. package/dist/runners/heartbeat.d.ts.map +0 -1
  613. package/dist/runners/heartbeat.js +0 -29
  614. package/dist/runners/heartbeat.js.map +0 -1
  615. package/dist/runners/inprocess.d.ts +0 -17
  616. package/dist/runners/inprocess.d.ts.map +0 -1
  617. package/dist/runners/inprocess.js +0 -20
  618. package/dist/runners/inprocess.js.map +0 -1
  619. package/dist/runners/scheduler.d.ts +0 -5
  620. package/dist/runners/scheduler.d.ts.map +0 -1
  621. package/dist/runners/scheduler.js +0 -19
  622. package/dist/runners/scheduler.js.map +0 -1
  623. package/dist/runtime/abort.d.ts +0 -8
  624. package/dist/runtime/abort.d.ts.map +0 -1
  625. package/dist/runtime/abort.js +0 -13
  626. package/dist/runtime/abort.js.map +0 -1
  627. package/dist/runtime/compatibility.d.ts +0 -37
  628. package/dist/runtime/compatibility.d.ts.map +0 -1
  629. package/dist/runtime/compatibility.js +0 -10
  630. package/dist/runtime/compatibility.js.map +0 -1
  631. package/dist/runtime/detect.d.ts +0 -13
  632. package/dist/runtime/detect.d.ts.map +0 -1
  633. package/dist/runtime/detect.js +0 -18
  634. package/dist/runtime/detect.js.map +0 -1
  635. package/dist/runtime/engine.d.ts +0 -20
  636. package/dist/runtime/engine.d.ts.map +0 -1
  637. package/dist/runtime/engine.js +0 -61
  638. package/dist/runtime/engine.js.map +0 -1
  639. package/dist/runtime/retry.d.ts +0 -19
  640. package/dist/runtime/retry.d.ts.map +0 -1
  641. package/dist/runtime/retry.js +0 -54
  642. package/dist/runtime/retry.js.map +0 -1
  643. package/dist/runtime/worker.d.ts +0 -10
  644. package/dist/runtime/worker.d.ts.map +0 -1
  645. package/dist/runtime/worker.js +0 -25
  646. package/dist/runtime/worker.js.map +0 -1
  647. package/dist/scrape/cache.d.ts +0 -45
  648. package/dist/scrape/cache.d.ts.map +0 -1
  649. package/dist/scrape/cache.js +0 -45
  650. package/dist/scrape/cache.js.map +0 -1
  651. package/dist/scrape/crawl.d.ts +0 -47
  652. package/dist/scrape/crawl.d.ts.map +0 -1
  653. package/dist/scrape/crawl.js +0 -114
  654. package/dist/scrape/crawl.js.map +0 -1
  655. package/dist/scrape/extract.d.ts +0 -63
  656. package/dist/scrape/extract.d.ts.map +0 -1
  657. package/dist/scrape/extract.js +0 -47
  658. package/dist/scrape/extract.js.map +0 -1
  659. package/dist/scrape/normalize.d.ts +0 -52
  660. package/dist/scrape/normalize.d.ts.map +0 -1
  661. package/dist/scrape/normalize.js +0 -102
  662. package/dist/scrape/normalize.js.map +0 -1
  663. package/dist/scrape/robots.d.ts +0 -37
  664. package/dist/scrape/robots.d.ts.map +0 -1
  665. package/dist/scrape/robots.js +0 -71
  666. package/dist/scrape/robots.js.map +0 -1
  667. package/dist/scrape/schema.d.ts +0 -23
  668. package/dist/scrape/schema.d.ts.map +0 -1
  669. package/dist/scrape/schema.js +0 -92
  670. package/dist/scrape/schema.js.map +0 -1
  671. package/dist/scrape/scraper.d.ts +0 -6
  672. package/dist/scrape/scraper.d.ts.map +0 -1
  673. package/dist/scrape/scraper.js +0 -46
  674. package/dist/scrape/scraper.js.map +0 -1
  675. package/dist/scrape/semantic.d.ts +0 -25
  676. package/dist/scrape/semantic.d.ts.map +0 -1
  677. package/dist/scrape/semantic.js +0 -27
  678. package/dist/scrape/semantic.js.map +0 -1
  679. package/dist/server/node.d.ts +0 -7
  680. package/dist/server/node.d.ts.map +0 -1
  681. package/dist/server/node.js.map +0 -1
  682. package/dist/sessions/file.d.ts +0 -25
  683. package/dist/sessions/file.d.ts.map +0 -1
  684. package/dist/sessions/file.js +0 -13
  685. package/dist/sessions/file.js.map +0 -1
  686. package/dist/sessions/replay.d.ts +0 -9
  687. package/dist/sessions/replay.d.ts.map +0 -1
  688. package/dist/sessions/replay.js +0 -70
  689. package/dist/sessions/replay.js.map +0 -1
  690. package/dist/sessions/store.d.ts +0 -25
  691. package/dist/sessions/store.d.ts.map +0 -1
  692. package/dist/sessions/store.js +0 -13
  693. package/dist/sessions/store.js.map +0 -1
  694. package/dist/storage/adapter.d.ts +0 -5
  695. package/dist/storage/adapter.d.ts.map +0 -1
  696. package/dist/storage/adapter.js +0 -11
  697. package/dist/storage/adapter.js.map +0 -1
  698. package/dist/storage/cache.d.ts +0 -23
  699. package/dist/storage/cache.d.ts.map +0 -1
  700. package/dist/storage/cache.js +0 -79
  701. package/dist/storage/cache.js.map +0 -1
  702. package/dist/storage/checksum.d.ts +0 -3
  703. package/dist/storage/checksum.d.ts.map +0 -1
  704. package/dist/storage/checksum.js +0 -19
  705. package/dist/storage/checksum.js.map +0 -1
  706. package/dist/storage/chunked.d.ts +0 -21
  707. package/dist/storage/chunked.d.ts.map +0 -1
  708. package/dist/storage/chunked.js +0 -67
  709. package/dist/storage/chunked.js.map +0 -1
  710. package/dist/storage/content.d.ts +0 -24
  711. package/dist/storage/content.d.ts.map +0 -1
  712. package/dist/storage/content.js +0 -44
  713. package/dist/storage/content.js.map +0 -1
  714. package/dist/storage/filehosting.d.ts +0 -2
  715. package/dist/storage/filehosting.d.ts.map +0 -1
  716. package/dist/storage/filehosting.js +0 -24
  717. package/dist/storage/filehosting.js.map +0 -1
  718. package/dist/storage/githubcontents.d.ts +0 -2
  719. package/dist/storage/githubcontents.d.ts.map +0 -1
  720. package/dist/storage/githubcontents.js +0 -29
  721. package/dist/storage/githubcontents.js.map +0 -1
  722. package/dist/storage/index.d.ts +0 -12
  723. package/dist/storage/index.d.ts.map +0 -1
  724. package/dist/storage/index.js +0 -12
  725. package/dist/storage/index.js.map +0 -1
  726. package/dist/storage/local.d.ts +0 -2
  727. package/dist/storage/local.d.ts.map +0 -1
  728. package/dist/storage/local.js +0 -72
  729. package/dist/storage/local.js.map +0 -1
  730. package/dist/storage/memory.d.ts +0 -6
  731. package/dist/storage/memory.d.ts.map +0 -1
  732. package/dist/storage/memory.js +0 -36
  733. package/dist/storage/memory.js.map +0 -1
  734. package/dist/storage/pool.d.ts +0 -95
  735. package/dist/storage/pool.d.ts.map +0 -1
  736. package/dist/storage/pool.js +0 -202
  737. package/dist/storage/pool.js.map +0 -1
  738. package/dist/storage/s3compatible.d.ts +0 -3
  739. package/dist/storage/s3compatible.d.ts.map +0 -1
  740. package/dist/storage/s3compatible.js +0 -70
  741. package/dist/storage/s3compatible.js.map +0 -1
  742. package/dist/storage/sync.d.ts +0 -47
  743. package/dist/storage/sync.d.ts.map +0 -1
  744. package/dist/storage/sync.js +0 -75
  745. package/dist/storage/sync.js.map +0 -1
  746. package/dist/surfaces/adapters.d.ts +0 -97
  747. package/dist/surfaces/adapters.d.ts.map +0 -1
  748. package/dist/surfaces/adapters.js +0 -50
  749. package/dist/surfaces/adapters.js.map +0 -1
  750. package/dist/surfaces/controls.d.ts +0 -18
  751. package/dist/surfaces/controls.d.ts.map +0 -1
  752. package/dist/surfaces/controls.js +0 -45
  753. package/dist/surfaces/controls.js.map +0 -1
  754. package/dist/surfaces/manifest.d.ts +0 -68
  755. package/dist/surfaces/manifest.d.ts.map +0 -1
  756. package/dist/surfaces/manifest.js +0 -42
  757. package/dist/surfaces/manifest.js.map +0 -1
  758. package/dist/surfaces/n8n.d.ts +0 -25
  759. package/dist/surfaces/n8n.d.ts.map +0 -1
  760. package/dist/surfaces/n8n.js +0 -31
  761. package/dist/surfaces/n8n.js.map +0 -1
  762. package/dist/surfaces/operations.d.ts +0 -32
  763. package/dist/surfaces/operations.d.ts.map +0 -1
  764. package/dist/surfaces/operations.js +0 -53
  765. package/dist/surfaces/operations.js.map +0 -1
  766. package/dist/surfaces/requirements.d.ts +0 -29
  767. package/dist/surfaces/requirements.d.ts.map +0 -1
  768. package/dist/surfaces/requirements.js +0 -50
  769. package/dist/surfaces/requirements.js.map +0 -1
  770. package/dist/surfaces/targets.d.ts +0 -196
  771. package/dist/surfaces/targets.d.ts.map +0 -1
  772. package/dist/surfaces/targets.js +0 -27
  773. package/dist/surfaces/targets.js.map +0 -1
  774. package/dist/webhook/delivery.d.ts +0 -18
  775. package/dist/webhook/delivery.d.ts.map +0 -1
  776. package/dist/webhook/delivery.js +0 -36
  777. package/dist/webhook/delivery.js.map +0 -1
  778. package/dist/webhook/receiver.d.ts +0 -26
  779. package/dist/webhook/receiver.d.ts.map +0 -1
  780. package/dist/webhook/receiver.js +0 -24
  781. package/dist/webhook/receiver.js.map +0 -1
  782. package/dist/webhook/signature.d.ts +0 -3
  783. package/dist/webhook/signature.d.ts.map +0 -1
  784. package/dist/webhook/signature.js +0 -7
  785. package/dist/webhook/signature.js.map +0 -1
  786. package/dist/workflow/manifest.d.ts +0 -22
  787. package/dist/workflow/manifest.d.ts.map +0 -1
  788. package/dist/workflow/manifest.js +0 -21
  789. package/dist/workflow/manifest.js.map +0 -1
  790. package/dist/workflow/registry.d.ts +0 -7
  791. package/dist/workflow/registry.d.ts.map +0 -1
  792. package/dist/workflow/registry.js +0 -18
  793. package/dist/workflow/registry.js.map +0 -1
  794. package/dist/workflow/templates.d.ts +0 -6
  795. package/dist/workflow/templates.d.ts.map +0 -1
  796. package/dist/workflow/templates.js +0 -18
  797. package/dist/workflow/templates.js.map +0 -1
  798. package/dist/workflow/triggers.d.ts +0 -64
  799. package/dist/workflow/triggers.d.ts.map +0 -1
  800. package/dist/workflow/triggers.js +0 -99
  801. package/dist/workflow/triggers.js.map +0 -1
  802. /package/{extension/README.md → docs/extension.md} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,125 +1,735 @@
1
1
  /**
2
- * public entry point exports stable factories and leaves adapters replaceable.
3
- */
4
- export * from "./core/errors.js";
5
- export * from "./core/events.js";
6
- export * from "./core/ids.js";
7
- export * from "./core/hash.js";
8
- export * from "./domain/artifacts.js";
9
- export * from "./domain/jobs.js";
10
- export * from "./domain/providers.js";
11
- export * from "./domain/runtime.js";
12
- export * from "./domain/sessions.js";
13
- export * from "./memory/modes.js";
14
- export * from "./memory/objects.js";
15
- export * from "./memory/targets.js";
16
- export * from "./memory/transforms.js";
17
- export * from "./memory/engine.js";
18
- export * from "./memory/planner.js";
19
- export * from "./runners/inprocess.js";
20
- export * from "./runners/scheduler.js";
21
- export * from "./runtime/engine.js";
22
- export * from "./storage/adapter.js";
23
- export * from "./storage/cache.js";
24
- export * from "./storage/content.js";
25
- export * from "./storage/memory.js";
26
- export * from "./storage/pool.js";
27
- export * from "./storage/sync.js";
28
- export * from "./runners/health.js";
29
- export * from "./runners/chain.js";
30
- export * from "./runners/heartbeat.js";
31
- export * from "./workflow/triggers.js";
32
- export * from "./dispatch/resumable.js";
33
- export * from "./scrape/semantic.js";
34
- export * from "./scrape/crawl.js";
35
- export * from "./ai/provenance.js";
36
- export * from "./observability/metrics.js";
37
- export * from "./api/auth.js";
38
- export * from "./api/contracts.js";
39
- export * from "./mcp/browser.js";
40
- export * from "./apps/registry.js";
41
- export * from "./bot/permissions.js";
42
- export * from "./webhook/delivery.js";
43
- export * from "./delivery/manifest.js";
44
- export * from "./storage/chunked.js";
45
- export * from "./storage/s3compatible.js";
46
- export * from "./modes/modes.js";
47
- export * from "./adapters/transport.js";
48
- export * from "./adapters/github.js";
49
- export * from "./adapters/socket.js";
50
- export * from "./adapters/forge.js";
51
- export * from "./adapters/gitlab.js";
52
- export * from "./adapters/forgejo.js";
53
- export * from "./adapters/huggingface.js";
54
- export * from "./persistence/schema.js";
55
- export * from "./persistence/adapter.js";
56
- export * from "./persistence/memory.js";
57
- export * from "./persistence/sql.js";
58
- export * from "./persistence/drizzle.js";
59
- export * from "./persistence/prisma.js";
60
- export * from "./queue/idempotency.js";
61
- export * from "./queue/queue.js";
62
- export * from "./queue/saga.js";
63
- export * from "./dispatch/workflow.js";
64
- export * from "./sessions/replay.js";
65
- export * from "./scrape/robots.js";
66
- export * from "./scrape/cache.js";
67
- export * from "./scrape/extract.js";
68
- export * from "./scrape/scraper.js";
69
- export * from "./packager/manifest.js";
70
- export * from "./bot/commands.js";
71
- export * from "./bot/adapter.js";
72
- export * from "./bot/bot.js";
73
- export * from "./protocol/json.js";
74
- export * from "./protocol/ndjson.js";
75
- export * from "./protocol/sse.js";
76
- export * from "./protocol/blocks.js";
77
- export * from "./workflow/manifest.js";
78
- export * from "./workflow/templates.js";
79
- export * from "./workflow/registry.js";
80
- export * from "./scrape/schema.js";
81
- export * from "./scrape/normalize.js";
82
- export * from "./mcp/server.js";
83
- export * from "./runtime/detect.js";
84
- export * from "./runtime/abort.js";
85
- export * from "./runtime/compatibility.js";
86
- export * from "./runtime/worker.js";
87
- export * from "./packager/publish.js";
88
- export * from "./browser/fingerprint.js";
89
- export * from "./browser/session.js";
90
- export * from "./browser/index.js";
91
- export * from "./proxy/pool.js";
92
- export * from "./captcha/contract.js";
93
- export * from "./captcha/guard.js";
94
- export * from "./ai/tokens.js";
95
- export * from "./ai/chunk.js";
96
- export * from "./ai/rag.js";
97
- export * from "./ai/llmstxt.js";
98
- export * from "./webhook/signature.js";
99
- export * from "./webhook/receiver.js";
100
- export * from "./surfaces/manifest.js";
101
- export * from "./surfaces/n8n.js";
102
- export * from "./surfaces/adapters.js";
103
- export * from "./surfaces/controls.js";
104
- export * from "./surfaces/operations.js";
105
- export * from "./surfaces/requirements.js";
106
- export * from "./library/public.js";
107
- export * from "./runtime/retry.js";
108
- export * from "./storage/githubcontents.js";
109
- export * from "./storage/filehosting.js";
110
- export * from "./persistence/migrations.js";
111
- export * from "./mcp/transport.js";
112
- export * from "./api/security.js";
113
- export * from "./modes/matrix.js";
114
- export * from "./modes/resolve.js";
115
- export * from "./binary/build.js";
116
- export * from "./binary/archive.js";
117
- export * from "./binary/transform.js";
118
- export * from "./isolation/contracts.js";
119
- export * from "./api/rate.js";
120
- export * from "./api/http.js";
121
- export * from "./api/service.js";
122
- export * from "./api/control.js";
123
- export * from "./extension/index.js";
124
- export * from "./release/evidence.js";
2
+ * index.ts the stable public API of the saddle grand merge (v2.0.0).
3
+ *
4
+ * Section 1 carries the e2ugh virtual-hardware engine core (the library-first
5
+ * entry point of the merged e2ugh repository: the main factory
6
+ * createVirtualEngine, the dependency-free specification validator
7
+ * validateSpec, the random endpoint allocator randomPort, the Map-based
8
+ * internal memory store InternalMemory, the disposable metrics store
9
+ * MetricsStore, the strongly typed event bus enginebus, and the plan planner
10
+ * absorbed from the former architect.ts).
11
+ *
12
+ * Section 2 routes the saddle domain surface through the root-level domain
13
+ * files of the consolidation: one optimized TypeScript file per correlated
14
+ * domain, every former nested folder of both repositories folded at the
15
+ * repository root.
16
+ */
17
+ import type { migprofileid } from './virtualmemory.js';
18
+ /**
19
+ * Frozen table of the reference toolchain versions that the engine targets.
20
+ * Every value was confirmed against primary sources on 2026-08-22 and is
21
+ * embedded here so generated documentation and workflows can cite exact
22
+ * versions without a network round trip. the v2 merge adds the microvm
23
+ * runtime anchors so every module (orchestrator, virtualization, security)
24
+ * cites the same ledger.
25
+ */
26
+ export declare const engineversions: {
27
+ /** npm latest confirmed 2026-08-23 (v12 shipped july 2026). */
28
+ readonly npm: '12.0.2';
29
+ /** python stable confirmed 2026-08-23. */
30
+ readonly python: '3.14.7';
31
+ readonly nodecurrent: '26.7.0';
32
+ readonly nodelts: '24.19.0';
33
+ readonly typescript: '7.0.2';
34
+ readonly docker: '29.7.2';
35
+ readonly compose: '5.5.0';
36
+ readonly mesaa: '26.2.1';
37
+ readonly qemu: '11.1.0';
38
+ readonly firecracker: '1.16.1';
39
+ readonly kata: '4.1.0';
40
+ readonly gvisor: 'release-20260817.0';
41
+ readonly cloudhypervisor: '53.0';
42
+ readonly criu: '4.2.1';
43
+ readonly kernelmainline: '7.2';
44
+ readonly kernelstable: '7.1.9';
45
+ readonly kernellongterm: '6.18.45';
46
+ readonly wasmtime: '48.0.0';
47
+ readonly wgpu: '30.x';
48
+ };
49
+ /** Union of every key available in the engineversions table. */
50
+ export type engineversionkey = keyof typeof engineversions;
51
+ /** Numeric bounds applied to every engine specification. */
52
+ export type enginelimits = {
53
+ readonly minvcpu: number;
54
+ readonly maxvcpu: number;
55
+ readonly minramgb: number;
56
+ readonly maxramgb: number;
57
+ readonly minvramgb: number;
58
+ readonly maxvramgb: number;
59
+ readonly minport: number;
60
+ readonly maxport: number;
61
+ };
62
+ /**
63
+ * Hard limits of the virtual hardware generation. Values mirror the extremes
64
+ * of the embedded processor bank: 1 to 192 vCPUs (EPYC 9965 class), 1 to
65
+ * 1024 GB of guest RAM, 8 to 96 GB of virtualized VRAM (RTX PRO 6000 class with
66
+ * MIG slicing) and the random port range 30000-59999.
67
+ */
68
+ export declare const enginelimits: {
69
+ readonly minvcpu: 1;
70
+ readonly maxvcpu: 192;
71
+ readonly minramgb: 1;
72
+ readonly maxramgb: 1024;
73
+ readonly minvramgb: 8;
74
+ readonly maxvramgb: 96;
75
+ readonly minport: 30000;
76
+ readonly maxport: 59999;
77
+ };
78
+ /** Runtime backend that executes the virtual machine workload. */
79
+ export type engineruntime = 'qemu' | 'firecracker' | 'docker' | 'gvisor';
80
+ /** Lifecycle states of a virtual engine instance. */
81
+ export type enginestate = 'created' | 'starting' | 'running' | 'degraded' | 'stopped';
82
+ /** Full declarative specification of one virtual hardware machine. */
83
+ export type enginespec = {
84
+ readonly model: string;
85
+ readonly vcpus: number;
86
+ readonly ramgb: number;
87
+ readonly vramgb: number;
88
+ readonly mig: migprofileid;
89
+ readonly runtime: engineruntime;
90
+ readonly host: string;
91
+ readonly port: number;
92
+ readonly metricsintervalms: number;
93
+ };
94
+ /** Resolved network endpoint of a running engine. */
95
+ export type engineendpoint = {
96
+ readonly host: string;
97
+ readonly port: number;
98
+ readonly url: string;
99
+ };
100
+ /** Options accepted by createVirtualEngine; every field is optional. */
101
+ export type engineoptions = {
102
+ readonly model?: string;
103
+ readonly vcpus?: number;
104
+ readonly ramgb?: number;
105
+ readonly vramgb?: number;
106
+ readonly mig?: migprofileid;
107
+ readonly runtime?: engineruntime;
108
+ readonly host?: string;
109
+ readonly port?: number;
110
+ readonly metricsintervalms?: number;
111
+ };
112
+ /**
113
+ * Returns a random TCP port in the 30000-59999 range using a
114
+ * cryptographically secure generator (node:crypto randomInt). The user may
115
+ * override the random draw by passing an explicit port, which is validated
116
+ * against the engine limits before being returned.
117
+ *
118
+ * @param override Explicit port chosen by the user; when omitted a random
119
+ * port is drawn, which keeps the library free of fixed addresses.
120
+ */
121
+ export declare function randomPort(override?: number): number;
122
+ /**
123
+ * Resolves the bind host from explicit preference or the environment
124
+ * variables `virtualenginehost` or `vhehost`. No default address such as
125
+ * localhost is ever assumed implicitly: when neither argument nor
126
+ * environment provides a host the function fails loudly, keeping the
127
+ * address 100 percent a user choice (an explicit loopback is honored
128
+ * because it is the explicit decision of the caller).
129
+ *
130
+ * @param preferred Host explicitly chosen by the caller; wins over env.
131
+ */
132
+ export declare function resolveHost(preferred?: string): string;
133
+ /**
134
+ * Combines a host and a port into an endpoint descriptor. The port falls
135
+ * back to randomPort when omitted so the endpoint is always concrete.
136
+ */
137
+ export declare function buildEndpoint(host: string, port?: number): engineendpoint;
138
+ /** Kinds of primitives understood by the built-in rule engine. */
139
+ export type rulekind = 'number' | 'string' | 'boolean' | 'enum';
140
+ /** One validation rule bound to a specification field. */
141
+ export type specrule = {
142
+ readonly key: keyof enginespec;
143
+ readonly kind: rulekind;
144
+ readonly min?: number;
145
+ readonly max?: number;
146
+ readonly pattern?: RegExp;
147
+ readonly values?: readonly string[];
148
+ readonly optional?: boolean;
149
+ readonly description: string;
150
+ };
151
+ /** Result of running validateSpec over a candidate specification. */
152
+ export type specvalidationresult = {
153
+ readonly valid: boolean;
154
+ readonly errors: readonly string[];
155
+ readonly warnings: readonly string[];
156
+ readonly normalized: enginespec | null;
157
+ };
158
+ /**
159
+ * Default rule table derived from enginelimits. It behaves like a small
160
+ * dependency-free schema: each entry describes bounds and shape for one
161
+ * field of enginespec and validateSpec walks the table collecting errors.
162
+ */
163
+ export declare const specschema: readonly specrule[];
164
+ /**
165
+ * Validates a candidate specification against the rule table. The function
166
+ * is zod-like in spirit but has zero external dependencies: it type-checks
167
+ * each field, enforces numeric bounds, matches string patterns and rejects
168
+ * unknown enum values, then returns the errors, soft warnings and a frozen
169
+ * normalized copy when everything passes.
170
+ *
171
+ * @param spec Candidate specification; the const type parameter preserves
172
+ * literal inference for callers that pass object literals.
173
+ */
174
+ export declare function validateSpec<const T extends enginespec>(spec: T): specvalidationresult;
175
+ /** One immutable metric sample. */
176
+ export type metricssample = {
177
+ readonly at: number;
178
+ readonly cpuutilization: number;
179
+ readonly memusedgb: number;
180
+ readonly memtotalgb: number;
181
+ readonly vramusedgb: number;
182
+ readonly vramtotalgb: number;
183
+ readonly iops: number;
184
+ };
185
+ /** Aggregate view over the stored samples of one engine. */
186
+ export type metricsaggregate = {
187
+ readonly count: number;
188
+ readonly cpuavg: number;
189
+ readonly cpupeak: number;
190
+ readonly memavggb: number;
191
+ readonly newest: metricssample | null;
192
+ };
193
+ /**
194
+ * Map-based internal memory store used by every engine instance. Gauges,
195
+ * counters, labels and rolling samples live in plain Map containers which
196
+ * guarantees deterministic iteration, cheap snapshots and no binding to any
197
+ * runtime-specific global. The store also owns a WeakMap side table for
198
+ * ephemeral probes that must never keep engines alive.
199
+ */
200
+ export declare class InternalMemory {
201
+ #private;
202
+ constructor();
203
+ /** Number of distinct gauges currently registered. */
204
+ get gaugecount(): number;
205
+ /** Reports how many storage slots are live across all containers. */
206
+ get slotcount(): number;
207
+ /** Sets a gauge value, creating it when missing. */
208
+ setgauge(name: string, value: number): this;
209
+ /** Reads a gauge, returning the fallback when the gauge is absent. */
210
+ readgauge(name: string, fallback?: number): number;
211
+ /** Increments a counter by delta (default 1) and returns the new total. */
212
+ bump(name: string, delta?: number): number;
213
+ /** Reads a counter without mutating it. */
214
+ readcounter(name: string): number;
215
+ /** Attaches a human readable label for observability tooling. */
216
+ setlabel(name: string, value: string): this;
217
+ /** Returns a frozen copy of all labels. */
218
+ readlabels(): Readonly<Record<string, string>>;
219
+ /** Pushes a sample into the rolling series of one engine. */
220
+ pushsample(engineid: string, sample: metricssample, keep?: number): number;
221
+ /** Computes cpu and memory averages plus peaks for one engine. */
222
+ aggregate(engineid: string): metricsaggregate;
223
+ /** Stores an ephemeral probe keyed by a weak object reference. */
224
+ attachprobe(owner: object, sample: metricssample): void;
225
+ /** Reads an ephemeral probe; returns null when the owner is gone. */
226
+ readprobe(owner: object): metricssample | null;
227
+ /** Drops every container, leaving the store empty but reusable. */
228
+ clear(): void;
229
+ }
230
+ /**
231
+ * Disposable metrics facade. Instances are designed for explicit resource
232
+ * management: `using store = new MetricsStore()` flushes the snapshot to
233
+ * disk on scope exit through Symbol.dispose, while `await using` performs
234
+ * the same through Symbol.asyncDispose after letting pending samples
235
+ * settle. Both disposers are idempotent so double disposal is harmless.
236
+ * The v2 orchestrator subclasses this store (sandboxmetrics) so the whole
237
+ * engine keeps exactly one metrics component.
238
+ */
239
+ export declare class MetricsStore {
240
+ #private;
241
+ constructor(engineid: string, snapshotdir?: string);
242
+ /** Direct access to the underlying InternalMemory containers. */
243
+ get memory(): InternalMemory;
244
+ /** Engine identifier this store is bound to. */
245
+ get engineid(): string;
246
+ /** True once a disposer has run for this instance. */
247
+ get disposed(): boolean;
248
+ /** Records a sample into the rolling series. */
249
+ record(sample: metricssample): this;
250
+ /** Persists the current aggregate snapshot to the configured directory. */
251
+ flush(): string | null;
252
+ /** Loads a previously persisted snapshot, returning null when missing. */
253
+ restore(): Record<string, unknown> | null;
254
+ /** Synchronous disposer used by `using store = new MetricsStore(...)`. */
255
+ [Symbol.dispose](): void;
256
+ /** Asynchronous disposer used by `await using` declarations. */
257
+ [Symbol.asyncDispose](): Promise<void>;
258
+ }
259
+ /**
260
+ * Map of every event topic emitted by the engine to its payload type.
261
+ *
262
+ * The v2 merge collapses the three buses of the pool (the v5 enginebus,
263
+ * the Meta TypedEventBus and the Meta SaddleEventBus) into this single
264
+ * topology: the original engine:* and metrics:* topics plus the full
265
+ * sandbox:* and vm plane surface (vm, vcpu, vram, gpu, sriov, passage,
266
+ * mttg, docker, qemu, health, autoscale, numa, migration, snapshot,
267
+ * checkpoint, config, plugin, rbac, audit, leader, quota, preemption,
268
+ * drain and system) that orchestrator.ts publishes through sandboxevents,
269
+ * a subclass of enginebus. no second bus exists anywhere in the library.
270
+ */
271
+ export type enginetopics = {
272
+ readonly 'engine:created': {
273
+ readonly engineid: string;
274
+ readonly at: number;
275
+ };
276
+ readonly 'engine:starting': {
277
+ readonly engineid: string;
278
+ readonly spec: enginespec;
279
+ };
280
+ readonly 'engine:running': {
281
+ readonly engineid: string;
282
+ readonly endpoint: engineendpoint;
283
+ };
284
+ readonly 'engine:stopped': {
285
+ readonly engineid: string;
286
+ readonly uptimems: number;
287
+ };
288
+ readonly 'engine:error': {
289
+ readonly engineid: string;
290
+ readonly error: Error;
291
+ };
292
+ readonly 'metrics:sample': {
293
+ readonly engineid: string;
294
+ readonly sample: metricssample;
295
+ };
296
+ readonly 'engine:statechanged': {
297
+ readonly engineid: string;
298
+ readonly from: enginestate;
299
+ readonly to: enginestate;
300
+ };
301
+ readonly 'sandbox:created': {
302
+ readonly id: string;
303
+ readonly runtime: string;
304
+ readonly host: string;
305
+ readonly ports: readonly {
306
+ readonly host: number;
307
+ readonly container: number;
308
+ }[];
309
+ };
310
+ readonly 'sandbox:started': {
311
+ readonly id: string;
312
+ readonly runtime: string;
313
+ readonly bootms: number;
314
+ };
315
+ readonly 'sandbox:stopped': {
316
+ readonly id: string;
317
+ readonly reason: string;
318
+ };
319
+ readonly 'sandbox:snapshotted': {
320
+ readonly id: string;
321
+ readonly file: string;
322
+ };
323
+ readonly 'sandbox:restored': {
324
+ readonly id: string;
325
+ readonly snapshotfile: string;
326
+ };
327
+ readonly 'sandbox:destroyed': {
328
+ readonly id: string;
329
+ };
330
+ readonly 'sandbox:pooled': {
331
+ readonly size: number;
332
+ };
333
+ readonly 'sandbox:error': {
334
+ readonly id?: string;
335
+ readonly phase: string;
336
+ readonly message: string;
337
+ };
338
+ readonly 'vm:created': {
339
+ readonly vmid: string;
340
+ readonly tenantid: string;
341
+ };
342
+ readonly 'vm:started': {
343
+ readonly vmid: string;
344
+ readonly pid: number;
345
+ };
346
+ readonly 'vm:stopped': {
347
+ readonly vmid: string;
348
+ readonly reason: string;
349
+ };
350
+ readonly 'vm:error': {
351
+ readonly vmid: string;
352
+ readonly error: string;
353
+ };
354
+ readonly 'vm:phase': {
355
+ readonly vmid: string;
356
+ readonly to: string;
357
+ };
358
+ readonly 'vcpu:scheduled': {
359
+ readonly vmid: string;
360
+ readonly vcpuid: string;
361
+ readonly cpu: number;
362
+ };
363
+ readonly 'sched:overcommitwarn': {
364
+ readonly vmid: string;
365
+ readonly requested: number;
366
+ readonly host: number;
367
+ readonly overcommit: number;
368
+ };
369
+ readonly 'vram:adjusted': {
370
+ readonly vmid: string;
371
+ readonly targetmib: number;
372
+ readonly actualmib: number;
373
+ };
374
+ readonly 'gpu:assigned': {
375
+ readonly vmid: string;
376
+ readonly gpuid: string;
377
+ readonly vfid?: string;
378
+ };
379
+ readonly 'gpu:released': {
380
+ readonly gpuid: string;
381
+ readonly vmid: string;
382
+ };
383
+ readonly 'sriov:vfcreated': {
384
+ readonly pf: string;
385
+ readonly vfid: string;
386
+ };
387
+ readonly 'passage:routecreated': {
388
+ readonly id: string;
389
+ readonly srcvm: string;
390
+ readonly dstvm: string;
391
+ readonly protocol: string;
392
+ };
393
+ readonly 'mttg:jobdone': {
394
+ readonly jobid: string;
395
+ readonly durationms: number;
396
+ };
397
+ readonly 'mttg:enqueued': {
398
+ readonly jobid: string;
399
+ readonly tenant: string;
400
+ readonly qos: string;
401
+ };
402
+ readonly 'mttg:preempted': {
403
+ readonly incoming: string;
404
+ readonly preempted: readonly string[];
405
+ };
406
+ readonly 'docker:attached': {
407
+ readonly vmid: string;
408
+ readonly bridge: string;
409
+ readonly ipv4: string;
410
+ };
411
+ readonly 'qemu:exit': {
412
+ readonly vmid: string;
413
+ readonly code: number | null;
414
+ };
415
+ readonly 'qemu:versionmismatch': {
416
+ readonly expected: string;
417
+ readonly got: string;
418
+ };
419
+ readonly 'health:change': {
420
+ readonly checkid: string;
421
+ readonly old: string;
422
+ readonly new: string;
423
+ };
424
+ readonly 'autoscale:trigger': {
425
+ readonly policyid: string;
426
+ readonly action: string;
427
+ readonly count: number;
428
+ };
429
+ readonly 'numa:rebalance': {
430
+ readonly moves: number;
431
+ readonly from: number;
432
+ readonly to: number;
433
+ };
434
+ readonly 'migration:progress': {
435
+ readonly jobid: string;
436
+ readonly vmid: string;
437
+ readonly state: string;
438
+ readonly progress: number;
439
+ };
440
+ readonly 'snapshot:created': {
441
+ readonly snapshotid: string;
442
+ readonly vmid: string;
443
+ };
444
+ readonly 'checkpoint:created': {
445
+ readonly checkpointid: string;
446
+ readonly vmid: string;
447
+ readonly method: string;
448
+ };
449
+ readonly 'config:reloaded': {
450
+ readonly file: string;
451
+ };
452
+ readonly 'plugin:loaded': {
453
+ readonly pluginid: string;
454
+ };
455
+ readonly 'plugin:unloaded': {
456
+ readonly pluginid: string;
457
+ };
458
+ readonly 'rbac:denied': {
459
+ readonly userid: string;
460
+ readonly action: string;
461
+ };
462
+ readonly 'audit:entry': {
463
+ readonly actor: string;
464
+ readonly action: string;
465
+ readonly target: string;
466
+ readonly result: string;
467
+ };
468
+ readonly 'leader:changed': {
469
+ readonly leader: string;
470
+ readonly term: number;
471
+ };
472
+ readonly 'quota:set': {
473
+ readonly tenantid: string;
474
+ readonly vcpu: number;
475
+ readonly vrammib: number;
476
+ readonly gpu: number;
477
+ };
478
+ readonly 'node:drained': {
479
+ readonly labelkey: string;
480
+ readonly labelvalue: string;
481
+ readonly drained: readonly string[];
482
+ };
483
+ readonly 'system:error': {
484
+ readonly kind: string;
485
+ readonly message: string;
486
+ };
487
+ readonly 'otel:exporterstarted': {
488
+ readonly host: string;
489
+ readonly port: number;
490
+ };
491
+ };
492
+ /** Union of all topic names; template literal types keep it extensible. */
493
+ export type enginetopicname = keyof enginetopics;
494
+ /**
495
+ * Strongly typed observer bus built on node:events EventEmitter. Publish and
496
+ * subscribe are generic over the topic map so listeners receive exactly the
497
+ * payload type of the topic they choose; the underlying EventEmitter is kept
498
+ * private so external code cannot bypass typing. This class is the single
499
+ * bus of the engine: orchestrator.ts extends it (sandboxevents) and every
500
+ * subsystem publishes here instead of creating its own emitter.
501
+ */
502
+ export declare class enginebus {
503
+ #private;
504
+ constructor();
505
+ /** Subscribes a typed listener to one topic. */
506
+ subscribe<t extends enginetopicname>(topic: t, listener: (payload: enginetopics[t]) => void): this;
507
+ /** Removes a previously subscribed listener. */
508
+ unsubscribe<t extends enginetopicname>(topic: t, listener: (payload: enginetopics[t]) => void): this;
509
+ /** Publishes one event; the boolean mirrors EventEmitter emit results. */
510
+ publish<t extends enginetopicname>(topic: t, payload: enginetopics[t]): boolean;
511
+ /** Waits until one topic fires, resolving with its payload. */
512
+ waitfor<t extends enginetopicname>(topic: t): Promise<enginetopics[t]>;
513
+ /** Returns how many listeners are attached to one topic. */
514
+ listenercount(topic: enginetopicname): number;
515
+ }
516
+ /** Process-wide bus shared by factories in this module. */
517
+ export declare const engineeventbus: enginebus;
518
+ /** Error thrown by every engine subsystem with an optional cause chain. */
519
+ export declare class engineerror extends Error {
520
+ /** Machine readable subsystem tag. */
521
+ readonly subsystem: string;
522
+ constructor(message: string, options?: {
523
+ cause?: Error;
524
+ subsystem?: string;
525
+ });
526
+ }
527
+ /** Outcome shape returned by safecall. */
528
+ export type safeoutcome<t> = {
529
+ readonly ok: true;
530
+ readonly value: t;
531
+ } | {
532
+ readonly ok: false;
533
+ readonly error: Error;
534
+ };
535
+ /**
536
+ * Runs an action inside a try/catch catcher and reports the outcome as a
537
+ * discriminated union instead of throwing, which lets library callers decide
538
+ * how failures surface. The fallback runs only when the action throws.
539
+ */
540
+ export declare function safecall<t>(label: string, action: () => t, fallback?: () => t): safeoutcome<t>;
541
+ /** Point-in-time snapshot of an engine. */
542
+ export type enginesnapshot = {
543
+ readonly engineid: string;
544
+ readonly state: enginestate;
545
+ readonly spec: enginespec;
546
+ readonly uptimems: number;
547
+ readonly metrics: metricsaggregate;
548
+ readonly versions: typeof engineversions;
549
+ };
550
+ /** Health report produced by periodic probing. */
551
+ export type healthreport = {
552
+ readonly engineid: string;
553
+ readonly healthy: boolean;
554
+ readonly state: enginestate;
555
+ readonly checks: readonly {
556
+ readonly name: string;
557
+ readonly passed: boolean;
558
+ readonly detail: string;
559
+ }[];
560
+ };
561
+ /**
562
+ * Facade object returned by createVirtualEngine. The class keeps its state
563
+ * machine private and exposes only intentful operations, emitting typed
564
+ * events on every transition so orchestrators can react without polling.
565
+ */
566
+ export declare class VirtualEngine {
567
+ #private;
568
+ constructor(spec: enginespec, bus: enginebus);
569
+ /** Unique identifier of this engine instance. */
570
+ get id(): string;
571
+ /** Frozen specification the engine was created with. */
572
+ get spec(): enginespec;
573
+ /** Current lifecycle state. */
574
+ get state(): enginestate;
575
+ /** Milliseconds elapsed since creation. */
576
+ get uptimems(): number;
577
+ /** Endpoint after a successful start, otherwise null. */
578
+ get endpoint(): engineendpoint | null;
579
+ /** Internal metrics store of this engine. */
580
+ get memory(): InternalMemory;
581
+ /** Moves the engine to running, binding the resolved endpoint. */
582
+ start(): engineendpoint;
583
+ /** Stops a running engine and publishes the measured uptime. */
584
+ stop(): void;
585
+ /** Builds an immutable snapshot of the engine state. */
586
+ snapshot(): enginesnapshot;
587
+ /** Runs structural health checks over spec, state and metrics. */
588
+ healthcheck(): healthreport;
589
+ }
590
+ /** Registry of live engines keyed by engine id. */
591
+ export declare const engineRegistry: ReadonlyMap<string, VirtualEngine>;
592
+ /**
593
+ * Creates a fully wired virtual engine from user options. The factory
594
+ * resolves the host (user choice only), draws a random port in the
595
+ * 30000-59999 range when none is given, validates the merged specification
596
+ * with validateSpec, registers the instance in engineRegistry and emits the
597
+ * engine:created topic. Failures are converted to engineerror instances so
598
+ * callers always see a typed cause chain.
599
+ *
600
+ * @param options Partial specification; only the host is mandatory because
601
+ * the library refuses to assume any default address.
602
+ */
603
+ export declare function createVirtualEngine(options: engineoptions): VirtualEngine;
604
+ /** Registers a fresh health probe for an engine and returns it. */
605
+ export declare function probeengine(engine: VirtualEngine): healthreport;
606
+ /** Reads the latest health probe recorded for an engine, if any. */
607
+ export declare function lastprobe(engine: VirtualEngine): healthreport | null;
608
+ /** Removes an engine from the registry; returns true when it existed. */
609
+ export declare function disposeengine(engineid: string): boolean;
610
+ /** Handle returned by startsampling; disposable for `using` blocks. */
611
+ export type samplinghandle = {
612
+ readonly stop: () => void;
613
+ };
614
+ /**
615
+ * Starts a periodic sampling loop that fabricates metric samples with the
616
+ * node:crypto random generator and records them into the engine metrics
617
+ * store, emitting a metrics:sample event per iteration. The returned handle
618
+ * implements Symbol.dispose so it composes with `using` declarations.
619
+ */
620
+ export declare function startsampling(engine: VirtualEngine, store: MetricsStore): samplinghandle & Disposable;
621
+ /**
622
+ * GPU mode of a plan. this mirrors the GpuMode enum of forge.hpp (the C++
623
+ * control plane) and stays intentionally distinct from the runtime gpu
624
+ * assignment modes of orchestrator.ts (none/passthrough/vgpu/mdev).
625
+ */
626
+ export type plangpumode = 'vfio' | 'vgpu' | 'mig' | 'virtio' | 'none';
627
+ /** Declarative machine plan consumed by the argv renderers below. */
628
+ export type plan = {
629
+ readonly name: string;
630
+ readonly cpu: string;
631
+ readonly gpu: string;
632
+ readonly sockets: number;
633
+ readonly dies: number;
634
+ readonly cores: number;
635
+ readonly threads: 1 | 2;
636
+ readonly vcpus: number;
637
+ readonly memorygib: number;
638
+ readonly vramgib: number;
639
+ readonly overcommit: number;
640
+ readonly gpumode: plangpumode;
641
+ readonly mttg: boolean;
642
+ readonly mttgthreads: number;
643
+ };
644
+ /**
645
+ * Default plan: a desktop zen5 lab (9950X3D with two CCDs) paired with an
646
+ * RTX 5090, 65536 multiplexed MTTG threads and a 4x cpu overcommit.
647
+ */
648
+ export declare const defaultplan: {
649
+ readonly name: 'aether-lab';
650
+ readonly cpu: 'AMD Ryzen 9 9950X3D';
651
+ readonly gpu: 'NVIDIA GeForce RTX 5090';
652
+ readonly sockets: 1;
653
+ readonly dies: 2;
654
+ readonly cores: 8;
655
+ readonly threads: 2;
656
+ readonly vcpus: 16;
657
+ readonly memorygib: 64;
658
+ readonly vramgib: 32;
659
+ readonly overcommit: 4;
660
+ readonly gpumode: 'vfio';
661
+ readonly mttg: true;
662
+ readonly mttgthreads: 65536;
663
+ };
664
+ /**
665
+ * Returns the topology product of a plan (sockets x dies x cores x
666
+ * threads); distinct from solvetopology of virtualcpu.ts which maps a
667
+ * processor spec to its physical package view.
668
+ */
669
+ export declare function plantopology(candidate: plan): number;
670
+ /**
671
+ * Renders the lean qemu argv of a plan: maxcpus headroom, hotplug memory
672
+ * slots (maxmem), topology-aware -smp, the mttg thread count exported
673
+ * through -fw_cfg, and per-gpu-mode device selection. the complete
674
+ * "turbo" argv (TDX/SEV/vfio romfile/venus) lives in buildqemucmd of
675
+ * virtualization.ts; the runtime strategy argv lives in orchestrator.ts.
676
+ */
677
+ export declare function qemuargv(candidate: plan): readonly string[];
678
+ /** renders the plan argv as a copy-pasteable shell command. */
679
+ export declare function qemucommand(candidate: plan): string;
680
+ /**
681
+ * renders the docker run command of a plan: cpu divided by the overcommit
682
+ * factor, unbounded pids cgroup (--pids-limit=0) and the MTTG thread
683
+ * budget exported through AETHER_MTTG_THREADS.
684
+ */
685
+ export declare function dockerrun(candidate: plan): string;
686
+ /** renders the vm.config.toml block of a plan. */
687
+ export declare function plantoml(candidate: plan): string;
688
+ /**
689
+ * lints a plan: the MTTG thread budget must cover the vCPUs, the
690
+ * overcommit ceiling is 64x, the vCPU ceiling is 4096 and the topology
691
+ * product must equal the vCPU count.
692
+ */
693
+ export declare function planlint(candidate: plan): readonly string[];
694
+ /** Re-exports the compute domain (wasm/wasmtime 48 lts, webgpu on
695
+ * lavapipe, node 26 runtime surface, ai workload planners, wasm canary,
696
+ * wasi:gfx, chatops, gpu ebpf telemetry, ai migration predictor). */
697
+ export * from './compute.js';
698
+ /** Re-exports the media pipeline and transcode domain (24-stage
699
+ * pipeline, ffmpeg 7.1 NVENC p1-p7 command synthesis, createoptimal
700
+ * encoder policy, passage ed25519+chacha20-poly1305 channel, 30
701
+ * transcode modes). */
702
+ export * from './media.js';
703
+ export { bellstate, deutsch, dnacapacity, dnavaultdecode, dnavaultencode, ghzstate, grover2, grover3, opticalplan, qteleport, quantuminspiredrandom, quantumregistry, quantumsim, runbb84, rune91, } from './quantum.js';
704
+ /** Re-exports the scheduling and allocation domain (typecheck sharding,
705
+ * shared-memory cache, project graph, MIG/vCPU/RAM/GPU/NUMA/PCI
706
+ * allocation, aipsched, psi lstm, tenant QoS, anomaly detector,
707
+ * hot reload, otel, health, shutdown, plugin hooks). */
708
+ export * from './scheduler.js';
709
+ export { cgroupsv2slice, creatiersengine, FREEPOOL, githubstorage, LATENCYLADDER, npmchunkregistry, plannpmchunks, publishplan, rambufferbackend, reassembleplan, sqlitekv, sqlitel3backend, swapfilerecipe, sysctldropin, TIERS, tierserror, tmpfsrecipe, zramrecipe, } from './tiers.js';
710
+ /** Re-exports the virtual processor bank and cpuinfo generators. */
711
+ export * from './virtualcpu.js';
712
+ /** Re-exports the gpu passthrough surface (vfio, rom dump, vgpu data). */
713
+ export * from './virtualgpu.js';
714
+ /** Re-exports the virtualization surface (qemu turbo argv, passage,
715
+ * mttg cgroups, mttg grid, checkpoint and restore, virtualizationcore
716
+ * bridge). */
717
+ export * from './virtualization.js';
718
+ /** Re-exports the MIG profile union declared by the memory module. */
719
+ export type { migprofileid } from './virtualmemory.js';
720
+ /** Re-exports the memory tier catalog and virtual memory manager. */
721
+ export * from './virtualmemory.js';
722
+ export * from "./foundation.js";
723
+ export * from "./isolation.js";
724
+ export * from "./virtual.js";
725
+ export * from "./execution.js";
726
+ export * from "./browser.js";
727
+ export * from "./acquisition.js";
728
+ export * from "./communication.js";
729
+ export * from "./integration.js";
730
+ export * from "./automation.js";
731
+ export * from "./intelligence.js";
732
+ export * from "./distribution.js";
733
+ export * from "./modes.js";
734
+ export * from "./operations.js";
125
735
  //# sourceMappingURL=index.d.ts.map