@agentskit/doc-bridge 1.0.1 → 1.1.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 +36 -0
- package/CONTRIBUTING.md +7 -0
- package/README.md +81 -15
- package/SECURITY.md +1 -1
- package/action.yml +2 -2
- package/dist/cli/program.js +1248 -316
- package/dist/cli/program.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +338 -13
- package/dist/config/index.js.map +1 -1
- package/dist/{index-CPUJbTbg.d.ts → index-DGI9TBLE.d.ts} +906 -11
- package/dist/index.d.ts +65 -11
- package/dist/index.js +1084 -171
- package/dist/index.js.map +1 -1
- package/docs/RELEASE.md +19 -21
- package/docs/getting-started.md +27 -2
- package/docs/landing/assets/doc-bridge-hero.webp +0 -0
- package/docs/landing/assets/doc-bridge-surfaces.webp +0 -0
- package/docs/landing/assets/doc-bridge-two-way.webp +0 -0
- package/docs/landing/index.html +70 -10
- package/docs/playbook/doc-bridge-pattern.md +2 -2
- package/docs/recipes/index-pipeline.md +2 -2
- package/docs/schemas/memory-candidate-v1.md +10 -1
- package/docs/spec/cli.md +1 -0
- package/docs/spec/config-v1.md +51 -6
- package/docs/spec/documentation-standard-v1.md +131 -0
- package/ecosystem-claims.json +187 -0
- package/ecosystem-upstream.json +9 -0
- package/ecosystem.json +231 -0
- package/package.json +14 -2
- package/scripts/check-ecosystem-upstream.mjs +50 -0
- package/src/cli/program.ts +43 -9
- package/src/config/index.ts +7 -1
- package/src/config/load-config.ts +4 -14
- package/src/config/schema.ts +91 -0
- package/src/conformance/documentation-standard-v1.ts +502 -0
- package/src/conformance/ecosystem-contract.ts +175 -0
- package/src/gates/run-gates.ts +33 -4
- package/src/index-builder/human-adapters/core.ts +12 -5
- package/src/index-builder/human-adapters/docusaurus.ts +29 -44
- package/src/index-builder/human-adapters/index.ts +15 -3
- package/src/index-builder/scan-corpus.ts +6 -6
- package/src/index.ts +17 -0
- package/src/lib/bounded-text.ts +25 -0
- package/src/lib/paths.ts +20 -2
- package/src/lib/static-js-literal.ts +261 -0
- package/src/lib/walk.ts +23 -4
- package/src/version.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DocBridgeConfigV1 } from './index-
|
|
2
|
-
export { A as AgentCorpusConfig, C as ConfigNotFoundError,
|
|
1
|
+
import { D as DocBridgeConfigV1, a as DocumentationStandardRuleId } from './index-DGI9TBLE.js';
|
|
2
|
+
export { A as AgentCorpusConfig, C as ConfigNotFoundError, b as DocBridgeConfigV1Schema, c as DocumentationStandardRuleIdSchema, d as DocumentationStandardV1Config, e as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, f as LoadConfigResult, g as applyConfigDefaults, h as defineConfig, l as loadConfig, p as projectRootFromConfigPath, r as resolveProjectRoot } from './index-DGI9TBLE.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const HANDOFF_SCHEMA_VERSION: 1;
|
|
@@ -341,18 +341,18 @@ declare const KnowledgeEntrySchema: z.ZodObject<{
|
|
|
341
341
|
type: string;
|
|
342
342
|
id: string;
|
|
343
343
|
title: string;
|
|
344
|
+
links?: string[] | undefined;
|
|
344
345
|
description?: string | undefined;
|
|
345
346
|
body?: string | undefined;
|
|
346
|
-
links?: string[] | undefined;
|
|
347
347
|
tags?: string[] | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
path: string;
|
|
350
350
|
type: string;
|
|
351
351
|
id: string;
|
|
352
352
|
title: string;
|
|
353
|
+
links?: string[] | undefined;
|
|
353
354
|
description?: string | undefined;
|
|
354
355
|
body?: string | undefined;
|
|
355
|
-
links?: string[] | undefined;
|
|
356
356
|
tags?: string[] | undefined;
|
|
357
357
|
}>;
|
|
358
358
|
declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
@@ -401,18 +401,18 @@ declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
|
401
401
|
type: string;
|
|
402
402
|
id: string;
|
|
403
403
|
title: string;
|
|
404
|
+
links?: string[] | undefined;
|
|
404
405
|
description?: string | undefined;
|
|
405
406
|
body?: string | undefined;
|
|
406
|
-
links?: string[] | undefined;
|
|
407
407
|
tags?: string[] | undefined;
|
|
408
408
|
}, {
|
|
409
409
|
path: string;
|
|
410
410
|
type: string;
|
|
411
411
|
id: string;
|
|
412
412
|
title: string;
|
|
413
|
+
links?: string[] | undefined;
|
|
413
414
|
description?: string | undefined;
|
|
414
415
|
body?: string | undefined;
|
|
415
|
-
links?: string[] | undefined;
|
|
416
416
|
tags?: string[] | undefined;
|
|
417
417
|
}>, "many">;
|
|
418
418
|
capabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -640,9 +640,9 @@ declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
|
640
640
|
type: string;
|
|
641
641
|
id: string;
|
|
642
642
|
title: string;
|
|
643
|
+
links?: string[] | undefined;
|
|
643
644
|
description?: string | undefined;
|
|
644
645
|
body?: string | undefined;
|
|
645
|
-
links?: string[] | undefined;
|
|
646
646
|
tags?: string[] | undefined;
|
|
647
647
|
}[];
|
|
648
648
|
capabilities?: {
|
|
@@ -719,9 +719,9 @@ declare const DocBridgeIndexV1Schema: z.ZodObject<{
|
|
|
719
719
|
type: string;
|
|
720
720
|
id: string;
|
|
721
721
|
title: string;
|
|
722
|
+
links?: string[] | undefined;
|
|
722
723
|
description?: string | undefined;
|
|
723
724
|
body?: string | undefined;
|
|
724
|
-
links?: string[] | undefined;
|
|
725
725
|
tags?: string[] | undefined;
|
|
726
726
|
}[];
|
|
727
727
|
capabilities?: {
|
|
@@ -1415,13 +1415,67 @@ type HumanDocMap = Record<string, string>;
|
|
|
1415
1415
|
declare const scanHumanDocRecords: (root: string, config: DocBridgeConfigV1) => HumanDocRecord[];
|
|
1416
1416
|
declare const scanHumanDocs: (root: string, config: DocBridgeConfigV1) => HumanDocMap;
|
|
1417
1417
|
|
|
1418
|
-
|
|
1418
|
+
declare const DOCUMENTATION_STANDARD_V1_ID: "documentation-standard-v1";
|
|
1419
|
+
declare const DOCUMENTATION_STANDARD_V1_STATUS: "stable";
|
|
1420
|
+
|
|
1421
|
+
type DocumentationStandardRuleLevel = 'required' | 'recommended';
|
|
1422
|
+
type DocumentationStandardRuleStatus = 'pass' | 'fail' | 'excepted';
|
|
1423
|
+
type DocumentationStandardEvidence = {
|
|
1424
|
+
readonly path: string;
|
|
1425
|
+
readonly detail: string;
|
|
1426
|
+
};
|
|
1427
|
+
type DocumentationStandardRemediation = {
|
|
1428
|
+
readonly command: string;
|
|
1429
|
+
readonly detail: string;
|
|
1430
|
+
};
|
|
1431
|
+
type DocumentationStandardRuleResult = {
|
|
1432
|
+
readonly id: DocumentationStandardRuleId;
|
|
1433
|
+
readonly level: DocumentationStandardRuleLevel;
|
|
1434
|
+
readonly status: DocumentationStandardRuleStatus;
|
|
1435
|
+
readonly ok: boolean;
|
|
1436
|
+
readonly message: string;
|
|
1437
|
+
readonly evidence: readonly DocumentationStandardEvidence[];
|
|
1438
|
+
readonly remediation: DocumentationStandardRemediation;
|
|
1439
|
+
readonly exception?: {
|
|
1440
|
+
readonly reason: string;
|
|
1441
|
+
readonly approvedBy: string;
|
|
1442
|
+
readonly trackingUrl: string;
|
|
1443
|
+
};
|
|
1444
|
+
};
|
|
1445
|
+
type DocumentationConformanceReportV1 = {
|
|
1446
|
+
readonly schemaVersion: 1;
|
|
1447
|
+
readonly profile: {
|
|
1448
|
+
readonly id: typeof DOCUMENTATION_STANDARD_V1_ID;
|
|
1449
|
+
readonly version: 1;
|
|
1450
|
+
readonly status: typeof DOCUMENTATION_STANDARD_V1_STATUS;
|
|
1451
|
+
};
|
|
1452
|
+
readonly ok: boolean;
|
|
1453
|
+
readonly recommendedOk: boolean;
|
|
1454
|
+
readonly summary: {
|
|
1455
|
+
readonly required: {
|
|
1456
|
+
readonly passed: number;
|
|
1457
|
+
readonly failed: number;
|
|
1458
|
+
readonly excepted: number;
|
|
1459
|
+
};
|
|
1460
|
+
readonly recommended: {
|
|
1461
|
+
readonly passed: number;
|
|
1462
|
+
readonly failed: number;
|
|
1463
|
+
readonly excepted: number;
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
readonly results: readonly DocumentationStandardRuleResult[];
|
|
1467
|
+
};
|
|
1468
|
+
declare const runDocumentationStandardV1: (root: string, config: DocBridgeConfigV1) => DocumentationConformanceReportV1;
|
|
1469
|
+
declare const formatDocumentationStandardText: (report: DocumentationConformanceReportV1) => string[];
|
|
1470
|
+
|
|
1471
|
+
type GateId = 'index-freshness' | 'human-guide-links' | 'okf-type' | 'docs-style' | 'documentation-standard-v1';
|
|
1419
1472
|
type GateResult = {
|
|
1420
1473
|
readonly id: GateId;
|
|
1421
1474
|
readonly ok: boolean;
|
|
1422
1475
|
readonly message: string;
|
|
1423
1476
|
readonly expected?: string;
|
|
1424
1477
|
readonly actual?: string;
|
|
1478
|
+
readonly details?: DocumentationConformanceReportV1;
|
|
1425
1479
|
};
|
|
1426
1480
|
type GateRunResult = {
|
|
1427
1481
|
readonly ok: boolean;
|
|
@@ -1722,7 +1776,7 @@ declare const chunksFromMarkdown: (property: string, raw: string, sourceUrl: str
|
|
|
1722
1776
|
declare const loadFederatedChunks: (root: string, config: DocBridgeConfigV1, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
1723
1777
|
declare const retrieveHybridChunks: (root: string, config: DocBridgeConfigV1, index: DocBridgeIndexV1, query: string, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
1724
1778
|
|
|
1725
|
-
declare const PACKAGE_VERSION = "1.
|
|
1779
|
+
declare const PACKAGE_VERSION = "1.1.1";
|
|
1726
1780
|
|
|
1727
1781
|
type FrontmatterValue = string | boolean | readonly string[];
|
|
1728
1782
|
type FrontmatterData = Record<string, FrontmatterValue>;
|
|
@@ -1836,4 +1890,4 @@ declare const docBridgePatternPayload: () => {
|
|
|
1836
1890
|
cli: "ak-docs";
|
|
1837
1891
|
};
|
|
1838
1892
|
|
|
1839
|
-
export { AgentHandoffLegacySchema, type AgentHandoffV1, AgentHandoffV1JsonSchema, AgentHandoffV1Schema, type AgentSearchV1, AgentSearchV1Schema, type BuildIndexOptions, type BuildIndexResult, DOC_BRIDGE_PATTERN_ID, DOC_BRIDGE_PATTERN_META, DocBridgeConfigV1, type DocBridgeIndexV1, DocBridgeIndexV1JsonSchema, DocBridgeIndexV1Schema, DocBridgeJsonSchemas, type DocBridgeRetrievedChunk, type DocBridgeRetriever, type DocBridgeRetrieverOptions, type DoctorBadgeMetrics, type DoctorCoverage, type DoctorIssue, type DoctorReport, type FederatedRetrieverOptions, type FetchText, type GateId, type GateResult, type GateRunResult, type GithubPrOptions, type GithubPrResult, HANDOFF_SCHEMA_VERSION, type HandoffBridge, HandoffBridgeSchema, type HandoffTarget, type HandoffTargetType, HandoffTargetTypeSchema, type HumanDocMap, type HumanDocRecord, INDEX_SCHEMA_VERSION, IndexNotFoundError, type KnowledgeEntry, KnowledgeEntrySchema, MCP_TOOLS, MEMORY_CANDIDATE_SCHEMA_VERSION, type McpInstallResult, type McpInstallTarget, type MemoryCandidateV1, MemoryCandidateV1JsonSchema, MemoryCandidateV1Schema, type MemoryClassification, type MemoryPromotionDraft, type MemoryRoute, PACKAGE_VERSION, type ParseIssue, type ParseResult, PeerMissingError, type QueryKind, type QueryRequest, type QueryResult, type SafetyFinding, type SearchMatch, type WatchIndexOptions, buildDocBridgeIndex, buildLookup, chunksFromMarkdown, classifyMemoryCandidates, collectPackages, createDocBridgeRag, createDocBridgeRetriever, defaultPromotionDraftPath, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, draftMemoryPromotion, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, handleMcpRequest, indexFilePath, ingestAgentMemory, ingestCursorRules, ingestMemoryCandidates, installMcpConfig, layer1InstallHint, loadDocBridgeIndex, loadFederatedChunks, mcpSnippet, normalizeAgentHandoff, parseAgentHandoff, parseAgentSearch, parseDocBridgeConfig, parseDocBridgeIndex, parseLlmsTxtLinks, parseMemoryCandidate, promoteMemoryToGithubPr, resolveGateIds, resolveRoot, retrieveDocBridgeChunks, retrieveHybridChunks, runChatOnce, runDoctor, runGate, runGates, runQuery, safeParseAgentHandoff, scanHumanDocRecords, scanHumanDocs, scanMemorySafety, searchIndex, sha256NormalizedV1, startInkChat, startMcpStdioServer, watchDocBridgeIndex, writePromotionDraft };
|
|
1893
|
+
export { AgentHandoffLegacySchema, type AgentHandoffV1, AgentHandoffV1JsonSchema, AgentHandoffV1Schema, type AgentSearchV1, AgentSearchV1Schema, type BuildIndexOptions, type BuildIndexResult, DOCUMENTATION_STANDARD_V1_ID, DOCUMENTATION_STANDARD_V1_STATUS, DOC_BRIDGE_PATTERN_ID, DOC_BRIDGE_PATTERN_META, DocBridgeConfigV1, type DocBridgeIndexV1, DocBridgeIndexV1JsonSchema, DocBridgeIndexV1Schema, DocBridgeJsonSchemas, type DocBridgeRetrievedChunk, type DocBridgeRetriever, type DocBridgeRetrieverOptions, type DoctorBadgeMetrics, type DoctorCoverage, type DoctorIssue, type DoctorReport, type DocumentationConformanceReportV1, type DocumentationStandardEvidence, type DocumentationStandardRemediation, DocumentationStandardRuleId, type DocumentationStandardRuleLevel, type DocumentationStandardRuleResult, type DocumentationStandardRuleStatus, type FederatedRetrieverOptions, type FetchText, type GateId, type GateResult, type GateRunResult, type GithubPrOptions, type GithubPrResult, HANDOFF_SCHEMA_VERSION, type HandoffBridge, HandoffBridgeSchema, type HandoffTarget, type HandoffTargetType, HandoffTargetTypeSchema, type HumanDocMap, type HumanDocRecord, INDEX_SCHEMA_VERSION, IndexNotFoundError, type KnowledgeEntry, KnowledgeEntrySchema, MCP_TOOLS, MEMORY_CANDIDATE_SCHEMA_VERSION, type McpInstallResult, type McpInstallTarget, type MemoryCandidateV1, MemoryCandidateV1JsonSchema, MemoryCandidateV1Schema, type MemoryClassification, type MemoryPromotionDraft, type MemoryRoute, PACKAGE_VERSION, type ParseIssue, type ParseResult, PeerMissingError, type QueryKind, type QueryRequest, type QueryResult, type SafetyFinding, type SearchMatch, type WatchIndexOptions, buildDocBridgeIndex, buildLookup, chunksFromMarkdown, classifyMemoryCandidates, collectPackages, createDocBridgeRag, createDocBridgeRetriever, defaultPromotionDraftPath, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, draftMemoryPromotion, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, formatDocumentationStandardText, handleMcpRequest, indexFilePath, ingestAgentMemory, ingestCursorRules, ingestMemoryCandidates, installMcpConfig, layer1InstallHint, loadDocBridgeIndex, loadFederatedChunks, mcpSnippet, normalizeAgentHandoff, parseAgentHandoff, parseAgentSearch, parseDocBridgeConfig, parseDocBridgeIndex, parseLlmsTxtLinks, parseMemoryCandidate, promoteMemoryToGithubPr, resolveGateIds, resolveRoot, retrieveDocBridgeChunks, retrieveHybridChunks, runChatOnce, runDoctor, runDocumentationStandardV1, runGate, runGates, runQuery, safeParseAgentHandoff, scanHumanDocRecords, scanHumanDocs, scanMemorySafety, searchIndex, sha256NormalizedV1, startInkChat, startMcpStdioServer, watchDocBridgeIndex, writePromotionDraft };
|