- Зачем: - 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 проверен вручную.
29 lines
823 B
Plaintext
29 lines
823 B
Plaintext
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
|