Files
Aperant/auto-claude-ui/src/preload/api/agent-api.ts
T
2025-12-16 20:43:55 +01:00

91 lines
2.2 KiB
TypeScript

/**
* Agent API - Aggregates all agent-related API modules
*
* This file serves as the main entry point for agent APIs, combining:
* - Roadmap operations
* - Ideation operations
* - Insights operations
* - Changelog operations
* - Linear integration
* - GitHub integration
* - Auto-build source updates
* - Shell operations
*/
import { createRoadmapAPI, RoadmapAPI } from './modules/roadmap-api';
import { createIdeationAPI, IdeationAPI } from './modules/ideation-api';
import { createInsightsAPI, InsightsAPI } from './modules/insights-api';
import { createChangelogAPI, ChangelogAPI } from './modules/changelog-api';
import { createLinearAPI, LinearAPI } from './modules/linear-api';
import { createGitHubAPI, GitHubAPI } from './modules/github-api';
import { createAutoBuildAPI, AutoBuildAPI } from './modules/autobuild-api';
import { createShellAPI, ShellAPI } from './modules/shell-api';
/**
* Combined Agent API interface
* Includes all operations from individual API modules
*/
export interface AgentAPI extends
RoadmapAPI,
IdeationAPI,
InsightsAPI,
ChangelogAPI,
LinearAPI,
GitHubAPI,
AutoBuildAPI,
ShellAPI {}
/**
* Creates the complete Agent API by combining all module APIs
*
* @returns Complete AgentAPI with all operations available
*/
export const createAgentAPI = (): AgentAPI => {
const roadmapAPI = createRoadmapAPI();
const ideationAPI = createIdeationAPI();
const insightsAPI = createInsightsAPI();
const changelogAPI = createChangelogAPI();
const linearAPI = createLinearAPI();
const githubAPI = createGitHubAPI();
const autobuildAPI = createAutoBuildAPI();
const shellAPI = createShellAPI();
return {
// Roadmap API
...roadmapAPI,
// Ideation API
...ideationAPI,
// Insights API
...insightsAPI,
// Changelog API
...changelogAPI,
// Linear Integration API
...linearAPI,
// GitHub Integration API
...githubAPI,
// Auto-Build Source Update API
...autobuildAPI,
// Shell Operations API
...shellAPI
};
};
// Re-export individual API interfaces for consumers who need them
export type {
RoadmapAPI,
IdeationAPI,
InsightsAPI,
ChangelogAPI,
LinearAPI,
GitHubAPI,
AutoBuildAPI,
ShellAPI
};