Provider /models listings that return bare ids (OpenAI-style) get context windows, thinking levels, image support, and display names from models.dev: kigi-models owns the transform (parse_api_json — ONE field interpretation for the bundled snapshot AND runtime refreshes), enrich_wire_model fills gaps with wire values always winning and model availability strictly wire-truth. Spec rows gained models_dev_id + wire_serves_metadata; all three current platforms are wire-served, so this pipeline is provably inert for them (byte-identical catalogs, zero egress, zero ~/.kigi writes — adversarially verified). Shell side: enrichment_fetch with a 24h disk cache guarded by binary version + keep-set + future-stamp sanity (a registry change or downgrade refetches instead of serving a catalog missing new providers), refresh of https://models.dev/api.json filtered to registry ids, KIGI_MODELS_DEV_URL override with case/whitespace-tolerant kill switch, fallback chain fresh-cache > refresh > stale-cache > bundled (each step logged). The fast path returns an empty catalog without forcing the bundled parse. From the review: blast-radius-confined parsing (one drifted provider on models.dev warn-skips instead of failing the whole refresh), registry- coverage and field-coverage tests guarding script/parser drift, a path- injectable core with 8 state-machine tests (one of which caught a guard patch that had failed to apply), _meta provenance stamp in the snapshot, and models.dev (MIT) attribution in NOTICE. Snapshot: 29 providers, 1124 models, 246KB, regenerated by scripts/gen_enrichment_snapshot.py (pure filter, no transform).
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
Kigi — unofficial Kimi Code CLI community build
|
|
Copyright 2026 the Kigi contributors
|
|
|
|
This product is based on Grok Build (https://github.com/xai-org/grok-build),
|
|
Copyright 2025-2026 X.AI Corp., licensed under the Apache License, Version 2.0.
|
|
|
|
Modifications relative to the upstream work (Apache License 2.0 §4(b) notice):
|
|
- All `xai-*`/`xai-grok-*` crates renamed into the `kigi-*` namespace; the
|
|
binary is `kigi`, the config directory is `~/.kigi`, and environment
|
|
variables use the `KIGI_*` prefix.
|
|
- xAI/Grok service integrations removed or replaced: telemetry (Mixpanel,
|
|
OpenTelemetry export, Sentry, trace upload), voice input, announcements,
|
|
plugin marketplace, remote relay/gateway services, and the xAI OAuth and
|
|
subscription-proxy endpoints.
|
|
- Endpoints re-targeted at the Kimi Code subscription API
|
|
(api.kimi.com/coding/v1), the Moonshot open platform (api.moonshot.cn/v1,
|
|
api.moonshot.ai/v1), and GitHub Releases for self-update.
|
|
|
|
This product includes code ported from openai/codex and sst/opencode; see
|
|
crates/codegen/kigi-tools/THIRD_PARTY_NOTICES.md for the license terms and
|
|
the per-file change notices.
|
|
|
|
This product bundles model metadata derived from models.dev
|
|
(https://github.com/sst/models.dev, MIT License) as
|
|
crates/codegen/kigi-models/enrichment_snapshot.json, and may refresh it
|
|
from https://models.dev/api.json at runtime.
|