From 2391a3d094c7830520fbccc8115911938d83a27b Mon Sep 17 00:00:00 2001 From: ToxicCrzay270 <185776014+ToxicCrzay270@users.noreply.github.com> Date: Fri, 15 May 2026 00:58:19 +0200 Subject: [PATCH] Process updated agent kit --- .codex/project.md | 7 ++++++- .gitea/workflows/build.yml | 6 ++++++ AGENTS.md | 6 +++++- README.md | 12 ++++++++++++ docs/agent-handoff.md | 4 ++-- package.json | 5 ++++- 6 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.codex/project.md b/.codex/project.md index 14fcc46..f200ff3 100644 --- a/.codex/project.md +++ b/.codex/project.md @@ -16,6 +16,8 @@ Remote: https://git.wilkensxl.de/Toxic/league-of-legends-gui-overhaul.git ``` +Repository owner and name are derived from this project remote, not from the Agent Kit template repository. + ## Commands Use these commands as the source of truth: @@ -23,12 +25,15 @@ Use these commands as the source of truth: ```bash npm install npm run dev +npm run lint npm run build npm test +npm run audit +npm run release:check git diff --check ``` -There is no separate lint script yet. `npm run build` runs `tsc --noEmit` before the Vite build. There is no audit or release-check script yet. +`npm run lint` runs `tsc --noEmit`. `npm run audit` checks production dependencies at high severity. `npm run release:check` runs lint, tests, and build. Build and test verification should run on the Gitea runner with: diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6889875..a382d3a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -24,6 +24,12 @@ jobs: - name: Install dependencies run: npm ci + - name: Audit production dependencies + run: npm run audit + + - name: Lint and typecheck + run: npm run lint + - name: Run tests run: npm test diff --git a/AGENTS.md b/AGENTS.md index f9d598a..0de5cd1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -13,6 +13,7 @@ League of Legends GUI Overhaul: React/Vite prototype for a modern, dark, MOBA-/f - Do not create a release unless explicitly requested. - Check repository state before editing and before finishing. Preserve unrelated user changes. - Replace applicable placeholders in copied templates. Remove non-applicable placeholder sections instead of leaving fake values. +- Derive repository owner and name from this repository's remote or `GITHUB_REPOSITORY`. Never reuse owner/name values from the Agent Kit template repository. - The current stack is Node, React, Vite, TypeScript, React Router, Vitest, Testing Library, and CSS custom properties. - If `GITEA_TOKEN` is available locally, use it only for read-only Gitea API checks such as private repository metadata, package-read visibility, and Actions run status. Never print, commit, or store the token. - After pushing commits that trigger a Gitea workflow, poll the workflow run until it succeeds or a concrete blocker is known. @@ -26,12 +27,15 @@ Use these commands: ```bash npm install npm run dev +npm run lint npm run build npm test +npm run audit +npm run release:check git diff --check ``` -There is no separate lint script yet. `npm run build` runs `tsc --noEmit` before the Vite build. +`npm run lint` runs `tsc --noEmit`. `npm run release:check` runs lint, tests, and build. For build and test verification, prefer the Gitea runner workflow `.gitea/workflows/build.yml` over relying on this local machine. Local runs are useful for quick checks only when the required tools are already available. diff --git a/README.md b/README.md index 8a4f426..619a8bc 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,24 @@ Build: npm run build ``` +Lint/typecheck: + +```powershell +npm run lint +``` + Run tests: ```powershell npm test ``` +Audit production dependencies: + +```powershell +npm run audit +``` + CI verification runs on the Gitea runner through `.gitea/workflows/build.yml`. ## Project Structure diff --git a/docs/agent-handoff.md b/docs/agent-handoff.md index ed5b81f..e054cbf 100644 --- a/docs/agent-handoff.md +++ b/docs/agent-handoff.md @@ -16,6 +16,8 @@ Codex Agent Repository Kit baseline applied. The project is a React/Vite/TypeScr - Project remote set to `https://git.wilkensxl.de/Toxic/league-of-legends-gui-overhaul.git`. - Documented current npm build and test commands. - Added a Gitea runner build workflow for `npm ci`, `npm test`, `npm run build`, and `dist/` artifact upload. +- Added standard npm `lint`, `audit`, and `release:check` scripts from the Node kit profile. +- Processed Agent Kit update `c0262b9`, including the repository-owner derivation rule. ## Verification @@ -25,12 +27,10 @@ Codex Agent Repository Kit baseline applied. The project is a React/Vite/TypeScr ## Open Questions -- Separate lint, audit, and release-check scripts. - Release packaging and download target. ## Next Steps -- Add separate lint, audit, and release-check scripts if needed. - Watch the Gitea build workflow after pushes and fix runner-only failures in follow-up commits. - Update README, `AGENTS.md`, `.codex/project.md`, and release docs when implementation begins. diff --git a/package.json b/package.json index f12c240..cac8b88 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,12 @@ "type": "module", "scripts": { "dev": "vite", + "lint": "tsc --noEmit", "build": "tsc --noEmit && vite build", "preview": "vite preview", - "test": "vitest run" + "test": "vitest run", + "audit": "npm audit --omit=dev --audit-level=high", + "release:check": "npm run lint && npm test && npm run build" }, "dependencies": { "react": "^18.3.1",