@deepseek-ai/dsh-client-ui-plan 0.0.1-rc.2 → 0.0.1-rc.3
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/client.js +8 -10
- package/lib/types/client/index.d.ts +1 -1
- package/package.json +22 -22
package/lib/client.js
CHANGED
|
@@ -18,10 +18,10 @@ window.__ModuleLoader__.load({
|
|
|
18
18
|
document.head.appendChild(tag);
|
|
19
19
|
}
|
|
20
20
|
var PlanModeControl_module_css_default = {
|
|
21
|
-
"wrap": "rS3zOq_wrap",
|
|
22
21
|
"chip": "rS3zOq_chip",
|
|
23
|
-
"
|
|
24
|
-
"close": "rS3zOq_close"
|
|
22
|
+
"wrap": "rS3zOq_wrap",
|
|
23
|
+
"close": "rS3zOq_close",
|
|
24
|
+
"error": "rS3zOq_error"
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region lib/types/client/PlanModeControl.js
|
|
@@ -99,10 +99,11 @@ window.__ModuleLoader__.load({
|
|
|
99
99
|
//#region lib/types/client/index.js
|
|
100
100
|
/** Dictionary namespace owned by this plugin. */
|
|
101
101
|
const NS = "plan";
|
|
102
|
-
/** Required services: the seat's slot registry,
|
|
102
|
+
/** Required services: the seat's slot registry, commands Remote, and locale registry. */
|
|
103
103
|
const inject = [
|
|
104
104
|
"slots",
|
|
105
|
-
"
|
|
105
|
+
"remote",
|
|
106
|
+
"remote.commands",
|
|
106
107
|
"locale"
|
|
107
108
|
];
|
|
108
109
|
/**
|
|
@@ -118,12 +119,9 @@ window.__ModuleLoader__.load({
|
|
|
118
119
|
name: "conversation.input.plan",
|
|
119
120
|
locale: NS,
|
|
120
121
|
inject: (sessionId) => ({ exitPlanMode: async () => {
|
|
121
|
-
const
|
|
122
|
-
sessionId,
|
|
123
|
-
line: "/plan off"
|
|
124
|
-
});
|
|
122
|
+
const result = await ctx.remote.commands.execute(sessionId, "/plan off");
|
|
125
123
|
if (!result.ok) return `${result.error.message} (${result.error.code})`;
|
|
126
|
-
if (
|
|
124
|
+
if (result.value === void 0) return "unknown command: /plan off";
|
|
127
125
|
return null;
|
|
128
126
|
} })
|
|
129
127
|
}, PlanChip));
|
|
@@ -15,7 +15,7 @@ export interface PlanChipInjected {
|
|
|
15
15
|
*/
|
|
16
16
|
exitPlanMode: () => Promise<string | null>;
|
|
17
17
|
}
|
|
18
|
-
/** Required services: the seat's slot registry,
|
|
18
|
+
/** Required services: the seat's slot registry, commands Remote, and locale registry. */
|
|
19
19
|
export declare const inject: string[];
|
|
20
20
|
/**
|
|
21
21
|
* Client plugin body: register the plan chip over the command channel.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-plan",
|
|
3
3
|
"description": "Plan-mode composer control: the conversation.input.plan seat over the plan projection and the /plan command channel",
|
|
4
|
-
"version": "0.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dsh": {
|
|
33
33
|
"client": {
|
|
34
34
|
"inject": [
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
35
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
36
36
|
"@deepseek-ai/dsh-client-locale",
|
|
37
37
|
"@deepseek-ai/dsh-client-ui-conversation"
|
|
38
38
|
],
|
|
@@ -42,30 +42,30 @@
|
|
|
42
42
|
"license": "BSD-3-Clause",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^18.2.0",
|
|
45
|
-
"@deepseek-ai/dsh-client-
|
|
46
|
-
"@deepseek-ai/dsh-client-
|
|
47
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.
|
|
48
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/
|
|
53
|
-
"@deepseek-ai/
|
|
45
|
+
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.3",
|
|
46
|
+
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.3",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.3",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.3",
|
|
49
|
+
"@deepseek-ai/dsh-api-remotes": "^0.0.1-rc.3",
|
|
50
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.3",
|
|
51
|
+
"@deepseek-ai/dsh-plan-mode": "^0.0.1-rc.3",
|
|
52
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/react": "~18.3.1",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-client-
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-
|
|
61
|
-
"@deepseek-ai/dsh-client-
|
|
62
|
-
"@deepseek-ai/dsh-client-
|
|
63
|
-
"@deepseek-ai/dsh-client-
|
|
64
|
-
"@deepseek-ai/dsh-client-
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/
|
|
68
|
-
"@deepseek-ai/
|
|
58
|
+
"@deepseek-ai/dsh-api-remotes": "^0.0.1-rc.3",
|
|
59
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.0.1-rc.3",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.3",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.3",
|
|
62
|
+
"@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.3",
|
|
63
|
+
"@deepseek-ai/dsh-client-locale": "^0.0.1-rc.3",
|
|
64
|
+
"@deepseek-ai/dsh-client-web-react": "^0.0.1-rc.3",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.3",
|
|
66
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.3",
|
|
67
|
+
"@deepseek-ai/dsh-plan-mode": "^0.0.1-rc.3",
|
|
68
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.1"
|
|
69
69
|
},
|
|
70
70
|
"files": [
|
|
71
71
|
"lib/index.js",
|