Skip to content

refactor: move protocol and inject spawn environment - #88

Merged
aliou merged 5 commits into
mainfrom
chore/code-tweaks
Aug 22, 2026
Merged

refactor: move protocol and inject spawn environment#88
aliou merged 5 commits into
mainfrom
chore/code-tweaks

Conversation

@378-kaiabot

@378-kaiabot 378-kaiabot Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Changes from chore/code-tweaks, opened against main.

aliou added 5 commits August 15, 2026 08:45
The getManager function was a thin wrapper around new ProcessManager()
with a misleading name (implied a singleton but returned fresh
instances). Delete it and its test; callers now construct
ProcessManager directly.
…alidation

Pi validates tool call arguments against the TypeBox schema before execute,
so structural guards in notify/update tools were dead code. Extension bus
payloads are produced and consumed in-process, so typed casts replace the
remaining isRecord checks. The migration peek at dockDefaultState uses a
plain property check with an explicit widening comment.
protocol/ is a Pi in-process event-bus contract (CHANNELS + reply callbacks),
not part of the Pi-agnostic manager core, so it belongs with the extensions
that produce and consume it. Nothing in src/ imported it; internal references
to ../types now point back at src/types.

Also make the child-process environment injectable in spawnCommand (default
process.env), matching the existing getConfiguredShellPath pattern and
removing the last hidden global in src/.
@378-kaiabot
378-kaiabot Bot changed the base branch from main to next August 17, 2026 11:43
@378-kaiabot
378-kaiabot Bot force-pushed the chore/code-tweaks branch from aa45ba5 to 5fc84a8 Compare August 17, 2026 11:45
@378-kaiabot
378-kaiabot Bot changed the base branch from next to main August 17, 2026 16:48
@378-kaiabot
378-kaiabot Bot force-pushed the chore/code-tweaks branch from 5fc84a8 to aa45ba5 Compare August 17, 2026 16:48
@aliou
aliou merged commit 41b32f3 into main Aug 22, 2026
4 checks passed
@aliou
aliou deleted the chore/code-tweaks branch August 22, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant