93 lines
2.2 KiB
TypeScript
93 lines
2.2 KiB
TypeScript
export { validateYonexusServerConfig, YonexusServerConfigError } from "./core/config.js";
|
|
export type { YonexusServerConfig } from "./core/config.js";
|
|
export {
|
|
createClientRecord,
|
|
serializeClientRecord,
|
|
deserializeClientRecord,
|
|
isPairable,
|
|
hasPendingPairing,
|
|
isPairingExpired,
|
|
canAuthenticate,
|
|
type PairingStatus,
|
|
type ClientLivenessStatus,
|
|
type PairingNotifyStatus,
|
|
type NonceEntry,
|
|
type HandshakeAttemptEntry,
|
|
type ClientRecord,
|
|
type ClientSession,
|
|
type ServerRegistry,
|
|
type SerializedClientRecord,
|
|
type ServerPersistenceData
|
|
} from "./core/persistence.js";
|
|
export {
|
|
SERVER_PERSISTENCE_VERSION,
|
|
YonexusServerStoreError,
|
|
YonexusServerStoreCorruptionError,
|
|
createYonexusServerStore,
|
|
loadServerStore,
|
|
saveServerStore,
|
|
type ServerStoreLoadResult,
|
|
type YonexusServerStore
|
|
} from "./core/store.js";
|
|
|
|
export interface YonexusServerPluginManifest {
|
|
readonly name: "Yonexus.Server";
|
|
readonly version: string;
|
|
readonly description: string;
|
|
}
|
|
|
|
export interface YonexusServerPluginRuntime {
|
|
readonly hooks: readonly [];
|
|
readonly commands: readonly [];
|
|
readonly tools: readonly [];
|
|
}
|
|
|
|
const manifest: YonexusServerPluginManifest = {
|
|
name: "Yonexus.Server",
|
|
version: "0.1.0",
|
|
description: "Yonexus central hub plugin for cross-instance OpenClaw communication"
|
|
};
|
|
|
|
export function createYonexusServerPlugin(): YonexusServerPluginRuntime {
|
|
return {
|
|
hooks: [],
|
|
commands: [],
|
|
tools: []
|
|
};
|
|
}
|
|
|
|
export default createYonexusServerPlugin;
|
|
export {
|
|
createServerTransport,
|
|
YonexusServerTransport,
|
|
type ServerTransport,
|
|
type ServerTransportOptions,
|
|
type ClientConnection,
|
|
type MessageHandler,
|
|
type ConnectionHandler,
|
|
type DisconnectionHandler
|
|
} from "./core/transport.js";
|
|
export {
|
|
createYonexusServerRuntime,
|
|
YonexusServerRuntime,
|
|
type YonexusServerRuntimeOptions,
|
|
type ServerLifecycleState
|
|
} from "./core/runtime.js";
|
|
|
|
export {
|
|
createPairingService,
|
|
PairingService,
|
|
type PairingRequest,
|
|
type PairingResult,
|
|
type PairingFailureReason
|
|
} from "./services/pairing.js";
|
|
|
|
export {
|
|
createDiscordNotificationService,
|
|
createMockNotificationService,
|
|
type DiscordNotificationService,
|
|
type DiscordNotificationConfig
|
|
} from "./notifications/discord.js";
|
|
|
|
export { manifest };
|