Added MCP, Hybrid Memories and Skill support
All checks were successful
Publish Library / Build NPM Project (push) Successful in 56s
Publish Library / Tag Version (push) Successful in 16s

This commit is contained in:
2026-06-06 22:02:19 -04:00
parent af6522ad88
commit 0b1c25dfda
11 changed files with 2191 additions and 2417 deletions

View File

@@ -1,13 +1,13 @@
import { pipeline } from '@xenova/transformers';
import { pipeline } from '@huggingface/transformers';
const [modelDir, model] = process.argv.slice(2);
let text = '';
process.stdin.on('data', chunk => text += chunk);
process.stdin.on('end', async () => {
const embedder = await pipeline('feature-extraction', 'Xenova/' + model, {quantized: true, cache_dir: modelDir});
const embedder = await pipeline('feature-extraction', 'Xenova/' + model, {cache_dir: modelDir});
const output = await embedder(text, { pooling: 'mean', normalize: true });
const embedding = Array.from(output.data);
console.log(JSON.stringify({embedding}));
process.stdout.write(JSON.stringify({embedding}));
process.exit();
});