@rkat/sdk 0.6.2 → 0.6.4
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/README.md +3 -3
- package/dist/generated/types.d.ts +1 -1
- package/dist/generated/types.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
TypeScript client for the [Meerkat](https://github.com/lukacf/meerkat) runtime. The SDK is a thin session-first wrapper over the same runtime-backed contracts used by the CLI, REST, JSON-RPC, and MCP surfaces. It communicates with a local `rkat-rpc` subprocess over JSON-RPC 2.0 (newline-delimited JSON on stdin/stdout).
|
|
4
4
|
|
|
5
|
-
Current contract version: `0.6.
|
|
5
|
+
Current contract version: `0.6.3`.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -377,14 +377,14 @@ try {
|
|
|
377
377
|
|
|
378
378
|
## Version Compatibility
|
|
379
379
|
|
|
380
|
-
The SDK exports `CONTRACT_VERSION` (currently `"0.6.
|
|
380
|
+
The SDK exports `CONTRACT_VERSION` (currently `"0.6.3"`). During `connect()`, the SDK checks that the server's contract version is compatible:
|
|
381
381
|
|
|
382
382
|
- While the major version is `0`, minor versions must match exactly (e.g. SDK `0.1.x` requires server `0.1.x`).
|
|
383
383
|
- Once `1.0.0` is reached, major versions must match (standard semver).
|
|
384
384
|
|
|
385
385
|
```ts
|
|
386
386
|
import { CONTRACT_VERSION } from "@rkat/sdk";
|
|
387
|
-
console.log(CONTRACT_VERSION); // "0.6.
|
|
387
|
+
console.log(CONTRACT_VERSION); // "0.6.3"
|
|
388
388
|
```
|
|
389
389
|
|
|
390
390
|
If the versions are incompatible, `connect()` throws a `MeerkatError` with code `"VERSION_MISMATCH"`.
|
package/dist/generated/types.js
CHANGED