apexyard
ApexYard plugins: ORBIT planning and fork-only add-ons for an ApexYard ops fork.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/me2resh/apexyard with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/me2resh/apexyard'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/me2resh--apexyard)HTML
<a href="/listings/me2resh--apexyard"><img src="/api/listings/me2resh--apexyard/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
ApexYard governs a **portfolio of repos** as one organisation. Fork and clone the repository. Use that fork as your ops repo. Register each project you want to manage. The fork is the ops repo, so no nested installation is needed.
> **Using opencode, pi, or Codex?** Steps 1–3 use plain `git` and `gh`. Install > your tool's adapter before steps 4–6. Each step also gives a manual file > option. The enforced rules are the same in both paths.
1. Star + Fork on GitHub
Visit [`github.com/me2resh/apexyard`](https://github.com/me2resh/apexyard). Star it, then fork it into your organisation. Keep the name `apexyard`, or use a name such as `your-org/ops`.
2. Clone your fork locally
gh repo clone your-org/apexyard cd apexyard
Or with plain git:
git clone https://github.com/your-org/apexyard.git cd apexyard
3. Add `upstream` for future updates
git remote add upstream https://github.com/me2resh/apexyard.git
Later, run **`/update`** to bring upstream changes into your fork. The skill previews the diff, uses a sync branch, and guides any version migrations.
4. Configure the framework — run `/setup`
Run **`/setup`** in Claude Code. The skill asks about your company, team, technology, and quality bar. It shows the proposed defaults before it writes the configuration.
/setup
Your real config lives in the **gitignored** `onboarding.yaml`. It stays local. `/setup` copies the tracked `onboarding.example.yaml` placeholder and fills it in. A commit-time guard blocks the real file if you try to add it.
No `/setup` on your tool? Copy the example and fill it in by hand: `cp onboarding.example.yaml onboarding.yaml`. The gates read the file, not the skill.
5. Register your projects — run `/handover`
Projects join the portfolio through a skill. For each repo you want to manage:
/handover <repo-url-or-local-path>
**`/handover`** clones the repo, scores five harnessability dimensions, seeds the project docs, and **registers the repo in `apexyard.projects.yaml`**. It creates the registry on first use. `/setup` can register your first project.
The registry it maintains looks like this — you rarely touch it by hand:
version: 1
projects:
- name: example-app
repo: your-org/example-app
docs: projects/example-app
status: activeRegister a single repo too. The portfolio skills (`/projects`, `/inbox`, and `/status`) read the same registry. No `/handover` on your tool? Copy `apexyard.projects.yaml.example` and add the repos by hand.
6. Start working
/projects # list managed projects and status /inbox # show PRs, issues, and comments that need attention /status # show the git and CI state for each project /decide # record a technical decision
Hooks run on `git` and `gh` commands. Portfolio skills read the registry. Run `/code-review <pr>` to invoke the Code Reviewer agent.
Full setup guide with directory layout, daily workflow, and FAQ: [`docs/multi-project.md`](docs/multi-project.md).
Keeping a fork current — upgrade in place, when to re-fork instead, and how to preserve your portfolio data either way: [`docs/upgrading.md`](docs/upgrading.md).
Optional: status band above the prompt
The `apexyard-status` plugin draws one line above the Claude Code prompt. The line shows the active ticket, the PRs that wait for your `/approve-merge`, and the reviewer lock of the session. The plugin only reads data. It checks the open PRs with one cached, read-only `gh pr list` call for each repo. It does not replace a hook or a gate.
`/setup` asks if you want the band. If you skipped that question, run these two commands from the ops-fork root:
claude plugin marketplace add ./ --scope local claude plugin install apexyard-status@apexyard --scope local
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
.claude-plugin/marketplace.json · Manifest · 33 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- {
- "name": "apexyard",
- "description": "ApexYard plugins: ORBIT planning and fork-only add-ons for an ApexYard ops fork.",
- "owner": {
- "name": "me2resh",
- "url": "https://github.com/me2resh"
- },
- "plugins": [
- {
- "name": "orbit",
- "source": {
- "source": "github",
- "repo": "me2resh/orbit-spec"
- },
- "description": "ORBIT planning lifecycle: plan, snapshot, reconcile, slice, progress"
- },
- {
- "name": "apexyard-status",
- "source": "./plugins/apexyard-status",
- "description": "Fork-only, display-only status band above the prompt: active ticket, PRs waiting for /approve-merge, reviewer lock"
- },
- {
- "name": "apexyard-explainer",
- "source": "./plugins/apexyard-explainer",
- "description": "Display-only pane that explains each tool call in one plain sentence"
- },
- {
- "name": "apexyard-bootcamp",
- "source": "./plugins/apexyard-bootcamp",
- "description": "Display-only guided bootcamp pane with nine modules and session checkpoints"
- }
- ]
- }
README.md · README · 350 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.
- <p align="center">
- <a href="https://apexyard.ai"><img src="https://apexyard.ai/brand/apexyard-avatar-512.png" alt="ApexYard" width="88"></a>
- </p>
- <h1 align="center">ApexYard</h1>
- <p align="center">
- <strong>Take agent-built code the last mile — safely to production.</strong>
- </p>
- <p align="center">
- <a href="https://github.com/me2resh/apexyard/releases"><img src="https://img.shields.io/github/v/release/me2resh/apexyard?color=2F6DF6&label=release" alt="Release"></a>
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
- <a href="https://claude.com/claude-code"><img src="https://img.shields.io/badge/built%20for-Claude%20Code-8A63D2" alt="Built for Claude Code"></a>
- <a href="https://apexyard.ai"><img src="https://img.shields.io/badge/site-apexyard.ai-2F6DF6" alt="Site"></a>
- <a href="https://github.com/me2resh/apexyard/stargazers"><img src="https://img.shields.io/github/stars/me2resh/apexyard?style=social" alt="Stars"></a>
- </p>
- ## AI can build quickly. Shipping safely needs a system.
- AI can produce a working prototype in a weekend. Teams still need a way to
- track decisions, review changes, run checks, and approve a release.
- **ApexYard provides that system.** Every change starts with a ticket. An
- independent reviewer checks the change. A merge gate stays closed until a
- named human approves the exact commit.
- ApexYard is a multi-project **ops repo**. You fork it, register your projects,
- and manage the portfolio from one place. Shared rules, project records, and
- shell hooks keep the workflow consistent.
- Claude Code is the default driver. The rules, hooks, and templates are plain
- Markdown and shell, so you can use another coding tool through an adapter.
- There is no service to run and no hosted lock-in.
- The workflow has been used with TypeScript and AWS Lambda backends, Next.js
- apps, Chrome extensions, and native Swift macOS apps.
- ## What makes it different
- | Area | Without ApexYard | With ApexYard |
- |---|---|---|
- | Code review | Ad-hoc prompts | Rex reviews every pull request. |
- | Technical decisions | Lost in chat | Agent Decision Records preserve them. |
- | Quality gates | Manual memory | Shell hooks block unsafe actions. |
- | Merge approval | Informal “LGTM” | Rex and a named human approve the exact commit. |
- | Database migrations | High-risk edits | A migration ticket and rollback plan are required. |
- | Architecture | Scattered notes | C4 templates and the `/c4` skill create a shared model. |
- | Portfolio view | Several GitHub tabs | `/inbox`, `/status`, and `/tasks` read one registry. |
- | Upstream updates | Easy to forget | `/update` reports drift and guides the sync. |
- | Roles | Repeated context | Role files activate from clear triggers. |
- | Onboarding | Manual setup | `/setup` collects the required configuration. |
- ## What's inside
- ApexYard is a set of plain-text files. Claude Code reads them from the repo
- root. No runtime or service is required.
- - **20 roles** across 6 departments (engineering, product, design, security, data, architecture) that activate on triggers
- - **60 shell hooks** that mechanically enforce the SDLC — ticket-first edits, a two-marker merge gate, migration gates, secrets scanning, and more
- - **69 slash-command skills** — from `/setup`, `/handover`, and `/scaffold` to `/decide`, `/code-review`, `/migration`, and `/launch-check`
- - **23 sub-agents** — Rex (code review), Hakim (security), Tariq (design review), plus the department personas
- - **22 rule files**, workflow docs, and document templates (PRD, tech design, ADR, AgDR, C4 diagrams)
- **See [`docs/whats-inside.md`](docs/whats-inside.md) for the full directory and component list.**
- > **Marketing site:** the site that was previously bundled here has moved to its own repo ([me2resh/apexyard-site](https://github.com/me2resh/apexyard-site)) and is deployed independently at [apexyard.ai](https://apexyard.ai).
- >
- > **Built for Claude Code first.** opencode, pi, and Codex use the same rules through small adapters. Cursor loads `.claude/` natively in the IDE. See [Using another AI coding tool?](#using-another-ai-coding-tool).
- >
- > **For AI coding agents:** `AGENTS.md` is the universal entry document for tools that do not load `CLAUDE.md`. See [`docs/harnesses/pi.md`](docs/harnesses/pi.md).
- ## Quick Start — fork and go
- ApexYard governs a **portfolio of repos** as one organisation. Fork and clone
- the repository. Use that fork as your ops repo. Register each project you want
- to manage. The fork is the ops repo, so no nested installation is needed.
- > **Using opencode, pi, or Codex?** Steps 1–3 use plain `git` and `gh`. Install
- > your tool's adapter before steps 4–6. Each step also gives a manual file
- > option. The enforced rules are the same in both paths.
- ### 1. Star + Fork on GitHub
- Visit [`github.com/me2resh/apexyard`](https://github.com/me2resh/apexyard).
- Star it, then fork it into your organisation. Keep the name `apexyard`, or use
- a name such as `your-org/ops`.
- ### 2. Clone your fork locally
- ```bash
- gh repo clone your-org/apexyard
- cd apexyard
- ```
- Or with plain git:
- ```bash
- git clone https://github.com/your-org/apexyard.git
- cd apexyard
- ```
- ### 3. Add `upstream` for future updates
- ```bash
- git remote add upstream https://github.com/me2resh/apexyard.git
- ```
- Later, run **`/update`** to bring upstream changes into your fork. The skill
- previews the diff, uses a sync branch, and guides any version migrations.
- ### 4. Configure the framework — run `/setup`
- Run **`/setup`** in Claude Code. The skill asks about your company, team,
- technology, and quality bar. It shows the proposed defaults before it writes
- the configuration.
- ```text
- /setup
- ```
- Your real config lives in the **gitignored** `onboarding.yaml`. It stays local.
- `/setup` copies the tracked `onboarding.example.yaml` placeholder and fills it
- in. A commit-time guard blocks the real file if you try to add it.
- No `/setup` on your tool? Copy the example and fill it in by hand:
- `cp onboarding.example.yaml onboarding.yaml`. The gates read the file, not the
- skill.
- ### 5. Register your projects — run `/handover`
- Projects join the portfolio through a skill. For each repo you want to manage:
- ```text
- /handover <repo-url-or-local-path>
- ```
- **`/handover`** clones the repo, scores five harnessability dimensions, seeds
- the project docs, and **registers the repo in `apexyard.projects.yaml`**. It
- creates the registry on first use. `/setup` can register your first project.
- The registry it maintains looks like this — you rarely touch it by hand:
- ```yaml
- version: 1
- projects:
- - name: example-app
- repo: your-org/example-app
- docs: projects/example-app
- status: active
- ```
- Register a single repo too. The portfolio skills (`/projects`, `/inbox`, and
- `/status`) read the same registry. No `/handover` on your tool? Copy
- `apexyard.projects.yaml.example` and add the repos by hand.
- ### 6. Start working
- ```
- /projects # list managed projects and status
- /inbox # show PRs, issues, and comments that need attention
- /status # show the git and CI state for each project
- /decide # record a technical decision
- ```
- Hooks run on `git` and `gh` commands. Portfolio skills read the registry. Run
- `/code-review <pr>` to invoke the Code Reviewer agent.
- Full setup guide with directory layout, daily workflow, and FAQ: [`docs/multi-project.md`](docs/multi-project.md).
- Keeping a fork current — upgrade in place, when to re-fork instead, and how to preserve your portfolio data either way: [`docs/upgrading.md`](docs/upgrading.md).
- ### Optional: status band above the prompt
- The `apexyard-status` plugin draws one line above the Claude Code prompt. The line shows the active ticket, the PRs that wait for your `/approve-merge`, and the reviewer lock of the session. The plugin only reads data. It checks the open PRs with one cached, read-only `gh pr list` call for each repo. It does not replace a hook or a gate.
- `/setup` asks if you want the band. If you skipped that question, run these two commands from the ops-fork root:
- ```bash
- claude plugin marketplace add ./ --scope local
- claude plugin install apexyard-status@apexyard --scope local
- ```
- The band is on only for you, on this machine. After `/update`, run `/reload-plugins` to load the new version. Details and settings: [`plugins/apexyard-status/README.md`](plugins/apexyard-status/README.md).
- ## Using another AI coding tool?
- **ApexYard was built for Claude Code.** Its slash commands are native Claude
- Code skills. The enforcement layer is plain Bash, so other tools can use the
- same rules through an adapter.
- As of **2026-07-09**, opencode, pi, and Codex have passed real enforcement
- checks. Each tool needs one setting so its commands reach the rules. Cursor
- IDE native exec was observed later (2026-09-16) when third-party configs are
- on. You can always use the
- manual configuration files from Quick Start when a skill is unavailable.
- | Tool | Enforces your rules? | Setup | Good to know |
- |------|----------------------|-------|--------------|
- | **Claude Code** | ✅ **Yes — natively.** Built in; the rules fire on every command. | Nothing to install — `/setup` and you're done. | On Windows, use Git Bash or WSL (the rules are bash). |
- | **opencode** | ✅ **Yes — proven.** A real agent's `git add -A` was blocked by the same rule. | `bash bin/install-opencode-adapter.sh` | Run opencode with `--auto` so the agent's command reaches the rule. |
- | **pi** | ✅ **Yes — proven.** Same, in a real pi session. | `bash bin/install-pi-adapter.sh` | Run pi with `-a` (auto-approve). pi is deliberately bare-bones — ApexYard is the governance it leaves to you. |
- | **Codex** | ✅ **Yes — proven.** Same, in a real Codex session. | `bash bin/sync-codex-adapter.sh` | Codex has to trust the rules once — `/hooks`, a one-off flag, or a user-level install. Details: [`docs/codex-adapter.md`](docs/codex-adapter.md). |
- | **Cursor** | ✅ **Yes — native in the IDE.** Cursor loads `.claude/` when third-party configs are on. A real Write call was refused by the ticket-first rule (2026-09-16). | Enable third-party configs. Then `bash bin/install-cursor-adapter.sh` for the session-pin overlay. | IDE only. The command-line `cursor-agent` ignores hooks. A leftover full adapter can lock the session. |
- *Under the hood:* your rules stay one set of portable bash scripts, and every tool reads the **same** ones — never a separate copy that can drift out of sync. A daily, credentialed [Conformance CI](docs/conformance-ci.md) job re-verifies opencode, pi, and Codex. Cursor has no headless path in that matrix. Full per-tool setup, limits, and how to add a new tool → **[`docs/harnesses/README.md`](docs/harnesses/README.md)**.
- ## Roles, workflows & templates
- ApexYard ships **20 roles** across 6 departments that activate on triggers, a full **SDLC** (Planning → Design → Build → Review → QA → Deploy → Monitor) with a dedicated migration sub-workflow, and reusable **document templates** (PRD, technical design, ADR, AgDR, migration AgDR, C4 diagrams).
- The full role roster, workflow detail, and template catalogue live in **[`docs/whats-inside.md`](docs/whats-inside.md)**. The canonical entry point Claude Code reads is [`CLAUDE.md`](CLAUDE.md).
- ## Show you're governed by ApexYard
- Running your repo under ApexYard? Add a badge to its README. Every adopter repo that carries one is a backlink and a bit of social proof — and `/handover` will offer to drop it into the repos it onboards.
- **Governed by** — for a repo managed under an ApexYard ops fork:
- ```markdown
- [](https://github.com/me2resh/apexyard)
- ```
- [](https://github.com/me2resh/apexyard)
- **Built with** — for a project built out through the ApexYard workflow:
- ```markdown
- [](https://github.com/me2resh/apexyard)
- ```
- [](https://github.com/me2resh/apexyard)
- ## Customization
- ApexYard is designed to be customized. Every role, workflow, and template can be modified to fit your team:
- 1. **Add roles**: Create new `.md` files in `roles/your-department/`
- 2. **Modify workflows**: Edit files in `workflows/`
- 3. **Add templates**: Drop new templates in `templates/`
- 4. **Override anything**: The stack is just markdown files -- edit freely
- ## Contributing
- Read [CONTRIBUTING.md](CONTRIBUTING.md) for the fork, branch, PR, and review flow.
- Open a Bug report or Feature request issue.
- The [Code of Conduct](CODE_OF_CONDUCT.md) applies to all participation.
- Report security issues in [SECURITY.md](SECURITY.md). Do not open a public issue for those.
- ## Contributors
- Thanks to everyone who contributes code, documentation, bug reports, ideas, and feedback.
- <p>
- <a href="https://github.com/me2resh" title="me2resh"><img src="https://github.com/me2resh.png?size=100" width="64" height="64" alt="me2resh"></a>
- <a href="https://github.com/AbdElrahmaN31" title="AbdElrahmaN31"><img src="https://github.com/AbdElrahmaN31.png?size=100" width="64" height="64" alt="AbdElrahmaN31"></a>
- <a href="https://github.com/HishamM1" title="HishamM1"><img src="https://github.com/HishamM1.png?size=100" width="64" height="64" alt="HishamM1"></a>
- <a href="https://github.com/tifa64" title="tifa64"><img src="https://github.com/tifa64.png?size=100" width="64" height="64" alt="tifa64"></a>
- <a href="https://github.com/hossam-96" title="hossam-96"><img src="https://github.com/hossam-96.png?size=100" width="64" height="64" alt="hossam-96"></a>
- <a href="https://github.com/aniketshukla1" title="aniketshukla1"><img src="https://github.com/aniketshukla1.png?size=100" width="64" height="64" alt="aniketshukla1"></a>
- <a href="https://github.com/ahmedashraffcih" title="ahmedashraffcih"><img src="https://github.com/ahmedashraffcih.png?size=100" width="64" height="64" alt="ahmedashraffcih"></a>
- <a href="https://github.com/ahmedk20" title="ahmedk20"><img src="https://github.com/ahmedk20.png?size=100" width="64" height="64" alt="ahmedk20"></a>
- <a href="https://github.com/moussaws" title="moussaws"><img src="https://github.com/moussaws.png?size=100" width="64" height="64" alt="moussaws"></a>
- <a href="https://github.com/a-abdellatif98" title="a-abdellatif98"><img src="https://github.com/a-abdellatif98.png?size=100" width="64" height="64" alt="a-abdellatif98"></a>
- <a href="https://github.com/AhmedTheGeek" title="AhmedTheGeek"><img src="https://github.com/AhmedTheGeek.png?size=100" width="64" height="64" alt="AhmedTheGeek"></a>
- <a href="https://github.com/MohammedEl-sayedAhmed" title="MohammedEl-sayedAhmed"><img src="https://github.com/MohammedEl-sayedAhmed.png?size=100" width="64" height="64" alt="MohammedEl-sayedAhmed"></a>
- <a href="https://github.com/NagyWesley" title="NagyWesley"><img src="https://github.com/NagyWesley.png?size=100" width="64" height="64" alt="NagyWesley"></a>
- </p>
- ### Issue contributors
- Thank you to everyone who opened issues, including bug reports, feature requests, questions, and documentation feedback.
- <p>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aa-abdellatif98" title="a-abdellatif98"><img src="https://github.com/a-abdellatif98.png?size=100" width="64" height="64" alt="a-abdellatif98"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aa-elnemr" title="a-elnemr"><img src="https://github.com/a-elnemr.png?size=100" width="64" height="64" alt="a-elnemr"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aabbaseya" title="abbaseya"><img src="https://github.com/abbaseya.png?size=100" width="64" height="64" alt="abbaseya"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AAbdelrahman-Shahda" title="Abdelrahman-Shahda"><img src="https://github.com/Abdelrahman-Shahda.png?size=100" width="64" height="64" alt="Abdelrahman-Shahda"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AAbdElrahmaN31" title="AbdElrahmaN31"><img src="https://github.com/AbdElrahmaN31.png?size=100" width="64" height="64" alt="AbdElrahmaN31"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aaelnemr" title="aelnemr"><img src="https://github.com/aelnemr.png?size=100" width="64" height="64" alt="aelnemr"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aahmedashraffcih" title="ahmedashraffcih"><img src="https://github.com/ahmedashraffcih.png?size=100" width="64" height="64" alt="ahmedashraffcih"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aahmedgemi" title="ahmedgemi"><img src="https://github.com/ahmedgemi.png?size=100" width="64" height="64" alt="ahmedgemi"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AAhmedTheGeek" title="AhmedTheGeek"><img src="https://github.com/AhmedTheGeek.png?size=100" width="64" height="64" alt="AhmedTheGeek"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aahmedwael216" title="ahmedwael216"><img src="https://github.com/ahmedwael216.png?size=100" width="64" height="64" alt="ahmedwael216"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aalalm3i" title="alalm3i"><img src="https://github.com/alalm3i.png?size=100" width="64" height="64" alt="alalm3i"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aasami-me" title="asami-me"><img src="https://github.com/asami-me.png?size=100" width="64" height="64" alt="asami-me"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aatlas-apex" title="atlas-apex"><img src="https://github.com/atlas-apex.png?size=100" width="64" height="64" alt="atlas-apex"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aaureyia" title="aureyia"><img src="https://github.com/aureyia.png?size=100" width="64" height="64" alt="aureyia"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Abatout" title="batout"><img src="https://github.com/batout.png?size=100" width="64" height="64" alt="batout"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Abitwhispererrr" title="bitwhispererrr"><img src="https://github.com/bitwhispererrr.png?size=100" width="64" height="64" alt="bitwhispererrr"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aborzoj" title="borzoj"><img src="https://github.com/borzoj.png?size=100" width="64" height="64" alt="borzoj"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3ADr-kersho" title="Dr-kersho"><img src="https://github.com/Dr-kersho.png?size=100" width="64" height="64" alt="Dr-kersho"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Adrmas" title="drmas"><img src="https://github.com/drmas.png?size=100" width="64" height="64" alt="drmas"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aeibrahim95" title="eibrahim95"><img src="https://github.com/eibrahim95.png?size=100" width="64" height="64" alt="eibrahim95"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aengnaruto" title="engnaruto"><img src="https://github.com/engnaruto.png?size=100" width="64" height="64" alt="engnaruto"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Ahamoda-dev" title="hamoda-dev"><img src="https://github.com/hamoda-dev.png?size=100" width="64" height="64" alt="hamoda-dev"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Ahazemahmedx0" title="hazemahmedx0"><img src="https://github.com/hazemahmedx0.png?size=100" width="64" height="64" alt="hazemahmedx0"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AHC12026" title="HC12026"><img src="https://github.com/HC12026.png?size=100" width="64" height="64" alt="HC12026"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AHishamM1" title="HishamM1"><img src="https://github.com/HishamM1.png?size=100" width="64" height="64" alt="HishamM1"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AHOSS11H" title="HOSS11H"><img src="https://github.com/HOSS11H.png?size=100" width="64" height="64" alt="HOSS11H"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Ahossam-96" title="hossam-96"><img src="https://github.com/hossam-96.png?size=100" width="64" height="64" alt="hossam-96"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aibrahim-gad" title="ibrahim-gad"><img src="https://github.com/ibrahim-gad.png?size=100" width="64" height="64" alt="ibrahim-gad"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Ajafarguzman666-ops" title="jafarguzman666-ops"><img src="https://github.com/jafarguzman666-ops.png?size=100" width="64" height="64" alt="jafarguzman666-ops"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AKarimEbrahemAbdelaziz" title="KarimEbrahemAbdelaziz"><img src="https://github.com/KarimEbrahemAbdelaziz.png?size=100" width="64" height="64" alt="KarimEbrahemAbdelaziz"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Akhaledmedra" title="khaledmedra"><img src="https://github.com/khaledmedra.png?size=100" width="64" height="64" alt="khaledmedra"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amabdelaziz77" title="mabdelaziz77"><img src="https://github.com/mabdelaziz77.png?size=100" width="64" height="64" alt="mabdelaziz77"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amahmoudsobhy74" title="mahmoudsobhy74"><img src="https://github.com/mahmoudsobhy74.png?size=100" width="64" height="64" alt="mahmoudsobhy74"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AManito2z" title="Manito2z"><img src="https://github.com/Manito2z.png?size=100" width="64" height="64" alt="Manito2z"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AMedNewton" title="MedNewton"><img src="https://github.com/MedNewton.png?size=100" width="64" height="64" alt="MedNewton"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AMeDoTarek73" title="MeDoTarek73"><img src="https://github.com/MeDoTarek73.png?size=100" width="64" height="64" alt="MeDoTarek73"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AMina4lfy" title="Mina4lfy"><img src="https://github.com/Mina4lfy.png?size=100" width="64" height="64" alt="Mina4lfy"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AmohamedELamine" title="mohamedELamine"><img src="https://github.com/mohamedELamine.png?size=100" width="64" height="64" alt="mohamedELamine"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AMohammedEl-sayedAhmed" title="MohammedEl-sayedAhmed"><img src="https://github.com/MohammedEl-sayedAhmed.png?size=100" width="64" height="64" alt="MohammedEl-sayedAhmed"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amosta7il" title="mosta7il"><img src="https://github.com/mosta7il.png?size=100" width="64" height="64" alt="mosta7il"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amostiwheelietravel" title="mostiwheelietravel"><img src="https://github.com/mostiwheelietravel.png?size=100" width="64" height="64" alt="mostiwheelietravel"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amoussaws" title="moussaws"><img src="https://github.com/moussaws.png?size=100" width="64" height="64" alt="moussaws"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Amuhammadattia95" title="muhammadattia95"><img src="https://github.com/muhammadattia95.png?size=100" width="64" height="64" alt="muhammadattia95"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3ANagyWesley" title="NagyWesley"><img src="https://github.com/NagyWesley.png?size=100" width="64" height="64" alt="NagyWesley"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Anickyreinert" title="nickyreinert"><img src="https://github.com/nickyreinert.png?size=100" width="64" height="64" alt="nickyreinert"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AnLoops" title="nLoops"><img src="https://github.com/nLoops.png?size=100" width="64" height="64" alt="nLoops"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AOmar-Elhorbity" title="Omar-Elhorbity"><img src="https://github.com/Omar-Elhorbity.png?size=100" width="64" height="64" alt="Omar-Elhorbity"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AOmarEhab007" title="OmarEhab007"><img src="https://github.com/OmarEhab007.png?size=100" width="64" height="64" alt="OmarEhab007"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AOmarElaraby26" title="OmarElaraby26"><img src="https://github.com/OmarElaraby26.png?size=100" width="64" height="64" alt="OmarElaraby26"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Aosama-abu-baker" title="osama-abu-baker"><img src="https://github.com/osama-abu-baker.png?size=100" width="64" height="64" alt="osama-abu-baker"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AOsamaAlSabry" title="OsamaAlSabry"><img src="https://github.com/OsamaAlSabry.png?size=100" width="64" height="64" alt="OsamaAlSabry"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Apsmend" title="psmend"><img src="https://github.com/psmend.png?size=100" width="64" height="64" alt="psmend"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Arafik-wahid-cubeish" title="rafik-wahid-cubeish"><img src="https://github.com/rafik-wahid-cubeish.png?size=100" width="64" height="64" alt="rafik-wahid-cubeish"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3ARef34t" title="Ref34t"><img src="https://github.com/Ref34t.png?size=100" width="64" height="64" alt="Ref34t"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Asamahali" title="samahali"><img src="https://github.com/samahali.png?size=100" width="64" height="64" alt="samahali"></a>
- <a href="https://github.com/SecFathy" title="SecFathy"><img src="https://github.com/SecFathy.png?size=100" width="64" height="64" alt="SecFathy"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Asts1078" title="sts1078"><img src="https://github.com/sts1078.png?size=100" width="64" height="64" alt="sts1078"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Asudanese" title="sudanese"><img src="https://github.com/sudanese.png?size=100" width="64" height="64" alt="sudanese"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Atifa64" title="tifa64"><img src="https://github.com/tifa64.png?size=100" width="64" height="64" alt="tifa64"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Avjcv26" title="vjcv26"><img src="https://github.com/vjcv26.png?size=100" width="64" height="64" alt="vjcv26"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Ayehiagamalx" title="yehiagamalx"><img src="https://github.com/yehiagamalx.png?size=100" width="64" height="64" alt="yehiagamalx"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AYOoOUNiieeSS" title="YOoOUNiieeSS"><img src="https://github.com/YOoOUNiieeSS.png?size=100" width="64" height="64" alt="YOoOUNiieeSS"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3Azeyadsleem" title="zeyadsleem"><img src="https://github.com/zeyadsleem.png?size=100" width="64" height="64" alt="zeyadsleem"></a>
- <a href="https://github.com/me2resh/apexyard/issues?q=is%3Aissue%20author%3AZiadHosny" title="ZiadHosny"><img src="https://github.com/ZiadHosny.png?size=100" width="64" height="64" alt="ZiadHosny"></a>
- </p>
- When updating these credits, include new issue authors as well as pull-request contributors.
- Use public GitHub handles and links. Describe each contribution accurately.
- ## License
- MIT License. See [LICENSE](LICENSE) for details.
- ---
- Built with real-world experience shipping software with Claude Code.
plugins/apexyard-status/hooks/band.test.ts · Bundled script · 280 lines · 1 finding marked
- import { describe, expect, test } from 'claude-code/testing'
- import {
- candidatesFrom,
- classify,
- countBuilds,
- findOpsRoot,
- ghArgv,
- lockLabel,
- lockLabels,
- markerRef,
- markerSha,
- newMarkers,
- openPrsFor,
- parseOpenPrs,
- parentDir,
- reReviewText,
- rexMarkers,
- safeSessionId,
- ticketLabel,
- validRepo,
- waitingText,
- } from './band'
- import type { Candidate, GhCache, GhRun, OpenPrs } from './band'
- import { readSettings, RESOLVE_TICKET } from './register'
- const DAY = 24 * 60 * 60 * 1000
- describe('review markers (AgDR-0060 names)', () => {
- test('a marker name maps to owner/repo#N', async () => {
- expect(markerRef('me2resh__apexyard__1541-rex.approved')).toBe('me2resh/apexyard#1541')
- expect(markerRef('acme__my_repo.js__7-ceo.approved')).toBe('acme/my_repo.js#7')
- })
- test('a bare-number marker is not an AgDR-0060 name', async () => {
- expect(markerRef('429-rex.approved')).toBe(null)
- })
- test('candidates = recent Rex marker and no CEO marker', async () => {
- const now = 10 * DAY
- const entries = [
- { name: 'me2resh__apexyard__11-rex.approved', mtimeMs: now - 60_000 },
- { name: 'me2resh__apexyard__11-ceo.approved', mtimeMs: now - 30_000 },
- { name: 'acme__infra__176-rex.approved', mtimeMs: now - 60_000 },
- { name: 'acme__infra__20-rex.approved', mtimeMs: now - 5 * DAY },
- { name: '429-rex.approved', mtimeMs: now },
- { name: 'acme__infra__30-architecture.approved', mtimeMs: now },
- ]
- const refs = (days: number) => candidatesFrom(entries, now, days).map(c => c.ref)
- expect(refs(3)).toEqual(['acme/infra#176'])
- expect(refs(7)).toEqual(['acme/infra#176', 'acme/infra#20'])
- expect(candidatesFrom(entries, now, 3)[0]).toEqual({
- name: 'acme__infra__176-rex.approved',
- ref: 'acme/infra#176',
- repo: 'acme/infra',
- number: 176,
- })
- })
- test('the first refresh never toasts; later ones toast only new Rex markers', async () => {
- const first = rexMarkers([{ name: 'a__b__1-rex.approved', mtimeMs: 0 }])
- expect(newMarkers(null, first)).toEqual([])
- const second = rexMarkers([
- { name: 'a__b__1-rex.approved', mtimeMs: 0 },
- { name: 'a__b__2-rex.approved', mtimeMs: 0 },
- { name: 'a__b__2-ceo.approved', mtimeMs: 0 },
- ])
- expect(newMarkers(first, second)).toEqual(['a__b__2-rex.approved'])
- })
- test('waiting text lists up to three references', async () => {
- expect(waitingText([])).toBe('nothing waiting for /approve-merge')
- expect(waitingText(['a/b#1', 'a/b#2', 'a/b#3', 'a/b#4'])).toBe(
- '4 waiting for your /approve-merge: a/b#1, a/b#2, a/b#3 +1',
- )
- expect(waitingText(['a/b#1'], true)).toBe('1 waiting for your /approve-merge (offline): a/b#1')
- expect(waitingText([], true)).toBe('nothing waiting for /approve-merge (offline)')
- })
- test('re-review text', async () => {
- expect(reReviewText([])).toBe(null)
- expect(reReviewText(['a/b#1'])).toBe('1 needs re-review: a/b#1')
- expect(reReviewText(['a/b#1', 'a/b#2'])).toBe('2 need re-review: a/b#1, a/b#2')
- })
- test('the marker SHA is the bare reviewed commit', async () => {
- expect(markerSha('ABCDEF1234567\n')).toBe('abcdef1234567')
- expect(markerSha('')).toBe(null)
- expect(markerSha('approved by rex')).toBe(null)
- expect(markerSha(null)).toBe(null)
- })
- })
- const SHA_A = 'a'.repeat(40)
- const SHA_B = 'b'.repeat(40)
- const cand = (repo: string, n: number): Candidate => ({
- name: `${repo.replace('/', '__')}__${n}-rex.approved`,
- ref: `${repo}#${n}`,
- repo,
- number: n,
- })
- describe('open-PR check (cached, read only)', () => {
- test('open with the reviewed head -> waiting; another head -> re-review; not open -> dropped', async () => {
- const c1 = cand('me2resh/apexyard', 1)
- const c2 = cand('me2resh/apexyard', 2)
- const c3 = cand('me2resh/apexyard', 3)
- const shas = new Map([[c1.name, SHA_A], [c2.name, SHA_A], [c3.name, SHA_A]])
- const open = new Map<string, OpenPrs | null>([['me2resh/apexyard', new Map([[1, SHA_A], [2, SHA_B]])]])
- expect(classify([c1, c2, c3], shas, open)).toEqual({
- waiting: ['me2resh/apexyard#1'],
- reReview: ['me2resh/apexyard#2'],
- offline: false,
- })
- })
- test('a short SHA in the marker matches the full head', async () => {
- const c = cand('a/b', 5)
- const q = classify([c], new Map([[c.name, 'aaaaaaa']]), new Map([['a/b', new Map([[5, SHA_A]])]]))
- expect(q.waiting).toEqual(['a/b#5'])
- })
- test('an open PR whose marker has no SHA needs re-review', async () => {
- const c = cand('a/b', 6)
- const q = classify([c], new Map([[c.name, null]]), new Map([['a/b', new Map([[6, SHA_A]])]]))
- expect(q.reReview).toEqual(['a/b#6'])
- })
- test('a repo with a failed lookup falls back to the markers and is offline', async () => {
- const c1 = cand('a/b', 1)
- const c2 = cand('c/d', 2)
- const open = new Map<string, OpenPrs | null>([['a/b', null], ['c/d', new Map()]])
- expect(classify([c1, c2], new Map(), open)).toEqual({ waiting: ['a/b#1'], reReview: [], offline: true })
- })
- test('the gh command is read only, an argument array, and needs a valid repo', async () => {
- expect(ghArgv('me2resh/apexyard')).toEqual([
- 'gh', 'pr', 'list', '--repo', 'me2resh/apexyard', '--state', 'open',
- '--json', 'number,headRefOid', '--limit', '200',
- ])
- expect(validRepo('me2resh/apexyard')).toBe(true)
- expect(validRepo('acme/my_repo.js')).toBe(true)
- expect(validRepo('a/b; rm -rf /')).toBe(false)
- Note: Quoted as data in code: Runs `rm -rf` against a root or home-directory path
- Line 143 on GitHub
- expect(validRepo('../b')).toBe(false)
- expect(validRepo('a/b/c')).toBe(false)
- expect(validRepo('-R/x')).toBe(false)
- expect(validRepo('me2resh/.github')).toBe(true)
- })
- test('parses the open-PR list and refuses another shape', async () => {
- const out = parseOpenPrs(JSON.stringify([{ number: 7, headRefOid: SHA_A.toUpperCase() }, { number: 'x' }]))
- expect(out && [...out.entries()]).toEqual([[7, SHA_A]])
- expect(parseOpenPrs('not json')).toBe(null)
- expect(parseOpenPrs('{}')).toBe(null)
- })
- test('the lookup is cached for 120 seconds per repo, failures too', async () => {
- const calls: string[][] = []
- let ok = true
- const run: GhRun = async argv => {
- calls.push([...argv])
- if (!ok) throw new Error('gh: not found')
- return { exitCode: 0, stdout: JSON.stringify([{ number: 1, headRefOid: SHA_A }]) }
- }
- const cache: GhCache = new Map()
- expect((await openPrsFor(cache, 'a/b', 0, run))?.get(1)).toBe(SHA_A)
- await openPrsFor(cache, 'a/b', 119_999, run)
- expect(calls.length).toBe(1)
- await openPrsFor(cache, 'c/d', 1000, run)
- expect(calls.length).toBe(2)
- ok = false
- expect(await openPrsFor(cache, 'a/b', 120_000, run)).toBe(null)
- expect(calls.length).toBe(3)
- expect(await openPrsFor(cache, 'a/b', 200_000, run)).toBe(null)
- expect(calls.length).toBe(3)
- })
- test('a failed or invalid lookup returns null and never throws', async () => {
- const fail: GhRun = async () => ({ exitCode: 4, stdout: '' })
- expect(await openPrsFor(new Map(), 'a/b', 0, fail)).toBe(null)
- let called = false
- const spy: GhRun = async () => {
- called = true
- return { exitCode: 0, stdout: '[]' }
- }
- expect(await openPrsFor(new Map(), 'not a repo', 0, spy)).toBe(null)
- expect(called).toBe(false)
- })
- })
- describe('active ticket', () => {
- test('label is repo#N plus a short title without the [Type] prefix', async () => {
- const text = 'repo=me2resh/apexyard\nnumber=1541\ntitle=[Feature] Optional status band\n'
- expect(ticketLabel(text)).toBe('apexyard#1541 Optional status band')
- })
- test('a long title is cut to 48 characters', async () => {
- const label = ticketLabel(`repo=a/b\nnumber=1\ntitle=${'x'.repeat(80)}\n`) ?? ''
- expect(label).toBe(`b#1 ${'x'.repeat(47)}…`)
- })
- test('a marker without repo or number gives null', async () => {
- expect(ticketLabel('started_at=now\n')).toBe(null)
- })
- })
- describe('ops-fork discovery', () => {
- const fs = (paths: string[]) => async (p: string) => paths.includes(p)
- test('the session pin wins when it is an ops fork', async () => {
- const exists = fs(['/ops/.apexyard-fork', '/cwd-fork/.apexyard-fork'])
- expect(await findOpsRoot('/ops\n', '/cwd-fork/sub', exists)).toBe('/ops')
- })
- test('a stale pin falls back to a walk up from the working directory', async () => {
- const exists = fs(['/home/me/fork/onboarding.yaml', '/home/me/fork/apexyard.projects.yaml'])
- expect(await findOpsRoot('/gone', '/home/me/fork/workspace/app', exists)).toBe('/home/me/fork')
- })
- test('one v1 anchor file alone is not a fork', async () => {
- expect(await findOpsRoot(null, '/a/b', fs(['/a/onboarding.yaml']))).toBe(null)
- })
- test('parent directories walk to the root', async () => {
- expect(parentDir('/a/b')).toBe('/a')
- expect(parentDir('/a')).toBe('/')
- expect(parentDir('/')).toBe(null)
- })
- })
- describe('reviewer lock and builds', () => {
- test('the lock reads owner/repo#N:role', async () => {
- expect(lockLabel('me2resh/apexyard#12:rex\n')).toBe('me2resh/apexyard#12 (rex)')
- expect(lockLabel(' \n')).toBe(null)
- })
- test('the lock joins every review marker and keeps the legacy file', async () => {
- expect(lockLabels(['a/b#1:rex\n', 'a/b#2:security\n', null])).toBe('a/b#1 (rex), a/b#2 (security)')
- expect(lockLabels(['a/b#1:rex', 'a/b#1:rex'])).toBe('a/b#1 (rex)')
- expect(lockLabels([null, ' \n'])).toBe(null)
- })
- test('the session id is sanitised like active_reviewer_marker_path', async () => {
- expect(safeSessionId('abc-1.2_3')).toBe('abc-1.2_3')
- expect(safeSessionId('../x y')).toBe('.._x_y')
- })
- test('the build count is off when the pattern is empty or invalid', async () => {
- expect(countBuilds('codex exec\n', '')).toBe(null)
- expect(countBuilds('codex exec\n', '(')).toBe(null)
- })
- test('the build count is the number of matching command lines', async () => {
- const ps = 'codex exec -C /w/a\n/bin/zsh\ncodex exec -C /w/b\n\n'
- expect(countBuilds(ps, '^codex exec')).toBe(2)
- })
- })
- describe('ticket resolver', () => {
- test('the ticket comes from the framework resolver, not from a marker path', async () => {
- expect(RESOLVE_TICKET).toContain('_lib-active-ticket.sh')
- expect(RESOLVE_TICKET).toContain('active_ticket_lookup')
- expect(RESOLVE_TICKET).not.toContain('apexyard-ticket')
- expect(RESOLVE_TICKET).not.toContain('.claude/session')
- })
- })
- describe('settings', () => {
- test('defaults: build count off, three-day window', async () => {
- expect(readSettings(undefined)).toEqual({ pattern: '', windowDays: 3 })
- })
- test('values from the plugin options', async () => {
- expect(readSettings({ build_process_pattern: 'codex', waiting_window_days: 7 })).toEqual({
- pattern: 'codex',
- windowDays: 7,
- })
- expect(readSettings({ waiting_window_days: -1 })).toEqual({ pattern: '', windowDays: 3 })
- })
- })
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.