dsh-monkeyai-sessions 0.1.12 → 0.1.13

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 CHANGED
@@ -61,7 +61,7 @@ From a checkout:
61
61
  npm install
62
62
  npm run build
63
63
  npm pack
64
- dsh plugin --profile web add ./dsh-monkeyai-sessions-0.1.12.tgz
64
+ dsh plugin --profile web add ./dsh-monkeyai-sessions-0.1.13.tgz
65
65
  ```
66
66
 
67
67
  Verified against a real DSH `0.2.2-rc.1` web profile and a live MonkeyAI runtime: authorization, full history loading, prompt delivery, model switching, and turn cancellation all work end to end.
package/README.zh.md CHANGED
@@ -28,7 +28,7 @@ https://artenx.github.io/dsh-monkeyai-sessions/index.json
28
28
  npm install
29
29
  npm run build
30
30
  npm pack
31
- dsh plugin --profile web add ./dsh-monkeyai-sessions-0.1.12.tgz
31
+ dsh plugin --profile web add ./dsh-monkeyai-sessions-0.1.13.tgz
32
32
  ```
33
33
 
34
34
  已在真实的 DSH `0.2.2-rc.1` web profile 与在线 MonkeyAI runtime 上端到端验证:授权、完整历史加载、指令下发、模型切换、回合取消均正常工作。
package/client.js CHANGED
@@ -553,7 +553,7 @@ window.__ModuleLoader__.load({
553
553
  toolbarCard: { display: "grid", gap: 10, padding: "13px 15px", border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, backgroundImage: "linear-gradient(90deg, #3568e8 0%, #8baaf4 46%, #e7edfc 100%)", backgroundSize: "100% 3px", backgroundPosition: "0 0", backgroundRepeat: "no-repeat", boxShadow: "0 2px 8px rgba(16,24,40,0.035)" },
554
554
  workspace: { display: "grid", gridTemplateColumns: "minmax(248px, 292px) minmax(0, 1fr)", gap: 12, minWidth: 0, alignItems: "stretch" },
555
555
  sessionSidebar: { display: "grid", gridTemplateRows: "auto minmax(0, 1fr) auto", gap: 10, minWidth: 0, padding: 12, border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, boxShadow: "0 2px 8px rgba(16,24,40,0.035)" },
556
- sessionList: { display: "grid", gridTemplateColumns: "1fr", alignContent: "start", gap: 6, minHeight: 0, overflowY: "auto", padding: "1px 3px 2px 1px" },
556
+ sessionList: { display: "grid", alignContent: "start", gap: 6, minHeight: 0, overflowY: "auto", padding: "1px 3px 2px 1px" },
557
557
  thread: { display: "grid", gridTemplateRows: "auto minmax(0, 1fr) auto", gap: 10, minWidth: 0, height: "min(70vh, 720px)", minHeight: 440, padding: 12 },
558
558
  emptyThread: { display: "grid", placeContent: "center", justifyItems: "center", gap: 9, minWidth: 0, padding: 28, border: `1px dashed ${t.border2}`, borderRadius: 12, background: "linear-gradient(145deg, #ffffff 0%, #f8faff 100%)", textAlign: "center" },
559
559
  row: { display: "flex", alignItems: "center", gap: 8, flexWrap: "wrap" },
@@ -568,7 +568,6 @@ window.__ModuleLoader__.load({
568
568
  statusBadge: { display: "inline-flex", alignItems: "center", gap: 6, padding: "3px 10px", borderRadius: 999, fontSize: 11.5, fontWeight: 600, background: t.surfaceAlt, border: `1px solid ${t.border}`, color: t.text2, whiteSpace: "nowrap", maxWidth: 340, overflow: "hidden", textOverflow: "ellipsis" },
569
569
  dot: { width: 7, height: 7, borderRadius: "50%", flexShrink: 0 },
570
570
  error: { display: "flex", gap: 8, alignItems: "flex-start", color: t.danger, margin: 0, fontSize: 12.5, background: t.dangerBg, border: `1px solid ${t.dangerBorder}`, borderRadius: t.radius, padding: "8px 10px", whiteSpace: "pre-wrap", overflowWrap: "anywhere" },
571
- sessions: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(230px, 1fr))", gap: 8 },
572
571
  session: { display: "grid", gap: 4, textAlign: "left", padding: "10px 12px", borderRadius: t.radius, border: `1px solid ${t.border}`, background: t.surface, color: t.text, cursor: "pointer", transition: "border-color .15s, background .15s" },
573
572
  selected: { border: `1px solid ${t.accent}`, background: t.accentSoft, boxShadow: `0 0 0 1px ${t.accent} inset` },
574
573
  sessionTitle: { fontSize: 13, fontWeight: 650, lineHeight: 1.35, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
@@ -1741,7 +1740,7 @@ window.__ModuleLoader__.load({
1741
1740
  h("h2", { style: style.sectionTitle }, "\u4F1A\u8BDD\u5217\u8868"),
1742
1741
  h("span", { style: style.chip }, String(sessionOptions.length))
1743
1742
  ),
1744
- sessionOptions.length > 0 ? h("div", { style: style.sessions, className: "mai-session-list" }, sessionOptions.map((session) => {
1743
+ sessionOptions.length > 0 ? h("div", { style: style.sessionList, className: "mai-session-list" }, sessionOptions.map((session) => {
1745
1744
  const flag = session.stale ? "\u5DF2\u8FC7\u671F" : session.deviceStatus && session.deviceStatus !== "online" ? session.deviceStatus === "offline" ? "\u79BB\u7EBF" : session.deviceStatus : "";
1746
1745
  return h(
1747
1746
  "button",
@@ -548,7 +548,7 @@ var style = {
548
548
  toolbarCard: { display: "grid", gap: 10, padding: "13px 15px", border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, backgroundImage: "linear-gradient(90deg, #3568e8 0%, #8baaf4 46%, #e7edfc 100%)", backgroundSize: "100% 3px", backgroundPosition: "0 0", backgroundRepeat: "no-repeat", boxShadow: "0 2px 8px rgba(16,24,40,0.035)" },
549
549
  workspace: { display: "grid", gridTemplateColumns: "minmax(248px, 292px) minmax(0, 1fr)", gap: 12, minWidth: 0, alignItems: "stretch" },
550
550
  sessionSidebar: { display: "grid", gridTemplateRows: "auto minmax(0, 1fr) auto", gap: 10, minWidth: 0, padding: 12, border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, boxShadow: "0 2px 8px rgba(16,24,40,0.035)" },
551
- sessionList: { display: "grid", gridTemplateColumns: "1fr", alignContent: "start", gap: 6, minHeight: 0, overflowY: "auto", padding: "1px 3px 2px 1px" },
551
+ sessionList: { display: "grid", alignContent: "start", gap: 6, minHeight: 0, overflowY: "auto", padding: "1px 3px 2px 1px" },
552
552
  thread: { display: "grid", gridTemplateRows: "auto minmax(0, 1fr) auto", gap: 10, minWidth: 0, height: "min(70vh, 720px)", minHeight: 440, padding: 12 },
553
553
  emptyThread: { display: "grid", placeContent: "center", justifyItems: "center", gap: 9, minWidth: 0, padding: 28, border: `1px dashed ${t.border2}`, borderRadius: 12, background: "linear-gradient(145deg, #ffffff 0%, #f8faff 100%)", textAlign: "center" },
554
554
  row: { display: "flex", alignItems: "center", gap: 8, flexWrap: "wrap" },
@@ -563,7 +563,6 @@ var style = {
563
563
  statusBadge: { display: "inline-flex", alignItems: "center", gap: 6, padding: "3px 10px", borderRadius: 999, fontSize: 11.5, fontWeight: 600, background: t.surfaceAlt, border: `1px solid ${t.border}`, color: t.text2, whiteSpace: "nowrap", maxWidth: 340, overflow: "hidden", textOverflow: "ellipsis" },
564
564
  dot: { width: 7, height: 7, borderRadius: "50%", flexShrink: 0 },
565
565
  error: { display: "flex", gap: 8, alignItems: "flex-start", color: t.danger, margin: 0, fontSize: 12.5, background: t.dangerBg, border: `1px solid ${t.dangerBorder}`, borderRadius: t.radius, padding: "8px 10px", whiteSpace: "pre-wrap", overflowWrap: "anywhere" },
566
- sessions: { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(230px, 1fr))", gap: 8 },
567
566
  session: { display: "grid", gap: 4, textAlign: "left", padding: "10px 12px", borderRadius: t.radius, border: `1px solid ${t.border}`, background: t.surface, color: t.text, cursor: "pointer", transition: "border-color .15s, background .15s" },
568
567
  selected: { border: `1px solid ${t.accent}`, background: t.accentSoft, boxShadow: `0 0 0 1px ${t.accent} inset` },
569
568
  sessionTitle: { fontSize: 13, fontWeight: 650, lineHeight: 1.35, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
@@ -1736,7 +1735,7 @@ function RemoteSessionPage({ api }) {
1736
1735
  h("h2", { style: style.sectionTitle }, "\u4F1A\u8BDD\u5217\u8868"),
1737
1736
  h("span", { style: style.chip }, String(sessionOptions.length))
1738
1737
  ),
1739
- sessionOptions.length > 0 ? h("div", { style: style.sessions, className: "mai-session-list" }, sessionOptions.map((session) => {
1738
+ sessionOptions.length > 0 ? h("div", { style: style.sessionList, className: "mai-session-list" }, sessionOptions.map((session) => {
1740
1739
  const flag = session.stale ? "\u5DF2\u8FC7\u671F" : session.deviceStatus && session.deviceStatus !== "online" ? session.deviceStatus === "offline" ? "\u79BB\u7EBF" : session.deviceStatus : "";
1741
1740
  return h(
1742
1741
  "button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-monkeyai-sessions",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "在 DeepSeek Harness 中读取和继续 MonkeyAI 会话:查看完整对话历史、下发新指令,无缝接续之前在 MonkeyAI 客户端上的工作",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@ const style = {
38
38
  toolbarCard: { display: 'grid', gap: 10, padding: '13px 15px', border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, backgroundImage: 'linear-gradient(90deg, #3568e8 0%, #8baaf4 46%, #e7edfc 100%)', backgroundSize: '100% 3px', backgroundPosition: '0 0', backgroundRepeat: 'no-repeat', boxShadow: '0 2px 8px rgba(16,24,40,0.035)' },
39
39
  workspace: { display: 'grid', gridTemplateColumns: 'minmax(248px, 292px) minmax(0, 1fr)', gap: 12, minWidth: 0, alignItems: 'stretch' },
40
40
  sessionSidebar: { display: 'grid', gridTemplateRows: 'auto minmax(0, 1fr) auto', gap: 10, minWidth: 0, padding: 12, border: `1px solid ${t.border}`, borderRadius: 12, background: t.surface, boxShadow: '0 2px 8px rgba(16,24,40,0.035)' },
41
- sessionList: { display: 'grid', gridTemplateColumns: '1fr', alignContent: 'start', gap: 6, minHeight: 0, overflowY: 'auto', padding: '1px 3px 2px 1px' },
41
+ sessionList: { display: 'grid', alignContent: 'start', gap: 6, minHeight: 0, overflowY: 'auto', padding: '1px 3px 2px 1px' },
42
42
  thread: { display: 'grid', gridTemplateRows: 'auto minmax(0, 1fr) auto', gap: 10, minWidth: 0, height: 'min(70vh, 720px)', minHeight: 440, padding: 12 },
43
43
  emptyThread: { display: 'grid', placeContent: 'center', justifyItems: 'center', gap: 9, minWidth: 0, padding: 28, border: `1px dashed ${t.border2}`, borderRadius: 12, background: 'linear-gradient(145deg, #ffffff 0%, #f8faff 100%)', textAlign: 'center' },
44
44
  row: { display: 'flex', alignItems: 'center', gap: 8, flexWrap: 'wrap' },
@@ -53,7 +53,6 @@ const style = {
53
53
  statusBadge: { display: 'inline-flex', alignItems: 'center', gap: 6, padding: '3px 10px', borderRadius: 999, fontSize: 11.5, fontWeight: 600, background: t.surfaceAlt, border: `1px solid ${t.border}`, color: t.text2, whiteSpace: 'nowrap', maxWidth: 340, overflow: 'hidden', textOverflow: 'ellipsis' },
54
54
  dot: { width: 7, height: 7, borderRadius: '50%', flexShrink: 0 },
55
55
  error: { display: 'flex', gap: 8, alignItems: 'flex-start', color: t.danger, margin: 0, fontSize: 12.5, background: t.dangerBg, border: `1px solid ${t.dangerBorder}`, borderRadius: t.radius, padding: '8px 10px', whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' },
56
- sessions: { display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(230px, 1fr))', gap: 8 },
57
56
  session: { display: 'grid', gap: 4, textAlign: 'left', padding: '10px 12px', borderRadius: t.radius, border: `1px solid ${t.border}`, background: t.surface, color: t.text, cursor: 'pointer', transition: 'border-color .15s, background .15s' },
58
57
  selected: { border: `1px solid ${t.accent}`, background: t.accentSoft, boxShadow: `0 0 0 1px ${t.accent} inset` },
59
58
  sessionTitle: { fontSize: 13, fontWeight: 650, lineHeight: 1.35, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' },
@@ -1101,7 +1100,7 @@ function RemoteSessionPage({ api }) {
1101
1100
  h('h2', { style: style.sectionTitle }, '会话列表'),
1102
1101
  h('span', { style: style.chip }, String(sessionOptions.length))),
1103
1102
  sessionOptions.length > 0
1104
- ? h('div', { style: style.sessions, className: 'mai-session-list' }, sessionOptions.map(session => {
1103
+ ? h('div', { style: style.sessionList, className: 'mai-session-list' }, sessionOptions.map(session => {
1105
1104
  const flag = session.stale ? '已过期' : session.deviceStatus && session.deviceStatus !== 'online' ? (session.deviceStatus === 'offline' ? '离线' : session.deviceStatus) : ''
1106
1105
  return h('button', {
1107
1106
  style: { ...style.session, ...(session.id === sessionId ? style.selected : {}) },