mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:00:42 +00:00
fix(matrix): keep runtime api import-safe
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Keep the external runtime API light so Jiti callers can resolve Matrix config
|
// 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 "./src/auth-precedence.js";
|
||||||
export * from "./helper-api.js";
|
export * from "./helper-api.js";
|
||||||
export { sendMessageMatrix } from "./src/matrix/send.js";
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { sendMessageMatrix } from "../../runtime-api.js";
|
|
||||||
import {
|
import {
|
||||||
readJsonFileWithFallback,
|
readJsonFileWithFallback,
|
||||||
registerSessionBindingAdapter,
|
registerSessionBindingAdapter,
|
||||||
@@ -11,6 +10,7 @@ import {
|
|||||||
import { resolveMatrixStoragePaths } from "./client/storage.js";
|
import { resolveMatrixStoragePaths } from "./client/storage.js";
|
||||||
import type { MatrixAuth } from "./client/types.js";
|
import type { MatrixAuth } from "./client/types.js";
|
||||||
import type { MatrixClient } from "./sdk.js";
|
import type { MatrixClient } from "./sdk.js";
|
||||||
|
import { sendMessageMatrix } from "./send.js";
|
||||||
import {
|
import {
|
||||||
deleteMatrixThreadBindingManagerEntry,
|
deleteMatrixThreadBindingManagerEntry,
|
||||||
getMatrixThreadBindingManager,
|
getMatrixThreadBindingManager,
|
||||||
|
|||||||
Reference in New Issue
Block a user