From 9421186b356efa07bea5aac96b6377f8cff339dd Mon Sep 17 00:00:00 2001 From: Nick Tabeling Date: Fri, 10 Apr 2026 09:48:46 +0200 Subject: [PATCH] fix: add local type imports for AgentIdentity and DisclawConfig Re-exported types via 'export type { X } from' are not available as local names in the same file. Add explicit 'import type' statements so TypeScript can resolve the types used in function signatures. Co-Authored-By: Claude Sonnet 4.6 --- src/agent/identity.ts | 1 + src/config/loader.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/agent/identity.ts b/src/agent/identity.ts index 89f057a..3d99b26 100644 --- a/src/agent/identity.ts +++ b/src/agent/identity.ts @@ -3,6 +3,7 @@ import * as path from "path"; import * as YAML from "yaml"; import { ZodError } from "zod"; import { AgentYamlSchema } from "./schema"; +import type { AgentYaml as AgentIdentity } from "./schema"; export type { AgentYaml as AgentIdentity } from "./schema"; diff --git a/src/config/loader.ts b/src/config/loader.ts index b8dbf1f..b26a7f3 100644 --- a/src/config/loader.ts +++ b/src/config/loader.ts @@ -6,6 +6,7 @@ import * as YAML from "yaml"; import { ZodError } from "zod"; import { childLogger } from "../runtime/logger"; import { DisclawConfigSchema } from "./schema"; +import type { DisclawConfig } from "./schema"; export type { DisclawConfig } from "./schema"; -- 2.45.2