mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-11 08:12:38 +02:00
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:
parent
1a82226ea6
commit
47b399a4f5
7 changed files with 74 additions and 37 deletions
10
apps/x/packages/shared/src/config.ts
Normal file
10
apps/x/packages/shared/src/config.ts
Normal 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>;
|
||||
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue