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
10 changes: 5 additions & 5 deletions forge-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ RUN --mount=type=tmpfs,target=/root/.bun/install/cache \

# Apply patches explicitly using POSIX GNU patch
RUN cd opencode \
&& patch -p1 -d node_modules/@ai-sdk/xai < patches/@ai-sdk-xai@3.0.82.patch \
&& patch -p1 -d node_modules/@npmcli/agent < patches/@npmcli-agent@4.0.0.patch \
&& patch -p1 -d node_modules/@silvia-odwyer/photon-node < patches/@silvia-odwyer-photon-node@0.3.4.patch \
&& patch -p1 -d node_modules/@standard-community/standard-openapi < patches/@standard-community-standard-openapi@0.2.9.patch \
&& patch -p1 -d node_modules/solid-js < patches/solid-js@1.9.10.patch
&& patch -p1 -l -d node_modules/@ai-sdk/xai < patches/@ai-sdk-xai@3.0.82.patch \
&& patch -p1 -l -d node_modules/@npmcli/agent < patches/@npmcli-agent@4.0.0.patch \
&& patch -p1 -l -d node_modules/@silvia-odwyer/photon-node < patches/@silvia-odwyer-photon-node@0.3.4.patch \
&& patch -p1 -l -d node_modules/@standard-community/standard-openapi < patches/@standard-community-standard-openapi@0.2.9.patch \
&& patch -p1 -l -d node_modules/solid-js < patches/solid-js@1.9.10.patch

# Verify what's present so the log gives us a clear before/after for the
# packages bun complained about.
Expand Down
10 changes: 5 additions & 5 deletions opencode/Dockerfile.forge
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ RUN --mount=type=tmpfs,target=/root/.bun/install/cache \
bun install --no-save || bun install --no-save

# Apply patches explicitly using POSIX GNU patch for 100% NAS/cloud/mac filesystem compatibility
RUN patch -p1 -d node_modules/@ai-sdk/xai < patches/@ai-sdk-xai@3.0.82.patch \
&& patch -p1 -d node_modules/@npmcli/agent < patches/@npmcli-agent@4.0.0.patch \
&& patch -p1 -d node_modules/@silvia-odwyer/photon-node < patches/@silvia-odwyer-photon-node@0.3.4.patch \
&& patch -p1 -d node_modules/@standard-community/standard-openapi < patches/@standard-community-standard-openapi@0.2.9.patch \
&& patch -p1 -d node_modules/solid-js < patches/solid-js@1.9.10.patch
RUN patch -p1 -l -d node_modules/@ai-sdk/xai < patches/@ai-sdk-xai@3.0.82.patch \
&& patch -p1 -l -d node_modules/@npmcli/agent < patches/@npmcli-agent@4.0.0.patch \
&& patch -p1 -l -d node_modules/@silvia-odwyer/photon-node < patches/@silvia-odwyer-photon-node@0.3.4.patch \
&& patch -p1 -l -d node_modules/@standard-community/standard-openapi < patches/@standard-community-standard-openapi@0.2.9.patch \
&& patch -p1 -l -d node_modules/solid-js < patches/solid-js@1.9.10.patch

# Bun's isolated linker doesn't fully materialise every transitive dep into
# per-workspace-member node_modules — registry deps often end up only at
Expand Down
4 changes: 2 additions & 2 deletions opencode/patches/@silvia-odwyer-photon-node@0.3.4.patch
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ index 8f4144d..29a964a 100644
const offset = table.grow(4);
table.set(0, undefined);
@@ -4509,7 +4510,8 @@ module.exports.__wbindgen_init_externref_table = function() {
;
};
;
};

-const path = require('path').join(__dirname, 'photon_rs_bg.wasm');
+// Allow opencode's Bun compiled binary to point photon-node at its embedded wasm asset.
Expand Down
Loading