feat: register internal project harness profiles

This commit is contained in:
2026-08-07 11:18:59 +09:00
parent 69fb9757d0
commit 152f031385
2 changed files with 57 additions and 0 deletions

View File

@@ -270,6 +270,47 @@ stack:
);
});
test("registers, composes, and verifies a project path containing Korean text and spaces", async (t) => {
const { temporaryRoot, harnessRoot } = await createFixture(t);
const projectRoot = path.join(temporaryRoot, "___NEW 출구조사", "legacy-app");
await writeText(
path.join(projectRoot, ".agent", "profile.yml"),
`schema_version: 1
project:
id: legacy-korean-path
name: Legacy Korean Path
type: internal-service
layer: standalone
legacy: true
stack:
- typescript
`,
);
await writeText(
path.join(projectRoot, ".agent", "project.md"),
"## Legacy Korean Path Rule\n",
);
const registration = await registerProject(
harnessRoot,
"legacy-korean-path",
"___NEW 출구조사/legacy-app",
);
assert.equal(registration.changed, true);
const plan = await planProject(harnessRoot, "legacy-korean-path");
assert.equal(path.normalize(plan.repositoryPath), path.normalize(projectRoot));
assert.deepEqual((await composeProject(harnessRoot, "legacy-korean-path")).changed, [
"AGENTS.md",
"CLAUDE.md",
]);
assert.deepEqual((await verifyProject(harnessRoot, "legacy-korean-path")).output, {
agents: "current",
claude: "current",
});
});
test("fails instead of truncating output above the hard size limit", async (t) => {
const { harnessRoot, appRoot } = await createFixture(t);
await writeText(path.join(appRoot, ".agent", "project.md"), `## Project Rule\n\n${"x".repeat(31_000)}\n`);