Skip to content

Commit 76fcc36

Browse files
fix(openrouter): use endpoint context limits
1 parent 3acc62c commit 76fcc36

4 files changed

Lines changed: 50 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Docs: https://docs.openclaw.ai
77
### Changes
88

99
### Fixes
10+
1011
- Tests: fail the kitchen-sink RPC Docker walk when gateway RSS sampling is unavailable instead of silently disabling the per-process memory guard.
1112
- Tests: suppress the current Rolldown plugin timing warning format in the Vitest wrapper so tiny focused runs do not drown useful stderr in repeated build-timing noise.
1213
- Models/OpenRouter: use endpoint-specific OpenRouter context limits from `top_provider` metadata so provider-routed models no longer overstate available context. (#85949) Thanks @TurboTheTurtle.

scripts/npm-runner.d.mts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export type NpmRunnerParams = {
2+
comSpec?: string;
3+
env?: NodeJS.ProcessEnv;
4+
execPath?: string;
5+
existsSync?: (path: string) => boolean;
6+
npmArgs?: string[];
7+
platform?: NodeJS.Platform;
8+
};
9+
10+
export function resolveNpmRunner(params?: NpmRunnerParams): {
11+
args: string[];
12+
command: string;
13+
env?: NodeJS.ProcessEnv;
14+
shell: boolean;
15+
windowsVerbatimArguments?: boolean;
16+
};

scripts/pnpm-runner.d.mts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import type { ChildProcess, SpawnOptions } from "node:child_process";
2+
3+
export type PnpmRunnerParams = {
4+
comSpec?: string;
5+
cwd?: string;
6+
detached?: boolean;
7+
env?: NodeJS.ProcessEnv;
8+
nodeArgs?: string[];
9+
nodeExecPath?: string;
10+
npmExecPath?: string;
11+
platform?: NodeJS.Platform;
12+
pnpmArgs?: string[];
13+
stdio?: SpawnOptions["stdio"];
14+
};
15+
16+
export function resolvePnpmRunner(params?: PnpmRunnerParams): {
17+
args: string[];
18+
command: string;
19+
env?: NodeJS.ProcessEnv;
20+
shell: boolean;
21+
windowsVerbatimArguments?: boolean;
22+
};
23+
24+
export function createPnpmRunnerSpawnSpec(params?: PnpmRunnerParams): {
25+
args: string[];
26+
command: string;
27+
options: SpawnOptions;
28+
};
29+
30+
export function spawnPnpmRunner(params?: PnpmRunnerParams): ChildProcess;

scripts/windows-cmd-helpers.d.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function resolvePathEnvKey(env: NodeJS.ProcessEnv): string;
2+
3+
export function buildCmdExeCommandLine(command: string, args: string[]): string;

0 commit comments

Comments
 (0)