Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .devcontainer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Makefile for hermes-codespace (inside .devcontainer/)

# === Upstream Sync Configuration ===
# Update these to match your upstream template repository
EXTERNAL_DIR := /tmp/vendor/hermes-codespace$(shell bash -c 'echo $$RANDOM')
EXTERNAL_REPO := https://github.com/gitricko/hermes-codespace
EXTERNAL_DEVC := $(EXTERNAL_DIR)/.devcontainer

# === Development Commands ===

install:
@echo "Installing dependencies..."
@bash post-create-cmd.sh

ext-install:
@echo "Installing external dependencies..."
mkdir -p ~/.cline/data
cp globalState.json ~/.cline/data/
cp secrets.json ~/.cline/data/
code --force --install-extension saoudrizwan.claude-dev
# === Template Update Commands ===

# Use this command to update your .devcontainer folder with latest from upstream
# After you've converted your forked repo to private (Settings → Danger Zone → Leave fork network)
.PHONY: update-deps

update-deps:
@echo "Syncing .devcontainer from upstream..."
@if [ ! -f "$(EXTERNAL_DEVC)" ]; then \
echo "Cloning external dependency..."; \
mkdir -p $(dir $(EXTERNAL_DEVC)); \
git clone --depth 1 --branch main $(EXTERNAL_REPO) $(EXTERNAL_DIR); \
fi
rsync -av --exclude='.*' "$(EXTERNAL_DEVC)/" "."
@echo ""
@echo "Done! Review changes with: git diff .devcontainer/"
@echo "If satisfied, commit: git add -A && git commit -m 'Update .devcontainer from upstream'"
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Hermes-Coding-Agent",
"customizations": {
"vscode": {
"extensions": ["joaompfp.hermes-ai-agent"]
}
},
"postCreateCommand": "bash ./.devcontainer/post-create.sh > /tmp/post-create.log"
}
Loading