@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/CHANGELOG.md +5 -0
- package/CHANGELOG.zh-CN.md +5 -0
- package/README.md +7 -6
- package/README.zh-CN.md +7 -6
- package/lib/client.js +502 -364
- package/lib/index.js +5 -5
- package/lib/types/client/host-markdown.d.ts +1 -1
- package/package.json +41 -37
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
/**
|
|
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.
|
|
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.
|
|
68
|
-
"@deepseek-ai/dsh-subagent": "0.
|
|
69
|
-
"@deepseek-ai/dsh-tools": "0.
|
|
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.
|
|
72
|
-
"@deepseek-ai/dsh-system-prompt": "0.
|
|
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
|
|
76
|
-
"@deepseek-ai/dsh-agent": "0.2.1-
|
|
77
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-
|
|
78
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.1-
|
|
79
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.1-
|
|
80
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-
|
|
81
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
82
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-
|
|
87
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-
|
|
89
|
-
"@deepseek-ai/dsh-commands": "0.2.1-
|
|
90
|
-
"@deepseek-ai/dsh-llm": "0.2.1-
|
|
91
|
-
"@deepseek-ai/dsh-ptc-runtime": "0.2.1-
|
|
92
|
-
"@deepseek-ai/dsh-sandbox": "0.2.1-
|
|
93
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-
|
|
94
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
95
|
-
"@deepseek-ai/dsh-session": "0.2.1-
|
|
96
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.1-
|
|
97
|
-
"@deepseek-ai/dsh-session-projection": "0.2.1-
|
|
98
|
-
"@deepseek-ai/dsh-subagent": "0.2.1-
|
|
99
|
-
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.1-
|
|
100
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-
|
|
101
|
-
"@deepseek-ai/dsh-tools": "0.2.1-
|
|
102
|
-
"@deepseek-ai/dsh-user-approval": "0.2.1-
|
|
103
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-
|
|
104
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.1-
|
|
105
|
-
"@deepseek-ai/dsh-util-time": "0.2.1-
|
|
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
|
}
|