dsh-mnemon-source-memory-spaces 0.5.12 → 0.5.14
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/lib/client.js +306 -305
- package/lib/{definitions-C5y84OE6.d.ts → definitions-DwiEZSE_.d.ts} +14 -9
- package/lib/index.d.ts +1 -1
- package/lib/index.js +37 -5
- package/lib/{process-BvrgxPNP.js → process-DIK9NnTg.js} +14 -6
- package/lib/provider-sdk.d.ts +9 -2
- package/lib/provider-sdk.js +2 -2
- package/lib/testing.d.ts +1 -1
- package/lib/types/client/pages.d.ts +2 -1
- package/package.json +5 -5
- package/presentation/locales.json +62 -88
- package/presentation/page.module.css +10 -28
- package/presentation/sidebar.module.css +3 -3
|
@@ -9,16 +9,21 @@ interface MemorySpaceAuthority {
|
|
|
9
9
|
list(): MemorySpace[];
|
|
10
10
|
providerConnection(id: string, expectedProviderId?: string): MemoryProviderConnection;
|
|
11
11
|
}
|
|
12
|
+
/** Per-call options of the Native command transport. */
|
|
13
|
+
interface MemorySpaceNativeRunOptions {
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
store?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Output cap for this call, in bytes (default 2 MiB). Raise it only for reads
|
|
18
|
+
* whose size the Store itself bounds, such as a whole-Store dump; Source
|
|
19
|
+
* hosts older than 0.5.14 ignore it and keep the default.
|
|
20
|
+
*/
|
|
21
|
+
maxOutputBytes?: number;
|
|
22
|
+
}
|
|
12
23
|
/** Scoped command transport consumed by the Native Provider. */
|
|
13
24
|
interface MemorySpaceNativeRunner {
|
|
14
|
-
runJson(args: readonly string[], options?:
|
|
15
|
-
|
|
16
|
-
store?: string;
|
|
17
|
-
}): Promise<JsonValue>;
|
|
18
|
-
runText(args: readonly string[], options?: {
|
|
19
|
-
signal?: AbortSignal;
|
|
20
|
-
store?: string;
|
|
21
|
-
}): Promise<string>;
|
|
25
|
+
runJson(args: readonly string[], options?: MemorySpaceNativeRunOptions): Promise<JsonValue>;
|
|
26
|
+
runText(args: readonly string[], options?: MemorySpaceNativeRunOptions): Promise<string>;
|
|
22
27
|
}
|
|
23
28
|
interface MemoryProviderAdapterFactoryContext {
|
|
24
29
|
/** Canonical name; optional while older Source hosts remain supported. */
|
|
@@ -137,4 +142,4 @@ interface MemorySpaceProviderEntry<Config = unknown> {
|
|
|
137
142
|
declare function defineMemorySpaceProvider<Config>(module: MemorySpaceProviderModule<Config>): MemorySpaceProviderModule<Config>;
|
|
138
143
|
declare function defineMemorySpaceProviderDefinition(definition: MemorySpaceProviderDefinition): MemorySpaceProviderDefinition;
|
|
139
144
|
//#endregion
|
|
140
|
-
export { ProviderSpaceStatus as S,
|
|
145
|
+
export { ProviderSpaceStatus as C, ProviderSearchResult as S, MemorySpaceNativeRunner as _, MemorySpaceProviderHost as a, ProviderMemorySpace as b, MemorySpaceProviderRuntimeContext as c, defineMemorySpaceProviderDefinition as d, MemoryProviderAdapter as f, MemorySpaceNativeRunOptions as g, MemorySpaceAuthority as h, MemorySpaceProviderEntry as i, MemorySpaceProviderScoreSemantics as l, MemoryProviderScoreSemantics as m, MemorySpaceProviderDefinition as n, MemorySpaceProviderManifest as o, MemoryProviderAdapterFactoryContext as p, MemorySpaceProviderDisposer as r, MemorySpaceProviderModule as s, MEMORY_SPACE_PROVIDER_API_VERSION as t, defineMemorySpaceProvider as u, NORMALIZED_RELEVANCE_SCORE as v, ProviderScoreSemantics as x, ProviderBodyStatus as y };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AutomaticMemoryPlacementRequest, CATEGORIES, Category, CreateMemoryBodyRequest, CreateMemorySpaceRequest, DEFAULT_EMBEDDING_ENDPOINT, DEFAULT_EMBEDDING_MODEL, DEFAULT_EMBEDDING_PROTOCOL, EDGE_TYPES, EMBEDDING_PROTOCOL_AUTO, EMBEDDING_PROTOCOL_OLLAMA, EMBEDDING_PROTOCOL_OPENAI, EdgeType, EntityView, INTENTS, Insight, Intent, JsonValue, LlmMemoryPlacementSelection, MNEMON_EMBEDDING_PROTOCOLS, MemoryBody, MemoryBodyCatalog, MemoryBodyMetadataMaintenanceResult, MemoryBodyMetadataSample, MemoryBodyMetadataUpdate, MemoryBodyProvider, MemoryBodyStats, MemoryBodyView, MemoryGraphEdge, MemoryGraphNode, MemoryGraphSnapshot, MemoryListRequest, MemoryListView, MemoryPersistenceStrategy, MemoryPlacementCandidate, MemoryPlacementCapability, MemoryPlacementDecision, MemoryPlacementPreference, MemoryPlacementRules, MemoryProviderCapabilities, MemoryProviderConfigField, MemoryProviderConfigOption, MemoryProviderConnection, MemoryProviderConnectionValue, MemoryProviderDescriptor, MemoryProviderIcon, MemoryProviderId, MemoryProviderRuntimeStatus, MemoryProviderServiceCatalog, MemoryProviderServiceView, MemoryReadMode, MemoryReadSource, MemoryReadStatus, MemorySpace, MemorySpaceCatalog, MemorySpaceMetadataMaintenanceResult, MemorySpaceMetadataSample, MemorySpaceMetadataUpdate, MemorySpaceProvider, MemorySpaceStats, MemorySpaceView, MemorySpaceWriteScope, MemorySpaceWriteScopeRequest, MemorySpacesStatus, MnemonEmbeddingConfig, MnemonEmbeddingProtocol, MnemonEmbeddingStatus, OpenVikingBodyConnection, OpenVikingSpaceConnection, PreparedMemoryPlacement, RecallQualityConfig, RecallQualityStats, RecallRelevanceTier, RememberRequest, ResolvedMemoryPersistenceStrategy, ResolvedMnemonEmbeddingConfig, ResolvedRecallQualityConfig, SOURCES, SearchRequest, Source, UpdateMemoryBodyRequest, UpdateMemoryProviderServiceRequest, UpdateMemorySpaceRequest } from "./contracts.js";
|
|
2
|
-
import { i as MemorySpaceProviderEntry } from "./definitions-
|
|
2
|
+
import { i as MemorySpaceProviderEntry } from "./definitions-DwiEZSE_.js";
|
|
3
3
|
import z from "@deepseek-ai/schemastery";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
//#region src/config.d.ts
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { findMnemonCommand, isMnemonExecutable, resolveMnemonInvocation } from "./native-cli.js";
|
|
2
2
|
import { CATEGORIES as CATEGORIES$1, EDGE_TYPES, INTENTS as INTENTS$1, MNEMON_EMBEDDING_PROTOCOLS, SOURCES as SOURCES$1 } from "./contracts.js";
|
|
3
3
|
import { a as MemoryProviderCatalog, i as EMPTY_MEMORY_PROVIDER_CATALOG, n as PrivateMemorySpaceProviderHost, r as MemoryProviderAdapterRegistry, t as createMemorySpaceProviderPlugin } from "./plugin-DlsNeZbQ.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as ProcessError, r as runProcess } from "./process-DIK9NnTg.js";
|
|
5
5
|
import { r as defineMemorySpaceProvider } from "./definitions-DfmOqJjR.js";
|
|
6
6
|
import { existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { homedir, tmpdir } from "node:os";
|
|
@@ -1374,6 +1374,17 @@ var MemorySpacesService = class {
|
|
|
1374
1374
|
recallQualityPolicy;
|
|
1375
1375
|
spacesInFlight;
|
|
1376
1376
|
providersDisposed = false;
|
|
1377
|
+
/** The CLI version a full status last read, and the binary it read it from. */
|
|
1378
|
+
cliVersion;
|
|
1379
|
+
/** The CLI binary as the file system has it; another value after an update replaces it. */
|
|
1380
|
+
cliBinary() {
|
|
1381
|
+
try {
|
|
1382
|
+
const stat = statSync(this.runner.command);
|
|
1383
|
+
return `${this.runner.command}\0${stat.mtimeMs}\0${stat.size}`;
|
|
1384
|
+
} catch {
|
|
1385
|
+
return;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1377
1388
|
providerTypeId(providerId) {
|
|
1378
1389
|
const catalog = this.providerCatalog;
|
|
1379
1390
|
if (!catalog.has(providerId)) return providerId;
|
|
@@ -1524,6 +1535,7 @@ var MemorySpacesService = class {
|
|
|
1524
1535
|
/** Return a usable system snapshot without waiting for any Provider I/O. */
|
|
1525
1536
|
statusSummary() {
|
|
1526
1537
|
const catalog = this.spaceDirectory();
|
|
1538
|
+
const version = this.cliVersion !== void 0 && this.cliBinary() === this.cliVersion.binary ? this.cliVersion.version : void 0;
|
|
1527
1539
|
const dshActiveStores = catalog.items.filter((body) => body.active && body.providerEnabled !== false).map((body) => body.id);
|
|
1528
1540
|
const providerServices = this.memorySpaces.providerServices().items.map((service) => {
|
|
1529
1541
|
const descriptor = this.providerCatalog.descriptor(service.providerId);
|
|
@@ -1554,7 +1566,8 @@ var MemorySpacesService = class {
|
|
|
1554
1566
|
recallQuality: this.config.recallQuality,
|
|
1555
1567
|
memoryBodyDirectory: catalog.directory,
|
|
1556
1568
|
memoryBodies: catalog.items,
|
|
1557
|
-
providerServices
|
|
1569
|
+
providerServices,
|
|
1570
|
+
...version === void 0 ? {} : { version }
|
|
1558
1571
|
};
|
|
1559
1572
|
}
|
|
1560
1573
|
/** Probe the effective Mnemon embedding runtime and its default Store coverage. */
|
|
@@ -1620,6 +1633,12 @@ var MemorySpacesService = class {
|
|
|
1620
1633
|
memoryBodies: catalog.items,
|
|
1621
1634
|
providerServices
|
|
1622
1635
|
};
|
|
1636
|
+
const version = rawVersion === void 0 ? void 0 : rawVersion.trim().replace(/^mnemon version\s+/i, "");
|
|
1637
|
+
const binary = version === void 0 ? void 0 : this.cliBinary();
|
|
1638
|
+
this.cliVersion = version === void 0 || binary === void 0 ? void 0 : {
|
|
1639
|
+
binary,
|
|
1640
|
+
version
|
|
1641
|
+
};
|
|
1623
1642
|
try {
|
|
1624
1643
|
const healthySpaces = active.filter((body) => body.healthy && body.stats !== void 0);
|
|
1625
1644
|
const topEntities = /* @__PURE__ */ new Map();
|
|
@@ -1645,7 +1664,7 @@ var MemorySpacesService = class {
|
|
|
1645
1664
|
return {
|
|
1646
1665
|
healthy: true,
|
|
1647
1666
|
...base,
|
|
1648
|
-
...
|
|
1667
|
+
...version === void 0 ? {} : { version },
|
|
1649
1668
|
stats,
|
|
1650
1669
|
...errors.length === 0 ? {} : { error: errors.join("; ") }
|
|
1651
1670
|
};
|
|
@@ -2348,6 +2367,18 @@ const EMBEDDING_ENVIRONMENT_KEYS = /* @__PURE__ */ new Set([
|
|
|
2348
2367
|
"MNEMON_EMBED_API_KEY",
|
|
2349
2368
|
"MNEMON_EMBED_PROTOCOL"
|
|
2350
2369
|
]);
|
|
2370
|
+
/**
|
|
2371
|
+
* Explain a CLI call that produced no result. Only a failed launch means the
|
|
2372
|
+
* executable is missing or unusable, so only that case carries the install
|
|
2373
|
+
* hint; a timeout, a cancellation or an oversized output names its own cause.
|
|
2374
|
+
*/
|
|
2375
|
+
function processFailureMessage(error, args) {
|
|
2376
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
2377
|
+
const reason = error instanceof ProcessError ? error.reason : "launch";
|
|
2378
|
+
if (reason === "output-limit") return `mnemon ${args.find((arg) => !arg.startsWith("-")) ?? "command"} stopped: ${detail.replace(/^mnemon /u, "")}`;
|
|
2379
|
+
if (reason !== "launch") return detail;
|
|
2380
|
+
return `${detail}. ${process.platform === "win32" ? "Install the official Mnemon Windows release, ensure mnemon.exe is on PATH or under %LOCALAPPDATA%\\Programs\\mnemon, or set MNEMON_CLI_PATH or mnemon.cliPath to its absolute path." : "Install Mnemon and ensure \"mnemon\" is on PATH, or set MNEMON_CLI_PATH or mnemon.cliPath."}`;
|
|
2381
|
+
}
|
|
2351
2382
|
/** Preserve the Host environment while making saved embedding overrides authoritative. */
|
|
2352
2383
|
function processEnvironment(config) {
|
|
2353
2384
|
if (!config.embedding.enabled) return void 0;
|
|
@@ -2383,7 +2414,8 @@ function createRunner(config, processRunner = runProcess) {
|
|
|
2383
2414
|
const processOptions = {
|
|
2384
2415
|
timeoutMs: config.timeoutMs,
|
|
2385
2416
|
...environment === void 0 ? {} : { env: environment },
|
|
2386
|
-
...options.signal === void 0 ? {} : { signal: options.signal }
|
|
2417
|
+
...options.signal === void 0 ? {} : { signal: options.signal },
|
|
2418
|
+
...options.maxOutputBytes === void 0 ? {} : { maxOutputBytes: options.maxOutputBytes }
|
|
2387
2419
|
};
|
|
2388
2420
|
let result;
|
|
2389
2421
|
try {
|
|
@@ -2393,7 +2425,7 @@ function createRunner(config, processRunner = runProcess) {
|
|
|
2393
2425
|
...invocation.env === void 0 ? {} : { env: invocation.env }
|
|
2394
2426
|
});
|
|
2395
2427
|
} catch (error) {
|
|
2396
|
-
throw new MnemonCliError(
|
|
2428
|
+
throw new MnemonCliError(processFailureMessage(error, args));
|
|
2397
2429
|
}
|
|
2398
2430
|
if (result.exitCode !== 0) {
|
|
2399
2431
|
const detail = result.stderr.trim() || result.stdout.trim() || "no output";
|
|
@@ -4,6 +4,14 @@ import { StringDecoder } from "node:string_decoder";
|
|
|
4
4
|
const NORMALIZED_RELEVANCE_SCORE = Object.freeze({ kind: "normalized-relevance" });
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/providers/process.ts
|
|
7
|
+
var ProcessError = class extends Error {
|
|
8
|
+
reason;
|
|
9
|
+
constructor(message, reason) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.reason = reason;
|
|
12
|
+
this.name = "ProcessError";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
7
15
|
const DEFAULT_MAX_OUTPUT_BYTES = 2097152;
|
|
8
16
|
/** Spawn without a shell, with bounded output and cooperative cancellation. */
|
|
9
17
|
const runProcess = (command, args, options) => new Promise((resolve, reject) => {
|
|
@@ -19,7 +27,7 @@ const runProcess = (command, args, options) => new Promise((resolve, reject) =>
|
|
|
19
27
|
...options.cwd === void 0 ? {} : { cwd: options.cwd },
|
|
20
28
|
...options.env === void 0 ? {} : { env: options.env }
|
|
21
29
|
});
|
|
22
|
-
const maxOutputBytes = options.maxOutputBytes ??
|
|
30
|
+
const maxOutputBytes = options.maxOutputBytes ?? 2097152;
|
|
23
31
|
let stdout = "";
|
|
24
32
|
let stderr = "";
|
|
25
33
|
const stdoutDecoder = new StringDecoder("utf8");
|
|
@@ -45,13 +53,13 @@ const runProcess = (command, args, options) => new Promise((resolve, reject) =>
|
|
|
45
53
|
};
|
|
46
54
|
const abort = () => {
|
|
47
55
|
stop();
|
|
48
|
-
finish(
|
|
56
|
+
finish(new ProcessError(`${label} command aborted: ${String(options.signal?.reason ?? "cancelled")}`, "aborted"));
|
|
49
57
|
};
|
|
50
58
|
const append = (target, chunk) => {
|
|
51
59
|
outputBytes += chunk.byteLength;
|
|
52
60
|
if (outputBytes > maxOutputBytes) {
|
|
53
61
|
stop();
|
|
54
|
-
finish(
|
|
62
|
+
finish(new ProcessError(`${label} output exceeded ${maxOutputBytes} bytes`, "output-limit"));
|
|
55
63
|
return;
|
|
56
64
|
}
|
|
57
65
|
if (target === "stdout") stdout += stdoutDecoder.write(chunk);
|
|
@@ -64,7 +72,7 @@ const runProcess = (command, args, options) => new Promise((resolve, reject) =>
|
|
|
64
72
|
append("stderr", chunk);
|
|
65
73
|
});
|
|
66
74
|
child.on("error", (error) => {
|
|
67
|
-
finish(
|
|
75
|
+
finish(new ProcessError(`failed to launch ${label} (${JSON.stringify(command)}): ${error.message}`, "launch"));
|
|
68
76
|
});
|
|
69
77
|
child.on("close", (exitCode) => {
|
|
70
78
|
stdout += stdoutDecoder.end();
|
|
@@ -77,10 +85,10 @@ const runProcess = (command, args, options) => new Promise((resolve, reject) =>
|
|
|
77
85
|
});
|
|
78
86
|
const timeout = setTimeout(() => {
|
|
79
87
|
stop();
|
|
80
|
-
finish(
|
|
88
|
+
finish(new ProcessError(`${label} did not respond within ${options.timeoutMs}ms`, "timeout"));
|
|
81
89
|
}, options.timeoutMs);
|
|
82
90
|
if (options.signal?.aborted === true) abort();
|
|
83
91
|
else options.signal?.addEventListener("abort", abort, { once: true });
|
|
84
92
|
});
|
|
85
93
|
//#endregion
|
|
86
|
-
export { NORMALIZED_RELEVANCE_SCORE as n, runProcess as t };
|
|
94
|
+
export { NORMALIZED_RELEVANCE_SCORE as i, ProcessError as n, runProcess as r, DEFAULT_MAX_OUTPUT_BYTES as t };
|
package/lib/provider-sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CATEGORIES, Category, EDGE_TYPES, EdgeType, INTENTS, Insight, Intent, JsonValue, MemoryBody, MemoryBodyProvider, MemoryBodyStats, MemoryGraphEdge, MemoryGraphNode, MemoryGraphSnapshot, MemoryListRequest, MemoryProviderCapabilities, MemoryProviderConfigField, MemoryProviderConfigOption, MemoryProviderConnection, MemoryProviderConnectionValue, MemoryProviderDescriptor, MemoryProviderIcon, MemoryProviderId, MemorySpace, MemorySpaceProvider, MemorySpaceStats, OpenVikingBodyConnection, OpenVikingSpaceConnection, RememberRequest, SOURCES, SearchRequest, Source } from "./contracts.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as ProviderSpaceStatus, S as ProviderSearchResult, _ as MemorySpaceNativeRunner, a as MemorySpaceProviderHost, b as ProviderMemorySpace, c as MemorySpaceProviderRuntimeContext, d as defineMemorySpaceProviderDefinition, f as MemoryProviderAdapter, g as MemorySpaceNativeRunOptions, h as MemorySpaceAuthority, i as MemorySpaceProviderEntry, l as MemorySpaceProviderScoreSemantics, m as MemoryProviderScoreSemantics, n as MemorySpaceProviderDefinition, o as MemorySpaceProviderManifest, p as MemoryProviderAdapterFactoryContext, r as MemorySpaceProviderDisposer, s as MemorySpaceProviderModule, t as MEMORY_SPACE_PROVIDER_API_VERSION, u as defineMemorySpaceProvider, v as NORMALIZED_RELEVANCE_SCORE, x as ProviderScoreSemantics, y as ProviderBodyStatus } from "./definitions-DwiEZSE_.js";
|
|
3
3
|
//#region src/providers/http.d.ts
|
|
4
4
|
interface HttpProviderOptions {
|
|
5
5
|
label?: string;
|
|
@@ -50,7 +50,14 @@ interface ProcessOptions {
|
|
|
50
50
|
label?: string | undefined;
|
|
51
51
|
}
|
|
52
52
|
type ProcessRunner = (command: string, args: readonly string[], options: ProcessOptions) => Promise<ProcessResult>;
|
|
53
|
+
/** Why a process did not produce a result, so callers can explain each case differently. */
|
|
54
|
+
type ProcessFailureReason = 'launch' | 'timeout' | 'aborted' | 'output-limit';
|
|
55
|
+
declare class ProcessError extends Error {
|
|
56
|
+
readonly reason: ProcessFailureReason;
|
|
57
|
+
constructor(message: string, reason: ProcessFailureReason);
|
|
58
|
+
}
|
|
59
|
+
declare const DEFAULT_MAX_OUTPUT_BYTES: number;
|
|
53
60
|
/** Spawn without a shell, with bounded output and cooperative cancellation. */
|
|
54
61
|
declare const runProcess: ProcessRunner;
|
|
55
62
|
//#endregion
|
|
56
|
-
export { CATEGORIES, type Category, EDGE_TYPES, type EdgeType, HttpMemoryProvider, HttpProviderOptions, INTENTS, type Insight, type Intent, JsonRequestOptions, type JsonValue, MEMORY_SPACE_PROVIDER_API_VERSION, type MemoryBody, type MemoryBodyProvider, type MemoryBodyStats, type MemoryGraphEdge, type MemoryGraphNode, type MemoryGraphSnapshot, type MemoryListRequest, MemoryProviderAdapter, MemoryProviderAdapterFactoryContext, type MemoryProviderCapabilities, type MemoryProviderConfigField, type MemoryProviderConfigOption, type MemoryProviderConnection, type MemoryProviderConnectionValue, type MemoryProviderDescriptor, type MemoryProviderIcon, type MemoryProviderId, MemoryProviderScoreSemantics, type MemorySpace, MemorySpaceAuthority, MemorySpaceNativeRunner, type MemorySpaceProvider, type MemorySpaceProviderDefinition, type MemorySpaceProviderDisposer, type MemorySpaceProviderEntry, type MemorySpaceProviderHost, type MemorySpaceProviderManifest, type MemorySpaceProviderModule, type MemorySpaceProviderRuntimeContext, type MemorySpaceProviderScoreSemantics, type MemorySpaceStats, NORMALIZED_RELEVANCE_SCORE, type OpenVikingBodyConnection, type OpenVikingSpaceConnection, ProcessOptions, ProcessResult, ProcessRunner, ProviderBodyStatus, ProviderMemorySpace, ProviderScoreSemantics, ProviderSearchResult, ProviderSpaceStatus, type RememberRequest, SOURCES, type SearchRequest, type Source, defineMemorySpaceProvider, defineMemorySpaceProviderDefinition, firstArray, jsonArray, jsonNumber, jsonObject, jsonString, runProcess };
|
|
63
|
+
export { CATEGORIES, type Category, DEFAULT_MAX_OUTPUT_BYTES, EDGE_TYPES, type EdgeType, HttpMemoryProvider, HttpProviderOptions, INTENTS, type Insight, type Intent, JsonRequestOptions, type JsonValue, MEMORY_SPACE_PROVIDER_API_VERSION, type MemoryBody, type MemoryBodyProvider, type MemoryBodyStats, type MemoryGraphEdge, type MemoryGraphNode, type MemoryGraphSnapshot, type MemoryListRequest, MemoryProviderAdapter, MemoryProviderAdapterFactoryContext, type MemoryProviderCapabilities, type MemoryProviderConfigField, type MemoryProviderConfigOption, type MemoryProviderConnection, type MemoryProviderConnectionValue, type MemoryProviderDescriptor, type MemoryProviderIcon, type MemoryProviderId, MemoryProviderScoreSemantics, type MemorySpace, MemorySpaceAuthority, MemorySpaceNativeRunOptions, MemorySpaceNativeRunner, type MemorySpaceProvider, type MemorySpaceProviderDefinition, type MemorySpaceProviderDisposer, type MemorySpaceProviderEntry, type MemorySpaceProviderHost, type MemorySpaceProviderManifest, type MemorySpaceProviderModule, type MemorySpaceProviderRuntimeContext, type MemorySpaceProviderScoreSemantics, type MemorySpaceStats, NORMALIZED_RELEVANCE_SCORE, type OpenVikingBodyConnection, type OpenVikingSpaceConnection, ProcessError, ProcessFailureReason, ProcessOptions, ProcessResult, ProcessRunner, ProviderBodyStatus, ProviderMemorySpace, ProviderScoreSemantics, ProviderSearchResult, ProviderSpaceStatus, type RememberRequest, SOURCES, type SearchRequest, type Source, defineMemorySpaceProvider, defineMemorySpaceProviderDefinition, firstArray, jsonArray, jsonNumber, jsonObject, jsonString, runProcess };
|
package/lib/provider-sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CATEGORIES, EDGE_TYPES, INTENTS, SOURCES } from "./contracts.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as NORMALIZED_RELEVANCE_SCORE, n as ProcessError, r as runProcess, t as DEFAULT_MAX_OUTPUT_BYTES } from "./process-DIK9NnTg.js";
|
|
3
3
|
import { i as defineMemorySpaceProviderDefinition, r as defineMemorySpaceProvider, t as MEMORY_SPACE_PROVIDER_API_VERSION } from "./definitions-DfmOqJjR.js";
|
|
4
4
|
//#region src/providers/http.ts
|
|
5
5
|
function jsonObject(value) {
|
|
@@ -105,4 +105,4 @@ var HttpMemoryProvider = class {
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
//#endregion
|
|
108
|
-
export { CATEGORIES, EDGE_TYPES, HttpMemoryProvider, INTENTS, MEMORY_SPACE_PROVIDER_API_VERSION, NORMALIZED_RELEVANCE_SCORE, SOURCES, defineMemorySpaceProvider, defineMemorySpaceProviderDefinition, firstArray, jsonArray, jsonNumber, jsonObject, jsonString, runProcess };
|
|
108
|
+
export { CATEGORIES, DEFAULT_MAX_OUTPUT_BYTES, EDGE_TYPES, HttpMemoryProvider, INTENTS, MEMORY_SPACE_PROVIDER_API_VERSION, NORMALIZED_RELEVANCE_SCORE, ProcessError, SOURCES, defineMemorySpaceProvider, defineMemorySpaceProviderDefinition, firstArray, jsonArray, jsonNumber, jsonObject, jsonString, runProcess };
|
package/lib/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MemoryProviderConnection, MemoryProviderDescriptor, MemorySpace } from "./contracts.js";
|
|
2
|
-
import { f as MemoryProviderAdapter, h as MemorySpaceAuthority, o as MemorySpaceProviderManifest, p as MemoryProviderAdapterFactoryContext, s as MemorySpaceProviderModule } from "./definitions-
|
|
2
|
+
import { f as MemoryProviderAdapter, h as MemorySpaceAuthority, o as MemorySpaceProviderManifest, p as MemoryProviderAdapterFactoryContext, s as MemorySpaceProviderModule } from "./definitions-DwiEZSE_.js";
|
|
3
3
|
//#region src/testing.d.ts
|
|
4
4
|
interface MemorySpaceProviderTest {
|
|
5
5
|
readonly registered: boolean;
|
|
@@ -16,6 +16,7 @@ export declare function OverviewPage(props: {
|
|
|
16
16
|
client: MemorySpacesPageClient;
|
|
17
17
|
metadataClient: MemorySpacesPageClient;
|
|
18
18
|
revision: number;
|
|
19
|
+
reloadKey?: number;
|
|
19
20
|
activationEnabled: boolean;
|
|
20
21
|
writeEnabled: boolean;
|
|
21
22
|
agentAvailable: boolean;
|
|
@@ -61,7 +62,7 @@ export declare function RememberPage(props: {
|
|
|
61
62
|
seed: string;
|
|
62
63
|
onMutate: () => void;
|
|
63
64
|
onClose: () => void;
|
|
64
|
-
|
|
65
|
+
onView?: () => void;
|
|
65
66
|
}): JSX.Element;
|
|
66
67
|
export declare function ListPage(props: {
|
|
67
68
|
client: MemorySpacesPageClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon-source-memory-spaces",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.14",
|
|
4
4
|
"description": "Memory Spaces Source and its private Provider SDK.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-rc.2",
|
|
59
|
-
"dsh-mnemon": "^0.5.
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.7-rc.2 || ^0.2.0-rc.1",
|
|
59
|
+
"dsh-mnemon": "^0.5.19",
|
|
60
60
|
"react": "^18.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"@types/node": "^22.0.0",
|
|
66
66
|
"@types/react": "^18.3.0",
|
|
67
67
|
"@types/react-dom": "^18.3.0",
|
|
68
|
-
"dsh-mnemon": "^0.5.
|
|
68
|
+
"dsh-mnemon": "^0.5.21",
|
|
69
69
|
"dsh-mnemon-provider-byterover": "^0.5.5",
|
|
70
70
|
"dsh-mnemon-provider-hindsight": "^0.5.5",
|
|
71
71
|
"dsh-mnemon-provider-holographic": "^0.5.5",
|
|
72
72
|
"dsh-mnemon-provider-honcho": "^0.5.5",
|
|
73
73
|
"dsh-mnemon-provider-mem0": "^0.5.5",
|
|
74
|
-
"dsh-mnemon-provider-mnemon-native": "^0.5.
|
|
74
|
+
"dsh-mnemon-provider-mnemon-native": "^0.5.8",
|
|
75
75
|
"dsh-mnemon-provider-openviking": "^0.5.7",
|
|
76
76
|
"dsh-mnemon-provider-retaindb": "^0.5.5",
|
|
77
77
|
"dsh-mnemon-provider-supermemory": "^0.5.5",
|