@totalreclaw/mcp-server 3.4.0 → 3.5.1-rc.1
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 +63 -4
- package/SKILL.md +1 -1
- package/dist/cli/setup.d.ts +10 -0
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +10 -0
- package/dist/cli/setup.js.map +1 -1
- package/dist/contradiction-sync.d.ts.map +1 -1
- package/dist/contradiction-sync.js +5 -4
- package/dist/contradiction-sync.js.map +1 -1
- package/dist/dispatch.js +2 -2
- package/dist/dispatch.js.map +1 -1
- package/dist/embedding-codec.d.ts +81 -0
- package/dist/embedding-codec.d.ts.map +1 -0
- package/dist/embedding-codec.js +223 -0
- package/dist/embedding-codec.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +286 -67
- package/dist/index.js.map +1 -1
- package/dist/pair-remote-client.d.ts +41 -0
- package/dist/pair-remote-client.d.ts.map +1 -1
- package/dist/pair-remote-client.js +130 -32
- package/dist/pair-remote-client.js.map +1 -1
- package/dist/prompts.d.ts +5 -5
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +8 -9
- package/dist/prompts.js.map +1 -1
- package/dist/subgraph/bundle.d.ts +129 -0
- package/dist/subgraph/bundle.d.ts.map +1 -0
- package/dist/subgraph/bundle.js +232 -0
- package/dist/subgraph/bundle.js.map +1 -0
- package/dist/subgraph/chain-config.d.ts +86 -3
- package/dist/subgraph/chain-config.d.ts.map +1 -1
- package/dist/subgraph/chain-config.js +71 -2
- package/dist/subgraph/chain-config.js.map +1 -1
- package/dist/subgraph/credentials.d.ts +83 -0
- package/dist/subgraph/credentials.d.ts.map +1 -0
- package/dist/subgraph/credentials.js +210 -0
- package/dist/subgraph/credentials.js.map +1 -0
- package/dist/subgraph/protobuf.d.ts +71 -0
- package/dist/subgraph/protobuf.d.ts.map +1 -0
- package/dist/subgraph/protobuf.js +114 -0
- package/dist/subgraph/protobuf.js.map +1 -0
- package/dist/subgraph/store.d.ts +38 -45
- package/dist/subgraph/store.d.ts.map +1 -1
- package/dist/subgraph/store.js +50 -105
- package/dist/subgraph/store.js.map +1 -1
- package/dist/tools/account.d.ts +40 -3
- package/dist/tools/account.d.ts.map +1 -1
- package/dist/tools/account.js +51 -5
- package/dist/tools/account.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/pair.d.ts +34 -6
- package/dist/tools/pair.d.ts.map +1 -1
- package/dist/tools/pair.js +125 -25
- package/dist/tools/pair.js.map +1 -1
- package/dist/tools/support.js +2 -2
- package/dist/tools/support.js.map +1 -1
- package/dist/tools/types.d.ts +5 -2
- package/dist/tools/types.d.ts.map +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Universal embedding codec — cross-client format parity (internal#479 Part B).
|
|
4
|
+
*
|
|
5
|
+
* MCP-side mirror of `skill/plugin/embedding/embedding-codec.ts`. The pure
|
|
6
|
+
* packing/unpacking of the *pre-encryption* embedding payload; the
|
|
7
|
+
* XChaCha20-Poly1305 wrapping stays in `subgraph/crypto.ts`
|
|
8
|
+
* (`encrypt` / `decrypt`).
|
|
9
|
+
*
|
|
10
|
+
* # The parity bug (#479)
|
|
11
|
+
*
|
|
12
|
+
* Three clients wrote three different pre-encryption payloads:
|
|
13
|
+
* - Hermes / canonical core: base64(little-endian f16) — 1280 B for 640-d.
|
|
14
|
+
* - TS plugin (legacy): `JSON.stringify(number[])` — a JSON array.
|
|
15
|
+
* - Old Python / MCP: base64(little-endian f32) — 2560 B for 640-d.
|
|
16
|
+
*
|
|
17
|
+
* Each client only read its OWN format, so in a mixed-client vault a foreign
|
|
18
|
+
* fact's embedding decrypted to garbage and that fact silently degraded to
|
|
19
|
+
* word-index-only matching. The READ side below fixes that: one UNIVERSAL
|
|
20
|
+
* decoder, preferring `@totalreclaw/core.decodeEmbeddingUniversal` when the
|
|
21
|
+
* installed core exposes it, else a local fallback implementing the exact
|
|
22
|
+
* dispatch of core's `decode_embedding_universal`
|
|
23
|
+
* (rust/totalreclaw-core/src/embedding_codec.rs):
|
|
24
|
+
* - payload beginning with `[` → JSON float array;
|
|
25
|
+
* - else base64-decode → `len == EMBEDDING_DIMS*2` → f16 upcast to f32;
|
|
26
|
+
* - else `len % 4 == 0` → LE f32;
|
|
27
|
+
* - else → throw. Never a silently wrong-length vector.
|
|
28
|
+
*
|
|
29
|
+
* WRITE: {@link encodeEmbeddingPayload} delegates to
|
|
30
|
+
* `@totalreclaw/core.encodeEmbeddingCanonical` when present (canonical f16,
|
|
31
|
+
* fail-closed on NaN/±inf/overflow — the throw aborts the store). When the
|
|
32
|
+
* installed core predates the codec it keeps the legacy f32-binary packing the
|
|
33
|
+
* MCP server has always used (see `index.ts` `encryptEmbedding`). f32→f16
|
|
34
|
+
* rounding is NOT reimplemented here — it stays in core; writes flip to
|
|
35
|
+
* canonical automatically when the core dep bumps.
|
|
36
|
+
*/
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.LEGACY_F32_MARKER = exports.EMBEDDING_DIMS = void 0;
|
|
39
|
+
exports.decodeEmbeddingLocal = decodeEmbeddingLocal;
|
|
40
|
+
exports.decodeEmbeddingWithCore = decodeEmbeddingWithCore;
|
|
41
|
+
exports.decodeEmbeddingUniversal = decodeEmbeddingUniversal;
|
|
42
|
+
exports.encodeEmbeddingPayloadWithCore = encodeEmbeddingPayloadWithCore;
|
|
43
|
+
exports.encodeEmbeddingPayload = encodeEmbeddingPayload;
|
|
44
|
+
/** Production embedding dimensionality. Mirrors core's `EMBEDDING_DIMS`. */
|
|
45
|
+
exports.EMBEDDING_DIMS = 640;
|
|
46
|
+
// MCP uses bare `require('@totalreclaw/core')` (see consolidation.ts,
|
|
47
|
+
// contradiction-sync.ts) — match that pattern rather than `createRequire`.
|
|
48
|
+
let _coreCodec;
|
|
49
|
+
/**
|
|
50
|
+
* Probe the installed `@totalreclaw/core` for the embedding codec. Returns the
|
|
51
|
+
* binding when BOTH functions are present, `null` when either is missing (or
|
|
52
|
+
* the module cannot be loaded), and caches the result. The require is wrapped
|
|
53
|
+
* so a partial install of the dependency tree does not crash module init.
|
|
54
|
+
*/
|
|
55
|
+
function resolveCoreCodec() {
|
|
56
|
+
if (_coreCodec !== undefined)
|
|
57
|
+
return _coreCodec;
|
|
58
|
+
try {
|
|
59
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
60
|
+
const core = require('@totalreclaw/core');
|
|
61
|
+
if (typeof core.encodeEmbeddingCanonical === 'function' &&
|
|
62
|
+
typeof core.decodeEmbeddingUniversal === 'function') {
|
|
63
|
+
_coreCodec = core;
|
|
64
|
+
return _coreCodec;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
// Core not installed / unloadable — fall back to the local decoder.
|
|
69
|
+
}
|
|
70
|
+
_coreCodec = null;
|
|
71
|
+
return _coreCodec;
|
|
72
|
+
}
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// f16 → f32 upcast (exact bit math)
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
const _f32View = new DataView(new ArrayBuffer(4));
|
|
77
|
+
/**
|
|
78
|
+
* Convert one IEEE-754 binary16 (little-endian bytes `lo`,`hi`) into a JS
|
|
79
|
+
* number, widening to f32 first. Mirrors Rust `half::f16::to_f32` exactly:
|
|
80
|
+
* sign/exponent/mantissa widening, subnormals normalized, inf/NaN preserved.
|
|
81
|
+
* Every f32 is exactly representable as a JS number (f64), so this is
|
|
82
|
+
* bit-exact with core's `f16.to_f32()` exposed to JS.
|
|
83
|
+
*/
|
|
84
|
+
function f16LeBytesToNumber(lo, hi) {
|
|
85
|
+
const half = lo | (hi << 8); // little-endian u16
|
|
86
|
+
const sign = (half & 0x8000) << 16; // sign bit moved to f32 position
|
|
87
|
+
const exp = (half & 0x7c00) >> 10; // 5-bit exponent
|
|
88
|
+
const mant = half & 0x03ff; // 10-bit mantissa
|
|
89
|
+
let bits;
|
|
90
|
+
if (exp === 0) {
|
|
91
|
+
if (mant === 0) {
|
|
92
|
+
bits = sign; // signed zero
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
// Subnormal f16: normalize into a normal f32.
|
|
96
|
+
let m = mant;
|
|
97
|
+
let e = -14;
|
|
98
|
+
while ((m & 0x0400) === 0) {
|
|
99
|
+
m <<= 1;
|
|
100
|
+
e -= 1;
|
|
101
|
+
}
|
|
102
|
+
m &= 0x03ff; // drop the implicit leading 1
|
|
103
|
+
e += 127; // rebias to f32
|
|
104
|
+
bits = sign | (e << 23) | (m << 13);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
else if (exp === 31) {
|
|
108
|
+
// Inf or NaN — preserve payload bits in the f32 mantissa.
|
|
109
|
+
bits = sign | 0x7f800000 | (mant << 13);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
bits = sign | ((exp + 112) << 23) | (mant << 13); // normal: rebias 15→127
|
|
113
|
+
}
|
|
114
|
+
_f32View.setUint32(0, bits >>> 0, true);
|
|
115
|
+
return _f32View.getFloat32(0, true);
|
|
116
|
+
}
|
|
117
|
+
// ---------------------------------------------------------------------------
|
|
118
|
+
// READ — local universal decoder (the actual parity fix)
|
|
119
|
+
// ---------------------------------------------------------------------------
|
|
120
|
+
/**
|
|
121
|
+
* Decode any pre-encryption embedding payload — canonical f16, legacy JSON, or
|
|
122
|
+
* legacy f32 binary — into a `number[]`, using ONLY local computation (no core
|
|
123
|
+
* binding). Dispatch matches core's `decode_embedding_universal` exactly. See
|
|
124
|
+
* the file header for the dispatch table. Throws on malformed JSON, invalid
|
|
125
|
+
* base64, or an uninterpretable byte length.
|
|
126
|
+
*/
|
|
127
|
+
// Strict base64 validation (coordinator review): Buffer.from(s, 'base64') is
|
|
128
|
+
// silently LAX — it skips invalid characters and never throws, so a corrupted
|
|
129
|
+
// or foreign payload could decode to a plausible-length buffer of garbage
|
|
130
|
+
// floats instead of erroring. Core (Rust) and Python both REJECT invalid
|
|
131
|
+
// base64; the local fallback must match that contract. Standard alphabet,
|
|
132
|
+
// padded, whole-string.
|
|
133
|
+
// Note: this validates alphabet + padding shape but not trailing-bit
|
|
134
|
+
// canonicality (core's Rust engine also rejects non-zero trailing bits in
|
|
135
|
+
// the final block) — slightly more lenient in the SAFE direction only; no
|
|
136
|
+
// real encoder emits non-canonical trailing bits.
|
|
137
|
+
const BASE64_STRICT = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
138
|
+
function decodeEmbeddingLocal(payload) {
|
|
139
|
+
const trimmed = payload.trim();
|
|
140
|
+
// Legacy TS plugin format: a decrypted payload beginning with '[' is a JSON
|
|
141
|
+
// float array (the historical JSON.stringify(vec) write).
|
|
142
|
+
if (trimmed.startsWith('[')) {
|
|
143
|
+
let parsed;
|
|
144
|
+
try {
|
|
145
|
+
parsed = JSON.parse(trimmed);
|
|
146
|
+
}
|
|
147
|
+
catch (e) {
|
|
148
|
+
throw new Error(`invalid JSON embedding array: ${e instanceof Error ? e.message : String(e)}`);
|
|
149
|
+
}
|
|
150
|
+
if (!Array.isArray(parsed) || !parsed.every((v) => typeof v === 'number')) {
|
|
151
|
+
throw new Error('JSON embedding payload is not an array of numbers');
|
|
152
|
+
}
|
|
153
|
+
return parsed;
|
|
154
|
+
}
|
|
155
|
+
if (!BASE64_STRICT.test(trimmed)) {
|
|
156
|
+
throw new Error('base64 decode failed: payload contains non-base64 characters');
|
|
157
|
+
}
|
|
158
|
+
const buf = Buffer.from(trimmed, 'base64');
|
|
159
|
+
if (buf.length === exports.EMBEDDING_DIMS * 2) {
|
|
160
|
+
// Canonical f16 payload (640 * 2 bytes).
|
|
161
|
+
const out = new Array(exports.EMBEDDING_DIMS);
|
|
162
|
+
for (let i = 0; i < exports.EMBEDDING_DIMS; i++) {
|
|
163
|
+
out[i] = f16LeBytesToNumber(buf[i * 2], buf[i * 2 + 1]);
|
|
164
|
+
}
|
|
165
|
+
return out;
|
|
166
|
+
}
|
|
167
|
+
if (buf.length % 4 === 0) {
|
|
168
|
+
// Legacy f32 binary payload (old Python '<Nf' / the MCP write), OR any
|
|
169
|
+
// non-640-d vector packed as f32. 0 bytes → empty vector.
|
|
170
|
+
const count = buf.length / 4;
|
|
171
|
+
const out = new Array(count);
|
|
172
|
+
for (let i = 0; i < count; i++) {
|
|
173
|
+
out[i] = buf.readFloatLE(i * 4);
|
|
174
|
+
}
|
|
175
|
+
return out;
|
|
176
|
+
}
|
|
177
|
+
throw new Error(`decoded embedding buffer has length ${buf.length} (expected ${exports.EMBEDDING_DIMS * 2} for f16, or a multiple of 4 for f32)`);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Decode with an explicit core binding (injection seam). When `core` is
|
|
181
|
+
* non-null it is preferred (byte-exact parity with core); otherwise the local
|
|
182
|
+
* decoder runs. Production code calls {@link decodeEmbeddingUniversal}.
|
|
183
|
+
*/
|
|
184
|
+
function decodeEmbeddingWithCore(payload, core) {
|
|
185
|
+
if (core)
|
|
186
|
+
return Array.from(core.decodeEmbeddingUniversal(payload));
|
|
187
|
+
return decodeEmbeddingLocal(payload);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Decode any embedding payload, preferring the installed `@totalreclaw/core`
|
|
191
|
+
* binding when it exposes `decodeEmbeddingUniversal`, else the local fallback.
|
|
192
|
+
*/
|
|
193
|
+
function decodeEmbeddingUniversal(payload) {
|
|
194
|
+
return decodeEmbeddingWithCore(payload, resolveCoreCodec());
|
|
195
|
+
}
|
|
196
|
+
// ---------------------------------------------------------------------------
|
|
197
|
+
// WRITE — canonical f16 (core-binding only) or legacy f32 fallback
|
|
198
|
+
// ---------------------------------------------------------------------------
|
|
199
|
+
/**
|
|
200
|
+
* Encode a vector into the pre-encryption payload, with an explicit core
|
|
201
|
+
* binding (injection seam). When `core` is present this delegates to
|
|
202
|
+
* `core.encodeEmbeddingCanonical` (fail-closed on NaN/±inf/overflow — the
|
|
203
|
+
* throw intentionally aborts the store). When `core` is null it returns the
|
|
204
|
+
* marker `'__legacy-f32:use-mcp-packing__'`; the MCP `encryptEmbedding` helper
|
|
205
|
+
* then packs the legacy f32 binary itself (its historical write). The f32→f16
|
|
206
|
+
* rounding is deliberately left to core, never reimplemented here.
|
|
207
|
+
*/
|
|
208
|
+
exports.LEGACY_F32_MARKER = '__totalreclaw-legacy-f32-packing__';
|
|
209
|
+
function encodeEmbeddingPayloadWithCore(embedding, core) {
|
|
210
|
+
if (core)
|
|
211
|
+
return core.encodeEmbeddingCanonical(embedding);
|
|
212
|
+
return exports.LEGACY_F32_MARKER;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Encode a vector into the pre-encryption payload, preferring canonical f16 via
|
|
216
|
+
* `@totalreclaw/core.encodeEmbeddingCanonical` when the installed core exposes
|
|
217
|
+
* it, else the legacy-f32 marker (the MCP helper packs f32 itself). Writes flip
|
|
218
|
+
* to canonical automatically when the core dependency bumps past the codec.
|
|
219
|
+
*/
|
|
220
|
+
function encodeEmbeddingPayload(embedding) {
|
|
221
|
+
return encodeEmbeddingPayloadWithCore(embedding, resolveCoreCodec());
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=embedding-codec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedding-codec.js","sourceRoot":"","sources":["../src/embedding-codec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;;;AAqHH,oDAkDC;AAOD,0DAMC;AAMD,4DAEC;AAiBD,wEAMC;AAQD,wDAEC;AA3ND,4EAA4E;AAC/D,QAAA,cAAc,GAAG,GAAG,CAAC;AAgBlC,sEAAsE;AACtE,2EAA2E;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CAAC;AAED;;;;;GAKG;AACH,SAAgB,sBAAsB,CAAC,SAAmB;IACxD,OAAO,8BAA8B,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;AACvE,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAkLA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|