mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
ci: harden release validation harness checks
This commit is contained in:
@@ -51,7 +51,13 @@ command -v "${npm_cmd}" >/dev/null 2>&1 || {
|
||||
|
||||
if [[ ! -f "${loader_path}" ]]; then
|
||||
mkdir -p "${tool_dir}"
|
||||
if ! "${npm_cmd}" install --prefix "${npm_tool_dir}" --no-save --no-package-lock "tsx@${tsx_version}" >/dev/null; then
|
||||
if command -v cygpath >/dev/null 2>&1 && [[ "${npm_cmd}" == *.cmd ]]; then
|
||||
npm_install_cmd="\"${npm_cmd}\" install --prefix \"${npm_tool_dir}\" --no-save --no-package-lock \"tsx@${tsx_version}\""
|
||||
if ! cmd.exe /d /s /c "${npm_install_cmd}" >/dev/null; then
|
||||
echo "failed to install cross-OS release-check loader with ${npm_cmd}." >&2
|
||||
exit 127
|
||||
fi
|
||||
elif ! "${npm_cmd}" install --prefix "${npm_tool_dir}" --no-save --no-package-lock "tsx@${tsx_version}" >/dev/null; then
|
||||
echo "failed to install cross-OS release-check loader with ${npm_cmd}." >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
@@ -269,6 +269,7 @@ describe("gateway codex harness live helpers", () => {
|
||||
].join("\n"),
|
||||
["Available model overrides here:", "", "- `gpt-5.4`"].join("\n"),
|
||||
["Available model overrides:", "", "- `gpt-5.4`"].join("\n"),
|
||||
["Available model overrides listed for this session:", "", "- `gpt-5.5`"].join("\n"),
|
||||
["Available models:", "", "- `gpt-5.4`", "- `gpt-5.4-mini`"].join("\n"),
|
||||
[
|
||||
"Available model overrides exposed in this session are:",
|
||||
|
||||
@@ -37,6 +37,7 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
|
||||
"Available model overrides:",
|
||||
"Available model overrides exposed in this session",
|
||||
"Available model overrides here:",
|
||||
"Available model overrides listed for this session:",
|
||||
"Available model overrides listed in this session:",
|
||||
"Available model overrides shown in this session:",
|
||||
"Available model overrides in this session:",
|
||||
@@ -208,6 +209,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
|
||||
normalized.includes("visible options:") ||
|
||||
normalized.includes("available codex agent model:") ||
|
||||
normalized.includes("available codex agent models:") ||
|
||||
normalized.includes("available model overrides listed for this session:") ||
|
||||
normalized.includes("available model overrides listed in this session:") ||
|
||||
normalized.includes("available model overrides shown in this session:") ||
|
||||
normalized.includes("available here:") ||
|
||||
|
||||
Reference in New Issue
Block a user