mustflow 2.116.0 → 2.116.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.
@@ -116,6 +116,14 @@ function sourceAnchorPathPartIsIgnored(part, ignoredDirectoryNames) {
116
116
  return (ignoredDirectoryNames.has(part) ||
117
117
  SOURCE_ANCHOR_DEFAULT_EXCLUDED_PATH_PREFIXES.some((prefix) => part.startsWith(prefix)));
118
118
  }
119
+ function directoryIsLinkedGitCheckout(directoryPath) {
120
+ try {
121
+ return statSync(path.join(directoryPath, '.git')).isFile();
122
+ }
123
+ catch {
124
+ return false;
125
+ }
126
+ }
119
127
  function listFilesRecursive(root, options, current = root, depth = 0) {
120
128
  if (!existsSync(current)) {
121
129
  return [];
@@ -123,6 +131,9 @@ function listFilesRecursive(root, options, current = root, depth = 0) {
123
131
  if (depth > MAX_SOURCE_ANCHOR_DIRECTORY_DEPTH) {
124
132
  return [];
125
133
  }
134
+ if (depth > 0 && directoryIsLinkedGitCheckout(current)) {
135
+ return [];
136
+ }
126
137
  let currentRealPath;
127
138
  try {
128
139
  currentRealPath = realpathSync(current);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mustflow",
3
- "version": "2.116.0",
3
+ "version": "2.116.1",
4
4
  "description": "Agent workflow documents and CLI for mustflow repository roots.",
5
5
  "type": "module",
6
6
  "license": "MIT-0",
@@ -1,6 +1,6 @@
1
1
  id = "default"
2
2
  name = "default"
3
- version = "2.116.0"
3
+ version = "2.116.1"
4
4
  description = "Minimal workflow for LLM agents to read, edit, and verify their work in a repository."
5
5
  common_root = "common"
6
6
  locales_root = "locales"