Registry

codemode-gatewaysourcetypescript
Path: codemode-gateway/src/types/registry.tsRelative: src/types/registry.tsSubproject: codemode-gatewayCategory: codemode-gateway
Lines: 99Bytes: 3,131Imports: 1Exports: 7

Content Preview

  1. import type { Env } from "./env";
  2. /**
  3. * Tool registry types. The registry (`src/registry.ts`) is the single source
  4. * of truth from which BOTH the executor's `ResolvedProvider[]` and the
  5. * `codemode` discovery tools (`search`/`describe`) are derived — never two
  6. * lists to keep in sync.
  7. */
  8. /** JSON-schema-ish value type descriptor used by `codemode.describe`. */
  9. export type ToolParamType =
  10. | "string"
  11. | "number"
  12. | "integer"
  13. | "boolean"
  14. | "array"
  15. | "object"
  16. | "null";
  17. /** A sing