🛟 Updated.Unverified
c17b010 parent: 3076c38 added
00-introduction/.vscode/extensions.json +5 -0 | new file mode 100644 | ||
| @@ -0,0 +1,5 @@ | ||
| 1 | +{ | |
| 2 | + "recommendations": [ | |
| 3 | + "marp-team.marp-vscode", | |
| 4 | + ] | |
| 5 | +} | |
| \ No newline at end of file | ||
| new file mode 100644 | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | +{ | ||
| 2 | + "recommendations": [ | ||
| 3 | + "marp-team.marp-vscode", | ||
| 4 | + ] | ||
| 5 | +} | ||
| \ No newline at end of file | \ No newline at end of file | ||
added
00-introduction/.vscode/settings.json +37 -0 | new file mode 100644 | ||
| @@ -0,0 +1,37 @@ | ||
| 1 | +{ | |
| 2 | + "workbench.iconTheme": "material-icon-theme", | |
| 3 | + "workbench.colorTheme": "Light 2026", | |
| 4 | + "editor.fontSize": 22, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 8 | + "editor.insertSpaces": true, | |
| 9 | + "editor.tabSize": 4, | |
| 10 | + "editor.detectIndentation": true, | |
| 11 | + "files.autoSave": "afterDelay", | |
| 12 | + "files.autoSaveDelay": 1000, | |
| 13 | + // "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| 14 | + "editor.formatOnSave": true, | |
| 15 | + "workbench.tree.indent": 20, | |
| 16 | + //"workbench.activityBar.location": "top", | |
| 17 | + "workbench.editor.showTabs": "multiple", | |
| 18 | + "workbench.editorAssociations": { | |
| 19 | + "*.md": "vscode.markdown.preview.editor" | |
| 20 | + }, | |
| 21 | + "window.zoomLevel": 1.0, | |
| 22 | + "hediet.vscode-drawio.zoomFactor": 1.1, | |
| 23 | + "[markdown]": { | |
| 24 | + "editor.unicodeHighlight.ambiguousCharacters": false, | |
| 25 | + "editor.unicodeHighlight.invisibleCharacters": false, | |
| 26 | + "diffEditor.ignoreTrimWhitespace": false, | |
| 27 | + "editor.fontWeight": "normal", | |
| 28 | + "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace", | |
| 29 | + "editor.fontSize": 14, | |
| 30 | + "editor.wordWrap": "on", | |
| 31 | + "editor.quickSuggestions": { | |
| 32 | + "comments": "off", | |
| 33 | + "strings": "off", | |
| 34 | + "other": "off" | |
| 35 | + } | |
| 36 | + } | |
| 37 | +} | |
| \ No newline at end of file | ||
| new file mode 100644 | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | +{ | ||
| 2 | + "workbench.iconTheme": "material-icon-theme", | ||
| 3 | + "workbench.colorTheme": "Light 2026", | ||
| 4 | + "editor.fontSize": 22, | ||
| 5 | + "terminal.integrated.fontSize": 18, | ||
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 8 | + "editor.insertSpaces": true, | ||
| 9 | + "editor.tabSize": 4, | ||
| 10 | + "editor.detectIndentation": true, | ||
| 11 | + "files.autoSave": "afterDelay", | ||
| 12 | + "files.autoSaveDelay": 1000, | ||
| 13 | + // "editor.defaultFormatter": "esbenp.prettier-vscode", | ||
| 14 | + "editor.formatOnSave": true, | ||
| 15 | + "workbench.tree.indent": 20, | ||
| 16 | + //"workbench.activityBar.location": "top", | ||
| 17 | + "workbench.editor.showTabs": "multiple", | ||
| 18 | + "workbench.editorAssociations": { | ||
| 19 | + "*.md": "vscode.markdown.preview.editor" | ||
| 20 | + }, | ||
| 21 | + "window.zoomLevel": 1.0, | ||
| 22 | + "hediet.vscode-drawio.zoomFactor": 1.1, | ||
| 23 | + "[markdown]": { | ||
| 24 | + "editor.unicodeHighlight.ambiguousCharacters": false, | ||
| 25 | + "editor.unicodeHighlight.invisibleCharacters": false, | ||
| 26 | + "diffEditor.ignoreTrimWhitespace": false, | ||
| 27 | + "editor.fontWeight": "normal", | ||
| 28 | + "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace", | ||
| 29 | + "editor.fontSize": 14, | ||
| 30 | + "editor.wordWrap": "on", | ||
| 31 | + "editor.quickSuggestions": { | ||
| 32 | + "comments": "off", | ||
| 33 | + "strings": "off", | ||
| 34 | + "other": "off" | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | +} | ||
| \ No newline at end of file | \ No newline at end of file | ||
added
00-introduction/04-llmman.md +71 -0 | new file mode 100644 | ||
| @@ -0,0 +1,71 @@ | ||
| 1 | +--- | |
| 2 | +marp: true | |
| 3 | +theme: default | |
| 4 | +paginate: true | |
| 5 | +html: true | |
| 6 | +style: | | |
| 7 | + section { | |
| 8 | + font-size: 26px; | |
| 9 | + padding: 60px 70px; | |
| 10 | + } | |
| 11 | + section.lead { | |
| 12 | + background: #15202b; | |
| 13 | + color: #fdfdfb; | |
| 14 | + } | |
| 15 | + section.lead h1 { | |
| 16 | + color: #80bfbf; | |
| 17 | + font-size: 52px; | |
| 18 | + line-height: 1.15; | |
| 19 | + } | |
| 20 | + section.lead h2, | |
| 21 | + section.lead h3 { | |
| 22 | + color: #e8ebda; | |
| 23 | + font-weight: normal; | |
| 24 | + } | |
| 25 | + section.lead a { | |
| 26 | + color: #80bfbf; | |
| 27 | + } | |
| 28 | + h1 { | |
| 29 | + color: #15202b; | |
| 30 | + border-bottom: 4px solid #80bfbf; | |
| 31 | + padding-bottom: 12px; | |
| 32 | + } | |
| 33 | + h2 { | |
| 34 | + color: #0062FF; | |
| 35 | + } | |
| 36 | + code { | |
| 37 | + background: #e8ebda; | |
| 38 | + border-radius: 4px; | |
| 39 | + } | |
| 40 | + pre { | |
| 41 | + font-size: 22px; | |
| 42 | + } | |
| 43 | + section.center { | |
| 44 | + text-align: center; | |
| 45 | + } | |
| 46 | + section.center h1 { | |
| 47 | + border: none; | |
| 48 | + font-size: 46px; | |
| 49 | + } | |
| 50 | + .big { | |
| 51 | + font-size: 40px; | |
| 52 | + color: #4503E0; | |
| 53 | + font-weight: bold; | |
| 54 | + } | |
| 55 | + footer { | |
| 56 | + color: #15202b99; | |
| 57 | + } | |
| 58 | +--- | |
| 59 | + | |
| 60 | +<!-- _footer: "DevCon | November 2026 | Create a coding helper agent" --> | |
| 61 | +<!-- _paginate: false --> | |
| 62 | + | |
| 63 | +# A little bit of promotion | |
| 64 | + | |
| 65 | +## `llmman` by Eric Curtin | [@ericcurtin17]() | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | +# 🌍 https://llmmanorg.github.io/ | |
| 70 | + | |
| 71 | + | |
| new file mode 100644 | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | +--- | ||
| 2 | +marp: true | ||
| 3 | +theme: default | ||
| 4 | +paginate: true | ||
| 5 | +html: true | ||
| 6 | +style: | | ||
| 7 | + section { | ||
| 8 | + font-size: 26px; | ||
| 9 | + padding: 60px 70px; | ||
| 10 | + } | ||
| 11 | + section.lead { | ||
| 12 | + background: #15202b; | ||
| 13 | + color: #fdfdfb; | ||
| 14 | + } | ||
| 15 | + section.lead h1 { | ||
| 16 | + color: #80bfbf; | ||
| 17 | + font-size: 52px; | ||
| 18 | + line-height: 1.15; | ||
| 19 | + } | ||
| 20 | + section.lead h2, | ||
| 21 | + section.lead h3 { | ||
| 22 | + color: #e8ebda; | ||
| 23 | + font-weight: normal; | ||
| 24 | + } | ||
| 25 | + section.lead a { | ||
| 26 | + color: #80bfbf; | ||
| 27 | + } | ||
| 28 | + h1 { | ||
| 29 | + color: #15202b; | ||
| 30 | + border-bottom: 4px solid #80bfbf; | ||
| 31 | + padding-bottom: 12px; | ||
| 32 | + } | ||
| 33 | + h2 { | ||
| 34 | + color: #0062FF; | ||
| 35 | + } | ||
| 36 | + code { | ||
| 37 | + background: #e8ebda; | ||
| 38 | + border-radius: 4px; | ||
| 39 | + } | ||
| 40 | + pre { | ||
| 41 | + font-size: 22px; | ||
| 42 | + } | ||
| 43 | + section.center { | ||
| 44 | + text-align: center; | ||
| 45 | + } | ||
| 46 | + section.center h1 { | ||
| 47 | + border: none; | ||
| 48 | + font-size: 46px; | ||
| 49 | + } | ||
| 50 | + .big { | ||
| 51 | + font-size: 40px; | ||
| 52 | + color: #4503E0; | ||
| 53 | + font-weight: bold; | ||
| 54 | + } | ||
| 55 | + footer { | ||
| 56 | + color: #15202b99; | ||
| 57 | + } | ||
| 58 | +--- | ||
| 59 | + | ||
| 60 | +<!-- _footer: "DevCon | November 2026 | Create a coding helper agent" --> | ||
| 61 | +<!-- _paginate: false --> | ||
| 62 | + | ||
| 63 | +# A little bit of promotion | ||
| 64 | + | ||
| 65 | +## `llmman` by Eric Curtin | [@ericcurtin17]() | ||
| 66 | + | ||
| 67 | + | ||
| 68 | + | ||
| 69 | +# 🌍 https://llmmanorg.github.io/ | ||
| 70 | + | ||
| 71 | + | ||
modified
00-introduction/05-docker-agent.md +1 -1 | @@ -67,7 +67,7 @@ style: | | ||
| 67 | 67 | - Docker Agent 💙 docker Model Runner |
| 68 | 68 | |
| 69 | 69 | ```bash |
| 70 | -docker agent run agent.yaml | |
| 70 | +docker-agent run agent.yaml | |
| 71 | 71 | ``` |
| 72 | 72 | |
| 73 | 73 | > `demo`: *"I need a hello world program in golang"* |
| @@ -67,7 +67,7 @@ style: | | |||
| 67 | - Docker Agent 💙 docker Model Runner | 67 | - Docker Agent 💙 docker Model Runner |
| 68 | 68 | ||
| 69 | ```bash | 69 | ```bash |
| 70 | -docker agent run agent.yaml | 70 | +docker-agent run agent.yaml |
| 71 | ``` | 71 | ``` |
| 72 | 72 | ||
| 73 | > `demo`: *"I need a hello world program in golang"* | 73 | > `demo`: *"I need a hello world program in golang"* |
renamed
00-introduction/06-sbx-security-model.drawio.svg +0 -0 | similarity index 100% | ||
| rename from 00-introduction/sbx-security-model.drawio.svg | ||
| rename to 00-introduction/06-sbx-security-model.drawio.svg |
| similarity index 100% | |||
| rename from 00-introduction/sbx-security-model.drawio.svg | |||
| rename to 00-introduction/06-sbx-security-model.drawio.svg |
renamed
00-introduction/07-my-sandboxed-env.drawio.svg +0 -0 | similarity index 100% | ||
| rename from 00-introduction/my-sandboxes.drawio.svg | ||
| rename to 00-introduction/07-my-sandboxed-env.drawio.svg |
| similarity index 100% | |||
| rename from 00-introduction/my-sandboxes.drawio.svg | |||
| rename to 00-introduction/07-my-sandboxed-env.drawio.svg |
modified
00-introduction/agent.yaml +2 -2 | @@ -9,6 +9,6 @@ models: | ||
| 9 | 9 | gemma: |
| 10 | 10 | provider: dmr |
| 11 | 11 | model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M |
| 12 | - base_url: http://localhost:12434/engines/v1 | |
| 13 | - #base_url: http://host.docker.internal:12434/engines/v1 | |
| 12 | + #base_url: http://localhost:12434/engines/v1 | |
| 13 | + base_url: http://host.docker.internal:12434/engines/v1 | |
| 14 | 14 | |
| @@ -9,6 +9,6 @@ models: | |||
| 9 | gemma: | 9 | gemma: |
| 10 | provider: dmr | 10 | provider: dmr |
| 11 | model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M | 11 | model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M |
| 12 | - base_url: http://localhost:12434/engines/v1 | 12 | + #base_url: http://localhost:12434/engines/v1 |
| 13 | - #base_url: http://host.docker.internal:12434/engines/v1 | 13 | + base_url: http://host.docker.internal:12434/engines/v1 |
| 14 | 14 | ||
added
00-introduction/assets/llmman-mark.png +0 -0 | new file mode 100644 | ||
| Binary files /dev/null and b/00-introduction/assets/llmman-mark.png differ | ||
| new file mode 100644 | |||
| Binary files /dev/null and b/00-introduction/assets/llmman-mark.png differ | Binary files /dev/null and b/00-introduction/assets/llmman-mark.png differ | ||
added
00-introduction/coder.sh +20 -0 | new file mode 100755 | ||
| @@ -0,0 +1,20 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +: <<'COMMENT' | |
| 3 | + | |
| 4 | +COMMENT | |
| 5 | + | |
| 6 | +name="go-web-ide" | |
| 7 | +current_dir=$(basename "$PWD") | |
| 8 | +published_port=8800 | |
| 9 | + | |
| 10 | +#sbx run -d --kit . ${name} . -p ${published_port}:8080/tcp | |
| 11 | +sbx run -d ./ . -p ${published_port}:8080/tcp | |
| 12 | + | |
| 13 | +#sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp | |
| 14 | +#sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp | |
| 15 | +#sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp4 | |
| 16 | + | |
| 17 | +echo "http://localhost:${published_port}/?folder=$(pwd)" | |
| 18 | +echo "http://127.0.0.1:${published_port}/?folder=$(pwd)" | |
| 19 | + | |
| 20 | +open "http://localhost:${published_port}/?folder=$(pwd)" | |
| \ No newline at end of file | ||
| new file mode 100755 | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | +#!/bin/bash | ||
| 2 | +: <<'COMMENT' | ||
| 3 | + | ||
| 4 | +COMMENT | ||
| 5 | + | ||
| 6 | +name="go-web-ide" | ||
| 7 | +current_dir=$(basename "$PWD") | ||
| 8 | +published_port=8800 | ||
| 9 | + | ||
| 10 | +#sbx run -d --kit . ${name} . -p ${published_port}:8080/tcp | ||
| 11 | +sbx run -d ./ . -p ${published_port}:8080/tcp | ||
| 12 | + | ||
| 13 | +#sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp | ||
| 14 | +#sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp | ||
| 15 | +#sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp4 | ||
| 16 | + | ||
| 17 | +echo "http://localhost:${published_port}/?folder=$(pwd)" | ||
| 18 | +echo "http://127.0.0.1:${published_port}/?folder=$(pwd)" | ||
| 19 | + | ||
| 20 | +open "http://localhost:${published_port}/?folder=$(pwd)" | ||
| \ No newline at end of file | \ No newline at end of file | ||
modified
00-introduction/demo.txt +0 -1 | @@ -2,6 +2,5 @@ gemma-4-e2b-it | ||
| 2 | 2 | |
| 3 | 3 | docker agent run agent.yaml --theme default-light |
| 4 | 4 | |
| 5 | - | |
| 6 | 5 | show me the content of my HOME directory, |
| 7 | 6 | and create, in my HOME directory, a hello.txt file with the date and a greeting message (with some emojis) |
| @@ -2,6 +2,5 @@ gemma-4-e2b-it | |||
| 2 | 2 | ||
| 3 | docker agent run agent.yaml --theme default-light | 3 | docker agent run agent.yaml --theme default-light |
| 4 | 4 | ||
| 5 | - | ||
| 6 | show me the content of my HOME directory, | 5 | show me the content of my HOME directory, |
| 7 | and create, in my HOME directory, a hello.txt file with the date and a greeting message (with some emojis) | 6 | and create, in my HOME directory, a hello.txt file with the date and a greeting message (with some emojis) |
added
00-introduction/spec.yaml +36 -0 | new file mode 100644 | ||
| @@ -0,0 +1,36 @@ | ||
| 1 | +schemaVersion: "2" | |
| 2 | +kind: sandbox | |
| 3 | +name: go-web-ide | |
| 4 | +displayName: go-web-ide | |
| 5 | +description: Docker Agent + Golang + Web IDE | |
| 6 | + | |
| 7 | +sandbox: | |
| 8 | + #image: docker.io/philippecharriere494/go-ide:v0.0.1 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | + | |
| 11 | + | |
| 12 | +permissions: | |
| 13 | + network: | |
| 14 | + allow: | |
| 15 | + - host.docker.internal:12434 # Docker Model Runner | |
| 16 | + | |
| 17 | +# environment: | |
| 18 | +# variables: | |
| 19 | +# CARGO_HOME: /home/agent/.cargo | |
| 20 | +# RUSTUP_HOME: /home/agent/.rustup | |
| 21 | + | |
| 22 | +setup: | |
| 23 | + startup: | |
| 24 | + # Open the mounted project folder in code-server. sbx injects WORKSPACE_DIR | |
| 25 | + # into the container with the container-side path of the workspace, for the | |
| 26 | + # benefit of kit startup commands exactly like this one. The startup CWD is | |
| 27 | + # /home/agent/workspace, so $PWD is only a last-resort fallback. | |
| 28 | + - command: | |
| 29 | + [ | |
| 30 | + "sh", | |
| 31 | + "-c", | |
| 32 | + 'code-server --auth none --bind-addr "[::]:8080" "${WORKSPACE_DIR:-$PWD}" > /tmp/code-server.log 2>&1', | |
| 33 | + ] | |
| 34 | + user: "1000" | |
| 35 | + background: true | |
| 36 | + description: Start code-server on port 8080 | |
| new file mode 100644 | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | +schemaVersion: "2" | ||
| 2 | +kind: sandbox | ||
| 3 | +name: go-web-ide | ||
| 4 | +displayName: go-web-ide | ||
| 5 | +description: Docker Agent + Golang + Web IDE | ||
| 6 | + | ||
| 7 | +sandbox: | ||
| 8 | + #image: docker.io/philippecharriere494/go-ide:v0.0.1 | ||
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +permissions: | ||
| 13 | + network: | ||
| 14 | + allow: | ||
| 15 | + - host.docker.internal:12434 # Docker Model Runner | ||
| 16 | + | ||
| 17 | +# environment: | ||
| 18 | +# variables: | ||
| 19 | +# CARGO_HOME: /home/agent/.cargo | ||
| 20 | +# RUSTUP_HOME: /home/agent/.rustup | ||
| 21 | + | ||
| 22 | +setup: | ||
| 23 | + startup: | ||
| 24 | + # Open the mounted project folder in code-server. sbx injects WORKSPACE_DIR | ||
| 25 | + # into the container with the container-side path of the workspace, for the | ||
| 26 | + # benefit of kit startup commands exactly like this one. The startup CWD is | ||
| 27 | + # /home/agent/workspace, so $PWD is only a last-resort fallback. | ||
| 28 | + - command: | ||
| 29 | + [ | ||
| 30 | + "sh", | ||
| 31 | + "-c", | ||
| 32 | + 'code-server --auth none --bind-addr "[::]:8080" "${WORKSPACE_DIR:-$PWD}" > /tmp/code-server.log 2>&1', | ||
| 33 | + ] | ||
| 34 | + user: "1000" | ||
| 35 | + background: true | ||
| 36 | + description: Start code-server on port 8080 | ||
modified
01-socle-dmr-shell/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 20, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 20, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
01-socle-dmr-shell/agent.yaml +2 -1 | @@ -43,7 +43,8 @@ models: | ||
| 43 | 43 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 44 | 44 | mellum: |
| 45 | 45 | provider: dmr |
| 46 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 46 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 47 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | |
| 47 | 48 | #base_url: http://localhost:12434/engines/v1 |
| 48 | 49 | base_url: http://host.docker.internal:12434/engines/v1 |
| 49 | 50 | |
| @@ -43,7 +43,8 @@ models: | |||
| 43 | # A local model served by Docker Model Runner (OpenAI-compatible API). | 43 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 44 | mellum: | 44 | mellum: |
| 45 | provider: dmr | 45 | provider: dmr |
| 46 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | 46 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M |
| 47 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | ||
| 47 | #base_url: http://localhost:12434/engines/v1 | 48 | #base_url: http://localhost:12434/engines/v1 |
| 48 | base_url: http://host.docker.internal:12434/engines/v1 | 49 | base_url: http://host.docker.internal:12434/engines/v1 |
| 49 | 50 | ||
deleted
01-socle-dmr-shell/hello +0 -0 | deleted file mode 100644 | ||
| Binary files a/01-socle-dmr-shell/hello and /dev/null differ | ||
| deleted file mode 100644 | |||
| Binary files a/01-socle-dmr-shell/hello and /dev/null differ | Binary files a/01-socle-dmr-shell/hello and /dev/null differ | ||
modified
01-socle-dmr-shell/spec.yaml +1 -1 | @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | ||
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | permissions: |
| @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | |||
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | permissions: | 12 | permissions: |
modified
02-knowledge-rag/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 20, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 20, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
02-knowledge-rag/agent.yaml +4 -3 | @@ -1,7 +1,7 @@ | ||
| 1 | 1 | agents: |
| 2 | 2 | root: |
| 3 | - #model: mellum | |
| 4 | - model: ornith9b | |
| 3 | + model: mellum | |
| 4 | + #model: ornith9b | |
| 5 | 5 | #model: granite |
| 6 | 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. |
| 7 | 7 | # [✋ added: Cookbook section] |
| @@ -98,7 +98,8 @@ models: | ||
| 98 | 98 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 99 | 99 | mellum: |
| 100 | 100 | provider: dmr |
| 101 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 101 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 102 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | |
| 102 | 103 | #base_url: http://localhost:12434/engines/v1 |
| 103 | 104 | base_url: http://host.docker.internal:12434/engines/v1 |
| 104 | 105 | temperature: 0.0 |
| @@ -1,7 +1,7 @@ | |||
| 1 | agents: | 1 | agents: |
| 2 | root: | 2 | root: |
| 3 | - #model: mellum | 3 | + model: mellum |
| 4 | - model: ornith9b | 4 | + #model: ornith9b |
| 5 | #model: granite | 5 | #model: granite |
| 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. | 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. |
| 7 | # [✋ added: Cookbook section] | 7 | # [✋ added: Cookbook section] |
| @@ -98,7 +98,8 @@ models: | |||
| 98 | # A local model served by Docker Model Runner (OpenAI-compatible API). | 98 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 99 | mellum: | 99 | mellum: |
| 100 | provider: dmr | 100 | provider: dmr |
| 101 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | 101 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M |
| 102 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | ||
| 102 | #base_url: http://localhost:12434/engines/v1 | 103 | #base_url: http://localhost:12434/engines/v1 |
| 103 | base_url: http://host.docker.internal:12434/engines/v1 | 104 | base_url: http://host.docker.internal:12434/engines/v1 |
| 104 | temperature: 0.0 | 105 | temperature: 0.0 |
modified
02-knowledge-rag/coder.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
02-knowledge-rag/spec.yaml +1 -1 | @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | ||
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | 10 | |
| 11 | 11 | permissions: |
| 12 | 12 | network: |
| @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | |||
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 10 | 10 | ||
| 11 | permissions: | 11 | permissions: |
| 12 | network: | 12 | network: |
modified
03-skills/.vscode/settings.json +5 -3 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 22, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -14,7 +16,7 @@ | ||
| 14 | 16 | //"workbench.activityBar.location": "top", |
| 15 | 17 | "workbench.editor.showTabs": "multiple", |
| 16 | 18 | "workbench.editorAssociations": { |
| 17 | - //"*.md": "vscode.markdown.preview.editor" | |
| 19 | + "*.md": "vscode.markdown.preview.editor" | |
| 18 | 20 | }, |
| 19 | 21 | "window.zoomLevel": 1.0, |
| 20 | 22 | "hediet.vscode-drawio.zoomFactor": 1.1, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 22, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
| @@ -14,7 +16,7 @@ | |||
| 14 | //"workbench.activityBar.location": "top", | 16 | //"workbench.activityBar.location": "top", |
| 15 | "workbench.editor.showTabs": "multiple", | 17 | "workbench.editor.showTabs": "multiple", |
| 16 | "workbench.editorAssociations": { | 18 | "workbench.editorAssociations": { |
| 17 | - //"*.md": "vscode.markdown.preview.editor" | 19 | + "*.md": "vscode.markdown.preview.editor" |
| 18 | }, | 20 | }, |
| 19 | "window.zoomLevel": 1.0, | 21 | "window.zoomLevel": 1.0, |
| 20 | "hediet.vscode-drawio.zoomFactor": 1.1, | 22 | "hediet.vscode-drawio.zoomFactor": 1.1, |
modified
03-skills/agent.yaml +2 -1 | @@ -162,7 +162,8 @@ models: | ||
| 162 | 162 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 163 | 163 | mellum: |
| 164 | 164 | provider: dmr |
| 165 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 165 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 166 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | |
| 166 | 167 | #base_url: http://localhost:12434/engines/v1 |
| 167 | 168 | base_url: http://host.docker.internal:12434/engines/v1 |
| 168 | 169 | temperature: 0.0 |
| @@ -162,7 +162,8 @@ models: | |||
| 162 | # A local model served by Docker Model Runner (OpenAI-compatible API). | 162 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 163 | mellum: | 163 | mellum: |
| 164 | provider: dmr | 164 | provider: dmr |
| 165 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | 165 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M |
| 166 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | ||
| 166 | #base_url: http://localhost:12434/engines/v1 | 167 | #base_url: http://localhost:12434/engines/v1 |
| 167 | base_url: http://host.docker.internal:12434/engines/v1 | 168 | base_url: http://host.docker.internal:12434/engines/v1 |
| 168 | temperature: 0.0 | 169 | temperature: 0.0 |
modified
03-skills/coder.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
added
03-skills/hello/go.mod +3 -0 | new file mode 100644 | ||
| @@ -0,0 +1,3 @@ | ||
| 1 | +module demo | |
| 2 | + | |
| 3 | +go 1.25.0 | |
| new file mode 100644 | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | +module demo | ||
| 2 | + | ||
| 3 | +go 1.25.0 | ||
added
03-skills/hello/main.go +9 -0 | new file mode 100644 | ||
| @@ -0,0 +1,9 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +import "fmt" | |
| 4 | + | |
| 5 | +func main() { | |
| 6 | + fmt.Println("👋 Hello, World! 🌍✨") | |
| 7 | + fmt.Println("👋 Hello, World! 🌍✨") | |
| 8 | + fmt.Println("👋 Hello, World! 🌍✨") | |
| 9 | +} | |
| new file mode 100644 | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | +package main | ||
| 2 | + | ||
| 3 | +import "fmt" | ||
| 4 | + | ||
| 5 | +func main() { | ||
| 6 | + fmt.Println("👋 Hello, World! 🌍✨") | ||
| 7 | + fmt.Println("👋 Hello, World! 🌍✨") | ||
| 8 | + fmt.Println("👋 Hello, World! 🌍✨") | ||
| 9 | +} | ||
modified
03-skills/spec.yaml +1 -1 | @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | ||
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | 10 | |
| 11 | 11 | permissions: |
| 12 | 12 | network: |
| @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | |||
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 10 | 10 | ||
| 11 | permissions: | 11 | permissions: |
| 12 | network: | 12 | network: |
modified
04-lsp-support/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 18, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 18, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
04-lsp-support/agent.yaml +2 -1 | @@ -181,7 +181,8 @@ models: | ||
| 181 | 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 182 | 182 | mellum: |
| 183 | 183 | provider: dmr |
| 184 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 184 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 185 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | |
| 185 | 186 | #base_url: http://localhost:12434/engines/v1 |
| 186 | 187 | base_url: http://host.docker.internal:12434/engines/v1 |
| 187 | 188 | temperature: 0.0 |
| @@ -181,7 +181,8 @@ models: | |||
| 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). | 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 182 | mellum: | 182 | mellum: |
| 183 | provider: dmr | 183 | provider: dmr |
| 184 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | 184 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M |
| 185 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | ||
| 185 | #base_url: http://localhost:12434/engines/v1 | 186 | #base_url: http://localhost:12434/engines/v1 |
| 186 | base_url: http://host.docker.internal:12434/engines/v1 | 187 | base_url: http://host.docker.internal:12434/engines/v1 |
| 187 | temperature: 0.0 | 188 | temperature: 0.0 |
modified
04-lsp-support/coder.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
added
04-lsp-support/go.mod +3 -0 | new file mode 100644 | ||
| @@ -0,0 +1,3 @@ | ||
| 1 | +module demo | |
| 2 | + | |
| 3 | +go 1.25.0 | |
| new file mode 100644 | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | +module demo | ||
| 2 | + | ||
| 3 | +go 1.25.0 | ||
added
04-lsp-support/script.md +51 -0 | new file mode 100644 | ||
| @@ -0,0 +1,51 @@ | ||
| 1 | + | |
| 2 | +``` | |
| 3 | +1. Create a golang hello world program in ./hello and work only into this directory | |
| 4 | +2. Add a Dog structure. A dog has a name and a Bark method | |
| 5 | +3. Add a Cat structure. A dog has a name and a Meow method | |
| 6 | +4. Add a Human structure. A human has a first name and a last name, and Greet method (that return a fancy message with emojis) | |
| 7 | +5. A human has a dog field and a cat field, initialize the human with a dog and a cat | |
| 8 | +6. Save the program | |
| 9 | +7. Built it | |
| 10 | +8. Run the program and show the output | |
| 11 | +``` | |
| 12 | + | |
| 13 | +``` | |
| 14 | +run it again | |
| 15 | +``` | |
| 16 | + | |
| 17 | +``` | |
| 18 | +Where is Greet defined, and what calls it? | |
| 19 | +``` | |
| 20 | +> 0 command (sometimes the agent use cat) | |
| 21 | + | |
| 22 | +Let's see if the LLM knows `gopls` | |
| 23 | +``` | |
| 24 | +Explain what is gopls | |
| 25 | +``` | |
| 26 | + | |
| 27 | +So, the LLM knows the gopls CLI (It was in its training corpus.) | |
| 28 | + | |
| 29 | +``` | |
| 30 | +run `gopls help` to discover the available command and to understand how to use it | |
| 31 | +``` | |
| 32 | + | |
| 33 | +``` | |
| 34 | +Search Greet in workspace, then display the references | |
| 35 | +``` | |
| 36 | + | |
| 37 | +``` | |
| 38 | +Use gopls to tell where is Greet defined, and what calls it? | |
| 39 | +``` | |
| 40 | + | |
| 41 | +``` | |
| 42 | +Search the Greet symbol in the workspace, then rename Greet to Welcome | |
| 43 | +``` | |
| 44 | + | |
| 45 | +### Another CLI (rip grep) | |
| 46 | + | |
| 47 | +``` | |
| 48 | +use and run the rg CLI to find the human struct and give me information on it | |
| 49 | +``` | |
| 50 | + | |
| 51 | + | |
| new file mode 100644 | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | + | ||
| 2 | +``` | ||
| 3 | +1. Create a golang hello world program in ./hello and work only into this directory | ||
| 4 | +2. Add a Dog structure. A dog has a name and a Bark method | ||
| 5 | +3. Add a Cat structure. A dog has a name and a Meow method | ||
| 6 | +4. Add a Human structure. A human has a first name and a last name, and Greet method (that return a fancy message with emojis) | ||
| 7 | +5. A human has a dog field and a cat field, initialize the human with a dog and a cat | ||
| 8 | +6. Save the program | ||
| 9 | +7. Built it | ||
| 10 | +8. Run the program and show the output | ||
| 11 | +``` | ||
| 12 | + | ||
| 13 | +``` | ||
| 14 | +run it again | ||
| 15 | +``` | ||
| 16 | + | ||
| 17 | +``` | ||
| 18 | +Where is Greet defined, and what calls it? | ||
| 19 | +``` | ||
| 20 | +> 0 command (sometimes the agent use cat) | ||
| 21 | + | ||
| 22 | +Let's see if the LLM knows `gopls` | ||
| 23 | +``` | ||
| 24 | +Explain what is gopls | ||
| 25 | +``` | ||
| 26 | + | ||
| 27 | +So, the LLM knows the gopls CLI (It was in its training corpus.) | ||
| 28 | + | ||
| 29 | +``` | ||
| 30 | +run `gopls help` to discover the available command and to understand how to use it | ||
| 31 | +``` | ||
| 32 | + | ||
| 33 | +``` | ||
| 34 | +Search Greet in workspace, then display the references | ||
| 35 | +``` | ||
| 36 | + | ||
| 37 | +``` | ||
| 38 | +Use gopls to tell where is Greet defined, and what calls it? | ||
| 39 | +``` | ||
| 40 | + | ||
| 41 | +``` | ||
| 42 | +Search the Greet symbol in the workspace, then rename Greet to Welcome | ||
| 43 | +``` | ||
| 44 | + | ||
| 45 | +### Another CLI (rip grep) | ||
| 46 | + | ||
| 47 | +``` | ||
| 48 | +use and run the rg CLI to find the human struct and give me information on it | ||
| 49 | +``` | ||
| 50 | + | ||
| 51 | + | ||
modified
04-lsp-support/spec.yaml +1 -1 | @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | ||
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | 10 | |
| 11 | 11 | permissions: |
| 12 | 12 | network: |
| @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | |||
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 10 | 10 | ||
| 11 | permissions: | 11 | permissions: |
| 12 | network: | 12 | network: |
added
04-lsp-support/temperature/go.mod +3 -0 | new file mode 100644 | ||
| @@ -0,0 +1,3 @@ | ||
| 1 | +module demo | |
| 2 | + | |
| 3 | +go 1.25.0 | |
| new file mode 100644 | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | +module demo | ||
| 2 | + | ||
| 3 | +go 1.25.0 | ||
added
04-lsp-support/temperature/main.go +14 -0 | new file mode 100644 | ||
| @@ -0,0 +1,14 @@ | ||
| 1 | +package main | |
| 2 | + | |
| 3 | +import "fmt" | |
| 4 | + | |
| 5 | +// CelsiusToFahrenheit converts a temperature from Celsius to Fahrenheit. | |
| 6 | +func CelsiusToFahrenheit(c float64) float64 { | |
| 7 | + return c*9/5 + 32 | |
| 8 | +} | |
| 9 | + | |
| 10 | +func main() { | |
| 11 | + for _, c := range []float64{0, 10, 25, 100} { | |
| 12 | + fmt.Printf("%g°C = %.2f°F\n", c, CelsiusToFahrenheit(c)) | |
| 13 | + } | |
| 14 | +} | |
| new file mode 100644 | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | +package main | ||
| 2 | + | ||
| 3 | +import "fmt" | ||
| 4 | + | ||
| 5 | +// CelsiusToFahrenheit converts a temperature from Celsius to Fahrenheit. | ||
| 6 | +func CelsiusToFahrenheit(c float64) float64 { | ||
| 7 | + return c*9/5 + 32 | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +func main() { | ||
| 11 | + for _, c := range []float64{0, 10, 25, 100} { | ||
| 12 | + fmt.Printf("%g°C = %.2f°F\n", c, CelsiusToFahrenheit(c)) | ||
| 13 | + } | ||
| 14 | +} | ||
modified
05-mcp/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 20, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 20, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
05-mcp/00-mcp.md +7 -0 | @@ -63,7 +63,14 @@ style: | | ||
| 63 | 63 | |
| 64 | 64 | # If Skills are not enough: MCP |
| 65 | 65 | |
| 66 | +```bash | |
| 67 | +sbx mcp add context7 --url https://mcp.context7.com/mcp | |
| 68 | + | |
| 69 | +sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | |
| 66 | 70 | ``` |
| 71 | + | |
| 72 | + | |
| 73 | +```yaml | |
| 67 | 74 | - type: mcp |
| 68 | 75 | remote: |
| 69 | 76 | url: "${env.MCP_GATEWAY_URL}" |
| @@ -63,7 +63,14 @@ style: | | |||
| 63 | 63 | ||
| 64 | # If Skills are not enough: MCP | 64 | # If Skills are not enough: MCP |
| 65 | 65 | ||
| 66 | +```bash | ||
| 67 | +sbx mcp add context7 --url https://mcp.context7.com/mcp | ||
| 68 | + | ||
| 69 | +sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | ||
| 66 | ``` | 70 | ``` |
| 71 | + | ||
| 72 | + | ||
| 73 | +```yaml | ||
| 67 | - type: mcp | 74 | - type: mcp |
| 68 | remote: | 75 | remote: |
| 69 | url: "${env.MCP_GATEWAY_URL}" | 76 | url: "${env.MCP_GATEWAY_URL}" |
modified
05-mcp/agent.yaml +4 -3 | @@ -1,7 +1,7 @@ | ||
| 1 | 1 | agents: |
| 2 | 2 | root: |
| 3 | - #model: mellum | |
| 4 | - model: ornith9b | |
| 3 | + model: mellum | |
| 4 | + #model: ornith9b | |
| 5 | 5 | |
| 6 | 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. |
| 7 | 7 | instruction: | |
| @@ -181,7 +181,8 @@ models: | ||
| 181 | 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 182 | 182 | mellum: |
| 183 | 183 | provider: dmr |
| 184 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 184 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 185 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | |
| 185 | 186 | #base_url: http://localhost:12434/engines/v1 |
| 186 | 187 | base_url: http://host.docker.internal:12434/engines/v1 |
| 187 | 188 | temperature: 0.0 |
| @@ -1,7 +1,7 @@ | |||
| 1 | agents: | 1 | agents: |
| 2 | root: | 2 | root: |
| 3 | - #model: mellum | 3 | + model: mellum |
| 4 | - model: ornith9b | 4 | + #model: ornith9b |
| 5 | 5 | ||
| 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. | 6 | description: A local code agent, powered by a small LLM served by Docker Model Runner. |
| 7 | instruction: | | 7 | instruction: | |
| @@ -181,7 +181,8 @@ models: | |||
| 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). | 181 | # A local model served by Docker Model Runner (OpenAI-compatible API). |
| 182 | mellum: | 182 | mellum: |
| 183 | provider: dmr | 183 | provider: dmr |
| 184 | - model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | 184 | + #model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M |
| 185 | + model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q8_0:Q8_0 | ||
| 185 | #base_url: http://localhost:12434/engines/v1 | 186 | #base_url: http://localhost:12434/engines/v1 |
| 186 | base_url: http://host.docker.internal:12434/engines/v1 | 187 | base_url: http://host.docker.internal:12434/engines/v1 |
| 187 | temperature: 0.0 | 188 | temperature: 0.0 |
modified
05-mcp/coder.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
05-mcp/spec.yaml +1 -1 | @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | ||
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 10 | 10 | |
| 11 | 11 | permissions: |
| 12 | 12 | network: |
| @@ -6,7 +6,7 @@ description: Docker Agent + Golang + Web IDE | |||
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 | 8 | #image: docker.io/philippecharriere494/go-ide:v0.0.1 |
| 9 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 9 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 10 | 10 | ||
| 11 | permissions: | 11 | permissions: |
| 12 | network: | 12 | network: |
modified
06-team/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 22, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 22, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
06-team/agent.35b.yaml +10 -10 | @@ -75,16 +75,16 @@ agents: | ||
| 75 | 75 | ref: rag_knowledge |
| 76 | 76 | |
| 77 | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | |
| 79 | - remote: | |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | |
| 81 | - transport_type: streamable | |
| 82 | - headers: | |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | - instruction: | | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | |
| 86 | - third-party library before writing code that uses it. Resolve the | |
| 87 | - library id first, then fetch its docs. | |
| 78 | + # - type: mcp | |
| 79 | + # remote: | |
| 80 | + # url: "${env.MCP_GATEWAY_URL}" | |
| 81 | + # transport_type: streamable | |
| 82 | + # headers: | |
| 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | + # instruction: | | |
| 85 | + # Use the Context7 tools to look up the *current* documentation of a | |
| 86 | + # third-party library before writing code that uses it. Resolve the | |
| 87 | + # library id first, then fetch its docs. | |
| 88 | 88 | |
| 89 | 89 | # --------------------------------------------------------------------------- |
| 90 | 90 | # 2. The hands — the only agent that can write. |
| @@ -75,16 +75,16 @@ agents: | |||
| 75 | ref: rag_knowledge | 75 | ref: rag_knowledge |
| 76 | 76 | ||
| 77 | # Up-to-date documentation for third-party libraries. | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | 78 | + # - type: mcp |
| 79 | - remote: | 79 | + # remote: |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | 80 | + # url: "${env.MCP_GATEWAY_URL}" |
| 81 | - transport_type: streamable | 81 | + # transport_type: streamable |
| 82 | - headers: | 82 | + # headers: |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" |
| 84 | - instruction: | | 84 | + # instruction: | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | 85 | + # Use the Context7 tools to look up the *current* documentation of a |
| 86 | - third-party library before writing code that uses it. Resolve the | 86 | + # third-party library before writing code that uses it. Resolve the |
| 87 | - library id first, then fetch its docs. | 87 | + # library id first, then fetch its docs. |
| 88 | 88 | ||
| 89 | # --------------------------------------------------------------------------- | 89 | # --------------------------------------------------------------------------- |
| 90 | # 2. The hands — the only agent that can write. | 90 | # 2. The hands — the only agent that can write. |
modified
06-team/agent.9b.yaml +10 -10 | @@ -75,16 +75,16 @@ agents: | ||
| 75 | 75 | ref: rag_knowledge |
| 76 | 76 | |
| 77 | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | |
| 79 | - remote: | |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | |
| 81 | - transport_type: streamable | |
| 82 | - headers: | |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | - instruction: | | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | |
| 86 | - third-party library before writing code that uses it. Resolve the | |
| 87 | - library id first, then fetch its docs. | |
| 78 | + # - type: mcp | |
| 79 | + # remote: | |
| 80 | + # url: "${env.MCP_GATEWAY_URL}" | |
| 81 | + # transport_type: streamable | |
| 82 | + # headers: | |
| 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | + # instruction: | | |
| 85 | + # Use the Context7 tools to look up the *current* documentation of a | |
| 86 | + # third-party library before writing code that uses it. Resolve the | |
| 87 | + # library id first, then fetch its docs. | |
| 88 | 88 | |
| 89 | 89 | # --------------------------------------------------------------------------- |
| 90 | 90 | # 2. The hands — the only agent that can write. |
| @@ -75,16 +75,16 @@ agents: | |||
| 75 | ref: rag_knowledge | 75 | ref: rag_knowledge |
| 76 | 76 | ||
| 77 | # Up-to-date documentation for third-party libraries. | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | 78 | + # - type: mcp |
| 79 | - remote: | 79 | + # remote: |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | 80 | + # url: "${env.MCP_GATEWAY_URL}" |
| 81 | - transport_type: streamable | 81 | + # transport_type: streamable |
| 82 | - headers: | 82 | + # headers: |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" |
| 84 | - instruction: | | 84 | + # instruction: | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | 85 | + # Use the Context7 tools to look up the *current* documentation of a |
| 86 | - third-party library before writing code that uses it. Resolve the | 86 | + # third-party library before writing code that uses it. Resolve the |
| 87 | - library id first, then fetch its docs. | 87 | + # library id first, then fetch its docs. |
| 88 | 88 | ||
| 89 | # --------------------------------------------------------------------------- | 89 | # --------------------------------------------------------------------------- |
| 90 | # 2. The hands — the only agent that can write. | 90 | # 2. The hands — the only agent that can write. |
modified
06-team/agent.gemma.26.yaml +10 -10 | @@ -75,16 +75,16 @@ agents: | ||
| 75 | 75 | ref: rag_knowledge |
| 76 | 76 | |
| 77 | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | |
| 79 | - remote: | |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | |
| 81 | - transport_type: streamable | |
| 82 | - headers: | |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | - instruction: | | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | |
| 86 | - third-party library before writing code that uses it. Resolve the | |
| 87 | - library id first, then fetch its docs. | |
| 78 | + # - type: mcp | |
| 79 | + # remote: | |
| 80 | + # url: "${env.MCP_GATEWAY_URL}" | |
| 81 | + # transport_type: streamable | |
| 82 | + # headers: | |
| 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | |
| 84 | + # instruction: | | |
| 85 | + # Use the Context7 tools to look up the *current* documentation of a | |
| 86 | + # third-party library before writing code that uses it. Resolve the | |
| 87 | + # library id first, then fetch its docs. | |
| 88 | 88 | |
| 89 | 89 | # --------------------------------------------------------------------------- |
| 90 | 90 | # 2. The hands — the only agent that can write. |
| @@ -75,16 +75,16 @@ agents: | |||
| 75 | ref: rag_knowledge | 75 | ref: rag_knowledge |
| 76 | 76 | ||
| 77 | # Up-to-date documentation for third-party libraries. | 77 | # Up-to-date documentation for third-party libraries. |
| 78 | - - type: mcp | 78 | + # - type: mcp |
| 79 | - remote: | 79 | + # remote: |
| 80 | - url: "${env.MCP_GATEWAY_URL}" | 80 | + # url: "${env.MCP_GATEWAY_URL}" |
| 81 | - transport_type: streamable | 81 | + # transport_type: streamable |
| 82 | - headers: | 82 | + # headers: |
| 83 | - Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" | 83 | + # Authorization: "Bearer ${env.MCP_SENTINEL_TOKEN_NAME}" |
| 84 | - instruction: | | 84 | + # instruction: | |
| 85 | - Use the Context7 tools to look up the *current* documentation of a | 85 | + # Use the Context7 tools to look up the *current* documentation of a |
| 86 | - third-party library before writing code that uses it. Resolve the | 86 | + # third-party library before writing code that uses it. Resolve the |
| 87 | - library id first, then fetch its docs. | 87 | + # library id first, then fetch its docs. |
| 88 | 88 | ||
| 89 | # --------------------------------------------------------------------------- | 89 | # --------------------------------------------------------------------------- |
| 90 | # 2. The hands — the only agent that can write. | 90 | # 2. The hands — the only agent that can write. |
modified
06-team/coder.sh +4 -2 | old mode 100644 | ||
| new mode 100755 | ||
| @@ -11,9 +11,11 @@ published_port=8806 | ||
| 11 | 11 | |
| 12 | 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp |
| 13 | 13 | |
| 14 | -sbx mcp add context7 --url https://mcp.context7.com/mcp | |
| 14 | +#sbx mcp add context7 --url https://mcp.context7.com/mcp | |
| 15 | + | |
| 16 | +#sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | |
| 17 | +sbx run -d ./ . -p ${published_port}:8080/tcp | |
| 15 | 18 | |
| 16 | -sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | |
| 17 | 19 | |
| 18 | 20 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp |
| 19 | 21 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp |
| old mode 100644 | |||
| new mode 100755 | |||
| @@ -11,9 +11,11 @@ published_port=8806 | |||
| 11 | 11 | ||
| 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp | 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp |
| 13 | 13 | ||
| 14 | -sbx mcp add context7 --url https://mcp.context7.com/mcp | 14 | +#sbx mcp add context7 --url https://mcp.context7.com/mcp |
| 15 | + | ||
| 16 | +#sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | ||
| 17 | +sbx run -d ./ . -p ${published_port}:8080/tcp | ||
| 15 | 18 | ||
| 16 | -sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | ||
| 17 | 19 | ||
| 18 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp | 20 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp |
| 19 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp | 21 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp |
modified
06-team/demo.txt +5 -1 | @@ -1,3 +1,8 @@ | ||
| 1 | + | |
| 2 | +I need a web task manager | |
| 3 | + | |
| 4 | +--- | |
| 5 | + | |
| 1 | 6 | I want a golang web application to manage: |
| 2 | 7 | - issues |
| 3 | 8 | - labels |
| @@ -8,7 +13,6 @@ I want a golang web application to manage: | ||
| 8 | 13 | - epics |
| 9 | 14 | Work only in the ./demo directory |
| 10 | 15 | |
| 11 | - | |
| 12 | 16 | --- |
| 13 | 17 | I want a golang web application to manage issues with labels |
| 14 | 18 | - SPA with HTMX |
| @@ -1,3 +1,8 @@ | |||
| 1 | + | ||
| 2 | +I need a web task manager | ||
| 3 | + | ||
| 4 | +--- | ||
| 5 | + | ||
| 1 | I want a golang web application to manage: | 6 | I want a golang web application to manage: |
| 2 | - issues | 7 | - issues |
| 3 | - labels | 8 | - labels |
| @@ -8,7 +13,6 @@ I want a golang web application to manage: | |||
| 8 | - epics | 13 | - epics |
| 9 | Work only in the ./demo directory | 14 | Work only in the ./demo directory |
| 10 | 15 | ||
| 11 | - | ||
| 12 | --- | 16 | --- |
| 13 | I want a golang web application to manage issues with labels | 17 | I want a golang web application to manage issues with labels |
| 14 | - SPA with HTMX | 18 | - SPA with HTMX |
added
06-team/prompt.en.txt +124 -0 | new file mode 100644 | ||
| @@ -0,0 +1,124 @@ | ||
| 1 | +**Step 1 — Project skeleton** | |
| 2 | +``` | |
| 3 | +Create a Go project for an issue management web application (like a mini Jira). | |
| 4 | +Expected structure: | |
| 5 | +- go.mod (module "issue-tracker") | |
| 6 | +- cmd/server/main.go: starts an HTTP server on port 8080 | |
| 7 | +- A single route "/" that answers "OK" in plain text | |
| 8 | +No database, no HTML for now. Check that "go run cmd/server/main.go" starts without errors and that curl localhost:8080 answers "OK". | |
| 9 | +``` | |
| 10 | + | |
| 11 | +**Step 2 — Data model + in-memory storage** | |
| 12 | +``` | |
| 13 | +Context: Go project "issue-tracker" with cmd/server/main.go that starts a server on port 8080. | |
| 14 | +Add an internal/store package with: | |
| 15 | +- an Issue struct (ID int, Title string, Description string, Status string, Priority string, CreatedAt time.Time) | |
| 16 | +- an in-memory store (a map protected by a sync.Mutex) | |
| 17 | +- the functions Create(issue) Issue, Get(id) (Issue, bool), List() []Issue, Update(id, issue) bool, Delete(id) bool | |
| 18 | +Do not add any HTTP route for now. Just add a simple unit test that checks Create + Get + List. | |
| 19 | +``` | |
| 20 | + | |
| 21 | +**Step 3 — JSON CRUD routes** | |
| 22 | +``` | |
| 23 | +Context: Go project "issue-tracker" with an internal/store package (in-memory CRUD on Issue). | |
| 24 | +Add the following HTTP routes in main.go, using the store, in JSON: | |
| 25 | +- GET /issues: list all issues | |
| 26 | +- POST /issues: create an issue from the JSON sent | |
| 27 | +- GET /issues/{id}: return an issue | |
| 28 | +- PUT /issues/{id}: update an issue | |
| 29 | +- DELETE /issues/{id}: delete an issue | |
| 30 | +Use the standard net/http (no external framework). Then give me 4 curl commands to test each route. | |
| 31 | +``` | |
| 32 | + | |
| 33 | +**Step 4 — First HTML page** | |
| 34 | +``` | |
| 35 | +Context: Go project "issue-tracker" with JSON routes /issues (GET/POST/PUT/DELETE) based on internal/store. | |
| 36 | +Add HTML rendering with html/template: | |
| 37 | +- a web/templates folder with a layout.html (minimal header/footer) and an index.html page | |
| 38 | +- a GET / route that displays the list of issues in an HTML table (ID, title, status, priority) | |
| 39 | +Do not touch the existing JSON routes yet, they must keep working. Check that localhost:8080/ displays a table. | |
| 40 | +``` | |
| 41 | + | |
| 42 | +**Step 5 — Issue creation with HTMX** | |
| 43 | +``` | |
| 44 | +Context: Go project "issue-tracker" with a / page that displays a table of issues (web/templates), and an in-memory store. | |
| 45 | +Add HTMX (via CDN in the layout) and: | |
| 46 | +- an issue creation form (title, description, priority) above the table | |
| 47 | +- the form posts with hx-post to /issues/new, which creates the issue and returns the HTML of a single <tr> row | |
| 48 | +- the table has a <tbody id="issues-list"> and the form uses hx-target="#issues-list" hx-swap="afterbegin" | |
| 49 | +Check that creating an issue adds it to the table without reloading the page. | |
| 50 | +``` | |
| 51 | + | |
| 52 | +**Step 6 — Inline editing** | |
| 53 | +``` | |
| 54 | +Context: Go project "issue-tracker", / page with a table of issues and creation via HTMX (POST /issues/new route). | |
| 55 | +Add editing of an issue directly in the table: | |
| 56 | +- each row has an "Edit" button with hx-get to /issues/{id}/edit that replaces the row with an inline form (hx-target="closest tr" hx-swap="outerHTML") | |
| 57 | +- the edit form posts with hx-put to /issues/{id} and replaces the row with the updated version | |
| 58 | +Check that editing works without a page reload and without breaking creation. | |
| 59 | +``` | |
| 60 | + | |
| 61 | +**Step 7 — Deletion** | |
| 62 | +``` | |
| 63 | +Context: Go project "issue-tracker", table of issues with creation and inline editing via HTMX. | |
| 64 | +Add a "Delete" button on each row: | |
| 65 | +- hx-delete to /issues/{id} | |
| 66 | +- hx-confirm="Confirm deletion?" | |
| 67 | +- hx-target="closest tr" hx-swap="outerHTML swap:1s" (or equivalent) to remove the row from the table | |
| 68 | +Check that deletion works and that the other actions (creation, editing) still work. | |
| 69 | +``` | |
| 70 | + | |
| 71 | +**Step 8 — Filtering / search** | |
| 72 | +``` | |
| 73 | +Context: Go project "issue-tracker" with full HTMX CRUD on issues. | |
| 74 | +Add a search bar above the table: | |
| 75 | +- an input with hx-get to /issues/search, hx-trigger="keyup changed delay:300ms", hx-target="#issues-list" | |
| 76 | +- the /issues/search route filters issues by title (case-insensitive) and returns only the matching <tr> rows | |
| 77 | +Check that typing in the bar filters the list live. | |
| 78 | +``` | |
| 79 | + | |
| 80 | +**Step 9 — SQLite persistence** | |
| 81 | +``` | |
| 82 | +Context: Go project "issue-tracker" with an in-memory store (internal/store) and full HTMX CRUD. | |
| 83 | +Replace the in-memory store with SQLite: | |
| 84 | +- use the modernc.org/sqlite library (pure Go, no cgo needed) | |
| 85 | +- create an issues.db file, with an issues table having the same fields as the Issue struct | |
| 86 | +- keep exactly the same public interface of the store package (Create, Get, List, Update, Delete) so nothing breaks on the routes side | |
| 87 | +Check that issues survive a server restart. | |
| 88 | +``` | |
| 89 | + | |
| 90 | +**Step 10 — Finishing touches** | |
| 91 | +``` | |
| 92 | +Context: complete Go project "issue-tracker" (HTMX CRUD + SQLite). | |
| 93 | +Add: | |
| 94 | +- a minimal web/static/style.css file (clean table, colored badges depending on status: open=green, in_progress=orange, closed=gray) | |
| 95 | +- a route to serve web/static/ | |
| 96 | +- a simple favicon if possible | |
| 97 | +Add nothing else, no new feature. | |
| 98 | +``` | |
| 99 | + | |
| 100 | +Here is an additional step to insert after step 10 (finishing touches), dedicated to a more polished look. I split it into two prompts, because "fancy CSS" with lots of details at once risks crashing a small local model. | |
| 101 | + | |
| 102 | +--- | |
| 103 | + | |
| 104 | +**Step 11 — Design system (variables + typography)** | |
| 105 | +``` | |
| 106 | +Context: Go project "issue-tracker" with an HTMX table styled simply (web/static/style.css). | |
| 107 | +Rewrite web/static/style.css from scratch with a "design system" base: | |
| 108 | +- CSS variables (:root) for colors (background, text, primary, success, warning, danger, borders), border radii, shadows and spacings | |
| 109 | +- import a font via Google Fonts (e.g. "Inter" or "Poppins") in layout.html | |
| 110 | +- apply a slightly textured background or a soft gradient to the body | |
| 111 | +- a card (.card) with a soft shadow and rounded corners to wrap the form and the table | |
| 112 | +Do not touch any Go route, only the CSS and the <head> of the layout. | |
| 113 | +``` | |
| 114 | + | |
| 115 | +**Step 12 — Micro-interactions and polish** | |
| 116 | +``` | |
| 117 | +Context: Go project "issue-tracker" with a CSS design system (variables, font, cards) in web/static/style.css. | |
| 118 | +Add "fancy" touches in pure CSS (no JS): | |
| 119 | +- soft transitions (transform, box-shadow) on hover for buttons and table rows | |
| 120 | +- status badges with a light gradient and a rounded pill shape instead of a plain flat background | |
| 121 | +- a fade-in appearance animation (fade-in + slight slide) for new rows added via HTMX (use the class injected by htmx-swapping / htmx-settling, or a CSS @keyframes class applied via hx-swap="afterbegin swap:0.3s") | |
| 122 | +- a visible and elegant focus state on inputs (soft colored outline, not just the browser's default outline) | |
| 123 | +Check that the table stays readable and that nothing breaks visually on mobile (simple responsive layout with overflow-x: auto on the table). | |
| 124 | +``` | |
| new file mode 100644 | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | +**Step 1 — Project skeleton** | ||
| 2 | +``` | ||
| 3 | +Create a Go project for an issue management web application (like a mini Jira). | ||
| 4 | +Expected structure: | ||
| 5 | +- go.mod (module "issue-tracker") | ||
| 6 | +- cmd/server/main.go: starts an HTTP server on port 8080 | ||
| 7 | +- A single route "/" that answers "OK" in plain text | ||
| 8 | +No database, no HTML for now. Check that "go run cmd/server/main.go" starts without errors and that curl localhost:8080 answers "OK". | ||
| 9 | +``` | ||
| 10 | + | ||
| 11 | +**Step 2 — Data model + in-memory storage** | ||
| 12 | +``` | ||
| 13 | +Context: Go project "issue-tracker" with cmd/server/main.go that starts a server on port 8080. | ||
| 14 | +Add an internal/store package with: | ||
| 15 | +- an Issue struct (ID int, Title string, Description string, Status string, Priority string, CreatedAt time.Time) | ||
| 16 | +- an in-memory store (a map protected by a sync.Mutex) | ||
| 17 | +- the functions Create(issue) Issue, Get(id) (Issue, bool), List() []Issue, Update(id, issue) bool, Delete(id) bool | ||
| 18 | +Do not add any HTTP route for now. Just add a simple unit test that checks Create + Get + List. | ||
| 19 | +``` | ||
| 20 | + | ||
| 21 | +**Step 3 — JSON CRUD routes** | ||
| 22 | +``` | ||
| 23 | +Context: Go project "issue-tracker" with an internal/store package (in-memory CRUD on Issue). | ||
| 24 | +Add the following HTTP routes in main.go, using the store, in JSON: | ||
| 25 | +- GET /issues: list all issues | ||
| 26 | +- POST /issues: create an issue from the JSON sent | ||
| 27 | +- GET /issues/{id}: return an issue | ||
| 28 | +- PUT /issues/{id}: update an issue | ||
| 29 | +- DELETE /issues/{id}: delete an issue | ||
| 30 | +Use the standard net/http (no external framework). Then give me 4 curl commands to test each route. | ||
| 31 | +``` | ||
| 32 | + | ||
| 33 | +**Step 4 — First HTML page** | ||
| 34 | +``` | ||
| 35 | +Context: Go project "issue-tracker" with JSON routes /issues (GET/POST/PUT/DELETE) based on internal/store. | ||
| 36 | +Add HTML rendering with html/template: | ||
| 37 | +- a web/templates folder with a layout.html (minimal header/footer) and an index.html page | ||
| 38 | +- a GET / route that displays the list of issues in an HTML table (ID, title, status, priority) | ||
| 39 | +Do not touch the existing JSON routes yet, they must keep working. Check that localhost:8080/ displays a table. | ||
| 40 | +``` | ||
| 41 | + | ||
| 42 | +**Step 5 — Issue creation with HTMX** | ||
| 43 | +``` | ||
| 44 | +Context: Go project "issue-tracker" with a / page that displays a table of issues (web/templates), and an in-memory store. | ||
| 45 | +Add HTMX (via CDN in the layout) and: | ||
| 46 | +- an issue creation form (title, description, priority) above the table | ||
| 47 | +- the form posts with hx-post to /issues/new, which creates the issue and returns the HTML of a single <tr> row | ||
| 48 | +- the table has a <tbody id="issues-list"> and the form uses hx-target="#issues-list" hx-swap="afterbegin" | ||
| 49 | +Check that creating an issue adds it to the table without reloading the page. | ||
| 50 | +``` | ||
| 51 | + | ||
| 52 | +**Step 6 — Inline editing** | ||
| 53 | +``` | ||
| 54 | +Context: Go project "issue-tracker", / page with a table of issues and creation via HTMX (POST /issues/new route). | ||
| 55 | +Add editing of an issue directly in the table: | ||
| 56 | +- each row has an "Edit" button with hx-get to /issues/{id}/edit that replaces the row with an inline form (hx-target="closest tr" hx-swap="outerHTML") | ||
| 57 | +- the edit form posts with hx-put to /issues/{id} and replaces the row with the updated version | ||
| 58 | +Check that editing works without a page reload and without breaking creation. | ||
| 59 | +``` | ||
| 60 | + | ||
| 61 | +**Step 7 — Deletion** | ||
| 62 | +``` | ||
| 63 | +Context: Go project "issue-tracker", table of issues with creation and inline editing via HTMX. | ||
| 64 | +Add a "Delete" button on each row: | ||
| 65 | +- hx-delete to /issues/{id} | ||
| 66 | +- hx-confirm="Confirm deletion?" | ||
| 67 | +- hx-target="closest tr" hx-swap="outerHTML swap:1s" (or equivalent) to remove the row from the table | ||
| 68 | +Check that deletion works and that the other actions (creation, editing) still work. | ||
| 69 | +``` | ||
| 70 | + | ||
| 71 | +**Step 8 — Filtering / search** | ||
| 72 | +``` | ||
| 73 | +Context: Go project "issue-tracker" with full HTMX CRUD on issues. | ||
| 74 | +Add a search bar above the table: | ||
| 75 | +- an input with hx-get to /issues/search, hx-trigger="keyup changed delay:300ms", hx-target="#issues-list" | ||
| 76 | +- the /issues/search route filters issues by title (case-insensitive) and returns only the matching <tr> rows | ||
| 77 | +Check that typing in the bar filters the list live. | ||
| 78 | +``` | ||
| 79 | + | ||
| 80 | +**Step 9 — SQLite persistence** | ||
| 81 | +``` | ||
| 82 | +Context: Go project "issue-tracker" with an in-memory store (internal/store) and full HTMX CRUD. | ||
| 83 | +Replace the in-memory store with SQLite: | ||
| 84 | +- use the modernc.org/sqlite library (pure Go, no cgo needed) | ||
| 85 | +- create an issues.db file, with an issues table having the same fields as the Issue struct | ||
| 86 | +- keep exactly the same public interface of the store package (Create, Get, List, Update, Delete) so nothing breaks on the routes side | ||
| 87 | +Check that issues survive a server restart. | ||
| 88 | +``` | ||
| 89 | + | ||
| 90 | +**Step 10 — Finishing touches** | ||
| 91 | +``` | ||
| 92 | +Context: complete Go project "issue-tracker" (HTMX CRUD + SQLite). | ||
| 93 | +Add: | ||
| 94 | +- a minimal web/static/style.css file (clean table, colored badges depending on status: open=green, in_progress=orange, closed=gray) | ||
| 95 | +- a route to serve web/static/ | ||
| 96 | +- a simple favicon if possible | ||
| 97 | +Add nothing else, no new feature. | ||
| 98 | +``` | ||
| 99 | + | ||
| 100 | +Here is an additional step to insert after step 10 (finishing touches), dedicated to a more polished look. I split it into two prompts, because "fancy CSS" with lots of details at once risks crashing a small local model. | ||
| 101 | + | ||
| 102 | +--- | ||
| 103 | + | ||
| 104 | +**Step 11 — Design system (variables + typography)** | ||
| 105 | +``` | ||
| 106 | +Context: Go project "issue-tracker" with an HTMX table styled simply (web/static/style.css). | ||
| 107 | +Rewrite web/static/style.css from scratch with a "design system" base: | ||
| 108 | +- CSS variables (:root) for colors (background, text, primary, success, warning, danger, borders), border radii, shadows and spacings | ||
| 109 | +- import a font via Google Fonts (e.g. "Inter" or "Poppins") in layout.html | ||
| 110 | +- apply a slightly textured background or a soft gradient to the body | ||
| 111 | +- a card (.card) with a soft shadow and rounded corners to wrap the form and the table | ||
| 112 | +Do not touch any Go route, only the CSS and the <head> of the layout. | ||
| 113 | +``` | ||
| 114 | + | ||
| 115 | +**Step 12 — Micro-interactions and polish** | ||
| 116 | +``` | ||
| 117 | +Context: Go project "issue-tracker" with a CSS design system (variables, font, cards) in web/static/style.css. | ||
| 118 | +Add "fancy" touches in pure CSS (no JS): | ||
| 119 | +- soft transitions (transform, box-shadow) on hover for buttons and table rows | ||
| 120 | +- status badges with a light gradient and a rounded pill shape instead of a plain flat background | ||
| 121 | +- a fade-in appearance animation (fade-in + slight slide) for new rows added via HTMX (use the class injected by htmx-swapping / htmx-settling, or a CSS @keyframes class applied via hx-swap="afterbegin swap:0.3s") | ||
| 122 | +- a visible and elegant focus state on inputs (soft colored outline, not just the browser's default outline) | ||
| 123 | +Check that the table stays readable and that nothing breaks visually on mobile (simple responsive layout with overflow-x: auto on the table). | ||
| 124 | +``` | ||
renamed
06-team/prompt.txt +0 -0 | similarity index 100% | ||
| rename from 06-team/prompt.md | ||
| rename to 06-team/prompt.txt |
| similarity index 100% | |||
| rename from 06-team/prompt.md | |||
| rename to 06-team/prompt.txt |
modified
06-team/spec.yaml +1 -1 | @@ -5,7 +5,7 @@ displayName: go-web-ide | ||
| 5 | 5 | description: Docker Agent + Golang + Web IDE |
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 8 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 9 | 9 | |
| 10 | 10 | permissions: |
| 11 | 11 | network: |
| @@ -5,7 +5,7 @@ displayName: go-web-ide | |||
| 5 | description: Docker Agent + Golang + Web IDE | 5 | description: Docker Agent + Golang + Web IDE |
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 8 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 9 | 9 | ||
| 10 | permissions: | 10 | permissions: |
| 11 | network: | 11 | network: |
modified
06-team/start.35b.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
06-team/start.9b.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
06-team/start.gemma.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
07-simple/.vscode/settings.json +4 -2 | @@ -1,8 +1,10 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | |
| 5 | - "terminal.integrated.fontSize": 15, | |
| 4 | + "editor.fontSize": 18, | |
| 5 | + "terminal.integrated.fontSize": 18, | |
| 6 | + // "editor.fontSize": 18, | |
| 7 | + // "terminal.integrated.fontSize": 18, | |
| 6 | 8 | "editor.insertSpaces": true, |
| 7 | 9 | "editor.tabSize": 4, |
| 8 | 10 | "editor.detectIndentation": true, |
| @@ -1,8 +1,10 @@ | |||
| 1 | { | 1 | { |
| 2 | "workbench.iconTheme": "material-icon-theme", | 2 | "workbench.iconTheme": "material-icon-theme", |
| 3 | "workbench.colorTheme": "Light 2026", | 3 | "workbench.colorTheme": "Light 2026", |
| 4 | - "editor.fontSize": 16, | 4 | + "editor.fontSize": 18, |
| 5 | - "terminal.integrated.fontSize": 15, | 5 | + "terminal.integrated.fontSize": 18, |
| 6 | + // "editor.fontSize": 18, | ||
| 7 | + // "terminal.integrated.fontSize": 18, | ||
| 6 | "editor.insertSpaces": true, | 8 | "editor.insertSpaces": true, |
| 7 | "editor.tabSize": 4, | 9 | "editor.tabSize": 4, |
| 8 | "editor.detectIndentation": true, | 10 | "editor.detectIndentation": true, |
modified
07-simple/coder.sh +4 -2 | old mode 100644 | ||
| new mode 100755 | ||
| @@ -11,9 +11,11 @@ published_port=8807 | ||
| 11 | 11 | |
| 12 | 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp |
| 13 | 13 | |
| 14 | -sbx mcp add context7 --url https://mcp.context7.com/mcp | |
| 14 | +#sbx mcp add context7 --url https://mcp.context7.com/mcp | |
| 15 | + | |
| 16 | +#sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | |
| 17 | +sbx run -d ./ . -p ${published_port}:8080/tcp | |
| 15 | 18 | |
| 16 | -sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | |
| 17 | 19 | |
| 18 | 20 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp |
| 19 | 21 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp |
| old mode 100644 | |||
| new mode 100755 | |||
| @@ -11,9 +11,11 @@ published_port=8807 | |||
| 11 | 11 | ||
| 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp | 12 | #sbx run -d --static-mcp context7 --kit . ${name} . -p ${published_port}:8080/tcp |
| 13 | 13 | ||
| 14 | -sbx mcp add context7 --url https://mcp.context7.com/mcp | 14 | +#sbx mcp add context7 --url https://mcp.context7.com/mcp |
| 15 | + | ||
| 16 | +#sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | ||
| 17 | +sbx run -d ./ . -p ${published_port}:8080/tcp | ||
| 15 | 18 | ||
| 16 | -sbx run -d --static-mcp context7 ./ . -p ${published_port}:8080/tcp | ||
| 17 | 19 | ||
| 18 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp | 20 | #sbx ports ${name}-${current_dir} --unpublish ${published_port}:8080/tcp |
| 19 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp | 21 | #sbx ports ${name}-${current_dir} --publish ${published_port}:8080/tcp |
added
07-simple/prompt.en.txt +124 -0 | new file mode 100644 | ||
| @@ -0,0 +1,124 @@ | ||
| 1 | +**Step 1 — Project skeleton** | |
| 2 | +``` | |
| 3 | +Create a Go project for an issue management web application (like a mini Jira). | |
| 4 | +Expected structure: | |
| 5 | +- go.mod (module "issue-tracker") | |
| 6 | +- cmd/server/main.go: starts an HTTP server on port 8080 | |
| 7 | +- A single route "/" that answers "OK" in plain text | |
| 8 | +No database, no HTML for now. Check that "go run cmd/server/main.go" starts without errors and that curl localhost:8080 answers "OK". | |
| 9 | +``` | |
| 10 | + | |
| 11 | +**Step 2 — Data model + in-memory storage** | |
| 12 | +``` | |
| 13 | +Context: Go project "issue-tracker" with cmd/server/main.go that starts a server on port 8080. | |
| 14 | +Add an internal/store package with: | |
| 15 | +- an Issue struct (ID int, Title string, Description string, Status string, Priority string, CreatedAt time.Time) | |
| 16 | +- an in-memory store (a map protected by a sync.Mutex) | |
| 17 | +- the functions Create(issue) Issue, Get(id) (Issue, bool), List() []Issue, Update(id, issue) bool, Delete(id) bool | |
| 18 | +Do not add any HTTP route for now. Just add a simple unit test that checks Create + Get + List. | |
| 19 | +``` | |
| 20 | + | |
| 21 | +**Step 3 — JSON CRUD routes** | |
| 22 | +``` | |
| 23 | +Context: Go project "issue-tracker" with an internal/store package (in-memory CRUD on Issue). | |
| 24 | +Add the following HTTP routes in main.go, using the store, in JSON: | |
| 25 | +- GET /issues: list all issues | |
| 26 | +- POST /issues: create an issue from the JSON sent | |
| 27 | +- GET /issues/{id}: return an issue | |
| 28 | +- PUT /issues/{id}: update an issue | |
| 29 | +- DELETE /issues/{id}: delete an issue | |
| 30 | +Use the standard net/http (no external framework). Then give me 4 curl commands to test each route. | |
| 31 | +``` | |
| 32 | + | |
| 33 | +**Step 4 — First HTML page** | |
| 34 | +``` | |
| 35 | +Context: Go project "issue-tracker" with JSON routes /issues (GET/POST/PUT/DELETE) based on internal/store. | |
| 36 | +Add HTML rendering with html/template: | |
| 37 | +- a web/templates folder with a layout.html (minimal header/footer) and an index.html page | |
| 38 | +- a GET / route that displays the list of issues in an HTML table (ID, title, status, priority) | |
| 39 | +Do not touch the existing JSON routes yet, they must keep working. Check that localhost:8080/ displays a table. | |
| 40 | +``` | |
| 41 | + | |
| 42 | +**Step 5 — Issue creation with HTMX** | |
| 43 | +``` | |
| 44 | +Context: Go project "issue-tracker" with a / page that displays a table of issues (web/templates), and an in-memory store. | |
| 45 | +Add HTMX (via CDN in the layout) and: | |
| 46 | +- an issue creation form (title, description, priority) above the table | |
| 47 | +- the form posts with hx-post to /issues/new, which creates the issue and returns the HTML of a single <tr> row | |
| 48 | +- the table has a <tbody id="issues-list"> and the form uses hx-target="#issues-list" hx-swap="afterbegin" | |
| 49 | +Check that creating an issue adds it to the table without reloading the page. | |
| 50 | +``` | |
| 51 | + | |
| 52 | +**Step 6 — Inline editing** | |
| 53 | +``` | |
| 54 | +Context: Go project "issue-tracker", / page with a table of issues and creation via HTMX (POST /issues/new route). | |
| 55 | +Add editing of an issue directly in the table: | |
| 56 | +- each row has an "Edit" button with hx-get to /issues/{id}/edit that replaces the row with an inline form (hx-target="closest tr" hx-swap="outerHTML") | |
| 57 | +- the edit form posts with hx-put to /issues/{id} and replaces the row with the updated version | |
| 58 | +Check that editing works without a page reload and without breaking creation. | |
| 59 | +``` | |
| 60 | + | |
| 61 | +**Step 7 — Deletion** | |
| 62 | +``` | |
| 63 | +Context: Go project "issue-tracker", table of issues with creation and inline editing via HTMX. | |
| 64 | +Add a "Delete" button on each row: | |
| 65 | +- hx-delete to /issues/{id} | |
| 66 | +- hx-confirm="Confirm deletion?" | |
| 67 | +- hx-target="closest tr" hx-swap="outerHTML swap:1s" (or equivalent) to remove the row from the table | |
| 68 | +Check that deletion works and that the other actions (creation, editing) still work. | |
| 69 | +``` | |
| 70 | + | |
| 71 | +**Step 8 — Filtering / search** | |
| 72 | +``` | |
| 73 | +Context: Go project "issue-tracker" with full HTMX CRUD on issues. | |
| 74 | +Add a search bar above the table: | |
| 75 | +- an input with hx-get to /issues/search, hx-trigger="keyup changed delay:300ms", hx-target="#issues-list" | |
| 76 | +- the /issues/search route filters issues by title (case-insensitive) and returns only the matching <tr> rows | |
| 77 | +Check that typing in the bar filters the list live. | |
| 78 | +``` | |
| 79 | + | |
| 80 | +**Step 9 — SQLite persistence** | |
| 81 | +``` | |
| 82 | +Context: Go project "issue-tracker" with an in-memory store (internal/store) and full HTMX CRUD. | |
| 83 | +Replace the in-memory store with SQLite: | |
| 84 | +- use the modernc.org/sqlite library (pure Go, no cgo needed) | |
| 85 | +- create an issues.db file, with an issues table having the same fields as the Issue struct | |
| 86 | +- keep exactly the same public interface of the store package (Create, Get, List, Update, Delete) so nothing breaks on the routes side | |
| 87 | +Check that issues survive a server restart. | |
| 88 | +``` | |
| 89 | + | |
| 90 | +**Step 10 — Finishing touches** | |
| 91 | +``` | |
| 92 | +Context: complete Go project "issue-tracker" (HTMX CRUD + SQLite). | |
| 93 | +Add: | |
| 94 | +- a minimal web/static/style.css file (clean table, colored badges depending on status: open=green, in_progress=orange, closed=gray) | |
| 95 | +- a route to serve web/static/ | |
| 96 | +- a simple favicon if possible | |
| 97 | +Add nothing else, no new feature. | |
| 98 | +``` | |
| 99 | + | |
| 100 | +Here is an additional step to insert after step 10 (finishing touches), dedicated to a more polished look. I split it into two prompts, because "fancy CSS" with lots of details at once risks crashing a small local model. | |
| 101 | + | |
| 102 | +--- | |
| 103 | + | |
| 104 | +**Step 11 — Design system (variables + typography)** | |
| 105 | +``` | |
| 106 | +Context: Go project "issue-tracker" with an HTMX table styled simply (web/static/style.css). | |
| 107 | +Rewrite web/static/style.css from scratch with a "design system" base: | |
| 108 | +- CSS variables (:root) for colors (background, text, primary, success, warning, danger, borders), border radii, shadows and spacings | |
| 109 | +- import a font via Google Fonts (e.g. "Inter" or "Poppins") in layout.html | |
| 110 | +- apply a slightly textured background or a soft gradient to the body | |
| 111 | +- a card (.card) with a soft shadow and rounded corners to wrap the form and the table | |
| 112 | +Do not touch any Go route, only the CSS and the <head> of the layout. | |
| 113 | +``` | |
| 114 | + | |
| 115 | +**Step 12 — Micro-interactions and polish** | |
| 116 | +``` | |
| 117 | +Context: Go project "issue-tracker" with a CSS design system (variables, font, cards) in web/static/style.css. | |
| 118 | +Add "fancy" touches in pure CSS (no JS): | |
| 119 | +- soft transitions (transform, box-shadow) on hover for buttons and table rows | |
| 120 | +- status badges with a light gradient and a rounded pill shape instead of a plain flat background | |
| 121 | +- a fade-in appearance animation (fade-in + slight slide) for new rows added via HTMX (use the class injected by htmx-swapping / htmx-settling, or a CSS @keyframes class applied via hx-swap="afterbegin swap:0.3s") | |
| 122 | +- a visible and elegant focus state on inputs (soft colored outline, not just the browser's default outline) | |
| 123 | +Check that the table stays readable and that nothing breaks visually on mobile (simple responsive layout with overflow-x: auto on the table). | |
| 124 | +``` | |
| new file mode 100644 | |||
| @@ -0,0 +1,124 @@ | |||
| 1 | +**Step 1 — Project skeleton** | ||
| 2 | +``` | ||
| 3 | +Create a Go project for an issue management web application (like a mini Jira). | ||
| 4 | +Expected structure: | ||
| 5 | +- go.mod (module "issue-tracker") | ||
| 6 | +- cmd/server/main.go: starts an HTTP server on port 8080 | ||
| 7 | +- A single route "/" that answers "OK" in plain text | ||
| 8 | +No database, no HTML for now. Check that "go run cmd/server/main.go" starts without errors and that curl localhost:8080 answers "OK". | ||
| 9 | +``` | ||
| 10 | + | ||
| 11 | +**Step 2 — Data model + in-memory storage** | ||
| 12 | +``` | ||
| 13 | +Context: Go project "issue-tracker" with cmd/server/main.go that starts a server on port 8080. | ||
| 14 | +Add an internal/store package with: | ||
| 15 | +- an Issue struct (ID int, Title string, Description string, Status string, Priority string, CreatedAt time.Time) | ||
| 16 | +- an in-memory store (a map protected by a sync.Mutex) | ||
| 17 | +- the functions Create(issue) Issue, Get(id) (Issue, bool), List() []Issue, Update(id, issue) bool, Delete(id) bool | ||
| 18 | +Do not add any HTTP route for now. Just add a simple unit test that checks Create + Get + List. | ||
| 19 | +``` | ||
| 20 | + | ||
| 21 | +**Step 3 — JSON CRUD routes** | ||
| 22 | +``` | ||
| 23 | +Context: Go project "issue-tracker" with an internal/store package (in-memory CRUD on Issue). | ||
| 24 | +Add the following HTTP routes in main.go, using the store, in JSON: | ||
| 25 | +- GET /issues: list all issues | ||
| 26 | +- POST /issues: create an issue from the JSON sent | ||
| 27 | +- GET /issues/{id}: return an issue | ||
| 28 | +- PUT /issues/{id}: update an issue | ||
| 29 | +- DELETE /issues/{id}: delete an issue | ||
| 30 | +Use the standard net/http (no external framework). Then give me 4 curl commands to test each route. | ||
| 31 | +``` | ||
| 32 | + | ||
| 33 | +**Step 4 — First HTML page** | ||
| 34 | +``` | ||
| 35 | +Context: Go project "issue-tracker" with JSON routes /issues (GET/POST/PUT/DELETE) based on internal/store. | ||
| 36 | +Add HTML rendering with html/template: | ||
| 37 | +- a web/templates folder with a layout.html (minimal header/footer) and an index.html page | ||
| 38 | +- a GET / route that displays the list of issues in an HTML table (ID, title, status, priority) | ||
| 39 | +Do not touch the existing JSON routes yet, they must keep working. Check that localhost:8080/ displays a table. | ||
| 40 | +``` | ||
| 41 | + | ||
| 42 | +**Step 5 — Issue creation with HTMX** | ||
| 43 | +``` | ||
| 44 | +Context: Go project "issue-tracker" with a / page that displays a table of issues (web/templates), and an in-memory store. | ||
| 45 | +Add HTMX (via CDN in the layout) and: | ||
| 46 | +- an issue creation form (title, description, priority) above the table | ||
| 47 | +- the form posts with hx-post to /issues/new, which creates the issue and returns the HTML of a single <tr> row | ||
| 48 | +- the table has a <tbody id="issues-list"> and the form uses hx-target="#issues-list" hx-swap="afterbegin" | ||
| 49 | +Check that creating an issue adds it to the table without reloading the page. | ||
| 50 | +``` | ||
| 51 | + | ||
| 52 | +**Step 6 — Inline editing** | ||
| 53 | +``` | ||
| 54 | +Context: Go project "issue-tracker", / page with a table of issues and creation via HTMX (POST /issues/new route). | ||
| 55 | +Add editing of an issue directly in the table: | ||
| 56 | +- each row has an "Edit" button with hx-get to /issues/{id}/edit that replaces the row with an inline form (hx-target="closest tr" hx-swap="outerHTML") | ||
| 57 | +- the edit form posts with hx-put to /issues/{id} and replaces the row with the updated version | ||
| 58 | +Check that editing works without a page reload and without breaking creation. | ||
| 59 | +``` | ||
| 60 | + | ||
| 61 | +**Step 7 — Deletion** | ||
| 62 | +``` | ||
| 63 | +Context: Go project "issue-tracker", table of issues with creation and inline editing via HTMX. | ||
| 64 | +Add a "Delete" button on each row: | ||
| 65 | +- hx-delete to /issues/{id} | ||
| 66 | +- hx-confirm="Confirm deletion?" | ||
| 67 | +- hx-target="closest tr" hx-swap="outerHTML swap:1s" (or equivalent) to remove the row from the table | ||
| 68 | +Check that deletion works and that the other actions (creation, editing) still work. | ||
| 69 | +``` | ||
| 70 | + | ||
| 71 | +**Step 8 — Filtering / search** | ||
| 72 | +``` | ||
| 73 | +Context: Go project "issue-tracker" with full HTMX CRUD on issues. | ||
| 74 | +Add a search bar above the table: | ||
| 75 | +- an input with hx-get to /issues/search, hx-trigger="keyup changed delay:300ms", hx-target="#issues-list" | ||
| 76 | +- the /issues/search route filters issues by title (case-insensitive) and returns only the matching <tr> rows | ||
| 77 | +Check that typing in the bar filters the list live. | ||
| 78 | +``` | ||
| 79 | + | ||
| 80 | +**Step 9 — SQLite persistence** | ||
| 81 | +``` | ||
| 82 | +Context: Go project "issue-tracker" with an in-memory store (internal/store) and full HTMX CRUD. | ||
| 83 | +Replace the in-memory store with SQLite: | ||
| 84 | +- use the modernc.org/sqlite library (pure Go, no cgo needed) | ||
| 85 | +- create an issues.db file, with an issues table having the same fields as the Issue struct | ||
| 86 | +- keep exactly the same public interface of the store package (Create, Get, List, Update, Delete) so nothing breaks on the routes side | ||
| 87 | +Check that issues survive a server restart. | ||
| 88 | +``` | ||
| 89 | + | ||
| 90 | +**Step 10 — Finishing touches** | ||
| 91 | +``` | ||
| 92 | +Context: complete Go project "issue-tracker" (HTMX CRUD + SQLite). | ||
| 93 | +Add: | ||
| 94 | +- a minimal web/static/style.css file (clean table, colored badges depending on status: open=green, in_progress=orange, closed=gray) | ||
| 95 | +- a route to serve web/static/ | ||
| 96 | +- a simple favicon if possible | ||
| 97 | +Add nothing else, no new feature. | ||
| 98 | +``` | ||
| 99 | + | ||
| 100 | +Here is an additional step to insert after step 10 (finishing touches), dedicated to a more polished look. I split it into two prompts, because "fancy CSS" with lots of details at once risks crashing a small local model. | ||
| 101 | + | ||
| 102 | +--- | ||
| 103 | + | ||
| 104 | +**Step 11 — Design system (variables + typography)** | ||
| 105 | +``` | ||
| 106 | +Context: Go project "issue-tracker" with an HTMX table styled simply (web/static/style.css). | ||
| 107 | +Rewrite web/static/style.css from scratch with a "design system" base: | ||
| 108 | +- CSS variables (:root) for colors (background, text, primary, success, warning, danger, borders), border radii, shadows and spacings | ||
| 109 | +- import a font via Google Fonts (e.g. "Inter" or "Poppins") in layout.html | ||
| 110 | +- apply a slightly textured background or a soft gradient to the body | ||
| 111 | +- a card (.card) with a soft shadow and rounded corners to wrap the form and the table | ||
| 112 | +Do not touch any Go route, only the CSS and the <head> of the layout. | ||
| 113 | +``` | ||
| 114 | + | ||
| 115 | +**Step 12 — Micro-interactions and polish** | ||
| 116 | +``` | ||
| 117 | +Context: Go project "issue-tracker" with a CSS design system (variables, font, cards) in web/static/style.css. | ||
| 118 | +Add "fancy" touches in pure CSS (no JS): | ||
| 119 | +- soft transitions (transform, box-shadow) on hover for buttons and table rows | ||
| 120 | +- status badges with a light gradient and a rounded pill shape instead of a plain flat background | ||
| 121 | +- a fade-in appearance animation (fade-in + slight slide) for new rows added via HTMX (use the class injected by htmx-swapping / htmx-settling, or a CSS @keyframes class applied via hx-swap="afterbegin swap:0.3s") | ||
| 122 | +- a visible and elegant focus state on inputs (soft colored outline, not just the browser's default outline) | ||
| 123 | +Check that the table stays readable and that nothing breaks visually on mobile (simple responsive layout with overflow-x: auto on the table). | ||
| 124 | +``` | ||
modified
07-simple/prompt.txt +0 -6 | @@ -1,9 +1,3 @@ | ||
| 1 | -```bash | |
| 2 | -docker-agent run 1.agent.yaml --yolo | |
| 3 | -docker-agent run 2.agent.yaml --yolo | |
| 4 | -``` | |
| 5 | - | |
| 6 | - | |
| 7 | 1 | **Étape 1 — Squelette du projet** |
| 8 | 2 | ``` |
| 9 | 3 | Crée un projet Go pour une application web de gestion d'issues (comme un mini Jira). |
| @@ -1,9 +1,3 @@ | |||
| 1 | -```bash | ||
| 2 | -docker-agent run 1.agent.yaml --yolo | ||
| 3 | -docker-agent run 2.agent.yaml --yolo | ||
| 4 | -``` | ||
| 5 | - | ||
| 6 | - | ||
| 7 | **Étape 1 — Squelette du projet** | 1 | **Étape 1 — Squelette du projet** |
| 8 | ``` | 2 | ``` |
| 9 | Crée un projet Go pour une application web de gestion d'issues (comme un mini Jira). | 3 | Crée un projet Go pour une application web de gestion d'issues (comme un mini Jira). |
modified
07-simple/spec.yaml +1 -1 | @@ -5,7 +5,7 @@ displayName: go-web-ide | ||
| 5 | 5 | description: Docker Agent + Golang + Web IDE |
| 6 | 6 | |
| 7 | 7 | sandbox: |
| 8 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | |
| 8 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 | |
| 9 | 9 | #image: docker.io/k33g/go-ide:v0.0.2 |
| 10 | 10 | |
| 11 | 11 | permissions: |
| @@ -5,7 +5,7 @@ displayName: go-web-ide | |||
| 5 | description: Docker Agent + Golang + Web IDE | 5 | description: Docker Agent + Golang + Web IDE |
| 6 | 6 | ||
| 7 | sandbox: | 7 | sandbox: |
| 8 | - image: docker.io/philippecharriere494/go-ide:v0.0.4 | 8 | + image: docker.io/philippecharriere494/go-ide:v0.0.6 |
| 9 | #image: docker.io/k33g/go-ide:v0.0.2 | 9 | #image: docker.io/k33g/go-ide:v0.0.2 |
| 10 | 10 | ||
| 11 | permissions: | 11 | permissions: |
modified
07-simple/start.gemma.sh +0 -0 | old mode 100644 | ||
| new mode 100755 |
| old mode 100644 | |||
| new mode 100755 |
modified
quick.start.sh +3 -1 | old mode 100644 | ||
| new mode 100755 | ||
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | -cd 01-socle-dmr-shell | |
| 2 | +cd 00-introduction | |
| 3 | +./coder.sh | |
| 4 | +cd ../01-socle-dmr-shell | |
| 3 | 5 | ./coder.sh |
| 4 | 6 | cd ../02-knowledge-rag |
| 5 | 7 | ./coder.sh |
| old mode 100644 | |||
| new mode 100755 | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | -cd 01-socle-dmr-shell | 2 | +cd 00-introduction |
| 3 | +./coder.sh | ||
| 4 | +cd ../01-socle-dmr-shell | ||
| 3 | ./coder.sh | 5 | ./coder.sh |
| 4 | cd ../02-knowledge-rag | 6 | cd ../02-knowledge-rag |
| 5 | ./coder.sh | 7 | ./coder.sh |
modified
stop.all.sh +1 -0 | old mode 100644 | ||
| new mode 100755 | ||
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | +sbx rm go-web-ide-00-introduction --force | |
| 2 | 3 | sbx rm go-web-ide-01-socle-dmr-shell --force |
| 3 | 4 | sbx rm go-web-ide-02-knowledge-rag --force |
| 4 | 5 | sbx rm go-web-ide-03-skills --force |
| old mode 100644 | |||
| new mode 100755 | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | +sbx rm go-web-ide-00-introduction --force | ||
| 2 | sbx rm go-web-ide-01-socle-dmr-shell --force | 3 | sbx rm go-web-ide-01-socle-dmr-shell --force |
| 3 | sbx rm go-web-ide-02-knowledge-rag --force | 4 | sbx rm go-web-ide-02-knowledge-rag --force |
| 4 | sbx rm go-web-ide-03-skills --force | 5 | sbx rm go-web-ide-03-skills --force |
renamed
templates/Dockerfile +17 -8 | similarity index 90% | ||
| rename from templates/go/Dockerfile | ||
| rename to templates/Dockerfile | ||
| @@ -1,4 +1,4 @@ | ||
| 1 | -ARG DOCKER_AGENT_VERSION=1.141.0 | |
| 1 | +ARG DOCKER_AGENT_VERSION=1.154.0 | |
| 2 | 2 | |
| 3 | 3 | FROM docker/docker-agent:${DOCKER_AGENT_VERSION} AS coding-agent |
| 4 | 4 | |
| @@ -29,6 +29,9 @@ ENV PATH=/usr/local/go/bin:/usr/local/node/bin:/home/agent/go/bin:$PATH | ||
| 29 | 29 | # toolchain download and run a different Go, silently defeating the pin. |
| 30 | 30 | ENV GOTOOLCHAIN=local |
| 31 | 31 | |
| 32 | +# Keep the docker-agent version pinned by DOCKER_AGENT_VERSION: no self-update. | |
| 33 | +ENV DOCKER_AGENT_AUTO_UPDATE=0 | |
| 34 | + | |
| 32 | 35 | USER root |
| 33 | 36 | |
| 34 | 37 | # ------------------------------------ |
| @@ -52,10 +55,10 @@ EOF | ||
| 52 | 55 | # ------------------------------------ |
| 53 | 56 | # Install a pinned Go toolchain |
| 54 | 57 | # |
| 55 | -# The shell base image ships Go from Ubuntu's golang-go package | |
| 56 | -# (/usr/bin/go -> /usr/lib/go-1.26/bin/go), whose version floats with the | |
| 57 | -# `:shell` tag. Drop it and install an explicit release from go.dev so the | |
| 58 | -# image is reproducible. | |
| 58 | +# Depending on its tag, the shell base image may ship Go from Ubuntu's | |
| 59 | +# golang-go package (/usr/bin/go), whose version floats with the `:shell` tag. | |
| 60 | +# Drop it if present (recent tags no longer carry it) and install an explicit | |
| 61 | +# release from go.dev so the image is reproducible. | |
| 59 | 62 | # |
| 60 | 63 | # TARGETARCH is supplied by buildx (amd64 / arm64) and matches go.dev's |
| 61 | 64 | # tarball naming. |
| @@ -65,7 +68,11 @@ ARG TARGETARCH | ||
| 65 | 68 | |
| 66 | 69 | RUN <<EOF |
| 67 | 70 | set -eux |
| 68 | -apt-get remove -y golang-go golang-doc | |
| 71 | +for pkg in golang-go golang-doc; do | |
| 72 | + if dpkg -s "${pkg}" >/dev/null 2>&1; then | |
| 73 | + apt-get remove -y "${pkg}" | |
| 74 | + fi | |
| 75 | +done | |
| 69 | 76 | apt-get autoremove -y |
| 70 | 77 | curl ${CURL_RETRY} -C - -fsSL -o /tmp/go.tgz "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" |
| 71 | 78 | rm -rf /usr/local/go |
| @@ -118,7 +125,7 @@ EOF | ||
| 118 | 125 | # ------------------------------------ |
| 119 | 126 | # Install code-server |
| 120 | 127 | # ------------------------------------ |
| 121 | -ARG CODE_SERVER_VERSION=4.137.0 | |
| 128 | +ARG CODE_SERVER_VERSION=4.144.0 | |
| 122 | 129 | |
| 123 | 130 | RUN curl ${CURL_RETRY} -fsSL https://code-server.dev/install.sh | VERSION=${CODE_SERVER_VERSION} sh |
| 124 | 131 | |
| @@ -136,8 +143,10 @@ USER ${USER_NAME} | ||
| 136 | 143 | # ------------------------------------ |
| 137 | 144 | # Install OhMyBash |
| 138 | 145 | # ------------------------------------ |
| 146 | +ARG OSH_COMMIT=94c2977eda06f230aafa9628fcd869123f01896b | |
| 147 | + | |
| 139 | 148 | RUN <<EOF |
| 140 | -bash -c "$(curl ${CURL_RETRY} -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" | |
| 149 | +bash -c "$(curl ${CURL_RETRY} -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/${OSH_COMMIT}/tools/install.sh)" --unattended | |
| 141 | 150 | EOF |
| 142 | 151 | |
| 143 | 152 | # ------------------------------------ |
| similarity index 90% | |||
| rename from templates/go/Dockerfile | |||
| rename to templates/Dockerfile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | -ARG DOCKER_AGENT_VERSION=1.141.0 | 1 | +ARG DOCKER_AGENT_VERSION=1.154.0 |
| 2 | 2 | ||
| 3 | FROM docker/docker-agent:${DOCKER_AGENT_VERSION} AS coding-agent | 3 | FROM docker/docker-agent:${DOCKER_AGENT_VERSION} AS coding-agent |
| 4 | 4 | ||
| @@ -29,6 +29,9 @@ ENV PATH=/usr/local/go/bin:/usr/local/node/bin:/home/agent/go/bin:$PATH | |||
| 29 | # toolchain download and run a different Go, silently defeating the pin. | 29 | # toolchain download and run a different Go, silently defeating the pin. |
| 30 | ENV GOTOOLCHAIN=local | 30 | ENV GOTOOLCHAIN=local |
| 31 | 31 | ||
| 32 | +# Keep the docker-agent version pinned by DOCKER_AGENT_VERSION: no self-update. | ||
| 33 | +ENV DOCKER_AGENT_AUTO_UPDATE=0 | ||
| 34 | + | ||
| 32 | USER root | 35 | USER root |
| 33 | 36 | ||
| 34 | # ------------------------------------ | 37 | # ------------------------------------ |
| @@ -52,10 +55,10 @@ EOF | |||
| 52 | # ------------------------------------ | 55 | # ------------------------------------ |
| 53 | # Install a pinned Go toolchain | 56 | # Install a pinned Go toolchain |
| 54 | # | 57 | # |
| 55 | -# The shell base image ships Go from Ubuntu's golang-go package | 58 | +# Depending on its tag, the shell base image may ship Go from Ubuntu's |
| 56 | -# (/usr/bin/go -> /usr/lib/go-1.26/bin/go), whose version floats with the | 59 | +# golang-go package (/usr/bin/go), whose version floats with the `:shell` tag. |
| 57 | -# `:shell` tag. Drop it and install an explicit release from go.dev so the | 60 | +# Drop it if present (recent tags no longer carry it) and install an explicit |
| 58 | -# image is reproducible. | 61 | +# release from go.dev so the image is reproducible. |
| 59 | # | 62 | # |
| 60 | # TARGETARCH is supplied by buildx (amd64 / arm64) and matches go.dev's | 63 | # TARGETARCH is supplied by buildx (amd64 / arm64) and matches go.dev's |
| 61 | # tarball naming. | 64 | # tarball naming. |
| @@ -65,7 +68,11 @@ ARG TARGETARCH | |||
| 65 | 68 | ||
| 66 | RUN <<EOF | 69 | RUN <<EOF |
| 67 | set -eux | 70 | set -eux |
| 68 | -apt-get remove -y golang-go golang-doc | 71 | +for pkg in golang-go golang-doc; do |
| 72 | + if dpkg -s "${pkg}" >/dev/null 2>&1; then | ||
| 73 | + apt-get remove -y "${pkg}" | ||
| 74 | + fi | ||
| 75 | +done | ||
| 69 | apt-get autoremove -y | 76 | apt-get autoremove -y |
| 70 | curl ${CURL_RETRY} -C - -fsSL -o /tmp/go.tgz "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" | 77 | curl ${CURL_RETRY} -C - -fsSL -o /tmp/go.tgz "https://go.dev/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" |
| 71 | rm -rf /usr/local/go | 78 | rm -rf /usr/local/go |
| @@ -118,7 +125,7 @@ EOF | |||
| 118 | # ------------------------------------ | 125 | # ------------------------------------ |
| 119 | # Install code-server | 126 | # Install code-server |
| 120 | # ------------------------------------ | 127 | # ------------------------------------ |
| 121 | -ARG CODE_SERVER_VERSION=4.137.0 | 128 | +ARG CODE_SERVER_VERSION=4.144.0 |
| 122 | 129 | ||
| 123 | RUN curl ${CURL_RETRY} -fsSL https://code-server.dev/install.sh | VERSION=${CODE_SERVER_VERSION} sh | 130 | RUN curl ${CURL_RETRY} -fsSL https://code-server.dev/install.sh | VERSION=${CODE_SERVER_VERSION} sh |
| 124 | 131 | ||
| @@ -136,8 +143,10 @@ USER ${USER_NAME} | |||
| 136 | # ------------------------------------ | 143 | # ------------------------------------ |
| 137 | # Install OhMyBash | 144 | # Install OhMyBash |
| 138 | # ------------------------------------ | 145 | # ------------------------------------ |
| 146 | +ARG OSH_COMMIT=94c2977eda06f230aafa9628fcd869123f01896b | ||
| 147 | + | ||
| 139 | RUN <<EOF | 148 | RUN <<EOF |
| 140 | -bash -c "$(curl ${CURL_RETRY} -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" | 149 | +bash -c "$(curl ${CURL_RETRY} -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/${OSH_COMMIT}/tools/install.sh)" --unattended |
| 141 | EOF | 150 | EOF |
| 142 | 151 | ||
| 143 | # ------------------------------------ | 152 | # ------------------------------------ |
renamed
templates/bash_profile +0 -0 | similarity index 100% | ||
| rename from templates/go/bash_profile | ||
| rename to templates/bash_profile |
| similarity index 100% | |||
| rename from templates/go/bash_profile | |||
| rename to templates/bash_profile |
renamed
templates/build.sh +1 -1 | old mode 100644 | ||
| new mode 100755 | ||
| similarity index 51% | ||
| rename from templates/go/build.sh | ||
| rename to templates/build.sh | ||
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | 2 | #docker buildx build -t k33g/go-ide:v0.0.3 --push . |
| 3 | -docker buildx build -t philippecharriere494/go-ide:v0.0.4 --push . | |
| 3 | +docker buildx build -t philippecharriere494/go-ide:v0.0.6 --push . | |
| 4 | 4 | |
| old mode 100644 | |||
| new mode 100755 | |||
| similarity index 51% | |||
| rename from templates/go/build.sh | |||
| rename to templates/build.sh | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | #docker buildx build -t k33g/go-ide:v0.0.3 --push . | 2 | #docker buildx build -t k33g/go-ide:v0.0.3 --push . |
| 3 | -docker buildx build -t philippecharriere494/go-ide:v0.0.4 --push . | 3 | +docker buildx build -t philippecharriere494/go-ide:v0.0.6 --push . |
| 4 | 4 | ||
renamed
templates/code-server-settings.json +0 -0 | similarity index 100% | ||
| rename from templates/go/code-server-settings.json | ||
| rename to templates/code-server-settings.json |
| similarity index 100% | |||
| rename from templates/go/code-server-settings.json | |||
| rename to templates/code-server-settings.json |