mindgraph 0.1.0 → 0.1.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.mts +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +8 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -48,6 +48,7 @@ interface IngestRequest {
|
|
|
48
48
|
timestamp?: number;
|
|
49
49
|
confidence?: number;
|
|
50
50
|
salience?: number;
|
|
51
|
+
props?: Record<string, unknown>;
|
|
51
52
|
agent_id?: string;
|
|
52
53
|
}
|
|
53
54
|
interface EntityRequest {
|
|
@@ -87,6 +88,7 @@ interface ArgumentRequest {
|
|
|
87
88
|
refutes_uid?: string;
|
|
88
89
|
extends_uid?: string;
|
|
89
90
|
source_uids?: string[];
|
|
91
|
+
props?: Record<string, unknown>;
|
|
90
92
|
agent_id?: string;
|
|
91
93
|
}
|
|
92
94
|
interface InquiryRequest {
|
|
@@ -101,10 +103,11 @@ interface InquiryRequest {
|
|
|
101
103
|
confidence?: number;
|
|
102
104
|
salience?: number;
|
|
103
105
|
related_uids?: string[];
|
|
106
|
+
props?: Record<string, unknown>;
|
|
104
107
|
agent_id?: string;
|
|
105
108
|
}
|
|
106
109
|
interface StructureRequest {
|
|
107
|
-
action: "concept" | "pattern" | "mechanism" | "model" | "model_evaluation" | "analogy" | "inference_chain" | "reasoning_strategy" | "sensitivity_analysis" | "theorem" | "equation";
|
|
110
|
+
action: "concept" | "pattern" | "mechanism" | "model" | "model_evaluation" | "analogy" | "inference_chain" | "reasoning_strategy" | "sensitivity_analysis" | "theorem" | "equation" | "method" | "experiment";
|
|
108
111
|
label: string;
|
|
109
112
|
content: string;
|
|
110
113
|
summary?: string;
|
|
@@ -117,6 +120,7 @@ interface StructureRequest {
|
|
|
117
120
|
proven_by_uid?: string;
|
|
118
121
|
related_uids?: string[];
|
|
119
122
|
confidence?: number;
|
|
123
|
+
props?: Record<string, unknown>;
|
|
120
124
|
agent_id?: string;
|
|
121
125
|
}
|
|
122
126
|
interface CommitmentRequest {
|
|
@@ -128,6 +132,7 @@ interface CommitmentRequest {
|
|
|
128
132
|
parent_uid?: string;
|
|
129
133
|
due_date?: number;
|
|
130
134
|
motivated_by_uid?: string[];
|
|
135
|
+
props?: Record<string, unknown>;
|
|
131
136
|
agent_id?: string;
|
|
132
137
|
}
|
|
133
138
|
interface DeliberationRequest {
|
|
@@ -140,6 +145,7 @@ interface DeliberationRequest {
|
|
|
140
145
|
constraint_type?: string;
|
|
141
146
|
blocks_uid?: string;
|
|
142
147
|
informs_uid?: string[];
|
|
148
|
+
props?: Record<string, unknown>;
|
|
143
149
|
agent_id?: string;
|
|
144
150
|
}
|
|
145
151
|
interface ProcedureRequest {
|
|
@@ -153,6 +159,7 @@ interface ProcedureRequest {
|
|
|
153
159
|
control_type?: string;
|
|
154
160
|
uses_affordance_uids?: string[];
|
|
155
161
|
goal_uid?: string;
|
|
162
|
+
props?: Record<string, unknown>;
|
|
156
163
|
agent_id?: string;
|
|
157
164
|
}
|
|
158
165
|
interface RiskRequest {
|
|
@@ -165,16 +172,21 @@ interface RiskRequest {
|
|
|
165
172
|
mitigations?: string[];
|
|
166
173
|
residual_risk?: number;
|
|
167
174
|
filter_uid?: string;
|
|
175
|
+
props?: Record<string, unknown>;
|
|
168
176
|
agent_id?: string;
|
|
169
177
|
}
|
|
170
178
|
interface SessionRequest {
|
|
171
|
-
action: "open" | "trace" | "close";
|
|
179
|
+
action: "open" | "trace" | "close" | "journal";
|
|
172
180
|
label?: string;
|
|
173
181
|
focus?: string;
|
|
174
182
|
session_uid?: string;
|
|
175
183
|
trace_content?: string;
|
|
176
184
|
trace_type?: string;
|
|
177
185
|
relevant_node_uids?: string[];
|
|
186
|
+
content?: string;
|
|
187
|
+
journal_type?: string;
|
|
188
|
+
tags?: string[];
|
|
189
|
+
props?: Record<string, unknown>;
|
|
178
190
|
agent_id?: string;
|
|
179
191
|
}
|
|
180
192
|
interface DistillRequest {
|
|
@@ -183,6 +195,7 @@ interface DistillRequest {
|
|
|
183
195
|
summarizes_uids?: string[];
|
|
184
196
|
session_uid?: string;
|
|
185
197
|
importance?: number;
|
|
198
|
+
props?: Record<string, unknown>;
|
|
186
199
|
agent_id?: string;
|
|
187
200
|
}
|
|
188
201
|
interface MemoryConfigRequest {
|
|
@@ -191,6 +204,7 @@ interface MemoryConfigRequest {
|
|
|
191
204
|
key?: string;
|
|
192
205
|
value?: string;
|
|
193
206
|
policy_content?: string;
|
|
207
|
+
props?: Record<string, unknown>;
|
|
194
208
|
agent_id?: string;
|
|
195
209
|
}
|
|
196
210
|
interface PlanRequest {
|
|
@@ -205,6 +219,7 @@ interface PlanRequest {
|
|
|
205
219
|
target_uid?: string;
|
|
206
220
|
status?: string;
|
|
207
221
|
related_uids?: string[];
|
|
222
|
+
props?: Record<string, unknown>;
|
|
208
223
|
agent_id?: string;
|
|
209
224
|
}
|
|
210
225
|
interface GovernanceRequest {
|
|
@@ -219,6 +234,7 @@ interface GovernanceRequest {
|
|
|
219
234
|
resolution_note?: string;
|
|
220
235
|
requires_plan_uid?: string;
|
|
221
236
|
approval_request?: string;
|
|
237
|
+
props?: Record<string, unknown>;
|
|
222
238
|
agent_id?: string;
|
|
223
239
|
}
|
|
224
240
|
interface ExecutionRequest {
|
|
@@ -234,6 +250,7 @@ interface ExecutionRequest {
|
|
|
234
250
|
agent_role?: string;
|
|
235
251
|
filter_plan_uid?: string;
|
|
236
252
|
related_uids?: string[];
|
|
253
|
+
props?: Record<string, unknown>;
|
|
237
254
|
agent_id?: string;
|
|
238
255
|
}
|
|
239
256
|
interface RetrieveRequest {
|
|
@@ -332,6 +349,13 @@ declare class MindGraph {
|
|
|
332
349
|
procedure(req: ProcedureRequest): Promise<unknown>;
|
|
333
350
|
risk(req: RiskRequest): Promise<unknown>;
|
|
334
351
|
session(req: SessionRequest): Promise<unknown>;
|
|
352
|
+
journal(label: string, content: string, options?: {
|
|
353
|
+
session_uid?: string;
|
|
354
|
+
journal_type?: string;
|
|
355
|
+
tags?: string[];
|
|
356
|
+
relevant_node_uids?: string[];
|
|
357
|
+
agent_id?: string;
|
|
358
|
+
}): Promise<unknown>;
|
|
335
359
|
distill(req: DistillRequest): Promise<unknown>;
|
|
336
360
|
memoryConfig(req: MemoryConfigRequest): Promise<unknown>;
|
|
337
361
|
plan(req: PlanRequest): Promise<unknown>;
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ interface IngestRequest {
|
|
|
48
48
|
timestamp?: number;
|
|
49
49
|
confidence?: number;
|
|
50
50
|
salience?: number;
|
|
51
|
+
props?: Record<string, unknown>;
|
|
51
52
|
agent_id?: string;
|
|
52
53
|
}
|
|
53
54
|
interface EntityRequest {
|
|
@@ -87,6 +88,7 @@ interface ArgumentRequest {
|
|
|
87
88
|
refutes_uid?: string;
|
|
88
89
|
extends_uid?: string;
|
|
89
90
|
source_uids?: string[];
|
|
91
|
+
props?: Record<string, unknown>;
|
|
90
92
|
agent_id?: string;
|
|
91
93
|
}
|
|
92
94
|
interface InquiryRequest {
|
|
@@ -101,10 +103,11 @@ interface InquiryRequest {
|
|
|
101
103
|
confidence?: number;
|
|
102
104
|
salience?: number;
|
|
103
105
|
related_uids?: string[];
|
|
106
|
+
props?: Record<string, unknown>;
|
|
104
107
|
agent_id?: string;
|
|
105
108
|
}
|
|
106
109
|
interface StructureRequest {
|
|
107
|
-
action: "concept" | "pattern" | "mechanism" | "model" | "model_evaluation" | "analogy" | "inference_chain" | "reasoning_strategy" | "sensitivity_analysis" | "theorem" | "equation";
|
|
110
|
+
action: "concept" | "pattern" | "mechanism" | "model" | "model_evaluation" | "analogy" | "inference_chain" | "reasoning_strategy" | "sensitivity_analysis" | "theorem" | "equation" | "method" | "experiment";
|
|
108
111
|
label: string;
|
|
109
112
|
content: string;
|
|
110
113
|
summary?: string;
|
|
@@ -117,6 +120,7 @@ interface StructureRequest {
|
|
|
117
120
|
proven_by_uid?: string;
|
|
118
121
|
related_uids?: string[];
|
|
119
122
|
confidence?: number;
|
|
123
|
+
props?: Record<string, unknown>;
|
|
120
124
|
agent_id?: string;
|
|
121
125
|
}
|
|
122
126
|
interface CommitmentRequest {
|
|
@@ -128,6 +132,7 @@ interface CommitmentRequest {
|
|
|
128
132
|
parent_uid?: string;
|
|
129
133
|
due_date?: number;
|
|
130
134
|
motivated_by_uid?: string[];
|
|
135
|
+
props?: Record<string, unknown>;
|
|
131
136
|
agent_id?: string;
|
|
132
137
|
}
|
|
133
138
|
interface DeliberationRequest {
|
|
@@ -140,6 +145,7 @@ interface DeliberationRequest {
|
|
|
140
145
|
constraint_type?: string;
|
|
141
146
|
blocks_uid?: string;
|
|
142
147
|
informs_uid?: string[];
|
|
148
|
+
props?: Record<string, unknown>;
|
|
143
149
|
agent_id?: string;
|
|
144
150
|
}
|
|
145
151
|
interface ProcedureRequest {
|
|
@@ -153,6 +159,7 @@ interface ProcedureRequest {
|
|
|
153
159
|
control_type?: string;
|
|
154
160
|
uses_affordance_uids?: string[];
|
|
155
161
|
goal_uid?: string;
|
|
162
|
+
props?: Record<string, unknown>;
|
|
156
163
|
agent_id?: string;
|
|
157
164
|
}
|
|
158
165
|
interface RiskRequest {
|
|
@@ -165,16 +172,21 @@ interface RiskRequest {
|
|
|
165
172
|
mitigations?: string[];
|
|
166
173
|
residual_risk?: number;
|
|
167
174
|
filter_uid?: string;
|
|
175
|
+
props?: Record<string, unknown>;
|
|
168
176
|
agent_id?: string;
|
|
169
177
|
}
|
|
170
178
|
interface SessionRequest {
|
|
171
|
-
action: "open" | "trace" | "close";
|
|
179
|
+
action: "open" | "trace" | "close" | "journal";
|
|
172
180
|
label?: string;
|
|
173
181
|
focus?: string;
|
|
174
182
|
session_uid?: string;
|
|
175
183
|
trace_content?: string;
|
|
176
184
|
trace_type?: string;
|
|
177
185
|
relevant_node_uids?: string[];
|
|
186
|
+
content?: string;
|
|
187
|
+
journal_type?: string;
|
|
188
|
+
tags?: string[];
|
|
189
|
+
props?: Record<string, unknown>;
|
|
178
190
|
agent_id?: string;
|
|
179
191
|
}
|
|
180
192
|
interface DistillRequest {
|
|
@@ -183,6 +195,7 @@ interface DistillRequest {
|
|
|
183
195
|
summarizes_uids?: string[];
|
|
184
196
|
session_uid?: string;
|
|
185
197
|
importance?: number;
|
|
198
|
+
props?: Record<string, unknown>;
|
|
186
199
|
agent_id?: string;
|
|
187
200
|
}
|
|
188
201
|
interface MemoryConfigRequest {
|
|
@@ -191,6 +204,7 @@ interface MemoryConfigRequest {
|
|
|
191
204
|
key?: string;
|
|
192
205
|
value?: string;
|
|
193
206
|
policy_content?: string;
|
|
207
|
+
props?: Record<string, unknown>;
|
|
194
208
|
agent_id?: string;
|
|
195
209
|
}
|
|
196
210
|
interface PlanRequest {
|
|
@@ -205,6 +219,7 @@ interface PlanRequest {
|
|
|
205
219
|
target_uid?: string;
|
|
206
220
|
status?: string;
|
|
207
221
|
related_uids?: string[];
|
|
222
|
+
props?: Record<string, unknown>;
|
|
208
223
|
agent_id?: string;
|
|
209
224
|
}
|
|
210
225
|
interface GovernanceRequest {
|
|
@@ -219,6 +234,7 @@ interface GovernanceRequest {
|
|
|
219
234
|
resolution_note?: string;
|
|
220
235
|
requires_plan_uid?: string;
|
|
221
236
|
approval_request?: string;
|
|
237
|
+
props?: Record<string, unknown>;
|
|
222
238
|
agent_id?: string;
|
|
223
239
|
}
|
|
224
240
|
interface ExecutionRequest {
|
|
@@ -234,6 +250,7 @@ interface ExecutionRequest {
|
|
|
234
250
|
agent_role?: string;
|
|
235
251
|
filter_plan_uid?: string;
|
|
236
252
|
related_uids?: string[];
|
|
253
|
+
props?: Record<string, unknown>;
|
|
237
254
|
agent_id?: string;
|
|
238
255
|
}
|
|
239
256
|
interface RetrieveRequest {
|
|
@@ -332,6 +349,13 @@ declare class MindGraph {
|
|
|
332
349
|
procedure(req: ProcedureRequest): Promise<unknown>;
|
|
333
350
|
risk(req: RiskRequest): Promise<unknown>;
|
|
334
351
|
session(req: SessionRequest): Promise<unknown>;
|
|
352
|
+
journal(label: string, content: string, options?: {
|
|
353
|
+
session_uid?: string;
|
|
354
|
+
journal_type?: string;
|
|
355
|
+
tags?: string[];
|
|
356
|
+
relevant_node_uids?: string[];
|
|
357
|
+
agent_id?: string;
|
|
358
|
+
}): Promise<unknown>;
|
|
335
359
|
distill(req: DistillRequest): Promise<unknown>;
|
|
336
360
|
memoryConfig(req: MemoryConfigRequest): Promise<unknown>;
|
|
337
361
|
plan(req: PlanRequest): Promise<unknown>;
|
package/dist/index.js
CHANGED
|
@@ -136,6 +136,14 @@ var MindGraph = class {
|
|
|
136
136
|
async session(req) {
|
|
137
137
|
return this.post("/memory/session", req);
|
|
138
138
|
}
|
|
139
|
+
async journal(label, content, options) {
|
|
140
|
+
return this.post("/memory/session", {
|
|
141
|
+
action: "journal",
|
|
142
|
+
label,
|
|
143
|
+
content,
|
|
144
|
+
...options
|
|
145
|
+
});
|
|
146
|
+
}
|
|
139
147
|
async distill(req) {
|
|
140
148
|
return this.post("/memory/distill", req);
|
|
141
149
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -109,6 +109,14 @@ var MindGraph = class {
|
|
|
109
109
|
async session(req) {
|
|
110
110
|
return this.post("/memory/session", req);
|
|
111
111
|
}
|
|
112
|
+
async journal(label, content, options) {
|
|
113
|
+
return this.post("/memory/session", {
|
|
114
|
+
action: "journal",
|
|
115
|
+
label,
|
|
116
|
+
content,
|
|
117
|
+
...options
|
|
118
|
+
});
|
|
119
|
+
}
|
|
112
120
|
async distill(req) {
|
|
113
121
|
return this.post("/memory/distill", req);
|
|
114
122
|
}
|