feat: add deployable alpha silo

This commit is contained in:
2026-07-11 00:25:45 +08:00
parent 44557da499
commit 9e954790dc
57 changed files with 2792 additions and 400 deletions
+14
View File
@@ -12,6 +12,8 @@ type EnvSource = Env | (() => Env);
const DEFAULT_SONNET_MODEL = "anthropic/claude-sonnet-5";
const DEFAULT_SONNET_LABEL = "Claude Sonnet 5";
const DEFAULT_AGENT_MAX_TURNS = 25;
const DEFAULT_AGENT_MAX_CONCURRENT_RUNS = 1;
const DEFAULT_AGENT_MAX_RUN_SECONDS = 900;
export interface ProviderRuntimeSettings {
readonly id: string;
@@ -43,6 +45,8 @@ export interface RunPolicyInput {
export interface RunPolicy {
readonly maxTurns: number;
readonly maxConcurrentRuns: number;
readonly maxRunSeconds: number;
}
export interface RuntimeSettings {
@@ -75,6 +79,16 @@ export class EnvRuntimeSettings implements RuntimeSettings {
void input;
return {
maxTurns: positiveIntegerEnv(this.envSource(), "HUB_AGENT_MAX_TURNS", DEFAULT_AGENT_MAX_TURNS),
maxConcurrentRuns: positiveIntegerEnv(
this.envSource(),
"HUB_AGENT_MAX_CONCURRENT_RUNS",
DEFAULT_AGENT_MAX_CONCURRENT_RUNS,
),
maxRunSeconds: positiveIntegerEnv(
this.envSource(),
"HUB_AGENT_MAX_RUN_SECONDS",
DEFAULT_AGENT_MAX_RUN_SECONDS,
),
};
}
}