aid-installer 1.1.0 → 1.1.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
package/bin/aid CHANGED
@@ -1875,10 +1875,16 @@ _aid_migrate_repo() {
1875
1875
  _era="a"
1876
1876
  elif [[ -f "${repo}/.aid/knowledge/DISCOVERY_STATE.md" ]] \
1877
1877
  || [[ -f "${repo}/.aid/knowledge/DISCOVERY-STATE.md" ]] \
1878
- || [[ -f "${repo}/.aid/knowledge/STATE.md" ]]; then
1878
+ || [[ -f "${repo}/.aid/knowledge/STATE.md" ]] \
1879
+ || [[ -f "${repo}/.aid/.aid-manifest.json" ]]; then
1880
+ # Era-b: KB-state present, OR a tracked repo (manifest present) that has no
1881
+ # settings.yml yet -- the `aid add`-only state. Synthesize a fresh stamped
1882
+ # settings.yml so the format gate stops warning every run and the repo is
1883
+ # brought current. Without the manifest clause such repos warn forever and
1884
+ # are never stamped (gate says "tracked + old"; migrate said "not a candidate").
1879
1885
  _era="b"
1880
1886
  else
1881
- # Bare .aid/ -- not a candidate, no mutation.
1887
+ # Bare .aid/ (no settings.yml, no KB state, no manifest) -- not a candidate.
1882
1888
  return 0
1883
1889
  fi
1884
1890
 
package/bin/aid.ps1 CHANGED
@@ -2136,10 +2136,15 @@ function script:Invoke-AidMigrateRepo {
2136
2136
  $era = ''
2137
2137
  if (Test-Path $settingsPath -PathType Leaf) {
2138
2138
  $era = 'a'
2139
- } elseif ((Test-Path $dsA -PathType Leaf) -or (Test-Path $dsB -PathType Leaf) -or (Test-Path $dsC -PathType Leaf)) {
2139
+ } elseif ((Test-Path $dsA -PathType Leaf) -or (Test-Path $dsB -PathType Leaf) -or (Test-Path $dsC -PathType Leaf) -or (Test-Path (Join-Path $aidDir '.aid-manifest.json') -PathType Leaf)) {
2140
+ # Era-b: KB-state present, OR a tracked repo (manifest present) with no
2141
+ # settings.yml yet (the `aid add`-only state). Synthesize a fresh stamped
2142
+ # settings.yml so the format gate stops warning and the repo is brought
2143
+ # current. Mirrors bin/aid. Without the manifest clause such repos warn
2144
+ # forever and are never stamped.
2140
2145
  $era = 'b'
2141
2146
  } else {
2142
- return 0 # bare .aid/ -- not a candidate
2147
+ return 0 # bare .aid/ (no settings.yml, no KB state, no manifest) -- not a candidate
2143
2148
  }
2144
2149
 
2145
2150
  $repoName = Split-Path $Repo -Leaf
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aid-installer",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "AID CLI installer - puts the persistent aid command on PATH via npm",
5
5
  "bin": {
6
6
  "aid": "bin/aid.js"