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:
1 parent
32dfa89b7e
commit
1c7bc71931
5 files changed
+18
-9
No files matched your search
@@ -18,15 +18,13 @@
|
|||||||
* Entries live in three companion files to keep every module under the
|
* Entries live in three companion files to keep every module under the
|
||||||
* 400-line cap:
|
* 400-line cap:
|
||||||
*
|
*
|
||||||
* - `connector-definitions-data-oauth.ts` — 5 OAuth providers
|
* - `connector-definitions/oauth.ts` — 5 OAuth providers
|
||||||
* - `connector-definitions-data-apikey.ts` — 18 API-key providers
|
* - `connector-definitions/apikey.ts` — 18 API-key providers
|
||||||
* - `connector-definitions-data-cloud.ts` — 3 Cloud providers
|
* - `connector-definitions/cloud.ts` — 3 Cloud providers
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ConnectorId } from "@shared/types";
|
import type { ConnectorId } from "@shared/types";
|
||||||
import { OAUTH_CONNECTORS } from "./connector-definitions-data-oauth";
|
import { OAUTH_CONNECTORS, API_KEY_CONNECTORS, CLOUD_CONNECTORS } from "./connector-definitions/index";
|
||||||
import { API_KEY_CONNECTORS } from "./connector-definitions-data-apikey";
|
|
||||||
import { CLOUD_CONNECTORS } from "./connector-definitions-data-cloud";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth provider id recognised by the AgentCompany credential layer. These
|
* OAuth provider id recognised by the AgentCompany credential layer. These
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
* set.
|
* set.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ConnectorDefinition } from "./connector-definitions";
|
import type { ConnectorDefinition } from "../connector-definitions";
|
||||||
|
|
||||||
export const API_KEY_CONNECTORS: ConnectorDefinition[] = [
|
export const API_KEY_CONNECTORS: ConnectorDefinition[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* run (see `pi-mono-reference/packages/ai/src/env-api-keys.ts`).
|
* 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[] = [
|
export const CLOUD_CONNECTORS: ConnectorDefinition[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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";
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
* `getOAuthProvider`.
|
* `getOAuthProvider`.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ConnectorDefinition } from "./connector-definitions";
|
import type { ConnectorDefinition } from "../connector-definitions";
|
||||||
|
|
||||||
export const OAUTH_CONNECTORS: ConnectorDefinition[] = [
|
export const OAUTH_CONNECTORS: ConnectorDefinition[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user