@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/CLAWHUB.md +134 -0
- package/README.md +407 -64
- package/SKILL.md +1032 -0
- package/api-client.ts +5 -5
- package/claims-helper.ts +686 -0
- package/config.ts +211 -0
- package/consolidation.ts +141 -33
- package/contradiction-sync.ts +1389 -0
- package/crypto.ts +63 -261
- package/digest-sync.ts +516 -0
- package/embedding.ts +69 -46
- package/extractor.ts +1307 -84
- package/hot-cache-wrapper.ts +1 -1
- package/import-adapters/gemini-adapter.ts +243 -0
- package/import-adapters/index.ts +3 -0
- package/import-adapters/types.ts +1 -1
- package/index.ts +1887 -323
- package/llm-client.ts +106 -53
- package/lsh.ts +21 -210
- package/package.json +20 -7
- package/pin.ts +502 -0
- package/reranker.ts +96 -124
- package/skill.json +213 -0
- package/subgraph-search.ts +112 -5
- package/subgraph-store.ts +559 -275
- package/consolidation.test.ts +0 -356
- package/extractor-dedup.test.ts +0 -168
- package/import-adapters/import-adapters.test.ts +0 -1123
- package/lsh.test.ts +0 -463
- package/pocv2-e2e-test.ts +0 -917
- package/porter-stemmer.d.ts +0 -4
- package/reranker.test.ts +0 -594
- package/semantic-dedup.test.ts +0 -392
- package/setup.sh +0 -19
- package/store-dedup-wiring.test.ts +0 -186
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
|
|
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
|
|
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
|
|
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
|
|
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');
|