{"version":3,"file":"config.mjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["// The `./config` subpath — what a `commander.config.ts` imports. Lightweight by contract:\n// types + the identity helper only (the loader, validation and their deps stay daemon-side).\n\nimport type { ICommanderConfig } from \"./config/types\";\n\nexport {\n  COMMANDER_ID_PATTERN,\n  type ICommanderConfig,\n  type ICommanderDefaults,\n  type ICommanderEndpoint,\n  type ICommanderEndpointHealth,\n  type ICommanderEnvVar,\n  type ICommanderFlag,\n  type ICommanderProcessDefinition,\n  type ICommanderSuiteDefinition,\n  type TCommanderEndpointOwnership,\n  type TCommanderEndpointProtocol,\n  type TCommanderReady,\n  type TCommanderTagQuery,\n  type TCommanderTagQueryOr,\n  type TCommanderTagTerm,\n} from \"./config/types\";\n\n/**\n * Identity helper so `commander.config.ts` files are typed end to end: an unknown or removed key is\n * a type error, and so is a `dependsOn`, suite `include`/`exclude`, `defaultSelection` or endpoint\n * `ready` that names something the config never declares.\n *\n * ⚠ The reference checks need literal ids. Processes built from a list typed `{ id: string }[]`\n * widen every id to `string` and switch those checks off — declare the list `as const` instead.\n * A `.map()` callback is not contextually typed, so write `dependsOn: [...] as const` there, as\n * with `kind`.\n */\nexport function defineCommanderConfig<\n  TProcessId extends string,\n  TSuiteName extends string = never,\n  TEndpointName extends string = never,\n>(\n  config: ICommanderConfig<TProcessId, TSuiteName, TEndpointName>,\n): ICommanderConfig<TProcessId, TSuiteName, TEndpointName> {\n  return config;\n}\n"],"mappings":";;;;;;;;;;;;AAiCA,SAAgB,sBAKd,QACyD;CACzD,OAAO;AACT"}