Fix packaged prompt path
Agents / agent (pull_request) Has been skipped
Check / deno (pull_request) Successful in 1m2s

This commit is contained in:
Danny Kim
2026-09-24 05:20:04 +09:00
parent e56ea246bf
commit 4897bdb5e3
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ async function renderPrompt(
ANCHORS_PATH: anchorsPath,
};
const template = await Deno.readTextFile(
new URL("prompt.md", import.meta.url),
new URL("../prompt.md", import.meta.url),
);
return {
prompt: template.replace(
+12
View File
@@ -106,6 +106,18 @@ Deno.test("the source protection script stages immutable action files", async ()
}
});
Deno.test("module-relative runtime assets exist", async () => {
const module = new URL("run.ts", import.meta.url);
const source = await Deno.readTextFile(module);
for (
const match of source.matchAll(/new URL\("([^"]+)", import\.meta\.url\)/g)
) {
const asset = new URL(match[1], module);
const stat = await Deno.stat(asset);
assert(stat.isFile, asset.pathname);
}
});
Deno.test("the repository uses its trusted main action", async () => {
const workflow = await yaml(".gitea/workflows/agents.yml");
const job = mapping(mapping(workflow.jobs, "jobs").agent, "jobs.agent");