@noosphere/sdk 0.1.0-alpha.0 → 0.1.0-alpha.2

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 (2) hide show
  1. package/README.md +105 -0
  2. package/package.json +5 -5
package/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # @noosphere/sdk
2
+
3
+ Unified SDK for building Noosphere decentralized compute agents.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @noosphere/sdk
9
+ ```
10
+
11
+ For alpha version:
12
+ ```bash
13
+ npm install @noosphere/sdk@alpha
14
+ ```
15
+
16
+ ## Overview
17
+
18
+ This package re-exports all Noosphere SDK modules:
19
+
20
+ - **@noosphere/agent-core** - Core agent components (NoosphereAgent, EventMonitor, ContainerManager)
21
+ - **@noosphere/contracts** - Smart contract wrappers and ABIs
22
+ - **@noosphere/crypto** - Key management and wallet utilities
23
+ - **@noosphere/registry** - Container and verifier registry management
24
+
25
+ ## Quick Start
26
+
27
+ ```typescript
28
+ import {
29
+ NoosphereAgent,
30
+ KeystoreManager,
31
+ WalletManager,
32
+ RegistryManager,
33
+ contracts,
34
+ crypto,
35
+ registry,
36
+ } from '@noosphere/sdk';
37
+
38
+ // Initialize keystore
39
+ const keystoreManager = new KeystoreManager();
40
+ const keystore = await keystoreManager.loadKeystore('./keystore.json', 'password');
41
+
42
+ // Create agent
43
+ const agent = new NoosphereAgent({
44
+ rpcUrl: 'https://sepolia.hpp.io',
45
+ wsUrl: 'wss://sepolia.hpp.io',
46
+ routerAddress: '0x89c76ee71E9cC8D57BEE3d414478B630AE41fF43',
47
+ coordinatorAddress: '0x244D87a7CAe0D557C223C13a90Ae845e56430A50',
48
+ keystore,
49
+ });
50
+
51
+ // Start listening for compute requests
52
+ await agent.start();
53
+ ```
54
+
55
+ ## Modules
56
+
57
+ ### Agent Core
58
+
59
+ ```typescript
60
+ import { NoosphereAgent, EventMonitor, ContainerManager } from '@noosphere/sdk';
61
+ ```
62
+
63
+ ### Contracts (namespaced)
64
+
65
+ ```typescript
66
+ import { contracts } from '@noosphere/sdk';
67
+
68
+ const router = new contracts.RouterContract(address, provider);
69
+ ```
70
+
71
+ ### Crypto (namespaced)
72
+
73
+ ```typescript
74
+ import { crypto } from '@noosphere/sdk';
75
+
76
+ const keystore = new crypto.KeystoreManager();
77
+ ```
78
+
79
+ ### Registry (namespaced)
80
+
81
+ ```typescript
82
+ import { registry } from '@noosphere/sdk';
83
+
84
+ const registryManager = new registry.RegistryManager(config);
85
+ ```
86
+
87
+ ## Individual Packages
88
+
89
+ You can also install individual packages:
90
+
91
+ ```bash
92
+ npm install @noosphere/agent-core@alpha
93
+ npm install @noosphere/contracts@alpha
94
+ npm install @noosphere/crypto@alpha
95
+ npm install @noosphere/registry@alpha
96
+ ```
97
+
98
+ ## Requirements
99
+
100
+ - Node.js >= 18
101
+ - TypeScript >= 5.0 (for TypeScript users)
102
+
103
+ ## License
104
+
105
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noosphere/sdk",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Noosphere SDK - Unified package for decentralized compute agent development",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -49,10 +49,10 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@noosphere/agent-core": "^0.1.0-alpha.0",
53
- "@noosphere/contracts": "^0.1.0-alpha.0",
54
- "@noosphere/crypto": "^0.1.0-alpha.0",
55
- "@noosphere/registry": "^0.1.0-alpha.0"
52
+ "@noosphere/agent-core": "0.1.0-alpha.2",
53
+ "@noosphere/contracts": "0.1.0-alpha.2",
54
+ "@noosphere/crypto": "0.1.0-alpha.2",
55
+ "@noosphere/registry": "0.1.0-alpha.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "typescript": "^5.3.0"