@productbrain/mcp 0.0.1-beta.14536 → 0.0.1-beta.14543
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.
|
@@ -236,6 +236,9 @@ var NAME_KINDS = {
|
|
|
236
236
|
strategy: { word: "strategy", tier: "direction" },
|
|
237
237
|
objectives: { word: "objective", tier: "outcome" },
|
|
238
238
|
"key-results": { word: "key result", tier: "outcome" },
|
|
239
|
+
kpis: { word: "KPI", tier: "outcome" },
|
|
240
|
+
// TASK-1683 (DEC-2655): a KPI's name is one label line, as a key result's
|
|
241
|
+
sops: { word: "SOP", tier: "working" },
|
|
239
242
|
rules: { word: "rule", tier: "rule" },
|
|
240
243
|
teams: { word: "team", tier: "other" },
|
|
241
244
|
labels: { word: "label", tier: "other" }
|
|
@@ -243,8 +246,9 @@ var NAME_KINDS = {
|
|
|
243
246
|
function isAcronym(word) {
|
|
244
247
|
return /^(?=[0-9]*[A-Z])[A-Z0-9]{2,}s?$/.test(word);
|
|
245
248
|
}
|
|
249
|
+
var alphanumericCore = (token) => token.match(/[A-Za-z0-9]+/)?.[0] ?? "";
|
|
246
250
|
function withArticle(word) {
|
|
247
|
-
const first = word
|
|
251
|
+
const first = alphanumericCore(word);
|
|
248
252
|
const vowelSound = isAcronym(first) ? /^[AEFHILMNORSX]/.test(first) : /^[aeiou]/i.test(word);
|
|
249
253
|
return `${vowelSound ? "an" : "a"} ${word}`;
|
|
250
254
|
}
|
|
@@ -12414,4 +12418,4 @@ export {
|
|
|
12414
12418
|
SERVER_VERSION,
|
|
12415
12419
|
createProductBrainServer
|
|
12416
12420
|
};
|
|
12417
|
-
//# sourceMappingURL=chunk-
|
|
12421
|
+
//# sourceMappingURL=chunk-VHTLMRKD.js.map
|