JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6975
  • Score
    100M100P100Q129381F
  • License MIT

Core transport interfaces, event utilities, auth, SSE parsing, and resilience primitives for talking to Tangle agents

Package Exports

  • @tangle-network/agent-core
  • @tangle-network/agent-core/auth
  • @tangle-network/agent-core/auth/browser
  • @tangle-network/agent-core/computer-use
  • @tangle-network/agent-core/events
  • @tangle-network/agent-core/resilience
  • @tangle-network/agent-core/sse
  • @tangle-network/agent-core/telemetry
  • @tangle-network/agent-core/transport
  • @tangle-network/agent-core/types

Readme

@tangle-network/agent-core

Runtime primitives for talking to Tangle agents:

  • Auth — issue and verify scoped access tokens for sidecar/session access.
  • SSE — parse agent event streams (SSEChunkParser, parseSSEStream, parseSSEData).
  • Transport — connection-manager and transport interfaces.
  • Resilience — retries, timeouts, and circuit breakers.
  • Telemetry — GenAI attribute and token-usage helpers.

Depends on @tangle-network/agent-interface for the shared type/schema contract.

Install

pnpm add @tangle-network/agent-core @tangle-network/agent-interface

Requires Node.js >= 18 — the auth module uses node:crypto for token signing and verification.

Subpath exports

import { } from "@tangle-network/agent-core";            // top-level
import { } from "@tangle-network/agent-core/auth";       // token issue/verify
import { } from "@tangle-network/agent-core/sse";        // SSE parsing
import { } from "@tangle-network/agent-core/transport";  // transport interfaces
import { } from "@tangle-network/agent-core/resilience"; // retries / breakers

License

MIT