Documentation
¶
Overview ¶
Command codebuddy builds the CPA c-shared plugin library for CodeBuddy.
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/codebuddy` (see scripts/build.sh) emit the shared object directly from this directory.
Package main is the CPA native plugin adapter for the Tencent CodeBuddy / WorkBuddy product family.
One CPA plugin key (`codebuddy`) serves four Jet-Hub products, selected by the `product` setting; see config.go for the product table and the endpoints each one uses. The method surface mirrors plugins/codearts (the reference implementation): auth, model, executor, translate, quota and management.