import { r as listLoadedChannelPlugins } from "./registry-loaded-CNnHRkHv.js";
import { t as GATEWAY_EVENT_UPDATE_AVAILABLE } from "./events-DrUT3HL0.js";
//#region src/gateway/server-methods-list.ts
const BASE_METHODS = [
	"health",
	"diagnostics.stability",
	"doctor.memory.status",
	"doctor.memory.dreamDiary",
	"doctor.memory.backfillDreamDiary",
	"doctor.memory.resetDreamDiary",
	"doctor.memory.resetGroundedShortTerm",
	"doctor.memory.repairDreamingArtifacts",
	"doctor.memory.dedupeDreamDiary",
	"doctor.memory.remHarness",
	"logs.tail",
	"channels.status",
	"channels.start",
	"channels.stop",
	"channels.logout",
	"channels.cn.config.list",
	"channels.cn.config.set",
	"channels.cn.qrcode.get",
	"channels.cn.qrcode.status",
	"channels.cn.connect",
	"status",
	"usage.status",
	"usage.cost",
	"tts.status",
	"tts.providers",
	"tts.personas",
	"tts.enable",
	"tts.disable",
	"tts.convert",
	"tts.setProvider",
	"tts.setPersona",
	"config.get",
	"config.set",
	"config.apply",
	"config.patch",
	"config.schema",
	"config.schema.lookup",
	"exec.approvals.get",
	"exec.approvals.set",
	"exec.approvals.node.get",
	"exec.approvals.node.set",
	"exec.approval.get",
	"exec.approval.list",
	"exec.approval.request",
	"exec.approval.waitDecision",
	"exec.approval.resolve",
	"plugin.approval.list",
	"plugin.approval.request",
	"plugin.approval.waitDecision",
	"plugin.approval.resolve",
	"plugins.uiDescriptors",
	"wizard.start",
	"wizard.next",
	"wizard.cancel",
	"wizard.status",
	"talk.catalog",
	"talk.config",
	"talk.client.create",
	"talk.client.toolCall",
	"talk.session.create",
	"talk.session.join",
	"talk.session.appendAudio",
	"talk.session.startTurn",
	"talk.session.endTurn",
	"talk.session.cancelTurn",
	"talk.session.cancelOutput",
	"talk.session.submitToolResult",
	"talk.session.close",
	"talk.speak",
	"talk.mode",
	"commands.list",
	"models.list",
	"models.authStatus",
	"tools.catalog",
	"tools.effective",
	"tools.invoke",
	"environments.list",
	"environments.status",
	"agents.list",
	"agents.create",
	"agents.update",
	"agents.delete",
	"agents.files.list",
	"agents.files.get",
	"agents.files.set",
	"workspace.output.list",
	"workspace.output.open",
	"workspace.output.reveal",
	"artifacts.list",
	"artifacts.get",
	"artifacts.download",
	"skills.status",
	"skills.search",
	"skills.detail",
	"skills.bins",
	"skills.install",
	"skills.uninstall",
	"skills.update",
	"update.status",
	"update.run",
	"voicewake.get",
	"voicewake.set",
	"secrets.reload",
	"secrets.resolve",
	"voicewake.routing.get",
	"voicewake.routing.set",
	"sessions.list",
	"sessions.subscribe",
	"sessions.unsubscribe",
	"sessions.messages.subscribe",
	"sessions.messages.unsubscribe",
	"sessions.preview",
	"sessions.describe",
	"sessions.compaction.list",
	"sessions.compaction.get",
	"sessions.compaction.branch",
	"sessions.compaction.restore",
	"sessions.create",
	"sessions.send",
	"sessions.abort",
	"sessions.patch",
	"sessions.pluginPatch",
	"sessions.cleanup",
	"sessions.reset",
	"sessions.delete",
	"sessions.compact",
	"last-heartbeat",
	"set-heartbeats",
	"wake",
	"node.pair.request",
	"node.pair.list",
	"node.pair.approve",
	"node.pair.reject",
	"node.pair.remove",
	"node.pair.verify",
	"device.pair.list",
	"device.pair.approve",
	"device.pair.reject",
	"device.pair.remove",
	"device.token.rotate",
	"device.token.revoke",
	"node.rename",
	"node.list",
	"node.describe",
	"node.pending.drain",
	"node.pending.enqueue",
	"node.invoke",
	"node.pending.pull",
	"node.pending.ack",
	"node.invoke.result",
	"node.event",
	"node.canvas.capability.refresh",
	"cron.list",
	"cron.status",
	"cron.add",
	"cron.update",
	"cron.remove",
	"cron.run",
	"cron.runs",
	"gateway.identity.get",
	"gateway.restart.preflight",
	"gateway.restart.request",
	"system-presence",
	"system-event",
	"message.action",
	"send",
	"agent",
	"agent.identity.get",
	"agent.wait",
	"chat.history",
	"chat.abort",
	"chat.send"
];
function listGatewayMethods() {
	const channelMethods = listLoadedChannelPlugins().flatMap((plugin) => plugin.gatewayMethods ?? []);
	return Array.from(new Set([...BASE_METHODS, ...channelMethods]));
}
const GATEWAY_EVENTS = [
	"connect.challenge",
	"agent",
	"chat",
	"session.message",
	"session.tool",
	"sessions.changed",
	"presence",
	"tick",
	"talk.mode",
	"talk.event",
	"shutdown",
	"health",
	"heartbeat",
	"cron",
	"node.pair.requested",
	"node.pair.resolved",
	"node.invoke.request",
	"device.pair.requested",
	"device.pair.resolved",
	"voicewake.changed",
	"voicewake.routing.changed",
	"exec.approval.requested",
	"exec.approval.resolved",
	"plugin.approval.requested",
	"plugin.approval.resolved",
	GATEWAY_EVENT_UPDATE_AVAILABLE
];
//#endregion
export { listGatewayMethods as n, GATEWAY_EVENTS as t };
