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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ddse/acm-framework

v0.5.0

Published

High-level developer wrapper for the ACM planner and runtime

Downloads

6

Readme

@ddse/acm-framework

High-level helper that wraps the ACM structured planner and runtime behind a single setup/execute flow. It is intended for developers who want to run the full ACM pipeline without manually orchestrating planners, registries, and the nucleus configuration.

Installation

pnpm add @ddse/acm-framework

Quick Usage

import { ACMFramework } from '@ddse/acm-framework';
import { createOllamaClient } from '@ddse/acm-llm';
import { SimpleCapabilityRegistry, SimpleToolRegistry } from '@ddse/acm-aicoder';

const llm = createOllamaClient('llama3.1');

const framework = ACMFramework.create({
  capabilityRegistry,
  toolRegistry,
  policyEngine,
  nucleus: {
    call: async (prompt, tools, config) => llm.generateWithTools!(
      [{ role: 'system', content: prompt }],
      tools,
      config,
    ),
    llmConfig: {
      provider: llm.name(),
      model: 'llama3.1',
      temperature: 0.1,
      maxTokens: 512,
    },
  },
});

const result = await framework.execute({
  goal: 'Investigate login failures reported overnight.',
  engine: ExecutionEngine.ACM, // optional, ACM is the default
});

console.log(result.plan);
console.log(result.execution.outputsByTask);

API Highlights

  • ACMFramework.create(options) — configure registries, policy, nucleus call, and planner defaults.
  • framework.plan(request) — generate plan(s) and inspect the planner ledger before execution.
  • framework.execute(request) — end-to-end plan + execute with a single call.

Both methods accept either a plain string or a full Goal object and will synthesize goal/context identifiers automatically.

Options Overview

  • capabilityRegistry, toolRegistry, policyEngine — existing ACM registries you already configure for planners/runtimes.
  • nucleus.call / nucleus.llmConfig — how to talk to your LLM provider. The helper constructs DeterministicNucleus instances by default.
  • planner.planCount, planner.selector — override plan fan-out and selection logic.
  • defaultStream, verify — reuse streaming sink or verification hooks across invocations.
  • execution.engine — choose between the default resumable ACM runtime (ACM), the LangGraph adapter (LANGGRAPH), or the Microsoft Agent Framework adapter (MSAF). Per-call overrides are also supported via execute({ engine: ... }).
  • execution.resumeFrom, execution.checkpointInterval, execution.checkpointStore, execution.runId — ACM-only resume controls.
  • plan({ ledger }) / execute({ ledger }) — reuse an existing MemoryLedger so external observers (e.g., UI stores) can tap into log events while the wrapper runs.
  • execute({ existingPlan }) — skip re-planning by providing a preselected plan plus the original PlannerResult.

Execution Engines

By default the wrapper uses the resumable ACM runtime, which supports checkpoints and resumeFrom execution. You can opt into the adapter engines when you want LangGraph or Microsoft Agent Framework compatibility:

import { ACMFramework, ExecutionEngine } from '@ddse/acm-framework';

const framework = ACMFramework.create({
  // ...existing configuration
  execution: {
    engine: ExecutionEngine.LANGGRAPH,
  },
});

const result = await framework.execute({
  goal: 'Run the onboarding workflow',
  engine: ExecutionEngine.MSAF, // override per-call if desired
});

The adapter engines stream events, enforce policies, and honor tool guards, but they do not currently support checkpoint/resume. For resumable executions, keep ExecutionEngine.ACM (the default).

Related Packages

  • @ddse/acm-sdk — lower-level abstractions used by this helper.
  • @ddse/acm-planner — structured planner leveraged internally.
  • @ddse/acm-runtime — deterministic execution engine invoked by execute().
  • @ddse/acm-adapters — LangGraph and MS Agent Framework adapters optionally used by the wrapper.