Spaces:
Paused
Paused
Pi Web as Claude Code Desktop: composer, panes (Changes, Browser, Files, Terminal), the machine's Chromium for the Browser pane and the agent's browser tools
Browse files- Dockerfile +16 -3
- piweb/hf-design.patch +0 -0
Dockerfile
CHANGED
|
@@ -24,15 +24,28 @@ RUN UV_TOOL_DIR=/opt/uv-tools UV_TOOL_BIN_DIR=/usr/local/bin uv tool install --p
|
|
| 24 |
&& rm -rf /root/.claude /root/.cache/huggingface \
|
| 25 |
&& ls /root/.agents/skills
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# git authenticates to huggingface.co with the token lent by the sign-in, if any.
|
| 28 |
COPY sandbox/git-credential-huggingface /usr/local/bin/git-credential-huggingface
|
| 29 |
RUN chmod 755 /usr/local/bin/git-credential-huggingface \
|
| 30 |
&& git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
|
| 31 |
&& git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
|
| 32 |
|
| 33 |
-
# Pi Web 0.12.1 with the "Pi Web on Hugging Face" design (piweb/hf-design.patch:
|
| 34 |
-
#
|
| 35 |
-
#
|
|
|
|
|
|
|
| 36 |
# from its release tag and installed as its npm package would be. The patch is the diff of
|
| 37 |
# the hf-design branch in the project's pi-web-hf/ worktree; nothing else is changed.
|
| 38 |
# Next runs one build worker per CPU but one (CIRCLE_NODE_TOTAL stands in for the CPU count): on
|
|
|
|
| 24 |
&& rm -rf /root/.claude /root/.cache/huggingface \
|
| 25 |
&& ls /root/.agents/skills
|
| 26 |
|
| 27 |
+
# A real Chromium for Pi Web's Browser pane and the agent's browser_* tools (lib/browser): the
|
| 28 |
+
# revision playwright-core 1.63.0 drives (Pi Web's own dependency), with the system libraries
|
| 29 |
+
# and fonts it needs. Pi Web finds it through PLAYWRIGHT_BROWSERS_PATH.
|
| 30 |
+
ARG PLAYWRIGHT_VERSION=1.63.0
|
| 31 |
+
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/pw-browsers
|
| 32 |
+
RUN npx -y "playwright-core@${PLAYWRIGHT_VERSION}" install --with-deps --no-shell chromium \
|
| 33 |
+
&& apt-get update && apt-get install -y --no-install-recommends fonts-noto-color-emoji \
|
| 34 |
+
&& rm -rf /var/lib/apt/lists/* /root/.npm \
|
| 35 |
+
&& chmod -R a+rX /opt/pw-browsers \
|
| 36 |
+
&& ls /opt/pw-browsers
|
| 37 |
+
|
| 38 |
# git authenticates to huggingface.co with the token lent by the sign-in, if any.
|
| 39 |
COPY sandbox/git-credential-huggingface /usr/local/bin/git-credential-huggingface
|
| 40 |
RUN chmod 755 /usr/local/bin/git-credential-huggingface \
|
| 41 |
&& git config --system credential.https://huggingface.co.helper /usr/local/bin/git-credential-huggingface \
|
| 42 |
&& git config --system credential.https://hf.co.helper /usr/local/bin/git-credential-huggingface
|
| 43 |
|
| 44 |
+
# Pi Web 0.12.1 with the "Pi Web on Hugging Face" design (piweb/hf-design.patch: Claude Code
|
| 45 |
+
# Desktop's layout on Base UI: the composer with its "/" and "@" lists, modes and context meter;
|
| 46 |
+
# the header's panes: Changes with review comments, the machine's Browser, Files, Terminal; the
|
| 47 |
+
# Hugging Face connector; Geist type, the pi mark, IBM Carbon icons, a sidebar slot for the
|
| 48 |
+
# gateway's workspace menu), built
|
| 49 |
# from its release tag and installed as its npm package would be. The patch is the diff of
|
| 50 |
# the hf-design branch in the project's pi-web-hf/ worktree; nothing else is changed.
|
| 51 |
# Next runs one build worker per CPU but one (CIRCLE_NODE_TOTAL stands in for the CPU count): on
|
piweb/hf-design.patch
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|