@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 CHANGED
@@ -32227,6 +32227,7 @@ var BUILT_IN_BUNDLES = buildBuiltInBundles();
32227
32227
 
32228
32228
  // src/agent/bundles/scope.ts
32229
32229
  var path = __toESM(require("path"));
32230
+ var import_lib3 = require("projen/lib");
32230
32231
  function scopeFilePatternsToProjects(root, detected) {
32231
32232
  const patterns = /* @__PURE__ */ new Set();
32232
32233
  for (const project of detected) {
@@ -32240,6 +32241,10 @@ function scopeFilePatternsToProjects(root, detected) {
32240
32241
  const srcdir = project.srcdir ?? "src";
32241
32242
  patterns.add(prefix(rel, path.posix.join(srcdir, "**/*.ts")));
32242
32243
  }
32244
+ const projenrcTs = readProjenrcTsFile(project);
32245
+ if (projenrcTs) {
32246
+ patterns.add(prefix(rel, projenrcTs));
32247
+ }
32243
32248
  }
32244
32249
  return [...patterns].sort();
32245
32250
  }
@@ -32250,6 +32255,10 @@ function readTsconfigInclude(project) {
32250
32255
  }
32251
32256
  return tsconfig.include;
32252
32257
  }
32258
+ function readProjenrcTsFile(project) {
32259
+ const filePath = import_lib3.ProjenrcFile.of(project)?.filePath;
32260
+ return filePath?.endsWith(".ts") ? filePath : void 0;
32261
+ }
32253
32262
  function prefix(rel, entry) {
32254
32263
  if (!rel) {
32255
32264
  return entry;
@@ -32998,14 +33007,10 @@ var DEFAULT_CLAUDE_DENY = [
32998
33007
  "Bash(env *)"
32999
33008
  ];
33000
33009
  var DEFAULT_CLAUDE_PATH_DENY = [
33001
- "Read(./node_modules/**)",
33002
- "Read(./dist/**)",
33003
- "Read(./lib/**)",
33004
33010
  "Read(./.astro/**)",
33005
33011
  "Read(./.env)",
33006
33012
  "Read(./.env.*)",
33007
33013
  "Read(./*.lock)",
33008
- "Read(./pnpm-lock.yaml)",
33009
33014
  "Read(./package-lock.json)"
33010
33015
  ];
33011
33016
  var DEFAULT_USAGE_LOG_PATH = ".claude/usage.log";