@memnexus-ai/typescript-sdk 1.83.1 → 1.84.0

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.d.cts CHANGED
@@ -7919,6 +7919,10 @@ declare const digestRequest: z.ZodObject<{
7919
7919
  includeMemoryIds: z.ZodOptional<z.ZodBoolean>;
7920
7920
  /** 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. */
7921
7921
  verbatimRecent: z.ZodOptional<z.ZodNumber>;
7922
+ /** 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. */
7923
+ scope: z.ZodOptional<z.ZodString>;
7924
+ /** 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. */
7925
+ includeUnscoped: z.ZodOptional<z.ZodBoolean>;
7922
7926
  }, "strip", z.ZodTypeAny, {
7923
7927
  query: string;
7924
7928
  topics?: string[] | undefined;
@@ -7928,6 +7932,8 @@ declare const digestRequest: z.ZodObject<{
7928
7932
  maxSources?: number | undefined;
7929
7933
  includeMemoryIds?: boolean | undefined;
7930
7934
  verbatimRecent?: number | undefined;
7935
+ scope?: string | undefined;
7936
+ includeUnscoped?: boolean | undefined;
7931
7937
  }, {
7932
7938
  query: string;
7933
7939
  topics?: string[] | undefined;
@@ -7937,6 +7943,8 @@ declare const digestRequest: z.ZodObject<{
7937
7943
  maxSources?: number | undefined;
7938
7944
  includeMemoryIds?: boolean | undefined;
7939
7945
  verbatimRecent?: number | undefined;
7946
+ scope?: string | undefined;
7947
+ includeUnscoped?: boolean | undefined;
7940
7948
  }>;
7941
7949
  /**
7942
7950
  * Time range of the source memories (null if no sources found)
@@ -9070,16 +9078,16 @@ declare const buildContextRequest: z.ZodObject<{
9070
9078
  includeUnscoped: z.ZodOptional<z.ZodBoolean>;
9071
9079
  }, "strip", z.ZodTypeAny, {
9072
9080
  context: string;
9073
- files?: string[] | undefined;
9074
- recentHours?: number | undefined;
9075
9081
  scope?: string | undefined;
9076
9082
  includeUnscoped?: boolean | undefined;
9077
- }, {
9078
- context: string;
9079
9083
  files?: string[] | undefined;
9080
9084
  recentHours?: number | undefined;
9085
+ }, {
9086
+ context: string;
9081
9087
  scope?: string | undefined;
9082
9088
  includeUnscoped?: boolean | undefined;
9089
+ files?: string[] | undefined;
9090
+ recentHours?: number | undefined;
9083
9091
  }>;
9084
9092
  /**
9085
9093
  * Most relevant active conversation, or null if none found
@@ -10900,6 +10908,14 @@ declare class MemoriesService extends BaseService {
10900
10908
  2. Organize: Group by conversation, status, timeline
10901
10909
  3. Synthesize: LLM generates formatted digest
10902
10910
 
10911
+ **Project scoping (optional).** Send `scope` as comma-separated
10912
+ `key:value` codeContext pairs (allowed keys: product, service, team,
10913
+ role; all must match) to restrict every gather phase to that project.
10914
+ When `scope` is set, memories with no `codeContext` are excluded unless
10915
+ `includeUnscoped: true`. An unknown key, or a `scope` with no valid
10916
+ pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
10917
+ Same semantics as `POST /api/memories/build-context`.
10918
+
10903
10919
  Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
10904
10920
  Returns 503 if the LLM provider is unavailable and 3+ memories are found.
10905
10921
 
@@ -10914,6 +10930,8 @@ declare class MemoriesService extends BaseService {
10914
10930
  maxSources?: number;
10915
10931
  includeMemoryIds?: boolean;
10916
10932
  verbatimRecent?: number;
10933
+ scope?: string;
10934
+ includeUnscoped?: boolean;
10917
10935
  }): Promise<HttpResponse<{
10918
10936
  digest: string;
10919
10937
  metadata: DigestMetadata;
@@ -10953,6 +10971,8 @@ declare class MemoriesService extends BaseService {
10953
10971
  maxSources?: number;
10954
10972
  includeMemoryIds?: boolean;
10955
10973
  verbatimRecent?: number;
10974
+ scope?: string;
10975
+ includeUnscoped?: boolean;
10956
10976
  }): Promise<HttpResponse<unknown>>;
10957
10977
  /**
10958
10978
  * Build a context briefing
package/dist/index.d.ts CHANGED
@@ -7919,6 +7919,10 @@ declare const digestRequest: z.ZodObject<{
7919
7919
  includeMemoryIds: z.ZodOptional<z.ZodBoolean>;
7920
7920
  /** 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. */
7921
7921
  verbatimRecent: z.ZodOptional<z.ZodNumber>;
7922
+ /** 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. */
7923
+ scope: z.ZodOptional<z.ZodString>;
7924
+ /** 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. */
7925
+ includeUnscoped: z.ZodOptional<z.ZodBoolean>;
7922
7926
  }, "strip", z.ZodTypeAny, {
7923
7927
  query: string;
7924
7928
  topics?: string[] | undefined;
@@ -7928,6 +7932,8 @@ declare const digestRequest: z.ZodObject<{
7928
7932
  maxSources?: number | undefined;
7929
7933
  includeMemoryIds?: boolean | undefined;
7930
7934
  verbatimRecent?: number | undefined;
7935
+ scope?: string | undefined;
7936
+ includeUnscoped?: boolean | undefined;
7931
7937
  }, {
7932
7938
  query: string;
7933
7939
  topics?: string[] | undefined;
@@ -7937,6 +7943,8 @@ declare const digestRequest: z.ZodObject<{
7937
7943
  maxSources?: number | undefined;
7938
7944
  includeMemoryIds?: boolean | undefined;
7939
7945
  verbatimRecent?: number | undefined;
7946
+ scope?: string | undefined;
7947
+ includeUnscoped?: boolean | undefined;
7940
7948
  }>;
7941
7949
  /**
7942
7950
  * Time range of the source memories (null if no sources found)
@@ -9070,16 +9078,16 @@ declare const buildContextRequest: z.ZodObject<{
9070
9078
  includeUnscoped: z.ZodOptional<z.ZodBoolean>;
9071
9079
  }, "strip", z.ZodTypeAny, {
9072
9080
  context: string;
9073
- files?: string[] | undefined;
9074
- recentHours?: number | undefined;
9075
9081
  scope?: string | undefined;
9076
9082
  includeUnscoped?: boolean | undefined;
9077
- }, {
9078
- context: string;
9079
9083
  files?: string[] | undefined;
9080
9084
  recentHours?: number | undefined;
9085
+ }, {
9086
+ context: string;
9081
9087
  scope?: string | undefined;
9082
9088
  includeUnscoped?: boolean | undefined;
9089
+ files?: string[] | undefined;
9090
+ recentHours?: number | undefined;
9083
9091
  }>;
9084
9092
  /**
9085
9093
  * Most relevant active conversation, or null if none found
@@ -10900,6 +10908,14 @@ declare class MemoriesService extends BaseService {
10900
10908
  2. Organize: Group by conversation, status, timeline
10901
10909
  3. Synthesize: LLM generates formatted digest
10902
10910
 
10911
+ **Project scoping (optional).** Send `scope` as comma-separated
10912
+ `key:value` codeContext pairs (allowed keys: product, service, team,
10913
+ role; all must match) to restrict every gather phase to that project.
10914
+ When `scope` is set, memories with no `codeContext` are excluded unless
10915
+ `includeUnscoped: true`. An unknown key, or a `scope` with no valid
10916
+ pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
10917
+ Same semantics as `POST /api/memories/build-context`.
10918
+
10903
10919
  Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
10904
10920
  Returns 503 if the LLM provider is unavailable and 3+ memories are found.
10905
10921
 
@@ -10914,6 +10930,8 @@ declare class MemoriesService extends BaseService {
10914
10930
  maxSources?: number;
10915
10931
  includeMemoryIds?: boolean;
10916
10932
  verbatimRecent?: number;
10933
+ scope?: string;
10934
+ includeUnscoped?: boolean;
10917
10935
  }): Promise<HttpResponse<{
10918
10936
  digest: string;
10919
10937
  metadata: DigestMetadata;
@@ -10953,6 +10971,8 @@ declare class MemoriesService extends BaseService {
10953
10971
  maxSources?: number;
10954
10972
  includeMemoryIds?: boolean;
10955
10973
  verbatimRecent?: number;
10974
+ scope?: string;
10975
+ includeUnscoped?: boolean;
10956
10976
  }): Promise<HttpResponse<unknown>>;
10957
10977
  /**
10958
10978
  * Build a context briefing
package/dist/index.js CHANGED
@@ -3134,6 +3134,14 @@ var MemoriesService = class extends BaseService {
3134
3134
  2. Organize: Group by conversation, status, timeline
3135
3135
  3. Synthesize: LLM generates formatted digest
3136
3136
 
3137
+ **Project scoping (optional).** Send `scope` as comma-separated
3138
+ `key:value` codeContext pairs (allowed keys: product, service, team,
3139
+ role; all must match) to restrict every gather phase to that project.
3140
+ When `scope` is set, memories with no `codeContext` are excluded unless
3141
+ `includeUnscoped: true`. An unknown key, or a `scope` with no valid
3142
+ pair, returns 400. Omitting `scope` reproduces today's behavior exactly.
3143
+ Same semantics as `POST /api/memories/build-context`.
3144
+
3137
3145
  Requires an LLM provider to be configured (EXTRACTION_ENABLED=true).
3138
3146
  Returns 503 if the LLM provider is unavailable and 3+ memories are found.
3139
3147
 
@@ -7600,7 +7608,11 @@ var digestRequest = z.object({
7600
7608
  /** Whether to include source memory IDs in the response */
7601
7609
  includeMemoryIds: z.boolean().optional(),
7602
7610
  /** 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. */
7603
- verbatimRecent: z.number().min(0).max(50).optional()
7611
+ verbatimRecent: z.number().min(0).max(50).optional(),
7612
+ /** 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. */
7613
+ scope: z.string().max(200).optional(),
7614
+ /** 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. */
7615
+ includeUnscoped: z.boolean().optional()
7604
7616
  });
7605
7617
  var digestTimeRange = z.object({
7606
7618
  /** Earliest memory timestamp in the digest sources */