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
35 changes: 29 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,23 @@ ln -s /usr/local/bin/bun /usr/local/bin/node
ln -s /usr/local/bin/bun /usr/local/bin/npx

apt-get update
apt-get install \
apt-get install -y --no-install-recommends \
sudo \
curl \
git \
jq \
libatomic1 \
libicu76 \
-y

apt-get install make gpg gpg-agent procps -y --no-install-recommends
make \
gpg \
gpg-agent \
procps \
ca-certificates \
libfontconfig1 \
libfreetype6 \
libpng16-16t64 \
fontconfig \
fonts-dejavu-core

rm -rf /var/lib/apt/lists/* /var/cache/apt

Expand Down Expand Up @@ -95,6 +102,7 @@ EOF

FOE

ARG MOLI_VERSION=latest
ARG OPENCODE_VERSION=latest
ARG CAVEMAN_VERSION=latest
ARG AZURE_FOUNDRY_PROVIDER_REF=latest
Expand All @@ -108,8 +116,6 @@ ENV OPENCODE_EXPERIMENTAL=1
ENV ENGRAM_DATA_DIR="${BUN_HOME}/.local/share/opencode/engram"
ENV RTK_TELEMETRY_DISABLED=1

ENV AGENT_BROWSER_ENGINE=lightpanda

# hadolint ignore=DL3003,SC2164,SC2102
RUN <<'FOE'

Expand Down Expand Up @@ -296,6 +302,23 @@ curl -fsSL "${PONYTAIL_RAW_BASE}/skills/ponytail-help/SKILL.md" \
-o "${OPENCODE_CONFIG_DIR}/skills/ponytail-help/SKILL.md" \
|| exit 1

###
# moli
#
moli_resolved_version=$(resolve_github_latest_version "lexmount/moli" "${MOLI_VERSION}") || exit 1
moli_url="https://github.com/lexmount/moli/releases/download/${moli_resolved_version}/moli-x86_64-unknown-linux-gnu.tar.gz"
curl -fsSL "${moli_url}" | tar -xz -C /usr/local/bin --strip-components=1 --wildcards '*/moli' || exit 1
chmod +x /usr/local/bin/moli || exit 1
moli --version || exit 1

# Append moli always-on section to AGENTS.md
cat >> "${OPENCODE_CONFIG_DIR}/AGENTS.md" <<-'AGENTS_MOLI'

## moli

For live websites or web research, use the installed moli skills: `moli-webfetch` for fetching/capturing JS-rendered pages, `moli-websearch` for keyword/image search. Prefer `moli fetch` over raw curl for JS-rendered content.
AGENTS_MOLI

###
# graphify
#
Expand Down
12 changes: 12 additions & 0 deletions skills.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,15 @@ skills:
- type: git-export
repo: JuliusBrussee/caveman
path: skills/cavecrew

- name: moli-webfetch
steps:
- type: git-export
repo: lexmount/moli
path: skills/moli-webfetch

- name: moli-websearch
steps:
- type: git-export
repo: lexmount/moli
path: skills/moli-websearch