Commit Graph

20 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)

Author SHA1 Message Date
Peter Steinberger 06b154a6df
fix: unblock comfy live plugin loading 8 months ago
Peter Steinberger 3126809cb0
refactor: clean bundled channel bootstrap boundaries 8 months ago
Peter Steinberger e4b5027c5e
refactor(plugins): move extension seams into extensions 8 months ago
Vincent Koc ac20eed335 fix(ci): route extension tests through sdk seams 8 months ago
Vincent Koc 4b2c7404e5 test(types): remove remaining testing barrel references 8 months ago
Peter Steinberger 051d6f9342 refactor: remove onboarding gateway compat shims 8 months ago
Drickon 715b13547f
fix(line): pre-export clashing symbols to prevent jiti TypeError on startup (#53221)
* fix(line): pre-export clashing symbols to prevent jiti TypeError on startup

When jiti CJS-transforms extensions/line/runtime-api.ts, both
export * from "openclaw/plugin-sdk/line-runtime" and the subsequent
export * from individual source files attempt to define the same 13
symbols via Object.defineProperty with configurable:false. The second
call throws TypeError: Cannot redefine property.

The root cause is that src/plugin-sdk/line-runtime.ts re-exports
these symbols directly from the extension source files, creating a
circular path back to the same files that runtime-api.ts star-exports.

Fix: add named pre-exports for all symbols that plugin-sdk/line-runtime
re-exports from this extension. Named exports register in jiti's
_exportNames map at transform time; the star re-export's hasOwnProperty
guard then skips them, preventing the duplicate Object.defineProperty.

export * reordering cannot fix this: _exportNames is only populated
by named exports, not by export *, so the guard never fires regardless
of order.

This is the same class of bug as the Matrix plugin crash described in
issues #50868, #52780, and #52891, and uses the same fix pattern as
PR #50919.

* test: add LINE runtime-api Jiti regression (#53221) (thanks @Drickon)

* test: stabilize LINE Jiti regression (#53221) (thanks @Drickon)

* test: harden LINE Jiti regression (#53221) (thanks @Drickon)

* chore: retrigger PR checks (#53221)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
8 months ago
Peter Steinberger 3fac0d11fa
test: fix base vitest thread regressions 8 months ago
Vincent Koc 8b667cbe44 fix(build): repair stale plugin sdk surfaces 8 months ago
Vincent Koc 06ddfb7e5f fix(ci): satisfy voice-call typing and extension boundaries 8 months ago
Vincent Koc 3ad652fa9e fix(build): restore plugin-sdk and line compat after refactor 8 months ago
Vincent Koc 2131981230 refactor(plugins): move remaining channel and provider ownership out of src 8 months ago
Vincent Koc 2b4c3c2057
fix(plugin-sdk): remove relative extension boundary escapes (#51939)
* fix(plugin-sdk): remove relative extension boundary escapes

* Gate new plugin-sdk subpaths on host version

* Add changelog entry for #51939

* Fix local staging for plugin-sdk host version gate

* Raise host floor for line and googlechat plugins

---------

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
8 months ago
Peter Steinberger 62ddc9d9e0 refactor: consolidate plugin sdk surface 8 months ago
Vincent Koc a2e1991ed3 refactor(plugin-sdk): route bundled runtime barrels through public subpaths 8 months ago
Peter Steinberger 18fa2992f9 fix: restore plugin sdk runtime barrels 8 months ago
Peter Steinberger 50ce9ac1c6 refactor: privatize bundled sdk facades 8 months ago
Vincent Koc f19cb738af fix(plugin-sdk): restore public runtime subpaths 8 months ago
Peter Steinberger 46f49eb6eb refactor: shrink plugin sdk public surface 8 months ago
Vincent Koc 6e723dfd69 Plugins: internalize medium extension SDK imports 8 months ago