bots-garden/mini-me-kitpublic Fork
⑂ 6aa565b
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me-kit.git
git clone ssh://git@rickub.com/bots-garden/mini-me-kit.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🛟 Updated.

k33g committed 2026-10-13T09:03:39+02:00 Browse files
6aa565b parent: f8d85c1
modified .gitignore +3 -0
@@ -0,0 +1,3 @@
1+sandboxes
2+how-to
3+.mm
@@ -0,0 +1,3 @@
1+sandboxes
2+how-to
3+.mm
modified 01-release.tag.sh +0 -0
old mode 100755
new mode 100644
old mode 100755
new mode 100644
added 02-publish-kit.sh +56 -0
new file mode 100755
@@ -0,0 +1,56 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the mini-me kit to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./02-publish-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./02-publish-kit.sh to push under another namespace
10+ - SIGN=1 ./02-publish-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can use it:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG>
15+COMMENT
16+
17+set -euo pipefail
18+
19+set -o allexport
20+source release.env
21+set +o allexport
22+
23+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
24+KIT_DIR="./mini-me"
25+KIT_FILE="${KIT_DIR}/mini-me.yaml"
26+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
27+VERSION="${TAG#v}"
28+IMAGE="docker.io/${NAMESPACE}/${REPO}"
29+PLATFORMS="linux/amd64,linux/arm64"
30+
31+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
32+
33+# A multi-platform push needs a builder that can do it: the default "docker"
34+# driver cannot (unless the containerd image store is on), so use a
35+# docker-container builder, created once and reused afterwards.
36+BUILDER="sandbox-kit-builder"
37+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
38+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
39+fi
40+
41+# The descriptor (mini-me.yaml) is passed as the "Dockerfile": its
42+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
43+# the workload from mini-me.dockerfile and packs the kit metadata with it.
44+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
45+ --builder "${BUILDER}" \
46+ --platform "${PLATFORMS}" \
47+ -t "${IMAGE}:${VERSION}" \
48+ -t "${IMAGE}:latest" \
49+ --push
50+
51+if [ "${SIGN:-0}" = "1" ]; then
52+ sbx kit sign "${IMAGE}:${VERSION}"
53+fi
54+
55+echo "✅ Published ${IMAGE}:${VERSION}"
56+echo "💡 Try it: sbx run --name mm-demo ${IMAGE}:${VERSION}"
new file mode 100755
@@ -0,0 +1,56 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the mini-me kit to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./02-publish-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./02-publish-kit.sh to push under another namespace
10+ - SIGN=1 ./02-publish-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can use it:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG>
15+COMMENT
16+
17+set -euo pipefail
18+
19+set -o allexport
20+source release.env
21+set +o allexport
22+
23+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
24+KIT_DIR="./mini-me"
25+KIT_FILE="${KIT_DIR}/mini-me.yaml"
26+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
27+VERSION="${TAG#v}"
28+IMAGE="docker.io/${NAMESPACE}/${REPO}"
29+PLATFORMS="linux/amd64,linux/arm64"
30+
31+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
32+
33+# A multi-platform push needs a builder that can do it: the default "docker"
34+# driver cannot (unless the containerd image store is on), so use a
35+# docker-container builder, created once and reused afterwards.
36+BUILDER="sandbox-kit-builder"
37+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
38+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
39+fi
40+
41+# The descriptor (mini-me.yaml) is passed as the "Dockerfile": its
42+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
43+# the workload from mini-me.dockerfile and packs the kit metadata with it.
44+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
45+ --builder "${BUILDER}" \
46+ --platform "${PLATFORMS}" \
47+ -t "${IMAGE}:${VERSION}" \
48+ -t "${IMAGE}:latest" \
49+ --push
50+
51+if [ "${SIGN:-0}" = "1" ]; then
52+ sbx kit sign "${IMAGE}:${VERSION}"
53+fi
54+
55+echo "✅ Published ${IMAGE}:${VERSION}"
56+echo "💡 Try it: sbx run --name mm-demo ${IMAGE}:${VERSION}"
added 03-publish-go-toolchain-kit.sh +57 -0
new file mode 100755
@@ -0,0 +1,57 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the go-toolchain kit (a mixin) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./03-publish-go-toolchain-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./03-publish-go-toolchain-kit.sh to push under another namespace
10+ - SIGN=1 ./03-publish-go-toolchain-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can add it to a sandbox:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG> \
15+ --kit docker.io/<NAMESPACE>/go-toolchain-kit:<TAG>
16+COMMENT
17+
18+set -euo pipefail
19+
20+set -o allexport
21+source release.env
22+set +o allexport
23+
24+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
25+KIT_DIR="./kits/go-toolchain"
26+KIT_FILE="${KIT_DIR}/go-toolchain.yaml"
27+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
28+VERSION="${TAG#v}"
29+IMAGE="docker.io/${NAMESPACE}/go-toolchain-kit"
30+PLATFORMS="linux/amd64,linux/arm64"
31+
32+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
33+
34+# A multi-platform push needs a builder that can do it: the default "docker"
35+# driver cannot (unless the containerd image store is on), so use a
36+# docker-container builder, created once and reused afterwards.
37+BUILDER="sandbox-kit-builder"
38+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
39+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
40+fi
41+
42+# The descriptor (go-toolchain.yaml) is passed as the "Dockerfile": its
43+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
44+# the overlay from go-toolchain.dockerfile and packs the kit metadata with it.
45+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
46+ --builder "${BUILDER}" \
47+ --platform "${PLATFORMS}" \
48+ -t "${IMAGE}:${VERSION}" \
49+ -t "${IMAGE}:latest" \
50+ --push
51+
52+if [ "${SIGN:-0}" = "1" ]; then
53+ sbx kit sign "${IMAGE}:${VERSION}"
54+fi
55+
56+echo "✅ Published ${IMAGE}:${VERSION}"
57+echo "💡 Try it: sbx run --name mm-demo docker.io/${NAMESPACE}/${REPO}:${VERSION} --kit ${IMAGE}:${VERSION}"
new file mode 100755
@@ -0,0 +1,57 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the go-toolchain kit (a mixin) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./03-publish-go-toolchain-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./03-publish-go-toolchain-kit.sh to push under another namespace
10+ - SIGN=1 ./03-publish-go-toolchain-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can add it to a sandbox:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG> \
15+ --kit docker.io/<NAMESPACE>/go-toolchain-kit:<TAG>
16+COMMENT
17+
18+set -euo pipefail
19+
20+set -o allexport
21+source release.env
22+set +o allexport
23+
24+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
25+KIT_DIR="./kits/go-toolchain"
26+KIT_FILE="${KIT_DIR}/go-toolchain.yaml"
27+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
28+VERSION="${TAG#v}"
29+IMAGE="docker.io/${NAMESPACE}/go-toolchain-kit"
30+PLATFORMS="linux/amd64,linux/arm64"
31+
32+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
33+
34+# A multi-platform push needs a builder that can do it: the default "docker"
35+# driver cannot (unless the containerd image store is on), so use a
36+# docker-container builder, created once and reused afterwards.
37+BUILDER="sandbox-kit-builder"
38+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
39+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
40+fi
41+
42+# The descriptor (go-toolchain.yaml) is passed as the "Dockerfile": its
43+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
44+# the overlay from go-toolchain.dockerfile and packs the kit metadata with it.
45+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
46+ --builder "${BUILDER}" \
47+ --platform "${PLATFORMS}" \
48+ -t "${IMAGE}:${VERSION}" \
49+ -t "${IMAGE}:latest" \
50+ --push
51+
52+if [ "${SIGN:-0}" = "1" ]; then
53+ sbx kit sign "${IMAGE}:${VERSION}"
54+fi
55+
56+echo "✅ Published ${IMAGE}:${VERSION}"
57+echo "💡 Try it: sbx run --name mm-demo docker.io/${NAMESPACE}/${REPO}:${VERSION} --kit ${IMAGE}:${VERSION}"
added 04-publish-rust-toolchain-kit.sh +57 -0
new file mode 100644
@@ -0,0 +1,57 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the rust-toolchain kit (a mixin) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./04-publish-rust-toolchain-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./04-publish-rust-toolchain-kit.sh to push under another namespace
10+ - SIGN=1 ./04-publish-rust-toolchain-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can add it to a sandbox:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG> \
15+ --kit docker.io/<NAMESPACE>/rust-toolchain-kit:<TAG>
16+COMMENT
17+
18+set -euo pipefail
19+
20+set -o allexport
21+source release.env
22+set +o allexport
23+
24+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
25+KIT_DIR="./kits/rust-toolchain"
26+KIT_FILE="${KIT_DIR}/rust-toolchain.yaml"
27+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
28+VERSION="${TAG#v}"
29+IMAGE="docker.io/${NAMESPACE}/rust-toolchain-kit"
30+PLATFORMS="linux/amd64,linux/arm64"
31+
32+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
33+
34+# A multi-platform push needs a builder that can do it: the default "docker"
35+# driver cannot (unless the containerd image store is on), so use a
36+# docker-container builder, created once and reused afterwards.
37+BUILDER="sandbox-kit-builder"
38+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
39+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
40+fi
41+
42+# The descriptor (rust-toolchain.yaml) is passed as the "Dockerfile": its
43+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
44+# the overlay from rust-toolchain.dockerfile and packs the kit metadata with it.
45+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
46+ --builder "${BUILDER}" \
47+ --platform "${PLATFORMS}" \
48+ -t "${IMAGE}:${VERSION}" \
49+ -t "${IMAGE}:latest" \
50+ --push
51+
52+if [ "${SIGN:-0}" = "1" ]; then
53+ sbx kit sign "${IMAGE}:${VERSION}"
54+fi
55+
56+echo "✅ Published ${IMAGE}:${VERSION}"
57+echo "💡 Try it: sbx run --name mm-demo docker.io/${NAMESPACE}/${REPO}:${VERSION} --kit ${IMAGE}:${VERSION}"
new file mode 100644
@@ -0,0 +1,57 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the rust-toolchain kit (a mixin) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./04-publish-rust-toolchain-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./04-publish-rust-toolchain-kit.sh to push under another namespace
10+ - SIGN=1 ./04-publish-rust-toolchain-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can add it to a sandbox:
14+ sbx run --name mm-demo docker.io/<NAMESPACE>/mini-me-kit:<TAG> \
15+ --kit docker.io/<NAMESPACE>/rust-toolchain-kit:<TAG>
16+COMMENT
17+
18+set -euo pipefail
19+
20+set -o allexport
21+source release.env
22+set +o allexport
23+
24+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
25+KIT_DIR="./kits/rust-toolchain"
26+KIT_FILE="${KIT_DIR}/rust-toolchain.yaml"
27+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
28+VERSION="${TAG#v}"
29+IMAGE="docker.io/${NAMESPACE}/rust-toolchain-kit"
30+PLATFORMS="linux/amd64,linux/arm64"
31+
32+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
33+
34+# A multi-platform push needs a builder that can do it: the default "docker"
35+# driver cannot (unless the containerd image store is on), so use a
36+# docker-container builder, created once and reused afterwards.
37+BUILDER="sandbox-kit-builder"
38+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
39+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
40+fi
41+
42+# The descriptor (rust-toolchain.yaml) is passed as the "Dockerfile": its
43+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
44+# the overlay from rust-toolchain.dockerfile and packs the kit metadata with it.
45+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
46+ --builder "${BUILDER}" \
47+ --platform "${PLATFORMS}" \
48+ -t "${IMAGE}:${VERSION}" \
49+ -t "${IMAGE}:latest" \
50+ --push
51+
52+if [ "${SIGN:-0}" = "1" ]; then
53+ sbx kit sign "${IMAGE}:${VERSION}"
54+fi
55+
56+echo "✅ Published ${IMAGE}:${VERSION}"
57+echo "💡 Try it: sbx run --name mm-demo docker.io/${NAMESPACE}/${REPO}:${VERSION} --kit ${IMAGE}:${VERSION}"
added 05-publish-mini-me-editor-kit.sh +56 -0
new file mode 100644
@@ -0,0 +1,56 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the mini-me-editor kit (mm + Eclipse Theia web IDE) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./05-publish-mini-me-editor-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./05-publish-mini-me-editor-kit.sh to push under another namespace
10+ - SIGN=1 ./05-publish-mini-me-editor-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can use it:
14+ sbx run --name mm-editor docker.io/<NAMESPACE>/mini-me-editor-kit:<TAG>
15+COMMENT
16+
17+set -euo pipefail
18+
19+set -o allexport
20+source release.env
21+set +o allexport
22+
23+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
24+KIT_DIR="./mini-me-editor"
25+KIT_FILE="${KIT_DIR}/mini-me-editor.yaml"
26+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
27+VERSION="${TAG#v}"
28+IMAGE="docker.io/${NAMESPACE}/mini-me-editor-kit"
29+PLATFORMS="linux/amd64,linux/arm64"
30+
31+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
32+
33+# A multi-platform push needs a builder that can do it: the default "docker"
34+# driver cannot (unless the containerd image store is on), so use a
35+# docker-container builder, created once and reused afterwards.
36+BUILDER="sandbox-kit-builder"
37+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
38+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
39+fi
40+
41+# The descriptor (mini-me-editor.yaml) is passed as the "Dockerfile": its
42+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
43+# the workload from mini-me-editor.dockerfile and packs the kit metadata with it.
44+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
45+ --builder "${BUILDER}" \
46+ --platform "${PLATFORMS}" \
47+ -t "${IMAGE}:${VERSION}" \
48+ -t "${IMAGE}:latest" \
49+ --push
50+
51+if [ "${SIGN:-0}" = "1" ]; then
52+ sbx kit sign "${IMAGE}:${VERSION}"
53+fi
54+
55+echo "✅ Published ${IMAGE}:${VERSION}"
56+echo "💡 Try it: sbx run --name mm-editor ${IMAGE}:${VERSION}"
new file mode 100644
@@ -0,0 +1,56 @@
1+#!/bin/bash
2+: <<'COMMENT'
3+Publish the mini-me-editor kit (mm + Eclipse Theia web IDE) to Docker Hub as an OCI image.
4+Doc: https://docs.docker.com/ai/sandboxes/customize/author/distribute/
5+
6+1. docker login (once, with the Docker Hub account)
7+2. Update TAG in release.env (shared with 01-release.tag.sh)
8+3. Run this script: ./05-publish-mini-me-editor-kit.sh
9+ - DOCKER_HUB_NAMESPACE=foo ./05-publish-mini-me-editor-kit.sh to push under another namespace
10+ - SIGN=1 ./05-publish-mini-me-editor-kit.sh to sign the kit after the push
11+ (keyless, `sbx kit sign`)
12+
13+Then anyone can use it:
14+ sbx run --name mm-editor docker.io/<NAMESPACE>/mini-me-editor-kit:<TAG>
15+COMMENT
16+
17+set -euo pipefail
18+
19+set -o allexport
20+source release.env
21+set +o allexport
22+
23+NAMESPACE="${DOCKER_HUB_NAMESPACE:-k33g}"
24+KIT_DIR="./mini-me-editor"
25+KIT_FILE="${KIT_DIR}/mini-me-editor.yaml"
26+# Docker Hub tags are usually written without the leading "v": v0.0.2 -> 0.0.2
27+VERSION="${TAG#v}"
28+IMAGE="docker.io/${NAMESPACE}/mini-me-editor-kit"
29+PLATFORMS="linux/amd64,linux/arm64"
30+
31+echo "Publishing ${IMAGE}:${VERSION} (and :latest) for ${PLATFORMS}"
32+
33+# A multi-platform push needs a builder that can do it: the default "docker"
34+# driver cannot (unless the containerd image store is on), so use a
35+# docker-container builder, created once and reused afterwards.
36+BUILDER="sandbox-kit-builder"
37+if ! docker buildx inspect "${BUILDER}" >/dev/null 2>&1; then
38+ docker buildx create --name "${BUILDER}" --driver docker-container >/dev/null
39+fi
40+
41+# The descriptor (mini-me-editor.yaml) is passed as the "Dockerfile": its
42+# `# syntax=docker/sandbox-kit:3` line selects the kit frontend, which builds
43+# the workload from mini-me-editor.dockerfile and packs the kit metadata with it.
44+docker buildx build "${KIT_DIR}" -f "${KIT_FILE}" \
45+ --builder "${BUILDER}" \
46+ --platform "${PLATFORMS}" \
47+ -t "${IMAGE}:${VERSION}" \
48+ -t "${IMAGE}:latest" \
49+ --push
50+
51+if [ "${SIGN:-0}" = "1" ]; then
52+ sbx kit sign "${IMAGE}:${VERSION}"
53+fi
54+
55+echo "✅ Published ${IMAGE}:${VERSION}"
56+echo "💡 Try it: sbx run --name mm-editor ${IMAGE}:${VERSION}"
modified README.md +107 -0
@@ -20,6 +20,7 @@ sbx run --name mm-demo ../mini-me -- -tui -config agent.lucy.yaml
2020 sbx settings set kit.allowedSources '["docker.io/","git.rickub.com/bots-garden/"]'
2121 ```
2222
23+### From the Git repository
2324 ```bash
2425 cd demo
2526 RELEASE=v0.0.2
@@ -36,6 +37,112 @@ sbx run --name mm-demo-remote "${REPOSITORY}#ref=${RELEASE}&dir=mini-me" \
3637 -- -tui -config agent.lucy.yaml
3738 ```
3839
40+### From Docker Hub
41+```bash
42+cd demo
43+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2
44+```
45+
46+> Use it with another agent config file
47+```bash
48+cd demo
49+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 -- -config agent.lucy.yaml
50+```
51+
52+> Assemble with other kits
53+```bash
54+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 \
55+--kit ./kits/go-toolchain --kit ./kits/cli-tools \
56+-- -config agent.lucy.yaml
57+```
58+
59+> With the Go toolchain kit, also from Docker Hub
60+```bash
61+cd demo
62+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 \
63+--kit docker.io/k33g/go-toolchain-kit:0.0.2
64+```
65+
66+## Mini Me Editor: Eclipse Theia (web IDE)
67+
68+`./mini-me-editor` runs the [Eclipse Theia](https://theia-ide.org/) IDE on the workspace
69+(port `3000` in the sandbox). `mm` is installed but not launched: start it from the Theia terminal.
70+
71+Extensions (from [open-vsx](https://open-vsx.org), listed in `mini-me-editor/theia/package.json` → `theiaPlugins`):
72+- JavaScript / TypeScript, HTML, CSS, JSON, Markdown: syntax + language features (completion, diagnostics, go to definition, formatting), Emmet, npm scripts
73+- Go (`golang.Go`): needs `go` and `gopls` in the sandbox → add the go-toolchain kit (`--kit ../kits/go-toolchain`)
74+- Rust (`rust-lang.rust-analyzer`): uses the `rust-analyzer` of the rust-toolchain kit (`--kit ../kits/rust-toolchain`)
75+- Git (source control view, merge conflicts), YAML, shell, Python, Dockerfile, Makefile, INI, logs (syntax), Material Icon Theme (file icons)
76+- [ACP Patchbay](https://open-vsx.org/extension/SolutionsUnity/acp-patchbay)
77+
78+To add one: put its `.vsix` URL from open-vsx in `theiaPlugins`, then recreate the sandbox.
79+
80+The terminals use the [Starship](https://starship.rs) prompt, configured in `mini-me-editor/starship.toml`
81+(standard Unicode symbols only: no Nerd Font needed in the browser). Its version is the `starship_version` kit arg.
82+
83+> Start the IDE on the host port of your choice (here `8080`), then open http://localhost:8080
84+```bash
85+cd demo
86+sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor
87+# or, once published:
88+sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.0.2 \
89+--kit docker.io/k33g/go-toolchain-kit:0.0.2
90+
91+# or, if you need rust
92+sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.0.2 \
93+--kit docker.io/k33g/go-toolchain-kit:0.0.2 \
94+--kit docker.io/k33g/rust-toolchain-kit:0.0.2
95+```
96+
97+> Or let sbx pick a free host port (it prints `published localhost:<port> -> 3000/tcp`)
98+```bash
99+cd demo
100+sbx run -d --name mm-editor ../mini-me-editor
101+sbx ports mm-editor
102+```
103+
104+- `-d` starts the sandbox without opening a session; drop it to get a shell in the sandbox.
105+- `-p` applies when the sandbox is created. To change the port of an existing sandbox:
106+ `sbx ports mm-editor --publish 9090:3000`
107+
108+> Theia logs, if the page does not answer
109+```bash
110+sbx exec mm-editor cat /tmp/theia.log
111+```
112+
113+## Toolchain kits (mixins)
114+
115+Add them to any of the kits above with `--kit`:
116+
117+| Kit | Provides | Version arg |
118+|---|---|---|
119+| `./kits/go-toolchain` | `go`, `gofmt`, `gopls` | `go_version` |
120+| `./kits/rust-toolchain` | `cargo`, `rustc`, `rustfmt`, `clippy`, `rust-analyzer`, plus `gcc` (linker, C build scripts) | `rust_version` |
121+
122+```bash
123+cd demo
124+sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor \
125+--kit ../kits/go-toolchain --kit ../kits/rust-toolchain
126+```
127+
128+## Release & publish
129+
130+1. Update `TAG` and `ABOUT` in `release.env`
131+2. Tag the release (commit, push, tag, push the tag):
132+ ```bash
133+ ./01-release.tag.sh
134+ ```
135+3. Publish the kits to Docker Hub (`linux/amd64` + `linux/arm64`, tags `<TAG without v>` and `latest`):
136+ ```bash
137+ docker login
138+ ./02-publish-kit.sh # ./mini-me -> k33g/mini-me-kit
139+ ./03-publish-go-toolchain-kit.sh # ./kits/go-toolchain -> k33g/go-toolchain-kit
140+ ./04-publish-rust-toolchain-kit.sh # ./kits/rust-toolchain -> k33g/rust-toolchain-kit
141+ ./05-publish-mini-me-editor-kit.sh # ./mini-me-editor -> k33g/mini-me-editor-kit
142+ ```
143+ - `DOCKER_HUB_NAMESPACE=<namespace>` to push under another namespace (default: `k33g`)
144+ - `SIGN=1` to sign the kit after the push (`sbx kit sign`)
145+
39146 ## Agent Client Protocol
40147
41148 ## ACP
@@ -20,6 +20,7 @@ sbx run --name mm-demo ../mini-me -- -tui -config agent.lucy.yaml
20 sbx settings set kit.allowedSources '["docker.io/","git.rickub.com/bots-garden/"]'20 sbx settings set kit.allowedSources '["docker.io/","git.rickub.com/bots-garden/"]'
21 ```21 ```
22 22
23+### From the Git repository
23 ```bash24 ```bash
24 cd demo25 cd demo
25 RELEASE=v0.0.226 RELEASE=v0.0.2
@@ -36,6 +37,112 @@ sbx run --name mm-demo-remote "${REPOSITORY}#ref=${RELEASE}&dir=mini-me" \
36 -- -tui -config agent.lucy.yaml37 -- -tui -config agent.lucy.yaml
37 ```38 ```
38 39
40+### From Docker Hub
41+```bash
42+cd demo
43+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2
44+```
45+
46+> Use it with another agent config file
47+```bash
48+cd demo
49+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 -- -config agent.lucy.yaml
50+```
51+
52+> Assemble with other kits
53+```bash
54+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 \
55+--kit ./kits/go-toolchain --kit ./kits/cli-tools \
56+-- -config agent.lucy.yaml
57+```
58+
59+> With the Go toolchain kit, also from Docker Hub
60+```bash
61+cd demo
62+sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.0.2 \
63+--kit docker.io/k33g/go-toolchain-kit:0.0.2
64+```
65+
66+## Mini Me Editor: Eclipse Theia (web IDE)
67+
68+`./mini-me-editor` runs the [Eclipse Theia](https://theia-ide.org/) IDE on the workspace
69+(port `3000` in the sandbox). `mm` is installed but not launched: start it from the Theia terminal.
70+
71+Extensions (from [open-vsx](https://open-vsx.org), listed in `mini-me-editor/theia/package.json` → `theiaPlugins`):
72+- JavaScript / TypeScript, HTML, CSS, JSON, Markdown: syntax + language features (completion, diagnostics, go to definition, formatting), Emmet, npm scripts
73+- Go (`golang.Go`): needs `go` and `gopls` in the sandbox → add the go-toolchain kit (`--kit ../kits/go-toolchain`)
74+- Rust (`rust-lang.rust-analyzer`): uses the `rust-analyzer` of the rust-toolchain kit (`--kit ../kits/rust-toolchain`)
75+- Git (source control view, merge conflicts), YAML, shell, Python, Dockerfile, Makefile, INI, logs (syntax), Material Icon Theme (file icons)
76+- [ACP Patchbay](https://open-vsx.org/extension/SolutionsUnity/acp-patchbay)
77+
78+To add one: put its `.vsix` URL from open-vsx in `theiaPlugins`, then recreate the sandbox.
79+
80+The terminals use the [Starship](https://starship.rs) prompt, configured in `mini-me-editor/starship.toml`
81+(standard Unicode symbols only: no Nerd Font needed in the browser). Its version is the `starship_version` kit arg.
82+
83+> Start the IDE on the host port of your choice (here `8080`), then open http://localhost:8080
84+```bash
85+cd demo
86+sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor
87+# or, once published:
88+sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.0.2 \
89+--kit docker.io/k33g/go-toolchain-kit:0.0.2
90+
91+# or, if you need rust
92+sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.0.2 \
93+--kit docker.io/k33g/go-toolchain-kit:0.0.2 \
94+--kit docker.io/k33g/rust-toolchain-kit:0.0.2
95+```
96+
97+> Or let sbx pick a free host port (it prints `published localhost:<port> -> 3000/tcp`)
98+```bash
99+cd demo
100+sbx run -d --name mm-editor ../mini-me-editor
101+sbx ports mm-editor
102+```
103+
104+- `-d` starts the sandbox without opening a session; drop it to get a shell in the sandbox.
105+- `-p` applies when the sandbox is created. To change the port of an existing sandbox:
106+ `sbx ports mm-editor --publish 9090:3000`
107+
108+> Theia logs, if the page does not answer
109+```bash
110+sbx exec mm-editor cat /tmp/theia.log
111+```
112+
113+## Toolchain kits (mixins)
114+
115+Add them to any of the kits above with `--kit`:
116+
117+| Kit | Provides | Version arg |
118+|---|---|---|
119+| `./kits/go-toolchain` | `go`, `gofmt`, `gopls` | `go_version` |
120+| `./kits/rust-toolchain` | `cargo`, `rustc`, `rustfmt`, `clippy`, `rust-analyzer`, plus `gcc` (linker, C build scripts) | `rust_version` |
121+
122+```bash
123+cd demo
124+sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor \
125+--kit ../kits/go-toolchain --kit ../kits/rust-toolchain
126+```
127+
128+## Release & publish
129+
130+1. Update `TAG` and `ABOUT` in `release.env`
131+2. Tag the release (commit, push, tag, push the tag):
132+ ```bash
133+ ./01-release.tag.sh
134+ ```
135+3. Publish the kits to Docker Hub (`linux/amd64` + `linux/arm64`, tags `<TAG without v>` and `latest`):
136+ ```bash
137+ docker login
138+ ./02-publish-kit.sh # ./mini-me -> k33g/mini-me-kit
139+ ./03-publish-go-toolchain-kit.sh # ./kits/go-toolchain -> k33g/go-toolchain-kit
140+ ./04-publish-rust-toolchain-kit.sh # ./kits/rust-toolchain -> k33g/rust-toolchain-kit
141+ ./05-publish-mini-me-editor-kit.sh # ./mini-me-editor -> k33g/mini-me-editor-kit
142+ ```
143+ - `DOCKER_HUB_NAMESPACE=<namespace>` to push under another namespace (default: `k33g`)
144+ - `SIGN=1` to sign the kit after the push (`sbx kit sign`)
145+
39 ## Agent Client Protocol146 ## Agent Client Protocol
40 147
41 ## ACP148 ## ACP
added kits/go-toolchain/go-context.md +6 -0
new file mode 100644
@@ -0,0 +1,6 @@
1+## Go
2+
3+`go`, `gofmt` and `gopls` are installed (`/usr/local/go`). Run `go build ./...`
4+and `go test ./...` before reporting a task complete. Prefer `gopls` for
5+navigation and refactoring (definitions, references, rename) over text search.
6+Module downloads go through `proxy.golang.org`; other hosts may be blocked.
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,6 @@
1+## Go
2+
3+`go`, `gofmt` and `gopls` are installed (`/usr/local/go`). Run `go build ./...`
4+and `go test ./...` before reporting a task complete. Prefer `gopls` for
5+navigation and refactoring (definitions, references, rename) over text search.
6+Module downloads go through `proxy.golang.org`; other hosts may be blocked.
\ No newline at end of file\ No newline at end of file
added kits/go-toolchain/go-toolchain.dockerfile +40 -0
new file mode 100644
@@ -0,0 +1,40 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: download Go, build gopls with that same Go -----------------
4+FROM debian:trixie-slim AS build
5+ARG GO_VERSION
6+ARG GOPLS_VERSION=latest
7+ARG TARGETARCH
8+
9+# A heredoc RUN does not stop at the first failing line by itself: every
10+# script starts with `set -eu`.
11+RUN <<EOF
12+set -eu
13+apt-get update
14+apt-get install -y --no-install-recommends curl ca-certificates
15+rm -rf /var/lib/apt/lists/*
16+EOF
17+
18+RUN <<EOF
19+set -eu
20+curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" \
21+ | tar -C /usr/local -xz
22+rm -rf /usr/local/go/test
23+EOF
24+
25+# Static gopls, installed straight into the overlay tree.
26+ENV PATH=/usr/local/go/bin:${PATH} \
27+ CGO_ENABLED=0 \
28+ GOBIN=/out/usr/local/bin \
29+ GOFLAGS=-trimpath
30+RUN <<EOF
31+set -eu
32+go install "golang.org/x/tools/gopls@${GOPLS_VERSION}"
33+ln -s /usr/local/go/bin/go /out/usr/local/bin/go
34+ln -s /usr/local/go/bin/gofmt /out/usr/local/bin/gofmt
35+EOF
36+
37+# --- overlay: only the toolchain and the binaries land on the workload -------
38+FROM scratch
39+COPY --from=build /usr/local/go /usr/local/go
40+COPY --from=build /out/ /
new file mode 100644
@@ -0,0 +1,40 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: download Go, build gopls with that same Go -----------------
4+FROM debian:trixie-slim AS build
5+ARG GO_VERSION
6+ARG GOPLS_VERSION=latest
7+ARG TARGETARCH
8+
9+# A heredoc RUN does not stop at the first failing line by itself: every
10+# script starts with `set -eu`.
11+RUN <<EOF
12+set -eu
13+apt-get update
14+apt-get install -y --no-install-recommends curl ca-certificates
15+rm -rf /var/lib/apt/lists/*
16+EOF
17+
18+RUN <<EOF
19+set -eu
20+curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" \
21+ | tar -C /usr/local -xz
22+rm -rf /usr/local/go/test
23+EOF
24+
25+# Static gopls, installed straight into the overlay tree.
26+ENV PATH=/usr/local/go/bin:${PATH} \
27+ CGO_ENABLED=0 \
28+ GOBIN=/out/usr/local/bin \
29+ GOFLAGS=-trimpath
30+RUN <<EOF
31+set -eu
32+go install "golang.org/x/tools/gopls@${GOPLS_VERSION}"
33+ln -s /usr/local/go/bin/go /out/usr/local/bin/go
34+ln -s /usr/local/go/bin/gofmt /out/usr/local/bin/gofmt
35+EOF
36+
37+# --- overlay: only the toolchain and the binaries land on the workload -------
38+FROM scratch
39+COPY --from=build /usr/local/go /usr/local/go
40+COPY --from=build /out/ /
added kits/go-toolchain/go-toolchain.yaml +33 -0
new file mode 100644
@@ -0,0 +1,33 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Go toolchain
5+description: Go toolchain and gopls (language server)
6+
7+args:
8+ go_version:
9+ default: "1.27.2" # mm requires Go 1.26+
10+ pattern: '^[0-9]+\.[0-9]+(\.[0-9]+)?$'
11+ buildArg: GO_VERSION
12+ gopls_version:
13+ # Pin a tag (e.g. v0.x.y) for reproducible builds.
14+ default: latest
15+ pattern: '^(latest|v[0-9]+\.[0-9]+\.[0-9]+)$'
16+ buildArg: GOPLS_VERSION
17+
18+provides: ["go@${{ kit.args.go_version }}"]
19+
20+capabilities:
21+ # Runtime access with the tool: module downloads and checksum DB.
22+ # Add private module hosts here (or in a kit set) if you need them.
23+ - type: com.docker.sandbox/network-policy@1
24+ config:
25+ runtime:
26+ allow:
27+ - proxy.golang.org
28+ - sum.golang.org
29+ - github.com
30+ - golang.org
31+ # - type: com.docker.sandbox/agent-context@1
32+ # config:
33+ # contentFile: ./go-context.md
new file mode 100644
@@ -0,0 +1,33 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Go toolchain
5+description: Go toolchain and gopls (language server)
6+
7+args:
8+ go_version:
9+ default: "1.27.2" # mm requires Go 1.26+
10+ pattern: '^[0-9]+\.[0-9]+(\.[0-9]+)?$'
11+ buildArg: GO_VERSION
12+ gopls_version:
13+ # Pin a tag (e.g. v0.x.y) for reproducible builds.
14+ default: latest
15+ pattern: '^(latest|v[0-9]+\.[0-9]+\.[0-9]+)$'
16+ buildArg: GOPLS_VERSION
17+
18+provides: ["go@${{ kit.args.go_version }}"]
19+
20+capabilities:
21+ # Runtime access with the tool: module downloads and checksum DB.
22+ # Add private module hosts here (or in a kit set) if you need them.
23+ - type: com.docker.sandbox/network-policy@1
24+ config:
25+ runtime:
26+ allow:
27+ - proxy.golang.org
28+ - sum.golang.org
29+ - github.com
30+ - golang.org
31+ # - type: com.docker.sandbox/agent-context@1
32+ # config:
33+ # contentFile: ./go-context.md
added kits/rust-toolchain/rust-context.md +8 -0
new file mode 100644
@@ -0,0 +1,8 @@
1+## Rust
2+
3+`cargo`, `rustc`, `rustfmt`, `clippy` and `rust-analyzer` are installed
4+(`/usr/local/rustup`), with `gcc` as the linker. Run `cargo build`, `cargo test`
5+and `cargo clippy` before reporting a task complete; format with `cargo fmt`.
6+Prefer `rust-analyzer` for navigation and refactoring (definitions, references,
7+rename) over text search. There is no `rustup`: the toolchain version is fixed
8+by the kit. Crates come from crates.io; other hosts may be blocked.
new file mode 100644
@@ -0,0 +1,8 @@
1+## Rust
2+
3+`cargo`, `rustc`, `rustfmt`, `clippy` and `rust-analyzer` are installed
4+(`/usr/local/rustup`), with `gcc` as the linker. Run `cargo build`, `cargo test`
5+and `cargo clippy` before reporting a task complete; format with `cargo fmt`.
6+Prefer `rust-analyzer` for navigation and refactoring (definitions, references,
7+rename) over text search. There is no `rustup`: the toolchain version is fixed
8+by the kit. Crates come from crates.io; other hosts may be blocked.
added kits/rust-toolchain/rust-toolchain.dockerfile +65 -0
new file mode 100644
@@ -0,0 +1,65 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: the Rust toolchain, through rustup ------------------------
4+FROM debian:trixie-slim AS rust
5+ARG RUST_VERSION
6+
7+# A heredoc RUN does not stop at the first failing line by itself: every
8+# script starts with `set -eu`.
9+RUN <<EOF
10+set -eu
11+apt-get update
12+apt-get install -y --no-install-recommends curl ca-certificates
13+rm -rf /var/lib/apt/lists/*
14+EOF
15+
16+# rust-src is what rust-analyzer reads the standard library from.
17+ENV RUSTUP_HOME=/usr/local/rustup \
18+ CARGO_HOME=/usr/local/cargo
19+RUN <<EOF
20+set -eu
21+curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path \
22+ --profile minimal \
23+ --default-toolchain "${RUST_VERSION}" \
24+ --component rustfmt,clippy,rust-analyzer,rust-src
25+EOF
26+
27+# The workload has no RUSTUP_HOME to find a toolchain with, so the rustup
28+# proxies would not work there: link the toolchain's own binaries instead.
29+# rustc finds its sysroot from its real path, through the links.
30+RUN <<EOF
31+set -eu
32+toolchain="$(ls -d /usr/local/rustup/toolchains/*)"
33+mkdir -p /out/usr/local/bin
34+for bin in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-analyzer; do
35+ ln -s "${toolchain}/bin/${bin}" "/out/usr/local/bin/${bin}"
36+done
37+# Kept in the overlay at the same path: the links point into it.
38+mkdir -p /out/usr/local/rustup/toolchains
39+mv "${toolchain}" /out/usr/local/rustup/toolchains/
40+EOF
41+
42+# --- linker stage: what the workload lacks to link, from its own distro ------
43+# rustc links through `cc`, and build scripts (the cc crate) compile C: the
44+# shell template has neither gcc nor binutils nor the libc headers. The .deb
45+# files apt would add to *that* image are unpacked into the overlay, so they
46+# match its Ubuntu release and the libraries already installed.
47+FROM docker/sandbox-templates:shell AS linker
48+USER root
49+RUN <<EOF
50+set -eu
51+apt-get update
52+apt-get install -y --no-install-recommends --download-only gcc libc6-dev
53+mkdir -p /out
54+for deb in /var/cache/apt/archives/*.deb; do
55+ dpkg-deb -x "${deb}" /out
56+done
57+# Set by update-alternatives in a real install, which unpacking skips.
58+ln -sf gcc /out/usr/bin/cc
59+rm -rf /out/usr/share/doc /out/usr/share/man /out/usr/share/info /out/usr/share/locale
60+EOF
61+
62+# --- overlay: only the toolchain, the links and the C toolchain land ---------
63+FROM scratch
64+COPY --from=linker /out/ /
65+COPY --from=rust /out/ /
new file mode 100644
@@ -0,0 +1,65 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: the Rust toolchain, through rustup ------------------------
4+FROM debian:trixie-slim AS rust
5+ARG RUST_VERSION
6+
7+# A heredoc RUN does not stop at the first failing line by itself: every
8+# script starts with `set -eu`.
9+RUN <<EOF
10+set -eu
11+apt-get update
12+apt-get install -y --no-install-recommends curl ca-certificates
13+rm -rf /var/lib/apt/lists/*
14+EOF
15+
16+# rust-src is what rust-analyzer reads the standard library from.
17+ENV RUSTUP_HOME=/usr/local/rustup \
18+ CARGO_HOME=/usr/local/cargo
19+RUN <<EOF
20+set -eu
21+curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path \
22+ --profile minimal \
23+ --default-toolchain "${RUST_VERSION}" \
24+ --component rustfmt,clippy,rust-analyzer,rust-src
25+EOF
26+
27+# The workload has no RUSTUP_HOME to find a toolchain with, so the rustup
28+# proxies would not work there: link the toolchain's own binaries instead.
29+# rustc finds its sysroot from its real path, through the links.
30+RUN <<EOF
31+set -eu
32+toolchain="$(ls -d /usr/local/rustup/toolchains/*)"
33+mkdir -p /out/usr/local/bin
34+for bin in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-analyzer; do
35+ ln -s "${toolchain}/bin/${bin}" "/out/usr/local/bin/${bin}"
36+done
37+# Kept in the overlay at the same path: the links point into it.
38+mkdir -p /out/usr/local/rustup/toolchains
39+mv "${toolchain}" /out/usr/local/rustup/toolchains/
40+EOF
41+
42+# --- linker stage: what the workload lacks to link, from its own distro ------
43+# rustc links through `cc`, and build scripts (the cc crate) compile C: the
44+# shell template has neither gcc nor binutils nor the libc headers. The .deb
45+# files apt would add to *that* image are unpacked into the overlay, so they
46+# match its Ubuntu release and the libraries already installed.
47+FROM docker/sandbox-templates:shell AS linker
48+USER root
49+RUN <<EOF
50+set -eu
51+apt-get update
52+apt-get install -y --no-install-recommends --download-only gcc libc6-dev
53+mkdir -p /out
54+for deb in /var/cache/apt/archives/*.deb; do
55+ dpkg-deb -x "${deb}" /out
56+done
57+# Set by update-alternatives in a real install, which unpacking skips.
58+ln -sf gcc /out/usr/bin/cc
59+rm -rf /out/usr/share/doc /out/usr/share/man /out/usr/share/info /out/usr/share/locale
60+EOF
61+
62+# --- overlay: only the toolchain, the links and the C toolchain land ---------
63+FROM scratch
64+COPY --from=linker /out/ /
65+COPY --from=rust /out/ /
added kits/rust-toolchain/rust-toolchain.yaml +29 -0
new file mode 100644
@@ -0,0 +1,29 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Rust toolchain
5+description: Rust toolchain (cargo, rustc, rustfmt, clippy) and rust-analyzer (language server)
6+
7+args:
8+ rust_version:
9+ # A Rust release (e.g. 1.99.0), or stable / beta / nightly (not reproducible).
10+ default: "1.99.0"
11+ pattern: '^([0-9]+\.[0-9]+(\.[0-9]+)?|stable|beta|nightly)$'
12+ buildArg: RUST_VERSION
13+
14+provides: ["rust@${{ kit.args.rust_version }}"]
15+
16+capabilities:
17+ # Runtime access with the tool: the crates.io index and crate downloads.
18+ # Add private registries / git hosts here (or in a kit set) if you need them.
19+ - type: com.docker.sandbox/network-policy@1
20+ config:
21+ runtime:
22+ allow:
23+ - index.crates.io
24+ - static.crates.io
25+ - crates.io
26+ - github.com
27+ # - type: com.docker.sandbox/agent-context@1
28+ # config:
29+ # contentFile: ./rust-context.md
new file mode 100644
@@ -0,0 +1,29 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Rust toolchain
5+description: Rust toolchain (cargo, rustc, rustfmt, clippy) and rust-analyzer (language server)
6+
7+args:
8+ rust_version:
9+ # A Rust release (e.g. 1.99.0), or stable / beta / nightly (not reproducible).
10+ default: "1.99.0"
11+ pattern: '^([0-9]+\.[0-9]+(\.[0-9]+)?|stable|beta|nightly)$'
12+ buildArg: RUST_VERSION
13+
14+provides: ["rust@${{ kit.args.rust_version }}"]
15+
16+capabilities:
17+ # Runtime access with the tool: the crates.io index and crate downloads.
18+ # Add private registries / git hosts here (or in a kit set) if you need them.
19+ - type: com.docker.sandbox/network-policy@1
20+ config:
21+ runtime:
22+ allow:
23+ - index.crates.io
24+ - static.crates.io
25+ - crates.io
26+ - github.com
27+ # - type: com.docker.sandbox/agent-context@1
28+ # config:
29+ # contentFile: ./rust-context.md
added mini-me-editor/mini-me-editor.dockerfile +82 -0
new file mode 100644
@@ -0,0 +1,82 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: a browser Theia app, from theia/package.json ----------------
4+# Debian bookworm (glibc 2.36) builds binaries that run on the Ubuntu base below.
5+FROM node:22-bookworm AS theia
6+ARG THEIA_VERSION
7+
8+RUN <<EOF
9+set -eu
10+apt-get update
11+apt-get install -y --no-install-recommends python3 make g++ libsecret-1-dev
12+rm -rf /var/lib/apt/lists/*
13+EOF
14+
15+WORKDIR /opt/theia/app
16+COPY theia/package.json ./
17+# Every @theia/* package is pinned to the same version (THEIA_VERSION).
18+RUN sed -i "s/\"THEIA_VERSION\"/\"${THEIA_VERSION}\"/g" package.json
19+
20+RUN <<EOF
21+set -eu
22+yarn install --network-timeout 600000
23+yarn build
24+yarn download:plugins
25+# Drop the build tooling (@theia/cli, webpack, ...): only runtime deps stay.
26+yarn install --production --network-timeout 600000
27+# No `yarn autoclean`: its default patterns delete `test` folders, and the
28+# backend loads @theia/test at startup.
29+yarn cache clean
30+EOF
31+
32+# --- workload: Docker's shell template + mm + Theia --------------------------
33+# Base: Ubuntu, non-root `agent` user (UID 1000), bash, git, curl, CA certs.
34+FROM docker/sandbox-templates:shell
35+
36+USER root
37+
38+ARG TARGETARCH
39+ARG MM_VERSION
40+ARG STARSHIP_VERSION
41+
42+RUN <<EOF
43+set -eu
44+curl -fsSL "https://rickub.com/bots-garden/mini-me/releases/download/${MM_VERSION}/mm-${MM_VERSION#v}-linux-${TARGETARCH}" -o /usr/local/bin/mm
45+chmod 0755 /usr/local/bin/mm
46+EOF
47+
48+# Starship prompt: a static (musl) Linux binary, named by CPU as Rust does.
49+RUN <<EOF
50+set -eu
51+case "${TARGETARCH}" in
52+ amd64) arch=x86_64 ;;
53+ arm64) arch=aarch64 ;;
54+ *) echo "unsupported arch: ${TARGETARCH}" >&2; exit 1 ;;
55+esac
56+curl -fsSL "https://github.com/starship/starship/releases/download/${STARSHIP_VERSION}/starship-${arch}-unknown-linux-musl.tar.gz" \
57+ | tar -xz -C /usr/local/bin starship
58+chmod 0755 /usr/local/bin/starship
59+EOF
60+
61+# Theia ships with the Node.js it was built with: its native modules are tied
62+# to that Node ABI, whatever version the base image moves to.
63+COPY --from=theia /usr/local/bin/node /opt/theia/node/bin/node
64+COPY --from=theia --chown=agent:agent /opt/theia/app /opt/theia/app
65+COPY --chmod=0755 start-theia.sh /usr/local/bin/start-theia
66+
67+# The base image sets no locale, so programs run in Theia's terminals (mm -tui)
68+# would fall back to "C" and mangle UTF-8 characters.
69+ENV LANG=C.UTF-8 \
70+ LC_ALL=C.UTF-8
71+
72+# Every interactive bash (Theia's terminals, `sbx run`'s shell) gets the prompt.
73+COPY --chown=agent:agent starship.toml /home/agent/.config/starship.toml
74+RUN echo 'eval "$(starship init bash)"' >> /home/agent/.bashrc
75+
76+# Back to the sandbox user. A session opens a shell, not mm. Theia is started
77+# by the kit's startup hook, attached session or not (`sbx run -d`).
78+# Plain bash, not the base image's `tini -- bash`: sbx runs the launch command
79+# in an already started container, where tini is not PID 1 and warns about it.
80+USER agent
81+ENTRYPOINT ["/bin/bash"]
82+CMD []
new file mode 100644
@@ -0,0 +1,82 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: a browser Theia app, from theia/package.json ----------------
4+# Debian bookworm (glibc 2.36) builds binaries that run on the Ubuntu base below.
5+FROM node:22-bookworm AS theia
6+ARG THEIA_VERSION
7+
8+RUN <<EOF
9+set -eu
10+apt-get update
11+apt-get install -y --no-install-recommends python3 make g++ libsecret-1-dev
12+rm -rf /var/lib/apt/lists/*
13+EOF
14+
15+WORKDIR /opt/theia/app
16+COPY theia/package.json ./
17+# Every @theia/* package is pinned to the same version (THEIA_VERSION).
18+RUN sed -i "s/\"THEIA_VERSION\"/\"${THEIA_VERSION}\"/g" package.json
19+
20+RUN <<EOF
21+set -eu
22+yarn install --network-timeout 600000
23+yarn build
24+yarn download:plugins
25+# Drop the build tooling (@theia/cli, webpack, ...): only runtime deps stay.
26+yarn install --production --network-timeout 600000
27+# No `yarn autoclean`: its default patterns delete `test` folders, and the
28+# backend loads @theia/test at startup.
29+yarn cache clean
30+EOF
31+
32+# --- workload: Docker's shell template + mm + Theia --------------------------
33+# Base: Ubuntu, non-root `agent` user (UID 1000), bash, git, curl, CA certs.
34+FROM docker/sandbox-templates:shell
35+
36+USER root
37+
38+ARG TARGETARCH
39+ARG MM_VERSION
40+ARG STARSHIP_VERSION
41+
42+RUN <<EOF
43+set -eu
44+curl -fsSL "https://rickub.com/bots-garden/mini-me/releases/download/${MM_VERSION}/mm-${MM_VERSION#v}-linux-${TARGETARCH}" -o /usr/local/bin/mm
45+chmod 0755 /usr/local/bin/mm
46+EOF
47+
48+# Starship prompt: a static (musl) Linux binary, named by CPU as Rust does.
49+RUN <<EOF
50+set -eu
51+case "${TARGETARCH}" in
52+ amd64) arch=x86_64 ;;
53+ arm64) arch=aarch64 ;;
54+ *) echo "unsupported arch: ${TARGETARCH}" >&2; exit 1 ;;
55+esac
56+curl -fsSL "https://github.com/starship/starship/releases/download/${STARSHIP_VERSION}/starship-${arch}-unknown-linux-musl.tar.gz" \
57+ | tar -xz -C /usr/local/bin starship
58+chmod 0755 /usr/local/bin/starship
59+EOF
60+
61+# Theia ships with the Node.js it was built with: its native modules are tied
62+# to that Node ABI, whatever version the base image moves to.
63+COPY --from=theia /usr/local/bin/node /opt/theia/node/bin/node
64+COPY --from=theia --chown=agent:agent /opt/theia/app /opt/theia/app
65+COPY --chmod=0755 start-theia.sh /usr/local/bin/start-theia
66+
67+# The base image sets no locale, so programs run in Theia's terminals (mm -tui)
68+# would fall back to "C" and mangle UTF-8 characters.
69+ENV LANG=C.UTF-8 \
70+ LC_ALL=C.UTF-8
71+
72+# Every interactive bash (Theia's terminals, `sbx run`'s shell) gets the prompt.
73+COPY --chown=agent:agent starship.toml /home/agent/.config/starship.toml
74+RUN echo 'eval "$(starship init bash)"' >> /home/agent/.bashrc
75+
76+# Back to the sandbox user. A session opens a shell, not mm. Theia is started
77+# by the kit's startup hook, attached session or not (`sbx run -d`).
78+# Plain bash, not the base image's `tini -- bash`: sbx runs the launch command
79+# in an already started container, where tini is not PID 1 and warns about it.
80+USER agent
81+ENTRYPOINT ["/bin/bash"]
82+CMD []
added mini-me-editor/mini-me-editor.yaml +57 -0
new file mode 100644
@@ -0,0 +1,57 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: workload
4+displayName: Mini Me Editor
5+description: Eclipse Theia web IDE on the workspace, with Mini Me (mm) installed (not launched)
6+sourceUrl: https://rickub.com/bots-garden/mini-me
7+
8+provides: ["mini-me@0.4.0", "theia@${{ kit.args.theia_version }}"]
9+
10+dockerfile: ./mini-me-editor.dockerfile
11+
12+args:
13+ mm_version:
14+ # A release tag of https://rickub.com/bots-garden/mini-me/releases
15+ default: "v0.4.0"
16+ pattern: '^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$'
17+ buildArg: MM_VERSION
18+ theia_version:
19+ # A version of the @theia/* packages on npm
20+ default: "1.76.0"
21+ pattern: '^[0-9]+\.[0-9]+\.[0-9]+$'
22+ buildArg: THEIA_VERSION
23+ starship_version:
24+ # A release tag of https://github.com/starship/starship/releases
25+ default: "v1.26.0"
26+ pattern: '^v[0-9]+\.[0-9]+\.[0-9]+$'
27+ buildArg: STARSHIP_VERSION
28+
29+capabilities:
30+ # The workload is prepared for sbx to launch it (agent user, bash, ...).
31+ - type: com.docker.sandbox/sbx@1
32+
33+ # Egress is deny-by-default. mm talks to a model server running on the host.
34+ # Check the port/host for your setup, then `sbx policy log` if it is blocked.
35+ - type: com.docker.sandbox/network-policy@1
36+ config:
37+ runtime:
38+ allow:
39+ - host.docker.internal:12434 # Docker Model Runner
40+ - host.docker.internal:11434 # Ollama
41+ - host.docker.internal:17434 # Llmman
42+
43+ # Theia listens on 3000 in the sandbox.
44+ # - `sbx run -p 8080:3000 ...` publishes it on the host port of your choice;
45+ # - without -p, sbx picks a free host port and prints it
46+ # ("published localhost:<port> -> 3000/tcp"), `sbx ports <name>` too.
47+ - type: com.docker.sandbox/port@1
48+ config: {name: theia, container: 3000, transport: tcp}
49+
50+ # Theia runs in the background on the workspace, at every sandbox start.
51+ - type: com.docker.sandbox/lifecycle@1
52+ config:
53+ startup:
54+ - command: [/usr/local/bin/start-theia]
55+ background: true
56+ env: [WORKSPACE_DIR]
57+ description: Start the Theia web IDE on port 3000
new file mode 100644
@@ -0,0 +1,57 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: workload
4+displayName: Mini Me Editor
5+description: Eclipse Theia web IDE on the workspace, with Mini Me (mm) installed (not launched)
6+sourceUrl: https://rickub.com/bots-garden/mini-me
7+
8+provides: ["mini-me@0.4.0", "theia@${{ kit.args.theia_version }}"]
9+
10+dockerfile: ./mini-me-editor.dockerfile
11+
12+args:
13+ mm_version:
14+ # A release tag of https://rickub.com/bots-garden/mini-me/releases
15+ default: "v0.4.0"
16+ pattern: '^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$'
17+ buildArg: MM_VERSION
18+ theia_version:
19+ # A version of the @theia/* packages on npm
20+ default: "1.76.0"
21+ pattern: '^[0-9]+\.[0-9]+\.[0-9]+$'
22+ buildArg: THEIA_VERSION
23+ starship_version:
24+ # A release tag of https://github.com/starship/starship/releases
25+ default: "v1.26.0"
26+ pattern: '^v[0-9]+\.[0-9]+\.[0-9]+$'
27+ buildArg: STARSHIP_VERSION
28+
29+capabilities:
30+ # The workload is prepared for sbx to launch it (agent user, bash, ...).
31+ - type: com.docker.sandbox/sbx@1
32+
33+ # Egress is deny-by-default. mm talks to a model server running on the host.
34+ # Check the port/host for your setup, then `sbx policy log` if it is blocked.
35+ - type: com.docker.sandbox/network-policy@1
36+ config:
37+ runtime:
38+ allow:
39+ - host.docker.internal:12434 # Docker Model Runner
40+ - host.docker.internal:11434 # Ollama
41+ - host.docker.internal:17434 # Llmman
42+
43+ # Theia listens on 3000 in the sandbox.
44+ # - `sbx run -p 8080:3000 ...` publishes it on the host port of your choice;
45+ # - without -p, sbx picks a free host port and prints it
46+ # ("published localhost:<port> -> 3000/tcp"), `sbx ports <name>` too.
47+ - type: com.docker.sandbox/port@1
48+ config: {name: theia, container: 3000, transport: tcp}
49+
50+ # Theia runs in the background on the workspace, at every sandbox start.
51+ - type: com.docker.sandbox/lifecycle@1
52+ config:
53+ startup:
54+ - command: [/usr/local/bin/start-theia]
55+ background: true
56+ env: [WORKSPACE_DIR]
57+ description: Start the Theia web IDE on port 3000
added mini-me-editor/starship.toml +34 -0
new file mode 100644
@@ -0,0 +1,34 @@
1+# Starship prompt for the terminals of the sandbox (Theia's and `sbx run`'s).
2+# Doc: https://starship.rs/config/
3+#
4+# Based on the "no-nerd-font" preset (`starship preset no-nerd-font`): the
5+# terminal font is the browser's, on the host, so the prompt only uses
6+# standard Unicode symbols, no Nerd Font glyph.
7+
8+# Slow commands (e.g. `go version` on a cold cache) must not hang the prompt.
9+command_timeout = 1000
10+
11+"$schema" = 'https://starship.rs/config-schema.json'
12+
13+[azure]
14+symbol = "☁️ "
15+
16+[battery]
17+full_symbol = "• "
18+charging_symbol = "⇡ "
19+discharging_symbol = "⇣ "
20+unknown_symbol = "❓ "
21+empty_symbol = "❗ "
22+
23+[erlang]
24+symbol = "ⓔ "
25+
26+[nodejs]
27+symbol = "[⬢](bold green) "
28+
29+[pulumi]
30+symbol = "🧊 "
31+
32+# The default branch symbol is a Powerline glyph (U+E0A0), not in the preset.
33+[git_branch]
34+symbol = "⎇ "
new file mode 100644
@@ -0,0 +1,34 @@
1+# Starship prompt for the terminals of the sandbox (Theia's and `sbx run`'s).
2+# Doc: https://starship.rs/config/
3+#
4+# Based on the "no-nerd-font" preset (`starship preset no-nerd-font`): the
5+# terminal font is the browser's, on the host, so the prompt only uses
6+# standard Unicode symbols, no Nerd Font glyph.
7+
8+# Slow commands (e.g. `go version` on a cold cache) must not hang the prompt.
9+command_timeout = 1000
10+
11+"$schema" = 'https://starship.rs/config-schema.json'
12+
13+[azure]
14+symbol = "☁️ "
15+
16+[battery]
17+full_symbol = "• "
18+charging_symbol = "⇡ "
19+discharging_symbol = "⇣ "
20+unknown_symbol = "❓ "
21+empty_symbol = "❗ "
22+
23+[erlang]
24+symbol = "ⓔ "
25+
26+[nodejs]
27+symbol = "[⬢](bold green) "
28+
29+[pulumi]
30+symbol = "🧊 "
31+
32+# The default branch symbol is a Powerline glyph (U+E0A0), not in the preset.
33+[git_branch]
34+symbol = "⎇ "
added mini-me-editor/start-theia.sh +28 -0
new file mode 100644
@@ -0,0 +1,28 @@
1+#!/bin/bash
2+# Start the Theia web IDE on the sandbox workspace, in the background.
3+# Run by the kit's startup hook; logs go to /tmp/theia.log.
4+#
5+# THEIA_PORT port Theia listens on (default 3000)
6+# WORKSPACE_DIR folder opened in the IDE (set by sbx)
7+set -eu
8+
9+PORT="${THEIA_PORT:-3000}"
10+
11+# Theia's terminals inherit this environment. Forced, not defaulted: sbx runs
12+# startup hooks with LC_ALL=C exported and through `su -s /bin/sh`, so
13+# - without a UTF-8 locale, TUIs (mm -tui, tcell) fall back to ASCII:
14+# "?" for arrows, "o" for bullets, no spinner;
15+# - without SHELL=bash, Theia's terminals open sh.
16+export LANG=C.UTF-8
17+export LC_ALL=C.UTF-8
18+export SHELL=/bin/bash
19+export COLORTERM=truecolor
20+WORKSPACE="${WORKSPACE_DIR:-/home/agent/workspace}"
21+
22+# Bind every interface, not only 127.0.0.1: the published port reaches the
23+# sandbox through eth0.
24+nohup /opt/theia/node/bin/node /opt/theia/app/src-gen/backend/main.js "${WORKSPACE}" \
25+ --hostname 0.0.0.0 \
26+ --port "${PORT}" \
27+ --plugins=local-dir:/opt/theia/app/plugins \
28+ >/tmp/theia.log 2>&1 &
new file mode 100644
@@ -0,0 +1,28 @@
1+#!/bin/bash
2+# Start the Theia web IDE on the sandbox workspace, in the background.
3+# Run by the kit's startup hook; logs go to /tmp/theia.log.
4+#
5+# THEIA_PORT port Theia listens on (default 3000)
6+# WORKSPACE_DIR folder opened in the IDE (set by sbx)
7+set -eu
8+
9+PORT="${THEIA_PORT:-3000}"
10+
11+# Theia's terminals inherit this environment. Forced, not defaulted: sbx runs
12+# startup hooks with LC_ALL=C exported and through `su -s /bin/sh`, so
13+# - without a UTF-8 locale, TUIs (mm -tui, tcell) fall back to ASCII:
14+# "?" for arrows, "o" for bullets, no spinner;
15+# - without SHELL=bash, Theia's terminals open sh.
16+export LANG=C.UTF-8
17+export LC_ALL=C.UTF-8
18+export SHELL=/bin/bash
19+export COLORTERM=truecolor
20+WORKSPACE="${WORKSPACE_DIR:-/home/agent/workspace}"
21+
22+# Bind every interface, not only 127.0.0.1: the published port reaches the
23+# sandbox through eth0.
24+nohup /opt/theia/node/bin/node /opt/theia/app/src-gen/backend/main.js "${WORKSPACE}" \
25+ --hostname 0.0.0.0 \
26+ --port "${PORT}" \
27+ --plugins=local-dir:/opt/theia/app/plugins \
28+ >/tmp/theia.log 2>&1 &
added mini-me-editor/theia/package.json +88 -0
new file mode 100644
@@ -0,0 +1,88 @@
1+{
2+ "private": true,
3+ "name": "mini-me-editor",
4+ "version": "0.0.0",
5+ "theia": {
6+ "target": "browser",
7+ "frontend": {
8+ "config": {
9+ "applicationName": "Mini Me Editor",
10+ "preferences": {
11+ "workbench.colorTheme": "Dark (Theia)",
12+ "files.enableTrash": false,
13+ "workbench.iconTheme": "material-icon-theme",
14+ "go.toolsManagement.autoUpdate": false,
15+ "rust-analyzer.server.path": "/usr/local/bin/rust-analyzer"
16+ }
17+ }
18+ },
19+ "backend": {
20+ "config": {
21+ "startupTimeout": -1
22+ }
23+ }
24+ },
25+ "theiaPluginsDir": "plugins",
26+ "theiaPlugins": {
27+ "vscode.theme-defaults": "https://open-vsx.org/api/vscode/theme-defaults/1.95.3/file/vscode.theme-defaults-1.95.3.vsix",
28+ "vscode.vscode-theme-seti": "https://open-vsx.org/api/vscode/vscode-theme-seti/1.95.3/file/vscode.vscode-theme-seti-1.95.3.vsix",
29+ "vscode.go": "https://open-vsx.org/api/vscode/go/1.95.3/file/vscode.go-1.95.3.vsix",
30+ "vscode.javascript": "https://open-vsx.org/api/vscode/javascript/1.95.3/file/vscode.javascript-1.95.3.vsix",
31+ "vscode.typescript": "https://open-vsx.org/api/vscode/typescript/1.95.3/file/vscode.typescript-1.95.3.vsix",
32+ "vscode.json": "https://open-vsx.org/api/vscode/json/1.95.3/file/vscode.json-1.95.3.vsix",
33+ "vscode.yaml": "https://open-vsx.org/api/vscode/yaml/1.95.3/file/vscode.yaml-1.95.3.vsix",
34+ "vscode.markdown": "https://open-vsx.org/api/vscode/markdown/1.95.3/file/vscode.markdown-1.95.3.vsix",
35+ "vscode.shellscript": "https://open-vsx.org/api/vscode/shellscript/1.95.3/file/vscode.shellscript-1.95.3.vsix",
36+ "vscode.python": "https://open-vsx.org/api/vscode/python/1.95.3/file/vscode.python-1.95.3.vsix",
37+ "vscode.docker": "https://open-vsx.org/api/vscode/docker/1.95.3/file/vscode.docker-1.95.3.vsix",
38+ "vscode.css": "https://open-vsx.org/api/vscode/css/1.95.3/file/vscode.css-1.95.3.vsix",
39+ "vscode.html": "https://open-vsx.org/api/vscode/html/1.95.3/file/vscode.html-1.95.3.vsix",
40+ "vscode.ini": "https://open-vsx.org/api/vscode/ini/1.95.3/file/vscode.ini-1.95.3.vsix",
41+ "vscode.make": "https://open-vsx.org/api/vscode/make/1.95.3/file/vscode.make-1.95.3.vsix",
42+ "vscode.log": "https://open-vsx.org/api/vscode/log/1.95.3/file/vscode.log-1.95.3.vsix",
43+ "vscode.typescript-language-features": "https://open-vsx.org/api/vscode/typescript-language-features/1.95.3/file/vscode.typescript-language-features-1.95.3.vsix",
44+ "vscode.html-language-features": "https://open-vsx.org/api/vscode/html-language-features/1.95.3/file/vscode.html-language-features-1.95.3.vsix",
45+ "vscode.css-language-features": "https://open-vsx.org/api/vscode/css-language-features/1.95.3/file/vscode.css-language-features-1.95.3.vsix",
46+ "vscode.json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.95.3/file/vscode.json-language-features-1.95.3.vsix",
47+ "vscode.markdown-language-features": "https://open-vsx.org/api/vscode/markdown-language-features/1.95.3/file/vscode.markdown-language-features-1.95.3.vsix",
48+ "vscode.emmet": "https://open-vsx.org/api/vscode/emmet/1.95.3/file/vscode.emmet-1.95.3.vsix",
49+ "vscode.npm": "https://open-vsx.org/api/vscode/npm/1.95.3/file/vscode.npm-1.95.3.vsix",
50+ "vscode.configuration-editing": "https://open-vsx.org/api/vscode/configuration-editing/1.95.3/file/vscode.configuration-editing-1.95.3.vsix",
51+ "vscode.git-base": "https://open-vsx.org/api/vscode/git-base/1.95.3/file/vscode.git-base-1.95.3.vsix",
52+ "vscode.git": "https://open-vsx.org/api/vscode/git/1.95.3/file/vscode.git-1.95.3.vsix",
53+ "vscode.merge-conflict": "https://open-vsx.org/api/vscode/merge-conflict/1.95.3/file/vscode.merge-conflict-1.95.3.vsix",
54+ "vscode.media-preview": "https://open-vsx.org/api/vscode/media-preview/1.95.3/file/vscode.media-preview-1.95.3.vsix",
55+ "golang.Go": "https://open-vsx.org/api/golang/Go/0.56.1/file/golang.Go-0.56.1.vsix",
56+ "rust-lang.rust-analyzer": "https://open-vsx.org/api/rust-lang/rust-analyzer/0.4.3082/file/rust-lang.rust-analyzer-0.4.3082.vsix",
57+ "SolutionsUnity.acp-patchbay": "https://open-vsx.org/api/SolutionsUnity/acp-patchbay/0.86.0/file/SolutionsUnity.acp-patchbay-0.86.0.vsix",
58+ "PKief.material-icon-theme": "https://open-vsx.org/api/PKief/material-icon-theme/5.39.0/file/PKief.material-icon-theme-5.39.0.vsix"
59+ },
60+ "dependencies": {
61+ "@theia/core": "THEIA_VERSION",
62+ "@theia/editor": "THEIA_VERSION",
63+ "@theia/file-search": "THEIA_VERSION",
64+ "@theia/filesystem": "THEIA_VERSION",
65+ "@theia/markers": "THEIA_VERSION",
66+ "@theia/messages": "THEIA_VERSION",
67+ "@theia/monaco": "THEIA_VERSION",
68+ "@theia/navigator": "THEIA_VERSION",
69+ "@theia/outline-view": "THEIA_VERSION",
70+ "@theia/plugin-ext": "THEIA_VERSION",
71+ "@theia/plugin-ext-vscode": "THEIA_VERSION",
72+ "@theia/preferences": "THEIA_VERSION",
73+ "@theia/process": "THEIA_VERSION",
74+ "@theia/scm": "THEIA_VERSION",
75+ "@theia/search-in-workspace": "THEIA_VERSION",
76+ "@theia/terminal": "THEIA_VERSION",
77+ "@theia/workspace": "THEIA_VERSION",
78+ "react": "^19.0.0",
79+ "react-dom": "^19.0.0"
80+ },
81+ "devDependencies": {
82+ "@theia/cli": "THEIA_VERSION"
83+ },
84+ "scripts": {
85+ "build": "theia build --mode production",
86+ "download:plugins": "theia download:plugins --rate-limit=15 --parallel=false"
87+ }
88+}
new file mode 100644
@@ -0,0 +1,88 @@
1+{
2+ "private": true,
3+ "name": "mini-me-editor",
4+ "version": "0.0.0",
5+ "theia": {
6+ "target": "browser",
7+ "frontend": {
8+ "config": {
9+ "applicationName": "Mini Me Editor",
10+ "preferences": {
11+ "workbench.colorTheme": "Dark (Theia)",
12+ "files.enableTrash": false,
13+ "workbench.iconTheme": "material-icon-theme",
14+ "go.toolsManagement.autoUpdate": false,
15+ "rust-analyzer.server.path": "/usr/local/bin/rust-analyzer"
16+ }
17+ }
18+ },
19+ "backend": {
20+ "config": {
21+ "startupTimeout": -1
22+ }
23+ }
24+ },
25+ "theiaPluginsDir": "plugins",
26+ "theiaPlugins": {
27+ "vscode.theme-defaults": "https://open-vsx.org/api/vscode/theme-defaults/1.95.3/file/vscode.theme-defaults-1.95.3.vsix",
28+ "vscode.vscode-theme-seti": "https://open-vsx.org/api/vscode/vscode-theme-seti/1.95.3/file/vscode.vscode-theme-seti-1.95.3.vsix",
29+ "vscode.go": "https://open-vsx.org/api/vscode/go/1.95.3/file/vscode.go-1.95.3.vsix",
30+ "vscode.javascript": "https://open-vsx.org/api/vscode/javascript/1.95.3/file/vscode.javascript-1.95.3.vsix",
31+ "vscode.typescript": "https://open-vsx.org/api/vscode/typescript/1.95.3/file/vscode.typescript-1.95.3.vsix",
32+ "vscode.json": "https://open-vsx.org/api/vscode/json/1.95.3/file/vscode.json-1.95.3.vsix",
33+ "vscode.yaml": "https://open-vsx.org/api/vscode/yaml/1.95.3/file/vscode.yaml-1.95.3.vsix",
34+ "vscode.markdown": "https://open-vsx.org/api/vscode/markdown/1.95.3/file/vscode.markdown-1.95.3.vsix",
35+ "vscode.shellscript": "https://open-vsx.org/api/vscode/shellscript/1.95.3/file/vscode.shellscript-1.95.3.vsix",
36+ "vscode.python": "https://open-vsx.org/api/vscode/python/1.95.3/file/vscode.python-1.95.3.vsix",
37+ "vscode.docker": "https://open-vsx.org/api/vscode/docker/1.95.3/file/vscode.docker-1.95.3.vsix",
38+ "vscode.css": "https://open-vsx.org/api/vscode/css/1.95.3/file/vscode.css-1.95.3.vsix",
39+ "vscode.html": "https://open-vsx.org/api/vscode/html/1.95.3/file/vscode.html-1.95.3.vsix",
40+ "vscode.ini": "https://open-vsx.org/api/vscode/ini/1.95.3/file/vscode.ini-1.95.3.vsix",
41+ "vscode.make": "https://open-vsx.org/api/vscode/make/1.95.3/file/vscode.make-1.95.3.vsix",
42+ "vscode.log": "https://open-vsx.org/api/vscode/log/1.95.3/file/vscode.log-1.95.3.vsix",
43+ "vscode.typescript-language-features": "https://open-vsx.org/api/vscode/typescript-language-features/1.95.3/file/vscode.typescript-language-features-1.95.3.vsix",
44+ "vscode.html-language-features": "https://open-vsx.org/api/vscode/html-language-features/1.95.3/file/vscode.html-language-features-1.95.3.vsix",
45+ "vscode.css-language-features": "https://open-vsx.org/api/vscode/css-language-features/1.95.3/file/vscode.css-language-features-1.95.3.vsix",
46+ "vscode.json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.95.3/file/vscode.json-language-features-1.95.3.vsix",
47+ "vscode.markdown-language-features": "https://open-vsx.org/api/vscode/markdown-language-features/1.95.3/file/vscode.markdown-language-features-1.95.3.vsix",
48+ "vscode.emmet": "https://open-vsx.org/api/vscode/emmet/1.95.3/file/vscode.emmet-1.95.3.vsix",
49+ "vscode.npm": "https://open-vsx.org/api/vscode/npm/1.95.3/file/vscode.npm-1.95.3.vsix",
50+ "vscode.configuration-editing": "https://open-vsx.org/api/vscode/configuration-editing/1.95.3/file/vscode.configuration-editing-1.95.3.vsix",
51+ "vscode.git-base": "https://open-vsx.org/api/vscode/git-base/1.95.3/file/vscode.git-base-1.95.3.vsix",
52+ "vscode.git": "https://open-vsx.org/api/vscode/git/1.95.3/file/vscode.git-1.95.3.vsix",
53+ "vscode.merge-conflict": "https://open-vsx.org/api/vscode/merge-conflict/1.95.3/file/vscode.merge-conflict-1.95.3.vsix",
54+ "vscode.media-preview": "https://open-vsx.org/api/vscode/media-preview/1.95.3/file/vscode.media-preview-1.95.3.vsix",
55+ "golang.Go": "https://open-vsx.org/api/golang/Go/0.56.1/file/golang.Go-0.56.1.vsix",
56+ "rust-lang.rust-analyzer": "https://open-vsx.org/api/rust-lang/rust-analyzer/0.4.3082/file/rust-lang.rust-analyzer-0.4.3082.vsix",
57+ "SolutionsUnity.acp-patchbay": "https://open-vsx.org/api/SolutionsUnity/acp-patchbay/0.86.0/file/SolutionsUnity.acp-patchbay-0.86.0.vsix",
58+ "PKief.material-icon-theme": "https://open-vsx.org/api/PKief/material-icon-theme/5.39.0/file/PKief.material-icon-theme-5.39.0.vsix"
59+ },
60+ "dependencies": {
61+ "@theia/core": "THEIA_VERSION",
62+ "@theia/editor": "THEIA_VERSION",
63+ "@theia/file-search": "THEIA_VERSION",
64+ "@theia/filesystem": "THEIA_VERSION",
65+ "@theia/markers": "THEIA_VERSION",
66+ "@theia/messages": "THEIA_VERSION",
67+ "@theia/monaco": "THEIA_VERSION",
68+ "@theia/navigator": "THEIA_VERSION",
69+ "@theia/outline-view": "THEIA_VERSION",
70+ "@theia/plugin-ext": "THEIA_VERSION",
71+ "@theia/plugin-ext-vscode": "THEIA_VERSION",
72+ "@theia/preferences": "THEIA_VERSION",
73+ "@theia/process": "THEIA_VERSION",
74+ "@theia/scm": "THEIA_VERSION",
75+ "@theia/search-in-workspace": "THEIA_VERSION",
76+ "@theia/terminal": "THEIA_VERSION",
77+ "@theia/workspace": "THEIA_VERSION",
78+ "react": "^19.0.0",
79+ "react-dom": "^19.0.0"
80+ },
81+ "devDependencies": {
82+ "@theia/cli": "THEIA_VERSION"
83+ },
84+ "scripts": {
85+ "build": "theia build --mode production",
86+ "download:plugins": "theia download:plugins --rate-limit=15 --parallel=false"
87+ }
88+}