Ju4tCode

Results 108 comments of Ju4tCode

刚才讨论了下,可行的方案是: 1. `PluginManager` 需要在搜索插件前就得知道自己管理的插件是否具有父插件,不再通过运行时加载栈获取父子关系,并获得父插件的id用于构建子插件id,id格式可以为`parent:child` 2. 在判断插件父子关系的时候要避免加载第三方插件被识别为子插件,可以根据模块路径来判断 3. `PluginManager` 根据第二条,就需要为自己管理的插件提供模块路径和id供后来者判断并生成其他插件id

你现在的获取是通过运行时上下文获取的,和我说的搜索时加载前获取有本质差别。关于这个feature的实现,我想在下一个版本做,当前版本咱不考虑。

目前你可以前往 https://registry.nonebot.dev 查看

插件支持的适配器列表建议使用inherit supported adapters来继承依赖插件并取交集,另外数据文件请勿随意存放于bot目录,请使用localstore插件或为用户提供配置项来变更存储路径。还有你的config读取方式已经无法在最新版nb内使用了,请在插件依赖中限制pydantic版本`~=1.10`或者使用nb新版本`>=2.2.0`使用方法`get_plugin_config`。

Any update on this? I just write the pragma rules which like the example in the readme and find it not working. 😂 Debug and read the source code... i...

鉴于插件作者一个月没有回复,暂时关闭本次提交,如果需要发布请重新提交

It seems this is a new schema error. could you please provide the example repo info? As described in the [schema](https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.yaml#:~:text=required%3A%0A%20%20%20%20%20%20%2D%20id%0A%20%20%20%20%20%20%2D%20node_id%0A%20%20%20%20%20%20%2D%20html_url%0A%20%20%20%20%20%20%2D%20issue_url%0A%20%20%20%20%20%20%2D%20author_association%0A%20%20%20%20%20%20%2D%20user%0A%20%20%20%20%20%20%2D%20url%0A%20%20%20%20%20%20%2D%20created_at%0A%20%20%20%20%20%20%2D%20updated_at) provided by github, the `issue_url` field is required in...

you could provide a custom `map_func` to the paginator like this: ```python async for event_dict in gh.paginate( gh.rest.activity.async_list_repo_events, owner=owner, repo=repo, map_func=lambda resp: resp.json() ): ... ``` the default `map_func` is...

I could not repreduce the error with http 422. but according to the github docs, http 422 indicates "Validation failed, or the endpoint has been spammed."

which type checker you are using? the typevar in your change is used to restrict the `map_func` and extra params. I'm using VSCode and the static type check is OK...