@cortexpilot/frontend-api-contract is the repo-owned contract package for
frontend-safe CortexPilot route names, query shapes, and generated types.
Current package boundary: this package is still a private workspace package.
The truthful adoption path today is repo-local consumption, clone-and-reuse,
or vendored internal reuse, not registry install from npm.
index.d.ts: stable root entrypoint that re-exports the generated contract surface for the main API layerui-flow.d.ts: stable root entrypoint that re-exports generated UI-flow types for frontend consumersgenerated/index.d.ts: current generated contract-facing exports for the main API surfacegenerated/ui-flow.d.ts: current generated UI-flow-facing exports- stable import boundaries for frontend packages that should not import backend modules directly
Use this package when you want:
- route and query names that stay aligned with the generated frontend contract
- typed control-plane read surfaces without importing backend modules
- a stable contract layer below
@cortexpilot/frontend-api-client
- not a hosted SDK
- not a public marketplace artifact
- not a published Codex / Claude Code / OpenClaw listing
- not a replacement for the read-only MCP server
- Start with the public compatibility matrix when your team still needs the shortest “which adoption ladder fits us?” answer.
- Continue to the public agent starter kits when your next move is wiring a real Codex / Claude Code / OpenClaw config instead of only reading the route map.
- Continue to the public API quickstart when you want the human-readable HTTP boundary.
- Continue to the public builder quickstart when you want the package map.
- Import
@cortexpilot/frontend-api-contractwhen you are working inside the same repo or a vendored workspace copy and need generated route/query/type truth without backend imports.
If you are integrating this package into a broader coding-agent workflow, confirm the host tool's native surface first:
- Codex: repo, docs, IDE install
- Claude Code: overview, MCP docs
- OpenClaw: repo, skills docs, ClawHub
Then keep the CortexPilot package story honest:
- this contract package is for frontend-safe route/query/type truth
- it sits below the thin client and beside the shared presentation substrate
- it does not turn CortexPilot into an official plugin, marketplace artifact, or hosted SDK
../index.d.ts: current generated contract exports../ui-flow.d.ts: generated UI-flow exports../../frontend-api-client/README.md: thin client layer that sits above this contract package../../frontend-shared/README.md: shared presentation substrate that sits beside this package
If you are reusing this contract package outside the repo today, keep the boundary honest:
- copy it as part of a vendored workspace or clone, not as an implied registry install
- pair it with
@cortexpilot/frontend-api-clientwhen you want a runnable bootstrap path instead of raw route/type truth only - keep the public explanation anchored on compatibility / integrations / read-only MCP / skills, not on a fake marketplace or official plugin story