kimi-code/packages/server/src
Haozhe ceb27f5e44
Some checks are pending
CI / build (push) Waiting to run
CI / test (push) Waiting to run
CI / test-windows (push) Waiting to run
CI / lint (push) Waiting to run
CI / typecheck (push) Waiting to run
Nix Build / Check flake.nix workspace sync (push) Waiting to run
Nix Build / nix build .#kimi-code (push) Blocked by required conditions
Release / Deploy docs (push) Blocked by required conditions
Release / Native release artifact (push) Blocked by required conditions
Release / Publish native release assets (push) Blocked by required conditions
Release / Release (push) Waiting to run
feat(server): add GUI store API mirroring localStorage (#1231)
* feat(server): add GUI store API mirroring localStorage

- add /api/v1/gui/store/* endpoints (getItem/setItem/removeItem/clear/length) mirroring the browser localStorage interface
- add IGuiStoreService persisting opaque string values to ~/.kimi-code/gui.toml via smol-toml with atomic writes and an in-process write lock
- wire protocol schema, service, routes, and DI registration; add e2e tests and update the API surface snapshot

* chore: add changeset for gui store api

* fix(server): harden GUI store key handling and file permissions

- use a null-prototype record and an own-property check so keys that exist on Object.prototype (toString, constructor, __proto__) behave like ordinary keys
- write gui.toml with 0600 permissions so unsent drafts and input history stay private to the owning user
2026-06-30 21:04:59 +08:00
..
lib feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
middleware feat(server): add --allowed-host flag for DNS-rebinding allowlist (#1128) 2026-06-26 17:06:01 +08:00
openapi feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
routes feat(server): add GUI store API mirroring localStorage (#1231) 2026-06-30 21:04:59 +08:00
services feat(server): add GUI store API mirroring localStorage (#1231) 2026-06-30 21:04:59 +08:00
svc feat(server): make --host opt-in for LAN binding (#1105) 2026-06-25 22:13:13 +08:00
ws feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
envelope.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
error-handler.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
index.ts feat(server): add bearer-token auth and safe host exposure (#1006) 2026-06-25 17:57:56 +08:00
lock.ts feat(server): add bearer-token auth and safe host exposure (#1006) 2026-06-25 17:57:56 +08:00
request-id.ts feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
start.ts feat(server): auto-refresh provider model catalog and push change events (#1207) 2026-06-30 12:29:10 +08:00
version.ts feat(server): report host kimi-code CLI version in /meta (#879) 2026-06-18 14:39:24 +08:00