fix: add local type imports for AgentIdentity and DisclawConfig
Some checks failed
CI / build-and-test (ubuntu-latest) (pull_request) Has been cancelled
CI / build-and-test (windows-latest) (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
Nick Tabeling 2026-04-10 09:48:46 +02:00
parent 67433d63fa
commit 9421186b35
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import * as path from "path";
import * as YAML from "yaml"; import * as YAML from "yaml";
import { ZodError } from "zod"; import { ZodError } from "zod";
import { AgentYamlSchema } from "./schema"; import { AgentYamlSchema } from "./schema";
import type { AgentYaml as AgentIdentity } from "./schema";
export type { AgentYaml as AgentIdentity } from "./schema"; export type { AgentYaml as AgentIdentity } from "./schema";

View file

@ -6,6 +6,7 @@ import * as YAML from "yaml";
import { ZodError } from "zod"; import { ZodError } from "zod";
import { childLogger } from "../runtime/logger"; import { childLogger } from "../runtime/logger";
import { DisclawConfigSchema } from "./schema"; import { DisclawConfigSchema } from "./schema";
import type { DisclawConfig } from "./schema";
export type { DisclawConfig } from "./schema"; export type { DisclawConfig } from "./schema";