feat: added ts-sdk with openAI sdk support#55
Merged
Conversation
Introduce @secureagentics/adrian with the event pipeline, PII redaction, WebSocket streaming, policy gating, and core test suite. Includes shared proto layout and workspace scaffolding for provider packages.
Remove the legacy root proto/event.proto after relocating the schema into the Python SDK package layout.
Restore proto/event.proto at the repo root and drop the unrelated Python proto relocation, Makefile, and SDK changes from the ts-core branch.
Fix init option resolution so explicit params beat env vars and wsUrl: null disables WebSocket. Align BLOCK-mode with Python fail-open, wire 4003 quota reconnect delay, refactor shouldHalt to switch, export adrian namespace, merge README docs, and add init/policy/ws tests.
Add @secureagentics/adrian-openai with client wrapping, tool capture, streaming support, and OpenAI-specific tests. Updates workspace docs for the provider package workflow.
Contributor
|
Thanks for PR @Adarsh9977, needs to fix the following before we can merge:
|
Contributor
Author
I'm looking on it thanks @shahtajkhalid |
Contributor
Author
|
@shahtajkhalid Done with the changes. Now it's taking the active invocation Id and if not present then it passes null. Just like we're doing in python. Please take a look and let me know |
yanny-sec
approved these changes
Jun 25, 2026
7 tasks
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.
Summary
Adds
@secureagentics/adrian-openai, a TypeScript provider package that instruments the official OpenAI Node SDK for Adrian security monitoring.adrian.openai(client)— proxy wrapper around an existingOpenAIclient; instrumentschat.completions.createandresponses.createwithout changing call sitesinstructions, and array-shapedinput(including prior tool calls and outputs) for both stream and non-stream pathsadrian.captureTool()— wraps manual tool execution so tool start/end events are emitted and BLOCK/HITL policy can halt execution before the handler runs@secureagentics/adrian/capturefrom the core package for consistent event pairing and policy gating@secureagentics/adrian(core TypeScript SDK). feat: added ts-core sdk #50Test plan
cd sdk/typescriptand runnpm test -w @secureagentics/adrian-openaiChecklist