32 Commits
Author SHA1 Message Date
renovate[bot]andGitHub 65501b046e Update aws-sdk-go-v2 monorepo (#8800) 2026-07-27 06:21:31 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
3bb4cd84dc Update module google.golang.org/grpc to v1.82.1 (#8733)
* Update module google.golang.org/grpc to v1.82.1

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 08:22:40 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bedc104d0b Update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.105.2 (#8729)
* Update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.105.2

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-20 07:26:40 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
a4257efc0e Update aws-sdk-go-v2 monorepo (#8525)
* Update aws-sdk-go-v2 monorepo

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 14:21:38 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fa6133f3ee Update module google.golang.org/grpc to v1.82.0 (#8511)
* Update module google.golang.org/grpc to v1.82.0

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:54:25 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
8bd9342e68 Update module golang.org/x/sys to v0.47.0 (#8510)
* Update module golang.org/x/sys to v0.47.0

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 08:26:24 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
33d963488b Update go toolchain directive to v1.26.5 (#8501)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-13 08:06:28 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ee74455b57 Update aws-sdk-go-v2 monorepo (#8495)
* Update aws-sdk-go-v2 monorepo

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-13 07:30:58 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
54f0b5442a Update go toolchain directive to v1.26.4 (#7157)
* Update go toolchain directive to v1.26.4

* Update generated Go artifacts

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-12 09:24:57 -07:00
adminandGitHub e4c04401e1 Update Go AWS indirect modules (#7132) 2026-06-12 06:44:39 -07:00
adminandGitHub 6f7fb78b07 Update Go genproto modules (#7131) 2026-06-12 06:40:37 -07:00
adminandGitHub 1099afbbf9 Update Go gRPC module (#7127) 2026-06-12 06:34:53 -07:00
adminandGitHub 9607e1da0b Update Go AWS SDK modules (#7126) 2026-06-12 06:34:40 -07:00
adminandGitHub a7d9ed77b1 Update Go x/net dependency to 0.56.0 (#7116) 2026-06-11 16:58:57 -07:00
adminandGitHub 77fff06a1d Update Go x/text dependency to 0.38.0 (#7114) 2026-06-11 16:36:59 -07:00
adminandGitHub 4c04964e4d Update Go x/sys dependency to 0.46.0 (#7113) 2026-06-11 16:15:56 -07:00
adminandGitHub b6f3a536aa Update Go JWT dependency to 5.3.1 (#7111) 2026-06-11 16:12:20 -07:00
adminandGitHub 45565f9544 Update Go protobuf to 1.36.11 (#7110) 2026-06-11 16:11:42 -07:00
adminandGitHub d9452bd763 Update Go Bazel rules (#7017) 2026-06-10 07:19:01 -07:00
be48f54f2c Update golang.org/x/sys from v0.28.0 to v0.30.0 (#6314)
Match the version that Gazelle's MVS already resolved transitively,
silencing the "implicitly updated to higher versions" debug warning.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 14:52:22 -08:00
04928f0e2c Register eagle0:// URL scheme on Windows for OAuth deep links (#5609)
* Register eagle0:// URL scheme on Windows for OAuth deep links

The Windows installer now registers the eagle0:// URL scheme in the
registry (HKEY_CURRENT_USER\Software\Classes\eagle0) pointing to the
game executable. This allows OAuth callbacks to redirect back to the
app automatically.

Also updated OAuthManager to check command line arguments for deep
links since Windows passes URL scheme launches as command line args.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add golang.org/x/sys dependency for Windows registry access

The Windows installer uses golang.org/x/sys/windows/registry to register
the eagle0:// URL scheme. This adds the required dependency to go.mod,
go.sum, and MODULE.bazel.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 18:32:39 -08:00
12bd6a78b1 Add WebView GUI to Windows installer (#5532)
* Add WebView GUI to Windows installer

Adds a native GUI window to the Windows installer using the webview
library which embeds Microsoft Edge WebView2. The installer now shows
a modern HTML/CSS/JS interface with progress bar and status updates.

Key changes:
- Add llvm-mingw toolchain for macOS → Windows CGO cross-compilation
- Add webview_go dependency for WebView2 integration
- Create UIInterface abstraction with ConsoleUI and WebViewUI impls
- Build tags select stub (non-Windows/non-CGO) vs real WebView impl
- Genrule handles CGO cross-compilation within Bazel sandbox

Build targets:
- eagle_installer_windows_amd64: Pure Go console version (5.8 MB)
- eagle_installer_windows_amd64_webview: CGO WebView GUI (13.7 MB)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix WebView genrule to use Bazel Go SDK

The CI doesn't have Go in PATH, so the genrule needs to use Bazel's
Go SDK explicitly. This change:

- Exposes @go_default_sdk via use_repo in MODULE.bazel
- Adds @go_default_sdk//:files as a srcs dependency to the genrule
- Uses absolute paths for GO and GOROOT so they work after cd
- Filters out Go SDK files when copying source files
- Updates go.mod version to 1.23 to match the Bazel SDK

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 19:36:21 -08:00
23d2cb3968 Extract OAuth to Go service (Phase 1) (#4980)
* Extract OAuth to Go service (Phase 1)

Move OAuth authentication handling from Eagle Scala server into a separate Go
service running in its own container. This simplifies Eagle, enables independent
deployment, and sets up for future JWT validation extraction.

Architecture:
- Go auth service handles OAuth flows, JWT creation, state management
- Eagle proxies Auth gRPC calls to Go service when configured
- Go service calls Eagle's InternalUserService for user persistence
- Shared JWT keys via volume mount

New files:
- src/main/go/net/eagle0/authservice/ - Go auth service
- auth_internal.proto - Internal gRPC for Go→Eagle communication
- InternalUserServiceImpl.scala - User service wrapper for internal gRPC
- ExternalAuthClient.scala - Client for forwarding to Go service

Backward compatible: Eagle runs in standalone mode without --auth-service-url

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Add unit tests for Go auth service

- jwt_test.go: Tests for JWT token creation, validation, and refresh
- oauth_test.go: Tests for OAuth state management and status checking

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 07:32:02 -08:00
54bdefd75c Add Go admin server for Eagle game management (#4600)
* Add Go admin server for Eagle game management

- Add GetRunningGames and GetGameHistory RPC endpoints to eagle.proto
- Implement admin methods in EagleServiceImpl.scala
- Create Go HTTP admin server at src/main/go/net/eagle0/admin_server/
- Add gRPC dependency to go.mod and MODULE.bazel
- Fix Go proto compilation with gazelle-compatible '# keep' directives:
  - api_go_proto uses go_grpc (not go_grpc_v2) to generate message types
  - common_go_proto uses go_proto and excludes shardok_internal_interface_proto
  - admin_server_lib keeps proto dependency that gazelle doesn't detect

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Use hex format for game IDs in admin server

- /games endpoint returns game_id in hex format
- /games/{id}/history expects game ID in hex format

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix hex game ID format and restore full game info

- Use unsigned hex format (uint64 cast) to avoid negative values
- Restore all RunningGameInfo fields: current_round, action_count, players, run_status
- Include full player info: faction_id, faction_name, leader_name, is_human, user_name

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix hex game ID parsing for large unsigned values

Use ParseUint instead of ParseInt to handle game IDs that exceed
max signed int64 when represented as unsigned hex.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-30 19:19:00 -08:00
adminandGitHub cdea1418e6 Name generator function on DO (#4107)
* add the DO funciton

* working test

* tests pass

* first passing insideBalanced

* import go-cmp

* oneof working

* optional support

* ordinal working

* substitution tokens

* larger test

* nested passing

* quotes working correctly

* test passes

* import paths

* use an interface instead of the whole Rand v2

* go.mod

* old rand

* name generator function works on DO

* more unicode bugs
2025-05-11 17:28:32 -07:00
adminandGitHub aec0481e43 Upload game assets to DigitalOcean too (#4056)
* upload the game assets to DOS too

* unused deps

* handle missing manifest and read keys from config

* build and upload unity build on pull request

* try reading from env variable

* bypass

* just look at lengths

* bad env name

* restore the build

* but not on PRs

* Put S3 info into config file and point it to DigitalOcean
2025-03-22 21:39:21 -07:00
adminandGitHub a533dbfc34 Rewrite hex map json converter in golang and remove the scala version (#3916)
* add the protobuf imports and parse a HexMap

* maybe working

* use the new golang version and delete the scala version
2025-01-15 09:19:04 -08:00
adminandGitHub 5c606d24b0 Rewrite the windows build handler in Golang (#3909)
* add the deps

* getting there with the s3 deps

* seems to be working

* remove the prints

* clean up unused imports

* use the new script

* delete the python file

* do the build

* not pull requests

* what
2025-01-13 19:48:53 -08:00
adminandGitHub d9bde81941 set the module correctly (#3908) 2025-01-13 17:18:59 -08:00
adminandGitHub d572d2e8e5 Reenable go support, but with protobuf disabled (#3815)
* Revert "Revert "Go support (#3807)" (#3810)"

This reverts commit b1183e5e08.

* disable protos

* add a comment
2024-11-30 07:32:58 -08:00
adminandGitHub b1183e5e08 Revert "Go support (#3807)" (#3810)
This reverts commit a740291b40.
2024-11-29 14:42:04 -08:00
adminandGitHub a740291b40 Go support (#3807)
* what are these changes for

* add Golang support and run gazelle

* add a go binary

* still trying

* builds without nogo
2024-11-29 09:25:22 -08:00