refactor: repo folder structure (#1038)

* refactor(repo): move OpenWork apps into apps and ee layout

Rebase the monorepo layout migration onto the latest dev changes so the moved app, desktop, share, and cloud surfaces keep working from their new paths. Carry the latest deeplink, token persistence, build, Vercel, and docs updates forward to avoid stale references and broken deploy tooling.

* chore(repo): drop generated desktop artifacts

Ignore the moved Tauri target and sidecar paths so local cargo checks do not pollute the branch. Remove the accidentally committed outputs from the repo while keeping the layout migration intact.

* fix(release): drop built server cli artifact

Stop tracking the locally built apps/server/cli binary so generated server outputs do not leak into commits. Also update the release workflow to check the published scoped package name for @openwork/server before deciding whether npm publish is needed.

* fix(workspace): add stable CLI bin wrappers

Point the server and router package bins at committed wrapper scripts so workspace installs can create shims before dist outputs exist. Keep the wrappers compatible with built binaries and source checkouts to avoid Vercel install warnings without changing runtime behavior.
This commit is contained in:
Omar McAdam
2026-03-19 11:41:38 -07:00
committed by GitHub
parent 3738ae47a1
commit 2b91b4d777
638 changed files with 662 additions and 475 deletions

View File

@@ -66,8 +66,8 @@ services:
# --- Use source entrypoints for the dev stack ---
# The orchestrator can spawn .ts files via Bun directly, which avoids bind-mount
# issues from bun --compile inside Docker on macOS.
export OPENWORK_SERVER_BIN="/app/packages/server/src/cli.ts"
export OPENCODE_ROUTER_BIN="/app/packages/opencode-router/src/cli.ts"
export OPENWORK_SERVER_BIN="/app/apps/server/src/cli.ts"
export OPENCODE_ROUTER_BIN="/app/apps/opencode-router/src/cli.ts"
# --- Resolve tokens ---
if [ -z "$$OPENWORK_TOKEN" ]; then
@@ -169,7 +169,7 @@ services:
export HOST="0.0.0.0"
export PORT="5173"
exec pnpm --filter @different-ai/openwork-ui exec vite \
exec pnpm --filter @openwork/app exec vite \
--host 0.0.0.0 \
--port 5173 \
--strictPort
@@ -196,7 +196,7 @@ services:
mkdir -p /app/tmp/share-service-blobs
echo "[share] Building Next app..."
pnpm --dir services/openwork-share build
pnpm --dir apps/share build
echo ""
echo "============================================"
@@ -205,7 +205,7 @@ services:
echo "============================================"
echo ""
exec pnpm --dir services/openwork-share exec next start --hostname 0.0.0.0 --port 3000
exec pnpm --dir apps/share exec next start --hostname 0.0.0.0 --port 3000
ports:
- "${SHARE_PORT:-3006}:3000"
healthcheck:

View File

@@ -4,7 +4,7 @@ services:
context: .
dockerfile: Dockerfile
args:
# Keep this in sync with packages/orchestrator/package.json if you want a pinned release.
# Keep this in sync with apps/orchestrator/package.json if you want a pinned release.
OPENWORK_ORCHESTRATOR_VERSION: 0.11.22
ports:
- "8787:8787"