sdtk-spec-kit 0.3.14 → 0.3.15
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/assets/manifest/toolkit-bundle.manifest.json +61 -126
- package/assets/manifest/toolkit-bundle.sha256.txt +29 -42
- package/assets/toolkit/toolkit/AGENTS.md +17 -15
- package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +10 -6
- package/assets/toolkit/toolkit/install.ps1 +60 -50
- package/assets/toolkit/toolkit/runtimes/claude/CLAUDE_TEMPLATE.md +2 -2
- package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +117 -103
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +179 -169
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/SKILL.md +111 -84
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/SKILL.md +46 -10
- package/assets/toolkit/toolkit/skills/sdtk-arch/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/sdtk-design-layout/SKILL.md +42 -3
- package/assets/toolkit/toolkit/skills/sdtk-dev-backend/SKILL.md +61 -5
- package/assets/toolkit/toolkit/skills/sdtk-dev-frontend/SKILL.md +63 -5
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/SKILL.md +53 -33
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/SKILL.md +60 -24
- package/assets/toolkit/toolkit/skills/skills.catalog.yaml +9 -9
- package/assets/toolkit/toolkit/skills-claude/api-design-spec/SKILL.md +116 -90
- package/assets/toolkit/toolkit/skills-claude/api-doc/SKILL.md +49 -9
- package/assets/toolkit/toolkit/skills-claude/arch/SKILL.md +3 -3
- package/assets/toolkit/toolkit/skills-claude/design-layout/SKILL.md +36 -2
- package/assets/toolkit/toolkit/skills-claude/dev-backend/SKILL.md +58 -5
- package/assets/toolkit/toolkit/skills-claude/dev-frontend/SKILL.md +60 -5
- package/assets/toolkit/toolkit/skills-claude/screen-design-spec/SKILL.md +49 -27
- package/assets/toolkit/toolkit/skills-claude/test-case-spec/SKILL.md +74 -20
- package/assets/toolkit/toolkit/templates/README.md +5 -1
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_CREATION_RULES.md +1 -2
- package/assets/toolkit/toolkit/templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md +468 -468
- package/assets/toolkit/toolkit/templates/docs/api/FLOWCHART_CREATION_RULES.md +3 -3
- package/assets/toolkit/toolkit/templates/docs/api/YAML_CREATION_RULES.md +128 -128
- package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +3 -1
- package/package.json +46 -46
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_CREATION_RULES.md +0 -22
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-api-doc/references/YAML_CREATION_RULES.md +0 -128
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_CREATION_RULES.md +0 -22
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/API_DESIGN_FLOWCHART_CREATION_RULES.md +0 -468
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOWCHART_CREATION_RULES.md +0 -20
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
- package/assets/toolkit/toolkit/skills/sdtk-arch/references/YAML_CREATION_RULES.md +0 -128
- package/assets/toolkit/toolkit/skills/sdtk-screen-design-spec/references/FLOW_ACTION_SPEC_CREATION_RULES.md +0 -220
- package/assets/toolkit/toolkit/skills/sdtk-test-case-spec/references/TEST_CASE_CREATION_RULES.md +0 -129
|
@@ -58,6 +58,37 @@ function Copy-File {
|
|
|
58
58
|
Copy-Item -LiteralPath $SourcePath -Destination $DestinationPath -Force
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
function Get-ClaudeManagedReferenceSources {
|
|
62
|
+
param(
|
|
63
|
+
[Parameter(Mandatory = $true)][string]$SkillName
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
switch ($SkillName) {
|
|
67
|
+
'api-doc' { return @(
|
|
68
|
+
'templates/docs/api/YAML_CREATION_RULES.md',
|
|
69
|
+
'templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md'
|
|
70
|
+
) }
|
|
71
|
+
'api-design-spec' { return @(
|
|
72
|
+
'templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md'
|
|
73
|
+
) }
|
|
74
|
+
'arch' { return @(
|
|
75
|
+
'templates/docs/api/YAML_CREATION_RULES.md',
|
|
76
|
+
'templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md',
|
|
77
|
+
'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md'
|
|
78
|
+
) }
|
|
79
|
+
'screen-design-spec' { return @(
|
|
80
|
+
'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md',
|
|
81
|
+
'skills/sdtk-screen-design-spec/references/numbering-rules.md',
|
|
82
|
+
'skills/sdtk-screen-design-spec/references/figma-mcp.md',
|
|
83
|
+
'skills/sdtk-screen-design-spec/references/excel-image-export.md'
|
|
84
|
+
) }
|
|
85
|
+
'test-case-spec' { return @(
|
|
86
|
+
'templates/docs/qa/TEST_CASE_CREATION_RULES.md'
|
|
87
|
+
) }
|
|
88
|
+
default { return @() }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
61
92
|
function Install-ClaudeSkillDirectory {
|
|
62
93
|
param(
|
|
63
94
|
[Parameter(Mandatory = $true)][System.IO.DirectoryInfo]$SkillDir,
|
|
@@ -95,6 +126,21 @@ function Install-ClaudeSkillDirectory {
|
|
|
95
126
|
Copy-Item -LiteralPath $srcSubDir -Destination $destSubDir -Recurse -Force
|
|
96
127
|
}
|
|
97
128
|
|
|
129
|
+
$referenceSources = @(Get-ClaudeManagedReferenceSources -SkillName $SkillDir.Name)
|
|
130
|
+
if ($referenceSources.Count -gt 0) {
|
|
131
|
+
$destRefDir = Join-Path $destDir 'references'
|
|
132
|
+
if (Test-Path -LiteralPath $destRefDir) {
|
|
133
|
+
Remove-Item -LiteralPath $destRefDir -Recurse -Force
|
|
134
|
+
}
|
|
135
|
+
New-Item -ItemType Directory -Force -Path $destRefDir | Out-Null
|
|
136
|
+
|
|
137
|
+
foreach ($relativeSource in $referenceSources) {
|
|
138
|
+
$srcRefPath = Join-Path $ToolkitRoot $relativeSource
|
|
139
|
+
$destRefPath = Join-Path $destRefDir ([System.IO.Path]::GetFileName($relativeSource))
|
|
140
|
+
Copy-File -SourcePath $srcRefPath -DestinationPath $destRefPath -Overwrite $true
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
98
144
|
return $true
|
|
99
145
|
}
|
|
100
146
|
|
|
@@ -147,68 +193,32 @@ function Install-ClaudeSkills {
|
|
|
147
193
|
}
|
|
148
194
|
}
|
|
149
195
|
|
|
150
|
-
#
|
|
151
|
-
$
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
$refCount = 0
|
|
157
|
-
$missingRefs = @()
|
|
158
|
-
|
|
159
|
-
# 6 files from toolkit/templates/docs/
|
|
160
|
-
$templateRefs = @(
|
|
161
|
-
@{ Src = 'templates/docs/api/YAML_CREATION_RULES.md' },
|
|
162
|
-
@{ Src = 'templates/docs/api/API_DESIGN_FLOWCHART_CREATION_RULES.md' },
|
|
163
|
-
@{ Src = 'templates/docs/api/FLOWCHART_CREATION_RULES.md' },
|
|
164
|
-
@{ Src = 'templates/docs/api/API_DESIGN_CREATION_RULES.md' },
|
|
165
|
-
@{ Src = 'templates/docs/specs/FLOW_ACTION_SPEC_CREATION_RULES.md' },
|
|
166
|
-
@{ Src = 'templates/docs/qa/TEST_CASE_CREATION_RULES.md' }
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
foreach ($ref in $templateRefs) {
|
|
170
|
-
$srcPath = Join-Path $ToolkitRoot $ref.Src
|
|
171
|
-
$fileName = Split-Path -Leaf $srcPath
|
|
172
|
-
$destPath = Join-Path $refDest $fileName
|
|
173
|
-
if (Test-Path -LiteralPath $srcPath) {
|
|
174
|
-
Copy-File -SourcePath $srcPath -DestinationPath $destPath -Overwrite $Overwrite
|
|
175
|
-
$refCount++
|
|
176
|
-
} else {
|
|
177
|
-
$missingRefs += $srcPath
|
|
178
|
-
}
|
|
196
|
+
# Remove obsolete shared Claude specialist reference catch-all if it exists
|
|
197
|
+
$legacyRefDest = Join-Path $skillsDest 'references'
|
|
198
|
+
if (Test-Path -LiteralPath $legacyRefDest) {
|
|
199
|
+
Remove-Item -LiteralPath $legacyRefDest -Recurse -Force
|
|
179
200
|
}
|
|
180
201
|
|
|
181
|
-
|
|
182
|
-
$
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
if (Test-Path -LiteralPath $srcPath) {
|
|
187
|
-
Copy-File -SourcePath $srcPath -DestinationPath $destPath -Overwrite $Overwrite
|
|
188
|
-
$refCount++
|
|
189
|
-
} else {
|
|
190
|
-
$missingRefs += $srcPath
|
|
202
|
+
$managedRefCount = 0
|
|
203
|
+
foreach ($skillName in @('arch', 'api-doc', 'api-design-spec', 'screen-design-spec', 'test-case-spec')) {
|
|
204
|
+
$refDir = Join-Path $skillsDest "$skillName/references"
|
|
205
|
+
if (Test-Path -LiteralPath $refDir) {
|
|
206
|
+
$managedRefCount += @(Get-ChildItem -LiteralPath $refDir -File).Count
|
|
191
207
|
}
|
|
192
208
|
}
|
|
193
209
|
|
|
194
|
-
# Fail-fast: abort if any reference files are missing
|
|
195
|
-
if ($missingRefs.Count -gt 0) {
|
|
196
|
-
$list = ($missingRefs | ForEach-Object { " - $_" }) -join "`n"
|
|
197
|
-
throw "Claude install failed. Missing reference files:`n$list"
|
|
198
|
-
}
|
|
199
|
-
|
|
200
210
|
# Strict count assertions
|
|
201
|
-
$expectedSkills =
|
|
202
|
-
$
|
|
211
|
+
$expectedSkills = 14
|
|
212
|
+
$expectedManagedRefs = 11
|
|
203
213
|
if ($skillCount -ne $expectedSkills) {
|
|
204
214
|
throw "Claude install failed. Expected $expectedSkills skills but installed $skillCount."
|
|
205
215
|
}
|
|
206
|
-
if ($
|
|
207
|
-
throw "Claude install failed. Expected $
|
|
216
|
+
if ($managedRefCount -ne $expectedManagedRefs) {
|
|
217
|
+
throw "Claude install failed. Expected $expectedManagedRefs specialist reference files but installed $managedRefCount."
|
|
208
218
|
}
|
|
209
219
|
|
|
210
220
|
Write-Host " Skills installed: $skillCount"
|
|
211
|
-
Write-Host "
|
|
221
|
+
Write-Host " Specialist refs : $managedRefCount"
|
|
212
222
|
}
|
|
213
223
|
|
|
214
224
|
function Test-IsMaintainerRoot {
|
|
@@ -47,8 +47,8 @@ Skills are installed at `.claude/skills/` and provide slash commands:
|
|
|
47
47
|
| `/dev-backend` | Backend code conventions |
|
|
48
48
|
| `/dev-frontend` | Frontend code conventions |
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Specialist rule reference files are installed inside each skill directory when that skill needs them (for example `.claude/skills/api-doc/references/`).
|
|
51
51
|
|
|
52
52
|
## 5) References
|
|
53
53
|
- `sdtk-spec.config.json`
|
|
54
|
-
- `.claude/skills
|
|
54
|
+
- `.claude/skills/<skill>/references/` (skill-local rule files when required)
|
|
@@ -1,103 +1,117 @@
|
|
|
1
|
-
param(
|
|
2
|
-
[Parameter(Mandatory = $true)] [string] $RepoRoot,
|
|
3
|
-
[Parameter(Mandatory = $true)] [string] $TaskFile,
|
|
4
|
-
[Parameter(Mandatory = $true)] [string] $ReportFile,
|
|
5
|
-
[string] $LogFile = '',
|
|
6
|
-
[string] $Model = '',
|
|
7
|
-
[switch] $FullAuto,
|
|
8
|
-
[switch] $DryRun
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
$ErrorActionPreference = 'Stop'
|
|
12
|
-
$Utf8NoBom = [System.Text.UTF8Encoding]::new($false)
|
|
13
|
-
$ReviewPhases = @('controller-dev-review', 'qa-review', 'controller-acceptance')
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if ($candidate
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if ([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
[
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
$
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (-not (Test-Path $
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
$
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
$cliArgs
|
|
82
|
-
|
|
83
|
-
if ($
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
param(
|
|
2
|
+
[Parameter(Mandatory = $true)] [string] $RepoRoot,
|
|
3
|
+
[Parameter(Mandatory = $true)] [string] $TaskFile,
|
|
4
|
+
[Parameter(Mandatory = $true)] [string] $ReportFile,
|
|
5
|
+
[string] $LogFile = '',
|
|
6
|
+
[string] $Model = '',
|
|
7
|
+
[switch] $FullAuto,
|
|
8
|
+
[switch] $DryRun
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
$ErrorActionPreference = 'Stop'
|
|
12
|
+
$Utf8NoBom = [System.Text.UTF8Encoding]::new($false)
|
|
13
|
+
$ReviewPhases = @('controller-dev-review', 'qa-review', 'controller-acceptance')
|
|
14
|
+
$WritablePermissionMode = 'workspace-write-approved'
|
|
15
|
+
|
|
16
|
+
function Get-TaskBulletValue([string[]] $Lines, [string] $Heading) {
|
|
17
|
+
for ($i = 0; $i -lt $Lines.Length; $i++) {
|
|
18
|
+
if ($Lines[$i].Trim() -eq $Heading) {
|
|
19
|
+
for ($j = $i + 1; $j -lt $Lines.Length; $j++) {
|
|
20
|
+
$candidate = $Lines[$j].Trim()
|
|
21
|
+
if (-not $candidate) { continue }
|
|
22
|
+
if ($candidate.StartsWith('- ')) {
|
|
23
|
+
return $candidate.Substring(2).Trim()
|
|
24
|
+
}
|
|
25
|
+
break
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return ''
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function Resolve-RepoPath([string] $RepoRootPath, [string] $CandidatePath) {
|
|
33
|
+
if ([string]::IsNullOrWhiteSpace($CandidatePath)) { return '' }
|
|
34
|
+
if ([System.IO.Path]::IsPathRooted($CandidatePath)) { return $CandidatePath }
|
|
35
|
+
return Join-Path $RepoRootPath $CandidatePath
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function Append-FileText([string] $Path, [string] $Text) {
|
|
39
|
+
if ([string]::IsNullOrWhiteSpace($Text)) { return }
|
|
40
|
+
[System.IO.File]::AppendAllText($Path, [Environment]::NewLine + $Text, $Utf8NoBom)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function Invoke-PhaseArtifactValidation([string[]] $TaskLines, [string] $RepoRootPath, [string] $ReportPath, [string] $LogPath, [string] $ValidatorPath) {
|
|
44
|
+
$phase = Get-TaskBulletValue $TaskLines 'Phase:'
|
|
45
|
+
if ($ReviewPhases -notcontains $phase) { return }
|
|
46
|
+
|
|
47
|
+
$artifactValue = Get-TaskBulletValue $TaskLines 'Primary Formal Artifact:'
|
|
48
|
+
if ([string]::IsNullOrWhiteSpace($artifactValue)) { return }
|
|
49
|
+
if (-not (Test-Path $ValidatorPath)) { return }
|
|
50
|
+
|
|
51
|
+
$artifactPath = Resolve-RepoPath $RepoRootPath $artifactValue
|
|
52
|
+
if (-not (Test-Path $artifactPath)) {
|
|
53
|
+
$skip = "[MAILBOX PHASE VALIDATION] skipped: primary formal artifact not found at $artifactPath"
|
|
54
|
+
Append-FileText $ReportPath $skip
|
|
55
|
+
if ($LogPath) { Append-FileText $LogPath $skip }
|
|
56
|
+
return
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
$validationOutput = (& python $ValidatorPath --phase $phase --artifact $artifactPath 2>&1 | Out-String).TrimEnd()
|
|
60
|
+
$validationBlock = "[MAILBOX PHASE VALIDATION]`n$validationOutput"
|
|
61
|
+
Append-FileText $ReportPath $validationBlock
|
|
62
|
+
if ($LogPath) { Append-FileText $LogPath $validationBlock }
|
|
63
|
+
|
|
64
|
+
if ($LASTEXITCODE -ne 0) {
|
|
65
|
+
throw "Mailbox phase artifact validation failed for $artifactPath"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (-not (Test-Path $RepoRoot)) { throw "RepoRoot not found: $RepoRoot" }
|
|
70
|
+
if (-not (Test-Path $TaskFile)) { throw "TaskFile not found: $TaskFile" }
|
|
71
|
+
|
|
72
|
+
$taskLines = Get-Content $TaskFile -Encoding UTF8
|
|
73
|
+
$phase = Get-TaskBulletValue $taskLines 'Phase:'
|
|
74
|
+
$permissionMode = Get-TaskBulletValue $taskLines 'Execution Permission:'
|
|
75
|
+
$prompt = [string]($taskLines | Out-String)
|
|
76
|
+
New-Item -ItemType Directory -Force -Path ([System.IO.Path]::GetDirectoryName($ReportFile)) | Out-Null
|
|
77
|
+
if ($LogFile) {
|
|
78
|
+
New-Item -ItemType Directory -Force -Path ([System.IO.Path]::GetDirectoryName($LogFile)) | Out-Null
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
$cliArgs = @('exec', '-c', 'mcp_servers={}', '-c', 'model_reasoning_effort="medium"', '-C', $RepoRoot, '--output-last-message', $ReportFile)
|
|
82
|
+
$useWorkspaceWrite = $false
|
|
83
|
+
if ($FullAuto) {
|
|
84
|
+
$useWorkspaceWrite = $true
|
|
85
|
+
} elseif ($phase -eq 'implementation' -and $permissionMode -eq $WritablePermissionMode) {
|
|
86
|
+
$useWorkspaceWrite = $true
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if ($useWorkspaceWrite) {
|
|
90
|
+
$cliArgs += '--full-auto'
|
|
91
|
+
} else {
|
|
92
|
+
$cliArgs += @('--sandbox', 'read-only')
|
|
93
|
+
}
|
|
94
|
+
if ($Model) { $cliArgs += @('--model', $Model) }
|
|
95
|
+
$cliArgs += '-'
|
|
96
|
+
|
|
97
|
+
if ($DryRun) {
|
|
98
|
+
[pscustomobject]@{
|
|
99
|
+
Cli = 'codex'
|
|
100
|
+
RepoRoot = $RepoRoot
|
|
101
|
+
TaskFile = $TaskFile
|
|
102
|
+
ReportFile = $ReportFile
|
|
103
|
+
LogFile = $LogFile
|
|
104
|
+
Args = $cliArgs
|
|
105
|
+
} | ConvertTo-Json -Depth 4
|
|
106
|
+
exit 0
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if ($LogFile) {
|
|
110
|
+
$prompt | & codex @cliArgs 2>&1 | Tee-Object -FilePath $LogFile | Out-Null
|
|
111
|
+
} else {
|
|
112
|
+
$null = ($prompt | & codex @cliArgs 2>&1)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
$validatorPath = Join-Path $PSScriptRoot 'validate-mailbox-formal-artifact.py'
|
|
116
|
+
Invoke-PhaseArtifactValidation -TaskLines $taskLines -RepoRootPath $RepoRoot -ReportPath $ReportFile -LogPath $LogFile -ValidatorPath $validatorPath
|
|
117
|
+
Write-Host "Codex report written to: $ReportFile"
|