holosphere 2.0.0-alpha21 → 2.0.0-alpha23
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 +61 -58
- package/dist/{index-B6-8KAQm.js → index-BEkCLOwI.js} +2 -2
- package/dist/{index-B6-8KAQm.js.map → index-BEkCLOwI.js.map} +1 -1
- package/dist/{index-D2WstuZJ.js → index-BEvX6DxG.js} +2 -2
- package/dist/{index-D2WstuZJ.js.map → index-BEvX6DxG.js.map} +1 -1
- package/dist/{index--QsHG_gD.cjs → index-BGTOiJ2Y.cjs} +2 -2
- package/dist/{index--QsHG_gD.cjs.map → index-BGTOiJ2Y.cjs.map} +1 -1
- package/dist/{index-COpLk9gL.cjs → index-BH1woZXL.cjs} +2 -2
- package/dist/{index-COpLk9gL.cjs.map → index-BH1woZXL.cjs.map} +1 -1
- package/dist/{index-BHptWysv.js → index-Cvxov2jv.js} +2970 -7753
- package/dist/index-Cvxov2jv.js.map +1 -0
- package/dist/index-vTKI_BAX.cjs +29 -0
- package/dist/index-vTKI_BAX.cjs.map +1 -0
- package/dist/{indexeddb-storage-wKG4mICM.cjs → indexeddb-storage-BmnCNnSg.cjs} +2 -2
- package/dist/{indexeddb-storage-wKG4mICM.cjs.map → indexeddb-storage-BmnCNnSg.cjs.map} +1 -1
- package/dist/{indexeddb-storage-kQ53UHEE.js → indexeddb-storage-MIFisaPy.js} +2 -2
- package/dist/{indexeddb-storage-kQ53UHEE.js.map → indexeddb-storage-MIFisaPy.js.map} +1 -1
- package/dist/{memory-storage-CGC8xM2G.cjs → memory-storage-BJjK3F4r.cjs} +2 -2
- package/dist/{memory-storage-CGC8xM2G.cjs.map → memory-storage-BJjK3F4r.cjs.map} +1 -1
- package/dist/{memory-storage-DnXCSbBl.js → memory-storage-DhHXdKQ-.js} +2 -2
- package/dist/{memory-storage-DnXCSbBl.js.map → memory-storage-DhHXdKQ-.js.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 +145 -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-vTKI_BAX.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,exports.version=e.version$1;
|
|
2
2
|
//# sourceMappingURL=holosphere.cjs.map
|
package/dist/esm/holosphere.js
CHANGED
|
@@ -1,74 +1,77 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aY, bs, b7, bw, bt, bv, by, b2, b1, bx, ba, bd, aX, bu, b0, a_, bG, b5, bX, b6, bb, bz, a$, b9, b8, b3, bc, b4, aZ, bH, bp, bW, bK, bB, bC, bj, aX as aX2, bP, bT, bh, c1, bR, bS, bM, bY, bZ, c0, bL, bi, bn, bq, bD, b$, bV, bJ, b_, bU, bA, bk, bI, br, bo, bQ, bg, bF, bE, bl, be, bf, bm, bO, bN, aW } from "../index-Cvxov2jv.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
aY as AuthorizationError,
|
|
4
4
|
bs as ChainManager,
|
|
5
|
-
|
|
5
|
+
b7 as Classifier,
|
|
6
6
|
bw as ContractABIs,
|
|
7
7
|
bt as ContractDeployer,
|
|
8
8
|
bv as ContractOperations,
|
|
9
9
|
by as ContractQueries,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
b2 as Council,
|
|
11
|
+
b1 as Embeddings,
|
|
12
12
|
bx as EventListener,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ba as FederationAdvisor,
|
|
14
|
+
bd as H3AI,
|
|
15
|
+
aX as HoloSphere,
|
|
16
16
|
bu as HolonContracts,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
b0 as JSONOps,
|
|
18
|
+
a_ as LLMService,
|
|
19
|
+
bG as LensKeyStore,
|
|
20
|
+
b5 as MODELS,
|
|
21
|
+
bX as NETWORKS,
|
|
22
|
+
b6 as NLQuery,
|
|
23
|
+
bb as RelationshipDiscovery,
|
|
24
24
|
bz as SANKEY_EVENTS,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
bn as capabilities,
|
|
25
|
+
a$ as SchemaExtractor,
|
|
26
|
+
b9 as SmartAggregation,
|
|
27
|
+
b8 as SpatialAnalysis,
|
|
28
|
+
b3 as TTS,
|
|
29
|
+
bc as TaskBreakdown,
|
|
30
|
+
b4 as VOICES,
|
|
31
|
+
aZ as ValidationError,
|
|
32
|
+
bH as buildLensPath,
|
|
34
33
|
bp as cardStorage,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
bZ as
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
bW as createAIServices,
|
|
35
|
+
bK as createFederationCard,
|
|
36
|
+
bB as createHologram,
|
|
37
|
+
bC as createLensHologram,
|
|
38
|
+
bj as crypto,
|
|
39
|
+
aX2 as default,
|
|
40
|
+
bP as dismissCard,
|
|
41
|
+
bT as dismissRequest,
|
|
42
|
+
bh as federation,
|
|
43
|
+
c1 as getAddressUrl,
|
|
44
|
+
bR as getCard,
|
|
45
|
+
bS as getDisplayableCards,
|
|
46
|
+
bM as getLensConfigForHandshake,
|
|
47
|
+
bY as getNetwork,
|
|
48
|
+
bZ as getNetworksByType,
|
|
49
|
+
c0 as getTxUrl,
|
|
50
|
+
bL as getVisibleLenses,
|
|
51
|
+
bi as handshake,
|
|
52
|
+
bn as hierarchical,
|
|
53
53
|
bq as holonRegistry,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
bD as isLensHologram,
|
|
55
|
+
b$ as isNetworkSupported,
|
|
56
|
+
bV as isResponseProcessed,
|
|
57
|
+
bJ as lensKeys,
|
|
58
|
+
b_ as listNetworks,
|
|
59
|
+
bU as markResponseProcessed,
|
|
60
60
|
bA as networks,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
bk as nostrUtils,
|
|
62
|
+
bI as parseLensPath,
|
|
63
63
|
br as registry,
|
|
64
64
|
bo as requestCard,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
65
|
+
bQ as saveCard,
|
|
66
|
+
bg as schema,
|
|
67
|
+
bF as sendAck,
|
|
68
|
+
bE as sendShare,
|
|
69
|
+
bl as social,
|
|
70
|
+
be as spatial,
|
|
71
|
+
bf as storage,
|
|
72
|
+
bm as subscriptions,
|
|
73
|
+
bO as toggleCardExpansion,
|
|
74
|
+
bN as toggleLens,
|
|
75
|
+
aW as version
|
|
73
76
|
};
|
|
74
77
|
//# sourceMappingURL=holosphere.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as getBytes, t as toBigInt, a as assertArgument, b as assert, m as makeError, c as toUtf8Bytes, h as hexlify, d as toUtf8String, e as defineProperties, H as Hash, f as hash, i as toBytes, j as exists, k as bytes, l as createView, n as checkOpts, o as number, p as output, w as wrapConstructor, r as rotr, u as u64, q as asyncLoop, s as u32, v as randomBytes$2, x as concatBytes$1, y as dataLength, z as getNumber, A as concat, B as assertPrivate, C as getBigInt, D as isHexString, E as zeroPadValue, F as toBeArray, G as getBytesCopy, I as toBeHex, J as keccak256, K as getAddress, L as dataSlice, Z as ZeroAddress, M as accessListify, N as isBytesLike, O as toTwos, P as zeroPadBytes, Q as id, R as mask, S as toQuantity, T as Interface, U as BaseContract, V as copyOverrides, W as resolveArgs, X as Contract, Y as isError, _ as Block, $ as Log, a0 as TransactionReceipt, a1 as TransactionResponse, a2 as resolveAddress, a3 as copyRequest, a4 as FeeData, a5 as isCallException, a6 as resolveProperties, a7 as EventPayload, a8 as AbiCoder, a9 as assertNormalize, aa as version, ab as ConstructorFragment, ac as ContractEventPayload, ad as ContractTransactionReceipt, ae as ContractTransactionResponse, af as ContractUnknownEventPayload, ag as ErrorDescription, ah as ErrorFragment, ai as EventFragment, aj as EventLog, ak as FallbackFragment, al as FixedNumber, am as Fragment, an as FunctionFragment, ao as Indexed, ap as LogDescription, aq as NamedFragment, ar as ParamType, as as Result, at as StructFragment, au as TransactionDescription, av as Typed, aw as UndecodedEventLog, ax as Utf8ErrorFuncs, ay as assertArgumentCount, az as checkResultErrors, aA as formatEther, aB as formatUnits, aC as fromTwos, aD as getIcapAddress, aE as getUint, aF as isAddress, aG as isAddressable, aH as parseEther, aI as parseUnits$1, aJ as stripZerosLeft, aK as toNumber, aL as toUtf8CodePoints } from "./index-Cvxov2jv.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-
|
|
15104
|
+
//# sourceMappingURL=index-BEkCLOwI.js.map
|