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

@ddse/acm-examples

v0.5.2

Published

ACM v0.5 Examples - CLI demo and sample implementations

Readme

@ddse/acm-examples

End-to-end ACM demos showcasing deterministic scenarios, streaming execution, and replay capture for the Node.js framework helper.

What this package gives you

  • Scenario-driven CLI (bin/acm-demo.ts) that drives the ACM Framework end-to-end with the structured planner, streaming UI, and resume-friendly execution.
  • Five production-style workflows (entitlement, knowledge, incidents, invoices, coaching) with curated data, tools, and capability registries.
  • Streaming UX via DefaultStreamSink and CLIRenderer for planner tokens, task updates, and checkpoints.
  • Replay + resume support through file-backed checkpoints and replay bundle export.
  • Integration tests that exercise every scenario with a stubbed LLM so you can validate changes quickly.

Prerequisites

pnpm install
pnpm --filter @ddse/acm-examples build

Running the demo CLI

Quick start

# Entitlement decisioning with default Ollama client
pnpm --filter @ddse/acm-examples demo -- --scenario entitlement

# Knowledge acceleration using vLLM
pnpm --filter @ddse/acm-examples demo -- --provider vllm --model qwen2.5:7b --scenario knowledge

# Incident triage with persistent checkpoints
pnpm --filter @ddse/acm-examples demo -- --scenario incidents --checkpoint-dir ./tmp/checkpoints

# Invoice reconciliation with replay bundle export
pnpm --filter @ddse/acm-examples demo -- --scenario invoices --save-bundle

CLI options

--scenario <key>             Scenario to execute (use --list to see options)
--list                       List available scenarios and exit
--provider <ollama|vllm>     LLM provider (default: ollama)
--model <name>               Model identifier (defaults per provider)
--base-url <url>             Override LLM endpoint URL
--engine <acm|langgraph|msaf>  Execution engine (default: acm)
--resume <runId>             Resume a prior ACM engine run
--checkpoint-dir <dir>       Directory for checkpoint storage (default: ./checkpoints)
--no-stream                  Disable live planner/task streaming
--save-bundle                Save replay bundle to replay/<runId>/
-h, --help                   Show help

Available scenarios

| Key | Name | Focus | | --- | ---- | ----- | | entitlement | Entitlement Decisioning | Fetch CRM data, evaluate benefit policy, and notify the supervisor. | | knowledge | Knowledge Acceleration | Retrieve, summarize, and follow up on knowledge base content. | | incidents | Incident Triage | Classify severity, choose routing queue, and escalate if needed. | | invoices | Invoice Reconciliation | Compare invoice vs PO and log audit findings. | | coaching | Agent Coaching | Analyze transcripts, craft feedback, and store coaching notes. |

Each scenario exposes buildReferencePlan() to generate a deterministic reference plan used by automated tests and replay exports while the CLI exercises the planner live with the same tools, capabilities, and assertions.

Streaming and verification

The CLI wires DefaultStreamSink into the CLIRenderer so you get:

  • Real-time planner token streaming
  • Task progress + step updates
  • Checkpoint notifications during ACM engine runs
  • Summary output once execution finishes

Verification expressions from each task are executed locally before continuing, ensuring deterministic guard rails across scenarios.

Integration tests

All workflows are validated in tests/integration.test.ts with a stubbed LLM and the same reference plans:

pnpm --filter @ddse/acm-examples test

Running the suite will iterate over every scenario, execute its plan, and assert the expected outputs—ideal for CI or for verifying modifications to tools/tasks.

Customization tips

  • Add new tools or capabilities in src/tools and src/tasks, then register them inside a scenario definition.
  • Use ScenarioDefinition.buildReferencePlan() as the place to define deterministic reference plans when adding scenarios.
  • Extend the CLI by introducing new flags or output modes in bin/acm-demo.ts—it already exposes context registration, streaming, resume, and replay wiring.

Project layout

packages/acm-examples/
├── bin/acm-demo.ts           # Scenario-driven demo CLI
├── src/
│   ├── context/              # Directive-based context providers
│   ├── data/                 # Synthetic datasets per scenario
│   ├── examples/scenarios.ts # Scenario catalog & reference plans
│   ├── registries.ts         # Simple tool & capability registries
│   ├── renderer.ts           # Streaming CLI renderer
│   └── tasks/ & tools/       # Deterministic task/tool implementations
├── tests/integration.test.ts # Full scenario regression suite
└── dist/                     # Build artifacts (generated)

Next steps

  • Plug in your own LLM provider by extending createOllamaClient/createVLLMClient equivalents.
  • Add new scenarios that exercise additional policies or data domains.
  • Use replay bundles to capture and share successful runs for downstream analysis.