@cascade-fyi/sati-agent0-sdk 0.3.0 → 0.4.0
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/CHANGELOG.md +30 -0
- package/README.md +8 -8
- package/dist/index.cjs +323 -425
- package/dist/index.d.cts +40 -39
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +40 -39
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +323 -425
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.0] - 2026-02-12
|
|
9
|
+
|
|
10
|
+
### Breaking Changes
|
|
11
|
+
|
|
12
|
+
- **`SatiSDK` renamed to `SatiAgent0`** - the old class name is removed entirely. Migration: `import { SatiAgent0 } from "@cascade-fyi/sati-agent0-sdk"`
|
|
13
|
+
- **`SatiSDKConfig` renamed to `SatiAgent0Config`** - same migration pattern
|
|
14
|
+
- **`FeedbackCache` removed** - moved to `@cascade-fyi/sati-sdk` (import from there if needed directly)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Internal delegation to `@cascade-fyi/sati-sdk` convenience methods - `SatiAgent0` is now a thin CAIP-2 type-conversion wrapper over `Sati` class
|
|
19
|
+
- `SatiAgent` internally wraps `SatiAgentBuilder` from sati-sdk for registration and updates
|
|
20
|
+
- Reduced bundle size: duplicated logic (content parsing, schema resolution, cache, slot-to-timestamp) removed in favor of sati-sdk
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- `sdk.sati` accessor - exposes the underlying `Sati` instance for direct access to native Solana types
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
- Requires `@cascade-fyi/sati-sdk` >= 0.7.0
|
|
29
|
+
|
|
30
|
+
## [0.3.1] - 2026-02-12
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- SIWS counterparty message schema name corrected from `FeedbackPublic` to `FeedbackPublicV1` in `giveFeedback()` and `prepareFeedback()` - mismatched name caused signature verification failures on-chain
|
|
35
|
+
|
|
8
36
|
## [0.3.0] - 2026-02-12
|
|
9
37
|
|
|
10
38
|
### Added
|
|
@@ -99,6 +127,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
99
127
|
- Transaction sender support for browser wallet integration
|
|
100
128
|
- Re-exports of agent0-sdk types and SATI constants for consumer convenience
|
|
101
129
|
|
|
130
|
+
[0.4.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.3.1...@cascade-fyi/sati-agent0-sdk@0.4.0
|
|
131
|
+
[0.3.1]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.3.0...@cascade-fyi/sati-agent0-sdk@0.3.1
|
|
102
132
|
[0.3.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.2.0...@cascade-fyi/sati-agent0-sdk@0.3.0
|
|
103
133
|
[0.2.0]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.1.1...@cascade-fyi/sati-agent0-sdk@0.2.0
|
|
104
134
|
[0.1.1]: https://github.com/cascade-protocol/sati/compare/@cascade-fyi/sati-agent0-sdk@0.1.0...@cascade-fyi/sati-agent0-sdk@0.1.1
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @cascade-fyi/sati-agent0-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[ERC-8004](https://eips.ethereum.org/EIPS/eip-8004) agent identity and reputation on Solana. Register agents, collect feedback, query reputation, search by capabilities - all on-chain, zero config.
|
|
4
4
|
|
|
5
|
-
API-compatible
|
|
5
|
+
API-compatible with [agent0-sdk](https://github.com/agent0-ai/agent0-sdk) - same method names and types, but routes through [SATI](https://github.com/cascade-protocol/sati)'s Solana infrastructure instead of EVM chains. Write operations return `SolanaTransactionHandle<T>` (compatible with agent0-sdk's `TransactionHandle` via `.hash`, `.waitMined()`, `.waitConfirmed()`).
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -18,11 +18,11 @@ pnpm add @cascade-fyi/sati-sdk @solana/kit @solana-program/token-2022 agent0-sdk
|
|
|
18
18
|
## Quick Start
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { SatiAgent0, Outcome } from "@cascade-fyi/sati-agent0-sdk";
|
|
22
22
|
import { generateKeyPairSigner } from "@solana/kit";
|
|
23
23
|
|
|
24
24
|
const signer = await generateKeyPairSigner();
|
|
25
|
-
const sdk = new
|
|
25
|
+
const sdk = new SatiAgent0({
|
|
26
26
|
network: "devnet",
|
|
27
27
|
signer,
|
|
28
28
|
});
|
|
@@ -55,13 +55,13 @@ The SDK supports three modes depending on your use case:
|
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
57
|
// Read-only (no signer) - search agents, read feedback
|
|
58
|
-
const readOnly = new
|
|
58
|
+
const readOnly = new SatiAgent0({ network: "devnet" });
|
|
59
59
|
|
|
60
60
|
// Server-side (KeyPairSigner) - full write access
|
|
61
|
-
const server = new
|
|
61
|
+
const server = new SatiAgent0({ network: "devnet", signer });
|
|
62
62
|
|
|
63
63
|
// Browser wallet (TransactionSender) - wallet-signed writes
|
|
64
|
-
const browser = new
|
|
64
|
+
const browser = new SatiAgent0({ network: "devnet", transactionSender: walletAdapter });
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
---
|
|
@@ -85,7 +85,7 @@ agent.setActive(true);
|
|
|
85
85
|
agent.setX402Support(true);
|
|
86
86
|
agent.setTrust(true, false, false); // reputation only
|
|
87
87
|
|
|
88
|
-
// Register on-chain via IPFS (
|
|
88
|
+
// Register on-chain via IPFS (zero config - no API keys needed)
|
|
89
89
|
const handle = await agent.registerIPFS();
|
|
90
90
|
console.log(agent.agentId, handle.hash);
|
|
91
91
|
```
|