chore(integration): snapshot local main worktree

This commit is contained in:
inman committed 2026-08-31 10:23:21 +08:00
1 parent 48a9189939
commit 33fb31fb28
116 files changed
+8108 -3026

No files matched your search

+6 -6
View File
@@ -17,7 +17,7 @@ afterEach(async () => {
describe('game asset review state', () => {
it('persists user decisions, resolves a review, and excludes terminal assets from later invocations', async () => {
const projectPath = await mkdtemp(join(tmpdir(), 'niancode-asset-review-'));
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-asset-review-'));
temporaryDirectories.push(projectPath);
const initial = await loadGameAssetReview(projectPath, 'review-1', ['hero', 'jump']);
@@ -42,14 +42,14 @@ describe('game asset review state', () => {
const next = await loadGameAssetReview(projectPath, 'review-2', ['hero', 'jump', 'coin']);
expect(next).toMatchObject({ invocationId: 'review-2', candidateIds: ['hero', 'jump', 'coin'], pendingAssetIds: ['coin'] });
const state = JSON.parse(await readFile(join(projectPath, '.niancode', 'asset-review.json'), 'utf8')) as {
const state = JSON.parse(await readFile(join(projectPath, '.makelore', 'asset-review.json'), 'utf8')) as {
invocations: Record<string, { candidateIds: string[] }>;
};
expect(state.invocations['review-2']?.candidateIds).toEqual(['hero', 'jump', 'coin']);
});
it('makes repeated identical actions safe and rejects conflicting decisions', async () => {
const projectPath = await mkdtemp(join(tmpdir(), 'niancode-asset-review-'));
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-asset-review-'));
temporaryDirectories.push(projectPath);
await loadGameAssetReview(projectPath, 'review-1', ['hero']);
@@ -76,7 +76,7 @@ describe('game asset review state', () => {
});
it('applies a complete review batch atomically and keeps repeated batches idempotent', async () => {
const projectPath = await mkdtemp(join(tmpdir(), 'niancode-asset-review-'));
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-asset-review-'));
temporaryDirectories.push(projectPath);
await loadGameAssetReview(projectPath, 'review-batch', ['hero', 'jump']);
@@ -118,7 +118,7 @@ describe('game asset review state', () => {
});
it('repairs an untouched empty invocation from the current Agent submission', async () => {
const projectPath = await mkdtemp(join(tmpdir(), 'niancode-asset-review-'));
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-asset-review-'));
temporaryDirectories.push(projectPath);
await loadGameAssetReview(projectPath, 'legacy-empty', []);
@@ -133,7 +133,7 @@ describe('game asset review state', () => {
});
it('repairs an untouched invocation whose legacy ids no longer match the current plan', async () => {
const projectPath = await mkdtemp(join(tmpdir(), 'niancode-asset-review-'));
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-asset-review-'));
temporaryDirectories.push(projectPath);
await loadGameAssetReview(projectPath, 'legacy-unmatched', ['legacy-name']);