import { OpenAPIHono } from "@hono/zod-openapi";
import { slackRoutes } from "@inkeep/agents-work-apps/slack";

//#region src/domains/work-apps/index.ts
/**
* Work Apps Domain
*
* Modular integration layer for third-party work applications (Slack, GitHub, etc.)
* Work app implementations are in @inkeep/agents-work-apps package.
*
* Each work app is mounted as a sub-route:
* - /work-apps/slack/* - Slack workspace installation, user linking, commands
* - /work-apps/github/* - GitHub integration (mounted separately in createApp)
*/
function createWorkAppsRoutes() {
	const app = new OpenAPIHono();
	app.route("/slack", slackRoutes);
	return app;
}
const workAppsRoutes = createWorkAppsRoutes();

//#endregion
export { createWorkAppsRoutes, workAppsRoutes };