Skip to content

Commit fc3751f

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 82cf549 + 31c1c59 commit fc3751f

278 files changed

Lines changed: 24825 additions & 5513 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.

‎.agents/skills/test-t3-mobile/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ Run Metro from `apps/mobile`.
8080
APP_VARIANT=development vp exec expo start \
8181
--dev-client \
8282
--scheme t3code-dev \
83-
--clear \
8483
--lan \
8584
--port <metro-port>
8685
```
@@ -179,6 +178,7 @@ Keep local verification focused. Do not turn this workflow into a full repositor
179178
## Troubleshoot predictable failures
180179

181180
- **Old UI or an old error appears:** verify Metro's worktree, variant, URL, and port before diagnosing the app.
181+
- **Metro serves stale or invalid transforms after those checks:** stop the owned Metro process and run `vp run dev:client:reset` once on the standard port. For a custom port, add `--clear` to the complete explicit `expo start` command above.
182182
- **The environment remains empty:** verify the platform-specific HTTP origin, use a fresh token, and confirm project seeding used the identical base directory.
183183
- **A second client cannot pair:** pairing tokens are single-use; issue another token.
184184
- **The pairing form opens but does not connect:** confirm the deep link uses the existing `connections/new` route, includes `autoConnect=1`, and carries a freshly minted encoded `pairingUrl`.

‎.coderabbit.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
reviews:
2+
review_status: false

‎.macroscope/approvability.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
Use Macroscope's default approvability criteria.
22

33
Additionally, any pull request that changes product defaults is not auto-approvable and requires human review.
4+
5+
Any pull request that adds or broadens a directive that disables or suppresses a lint,
6+
type-checker, LSP, or other static-analysis diagnostic is not auto-approvable and requires
7+
human review. This includes file-level, line-level, and configuration-level overrides.

‎.macroscope/check-run-agents/effect-service-conventions.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Review changed TypeScript and directly affected call sites for the conventions b
8282
## Change discipline
8383

8484
- Preserve useful comments, invariants, and specification documentation while moving code.
85+
- Require every new or broadened directive that disables or suppresses a lint, type-checker, LSP, or other static-analysis diagnostic to have an adjacent comment explaining why that diagnostic must be disabled there. The directive itself is not an explanation. Report a missing explanation as a concrete violation.
8586
- Do not add large tests solely to prove a mechanical refactor. Update existing tests and imports as needed.
8687
- If backend behavior changes, require focused tests. Use test implementations/layers for external services only; do not mock out core business logic.
8788
- Do not require `Layer.effect`, universal namespace imports, generic `make`/`layer` names for abstract-port implementations, separate error classes for diagnostic-only fields, or new tests for import-only changes.

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ An empty database is a bad test. Seed your worktree's `.t3` with a copy of real
104104
## Verifying
105105

106106
- Smallest proof that the change works. `vp test run <files>` for the tests you touched, targeted lint and typecheck for the scope you changed.
107+
- Test meaningful logic or observable behavior. Do not render components to static markup to assert props or attributes, or add tests that merely assert callback wiring or mirror the implementation.
107108
- **Do not run repo-wide checks.** No `vp check`, no `vp run -r test`, no `vp run -r typecheck` unless I ask. CI owns the full suite.
108109
- Backend behavior changes ship with focused tests for that behavior.
109110
- The server is event-sourced and its async flows emit typed receipts. Wait on receipts and worker drains, never on sleeps or polling. A test that needs a timeout to pass is wrong.

‎app.json‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎apps/desktop/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@t3tools/desktop",
3-
"version": "0.0.36",
3+
"version": "0.0.37",
44
"private": true,
55
"type": "module",
66
"main": "dist-electron/main.cjs",
@@ -21,7 +21,7 @@
2121
"@t3tools/ssh": "workspace:*",
2222
"@t3tools/tailscale": "workspace:*",
2323
"effect": "catalog:",
24-
"electron": "41.5.0",
24+
"electron": "43.4.1",
2525
"electron-store": "^8.2.0",
2626
"electron-updater": "^6.6.2",
2727
"playwright-core": "1.60.0",

‎apps/desktop/src/electron/ElectronProtocol.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ describe("ElectronProtocol", () => {
225225
"http:",
226226
"https:",
227227
]);
228+
assert.deepEqual(directives["media-src"], ["'self'", "t3code:", "blob:"]);
228229
assert.deepEqual(directives["font-src"], ["'self'", "t3code:", "data:"]);
229230
});
230231
});

‎apps/desktop/src/electron/ElectronProtocol.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export function makeDesktopContentSecurityPolicy(input: DesktopProtocolRegistrat
8787
`script-src ${scriptSources.join(" ")}`,
8888
`connect-src ${connectSources.join(" ")}`,
8989
`img-src 'self' ${input.scheme}: blob: data: http: https:`,
90+
`media-src 'self' ${input.scheme}: blob:`,
9091
"style-src 'self' 'unsafe-inline'",
9192
`font-src 'self' ${input.scheme}: data:`,
9293
"worker-src 'self' blob:",

‎apps/desktop/src/ipc/methods/preview.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
DesktopPreviewConfigInputSchema,
1212
DesktopPreviewNavigateInputSchema,
1313
DesktopPreviewRecordingArtifactSchema,
14+
DesktopPreviewRecordingSourceSchema,
1415
DesktopPreviewRecordingSaveInputSchema,
1516
DesktopPreviewRegisterWebviewInputSchema,
1617
DesktopPreviewScreenshotArtifactSchema,
@@ -173,11 +174,15 @@ export const cancelPickElement = tabMethod(
173174
"desktop.ipc.preview.cancelPickElement",
174175
(manager, tabId) => manager.cancelPickElement(tabId),
175176
);
176-
export const startRecording = tabMethod(
177-
IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
178-
"desktop.ipc.preview.startRecording",
179-
(manager, tabId) => manager.startRecording(tabId),
180-
);
177+
export const startRecording = DesktopIpc.makeIpcMethod({
178+
channel: IpcChannels.PREVIEW_RECORDING_START_CHANNEL,
179+
payload: DesktopPreviewTabInputSchema,
180+
result: DesktopPreviewRecordingSourceSchema,
181+
handler: Effect.fn("desktop.ipc.preview.startRecording")(function* ({ tabId }) {
182+
const manager = yield* PreviewManager.PreviewManager;
183+
return yield* manager.startRecording(tabId);
184+
}),
185+
});
181186
export const stopRecording = tabMethod(
182187
IpcChannels.PREVIEW_RECORDING_STOP_CHANNEL,
183188
"desktop.ipc.preview.stopRecording",

0 commit comments

Comments
 (0)