dsh-mnemon-provider-supermemory 0.5.3 → 0.5.4
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 +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@ providers:
|
|
|
18
18
|
|
|
19
19
|
This is a **Memory Spaces child module**, not a top-level Source or a complete Strategy. It registers through `dsh-mnemon-source-memory-spaces/provider-sdk`; each parent Source owns its child Fibers, connection settings and lifetime. Credentials stay on the Host.
|
|
20
20
|
|
|
21
|
-
[Provider setup and capability matrix](https://github.com/omdsh-dev/dsh-mnemon/blob/
|
|
21
|
+
[Provider setup and capability matrix](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/memory-providers.md) · [中文指南](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/memory-providers.md)
|
|
22
22
|
|
|
23
23
|
## Develop independently
|
|
24
24
|
|
|
25
25
|
From a source checkout with the declared dependencies installed, run `pnpm verify`. Tests, build and public exports belong to this package, without importing another package's controllers or repository configuration. Use the Source's public `/testing` fixtures for child registration and driver conformance; live service tests require a separately authorized environment.
|
|
26
26
|
|
|
27
|
-
[Plugin author guide](https://github.com/omdsh-dev/dsh-mnemon/blob/
|
|
27
|
+
[Plugin author guide](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md)
|
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { HttpMemoryProvider, HttpProviderOptions, Insight, JsonValue, MemoryBody
|
|
|
4
4
|
declare class SupermemoryProvider extends HttpMemoryProvider implements MemoryProviderAdapter {
|
|
5
5
|
readonly id: "supermemory";
|
|
6
6
|
readonly scoreSemantics: import("dsh-mnemon-source-memory-spaces/provider-sdk").ProviderScoreSemantics;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(memorySpaces: MemorySpaceAuthority, options?: HttpProviderOptions);
|
|
8
8
|
discover(connection: Record<string, string | number | boolean>, signal?: AbortSignal): Promise<ProviderMemorySpace[]>;
|
|
9
9
|
status(body: MemoryBody, signal?: AbortSignal): Promise<ProviderBodyStatus>;
|
|
10
10
|
search(body: MemoryBody, request: SearchRequest, signal?: AbortSignal): Promise<ProviderSearchResult>;
|
package/lib/index.js
CHANGED
|
@@ -21,8 +21,8 @@ function insight(value) {
|
|
|
21
21
|
var SupermemoryProvider = class extends HttpMemoryProvider {
|
|
22
22
|
id = "supermemory";
|
|
23
23
|
scoreSemantics = NORMALIZED_RELEVANCE_SCORE;
|
|
24
|
-
constructor(
|
|
25
|
-
super(
|
|
24
|
+
constructor(memorySpaces, options = {}) {
|
|
25
|
+
super(memorySpaces, {
|
|
26
26
|
label: descriptor.label,
|
|
27
27
|
...options
|
|
28
28
|
});
|
|
@@ -175,7 +175,7 @@ const definition = defineMemorySpaceProviderDefinition({
|
|
|
175
175
|
kind: "provider",
|
|
176
176
|
typeId: descriptor.id,
|
|
177
177
|
packageName: "dsh-mnemon-provider-supermemory",
|
|
178
|
-
version: "0.5.
|
|
178
|
+
version: "0.5.4",
|
|
179
179
|
label: descriptor.label,
|
|
180
180
|
icon: descriptor.icon,
|
|
181
181
|
summary: descriptor.summary,
|
|
@@ -188,7 +188,7 @@ const definition = defineMemorySpaceProviderDefinition({
|
|
|
188
188
|
secrets: descriptor.fields.filter((field) => field.input === "secret").map((field) => field.key),
|
|
189
189
|
scoreSemantics: "normalized-relevance"
|
|
190
190
|
},
|
|
191
|
-
create: (context) => new SupermemoryProvider(context.memoryBodies, { requestTimeoutMs: context.config.timeoutMs })
|
|
191
|
+
create: (context) => new SupermemoryProvider(context.memorySpaces ?? context.memoryBodies, { requestTimeoutMs: context.config.timeoutMs })
|
|
192
192
|
});
|
|
193
193
|
var src_default = defineMemorySpaceProvider({
|
|
194
194
|
id: descriptor.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-provider-supermemory",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Supermemory Provider child for the Memory Spaces Source.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|
|
37
|
-
"dsh-mnemon-source-memory-spaces": "^0.5.
|
|
37
|
+
"dsh-mnemon-source-memory-spaces": "^0.5.4",
|
|
38
38
|
"tsdown": "^0.22.0",
|
|
39
39
|
"typescript": "^5.9.0",
|
|
40
40
|
"vitest": "^3.2.0"
|