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`);

View File

@@ -18,3 +18,19 @@ projects:
path: __KRI-Common/NotiHub/notihub-server
short-url:
path: __KRI-Common/ShortUrl
keps-csharp:
path: ___NEW 출구조사/keps_csharp
poll-recruit:
path: ___NEW 출구조사/poll_recruit
poll-predict:
path: ___NEW 출구조사/PollPredict
kart-api-kon:
path: _KART/KART_API_KON
kart-api-newssak:
path: _KART/KART_API_NEWSSAK
kart-front:
path: _KART/KART_FRONT/Report_React
kri-contact-front:
path: _KriContact/contact-front
kri-contact-server:
path: _KriContact/contact-server