@codedrifters/configulator 0.0.367 → 0.0.369
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.
- package/lib/index.js +9 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -31883,6 +31883,7 @@ var BUILT_IN_BUNDLES = buildBuiltInBundles();
|
|
|
31883
31883
|
|
|
31884
31884
|
// src/agent/bundles/scope.ts
|
|
31885
31885
|
import * as path from "path";
|
|
31886
|
+
import { ProjenrcFile } from "projen/lib";
|
|
31886
31887
|
function scopeFilePatternsToProjects(root, detected) {
|
|
31887
31888
|
const patterns = /* @__PURE__ */ new Set();
|
|
31888
31889
|
for (const project of detected) {
|
|
@@ -31896,6 +31897,10 @@ function scopeFilePatternsToProjects(root, detected) {
|
|
|
31896
31897
|
const srcdir = project.srcdir ?? "src";
|
|
31897
31898
|
patterns.add(prefix(rel, path.posix.join(srcdir, "**/*.ts")));
|
|
31898
31899
|
}
|
|
31900
|
+
const projenrcTs = readProjenrcTsFile(project);
|
|
31901
|
+
if (projenrcTs) {
|
|
31902
|
+
patterns.add(prefix(rel, projenrcTs));
|
|
31903
|
+
}
|
|
31899
31904
|
}
|
|
31900
31905
|
return [...patterns].sort();
|
|
31901
31906
|
}
|
|
@@ -31906,6 +31911,10 @@ function readTsconfigInclude(project) {
|
|
|
31906
31911
|
}
|
|
31907
31912
|
return tsconfig.include;
|
|
31908
31913
|
}
|
|
31914
|
+
function readProjenrcTsFile(project) {
|
|
31915
|
+
const filePath = ProjenrcFile.of(project)?.filePath;
|
|
31916
|
+
return filePath?.endsWith(".ts") ? filePath : void 0;
|
|
31917
|
+
}
|
|
31909
31918
|
function prefix(rel, entry) {
|
|
31910
31919
|
if (!rel) {
|
|
31911
31920
|
return entry;
|
|
@@ -32654,14 +32663,10 @@ var DEFAULT_CLAUDE_DENY = [
|
|
|
32654
32663
|
"Bash(env *)"
|
|
32655
32664
|
];
|
|
32656
32665
|
var DEFAULT_CLAUDE_PATH_DENY = [
|
|
32657
|
-
"Read(./node_modules/**)",
|
|
32658
|
-
"Read(./dist/**)",
|
|
32659
|
-
"Read(./lib/**)",
|
|
32660
32666
|
"Read(./.astro/**)",
|
|
32661
32667
|
"Read(./.env)",
|
|
32662
32668
|
"Read(./.env.*)",
|
|
32663
32669
|
"Read(./*.lock)",
|
|
32664
|
-
"Read(./pnpm-lock.yaml)",
|
|
32665
32670
|
"Read(./package-lock.json)"
|
|
32666
32671
|
];
|
|
32667
32672
|
var DEFAULT_USAGE_LOG_PATH = ".claude/usage.log";
|