@smartmemory/sdk-js 1.4.47 → 1.4.48
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/{core-BNt44Xql.js → core-D1Y88paM.js} +20 -10
- package/dist/core.js +1 -1
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
|
@@ -567,6 +567,14 @@ class z {
|
|
|
567
567
|
async update(e, t) {
|
|
568
568
|
return this.api.patch(`/memory/${e}`, t);
|
|
569
569
|
}
|
|
570
|
+
async supersede(e, { content: t, memoryType: s, metadata: r = {}, reason: n }) {
|
|
571
|
+
return this.api.post(`/memory/${e}/supersede`, {
|
|
572
|
+
content: t,
|
|
573
|
+
memory_type: s,
|
|
574
|
+
metadata: r,
|
|
575
|
+
reason: n
|
|
576
|
+
});
|
|
577
|
+
}
|
|
570
578
|
async delete(e) {
|
|
571
579
|
return this.api.delete(`/memory/${e}`);
|
|
572
580
|
}
|
|
@@ -983,7 +991,7 @@ class E {
|
|
|
983
991
|
});
|
|
984
992
|
}
|
|
985
993
|
}
|
|
986
|
-
class
|
|
994
|
+
class x {
|
|
987
995
|
constructor(e) {
|
|
988
996
|
this.api = e;
|
|
989
997
|
}
|
|
@@ -1005,7 +1013,7 @@ class O {
|
|
|
1005
1013
|
return t.confidence !== void 0 && (s.confidence = t.confidence), t.subject !== void 0 && (s.subject = t.subject), t.subjectType !== void 0 && (s.subject_type = t.subjectType), t.disposition !== void 0 && (s.disposition = t.disposition), t.formedFrom !== void 0 && (s.formed_from = t.formedFrom), t.domain !== void 0 && (s.domain = t.domain), t.agentId !== void 0 && (s.agent_id = t.agentId), this.api.post("/memory/opinions/create", s);
|
|
1006
1014
|
}
|
|
1007
1015
|
}
|
|
1008
|
-
class
|
|
1016
|
+
class O {
|
|
1009
1017
|
constructor(e) {
|
|
1010
1018
|
this.api = e;
|
|
1011
1019
|
}
|
|
@@ -1132,16 +1140,18 @@ class F {
|
|
|
1132
1140
|
constructor(e) {
|
|
1133
1141
|
this.api = e;
|
|
1134
1142
|
}
|
|
1135
|
-
async list() {
|
|
1136
|
-
|
|
1143
|
+
async list({ includeSystem: e = !1 } = {}) {
|
|
1144
|
+
const t = e ? "?include_system=true" : "";
|
|
1145
|
+
return this.api.get(`/memory/teams${t}`);
|
|
1137
1146
|
}
|
|
1138
|
-
async create({ name: e, description: t = null, dataClassification: s = "internal", costCenter: r = null }) {
|
|
1139
|
-
|
|
1147
|
+
async create({ name: e, description: t = null, dataClassification: s = "internal", costCenter: r = null, isSystem: n = !1 }) {
|
|
1148
|
+
const i = {
|
|
1140
1149
|
name: e,
|
|
1141
1150
|
description: t,
|
|
1142
1151
|
data_classification: s,
|
|
1143
1152
|
cost_center: r
|
|
1144
|
-
}
|
|
1153
|
+
};
|
|
1154
|
+
return n && (i.is_system = !0), this.api.post("/memory/teams", i);
|
|
1145
1155
|
}
|
|
1146
1156
|
async get(e) {
|
|
1147
1157
|
return this.api.get(`/memory/teams/${e}`);
|
|
@@ -2910,7 +2920,7 @@ class me {
|
|
|
2910
2920
|
constructor(e) {
|
|
2911
2921
|
this.auth = new L(e);
|
|
2912
2922
|
const t = new M(this.auth, { fetchFn: e.fetchFn });
|
|
2913
|
-
this._api = t, this.memories = new z(t), this.decisions = new E(t), this.opinions = new
|
|
2923
|
+
this._api = t, this.memories = new z(t), this.decisions = new E(t), this.opinions = new x(t), this.graph = new O(t), this.teams = new F(t), this.profiles = new j(t), this.subscriptions = new H(t), this.authAPI = new B(t), this.agents = new K(t), this.usage = new G(t), this.insights = new D(t), this.tokenUsage = new N(t), this.temporal = new J(t), this.governance = new V(t), this.evolution = new W(t), this.reasoning = new Y(t), this.reasoningTraces = new Z(t), this.ontology = new Q(t), this.analytics = new X(t), this.validation = new ee(t), this.pipeline = new te(t), this.archive = new se(t), this.zettelkasten = new re(t), this.procedureMatches = new ne(t), this.procedureCandidates = new ie(t), this.procedureDrift = new ae(t), this.summaries = new oe(t);
|
|
2914
2924
|
}
|
|
2915
2925
|
setTeamId(e) {
|
|
2916
2926
|
this.auth.tokenManager.setTeamId(e), this.auth.notifyListeners();
|
|
@@ -2956,8 +2966,8 @@ export {
|
|
|
2956
2966
|
se as c,
|
|
2957
2967
|
B as d,
|
|
2958
2968
|
L as e,
|
|
2959
|
-
|
|
2960
|
-
|
|
2969
|
+
O as f,
|
|
2970
|
+
x as g,
|
|
2961
2971
|
ie as h,
|
|
2962
2972
|
ne as i,
|
|
2963
2973
|
j,
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as r, d as A, e as I, B as P, D as n, f as o, I as t, M as i, j as g, p as M, q as h, S as m, l as S, T as f, n as p, U as l } from "./core-
|
|
1
|
+
import { A as e, a as r, d as A, e as I, B as P, D as n, f as o, I as t, M as i, j as g, p as M, q as h, S as m, l as S, T as f, n as p, U as l } from "./core-D1Y88paM.js";
|
|
2
2
|
export {
|
|
3
3
|
e as APIError,
|
|
4
4
|
r as AgentAPI,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as f, a as u, b as A, c as b, d as P, e as h, D as I, E as g, G as x, f as p, I as w, M as m, O as k, g as v, P as T, h as B, i as y, j as C, R as E, k as S, S as R, l as F, T as M, m as L, n as O, o as G, U, V as $, Z as D } from "./core-
|
|
1
|
+
import { A as f, a as u, b as A, c as b, d as P, e as h, D as I, E as g, G as x, f as p, I as w, M as m, O as k, g as v, P as T, h as B, i as y, j as C, R as E, k as S, S as R, l as F, T as M, m as L, n as O, o as G, U, V as $, Z as D } from "./core-D1Y88paM.js";
|
|
2
2
|
const i = {
|
|
3
3
|
variables: {
|
|
4
4
|
colorBackground: "transparent",
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import h, { createContext as d, useRef as y, useState as v, useEffect as b, useCallback as c, useContext as f } from "react";
|
|
2
|
-
import { S as x } from "./core-
|
|
2
|
+
import { S as x } from "./core-D1Y88paM.js";
|
|
3
3
|
const m = d(null), g = d(null);
|
|
4
4
|
function U({ children: e, ...r }) {
|
|
5
5
|
const n = y(null);
|