@michengai/dsh-btw 0.1.24 → 1.0.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.
package/lib/index.js CHANGED
@@ -454,7 +454,8 @@ function apply(ctx) {
454
454
  }
455
455
  const label = `michengai-btw:${globalThis.crypto.randomUUID()}`;
456
456
  labels.add(label);
457
- if (typeof ctx.subagents.startActivation === "function") {
457
+ const subagents = ctx.subagents;
458
+ if (typeof subagents.startActivation === "function") {
458
459
  const childId = SessionId(globalThis.crypto.randomUUID());
459
460
  let childAgent;
460
461
  try {
@@ -475,7 +476,7 @@ function apply(ctx) {
475
476
  });
476
477
  let activation;
477
478
  try {
478
- activation = await ctx.subagents.startActivation({
479
+ activation = await subagents.startActivation({
479
480
  provider: "fork",
480
481
  label,
481
482
  childId,
@@ -507,13 +508,12 @@ ${request.question}` }]
507
508
  throw error;
508
509
  }
509
510
  }
510
- const legacySubagents = ctx.subagents;
511
- if (typeof legacySubagents.start !== "function") {
511
+ if (typeof subagents.start !== "function") {
512
512
  labels.delete(label);
513
513
  throw new Error(translate(request.locale)("error.provider"));
514
514
  }
515
515
  try {
516
- const run = await legacySubagents.start("fork", {
516
+ const run = await subagents.start("fork", {
517
517
  parent: request.context,
518
518
  label,
519
519
  signal: request.signal,
@@ -12,5 +12,5 @@ export type HostMarkdownText = ComponentType<{
12
12
  labels: HostMarkdownLabels;
13
13
  variant?: 'body' | 'compact';
14
14
  }>;
15
- /** 宿主基座模块。旧宿主没有它时返回 null,调用方改用自带 Markdown。 */
15
+ /** 宿主基座模块。未导出 MarkdownText 时返回 null,调用方改用自带 Markdown。 */
16
16
  export declare function loadHostMarkdownText(): HostMarkdownText | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michengai/dsh-btw",
3
- "version": "0.1.24",
3
+ "version": "1.0.0",
4
4
  "description": "DSH 一次性只读旁问插件:基于当前上下文回答,独立气泡,不执行工具 · One-shot read-only side-ask plugin: answers from current context in an independent bubble, no tool execution",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,45 +64,45 @@
64
64
  "license": "Apache-2.0",
65
65
  "peerDependencies": {
66
66
  "@deepseek-ai/cordis": "^4.0.2",
67
- "@deepseek-ai/dsh-commands": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.2 || 0.2.1-alpha.3",
68
- "@deepseek-ai/dsh-subagent": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.2 || 0.2.1-alpha.3",
69
- "@deepseek-ai/dsh-tools": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.2 || 0.2.1-alpha.3",
67
+ "@deepseek-ai/dsh-commands": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
68
+ "@deepseek-ai/dsh-subagent": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
69
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
70
70
  "react": "^18.3.1",
71
- "@deepseek-ai/dsh-session": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.2 || 0.2.1-alpha.3",
72
- "@deepseek-ai/dsh-system-prompt": "0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-alpha.2 || 0.2.1-alpha.3"
71
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2",
72
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2"
73
73
  },
74
74
  "devDependencies": {
75
- "@deepseek-ai/cordis": "4.0.5-alpha.2",
76
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.3",
77
- "@deepseek-ai/dsh-agent-loop": "0.2.1-alpha.3",
78
- "@deepseek-ai/dsh-api-gateway": "0.2.1-alpha.3",
79
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.3",
80
- "@deepseek-ai/dsh-attachment": "0.2.1-alpha.3",
81
- "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.3",
82
- "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.3",
83
- "@deepseek-ai/dsh-client-ui-chat": "0.2.1-alpha.3",
84
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.3",
85
- "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-alpha.3",
86
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.3",
87
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.3",
88
- "@deepseek-ai/dsh-client-ui-theme": "0.2.1-alpha.3",
89
- "@deepseek-ai/dsh-commands": "0.2.1-alpha.3",
90
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.3",
91
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-alpha.3",
92
- "@deepseek-ai/dsh-sandbox": "0.2.1-alpha.3",
93
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-alpha.3",
94
- "@deepseek-ai/dsh-scope": "0.2.1-alpha.3",
95
- "@deepseek-ai/dsh-session": "0.2.1-alpha.3",
96
- "@deepseek-ai/dsh-session-persistence": "0.2.1-alpha.3",
97
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.3",
98
- "@deepseek-ai/dsh-subagent": "0.2.1-alpha.3",
99
- "@deepseek-ai/dsh-subagent-fork-in-process": "0.2.1-alpha.3",
100
- "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.3",
101
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.3",
102
- "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.3",
103
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.3",
104
- "@deepseek-ai/dsh-typert-registry": "0.2.1-alpha.3",
105
- "@deepseek-ai/dsh-util-time": "0.2.1-alpha.3",
75
+ "@deepseek-ai/cordis": "4.0.5",
76
+ "@deepseek-ai/dsh-agent": "0.2.1-rc.2",
77
+ "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.2",
78
+ "@deepseek-ai/dsh-api-gateway": "0.2.1-rc.2",
79
+ "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
80
+ "@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
81
+ "@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
82
+ "@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
83
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.2",
84
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
85
+ "@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-rc.2",
86
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
87
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
88
+ "@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.2",
89
+ "@deepseek-ai/dsh-commands": "0.2.1-rc.2",
90
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.2",
91
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.2",
92
+ "@deepseek-ai/dsh-sandbox": "0.2.1-rc.2",
93
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2",
94
+ "@deepseek-ai/dsh-scope": "0.2.1-rc.2",
95
+ "@deepseek-ai/dsh-session": "0.2.1-rc.2",
96
+ "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.2",
97
+ "@deepseek-ai/dsh-session-projection": "0.2.1-rc.2",
98
+ "@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
99
+ "@deepseek-ai/dsh-subagent-fork-in-process": "0.2.1-rc.2",
100
+ "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
101
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
102
+ "@deepseek-ai/dsh-user-approval": "0.2.1-rc.2",
103
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
104
+ "@deepseek-ai/dsh-typert-registry": "0.2.1-rc.2",
105
+ "@deepseek-ai/dsh-util-time": "0.2.1-rc.2",
106
106
  "@types/node": "^22.0.0",
107
107
  "@types/react": "^18.3.1",
108
108
  "@types/react-dom": "^18.3.7",
@@ -115,5 +115,9 @@
115
115
  "remark-gfm": "^4.0.1",
116
116
  "typescript": "~5.7.2",
117
117
  "vitest": "^3.2.0"
118
+ },
119
+ "allowScripts": {
120
+ "esbuild@0.25.12": true,
121
+ "esbuild@0.28.2": true
118
122
  }
119
123
  }