8000 chore(deps): refresh Hex dependencies and build tooling by dependabot[bot] · Pull Request #682 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

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
10BC8
Diff view
Diff view
22 changes: 20 additions & 2 deletions .agents/skills/ash-framework/references/ash_ai/ash_ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ Options to know:

- `otp_app:` or `actions: [{Resource, [:action]}]` decides where tools are discovered from.
- `tools:` is `true`, `false`, or a list of tool names.
- `system_prompt:` is `fn opts -> "..." end`, sent ahead of `messages` on every request. It is
not included in `Result.messages`, so pass it again when continuing from them.
- `extra_tools:` adds arbitrary `ReqLLM.Tool`s alongside Ash tools.
- `req_llm_opts:` passes provider options through (temperature, reasoning, and so on).
- `req_llm:` swaps in a module implementing the ReqLLM functions, for tests.
Expand Down Expand Up @@ -403,6 +405,20 @@ customize the `AshAi.Actions.Prompt.FlowState` before the request.

Tool loop failures are returned as action errors rather than raised.

Anthropic models can decline a request through their safety classifiers. A refused prompt
action returns an error naming the refusal category rather than a value. To have Anthropic
retry refused requests on another model instead, enable server-side fallbacks through
ReqLLM:

```elixir
run prompt("anthropic:claude-opus-5",
req_llm_opts: [provider_options: [anthropic_fallbacks: "default"]]
)
```

`"default"` lets Anthropic choose the fallback model by refusal category; a list such as
`[%{model: "claude-opus-4-8"}]` names the models to try in order.

### Best Practices for Prompt-Backed Actions

- Write clear, detailed descriptions for the action and its arguments; they form the default prompt.
Expand Down Expand Up @@ -520,7 +536,6 @@ if code_reloading? do
socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket

plug AshAi.Mcp.Dev,
protocol_version_statement: "2024-11-05",
otp_app: :your_app

plug Phoenix.LiveReloader
Expand Down Expand Up @@ -551,11 +566,14 @@ scope "/mcp" do
:create_post,
:analyze_sentiment
],
protocol_version_statement: "2024-11-05",
otp_app: :my_app
end
```

The server negotiates the protocol version with each client. Set
`protocol_version_statement` only to force a version for a client that fails
version negotiation: it overrides negotiation for every client.

## Testing

When testing AI components:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: erlef/setup-beam@v1
- uses: actions/checkout@v7.0.1
- uses: erlef/setup-beam@v1.24.1
with:
otp-version: '29.0.6'
otp-version: '29.1.1'
elixir-version: '1.20.4'
# Hex 2.5 includes security advisories in hex.audit.
- name: Install Hex with security advisory support
Expand Down
48 changes: 25 additions & 23 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:
# Set up a Postgres DB service. By default, Phoenix applications
# use Postgres. This creates a database for running tests.
# Additional services can be defined here if required.
# Keep every job's image on production's Postgres major (Fly Managed
# Postgres runs 16 with PostGIS 3.3; there is no 16-3.3 image).
services:
db:
image: postgis/postgis:17-3.5
image: postgis/postgis:16-3.4
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
Expand All @@ -39,24 +41,24 @@ jobs:
# Specify the OTP and Elixir versions to use when building
# and running the workflow steps.
matrix:
otp: ['29.0.6'] # Define the OTP version [required]
otp: ['29.1.1'] # Define the OTP version [required]
elixir: ['1.20.4'] # Define the elixir version [required]
steps:
# Step: Setup Elixir + Erlang image as the base.
- name: Set up Elixir
uses: erlef/setup-beam@v1
uses: erlef/setup-beam@v1.24.1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

# Step: Check out the code.
- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1

- name: Set up Node
uses: actions/setup-node@v7
uses: actions/setup-node@v7.1.0
with:
node-version: '22'
node-version: '24'

- name: Test JavaScript components
run: npm test --prefix assets
Expand All @@ -68,7 +70,7 @@ jobs:
# Step: Define how to cache deps. Restores existing cache if present.
- name: Cache deps
id: cache-deps
uses: actions/cache@v6
uses: actions/cache@v6.1.0
env:
cache-name: cache-elixir-deps
with:
Expand All @@ -84,7 +86,7 @@ jobs:
# they use (an upgraded library's structs stay stale in its dependents).
- name: Cache compiled build
id: cache-build
uses: actions/cache@v6
uses: actions/cache@v6.1.0
env:
cache-name: cache-compiled-build
with:
Expand Down Expand Up @@ -124,7 +126,7 @@ jobs:
seeds:
services:
db:
image: postgis/postgis:17-3.5
image: postgis/postgis:16-3.4
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
Expand All @@ -140,17 +142,17 @@ jobs:
MIX_ENV: dev
strategy:
matrix:
otp: ['29.0.6']
otp: ['29.1.1']
elixir: ['1.20.4']
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
uses: erlef/setup-beam@v1.24.1
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}

- name: Checkout code
uses: actions/checkout@v7
uses: actions/checkout@v7.0.1

# The example file works as-is: the placeholder Google Maps key makes
# geocoding fail soft (warning + nil coordinates), which is exactly what
Expand All @@ -160,7 +162,7 @@ jobs:

- name: Cache deps
id: cache-deps
uses: actions/cache@v6
uses: actions/cache@v6.1.0
env:
cache-name: cache-elixir-deps
with:
Expand All @@ -171,7 +173,7 @@ jobs:

- name: Cache compiled build
id: cache-build
uses: actions/cache@v6
uses: actions/cache@v6.1.0
env:
cache-name: cache-compiled-dev-build
with:
Expand All @@ -190,7 +192,7 @@ jobs:
timeout-minutes: 15
services:
db:
image: postgis/postgis:17-3.5
image: postgis/postgis:16-3.4
ports: ['5432:5432']
env:
POSTGRES_PASSWORD: postgres
Expand All @@ -200,27 +202,27 @@ jobs:
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v7
- uses: erlef/setup-beam@v1
- uses: actions/checkout@v7.0.1
- uses: erlef/setup-beam@v1.24.1
with:
otp-version: '29.0.6'
otp-version: '29.1.1'
elixir-version: '1.20.4'
- uses: actions/setup-node@v7
- uses: actions/setup-node@v7.1.0
with:
node-version: '22'
node-version: '24'
cache: npm
cache-dependency-path: assets/package-lock.json
# The compiled build restores only on an exact mix.lock match; see the
# test job's build cache.
- name: Cache browser job dependencies
uses: actions/cache@v6
uses: actions/cache@v6.1.0
with:
path: deps
key: ${{ runner.os }}-browser-deps-otp29-elixir1.20-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-browser-deps-otp29-elixir1.20-
- name: Cache browser job compilation
uses: actions/cache@v6
uses: actions/cache@v6.1.0
with:
path: _build/test
key: ${{ runner.os }}-browser-build-otp29-elixir1.20-${{ hashFiles('mix.lock') }}
Expand All @@ -245,7 +247,7 @@ jobs:
run: mix test.browser
- name: Preserve first-attempt failure diagnostics
if: failure()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@v7.0.2
with:
name: browser-failure-diagnostics
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7.0.1
with:
ref: ${{ github.event.workflow_run.head_sha }}
- uses: superfly/flyctl-actions/setup-flyctl@master
- uses: superfly/flyctl-actions/setup-flyctl@ed8efb33836e8b2096c7fd3ba1c8afe303ebbff1
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tools]
elixir = "1.20.4-otp-29"
erlang = "29.0.6"
erlang = "29.1.1"

[tasks.sync-rules]
description = "Sync AGENTS.md and .agents/skills/ from mix.exs usage_rules config"
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# - https://hub.docker.com/r/hexpm/elixir/tags - for the build image
# - https://hub.docker.com/_/debian/tags?name=trixie-slim - for the release image
# - https://pkgs.org/ - resource for finding needed packages
# - Ex: docker.io/hexpm/elixir:1.20.4-erlang-29.0.6-debian-trixie-20260824-slim
# - Ex: docker.io/hexpm/elixir:1.20.4-erlang-29.1.1-debian-trixie-20261005-slim
#
ARG ELIXIR_VERSION=1.20.4
ARG OTP_VERSION=29.0.6
ARG DEBIAN_VERSION=trixie-20260824-slim
ARG OTP_VERSION=29.1.1
ARG DEBIAN_VERSION=trixie-20261005-slim

ARG BUILDER_IMAGE="docker.io/hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="docker.io/debian:${DEBIAN_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ defmodule Huddlz.MixProject do
{:picosat_elixir, "~> 0.2"},
{:ash_authentication_phoenix, "~> 2.0"},
{:ash_postgres, "~> 2.0"},
{:ash_paper_trail, "~> 0.7.0"},
{:ash_paper_trail, "~> 0.8.0"},
{:ash_phoenix, "~> 2.0"},
{:sourceror, "~> 1.8", only: [:dev, :test]},
{:ash, "~> 3.0"},
Expand Down
Loading
Loading
0