mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Squashes multiple in-flight changes pending release into release/v3.8.4 since the in-progress 3.8.5 has been consolidated back into 3.8.4. CRITICAL — oauth/codex (multi-account regression revert) Revert the proactive expired-flip that #2743 (multi-agent review) added to open-sse/executors/base.ts. The new behaviour marked accounts as testStatus:"expired" + isActive:false from inside the PROACTIVE refresh path whenever isUnrecoverableRefreshError() fired — including transient sentinels (refresh_token_reused that the rotation map can recover, generic invalid_request blips). On multi-account Codex it sequentially disabled working accounts in the DB before any upstream call confirmed the failure. Keep the classification — that part is legitimate (avoids spreading the sentinel into activeCredentials and sending a non-token upstream). Drop only the DB mutation: the REACTIVE path in chatCore.ts:~3912 still flips the account to expired after the upstream confirms the auth failure, which is the correct moment (by then the rotation map at tokenRefresh.ts:~1541 and the DB-staleness check have already had their chance to recover). Marked the block "SOURCE OF TRUTH — do not flip the proactive path back. Ask the operator first." with the regression history (ad3d4b696->0c94c397d-> this revert) so a future review does not re-introduce the regression on autopilot. oauth/kiro — centralize social-flow constants in KIRO_CONFIG social-authorize/route.ts and social-exchange/route.ts duplicated the AWS Kiro device-auth URL and the "kiro-cli" public client identifier. Move both to KIRO_CONFIG (alongside the existing AWS SSO OIDC + social auth fields) and add an env override on socialClientId so operators can pin a custom value via KIRO_OAUTH_CLIENT_ID. New KIRO_CONFIG fields: socialClientId (env-overridable), socialDeviceAuthorizeUrl, socialDevicePollUrl. tests/unit/oauth-kiro.test.ts locks the contract: routes must import KIRO_CONFIG and must not inline the AWS URL or "kiro-cli" literal. dashboard/providers — memoize ProviderCard lookup constants Move KIND_LABEL and DOT_COLORS into useMemo so they don't recreate on every render. Functional parity, slightly cheaper re-renders. test(authz) — lockdown Next.js 16 proxy.ts contract New tests/unit/authz/proxy-contract.test.ts asserts the file lives at src/proxy.ts (not src/middleware.ts), exports the proxy function, delegates to runAuthzPipeline with enforce:true, and the matcher covers every prefix mounted under /api so unauthenticated requests cannot bypass the centralized tier checks. version — roll back from 3.8.5 to 3.8.4 CHANGELOG.md consolidates the unreleased 3.8.5 entries into the 3.8.4 section. Mirror that in package.json, package-lock.json and docs/reference/openapi.yaml. .source/* picked up the regenerated fumadocs section ordering. docs — env contract additions Add KIRO_OAUTH_CLIENT_ID and OMNIROUTE_PROXY_FETCH_DEBUG to .env.example and docs/reference/ENVIRONMENT.md so the env-doc-sync check stays green.
75 lines
8.2 KiB
TypeScript
75 lines
8.2 KiB
TypeScript
// @ts-nocheck
|
|
import { default as __fd_glob_64 } from "../docs/security/meta.json?collection=docs"
|
|
import { default as __fd_glob_63 } from "../docs/routing/meta.json?collection=docs"
|
|
import { default as __fd_glob_62 } from "../docs/reference/openapi.yaml?collection=docs"
|
|
import { default as __fd_glob_61 } from "../docs/reference/meta.json?collection=docs"
|
|
import { default as __fd_glob_60 } from "../docs/ops/meta.json?collection=docs"
|
|
import { default as __fd_glob_59 } from "../docs/compression/meta.json?collection=docs"
|
|
import { default as __fd_glob_58 } from "../docs/guides/meta.json?collection=docs"
|
|
import { default as __fd_glob_57 } from "../docs/frameworks/meta.json?collection=docs"
|
|
import { default as __fd_glob_56 } from "../docs/architecture/meta.json?collection=docs"
|
|
import { default as __fd_glob_55 } from "../docs/meta.json?collection=docs"
|
|
import * as __fd_glob_54 from "../docs/security/STEALTH_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_53 from "../docs/security/ROUTE_GUARD_TIERS.md?collection=docs"
|
|
import * as __fd_glob_52 from "../docs/security/PUBLIC_CREDS.md?collection=docs"
|
|
import * as __fd_glob_51 from "../docs/security/GUARDRAILS.md?collection=docs"
|
|
import * as __fd_glob_50 from "../docs/security/ERROR_SANITIZATION.md?collection=docs"
|
|
import * as __fd_glob_49 from "../docs/security/COMPLIANCE.md?collection=docs"
|
|
import * as __fd_glob_48 from "../docs/security/CLI_TOKEN_AUTH.md?collection=docs"
|
|
import * as __fd_glob_47 from "../docs/security/CLI_TOKEN.md?collection=docs"
|
|
import * as __fd_glob_46 from "../docs/routing/REASONING_REPLAY.md?collection=docs"
|
|
import * as __fd_glob_45 from "../docs/routing/AUTO-COMBO.md?collection=docs"
|
|
import * as __fd_glob_44 from "../docs/reference/PROVIDER_REFERENCE.md?collection=docs"
|
|
import * as __fd_glob_43 from "../docs/reference/FREE_TIERS.md?collection=docs"
|
|
import * as __fd_glob_42 from "../docs/reference/ENVIRONMENT.md?collection=docs"
|
|
import * as __fd_glob_41 from "../docs/reference/CLI-TOOLS.md?collection=docs"
|
|
import * as __fd_glob_40 from "../docs/reference/API_REFERENCE.md?collection=docs"
|
|
import * as __fd_glob_39 from "../docs/ops/VM_DEPLOYMENT_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_38 from "../docs/ops/TUNNELS_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_37 from "../docs/ops/SQLITE_RUNTIME.md?collection=docs"
|
|
import * as __fd_glob_36 from "../docs/ops/RELEASE_CHECKLIST.md?collection=docs"
|
|
import * as __fd_glob_35 from "../docs/ops/PROXY_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_34 from "../docs/ops/FLY_IO_DEPLOYMENT_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_33 from "../docs/ops/E2E_DASHBOARD_SHAKEDOWN_v3.8.0.md?collection=docs"
|
|
import * as __fd_glob_32 from "../docs/ops/COVERAGE_PLAN.md?collection=docs"
|
|
import * as __fd_glob_31 from "../docs/frameworks/WEBHOOKS.md?collection=docs"
|
|
import * as __fd_glob_30 from "../docs/frameworks/SKILLS.md?collection=docs"
|
|
import * as __fd_glob_29 from "../docs/frameworks/OPENCODE.md?collection=docs"
|
|
import * as __fd_glob_28 from "../docs/frameworks/MEMORY.md?collection=docs"
|
|
import * as __fd_glob_27 from "../docs/frameworks/MCP-SERVER.md?collection=docs"
|
|
import * as __fd_glob_26 from "../docs/frameworks/GAMIFICATION.md?collection=docs"
|
|
import * as __fd_glob_25 from "../docs/frameworks/EVALS.md?collection=docs"
|
|
import * as __fd_glob_24 from "../docs/frameworks/EMBEDDED-SERVICES.md?collection=docs"
|
|
import * as __fd_glob_23 from "../docs/frameworks/CLOUD_AGENT.md?collection=docs"
|
|
import * as __fd_glob_22 from "../docs/frameworks/AGENT_PROTOCOLS_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_21 from "../docs/frameworks/A2A-SERVER.md?collection=docs"
|
|
import * as __fd_glob_20 from "../docs/guides/USER_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_19 from "../docs/guides/UNINSTALL.md?collection=docs"
|
|
import * as __fd_glob_18 from "../docs/guides/TROUBLESHOOTING.md?collection=docs"
|
|
import * as __fd_glob_17 from "../docs/guides/TERMUX_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_16 from "../docs/guides/SETUP_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_15 from "../docs/guides/PWA_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_14 from "../docs/guides/KIRO_SETUP.md?collection=docs"
|
|
import * as __fd_glob_13 from "../docs/guides/I18N.md?collection=docs"
|
|
import * as __fd_glob_12 from "../docs/guides/FEATURES.md?collection=docs"
|
|
import * as __fd_glob_11 from "../docs/guides/ELECTRON_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_10 from "../docs/guides/DOCKER_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_9 from "../docs/compression/RTK_COMPRESSION.md?collection=docs"
|
|
import * as __fd_glob_8 from "../docs/compression/COMPRESSION_RULES_FORMAT.md?collection=docs"
|
|
import * as __fd_glob_7 from "../docs/compression/COMPRESSION_LANGUAGE_PACKS.md?collection=docs"
|
|
import * as __fd_glob_6 from "../docs/compression/COMPRESSION_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_5 from "../docs/compression/COMPRESSION_ENGINES.md?collection=docs"
|
|
import * as __fd_glob_4 from "../docs/architecture/RESILIENCE_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_3 from "../docs/architecture/REPOSITORY_MAP.md?collection=docs"
|
|
import * as __fd_glob_2 from "../docs/architecture/CODEBASE_DOCUMENTATION.md?collection=docs"
|
|
import * as __fd_glob_1 from "../docs/architecture/AUTHZ_GUIDE.md?collection=docs"
|
|
import * as __fd_glob_0 from "../docs/architecture/ARCHITECTURE.md?collection=docs"
|
|
import { server } from 'fumadocs-mdx/runtime/server';
|
|
import type * as Config from '../source.config';
|
|
|
|
const create = server<typeof Config, import("fumadocs-mdx/runtime/types").InternalTypeConfig & {
|
|
DocData: {
|
|
}
|
|
}>({"doc":{"passthroughs":["extractedReferences"]}});
|
|
|
|
export const docs = await create.docs("docs", "docs", {"meta.json": __fd_glob_55, "architecture/meta.json": __fd_glob_56, "frameworks/meta.json": __fd_glob_57, "guides/meta.json": __fd_glob_58, "compression/meta.json": __fd_glob_59, "ops/meta.json": __fd_glob_60, "reference/meta.json": __fd_glob_61, "reference/openapi.yaml": __fd_glob_62, "routing/meta.json": __fd_glob_63, "security/meta.json": __fd_glob_64, }, {"architecture/ARCHITECTURE.md": __fd_glob_0, "architecture/AUTHZ_GUIDE.md": __fd_glob_1, "architecture/CODEBASE_DOCUMENTATION.md": __fd_glob_2, "architecture/REPOSITORY_MAP.md": __fd_glob_3, "architecture/RESILIENCE_GUIDE.md": __fd_glob_4, "compression/COMPRESSION_ENGINES.md": __fd_glob_5, "compression/COMPRESSION_GUIDE.md": __fd_glob_6, "compression/COMPRESSION_LANGUAGE_PACKS.md": __fd_glob_7, "compression/COMPRESSION_RULES_FORMAT.md": __fd_glob_8, "compression/RTK_COMPRESSION.md": __fd_glob_9, "guides/DOCKER_GUIDE.md": __fd_glob_10, "guides/ELECTRON_GUIDE.md": __fd_glob_11, "guides/FEATURES.md": __fd_glob_12, "guides/I18N.md": __fd_glob_13, "guides/KIRO_SETUP.md": __fd_glob_14, "guides/PWA_GUIDE.md": __fd_glob_15, "guides/SETUP_GUIDE.md": __fd_glob_16, "guides/TERMUX_GUIDE.md": __fd_glob_17, "guides/TROUBLESHOOTING.md": __fd_glob_18, "guides/UNINSTALL.md": __fd_glob_19, "guides/USER_GUIDE.md": __fd_glob_20, "frameworks/A2A-SERVER.md": __fd_glob_21, "frameworks/AGENT_PROTOCOLS_GUIDE.md": __fd_glob_22, "frameworks/CLOUD_AGENT.md": __fd_glob_23, "frameworks/EMBEDDED-SERVICES.md": __fd_glob_24, "frameworks/EVALS.md": __fd_glob_25, "frameworks/GAMIFICATION.md": __fd_glob_26, "frameworks/MCP-SERVER.md": __fd_glob_27, "frameworks/MEMORY.md": __fd_glob_28, "frameworks/OPENCODE.md": __fd_glob_29, "frameworks/SKILLS.md": __fd_glob_30, "frameworks/WEBHOOKS.md": __fd_glob_31, "ops/COVERAGE_PLAN.md": __fd_glob_32, "ops/E2E_DASHBOARD_SHAKEDOWN_v3.8.0.md": __fd_glob_33, "ops/FLY_IO_DEPLOYMENT_GUIDE.md": __fd_glob_34, "ops/PROXY_GUIDE.md": __fd_glob_35, "ops/RELEASE_CHECKLIST.md": __fd_glob_36, "ops/SQLITE_RUNTIME.md": __fd_glob_37, "ops/TUNNELS_GUIDE.md": __fd_glob_38, "ops/VM_DEPLOYMENT_GUIDE.md": __fd_glob_39, "reference/API_REFERENCE.md": __fd_glob_40, "reference/CLI-TOOLS.md": __fd_glob_41, "reference/ENVIRONMENT.md": __fd_glob_42, "reference/FREE_TIERS.md": __fd_glob_43, "reference/PROVIDER_REFERENCE.md": __fd_glob_44, "routing/AUTO-COMBO.md": __fd_glob_45, "routing/REASONING_REPLAY.md": __fd_glob_46, "security/CLI_TOKEN.md": __fd_glob_47, "security/CLI_TOKEN_AUTH.md": __fd_glob_48, "security/COMPLIANCE.md": __fd_glob_49, "security/ERROR_SANITIZATION.md": __fd_glob_50, "security/GUARDRAILS.md": __fd_glob_51, "security/PUBLIC_CREDS.md": __fd_glob_52, "security/ROUTE_GUARD_TIERS.md": __fd_glob_53, "security/STEALTH_GUIDE.md": __fd_glob_54, }); |