Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

ai-native-bridge

Async Python SDK for the AI-Native VS Code Bridge — drive VS Code from agents via JSON-RPC over WebSocket.

agentic-codingai-agentscode-generationdeveloper-toolsjson-rpcmcpvscode
Published22 Feb 2026
Direct dependencies5
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

ai-native-bridge

Async Python SDK for the AI-Native VS Code Bridge — drive VS Code from agents via JSON-RPC over WebSocket.

Install

pip install ai-native-bridge

Or for development:

pip install -e ./python-sdk

Quick Start

import asyncio
from ai_native_vscode_bridge import BridgeClient

async def main():
    client = BridgeClient.from_workspace(port=57110)

    # Check connectivity
    pong = await client.call("bridge.ping")
    print(pong)  # {"ok": true, "protocol": "v1-draft"}

    # List all diagnostics (errors & warnings)
    diags = await client.call("diagnostics.list")
    for file_entry in diags.get("files", []):
        print(f"{file_entry['uri']}: {len(file_entry['diagnostics'])} issues")

asyncio.run(main())

Features

  • One-shot async calls — each client.call() opens a fresh WebSocket (simple + robust).
  • Event streaming — BridgeEventStream for real-time diagnostics, file changes, debug events.
  • Auto-generated method wrappers — GeneratedBridgeClient with typed methods for every RPC endpoint.
  • Token auto-discovery — reads $BRIDGE_TOKEN, --token-file, or .vscode/bridge.token.

Event Streaming

from ai_native_vscode_bridge import BridgeEventStream

async def watch():
    async with BridgeEventStream.from_workspace(
        events=["diagnostics.changed", "doc.saved"]
    ) as stream:
        async for event in stream:
            print(event)

API Reference

ClassPurpose
BridgeClientOne-shot async JSON-RPC calls
GeneratedBridgeClientBridgeClient + auto-generated method wrappers
BridgeEventStreamPersistent WebSocket for event subscriptions
BridgeErrorStructured error with .code, .message, .data

License

Apache-2.0

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
websockets
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
websockets>=12.0runtime
langgraph
Environment
{
  "extras": "",
  "marker": "extra == \"langgraph\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
langgraph>=0.0.20; extra == "langgraph"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest; extra == "dev"runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio; extra == "dev"runtime
mypy
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
mypy; extra == "dev"runtime

Distribution files

2 collected
ai_native_bridge-0.1.0-py3-none-any.whl

bdist_wheel · 5.54 KB · Python py3

Source file
ai_native_bridge-0.1.0.tar.gz

sdist · 5.06 KB · Python source

Source file

Repository

PENDING
harkirat155/ai-native

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2b22fab5662cdb7d7b77782abd82fa2a0c8e0fb1785fd35e7922dc8ab0870b9e

Other collected versions

View all collected versions →