fix(runner): keep browser types Node-free

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-08 07:50:57 +00:00
1 parent cc945e4c72
commit bc10fffb06
2 files changed
+6 -4

No files matched your search

@@ -45,9 +45,11 @@ Full contracts are in the [SDK reference](../../docs/phase-05-sdk.md) and
# Failures and corrections
- The browser TypeScript configuration initially lacked Node types required by
Vite and Playwright configuration files. Node types were added to that
configuration only; they did not enter the browser runtime.
- The browser TypeScript configuration initially included a Node-based
Playwright spec, which tempted the browser contract to admit Node types. The
configuration now checks only browser application source trees and keeps its
type environment Node-free; test and Vite configuration files use their own
TypeScript context.
- An early hook implementation removed repeated source event IDs. That hid
reducer input and violated parity authority. The hook now preserves the exact
stream and lets the shared reducer classify duplicates.
@@ -6,7 +6,7 @@
"module": "ESNext",
"moduleResolution": "Bundler",
"rootDir": ".",
"types": ["vite/client", "node"],
"types": ["vite/client"],
"baseUrl": ".",
"paths": {
"@paperclipai/paperclip-runner/browser": ["src/browser/index.ts"],