chore(imports): repair PR 942 package surfaces#943
chore(imports): repair PR 942 package surfaces#943KooshaPari wants to merge 18 commits intofeat/kilo-gastown-spec-and-sastfrom
Conversation
Co-authored-by: Codex <noreply@openai.com>
Summary of ChangesHello, 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
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
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.
| "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" |
There was a problem hiding this comment.
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"| "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" |
There was a problem hiding this comment.
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"| "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" |
There was a problem hiding this comment.
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"| "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" |
There was a problem hiding this comment.
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>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note
|
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
Summary
Validation