@flop-labs/sdk 0.0.0-stage → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (617) hide show
  1. package/CHANGELOG.md +315 -0
  2. package/LICENSE +238 -0
  3. package/README.md +622 -2
  4. package/dist/a2a/agent-card.d.ts +56 -0
  5. package/dist/a2a/agent-card.d.ts.map +1 -0
  6. package/dist/a2a/agent-card.js +111 -0
  7. package/dist/a2a/agent-card.js.map +1 -0
  8. package/dist/a2a/index.d.ts +11 -0
  9. package/dist/a2a/index.d.ts.map +1 -0
  10. package/dist/a2a/index.js +11 -0
  11. package/dist/a2a/index.js.map +1 -0
  12. package/dist/a2a/task-lifecycle.d.ts +41 -0
  13. package/dist/a2a/task-lifecycle.d.ts.map +1 -0
  14. package/dist/a2a/task-lifecycle.js +60 -0
  15. package/dist/a2a/task-lifecycle.js.map +1 -0
  16. package/dist/a2a/types.d.ts +96 -0
  17. package/dist/a2a/types.d.ts.map +1 -0
  18. package/dist/a2a/types.js +23 -0
  19. package/dist/a2a/types.js.map +1 -0
  20. package/dist/a2a-cjs/agent-card.js +115 -0
  21. package/dist/a2a-cjs/agent-card.js.map +1 -0
  22. package/dist/a2a-cjs/index.js +21 -0
  23. package/dist/a2a-cjs/index.js.map +1 -0
  24. package/dist/a2a-cjs/package.json +1 -0
  25. package/dist/a2a-cjs/task-lifecycle.js +64 -0
  26. package/dist/a2a-cjs/task-lifecycle.js.map +1 -0
  27. package/dist/a2a-cjs/types.js +26 -0
  28. package/dist/a2a-cjs/types.js.map +1 -0
  29. package/dist/adaptor.d.ts +39 -0
  30. package/dist/adaptor.d.ts.map +1 -0
  31. package/dist/adaptor.js +130 -0
  32. package/dist/adaptor.js.map +1 -0
  33. package/dist/agent/errors.d.ts +95 -0
  34. package/dist/agent/errors.d.ts.map +1 -0
  35. package/dist/agent/errors.js +132 -0
  36. package/dist/agent/errors.js.map +1 -0
  37. package/dist/agent/task-delegation.d.ts +283 -0
  38. package/dist/agent/task-delegation.d.ts.map +1 -0
  39. package/dist/agent/task-delegation.js +444 -0
  40. package/dist/agent/task-delegation.js.map +1 -0
  41. package/dist/agent/types.d.ts +19 -0
  42. package/dist/agent/types.d.ts.map +1 -0
  43. package/dist/agent/types.js +7 -0
  44. package/dist/agent/types.js.map +1 -0
  45. package/dist/agent-wallet.d.ts +197 -0
  46. package/dist/agent-wallet.d.ts.map +1 -0
  47. package/dist/agent-wallet.js +408 -0
  48. package/dist/agent-wallet.js.map +1 -0
  49. package/dist/amhl.d.ts +61 -0
  50. package/dist/amhl.d.ts.map +1 -0
  51. package/dist/amhl.js +161 -0
  52. package/dist/amhl.js.map +1 -0
  53. package/dist/attestation.d.ts +126 -0
  54. package/dist/attestation.d.ts.map +1 -0
  55. package/dist/attestation.js +287 -0
  56. package/dist/attestation.js.map +1 -0
  57. package/dist/bip340-adaptor.d.ts +8 -0
  58. package/dist/bip340-adaptor.d.ts.map +1 -0
  59. package/dist/bip340-adaptor.js +129 -0
  60. package/dist/bip340-adaptor.js.map +1 -0
  61. package/dist/btc-relayer.d.ts +42 -0
  62. package/dist/btc-relayer.d.ts.map +1 -0
  63. package/dist/btc-relayer.js +40 -0
  64. package/dist/btc-relayer.js.map +1 -0
  65. package/dist/bundle/index.esm.js +2 -0
  66. package/dist/bundle/index.esm.js.map +1 -0
  67. package/dist/bundle/index.umd.cjs +2 -0
  68. package/dist/bundle/index.umd.cjs.map +1 -0
  69. package/dist/capability-claim-sink.d.ts +5 -0
  70. package/dist/capability-claim-sink.d.ts.map +1 -0
  71. package/dist/capability-claim-sink.js +6 -0
  72. package/dist/capability-claim-sink.js.map +1 -0
  73. package/dist/chain.d.ts +63 -0
  74. package/dist/chain.d.ts.map +1 -0
  75. package/dist/chain.js +100 -0
  76. package/dist/chain.js.map +1 -0
  77. package/dist/client.d.ts +356 -0
  78. package/dist/client.d.ts.map +1 -0
  79. package/dist/client.js +863 -0
  80. package/dist/client.js.map +1 -0
  81. package/dist/compute-channel/adaptor-settlement.d.ts +19 -0
  82. package/dist/compute-channel/adaptor-settlement.d.ts.map +1 -0
  83. package/dist/compute-channel/adaptor-settlement.js +40 -0
  84. package/dist/compute-channel/adaptor-settlement.js.map +1 -0
  85. package/dist/compute-channel/agent-client.d.ts +141 -0
  86. package/dist/compute-channel/agent-client.d.ts.map +1 -0
  87. package/dist/compute-channel/agent-client.js +265 -0
  88. package/dist/compute-channel/agent-client.js.map +1 -0
  89. package/dist/compute-channel/agent-driver.d.ts +59 -0
  90. package/dist/compute-channel/agent-driver.d.ts.map +1 -0
  91. package/dist/compute-channel/agent-driver.js +364 -0
  92. package/dist/compute-channel/agent-driver.js.map +1 -0
  93. package/dist/compute-channel/chain.d.ts +245 -0
  94. package/dist/compute-channel/chain.d.ts.map +1 -0
  95. package/dist/compute-channel/chain.js +490 -0
  96. package/dist/compute-channel/chain.js.map +1 -0
  97. package/dist/compute-channel/chat-render.d.ts +21 -0
  98. package/dist/compute-channel/chat-render.d.ts.map +1 -0
  99. package/dist/compute-channel/chat-render.js +87 -0
  100. package/dist/compute-channel/chat-render.js.map +1 -0
  101. package/dist/compute-channel/crypto.d.ts +19 -0
  102. package/dist/compute-channel/crypto.d.ts.map +1 -0
  103. package/dist/compute-channel/crypto.js +52 -0
  104. package/dist/compute-channel/crypto.js.map +1 -0
  105. package/dist/compute-channel/da.d.ts +111 -0
  106. package/dist/compute-channel/da.d.ts.map +1 -0
  107. package/dist/compute-channel/da.js +320 -0
  108. package/dist/compute-channel/da.js.map +1 -0
  109. package/dist/compute-channel/deepseek-v41.d.ts +56 -0
  110. package/dist/compute-channel/deepseek-v41.d.ts.map +1 -0
  111. package/dist/compute-channel/deepseek-v41.js +267 -0
  112. package/dist/compute-channel/deepseek-v41.js.map +1 -0
  113. package/dist/compute-channel/direct-session-chain.d.ts +3 -0
  114. package/dist/compute-channel/direct-session-chain.d.ts.map +1 -0
  115. package/dist/compute-channel/direct-session-chain.js +245 -0
  116. package/dist/compute-channel/direct-session-chain.js.map +1 -0
  117. package/dist/compute-channel/direct-session.d.ts +78 -0
  118. package/dist/compute-channel/direct-session.d.ts.map +1 -0
  119. package/dist/compute-channel/direct-session.js +208 -0
  120. package/dist/compute-channel/direct-session.js.map +1 -0
  121. package/dist/compute-channel/dispute.d.ts +103 -0
  122. package/dist/compute-channel/dispute.d.ts.map +1 -0
  123. package/dist/compute-channel/dispute.js +314 -0
  124. package/dist/compute-channel/dispute.js.map +1 -0
  125. package/dist/compute-channel/flop-meter.d.ts +96 -0
  126. package/dist/compute-channel/flop-meter.d.ts.map +1 -0
  127. package/dist/compute-channel/flop-meter.js +210 -0
  128. package/dist/compute-channel/flop-meter.js.map +1 -0
  129. package/dist/compute-channel/flop-submitter.d.ts +40 -0
  130. package/dist/compute-channel/flop-submitter.d.ts.map +1 -0
  131. package/dist/compute-channel/flop-submitter.js +134 -0
  132. package/dist/compute-channel/flop-submitter.js.map +1 -0
  133. package/dist/compute-channel/hybrid-candidate.d.ts +22 -0
  134. package/dist/compute-channel/hybrid-candidate.d.ts.map +1 -0
  135. package/dist/compute-channel/hybrid-candidate.js +155 -0
  136. package/dist/compute-channel/hybrid-candidate.js.map +1 -0
  137. package/dist/compute-channel/hybrid-metering.d.ts +36 -0
  138. package/dist/compute-channel/hybrid-metering.d.ts.map +1 -0
  139. package/dist/compute-channel/hybrid-metering.js +69 -0
  140. package/dist/compute-channel/hybrid-metering.js.map +1 -0
  141. package/dist/compute-channel/hybrid.d.ts +16 -0
  142. package/dist/compute-channel/hybrid.d.ts.map +1 -0
  143. package/dist/compute-channel/hybrid.js +98 -0
  144. package/dist/compute-channel/hybrid.js.map +1 -0
  145. package/dist/compute-channel/index.d.ts +47 -0
  146. package/dist/compute-channel/index.d.ts.map +1 -0
  147. package/dist/compute-channel/index.js +48 -0
  148. package/dist/compute-channel/index.js.map +1 -0
  149. package/dist/compute-channel/lane-producer.d.ts +92 -0
  150. package/dist/compute-channel/lane-producer.d.ts.map +1 -0
  151. package/dist/compute-channel/lane-producer.js +265 -0
  152. package/dist/compute-channel/lane-producer.js.map +1 -0
  153. package/dist/compute-channel/layered.d.ts +77 -0
  154. package/dist/compute-channel/layered.d.ts.map +1 -0
  155. package/dist/compute-channel/layered.js +220 -0
  156. package/dist/compute-channel/layered.js.map +1 -0
  157. package/dist/compute-channel/lineage.d.ts +19 -0
  158. package/dist/compute-channel/lineage.d.ts.map +1 -0
  159. package/dist/compute-channel/lineage.js +28 -0
  160. package/dist/compute-channel/lineage.js.map +1 -0
  161. package/dist/compute-channel/miner-host.d.ts +329 -0
  162. package/dist/compute-channel/miner-host.d.ts.map +1 -0
  163. package/dist/compute-channel/miner-host.js +880 -0
  164. package/dist/compute-channel/miner-host.js.map +1 -0
  165. package/dist/compute-channel/model-config.d.ts +87 -0
  166. package/dist/compute-channel/model-config.d.ts.map +1 -0
  167. package/dist/compute-channel/model-config.js +697 -0
  168. package/dist/compute-channel/model-config.js.map +1 -0
  169. package/dist/compute-channel/offers.d.ts +57 -0
  170. package/dist/compute-channel/offers.d.ts.map +1 -0
  171. package/dist/compute-channel/offers.js +182 -0
  172. package/dist/compute-channel/offers.js.map +1 -0
  173. package/dist/compute-channel/point-claim-sink.d.ts +5 -0
  174. package/dist/compute-channel/point-claim-sink.d.ts.map +1 -0
  175. package/dist/compute-channel/point-claim-sink.js +6 -0
  176. package/dist/compute-channel/point-claim-sink.js.map +1 -0
  177. package/dist/compute-channel/protocol.d.ts +243 -0
  178. package/dist/compute-channel/protocol.d.ts.map +1 -0
  179. package/dist/compute-channel/protocol.js +249 -0
  180. package/dist/compute-channel/protocol.js.map +1 -0
  181. package/dist/compute-channel/runtime-storage.d.ts +6 -0
  182. package/dist/compute-channel/runtime-storage.d.ts.map +1 -0
  183. package/dist/compute-channel/runtime-storage.js +11 -0
  184. package/dist/compute-channel/runtime-storage.js.map +1 -0
  185. package/dist/compute-channel/sampled-audit.d.ts +24 -0
  186. package/dist/compute-channel/sampled-audit.d.ts.map +1 -0
  187. package/dist/compute-channel/sampled-audit.js +97 -0
  188. package/dist/compute-channel/sampled-audit.js.map +1 -0
  189. package/dist/compute-channel/session-auth.d.ts +6 -0
  190. package/dist/compute-channel/session-auth.d.ts.map +1 -0
  191. package/dist/compute-channel/session-auth.js +23 -0
  192. package/dist/compute-channel/session-auth.js.map +1 -0
  193. package/dist/compute-channel/session-estimate.d.ts +103 -0
  194. package/dist/compute-channel/session-estimate.d.ts.map +1 -0
  195. package/dist/compute-channel/session-estimate.js +140 -0
  196. package/dist/compute-channel/session-estimate.js.map +1 -0
  197. package/dist/compute-channel/session-prior-bank.d.ts +61 -0
  198. package/dist/compute-channel/session-prior-bank.d.ts.map +1 -0
  199. package/dist/compute-channel/session-prior-bank.js +74 -0
  200. package/dist/compute-channel/session-prior-bank.js.map +1 -0
  201. package/dist/compute-channel/session-prior.d.ts +145 -0
  202. package/dist/compute-channel/session-prior.d.ts.map +1 -0
  203. package/dist/compute-channel/session-prior.js +325 -0
  204. package/dist/compute-channel/session-prior.js.map +1 -0
  205. package/dist/compute-channel/session-store.d.ts +51 -0
  206. package/dist/compute-channel/session-store.d.ts.map +1 -0
  207. package/dist/compute-channel/session-store.js +186 -0
  208. package/dist/compute-channel/session-store.js.map +1 -0
  209. package/dist/compute-channel/session.d.ts +120 -0
  210. package/dist/compute-channel/session.d.ts.map +1 -0
  211. package/dist/compute-channel/session.js +232 -0
  212. package/dist/compute-channel/session.js.map +1 -0
  213. package/dist/compute-channel/toploc-checker.d.ts +384 -0
  214. package/dist/compute-channel/toploc-checker.d.ts.map +1 -0
  215. package/dist/compute-channel/toploc-checker.js +794 -0
  216. package/dist/compute-channel/toploc-checker.js.map +1 -0
  217. package/dist/compute-channel/toploc-completion-rpc.d.ts +26 -0
  218. package/dist/compute-channel/toploc-completion-rpc.d.ts.map +1 -0
  219. package/dist/compute-channel/toploc-completion-rpc.js +391 -0
  220. package/dist/compute-channel/toploc-completion-rpc.js.map +1 -0
  221. package/dist/compute-channel/toploc-completion.d.ts +109 -0
  222. package/dist/compute-channel/toploc-completion.d.ts.map +1 -0
  223. package/dist/compute-channel/toploc-completion.js +301 -0
  224. package/dist/compute-channel/toploc-completion.js.map +1 -0
  225. package/dist/compute-channel/toploc-evidence.d.ts +185 -0
  226. package/dist/compute-channel/toploc-evidence.d.ts.map +1 -0
  227. package/dist/compute-channel/toploc-evidence.js +299 -0
  228. package/dist/compute-channel/toploc-evidence.js.map +1 -0
  229. package/dist/compute-channel/toploc-gumbel.d.ts +149 -0
  230. package/dist/compute-channel/toploc-gumbel.d.ts.map +1 -0
  231. package/dist/compute-channel/toploc-gumbel.js +245 -0
  232. package/dist/compute-channel/toploc-gumbel.js.map +1 -0
  233. package/dist/compute-channel/toploc.d.ts +63 -0
  234. package/dist/compute-channel/toploc.d.ts.map +1 -0
  235. package/dist/compute-channel/toploc.js +197 -0
  236. package/dist/compute-channel/toploc.js.map +1 -0
  237. package/dist/compute-channel/transcript.d.ts +127 -0
  238. package/dist/compute-channel/transcript.d.ts.map +1 -0
  239. package/dist/compute-channel/transcript.js +279 -0
  240. package/dist/compute-channel/transcript.js.map +1 -0
  241. package/dist/compute-channel/transport-http.d.ts +217 -0
  242. package/dist/compute-channel/transport-http.d.ts.map +1 -0
  243. package/dist/compute-channel/transport-http.js +625 -0
  244. package/dist/compute-channel/transport-http.js.map +1 -0
  245. package/dist/coordination.d.ts +341 -0
  246. package/dist/coordination.d.ts.map +1 -0
  247. package/dist/coordination.js +481 -0
  248. package/dist/coordination.js.map +1 -0
  249. package/dist/da-client.d.ts +124 -0
  250. package/dist/da-client.d.ts.map +1 -0
  251. package/dist/da-client.js +127 -0
  252. package/dist/da-client.js.map +1 -0
  253. package/dist/discovery/capabilities.d.ts +129 -0
  254. package/dist/discovery/capabilities.d.ts.map +1 -0
  255. package/dist/discovery/capabilities.js +398 -0
  256. package/dist/discovery/capabilities.js.map +1 -0
  257. package/dist/discovery/discovery-service.d.ts +476 -0
  258. package/dist/discovery/discovery-service.d.ts.map +1 -0
  259. package/dist/discovery/discovery-service.js +1005 -0
  260. package/dist/discovery/discovery-service.js.map +1 -0
  261. package/dist/discovery/examples.d.ts +50 -0
  262. package/dist/discovery/examples.d.ts.map +1 -0
  263. package/dist/discovery/examples.js +163 -0
  264. package/dist/discovery/examples.js.map +1 -0
  265. package/dist/discovery/fee-estimation.d.ts +550 -0
  266. package/dist/discovery/fee-estimation.d.ts.map +1 -0
  267. package/dist/discovery/fee-estimation.js +921 -0
  268. package/dist/discovery/fee-estimation.js.map +1 -0
  269. package/dist/discovery/index.d.ts +38 -0
  270. package/dist/discovery/index.d.ts.map +1 -0
  271. package/dist/discovery/index.js +32 -0
  272. package/dist/discovery/index.js.map +1 -0
  273. package/dist/discovery/metered-pricing.d.ts +100 -0
  274. package/dist/discovery/metered-pricing.d.ts.map +1 -0
  275. package/dist/discovery/metered-pricing.js +150 -0
  276. package/dist/discovery/metered-pricing.js.map +1 -0
  277. package/dist/discovery/priority.d.ts +16 -0
  278. package/dist/discovery/priority.d.ts.map +1 -0
  279. package/dist/discovery/priority.js +17 -0
  280. package/dist/discovery/priority.js.map +1 -0
  281. package/dist/discovery/scoring.d.ts +231 -0
  282. package/dist/discovery/scoring.d.ts.map +1 -0
  283. package/dist/discovery/scoring.js +354 -0
  284. package/dist/discovery/scoring.js.map +1 -0
  285. package/dist/ecdsa-adaptor.d.ts +72 -0
  286. package/dist/ecdsa-adaptor.d.ts.map +1 -0
  287. package/dist/ecdsa-adaptor.js +351 -0
  288. package/dist/ecdsa-adaptor.js.map +1 -0
  289. package/dist/errors.d.ts +98 -0
  290. package/dist/errors.d.ts.map +1 -0
  291. package/dist/errors.js +190 -0
  292. package/dist/errors.js.map +1 -0
  293. package/dist/escrow.d.ts +116 -0
  294. package/dist/escrow.d.ts.map +1 -0
  295. package/dist/escrow.js +172 -0
  296. package/dist/escrow.js.map +1 -0
  297. package/dist/evm-relayer.d.ts +12 -0
  298. package/dist/evm-relayer.d.ts.map +1 -0
  299. package/dist/evm-relayer.js +25 -0
  300. package/dist/evm-relayer.js.map +1 -0
  301. package/dist/experimental.d.ts +3 -0
  302. package/dist/experimental.d.ts.map +1 -0
  303. package/dist/experimental.js +3 -0
  304. package/dist/experimental.js.map +1 -0
  305. package/dist/faucet.d.ts +141 -0
  306. package/dist/faucet.d.ts.map +1 -0
  307. package/dist/faucet.js +312 -0
  308. package/dist/faucet.js.map +1 -0
  309. package/dist/finality-status.d.ts +21 -0
  310. package/dist/finality-status.d.ts.map +1 -0
  311. package/dist/finality-status.js +10 -0
  312. package/dist/finality-status.js.map +1 -0
  313. package/dist/generated-client/capabilities.d.ts +83 -0
  314. package/dist/generated-client/capabilities.d.ts.map +1 -0
  315. package/dist/generated-client/capabilities.js +87 -0
  316. package/dist/generated-client/capabilities.js.map +1 -0
  317. package/dist/generated-client/cli.d.ts +3 -0
  318. package/dist/generated-client/cli.d.ts.map +1 -0
  319. package/dist/generated-client/cli.js +33 -0
  320. package/dist/generated-client/cli.js.map +1 -0
  321. package/dist/generated-client/errors.d.ts +13 -0
  322. package/dist/generated-client/errors.d.ts.map +1 -0
  323. package/dist/generated-client/errors.js +23 -0
  324. package/dist/generated-client/errors.js.map +1 -0
  325. package/dist/generated-client/factory.d.ts +28 -0
  326. package/dist/generated-client/factory.d.ts.map +1 -0
  327. package/dist/generated-client/factory.js +182 -0
  328. package/dist/generated-client/factory.js.map +1 -0
  329. package/dist/generated-client/generator.d.ts +9 -0
  330. package/dist/generated-client/generator.d.ts.map +1 -0
  331. package/dist/generated-client/generator.js +80 -0
  332. package/dist/generated-client/generator.js.map +1 -0
  333. package/dist/generated-client/index.d.ts +11 -0
  334. package/dist/generated-client/index.d.ts.map +1 -0
  335. package/dist/generated-client/index.js +6 -0
  336. package/dist/generated-client/index.js.map +1 -0
  337. package/dist/generated-client/profile.d.ts +166 -0
  338. package/dist/generated-client/profile.d.ts.map +1 -0
  339. package/dist/generated-client/profile.js +158 -0
  340. package/dist/generated-client/profile.js.map +1 -0
  341. package/dist/generated-client/templates/agent-chat.d.ts +16 -0
  342. package/dist/generated-client/templates/agent-chat.d.ts.map +1 -0
  343. package/dist/generated-client/templates/agent-chat.js +12 -0
  344. package/dist/generated-client/templates/agent-chat.js.map +1 -0
  345. package/dist/generated-client/templates/index.d.ts +4 -0
  346. package/dist/generated-client/templates/index.d.ts.map +1 -0
  347. package/dist/generated-client/templates/index.js +4 -0
  348. package/dist/generated-client/templates/index.js.map +1 -0
  349. package/dist/generated-client/templates/miner-operator.d.ts +16 -0
  350. package/dist/generated-client/templates/miner-operator.d.ts.map +1 -0
  351. package/dist/generated-client/templates/miner-operator.js +12 -0
  352. package/dist/generated-client/templates/miner-operator.js.map +1 -0
  353. package/dist/generated-client/templates/model-publisher.d.ts +21 -0
  354. package/dist/generated-client/templates/model-publisher.d.ts.map +1 -0
  355. package/dist/generated-client/templates/model-publisher.js +13 -0
  356. package/dist/generated-client/templates/model-publisher.js.map +1 -0
  357. package/dist/hardware.d.ts +68 -0
  358. package/dist/hardware.d.ts.map +1 -0
  359. package/dist/hardware.js +222 -0
  360. package/dist/hardware.js.map +1 -0
  361. package/dist/index.d.ts +109 -0
  362. package/dist/index.d.ts.map +1 -0
  363. package/dist/index.js +140 -0
  364. package/dist/index.js.map +1 -0
  365. package/dist/model-loader/canonical.d.ts +79 -0
  366. package/dist/model-loader/canonical.d.ts.map +1 -0
  367. package/dist/model-loader/canonical.js +116 -0
  368. package/dist/model-loader/canonical.js.map +1 -0
  369. package/dist/model-loader/dir.d.ts +26 -0
  370. package/dist/model-loader/dir.d.ts.map +1 -0
  371. package/dist/model-loader/dir.js +109 -0
  372. package/dist/model-loader/dir.js.map +1 -0
  373. package/dist/model-loader/dmverity.d.ts +78 -0
  374. package/dist/model-loader/dmverity.d.ts.map +1 -0
  375. package/dist/model-loader/dmverity.js +141 -0
  376. package/dist/model-loader/dmverity.js.map +1 -0
  377. package/dist/model-loader/download-state.d.ts +24 -0
  378. package/dist/model-loader/download-state.d.ts.map +1 -0
  379. package/dist/model-loader/download-state.js +99 -0
  380. package/dist/model-loader/download-state.js.map +1 -0
  381. package/dist/model-loader/fetch.d.ts +51 -0
  382. package/dist/model-loader/fetch.d.ts.map +1 -0
  383. package/dist/model-loader/fetch.js +410 -0
  384. package/dist/model-loader/fetch.js.map +1 -0
  385. package/dist/model-loader/file-table.d.ts +38 -0
  386. package/dist/model-loader/file-table.d.ts.map +1 -0
  387. package/dist/model-loader/file-table.js +106 -0
  388. package/dist/model-loader/file-table.js.map +1 -0
  389. package/dist/model-loader/hf-preflight.d.ts +65 -0
  390. package/dist/model-loader/hf-preflight.d.ts.map +1 -0
  391. package/dist/model-loader/hf-preflight.js +179 -0
  392. package/dist/model-loader/hf-preflight.js.map +1 -0
  393. package/dist/model-loader/index.d.ts +27 -0
  394. package/dist/model-loader/index.d.ts.map +1 -0
  395. package/dist/model-loader/index.js +21 -0
  396. package/dist/model-loader/index.js.map +1 -0
  397. package/dist/model-loader/registry.d.ts +24 -0
  398. package/dist/model-loader/registry.d.ts.map +1 -0
  399. package/dist/model-loader/registry.js +105 -0
  400. package/dist/model-loader/registry.js.map +1 -0
  401. package/dist/model-loader/types.d.ts +101 -0
  402. package/dist/model-loader/types.d.ts.map +1 -0
  403. package/dist/model-loader/types.js +13 -0
  404. package/dist/model-loader/types.js.map +1 -0
  405. package/dist/model-loader/verify.d.ts +83 -0
  406. package/dist/model-loader/verify.d.ts.map +1 -0
  407. package/dist/model-loader/verify.js +138 -0
  408. package/dist/model-loader/verify.js.map +1 -0
  409. package/dist/model-qualification.d.ts +79 -0
  410. package/dist/model-qualification.d.ts.map +1 -0
  411. package/dist/model-qualification.js +135 -0
  412. package/dist/model-qualification.js.map +1 -0
  413. package/dist/near-relayer.d.ts +30 -0
  414. package/dist/near-relayer.d.ts.map +1 -0
  415. package/dist/near-relayer.js +81 -0
  416. package/dist/near-relayer.js.map +1 -0
  417. package/dist/paid-storage/bytes.d.ts +21 -0
  418. package/dist/paid-storage/bytes.d.ts.map +1 -0
  419. package/dist/paid-storage/bytes.js +71 -0
  420. package/dist/paid-storage/bytes.js.map +1 -0
  421. package/dist/paid-storage/chain.d.ts +20 -0
  422. package/dist/paid-storage/chain.d.ts.map +1 -0
  423. package/dist/paid-storage/chain.js +182 -0
  424. package/dist/paid-storage/chain.js.map +1 -0
  425. package/dist/paid-storage/client.d.ts +161 -0
  426. package/dist/paid-storage/client.d.ts.map +1 -0
  427. package/dist/paid-storage/client.js +1038 -0
  428. package/dist/paid-storage/client.js.map +1 -0
  429. package/dist/paid-storage/cloudflare.d.ts +4 -0
  430. package/dist/paid-storage/cloudflare.d.ts.map +1 -0
  431. package/dist/paid-storage/cloudflare.js +9 -0
  432. package/dist/paid-storage/cloudflare.js.map +1 -0
  433. package/dist/paid-storage/codec.d.ts +8 -0
  434. package/dist/paid-storage/codec.d.ts.map +1 -0
  435. package/dist/paid-storage/codec.js +92 -0
  436. package/dist/paid-storage/codec.js.map +1 -0
  437. package/dist/paid-storage/crypto.d.ts +27 -0
  438. package/dist/paid-storage/crypto.d.ts.map +1 -0
  439. package/dist/paid-storage/crypto.js +91 -0
  440. package/dist/paid-storage/crypto.js.map +1 -0
  441. package/dist/paid-storage/heads.d.ts +26 -0
  442. package/dist/paid-storage/heads.d.ts.map +1 -0
  443. package/dist/paid-storage/heads.js +208 -0
  444. package/dist/paid-storage/heads.js.map +1 -0
  445. package/dist/paid-storage/index.d.ts +14 -0
  446. package/dist/paid-storage/index.d.ts.map +1 -0
  447. package/dist/paid-storage/index.js +7 -0
  448. package/dist/paid-storage/index.js.map +1 -0
  449. package/dist/paid-storage/memory-wire.d.ts +85 -0
  450. package/dist/paid-storage/memory-wire.d.ts.map +1 -0
  451. package/dist/paid-storage/memory-wire.js +147 -0
  452. package/dist/paid-storage/memory-wire.js.map +1 -0
  453. package/dist/paid-storage/node-store.d.ts +9 -0
  454. package/dist/paid-storage/node-store.d.ts.map +1 -0
  455. package/dist/paid-storage/node-store.js +34 -0
  456. package/dist/paid-storage/node-store.js.map +1 -0
  457. package/dist/paid-storage/profile.d.ts +21 -0
  458. package/dist/paid-storage/profile.d.ts.map +1 -0
  459. package/dist/paid-storage/profile.js +22 -0
  460. package/dist/paid-storage/profile.js.map +1 -0
  461. package/dist/paid-storage/store.d.ts +18 -0
  462. package/dist/paid-storage/store.d.ts.map +1 -0
  463. package/dist/paid-storage/store.js +32 -0
  464. package/dist/paid-storage/store.js.map +1 -0
  465. package/dist/paid-storage/transport.d.ts +70 -0
  466. package/dist/paid-storage/transport.d.ts.map +1 -0
  467. package/dist/paid-storage/transport.js +140 -0
  468. package/dist/paid-storage/transport.js.map +1 -0
  469. package/dist/paid-storage/vouchers.d.ts +75 -0
  470. package/dist/paid-storage/vouchers.d.ts.map +1 -0
  471. package/dist/paid-storage/vouchers.js +239 -0
  472. package/dist/paid-storage/vouchers.js.map +1 -0
  473. package/dist/paid-storage-wire.d.ts +11 -0
  474. package/dist/paid-storage-wire.d.ts.map +1 -0
  475. package/dist/paid-storage-wire.js +184 -0
  476. package/dist/paid-storage-wire.js.map +1 -0
  477. package/dist/point-claims.d.ts +40 -0
  478. package/dist/point-claims.d.ts.map +1 -0
  479. package/dist/point-claims.js +98 -0
  480. package/dist/point-claims.js.map +1 -0
  481. package/dist/quickstart.d.ts +307 -0
  482. package/dist/quickstart.d.ts.map +1 -0
  483. package/dist/quickstart.js +536 -0
  484. package/dist/quickstart.js.map +1 -0
  485. package/dist/react/context.d.ts +10 -0
  486. package/dist/react/context.d.ts.map +1 -0
  487. package/dist/react/context.js +16 -0
  488. package/dist/react/context.js.map +1 -0
  489. package/dist/react/hooks.d.ts +206 -0
  490. package/dist/react/hooks.d.ts.map +1 -0
  491. package/dist/react/hooks.js +560 -0
  492. package/dist/react/hooks.js.map +1 -0
  493. package/dist/react/index.d.ts +4 -0
  494. package/dist/react/index.d.ts.map +1 -0
  495. package/dist/react/index.js +4 -0
  496. package/dist/react/index.js.map +1 -0
  497. package/dist/react/provider.d.ts +18 -0
  498. package/dist/react/provider.d.ts.map +1 -0
  499. package/dist/react/provider.js +17 -0
  500. package/dist/react/provider.js.map +1 -0
  501. package/dist/relayer.d.ts +122 -0
  502. package/dist/relayer.d.ts.map +1 -0
  503. package/dist/relayer.js +203 -0
  504. package/dist/relayer.js.map +1 -0
  505. package/dist/runtime-compatibility.d.ts +8 -0
  506. package/dist/runtime-compatibility.d.ts.map +1 -0
  507. package/dist/runtime-compatibility.js +20 -0
  508. package/dist/runtime-compatibility.js.map +1 -0
  509. package/dist/session-manager.d.ts +197 -0
  510. package/dist/session-manager.d.ts.map +1 -0
  511. package/dist/session-manager.js +429 -0
  512. package/dist/session-manager.js.map +1 -0
  513. package/dist/solana-ptlc.d.ts +64 -0
  514. package/dist/solana-ptlc.d.ts.map +1 -0
  515. package/dist/solana-ptlc.js +137 -0
  516. package/dist/solana-ptlc.js.map +1 -0
  517. package/dist/staking-client.d.ts +103 -0
  518. package/dist/staking-client.d.ts.map +1 -0
  519. package/dist/staking-client.js +308 -0
  520. package/dist/staking-client.js.map +1 -0
  521. package/dist/staking-types.d.ts +203 -0
  522. package/dist/staking-types.d.ts.map +1 -0
  523. package/dist/staking-types.js +16 -0
  524. package/dist/staking-types.js.map +1 -0
  525. package/dist/submit-tx.d.ts +14 -0
  526. package/dist/submit-tx.d.ts.map +1 -0
  527. package/dist/submit-tx.js +33 -0
  528. package/dist/submit-tx.js.map +1 -0
  529. package/dist/templates/index.d.ts +52 -0
  530. package/dist/templates/index.d.ts.map +1 -0
  531. package/dist/templates/index.js +123 -0
  532. package/dist/templates/index.js.map +1 -0
  533. package/dist/ton/index.d.ts +52 -0
  534. package/dist/ton/index.d.ts.map +1 -0
  535. package/dist/ton/index.js +163 -0
  536. package/dist/ton/index.js.map +1 -0
  537. package/dist/ton-relayer.d.ts +26 -0
  538. package/dist/ton-relayer.d.ts.map +1 -0
  539. package/dist/ton-relayer.js +22 -0
  540. package/dist/ton-relayer.js.map +1 -0
  541. package/dist/tracing.d.ts +48 -0
  542. package/dist/tracing.d.ts.map +1 -0
  543. package/dist/tracing.js +108 -0
  544. package/dist/tracing.js.map +1 -0
  545. package/dist/transaction-signer.d.ts +13 -0
  546. package/dist/transaction-signer.d.ts.map +1 -0
  547. package/dist/transaction-signer.js +13 -0
  548. package/dist/transaction-signer.js.map +1 -0
  549. package/dist/trust-root.d.ts +56 -0
  550. package/dist/trust-root.d.ts.map +1 -0
  551. package/dist/trust-root.js +28 -0
  552. package/dist/trust-root.js.map +1 -0
  553. package/dist/types.d.ts +201 -0
  554. package/dist/types.d.ts.map +1 -0
  555. package/dist/types.js +3 -0
  556. package/dist/types.js.map +1 -0
  557. package/dist/validator-staking-client.d.ts +87 -0
  558. package/dist/validator-staking-client.d.ts.map +1 -0
  559. package/dist/validator-staking-client.js +226 -0
  560. package/dist/validator-staking-client.js.map +1 -0
  561. package/dist/virtuals-acp.d.ts +149 -0
  562. package/dist/virtuals-acp.d.ts.map +1 -0
  563. package/dist/virtuals-acp.js +418 -0
  564. package/dist/virtuals-acp.js.map +1 -0
  565. package/dist/wallet-manager.d.ts +199 -0
  566. package/dist/wallet-manager.d.ts.map +1 -0
  567. package/dist/wallet-manager.js +425 -0
  568. package/dist/wallet-manager.js.map +1 -0
  569. package/dist/wallets/burner.d.ts +45 -0
  570. package/dist/wallets/burner.d.ts.map +1 -0
  571. package/dist/wallets/burner.js +58 -0
  572. package/dist/wallets/burner.js.map +1 -0
  573. package/dist/wallets/index.d.ts +26 -0
  574. package/dist/wallets/index.d.ts.map +1 -0
  575. package/dist/wallets/index.js +20 -0
  576. package/dist/wallets/index.js.map +1 -0
  577. package/dist/wallets/injected.d.ts +22 -0
  578. package/dist/wallets/injected.d.ts.map +1 -0
  579. package/dist/wallets/injected.js +45 -0
  580. package/dist/wallets/injected.js.map +1 -0
  581. package/dist/wallets/ledger.d.ts +76 -0
  582. package/dist/wallets/ledger.d.ts.map +1 -0
  583. package/dist/wallets/ledger.js +106 -0
  584. package/dist/wallets/ledger.js.map +1 -0
  585. package/dist/wallets/near.d.ts +69 -0
  586. package/dist/wallets/near.d.ts.map +1 -0
  587. package/dist/wallets/near.js +101 -0
  588. package/dist/wallets/near.js.map +1 -0
  589. package/dist/wallets/types.d.ts +42 -0
  590. package/dist/wallets/types.d.ts.map +1 -0
  591. package/dist/wallets/types.js +31 -0
  592. package/dist/wallets/types.js.map +1 -0
  593. package/dist/wallets/walletconnect.d.ts +38 -0
  594. package/dist/wallets/walletconnect.d.ts.map +1 -0
  595. package/dist/wallets/walletconnect.js +94 -0
  596. package/dist/wallets/walletconnect.js.map +1 -0
  597. package/dist/weak-subjectivity.d.ts +213 -0
  598. package/dist/weak-subjectivity.d.ts.map +1 -0
  599. package/dist/weak-subjectivity.js +389 -0
  600. package/dist/weak-subjectivity.js.map +1 -0
  601. package/dist/x402-types/channel-types.d.ts +78 -0
  602. package/dist/x402-types/channel-types.d.ts.map +1 -0
  603. package/dist/x402-types/channel-types.js +5 -0
  604. package/dist/x402-types/channel-types.js.map +1 -0
  605. package/dist/x402-types/exact-flop.d.ts +29 -0
  606. package/dist/x402-types/exact-flop.d.ts.map +1 -0
  607. package/dist/x402-types/exact-flop.js +64 -0
  608. package/dist/x402-types/exact-flop.js.map +1 -0
  609. package/dist/x402-types/index.d.ts +65 -0
  610. package/dist/x402-types/index.d.ts.map +1 -0
  611. package/dist/x402-types/index.js +26 -0
  612. package/dist/x402-types/index.js.map +1 -0
  613. package/dist/x402.d.ts +111 -0
  614. package/dist/x402.d.ts.map +1 -0
  615. package/dist/x402.js +206 -0
  616. package/dist/x402.js.map +1 -0
  617. package/package.json +165 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,315 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@flop-labs/sdk` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.4.0] - 2026-10-28
11
+
12
+ ### Added
13
+
14
+ - List, fill and cancel whole FCU holder-rights sales using exact native-FLOP
15
+ amounts, immutable listing identifiers and signed buyer budgets (spec1014009).
16
+
17
+ - `content-v1` model identity (D-0535): `preflightHuggingFace` builds a pinned revision's
18
+ `(path, size, sha256)` table, `content_root`, packed image size and DA chunk count from hub
19
+ metadata without downloading weights, refusing an LFS entry that has no SHA-256. Root configs
20
+ and the safetensors index are fetched even when LFS-stored, and checked against their hash.
21
+ `readSafetensorsHeaders` reads shard headers by Range, and `storedTensorElements` counts them.
22
+ - `fetchHuggingFaceToDir({ files })` checks each file against that table while it streams and
23
+ stops at the first mismatch.
24
+ - DA file table (`encodeModelFileTable`, `decodeModelFileTable`, `splitImage`): a DA mirror that
25
+ names a table loads the packed image back as files, each re-hashed. A table that does not hash
26
+ to the registered root is refused before the image is fetched.
27
+ - `rootScheme`, `normalizeRoot`, `paddedSize`, `contentRootOfEntries` and `DA_CHUNK_SIZE` exports.
28
+ - Candidate qualification lifecycle client with finalized status, bounded funding,
29
+ explicit miner acknowledgement, checker verdicts, cancellation and refunds.
30
+ - `parseMeteringConfig` labels three more FP8 declarations `fp8`, with the activation dtype
31
+ unchanged: `quant_method: compressed-tensors` (8-bit float weights per tensor, channel or block,
32
+ 8-bit float or absent activations), `fbgemm_fp8`, and `quant_method: modelopt` with
33
+ `quant_algo: FP8` in `config.json`, which must agree with `hf_quant_config.json` when both are
34
+ present. Per-tensor `quant_method: fp8` without `weight_block_size` (AutoFP8, AMD Quark) is
35
+ labeled too. INT8, NVFP4, MXFP8, sparsity, rotation transforms and any unknown field still throw
36
+ a `ModelConfigError` naming the field.
37
+ - `computeChannel` meters the `layered-v1` architecture family: per-layer sliding-window or
38
+ full attention with dense or MoE (shared-expert) FFNs, under its own domain-tagged
39
+ `arch_hash`. `parseMeteringConfig` maps Mellum configs and fails closed on unknown
40
+ config keys, duplicate layer kinds, inconsistent window settings and the named deferred
41
+ families; `estimateSession` splits layered FLOPs.
42
+ - `MinerSessionInfo.image` carries the miner's reported image version and revision from
43
+ `/session/info`, when present.
44
+ - `computeChannel.notifyMinerPrepareRetirement` seals and certifies the exact
45
+ signed final claim without submitting settlement or paying the miner.
46
+
47
+ - Runtime-mirrored session DA allocation limits and fixed-width transcript signature validation. Production workers register evidence before signed RS publication and recheck full-dispute retention after proof generation.
48
+
49
+ - `runDirectSession` opens on a named miner using an offer or force-open, verifies receipts,
50
+ settles cooperatively with a forced fallback, and refunds failed opens.
51
+
52
+ - `computeChannel.sessionPrior` gives P50/P90/P99 of a session's `G_n` on a target arch, each with the recorded session at that rank, ready for `estimateSession`: it resamples 2,000 bundled whole sessions with a seeded PRNG and ranks their per-session `G_n` sums, optionally swapping in the exact first-prompt token count. `computeChannel.reforecastSession` updates those quantiles mid-run from the turns observed so far. The bundled bank comes from the CC-BY-4.0 `nebius/SWE-rebench-openhands-trajectories` dataset (attribution in `SESSION_PRIOR_SOURCE`); it reflects Qwen3-Coder on OpenHands over Python issues only. `computeChannel.calibrateSessionPrior` turns about ten probe sessions of the target configuration into a log offset on Σ `G_n`, shrunk toward an effort-flag prior (`EFFORT_OFFSET_PRIOR`, overridable strength); both functions require that calibration or an explicit `uncalibrated: true`, and report `calibrated` on the result.
53
+ - `computeChannel.estimateSession` sizes a session before opening it: per-turn and total `G_n` from the chain meter, the matmul/attention split, the minimum channel lifetime under the miner's calibration cap, how many channels the turn and duration bounds require, and each channel's escrow at a catalog `flop_per_gn`, raised to the chain's per-turn settlement tariff and a standing offer's `minEscrow`. `computeChannel.turnProfile` builds the per-turn profile from per-turn totals.
54
+ - `FeeEstimator` takes an optional `metering` input (`MeteredPricing`: arch, miner cap, catalog `flop_per_gn`, block time). With it, `estimateFee` prices the request with `computeChannel.estimateSession`, the escrow compute-channel settlement charges (`G_n × flop_per_gn`, raised to `minEscrowRaw` when given), and returns that result as `metered`. Selection helpers take `inputTokens`, `outputTokens` and `meteringByModel` (`MeteredSelection`).
55
+ - `meteredPricing` builds that `MeteredPricing` from its sources: the arch from the checkpoint's verified `config.json`, the cap from the miner's `/session/info` calibration, `flop_per_gn` (kept as the decimal string) from that miner's live catalog price, with `MeteredPricing.expiresAtMs` set to the earlier of that price's `expires_at` and the miner's calibration lease end (the fee estimators refuse pricing past it), and the runtime constants `babe.expectedBlockTime`, `computeChannel.basePerTurn` and `computeChannel.maxSettlementTurns` (`readMeteringChainParams`). It throws `FeeEstimationError` code `METERING_UNAVAILABLE` for an expired, not-yet-effective, zero, ambiguous or other-miner price, a miner whose `/session/info` is not ready, a calibration that is not ready, has no positive cap or has no unexpired lease, an unparsable config, or a miner whose served identity (hash, slug, registry model and version, precision, decode policy, backend model) differs from the catalog record; nothing is defaulted.
56
+ - `ModelDiscoveryService.meteringByModel(models)` prices discovered models through a `setMeteringProvider` source (`IMeteringSourceProvider`) and returns the priced `models`, their `meteringByModel` map for the budget paths, and the `withdrawn` models with reasons. With a budget, `autoSelectWithFeeEstimate`, `ModelDiscoveryService.selectWithBudget` (which now takes `MeteredSelection`) and the standalone `selectWithBudget` choose among the discovered candidates that have a `meteringByModel` entry whose price has not expired. They no longer price the top-ranked model first.
57
+ They also no longer pre-filter discovery by the size-based `maxCost` estimate, so the budget is compared only with the metered escrow.
58
+
59
+ ### Changed
60
+
61
+ - Qualify spec1014011 for funding-time FCU economic snapshots; future/gap
62
+ runtime versions continue to reject. Forward call encodings remain unchanged.
63
+
64
+ - Qualify combined preactivation spec1014010; keep exact-version admission.
65
+
66
+ - Admit fractional-holder candidate spec1014008 after actual-metadata and
67
+ compatibility checks; unqualified gaps and future versions still reject.
68
+
69
+ - Forward draw calls and aggregate-allocation events use integer u128 units;
70
+ forward signing domains advance to v3. Terms carry quota and durationSeconds.
71
+ Six-decimal FCU parsing and formatting use integer atoms without rounding.
72
+ - Support the preactivation integer-accounting candidate 1.14.7 / spec 1014007
73
+ (transaction version 2). Unqualified gap/future runtime versions stay rejected.
74
+
75
+ - Admit source candidate 1.14.5 / spec 1,014,005 for the preactivation FCU
76
+ name replacement; retain exact-version admission and reject unqualified upgrades.
77
+
78
+ - `verifyModelWeights`, `verifyModelDir`, `verifyMirror` and `loadVerifiedModel` accept a
79
+ registered root equal to either the content root (`content-v1`) or the dm-verity root
80
+ (`verity-v1`). Results report the matched `scheme` and add `computedContentRoot`.
81
+ `expectedVerityRoot` keeps its name and now holds the registered root under either scheme.
82
+ `verifyMirror` checks a Hugging Face repo against its published sha256 table while it downloads.
83
+ - Source compatibility with candidate runtime 1.14.4 / spec 1,014,004 while
84
+ retaining the previously qualified runtime versions.
85
+ - Licensed under `MIT OR Apache-2.0`, at your option (previously Apache-2.0 only). `LICENSE` carries both texts.
86
+ - **Breaking:** every budget decision now needs metering. `estimateFee` with `maxBudget` throws `FeeEstimationError` code `METERING_REQUIRED` when `metering` is absent, and `TOKEN_SPLIT_REQUIRED` when `metering` lacks explicit `inputTokens`/`outputTokens`. The same applies to `selectWithinBudget`, `selectModelWithinBudget`, `estimateInferenceFee`, `autoSelectWithFeeEstimate` and `selectWithBudget` whenever they get a budget. The token-rate tables priced an 8B model about 480× below metered cost (at the runtime base price of 0.003 FLOP/`G_n`), so their `withinBudget: true` approved work the budget could not cover. Without metering, estimates remain display-only.
87
+ - Metered fees have no priority, congestion, network-fee or floor terms, and do not include channel transaction fees. `minFee`, `maxFee` and `recommendedFee` equal the escrow. Budgets are compared in raw units against the exact escrow (`escrowRaw`, which includes a standing offer's `minEscrowRaw`).
88
+
89
+ - The Virtuals ACP bridge passes the gateway executor a job-scoped `X-Correlation-ID`
90
+ (`<request id>:job`) as a new optional fourth `FlopInferenceExecutor` argument, in place of
91
+ the per-request id. It is stable across delivery retries and differs per job, so the
92
+ gateway labels each ACP job as one task. An executor called without it sends no
93
+ correlation id.
94
+
95
+ ### Fixed
96
+
97
+ - `sealForwardBidClaims` accepts both the durable registration seal and the later entropy-ready seal event. Call it again after BABE entropy becomes available before revealing a claim.
98
+ - `parseMeteringConfig` labels a block `quant_method: fp8` (with `weight_block_size`) only in the
99
+ reviewed Qwen layout: `activation_scheme: dynamic`, optional `fmt: e4m3`,
100
+ `weight_block_size: [128, 128]`, and `modules_to_not_convert` limited to `lm_head`, the norms and
101
+ the MoE router. Any other key or value, such as DeepSeek-V4.1's `expert_dtype: fp4`, now throws a
102
+ `ModelConfigError` naming the field instead of labelling the checkpoint plain 8-bit FP8.
103
+ - `submitTx`, the agent-wallet `submitTx` and `FlopClient.submitAndWait` reject with
104
+ `CircuitBreakerTrippedError` (code `CIRCUIT_BREAKER_TRIPPED`) when the extrinsic emits
105
+ `flopSessionKeys.CircuitBreakerTripped`. The runtime now returns `Ok` for the tripping call
106
+ so its latch persists; without this check the SDK would report it as a completed payment.
107
+ - Resumable Hugging Face downloads sync staged files through a writable handle, so they no
108
+ longer fail with `EPERM` on Windows.
109
+ - Model registry readers accept query-only finalized views, allowing cold model loading to keep checkpoint and architecture approval on one snapshot.
110
+ - `parseMeteringConfig` reads NVIDIA ModelOpt `hf_quant_config.json` as a second argument: FP8 is labeled `fp8`, any other declared algorithm or a disagreement with `config.json` throws, so such checkpoints are no longer metered as unquantized BF16. Model-loader results (`VerificationResult`, `LoadVerifiedModelResult`, `MeasuredDir`, `inspectHuggingFace`) carry the file from the verified read, or `null` when the tree has none.
111
+ - **Breaking:** `MeteringModelSources` requires `hfQuantConfigJson` (bytes or `null`). `meteredPricing` withdraws pricing (`METERING_UNAVAILABLE`) when it is missing or names an algorithm the meter cannot label.
112
+
113
+ - Named-miner sessions send a 256-token completion budget by default instead of allowing
114
+ backend context-length generation to exceed the turn deadline. `maxTokens` overrides it
115
+ and rejects invalid values before chain access. Settlement waits for finalized calibration
116
+ allowance, rechecks cap changes before forced fallback, and refunds expired channels even
117
+ after verified output. Cooperative delivery and concurrent finalized-event discovery share
118
+ one 60-second deadline instead of an unbounded sequential catch-up scan.
119
+ - Admit runtime spec 1014003 (built from 903545036, PR #3096: compute-channel `register_session_evidence` (call 41) with its event, errors, storage map and `MaxSessionActivationBytes` constant; existing pallet, call and storage indices and encodings unchanged) alongside 1013000, 1014000, 1014001 and 1014002. Devnet has run it since block 1,841,098, where every SDK client stopped with `RUNTIME_INCOMPATIBLE`; the exported range now ends at 1014003 and still admits only the listed versions.
120
+ - Admit runtime spec 1014002 (the #2637 devnet fast path: the devnet build verifies dense-GDN hybrid metering receipts under a bounded weight) alongside 1013000, 1014000 and 1014001, so clients keep working across the devnet upgrade; the exported range now ends at 1014002 and still admits only the listed versions.
121
+ - Admit runtime spec 1014001 (built from de4e2779d, PR #2803: staking freezes, sponsored registration bonds, matured-only unbonding release) alongside 1013000 and 1014000, so clients keep working across the devnet upgrade; the exported range now ends at 1014001 and still admits only the listed versions.
122
+
123
+ ### Deprecated
124
+
125
+ - `BASE_COST_PER_1K_TOKENS` and the `gflops` option (fixed 0.01 FLOP/GFLOP). `gflops` is rejected together with `metering`.
126
+
127
+ ## [0.3.0] - 2026-10-16
128
+
129
+ ### Removed
130
+
131
+ - Vendored x402 batch-voucher API, which did not implement cryptographic signing or verification.
132
+
133
+ ### Fixed
134
+
135
+ - Admit exactly the qualified runtime specs 1013000 and 1014000 (registrar PR #2726), including live upgrades; exported bounds describe the envelope and do not admit intermediate or unqualified versions.
136
+
137
+ - The Virtuals ACP bridge names a pooled `pending` gateway checkpoint instead of reporting a missing settlement receipt; per-request settlement for API keys is #2733.
138
+ - `require("@flop-labs/sdk")` and the `./browser` require condition load the UMD bundle as
139
+ CommonJS (`dist/bundle/index.umd.cjs`). Under the package's `"type": "module"` the `.js`
140
+ bundle loaded as an ES module and exported nothing.
141
+ - `flop-client-gen --help` prints its usage and exits 0.
142
+ - Reject unsupported runtime spec versions on connect and runtime upgrades; generated clients check compatibility by default.
143
+ - Preserve opaque paid-memory policy scope bytes when constructing native SCALE storage keys.
144
+ - Config-only hybrid candidates leave complete checkpoint parameter totals unknown while preserving active text metering; registration requires a stored-parameter census.
145
+ - Require the existing GET/PUT operation authentication before cached completion
146
+ and transactionally reread completion or retirement, rejecting unsupported kinds.
147
+ - Complete retained paid GET content from authenticated historical admission/head,
148
+ issuance and result records when fresh admission is unavailable. Failed requests
149
+ retain their full exposure; legacy records retain their original replay contract.
150
+ - Reject fresh PUT CPU capacities below the native placement's eight-unit minimum
151
+ held allowance without assuming provider coefficients or complete feasibility.
152
+ - Continue reconciling later original signed GET capsules after a classified HTTP
153
+ failure or corrupt response, retaining failed capsules and propagating local
154
+ integrity, storage and cancellation failures.
155
+
156
+ - Qualify fresh paid-memory PUTs against finalized payer work limits, including
157
+ shard ingress, placement-record/attestation disk writes, and the exact owner-auth
158
+ header plus all three signature attempts before payment-state persistence.
159
+ - Reconcile interrupted paid-memory GETs from authenticated original signed requests,
160
+ retaining verified ranges atomically with acknowledgements before result persistence.
161
+ - Refresh unpaid memory request contexts atomically with voucher issuance after a
162
+ context-only restart. Signed requests keep their exact original bytes; expired
163
+ voucher-only requests retain exposure and reject new owner signatures.
164
+
165
+ - Sampled TOPLOC checks bind selected activations to authenticated leaf hashes and
166
+ require the complete per-turn G_n sum to match the claimed aggregate. Quantum
167
+ planning carries overshoot without reusing one crossing turn across windows.
168
+ - Already accepted paid-memory CAS certificates can finish finalized proof acknowledgment
169
+ after policy revocation without new signatures, shard work or CAS propagation. Recovery
170
+ requires producer-authenticated context and intact original payment accounting; legacy
171
+ or uncertified writes still require fresh admission.
172
+
173
+ - Completed degraded memory reads replay only client-authenticated original requests
174
+ after owner policy revocation, without fresh admission or replacement signing.
175
+ Legacy records without replay authority/capsules retain their unresolved lane fences.
176
+
177
+ - `getMinimumStake` returns the larger of the live validator baseline and
178
+ value-coupled floor, rejecting unavailable queries instead of reporting zero.
179
+ Registration guidance reflects the exact minimum bond and spendable surplus.
180
+
181
+ - HTLC creation returns the matching on-chain creation event ID for ordinary, work-bound, delegated, and cross-chain calls, allowing purchase receipts to compare canonical identities.
182
+
183
+ - Verified HTLC inference receipts require authenticated quote digests and work units. The quote hash is the stored hardware evidence digest; legacy and relayer settlements remain status records.
184
+
185
+ - TON claims check RPC chain time as well as the host clock before disclosing a
186
+ witness, preserving the expiry margin even when either clock lags.
187
+ - TON claim confirmation walks transaction history so later calls cannot hide a
188
+ successful payout, including inactive escrows whose latest transaction requires
189
+ archival history; retries retain exact witness and principal checks.
190
+ - Reference-work meters and session aggregation reject values outside their wire widths.
191
+ - The miner- and validator-staking clients now look pallets up under polkadot-js's
192
+ camelCase names (`minerStaking`, `blockRewards`, `validators`). Every staking
193
+ extrinsic threw, and every staking query read as empty: `getMinerInfo` returned
194
+ `null` for a registered miner.
195
+ - The `devnet` profile's RPC (`FLOP_NETWORK_PROFILES.devnet.rpc`, `FLOP_ENDPOINTS.devnet`)
196
+ now points at `wss://rpc.devnet.flop.network`, the public RPC of the devnet-ts chain
197
+ (genesis `0x99c172c0…8be2d631`), its faucet at `https://faucet.flop.network`, and its
198
+ gateway at the public `https://api.flop.network` instead of the tailnet-only
199
+ `http://gateway.ts.flop.network`. The previous RPC default, `ws://node.ts.flop.network:9944`,
200
+ was a single node that no longer exists.
201
+ - x402's type-only re-exports no longer become missing runtime exports when SDK
202
+ examples run directly through `tsx`.
203
+ - Miner registration checks now use the metadata-backed `minerStaking.miners`
204
+ storage accessor instead of the Rust-only `miner_info` getter name.
205
+ - secp256k1 adaptor signatures now use the Noble Curves v2 API and verify
206
+ pre-hashed inference digests without hashing them a second time.
207
+ - Session-owner HTLC execution now supplies the monotonic session nonce to
208
+ `executeViaSession`, matching the runtime's four-argument
209
+ `execute_via_session` extrinsic (INV-S01) so metadata encoding and submission
210
+ no longer fail before the HTLC is created. Adds `getSessionNonce`.
211
+ - `listSessions` now scans the full session map in bounded pages capped at
212
+ `filter.limit` (default 1000) instead of loading every entry at once, so an
213
+ unfiltered scan on a chain with many sessions cannot OOM or stall the caller.
214
+
215
+ ### Added
216
+
217
+ - Optional `QuickStartConfig.referral` and `FaucetConfig.referral` codes forwarded to the faucet for first-funding attribution.
218
+
219
+ - Add successful every-turn TOPLOC replay claims and canonical historical verification of independently qualified quorum inclusion and positive standard-spot payment.
220
+
221
+ - Inactive Qwen3.8 hybrid descriptor and checked reference-work candidate with
222
+ shared source/profile commitments and rejection KATs. Existing paid admission
223
+ and ModelArch V1 remain unchanged.
224
+
225
+ - `inspectHuggingFace` resolves an immutable inventory and bounded config before weight transfer. `fetchHuggingFaceToDir` supports an external `resumeState` receipt with hashed file reuse and pending-rename crash recovery.
226
+
227
+
228
+ - Opt-in miner turn-evidence persistence before transcript/fence mutation, for
229
+ private encrypted replay and retirement handoff without changing receipt bytes.
230
+ - Hash-verified whole-blob retrieval on `HttpValidatorDa` for watchtower DA reads
231
+ and the miner host's existing publication reuse checks.
232
+ - Value-proportional compute-channel audit planner and explicit sampled TOPLOC
233
+ watchtower mode using leaves bound to an independently authenticated settlement
234
+ final root, including force-settled co-signed prefixes with an unacked tail;
235
+ replay input bytes must match each authenticated leaf's input hash. Every-turn
236
+ checking remains the default (#2170).
237
+ - Experimental owner-only paid memory with client-side encrypted manifests/content,
238
+ single-parity coding, durable vouchers and authenticated head/checkpoint verification.
239
+ The DevnetUnratified profile is limited to valueless development networks.
240
+
241
+ - `FlopChainSubmitter` can wait for finality so shared signer lanes retain nonce ownership.
242
+ - `ChannelSession.chatTurn` accepts an optional durability callback after cryptographic
243
+ verification and before acknowledgements, allowing gateways to persist funding intent.
244
+
245
+ - HTLC creation accepts an explicit registered appraisal tuple (profile ID/version, model and measurement hashes) encoded as 100 SCALE bytes. Missing requirements and the old simulator value fail before submission.
246
+
247
+ - Optional HTLC work commitments and receipt claims through the authenticated redemption path; status reads expose the stored TEE quote digest. Claimant metadata alone is not verifier evidence.
248
+
249
+ - Solana Kit client for the native-SOL point-lock escrow, with finalized witness
250
+ reads and relayer sinks for Solana ↔ FLOP swaps (testnet only; unaudited).
251
+ - Opt-in structured chat v2 with signed rendering context, native token-ID
252
+ commitments, and receipt validation before accepting or acknowledging a turn.
253
+ - TON point-lock escrow client (`@flop-labs/sdk/ton`) and witness relayer sinks for
254
+ FLOP ↔ TON swaps using the same secp256k1 scalar, with required negotiated
255
+ funder, payee, principal and deadline terms in both relay directions and a
256
+ canonical initial-state address check before trusting escrow storage.
257
+ - `computeChannel.SessionChainSubmitter`: an agent key (session-keys delegate)
258
+ opens and recovers compute channels for an owner wallet by wrapping each call in
259
+ `execute_via_session`. The owner is the channel's agent and funds the escrow; the
260
+ delegate pays fees. Escrow and top-ups are declared as session spend, and calls
261
+ without a declared spend are refused.
262
+ - Opt-in current x402 v2 A2A extension declaration for cards whose task-payment
263
+ handler is live.
264
+ - Public `@flop-labs/sdk/a2a` export for server-side Agent Card serialization.
265
+ - Virtuals ACP v2 provider bridge for idempotent verified-inference delivery via
266
+ the existing FLOP gateway/x402 path, gated on the gateway's `x_flop_receipt`
267
+ compute-channel settlement evidence (model identity, channel/settlement
268
+ references, and charge conservation).
269
+ - Versioned generated-client profiles, a fail-closed capability factory, deterministic
270
+ TypeScript generator, and maintained chat/publisher/operator templates. The factory
271
+ returns a client only once chain identity is verified by a genesis pin or a live
272
+ service comparison, and delegated sessions expose only capabilities whose writes
273
+ route through the session pallet.
274
+ - Provider-grade compute-channel chat envelopes, ordered output/tool-call frames,
275
+ and terminal receipts binding native token usage and model identity.
276
+ - Compute-channel standing-offer signing/opening plus `forceOpen`, `forceAck`,
277
+ and `expireForceOpen` chain-client parity.
278
+ - Bonded forward-CRU offer, bid/claim, divisible-unit transfer, shared-draw,
279
+ and pull-distribution helpers with fail-closed delegated-spend checks.
280
+
281
+ ### Changed
282
+
283
+ - The package ships its README, changelog and license, and the README links to public
284
+ documentation instead of repository-only files.
285
+ - TON x402 payments require a gateway challenge id and payer in both the proof
286
+ and the transfer comment; the Telegram example sends this binding.
287
+
288
+ - ACP gateway model discovery uses the shared public HTTP client and structural
289
+ contracts, preserving anonymous requests, cancellation, and ACP failure codes.
290
+
291
+ - Compute-channel settlements now carry an explicit leaf version, use deployment-bound channel IDs
292
+ and tagged receipts, and persist FCC4 transcript records; malformed/legacy handling follows the
293
+ public Appendix F vector corpus.
294
+ - HTTP session transport now collects the verified chunk stream; Mode-A opens
295
+ require the committed agent key and authoritative on-chain channel state.
296
+ - Standing-offer and acceptance signers now require the target genesis hash,
297
+ preventing replay across chain generations and networks.
298
+ - Trust-root hardware calibration entries now expose aggregate host GPU
299
+ inventory as `(SKU, count)` pairs.
300
+
301
+ ## [0.2.0] - 2026-07-24
302
+
303
+ ### Added
304
+
305
+ - Canonical four-network profiles and endpoint inference.
306
+ - Faucet chain identity, explicit routing, and rate-limit metadata.
307
+ - On-chain session enumeration.
308
+ - Session-owner HTLC execution with fail-closed budget checks.
309
+ - Connected-client construction from decoded encrypted keypairs.
310
+ - High-level external signer support for extensions, WalletConnect, Ledger, and MPC.
311
+ - Correct Ledger payload encoding plus gated emulator signing coverage.
312
+
313
+ [Unreleased]: https://github.com/flop-labs/flop-core/compare/sdk-v0.3.0...HEAD
314
+ [0.3.0]: https://github.com/flop-labs/flop-core/compare/sdk-v0.2.0...sdk-v0.3.0
315
+ [0.2.0]: https://github.com/flop-labs/flop-core/compare/services-v0.0.0-devnet.20260724.2...sdk-v0.2.0
package/LICENSE ADDED
@@ -0,0 +1,238 @@
1
+ Copyright (c) 2025-2026 The FLOP Network Contributors
2
+
3
+ This package is licensed under either of
4
+
5
+ * the MIT license (first text below), or
6
+ * the Apache License, Version 2.0 (second text below)
7
+
8
+ at your option.
9
+
10
+ SPDX-License-Identifier: MIT OR Apache-2.0
11
+
12
+ ================================================================================
13
+
14
+ MIT License
15
+
16
+ Copyright (c) 2025-2026 The FLOP Network Contributors
17
+
18
+ Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
+ furnished to do so, subject to the following conditions:
24
+
25
+ The above copyright notice and this permission notice shall be included in all
26
+ copies or substantial portions of the Software.
27
+
28
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
+ SOFTWARE.
35
+
36
+ ================================================================================
37
+
38
+ Apache License
39
+ Version 2.0, January 2004
40
+ http://www.apache.org/licenses/
41
+
42
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
43
+
44
+ 1. Definitions.
45
+
46
+ "License" shall mean the terms and conditions for use, reproduction,
47
+ and distribution as defined by Sections 1 through 9 of this document.
48
+
49
+ "Licensor" shall mean the copyright owner or entity authorized by
50
+ the copyright owner that is granting the License.
51
+
52
+ "Legal Entity" shall mean the union of the acting entity and all
53
+ other entities that control, are controlled by, or are under common
54
+ control with that entity. For the purposes of this definition,
55
+ "control" means (i) the power, direct or indirect, to cause the
56
+ direction or management of such entity, whether by contract or
57
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
58
+ outstanding shares, or (iii) beneficial ownership of such entity.
59
+
60
+ "You" (or "Your") shall mean an individual or Legal Entity
61
+ exercising permissions granted by this License.
62
+
63
+ "Source" form shall mean the preferred form for making modifications,
64
+ including but not limited to software source code, documentation
65
+ source, and configuration files.
66
+
67
+ "Object" form shall mean any form resulting from mechanical
68
+ transformation or translation of a Source form, including but
69
+ not limited to compiled object code, generated documentation,
70
+ and conversions to other media types.
71
+
72
+ "Work" shall mean the work of authorship, whether in Source or
73
+ Object form, made available under the License, as indicated by a
74
+ copyright notice that is included in or attached to the work
75
+ (an example is provided in the Appendix below).
76
+
77
+ "Derivative Works" shall mean any work, whether in Source or Object
78
+ form, that is based on (or derived from) the Work and for which the
79
+ editorial revisions, annotations, elaborations, or other modifications
80
+ represent, as a whole, an original work of authorship. For the purposes
81
+ of this License, Derivative Works shall not include works that remain
82
+ separable from, or merely link (or bind by name) to the interfaces of,
83
+ the Work and Derivative Works thereof.
84
+
85
+ "Contribution" shall mean any work of authorship, including
86
+ the original version of the Work and any modifications or additions
87
+ to that Work or Derivative Works thereof, that is intentionally
88
+ submitted to Licensor for inclusion in the Work by the copyright owner
89
+ or by an individual or Legal Entity authorized to submit on behalf of
90
+ the copyright owner. For the purposes of this definition, "submitted"
91
+ means any form of electronic, verbal, or written communication sent
92
+ to the Licensor or its representatives, including but not limited to
93
+ communication on electronic mailing lists, source code control systems,
94
+ and issue tracking systems that are managed by, or on behalf of, the
95
+ Licensor for the purpose of discussing and improving the Work, but
96
+ excluding communication that is conspicuously marked or otherwise
97
+ designated in writing by the copyright owner as "Not a Contribution."
98
+
99
+ "Contributor" shall mean Licensor and any individual or Legal Entity
100
+ on behalf of whom a Contribution has been received by Licensor and
101
+ subsequently incorporated within the Work.
102
+
103
+ 2. Grant of Copyright License. Subject to the terms and conditions of
104
+ this License, each Contributor hereby grants to You a perpetual,
105
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
106
+ copyright license to reproduce, prepare Derivative Works of,
107
+ publicly display, publicly perform, sublicense, and distribute the
108
+ Work and such Derivative Works in Source or Object form.
109
+
110
+ 3. Grant of Patent License. Subject to the terms and conditions of
111
+ this License, each Contributor hereby grants to You a perpetual,
112
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
113
+ (except as stated in this section) patent license to make, have made,
114
+ use, offer to sell, sell, import, and otherwise transfer the Work,
115
+ where such license applies only to those patent claims licensable
116
+ by such Contributor that are necessarily infringed by their
117
+ Contribution(s) alone or by combination of their Contribution(s)
118
+ with the Work to which such Contribution(s) was submitted. If You
119
+ institute patent litigation against any entity (including a
120
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
121
+ or a Contribution incorporated within the Work constitutes direct
122
+ or contributory patent infringement, then any patent licenses
123
+ granted to You under this License for that Work shall terminate
124
+ as of the date such litigation is filed.
125
+
126
+ 4. Redistribution. You may reproduce and distribute copies of the
127
+ Work or Derivative Works thereof in any medium, with or without
128
+ modifications, and in Source or Object form, provided that You
129
+ meet the following conditions:
130
+
131
+ (a) You must give any other recipients of the Work or
132
+ Derivative Works a copy of this License; and
133
+
134
+ (b) You must cause any modified files to carry prominent notices
135
+ stating that You changed the files; and
136
+
137
+ (c) You must retain, in the Source form of any Derivative Works
138
+ that You distribute, all copyright, patent, trademark, and
139
+ attribution notices from the Source form of the Work,
140
+ excluding those notices that do not pertain to any part of
141
+ the Derivative Works; and
142
+
143
+ (d) If the Work includes a "NOTICE" text file as part of its
144
+ distribution, then any Derivative Works that You distribute must
145
+ include a readable copy of the attribution notices contained
146
+ within such NOTICE file, excluding those notices that do not
147
+ pertain to any part of the Derivative Works, in at least one
148
+ of the following places: within a NOTICE text file distributed
149
+ as part of the Derivative Works; within the Source form or
150
+ documentation, if provided along with the Derivative Works; or,
151
+ within a display generated by the Derivative Works, if and
152
+ wherever such third-party notices normally appear. The contents
153
+ of the NOTICE file are for informational purposes only and
154
+ do not modify the License. You may add Your own attribution
155
+ notices within Derivative Works that You distribute, alongside
156
+ or as an addendum to the NOTICE text from the Work, provided
157
+ that such additional attribution notices cannot be construed
158
+ as modifying the License.
159
+
160
+ You may add Your own copyright statement to Your modifications and
161
+ may provide additional or different license terms and conditions
162
+ for use, reproduction, or distribution of Your modifications, or
163
+ for any such Derivative Works as a whole, provided Your use,
164
+ reproduction, and distribution of the Work otherwise complies with
165
+ the conditions stated in this License.
166
+
167
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
168
+ any Contribution intentionally submitted for inclusion in the Work
169
+ by You to the Licensor shall be under the terms and conditions of
170
+ this License, without any additional terms or conditions.
171
+ Notwithstanding the above, nothing herein shall supersede or modify
172
+ the terms of any separate license agreement you may have executed
173
+ with Licensor regarding such Contributions.
174
+
175
+ 6. Trademarks. This License does not grant permission to use the trade
176
+ names, trademarks, service marks, or product names of the Licensor,
177
+ except as required for reasonable and customary use in describing the
178
+ origin of the Work and reproducing the content of the NOTICE file.
179
+
180
+ 7. Disclaimer of Warranty. Unless required by applicable law or
181
+ agreed to in writing, Licensor provides the Work (and each
182
+ Contributor provides its Contributions) on an "AS IS" BASIS,
183
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
184
+ implied, including, without limitation, any warranties or conditions
185
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
186
+ PARTICULAR PURPOSE. You are solely responsible for determining the
187
+ appropriateness of using or redistributing the Work and assume any
188
+ risks associated with Your exercise of permissions under this License.
189
+
190
+ 8. Limitation of Liability. In no event and under no legal theory,
191
+ whether in tort (including negligence), contract, or otherwise,
192
+ unless required by applicable law (such as deliberate and grossly
193
+ negligent acts) or agreed to in writing, shall any Contributor be
194
+ liable to You for damages, including any direct, indirect, special,
195
+ incidental, or consequential damages of any character arising as a
196
+ result of this License or out of the use or inability to use the
197
+ Work (including but not limited to damages for loss of goodwill,
198
+ work stoppage, computer failure or malfunction, or any and all
199
+ other commercial damages or losses), even if such Contributor
200
+ has been advised of the possibility of such damages.
201
+
202
+ 9. Accepting Warranty or Additional Liability. While redistributing
203
+ the Work or Derivative Works thereof, You may choose to offer,
204
+ and charge a fee for, acceptance of support, warranty, indemnity,
205
+ or other liability obligations and/or rights consistent with this
206
+ License. However, in accepting such obligations, You may act only
207
+ on Your own behalf and on Your sole responsibility, not on behalf
208
+ of any other Contributor, and only if You agree to indemnify,
209
+ defend, and hold each Contributor harmless for any liability
210
+ incurred by, or claims asserted against, such Contributor by reason
211
+ of your accepting any such warranty or additional liability.
212
+
213
+ END OF TERMS AND CONDITIONS
214
+
215
+ APPENDIX: How to apply the Apache License to your work.
216
+
217
+ To apply the Apache License to your work, attach the following
218
+ boilerplate notice, with the fields enclosed by brackets "[]"
219
+ replaced with your own identifying information. (Don't include
220
+ the brackets!) The text should be enclosed in the appropriate
221
+ comment syntax for the file format. We also recommend that a
222
+ file or class name and description of purpose be included on the
223
+ same "printed page" as the copyright notice for easier
224
+ identification within third-party archives.
225
+
226
+ Copyright [yyyy] [name of copyright owner]
227
+
228
+ Licensed under the Apache License, Version 2.0 (the "License");
229
+ you may not use this file except in compliance with the License.
230
+ You may obtain a copy of the License at
231
+
232
+ http://www.apache.org/licenses/LICENSE-2.0
233
+
234
+ Unless required by applicable law or agreed to in writing, software
235
+ distributed under the License is distributed on an "AS IS" BASIS,
236
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
237
+ See the License for the specific language governing permissions and
238
+ limitations under the License.