mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Squash merge of 1,462 upstream commits with openclaw→hanzo-bot naming transforms applied. Conflicts resolved favoring our main branch to preserve existing customizations. Key upstream additions: - iOS Security Stack (concurrency locks, runtime guards, TTS fallback) - Discord CDN hostname allowlisting for SSRF protection - Discord mention handling improvements - Various bug fixes and stability improvements
30 lines
588 B
Swift
30 lines
588 B
Swift
import Foundation
|
|
|
|
enum ExecEnvOptions {
|
|
static let withValue = Set([
|
|
"-u",
|
|
"--unset",
|
|
"-c",
|
|
"--chdir",
|
|
"-s",
|
|
"--split-string",
|
|
"--default-signal",
|
|
"--ignore-signal",
|
|
"--block-signal",
|
|
])
|
|
|
|
static let flagOnly = Set(["-i", "--ignore-environment", "-0", "--null"])
|
|
|
|
static let inlineValuePrefixes = [
|
|
"-u",
|
|
"-c",
|
|
"-s",
|
|
"--unset=",
|
|
"--chdir=",
|
|
"--split-string=",
|
|
"--default-signal=",
|
|
"--ignore-signal=",
|
|
"--block-signal=",
|
|
]
|
|
}
|