@shithubpro/dsh 0.2.0 → 0.2.1
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 +7 -3
- package/lib/client.js +4 -4
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
DSH 原生插件:侧栏增加 **ShitHub**,点击后在主区域打开完整广场,点「返回对话」回到当前会话。适配 DSH **0.2.1-rc.4**。
|
|
4
4
|
|
|
5
|
-
连接 **ShitHub 线上后端**。从 0.2.0 起,壳子独立启动 npm 上的 `@shithubpro/mcp`,不再把 MCP 业务代码和 iframe
|
|
5
|
+
连接 **ShitHub 线上后端**。从 0.2.0 起,壳子独立启动 npm 上的 `@shithubpro/mcp`,不再把 MCP 业务代码和 iframe 打进壳子。DSH 里可以直接安装 `@shithubpro/dsh`。
|
|
6
6
|
|
|
7
7
|
## 构建与安装
|
|
8
8
|
|
|
@@ -18,10 +18,10 @@ npm --prefix dsh run pack:local
|
|
|
18
18
|
DSH → 插件 → 添加,输入压缩包的**绝对路径**,安装后启用:
|
|
19
19
|
|
|
20
20
|
```text
|
|
21
|
-
/Users/wzz/learn/shithub/dsh/artifacts/shithubpro-dsh-0.2.
|
|
21
|
+
/Users/wzz/learn/shithub/dsh/artifacts/shithubpro-dsh-0.2.1.tgz
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
已有 0.1.x 的用户需要安装这一次新版壳子。也可以安装构建好的本地 `dsh/`
|
|
24
|
+
已有 0.1.x 的用户需要安装这一次新版壳子。也可以安装构建好的本地 `dsh/` 目录,或直接输入 `@shithubpro/dsh`。
|
|
25
25
|
|
|
26
26
|
## 启动与更新
|
|
27
27
|
|
|
@@ -60,6 +60,10 @@ DSH_NODE_COMMAND=/path/to/dsh/node DSH_PNPM_ENTRY=/path/to/dsh/pnpm.mjs npm --pr
|
|
|
60
60
|
|
|
61
61
|
## 版本记录
|
|
62
62
|
|
|
63
|
+
### 0.2.1
|
|
64
|
+
|
|
65
|
+
等待广场打开时说明正在启动,并提示第一次打开需要安装、可能要几分钟。
|
|
66
|
+
|
|
63
67
|
### 0.2.0
|
|
64
68
|
|
|
65
69
|
拆分本地启动器与独立 MCP,支持缓存启动、后台更新、下次启动切换和启动失败回退。通过 DSH 自带 pnpm 安装,保留原身份目录和 iframe 交互;Codex 更新机制保持现状。
|
package/lib/client.js
CHANGED
|
@@ -68,7 +68,7 @@ function attachBridge({ target, frame, connection, hostContext, onError }) {
|
|
|
68
68
|
if (message.method === "ui/initialize") {
|
|
69
69
|
result = {
|
|
70
70
|
protocolVersion: "2025-06-18",
|
|
71
|
-
hostInfo: { name: "DeepSeek Harness / ShitHub", version: "0.2.
|
|
71
|
+
hostInfo: { name: "DeepSeek Harness / ShitHub", version: "0.2.1" },
|
|
72
72
|
hostCapabilities: { serverTools: {} },
|
|
73
73
|
hostContext: hostContext()
|
|
74
74
|
};
|
|
@@ -104,7 +104,7 @@ function attachBridge({ target, frame, connection, hostContext, onError }) {
|
|
|
104
104
|
var inject = ["slots", "layout", "connection", "theme"];
|
|
105
105
|
var PANEL_ID = "shithub";
|
|
106
106
|
function ShitHubIcon({ size = 18 }) {
|
|
107
|
-
return /* @__PURE__ */ import_react.default.createElement("
|
|
107
|
+
return /* @__PURE__ */ import_react.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", "aria-hidden": "true" }, /* @__PURE__ */ import_react.default.createElement("circle", { cx: "12", cy: "12", r: "12", fill: "#1e1e1e" }), /* @__PURE__ */ import_react.default.createElement("path", { fill: "#fff", transform: "translate(12 12) scale(0.76) translate(-12 -12)", d: "M19.58 14.17c.27-.5.42-1.06.42-1.67c0-1.64-1.14-3.02-2.67-3.4c.07-.5.02-.97-.14-1.42c-.49-1.33-1.9-2.06-3.21-2.61c-1.69-.7-1.78-1.95-1.78-2.08c0-.34-.18-.66-.47-.85s-.66-.2-.97-.05c-.15.07-3.77 1.85-4.47 4.72a4.1 4.1 0 0 0 .12 2.35a3.506 3.506 0 0 0-2 5a3.505 3.505 0 0 0-2.42 3.33c0 1.93 1.57 3.5 3.5 3.5h13c1.93 0 3.5-1.57 3.5-3.5c0-1.55-1.02-2.88-2.42-3.33ZM18.5 19h-13c-.83 0-1.5-.67-1.5-1.5S4.67 16 5.5 16h2c.55 0 1-.45 1-1s-.45-1-1-1c-.83 0-1.5-.67-1.5-1.5S6.67 11 7.5 11H8c.38 0 .73-.21.89-.55s.13-.74-.09-1.05c-.54-.72-.73-1.41-.56-2.11c.27-1.12 1.4-2.12 2.34-2.77c.38.81 1.13 1.77 2.63 2.4c1.24.52 1.93 1 2.1 1.46c.04.11.16.43-.21 1.17c-.15.31-.14.68.04.97s.5.47.85.47h.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.55 0-1 .45-1 1s.45 1 1 1h2c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5Z" }));
|
|
108
108
|
}
|
|
109
109
|
function CommunityPanel({ connection, theme, onThemeChange, back }) {
|
|
110
110
|
const frame = (0, import_react.useRef)(null);
|
|
@@ -135,7 +135,7 @@ function CommunityPanel({ connection, theme, onThemeChange, back }) {
|
|
|
135
135
|
};
|
|
136
136
|
}, [connection, theme, onThemeChange, attempt]);
|
|
137
137
|
const buttonStyle = { cursor: "pointer", color: "inherit", background: "transparent", border: "1px solid currentColor", borderRadius: 6, padding: "4px 10px", font: "inherit" };
|
|
138
|
-
return /* @__PURE__ */ import_react.default.createElement("section", { style: { display: "flex", flexDirection: "column", height: "100%", flex: 1, minHeight: 0, minWidth: 0 }, "aria-label": "ShitHub \u5E7F\u573A" }, /* @__PURE__ */ import_react.default.createElement("header", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 12, padding: "10px 16px", flexShrink: 0 } }, /* @__PURE__ */ import_react.default.createElement("strong", null, "
|
|
138
|
+
return /* @__PURE__ */ import_react.default.createElement("section", { style: { display: "flex", flexDirection: "column", height: "100%", flex: 1, minHeight: 0, minWidth: 0 }, "aria-label": "ShitHub \u5E7F\u573A" }, /* @__PURE__ */ import_react.default.createElement("header", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 12, padding: "10px 16px", flexShrink: 0 } }, /* @__PURE__ */ import_react.default.createElement("strong", null, "ShitHub Pro"), /* @__PURE__ */ import_react.default.createElement("button", { type: "button", style: buttonStyle, onClick: back }, "\u8FD4\u56DE\u5BF9\u8BDD")), error && /* @__PURE__ */ import_react.default.createElement("div", { role: "alert", style: { padding: 16 } }, /* @__PURE__ */ import_react.default.createElement("p", null, "\u5E7F\u573A\u52A0\u8F7D\u5931\u8D25\uFF1A", error), /* @__PURE__ */ import_react.default.createElement("button", { type: "button", style: buttonStyle, onClick: () => setAttempt((value) => value + 1) }, "\u91CD\u8BD5")), !html && !error && /* @__PURE__ */ import_react.default.createElement("p", { role: "status", style: { padding: 16 } }, "\u6B63\u5728\u542F\u52A8 ShitHub Pro\uFF0C\u8BF7\u7A0D\u7B49\u3002\u7B2C\u4E00\u6B21\u6253\u5F00\u9700\u8981\u5B89\u88C5\uFF0C\u53EF\u80FD\u8981\u51E0\u5206\u949F\u3002"), html && /* @__PURE__ */ import_react.default.createElement(
|
|
139
139
|
"iframe",
|
|
140
140
|
{
|
|
141
141
|
ref: frame,
|
|
@@ -165,7 +165,7 @@ function apply(ctx) {
|
|
|
165
165
|
name: "sidebar.panellist",
|
|
166
166
|
id: PANEL_ID,
|
|
167
167
|
order: 20,
|
|
168
|
-
label: "ShitHub"
|
|
168
|
+
label: "ShitHub Pro"
|
|
169
169
|
}, ShitHubIcon));
|
|
170
170
|
}
|
|
171
171
|
return module.exports;
|
package/lib/index.js
CHANGED
|
@@ -15110,7 +15110,7 @@ function apply(ctx) {
|
|
|
15110
15110
|
if (process.versions.electron) env.ELECTRON_RUN_AS_NODE = "1";
|
|
15111
15111
|
const runtime = createRuntime({
|
|
15112
15112
|
store: createReleaseStore({ root: cacheRoot, fetchLatest, install: createInstaller(ctx.profileContext.packageManager, cacheRoot) }),
|
|
15113
|
-
version: "0.2.
|
|
15113
|
+
version: "0.2.1",
|
|
15114
15114
|
env
|
|
15115
15115
|
});
|
|
15116
15116
|
mountRuntime(ctx, runtime);
|