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

@designteam/adapter-local-script

v0.1.0

Published

Design Team adapter that executes each task by running a configured local shell script. Useful for testing the adapter contract end-to-end without an LLM dependency, and for workflows where a task boils down to 'run this command'.

Readme

@designteam/adapter-local-script

Reference adapter for Design Team. Executes each plan task by shelling out to a configured command. Useful for:

  • Testing the adapter contract end-to-end without an LLM dependency
  • Workflows where "do this task" just means "run this command"

See the monorepo root's adapter-plugin.md for the full adapter spec.

Install

pnpm add @designteam/adapter-local-script

Usage

import { registerAdapter } from '@designteam/adapter-utils'
import { createLocalScriptAdapter } from '@designteam/adapter-local-script'

registerAdapter(createLocalScriptAdapter({
  command: 'bash scripts/run-task.sh',
  timeoutMs: 5 * 60 * 1000,
}))

What the script receives

Task context is passed as environment variables, so the script can read them without any wrapper:

| Env var | Value | |---|---| | DT_TASK_ID | t1, t2, … | | DT_TASK_ROLE | researcher, copywriter, … | | DT_TASK_INSTRUCTION | The task's instruction text | | DT_PLAN_ID | The parent plan's id | | DT_AGENT_NAME | The agent assigned to the task | | DT_AGENT_ROLE | Same as DT_TASK_ROLE unless the plan overrode it | | DT_RUN_ID | The run that holds the atomic checkout lock |

Outcome mapping

| Script behavior | Adapter outcome | Control plane transition | |---|---|---| | exit 0 | done with stdout as summary | progress <plan> <task> --done | | non-zero exit | error with stderr as message | release checkout, log | | ctx.signal.aborted | cancelled reason signal.aborted | progress --cancel | | exceeds timeoutMs | cancelled reason timeout | progress --cancel |

Options

interface LocalScriptAdapterOptions {
  command: string                       // required
  id?: string                           // default '@designteam/adapter-local-script'
  cwd?: string                          // default process.cwd()
  env?: Record<string, string>          // merged on top of DT_* vars
  timeoutMs?: number                    // default 10 minutes
}

License

MIT