@grunnverk/kodrdriv 1.5.17 → 1.5.18-dev.20260326204706.e75ffcf
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/dist/constants.js +1 -1
- package/dist/mcp-server.js +23 -6
- package/dist/mcp-server.js.map +2 -2
- package/package.json +4 -3
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
|
|
4
|
-
/** Version string populated at build time with git and system information */ const VERSION = '1.5.
|
|
4
|
+
/** Version string populated at build time with git and system information */ const VERSION = '1.5.18-dev.20260326204706.e75ffcf (working/e75ffcf 2026-03-26 20:45:58 +0000) linux x64 v24.14.0';
|
|
5
5
|
/** The program name used in CLI help and error messages */ const PROGRAM_NAME = 'kodrdriv';
|
|
6
6
|
const DEFAULT_OVERRIDES = false;
|
|
7
7
|
const DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS_MILLISECONDS = 'YYYY-MM-DD-HHmmss.SSS';
|
package/dist/mcp-server.js
CHANGED
|
@@ -13915,7 +13915,7 @@ import path2 from "path";
|
|
|
13915
13915
|
// src/constants.ts
|
|
13916
13916
|
import os from "os";
|
|
13917
13917
|
import path from "path";
|
|
13918
|
-
var VERSION = "1.5.
|
|
13918
|
+
var VERSION = "1.5.18-dev.20260326204706.e75ffcf (working/e75ffcf 2026-03-26 20:45:58 +0000) linux x64 v24.14.0";
|
|
13919
13919
|
var PROGRAM_NAME = "kodrdriv";
|
|
13920
13920
|
var DATE_FORMAT_YEAR_MONTH_DAY_HOURS_MINUTES_SECONDS_MILLISECONDS = "YYYY-MM-DD-HHmmss.SSS";
|
|
13921
13921
|
var DEFAULT_RUNTIME_LOG_DIRECTORY = path.join(os.homedir(), ".kodrdriv", "log");
|
|
@@ -16561,7 +16561,7 @@ var JSONStringify = (value, replacer, space) => {
|
|
|
16561
16561
|
const convertedToCustomJSON = originalStringify(
|
|
16562
16562
|
value,
|
|
16563
16563
|
(key, value2) => {
|
|
16564
|
-
const isNoise = typeof value2 === "string" &&
|
|
16564
|
+
const isNoise = typeof value2 === "string" && noiseValue.test(value2);
|
|
16565
16565
|
if (isNoise) return value2.toString() + "n";
|
|
16566
16566
|
if (typeof value2 === "bigint") return value2.toString() + "n";
|
|
16567
16567
|
if (typeof replacer === "function") return replacer(key, value2);
|
|
@@ -16577,11 +16577,28 @@ var JSONStringify = (value, replacer, space) => {
|
|
|
16577
16577
|
const denoisedJSON = processedJSON.replace(noiseStringify, "$1$2$3");
|
|
16578
16578
|
return denoisedJSON;
|
|
16579
16579
|
};
|
|
16580
|
-
var
|
|
16580
|
+
var featureCache = /* @__PURE__ */ new Map();
|
|
16581
|
+
var isContextSourceSupported = () => {
|
|
16582
|
+
const parseFingerprint = JSON.parse.toString();
|
|
16583
|
+
if (featureCache.has(parseFingerprint)) {
|
|
16584
|
+
return featureCache.get(parseFingerprint);
|
|
16585
|
+
}
|
|
16586
|
+
try {
|
|
16587
|
+
const result = JSON.parse(
|
|
16588
|
+
"1",
|
|
16589
|
+
(_, __, context) => !!context?.source && context.source === "1"
|
|
16590
|
+
);
|
|
16591
|
+
featureCache.set(parseFingerprint, result);
|
|
16592
|
+
return result;
|
|
16593
|
+
} catch {
|
|
16594
|
+
featureCache.set(parseFingerprint, false);
|
|
16595
|
+
return false;
|
|
16596
|
+
}
|
|
16597
|
+
};
|
|
16581
16598
|
var convertMarkedBigIntsReviver = (key, value, context, userReviver) => {
|
|
16582
|
-
const isCustomFormatBigInt = typeof value === "string" &&
|
|
16599
|
+
const isCustomFormatBigInt = typeof value === "string" && customFormat.test(value);
|
|
16583
16600
|
if (isCustomFormatBigInt) return BigInt(value.slice(0, -1));
|
|
16584
|
-
const isNoiseValue = typeof value === "string" &&
|
|
16601
|
+
const isNoiseValue = typeof value === "string" && noiseValue.test(value);
|
|
16585
16602
|
if (isNoiseValue) return value.slice(0, -1);
|
|
16586
16603
|
if (typeof userReviver !== "function") return value;
|
|
16587
16604
|
return userReviver(key, value, context);
|
|
@@ -16607,7 +16624,7 @@ var JSONParse = (text, reviver) => {
|
|
|
16607
16624
|
stringsOrLargeNumbers,
|
|
16608
16625
|
(text2, digits, fractional, exponential) => {
|
|
16609
16626
|
const isString = text2[0] === '"';
|
|
16610
|
-
const isNoise = isString &&
|
|
16627
|
+
const isNoise = isString && noiseValueWithQuotes.test(text2);
|
|
16611
16628
|
if (isNoise) return text2.substring(0, text2.length - 1) + 'n"';
|
|
16612
16629
|
const isFractionalOrExponential = fractional || exponential;
|
|
16613
16630
|
const isLessThanMaxSafeInt = digits && (digits.length < MAX_DIGITS || digits.length === MAX_DIGITS && digits <= MAX_INT);
|