@kenz1117/dsh-engram 0.7.14 → 0.7.15
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.en.md +1 -1
- package/README.md +1 -1
- package/lib/client.js +2 -2
- package/lib/client.js.map +1 -1
- package/lib/index.js +28 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2963,6 +2963,34 @@ function registerEngramRoutes(ctx, deps) {
|
|
|
2963
2963
|
});
|
|
2964
2964
|
return;
|
|
2965
2965
|
}
|
|
2966
|
+
if (req.method === "GET" && route === "observations") {
|
|
2967
|
+
const scope = scopeOf$1(url.searchParams.get("scope"), "user");
|
|
2968
|
+
const status = url.searchParams.get("status");
|
|
2969
|
+
const limit = Math.min(200, Math.max(1, Number(url.searchParams.get("limit") ?? 100) || 100));
|
|
2970
|
+
const items = await (await storeFor(scope)).listObservations({
|
|
2971
|
+
...status !== null && status !== "" && status !== "all" ? { status } : {},
|
|
2972
|
+
limit
|
|
2973
|
+
});
|
|
2974
|
+
json(res, 200, {
|
|
2975
|
+
scope,
|
|
2976
|
+
items,
|
|
2977
|
+
total: items.length
|
|
2978
|
+
});
|
|
2979
|
+
return;
|
|
2980
|
+
}
|
|
2981
|
+
if (req.method === "GET" && route === "observation-evidence") {
|
|
2982
|
+
const scope = scopeOf$1(url.searchParams.get("scope"), "user");
|
|
2983
|
+
const ids = (url.searchParams.get("ids") ?? "").split(",").map((part) => part.trim()).filter((part) => part !== "").slice(0, 50);
|
|
2984
|
+
if (ids.length === 0) {
|
|
2985
|
+
json(res, 400, { error: "ids required" });
|
|
2986
|
+
return;
|
|
2987
|
+
}
|
|
2988
|
+
json(res, 200, {
|
|
2989
|
+
scope,
|
|
2990
|
+
items: await (await storeFor(scope)).getMany(ids)
|
|
2991
|
+
});
|
|
2992
|
+
return;
|
|
2993
|
+
}
|
|
2966
2994
|
if (req.method === "GET" && route === "entities") {
|
|
2967
2995
|
const scope = scopeOf$1(url.searchParams.get("scope"), "user");
|
|
2968
2996
|
const kind = url.searchParams.get("kind");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenz1117/dsh-engram",
|
|
3
3
|
"description": "Cross-session long-term memory for DeepSeek Harness (memory palace · AGI Architecture Exploration on dsh-market): dual-scope SQLite memory graph, hybrid retrieval, provenance audit, and a knowledge flywheel.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.15",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"logo": "icon-256.svg",
|
|
7
7
|
"publishConfig": {
|