@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 CHANGED
@@ -106,7 +106,7 @@ harness init --plan
106
106
  ### 钉住远程版本初始化
107
107
 
108
108
  ```powershell
109
- npx @pzy560117/codex-harness init --version 0.1.9
109
+ npx @pzy560117/codex-harness init --version 0.1.10
110
110
  ```
111
111
 
112
112
  适合 release smoke 或回滚到某个已发布版本。
@@ -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
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "0.1",
3
3
  "status": "draft",
4
4
  "package": "codex-harness",
5
- "version": "0.1.9",
5
+ "version": "0.1.10",
6
6
  "installModes": [
7
7
  {
8
8
  "name": "user",
@@ -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
- Assert-InstalledProjectScopeSurface -ManifestInfo $installManifestInfo -ProjectRoot $resolvedProjectRoot
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pzy560117/codex-harness",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Codex Harness installer and project runtime CLI",
5
5
  "type": "module",
6
6
  "bin": {