mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-20 14:13:23 +00:00
* feat: rename module path cloud→ai + cloud Mount() per HIP-0106 The repo at hanzoai/ai was renamed from hanzoai/cloud on 2026-05-19. This rotates the Go module path to match so the unified cloud binary (hanzoai/cloud) can import this subsystem under its new name. Module rename: - go.mod: module github.com/hanzoai/cloud → module github.com/hanzoai/ai - 236 .go files: import github.com/hanzoai/cloud/... → github.com/hanzoai/ai/... - cloud.zap → schema/ai.zap (header + interface CloudService → interface AI) HIP-0106 Mount: - pkg/ai.Mount(*zip.App, cloud.Deps) error registers /v1/ai/* on the unified binary; the route layer strips the /v1/ai prefix and forwards to the beego ControllerRegister via zip.AdaptNetHTTP. - A SetHandler injector lets main.go publish beego.BeeApp.Handlers after route init so the in-process embed and the standalone server share the same route table; X-Org-Id call-sites stay unchanged. - schema/ai.zap describes the typed ZAP surface (chat, embeddings, knowledge / RAG, billing). * refactor(consumer): import github.com/hanzoai/iam (drop iamsdk/v2) Switch from github.com/hanzoai/iamsdk/v2/iamsdk to the canonical github.com/hanzoai/iam root package. One canonical import path for both the server and the SDK — same types, no drift. iamsdk "github.com/hanzoai/iamsdk/v2/iamsdk" → iam "github.com/hanzoai/iam" iamsdk.Claims, iamsdk.User, … → iam.Claims, iam.User, … 23 files updated across controllers/, object/, routers/, storage/, util/. go.mod: dropped iamsdk/v2 require, pinned iam to its current SHA v1.16.2-0.20260519061152-86e34e93edf3 (drops cloud+zip transitive deps via root SDK; submodule pkg/iam carries the cloud integration). Pre-existing pkgmachine/gcp.go GCP API breakage (InstancesClient relocated from computepb to apiv1 in compute v1.47+) is unaffected by this change and not in scope. * refactor: collapse pkg/ai/ → root + flatten cloud import Repo IS the package. Mount() at root. Consumers use `github.com/hanzoai/ai` (no /pkg/ai/ nesting).