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
@@ -0,0 +1,9 @@
1
+ export { installMemory } from './install.ts';
2
+ export type { MnemonMemoryService, InstallMemoryOptions, MemoryInstallContribution } from './service.ts';
3
+ export { defineMemoryPlugin, defineMemorySource, defineMemoryStrategy, defineMemoryStrategyExtension } from '../core/definitions.ts';
4
+ export { record as memoryInputRecord, text as memoryInputText, integer as memoryInputInteger, stringArray as memoryInputStringArray, truncate as truncateMemoryText, receipt as createMemoryMutationReceipt, migrationLineage as memoryInputMigrationLineage } from './input.ts';
5
+ export { memoryConfigurationDigest } from './input.ts';
6
+ export { defineMemoryStrategyConfiguration } from './strategy-configuration.ts';
7
+ export type { MemoryStrategyConfiguration, MemoryStrategyConfigurationField, MemoryLocalizedText } from './strategy-configuration.ts';
8
+ export { withMemoryStorageLock } from './storage-lock.ts';
9
+ export type { ComposableMemoryView, MemoryActionOffer, MemoryCompositionEvaluationReport, MemoryEvidence, MemoryMutationReceipt, MemoryPluginDescriptor, MemoryPluginLocalizedText, MemoryPluginProvidedCapability, MemoryPluginRole, MemoryMutationCompletion, MemoryReadGrant, MemorySourceDefinition, MemorySourceFacts, MemoryAvailableSource, MemorySourceManifest, MemorySourcePresentation, MemorySourcePresentationItem, MemorySourceRuntime, MemorySourceViewContext, MemoryStrategyDefinition, MemoryStrategyExtensionDefinition, MemoryStrategyExtensionManifest, MemoryStrategyContribution, MemoryStrategyTurn, MemoryStrategyReadRequest, MemoryStrategyRead, MemoryStrategyManifest, MemoryViewRequest, MemoryViewSourcePresentation, MemoryViewSpec, MemoryViewGuidance, } from "../core/contracts/index.ts";
@@ -0,0 +1,11 @@
1
+ import type { MemoryJsonValue, MemoryMutationReceipt, MemoryMigrationLineage, MemoryMutationCompletion } from "../core/contracts/index.ts";
2
+ /** Stable digest of validated configuration; raw values never enter diagnostics. */
3
+ export declare function memoryConfigurationDigest(value: unknown): string;
4
+ export declare function record(value: MemoryJsonValue, label: string): Record<string, MemoryJsonValue>;
5
+ export declare function text(value: MemoryJsonValue | undefined, label: string, maximum: number, required?: boolean): string | undefined;
6
+ export declare function integer(value: MemoryJsonValue | undefined, fallback: number, minimum: number, maximum: number): number;
7
+ export declare function stringArray(value: MemoryJsonValue | undefined, label: string, maximum?: number): string[] | undefined;
8
+ export declare function truncate(value: string, maximum: number): string;
9
+ export declare function receipt(viewId: string, offerId: string, sourceInstanceKey: string, revision: string | undefined, details: MemoryJsonValue, completion?: MemoryMutationCompletion): MemoryMutationReceipt;
10
+ /** Validate migration proof supplied by an authorized Source management caller. */
11
+ export declare function migrationLineage(value: MemoryJsonValue | undefined): MemoryMigrationLineage[];
@@ -0,0 +1,7 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import type { InstallMemoryOptions, MemoryInstallContribution } from './service.ts';
3
+ /**
4
+ * Register a plugin's Source and/or Strategy definitions as one Fiber-owned batch.
5
+ * Contribution roles do not dictate package or repository boundaries.
6
+ */
7
+ export declare function installMemory(ctx: Context, contribution: MemoryInstallContribution, options?: InstallMemoryOptions): void;
@@ -0,0 +1,31 @@
1
+ import type { MemoryPluginDescriptor, MemorySourceDefinition, MemoryStrategyDefinition, MemoryStrategyExtensionDefinition } from '../core/contracts/index.ts';
2
+ export interface MemoryInstallContribution {
3
+ /** Optional peer-plugin identity and dependency metadata, available to Core. */
4
+ plugin?: MemoryPluginDescriptor;
5
+ /** One package may supply any contribution roles; installation/disposal is atomic. */
6
+ sources?: readonly MemorySourceDefinition[];
7
+ strategies?: readonly MemoryStrategyDefinition[];
8
+ strategyExtensions?: readonly MemoryStrategyExtensionDefinition[];
9
+ }
10
+ export interface InstallMemoryOptions {
11
+ /** Required for a direct ctx.plugin() mount that has no stable Loader Entry. */
12
+ instanceId?: string;
13
+ artifactDigest?: string;
14
+ /** Source-private dependency digest, opaque to Mnemon core. */
15
+ effectiveDigest?: string;
16
+ }
17
+ /**
18
+ * The only Mnemon-wide Cordis service: accept plugin definitions, not engine
19
+ * objects. Use installMemory(ctx, ...) to resolve the calling Entry identity
20
+ * and bind the returned registration disposer to its Fiber.
21
+ */
22
+ export interface MnemonMemoryService {
23
+ installContributions(contribution: MemoryInstallContribution, options: InstallMemoryOptions & {
24
+ instanceId: string;
25
+ }): () => void;
26
+ }
27
+ declare module '@deepseek-ai/cordis' {
28
+ interface Context {
29
+ mnemonMemory: MnemonMemoryService;
30
+ }
31
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Serialize in-process work on one local storage root, including work from
3
+ * independently loaded plugins. File locks still own cross-process safety.
4
+ * Callers must not acquire the same root recursively.
5
+ */
6
+ export declare function withMemoryStorageLock<T>(directory: string, operation: () => T | Promise<T>): Promise<T>;
@@ -0,0 +1,31 @@
1
+ import type { MemoryInstallContribution } from './service.ts';
2
+ import type { MemoryJsonValue, MemoryPluginLocalizedText } from '../core/contracts/index.ts';
3
+ /** Human-facing metadata only. It is never added to a model View. */
4
+ export type MemoryLocalizedText = MemoryPluginLocalizedText;
5
+ export interface MemoryStrategyConfigurationField {
6
+ key: string;
7
+ label: MemoryLocalizedText;
8
+ description?: MemoryLocalizedText;
9
+ input: 'number' | 'text' | 'textarea' | 'string-list' | 'source-list';
10
+ defaultValue?: MemoryJsonValue;
11
+ minimum?: number;
12
+ maximum?: number;
13
+ sourceRoles?: string[];
14
+ }
15
+ /**
16
+ * Optional module export named `memoryStrategyConfiguration`.
17
+ * An installed, trusted Cordis Entry owns its fields and its pure factory.
18
+ * The Host may preview that factory, but mounting/disposal still belongs to
19
+ * Cordis. Configuration here must be public; credentials belong to Sources.
20
+ */
21
+ export interface MemoryStrategyConfiguration {
22
+ apiVersion: 'dsh-mnemon/strategy-configuration/v1';
23
+ kind: 'strategy' | 'strategy-extension';
24
+ typeId: string;
25
+ label: MemoryLocalizedText;
26
+ description: MemoryLocalizedText;
27
+ fields: readonly MemoryStrategyConfigurationField[];
28
+ /** Same factory used by apply(); must not perform I/O or register a Fiber. */
29
+ create(config: Record<string, MemoryJsonValue>): MemoryInstallContribution;
30
+ }
31
+ export declare function defineMemoryStrategyConfiguration(value: Omit<MemoryStrategyConfiguration, 'apiVersion'>): MemoryStrategyConfiguration;
@@ -0,0 +1,70 @@
1
+ import { Context, type Plugin } from '@deepseek-ai/cordis';
2
+ import { DEFAULT_MEMORY_VIEW_BUDGET } from '../core/contracts/index.ts';
3
+ import type { ComposableMemoryView, MemoryActionOffer, MemoryCapability, MemoryCompositionEvaluationReport, MemoryEvidence, MemoryJsonValue, MemoryMutationReceipt, MemoryOperationScope, MemoryPackageProvenance, MemorySourceManagementCatalog, MemorySourceManagementRequest, MemorySourceManagementResult, MemorySourceManifest, MemoryViewRequest } from '../core/contracts/index.ts';
4
+ export interface MemoryTestEntry<C> {
5
+ instanceId: string;
6
+ config?: C;
7
+ }
8
+ export interface MemoryTestTurn {
9
+ readonly view: ComposableMemoryView;
10
+ executeRoute(routeId: string, input: MemoryJsonValue, signal?: AbortSignal): Promise<MemoryEvidence>;
11
+ executeAction(offerId: string, input: MemoryJsonValue, authorize: (offer: MemoryActionOffer) => boolean | Promise<boolean>, signal?: AbortSignal): Promise<MemoryMutationReceipt>;
12
+ release(): void;
13
+ }
14
+ /** Read-only identity/manifest, never an installed definition or Source handle. */
15
+ export interface MemoryTestSource {
16
+ readonly sourceInstanceKey: string;
17
+ readonly manifest: MemorySourceManifest;
18
+ readonly provenance: MemoryPackageProvenance;
19
+ }
20
+ export interface MemoryTestOptions {
21
+ strategyInstanceKey?: string;
22
+ strategyTypeId?: string;
23
+ sourceConfiguration?: (source: MemoryTestSource) => Readonly<Record<string, MemoryJsonValue>>;
24
+ sourceCapabilities?: (source: MemoryTestSource) => readonly MemoryCapability[];
25
+ now?: () => Date;
26
+ sourceTimeoutMs?: number;
27
+ }
28
+ /** JSON-only observations for composition/replacement tests, not engine access. */
29
+ export interface MemoryTestDiagnostics {
30
+ servingGenerationId?: string;
31
+ drainingGenerationIds: string[];
32
+ evaluation: MemoryCompositionEvaluationReport;
33
+ }
34
+ export interface MemoryTestManagementClient {
35
+ readonly sourceInstanceKey: string;
36
+ readonly revision: string;
37
+ read(operation: string, input?: MemoryJsonValue): Promise<MemorySourceManagementResult>;
38
+ mutate(operation: string, input: MemoryJsonValue, options: {
39
+ confirmed: true;
40
+ expectedRevision?: string;
41
+ }): Promise<MemorySourceManagementResult>;
42
+ }
43
+ /**
44
+ * A test fixture, not a production service or a second Loader. It mounts real
45
+ * Cordis Fibers against the same Runtime/compiler used by the Host. The small
46
+ * Loader identity adapter supplies only stable Entry ids for installMemory.
47
+ * No built-in Source, Provider, database, browser, or private binding is needed.
48
+ */
49
+ export declare class MemoryCompositionRunner {
50
+ #private;
51
+ readonly context: Context;
52
+ constructor(options?: MemoryTestOptions);
53
+ mount<C>(plugin: Plugin.Object<C>, entry: MemoryTestEntry<C>): Promise<() => Promise<void>>;
54
+ beginTurn(request?: Partial<MemoryViewRequest>, signal?: AbortSignal): Promise<MemoryTestTurn>;
55
+ inspect(): MemoryTestDiagnostics;
56
+ managementCatalog(scope?: MemoryOperationScope): Promise<MemorySourceManagementCatalog>;
57
+ /** Exercise the public protocol, including rejected confirmation/revision cases. */
58
+ executeManagement(request: MemorySourceManagementRequest): Promise<MemorySourceManagementResult>;
59
+ /** Same scoped management contract a Source page receives, backed by real generations. */
60
+ managementClient(sourceInstanceKey: string, scopeValue?: MemoryViewRequest['scope']): Promise<MemoryTestManagementClient>;
61
+ dispose(): Promise<void>;
62
+ }
63
+ export { DEFAULT_MEMORY_VIEW_BUDGET };
64
+ /**
65
+ * Evaluate a trusted, already-built DSH Client artifact in a test. Dependencies
66
+ * are explicit (normally the test's React and UI primitives), so no production
67
+ * Loader, global registry, source alias, or second copy of React is required.
68
+ * This is a test fixture, not another Client Loader implementation.
69
+ */
70
+ export declare function loadMemoryClientArtifact<T extends object = Record<string, unknown>>(path: string | URL, dependencies: Readonly<Record<string, unknown>>): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mnemon",
3
- "version": "0.4.7",
3
+ "version": "0.5.0",
4
4
  "description": "Composable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -44,7 +44,8 @@
44
44
  },
45
45
  "license": "MIT",
46
46
  "publishConfig": {
47
- "access": "public"
47
+ "access": "public",
48
+ "tag": "latest"
48
49
  },
49
50
  "engines": {
50
51
  "node": ">=20"
@@ -52,50 +53,40 @@
52
53
  "type": "module",
53
54
  "main": "lib/index.js",
54
55
  "types": "lib/types/src/index.d.ts",
56
+ "typesVersions": {
57
+ "*": {
58
+ "contracts": [
59
+ "lib/types/src/core/contracts/index.d.ts"
60
+ ],
61
+ "extension-sdk": [
62
+ "lib/types/src/sdk/index.d.ts"
63
+ ]
64
+ }
65
+ },
55
66
  "exports": {
56
67
  ".": {
57
68
  "types": "./lib/types/src/index.d.ts",
58
69
  "default": "./lib/index.js"
59
70
  },
71
+ "./core": {
72
+ "types": "./lib/types/src/core/plugin.d.ts",
73
+ "default": "./lib/core.js"
74
+ },
60
75
  "./client": {
61
76
  "types": "./lib/types/src/client/index.d.ts",
62
77
  "default": "./lib/client.js"
63
78
  },
64
79
  "./contracts": {
65
- "types": "./lib/types/packages/contracts/src/index.d.ts",
80
+ "types": "./lib/types/src/core/contracts/index.d.ts",
66
81
  "default": "./lib/contracts.js"
67
82
  },
68
- "./kernel": {
69
- "types": "./lib/types/packages/kernel/src/index.d.ts",
70
- "default": "./lib/kernel.js"
71
- },
72
83
  "./extension-sdk": {
73
- "types": "./lib/types/packages/extension-sdk/src/index.d.ts",
84
+ "types": "./lib/types/src/sdk/index.d.ts",
74
85
  "default": "./lib/extension-sdk.js"
75
86
  },
76
- "./provider-sdk": {
77
- "types": "./lib/types/src/provider-sdk.d.ts",
78
- "default": "./lib/provider-sdk.js"
79
- },
80
- "./strategy-sdk": {
81
- "types": "./lib/types/packages/strategy-sdk/src/index.d.ts",
82
- "default": "./lib/strategy-sdk.js"
83
- },
84
- "./strategy-default-three-tier": {
85
- "types": "./lib/types/packages/strategy-default-three-tier/src/index.d.ts",
86
- "default": "./lib/strategy-default-three-tier.js"
87
- },
88
- "./layers/runtime": {
89
- "types": "./lib/types/packages/layer-runtime/src/index.d.ts",
90
- "default": "./lib/layers/runtime.js"
91
- },
92
- "./layers/documents": {
93
- "types": "./lib/types/packages/layer-documents/src/index.d.ts",
94
- "default": "./lib/layers/documents.js"
95
- },
96
- "./layers/memory-spaces": {
97
- "types": "./lib/types/packages/layer-memory-spaces/src/index.d.ts",
98
- "default": "./lib/layers/memory-spaces.js"
87
+ "./testing": {
88
+ "types": "./lib/types/src/sdk/testing.d.ts",
89
+ "default": "./lib/testing.js"
99
90
  },
100
91
  "./package.json": "./package.json"
101
92
  },
@@ -124,7 +115,7 @@
124
115
  }
125
116
  },
126
117
  "scripts": {
127
- "build": "tsdown && tsc -p tsconfig.types.json",
118
+ "build": "tsdown && tsc -p tsconfig.types.json && node scripts/link-bundle-declarations.mjs",
128
119
  "bundle": "tsdown",
129
120
  "prepublishOnly": "pnpm run verify",
130
121
  "lint:package": "publint --strict && attw --pack . --profile esm-only --quiet",
@@ -133,17 +124,36 @@
133
124
  "verify:build": "node scripts/verify-deterministic-build.mjs",
134
125
  "verify:headless": "node scripts/verify-headless-profile.mjs",
135
126
  "verify:package": "node scripts/verify-package-contents.mjs && node scripts/verify-public-entries.mjs && pnpm run lint:package",
136
- "verify": "pnpm run typecheck && pnpm run test && pnpm run verify:build && pnpm run verify:headless && pnpm run verify:package",
127
+ "verify:plugins": "node scripts/verify-plugin-artifacts.mjs",
128
+ "e2e:serve": "node scripts/serve-e2e.mjs",
129
+ "verify": "pnpm run typecheck && pnpm run verify:build && pnpm --workspace-concurrency=1 -r build && pnpm -r typecheck && pnpm -r test && pnpm run test && pnpm run verify:headless && pnpm run verify:package",
137
130
  "dsh:link-source": "node scripts/link-dsh-source.mjs",
138
- "dsh:restore-registry": "node scripts/link-dsh-source.mjs --restore"
131
+ "dsh:restore-registry": "node scripts/link-dsh-source.mjs --restore",
132
+ "release:check": "node scripts/release.mjs --check"
139
133
  },
140
134
  "dependencies": {
135
+ "dsh-mnemon-provider-byterover": "0.5.0",
136
+ "dsh-mnemon-provider-hindsight": "0.5.0",
137
+ "dsh-mnemon-provider-holographic": "0.5.0",
138
+ "dsh-mnemon-provider-honcho": "0.5.0",
139
+ "dsh-mnemon-provider-mem0": "0.5.0",
140
+ "dsh-mnemon-provider-mnemon-native": "0.5.0",
141
+ "dsh-mnemon-provider-openviking": "0.5.0",
142
+ "dsh-mnemon-provider-retaindb": "0.5.0",
143
+ "dsh-mnemon-provider-supermemory": "0.5.0",
144
+ "dsh-mnemon-source-documents": "0.5.0",
145
+ "dsh-mnemon-source-memory-spaces": "0.5.0",
146
+ "dsh-mnemon-source-runtime": "0.5.0",
147
+ "dsh-mnemon-strategy-auto-capture": "0.5.0",
148
+ "dsh-mnemon-strategy-default-three-tier": "0.5.0",
149
+ "dsh-mnemon-strategy-light-context": "0.5.0",
150
+ "dsh-mnemon-strategy-scoped": "0.5.0",
141
151
  "fflate": "^0.8.3",
142
- "markdown-to-jsx": "^7.7.17",
143
152
  "schemastery": "^3.18.0",
144
153
  "zod": "^4.4.3"
145
154
  },
146
155
  "peerDependencies": {
156
+ "@deepseek-ai/cordis": "^4.0.1",
147
157
  "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6 || ^0.1.1-rc.1 || ^0.1.2-alpha.1",
148
158
  "react": "^18.2.0",
149
159
  "react-dom": "^18.2.0"
@@ -158,6 +168,7 @@
158
168
  "@deepseek-ai/dsh-client-locale": "0.1.2-rc.1",
159
169
  "@deepseek-ai/dsh-client-store": "0.1.2-rc.1",
160
170
  "@deepseek-ai/dsh-client-ui-conversation": "0.1.2-rc.1",
171
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1",
161
172
  "@deepseek-ai/dsh-client-ui-primitives": "0.1.2-rc.1",
162
173
  "@deepseek-ai/dsh-client-ui-renderer": "0.1.2-rc.1",
163
174
  "@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1",