mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:00:50 +00:00
refactor: narrow extension runtime api barrels
This commit is contained in:
@@ -1,14 +1,33 @@
|
||||
// Keep the external runtime API light so Jiti callers can resolve Matrix config
|
||||
// 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 {
|
||||
type MatrixResolvedStringField,
|
||||
type MatrixResolvedStringValues,
|
||||
resolveMatrixAccountStringValues,
|
||||
} from "./src/auth-precedence.js";
|
||||
export {
|
||||
requiresExplicitMatrixDefaultAccount,
|
||||
resolveMatrixDefaultOrOnlyAccountId,
|
||||
} from "./src/account-selection.js";
|
||||
export * from "./src/account-selection.js";
|
||||
export * from "./src/env-vars.js";
|
||||
export * from "./src/storage-paths.js";
|
||||
export {
|
||||
findMatrixAccountEntry,
|
||||
resolveConfiguredMatrixAccountIds,
|
||||
resolveMatrixChannelConfig,
|
||||
} from "./src/account-selection.js";
|
||||
export {
|
||||
getMatrixScopedEnvVarNames,
|
||||
listMatrixEnvAccountIds,
|
||||
resolveMatrixEnvAccountToken,
|
||||
} from "./src/env-vars.js";
|
||||
export {
|
||||
hashMatrixAccessToken,
|
||||
resolveMatrixAccountStorageRoot,
|
||||
resolveMatrixCredentialsDir,
|
||||
resolveMatrixCredentialsFilename,
|
||||
resolveMatrixCredentialsPath,
|
||||
resolveMatrixHomeserverKey,
|
||||
resolveMatrixLegacyFlatStoragePaths,
|
||||
resolveMatrixLegacyFlatStoreRoot,
|
||||
sanitizeMatrixPathSegment,
|
||||
} from "./src/storage-paths.js";
|
||||
export { ensureMatrixSdkInstalled, isMatrixSdkAvailable } from "./src/matrix/deps.js";
|
||||
export {
|
||||
assertHttpUrlTargetsPrivateNetwork,
|
||||
|
||||
@@ -70,10 +70,16 @@ describe("matrixApprovalNativeRuntime", () => {
|
||||
},
|
||||
request: {} as never,
|
||||
approvalKind: "exec",
|
||||
plannedTarget: {
|
||||
surface: "approver-dm",
|
||||
target: { to: "room:!room:example.org" },
|
||||
reason: "preferred",
|
||||
} as never,
|
||||
preparedTarget: {
|
||||
to: "room:!room:example.org",
|
||||
roomId: "!room:example.org",
|
||||
},
|
||||
view: {} as never,
|
||||
pendingPayload,
|
||||
});
|
||||
|
||||
@@ -216,10 +222,16 @@ describe("matrixApprovalNativeRuntime", () => {
|
||||
},
|
||||
request: {} as never,
|
||||
approvalKind: "exec",
|
||||
plannedTarget: {
|
||||
surface: "approver-dm",
|
||||
target: { to: "room:!room:example.org" },
|
||||
reason: "preferred",
|
||||
} as never,
|
||||
preparedTarget: {
|
||||
to: "room:!room:example.org",
|
||||
roomId: "!room:example.org",
|
||||
},
|
||||
view: {} as never,
|
||||
pendingPayload,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user