holosphere 2.0.0-alpha8 → 2.0.0-alpha9

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 (321) hide show
  1. package/CHANGELOG.md +446 -0
  2. package/FEATURES.md +431 -0
  3. package/LICENSE +29 -166
  4. package/LICENSE-AGPL.md +180 -0
  5. package/dist/cdn/holosphere.min.js +55 -0
  6. package/dist/cdn/holosphere.min.js.map +1 -0
  7. package/dist/cjs/holosphere.cjs +1 -1
  8. package/dist/esm/holosphere.js +1 -1
  9. package/dist/{index-CKffQDmQ.cjs → index-DDGt_V9o.cjs} +2 -2
  10. package/dist/{index-CKffQDmQ.cjs.map → index-DDGt_V9o.cjs.map} +1 -1
  11. package/dist/{index-4XHHKe6S.js → index-DJXftyvB.js} +1905 -337
  12. package/dist/index-DJXftyvB.js.map +1 -0
  13. package/dist/{index-Dz5kOZMI.cjs → index-DMbdcMtK.cjs} +17 -4
  14. package/dist/index-DMbdcMtK.cjs.map +1 -0
  15. package/dist/{index-BjP1TXGz.js → index-DeZ1xz_s.js} +2 -2
  16. package/dist/{index-BjP1TXGz.js.map → index-DeZ1xz_s.js.map} +1 -1
  17. package/dist/{indexeddb-storage-lExjjFlV.js → indexeddb-storage-BFt6hMeF.js} +48 -4
  18. package/dist/indexeddb-storage-BFt6hMeF.js.map +1 -0
  19. package/dist/{indexeddb-storage-DD7EFBVc.cjs → indexeddb-storage-BK5tv4Sh.cjs} +2 -2
  20. package/dist/indexeddb-storage-BK5tv4Sh.cjs.map +1 -0
  21. package/dist/{memory-storage-C68adso2.js → memory-storage-C9HuoL2E.js} +44 -4
  22. package/dist/memory-storage-C9HuoL2E.js.map +1 -0
  23. package/dist/{memory-storage-DD_6yyXT.cjs → memory-storage-Dao7jfYG.cjs} +2 -2
  24. package/dist/memory-storage-Dao7jfYG.cjs.map +1 -0
  25. package/dist/{secp256k1-DYELiqgx.cjs → secp256k1-BbKzbLtD.cjs} +2 -2
  26. package/dist/{secp256k1-DYELiqgx.cjs.map → secp256k1-BbKzbLtD.cjs.map} +1 -1
  27. package/dist/{secp256k1-OM8siPyy.js → secp256k1-CreY7Pcl.js} +2 -2
  28. package/dist/{secp256k1-OM8siPyy.js.map → secp256k1-CreY7Pcl.js.map} +1 -1
  29. package/docs/api/ai_aggregation.js.html +333 -0
  30. package/docs/api/ai_breakdown.js.html +524 -0
  31. package/docs/api/ai_classifier.js.html +231 -0
  32. package/docs/api/ai_council.js.html +246 -0
  33. package/docs/api/ai_embeddings.js.html +304 -0
  34. package/docs/api/ai_federation-ai.js.html +338 -0
  35. package/docs/api/ai_h3-ai.js.html +970 -0
  36. package/docs/api/ai_index.js.html +124 -0
  37. package/docs/api/ai_json-ops.js.html +241 -0
  38. package/docs/api/ai_llm-service.js.html +239 -0
  39. package/docs/api/ai_nl-query.js.html +236 -0
  40. package/docs/api/ai_relationships.js.html +367 -0
  41. package/docs/api/ai_schema-extractor.js.html +235 -0
  42. package/docs/api/ai_spatial.js.html +307 -0
  43. package/docs/api/ai_tts.js.html +214 -0
  44. package/docs/api/content_social-protocols.js.html +180 -0
  45. package/docs/api/core_holosphere.js.html +757 -0
  46. package/docs/api/crypto_nostr-utils.js.html +306 -0
  47. package/docs/api/crypto_secp256k1.js.html +267 -0
  48. package/docs/api/data/search.json +1 -0
  49. package/docs/api/federation_discovery.js.html +337 -0
  50. package/docs/api/federation_handshake.js.html +478 -0
  51. package/docs/api/federation_hologram.js.html +1053 -0
  52. package/docs/api/federation_registry.js.html +389 -0
  53. package/docs/api/fonts/Inconsolata-Regular.ttf +0 -0
  54. package/docs/api/fonts/OpenSans-Regular.ttf +0 -0
  55. package/docs/api/fonts/WorkSans-Bold.ttf +0 -0
  56. package/docs/api/global.html +3 -0
  57. package/docs/api/hierarchical_upcast.js.html +128 -0
  58. package/docs/api/index.html +265 -0
  59. package/docs/api/index.js.html +1868 -0
  60. package/docs/api/lib_ai-methods.js.html +660 -0
  61. package/docs/api/lib_contract-methods.js.html +445 -0
  62. package/docs/api/lib_errors.js.html +56 -0
  63. package/docs/api/lib_federation-methods.js.html +348 -0
  64. package/docs/api/lib_index.js.html +33 -0
  65. package/docs/api/module-ai.html +5 -0
  66. package/docs/api/module-ai_aggregation-SmartAggregation.html +6 -0
  67. package/docs/api/module-ai_aggregation.SmartAggregation.html +3 -0
  68. package/docs/api/module-ai_aggregation.html +3 -0
  69. package/docs/api/module-ai_breakdown-TaskBreakdown.html +5 -0
  70. package/docs/api/module-ai_breakdown.TaskBreakdown.html +3 -0
  71. package/docs/api/module-ai_breakdown.html +3 -0
  72. package/docs/api/module-ai_classifier-Classifier.html +6 -0
  73. package/docs/api/module-ai_classifier.Classifier.html +3 -0
  74. package/docs/api/module-ai_classifier.html +3 -0
  75. package/docs/api/module-ai_council-Council.html +6 -0
  76. package/docs/api/module-ai_council.Council.html +3 -0
  77. package/docs/api/module-ai_council.html +3 -0
  78. package/docs/api/module-ai_embeddings-Embeddings.html +5 -0
  79. package/docs/api/module-ai_embeddings.Embeddings.html +3 -0
  80. package/docs/api/module-ai_embeddings.html +3 -0
  81. package/docs/api/module-ai_federation-ai-FederationAdvisor.html +6 -0
  82. package/docs/api/module-ai_federation-ai.FederationAdvisor.html +3 -0
  83. package/docs/api/module-ai_federation-ai.html +3 -0
  84. package/docs/api/module-ai_h3-ai-H3AI.html +6 -0
  85. package/docs/api/module-ai_h3-ai.H3AI.html +3 -0
  86. package/docs/api/module-ai_h3-ai.html +3 -0
  87. package/docs/api/module-ai_json-ops-JSONOps.html +5 -0
  88. package/docs/api/module-ai_json-ops.JSONOps.html +3 -0
  89. package/docs/api/module-ai_json-ops.html +3 -0
  90. package/docs/api/module-ai_llm-service-LLMService.html +5 -0
  91. package/docs/api/module-ai_llm-service.LLMService.html +3 -0
  92. package/docs/api/module-ai_llm-service.html +3 -0
  93. package/docs/api/module-ai_nl-query-NLQuery.html +5 -0
  94. package/docs/api/module-ai_nl-query.NLQuery.html +3 -0
  95. package/docs/api/module-ai_nl-query.html +3 -0
  96. package/docs/api/module-ai_relationships-RelationshipDiscovery.html +6 -0
  97. package/docs/api/module-ai_relationships.RelationshipDiscovery.html +3 -0
  98. package/docs/api/module-ai_relationships.html +3 -0
  99. package/docs/api/module-ai_schema-extractor-SchemaExtractor.html +5 -0
  100. package/docs/api/module-ai_schema-extractor.SchemaExtractor.html +3 -0
  101. package/docs/api/module-ai_schema-extractor.html +3 -0
  102. package/docs/api/module-ai_spatial-SpatialAnalysis.html +6 -0
  103. package/docs/api/module-ai_spatial.SpatialAnalysis.html +3 -0
  104. package/docs/api/module-ai_spatial.html +3 -0
  105. package/docs/api/module-ai_tts-TTS.html +5 -0
  106. package/docs/api/module-ai_tts.TTS.html +3 -0
  107. package/docs/api/module-ai_tts.html +3 -0
  108. package/docs/api/module-content_social-protocols.html +3 -0
  109. package/docs/api/module-core_holosphere-HoloSphere.html +6 -0
  110. package/docs/api/module-core_holosphere.HoloSphere.html +3 -0
  111. package/docs/api/module-core_holosphere.html +3 -0
  112. package/docs/api/module-crypto_nostr-utils.html +3 -0
  113. package/docs/api/module-crypto_secp256k1.html +3 -0
  114. package/docs/api/module-federation_hologram.html +3 -0
  115. package/docs/api/module-hierarchical_upcast.html +3 -0
  116. package/docs/api/module-holosphere-HoloSphereBase.html +3 -0
  117. package/docs/api/module-holosphere.html +3 -0
  118. package/docs/api/module-lib_ai-methods.html +3 -0
  119. package/docs/api/module-lib_contract-methods.html +3 -0
  120. package/docs/api/module-lib_errors-AuthorizationError.html +3 -0
  121. package/docs/api/module-lib_errors-ValidationError.html +3 -0
  122. package/docs/api/module-lib_errors.AuthorizationError.html +3 -0
  123. package/docs/api/module-lib_errors.ValidationError.html +3 -0
  124. package/docs/api/module-lib_errors.html +3 -0
  125. package/docs/api/module-lib_federation-methods.html +3 -0
  126. package/docs/api/module-lib_index.html +3 -0
  127. package/docs/api/module-schema_validator-ValidationError.html +3 -0
  128. package/docs/api/module-schema_validator.ValidationError.html +3 -0
  129. package/docs/api/module-schema_validator.html +3 -0
  130. package/docs/api/module-spatial_h3-operations.html +4 -0
  131. package/docs/api/module-storage_backend-factory.BackendFactory.html +3 -0
  132. package/docs/api/module-storage_backend-factory.html +3 -0
  133. package/docs/api/module-storage_backend-interface-StorageBackend.html +3 -0
  134. package/docs/api/module-storage_backend-interface.StorageBackend.html +3 -0
  135. package/docs/api/module-storage_backend-interface.html +3 -0
  136. package/docs/api/module-storage_backends_activitypub-backend-ActivityPubBackend.html +7 -0
  137. package/docs/api/module-storage_backends_activitypub-backend.ActivityPubBackend.html +3 -0
  138. package/docs/api/module-storage_backends_activitypub-backend.html +3 -0
  139. package/docs/api/module-storage_backends_activitypub_server-ActivityPubServer.html +8 -0
  140. package/docs/api/module-storage_backends_activitypub_server.ActivityPubServer.html +3 -0
  141. package/docs/api/module-storage_backends_activitypub_server.html +3 -0
  142. package/docs/api/module-storage_backends_gundb-backend-GunDBBackend.html +7 -0
  143. package/docs/api/module-storage_backends_gundb-backend.GunDBBackend.html +3 -0
  144. package/docs/api/module-storage_backends_gundb-backend.html +3 -0
  145. package/docs/api/module-storage_backends_nostr-backend-NostrBackend.html +8 -0
  146. package/docs/api/module-storage_backends_nostr-backend.NostrBackend.html +3 -0
  147. package/docs/api/module-storage_backends_nostr-backend.html +3 -0
  148. package/docs/api/module-storage_filesystem-storage-FileSystemStorage.html +5 -0
  149. package/docs/api/module-storage_filesystem-storage-browser-FileSystemStorage.html +3 -0
  150. package/docs/api/module-storage_filesystem-storage-browser.FileSystemStorage.html +3 -0
  151. package/docs/api/module-storage_filesystem-storage-browser.html +3 -0
  152. package/docs/api/module-storage_filesystem-storage.FileSystemStorage.html +3 -0
  153. package/docs/api/module-storage_filesystem-storage.html +3 -0
  154. package/docs/api/module-storage_global-tables.html +3 -0
  155. package/docs/api/module-storage_gun-async.html +3 -0
  156. package/docs/api/module-storage_gun-auth-GunAuth.html +5 -0
  157. package/docs/api/module-storage_gun-auth.GunAuth.html +3 -0
  158. package/docs/api/module-storage_gun-auth.html +3 -0
  159. package/docs/api/module-storage_gun-federation.html +3 -0
  160. package/docs/api/module-storage_gun-references-GunReferenceHandler.html +5 -0
  161. package/docs/api/module-storage_gun-references.GunReferenceHandler.html +3 -0
  162. package/docs/api/module-storage_gun-references.html +3 -0
  163. package/docs/api/module-storage_gun-schema-GunSchemaValidator.html +5 -0
  164. package/docs/api/module-storage_gun-schema.GunSchemaValidator.html +3 -0
  165. package/docs/api/module-storage_gun-schema.html +3 -0
  166. package/docs/api/module-storage_gun-wrapper.html +11 -0
  167. package/docs/api/module-storage_indexeddb-storage-IndexedDBStorage.html +5 -0
  168. package/docs/api/module-storage_indexeddb-storage.IndexedDBStorage.html +3 -0
  169. package/docs/api/module-storage_indexeddb-storage.html +3 -0
  170. package/docs/api/module-storage_key-storage-simple.html +3 -0
  171. package/docs/api/module-storage_key-storage.html +4 -0
  172. package/docs/api/module-storage_memory-storage-MemoryStorage.html +5 -0
  173. package/docs/api/module-storage_memory-storage.MemoryStorage.html +3 -0
  174. package/docs/api/module-storage_memory-storage.html +3 -0
  175. package/docs/api/module-storage_migration-MigrationTool.html +6 -0
  176. package/docs/api/module-storage_migration.MigrationTool.html +3 -0
  177. package/docs/api/module-storage_migration.html +3 -0
  178. package/docs/api/module-storage_nostr-async.html +18 -0
  179. package/docs/api/module-storage_nostr-client-LRUCache.html +3 -0
  180. package/docs/api/module-storage_nostr-client-NostrClient.html +7 -0
  181. package/docs/api/module-storage_nostr-client.NostrClient.html +15 -0
  182. package/docs/api/module-storage_nostr-client.html +6 -0
  183. package/docs/api/module-storage_nostr-wrapper.html +3 -0
  184. package/docs/api/module-storage_outbox-queue-OutboxQueue.html +4 -0
  185. package/docs/api/module-storage_outbox-queue.OutboxQueue.html +3 -0
  186. package/docs/api/module-storage_outbox-queue.html +3 -0
  187. package/docs/api/module-storage_persistent-storage-PersistentStorage.html +3 -0
  188. package/docs/api/module-storage_persistent-storage.html +4 -0
  189. package/docs/api/module-storage_sync-service-SyncService.html +5 -0
  190. package/docs/api/module-storage_sync-service.SyncService.html +3 -0
  191. package/docs/api/module-storage_sync-service.html +3 -0
  192. package/docs/api/module-storage_unified-storage.html +3 -0
  193. package/docs/api/module-subscriptions_manager.SubscriptionRegistry.html +3 -0
  194. package/docs/api/module-subscriptions_manager.html +3 -0
  195. package/docs/api/schema_validator.js.html +113 -0
  196. package/docs/api/scripts/core.js +726 -0
  197. package/docs/api/scripts/core.min.js +23 -0
  198. package/docs/api/scripts/resize.js +90 -0
  199. package/docs/api/scripts/search.js +265 -0
  200. package/docs/api/scripts/search.min.js +6 -0
  201. package/docs/api/scripts/third-party/Apache-License-2.0.txt +202 -0
  202. package/docs/api/scripts/third-party/fuse.js +9 -0
  203. package/docs/api/scripts/third-party/hljs-line-num-original.js +369 -0
  204. package/docs/api/scripts/third-party/hljs-line-num.js +1 -0
  205. package/docs/api/scripts/third-party/hljs-original.js +5171 -0
  206. package/docs/api/scripts/third-party/hljs.js +1 -0
  207. package/docs/api/scripts/third-party/popper.js +5 -0
  208. package/docs/api/scripts/third-party/tippy.js +1 -0
  209. package/docs/api/scripts/third-party/tocbot.js +672 -0
  210. package/docs/api/scripts/third-party/tocbot.min.js +1 -0
  211. package/docs/api/spatial_h3-operations.js.html +129 -0
  212. package/docs/api/storage_backend-factory.js.html +133 -0
  213. package/docs/api/storage_backend-interface.js.html +164 -0
  214. package/docs/api/storage_backends_activitypub-backend.js.html +298 -0
  215. package/docs/api/storage_backends_activitypub_server.js.html +678 -0
  216. package/docs/api/storage_backends_gundb-backend.js.html +878 -0
  217. package/docs/api/storage_backends_nostr-backend.js.html +254 -0
  218. package/docs/api/storage_filesystem-storage-browser.js.html +83 -0
  219. package/docs/api/storage_filesystem-storage.js.html +207 -0
  220. package/docs/api/storage_global-tables.js.html +116 -0
  221. package/docs/api/storage_gun-async.js.html +344 -0
  222. package/docs/api/storage_gun-auth.js.html +376 -0
  223. package/docs/api/storage_gun-federation.js.html +788 -0
  224. package/docs/api/storage_gun-references.js.html +212 -0
  225. package/docs/api/storage_gun-schema.js.html +309 -0
  226. package/docs/api/storage_gun-wrapper.js.html +645 -0
  227. package/docs/api/storage_indexeddb-storage.js.html +224 -0
  228. package/docs/api/storage_key-storage-simple.js.html +102 -0
  229. package/docs/api/storage_key-storage.js.html +171 -0
  230. package/docs/api/storage_memory-storage.js.html +128 -0
  231. package/docs/api/storage_migration.js.html +354 -0
  232. package/docs/api/storage_nostr-async.js.html +1076 -0
  233. package/docs/api/storage_nostr-client.js.html +1598 -0
  234. package/docs/api/storage_nostr-wrapper.js.html +218 -0
  235. package/docs/api/storage_outbox-queue.js.html +248 -0
  236. package/docs/api/storage_persistent-storage.js.html +160 -0
  237. package/docs/api/storage_sync-service.js.html +201 -0
  238. package/docs/api/storage_unified-storage.js.html +157 -0
  239. package/docs/api/styles/clean-jsdoc-theme-base.css +1159 -0
  240. package/docs/api/styles/clean-jsdoc-theme-dark.css +412 -0
  241. package/docs/api/styles/clean-jsdoc-theme-light.css +482 -0
  242. package/docs/api/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  243. package/docs/api/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  244. package/docs/api/styles/clean-jsdoc-theme.min.css +1 -0
  245. package/docs/api/subscriptions_manager.js.html +162 -0
  246. package/jsdoc.json +26 -0
  247. package/package.json +14 -3
  248. package/src/ai/aggregation.js +13 -2
  249. package/src/ai/breakdown.js +12 -2
  250. package/src/ai/classifier.js +14 -3
  251. package/src/ai/council.js +22 -7
  252. package/src/ai/embeddings.js +37 -15
  253. package/src/ai/federation-ai.js +13 -2
  254. package/src/ai/h3-ai.js +14 -2
  255. package/src/ai/index.js +16 -7
  256. package/src/ai/json-ops.js +18 -5
  257. package/src/ai/llm-service.js +62 -31
  258. package/src/ai/nl-query.js +12 -2
  259. package/src/ai/relationships.js +13 -2
  260. package/src/ai/schema-extractor.js +24 -10
  261. package/src/ai/spatial.js +13 -2
  262. package/src/ai/tts.js +25 -8
  263. package/src/content/social-protocols.js +34 -25
  264. package/src/contracts/chain-manager.js +68 -40
  265. package/src/contracts/deployer.js +70 -42
  266. package/src/contracts/event-listener.js +61 -29
  267. package/src/contracts/holon-contracts.js +46 -31
  268. package/src/contracts/index.js +5 -6
  269. package/src/contracts/networks.js +19 -14
  270. package/src/contracts/operations.js +58 -41
  271. package/src/contracts/queries.js +54 -20
  272. package/src/core/holosphere.js +35 -6
  273. package/src/crypto/nostr-utils.js +82 -76
  274. package/src/crypto/secp256k1.js +7 -2
  275. package/src/federation/handshake.js +7 -7
  276. package/src/federation/hologram.js +9 -1
  277. package/src/hierarchical/upcast.js +34 -20
  278. package/src/index.js +655 -5
  279. package/src/lib/ai-methods.js +352 -3
  280. package/src/lib/contract-methods.js +152 -3
  281. package/src/lib/errors.js +31 -1
  282. package/src/lib/federation-methods.js +110 -3
  283. package/src/lib/index.js +9 -5
  284. package/src/schema/validator.js +22 -3
  285. package/src/spatial/h3-operations.js +17 -1
  286. package/src/storage/backend-factory.js +7 -2
  287. package/src/storage/backend-interface.js +21 -2
  288. package/src/storage/backends/activitypub/server.js +25 -3
  289. package/src/storage/backends/activitypub-backend.js +25 -2
  290. package/src/storage/backends/gundb-backend.js +29 -2
  291. package/src/storage/backends/nostr-backend.js +116 -1
  292. package/src/storage/filesystem-storage-browser.js +42 -2
  293. package/src/storage/filesystem-storage.js +72 -5
  294. package/src/storage/global-tables.js +7 -2
  295. package/src/storage/gun-async.js +20 -11
  296. package/src/storage/gun-auth.js +15 -4
  297. package/src/storage/gun-federation.js +14 -5
  298. package/src/storage/gun-references.js +16 -5
  299. package/src/storage/gun-schema.js +25 -10
  300. package/src/storage/gun-wrapper.js +99 -36
  301. package/src/storage/indexeddb-storage.js +65 -4
  302. package/src/storage/key-storage-simple.js +32 -9
  303. package/src/storage/key-storage.js +45 -13
  304. package/src/storage/memory-storage.js +65 -4
  305. package/src/storage/migration.js +20 -7
  306. package/src/storage/nostr-async.js +157 -67
  307. package/src/storage/nostr-client.js +173 -49
  308. package/src/storage/nostr-wrapper.js +6 -2
  309. package/src/storage/outbox-queue.js +55 -18
  310. package/src/storage/persistent-storage.js +56 -13
  311. package/src/storage/sync-service.js +51 -17
  312. package/src/storage/unified-storage.js +7 -2
  313. package/src/subscriptions/manager.js +33 -16
  314. package/dist/index-4XHHKe6S.js.map +0 -1
  315. package/dist/index-Dz5kOZMI.cjs.map +0 -1
  316. package/dist/indexeddb-storage-DD7EFBVc.cjs.map +0 -1
  317. package/dist/indexeddb-storage-lExjjFlV.js.map +0 -1
  318. package/dist/memory-storage-C68adso2.js.map +0 -1
  319. package/dist/memory-storage-DD_6yyXT.cjs.map +0 -1
  320. /package/{cleanup-test-data.js → scripts/cleanup-test-data.js} +0 -0
  321. /package/{test-ai-real-api.js → scripts/test-ai-real-api.js} +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,446 @@
1
+ # Changelog
2
+
3
+ All notable changes to HoloSphere are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ # HoloSphere 2.0 (Complete Rewrite)
11
+
12
+ ## [2.0.0-alpha8] - 2025-12-15
13
+
14
+ ### Added
15
+ - **CDN Build Support**: New browser-ready bundle for direct script tag inclusion
16
+ - **Widget Examples**: Ready-to-use widget examples for quick integration
17
+
18
+ ### Fixed
19
+ - `skipPropagation` option for `federateHolon` to control hologram propagation
20
+ - Null data handling in Nostr backend for edge cases
21
+
22
+ ---
23
+
24
+ ## [2.0.0-alpha7] - 2025-12-14
25
+
26
+ ### Fixed
27
+ - **GunDB Backend Hologram Support**: Proper deserialization and count logic for holograms
28
+ - Optimized Gun backend with count-based collection for `readAll` operations
29
+
30
+ ---
31
+
32
+ ## [2.0.0-alpha5] - 2025-12-12
33
+
34
+ ### Added
35
+ - **Smart Contracts Integration**: Complete Ethereum contract system for fractal fund distribution
36
+ - Splitter, Managed, Zoned, Appreciative, and Bundle contract types
37
+ - Multi-chain support (Ethereum, Polygon, Arbitrum, Base, Optimism)
38
+ - Contract deployment, operations, and event listening
39
+ - **Unified Storage Layer**: Abstract backend interface supporting multiple storage technologies
40
+ - **TypeScript Type Definitions**: Full TypeScript support with comprehensive type definitions
41
+
42
+ ### Changed
43
+ - **Nostr Client Optimization**: Long-lived subscriptions, query deduplication, and intelligent caching
44
+ - Improved npm package structure with proper gitignore and npmignore
45
+
46
+ ### Fixed
47
+ - Federation handshake protocol improvements
48
+
49
+ ---
50
+
51
+ ## [2.0.0-alpha0] - 2025-12-05
52
+
53
+ ### Added
54
+ - **AI Module**: Comprehensive AI integration using OpenAI
55
+ - LLM service with summarization, analysis, categorization, translation
56
+ - Vector embeddings and semantic search
57
+ - Multi-perspective Council for balanced decision-making
58
+ - Natural language query interface
59
+ - Schema extraction from unstructured text
60
+ - Fuzzy JSON operations (semantic merge, diff, union)
61
+ - Spatial analysis and H3 geospatial AI
62
+ - Task breakdown with hierarchical decomposition
63
+ - Relationship discovery and federation advisor
64
+ - **True Local-First Architecture**: Guaranteed delivery with outbox queue and sync service
65
+ - **Circular Hologram Prevention**: Safeguards against infinite reference loops
66
+ - **Comprehensive Capability Tests**: Full test suite for capability-based authorization
67
+
68
+ ### Changed
69
+ - Major project restructure with modular organization
70
+ - Enhanced documentation for local-first architecture
71
+
72
+ ---
73
+
74
+ ## [2.0.0-alpha] - 2025-12-04
75
+
76
+ ### Added
77
+ - **Capability Tokens for Federation**: Secure cross-HoloSphere authorization
78
+ - Time-limited capability tokens with cryptographic signatures
79
+ - Scope-based permissions (holon, lens, data level)
80
+ - Inbound/outbound capability registry
81
+ - **Multi-HoloSphere Support**: Federation between multiple HoloSphere instances
82
+ - **FOSDEM 2025 Proposal**: Local-first devroom talk proposal
83
+
84
+ ### Documentation
85
+ - Added LOCALFIRST.md with honest assessment of local-first architecture
86
+ - Updated VIBE.md to clarify actual vs aspirational architecture
87
+ - Added npm.flow.fund intentions for spatial value flows
88
+
89
+ ---
90
+
91
+ ## [2.0.0-dev] - 2025-11-26
92
+
93
+ ### Added
94
+ - **Working Hologram Federation on Nostr**: First successful cross-holon data references
95
+ - **Cached Write Returns**: Immediate consistency for newly written data
96
+
97
+ ### Changed
98
+ - Improved delete operation semantics with tombstone markers
99
+ - Fixed hologram resolution and cross-reference handling
100
+
101
+ ---
102
+
103
+ ## [2.0.0-dev] - 2025-11-22
104
+
105
+ ### Added
106
+ - **Nostr Subscription Improvements**: Better startup logging and subscription handling
107
+ - **Global Write API**: Consistent API for non-holon-specific data storage
108
+
109
+ ### Fixed
110
+ - Global write API inconsistencies resolved
111
+ - Data import functionality improvements
112
+
113
+ ---
114
+
115
+ ## [2.0.0-dev] - 2025-11-17
116
+
117
+ ### Added
118
+ - **Nostr-based Prediction Market**: Quest coordination using prediction markets
119
+ - Interactive web demo for prediction market visualization
120
+ - Polygon-based hexagon selection for geographic predictions
121
+ - **Hologram Specification Compliance**: Full compliance with hologram reference spec
122
+ - **Polygon-Based Federation**: Geographic region selection for federation
123
+
124
+ ### Changed
125
+ - Updated VIBE.md to reflect Nostr integration architecture
126
+ - Removed deprecated demo files in favor of new prediction market demo
127
+
128
+ ---
129
+
130
+ ## [2.0.0-dev] - 2025-11-10
131
+
132
+ ### Added
133
+ - **Comprehensive Documentation**: Full API documentation and code cleanup
134
+ - **Test Suite**: Working test infrastructure
135
+
136
+ ### Changed
137
+ - Major code cleanup and organization
138
+
139
+ ---
140
+
141
+ ## [2.0.0-dev] - 2025-11-08
142
+
143
+ ### Added
144
+ - **Working Prototype**: First functional version of HoloSphere 2.0
145
+ - **NPM Package**: Initial package.json configuration
146
+
147
+ ---
148
+
149
+ ## [2.0.0-dev] - 2025-10-30
150
+
151
+ ### Added
152
+ - **Global Functions**: Non-location-specific data operations
153
+ - `writeGlobal`, `readGlobal`, `updateGlobal`, `deleteGlobal`
154
+ - Support for application-wide data (schemas, configs, preferences)
155
+
156
+ ---
157
+
158
+ ## [2.0.0-dev] - 2025-10-17
159
+
160
+ ### Added
161
+ - **First Version of 2.0**: Initial implementation of HoloSphere 2.0 architecture
162
+ - Complete rewrite with Nostr as primary storage backend
163
+ - New modular architecture with pluggable backends
164
+
165
+ ---
166
+
167
+ ## [2.0.0-dev] - 2025-10-06
168
+
169
+ ### Added
170
+ - **Initial Commit**: Project scaffolding from Specify template
171
+ - Beginning of HoloSphere 2.0 development
172
+
173
+ ---
174
+
175
+ # HoloSphere 1.x (Original GunDB Implementation)
176
+
177
+ ## [1.1.18] - 2025-11-17
178
+
179
+ ### Added
180
+ - **Permaculture Flower Ecosystem**: Web examples for 14 ecosystem projects
181
+ - Interactive Mapbox + H3 demo pages
182
+ - Unique landing pages with professional imagery
183
+ - Federation system binding ecosystem together
184
+ - **Vibe Coding Instructions**: Development guidelines documentation
185
+
186
+ ---
187
+
188
+ ## [1.1.13] - 2025-08-07
189
+
190
+ ### Changed
191
+ - **Switched to Radisk**: Improved persistence with radisk storage
192
+
193
+ ---
194
+
195
+ ## [1.1.12] - 2025-06-15
196
+
197
+ ### Added
198
+ - **Automatic H3 Parent Propagation**: Data automatically propagates to parent hexagons
199
+ - **CDN Bundle**: HTML CDN bundle with usage example
200
+
201
+ ### Fixed
202
+ - Hex detection for parent propagation
203
+ - Hologram propagation and deletion edge cases
204
+
205
+ ---
206
+
207
+ ## [1.1.11] - 2025-04-21
208
+
209
+ ### Added
210
+ - **Version Function**: Programmatic version checking
211
+ - **Gun Options in Constructor**: Pass custom Gun configuration options
212
+
213
+ ### Fixed
214
+ - Various stability improvements
215
+ - Authentication flow refinements
216
+
217
+ ---
218
+
219
+ ## [1.1.10] - 2025-04-05
220
+
221
+ ### Added
222
+ - **Holograms**: Lightweight cross-holon data references
223
+ - Hologram lists attached to target data
224
+ - `isHologram` metadata for resolved references
225
+ - **Put to Hologram**: Writing to a hologram stores in original location
226
+ - **Lens-Aware Federation**: Federation propagation checks lens configuration
227
+
228
+ ### Fixed
229
+ - Auth subscriptions and deletes
230
+ - Federation and reference resolution
231
+ - Reference cycle detection (checks previously visited locations)
232
+
233
+ ### Changed
234
+ - Removed legacy federation logic
235
+ - Refactored holosphere.js into multiple files for maintainability
236
+
237
+ ---
238
+
239
+ ## [1.1.9] - 2025-04-02
240
+
241
+ ### Changed
242
+ - **Refactored getAll/getGlobal**: Better handling for user authentication
243
+ - **Improved API Consistency**: Unified promise handling across functions
244
+ - **Enhanced put/get Logic**: Better password handling
245
+
246
+ ### Removed
247
+ - `.env` files and Babel dependencies (cleanup)
248
+
249
+ ---
250
+
251
+ ## [1.1.6] - 2025-03-19
252
+
253
+ ### Added
254
+ - **Federation with References**: Reworked federation system using reference-based approach
255
+ - **Bot Integration**: Federation functionality for HolonsBot integration
256
+ - **Release Candidate 1**: First production-ready release
257
+
258
+ ### Changed
259
+ - Updated READMEs and TypeScript typings
260
+
261
+ ---
262
+
263
+ ## [1.1.5] - 2025-03-17
264
+
265
+ ### Added
266
+ - **Spaces**: First implementation of isolated data spaces
267
+ - **New Authentication System**: Reworked auth with improved security
268
+
269
+ ### Fixed
270
+ - Subscription and schema retrieval
271
+ - Compute function improvements
272
+ - Test infrastructure (federation + spaces auth)
273
+
274
+ ---
275
+
276
+ ## [1.1.0] - 2025-02-13
277
+
278
+ ### Added
279
+ - **All Tests Passing**: Complete test coverage
280
+ - **Spaces Authentication**: Combined federation and spaces auth testing
281
+
282
+ ### Fixed
283
+ - Testing infrastructure improvements
284
+
285
+ ---
286
+
287
+ ## [1.0.5] - 2025-01-31
288
+
289
+ ### Added
290
+ - **Safety Fixes**: Additional validation and error handling
291
+ - **Cast/Publish Fixes**: Improved data publishing workflow
292
+
293
+ ---
294
+
295
+ ## [1.0.4] - 2024-12-31
296
+
297
+ ### Added
298
+ - **First Working Publish/Casting**: Data publishing to network
299
+ - **Fixed getAllGlobal**: Corrected global data retrieval
300
+
301
+ ---
302
+
303
+ ## [1.0.3] - 2024-12-18
304
+
305
+ ### Added
306
+ - **TypeScript Migration**: Switched everything to TypeScript
307
+ - **Parse Function**: Reintroduced data parsing functionality
308
+
309
+ ### Fixed
310
+ - JavaScript compilation issues
311
+ - Minor TypeScript configuration issues
312
+
313
+ ---
314
+
315
+ ## [1.0.2] - 2024-12-08
316
+
317
+ ### Changed
318
+ - **Naming Convention Cleanup**: Removed voting, cleaned up APIs
319
+ - **All Tests Running**: Complete test suite execution
320
+
321
+ ---
322
+
323
+ ## [1.0.1] - 2024-11-22
324
+
325
+ ### Added
326
+ - **Global Functions**: Application-wide data operations
327
+ - `writeGlobal`, `readGlobal`, `updateGlobal`, `deleteGlobal`
328
+ - **Test Suite**: Initial test coverage
329
+ - **TypeScript Types**: Type definitions for API
330
+
331
+ ### Changed
332
+ - Updated README documentation
333
+
334
+ ---
335
+
336
+ ## [1.0.0] - 2024-10-21
337
+
338
+ ### Added
339
+ - **Initial Release**: First version of HoloSphere
340
+ - **GunDB Integration**: Real-time P2P data synchronization
341
+ - **H3 Hexagonal Indexing**: Geographic data organization
342
+ - **Basic CRUD Operations**: `put`, `get`, `getAll`, `delete`
343
+ - **Reference System**: Cross-holon data references
344
+ - **MIT License**: Open source licensing
345
+
346
+ ---
347
+
348
+ # Architecture Overview
349
+
350
+ ## Core Concepts
351
+
352
+ - **Holons**: Geographic locations identified by H3 hexagonal indexes (16 resolution levels)
353
+ - **Lenses**: Named data collections within holons (e.g., "projects", "events", "quests")
354
+ - **Holograms**: Lightweight references to data in other holons (federated pointers)
355
+ - **Capabilities**: Cryptographic tokens for authorization across federated instances
356
+
357
+ ## Storage Backends (2.0+)
358
+
359
+ | Backend | Protocol | Use Case |
360
+ |---------|----------|----------|
361
+ | Nostr | NIP-01 events | Decentralized P2P storage |
362
+ | GunDB | CRDT + WebRTC | Real-time collaboration |
363
+ | ActivityPub | Fediverse | Social federation |
364
+
365
+ ## Smart Contracts (2.0+)
366
+
367
+ | Contract | Purpose |
368
+ |----------|---------|
369
+ | Splitter | Internal/external fund split with fractal nesting |
370
+ | Managed | Appreciation-based distribution |
371
+ | Zoned | Tier-based zone rewards |
372
+ | Appreciative | Peer-to-peer appreciation |
373
+ | Bundle | All-in-one 2-way split with steepness |
374
+
375
+ ---
376
+
377
+ # Migration Notes
378
+
379
+ ## From 1.x to 2.0
380
+
381
+ HoloSphere 2.0 is a complete rewrite with breaking changes:
382
+
383
+ 1. **Storage Layer**: Now uses pluggable backends (Nostr, GunDB, ActivityPub)
384
+ 2. **Federation**: New capability-based authorization system
385
+ 3. **API Changes**: Unified async/await API across all operations
386
+ 4. **AI Integration**: Optional OpenAI-powered features
387
+ 5. **Package Name**: Published as `holosphere@next` on npm
388
+
389
+ ### API Changes
390
+
391
+ ```javascript
392
+ // 1.x style (GunDB only)
393
+ const hs = new HoloSphere({ gun: gunInstance });
394
+ hs.put(holon, lens, data, callback);
395
+ hs.get(holon, lens, id, callback);
396
+
397
+ // 2.0 style (pluggable backends)
398
+ const hs = new HoloSphere({
399
+ appName: 'myapp',
400
+ backend: 'nostr', // or 'gundb', 'activitypub'
401
+ relays: ['wss://relay.example.com']
402
+ });
403
+ await hs.init();
404
+ await hs.write(holon, lens, data);
405
+ const result = await hs.read(holon, lens, id);
406
+ ```
407
+
408
+ ### Key Differences
409
+
410
+ | Feature | 1.x | 2.0 |
411
+ |---------|-----|-----|
412
+ | Storage | GunDB only | Nostr, GunDB, ActivityPub |
413
+ | API Style | Callbacks | Async/await |
414
+ | Federation | Reference-based | Capability tokens |
415
+ | AI Features | None | Full OpenAI integration |
416
+ | Smart Contracts | None | Ethereum multi-chain |
417
+
418
+ ---
419
+
420
+ # Contributors
421
+
422
+ - Roberto Valenti ([@liminalvillage](https://github.com/liminalvillage))
423
+ - Claude (AI pair programmer)
424
+ - qbfrank
425
+ - polux0
426
+
427
+ ---
428
+
429
+ [2.0.0-alpha8]: https://github.com/liminalvillage/holosphere/compare/v2.0.0-alpha7...v2.0.0-alpha8
430
+ [2.0.0-alpha7]: https://github.com/liminalvillage/holosphere/compare/v2.0.0-alpha5...v2.0.0-alpha7
431
+ [2.0.0-alpha5]: https://github.com/liminalvillage/holosphere/compare/v2.0.0-alpha0...v2.0.0-alpha5
432
+ [2.0.0-alpha0]: https://github.com/liminalvillage/holosphere/compare/v2.0.0-alpha...v2.0.0-alpha0
433
+ [1.1.18]: https://github.com/liminalvillage/holosphere/compare/v1.1.12...v1.1.18
434
+ [1.1.12]: https://github.com/liminalvillage/holosphere/compare/v1.1.11...v1.1.12
435
+ [1.1.11]: https://github.com/liminalvillage/holosphere/compare/v1.1.10...v1.1.11
436
+ [1.1.10]: https://github.com/liminalvillage/holosphere/compare/v1.1.9...v1.1.10
437
+ [1.1.9]: https://github.com/liminalvillage/holosphere/compare/v1.1.6...v1.1.9
438
+ [1.1.6]: https://github.com/liminalvillage/holosphere/compare/v1.1.5...v1.1.6
439
+ [1.1.5]: https://github.com/liminalvillage/holosphere/compare/v1.1.0...v1.1.5
440
+ [1.1.0]: https://github.com/liminalvillage/holosphere/compare/v1.0.5...v1.1.0
441
+ [1.0.5]: https://github.com/liminalvillage/holosphere/compare/v1.0.4...v1.0.5
442
+ [1.0.4]: https://github.com/liminalvillage/holosphere/compare/v1.0.3...v1.0.4
443
+ [1.0.3]: https://github.com/liminalvillage/holosphere/compare/v1.0.2...v1.0.3
444
+ [1.0.2]: https://github.com/liminalvillage/holosphere/compare/v1.0.1...v1.0.2
445
+ [1.0.1]: https://github.com/liminalvillage/holosphere/compare/v1.0.0...v1.0.1
446
+ [1.0.0]: https://github.com/liminalvillage/holosphere/releases/tag/v1.0.0