fix: support PK01 Codex pool sync

This commit is contained in:
Codex
2026-07-02 02:43:01 +00:00
parent 18b6b93390
commit 3a8681f458
11 changed files with 258 additions and 48 deletions
@@ -41,7 +41,9 @@ export function poolTarget(pool = readCodexPoolConfig(), target = codexPoolRunti
configPath: codexPoolConfigPath,
groupName: pool.groupName,
apiKeyName: pool.apiKeyName,
apiKeySecret: `${target.namespace}/${pool.apiKeySecretName}.${pool.apiKeySecretKey}`,
apiKeySecret: target.runtimeMode === "host-docker"
? `${target.hostDockerEnvPath}.${pool.apiKeySecretKey}`
: `${target.namespace}/${pool.apiKeySecretName}.${pool.apiKeySecretKey}`,
publicExposure: targetPublicExposureSummary(target),
sentinelImageBuild: {
source: `${sub2apiConfigPath}.targets[${target.id}].codexPool.sentinelImageBuild`,