@goodandready/dsh-kanban 0.2.38 → 0.2.39

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.
Files changed (2) hide show
  1. package/lib/client.js +13 -12
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -2470,6 +2470,18 @@ window.__ModuleLoader__.load({
2470
2470
  const [nudgeSending, setNudgeSending] = React.useState(false)
2471
2471
  const [nudgeSuccess, setNudgeSuccess] = React.useState(false)
2472
2472
 
2473
+ const load = React.useCallback(async (nextBoard) => {
2474
+ try {
2475
+ const query = '?board=' + encodeURIComponent(nextBoard || 'main')
2476
+ setState(normalizeBoard(await api('/board' + query)))
2477
+ setError('')
2478
+ } catch (e) {
2479
+ setError(t(e.key || 'error.unknown'))
2480
+ }
2481
+ }, [t])
2482
+
2483
+ React.useEffect(() => { load(board) }, [load, board])
2484
+
2473
2485
  const handleNudgeSubmit = React.useCallback(async () => {
2474
2486
  if (!nudgeTask || !nudgePrompt.trim() || nudgeSending) return
2475
2487
  setNudgeSending(true)
@@ -2492,18 +2504,6 @@ window.__ModuleLoader__.load({
2492
2504
  }
2493
2505
  }, [nudgeTask, nudgePrompt, nudgeSending, load, board, t])
2494
2506
 
2495
- const load = React.useCallback(async (nextBoard) => {
2496
- try {
2497
- const query = '?board=' + encodeURIComponent(nextBoard || 'main')
2498
- setState(normalizeBoard(await api('/board' + query)))
2499
- setError('')
2500
- } catch (e) {
2501
- setError(t(e.key || 'error.unknown'))
2502
- }
2503
- }, [t])
2504
-
2505
- React.useEffect(() => { load(board) }, [load, board])
2506
-
2507
2507
  React.useEffect(() => {
2508
2508
  if (typeof window === 'undefined' || typeof window.EventSource !== 'function') return undefined
2509
2509
  let es = null
@@ -5151,6 +5151,7 @@ window.__ModuleLoader__.load({
5151
5151
  }
5152
5152
 
5153
5153
  helpers.createToggle = createToggle
5154
+ helpers.BoardScreen = BoardScreen
5154
5155
 
5155
5156
  function apply(ctx) {
5156
5157
  ctx.effect(() => ctx.locale.register(NS, { en, zh }), 'dsh-kanban: locales')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-kanban",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "description": "Visual Kanban board for DeepSeek Harness: Gitea and GitHub-backed tasks, workflow columns, and a dedicated agent session per task.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",