From 6c6e2ae31115fd3d639e775c48aa74b72d4d8305 Mon Sep 17 00:00:00 2001 From: unfunny Date: Sat, 24 Oct 2026 16:33:30 -0400 Subject: [PATCH] Add Cannonical Workshop to make building and iteration easier on modern operating systems --- .workshop.lock | 1 + .workshop/build.yaml | 10 ++++++++++ .workshop/dev.yaml | 28 ++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .workshop.lock create mode 100644 .workshop/build.yaml create mode 100644 .workshop/dev.yaml diff --git a/.workshop.lock b/.workshop.lock new file mode 100644 index 000000000..a57d873fe --- /dev/null +++ b/.workshop.lock @@ -0,0 +1 @@ +7be62bc9 \ No newline at end of file diff --git a/.workshop/build.yaml b/.workshop/build.yaml new file mode 100644 index 000000000..6bd4a9e16 --- /dev/null +++ b/.workshop/build.yaml @@ -0,0 +1,10 @@ +name: build +base: ubuntu@24.04 + +sdks: + - name: node + channel: 20/stable +# project requires node 20 and yarn to build so we install them here +actions: + setup: | + npm install -g yarn@1 diff --git a/.workshop/dev.yaml b/.workshop/dev.yaml new file mode 100644 index 000000000..b0ad24a2e --- /dev/null +++ b/.workshop/dev.yaml @@ -0,0 +1,28 @@ +name: dev +base: ubuntu@24.04 + +sdks: + - name: opencode + channel: 1/stable + plugs: + hostsvc: + interface: tunnel + endpoint: localhost:1234 + - name: node + channel: 20/stable + - name: system + plugs: + datasets: + interface: mount + workshop-target: /home/workshop/.config/opencode.json + slots: + hostsvc: + interface: tunnel + endpoint: localhost:1234 # LM Studio +# project requires node 20 and yarn to build so we install them here +actions: + setup: | + npm install -g yarn@1 + echo "export OPENCODE_PERMISSIONS__BASH=allow" >> /home/workshop/.bashrc + echo "export OPENCODE_PERMISSIONS__WRITE=allow" >> /home/workshop/.bashrc + echo "export OPENCODE_PERMISSIONS__READ=allow" >> /home/workshop/.bashrc