Skip to content

chore(imports): repair PR 942 package surfaces#943

Closed
KooshaPari wants to merge 18 commits intofeat/kilo-gastown-spec-and-sastfrom
cliproxyapi-plusplus/chore/pr942-import-surface-fix
Closed

chore(imports): repair PR 942 package surfaces#943
KooshaPari wants to merge 18 commits intofeat/kilo-gastown-spec-and-sastfrom
cliproxyapi-plusplus/chore/pr942-import-surface-fix

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

Summary

  • replace stale v6 and nonexistent v7 internal import paths with current module surfaces
  • fix remaining cmd/server, cursor proto, and auth import drift so package resolution succeeds again
  • keep broader translator, registry, config, and auth compile debt out of this lane

Validation

  • go list ./...
  • go test ./cliproxyctl ./pkg/llmproxy/cmd ./sdk/auth ./cmd/server # still fails on pre-existing repo debt outside this lane

Co-authored-by: Codex <noreply@openai.com>
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses critical package resolution failures caused by stale and incorrect import paths. By updating these references to the current module structure, the changes restore the project's ability to build successfully, while intentionally avoiding broader refactoring of existing technical debt in other areas of the codebase.

Highlights

  • Import Path Refactoring: Replaced stale v6 and non-existent v7 internal import paths with the correct, current module surfaces to resolve package resolution issues.
  • Dependency Cleanup: Fixed import drift across various components including cmd/server, cursor proto, and authentication modules to ensure successful compilation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the project from version 6 to 7, updates module paths, and moves several internal packages to the pkg/llmproxy directory. Feedback was provided regarding unsorted import blocks in several files, which should be organized according to Go conventions to improve maintainability and readability.

Comment on lines +28 to 33
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/logging"
sdkauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
"github.com/kooshapari/CLIProxyAPI/v7/sdk/proxyutil"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

The import block is not sorted according to Go conventions. Running goimports would group third-party and internal packages correctly and sort them alphabetically. This improves code readability and maintainability.

log "github.com/sirupsen/logrus"
	"github.com/tidwall/gjson"

	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/logging"
	sdkauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/auth"
	coreauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
	"github.com/kooshapari/CLIProxyAPI/v7/sdk/proxyutil"

Comment thread cmd/server/main.go
Comment on lines 19 to 35
"github.com/joho/godotenv"
configaccess "github.com/kooshapari/CLIProxyAPI/v7/internal/access/config_access"
"github.com/kooshapari/CLIProxyAPI/v7/internal/auth/kiro"
"github.com/kooshapari/CLIProxyAPI/v7/internal/buildinfo"
"github.com/kooshapari/CLIProxyAPI/v7/internal/cmd"
"github.com/kooshapari/CLIProxyAPI/v7/internal/config"
"github.com/kooshapari/CLIProxyAPI/v7/internal/logging"
"github.com/kooshapari/CLIProxyAPI/v7/internal/managementasset"
"github.com/kooshapari/CLIProxyAPI/v7/internal/misc"
"github.com/kooshapari/CLIProxyAPI/v7/internal/store"
_ "github.com/kooshapari/CLIProxyAPI/v7/internal/translator"
"github.com/kooshapari/CLIProxyAPI/v7/internal/tui"
"github.com/kooshapari/CLIProxyAPI/v7/internal/usage"
"github.com/kooshapari/CLIProxyAPI/v7/internal/util"
configaccess "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/access/config_access"
kiro "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/auth/kiro"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/buildinfo"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/cmd"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/logging"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/managementasset"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/misc"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/store"
_ "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/translator"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/tui"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/usage"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/util"
sdkAuth "github.com/kooshapari/CLIProxyAPI/v7/sdk/auth"
coreauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
log "github.com/sirupsen/logrus"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

The import block is not sorted according to Go conventions. Running goimports would group third-party and internal packages correctly and sort them alphabetically. This improves code readability and maintainability.

	"github.com/joho/godotenv"
	log "github.com/sirupsen/logrus"

	configaccess "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/access/config_access"
	kiro "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/auth/kiro"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/buildinfo"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/cmd"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/logging"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/managementasset"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/misc"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/store"
	_ "github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/translator"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/tui"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/usage"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/util"
	sdkAuth "github.com/kooshapari/CLIProxyAPI/v7/sdk/auth"
	coreauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"

Comment on lines 19 to 29
"github.com/google/uuid"
cursorauth "github.com/router-for-me/CLIProxyAPI/v6/internal/auth/cursor"
cursorproto "github.com/router-for-me/CLIProxyAPI/v6/internal/auth/cursor/proto"
"github.com/router-for-me/CLIProxyAPI/v6/internal/config"
"github.com/router-for-me/CLIProxyAPI/v6/internal/registry"
cliproxyauth "github.com/router-for-me/CLIProxyAPI/v6/sdk/cliproxy/auth"
cliproxyexecutor "github.com/router-for-me/CLIProxyAPI/v6/sdk/cliproxy/executor"
sdktranslator "github.com/router-for-me/CLIProxyAPI/v6/sdk/translator"
cursorauth "github.com/kooshapari/CLIProxyAPI/v7/internal/auth/cursor"
cursorproto "github.com/kooshapari/CLIProxyAPI/v7/internal/auth/cursor/proto"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/registry"
cliproxyauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
cliproxyexecutor "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/executor"
sdktranslator "github.com/kooshapari/CLIProxyAPI/v7/sdk/translator"
log "github.com/sirupsen/logrus"
"github.com/tidwall/gjson"
"golang.org/x/net/http2"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

The import block is not sorted according to Go conventions. Running goimports would group third-party and internal packages correctly and sort them alphabetically. This improves code readability and maintainability.

	"github.com/google/uuid"
	log "github.com/sirupsen/logrus"
	"github.com/tidwall/gjson"
	"golang.org/x/net/http2"

	cursorauth "github.com/kooshapari/CLIProxyAPI/v7/internal/auth/cursor"
	cursorproto "github.com/kooshapari/CLIProxyAPI/v7/internal/auth/cursor/proto"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/registry"
	cliproxyauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
	cliproxyexecutor "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/executor"
	sdktranslator "github.com/kooshapari/CLIProxyAPI/v7/sdk/translator"

Comment on lines +15 to 23
"github.com/kooshapari/CLIProxyAPI/v7/internal/auth/gitlab"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/registry"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/thinking"
"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/util"
cliproxyauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
cliproxyexecutor "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/executor"
sdktranslator "github.com/kooshapari/CLIProxyAPI/v7/sdk/translator"
"github.com/tidwall/gjson"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

The import block is not sorted according to Go conventions. Running goimports would group third-party and internal packages correctly and sort them alphabetically. This improves code readability and maintainability.

	"github.com/tidwall/gjson"

	"github.com/kooshapari/CLIProxyAPI/v7/internal/auth/gitlab"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/config"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/registry"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/thinking"
	"github.com/kooshapari/CLIProxyAPI/v7/pkg/llmproxy/util"
	cliproxyauth "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/auth"
	cliproxyexecutor "github.com/kooshapari/CLIProxyAPI/v7/sdk/cliproxy/executor"
	sdktranslator "github.com/kooshapari/CLIProxyAPI/v7/sdk/translator"

Co-authored-by: Codex <noreply@openai.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 2, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3b301c56-161c-4f10-b9b1-d413c33e133d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cliproxyapi-plusplus/chore/pr942-import-surface-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Forge and others added 16 commits April 2, 2026 06:47
Co-authored-by: Codex <noreply@openai.com>
Remove duplicated registry model getters from the hand-maintained file, keep the generated static-data file as the source of truth, restore the missing test helper, and invalidate availability snapshots on suspend/resume.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
The pkg/llmproxy/runtime/executor/ directory contained test files
with no corresponding implementations, causing test failures and
import confusion.

Changes:
- Added missing extractAndRemoveBetas() helper function to
  claude_executor_betas_test.go (was in runtime/executor version)
- Fixed test expectations to match correct implementation behavior:
  - TestExtractAndRemoveBetas_ParsesCommaSeparatedString: expects 3 betas
  - TestExtractAndRemoveBetas_IgnoresMalformedItems: expects 1 beta
- Removed orphaned runtime/executor/ directory entirely

This consolidates all executor tests in pkg/llmproxy/executor/ where
they belong alongside their implementations.

Validation: gofmt passes, syntax verified
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Delete pkg/llmproxy/auth/vertex/ directory containing unused
vertex credential management code.
- Add actions/cache@v4 for Go modules to prevent timeout
- Fix go-version matrix syntax
- Keep models catalog refresh step from PR
Restore pkg/llmproxy/auth/vertex/ package that was deleted but is
still imported by:
- pkg/llmproxy/api/handlers/management/vertex_import.go
- pkg/llmproxy/cmd/vertex_import.go
- pkg/llmproxy/executor/gemini_vertex_executor.go

This stub provides minimal validation functionality. Full implementation
needed for production use.
- Add missing llmproxy/auth/base import to codex, copilot, iflow, kimi token files
- Add missing GetKiroAPIEndpointFromProfileArn function to kiro/aws_auth.go
- Fixes go vet undefined: base errors
- Fixes go vet undefined: GetKiroAPIEndpointFromProfileArn error
- Add translatorcommon package for shared translator utilities
- Fix undefined base in auth token files (empty, kiro)
- Fix undefined translatorcommon in antigravity translator
- Fix undefined log in antigravity files
@KooshaPari KooshaPari deleted the branch feat/kilo-gastown-spec-and-sast April 3, 2026 01:28
@KooshaPari KooshaPari closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant