-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
kadubon edited this page Jun 21, 2026
·
6 revisions
percolation-inversion-compiler-ts is a Node.js package. It is intended for JavaScript and TypeScript projects that need local, deterministic JSON reports from AI agent output.
- Node.js 20 or newer.
- npm, pnpm, yarn, or another package manager that can install npm packages.
- Python is not required for normal npm use.
npm install percolation-inversion-compiler-tsThen run:
npx pic-ts demo installed-smokeIf this returns JSON with accepted=true and settled=false, the package is installed and the safety boundary is working as expected.
Add commands to package.json:
{
"scripts": {
"agent:check": "pic-ts agent check --compact --profile development",
"phase:plan": "pic-ts phase plan --compact --profile development"
}
}Then run:
npm run agent:check -- --text "Candidate packet: preserve residuals."
npm run phase:plan -- --text "Candidate packet: preserve residuals."The CLI prints JSON by default. That makes it easy for CI jobs to save reports as artifacts.
npx pic-ts agent check --compact --text "Candidate packet: preserve residuals." --output agent-check.json
npx pic-ts schema --type PhaseAccelerationPlan --output phase-plan.schema.jsonimport { runAgentCheck, schemaByType } from "percolation-inversion-compiler-ts";
const report = runAgentCheck(
{ agent_output: "Candidate packet: preserve residuals." },
true,
);
const schema = schemaByType("PhaseAccelerationPlan");See JavaScript SDK for more examples.
The Python package remains canonical for the project as a whole:
- Python repository: https://github.com/kadubon/percolation-inversion-compiler
- Python wiki: https://github.com/kadubon/percolation-inversion-compiler/wiki
This npm package follows the public JSON, CLI, schema, conformance, and safety semantics of Python v0.4.4 where they are part of the TypeScript compatibility target.
- Home
- Quickstart
- Getting Started
- Acceleration Measurement
- Operation Guide
- AFST Satisfaction Flux
- Python TypeScript Compatibility
- Security
- Node Only Agent Loop
- ASI Proxy Loop v0.9
- Token Reports and Agent Loop
- ASI Proxy Acceleration
- CCR Interop
- MCP And A2A Safety
- Operation Gate
- Phase Ecology Lab
- CLI Recipes
- JavaScript SDK
- Diagnostic Commands
- How To Read The JSON
- Agent Guide
- Agent Messages and Packets
- Schemas and Conformance
- Safety and Limits
- Compatibility With Python
- npm Package and Release Checks
- Use Cases
- Core Concepts
- Concepts in Plain Language
- What PIC Does Not Do
- Theory Map
- Glossary
- FAQ
- v1.1 Release Notes
- v0.9.0 Release Notes
- v0.8.0 Release Notes
- v0.7.0 Release Notes
- v0.6.0 Release Notes
- v0.5.0 Release Notes