-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add agent package management and opencode #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f9abe9e
add agent package management as cli
FScholPer 346dc58
fix missing loc
FScholPer a5c3f69
updated lock
FScholPer 256c3b1
add version test
FScholPer 0d9161f
Merge branch 'main' into add-apm-cli
FScholPer ef8cbb6
fix: install apm in s-core-local devcontainer feature
FScholPer d2161a6
fix: extract apm with its _internal directory using archive-dir kind
FScholPer fb3359f
refactor(tool-installer): use tarfile errors for archive-dir extraction
FScholPer eaf9acc
feat: Add opencode and persistent configuration volumes for `opencode…
lurtz aae40e5
refactor: remove unused type field from apm.lock.json archive-dir ent…
Copilot 7685207
Merge branch 'main' into add-apm-cli
lurtz 815970c
update lock file
lurtz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/s-core-devcontainer/.devcontainer/s-core-local/fix_config_volume_ownership.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| current_user_group="$(id -un):$(id -gn)" | ||
|
|
||
| ensure_owner() { | ||
| local target_dir="$1" | ||
|
|
||
| if [ ! -d "${target_dir}" ]; then | ||
| echo "Error: Config Volume: ${target_dir} does not exist." | ||
| exit 1 | ||
| fi | ||
|
|
||
| local current_owner_group | ||
| current_owner_group=$(stat -c "%U:%G" "${target_dir}") | ||
|
|
||
| if [ "${current_owner_group}" = "${current_user_group}" ]; then | ||
| echo "Config Volume: ${target_dir} is already owned by ${current_user_group}." | ||
| else | ||
| echo "Config Volume: ${target_dir} is owned by ${current_owner_group}. Setting ownership to ${current_user_group}..." | ||
| sudo chown -R "${current_user_group}" "${target_dir}" | ||
| fi | ||
| } | ||
|
|
||
| ensure_owner "/home/vscode/.config/opencode" | ||
| ensure_owner "/home/vscode/.local/share/opencode" | ||
| ensure_owner "/home/vscode/.config/gh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/bazel-contrib/rules_multitool/main/lockfile.schema.json", | ||
| "apm": { | ||
| "version": "0.27.0", | ||
| "binaries": [ | ||
| { | ||
| "kind": "archive-dir", | ||
| "dir": "apm-darwin-arm64", | ||
| "url": "https://github.com/microsoft/apm/releases/download/v0.27.0/apm-darwin-arm64.tar.gz", | ||
| "sha256": "4c68e5eaa3cfdb0b25734c316deb532835eaf3c3e2f7379a4c7c06918043a641", | ||
| "os": "macos", | ||
| "cpu": "arm64" | ||
| }, | ||
| { | ||
| "kind": "archive-dir", | ||
| "dir": "apm-darwin-x86_64", | ||
| "url": "https://github.com/microsoft/apm/releases/download/v0.27.0/apm-darwin-x86_64.tar.gz", | ||
| "sha256": "846b30055d96cbc6fa0fcf451f50d13f632b540ffdff344873a025bba607e25a", | ||
| "os": "macos", | ||
| "cpu": "x86_64" | ||
| }, | ||
| { | ||
| "kind": "archive-dir", | ||
| "dir": "apm-linux-x86_64", | ||
| "url": "https://github.com/microsoft/apm/releases/download/v0.27.0/apm-linux-x86_64.tar.gz", | ||
| "sha256": "be2d8a97ca8816636117ec26da85482d647ae3353213ea022fb1130c2dd3d3b0", | ||
| "os": "linux", | ||
| "cpu": "x86_64" | ||
| }, | ||
| { | ||
| "kind": "archive-dir", | ||
| "dir": "apm-linux-arm64", | ||
| "url": "https://github.com/microsoft/apm/releases/download/v0.27.0/apm-linux-arm64.tar.gz", | ||
| "sha256": "7df6e64ca9540665367f07af0226077ba92820f6cc759c10a5ca37e038a500e4", | ||
| "os": "linux", | ||
| "cpu": "arm64" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/bazel-contrib/rules_multitool/main/lockfile.schema.json", | ||
| "opencode": { | ||
| "version": "1.18.15", | ||
| "binaries": [ | ||
| { | ||
| "kind": "archive", | ||
| "file": "opencode", | ||
| "url": "https://github.com/anomalyco/opencode/releases/download/v1.18.15/opencode-darwin-arm64.zip", | ||
| "sha256": "bd60b57cb9fe0494a5352c807424d36d6d7853cf6dbddb97065c7ccd3c5d391c", | ||
| "type": "zip", | ||
| "os": "macos", | ||
| "cpu": "arm64" | ||
| }, | ||
| { | ||
| "kind": "archive", | ||
| "file": "opencode", | ||
| "url": "https://github.com/anomalyco/opencode/releases/download/v1.18.15/opencode-darwin-x64.zip", | ||
| "sha256": "e97e8185e7b7942f6e14f51b8727dbe023b54772e075bc16fead813680455d17", | ||
| "type": "zip", | ||
| "os": "macos", | ||
| "cpu": "x86_64" | ||
| }, | ||
| { | ||
| "kind": "archive", | ||
| "file": "opencode", | ||
| "url": "https://github.com/anomalyco/opencode/releases/download/v1.18.15/opencode-linux-x64.tar.gz", | ||
| "sha256": "d842e0e8c622c672a481b7dc6f0329009b64db96b2ba6041e56f4f93f0293b1c", | ||
| "type": "tar.gz", | ||
| "os": "linux", | ||
| "cpu": "x86_64" | ||
| }, | ||
| { | ||
| "kind": "archive", | ||
| "file": "opencode", | ||
| "url": "https://github.com/anomalyco/opencode/releases/download/v1.18.15/opencode-linux-arm64.tar.gz", | ||
| "sha256": "500611819ff88916b185649990505a9be76ad13ca5bb4b9323e5abdd39b1c6fb", | ||
| "type": "tar.gz", | ||
| "os": "linux", | ||
| "cpu": "arm64" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.