dsh-taskboard 0.4.4 → 0.4.5

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
@@ -213,6 +213,11 @@ node scripts/screenshot.mjs # 重新生成 img/ 截图(需本机 Edge)
213
213
 
214
214
  ## 升级日志
215
215
 
216
+ ### 0.4.5
217
+
218
+ - **移除 0.4.4 引入的「每 2 秒自动检查样式」机制**:上一版给样式表打的归属标记已经从根上解决了误删问题——其他插件更新时不会再删看板的样式,周期性检查只是多余的保险。现在去掉这个常驻的后台定时器,页面少一份轮询;防掉样式的效果不变(归属标记仍在,本插件自己热更新后也会重新挂回样式)
219
+ - 对使用者无任何可见变化,纯粹是内部做减法
220
+
216
221
  ### 0.4.4
217
222
 
218
223
  - **修复看板偶尔突然掉样式的问题([ #3](https://github.com/cloader/dsh-taskboard/issues/3))**。排查结论:浏览器里其他插件在后台热更新时,会按"样式归属"做清理,而看板自己的样式表没有归属标记,被误当成别的插件的样式连带删掉了。本次修复后:
package/lib/client.js CHANGED
@@ -1865,7 +1865,7 @@ window.__ModuleLoader__.load({
1865
1865
  * @module dsh-taskboard/shared/version
1866
1866
  */
1867
1867
  /** The package version (must equal package.json "version"). */
1868
- const PLUGIN_VERSION = "0.4.4";
1868
+ const PLUGIN_VERSION = "0.4.5";
1869
1869
 
1870
1870
  //#endregion
1871
1871
  //#region src/client/board/TaskCard.tsx
@@ -4731,9 +4731,6 @@ window.__ModuleLoader__.load({
4731
4731
  function apply(ctx) {
4732
4732
  try {
4733
4733
  injectStyles();
4734
- const styleWatch = setInterval(() => {
4735
- injectStyles();
4736
- }, 2e3);
4737
4734
  const controller = new BoardController(createClient());
4738
4735
  const connection = ctx.get?.("connection");
4739
4736
  if (connection !== void 0) {
@@ -4777,7 +4774,6 @@ window.__ModuleLoader__.load({
4777
4774
  console.error("[dsh-taskboard] mount failed:", error);
4778
4775
  }
4779
4776
  ctx.effect?.(() => () => {
4780
- clearInterval(styleWatch);
4781
4777
  for (const d of disposers.splice(0)) d();
4782
4778
  controller.dispose();
4783
4779
  }, "dsh-taskboard: client mount");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-taskboard",
3
3
  "description": "Agent-first task board for the DSH web GUI: host-authoritative task ledger with taskboard_* agent tools, project (= workspace) claim boundaries, per-task model execution in fresh sessions, optional per-task git-worktree isolation (dedicated task branches, commit evidence, one-click merge), host-side cron scheduling, and a live SSE kanban view. Mounts via the official dsh plugin system — no DSH source changes.",
4
- "version": "0.4.4",
4
+ "version": "0.4.5",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -49,11 +49,6 @@ interface ClientContextFace {
49
49
  export function apply(ctx: ClientContextFace): void {
50
50
  try {
51
51
  injectStyles()
52
- // Stylesheet watchdog (0.4.4): re-assert the stylesheet if anything
53
- // removed it mid-session — defense-in-depth on top of the ownership
54
- // tag (see styles.ts for the claim/reload mechanism it guards against).
55
- // One getElementById per 2s tick; cleared with the plugin teardown.
56
- const styleWatch = setInterval(() => { injectStyles() }, 2_000)
57
52
  const client = createClient()
58
53
  const controller = new BoardController(client)
59
54
 
@@ -114,7 +109,6 @@ export function apply(ctx: ClientContextFace): void {
114
109
  // race a same-lifetime re-apply); its rules are dsh-atb-* scoped, so a
115
110
  // leftover tag after a full disable is inert.
116
111
  ctx.effect?.(() => () => {
117
- clearInterval(styleWatch)
118
112
  for (const d of disposers.splice(0)) d()
119
113
  controller.dispose()
120
114
  }, 'dsh-taskboard: client mount')
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  /** The package version (must equal package.json "version"). */
9
- export const PLUGIN_VERSION = '0.4.4'
9
+ export const PLUGIN_VERSION = '0.4.5'