mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-17 04:37:03 +00:00
Replace raw TOML / UI-oriented SettingGroup responses with structured
JSON that mirrors the Rust config types (WorkflowRunConfig, ServerConfig).
- Add Serialize derives to all config types in arc-workflows and arc-api
- Add manual Serialize impl for DaytonaNetwork enum
- Update OpenAPI spec: /runs/{id}/configuration returns RunConfiguration,
/settings returns ServerConfiguration, WorkflowDetail.config is now
RunConfiguration object instead of TOML string
- Remove SettingGroup/SettingField/SettingFieldType schemas
- Update demo handlers to construct and serialize real config structs
- Regenerate TypeScript client
- Simplify settings page to JSON display, update run-configuration and
workflow-definition pages to show JSON
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
70 lines
1.9 KiB
TypeScript
70 lines
1.9 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Arc Run API
|
|
* HTTP API for managing Arc workflow run executions.
|
|
*
|
|
* The version of the OpenAPI document: 0.1.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { ApiConfiguration } from './api-configuration';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { FeatureFlags } from './feature-flags';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { GitConfiguration } from './git-configuration';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { HookDefinition } from './hook-definition';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { LlmConfiguration } from './llm-configuration';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { SandboxConfiguration } from './sandbox-configuration';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { SetupConfiguration } from './setup-configuration';
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { WebConfiguration } from './web-configuration';
|
|
|
|
/**
|
|
* Structured server configuration mirroring ServerConfig.
|
|
*/
|
|
export interface ServerConfiguration {
|
|
/**
|
|
* Data directory path.
|
|
*/
|
|
'data_dir'?: string;
|
|
/**
|
|
* Maximum concurrent runs.
|
|
*/
|
|
'max_concurrent_runs'?: number;
|
|
'web'?: WebConfiguration;
|
|
'api'?: ApiConfiguration;
|
|
'git'?: GitConfiguration;
|
|
'feature_flags'?: FeatureFlags;
|
|
/**
|
|
* Default working directory.
|
|
*/
|
|
'directory'?: string;
|
|
'llm'?: LlmConfiguration;
|
|
'setup'?: SetupConfiguration;
|
|
'sandbox'?: SandboxConfiguration;
|
|
/**
|
|
* Default variable map.
|
|
*/
|
|
'vars'?: { [key: string]: string; };
|
|
'hooks'?: Array<HookDefinition>;
|
|
}
|
|
|