@longzai-intelligence-issues/ledger 0.0.1 → 0.0.2
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/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-lint.log +7 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +17 -0
- package/dist/index.d.ts +317 -7
- package/dist/index.js +23 -22
- package/package.json +4 -8
- package/src/__tests__/close/verify-close.commands.test.ts +57 -0
- package/src/__tests__/lint/lint.core.test.ts +23 -0
- package/src/__tests__/migrate/migrate-legacy.commands.test.ts +519 -0
- package/src/__tests__/template/issue-template.renderer.test.ts +10 -0
- package/src/index.ts +4 -0
- package/src/lint/lint.core.ts +12 -1
- package/src/migrate/migrate-legacy.commands.ts +417 -0
- package/src/migrate/migrate-legacy.core.ts +812 -0
- package/src/normalize/normalize-header.commands.ts +99 -8
- package/src/numbering/numbering.core.ts +3 -3
- package/src/parser/format.utils.ts +76 -0
- package/src/template/issue-template.renderer.ts +15 -4
- package/tsconfig/.cache/build.tsbuildinfo +1 -1
- package/tsconfig/.cache/node.tsbuildinfo +1 -1
- package/tsconfig/.cache/test.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
|
|
6
6
|
本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
7
7
|
|
|
8
|
+
## [0.0.2] - 2026-09-14
|
|
9
|
+
|
|
10
|
+
### 新增
|
|
11
|
+
|
|
12
|
+
- migrate-legacy 存量清偿引擎(五方言解析→状态词规范化→处置段对齐→必填回填;零丢失守卫+幂等+dry-run)
|
|
13
|
+
- LEGACY_STATUS_VOCABULARY pre-emoji 状态词表常量(读侧归类不动,IssueStatus 契约零破坏)
|
|
14
|
+
|
|
15
|
+
### 变更
|
|
16
|
+
|
|
17
|
+
- normalize-header 支持 --status 显式灯位注入(无可识别状态行场景)
|
|
18
|
+
- parseHeaderDialect 新增表格方言解析(两列表;脚手架设计性丢弃)
|
|
19
|
+
- lint issue-slug-contains-digit 支持 scope slugDigitPolicy allow 放行
|
|
20
|
+
- 注册表 README 存根支持指南缺失回退(不落死链,指向 template 机器真源)
|
|
21
|
+
- migrate-legacy 新增 --status red|green 显式灯位注入(无状态行历史文档的人工定档通道)与处置段候选链数据驱动扩展(落地治理/治理落地/验证/修复等,排除计划性段名)
|
|
22
|
+
- migrate-legacy H1 分隔符变体兼容句点形态(# 0279. 标题)
|
|
23
|
+
- LEGACY_STATUS_VOCABULARY 补 已处置/已完成/已闭合(规范词无 emoji 历史形态)
|
|
24
|
+
|
|
8
25
|
## [0.0.1] - 2026-09-14
|
|
9
26
|
|
|
10
27
|
### 新增
|
package/dist/index.d.ts
CHANGED
|
@@ -1068,6 +1068,39 @@ type IssueStatusKind = 'red' | 'yellow' | 'green' | 'frozen' | 'canceled' | 'leg
|
|
|
1068
1068
|
* 规范状态标签(写侧单一真源)
|
|
1069
1069
|
*/
|
|
1070
1070
|
declare const CANONICAL_STATUS_LABELS: Readonly<Record<'red' | 'yellow' | 'green' | 'frozen' | 'canceled', string>>;
|
|
1071
|
+
/**
|
|
1072
|
+
* pre-emoji 存量状态词表(写侧迁移单一真源)
|
|
1073
|
+
*
|
|
1074
|
+
* 读侧归类(classifyStatusLine)不消费本词表——旧词表形态归 unknown 由 lint
|
|
1075
|
+
* status-line-missing 拦截,迁移经由 migrate-legacy 写侧规范化后回归规范五态,
|
|
1076
|
+
* 避免为读侧新增 legacy-red 等形态破坏 IssueStatus 契约面。
|
|
1077
|
+
*/
|
|
1078
|
+
declare const LEGACY_STATUS_VOCABULARY: Readonly<{
|
|
1079
|
+
/**
|
|
1080
|
+
* 绿系词(历史已结案标记)
|
|
1081
|
+
*/
|
|
1082
|
+
green: readonly string[];
|
|
1083
|
+
/**
|
|
1084
|
+
* 红系词(历史待办标记)
|
|
1085
|
+
*/
|
|
1086
|
+
red: readonly string[];
|
|
1087
|
+
/**
|
|
1088
|
+
* 延期系词(已登记(延期)族——迁移默认回红灯并保留延期说明)
|
|
1089
|
+
*/
|
|
1090
|
+
deferred: readonly string[];
|
|
1091
|
+
/**
|
|
1092
|
+
* 取消系词
|
|
1093
|
+
*/
|
|
1094
|
+
canceled: readonly string[];
|
|
1095
|
+
/**
|
|
1096
|
+
* 进行系词(黄灯候选)
|
|
1097
|
+
*/
|
|
1098
|
+
inProgress: readonly string[];
|
|
1099
|
+
/**
|
|
1100
|
+
* 冻结系词(不迁移——冻结唯一合法写入路径是 freeze 命令)
|
|
1101
|
+
*/
|
|
1102
|
+
frozen: readonly string[];
|
|
1103
|
+
}>;
|
|
1071
1104
|
/**
|
|
1072
1105
|
* issue 引用 token 形态
|
|
1073
1106
|
*
|
|
@@ -1488,6 +1521,11 @@ type NormalizeHeaderFileInput = {
|
|
|
1488
1521
|
* issue 文件仓库相对路径
|
|
1489
1522
|
*/
|
|
1490
1523
|
file: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* 无可识别状态行时的显式灯位(--status 语义;frozen 不在此通道——冻结唯一合法
|
|
1526
|
+
* 写入路径是 freeze 命令,其裁定语硬门不可绕过)
|
|
1527
|
+
*/
|
|
1528
|
+
status?: 'red' | 'yellow' | 'green' | 'canceled';
|
|
1491
1529
|
};
|
|
1492
1530
|
/**
|
|
1493
1531
|
* 单文件迁移结果
|
|
@@ -1506,10 +1544,46 @@ type NormalizeHeaderResult = {
|
|
|
1506
1544
|
*/
|
|
1507
1545
|
message: string;
|
|
1508
1546
|
};
|
|
1547
|
+
/**
|
|
1548
|
+
* 头部解析产物
|
|
1549
|
+
*/
|
|
1550
|
+
type ParsedHeader = {
|
|
1551
|
+
/**
|
|
1552
|
+
* 字段键值对(保序)
|
|
1553
|
+
*/
|
|
1554
|
+
fields: Array<{
|
|
1555
|
+
key: string;
|
|
1556
|
+
value: string;
|
|
1557
|
+
}>;
|
|
1558
|
+
/**
|
|
1559
|
+
* residual 行(解析不成字段的行,原样保留)
|
|
1560
|
+
*/
|
|
1561
|
+
residuals: string[];
|
|
1562
|
+
/**
|
|
1563
|
+
* 头部结束行下标(正文起点)
|
|
1564
|
+
*/
|
|
1565
|
+
bodyStartIndex: number;
|
|
1566
|
+
};
|
|
1567
|
+
/**
|
|
1568
|
+
* 解析头部方言(五种形态逐行尝试:粗体标签 / 列表式 / 标题式 / 管道引用行 / 表格)
|
|
1569
|
+
*
|
|
1570
|
+
* @param lines - 文档行数组
|
|
1571
|
+
* @returns 头部解析产物
|
|
1572
|
+
*/
|
|
1573
|
+
declare function parseHeaderDialect(lines: string[]): ParsedHeader;
|
|
1509
1574
|
/**
|
|
1510
1575
|
* 迁移形态
|
|
1511
1576
|
*/
|
|
1512
1577
|
type NormalizeOutcome = 'rewritten' | 'unchanged' | 'skipped';
|
|
1578
|
+
/**
|
|
1579
|
+
* normalizeHeader 迁移选项(无可识别状态行时的显式灯位注入)
|
|
1580
|
+
*/
|
|
1581
|
+
type NormalizeHeaderOptions = {
|
|
1582
|
+
/**
|
|
1583
|
+
* 显式灯位(--status 语义;frozen 不在此通道——冻结唯一合法写入路径是 freeze)
|
|
1584
|
+
*/
|
|
1585
|
+
status?: NormalizeHeaderFileInput['status'];
|
|
1586
|
+
};
|
|
1513
1587
|
/**
|
|
1514
1588
|
* 迁移产物
|
|
1515
1589
|
*/
|
|
@@ -1527,9 +1601,10 @@ type NormalizeResult = {
|
|
|
1527
1601
|
* 迁移单份文档头部
|
|
1528
1602
|
*
|
|
1529
1603
|
* @param raw - 文档全文
|
|
1604
|
+
* @param options - 迁移选项(无可识别状态行时的显式灯位注入)
|
|
1530
1605
|
* @returns 迁移产物
|
|
1531
1606
|
*/
|
|
1532
|
-
declare function normalizeHeader(raw: string): NormalizeResult;
|
|
1607
|
+
declare function normalizeHeader(raw: string, options?: NormalizeHeaderOptions): NormalizeResult;
|
|
1533
1608
|
/**
|
|
1534
1609
|
* 迁移并落盘单份文档(守卫失败不落盘)
|
|
1535
1610
|
*
|
|
@@ -1540,6 +1615,240 @@ declare function normalizeHeader(raw: string): NormalizeResult;
|
|
|
1540
1615
|
*/
|
|
1541
1616
|
declare function normalizeHeaderFile(input: NormalizeHeaderFileInput): NormalizeHeaderResult;
|
|
1542
1617
|
//#endregion
|
|
1618
|
+
//#region src/migrate/migrate-legacy.core.d.ts
|
|
1619
|
+
/**
|
|
1620
|
+
* migrate-legacy 纯变换核(无 IO,可测性单一来源)
|
|
1621
|
+
*
|
|
1622
|
+
* 五方言解析(含表格)→ 字段别名 → pre-emoji 状态词规范化 → H1 编号规范 →
|
|
1623
|
+
* 处置段标题链对齐 → 必填元信息回填。全部变换可幂等重放,变换台账逐条记录,
|
|
1624
|
+
* 供命令层零丢失守卫与人工复核消费。
|
|
1625
|
+
*/
|
|
1626
|
+
/**
|
|
1627
|
+
* 单文件迁移变换台账条目
|
|
1628
|
+
*/
|
|
1629
|
+
type MigrationTransformation = {
|
|
1630
|
+
/**
|
|
1631
|
+
* 变换类别(人工复核消费的稳定标识)
|
|
1632
|
+
*/
|
|
1633
|
+
kind: 'status-canonicalized' | 'status-downgraded-placeholder' | 'field-alias' | 'priority-mapped' | 'priority-backfilled' | 'h1-numbered' | 'disposition-renamed' | 'disposition-appended' | 'required-backfilled';
|
|
1634
|
+
/**
|
|
1635
|
+
* 变换说明(原值 → 新值)
|
|
1636
|
+
*/
|
|
1637
|
+
detail: string;
|
|
1638
|
+
};
|
|
1639
|
+
/**
|
|
1640
|
+
* 纯变换产物
|
|
1641
|
+
*/
|
|
1642
|
+
type MigrateCoreResult = {
|
|
1643
|
+
/**
|
|
1644
|
+
* 迁移形态
|
|
1645
|
+
*/
|
|
1646
|
+
outcome: 'rewritten' | 'unchanged' | 'skipped';
|
|
1647
|
+
/**
|
|
1648
|
+
* 产物全文(skipped 时为原文)
|
|
1649
|
+
*/
|
|
1650
|
+
content: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* skip/unchanged 说明
|
|
1653
|
+
*/
|
|
1654
|
+
message: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* 变换台账(rewritten 时非空)
|
|
1657
|
+
*/
|
|
1658
|
+
transformations: MigrationTransformation[];
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* 迁移选项(引擎零仓库知识——仓库特有缺省值全部经入参注入)
|
|
1662
|
+
*/
|
|
1663
|
+
type MigrateCoreOptions = {
|
|
1664
|
+
/**
|
|
1665
|
+
* 编号(文件名前缀,H1 规范化用)
|
|
1666
|
+
*/
|
|
1667
|
+
number: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* 所属域回填值(scope title)
|
|
1670
|
+
*/
|
|
1671
|
+
scopeTitle: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* 优先级缺省(原案无优先级与严重程度时回填)
|
|
1674
|
+
*/
|
|
1675
|
+
defaultPriority?: 'P1' | 'P2' | 'P3';
|
|
1676
|
+
/**
|
|
1677
|
+
* 来源回填缺省文案
|
|
1678
|
+
*/
|
|
1679
|
+
defaultSource?: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* 立案日期回填缺省(原案无日期字段时;未给则 skipped 交人工)
|
|
1682
|
+
*/
|
|
1683
|
+
defaultFilingDate?: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* 无状态行历史文档的显式灯位注入(--status;灯位属语义判断由操作者定档,
|
|
1686
|
+
* 引擎仅承接机械迁移。红/绿两态——黄灯须 ≥4 字挂起原因不适用固定文案注入,
|
|
1687
|
+
* 冻结唯一合法路径是 freeze 命令)
|
|
1688
|
+
*/
|
|
1689
|
+
status?: 'red' | 'green';
|
|
1690
|
+
};
|
|
1691
|
+
/**
|
|
1692
|
+
* 状态词匹配产物
|
|
1693
|
+
*/
|
|
1694
|
+
type StatusWordMatch = {
|
|
1695
|
+
/**
|
|
1696
|
+
* 词表档位
|
|
1697
|
+
*/
|
|
1698
|
+
tier: 'green' | 'red' | 'deferred' | 'canceled' | 'inProgress' | 'frozen';
|
|
1699
|
+
/**
|
|
1700
|
+
* 命中词
|
|
1701
|
+
*/
|
|
1702
|
+
word: string;
|
|
1703
|
+
};
|
|
1704
|
+
/**
|
|
1705
|
+
* 状态值规范化产物
|
|
1706
|
+
*/
|
|
1707
|
+
type CanonicalStatusValue = {
|
|
1708
|
+
/**
|
|
1709
|
+
* 规范状态值(五态灯位 + 溯源括注)
|
|
1710
|
+
*/
|
|
1711
|
+
value: string;
|
|
1712
|
+
/**
|
|
1713
|
+
* 词表档位
|
|
1714
|
+
*/
|
|
1715
|
+
tier: StatusWordMatch['tier'];
|
|
1716
|
+
/**
|
|
1717
|
+
* 命中词(原词溯源)
|
|
1718
|
+
*/
|
|
1719
|
+
word: string;
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
* 清理字段值(去首尾空白与粗体星号——覆盖三种历史形态:整体包裹 `**值**`、
|
|
1723
|
+
* 前导无尾随 `**值`、词中包裹 `**词**(括注)`)
|
|
1724
|
+
*
|
|
1725
|
+
* @param value - 原值
|
|
1726
|
+
* @returns 清理后值
|
|
1727
|
+
*/
|
|
1728
|
+
declare function cleanValue(value: string): string;
|
|
1729
|
+
/**
|
|
1730
|
+
* 规范化状态值(pre-emoji 词 → 五态灯位;原词与括注零丢失保留)
|
|
1731
|
+
*
|
|
1732
|
+
* @param value - 清理后的状态值
|
|
1733
|
+
* @returns 规范值与档位;不可机械迁移为 null(须人工)
|
|
1734
|
+
*/
|
|
1735
|
+
declare function canonicalizeStatusValue(value: string): CanonicalStatusValue | null;
|
|
1736
|
+
/**
|
|
1737
|
+
* 严重程度/中文优先级 → P 档位映射
|
|
1738
|
+
*
|
|
1739
|
+
* @param value - 原值(高/中/低或 P1/P2/P3)
|
|
1740
|
+
* @returns P 档位;不可映射为 null
|
|
1741
|
+
*/
|
|
1742
|
+
declare function mapPriorityValue(value: string): 'P1' | 'P2' | 'P3' | null;
|
|
1743
|
+
/**
|
|
1744
|
+
* H1 规范化产物
|
|
1745
|
+
*/
|
|
1746
|
+
type CanonicalH1 = {
|
|
1747
|
+
/**
|
|
1748
|
+
* 规范标题行(`# NNNN - 标题核心`)
|
|
1749
|
+
*/
|
|
1750
|
+
line: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* 标题核心(剥离既有编号与分隔符变体后的标题文本)
|
|
1753
|
+
*/
|
|
1754
|
+
titleCore: string;
|
|
1755
|
+
};
|
|
1756
|
+
/**
|
|
1757
|
+
* H1 标题规范化:`# NNNN - 标题`(剥离既有编号与分隔符变体)
|
|
1758
|
+
*
|
|
1759
|
+
* @param h1 - 原一级标题行
|
|
1760
|
+
* @param number - 文件名编号
|
|
1761
|
+
* @returns 规范标题行与标题核心
|
|
1762
|
+
*/
|
|
1763
|
+
declare function canonicalizeH1(h1: string, number: string): CanonicalH1;
|
|
1764
|
+
/**
|
|
1765
|
+
* 处置段候选标题链(apex-energy-ktv 全量段名词频盘点驱动;验证族 > 治理记录族 >
|
|
1766
|
+
* 变更/修复族。计划性段名(治理方案/治理方向/修复方向/处置方向)不属处置记录,排除)
|
|
1767
|
+
*/
|
|
1768
|
+
declare const DISPOSITION_CANDIDATES: ReadonlyArray<{
|
|
1769
|
+
pattern: RegExp;
|
|
1770
|
+
title: string;
|
|
1771
|
+
}>;
|
|
1772
|
+
/**
|
|
1773
|
+
* 执行单文档纯变换
|
|
1774
|
+
*
|
|
1775
|
+
* @param raw - 文档全文
|
|
1776
|
+
* @param options - 迁移选项
|
|
1777
|
+
* @returns 纯变换产物
|
|
1778
|
+
*/
|
|
1779
|
+
declare function migrateLegacyCore(raw: string, options: MigrateCoreOptions): MigrateCoreResult;
|
|
1780
|
+
//#endregion
|
|
1781
|
+
//#region src/migrate/migrate-legacy.commands.d.ts
|
|
1782
|
+
/**
|
|
1783
|
+
* 单文件迁移入参
|
|
1784
|
+
*/
|
|
1785
|
+
type MigrateLegacyFileInput = {
|
|
1786
|
+
/**
|
|
1787
|
+
* 仓库根绝对路径
|
|
1788
|
+
*/
|
|
1789
|
+
root: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* issue 文件仓库相对路径(须落 scope registryDir 内)
|
|
1792
|
+
*/
|
|
1793
|
+
file: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* 解析后配置(所属域回填取 scope title)
|
|
1796
|
+
*/
|
|
1797
|
+
config: LziIssuesConfig;
|
|
1798
|
+
/**
|
|
1799
|
+
* 优先级缺省(原案无优先级与严重程度时回填)
|
|
1800
|
+
*/
|
|
1801
|
+
defaultPriority?: 'P1' | 'P2' | 'P3';
|
|
1802
|
+
/**
|
|
1803
|
+
* 来源回填缺省文案
|
|
1804
|
+
*/
|
|
1805
|
+
defaultSource?: string;
|
|
1806
|
+
/**
|
|
1807
|
+
* 立案日期回填缺省(YYYY-MM-DD)
|
|
1808
|
+
*/
|
|
1809
|
+
defaultFilingDate?: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* 无状态行历史文档的显式灯位注入(--status red|green;灯位语义由操作者定档)
|
|
1812
|
+
*/
|
|
1813
|
+
status?: 'red' | 'green';
|
|
1814
|
+
/**
|
|
1815
|
+
* 只呈现不落盘
|
|
1816
|
+
*/
|
|
1817
|
+
dryRun?: boolean;
|
|
1818
|
+
};
|
|
1819
|
+
/**
|
|
1820
|
+
* 单文件迁移结果
|
|
1821
|
+
*/
|
|
1822
|
+
type MigrateLegacyFileResult = {
|
|
1823
|
+
/**
|
|
1824
|
+
* issue 文件仓库相对路径
|
|
1825
|
+
*/
|
|
1826
|
+
file: string;
|
|
1827
|
+
/**
|
|
1828
|
+
* 处置形态
|
|
1829
|
+
*/
|
|
1830
|
+
outcome: 'rewritten' | 'unchanged' | 'skipped' | 'failed';
|
|
1831
|
+
/**
|
|
1832
|
+
* 结果说明
|
|
1833
|
+
*/
|
|
1834
|
+
message: string;
|
|
1835
|
+
/**
|
|
1836
|
+
* 产物全文(rewritten/unchanged 携带,dry-run 复核消费)
|
|
1837
|
+
*/
|
|
1838
|
+
content: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* 变换台账(人工复核消费)
|
|
1841
|
+
*/
|
|
1842
|
+
transformations: MigrationTransformation[];
|
|
1843
|
+
};
|
|
1844
|
+
/**
|
|
1845
|
+
* 迁移并(缺省)落盘单份存量文档
|
|
1846
|
+
*
|
|
1847
|
+
* @param input - 命令入参
|
|
1848
|
+
* @returns 单文件迁移结果
|
|
1849
|
+
*/
|
|
1850
|
+
declare function migrateLegacyFile(input: MigrateLegacyFileInput): MigrateLegacyFileResult;
|
|
1851
|
+
//#endregion
|
|
1543
1852
|
//#region src/numbering/numbering.core.d.ts
|
|
1544
1853
|
/**
|
|
1545
1854
|
* 编号门禁核心(纯函数,零 fs)
|
|
@@ -1718,9 +2027,9 @@ type ScopeScanInput = {
|
|
|
1718
2027
|
*/
|
|
1719
2028
|
allowlist: readonly NumberingAllowlistEntry[];
|
|
1720
2029
|
/**
|
|
1721
|
-
* slug 数字策略('forbid'
|
|
2030
|
+
* slug 数字策略('forbid' 启用判定;'allow' 整域放行跳过判定)
|
|
1722
2031
|
*/
|
|
1723
|
-
slugDigitPolicy?: 'forbid';
|
|
2032
|
+
slugDigitPolicy?: 'forbid' | 'allow';
|
|
1724
2033
|
/**
|
|
1725
2034
|
* slug 数字白名单 glob(仓库相对路径命中豁免)
|
|
1726
2035
|
*/
|
|
@@ -2065,13 +2374,14 @@ declare function renderCriteriaBlockExample(): string;
|
|
|
2065
2374
|
/**
|
|
2066
2375
|
* 渲染注册表 README 格式存根(init 命令落盘)
|
|
2067
2376
|
*
|
|
2068
|
-
*
|
|
2377
|
+
* 一页式格式速览:建档入口、状态行五态、正文四段;完整规范指向格式真源指南
|
|
2378
|
+
* (采用仓不携带指南文件时回退机器真源提示,不落死链)。
|
|
2069
2379
|
*
|
|
2070
2380
|
* @param scopeTitle - scope 人类可读名
|
|
2071
|
-
* @param guideRelPath -
|
|
2381
|
+
* @param guideRelPath - 格式指南相对本注册表目录的路径;指南不在采用仓时为 null
|
|
2072
2382
|
* @returns README 存根全文
|
|
2073
2383
|
*/
|
|
2074
|
-
declare function renderRegistryReadmeStub(scopeTitle: string, guideRelPath: string): string;
|
|
2384
|
+
declare function renderRegistryReadmeStub(scopeTitle: string, guideRelPath: string | null): string;
|
|
2075
2385
|
/**
|
|
2076
2386
|
* 模板字段说明条目(template --format json 载荷)
|
|
2077
2387
|
*/
|
|
@@ -2120,4 +2430,4 @@ type TriageClassification = {
|
|
|
2120
2430
|
*/
|
|
2121
2431
|
declare function classifyIssue(record: IssueDocRecord): TriageClassification;
|
|
2122
2432
|
//#endregion
|
|
2123
|
-
export { ADJUDICATION_KEYWORD, ASCII_KEBAB_SLUG_PATTERN, AuditCoverageInput, BLOCKING_LINE_KEY, CANONICAL_STATUS_LABELS, CORE_LINT_RULES, CRITERIA_CHANNEL_PATTERN, CRITERIA_FENCE_CLOSE_PATTERN, CRITERIA_FENCE_OPEN_PATTERN, CloseBatchResult, CloseCaseResult, CloseGateResult, Criterion, CriterionCertificate, CriterionRunResult, DISPOSITION_PLACEHOLDER_PATTERN, DISPOSITION_PLACEHOLDER_WINDOW_LINES, DISPOSITION_TITLE_KEYWORD, DocRefCheckResult, DocRefViolation, DocsBaselineInput, DocsBaselineResult, DocsCheckInput, DocsFixInput, DocsFixResult, EVIDENCE_ANCHOR_MARKERS, EvidenceAnchor, EvidenceAnchorKind, EvidenceCloseInput, EvidenceReadResult, FreezeIssueInput, FreezeResult, GUIDE_FIXTURE_END_MARK, GUIDE_FIXTURE_START_MARK, GreenFlipInput, GreenFlipResult, HISTORY_LINE_KEY, HealthReport, ISSUES_KEY_RULE, ISSUE_FILE_FORMAT_GUIDE_RELATIVE, ISSUE_REF_TOKEN_PATTERN, IssueDocRecord, IssueRefToken, IssueStatusKind, IssueTemplatePriority, IssueTemplateRef, IssueTemplateValues, LintResult, LintRule, LintRuleContext, LintViolation, META_LINE_PREFIX_SOURCE_TEMPLATE, MiniGlobError, NextNumberInput, NextNumberResult, NormalizeHeaderFileInput, NormalizeHeaderResult, NormalizeOutcome, NormalizeResult, NumberingAllowlistEntry, NumberingAuditCommandInput, NumberingAuditFinding, NumberingAuditFindingKind, NumberingAuditResult, NumberingCheckCommandInput, NumberingCheckResult, NumberingFinding, NumberingFindingKind, NumberingKeyRule, NumberingNextCommandInput, NumberingNextResult, PENDING_REASON_PATTERN, ParsedCriteriaBlock, ParsedCriterion, PromptEntry, PromptsOptions, REGISTRY_FILE_PATTERN, RegistryFileNameParts, RerunCloseInput, RunCriterionInput, RunHealthInput, RunLintInput, RunLockHandle, RunTriageInput, RunTriageResult, STATUS_LINE_LOCATE_PATTERN, STATUS_LINE_PREFIX_SOURCE, STATUS_LINE_SCAN_LINES, ScopeScanInput, TEMPLATE_FIELDS, TemplateFieldDoc, TriageCategory, TriageClassification, TriageItem, TriageLedgerFile, UnfreezeIssueInput, WalkOptions, WriteLintBaselineInput, WriteLintBaselineResult, acquireRunLock, applyGreenFlip, auditCoverage, buildMetaLineLocatePattern, certificatePath, classifyIssue, classifyStatusLine, compileMiniGlob, computeCriterionFingerprint, computeNextNumber, deriveEntriesFromViolations, deriveWalkPrefixes, evidenceCloseFlow, extractFileKey, extractIssueRefTokens, extractSlugSegment, findCertificate, findPendingWord, freezeIssue, keyLeadingNumber, listPrompts, loadIssueFileFormatGuide, locateDispositionText, locateIssueFileFormatGuide, matchMiniGlob, normalizeHeader, normalizeHeaderFile, parseCriteriaBlock, parseIssueDoc, parseRegistryFileName, readEvidence, readEvidenceAnchors, readPendingReason, registerLintRulePack, renderCriteriaBlockExample, renderEvidenceCloseBlock, renderIssueTemplate, renderIssueTemplateSkeleton, renderRegistryReadmeStub, renderRerunEvidenceBlock, rerunCloseFlow, resolveCloseGates, runCriterionViaVault, runDocsCheck, runDocsFix, runHealth, runLint, runNumberingAudit, runNumberingCheck, runNumberingNext, runTriage, runWriteDocsBaseline, runWriteLintBaseline, scanOrphanSidecars, scanRegistryDir, scanScopeForFindings, showPrompt, sliceGuideFixtureSample, unfreezeIssue, walkFilesUnderPrefixes, walkFilesUnderRoots };
|
|
2433
|
+
export { ADJUDICATION_KEYWORD, ASCII_KEBAB_SLUG_PATTERN, AuditCoverageInput, BLOCKING_LINE_KEY, CANONICAL_STATUS_LABELS, CORE_LINT_RULES, CRITERIA_CHANNEL_PATTERN, CRITERIA_FENCE_CLOSE_PATTERN, CRITERIA_FENCE_OPEN_PATTERN, CloseBatchResult, CloseCaseResult, CloseGateResult, Criterion, CriterionCertificate, CriterionRunResult, DISPOSITION_CANDIDATES, DISPOSITION_PLACEHOLDER_PATTERN, DISPOSITION_PLACEHOLDER_WINDOW_LINES, DISPOSITION_TITLE_KEYWORD, DocRefCheckResult, DocRefViolation, DocsBaselineInput, DocsBaselineResult, DocsCheckInput, DocsFixInput, DocsFixResult, EVIDENCE_ANCHOR_MARKERS, EvidenceAnchor, EvidenceAnchorKind, EvidenceCloseInput, EvidenceReadResult, FreezeIssueInput, FreezeResult, GUIDE_FIXTURE_END_MARK, GUIDE_FIXTURE_START_MARK, GreenFlipInput, GreenFlipResult, HISTORY_LINE_KEY, HealthReport, ISSUES_KEY_RULE, ISSUE_FILE_FORMAT_GUIDE_RELATIVE, ISSUE_REF_TOKEN_PATTERN, IssueDocRecord, IssueRefToken, IssueStatusKind, IssueTemplatePriority, IssueTemplateRef, IssueTemplateValues, LEGACY_STATUS_VOCABULARY, LintResult, LintRule, LintRuleContext, LintViolation, META_LINE_PREFIX_SOURCE_TEMPLATE, MigrateCoreOptions, MigrateCoreResult, MigrateLegacyFileInput, MigrateLegacyFileResult, MigrationTransformation, MiniGlobError, NextNumberInput, NextNumberResult, NormalizeHeaderFileInput, NormalizeHeaderOptions, NormalizeHeaderResult, NormalizeOutcome, NormalizeResult, NumberingAllowlistEntry, NumberingAuditCommandInput, NumberingAuditFinding, NumberingAuditFindingKind, NumberingAuditResult, NumberingCheckCommandInput, NumberingCheckResult, NumberingFinding, NumberingFindingKind, NumberingKeyRule, NumberingNextCommandInput, NumberingNextResult, PENDING_REASON_PATTERN, ParsedCriteriaBlock, ParsedCriterion, ParsedHeader, PromptEntry, PromptsOptions, REGISTRY_FILE_PATTERN, RegistryFileNameParts, RerunCloseInput, RunCriterionInput, RunHealthInput, RunLintInput, RunLockHandle, RunTriageInput, RunTriageResult, STATUS_LINE_LOCATE_PATTERN, STATUS_LINE_PREFIX_SOURCE, STATUS_LINE_SCAN_LINES, ScopeScanInput, TEMPLATE_FIELDS, TemplateFieldDoc, TriageCategory, TriageClassification, TriageItem, TriageLedgerFile, UnfreezeIssueInput, WalkOptions, WriteLintBaselineInput, WriteLintBaselineResult, acquireRunLock, applyGreenFlip, auditCoverage, buildMetaLineLocatePattern, canonicalizeH1, canonicalizeStatusValue, certificatePath, classifyIssue, classifyStatusLine, cleanValue, compileMiniGlob, computeCriterionFingerprint, computeNextNumber, deriveEntriesFromViolations, deriveWalkPrefixes, evidenceCloseFlow, extractFileKey, extractIssueRefTokens, extractSlugSegment, findCertificate, findPendingWord, freezeIssue, keyLeadingNumber, listPrompts, loadIssueFileFormatGuide, locateDispositionText, locateIssueFileFormatGuide, mapPriorityValue, matchMiniGlob, migrateLegacyCore, migrateLegacyFile, normalizeHeader, normalizeHeaderFile, parseCriteriaBlock, parseHeaderDialect, parseIssueDoc, parseRegistryFileName, readEvidence, readEvidenceAnchors, readPendingReason, registerLintRulePack, renderCriteriaBlockExample, renderEvidenceCloseBlock, renderIssueTemplate, renderIssueTemplateSkeleton, renderRegistryReadmeStub, renderRerunEvidenceBlock, rerunCloseFlow, resolveCloseGates, runCriterionViaVault, runDocsCheck, runDocsFix, runHealth, runLint, runNumberingAudit, runNumberingCheck, runNumberingNext, runTriage, runWriteDocsBaseline, runWriteLintBaseline, scanOrphanSidecars, scanRegistryDir, scanScopeForFindings, showPrompt, sliceGuideFixtureSample, unfreezeIssue, walkFilesUnderPrefixes, walkFilesUnderRoots };
|