@ancleto/spec 0.7.0 → 0.7.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/package.json +1 -1
- package/src/cli/index.js +2 -1
package/package.json
CHANGED
package/src/cli/index.js
CHANGED
|
@@ -793,7 +793,7 @@ async function hasRealContent(aspecDir) {
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
// Migra la carpeta legacy openspec/ a aspec/ por copia recursiva (no destructiva).
|
|
796
|
-
// Unico dueno del invariante: la invocan init
|
|
796
|
+
// Unico dueno del invariante: la invocan init e install --project antes del scaffold, y upgrade como paso previo (sin scaffold).
|
|
797
797
|
async function migrateLegacyOpenspec(projectDir) {
|
|
798
798
|
const legacyDir = join(projectDir, LEGACY_OPENSPEC_DIR)
|
|
799
799
|
if (!(await exists(legacyDir))) return // sin legacy: no-op silencioso
|
|
@@ -962,6 +962,7 @@ async function install(args) {
|
|
|
962
962
|
|
|
963
963
|
if (projectDir) {
|
|
964
964
|
await copyTemplates(projectDir)
|
|
965
|
+
await migrateLegacyOpenspec(projectDir)
|
|
965
966
|
await scaffoldAspec(projectDir)
|
|
966
967
|
await refreshWorkingContext(projectDir)
|
|
967
968
|
const agentSkillsDir = await installAgentSkills(projectDir, agent)
|