@inkeep/agents-run-api 0.0.0-dev-20250911175803 → 0.0.0-dev-20250911192304

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/index.cjs CHANGED
@@ -406,23 +406,28 @@ init_instrumentation();
406
406
 
407
407
  // src/logger.ts
408
408
  init_env();
409
- var logger = pino.pino({
409
+ var isDevelopment = env.ENVIRONMENT === "development";
410
+ var loggerConfig = {
410
411
  level: env.LOG_LEVEL,
411
412
  serializers: {
412
413
  obj: (value) => ({ ...value })
413
414
  },
414
415
  redact: ["req.headers.authorization", 'req.headers["x-inkeep-admin-authentication"]'],
415
- transport: {
416
- target: "pino-pretty",
417
- options: {
418
- sync: true,
419
- destination: 1,
420
- // stdout
421
- colorize: true,
422
- translateTime: "SYS:standard"
416
+ // Only use pino-pretty in development
417
+ ...isDevelopment && {
418
+ transport: {
419
+ target: "pino-pretty",
420
+ options: {
421
+ sync: true,
422
+ destination: 1,
423
+ // stdout
424
+ colorize: true,
425
+ translateTime: "SYS:standard"
426
+ }
423
427
  }
424
428
  }
425
- });
429
+ };
430
+ var logger = pino.pino(loggerConfig);
426
431
  var asyncLocalStorage = new async_hooks.AsyncLocalStorage();
427
432
  function getLogger(name) {
428
433
  const store = asyncLocalStorage.getStore();
package/dist/index.js CHANGED
@@ -29,23 +29,28 @@ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/
29
29
  import { z as z$2 } from 'zod/v3';
30
30
  import { toReqRes, toFetchResponse } from 'fetch-to-node';
31
31
 
32
- var logger = pino({
32
+ var isDevelopment = env.ENVIRONMENT === "development";
33
+ var loggerConfig = {
33
34
  level: env.LOG_LEVEL,
34
35
  serializers: {
35
36
  obj: (value) => ({ ...value })
36
37
  },
37
38
  redact: ["req.headers.authorization", 'req.headers["x-inkeep-admin-authentication"]'],
38
- transport: {
39
- target: "pino-pretty",
40
- options: {
41
- sync: true,
42
- destination: 1,
43
- // stdout
44
- colorize: true,
45
- translateTime: "SYS:standard"
39
+ // Only use pino-pretty in development
40
+ ...isDevelopment && {
41
+ transport: {
42
+ target: "pino-pretty",
43
+ options: {
44
+ sync: true,
45
+ destination: 1,
46
+ // stdout
47
+ colorize: true,
48
+ translateTime: "SYS:standard"
49
+ }
46
50
  }
47
51
  }
48
- });
52
+ };
53
+ var logger = pino(loggerConfig);
49
54
  var asyncLocalStorage = new AsyncLocalStorage();
50
55
  function getLogger(name) {
51
56
  const store = asyncLocalStorage.getStore();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-run-api",
3
- "version": "0.0.0-dev-20250911175803",
3
+ "version": "0.0.0-dev-20250911192304",
4
4
  "description": "Execution API for Inkeep Agent Framework - handles chat, agent execution, and streaming",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,11 +41,10 @@
41
41
  "jmespath": "^0.16.0",
42
42
  "nanoid": "^5.1.5",
43
43
  "pino": "^9.7.0",
44
- "pino-pretty": "^13.0.0",
45
44
  "traverse": "^0.6.11",
46
45
  "ts-pattern": "^5.7.1",
47
46
  "zod": "^4.1.5",
48
- "@inkeep/agents-core": "^0.0.0-dev-20250911175803"
47
+ "@inkeep/agents-core": "^0.0.0-dev-20250911192304"
49
48
  },
50
49
  "devDependencies": {
51
50
  "@hono/vite-dev-server": "^0.20.1",
@@ -55,6 +54,7 @@
55
54
  "@types/traverse": "^0.6.37",
56
55
  "@vitest/coverage-v8": "^2.0.0",
57
56
  "nodemon": "^3.1.0",
57
+ "pino-pretty": "^13.1.1",
58
58
  "tsx": "^4.7.1",
59
59
  "typescript": "^5.3.3",
60
60
  "vite": "^7.1.4",