mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-26 05:17:06 +00:00
14 lines
515 B
TypeScript
14 lines
515 B
TypeScript
import { eventHub } from "@/common/events";
|
|
import { translateLiveSyncMessage } from "@/common/translation";
|
|
import { ServiceContext, type StandardIo } from "@vrtmrz/livesync-commonlib/context";
|
|
|
|
/** Host capabilities owned by one Self-hosted LiveSync CLI composition. */
|
|
export class NodeServiceContext extends ServiceContext {
|
|
constructor(
|
|
readonly databasePath: string,
|
|
readonly standardIo: StandardIo
|
|
) {
|
|
super({ events: eventHub, translate: translateLiveSyncMessage });
|
|
}
|
|
}
|