@inkeep/agents-core 0.0.0-dev-20260331174912 → 0.0.0-dev-20260331192950
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 +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -1
- package/dist/client-exports.js +2 -1
- package/dist/constants/models.d.ts +2 -1
- package/dist/constants/models.js +6 -1
- package/dist/constants/otel-attributes.d.ts +2 -0
- package/dist/constants/otel-attributes.js +2 -0
- package/dist/data-access/manage/agents.d.ts +79 -37
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +16 -16
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -12
- package/dist/data-access/manage/subAgents.d.ts +51 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +468 -424
- package/dist/db/runtime/runtime-schema.d.ts +378 -378
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/model-factory.js +24 -9
- package/dist/utils/usage-cost-middleware.d.ts +2 -1
- package/dist/utils/usage-cost-middleware.js +22 -5
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +1412 -540
- package/dist/validation/schemas.js +3 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GATEWAY_ROUTABLE_PROVIDERS_SET } from "../constants/models.js";
|
|
1
2
|
import { getLogger } from "./logger.js";
|
|
2
3
|
import { createMockModel } from "./mock-provider.js";
|
|
3
4
|
import { gatewayCostMiddleware } from "./usage-cost-middleware.js";
|
|
@@ -12,11 +13,6 @@ import { createOpenRouter, openrouter } from "@openrouter/ai-sdk-provider";
|
|
|
12
13
|
|
|
13
14
|
//#region src/utils/model-factory.ts
|
|
14
15
|
const logger = getLogger("ModelFactory");
|
|
15
|
-
const GATEWAY_ROUTABLE_PROVIDERS = [
|
|
16
|
-
"anthropic",
|
|
17
|
-
"openai",
|
|
18
|
-
"google"
|
|
19
|
-
];
|
|
20
16
|
const nimDefault = createOpenAICompatible({
|
|
21
17
|
name: "nim",
|
|
22
18
|
baseURL: "https://integrate.api.nvidia.com/v1",
|
|
@@ -114,9 +110,9 @@ var ModelFactory = class ModelFactory {
|
|
|
114
110
|
hasProviderOptions: !!modelSettings.providerOptions
|
|
115
111
|
}, "Creating language model from config");
|
|
116
112
|
const providerConfig = ModelFactory.extractProviderConfig(modelSettings.providerOptions);
|
|
117
|
-
const shouldRouteViaGateway = !!process.env.AI_GATEWAY_API_KEY &&
|
|
113
|
+
const shouldRouteViaGateway = !!process.env.AI_GATEWAY_API_KEY && GATEWAY_ROUTABLE_PROVIDERS_SET.has(provider) && Object.keys(providerConfig).length === 0;
|
|
118
114
|
let model;
|
|
119
|
-
if (shouldRouteViaGateway) model = gateway(`${provider}/${modelName}`);
|
|
115
|
+
if (shouldRouteViaGateway) model = gateway(!!modelSettings.allowedProviders?.length ? modelName : `${provider}/${modelName}`);
|
|
120
116
|
else if (provider !== "mock" && (provider === "azure" || Object.keys(providerConfig).length > 0)) {
|
|
121
117
|
logger.info({ config: providerConfig }, `Applying custom ${provider} provider configuration`);
|
|
122
118
|
model = ModelFactory.createProvider(provider, providerConfig).languageModel(modelName);
|
|
@@ -208,11 +204,30 @@ var ModelFactory = class ModelFactory {
|
|
|
208
204
|
const modelString = modelSettings?.model?.trim();
|
|
209
205
|
const model = ModelFactory.createModel({
|
|
210
206
|
model: modelString,
|
|
211
|
-
providerOptions: modelSettings?.providerOptions
|
|
207
|
+
providerOptions: modelSettings?.providerOptions,
|
|
208
|
+
allowedProviders: modelSettings?.allowedProviders
|
|
212
209
|
});
|
|
213
210
|
const generationParams = ModelFactory.getGenerationParams(modelSettings?.providerOptions);
|
|
214
|
-
|
|
211
|
+
let streamProviderOptions = ModelFactory.extractStreamProviderOptions(modelSettings?.providerOptions);
|
|
215
212
|
const maxDuration = modelSettings?.providerOptions?.maxDuration;
|
|
213
|
+
if (process.env.AI_GATEWAY_API_KEY) {
|
|
214
|
+
const hasAllowedProviders = !!modelSettings?.allowedProviders?.length;
|
|
215
|
+
const hasFallbackModels = !!modelSettings?.fallbackModels?.length;
|
|
216
|
+
if (hasAllowedProviders || hasFallbackModels) {
|
|
217
|
+
const existingGateway = streamProviderOptions?.gateway ?? {};
|
|
218
|
+
streamProviderOptions = {
|
|
219
|
+
...streamProviderOptions,
|
|
220
|
+
gateway: {
|
|
221
|
+
...existingGateway,
|
|
222
|
+
...hasFallbackModels && { models: modelSettings.fallbackModels },
|
|
223
|
+
...hasAllowedProviders && {
|
|
224
|
+
order: modelSettings.allowedProviders,
|
|
225
|
+
only: modelSettings.allowedProviders
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
|
216
231
|
return {
|
|
217
232
|
model,
|
|
218
233
|
...generationParams,
|
|
@@ -8,6 +8,7 @@ declare function extractUsageTokens(usage: any): {
|
|
|
8
8
|
cachedReadTokens?: number;
|
|
9
9
|
cachedWriteTokens?: number;
|
|
10
10
|
};
|
|
11
|
+
declare function normalizeModelId(modelId: string): string;
|
|
11
12
|
declare const gatewayCostMiddleware: LanguageModelMiddleware;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { extractUsageTokens, gatewayCostMiddleware };
|
|
14
|
+
export { extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SPAN_KEYS } from "../constants/otel-attributes.js";
|
|
2
|
+
import { GATEWAY_ROUTABLE_PROVIDERS_SET } from "../constants/models.js";
|
|
2
3
|
import { getLogger } from "./logger.js";
|
|
3
4
|
import { trace } from "@opentelemetry/api";
|
|
4
5
|
|
|
@@ -22,19 +23,35 @@ function extractGatewayCost(providerMetadata) {
|
|
|
22
23
|
if (!Number.isNaN(marketCost) && marketCost > 0) return marketCost;
|
|
23
24
|
return 0;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function normalizeModelId(modelId) {
|
|
27
|
+
const slashIndex = modelId.indexOf("/");
|
|
28
|
+
if (slashIndex === -1) return modelId;
|
|
29
|
+
const prefix = modelId.slice(0, slashIndex);
|
|
30
|
+
if (GATEWAY_ROUTABLE_PROVIDERS_SET.has(prefix)) return modelId.slice(slashIndex + 1);
|
|
31
|
+
return modelId;
|
|
32
|
+
}
|
|
33
|
+
function setGatewayAttributesOnSpan(providerMetadata) {
|
|
26
34
|
const activeSpan = trace.getActiveSpan();
|
|
27
35
|
if (!activeSpan) return;
|
|
28
36
|
const cost = extractGatewayCost(providerMetadata);
|
|
29
37
|
activeSpan.setAttribute(SPAN_KEYS.GEN_AI_COST_ESTIMATED_USD, cost);
|
|
30
|
-
|
|
38
|
+
const gw = providerMetadata?.gateway;
|
|
39
|
+
if (gw) {
|
|
40
|
+
if (cost === 0) logger.warn({ gateway: gw }, "Routed through gateway but no cost data in response");
|
|
41
|
+
const routing = gw.routing;
|
|
42
|
+
if (routing?.finalProvider) activeSpan.setAttribute(SPAN_KEYS.GEN_AI_RESPONSE_PROVIDER, routing.finalProvider);
|
|
43
|
+
if (routing?.resolvedProvider) activeSpan.setAttribute(SPAN_KEYS.GEN_AI_REQUEST_PROVIDER, routing.resolvedProvider);
|
|
44
|
+
}
|
|
31
45
|
}
|
|
32
46
|
const gatewayCostMiddleware = {
|
|
33
47
|
specificationVersion: "v3",
|
|
48
|
+
overrideModelId({ model }) {
|
|
49
|
+
return normalizeModelId(model.modelId);
|
|
50
|
+
},
|
|
34
51
|
async wrapGenerate({ doGenerate }) {
|
|
35
52
|
const result = await doGenerate();
|
|
36
53
|
try {
|
|
37
|
-
|
|
54
|
+
setGatewayAttributesOnSpan(result.providerMetadata);
|
|
38
55
|
} catch (error) {
|
|
39
56
|
logger.warn({ error }, "Failed to extract gateway cost in wrapGenerate");
|
|
40
57
|
}
|
|
@@ -46,7 +63,7 @@ const gatewayCostMiddleware = {
|
|
|
46
63
|
stream: stream.pipeThrough(new TransformStream({ transform(chunk, controller) {
|
|
47
64
|
controller.enqueue(chunk);
|
|
48
65
|
if (chunk.type === "finish") try {
|
|
49
|
-
|
|
66
|
+
setGatewayAttributesOnSpan(chunk.providerMetadata);
|
|
50
67
|
} catch (error) {
|
|
51
68
|
logger.warn({ error }, "Failed to extract gateway cost in wrapStream");
|
|
52
69
|
}
|
|
@@ -57,4 +74,4 @@ const gatewayCostMiddleware = {
|
|
|
57
74
|
};
|
|
58
75
|
|
|
59
76
|
//#endregion
|
|
60
|
-
export { extractUsageTokens, gatewayCostMiddleware };
|
|
77
|
+
export { extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod15 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_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.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_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.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,5 +1,5 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_orm_pg_core1432 from "drizzle-orm/pg-core";
|
|
3
3
|
import * as drizzle_zod363 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_zod363.BuildSchema<"select", {
|
|
31
|
-
createdAt:
|
|
31
|
+
createdAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
32
32
|
name: "created_at";
|
|
33
33
|
tableName: "skill_files";
|
|
34
34
|
dataType: "string";
|
|
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
45
45
|
identity: undefined;
|
|
46
46
|
generated: undefined;
|
|
47
47
|
}, {}, {}>;
|
|
48
|
-
updatedAt:
|
|
48
|
+
updatedAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
49
49
|
name: "updated_at";
|
|
50
50
|
tableName: "skill_files";
|
|
51
51
|
dataType: "string";
|
|
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
62
62
|
identity: undefined;
|
|
63
63
|
generated: undefined;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
skillId:
|
|
65
|
+
skillId: drizzle_orm_pg_core1432.PgColumn<{
|
|
66
66
|
name: "skill_id";
|
|
67
67
|
tableName: "skill_files";
|
|
68
68
|
dataType: "string";
|
|
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
81
81
|
}, {}, {
|
|
82
82
|
length: 64;
|
|
83
83
|
}>;
|
|
84
|
-
filePath:
|
|
84
|
+
filePath: drizzle_orm_pg_core1432.PgColumn<{
|
|
85
85
|
name: "file_path";
|
|
86
86
|
tableName: "skill_files";
|
|
87
87
|
dataType: "string";
|
|
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
100
100
|
}, {}, {
|
|
101
101
|
length: 1024;
|
|
102
102
|
}>;
|
|
103
|
-
content:
|
|
103
|
+
content: drizzle_orm_pg_core1432.PgColumn<{
|
|
104
104
|
name: "content";
|
|
105
105
|
tableName: "skill_files";
|
|
106
106
|
dataType: "string";
|
|
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
117
117
|
identity: undefined;
|
|
118
118
|
generated: undefined;
|
|
119
119
|
}, {}, {}>;
|
|
120
|
-
projectId:
|
|
120
|
+
projectId: drizzle_orm_pg_core1432.PgColumn<{
|
|
121
121
|
name: "project_id";
|
|
122
122
|
tableName: "skill_files";
|
|
123
123
|
dataType: "string";
|
|
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
136
136
|
}, {}, {
|
|
137
137
|
length: 256;
|
|
138
138
|
}>;
|
|
139
|
-
tenantId:
|
|
139
|
+
tenantId: drizzle_orm_pg_core1432.PgColumn<{
|
|
140
140
|
name: "tenant_id";
|
|
141
141
|
tableName: "skill_files";
|
|
142
142
|
dataType: "string";
|
|
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
155
155
|
}, {}, {
|
|
156
156
|
length: 256;
|
|
157
157
|
}>;
|
|
158
|
-
id:
|
|
158
|
+
id: drizzle_orm_pg_core1432.PgColumn<{
|
|
159
159
|
name: "id";
|
|
160
160
|
tableName: "skill_files";
|
|
161
161
|
dataType: "string";
|
|
@@ -175,7 +175,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
175
175
|
length: 256;
|
|
176
176
|
}>;
|
|
177
177
|
}, drizzle_zod363.BuildRefine<{
|
|
178
|
-
createdAt:
|
|
178
|
+
createdAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
179
179
|
name: "created_at";
|
|
180
180
|
tableName: "skill_files";
|
|
181
181
|
dataType: "string";
|
|
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
192
192
|
identity: undefined;
|
|
193
193
|
generated: undefined;
|
|
194
194
|
}, {}, {}>;
|
|
195
|
-
updatedAt:
|
|
195
|
+
updatedAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
196
196
|
name: "updated_at";
|
|
197
197
|
tableName: "skill_files";
|
|
198
198
|
dataType: "string";
|
|
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
209
209
|
identity: undefined;
|
|
210
210
|
generated: undefined;
|
|
211
211
|
}, {}, {}>;
|
|
212
|
-
skillId:
|
|
212
|
+
skillId: drizzle_orm_pg_core1432.PgColumn<{
|
|
213
213
|
name: "skill_id";
|
|
214
214
|
tableName: "skill_files";
|
|
215
215
|
dataType: "string";
|
|
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
228
228
|
}, {}, {
|
|
229
229
|
length: 64;
|
|
230
230
|
}>;
|
|
231
|
-
filePath:
|
|
231
|
+
filePath: drizzle_orm_pg_core1432.PgColumn<{
|
|
232
232
|
name: "file_path";
|
|
233
233
|
tableName: "skill_files";
|
|
234
234
|
dataType: "string";
|
|
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
247
247
|
}, {}, {
|
|
248
248
|
length: 1024;
|
|
249
249
|
}>;
|
|
250
|
-
content:
|
|
250
|
+
content: drizzle_orm_pg_core1432.PgColumn<{
|
|
251
251
|
name: "content";
|
|
252
252
|
tableName: "skill_files";
|
|
253
253
|
dataType: "string";
|
|
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
264
264
|
identity: undefined;
|
|
265
265
|
generated: undefined;
|
|
266
266
|
}, {}, {}>;
|
|
267
|
-
projectId:
|
|
267
|
+
projectId: drizzle_orm_pg_core1432.PgColumn<{
|
|
268
268
|
name: "project_id";
|
|
269
269
|
tableName: "skill_files";
|
|
270
270
|
dataType: "string";
|
|
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
283
283
|
}, {}, {
|
|
284
284
|
length: 256;
|
|
285
285
|
}>;
|
|
286
|
-
tenantId:
|
|
286
|
+
tenantId: drizzle_orm_pg_core1432.PgColumn<{
|
|
287
287
|
name: "tenant_id";
|
|
288
288
|
tableName: "skill_files";
|
|
289
289
|
dataType: "string";
|
|
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod363.BuildSchema<"select", {
|
|
|
302
302
|
}, {}, {
|
|
303
303
|
length: 256;
|
|
304
304
|
}>;
|
|
305
|
-
id:
|
|
305
|
+
id: drizzle_orm_pg_core1432.PgColumn<{
|
|
306
306
|
name: "id";
|
|
307
307
|
tableName: "skill_files";
|
|
308
308
|
dataType: "string";
|
|
@@ -337,8 +337,8 @@ declare const SkillFileInsertSchema: z.ZodObject<{
|
|
|
337
337
|
}>;
|
|
338
338
|
declare const SkillInsertSchema: z.ZodObject<{
|
|
339
339
|
name: z.ZodString;
|
|
340
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
341
340
|
description: z.ZodString;
|
|
341
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
342
342
|
content: z.ZodString;
|
|
343
343
|
}, {
|
|
344
344
|
out: {};
|
|
@@ -352,11 +352,11 @@ declare const SkillUpdateSchema: z.ZodObject<{
|
|
|
352
352
|
}, z.core.$strip>;
|
|
353
353
|
declare const SkillApiSelectSchema: z.ZodObject<{
|
|
354
354
|
id: z.ZodString;
|
|
355
|
-
name: z.ZodString;
|
|
356
355
|
createdAt: z.ZodString;
|
|
356
|
+
name: z.ZodString;
|
|
357
357
|
updatedAt: z.ZodString;
|
|
358
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
359
358
|
description: z.ZodString;
|
|
359
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
360
360
|
content: z.ZodString;
|
|
361
361
|
}, z.core.$strip>;
|
|
362
362
|
declare const SkillApiInsertSchema: z.ZodPipe<z.ZodPipe<z.ZodObject<{
|
|
@@ -413,8 +413,8 @@ declare const SkillFileApiSelectSchema: z.ZodObject<{
|
|
|
413
413
|
createdAt: z.ZodString;
|
|
414
414
|
updatedAt: z.ZodString;
|
|
415
415
|
content: z.ZodString;
|
|
416
|
-
filePath: 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;
|
|
@@ -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
|
-
name: z.ZodString;
|
|
429
428
|
createdAt: z.ZodString;
|
|
429
|
+
name: z.ZodString;
|
|
430
430
|
updatedAt: z.ZodString;
|
|
431
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
432
431
|
description: z.ZodString;
|
|
432
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
433
433
|
content: z.ZodString;
|
|
434
434
|
files: z.ZodArray<z.ZodObject<{
|
|
435
435
|
id: z.ZodString;
|
|
436
436
|
createdAt: z.ZodString;
|
|
437
437
|
updatedAt: z.ZodString;
|
|
438
438
|
content: z.ZodString;
|
|
439
|
-
filePath: 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<{
|
|
@@ -489,17 +489,17 @@ declare const SubAgentSkillApiSelectSchema: z.ZodObject<{
|
|
|
489
489
|
id: z.ZodString;
|
|
490
490
|
createdAt: z.ZodString;
|
|
491
491
|
updatedAt: z.ZodString;
|
|
492
|
+
skillId: z.ZodString;
|
|
492
493
|
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
|
-
subAgentId: z.ZodString;
|
|
499
498
|
agentId: z.ZodString;
|
|
499
|
+
skillId: z.ZodString;
|
|
500
|
+
subAgentId: 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: {};
|
|
@@ -508,18 +508,18 @@ declare const SubAgentSkillApiUpdateSchema: z.ZodObject<{
|
|
|
508
508
|
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
509
509
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
510
510
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
511
|
+
skillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
511
512
|
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
|
-
name: z.ZodString;
|
|
519
518
|
createdAt: z.ZodString;
|
|
519
|
+
name: z.ZodString;
|
|
520
520
|
updatedAt: z.ZodString;
|
|
521
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
522
521
|
description: z.ZodString;
|
|
522
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
523
523
|
content: z.ZodString;
|
|
524
524
|
subAgentSkillId: z.ZodString;
|
|
525
525
|
subAgentId: z.ZodString;
|
|
@@ -532,37 +532,37 @@ declare const SkillFileResponse: z.ZodObject<{
|
|
|
532
532
|
createdAt: z.ZodString;
|
|
533
533
|
updatedAt: z.ZodString;
|
|
534
534
|
content: z.ZodString;
|
|
535
|
-
filePath: 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
541
|
id: z.ZodString;
|
|
542
|
-
name: z.ZodString;
|
|
543
542
|
createdAt: z.ZodString;
|
|
543
|
+
name: z.ZodString;
|
|
544
544
|
updatedAt: z.ZodString;
|
|
545
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
546
545
|
description: z.ZodString;
|
|
546
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
547
547
|
content: z.ZodString;
|
|
548
548
|
files: z.ZodArray<z.ZodObject<{
|
|
549
549
|
id: z.ZodString;
|
|
550
550
|
createdAt: z.ZodString;
|
|
551
551
|
updatedAt: z.ZodString;
|
|
552
552
|
content: z.ZodString;
|
|
553
|
-
filePath: 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
560
|
id: z.ZodString;
|
|
561
|
-
name: z.ZodString;
|
|
562
561
|
createdAt: z.ZodString;
|
|
562
|
+
name: z.ZodString;
|
|
563
563
|
updatedAt: z.ZodString;
|
|
564
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
565
564
|
description: z.ZodString;
|
|
565
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
566
566
|
content: z.ZodString;
|
|
567
567
|
}, z.core.$strip>>;
|
|
568
568
|
pagination: z.ZodObject<{
|
|
@@ -577,20 +577,20 @@ declare const SubAgentSkillResponse: z.ZodObject<{
|
|
|
577
577
|
id: z.ZodString;
|
|
578
578
|
createdAt: z.ZodString;
|
|
579
579
|
updatedAt: z.ZodString;
|
|
580
|
+
skillId: z.ZodString;
|
|
580
581
|
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
|
-
name: z.ZodString;
|
|
590
589
|
createdAt: z.ZodString;
|
|
590
|
+
name: z.ZodString;
|
|
591
591
|
updatedAt: z.ZodString;
|
|
592
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
593
592
|
description: z.ZodString;
|
|
593
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
594
594
|
content: z.ZodString;
|
|
595
595
|
subAgentSkillId: z.ZodString;
|
|
596
596
|
subAgentId: z.ZodString;
|