@agentskit/doc-bridge 1.4.3 → 1.5.0
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 +6 -0
- package/action.yml +1 -1
- package/dist/cli/program.js +2412 -268
- package/dist/cli/program.js.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.js +74 -3
- package/dist/config/index.js.map +1 -1
- package/dist/{index-DhoAG9Ar.d.ts → index-Di7PkJuf.d.ts} +195 -8
- package/dist/index.d.ts +1942 -4
- package/dist/index.js +2143 -189
- package/dist/index.js.map +1 -1
- package/docs/PRD-doc-bridge-knowledge-engine.md +338 -0
- package/docs/knowledge-engine-runbook.md +44 -0
- package/ecosystem-claims.json +16 -16
- package/ecosystem-upstream.json +2 -2
- package/ecosystem.json +84 -127
- package/mcpb/manifest.json +25 -1
- package/package.json +2 -2
- package/skills/doc-bridge-handoff/scripts/resolve-handoff.mjs +1 -1
- package/src/agents/registry-adapter.ts +97 -0
- package/src/cli/program.ts +285 -3
- package/src/config/defaults.ts +14 -1
- package/src/config/schema.ts +67 -0
- package/src/discovery/documentation.ts +320 -0
- package/src/discovery/repository.ts +514 -0
- package/src/fixes/proposals.ts +165 -0
- package/src/index-builder/content-hash.ts +9 -2
- package/src/index.ts +99 -2
- package/src/mcp/server.ts +178 -8
- package/src/reconciliation/reconcile.ts +227 -0
- package/src/report/html.ts +74 -0
- package/src/rules/engine.ts +180 -0
- package/src/safety/repository.ts +84 -0
- package/src/schemas/knowledge.ts +315 -0
- package/src/validate.ts +24 -0
- package/src/version.ts +1 -1
- package/src/workflow/engine.ts +238 -0
- package/tsup.config.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DocBridgeConfigV1, a as DocumentationStandardRuleId } from './index-
|
|
2
|
-
export { A as AgentCorpusConfig, C as ConfigNotFoundError,
|
|
1
|
+
import { D as DocBridgeConfigV1, R as RulesConfig, a as RuleId, b as RuleSeverity, c as DocumentationStandardRuleId } from './index-Di7PkJuf.js';
|
|
2
|
+
export { A as AgentCorpusConfig, C as ConfigNotFoundError, d as DocBridgeConfigV1Schema, e as DocumentationStandardRuleIdSchema, f as DocumentationStandardV1Config, g as DocumentationStandardV1ConfigSchema, E as EcosystemContractEvidenceSchema, L as LoadConfigOptions, h as LoadConfigResult, i as RepositorySafetyConfig, j as RepositorySafetyConfigSchema, k as RuleIdSchema, l as RuleSeveritySchema, m as RulesConfigSchema, W as WorkflowConfig, n as WorkflowConfigSchema, o as applyConfigDefaults, p as defineConfig, q as loadConfig, r as projectRootFromConfigPath, s as resolveProjectRoot } from './index-Di7PkJuf.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
declare const HANDOFF_SCHEMA_VERSION: 1;
|
|
@@ -1374,6 +1374,1649 @@ declare const DocBridgeJsonSchemas: {
|
|
|
1374
1374
|
};
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
1377
|
+
declare const KNOWLEDGE_SCHEMA_VERSION: 1;
|
|
1378
|
+
declare const KNOWLEDGE_CONTENT_HASH_ALGO: "sha256-normalized-v1";
|
|
1379
|
+
declare const ProvenanceSchema: z.ZodEnum<["observed", "declared", "proposed"]>;
|
|
1380
|
+
type Provenance = z.infer<typeof ProvenanceSchema>;
|
|
1381
|
+
declare const FindingStatusSchema: z.ZodEnum<["confirmed", "undocumented", "stale-or-unverified", "conflict", "unresolved", "not-analyzed"]>;
|
|
1382
|
+
type FindingStatus = z.infer<typeof FindingStatusSchema>;
|
|
1383
|
+
declare const DiagnosticSeveritySchema: z.ZodEnum<["off", "info", "warn", "error"]>;
|
|
1384
|
+
type DiagnosticSeverity = z.infer<typeof DiagnosticSeveritySchema>;
|
|
1385
|
+
declare const EvidenceSourceSchema: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1386
|
+
declare const EvidenceSchema: z.ZodEffects<z.ZodObject<{
|
|
1387
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1388
|
+
path: z.ZodString;
|
|
1389
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1390
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1392
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
}, "strict", z.ZodTypeAny, {
|
|
1394
|
+
path: string;
|
|
1395
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1396
|
+
contentHash?: string | undefined;
|
|
1397
|
+
lineStart?: number | undefined;
|
|
1398
|
+
lineEnd?: number | undefined;
|
|
1399
|
+
context?: string | undefined;
|
|
1400
|
+
}, {
|
|
1401
|
+
path: string;
|
|
1402
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1403
|
+
contentHash?: string | undefined;
|
|
1404
|
+
lineStart?: number | undefined;
|
|
1405
|
+
lineEnd?: number | undefined;
|
|
1406
|
+
context?: string | undefined;
|
|
1407
|
+
}>, {
|
|
1408
|
+
path: string;
|
|
1409
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1410
|
+
contentHash?: string | undefined;
|
|
1411
|
+
lineStart?: number | undefined;
|
|
1412
|
+
lineEnd?: number | undefined;
|
|
1413
|
+
context?: string | undefined;
|
|
1414
|
+
}, {
|
|
1415
|
+
path: string;
|
|
1416
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1417
|
+
contentHash?: string | undefined;
|
|
1418
|
+
lineStart?: number | undefined;
|
|
1419
|
+
lineEnd?: number | undefined;
|
|
1420
|
+
context?: string | undefined;
|
|
1421
|
+
}>;
|
|
1422
|
+
type Evidence = z.infer<typeof EvidenceSchema>;
|
|
1423
|
+
declare const CoverageSchema: z.ZodObject<{
|
|
1424
|
+
analyzer: z.ZodString;
|
|
1425
|
+
scope: z.ZodString;
|
|
1426
|
+
status: z.ZodEnum<["complete", "partial", "not-analyzed"]>;
|
|
1427
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1429
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1430
|
+
path: z.ZodString;
|
|
1431
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1432
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1433
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
}, "strict", z.ZodTypeAny, {
|
|
1436
|
+
path: string;
|
|
1437
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1438
|
+
contentHash?: string | undefined;
|
|
1439
|
+
lineStart?: number | undefined;
|
|
1440
|
+
lineEnd?: number | undefined;
|
|
1441
|
+
context?: string | undefined;
|
|
1442
|
+
}, {
|
|
1443
|
+
path: string;
|
|
1444
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1445
|
+
contentHash?: string | undefined;
|
|
1446
|
+
lineStart?: number | undefined;
|
|
1447
|
+
lineEnd?: number | undefined;
|
|
1448
|
+
context?: string | undefined;
|
|
1449
|
+
}>, {
|
|
1450
|
+
path: string;
|
|
1451
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1452
|
+
contentHash?: string | undefined;
|
|
1453
|
+
lineStart?: number | undefined;
|
|
1454
|
+
lineEnd?: number | undefined;
|
|
1455
|
+
context?: string | undefined;
|
|
1456
|
+
}, {
|
|
1457
|
+
path: string;
|
|
1458
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1459
|
+
contentHash?: string | undefined;
|
|
1460
|
+
lineStart?: number | undefined;
|
|
1461
|
+
lineEnd?: number | undefined;
|
|
1462
|
+
context?: string | undefined;
|
|
1463
|
+
}>, "many">>;
|
|
1464
|
+
}, "strict", z.ZodTypeAny, {
|
|
1465
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
1466
|
+
analyzer: string;
|
|
1467
|
+
scope: string;
|
|
1468
|
+
reason?: string | undefined;
|
|
1469
|
+
evidence?: {
|
|
1470
|
+
path: string;
|
|
1471
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1472
|
+
contentHash?: string | undefined;
|
|
1473
|
+
lineStart?: number | undefined;
|
|
1474
|
+
lineEnd?: number | undefined;
|
|
1475
|
+
context?: string | undefined;
|
|
1476
|
+
}[] | undefined;
|
|
1477
|
+
}, {
|
|
1478
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
1479
|
+
analyzer: string;
|
|
1480
|
+
scope: string;
|
|
1481
|
+
reason?: string | undefined;
|
|
1482
|
+
evidence?: {
|
|
1483
|
+
path: string;
|
|
1484
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1485
|
+
contentHash?: string | undefined;
|
|
1486
|
+
lineStart?: number | undefined;
|
|
1487
|
+
lineEnd?: number | undefined;
|
|
1488
|
+
context?: string | undefined;
|
|
1489
|
+
}[] | undefined;
|
|
1490
|
+
}>;
|
|
1491
|
+
declare const ProjectIdentitySchema: z.ZodObject<{
|
|
1492
|
+
name: z.ZodString;
|
|
1493
|
+
root: z.ZodOptional<z.ZodString>;
|
|
1494
|
+
}, "strict", z.ZodTypeAny, {
|
|
1495
|
+
name: string;
|
|
1496
|
+
root?: string | undefined;
|
|
1497
|
+
}, {
|
|
1498
|
+
name: string;
|
|
1499
|
+
root?: string | undefined;
|
|
1500
|
+
}>;
|
|
1501
|
+
declare const EntitySchema: z.ZodObject<{
|
|
1502
|
+
id: z.ZodString;
|
|
1503
|
+
kind: z.ZodString;
|
|
1504
|
+
name: z.ZodString;
|
|
1505
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1506
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1507
|
+
provenance: z.ZodEnum<["observed", "declared", "proposed"]>;
|
|
1508
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1509
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1510
|
+
path: z.ZodString;
|
|
1511
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
}, "strict", z.ZodTypeAny, {
|
|
1516
|
+
path: string;
|
|
1517
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1518
|
+
contentHash?: string | undefined;
|
|
1519
|
+
lineStart?: number | undefined;
|
|
1520
|
+
lineEnd?: number | undefined;
|
|
1521
|
+
context?: string | undefined;
|
|
1522
|
+
}, {
|
|
1523
|
+
path: string;
|
|
1524
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1525
|
+
contentHash?: string | undefined;
|
|
1526
|
+
lineStart?: number | undefined;
|
|
1527
|
+
lineEnd?: number | undefined;
|
|
1528
|
+
context?: string | undefined;
|
|
1529
|
+
}>, {
|
|
1530
|
+
path: string;
|
|
1531
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1532
|
+
contentHash?: string | undefined;
|
|
1533
|
+
lineStart?: number | undefined;
|
|
1534
|
+
lineEnd?: number | undefined;
|
|
1535
|
+
context?: string | undefined;
|
|
1536
|
+
}, {
|
|
1537
|
+
path: string;
|
|
1538
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1539
|
+
contentHash?: string | undefined;
|
|
1540
|
+
lineStart?: number | undefined;
|
|
1541
|
+
lineEnd?: number | undefined;
|
|
1542
|
+
context?: string | undefined;
|
|
1543
|
+
}>, "many">;
|
|
1544
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1545
|
+
}, "strict", z.ZodTypeAny, {
|
|
1546
|
+
id: string;
|
|
1547
|
+
name: string;
|
|
1548
|
+
kind: string;
|
|
1549
|
+
evidence: {
|
|
1550
|
+
path: string;
|
|
1551
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1552
|
+
contentHash?: string | undefined;
|
|
1553
|
+
lineStart?: number | undefined;
|
|
1554
|
+
lineEnd?: number | undefined;
|
|
1555
|
+
context?: string | undefined;
|
|
1556
|
+
}[];
|
|
1557
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1558
|
+
path?: string | undefined;
|
|
1559
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1560
|
+
aliases?: string[] | undefined;
|
|
1561
|
+
}, {
|
|
1562
|
+
id: string;
|
|
1563
|
+
name: string;
|
|
1564
|
+
kind: string;
|
|
1565
|
+
evidence: {
|
|
1566
|
+
path: string;
|
|
1567
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1568
|
+
contentHash?: string | undefined;
|
|
1569
|
+
lineStart?: number | undefined;
|
|
1570
|
+
lineEnd?: number | undefined;
|
|
1571
|
+
context?: string | undefined;
|
|
1572
|
+
}[];
|
|
1573
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1574
|
+
path?: string | undefined;
|
|
1575
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1576
|
+
aliases?: string[] | undefined;
|
|
1577
|
+
}>;
|
|
1578
|
+
type KnowledgeEntity = z.infer<typeof EntitySchema>;
|
|
1579
|
+
declare const RelationSchema: z.ZodObject<{
|
|
1580
|
+
id: z.ZodString;
|
|
1581
|
+
kind: z.ZodString;
|
|
1582
|
+
from: z.ZodString;
|
|
1583
|
+
to: z.ZodString;
|
|
1584
|
+
discriminator: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
provenance: z.ZodEnum<["observed", "declared", "proposed"]>;
|
|
1586
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1587
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1588
|
+
path: z.ZodString;
|
|
1589
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1590
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1591
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
}, "strict", z.ZodTypeAny, {
|
|
1594
|
+
path: string;
|
|
1595
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1596
|
+
contentHash?: string | undefined;
|
|
1597
|
+
lineStart?: number | undefined;
|
|
1598
|
+
lineEnd?: number | undefined;
|
|
1599
|
+
context?: string | undefined;
|
|
1600
|
+
}, {
|
|
1601
|
+
path: string;
|
|
1602
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1603
|
+
contentHash?: string | undefined;
|
|
1604
|
+
lineStart?: number | undefined;
|
|
1605
|
+
lineEnd?: number | undefined;
|
|
1606
|
+
context?: string | undefined;
|
|
1607
|
+
}>, {
|
|
1608
|
+
path: string;
|
|
1609
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1610
|
+
contentHash?: string | undefined;
|
|
1611
|
+
lineStart?: number | undefined;
|
|
1612
|
+
lineEnd?: number | undefined;
|
|
1613
|
+
context?: string | undefined;
|
|
1614
|
+
}, {
|
|
1615
|
+
path: string;
|
|
1616
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1617
|
+
contentHash?: string | undefined;
|
|
1618
|
+
lineStart?: number | undefined;
|
|
1619
|
+
lineEnd?: number | undefined;
|
|
1620
|
+
context?: string | undefined;
|
|
1621
|
+
}>, "many">;
|
|
1622
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1623
|
+
}, "strict", z.ZodTypeAny, {
|
|
1624
|
+
id: string;
|
|
1625
|
+
kind: string;
|
|
1626
|
+
evidence: {
|
|
1627
|
+
path: string;
|
|
1628
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1629
|
+
contentHash?: string | undefined;
|
|
1630
|
+
lineStart?: number | undefined;
|
|
1631
|
+
lineEnd?: number | undefined;
|
|
1632
|
+
context?: string | undefined;
|
|
1633
|
+
}[];
|
|
1634
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1635
|
+
from: string;
|
|
1636
|
+
to: string;
|
|
1637
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1638
|
+
discriminator?: string | undefined;
|
|
1639
|
+
}, {
|
|
1640
|
+
id: string;
|
|
1641
|
+
kind: string;
|
|
1642
|
+
evidence: {
|
|
1643
|
+
path: string;
|
|
1644
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1645
|
+
contentHash?: string | undefined;
|
|
1646
|
+
lineStart?: number | undefined;
|
|
1647
|
+
lineEnd?: number | undefined;
|
|
1648
|
+
context?: string | undefined;
|
|
1649
|
+
}[];
|
|
1650
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1651
|
+
from: string;
|
|
1652
|
+
to: string;
|
|
1653
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1654
|
+
discriminator?: string | undefined;
|
|
1655
|
+
}>;
|
|
1656
|
+
type KnowledgeRelation = z.infer<typeof RelationSchema>;
|
|
1657
|
+
declare const DiscoverySnapshotV1Schema: z.ZodEffects<z.ZodObject<{
|
|
1658
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
1659
|
+
id: z.ZodString;
|
|
1660
|
+
kind: z.ZodString;
|
|
1661
|
+
name: z.ZodString;
|
|
1662
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1663
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1664
|
+
provenance: z.ZodEnum<["observed", "declared", "proposed"]>;
|
|
1665
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1666
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1667
|
+
path: z.ZodString;
|
|
1668
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1669
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1670
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1671
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
}, "strict", z.ZodTypeAny, {
|
|
1673
|
+
path: string;
|
|
1674
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1675
|
+
contentHash?: string | undefined;
|
|
1676
|
+
lineStart?: number | undefined;
|
|
1677
|
+
lineEnd?: number | undefined;
|
|
1678
|
+
context?: string | undefined;
|
|
1679
|
+
}, {
|
|
1680
|
+
path: string;
|
|
1681
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1682
|
+
contentHash?: string | undefined;
|
|
1683
|
+
lineStart?: number | undefined;
|
|
1684
|
+
lineEnd?: number | undefined;
|
|
1685
|
+
context?: string | undefined;
|
|
1686
|
+
}>, {
|
|
1687
|
+
path: string;
|
|
1688
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1689
|
+
contentHash?: string | undefined;
|
|
1690
|
+
lineStart?: number | undefined;
|
|
1691
|
+
lineEnd?: number | undefined;
|
|
1692
|
+
context?: string | undefined;
|
|
1693
|
+
}, {
|
|
1694
|
+
path: string;
|
|
1695
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1696
|
+
contentHash?: string | undefined;
|
|
1697
|
+
lineStart?: number | undefined;
|
|
1698
|
+
lineEnd?: number | undefined;
|
|
1699
|
+
context?: string | undefined;
|
|
1700
|
+
}>, "many">;
|
|
1701
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1702
|
+
}, "strict", z.ZodTypeAny, {
|
|
1703
|
+
id: string;
|
|
1704
|
+
name: string;
|
|
1705
|
+
kind: string;
|
|
1706
|
+
evidence: {
|
|
1707
|
+
path: string;
|
|
1708
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1709
|
+
contentHash?: string | undefined;
|
|
1710
|
+
lineStart?: number | undefined;
|
|
1711
|
+
lineEnd?: number | undefined;
|
|
1712
|
+
context?: string | undefined;
|
|
1713
|
+
}[];
|
|
1714
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1715
|
+
path?: string | undefined;
|
|
1716
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1717
|
+
aliases?: string[] | undefined;
|
|
1718
|
+
}, {
|
|
1719
|
+
id: string;
|
|
1720
|
+
name: string;
|
|
1721
|
+
kind: string;
|
|
1722
|
+
evidence: {
|
|
1723
|
+
path: string;
|
|
1724
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1725
|
+
contentHash?: string | undefined;
|
|
1726
|
+
lineStart?: number | undefined;
|
|
1727
|
+
lineEnd?: number | undefined;
|
|
1728
|
+
context?: string | undefined;
|
|
1729
|
+
}[];
|
|
1730
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1731
|
+
path?: string | undefined;
|
|
1732
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1733
|
+
aliases?: string[] | undefined;
|
|
1734
|
+
}>, "many">;
|
|
1735
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
1736
|
+
id: z.ZodString;
|
|
1737
|
+
kind: z.ZodString;
|
|
1738
|
+
from: z.ZodString;
|
|
1739
|
+
to: z.ZodString;
|
|
1740
|
+
discriminator: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
provenance: z.ZodEnum<["observed", "declared", "proposed"]>;
|
|
1742
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1743
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1744
|
+
path: z.ZodString;
|
|
1745
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1748
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
}, "strict", z.ZodTypeAny, {
|
|
1750
|
+
path: string;
|
|
1751
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1752
|
+
contentHash?: string | undefined;
|
|
1753
|
+
lineStart?: number | undefined;
|
|
1754
|
+
lineEnd?: number | undefined;
|
|
1755
|
+
context?: string | undefined;
|
|
1756
|
+
}, {
|
|
1757
|
+
path: string;
|
|
1758
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1759
|
+
contentHash?: string | undefined;
|
|
1760
|
+
lineStart?: number | undefined;
|
|
1761
|
+
lineEnd?: number | undefined;
|
|
1762
|
+
context?: string | undefined;
|
|
1763
|
+
}>, {
|
|
1764
|
+
path: string;
|
|
1765
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1766
|
+
contentHash?: string | undefined;
|
|
1767
|
+
lineStart?: number | undefined;
|
|
1768
|
+
lineEnd?: number | undefined;
|
|
1769
|
+
context?: string | undefined;
|
|
1770
|
+
}, {
|
|
1771
|
+
path: string;
|
|
1772
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1773
|
+
contentHash?: string | undefined;
|
|
1774
|
+
lineStart?: number | undefined;
|
|
1775
|
+
lineEnd?: number | undefined;
|
|
1776
|
+
context?: string | undefined;
|
|
1777
|
+
}>, "many">;
|
|
1778
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1779
|
+
}, "strict", z.ZodTypeAny, {
|
|
1780
|
+
id: string;
|
|
1781
|
+
kind: string;
|
|
1782
|
+
evidence: {
|
|
1783
|
+
path: string;
|
|
1784
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1785
|
+
contentHash?: string | undefined;
|
|
1786
|
+
lineStart?: number | undefined;
|
|
1787
|
+
lineEnd?: number | undefined;
|
|
1788
|
+
context?: string | undefined;
|
|
1789
|
+
}[];
|
|
1790
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1791
|
+
from: string;
|
|
1792
|
+
to: string;
|
|
1793
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1794
|
+
discriminator?: string | undefined;
|
|
1795
|
+
}, {
|
|
1796
|
+
id: string;
|
|
1797
|
+
kind: string;
|
|
1798
|
+
evidence: {
|
|
1799
|
+
path: string;
|
|
1800
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1801
|
+
contentHash?: string | undefined;
|
|
1802
|
+
lineStart?: number | undefined;
|
|
1803
|
+
lineEnd?: number | undefined;
|
|
1804
|
+
context?: string | undefined;
|
|
1805
|
+
}[];
|
|
1806
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1807
|
+
from: string;
|
|
1808
|
+
to: string;
|
|
1809
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1810
|
+
discriminator?: string | undefined;
|
|
1811
|
+
}>, "many">;
|
|
1812
|
+
coverage: z.ZodArray<z.ZodObject<{
|
|
1813
|
+
analyzer: z.ZodString;
|
|
1814
|
+
scope: z.ZodString;
|
|
1815
|
+
status: z.ZodEnum<["complete", "partial", "not-analyzed"]>;
|
|
1816
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1818
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
1819
|
+
path: z.ZodString;
|
|
1820
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1821
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1822
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1823
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1824
|
+
}, "strict", z.ZodTypeAny, {
|
|
1825
|
+
path: string;
|
|
1826
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1827
|
+
contentHash?: string | undefined;
|
|
1828
|
+
lineStart?: number | undefined;
|
|
1829
|
+
lineEnd?: number | undefined;
|
|
1830
|
+
context?: string | undefined;
|
|
1831
|
+
}, {
|
|
1832
|
+
path: string;
|
|
1833
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1834
|
+
contentHash?: string | undefined;
|
|
1835
|
+
lineStart?: number | undefined;
|
|
1836
|
+
lineEnd?: number | undefined;
|
|
1837
|
+
context?: string | undefined;
|
|
1838
|
+
}>, {
|
|
1839
|
+
path: string;
|
|
1840
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1841
|
+
contentHash?: string | undefined;
|
|
1842
|
+
lineStart?: number | undefined;
|
|
1843
|
+
lineEnd?: number | undefined;
|
|
1844
|
+
context?: string | undefined;
|
|
1845
|
+
}, {
|
|
1846
|
+
path: string;
|
|
1847
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1848
|
+
contentHash?: string | undefined;
|
|
1849
|
+
lineStart?: number | undefined;
|
|
1850
|
+
lineEnd?: number | undefined;
|
|
1851
|
+
context?: string | undefined;
|
|
1852
|
+
}>, "many">>;
|
|
1853
|
+
}, "strict", z.ZodTypeAny, {
|
|
1854
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
1855
|
+
analyzer: string;
|
|
1856
|
+
scope: string;
|
|
1857
|
+
reason?: string | undefined;
|
|
1858
|
+
evidence?: {
|
|
1859
|
+
path: string;
|
|
1860
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1861
|
+
contentHash?: string | undefined;
|
|
1862
|
+
lineStart?: number | undefined;
|
|
1863
|
+
lineEnd?: number | undefined;
|
|
1864
|
+
context?: string | undefined;
|
|
1865
|
+
}[] | undefined;
|
|
1866
|
+
}, {
|
|
1867
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
1868
|
+
analyzer: string;
|
|
1869
|
+
scope: string;
|
|
1870
|
+
reason?: string | undefined;
|
|
1871
|
+
evidence?: {
|
|
1872
|
+
path: string;
|
|
1873
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1874
|
+
contentHash?: string | undefined;
|
|
1875
|
+
lineStart?: number | undefined;
|
|
1876
|
+
lineEnd?: number | undefined;
|
|
1877
|
+
context?: string | undefined;
|
|
1878
|
+
}[] | undefined;
|
|
1879
|
+
}>, "many">;
|
|
1880
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1881
|
+
contentHash: z.ZodString;
|
|
1882
|
+
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
1883
|
+
project: z.ZodObject<{
|
|
1884
|
+
name: z.ZodString;
|
|
1885
|
+
root: z.ZodOptional<z.ZodString>;
|
|
1886
|
+
}, "strict", z.ZodTypeAny, {
|
|
1887
|
+
name: string;
|
|
1888
|
+
root?: string | undefined;
|
|
1889
|
+
}, {
|
|
1890
|
+
name: string;
|
|
1891
|
+
root?: string | undefined;
|
|
1892
|
+
}>;
|
|
1893
|
+
sourceRevision: z.ZodString;
|
|
1894
|
+
sourceRevisionKind: z.ZodEnum<["git", "content"]>;
|
|
1895
|
+
configurationHash: z.ZodString;
|
|
1896
|
+
pipelineVersion: z.ZodString;
|
|
1897
|
+
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1898
|
+
type: z.ZodLiteral<"discovery-snapshot">;
|
|
1899
|
+
}, "strict", z.ZodTypeAny, {
|
|
1900
|
+
type: "discovery-snapshot";
|
|
1901
|
+
contentHash: string;
|
|
1902
|
+
schemaVersion: 1;
|
|
1903
|
+
project: {
|
|
1904
|
+
name: string;
|
|
1905
|
+
root?: string | undefined;
|
|
1906
|
+
};
|
|
1907
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
1908
|
+
entities: {
|
|
1909
|
+
id: string;
|
|
1910
|
+
name: string;
|
|
1911
|
+
kind: string;
|
|
1912
|
+
evidence: {
|
|
1913
|
+
path: string;
|
|
1914
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1915
|
+
contentHash?: string | undefined;
|
|
1916
|
+
lineStart?: number | undefined;
|
|
1917
|
+
lineEnd?: number | undefined;
|
|
1918
|
+
context?: string | undefined;
|
|
1919
|
+
}[];
|
|
1920
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1921
|
+
path?: string | undefined;
|
|
1922
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1923
|
+
aliases?: string[] | undefined;
|
|
1924
|
+
}[];
|
|
1925
|
+
relations: {
|
|
1926
|
+
id: string;
|
|
1927
|
+
kind: string;
|
|
1928
|
+
evidence: {
|
|
1929
|
+
path: string;
|
|
1930
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1931
|
+
contentHash?: string | undefined;
|
|
1932
|
+
lineStart?: number | undefined;
|
|
1933
|
+
lineEnd?: number | undefined;
|
|
1934
|
+
context?: string | undefined;
|
|
1935
|
+
}[];
|
|
1936
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1937
|
+
from: string;
|
|
1938
|
+
to: string;
|
|
1939
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1940
|
+
discriminator?: string | undefined;
|
|
1941
|
+
}[];
|
|
1942
|
+
coverage: {
|
|
1943
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
1944
|
+
analyzer: string;
|
|
1945
|
+
scope: string;
|
|
1946
|
+
reason?: string | undefined;
|
|
1947
|
+
evidence?: {
|
|
1948
|
+
path: string;
|
|
1949
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1950
|
+
contentHash?: string | undefined;
|
|
1951
|
+
lineStart?: number | undefined;
|
|
1952
|
+
lineEnd?: number | undefined;
|
|
1953
|
+
context?: string | undefined;
|
|
1954
|
+
}[] | undefined;
|
|
1955
|
+
}[];
|
|
1956
|
+
sourceRevision: string;
|
|
1957
|
+
sourceRevisionKind: "git" | "content";
|
|
1958
|
+
configurationHash: string;
|
|
1959
|
+
pipelineVersion: string;
|
|
1960
|
+
analyzerVersions: Record<string, string>;
|
|
1961
|
+
}, {
|
|
1962
|
+
type: "discovery-snapshot";
|
|
1963
|
+
contentHash: string;
|
|
1964
|
+
schemaVersion: 1;
|
|
1965
|
+
project: {
|
|
1966
|
+
name: string;
|
|
1967
|
+
root?: string | undefined;
|
|
1968
|
+
};
|
|
1969
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
1970
|
+
entities: {
|
|
1971
|
+
id: string;
|
|
1972
|
+
name: string;
|
|
1973
|
+
kind: string;
|
|
1974
|
+
evidence: {
|
|
1975
|
+
path: string;
|
|
1976
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1977
|
+
contentHash?: string | undefined;
|
|
1978
|
+
lineStart?: number | undefined;
|
|
1979
|
+
lineEnd?: number | undefined;
|
|
1980
|
+
context?: string | undefined;
|
|
1981
|
+
}[];
|
|
1982
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1983
|
+
path?: string | undefined;
|
|
1984
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1985
|
+
aliases?: string[] | undefined;
|
|
1986
|
+
}[];
|
|
1987
|
+
relations: {
|
|
1988
|
+
id: string;
|
|
1989
|
+
kind: string;
|
|
1990
|
+
evidence: {
|
|
1991
|
+
path: string;
|
|
1992
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
1993
|
+
contentHash?: string | undefined;
|
|
1994
|
+
lineStart?: number | undefined;
|
|
1995
|
+
lineEnd?: number | undefined;
|
|
1996
|
+
context?: string | undefined;
|
|
1997
|
+
}[];
|
|
1998
|
+
provenance: "observed" | "declared" | "proposed";
|
|
1999
|
+
from: string;
|
|
2000
|
+
to: string;
|
|
2001
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2002
|
+
discriminator?: string | undefined;
|
|
2003
|
+
}[];
|
|
2004
|
+
coverage: {
|
|
2005
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
2006
|
+
analyzer: string;
|
|
2007
|
+
scope: string;
|
|
2008
|
+
reason?: string | undefined;
|
|
2009
|
+
evidence?: {
|
|
2010
|
+
path: string;
|
|
2011
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2012
|
+
contentHash?: string | undefined;
|
|
2013
|
+
lineStart?: number | undefined;
|
|
2014
|
+
lineEnd?: number | undefined;
|
|
2015
|
+
context?: string | undefined;
|
|
2016
|
+
}[] | undefined;
|
|
2017
|
+
}[];
|
|
2018
|
+
sourceRevision: string;
|
|
2019
|
+
sourceRevisionKind: "git" | "content";
|
|
2020
|
+
configurationHash: string;
|
|
2021
|
+
pipelineVersion: string;
|
|
2022
|
+
analyzerVersions: Record<string, string>;
|
|
2023
|
+
}>, {
|
|
2024
|
+
type: "discovery-snapshot";
|
|
2025
|
+
contentHash: string;
|
|
2026
|
+
schemaVersion: 1;
|
|
2027
|
+
project: {
|
|
2028
|
+
name: string;
|
|
2029
|
+
root?: string | undefined;
|
|
2030
|
+
};
|
|
2031
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2032
|
+
entities: {
|
|
2033
|
+
id: string;
|
|
2034
|
+
name: string;
|
|
2035
|
+
kind: string;
|
|
2036
|
+
evidence: {
|
|
2037
|
+
path: string;
|
|
2038
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2039
|
+
contentHash?: string | undefined;
|
|
2040
|
+
lineStart?: number | undefined;
|
|
2041
|
+
lineEnd?: number | undefined;
|
|
2042
|
+
context?: string | undefined;
|
|
2043
|
+
}[];
|
|
2044
|
+
provenance: "observed" | "declared" | "proposed";
|
|
2045
|
+
path?: string | undefined;
|
|
2046
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2047
|
+
aliases?: string[] | undefined;
|
|
2048
|
+
}[];
|
|
2049
|
+
relations: {
|
|
2050
|
+
id: string;
|
|
2051
|
+
kind: string;
|
|
2052
|
+
evidence: {
|
|
2053
|
+
path: string;
|
|
2054
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2055
|
+
contentHash?: string | undefined;
|
|
2056
|
+
lineStart?: number | undefined;
|
|
2057
|
+
lineEnd?: number | undefined;
|
|
2058
|
+
context?: string | undefined;
|
|
2059
|
+
}[];
|
|
2060
|
+
provenance: "observed" | "declared" | "proposed";
|
|
2061
|
+
from: string;
|
|
2062
|
+
to: string;
|
|
2063
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2064
|
+
discriminator?: string | undefined;
|
|
2065
|
+
}[];
|
|
2066
|
+
coverage: {
|
|
2067
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
2068
|
+
analyzer: string;
|
|
2069
|
+
scope: string;
|
|
2070
|
+
reason?: string | undefined;
|
|
2071
|
+
evidence?: {
|
|
2072
|
+
path: string;
|
|
2073
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2074
|
+
contentHash?: string | undefined;
|
|
2075
|
+
lineStart?: number | undefined;
|
|
2076
|
+
lineEnd?: number | undefined;
|
|
2077
|
+
context?: string | undefined;
|
|
2078
|
+
}[] | undefined;
|
|
2079
|
+
}[];
|
|
2080
|
+
sourceRevision: string;
|
|
2081
|
+
sourceRevisionKind: "git" | "content";
|
|
2082
|
+
configurationHash: string;
|
|
2083
|
+
pipelineVersion: string;
|
|
2084
|
+
analyzerVersions: Record<string, string>;
|
|
2085
|
+
}, {
|
|
2086
|
+
type: "discovery-snapshot";
|
|
2087
|
+
contentHash: string;
|
|
2088
|
+
schemaVersion: 1;
|
|
2089
|
+
project: {
|
|
2090
|
+
name: string;
|
|
2091
|
+
root?: string | undefined;
|
|
2092
|
+
};
|
|
2093
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2094
|
+
entities: {
|
|
2095
|
+
id: string;
|
|
2096
|
+
name: string;
|
|
2097
|
+
kind: string;
|
|
2098
|
+
evidence: {
|
|
2099
|
+
path: string;
|
|
2100
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2101
|
+
contentHash?: string | undefined;
|
|
2102
|
+
lineStart?: number | undefined;
|
|
2103
|
+
lineEnd?: number | undefined;
|
|
2104
|
+
context?: string | undefined;
|
|
2105
|
+
}[];
|
|
2106
|
+
provenance: "observed" | "declared" | "proposed";
|
|
2107
|
+
path?: string | undefined;
|
|
2108
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2109
|
+
aliases?: string[] | undefined;
|
|
2110
|
+
}[];
|
|
2111
|
+
relations: {
|
|
2112
|
+
id: string;
|
|
2113
|
+
kind: string;
|
|
2114
|
+
evidence: {
|
|
2115
|
+
path: string;
|
|
2116
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2117
|
+
contentHash?: string | undefined;
|
|
2118
|
+
lineStart?: number | undefined;
|
|
2119
|
+
lineEnd?: number | undefined;
|
|
2120
|
+
context?: string | undefined;
|
|
2121
|
+
}[];
|
|
2122
|
+
provenance: "observed" | "declared" | "proposed";
|
|
2123
|
+
from: string;
|
|
2124
|
+
to: string;
|
|
2125
|
+
metadata?: Record<string, unknown> | undefined;
|
|
2126
|
+
discriminator?: string | undefined;
|
|
2127
|
+
}[];
|
|
2128
|
+
coverage: {
|
|
2129
|
+
status: "partial" | "not-analyzed" | "complete";
|
|
2130
|
+
analyzer: string;
|
|
2131
|
+
scope: string;
|
|
2132
|
+
reason?: string | undefined;
|
|
2133
|
+
evidence?: {
|
|
2134
|
+
path: string;
|
|
2135
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2136
|
+
contentHash?: string | undefined;
|
|
2137
|
+
lineStart?: number | undefined;
|
|
2138
|
+
lineEnd?: number | undefined;
|
|
2139
|
+
context?: string | undefined;
|
|
2140
|
+
}[] | undefined;
|
|
2141
|
+
}[];
|
|
2142
|
+
sourceRevision: string;
|
|
2143
|
+
sourceRevisionKind: "git" | "content";
|
|
2144
|
+
configurationHash: string;
|
|
2145
|
+
pipelineVersion: string;
|
|
2146
|
+
analyzerVersions: Record<string, string>;
|
|
2147
|
+
}>;
|
|
2148
|
+
type DiscoverySnapshotV1 = z.infer<typeof DiscoverySnapshotV1Schema>;
|
|
2149
|
+
declare const DiagnosticSchema: z.ZodObject<{
|
|
2150
|
+
id: z.ZodString;
|
|
2151
|
+
code: z.ZodString;
|
|
2152
|
+
status: z.ZodEnum<["confirmed", "undocumented", "stale-or-unverified", "conflict", "unresolved", "not-analyzed"]>;
|
|
2153
|
+
severity: z.ZodEnum<["off", "info", "warn", "error"]>;
|
|
2154
|
+
message: z.ZodString;
|
|
2155
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2156
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
2157
|
+
path: z.ZodString;
|
|
2158
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2159
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2160
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
2161
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2162
|
+
}, "strict", z.ZodTypeAny, {
|
|
2163
|
+
path: string;
|
|
2164
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2165
|
+
contentHash?: string | undefined;
|
|
2166
|
+
lineStart?: number | undefined;
|
|
2167
|
+
lineEnd?: number | undefined;
|
|
2168
|
+
context?: string | undefined;
|
|
2169
|
+
}, {
|
|
2170
|
+
path: string;
|
|
2171
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2172
|
+
contentHash?: string | undefined;
|
|
2173
|
+
lineStart?: number | undefined;
|
|
2174
|
+
lineEnd?: number | undefined;
|
|
2175
|
+
context?: string | undefined;
|
|
2176
|
+
}>, {
|
|
2177
|
+
path: string;
|
|
2178
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2179
|
+
contentHash?: string | undefined;
|
|
2180
|
+
lineStart?: number | undefined;
|
|
2181
|
+
lineEnd?: number | undefined;
|
|
2182
|
+
context?: string | undefined;
|
|
2183
|
+
}, {
|
|
2184
|
+
path: string;
|
|
2185
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2186
|
+
contentHash?: string | undefined;
|
|
2187
|
+
lineStart?: number | undefined;
|
|
2188
|
+
lineEnd?: number | undefined;
|
|
2189
|
+
context?: string | undefined;
|
|
2190
|
+
}>, "many">;
|
|
2191
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2192
|
+
relationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2193
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
}, "strict", z.ZodTypeAny, {
|
|
2195
|
+
code: string;
|
|
2196
|
+
message: string;
|
|
2197
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2198
|
+
id: string;
|
|
2199
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2200
|
+
evidence: {
|
|
2201
|
+
path: string;
|
|
2202
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2203
|
+
contentHash?: string | undefined;
|
|
2204
|
+
lineStart?: number | undefined;
|
|
2205
|
+
lineEnd?: number | undefined;
|
|
2206
|
+
context?: string | undefined;
|
|
2207
|
+
}[];
|
|
2208
|
+
entityIds?: string[] | undefined;
|
|
2209
|
+
relationIds?: string[] | undefined;
|
|
2210
|
+
remediation?: string | undefined;
|
|
2211
|
+
}, {
|
|
2212
|
+
code: string;
|
|
2213
|
+
message: string;
|
|
2214
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2215
|
+
id: string;
|
|
2216
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2217
|
+
evidence: {
|
|
2218
|
+
path: string;
|
|
2219
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2220
|
+
contentHash?: string | undefined;
|
|
2221
|
+
lineStart?: number | undefined;
|
|
2222
|
+
lineEnd?: number | undefined;
|
|
2223
|
+
context?: string | undefined;
|
|
2224
|
+
}[];
|
|
2225
|
+
entityIds?: string[] | undefined;
|
|
2226
|
+
relationIds?: string[] | undefined;
|
|
2227
|
+
remediation?: string | undefined;
|
|
2228
|
+
}>;
|
|
2229
|
+
type KnowledgeDiagnostic = z.infer<typeof DiagnosticSchema>;
|
|
2230
|
+
declare const ReconciliationReportV1Schema: z.ZodObject<{
|
|
2231
|
+
snapshotHash: z.ZodString;
|
|
2232
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
2233
|
+
id: z.ZodString;
|
|
2234
|
+
code: z.ZodString;
|
|
2235
|
+
status: z.ZodEnum<["confirmed", "undocumented", "stale-or-unverified", "conflict", "unresolved", "not-analyzed"]>;
|
|
2236
|
+
severity: z.ZodEnum<["off", "info", "warn", "error"]>;
|
|
2237
|
+
message: z.ZodString;
|
|
2238
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2239
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
2240
|
+
path: z.ZodString;
|
|
2241
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2242
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2243
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
}, "strict", z.ZodTypeAny, {
|
|
2246
|
+
path: string;
|
|
2247
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2248
|
+
contentHash?: string | undefined;
|
|
2249
|
+
lineStart?: number | undefined;
|
|
2250
|
+
lineEnd?: number | undefined;
|
|
2251
|
+
context?: string | undefined;
|
|
2252
|
+
}, {
|
|
2253
|
+
path: string;
|
|
2254
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2255
|
+
contentHash?: string | undefined;
|
|
2256
|
+
lineStart?: number | undefined;
|
|
2257
|
+
lineEnd?: number | undefined;
|
|
2258
|
+
context?: string | undefined;
|
|
2259
|
+
}>, {
|
|
2260
|
+
path: string;
|
|
2261
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2262
|
+
contentHash?: string | undefined;
|
|
2263
|
+
lineStart?: number | undefined;
|
|
2264
|
+
lineEnd?: number | undefined;
|
|
2265
|
+
context?: string | undefined;
|
|
2266
|
+
}, {
|
|
2267
|
+
path: string;
|
|
2268
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2269
|
+
contentHash?: string | undefined;
|
|
2270
|
+
lineStart?: number | undefined;
|
|
2271
|
+
lineEnd?: number | undefined;
|
|
2272
|
+
context?: string | undefined;
|
|
2273
|
+
}>, "many">;
|
|
2274
|
+
entityIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2275
|
+
relationIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2276
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
}, "strict", z.ZodTypeAny, {
|
|
2278
|
+
code: string;
|
|
2279
|
+
message: string;
|
|
2280
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2281
|
+
id: string;
|
|
2282
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2283
|
+
evidence: {
|
|
2284
|
+
path: string;
|
|
2285
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2286
|
+
contentHash?: string | undefined;
|
|
2287
|
+
lineStart?: number | undefined;
|
|
2288
|
+
lineEnd?: number | undefined;
|
|
2289
|
+
context?: string | undefined;
|
|
2290
|
+
}[];
|
|
2291
|
+
entityIds?: string[] | undefined;
|
|
2292
|
+
relationIds?: string[] | undefined;
|
|
2293
|
+
remediation?: string | undefined;
|
|
2294
|
+
}, {
|
|
2295
|
+
code: string;
|
|
2296
|
+
message: string;
|
|
2297
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2298
|
+
id: string;
|
|
2299
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2300
|
+
evidence: {
|
|
2301
|
+
path: string;
|
|
2302
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2303
|
+
contentHash?: string | undefined;
|
|
2304
|
+
lineStart?: number | undefined;
|
|
2305
|
+
lineEnd?: number | undefined;
|
|
2306
|
+
context?: string | undefined;
|
|
2307
|
+
}[];
|
|
2308
|
+
entityIds?: string[] | undefined;
|
|
2309
|
+
relationIds?: string[] | undefined;
|
|
2310
|
+
remediation?: string | undefined;
|
|
2311
|
+
}>, "many">;
|
|
2312
|
+
summary: z.ZodObject<{
|
|
2313
|
+
entityCount: z.ZodNumber;
|
|
2314
|
+
relationCount: z.ZodNumber;
|
|
2315
|
+
diagnosticCount: z.ZodNumber;
|
|
2316
|
+
}, "strict", z.ZodTypeAny, {
|
|
2317
|
+
entityCount: number;
|
|
2318
|
+
relationCount: number;
|
|
2319
|
+
diagnosticCount: number;
|
|
2320
|
+
}, {
|
|
2321
|
+
entityCount: number;
|
|
2322
|
+
relationCount: number;
|
|
2323
|
+
diagnosticCount: number;
|
|
2324
|
+
}>;
|
|
2325
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2326
|
+
contentHash: z.ZodString;
|
|
2327
|
+
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2328
|
+
project: z.ZodObject<{
|
|
2329
|
+
name: z.ZodString;
|
|
2330
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2331
|
+
}, "strict", z.ZodTypeAny, {
|
|
2332
|
+
name: string;
|
|
2333
|
+
root?: string | undefined;
|
|
2334
|
+
}, {
|
|
2335
|
+
name: string;
|
|
2336
|
+
root?: string | undefined;
|
|
2337
|
+
}>;
|
|
2338
|
+
sourceRevision: z.ZodString;
|
|
2339
|
+
sourceRevisionKind: z.ZodEnum<["git", "content"]>;
|
|
2340
|
+
configurationHash: z.ZodString;
|
|
2341
|
+
pipelineVersion: z.ZodString;
|
|
2342
|
+
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2343
|
+
type: z.ZodLiteral<"reconciliation-report">;
|
|
2344
|
+
}, "strict", z.ZodTypeAny, {
|
|
2345
|
+
type: "reconciliation-report";
|
|
2346
|
+
contentHash: string;
|
|
2347
|
+
schemaVersion: 1;
|
|
2348
|
+
project: {
|
|
2349
|
+
name: string;
|
|
2350
|
+
root?: string | undefined;
|
|
2351
|
+
};
|
|
2352
|
+
summary: {
|
|
2353
|
+
entityCount: number;
|
|
2354
|
+
relationCount: number;
|
|
2355
|
+
diagnosticCount: number;
|
|
2356
|
+
};
|
|
2357
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2358
|
+
sourceRevision: string;
|
|
2359
|
+
sourceRevisionKind: "git" | "content";
|
|
2360
|
+
configurationHash: string;
|
|
2361
|
+
pipelineVersion: string;
|
|
2362
|
+
analyzerVersions: Record<string, string>;
|
|
2363
|
+
snapshotHash: string;
|
|
2364
|
+
diagnostics: {
|
|
2365
|
+
code: string;
|
|
2366
|
+
message: string;
|
|
2367
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2368
|
+
id: string;
|
|
2369
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2370
|
+
evidence: {
|
|
2371
|
+
path: string;
|
|
2372
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2373
|
+
contentHash?: string | undefined;
|
|
2374
|
+
lineStart?: number | undefined;
|
|
2375
|
+
lineEnd?: number | undefined;
|
|
2376
|
+
context?: string | undefined;
|
|
2377
|
+
}[];
|
|
2378
|
+
entityIds?: string[] | undefined;
|
|
2379
|
+
relationIds?: string[] | undefined;
|
|
2380
|
+
remediation?: string | undefined;
|
|
2381
|
+
}[];
|
|
2382
|
+
}, {
|
|
2383
|
+
type: "reconciliation-report";
|
|
2384
|
+
contentHash: string;
|
|
2385
|
+
schemaVersion: 1;
|
|
2386
|
+
project: {
|
|
2387
|
+
name: string;
|
|
2388
|
+
root?: string | undefined;
|
|
2389
|
+
};
|
|
2390
|
+
summary: {
|
|
2391
|
+
entityCount: number;
|
|
2392
|
+
relationCount: number;
|
|
2393
|
+
diagnosticCount: number;
|
|
2394
|
+
};
|
|
2395
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2396
|
+
sourceRevision: string;
|
|
2397
|
+
sourceRevisionKind: "git" | "content";
|
|
2398
|
+
configurationHash: string;
|
|
2399
|
+
pipelineVersion: string;
|
|
2400
|
+
analyzerVersions: Record<string, string>;
|
|
2401
|
+
snapshotHash: string;
|
|
2402
|
+
diagnostics: {
|
|
2403
|
+
code: string;
|
|
2404
|
+
message: string;
|
|
2405
|
+
status: "confirmed" | "undocumented" | "stale-or-unverified" | "conflict" | "unresolved" | "not-analyzed";
|
|
2406
|
+
id: string;
|
|
2407
|
+
severity: "off" | "info" | "warn" | "error";
|
|
2408
|
+
evidence: {
|
|
2409
|
+
path: string;
|
|
2410
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2411
|
+
contentHash?: string | undefined;
|
|
2412
|
+
lineStart?: number | undefined;
|
|
2413
|
+
lineEnd?: number | undefined;
|
|
2414
|
+
context?: string | undefined;
|
|
2415
|
+
}[];
|
|
2416
|
+
entityIds?: string[] | undefined;
|
|
2417
|
+
relationIds?: string[] | undefined;
|
|
2418
|
+
remediation?: string | undefined;
|
|
2419
|
+
}[];
|
|
2420
|
+
}>;
|
|
2421
|
+
type ReconciliationReportV1 = z.infer<typeof ReconciliationReportV1Schema>;
|
|
2422
|
+
declare const WorkflowStateSchema: z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>;
|
|
2423
|
+
type WorkflowState = z.infer<typeof WorkflowStateSchema>;
|
|
2424
|
+
declare const WorkflowStepSchema: z.ZodObject<{
|
|
2425
|
+
name: z.ZodString;
|
|
2426
|
+
status: z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>;
|
|
2427
|
+
inputHash: z.ZodString;
|
|
2428
|
+
outputHash: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2430
|
+
}, "strict", z.ZodTypeAny, {
|
|
2431
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2432
|
+
name: string;
|
|
2433
|
+
inputHash: string;
|
|
2434
|
+
outputHash?: string | undefined;
|
|
2435
|
+
artifactRefs?: string[] | undefined;
|
|
2436
|
+
}, {
|
|
2437
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2438
|
+
name: string;
|
|
2439
|
+
inputHash: string;
|
|
2440
|
+
outputHash?: string | undefined;
|
|
2441
|
+
artifactRefs?: string[] | undefined;
|
|
2442
|
+
}>;
|
|
2443
|
+
declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
2444
|
+
from: z.ZodNullable<z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>>;
|
|
2445
|
+
to: z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>;
|
|
2446
|
+
at: z.ZodString;
|
|
2447
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2448
|
+
}, "strict", z.ZodTypeAny, {
|
|
2449
|
+
at: string;
|
|
2450
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2451
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2452
|
+
reason?: string | undefined;
|
|
2453
|
+
}, {
|
|
2454
|
+
at: string;
|
|
2455
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2456
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2457
|
+
reason?: string | undefined;
|
|
2458
|
+
}>;
|
|
2459
|
+
declare const WorkflowRunV1Schema: z.ZodObject<{
|
|
2460
|
+
runId: z.ZodString;
|
|
2461
|
+
state: z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>;
|
|
2462
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2463
|
+
name: z.ZodString;
|
|
2464
|
+
status: z.ZodEnum<["pending", "running", "completed", "failed", "skipped"]>;
|
|
2465
|
+
inputHash: z.ZodString;
|
|
2466
|
+
outputHash: z.ZodOptional<z.ZodString>;
|
|
2467
|
+
artifactRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2468
|
+
}, "strict", z.ZodTypeAny, {
|
|
2469
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2470
|
+
name: string;
|
|
2471
|
+
inputHash: string;
|
|
2472
|
+
outputHash?: string | undefined;
|
|
2473
|
+
artifactRefs?: string[] | undefined;
|
|
2474
|
+
}, {
|
|
2475
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2476
|
+
name: string;
|
|
2477
|
+
inputHash: string;
|
|
2478
|
+
outputHash?: string | undefined;
|
|
2479
|
+
artifactRefs?: string[] | undefined;
|
|
2480
|
+
}>, "many">;
|
|
2481
|
+
transitions: z.ZodArray<z.ZodObject<{
|
|
2482
|
+
from: z.ZodNullable<z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>>;
|
|
2483
|
+
to: z.ZodEnum<["created", "discovering", "analyzed", "compared", "awaiting-agent", "proposed", "awaiting-approval", "validating", "delivered", "failed", "cancelled", "stale", "superseded"]>;
|
|
2484
|
+
at: z.ZodString;
|
|
2485
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
}, "strict", z.ZodTypeAny, {
|
|
2487
|
+
at: string;
|
|
2488
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2489
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2490
|
+
reason?: string | undefined;
|
|
2491
|
+
}, {
|
|
2492
|
+
at: string;
|
|
2493
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2494
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2495
|
+
reason?: string | undefined;
|
|
2496
|
+
}>, "many">;
|
|
2497
|
+
artifactRefs: z.ZodArray<z.ZodString, "many">;
|
|
2498
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2499
|
+
contentHash: z.ZodString;
|
|
2500
|
+
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2501
|
+
project: z.ZodObject<{
|
|
2502
|
+
name: z.ZodString;
|
|
2503
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
}, "strict", z.ZodTypeAny, {
|
|
2505
|
+
name: string;
|
|
2506
|
+
root?: string | undefined;
|
|
2507
|
+
}, {
|
|
2508
|
+
name: string;
|
|
2509
|
+
root?: string | undefined;
|
|
2510
|
+
}>;
|
|
2511
|
+
sourceRevision: z.ZodString;
|
|
2512
|
+
sourceRevisionKind: z.ZodEnum<["git", "content"]>;
|
|
2513
|
+
configurationHash: z.ZodString;
|
|
2514
|
+
pipelineVersion: z.ZodString;
|
|
2515
|
+
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2516
|
+
type: z.ZodLiteral<"workflow-run">;
|
|
2517
|
+
}, "strict", z.ZodTypeAny, {
|
|
2518
|
+
type: "workflow-run";
|
|
2519
|
+
contentHash: string;
|
|
2520
|
+
schemaVersion: 1;
|
|
2521
|
+
project: {
|
|
2522
|
+
name: string;
|
|
2523
|
+
root?: string | undefined;
|
|
2524
|
+
};
|
|
2525
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2526
|
+
sourceRevision: string;
|
|
2527
|
+
sourceRevisionKind: "git" | "content";
|
|
2528
|
+
configurationHash: string;
|
|
2529
|
+
pipelineVersion: string;
|
|
2530
|
+
analyzerVersions: Record<string, string>;
|
|
2531
|
+
artifactRefs: string[];
|
|
2532
|
+
runId: string;
|
|
2533
|
+
state: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2534
|
+
steps: {
|
|
2535
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2536
|
+
name: string;
|
|
2537
|
+
inputHash: string;
|
|
2538
|
+
outputHash?: string | undefined;
|
|
2539
|
+
artifactRefs?: string[] | undefined;
|
|
2540
|
+
}[];
|
|
2541
|
+
transitions: {
|
|
2542
|
+
at: string;
|
|
2543
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2544
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2545
|
+
reason?: string | undefined;
|
|
2546
|
+
}[];
|
|
2547
|
+
}, {
|
|
2548
|
+
type: "workflow-run";
|
|
2549
|
+
contentHash: string;
|
|
2550
|
+
schemaVersion: 1;
|
|
2551
|
+
project: {
|
|
2552
|
+
name: string;
|
|
2553
|
+
root?: string | undefined;
|
|
2554
|
+
};
|
|
2555
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2556
|
+
sourceRevision: string;
|
|
2557
|
+
sourceRevisionKind: "git" | "content";
|
|
2558
|
+
configurationHash: string;
|
|
2559
|
+
pipelineVersion: string;
|
|
2560
|
+
analyzerVersions: Record<string, string>;
|
|
2561
|
+
artifactRefs: string[];
|
|
2562
|
+
runId: string;
|
|
2563
|
+
state: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2564
|
+
steps: {
|
|
2565
|
+
status: "failed" | "pending" | "running" | "completed" | "skipped";
|
|
2566
|
+
name: string;
|
|
2567
|
+
inputHash: string;
|
|
2568
|
+
outputHash?: string | undefined;
|
|
2569
|
+
artifactRefs?: string[] | undefined;
|
|
2570
|
+
}[];
|
|
2571
|
+
transitions: {
|
|
2572
|
+
at: string;
|
|
2573
|
+
from: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded" | null;
|
|
2574
|
+
to: "proposed" | "created" | "discovering" | "analyzed" | "compared" | "awaiting-agent" | "awaiting-approval" | "validating" | "delivered" | "failed" | "cancelled" | "stale" | "superseded";
|
|
2575
|
+
reason?: string | undefined;
|
|
2576
|
+
}[];
|
|
2577
|
+
}>;
|
|
2578
|
+
type WorkflowRunV1 = z.infer<typeof WorkflowRunV1Schema>;
|
|
2579
|
+
declare const ProposalOriginSchema: z.ZodEffects<z.ZodObject<{
|
|
2580
|
+
kind: z.ZodEnum<["registry-agent", "manual", "deterministic"]>;
|
|
2581
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2582
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2583
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2585
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2586
|
+
}, "strict", z.ZodTypeAny, {
|
|
2587
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2588
|
+
capabilities?: string[] | undefined;
|
|
2589
|
+
id?: string | undefined;
|
|
2590
|
+
provider?: string | undefined;
|
|
2591
|
+
model?: string | undefined;
|
|
2592
|
+
version?: string | undefined;
|
|
2593
|
+
}, {
|
|
2594
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2595
|
+
capabilities?: string[] | undefined;
|
|
2596
|
+
id?: string | undefined;
|
|
2597
|
+
provider?: string | undefined;
|
|
2598
|
+
model?: string | undefined;
|
|
2599
|
+
version?: string | undefined;
|
|
2600
|
+
}>, {
|
|
2601
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2602
|
+
capabilities?: string[] | undefined;
|
|
2603
|
+
id?: string | undefined;
|
|
2604
|
+
provider?: string | undefined;
|
|
2605
|
+
model?: string | undefined;
|
|
2606
|
+
version?: string | undefined;
|
|
2607
|
+
}, {
|
|
2608
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2609
|
+
capabilities?: string[] | undefined;
|
|
2610
|
+
id?: string | undefined;
|
|
2611
|
+
provider?: string | undefined;
|
|
2612
|
+
model?: string | undefined;
|
|
2613
|
+
version?: string | undefined;
|
|
2614
|
+
}>;
|
|
2615
|
+
declare const AgentProposalV1Schema: z.ZodObject<{
|
|
2616
|
+
proposalId: z.ZodString;
|
|
2617
|
+
baseSnapshotHash: z.ZodString;
|
|
2618
|
+
baseReportHash: z.ZodString;
|
|
2619
|
+
relatedDiagnosticIds: z.ZodArray<z.ZodString, "many">;
|
|
2620
|
+
rationale: z.ZodString;
|
|
2621
|
+
confidence: z.ZodNumber;
|
|
2622
|
+
evidence: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
2623
|
+
source: z.ZodEnum<["code", "configuration", "documentation", "agent", "derived"]>;
|
|
2624
|
+
path: z.ZodString;
|
|
2625
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2626
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2627
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
2628
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2629
|
+
}, "strict", z.ZodTypeAny, {
|
|
2630
|
+
path: string;
|
|
2631
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2632
|
+
contentHash?: string | undefined;
|
|
2633
|
+
lineStart?: number | undefined;
|
|
2634
|
+
lineEnd?: number | undefined;
|
|
2635
|
+
context?: string | undefined;
|
|
2636
|
+
}, {
|
|
2637
|
+
path: string;
|
|
2638
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2639
|
+
contentHash?: string | undefined;
|
|
2640
|
+
lineStart?: number | undefined;
|
|
2641
|
+
lineEnd?: number | undefined;
|
|
2642
|
+
context?: string | undefined;
|
|
2643
|
+
}>, {
|
|
2644
|
+
path: string;
|
|
2645
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2646
|
+
contentHash?: string | undefined;
|
|
2647
|
+
lineStart?: number | undefined;
|
|
2648
|
+
lineEnd?: number | undefined;
|
|
2649
|
+
context?: string | undefined;
|
|
2650
|
+
}, {
|
|
2651
|
+
path: string;
|
|
2652
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2653
|
+
contentHash?: string | undefined;
|
|
2654
|
+
lineStart?: number | undefined;
|
|
2655
|
+
lineEnd?: number | undefined;
|
|
2656
|
+
context?: string | undefined;
|
|
2657
|
+
}>, "many">;
|
|
2658
|
+
intendedChanges: z.ZodArray<z.ZodString, "many">;
|
|
2659
|
+
origin: z.ZodEffects<z.ZodObject<{
|
|
2660
|
+
kind: z.ZodEnum<["registry-agent", "manual", "deterministic"]>;
|
|
2661
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2662
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2663
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2665
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2666
|
+
}, "strict", z.ZodTypeAny, {
|
|
2667
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2668
|
+
capabilities?: string[] | undefined;
|
|
2669
|
+
id?: string | undefined;
|
|
2670
|
+
provider?: string | undefined;
|
|
2671
|
+
model?: string | undefined;
|
|
2672
|
+
version?: string | undefined;
|
|
2673
|
+
}, {
|
|
2674
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2675
|
+
capabilities?: string[] | undefined;
|
|
2676
|
+
id?: string | undefined;
|
|
2677
|
+
provider?: string | undefined;
|
|
2678
|
+
model?: string | undefined;
|
|
2679
|
+
version?: string | undefined;
|
|
2680
|
+
}>, {
|
|
2681
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2682
|
+
capabilities?: string[] | undefined;
|
|
2683
|
+
id?: string | undefined;
|
|
2684
|
+
provider?: string | undefined;
|
|
2685
|
+
model?: string | undefined;
|
|
2686
|
+
version?: string | undefined;
|
|
2687
|
+
}, {
|
|
2688
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2689
|
+
capabilities?: string[] | undefined;
|
|
2690
|
+
id?: string | undefined;
|
|
2691
|
+
provider?: string | undefined;
|
|
2692
|
+
model?: string | undefined;
|
|
2693
|
+
version?: string | undefined;
|
|
2694
|
+
}>;
|
|
2695
|
+
checks: z.ZodArray<z.ZodString, "many">;
|
|
2696
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2697
|
+
contentHash: z.ZodString;
|
|
2698
|
+
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2699
|
+
project: z.ZodObject<{
|
|
2700
|
+
name: z.ZodString;
|
|
2701
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
}, "strict", z.ZodTypeAny, {
|
|
2703
|
+
name: string;
|
|
2704
|
+
root?: string | undefined;
|
|
2705
|
+
}, {
|
|
2706
|
+
name: string;
|
|
2707
|
+
root?: string | undefined;
|
|
2708
|
+
}>;
|
|
2709
|
+
sourceRevision: z.ZodString;
|
|
2710
|
+
sourceRevisionKind: z.ZodEnum<["git", "content"]>;
|
|
2711
|
+
configurationHash: z.ZodString;
|
|
2712
|
+
pipelineVersion: z.ZodString;
|
|
2713
|
+
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2714
|
+
type: z.ZodLiteral<"agent-proposal">;
|
|
2715
|
+
}, "strict", z.ZodTypeAny, {
|
|
2716
|
+
type: "agent-proposal";
|
|
2717
|
+
contentHash: string;
|
|
2718
|
+
checks: string[];
|
|
2719
|
+
schemaVersion: 1;
|
|
2720
|
+
project: {
|
|
2721
|
+
name: string;
|
|
2722
|
+
root?: string | undefined;
|
|
2723
|
+
};
|
|
2724
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2725
|
+
confidence: number;
|
|
2726
|
+
evidence: {
|
|
2727
|
+
path: string;
|
|
2728
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2729
|
+
contentHash?: string | undefined;
|
|
2730
|
+
lineStart?: number | undefined;
|
|
2731
|
+
lineEnd?: number | undefined;
|
|
2732
|
+
context?: string | undefined;
|
|
2733
|
+
}[];
|
|
2734
|
+
sourceRevision: string;
|
|
2735
|
+
sourceRevisionKind: "git" | "content";
|
|
2736
|
+
configurationHash: string;
|
|
2737
|
+
pipelineVersion: string;
|
|
2738
|
+
analyzerVersions: Record<string, string>;
|
|
2739
|
+
proposalId: string;
|
|
2740
|
+
baseSnapshotHash: string;
|
|
2741
|
+
baseReportHash: string;
|
|
2742
|
+
relatedDiagnosticIds: string[];
|
|
2743
|
+
rationale: string;
|
|
2744
|
+
intendedChanges: string[];
|
|
2745
|
+
origin: {
|
|
2746
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2747
|
+
capabilities?: string[] | undefined;
|
|
2748
|
+
id?: string | undefined;
|
|
2749
|
+
provider?: string | undefined;
|
|
2750
|
+
model?: string | undefined;
|
|
2751
|
+
version?: string | undefined;
|
|
2752
|
+
};
|
|
2753
|
+
}, {
|
|
2754
|
+
type: "agent-proposal";
|
|
2755
|
+
contentHash: string;
|
|
2756
|
+
checks: string[];
|
|
2757
|
+
schemaVersion: 1;
|
|
2758
|
+
project: {
|
|
2759
|
+
name: string;
|
|
2760
|
+
root?: string | undefined;
|
|
2761
|
+
};
|
|
2762
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2763
|
+
confidence: number;
|
|
2764
|
+
evidence: {
|
|
2765
|
+
path: string;
|
|
2766
|
+
source: "code" | "agent" | "configuration" | "documentation" | "derived";
|
|
2767
|
+
contentHash?: string | undefined;
|
|
2768
|
+
lineStart?: number | undefined;
|
|
2769
|
+
lineEnd?: number | undefined;
|
|
2770
|
+
context?: string | undefined;
|
|
2771
|
+
}[];
|
|
2772
|
+
sourceRevision: string;
|
|
2773
|
+
sourceRevisionKind: "git" | "content";
|
|
2774
|
+
configurationHash: string;
|
|
2775
|
+
pipelineVersion: string;
|
|
2776
|
+
analyzerVersions: Record<string, string>;
|
|
2777
|
+
proposalId: string;
|
|
2778
|
+
baseSnapshotHash: string;
|
|
2779
|
+
baseReportHash: string;
|
|
2780
|
+
relatedDiagnosticIds: string[];
|
|
2781
|
+
rationale: string;
|
|
2782
|
+
intendedChanges: string[];
|
|
2783
|
+
origin: {
|
|
2784
|
+
kind: "manual" | "registry-agent" | "deterministic";
|
|
2785
|
+
capabilities?: string[] | undefined;
|
|
2786
|
+
id?: string | undefined;
|
|
2787
|
+
provider?: string | undefined;
|
|
2788
|
+
model?: string | undefined;
|
|
2789
|
+
version?: string | undefined;
|
|
2790
|
+
};
|
|
2791
|
+
}>;
|
|
2792
|
+
type AgentProposalV1 = z.infer<typeof AgentProposalV1Schema>;
|
|
2793
|
+
declare const FixProposalStatusSchema: z.ZodEnum<["proposed", "approved", "rejected", "stale", "applied", "failed"]>;
|
|
2794
|
+
declare const AffectedFileSchema: z.ZodObject<{
|
|
2795
|
+
path: z.ZodString;
|
|
2796
|
+
contentHash: z.ZodString;
|
|
2797
|
+
}, "strict", z.ZodTypeAny, {
|
|
2798
|
+
path: string;
|
|
2799
|
+
contentHash: string;
|
|
2800
|
+
}, {
|
|
2801
|
+
path: string;
|
|
2802
|
+
contentHash: string;
|
|
2803
|
+
}>;
|
|
2804
|
+
declare const FixChangeSchema: z.ZodObject<{
|
|
2805
|
+
path: z.ZodString;
|
|
2806
|
+
before: z.ZodString;
|
|
2807
|
+
after: z.ZodString;
|
|
2808
|
+
}, "strict", z.ZodTypeAny, {
|
|
2809
|
+
path: string;
|
|
2810
|
+
before: string;
|
|
2811
|
+
after: string;
|
|
2812
|
+
}, {
|
|
2813
|
+
path: string;
|
|
2814
|
+
before: string;
|
|
2815
|
+
after: string;
|
|
2816
|
+
}>;
|
|
2817
|
+
type FixChange = z.infer<typeof FixChangeSchema>;
|
|
2818
|
+
declare const FixProposalV1Schema: z.ZodEffects<z.ZodObject<{
|
|
2819
|
+
proposalId: z.ZodString;
|
|
2820
|
+
baseRevision: z.ZodString;
|
|
2821
|
+
affectedFiles: z.ZodArray<z.ZodObject<{
|
|
2822
|
+
path: z.ZodString;
|
|
2823
|
+
contentHash: z.ZodString;
|
|
2824
|
+
}, "strict", z.ZodTypeAny, {
|
|
2825
|
+
path: string;
|
|
2826
|
+
contentHash: string;
|
|
2827
|
+
}, {
|
|
2828
|
+
path: string;
|
|
2829
|
+
contentHash: string;
|
|
2830
|
+
}>, "many">;
|
|
2831
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2832
|
+
path: z.ZodString;
|
|
2833
|
+
before: z.ZodString;
|
|
2834
|
+
after: z.ZodString;
|
|
2835
|
+
}, "strict", z.ZodTypeAny, {
|
|
2836
|
+
path: string;
|
|
2837
|
+
before: string;
|
|
2838
|
+
after: string;
|
|
2839
|
+
}, {
|
|
2840
|
+
path: string;
|
|
2841
|
+
before: string;
|
|
2842
|
+
after: string;
|
|
2843
|
+
}>, "many">>;
|
|
2844
|
+
preconditions: z.ZodArray<z.ZodString, "many">;
|
|
2845
|
+
diff: z.ZodString;
|
|
2846
|
+
postconditions: z.ZodArray<z.ZodString, "many">;
|
|
2847
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
2848
|
+
proposalHash: z.ZodString;
|
|
2849
|
+
approvedAt: z.ZodString;
|
|
2850
|
+
approvedBy: z.ZodString;
|
|
2851
|
+
}, "strict", z.ZodTypeAny, {
|
|
2852
|
+
approvedBy: string;
|
|
2853
|
+
proposalHash: string;
|
|
2854
|
+
approvedAt: string;
|
|
2855
|
+
}, {
|
|
2856
|
+
approvedBy: string;
|
|
2857
|
+
proposalHash: string;
|
|
2858
|
+
approvedAt: string;
|
|
2859
|
+
}>>;
|
|
2860
|
+
status: z.ZodEnum<["proposed", "approved", "rejected", "stale", "applied", "failed"]>;
|
|
2861
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
2862
|
+
contentHash: z.ZodString;
|
|
2863
|
+
contentHashAlgo: z.ZodLiteral<"sha256-normalized-v1">;
|
|
2864
|
+
project: z.ZodObject<{
|
|
2865
|
+
name: z.ZodString;
|
|
2866
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2867
|
+
}, "strict", z.ZodTypeAny, {
|
|
2868
|
+
name: string;
|
|
2869
|
+
root?: string | undefined;
|
|
2870
|
+
}, {
|
|
2871
|
+
name: string;
|
|
2872
|
+
root?: string | undefined;
|
|
2873
|
+
}>;
|
|
2874
|
+
sourceRevision: z.ZodString;
|
|
2875
|
+
sourceRevisionKind: z.ZodEnum<["git", "content"]>;
|
|
2876
|
+
configurationHash: z.ZodString;
|
|
2877
|
+
pipelineVersion: z.ZodString;
|
|
2878
|
+
analyzerVersions: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2879
|
+
type: z.ZodLiteral<"fix-proposal">;
|
|
2880
|
+
}, "strict", z.ZodTypeAny, {
|
|
2881
|
+
type: "fix-proposal";
|
|
2882
|
+
status: "proposed" | "failed" | "stale" | "approved" | "rejected" | "applied";
|
|
2883
|
+
contentHash: string;
|
|
2884
|
+
schemaVersion: 1;
|
|
2885
|
+
project: {
|
|
2886
|
+
name: string;
|
|
2887
|
+
root?: string | undefined;
|
|
2888
|
+
};
|
|
2889
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2890
|
+
sourceRevision: string;
|
|
2891
|
+
sourceRevisionKind: "git" | "content";
|
|
2892
|
+
configurationHash: string;
|
|
2893
|
+
pipelineVersion: string;
|
|
2894
|
+
analyzerVersions: Record<string, string>;
|
|
2895
|
+
proposalId: string;
|
|
2896
|
+
baseRevision: string;
|
|
2897
|
+
affectedFiles: {
|
|
2898
|
+
path: string;
|
|
2899
|
+
contentHash: string;
|
|
2900
|
+
}[];
|
|
2901
|
+
preconditions: string[];
|
|
2902
|
+
diff: string;
|
|
2903
|
+
postconditions: string[];
|
|
2904
|
+
changes?: {
|
|
2905
|
+
path: string;
|
|
2906
|
+
before: string;
|
|
2907
|
+
after: string;
|
|
2908
|
+
}[] | undefined;
|
|
2909
|
+
approval?: {
|
|
2910
|
+
approvedBy: string;
|
|
2911
|
+
proposalHash: string;
|
|
2912
|
+
approvedAt: string;
|
|
2913
|
+
} | undefined;
|
|
2914
|
+
}, {
|
|
2915
|
+
type: "fix-proposal";
|
|
2916
|
+
status: "proposed" | "failed" | "stale" | "approved" | "rejected" | "applied";
|
|
2917
|
+
contentHash: string;
|
|
2918
|
+
schemaVersion: 1;
|
|
2919
|
+
project: {
|
|
2920
|
+
name: string;
|
|
2921
|
+
root?: string | undefined;
|
|
2922
|
+
};
|
|
2923
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2924
|
+
sourceRevision: string;
|
|
2925
|
+
sourceRevisionKind: "git" | "content";
|
|
2926
|
+
configurationHash: string;
|
|
2927
|
+
pipelineVersion: string;
|
|
2928
|
+
analyzerVersions: Record<string, string>;
|
|
2929
|
+
proposalId: string;
|
|
2930
|
+
baseRevision: string;
|
|
2931
|
+
affectedFiles: {
|
|
2932
|
+
path: string;
|
|
2933
|
+
contentHash: string;
|
|
2934
|
+
}[];
|
|
2935
|
+
preconditions: string[];
|
|
2936
|
+
diff: string;
|
|
2937
|
+
postconditions: string[];
|
|
2938
|
+
changes?: {
|
|
2939
|
+
path: string;
|
|
2940
|
+
before: string;
|
|
2941
|
+
after: string;
|
|
2942
|
+
}[] | undefined;
|
|
2943
|
+
approval?: {
|
|
2944
|
+
approvedBy: string;
|
|
2945
|
+
proposalHash: string;
|
|
2946
|
+
approvedAt: string;
|
|
2947
|
+
} | undefined;
|
|
2948
|
+
}>, {
|
|
2949
|
+
type: "fix-proposal";
|
|
2950
|
+
status: "proposed" | "failed" | "stale" | "approved" | "rejected" | "applied";
|
|
2951
|
+
contentHash: string;
|
|
2952
|
+
schemaVersion: 1;
|
|
2953
|
+
project: {
|
|
2954
|
+
name: string;
|
|
2955
|
+
root?: string | undefined;
|
|
2956
|
+
};
|
|
2957
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2958
|
+
sourceRevision: string;
|
|
2959
|
+
sourceRevisionKind: "git" | "content";
|
|
2960
|
+
configurationHash: string;
|
|
2961
|
+
pipelineVersion: string;
|
|
2962
|
+
analyzerVersions: Record<string, string>;
|
|
2963
|
+
proposalId: string;
|
|
2964
|
+
baseRevision: string;
|
|
2965
|
+
affectedFiles: {
|
|
2966
|
+
path: string;
|
|
2967
|
+
contentHash: string;
|
|
2968
|
+
}[];
|
|
2969
|
+
preconditions: string[];
|
|
2970
|
+
diff: string;
|
|
2971
|
+
postconditions: string[];
|
|
2972
|
+
changes?: {
|
|
2973
|
+
path: string;
|
|
2974
|
+
before: string;
|
|
2975
|
+
after: string;
|
|
2976
|
+
}[] | undefined;
|
|
2977
|
+
approval?: {
|
|
2978
|
+
approvedBy: string;
|
|
2979
|
+
proposalHash: string;
|
|
2980
|
+
approvedAt: string;
|
|
2981
|
+
} | undefined;
|
|
2982
|
+
}, {
|
|
2983
|
+
type: "fix-proposal";
|
|
2984
|
+
status: "proposed" | "failed" | "stale" | "approved" | "rejected" | "applied";
|
|
2985
|
+
contentHash: string;
|
|
2986
|
+
schemaVersion: 1;
|
|
2987
|
+
project: {
|
|
2988
|
+
name: string;
|
|
2989
|
+
root?: string | undefined;
|
|
2990
|
+
};
|
|
2991
|
+
contentHashAlgo: "sha256-normalized-v1";
|
|
2992
|
+
sourceRevision: string;
|
|
2993
|
+
sourceRevisionKind: "git" | "content";
|
|
2994
|
+
configurationHash: string;
|
|
2995
|
+
pipelineVersion: string;
|
|
2996
|
+
analyzerVersions: Record<string, string>;
|
|
2997
|
+
proposalId: string;
|
|
2998
|
+
baseRevision: string;
|
|
2999
|
+
affectedFiles: {
|
|
3000
|
+
path: string;
|
|
3001
|
+
contentHash: string;
|
|
3002
|
+
}[];
|
|
3003
|
+
preconditions: string[];
|
|
3004
|
+
diff: string;
|
|
3005
|
+
postconditions: string[];
|
|
3006
|
+
changes?: {
|
|
3007
|
+
path: string;
|
|
3008
|
+
before: string;
|
|
3009
|
+
after: string;
|
|
3010
|
+
}[] | undefined;
|
|
3011
|
+
approval?: {
|
|
3012
|
+
approvedBy: string;
|
|
3013
|
+
proposalHash: string;
|
|
3014
|
+
approvedAt: string;
|
|
3015
|
+
} | undefined;
|
|
3016
|
+
}>;
|
|
3017
|
+
type FixProposalV1 = z.infer<typeof FixProposalV1Schema>;
|
|
3018
|
+
type KnowledgeArtifactV1 = DiscoverySnapshotV1 | ReconciliationReportV1 | WorkflowRunV1 | AgentProposalV1 | FixProposalV1;
|
|
3019
|
+
|
|
1377
3020
|
type ParseIssue = {
|
|
1378
3021
|
readonly path: string;
|
|
1379
3022
|
readonly message: string;
|
|
@@ -1390,6 +3033,11 @@ declare const parseAgentHandoff: (input: unknown) => AgentHandoffV1;
|
|
|
1390
3033
|
declare const parseAgentSearch: (input: unknown) => AgentSearchV1;
|
|
1391
3034
|
declare const parseDocBridgeIndex: (input: unknown) => DocBridgeIndexV1;
|
|
1392
3035
|
declare const parseMemoryCandidate: (input: unknown) => MemoryCandidateV1;
|
|
3036
|
+
declare const parseDiscoverySnapshot: (input: unknown) => DiscoverySnapshotV1;
|
|
3037
|
+
declare const parseReconciliationReport: (input: unknown) => ReconciliationReportV1;
|
|
3038
|
+
declare const parseWorkflowRun: (input: unknown) => WorkflowRunV1;
|
|
3039
|
+
declare const parseAgentProposal: (input: unknown) => AgentProposalV1;
|
|
3040
|
+
declare const parseFixProposal: (input: unknown) => FixProposalV1;
|
|
1393
3041
|
declare const parseDocBridgeConfig: (input: unknown) => DocBridgeConfigV1;
|
|
1394
3042
|
|
|
1395
3043
|
type BuildIndexOptions = {
|
|
@@ -1405,6 +3053,188 @@ type BuildIndexResult = {
|
|
|
1405
3053
|
};
|
|
1406
3054
|
declare const buildDocBridgeIndex: (opts: BuildIndexOptions) => BuildIndexResult;
|
|
1407
3055
|
|
|
3056
|
+
type DiscoveryOptions = {
|
|
3057
|
+
readonly root?: string;
|
|
3058
|
+
readonly config?: DocBridgeConfigV1;
|
|
3059
|
+
readonly maxFiles?: number;
|
|
3060
|
+
readonly maxBytes?: number;
|
|
3061
|
+
};
|
|
3062
|
+
declare const discoverRepository: (opts?: DiscoveryOptions) => DiscoverySnapshotV1;
|
|
3063
|
+
|
|
3064
|
+
declare const DEFAULT_SAFETY_EXCLUDES: readonly ["**/.git/**", "**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.doc-bridge/**", "**/.env", "**/.env.*", "**/*secret*", "**/*credential*", "**/*.pem", "**/*.key"];
|
|
3065
|
+
type SafeWalkOptions = {
|
|
3066
|
+
readonly extensions?: readonly string[];
|
|
3067
|
+
readonly exclude?: readonly string[];
|
|
3068
|
+
readonly maxFiles?: number;
|
|
3069
|
+
readonly maxBytes?: number;
|
|
3070
|
+
readonly maxTimeMs?: number;
|
|
3071
|
+
readonly maxMemoryMb?: number;
|
|
3072
|
+
};
|
|
3073
|
+
type SafeWalkResult = {
|
|
3074
|
+
readonly files: readonly string[];
|
|
3075
|
+
readonly incomplete: boolean;
|
|
3076
|
+
readonly reason?: string;
|
|
3077
|
+
};
|
|
3078
|
+
declare const containedPath: (root: string, candidate: string) => string | undefined;
|
|
3079
|
+
declare const safeWalkFiles: (root: string, options?: SafeWalkOptions) => SafeWalkResult;
|
|
3080
|
+
declare const redactSecrets: (value: string) => string;
|
|
3081
|
+
declare const redactValue: (value: unknown) => unknown;
|
|
3082
|
+
|
|
3083
|
+
declare const DEFAULT_REGISTRY_AGENT_ID = "ecosystem-doc-bridge-corpus-scanner";
|
|
3084
|
+
declare const RegistryAgentMetadataSchema: z.ZodObject<{
|
|
3085
|
+
id: z.ZodString;
|
|
3086
|
+
version: z.ZodString;
|
|
3087
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3088
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3089
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3090
|
+
}, "strict", z.ZodTypeAny, {
|
|
3091
|
+
capabilities: string[];
|
|
3092
|
+
id: string;
|
|
3093
|
+
version: string;
|
|
3094
|
+
provider?: string | undefined;
|
|
3095
|
+
model?: string | undefined;
|
|
3096
|
+
}, {
|
|
3097
|
+
id: string;
|
|
3098
|
+
version: string;
|
|
3099
|
+
capabilities?: string[] | undefined;
|
|
3100
|
+
provider?: string | undefined;
|
|
3101
|
+
model?: string | undefined;
|
|
3102
|
+
}>;
|
|
3103
|
+
type RegistryAgentMetadata = z.infer<typeof RegistryAgentMetadataSchema> & {
|
|
3104
|
+
readonly root: string;
|
|
3105
|
+
};
|
|
3106
|
+
type RegistryAgentContext = {
|
|
3107
|
+
readonly snapshot: DiscoverySnapshotV1;
|
|
3108
|
+
readonly report: ReconciliationReportV1;
|
|
3109
|
+
readonly evidence: readonly ReconciliationReportV1['diagnostics'][number]['evidence'][number][];
|
|
3110
|
+
readonly capabilities: readonly ['snapshot.read', 'evidence.read', 'proposal.write'];
|
|
3111
|
+
readonly network: false;
|
|
3112
|
+
readonly shell: false;
|
|
3113
|
+
};
|
|
3114
|
+
type RegistryAgentRunner = (context: RegistryAgentContext) => Promise<unknown> | unknown;
|
|
3115
|
+
type RegistryAgentAdapter = {
|
|
3116
|
+
readonly metadata: RegistryAgentMetadata;
|
|
3117
|
+
readonly run: (snapshot: DiscoverySnapshotV1, report: ReconciliationReportV1, evidence?: readonly RegistryAgentContext['evidence'][number][]) => Promise<AgentProposalV1>;
|
|
3118
|
+
};
|
|
3119
|
+
declare const loadRegistryAgentRunner: (root: string, config: DocBridgeConfigV1) => Promise<RegistryAgentRunner>;
|
|
3120
|
+
declare const loadRegistryAgentMetadata: (root: string, config: DocBridgeConfigV1) => RegistryAgentMetadata;
|
|
3121
|
+
declare const createRegistryAgentAdapter: (root: string, config: DocBridgeConfigV1, runner: RegistryAgentRunner) => RegistryAgentAdapter;
|
|
3122
|
+
declare const persistRegistryAgentProposal: (stateDir: string, proposal: AgentProposalV1) => string;
|
|
3123
|
+
|
|
3124
|
+
type DocumentationDiagnostic = {
|
|
3125
|
+
readonly code: string;
|
|
3126
|
+
readonly message: string;
|
|
3127
|
+
readonly path: string;
|
|
3128
|
+
readonly evidence: Evidence;
|
|
3129
|
+
};
|
|
3130
|
+
type DocumentationDeclarationInput = {
|
|
3131
|
+
readonly path: string;
|
|
3132
|
+
readonly content: string;
|
|
3133
|
+
};
|
|
3134
|
+
type DocumentationDeclarationOptions = {
|
|
3135
|
+
readonly snapshot: Pick<DiscoverySnapshotV1, 'entities'>;
|
|
3136
|
+
readonly documentId?: string;
|
|
3137
|
+
};
|
|
3138
|
+
type DocumentationDeclarationResult = {
|
|
3139
|
+
readonly hasDocbridge: boolean;
|
|
3140
|
+
readonly entities: readonly KnowledgeEntity[];
|
|
3141
|
+
readonly relations: readonly KnowledgeRelation[];
|
|
3142
|
+
readonly diagnostics: readonly DocumentationDiagnostic[];
|
|
3143
|
+
};
|
|
3144
|
+
type DocumentationAnalysisResult = {
|
|
3145
|
+
readonly snapshot: DiscoverySnapshotV1;
|
|
3146
|
+
readonly diagnostics: readonly DocumentationDiagnostic[];
|
|
3147
|
+
};
|
|
3148
|
+
declare const parseDocumentationDeclarations: (input: DocumentationDeclarationInput, options: DocumentationDeclarationOptions) => DocumentationDeclarationResult;
|
|
3149
|
+
declare const applyDocumentationDeclarations: (snapshot: DiscoverySnapshotV1, documents: readonly DocumentationDeclarationInput[]) => DocumentationAnalysisResult;
|
|
3150
|
+
|
|
3151
|
+
declare const reconcileKnowledge: (observed: DiscoverySnapshotV1, declared: DiscoverySnapshotV1) => ReconciliationReportV1;
|
|
3152
|
+
|
|
3153
|
+
type OfflineReportInput = {
|
|
3154
|
+
readonly snapshot: DiscoverySnapshotV1;
|
|
3155
|
+
readonly report: ReconciliationReportV1;
|
|
3156
|
+
};
|
|
3157
|
+
type OfflineReportOptions = {
|
|
3158
|
+
readonly includeSnippets?: boolean;
|
|
3159
|
+
};
|
|
3160
|
+
declare const renderOfflineReport: (input: unknown, options?: OfflineReportOptions) => string;
|
|
3161
|
+
|
|
3162
|
+
type FixProposalOptions = {
|
|
3163
|
+
readonly baseRevision: string;
|
|
3164
|
+
readonly configurationHash: string;
|
|
3165
|
+
readonly projectName?: string;
|
|
3166
|
+
readonly toolVersion?: string;
|
|
3167
|
+
};
|
|
3168
|
+
type FixApplyOptions = {
|
|
3169
|
+
readonly currentRevision?: string;
|
|
3170
|
+
readonly verify?: (changedPaths: readonly string[]) => void;
|
|
3171
|
+
};
|
|
3172
|
+
declare const createMarkdownLinkFixProposal: (root: string, options: FixProposalOptions) => FixProposalV1 | undefined;
|
|
3173
|
+
declare const createArtifactNormalizationProposal: (root: string, artifactPath: string, options: FixProposalOptions) => FixProposalV1 | undefined;
|
|
3174
|
+
declare const approveFixProposal: (proposalInput: unknown, approvedBy: string, approvedAt?: string) => FixProposalV1;
|
|
3175
|
+
declare const applyFixProposal: (root: string, proposalInput: unknown, options?: FixApplyOptions) => FixProposalV1;
|
|
3176
|
+
|
|
3177
|
+
declare const WORKFLOW_STAGES: readonly ["collect", "normalize", "reconcile", "evaluate", "report"];
|
|
3178
|
+
type WorkflowStage = (typeof WORKFLOW_STAGES)[number];
|
|
3179
|
+
type WorkflowStageContext = {
|
|
3180
|
+
readonly root: string;
|
|
3181
|
+
readonly stage: WorkflowStage;
|
|
3182
|
+
readonly input: unknown;
|
|
3183
|
+
readonly previousOutput: unknown;
|
|
3184
|
+
};
|
|
3185
|
+
type WorkflowStageHandler = (context: WorkflowStageContext) => unknown;
|
|
3186
|
+
type WorkflowOptions = {
|
|
3187
|
+
readonly root: string;
|
|
3188
|
+
readonly stateDir?: string;
|
|
3189
|
+
readonly sourceRevision: string;
|
|
3190
|
+
readonly configurationHash: string;
|
|
3191
|
+
readonly toolVersion?: string;
|
|
3192
|
+
readonly runId?: string;
|
|
3193
|
+
readonly stage?: WorkflowStage | 'all';
|
|
3194
|
+
readonly inputs?: Partial<Record<WorkflowStage, unknown>>;
|
|
3195
|
+
readonly handlers: Partial<Record<WorkflowStage, WorkflowStageHandler>>;
|
|
3196
|
+
};
|
|
3197
|
+
type WorkflowExecutionResult = {
|
|
3198
|
+
readonly run: WorkflowRunV1;
|
|
3199
|
+
readonly stateDir: string;
|
|
3200
|
+
readonly reusedStages: readonly WorkflowStage[];
|
|
3201
|
+
};
|
|
3202
|
+
declare const runWorkflow: (options: WorkflowOptions) => WorkflowExecutionResult;
|
|
3203
|
+
declare const loadWorkflowManifest: (stateDir: string) => WorkflowRunV1;
|
|
3204
|
+
declare const loadWorkflowStepOutput: (stateDir: string, stage: WorkflowStage) => unknown;
|
|
3205
|
+
|
|
3206
|
+
type RuleMode = 'default' | 'recommended' | 'strict';
|
|
3207
|
+
type RuleEngineOptions = {
|
|
3208
|
+
readonly config?: RulesConfig;
|
|
3209
|
+
readonly preset?: RuleMode;
|
|
3210
|
+
readonly severity?: Partial<Record<RuleId, RuleSeverity>>;
|
|
3211
|
+
readonly ignore?: readonly RuleId[];
|
|
3212
|
+
readonly criticalEntities?: readonly string[];
|
|
3213
|
+
readonly criticalPaths?: readonly string[];
|
|
3214
|
+
readonly warningThresholds?: Partial<Record<RuleId, number>>;
|
|
3215
|
+
};
|
|
3216
|
+
type RuleFinding = {
|
|
3217
|
+
readonly id: string;
|
|
3218
|
+
readonly ruleId: RuleId;
|
|
3219
|
+
readonly code: string;
|
|
3220
|
+
readonly status: ReconciliationReportV1['diagnostics'][number]['status'];
|
|
3221
|
+
readonly severity: RuleSeverity;
|
|
3222
|
+
readonly message: string;
|
|
3223
|
+
readonly evidence: ReconciliationReportV1['diagnostics'][number]['evidence'];
|
|
3224
|
+
readonly entityIds?: readonly string[];
|
|
3225
|
+
readonly relationIds?: readonly string[];
|
|
3226
|
+
readonly remediation?: string;
|
|
3227
|
+
readonly sourceDiagnosticCode?: string;
|
|
3228
|
+
};
|
|
3229
|
+
type RuleEvaluationResult = {
|
|
3230
|
+
readonly mode: RuleMode;
|
|
3231
|
+
readonly findings: readonly RuleFinding[];
|
|
3232
|
+
readonly exitCode: 0 | 1;
|
|
3233
|
+
};
|
|
3234
|
+
declare const evaluateRules: (report: ReconciliationReportV1, options?: RuleEngineOptions) => RuleEvaluationResult;
|
|
3235
|
+
declare const parseRuleId: (value: string) => RuleId;
|
|
3236
|
+
declare const parseRuleSeverity: (value: string) => RuleSeverity;
|
|
3237
|
+
|
|
1408
3238
|
/**
|
|
1409
3239
|
* Canonical AgentsKit ecosystem section for llms.txt (and similar machine indexes).
|
|
1410
3240
|
*
|
|
@@ -1653,8 +3483,112 @@ declare const MCP_TOOLS: readonly [{
|
|
|
1653
3483
|
readonly type: "object";
|
|
1654
3484
|
readonly properties: {};
|
|
1655
3485
|
};
|
|
3486
|
+
}, {
|
|
3487
|
+
readonly name: "docbridge.snapshot";
|
|
3488
|
+
readonly title: "Read the latest discovery snapshot";
|
|
3489
|
+
readonly description: "Read the bounded canonical repository snapshot from the latest workflow run.";
|
|
3490
|
+
readonly annotations: {
|
|
3491
|
+
readonly readOnlyHint: true;
|
|
3492
|
+
};
|
|
3493
|
+
readonly inputSchema: {
|
|
3494
|
+
readonly type: "object";
|
|
3495
|
+
readonly properties: {
|
|
3496
|
+
readonly runId: {
|
|
3497
|
+
readonly type: "string";
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
};
|
|
3501
|
+
}, {
|
|
3502
|
+
readonly name: "docbridge.report";
|
|
3503
|
+
readonly title: "Read the latest reconciliation report";
|
|
3504
|
+
readonly description: "Read the canonical reconciliation report from the latest workflow run.";
|
|
3505
|
+
readonly annotations: {
|
|
3506
|
+
readonly readOnlyHint: true;
|
|
3507
|
+
};
|
|
3508
|
+
readonly inputSchema: {
|
|
3509
|
+
readonly type: "object";
|
|
3510
|
+
readonly properties: {
|
|
3511
|
+
readonly runId: {
|
|
3512
|
+
readonly type: "string";
|
|
3513
|
+
};
|
|
3514
|
+
};
|
|
3515
|
+
};
|
|
3516
|
+
}, {
|
|
3517
|
+
readonly name: "docbridge.diagnostics";
|
|
3518
|
+
readonly title: "Read reconciliation diagnostics";
|
|
3519
|
+
readonly description: "Read bounded diagnostics from the latest canonical reconciliation report.";
|
|
3520
|
+
readonly annotations: {
|
|
3521
|
+
readonly readOnlyHint: true;
|
|
3522
|
+
};
|
|
3523
|
+
readonly inputSchema: {
|
|
3524
|
+
readonly type: "object";
|
|
3525
|
+
readonly properties: {
|
|
3526
|
+
readonly status: {
|
|
3527
|
+
readonly type: "string";
|
|
3528
|
+
};
|
|
3529
|
+
readonly severity: {
|
|
3530
|
+
readonly type: "string";
|
|
3531
|
+
};
|
|
3532
|
+
};
|
|
3533
|
+
};
|
|
3534
|
+
}, {
|
|
3535
|
+
readonly name: "docbridge.relations";
|
|
3536
|
+
readonly title: "Read architecture relations";
|
|
3537
|
+
readonly description: "Read bounded observed and declared relations from the latest canonical snapshot.";
|
|
3538
|
+
readonly annotations: {
|
|
3539
|
+
readonly readOnlyHint: true;
|
|
3540
|
+
};
|
|
3541
|
+
readonly inputSchema: {
|
|
3542
|
+
readonly type: "object";
|
|
3543
|
+
readonly properties: {
|
|
3544
|
+
readonly kind: {
|
|
3545
|
+
readonly type: "string";
|
|
3546
|
+
};
|
|
3547
|
+
readonly limit: {
|
|
3548
|
+
readonly type: "number";
|
|
3549
|
+
};
|
|
3550
|
+
};
|
|
3551
|
+
};
|
|
3552
|
+
}, {
|
|
3553
|
+
readonly name: "docbridge.run";
|
|
3554
|
+
readonly title: "Read workflow state";
|
|
3555
|
+
readonly description: "Read the latest resumable workflow state and artifact references.";
|
|
3556
|
+
readonly annotations: {
|
|
3557
|
+
readonly readOnlyHint: true;
|
|
3558
|
+
};
|
|
3559
|
+
readonly inputSchema: {
|
|
3560
|
+
readonly type: "object";
|
|
3561
|
+
readonly properties: {};
|
|
3562
|
+
};
|
|
3563
|
+
}, {
|
|
3564
|
+
readonly name: "docbridge.proposals";
|
|
3565
|
+
readonly title: "Read or approve proposals";
|
|
3566
|
+
readonly description: "Create, inspect, approve and apply deterministic proposals through the shared human-gated workflow.";
|
|
3567
|
+
readonly inputSchema: {
|
|
3568
|
+
readonly type: "object";
|
|
3569
|
+
readonly properties: {
|
|
3570
|
+
readonly action: {
|
|
3571
|
+
readonly type: "string";
|
|
3572
|
+
readonly enum: readonly ["list", "propose-links", "propose-normalize", "suggest", "approve", "apply"];
|
|
3573
|
+
};
|
|
3574
|
+
readonly proposalHash: {
|
|
3575
|
+
readonly type: "string";
|
|
3576
|
+
};
|
|
3577
|
+
readonly artifactPath: {
|
|
3578
|
+
readonly type: "string";
|
|
3579
|
+
};
|
|
3580
|
+
readonly approvedBy: {
|
|
3581
|
+
readonly type: "string";
|
|
3582
|
+
};
|
|
3583
|
+
readonly proposal: {
|
|
3584
|
+
readonly type: "object";
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
1656
3588
|
}];
|
|
1657
3589
|
declare const handleMcpRequest: (ctx: McpContext, request: JsonRpcRequest) => unknown;
|
|
3590
|
+
type StdioFraming = 'content-length' | 'json-line';
|
|
3591
|
+
declare const respondMcpRequest: (ctx: McpContext, request: JsonRpcRequest, framing: StdioFraming) => Promise<void>;
|
|
1658
3592
|
declare const startMcpStdioServer: (ctx: McpContext) => void;
|
|
1659
3593
|
|
|
1660
3594
|
type McpInstallTarget = 'cursor' | 'claude';
|
|
@@ -1775,7 +3709,11 @@ declare const defaultPromotionDraftPath: (root: string) => string;
|
|
|
1775
3709
|
declare const writePromotionDraft: (root: string, draft: MemoryPromotionDraft, path?: string) => string;
|
|
1776
3710
|
declare const promoteMemoryToGithubPr: (root: string, draft: MemoryPromotionDraft, options?: GithubPrOptions) => GithubPrResult;
|
|
1777
3711
|
|
|
3712
|
+
declare const canonicalJsonV1: (payload: unknown) => string;
|
|
1778
3713
|
declare const sha256NormalizedV1: (payload: unknown) => string;
|
|
3714
|
+
declare const contentHashForArtifactV1: <T extends {
|
|
3715
|
+
readonly contentHash: string;
|
|
3716
|
+
}>(artifact: T) => string;
|
|
1779
3717
|
|
|
1780
3718
|
declare class IndexNotFoundError extends Error {
|
|
1781
3719
|
readonly path: string;
|
|
@@ -1845,7 +3783,7 @@ declare const chunksFromMarkdown: (property: string, raw: string, sourceUrl: str
|
|
|
1845
3783
|
declare const loadFederatedChunks: (root: string, config: DocBridgeConfigV1, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
1846
3784
|
declare const retrieveHybridChunks: (root: string, config: DocBridgeConfigV1, index: DocBridgeIndexV1, query: string, options?: FederatedRetrieverOptions) => Promise<DocBridgeRetrievedChunk[]>;
|
|
1847
3785
|
|
|
1848
|
-
declare const PACKAGE_VERSION = "1.
|
|
3786
|
+
declare const PACKAGE_VERSION = "1.5.0";
|
|
1849
3787
|
|
|
1850
3788
|
type FrontmatterValue = string | boolean | readonly string[];
|
|
1851
3789
|
type FrontmatterData = Record<string, FrontmatterValue>;
|
|
@@ -1962,4 +3900,4 @@ declare const docBridgePatternPayload: () => {
|
|
|
1962
3900
|
cli: "ak-docs";
|
|
1963
3901
|
};
|
|
1964
3902
|
|
|
1965
|
-
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 EcosystemLlmsProduct, type FederatedRetrieverOptions, type FetchText, type FormatEcosystemLlmsBlockOptions, 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, discoverNxProjects, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, draftMemoryPromotion, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, formatDocumentationStandardText, formatEcosystemLlmsBlock, formatEcosystemLlmsSection, 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 };
|
|
3903
|
+
export { AffectedFileSchema, AgentHandoffLegacySchema, type AgentHandoffV1, AgentHandoffV1JsonSchema, AgentHandoffV1Schema, type AgentProposalV1, AgentProposalV1Schema, type AgentSearchV1, AgentSearchV1Schema, type BuildIndexOptions, type BuildIndexResult, CoverageSchema, DEFAULT_REGISTRY_AGENT_ID, DEFAULT_SAFETY_EXCLUDES, DOCUMENTATION_STANDARD_V1_ID, DOCUMENTATION_STANDARD_V1_STATUS, DOC_BRIDGE_PATTERN_ID, DOC_BRIDGE_PATTERN_META, type DiagnosticSeverity, DiagnosticSeveritySchema, type DiscoveryOptions, type DiscoverySnapshotV1, DiscoverySnapshotV1Schema, DocBridgeConfigV1, type DocBridgeIndexV1, DocBridgeIndexV1JsonSchema, DocBridgeIndexV1Schema, DocBridgeJsonSchemas, type DocBridgeRetrievedChunk, type DocBridgeRetriever, type DocBridgeRetrieverOptions, type DoctorBadgeMetrics, type DoctorCoverage, type DoctorIssue, type DoctorReport, type DocumentationAnalysisResult, type DocumentationConformanceReportV1, type DocumentationDeclarationInput, type DocumentationDeclarationOptions, type DocumentationDeclarationResult, type DocumentationDiagnostic, type DocumentationStandardEvidence, type DocumentationStandardRemediation, DocumentationStandardRuleId, type DocumentationStandardRuleLevel, type DocumentationStandardRuleResult, type DocumentationStandardRuleStatus, type EcosystemLlmsProduct, EntitySchema, type Evidence, EvidenceSchema, EvidenceSourceSchema, type FederatedRetrieverOptions, type FetchText, type FindingStatus, FindingStatusSchema, type FixApplyOptions, type FixChange, FixChangeSchema, type FixProposalOptions, FixProposalStatusSchema, type FixProposalV1, FixProposalV1Schema, type FormatEcosystemLlmsBlockOptions, 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, KNOWLEDGE_CONTENT_HASH_ALGO, KNOWLEDGE_SCHEMA_VERSION, type KnowledgeArtifactV1, type KnowledgeDiagnostic, type KnowledgeEntity, type KnowledgeEntry, KnowledgeEntrySchema, type KnowledgeRelation, MCP_TOOLS, MEMORY_CANDIDATE_SCHEMA_VERSION, type McpInstallResult, type McpInstallTarget, type MemoryCandidateV1, MemoryCandidateV1JsonSchema, MemoryCandidateV1Schema, type MemoryClassification, type MemoryPromotionDraft, type MemoryRoute, type OfflineReportInput, type OfflineReportOptions, PACKAGE_VERSION, type ParseIssue, type ParseResult, PeerMissingError, ProjectIdentitySchema, ProposalOriginSchema, type Provenance, ProvenanceSchema, type QueryKind, type QueryRequest, type QueryResult, type ReconciliationReportV1, ReconciliationReportV1Schema, type RegistryAgentAdapter, type RegistryAgentContext, type RegistryAgentMetadata, type RegistryAgentRunner, RelationSchema, type RuleEngineOptions, type RuleEvaluationResult, type RuleFinding, RuleId, type RuleMode, RuleSeverity, RulesConfig, type SafeWalkOptions, type SafeWalkResult, type SafetyFinding, type SearchMatch, WORKFLOW_STAGES, type WatchIndexOptions, type WorkflowExecutionResult, type WorkflowOptions, type WorkflowRunV1, WorkflowRunV1Schema, type WorkflowStage, type WorkflowStageContext, type WorkflowStageHandler, type WorkflowState, WorkflowStateSchema, WorkflowStepSchema, WorkflowTransitionSchema, applyDocumentationDeclarations, applyFixProposal, approveFixProposal, buildDocBridgeIndex, buildLookup, canonicalJsonV1, chunksFromMarkdown, classifyMemoryCandidates, collectPackages, containedPath, contentHashForArtifactV1, createArtifactNormalizationProposal, createDocBridgeRag, createDocBridgeRetriever, createMarkdownLinkFixProposal, createRegistryAgentAdapter, defaultPromotionDraftPath, discoverNxProjects, discoverRepository, docBridgePatternMarkdown, docBridgePatternPayload, doctorBadgeMetrics, draftMemoryPromotion, evaluateRules, formatDoctorBadgeJson, formatDoctorBadgeMarkdown, formatDoctorText, formatDocumentationStandardText, formatEcosystemLlmsBlock, formatEcosystemLlmsSection, handleMcpRequest, indexFilePath, ingestAgentMemory, ingestCursorRules, ingestMemoryCandidates, installMcpConfig, layer1InstallHint, loadDocBridgeIndex, loadFederatedChunks, loadRegistryAgentMetadata, loadRegistryAgentRunner, loadWorkflowManifest, loadWorkflowStepOutput, mcpSnippet, normalizeAgentHandoff, parseAgentHandoff, parseAgentProposal, parseAgentSearch, parseDiscoverySnapshot, parseDocBridgeConfig, parseDocBridgeIndex, parseDocumentationDeclarations, parseFixProposal, parseLlmsTxtLinks, parseMemoryCandidate, parseReconciliationReport, parseRuleId, parseRuleSeverity, parseWorkflowRun, persistRegistryAgentProposal, promoteMemoryToGithubPr, reconcileKnowledge, redactSecrets, redactValue, renderOfflineReport, resolveGateIds, resolveRoot, respondMcpRequest, retrieveDocBridgeChunks, retrieveHybridChunks, runChatOnce, runDoctor, runDocumentationStandardV1, runGate, runGates, runQuery, runWorkflow, safeParseAgentHandoff, safeWalkFiles, scanHumanDocRecords, scanHumanDocs, scanMemorySafety, searchIndex, sha256NormalizedV1, startInkChat, startMcpStdioServer, watchDocBridgeIndex, writePromotionDraft };
|