From 152f031385a129064485786345f98c7d94106712 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 7 Aug 2026 11:18:59 +0900 Subject: [PATCH] feat: register internal project harness profiles --- tests/harness.test.mjs | 41 +++++++++++++++++++++++++++++++++++++++++ workspace.yml | 16 ++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/tests/harness.test.mjs b/tests/harness.test.mjs index ef71f53..b0e8247 100644 --- a/tests/harness.test.mjs +++ b/tests/harness.test.mjs @@ -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`); diff --git a/workspace.yml b/workspace.yml index 0befaa6..1630980 100644 --- a/workspace.yml +++ b/workspace.yml @@ -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