import { d as defineEventHandler, a as useOrchestrator, s as setResponseStatus } from '../../../../index.mjs';
import '@anthropic-ai/claude-agent-sdk';
import '@octokit/webhooks';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:process';
import 'consola';
import '@octokit/graphql';
import 'zod';
import '@octokit/auth-app';
import 'node:os';
import '@libsql/client';
import 'liquidjs';
import 'js-yaml';
import 'node:child_process';
import '@chat-adapter/github';
import '@chat-adapter/slack';
import 'chat';
import 'chat-adapter-asana';
import 'better-auth';
import 'better-auth/plugins';
import 'bun:sqlite';
import 'better-auth/db/migration';
import 'node:url';
import '@iconify/utils';
import 'rou3';

const refresh_post = defineEventHandler((event) => {
  const orchestrator = useOrchestrator();
  orchestrator.triggerRefresh();
  setResponseStatus(event, 202);
  return {
    queued: true,
    requested_at: (/* @__PURE__ */ new Date()).toISOString(),
    operations: ["poll", "reconcile"]
  };
});

export { refresh_post as default };
//# sourceMappingURL=refresh.post.mjs.map
