加入插件及调用上下文 #1

Merged
tone merged 17 commits from dev into main 2025-12-02 15:48:35 +08:00

17 Commits

Author SHA1 Message Date
b440c38e73 feat: export getRPCContext from RPCContext 2025-12-02 15:46:07 +08:00
d936af9793 feat: add RPCContext 2025-12-02 15:03:33 +08:00
2fa7b851ff feat: export AbstractRPCPlugin and related types from RPCPlugin 2025-11-28 14:13:02 +08:00
4eac61144f Merge branch 'feature/rpc-plugin' into dev
* feature/rpc-plugin:
  feat: add session management and authentication tests for RPC plugin
  feat: add error reason to RPCError in callRequest method
  feat: enhance onCallRequest method with request handling and hook execution
  feat: add session and request handling to CallIncomingBeforeCtx and CallIncomingCtx interfaces
  feat: enhance callRequest method with options validation and hook execution
  feat: comment out abstract onInit and onDestroy methods in AbstractRPCPlugin class
  feat: update CallOutgoingBeforeCtx and CallOutgoingCtx interfaces to use unknown type for options and result
  feat: add unit tests for RPCPlugin hook execution and error handling
  feat: remove unused HookChainInterruptedError class from RPCPlugin
  feat: add RPCPlugin interface and abstract class with hook context definitions
  feat: add plugin management methods to RPCHandler
  feat: add createDeferrablePromise utility function
2025-11-28 14:12:53 +08:00
12afcb7a82 feat: add session management and authentication tests for RPC plugin 2025-11-28 14:12:37 +08:00
40d0e79358 feat: add error reason to RPCError in callRequest method 2025-11-28 13:35:03 +08:00
9a8733a77d feat: enhance onCallRequest method with request handling and hook execution 2025-11-28 11:08:19 +08:00
1b5281e0c1 feat: add session and request handling to CallIncomingBeforeCtx and CallIncomingCtx interfaces 2025-11-28 11:08:03 +08:00
3a4a54d37c test: enhance error handling in RPC disconnected test 2025-11-27 22:45:48 +08:00
ebb9ed21ad feat: enhance callRequest method with options validation and hook execution 2025-11-27 22:31:06 +08:00
720a79ca7a feat: comment out abstract onInit and onDestroy methods in AbstractRPCPlugin class 2025-11-27 22:30:29 +08:00
500e7c8fa6 feat: update CallOutgoingBeforeCtx and CallOutgoingCtx interfaces to use unknown type for options and result 2025-11-27 22:30:21 +08:00
809a3759d9 feat: add unit tests for RPCPlugin hook execution and error handling 2025-11-27 21:36:41 +08:00
bc1445d3a5 feat: remove unused HookChainInterruptedError class from RPCPlugin 2025-11-27 21:31:49 +08:00
24a14a8e1c feat: add RPCPlugin interface and abstract class with hook context definitions 2025-11-27 21:25:27 +08:00
99c673a8dc feat: add plugin management methods to RPCHandler 2025-11-27 20:43:07 +08:00
b0bcd64b41 feat: add createDeferrablePromise utility function 2025-11-27 20:35:14 +08:00