ruvector 0.2.9 → 0.2.10
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/bin/cli.js +19 -2
- package/bin/mcp-server.js +2 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -8080,7 +8080,7 @@ brainCmd.command('delete <id>')
|
|
|
8080
8080
|
const config = getBrainConfig(opts);
|
|
8081
8081
|
try {
|
|
8082
8082
|
const result = await brainFetch(config, `/v1/memories/${id}`, { method: 'DELETE' });
|
|
8083
|
-
if (opts.json || !process.stdout.isTTY) { console.log(JSON.stringify(
|
|
8083
|
+
if (opts.json || !process.stdout.isTTY) { console.log(JSON.stringify({ deleted: true, id }, null, 2)); return; }
|
|
8084
8084
|
console.log(chalk.green(`Deleted: ${id}`));
|
|
8085
8085
|
} catch (e) { console.error(chalk.red(`Error: ${e.message}`)); process.exit(1); }
|
|
8086
8086
|
});
|
|
@@ -8221,7 +8221,24 @@ brainCmd.command('page <action> [args...]')
|
|
|
8221
8221
|
if (opts.json || !process.stdout.isTTY) { console.log(JSON.stringify(result, null, 2)); return; }
|
|
8222
8222
|
if (result.pages) {
|
|
8223
8223
|
console.log(chalk.bold.cyan('\nBrainpedia Pages\n'));
|
|
8224
|
-
result.
|
|
8224
|
+
if (result.total_count !== undefined) console.log(chalk.dim(` ${result.total_count} total pages\n`));
|
|
8225
|
+
result.pages.forEach((p, i) => {
|
|
8226
|
+
const score = p.quality_score !== undefined ? chalk.dim(` (${(p.quality_score * 100).toFixed(0)}%)`) : '';
|
|
8227
|
+
const status = p.status ? chalk.dim(` [${p.status}]`) : '';
|
|
8228
|
+
console.log(` ${chalk.yellow(i + 1 + '.')} ${chalk.bold(p.title || p.slug || p.id)}${status}${score}`);
|
|
8229
|
+
if (p.category) console.log(` ${chalk.dim(p.category)}`);
|
|
8230
|
+
});
|
|
8231
|
+
} else if (result.memory && result.memory.title) {
|
|
8232
|
+
// Unwrap .memory wrapper from page detail response
|
|
8233
|
+
const page = result.memory;
|
|
8234
|
+
console.log(chalk.bold.cyan(`\n${page.title}\n`));
|
|
8235
|
+
if (result.status) console.log(` ${chalk.bold('Status:')} ${result.status}`);
|
|
8236
|
+
if (page.category) console.log(` ${chalk.bold('Category:')} ${page.category}`);
|
|
8237
|
+
if (page.quality_score !== undefined) console.log(` ${chalk.bold('Quality:')} ${(page.quality_score * 100).toFixed(0)}%`);
|
|
8238
|
+
if (result.delta_count !== undefined) console.log(` ${chalk.bold('Deltas:')} ${result.delta_count}`);
|
|
8239
|
+
if (result.evidence_count !== undefined) console.log(` ${chalk.bold('Evidence:')} ${result.evidence_count}`);
|
|
8240
|
+
if (page.tags && page.tags.length) console.log(` ${chalk.bold('Tags:')} ${page.tags.join(', ')}`);
|
|
8241
|
+
if (page.content) { console.log(); console.log(page.content); }
|
|
8225
8242
|
} else if (result.title) {
|
|
8226
8243
|
console.log(chalk.bold.cyan(`\n${result.title}\n`));
|
|
8227
8244
|
if (result.content) console.log(result.content);
|
package/bin/mcp-server.js
CHANGED
|
@@ -428,7 +428,7 @@ class Intelligence {
|
|
|
428
428
|
const server = new Server(
|
|
429
429
|
{
|
|
430
430
|
name: 'ruvector',
|
|
431
|
-
version: '0.2.
|
|
431
|
+
version: '0.2.10',
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
capabilities: {
|
|
@@ -4120,7 +4120,7 @@ async function main() {
|
|
|
4120
4120
|
transport: 'sse',
|
|
4121
4121
|
sessions: sessions.size,
|
|
4122
4122
|
tools: 91,
|
|
4123
|
-
version: '0.2.
|
|
4123
|
+
version: '0.2.10'
|
|
4124
4124
|
}));
|
|
4125
4125
|
|
|
4126
4126
|
} else {
|