@inkeep/agents-core 0.0.0-dev-20260107043750 → 0.0.0-dev-20260107163852
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/auth/auth-schema.d.ts +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/messages.d.ts +12 -12
- package/dist/data-access/tasks.d.ts +1 -1
- package/dist/db/schema.d.ts +405 -405
- package/dist/utils/logger.js +13 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +748 -748
- package/package.json +1 -1
package/dist/utils/logger.js
CHANGED
|
@@ -3,6 +3,17 @@ import pinoPretty from "pino-pretty";
|
|
|
3
3
|
|
|
4
4
|
//#region src/utils/logger.ts
|
|
5
5
|
/**
|
|
6
|
+
* Determines whether log output should be colorized.
|
|
7
|
+
*
|
|
8
|
+
* Checks in order:
|
|
9
|
+
* 1. NO_COLOR env var (standard: https://no-color.org/) - if set to any non-empty value, disables colors
|
|
10
|
+
* 2. Falls back to process.stdout.isTTY (colors enabled for interactive terminals)
|
|
11
|
+
*/
|
|
12
|
+
function shouldColorize() {
|
|
13
|
+
if (process.env.NO_COLOR && process.env.NO_COLOR !== "") return false;
|
|
14
|
+
return process.stdout.isTTY ?? false;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
6
17
|
* Pino logger implementation with transport customization support
|
|
7
18
|
*/
|
|
8
19
|
var PinoLogger = class {
|
|
@@ -27,7 +38,7 @@ var PinoLogger = class {
|
|
|
27
38
|
if (this.transportConfigs.length > 0) this.pinoInstance = pino(this.options, pino.transport({ targets: this.transportConfigs }));
|
|
28
39
|
else try {
|
|
29
40
|
const prettyStream = pinoPretty({
|
|
30
|
-
colorize:
|
|
41
|
+
colorize: shouldColorize(),
|
|
31
42
|
translateTime: "HH:MM:ss",
|
|
32
43
|
ignore: "pid,hostname"
|
|
33
44
|
});
|
|
@@ -44,7 +55,7 @@ var PinoLogger = class {
|
|
|
44
55
|
if (this.pinoInstance && typeof this.pinoInstance.flush === "function") this.pinoInstance.flush();
|
|
45
56
|
if (this.transportConfigs.length === 0) try {
|
|
46
57
|
const prettyStream = pinoPretty({
|
|
47
|
-
colorize:
|
|
58
|
+
colorize: shouldColorize(),
|
|
48
59
|
translateTime: "HH:MM:ss",
|
|
49
60
|
ignore: "pid,hostname"
|
|
50
61
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod125 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
@@ -22,8 +22,8 @@ declare const resourceIdSchema: z.ZodString;
|
|
|
22
22
|
declare function createResourceIdSchema(description: string, options?: {
|
|
23
23
|
example?: string;
|
|
24
24
|
}): z.ZodString;
|
|
25
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
26
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
25
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod125.BuildSchema<"select", T["_"]["columns"], drizzle_zod125.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
26
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod125.BuildSchema<"insert", T["_"]["columns"], drizzle_zod125.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
27
27
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
28
28
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
29
29
|
/**
|