holosphere 2.0.0-alpha21 → 2.0.0-alpha22
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.
- package/README.md +1 -2
- package/dist/cjs/holosphere.cjs +1 -1
- package/dist/esm/holosphere.js +43 -41
- package/dist/{index-COpLk9gL.cjs → index-B4xe-N5-.cjs} +2 -2
- package/dist/{index-COpLk9gL.cjs.map → index-B4xe-N5-.cjs.map} +1 -1
- package/dist/{index-D2WstuZJ.js → index-Bug_CGNq.js} +2 -2
- package/dist/{index-D2WstuZJ.js.map → index-Bug_CGNq.js.map} +1 -1
- package/dist/index-CaCPzdlv.cjs +29 -0
- package/dist/index-CaCPzdlv.cjs.map +1 -0
- package/dist/{index-B6-8KAQm.js → index-D76zMgwU.js} +2 -2
- package/dist/{index-B6-8KAQm.js.map → index-D76zMgwU.js.map} +1 -1
- package/dist/{index--QsHG_gD.cjs → index-DuOuk96g.cjs} +2 -2
- package/dist/{index--QsHG_gD.cjs.map → index-DuOuk96g.cjs.map} +1 -1
- package/dist/{index-BHptWysv.js → index-bYHRpACA.js} +2951 -7736
- package/dist/index-bYHRpACA.js.map +1 -0
- package/dist/{indexeddb-storage-kQ53UHEE.js → indexeddb-storage-BrIwr42m.js} +2 -2
- package/dist/{indexeddb-storage-kQ53UHEE.js.map → indexeddb-storage-BrIwr42m.js.map} +1 -1
- package/dist/{indexeddb-storage-wKG4mICM.cjs → indexeddb-storage-CFWfkdX9.cjs} +2 -2
- package/dist/{indexeddb-storage-wKG4mICM.cjs.map → indexeddb-storage-CFWfkdX9.cjs.map} +1 -1
- package/dist/{memory-storage-DnXCSbBl.js → memory-storage-BDQRj-2j.js} +2 -2
- package/dist/{memory-storage-DnXCSbBl.js.map → memory-storage-BDQRj-2j.js.map} +1 -1
- package/dist/{memory-storage-CGC8xM2G.cjs → memory-storage-bkatDnuR.cjs} +2 -2
- package/dist/{memory-storage-CGC8xM2G.cjs.map → memory-storage-bkatDnuR.cjs.map} +1 -1
- package/examples/demo.html +2 -29
- package/package.json +3 -8
- package/src/content/social-protocols.js +3 -59
- package/src/core/holosphere.js +16 -554
- package/src/crypto/nostr-utils.js +98 -1
- package/src/crypto/secp256k1.js +4 -393
- package/src/federation/discovery.js +7 -75
- package/src/federation/handshake.js +69 -202
- package/src/federation/hologram.js +222 -298
- package/src/federation/index.js +2 -9
- package/src/federation/registry.js +67 -1257
- package/src/federation/request-card.js +21 -35
- package/src/hierarchical/upcast.js +4 -9
- package/src/index.js +142 -296
- package/src/lib/federation-methods.js +370 -909
- package/src/storage/global-tables.js +1 -1
- package/src/storage/nostr-wrapper.js +9 -5
- package/src/subscriptions/manager.js +1 -1
- package/types/index.d.ts +145 -37
- package/bin/holosphere-activitypub.js +0 -158
- package/dist/2019-BzVkRcax.js +0 -6680
- package/dist/2019-BzVkRcax.js.map +0 -1
- package/dist/2019-C1hPR_Os.cjs +0 -8
- package/dist/2019-C1hPR_Os.cjs.map +0 -1
- package/dist/browser-BcmACE3G.js +0 -3058
- package/dist/browser-BcmACE3G.js.map +0 -1
- package/dist/browser-DaqYUTcG.cjs +0 -2
- package/dist/browser-DaqYUTcG.cjs.map +0 -1
- package/dist/index-BHptWysv.js.map +0 -1
- package/dist/index-CDlhzxT2.cjs +0 -29
- package/dist/index-CDlhzxT2.cjs.map +0 -1
- package/src/federation/capabilities.js +0 -46
- package/src/storage/backend-factory.js +0 -130
- package/src/storage/backend-interface.js +0 -161
- package/src/storage/backends/activitypub/server.js +0 -675
- package/src/storage/backends/activitypub-backend.js +0 -295
- package/src/storage/backends/gundb-backend.js +0 -875
- package/src/storage/backends/nostr-backend.js +0 -251
- package/src/storage/gun-async.js +0 -341
- package/src/storage/gun-auth.js +0 -373
- package/src/storage/gun-federation.js +0 -785
- package/src/storage/gun-references.js +0 -209
- package/src/storage/gun-schema.js +0 -306
- package/src/storage/gun-wrapper.js +0 -642
- package/src/storage/migration.js +0 -351
- package/src/storage/unified-storage.js +0 -161
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ A JavaScript library implementing holonic geospatial communication infrastructur
|
|
|
23
23
|
- **Discovery Protocol**: Automated Nostr-based federation handshake
|
|
24
24
|
- **Schema Validation**: JSON Schema 2019 with strict/permissive modes and URI references
|
|
25
25
|
- **Cryptographic Security**: secp256k1 signatures, capability tokens with permissions and scopes
|
|
26
|
-
- **Social Protocols**:
|
|
26
|
+
- **Social Protocols**: Nostr (NIP-01) native social content
|
|
27
27
|
- **Hierarchical Aggregation**: Automatic upcast to parent holons (summarize, aggregate, concatenate)
|
|
28
28
|
|
|
29
29
|
## Installation
|
|
@@ -520,7 +520,6 @@ const hs = new HoloSphere({
|
|
|
520
520
|
| Method | Description |
|
|
521
521
|
|--------|-------------|
|
|
522
522
|
| `publishNostr(event, holonId, lens?)` | Publish Nostr NIP-01 event |
|
|
523
|
-
| `publishActivityPub(object, holonId, lens?)` | Publish ActivityPub object |
|
|
524
523
|
| `querySocial(holonId, options?)` | Query with protocol/access filtering |
|
|
525
524
|
| `verifyNostrEvent(event)` | Verify event signature |
|
|
526
525
|
|
package/dist/cjs/holosphere.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../index-CaCPzdlv.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.cardStorage=e.cardStorage,exports.createAIServices=e.createAIServices,exports.createFederationCard=e.createFederationCard,exports.createHologram=e.createHologram,exports.createLensHologram=e.createLensHologram,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.isLensHologram=e.isLensHologram,exports.isNetworkSupported=e.isNetworkSupported,exports.isResponseProcessed=e.isResponseProcessed,exports.lensKeys=e.lensKeys,exports.listNetworks=e.listNetworks,exports.markResponseProcessed=e.markResponseProcessed,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.sendAck=e.sendAck,exports.sendShare=e.sendShare,exports.social=e.socialProtocols,exports.spatial=e.h3Operations,exports.storage=e.nostrWrapper,exports.subscriptions=e.manager,exports.toggleCardExpansion=e.toggleCardExpansion,exports.toggleLens=e.toggleLens;
|
|
2
2
|
//# sourceMappingURL=holosphere.cjs.map
|
package/dist/esm/holosphere.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { aX,
|
|
1
|
+
import { aX, br, b6, bv, bs, bu, bx, b1, b0, bw, b9, bc, aW, bt, a$, aZ, bF, b4, bW, b5, ba, by, a_, b8, b7, b2, bb, b3, aY, bG, bo, bV, bJ, bA, bB, bi, aW as aW2, bO, bS, bg, c0, bQ, bR, bL, bX, bY, b$, bK, bh, bm, bp, bC, b_, bU, bI, bZ, bT, bz, bj, bH, bq, bn, bP, bf, bE, bD, bk, bd, be, bl, bN, bM } from "../index-bYHRpACA.js";
|
|
2
2
|
export {
|
|
3
3
|
aX as AuthorizationError,
|
|
4
|
-
|
|
4
|
+
br as ChainManager,
|
|
5
5
|
b6 as Classifier,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
bv as ContractABIs,
|
|
7
|
+
bs as ContractDeployer,
|
|
8
|
+
bu as ContractOperations,
|
|
9
|
+
bx as ContractQueries,
|
|
10
10
|
b1 as Council,
|
|
11
11
|
b0 as Embeddings,
|
|
12
|
-
|
|
12
|
+
bw as EventListener,
|
|
13
13
|
b9 as FederationAdvisor,
|
|
14
14
|
bc as H3AI,
|
|
15
15
|
aW as HoloSphere,
|
|
16
|
-
|
|
16
|
+
bt as HolonContracts,
|
|
17
17
|
a$ as JSONOps,
|
|
18
18
|
aZ as LLMService,
|
|
19
|
-
|
|
19
|
+
bF as LensKeyStore,
|
|
20
20
|
b4 as MODELS,
|
|
21
|
-
|
|
21
|
+
bW as NETWORKS,
|
|
22
22
|
b5 as NLQuery,
|
|
23
23
|
ba as RelationshipDiscovery,
|
|
24
|
-
|
|
24
|
+
by as SANKEY_EVENTS,
|
|
25
25
|
a_ as SchemaExtractor,
|
|
26
26
|
b8 as SmartAggregation,
|
|
27
27
|
b7 as SpatialAnalysis,
|
|
@@ -29,46 +29,48 @@ export {
|
|
|
29
29
|
bb as TaskBreakdown,
|
|
30
30
|
b3 as VOICES,
|
|
31
31
|
aY as ValidationError,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
bG as buildLensPath,
|
|
33
|
+
bo as cardStorage,
|
|
34
|
+
bV as createAIServices,
|
|
35
|
+
bJ as createFederationCard,
|
|
36
|
+
bA as createHologram,
|
|
37
|
+
bB as createLensHologram,
|
|
38
38
|
bi as crypto,
|
|
39
39
|
aW2 as default,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
bO as dismissCard,
|
|
41
|
+
bS as dismissRequest,
|
|
42
42
|
bg as federation,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
c0 as getAddressUrl,
|
|
44
|
+
bQ as getCard,
|
|
45
|
+
bR as getDisplayableCards,
|
|
46
|
+
bL as getLensConfigForHandshake,
|
|
47
|
+
bX as getNetwork,
|
|
48
|
+
bY as getNetworksByType,
|
|
49
|
+
b$ as getTxUrl,
|
|
50
|
+
bK as getVisibleLenses,
|
|
51
51
|
bh as handshake,
|
|
52
52
|
bm as hierarchical,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
53
|
+
bp as holonRegistry,
|
|
54
|
+
bC as isLensHologram,
|
|
55
|
+
b_ as isNetworkSupported,
|
|
56
|
+
bU as isResponseProcessed,
|
|
57
|
+
bI as lensKeys,
|
|
58
|
+
bZ as listNetworks,
|
|
59
|
+
bT as markResponseProcessed,
|
|
60
|
+
bz as networks,
|
|
61
61
|
bj as nostrUtils,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
bH as parseLensPath,
|
|
63
|
+
bq as registry,
|
|
64
|
+
bn as requestCard,
|
|
65
|
+
bP as saveCard,
|
|
66
66
|
bf as schema,
|
|
67
|
+
bE as sendAck,
|
|
68
|
+
bD as sendShare,
|
|
67
69
|
bk as social,
|
|
68
70
|
bd as spatial,
|
|
69
71
|
be as storage,
|
|
70
72
|
bl as subscriptions,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
bN as toggleCardExpansion,
|
|
74
|
+
bM as toggleLens
|
|
73
75
|
};
|
|
74
76
|
//# sourceMappingURL=holosphere.js.map
|