@karmaniverous/jeeves-scripts-core
    Preparing search index...

    Function findInOpenclawConfig

    • The first defined value pick returns across the config files, in search order. A missing file is skipped. pick also gets the file's path (e.g. for its .env).

      Type Parameters

      • T

      Parameters

      • pick: (
            config: {
                channels?: {
                    slack?: {
                        accounts?: Record<
                            string,
                            { botToken?: string
                            | { [key: ...]: ... }; [key: string]: unknown },
                        >;
                        botToken?: string | { [key: string]: unknown };
                        [key: string]: unknown;
                    };
                    [key: string]: unknown;
                };
                env?: { vars?: Record<string, unknown>; [key: string]: unknown };
                gateway?: {
                    auth?: {
                        token?: string | { [key: string]: unknown };
                        [key: string]: unknown;
                    };
                    port?: number;
                    [key: string]: unknown;
                };
                [key: string]: unknown;
            },
            file: string,
        ) => T | undefined
      • files: readonly string[] = ...

      Returns T | undefined

      When a file exists but can't be read, isn't JSON5 or is invalid.