mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #156] [MERGED] Websockets for plugin runtime communication #92
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/156
Author: @gschier
Created: 1/20/2025
Status: ✅ Merged
Merged: 1/20/2025
Merged by: @gschier
Base:
master← Head:deno-plugin-runtime📝 Commits (10+)
496ce91Started porting plugin runtime to Deno/websocket487b94fSome tweaks6834f0aRemove logs and refine7f4ad43Deno plugins working65299c7Switch back to NodeJS plugin runtimeb6720b0Merge branch 'master' into deno-plugin-runtime5f9bc02Merge master8ad0733Catch plugin decode eventsc0852a8Toast break all charscbade68Re-gen📊 Changes
54 files changed (+840 additions, -1184 deletions)
View changed files
📝
.prettierrc.cjs(+7 -7)📝
package-lock.json(+70 -444)📝
packages/plugin-runtime-types/package.json(+1 -1)📝
packages/plugin-runtime-types/src/bindings/events.ts(+12 -10)📝
packages/plugin-runtime-types/src/plugins/AuthenticationPlugin.ts(+2 -2)📝
packages/plugin-runtime-types/src/plugins/Context.ts(+21 -11)📝
packages/plugin-runtime-types/src/plugins/FilterPlugin.ts(+3 -4)📝
packages/plugin-runtime-types/src/plugins/HttpRequestActionPlugin.ts(+1 -1)📝
packages/plugin-runtime-types/src/plugins/ImporterPlugin.ts(+26 -9)📝
packages/plugin-runtime-types/src/plugins/TemplateFunctionPlugin.ts(+9 -3)📝
packages/plugin-runtime-types/src/plugins/ThemePlugin.ts(+3 -3)📝
packages/plugin-runtime-types/src/themes/index.ts(+1 -1)➖
packages/plugin-runtime/.gitignore(+0 -3)➕
packages/plugin-runtime/package-lock.json(+10 -0)📝
packages/plugin-runtime/package.json(+4 -8)📝
packages/plugin-runtime/src/EventChannel.ts(+5 -12)📝
packages/plugin-runtime/src/PluginHandle.ts(+1 -1)➖
packages/plugin-runtime/src/gen/plugins/runtime.ts(+0 -126)📝
packages/plugin-runtime/src/index.ts(+42 -42)📝
packages/plugin-runtime/src/index.worker.ts(+111 -102)...and 34 more files
📄 Description
This PR was initially supposed to be porting the plugin runtime to Deno. However, it seems Deno's NodeJS compatibility is still not 100%, resulting in weird compat issues, event with Yaak's limited set of default plugins.
Instead, this PR takes the good part from that experiment: Switch the legacy gRPC communication layer to use WebSockets.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.