dsh-git-worktree 0.9.3 → 0.10.0
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/CHANGELOG.md +13 -0
- package/lib/adapters/project-skill-provider.js +14 -4
- package/lib/adapters/project-skill-provider.js.map +1 -1
- package/lib/client/actions.d.ts +1 -3
- package/lib/client/actions.js.map +1 -1
- package/lib/client/console-remote/adapter.js +1 -1
- package/lib/client/console-remote/adapter.js.map +1 -1
- package/lib/client/console-remote/index.d.ts +10 -3
- package/lib/client/console-remote/index.js +20 -5
- package/lib/client/console-remote/index.js.map +1 -1
- package/lib/client/workspace-sidebar/index.js +40 -2
- package/lib/client/workspace-sidebar/index.js.map +1 -1
- package/lib/client.js +3688 -1995
- package/lib/console-contract.d.ts +1 -1
- package/lib/console-remote/descriptors.js +5 -3
- package/lib/console-remote/descriptors.js.map +1 -1
- package/lib/console-remote/schemas.js +1 -1
- package/lib/console-remote/schemas.js.map +1 -1
- package/lib/host-compat.d.ts +1 -1
- package/lib/host-compat.js +2 -0
- package/lib/host-compat.js.map +1 -1
- package/lib/index.d.ts +4 -1
- package/lib/index.js +9 -2
- package/lib/index.js.map +1 -1
- package/lib/workspace-provider-lifecycle.d.ts +15 -1
- package/lib/workspace-provider-lifecycle.js +64 -5
- package/lib/workspace-provider-lifecycle.js.map +1 -1
- package/package.json +38 -36
- package/scripts/check-publish.mjs +2 -1
- package/scripts/workspace-sidebar-upstream.mjs +50 -30
|
@@ -2,9 +2,9 @@ import { createHash } from 'node:crypto'
|
|
|
2
2
|
import { readFileSync } from 'node:fs'
|
|
3
3
|
import { createRequire } from 'node:module'
|
|
4
4
|
|
|
5
|
-
export const WORKSPACE_UI_VERSION = '0.
|
|
6
|
-
export const WORKSPACE_LOCALE_VERSION = '0.
|
|
7
|
-
export const WORKSPACE_CLIENT_SHA256 = '
|
|
5
|
+
export const WORKSPACE_UI_VERSION = '0.2.0-rc.2'
|
|
6
|
+
export const WORKSPACE_LOCALE_VERSION = '0.2.0-rc.2'
|
|
7
|
+
export const WORKSPACE_CLIENT_SHA256 = 'e784543780fb8ac7c38c853afd26b9b1713c6907eec2b07eff37461e07bd3be9'
|
|
8
8
|
export const OFFICIAL_WORKSPACE_VIRTUAL_ID = 'virtual:dsh-official-workspace-client'
|
|
9
9
|
export const RESOLVED_OFFICIAL_WORKSPACE_VIRTUAL_ID = `\0${OFFICIAL_WORKSPACE_VIRTUAL_ID}`
|
|
10
10
|
|
|
@@ -33,6 +33,14 @@ function replaceExactlyOnce(source, needle, replacement, label) {
|
|
|
33
33
|
return source.slice(0, first) + replacement + source.slice(first + needle.length)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
// DSH 0.2 removed the legacy search/menu seams; those optional decorations are
|
|
37
|
+
// handled by the modern Workspace row/slot path below when the seam exists.
|
|
38
|
+
function replaceIfPresent(source, needle, replacement, label) {
|
|
39
|
+
const hit = source.includes(needle)
|
|
40
|
+
if (process.env.WT_DEBUG_SEAMS) console.log(`[seam] ${hit ? 'HIT ' : 'SKIP '} (optional) ${label}`)
|
|
41
|
+
return hit ? replaceExactlyOnce(source, needle, replacement, label) : source
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
/**
|
|
37
45
|
* Add one package-owned row decoration to the already version/hash-gated
|
|
38
46
|
* official Browser. Every replacement is exact and therefore fails closed if
|
|
@@ -49,78 +57,90 @@ export function decorateOfficialWorkspaceClient(source) {
|
|
|
49
57
|
`\t\tconst en = {\n\t\t\t"dshGitWorktree.managed": "Managed Worktree",\n\t\t\t"dshGitWorktree.state.working": "In progress",\n\t\t\t"dshGitWorktree.state.ready_for_review": "Ready for review",\n\t\t\t"dshGitWorktree.state.preview_active": "Preview",\n\t\t\t"dshGitWorktree.state.preview_detached": "Resume preview",\n\t\t\t"dshGitWorktree.state.recovery_required": "Recovery required",\n\t\t\t"dshGitWorktree.state.finalized": "Done",\n\t\t\t"dshGitWorktree.state.discarded": "Discarded",`,
|
|
50
58
|
'English Worktree locale')
|
|
51
59
|
derived = replaceExactlyOnce(derived,
|
|
52
|
-
'\t\t\t\tgroups.push(buildGroup(workspace.workspaceId, workspace.workspaceId, workspace.path, Date.parse(workspace.createdAt), workspace.title, members
|
|
53
|
-
'\t\t\t\tconst group = buildGroup(workspace.workspaceId, workspace.workspaceId, workspace.path, Date.parse(workspace.createdAt), workspace.title, members
|
|
60
|
+
'\t\t\t\tgroups.push(buildGroup(workspace.workspaceId, workspace.workspaceId, workspace.path, Date.parse(workspace.createdAt), workspace.title, members));',
|
|
61
|
+
'\t\t\t\tconst group = buildGroup(workspace.workspaceId, workspace.workspaceId, workspace.path, Date.parse(workspace.createdAt), workspace.title, members);\n\t\t\t\tif (workspace.__dshGitWorktreeProtected === true) group.__dshGitWorktreeProtected = true;\n\t\t\t\tgroups.push(group);',
|
|
54
62
|
'Managed workspace metadata')
|
|
55
63
|
derived = replaceExactlyOnce(derived,
|
|
56
64
|
'\t\t\t\tupdatedAt: s.updatedAt,\n\t\t\t\t...pendingInteraction === void 0 ? {} : { pendingInteraction }',
|
|
57
65
|
'\t\t\t\tupdatedAt: s.updatedAt,\n\t\t\t\t...s.__dshGitWorktree === void 0 ? {} : { __dshGitWorktree: s.__dshGitWorktree },\n\t\t\t\t...pendingInteraction === void 0 ? {} : { pendingInteraction }',
|
|
58
66
|
'session node metadata')
|
|
59
67
|
derived = replaceExactlyOnce(derived,
|
|
60
|
-
'\t\t\t\t\t\
|
|
61
|
-
'\t\t\t\t\t\
|
|
68
|
+
'\t\t\t\t\t\tworkspace: labelOf(summary),\n\t\t\t\t\t\trunning: status?.running ?? summary.running,',
|
|
69
|
+
'\t\t\t\t\t\tworkspace: labelOf(summary),\n\t\t\t\t\t\t...summary.__dshGitWorktree === void 0 ? {} : { __dshGitWorktree: summary.__dshGitWorktree },\n\t\t\t\t\t\trunning: status?.running ?? summary.running,',
|
|
62
70
|
'search result metadata')
|
|
63
71
|
derived = replaceExactlyOnce(derived,
|
|
64
72
|
'\t\t\t\t\tlabel: g.label,\n\t\t\t\t\tsessionCount: g.sessions.length,',
|
|
65
73
|
'\t\t\t\t\tlabel: g.label,\n\t\t\t\t\t...g.__dshGitWorktreeProtected === true ? { __dshGitWorktreeProtected: true } : {},\n\t\t\t\t\tsessionCount: g.sessions.length,',
|
|
66
74
|
'Managed workspace group metadata')
|
|
67
|
-
derived =
|
|
68
|
-
'\t\t
|
|
69
|
-
|
|
75
|
+
derived = replaceIfPresent(derived,
|
|
76
|
+
'\t\t\tconst draggable = drag !== void 0 && !row.blank && !row.archived;\n\t\t\tconst [menuOpen, setMenuOpen]',
|
|
77
|
+
'\t\t\tconst draggable = drag !== void 0 && !row.blank && !row.archived;\n\t\t\tconst worktreeDecoration = managedWorktreeDecoration(node, t);\n\t\t\tconst [menuOpen, setMenuOpen]',
|
|
78
|
+
'modern session decoration setup')
|
|
79
|
+
derived = replaceIfPresent(derived,
|
|
80
|
+
'\t\t\t\t\tclassName: clsx(Rows_module_css_default.sessionRow, selected && Rows_module_css_default.selected, menuOpen && Rows_module_css_default.menuOpen, row.archived && Rows_module_css_default.archived, drag?.marker === "before" && Rows_module_css_default.dropBefore, drag?.marker === "after" && Rows_module_css_default.dropAfter),\n\t\t\t\t\trole: "treeitem",',
|
|
81
|
+
'\t\t\t\t\tclassName: clsx(Rows_module_css_default.sessionRow, selected && Rows_module_css_default.selected, menuOpen && Rows_module_css_default.menuOpen, row.archived && Rows_module_css_default.archived, drag?.marker === "before" && Rows_module_css_default.dropBefore, drag?.marker === "after" && Rows_module_css_default.dropAfter),\n\t\t\t\t\t...worktreeDecoration === void 0 ? {} : { "aria-label": worktreeDecoration.ariaLabel, "data-managed-worktree": "true" },\n\t\t\t\t\trole: "treeitem",',
|
|
82
|
+
'modern session row identity')
|
|
83
|
+
derived = replaceIfPresent(derived,
|
|
84
|
+
'\t\t\t\t\t\t\tchildren: !row.archived && !row.blank && (showStatus ? (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses }) : renderSlot("sidebar.session.row.leading", { sessionId: node.id }))\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {',
|
|
85
|
+
'\t\t\t\t\t\t\tchildren: !row.archived && !row.blank && (showStatus ? (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses }) : renderSlot("sidebar.session.row.leading", { sessionId: node.id }))\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tworktreeDecoration !== void 0 && (0, react_jsx_runtime.jsx)(ManagedWorktreeIdentity, { decoration: worktreeDecoration }),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {',
|
|
86
|
+
'modern session row decoration')
|
|
87
|
+
derived = replaceIfPresent(derived,
|
|
88
|
+
'\t\tfunction SessionHoverContent',
|
|
89
|
+
`\t\tfunction managedWorktreeDecoration(node, t) {\n\t\t\tconst value = node.__dshGitWorktree;\n\t\t\tif (value?.kind !== "managed-worktree" || typeof value.state !== "string") return void 0;\n\t\t\tconst label = t(\`dshGitWorktree.state.\${value.state}\`);\n\t\t\treturn {\n\t\t\t\tstate: value.state,\n\t\t\t\tlabel,\n\t\t\t\tariaLabel: \`\${t("dshGitWorktree.managed")}, \${label}, \${displayTitle(node, t)}\`\n\t\t\t};\n\t\t}\n\t\tfunction ManagedWorktreeIdentity({ decoration }) {\n\t\t\treturn (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("span", {\n\t\t\t\tclassName: "dsh-git-worktree-sidebar-icon",\n\t\t\t\t"data-worktree-state": decoration.state,\n\t\t\t\t"aria-hidden": "true",\n\t\t\t\tchildren: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular, {})\n\t\t\t}), (0, react_jsx_runtime.jsx)("span", {\n\t\t\t\tclassName: "dsh-git-worktree-sidebar-badge",\n\t\t\t\t"data-worktree-state": decoration.state,\n\t\t\t\t"aria-hidden": "true",\n\t\t\t\tchildren: decoration.label\n\t\t\t})] });\n\t\t}\n\t\t/** Hover-card body: full title, relative time, and every relevant live status. */\n\t\tfunction SessionHoverContent`,
|
|
70
90
|
'Managed row helper')
|
|
71
91
|
derived = replaceExactlyOnce(derived,
|
|
72
|
-
'\t\t\tconst statuses = sessionStatuses(node, t);\n\t\t\treturn (0, react_jsx_runtime.jsxs)("div", {\n\t\t\t\tclassName: Rows_module_css_default.hoverContent,',
|
|
92
|
+
'\t\t\tconst statuses = sessionStatuses(node, t).filter((status) => !(node.archived && (status.state === "done" || status.state === "idle")));\n\t\t\treturn (0, react_jsx_runtime.jsxs)("div", {\n\t\t\t\tclassName: Rows_module_css_default.hoverContent,',
|
|
73
93
|
'\t\t\tconst statuses = sessionStatuses(node, t);\n\t\t\tconst worktreeDecoration = managedWorktreeDecoration(node, t);\n\t\t\treturn (0, react_jsx_runtime.jsxs)("div", {\n\t\t\t\tclassName: Rows_module_css_default.hoverContent,',
|
|
74
94
|
'hover metadata')
|
|
75
95
|
derived = replaceExactlyOnce(derived,
|
|
76
96
|
'\t\t\t\t\t\tchildren: displayTitle(node, t)\n\t\t\t\t\t}),\n\t\t\t\t\t!node.blank',
|
|
77
|
-
'\t\t\t\t\t\tchildren: displayTitle(node, t)\n\t\t\t\t\t}),\n\t\t\t\t\tworktreeDecoration !== void 0 && (0, react_jsx_runtime.jsxs)("div", {\n\t\t\t\t\t\tclassName: Rows_module_css_default.hoverStatus,\n\t\t\t\t\t\tchildren: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
97
|
+
'\t\t\t\t\t\tchildren: displayTitle(node, t)\n\t\t\t\t\t}),\n\t\t\t\t\tworktreeDecoration !== void 0 && (0, react_jsx_runtime.jsxs)("div", {\n\t\t\t\t\t\tclassName: Rows_module_css_default.hoverStatus,\n\t\t\t\t\t\tchildren: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular, {}), (0, react_jsx_runtime.jsx)("span", { children: worktreeDecoration.ariaLabel })]\n\t\t\t\t\t}),\n\t\t\t\t\t!node.blank',
|
|
78
98
|
'hover Worktree identity')
|
|
79
|
-
derived =
|
|
99
|
+
derived = replaceIfPresent(derived,
|
|
80
100
|
'\t\t\tconst primaryStatus = statuses[0];\n\t\t\treturn (0, react_jsx_runtime.jsxs)("button", {\n\t\t\t\ttype: "button",\n\t\t\t\tclassName: clsx(Rows_module_css_default.searchResultRow, selected && Rows_module_css_default.selected),',
|
|
81
101
|
'\t\t\tconst primaryStatus = statuses[0];\n\t\t\tconst worktreeDecoration = managedWorktreeDecoration(result, t);\n\t\t\treturn (0, react_jsx_runtime.jsxs)("button", {\n\t\t\t\ttype: "button",\n\t\t\t\tclassName: clsx(Rows_module_css_default.searchResultRow, selected && Rows_module_css_default.selected),\n\t\t\t\t...worktreeDecoration === void 0 ? {} : { "aria-label": worktreeDecoration.ariaLabel, "data-managed-worktree": "true" },',
|
|
82
102
|
'search Worktree identity')
|
|
83
|
-
derived =
|
|
103
|
+
derived = replaceIfPresent(derived,
|
|
84
104
|
'\t\t\t\t\t\t\tchildren: (primaryStatus.state !== "done" || result.completed) && (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses })\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {\n\t\t\t\t\t\t\tclassName: Rows_module_css_default.searchResultTitle,',
|
|
85
105
|
'\t\t\t\t\t\t\tchildren: (primaryStatus.state !== "done" || result.completed) && (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses })\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tworktreeDecoration !== void 0 && (0, react_jsx_runtime.jsx)(ManagedWorktreeIdentity, { decoration: worktreeDecoration }),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {\n\t\t\t\t\t\t\tclassName: Rows_module_css_default.searchResultTitle,',
|
|
86
106
|
'search Worktree decoration')
|
|
87
|
-
derived =
|
|
88
|
-
'\t\t\tconst label = row.workspaceId === void 0 ? t("group.ungrouped") : row.label;\n\t\t\tconst active = group.expanded && group.containsCurrent;',
|
|
89
|
-
'\t\t\tconst label = row.workspaceId === void 0 ? t("group.ungrouped") : row.label;\n\t\t\tconst protectedManagedWorkspace = row.__dshGitWorktreeProtected === true;\n\t\t\tconst active = group.expanded && group.containsCurrent;',
|
|
107
|
+
derived = replaceIfPresent(derived,
|
|
108
|
+
'\t\t\tconst label = row.workspaceId === void 0 ? t("group.ungrouped") : row.label;\n\t\t\tconst active = containsCurrentDescendant || group.expanded && group.containsCurrent;',
|
|
109
|
+
'\t\t\tconst label = row.workspaceId === void 0 ? t("group.ungrouped") : row.label;\n\t\t\tconst protectedManagedWorkspace = row.__dshGitWorktreeProtected === true;\n\t\t\tconst active = containsCurrentDescendant || group.expanded && group.containsCurrent;',
|
|
90
110
|
'Managed workspace row metadata')
|
|
91
|
-
derived =
|
|
92
|
-
'\t\t\t\tclassName: clsx(Rows_module_css_default.projectRow, menuOpen && Rows_module_css_default.menuOpen),\n\t\t\t\trole: "treeitem",\n\t\t\t\t"aria-expanded": row.expanded,\n\t\t\t\tonClick: onToggle,\n\t\t\t\tdraggable: drag !== void 0,',
|
|
93
|
-
'\t\t\t\tclassName: clsx(Rows_module_css_default.projectRow, menuOpen && Rows_module_css_default.menuOpen),\n\t\t\t\trole: "treeitem",\n\t\t\t\t"aria-expanded": row.expanded,\n\t\t\t\tonClick: onToggle,\n\t\t\t\tdraggable: !protectedManagedWorkspace && drag !== void 0,',
|
|
111
|
+
derived = replaceIfPresent(derived,
|
|
112
|
+
'\t\t\t\tclassName: clsx(Rows_module_css_default.projectRow, menuOpen && Rows_module_css_default.menuOpen),\n\t\t\t\t"data-row-key": `workspace:${group.key}`,\n\t\t\t\trole: "treeitem",\n\t\t\t\t"aria-expanded": row.expanded,\n\t\t\t\tonClick: onToggle,\n\t\t\t\tdraggable: drag !== void 0,',
|
|
113
|
+
'\t\t\t\tclassName: clsx(Rows_module_css_default.projectRow, menuOpen && Rows_module_css_default.menuOpen),\n\t\t\t\t"data-row-key": `workspace:${group.key}`,\n\t\t\t\trole: "treeitem",\n\t\t\t\t"aria-expanded": row.expanded,\n\t\t\t\tonClick: onToggle,\n\t\t\t\tdraggable: !protectedManagedWorkspace && drag !== void 0,',
|
|
94
114
|
'Managed workspace drag')
|
|
95
|
-
derived =
|
|
115
|
+
derived = replaceIfPresent(derived,
|
|
96
116
|
'\t\t\t\t\t\tchildren: [actions !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {',
|
|
97
117
|
'\t\t\t\t\t\tchildren: [!protectedManagedWorkspace && actions !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {',
|
|
98
118
|
'Managed workspace menu')
|
|
99
|
-
|
|
100
|
-
'\t\t\t\t\t\t
|
|
101
|
-
'\t\t\t\t\t\t
|
|
119
|
+
derived = replaceIfPresent(derived,
|
|
120
|
+
'\t\t\t\t\t\t\tchildren: (0, react_jsx_runtime.jsx)("button", {\n\t\t\t\t\t\t\t\ttype: "button",\n\t\t\t\t\t\t\t\tclassName: Rows_module_css_default.iconButton,\n\t\t\t\t\t\t\t\t"aria-keyshortcuts": newShortcut?.aria,\n\t\t\t\t\t\t\t\t"aria-label": t("actions.newSession.aria", { name: label }),',
|
|
121
|
+
'\t\t\t\t\t\t\tchildren: !protectedManagedWorkspace && (0, react_jsx_runtime.jsx)("button", {\n\t\t\t\t\t\t\t\ttype: "button",\n\t\t\t\t\t\t\t\tclassName: Rows_module_css_default.iconButton,\n\t\t\t\t\t\t\t\t"aria-keyshortcuts": newShortcut?.aria,\n\t\t\t\t\t\t\t\t"aria-label": t("actions.newSession.aria", { name: label }),',
|
|
102
122
|
'Managed workspace new Session')
|
|
103
|
-
derived =
|
|
123
|
+
derived = replaceIfPresent(derived,
|
|
104
124
|
'\t\t\tconst showStatus = statuses[0].state !== "done" || row.completed;\n\t\t\tconst [menuOpen, setMenuOpen]',
|
|
105
125
|
'\t\t\tconst showStatus = statuses[0].state !== "done" || row.completed;\n\t\t\tconst worktreeDecoration = managedWorktreeDecoration(row, t);\n\t\t\tconst [menuOpen, setMenuOpen]',
|
|
106
126
|
'session Worktree metadata')
|
|
107
|
-
derived =
|
|
127
|
+
derived = replaceIfPresent(derived,
|
|
108
128
|
'\t\t\t];\n\t\t\treturn (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.HoverCard, {',
|
|
109
129
|
'\t\t\t];\n\t\t\tconst visibleSessionMenuItems = worktreeDecoration === void 0 ? sessionMenuItems : sessionMenuItems.filter((item) => item.id !== "fork");\n\t\t\treturn (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.HoverCard, {',
|
|
110
130
|
'Managed session menu')
|
|
111
|
-
derived =
|
|
131
|
+
derived = replaceIfPresent(derived,
|
|
112
132
|
'\t\t\t\t\tclassName: clsx(Rows_module_css_default.sessionRow, selected && Rows_module_css_default.selected, menuOpen && Rows_module_css_default.menuOpen, flat && !showStatus && Rows_module_css_default.flatSessionRowWithoutStatus, drag?.marker === "before" && Rows_module_css_default.dropBefore, drag?.marker === "after" && Rows_module_css_default.dropAfter),\n\t\t\t\t\trole: "treeitem",',
|
|
113
133
|
'\t\t\t\t\tclassName: clsx(Rows_module_css_default.sessionRow, selected && Rows_module_css_default.selected, menuOpen && Rows_module_css_default.menuOpen, flat && !showStatus && Rows_module_css_default.flatSessionRowWithoutStatus, drag?.marker === "before" && Rows_module_css_default.dropBefore, drag?.marker === "after" && Rows_module_css_default.dropAfter),\n\t\t\t\t\trole: "treeitem",\n\t\t\t\t\t...worktreeDecoration === void 0 ? {} : { "aria-label": worktreeDecoration.ariaLabel, "data-managed-worktree": "true" },',
|
|
114
134
|
'session Worktree aria')
|
|
115
|
-
derived =
|
|
135
|
+
derived = replaceIfPresent(derived,
|
|
116
136
|
'\t\t\t\t\t"aria-selected": selected,\n\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\tonOpen(node.id);\n\t\t\t\t\t},\n\t\t\t\t\tdraggable: drag !== void 0,',
|
|
117
137
|
'\t\t\t\t\t"aria-selected": selected,\n\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\tonOpen(node.id);\n\t\t\t\t\t},\n\t\t\t\t\tdraggable: worktreeDecoration === void 0 && drag !== void 0,',
|
|
118
138
|
'Managed session drag')
|
|
119
|
-
derived =
|
|
139
|
+
derived = replaceIfPresent(derived,
|
|
120
140
|
'\t\t\t\t\t\t(!flat || showStatus) && (0, react_jsx_runtime.jsx)("span", {\n\t\t\t\t\t\t\tclassName: Rows_module_css_default.slot,\n\t\t\t\t\t\t\tchildren: showStatus && (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses })\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {',
|
|
121
141
|
'\t\t\t\t\t\tworktreeDecoration === void 0 && (!flat || showStatus) && (0, react_jsx_runtime.jsx)("span", {\n\t\t\t\t\t\t\tclassName: Rows_module_css_default.slot,\n\t\t\t\t\t\t\tchildren: showStatus && (0, react_jsx_runtime.jsx)(SessionStatusDots, { statuses })\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tworktreeDecoration !== void 0 && (0, react_jsx_runtime.jsx)(ManagedWorktreeIdentity, { decoration: worktreeDecoration }),\n\t\t\t\t\t\t(0, react_jsx_runtime.jsx)("span", {',
|
|
122
142
|
'session Worktree decoration')
|
|
123
|
-
derived =
|
|
143
|
+
derived = replaceIfPresent(derived,
|
|
124
144
|
'\t\t\t\t\t\t\t\titems: sessionMenuItems,',
|
|
125
145
|
'\t\t\t\t\t\t\t\titems: visibleSessionMenuItems,',
|
|
126
146
|
'Managed session visible menu')
|