@metaobjectsdev/sdk
v0.21.1
Published
Workspace helpers and agent-docs utilities for MetaObjects projects.
Downloads
10,519
Maintainers
Readme
@metaobjectsdev/sdk
Programmatic SDK for MetaObjects: workspace memory records, path resolution, project config loading, and the agent-docs reference content. Consumed by the meta CLI and by AI-collaboration tooling (MCP exposers, codegen prompts).
Install
pnpm add @metaobjectsdev/sdkUsage
import { resolveMetaRoot, loadConfig } from "@metaobjectsdev/sdk";
const metaRoot = await resolveMetaRoot(process.cwd());
const config = await loadConfig(metaRoot);The canonical agent reference docs (scaffolded by meta init) are available via a sub-path:
import { AGENT_DOCS_BODY, withContentHash } from "@metaobjectsdev/sdk/agent-docs";agent-context
@metaobjectsdev/sdk/agent-context assembles the downstream AI-assistant context
(the slim .metaobjects/AGENTS.md/CLAUDE.md + the six metaobjects-* Claude
skills with only the project's language reference fragments) from the repo-root
agent-context/ source tree. makeStack/detectStack resolve the project's
server+client axes; assemble({ contentRoot, stack }) emits the files. Design:
docs/superpowers/specs/2026-06-02-downstream-agent-context-design.md.
Links
License
Apache 2.0 — see LICENSE at the repo root.
