mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 18:31:34 +01:00
fix(runner): keep browser types Node-free
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
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"],
|
||||
|
||||
Reference in new issue
Block a user