@istarry/dsh-assistant-profile 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
- import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
2
+ import { Service } from "@deepseek-ai/cordis";
3
3
  import { defineTool } from "@deepseek-ai/dsh-tools";
4
4
  import "@deepseek-ai/dsh-llm";
5
5
  import "@deepseek-ai/dsh-session";
@@ -2690,7 +2690,7 @@ const MEMORY_ADD_VALUE_SCHEMA = {
2690
2690
  * 记忆的存储、注入、两个开关、`memory_add` 工具和按钮提炼都在这里;
2691
2691
  * 客户端只负责设置页与弹窗。
2692
2692
  */
2693
- var AssistantProfile = class extends TypertRemoteService {
2693
+ var AssistantProfile = class extends Service {
2694
2694
  config;
2695
2695
  static inject = [
2696
2696
  "systemPrompt",
@@ -2701,7 +2701,7 @@ var AssistantProfile = class extends TypertRemoteService {
2701
2701
  /** `memory_add` 工具的注册 disposer,只在开关允许时存在。 */
2702
2702
  toolDisposer;
2703
2703
  constructor(ctx, config) {
2704
- super(ctx, "assistantProfile");
2704
+ super(ctx);
2705
2705
  this.config = config;
2706
2706
  live.config = config;
2707
2707
  ctx.inject(["settings"], (child) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@istarry/dsh-assistant-profile",
3
3
  "description": "助理档案:给 DSH 一份全局人格(名称 / 风格 / 语言 / 人格提示词),每个新会话的系统提示最前面都带着它;侧栏「新会话」上方显示助理名",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",