Skip to content

Commit 41ff67a

Browse files
committed
feat(project-files): add authorized core storage and realtime operations
1 parent fd5440f commit 41ff67a

213 files changed

Lines changed: 23899 additions & 2928 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/scripts/http-e2e.sh‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# mobile, which serves the production build the `e2e-build` job uploads with `next start` (the
44
# job extracts it into apps/sim/.next first).
55
#
6-
# Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|mobile> (run from apps/sim)
6+
# Usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|project-files|mobile> (run from apps/sim)
77
#
88
# The job provides DATABASE_URL, BETTER_AUTH_SECRET and ENCRYPTION_KEY; each group sets the rest of
99
# its app's environment here. Reports and server logs land in $RUNNER_TEMP/e2e.
@@ -19,7 +19,7 @@
1919
# telemetry flush runs detached and still writes .next/dev).
2020
set -euo pipefail
2121

22-
group=${1:?usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|mobile>}
22+
group=${1:?usage: http-e2e.sh <scim|cli|stop-after|desktop-inbox|project-files|mobile>}
2323
report_dir="$RUNNER_TEMP/e2e"
2424
ready_timeout_seconds=300
2525
mkdir -p "$report_dir"
@@ -211,6 +211,15 @@ case "$group" in
211211
bun run test:desktop-inbox:e2e
212212
;;
213213

214+
project-files)
215+
PROJECT_FILES_E2E_ADMIN_DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/postgres \
216+
PROJECT_FILES_E2E_REDIS_URL=redis://127.0.0.1:6379 \
217+
PROJECT_FILES_E2E_BASE_URL=http://127.0.0.1:3050 \
218+
PROJECT_FILES_E2E_RELAY_URL=http://127.0.0.1:3052 \
219+
PROJECT_FILES_E2E_REPORT_PATH="$report_dir/project-files/orchestration.json" \
220+
bun --no-env-file scripts/test-project-files-e2e.ts
221+
;;
222+
214223
# MOBILE_E2E_BROWSER (chromium or webkit) narrows the job to one browser; unset runs both.
215224
mobile)
216225
app_server=start

‎.github/workflows/checks.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ jobs:
196196
runner: blacksmith-4vcpu-ubuntu-2404
197197
- group: stop-after
198198
runner: blacksmith-4vcpu-ubuntu-2404
199+
- group: project-files
200+
runner: blacksmith-8vcpu-ubuntu-2404
199201
- group: desktop-inbox
200202
runner: blacksmith-4vcpu-ubuntu-2404
201203
services:
@@ -212,7 +214,7 @@ jobs:
212214
--health-interval 5s
213215
--health-timeout 5s
214216
--health-retries 10
215-
# Only the desktop executor's app is given REDIS_URL: its doorbell and presence live there.
217+
# Project file subscriptions and the desktop executor use Redis.
216218
redis:
217219
image: redis:8.2-alpine
218220
ports:

‎apps/docs/content/docs/cli/commands.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ These apply to every command, and may be written before or after it.
4747
| [`sim meta`](/cli/meta) | Manage meta |
4848
| [`sim organizations`](/cli/organizations) | Manage organizations |
4949
| [`sim permission-groups`](/cli/permission-groups) | Manage permission groups |
50+
| [`sim projects`](/cli/projects) | Manage projects |
5051
| [`sim sandboxes`](/cli/sandboxes) | Manage sandboxes |
5152
| [`sim secrets`](/cli/secrets) | Manage secrets |
5253
| [`sim selectors`](/cli/selectors) | Manage selectors |

‎apps/docs/content/docs/cli/meta.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"meta",
3131
"organizations",
3232
"permission-groups",
33+
"projects",
3334
"sandboxes",
3435
"secrets",
3536
"selectors",

0 commit comments

Comments
 (0)