Commit Graph

127 Commits

Author SHA1 Message Date
Omar McAdam
6ea5499f1b fix(ci): install Daytona CLI from latest GitHub release (#1047)
Co-authored-by: Omar McAdam <omar@OpenWork-Studio.localdomain>
2026-03-19 16:24:30 -07:00
Omar McAdam
5cdf86b120 feat(den): add Daytona worker activity heartbeats and release snapshot automation (#1045)
* feat(den): add daytona activity heartbeats and snapshot release automation

* ci: run Daytona snapshot publish from release workflow

---------

Co-authored-by: Omar McAdam <omar@OpenWork-Studio.localdomain>
2026-03-19 15:38:11 -07:00
Omar McAdam
aa313c0ac9 fix: rename openwork-server package references (#1040)
Co-authored-by: Omar McAdam <omar@OpenWork-Studio.localdomain>
2026-03-19 14:27:34 -07:00
Omar McAdam
2b91b4d777 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.
2026-03-19 11:41:38 -07:00
Jan Carbonell
ec6ad9d667 updated readme (#1019) 2026-03-18 12:16:23 -07:00
Jan Carbonell
729e0519aa minor detail (#1018) 2026-03-18 11:16:21 -07:00
Jan Carbonell
58f635a345 valid schema by unique ids (#1017) 2026-03-18 10:52:39 -07:00
Jan Carbonell
bdc47fe5f3 Fix/bug template (#1016)
* bug template improvements

* bugfix v2
2026-03-18 10:49:32 -07:00
Omar McAdam
7dc28136b1 chore(den): remove legacy den v1 service artifacts (#1005)
Retire the legacy services/den implementation and related disabled deploy workflows so Den v2 is the only maintained service path.
2026-03-18 09:55:29 -07:00
Omar McAdam
0867cf6fa7 fix den-v2 desktop auth handoff parity (#976)
* fix(den-v2): add desktop auth handoff endpoints

* fix(den-db): restore desktop handoff grant table

* chore(den): disable github deploy workflows
2026-03-17 11:01:19 -07:00
Omar McAdam
5d68420f70 fix(den): enforce planetscale env sync and unique org slugs (#972) 2026-03-16 21:47:19 -07:00
Benjamin Shafii
04cbea3886 ci: add macos arm64 alpha artifact workflow 2026-03-16 21:29:39 -07:00
ben
0e88389849 feat(den): add daytona-backed docker dev flow (#918)
* feat(den): add daytona-backed docker dev flow

* fix(den): allow multiple cloud workers in dev

* fix(den): use Daytona snapshots for sandbox runtime

Use a prebuilt Daytona snapshot for the dev worker runtime so sandboxes start with openwork and opencode already installed. Pass the snapshot through the local Docker flow and add a helper to build the snapshot image for repeatable setup.

* chore(den): lower Daytona snapshot defaults

Reduce the default snapshot footprint to 1 CPU and 2GB RAM so local Daytona worker testing fits smaller org limits more easily.

* Omar is comfortable

Make Daytona-backed cloud workers stable enough to reconnect through a dedicated proxy instead of persisting expiring signed preview URLs. Split the proxy into its own deployable service, share Den schema access through a common package, and fix the web badge so healthy workers show ready.

* chore(den-db): add Drizzle package scripts

Move the shared schema package toward owning its own migration workflow by adding generate and migrate commands plus a local Drizzle config.

* chore: update lockfile

Refresh the workspace lockfile so the new den-db Drizzle tooling is captured in pnpm-lock.yaml.

* feat(den-worker-proxy): make Vercel deployment-ready

Align the proxy service with Vercel's Hono runtime entry pattern and keep a separate Node server entry for Docker/local runs. Also scaffold the Vercel project/env setup and wire Render deploy sync to pass Daytona variables needed for daytona mode.

* feat(den-db): add db mode switch for PlanetScale

Support DB_MODE=planetscale with Drizzle's PlanetScale serverless driver while keeping mysql2 as the local default. This lets Vercel-hosted services use HTTP database access without changing local development workflows.

* refactor(den-db): adopt shared TypeID ids

Move the Den TypeID system into a shared utils package and use it across auth, org, worker, and sandbox records so fresh databases get one consistent internal ID format. Wire Better Auth into the same generator and update Den request boundaries to normalize typed ids cleanly.

* fix(den): restore docker dev stack after refactor

Include the shared utils package in the Den Docker images, expose MySQL to the host for local inspection, and fix the remaining Den build/runtime issues surfaced by the Docker path after the shared package and TypeID changes.

* docs(den): document Daytona snapshot setup

Add README guidance for building and publishing the prebuilt Daytona runtime snapshot, including the helper script, required env, and how to point Den at the snapshot for local Daytona mode.

* refactor(den-db): reset migrations and load env files

Replace the old Den SQL migration history with a fresh baseline for the current schema, and let Drizzle commands load database credentials from env files. Default to mysql when DATABASE_URL is present and otherwise use PlanetScale credentials so local Docker and hosted environments can share the same DB package cleanly.

* fix(den): prepare manual PlanetScale deploys

Update the Render workflow and Docker build path for the shared workspace packages, support PlanetScale credentials in the manual SQL migration runner, and stop auto-running DB migrations on Den startup so schema changes stay manual.

* feat(den-v2): add Daytona-first control plane

Create a new den-v2 service from the current Daytona-enabled control plane, default it to Daytona provisioning, and add a dedicated Render deployment workflow targeting the new v2 Render service.

* feat(den-worker-proxy): redirect root to landing

Send root proxy traffic to openworklabs.com so direct visits to the worker proxy domain do not hit worker-resolution errors.

---------

Co-authored-by: OmarMcAdam <gh@mcadam.io>
2026-03-16 21:20:26 -07:00
ben
fe913cdcdd Delete .github/workflows/deploy-den.yml 2026-03-16 17:57:17 -07:00
Omar McAdam
b68bfafbbe feat(den): support configurable Better Auth trusted origins (#958)
* feat(den): support dedicated Better Auth trusted origins

* fix(den): unify trusted origins env key naming
2026-03-16 14:11:43 -07:00
ben
41c837ebe7 Task/aur validate fast trigger (#944)
* feat(ci): add standalone AUR validate workflow

* fix(ci): avoid expression parsing in AUR workflow

* fix(ci): preserve workspace path for makepkg steps

* fix(ci): make AUR smoke launch path-aware

* fix(ci): relax AUR smoke gate to install sanity

* fix(ci): use generic package install smoke assertion

* fix(ci): preseed AUR host keys before publish

* fix(ci): inline AUR push with accept-new host keys
2026-03-15 17:55:15 -07:00
blacksmith-sh[bot]
bd78fd1300 Migrate workflows to Blacksmith (#927)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
(cherry picked from commit a2e043f852)
2026-03-15 16:06:20 -07:00
Benjamin Shafii
ce65056615 revert: roll back post-5831626 CI pipeline changes 2026-03-15 13:03:03 -07:00
Benjamin Shafii
a433814b5d fix(ci): run orchestrator publish from package cwd 2026-03-15 12:43:19 -07:00
Benjamin Shafii
a034be242a chore(ci): disable linux arm gha build 2026-03-15 12:25:02 -07:00
Omar McAdam
83459c3352 ci: split desktop release packaging (#935) 2026-03-15 10:05:07 -07:00
Omar McAdam
b3040ce0dd ci: fix windows release diagnostics (#934) 2026-03-15 08:08:10 -07:00
Omar McAdam
a570ce7880 ci: streamline desktop release packaging (#933) 2026-03-15 07:55:48 -07:00
Omar McAdam
107ca63e80 ci: pin release runners per target (#929) 2026-03-14 21:53:41 -07:00
blacksmith-sh[bot]
a2e043f852 Migrate workflows to Blacksmith (#927)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
2026-03-14 20:47:08 -07:00
Benjamin Shafii
371adb5cbe ci: route all Linux release builds through larger runner
Use the configured larger-runner label for both Linux release matrix targets so x86_64 and aarch64 builds share the same faster GitHub-hosted runner path and logging.
2026-03-14 20:10:23 -07:00
Benjamin Shafii
5831626ca3 ci: route Linux x64 builds through configurable larger runner
Allow release and desktop workflows to target the new GitHub-hosted larger runner without hard-coding it, while keeping ubuntu-22.04 as a fallback and logging the effective runner selection.
2026-03-14 17:38:22 -07:00
Omar McAdam
011cbe718f fix(den): stop pinning stale worker opencode builds (#905) 2026-03-13 12:36:34 -07:00
Omar McAdam
c01bd652c4 Task/openwork worktree 20260313 1109 (#897)
* fix version

* fix version again
2026-03-13 11:19:58 -07:00
Omar McAdam
aa9cc43fab fix version (#896) 2026-03-13 11:12:44 -07:00
Jan
d70f0348d2 Add Google auth to Den signup (#847)
* feat(den): add google auth provider

* feat(web): add social signup buttons for den

---------

Co-authored-by: jcllobet <jcllobet@users.noreply.github.com>
2026-03-11 18:30:35 -07:00
ben
3a3e4afef7 fix(auth): move github oauth callbacks to app domain (#801) 2026-03-08 12:55:33 -07:00
Benjamin Shafii
7a6426805c chore(metrics): classify release downloads for PostHog v2 2026-03-07 07:11:46 -08:00
Benjamin Shafii
90f1310aa9 ci: pin default OpenCode version to 1.2.20 2026-03-06 11:11:16 -08:00
xj
86dc0feeb4 fix: prevent shell injection in opencode-agents workflow (#722)
The triage-issue job interpolated $ISSUE_TITLE and $ISSUE_BODY unquoted
inside a double-quoted shell string, allowing any GitHub user to execute
arbitrary commands by opening an issue with shell metacharacters.

The duplicate-prs job similarly interpolated $COMMENT unquoted into a
gh pr comment --body argument.

Fix both by using printf with %s (prevents shell interpretation) and
--body-file (avoids inline interpolation entirely).

Co-authored-by: xj <gh-xj@users.noreply.github.com>
2026-03-03 16:19:49 -08:00
ben
70aa46b255 docs(contrib): add PR template and hygiene baseline (#724) 2026-03-03 16:09:38 -08:00
xj
5a58f62a26 fix(session): improve editor/artifact file open reliability (#704)
* fix(session): improve local file-open fallback and diagnostics

* fix(session): normalize file URI local path resolution

* test(session): cover file URI normalization edge cases

* test(app): include local file-path regression in e2e flow

* fix(ci): run app e2e script and normalize file:/ URIs

* test(app): run local file-path regression without bun

---------

Co-authored-by: xj <gh-xj@users.noreply.github.com>
2026-03-02 16:04:31 -08:00
Benjamin Shafii
581f2007a5 fix den auth trusted origin defaults 2026-02-23 12:19:38 -08:00
Benjamin Shafii
091672a790 fix(den): restore auth base URL to service host 2026-02-23 12:13:22 -08:00
Benjamin Shafii
fe0fb9c9c9 fix(den): use app proxy URL for OAuth callbacks 2026-02-23 12:08:21 -08:00
Benjamin Shafii
4a50902604 feat(auth): simplify get-started signup and add GitHub sign-in 2026-02-23 11:50:20 -08:00
Benjamin Shafii
ceb041b298 fix(den): set trusted origins for app auth traffic 2026-02-23 09:21:48 -08:00
Benjamin Shafii
7b13eb9d7d fix(den): wire vanity domains with safe render fallback 2026-02-22 18:01:10 -08:00
Benjamin Shafii
233ee081c8 feat(cloud): add worker delete flow and custom worker domains 2026-02-22 16:15:20 -08:00
ben
af24d4cedf chore(den): default worker plan to render standard (#642) 2026-02-21 20:46:03 -08:00
Benjamin Shafii
c3494135ff feat(den-web): rename den service and ship new 3-step cloud setup UX 2026-02-21 16:47:59 -08:00
Benjamin Shafii
f62c762c0f fix(deploy): use app domain for Polar return URLs 2026-02-21 16:05:34 -08:00
ben
1870cd17a8 feat(den): gate cloud workers behind Polar entitlements (#637) 2026-02-21 10:11:22 -08:00
ben
db317f91de feat: add Den control plane in openwork with real Render workers (#632)
* feat: add render-backed den control plane to openwork

* fix: retry openwork worker startup on render

* fix: correct worker startup loop command

* fix: redact sensitive tokens in demo output

* docs: add openwork render e2e proof artifacts

* ci: add den control plane build and deploy workflows
2026-02-21 08:37:01 -08:00
Benjamin Shafii
cb130b3242 fix(release): support draft releases in updater and AUR jobs 2026-02-20 17:23:55 -08:00