@wenathlan/saddle 2.1.6 → 2.1.8

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 (300) hide show
  1. package/Dockerfile +170 -66
  2. package/LICENSE +0 -0
  3. package/README.md +73 -58
  4. package/alternatives.ts +0 -0
  5. package/biome.jsonc +134 -0
  6. package/boards.json +2 -2
  7. package/browser.ts +482 -0
  8. package/cli.ts +274 -0
  9. package/compute.ts +4 -4
  10. package/cores.json +2 -2
  11. package/distribution.ts +731 -0
  12. package/docker.config +37 -9
  13. package/docs/.gitkeep +0 -0
  14. package/docs/actionrecorder.md +0 -0
  15. package/docs/actionsincident.md +0 -0
  16. package/docs/alternatives.md +0 -0
  17. package/docs/architecture.md +0 -0
  18. package/docs/{architecture-1.8.19.md → architecture1819.md} +0 -0
  19. package/docs/{architecture-1.8.19.mmd → architecture1819.mmd} +0 -0
  20. package/docs/artifactavailability.md +2 -2
  21. package/docs/{artifactresearch-1.8.9.md → artifactresearch189.md} +0 -0
  22. package/docs/{batches-1816-1820.md → batches1816to1820.md} +0 -0
  23. package/docs/{brancharchive-2026-08-18.md → brancharchive20260818.md} +0 -0
  24. package/docs/branchaudit.md +0 -0
  25. package/docs/browser.md +18 -1
  26. package/docs/capabilityreport.md +0 -0
  27. package/docs/comparativeaudit.md +0 -0
  28. package/docs/consolidation.md +0 -0
  29. package/docs/{containerplatforms-1.8.17.md → containerplatforms1817.md} +0 -0
  30. package/docs/{containerplatforms-2.1.0.md → containerplatforms210.md} +1 -1
  31. package/docs/{documentmap-1.8.12.md → documentmap1812.md} +1 -1
  32. package/docs/{e2ugh-engine.md → e2ughengine.md} +0 -0
  33. package/docs/ecosystemplan.md +0 -0
  34. package/docs/enginearchitecture.md +0 -0
  35. package/docs/extension.md +13 -2
  36. package/docs/featureaudit.md +0 -0
  37. package/docs/{flatbuildresearch-1.8.11.md → flatbuildresearch1811.md} +0 -0
  38. package/docs/gapmatrix.md +0 -0
  39. package/docs/hardware.md +0 -0
  40. package/docs/libraryapi.md +1 -1
  41. package/docs/{licenseaudit-1.8.12.md → licenseaudit1812.md} +0 -0
  42. package/docs/logs/examplesession.json +54 -0
  43. package/docs/memoryengine.md +0 -0
  44. package/docs/{mobileconversionresearch-1.8.10.md → mobileconversionresearch1810.md} +0 -0
  45. package/docs/modes.md +0 -0
  46. package/docs/{nativeidentityresearch-1.8.11.md → nativeidentityresearch1811.md} +0 -0
  47. package/docs/{native-wrappers.md → nativewrappers.md} +0 -0
  48. package/docs/ninetymodalities.md +191 -0
  49. package/docs/optimization.md +0 -0
  50. package/docs/packageaudit185.md +0 -0
  51. package/docs/performance.md +0 -0
  52. package/docs/{planning.1.8.18.md → planning1818.md} +0 -0
  53. package/docs/{planning.1.8.19.md → planning1819.md} +0 -0
  54. package/docs/planningengine.md +186 -0
  55. package/docs/planningninety.md +391 -0
  56. package/docs/platformpipelineaudit.md +0 -0
  57. package/docs/platformpipelines.md +0 -0
  58. package/docs/productindex.md +0 -0
  59. package/docs/registryresearch.md +0 -0
  60. package/docs/release.md +0 -0
  61. package/docs/release17notes.md +0 -0
  62. package/docs/release181notes.md +0 -0
  63. package/docs/release182notes.md +0 -0
  64. package/docs/release184notes.md +0 -0
  65. package/docs/release185notes.md +0 -0
  66. package/docs/release18notes.md +0 -0
  67. package/docs/releaseassets.md +0 -0
  68. package/docs/{releasenotes-1.8.12.md → releasenotes1812.md} +0 -0
  69. package/docs/{releasenotes-1.8.13.md → releasenotes1813.md} +2 -2
  70. package/docs/{releasenotes-1.8.14.md → releasenotes1814.md} +1 -1
  71. package/docs/{releasenotes-1.8.15.md → releasenotes1815.md} +0 -0
  72. package/docs/{releasenotes-1.8.16.md → releasenotes1816.md} +0 -0
  73. package/docs/{releasenotes-1.8.17.md → releasenotes1817.md} +0 -0
  74. package/docs/{releasenotes-1.8.18.md → releasenotes1818.md} +0 -0
  75. package/docs/{releasenotes-1.8.19.md → releasenotes1819.md} +0 -0
  76. package/docs/{reorganization-1.8.8.md → reorganization188.md} +0 -0
  77. package/docs/{reorganization-1.8.9.md → reorganization189.md} +0 -0
  78. package/docs/{repo-analysis-1.8.21.json → repoanalysis1821.json} +0 -0
  79. package/docs/{repo-candidates-1.8.21.jsonl → repocandidates1821.jsonl} +0 -0
  80. package/docs/{repo-research-1.8.16.md → reporesearch1816.md} +0 -0
  81. package/docs/{repo-research-1.8.21.md → reporesearch1821.md} +0 -0
  82. package/docs/{repo-selected-1.8.21.json → reposelected1821.json} +0 -0
  83. package/docs/{repo-synthesis-1.8.16.md → reposynthesis1816.md} +1 -1
  84. package/docs/{repo-synthesis-1.8.21.md → reposynthesis1821.md} +0 -0
  85. package/docs/{research-1.8.18-isolation.md → research1818isolation.md} +0 -0
  86. package/docs/{research-1.8.19-virtual-browser.md → research1819virtualbrowser.md} +0 -0
  87. package/docs/roadmapp2p3.md +0 -0
  88. package/docs/s3compatible.md +0 -0
  89. package/docs/{scanningresearch-1.8.11.md → scanningresearch1811.md} +0 -0
  90. package/docs/security.md +0 -0
  91. package/docs/{securityaudit-1.8.7.md → securityaudit187.md} +0 -0
  92. package/docs/{securityreferences-1.8.11.md → securityreferences1811.md} +0 -0
  93. package/docs/{securityresearch-1.8.11.md → securityresearch1811.md} +0 -0
  94. package/docs/{signingresearch-1.8.12.md → signingresearch1812.md} +0 -0
  95. package/docs/signingwithoutcertificates.md +0 -0
  96. package/docs/signpathapplication.md +0 -0
  97. package/docs/sitemap.md +0 -0
  98. package/docs/{tauri-glib-risk-1.8.11.md → tauriglibrisk1811.md} +0 -0
  99. package/docs/todo.md +2 -2
  100. package/docs/{todo-1.8.15.md → todo1815.md} +1 -1
  101. package/docs/{todo-1.8.16.md → todo1816.md} +5 -5
  102. package/docs/{todo-1.8.18.md → todo1818.md} +0 -0
  103. package/docs/{todo-1.8.19.md → todo1819.md} +0 -0
  104. package/docs/{toolchainresearch-1.8.9.md → toolchainresearch189.md} +0 -0
  105. package/docs/toolchains.md +0 -0
  106. package/docs/usage.md +0 -0
  107. package/docs/viability.md +0 -0
  108. package/docs/virtualization.md +0 -0
  109. package/docs/{web-duplicatecleanup.md → webduplicatecleanup.md} +0 -0
  110. package/docs/{web-ideas.md → webideas.md} +0 -0
  111. package/docs/{workflowimprovements-2026-08-19.md → workflowimprovements20260819.md} +0 -0
  112. package/docs/workflowinputs.md +0 -0
  113. package/docs/workflowoperations.md +0 -0
  114. package/docs/workloadlaw.md +104 -0
  115. package/execution.ts +677 -0
  116. package/foundation.ts +314 -0
  117. package/gpumonitor.cpp +0 -0
  118. package/gpus.json +1 -1
  119. package/index.ts +38 -29
  120. package/isolation.ts +84 -0
  121. package/modalityregistry.ts +1493 -0
  122. package/{dist/modes.js → modes.ts} +79 -62
  123. package/mttg.config +1 -1
  124. package/orchestrator.ts +54 -17
  125. package/package.json +245 -146
  126. package/passage.config +0 -0
  127. package/performance.ts +0 -0
  128. package/processors.json +1 -1
  129. package/qemu.config +2 -2
  130. package/qemubridge.py +0 -0
  131. package/quantum.ts +0 -0
  132. package/render.ts +0 -0
  133. package/sandbox.ts +2035 -0
  134. package/scheduler.ts +1 -1
  135. package/security.ts +0 -0
  136. package/server.ts +52 -0
  137. package/tiers.ts +9 -3
  138. package/tsconfig.json +22 -13
  139. package/virtual.ts +1105 -0
  140. package/virtualcpu.ts +1 -0
  141. package/virtualgpu.ts +2 -1
  142. package/virtualhardware.c +0 -0
  143. package/virtualhardware.json +2 -2
  144. package/virtualization.ts +1 -1
  145. package/virtualizationcore.cpp +0 -0
  146. package/virtualmemory.ts +0 -0
  147. package/vm.config.json +2 -2
  148. package/workloadlaw.ts +293 -0
  149. package/biome.json +0 -151
  150. package/dist/acquisition.d.ts +0 -359
  151. package/dist/acquisition.d.ts.map +0 -1
  152. package/dist/acquisition.js +0 -629
  153. package/dist/acquisition.js.map +0 -1
  154. package/dist/alternatives.d.ts +0 -509
  155. package/dist/alternatives.d.ts.map +0 -1
  156. package/dist/alternatives.js +0 -951
  157. package/dist/alternatives.js.map +0 -1
  158. package/dist/automation.d.ts +0 -426
  159. package/dist/automation.d.ts.map +0 -1
  160. package/dist/automation.js +0 -561
  161. package/dist/automation.js.map +0 -1
  162. package/dist/browser.d.ts +0 -562
  163. package/dist/browser.d.ts.map +0 -1
  164. package/dist/browser.js +0 -1057
  165. package/dist/browser.js.map +0 -1
  166. package/dist/cli.d.ts +0 -17
  167. package/dist/cli.d.ts.map +0 -1
  168. package/dist/cli.js +0 -169
  169. package/dist/cli.js.map +0 -1
  170. package/dist/communication.d.ts +0 -192
  171. package/dist/communication.d.ts.map +0 -1
  172. package/dist/communication.js +0 -418
  173. package/dist/communication.js.map +0 -1
  174. package/dist/compute.d.ts +0 -1161
  175. package/dist/compute.d.ts.map +0 -1
  176. package/dist/compute.js +0 -2273
  177. package/dist/compute.js.map +0 -1
  178. package/dist/distribution.d.ts +0 -529
  179. package/dist/distribution.d.ts.map +0 -1
  180. package/dist/distribution.js +0 -811
  181. package/dist/distribution.js.map +0 -1
  182. package/dist/docs/example-localjob.d.ts +0 -2
  183. package/dist/docs/example-localjob.d.ts.map +0 -1
  184. package/dist/docs/example-localjob.js +0 -15
  185. package/dist/docs/example-localjob.js.map +0 -1
  186. package/dist/docs/example-publicapi.d.ts +0 -2
  187. package/dist/docs/example-publicapi.d.ts.map +0 -1
  188. package/dist/docs/example-publicapi.js +0 -7
  189. package/dist/docs/example-publicapi.js.map +0 -1
  190. package/dist/execution.d.ts +0 -530
  191. package/dist/execution.d.ts.map +0 -1
  192. package/dist/execution.js +0 -761
  193. package/dist/execution.js.map +0 -1
  194. package/dist/format.d.ts +0 -19
  195. package/dist/format.d.ts.map +0 -1
  196. package/dist/format.js +0 -60
  197. package/dist/format.js.map +0 -1
  198. package/dist/foundation.d.ts +0 -176
  199. package/dist/foundation.d.ts.map +0 -1
  200. package/dist/foundation.js +0 -309
  201. package/dist/foundation.js.map +0 -1
  202. package/dist/index.d.ts +0 -735
  203. package/dist/index.d.ts.map +0 -1
  204. package/dist/index.js +0 -1020
  205. package/dist/index.js.map +0 -1
  206. package/dist/integration.d.ts +0 -236
  207. package/dist/integration.d.ts.map +0 -1
  208. package/dist/integration.js +0 -236
  209. package/dist/integration.js.map +0 -1
  210. package/dist/intelligence.d.ts +0 -94
  211. package/dist/intelligence.d.ts.map +0 -1
  212. package/dist/intelligence.js +0 -145
  213. package/dist/intelligence.js.map +0 -1
  214. package/dist/isolation.d.ts +0 -129
  215. package/dist/isolation.d.ts.map +0 -1
  216. package/dist/isolation.js +0 -96
  217. package/dist/isolation.js.map +0 -1
  218. package/dist/media.d.ts +0 -344
  219. package/dist/media.d.ts.map +0 -1
  220. package/dist/media.js +0 -986
  221. package/dist/media.js.map +0 -1
  222. package/dist/modes.d.ts +0 -359
  223. package/dist/modes.d.ts.map +0 -1
  224. package/dist/modes.js.map +0 -1
  225. package/dist/operations.d.ts +0 -67
  226. package/dist/operations.d.ts.map +0 -1
  227. package/dist/operations.js +0 -94
  228. package/dist/operations.js.map +0 -1
  229. package/dist/orchestrator.d.ts +0 -1339
  230. package/dist/orchestrator.d.ts.map +0 -1
  231. package/dist/orchestrator.js +0 -4308
  232. package/dist/orchestrator.js.map +0 -1
  233. package/dist/packager/targetcli.js +0 -4
  234. package/dist/performance.d.ts +0 -416
  235. package/dist/performance.d.ts.map +0 -1
  236. package/dist/performance.js +0 -827
  237. package/dist/performance.js.map +0 -1
  238. package/dist/quantum.d.ts +0 -810
  239. package/dist/quantum.d.ts.map +0 -1
  240. package/dist/quantum.js +0 -2073
  241. package/dist/quantum.js.map +0 -1
  242. package/dist/render.d.ts +0 -381
  243. package/dist/render.d.ts.map +0 -1
  244. package/dist/render.js +0 -1073
  245. package/dist/render.js.map +0 -1
  246. package/dist/scheduler.d.ts +0 -596
  247. package/dist/scheduler.d.ts.map +0 -1
  248. package/dist/scheduler.js +0 -1259
  249. package/dist/scheduler.js.map +0 -1
  250. package/dist/security.d.ts +0 -501
  251. package/dist/security.d.ts.map +0 -1
  252. package/dist/security.js +0 -1170
  253. package/dist/security.js.map +0 -1
  254. package/dist/server.d.ts +0 -21
  255. package/dist/server.d.ts.map +0 -1
  256. package/dist/server.js +0 -52
  257. package/dist/server.js.map +0 -1
  258. package/dist/tiers.d.ts +0 -1002
  259. package/dist/tiers.d.ts.map +0 -1
  260. package/dist/tiers.js +0 -2165
  261. package/dist/tiers.js.map +0 -1
  262. package/dist/virtual.d.ts +0 -641
  263. package/dist/virtual.d.ts.map +0 -1
  264. package/dist/virtual.js +0 -1285
  265. package/dist/virtual.js.map +0 -1
  266. package/dist/virtualcpu.d.ts +0 -316
  267. package/dist/virtualcpu.d.ts.map +0 -1
  268. package/dist/virtualcpu.js +0 -1180
  269. package/dist/virtualcpu.js.map +0 -1
  270. package/dist/virtualgpu.d.ts +0 -345
  271. package/dist/virtualgpu.d.ts.map +0 -1
  272. package/dist/virtualgpu.js +0 -1000
  273. package/dist/virtualgpu.js.map +0 -1
  274. package/dist/virtualization.d.ts +0 -607
  275. package/dist/virtualization.d.ts.map +0 -1
  276. package/dist/virtualization.js +0 -1187
  277. package/dist/virtualization.js.map +0 -1
  278. package/dist/virtualmemory.d.ts +0 -818
  279. package/dist/virtualmemory.d.ts.map +0 -1
  280. package/dist/virtualmemory.js +0 -1796
  281. package/dist/virtualmemory.js.map +0 -1
  282. package/dist/vitest.config.d.ts +0 -3
  283. package/dist/vitest.config.d.ts.map +0 -1
  284. package/dist/vitest.config.js +0 -26
  285. package/dist/vitest.config.js.map +0 -1
  286. package/dist/webscrape.d.ts +0 -720
  287. package/dist/webscrape.d.ts.map +0 -1
  288. package/dist/webscrape.js +0 -2697
  289. package/dist/webscrape.js.map +0 -1
  290. package/docs/CONVERSA.txt +0 -1523
  291. package/docs/architecture-1.8.19.png +0 -0
  292. package/docs/assets/architecture.svg +0 -45
  293. package/docs/assets/saddlemark.svg +0 -13
  294. package/docs/example-localjob.ts +0 -15
  295. package/docs/example-publicapi.ts +0 -7
  296. package/docs/saddle.archive.1.8.17.tar.gz.gpg +0 -0
  297. package/media.ts +0 -1337
  298. package/web/manifest.json +0 -30
  299. package/web/readme.md +0 -383
  300. package/web/tsconfig.json +0 -25
package/dist/virtual.d.ts DELETED
@@ -1,641 +0,0 @@
1
- /**
2
- * virtual.ts — isolation, internal memory, storage and optional persistence contracts.
3
- *
4
- * This file is the v2.0.0 grand-merge consolidation of the former nested
5
- * folders of the repository (memory, storage, persistence) into the single
6
- * root-level domain file of the saddle family standard: one optimized
7
- * TypeScript file per correlated domain, ordinal sections, JSDoc on every
8
- * block, intra-domain imports dissolved, cross-domain imports rewritten to
9
- * ./<domain>.js. Every capability of every source file is preserved here;
10
- * the pure re-export barrels (storage/index.ts) folded their surface into this file directly.
11
- */
12
- import { sha256 } from "./foundation.js";
13
- /**
14
- * memory objects and compute results are serializable contracts between storage and runtime.
15
- */
16
- export declare function memoryobject(options?: {}): {
17
- id: any;
18
- buffer: Uint8Array<ArrayBufferLike>;
19
- size: number;
20
- type: any;
21
- createdat: any;
22
- metadata: any;
23
- };
24
- export declare function computeresult(options?: {}): {
25
- id: any;
26
- payload: any;
27
- mimetype: any;
28
- metadata: any;
29
- processingtimems: any;
30
- memoryusedbytes: any;
31
- };
32
- export declare function tobytes(value: any): Uint8Array<ArrayBufferLike>;
33
- /**
34
- * transforms annotate byte movement without pretending remote storage is physical vram.
35
- */
36
- export declare function transformtocompute(value: any, options?: {}): {
37
- id: any;
38
- buffer: Uint8Array<ArrayBufferLike>;
39
- size: number;
40
- type: any;
41
- createdat: any;
42
- metadata: any;
43
- processingtimems: number;
44
- memoryusedbytes: number;
45
- };
46
- export declare function transformtostorage(value: any, options?: {}): {
47
- id: any;
48
- payload: any;
49
- mimetype: any;
50
- metadata: any;
51
- processingtimems: any;
52
- memoryusedbytes: any;
53
- };
54
- /**
55
- * memory modes expose the same byte contract with different backing choices.
56
- */
57
- export declare function internalmemory(initial?: {}): {
58
- mode: string;
59
- put(key: any, value: any): Promise<{
60
- key: any;
61
- bytes: number;
62
- }>;
63
- get(key: any): Promise<Uint8Array<ArrayBufferLike>>;
64
- delete(key: any): Promise<void>;
65
- list(): Promise<string[]>;
66
- };
67
- export declare function externalmemory(storage: any): {
68
- mode: string;
69
- put(key: any, value: any): Promise<any>;
70
- get(key: any): Promise<any>;
71
- delete(key: any): Promise<any>;
72
- list(prefix: any): Promise<any>;
73
- };
74
- export declare function physicalmemory(options?: {}): {
75
- mode: string;
76
- path: any;
77
- put: any;
78
- get: any;
79
- delete: any;
80
- list: any;
81
- };
82
- export declare function vectorizedmemory(): {
83
- mode: string;
84
- put(key: any, vector: any): Promise<{
85
- key: any;
86
- dimensions: any;
87
- }>;
88
- get(key: any): Promise<any>;
89
- average(keys: any): Promise<number[]>;
90
- list(): Promise<any[]>;
91
- };
92
- export declare function librarymemory(factory: any): {
93
- mode: string;
94
- load(options: any): Promise<any>;
95
- };
96
- export declare function targetfactory(type: any, options?: {}): {
97
- type: any;
98
- platform: any;
99
- owner: any;
100
- repo: any;
101
- branch: any;
102
- path: any;
103
- token: any;
104
- space?: undefined;
105
- dataset?: undefined;
106
- sslverification?: undefined;
107
- namespace?: undefined;
108
- revision?: undefined;
109
- host?: undefined;
110
- method?: undefined;
111
- } | {
112
- platform?: undefined;
113
- owner?: undefined;
114
- branch?: undefined;
115
- type: any;
116
- space: any;
117
- revision: any;
118
- path: any;
119
- token: any;
120
- dataset?: undefined;
121
- sslverification?: undefined;
122
- namespace?: undefined;
123
- repo?: undefined;
124
- host?: undefined;
125
- method?: undefined;
126
- } | {
127
- platform?: undefined;
128
- owner?: undefined;
129
- branch?: undefined;
130
- space?: undefined;
131
- type: any;
132
- dataset: any;
133
- sslverification: any;
134
- path: any;
135
- token: any;
136
- namespace?: undefined;
137
- repo?: undefined;
138
- revision?: undefined;
139
- host?: undefined;
140
- method?: undefined;
141
- } | {
142
- platform?: undefined;
143
- owner?: undefined;
144
- branch?: undefined;
145
- space?: undefined;
146
- dataset?: undefined;
147
- sslverification?: undefined;
148
- type: any;
149
- namespace: any;
150
- repo: any;
151
- revision: any;
152
- path: any;
153
- token: any;
154
- host?: undefined;
155
- method?: undefined;
156
- } | {
157
- platform?: undefined;
158
- owner?: undefined;
159
- branch?: undefined;
160
- space?: undefined;
161
- dataset?: undefined;
162
- sslverification?: undefined;
163
- namespace?: undefined;
164
- repo?: undefined;
165
- revision?: undefined;
166
- type: any;
167
- host: any;
168
- path: any;
169
- method: any;
170
- token: any;
171
- };
172
- export declare function targeturi(target: any): string;
173
- /**
174
- * memory engine loads from the first backend, persists to every backend and
175
- * bounds the hot working set without changing the default unbounded behavior.
176
- */
177
- /** Creates a storage-backed memory engine with optional LRU working-set limits. */
178
- export declare function memoryengine(options?: {}): {
179
- load: (key: any) => Promise<any>;
180
- persist: (key: any, data: any, options?: {}) => Promise<{
181
- id: any;
182
- buffer: Uint8Array<ArrayBufferLike>;
183
- size: number;
184
- type: any;
185
- createdat: any;
186
- metadata: any;
187
- }>;
188
- release: (key: any) => void;
189
- safeload: (key: any) => Promise<{
190
- error?: undefined;
191
- success: boolean;
192
- data: any;
193
- } | {
194
- data?: undefined;
195
- success: boolean;
196
- error: any;
197
- }>;
198
- sync: (key: any, options?: {}) => Promise<any[]>;
199
- capabilities: () => any;
200
- stats: () => {
201
- entries: number;
202
- bytes: number;
203
- hits: number;
204
- misses: number;
205
- evictions: number;
206
- maxentries: number;
207
- maxbytes: number;
208
- };
209
- transformtocompute: typeof transformtocompute;
210
- transformtostorage: typeof transformtostorage;
211
- list(): any[];
212
- };
213
- /**
214
- * working-set planning keeps host memory operations declarative and caller-executed.
215
- */
216
- /** Validates a serializable working-set capacity budget. */
217
- export declare function workingbudget(input?: {}): Readonly<{
218
- maxbytes: number;
219
- maxentries: number;
220
- maxage: number;
221
- }>;
222
- /** Selects bounded working-set candidates without materializing data or probing a host. */
223
- export declare function workingadmission(items: any, options?: {}): Readonly<{
224
- version: 1;
225
- policy: any;
226
- budget: Readonly<{
227
- maxbytes: number;
228
- maxentries: number;
229
- maxage: number;
230
- }>;
231
- usedbytes: number;
232
- admitted: readonly any[];
233
- deferred: readonly any[];
234
- }>;
235
- /** Produces a host bridge plan that an explicit privileged adapter may execute. */
236
- export declare function bridgeplan(input?: {}): Readonly<{
237
- version: 1;
238
- operation: string;
239
- sizebytes: number;
240
- state: "caller-executes" | "unsupported";
241
- preconditions: readonly string[];
242
- cleanup: Readonly<{
243
- required: boolean;
244
- owner: "caller";
245
- }>;
246
- }>;
247
- /** Validates a materialized object record without reading storage or the local filesystem. */
248
- export declare function materializationrecord(input?: {}): Readonly<{
249
- version: 1;
250
- id: string;
251
- sha256: string;
252
- sizebytes: number;
253
- tier: any;
254
- state: any;
255
- createdat: number;
256
- }>;
257
- /** Tracks materialization transitions and emits caller-owned cleanup plans without deleting resources. */
258
- export declare function materializationledger(input?: {}): Readonly<{
259
- add: (record: any) => Readonly<{
260
- version: 1;
261
- id: string;
262
- sha256: string;
263
- sizebytes: number;
264
- tier: any;
265
- state: any;
266
- createdat: number;
267
- }>;
268
- transition: (id: any, state: any) => any;
269
- cleanupplan: (id: any) => Readonly<{
270
- version: 1;
271
- id: any;
272
- sha256: any;
273
- state: "caller-cleans";
274
- reason: "already-cleaned" | "release-working-set";
275
- }>;
276
- list: () => readonly any[];
277
- }>;
278
- /**
279
- * memory bridges materialize and clear temporary working sets.
280
- */
281
- export declare function localmemory(options?: {}): {
282
- prepare(job: any): Promise<{
283
- jobid: any;
284
- location: any;
285
- resultpath: any;
286
- createdat: number;
287
- }>;
288
- sync(set: any, bytes: any): Promise<{
289
- bytes: any;
290
- location: any;
291
- }>;
292
- cleanup(set: any): Promise<void>;
293
- };
294
- /**
295
- * storage adapters keep remote services out of the engine core.
296
- */
297
- export declare function storageadapter(methods: any): any;
298
- /**
299
- * memory storage keeps bytes in a bounded process-local map for browser workers, Deno, Bun and tests.
300
- */
301
- /** Creates a transport-neutral in-memory storage adapter with optional capacity limits. */
302
- export declare function memorystorage(options?: {}): any;
303
- /**
304
- * tiered cache keeps a bounded hot tier and an optional persistent cold tier with stale-while-revalidate.
305
- */
306
- /** Creates a cache with caller supplied encode, decode, clock and persistent storage policies. */
307
- export declare function tieredcache(options?: {}): {
308
- get: (key: any, options?: {}) => Promise<any>;
309
- set: (key: any, value: any, valueoptions?: {}) => Promise<any>;
310
- getorload: (key: any, loader: any, options?: {}) => Promise<any>;
311
- delete: (key: any) => Promise<void>;
312
- clear: () => void;
313
- inspect: () => {
314
- hits: number;
315
- misses: number;
316
- stalehits: number;
317
- evictions: number;
318
- revalidations: number;
319
- hotentries: number;
320
- maxentries: number;
321
- ttl: number;
322
- stale: number;
323
- };
324
- };
325
- /**
326
- * byte collection and hashing are grouped because every storage adapter uses them.
327
- */
328
- export { sha256 };
329
- export declare function collectbytes(input: any): Promise<Uint8Array<ArrayBufferLike>>;
330
- /**
331
- * content addressed storage deduplicates immutable bytes while keeping logical references separate.
332
- */
333
- /** Creates a content-addressed view over a caller supplied storage adapter. */
334
- export declare function contentstorage(storage: any, options?: {}): {
335
- put: (input?: {}) => Promise<{
336
- version: number;
337
- key: string;
338
- objectkey: string;
339
- sha256: string;
340
- sizebytes: number;
341
- contenttype: any;
342
- metadata: any;
343
- }>;
344
- get: (key: any) => Promise<any>;
345
- head: (key: any) => Promise<any>;
346
- delete: (key: any) => Promise<boolean>;
347
- capabilities: {
348
- immutableobjects: boolean;
349
- dedupe: boolean;
350
- references: boolean;
351
- };
352
- };
353
- /**
354
- * storage synchronization compares versioned manifests and keeps conflict policy explicit.
355
- */
356
- /** Describes capabilities exposed by a storage adapter without forcing optional methods. */
357
- export declare function storagecapabilities(storage: any): Readonly<{
358
- range: boolean;
359
- conditional: boolean;
360
- metadata: boolean;
361
- delete: boolean;
362
- }>;
363
- /** Creates a comparable object manifest from bytes and caller metadata. */
364
- export declare function objectmanifest(key: any, data: any, options?: {}): Promise<{
365
- version: number;
366
- key: string;
367
- sizebytes: number;
368
- sha256: string;
369
- updatedat: number;
370
- etag: any;
371
- metadata: any;
372
- }>;
373
- /** Compares two manifests and classifies an update or conflict. */
374
- export declare function comparemanifests(local: any, remote: any): {
375
- state: string;
376
- local?: undefined;
377
- remote?: undefined;
378
- } | {
379
- state: string;
380
- remote: any;
381
- local?: undefined;
382
- } | {
383
- state: string;
384
- local: any;
385
- remote?: undefined;
386
- } | {
387
- state: string;
388
- local: any;
389
- remote: any;
390
- };
391
- /** Synchronizes one logical object between two adapters with explicit conflict handling. */
392
- export declare function syncobject(source: any, target: any, key: any, options?: {}): Promise<{
393
- key: string;
394
- state: string;
395
- manifest: any;
396
- }>;
397
- /** Synchronizes one object to multiple backends and returns each outcome. */
398
- export declare function syncbackends(source: any, targets: any[], key: any, options?: {}): Promise<any[]>;
399
- /**
400
- * chunked storage keeps large payloads split without forcing a database blob.
401
- */
402
- export declare function chunkedstorage(storage: any, options?: {}): {
403
- put(input: any): Promise<{
404
- version: number;
405
- key: any;
406
- sizebytes: number;
407
- chunks: any[];
408
- chunkbytes: any;
409
- sha256: string;
410
- contenttype: any;
411
- status: string;
412
- completed: number;
413
- updatedat: number;
414
- metadata: any;
415
- }>;
416
- get(key: any): Promise<Uint8Array<any>>;
417
- getrange(key: any, start: number, end: any): Promise<Uint8Array<ArrayBuffer>>;
418
- head(key: any): Promise<any>;
419
- delete(key: any): Promise<void>;
420
- list(prefix: any): Promise<any>;
421
- };
422
- /**
423
- * local storage is explicit, temporary friendly, and protected against traversal.
424
- */
425
- export declare function localstorage(root: any): any;
426
- /**
427
- * storage pools combine caller-owned adapters without selecting a provider or creating background work.
428
- */
429
- /** Creates a deterministic pool over explicit caller-owned storage adapters. */
430
- export declare function storagepool(options?: {}): Readonly<{
431
- read: (key: any, options?: {}) => Promise<Readonly<{
432
- version: 1;
433
- key: string;
434
- memberid: any;
435
- data: Uint8Array<ArrayBufferLike>;
436
- sha256: string;
437
- verified: boolean;
438
- manifest: any;
439
- attempts: readonly any[];
440
- budget: Readonly<{
441
- maxattempts: number;
442
- maxbytes: number;
443
- maxmilliseconds: number;
444
- }>;
445
- readat: number;
446
- }>>;
447
- readrange: (key: any, start: any, end: any, options?: {}) => Promise<Readonly<{
448
- version: 1;
449
- key: string;
450
- range: Readonly<{
451
- start: number;
452
- end: number;
453
- }>;
454
- memberid: any;
455
- data: Uint8Array<ArrayBufferLike>;
456
- sha256: string;
457
- verified: boolean;
458
- attempts: readonly any[];
459
- budget: Readonly<{
460
- maxattempts: number;
461
- maxbytes: number;
462
- maxmilliseconds: number;
463
- }>;
464
- readat: number;
465
- }>>;
466
- put: (input?: {}, options?: {}) => Promise<Readonly<{
467
- version: 1;
468
- key: string;
469
- sha256: string;
470
- sizebytes: number;
471
- mode: any;
472
- quorum: number;
473
- state: "complete" | "partial";
474
- results: readonly any[];
475
- written: number;
476
- budget: Readonly<{
477
- maxattempts: number;
478
- maxbytes: number;
479
- maxmilliseconds: number;
480
- }>;
481
- writtenat: number;
482
- }>>;
483
- repairplan: (key: any, options?: {}) => Readonly<{
484
- version: 1;
485
- key: string;
486
- sourceid: string;
487
- sha256: string;
488
- targets: any;
489
- action: "caller-executes";
490
- }>;
491
- restoreplan: (key: any, options?: {}) => Readonly<{
492
- version: 1;
493
- key: string;
494
- sha256: string;
495
- action: "caller-restores";
496
- candidates: any;
497
- }>;
498
- members: () => Readonly<{
499
- id: any;
500
- priority: any;
501
- }>[];
502
- capabilities: () => {
503
- id: string;
504
- priority: number;
505
- capabilities: Readonly<{
506
- range: boolean;
507
- conditional: boolean;
508
- metadata: boolean;
509
- delete: boolean;
510
- }>;
511
- }[];
512
- metrics: () => {
513
- reads: number;
514
- writes: number;
515
- hits: number;
516
- misses: number;
517
- mismatches: number;
518
- bytes: number;
519
- attempts: number;
520
- elapsedms: number;
521
- };
522
- }>;
523
- /**
524
- * s3 compatible storage stays open by accepting a caller supplied signer.
525
- * List operations use the S3 ListObjectsV2 contract without owning credentials.
526
- */
527
- /** Creates an S3-compatible adapter with signed CRUD and paginated listing. */
528
- export declare function s3compatible(options?: {}): any;
529
- /**
530
- * github contents storage maps artifacts to repository files through an injected token.
531
- */
532
- export declare function githubcontents(options?: {}): any;
533
- /**
534
- * file hosting adapter accepts a caller supplied request function for s3compatible or webdav.
535
- */
536
- export declare function filehosting(options?: {}): any;
537
- /**
538
- * the schema descriptor is neutral so prisma drizzle mysql2 or another driver can map it.
539
- */
540
- export declare const schemadefinition: Readonly<{
541
- jobs: {
542
- id: string;
543
- name: string;
544
- status: string;
545
- priority: string;
546
- input: string;
547
- outputkey: string;
548
- createdat: string;
549
- updatedat: string;
550
- };
551
- events: {
552
- id: string;
553
- jobid: string;
554
- type: string;
555
- at: string;
556
- data: string;
557
- };
558
- sessions: {
559
- id: string;
560
- version: string;
561
- agentname: string;
562
- originurl: string;
563
- seed: string;
564
- status: string;
565
- startedat: string;
566
- finishedat: string;
567
- events: string;
568
- };
569
- artifacts: {
570
- key: string;
571
- sizebytes: string;
572
- sha256: string;
573
- contenttype: string;
574
- createdat: string;
575
- metadata: string;
576
- };
577
- chunks: {
578
- id: string;
579
- artifactkey: string;
580
- index: string;
581
- offset: string;
582
- sizebytes: string;
583
- sha256: string;
584
- storagekey: string;
585
- };
586
- queueitems: {
587
- id: string;
588
- status: string;
589
- attempts: string;
590
- payload: string;
591
- result: string;
592
- error: string;
593
- createdat: string;
594
- updatedat: string;
595
- };
596
- }>;
597
- export declare function schemasql(options?: {}): string[];
598
- export declare function prismaschema(): string;
599
- /**
600
- * persistence adapters keep database and remote state outside the runtime core.
601
- */
602
- export declare function persistenceadapter(methods: any): any;
603
- /**
604
- * memory persistence is the local baseline for tests and offline operation.
605
- */
606
- export declare function memorypersistence(): any;
607
- /**
608
- * sql persistence keeps query execution injected for mysql2 drizzle or another sql client.
609
- */
610
- export declare function sqlpersistence(options?: {}): any;
611
- export declare function mysql2persistence(pool: any, options?: {}): any;
612
- /**
613
- * drizzle persistence accepts a small repository object generated by the caller's schema.
614
- */
615
- export declare function drizzlepersistence(repository: any): any;
616
- /**
617
- * prisma persistence maps model delegates through an explicit model configuration.
618
- */
619
- export declare function prismapersistence(client: any, options?: {}): any;
620
- /**
621
- * migration plans stay neutral so Prisma, Drizzle, MySQL2, Turso, and another SQL driver can map them.
622
- */
623
- export declare const migrationlist: readonly {
624
- version: number;
625
- name: string;
626
- tables: string[];
627
- }[];
628
- /** Returns pending migration statements for a dialect. */
629
- export declare function migrationplan(options?: {
630
- current?: number;
631
- dialect?: string;
632
- }): {
633
- version: number;
634
- name: string;
635
- tables: string[];
636
- statements: string[];
637
- dialect: string;
638
- }[];
639
- /** Returns the latest schema version. */
640
- export declare function latestmigration(): number;
641
- //# sourceMappingURL=virtual.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virtual.d.ts","sourceRoot":"","sources":["../virtual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAsC,MAAM,EAA2C,MAAM,iBAAiB,CAAC;AAKtH;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,KAAK;;;;;;;EAGxC;AAED,wBAAgB,aAAa,CAAC,OAAO,KAAK;IAC/B,EAAE;IAAoD,OAAO;IAAmB,QAAQ;IAAoB,QAAQ;IAAmC,gBAAgB;IAAiC,eAAe;EACjO;AAED,wBAAgB,OAAO,CAAC,KAAK,KAAA,+BAK5B;AAKD;;GAEG;AAEH,wBAAgB,kBAAkB,CAAC,KAAK,KAAA,EAAE,OAAO,KAAK;;;;;;;;;EAIrD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,KAAA,EAAE,OAAO,KAAK;;;;;;;EAGrD;AAKD;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,KAAK;;;;;;;;;EAS1C;AAED,wBAAgB,cAAc,CAAC,OAAO,KAAA;;;;;;EASrC;AAED,wBAAgB,cAAc,CAAC,OAAO,KAAK;IAEhC,IAAI;IAAc,IAAI;IAAgB,GAAG;IAAe,GAAG;IAAe,MAAM;IAAkB,IAAI;EAChH;AAED,wBAAgB,gBAAgB;;;;;;;;;EAS/B;AAED,wBAAgB,aAAa,CAAC,OAAO,KAAA;;;EAGpC;AAoBD,wBAAgB,aA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