fix(proxy): исправлены маршрутизация Codex и запуск Claude
- Зачем: - Codex app-server обходил прокси, а Claude удерживал окно Windows Terminal. - Что: - добавлен общий ~/.codex/.env и упрощён запуск Codex Desktop. - ярлык Claude переведён на скрытый запуск через wscript.exe. - документация приведена в соответствие с новой схемой. - Проверка: - соединения ChatGPT.exe и codex.exe направлены через 127.0.0.1:12334. - проверены синтаксис PowerShell, состояние chezmoi и ярлык; Claude проверен вручную.
This commit is contained in:
1 parent
0e283daad8
commit
69507ce96c
5 files changed
+76
-64
No files matched your search
@@ -0,0 +1,28 @@
|
||||
Option Explicit
|
||||
|
||||
Dim fileSystem
|
||||
Dim launcherPath
|
||||
Dim powerShellPath
|
||||
Dim command
|
||||
Dim exitCode
|
||||
Dim shell
|
||||
|
||||
Set fileSystem = CreateObject("Scripting.FileSystemObject")
|
||||
Set shell = CreateObject("WScript.Shell")
|
||||
|
||||
launcherPath = shell.ExpandEnvironmentStrings("%USERPROFILE%\.local\bin\start-claude-proxy.ps1")
|
||||
powerShellPath = shell.ExpandEnvironmentStrings("%LOCALAPPDATA%\Microsoft\WindowsApps\pwsh.exe")
|
||||
|
||||
If Not fileSystem.FileExists(powerShellPath) Then
|
||||
powerShellPath = "pwsh.exe"
|
||||
End If
|
||||
|
||||
command = """" & powerShellPath & _
|
||||
""" -NoLogo -NoProfile -ExecutionPolicy Bypass -File """ & _
|
||||
launcherPath & """"
|
||||
|
||||
exitCode = shell.Run(command, 0, True)
|
||||
If exitCode <> 0 Then
|
||||
MsgBox "Не удалось запустить Claude Proxy. Код ошибки: " & exitCode, _
|
||||
vbCritical, "Claude Proxy"
|
||||
End If
|
||||
Reference in new issue
Block a user