Files
front-common-library/.agent/consumer.md

1.4 KiB

KriFrontCommon Consumer Contract

  • Consume the published @kri/common package only through entry points declared by its package.json exports map.
  • Do not import from @kri/common/src/*, @kri/common/dist/*, or another undeclared deep path.
  • Prefer a public shared helper or an approved backward-compatible library addition over copying or forking shared behavior locally.
  • Do not modify KriFrontCommon or another consumer repository unless it is explicitly included in the approved task scope.

Required Shared References

Before each related task, read the current contents of every matching reference, even if it was read earlier in the session.

Task scope Required reference
Package entry points, runtime boundaries, HTTP, authentication, state, storage, environment, or optional peer integrations .agent-harness/references/kri-front-common/package-and-runtime.md
React rendering performance, memoization, or React Compiler behavior .agent-harness/references/kri-front-common/react-compiler.md
Package upgrade, dependency changes, lockfile, or verification .agent-harness/references/kri-front-common/change-and-verification.md

If a task spans multiple scopes, read every matching reference. Generated files under .agent-harness/references/ are read-only copies; edit KriFrontCommon's .agent/consumer.md or .agent/consumer-references/ and recompose instead.