Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,19 @@ export const AgentOverridesSchema = z.object({

export type AgentOverrides = z.infer<typeof AgentOverridesSchema>

export const AutoUpdateConfigSchema = z.object({
show_startup_toast: z.boolean().optional(),
})

export type AutoUpdateConfig = z.infer<typeof AutoUpdateConfigSchema>

/**
* Main configuration schema for zenox
*/
export const ZenoxConfigSchema = z.object({
$schema: z.string().optional(),
agents: AgentOverridesSchema.optional(),
auto_update: AutoUpdateConfigSchema.optional(),
disabled_agents: z.array(AgentNameSchema).optional(),
disabled_mcps: z.array(McpNameSchema).optional(),
})
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const ZenoxPlugin: Plugin = async (ctx) => {
const backgroundTools = createBackgroundTools(backgroundManager, ctx.client)

// Initialize hooks
const autoUpdateHook = createAutoUpdateHook(ctx)
const autoUpdateHook = createAutoUpdateHook(ctx, {
showStartupToast: pluginConfig.auto_update?.show_startup_toast,
})
const keywordDetectorHook = createKeywordDetectorHook(ctx)
const todoEnforcerHook = createTodoEnforcerHook(ctx)

Expand Down