matrix-plugin/dist
Бородин Роман 4294e30f76 fix: move all imports to dynamic to defer matrix-bot-sdk loading
ES modules evaluate ALL static imports before any code executes.
ensureNativeBinary() was called but matrix-bot-sdk was already
loaded by the time it ran.

Solution: all imports are now dynamic (await import()). The setup
function calls ensureNativeBinary() first, then dynamically loads
everything else including matrix-bot-sdk transitively.

Changes:
- Remove all static imports from index.ts
- Move ensureNativeBinary() into async setup()
- Pass log/logError as parameters to runPlugin
- Make parseCodeModeTools async for dynamic acorn imports
- Add import type for MatrixEventContext (erased at compile time)
2026-09-30 22:41:29 +03:00
..
bootstrap-native.js fix: download native crypto binary at plugin startup 2026-09-30 22:01:17 +03:00
config-loader.js fix: compile TS to JS and set main to dist/index.js for git plugin installation 2026-09-30 21:39:03 +03:00
index.js fix: move all imports to dynamic to defer matrix-bot-sdk loading 2026-09-30 22:41:29 +03:00
logger.js fix: compile TS to JS and set main to dist/index.js for git plugin installation 2026-09-30 21:39:03 +03:00
matrix-client.js fix: compile TS to JS and set main to dist/index.js for git plugin installation 2026-09-30 21:39:03 +03:00
session-manager.js fix: compile TS to JS and set main to dist/index.js for git plugin installation 2026-09-30 21:39:03 +03:00
types.js fix: compile TS to JS and set main to dist/index.js for git plugin installation 2026-09-30 21:39:03 +03:00