-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
feat(plugin): add API-key Kiro provider #4816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wangyedev
wants to merge
20
commits into
router-for-me:dev
Choose a base branch
from
wangyedev:codex/kiro-provider-upstream
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ddf04f3
feat(plugin): add Kiro provider
12b289e
fix(pluginhost): handle executor streaming and usage
09f5355
docs(plugin): note translator compatibility dependency
c826e41
fix(plugin): address Kiro review feedback
ac0ff17
docs(plugin): add Kiro client setup guide
c1af02e
fix(plugin): address follow-up review feedback
5cb7bde
fix(plugin): address additional review feedback
27913ef
fix(plugin): address latest review feedback
eaa59db
fix(plugin): close remaining review gaps
0daef8a
fix(plugin): finalize Kiro review edge cases
e220811
fix(plugin): address latest review feedback
828ffda
fix(plugin): support Claude assistant prefills
0f4621e
deploy(gcp): add Cloud Run container configuration
020f69d
fix(plugin): address Kiro review constraints
af3d873
fix(pluginhost): preserve auth HTTP client in callbacks
f11a111
fix(plugin): reject unsupported URL images
wangyedev ba9e808
fix(plugin): distinguish dated Claude snapshots
wangyedev fb390c5
fix(plugin): correct Kiro usage and proxy handling
wangyedev e99dc77
fix(plugin): align Kiro model discovery with Kiro-Go
3414685
fix(compose): restore default auth directory mount
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| .git | ||
| .github | ||
| .agents | ||
| .codex | ||
| .claude | ||
| .gemini | ||
| .idea | ||
| .vscode | ||
| .worktrees | ||
|
|
||
| .env | ||
| config.yaml | ||
| auths | ||
| logs | ||
| conv | ||
| pgstore | ||
| gitstore | ||
| objectstore | ||
| plugins | ||
| static | ||
| temp | ||
| refs | ||
|
|
||
| bin | ||
| examples/plugin/bin | ||
| *.exe | ||
| cli-proxy-api | ||
| test-output | ||
|
|
||
| Dockerfile | ||
| docker-compose.yml | ||
| docker-compose.cluster.yml | ||
| .dockerignore | ||
| .containerignore | ||
| .gitignore | ||
| .goreleaser.yml | ||
|
|
||
| docs | ||
| README.md | ||
| README_CN.md | ||
| README_JA.md | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| GEMINI.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| FROM golang:1.26-bookworm AS builder | ||
|
|
||
| WORKDIR /src | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends build-essential git \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| COPY . . | ||
|
|
||
| ARG VERSION=dev | ||
| ARG COMMIT=none | ||
| ARG BUILD_DATE=unknown | ||
|
|
||
| RUN CGO_ENABLED=1 GOOS=linux go build \ | ||
| -buildvcs=false \ | ||
| -ldflags="-s -w -X 'main.Version=${VERSION}' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" \ | ||
| -o /out/CLIProxyAPI \ | ||
| ./cmd/server/ | ||
|
|
||
| RUN plugin_arch="$(go env GOARCH)" \ | ||
| && plugin_dir="/out/plugins/linux/${plugin_arch}" \ | ||
| && mkdir -p "${plugin_dir}" \ | ||
| && cd examples/plugin/kiro/go \ | ||
| && CGO_ENABLED=1 GOOS=linux go build \ | ||
| -buildmode=c-shared \ | ||
| -o "${plugin_dir}/kiro-go.so" \ | ||
| . \ | ||
| && rm -f "${plugin_dir}/kiro-go.h" | ||
|
|
||
| FROM debian:bookworm-slim | ||
|
|
||
| RUN apt-get update \ | ||
| && apt-get install -y --no-install-recommends ca-certificates tzdata \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && mkdir -p /CLIProxyAPI | ||
|
|
||
| COPY --from=builder /out/CLIProxyAPI /CLIProxyAPI/CLIProxyAPI | ||
| COPY --from=builder /out/plugins /CLIProxyAPI/plugins | ||
| COPY config.example.yaml /CLIProxyAPI/config.example.yaml | ||
|
|
||
| WORKDIR /CLIProxyAPI | ||
|
|
||
| EXPOSE 8317 | ||
|
|
||
| ENV TZ=UTC | ||
|
|
||
| CMD ["./CLIProxyAPI"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| host: "" | ||
| port: 8317 | ||
|
|
||
| tls: | ||
| enable: false | ||
| cert: "" | ||
| key: "" | ||
|
|
||
| remote-management: | ||
| allow-remote: false | ||
| secret-key: "" | ||
| disable-control-panel: true | ||
| disable-auto-update-panel: true | ||
|
|
||
| auth-dir: "/root/.cli-proxy-api" | ||
|
|
||
| api-keys: | ||
| - "__CLIPROXY_API_KEY__" | ||
|
|
||
| debug: false | ||
|
|
||
| pprof: | ||
| enable: false | ||
| addr: "127.0.0.1:8316" | ||
|
|
||
| commercial-mode: false | ||
| logging-to-file: false | ||
| request-log: false | ||
| usage-statistics-enabled: false | ||
| passthrough-headers: false | ||
|
|
||
| request-retry: 3 | ||
| max-retry-credentials: 0 | ||
| max-retry-interval: 30 | ||
| disable-cooling: false | ||
| save-cooldown-status: false | ||
|
|
||
| streaming: | ||
| keepalive-seconds: 15 | ||
| bootstrap-retries: 1 | ||
|
|
||
| routing: | ||
| strategy: "round-robin" | ||
| session-affinity: true | ||
| session-affinity-ttl: "1h" | ||
|
|
||
| plugins: | ||
| enabled: true | ||
| dir: "plugins" | ||
| configs: | ||
| kiro-go: | ||
| enabled: true | ||
| priority: 1 | ||
| models: | ||
| - "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding Kiro to this Makefile target exposes it to the existing Go pattern rule, whose prerequisites include only
kiro/go/main.goandkiro/go/go.mod. Because this plugin's implementation is split across many additional.gofiles, editing files such astranslate.go,auth.go, orexecutor.goafter the first build leavesbin/kiro-go.soconsidered up to date, somake build-kirosilently serves a stale plugin. Include all package Go sources in the target dependencies.Useful? React with 👍 / 👎.