Resolves and returns the agent config file path, falling back to defaults; handles integration/API config loading.
import type { PartialConfigData } from "./type";
import { EventEmitter } from "events";
import path from "path";
import os from "os";
import fs from "fs-extra";
import toml from "toml";
import chokidar from "chokidar";
import deepEqual from "deep-equal";
import { getProperty, deleteProperty } from "dot-prop";
import { isBrowser } from "../env";
import { getLogger } from "../logger";
const configTomlTemplate = `## Tabby agent configuration file
## Online documentation: https://tabby.tabbyml.com/docs/extensions/configurations
## You can uncomment and edit the values below to change the default settings.
## Configurations in this file have lower priority than the IDE settings.
## Server
## You can set the server endpoint and token here.
# [server]
# endpoint = "http://localhost:8080" # htt
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key