Two architectural cleanups that complement the bridge darwin support in
7343ae6, both opt-in / default-safe:
1) `vite.config.ts` — gate the missing-native build error behind
`SNOWLUMA_BUILD_SKIP_NATIVES=1`. Default behaviour (no env) still
throws as before, so the CI invariant "release builds must carry the
full native set" is untouched. Darwin developers without prebuilt
`websocket-darwin-arm64.node` (source lives in a separate private
build repo) can now run `SNOWLUMA_BUILD_SKIP_NATIVES=1 pnpm build`
and pair it with the runtime `SNOWLUMA_DEV_NO_NATIVE=1` stub at
`node dist/index.mjs` boot. The qq-hook path (separate addon) is
independent and unaffected.
2) `packages/core/config/.gitignore` — `runtime.json` is the only
tracked deploy-time override file in that dir; every other config
file is per-instance runtime state written by the daemon/dev server
(admin password hash, EULA consent, per-uin OneBot binding, WebUI
layout). Previously they showed up as 5 untracked files after every
`pnpm dev:mode`, polluting `git status` and risking accidental
commit of local creds via `git add -A`. Pattern: ignore everything
except `runtime.json` (and the .gitignore itself).
No code paths changed; both are operator-experience fixes for running
SnowLuma on darwin against the nnphook DYLD_INSERT hook.
17 lines
839 B
Plaintext
17 lines
839 B
Plaintext
# Per-instance runtime state written by the dev server / production daemon.
|
|
# `runtime.json` is the only tracked file (the deploy-time overrides for
|
|
# webuiPort, hookAutoLoad, etc); everything else here is operator-private:
|
|
# * webui.json — admin password hash + rotation state
|
|
# * consent.json — EULA/PRIVACY acceptance per agreement version
|
|
# * notifications.json — per-account webhook destinations
|
|
# * onebot_<uin>.json — per-uin OneBot transport binding (HTTP/WS ports etc)
|
|
# * ui.json — WebUI panel layout per operator
|
|
#
|
|
# Without this ignore file, every `pnpm dev:mode` / `node dist/index.mjs`
|
|
# leaves a 5-file untracked surface in `packages/core/config/` that pollutes
|
|
# `git status` and would accidentally commit local creds if `git add -A` is used.
|
|
|
|
*
|
|
!.gitignore
|
|
!runtime.json
|