gcf-aif-ext 0.7.14 → 0.7.15

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/extension.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/lee-to/ai-factory/2.x/schemas/extension.schema.json",
3
3
  "name": "gcf-aif-ext",
4
- "version": "0.7.14",
4
+ "version": "0.7.15",
5
5
  "description": "Game Context Framework for AI Factory",
6
6
  "skills": [
7
7
  "skills/gcf-init",
@@ -37,9 +37,16 @@ export function codeTree(projectDir) {
37
37
  return r.stdout.trim();
38
38
  };
39
39
 
40
+ // `git add` fails on an exclude that names an ignored path (`.gcf-session` in .gitignore or
41
+ // info/exclude), tracked or not, and an ignored path stays out of the add anyway.
42
+ const ignored = git(projectDir, ['check-ignore', '--no-index', '--', ...NOT_CODE]).stdout.split(
43
+ /\r?\n/,
44
+ );
45
+ const excludes = NOT_CODE.filter((p) => !ignored.includes(p)).map((p) => `:(exclude)${p}`);
46
+
40
47
  try {
41
48
  if (existsSync(real)) copyFileSync(real, tmp);
42
- step(['add', '-A', '--', '.', ...NOT_CODE.map((p) => `:(exclude)${p}`)]);
49
+ step(['add', '-A', '--', '.', ...excludes]);
43
50
  step(['rm', '-r', '-q', '--cached', '--ignore-unmatch', '--', ...NOT_CODE]);
44
51
 
45
52
  return step(['write-tree']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-aif-ext",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Game Context Framework for AI Factory",
5
5
  "type": "module",
6
6
  "license": "MIT",