@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 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
- "error": "rS3zOq_error",
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, transport, and locale registry. */
102
+ /** Required services: the seat's slot registry, commands Remote, and locale registry. */
103
103
  const inject = [
104
104
  "slots",
105
- "connection",
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 { result } = await ctx.get("connection").api.commands.execute({
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 (!result.value.matched) return "unknown command: /plan off";
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, transport, and locale 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.2",
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-client-connection",
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-connection": "^0.0.1-rc.2",
46
- "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2",
47
- "@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.2",
48
- "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2",
49
- "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
50
- "@deepseek-ai/dsh-client-locale": "^0.0.1-rc.2",
51
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
52
- "@deepseek-ai/dsh-plan-mode": "^0.0.1-rc.2",
53
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
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-client-test-runtime": "^0.0.1-rc.2",
59
- "@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.2",
60
- "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2",
61
- "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2",
62
- "@deepseek-ai/dsh-client-locale": "^0.0.1-rc.2",
63
- "@deepseek-ai/dsh-client-connection": "^0.0.1-rc.2",
64
- "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
65
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
66
- "@deepseek-ai/dsh-plan-mode": "^0.0.1-rc.2",
67
- "@deepseek-ai/cordis": "^4.0.1-rc.1",
68
- "@deepseek-ai/dsh-client-web-react": "^0.0.1-rc.2"
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",