mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 07:50:22 +00:00
refactor: untangle remaining plugin sdk boundaries
This commit is contained in:
21
src/plugin-sdk/runtime-env.ts
Normal file
21
src/plugin-sdk/runtime-env.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// Shared process/runtime utilities for plugins. This is the public boundary for
|
||||
// logger wiring, runtime env shims, and global verbose console helpers.
|
||||
|
||||
export type { RuntimeEnv } from "../runtime.js";
|
||||
export { createNonExitingRuntime, defaultRuntime } from "../runtime.js";
|
||||
export {
|
||||
danger,
|
||||
info,
|
||||
isVerbose,
|
||||
isYes,
|
||||
logVerbose,
|
||||
logVerboseConsole,
|
||||
setVerbose,
|
||||
setYes,
|
||||
shouldLogVerbose,
|
||||
success,
|
||||
warn,
|
||||
} from "../globals.js";
|
||||
export * from "../logging.js";
|
||||
export { waitForAbortSignal } from "../infra/abort-signal.js";
|
||||
export { registerUnhandledRejectionHandler } from "../infra/unhandled-rejections.js";
|
||||
Reference in New Issue
Block a user