@cratis/pi 8.2.1 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -373,6 +373,8 @@ first. Non-empty `.ai-work/` directories, even when tracked, are additionally ke
373
373
  - Agent controls: `.claude/settings.json`, `.claude/settings.local.json`, `.mcp.json`,
374
374
  `.pi/settings.json`, `.pi/extensions/**`, `.cratis/ai.manifest.json` and `.cratis/ai.json`
375
375
  - The installed `.cratis/ai/**` corpus, including when its manifest is missing or unreadable.
376
+ Project-owned files inside it stay writable: `.cratis/ai/rules/project.md`,
377
+ `.cratis/ai/rules/project/**` and `.cratis/ai/quality-gates.project.json`.
376
378
  Adapter paths in `.claude/**` and `.pi/**` are protected according to the manifest's
377
379
  `Integrations` entries. Both addressed paths and symlink destinations are checked, including
378
380
  the Claude settings link to the hook template. Without an installation manifest, authored
@@ -462,7 +462,8 @@ agent_control_in_root() {
462
462
  return 1
463
463
  fi
464
464
  if [ -f "$policy_root/.cratis/ai.manifest.json" ] || [ -d "$policy_root/.cratis/ai" ]; then
465
- if control_match "$target_rel" '.cratis/ai/*'; then return 0; fi
465
+ # Project-owned files live inside the managed tree but belong to the repository, not the corpus.
466
+ if control_match "$target_rel" '.cratis/ai/*' && ! names_match "$target_rel" '.cratis/ai/rules/project.md' '.cratis/ai/rules/project/*' '.cratis/ai/quality-gates.project.json'; then return 0; fi
466
467
  if [ -f "$policy_root/.cratis/ai.manifest.json" ] && control_match "$target_rel" '.claude/*' '.pi/*'; then
467
468
  # Integration paths, not corpus Files, establish adapter ownership.
468
469
  managed="$(jq -r '
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [