@dcrays/mbh-memory 0.1.0 → 0.1.1-beta.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 +1 -1
- package/cordis.patch.yml +6 -6
- package/package.json +3 -3
- package/plugin/index.d.ts +0 -1
- package/plugin/index.js +5 -25
- package/src/config/env-config.d.ts +8 -9
- package/src/config/env-config.js +7 -16
package/README.md
CHANGED
package/cordis.patch.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
- insert:
|
|
2
|
-
- id: mbh-memory
|
|
3
|
-
name: '@dcrays/mbh-memory'
|
|
4
|
-
config:
|
|
5
|
-
enabled: true
|
|
6
|
-
baseUrl: ""
|
|
1
|
+
- insert:
|
|
2
|
+
- id: mbh-memory
|
|
3
|
+
name: '@dcrays/mbh-memory'
|
|
4
|
+
config:
|
|
5
|
+
enabled: true
|
|
6
|
+
baseUrl: ""
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcrays/mbh-memory",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "DeepSeek Harness memory plugin for Mobook
|
|
3
|
+
"version": "0.1.1-beta.1",
|
|
4
|
+
"description": "DeepSeek Harness memory plugin for Mobook",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "plugin/index.js",
|
|
7
7
|
"types": "plugin/index.d.ts",
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
package/plugin/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { Context } from '@deepseek-ai/cordis';
|
|
|
2
2
|
import { Service } from '@deepseek-ai/cordis';
|
|
3
3
|
import z from '@deepseek-ai/schemastery';
|
|
4
4
|
import { type MemoryApiValue } from '../src/index.js';
|
|
5
|
-
export { DEFAULT_BUILD_ENV } from '../src/config/env-config.js';
|
|
6
5
|
export declare const name = "mbh-memory";
|
|
7
6
|
export declare const inject: string[];
|
|
8
7
|
export interface Config {
|
package/plugin/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __mobookCreateRequire } from 'node:module'; const require = __mobookCreateRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// dist
|
|
3
|
+
// dist/plugin/index.js
|
|
4
4
|
import { Service } from "@deepseek-ai/cordis";
|
|
5
5
|
import z from "@deepseek-ai/schemastery";
|
|
6
6
|
|
|
7
|
-
// dist
|
|
7
|
+
// dist/src/api-client.js
|
|
8
8
|
var MemoryApiError = class extends Error {
|
|
9
9
|
code;
|
|
10
10
|
constructor(code, message, options) {
|
|
@@ -133,7 +133,7 @@ var MemoryApiClient = class {
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
// dist
|
|
136
|
+
// dist/src/tools.js
|
|
137
137
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
138
138
|
function render(value) {
|
|
139
139
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
@@ -172,29 +172,10 @@ function createMemoryTools(memory) {
|
|
|
172
172
|
return [getMemory, setMemory];
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
// dist
|
|
175
|
+
// dist/src/index.js
|
|
176
176
|
var MBH_MEMORY_SERVICE_KEY = "mbhMemory";
|
|
177
177
|
|
|
178
|
-
// dist
|
|
179
|
-
var ENV_CONFIG = {
|
|
180
|
-
production: {
|
|
181
|
-
packageName: "@dcrays/mbh-memory",
|
|
182
|
-
channelId: "mbh-memory"
|
|
183
|
-
},
|
|
184
|
-
test: {
|
|
185
|
-
packageName: "@dcrays/mbh-memory-test",
|
|
186
|
-
channelId: "mbh-memory-test"
|
|
187
|
-
},
|
|
188
|
-
uat: {
|
|
189
|
-
packageName: "@dcrays/mbh-memory-uat",
|
|
190
|
-
channelId: "mbh-memory-uat"
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
var DEFAULT_BUILD_ENV = "production";
|
|
194
|
-
var CONFIG_CHANNEL_ID = ENV_CONFIG[DEFAULT_BUILD_ENV].channelId;
|
|
195
|
-
var CONFIG_PLUGIN_PATH = `plugins.${CONFIG_CHANNEL_ID}`;
|
|
196
|
-
|
|
197
|
-
// dist-npm/plugin/index.js
|
|
178
|
+
// dist/plugin/index.js
|
|
198
179
|
var name = "@dcrays/mbh-memory";
|
|
199
180
|
var inject = ["tools"];
|
|
200
181
|
var Config = z.object({
|
|
@@ -256,7 +237,6 @@ function apply(ctx, config) {
|
|
|
256
237
|
}
|
|
257
238
|
export {
|
|
258
239
|
Config,
|
|
259
|
-
DEFAULT_BUILD_ENV,
|
|
260
240
|
MbhMemoryService,
|
|
261
241
|
apply,
|
|
262
242
|
inject,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const CONFIG_PLUGIN_PATH: `plugins.${string}`;
|
|
1
|
+
export declare const PACKAGE_NAME = "@dcrays/mbh-memory";
|
|
2
|
+
/**
|
|
3
|
+
* A single package ships for every desktop build. The channel identity stays
|
|
4
|
+
* constant; per-environment behavior is resolved at runtime from mobook.json by
|
|
5
|
+
* the plugins that need it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONFIG_CHANNEL_ID = "mbh-memory";
|
|
8
|
+
export declare const CONFIG_PLUGIN_PATH: "plugins.mbh-memory";
|
package/src/config/env-config.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
export const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
channelId: 'mbh-memory-test'
|
|
9
|
-
},
|
|
10
|
-
uat: {
|
|
11
|
-
packageName: '@dcrays/mbh-memory-uat',
|
|
12
|
-
channelId: 'mbh-memory-uat'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export const DEFAULT_BUILD_ENV = 'production';
|
|
16
|
-
export const CONFIG_CHANNEL_ID = ENV_CONFIG[DEFAULT_BUILD_ENV].channelId;
|
|
1
|
+
export const PACKAGE_NAME = '@dcrays/mbh-memory';
|
|
2
|
+
/**
|
|
3
|
+
* A single package ships for every desktop build. The channel identity stays
|
|
4
|
+
* constant; per-environment behavior is resolved at runtime from mobook.json by
|
|
5
|
+
* the plugins that need it.
|
|
6
|
+
*/
|
|
7
|
+
export const CONFIG_CHANNEL_ID = 'mbh-memory';
|
|
17
8
|
export const CONFIG_PLUGIN_PATH = `plugins.${CONFIG_CHANNEL_ID}`;
|