diff --git a/.changeset/adopt-external-children.md b/.changeset/adopt-external-children.md deleted file mode 100644 index 623148b..0000000 --- a/.changeset/adopt-external-children.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@aliou/pi-processes": minor ---- - -Add an adopt API so other extensions can hand an already-running child process over to the manager. `ProcessManager.adopt(name, command, cwd, child, { initialStdout, initialStderr, startTime })` registers an externally spawned child (detached process group, piped stdio) as a managed process, and the new `processes:command:adopt` event-bus channel exposes it cross-extension. Adopted processes get the full managed lifecycle: log capture (including output produced before the handover), liveness watching, kill/stop, notifications, and dock/`/ps` visibility. This enables tools like a bash override that moves a long-running foreground command into the background without losing output. diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b1545..5c41875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @aliou/pi-processes +## 0.12.0 + +### Minor Changes + +- 860d98e: Add an adopt API so other extensions can hand an already-running child process over to the manager. `ProcessManager.adopt(name, command, cwd, child, { initialStdout, initialStderr, startTime })` registers an externally spawned child (detached process group, piped stdio) as a managed process, and the new `processes:command:adopt` event-bus channel exposes it cross-extension. Adopted processes get the full managed lifecycle: log capture (including output produced before the handover), liveness watching, kill/stop, notifications, and dock/`/ps` visibility. This enables tools like a bash override that moves a long-running foreground command into the background without losing output. + ## 0.11.2 ### Patch Changes diff --git a/package.json b/package.json index e1351c8..68e2343 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aliou/pi-processes", - "version": "0.11.2", + "version": "0.12.0", "license": "MIT", "type": "module", "private": false,