Install the AGS SDK
Add @tmrxjd/agent-governance-system, configure GitHub Packages auth, and verify subpath imports.
What you will learn
- Install from the @tmrxjd registry
- Configure .npmrc with AGS_NPM_TOKEN
- Smoke-test commit-msg and product-licensing imports
Surface
| Imports | @tmrxjd/agent-governance-system · @tmrxjd/agent-governance-system/commit-msg · @tmrxjd/agent-governance-system/product-licensing |
|---|---|
| CLI | pnpm add @tmrxjd/agent-governance-system |
| Config | .npmrc · AGS_NPM_TOKEN · AGS_LICENSE_KEY |
What this feature does
AGS is the `@tmrxjd/agent-governance-system` package: CAP, staging, enforcement, confidence, structure graphs, delivery engines, intelligence, and MCP tool factories. Install the package first; unlock Personal/Enterprise features with `AGS_LICENSE_KEY` via `product-licensing`.
Configuration
Wire these surfaces first: .npmrc, AGS_NPM_TOKEN, AGS_LICENSE_KEY.. Treat them as the contract agents must not invent around.
@tmrxjd:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${AGS_NPM_TOKEN}How to call it
Use these package entrypoints from host or agent code: @tmrxjd/agent-governance-system, @tmrxjd/agent-governance-system/commit-msg, @tmrxjd/agent-governance-system/product-licensing.. Prefer the documented export path over deep relative imports.
- Export AGS_NPM_TOKEN
- pnpm add @tmrxjd/agent-governance-system
- Optional: export AGS_LICENSE_KEY
- Run smoke import
import { validateAgentCommitMessage } from '@tmrxjd/agent-governance-system/commit-msg'
import { entitlementsForTier } from '@tmrxjd/agent-governance-system/product-licensing'
console.log(validateAgentCommitMessage('x').ok)
console.log(entitlementsForTier('free').features.agent_core)What success looks like
Package resolves under node_modules/@tmrxjd/agent-governance-system
Subpath imports type-check
validateAgentCommitMessage returns a structured { ok, errors } object
Common failure modes
401 from npm.pkg.github.com → fix AGS_NPM_TOKEN scopes (read:packages)
ERR_PACKAGE_PATH_NOT_EXPORTED → use documented exports only
Node < 20 → upgrade runtime