File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 } ,
6363 { timeout : 60_000 } ,
6464) ;
65+
66+ test (
67+ "importing reactor-authorize does not evaluate inference-events" ,
68+ ( ) => {
69+ const result = importUnderProbe ( "./src/permission/reactor-authorize.ts" ) ;
70+ expect ( result . stderr ) . not . toContain ( "evaluated-inference-events" ) ;
71+ expect ( result . status ) . toBe ( 0 ) ;
72+ } ,
73+ { timeout : 60_000 } ,
74+ ) ;
Original file line number Diff line number Diff line change 1- import { GROK_RESPONSES_PROVIDER } from "../provider/grok-responses.js" ;
2- import { isXaiProviderName } from "../config/xai-providers.js" ;
3- import { isCodexProviderName } from "../config/codex-providers.js" ;
41import { isDeepSeekModel } from "../provider/deepseek-v4-effort.js" ;
52
3+ /** Wire id for the Grok Responses adapter. Duplicated in grok-responses.ts so
4+ * this module does not load @corbits/openai-responses at reactor boot. */
5+ const GROK_RESPONSES_PROVIDER = "grok-responses" ;
6+
7+ /** Prefixes owned by config/xai-providers.ts and config/codex-providers.ts.
8+ * Inlined so a name check does not evaluate those modules' provider barrels. */
9+ const XAI_PROVIDER_PREFIX = "xai/" ;
10+ const CODEX_PROVIDER_PREFIX = "codex/" ;
11+
12+ function isXaiProviderName ( name : string ) : boolean {
13+ return name . startsWith ( XAI_PROVIDER_PREFIX ) ;
14+ }
15+
16+ function isCodexProviderName ( name : string ) : boolean {
17+ return name . startsWith ( CODEX_PROVIDER_PREFIX ) ;
18+ }
19+
620/** True when the leaf inference path is xAI / Grok. For small prompt
721 * residuals only. */
822export function isXaiGrokLeafProvider ( input : {
You can’t perform that action at this time.
0 commit comments