mirror of
https://github.com/samvallad33/vestige.git
synced 2026-05-08 15:22:37 +02:00
Initial commit: Vestige v1.0.0 - Cognitive memory MCP server
FSRS-6 spaced repetition, spreading activation, synaptic tagging, hippocampal indexing, and 130 years of memory research. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
commit
f9c60eb5a7
169 changed files with 97206 additions and 0 deletions
41
packages/vestige-mcp-npm/scripts/postinstall.js
Normal file
41
packages/vestige-mcp-npm/scripts/postinstall.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
const https = require('https');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
const VERSION = require('../package.json').version;
|
||||
const PLATFORM = os.platform();
|
||||
const ARCH = os.arch();
|
||||
|
||||
const PLATFORM_MAP = {
|
||||
darwin: 'apple-darwin',
|
||||
linux: 'unknown-linux-gnu',
|
||||
win32: 'pc-windows-msvc',
|
||||
};
|
||||
|
||||
const ARCH_MAP = {
|
||||
x64: 'x86_64',
|
||||
arm64: 'aarch64',
|
||||
};
|
||||
|
||||
const platformStr = PLATFORM_MAP[PLATFORM];
|
||||
const archStr = ARCH_MAP[ARCH];
|
||||
|
||||
if (!platformStr || !archStr) {
|
||||
console.error(`Unsupported platform: ${PLATFORM}-${ARCH}`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const binaryName = PLATFORM === 'win32' ? 'engram-mcp.exe' : 'engram-mcp';
|
||||
const targetDir = path.join(__dirname, '..', 'bin');
|
||||
const targetPath = path.join(targetDir, binaryName);
|
||||
|
||||
// For now, just create a placeholder - real binaries come from GitHub releases
|
||||
console.log(`Engram MCP v${VERSION} installed for ${archStr}-${platformStr}`);
|
||||
console.log(`Binary location: ${targetPath}`);
|
||||
|
||||
// Ensure bin directory exists
|
||||
if (!fs.existsSync(targetDir)) {
|
||||
fs.mkdirSync(targetDir, { recursive: true });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue