@memnexus-ai/sdk 1.83.1 → 1.84.1
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/index.cjs +8 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1347,6 +1347,14 @@ var Memories = class {
|
|
|
1347
1347
|
* 2. Organize: Group by conversation, status, timeline
|
|
1348
1348
|
* 3. Synthesize: LLM generates formatted digest
|
|
1349
1349
|
*
|
|
1350
|
+
* **Project scoping (optional).** Send `scope` as comma-separated
|
|
1351
|
+
* `key:value` codeContext pairs (allowed keys: product, service, team,
|
|
1352
|
+
* role; all must match) to restrict every gather phase to that project.
|
|
1353
|
+
* When `scope` is set, memories with no `codeContext` are excluded unless
|
|
1354
|
+
* `includeUnscoped: true`. An unknown key, or a `scope` with no valid
|
|
1355
|
+
* pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
|
|
1356
|
+
* Same semantics as `POST /api/memories/build-context`.
|
|
1357
|
+
*
|
|
1350
1358
|
* Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
|
|
1351
1359
|
* Returns 503 if the LLM provider is unavailable and 3+ memories are found.
|
|
1352
1360
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1359,6 +1359,10 @@ interface DigestRequest {
|
|
|
1359
1359
|
includeMemoryIds?: boolean;
|
|
1360
1360
|
/** Number of most-recent matching memories to return VERBATIM (full stored content, untouched) in `recentMemories`, instead of synthesizing them into `digest`. The remaining (older) memories are still synthesized into `digest` as usual. Recency is determined by event time when present, else system timestamp, else creation time. Default 0 = current behavior (synthesize all memories, `recentMemories` empty). When the total matched count is <= verbatimRecent, all matches are returned in `recentMemories` and `digest` is an empty string (no older memories to synthesize). Range 0-50. */
|
|
1361
1361
|
verbatimRecent?: number;
|
|
1362
|
+
/** Comma-separated codeContext key:value pairs to filter by. Allowed keys: product, service, team, role. All pairs must match (AND), so each extra key can only shrink the result set — a key your memories do not consistently carry will silently empty the digest. Send the fewest keys that identify the project; product:<project> alone is the recommended default. An unknown key, or a string that yields no valid key:value pair at all, returns 400 rather than an unscoped digest. Applied to every gather phase (hybrid search, conversation, topic and entity expansion). Omit for today's unscoped behavior. */
|
|
1363
|
+
scope?: string;
|
|
1364
|
+
/** When scope is set, whether to also include memories that carry no codeContext at all. Defaults to false when scope is set — a scoped request returns scoped content only. Send true to also include memories that carry no codeContext. Inert when scope is absent. */
|
|
1365
|
+
includeUnscoped?: boolean;
|
|
1362
1366
|
}
|
|
1363
1367
|
/** Time range of the source memories (null if no sources found) */
|
|
1364
1368
|
interface DigestTimeRange {
|
|
@@ -2836,6 +2840,14 @@ declare class Memories {
|
|
|
2836
2840
|
* 2. Organize: Group by conversation, status, timeline
|
|
2837
2841
|
* 3. Synthesize: LLM generates formatted digest
|
|
2838
2842
|
*
|
|
2843
|
+
* **Project scoping (optional).** Send `scope` as comma-separated
|
|
2844
|
+
* `key:value` codeContext pairs (allowed keys: product, service, team,
|
|
2845
|
+
* role; all must match) to restrict every gather phase to that project.
|
|
2846
|
+
* When `scope` is set, memories with no `codeContext` are excluded unless
|
|
2847
|
+
* `includeUnscoped: true`. An unknown key, or a `scope` with no valid
|
|
2848
|
+
* pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
|
|
2849
|
+
* Same semantics as `POST /api/memories/build-context`.
|
|
2850
|
+
*
|
|
2839
2851
|
* Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
|
|
2840
2852
|
* Returns 503 if the LLM provider is unavailable and 3+ memories are found.
|
|
2841
2853
|
*
|
|
@@ -2850,6 +2862,8 @@ declare class Memories {
|
|
|
2850
2862
|
maxSources?: number;
|
|
2851
2863
|
includeMemoryIds?: boolean;
|
|
2852
2864
|
verbatimRecent?: number;
|
|
2865
|
+
scope?: string;
|
|
2866
|
+
includeUnscoped?: boolean;
|
|
2853
2867
|
}): Promise<HttpResponse<{
|
|
2854
2868
|
digest: string;
|
|
2855
2869
|
metadata: DigestMetadata;
|
|
@@ -2890,6 +2904,8 @@ declare class Memories {
|
|
|
2890
2904
|
maxSources?: number;
|
|
2891
2905
|
includeMemoryIds?: boolean;
|
|
2892
2906
|
verbatimRecent?: number;
|
|
2907
|
+
scope?: string;
|
|
2908
|
+
includeUnscoped?: boolean;
|
|
2893
2909
|
}): Promise<HttpResponse<unknown>>;
|
|
2894
2910
|
/**
|
|
2895
2911
|
* Build a context briefing
|
package/dist/index.d.ts
CHANGED
|
@@ -1359,6 +1359,10 @@ interface DigestRequest {
|
|
|
1359
1359
|
includeMemoryIds?: boolean;
|
|
1360
1360
|
/** Number of most-recent matching memories to return VERBATIM (full stored content, untouched) in `recentMemories`, instead of synthesizing them into `digest`. The remaining (older) memories are still synthesized into `digest` as usual. Recency is determined by event time when present, else system timestamp, else creation time. Default 0 = current behavior (synthesize all memories, `recentMemories` empty). When the total matched count is <= verbatimRecent, all matches are returned in `recentMemories` and `digest` is an empty string (no older memories to synthesize). Range 0-50. */
|
|
1361
1361
|
verbatimRecent?: number;
|
|
1362
|
+
/** Comma-separated codeContext key:value pairs to filter by. Allowed keys: product, service, team, role. All pairs must match (AND), so each extra key can only shrink the result set — a key your memories do not consistently carry will silently empty the digest. Send the fewest keys that identify the project; product:<project> alone is the recommended default. An unknown key, or a string that yields no valid key:value pair at all, returns 400 rather than an unscoped digest. Applied to every gather phase (hybrid search, conversation, topic and entity expansion). Omit for today's unscoped behavior. */
|
|
1363
|
+
scope?: string;
|
|
1364
|
+
/** When scope is set, whether to also include memories that carry no codeContext at all. Defaults to false when scope is set — a scoped request returns scoped content only. Send true to also include memories that carry no codeContext. Inert when scope is absent. */
|
|
1365
|
+
includeUnscoped?: boolean;
|
|
1362
1366
|
}
|
|
1363
1367
|
/** Time range of the source memories (null if no sources found) */
|
|
1364
1368
|
interface DigestTimeRange {
|
|
@@ -2836,6 +2840,14 @@ declare class Memories {
|
|
|
2836
2840
|
* 2. Organize: Group by conversation, status, timeline
|
|
2837
2841
|
* 3. Synthesize: LLM generates formatted digest
|
|
2838
2842
|
*
|
|
2843
|
+
* **Project scoping (optional).** Send `scope` as comma-separated
|
|
2844
|
+
* `key:value` codeContext pairs (allowed keys: product, service, team,
|
|
2845
|
+
* role; all must match) to restrict every gather phase to that project.
|
|
2846
|
+
* When `scope` is set, memories with no `codeContext` are excluded unless
|
|
2847
|
+
* `includeUnscoped: true`. An unknown key, or a `scope` with no valid
|
|
2848
|
+
* pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
|
|
2849
|
+
* Same semantics as `POST /api/memories/build-context`.
|
|
2850
|
+
*
|
|
2839
2851
|
* Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
|
|
2840
2852
|
* Returns 503 if the LLM provider is unavailable and 3+ memories are found.
|
|
2841
2853
|
*
|
|
@@ -2850,6 +2862,8 @@ declare class Memories {
|
|
|
2850
2862
|
maxSources?: number;
|
|
2851
2863
|
includeMemoryIds?: boolean;
|
|
2852
2864
|
verbatimRecent?: number;
|
|
2865
|
+
scope?: string;
|
|
2866
|
+
includeUnscoped?: boolean;
|
|
2853
2867
|
}): Promise<HttpResponse<{
|
|
2854
2868
|
digest: string;
|
|
2855
2869
|
metadata: DigestMetadata;
|
|
@@ -2890,6 +2904,8 @@ declare class Memories {
|
|
|
2890
2904
|
maxSources?: number;
|
|
2891
2905
|
includeMemoryIds?: boolean;
|
|
2892
2906
|
verbatimRecent?: number;
|
|
2907
|
+
scope?: string;
|
|
2908
|
+
includeUnscoped?: boolean;
|
|
2893
2909
|
}): Promise<HttpResponse<unknown>>;
|
|
2894
2910
|
/**
|
|
2895
2911
|
* Build a context briefing
|
package/dist/index.js
CHANGED
|
@@ -1320,6 +1320,14 @@ var Memories = class {
|
|
|
1320
1320
|
* 2. Organize: Group by conversation, status, timeline
|
|
1321
1321
|
* 3. Synthesize: LLM generates formatted digest
|
|
1322
1322
|
*
|
|
1323
|
+
* **Project scoping (optional).** Send `scope` as comma-separated
|
|
1324
|
+
* `key:value` codeContext pairs (allowed keys: product, service, team,
|
|
1325
|
+
* role; all must match) to restrict every gather phase to that project.
|
|
1326
|
+
* When `scope` is set, memories with no `codeContext` are excluded unless
|
|
1327
|
+
* `includeUnscoped: true`. An unknown key, or a `scope` with no valid
|
|
1328
|
+
* pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
|
|
1329
|
+
* Same semantics as `POST /api/memories/build-context`.
|
|
1330
|
+
*
|
|
1323
1331
|
* Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
|
|
1324
1332
|
* Returns 503 if the LLM provider is unavailable and 3+ memories are found.
|
|
1325
1333
|
*
|