@oneuptime/common 14.1.0 → 14.2.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.
Files changed (249) hide show
  1. package/Models/DatabaseModels/Alert.d.mts +1 -0
  2. package/Models/DatabaseModels/Alert.d.ts +1 -0
  3. package/Models/DatabaseModels/Alert.js +34 -0
  4. package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
  5. package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
  6. package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
  7. package/Models/DatabaseModels/Incident.d.mts +1 -0
  8. package/Models/DatabaseModels/Incident.d.ts +1 -0
  9. package/Models/DatabaseModels/Incident.js +35 -0
  10. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
  11. package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
  12. package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
  13. package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
  14. package/Models/DatabaseModels/Index.js +2 -0
  15. package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
  16. package/Types/AI/AIActionWords.d.mts +3 -1
  17. package/Types/AI/AIActionWords.d.ts +3 -1
  18. package/Types/AI/AIActionWords.js +70 -1
  19. package/Types/AI/AIActionWords.mjs +2 -0
  20. package/Types/AI/AIChatTypes.d.mts +2 -1
  21. package/Types/AI/AIChatTypes.d.ts +2 -1
  22. package/Types/AI/AIReadTableWords.d.mts +192 -0
  23. package/Types/AI/AIReadTableWords.d.ts +192 -0
  24. package/Types/AI/AIReadTableWords.js +368 -0
  25. package/Types/AI/AIReadTableWords.mjs +18 -0
  26. package/Types/AI/AiRunRefusal.d.mts +3 -0
  27. package/Types/AI/AiRunRefusal.d.ts +3 -0
  28. package/Types/AI/AiRunRefusal.js +22 -1
  29. package/Types/AI/ResourceAiAccessPermissions.js +7 -18
  30. package/Types/AuditLog/AuditLogActionLabel.js +19 -9
  31. package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -0
  32. package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -0
  33. package/Types/BaseDatabase/AggregationIntervalUtil.js +123 -16
  34. package/Types/Cloud/CloudResourceHealth.d.mts +30 -1
  35. package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
  36. package/Types/Cloud/CloudResourceHealth.js +405 -13
  37. package/Types/Cloud/CloudResourceHealth.mjs +28 -0
  38. package/Types/DataObservability/DataCheckRefusals.d.mts +32 -0
  39. package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
  40. package/Types/DataObservability/DataCheckRefusals.js +77 -0
  41. package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
  42. package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
  43. package/Types/Date.d.mts +2 -0
  44. package/Types/Date.d.ts +2 -0
  45. package/Types/Date.js +22 -0
  46. package/Types/DateLanguage.d.mts +2 -0
  47. package/Types/DateLanguage.d.ts +2 -0
  48. package/Types/DateLanguage.js +8 -5
  49. package/Types/Email/EmailTemplateType.d.mts +1 -0
  50. package/Types/Email/EmailTemplateType.d.ts +1 -0
  51. package/Types/Email/EmailTemplateType.js +2 -0
  52. package/Types/Exception/EgressGuardException.js +1 -1
  53. package/Types/Exception/ErrorMessageRule.d.mts +1 -0
  54. package/Types/Exception/ErrorMessageRule.d.ts +1 -0
  55. package/Types/Exception/ErrorMessageRule.js +67 -13
  56. package/Types/Exception/ErrorMessageRule.mjs +1 -0
  57. package/Types/Exception/ExceptionMessages.d.mts +2 -0
  58. package/Types/Exception/ExceptionMessages.d.ts +2 -0
  59. package/Types/Exception/ExceptionMessages.js +2 -0
  60. package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
  61. package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
  62. package/Types/Incident/PostmortemActionItemStatus.js +74 -0
  63. package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
  64. package/Types/JSONFunctions.js +10 -3
  65. package/Types/Link.d.mts +1 -0
  66. package/Types/Link.d.ts +1 -0
  67. package/Types/MeaningKeys.d.mts +4 -0
  68. package/Types/MeaningKeys.d.ts +4 -0
  69. package/Types/MeaningKeys.js +74 -0
  70. package/Types/MeaningKeys.mjs +5 -0
  71. package/Types/Monitor/WhoIsTold.d.mts +3 -0
  72. package/Types/Monitor/WhoIsTold.d.ts +3 -0
  73. package/Types/Monitor/WhoIsTold.js +63 -13
  74. package/Types/NoBreakSpaces.d.mts +16 -0
  75. package/Types/NoBreakSpaces.d.ts +16 -0
  76. package/Types/NoBreakSpaces.js +419 -0
  77. package/Types/NoBreakSpaces.mjs +9 -0
  78. package/Types/NotificationRule/PagingLadder.d.mts +12 -0
  79. package/Types/NotificationRule/PagingLadder.d.ts +12 -0
  80. package/Types/NotificationRule/PagingLadder.js +159 -11
  81. package/Types/NotificationRule/PagingLadder.mjs +3 -0
  82. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
  83. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
  84. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
  85. package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
  86. package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
  87. package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
  88. package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
  89. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
  90. package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
  91. package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
  92. package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +1 -0
  93. package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +2 -0
  94. package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
  95. package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
  96. package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
  97. package/Types/OpenStack/OpenStackCapacity.js +12 -5
  98. package/Types/Permission.d.mts +4 -0
  99. package/Types/Permission.d.ts +4 -0
  100. package/Types/Permission.js +64 -8
  101. package/Types/Product/ProductUsage.js +2 -1
  102. package/Types/Product/ProjectProductsAnswer.js +2 -1
  103. package/Types/ResourceAiAgent/AiResourceType.d.mts +1 -0
  104. package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
  105. package/Types/ResourceAiAgent/AiResourceType.js +12 -0
  106. package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
  107. package/Types/Rum/ProductAnalyticsEvents.js +13 -1
  108. package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
  109. package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
  110. package/Types/Rum/SessionReplayCustomEvents.js +12 -0
  111. package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
  112. package/Types/SetupHealth/SetupHealth.d.mts +1 -0
  113. package/Types/SetupHealth/SetupHealth.d.ts +1 -0
  114. package/Types/SetupHealth/SetupHealth.js +13 -5
  115. package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
  116. package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
  117. package/Types/StatusPage/DefaultStatusNames.js +74 -28
  118. package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
  119. package/Types/StatusPage/StateChangeNoteMessage.d.mts +3 -2
  120. package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
  121. package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
  122. package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
  123. package/Types/Translator.d.mts +1 -0
  124. package/Types/Translator.d.ts +1 -0
  125. package/Types/Translator.js +100 -19
  126. package/Types/Translator.mjs +1 -0
  127. package/Types/UserSession/SessionLength.d.mts +33 -0
  128. package/Types/UserSession/SessionLength.d.ts +33 -0
  129. package/Types/UserSession/SessionLength.js +134 -5
  130. package/Types/UserSession/SessionLength.mjs +5 -0
  131. package/Types/Workflow/WorkflowStatus.js +21 -10
  132. package/Utils/AI/InvestigationReport.js +2 -2
  133. package/Utils/API.d.mts +0 -11
  134. package/Utils/API.d.ts +0 -11
  135. package/Utils/API.js +0 -432
  136. package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
  137. package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
  138. package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
  139. package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
  140. package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
  141. package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
  142. package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
  143. package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
  144. package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
  145. package/Utils/DefaultRecordNames.d.mts +6 -0
  146. package/Utils/DefaultRecordNames.d.ts +6 -0
  147. package/Utils/DefaultRecordNames.js +122 -0
  148. package/Utils/DefaultRecordNames.mjs +6 -0
  149. package/Utils/Grok/Grok.js +7 -4
  150. package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
  151. package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
  152. package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
  153. package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
  154. package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
  155. package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
  156. package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
  157. package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
  158. package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
  159. package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
  160. package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
  161. package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
  162. package/Utils/LookupTable.d.mts +3 -0
  163. package/Utils/LookupTable.d.ts +3 -0
  164. package/Utils/LookupTable.js +61 -0
  165. package/Utils/LookupTable.mjs +3 -0
  166. package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
  167. package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
  168. package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
  169. package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
  170. package/Utils/Markdown/OverLongText.js +296 -2
  171. package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
  172. package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
  173. package/Utils/Markdown/SlowMarkdown.js +354 -4
  174. package/Utils/Markdown/SlowMarkdown.mjs +1 -0
  175. package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
  176. package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
  177. package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
  178. package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
  179. package/Utils/Metrics/MetricSeriesScope.js +5 -1
  180. package/Utils/Monitor/MonitorRootCauseWording.d.mts +3 -0
  181. package/Utils/Monitor/MonitorRootCauseWording.d.ts +3 -0
  182. package/Utils/Monitor/MonitorRootCauseWording.js +100 -11
  183. package/Utils/Monitor/ProbeAgreementRule.d.mts +10 -0
  184. package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
  185. package/Utils/Monitor/ProbeAgreementRule.js +58 -0
  186. package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
  187. package/Utils/Monitor/ProbeFailureReading.d.mts +4 -0
  188. package/Utils/Monitor/ProbeFailureReading.d.ts +4 -0
  189. package/Utils/Monitor/ProbeFailureReading.js +30 -1
  190. package/Utils/Monitor/ProbeFailureReading.mjs +1 -0
  191. package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
  192. package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
  193. package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
  194. package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -0
  195. package/Utils/PromQL/PromQLEngine.js +18 -9
  196. package/Utils/PromQL/PromQLFunctionEvaluators.js +114 -58
  197. package/Utils/PromQL/PromQLLabelOrder.d.mts +8 -0
  198. package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
  199. package/Utils/PromQL/PromQLLabelOrder.js +212 -0
  200. package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
  201. package/Utils/PromQL/PromQLLabels.js +4 -3
  202. package/Utils/PromQL/PromQLMetricNames.js +8 -2
  203. package/Utils/PromQL/PromQLParser.js +11 -6
  204. package/Utils/PromQL/PromQLRegex.d.mts +11 -0
  205. package/Utils/PromQL/PromQLRegex.d.ts +11 -0
  206. package/Utils/PromQL/PromQLRegex.js +990 -50
  207. package/Utils/PromQL/PromQLRegex.mjs +3 -0
  208. package/Utils/PromQL/PrometheusResponse.js +3 -1
  209. package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
  210. package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
  211. package/Utils/PromQL/RE2CharacterClass.js +532 -0
  212. package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
  213. package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
  214. package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
  215. package/Utils/RequestFailedDetailsUtil.js +452 -0
  216. package/Utils/RequestFailedDetailsUtil.mjs +2 -0
  217. package/Utils/Rum/UrlScrubber.d.mts +1 -1
  218. package/Utils/Rum/UrlScrubber.d.ts +1 -1
  219. package/Utils/Rum/UrlScrubber.js +10 -4
  220. package/Utils/Rum/UserFlow.js +22 -4
  221. package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
  222. package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
  223. package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
  224. package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -0
  225. package/Utils/Sms/OnCallPageSms.d.mts +2 -0
  226. package/Utils/Sms/OnCallPageSms.d.ts +2 -0
  227. package/Utils/Sms/OnCallPageSms.js +3 -1
  228. package/Utils/StateListType.d.mts +11 -0
  229. package/Utils/StateListType.d.ts +11 -0
  230. package/Utils/StateListType.js +21 -0
  231. package/Utils/StateListType.mjs +2 -0
  232. package/Utils/StateOrder.d.mts +8 -11
  233. package/Utils/StateOrder.d.ts +8 -11
  234. package/Utils/StateOrder.js +49 -84
  235. package/Utils/StateOrder.mjs +2 -0
  236. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
  237. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
  238. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
  239. package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
  240. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
  241. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
  242. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
  243. package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
  244. package/Utils/Syslog/SyslogMessageParser.js +16 -6
  245. package/Utils/Telemetry/HeartbeatAvailability.js +16 -21
  246. package/Utils/ValueFormatter.d.mts +1 -0
  247. package/Utils/ValueFormatter.d.ts +1 -0
  248. package/Utils/ValueFormatter.js +258 -18
  249. package/package.json +1 -1
@@ -0,0 +1,544 @@
1
+ "use strict";
2
+ /*
3
+ * THE ACTION ITEMS A POSTMORTEM'S NOTE LISTS (issue #6801).
4
+ *
5
+ * A postmortem's action items used to be words in its note and nothing
6
+ * else: OneUptime AI's draft and every postmortem template end with an
7
+ * "Action Items" section ("How We Prevent It" in the brief one), written as
8
+ * a checklist, a list or a table with Owner and Due Date columns, and
9
+ * nothing said which of them were done. Action items are records now
10
+ * (IncidentPostmortemActionItem), and this reads the ones a note lists, so
11
+ * the postmortem offers to track them in one click instead of having them
12
+ * typed in again.
13
+ *
14
+ * What counts as an action item:
15
+ *
16
+ * - the items of a section whose heading names action items, follow-ups,
17
+ * next steps or corrective and preventive actions, in English or in
18
+ * another of the Dashboard's languages (a team can have OneUptime AI
19
+ * write its postmortems in its own). A heading is a Markdown heading
20
+ * ("## Action Items") or a line in bold on its own ("**Action
21
+ * Items:**"). A section runs to the next heading of the same level or
22
+ * above, so its own sub-headings ("### This week") stay in it;
23
+ * - in that section, each item of its outermost list - a nested item is a
24
+ * detail of the one above it - and each row of its table, the action
25
+ * read from the column named for it (Action, Item, Task, ...) or else
26
+ * the first one;
27
+ * - a checked box ("- [x]") or a Status column that says done is an item
28
+ * already done.
29
+ *
30
+ * What does not: a heading that only says prevention ("## Prevention" in
31
+ * the detailed template holds what went well and what went wrong), a
32
+ * template's placeholder left as it was ("[Action item 1]"), an empty or
33
+ * "none" item, and anything in a code block.
34
+ *
35
+ * Pure, no I/O and no React: the Dashboard reads the note it shows with
36
+ * it, the server could read a stored one the same way, and the tests pin
37
+ * it on the templates' own text.
38
+ */
39
+ var __importDefault = (this && this.__importDefault) || function (mod) {
40
+ return (mod && mod.__esModule) ? mod : { "default": mod };
41
+ };
42
+ Object.defineProperty(exports, "__esModule", { value: true });
43
+ exports.ACTION_ITEM_HEADING_SUBSTRINGS = exports.ACTION_ITEM_WHOLE_HEADINGS = exports.ACTION_ITEM_HEADING_WORDS = exports.MAX_NOTE_ACTION_ITEMS = exports.MAX_ACTION_ITEM_TITLE_LENGTH = void 0;
44
+ const moment_timezone_1 = __importDefault(require("moment-timezone"));
45
+ // The longest action item title kept: the title column's length.
46
+ exports.MAX_ACTION_ITEM_TITLE_LENGTH = 500;
47
+ // The most items one note is read for: a section longer than this is not a list of actions.
48
+ exports.MAX_NOTE_ACTION_ITEMS = 50;
49
+ /*
50
+ * Headings that name a postmortem's action items, by language. Matched as
51
+ * whole words, after the heading is lowercased and its punctuation dropped
52
+ * (so "Follow-up Actions:" reads as "follow up actions"), anywhere in the
53
+ * heading: "Open Action Items", "Action Items and Owners". Only words that
54
+ * mean actions still to take: "Actions" alone, or "Maßnahmen", is as often
55
+ * what was done during the incident.
56
+ */
57
+ exports.ACTION_ITEM_HEADING_WORDS = [
58
+ // English: what OneUptime AI's draft and the templates write, and common variants.
59
+ "action items",
60
+ "action item",
61
+ "follow ups",
62
+ "follow up",
63
+ "followups",
64
+ "followup",
65
+ "next steps",
66
+ "corrective actions",
67
+ "preventive actions",
68
+ "preventative actions",
69
+ "prevention actions",
70
+ "how we prevent it",
71
+ "remediation items",
72
+ "to dos",
73
+ "todos",
74
+ "todo",
75
+ // German
76
+ "aktionspunkte",
77
+ "maßnahmenplan",
78
+ "nächste schritte",
79
+ "folgemaßnahmen",
80
+ "korrekturmaßnahmen",
81
+ // French
82
+ "points d action",
83
+ "plan d action",
84
+ "actions correctives",
85
+ "actions préventives",
86
+ "prochaines étapes",
87
+ // Spanish
88
+ "elementos de acción",
89
+ "acciones correctivas",
90
+ "acciones preventivas",
91
+ "próximos pasos",
92
+ // Italian
93
+ "azioni correttive",
94
+ "azioni preventive",
95
+ "prossimi passi",
96
+ // Portuguese
97
+ "itens de ação",
98
+ "ações corretivas",
99
+ "ações preventivas",
100
+ "próximos passos",
101
+ // Dutch
102
+ "actiepunten",
103
+ "vervolgacties",
104
+ "vervolgstappen",
105
+ "volgende stappen",
106
+ // Danish
107
+ "handlingspunkter",
108
+ "opfølgningspunkter",
109
+ "næste skridt",
110
+ // Norwegian
111
+ "tiltakspunkter",
112
+ "oppfølgingspunkter",
113
+ "neste steg",
114
+ // Swedish
115
+ "åtgärdspunkter",
116
+ "uppföljningspunkter",
117
+ "nästa steg",
118
+ // Russian
119
+ "план действий",
120
+ "корректирующие действия",
121
+ "превентивные меры",
122
+ "следующие шаги",
123
+ // Hindi
124
+ "कार्य आइटम",
125
+ "कार्रवाई आइटम",
126
+ "सुधारात्मक कार्रवाई",
127
+ "अगले कदम",
128
+ // Persian
129
+ "موارد اقدام",
130
+ "اقدامات اصلاحی",
131
+ "اقدامات پیشگیرانه",
132
+ "گام های بعدی",
133
+ // Arabic
134
+ "بنود العمل",
135
+ "الإجراءات التصحيحية",
136
+ "الإجراءات الوقائية",
137
+ "الخطوات التالية",
138
+ ];
139
+ /*
140
+ * Headings that name action items only when they are the whole heading:
141
+ * "## To Do" lists what is still to do, "## How to do a rollback" does not.
142
+ */
143
+ exports.ACTION_ITEM_WHOLE_HEADINGS = [
144
+ "to do",
145
+ "tasks",
146
+ ];
147
+ /*
148
+ * Headings in languages written without spaces between words, matched
149
+ * anywhere in the heading: Japanese, Korean and Chinese.
150
+ */
151
+ exports.ACTION_ITEM_HEADING_SUBSTRINGS = [
152
+ // Japanese
153
+ "アクションアイテム",
154
+ "対応事項",
155
+ "再発防止策",
156
+ "今後の対応",
157
+ // Korean
158
+ "조치 사항",
159
+ "조치사항",
160
+ "액션 아이템",
161
+ "후속 조치",
162
+ "재발 방지",
163
+ // Chinese (simplified, then traditional)
164
+ "行动项",
165
+ "后续行动",
166
+ "改进措施",
167
+ "待办事项",
168
+ "行動項目",
169
+ "後續行動",
170
+ "改善措施",
171
+ "待辦事項",
172
+ ];
173
+ // Table columns, by what they hold: lowercased header words.
174
+ const ACTION_COLUMN_WORDS = [
175
+ "action",
176
+ "action item",
177
+ "item",
178
+ "task",
179
+ "what",
180
+ "description",
181
+ "title",
182
+ "follow up",
183
+ ];
184
+ const OWNER_COLUMN_WORDS = [
185
+ "owner",
186
+ "owners",
187
+ "assignee",
188
+ "assigned to",
189
+ "who",
190
+ "responsible",
191
+ ];
192
+ const DUE_COLUMN_WORDS = [
193
+ "due",
194
+ "due date",
195
+ "deadline",
196
+ "by when",
197
+ "target date",
198
+ ];
199
+ const STATUS_COLUMN_WORDS = ["status", "state", "done"];
200
+ // A Status cell that says the item is done.
201
+ const DONE_STATUS_WORDS = [
202
+ "done",
203
+ "complete",
204
+ "completed",
205
+ "closed",
206
+ "fixed",
207
+ "resolved",
208
+ "yes",
209
+ "x",
210
+ "✅",
211
+ "✔",
212
+ "✓",
213
+ ];
214
+ // An item that says there is nothing to do.
215
+ const EMPTY_ITEM_WORDS = [
216
+ "none",
217
+ "n a",
218
+ "na",
219
+ "tbd",
220
+ "nothing",
221
+ "no action items",
222
+ "not available in the incident record",
223
+ "no data available",
224
+ ];
225
+ const ATX_HEADING_REGEX = /^ {0,3}(#{1,6})(?:[ \t]+(.*?))?(?:[ \t]+#+)?[ \t]*$/;
226
+ const BOLD_HEADING_REGEX = /^ {0,3}(?:\*\*|__)(.+?)(?:\*\*|__)[ \t]*:?[ \t]*$/;
227
+ const FENCE_REGEX = /^ {0,3}(```|~~~)/;
228
+ const LIST_ITEM_REGEX = /^([ \t]*)(?:[-*+]|\d{1,9}[.)])[ \t]+(?:\[([ xX])\][ \t]+)?(.*)$/;
229
+ const TABLE_ROW_REGEX = /^[ \t]*\|.*\|[ \t]*$/;
230
+ const TABLE_SEPARATOR_REGEX = /^[ \t]*\|?(?:[ \t]*:?-{1,}:?[ \t]*\|)+[ \t]*:?-*:?[ \t]*\|?[ \t]*$/;
231
+ const ISO_DATE_REGEX = /\b(\d{4})-(\d{2})-(\d{2})\b/;
232
+ /*
233
+ * A digit as a Persian or an Arabic note may write one: "۲۰۲۶-۱۱-۲۰" is the
234
+ * same day as 2026-11-20 (toLatinDigits).
235
+ */
236
+ const NON_LATIN_DIGIT_REGEX = /[٠-٩۰-۹]/g;
237
+ const ARABIC_INDIC_ZERO = 0x0660;
238
+ const PERSIAN_ZERO = 0x06f0;
239
+ const INLINE_OWNER_REGEX = /[([,;\s-]+(?:owner|assignee|assigned to)[ \t]*[:=][ \t]*([^,;)\]]+)[)\]]?/i;
240
+ const INLINE_DUE_REGEX = /[([,;\s-]+(?:due(?: date)?|deadline|by)[ \t]*[:=]?[ \t]*([\d٠-٩۰-۹]{4}-[\d٠-٩۰-۹]{2}-[\d٠-٩۰-۹]{2})[)\]]?/i;
241
+ // A template's placeholder left as it was: the whole item in square brackets.
242
+ const PLACEHOLDER_REGEX = /^\[[^\]]*\]$/;
243
+ class PostmortemNoteActionItems {
244
+ /*
245
+ * The action items a note lists, in the order it lists them, at most
246
+ * MAX_NOTE_ACTION_ITEMS. An empty note, or one with no action items
247
+ * section, lists none.
248
+ */
249
+ static read(note) {
250
+ if (!note || !note.trim()) {
251
+ return [];
252
+ }
253
+ const lines = note.replace(/\r\n?/g, "\n").split("\n");
254
+ const items = [];
255
+ // The heading level of the action items section the line is in, if any.
256
+ let sectionLevel = null;
257
+ let isInFence = false;
258
+ let fenceMarker = "";
259
+ // The indent of the section's outermost list, once it has one.
260
+ let listIndent = null;
261
+ // The lines of the table being read, header first.
262
+ let tableLines = [];
263
+ const flushTable = () => {
264
+ if (tableLines.length) {
265
+ items.push(...PostmortemNoteActionItems.readTable(tableLines));
266
+ tableLines = [];
267
+ }
268
+ };
269
+ for (const line of lines) {
270
+ const fence = line.match(FENCE_REGEX);
271
+ if (fence) {
272
+ if (!isInFence) {
273
+ flushTable();
274
+ isInFence = true;
275
+ fenceMarker = fence[1];
276
+ }
277
+ else if (line.trim().startsWith(fenceMarker)) {
278
+ isInFence = false;
279
+ }
280
+ continue;
281
+ }
282
+ if (isInFence) {
283
+ continue;
284
+ }
285
+ const heading = PostmortemNoteActionItems.readHeading(line);
286
+ if (heading) {
287
+ flushTable();
288
+ if (sectionLevel !== null && heading.level > sectionLevel) {
289
+ // A sub-heading of the action items section keeps the section open.
290
+ listIndent = null;
291
+ continue;
292
+ }
293
+ sectionLevel = PostmortemNoteActionItems.isActionItemHeading(heading.text)
294
+ ? heading.level
295
+ : null;
296
+ listIndent = null;
297
+ continue;
298
+ }
299
+ if (sectionLevel === null) {
300
+ continue;
301
+ }
302
+ if (TABLE_ROW_REGEX.test(line)) {
303
+ tableLines.push(line);
304
+ continue;
305
+ }
306
+ flushTable();
307
+ const listItem = line.match(LIST_ITEM_REGEX);
308
+ if (!listItem) {
309
+ continue;
310
+ }
311
+ const indent = listItem[1].replace(/\t/g, " ").length;
312
+ if (listIndent === null || indent < listIndent) {
313
+ listIndent = indent;
314
+ }
315
+ if (indent > listIndent) {
316
+ // A nested item: a detail of the item above it.
317
+ continue;
318
+ }
319
+ const item = PostmortemNoteActionItems.toItem({
320
+ text: listItem[3] || "",
321
+ isChecked: (listItem[2] || "").toLowerCase() === "x",
322
+ });
323
+ if (item) {
324
+ items.push(item);
325
+ }
326
+ }
327
+ flushTable();
328
+ return items.slice(0, exports.MAX_NOTE_ACTION_ITEMS);
329
+ }
330
+ /*
331
+ * The items a note lists that are not tracked yet: none whose title is,
332
+ * but for case, spaces and punctuation, the title of one of the
333
+ * incident's action items. Duplicates in the note count once.
334
+ */
335
+ static getUntracked(data) {
336
+ const seen = new Set(data.trackedTitles.map((title) => {
337
+ return PostmortemNoteActionItems.toComparableTitle(title);
338
+ }));
339
+ const untracked = [];
340
+ for (const item of data.items) {
341
+ const comparable = PostmortemNoteActionItems.toComparableTitle(item.title);
342
+ if (!comparable || seen.has(comparable)) {
343
+ continue;
344
+ }
345
+ seen.add(comparable);
346
+ untracked.push(item);
347
+ }
348
+ return untracked;
349
+ }
350
+ // A title as it is compared: lowercased, its punctuation and extra spaces dropped.
351
+ static toComparableTitle(title) {
352
+ return PostmortemNoteActionItems.toWords(title);
353
+ }
354
+ // Whether a heading's words name a postmortem's action items.
355
+ static isActionItemHeading(headingText) {
356
+ const words = PostmortemNoteActionItems.toWords(headingText);
357
+ if (!words) {
358
+ return false;
359
+ }
360
+ if (exports.ACTION_ITEM_WHOLE_HEADINGS.includes(words)) {
361
+ return true;
362
+ }
363
+ const padded = ` ${words} `;
364
+ for (const phrase of exports.ACTION_ITEM_HEADING_WORDS) {
365
+ if (padded.includes(` ${PostmortemNoteActionItems.toWords(phrase)} `)) {
366
+ return true;
367
+ }
368
+ }
369
+ const compact = headingText.normalize("NFC");
370
+ for (const phrase of exports.ACTION_ITEM_HEADING_SUBSTRINGS) {
371
+ if (compact.includes(phrase)) {
372
+ return true;
373
+ }
374
+ }
375
+ return false;
376
+ }
377
+ static readHeading(line) {
378
+ const atx = line.match(ATX_HEADING_REGEX);
379
+ if (atx) {
380
+ return { level: atx[1].length, text: atx[2] || "" };
381
+ }
382
+ const bold = line.match(BOLD_HEADING_REGEX);
383
+ if (bold) {
384
+ return { level: 7, text: bold[1] || "" };
385
+ }
386
+ return null;
387
+ }
388
+ static readTable(lines) {
389
+ // A table is a header row, its separator row, then the rows.
390
+ if (lines.length < 3 || !TABLE_SEPARATOR_REGEX.test(lines[1])) {
391
+ return [];
392
+ }
393
+ const header = PostmortemNoteActionItems.toCells(lines[0]).map((cell) => {
394
+ return PostmortemNoteActionItems.toWords(cell);
395
+ });
396
+ const columnOf = (words) => {
397
+ return header.findIndex((cell) => {
398
+ return words.includes(cell);
399
+ });
400
+ };
401
+ const actionColumn = Math.max(columnOf(ACTION_COLUMN_WORDS), 0);
402
+ const ownerColumn = columnOf(OWNER_COLUMN_WORDS);
403
+ const dueColumn = columnOf(DUE_COLUMN_WORDS);
404
+ const statusColumn = columnOf(STATUS_COLUMN_WORDS);
405
+ const items = [];
406
+ for (const row of lines.slice(2)) {
407
+ const cells = PostmortemNoteActionItems.toCells(row);
408
+ const status = statusColumn >= 0
409
+ ? PostmortemNoteActionItems.toWords(cells[statusColumn] || "") ||
410
+ (cells[statusColumn] || "").trim()
411
+ : "";
412
+ const item = PostmortemNoteActionItems.toItem({
413
+ text: cells[actionColumn] || "",
414
+ isChecked: DONE_STATUS_WORDS.includes(status),
415
+ ownerText: ownerColumn >= 0 ? cells[ownerColumn] : undefined,
416
+ dueText: dueColumn >= 0 ? cells[dueColumn] : undefined,
417
+ });
418
+ if (item) {
419
+ items.push(item);
420
+ }
421
+ }
422
+ return items;
423
+ }
424
+ static toCells(row) {
425
+ let trimmed = row.trim();
426
+ if (trimmed.startsWith("|")) {
427
+ trimmed = trimmed.slice(1);
428
+ }
429
+ if (trimmed.endsWith("|") && !trimmed.endsWith("\\|")) {
430
+ trimmed = trimmed.slice(0, -1);
431
+ }
432
+ return trimmed.split(/(?<!\\)\|/).map((cell) => {
433
+ return cell.replace(/\\\|/g, "|").trim();
434
+ });
435
+ }
436
+ static toItem(data) {
437
+ let title = PostmortemNoteActionItems.toPlainText(data.text);
438
+ let ownerText = PostmortemNoteActionItems.toPlainText(data.ownerText || "");
439
+ let dueText = data.dueText || "";
440
+ // "Increase the pool (Owner: Ana, due 2026-11-20)": the owner and date go to their own fields.
441
+ const inlineOwner = title.match(INLINE_OWNER_REGEX);
442
+ if (inlineOwner && !ownerText) {
443
+ ownerText = inlineOwner[1].trim();
444
+ title = title.replace(inlineOwner[0], "").trim();
445
+ }
446
+ const inlineDue = title.match(INLINE_DUE_REGEX);
447
+ if (inlineDue && !dueText) {
448
+ dueText = inlineDue[1];
449
+ title = title.replace(inlineDue[0], "").trim();
450
+ }
451
+ title = title
452
+ .replace(/[ \t]*\(\s*\)$/, "")
453
+ .replace(/[ \t,;-]+$/, "")
454
+ .trim();
455
+ if (!title ||
456
+ PLACEHOLDER_REGEX.test(title) ||
457
+ EMPTY_ITEM_WORDS.includes(PostmortemNoteActionItems.toWords(title))) {
458
+ return null;
459
+ }
460
+ if (title.length > exports.MAX_ACTION_ITEM_TITLE_LENGTH) {
461
+ title = `${title.slice(0, exports.MAX_ACTION_ITEM_TITLE_LENGTH - 1).trimEnd()}…`;
462
+ }
463
+ const item = {
464
+ title: title,
465
+ isDone: data.isChecked,
466
+ };
467
+ if (ownerText && !PLACEHOLDER_REGEX.test(ownerText)) {
468
+ item.ownerText = ownerText;
469
+ }
470
+ const dueDay = PostmortemNoteActionItems.toDay(dueText);
471
+ if (dueDay) {
472
+ item.dueDay = dueDay;
473
+ }
474
+ return item;
475
+ }
476
+ /*
477
+ * A due day as the Due Date picker stores one: the start of that day in
478
+ * the reader's time zone (an IANA name, "Europe/Berlin"). A zone this
479
+ * build does not know reads as UTC. Null for anything that is not a day.
480
+ */
481
+ static toDueDate(dueDay, timezone) {
482
+ const day = PostmortemNoteActionItems.toDay(dueDay);
483
+ if (!day) {
484
+ return null;
485
+ }
486
+ const zone = moment_timezone_1.default.tz.zone(timezone) ? timezone : "UTC";
487
+ return moment_timezone_1.default.tz(day, "YYYY-MM-DD", true, zone).toDate();
488
+ }
489
+ /*
490
+ * A date written YYYY-MM-DD, as that day, in Persian or Arabic digits too;
491
+ * anything else, 2026-02-30 too, is no day.
492
+ */
493
+ static toDay(text) {
494
+ const match = PostmortemNoteActionItems.toLatinDigits(text).match(ISO_DATE_REGEX);
495
+ if (!match) {
496
+ return null;
497
+ }
498
+ const year = Number(match[1]);
499
+ const month = Number(match[2]);
500
+ const day = Number(match[3]);
501
+ const date = new Date(Date.UTC(year, month - 1, day));
502
+ if (date.getUTCFullYear() !== year ||
503
+ date.getUTCMonth() !== month - 1 ||
504
+ date.getUTCDate() !== day) {
505
+ return null;
506
+ }
507
+ return `${match[1]}-${match[2]}-${match[3]}`;
508
+ }
509
+ // Persian (۰-۹) and Arabic-Indic (٠-٩) digits as the Latin ones.
510
+ static toLatinDigits(text) {
511
+ return text.replace(NON_LATIN_DIGIT_REGEX, (digit) => {
512
+ const code = digit.charCodeAt(0);
513
+ return String(code >= PERSIAN_ZERO ? code - PERSIAN_ZERO : code - ARABIC_INDIC_ZERO);
514
+ });
515
+ }
516
+ /*
517
+ * Markdown's marks taken off: links to their text, emphasis and code to
518
+ * their words. An underscore inside a word stays: "db_pool_wait" is a
519
+ * metric's name, not emphasis.
520
+ */
521
+ static toPlainText(markdown) {
522
+ return markdown
523
+ .replace(/`([^`]*)`/g, "$1")
524
+ .replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1")
525
+ .replace(/\[([^\]]+)\]\([^)]*\)/g, "$1")
526
+ .replace(/<[^>]+>/g, "")
527
+ .replace(/\*\*(.+?)\*\*/g, "$1")
528
+ .replace(/(^|[^\p{L}\p{N}_])__(.+?)__(?![\p{L}\p{N}_])/gu, "$1$2")
529
+ .replace(/\*(\S(?:.*?\S)?)\*/g, "$1")
530
+ .replace(/(^|[^\p{L}\p{N}_])_(\S(?:.*?\S)?)_(?![\p{L}\p{N}_])/gu, "$1$2")
531
+ .replace(/~~(.+?)~~/g, "$1")
532
+ .replace(/[ \t]+/g, " ")
533
+ .trim();
534
+ }
535
+ // Lowercased words: punctuation and marks become spaces, and runs of spaces one.
536
+ static toWords(text) {
537
+ return text
538
+ .normalize("NFC")
539
+ .toLowerCase()
540
+ .replace(/[^\p{L}\p{N}\p{M}]+/gu, " ")
541
+ .trim();
542
+ }
543
+ }
544
+ exports.default = PostmortemNoteActionItems;
@@ -0,0 +1,7 @@
1
+ import commonJsModule from "./PostmortemNoteActionItems.js";
2
+ export default commonJsModule.default;
3
+ export const ACTION_ITEM_HEADING_SUBSTRINGS = commonJsModule.ACTION_ITEM_HEADING_SUBSTRINGS;
4
+ export const ACTION_ITEM_HEADING_WORDS = commonJsModule.ACTION_ITEM_HEADING_WORDS;
5
+ export const ACTION_ITEM_WHOLE_HEADINGS = commonJsModule.ACTION_ITEM_WHOLE_HEADINGS;
6
+ export const MAX_ACTION_ITEM_TITLE_LENGTH = commonJsModule.MAX_ACTION_ITEM_TITLE_LENGTH;
7
+ export const MAX_NOTE_ACTION_ITEMS = commonJsModule.MAX_NOTE_ACTION_ITEMS;
@@ -1,3 +1,6 @@
1
1
  export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): ReadonlyMap<string, T>;
2
2
  export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
3
+ export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
4
+ export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
5
+ export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
3
6
  export default lookupTable;
@@ -1,3 +1,6 @@
1
1
  export declare function lookupTable<T>(entries: Readonly<Record<string, T>>): ReadonlyMap<string, T>;
2
2
  export declare function readOwnValue<T>(record: Readonly<Record<string, T>> | null | undefined, key: string): T | undefined;
3
+ export declare function writeOwnValue<T>(record: Record<string, T>, key: string, value: T): void;
4
+ export declare function assignOwnValues<T>(target: Record<string, T>, ...sources: Array<Readonly<Record<string, T>> | null | undefined>): Record<string, T>;
5
+ export declare function copyOwnValues<T>(record: Readonly<Record<string, T>> | null | undefined): Record<string, T>;
3
6
  export default lookupTable;
@@ -2,6 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lookupTable = lookupTable;
4
4
  exports.readOwnValue = readOwnValue;
5
+ exports.writeOwnValue = writeOwnValue;
6
+ exports.assignOwnValues = assignOwnValues;
7
+ exports.copyOwnValues = copyOwnValues;
5
8
  /*
6
9
  * A TABLE READ BY TEXT FROM OUTSIDE ONEUPTIME.
7
10
  *
@@ -41,4 +44,62 @@ function readOwnValue(record, key) {
41
44
  }
42
45
  return record[key];
43
46
  }
47
+ /*
48
+ * Sets a key somebody typed on a record built at run time, as the record's
49
+ * own key. `record[key] = value` does that for every key but "__proto__":
50
+ * every object inherits that one as a setter, so assigning a string to it
51
+ * does nothing, and assigning an object or array replaces the record's
52
+ * prototype. Written here, "__proto__" is a key like any other: Object.keys
53
+ * lists it and JSON.stringify writes it. (Copying the record with
54
+ * `{ ...record }`, which this code's ES2017 target compiles to
55
+ * Object.assign, assigns it again and so drops it: copy it with
56
+ * copyOwnValues, and merge it with assignOwnValues.)
57
+ */
58
+ function writeOwnValue(record, key, value) {
59
+ if (key === "__proto__") {
60
+ Object.defineProperty(record, key, {
61
+ value: value,
62
+ writable: true,
63
+ enumerable: true,
64
+ configurable: true,
65
+ });
66
+ return;
67
+ }
68
+ record[key] = value;
69
+ }
70
+ /*
71
+ * Copies every own key of each source onto `target`, in order, as
72
+ * Object.assign does - "__proto__" included, as the target's own key.
73
+ * Object.assign assigns each key, so it drops a "__proto__" key, and makes
74
+ * an object or array written under it the target's prototype. So does
75
+ * `{ ...record }`: this code's ES2017 target compiles a spread to
76
+ * Object.assign. A record keyed by what a sender wrote - an attribute map, a
77
+ * series' labels - is copied and merged here instead.
78
+ *
79
+ * A source without an own "__proto__" key, nearly every one, is still
80
+ * copied by Object.assign itself: this adds one own-key test per source, so
81
+ * the ingest path's merges cost what they did.
82
+ */
83
+ function assignOwnValues(target, ...sources) {
84
+ for (const source of sources) {
85
+ if (!source) {
86
+ continue;
87
+ }
88
+ if (!Object.prototype.hasOwnProperty.call(source, "__proto__")) {
89
+ Object.assign(target, source);
90
+ continue;
91
+ }
92
+ for (const key of Object.keys(source)) {
93
+ writeOwnValue(target, key, source[key]);
94
+ }
95
+ }
96
+ return target;
97
+ }
98
+ /*
99
+ * A new plain object with every own key of `record`, "__proto__" included:
100
+ * what `{ ...record }` gives on an ES2018 or later target.
101
+ */
102
+ function copyOwnValues(record) {
103
+ return assignOwnValues({}, record);
104
+ }
44
105
  exports.default = lookupTable;
@@ -1,4 +1,7 @@
1
1
  import commonJsModule from "./LookupTable.js";
2
2
  export default commonJsModule.default;
3
+ export const assignOwnValues = commonJsModule.assignOwnValues;
4
+ export const copyOwnValues = commonJsModule.copyOwnValues;
3
5
  export const lookupTable = commonJsModule.lookupTable;
4
6
  export const readOwnValue = commonJsModule.readOwnValue;
7
+ export const writeOwnValue = commonJsModule.writeOwnValue;
@@ -18,3 +18,5 @@ export declare const MAX_DEFINITION_NESTING_DEPTH: number;
18
18
  export declare const normalizeLinkLabel: (label: string) => string;
19
19
  export declare const getLinkReferenceDefinitions: (text: string) => Array<LinkReferenceDefinition>;
20
20
  export declare const forEachBracketedLabel: (text: string, start: number, end: number, found: (label: string) => void) => void;
21
+ export declare const normalizeReferenceLabel: (label: string) => string;
22
+ export declare const forEachLabelMarkedLooksUp: (text: string, found: (label: string) => void) => void;
@@ -18,3 +18,5 @@ export declare const MAX_DEFINITION_NESTING_DEPTH: number;
18
18
  export declare const normalizeLinkLabel: (label: string) => string;
19
19
  export declare const getLinkReferenceDefinitions: (text: string) => Array<LinkReferenceDefinition>;
20
20
  export declare const forEachBracketedLabel: (text: string, start: number, end: number, found: (label: string) => void) => void;
21
+ export declare const normalizeReferenceLabel: (label: string) => string;
22
+ export declare const forEachLabelMarkedLooksUp: (text: string, found: (label: string) => void) => void;