Wire connector-definitions/ subdir with index barrel (N9)

32dfa89 renamed the three catalog data files into src/main/connector-definitions/ but left src/main/connector-definitions.ts pointing at the old connector-definitions-data-* paths, which no longer resolve. Fix the barrel to import from ./connector-definitions/index and correct each moved file's ConnectorDefinition import to walk up one level (../connector-definitions).
This commit is contained in:
ZacharyZhang-NY committed 2026-04-20 12:26:36 -04:00
1 parent 32dfa89b7e
commit 1c7bc71931
5 files changed
+18 -9

No files matched your search

+4 -6
View File
@@ -18,15 +18,13 @@
* Entries live in three companion files to keep every module under the
* 400-line cap:
*
* - `connector-definitions-data-oauth.ts` — 5 OAuth providers
* - `connector-definitions-data-apikey.ts` — 18 API-key providers
* - `connector-definitions-data-cloud.ts` — 3 Cloud providers
* - `connector-definitions/oauth.ts` — 5 OAuth providers
* - `connector-definitions/apikey.ts` — 18 API-key providers
* - `connector-definitions/cloud.ts` — 3 Cloud providers
*/
import type { ConnectorId } from "@shared/types";
import { OAUTH_CONNECTORS } from "./connector-definitions-data-oauth";
import { API_KEY_CONNECTORS } from "./connector-definitions-data-apikey";
import { CLOUD_CONNECTORS } from "./connector-definitions-data-cloud";
import { OAUTH_CONNECTORS, API_KEY_CONNECTORS, CLOUD_CONNECTORS } from "./connector-definitions/index";
/**
* OAuth provider id recognised by the AgentCompany credential layer. These
+1 -1
View File
@@ -11,7 +11,7 @@
* set.
*/
import type { ConnectorDefinition } from "./connector-definitions";
import type { ConnectorDefinition } from "../connector-definitions";
export const API_KEY_CONNECTORS: ConnectorDefinition[] = [
{
+1 -1
View File
@@ -7,7 +7,7 @@
* run (see `pi-mono-reference/packages/ai/src/env-api-keys.ts`).
*/
import type { ConnectorDefinition } from "./connector-definitions";
import type { ConnectorDefinition } from "../connector-definitions";
export const CLOUD_CONNECTORS: ConnectorDefinition[] = [
{
+11
View File
@@ -0,0 +1,11 @@
/**
* Barrel for the connector catalog partition files. The three per-auth
* modules live side-by-side instead of next to `connector-definitions.ts`
* so `ls src/main/` stays skimmable; this re-export exists so existing
* imports like `./connector-definitions-data-oauth` continue to resolve
* via `./connector-definitions/oauth` with the same symbol names.
*/
export { OAUTH_CONNECTORS } from "./oauth";
export { API_KEY_CONNECTORS } from "./apikey";
export { CLOUD_CONNECTORS } from "./cloud";
+1 -1
View File
@@ -13,7 +13,7 @@
* `getOAuthProvider`.
*/
import type { ConnectorDefinition } from "./connector-definitions";
import type { ConnectorDefinition } from "../connector-definitions";
export const OAUTH_CONNECTORS: ConnectorDefinition[] = [
{