@pzy560117/codex-harness 0.1.9 → 0.1.10
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/README.md +1 -1
- package/package-source/docs/codex-harness-engineering/templates/bootstrap-codex-harness.ps1 +2 -1
- package/package-source/docs/codex-harness-engineering/templates/runtime/doctor.ps1 +20 -0
- package/package-source/install-manifest.json +1 -1
- package/package-source/tools/install/bootstrap-codex-harness.ps1 +2 -1
- package/package-source/tools/install/install-agent.ps1 +17 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -667,7 +667,8 @@ $contextFiles = @(
|
|
|
667
667
|
@{ Source = "context\API_MAP.md"; Destination = "docs\ai\API_MAP.md" },
|
|
668
668
|
@{ Source = "context\DB_SCHEMA.md"; Destination = "docs\ai\DB_SCHEMA.md" },
|
|
669
669
|
@{ Source = "context\KNOWN_ISSUES.md"; Destination = "docs\ai\KNOWN_ISSUES.md" },
|
|
670
|
-
@{ Source = "context\CHANGELOG_AI.md"; Destination = "docs\ai\CHANGELOG_AI.md" }
|
|
670
|
+
@{ Source = "context\CHANGELOG_AI.md"; Destination = "docs\ai\CHANGELOG_AI.md" },
|
|
671
|
+
@{ Source = "context\service-dependency-matrix.yaml"; Destination = ".service-matrix\dependencies.yaml" }
|
|
671
672
|
)
|
|
672
673
|
|
|
673
674
|
foreach ($file in $contextFiles) {
|
|
@@ -576,6 +576,15 @@ function Test-DoctorThinLegacyResidue {
|
|
|
576
576
|
return $false
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
function Get-ThinProjectExcludedDestinations {
|
|
580
|
+
return @(
|
|
581
|
+
"docs/testing/",
|
|
582
|
+
"docs/harness/",
|
|
583
|
+
"docs/requirement-prep-kit/",
|
|
584
|
+
"docs/knowledge/"
|
|
585
|
+
)
|
|
586
|
+
}
|
|
587
|
+
|
|
579
588
|
function Test-ProjectScopeInstallSurface {
|
|
580
589
|
param(
|
|
581
590
|
[string]$Root,
|
|
@@ -594,6 +603,17 @@ function Test-ProjectScopeInstallSurface {
|
|
|
594
603
|
continue
|
|
595
604
|
}
|
|
596
605
|
|
|
606
|
+
$skipForThinProject = $false
|
|
607
|
+
foreach ($excludedDestination in @(Get-ThinProjectExcludedDestinations)) {
|
|
608
|
+
if ($destinationRaw.Replace('\', '/').StartsWith($excludedDestination, [System.StringComparison]::OrdinalIgnoreCase)) {
|
|
609
|
+
$skipForThinProject = $true
|
|
610
|
+
break
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
if ($skipForThinProject) {
|
|
614
|
+
continue
|
|
615
|
+
}
|
|
616
|
+
|
|
597
617
|
$normalizedDestination = $destinationRaw.Replace('/', '\').TrimStart('\')
|
|
598
618
|
$expectsDirectory = $destinationRaw.Trim().Replace('\', '/').EndsWith('/', [System.StringComparison]::Ordinal)
|
|
599
619
|
$targetPath = Join-Path $Root $normalizedDestination
|
|
@@ -667,7 +667,8 @@ $contextFiles = @(
|
|
|
667
667
|
@{ Source = "context\API_MAP.md"; Destination = "docs\ai\API_MAP.md" },
|
|
668
668
|
@{ Source = "context\DB_SCHEMA.md"; Destination = "docs\ai\DB_SCHEMA.md" },
|
|
669
669
|
@{ Source = "context\KNOWN_ISSUES.md"; Destination = "docs\ai\KNOWN_ISSUES.md" },
|
|
670
|
-
@{ Source = "context\CHANGELOG_AI.md"; Destination = "docs\ai\CHANGELOG_AI.md" }
|
|
670
|
+
@{ Source = "context\CHANGELOG_AI.md"; Destination = "docs\ai\CHANGELOG_AI.md" },
|
|
671
|
+
@{ Source = "context\service-dependency-matrix.yaml"; Destination = ".service-matrix\dependencies.yaml" }
|
|
671
672
|
)
|
|
672
673
|
|
|
673
674
|
foreach ($file in $contextFiles) {
|
|
@@ -218,7 +218,7 @@ function Write-InstallPlan {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
function Get-ManifestEntriesForMode {
|
|
221
|
+
function Get-ManifestEntriesForMode {
|
|
222
222
|
param(
|
|
223
223
|
[object]$ManifestInfo,
|
|
224
224
|
[string]$InstallMode,
|
|
@@ -253,8 +253,17 @@ function Get-ManifestEntriesForMode {
|
|
|
253
253
|
})
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
return $modeEntries
|
|
257
|
-
}
|
|
256
|
+
return $modeEntries
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function Get-ThinProjectExcludedDestinations {
|
|
260
|
+
return @(
|
|
261
|
+
"docs/testing/",
|
|
262
|
+
"docs/harness/",
|
|
263
|
+
"docs/requirement-prep-kit/",
|
|
264
|
+
"docs/knowledge/"
|
|
265
|
+
)
|
|
266
|
+
}
|
|
258
267
|
|
|
259
268
|
function Get-InstallManifestVersion {
|
|
260
269
|
param([object]$ManifestInfo)
|
|
@@ -2077,13 +2086,11 @@ function Ensure-ReadmeForSmoke {
|
|
|
2077
2086
|
function Assert-InstalledProjectScopeSurface {
|
|
2078
2087
|
param(
|
|
2079
2088
|
[object]$ManifestInfo,
|
|
2080
|
-
[string]$ProjectRoot
|
|
2089
|
+
[string]$ProjectRoot,
|
|
2090
|
+
[switch]$ThinProjectProfile
|
|
2081
2091
|
)
|
|
2082
2092
|
|
|
2083
|
-
$projectEntries = @(
|
|
2084
|
-
$ManifestInfo.Entries |
|
|
2085
|
-
Where-Object { [string]$_.Scope -eq "project" }
|
|
2086
|
-
)
|
|
2093
|
+
$projectEntries = @(Get-ManifestEntriesForMode -ManifestInfo $ManifestInfo -InstallMode "project" -ThinProjectProfile:$ThinProjectProfile.IsPresent)
|
|
2087
2094
|
|
|
2088
2095
|
$missingPaths = @()
|
|
2089
2096
|
foreach ($entry in $projectEntries) {
|
|
@@ -2447,7 +2454,8 @@ try {
|
|
|
2447
2454
|
}
|
|
2448
2455
|
|
|
2449
2456
|
if ($Mode -eq "project") {
|
|
2450
|
-
|
|
2457
|
+
$thinProjectInstall = $Scope -eq "project" -or $defaultThinInstall
|
|
2458
|
+
Assert-InstalledProjectScopeSurface -ManifestInfo $installManifestInfo -ProjectRoot $resolvedProjectRoot -ThinProjectProfile:$thinProjectInstall
|
|
2451
2459
|
Write-Step "project scope 真相源与运行文件已按 manifest 落地"
|
|
2452
2460
|
}
|
|
2453
2461
|
|