@agentskit/doc-bridge 1.5.0 → 1.5.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.
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "doc-bridge",
4
4
  "display_name": "Doc Bridge",
5
- "version": "1.5.0",
5
+ "version": "1.5.1",
6
6
  "description": "Deterministic repository handoffs for coding agents, running locally without an LLM or API key.",
7
7
  "long_description": "Doc Bridge turns a repository's own documentation and ownership metadata into deterministic handoffs: where an agent should start, which paths it may edit, which checks it must run, and when a human must take over. The local connector exposes the same read-only contract available through Doc Bridge CLI and CI.",
8
8
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskit/doc-bridge",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "mcpName": "io.github.AgentsKit-io/doc-bridge",
5
5
  "description": "Human↔agent documentation bridge — deterministic handoffs, doc-site links, memory→docs, optional AgentsKit RAG/chat.",
6
6
  "type": "module",
@@ -3,7 +3,7 @@
3
3
  import { spawnSync } from 'node:child_process'
4
4
  import { isAbsolute } from 'node:path'
5
5
 
6
- const VERSION = '1.5.0'
6
+ const VERSION = '1.5.1'
7
7
  const kinds = new Set(['package', 'ownership'])
8
8
  const args = process.argv.slice(2)
9
9
  const id = args[0]
@@ -158,6 +158,7 @@ const discoverPackages = (
158
158
  const dirs = expandWorkspaceGlobs(root, patterns)
159
159
  for (const absPath of dirs) {
160
160
  const manifestPath = join(absPath, 'package.json')
161
+ if (!existsSync(manifestPath)) continue
161
162
  const parsed = readJson(manifestPath)
162
163
  if (!parsed.value) {
163
164
  coverage.push({ status: 'partial', reason: `${relativePath(root, manifestPath)}: ${parsed.error ?? 'invalid package.json'}` })
@@ -404,8 +405,8 @@ const artifact = (root: string, config: DocBridgeConfigV1 | undefined, files: re
404
405
 
405
406
  export const discoverRepository = (opts: DiscoveryOptions = {}): DiscoverySnapshotV1 => {
406
407
  const root = resolve(opts.root ?? process.cwd())
407
- const maxFiles = opts.maxFiles ?? DEFAULT_MAX_FILES
408
408
  const safety = opts.config?.safety
409
+ const maxFiles = opts.maxFiles ?? safety?.maxFiles ?? DEFAULT_MAX_FILES
409
410
  const maxBytes = opts.maxBytes ?? safety?.maxBytes
410
411
  const safeOptions = {
411
412
  exclude: [...DEFAULT_SAFETY_EXCLUDES, ...(safety?.exclude ?? [])],
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '1.5.0'
1
+ export const PACKAGE_VERSION = '1.5.1'