@danmoisan/drm-copilot-mcp 1.0.16 → 1.0.17
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<#
|
|
1
|
+
<#
|
|
2
2
|
.SYNOPSIS
|
|
3
3
|
SubagentStop hook for the atomic-planner subagent.
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
- output contains `PREFLIGHT: ALL CLEAR` or
|
|
15
15
|
`PREFLIGHT: REVISIONS REQUIRED`,
|
|
16
16
|
- the advertised plan exists on disk,
|
|
17
|
-
- the plan contains canonical `### Phase N
|
|
17
|
+
- the plan contains canonical `### Phase N — <Title>` headings,
|
|
18
18
|
- Phase 0 exists and includes policy-read and baseline tasks,
|
|
19
19
|
- each task uses `- [ ] [P#-T#]` (or checked equivalent),
|
|
20
20
|
- task numbering is sequential within each phase,
|
|
@@ -118,7 +118,7 @@ function Get-PlanStructureValidationReport {
|
|
|
118
118
|
[string[]] $Lines
|
|
119
119
|
)
|
|
120
120
|
|
|
121
|
-
$phasePattern = '^### Phase (?<Phase>\d+)\s
|
|
121
|
+
$phasePattern = '^### Phase (?<Phase>\d+)\s+—\s+(?<Title>.+)$'
|
|
122
122
|
$taskPattern = '^- \[(?<State>[ xX])\] \[P(?<Phase>\d+)-T(?<Task>\d+)\] (?<Text>.+)$'
|
|
123
123
|
$errors = [System.Collections.Generic.List[string]]::new()
|
|
124
124
|
$tasksByPhase = @{}
|
|
@@ -134,7 +134,7 @@ function Get-PlanStructureValidationReport {
|
|
|
134
134
|
if ($line -match '^### Phase ') {
|
|
135
135
|
$phaseMatch = [regex]::Match($line, $phasePattern)
|
|
136
136
|
if (-not $phaseMatch.Success) {
|
|
137
|
-
$errors.Add("Line ${lineNumber}: phase heading must match `### Phase N
|
|
137
|
+
$errors.Add("Line ${lineNumber}: phase heading must match `### Phase N — <Title>`.")
|
|
138
138
|
$currentPhase = $null
|
|
139
139
|
continue
|
|
140
140
|
}
|
|
@@ -245,7 +245,7 @@ function Invoke-PlannerOutputValidation {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
$agentOutput = $null
|
|
248
|
-
if ($payload.PSObject.Properties
|
|
248
|
+
if ($null -ne $payload.PSObject.Properties['output']) {
|
|
249
249
|
$agentOutput = $payload.output
|
|
250
250
|
}
|
|
251
251
|
if ([string]::IsNullOrWhiteSpace($agentOutput)) {
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
# to AST-based scriptblocks (Parser::ParseFile(...).GetScriptBlock()) so Pester
|
|
83
83
|
# coverage breakpoints bind to the on-disk source file.
|
|
84
84
|
'scripts/powershell/PoshQC/PoshQC.ScanConfig.psm1'
|
|
85
|
+
# Issue #357 remediation cycle 1 (fix #1): measure the atomic-planner SubagentStop
|
|
86
|
+
# hook so its Pester coverage is captured in the canonical artifact.
|
|
87
|
+
'.claude/hooks/validate-planner-output.ps1'
|
|
85
88
|
)
|
|
86
89
|
# Optional: don't fail the run on coverage percentage
|
|
87
90
|
CoveragePercentTarget = 0
|