pumuki 6.3.302 → 6.3.304

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.
@@ -553,6 +553,18 @@ const hasEffectiveChangedCodePlatforms = (params: {
553
553
  params.requiredPlatforms.some((platform) => isPlatformPath(platform, filePath))
554
554
  );
555
555
 
556
+ const toChangedPathDetectedPlatforms = (params: {
557
+ changedPaths: ReadonlyArray<string>;
558
+ requiredPlatforms: ReadonlyArray<PreWriteSkillsPlatform>;
559
+ }): ReadonlyArray<PreWriteSkillsPlatform> => {
560
+ if (params.changedPaths.length === 0 || params.requiredPlatforms.length === 0) {
561
+ return [];
562
+ }
563
+ return params.requiredPlatforms.filter((platform) =>
564
+ params.changedPaths.some((filePath) => isPlatformPath(platform, filePath))
565
+ );
566
+ };
567
+
556
568
  const toLockRequiredPlatforms = (
557
569
  requiredLock: SkillsLockV1 | undefined
558
570
  ): ReadonlyArray<PreWriteSkillsPlatform> => {
@@ -870,6 +882,10 @@ const toSkillsContractAssessment = (params: {
870
882
  const coverage = params.evidenceResult.evidence.snapshot.rules_coverage;
871
883
  const explicitlyDetectedPlatforms = toDetectedSkillsPlatforms(params.evidenceResult.evidence.platforms);
872
884
  const inferredPlatforms = toCoverageInferredPlatforms(coverage);
885
+ const changedPathDetectedPlatforms = toChangedPathDetectedPlatforms({
886
+ changedPaths: effectiveChangedPaths,
887
+ requiredPlatforms,
888
+ });
873
889
  const repoTreeDetectedPlatforms =
874
890
  params.stage !== 'PRE_WRITE' && requiredPlatforms.length > 0 && !hasEffectiveChangedPaths
875
891
  ? toRepoTreeDetectedPlatforms({
@@ -889,7 +905,9 @@ const toSkillsContractAssessment = (params: {
889
905
  ? explicitlyDetectedEffectivePlatforms
890
906
  : inferredPlatforms.length > 0
891
907
  ? inferredPlatforms
892
- : repoTreeDetectedPlatforms;
908
+ : changedPathDetectedPlatforms.length > 0
909
+ ? changedPathDetectedPlatforms
910
+ : repoTreeDetectedPlatforms;
893
911
  const pendingChanges = resolvePendingChanges(params.repoState);
894
912
  const detectedPlatformSet = new Set(detectedPlatforms);
895
913
  const assessmentPlatforms =
@@ -1949,8 +1949,12 @@ export const resolvePreWriteNextAction = (params: {
1949
1949
  command: buildPreWritePolicyReconcileCommand(params.aiGate.repo_state.repo_root),
1950
1950
  };
1951
1951
  }
1952
+ const hasOnlyPreWriteWorktreeWarn =
1953
+ params.aiGate.violations.length > 0
1954
+ && params.aiGate.violations.every((violation) => violation.code === 'EVIDENCE_PREWRITE_WORKTREE_WARN');
1952
1955
  const atomicSliceViolation = params.aiGate.violations.find((violation) =>
1953
1956
  PRE_WRITE_ATOMIC_SLICE_CODES.has(violation.code)
1957
+ && !(hasOnlyPreWriteWorktreeWarn && violation.code === 'EVIDENCE_PREWRITE_WORKTREE_WARN')
1954
1958
  );
1955
1959
  if (atomicSliceViolation) {
1956
1960
  const plan = collectWorktreeAtomicSlices({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.302",
3
+ "version": "6.3.304",
4
4
  "description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
5
5
  "main": "index.js",
6
6
  "bin": {