diff --git a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix Project – Glossary of Key Terms.md b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix Project – Glossary of Key Terms.md deleted file mode 100644 index 4e2b29a..0000000 --- a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix Project – Glossary of Key Terms.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: Metrix Project – Glossary of Key Terms -type: curated -permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/metrix-project-glossary-of-key-terms -stable_id: 6c3351ae-506f-4059-a23d-6937503b9b73 -scope: project -project_id: d5a7f581-c442-4554-87b9-ee723b8b0258 -workspace_type: development -usage_profile_id: null -preference_context: development -document_type: glossary -revision: 1 -source_memory_ids: [] -source_checkpoint_ids: [] -source_file_ids: [] -source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2 -source_git_commits: -- e660bc7bb4fc5ccda47decb4d514874a148ed9b2 -source_agent_sync_ids: [] -model_connection: Sub2API -model_name: git-restore -source_count: 29 -source_revisions: {} -source_dispositions: - processed: 29 - unchanged: 0 - unsupported: 0 - skipped: 0 -cited_source_ids: -- git:server/app/core/permissions.py -- git:server/app/core/security.py -- git:server/app/main.py -- git:packaging/README.md -- git:packaging/pypiserver/Dockerfile -job_cited_source_ids: [] -conflicts: [] -supersedes: [] -preferences: [] -source_cursor: 162 -source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218 -prompt_version: 2026-08-12.3 -schema_version: '3' -curation_job_id: null -created_at: '2026-08-19T02:32:21.717909+00:00' -updated_at: '2026-09-23T15:09:19.074756+00:00' -tags: -- glossary -- terms -restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2 ---- - -## Glossary (derived from architecture and decisions) - -- **API Gateway / FastAPI Core** – The entry point of the backend, implemented in `git:server/app/main.py`. Provides OpenAPI spec, CORS handling and SPA fallback. -- **APP_MODULE** – Objects discovered by the Module Registry (`modules/registry.py`) that register routes, permissions and UI pages. -- **Action‑based RBAC** – Permission model where actions (e.g., `container:start`) are granted; navigation is inferred from any granted action (`action:* → read`). -- **Shiki** – High‑performance syntax highlighter used in the editor; theme synchronization with UI dark/light mode is a pending task. -- **Vaultwarden** – Self‑hosted password manager consulted for all credential look‑ups before any external connection. -- **KISS / YAGNI** – Development principles mandated for the project (keep it simple, you aren’t gonna need it). -- **CAPACITYREPORT** – Independent sub‑module delivering reporting UI; runs in its own Docker image and database. -- **INTERFERENCEETL** – ETL sub‑module that performs neighbour‑cell interference analysis; includes schedule cron‑editor. -- **PYPI SERVER** – Internal `pypiserver` container used to host offline Python wheels. -- **Cron‑editor** – UI component that allows visual editing of cron expressions for scheduled jobs. -- **FULLTEXT Index** – MySQL index type enabling keyword search in audit logs (high‑priority open work). \ No newline at end of file diff --git a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix 源码一致的术语表.md b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix 源码一致的术语表.md new file mode 100644 index 0000000..38ecd71 --- /dev/null +++ b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/Metrix 源码一致的术语表.md @@ -0,0 +1,66 @@ +--- +title: Metrix 源码一致的术语表 +type: curated +permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/metrix-源码一致的术语表 +stable_id: 6c3351ae-506f-4059-a23d-6937503b9b73 +scope: project +project_id: d5a7f581-c442-4554-87b9-ee723b8b0258 +workspace_type: development +usage_profile_id: null +preference_context: development +document_type: glossary +revision: 2 +source_memory_ids: [] +source_checkpoint_ids: [] +source_file_ids: [] +source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2 +source_git_commits: +- e660bc7bb4fc5ccda47decb4d514874a148ed9b2 +source_agent_sync_ids: [] +model_connection: Sub2API +model_name: manual +source_count: 29 +source_revisions: {} +source_dispositions: + processed: 29 + unchanged: 0 + unsupported: 0 + skipped: 0 +cited_source_ids: +- git:server/app/core/permissions.py +- git:server/app/core/security.py +- git:server/app/main.py +- git:packaging/README.md +- git:packaging/pypiserver/Dockerfile +job_cited_source_ids: [] +conflicts: [] +supersedes: [] +preferences: [] +source_cursor: 162 +source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218 +prompt_version: 2026-08-12.3 +schema_version: '3' +curation_job_id: null +created_at: '2026-09-23T15:09:21.161919+00:00' +updated_at: '2026-10-08T07:05:12.202546+00:00' +tags: +- curated +- manual +restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2 +--- + +# Metrix 术语 + +APP_MODULE:后端模块元数据,声明router、model、权限、迁移和生命周期;前端对应index.ts模块声明页面菜单,两边分别自动发现。 +action RBAC:权限格式action::,资源read作为页面入口,manage_others用于跨用户数据操作。不是container:start这种省略前缀的权限码。 +API Token:持久化哈希Token,复用所属用户角色权限;与Web登录会话区分,部分管理接口仅Web可用。 +Shiki:本地TextMate高亮,配合Monaco;当前脚本和SQL编辑器均监听明暗主题变化。 +CapacityReport:plugins/下独立FastAPI/Vue容量报表项目,源和仓库分别直连或使用Metrix API,有Tauri桌面壳;CellData仍含直连路径。 +InterferenceETL:plugins/下独立Python批处理,通过平台API读写数据;当前按自然15分钟最新组,缺源等待,由通用脚本调度执行,无专属cron编辑器。 +脚本计划:主平台scripts模块使用APScheduler的interval/cron计划。 +数据任务:database模块导入导出后台任务,使用线程池,与APScheduler脚本计划不同。 +运行记录保留:script_run_retention_hours与script_run_retention_count,后者为每项目数量上限。 +MemRelay:当前规则、事实、检查点和密码库工具入口;普通记忆不存凭据。 +内网PyPI:pypiserver离线wheel服务及平台管理模块。 + +FULLTEXT索引、缓存TTL等不是目前已确认的项目需求,不能由旧术语表推导待办。 \ No newline at end of file diff --git a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/Metrix – Common Issues & Resolutions.md b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/Metrix – Common Issues & Resolutions.md deleted file mode 100644 index c749c02..0000000 --- a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/Metrix – Common Issues & Resolutions.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: Metrix – Common Issues & Resolutions -type: curated -permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/metrix-common-issues-resolutions -stable_id: 1e1b9a7e-5897-4c82-b267-279a8c54b150 -scope: project -project_id: d5a7f581-c442-4554-87b9-ee723b8b0258 -workspace_type: development -usage_profile_id: null -preference_context: development -document_type: troubleshooting -revision: 1 -source_memory_ids: [] -source_checkpoint_ids: [] -source_file_ids: [] -source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2 -source_git_commits: -- e660bc7bb4fc5ccda47decb4d514874a148ed9b2 -source_agent_sync_ids: [] -model_connection: Sub2API -model_name: git-restore -source_count: 29 -source_revisions: {} -source_dispositions: - processed: 29 - unchanged: 0 - unsupported: 0 - skipped: 0 -cited_source_ids: [] -job_cited_source_ids: [] -conflicts: [] -supersedes: [] -preferences: [] -source_cursor: 162 -source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218 -prompt_version: 2026-08-12.3 -schema_version: '3' -curation_job_id: null -created_at: '2026-08-19T02:32:30.066112+00:00' -updated_at: '2026-09-23T15:09:30.180462+00:00' -tags: -- troubleshooting -- issues -restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2 ---- - -## Troubleshooting Summary (compiled from baseline) - -| # | Symptom | Cause | Solution | -|---|---------|-------|----------| -| 1 | Windows directory rename locked (`git status` “cannot move”) | IDE holds handle on `.git` | Stop IDE, move `.git` aside, rename, move back, `git submodule sync` | -| 2 | `/health` endpoint never returns | Async handler performed blocking I/O | Convert handler to regular `def` (thread‑pool) | -| 3 | Docker `exec` sessions disconnect after ~3 s | Default socket timeout | After `exec_start`, call `socket.settimeout(None)` | -| 4 | Missing `api_enabled` flag → `forbidden` error | Flag absent in `core/config.py` | Add `api_enabled: bool = True` (configurable) | -| 5 | Hard‑coded credentials in `pypi_mirror.py` | Placeholder left in code | Use environment variables or Vaultwarden for secrets | -| 6 | `create-module.mjs` typo (`___SNAKE___snapshot`) | Template typo | Fix placeholder to correct name | -| 7 | `pytest.ini` points to empty test dir | No tests present | Add test files or update config | -| 8 | Generic `except Exception: pass` in container exec WS | Swallows errors | Replace with logged exception + WebSocket close | -| 9 | Permission expansion not applied (`resource:* → read`) | Expansion logic missing | Ensure `expand_permissions` runs during seeding | -|10| Shiki theme not syncing on UI theme change | Shiki instance not updated | Watch `appStore.dark`, call `shiki.setTheme` | -|11| Terminal copy‑paste fails on Windows named pipes | Missing error handling | Add UI toast & fallback to TCP | -|12| Column‑width reset on reload | Width stored only in `localStorage` | Persist via `/api/user/preferences` | -|13| Duplicate CGI merge strategy undefined | No config option | Add `duplicate_cgi_merge` setting (`highest|latest|average`) | -|14| Internal PyPI cache grows unbounded | No eviction policy | Background job to delete oldest wheels when limits exceeded | -|15| Re‑reported missing `api_enabled` flag (duplicate) | See #4 | — | - -These solutions have been applied where marked **✅ Completed** in the task list. Remaining items are tracked in the **High‑Priority Open Work Items** table (source `curated_baseline:13ffa178‑e9cf‑4735‑8da4‑e1d4cf683a52`). \ No newline at end of file