Pi's PUBLIC inbox type surface (the SDK-embedder exports on the . entry). These describe the
shape of what MeshAgent's inbox API returns — which pi bundles at runtime — but pi must not leak
@cotal-ai/connector-core (a build-only dep, absent from an installed plugin) into its shipped
.d.ts, so it OWNS the public contract here instead of re-exporting connector-core's types.
The drift guard at the bottom proves these stay structurally identical to connector-core's, at
pi's build (where connector-core IS resolvable, as a devDep); a skew is a loud typecheck error,
never a silent one. It is referenced by no exported symbol, so it is elided from the shipped
declarations and erased from the bundle.
Pi's PUBLIC inbox type surface (the SDK-embedder exports on the
.entry). These describe the shape of whatMeshAgent's inbox API returns — which pi bundles at runtime — but pi must not leak@cotal-ai/connector-core(a build-only dep, absent from an installed plugin) into its shipped.d.ts, so it OWNS the public contract here instead of re-exporting connector-core's types.The drift guard at the bottom proves these stay structurally identical to connector-core's, at pi's build (where connector-core IS resolvable, as a devDep); a skew is a loud typecheck error, never a silent one. It is referenced by no exported symbol, so it is elided from the shipped declarations and erased from the bundle.