Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions .github/workflows/plugin-api-v2.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/plugin-api-v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: plugin-api-v3

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: akashic-plugins/plugin-contracts
ref: 4dd69dd621e029e51e99aa428443fa3a4ec1f6cf
path: .plugin-contracts
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Check Plugin API v3
env:
PYTHONPATH: .plugin-contracts
run: python -m akashic_plugin_contracts check plugin.py

composition-parity:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: kachofugetsu09/akashic-agent
ref: 3005f838bcd96e2cbc58616aede46e4f39df4523
path: .akashic-core
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: .akashic-core/requirements.txt
- name: Install exact Core runtime
run: |
python -m venv .venv
.venv/bin/python -m pip install \
-r .akashic-core/requirements.txt \
-r .akashic-core/requirements-dev.txt \
pytest pytest-asyncio
- name: Verify QQBot v3 composition
env:
AKASHIC_AGENT_ROOT: .akashic-core
PYTHONPATH: .akashic-core
run: .venv/bin/python -m pytest -q tests/
- name: Check v3 source types
env:
PYTHONPATH: .akashic-core
run: .venv/bin/pyright --pythonpath .venv/bin/python --level error plugin.py channel.py config.py tests
- name: Compile Python sources
run: python -m compileall -q plugin.py channel.py config.py tests
- name: Check diff formatting
run: git diff --check
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# qqbot
# QQBot

Akashic QQBot channel plugin.
Akashic 官方 QQBot 私聊渠道。插件已迁移到 pure v3 Channel API:

- candidate 只注册静态 channel definition,不解密凭证、不建立网络连接;
- formal generation 通过 Core 提供的 exact binding 处理入站、`/stop`、临时预览和最终文本投递;
- v3 adapter 支持 Core-owned 图片和文件附件:先 exact-ref/hash 校验并有界读取,再按文本、附件顺序走 QQ 富媒体上传;provider 效果使用 `DELIVERED`、`REJECTED`、`UNKNOWN` 三态。
- 入站附件通过 provider URL 下载并导入 Core artifact store,再一次性提交给 ingress;插件不读取 workspace 路径、不拥有附件持久化。
8 changes: 8 additions & 0 deletions akashic.plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
schema_version = 1
name = "qqbot"
version = "3.0.0"
api_version = 3
entrypoint = "plugin.py"

[channel_credentials]
qqbot = ["appId", "app_id", "clientSecret", "client_secret"]
Loading
Loading