Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<p align="center">
<img src="docs/images/social-preview.png" alt="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." width="800">
Expand Down Expand Up @@ -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.

---
Expand Down
6 changes: 6 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down