create-hlao-deployment
v0.1.1
Published
Scaffold generator for HLAO deployment kits. Run once per org (or client) to produce a clean deployment repo depending on @hlao/* engine packages, wired to the three-layer HLAO model (engine + adapters + deployment kit).
Readme
create-hlao-deployment
Scaffold generator for HLAO deployment kits. One command produces a clean skeleton ready for an organization to fill in the seven org-specific things (identity, routing, credentials, workflows, agents, verifyActor, deploy shape) and start running.
Usage
npx create-hlao-deployment my-org-nameThat produces a directory my-org-name/ containing:
config/identity.md— blank template for who the org is (voice, rules, authority scopes)config/routing.md— blank template for which workflow handles whatworkspaces/_template/— copied from the engine; numbered stages,CONTEXT.mdfiles,.review-gatemarkers ready to be duplicated per workflowsrc/— TypeScript bootstrap wired to@hlao/*from npmengine.ts— composes@hlao/authority,@hlao/passport,@hlao/mcp-gateway,@hlao/orchestrator,@hlao/audit,@hlao/memory,@hlao/audit-queryverifyActor.ts— stub with instructions on installing one of the@hlao-adapter/google-sso-*packages (or writing your own)workflow.ts— stage-runner scaffoldindex.ts— entry point
docker-compose.yml— local-first deploy shape per ADR-0013.env.example— every credential slot documented and empty.gitignore,tsconfig.json,package.json— the usualREADME.md— walks the org through the seven things in order
The generated repo already depends on the correct @hlao/* versions
from npm public. No workspace links, no clone-the-engine-first step.
The adopter runs pnpm install and they're ready to fill in.
The three-layer HLAO model this fits into
Deployment Kit (this generator produces one of these)
depends on
Adapters (@hlao-mcp/* for data sources, @hlao-adapter/* for identity)
depends on
Engine (@hlao/* — the workflow-agnostic substrate)The generator ships nothing org-specific. Everything a specific organization needs to fill in is either a blank template (identity, routing) or a stub with clear replace-me instructions (verifyActor, workflows, credentials).
What this generator does NOT do
- Pick your identity provider. The
verifyActorstub tells you which adapter to install (@hlao-adapter/google-sso-oidc,@hlao-adapter/google-sso-oauth, or@hlao-adapter/google-sso-directory) based on your app shape; you install and wire. - Pick your MCP servers. The
.env.examplelists every@hlao-mcp/*package with a comment naming the credentials each needs. You install only the ones your org uses. - Define your workflows.
workspaces/_template/is a shape, not a workflow. You copy it, rename it, and fill in the stages. - Choose an agent runtime. Per ADR-0017 LangGraph is recommended, but the engine is silent on runtime. The generator's workflow scaffold works with any runtime that meets the engine's contract.
Development
git clone https://github.com/joelbyler272/create-hlao-deployment.git
cd create-hlao-deployment
pnpm install
pnpm build
pnpm test
# Test the generator locally against a scratch dir:
node dist/cli.js /tmp/scratch-org