Files
zip/runtime/runtime.go
T
zeekay c581e0af7b feat: zip canonical home — the ZAP-native web framework, consolidated
zip is shared protocol infra (the fiber-over-ZAP web framework used by every
Lux/Hanzo/Zoo Go binary — nodes, gateway, cloud, iam, kms, o11y, ai, …), so its
home is the ZAP protocol family (zap-proto/{go,http,zapd,zip}), NOT any one org's
brand namespace. This consolidates the rich framework (formerly hanzoai/zip v0.5.0
— Ctx/Handler/Errorf/Err*/HTTPError, typed handlers, middleware, runtime/extension
loading, openapi, validate, zaprpc) with the real ZAP transport (ListenZAP/
ListenHTTP/Serve over zap-proto/http) into ONE canonical module.

Module path github.com/hanzoai/zip -> github.com/zap-proto/zip. Code identical to
hanzoai/zip v0.5.0; promoted to v1.0.0 as the stable shared-infra framework. The
prior hanzoai/zip lineage is retired — one home, one import path, one way.

Verified: go build/vet/test ./... green; the ZAP round-trip integration test serves
/v1/health over the real ZAP transport (200 + handler JSON).
2026-07-01 23:08:35 -07:00

17 lines
642 B
Go

// Package runtime is the zip-side projection of HIP-0105's extension
// runtime contract. Consumers of zip pass a Loader implementation here
// (typically *extruntime.Loader from hanzoai/base/plugins/extruntime)
// and zip mounts modules as routes via app.Module().
package runtime
import internal "github.com/zap-proto/zip/internal/runtime"
// Loader is re-exported from internal/runtime for ergonomic use:
//
// loader := myextruntime.NewLoader(...) // implements zipruntime.Loader
// app := zip.New(zip.Config{Loader: loader})
type Loader = internal.Loader
// Module is re-exported from internal/runtime.
type Module = internal.Module