Skip to content

Commit e686cd6

Browse files
fix: name sparsekernel budget update input
1 parent 9d2c794 commit e686cd6

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

packages/sparsekernel-client/src/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ export type SparseKernelResourceBudgets = {
3030
heavy_sandboxes_max: number;
3131
};
3232

33-
export type SparseKernelResourceBudgetUpdate = Partial<SparseKernelResourceBudgets>;
33+
export type SparseKernelResourceBudgetUpdateInput = {
34+
logical_agents_max?: number;
35+
active_agent_steps_max?: number;
36+
model_calls_in_flight_max?: number;
37+
file_patch_jobs_max?: number;
38+
test_jobs_max?: number;
39+
browser_contexts_max?: number;
40+
heavy_sandboxes_max?: number;
41+
};
42+
43+
export type SparseKernelResourceBudgetUpdate = SparseKernelResourceBudgetUpdateInput;
3444

3545
export type SparseKernelNetworkDefaultAction = "allow" | "deny" | (string & {});
3646
export type SparseKernelArtifactRetentionPolicy =
@@ -552,7 +562,7 @@ export class SparseKernelClient {
552562
}
553563

554564
async updateResourceBudgets(
555-
input: SparseKernelResourceBudgetUpdate,
565+
input: SparseKernelResourceBudgetUpdateInput,
556566
): Promise<SparseKernelResourceBudgets> {
557567
return await this.postJson<SparseKernelResourceBudgets>("/runtime/budgets/update", input);
558568
}

scripts/check-sparsekernel-openapi.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const DAEMON_PATH = "crates/sparsekernel-cli/src/lib.rs";
77
const CLIENT_PATH = "packages/sparsekernel-client/src/index.ts";
88
const CLIENT_SCHEMA_MAPPINGS = [
99
mapping("SparseKernelResourceBudgets", "RuntimeResourceBudgets"),
10+
mapping("SparseKernelResourceBudgetUpdateInput", "RuntimeResourceBudgetUpdateInput"),
1011
mapping("SparseKernelNetworkPolicy", "NetworkPolicy"),
1112
mapping("SparseKernelTrustZoneInput", "TrustZoneInput"),
1213
mapping("SparseKernelTrustZoneProxyAttachment", "TrustZoneProxyAttachment"),

0 commit comments

Comments
 (0)