一键导入
commory-android
Android app for Commory — dual runtime modes, Compose UI, MsgLayer backup/restore, server sync, and agent privacy model.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Android app for Commory — dual runtime modes, Compose UI, MsgLayer backup/restore, server sync, and agent privacy model.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Go backend for Commory — JWT auth, file-backed storage, MsgLayer import/query, Setup wizard, and mobile API contract.
MsgLayer schema v0.1 — the canonical interchange format between Android, Go backend, web, and future agents.
Standardize VisionFlow load, pressure, capacity, and soak testing across Docker, PgBouncer, BullMQ, Redis, workflow execution, and tietiezhi batch generation. Use when an agent needs to run or document high-concurrency validation, 2C4G simulations, multi-user submit tests, workflow stress tests, throughput investigations, OSS cleanup for test runs, or performance reporting and tuning guidance.
| name | commory-android |
| description | Android app for Commory — dual runtime modes, Compose UI, MsgLayer backup/restore, server sync, and agent privacy model. |
Work on the Commory Android app (package com.iskenkenya.commory.mobile).
app/src/main/java/com/iskenkenya/commory/mobile/
runtime/ — AppEnvironment, RuntimeMode, RuntimeModePolicy, AppEnvironmentManager, LocaleResolver
remote/ — CommoryServerClient, CommoryApiService, NetworkError, DTOs
auth/ — CommoryServerAuthProvider
agent/ — AgentContextModels, AgentPrivacyPolicy
ui/screens/ — ModeSelectionScreen, ServerSetupScreen, BackupScreen, RestoreScreen, MoreScreen
ui/navigation/NavigationHost — Two-level route guard (mode → auth → main)
ui/viewmodels/ — AppViewModel, BackupViewModel, RestoreViewModel
di/AppContainer — Manual DI
sdk/backup/ — Pure Kotlin MsgLayer mapper, reader, writer
sdk/auth/ — AuthProvider interface, AuthCredentials sealed class
sdk/storage/ — Storage contracts
AppEnvironment is the single source of truth; persisted via DataStore; exposed as StateFlow.currentSnapshot() reads a @Volatile cache updated by onEach; no runBlocking.RuntimeModePolicy centralizes mode-dependent decisions (auth required, upload allowed, etc.).CommoryServerClient caches Retrofit services per base URL; uses separate refreshClient for auth endpoints.authenticator auto-refreshes on 401; /api/auth/ paths are excluded to prevent loops.NetworkError sealed class maps IOException subtypes to typed errors for UI localization.AuthSession.isAuthenticated checks JWT exp claim; accessTokenExpiresAt() decodes Base64 payload.RuntimeModePolicy.canUploadBackup().AlertDialog confirmation; switching clears session but preserves local files.AgentPrivacyPolicy maps RuntimeMode to AgentProviderPolicy (LOCAL_ONLY vs SERVER_ALLOWED).Build.FINGERPRINT.NavigationHost.kt and the target screen/ViewModel.docs/android-runtime-modes.md for mode behavior.docs/mobile-api.md for server contract.values/, values-en/, values-zh-rCN/.cd android && ./gradlew :app:compileDebugKotlin && ./gradlew :app:testDebugUnitTestreferences/runtime-modes.md for mode behavior details.docs/mobile-api.md for the server API contract.