diff --git a/src/config/group-policy.ts b/src/config/group-policy.ts index 5891d0752e3..ac572936b98 100644 --- a/src/config/group-policy.ts +++ b/src/config/group-policy.ts @@ -13,9 +13,9 @@ import { type ToolsBySenderKeyType, } from "./types.tools.js"; -export type GroupPolicyChannel = ChannelId; +type GroupPolicyChannel = ChannelId; -export type ChannelGroupConfig = { +type ChannelGroupConfig = { requireMention?: boolean; ingest?: boolean; tools?: GroupToolPolicyConfig; @@ -56,7 +56,7 @@ function resolveChannelGroupConfig( return groups[matchedKey]; } -export type GroupToolPolicySender = { +type GroupToolPolicySender = { senderId?: string | null; senderName?: string | null; senderUsername?: string | null; diff --git a/src/config/includes.ts b/src/config/includes.ts index 43cb31f9b99..fac11de33f1 100644 --- a/src/config/includes.ts +++ b/src/config/includes.ts @@ -32,7 +32,7 @@ export type IncludeResolver = { parseJson: (raw: string) => unknown; }; -export type IncludeFileReadParams = { +type IncludeFileReadParams = { includePath: string; resolvedPath: string; rootRealDir: string; @@ -40,7 +40,7 @@ export type IncludeFileReadParams = { maxBytes?: number; }; -export type ResolveConfigIncludesOptions = { +type ResolveConfigIncludesOptions = { /** * Additional directories outside the config directory that `$include` paths * may resolve into. Typically populated from `OPENCLAW_INCLUDE_ROOTS`. diff --git a/src/config/io.audit.ts b/src/config/io.audit.ts index fca367eaf51..fec3c9a9b39 100644 --- a/src/config/io.audit.ts +++ b/src/config/io.audit.ts @@ -135,7 +135,7 @@ const CONFIG_AUDIT_LOG_FILENAME = "config-audit.jsonl"; export type ConfigWriteAuditResult = "rename" | "copy-fallback" | "failed" | "rejected"; -export type ConfigWriteAuditRecord = { +type ConfigWriteAuditRecord = { ts: string; source: "config-io"; event: "config.write"; @@ -231,9 +231,9 @@ export type ConfigObserveAuditRecord = { restoreErrorMessage: string | null; }; -export type ConfigAuditRecord = ConfigWriteAuditRecord | ConfigObserveAuditRecord; +type ConfigAuditRecord = ConfigWriteAuditRecord | ConfigObserveAuditRecord; -export type ConfigAuditStatMetadata = { +type ConfigAuditStatMetadata = { dev: string | null; ino: string | null; mode: number | null; @@ -242,7 +242,7 @@ export type ConfigAuditStatMetadata = { gid: number | null; }; -export type ConfigAuditProcessInfo = { +type ConfigAuditProcessInfo = { pid: number; ppid: number; cwd: string; @@ -250,7 +250,7 @@ export type ConfigAuditProcessInfo = { execArgv: string[]; }; -export type ConfigWriteAuditRecordBase = Omit< +type ConfigWriteAuditRecordBase = Omit< ConfigWriteAuditRecord, | "result" | "nextDev"