refactor(clash): extract shared template.yml, rename airport.yml to caigou.yml #1

Merged
PerishFire merged 2 commits from auto/clash-template-caigou into main 2026-07-06 06:44:05 +00:00
Owner

refactor(clash): extract shared template.yml, rename airport.yml to caigou.yml

Split the two top-level profiles into a single shared base plus node-source
overrides. template.yml holds all node-independent settings (DNS, sniffer, TUN
incl. the self-managed-node route-exclude list, rule-providers, rules); caigou.yml
and perish.yml keep only proxy-providers/proxies/proxy-groups. The build merges
each profile over template.yml before rule inlining, eliminating the hand-sync
drift between the profiles.

  • restore the deleted template deepMerge in clash-rules-inline (inline.ts)
  • rename top-level airport.yml -> caigou.yml to disambiguate from the airport
    node provider; update Forgejo/GitHub publish smoke checks
  • fold 101.133.174.178/32 into the shared tun route-exclude-address (both profiles)
  • document the template model and rename in AGENTS.md

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

feat(runseal): make :land remote-aware for Forgejo origins

The :land backend is now chosen from the origin remote host. GitHub origins
keep using the gh CLI; any other host is treated as a Forgejo/Gitea instance
and lands through its REST API (create PR + squash-merge with branch delete)
using a personal access token. All git validation, push, and main-sync logic
is shared across both backends.

  • add lib/forgejo/forgejo.ts: remote parsing, token loading, REST client
  • token from VPN_CONFIG_FORGEJO_TOKEN or .local/secrets/forgejo/token (uncommitted)
  • add .runseal/templates/forgejo.token placeholder; document in AGENTS.md

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

refactor(clash): extract shared template.yml, rename airport.yml to caigou.yml Split the two top-level profiles into a single shared base plus node-source overrides. template.yml holds all node-independent settings (DNS, sniffer, TUN incl. the self-managed-node route-exclude list, rule-providers, rules); caigou.yml and perish.yml keep only proxy-providers/proxies/proxy-groups. The build merges each profile over template.yml before rule inlining, eliminating the hand-sync drift between the profiles. - restore the deleted template deepMerge in clash-rules-inline (inline.ts) - rename top-level airport.yml -> caigou.yml to disambiguate from the airport node provider; update Forgejo/GitHub publish smoke checks - fold 101.133.174.178/32 into the shared tun route-exclude-address (both profiles) - document the template model and rename in AGENTS.md Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> feat(runseal): make :land remote-aware for Forgejo origins The :land backend is now chosen from the origin remote host. GitHub origins keep using the gh CLI; any other host is treated as a Forgejo/Gitea instance and lands through its REST API (create PR + squash-merge with branch delete) using a personal access token. All git validation, push, and main-sync logic is shared across both backends. - add lib/forgejo/forgejo.ts: remote parsing, token loading, REST client - token from VPN_CONFIG_FORGEJO_TOKEN or .local/secrets/forgejo/token (uncommitted) - add .runseal/templates/forgejo.token placeholder; document in AGENTS.md Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Split the two top-level profiles into a single shared base plus node-source
overrides. template.yml holds all node-independent settings (DNS, sniffer, TUN
incl. the self-managed-node route-exclude list, rule-providers, rules); caigou.yml
and perish.yml keep only proxy-providers/proxies/proxy-groups. The build merges
each profile over template.yml before rule inlining, eliminating the hand-sync
drift between the profiles.

- restore the deleted template deepMerge in clash-rules-inline (inline.ts)
- rename top-level airport.yml -> caigou.yml to disambiguate from the airport
  node provider; update Forgejo/GitHub publish smoke checks
- fold 101.133.174.178/32 into the shared tun route-exclude-address (both profiles)
- document the template model and rename in AGENTS.md

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The :land backend is now chosen from the origin remote host. GitHub origins
keep using the gh CLI; any other host is treated as a Forgejo/Gitea instance
and lands through its REST API (create PR + squash-merge with branch delete)
using a personal access token. All git validation, push, and main-sync logic
is shared across both backends.

- add lib/forgejo/forgejo.ts: remote parsing, token loading, REST client
- token from VPN_CONFIG_FORGEJO_TOKEN or .local/secrets/forgejo/token (uncommitted)
- add .runseal/templates/forgejo.token placeholder; document in AGENTS.md

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PerishFire deleted branch auto/clash-template-caigou 2026-07-06 06:44:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PerishFire/vpn-config!1
No description provided.