mindgraph 0.15.1 → 0.17.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/README.md +35 -7
- package/dist/index.d.mts +284 -6
- package/dist/index.d.ts +284 -6
- package/dist/index.js +187 -6
- package/dist/index.mjs +187 -6
- package/package.json +16 -3
package/dist/index.d.ts
CHANGED
|
@@ -114,7 +114,10 @@ interface EnrichedSearchResponse {
|
|
|
114
114
|
interface PathStep {
|
|
115
115
|
node_uid: string;
|
|
116
116
|
label: string;
|
|
117
|
+
/** Plain semantic node type; typed shortcuts unwrap `{Custom: "TYPE"}`. */
|
|
117
118
|
node_type: string;
|
|
119
|
+
/** Plain semantic relation name. Typed traversal shortcuts normalize the
|
|
120
|
+
* server's externally tagged `{Custom: "NAME"}` wire form to this string. */
|
|
118
121
|
edge_type: string | null;
|
|
119
122
|
depth: number;
|
|
120
123
|
parent_uid: string | null;
|
|
@@ -524,6 +527,13 @@ interface SessionRequest {
|
|
|
524
527
|
model?: string;
|
|
525
528
|
props?: Record<string, unknown>;
|
|
526
529
|
agent_id?: string;
|
|
530
|
+
/**
|
|
531
|
+
* Server-side replay key (`/memory/session` supports it on every action):
|
|
532
|
+
* the same key with the same payload returns the stored receipt; the same
|
|
533
|
+
* key with a different payload is a 409. Use a host's operation id so a
|
|
534
|
+
* re-run compaction capture or trace is byte-identical.
|
|
535
|
+
*/
|
|
536
|
+
idempotency_key?: string;
|
|
527
537
|
}
|
|
528
538
|
/** Caller-authored content for a governed skill candidate. */
|
|
529
539
|
interface SkillDistillProps {
|
|
@@ -559,13 +569,92 @@ interface SkillDistillRequest extends DistillRequestBase {
|
|
|
559
569
|
}
|
|
560
570
|
type DistillRequest = SummaryOrLessonDistillRequest | SkillDistillRequest;
|
|
561
571
|
interface MemoryConfigRequest {
|
|
562
|
-
action: "set_preference" | "get_preferences" | "set_policy" | "get_policies";
|
|
572
|
+
action: "set_preference" | "get_preferences" | "set_policy" | "get_policies" | "set_remember_instructions" | "get_remember_instructions";
|
|
563
573
|
label?: string;
|
|
564
574
|
summary?: string;
|
|
565
575
|
confidence?: number;
|
|
566
576
|
salience?: number;
|
|
567
577
|
props?: Record<string, unknown>;
|
|
568
578
|
agent_id?: string;
|
|
579
|
+
/** Target Space for the `remember_instructions` actions (default: org space). */
|
|
580
|
+
space_uid?: string;
|
|
581
|
+
/** Instruction text for `set_remember_instructions`; empty clears it. */
|
|
582
|
+
text?: string;
|
|
583
|
+
}
|
|
584
|
+
interface RememberOptions {
|
|
585
|
+
/**
|
|
586
|
+
* Caller-owned idempotency and upsert key. Re-sending the same `custom_id`
|
|
587
|
+
* with new text edits the same node (version bump, history kept); with the
|
|
588
|
+
* same text it is a no-op.
|
|
589
|
+
*/
|
|
590
|
+
custom_id?: string;
|
|
591
|
+
/** Node label; defaults to the first line of `text` (80 chars). */
|
|
592
|
+
label?: string;
|
|
593
|
+
props?: Record<string, unknown>;
|
|
594
|
+
confidence?: number;
|
|
595
|
+
salience?: number;
|
|
596
|
+
agent_id?: string;
|
|
597
|
+
/** Explicit target Space; default is the org space. */
|
|
598
|
+
space_uid?: string;
|
|
599
|
+
/**
|
|
600
|
+
* Without a `custom_id`, what to do on an exact write-time-resolution hit:
|
|
601
|
+
* `reuse` (default) returns the existing node, `create` inserts anyway.
|
|
602
|
+
*/
|
|
603
|
+
on_near_duplicate?: "reuse" | "create";
|
|
604
|
+
}
|
|
605
|
+
interface RememberRequest extends RememberOptions {
|
|
606
|
+
text: string;
|
|
607
|
+
}
|
|
608
|
+
interface RememberResponse {
|
|
609
|
+
uid: string;
|
|
610
|
+
custom_id: string | null;
|
|
611
|
+
/** `inserted` (201) | `updated` | `unchanged` | `reused` (200). */
|
|
612
|
+
action: "inserted" | "updated" | "unchanged" | "reused";
|
|
613
|
+
label: string;
|
|
614
|
+
version: number;
|
|
615
|
+
space_uid: string;
|
|
616
|
+
/** True when the vector was stored before this response. */
|
|
617
|
+
embedded: boolean;
|
|
618
|
+
searchable: {
|
|
619
|
+
bm25: boolean;
|
|
620
|
+
vector: boolean;
|
|
621
|
+
};
|
|
622
|
+
near_duplicates: unknown[];
|
|
623
|
+
/** The Space's `remember_instructions`, if set. */
|
|
624
|
+
remember_instructions: string | null;
|
|
625
|
+
}
|
|
626
|
+
type ForgetTarget = {
|
|
627
|
+
uid: string;
|
|
628
|
+
custom_id?: never;
|
|
629
|
+
} | {
|
|
630
|
+
custom_id: string;
|
|
631
|
+
uid?: never;
|
|
632
|
+
};
|
|
633
|
+
interface ForgetOptions {
|
|
634
|
+
/** Preview the affected edges without changing anything. */
|
|
635
|
+
dry_run?: boolean;
|
|
636
|
+
/** Also tombstone connected edges (default true). */
|
|
637
|
+
cascade?: boolean;
|
|
638
|
+
reason?: string;
|
|
639
|
+
agent_id?: string;
|
|
640
|
+
}
|
|
641
|
+
type ForgetRequest = ForgetTarget & ForgetOptions;
|
|
642
|
+
interface ForgetResponse {
|
|
643
|
+
uid: string;
|
|
644
|
+
label: string;
|
|
645
|
+
dry_run: boolean;
|
|
646
|
+
cascade: boolean;
|
|
647
|
+
/** Present on a dry run. */
|
|
648
|
+
would_tombstone_edges?: number;
|
|
649
|
+
/** Present after execution. */
|
|
650
|
+
action?: "forgotten";
|
|
651
|
+
edges_tombstoned?: number;
|
|
652
|
+
/** Edge uids removed (or that would be); undo each with `/evolve restore_edge`. */
|
|
653
|
+
edge_uids: string[];
|
|
654
|
+
undo: {
|
|
655
|
+
node: string;
|
|
656
|
+
edges: string;
|
|
657
|
+
};
|
|
569
658
|
}
|
|
570
659
|
interface MemorySyncRequest {
|
|
571
660
|
action: "scan" | "begin" | "record" | "finalize" | "status" | "abandon";
|
|
@@ -690,7 +779,7 @@ interface RetrieveRequest {
|
|
|
690
779
|
* Retrieval action. Note: `"semantic"` requires a configured embedding
|
|
691
780
|
* provider on the server; for semantic search use `retrieveContext()` instead.
|
|
692
781
|
*/
|
|
693
|
-
action: "text" | "semantic" | "hybrid" | "active_goals" | "open_questions" | "weak_claims" | "pending_approvals" | "unresolved_contradictions" | "stale_derivations" | "preferences" | "layer" | "recent";
|
|
782
|
+
action: "text" | "semantic" | "hybrid" | "active_goals" | "open_questions" | "weak_claims" | "pending_approvals" | "unresolved_contradictions" | "merge_candidates" | "stale_derivations" | "curation_counts" | "preferences" | "layer" | "recent";
|
|
694
783
|
/**
|
|
695
784
|
* Required for `"text"`, `"semantic"`, `"hybrid"`. Optional for
|
|
696
785
|
* `"preferences"`: with a `query` you get topic-relevant preferences (the
|
|
@@ -734,6 +823,13 @@ interface RetrieveRequest {
|
|
|
734
823
|
* provenance for citing "which teammate's notes" (D3). Requires server ≥ 1.8.0.
|
|
735
824
|
*/
|
|
736
825
|
include_sources?: boolean;
|
|
826
|
+
/** Re-admit operational ledger and work-state nodes, excluded by default. */
|
|
827
|
+
include_ledger?: boolean;
|
|
828
|
+
/**
|
|
829
|
+
* Post-filter on how the node was created: `"document"`, `"session"` or
|
|
830
|
+
* `"agent"`.
|
|
831
|
+
*/
|
|
832
|
+
source?: "document" | "session" | "agent";
|
|
737
833
|
}
|
|
738
834
|
interface TraverseRequest {
|
|
739
835
|
action: "chain" | "neighborhood" | "path" | "subgraph" | "top_k_paths";
|
|
@@ -905,6 +1001,81 @@ interface RetrieveContextRequest {
|
|
|
905
1001
|
* Windowed nodes then carry `valid_at_time` instead of `currently_valid`.
|
|
906
1002
|
*/
|
|
907
1003
|
valid_at?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Point-in-time perspective: answer with what had been **stated** by this
|
|
1006
|
+
* ISO-8601 date. A node is admitted when at least one of its source
|
|
1007
|
+
* documents was stated (`occurred_at`, else `publication_date`) on or
|
|
1008
|
+
* before the date; its own fact dates never exclude it (a plan stated in
|
|
1009
|
+
* June about next year is admitted). Nodes stated on both sides of the
|
|
1010
|
+
* date keep only their earlier sources and withhold the merged summary
|
|
1011
|
+
* (`spans_as_of`); undated nodes stay; closed claims stay (annotated
|
|
1012
|
+
* `valid_at_time: false`). Also sets the validity-annotation reference
|
|
1013
|
+
* when `valid_at` is absent. Wiki articles are skipped under a
|
|
1014
|
+
* time-scoped read. The response's `time_filter.axis` is
|
|
1015
|
+
* `statement_time`; use `occurred_from` / `occurred_to` for a fact-time
|
|
1016
|
+
* window. (Server 1.14+: before, `as_of` filtered on fact time.)
|
|
1017
|
+
*/
|
|
1018
|
+
as_of?: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Inclusive occurrence window (ISO-8601, imprecision ok): only nodes and
|
|
1021
|
+
* chunks whose effective interval overlaps it are returned. Undated nodes
|
|
1022
|
+
* are excluded under a window. Either bound may be omitted.
|
|
1023
|
+
*/
|
|
1024
|
+
/**
|
|
1025
|
+
* Evidence plan R2 (server 1.14+): `"text"` adds `context_text`,
|
|
1026
|
+
* `used_tokens`, `truncated` and `omitted` — the canonical rendering every
|
|
1027
|
+
* door shares (dated items, supersession and conflict markers, a hard
|
|
1028
|
+
* budget). Default `"json"`.
|
|
1029
|
+
*/
|
|
1030
|
+
format?: "json" | "text";
|
|
1031
|
+
/** Token budget for `format: "text"` (minimum 256; default 8000). */
|
|
1032
|
+
max_tokens?: number;
|
|
1033
|
+
/** Order of `graph.nodes` in the JSON: `"rank"` (default) or `"chronological"`. */
|
|
1034
|
+
sort?: "rank" | "chronological";
|
|
1035
|
+
/**
|
|
1036
|
+
* `"exhaustive"` widens retrieval for list/count questions; omitted lets
|
|
1037
|
+
* the server's enumeration cue decide.
|
|
1038
|
+
*/
|
|
1039
|
+
retrieval_mode?: "normal" | "exhaustive";
|
|
1040
|
+
occurred_from?: string;
|
|
1041
|
+
occurred_to?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* Re-admit operational ledger and work-state nodes (sessions, executions,
|
|
1044
|
+
* tasks, plans). Excluded from knowledge retrieval by default.
|
|
1045
|
+
*/
|
|
1046
|
+
include_ledger?: boolean;
|
|
1047
|
+
/**
|
|
1048
|
+
* Bound each article's `content` to this many characters by query-aware
|
|
1049
|
+
* excerpting (default 6000; 0 = unlimited). The response flags `excerpted`.
|
|
1050
|
+
*/
|
|
1051
|
+
article_char_limit?: number;
|
|
1052
|
+
/** Cosine floor for admitted articles (default 0 = off). */
|
|
1053
|
+
article_min_similarity?: number;
|
|
1054
|
+
/**
|
|
1055
|
+
* Attach per-leg hybrid contributions (`retrieval_legs`) to direct nodes.
|
|
1056
|
+
* Honored only for unscoped callers.
|
|
1057
|
+
*/
|
|
1058
|
+
explain?: boolean;
|
|
1059
|
+
/**
|
|
1060
|
+
* Ontology leg control: `mode` `"auto"` (default) or `"off"`, optionally
|
|
1061
|
+
* restricted to one active schema. The leg runs only when the server has it
|
|
1062
|
+
* enabled and the org has an active schema.
|
|
1063
|
+
*/
|
|
1064
|
+
ontology?: {
|
|
1065
|
+
mode?: "auto" | "off";
|
|
1066
|
+
schema_id?: string;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* What the caller is doing right now (an agent's task, the last turns of a
|
|
1070
|
+
* conversation), at most 2,000 characters. Read only by the question-aware
|
|
1071
|
+
* reranker; never used as a search term and never stored.
|
|
1072
|
+
*/
|
|
1073
|
+
intent?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Apply the question-aware rerank to graph-expansion candidates. Omitted
|
|
1076
|
+
* uses the server default (off).
|
|
1077
|
+
*/
|
|
1078
|
+
rerank?: boolean;
|
|
908
1079
|
}
|
|
909
1080
|
interface ArticleResult {
|
|
910
1081
|
uid: string;
|
|
@@ -986,6 +1157,39 @@ interface SeriesContextAnnotation {
|
|
|
986
1157
|
};
|
|
987
1158
|
}
|
|
988
1159
|
interface RetrieveContextResponse {
|
|
1160
|
+
/**
|
|
1161
|
+
* Present only when the request set `as_of`, `occurred_from` or
|
|
1162
|
+
* `occurred_to`: the echoed filter plus what it excluded. World time only.
|
|
1163
|
+
*/
|
|
1164
|
+
time_filter?: {
|
|
1165
|
+
as_of?: string;
|
|
1166
|
+
occurred_from?: string;
|
|
1167
|
+
occurred_to?: string;
|
|
1168
|
+
nodes_excluded: number;
|
|
1169
|
+
chunks_excluded: number;
|
|
1170
|
+
articles_excluded: boolean;
|
|
1171
|
+
/** `statement_time` under `as_of` (server 1.14+), `world_time` under a window. */
|
|
1172
|
+
axis: "world_time" | "statement_time";
|
|
1173
|
+
/** Nodes short of `node_limit` after admission (server 1.14+). */
|
|
1174
|
+
backfill_shortfall?: number;
|
|
1175
|
+
};
|
|
1176
|
+
/** The "now" anchor: `as_of` when given, else the request date (server 1.14+). */
|
|
1177
|
+
now?: string;
|
|
1178
|
+
/** Unresolved contradiction pairs among the returned nodes (server 1.14+). */
|
|
1179
|
+
conflicts?: Array<Record<string, unknown>>;
|
|
1180
|
+
retrieval_mode?: "exhaustive";
|
|
1181
|
+
retrieval_mode_source?: "request" | "cue";
|
|
1182
|
+
/** Present with `format: "text"`. */
|
|
1183
|
+
context_text?: string;
|
|
1184
|
+
used_tokens?: number;
|
|
1185
|
+
truncated?: boolean;
|
|
1186
|
+
omitted?: {
|
|
1187
|
+
nodes: number;
|
|
1188
|
+
chunks: number;
|
|
1189
|
+
articles: number;
|
|
1190
|
+
conflicts: number;
|
|
1191
|
+
injections?: number;
|
|
1192
|
+
};
|
|
989
1193
|
articles?: ArticleResult[];
|
|
990
1194
|
chunks?: {
|
|
991
1195
|
chunk_uid: string;
|
|
@@ -1004,6 +1208,10 @@ interface RetrieveContextResponse {
|
|
|
1004
1208
|
ingested_by?: string;
|
|
1005
1209
|
/** Display name (else email) of the ingesting teammate. */
|
|
1006
1210
|
ingested_by_name?: string;
|
|
1211
|
+
/** When the source conversation or document occurred (ISO-8601). */
|
|
1212
|
+
occurred_at?: string;
|
|
1213
|
+
/** Publication date of the source document (ISO-8601). */
|
|
1214
|
+
publication_date?: string;
|
|
1007
1215
|
}[];
|
|
1008
1216
|
source_chunks?: SourceChunk[];
|
|
1009
1217
|
believed_by?: BelievedBy[];
|
|
@@ -1029,10 +1237,17 @@ interface RetrieveContextResponse {
|
|
|
1029
1237
|
edges: Record<string, unknown>[];
|
|
1030
1238
|
};
|
|
1031
1239
|
}
|
|
1240
|
+
/** Safe terminal reason. This does not authorize replaying a whole job. */
|
|
1241
|
+
interface JobErrorDetails {
|
|
1242
|
+
code: string;
|
|
1243
|
+
message: string;
|
|
1244
|
+
status: number;
|
|
1245
|
+
retriable: boolean;
|
|
1246
|
+
}
|
|
1032
1247
|
interface Job {
|
|
1033
1248
|
id: string;
|
|
1034
1249
|
title: string;
|
|
1035
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
1250
|
+
status: "pending" | "processing" | "completed" | "completed_with_errors" | "failed" | "cancelled";
|
|
1036
1251
|
progress: {
|
|
1037
1252
|
total_chunks: number;
|
|
1038
1253
|
processed_chunks: number;
|
|
@@ -1041,6 +1256,8 @@ interface Job {
|
|
|
1041
1256
|
};
|
|
1042
1257
|
result: Record<string, unknown> | null;
|
|
1043
1258
|
error: string | null;
|
|
1259
|
+
/** Absent for older servers or ordinary failures. */
|
|
1260
|
+
error_details?: JobErrorDetails | null;
|
|
1044
1261
|
created_at: number;
|
|
1045
1262
|
queue_position?: number;
|
|
1046
1263
|
}
|
|
@@ -1193,10 +1410,18 @@ interface MindGraphConfig {
|
|
|
1193
1410
|
* uses this value for authorization or result membership.
|
|
1194
1411
|
*/
|
|
1195
1412
|
telemetrySurface?: "dashboard" | "mcp";
|
|
1196
|
-
/** Max retries for
|
|
1413
|
+
/** Max 503 retries for reviewed reads or keyed work operations. retriable:false stops retries. Default: 3. Set to 0 to disable. */
|
|
1197
1414
|
maxRetries?: number;
|
|
1198
|
-
/** Initial backoff in ms before first retry. Doubles each attempt. Default: 1000. */
|
|
1415
|
+
/** Initial backoff in ms before first retry. Doubles each attempt, capped at 10 seconds. Default: 1000. */
|
|
1199
1416
|
retryBackoffMs?: number;
|
|
1417
|
+
/**
|
|
1418
|
+
* Per-request deadline in ms. When set, each HTTP attempt is aborted after
|
|
1419
|
+
* this long and the call rejects with a `MindGraphError` whose `code` is
|
|
1420
|
+
* `"timeout"` (`status` 0, `retriable: false`). Unset (default) keeps the
|
|
1421
|
+
* historical behaviour: no deadline and no AbortSignal on the request.
|
|
1422
|
+
* Fail-open wrappers (agent memory providers) set this to a few seconds.
|
|
1423
|
+
*/
|
|
1424
|
+
timeoutMs?: number;
|
|
1200
1425
|
}
|
|
1201
1426
|
/** Schema-level behavior for compiled semantic-match diagnostics. */
|
|
1202
1427
|
type SemanticValidationMode = "off" | "advisory" | "review" | "strict";
|
|
@@ -1440,6 +1665,8 @@ interface OntologySchema {
|
|
|
1440
1665
|
propose_status?: "pending" | "running" | "ready" | "failed" | null;
|
|
1441
1666
|
propose_job_id?: string | null;
|
|
1442
1667
|
propose_error?: string | null;
|
|
1668
|
+
/** Durable terminal reason; absent on older servers. Review partial drafts before retry. */
|
|
1669
|
+
propose_error_details?: OntologyProposeErrorDetails | null;
|
|
1443
1670
|
created_by?: string | null;
|
|
1444
1671
|
updated_by?: string | null;
|
|
1445
1672
|
created_at: string;
|
|
@@ -1582,7 +1809,11 @@ interface OntologyProposal {
|
|
|
1582
1809
|
approval_uid?: string | null;
|
|
1583
1810
|
proposed_node_uid?: string | null;
|
|
1584
1811
|
applied_job_id?: string | null;
|
|
1812
|
+
/** Known result UID, including a partial result that needs reconciliation. */
|
|
1813
|
+
applied_uid?: string | null;
|
|
1585
1814
|
applied_error?: string | null;
|
|
1815
|
+
/** A terminal execution failure; earlier graph changes may have committed. */
|
|
1816
|
+
applied_error_details?: OntologyApplyErrorDetails | null;
|
|
1586
1817
|
apply_attempt_count: number;
|
|
1587
1818
|
edited_by?: string | null;
|
|
1588
1819
|
edited_at?: string | null;
|
|
@@ -1592,6 +1823,14 @@ interface OntologyProposal {
|
|
|
1592
1823
|
resolved_at?: string | null;
|
|
1593
1824
|
resolved_by?: string | null;
|
|
1594
1825
|
}
|
|
1826
|
+
/** Proposal and apply failures share the safe terminal execution metadata. */
|
|
1827
|
+
type OntologyProposeErrorDetails = OntologyApplyErrorDetails;
|
|
1828
|
+
interface OntologyApplyErrorDetails {
|
|
1829
|
+
code: string;
|
|
1830
|
+
message: string;
|
|
1831
|
+
status: number;
|
|
1832
|
+
retriable: false;
|
|
1833
|
+
}
|
|
1595
1834
|
interface OntologyDuplicateAudit {
|
|
1596
1835
|
schema_id: string;
|
|
1597
1836
|
object_groups: Array<{
|
|
@@ -1829,6 +2068,8 @@ type DomainObject = GraphNode;
|
|
|
1829
2068
|
declare class MindGraphError extends Error {
|
|
1830
2069
|
status: number;
|
|
1831
2070
|
body?: unknown | undefined;
|
|
2071
|
+
readonly code?: string;
|
|
2072
|
+
readonly retriable?: boolean;
|
|
1832
2073
|
constructor(message: string, status: number, body?: unknown | undefined);
|
|
1833
2074
|
}
|
|
1834
2075
|
declare class MindGraph {
|
|
@@ -1836,9 +2077,17 @@ declare class MindGraph {
|
|
|
1836
2077
|
private headers;
|
|
1837
2078
|
private maxRetries;
|
|
1838
2079
|
private retryBackoffMs;
|
|
2080
|
+
private timeoutMs?;
|
|
1839
2081
|
private telemetrySurface?;
|
|
1840
2082
|
constructor(config: MindGraphConfig);
|
|
1841
2083
|
private request;
|
|
2084
|
+
/**
|
|
2085
|
+
* One HTTP attempt. With `timeoutMs` set, the attempt is aborted at the
|
|
2086
|
+
* deadline and surfaces as a non-retriable `MindGraphError` (`code:
|
|
2087
|
+
* "timeout"`, `status: 0`). Without it the request is sent unchanged — no
|
|
2088
|
+
* AbortSignal is attached, preserving the pre-0.16 behaviour.
|
|
2089
|
+
*/
|
|
2090
|
+
private fetchWithDeadline;
|
|
1842
2091
|
private get;
|
|
1843
2092
|
private post;
|
|
1844
2093
|
private patch;
|
|
@@ -1991,6 +2240,35 @@ declare class MindGraph {
|
|
|
1991
2240
|
distill(req: DistillRequest): Promise<unknown>;
|
|
1992
2241
|
memoryConfig(req: MemoryConfigRequest): Promise<unknown>;
|
|
1993
2242
|
memorySync(req: MemorySyncRequest): Promise<unknown>;
|
|
2243
|
+
/**
|
|
2244
|
+
* Store a small piece of text as a memory, synchronously. The node is
|
|
2245
|
+
* BM25- and vector-searchable when this resolves (`searchable` says which).
|
|
2246
|
+
* Pass `custom_id` to make re-sends an upsert of the same node.
|
|
2247
|
+
*/
|
|
2248
|
+
remember(text: string, options?: RememberOptions): Promise<RememberResponse>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Reversibly remove a memory by `uid` or `custom_id` (tombstone plus its
|
|
2251
|
+
* connected edges). `dry_run: true` previews the affected edge uids first.
|
|
2252
|
+
* Undo with `restore(uid)` and `evolve({ action: "restore_edge", uid })`.
|
|
2253
|
+
*/
|
|
2254
|
+
forget(target: ForgetTarget, options?: ForgetOptions): Promise<ForgetResponse>;
|
|
2255
|
+
/**
|
|
2256
|
+
* Operator guidance for what agents should remember into a Space; surfaced
|
|
2257
|
+
* on every `remember()` response and on `retrieveContext()`. Empty clears it.
|
|
2258
|
+
*/
|
|
2259
|
+
setRememberInstructions(text: string, options?: {
|
|
2260
|
+
space_uid?: string;
|
|
2261
|
+
agent_id?: string;
|
|
2262
|
+
}): Promise<{
|
|
2263
|
+
space_uid: string;
|
|
2264
|
+
remember_instructions: string | null;
|
|
2265
|
+
}>;
|
|
2266
|
+
getRememberInstructions(options?: {
|
|
2267
|
+
space_uid?: string;
|
|
2268
|
+
}): Promise<{
|
|
2269
|
+
space_uid: string;
|
|
2270
|
+
remember_instructions: string | null;
|
|
2271
|
+
}>;
|
|
1994
2272
|
plan(req: PlanRequest): Promise<unknown>;
|
|
1995
2273
|
governance(req: GovernanceRequest): Promise<unknown>;
|
|
1996
2274
|
execution(req: ExecutionRequest): Promise<unknown>;
|
|
@@ -2455,4 +2733,4 @@ declare class MindGraph {
|
|
|
2455
2733
|
}>;
|
|
2456
2734
|
}
|
|
2457
2735
|
|
|
2458
|
-
export { type AggregatePoint, type AnalogyCandidate, type AppendSeriesResponse, type ArgumentRequest, type ArticleResult, type BatchAggregateSeriesResponse, type BatchLatestSeriesResponse, type BatchRequest, type BelievedBy, type CanonicalAttachmentAuthority, type CanonicalAttachmentBinding, type CanonicalAttachmentDirection, type CaptureRequest, type ClaimHub, type ClearResponse, type ClusterClaimSample, type ClusteredClaimHub, type CommitmentRequest, type ConceptCluster, type CreateDomainObjectRequest, type CreateOntologySchemaRequest, type CreateSeriesResponse, type DecayRequest, type DeleteSeriesResponse, type DeliberationRequest, type DialecticalPair, type DistillRequest, type DocumentRef, type DomainObject, type DomainObjectMutationResponse, type EnrichedSearchResponse, type EntityBridge, type EntityRequest, type EpistemicCounts, type EventProps, type EvolveRequest, type ExecutionRequest, type FieldDefinition, type FieldSemantic, type FieldSemanticKind, type FiscalYearEnd, type GovernanceRequest, type GovernanceTarget, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type ListArticlesResponse, type ListSeriesResponse, type MeasurementPoint, type MemoryConfigRequest, type MemorySyncRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type NormativeKind, type ObjectBacking, type OntologicalBaseKind, type OntologyDuplicateAudit, type OntologyObjectType, type OntologyObjectTypeInput, type OntologyPredicateOperator, type OntologyProposal, type OntologyQueryPredicate, type OntologyRelationType, type OntologyRelationTypeInput, type OntologySchema, type OntologySchemaDetail, type OntologySeriesBinding, type OntologyToolDescriptor, type OrganizationProps, type Participant, type ParticipantSlotKind, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type ProposalEdits, type PurgeRequest, type RankedClaimHub, type RelatedDomainObjectsRequest, type RelationBacking, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchChunk, type SearchResult, type SemanticDependence, type SemanticEvidenceRef, type SemanticEvidenceSourceKind, type SemanticGeneratorRef, type SemanticIdentityMode, type SemanticMatch, type SemanticMatchAlternative, type SemanticMatchStatus, type SemanticModifier, type SemanticModifierMatch, type SemanticNegativeControl, type SemanticParticipantSlot, type SemanticRelationKind, type SemanticReviewDecision, type SemanticRigidity, type SemanticRuntimeTemplate, type SemanticSignal, type SemanticSignalKind, type SemanticTemplateRef, type SemanticTemporalMode, type SemanticTenantBindings, type SemanticValidationAuthoringMode, type SemanticValidationMode, type SeriesAggregateResponse, type SeriesBacking, type SeriesContextAnnotation, type SeriesLatestResponse, type SeriesNode, type SeriesProps, type SeriesRequest, type SeriesWindowResponse, type SessionRequest, type SignalsQuery, type SignalsResponse, type SkillDistillProps, type SkillDistillRequest, type SourceChunk, type StructureRequest, type StructuredOntologyQueryRequest, type StructuredOntologyQueryResponse, type SynthesisJobResponse, type TextSelector, type TheorySupportGap, type TraverseRequest, type UpdateDomainObjectRequest, type UpdateOntologySchemaRequest };
|
|
2736
|
+
export { type AggregatePoint, type AnalogyCandidate, type AppendSeriesResponse, type ArgumentRequest, type ArticleResult, type BatchAggregateSeriesResponse, type BatchLatestSeriesResponse, type BatchRequest, type BelievedBy, type CanonicalAttachmentAuthority, type CanonicalAttachmentBinding, type CanonicalAttachmentDirection, type CaptureRequest, type ClaimHub, type ClearResponse, type ClusterClaimSample, type ClusteredClaimHub, type CommitmentRequest, type ConceptCluster, type CreateDomainObjectRequest, type CreateOntologySchemaRequest, type CreateSeriesResponse, type DecayRequest, type DeleteSeriesResponse, type DeliberationRequest, type DialecticalPair, type DistillRequest, type DocumentRef, type DomainObject, type DomainObjectMutationResponse, type EnrichedSearchResponse, type EntityBridge, type EntityRequest, type EpistemicCounts, type EventProps, type EvolveRequest, type ExecutionRequest, type FieldDefinition, type FieldSemantic, type FieldSemanticKind, type FiscalYearEnd, type ForgetOptions, type ForgetRequest, type ForgetResponse, type ForgetTarget, type GovernanceRequest, type GovernanceTarget, type GraphEdge, type GraphNode, type IngestChunkRequest, type IngestChunkResponse, type IngestDocumentRequest, type IngestDocumentResponse, type IngestSessionRequest, type InquiryRequest, type Job, type ListArticlesResponse, type ListSeriesResponse, type MeasurementPoint, type MemoryConfigRequest, type MemorySyncRequest, MindGraph, type MindGraphConfig, MindGraphError, type NationProps, type NormativeKind, type ObjectBacking, type OntologicalBaseKind, type OntologyApplyErrorDetails, type OntologyDuplicateAudit, type OntologyObjectType, type OntologyObjectTypeInput, type OntologyPredicateOperator, type OntologyProposal, type OntologyProposeErrorDetails, type OntologyQueryPredicate, type OntologyRelationType, type OntologyRelationTypeInput, type OntologySchema, type OntologySchemaDetail, type OntologySeriesBinding, type OntologyToolDescriptor, type OrganizationProps, type Participant, type ParticipantSlotKind, type PathStep, type PersonProps, type PlaceProps, type PlanRequest, type ProcedureRequest, type ProposalEdits, type PurgeRequest, type RankedClaimHub, type RelatedDomainObjectsRequest, type RelationBacking, type RememberOptions, type RememberRequest, type RememberResponse, type RetrieveContextRequest, type RetrieveContextResponse, type RetrieveRequest, type RiskRequest, type SearchChunk, type SearchResult, type SemanticDependence, type SemanticEvidenceRef, type SemanticEvidenceSourceKind, type SemanticGeneratorRef, type SemanticIdentityMode, type SemanticMatch, type SemanticMatchAlternative, type SemanticMatchStatus, type SemanticModifier, type SemanticModifierMatch, type SemanticNegativeControl, type SemanticParticipantSlot, type SemanticRelationKind, type SemanticReviewDecision, type SemanticRigidity, type SemanticRuntimeTemplate, type SemanticSignal, type SemanticSignalKind, type SemanticTemplateRef, type SemanticTemporalMode, type SemanticTenantBindings, type SemanticValidationAuthoringMode, type SemanticValidationMode, type SeriesAggregateResponse, type SeriesBacking, type SeriesContextAnnotation, type SeriesLatestResponse, type SeriesNode, type SeriesProps, type SeriesRequest, type SeriesWindowResponse, type SessionRequest, type SignalsQuery, type SignalsResponse, type SkillDistillProps, type SkillDistillRequest, type SourceChunk, type StructureRequest, type StructuredOntologyQueryRequest, type StructuredOntologyQueryResponse, type SynthesisJobResponse, type TextSelector, type TheorySupportGap, type TraverseRequest, type UpdateDomainObjectRequest, type UpdateOntologySchemaRequest };
|