gcf-aif-ext 0.7.2 → 0.7.3

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.2",
4
+ "version": "0.7.3",
5
5
  "description": "Game Context Framework for AI Factory",
6
6
  "skills": [
7
7
  "skills/gcf-init",
package/lib/integrate.js CHANGED
@@ -302,6 +302,8 @@ export async function integrate(projectDir, ids = []) {
302
302
  throw new Error(`integrate runs in the main checkout on its branch, not on ${branch}`);
303
303
 
304
304
  return withMainLock(projectDir, async () => {
305
+ // Nothing to merge leaves main alone: a run's first integrate must not refuse a dirty tree.
306
+ if (!ids.length && !verifiedBranches(projectDir).length) return [];
305
307
  if (git(projectDir, ['status', '--porcelain', '--untracked-files=no', '--', '.', METRICS]).out)
306
308
  throw new Error('main has uncommitted changes: commit or stash them before integrating');
307
309
  commitMetrics(projectDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcf-aif-ext",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Game Context Framework for AI Factory",
5
5
  "type": "module",
6
6
  "license": "MIT",