sync update from LAN repo (source master @ 6e3f02a2)

This commit is contained in:
gozeros committed 2026-11-17 11:28:22 +08:00
1 parent 66a443e915
commit 6c25c89d93
431 files changed
+68511 -2240

No files matched your search

@@ -1,5 +1,33 @@
# CLAUDE.md
## GoView projects and templates (2026-11-10)
GoView stays a separate Vue app and talks to `/api/goview`. Projects are
owned by the logged-in user (`owner_id`); with authentication disabled they
share the single assumed user. `goview_projects` holds the card,
`goview_project_contents` holds the ChartEditStorage JSON, and list queries
do not load that JSON. `state` is `-1` or `1`. Publishing does not copy the
canvas: `GET /api/goview/project/published/{id}` returns the same content
only while `state` is `1`, and returns 404 after unpublish. That GET, plus
`GET /api/goview/assets/{name}` and `GET /api/goview/map-tiles/{style}/{z}/{x}/{y}.png`,
are the only anonymous GoView reads. `getData`, save, edit, delete, and
publish stay owner-only.
Responses use GoView's `{code: 200, msg, data, count}` envelope. Save accepts
form field `content` as a JSON string. Upload stores a sniffed PNG, JPEG,
GIF, or WEBP under `{runtime_home}/goview-assets/` with a random name.
Tiles resolve under `DEERFLOW_GOVIEW_TILE_ROOT` or
`{runtime_home}/goview-map-tiles` and reject bad style, zoom, or `..`.
Market templates are read-only for ordinary users. Builtin seeds in
`app/gateway/goview_template_seeds/` insert only when the id is missing.
Creating a project from a template deep-copies `content_json`. Migration
`20261110_02` creates the GoView tables and drops the unused visual-dashboard
tables; `20261110_03` repeats that drop for a database already stamped at
`20261110_02`. Tests:
`tests/test_goview_projects.py`, `tests/test_goview_templates.py`,
`tests/test_goview_assets.py`.
## Model-independent skill invocation attribution (2026-11-07)
Never derive skill-use UI or counters from model narration or the optional tool