Nonebot-plugin-alconna

Latest version: v0.53.1

Safety actively analyzes 675368 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 15 of 22

0.30.1

What's Changed
* Fix: upload raw bytes instead of `RawData` instance by StarHeartHunt in https://github.com/nonebot/plugin-alconna/pull/14

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.30.0...v0.30.1

0.30.0

破坏性改动
- 删除 `ALCONNA_USE_PARAM` 配置

新增
- `Extension` 增加 property `namespacee`, 用来指定自己仅在对应命令的某个命名空间下生效
- `Extension` 增加方法 `catch`, 用来自定义依赖注入:
python
from nonebot_plugin_alconna import Extension, Alconna

class LLMExtension(Extension):
...

def __init__(self, llm):
self.llm = llm

...

async def catch(interface: Interface):
if interface.annotation is self.llm.__class__:
return self.llm


改进
- `Nonebot2` 最低依赖提升到 2.1.0
- `Reference` 现在可用于发送,目前支持的适配器有 `villa`, `mirai`, `satori`

修复
- 修复 `Extension` 某些方法未被调用的问题


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.29.0...v0.30.0

0.29.0

What's Changed
* Docs: 更新文档链接 by StarHeartHunt in https://github.com/nonebot/plugin-alconna/pull/12
* `AlconnaMatcher` 现在会存在于 command.meta.extra["matcher"] 中 (weakref)
* `AlconnaMatcher.get/set_path_arg` 现在是类方法 (即不强制需要通过依赖注入获取实例)
* uniseg 增加通用标注 `Reference`,表示一类引用的消息 (与 Reply 不同)
* 增加消息导出时找不到适配器对应的导出器的错误消息
* 修复 `satori` 适配器的导出错误
* `Text` 现在会解析 `markdown` 一类的消息段
* 修复 `villa` 适配器消息段的问题
* 补全会话的配置取消 `priority` 字段

New Contributors
* StarHeartHunt made their first contribution in https://github.com/nonebot/plugin-alconna/pull/12

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.28.0...v0.29.0

0.28.0

改进:
- 全局的 `Extension` 可延迟加载 (即若有全局拓展加载于部分 AlconnaMatcher 之后,这部分响应器会被追加拓展)
- 补全会话支持处理输入参数类型错误的情况 (例如指令某个参数传入类型错误,则补全会话会提示正确类型,并释放该参数 )
- 补全会话的 `enter` 指令只用于确认输入提示内容
- 补全会话下除开 `exit`,`enter`,`tab`,其余的输入都会作为输入参数
- 补全会话现在只会接收来自会话创建者的事件

修复:
- 修复 `ob11`, `qq` 适配器下图片转换错误的问题

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.27.4...v0.28.0

0.27.4

- `File` 现在也继承于 `Media`
- `Media.raw` 跟进 adapter-satori , 要求为 `{"data": raw, "mimetype": str}`
- 适配 adapter-satori v0.5.0

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.27.3...v0.27.4

0.27.3

- 升级适配 adapter-satori v0.4.0

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.27.2...v0.27.3

Page 15 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.