Skip to content

@opena2a/aim-sdk 1.3.1

Latest

Choose a tag to compare

@thebenignhacker thebenignhacker released this 02 Sep 11:52
· 6 commits to main since this release
cff33ca

Added

  • AgentType.DEMO, the agent type the one-command demo registers (#431).

Fixed

  • NetworkMonitor ss parser read the columns of ss -tpn while running
    ss -tpn state established, so the Linux monitor never reported an
    established connection.
    Under the state established filter ss omits the
    State column, shifting every field left by one: the peer address was read
    as the local address and the users:(...) process field as the peer, so
    remotePort parsed to NaN and no reported connection ever carried the
    real destination — and because the garbage list was non-empty,
    getConnections() never fell through to the correct /proc/net/tcp
    fallback either. The parser now picks the address columns from the header
    line (State present or not) instead of a fixed index, and no longer drops
    the non-root shape where ss cannot name the owning process and the data
    lines end at the peer column.

Known issues

Both reproduce on 1.3.0 and are unchanged by this release; scheduled for 1.3.2.

  • The README's Express and Fastify examples answer 401 and never contact AIM unless
    AIM_AGENT_ID, AIM_PRIVATE_KEY, AIM_PUBLIC_KEY and AIM_ORGANIZATION_ID are all set;
    the middleware options carry no way to pass credentials
    (#449).
  • aimErrorHandler passes an upstream 5xx to Express's default handler, which renders a
    stack trace with local paths outside NODE_ENV=production; the Fastify plugin answers the
    same case as JSON (#450).