@inkeep/agents-core 0.65.1 → 0.65.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/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-client.js +15 -3
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-client.js +7 -1
- package/dist/db/runtime/runtime-schema.d.ts +405 -405
- package/dist/dolt/merge.js +7 -9
- package/dist/dolt/ref-scope.js +9 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/error.d.ts +58 -52
- package/dist/utils/error.js +63 -21
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/logger.d.ts +21 -2
- package/dist/utils/logger.js +67 -11
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +49 -49
- package/dist/validation/schemas.d.ts +803 -803
- package/drizzle/runtime/meta/_journal.json +2 -2
- package/package.json +1 -1
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SKILL_ENTRY_FILE_PATH, parseSkillFromMarkdown, serializeSkillToMarkdown } from "./skill-files.js";
|
|
2
2
|
import { detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from "./auth-detection.js";
|
|
3
|
-
import { PinoLogger, getLogger, loggerFactory } from "./logger.js";
|
|
3
|
+
import { PinoLogger, getLogger, loggerFactory, runWithLogContext } from "./logger.js";
|
|
4
4
|
import { decodeJwtPayload, deriveKidFromPublicKey, extractBearerToken, getJwtSecret, hasIssuer, signJwt, verifyJwt } from "./jwt-helpers.js";
|
|
5
5
|
import { InternalServices, generateInternalServiceToken, isInternalServiceToken, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, verifyInternalServiceAuthHeader, verifyInternalServiceToken } from "./internal-service-auth.js";
|
|
6
6
|
import { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, makeAllPropertiesRequired, normalizeDataComponentSchema, preview, stripUnsupportedConstraints } from "./schema-conversion.js";
|
|
@@ -8,8 +8,8 @@ import { configureComposioMCPServer, deleteComposioConnectedAccount, extractComp
|
|
|
8
8
|
import { isThirdPartyMCPServerAuthenticated } from "./third-party-mcp-servers/third-party-check.js";
|
|
9
9
|
import "./third-party-mcp-servers/index.js";
|
|
10
10
|
import { getCredentialStoreLookupKeyFromRetrievalParams } from "./credential-store-utils.js";
|
|
11
|
+
import { ERROR_DOCS_BASE_URL, ErrorCode, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, errorResponseSchema, errorSchemaFactory, getDatabaseErrorLogContext, handleApiError, isUniqueConstraintError, problemDetailsSchema, throwIfUniqueConstraintError } from "./error.js";
|
|
11
12
|
import { buildConversationMetadata, deriveRelationId, generateId, getConversationId } from "./conversations.js";
|
|
12
|
-
import { ERROR_DOCS_BASE_URL, ErrorCode, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, errorResponseSchema, errorSchemaFactory, handleApiError, isUniqueConstraintError, problemDetailsSchema, throwIfUniqueConstraintError } from "./error.js";
|
|
13
13
|
import { extractPublicId, generateApiKey, generateAppCredential, getMetadataFromApiKey, hashApiKey, isApiKeyExpired, maskApiKey, sanitizeAppConfig, validateApiKey } from "./apiKeys.js";
|
|
14
14
|
import { computeNextRunAt } from "./compute-next-run-at.js";
|
|
15
15
|
import { normalizeDateString, toISODateString } from "./date.js";
|
|
@@ -38,4 +38,4 @@ import { validatePublicKey } from "./validate-public-key.js";
|
|
|
38
38
|
import { _resetWaitUntilCache, getWaitUntil } from "./wait-until.js";
|
|
39
39
|
import { TRUSTED_WORK_APP_MCP_PATHS, isTrustedWorkAppMcpUrl } from "./work-app-mcp.js";
|
|
40
40
|
|
|
41
|
-
export { ERROR_DOCS_BASE_URL, ErrorCode, InternalServices, JsonTransformer, McpClient, MockLanguageModel, ModelFactory, PinoLogger, SKILL_ENTRY_FILE_PATH, SlackAccessTokenPayloadSchema, SlackLinkIntentSchema, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getInProcessFetch, getJwtSecret, getLogger, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
|
41
|
+
export { ERROR_DOCS_BASE_URL, ErrorCode, InternalServices, JsonTransformer, McpClient, MockLanguageModel, ModelFactory, PinoLogger, SKILL_ENTRY_FILE_PATH, SlackAccessTokenPayloadSchema, SlackLinkIntentSchema, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getDatabaseErrorLogContext, getInProcessFetch, getJwtSecret, getLogger, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, runWithLogContext, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
package/dist/utils/logger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger, LoggerOptions, TransportSingleOptions } from "pino";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/logger.d.ts
|
|
4
|
-
|
|
4
|
+
declare function runWithLogContext<T>(bindings: Record<string, unknown>, fn: () => T): T;
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for PinoLogger
|
|
7
7
|
*/
|
|
@@ -10,6 +10,10 @@ interface PinoLoggerConfig {
|
|
|
10
10
|
options?: LoggerOptions;
|
|
11
11
|
/** Pino transport configuration */
|
|
12
12
|
transportConfigs?: TransportSingleOptions[];
|
|
13
|
+
/** Pre-built pino instance (used internally by .with()) */
|
|
14
|
+
fromInstance?: Logger;
|
|
15
|
+
/** When true, disables ALS proxying (used by .with() for snapshot semantics) */
|
|
16
|
+
snapshot?: boolean;
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* Pino logger implementation with transport customization support
|
|
@@ -19,6 +23,8 @@ declare class PinoLogger {
|
|
|
19
23
|
private transportConfigs;
|
|
20
24
|
private pinoInstance;
|
|
21
25
|
private options;
|
|
26
|
+
private alsChildCache;
|
|
27
|
+
private isSnapshot;
|
|
22
28
|
constructor(name: string, config?: PinoLoggerConfig);
|
|
23
29
|
/**
|
|
24
30
|
* Recreate the pino instance with current transports
|
|
@@ -44,9 +50,22 @@ declare class PinoLogger {
|
|
|
44
50
|
* Get the underlying pino instance for advanced usage
|
|
45
51
|
*/
|
|
46
52
|
getPinoInstance(): Logger;
|
|
53
|
+
private resolveInstance;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new PinoLogger with the given bindings baked in (snapshot semantics).
|
|
56
|
+
* Captures the current ALS context at call time. The returned logger does NOT
|
|
57
|
+
* pick up subsequent ALS context changes — use for class member loggers that
|
|
58
|
+
* are constructed once and reused within a request scope.
|
|
59
|
+
*/
|
|
60
|
+
with(bindings: Record<string, unknown>): PinoLogger;
|
|
61
|
+
child(bindings: Record<string, unknown>): PinoLogger;
|
|
62
|
+
error(message: string): void;
|
|
47
63
|
error(data: any, message: string): void;
|
|
64
|
+
warn(message: string): void;
|
|
48
65
|
warn(data: any, message: string): void;
|
|
66
|
+
info(message: string): void;
|
|
49
67
|
info(data: any, message: string): void;
|
|
68
|
+
debug(message: string): void;
|
|
50
69
|
debug(data: any, message: string): void;
|
|
51
70
|
}
|
|
52
71
|
/**
|
|
@@ -83,4 +102,4 @@ declare const loggerFactory: LoggerFactory;
|
|
|
83
102
|
*/
|
|
84
103
|
declare function getLogger(name: string): PinoLogger;
|
|
85
104
|
//#endregion
|
|
86
|
-
export { LoggerFactoryConfig, PinoLogger, PinoLoggerConfig, getLogger, loggerFactory };
|
|
105
|
+
export { LoggerFactoryConfig, PinoLogger, PinoLoggerConfig, getLogger, loggerFactory, runWithLogContext };
|
package/dist/utils/logger.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
1
2
|
import pino from "pino";
|
|
2
3
|
import pinoPretty from "pino-pretty";
|
|
3
4
|
|
|
@@ -13,19 +14,42 @@ function shouldColorize() {
|
|
|
13
14
|
if (process.env.NO_COLOR && process.env.NO_COLOR !== "") return false;
|
|
14
15
|
return process.stdout.isTTY ?? false;
|
|
15
16
|
}
|
|
17
|
+
const loggerStorage = new AsyncLocalStorage();
|
|
18
|
+
function runWithLogContext(bindings, fn) {
|
|
19
|
+
const child = (loggerStorage.getStore() ?? basePinoInstance).child(bindings);
|
|
20
|
+
return loggerStorage.run(child, fn);
|
|
21
|
+
}
|
|
22
|
+
let basePinoInstance = pino({ level: "silent" });
|
|
23
|
+
function setBasePinoInstance(instance) {
|
|
24
|
+
basePinoInstance = instance;
|
|
25
|
+
}
|
|
16
26
|
/**
|
|
17
27
|
* Pino logger implementation with transport customization support
|
|
18
28
|
*/
|
|
19
|
-
var PinoLogger = class {
|
|
29
|
+
var PinoLogger = class PinoLogger {
|
|
20
30
|
transportConfigs = [];
|
|
21
31
|
pinoInstance;
|
|
22
32
|
options;
|
|
33
|
+
alsChildCache = /* @__PURE__ */ new WeakMap();
|
|
34
|
+
isSnapshot;
|
|
23
35
|
constructor(name, config = {}) {
|
|
24
36
|
this.name = name;
|
|
37
|
+
if (config.fromInstance) {
|
|
38
|
+
this.pinoInstance = config.fromInstance;
|
|
39
|
+
this.options = {};
|
|
40
|
+
this.isSnapshot = config.snapshot ?? false;
|
|
41
|
+
if (!this.isSnapshot) setBasePinoInstance(this.pinoInstance);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this.isSnapshot = false;
|
|
25
45
|
this.options = {
|
|
26
46
|
name: this.name,
|
|
27
47
|
level: process.env.LOG_LEVEL || (process.env.ENVIRONMENT === "test" ? "silent" : "info"),
|
|
28
|
-
serializers: {
|
|
48
|
+
serializers: {
|
|
49
|
+
err: pino.stdSerializers.err,
|
|
50
|
+
error: pino.stdSerializers.err,
|
|
51
|
+
obj: (value) => ({ ...value })
|
|
52
|
+
},
|
|
29
53
|
redact: [
|
|
30
54
|
"req.headers.authorization",
|
|
31
55
|
"req.headers[\"x-inkeep-admin-authentication\"]",
|
|
@@ -47,12 +71,14 @@ var PinoLogger = class {
|
|
|
47
71
|
console.warn("Warning: pino-pretty failed, using standard JSON output:", error);
|
|
48
72
|
this.pinoInstance = pino(this.options);
|
|
49
73
|
}
|
|
74
|
+
setBasePinoInstance(this.pinoInstance);
|
|
50
75
|
}
|
|
51
76
|
/**
|
|
52
77
|
* Recreate the pino instance with current transports
|
|
53
78
|
*/
|
|
54
79
|
recreateInstance() {
|
|
55
80
|
if (this.pinoInstance && typeof this.pinoInstance.flush === "function") this.pinoInstance.flush();
|
|
81
|
+
this.alsChildCache = /* @__PURE__ */ new WeakMap();
|
|
56
82
|
if (this.transportConfigs.length === 0) try {
|
|
57
83
|
const prettyStream = pinoPretty({
|
|
58
84
|
colorize: shouldColorize(),
|
|
@@ -108,17 +134,47 @@ var PinoLogger = class {
|
|
|
108
134
|
getPinoInstance() {
|
|
109
135
|
return this.pinoInstance;
|
|
110
136
|
}
|
|
111
|
-
|
|
112
|
-
this.pinoInstance
|
|
137
|
+
resolveInstance() {
|
|
138
|
+
if (this.isSnapshot) return this.pinoInstance;
|
|
139
|
+
const alsInstance = loggerStorage.getStore();
|
|
140
|
+
if (!alsInstance) return this.pinoInstance;
|
|
141
|
+
let cached = this.alsChildCache.get(alsInstance);
|
|
142
|
+
if (!cached) {
|
|
143
|
+
cached = alsInstance.child({ module: this.name });
|
|
144
|
+
this.alsChildCache.set(alsInstance, cached);
|
|
145
|
+
}
|
|
146
|
+
return cached;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates a new PinoLogger with the given bindings baked in (snapshot semantics).
|
|
150
|
+
* Captures the current ALS context at call time. The returned logger does NOT
|
|
151
|
+
* pick up subsequent ALS context changes — use for class member loggers that
|
|
152
|
+
* are constructed once and reused within a request scope.
|
|
153
|
+
*/
|
|
154
|
+
with(bindings) {
|
|
155
|
+
return new PinoLogger(this.name, {
|
|
156
|
+
fromInstance: this.resolveInstance().child(bindings),
|
|
157
|
+
snapshot: true
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
child(bindings) {
|
|
161
|
+
return this.with(bindings);
|
|
162
|
+
}
|
|
163
|
+
error(dataOrMessage, message) {
|
|
164
|
+
if (message === void 0) this.resolveInstance().error(dataOrMessage);
|
|
165
|
+
else this.resolveInstance().error(dataOrMessage, message);
|
|
113
166
|
}
|
|
114
|
-
warn(
|
|
115
|
-
this.
|
|
167
|
+
warn(dataOrMessage, message) {
|
|
168
|
+
if (message === void 0) this.resolveInstance().warn(dataOrMessage);
|
|
169
|
+
else this.resolveInstance().warn(dataOrMessage, message);
|
|
116
170
|
}
|
|
117
|
-
info(
|
|
118
|
-
this.
|
|
171
|
+
info(dataOrMessage, message) {
|
|
172
|
+
if (message === void 0) this.resolveInstance().info(dataOrMessage);
|
|
173
|
+
else this.resolveInstance().info(dataOrMessage, message);
|
|
119
174
|
}
|
|
120
|
-
debug(
|
|
121
|
-
this.
|
|
175
|
+
debug(dataOrMessage, message) {
|
|
176
|
+
if (message === void 0) this.resolveInstance().debug(dataOrMessage);
|
|
177
|
+
else this.resolveInstance().debug(dataOrMessage, message);
|
|
122
178
|
}
|
|
123
179
|
};
|
|
124
180
|
/**
|
|
@@ -167,4 +223,4 @@ function getLogger(name) {
|
|
|
167
223
|
}
|
|
168
224
|
|
|
169
225
|
//#endregion
|
|
170
|
-
export { PinoLogger, getLogger, loggerFactory };
|
|
226
|
+
export { PinoLogger, getLogger, loggerFactory, runWithLogContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod17 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod17.BuildSchema<"select", T["_"]["columns"], drizzle_zod17.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod17.BuildSchema<"insert", T["_"]["columns"], drizzle_zod17.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as drizzle_orm_pg_core570 from "drizzle-orm/pg-core";
|
|
3
|
+
import * as drizzle_zod15 from "drizzle-zod";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/schemas/skills.d.ts
|
|
6
6
|
declare const SkillIndexSchema: z.ZodInt;
|
|
@@ -27,8 +27,8 @@ declare const SkillFileContentInputSchema: z.ZodObject<{
|
|
|
27
27
|
filePath: z.ZodString;
|
|
28
28
|
content: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
declare const SkillFileSelectSchema:
|
|
31
|
-
createdAt:
|
|
30
|
+
declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
31
|
+
createdAt: drizzle_orm_pg_core570.PgColumn<{
|
|
32
32
|
name: "created_at";
|
|
33
33
|
tableName: "skill_files";
|
|
34
34
|
dataType: "string";
|
|
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
45
45
|
identity: undefined;
|
|
46
46
|
generated: undefined;
|
|
47
47
|
}, {}, {}>;
|
|
48
|
-
updatedAt:
|
|
48
|
+
updatedAt: drizzle_orm_pg_core570.PgColumn<{
|
|
49
49
|
name: "updated_at";
|
|
50
50
|
tableName: "skill_files";
|
|
51
51
|
dataType: "string";
|
|
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
62
62
|
identity: undefined;
|
|
63
63
|
generated: undefined;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
skillId:
|
|
65
|
+
skillId: drizzle_orm_pg_core570.PgColumn<{
|
|
66
66
|
name: "skill_id";
|
|
67
67
|
tableName: "skill_files";
|
|
68
68
|
dataType: "string";
|
|
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
81
81
|
}, {}, {
|
|
82
82
|
length: 64;
|
|
83
83
|
}>;
|
|
84
|
-
filePath:
|
|
84
|
+
filePath: drizzle_orm_pg_core570.PgColumn<{
|
|
85
85
|
name: "file_path";
|
|
86
86
|
tableName: "skill_files";
|
|
87
87
|
dataType: "string";
|
|
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
100
100
|
}, {}, {
|
|
101
101
|
length: 1024;
|
|
102
102
|
}>;
|
|
103
|
-
content:
|
|
103
|
+
content: drizzle_orm_pg_core570.PgColumn<{
|
|
104
104
|
name: "content";
|
|
105
105
|
tableName: "skill_files";
|
|
106
106
|
dataType: "string";
|
|
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
117
117
|
identity: undefined;
|
|
118
118
|
generated: undefined;
|
|
119
119
|
}, {}, {}>;
|
|
120
|
-
projectId:
|
|
120
|
+
projectId: drizzle_orm_pg_core570.PgColumn<{
|
|
121
121
|
name: "project_id";
|
|
122
122
|
tableName: "skill_files";
|
|
123
123
|
dataType: "string";
|
|
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
136
136
|
}, {}, {
|
|
137
137
|
length: 256;
|
|
138
138
|
}>;
|
|
139
|
-
tenantId:
|
|
139
|
+
tenantId: drizzle_orm_pg_core570.PgColumn<{
|
|
140
140
|
name: "tenant_id";
|
|
141
141
|
tableName: "skill_files";
|
|
142
142
|
dataType: "string";
|
|
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
155
155
|
}, {}, {
|
|
156
156
|
length: 256;
|
|
157
157
|
}>;
|
|
158
|
-
id:
|
|
158
|
+
id: drizzle_orm_pg_core570.PgColumn<{
|
|
159
159
|
name: "id";
|
|
160
160
|
tableName: "skill_files";
|
|
161
161
|
dataType: "string";
|
|
@@ -174,8 +174,8 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
174
174
|
}, {}, {
|
|
175
175
|
length: 256;
|
|
176
176
|
}>;
|
|
177
|
-
},
|
|
178
|
-
createdAt:
|
|
177
|
+
}, drizzle_zod15.BuildRefine<{
|
|
178
|
+
createdAt: drizzle_orm_pg_core570.PgColumn<{
|
|
179
179
|
name: "created_at";
|
|
180
180
|
tableName: "skill_files";
|
|
181
181
|
dataType: "string";
|
|
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
192
192
|
identity: undefined;
|
|
193
193
|
generated: undefined;
|
|
194
194
|
}, {}, {}>;
|
|
195
|
-
updatedAt:
|
|
195
|
+
updatedAt: drizzle_orm_pg_core570.PgColumn<{
|
|
196
196
|
name: "updated_at";
|
|
197
197
|
tableName: "skill_files";
|
|
198
198
|
dataType: "string";
|
|
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
209
209
|
identity: undefined;
|
|
210
210
|
generated: undefined;
|
|
211
211
|
}, {}, {}>;
|
|
212
|
-
skillId:
|
|
212
|
+
skillId: drizzle_orm_pg_core570.PgColumn<{
|
|
213
213
|
name: "skill_id";
|
|
214
214
|
tableName: "skill_files";
|
|
215
215
|
dataType: "string";
|
|
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
228
228
|
}, {}, {
|
|
229
229
|
length: 64;
|
|
230
230
|
}>;
|
|
231
|
-
filePath:
|
|
231
|
+
filePath: drizzle_orm_pg_core570.PgColumn<{
|
|
232
232
|
name: "file_path";
|
|
233
233
|
tableName: "skill_files";
|
|
234
234
|
dataType: "string";
|
|
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
247
247
|
}, {}, {
|
|
248
248
|
length: 1024;
|
|
249
249
|
}>;
|
|
250
|
-
content:
|
|
250
|
+
content: drizzle_orm_pg_core570.PgColumn<{
|
|
251
251
|
name: "content";
|
|
252
252
|
tableName: "skill_files";
|
|
253
253
|
dataType: "string";
|
|
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
264
264
|
identity: undefined;
|
|
265
265
|
generated: undefined;
|
|
266
266
|
}, {}, {}>;
|
|
267
|
-
projectId:
|
|
267
|
+
projectId: drizzle_orm_pg_core570.PgColumn<{
|
|
268
268
|
name: "project_id";
|
|
269
269
|
tableName: "skill_files";
|
|
270
270
|
dataType: "string";
|
|
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
283
283
|
}, {}, {
|
|
284
284
|
length: 256;
|
|
285
285
|
}>;
|
|
286
|
-
tenantId:
|
|
286
|
+
tenantId: drizzle_orm_pg_core570.PgColumn<{
|
|
287
287
|
name: "tenant_id";
|
|
288
288
|
tableName: "skill_files";
|
|
289
289
|
dataType: "string";
|
|
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod19.BuildSchema<"select", {
|
|
|
302
302
|
}, {}, {
|
|
303
303
|
length: 256;
|
|
304
304
|
}>;
|
|
305
|
-
id:
|
|
305
|
+
id: drizzle_orm_pg_core570.PgColumn<{
|
|
306
306
|
name: "id";
|
|
307
307
|
tableName: "skill_files";
|
|
308
308
|
dataType: "string";
|
|
@@ -336,8 +336,8 @@ declare const SkillFileInsertSchema: z.ZodObject<{
|
|
|
336
336
|
in: {};
|
|
337
337
|
}>;
|
|
338
338
|
declare const SkillInsertSchema: z.ZodObject<{
|
|
339
|
-
description: z.ZodString;
|
|
340
339
|
name: z.ZodString;
|
|
340
|
+
description: z.ZodString;
|
|
341
341
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
342
342
|
content: z.ZodString;
|
|
343
343
|
}, {
|
|
@@ -351,13 +351,13 @@ declare const SkillUpdateSchema: z.ZodObject<{
|
|
|
351
351
|
}, z.core.$strip>>;
|
|
352
352
|
}, z.core.$strip>;
|
|
353
353
|
declare const SkillApiSelectSchema: z.ZodObject<{
|
|
354
|
-
description: z.ZodString;
|
|
355
354
|
id: z.ZodString;
|
|
356
|
-
createdAt: z.ZodString;
|
|
357
355
|
name: z.ZodString;
|
|
356
|
+
createdAt: z.ZodString;
|
|
357
|
+
updatedAt: z.ZodString;
|
|
358
|
+
description: z.ZodString;
|
|
358
359
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
359
360
|
content: z.ZodString;
|
|
360
|
-
updatedAt: z.ZodString;
|
|
361
361
|
}, z.core.$strip>;
|
|
362
362
|
declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
363
363
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -384,8 +384,8 @@ declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
384
384
|
filePath: z.ZodString;
|
|
385
385
|
content: z.ZodString;
|
|
386
386
|
}, z.core.$strip>>;
|
|
387
|
-
description: z.ZodString;
|
|
388
387
|
name: z.ZodString;
|
|
388
|
+
description: z.ZodString;
|
|
389
389
|
content: z.ZodString;
|
|
390
390
|
}, z.core.$strict>>;
|
|
391
391
|
declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
@@ -400,8 +400,8 @@ declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
400
400
|
}[];
|
|
401
401
|
}>>, z.ZodObject<{
|
|
402
402
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
403
|
-
description: z.ZodOptional<z.ZodString>;
|
|
404
403
|
name: z.ZodOptional<z.ZodString>;
|
|
404
|
+
description: z.ZodOptional<z.ZodString>;
|
|
405
405
|
content: z.ZodOptional<z.ZodString>;
|
|
406
406
|
files: z.ZodNonOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
407
|
filePath: z.ZodString;
|
|
@@ -411,10 +411,10 @@ declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
411
411
|
declare const SkillFileApiSelectSchema: z.ZodObject<{
|
|
412
412
|
id: z.ZodString;
|
|
413
413
|
createdAt: z.ZodString;
|
|
414
|
-
content: z.ZodString;
|
|
415
414
|
updatedAt: z.ZodString;
|
|
416
|
-
|
|
415
|
+
content: z.ZodString;
|
|
417
416
|
skillId: z.ZodString;
|
|
417
|
+
filePath: z.ZodString;
|
|
418
418
|
}, z.core.$strip>;
|
|
419
419
|
declare const SkillFileApiInsertSchema: z.ZodObject<{
|
|
420
420
|
filePath: z.ZodString;
|
|
@@ -424,20 +424,20 @@ declare const SkillFileApiUpdateSchema: z.ZodObject<{
|
|
|
424
424
|
content: z.ZodString;
|
|
425
425
|
}, z.core.$strip>;
|
|
426
426
|
declare const SkillWithFilesApiSelectSchema: z.ZodObject<{
|
|
427
|
-
description: z.ZodString;
|
|
428
427
|
id: z.ZodString;
|
|
429
|
-
createdAt: z.ZodString;
|
|
430
428
|
name: z.ZodString;
|
|
429
|
+
createdAt: z.ZodString;
|
|
430
|
+
updatedAt: z.ZodString;
|
|
431
|
+
description: z.ZodString;
|
|
431
432
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
432
433
|
content: z.ZodString;
|
|
433
|
-
updatedAt: z.ZodString;
|
|
434
434
|
files: z.ZodArray<z.ZodObject<{
|
|
435
435
|
id: z.ZodString;
|
|
436
436
|
createdAt: z.ZodString;
|
|
437
|
-
content: z.ZodString;
|
|
438
437
|
updatedAt: z.ZodString;
|
|
439
|
-
|
|
438
|
+
content: z.ZodString;
|
|
440
439
|
skillId: z.ZodString;
|
|
440
|
+
filePath: z.ZodString;
|
|
441
441
|
}, z.core.$strip>>;
|
|
442
442
|
}, z.core.$strip>;
|
|
443
443
|
declare const SubAgentSkillSelectSchema: z.ZodObject<{
|
|
@@ -514,13 +514,13 @@ declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
|
|
|
514
514
|
skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
515
515
|
}, z.core.$strip>;
|
|
516
516
|
declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
|
|
517
|
-
description: z.ZodString;
|
|
518
517
|
id: z.ZodString;
|
|
519
|
-
createdAt: z.ZodString;
|
|
520
518
|
name: z.ZodString;
|
|
519
|
+
createdAt: z.ZodString;
|
|
520
|
+
updatedAt: z.ZodString;
|
|
521
|
+
description: z.ZodString;
|
|
521
522
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
522
523
|
content: z.ZodString;
|
|
523
|
-
updatedAt: z.ZodString;
|
|
524
524
|
subAgentSkillId: z.ZodString;
|
|
525
525
|
subAgentId: z.ZodString;
|
|
526
526
|
index: z.ZodInt;
|
|
@@ -530,40 +530,40 @@ declare const SkillFileResponse: z.ZodObject<{
|
|
|
530
530
|
data: z.ZodObject<{
|
|
531
531
|
id: z.ZodString;
|
|
532
532
|
createdAt: z.ZodString;
|
|
533
|
-
content: z.ZodString;
|
|
534
533
|
updatedAt: z.ZodString;
|
|
535
|
-
|
|
534
|
+
content: z.ZodString;
|
|
536
535
|
skillId: z.ZodString;
|
|
536
|
+
filePath: z.ZodString;
|
|
537
537
|
}, z.core.$strip>;
|
|
538
538
|
}, z.core.$strip>;
|
|
539
539
|
declare const SkillWithFilesResponse: z.ZodObject<{
|
|
540
540
|
data: z.ZodObject<{
|
|
541
|
-
description: z.ZodString;
|
|
542
541
|
id: z.ZodString;
|
|
543
|
-
createdAt: z.ZodString;
|
|
544
542
|
name: z.ZodString;
|
|
543
|
+
createdAt: z.ZodString;
|
|
544
|
+
updatedAt: z.ZodString;
|
|
545
|
+
description: z.ZodString;
|
|
545
546
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
546
547
|
content: z.ZodString;
|
|
547
|
-
updatedAt: z.ZodString;
|
|
548
548
|
files: z.ZodArray<z.ZodObject<{
|
|
549
549
|
id: z.ZodString;
|
|
550
550
|
createdAt: z.ZodString;
|
|
551
|
-
content: z.ZodString;
|
|
552
551
|
updatedAt: z.ZodString;
|
|
553
|
-
|
|
552
|
+
content: z.ZodString;
|
|
554
553
|
skillId: z.ZodString;
|
|
554
|
+
filePath: z.ZodString;
|
|
555
555
|
}, z.core.$strip>>;
|
|
556
556
|
}, z.core.$strip>;
|
|
557
557
|
}, z.core.$strip>;
|
|
558
558
|
declare const SkillListResponse: z.ZodObject<{
|
|
559
559
|
data: z.ZodArray<z.ZodObject<{
|
|
560
|
-
description: z.ZodString;
|
|
561
560
|
id: z.ZodString;
|
|
562
|
-
createdAt: z.ZodString;
|
|
563
561
|
name: z.ZodString;
|
|
562
|
+
createdAt: z.ZodString;
|
|
563
|
+
updatedAt: z.ZodString;
|
|
564
|
+
description: z.ZodString;
|
|
564
565
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
565
566
|
content: z.ZodString;
|
|
566
|
-
updatedAt: z.ZodString;
|
|
567
567
|
}, z.core.$strip>>;
|
|
568
568
|
pagination: z.ZodObject<{
|
|
569
569
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -585,13 +585,13 @@ declare const SubAgentSkillResponse: z.ZodObject<{
|
|
|
585
585
|
}, z.core.$strip>;
|
|
586
586
|
declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
|
|
587
587
|
data: z.ZodArray<z.ZodObject<{
|
|
588
|
-
description: z.ZodString;
|
|
589
588
|
id: z.ZodString;
|
|
590
|
-
createdAt: z.ZodString;
|
|
591
589
|
name: z.ZodString;
|
|
590
|
+
createdAt: z.ZodString;
|
|
591
|
+
updatedAt: z.ZodString;
|
|
592
|
+
description: z.ZodString;
|
|
592
593
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
593
594
|
content: z.ZodString;
|
|
594
|
-
updatedAt: z.ZodString;
|
|
595
595
|
subAgentSkillId: z.ZodString;
|
|
596
596
|
subAgentId: z.ZodString;
|
|
597
597
|
index: z.ZodInt;
|