feat(profiler/behave_shell): emit environmental.shell_type

Per-prompt classification mode over ctx.prompt_lines. $/# → bash;
% → zsh; > with 'PS ' prefix → powershell; > with 'C:\' substring →
cmd.exe; > otherwise → fish. New _features/environmental.py module
opens Phase F.
This commit is contained in:
2026-05-04 00:30:24 -04:00
parent 1ff02f0c77
commit 07ff5ff0c9
4 changed files with 171 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ from decnet.profiler.behave_shell._features.cognitive import (
inter_command_consistency,
inter_command_latency_class,
)
from decnet.profiler.behave_shell._features.environmental import (
shell_type,
)
from decnet.profiler.behave_shell._features.temporal import (
escalation_pattern,
landing_ritual,
@@ -67,4 +70,5 @@ FEATURES: tuple[FeatureFn, ...] = (
session_duration,
escalation_pattern,
landing_ritual,
shell_type,
)