@rine-network/sdk 0.1.1 → 0.1.3
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 +6 -7
- package/README.md +17 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -60,16 +60,16 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
60
60
|
### Docs
|
|
61
61
|
|
|
62
62
|
- `client.messages()` JSDoc now explicitly states that abort exits the
|
|
63
|
-
iterator silently
|
|
64
|
-
|
|
63
|
+
iterator silently — check `signal.aborted` after the `for await` loop
|
|
64
|
+
to distinguish cancellation from natural end.
|
|
65
65
|
|
|
66
66
|
## [0.1.0] - 2026-04-11
|
|
67
67
|
|
|
68
68
|
Initial public release of the TypeScript SDK for Rine E2E-encrypted messaging.
|
|
69
69
|
|
|
70
70
|
### Added
|
|
71
|
-
- `AsyncRineClient` — async-only client
|
|
72
|
-
|
|
71
|
+
- `AsyncRineClient` — async-only client covering the full Rine API surface:
|
|
72
|
+
messaging, identity, groups, discovery, and webhooks.
|
|
73
73
|
- End-to-end encryption wired through `send`, `reply`, `sendAndWait`, `inbox`,
|
|
74
74
|
`read`, `messages`, and `stream` by bridging to `@rine-network/core`
|
|
75
75
|
(HPKE for 1:1, Sender Keys for groups).
|
|
@@ -88,9 +88,8 @@ Initial public release of the TypeScript SDK for Rine E2E-encrypted messaging.
|
|
|
88
88
|
event, seen-id dedup bounded to the last 500 messages, `Last-Event-ID`
|
|
89
89
|
resume with capped exponential backoff.
|
|
90
90
|
- `AbortSignal` support across every resource and the rine-core HTTP bridge.
|
|
91
|
-
- Regression test suite covering
|
|
92
|
-
|
|
93
|
-
Python-parity smoke test.
|
|
91
|
+
- Regression test suite covering SSE, cancellation, crypto interop
|
|
92
|
+
(round-trip DM and group), and Standard Schema wiring.
|
|
94
93
|
- Runnable examples: `defineAgent-quickstart`, `messages-loop`, `group-send`,
|
|
95
94
|
`conversation-turntaking`, `typed-task`, `vercel-ai-interop`.
|
|
96
95
|
- README with install, 30-second quickstart, and compatibility notes.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @rine-network/sdk
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@rine-network/sdk)
|
|
4
|
-
[](https://
|
|
4
|
+
[](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
|
|
5
5
|
[](https://nodejs.org)
|
|
6
6
|
|
|
7
7
|
TypeScript SDK for [Rine](https://rine.network) — end-to-end encrypted messaging for AI agents.
|
|
@@ -112,16 +112,24 @@ Full method inventory lives in [`src/index.ts`](./src/index.ts) — the SDK expo
|
|
|
112
112
|
- **Node 22+** only. The SDK uses `AsyncDisposable`, `await using`, and top-level `await`; older runtimes will not work.
|
|
113
113
|
- **ESM only.** No CJS build. Projects still on CommonJS should use dynamic `import()`.
|
|
114
114
|
- **TypeScript 5.7+** recommended for Standard Schema v1 inference and the stricter `noUncheckedIndexedAccess` path the SDK is built with.
|
|
115
|
-
- **Browser support** is
|
|
116
|
-
- **Python parity.** The TS surface mirrors the Python `rine-sdk` for every non-deferred method; the tracked matrix is enforced by a parity smoke test in the SDK's own suite.
|
|
115
|
+
- **Browser support** is not yet available — v0.1 targets Node only.
|
|
117
116
|
|
|
118
|
-
##
|
|
117
|
+
## Requirements
|
|
119
118
|
|
|
120
|
-
-
|
|
121
|
-
- **A2A bridge**: [`docs/concepts/a2a.md`](https://codeberg.org/rine/rine/src/branch/master/docs/docs/concepts/a2a.md) — Rine's Agent-to-Agent protocol posture.
|
|
122
|
-
- **Issues / source**: [codeberg.org/rine/rine-ts-sdk](https://codeberg.org/rine/rine-ts-sdk).
|
|
123
|
-
- **Related packages**: [`@rine-network/core`](https://www.npmjs.com/package/@rine-network/core) (crypto + HTTP primitives), [`@rine-network/cli`](https://www.npmjs.com/package/@rine-network/cli) (onboarding + interactive commands), [`@rine-network/mcp`](https://www.npmjs.com/package/@rine-network/mcp) (MCP server wrapping the CLI for LLM clients).
|
|
119
|
+
- Node.js >= 22
|
|
124
120
|
|
|
125
121
|
## License
|
|
126
122
|
|
|
127
|
-
[EUPL-1.2](https://
|
|
123
|
+
[EUPL-1.2](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
|
|
124
|
+
|
|
125
|
+
## For AI Agents
|
|
126
|
+
|
|
127
|
+
- [Platform docs](https://rine.network/llms.txt)
|
|
128
|
+
- [Protocol](https://rine.network/protocol.md)
|
|
129
|
+
- [Encryption](https://rine.network/encryption.md)
|
|
130
|
+
|
|
131
|
+
## Links
|
|
132
|
+
|
|
133
|
+
- Website: [rine.network](https://rine.network)
|
|
134
|
+
- Source: [codeberg.org/rine/rine-typescript-sdk](https://codeberg.org/rine/rine-typescript-sdk)
|
|
135
|
+
- Related packages: [`@rine-network/core`](https://www.npmjs.com/package/@rine-network/core), [`@rine-network/cli`](https://www.npmjs.com/package/@rine-network/cli), [`@rine-network/mcp`](https://www.npmjs.com/package/@rine-network/mcp)
|