@ripla/godd-mcp 1.0.4-canary.1 → 1.0.4-canary.2

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.
@@ -11,6 +11,7 @@ type TreeNodeProps = {
11
11
  entry: TreeEntry;
12
12
  depth: number;
13
13
  selected: string | null;
14
+ activeDir?: string | null;
14
15
  onSelect: (path: string) => void;
15
16
  onContextMenu?: (e: React.MouseEvent, entry: TreeEntry) => void;
16
17
  onMoveFile?: (oldPath: string, newParentDir: string) => void;
@@ -23,6 +24,7 @@ export default function TreeNode({
23
24
  entry,
24
25
  depth,
25
26
  selected,
27
+ activeDir,
26
28
  onSelect,
27
29
  onContextMenu,
28
30
  onMoveFile,
@@ -78,6 +80,7 @@ export default function TreeNode({
78
80
  }
79
81
 
80
82
  if (entry.type === "dir") {
83
+ const isActiveDir = activeDir === entry.path;
81
84
  return (
82
85
  <div>
83
86
  <button
@@ -93,7 +96,11 @@ export default function TreeNode({
93
96
  onDragLeave={handleDragLeave}
94
97
  onDrop={handleDrop}
95
98
  className={`w-full text-left py-1 px-2 text-sm rounded flex items-center gap-1 transition-colors ${
96
- dropOver ? "bg-blue-700/40 ring-1 ring-blue-500" : "hover:bg-gray-700"
99
+ dropOver
100
+ ? "bg-blue-700/40 ring-1 ring-blue-500"
101
+ : isActiveDir
102
+ ? "bg-blue-600/30 text-blue-200"
103
+ : "hover:bg-gray-700"
97
104
  }`}
98
105
  style={{ paddingLeft: pl }}
99
106
  >
@@ -112,6 +119,7 @@ export default function TreeNode({
112
119
  entry={child}
113
120
  depth={depth + 1}
114
121
  selected={selected}
122
+ activeDir={activeDir}
115
123
  onSelect={onSelect}
116
124
  onContextMenu={onContextMenu}
117
125
  onMoveFile={onMoveFile}
@@ -795,18 +795,19 @@ export default function MainPage() {
795
795
  </p>
796
796
  </div>
797
797
  {filteredTree.map((entry) => (
798
- <TreeNode
799
- key={entry.path}
800
- entry={entry}
801
- depth={0}
802
- selected={selectedFile}
803
- onSelect={handleFileSelectResponsive}
804
- onContextMenu={handleTreeContextMenu}
805
- onMoveFile={handleMoveFile}
806
- onFolderClick={handleFolderClick}
807
- canDrag={false}
808
- collapseKey={collapseKey}
809
- />
798
+ <TreeNode
799
+ key={entry.path}
800
+ entry={entry}
801
+ depth={0}
802
+ selected={selectedFile}
803
+ activeDir={activeDir}
804
+ onSelect={handleFileSelectResponsive}
805
+ onContextMenu={handleTreeContextMenu}
806
+ onMoveFile={handleMoveFile}
807
+ onFolderClick={handleFolderClick}
808
+ canDrag={false}
809
+ collapseKey={collapseKey}
810
+ />
810
811
  ))}
811
812
  </div>
812
813
  )}
@@ -818,6 +819,7 @@ export default function MainPage() {
818
819
  entry={entry}
819
820
  depth={0}
820
821
  selected={selectedFile}
822
+ activeDir={activeDir}
821
823
  onSelect={handleFileSelectResponsive}
822
824
  onContextMenu={handleTreeContextMenu}
823
825
  onMoveFile={handleMoveFile}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ripla/godd-mcp",
3
- "version": "1.0.4-canary.1",
3
+ "version": "1.0.4-canary.2",
4
4
  "type": "module",
5
5
  "description": "GoDD MCP Server - AI-powered development workflow tools via Model Context Protocol (slash commands support)",
6
6
  "main": "dist/index.js",