facult 2.8.3 → 2.8.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ai-state.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "facult",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "description": "Manage canonical AI capabilities, sync surfaces, and evolution state.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/ai-state.ts CHANGED
@@ -203,6 +203,8 @@ export async function ensureAiIndexPath(args: {
203
203
  indexPath: legacyPath,
204
204
  })
205
205
  ) {
206
+ await mkdir(dirname(generatedPath), { recursive: true });
207
+ await copyFile(legacyPath, generatedPath);
206
208
  const { outputPath } = await buildIndex({
207
209
  rootDir: args.rootDir,
208
210
  homeDir: args.homeDir,