fix(matrix): keep runtime api import-safe

This commit is contained in:
Vincent Koc
2026-03-19 16:39:27 -07:00
parent c38295c7a2
commit aa172f2169
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
// Keep the external runtime API light so Jiti callers can resolve Matrix config
// helpers without traversing the full plugin-sdk/runtime graph.
// helpers without traversing the full plugin-sdk/runtime graph or bootstrapping
// matrix-js-sdk during plain runtime-api import.
export * from "./src/auth-precedence.js";
export * from "./helper-api.js";
export { sendMessageMatrix } from "./src/matrix/send.js";

View File

@@ -1,5 +1,4 @@
import path from "node:path";
import { sendMessageMatrix } from "../../runtime-api.js";
import {
readJsonFileWithFallback,
registerSessionBindingAdapter,
@@ -11,6 +10,7 @@ import {
import { resolveMatrixStoragePaths } from "./client/storage.js";
import type { MatrixAuth } from "./client/types.js";
import type { MatrixClient } from "./sdk.js";
import { sendMessageMatrix } from "./send.js";
import {
deleteMatrixThreadBindingManagerEntry,
getMatrixThreadBindingManager,