-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
percolation-inversion-compiler-ts is a Node.js package for JavaScript and
TypeScript projects that need local JSON reports from AI agent output.
It is useful when an agent result should be checked before it is reused, shared with another agent, exported as a packet, or used to plan the next workflow step.
- 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.
The easiest path is to create a small local demo folder:
npx pic-ts demo bootstrap --output-dir .pic-demo --overwriteThis creates JSON files for a runtime state, runtime input, phase request, and threshold example. These files work in a fresh npm project and do not depend on a cloned repository.
npx pic-ts runtime step --state .pic-demo/runtime_state.json --input .pic-demo/runtime_step_input.json --output .pic-demo/runtime_step_report.generated.json
npx pic-ts packet export --report .pic-demo/runtime_step_report.generated.json --output .pic-demo/packet.json
npx pic-ts packet inspect --packet .pic-demo/packet.json
npx pic-ts phase plan --request .pic-demo/asi_proxy_phase_request.json --compactThis checks a runtime step, turns the report into inert packet data, inspects the packet, and builds a phase plan.
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 EffectivePacketGraph --output effective-packet-graph.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 percolation-inversion-compiler==0.5.0 for npm and
JavaScript agent runtimes.
- 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