@abyrd9/harbor-cli 2.4.0 → 2.4.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.
package/README.md CHANGED
@@ -268,7 +268,7 @@ Enable logging to stream service output to files in `.harbor/`. This is particul
268
268
  - `maxLogLines`: Maximum lines to keep in log file (default: `1000`)
269
269
 
270
270
  **Log files are:**
271
- - Stored in `.harbor/` directory (automatically added to `.gitignore`)
271
+ - Stored in `.harbor/` directory (add to `.gitignore` manually)
272
272
  - Named `{session}-{service}.log` (e.g., `local-dev-test-api.log`)
273
273
  - Automatically trimmed to prevent unbounded growth
274
274
  - Stripped of ANSI escape codes for clean, readable output
package/dist/index.js CHANGED
@@ -1204,17 +1204,6 @@ function ensureLogSetup(config) {
1204
1204
  if (!fs.existsSync(harborDir)) {
1205
1205
  fs.mkdirSync(harborDir, { recursive: true });
1206
1206
  }
1207
- const gitignorePath = path.join(process.cwd(), '.gitignore');
1208
- if (!fs.existsSync(gitignorePath)) {
1209
- return;
1210
- }
1211
- const gitignore = fs.readFileSync(gitignorePath, 'utf-8');
1212
- if (gitignore.includes('.harbor')) {
1213
- return;
1214
- }
1215
- const needsNewline = gitignore.length > 0 && !gitignore.endsWith('\n');
1216
- const entry = `${needsNewline ? '\n' : ''}.harbor/\n`;
1217
- fs.appendFileSync(gitignorePath, entry, 'utf-8');
1218
1207
  }
1219
1208
  // Get the package root directory
1220
1209
  function getPackageRoot() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyrd9/harbor-cli",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "A CLI tool for orchestrating local development services in a tmux session. Perfect for microservices and polyglot projects with automatic service discovery and before/after script support.",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/dev.sh CHANGED
@@ -98,17 +98,17 @@ $tmux_cmd bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-
98
98
  $tmux_cmd bind-key -n S-Left select-window -t :-
99
99
  $tmux_cmd bind-key -n S-Right select-window -t :+
100
100
 
101
- # Add Ctrl+t to create new terminal window (marked with + prefix)
102
- $tmux_cmd bind-key -n C-t new-window -n "+Terminal"
101
+ # Add Ctrl+Shift+t to create new terminal window (marked with + prefix)
102
+ $tmux_cmd bind-key -n C-T new-window -n "+Terminal"
103
103
 
104
- # Add Ctrl+w to close current window ONLY if it's user-created (starts with +)
105
- $tmux_cmd bind-key -n C-w if-shell 'tmux display-message -p "#{window_name}" | grep -q "^+"' 'kill-window' 'display-message "Cannot close service windows (only +Terminal tabs)"'
104
+ # Add Ctrl+Shift+w to close current window ONLY if it's user-created (starts with +)
105
+ $tmux_cmd bind-key -n C-W if-shell 'tmux display-message -p "#{window_name}" | grep -q "^+"' 'kill-window' 'display-message "Cannot close service windows (only +Terminal tabs)"'
106
106
 
107
107
  # Configure status bar
108
108
  $tmux_cmd set-option -g status-position top
109
109
  $tmux_cmd set-option -g status-style bg="#1c1917",fg="#a8a29e"
110
110
  $tmux_cmd set-option -g status-left ""
111
- $tmux_cmd set-option -g status-right "#[fg=#57534e]ctrl+t new · ctrl+w close · shift+←/→ switch · ctrl+q quit#[fg=#78716c] · %H:%M#[default]"
111
+ $tmux_cmd set-option -g status-right "#[fg=#57534e]ctrl+shift+t new · ctrl+shift+w close · shift+←/→ switch · ctrl+q quit#[fg=#78716c] · %H:%M#[default]"
112
112
  $tmux_cmd set-window-option -g window-status-current-format "\
113
113
  #[fg=#6366f1, bg=#1c1917] →\
114
114
  #[fg=#6366f1, bg=#1c1917, bold] #W\