Repository navigation
Set up Cursor Cloud dev environment #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # AGENTS.md | ||
|
|
||
| ## Cursor Cloud specific instructions | ||
|
|
||
| CertMagex is a single **Elixir/Mix library** (Hex package `:certmagex`), not a runnable | ||
| service or web app. It provides automatic Let's Encrypt/ZeroSSL TLS certificates via the | ||
| `sni_fun` callback. There is no dev server to start; you build, lint, test, and exercise it | ||
| from `iex`/`mix run`. | ||
|
|
||
| - Toolchain: Elixir + Erlang/OTP are preinstalled from apt (Elixir 1.14, OTP 25.3, matching | ||
| the CI target in `.github/workflows/test.yml`). Hex/rebar are installed for the user. | ||
| - Standard commands (see `mix.exs`): | ||
| - Deps: `mix deps.get` | ||
| - Compile: `mix compile` | ||
| - Test: `mix test` (ExUnit; self-contained and offline — no network/ACME server needed) | ||
| - Lint: `mix lint` (alias = `compile` + `format --check-formatted` + `credo` + `dialyzer`) | ||
| - `mix lint` runs Dialyzer, which builds PLT files on the first run (roughly a minute or two). | ||
| The PLTs are cached under `_build/`, so subsequent runs are fast. Don't assume `mix lint` | ||
| is hung during that first PLT build. | ||
| - No `mix.lock` is committed (this is a library), so `mix deps.get` resolves the latest | ||
| matching dependency versions each time. | ||
| - Certificates/state are stored on local disk under `$HOME/.local/share/certmagex` (DETS via | ||
| `dets_plus`), honoring `XDG_DATA_HOME`. No external database. | ||
| - End-to-end certificate issuance (real ACME) requires a consuming Phoenix/Cowboy/Bandit app | ||
| with ports 80/443 free and internet access; that is out of scope for this repo. The core | ||
| SNI/storage flow can be exercised offline by inserting a self-signed cert via | ||
| `CertMagex.insert/3` and resolving it with `CertMagex.sni_fun/1`. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be more precise regarding the storage path resolution, it would be clearer to state that the certificates are stored under
$XDG_DATA_HOME/certmagexand default to$HOME/.local/share/certmagexif the environment variable is unset.