dsh-mnemon 0.4.7 → 0.5.0

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.
Files changed (136) hide show
  1. package/README.md +10 -20
  2. package/README.zh-CN.md +10 -20
  3. package/SECURITY.md +8 -8
  4. package/cordis.patch.yml +42 -0
  5. package/lib/client.js +2360 -6843
  6. package/lib/contracts.js +16 -17
  7. package/lib/core.js +11 -0
  8. package/lib/definitions-j0FLgE0-.js +251 -0
  9. package/lib/extension-sdk.js +93 -229
  10. package/lib/index.js +3730 -6330
  11. package/lib/runtime-AtIOTeP1.js +1316 -0
  12. package/lib/storage-lock-Bqrhkyag.js +20 -0
  13. package/lib/testing.js +231 -0
  14. package/lib/types/src/client/extension-sdk.d.ts +10 -0
  15. package/lib/types/src/client/index.d.ts +1 -0
  16. package/lib/types/src/client/locales.d.ts +84 -0
  17. package/lib/types/src/client/page-client.d.ts +15 -0
  18. package/lib/types/src/client/page-kit.d.ts +40 -0
  19. package/lib/types/src/client/source-contracts.d.ts +46 -0
  20. package/lib/types/src/client/source-pages.d.ts +83 -0
  21. package/lib/types/src/core/contracts/index.d.ts +40 -0
  22. package/lib/types/src/core/contracts/plugin.d.ts +32 -0
  23. package/lib/types/src/core/contracts/view.d.ts +416 -0
  24. package/lib/types/src/core/definitions.d.ts +16 -0
  25. package/lib/types/src/core/plugin.d.ts +6 -0
  26. package/lib/types/src/{config-values.d.ts → host/config-values.d.ts} +7 -7
  27. package/lib/types/src/{config.d.ts → host/config.d.ts} +4 -1
  28. package/lib/types/src/{shared → host}/display-mode.d.ts +1 -1
  29. package/lib/types/src/host/plugin.d.ts +8 -0
  30. package/lib/types/src/host/protocol.d.ts +549 -0
  31. package/lib/types/src/host/view-protocol.d.ts +123 -0
  32. package/lib/types/src/index.d.ts +2 -21
  33. package/lib/types/src/sdk/index.d.ts +9 -0
  34. package/lib/types/src/sdk/input.d.ts +11 -0
  35. package/lib/types/src/sdk/install.d.ts +7 -0
  36. package/lib/types/src/sdk/service.d.ts +31 -0
  37. package/lib/types/src/sdk/storage-lock.d.ts +6 -0
  38. package/lib/types/src/sdk/strategy-configuration.d.ts +31 -0
  39. package/lib/types/src/sdk/testing.d.ts +70 -0
  40. package/package.json +46 -35
  41. package/lib/kernel.js +0 -1173
  42. package/lib/layers/documents.js +0 -31
  43. package/lib/layers/memory-spaces.js +0 -34
  44. package/lib/layers/runtime.js +0 -27
  45. package/lib/provider-sdk.js +0 -2
  46. package/lib/registry-B9SdBRLo.js +0 -2423
  47. package/lib/strategy-default-three-tier.js +0 -99
  48. package/lib/strategy-sdk.js +0 -56
  49. package/lib/types/packages/contracts/src/index.d.ts +0 -221
  50. package/lib/types/packages/extension-sdk/src/index.d.ts +0 -54
  51. package/lib/types/packages/kernel/src/access.d.ts +0 -14
  52. package/lib/types/packages/kernel/src/catalog.d.ts +0 -42
  53. package/lib/types/packages/kernel/src/index.d.ts +0 -5
  54. package/lib/types/packages/kernel/src/kernel.d.ts +0 -46
  55. package/lib/types/packages/kernel/src/topology.d.ts +0 -25
  56. package/lib/types/packages/kernel/src/view.d.ts +0 -89
  57. package/lib/types/packages/layer-documents/src/index.d.ts +0 -4
  58. package/lib/types/packages/layer-memory-spaces/src/index.d.ts +0 -4
  59. package/lib/types/packages/layer-runtime/src/index.d.ts +0 -4
  60. package/lib/types/packages/provider-sdk/src/index.d.ts +0 -19
  61. package/lib/types/packages/strategy-default-three-tier/src/index.d.ts +0 -7
  62. package/lib/types/packages/strategy-sdk/src/index.d.ts +0 -35
  63. package/lib/types/src/activity.d.ts +0 -16
  64. package/lib/types/src/agent-memory-turn.d.ts +0 -42
  65. package/lib/types/src/channels.d.ts +0 -1
  66. package/lib/types/src/client/GlobalLocationSetting.d.ts +0 -19
  67. package/lib/types/src/client/MnemonPackSection.d.ts +0 -13
  68. package/lib/types/src/client/MnemonSaveAction.d.ts +0 -13
  69. package/lib/types/src/client/MnemonSettingsCard.d.ts +0 -16
  70. package/lib/types/src/client/MnemonTurnTail.d.ts +0 -21
  71. package/lib/types/src/client/MnemonView.d.ts +0 -26
  72. package/lib/types/src/client/ProviderIcon.d.ts +0 -8
  73. package/lib/types/src/client/ProviderSettingsSection.d.ts +0 -16
  74. package/lib/types/src/client/anchor.d.ts +0 -27
  75. package/lib/types/src/client/api.d.ts +0 -83
  76. package/lib/types/src/client/better-sidebar.d.ts +0 -13
  77. package/lib/types/src/client/dsh-compat.d.ts +0 -51
  78. package/lib/types/src/client/settings.d.ts +0 -23
  79. package/lib/types/src/client/sidebar-entry.d.ts +0 -5
  80. package/lib/types/src/client/subagent-token-usage.d.ts +0 -23
  81. package/lib/types/src/client/workspace-controller.d.ts +0 -14
  82. package/lib/types/src/client/workspace-mount.d.ts +0 -20
  83. package/lib/types/src/commands.d.ts +0 -13
  84. package/lib/types/src/contracts.d.ts +0 -316
  85. package/lib/types/src/documents.d.ts +0 -77
  86. package/lib/types/src/git-branch.d.ts +0 -6
  87. package/lib/types/src/guidance.d.ts +0 -29
  88. package/lib/types/src/lifecycle.d.ts +0 -80
  89. package/lib/types/src/live-runtime.d.ts +0 -92
  90. package/lib/types/src/memory-bodies.d.ts +0 -57
  91. package/lib/types/src/memory-receipts.d.ts +0 -21
  92. package/lib/types/src/memory-system/access.d.ts +0 -2
  93. package/lib/types/src/memory-system/catalog.d.ts +0 -2
  94. package/lib/types/src/memory-system/contracts.d.ts +0 -2
  95. package/lib/types/src/memory-system/defaults.d.ts +0 -6
  96. package/lib/types/src/memory-system/index.d.ts +0 -7
  97. package/lib/types/src/memory-system/kernel.d.ts +0 -2
  98. package/lib/types/src/memory-system/topology.d.ts +0 -2
  99. package/lib/types/src/memory-system/view.d.ts +0 -2
  100. package/lib/types/src/memory-view.d.ts +0 -21
  101. package/lib/types/src/pack.d.ts +0 -29
  102. package/lib/types/src/process.d.ts +0 -16
  103. package/lib/types/src/provider-placement.d.ts +0 -26
  104. package/lib/types/src/provider-sdk.d.ts +0 -4
  105. package/lib/types/src/providers/byterover.d.ts +0 -32
  106. package/lib/types/src/providers/catalog.d.ts +0 -23
  107. package/lib/types/src/providers/hindsight.d.ts +0 -20
  108. package/lib/types/src/providers/holographic.d.ts +0 -23
  109. package/lib/types/src/providers/honcho.d.ts +0 -18
  110. package/lib/types/src/providers/http.d.ts +0 -32
  111. package/lib/types/src/providers/mem0.d.ts +0 -18
  112. package/lib/types/src/providers/memory-system.d.ts +0 -6
  113. package/lib/types/src/providers/openviking.d.ts +0 -32
  114. package/lib/types/src/providers/provider.d.ts +0 -46
  115. package/lib/types/src/providers/registry.d.ts +0 -23
  116. package/lib/types/src/providers/retaindb.d.ts +0 -17
  117. package/lib/types/src/providers/supermemory.d.ts +0 -17
  118. package/lib/types/src/recall-quality/contracts.d.ts +0 -32
  119. package/lib/types/src/recall-quality/engine.d.ts +0 -13
  120. package/lib/types/src/recall-quality/index.d.ts +0 -4
  121. package/lib/types/src/recall-quality/policies.d.ts +0 -5
  122. package/lib/types/src/recall-quality/registry.d.ts +0 -10
  123. package/lib/types/src/review-activity.d.ts +0 -19
  124. package/lib/types/src/rpc.d.ts +0 -22
  125. package/lib/types/src/runner.d.ts +0 -41
  126. package/lib/types/src/runtime-memory.d.ts +0 -90
  127. package/lib/types/src/search-tokens.d.ts +0 -5
  128. package/lib/types/src/service.d.ts +0 -113
  129. package/lib/types/src/session-events.d.ts +0 -8
  130. package/lib/types/src/settings.d.ts +0 -6
  131. package/lib/types/src/shared/contracts.d.ts +0 -1008
  132. package/lib/types/src/storage-scope.d.ts +0 -12
  133. package/lib/types/src/subagent-token-usage.d.ts +0 -53
  134. package/lib/types/src/subagent.d.ts +0 -124
  135. package/lib/types/src/tools.d.ts +0 -10
  136. package/lib/types/src/version-updates.d.ts +0 -37
@@ -1,41 +0,0 @@
1
- import type { JsonValue } from './contracts.ts';
2
- import type { ResolvedConfig } from './config.ts';
3
- import { type ProcessRunner } from './process.ts';
4
- export interface CommandDiscoveryOptions {
5
- platform?: NodeJS.Platform;
6
- env?: NodeJS.ProcessEnv;
7
- home?: string;
8
- isExecutable?: (path: string) => boolean;
9
- }
10
- /** Locate the local Mnemon binary without invoking a shell. */
11
- export declare function findMnemonCommand(config: Pick<ResolvedConfig, 'cliPath'>, options?: CommandDiscoveryOptions): string | undefined;
12
- export declare class MnemonCliError extends Error {
13
- readonly exitCode: number | null;
14
- readonly stderr: string;
15
- constructor(message: string, exitCode?: number | null, stderr?: string);
16
- }
17
- export interface MnemonRunOptions {
18
- signal?: AbortSignal;
19
- globalFlags?: boolean;
20
- store?: string;
21
- }
22
- export interface MnemonTextCommand {
23
- args: readonly string[];
24
- options?: MnemonRunOptions;
25
- }
26
- export interface MnemonRunner {
27
- readonly command: string;
28
- readonly commandFound: boolean;
29
- readonly config: ResolvedConfig;
30
- runJson(args: readonly string[], options?: MnemonRunOptions): Promise<JsonValue>;
31
- runText(args: readonly string[], options?: MnemonRunOptions): Promise<string>;
32
- /** Run related CLI commands consecutively without allowing queued work between them. */
33
- runTextBatch(commands: readonly MnemonTextCommand[]): Promise<string[]>;
34
- /** Run one operation after all CLI work and hold the same queue until it settles. */
35
- withExclusive<T>(operation: () => T | Promise<T>): Promise<T>;
36
- effectiveDataDir(): string;
37
- /** Read Mnemon's persisted active-file selection, ignoring config and environment overrides. */
38
- persistedStore(): string;
39
- effectiveStore(): string;
40
- }
41
- export declare function createRunner(config: ResolvedConfig, processRunner?: ProcessRunner, workspaceRoot?: string): MnemonRunner;
@@ -1,90 +0,0 @@
1
- import type { MnemonRunner } from './runner.ts';
2
- import type { AuthorityCommitRecorder } from './memory-receipts.ts';
3
- import type { MemoryMigrationLineage } from '../packages/contracts/src/index.ts';
4
- import type { RuntimeMemoryAction, RuntimeMemoryCompactedEntry, RuntimeMemoryEntry, RuntimeMemoryMutation, RuntimeMemoryMutationResult, RuntimeMemorySnapshot, RuntimeMemoryTarget } from './shared/contracts.ts';
5
- export type { RuntimeMemoryAction, RuntimeMemoryCompactedEntry, RuntimeMemoryEntry, RuntimeMemoryImportance, RuntimeMemoryMutation, RuntimeMemoryMutationResult, RuntimeMemorySnapshot, RuntimeMemoryTarget, RuntimeMemoryTargetView, RuntimeMemoryUsage, } from './shared/contracts.ts';
6
- export declare const RUNTIME_MEMORY_VERSION = 1;
7
- export declare const RUNTIME_ENTRY_DELIMITER = "\n\u00A7\n";
8
- export interface RuntimeMemoryLimits {
9
- readonly memory: number;
10
- readonly user: number;
11
- }
12
- export declare const RUNTIME_MEMORY_LIMITS: RuntimeMemoryLimits;
13
- export declare const RUNTIME_MEMORY_PROTOCOL: string;
14
- export interface RuntimeMemoryContextProjection {
15
- revision: string;
16
- text: string;
17
- }
18
- /** Host-only plan for capacity maintenance; this is not exposed as a Tool or RPC action. */
19
- export interface RuntimeMemoryMaintenancePlan {
20
- revision: string;
21
- action: RuntimeMemoryAction;
22
- target: RuntimeMemoryTarget;
23
- entries: RuntimeMemoryEntry[];
24
- pending?: RuntimeMemoryCompactedEntry;
25
- excluded?: RuntimeMemoryEntry;
26
- used: number;
27
- projected: number;
28
- limit: number;
29
- requiresMaintenance: boolean;
30
- }
31
- export declare class RuntimeMemoryCapacityError extends Error {
32
- readonly target: RuntimeMemoryTarget;
33
- readonly used: number;
34
- readonly projected: number;
35
- readonly limit: number;
36
- constructor(target: RuntimeMemoryTarget, used: number, projected: number, limit: number);
37
- }
38
- export declare class RuntimeMemoryConflictError extends Error {
39
- constructor();
40
- }
41
- export declare const RUNTIME_BRANCH_NAME_MAX = 128;
42
- export declare const RUNTIME_BRANCHES_PER_ENTRY_MAX = 16;
43
- /** Validate a model-supplied branch scope. Returns the normalized list; an empty list means "no scope". */
44
- export declare function normalizeRuntimeBranches(value: unknown, field?: string): string[];
45
- /**
46
- * Single authority for hot memory. JSON is the durable source of truth;
47
- * Markdown files are deterministic projections consumed by prompt assembly.
48
- */
49
- export declare class RuntimeMemoryController {
50
- private readonly now;
51
- private readonly recordCommit?;
52
- readonly directory: string;
53
- readonly sourcePath: string;
54
- readonly userSourcePath: string;
55
- readonly memoryPath: string;
56
- readonly userPath: string;
57
- readonly lockPath: string;
58
- readonly limits: RuntimeMemoryLimits;
59
- private queue;
60
- private readonly localUserPath;
61
- private readonly userController;
62
- constructor(runner: Pick<MnemonRunner, 'effectiveDataDir'>, now?: () => Date, recordCommit?: AuthorityCommitRecorder | undefined, limits?: RuntimeMemoryLimits, userRunner?: Pick<MnemonRunner, 'effectiveDataDir'>);
63
- snapshot(): RuntimeMemorySnapshot;
64
- contextText(branch?: string): string;
65
- /**
66
- * Read the exact Runtime revision and its prompt projection from each
67
- * configured authority root.
68
- * When a git branch is supplied, target=memory entries scoped to other
69
- * branches are hidden from the projection; the on-disk Markdown files and
70
- * the source JSON always remain complete.
71
- */
72
- contextProjection(branch?: string): RuntimeMemoryContextProjection;
73
- private localContextProjection;
74
- mutate(request: RuntimeMemoryMutation): Promise<RuntimeMemoryMutationResult>;
75
- /** Resolve exactly which committed entries survive a blocked mutation and are safe to compact. */
76
- planMaintenance(request: RuntimeMemoryMutation): Promise<RuntimeMemoryMaintenancePlan>;
77
- /** Commit semantic compaction and the original mutation together, or leave every local file unchanged. */
78
- compactAndMutate(expectedRevision: string, request: RuntimeMemoryMutation, compacted: RuntimeMemoryCompactedEntry[], maxCompactedBytes?: number, lineage?: readonly MemoryMigrationLineage[]): Promise<RuntimeMemoryMutationResult>;
79
- /** Apply an LLM-produced compaction only to the exact snapshot it reviewed. */
80
- compactTarget(expectedRevision: string, target: RuntimeMemoryTarget, compacted: RuntimeMemoryCompactedEntry[], maxBytes?: number, lineage?: readonly MemoryMigrationLineage[]): Promise<RuntimeMemorySnapshot>;
81
- private initialize;
82
- private mutateLocked;
83
- private result;
84
- private targetView;
85
- private snapshotUnlocked;
86
- private readSource;
87
- private persist;
88
- private repairProjections;
89
- private withLock;
90
- }
@@ -1,5 +0,0 @@
1
- /** Small deterministic tokenizer shared by local Document and Native recovery. */
2
- export declare function lexicalSearchTokens(value: string, maximum?: number): string[];
3
- export declare function lexicalTokenMatchCount(value: string, tokens: readonly string[]): number;
4
- /** Require broader coverage only after a query is focused enough to support it. */
5
- export declare function lexicalRequiredMatchCount(tokens: readonly string[]): number;
@@ -1,113 +0,0 @@
1
- import type { JsonValue } from './contracts.ts';
2
- import type { ResolvedConfig } from './config.ts';
3
- import { MemoryBodyRegistry, type CreateMemoryBodyRequest, type MemoryBody, type UpdateMemoryBodyRequest } from './memory-bodies.ts';
4
- import type { MnemonRunner } from './runner.ts';
5
- import type { AuthorityCommitRecorder } from './memory-receipts.ts';
6
- import { type LlmMemoryPlacementSelection, type PreparedMemoryPlacement } from './provider-placement.ts';
7
- import { type MemoryProviderAdapterRegistry } from './providers/registry.ts';
8
- import { type RecallQualityPolicyRegistry } from './recall-quality/index.ts';
9
- import { type EdgeType, type EntityView, type Insight, type MemoryBodyCatalog, type MemoryBodyMetadataUpdate, type MemoryBodyView, type MemoryGraphSnapshot, type MemoryListRequest, type MemoryListView, type MnemonEmbeddingStatus, type MemoryPlacementDecision, type MemoryReadSource, type RememberRequest, type SearchRequest, type StatusView } from './shared/contracts.ts';
10
- export { CATEGORIES, EDGE_TYPES, INTENTS, SOURCES } from './shared/contracts.ts';
11
- export type { Category, EdgeType, EntityView, Insight, Intent, MemoryBodyCatalog, MemoryBodyStats, MemoryBodyView, MemoryGraphEdge, MemoryGraphNode, MemoryGraphSnapshot, MemoryListRequest, MemoryListView, MnemonEmbeddingStatus, MemoryReadSource, RecallQualityStats, RememberRequest, SearchRequest, Source, StatusView, } from './shared/contracts.ts';
12
- export interface MemoryBodyMetadataSample {
13
- memoryBodyId: string;
14
- name: string;
15
- description: string;
16
- providerId: MemoryBody['provider']['id'];
17
- providerLabel: string;
18
- method: 'native-basic' | 'browse' | 'search';
19
- evidence: Array<Pick<Insight, 'content' | 'category' | 'entities'>>;
20
- }
21
- /** Parse the official Mnemon vis.js export without executing its HTML or loading its CDN script. */
22
- export declare function parseMemoryGraph(html: string, now?: Date): MemoryGraphSnapshot;
23
- /** A provider mutation is authoritative only after it reports an explicit durable terminal state. */
24
- export declare function mutationResultCommitted(result: unknown): boolean;
25
- export declare class MnemonService {
26
- readonly runner: MnemonRunner;
27
- readonly config: ResolvedConfig;
28
- private readonly recordCommit?;
29
- readonly memoryBodies: MemoryBodyRegistry;
30
- private readonly providers;
31
- private readonly recallQualityPolicy;
32
- private bodiesInFlight;
33
- constructor(runner: MnemonRunner, config: ResolvedConfig, memoryBodies?: MemoryBodyRegistry, recallQualityPolicyRegistry?: RecallQualityPolicyRegistry, providerAdapterRegistry?: MemoryProviderAdapterRegistry, recordCommit?: AuthorityCommitRecorder | undefined);
34
- bodies(signal?: AbortSignal): Promise<MemoryBodyCatalog>;
35
- /** Coalesce simultaneous Status/Memory-page probes without caching mutations. */
36
- private collectBodies;
37
- /** Return the control-plane directory without waiting for provider I/O. */
38
- bodyDirectory(): MemoryBodyCatalog;
39
- /** Stable, secret-free checkpoint for the projected Memory Space authority. */
40
- memoryRevision(): string;
41
- /** Return a usable system snapshot without waiting for any Provider I/O. */
42
- statusSummary(): StatusView;
43
- /** Probe the effective Mnemon embedding runtime and its default Store coverage. */
44
- embeddingStatus(signal?: AbortSignal): Promise<MnemonEmbeddingStatus>;
45
- status(signal?: AbortSignal): Promise<StatusView>;
46
- reconnectBody(id: string, signal?: AbortSignal): Promise<MemoryBodyView>;
47
- search(request: SearchRequest, signal?: AbortSignal): Promise<{
48
- query: string;
49
- mode: string;
50
- results: Insight[];
51
- hint?: string;
52
- sources: MemoryReadSource[];
53
- }>;
54
- /**
55
- * Read a deliberately small metadata sample through the cheapest useful path
56
- * exposed by the owning Provider. This avoids federated ranking, graph
57
- * expansion, and large browse projections before an LLM metadata pass.
58
- */
59
- metadataSample(memoryBodyId: string, signal?: AbortSignal): Promise<MemoryBodyMetadataSample>;
60
- graph(signal?: AbortSignal, memoryBodyIds?: string[]): Promise<MemoryGraphSnapshot>;
61
- list(request?: MemoryListRequest, signal?: AbortSignal): Promise<MemoryListView>;
62
- entities(entity?: string, limit?: number, signal?: AbortSignal): Promise<EntityView>;
63
- remember(request: RememberRequest, signal?: AbortSignal): Promise<JsonValue>;
64
- /**
65
- * Persist a host-authorized set of exact memories without involving a model
66
- * in the data plane. Mnemon Native requests share one import per destination;
67
- * other Providers retain their adapter-defined write semantics.
68
- */
69
- rememberMany(requests: readonly RememberRequest[], signal?: AbortSignal): Promise<JsonValue[]>;
70
- related(id: string, depth?: number, edge?: EdgeType, signal?: AbortSignal, memoryBodyId?: string): Promise<Insight[]>;
71
- link(sourceId: string, targetId: string, type?: EdgeType, weight?: number, reason?: string, signal?: AbortSignal, memoryBodyId?: string): Promise<JsonValue>;
72
- forget(id: string, signal?: AbortSignal, memoryBodyId?: string): Promise<JsonValue>;
73
- prepareBodyPlacement(request: CreateMemoryBodyRequest): PreparedMemoryPlacement;
74
- createBody(request: CreateMemoryBodyRequest, signal?: AbortSignal, placement?: MemoryPlacementDecision): Promise<MemoryBody>;
75
- /**
76
- * Create a Memory Space from the configured distillation policy. The model
77
- * may choose only among candidates already filtered by the host; manual mode
78
- * ignores model preference and always uses the configured fixed provider.
79
- */
80
- createBodyForPersistence(body: {
81
- name: string;
82
- description: string;
83
- }, selection: LlmMemoryPlacementSelection | undefined, signal?: AbortSignal, delegation?: {
84
- runId: string;
85
- provider: string;
86
- }): Promise<MemoryBody>;
87
- updateProviderService(providerId: MemoryBody['provider']['id'], settings: Record<string, string | number | boolean>, clearSecrets?: readonly string[], enabled?: boolean, signal?: AbortSignal): Promise<import("./shared/contracts.ts").MemoryProviderServiceView>;
88
- updateBody(id: string, request: UpdateMemoryBodyRequest): MemoryBody;
89
- updateBodyMetadata(updates: readonly MemoryBodyMetadataUpdate[]): MemoryBody[];
90
- deleteBody(id: string, signal?: AbortSignal): Promise<MemoryBody>;
91
- mergeBodies(targetBodyId: string, sourceBodyIds: string[], deactivateSources?: boolean, signal?: AbortSignal): Promise<JsonValue>;
92
- private nativeBodyStatus;
93
- private parseStats;
94
- private nativeGraph;
95
- private allNativeInsights;
96
- private nativeMetadataSample;
97
- private nativeSearch;
98
- private nativeRemember;
99
- private nativeRememberMany;
100
- private nativeRelated;
101
- private nativeLink;
102
- private nativeForget;
103
- private providerFor;
104
- private readBodies;
105
- private readBody;
106
- private writeBody;
107
- private prepareRemember;
108
- private annotate;
109
- private annotateResult;
110
- private activateAfterWrite;
111
- private recordMemoryCommit;
112
- private assertWritable;
113
- }
@@ -1,8 +0,0 @@
1
- import type { HostSession, HostSessionEvent } from './contracts.ts';
2
- /**
3
- * Materialize one immutable event-log snapshot across supported DSH releases.
4
- * Capability detection keeps alpha and stable rc behavior on one code path.
5
- */
6
- export declare function hostSessionEvents(session: HostSession): readonly HostSessionEvent[];
7
- /** Read one exact event without materializing the alpha log when possible. */
8
- export declare function hostSessionEventAt(session: HostSession, seq: number): HostSessionEvent | undefined;
@@ -1,6 +0,0 @@
1
- import type { HostConnectionHandle, HostRpcAuthority, HostRpcHandler, HostSettingsService } from './contracts.ts';
2
- export { MNEMON_SETTINGS_CHANNEL, MNEMON_SETTINGS_NAMESPACE, MNEMON_UI_SETTINGS_NAMESPACE } from './shared/contracts.ts';
3
- /** Canonicalize only the legacy field through DSH's locked, revision-fenced writer. */
4
- export declare function migrateLegacyDisplayMode(settings: HostSettingsService): Promise<void>;
5
- export declare function createSettingsHandler(settings: HostSettingsService): HostRpcHandler;
6
- export declare function registerSettingsRpc(connection: HostConnectionHandle, settings: HostSettingsService, authority?: HostRpcAuthority): void;