@sleep2agi/dsh-anet 0.1.0-preview.29 → 0.1.0-preview.30
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/package.json +1 -1
- package/src/client.js +13 -2
- package/src/plugin.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/dsh-anet",
|
|
3
|
-
"version": "0.1.0-preview.
|
|
3
|
+
"version": "0.1.0-preview.30",
|
|
4
4
|
"description": "DSH (DeepSeek Harness) plugin: expose one or more DSH sessions as Agent Network (anet.sh / CommHub) nodes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/plugin.mjs",
|
package/src/client.js
CHANGED
|
@@ -88,6 +88,17 @@ window.__ModuleLoader__.load({
|
|
|
88
88
|
return `${title} · ${sessionWhen(session.createdAt)} · ${baseName(session.cwd)}`;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
function AnetMark(props) {
|
|
92
|
+
const size = props.size ?? 20;
|
|
93
|
+
return h("svg", { width: size, height: size, viewBox: "0 0 64 64", "aria-hidden": "true", style: { display: "block", flex: "none" } },
|
|
94
|
+
h("rect", { width: 64, height: 64, rx: 14, fill: "#0f172a" }),
|
|
95
|
+
h("circle", { cx: 20, cy: 22, r: 6, fill: "#38bdf8" }),
|
|
96
|
+
h("circle", { cx: 44, cy: 22, r: 6, fill: "#a78bfa" }),
|
|
97
|
+
h("circle", { cx: 32, cy: 44, r: 6, fill: "#f472b6" }),
|
|
98
|
+
h("path", { d: "M20 22 L32 44 L44 22 Z", stroke: "#e2e8f0", strokeWidth: 2, fill: "none" }),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
91
102
|
function Field(props) {
|
|
92
103
|
return h("div", { style: props.style ?? null },
|
|
93
104
|
h("label", { style: labelStyle, htmlFor: props.id }, props.label),
|
|
@@ -185,7 +196,7 @@ window.__ModuleLoader__.load({
|
|
|
185
196
|
fontSize: props.wide ? 13 : 11, fontWeight: 600, cursor: "pointer",
|
|
186
197
|
},
|
|
187
198
|
},
|
|
188
|
-
h(
|
|
199
|
+
h(AnetMark, { size: 18 }),
|
|
189
200
|
props.wide ? "ANet" : null,
|
|
190
201
|
),
|
|
191
202
|
open ? h(AnetOverlay, { t, onClose: () => openStore.set(false) }) : null,
|
|
@@ -209,7 +220,7 @@ window.__ModuleLoader__.load({
|
|
|
209
220
|
},
|
|
210
221
|
},
|
|
211
222
|
h("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "18px 20px", borderBottom: `1px solid ${T.border}` } },
|
|
212
|
-
h(
|
|
223
|
+
h(AnetMark, { size: 34 }),
|
|
213
224
|
h("div", { style: { flex: 1, minWidth: 0 } },
|
|
214
225
|
h("div", { style: { fontSize: 16, fontWeight: 700, color: T.text } }, t("title")),
|
|
215
226
|
h("div", { style: { fontSize: 12, color: T.muted, marginTop: 2 } }, t("subtitle")),
|
package/src/plugin.mjs
CHANGED
|
@@ -21,7 +21,7 @@ export { summarizeTurn } from "./turn.mjs";
|
|
|
21
21
|
export const name = "anet";
|
|
22
22
|
export const inject = ["agents", "agentDefaultModel", "sessions", "tools"];
|
|
23
23
|
|
|
24
|
-
const VERSION = "dsh-anet@0.1.0-preview.
|
|
24
|
+
const VERSION = "dsh-anet@0.1.0-preview.30";
|
|
25
25
|
|
|
26
26
|
function agentSetup(ctx) {
|
|
27
27
|
const selection = ctx.agentDefaultModel.currentSelection();
|