@telaro/sdk 0.1.0 → 0.1.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 (3) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/README.md +13 -6
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -6,7 +6,19 @@ project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.1.0] 2026-05-06
9
+ ## [0.1.2] - 2026-05-17
10
+
11
+ ### Fixed
12
+ - Repository and bugs URLs now point to the correct GitHub org and repo (`Telaro-Protocol/Telaro-Protocol`). 0.1.1 shipped with the wrong path.
13
+
14
+ ## [0.1.1] - 2026-05-17
15
+
16
+ ### Changed
17
+ - Rewrote README with npm badges, direct links to the live package, and clearer install instructions.
18
+ - Updated package description.
19
+ - No code changes.
20
+
21
+ ## [0.1.0] - 2026-05-06
10
22
 
11
23
  ### Added
12
24
  - 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
- > TypeScript SDK for the **Telaro** protocol on Solana — skin-in-the-game reputation primitive for AI agents.
3
+ [![npm version](https://img.shields.io/npm/v/%40telaro%2Fsdk?label=npm&color=00E5B3)](https://www.npmjs.com/package/@telaro/sdk)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-00E5B3)](../LICENSE)
5
+ [![Solana](https://img.shields.io/badge/Solana-Devnet%20live-7BFFC9)](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-Protocol)
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 — you'll hit `ERR_REQUIRE_ESM` at the first import. Add this to your `package.json` before running `npm install`:
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 agent-side (framework integrator)
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 DApp-side (consumer)
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 DApp on-chain enforcement (Anchor CPI)
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 see [LICENSE](../LICENSE).
136
+ MIT. See [LICENSE](../LICENSE).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@telaro/sdk",
3
- "version": "0.1.0",
4
- "description": "TypeScript SDK for the Telaro protocol on Solana \u2014 skin-in-the-game reputation primitive",
3
+ "version": "0.1.2",
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",
@@ -64,12 +64,12 @@
64
64
  },
65
65
  "repository": {
66
66
  "type": "git",
67
- "url": "git+https://github.com/telaro-protocol/telaro.git",
67
+ "url": "git+https://github.com/Telaro-Protocol/Telaro-Protocol.git",
68
68
  "directory": "sdk"
69
69
  },
70
70
  "homepage": "https://telaro.xyz",
71
71
  "bugs": {
72
- "url": "https://github.com/telaro-protocol/telaro/issues"
72
+ "url": "https://github.com/Telaro-Protocol/Telaro-Protocol/issues"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=20"