配置更新

This commit is contained in:
2026-07-29 20:45:14 +08:00
parent cbbea46422
commit d23c8b87af
6 changed files with 2493 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
$NodeDir = "C:\Users\wyc\AppData\Roaming\JetBrains\CLion2026.1\node\versions\24.14.1"
$ProjectDir = "D:\ae\tools\tizi"
$NodeExe = Join-Path $NodeDir "node.exe"
if (!(Test-Path -LiteralPath $NodeExe -PathType Leaf)) {
throw "Node.js 不存在:$NodeExe"
}
if (!(Test-Path -LiteralPath $ProjectDir -PathType Container)) {
throw "项目目录不存在:$ProjectDir"
}
$env:Path = "$NodeDir;$env:Path"
$CodexProCommand = Get-Command "codexpro" -CommandType Application -ErrorAction SilentlyContinue | Select-Object -First 1
if ($null -eq $CodexProCommand) {
throw "PATH 中找不到 codexpro 命令。请先执行:Get-Command codexpro -All"
}
Write-Host "Node.js$(& $NodeExe --version)"
Write-Host "CodexPro$($CodexProCommand.Source)"
Write-Host "项目目录:$ProjectDir"
Set-Location -LiteralPath $ProjectDir
& $CodexProCommand.Source start --root $ProjectDir
exit $LASTEXITCODE
+11 -9
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -439,7 +439,7 @@ std::optional<Node_Ping0_Result> load_node_ping0_result(const Node_Route& route,
} }
const auto html_path = find_ping0_html_path(html_cache_dir, *public_ips.ipv4); const auto html_path = find_ping0_html_path(html_cache_dir, *public_ips.ipv4);
if (!html_path) { if (!html_path) {
std::cerr << std::format("Ping0 HTML 缓存不存在,节点 {},出口 IPv4 {},目录 {}\n", route.proxy_name, *public_ips.ipv4, path_to_utf8(html_cache_dir)); std::cerr << std::format("【注意添加缓存数据】================================ Ping0 HTML 缓存不存在,节点 {},出口 IPv4 {},目录 {}\n", route.proxy_name, *public_ips.ipv4, path_to_utf8(html_cache_dir));
return std::nullopt; return std::nullopt;
} }
auto info = Ping0::parse_file(*html_path); auto info = Ping0::parse_file(*html_path);
+2
View File
@@ -1,4 +1,5 @@
#include <algorithm> #include <algorithm>
#include <filesystem>
#include <fstream> #include <fstream>
#include <initializer_list> #include <initializer_list>
#include <iostream> #include <iostream>
@@ -165,6 +166,7 @@ void out_config_yml() {
node["authentication"] = make_ip_check_authentication(proxies); node["authentication"] = make_ip_check_authentication(proxies);
node["rules"] = make_rules_with_ip_check(node["rules"], proxies); node["rules"] = make_rules_with_ip_check(node["rules"], proxies);
auto out_yml_dir = get_executable_dir() + "/../out_yml"; auto out_yml_dir = get_executable_dir() + "/../out_yml";
std::filesystem::create_directories(path_from_utf8(out_yml_dir));
const std::string output_group_path = out_yml_dir + "/groups.yaml"; const std::string output_group_path = out_yml_dir + "/groups.yaml";
const std::string final_path = out_yml_dir + "/config.yaml"; const std::string final_path = out_yml_dir + "/config.yaml";
write_yaml_file(output_group_path, groups_node); write_yaml_file(output_group_path, groups_node);
+2
View File
@@ -30,3 +30,5 @@ rules:
- PROCESS-NAME,jetbrains-toolbox.exe,DIRECT - PROCESS-NAME,jetbrains-toolbox.exe,DIRECT
- DOMAIN,download-cdn.jetbrains.com,DIRECT - DOMAIN,download-cdn.jetbrains.com,DIRECT
- DOMAIN,download-cdn.clf.jetbrains.com,DIRECT - DOMAIN,download-cdn.clf.jetbrains.com,DIRECT
- DOMAIN,download.qt.io,📥下载
- DOMAIN-SUFFIX,ping0.cc,🤖AI网站