Compare commits

...
120 Commits
Author SHA1 Message Date
GitHub Actions f008e1a531 chore: bump version to 4.11.236 [skip ci] 2026-11-02 22:33:16 +00:00
litruv 0b37880ca5 Move the ContainerColor and index.css forks upstream and drop the overlay copies.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m48s
2026-11-03 09:33:06 +11:00
GitHub Actions 11d6386723 chore: bump version to 4.11.235 [skip ci] 2026-11-02 22:32:51 +00:00
GitHub Actions 2d9b217d2f Bump cinny: Resync index.css onto the base and keep the mobile and stationery additions.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Canceled after 15s
2026-11-02 22:32:46 +00:00
GitHub Actions 61c26874df chore: bump version to 4.11.234 [skip ci] 2026-11-02 22:16:29 +00:00
litruv 6d7a217eb7 Raise ContainerColor's specificity so the theme text color beats folds' DefaultReset in any stylesheet order.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m22s
2026-11-03 09:16:21 +11:00
GitHub Actions c216dcc5a1 chore: bump version to 4.11.233 [skip ci] 2026-11-02 16:43:56 +00:00
litruv 1e22cf3df5 Add the Tauri plugin packages the mobile overlay imports.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m31s
CI run 916 failed on the unresolved @tauri-apps/plugin-updater import, so the Android build could not resolve the plugin packages the overlay imports. No issue for this work.
2026-11-03 03:43:46 +11:00
GitHub Actions a0c1801460 chore: bump version to 4.11.232 [skip ci] 2026-11-02 16:05:20 +00:00
GitHub Actions 17ce9422ae Bump cinny: Turn off the prism index-key rule and drop the stale directives.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m22s
2026-11-02 15:58:17 +00:00
GitHub Actions 80401dad36 chore: bump version to 4.11.231 [skip ci] 2026-11-02 15:37:59 +00:00
GitHub Actions cfc4a805a4 Bump cinny: Merge the mutually recursive CSS scope helpers. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-02 15:37:52 +00:00
GitHub Actions 312843246a chore: bump version to 4.11.230 [skip ci] 2026-11-02 15:18:43 +00:00
GitHub Actions 6c7f8fb743 Bump cinny: Drop the key conflict handler and the crypto store prefix. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-02 15:18:38 +00:00
GitHub Actions f2b0e6ea74 chore: bump version to 4.11.229 [skip ci] 2026-11-02 14:16:43 +00:00
GitHub Actions ffa2b6a06d Bump cinny: Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-02 14:16:37 +00:00
GitHub Actions d2b39efb4b chore: bump version to 4.11.228 [skip ci] 2026-11-01 18:29:36 +00:00
GitHub Actions 9f3f714077 Bump cinny: Use EventType at the space create sites and augment the room kind key. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 18:29:30 +00:00
GitHub Actions 5d560e6092 chore: bump version to 4.11.227 [skip ci] 2026-11-01 18:17:23 +00:00
GitHub Actions ea50f64021 Bump cinny: Augment the custom event types and make the dep arrays honest. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 18:17:16 +00:00
GitHub Actions 6b0af26855 chore: bump version to 4.11.226 [skip ci] 2026-11-01 17:26:43 +00:00
GitHub Actions 0662e26630 Bump cinny: Fix the reaction content type and the fixable lint sites. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 17:26:38 +00:00
GitHub Actions 004ad26a2c chore: bump version to 4.11.225 [skip ci] 2026-11-01 17:00:49 +00:00
GitHub Actions aaca0d55f3 Bump cinny: Type the crypto, settings, and component any sites. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 17:00:44 +00:00
GitHub Actions bdfad5d747 chore: bump version to 4.11.224 [skip ci] 2026-11-01 15:26:49 +00:00
GitHub Actions 89ae584526 Bump cinny: Type the paarrot api, WebKit globals, and plugin command content. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 15:26:42 +00:00
GitHub Actions 4c2d9fe71d chore: bump version to 4.11.223 [skip ci] 2026-11-01 14:50:42 +00:00
GitHub Actions 1c2b2cdd43 Bump cinny: Type the window and power-level casts. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 14:50:35 +00:00
GitHub Actions 665a544e67 chore: bump version to 4.11.222 [skip ci] 2026-11-01 14:12:10 +00:00
GitHub Actions 9025e0e06a Bump cinny: Move the Capacitor code to the mobile overlay. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 14:12:03 +00:00
GitHub Actions b6d072271d chore: bump version to 4.11.221 [skip ci] 2026-11-01 13:56:21 +00:00
GitHub Actions 9dd3e8faea Bump cinny: Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 13:56:14 +00:00
GitHub Actions bdbd2f8d71 chore: bump version to 4.11.220 [skip ci] 2026-11-01 13:14:13 +00:00
GitHub Actions ee2f8cc448 Bump cinny: Drop the mutation and sequential-await rules and the stale directives. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 13:14:07 +00:00
GitHub Actions b7ff95e5d4 chore: bump version to 4.11.219 [skip ci] 2026-11-01 12:54:54 +00:00
GitHub Actions 17aca9f729 Bump cinny: Use EventType at the state and account data call sites. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 12:54:49 +00:00
GitHub Actions 9b6f3ae55b chore: bump version to 4.11.218 [skip ci] 2026-11-01 12:09:31 +00:00
GitHub Actions 82f1feaa26 Bump cinny: Resolve the exhaustive-deps findings and attach cause to the rethrown errors. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 12:09:23 +00:00
GitHub Actions 374b0432c3 chore: bump version to 4.11.217 [skip ci] 2026-11-01 11:41:37 +00:00
GitHub Actions 595b6541da Bump cinny: Type the updater API and the Tauri global. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 11:41:32 +00:00
GitHub Actions 11896dcd9f chore: bump version to 4.11.216 [skip ci] 2026-11-01 11:13:19 +00:00
GitHub Actions 77deeb9ef0 Bump cinny: Type the electron and matrix plugin call sites instead of any. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 11:13:12 +00:00
GitHub Actions 550cb61f28 chore: bump version to 4.11.215 [skip ci] 2026-11-01 10:37:29 +00:00
GitHub Actions 42367e2ae6 Bump cinny: Add keyboard activation to the interactive elements and use stable keys. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 10:37:21 +00:00
GitHub Actions db7c71a650 chore: bump version to 4.11.214 [skip ci] 2026-11-01 10:10:44 +00:00
GitHub Actions 2129482287 Bump cinny: Rewrite the restricted iterators and reorder the forward references. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 10:10:39 +00:00
GitHub Actions a9e3832b27 chore: bump version to 4.11.213 [skip ci] 2026-11-01 09:36:23 +00:00
GitHub Actions e7ac50ed44 Bump cinny: Fix the mechanical lint groups and delete the unused bindings. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-11-01 09:36:15 +00:00
GitHub Actions 8dcd1335dd chore: bump version to 4.11.212 [skip ci] 2026-11-01 09:00:19 +00:00
GitHub Actions 9b3c88702b Bump cinny: Mount the dialog host at the app root so prompts resolve before the client route renders. [skip build]
Build / increment-version (push) Successful in 6s
Build / build-android (push) Skipped
2026-11-01 09:00:10 +00:00
GitHub Actions 923d00c59a chore: bump version to 4.11.211 [skip ci] 2026-11-01 00:49:07 +00:00
GitHub Actions 8ed3fdbd70 Bump cinny: Replace the native confirm and alert with an in-app dialog. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-11-01 00:49:02 +00:00
GitHub Actions e77a63f580 chore: bump version to 4.11.210 [skip ci] 2026-11-01 00:32:59 +00:00
litruv 9de71b766d Render the settings content when the compact master nav is empty. Closes #1.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m20s
2026-11-01 11:32:51 +11:00
GitHub Actions 7156864da9 chore: bump version to 4.11.209 [skip ci] 2026-10-31 23:53:40 +00:00
GitHub Actions 22f24d901d Bump cinny: Drop autofocus and move the search reset out of render. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:53:33 +00:00
GitHub Actions 3006176027 chore: bump version to 4.11.208 [skip ci] 2026-10-31 23:44:31 +00:00
GitHub Actions 1fe4ce1bba Bump cinny: Drop the unused eslint-disable directives. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 23:44:24 +00:00
GitHub Actions 8390d7b8ee chore: bump version to 4.11.207 [skip ci] 2026-10-31 23:33:57 +00:00
GitHub Actions 6924d35497 Bump cinny: Fix the small mechanical rules. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:33:52 +00:00
GitHub Actions f4d8c5817c chore: bump version to 4.11.206 [skip ci] 2026-10-31 23:05:32 +00:00
GitHub Actions 38d7530362 Bump cinny: Turn off the React Compiler rules and no-bitwise. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 23:05:27 +00:00
GitHub Actions 7fb4a0bb03 chore: bump version to 4.11.205 [skip ci] 2026-10-31 22:57:39 +00:00
GitHub Actions df5b04eb09 Bump cinny: Move the browser-encrypt-attachment types into an ambient declaration file. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 22:57:32 +00:00
GitHub Actions 65381675c5 chore: bump version to 4.11.204 [skip ci] 2026-10-31 22:34:34 +00:00
GitHub Actions 6848870cb1 Bump cinny: Put the repo in the commit link. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 22:34:26 +00:00
GitHub Actions 26f5dd0a18 chore: bump version to 4.11.203 [skip ci] 2026-10-31 22:20:50 +00:00
GitHub Actions 205930db2e Bump cinny: Use globalThis and React.JSX in the browser code. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 22:20:42 +00:00
GitHub Actions 2120419c69 chore: bump version to 4.11.202 [skip ci] 2026-10-31 22:14:21 +00:00
GitHub Actions 5f893088a5 Bump cinny: Add the debug packet recorder behind the developer-tools toggle.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Failing after 1m20s
2026-10-31 22:07:00 +00:00
GitHub Actions 862125e60c chore: bump version to 4.11.201 [skip ci] 2026-10-31 20:07:36 +00:00
GitHub Actions fbab988cfb Bump cinny: Turn off the base unused-vars rule for the TS files. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 20:07:29 +00:00
GitHub Actions 1490a48d2d chore: bump version to 4.11.200 [skip ci] 2026-10-31 19:14:38 +00:00
GitHub Actions 761c939249 Bump cinny: Drop the unused imports and the inert unused variables. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 19:14:31 +00:00
GitHub Actions a67069e692 chore: bump version to 4.11.199 [skip ci] 2026-10-31 18:53:31 +00:00
GitHub Actions ba5747fb01 Bump cinny: Turn off no-undef for the TS files too. [skip build]
Build / increment-version (push) Successful in 4s
Build / build-android (push) Skipped
2026-10-31 18:53:24 +00:00
GitHub Actions 6b5eced0ba chore: bump version to 4.11.198 [skip ci] 2026-10-31 18:40:27 +00:00
GitHub Actions a1d1dfad6c Bump cinny: Drop the dead Tauri branches and the plugin packages. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 18:40:19 +00:00
GitHub Actions 518b5b4ea9 chore: bump version to 4.11.197 [skip ci] 2026-10-31 17:58:55 +00:00
GitHub Actions fdd4cc0e8d Bump cinny: Remove the playground. [skip build]
Build / increment-version (push) Successful in 5s
Build / build-android (push) Skipped
2026-10-31 17:58:50 +00:00
GitHub Actions 0f6517674e chore: bump version to 4.11.196 [skip ci] 2026-10-31 17:36:32 +00:00
GitHub Actions 9e7bc26bff Bump cinny: Export the default in the raw module declaration so the typecheck compiles.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m34s
2026-10-31 17:34:07 +00:00
litruv 9fe732fe32 Skip the mobile build when the commit message marks it.
Build / increment-version (push) Canceled after 0s
Build / build-android (push) Canceled after 0s
2026-11-01 04:32:25 +11:00
GitHub Actions 8f30d0fce6 Bump cinny: Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Build / increment-version (push) Canceled after 0s
Build / build-android (push) Canceled after 0s
2026-10-31 17:28:53 +00:00
GitHub Actions d1982fb071 chore: bump version to 4.11.195 [skip ci] 2026-10-31 17:14:18 +00:00
GitHub Actions d9d1d90ab3 Bump cinny: Drop the redundant try around the render check fetch.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m33s
2026-10-31 17:14:13 +00:00
GitHub Actions 65a2e13f24 chore: bump version to 4.11.194 [skip ci] 2026-10-31 17:07:00 +00:00
GitHub Actions af022b5c16 Bump cinny: Drop the explicit undefined initialisation of encInfo.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Canceled after 0s
2026-10-31 17:00:26 +00:00
GitHub Actions c1c27d6cc0 chore: bump version to 4.11.193 [skip ci] 2026-10-31 16:50:16 +00:00
GitHub Actions 634f8ed2f8 Bump cinny: Page the open issue list so dedupe sees every check issue.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m37s
2026-10-31 16:40:52 +00:00
GitHub Actions 8a08073b96 chore: bump version to 4.11.192 [skip ci] 2026-10-31 16:33:22 +00:00
GitHub Actions 602a99efaf Bump cinny: Port the ESLint config to flat format and file check findings as Gitea issues.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m57s
2026-10-31 16:25:42 +00:00
GitHub Actions e00a5da74b chore: bump version to 4.11.191 [skip ci] 2026-10-31 15:03:56 +00:00
GitHub Actions 3af27ddaf2 Bump cinny: Add a developer tools view for public profile fields.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m58s
2026-10-31 15:03:48 +00:00
GitHub Actions 000d6158ae chore: bump version to 4.11.190 [skip ci] 2026-10-31 12:55:45 +00:00
GitHub Actions bb1586001a Bump cinny: Revert reporting the activity bar against the message in the viewport.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 5m20s
2026-10-31 12:55:38 +00:00
GitHub Actions 56463d5147 chore: bump version to 4.11.189 [skip ci] 2026-10-15 12:13:19 +00:00
GitHub Actions 1ebaa165bd Bump cinny: Fetch the TikTok oEmbed through the main process in Electron and drop the thumbnail crossOrigin.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m33s
2026-10-15 12:13:11 +00:00
GitHub Actions 55899d9cab chore: bump version to 4.11.188 [skip ci] 2026-10-13 09:11:50 +00:00
litruv 0d2e6c73a7 docs: add plugin development instructions (AGENTS.md)
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m30s
2026-10-13 20:11:43 +11:00
GitHub Actions 3067b88ecc chore: bump version to 4.11.187 [skip ci] 2026-10-13 08:44:39 +00:00
GitHub Actions c6e9c82ae5 Bump cinny: Remove the Paarrot delivery receipt.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m29s
2026-10-13 08:44:33 +00:00
GitHub Actions 3787b55ca5 chore: bump version to 4.11.186 [skip ci] 2026-10-13 05:54:05 +00:00
litruv 1f16f5dd44 fix: provide ctx.lucide to plugins; resolve submodule gitdir in apply-overlay
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m29s
2026-10-13 16:53:56 +11:00
GitHub Actions e7cfb3dbd9 chore: bump version to 4.11.185 [skip ci] 2026-10-13 03:34:41 +00:00
GitHub Actions b21e74307e Bump cinny: Report the activity bar against the message in the viewport.
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m31s
2026-10-13 03:34:35 +00:00
GitHub Actions aebf253226 chore: bump version to 4.11.184 [skip ci] 2026-10-12 21:01:29 +00:00
GitHub Actions b7f354cd12 Bump cinny: Add Telegram-style delivery receipt to Paarrot.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m31s
2026-10-12 21:01:22 +00:00
GitHub Actions 5f93ad815e chore: bump version to 4.11.183 [skip ci] 2026-10-12 16:11:46 +00:00
GitHub Actions 39945c5e99 Bump cinny: Apply the flat composer chrome to all themes instead of stationery only.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 2m32s
2026-10-12 16:11:25 +00:00
GitHub Actions 9be4ee4225 chore: bump version to 4.11.182 [skip ci] 2026-10-06 00:11:46 +00:00
GitHub Actions 8c20c3d3a6 Bump cinny: Show cached spaces on the loading splash until the chats are ready
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 2m30s
2026-10-06 00:11:41 +00:00
GitHub Actions 9b97fb8c32 chore: bump version to 4.11.181 [skip ci] 2026-10-05 23:44:15 +00:00
litruv cef9f28dfd notifications: show reaction emoji as icon + quoted message snippet
Build / increment-version (push) Successful in 5s
Build / build-android (push) Successful in 4m47s
Reaction notifications previously had no icon and a generic body. Now the
reaction emoji is rendered as the notification icon and the body quotes the
reacted-to message. Applied to both the web/Electron/Tauri path and the
Android background sync service.
2026-10-06 10:43:12 +11:00
GitHub Actions 96d5ae40e1 chore: bump version to 4.11.180 [skip ci] 2026-10-05 21:04:21 +00:00
GitHub Actions 8f64937367 Bump cinny: Skip sourcemap generation in CI builds
Build / increment-version (push) Successful in 4s
Build / build-android (push) Successful in 6m24s
2026-10-05 21:04:14 +00:00
GitHub Actions 441de85b82 chore: bump version to 4.11.179 [skip ci] 2026-10-05 20:50:06 +00:00
GitHub Actions 7277ecf589 Bump cinny: Add 4.11.193 update notes for the shared profile cache.
Build / increment-version (push) Successful in 6s
Build / build-android (push) Successful in 6m59s
2026-10-05 20:49:57 +00:00
GitHub Actions 2a8cc22ff9 chore: bump version to 4.11.178 [skip ci] 2026-10-05 20:43:07 +00:00
GitHub Actions 72c933ca61 Bump cinny: Cache profile fields and assets behind one shared store.
Build / increment-version (push) Successful in 4s
Build / build-android (push) Canceled after 6m50s
2026-10-05 20:43:02 +00:00
11 changed files with 206 additions and 2044 deletions
+6
View File
@@ -46,7 +46,13 @@ jobs:
grep '"version"' package.json | head -1 grep '"version"' package.json | head -1
echo "VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT echo "VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
# [skip build] runs the checks workflow but skips the mobile build.
if echo "${{ github.event.head_commit.message }}" | grep -qi '\[skip build\]'; then
echo "SHOULD_BUILD=false" >> $GITHUB_OUTPUT
else
echo "SHOULD_BUILD=true" >> $GITHUB_OUTPUT echo "SHOULD_BUILD=true" >> $GITHUB_OUTPUT
fi
- name: Commit and push version bump - name: Commit and push version bump
run: | run: |
+48
View File
@@ -0,0 +1,48 @@
# Plugin development instructions
Instructions for opencode agents working on the Paarrot plugin system in this repo.
## Architecture
- Plugin host: `overlay/src/app/utils/pluginHost.ts`. Electron uses `window.electron.plugins`, Android uses the Capacitor `PluginStorage` plugin, web returns null.
- Native Android host: `android/app/src/main/java/com/paarrot/app/PluginStoragePlugin.kt` (download zip, unzip with zip-slip guard, list, uninstall, readPluginCode). Registered in `MainActivity.java`.
- Loader: `cinny/src/app/features/settings/plugins/PluginLoader.tsx`, mounted in `ClientRoot.tsx`. It evaluates `index.js` with `new Function` for CommonJS and falls back to a data-URL import for ESM.
- Registry and marketplace: `PluginAPI.ts` persists both to `localStorage`. Enabled state survives restarts. Plugins load at app start, so enabling a plugin requires an app restart.
## Plugin context contract
- `createPluginContext` from `@paarrot/plugin-manager` provides: `commands`, `messages`, `ui`, `settings`, `themes`, `events`, `timers`, `log`, `warn`, `error`.
- `PluginLoader` adds compat fields on top: `matrixClient`, `matrix`, `React`, `lucide`. Plugins destructure these directly (for example `const { Link } = ctx.lucide`), so a missing field throws at `onLoad` and the plugin never runs. Keep the compat fields in sync between `cinny` and `overlay`. A missing `lucide` caused silent plugin failure on mobile, fixed in commit `1f16f5d`.
## UI locations
- Valid `UILocation` values: `room-header`, `message-actions`, `user-menu`, `room-menu`, `composer-actions`, `channel-list`, `direct-messages`, `home-section`, `search-notification-section`, `text-composer-toolbar`, `sidebar-actions`.
- Button slots render at all screen sizes. Nav-only locations (`channel-list`, `direct-messages`, `home-section`, `sidebar-actions`) have no surface in the single-column mobile UI, so plugins that only register there are invisible on phones.
## Mobile quirks
- Capacitor injects plugins on `Capacitor.Plugins` after the bridge is ready, and `registerPlugin` is often missing on Android. The `waitForBridge` fallback pattern in `overlay/src/app/utils/backgroundSync.ts` is the reference.
- No CSP is configured in `capacitor.config.json`, so `new Function` and data-URL imports work. Adding CSP would break plugin evaluation.
- WebView console logs reach logcat under the tag `Capacitor/Console`.
## Debugging on device
- Wireless adb: `adb connect <ip>:<port>`. The `adb tcpip` port persists until reboot, then resets to 5555. Android 11+ wireless debugging randomizes the port per reboot by design. Pinning needs root (`persist.adb.tcp.port`).
- Plugin files: `adb shell run-as com.paarrot.app cat files/plugins/<id>/index.js` works on debuggable builds.
- Enabled state: localStorage lives in `app_webview/Local Storage/leveldb`. Search for `plugin-manager:installed-plugins`.
- Live eval: the WebView devtools socket is `@webview_devtools_remote_<pid>`. Forward with `adb forward tcp:9222 localsocket:webview_devtools_remote_<pid>`. The socket may refuse HTTP and WebSocket requests from non-localhost hosts.
- To trigger plugin load logs: force-stop, start, then `logcat -d | grep PluginLoader`.
- Hotpatching the installed copy with `run-as` plus an app restart tests plugin changes without reinstalling.
## Marketplace
- Directory: `Paarrot/Plugin-Directory`. Entries are static JSON files. The `version` field is a manual snapshot and is never synced from the plugin repo.
- Updates go through PRs. `validate-pr.yml` validates and auto-merges. `update-index.yml` regenerates `index.json` from committed entries only.
- A plugin repo needs `index.js` and `plugin-metadata.json`. The directory `downloadUrl` is the GitHub archive zip.
- Bump the version in both the plugin repo metadata and the directory entry when shipping changes.
## Repo conventions
- Edit `overlay/` files, not `cinny` directly. `scripts/apply-overlay.mjs` layers the overlay onto the cinny submodule before every Android build.
- `android/gradlew` is not executable. Run it as `sh gradlew`.
- Use `scripts/push.sh` for commits. It skips the cinny submodule pointer and `gradlew`.
@@ -377,12 +377,50 @@ class MatrixSyncService : Service() {
val isMessageLike = val isMessageLike =
eventType == "m.room.message" || eventType == "m.room.message" ||
eventType == "m.room.encrypted" || eventType == "m.room.encrypted" ||
eventType == "m.sticker" eventType == "m.sticker" ||
eventType == "m.reaction"
if (!isMessageLike) continue if (!isMessageLike) continue
if (sender.isNotBlank() && sender == myUserId) continue if (sender.isNotBlank() && sender == myUserId) continue
if (eventId.isNotBlank() && !shownEventIds.add(eventId)) continue if (eventId.isNotBlank() && !shownEventIds.add(eventId)) continue
val content = event.optJSONObject("content") ?: JSONObject() val content = event.optJSONObject("content") ?: JSONObject()
// Reactions have no media, so use the emoji as the icon and quote the
// reacted-to message as the body.
if (eventType == "m.reaction") {
val relates = content.optJSONObject("m.relates_to")
val key = relates?.optString("key").orEmpty()
if (key.isBlank()) continue
val parentEventId = relates?.optString("event_id").orEmpty()
val snippet =
if (parentEventId.isNotBlank())
fetchEventBodySnippet(homeserver, token, roomId, parentEventId)
else ""
val reactionBody =
if (snippet.isNotBlank()) "reacted with $key to \"$snippet\""
else "reacted with $key"
val profile = try {
resolveProfile(sender, homeserver, token)
} catch (e: Exception) {
Log.w(TAG, "profile fetch failed: ${e.message}")
UserProfile(sender.substringAfter("@").substringBefore(":").ifBlank { "Someone" }, null)
}
Log.i(TAG, "notify room=$roomId type=$eventType sender=$sender")
showMessageNotification(
nm,
roomId,
profile.displayName,
reactionBody,
renderEmojiBitmap(key),
null,
resolveGroupInfo(roomId, notifyCtx),
)
notifiedForRoom = true
continue
}
val encrypted = eventType == "m.room.encrypted" val encrypted = eventType == "m.room.encrypted"
val msgtype = content.optString("msgtype") val msgtype = content.optString("msgtype")
val rawBody = content.optString("body") val rawBody = content.optString("body")
@@ -587,6 +625,25 @@ class MatrixSyncService : Service() {
} }
} }
/** Fetch the body of the event a reaction points at, as a short single-line snippet. */
private fun fetchEventBodySnippet(
homeserver: String,
token: String,
roomId: String,
eventId: String,
maxLength: Int = 60,
): String {
val obj = fetchJson(
"$homeserver/_matrix/client/v3/rooms/${urlEncode(roomId)}/event/${urlEncode(eventId)}",
token,
) ?: return ""
val content = obj.optJSONObject("content") ?: return ""
val rawBody = content.optString("body")
if (rawBody.isBlank()) return ""
val trimmed = rawBody.replace(Regex("\\s+"), " ").trim()
return if (trimmed.length > maxLength) trimmed.substring(0, maxLength) + "…" else trimmed
}
private fun resolveProfile(mxid: String, homeserver: String, token: String): UserProfile { private fun resolveProfile(mxid: String, homeserver: String, token: String): UserProfile {
val cachedName = displayNameCache[mxid] val cachedName = displayNameCache[mxid]
if (cachedName != null) return UserProfile(cachedName, avatarCache[mxid]) if (cachedName != null) return UserProfile(cachedName, avatarCache[mxid])
@@ -1164,6 +1221,25 @@ class MatrixSyncService : Service() {
} }
} }
/** Render a reaction emoji to a bitmap so it can be used as the notification icon. */
fun renderEmojiBitmap(emoji: String): Bitmap? {
return try {
val size = 128
val bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888)
val canvas = Canvas(bitmap)
val paint = Paint(Paint.ANTI_ALIAS_FLAG)
paint.textSize = size * 0.7f
paint.textAlign = Paint.Align.CENTER
val fontMetrics = paint.fontMetrics
val y = size / 2f - (fontMetrics.ascent + fontMetrics.descent) / 2f
canvas.drawText(emoji, size / 2f, y, paint)
bitmap
} catch (e: Exception) {
Log.w(TAG, "Failed to render emoji icon: ${e.message}")
null
}
}
/** Crop a bitmap into a circle for the notification avatar slot. */ /** Crop a bitmap into a circle for the notification avatar slot. */
fun toCircularBitmap(bitmap: Bitmap): Bitmap { fun toCircularBitmap(bitmap: Bitmap): Bitmap {
val size = minOf(bitmap.width, bitmap.height) val size = minOf(bitmap.width, bitmap.height)
+1 -1
Submodule cinny updated: f2caef5592...ec7b4f04c5
+6 -1
View File
@@ -2,6 +2,11 @@
"dependencies": { "dependencies": {
"@capacitor/app": "8.0.1", "@capacitor/app": "8.0.1",
"@capacitor/browser": "8.0.1", "@capacitor/browser": "8.0.1",
"@capacitor/status-bar": "8.0.1" "@capacitor/status-bar": "8.0.1",
"@tauri-apps/plugin-dialog": "2.7.1",
"@tauri-apps/plugin-notification": "2.3.3",
"@tauri-apps/plugin-opener": "2",
"@tauri-apps/plugin-process": "2.3.1",
"@tauri-apps/plugin-updater": "2.10.1"
} }
} }
+4 -1
View File
@@ -22,7 +22,10 @@ export function PageRoot({ nav, children }: PageRootProps) {
// Master list routes: only the channel/space list is interactive. // Master list routes: only the channel/space list is interactive.
// Never mount the detail/underlay stack here — an empty detail layer would // Never mount the detail/underlay stack here — an empty detail layer would
// sit above the list with pointer-events and freeze taps (DM → space bug). // sit above the list with pointer-events and freeze taps (DM → space bug).
if (compact && showCompactMaster) { // When nav is empty there is no master list to protect, so fall through to the
// detail branch. Settings is a modal, not a route: opening it from /home keeps
// the pathname a list route while Settings passes nav as undefined on mobile.
if (compact && showCompactMaster && nav) {
return ( return (
<Box grow="Yes" className={ContainerColor({ variant: 'Background' })}> <Box grow="Yes" className={ContainerColor({ variant: 'Background' })}>
{nav} {nav}
@@ -1,5 +1,6 @@
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import { MatrixClient } from 'matrix-js-sdk'; import { MatrixClient } from 'matrix-js-sdk';
import * as lucide from 'lucide-react';
import { Plugin, createPluginContext } from '@paarrot/plugin-manager'; import { Plugin, createPluginContext } from '@paarrot/plugin-manager';
import { pluginMarketplaceManager, pluginRegistry } from './PluginAPI'; import { pluginMarketplaceManager, pluginRegistry } from './PluginAPI';
import { sendNotification } from '../../../utils/tauri'; import { sendNotification } from '../../../utils/tauri';
@@ -80,6 +81,7 @@ export function PluginLoader({ matrixClient, children }: PluginLoaderProps) {
matrixClient.off(eventType as any, handler as any), matrixClient.off(eventType as any, handler as any),
}, },
React, React,
lucide,
}); });
console.log('[PluginLoader] compatContext.React:', !!compatContext.React); console.log('[PluginLoader] compatContext.React:', !!compatContext.React);
@@ -104,14 +104,52 @@ async function waitForEventDecryption(mx: MatrixClient, mEvent: MatrixEvent) {
}); });
} }
/** Short, single-line snippet of an event's body for use inside a notification. */
function eventBodySnippet(mEvent: MatrixEvent, maxLength = 60): string {
const content = mEvent.getClearContent() ?? mEvent.getContent();
const rawBody = typeof content.body === 'string' ? content.body : '';
if (!rawBody) return '';
const trimmed = rawBody.replace(/\s+/g, ' ').trim();
return trimmed.length > maxLength ? `${trimmed.slice(0, maxLength)}…` : trimmed;
}
/** Render a reaction emoji to a PNG base64 string so it can be used as the notification icon. */
async function renderEmojiToBase64(emoji: string): Promise<string | undefined> {
try {
const size = 128;
const canvas = document.createElement('canvas');
canvas.width = size;
canvas.height = size;
const ctx = canvas.getContext('2d');
if (!ctx) return undefined;
ctx.font = `${Math.floor(size * 0.7)}px "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif`;
ctx.textBaseline = 'middle';
ctx.textAlign = 'center';
ctx.fillText(emoji, size / 2, size / 2);
const dataUrl = canvas.toDataURL('image/png');
return dataUrl.split(',')[1];
} catch (err) {
console.warn('[Notifications] Failed to render emoji icon:', err);
return undefined;
}
}
/** Build a human-readable notification body from (possibly decrypted) event content. */ /** Build a human-readable notification body from (possibly decrypted) event content. */
function notificationBodyFromEvent(mEvent: MatrixEvent): string | undefined { function notificationBodyFromEvent(mx: MatrixClient, mEvent: MatrixEvent): string | undefined {
const content = mEvent.getClearContent() ?? mEvent.getContent(); const content = mEvent.getClearContent() ?? mEvent.getContent();
const eventType = mEvent.getType(); const eventType = mEvent.getType();
if (eventType === 'm.reaction') { if (eventType === 'm.reaction') {
const reactionKey = content['m.relates_to']?.key; const relates = content['m.relates_to'];
return reactionKey ? `reacted with ${reactionKey}` : 'reacted to a message'; const reactionKey = relates?.key;
const parent = relates?.event_id ? mx.getCachedEventById(relates.event_id) : undefined;
const snippet = parent ? eventBodySnippet(parent) : '';
if (reactionKey && snippet) return `reacted with ${reactionKey} to "${snippet}"`;
if (reactionKey) return `reacted with ${reactionKey}`;
return 'reacted to a message';
} }
if (eventType === 'm.room.encrypted' || mEvent.isDecryptionFailure()) { if (eventType === 'm.room.encrypted' || mEvent.isDecryptionFailure()) {
@@ -684,12 +722,26 @@ function MessageNotifications() {
: Promise.resolve(undefined), : Promise.resolve(undefined),
]); ]);
const messageBody = notificationBodyFromEvent(mEvent); // Reactions have no media, so render the reaction emoji as the notification icon.
let finalIconBase64 = iconBase64;
let finalRoomAvatar = roomAvatar;
if (mEvent.getType() === 'm.reaction') {
const emoji = (mEvent.getClearContent() ?? mEvent.getContent())['m.relates_to']?.key;
if (emoji) {
const emojiBase64 = await renderEmojiToBase64(emoji);
if (emojiBase64) {
finalIconBase64 = emojiBase64;
finalRoomAvatar = `data:image/png;base64,${emojiBase64}`;
}
}
}
const messageBody = notificationBodyFromEvent(mx, mEvent);
notify({ notify({
roomName: room.name ?? 'Unknown', roomName: room.name ?? 'Unknown',
roomAvatar, roomAvatar: finalRoomAvatar,
iconBase64, iconBase64: finalIconBase64,
bigPictureBase64, bigPictureBase64,
username, username,
messageBody, messageBody,
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "paarrot", "name": "paarrot",
"version": "4.11.177", "version": "4.11.236",
"description": "Paarrot - A Matrix client based on Cinny", "description": "Paarrot - A Matrix client based on Cinny",
"engines": { "engines": {
"node": ">=18.0.0" "node": ">=18.0.0"
+2 -1
View File
@@ -33,7 +33,8 @@ if (cinnyStatus.trim()) {
// Ensure android/ junction is excluded from the cinny git view — otherwise // Ensure android/ junction is excluded from the cinny git view — otherwise
// `git stash -u` would traverse the junction into the root android/ directory // `git stash -u` would traverse the junction into the root android/ directory
// and delete files there when the stash is created. // and delete files there when the stash is created.
const cinnyExclude = join(CINNY, '.git', 'info', 'exclude'); const gitDir = resolve(CINNY, execSync('git rev-parse --git-dir', { cwd: CINNY, encoding: 'utf8' }).trim());
const cinnyExclude = join(gitDir, 'info', 'exclude');
const excludeContent = existsSync(cinnyExclude) ? readFileSync(cinnyExclude, 'utf8') : ''; const excludeContent = existsSync(cinnyExclude) ? readFileSync(cinnyExclude, 'utf8') : '';
if (!excludeContent.includes('android/')) { if (!excludeContent.includes('android/')) {
writeFileSync(cinnyExclude, excludeContent + (excludeContent.endsWith('\n') || !excludeContent ? '' : '\n') + 'android/\n', 'utf8'); writeFileSync(cinnyExclude, excludeContent + (excludeContent.endsWith('\n') || !excludeContent ? '' : '\n') + 'android/\n', 'utf8');