mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-27 20:09:10 +01:00
feat(runner): add native Hermes ACP qualification candidate
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
75abb6a774
commit
9e07748e91
97 files changed
+2866
-197
No files matched your search
@@ -33,7 +33,7 @@ COPY cli/package.json ./cli/package.json
|
||||
# The complete resolved lock (including transitive integrity hashes) is reviewed.
|
||||
# Reject registry-time drift BEFORE installing packages or running lifecycle code.
|
||||
# Refresh this digest together with source/provider dependency changes.
|
||||
ARG PAPERCLIP_RUNNER_LOCK_SHA256=d3c4cffe7d127d99789cf354c5275246526f5396d2a86ce0d387352f68a2394b
|
||||
ARG PAPERCLIP_RUNNER_LOCK_SHA256=c63e2e731c27744e3de3a7dc8b3e115465ffe8c42e87c2a14e7d8927163f1b13
|
||||
# pnpm 9 subtracts PNPM_WORKERS from available CPUs; it is not a worker count.
|
||||
# Subtract all available CPUs to select its minimum (one tarball worker).
|
||||
RUN export PNPM_WORKERS="$(node -p 'require("node:os").availableParallelism()')" \
|
||||
@@ -44,6 +44,14 @@ ARG PAPERCLIP_RUNNER_SOURCE_REVISION
|
||||
# Optional qualification assets; this never promotes candidate profiles.
|
||||
ARG PAPERCLIP_RUNNER_CANDIDATE_PROVIDERS=
|
||||
RUN test -n "${PAPERCLIP_RUNNER_SOURCE_REVISION}"
|
||||
RUN case ",${PAPERCLIP_RUNNER_CANDIDATE_PROVIDERS}," in \
|
||||
*,hermes,*) apt-get update && apt-get install -y --no-install-recommends python3-venv \
|
||||
&& python3 -m venv /tmp/hermes-build \
|
||||
&& /tmp/hermes-build/bin/pip install --no-cache-dir uv==0.12.17 \
|
||||
&& PATH="/tmp/hermes-build/bin:${PATH}" node packages/paperclip-runner/scripts/provision-hermes.mjs \
|
||||
/workspace/packages/paperclip-runner/provider-assets/hermes/linux-x64 \
|
||||
&& rm -rf /tmp/hermes-build /var/lib/apt/lists/* ;; \
|
||||
esac
|
||||
RUN export PNPM_WORKERS="$(node -p 'require("node:os").availableParallelism()')" \
|
||||
&& pnpm --filter @paperclipai/paperclip-runner build:typescript \
|
||||
&& PAPERCLIP_RUNNER_SOURCE_REVISION="${PAPERCLIP_RUNNER_SOURCE_REVISION}" \
|
||||
@@ -58,6 +66,10 @@ FROM daytonaio/sandbox:0.8.0@sha256:eadf88e4391072b7ad4bed27d9cadfc9fe9d8ed375d9
|
||||
|
||||
USER root
|
||||
|
||||
# Native Hermes command tools apply the runner protected-path policy to children.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends bubblewrap \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PAPERCLIP_RUNNER_PROVIDER_PACK_ROOT=/opt/paperclip-runner/provider-pack
|
||||
ENV PATH=${PAPERCLIP_RUNNER_PROVIDER_PACK_ROOT}/node_modules/.bin:/usr/local/share/nvm/current/bin:/usr/local/python/current/bin:/usr/local/py-utils/bin:${PATH}
|
||||
|
||||
|
||||
@@ -32,8 +32,9 @@ Cursor CLI 2026.10.01-e373342, and GitHub CLI 2.102.0 in the sandbox layer.
|
||||
The native Cursor provider uses its separately verified distribution, pinned to
|
||||
2026.09.26-dd393fe; it does not use the sandbox layer’s global Cursor executable.
|
||||
Grok CLI 1.0.46 supports the current
|
||||
[Grok 4.7](https://docs.x.ai/developers/grok-4-7) model family. Hermes stays
|
||||
at 0.19.0, the newest release on PyPI.
|
||||
[Grok 4.7](https://docs.x.ai/developers/grok-4-7) model family. The legacy Hermes
|
||||
CLI remains at 0.19.0. The separate native runner candidate pins Hermes
|
||||
`v2026.9.24` and its Python/ACP/MCP dependencies in a verified provider asset.
|
||||
|
||||
Keep the patched ACP bridge versions separate from their CLI runtime pins.
|
||||
Their executable digests do not change when only the runtime dependency
|
||||
@@ -135,12 +136,18 @@ download dependencies when a task starts.
|
||||
|
||||
Provider branches can build their pinned assets with
|
||||
`node packages/paperclip-runner/scripts/build-provider-pack.mjs /absolute/pack --candidate-providers=cursor`
|
||||
(or `copilot` or `pi`). The source revision must include the named provider's
|
||||
(or `copilot`, `pi` or `hermes`). The source revision must include the named provider's
|
||||
builder. Assets are installed at build time under `provider-assets/<provider>/<platform>-<architecture>`.
|
||||
The pack manifest binds each complete asset tree. Runtime admission separately
|
||||
checks the provider's source-owned closure pins and copies a verified launch snapshot.
|
||||
A pack with candidate assets does not qualify or enable that provider.
|
||||
|
||||
The Hermes candidate build provisions Python 3.12.14 and the locked native
|
||||
runtime before publishing its pack. Command tools require bubblewrap plus kernel
|
||||
namespace support; default Docker namespace restrictions are insufficient.
|
||||
Verify this on the actual Daytona target before promoting the candidate. See
|
||||
[Hermes deployment and qualification](../../packages/paperclip-runner/docs/hermes.md).
|
||||
|
||||
For an isolated Linux x64 Daytona qualification image, pass
|
||||
`--build-arg PAPERCLIP_RUNNER_CANDIDATE_PROVIDERS=cursor` with the normal build arguments.
|
||||
Compute its content ID with the same selection:
|
||||
|
||||
Reference in new issue
Block a user