@aliou/pi-processes 0.6.0 → 0.6.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
@@ -21,7 +21,7 @@ pi install git:github.com/aliou/pi-processes
21
21
  ## Features
22
22
 
23
23
  - **Tool**: `process` with actions: `start`, `list`, `output`, `logs`, `kill`, `clear`
24
- - **Commands**: `/ps` (interactive panel), `/ps:focus` (focus on process), `/ps:logs` (focus + expand), `/ps:kill` (kill process), `/ps:clear` (clear finished), `/ps:dock` (toggle dock)
24
+ - **Commands**: `/ps` (interactive panel), `/ps:pin` (pin dock to process), `/ps:logs` (open log overlay), `/ps:kill` (kill process), `/ps:clear` (clear finished), `/ps:dock` (control dock visibility), `/ps:settings`
25
25
  - **Log Dock**: Unified view for all process logs with color-coded prefixes
26
26
  - **Follow Mode**: Automatically shows dock when processes start (enabled by default)
27
27
  - **Focus Mode**: Filter to a single process's logs
@@ -65,15 +65,15 @@ View and manage all processes in an interactive panel:
65
65
  - `c` - clear finished processes
66
66
  - `q` - quit
67
67
 
68
- #### `/ps:focus [id|name]` - Focus on a process
68
+ #### `/ps:pin [id|name]` - Pin dock to a process
69
69
 
70
- Focus on a specific process to view its logs in the dock. Opens the dock automatically if hidden.
70
+ Pin the dock to a specific process. Opens the dock automatically if hidden.
71
71
 
72
72
  Without arguments, shows a picker to select a process.
73
73
 
74
- #### `/ps:logs [id|name]` - Show log paths
74
+ #### `/ps:logs [id|name]` - Open log overlay
75
75
 
76
- Display the stdout and stderr log file paths for a process.
76
+ Open the interactive log viewer overlay (search, scroll, stream filter).
77
77
 
78
78
  #### `/ps:kill [id|name]` - Kill a process
79
79
 
@@ -83,12 +83,12 @@ Kill a running process. Without arguments, shows a picker.
83
83
 
84
84
  Remove all finished processes from the list.
85
85
 
86
- #### `/ps:dock [on|off|expanded]` - Toggle dock
86
+ #### `/ps:dock [show|hide|toggle]` - Control dock
87
87
 
88
- Control dock visibility. Without arguments, toggles between hidden/open. With arguments:
89
- - `on` - Show dock (open)
90
- - `off` - Hide dock
91
- - `expanded` - Show dock open (same as on)
88
+ Control dock visibility. Without arguments, it toggles state. With arguments:
89
+ - `show` - Show dock (open)
90
+ - `hide` - Hide dock
91
+ - `toggle` - Cycle dock visibility state
92
92
 
93
93
  ### Log Dock
94
94
 
@@ -108,8 +108,7 @@ The log dock shows interleaved logs from all processes with color-coded prefixes
108
108
  - `f` - toggle focus mode (filter to single process)
109
109
  - `x` - kill focused process
110
110
  - `q` - close/unfocus dock
111
- - `Shift+F` - toggle follow mode
112
- - `Ctrl+Shift+P` - toggle dock visibility (global)
111
+ - Follow mode toggle is only available via settings (`/ps:settings`)
113
112
 
114
113
  **Dock States:**
115
114
  - `collapsed` (1-2 lines): Summary + last log line
@@ -119,7 +118,7 @@ The log dock shows interleaved logs from all processes with color-coded prefixes
119
118
 
120
119
  The following commands are deprecated but still work with a warning:
121
120
  - `/process:list` → Use `/ps` instead
122
- - `/process:stream` → Use `/ps:focus` instead
121
+ - `/process:stream` → Use `/ps:pin` instead
123
122
  - `/process:logs` → Use `/ps:logs` instead
124
123
  - `/process:kill` → Use `/ps:kill` instead
125
124
  - `/process:clear` → Use `/ps:clear` instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliou/pi-processes",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -28,7 +28,7 @@
28
28
  "README.md"
29
29
  ],
30
30
  "dependencies": {
31
- "@aliou/pi-utils-settings": "^0.6.0",
31
+ "@aliou/pi-utils-settings": "^0.10.0",
32
32
  "@aliou/pi-utils-ui": "^0.1.0",
33
33
  "@aliou/sh": "^0.1.0",
34
34
  "@sinclair/typebox": "^0.34.41"
@@ -120,10 +120,6 @@ export function setupProcessWidget(
120
120
  else dockState.visibility = "collapsed";
121
121
  updateWidget();
122
122
  },
123
- toggleFollow() {
124
- dockState.followEnabled = !dockState.followEnabled;
125
- updateWidget();
126
- },
127
123
  };
128
124
 
129
125
  manager.onEvent((event) => {
@@ -14,7 +14,6 @@ export interface DockActions {
14
14
  collapse(): void;
15
15
  hide(): void;
16
16
  toggle(): void;
17
- toggleFollow(): void;
18
17
  }
19
18
 
20
19
  export const STATUS_WIDGET_ID = "processes-status";
@@ -15,8 +15,6 @@ export interface ProcessesKeybindings {
15
15
  nextProcess: string;
16
16
  /** Toggle focus mode */
17
17
  toggleFocus: string;
18
- /** Toggle follow mode */
19
- toggleFollow: string;
20
18
  /** Kill focused process */
21
19
  killProcess: string;
22
20
  /** Clear finished processes */
@@ -32,7 +30,6 @@ export const DEFAULT_KEYBINDINGS: ProcessesKeybindings = {
32
30
  prevProcess: "h",
33
31
  nextProcess: "l",
34
32
  toggleFocus: "f",
35
- toggleFollow: "Shift+F",
36
33
  killProcess: "x",
37
34
  clearFinished: "c",
38
35
  closeDock: "q",
@@ -48,7 +45,6 @@ export interface ProcessesConfigKeybindings {
48
45
  prevProcess?: string;
49
46
  nextProcess?: string;
50
47
  toggleFocus?: string;
51
- toggleFollow?: string;
52
48
  killProcess?: string;
53
49
  clearFinished?: string;
54
50
  closeDock?: string;
@@ -68,7 +64,6 @@ export function loadKeybindings(config: {
68
64
  prevProcess: user.prevProcess ?? DEFAULT_KEYBINDINGS.prevProcess,
69
65
  nextProcess: user.nextProcess ?? DEFAULT_KEYBINDINGS.nextProcess,
70
66
  toggleFocus: user.toggleFocus ?? DEFAULT_KEYBINDINGS.toggleFocus,
71
- toggleFollow: user.toggleFollow ?? DEFAULT_KEYBINDINGS.toggleFollow,
72
67
  killProcess: user.killProcess ?? DEFAULT_KEYBINDINGS.killProcess,
73
68
  clearFinished: user.clearFinished ?? DEFAULT_KEYBINDINGS.clearFinished,
74
69
  closeDock: user.closeDock ?? DEFAULT_KEYBINDINGS.closeDock,