@inkeep/agents-core 0.65.2 → 0.66.1
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/_virtual/rolldown_runtime.js +25 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/index.d.ts +14 -0
- package/dist/constants/index.js +15 -0
- package/dist/constants/relation-types.d.ts +5 -0
- package/dist/constants/relation-types.js +6 -0
- package/dist/constants/session-events.d.ts +13 -0
- package/dist/constants/session-events.js +14 -0
- package/dist/constants/tool-names.d.ts +7 -0
- package/dist/constants/tool-names.js +8 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +8 -0
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/manage/agentFull.d.ts +7 -10
- package/dist/data-access/manage/agentFull.js +26 -28
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/projectFull.d.ts +6 -8
- package/dist/data-access/manage/projectFull.js +18 -18
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +16 -16
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +3 -3
- 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-schema.d.ts +4 -4
- package/dist/db/runtime/runtime-schema.d.ts +373 -373
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +5 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +48 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2613 -0
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +3 -0
- package/dist/test-utils/mocks/index.d.ts +2 -0
- package/dist/test-utils/mocks/index.js +3 -0
- package/dist/test-utils/mocks/logger.d.ts +27 -0
- package/dist/test-utils/mocks/logger.js +48 -0
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/schemas/skills.d.ts +51 -51
- package/dist/validation/schemas.d.ts +600 -600
- package/package.json +5 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { vi } from "vitest";
|
|
2
|
+
|
|
3
|
+
//#region src/test-utils/mocks/logger.d.ts
|
|
4
|
+
|
|
5
|
+
interface MockLogger {
|
|
6
|
+
info: ReturnType<typeof vi.fn>;
|
|
7
|
+
warn: ReturnType<typeof vi.fn>;
|
|
8
|
+
error: ReturnType<typeof vi.fn>;
|
|
9
|
+
debug: ReturnType<typeof vi.fn>;
|
|
10
|
+
child: ReturnType<typeof vi.fn>;
|
|
11
|
+
with: ReturnType<typeof vi.fn>;
|
|
12
|
+
getPinoInstance: ReturnType<typeof vi.fn>;
|
|
13
|
+
}
|
|
14
|
+
interface MockLoggerModule {
|
|
15
|
+
getLogger: ReturnType<typeof vi.fn>;
|
|
16
|
+
runWithLogContext: ReturnType<typeof vi.fn>;
|
|
17
|
+
}
|
|
18
|
+
interface MockLoggerResult {
|
|
19
|
+
mockLogger: MockLogger;
|
|
20
|
+
module: MockLoggerModule;
|
|
21
|
+
/** Clear all mock call data. Use in beforeEach when asserting on logger calls. */
|
|
22
|
+
clearAll: () => void;
|
|
23
|
+
}
|
|
24
|
+
declare function createMockLogger(): MockLogger;
|
|
25
|
+
declare function createMockLoggerModule(): MockLoggerResult;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { MockLogger, MockLoggerModule, MockLoggerResult, createMockLogger, createMockLoggerModule };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { vi } from "../../node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";
|
|
2
|
+
|
|
3
|
+
//#region src/test-utils/mocks/logger.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shared mock factories for the logger module.
|
|
6
|
+
*
|
|
7
|
+
* These utilities require `vitest` in the consumer's environment — they
|
|
8
|
+
* import `vi` from `vitest` to create mock functions. Only use in test files
|
|
9
|
+
* where vitest is already available as a devDependency.
|
|
10
|
+
*/
|
|
11
|
+
function createMockLogger() {
|
|
12
|
+
const mockLogger = {
|
|
13
|
+
info: vi.fn(),
|
|
14
|
+
warn: vi.fn(),
|
|
15
|
+
error: vi.fn(),
|
|
16
|
+
debug: vi.fn(),
|
|
17
|
+
child: vi.fn(),
|
|
18
|
+
with: vi.fn(),
|
|
19
|
+
getPinoInstance: vi.fn().mockReturnValue({
|
|
20
|
+
info: vi.fn(),
|
|
21
|
+
warn: vi.fn(),
|
|
22
|
+
error: vi.fn(),
|
|
23
|
+
debug: vi.fn(),
|
|
24
|
+
child: vi.fn().mockReturnThis()
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
mockLogger.child.mockReturnValue(mockLogger);
|
|
28
|
+
mockLogger.with.mockReturnValue(mockLogger);
|
|
29
|
+
return mockLogger;
|
|
30
|
+
}
|
|
31
|
+
function createMockLoggerModule() {
|
|
32
|
+
const mockLogger = createMockLogger();
|
|
33
|
+
const module = {
|
|
34
|
+
getLogger: vi.fn(() => mockLogger),
|
|
35
|
+
runWithLogContext: vi.fn((_bindings, fn) => fn())
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
mockLogger,
|
|
39
|
+
module,
|
|
40
|
+
clearAll: () => {
|
|
41
|
+
for (const fn of Object.values(mockLogger)) if (typeof fn === "function" && "mockClear" in fn) fn.mockClear();
|
|
42
|
+
for (const fn of Object.values(module)) if (typeof fn === "function" && "mockClear" in fn) fn.mockClear();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { createMockLogger, createMockLoggerModule };
|
|
@@ -13,7 +13,7 @@ function getJwtSecret() {
|
|
|
13
13
|
const secret = env.INKEEP_AGENTS_JWT_SIGNING_SECRET;
|
|
14
14
|
if (!secret) {
|
|
15
15
|
if (env.ENVIRONMENT === "production") throw new Error("INKEEP_AGENTS_JWT_SIGNING_SECRET environment variable is required in production");
|
|
16
|
-
logger.warn(
|
|
16
|
+
logger.warn("INKEEP_AGENTS_JWT_SIGNING_SECRET not set, using insecure default. DO NOT USE IN PRODUCTION!");
|
|
17
17
|
return new TextEncoder().encode(DEV_SECRET);
|
|
18
18
|
}
|
|
19
19
|
return new TextEncoder().encode(secret);
|
|
@@ -113,7 +113,7 @@ function extractComposioServerId(mcpUrl) {
|
|
|
113
113
|
async function deleteComposioConnectedAccount(accountId) {
|
|
114
114
|
const composioInstance = getComposioInstance();
|
|
115
115
|
if (!composioInstance) {
|
|
116
|
-
logger$1.info(
|
|
116
|
+
logger$1.info("Composio not configured, skipping account deletion");
|
|
117
117
|
return false;
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
@@ -131,7 +131,7 @@ async function deleteComposioConnectedAccount(accountId) {
|
|
|
131
131
|
async function fetchComposioConnectedAccounts(derivedUserId) {
|
|
132
132
|
const composioInstance = getComposioInstance();
|
|
133
133
|
if (!composioInstance) {
|
|
134
|
-
logger$1.info(
|
|
134
|
+
logger$1.info("Composio not configured, skipping connected accounts fetch");
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
137
|
try {
|
|
@@ -155,7 +155,7 @@ async function fetchComposioConnectedAccounts(derivedUserId) {
|
|
|
155
155
|
*/
|
|
156
156
|
async function isComposioMCPServerAuthenticated(tenantId, projectId, mcpServerUrl, credentialScope = "project", userId) {
|
|
157
157
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
158
|
-
logger$1.info(
|
|
158
|
+
logger$1.info("Composio API key not configured, skipping auth check");
|
|
159
159
|
return { authenticated: false };
|
|
160
160
|
}
|
|
161
161
|
const serverId = extractComposioServerId(mcpServerUrl);
|
|
@@ -166,7 +166,7 @@ async function isComposioMCPServerAuthenticated(tenantId, projectId, mcpServerUr
|
|
|
166
166
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
167
167
|
const composioInstance = getComposioInstance();
|
|
168
168
|
if (!composioInstance) {
|
|
169
|
-
logger$1.info(
|
|
169
|
+
logger$1.info("Composio not configured, skipping auth check");
|
|
170
170
|
return { authenticated: false };
|
|
171
171
|
}
|
|
172
172
|
try {
|
|
@@ -250,7 +250,7 @@ async function ensureComposioAccount(composioMcpServer, derivedUserId, staleAcco
|
|
|
250
250
|
*/
|
|
251
251
|
async function getComposioOAuthRedirectUrl(tenantId, projectId, mcpServerUrl, credentialScope, userId) {
|
|
252
252
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
253
|
-
logger$1.info(
|
|
253
|
+
logger$1.info("Composio API key not configured");
|
|
254
254
|
return null;
|
|
255
255
|
}
|
|
256
256
|
const serverId = extractComposioServerId(mcpServerUrl);
|
|
@@ -260,7 +260,7 @@ async function getComposioOAuthRedirectUrl(tenantId, projectId, mcpServerUrl, cr
|
|
|
260
260
|
}
|
|
261
261
|
const composioInstance = getComposioInstance();
|
|
262
262
|
if (!composioInstance) {
|
|
263
|
-
logger$1.info(
|
|
263
|
+
logger$1.info("Composio not configured");
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
266
266
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
@@ -300,12 +300,12 @@ async function transformComposioServer(composioMcpServer, authenticatedAuthConfi
|
|
|
300
300
|
*/
|
|
301
301
|
async function fetchComposioServers() {
|
|
302
302
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
303
|
-
logger$1.info(
|
|
303
|
+
logger$1.info("COMPOSIO_API_KEY not configured, skipping Composio servers");
|
|
304
304
|
return [];
|
|
305
305
|
}
|
|
306
306
|
const composioInstance = getComposioInstance();
|
|
307
307
|
if (!composioInstance) {
|
|
308
|
-
logger$1.info(
|
|
308
|
+
logger$1.info("Composio not configured, returning empty list");
|
|
309
309
|
return [];
|
|
310
310
|
}
|
|
311
311
|
try {
|
|
@@ -327,13 +327,13 @@ async function fetchComposioServers() {
|
|
|
327
327
|
*/
|
|
328
328
|
async function fetchSingleComposioServer(tenantId, projectId, mcpServerUrl, credentialScope = "project", userId) {
|
|
329
329
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
330
|
-
logger$1.debug(
|
|
330
|
+
logger$1.debug("COMPOSIO_API_KEY not configured");
|
|
331
331
|
return null;
|
|
332
332
|
}
|
|
333
333
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
334
334
|
const composioInstance = getComposioInstance();
|
|
335
335
|
if (!composioInstance) {
|
|
336
|
-
logger$1.info(
|
|
336
|
+
logger$1.info("Composio not configured, returning null");
|
|
337
337
|
return null;
|
|
338
338
|
}
|
|
339
339
|
try {
|
|
@@ -70,7 +70,7 @@ function getTracer(serviceName, serviceVersion) {
|
|
|
70
70
|
try {
|
|
71
71
|
return trace.getTracer(serviceName, serviceVersion);
|
|
72
72
|
} catch (_error) {
|
|
73
|
-
logger.debug(
|
|
73
|
+
logger.debug("OpenTelemetry tracer not available, using no-op tracer");
|
|
74
74
|
return noopTracer;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_orm_pg_core938 from "drizzle-orm/pg-core";
|
|
3
3
|
import * as drizzle_zod15 from "drizzle-zod";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/schemas/skills.d.ts
|
|
@@ -28,7 +28,7 @@ declare const SkillFileContentInputSchema: z.ZodObject<{
|
|
|
28
28
|
content: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
31
|
-
createdAt:
|
|
31
|
+
createdAt: drizzle_orm_pg_core938.PgColumn<{
|
|
32
32
|
name: "created_at";
|
|
33
33
|
tableName: "skill_files";
|
|
34
34
|
dataType: "string";
|
|
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
45
45
|
identity: undefined;
|
|
46
46
|
generated: undefined;
|
|
47
47
|
}, {}, {}>;
|
|
48
|
-
updatedAt:
|
|
48
|
+
updatedAt: drizzle_orm_pg_core938.PgColumn<{
|
|
49
49
|
name: "updated_at";
|
|
50
50
|
tableName: "skill_files";
|
|
51
51
|
dataType: "string";
|
|
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
62
62
|
identity: undefined;
|
|
63
63
|
generated: undefined;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
skillId:
|
|
65
|
+
skillId: drizzle_orm_pg_core938.PgColumn<{
|
|
66
66
|
name: "skill_id";
|
|
67
67
|
tableName: "skill_files";
|
|
68
68
|
dataType: "string";
|
|
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
81
81
|
}, {}, {
|
|
82
82
|
length: 64;
|
|
83
83
|
}>;
|
|
84
|
-
filePath:
|
|
84
|
+
filePath: drizzle_orm_pg_core938.PgColumn<{
|
|
85
85
|
name: "file_path";
|
|
86
86
|
tableName: "skill_files";
|
|
87
87
|
dataType: "string";
|
|
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
100
100
|
}, {}, {
|
|
101
101
|
length: 1024;
|
|
102
102
|
}>;
|
|
103
|
-
content:
|
|
103
|
+
content: drizzle_orm_pg_core938.PgColumn<{
|
|
104
104
|
name: "content";
|
|
105
105
|
tableName: "skill_files";
|
|
106
106
|
dataType: "string";
|
|
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
117
117
|
identity: undefined;
|
|
118
118
|
generated: undefined;
|
|
119
119
|
}, {}, {}>;
|
|
120
|
-
projectId:
|
|
120
|
+
projectId: drizzle_orm_pg_core938.PgColumn<{
|
|
121
121
|
name: "project_id";
|
|
122
122
|
tableName: "skill_files";
|
|
123
123
|
dataType: "string";
|
|
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
136
136
|
}, {}, {
|
|
137
137
|
length: 256;
|
|
138
138
|
}>;
|
|
139
|
-
tenantId:
|
|
139
|
+
tenantId: drizzle_orm_pg_core938.PgColumn<{
|
|
140
140
|
name: "tenant_id";
|
|
141
141
|
tableName: "skill_files";
|
|
142
142
|
dataType: "string";
|
|
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
155
155
|
}, {}, {
|
|
156
156
|
length: 256;
|
|
157
157
|
}>;
|
|
158
|
-
id:
|
|
158
|
+
id: drizzle_orm_pg_core938.PgColumn<{
|
|
159
159
|
name: "id";
|
|
160
160
|
tableName: "skill_files";
|
|
161
161
|
dataType: "string";
|
|
@@ -175,7 +175,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
175
175
|
length: 256;
|
|
176
176
|
}>;
|
|
177
177
|
}, drizzle_zod15.BuildRefine<{
|
|
178
|
-
createdAt:
|
|
178
|
+
createdAt: drizzle_orm_pg_core938.PgColumn<{
|
|
179
179
|
name: "created_at";
|
|
180
180
|
tableName: "skill_files";
|
|
181
181
|
dataType: "string";
|
|
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
192
192
|
identity: undefined;
|
|
193
193
|
generated: undefined;
|
|
194
194
|
}, {}, {}>;
|
|
195
|
-
updatedAt:
|
|
195
|
+
updatedAt: drizzle_orm_pg_core938.PgColumn<{
|
|
196
196
|
name: "updated_at";
|
|
197
197
|
tableName: "skill_files";
|
|
198
198
|
dataType: "string";
|
|
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
209
209
|
identity: undefined;
|
|
210
210
|
generated: undefined;
|
|
211
211
|
}, {}, {}>;
|
|
212
|
-
skillId:
|
|
212
|
+
skillId: drizzle_orm_pg_core938.PgColumn<{
|
|
213
213
|
name: "skill_id";
|
|
214
214
|
tableName: "skill_files";
|
|
215
215
|
dataType: "string";
|
|
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
228
228
|
}, {}, {
|
|
229
229
|
length: 64;
|
|
230
230
|
}>;
|
|
231
|
-
filePath:
|
|
231
|
+
filePath: drizzle_orm_pg_core938.PgColumn<{
|
|
232
232
|
name: "file_path";
|
|
233
233
|
tableName: "skill_files";
|
|
234
234
|
dataType: "string";
|
|
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
247
247
|
}, {}, {
|
|
248
248
|
length: 1024;
|
|
249
249
|
}>;
|
|
250
|
-
content:
|
|
250
|
+
content: drizzle_orm_pg_core938.PgColumn<{
|
|
251
251
|
name: "content";
|
|
252
252
|
tableName: "skill_files";
|
|
253
253
|
dataType: "string";
|
|
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
264
264
|
identity: undefined;
|
|
265
265
|
generated: undefined;
|
|
266
266
|
}, {}, {}>;
|
|
267
|
-
projectId:
|
|
267
|
+
projectId: drizzle_orm_pg_core938.PgColumn<{
|
|
268
268
|
name: "project_id";
|
|
269
269
|
tableName: "skill_files";
|
|
270
270
|
dataType: "string";
|
|
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
283
283
|
}, {}, {
|
|
284
284
|
length: 256;
|
|
285
285
|
}>;
|
|
286
|
-
tenantId:
|
|
286
|
+
tenantId: drizzle_orm_pg_core938.PgColumn<{
|
|
287
287
|
name: "tenant_id";
|
|
288
288
|
tableName: "skill_files";
|
|
289
289
|
dataType: "string";
|
|
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod15.BuildSchema<"select", {
|
|
|
302
302
|
}, {}, {
|
|
303
303
|
length: 256;
|
|
304
304
|
}>;
|
|
305
|
-
id:
|
|
305
|
+
id: drizzle_orm_pg_core938.PgColumn<{
|
|
306
306
|
name: "id";
|
|
307
307
|
tableName: "skill_files";
|
|
308
308
|
dataType: "string";
|
|
@@ -336,10 +336,10 @@ declare const SkillFileInsertSchema: z.ZodObject<{
|
|
|
336
336
|
in: {};
|
|
337
337
|
}>;
|
|
338
338
|
declare const SkillInsertSchema: z.ZodObject<{
|
|
339
|
+
content: z.ZodString;
|
|
339
340
|
name: z.ZodString;
|
|
340
341
|
description: z.ZodString;
|
|
341
342
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
342
|
-
content: z.ZodString;
|
|
343
343
|
}, {
|
|
344
344
|
out: {};
|
|
345
345
|
in: {};
|
|
@@ -352,12 +352,12 @@ declare const SkillUpdateSchema: z.ZodObject<{
|
|
|
352
352
|
}, z.core.$strip>;
|
|
353
353
|
declare const SkillApiSelectSchema: z.ZodObject<{
|
|
354
354
|
id: z.ZodString;
|
|
355
|
-
|
|
355
|
+
content: z.ZodString;
|
|
356
356
|
createdAt: z.ZodString;
|
|
357
|
+
name: z.ZodString;
|
|
357
358
|
updatedAt: z.ZodString;
|
|
358
359
|
description: z.ZodString;
|
|
359
360
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
360
|
-
content: 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,9 +384,9 @@ 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
|
+
content: z.ZodString;
|
|
387
388
|
name: z.ZodString;
|
|
388
389
|
description: z.ZodString;
|
|
389
|
-
content: z.ZodString;
|
|
390
390
|
}, z.core.$strict>>;
|
|
391
391
|
declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
392
392
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -400,9 +400,9 @@ 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
|
+
content: z.ZodOptional<z.ZodString>;
|
|
403
404
|
name: z.ZodOptional<z.ZodString>;
|
|
404
405
|
description: z.ZodOptional<z.ZodString>;
|
|
405
|
-
content: z.ZodOptional<z.ZodString>;
|
|
406
406
|
files: z.ZodNonOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
407
407
|
filePath: z.ZodString;
|
|
408
408
|
content: z.ZodString;
|
|
@@ -410,11 +410,11 @@ declare const SkillApiUpdateSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
|
410
410
|
}, z.core.$strict>>;
|
|
411
411
|
declare const SkillFileApiSelectSchema: z.ZodObject<{
|
|
412
412
|
id: z.ZodString;
|
|
413
|
-
createdAt: z.ZodString;
|
|
414
|
-
updatedAt: z.ZodString;
|
|
415
|
-
content: z.ZodString;
|
|
416
413
|
skillId: z.ZodString;
|
|
417
414
|
filePath: z.ZodString;
|
|
415
|
+
content: z.ZodString;
|
|
416
|
+
createdAt: z.ZodString;
|
|
417
|
+
updatedAt: z.ZodString;
|
|
418
418
|
}, z.core.$strip>;
|
|
419
419
|
declare const SkillFileApiInsertSchema: z.ZodObject<{
|
|
420
420
|
filePath: z.ZodString;
|
|
@@ -425,19 +425,19 @@ declare const SkillFileApiUpdateSchema: z.ZodObject<{
|
|
|
425
425
|
}, z.core.$strip>;
|
|
426
426
|
declare const SkillWithFilesApiSelectSchema: z.ZodObject<{
|
|
427
427
|
id: z.ZodString;
|
|
428
|
-
|
|
428
|
+
content: z.ZodString;
|
|
429
429
|
createdAt: z.ZodString;
|
|
430
|
+
name: z.ZodString;
|
|
430
431
|
updatedAt: z.ZodString;
|
|
431
432
|
description: z.ZodString;
|
|
432
433
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
433
|
-
content: z.ZodString;
|
|
434
434
|
files: z.ZodArray<z.ZodObject<{
|
|
435
435
|
id: z.ZodString;
|
|
436
|
-
createdAt: z.ZodString;
|
|
437
|
-
updatedAt: z.ZodString;
|
|
438
|
-
content: z.ZodString;
|
|
439
436
|
skillId: z.ZodString;
|
|
440
437
|
filePath: z.ZodString;
|
|
438
|
+
content: z.ZodString;
|
|
439
|
+
createdAt: z.ZodString;
|
|
440
|
+
updatedAt: z.ZodString;
|
|
441
441
|
}, z.core.$strip>>;
|
|
442
442
|
}, z.core.$strip>;
|
|
443
443
|
declare const SubAgentSkillSelectSchema: z.ZodObject<{
|
|
@@ -486,41 +486,41 @@ declare const SubAgentSkillUpdateSchema: z.ZodObject<{
|
|
|
486
486
|
in: {};
|
|
487
487
|
}>;
|
|
488
488
|
declare const SubAgentSkillApiSelectSchema: z.ZodObject<{
|
|
489
|
+
subAgentId: z.ZodString;
|
|
489
490
|
id: z.ZodString;
|
|
491
|
+
skillId: z.ZodString;
|
|
490
492
|
createdAt: z.ZodString;
|
|
491
493
|
updatedAt: z.ZodString;
|
|
492
|
-
subAgentId: z.ZodString;
|
|
493
494
|
index: z.ZodInt;
|
|
494
495
|
alwaysLoaded: z.ZodBoolean;
|
|
495
|
-
skillId: z.ZodString;
|
|
496
496
|
}, z.core.$strip>;
|
|
497
497
|
declare const SubAgentSkillApiInsertSchema: z.ZodObject<{
|
|
498
498
|
agentId: z.ZodString;
|
|
499
499
|
subAgentId: z.ZodString;
|
|
500
|
+
skillId: z.ZodString;
|
|
500
501
|
index: z.ZodInt;
|
|
501
502
|
alwaysLoaded: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
502
|
-
skillId: z.ZodString;
|
|
503
503
|
}, {
|
|
504
504
|
out: {};
|
|
505
505
|
in: {};
|
|
506
506
|
}>;
|
|
507
507
|
declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
|
|
508
|
+
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
508
509
|
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
510
|
+
skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
509
511
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
510
512
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
511
|
-
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
512
513
|
index: z.ZodOptional<z.ZodOptional<z.ZodInt>>;
|
|
513
514
|
alwaysLoaded: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>>;
|
|
514
|
-
skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
515
515
|
}, z.core.$strip>;
|
|
516
516
|
declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
|
|
517
517
|
id: z.ZodString;
|
|
518
|
-
|
|
518
|
+
content: z.ZodString;
|
|
519
519
|
createdAt: z.ZodString;
|
|
520
|
+
name: z.ZodString;
|
|
520
521
|
updatedAt: z.ZodString;
|
|
521
522
|
description: z.ZodString;
|
|
522
523
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
523
|
-
content: z.ZodString;
|
|
524
524
|
subAgentSkillId: z.ZodString;
|
|
525
525
|
subAgentId: z.ZodString;
|
|
526
526
|
index: z.ZodInt;
|
|
@@ -529,41 +529,41 @@ declare const SubAgentSkillWithIndexSchema: z.ZodObject<{
|
|
|
529
529
|
declare const SkillFileResponse: z.ZodObject<{
|
|
530
530
|
data: z.ZodObject<{
|
|
531
531
|
id: z.ZodString;
|
|
532
|
-
createdAt: z.ZodString;
|
|
533
|
-
updatedAt: z.ZodString;
|
|
534
|
-
content: z.ZodString;
|
|
535
532
|
skillId: z.ZodString;
|
|
536
533
|
filePath: z.ZodString;
|
|
534
|
+
content: z.ZodString;
|
|
535
|
+
createdAt: z.ZodString;
|
|
536
|
+
updatedAt: 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
541
|
id: z.ZodString;
|
|
542
|
-
|
|
542
|
+
content: z.ZodString;
|
|
543
543
|
createdAt: z.ZodString;
|
|
544
|
+
name: z.ZodString;
|
|
544
545
|
updatedAt: z.ZodString;
|
|
545
546
|
description: z.ZodString;
|
|
546
547
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
547
|
-
content: z.ZodString;
|
|
548
548
|
files: z.ZodArray<z.ZodObject<{
|
|
549
549
|
id: z.ZodString;
|
|
550
|
-
createdAt: z.ZodString;
|
|
551
|
-
updatedAt: z.ZodString;
|
|
552
|
-
content: z.ZodString;
|
|
553
550
|
skillId: z.ZodString;
|
|
554
551
|
filePath: z.ZodString;
|
|
552
|
+
content: z.ZodString;
|
|
553
|
+
createdAt: z.ZodString;
|
|
554
|
+
updatedAt: 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
560
|
id: z.ZodString;
|
|
561
|
-
|
|
561
|
+
content: z.ZodString;
|
|
562
562
|
createdAt: z.ZodString;
|
|
563
|
+
name: z.ZodString;
|
|
563
564
|
updatedAt: z.ZodString;
|
|
564
565
|
description: z.ZodString;
|
|
565
566
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
566
|
-
content: z.ZodString;
|
|
567
567
|
}, z.core.$strip>>;
|
|
568
568
|
pagination: z.ZodObject<{
|
|
569
569
|
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -574,24 +574,24 @@ declare const SkillListResponse: z.ZodObject<{
|
|
|
574
574
|
}, z.core.$strip>;
|
|
575
575
|
declare const SubAgentSkillResponse: z.ZodObject<{
|
|
576
576
|
data: z.ZodObject<{
|
|
577
|
+
subAgentId: z.ZodString;
|
|
577
578
|
id: z.ZodString;
|
|
579
|
+
skillId: z.ZodString;
|
|
578
580
|
createdAt: z.ZodString;
|
|
579
581
|
updatedAt: z.ZodString;
|
|
580
|
-
subAgentId: z.ZodString;
|
|
581
582
|
index: z.ZodInt;
|
|
582
583
|
alwaysLoaded: z.ZodBoolean;
|
|
583
|
-
skillId: z.ZodString;
|
|
584
584
|
}, z.core.$strip>;
|
|
585
585
|
}, z.core.$strip>;
|
|
586
586
|
declare const SubAgentSkillWithIndexArrayResponse: z.ZodObject<{
|
|
587
587
|
data: z.ZodArray<z.ZodObject<{
|
|
588
588
|
id: z.ZodString;
|
|
589
|
-
|
|
589
|
+
content: z.ZodString;
|
|
590
590
|
createdAt: z.ZodString;
|
|
591
|
+
name: z.ZodString;
|
|
591
592
|
updatedAt: z.ZodString;
|
|
592
593
|
description: z.ZodString;
|
|
593
594
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
594
|
-
content: z.ZodString;
|
|
595
595
|
subAgentSkillId: z.ZodString;
|
|
596
596
|
subAgentId: z.ZodString;
|
|
597
597
|
index: z.ZodInt;
|