@tangle-network/agent-knowledge 22.0.11 → 22.0.13

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.0.13
4
+
5
+ Admit agent-eval 0.220.x while retaining the 0.218.1 floor. Development uses the published agent-eval 0.220.0.
6
+
7
+ ## 22.0.12
8
+
9
+ A dead lock holder is now decided by agent-eval's one dead-owner rule, `lockHolderVerdict` from `@tangle-network/agent-eval/lock-holder`, instead of this package's own copy; the store lock and the knowledge-improvement run lease take over exactly the holders they did before (pid gone, pid reused with a different start token, or host rebooted) and the on-disk holder record is unchanged. The agent-eval peer floor rises to 0.218.1, the first release with that export (`>=0.218.1 <0.219.0`).
10
+
3
11
  ## 22.0.11
4
12
 
5
13
  The release check verifies each supported agent-eval minor at its newest published patch, not at x.y.0. agent-eval 0.217.0 was never published, so the publish of 22.0.10 failed while installing it. The package contents are those of 22.0.10, which admits agent-eval 0.218.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as loadSourceRegistry, Mt as layoutFor, Ot as initKnowledgeBase, R as validateKnowledgeIndex, X as writeKnowledgeIndex, Z as addSourcePath, a as applyKnowledgeWriteBlocksFile, n as inspectKnowledgeIndex, t as explainKnowledgeTarget, z as lintKnowledgeIndex } from "./inspect-CTpCsUB2.js";
2
+ import { $ as loadSourceRegistry, Mt as layoutFor, Ot as initKnowledgeBase, R as validateKnowledgeIndex, X as writeKnowledgeIndex, Z as addSourcePath, a as applyKnowledgeWriteBlocksFile, n as inspectKnowledgeIndex, t as explainKnowledgeTarget, z as lintKnowledgeIndex } from "./inspect-rXk5_r3K.js";
3
3
  import { r as searchKnowledge } from "./search-aZdP2685.js";
4
4
  import { detectKnowledgeGaps, findSurprisingConnections, toKnowledgeVizGraph } from "./viz/index.js";
5
5
  import { existsSync, readFileSync } from "node:fs";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as loadSourceRegistry, $n as writeFileDurableWithinRoot, $t as KNOWLEDGE_EVENT_TYPES, A as validateKnowledgePage, An as finishKnowledgeFileTransaction, At as isScaffoldPath, B as CHECKABLE_RUNG_THRESHOLD, Bn as canonicalRelativeWithinRoot, Bt as KnowledgeEventSchema, C as immutablePageDigest, Cn as runInKnowledgeMutationScope, Ct as resolveKnowledgeCitation, D as normalizeVisibilityArtifact, Dn as applyKnowledgeFileTransaction, Dt as SCAFFOLD_PAGE_BASENAMES, E as nonEmpty$1, En as withKnowledgeRead, Et as resolveRunScopedCitations, F as detectNearDuplicatePages, Fn as recordLockOwner, Ft as WIKILINK_REGEX, G as gradeClaims, Gn as readRegularFileWithinRoot, Gt as KnowledgePageSchema, H as UncheckableClaimError, Hn as isMissingFile, Ht as KnowledgeGraphNodeSchema, I as normalizePageText, In as takeOverDeadHolder, It as extractWikilinks, J as verifyGradeableEvidence, Jn as renameDurable, Jt as ResearchClaimLedgerSchema, K as gradeFor, Kn as relativeWithinRoot, Kt as KnowledgeRelationSchema, L as prepareKnowledgeValidation, Ln as DEFAULT_PAGES_DIRECTORY, Lt as normalizeLinkTarget, M as verifyKnowledgeVisibilitySnapshot, Mn as prepareKnowledgeFileTransaction, Mt as layoutFor, N as visibilityIdentity, Nn as rollbackKnowledgeFileTransaction, Nt as loadKnowledgePages, O as normalizeVisibilityRef, On as assertKnowledgeMutationPath, Ot as initKnowledgeBase, P as visibilityIndexOf, Pn as RUN_LEASE, Pt as writeJson, Q as addSourceText, Qn as writeFileDurable, Qt as SourceRecordSchema, R as validateKnowledgeIndex, Rn as normalizePagesDirectory, Rt as DeepQuestionSchema, S as encodeKnowledgeVisibilitySnapshot, Sn as recoverPendingKnowledgeMutation, St as parseKnowledgeCitationReference, T as knowledgeVisibilityArtifactRef, Tn as withKnowledgeMutationLabel, Tt as resolveRunScopedCitation, U as assertGradeableEvidence, Un as listRegularFilesWithinRoot, Ut as KnowledgeIndexSchema, V as DEADLINE_EXIT_CODE, Vn as isKernelAnchoredPath, Vt as KnowledgeGraphEdgeSchema, W as claimCheckKey, Wn as readRegularFileNoFollow, Wt as KnowledgePageInvalidationSchema, X as writeKnowledgeIndex, Xn as withSafeDescendant, Xt as ResearchSourceVersionSchema, Y as buildKnowledgeIndex, Yn as syncDirectory, Yt as ResearchClaimRecordSchema, Z as addSourcePath, Zn as withSafeDirectory, Zt as SourceAnchorSchema, _ as KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION, _n as parseFrontmatter, _t as assertKnowledgeCitationsResolved, a as applyKnowledgeWriteBlocksFile, an as claimEvidenceId, at as KB_CLAIM_LEDGER_DIR, b as decodeKnowledgeVisibilitySnapshot, bn as isKnowledgeMutationHeld, bt as auditKnowledgeCitations, c as KnowledgeDuplicateIntakeError, cn as deepQuestionId, ct as KB_STORE_DIR, d as createFileRunLineageAuthority, dn as materializeRegisteredClaimEvidence, dt as buildKnowledgeGraph, en as ClaimLedgerGoalConflictError, er as writeJsonDurable, et as snapshotSourceTextInput, f as createRunScopedStores, fn as mergeClaimLedgers, ft as knowledgePageRelations, g as KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM, gn as formatFrontmatter, gt as assertKnowledgeCitationAudit, h as originatedPages, hn as researchSourceVersionKey, ht as assertCurrentRunCitationsResolved, i as applyKnowledgeWriteBlocks, in as assertTrackedClaimIntegrity, it as FileSystemKbStore, j as validateOrigin, jn as knowledgeFileTransactionPlanHash, jt as knowledgePageFromMarkdown, k as snapshotImmutableVisibility, kn as commitKnowledgeFileMutations, kt as isKnowledgePagePath, l as assertKnowledgeWriteIntake, ln as emptyClaimLedger, lt as MemoryKbStore, m as loadKnowledgeToolChain, mn as normalizeClaimText, mt as KnowledgeCitationResolutionError, n as inspectKnowledgeIndex, nn as assertResearchClaimEvidenceIntegrity, nr as mediaTypeFor, nt as writeSourceRegistry, o as isSafeKnowledgePath, on as claimId, ot as KB_EVENTS_PATH, p as isKnowledgeToolChain, pn as mergeTrackedClaims, pt as KnowledgeCitationAuditError, q as verdictFor, qn as removeDurable, qt as ResearchClaimEvidenceSchema, r as stringMetadata, rn as assertResearchClaimLedgerIntegrity, rr as textSourceAdapter, rt as ClaimLedgerMigrationRequiredError, s as parseKnowledgeWriteBlocks, sn as claimSourceHost, st as KB_INDEX_PATH, t as explainKnowledgeTarget, tn as assertDeepQuestionIntegrity, tr as writeJsonDurableWithinRoot, tt as sourceRegistryPath, u as RUN_LINEAGE_BASENAME, un as linkClaimContradictions, ut as assertClaimLedgerId, v as assertSchemaVersion, vn as acquireDurableFileLock, vt as assertRunScopedCitationsResolved, w as knowledgePageDigest, wn as withKnowledgeMutation, wt as resolveKnowledgeCitations, x as digest, xn as measureKnowledgeMutation, xt as formatKnowledgeCitationReference, y as createKnowledgeVisibilitySnapshot, yn as inspectPendingKnowledgeMutation, yt as auditCurrentRunCitations, z as lintKnowledgeIndex, zn as canonicalPathsEqual, zt as KnowledgeBaseCandidateSchema } from "./inspect-CTpCsUB2.js";
1
+ import { $ as loadSourceRegistry, $n as writeFileDurableWithinRoot, $t as KNOWLEDGE_EVENT_TYPES, A as validateKnowledgePage, An as finishKnowledgeFileTransaction, At as isScaffoldPath, B as CHECKABLE_RUNG_THRESHOLD, Bn as canonicalRelativeWithinRoot, Bt as KnowledgeEventSchema, C as immutablePageDigest, Cn as runInKnowledgeMutationScope, Ct as resolveKnowledgeCitation, D as normalizeVisibilityArtifact, Dn as applyKnowledgeFileTransaction, Dt as SCAFFOLD_PAGE_BASENAMES, E as nonEmpty$1, En as withKnowledgeRead, Et as resolveRunScopedCitations, F as detectNearDuplicatePages, Fn as recordLockOwner, Ft as WIKILINK_REGEX, G as gradeClaims, Gn as readRegularFileWithinRoot, Gt as KnowledgePageSchema, H as UncheckableClaimError, Hn as isMissingFile, Ht as KnowledgeGraphNodeSchema, I as normalizePageText, In as takeOverDeadHolder, It as extractWikilinks, J as verifyGradeableEvidence, Jn as renameDurable, Jt as ResearchClaimLedgerSchema, K as gradeFor, Kn as relativeWithinRoot, Kt as KnowledgeRelationSchema, L as prepareKnowledgeValidation, Ln as DEFAULT_PAGES_DIRECTORY, Lt as normalizeLinkTarget, M as verifyKnowledgeVisibilitySnapshot, Mn as prepareKnowledgeFileTransaction, Mt as layoutFor, N as visibilityIdentity, Nn as rollbackKnowledgeFileTransaction, Nt as loadKnowledgePages, O as normalizeVisibilityRef, On as assertKnowledgeMutationPath, Ot as initKnowledgeBase, P as visibilityIndexOf, Pn as RUN_LEASE, Pt as writeJson, Q as addSourceText, Qn as writeFileDurable, Qt as SourceRecordSchema, R as validateKnowledgeIndex, Rn as normalizePagesDirectory, Rt as DeepQuestionSchema, S as encodeKnowledgeVisibilitySnapshot, Sn as recoverPendingKnowledgeMutation, St as parseKnowledgeCitationReference, T as knowledgeVisibilityArtifactRef, Tn as withKnowledgeMutationLabel, Tt as resolveRunScopedCitation, U as assertGradeableEvidence, Un as listRegularFilesWithinRoot, Ut as KnowledgeIndexSchema, V as DEADLINE_EXIT_CODE, Vn as isKernelAnchoredPath, Vt as KnowledgeGraphEdgeSchema, W as claimCheckKey, Wn as readRegularFileNoFollow, Wt as KnowledgePageInvalidationSchema, X as writeKnowledgeIndex, Xn as withSafeDescendant, Xt as ResearchSourceVersionSchema, Y as buildKnowledgeIndex, Yn as syncDirectory, Yt as ResearchClaimRecordSchema, Z as addSourcePath, Zn as withSafeDirectory, Zt as SourceAnchorSchema, _ as KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION, _n as parseFrontmatter, _t as assertKnowledgeCitationsResolved, a as applyKnowledgeWriteBlocksFile, an as claimEvidenceId, at as KB_CLAIM_LEDGER_DIR, b as decodeKnowledgeVisibilitySnapshot, bn as isKnowledgeMutationHeld, bt as auditKnowledgeCitations, c as KnowledgeDuplicateIntakeError, cn as deepQuestionId, ct as KB_STORE_DIR, d as createFileRunLineageAuthority, dn as materializeRegisteredClaimEvidence, dt as buildKnowledgeGraph, en as ClaimLedgerGoalConflictError, er as writeJsonDurable, et as snapshotSourceTextInput, f as createRunScopedStores, fn as mergeClaimLedgers, ft as knowledgePageRelations, g as KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM, gn as formatFrontmatter, gt as assertKnowledgeCitationAudit, h as originatedPages, hn as researchSourceVersionKey, ht as assertCurrentRunCitationsResolved, i as applyKnowledgeWriteBlocks, in as assertTrackedClaimIntegrity, it as FileSystemKbStore, j as validateOrigin, jn as knowledgeFileTransactionPlanHash, jt as knowledgePageFromMarkdown, k as snapshotImmutableVisibility, kn as commitKnowledgeFileMutations, kt as isKnowledgePagePath, l as assertKnowledgeWriteIntake, ln as emptyClaimLedger, lt as MemoryKbStore, m as loadKnowledgeToolChain, mn as normalizeClaimText, mt as KnowledgeCitationResolutionError, n as inspectKnowledgeIndex, nn as assertResearchClaimEvidenceIntegrity, nr as mediaTypeFor, nt as writeSourceRegistry, o as isSafeKnowledgePath, on as claimId, ot as KB_EVENTS_PATH, p as isKnowledgeToolChain, pn as mergeTrackedClaims, pt as KnowledgeCitationAuditError, q as verdictFor, qn as removeDurable, qt as ResearchClaimEvidenceSchema, r as stringMetadata, rn as assertResearchClaimLedgerIntegrity, rr as textSourceAdapter, rt as ClaimLedgerMigrationRequiredError, s as parseKnowledgeWriteBlocks, sn as claimSourceHost, st as KB_INDEX_PATH, t as explainKnowledgeTarget, tn as assertDeepQuestionIntegrity, tr as writeJsonDurableWithinRoot, tt as sourceRegistryPath, u as RUN_LINEAGE_BASENAME, un as linkClaimContradictions, ut as assertClaimLedgerId, v as assertSchemaVersion, vn as acquireDurableFileLock, vt as assertRunScopedCitationsResolved, w as knowledgePageDigest, wn as withKnowledgeMutation, wt as resolveKnowledgeCitations, x as digest, xn as measureKnowledgeMutation, xt as formatKnowledgeCitationReference, y as createKnowledgeVisibilitySnapshot, yn as inspectPendingKnowledgeMutation, yt as auditCurrentRunCitations, z as lintKnowledgeIndex, zn as canonicalPathsEqual, zt as KnowledgeBaseCandidateSchema } from "./inspect-rXk5_r3K.js";
2
2
  import { i as textSourceId, n as slugify, r as stableId, t as sha256 } from "./ids-Bevz_pXV.js";
3
3
  import { a as buildKnowledgeLexicalIndex, c as tokenizeText, d as lexicalPageTerms, i as searchKnowledgePages, l as DEFAULT_FIELD_BOOSTS, n as reciprocalRankFusion, o as scoreBm25, r as searchKnowledge, s as tokenizeQuery, t as KNOWLEDGE_SEARCH_RETRIEVER_ID, u as assembleLexicalIndex } from "./search-aZdP2685.js";
4
4
  import { n as memoryWriteResultToSourceRecord, t as memoryHitToSourceRecord } from "./source-record-CdWvzvO6.js";
@@ -5,10 +5,11 @@ import { contentHash } from "@tangle-network/agent-eval";
5
5
  import { z } from "zod";
6
6
  import { createHash, randomUUID } from "node:crypto";
7
7
  import { closeSync, constants, fstatSync, lstatSync, openSync, readFileSync } from "node:fs";
8
- import { lstat, mkdir, mkdtemp, open, readFile, readdir, readlink, realpath, rename, rm, rmdir } from "node:fs/promises";
8
+ import { lstat, mkdir, mkdtemp, open, readFile, readdir, realpath, rename, rm, rmdir } from "node:fs/promises";
9
9
  import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
10
- import { hostname } from "node:os";
10
+ import { lockHolderVerdict, lockIdentity, readLockHolderIdentity } from "@tangle-network/agent-eval/lock-holder";
11
11
  import { AsyncLocalStorage } from "node:async_hooks";
12
+ import { hostname } from "node:os";
12
13
  //#region src/adapters.ts
13
14
  const textSourceAdapter = {
14
15
  id: "text",
@@ -434,61 +435,11 @@ function loadLockfile() {
434
435
  lockfileModule ??= import("proper-lockfile");
435
436
  return lockfileModule;
436
437
  }
437
- /**
438
- * The OS start token of a live pid, the way agent-runtime's `readProcessStart` reads it: the same
439
- * for a process's whole life and different for every later holder of its pid. `undefined` when
440
- * the host cannot report one. `node:child_process` loads lazily because the package root, which
441
- * Cloudflare consumers bundle, imports this module.
442
- */
443
- async function readProcessStart(pid) {
444
- if (!Number.isSafeInteger(pid) || pid <= 0 || process.platform === "win32") return void 0;
445
- if (process.platform === "linux") {
446
- let stat;
447
- try {
448
- stat = await readFile(`/proc/${pid}/stat`, "utf8");
449
- } catch {
450
- return;
451
- }
452
- const startTime = stat.slice(stat.lastIndexOf(")") + 1).trim().split(/\s+/u)[19];
453
- return startTime !== void 0 && /^\d+$/u.test(startTime) ? startTime : void 0;
454
- }
455
- try {
456
- const { execFile } = await import("node:child_process");
457
- return (await new Promise((resolve, reject) => execFile("ps", [
458
- "-o",
459
- "lstart=",
460
- "-p",
461
- String(pid)
462
- ], (error, out) => error ? reject(error) : resolve(out)))).trim() || void 0;
463
- } catch {
464
- return;
465
- }
466
- }
467
438
  let ownIdentity;
468
- function readOwnIdentity() {
469
- ownIdentity ??= (async () => {
470
- const [processStart, bootId, pidNamespace] = await Promise.all([
471
- readProcessStart(process.pid),
472
- readFile("/proc/sys/kernel/random/boot_id", "utf8").then((text) => text.trim() || void 0, () => void 0),
473
- readlink("/proc/self/ns/pid").catch(() => void 0)
474
- ]);
475
- return {
476
- ...processStart ? { processStart } : {},
477
- ...bootId ? { bootId } : {},
478
- ...pidNamespace ? { pidNamespace } : {}
479
- };
480
- })();
481
- return ownIdentity;
482
- }
483
439
  async function readLockDirectoryIdentity(cacheDir, held) {
484
440
  try {
485
441
  const entry = await lstat(join(cacheDir, held.directory), { bigint: true });
486
- if (!entry.isDirectory()) return void 0;
487
- return {
488
- dev: entry.dev.toString(),
489
- ino: entry.ino.toString(),
490
- birthtimeNs: entry.birthtimeNs.toString()
491
- };
442
+ return entry.isDirectory() ? lockIdentity(entry) : void 0;
492
443
  } catch {
493
444
  return;
494
445
  }
@@ -500,11 +451,13 @@ async function readLockDirectoryIdentity(cacheDir, held) {
500
451
  */
501
452
  async function recordLockOwner(cacheDir, label, held = STORE_LOCK) {
502
453
  try {
503
- const [identity, lock] = await Promise.all([readOwnIdentity(), readLockDirectoryIdentity(cacheDir, held)]);
454
+ ownIdentity ??= readLockHolderIdentity();
455
+ const { pid, host, ...identity } = ownIdentity;
456
+ const lock = await readLockDirectoryIdentity(cacheDir, held);
504
457
  const owner = {
505
458
  label,
506
- pid: process.pid,
507
- host: hostname(),
459
+ pid,
460
+ host,
508
461
  since: Date.now(),
509
462
  ...identity,
510
463
  ...lock ? { lock } : {}
@@ -554,46 +507,20 @@ async function readLockOwner(cacheDir, held = STORE_LOCK) {
554
507
  await handle?.close().catch(() => void 0);
555
508
  }
556
509
  }
557
- /** Only ESRCH proves a pid gone; EPERM means it exists under another user. */
558
- function pidIsGone(pid) {
559
- try {
560
- process.kill(pid, 0);
561
- return false;
562
- } catch (error) {
563
- return error.code === "ESRCH";
564
- }
565
- }
566
510
  /**
567
- * The holder of the current lock, when its record proves it dead; otherwise `undefined`,
568
- * and the caller keeps the `staleMs` lease. Proof needs a record with every identity field,
569
- * written for this very lock directory (dev, ino and a nonzero birthtime), on this host and pid
570
- * namespace, and then a rebooted host, a gone pid, or a pid whose start token changed. Anything
571
- * else is unknown, so a live holder's lease is never shortened.
511
+ * The holder of the current lock, when its record proves it dead; otherwise `undefined`, and the
512
+ * caller keeps the `staleMs` lease. agent-eval's `./lock-holder` owns the rule; this module owns
513
+ * reading the record and the lock directory it names.
572
514
  */
573
515
  async function holderIsProvablyDead(cacheDir, held = STORE_LOCK) {
574
516
  const holder = await readLockOwner(cacheDir, held);
575
- if (!holder?.processStart || !holder.lock || holder.pid <= 0) return void 0;
576
517
  const lock = await readLockDirectoryIdentity(cacheDir, held);
577
- if (!lock || lock.birthtimeNs === "0" || lock.dev !== holder.lock.dev || lock.ino !== holder.lock.ino || lock.birthtimeNs !== holder.lock.birthtimeNs || holder.host !== hostname()) return;
578
- const own = await readOwnIdentity();
579
- if (holder.pidNamespace !== own.pidNamespace) return void 0;
580
- if (holder.bootId === void 0 !== (own.bootId === void 0)) return void 0;
581
- if (holder.bootId !== own.bootId) return {
582
- holder,
583
- lock,
584
- reason: "host rebooted"
585
- };
586
- if (pidIsGone(holder.pid)) return {
518
+ const verdict = lockHolderVerdict(holder, lock);
519
+ return verdict.liveness === "dead" && holder && lock ? {
587
520
  holder,
588
521
  lock,
589
- reason: "pid gone"
590
- };
591
- const start = await readProcessStart(holder.pid);
592
- if (start !== void 0 && start !== holder.processStart) return {
593
- holder,
594
- lock,
595
- reason: "pid reused"
596
- };
522
+ reason: verdict.reason
523
+ } : void 0;
597
524
  }
598
525
  /**
599
526
  * Break the lock of a provably dead holder, and report whether this call broke it. The
@@ -5260,4 +5187,4 @@ function explainKnowledgeTarget(index, target) {
5260
5187
  //#endregion
5261
5188
  export { loadSourceRegistry as $, writeFileDurableWithinRoot as $n, KNOWLEDGE_EVENT_TYPES as $t, validateKnowledgePage as A, finishKnowledgeFileTransaction as An, isScaffoldPath as At, CHECKABLE_RUNG_THRESHOLD as B, canonicalRelativeWithinRoot as Bn, KnowledgeEventSchema as Bt, immutablePageDigest as C, runInKnowledgeMutationScope as Cn, resolveKnowledgeCitation as Ct, normalizeVisibilityArtifact as D, applyKnowledgeFileTransaction as Dn, SCAFFOLD_PAGE_BASENAMES as Dt, nonEmpty as E, withKnowledgeRead as En, resolveRunScopedCitations as Et, detectNearDuplicatePages as F, recordLockOwner as Fn, WIKILINK_REGEX as Ft, gradeClaims as G, readRegularFileWithinRoot as Gn, KnowledgePageSchema as Gt, UncheckableClaimError as H, isMissingFile as Hn, KnowledgeGraphNodeSchema as Ht, normalizePageText as I, takeOverDeadHolder as In, extractWikilinks as It, verifyGradeableEvidence as J, renameDurable as Jn, ResearchClaimLedgerSchema as Jt, gradeFor as K, relativeWithinRoot as Kn, KnowledgeRelationSchema as Kt, prepareKnowledgeValidation as L, DEFAULT_PAGES_DIRECTORY as Ln, normalizeLinkTarget as Lt, verifyKnowledgeVisibilitySnapshot as M, prepareKnowledgeFileTransaction as Mn, layoutFor as Mt, visibilityIdentity as N, rollbackKnowledgeFileTransaction as Nn, loadKnowledgePages as Nt, normalizeVisibilityRef as O, assertKnowledgeMutationPath as On, initKnowledgeBase as Ot, visibilityIndexOf as P, RUN_LEASE as Pn, writeJson as Pt, addSourceText as Q, writeFileDurable as Qn, SourceRecordSchema as Qt, validateKnowledgeIndex as R, normalizePagesDirectory as Rn, DeepQuestionSchema as Rt, encodeKnowledgeVisibilitySnapshot as S, recoverPendingKnowledgeMutation as Sn, parseKnowledgeCitationReference as St, knowledgeVisibilityArtifactRef as T, withKnowledgeMutationLabel as Tn, resolveRunScopedCitation as Tt, assertGradeableEvidence as U, listRegularFilesWithinRoot as Un, KnowledgeIndexSchema as Ut, DEADLINE_EXIT_CODE as V, isKernelAnchoredPath as Vn, KnowledgeGraphEdgeSchema as Vt, claimCheckKey as W, readRegularFileNoFollow as Wn, KnowledgePageInvalidationSchema as Wt, writeKnowledgeIndex as X, withSafeDescendant as Xn, ResearchSourceVersionSchema as Xt, buildKnowledgeIndex as Y, syncDirectory as Yn, ResearchClaimRecordSchema as Yt, addSourcePath as Z, withSafeDirectory as Zn, SourceAnchorSchema as Zt, KNOWLEDGE_USE_RECEIPT_SCHEMA_VERSION as _, parseFrontmatter as _n, assertKnowledgeCitationsResolved as _t, applyKnowledgeWriteBlocksFile as a, claimEvidenceId as an, KB_CLAIM_LEDGER_DIR as at, decodeKnowledgeVisibilitySnapshot as b, isKnowledgeMutationHeld as bn, auditKnowledgeCitations as bt, KnowledgeDuplicateIntakeError as c, deepQuestionId as cn, KB_STORE_DIR as ct, createFileRunLineageAuthority as d, materializeRegisteredClaimEvidence as dn, buildKnowledgeGraph as dt, ClaimLedgerGoalConflictError as en, writeJsonDurable as er, snapshotSourceTextInput as et, createRunScopedStores as f, mergeClaimLedgers as fn, knowledgePageRelations as ft, KNOWLEDGE_RECEIPT_DIGEST_ALGORITHM as g, formatFrontmatter as gn, assertKnowledgeCitationAudit as gt, originatedPages as h, researchSourceVersionKey as hn, assertCurrentRunCitationsResolved as ht, applyKnowledgeWriteBlocks as i, assertTrackedClaimIntegrity as in, FileSystemKbStore as it, validateOrigin as j, knowledgeFileTransactionPlanHash as jn, knowledgePageFromMarkdown as jt, snapshotImmutableVisibility as k, commitKnowledgeFileMutations as kn, isKnowledgePagePath as kt, assertKnowledgeWriteIntake as l, emptyClaimLedger as ln, MemoryKbStore as lt, loadKnowledgeToolChain as m, normalizeClaimText as mn, KnowledgeCitationResolutionError as mt, inspectKnowledgeIndex as n, assertResearchClaimEvidenceIntegrity as nn, mediaTypeFor$1 as nr, writeSourceRegistry as nt, isSafeKnowledgePath as o, claimId as on, KB_EVENTS_PATH as ot, isKnowledgeToolChain as p, mergeTrackedClaims as pn, KnowledgeCitationAuditError as pt, verdictFor as q, removeDurable as qn, ResearchClaimEvidenceSchema as qt, stringMetadata as r, assertResearchClaimLedgerIntegrity as rn, textSourceAdapter as rr, ClaimLedgerMigrationRequiredError as rt, parseKnowledgeWriteBlocks as s, claimSourceHost as sn, KB_INDEX_PATH as st, explainKnowledgeTarget as t, assertDeepQuestionIntegrity as tn, writeJsonDurableWithinRoot as tr, sourceRegistryPath as tt, RUN_LINEAGE_BASENAME as u, linkClaimContradictions as un, assertClaimLedgerId as ut, assertSchemaVersion as v, acquireDurableFileLock as vn, assertRunScopedCitationsResolved as vt, knowledgePageDigest as w, withKnowledgeMutation as wn, resolveKnowledgeCitations as wt, digest as x, measureKnowledgeMutation as xn, formatKnowledgeCitationReference as xt, createKnowledgeVisibilitySnapshot as y, inspectPendingKnowledgeMutation as yn, auditCurrentRunCitations as yt, lintKnowledgeIndex as z, canonicalPathsEqual as zn, KnowledgeBaseCandidateSchema as zt };
5262
5189
 
5263
- //# sourceMappingURL=inspect-CTpCsUB2.js.map
5190
+ //# sourceMappingURL=inspect-rXk5_r3K.js.map