dsh-mnemon 0.5.42 → 0.5.44
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 +1 -1
- package/README.zh-CN.md +1 -1
- package/bin/repair-legacy-session.mjs +18 -2
- package/lib/bundle.js +1 -1
- package/lib/client.js +587 -162
- package/lib/extension-sdk.js +39 -1
- package/lib/index.js +818 -170
- package/lib/{starter-resolution-B5mdKlvf.js → starter-resolution-LTLQsJPW.js} +7 -7
- package/lib/starter.js +1 -1
- package/lib/types/src/client/locales.d.ts +25 -0
- package/lib/types/src/host/protocol.d.ts +11 -0
- package/lib/types/src/sdk/index.d.ts +1 -0
- package/lib/types/src/sdk/projection-reservation.d.ts +3 -0
- package/locale/detail.en.md +7 -0
- package/locale/detail.zh.md +7 -0
- package/locale/en.json +3 -1
- package/locale/zh.json +2 -1
- package/package.json +9 -8
|
@@ -5,22 +5,22 @@ var name = "dsh-mnemon";
|
|
|
5
5
|
var dependencies = {
|
|
6
6
|
"@deepseek-ai/cosmokit": "^1.8.5",
|
|
7
7
|
"@deepseek-ai/schemastery": "^3.18.4",
|
|
8
|
-
"dsh-mnemon-provider-byterover": "0.5.
|
|
8
|
+
"dsh-mnemon-provider-byterover": "0.5.7",
|
|
9
9
|
"dsh-mnemon-provider-hindsight": "0.5.7",
|
|
10
10
|
"dsh-mnemon-provider-holographic": "0.5.7",
|
|
11
11
|
"dsh-mnemon-provider-honcho": "0.5.5",
|
|
12
12
|
"dsh-mnemon-provider-mem0": "0.5.5",
|
|
13
|
-
"dsh-mnemon-provider-mnemon-native": "0.5.
|
|
13
|
+
"dsh-mnemon-provider-mnemon-native": "0.5.11",
|
|
14
14
|
"dsh-mnemon-provider-openviking": "0.5.10",
|
|
15
15
|
"dsh-mnemon-provider-retaindb": "0.5.6",
|
|
16
16
|
"dsh-mnemon-provider-supermemory": "0.5.5",
|
|
17
17
|
"dsh-mnemon-source-documents": "0.6.0",
|
|
18
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
19
|
-
"dsh-mnemon-source-runtime": "0.5.
|
|
20
|
-
"dsh-mnemon-source-skills": "0.5.
|
|
18
|
+
"dsh-mnemon-source-memory-spaces": "0.5.27",
|
|
19
|
+
"dsh-mnemon-source-runtime": "0.5.19",
|
|
20
|
+
"dsh-mnemon-source-skills": "0.5.11",
|
|
21
21
|
"dsh-mnemon-strategy-auto-capture": "0.5.5",
|
|
22
|
-
"dsh-mnemon-strategy-default-three-tier": "0.5.
|
|
23
|
-
"dsh-mnemon-strategy-general": "0.5.
|
|
22
|
+
"dsh-mnemon-strategy-default-three-tier": "0.5.13",
|
|
23
|
+
"dsh-mnemon-strategy-general": "0.5.2",
|
|
24
24
|
"dsh-mnemon-strategy-light-context": "0.5.6",
|
|
25
25
|
"dsh-mnemon-strategy-scoped": "0.5.5",
|
|
26
26
|
"fflate": "^0.8.3",
|
package/lib/starter.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/** Mnemon workspace copy, synchronized with DSH's global locale service. */
|
|
2
2
|
export declare const zh: {
|
|
3
|
+
'composer.expand': string;
|
|
4
|
+
'composer.collapse': string;
|
|
5
|
+
'composer.collapsed': string;
|
|
3
6
|
'tab.label': string;
|
|
4
7
|
'nav.aria': string;
|
|
5
8
|
'nav.status': string;
|
|
@@ -354,6 +357,8 @@ export declare const zh: {
|
|
|
354
357
|
'config.workspaceScopeHint': string;
|
|
355
358
|
'config.dataDirectory': string;
|
|
356
359
|
'config.runtimeUserScopeTitle': string;
|
|
360
|
+
'config.runtimeInheritance': string;
|
|
361
|
+
'config.runtimeInheritanceHint': string;
|
|
357
362
|
'config.runtimeUserScopeStorage': string;
|
|
358
363
|
'config.runtimeUserScopeStorageHint': string;
|
|
359
364
|
'config.runtimeUserScopeGlobal': string;
|
|
@@ -791,6 +796,12 @@ export declare const zh: {
|
|
|
791
796
|
'skills.targetScope.project': string;
|
|
792
797
|
'skills.targetScope.storage': string;
|
|
793
798
|
'skills.evolutionHint': string;
|
|
799
|
+
'skills.autoAdoptDailyLimit': string;
|
|
800
|
+
'skills.autoAdoptTimeZone': string;
|
|
801
|
+
'skills.autoBudgetHint': string;
|
|
802
|
+
'skills.autoBudgetInvalid': string;
|
|
803
|
+
'skills.autoAdopt': string;
|
|
804
|
+
'skills.autoAdoptHint': string;
|
|
794
805
|
'skills.autoBacktest': string;
|
|
795
806
|
'skills.autoBacktestHint': string;
|
|
796
807
|
'skills.parameters': string;
|
|
@@ -1308,6 +1319,14 @@ export declare const zh: {
|
|
|
1308
1319
|
"config.providerLoadFailed": string;
|
|
1309
1320
|
"config.retryProviders": string;
|
|
1310
1321
|
"config.saving": string;
|
|
1322
|
+
"config.embeddingApiKeyEnv": string;
|
|
1323
|
+
"config.embeddingEnvInvalid": string;
|
|
1324
|
+
"config.embeddingAuthChoice": string;
|
|
1325
|
+
"config.embeddingKeyPlaceholder": string;
|
|
1326
|
+
"config.embeddingCredentialSaved": string;
|
|
1327
|
+
"config.embeddingClearKey": string;
|
|
1328
|
+
"config.embeddingMigrateKey": string;
|
|
1329
|
+
"config.embeddingUpgradeHost": string;
|
|
1311
1330
|
"nav.documents": string;
|
|
1312
1331
|
"documents.title": string;
|
|
1313
1332
|
"documents.description": string;
|
|
@@ -1420,6 +1439,12 @@ export declare const zh: {
|
|
|
1420
1439
|
"runtime.result.localArchive": string;
|
|
1421
1440
|
"runtime.readOnly": string;
|
|
1422
1441
|
"runtime.footnote": string;
|
|
1442
|
+
"runtime.pinned": string;
|
|
1443
|
+
"runtime.pin": string;
|
|
1444
|
+
"runtime.unpin": string;
|
|
1445
|
+
"runtime.pinnedNotice": string;
|
|
1446
|
+
"runtime.unpinnedNotice": string;
|
|
1447
|
+
"runtime.pinBudget": string;
|
|
1423
1448
|
};
|
|
1424
1449
|
export type MnemonKey = keyof typeof zh;
|
|
1425
1450
|
export declare const en: Record<MnemonKey, string>;
|
|
@@ -220,6 +220,8 @@ export interface CustomPackConfig {
|
|
|
220
220
|
dataDir: string;
|
|
221
221
|
}
|
|
222
222
|
export interface RuntimeMemoryConfig {
|
|
223
|
+
/** Automatically project Runtime memory into newly created child Agents; off by default. */
|
|
224
|
+
inheritToSubagents?: boolean;
|
|
223
225
|
/** Maximum UTF-8 bytes projected into MEMORY.md. */
|
|
224
226
|
memoryLimitBytes?: number;
|
|
225
227
|
/** Maximum UTF-8 bytes projected into USER.md. */
|
|
@@ -228,6 +230,7 @@ export interface RuntimeMemoryConfig {
|
|
|
228
230
|
maintenanceMaxTokens?: number;
|
|
229
231
|
}
|
|
230
232
|
export interface ResolvedRuntimeMemoryConfig {
|
|
233
|
+
inheritToSubagents: boolean;
|
|
231
234
|
memoryLimitBytes: number;
|
|
232
235
|
userLimitBytes: number;
|
|
233
236
|
maintenanceMaxTokens: number;
|
|
@@ -389,6 +392,12 @@ export interface ResolvedSkillsConfig {
|
|
|
389
392
|
targetScope: 'storage' | 'user' | 'project';
|
|
390
393
|
/** Backtest a draft against the current version as soon as it is written. */
|
|
391
394
|
autoBacktest: boolean;
|
|
395
|
+
/** Opt-in automatic drafting and evaluated adoption of new idle-review suggestions. */
|
|
396
|
+
autoAdopt: boolean;
|
|
397
|
+
/** Candidates admitted each calendar day, shared by the Skills storage root. */
|
|
398
|
+
autoAdoptDailyLimit: number;
|
|
399
|
+
/** IANA time zone, or local for the Host process time zone. */
|
|
400
|
+
autoAdoptTimeZone: string;
|
|
392
401
|
/** Output budget for a complete skill draft, including model reasoning. */
|
|
393
402
|
draftMaxTokens: number;
|
|
394
403
|
/** One fresh attempt after truncation, only when larger than draftMaxTokens. */
|
|
@@ -413,6 +422,8 @@ export interface ResolvedSkillsConfig {
|
|
|
413
422
|
casesPerRun: number;
|
|
414
423
|
}
|
|
415
424
|
export declare const DEFAULT_SKILLS_CONFIG: Readonly<ResolvedSkillsConfig>;
|
|
425
|
+
/** Shared validation without exposing Host environment values to the browser. */
|
|
426
|
+
export declare function validSkillsTimeZone(value: string): boolean;
|
|
416
427
|
/** One skill a turn used: the model loaded it, or the user asked for it with `/name`. */
|
|
417
428
|
export interface TurnSkillUse {
|
|
418
429
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { reserveMemoryProjection } from './projection-reservation.ts';
|
|
1
2
|
export { installMemory } from './install.ts';
|
|
2
3
|
export type { MnemonMemoryService, InstallMemoryOptions, MemoryInstallContribution } from './service.ts';
|
|
3
4
|
export { defineMemoryPlugin, defineMemorySource, defineMemoryStrategy, defineMemoryStrategyExtension } from '../core/definitions.ts';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { MemorySourceFacts, MemoryViewSpec } from '../core/contracts/index.ts';
|
|
2
|
+
/** Reserve complete Source-declared resident data inside the existing View ceiling. */
|
|
3
|
+
export declare function reserveMemoryProjection(spec: MemoryViewSpec, sources: readonly MemorySourceFacts[], budget: number): MemoryViewSpec;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Mnemon
|
|
2
|
+
|
|
3
|
+
Persistent memory and skills that improve from your conversations, with Runtime memory, project documents and pluggable Memory Spaces.
|
|
4
|
+
|
|
5
|
+
Use the sidebar to manage memories and skills. Configure the plugin on this page.
|
|
6
|
+
|
|
7
|
+
[Getting started](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/guides/getting-started.md) · [Full documentation](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/en/README.md) · [Report an issue](https://github.com/omdsh-dev/dsh-mnemon/issues)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Mnemon
|
|
2
|
+
|
|
3
|
+
让记忆与技能随对话持续积累,支持运行时记忆、项目档案和可扩展的记忆空间。
|
|
4
|
+
|
|
5
|
+
通过侧边栏管理记忆与技能,在当前页面配置插件。
|
|
6
|
+
|
|
7
|
+
[开始使用](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/guides/getting-started.md) · [完整文档](https://github.com/omdsh-dev/dsh-mnemon/blob/main/docs/zh-CN/README.md) · [反馈问题](https://github.com/omdsh-dev/dsh-mnemon/issues)
|
package/locale/en.json
CHANGED
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mnemon",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.44",
|
|
4
4
|
"description": "Composable, view-based context for DeepSeek Harness. Pluggable sources and strategies, with layered memory and self-evolving skills out of the box.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
|
+
"verify:windows-pnpm": "node --experimental-strip-types scripts/verify-windows-pnpm.mjs",
|
|
133
134
|
"build": "tsdown && tsc -p tsconfig.types.json && node scripts/link-bundle-declarations.mjs",
|
|
134
135
|
"prepublishOnly": "pnpm run verify",
|
|
135
136
|
"lint:package": "publint --strict && attw --pack . --profile esm-only --quiet",
|
|
@@ -155,22 +156,22 @@
|
|
|
155
156
|
"dependencies": {
|
|
156
157
|
"@deepseek-ai/cosmokit": "^1.8.5",
|
|
157
158
|
"@deepseek-ai/schemastery": "^3.18.4",
|
|
158
|
-
"dsh-mnemon-provider-byterover": "0.5.
|
|
159
|
+
"dsh-mnemon-provider-byterover": "0.5.7",
|
|
159
160
|
"dsh-mnemon-provider-hindsight": "0.5.7",
|
|
160
161
|
"dsh-mnemon-provider-holographic": "0.5.7",
|
|
161
162
|
"dsh-mnemon-provider-honcho": "0.5.5",
|
|
162
163
|
"dsh-mnemon-provider-mem0": "0.5.5",
|
|
163
|
-
"dsh-mnemon-provider-mnemon-native": "0.5.
|
|
164
|
+
"dsh-mnemon-provider-mnemon-native": "0.5.11",
|
|
164
165
|
"dsh-mnemon-provider-openviking": "0.5.10",
|
|
165
166
|
"dsh-mnemon-provider-retaindb": "0.5.6",
|
|
166
167
|
"dsh-mnemon-provider-supermemory": "0.5.5",
|
|
167
168
|
"dsh-mnemon-source-documents": "0.6.0",
|
|
168
|
-
"dsh-mnemon-source-memory-spaces": "0.5.
|
|
169
|
-
"dsh-mnemon-source-runtime": "0.5.
|
|
170
|
-
"dsh-mnemon-source-skills": "0.5.
|
|
169
|
+
"dsh-mnemon-source-memory-spaces": "0.5.27",
|
|
170
|
+
"dsh-mnemon-source-runtime": "0.5.19",
|
|
171
|
+
"dsh-mnemon-source-skills": "0.5.11",
|
|
171
172
|
"dsh-mnemon-strategy-auto-capture": "0.5.5",
|
|
172
|
-
"dsh-mnemon-strategy-default-three-tier": "0.5.
|
|
173
|
-
"dsh-mnemon-strategy-general": "0.5.
|
|
173
|
+
"dsh-mnemon-strategy-default-three-tier": "0.5.13",
|
|
174
|
+
"dsh-mnemon-strategy-general": "0.5.2",
|
|
174
175
|
"dsh-mnemon-strategy-light-context": "0.5.6",
|
|
175
176
|
"dsh-mnemon-strategy-scoped": "0.5.5",
|
|
176
177
|
"fflate": "^0.8.3",
|