forked from router-for-me/CLIProxyAPIPlus
-
Notifications
You must be signed in to change notification settings - Fork 2
chore(imports): repair PR 942 package surfaces #943
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
Closed
KooshaPari
wants to merge
18
commits into
feat/kilo-gastown-spec-and-sast
from
cliproxyapi-plusplus/chore/pr942-import-surface-fix
Closed
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
82b4a6d
chore(imports): repair pr942 package surfaces
0397335
test(imports): reduce stacked branch path debt
27551c9
fix(translator): repair byte-buffer sjson handling
05b1684
fix(registry): dedupe static model getters and cache invalidation
74f69a1
fix(config): dedupe oauth alias defaults
a026f0d
fix(auth): restore kilo token base storage
d61c9d8
fix(util): restore sanitized tool name helpers
6a1abca
fix(access): import sdk config alias
b251c74
fix(cursor): normalize nil auth context
a53c3d1
fix(executor): merge orphaned runtime executor tests and remove drift
c0aa5b9
fix(auth): restore claude base storage and transport imports
577a97e
test(usage): point logger plugin test at v7 sdk
bc1b381
test(translator): parse claude openai responses as bytes
886d08b
chore(auth): remove unused vertex auth implementation
5f48b29
ci: add Go module caching and fix matrix syntax
1ff2028
fix(auth): restore vertex auth package stub
11d4f4b
fix(auth): add missing imports and function definitions
1da7bf1
fix(translator): add translatorcommon and fix auth imports
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 |
|---|---|---|
| @@ -1,26 +1,56 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| branches: [main, feature/*, bugfix/*, docs/*, release/*, hotfix/*] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| ci: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| go-version: ['1.21', '1.22'] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Refresh models catalog | ||
| run: | | ||
| git fetch --depth 1 https://github.com/router-for-me/models.git main | ||
| mkdir -p pkg/llmproxy/registry/models | ||
| git show FETCH_HEAD:models.json > pkg/llmproxy/registry/models/models.json | ||
| - uses: actions/setup-go@v5 | ||
|
|
||
| - name: Setup Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version: ${{ matrix.go-version }} | ||
|
|
||
| - name: Cache Go modules | ||
| uses: actions/cache@v4 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache: true | ||
| - name: Vet | ||
| run: go vet ./... | ||
| path: ~/go/pkg/mod | ||
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-go- | ||
|
|
||
| - name: Download dependencies | ||
| run: go mod download | ||
|
|
||
| - name: Build | ||
| run: go build ./... | ||
| - name: Test | ||
| run: go test ./... | ||
|
|
||
| - name: Run tests | ||
| run: go test ./... -v -race -coverprofile=coverage.out | ||
|
|
||
| - name: Upload coverage | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| files: ./coverage.out | ||
|
|
||
|
|
||
| phenotype-validate: | ||
| runs-on: ubuntu-latest | ||
| uses: KooshaPari/phenotypeActions/.github/workflows/validate-governance.yml@main |
This file was deleted.
Oops, something went wrong.
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
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
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 |
|---|---|---|
|
|
@@ -17,19 +17,19 @@ import ( | |
| "time" | ||
|
|
||
| "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" | ||
|
Comment on lines
19
to
35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The import block is not sorted according to Go conventions. Running "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" |
||
|
|
||
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.
The import block is not sorted according to Go conventions. Running
goimportswould group third-party and internal packages correctly and sort them alphabetically. This improves code readability and maintainability.