@telaro/sdk 0.1.0 → 0.1.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/CHANGELOG.md +8 -1
- package/README.md +13 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,14 @@ project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
## [0.1.
|
|
9
|
+
## [0.1.1] - 2026-05-17
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Rewrote README with npm badges, direct links to the live package, and clearer install instructions.
|
|
13
|
+
- Updated package description.
|
|
14
|
+
- No code changes.
|
|
15
|
+
|
|
16
|
+
## [0.1.0] - 2026-05-06
|
|
10
17
|
|
|
11
18
|
### Added
|
|
12
19
|
- High-level `TelaroClient` — wraps register/record/claim/resolve/withdraw flows.
|
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# `@telaro/sdk`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@telaro/sdk)
|
|
4
|
+
[](../LICENSE)
|
|
5
|
+
[](https://explorer.solana.com/address/3DUrvVWEziYLtEbiDtfxqh1ioXRFX6DNvV4iTsGed2rs?cluster=devnet)
|
|
6
|
+
|
|
7
|
+
> TypeScript SDK for the **Telaro** protocol on Solana. A bonded reputation primitive for AI agents.
|
|
8
|
+
> Currently targets **Solana devnet**. Mainnet is pending audit.
|
|
9
|
+
|
|
10
|
+
📦 [`@telaro/sdk` on npm](https://www.npmjs.com/package/@telaro/sdk) · 🌐 [telaro.xyz](https://telaro.xyz) · 📚 [Quickstart](./QUICKSTART.md) · 📖 [Main repo](https://github.com/telaro-protocol/telaro)
|
|
4
11
|
|
|
5
12
|
## Install
|
|
6
13
|
|
|
@@ -12,7 +19,7 @@ npm install @telaro/sdk @solana/web3.js @solana/spl-token
|
|
|
12
19
|
|
|
13
20
|
### ⚠️ Required: pin `rpc-websockets`
|
|
14
21
|
|
|
15
|
-
`@solana/web3.js@1.x` pulls a `rpc-websockets` build whose transitive `uuid@14` (ESM-only) breaks a CJS shim
|
|
22
|
+
`@solana/web3.js@1.x` pulls a `rpc-websockets` build whose transitive `uuid@14` (ESM-only) breaks a CJS shim. You'll hit `ERR_REQUIRE_ESM` at the first import. Add this to your `package.json` before running `npm install`:
|
|
16
23
|
|
|
17
24
|
```jsonc
|
|
18
25
|
{
|
|
@@ -31,7 +38,7 @@ npm install @telaro/sdk @solana/web3.js @solana/spl-token
|
|
|
31
38
|
- **Compatible runtimes**: Next.js 15+, Vite, Bun, Deno, Anchor 0.30+ TS templates, modern Node
|
|
32
39
|
- **Not compatible**: legacy CommonJS-only environments. Use a dynamic `await import("@telaro/sdk")` if you must call from CJS.
|
|
33
40
|
|
|
34
|
-
## Quick start
|
|
41
|
+
## Quick start: agent side (framework integrator)
|
|
35
42
|
|
|
36
43
|
```ts
|
|
37
44
|
import { TelaroClient, ActionKind, ActionOutcome } from "@telaro/sdk";
|
|
@@ -59,7 +66,7 @@ await rep.recordAction({
|
|
|
59
66
|
});
|
|
60
67
|
```
|
|
61
68
|
|
|
62
|
-
## Quick start
|
|
69
|
+
## Quick start: DApp side (consumer)
|
|
63
70
|
|
|
64
71
|
```ts
|
|
65
72
|
import { findAgentPda, computeScore, tierOf } from "@telaro/sdk";
|
|
@@ -79,7 +86,7 @@ if (tierOf(score) === "high" && score >= 700) {
|
|
|
79
86
|
}
|
|
80
87
|
```
|
|
81
88
|
|
|
82
|
-
## Quick start
|
|
89
|
+
## Quick start: DApp on-chain enforcement (Anchor CPI)
|
|
83
90
|
|
|
84
91
|
In your own Anchor program, before delegating capital to an agent, invoke
|
|
85
92
|
`view_bond` on the Telaro program. Reverts if the agent doesn't meet
|
|
@@ -126,4 +133,4 @@ The `bondRatioBps` returned alongside the score is what the on-chain
|
|
|
126
133
|
|
|
127
134
|
## License
|
|
128
135
|
|
|
129
|
-
MIT
|
|
136
|
+
MIT. See [LICENSE](../LICENSE).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telaro/sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "TypeScript SDK for the Telaro protocol on Solana
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "TypeScript SDK for the Telaro protocol on Solana. A bonded reputation layer for AI agents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|