@memnexus-ai/typescript-sdk 1.67.3 → 1.68.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.d.cts CHANGED
@@ -7743,6 +7743,25 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7743
7743
  format: z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>;
7744
7744
  /** Average relevance score (0-1) of the source memories used in synthesis. Low values (<0.02) indicate the query may not have strong matches. */
7745
7745
  averageRelevance: z.ZodOptional<z.ZodNumber>;
7746
+ /** PR-3 loud failures. True when the gather that produced this digest was INCOMPLETE — at least one search branch timed out or errored. A degraded digest may under-report: absence of a memory here does not mean it does not exist. Degraded digests are never cached. Absent/false means the gather ran every branch to completion, so a zero-result digest is a genuine 'no matches'. */
7747
+ degraded: z.ZodOptional<z.ZodBoolean>;
7748
+ /** PR-3 loud failures. The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted. */
7749
+ branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
7750
+ /** Search branch name (fulltext, semantic, topic, …) */
7751
+ name: z.ZodString;
7752
+ /** How the branch failed */
7753
+ status: z.ZodEnum<["timeout", "error"]>;
7754
+ /** Error message when status is 'error'. Message only, never a stack. */
7755
+ error: z.ZodOptional<z.ZodString>;
7756
+ }, "strip", z.ZodTypeAny, {
7757
+ status: "error" | "timeout";
7758
+ name: string;
7759
+ error?: string | undefined;
7760
+ }, {
7761
+ status: "error" | "timeout";
7762
+ name: string;
7763
+ error?: string | undefined;
7764
+ }>, "many">>;
7746
7765
  /** True when averageRelevance falls in the narrow-window band (>= DIGEST_RELEVANCE_THRESHOLD but < NARROW_WINDOW_FALLBACK_CEILING) — the digest synthesised from weak matches that may not represent strong context. Consumers should surface a warning to the calling agent. */
7747
7766
  narrowWindowFallback: z.ZodOptional<z.ZodBoolean>;
7748
7767
  /** True when the digest is in the narrow-window band AND the source memories span 2+ distinct codeContext.product values (or none share a product). Indicates the synthesis is drawn from heterogeneous, possibly cross-project sources — likely the wrong project for the calling agent. See support#183. */
@@ -7781,7 +7800,13 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7781
7800
  latest: string;
7782
7801
  } | null;
7783
7802
  generatedAt: string;
7803
+ degraded?: boolean | undefined;
7784
7804
  averageRelevance?: number | undefined;
7805
+ branchFailures?: {
7806
+ status: "error" | "timeout";
7807
+ name: string;
7808
+ error?: string | undefined;
7809
+ }[] | undefined;
7785
7810
  narrowWindowFallback?: boolean | undefined;
7786
7811
  crossProjectFallback?: boolean | undefined;
7787
7812
  recursion?: {
@@ -7801,7 +7826,13 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7801
7826
  latest: string;
7802
7827
  } | null;
7803
7828
  generatedAt: string;
7829
+ degraded?: boolean | undefined;
7804
7830
  averageRelevance?: number | undefined;
7831
+ branchFailures?: {
7832
+ status: "error" | "timeout";
7833
+ name: string;
7834
+ error?: string | undefined;
7835
+ }[] | undefined;
7805
7836
  narrowWindowFallback?: boolean | undefined;
7806
7837
  crossProjectFallback?: boolean | undefined;
7807
7838
  recursion?: {
@@ -7908,6 +7939,25 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7908
7939
  format: z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>;
7909
7940
  /** Average relevance score (0-1) of the source memories used in synthesis. Low values (<0.02) indicate the query may not have strong matches. */
7910
7941
  averageRelevance: z.ZodOptional<z.ZodNumber>;
7942
+ /** PR-3 loud failures. True when the gather that produced this digest was INCOMPLETE — at least one search branch timed out or errored. A degraded digest may under-report: absence of a memory here does not mean it does not exist. Degraded digests are never cached. Absent/false means the gather ran every branch to completion, so a zero-result digest is a genuine 'no matches'. */
7943
+ degraded: z.ZodOptional<z.ZodBoolean>;
7944
+ /** PR-3 loud failures. The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted. */
7945
+ branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
7946
+ /** Search branch name (fulltext, semantic, topic, …) */
7947
+ name: z.ZodString;
7948
+ /** How the branch failed */
7949
+ status: z.ZodEnum<["timeout", "error"]>;
7950
+ /** Error message when status is 'error'. Message only, never a stack. */
7951
+ error: z.ZodOptional<z.ZodString>;
7952
+ }, "strip", z.ZodTypeAny, {
7953
+ status: "error" | "timeout";
7954
+ name: string;
7955
+ error?: string | undefined;
7956
+ }, {
7957
+ status: "error" | "timeout";
7958
+ name: string;
7959
+ error?: string | undefined;
7960
+ }>, "many">>;
7911
7961
  /** True when averageRelevance falls in the narrow-window band (>= DIGEST_RELEVANCE_THRESHOLD but < NARROW_WINDOW_FALLBACK_CEILING) — the digest synthesised from weak matches that may not represent strong context. Consumers should surface a warning to the calling agent. */
7912
7962
  narrowWindowFallback: z.ZodOptional<z.ZodBoolean>;
7913
7963
  /** True when the digest is in the narrow-window band AND the source memories span 2+ distinct codeContext.product values (or none share a product). Indicates the synthesis is drawn from heterogeneous, possibly cross-project sources — likely the wrong project for the calling agent. See support#183. */
@@ -7946,7 +7996,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7946
7996
  latest: string;
7947
7997
  } | null;
7948
7998
  generatedAt: string;
7999
+ degraded?: boolean | undefined;
7949
8000
  averageRelevance?: number | undefined;
8001
+ branchFailures?: {
8002
+ status: "error" | "timeout";
8003
+ name: string;
8004
+ error?: string | undefined;
8005
+ }[] | undefined;
7950
8006
  narrowWindowFallback?: boolean | undefined;
7951
8007
  crossProjectFallback?: boolean | undefined;
7952
8008
  recursion?: {
@@ -7966,7 +8022,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7966
8022
  latest: string;
7967
8023
  } | null;
7968
8024
  generatedAt: string;
8025
+ degraded?: boolean | undefined;
7969
8026
  averageRelevance?: number | undefined;
8027
+ branchFailures?: {
8028
+ status: "error" | "timeout";
8029
+ name: string;
8030
+ error?: string | undefined;
8031
+ }[] | undefined;
7970
8032
  narrowWindowFallback?: boolean | undefined;
7971
8033
  crossProjectFallback?: boolean | undefined;
7972
8034
  recursion?: {
@@ -8335,7 +8397,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8335
8397
  latest: string;
8336
8398
  } | null;
8337
8399
  generatedAt: string;
8400
+ degraded?: boolean | undefined;
8338
8401
  averageRelevance?: number | undefined;
8402
+ branchFailures?: {
8403
+ status: "error" | "timeout";
8404
+ name: string;
8405
+ error?: string | undefined;
8406
+ }[] | undefined;
8339
8407
  narrowWindowFallback?: boolean | undefined;
8340
8408
  crossProjectFallback?: boolean | undefined;
8341
8409
  recursion?: {
@@ -8443,7 +8511,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8443
8511
  latest: string;
8444
8512
  } | null;
8445
8513
  generatedAt: string;
8514
+ degraded?: boolean | undefined;
8446
8515
  averageRelevance?: number | undefined;
8516
+ branchFailures?: {
8517
+ status: "error" | "timeout";
8518
+ name: string;
8519
+ error?: string | undefined;
8520
+ }[] | undefined;
8447
8521
  narrowWindowFallback?: boolean | undefined;
8448
8522
  crossProjectFallback?: boolean | undefined;
8449
8523
  recursion?: {
package/dist/index.d.ts CHANGED
@@ -7743,6 +7743,25 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7743
7743
  format: z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>;
7744
7744
  /** Average relevance score (0-1) of the source memories used in synthesis. Low values (<0.02) indicate the query may not have strong matches. */
7745
7745
  averageRelevance: z.ZodOptional<z.ZodNumber>;
7746
+ /** PR-3 loud failures. True when the gather that produced this digest was INCOMPLETE — at least one search branch timed out or errored. A degraded digest may under-report: absence of a memory here does not mean it does not exist. Degraded digests are never cached. Absent/false means the gather ran every branch to completion, so a zero-result digest is a genuine 'no matches'. */
7747
+ degraded: z.ZodOptional<z.ZodBoolean>;
7748
+ /** PR-3 loud failures. The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted. */
7749
+ branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
7750
+ /** Search branch name (fulltext, semantic, topic, …) */
7751
+ name: z.ZodString;
7752
+ /** How the branch failed */
7753
+ status: z.ZodEnum<["timeout", "error"]>;
7754
+ /** Error message when status is 'error'. Message only, never a stack. */
7755
+ error: z.ZodOptional<z.ZodString>;
7756
+ }, "strip", z.ZodTypeAny, {
7757
+ status: "error" | "timeout";
7758
+ name: string;
7759
+ error?: string | undefined;
7760
+ }, {
7761
+ status: "error" | "timeout";
7762
+ name: string;
7763
+ error?: string | undefined;
7764
+ }>, "many">>;
7746
7765
  /** True when averageRelevance falls in the narrow-window band (>= DIGEST_RELEVANCE_THRESHOLD but < NARROW_WINDOW_FALLBACK_CEILING) — the digest synthesised from weak matches that may not represent strong context. Consumers should surface a warning to the calling agent. */
7747
7766
  narrowWindowFallback: z.ZodOptional<z.ZodBoolean>;
7748
7767
  /** True when the digest is in the narrow-window band AND the source memories span 2+ distinct codeContext.product values (or none share a product). Indicates the synthesis is drawn from heterogeneous, possibly cross-project sources — likely the wrong project for the calling agent. See support#183. */
@@ -7781,7 +7800,13 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7781
7800
  latest: string;
7782
7801
  } | null;
7783
7802
  generatedAt: string;
7803
+ degraded?: boolean | undefined;
7784
7804
  averageRelevance?: number | undefined;
7805
+ branchFailures?: {
7806
+ status: "error" | "timeout";
7807
+ name: string;
7808
+ error?: string | undefined;
7809
+ }[] | undefined;
7785
7810
  narrowWindowFallback?: boolean | undefined;
7786
7811
  crossProjectFallback?: boolean | undefined;
7787
7812
  recursion?: {
@@ -7801,7 +7826,13 @@ declare const digestMetadata: z.ZodLazy<z.ZodObject<{
7801
7826
  latest: string;
7802
7827
  } | null;
7803
7828
  generatedAt: string;
7829
+ degraded?: boolean | undefined;
7804
7830
  averageRelevance?: number | undefined;
7831
+ branchFailures?: {
7832
+ status: "error" | "timeout";
7833
+ name: string;
7834
+ error?: string | undefined;
7835
+ }[] | undefined;
7805
7836
  narrowWindowFallback?: boolean | undefined;
7806
7837
  crossProjectFallback?: boolean | undefined;
7807
7838
  recursion?: {
@@ -7908,6 +7939,25 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7908
7939
  format: z.ZodEnum<["structured", "narrative", "timeline", "status-report"]>;
7909
7940
  /** Average relevance score (0-1) of the source memories used in synthesis. Low values (<0.02) indicate the query may not have strong matches. */
7910
7941
  averageRelevance: z.ZodOptional<z.ZodNumber>;
7942
+ /** PR-3 loud failures. True when the gather that produced this digest was INCOMPLETE — at least one search branch timed out or errored. A degraded digest may under-report: absence of a memory here does not mean it does not exist. Degraded digests are never cached. Absent/false means the gather ran every branch to completion, so a zero-result digest is a genuine 'no matches'. */
7943
+ degraded: z.ZodOptional<z.ZodBoolean>;
7944
+ /** PR-3 loud failures. The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted. */
7945
+ branchFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
7946
+ /** Search branch name (fulltext, semantic, topic, …) */
7947
+ name: z.ZodString;
7948
+ /** How the branch failed */
7949
+ status: z.ZodEnum<["timeout", "error"]>;
7950
+ /** Error message when status is 'error'. Message only, never a stack. */
7951
+ error: z.ZodOptional<z.ZodString>;
7952
+ }, "strip", z.ZodTypeAny, {
7953
+ status: "error" | "timeout";
7954
+ name: string;
7955
+ error?: string | undefined;
7956
+ }, {
7957
+ status: "error" | "timeout";
7958
+ name: string;
7959
+ error?: string | undefined;
7960
+ }>, "many">>;
7911
7961
  /** True when averageRelevance falls in the narrow-window band (>= DIGEST_RELEVANCE_THRESHOLD but < NARROW_WINDOW_FALLBACK_CEILING) — the digest synthesised from weak matches that may not represent strong context. Consumers should surface a warning to the calling agent. */
7912
7962
  narrowWindowFallback: z.ZodOptional<z.ZodBoolean>;
7913
7963
  /** True when the digest is in the narrow-window band AND the source memories span 2+ distinct codeContext.product values (or none share a product). Indicates the synthesis is drawn from heterogeneous, possibly cross-project sources — likely the wrong project for the calling agent. See support#183. */
@@ -7946,7 +7996,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7946
7996
  latest: string;
7947
7997
  } | null;
7948
7998
  generatedAt: string;
7999
+ degraded?: boolean | undefined;
7949
8000
  averageRelevance?: number | undefined;
8001
+ branchFailures?: {
8002
+ status: "error" | "timeout";
8003
+ name: string;
8004
+ error?: string | undefined;
8005
+ }[] | undefined;
7950
8006
  narrowWindowFallback?: boolean | undefined;
7951
8007
  crossProjectFallback?: boolean | undefined;
7952
8008
  recursion?: {
@@ -7966,7 +8022,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
7966
8022
  latest: string;
7967
8023
  } | null;
7968
8024
  generatedAt: string;
8025
+ degraded?: boolean | undefined;
7969
8026
  averageRelevance?: number | undefined;
8027
+ branchFailures?: {
8028
+ status: "error" | "timeout";
8029
+ name: string;
8030
+ error?: string | undefined;
8031
+ }[] | undefined;
7970
8032
  narrowWindowFallback?: boolean | undefined;
7971
8033
  crossProjectFallback?: boolean | undefined;
7972
8034
  recursion?: {
@@ -8335,7 +8397,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8335
8397
  latest: string;
8336
8398
  } | null;
8337
8399
  generatedAt: string;
8400
+ degraded?: boolean | undefined;
8338
8401
  averageRelevance?: number | undefined;
8402
+ branchFailures?: {
8403
+ status: "error" | "timeout";
8404
+ name: string;
8405
+ error?: string | undefined;
8406
+ }[] | undefined;
8339
8407
  narrowWindowFallback?: boolean | undefined;
8340
8408
  crossProjectFallback?: boolean | undefined;
8341
8409
  recursion?: {
@@ -8443,7 +8511,13 @@ declare const digestResponse: z.ZodLazy<z.ZodObject<{
8443
8511
  latest: string;
8444
8512
  } | null;
8445
8513
  generatedAt: string;
8514
+ degraded?: boolean | undefined;
8446
8515
  averageRelevance?: number | undefined;
8516
+ branchFailures?: {
8517
+ status: "error" | "timeout";
8518
+ name: string;
8519
+ error?: string | undefined;
8520
+ }[] | undefined;
8447
8521
  narrowWindowFallback?: boolean | undefined;
8448
8522
  crossProjectFallback?: boolean | undefined;
8449
8523
  recursion?: {
package/dist/index.js CHANGED
@@ -7444,6 +7444,17 @@ var digestMetadata = z.lazy(() => z.object({
7444
7444
  format: z.enum(["structured", "narrative", "timeline", "status-report"]),
7445
7445
  /** Average relevance score (0-1) of the source memories used in synthesis. Low values (<0.02) indicate the query may not have strong matches. */
7446
7446
  averageRelevance: z.number().min(0).max(1).optional(),
7447
+ /** PR-3 loud failures. True when the gather that produced this digest was INCOMPLETE — at least one search branch timed out or errored. A degraded digest may under-report: absence of a memory here does not mean it does not exist. Degraded digests are never cached. Absent/false means the gather ran every branch to completion, so a zero-result digest is a genuine 'no matches'. */
7448
+ degraded: z.boolean().optional(),
7449
+ /** PR-3 loud failures. The branches that did NOT complete, present only when degraded is true. Healthy branches are omitted. */
7450
+ branchFailures: z.array(z.object({
7451
+ /** Search branch name (fulltext, semantic, topic, …) */
7452
+ name: z.string(),
7453
+ /** How the branch failed */
7454
+ status: z.enum(["timeout", "error"]),
7455
+ /** Error message when status is 'error'. Message only, never a stack. */
7456
+ error: z.string().optional()
7457
+ })).optional(),
7447
7458
  /** True when averageRelevance falls in the narrow-window band (>= DIGEST_RELEVANCE_THRESHOLD but < NARROW_WINDOW_FALLBACK_CEILING) — the digest synthesised from weak matches that may not represent strong context. Consumers should surface a warning to the calling agent. */
7448
7459
  narrowWindowFallback: z.boolean().optional(),
7449
7460
  /** True when the digest is in the narrow-window band AND the source memories span 2+ distinct codeContext.product values (or none share a product). Indicates the synthesis is drawn from heterogeneous, possibly cross-project sources — likely the wrong project for the calling agent. See support#183. */