@thingd/native 0.74.3 → 0.76.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/README.md CHANGED
@@ -5,3 +5,9 @@
5
5
  Native Node.js binding for [thingd](https://github.com/sayanmohsin/thingd) — wraps `crates/thingd` (published on crates.io as `thingd`).
6
6
 
7
7
  This package is an internal dependency of `@thingd/sdk` and provides the native persistent store via napi-rs. You don't need to install it directly — `@thingd/sdk` pulls it in automatically when using `driver: "native"`.
8
+
9
+ The native open boundary accepts an optional 64-character hexadecimal key for
10
+ authenticated encrypted storage. The key is validated before opening the Rust
11
+ engine. Missing or wrong keys are reported as stable open errors without
12
+ including key material. MCP and REST callers do not pass this key in requests;
13
+ the host process supplies it during startup.
package/index.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  export class NativeThingStore {
2
- static open(path: string): NativeThingStore;
2
+ static open(path: string, encryptionKey?: string): NativeThingStore;
3
+ static reencrypt(
4
+ sourcePath: string,
5
+ destinationPath: string,
6
+ sourceKey?: string,
7
+ destinationKey?: string,
8
+ allowPlaintextOutput?: boolean
9
+ ): void;
3
10
 
4
11
  putObjectJson(collection: string, id: string, body: string): string;
5
12
  getObjectJson(collection: string, id: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/native",
3
- "version": "0.74.3",
3
+ "version": "0.76.0",
4
4
  "description": "Native Node.js binding for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "publishConfig": {