This repository was archived by the owner on Aug 17, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
132 lines (113 loc) · 4.7 KB
/
Copy pathMakefile
File metadata and controls
132 lines (113 loc) · 4.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.PHONY: check test lint-shell validate-skills validate-cursor-skills validate-openspec validate-symlinks check-tracked-ignored install-hooks install-hermes-gateway-config-watch hermes-update-check hermes-update-stage hermes-update-activate sync-saski-repos sync-saski-repos-apply discover-saski-repos ci-check
export PATH := $(HOME)/.agents/bin:$(HOME)/.bun/bin:/opt/homebrew/bin:/usr/local/bin:$(PATH)
SHELL_SCRIPTS := \
setup-symlinks.sh \
sync-saski-repos.sh \
sync-skill-factory.sh \
pull-and-sync-skills.sh \
backup-cursor-config.sh \
hermes-gateway-config-watch.sh \
install-hermes-gateway-config-watch.sh \
hermes-update-safe.sh \
validate-skill-library.sh \
validate-cursor-skills.sh \
lib/validate-skill-frontmatter.sh \
.agents/skills/openspec/scripts/install-openspec \
.agents/skills/free-agent-execution/scripts/run-free-worker \
.agents/skills/free-agent-execution/scripts/validate-routing-manifest \
.agents/skills/free-agent-execution/scripts/check-omniroute-catalog \
tests/free-agent-execution-test.sh \
tests/opencode-free-template-test.sh \
tests/opencode-managed-config-test.sh \
tests/setup-symlinks-portability-test.sh \
tests/check-omniroute-catalog-test.sh \
tests/openspec-install-test.sh \
tests/validate-skill-library-test.sh \
tests/external-skill-references-test.sh \
tests/healthcheck-automation-test.sh \
tests/rtk-global-contract-test.sh \
tests/cursor-skills-validation-test.sh \
tests/sync-saski-repos-test.sh \
tests/sync-skill-factory-test.sh \
tests/codex-free-entry-test.sh \
tests/hermes-routing-template-test.sh \
tests/hermes-gateway-config-watch-test.sh \
tests/hermes-update-safe-test.sh \
hooks/pre-commit
check: test lint-shell validate-skills validate-cursor-skills validate-openspec validate-symlinks check-tracked-ignored
test:
./tests/free-agent-execution-test.sh
./tests/opencode-free-template-test.sh
./tests/opencode-managed-config-test.sh
./tests/setup-symlinks-portability-test.sh
./tests/check-omniroute-catalog-test.sh
./tests/openspec-install-test.sh
./tests/validate-skill-library-test.sh
./tests/external-skill-references-test.sh
./tests/healthcheck-automation-test.sh
./tests/rtk-global-contract-test.sh
./tests/cursor-skills-validation-test.sh
./tests/sync-saski-repos-test.sh
./tests/sync-skill-factory-test.sh
./tests/codex-free-entry-test.sh
./tests/hermes-routing-template-test.sh
./tests/hermes-gateway-config-watch-test.sh
./tests/hermes-update-safe-test.sh
lint-shell:
bash -n $(SHELL_SCRIPTS)
node --check lib/install-opencode-free-worker-config.mjs
validate-skills:
./validate-skill-library.sh
validate-cursor-skills:
./validate-cursor-skills.sh
validate-openspec:
@command -v openspec >/dev/null 2>&1 || { printf '%s\n' "openspec CLI is required; install OpenSpec before running make check"; exit 1; }
OPENSPEC_TELEMETRY=0 openspec validate --all
validate-symlinks:
REPO_DIR="$$(pwd)" ./setup-symlinks.sh validate
check-tracked-ignored:
@tracked_ignored="$$(git ls-files -ci --exclude-standard)"; \
if [ -n "$$tracked_ignored" ]; then \
printf '%s\n' "tracked files ignored by .gitignore (report-only):"; \
printf '%s\n' "$$tracked_ignored"; \
else \
printf '%s\n' "no tracked files are ignored by .gitignore"; \
fi
install-hooks:
install -d "$$(dirname "$$(git rev-parse --git-path hooks/pre-commit)")"
install -m 0755 hooks/pre-commit "$$(git rev-parse --git-path hooks/pre-commit)"
install-hermes-gateway-config-watch:
./install-hermes-gateway-config-watch.sh
hermes-update-check:
./hermes-update-safe.sh check
hermes-update-stage:
./hermes-update-safe.sh stage
hermes-update-activate:
./hermes-update-safe.sh activate
sync-saski-repos:
./sync-saski-repos.sh
sync-saski-repos-apply:
./sync-saski-repos.sh --apply
discover-saski-repos:
./sync-saski-repos.sh --discover
# CI-portable subset of `check`. Excludes checks that depend on the local
# environment: validate-symlinks (HOME tool links), validate-openspec (openspec
# CLI install), validate-skills (sibling-repo skill symlinks), and the
# external-skill-references test (sibling repos). Runs on a stock runner with
# ruby, jq, python3, and git preinstalled.
ci-check: lint-shell validate-cursor-skills
./tests/free-agent-execution-test.sh
./tests/opencode-free-template-test.sh
./tests/opencode-managed-config-test.sh
./tests/setup-symlinks-portability-test.sh
./tests/check-omniroute-catalog-test.sh
./tests/openspec-install-test.sh
./tests/validate-skill-library-test.sh
./tests/healthcheck-automation-test.sh
./tests/rtk-global-contract-test.sh
./tests/cursor-skills-validation-test.sh
./tests/sync-saski-repos-test.sh
./tests/sync-skill-factory-test.sh
./tests/hermes-routing-template-test.sh
./tests/hermes-gateway-config-watch-test.sh
./tests/hermes-update-safe-test.sh