@memnexus-ai/cli 1.7.237 → 1.7.239
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/memories.d.ts +8 -0
- package/dist/commands/memories.d.ts.map +1 -1
- package/dist/commands/memories.js +49 -19
- package/dist/commands/memories.js.map +1 -1
- package/dist/lib/errors.d.ts +78 -1
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +200 -4
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/retry.d.ts +1 -1
- package/dist/lib/retry.d.ts.map +1 -1
- package/dist/lib/retry.js +4 -0
- package/dist/lib/retry.js.map +1 -1
- package/package.json +2 -2
|
@@ -309,6 +309,14 @@ export declare function registerMemoryTimelineCommand(memories: Command): void;
|
|
|
309
309
|
* @param memories - Parent memories command
|
|
310
310
|
*/
|
|
311
311
|
export declare function registerDetectRelationshipsCommand(memories: Command): void;
|
|
312
|
+
/**
|
|
313
|
+
* CLI default for `--max-sources` on `digest`/`recall` and `status` (GH #5570, PR-B2 step 3).
|
|
314
|
+
* Lowered from 100 to 20: on dev, maxSources 100 returned 0 of 58 requests with HTTP 200
|
|
315
|
+
* (all 503), while 20 returned 49 of 50. This is a client-side default only; the server
|
|
316
|
+
* schema default (digest.schema.ts) stays 100, so SDK and direct API callers are unchanged.
|
|
317
|
+
* An explicit --max-sources still overrides it.
|
|
318
|
+
*/
|
|
319
|
+
export declare const DEFAULT_RECALL_MAX_SOURCES = "20";
|
|
312
320
|
/**
|
|
313
321
|
* Register digest command for AI-powered memory briefings
|
|
314
322
|
* @param memories - Parent memories command
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"memories.d.ts","sourceRoot":"","sources":["../../src/commands/memories.ts"],"names":[],"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D;AAqZD;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAkN1E;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CA0ErE;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAsE1E;AA0DD;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAoL7D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CA+G7D;AAgLD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CA0J5D;AAkPD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAkPnE"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.StdinTooLargeError = exports.BATCH_CREATE_ALLOWED_KEYS = exports.BATCH_CREATE_MAX_LINE_BYTES = exports.BATCH_CREATE_MAX_STDIN_BYTES = exports.BATCH_CREATE_MAX_RETRIES = exports.BATCH_CREATE_CONCURRENCY_MAX = exports.BATCH_CREATE_CONCURRENCY_MIN = exports.BATCH_CREATE_DEFAULT_CONCURRENCY = exports.sleep = exports.getRetryAfterMs = exports.isNameConflictError = exports.isQuotaError = exports.isServiceUnavailableError = exports.isRateLimitError = exports.BULK_DELETE_LIST_PAGE_SIZE = exports.BULK_DELETE_MAX_RETRIES = exports.BULK_DELETE_PAGE_PAUSE_MS = exports.BULK_DELETE_MAX_IDS = exports.BULK_DELETE_GUARD_WINDOW_MS = exports.BULK_DELETE_GUARD_THRESHOLD = void 0;
|
|
39
|
+
exports.DEFAULT_RECALL_MAX_SOURCES = exports.StdinTooLargeError = exports.BATCH_CREATE_ALLOWED_KEYS = exports.BATCH_CREATE_MAX_LINE_BYTES = exports.BATCH_CREATE_MAX_STDIN_BYTES = exports.BATCH_CREATE_MAX_RETRIES = exports.BATCH_CREATE_CONCURRENCY_MAX = exports.BATCH_CREATE_CONCURRENCY_MIN = exports.BATCH_CREATE_DEFAULT_CONCURRENCY = exports.sleep = exports.getRetryAfterMs = exports.isNameConflictError = exports.isQuotaError = exports.isServiceUnavailableError = exports.isRateLimitError = exports.BULK_DELETE_LIST_PAGE_SIZE = exports.BULK_DELETE_MAX_RETRIES = exports.BULK_DELETE_PAGE_PAUSE_MS = exports.BULK_DELETE_MAX_IDS = exports.BULK_DELETE_GUARD_WINDOW_MS = exports.BULK_DELETE_GUARD_THRESHOLD = void 0;
|
|
40
40
|
exports.getBulkDeleteGuardPath = getBulkDeleteGuardPath;
|
|
41
41
|
exports.readDeleteGuardTimestamps = readDeleteGuardTimestamps;
|
|
42
42
|
exports.recordDeletion = recordDeletion;
|
|
@@ -1913,21 +1913,41 @@ function registerMemoriesCommands(program) {
|
|
|
1913
1913
|
// may already have committed — e.g. Kong 504 after Neo4j commits)
|
|
1914
1914
|
// and MUST NOT be retried, or it silently creates a second identical
|
|
1915
1915
|
// version (memory-history corruption).
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1916
|
+
// #4901: this `await` was not wrapped, so a rejection from the
|
|
1917
|
+
// retry propagated out of `catch (createError)` and the original
|
|
1918
|
+
// 409 was lost with it. The user was shown only the second failure
|
|
1919
|
+
// — and when that failure was a 404, the CLI printed a bare
|
|
1920
|
+
// "Not Found: Resource does not exist", which says the memory does
|
|
1921
|
+
// not exist when in fact the name is taken (that is why we are on
|
|
1922
|
+
// the upsert path at all). Both facts belong in the message.
|
|
1923
|
+
try {
|
|
1924
|
+
response = await retryWrite(() => (0, api_client_1.getSdk)().memories.updateNamedMemory(memoryData.name, {
|
|
1925
|
+
content: memoryData.content,
|
|
1926
|
+
...(options.memoryType && { memoryType: options.memoryType }),
|
|
1927
|
+
...(memoryData.topics && { topics: memoryData.topics }),
|
|
1928
|
+
...(memoryData.context !== undefined && {
|
|
1929
|
+
context: memoryData.context,
|
|
1930
|
+
}),
|
|
1931
|
+
...(memoryData.codeContext && {
|
|
1932
|
+
codeContext: memoryData.codeContext,
|
|
1933
|
+
}),
|
|
1934
|
+
...(options.conversationId &&
|
|
1935
|
+
options.conversationId.toUpperCase() !== 'NEW' && {
|
|
1936
|
+
conversationId: options.conversationId,
|
|
1937
|
+
}),
|
|
1938
|
+
}));
|
|
1939
|
+
}
|
|
1940
|
+
catch (upsertError) {
|
|
1941
|
+
// A quota rejection on the retry keeps its own dedicated
|
|
1942
|
+
// handling (capacity advice, exit 5). Wrapping it would replace
|
|
1943
|
+
// an accurate, actionable message with a generic one.
|
|
1944
|
+
if ((0, retry_1.isQuotaError)(upsertError)) {
|
|
1945
|
+
spinner.fail('Memory limit reached');
|
|
1946
|
+
throw upsertError;
|
|
1947
|
+
}
|
|
1948
|
+
spinner.fail('Memory creation failed');
|
|
1949
|
+
throw (0, errors_1.namedUpsertFailedError)(memoryData.name, upsertError);
|
|
1950
|
+
}
|
|
1931
1951
|
upserted = true;
|
|
1932
1952
|
}
|
|
1933
1953
|
else {
|
|
@@ -2124,7 +2144,9 @@ function registerMemoriesCommands(program) {
|
|
|
2124
2144
|
(0, formatters_1.printOutput)(memory, options.format);
|
|
2125
2145
|
}
|
|
2126
2146
|
catch (error) {
|
|
2127
|
-
|
|
2147
|
+
// The ID is passed so a version-chain refusal (#4740) can print
|
|
2148
|
+
// commands with this memory's ID in them; other errors ignore it.
|
|
2149
|
+
(0, errors_1.handleError)(error, { memoryId: id });
|
|
2128
2150
|
}
|
|
2129
2151
|
});
|
|
2130
2152
|
/**
|
|
@@ -3512,6 +3534,14 @@ function formatEffectiveState(state) {
|
|
|
3512
3534
|
return state || 'current';
|
|
3513
3535
|
}
|
|
3514
3536
|
}
|
|
3537
|
+
/**
|
|
3538
|
+
* CLI default for `--max-sources` on `digest`/`recall` and `status` (GH #5570, PR-B2 step 3).
|
|
3539
|
+
* Lowered from 100 to 20: on dev, maxSources 100 returned 0 of 58 requests with HTTP 200
|
|
3540
|
+
* (all 503), while 20 returned 49 of 50. This is a client-side default only; the server
|
|
3541
|
+
* schema default (digest.schema.ts) stays 100, so SDK and direct API callers are unchanged.
|
|
3542
|
+
* An explicit --max-sources still overrides it.
|
|
3543
|
+
*/
|
|
3544
|
+
exports.DEFAULT_RECALL_MAX_SOURCES = '20';
|
|
3515
3545
|
/**
|
|
3516
3546
|
* Register digest command for AI-powered memory briefings
|
|
3517
3547
|
* @param memories - Parent memories command
|
|
@@ -3526,7 +3556,7 @@ function registerDigestCommand(memories) {
|
|
|
3526
3556
|
.option('--recent <duration>', 'Time window (e.g., 24h, 7d, 2w)')
|
|
3527
3557
|
.option('--topics <topics>', 'Filter by topics (comma-separated)')
|
|
3528
3558
|
.option('--digest-format <format>', 'Digest format (structured|narrative|timeline|status-report)', 'structured')
|
|
3529
|
-
.option('--max-sources <number>', 'Maximum source memories to consider',
|
|
3559
|
+
.option('--max-sources <number>', 'Maximum source memories to consider', exports.DEFAULT_RECALL_MAX_SOURCES)
|
|
3530
3560
|
.option('--show-sources', 'Display source memory IDs')
|
|
3531
3561
|
.option('--format <format>', 'Output format (json|yaml|llm)')
|
|
3532
3562
|
.action(async (options) => {
|
|
@@ -3664,7 +3694,7 @@ function registerStatusCommand(memories) {
|
|
|
3664
3694
|
.option('--query <text>', 'Topic or project to get status for (required)')
|
|
3665
3695
|
.option('--recent <duration>', 'Time window (e.g., 24h, 7d, 2w)')
|
|
3666
3696
|
.option('--topics <topics>', 'Filter by topics (comma-separated)')
|
|
3667
|
-
.option('--max-sources <number>', 'Maximum source memories to consider',
|
|
3697
|
+
.option('--max-sources <number>', 'Maximum source memories to consider', exports.DEFAULT_RECALL_MAX_SOURCES)
|
|
3668
3698
|
.option('--show-sources', 'Display source memory IDs')
|
|
3669
3699
|
.option('--format <format>', 'Output format (json|yaml|llm)')
|
|
3670
3700
|
.action(async (options) => {
|