@memnexus-ai/cli 1.7.243 → 1.7.245
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/dist/commands/mcp.d.ts +33 -0
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +93 -7
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/memories.d.ts.map +1 -1
- package/dist/commands/memories.js +170 -39
- package/dist/commands/memories.js.map +1 -1
- package/dist/lib/errors.d.ts +4 -4
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +6 -5
- package/dist/lib/errors.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memories.d.ts","sourceRoot":"","sources":["../../src/commands/memories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EAGf,KAAK,EAIN,MAAM,cAAc,CAAC;AA0DtB,qEAAqE;AACrE,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAC7C,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAElD,mDAAmD;AACnD,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAYlF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CASnE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CA0B5E;AA8CD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,S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27 @@ function registerMemoriesCommands(program) {
|
|
|
1393
1393
|
.option('--limit <number>', 'Results per page', String(config_1.config.getEffectiveLimit()))
|
|
1394
1394
|
.option('--last <number>', 'Get N most recent memories (shortcut for --limit N --sort createdAt:desc)')
|
|
1395
1395
|
.option('--sort <field>', 'Sort by field (createdAt:asc, createdAt:desc, eventTime:asc, eventTime:desc)')
|
|
1396
|
-
.
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
.option('--
|
|
1396
|
+
// Time filters: core-api filters both list modes on m.timestamp, the time
|
|
1397
|
+
// the memory (for a named memory, its current version) was stored, not on
|
|
1398
|
+
// eventTime (memory.repository.ts listMemories and listNamedMemories).
|
|
1399
|
+
.option('--named', 'List only named memories. Paged, and a full walk is not guaranteed (the server sort has ' +
|
|
1400
|
+
'no tiebreaker, #5904): memories that share a sort time can repeat or be missed between ' +
|
|
1401
|
+
'pages. --page counts from 0; at most 500 per page via --limit. Walk with --page 0, 1, 2 ' +
|
|
1402
|
+
'... until the footer shows no "Next". With --format json or yaml, stdout holds one page ' +
|
|
1403
|
+
'and a notice on stderr gives the total. --topics, --topic and --exclude-topics exit with ' +
|
|
1404
|
+
'a validation error when combined with --named')
|
|
1405
|
+
.option('--recent <duration>', 'Filter: stored in the last duration, by ingestion time; with --named, when the current ' +
|
|
1406
|
+
'version was stored (e.g., 7d, 2w, 1h, 30m). On list, --recent overrides --after')
|
|
1407
|
+
.option('--after <date>', 'Filter: stored after this date, by ingestion time; with --named, when the current version ' +
|
|
1408
|
+
'was stored (ISO 8601)')
|
|
1409
|
+
.option('--before <date>', 'Filter: stored before this date, by ingestion time; with --named, when the current version ' +
|
|
1410
|
+
'was stored (ISO 8601)')
|
|
1400
1411
|
.option('--topics <topics>', 'Filter: comma-separated list of topics (matches ANY)')
|
|
1401
1412
|
.option('--topic <topics>', 'Alias for --topics')
|
|
1402
1413
|
.option('--exclude-topics <topics>', 'Filter: exclude memories with these topics (comma-separated)')
|
|
1403
1414
|
.option('--format <format>', 'Output format (json|table|yaml)')
|
|
1404
1415
|
.action(async (options) => {
|
|
1405
1416
|
try {
|
|
1406
|
-
// Named memories filter — fetch and filter client-side
|
|
1407
|
-
if (options.named) {
|
|
1408
|
-
const spinner = (0, spinner_1.createSpinner)('Fetching named memories...', options.format).start();
|
|
1409
|
-
const namedResponse = await retryRead(() => (0, api_client_1.getSdk)().memories.listMemories({ limit: 100, offset: 0 }));
|
|
1410
|
-
const namedMemories = (namedResponse.data?.data || []).filter((m) => m.name);
|
|
1411
|
-
spinner.succeed(`Found ${namedMemories.length} named memories`);
|
|
1412
|
-
if (options.format === 'table' || !options.format) {
|
|
1413
|
-
const tableData = namedMemories.map((m) => ({
|
|
1414
|
-
name: m.name,
|
|
1415
|
-
version: `v${m.version || 1}`,
|
|
1416
|
-
id: m.id,
|
|
1417
|
-
content: m.content?.substring(0, 40) + (m.content?.length > 40 ? '...' : ''),
|
|
1418
|
-
createdAt: (0, date_utils_1.formatApiDate)(m.createdAt),
|
|
1419
|
-
}));
|
|
1420
|
-
(0, formatters_1.printOutput)(tableData, options.format, {
|
|
1421
|
-
columns: ['name', 'version', 'id', 'content', 'createdAt'],
|
|
1422
|
-
columnWidths: { name: 24, version: 8, id: 38, content: 40, createdAt: 12 },
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
else {
|
|
1426
|
-
(0, formatters_1.printOutput)(namedMemories, options.format);
|
|
1427
|
-
}
|
|
1428
|
-
return;
|
|
1429
|
-
}
|
|
1430
1417
|
// Handle --last shortcut: sets limit and sort
|
|
1431
1418
|
let sortField = 'createdAt';
|
|
1432
1419
|
let sortOrder = 'desc';
|
|
@@ -1457,8 +1444,15 @@ function registerMemoriesCommands(program) {
|
|
|
1457
1444
|
sortField = field;
|
|
1458
1445
|
sortOrder = order;
|
|
1459
1446
|
}
|
|
1447
|
+
// The server's named list mode (?named=true) honours limit/offset,
|
|
1448
|
+
// sortBy/order and from/to, but not topics/excludeTopics
|
|
1449
|
+
// (core-api memories.routes.ts named list branch, #2924). Refuse the
|
|
1450
|
+
// combination rather than drop the topic filter without a message.
|
|
1451
|
+
if (options.named && (options.topics || options.topic || options.excludeTopics)) {
|
|
1452
|
+
throw (0, errors_1.validationError)('--topics/--topic/--exclude-topics cannot be combined with --named: the named list does not filter by topic');
|
|
1453
|
+
}
|
|
1460
1454
|
const page = options.last ? 0 : parseInt(options.page, 10);
|
|
1461
|
-
const spinner = (0, spinner_1.createSpinner)('Fetching memories...', options.format).start();
|
|
1455
|
+
const spinner = (0, spinner_1.createSpinner)(options.named ? 'Fetching named memories...' : 'Fetching memories...', options.format).start();
|
|
1462
1456
|
// Use server-side sorting when sort is specified
|
|
1463
1457
|
const fetchOffset = page * limit;
|
|
1464
1458
|
const listParams = {
|
|
@@ -1501,6 +1495,123 @@ function registerMemoriesCommands(program) {
|
|
|
1501
1495
|
.filter((t) => t.length > 0)
|
|
1502
1496
|
.join(',');
|
|
1503
1497
|
}
|
|
1498
|
+
// Named memories (#5887): ask the server for named memories with
|
|
1499
|
+
// ?named=true so every named memory is reachable and --limit/--page/
|
|
1500
|
+
// --last/--sort/--recent/--after/--before apply. The previous code
|
|
1501
|
+
// fetched the newest 100 memories and filtered client-side, so older
|
|
1502
|
+
// named memories never appeared. The pinned SDK (1.55.1) listMemories
|
|
1503
|
+
// does not forward `named`, so this is a raw GET, as MCP
|
|
1504
|
+
// search_memories does (#2907, #2922, #2941) and as `memories stats`
|
|
1505
|
+
// does here.
|
|
1506
|
+
if (options.named) {
|
|
1507
|
+
const namedQuery = new URLSearchParams();
|
|
1508
|
+
namedQuery.set('named', 'true');
|
|
1509
|
+
namedQuery.set('limit', String(listParams.limit));
|
|
1510
|
+
namedQuery.set('offset', String(listParams.offset));
|
|
1511
|
+
if (listParams.sortBy)
|
|
1512
|
+
namedQuery.set('sortBy', listParams.sortBy);
|
|
1513
|
+
if (listParams.order)
|
|
1514
|
+
namedQuery.set('order', listParams.order);
|
|
1515
|
+
if (listParams.from)
|
|
1516
|
+
namedQuery.set('from', listParams.from);
|
|
1517
|
+
if (listParams.to)
|
|
1518
|
+
namedQuery.set('to', listParams.to);
|
|
1519
|
+
const apiUrl = config_1.config.getApiUrl();
|
|
1520
|
+
const apiKey = config_1.config.getApiKey();
|
|
1521
|
+
// Same check and login hint as sdkConfigFromCli (lib/api-client.ts),
|
|
1522
|
+
// which this raw request bypasses. Without it the request would send
|
|
1523
|
+
// `Bearer undefined`.
|
|
1524
|
+
if (!apiKey) {
|
|
1525
|
+
spinner.stop();
|
|
1526
|
+
console.error(chalk_1.default.red('Error: No API key configured.'));
|
|
1527
|
+
console.log(chalk_1.default.yellow('Run: mx auth login --api-key <your-key>'));
|
|
1528
|
+
process.exit(1);
|
|
1529
|
+
}
|
|
1530
|
+
const axios = (await Promise.resolve().then(() => __importStar(require('axios')))).default;
|
|
1531
|
+
let namedResponse;
|
|
1532
|
+
try {
|
|
1533
|
+
namedResponse = await retryRead(() => axios.get(`${apiUrl}/api/memories?${namedQuery.toString()}`, {
|
|
1534
|
+
headers: {
|
|
1535
|
+
Authorization: `Bearer ${apiKey}`,
|
|
1536
|
+
'Content-Type': 'application/json',
|
|
1537
|
+
},
|
|
1538
|
+
// Matches the SDK client's timeout (lib/api-client.ts getSdk).
|
|
1539
|
+
timeout: 30000,
|
|
1540
|
+
}));
|
|
1541
|
+
}
|
|
1542
|
+
catch (namedError) {
|
|
1543
|
+
// axios errors carry a numeric `status`, so handleError treats them
|
|
1544
|
+
// as SDK errors and reads the body from `.data`, which axios keeps
|
|
1545
|
+
// on `.response.data`. Copy it across so the server's reason
|
|
1546
|
+
// (e.g. "limit must be a number between 1 and 500") is printed.
|
|
1547
|
+
// handleError sanitises it (sanitizeServerText).
|
|
1548
|
+
if (namedError && namedError.data === undefined && namedError.response?.data) {
|
|
1549
|
+
namedError.data = namedError.response.data;
|
|
1550
|
+
}
|
|
1551
|
+
throw namedError;
|
|
1552
|
+
}
|
|
1553
|
+
const namedResult = namedResponse.data;
|
|
1554
|
+
const namedMemories = Array.isArray(namedResult?.data) ? namedResult.data : [];
|
|
1555
|
+
const namedTotal = namedResult?.pagination?.count;
|
|
1556
|
+
spinner.succeed(typeof namedTotal === 'number'
|
|
1557
|
+
? `Found ${namedTotal} named memories`
|
|
1558
|
+
: `Found ${namedMemories.length} named memories`);
|
|
1559
|
+
// One paging line for the table footer and the json/yaml stderr
|
|
1560
|
+
// notice. --page is 0-based, so the line names the --page value the
|
|
1561
|
+
// user passed and the value to pass next, not a 1-based page number.
|
|
1562
|
+
const hasTotal = typeof namedTotal === 'number';
|
|
1563
|
+
let pagingLine = null;
|
|
1564
|
+
let hasNextPage = false;
|
|
1565
|
+
if (namedMemories.length > 0) {
|
|
1566
|
+
const last = fetchOffset + namedMemories.length;
|
|
1567
|
+
hasNextPage = hasTotal && last < namedTotal;
|
|
1568
|
+
// No total from the server and a full page: there may be more.
|
|
1569
|
+
const mayHaveMore = !hasTotal && namedMemories.length === limit;
|
|
1570
|
+
pagingLine =
|
|
1571
|
+
`Showing ${fetchOffset + 1}-${last}${hasTotal ? ` of ${namedTotal}` : ''} (--page ${page})` +
|
|
1572
|
+
(hasNextPage ? `. Next: --page ${page + 1}` : '') +
|
|
1573
|
+
(mayHaveMore ? `. More may exist: try --page ${page + 1}` : '');
|
|
1574
|
+
}
|
|
1575
|
+
else if (hasTotal && namedTotal > 0) {
|
|
1576
|
+
const lastPage = Math.max(Math.ceil(namedTotal / limit) - 1, 0);
|
|
1577
|
+
pagingLine =
|
|
1578
|
+
`No more pages: --page ${page} is past the end of ${namedTotal} named memories. ` +
|
|
1579
|
+
`Last page: --page ${lastPage}`;
|
|
1580
|
+
}
|
|
1581
|
+
if (options.format === 'table' || !options.format) {
|
|
1582
|
+
const tableData = namedMemories.map((m) => ({
|
|
1583
|
+
name: m.name,
|
|
1584
|
+
version: `v${m.version || 1}`,
|
|
1585
|
+
id: m.id,
|
|
1586
|
+
content: m.content?.substring(0, 40) + (m.content?.length > 40 ? '...' : ''),
|
|
1587
|
+
createdAt: (0, date_utils_1.formatApiDate)(m.createdAt),
|
|
1588
|
+
}));
|
|
1589
|
+
(0, formatters_1.printOutput)(tableData, options.format, {
|
|
1590
|
+
columns: ['name', 'version', 'id', 'content', 'createdAt'],
|
|
1591
|
+
columnWidths: { name: 24, version: 8, id: 38, content: 40, createdAt: 12 },
|
|
1592
|
+
});
|
|
1593
|
+
if (pagingLine) {
|
|
1594
|
+
console.log(chalk_1.default.gray(`\n${pagingLine}`));
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
else {
|
|
1598
|
+
// Same shape as before #5887 (an array of named memories), so
|
|
1599
|
+
// scripts that read `--named --format json` keep working.
|
|
1600
|
+
(0, formatters_1.printOutput)(namedMemories, options.format);
|
|
1601
|
+
// stdout stays a clean array; the paging notice goes to stderr so a
|
|
1602
|
+
// script is not left thinking one page is the whole list.
|
|
1603
|
+
const showNotice = hasTotal
|
|
1604
|
+
? namedTotal > namedMemories.length
|
|
1605
|
+
: namedMemories.length > 0 && namedMemories.length === limit;
|
|
1606
|
+
if (pagingLine && showNotice) {
|
|
1607
|
+
// The --limit tail only helps when there is a next page to fetch.
|
|
1608
|
+
console.error(hasNextPage
|
|
1609
|
+
? `${pagingLine}. Use --limit <n> (up to 500) for larger pages.`
|
|
1610
|
+
: pagingLine);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
return;
|
|
1614
|
+
}
|
|
1504
1615
|
const response = await retryRead(() => (0, api_client_1.getSdk)().memories.listMemories(listParams));
|
|
1505
1616
|
const result = response.data;
|
|
1506
1617
|
spinner.succeed(`Found ${result?.data?.length || 0} memories`);
|
|
@@ -2048,8 +2159,9 @@ function registerMemoriesCommands(program) {
|
|
|
2048
2159
|
memories
|
|
2049
2160
|
.command('update [id]')
|
|
2050
2161
|
.description('Update an existing memory (by ID or --name)')
|
|
2051
|
-
.option('--name <name>', 'Update a named memory
|
|
2052
|
-
'
|
|
2162
|
+
.option('--name <name>', 'Update a named memory. With --content or --content-file, creates a new version ' +
|
|
2163
|
+
'(SUPERSEDES chain). With only --topics, --memory-type, --context or --code-context, ' +
|
|
2164
|
+
'updates the current version in place (GH #5614).')
|
|
2053
2165
|
.option('--assign-name <name>', 'Assign a name to an existing memory (kebab-case, 2-64 chars)')
|
|
2054
2166
|
.option('--rename <newName>', 'Rename a named memory (use with --name or an ID that has a name)')
|
|
2055
2167
|
.option('--content <text>', 'Updated content')
|
|
@@ -2417,11 +2529,19 @@ function registerMemoriesCommands(program) {
|
|
|
2417
2529
|
.option('--threshold <number>', 'Minimum score threshold for semantic search (0-1)', '0.5')
|
|
2418
2530
|
.option('--vector-weight <number>', 'Weight for vector search in hybrid mode (0-1)', '0.7')
|
|
2419
2531
|
.option('--fulltext-weight <number>', 'Weight for fulltext search in hybrid mode (0-1)', '0.3')
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
.option('--
|
|
2532
|
+
// Time axes on search: --recent/--from/--to filter ingestion time (when
|
|
2533
|
+
// the memory was stored); --event-from/--after/--event-to/--before filter
|
|
2534
|
+
// event time (when the described event happened). Note `list` uses
|
|
2535
|
+
// --after/--before for ingestion time; on search they are event time.
|
|
2536
|
+
.option('--event-from <datetime>', 'Filter: event time start, when the described event happened (ISO 8601)')
|
|
2537
|
+
.option('--after <datetime>', 'Alias for --event-from: event time start (ISO 8601). On search this is event time, ' +
|
|
2538
|
+
'not stored time; combines with --recent')
|
|
2539
|
+
.option('--event-to <datetime>', 'Filter: event time end, when the described event happened (ISO 8601)')
|
|
2540
|
+
.option('--before <datetime>', 'Alias for --event-to: event time end (ISO 8601). On search this is event time, not stored time')
|
|
2541
|
+
.option('--recent <duration>', 'Filter: memories stored in the last duration, by ingestion time (e.g., 7d, 2w, 1h, 30m). ' +
|
|
2542
|
+
'On search, --recent overrides --from and combines with --after/--event-from')
|
|
2543
|
+
.option('--from <datetime>', 'Filter: ingestion time start, when the memory was stored (ISO 8601)')
|
|
2544
|
+
.option('--to <datetime>', 'Filter: ingestion time end, when the memory was stored (ISO 8601)')
|
|
2425
2545
|
.option('--topics <topics>', 'Filter: comma-separated list of topics (matches ANY)')
|
|
2426
2546
|
.option('--topic <topics>', 'Alias for --topics')
|
|
2427
2547
|
.option('--exclude-topics <topics>', 'Filter: exclude memories with these topics (comma-separated)')
|
|
@@ -2520,11 +2640,22 @@ function registerMemoriesCommands(program) {
|
|
|
2520
2640
|
if (options.fulltextWeight) {
|
|
2521
2641
|
searchRequest.fulltextWeight = parseFloat(options.fulltextWeight);
|
|
2522
2642
|
}
|
|
2523
|
-
//
|
|
2643
|
+
// Ingestion time (when the memory was stored): --recent, --from, --to.
|
|
2644
|
+
// --recent takes precedence over --from, matching MCP search_memories
|
|
2645
|
+
// recent/from/to (#5888, product ruling 2026-11-20: `recent` filters
|
|
2646
|
+
// ingestion time on both surfaces).
|
|
2524
2647
|
if (recentTimestamp) {
|
|
2525
|
-
searchRequest.
|
|
2648
|
+
searchRequest.ingestionTimeFrom = recentTimestamp;
|
|
2649
|
+
}
|
|
2650
|
+
else if (options.from) {
|
|
2651
|
+
searchRequest.ingestionTimeFrom = options.from;
|
|
2652
|
+
}
|
|
2653
|
+
if (options.to) {
|
|
2654
|
+
searchRequest.ingestionTimeTo = options.to;
|
|
2526
2655
|
}
|
|
2527
|
-
|
|
2656
|
+
// Event time (when the described event happened): --event-from/--after,
|
|
2657
|
+
// --event-to/--before. Independent of the ingestion-time filters above.
|
|
2658
|
+
if (options.eventFrom || options.after) {
|
|
2528
2659
|
searchRequest.eventTimeFrom = options.eventFrom || options.after;
|
|
2529
2660
|
}
|
|
2530
2661
|
if (options.eventTo || options.before) {
|