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

@componentes-ia/agent-plan

v0.1.0

Published

Plan en vivo del agente: una lista de pasos que se van completando.

Readme

@componentes-ia/agent-plan

Plan en vivo del agente: una lista de pasos que se van completando mientras trabaja. El encabezado muestra el avance, y el paso en curso lleva un barrido de luz.

React 19 es la única peer dependency. El estilo vive en CSS, con las variables de @componentes-ia/core.

Uso

import { AgentPlan } from "@componentes-ia/agent-plan";
import "@componentes-ia/core/styles.css";
import "@componentes-ia/agent-plan/styles.css";

<AgentPlan
  steps={[
    { id: "leer", title: "Leer el diff", status: "done" },
    { id: "ajustar", title: "Ajustar el offset", status: "in_progress" },
    { id: "probar", title: "Escribir la prueba", status: "pending" },
  ]}
/>

Un paso puede llevar detail y substeps. El detalle y los hijos se abren al activar la fila.

Props

| Prop | Tipo | Default | | --- | --- | --- | | steps | PlanStep[] o texto título\|estado separado por comas | plan de ejemplo | | title | string | "Plan" | | collapsible | boolean | true | | defaultOpen | boolean | true | | onStepClick | (id: string) => void | — | | className | string | — |

También acepta las props nativas de un div.

Los estados son pending, in_progress, done, error y skipped. El avance del encabezado cuenta todo el árbol: 2 de 5 son los pasos en done contra el total, incluidos los subpasos.

steps en el playground del sitio es una lista título|estado separada por comas. En tu código pasa el arreglo.

Si collapsible está activo, contraer el encabezado deja solo el paso actual: el que está en curso, o si no hay, el de error, el pendiente o el último.

Con prefers-reduced-motion no hay brillo, giro, trazo del palomazo ni entrada de pasos nuevos. El texto se queda tachado si ya está listo.

Simulación

usePlanSimulation avanza el plan en el cliente, sin backend. Cada intervalo el paso en curso pasa a listo y el siguiente pendiente entra en curso. Un padre no se cierra mientras le quede un hijo pendiente.

const steps = usePlanSimulation(plan, { interval: 900 });

<AgentPlan steps={steps} />

En el copiloto

Publica el plan antes de la respuesta. Cuando ya no queda nada en curso, escribe.

const steps = usePlanSimulation(plan, { interval: 900 });
const working = steps.some(
  (step) => step.status === "pending" || step.status === "in_progress",
);

<>
  <AgentPlan steps={steps} />
  {working ? null : <p>{reply}</p>}
</>