From 999a089374f13f7501cc60856f60b17d63c8917f Mon Sep 17 00:00:00 2001 From: Danny Kim Date: Sat, 17 Oct 2026 18:12:47 +0900 Subject: [PATCH] Prune notes that don't apply to bot-agents and keep aliases on direct src subfolders --- .agents/memory/app-containers-and-ci.md | 36 -------------- .agents/memory/app-generated-js-as-ts.md | 20 -------- .agents/memory/app-lint-and-local-rules.md | 41 ---------------- .agents/memory/app-vite-build-output.md | 43 ----------------- ...s.md => bot-agents-migration-decisions.md} | 0 .agents/memory/bot-agents-runtime-no-build.md | 7 ++- .agents/memory/bot-agents-tests-root-only.md | 10 ++-- .../memory/decorators-standard-accessor.md | 44 ----------------- .agents/memory/git-pr-workflow.md | 1 - .agents/memory/icons-memona-style.md | 43 ----------------- .agents/memory/imports-aliases-barrels.md | 23 +++++++-- .agents/memory/lint-overrides-policy.md | 2 +- .agents/memory/lit-analyzer-ts6.md | 41 ---------------- .agents/memory/project-lint-plugin.md | 7 +-- .agents/memory/publishing-ci-only.md | 37 --------------- .agents/memory/tests-layout-vitest.md | 7 ++- .agents/memory/ts-only-files-and-imports.md | 5 +- AGENTS.md | 7 ++- package.json | 2 +- src/testing.ts | 30 ------------ src/testing/index.ts | 47 +++++++++++++++++++ tests/entrypoints.test.ts | 11 ++--- tests/workflow.test.ts | 21 +++++---- 23 files changed, 105 insertions(+), 380 deletions(-) delete mode 100644 .agents/memory/app-containers-and-ci.md delete mode 100644 .agents/memory/app-generated-js-as-ts.md delete mode 100644 .agents/memory/app-lint-and-local-rules.md delete mode 100644 .agents/memory/app-vite-build-output.md rename .agents/memory/{app-repo-specific-decisions.md => bot-agents-migration-decisions.md} (100%) delete mode 100644 .agents/memory/decorators-standard-accessor.md delete mode 100644 .agents/memory/icons-memona-style.md delete mode 100644 .agents/memory/lit-analyzer-ts6.md delete mode 100644 .agents/memory/publishing-ci-only.md delete mode 100644 src/testing.ts create mode 100644 src/testing/index.ts diff --git a/.agents/memory/app-containers-and-ci.md b/.agents/memory/app-containers-and-ci.md deleted file mode 100644 index 58f77cc..0000000 --- a/.agents/memory/app-containers-and-ci.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -description: Containerfiles build the frontend in a node:24-alpine stage with npm ci and vp build; CI uses setup-vp and runs vp check, vp build, vp test (plus lit-check) ---- - -## Containerfiles - -- The frontend build stage is `docker.io/library/node:24-alpine`, replacing - `denoland/deno:alpine`. Vite+ publishes `linux-x64-musl` binaries, so Alpine - works. (`ghcr.io/voidzero-dev/vite-plus` is a glibc alternative that would - need a pinned digest; not used.) -- The stage copies `package.json` and `package-lock.json` first, runs - `npm ci`, then copies the sources and configs and runs `npx vp build`. -- The runtime stage copies the built `js/` and `css/` directories (not single - files) from the node stage. -- No Deno binary, `deno install`, or `deno task` remains in any stage. - -```dockerfile -FROM docker.io/library/node:24-alpine AS frontend -WORKDIR /src/frontend -COPY frontend/package.json frontend/package-lock.json ./ -RUN npm ci -COPY frontend/ ./ -RUN npx vp build -``` - -## CI - -- GitHub repos (temeddix): `.github/workflows`. Capsulizers repos (Gitea): - `.gitea/workflows`. Don't move a repo's CI between hosts. -- Install with `voidzero-dev/setup-vp`, then run `vp check`, `vp build`, and - `vp test`; Lit repos also run `npm run lit-check` - ([[lit-analyzer-ts6]]). -- Repos that ran CI on a self-hosted runner keep it. -- Until `@cunarist/eslint-plugin-*` are on npm, `npm ci` fails in CI. That is - expected and stated in the PR; run `npm install` once they are published - and commit the refreshed lockfile. diff --git a/.agents/memory/app-generated-js-as-ts.md b/.agents/memory/app-generated-js-as-ts.md deleted file mode 100644 index 39b0b4a..0000000 --- a/.agents/memory/app-generated-js-as-ts.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -description: Code that must ship as standalone JS (memona framed_find.js, brain stream-recovery.js) is written as .ts, compiled at build time, and its output gitignored ---- - -Some apps ship plain JavaScript that runs outside the main bundle: memona's -`framed_find.js` and brain's `stream-recovery.js`. Under the TS-only rule -([[ts-only-files-and-imports]]) they are handled like this (2026-10-16): - -- The source is a `.ts` file, linted and type-checked like everything else. -- The `.js` is produced at build time by the existing build (a Vite input or - a build step in `vite.config.ts` or `scripts/`), never committed. -- The output path is gitignored and, if it lands in a linted folder, listed - in `lint.ignorePatterns`; never in `overrides`, never with disable comments. -- Whatever loads the file (Rust `include_str!`, a container `COPY`, an HTML - `