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
13 changes: 13 additions & 0 deletions .github/workflows/sec-core-source-code-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
run: |
agent-sec-cli --version
agent-sec-cli --help
- name: Verify daemon
run: agent-sec-daemon --help
- name: Verify sandbox
run: linux-sandbox --help
- name: Verify deployment
Expand All @@ -65,10 +67,21 @@ jobs:
ls ~/.local/lib/anolisa/sec-core/openclaw-plugin/
ls ~/.local/lib/anolisa/sec-core/openclaw-plugin/dist/
ls ~/.local/lib/anolisa/sec-core/openclaw-plugin/scripts/
test -x ~/.local/lib/anolisa/sec-core/openclaw-plugin/scripts/deploy.sh
echo "=== Hermes Plugin ==="
ls ~/.local/lib/anolisa/sec-core/hermes-plugin/src/
ls ~/.local/lib/anolisa/sec-core/hermes-plugin/src/plugin.yaml
ls ~/.local/lib/anolisa/sec-core/hermes-plugin/scripts/deploy.sh
test -x ~/.local/lib/anolisa/sec-core/hermes-plugin/scripts/deploy.sh
echo "=== Codex Plugin ==="
ls ~/.local/lib/anolisa/sec-core/codex-plugin/
ls ~/.local/lib/anolisa/sec-core/codex-plugin/hooks-plugin/hooks/
ls ~/.local/lib/anolisa/sec-core/codex-plugin/hooks-plugin/hooks/code_scanner_hook.py
ls ~/.local/lib/anolisa/sec-core/codex-plugin/hooks-plugin/hooks/skill_ledger_hook.py
ls ~/.local/lib/anolisa/sec-core/codex-plugin/hooks-plugin/.codex-plugin/plugin.json
ls ~/.local/lib/anolisa/sec-core/codex-plugin/install.sh
test -x ~/.local/lib/anolisa/sec-core/codex-plugin/install.sh
ls ~/.local/lib/anolisa/sec-core/codex-plugin/.agents/plugins/marketplace.json
echo "=== CLI venv ==="
ls ~/.local/lib/anolisa/sec-core/venv/bin/agent-sec-cli
- name: Run E2E tests
Expand Down
18 changes: 13 additions & 5 deletions src/agent-sec-core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,15 @@ ifeq ($(INSTALL_PROFILE),user)
SKILLDIR ?= $(HOME)/.copilot-shell/skills
OPENCLAW_PLUGIN_DIR ?= $(LIBDIR)/openclaw-plugin
HERMES_PLUGIN_DIR ?= $(LIBDIR)/hermes-plugin
CODEX_PLUGIN_DIR ?= $(LIBDIR)/codex-plugin
else
PREFIX ?= /usr/local
ANOLISA_DATADIR ?= /usr/share/anolisa
EXTENSIONDIR ?= $(ANOLISA_DATADIR)/extensions/agent-sec-core
SKILLDIR ?= $(ANOLISA_DATADIR)/skills
OPENCLAW_PLUGIN_DIR ?= $(LIBDIR)/openclaw-plugin
HERMES_PLUGIN_DIR ?= $(LIBDIR)/hermes-plugin
CODEX_PLUGIN_DIR ?= $(LIBDIR)/codex-plugin
endif

ADAPTER_DIR ?= $(ANOLISA_DATADIR)/adapters/sec-core
Expand Down Expand Up @@ -376,9 +378,10 @@ install-hermes-plugin: ## Install hermes-plugin to target directory
chmod 0755 $(DESTDIR)$(HERMES_PLUGIN_DIR)/scripts/*.sh

.PHONY: install-codex-plugin
install-codex-plugin: ## Install codex-plugin hooks to RPM target
install -d -m 0755 $(DESTDIR)$(RPM_CODEX_PLUGIN_DIR)
cp -rp $(BUILD_DIR)/codex-plugin/. $(DESTDIR)$(RPM_CODEX_PLUGIN_DIR)/
install-codex-plugin: ## Install codex-plugin hooks and install script
install -d -m 0755 $(DESTDIR)$(CODEX_PLUGIN_DIR)
cp -rp $(BUILD_DIR)/codex-plugin/. $(DESTDIR)$(CODEX_PLUGIN_DIR)/
Comment thread
kongche-jbw marked this conversation as resolved.
chmod 0755 $(DESTDIR)$(CODEX_PLUGIN_DIR)/install.sh

.PHONY: install-cosh-hook
install-cosh-hook: ## Install cosh hooks (linux-sandbox + extension)
Expand Down Expand Up @@ -415,11 +418,12 @@ install-systemd-user: ## Install agent-sec-core systemd user service
install -p -m 0644 $(SYSTEMD_USER_UNIT_SOURCE) $(DESTDIR)$(SYSTEMD_USER_UNIT_DIR)/agent-sec-core.service

.PHONY: install-all
install-all: install-cli-venv install-cosh-hook install-openclaw-plugin install-hermes-plugin install-skills install-adapter-manifest ## Install all (user source build)
install-all: install-cli-venv install-cosh-hook install-codex-plugin install-openclaw-plugin install-hermes-plugin install-skills install-adapter-manifest ## Install all (user source build)

.PHONY: install-all-for-rpmbuild
install-all-for-rpmbuild: OPENCLAW_PLUGIN_DIR := $(RPM_OPENCLAW_PLUGIN_DIR)
install-all-for-rpmbuild: HERMES_PLUGIN_DIR := $(RPM_HERMES_PLUGIN_DIR)
install-all-for-rpmbuild: CODEX_PLUGIN_DIR := $(RPM_CODEX_PLUGIN_DIR)
install-all-for-rpmbuild: install-cli-site install-cosh-hook install-codex-plugin install-openclaw-plugin install-hermes-plugin install-skills install-adapter-manifest install-component-manifest install-systemd-user ## Install all (RPM build)

# =============================================================================
Expand Down Expand Up @@ -453,6 +457,10 @@ uninstall-openclaw-plugin: ## Remove openclaw plugin
uninstall-hermes-plugin: ## Remove hermes plugin
rm -rf $(DESTDIR)$(HERMES_PLUGIN_DIR)

.PHONY: uninstall-codex-plugin
uninstall-codex-plugin: ## Remove codex plugin
rm -rf $(DESTDIR)$(CODEX_PLUGIN_DIR)

.PHONY: uninstall-skills
uninstall-skills: ## Remove sec-core's own skill subdirs from SKILLDIR
@for d in skills/*/; do \
Expand All @@ -470,7 +478,7 @@ uninstall-component-manifest: ## Remove component manifest
rm -rf $(DESTDIR)$(COMPONENT_DIR)

.PHONY: uninstall
uninstall: uninstall-cli-venv uninstall-cosh-hook uninstall-openclaw-plugin uninstall-hermes-plugin uninstall-skills uninstall-adapter-manifest ## Uninstall everything install-all installed
uninstall: uninstall-cli-venv uninstall-cosh-hook uninstall-codex-plugin uninstall-openclaw-plugin uninstall-hermes-plugin uninstall-skills uninstall-adapter-manifest ## Uninstall everything install-all installed

.PHONY: help
help: ## Show this help message
Expand Down
Loading