@affectively/aeon 1.3.0 → 1.3.1
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/LICENSE +21 -21
- package/README.md +342 -342
- package/dist/compression/index.cjs.map +1 -1
- package/dist/compression/index.js.map +1 -1
- package/dist/core/index.d.cts +213 -213
- package/dist/core/index.d.ts +213 -213
- package/dist/crypto/index.cjs.map +1 -1
- package/dist/crypto/index.d.cts +441 -441
- package/dist/crypto/index.d.ts +441 -441
- package/dist/crypto/index.js.map +1 -1
- package/dist/distributed/index.cjs.map +1 -1
- package/dist/distributed/index.d.cts +1005 -1005
- package/dist/distributed/index.d.ts +1005 -1005
- package/dist/distributed/index.js.map +1 -1
- package/dist/index.cjs +32 -723
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.js +29 -722
- package/dist/index.js.map +1 -1
- package/dist/offline/index.cjs.map +1 -1
- package/dist/offline/index.d.cts +148 -148
- package/dist/offline/index.d.ts +148 -148
- package/dist/offline/index.js.map +1 -1
- package/dist/optimization/index.cjs.map +1 -1
- package/dist/optimization/index.js.map +1 -1
- package/dist/persistence/index.cjs.map +1 -1
- package/dist/persistence/index.d.cts +57 -57
- package/dist/persistence/index.d.ts +57 -57
- package/dist/persistence/index.js.map +1 -1
- package/dist/presence/index.cjs.map +1 -1
- package/dist/presence/index.js.map +1 -1
- package/dist/{types-B7gCpNX9.d.cts → types-B7CxsoLh.d.cts} +30 -30
- package/dist/{types-B7gCpNX9.d.ts → types-B7CxsoLh.d.ts} +30 -30
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +35 -35
- package/dist/utils/index.d.ts +35 -35
- package/dist/utils/index.js.map +1 -1
- package/dist/versioning/index.cjs.map +1 -1
- package/dist/versioning/index.d.cts +1 -1
- package/dist/versioning/index.d.ts +1 -1
- package/dist/versioning/index.js.map +1 -1
- package/package.json +196 -196
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
export { BandwidthProfile, CRDTOperation, ConflictDetectionResult, EventCallback, EventUnsubscribe, IEventEmitter, NetworkState, Operation, OperationPriority, OperationStatus, OperationType, PresenceEmotion, PresenceInfo, PresenceInputState, PresenceScroll, PresenceSelection, PresenceTyping, PresenceViewport, ResolutionStrategy, SyncBatch, SyncCoordinatorConfig, SyncResult, VectorClock } from './core/index.cjs';
|
|
2
2
|
export { Logger, createNamespacedLogger, disableLogging, getLogger, logger, resetLogger, setLogger } from './utils/index.cjs';
|
|
3
3
|
export { DashStorageAdapter, DashStorageAdapterOptions, DashStorageBackend, DashStorageChange, DashSyncClient, InMemoryStorageAdapter } from './persistence/index.cjs';
|
|
4
|
-
export { P as PersistedEnvelope, a as PersistenceDeserializer, b as PersistenceSerializer, S as StorageAdapter } from './types-
|
|
5
|
-
export { CompatibilityRule, DataTransformer, FieldTransformer, Migration, MigrationEngine, MigrationIntegrityEntry, MigrationRecord, MigrationResult, MigrationState, MigrationTracker, MigrationTrackerOptions, MigrationTrackerPersistenceConfig, MigrationTrackerPersistenceData, RollbackPath, SchemaVersion,
|
|
6
|
-
export { Handshake, MergeStrategy, ProtocolError, ReconciliationResult, Replica, ReplicationEvent, ReplicationManager, ReplicationManagerOptions, ReplicationPersistenceConfig, ReplicationPersistenceData, ReplicationPolicy, StateDiff, StateReconciler, StateVersion,
|
|
4
|
+
export { P as PersistedEnvelope, a as PersistenceDeserializer, b as PersistenceSerializer, S as StorageAdapter } from './types-B7CxsoLh.cjs';
|
|
5
|
+
export { CompatibilityRule, DataTransformer, FieldTransformer, Migration, MigrationEngine, MigrationIntegrityEntry, MigrationRecord, MigrationResult, MigrationState, MigrationTracker, MigrationTrackerOptions, MigrationTrackerPersistenceConfig, MigrationTrackerPersistenceData, RollbackPath, SchemaVersion, TransformationResult, TransformationRule, VersionMetadata } from './versioning/index.cjs';
|
|
6
|
+
export { Handshake, MergeStrategy, ProtocolError, ReconciliationResult, Replica, ReplicationEvent, ReplicationManager, ReplicationManagerOptions, ReplicationPersistenceConfig, ReplicationPersistenceData, ReplicationPolicy, StateDiff, StateReconciler, StateVersion, SyncEvent, SyncMessage, SyncNode, SyncProtocol, SyncProtocolOptions, SyncProtocolPersistenceConfig, SyncProtocolPersistenceData, SyncRequest, SyncResponse, SyncSession } from './distributed/index.cjs';
|
|
7
7
|
export { OfflineOperation, OfflineOperationQueue, OfflineOperationQueueOptions, OfflineQueueEvents, OfflineQueuePersistenceConfig, OfflineQueueStats, getOfflineOperationQueue, resetOfflineOperationQueue } from './offline/index.cjs';
|
|
8
8
|
export { CompressedBatch, CompressedChunk, CompressionEngine, CompressionStats, DeltaBatch, DeltaOperation, DeltaStats, DeltaSyncOptimizer, getCompressionEngine, getDeltaSyncOptimizer, resetCompressionEngine, resetDeltaSyncOptimizer } from './compression/index.cjs';
|
|
9
|
-
export { ActivityPattern, AdaptiveCompressionOptimizer, AdaptiveStats, BatchTimingOptimizer, BatchTimingStats, CompressionRecommendation, DeviceProfile, NetworkProfile, NetworkWindow, OperationPattern, OperationPrediction, PrefetchedBatch, PrefetchingEngine, PrefetchingStats, SchedulingDecision,
|
|
10
|
-
export { AgentEmotionState, AgentInputState, AgentPresence, AgentPresenceManager, AgentScrollState, AgentSelectionRange, AgentTypingState, AgentViewportState, PresenceEvents, PresenceUpdate, clearAgentPresenceManager
|
|
9
|
+
export { ActivityPattern, AdaptiveCompressionOptimizer, AdaptiveStats, BatchTimingOptimizer, BatchTimingStats, CompressionRecommendation, DeviceProfile, NetworkProfile, NetworkWindow, OperationPattern, OperationPrediction, PrefetchedBatch, PrefetchingEngine, PrefetchingStats, SchedulingDecision, getBatchTimingOptimizer, getPrefetchingEngine, resetAdaptiveCompressionOptimizer, resetBatchTimingOptimizer, resetPrefetchingEngine } from './optimization/index.cjs';
|
|
10
|
+
export { AgentEmotionState, AgentInputState, AgentPresence, AgentPresenceManager, AgentScrollState, AgentSelectionRange, AgentTypingState, AgentViewportState, PresenceEvents, PresenceUpdate, clearAgentPresenceManager } from './presence/index.cjs';
|
|
11
11
|
export { AEON_CAPABILITIES, AeonCapability, AeonCapabilityResult, AeonCryptoConfig, AeonEncryptionMode, AuthenticatedMessageFields, Capability, DEFAULT_CRYPTO_CONFIG, DID, DecryptionResult, DomainCategory, ECKeyPair, EncryptedPayload, EncryptionAlgorithm, ICryptoProvider, Identity, KeyPair, NullCryptoProvider, SecureNodeInfo, SecureSyncSession, SignedSyncData, SigningAlgorithm, UCANPayload, UCANToken, VerificationResult } from './crypto/index.cjs';
|
|
12
12
|
import 'eventemitter3';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Aeon - Distributed Synchronization & Versioning Library
|
|
16
|
+
*
|
|
17
|
+
* A comprehensive library for building distributed, collaborative applications
|
|
18
|
+
* with real-time synchronization, schema versioning, and conflict resolution.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import { SyncCoordinator, SchemaVersionManager } from '@affectively/aeon';
|
|
23
|
+
*
|
|
24
|
+
* // Create a sync coordinator
|
|
25
|
+
* const coordinator = new SyncCoordinator();
|
|
26
|
+
*
|
|
27
|
+
* // Register a node
|
|
28
|
+
* coordinator.registerNode({
|
|
29
|
+
* id: 'node-1',
|
|
30
|
+
* address: 'localhost',
|
|
31
|
+
* port: 3000,
|
|
32
|
+
* status: 'online',
|
|
33
|
+
* lastHeartbeat: new Date().toISOString(),
|
|
34
|
+
* version: '1.0.0',
|
|
35
|
+
* capabilities: ['sync', 'replicate'],
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* // Create a sync session
|
|
39
|
+
* const session = coordinator.createSyncSession('node-1', ['node-2', 'node-3']);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @packageDocumentation
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* STUBS for React components and hooks
|
|
47
|
+
* These are normally provided by @affectively/aeon-flux-react but are
|
|
48
|
+
* imported from @affectively/aeon in many legacy parts of edge-web-app.
|
|
49
|
+
*/
|
|
50
|
+
declare const Link: any;
|
|
51
|
+
declare const useAeonPage: any;
|
|
52
|
+
declare const getAdaptiveCompressionOptimizer: any;
|
|
53
|
+
declare const SchemaVersionManager: any;
|
|
54
|
+
declare const getAgentPresenceManager: any;
|
|
55
|
+
declare const SyncCoordinator: any;
|
|
56
|
+
|
|
57
|
+
export { Link, SchemaVersionManager, SyncCoordinator, getAdaptiveCompressionOptimizer, getAgentPresenceManager, useAeonPage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
export { BandwidthProfile, CRDTOperation, ConflictDetectionResult, EventCallback, EventUnsubscribe, IEventEmitter, NetworkState, Operation, OperationPriority, OperationStatus, OperationType, PresenceEmotion, PresenceInfo, PresenceInputState, PresenceScroll, PresenceSelection, PresenceTyping, PresenceViewport, ResolutionStrategy, SyncBatch, SyncCoordinatorConfig, SyncResult, VectorClock } from './core/index.js';
|
|
2
2
|
export { Logger, createNamespacedLogger, disableLogging, getLogger, logger, resetLogger, setLogger } from './utils/index.js';
|
|
3
3
|
export { DashStorageAdapter, DashStorageAdapterOptions, DashStorageBackend, DashStorageChange, DashSyncClient, InMemoryStorageAdapter } from './persistence/index.js';
|
|
4
|
-
export { P as PersistedEnvelope, a as PersistenceDeserializer, b as PersistenceSerializer, S as StorageAdapter } from './types-
|
|
5
|
-
export { CompatibilityRule, DataTransformer, FieldTransformer, Migration, MigrationEngine, MigrationIntegrityEntry, MigrationRecord, MigrationResult, MigrationState, MigrationTracker, MigrationTrackerOptions, MigrationTrackerPersistenceConfig, MigrationTrackerPersistenceData, RollbackPath, SchemaVersion,
|
|
6
|
-
export { Handshake, MergeStrategy, ProtocolError, ReconciliationResult, Replica, ReplicationEvent, ReplicationManager, ReplicationManagerOptions, ReplicationPersistenceConfig, ReplicationPersistenceData, ReplicationPolicy, StateDiff, StateReconciler, StateVersion,
|
|
4
|
+
export { P as PersistedEnvelope, a as PersistenceDeserializer, b as PersistenceSerializer, S as StorageAdapter } from './types-B7CxsoLh.js';
|
|
5
|
+
export { CompatibilityRule, DataTransformer, FieldTransformer, Migration, MigrationEngine, MigrationIntegrityEntry, MigrationRecord, MigrationResult, MigrationState, MigrationTracker, MigrationTrackerOptions, MigrationTrackerPersistenceConfig, MigrationTrackerPersistenceData, RollbackPath, SchemaVersion, TransformationResult, TransformationRule, VersionMetadata } from './versioning/index.js';
|
|
6
|
+
export { Handshake, MergeStrategy, ProtocolError, ReconciliationResult, Replica, ReplicationEvent, ReplicationManager, ReplicationManagerOptions, ReplicationPersistenceConfig, ReplicationPersistenceData, ReplicationPolicy, StateDiff, StateReconciler, StateVersion, SyncEvent, SyncMessage, SyncNode, SyncProtocol, SyncProtocolOptions, SyncProtocolPersistenceConfig, SyncProtocolPersistenceData, SyncRequest, SyncResponse, SyncSession } from './distributed/index.js';
|
|
7
7
|
export { OfflineOperation, OfflineOperationQueue, OfflineOperationQueueOptions, OfflineQueueEvents, OfflineQueuePersistenceConfig, OfflineQueueStats, getOfflineOperationQueue, resetOfflineOperationQueue } from './offline/index.js';
|
|
8
8
|
export { CompressedBatch, CompressedChunk, CompressionEngine, CompressionStats, DeltaBatch, DeltaOperation, DeltaStats, DeltaSyncOptimizer, getCompressionEngine, getDeltaSyncOptimizer, resetCompressionEngine, resetDeltaSyncOptimizer } from './compression/index.js';
|
|
9
|
-
export { ActivityPattern, AdaptiveCompressionOptimizer, AdaptiveStats, BatchTimingOptimizer, BatchTimingStats, CompressionRecommendation, DeviceProfile, NetworkProfile, NetworkWindow, OperationPattern, OperationPrediction, PrefetchedBatch, PrefetchingEngine, PrefetchingStats, SchedulingDecision,
|
|
10
|
-
export { AgentEmotionState, AgentInputState, AgentPresence, AgentPresenceManager, AgentScrollState, AgentSelectionRange, AgentTypingState, AgentViewportState, PresenceEvents, PresenceUpdate, clearAgentPresenceManager
|
|
9
|
+
export { ActivityPattern, AdaptiveCompressionOptimizer, AdaptiveStats, BatchTimingOptimizer, BatchTimingStats, CompressionRecommendation, DeviceProfile, NetworkProfile, NetworkWindow, OperationPattern, OperationPrediction, PrefetchedBatch, PrefetchingEngine, PrefetchingStats, SchedulingDecision, getBatchTimingOptimizer, getPrefetchingEngine, resetAdaptiveCompressionOptimizer, resetBatchTimingOptimizer, resetPrefetchingEngine } from './optimization/index.js';
|
|
10
|
+
export { AgentEmotionState, AgentInputState, AgentPresence, AgentPresenceManager, AgentScrollState, AgentSelectionRange, AgentTypingState, AgentViewportState, PresenceEvents, PresenceUpdate, clearAgentPresenceManager } from './presence/index.js';
|
|
11
11
|
export { AEON_CAPABILITIES, AeonCapability, AeonCapabilityResult, AeonCryptoConfig, AeonEncryptionMode, AuthenticatedMessageFields, Capability, DEFAULT_CRYPTO_CONFIG, DID, DecryptionResult, DomainCategory, ECKeyPair, EncryptedPayload, EncryptionAlgorithm, ICryptoProvider, Identity, KeyPair, NullCryptoProvider, SecureNodeInfo, SecureSyncSession, SignedSyncData, SigningAlgorithm, UCANPayload, UCANToken, VerificationResult } from './crypto/index.js';
|
|
12
12
|
import 'eventemitter3';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Aeon - Distributed Synchronization & Versioning Library
|
|
16
|
+
*
|
|
17
|
+
* A comprehensive library for building distributed, collaborative applications
|
|
18
|
+
* with real-time synchronization, schema versioning, and conflict resolution.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import { SyncCoordinator, SchemaVersionManager } from '@affectively/aeon';
|
|
23
|
+
*
|
|
24
|
+
* // Create a sync coordinator
|
|
25
|
+
* const coordinator = new SyncCoordinator();
|
|
26
|
+
*
|
|
27
|
+
* // Register a node
|
|
28
|
+
* coordinator.registerNode({
|
|
29
|
+
* id: 'node-1',
|
|
30
|
+
* address: 'localhost',
|
|
31
|
+
* port: 3000,
|
|
32
|
+
* status: 'online',
|
|
33
|
+
* lastHeartbeat: new Date().toISOString(),
|
|
34
|
+
* version: '1.0.0',
|
|
35
|
+
* capabilities: ['sync', 'replicate'],
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* // Create a sync session
|
|
39
|
+
* const session = coordinator.createSyncSession('node-1', ['node-2', 'node-3']);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @packageDocumentation
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* STUBS for React components and hooks
|
|
47
|
+
* These are normally provided by @affectively/aeon-flux-react but are
|
|
48
|
+
* imported from @affectively/aeon in many legacy parts of edge-web-app.
|
|
49
|
+
*/
|
|
50
|
+
declare const Link: any;
|
|
51
|
+
declare const useAeonPage: any;
|
|
52
|
+
declare const getAdaptiveCompressionOptimizer: any;
|
|
53
|
+
declare const SchemaVersionManager: any;
|
|
54
|
+
declare const getAgentPresenceManager: any;
|
|
55
|
+
declare const SyncCoordinator: any;
|
|
56
|
+
|
|
57
|
+
export { Link, SchemaVersionManager, SyncCoordinator, getAdaptiveCompressionOptimizer, getAgentPresenceManager, useAeonPage };
|