@memnexus-ai/typescript-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 CHANGED
@@ -3291,6 +3291,14 @@ var MemoriesService = class extends BaseService {
3291
3291
  2. Organize: Group by conversation, status, timeline
3292
3292
  3. Synthesize: LLM generates formatted digest
3293
3293
 
3294
+ **Project scoping (optional).** Send `scope` as comma-separated
3295
+ `key:value` codeContext pairs (allowed keys: product, service, team,
3296
+ role; all must match) to restrict every gather phase to that project.
3297
+ When `scope` is set, memories with no `codeContext` are excluded unless
3298
+ `includeUnscoped: true`. An unknown key, or a `scope` with no valid
3299
+ pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
3300
+ Same semantics as `POST /api/memories/build-context`.
3301
+
3294
3302
  Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
3295
3303
  Returns 503 if the LLM provider is unavailable and 3+ memories are found.
3296
3304
 
@@ -7757,7 +7765,11 @@ var digestRequest = import_zod.z.object({
7757
7765
  /** Whether to include source memory IDs in the response */
7758
7766
  includeMemoryIds: import_zod.z.boolean().optional(),
7759
7767
  /** 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. */
7760
- verbatimRecent: import_zod.z.number().min(0).max(50).optional()
7768
+ verbatimRecent: import_zod.z.number().min(0).max(50).optional(),
7769
+ /** 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. */
7770
+ scope: import_zod.z.string().max(200).optional(),
7771
+ /** 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. */
7772
+ includeUnscoped: import_zod.z.boolean().optional()
7761
7773
  });
7762
7774
  var digestTimeRange = import_zod.z.object({
7763
7775
  /** Earliest memory timestamp in the digest sources */