config: add shared app config and repo for execution profile

- add shared AppConfig schema and export from shared index
- introduce config repo that reads ~/.rowboat/config/config.json
- register config repo in init and conditionally bind execution services
- remove unused execution factory exports and file
This commit is contained in:
Ramnique Singh 2026-02-14 15:35:14 +05:30
parent 1a82226ea6
commit 47b399a4f5
7 changed files with 74 additions and 37 deletions

View file

@ -0,0 +1,10 @@
import { z } from "zod";
import { ExecutionProfile } from "./execution-profile.js";
export const AppConfig = z
.object({
executionProfile: ExecutionProfile,
})
.passthrough();
export type AppConfig = z.infer<typeof AppConfig>;

View file

@ -8,4 +8,5 @@ export * as agentSchedule from './agent-schedule.js';
export * as agentScheduleState from './agent-schedule-state.js';
export * as serviceEvents from './service-events.js';
export * as executionProfile from './execution-profile.js';
export * as config from './config.js';
export { PrefixLogger };