holosphere 2.0.0-alpha13 → 2.0.0-alpha15

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 (50) hide show
  1. package/dist/2019-ATLjawsU.cjs +8 -0
  2. package/dist/{2019-Cp3uYhyY.cjs.map → 2019-ATLjawsU.cjs.map} +1 -1
  3. package/dist/{2019-CLMqIAfQ.js → 2019-BfjzDRje.js} +1667 -1721
  4. package/dist/{2019-CLMqIAfQ.js.map → 2019-BfjzDRje.js.map} +1 -1
  5. package/dist/{browser-nUQt1cnB.js → browser-CKTczilW.js} +2 -2
  6. package/dist/{browser-nUQt1cnB.js.map → browser-CKTczilW.js.map} +1 -1
  7. package/dist/{browser-D6cNVl0v.cjs → browser-GOg6KKOV.cjs} +2 -2
  8. package/dist/{browser-D6cNVl0v.cjs.map → browser-GOg6KKOV.cjs.map} +1 -1
  9. package/dist/cjs/holosphere.cjs +1 -1
  10. package/dist/esm/holosphere.js +25 -21
  11. package/dist/{index-CoAjtqsD.js → index-BdnrGafX.js} +2 -2
  12. package/dist/{index-CoAjtqsD.js.map → index-BdnrGafX.js.map} +1 -1
  13. package/dist/{index-BN_uoxQK.js → index-C3Cag0SV.js} +2558 -495
  14. package/dist/index-C3Cag0SV.js.map +1 -0
  15. package/dist/index-ChpSfdYS.cjs +29 -0
  16. package/dist/index-ChpSfdYS.cjs.map +1 -0
  17. package/dist/{index-DJjGSwXG.cjs → index-D_QecZNu.cjs} +2 -2
  18. package/dist/{index-DJjGSwXG.cjs.map → index-D_QecZNu.cjs.map} +1 -1
  19. package/dist/{index-Z5TstN1e.js → index-nMC3dWZ5.js} +2 -2
  20. package/dist/{index-Z5TstN1e.js.map → index-nMC3dWZ5.js.map} +1 -1
  21. package/dist/{index-Cp3tI53z.cjs → index-z5HWfWMu.cjs} +2 -2
  22. package/dist/{index-Cp3tI53z.cjs.map → index-z5HWfWMu.cjs.map} +1 -1
  23. package/dist/{indexeddb-storage-CZK5A7XH.cjs → indexeddb-storage-DWSeL-YF.cjs} +2 -2
  24. package/dist/{indexeddb-storage-CZK5A7XH.cjs.map → indexeddb-storage-DWSeL-YF.cjs.map} +1 -1
  25. package/dist/{indexeddb-storage-bpA01pAU.js → indexeddb-storage-dx01N0ET.js} +2 -2
  26. package/dist/{indexeddb-storage-bpA01pAU.js.map → indexeddb-storage-dx01N0ET.js.map} +1 -1
  27. package/dist/{memory-storage-BqhmytP_.js → memory-storage-BPIfkpcf.js} +2 -2
  28. package/dist/{memory-storage-BqhmytP_.js.map → memory-storage-BPIfkpcf.js.map} +1 -1
  29. package/dist/{memory-storage-B1k8Jszd.cjs → memory-storage-CKUGDq2d.cjs} +2 -2
  30. package/dist/{memory-storage-B1k8Jszd.cjs.map → memory-storage-CKUGDq2d.cjs.map} +1 -1
  31. package/package.json +3 -1
  32. package/scripts/test-ndk-direct.js +104 -0
  33. package/src/crypto/key-store.js +356 -0
  34. package/src/crypto/lens-keys.js +205 -0
  35. package/src/crypto/secp256k1.js +181 -18
  36. package/src/federation/handshake.js +317 -23
  37. package/src/federation/hologram.js +25 -17
  38. package/src/federation/registry.js +779 -59
  39. package/src/index.js +416 -27
  40. package/src/lib/federation-methods.js +308 -4
  41. package/src/storage/nostr-async.js +144 -86
  42. package/src/storage/nostr-client.js +77 -18
  43. package/src/storage/nostr-wrapper.js +4 -1
  44. package/src/storage/unified-storage.js +5 -4
  45. package/src/subscriptions/manager.js +1 -1
  46. package/vitest.config.js +6 -1
  47. package/dist/2019-Cp3uYhyY.cjs +0 -8
  48. package/dist/index-BN_uoxQK.js.map +0 -1
  49. package/dist/index-V8EHMYEY.cjs +0 -29
  50. package/dist/index-V8EHMYEY.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-V8EHMYEY.cjs");exports.AuthorizationError=e.AuthorizationError,exports.ChainManager=e.ChainManager,exports.Classifier=e.Classifier,exports.ContractABIs=e.ABIs,exports.ContractDeployer=e.ContractDeployer,exports.ContractOperations=e.ContractOperations,exports.ContractQueries=e.ContractQueries,exports.Council=e.Council,exports.Embeddings=e.Embeddings,exports.EventListener=e.EventListener,exports.FederationAdvisor=e.FederationAdvisor,exports.H3AI=e.H3AI,exports.HoloSphere=e.HoloSphere,exports.HolonContracts=e.HolonContracts,exports.JSONOps=e.JSONOps,exports.LLMService=e.LLMService,exports.MODELS=e.MODELS,exports.NETWORKS=e.NETWORKS,exports.NLQuery=e.NLQuery,exports.RelationshipDiscovery=e.RelationshipDiscovery,exports.SANKEY_EVENTS=e.SANKEY_EVENTS,exports.SchemaExtractor=e.SchemaExtractor,exports.SmartAggregation=e.SmartAggregation,exports.SpatialAnalysis=e.SpatialAnalysis,exports.TTS=e.TTS,exports.TaskBreakdown=e.TaskBreakdown,exports.VOICES=e.VOICES,exports.ValidationError=e.ValidationError,exports.capabilities=e.capabilities,exports.cardStorage=e.cardStorage,exports.createAIServices=e.createAIServices,exports.createFederationCard=e.createFederationCard,exports.createHologram=e.createHologram,exports.crypto=e.secp256k1,exports.default=e.HoloSphere,exports.dismissCard=e.dismissCard,exports.dismissRequest=e.dismissRequest,exports.federation=e.hologram,exports.getAddressUrl=e.getAddressUrl,exports.getCard=e.getCard,exports.getDisplayableCards=e.getDisplayableCards,exports.getLensConfigForHandshake=e.getLensConfigForHandshake,exports.getNetwork=e.getNetwork,exports.getNetworksByType=e.getNetworksByType,exports.getTxUrl=e.getTxUrl,exports.getVisibleLenses=e.getVisibleLenses,exports.handshake=e.handshake,exports.hierarchical=e.upcast,exports.holonRegistry=e.holonRegistry,exports.isNetworkSupported=e.isNetworkSupported,exports.isResponseProcessed=e.isResponseProcessed,exports.listNetworks=e.listNetworks,exports.markResponseProcessed=e.markResponseProcessed,exports.matchScope=e.matchScope,exports.networks=e.networks,exports.nostrUtils=e.nostrUtils,exports.registry=e.registry,exports.requestCard=e.requestCard,exports.saveCard=e.saveCard,exports.schema=e.validator,exports.social=e.socialProtocols,exports.spatial=e.h3Operations,exports.storage=e.unifiedStorage,exports.subscriptions=e.manager,exports.toggleCardExpansion=e.toggleCardExpansion,exports.toggleLens=e.toggleLens;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-ChpSfdYS.cjs");exports.AuthorizationError=e.AuthorizationError,exports.ChainManager=e.ChainManager,exports.Classifier=e.Classifier,exports.ContractABIs=e.ABIs,exports.ContractDeployer=e.ContractDeployer,exports.ContractOperations=e.ContractOperations,exports.ContractQueries=e.ContractQueries,exports.Council=e.Council,exports.Embeddings=e.Embeddings,exports.EventListener=e.EventListener,exports.FederationAdvisor=e.FederationAdvisor,exports.H3AI=e.H3AI,exports.HoloSphere=e.HoloSphere,exports.HolonContracts=e.HolonContracts,exports.JSONOps=e.JSONOps,exports.LLMService=e.LLMService,exports.LensKeyStore=e.LensKeyStore,exports.MODELS=e.MODELS,exports.NETWORKS=e.NETWORKS,exports.NLQuery=e.NLQuery,exports.RelationshipDiscovery=e.RelationshipDiscovery,exports.SANKEY_EVENTS=e.SANKEY_EVENTS,exports.SchemaExtractor=e.SchemaExtractor,exports.SmartAggregation=e.SmartAggregation,exports.SpatialAnalysis=e.SpatialAnalysis,exports.TTS=e.TTS,exports.TaskBreakdown=e.TaskBreakdown,exports.VOICES=e.VOICES,exports.ValidationError=e.ValidationError,exports.buildLensPath=e.buildLensPath,exports.capabilities=e.capabilities,exports.cardStorage=e.cardStorage,exports.createAIServices=e.createAIServices,exports.createFederationCard=e.createFederationCard,exports.createHologram=e.createHologram,exports.crypto=e.secp256k1,exports.default=e.HoloSphere,exports.dismissCard=e.dismissCard,exports.dismissRequest=e.dismissRequest,exports.federation=e.hologram,exports.getAddressUrl=e.getAddressUrl,exports.getCard=e.getCard,exports.getDisplayableCards=e.getDisplayableCards,exports.getLensConfigForHandshake=e.getLensConfigForHandshake,exports.getNetwork=e.getNetwork,exports.getNetworksByType=e.getNetworksByType,exports.getTxUrl=e.getTxUrl,exports.getVisibleLenses=e.getVisibleLenses,exports.handshake=e.handshake,exports.hierarchical=e.upcast,exports.holonRegistry=e.holonRegistry,exports.isNetworkSupported=e.isNetworkSupported,exports.isResponseProcessed=e.isResponseProcessed,exports.lensKeys=e.lensKeys,exports.listNetworks=e.listNetworks,exports.markResponseProcessed=e.markResponseProcessed,exports.matchScope=e.matchScope,exports.networks=e.networks,exports.nostrUtils=e.nostrUtils,exports.parseLensPath=e.parseLensPath,exports.registry=e.registry,exports.requestCard=e.requestCard,exports.saveCard=e.saveCard,exports.schema=e.validator,exports.social=e.socialProtocols,exports.spatial=e.h3Operations,exports.storage=e.unifiedStorage,exports.subscriptions=e.manager,exports.toggleCardExpansion=e.toggleCardExpansion,exports.toggleLens=e.toggleLens;
2
2
  //# sourceMappingURL=holosphere.cjs.map
@@ -1,4 +1,4 @@
1
- import { aX, bs, b6, bw, bt, bv, by, b1, b0, bx, b9, bc, aW, bu, a$, aZ, b4, bQ, b5, ba, bz, a_, b8, b7, b2, bb, b3, aY, bn, bp, bP, bD, bC, bi, aW as aW2, bI, bM, bg, bW, bK, bL, bF, bR, bS, bV, bE, bh, bm, bq, bU, bO, bT, bN, bB, bA, bj, br, bo, bJ, bf, bk, bd, be, bl, bH, bG } from "../index-BN_uoxQK.js";
1
+ import { aX, bs, b6, bw, bt, bv, by, b1, b0, bx, b9, bc, aW, bu, a$, aZ, bD, b4, bU, b5, ba, bz, a_, b8, b7, b2, bb, b3, aY, bE, bn, bp, bT, bH, bC, bi, aW as aW2, bM, bQ, bg, b_, bO, bP, bJ, bV, bW, bZ, bI, bh, bm, bq, bY, bS, bG, bX, bR, bB, bA, bj, bF, br, bo, bN, bf, bk, bd, be, bl, bL, bK } from "../index-C3Cag0SV.js";
2
2
  export {
3
3
  aX as AuthorizationError,
4
4
  bs as ChainManager,
@@ -16,8 +16,9 @@ export {
16
16
  bu as HolonContracts,
17
17
  a$ as JSONOps,
18
18
  aZ as LLMService,
19
+ bD as LensKeyStore,
19
20
  b4 as MODELS,
20
- bQ as NETWORKS,
21
+ bU as NETWORKS,
21
22
  b5 as NLQuery,
22
23
  ba as RelationshipDiscovery,
23
24
  bz as SANKEY_EVENTS,
@@ -28,43 +29,46 @@ export {
28
29
  bb as TaskBreakdown,
29
30
  b3 as VOICES,
30
31
  aY as ValidationError,
32
+ bE as buildLensPath,
31
33
  bn as capabilities,
32
34
  bp as cardStorage,
33
- bP as createAIServices,
34
- bD as createFederationCard,
35
+ bT as createAIServices,
36
+ bH as createFederationCard,
35
37
  bC as createHologram,
36
38
  bi as crypto,
37
39
  aW2 as default,
38
- bI as dismissCard,
39
- bM as dismissRequest,
40
+ bM as dismissCard,
41
+ bQ as dismissRequest,
40
42
  bg as federation,
41
- bW as getAddressUrl,
42
- bK as getCard,
43
- bL as getDisplayableCards,
44
- bF as getLensConfigForHandshake,
45
- bR as getNetwork,
46
- bS as getNetworksByType,
47
- bV as getTxUrl,
48
- bE as getVisibleLenses,
43
+ b_ as getAddressUrl,
44
+ bO as getCard,
45
+ bP as getDisplayableCards,
46
+ bJ as getLensConfigForHandshake,
47
+ bV as getNetwork,
48
+ bW as getNetworksByType,
49
+ bZ as getTxUrl,
50
+ bI as getVisibleLenses,
49
51
  bh as handshake,
50
52
  bm as hierarchical,
51
53
  bq as holonRegistry,
52
- bU as isNetworkSupported,
53
- bO as isResponseProcessed,
54
- bT as listNetworks,
55
- bN as markResponseProcessed,
54
+ bY as isNetworkSupported,
55
+ bS as isResponseProcessed,
56
+ bG as lensKeys,
57
+ bX as listNetworks,
58
+ bR as markResponseProcessed,
56
59
  bB as matchScope,
57
60
  bA as networks,
58
61
  bj as nostrUtils,
62
+ bF as parseLensPath,
59
63
  br as registry,
60
64
  bo as requestCard,
61
- bJ as saveCard,
65
+ bN as saveCard,
62
66
  bf as schema,
63
67
  bk as social,
64
68
  bd as spatial,
65
69
  be as storage,
66
70
  bl as subscriptions,
67
- bH as toggleCardExpansion,
68
- bG as toggleLens
71
+ bL as toggleCardExpansion,
72
+ bK as toggleLens
69
73
  };
70
74
  //# sourceMappingURL=holosphere.js.map
@@ -1,4 +1,4 @@
1
- import { a as getBytes, t as toBigInt, b as assertArgument, c as assert, m as makeError, d as toUtf8Bytes, h as hexlify, e as toUtf8String, f as defineProperties, H as Hash, i as hash, j as toBytes, k as exists, l as bytes, n as createView, o as checkOpts, p as number, q as output, w as wrapConstructor, r as rotr, u as u64, s as asyncLoop, v as u32, x as randomBytes$2, y as concatBytes$1, z as dataLength, A as getNumber, B as concat, C as assertPrivate, D as getBigInt, E as isHexString, F as zeroPadValue, G as toBeArray, I as getBytesCopy, J as toBeHex, K as keccak256, L as getAddress, M as dataSlice, Z as ZeroAddress, N as accessListify, O as isBytesLike, P as toTwos, Q as zeroPadBytes, R as id, S as mask, T as toQuantity, U as Interface, V as BaseContract, W as copyOverrides, X as resolveArgs, Y as Contract, _ as isError, $ as Block, a0 as Log, a1 as TransactionReceipt, a2 as TransactionResponse, a3 as resolveAddress, a4 as copyRequest, a5 as FeeData, a6 as isCallException, a7 as resolveProperties, a8 as EventPayload, a9 as AbiCoder, aa as assertNormalize, ab as version, ac as ConstructorFragment, ad as ContractEventPayload, ae as ContractTransactionReceipt, af as ContractTransactionResponse, ag as ContractUnknownEventPayload, ah as ErrorDescription, ai as ErrorFragment, aj as EventFragment, ak as EventLog, al as FallbackFragment, am as FixedNumber, an as Fragment, ao as FunctionFragment, ap as Indexed, aq as LogDescription, ar as NamedFragment, as as ParamType, at as Result, au as StructFragment, av as TransactionDescription, aw as Typed, ax as UndecodedEventLog, ay as Utf8ErrorFuncs, az as assertArgumentCount, aA as checkResultErrors, aB as formatEther, aC as formatUnits, aD as fromTwos, aE as getIcapAddress, aF as getUint, aG as isAddress, aH as isAddressable, aI as parseEther, aJ as parseUnits$1, aK as stripZerosLeft, aL as toNumber, aM as toUtf8CodePoints } from "./index-BN_uoxQK.js";
1
+ import { a as getBytes, t as toBigInt, b as assertArgument, c as assert, m as makeError, d as toUtf8Bytes, h as hexlify, e as toUtf8String, f as defineProperties, H as Hash, i as hash, j as toBytes, k as exists, l as bytes, n as createView, o as checkOpts, p as number, q as output, w as wrapConstructor, r as rotr, u as u64, s as asyncLoop, v as u32, x as randomBytes$2, y as concatBytes$1, z as dataLength, A as getNumber, B as concat, C as assertPrivate, D as getBigInt, E as isHexString, F as zeroPadValue, G as toBeArray, I as getBytesCopy, J as toBeHex, K as keccak256, L as getAddress, M as dataSlice, Z as ZeroAddress, N as accessListify, O as isBytesLike, P as toTwos, Q as zeroPadBytes, R as id, S as mask, T as toQuantity, U as Interface, V as BaseContract, W as copyOverrides, X as resolveArgs, Y as Contract, _ as isError, $ as Block, a0 as Log, a1 as TransactionReceipt, a2 as TransactionResponse, a3 as resolveAddress, a4 as copyRequest, a5 as FeeData, a6 as isCallException, a7 as resolveProperties, a8 as EventPayload, a9 as AbiCoder, aa as assertNormalize, ab as version, ac as ConstructorFragment, ad as ContractEventPayload, ae as ContractTransactionReceipt, af as ContractTransactionResponse, ag as ContractUnknownEventPayload, ah as ErrorDescription, ai as ErrorFragment, aj as EventFragment, ak as EventLog, al as FallbackFragment, am as FixedNumber, an as Fragment, ao as FunctionFragment, ap as Indexed, aq as LogDescription, ar as NamedFragment, as as ParamType, at as Result, au as StructFragment, av as TransactionDescription, aw as Typed, ax as UndecodedEventLog, ay as Utf8ErrorFuncs, az as assertArgumentCount, aA as checkResultErrors, aB as formatEther, aC as formatUnits, aD as fromTwos, aE as getIcapAddress, aF as getUint, aG as isAddress, aH as isAddressable, aI as parseEther, aJ as parseUnits$1, aK as stripZerosLeft, aL as toNumber, aM as toUtf8CodePoints } from "./index-C3Cag0SV.js";
2
2
  const Alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
3
3
  let Lookup = null;
4
4
  function getAlpha(letter) {
@@ -15101,4 +15101,4 @@ export {
15101
15101
  zeroPadBytes,
15102
15102
  zeroPadValue
15103
15103
  };
15104
- //# sourceMappingURL=index-CoAjtqsD.js.map
15104
+ //# sourceMappingURL=index-BdnrGafX.js.map