feat(sdk): add the typed TypeScript client - #181
Merged
Merged
Conversation
SarthakWade
added this pull request to stack #183
September 12, 2026 21:31
SarthakWade
force-pushed
the
feat/typescript-sdk-164
branch
from
September 12, 2026 21:43
9e0a429 to
bc44dad
Compare
yashranaway
approved these changes
Sep 13, 2026
yashranaway
left a comment
Collaborator
There was a problem hiding this comment.
Typed TypeScript client follows the Swift schema. Transport is AF_UNIX only, with runtime-dir and 0600 socket checks. Launch uses start --supervised, matches host PID after connect, and reaps only the owned launcher. Auth stays aliases and challenge IDs. Unknown commands and post-write uncertainty fail closed.
CI for this layer is green. Stacks on #180.
yashranaway
force-pushed
the
feat/typescript-sdk-164
branch
from
September 13, 2026 04:43
bc44dad to
658b676
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this changes
Adds a generated, zero-runtime-dependency TypeScript SDK to
@lockintime/headless. It provides typed host and session clients, private Unix-socket transport, schema-derived validation and timeouts, untrusted-content wrappers, capability negotiation, structured errors, cancellation-aware verified installation, and supervised host ownership.The launch API preserves the platform default when
presentationis omitted and inserts an explicit foreground or background option only when requested on macOS.Closes #164
Security and lifecycle
OperationOutcomeUnknownand does not retry them automatically.Verification
pnpm --filter @lockintime/headless test: 41/41pnpm test: 65/65 protocol tests, secure terminal tests, and MCP integrationpnpm test:runtimeStack
This PR is based on #180. Merge #180 first, then retarget this PR to
main.