diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08c1a37..7cca609 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 with: bun-version: '1.4.2' - - run: bun install --frozen-lockfile + - run: bun install --frozen-lockfile --ignore-scripts - run: bun run fmt:check - run: bun run lint - run: bun run typecheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a483c1c..a26ee4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -100,7 +100,7 @@ jobs: - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 with: bun-version: '1.4.2' - - run: bun install --frozen-lockfile + - run: bun install --frozen-lockfile --ignore-scripts - run: bun run typecheck - run: bun test tests/ @@ -160,7 +160,7 @@ jobs: with: bun-version: '1.4.2' - - run: bun install --frozen-lockfile + - run: bun install --frozen-lockfile --ignore-scripts - name: Read tag metadata id: meta diff --git a/README.md b/README.md index da35588..fa0e4bd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ [![ci](https://github.com/noppu-labs/opencode-cache-manager/actions/workflows/ci.yml/badge.svg)](https://github.com/noppu-labs/opencode-cache-manager/actions/workflows/ci.yml) [![license](https://img.shields.io/npm/l/@noppu-labs/opencode-cache-manager)](LICENSE) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/noppu-labs/opencode-cache-manager/badge)](https://scorecard.dev/viewer/?uri=github.com/noppu-labs/opencode-cache-manager) +[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/16186/badge)](https://www.bestpractices.dev/projects/16186) +[![OpenSSF Baseline](https://www.bestpractices.dev/projects/16186/baseline)](https://www.bestpractices.dev/projects/16186/baseline-1)

Cache Manager, an OpenCode plugin: take control of your prompt cache. Pick a 5m, 1h or hybrid TTL per session, and keep idle caches warm with pings. A chart: after stepping away for 15 minutes, the default 5m cache has expired and the next prompt rewrites it at 1.25x; with keepalive, three pings keep it warm and the next prompt reads it at about 0.1x. @@ -330,6 +332,8 @@ Turn the rows off with `savings` in the plugin options, in the picker, or with ` ## Contributing +Found a bug or want a feature? Open an issue in the [issue tracker](https://github.com/noppu-labs/opencode-cache-manager/issues). Report security problems privately, as [SECURITY.md](SECURITY.md) describes. Changes come in as pull requests. + See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for the local setup, the checks CI runs and how releases are cut. --- diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 43887b5..9729d30 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -2,6 +2,12 @@ opencode-cache-manager is an OpenCode V2 plugin. The product is the code under `src/`; `tests/` mirrors it and `scripts/` holds the one build step. +## Reporting bugs and proposing changes + +Report bugs and request features in the [issue tracker](https://github.com/noppu-labs/opencode-cache-manager/issues). For a bug, include the plugin version, the OpenCode version, the provider and model, and what you expected to happen; a [debug log](#debug-log) helps. Security problems go through private reporting instead, as [SECURITY.md](../SECURITY.md) describes. + +Changes come in as pull requests against `main`. Each one needs a review and a passing CI run before it merges. + ## Prerequisites - [Bun](https://bun.sh) 1.4.2 or newer. CI pins 1.4.2, the version OpenCode V2 embeds. On Bun 1.3.x the keepalive tests, which advance fake timers by 50 minutes, can freeze the event loop on a freshly booted machine.