@ignfab/geocontext 0.8.1 → 0.8.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/dist/logger.js +8 -3
- package/dist/logger.js.map +1 -1
- package/package.json +9 -8
package/dist/logger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLogger, format, transports } from 'winston';
|
|
1
|
+
import { config, createLogger, format, transports } from 'winston';
|
|
2
2
|
const LOG_LEVEL = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'debug';
|
|
3
3
|
const formats = {
|
|
4
4
|
json: format.json(),
|
|
@@ -12,7 +12,13 @@ const logger = createLogger({
|
|
|
12
12
|
level: LOG_LEVEL,
|
|
13
13
|
format: formats[LOG_FORMAT],
|
|
14
14
|
transports: process.env.NODE_ENV != 'test' ? [
|
|
15
|
-
|
|
15
|
+
/*
|
|
16
|
+
* logs all logs level to stderr as stdout is reserved for MCP
|
|
17
|
+
* see https://github.com/winstonjs/winston/blob/master/docs/transports.md#console-transport
|
|
18
|
+
*/
|
|
19
|
+
new transports.Console({
|
|
20
|
+
stderrLevels: Object.keys(config.npm.levels),
|
|
21
|
+
})
|
|
16
22
|
] : [
|
|
17
23
|
new transports.File({
|
|
18
24
|
filename: 'geocontext.log',
|
|
@@ -20,6 +26,5 @@ const logger = createLogger({
|
|
|
20
26
|
})
|
|
21
27
|
],
|
|
22
28
|
});
|
|
23
|
-
logger.info(`LOG_FORMAT=${LOG_FORMAT}, LOG_LEVEL=${LOG_LEVEL}`);
|
|
24
29
|
export default logger;
|
|
25
30
|
//# sourceMappingURL=logger.js.map
|
package/dist/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.js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|
{
|
|
2
2
|
"name": "@ignfab/geocontext",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "An experimental MCP server providing spatial context for LLM.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,25 +37,26 @@
|
|
|
37
37
|
"@camptocamp/ogc-client": "^1.3.0",
|
|
38
38
|
"https-proxy-agent": "^7.0.6",
|
|
39
39
|
"jsts": "^2.12.1",
|
|
40
|
-
"
|
|
40
|
+
"lodash": "^4.17.21",
|
|
41
|
+
"mcp-framework": "^0.2.17",
|
|
41
42
|
"minisearch": "^7.2.0",
|
|
42
43
|
"node-fetch": "^3.3.2",
|
|
43
|
-
"winston": "^3.
|
|
44
|
-
"
|
|
44
|
+
"winston": "^3.18.3",
|
|
45
|
+
"zod": "^3.25.76"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@types/cors": "^2.8.19",
|
|
48
49
|
"@types/geojson": "^7946.0.16",
|
|
49
50
|
"@types/jest": "^30.0.0",
|
|
50
|
-
"@types/lodash": "^4.17.
|
|
51
|
-
"@types/node": "^24.
|
|
51
|
+
"@types/lodash": "^4.17.21",
|
|
52
|
+
"@types/node": "^24.10.1",
|
|
52
53
|
"@types/supertest": "^6.0.3",
|
|
53
54
|
"geojson": "^0.5.0",
|
|
54
55
|
"jest": "^30.2.0",
|
|
55
56
|
"supertest": "^7.1.4",
|
|
56
|
-
"ts-jest": "^29.4.
|
|
57
|
+
"ts-jest": "^29.4.5",
|
|
57
58
|
"ts-node": "^10.9.2",
|
|
58
|
-
"typescript": "^5.9.
|
|
59
|
+
"typescript": "^5.9.3"
|
|
59
60
|
},
|
|
60
61
|
"engines": {
|
|
61
62
|
"node": ">=18.19.0"
|