Documentation
¶
Overview ¶
Command lobsterai builds the CPA c-shared plugin library for LobsterAI.
Both files in this directory are package main: main.go carries the exported cgo ABI and plugin.go carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/lobsterai` (see scripts/build.sh) emit the shared object directly from this directory.
Package main is the CPA native plugin adapter for LobsterAI (有道 LobsterAI).
Both files in this directory are package main: main.go carries the exported cgo ABI and this file carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/lobsterai` emit the shared object directly from this directory.
LobsterAI is not part of the Tencent CodeBuddy family: it has its own login flow (loopback callback + authCode exchange), its own header set (Bearer + X-LobsterAI-Client-*), its own renewal payload (refreshToken plus a keyfrom identity block), its own check-in protocol and its own client version source. Ported from jethub-src/src/lobsterai*.ts; see docs/PORTING.md §6.