pumuki 6.3.305 → 6.3.306

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.
@@ -103,7 +103,7 @@ const isFunctionalPath = (filePath: string): boolean => {
103
103
  return PRE_WRITE_FUNCTIONAL_EXTENSIONS.some((extension) => normalized.endsWith(extension));
104
104
  };
105
105
 
106
- const collectStagedPaths = (repoRoot: string): ReadonlyArray<string> => {
106
+ const collectStagedPaths = (repoRoot: string): ReadonlyArray<string> | null => {
107
107
  try {
108
108
  return execFileSync('git', ['diff', '--cached', '--name-only'], {
109
109
  cwd: repoRoot,
@@ -114,7 +114,7 @@ const collectStagedPaths = (repoRoot: string): ReadonlyArray<string> => {
114
114
  .map((line) => line.trim())
115
115
  .filter((line) => line.length > 0);
116
116
  } catch {
117
- return [];
117
+ return null;
118
118
  }
119
119
  };
120
120
 
@@ -124,7 +124,7 @@ const resolvePreWriteRefreshScope = (aiGate: ReturnType<typeof evaluateAiGate>):
124
124
  return { kind: 'workingTree' };
125
125
  }
126
126
  const stagedPaths = collectStagedPaths(aiGate.repo_state.repo_root);
127
- if (stagedPaths.length === 0 || stagedPaths.some(isFunctionalPath)) {
127
+ if (stagedPaths === null || stagedPaths.some(isFunctionalPath)) {
128
128
  return { kind: 'staged' };
129
129
  }
130
130
  return { kind: 'workingTree' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumuki",
3
- "version": "6.3.305",
3
+ "version": "6.3.306",
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": {