@totalreclaw/totalreclaw 1.6.0 → 3.0.6

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/api-client.ts CHANGED
@@ -25,7 +25,7 @@ export interface StoreFactPayload {
25
25
  id: string;
26
26
  /** ISO 8601 timestamp */
27
27
  timestamp: string;
28
- /** Hex-encoded AES-256-GCM ciphertext (iv || tag || ciphertext) */
28
+ /** Hex-encoded XChaCha20-Poly1305 ciphertext (iv || tag || ciphertext) */
29
29
  encrypted_blob: string;
30
30
  /** SHA-256 hashes of tokens for blind search */
31
31
  blind_indices: string[];
@@ -37,7 +37,7 @@ export interface StoreFactPayload {
37
37
  content_fp?: string;
38
38
  /** Identifier of the creating agent */
39
39
  agent_id?: string;
40
- /** Hex-encoded AES-256-GCM encrypted embedding vector (PoC v2) */
40
+ /** Hex-encoded XChaCha20-Poly1305 encrypted embedding vector (PoC v2) */
41
41
  encrypted_embedding?: string;
42
42
  }
43
43
 
@@ -48,13 +48,13 @@ export interface StoreFactPayload {
48
48
  */
49
49
  export interface SearchCandidate {
50
50
  fact_id: string;
51
- /** Hex-encoded AES-256-GCM ciphertext */
51
+ /** Hex-encoded XChaCha20-Poly1305 ciphertext */
52
52
  encrypted_blob: string;
53
53
  decay_score: number;
54
54
  /** Unix milliseconds */
55
55
  timestamp: number;
56
56
  version: number;
57
- /** Hex-encoded AES-256-GCM encrypted embedding vector (PoC v2, optional) */
57
+ /** Hex-encoded XChaCha20-Poly1305 encrypted embedding vector (PoC v2, optional) */
58
58
  encrypted_embedding?: string;
59
59
  }
60
60
 
@@ -126,7 +126,7 @@ export function createApiClient(serverUrl: string) {
126
126
  ): Promise<{ user_id: string }> {
127
127
  const res = await fetch(`${baseUrl}/v1/register`, {
128
128
  method: 'POST',
129
- headers: { 'Content-Type': 'application/json' },
129
+ headers: { 'Content-Type': 'application/json', 'X-TotalReclaw-Client': 'openclaw-plugin' },
130
130
  body: JSON.stringify({ auth_key_hash: authKeyHash, salt: saltHex }),
131
131
  });
132
132
  await assertOk(res, 'register');