IM Channels (aiti-channels)
aiti-channels
❝ AI shouldn't be locked inside a web page — DingTalk/Feishu/WeChat are all its windows. ❞
IM channel integration extension: hosts the cc-connect process and gives cc-connect a full frontend shell. Platform schemas cover 14 kinds: dingtalk / feishu / wechat / telegram / discord / slack / line / qq / qqbot / wecom / matrix / webex / yuanbao / googlechat.
Panels (five sections)
One status banner in the header (running state / pid / mgmt·bridge endpoint info); all instance operations collapsed into a single ⋯ menu (start/stop/restart/install/update/Reload — binary rename asks for confirmation); pending-restart rows show the server-side runtime diff with a badge; the native console is off the nav and kept as a deep link (diagnostics menu ↗).
- Overview: one-line status banner + 4 stat cards (projects / connected platforms / bot sessions / message log) + quick links (exactly one entry per destination) + state-driven next step (1/5 install the instance → … → all ready)
- Projects: one row per bot (= one cc-connect project, 1:1) + a single + New entry (type chooser: Bot (with platform wizard) or plain project; the platform picker comes first in the wizard) + the wizard (platform → credentials → apply → verify, all inside the tab; the apply action is reload or restart depending on how the bot was created; with a preselected platform and a work dir available it opens straight on the credentials step) + Model/Backend selection (piweb: pi-web model catalogue and session backend; CLI agents: free-text
agentOptions.model) + row buttons straight to Manage (inline project settings: heartbeat / work dir / model / display settings) + event-driven list refresh after lifecycle ops; config-only / not-yet-loaded projects can be deleted (direct config edit fallback instead of a bare 404) - Chat: the workbench is the primary view (bridge WebSocket live stream + outbound send / delete); active sessions / broadcast / message log are folded into a second tab (no more triple stack); the relay chip re-queries once when the SSE channel opens (the mount race no longer shows "not connected")
- Automate: cron schedules / Providers (37 presets, activated per project) / Skills (installed matrix + preset market place, one search box)
- System: two groups — Instance and Config. Instance: install/update (justget, github + gitee), process hosting (systemd transient unit + adopting external processes), instance log (journald or file tail). Config: a raw config.toml editor (read + save with a server-side backup first), bulk config generation (merges onto the current config instead of blind replacement, overwrite needs an explicit confirm dialog, failed/declined generation no longer chains into start)
- Deep links: mobile remote (remote, entered from the overview card), native console (original — embeds cc-connect's own admin UI; URL derived from the page host by swapping in the
cc.subdomain, or an explicitadminOrigin)
Display settings (IM output granularity v2)
Three modes — quiet / compact / full — plus tool-message and thinking-message toggles: written as the bootstrap default, read live from the config, saved via display-save; applying goes through the instance management API /api/v1/reload and is hot — no restart needed (stopped instances are auto-started first by default, fault tolerance can be turned off). The Bot Channels card (service-tunnels) embeds the same advanced options plus a global display-save.
Onboarding
- Bot wizard is the only creation path (a single + New entry: Bot (with platform wizard) or plain project). The platform picker comes first; QR sign-in (WeChat/Feishu/Lark via cc-connect's official device flow — credentials are filled back into the form, never stored on its behalf) or a token form rendered from the platform schema (only WeChat is QR — QQ and others use plain form fields per the official config.example); create → apply → verify in one pass
- Channel health: platform connection state,
allow_fromwhitelist and heartbeat, read live through the management API - Phone-card column (service-tunnels): the mobile access card's right column reads this extension's
/bots+/bot-metaand lists the bound bots plus a chip per platform; clicking a chip opens this panel on the Bots tab with that platform preselected (the lazy client is materialized first). Without this extension — or with the instance stopped — the whole column hides and the card keeps its original single-column layout
Agent backend (ACP)
- Resident ACP server in pi-web, one endpoint per instance: POSIX = Unix socket; Windows = TCP (127.0.0.1, port derived per instance in 29000-29999) alongside a named pipe — on Windows the cc-connect piweb agent dials
tcp://directly, so the native chain has no child process - The cc-connect-side connector (a few KB, stdio ⇄ endpoint forwarding) stays as a fallback; the POSIX native chain dials the unix socket directly
- Reverse human gate:
session/request_permission→ an approval card in the IM thread - Mobile remote: the QR deep link carries the current session (
?session=<id>); signing in on the phone takes over the conversation
Hosting and operations
- Process hosting: Linux systemd transient unit (cgroup tree kill); Windows CIM/taskkill; external processes (hand-written unit / nohup) can be adopted into panel hosting with one click
- Outbound API: management API channel (
projects/{name}/sendfor text), attachments over socket/TCP; theaiti-im-list/aiti-im-sendagent tools use the same channel (off by default — enableagentTools.enabledin extman) - Config generation: bulk form → config.toml (merges onto the current config instead of replacing the whole file — legacy flat keys no longer clobber populated fields with empty strings; backup before write, explicit confirmation before overwrite, tokens never rotated); the System tab also has a raw config.toml editor (server-side backup before save); day-to-day work goes through the wizard
- Multi-instance: every instance has its own config/dataDir/endpoint; the default instance is protected and cannot be deleted