Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(types): add undefined to optional properties for exactOptionalPropertyTypes

Jiang Bohan1592e0c2114c
diff --git a/src/agent/tools/memory/types.ts b/src/agent/tools/memory/types.ts
index 81912eed95..58bc15bf22 100644
--- a/src/agent/tools/memory/types.ts
+++ b/src/agent/tools/memory/types.ts
@@ -37,7 +37,7 @@ export interface MemoryStorageOptions {
/** Profile ID (required for storage path) */
profileId: string;
/** Base directory for profiles */
- baseDir?: string;
+ baseDir?: string | undefined;
}
/** Result from memory_list */
diff --git a/src/agent/tools/policy.ts b/src/agent/tools/policy.ts
index 7e1a940706..5b8c2fc095 100644
--- a/src/agent/tools/policy.ts
+++ b/src/agent/tools/policy.ts
@@ -183,11 +183,11 @@ export function getSubagentPolicy(extraDeny?: string[]): ToolPolicy {
export interface FilterToolsOptions {
/** Tool configuration */
- config?: ToolsConfig;
+ config?: ToolsConfig | undefined;
/** Current LLM provider (for provider-specific rules) */
- provider?: string;
+ provider?: string | undefined;
/** Whether this is a subagent (applies subagent restrictions) */
- isSubagent?: boolean;
+ isSubagent?: boolean | undefined;
}
/**