@agentskit/doc-bridge 1.11.0 → 1.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - faf29f5: Stop reporting a path an ignore rule rescues as unreproducible.
8
+
9
+ `git check-ignore --verbose` emits a record for every path that *matched* a rule, including the path
10
+ a `!` negation rescues — and such a path is precisely one Git does not ignore. The reproducibility
11
+ check read the record without reading the pattern, so `dist/*` plus `!dist/keep.js` reported
12
+ `dist/keep.js` as a reason the index could not be rebuilt from a clean checkout. The opposite of
13
+ what the rule says, stated confidently.
14
+
15
+ The window is narrow: `check-ignore` stops reporting a path once it is committed, and a path rescued
16
+ by a negation is usually committed, which is the point of rescuing it. It shows up while such a path
17
+ is still untracked — a file added but not yet committed.
18
+
19
+ Found by turning the new `index-reproducible` gate on in this repository, which had to add
20
+ `!.doc-bridge/index.json` to its own `.gitignore` to commit the index the gate verifies.
21
+
3
22
  ## 1.11.0
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -297,19 +297,23 @@ gates without silently rebuilding them. It rejects non-exact package versions.
297
297
  See the [Marketplace guide](docs/MARKETPLACE.md).
298
298
 
299
299
  The guide is pinned to the published stable Action release `v1.7.45`; the
300
- checked-in package version is `1.8.0`.
300
+ checked-in package version is `1.11.1`.
301
301
 
302
302
  Coverage is repository-specific. Run `ak-docs doctor --badge` locally to emit
303
303
  current handoff and human-bridge badges, or `pnpm coverage:badge` in CI; this
304
304
  README intentionally avoids publishing a stale static percentage.
305
305
 
306
- Or locally:
306
+ Or locally, as two steps rather than one, because they answer different questions:
307
307
 
308
308
  ```bash
309
- ak-docs index && ak-docs gate run
309
+ ak-docs index # after changing docs or config — then review and commit the result
310
+ ak-docs gate run # verifies the committed index, which is what CI verifies
310
311
  ```
311
312
 
312
- Gate fails with `Index is stale. Run: ak-docs index` — same check in CI annotations.
313
+ Chaining them (`index && gate run`) cannot report a stale index: it gates an artifact written a
314
+ second earlier against a rebuild of the same tree. The gate's value is that the committed index
315
+ and the repository agree, so run it the way CI does, against what is committed. It fails with
316
+ `Index is stale. Run: ak-docs index` — the same check, and the same annotation, as in CI.
313
317
 
314
318
  ## Product surface
315
319
 
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.11.0'
23
+ default: '1.11.1'
24
24
 
25
25
  runs:
26
26
  using: composite
@@ -4062,7 +4062,7 @@ var buildLookup = (config, packages, corpus, indexOutFile, humanDocs = {}, root
4062
4062
  };
4063
4063
 
4064
4064
  // src/version.ts
4065
- var PACKAGE_VERSION = "1.11.0";
4065
+ var PACKAGE_VERSION = "1.11.1";
4066
4066
 
4067
4067
  // src/index-builder/capabilities.ts
4068
4068
  var renderCapabilitiesJson = (config, index, paths) => {
@@ -8065,7 +8065,7 @@ var checkIndexReproducibility = (root, indexPath, paths) => {
8065
8065
  const ignored = [];
8066
8066
  for (let index = 0; index + 3 < fields.length; index += 4) {
8067
8067
  const [source, line, pattern, path] = [fields[index], fields[index + 1], fields[index + 2], fields[index + 3]];
8068
- if (!path) continue;
8068
+ if (!path || pattern?.startsWith("!")) continue;
8069
8069
  ignored.push({ path, rule: `${source ?? "?"}:${line ?? "?"}:${pattern ?? "?"}` });
8070
8070
  }
8071
8071
  return { checked: true, ignored: ignored.sort((left, right) => left.path.localeCompare(right.path)) };