@agentskit/doc-bridge 1.5.0 → 1.5.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Exclude Turbo cache files from repository discovery by default.
8
+
9
+ ## 1.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Honor configured repository file limits and ignore non-package workspace directories during discovery.
14
+
3
15
  ## 1.5.0
4
16
 
5
17
  ### Minor Changes
package/action.yml CHANGED
@@ -20,7 +20,7 @@ inputs:
20
20
  package-version:
21
21
  description: Exact @agentskit/doc-bridge npm version (kept in sync with this Action release)
22
22
  required: false
23
- default: '1.5.0'
23
+ default: '1.5.2'
24
24
 
25
25
  runs:
26
26
  using: composite
@@ -1439,7 +1439,7 @@ var buildLookup = (config, packages, corpus, indexOutFile, humanDocs = {}, root
1439
1439
  };
1440
1440
 
1441
1441
  // src/version.ts
1442
- var PACKAGE_VERSION = "1.5.0";
1442
+ var PACKAGE_VERSION = "1.5.2";
1443
1443
 
1444
1444
  // src/index-builder/capabilities.ts
1445
1445
  var renderCapabilitiesJson = (config, index, paths) => {
@@ -2969,7 +2969,7 @@ import * as ts from "typescript";
2969
2969
  import { lstatSync as lstatSync3, readdirSync as readdirSync3, realpathSync as realpathSync7, statSync as statSync4 } from "fs";
2970
2970
  import { isAbsolute as isAbsolute5, relative as relative5, resolve as resolve7, sep as sep6 } from "path";
2971
2971
  import { minimatch as minimatch4 } from "minimatch";
2972
- var DEFAULT_SAFETY_EXCLUDES = ["**/.git/**", "**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.doc-bridge/**", "**/.env", "**/.env.*", "**/*secret*", "**/*credential*", "**/*.pem", "**/*.key"];
2972
+ var DEFAULT_SAFETY_EXCLUDES = ["**/.git/**", "**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.doc-bridge/**", "**/.turbo/**", "**/.env", "**/.env.*", "**/*secret*", "**/*credential*", "**/*.pem", "**/*.key"];
2973
2973
  var containedPath = (root, candidate) => {
2974
2974
  const projectRoot = realpathSync7.native(resolve7(root));
2975
2975
  const unresolved = resolve7(projectRoot, candidate);
@@ -3132,6 +3132,7 @@ var discoverPackages = (root, rootManifest, config) => {
3132
3132
  const dirs = expandWorkspaceGlobs(root, patterns);
3133
3133
  for (const absPath of dirs) {
3134
3134
  const manifestPath = join8(absPath, "package.json");
3135
+ if (!existsSync10(manifestPath)) continue;
3135
3136
  const parsed = readJson(manifestPath);
3136
3137
  if (!parsed.value) {
3137
3138
  coverage.push({ status: "partial", reason: `${relativePath(root, manifestPath)}: ${parsed.error ?? "invalid package.json"}` });
@@ -3337,8 +3338,8 @@ var artifact = (root, config, files, entities, relations, coverage) => {
3337
3338
  };
3338
3339
  var discoverRepository = (opts = {}) => {
3339
3340
  const root = resolve8(opts.root ?? process.cwd());
3340
- const maxFiles = opts.maxFiles ?? DEFAULT_MAX_FILES2;
3341
3341
  const safety = opts.config?.safety;
3342
+ const maxFiles = opts.maxFiles ?? safety?.maxFiles ?? DEFAULT_MAX_FILES2;
3342
3343
  const maxBytes = opts.maxBytes ?? safety?.maxBytes;
3343
3344
  const safeOptions = {
3344
3345
  exclude: [...DEFAULT_SAFETY_EXCLUDES, ...safety?.exclude ?? []],