İçeriğe geç

Dokümantasyon İngilizcedir.

Meik Desktop

Meik Desktop is meik as an app on your computer. It shows the same web UI as your browser — every page, every button — and adds what a browser cannot do on a developer's machine. Everything still works in the browser; the app is never required.

In the browserIn Meik Desktop
The Preview tab shows a screenshot and the live web appMobile previews run on your Mac: the Preview Worker inside the app builds the app with your Xcode / Android SDK and boots the simulator or emulator; "Show on my Mac" brings it to the front; Build and run puts the task's app on your own emulator or simulator and shows its live screen in the page, where you use it
Copy a git commandTake over a task in a worktree and open it — or a file at a line — in VS Code, Cursor, IntelliJ, Xcode or Android Studio; run the repository's tests on your machine in a sandbox
Meetings hear your microphoneMeetings hear your microphone and the call's audio (later release)
The bell in the headerSystem notifications with Approve, Open, Snooze, and a badge on the dock / taskbar icon
Sign in in each browserSign in once; the sign-in stays in your system keychain

Install

Open Downloads in meik (the menu under your name) and pick the installer for your computer:

  • macOS: the .dmg for Apple silicon (arm64) or Intel (x64). Open it and drag Meik to Applications.
  • Windows: Meik Setup … .exe installs for you; your IT may push the .msi instead.
  • Linux: the .AppImage (make it executable and run it) or the .deb.

Each file has its sha256 next to it. If the page says the builds are unsigned development builds, macOS or your endpoint protection may refuse to open them; ask your administrator for the signed release. The app updates itself from your meik server — nothing comes from the internet.

First start

  1. Meik opens Settings. Under Add a server type the address of your meik installation (https://meik.example) and a name (Work). A second installation (Lab) can be added the same way; each one has its own window, sign-in, permissions and network settings. On macOS the windows of several servers group as tabs.
  2. Click Sign in with browser. Your browser opens meik's approval page (your company sign-in works there as usual); check the code it shows matches the one in Settings and approve. The app is signed in — no password typed into it. The sign-in is a token named desktop@<your computer>; you can see and revoke it under API tokens in meik.

You can also sign in with your password inside the app window, like in a browser.

Permissions

The app asks the first time a server wants to do something on your computer, and says exactly what:

PermissionWhat it allows
Show notificationsSystem notifications and the badge
Run previews on this computerStart the Preview Worker (builds apps, boots simulators and emulators)
Read your local repositoriesList repositories, branches and worktrees in the folders you chose
Create worktreesCreate and remove git worktrees inside those folders
Open files in your editorOpen folders and files of those repositories in your editor
Run build actionsLet the Preview Worker run its build and install steps in its sandbox
Use your emulators and simulatorsList the emulators and simulators on this Mac, build a task's worktree here and install it on the one you pick, show a running one's screen in meik with your taps and typing sent to it, and read which app element is under an area you comment on
Capture meeting audioRecord the microphone and the system audio while a meeting capture runs

"Remember for this server" keeps the answer. Settings → your server → Permissions lists what you allowed; Revoke makes it ask again. There is no permission to "run any command": the server can never make the app run a command of its choosing. Your organisation may turn some permissions off; Settings then says "managed by your organisation".

Every call the server makes to the app is written to a local audit log (Help → Open Audit Log).

Mobile previews on your Mac (macOS)

Meik Desktop carries the Preview Worker: it builds Android and iOS apps with the Xcode and Android SDK already on your Mac and boots the simulator or emulator for a task's Preview tab. Settings → your server → Preview Worker on this Mac picks the runtimes (iOS, Android), the sessions per runtime, whether it starts with Meik, and whether the simulator / emulator windows show. Start or stop it from the menu bar icon; Help → Diagnostics shows what it found (Xcode, simulators, Android SDK, AVDs, Flutter, Java …) and its log. The Preview Worker never changes your own simulators, AVDs or projects: it clones what it needs (meik-…) and removes only those. (Run on a device, below, is different: it installs on the device you pick.) Your meik server needs a Preview Service for it (an administrator sets it up). On Windows and Linux the worker is not available; everything else is.

Your repositories

Settings → your server → Folders lists the folders with your clones (for example ~/src). Meik Desktop finds the clones there, matches them to the server's repositories by their git remotes, and never writes outside these folders. On a task page, On this computer then offers:

  • Take over in my editor: a worktree on the task's branch in <folder>/.meik-worktrees/, opened in your editor — your own checkout is not touched;
  • Open the repository in your editor (the one you chose last for that repository, else the first one installed);
  • Run its tests here: the repository's own test command (from its package.json, Gradle, Maven, Go, Cargo or Python files) in a sandbox without network that writes only inside the repository;
  • Run on a device (macOS): see below;
  • the git command that checks out the branch, to copy (also in a browser).

Run on a device (macOS)

Run on a device in On this computer lists the Android emulators (AVDs) and iOS simulators installed on this Mac — the ones Android Studio's Device Manager and Xcode show — with the running ones marked. Pick one and Build and run: Meik Desktop takes over the task's branch in a worktree (as above), builds the app there with your own Android SDK / Xcode, starts the device when it is off, installs the app and opens it. You see the steps and the build log while it works; Cancel stops the build. The device keeps running afterwards, with the app on it — it is your own emulator or simulator, not a copy. No Preview Service is needed.

  • The build runs in the same sandbox as the Preview Worker's: it writes only to the worktree, its own session folder and the toolchain caches (~/.gradle, DerivedData, CocoaPods), and reaches the network only through a filter. That filter allows Maven Central, Google, the Gradle plugin portal (iOS: GitHub, the CocoaPods CDN) and the hosts your own clone already uses in its Gradle settings, Gradle wrapper and Podfile — read from your checkout, not from the task's branch, so a change cannot add a host. When such a host is on your intranet (a company Nexus), its address is allowed too; you need to be on the network or VPN that reaches it.
  • An app module that uses a convention plugin (alias(libs.plugins.acme.android.application)) is found like one with com.android.application; a project with several app modules names one in .meik/preview.yaml (app.module).
  • One run at a time. The steps and the result are in the local audit log (devices.run android:<AVD>).

Disk space. Meik Desktop cleans up after itself: the task sources it downloaded (~/.meik/device-runs) and the Xcode build folders of its iOS builds (~/Library/Developer/Xcode/DerivedData/meik-*) that were not used for a week go when the app starts and after each run, and when the disk runs low (under 20 GB) every Meik build folder but the newest goes too. Your own Xcode and Gradle caches are never touched.

Where the code comes from. On the issue's Preview tab (section On my emulators and simulators, Android and iOS tasks only) and on a task page, the code is the task's own worktree, downloaded from the server — you need no clone. When one of your configured folders holds a clone of the repository, its untracked local settings (local.properties, secret.properties) and its downloaded dependencies (Tuist / SwiftPM .build, cloned in copy-on-write so it costs no disk) are reused; its code is not. Settings you keep for a repository without a clone go in ~/.meik/local/<repo>/ (for example ~/.meik/local/ibam-android-app/local.properties with gitlab.token=…).

Android. Gradle runs on the project's own Java toolchain when it is installed (projectJvmToolchain / jvmToolchain(N), like Android Studio's Gradle JDK). With product flavors one variant is built, a test environment's first (dev, qa, staging, regression…; set app.variant in .meik/preview.yaml for another). Missing SDK components the build asks for (a platform, build-tools) are installed with the SDK's own sdkmanager (Command-line Tools must be installed; licenses you never accepted are not accepted for you). A device that is off is started with your Mac's DNS servers (VPN included); one already running is used as it is. A device that hangs on its quick-boot snapshot (one cut while it was being saved, when the Mac slept or the emulator was killed) is stopped and started once more without it, as Android Studio's Cold Boot Now does; the snapshot is left alone. If even that does not boot, the result says to wipe the device's data in Android Studio's Device Manager or to pick another device. The package and launcher are read from the built APK; the app is opened with am start (its launcher activity, or the package's launcher intent when the build tools cannot read it), which carries the Demo data signal below. A device short of space has its apps' caches cleared (never their data) and the install is tried once more. When an older copy of the same app is what leaves no room (an update needs room for both), the result names its version and offers Replace the installed app and retry: that uninstalls the copy first, so its data on that device (sign-in, settings) is deleted — only when you click it.

iOS. Tuist projects are generated first (tuist install, tuist generate), Swift packages are resolved by Apple's swift with its own manifest sandbox on (every package URL must be on an allowed host), then the simulator build runs for your Mac's architecture. The newest Xcode installed builds (the repository's .xcode-version when it pins one); xcode-select is not changed. A branch whose binary frameworks were built by a newer Swift says which Xcode it needs.

Good to know: the first build of a big app takes up to an hour (later ones reuse Gradle's / Xcode's caches); an app that sets FLAG_SECURE blocks screenshots made inside Android — the device's screen in meik (below) still shows it; a device without room for the app says so — free space on it or pick another one.

Demo data (mock backend)

A change to an app often calls backend code that meik's agents are writing in the same issue and that is not deployed yet: against the real test backend the new screens would fail ("validation fail", an empty screen). So the agents build every app change as a reviewable draft: each backend call the change adds or changes also has a review mock that answers the way the backend will (the same paths, field names, values and error codes as the backend task's branch), keeps what you create for the session (a transfer you save shows up in the list) and has an error case.

Demo data (mock backend) — Demo data (saxta backend) in Azerbaijani — next to the device picker is on by default: Build and run opens the app for review (Android: the launch extra meik_review_mocks; iOS: the launch argument -meik_review_mocks YES), so a debug or test build answers from its review mocks and shows a small Demo data marker. Walk the whole flow — form, confirmation, success, list — before the backend is deployed. A release build never uses the mocks, whatever this setting says.

Turn the checkbox off to run the app against the real test backend instead (once the backend change is deployed there). Your choice is remembered on this computer. The build log says which one you asked for ([meik] demo data: requested … or … off). An app opened again by hand — from the home screen — starts without the launch signal, so with its mocks off; Build and run again to get them back. The option needs a Meik Desktop that knows it; with an older one the checkbox does not show and the app starts as before.

The device's screen in meik (macOS)

After Build and run the device's live screen opens right there — in the issue's Preview tab or on the task page — in a phone-shaped panel, and you use the app from it: click to tap, drag to swipe or scroll, and with the screen focused (click it) type — letters go in as text, Enter, Backspace and the arrow keys as keys, Esc is Back on Android. For a device that is already running, Show its screen here opens the same view without a build. Above the screen:

ButtonDoes
Back · Home · Recent appsThe device's own buttons (Back and Recent apps on Android; iOS has Home only)
Type textA field whose text is typed on the device — Azerbaijani letters too
CommentComment mode: mark what should change and say how, for the agent (see Review on the device)
Save a screenshotSaves the screen as you see it (PNG)
Open the device windowBrings the emulator or Simulator.app to the front
StopCloses the view; the device and the app keep running

Show the emulator / simulator window (next to the device list, off by default) decides whether a device Meik starts gets its own window: off, the emulator runs in the background and Simulator.app is not opened — you use the device in meik. The choice is remembered on this computer. A device that already runs keeps its window as it is.

The view stops when you close it, leave the page, close the window, quit Meik or stop the device, and when you open the same device's screen in another window. Its start and end are written to the audit log (devices.mirror); your taps and typing are not.

Android. Meik starts an emulator with its own control connection (the one Android Studio's Running Devices uses: on this Mac only, locked with the emulator console's token from ~/.emulator_console_auth_token). The screen comes from the emulator itself — up to 30 frames a second, sized to the panel — so an app that blocks screenshots inside Android (FLAG_SECURE) still shows, as it does in the emulator's own window; mind that Save a screenshot then saves it too. Taps and keys reach the device in a few milliseconds. Text beyond plain ASCII goes through the device's clipboard. An emulator started some other way (Android Studio, or by an older Meik) is shown through its console instead: fewer frames (about 6–20 a second), plain ASCII text only; close it and run the app again from meik for the full view. Gboard may once offer Try out your stylus — press Cancel.

iOS. The screen comes from the simulator's screenshots (simctl io … screenshot, 6–13 a second, a quarter to half a second behind). Touch goes through Meik's small UI-test runner (the one the Preview Worker uses): it is built once per Xcode (about ten seconds, Touch input is getting ready), installed on the simulator while the view is open and removed when it closes. A tap lands within a tenth of a second, but the next one waits until the app settles; a drag becomes a swipe when you let go. Typing goes to the app Build and run opened (for a simulator shown without a build, taps, swipes and Home work, typing does not). Simulator.app is not needed.

Review on the device (macOS)

When the app on the device is not as it should be — this button should be full width and say "Davam et", this text is cut, the list should show the progress bar — point at it on the live screen and tell the agent.

  1. Comment (above the screen, next to the device's buttons) turns comment mode on: the screen gets a red edge and your clicks no longer reach the device. Drag a rectangle over what should change, or click a point; with the screen focused, Enter marks the whole screen.
  2. The screen freezes for that comment and What should change? opens next to the numbered area. Write it (up to 1000 characters) and Add comment (Ctrl+Enter); Esc cancels. Meik also reads which element of the app is under the area — on Android from the window's UI hierarchy (uiautomator dump, read-only), on iOS from the UI runner — and shows it ("Under it: Button "Continue""). A screen without accessibility data (a Compose screen without semantics) or one that cannot be read just says so; the comment is fine without it.
  3. Turn Comment off, go to the next screen of the app, and comment again. Comments on the Android and the iOS card collect in one list under the cards — Comments for the agents — grouped by task, numbered, with the screen and its marked area. Edit or Delete any of them. They stay while you switch tabs or pages in this window; a reload or another window starts empty.
  4. Start — send the changes to the agents sends each task its own comments in one go. (Send only T-21 sends one task's comments and leaves the others in the list.) The panel then says Sent to the agents — T-21 is working on 3 comments; the issue goes back to development, the board shows it, and each card follows its task: T-21 is working on 3 of your comments (revise 2), then New version ready — build and run to check. Press Build and run again to get the new version. The issue's overview lists what you sent ("T-21 · sent in revise 2") with the screens.

What the agent gets: each comment's screen with the area outlined in red and numbered, and the same screen unmarked, in its workspace (_attachments/feedback/T-21-2-1.png, …-clean.png), the comments in order with the area, the device, the app and the element under it, and the instruction to open each image and change exactly what is marked. The other tasks of the issue (a backend task) are not touched.

When Start does not send: the comments stay in the list and the panel says why — the issue is being worked on (send when it is back for review), a task is still running, or someone else has just sent comments for this round. The panel also shows what the issue's budget has left; when that is less than about one round of the tasks (at least $5), Budget nearly used up — add budget holds the send back: add budget (maintainers; a product owner asks one) or choose Send anyway. A task whose own budget is spent gets what the issue has left when your comments start it.

Comments go to the tasks of an issue; on a task page, the same Comment tool and list work for that task. In a browser (without Meik Desktop) there is no device screen to comment on: use Send back with comments with a screenshot on the issue.

Notifications

What meik notifies you about, quiet hours and channels are set in meik (Settings → Notifications in the web UI). The app shows what the server sends as system notifications: Approve on an approval request approves it, Open opens the page, Snooze 1 h brings it back later. Turn system notifications off in Settings → Preferences if you only want the bell.

meik:// links open in the app, in the right server: meik://issue/12, meik://task/T-5, meik://feature/3, meik://preview/12, meik://approval/9; add ?server=meik.example when you use several servers.

The quick bar

⌘⇧K (Ctrl+Shift+K on Windows and Linux), from any app, opens the quick bar: type to find issues, features, repositories and people of the server you use; Enter opens, ⌘Enter runs the item's action (start an issue, show its preview, approve). Approvals waiting for you are listed before you type. Start with ? to ask meik about the issue you have open; paste or drop a file to attach it to that issue.

Meetings

File → Meeting Companion… (or the tray) opens a small window that stays over your meeting app. It first says what it will listen to — your microphone, and if you leave it on, the sound of the other apps (the people in your call) — so you can tell everyone before you press Start listening. While it listens a red dot and a timer show, and it sends only speech (silence stays on your computer) to your meik server, which writes the transcript, notes raised hands and proposes decisions; Confirm a decision in the window. Press ⌘⇧M (Ctrl+Shift+M) to ask meik a question out loud and again to send it; the answer appears and, if you like, is read aloud. Mute pauses your microphone, Stop ends the meeting. Audio is not kept on your computer unless you turn on Settings → Preferences → Meetings: keep a recording (WAV files in Music → Meik Meetings).

The first time, macOS asks for the microphone; the sound of other apps needs Screen Recording permission (System Settings → Privacy & Security). If the server does not take meetings yet, the window says so.

Files and screenshots

Drop files on the Meik icon in the dock or taskbar: the quick bar offers to attach them to the issue the window shows or to create a task from them. File → Capture Screenshot… (⌘⇧2) lets you draw on the screenshot (pen, rectangle) and attach it, make a task from it or save it; on macOS it needs the Screen Recording permission (System Settings → Privacy & Security). Downloads from meik (diff.patch, report.md, demo videos) ask where to save them.

Preferences

Settings → Preferences: start Meik when you log in (it waits in the menu bar / tray), the language (English or Azərbaycanca; the server's pages follow your meik profile), the theme, and whether server notifications show as system notifications. Meik Desktop has no telemetry: it talks to your meik servers only.

When something is wrong

  • The server is unreachable: the app says so and offers Retry; it checks every few seconds and returns to the page you were on when the server answers. The issues and features you looked at last are listed there and open read-only. Approvals, comments and messages you send meanwhile wait in the app and go out, in order, when the server is back (the tray counts them); one the server refuses, or one older than a day, is dropped and you get a notification. The Preview Worker keeps running.
  • Update Meik Desktop: your server needs a newer app; download it from the server's Downloads page.
  • Help → Diagnostics checks each server, shows what the Preview Worker finds on your computer (Xcode, simulators, Android SDK, emulators, Java, Flutter …) and Copy diagnostics puts a report for support on the clipboard (without tokens or passwords).
  • Help → Restart in Safe Mode turns every local capability off, for troubleshooting.