npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@guildex.net/openclaw-teams-push

v0.1.0

Published

OpenClaw plugin that pushes Guildex teammate replies (sessions_send inter-session messages from agent:guildex-*) to the main session's last-known channel (Telegram, etc.), fixing the runtime gap where main's auto-responses to inter-session messages never

Readme

@guildex.net/openclaw-teams-push

OpenClaw plugin that pushes Guildex teammate replies into the user's main session's last-known channel (Telegram, etc.).

What it fixes

When a Guildex worker (e.g. guildex-mason-grey) calls sessions_send to deliver work to the user's main agent, OpenClaw's runtime correctly wakes main and main produces a visible assistant reply. But OpenClaw's reply pipeline only routes turns triggered by a real user message (with originatingChannel/originatingTo set). Inter-session turns have neither, so main's reply lands in the jsonl and never reaches Telegram / Slack / Discord.

This plugin hooks agent_end, detects inter-session turns from agent:guildex-* sources, looks up the session's last-known channel destination, and pushes the assistant text there via OpenClaw's documented runMessageAction SDK.

Sprint 17.B.1 status: SPIKE

Day-1 minimal viable implementation. Known gaps for day-2:

  • Destination lookup uses filesystem jsonl scan; day-2 will use Gateway sessions.describe RPC.
  • No dedupe ring; teammates that send duplicate inter-session messages will cause duplicate pushes.
  • runMessageAction({ cfg: undefined }) relies on SDK's runtime-context fallback. May need explicit cfg threading.

Install (local development)

cd /Users/joe/Projects/Guildex/plugins/openclaw-teams-push
npm install
npm run build

# Link from a local checkout (per docs/plugins/manage-plugins.md):
openclaw plugins install --link /Users/joe/Projects/Guildex/plugins/openclaw-teams-push

# Enable the conversation-access permission (required by agent_end hook):
openclaw config patch 'plugins.entries.guildex-teams-push.hooks.allowConversationAccess' true --boolean

# Restart Gateway so the new plugin is imported:
openclaw gateway restart

# Verify the plugin registered its hook:
openclaw plugins inspect guildex-teams-push --runtime --json

Uninstall

openclaw plugins uninstall guildex-teams-push
openclaw gateway restart

How it activates

For each turn ending on agent:main:*:

  1. Skip if turn has messageProvider or channelId (already routed by OpenClaw).
  2. Look at user-role messages for [Inter-session message] sourceSession=<key>.
  3. If <key> starts with agent:guildex-, proceed.
  4. Extract the most recent assistant text from the turn.
  5. Walk main's session jsonl backwards for the most recent chat_id: "<channel>:<id>" block (set by inbound channel adapters like Telegram).
  6. Call runMessageAction({ action: "send", params: { channel, to, message, accountId } }).

Configuration

In ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "guildex-teams-push": {
        "config": {
          "enabled": true,
          "attributionPrefix": false,
          "sourceSessionPrefix": "agent:guildex-"
        },
        "hooks": {
          "allowConversationAccess": true,
          "timeouts": { "agent_end": 15000 }
        }
      }
    }
  }
}