dsh-mnemon 0.2.16 → 0.3.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/README.md +16 -8
- package/README.zh-CN.md +16 -8
- package/SECURITY.md +12 -5
- package/lib/client.js +294 -33
- package/lib/contracts.js +36 -0
- package/lib/extension-sdk.js +238 -0
- package/lib/index.js +1944 -2865
- package/lib/kernel.js +1126 -0
- package/lib/layers/documents.js +31 -0
- package/lib/layers/memory-spaces.js +34 -0
- package/lib/layers/runtime.js +27 -0
- package/lib/provider-sdk.js +2 -0
- package/lib/registry-B9SdBRLo.js +2423 -0
- package/lib/strategy-default-three-tier.js +99 -0
- package/lib/strategy-sdk.js +56 -0
- package/lib/types/packages/contracts/src/index.d.ts +221 -0
- package/lib/types/packages/extension-sdk/src/index.d.ts +54 -0
- package/lib/types/packages/kernel/src/access.d.ts +14 -0
- package/lib/types/packages/kernel/src/catalog.d.ts +42 -0
- package/lib/types/packages/kernel/src/index.d.ts +5 -0
- package/lib/types/packages/kernel/src/kernel.d.ts +46 -0
- package/lib/types/packages/kernel/src/topology.d.ts +25 -0
- package/lib/types/packages/kernel/src/view.d.ts +78 -0
- package/lib/types/packages/layer-documents/src/index.d.ts +4 -0
- package/lib/types/packages/layer-memory-spaces/src/index.d.ts +4 -0
- package/lib/types/packages/layer-runtime/src/index.d.ts +4 -0
- package/lib/types/packages/provider-sdk/src/index.d.ts +19 -0
- package/lib/types/packages/strategy-default-three-tier/src/index.d.ts +7 -0
- package/lib/types/packages/strategy-sdk/src/index.d.ts +35 -0
- package/lib/types/{client → src/client}/api.d.ts +2 -1
- package/lib/types/{client → src/client}/locales.d.ts +38 -0
- package/lib/types/{contracts.d.ts → src/contracts.d.ts} +3 -0
- package/lib/types/{documents.d.ts → src/documents.d.ts} +7 -2
- package/lib/types/src/guidance.d.ts +23 -0
- package/lib/types/{index.d.ts → src/index.d.ts} +3 -1
- package/lib/types/{lifecycle.d.ts → src/lifecycle.d.ts} +5 -9
- package/lib/types/{live-runtime.d.ts → src/live-runtime.d.ts} +30 -3
- package/lib/types/{memory-bodies.d.ts → src/memory-bodies.d.ts} +3 -0
- package/lib/types/src/memory-receipts.d.ts +21 -0
- package/lib/types/src/memory-system/access.d.ts +2 -0
- package/lib/types/src/memory-system/catalog.d.ts +2 -0
- package/lib/types/src/memory-system/contracts.d.ts +2 -0
- package/lib/types/src/memory-system/defaults.d.ts +6 -0
- package/lib/types/src/memory-system/index.d.ts +7 -0
- package/lib/types/src/memory-system/kernel.d.ts +2 -0
- package/lib/types/src/memory-system/topology.d.ts +2 -0
- package/lib/types/src/memory-system/view.d.ts +2 -0
- package/lib/types/src/memory-view.d.ts +15 -0
- package/lib/types/src/provider-sdk.d.ts +4 -0
- package/lib/types/src/providers/memory-system.d.ts +6 -0
- package/lib/types/src/providers/registry.d.ts +23 -0
- package/lib/types/{runtime-memory.d.ts → src/runtime-memory.d.ts} +14 -5
- package/lib/types/src/search-tokens.d.ts +5 -0
- package/lib/types/{service.d.ts → src/service.d.ts} +9 -1
- package/lib/types/{shared → src/shared}/contracts.d.ts +25 -0
- package/lib/types/{subagent.d.ts → src/subagent.d.ts} +29 -21
- package/lib/types/{tools.d.ts → src/tools.d.ts} +2 -9
- package/package.json +42 -6
- package/lib/types/guidance.d.ts +0 -11
- /package/lib/types/{activity.d.ts → src/activity.d.ts} +0 -0
- /package/lib/types/{channels.d.ts → src/channels.d.ts} +0 -0
- /package/lib/types/{client → src/client}/GlobalLocationSetting.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonDialog.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonLogo.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonPackSection.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonSaveAction.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonSettingsCard.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonTurnTail.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonView.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonViewAppearance.d.ts +0 -0
- /package/lib/types/{client → src/client}/ProviderIcon.d.ts +0 -0
- /package/lib/types/{client → src/client}/ProviderSettingsSection.d.ts +0 -0
- /package/lib/types/{client → src/client}/anchor.d.ts +0 -0
- /package/lib/types/{client → src/client}/dsh-compat.d.ts +0 -0
- /package/lib/types/{client → src/client}/index.d.ts +0 -0
- /package/lib/types/{client → src/client}/settings.d.ts +0 -0
- /package/lib/types/{client → src/client}/sidebar-entry.d.ts +0 -0
- /package/lib/types/{client → src/client}/use-request-version.d.ts +0 -0
- /package/lib/types/{client → src/client}/workspace-controller.d.ts +0 -0
- /package/lib/types/{client → src/client}/workspace-mount.d.ts +0 -0
- /package/lib/types/{commands.d.ts → src/commands.d.ts} +0 -0
- /package/lib/types/{config-values.d.ts → src/config-values.d.ts} +0 -0
- /package/lib/types/{config.d.ts → src/config.d.ts} +0 -0
- /package/lib/types/{pack.d.ts → src/pack.d.ts} +0 -0
- /package/lib/types/{process.d.ts → src/process.d.ts} +0 -0
- /package/lib/types/{provider-placement.d.ts → src/provider-placement.d.ts} +0 -0
- /package/lib/types/{providers → src/providers}/byterover.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/catalog.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/hindsight.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/holographic.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/honcho.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/http.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/mem0.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/openviking.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/provider.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/retaindb.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/supermemory.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/contracts.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/engine.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/index.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/policies.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/registry.d.ts +0 -0
- /package/lib/types/{review-activity.d.ts → src/review-activity.d.ts} +0 -0
- /package/lib/types/{rpc.d.ts → src/rpc.d.ts} +0 -0
- /package/lib/types/{runner.d.ts → src/runner.d.ts} +0 -0
- /package/lib/types/{settings.d.ts → src/settings.d.ts} +0 -0
- /package/lib/types/{storage-scope.d.ts → src/storage-scope.d.ts} +0 -0
- /package/lib/types/{version-updates.d.ts → src/version-updates.d.ts} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const DOCUMENTS_MEMORY_LAYER = Object.freeze({
|
|
2
|
+
id: "documents",
|
|
3
|
+
label: "Documents",
|
|
4
|
+
description: "Versioned narrative documents searched first and read in full on demand.",
|
|
5
|
+
role: "narrative",
|
|
6
|
+
order: 200,
|
|
7
|
+
capabilities: [
|
|
8
|
+
"status",
|
|
9
|
+
"project",
|
|
10
|
+
"recall",
|
|
11
|
+
"search",
|
|
12
|
+
"read",
|
|
13
|
+
"browse",
|
|
14
|
+
"write",
|
|
15
|
+
"archive",
|
|
16
|
+
"maintain",
|
|
17
|
+
"export",
|
|
18
|
+
"import"
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
function registerDocumentsMemoryLayer(catalog, registration = {}) {
|
|
22
|
+
return catalog.registerLayer({
|
|
23
|
+
descriptor: {
|
|
24
|
+
...DOCUMENTS_MEMORY_LAYER,
|
|
25
|
+
capabilities: [...DOCUMENTS_MEMORY_LAYER.capabilities]
|
|
26
|
+
},
|
|
27
|
+
...registration
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { DOCUMENTS_MEMORY_LAYER, registerDocumentsMemoryLayer };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const MEMORY_SPACES_LAYER = Object.freeze({
|
|
2
|
+
id: "memory-spaces",
|
|
3
|
+
label: "Memory Spaces",
|
|
4
|
+
description: "Provider-backed durable evidence recalled across tasks and sessions.",
|
|
5
|
+
role: "durable-evidence",
|
|
6
|
+
order: 300,
|
|
7
|
+
capabilities: [
|
|
8
|
+
"status",
|
|
9
|
+
"project",
|
|
10
|
+
"recall",
|
|
11
|
+
"search",
|
|
12
|
+
"read",
|
|
13
|
+
"browse",
|
|
14
|
+
"write",
|
|
15
|
+
"graph",
|
|
16
|
+
"related",
|
|
17
|
+
"link",
|
|
18
|
+
"forget",
|
|
19
|
+
"maintain",
|
|
20
|
+
"export",
|
|
21
|
+
"import"
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
function registerMemorySpacesLayer(catalog, registration = {}) {
|
|
25
|
+
return catalog.registerLayer({
|
|
26
|
+
descriptor: {
|
|
27
|
+
...MEMORY_SPACES_LAYER,
|
|
28
|
+
capabilities: [...MEMORY_SPACES_LAYER.capabilities]
|
|
29
|
+
},
|
|
30
|
+
...registration
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { MEMORY_SPACES_LAYER, registerMemorySpacesLayer };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const RUNTIME_MEMORY_LAYER = Object.freeze({
|
|
2
|
+
id: "runtime",
|
|
3
|
+
label: "Runtime Memory",
|
|
4
|
+
description: "Bounded, deterministic memory projected into every eligible turn.",
|
|
5
|
+
role: "working-context",
|
|
6
|
+
order: 100,
|
|
7
|
+
capabilities: [
|
|
8
|
+
"status",
|
|
9
|
+
"project",
|
|
10
|
+
"read",
|
|
11
|
+
"write",
|
|
12
|
+
"maintain",
|
|
13
|
+
"export",
|
|
14
|
+
"import"
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
function registerRuntimeMemoryLayer(catalog, registration = {}) {
|
|
18
|
+
return catalog.registerLayer({
|
|
19
|
+
descriptor: {
|
|
20
|
+
...RUNTIME_MEMORY_LAYER,
|
|
21
|
+
capabilities: [...RUNTIME_MEMORY_LAYER.capabilities]
|
|
22
|
+
},
|
|
23
|
+
...registration
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { RUNTIME_MEMORY_LAYER, registerRuntimeMemoryLayer };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as MemoryAdapterFactoryRegistry, i as registerMemoryProviderAdapterFactory, n as createBuiltinMemoryProviderAdapterRegistry, o as defineMemoryAdapterDescriptor, r as memoryProviderAdapterFactories, t as MemoryProviderAdapterRegistry } from "./registry-B9SdBRLo.js";
|
|
2
|
+
export { MemoryAdapterFactoryRegistry, MemoryProviderAdapterRegistry, createBuiltinMemoryProviderAdapterRegistry, defineMemoryAdapterDescriptor, memoryProviderAdapterFactories, registerMemoryProviderAdapterFactory };
|