@lukstei/dsh-client-kanban 0.2.2-rc.5.3 → 0.2.2-rc.5.4
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/dist/client.js +2 -1
- package/package.json +4 -4
- package/src/client/store.ts +4 -2
package/dist/client.js
CHANGED
|
@@ -423,12 +423,13 @@ window.__ModuleLoader__.load({
|
|
|
423
423
|
/**
|
|
424
424
|
* Purpose: Determine whether a session belongs to the Kanban board and has not expired.
|
|
425
425
|
* Contract:
|
|
426
|
-
* - Inputs: KanbanRecord or null/undefined, optional session summary with blank status, and reference timestamp (defaults to Date.now()).
|
|
426
|
+
* - Inputs: KanbanRecord or null/undefined, optional session summary with blank status and origin, and reference timestamp (defaults to Date.now()).
|
|
427
427
|
* - Outputs: True if session is initialized, not expired in Done (> 7 days), and not an unstarted empty session.
|
|
428
428
|
* - Throws / Errors: Never throws.
|
|
429
429
|
*/
|
|
430
430
|
function isSessionVisibleInKanban(record, session, now = Date.now()) {
|
|
431
431
|
if (!record) return false;
|
|
432
|
+
if (session?.origin === "subagent") return false;
|
|
432
433
|
if (record.doneAt !== void 0 && record.pinnedAt === void 0 && now - record.doneAt > 6048e5) return false;
|
|
433
434
|
if (session !== void 0 && session.blank && !record.prompt && record.heldAt === void 0 && record.reviewAt === void 0 && record.doneAt === void 0) return false;
|
|
434
435
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukstei/dsh-client-kanban",
|
|
3
|
-
"version": "0.2.2-rc.5.
|
|
3
|
+
"version": "0.2.2-rc.5.4",
|
|
4
4
|
"description": "Multi-session vertical Kanban board plugin for DeepSeek Harness with native host persistence",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.5",
|
|
79
79
|
"@deepseek-ai/schemastery": "3.19.0",
|
|
80
80
|
"@ladle/react": "^5.1.1",
|
|
81
|
-
"@lukstei/dsh-client-favicon": "0.2.2-rc.5.
|
|
82
|
-
"@lukstei/dsh-client-notify": "0.2.2-rc.5.
|
|
83
|
-
"@lukstei/dsh-client-split-view": "0.2.2-rc.5.
|
|
81
|
+
"@lukstei/dsh-client-favicon": "0.2.2-rc.5.4",
|
|
82
|
+
"@lukstei/dsh-client-notify": "0.2.2-rc.5.4",
|
|
83
|
+
"@lukstei/dsh-client-split-view": "0.2.2-rc.5.4",
|
|
84
84
|
"@types/node": "^26.0.0",
|
|
85
85
|
"@types/react": "^19.3.0",
|
|
86
86
|
"react": "^19.3.1",
|
package/src/client/store.ts
CHANGED
|
@@ -18,16 +18,18 @@ import { type KanbanLane, type KanbanRecord, ONE_WEEK_MS } from "../types.ts";
|
|
|
18
18
|
/**
|
|
19
19
|
* Purpose: Determine whether a session belongs to the Kanban board and has not expired.
|
|
20
20
|
* Contract:
|
|
21
|
-
* - Inputs: KanbanRecord or null/undefined, optional session summary with blank status, and reference timestamp (defaults to Date.now()).
|
|
21
|
+
* - Inputs: KanbanRecord or null/undefined, optional session summary with blank status and origin, and reference timestamp (defaults to Date.now()).
|
|
22
22
|
* - Outputs: True if session is initialized, not expired in Done (> 7 days), and not an unstarted empty session.
|
|
23
23
|
* - Throws / Errors: Never throws.
|
|
24
24
|
*/
|
|
25
25
|
export function isSessionVisibleInKanban(
|
|
26
26
|
record: KanbanRecord | null | undefined,
|
|
27
|
-
session?: Pick<SessionSummary, "blank">,
|
|
27
|
+
session?: Pick<SessionSummary, "blank" | "origin">,
|
|
28
28
|
now: number = Date.now(),
|
|
29
29
|
): boolean {
|
|
30
30
|
if (!record) return false;
|
|
31
|
+
// edge case: a forked subagent inherits its parent's kanban events, but is never a board session
|
|
32
|
+
if (session?.origin === "subagent") return false;
|
|
31
33
|
if (
|
|
32
34
|
record.doneAt !== undefined &&
|
|
33
35
|
record.pinnedAt === undefined &&
|