π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
/**
* Test Seraphine Genesis Model
* Quick validation of the transfer pipeline
*/
import * as fs from 'fs';
import * as path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Simple test without complex imports
async function test(): Promise<void> {
console.log('');
console.log('ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ');
console.log('β SERAPHINE GENESIS TEST SUITE β');
console.log('ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ');
console.log('');
let passed = 0;
let failed = 0;
// Test 1: Types file exists
const typesPath = path.join(__dirname, 'types.ts');
if (fs.existsSync(typesPath)) {
console.log('β
Test 1: Types module exists');
passed++;
} else {
console.log('β Test 1: Types module missing');
failed++;
}
// Test 2: Seraphine model exists
const seraphPath = path.join(__dirname, 'models', 'seraphine.ts');
if (fs.existsSync(seraphPath)) {
console.log('β
Test 2: Seraphine model exists');
passed++;
} else {
console.log('β Test 2: Seraphine model missing');
failed++;
}
// Test 3: CFP serializer exists
const cfpPath = path.join(__dirname, 'serialization', 'cfp.ts');
if (fs.existsSync(cfpPath)) {
console.log('β
Test 3: CFP serializer exists');
passed++;
} else {
console.log('β Test 3: CFP serializer missing');
failed++;
}
// Test 4: Anonymization module exists
const anonPath = path.join(__dirname, 'anonymization', 'index.ts');
if (fs.existsSync(anonPath)) {
console.log('β
Test 4: Anonymization module exists');
passed++;
} else {
console.log('β Test 4: Anonymization module missing');
failed++;
}
// Test 5: IPFS upload module exists
const ipfsPath = path.join(__dirname, 'ipfs', 'upload.ts');
if (fs.existsSync(ipfsPath)) {
console.log('β
Test 5: IPFS upload module exists');
passed++;
} else {
console.log('β Test 5: IPFS upload module missing');
failed++;
}
// Test 6: Export module exists
const exportPath = path.join(__dirname, 'export.ts');
if (fs.existsSync(exportPath)) {
console.log('β
Test 6: Export module exists');
passed++;
} else {
console.log('β Test 6: Export module missing');
failed++;
}
// Test 7: Index module exists
const indexPath = path.join(__dirname, 'index.ts');
if (fs.existsSync(indexPath)) {
console.log('β
Test 7: Index module exists');
passed++;
} else {
console.log('β Test 7: Index module missing');
failed++;
}
console.log('');
console.log('βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ');
console.log(` Results: ${passed} passed, ${failed} failed`);
console.log('βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ');
console.log('');
if (failed === 0) {
console.log('π All module tests passed!');
console.log('');
console.log('Next steps:');
console.log(' 1. Compile TypeScript: cd v3/@claude-flow/cli && npm run build');
console.log(' 2. Run deployment: npx ts-node src/transfer/deploy-seraphine.ts --to-ipfs');
console.log('');
}
process.exit(failed > 0 ? 1 : 0);
}
test().catch(console.error);