-
Notifications
You must be signed in to change notification settings - Fork 9
Feat/ts pty handler migration #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kartikloops
wants to merge
43
commits into
The-OpenROAD-Project:feat/ts-migration
Choose a base branch
from
kartikloops:feat/ts-pty-handler-migration
base: feat/ts-migration
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,539
−122
Open
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
7c1185e
add vscode workspace settings for typescript sdk path
kartikloops aae2f60
add plan doc
kartikloops 40517ea
add core session state and error models
kartikloops e222bbc
add interactive session error models
kartikloops 17fb53e
add circular buffer for pty output
kartikloops 64542ed
add pty handler for managing node-pty processes
kartikloops 11780e7
add interactive session manager
kartikloops 0540afa
add tests for circular buffer
kartikloops 1fd693b
add tests for command validation
kartikloops b182b9b
add tests for pty handler
kartikloops 907bea4
add tests for interactive session
kartikloops b9cd166
update eslint config with coverage ignore and stricter rules
kartikloops edafb12
fix pending waiters, env cast and resolver types in pty handler
kartikloops fed1d4e
guard read chunk size against zero in session onData handler
kartikloops 15871aa
add test for cleanup resolving pending waitForExit waiters
kartikloops 40f64c8
add real openroad repl integration check script
kartikloops e88e49e
code cleanup
kartikloops dd62da5
Potential fix for pull request finding
kartikloops 0f64b95
added case for READ_CHUNK_SIZE is larger than limit
kartikloops c9b578e
fix isAlive signaling shutdown when process death is detected
kartikloops f5e3e22
add test for isAlive shutdown signal on process death
kartikloops 5e41bea
fix force terminate returning before alive flag clears
kartikloops 9f6862e
update tests for force terminate waiting for exit
kartikloops d9ffce4
fix terminate not disposing pty listeners and pending waiters
kartikloops e9bd5cf
update terminate tests to assert pty cleanup is called
kartikloops 7f6969d
fix clear not waking pending waitForData callers
kartikloops f86aecd
add regression test for clear waking pending waitForData callers
kartikloops 68f96c7
signal shutdown in readOutput drain path so writer task does not loop…
kartikloops 527b225
add regression test for readOutput signaling shutdown on dead session
kartikloops 2856095
fix waitForData not re-checking dataAvailable under mutex after runEx…
kartikloops ac2735d
add regression test for waitForData race between fast-path check and …
kartikloops 164ff9b
handle append rejection in onData handler to avoid silent data loss
kartikloops cfc55d3
add regression test for append rejection transitioning session to ter…
kartikloops a7615f3
move MacOSPTYHandler to production and add create_pty_handler factory
kartikloops 77dc249
use create_pty_handler so macOS gets the keepalive and drain subclass
kartikloops d180b0f
remove duplicate MacOSPTYHandler from test file and import from produ…
kartikloops a4fac11
remove MacOSPTYHandler and create_pty_handler — not needed for PoC
kartikloops 1145bf2
await SIGKILL exit in terminateProcess so cleanup cannot race the exi…
kartikloops 8fe4419
block path traversal sequences in validateCommand argument check
kartikloops 6dc1d7b
reject absolute paths in python validateCommand to match typescript b…
kartikloops 4947dbe
truncate single oversized chunk to maxSize to enforce capacity invariant
kartikloops 113fbda
throw on unrecognised boolean env vars and lazily init settings to pr…
kartikloops 426d0b8
fix ansi decoder escape coverage, annotate mode cr handling, mode val…
kartikloops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "typescript.tsdk": "typescript/node_modules/typescript/lib" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without it, every contributor who opens the repo in VS Code gets TypeScript errors or the wrong type-checker, because VS Code defaults to its own bundled TypeScript version rather than the project's. This file pins VS Code to use the TypeScript installed in typescript/node_modules/, so everyone gets consistent IntelliSense and error highlighting that matches what tsc actually sees.
It ensures VS Code uses the same TypeScript the build does.