mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat(channels): make plugin-example package publishable
- Update channel-base to use built dist/ output with proper exports - Add README with quick start guide and usage instructions - Add qwen-extension.json manifest for extension discovery - Add start-server CLI for running the mock WebSocket server - Update dependencies from local file: to npm version This enables the plugin-example package to be published and installed as a standalone extension for testing the channel plugin system. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
987eebd1c4
commit
c97c548acb
7 changed files with 180 additions and 9 deletions
|
|
@ -12,5 +12,10 @@ export const plugin: ChannelPlugin = {
|
|||
displayName: 'Plugin Example',
|
||||
requiredConfigFields: ['serverWsUrl'],
|
||||
createChannel: (name, config, bridge, options) =>
|
||||
new MockPluginChannel(name, config as MockPluginConfig, bridge, options),
|
||||
new MockPluginChannel(
|
||||
name,
|
||||
config as typeof config & { serverWsUrl: string },
|
||||
bridge,
|
||||
options,
|
||||
),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue