@ontrails/regrade 1.0.0-beta.45 → 1.0.0-beta.46
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 +17 -0
- package/package.json +6 -6
- package/src/downstream/export-restructure.ts +2 -2
- package/src/downstream/file-renames.ts +115 -28
- package/src/downstream/report.ts +522 -51
- package/src/downstream/vocabulary.ts +570 -77
- package/src/history-receipt.ts +828 -0
- package/src/index.ts +47 -0
package/src/index.ts
CHANGED
|
@@ -5,12 +5,15 @@ export {
|
|
|
5
5
|
} from './literal-transform.js';
|
|
6
6
|
export {
|
|
7
7
|
buildRegradeReport,
|
|
8
|
+
applyPreparedRegradeRun,
|
|
8
9
|
createTermRewriteClass,
|
|
9
10
|
createWardenTermRewriteClass,
|
|
10
11
|
loadWardenTermRewriteClasses,
|
|
12
|
+
prepareRegradeRun,
|
|
11
13
|
regradeReportOutput,
|
|
12
14
|
runRegrade,
|
|
13
15
|
selectRegradeClasses,
|
|
16
|
+
validatePreparedRegradeRun,
|
|
14
17
|
wardenTermRewriteClasses,
|
|
15
18
|
} from './downstream/report.js';
|
|
16
19
|
export {
|
|
@@ -32,6 +35,8 @@ export {
|
|
|
32
35
|
VOCABULARY_TRANSITION_RECORD_SCHEMA_VERSION,
|
|
33
36
|
buildVocabularyTransitionRecord,
|
|
34
37
|
deriveVocabularyFormProposals,
|
|
38
|
+
applyPreparedVocabularyRegradeRun,
|
|
39
|
+
prepareVocabularyRegradeRun,
|
|
35
40
|
readVocabularyTransitionRecord,
|
|
36
41
|
runVocabularyRegrade,
|
|
37
42
|
transitionRecordReportWithSummary,
|
|
@@ -51,6 +56,8 @@ export {
|
|
|
51
56
|
} from './downstream/vocabulary-registry.js';
|
|
52
57
|
export type {
|
|
53
58
|
RegradeApplySummary,
|
|
59
|
+
PreparedRegradeRun,
|
|
60
|
+
PreparedRegradeRunIdentity,
|
|
54
61
|
RegradeClass,
|
|
55
62
|
RegradeClassContext,
|
|
56
63
|
RegradeClassResult,
|
|
@@ -71,10 +78,12 @@ export type {
|
|
|
71
78
|
} from './downstream/scan-summary.js';
|
|
72
79
|
export type {
|
|
73
80
|
VocabularyDisposition,
|
|
81
|
+
PreparedVocabularyRegradeRun,
|
|
74
82
|
VocabularyFileRename,
|
|
75
83
|
VocabularyFileRenameEvidence,
|
|
76
84
|
VocabularyFormProposal,
|
|
77
85
|
VocabularyOccurrence,
|
|
86
|
+
VocabularyOccurrenceSourceKind,
|
|
78
87
|
VocabularyPreserveInventoryEntry,
|
|
79
88
|
VocabularyPreserveRule,
|
|
80
89
|
VocabularyRegradePlan,
|
|
@@ -102,3 +111,41 @@ export type {
|
|
|
102
111
|
AstRewriteMatch,
|
|
103
112
|
AstRewriteVisitResult,
|
|
104
113
|
} from './downstream/ast-rewrite.js';
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Compact, canonical evidence for an applied Regrade run.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```ts
|
|
120
|
+
* const serialized = serializeRegradeHistoryReceipt(receipt);
|
|
121
|
+
* if (serialized.isErr()) throw serialized.error;
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
export {
|
|
125
|
+
REGRADE_HISTORY_RECEIPT_SCHEMA_VERSION,
|
|
126
|
+
canonicalRegradeJson,
|
|
127
|
+
regradeClassifiedStateHash,
|
|
128
|
+
regradeFormJudgmentSchema,
|
|
129
|
+
regradeHistoryReceiptSchema,
|
|
130
|
+
regradeReceiptContentHash,
|
|
131
|
+
regradeReceiptPlanContentHash,
|
|
132
|
+
regradeReceiptPlanSchema,
|
|
133
|
+
resolveRegradeHistoryReceipt,
|
|
134
|
+
serializeRegradeHistoryReceipt,
|
|
135
|
+
} from './history-receipt.js';
|
|
136
|
+
/**
|
|
137
|
+
* Type the authored and resolved sides of compact Regrade history.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* const receipt: RegradeHistoryReceipt = parsed;
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
export type {
|
|
145
|
+
RegradeFormJudgment,
|
|
146
|
+
RegradeHistoryReceipt,
|
|
147
|
+
RegradeReceiptPlan,
|
|
148
|
+
RegradeReceiptPlanProvenance,
|
|
149
|
+
ResolvedRegradeHistoryReceipt,
|
|
150
|
+
ResolvedRegradeHistoryReceiptRun,
|
|
151
|
+
} from './history-receipt.js';
|