Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
ff99483
Merge pull request #2 from CopilotKit/main
Hamza35779 Nov 21, 2026
7294ef6
Rename the product to MyMuse and add distributable desktop and mobile…
Hamza35779 Nov 22, 2026
b6c2fb6
Shrink the desktop installers and commit the packaging icon and hook
Hamza35779 Nov 22, 2026
f078bd8
Publish tagged builds to GitHub Releases and skip unconfigured mobile…
Hamza35779 Nov 22, 2026
b9f656f
Give the release job an explicit repository for gh
Hamza35779 Nov 22, 2026
f23c2fb
Build the mobile installers on the runners instead of EAS
Hamza35779 Nov 22, 2026
382f262
Document the native mobile builds and the unsigned IPA caveat
Hamza35779 Nov 22, 2026
9b7a59a
Add store-signed builds and an emulator smoke test for the APK
Hamza35779 Nov 22, 2026
709f151
Temporarily trigger the APK smoke test from a branch
Hamza35779 Nov 22, 2026
c8b8df5
Start the sample API with a placeholder key in the smoke test
Hamza35779 Nov 22, 2026
6a5d878
Run the APK smoke test on macOS, where the emulator has acceleration
Hamza35779 Nov 22, 2026
b2017d5
Run the emulator without acceleration, on a matching x86_64 image
Hamza35779 Nov 22, 2026
c3089ac
Force TCG emulation for the APK smoke test
Hamza35779 Nov 22, 2026
00266e6
Wait for the package service before installing in the smoke test
Hamza35779 Nov 22, 2026
68fa944
Keep each smoke test command on one line for the emulator action
Hamza35779 Nov 22, 2026
7d167d7
Give the software-emulated AVD more memory and two cores
Hamza35779 Nov 23, 2026
7f18e4c
Use the lighter AOSP image and retry the install
Hamza35779 Nov 23, 2026
bc021fb
Give MyMuse a new plush logo and a feature gallery
Hamza35779 Nov 23, 2026
9891949
Make the APK smoke test build from source and run on demand
Hamza35779 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PORT=8787
HOST=127.0.0.1
PUBLIC_API_URL=http://localhost:8787
ALLOWED_ORIGINS=http://localhost:8081,http://127.0.0.1:8081
DATA_DIR=.openfuse
DATA_DIR=.mymuse
TASK_WORKER_ENABLED=true
# Rate limiting keys on the socket address. Set true only behind a reverse proxy that
# overwrites X-Forwarded-For; otherwise callers can spoof it.
Expand All @@ -32,7 +32,7 @@ WEB_SEARCH_ENABLED=true
# OPENAI_CHAT_COMPLETIONS=true

# Live Google workspace: WORKSPACE_MODE=live, AGENT_BACKEND=model.
# OPENFUSE_ACCESS_KEY= # random secret, at least 24 characters
# MYMUSE_ACCESS_KEY= # random secret, at least 24 characters
# TOKEN_ENCRYPTION_KEY= # 32 random bytes encoded as base64
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
Expand All @@ -45,7 +45,7 @@ WEB_SEARCH_ENABLED=true
# Browser worker (separate from the task worker):
# BROWSER_WORKER_URL=http://127.0.0.1:8790
# WORKER_TOKEN= # same random 32+ character secret in API and browser worker
WORKER_DATA_DIR=.openfuse/browser-profiles
WORKER_DATA_DIR=.mymuse/browser-profiles
WORKER_HOST=127.0.0.1

# An optional external raw AG-UI agent replaces conversational routing only.
Expand All @@ -60,7 +60,7 @@ WORKER_HOST=127.0.0.1
# npx copilotkit@latest project select
CPK_INTELLIGENCE_API_KEY=

# CopilotKit SDK telemetry goes through the shared sink to PostHog, tagged OpenFuse.
# CopilotKit SDK telemetry goes through the shared sink to PostHog, tagged MyMuse.
# project select also writes CPK_TELEMETRY_ID: preserve that generated value and
# deploy it alongside CPK_INTELLIGENCE_API_KEY to link runtime usage to the account.
# Do not invent an identity or copy one from another project.
Expand All @@ -72,14 +72,14 @@ CPK_INTELLIGENCE_API_KEY=
# DO_NOT_TRACK=1

# Optional private Docker Linux computer (separate from the browser).
# Build first: docker build -t openfuse-computer:local apps/computer
# Build first: docker build -t mymuse-computer:local apps/computer
# Docker must be reachable from the API and any separate task worker.
COMPUTER_ENABLED=false
COMPUTER_IMAGE=openfuse-computer:local
COMPUTER_IMAGE=mymuse-computer:local
# Optional deployment name shared by API and worker. When unset, a new install keeps a random
# name in DATA_DIR; an install created before that keeps a hash of PUBLIC_API_URL.
# COMPUTER_DEPLOYMENT_ID= # e.g. from `openssl rand -hex 12`
# Optional scoped Docker engine, e.g. DOCKER_CONTEXT=colima-openfuse
# Optional scoped Docker engine, e.g. DOCKER_CONTEXT=colima-mymuse
# Or run each owner's computer in an E2B Desktop sandbox instead of Docker
# (graphical desktop with internet access; see docs/COMPUTER.md):
# COMPUTER_PROVIDER=e2b-desktop # default: docker
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug report
description: Report a reproducible OpenFuse failure
description: Report a reproducible MyMuse failure
title: "[Bug] "
body:
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: textarea
id: outcome
attributes:
label: What outcome should OpenFuse handle?
label: What outcome should MyMuse handle?
validations:
required: true
- type: textarea
Expand Down
141 changes: 141 additions & 0 deletions .github/workflows/apk-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: APK smoke test

# Builds the APK from the checkout, installs it in an Android emulator, launches
# it, and checks that it opened a session with the API. The app defaults to http://10.0.2.2:8787 on
# Android, which is the host loopback from inside the emulator, so the API runs
# on the runner behind a logging proxy that records every request.

on:
workflow_dispatch:

permissions:
contents: read

jobs:
emulator:
name: Install and launch the APK
# GitHub's runners expose no nested virtualization, so the emulator runs
# without hardware acceleration. Same-arch x86_64 emulation is the fastest
# option that still executes the released native libraries.
runs-on: ubuntu-latest
timeout-minutes: 90
env:
# Recent emulator builds refuse software CPU emulation unless asked.
ANDROID_I_WANT_MY_TCG: "yes"
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- run: pnpm install --frozen-lockfile
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Build the APK
working-directory: apps/mobile
run: |
pnpm exec expo prebuild --platform android --no-install
cd android
./gradlew assembleRelease --no-daemon
mkdir -p ../../../apk
cp app/build/outputs/apk/release/app-release.apk ../../../apk/MyMuse.apk
ls -l ../../../apk
- name: Start the API and a logging proxy
run: |
set -euo pipefail
# No CopilotKit key is available here, but the server only needs one to
# be non-empty in sample mode. Protected routes answer 401 without a
# session, which still proves the app reached the API.
WORKSPACE_MODE=sample COPILOTKIT_TELEMETRY_DISABLED=true \
CPK_INTELLIGENCE_API_KEY=smoke-test-placeholder PORT=8788 pnpm dev > /tmp/api.log 2>&1 &
ready=false
for _ in $(seq 1 60); do
if curl -sf http://127.0.0.1:8788/api/health >/dev/null; then ready=true; break; fi
sleep 2
done
if [ "$ready" != true ]; then
echo "::error::The API did not start"
tail -20 /tmp/api.log
exit 1
fi
curl -s http://127.0.0.1:8788/api/health
echo
cat > /tmp/proxy.mjs <<'JS'
import fs from "node:fs";
import http from "node:http";

const log = fs.createWriteStream("/tmp/requests.log", { flags: "a" });
http
.createServer((req, res) => {
log.write(`${req.method} ${req.url}\n`);
const upstream = http.request(
{ host: "127.0.0.1", port: 8788, path: req.url, method: req.method, headers: req.headers },
(response) => {
res.writeHead(response.statusCode ?? 502, response.headers);
response.pipe(res);
},
);
upstream.on("error", () => {
res.writeHead(502);
res.end();
});
req.pipe(upstream);
})
.listen(8787, "127.0.0.1");
JS
node /tmp/proxy.mjs > /tmp/proxy.log 2>&1 &
sleep 2
# Talk to the API directly so the request log only holds app traffic.
curl -s -o /dev/null -w "api health: %{http_code}\n" http://127.0.0.1:8788/api/health
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
# The plain AOSP image boots far more reliably than google_apis when
# the CPU is emulated in software; the app needs no Play services.
target: default
arch: x86_64
disable-linux-hw-accel: true
emulator-boot-timeout: 1800
disable-animations: true
# Software emulation is CPU bound: a 2-core AVD with extra RAM keeps
# system_server from being starved (and killed) right after boot.
emulator-options: >-
-no-window -gpu swiftshader_indirect -no-snapshot -no-snapshot-save
-noaudio -no-boot-anim -memory 3072 -cores 2
script: |
set -e
# Software emulation boots slowly, so wait for the package service
# instead of assuming adb being up means the system is ready.
for _ in $(seq 1 60); do adb shell pm path android > /dev/null 2>&1 && break; sleep 5; done
adb shell pm path android
for _ in $(seq 1 5); do adb install -r apk/*.apk && break; sleep 20; done
adb shell pm list packages | grep app.mymuse.mobile
adb shell am start -n app.mymuse.mobile/.MainActivity
sleep 45
adb shell pidof app.mymuse.mobile
adb logcat -d > /tmp/logcat.txt
if grep -q "FATAL EXCEPTION" /tmp/logcat.txt; then echo "::error::The app crashed on launch"; grep -A 25 "FATAL EXCEPTION" /tmp/logcat.txt; exit 1; fi
adb exec-out screencap -p > /tmp/screen.png
ls -l /tmp/screen.png
- name: Check that the app called the API
run: |
echo "--- API requests seen ---"
cat /tmp/requests.log || true
# The app opens a session before it can show anything, so a session
# request proves the APK really reached the API.
grep -q "POST /api/session" /tmp/requests.log || {
echo "::error::The app never opened a session with the API"
exit 1
}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
if: always()
with:
name: apk-smoke-evidence
if-no-files-found: warn
path: |
/tmp/screen.png
/tmp/logcat.txt
/tmp/requests.log
/tmp/api.log
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ jobs:
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- run: pnpm install --frozen-lockfile
- name: Build the isolated Linux computer
run: docker build -t openfuse-computer:local apps/computer
run: docker build -t mymuse-computer:local apps/computer
- name: Verify computer isolation, persistence and cancellation
run: pnpm test:computer
Loading