ccfb08f4d5
Follow-up to #20, which was merged before this landed. bot-agents has no `package.json` `imports` aliases (`src/` is flat and everything imports relatively), so no code changes. This records the new rule in the docs: - `.agents/memory/imports-aliases-barrels.md`: aliases may target only a direct subfolder of `src/` (its `index.ts` or a `#x/*` pattern); nothing outside `src/`, not `src/` itself, not deeper folders; such code imports relatively. - `.agents/memory/tests-layout-vitest.md`: `tests/` reach the public entry through a relative import, not a `#plugin` alias. - `.agents/skills/migrate-deno-repo/SKILL.md` and `AGENTS.md`: same rule. `vp check`, `vp test`, and `damem doctor` pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: #21 Reviewed-by: bot <noreply@capsulizers.com> Co-authored-by: Danny Kim <temeddix@gmail.com> Co-committed-by: Danny Kim <temeddix@gmail.com>
23 lines
623 B
TypeScript
23 lines
623 B
TypeScript
import { appendFile, rm } from "node:fs/promises";
|
|
import process from "node:process";
|
|
|
|
import { prepareRuntime } from "./runtime.ts";
|
|
|
|
const env = (name: string): string => {
|
|
const value = process.env[name];
|
|
if (value === undefined || value === "") throw new Error(`${name} is not set`);
|
|
return value;
|
|
};
|
|
|
|
const manifest = await prepareRuntime(
|
|
env("ACTION_PATH"),
|
|
env("RUNNER_TEMP"),
|
|
env("BOT_AGENTS_MASTER_KEY"),
|
|
);
|
|
try {
|
|
await appendFile(env("GITHUB_OUTPUT"), `manifest=${manifest.manifestPath}\n`);
|
|
} catch (error) {
|
|
await rm(manifest.runtimeDir, { recursive: true }).catch(() => {});
|
|
throw error;
|
|
}
|