@yankeguo/dsh-client-ui-devlead 0.4.0 → 0.4.2-rc.2
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/README.md +39 -2
- package/lib/client.js +1487 -66
- package/lib/index.js +23 -2
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +11 -4
package/lib/index.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
// Built by dsh-devlead. Do not edit.
|
|
2
2
|
|
|
3
3
|
// packages/client-ui/src/index.ts
|
|
4
|
-
|
|
4
|
+
import { DEVLEAD_BOARD_SCHEMA_VERSION } from "@yankeguo/dsh-devlead-protocol";
|
|
5
|
+
var inject = ["devLead"];
|
|
6
|
+
function apply(ctx) {
|
|
7
|
+
ctx.on("webserver/index-inject", (table) => {
|
|
8
|
+
const boardPath = ctx.devLead.board.path;
|
|
9
|
+
const leadSessionId = ctx.devLead.boardLeadSessionId;
|
|
10
|
+
if (boardPath === void 0 || leadSessionId === void 0) return;
|
|
11
|
+
table.push({
|
|
12
|
+
kind: "global",
|
|
13
|
+
name: "__DSH_DEVLEAD_BOARD__",
|
|
14
|
+
value: {
|
|
15
|
+
boardPath,
|
|
16
|
+
schemaVersion: DEVLEAD_BOARD_SCHEMA_VERSION,
|
|
17
|
+
// Browser schema validation must use the Host's node:path semantics,
|
|
18
|
+
// not an operating-system guess from the path string or user agent.
|
|
19
|
+
pathPlatform: process.platform === "win32" ? "win32" : "posix",
|
|
20
|
+
leadSessionId,
|
|
21
|
+
override: ctx.devLead.boardPathOverride === true
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
5
25
|
}
|
|
6
26
|
export {
|
|
7
|
-
apply
|
|
27
|
+
apply,
|
|
28
|
+
inject
|
|
8
29
|
};
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "DevLead UI",
|
|
4
|
-
"description": "Web UI for DevLead mode: the
|
|
4
|
+
"description": "Web UI for DevLead mode: the mode toggle and status strip, sidebar Session marks, and the read-only project board."
|
|
5
5
|
}
|
|
6
6
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yankeguo/dsh-client-ui-devlead",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "DevLead surfaces: the
|
|
3
|
+
"version": "0.4.2-rc.2",
|
|
4
|
+
"description": "DevLead surfaces: the mode toggle and status strip, Session sidebar marks, and a read-only right-Sidebar project board.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -22,21 +22,28 @@
|
|
|
22
22
|
"inject": [
|
|
23
23
|
"@deepseek-ai/dsh-api-remotes",
|
|
24
24
|
"@deepseek-ai/dsh-api-session-controller",
|
|
25
|
+
"@deepseek-ai/dsh-api-workspace-controller",
|
|
26
|
+
"@deepseek-ai/dsh-api-workspace-files",
|
|
25
27
|
"@deepseek-ai/dsh-client-locale",
|
|
26
28
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
27
29
|
"@deepseek-ai/dsh-client-ui-primitives",
|
|
28
30
|
"@deepseek-ai/dsh-client-ui-renderer",
|
|
29
31
|
"@deepseek-ai/dsh-client-ui-session",
|
|
32
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
30
33
|
"@deepseek-ai/dsh-client-ui-workspace"
|
|
31
34
|
],
|
|
32
35
|
"platform": "web"
|
|
33
36
|
}
|
|
34
37
|
},
|
|
35
38
|
"peerDependencies": {
|
|
36
|
-
"@deepseek-ai/cordis": "~4.1.0"
|
|
39
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
40
|
+
"@deepseek-ai/dsh-api-workspace-controller": ">=0.2.2-rc.1 <0.3.0",
|
|
41
|
+
"@deepseek-ai/dsh-api-workspace-files": ">=0.2.2-rc.1 <0.3.0",
|
|
42
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.2.2-rc.1 <0.3.0",
|
|
43
|
+
"@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.3.0"
|
|
37
44
|
},
|
|
38
45
|
"dependencies": {
|
|
39
|
-
"@yankeguo/dsh-devlead-protocol": "0.4.
|
|
46
|
+
"@yankeguo/dsh-devlead-protocol": "0.4.2-rc.2"
|
|
40
47
|
},
|
|
41
48
|
"engines": {
|
|
42
49
|
"dsh": ">=0.2.2-rc.1 <0.3.0"
|