fix: add local type imports for AgentIdentity and DisclawConfig #52

Closed
dev wants to merge 1 commit from fix/zod-pino-type-imports into main
Owner

Problem

Nach dem Merge von DIS-107 (Zod-Schemas) schl�gt npm run build fehl:

error TS2304: Cannot find name AgentIdentity
error TS2304: Cannot find name DisclawConfig

export type { X } from re-exportiert den Typ f�r externe Konsumenten, macht ihn aber nicht als lokalen Namen innerhalb derselben Datei verf�gbar.

Zus�tzlich fehlte npm install f�r pino und zod (neue Deps aus DIS-101 und DIS-107).

Fix

  • src/agent/identity.ts: import type { AgentYaml as AgentIdentity } hinzugef�gt
  • src/config/loader.ts: import type { DisclawConfig } hinzugef�gt
  • npm install auf main ausf�hren um pino/zod zu installieren

Verification

npm run build && npm test � 53/53 gr�n.

## Problem Nach dem Merge von DIS-107 (Zod-Schemas) schl�gt `npm run build` fehl: ``` error TS2304: Cannot find name AgentIdentity error TS2304: Cannot find name DisclawConfig ``` `export type { X } from` re-exportiert den Typ f�r externe Konsumenten, macht ihn aber **nicht** als lokalen Namen innerhalb derselben Datei verf�gbar. Zus�tzlich fehlte `npm install` f�r `pino` und `zod` (neue Deps aus DIS-101 und DIS-107). ## Fix - `src/agent/identity.ts`: `import type { AgentYaml as AgentIdentity }` hinzugef�gt - `src/config/loader.ts`: `import type { DisclawConfig }` hinzugef�gt - `npm install` auf main ausf�hren um pino/zod zu installieren ## Verification `npm run build && npm test` � 53/53 gr�n.
dev added 1 commit 2026-04-10 07:49:04 +00:00
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
9421186b35
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>
dev closed this pull request 2026-04-10 07:50:33 +00:00
dev deleted branch fix/zod-pino-type-imports 2026-04-10 08:24:04 +00:00
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

Pull request closed

Sign in to join this conversation.
No description provided.