• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kcl-lang / kcl-go / 36225844359
34%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2026 07:08AM UTC
Jobs 6
Files 107
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Sep 2026 07:07AM UTC coverage: 30.018% (+0.2%) from 29.852%
36225844359

push

github

web-flow
feat: add WithPluginAgent option to run KCL with a user-provided plugin agent (#598)

kcl-lang.io/lib native client already accepts a plugin agent pointer via
NewNativeServiceClientWithPluginAgent, but kcl-go only exposed the default
cgo-plugin based client through pkg/plugin.RegisterPlugin. Users bringing
their own agent (e.g. a host FFI callback) had no way to pass its pointer
to kcl.Run and friends.

- pkg/kcl: add the WithPluginAgent option, wire it into runWithHooks so
  the native service client is built with the agent when set
- pkg/native: re-export NewNativeServiceClientWithPluginAgent
- root kcl package: re-export WithPluginAgent
- pkg/internal/testpluginagent: cgo test fixture agent plus an e2e test
  running KCL code that calls a host function through the custom agent

Verified: go build ./..., go vet ./..., go test ./... (CGO_ENABLED=1 and
CGO_ENABLED=0) on darwin/arm64.

Signed-off-by: Peefy <xpf6677@163.com>

50 of 76 new or added lines in 5 files covered. (65.79%)

4989 of 16620 relevant lines covered (30.02%)

2.06 hits per line

Uncovered Changes

Lines Coverage ∆ File
22
62.71
pkg/internal/testpluginagent/agent.go
3
51.28
-1.35% kcl.go
1
87.5
-12.5% pkg/kcl/service.go
Jobs
ID Job ID Ran Files Coverage
1 36225844359.1 26 Sep 2026 07:08AM UTC 107
30.02
GitHub Action Run
2 36225844359.2 26 Sep 2026 07:08AM UTC 107
30.01
GitHub Action Run
3 36225844359.3 26 Sep 2026 07:08AM UTC 107
30.01
GitHub Action Run
4 36225844359.4 26 Sep 2026 07:08AM UTC 107
30.02
GitHub Action Run
5 36225844359.5 26 Sep 2026 07:08AM UTC 107
30.02
GitHub Action Run
6 36225844359.6 26 Sep 2026 07:09AM UTC 107
30.02
GitHub Action Run
Source Files on build 36225844359
  • Tree
  • List 107
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 91ae5a80 on github
  • Prev Build on main (#36224520972)
  • Next Build on main (#36227370376)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc