From f0522b72daf1f1ef9d2e3623db63b8edcb4bb3fe Mon Sep 17 00:00:00 2001 From: yunyingk Date: Thu, 13 Aug 2026 14:36:34 +0800 Subject: [PATCH] Refine AGENTS.md for plugin layout --- AGENTS.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index d907d52..acdf9cd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,9 @@ This is a Bun + TypeScript toolkit for the `seal-home` CLI and optional MCP server. Entry points are `src/cli.ts`, `src/server.ts`, and `src/probe.ts`. Shared config, auth, token, and HTTP code is under `src/core/`. Seal-specific API and tool logic is under `src/domains/seal/`. -Tests are colocated as `*.test.ts` files in `src/`. OpenAPI source YAML lives in `openapi/`; bundled output is `dist/openapi.json`. Example enterprise configs are in `enterprises/example.*.json`; real configs must stay untracked. The project skill lives under `.agents/skills/seal-home/`. +The repository doubles as a ZCode plugin: `.zcode-plugin/plugin.json` declares the plugin manifest, `.mcp.json` declares the optional MCP server (disabled by default), and the agent skill lives under `skills/seal-home/`. `.agents/skills/seal-home` is a symlink to `skills/seal-home` so workspace and Codex skill loading keep working. + +Tests are colocated as `*.test.ts` files in `src/`. OpenAPI source YAML lives in `openapi/`; bundled output is `dist/openapi.json`. Example enterprise configs are in `enterprises/example.*.json`; real configs must stay untracked. ## Build, Test, and Development Commands @@ -16,6 +18,8 @@ Tests are colocated as `*.test.ts` files in `src/`. OpenAPI source YAML lives in - `bun run check`: type-check with `tsc --noEmit`. - `bun test`: run all colocated Bun tests. - `bun run openapi:bundle`: rebuild `dist/openapi.json`. +- `bun run build:binary`: compile the standalone `seal-home` binary to `dist/bin/seal-home` (gitignored). +- `bun run build:plugin`: bundle the MCP server to `dist/mcp/server.js` (tracked, used by `.mcp.json`). ## Coding Style & Naming Conventions