feat: register internal project harness profiles
This commit is contained in:
@@ -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) => {
|
test("fails instead of truncating output above the hard size limit", async (t) => {
|
||||||
const { harnessRoot, appRoot } = await createFixture(t);
|
const { harnessRoot, appRoot } = await createFixture(t);
|
||||||
await writeText(path.join(appRoot, ".agent", "project.md"), `## Project Rule\n\n${"x".repeat(31_000)}\n`);
|
await writeText(path.join(appRoot, ".agent", "project.md"), `## Project Rule\n\n${"x".repeat(31_000)}\n`);
|
||||||
|
|||||||
@@ -18,3 +18,19 @@ projects:
|
|||||||
path: __KRI-Common/NotiHub/notihub-server
|
path: __KRI-Common/NotiHub/notihub-server
|
||||||
short-url:
|
short-url:
|
||||||
path: __KRI-Common/ShortUrl
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user