dsh-mnemon-provider-honcho 0.5.2 → 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 +22 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
# dsh-mnemon-provider-honcho
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An adapter for Honcho workspace conclusions and peer-scoped durable memory.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Requires a configured Honcho service, workspace and peer identities. It does not synthesize graph capabilities.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Use
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The default `dsh-mnemon` Starter already installs this package. Enable and configure the service in **Settings → Memory System**, then inspect its synchronized Memory Spaces.
|
|
10
|
+
|
|
11
|
+
For a custom composition, install this package alongside `dsh-mnemon-source-memory-spaces` and include it in that Source's `config.providers`:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
providers:
|
|
15
|
+
- use: dsh-mnemon-provider-honcho
|
|
16
|
+
instanceId: honcho
|
|
17
|
+
```
|
|
18
|
+
|
|
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
|
+
|
|
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
|
+
|
|
23
|
+
## Develop independently
|
|
24
|
+
|
|
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
|
+
|
|
27
|
+
[Plugin author guide](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/development/extensions.md)
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HttpMemoryProvider, HttpProviderOptions, Insight, JsonValue, MemoryBody
|
|
|
3
3
|
//#region src/driver.d.ts
|
|
4
4
|
declare class HonchoProvider extends HttpMemoryProvider implements MemoryProviderAdapter {
|
|
5
5
|
readonly id: "honcho";
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(memorySpaces: MemorySpaceAuthority, options?: HttpProviderOptions);
|
|
7
7
|
discover(connection: Record<string, string | number | boolean>, signal?: AbortSignal): Promise<ProviderMemorySpace[]>;
|
|
8
8
|
status(body: MemoryBody, signal?: AbortSignal): Promise<ProviderBodyStatus>;
|
|
9
9
|
search(body: MemoryBody, request: SearchRequest, signal?: AbortSignal): Promise<ProviderSearchResult>;
|
package/lib/index.js
CHANGED
|
@@ -21,8 +21,8 @@ function insight(value) {
|
|
|
21
21
|
}
|
|
22
22
|
var HonchoProvider = class extends HttpMemoryProvider {
|
|
23
23
|
id = "honcho";
|
|
24
|
-
constructor(
|
|
25
|
-
super(
|
|
24
|
+
constructor(memorySpaces, options = {}) {
|
|
25
|
+
super(memorySpaces, {
|
|
26
26
|
label: descriptor.label,
|
|
27
27
|
...options
|
|
28
28
|
});
|
|
@@ -144,7 +144,7 @@ const definition = defineMemorySpaceProviderDefinition({
|
|
|
144
144
|
kind: "provider",
|
|
145
145
|
typeId: descriptor.id,
|
|
146
146
|
packageName: "dsh-mnemon-provider-honcho",
|
|
147
|
-
version: "0.5.
|
|
147
|
+
version: "0.5.4",
|
|
148
148
|
label: descriptor.label,
|
|
149
149
|
icon: descriptor.icon,
|
|
150
150
|
summary: descriptor.summary,
|
|
@@ -157,7 +157,7 @@ const definition = defineMemorySpaceProviderDefinition({
|
|
|
157
157
|
secrets: descriptor.fields.filter((field) => field.input === "secret").map((field) => field.key),
|
|
158
158
|
scoreSemantics: "provider-native"
|
|
159
159
|
},
|
|
160
|
-
create: (context) => new HonchoProvider(context.memoryBodies, { requestTimeoutMs: context.config.timeoutMs })
|
|
160
|
+
create: (context) => new HonchoProvider(context.memorySpaces ?? context.memoryBodies, { requestTimeoutMs: context.config.timeoutMs })
|
|
161
161
|
});
|
|
162
162
|
var src_default = defineMemorySpaceProvider({
|
|
163
163
|
id: descriptor.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-provider-honcho",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Honcho 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"
|