arkgate 2.7.0 → 2.8.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +45 -1
  2. package/README.md +8 -0
  3. package/bin/lib/agent-gates.mjs +48 -228
  4. package/bin/lib/architecture-scan.mjs +20 -0
  5. package/bin/lib/ast-scan.mjs +232 -4
  6. package/bin/lib/codex-home.mjs +320 -0
  7. package/bin/lib/doctor-plan.mjs +2 -0
  8. package/bin/lib/remediation.mjs +44 -12
  9. package/bin/lib/ts-resolve.mjs +5 -4
  10. package/dist/index.cjs +417 -338
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +29 -9
  13. package/dist/index.d.ts +29 -9
  14. package/dist/index.js +417 -338
  15. package/dist/index.js.map +1 -1
  16. package/dist/nestjs/index.cjs +452 -373
  17. package/dist/nestjs/index.cjs.map +1 -1
  18. package/dist/nestjs/index.d.cts +1 -1
  19. package/dist/nestjs/index.d.ts +1 -1
  20. package/dist/nestjs/index.js +452 -373
  21. package/dist/nestjs/index.js.map +1 -1
  22. package/dist/runtime/index.cjs +417 -338
  23. package/dist/runtime/index.cjs.map +1 -1
  24. package/dist/runtime/index.d.cts +1 -1
  25. package/dist/runtime/index.d.ts +1 -1
  26. package/dist/runtime/index.js +417 -338
  27. package/dist/runtime/index.js.map +1 -1
  28. package/dist/{types-CP3KkwZt.d.cts → types-CSJhEOk2.d.cts} +34 -0
  29. package/dist/{types-CP3KkwZt.d.ts → types-CSJhEOk2.d.ts} +34 -0
  30. package/docs/agent-guide.md +1 -1
  31. package/docs/ai-gates.md +41 -7
  32. package/docs/brownfield-adoption.md +7 -0
  33. package/docs/demos/03-copilot-autopilot.md +3 -2
  34. package/docs/enthusiast/reference-commands.md +2 -2
  35. package/docs/package-surface.md +1 -1
  36. package/docs/production-hardening.md +11 -4
  37. package/package.json +2 -1
  38. package/server.json +2 -2
  39. package/templates/skills/ark-explain.md +3 -2
  40. package/templates/skills/ark-loop.md +2 -1
@@ -124,12 +124,13 @@ export function scanCacheKey(root, args) {
124
124
  ? args.manifest
125
125
  : path.join(root, args.manifest)
126
126
  : undefined;
127
- // Bump this schema tag whenever the cached scan shape changes, so a warm cache from an
128
- // older Ark can't feed stale entries to new logic. v2: typeOnly on edges. v3: per-file
129
- // exportsOnlyTypes (target-module type-only export detection for plan classifier).
127
+ // Bump this schema tag whenever the cached scan shape or detection semantics change, so a
128
+ // warm cache from an older Ark can't feed stale entries to new logic. v2: typeOnly on edges.
129
+ // v3: per-file exportsOnlyTypes. v4: typeOnlyExportNames + namedBindings.
130
+ // v5: hasTopLevelSideEffects. v6: non-exported impure inits + non-export class statics.
130
131
  return crypto
131
132
  .createHash('sha1')
132
- .update(`ark-check-cache-v3\0${read(configPath)}\0${manifestPath ? read(manifestPath) : ''}`)
133
+ .update(`ark-check-cache-v6\0${read(configPath)}\0${manifestPath ? read(manifestPath) : ''}`)
133
134
  .digest('hex');
134
135
  }
135
136