@inkeep/agents-core 0.74.2 → 0.74.4
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -1
- package/dist/client-exports.js +2 -1
- package/dist/constants/models.d.ts +4 -0
- package/dist/constants/models.js +4 -0
- package/dist/constants/otel-attributes.d.ts +4 -0
- package/dist/constants/otel-attributes.js +4 -0
- package/dist/data-access/manage/agents.d.ts +46 -46
- package/dist/data-access/manage/artifactComponents.d.ts +16 -16
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apps.d.ts +13 -13
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +27 -27
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +484 -484
- package/dist/db/runtime/runtime-schema.d.ts +455 -455
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/cache-debug-query.d.ts +43 -0
- package/dist/utils/cache-debug-query.js +70 -0
- package/dist/utils/cache-debug-walk.d.ts +36 -0
- package/dist/utils/cache-debug-walk.js +91 -0
- package/dist/utils/cache-state.d.ts +36 -0
- package/dist/utils/cache-state.js +33 -0
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/model-factory.d.ts +7 -0
- package/dist/utils/model-factory.js +18 -2
- package/dist/utils/token-estimator.d.ts +1 -0
- package/dist/utils/usage-cost-middleware.d.ts +3 -1
- package/dist/utils/usage-cost-middleware.js +70 -12
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +52 -52
- package/dist/validation/schemas.d.ts +2504 -2504
- package/package.json +3 -2
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import { SPAN_KEYS } from "../constants/otel-attributes.js";
|
|
2
2
|
import { GATEWAY_ROUTABLE_PROVIDERS_SET } from "../constants/models.js";
|
|
3
3
|
import { getLogger } from "./logger.js";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
4
5
|
import { trace } from "@opentelemetry/api";
|
|
5
6
|
|
|
6
7
|
//#region src/utils/usage-cost-middleware.ts
|
|
7
8
|
const logger = getLogger("usage-cost-middleware");
|
|
8
9
|
function extractUsageTokens(usage) {
|
|
10
|
+
const inputTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.total ?? 0 : usage?.inputTokens ?? 0;
|
|
11
|
+
const outputTokens = typeof usage?.outputTokens === "object" ? usage.outputTokens.total ?? 0 : usage?.outputTokens ?? 0;
|
|
12
|
+
const reasoningTokens = typeof usage?.outputTokens === "object" ? usage.outputTokens.reasoning : void 0;
|
|
13
|
+
let cachedReadTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheRead : void 0;
|
|
14
|
+
const cachedWriteTokens = typeof usage?.inputTokens === "object" ? usage.inputTokens.cacheWrite : void 0;
|
|
15
|
+
if (cachedReadTokens === void 0) {
|
|
16
|
+
const geminiCacheRead = usage?.inputTokenDetails?.cacheReadTokens ?? usage?.cachedInputTokens;
|
|
17
|
+
if (typeof geminiCacheRead === "number") cachedReadTokens = geminiCacheRead;
|
|
18
|
+
}
|
|
9
19
|
return {
|
|
10
|
-
inputTokens
|
|
11
|
-
outputTokens
|
|
12
|
-
reasoningTokens
|
|
13
|
-
cachedReadTokens
|
|
14
|
-
cachedWriteTokens
|
|
20
|
+
inputTokens,
|
|
21
|
+
outputTokens,
|
|
22
|
+
reasoningTokens,
|
|
23
|
+
cachedReadTokens,
|
|
24
|
+
cachedWriteTokens
|
|
15
25
|
};
|
|
16
26
|
}
|
|
17
27
|
function extractGatewayCost(providerMetadata) {
|
|
@@ -43,29 +53,77 @@ function setGatewayAttributesOnSpan(providerMetadata) {
|
|
|
43
53
|
if (routing?.resolvedProvider) activeSpan.setAttribute(SPAN_KEYS.GEN_AI_REQUEST_PROVIDER, routing.resolvedProvider);
|
|
44
54
|
}
|
|
45
55
|
}
|
|
56
|
+
function countCacheMarkers(prompt, callProviderOptions) {
|
|
57
|
+
let count = 0;
|
|
58
|
+
const caching = callProviderOptions?.gateway?.caching;
|
|
59
|
+
if (caching && caching !== "off" && caching !== "disabled") count++;
|
|
60
|
+
for (const msg of prompt) if (msg.providerOptions?.anthropic?.cacheControl) count++;
|
|
61
|
+
return Math.min(count, 4);
|
|
62
|
+
}
|
|
63
|
+
function computePrefixSignature(prompt, tools) {
|
|
64
|
+
const systemParts = [];
|
|
65
|
+
for (const msg of prompt) {
|
|
66
|
+
if (msg.role !== "system") continue;
|
|
67
|
+
if (typeof msg.content === "string") systemParts.push(msg.content);
|
|
68
|
+
else if (Array.isArray(msg.content)) {
|
|
69
|
+
for (const part of msg.content) if (typeof part === "string") systemParts.push(part);
|
|
70
|
+
else if (part?.text) systemParts.push(part.text);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const toolParts = (tools ?? []).map((tool) => [
|
|
74
|
+
tool.name ?? "",
|
|
75
|
+
tool.description ?? "",
|
|
76
|
+
tool.parameters ? JSON.stringify(tool.parameters) : ""
|
|
77
|
+
]);
|
|
78
|
+
return createHash("sha256").update(JSON.stringify([systemParts, toolParts])).digest("hex").slice(0, 10);
|
|
79
|
+
}
|
|
80
|
+
function setCacheAttributesOnSpan(params, usage) {
|
|
81
|
+
const activeSpan = trace.getActiveSpan();
|
|
82
|
+
if (!activeSpan) return;
|
|
83
|
+
const { cachedReadTokens, cachedWriteTokens } = extractUsageTokens(usage);
|
|
84
|
+
activeSpan.setAttribute(SPAN_KEYS.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS, typeof cachedReadTokens === "number" ? cachedReadTokens : 0);
|
|
85
|
+
activeSpan.setAttribute(SPAN_KEYS.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS, typeof cachedWriteTokens === "number" ? cachedWriteTokens : 0);
|
|
86
|
+
const prompt = params.prompt ?? [];
|
|
87
|
+
const markerCount = countCacheMarkers(prompt, params.providerOptions);
|
|
88
|
+
activeSpan.setAttribute(SPAN_KEYS.CACHE_INTENT_MARKER_COUNT, markerCount);
|
|
89
|
+
const prefixSignature = computePrefixSignature(prompt, params.tools);
|
|
90
|
+
activeSpan.setAttribute(SPAN_KEYS.CACHE_INTENT_PREFIX_SIGNATURE, prefixSignature);
|
|
91
|
+
}
|
|
46
92
|
const gatewayCostMiddleware = {
|
|
47
93
|
specificationVersion: "v3",
|
|
48
94
|
overrideModelId({ model }) {
|
|
49
95
|
return normalizeModelId(model.modelId);
|
|
50
96
|
},
|
|
51
|
-
async wrapGenerate({ doGenerate }) {
|
|
97
|
+
async wrapGenerate({ doGenerate, params }) {
|
|
52
98
|
const result = await doGenerate();
|
|
53
99
|
try {
|
|
54
100
|
setGatewayAttributesOnSpan(result.providerMetadata);
|
|
55
101
|
} catch (error) {
|
|
56
102
|
logger.warn({ error }, "Failed to extract gateway cost in wrapGenerate");
|
|
57
103
|
}
|
|
104
|
+
try {
|
|
105
|
+
setCacheAttributesOnSpan(params, result.usage);
|
|
106
|
+
} catch (error) {
|
|
107
|
+
logger.warn({ error }, "Failed to set cache attributes in wrapGenerate");
|
|
108
|
+
}
|
|
58
109
|
return result;
|
|
59
110
|
},
|
|
60
|
-
async wrapStream({ doStream }) {
|
|
111
|
+
async wrapStream({ doStream, params }) {
|
|
61
112
|
const { stream, ...rest } = await doStream();
|
|
62
113
|
return {
|
|
63
114
|
stream: stream.pipeThrough(new TransformStream({ transform(chunk, controller) {
|
|
64
115
|
controller.enqueue(chunk);
|
|
65
|
-
if (chunk.type === "finish")
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
116
|
+
if (chunk.type === "finish") {
|
|
117
|
+
try {
|
|
118
|
+
setGatewayAttributesOnSpan(chunk.providerMetadata);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
logger.warn({ error }, "Failed to extract gateway cost in wrapStream");
|
|
121
|
+
}
|
|
122
|
+
try {
|
|
123
|
+
setCacheAttributesOnSpan(params, chunk.usage);
|
|
124
|
+
} catch (error) {
|
|
125
|
+
logger.warn({ error }, "Failed to set cache attributes in wrapStream");
|
|
126
|
+
}
|
|
69
127
|
}
|
|
70
128
|
} })),
|
|
71
129
|
...rest
|
|
@@ -74,4 +132,4 @@ const gatewayCostMiddleware = {
|
|
|
74
132
|
};
|
|
75
133
|
|
|
76
134
|
//#endregion
|
|
77
|
-
export { extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
|
|
135
|
+
export { computePrefixSignature, countCacheMarkers, extractUsageTokens, gatewayCostMiddleware, normalizeModelId };
|
|
@@ -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_core701 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_core701.PgColumn<{
|
|
32
32
|
name: "created_at";
|
|
33
33
|
tableName: "skill_files";
|
|
34
34
|
dataType: "string";
|
|
@@ -45,7 +45,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
45
45
|
identity: undefined;
|
|
46
46
|
generated: undefined;
|
|
47
47
|
}, {}, {}>;
|
|
48
|
-
updatedAt:
|
|
48
|
+
updatedAt: drizzle_orm_pg_core701.PgColumn<{
|
|
49
49
|
name: "updated_at";
|
|
50
50
|
tableName: "skill_files";
|
|
51
51
|
dataType: "string";
|
|
@@ -62,7 +62,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
62
62
|
identity: undefined;
|
|
63
63
|
generated: undefined;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
skillId:
|
|
65
|
+
skillId: drizzle_orm_pg_core701.PgColumn<{
|
|
66
66
|
name: "skill_id";
|
|
67
67
|
tableName: "skill_files";
|
|
68
68
|
dataType: "string";
|
|
@@ -81,7 +81,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
81
81
|
}, {}, {
|
|
82
82
|
length: 64;
|
|
83
83
|
}>;
|
|
84
|
-
filePath:
|
|
84
|
+
filePath: drizzle_orm_pg_core701.PgColumn<{
|
|
85
85
|
name: "file_path";
|
|
86
86
|
tableName: "skill_files";
|
|
87
87
|
dataType: "string";
|
|
@@ -100,7 +100,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
100
100
|
}, {}, {
|
|
101
101
|
length: 1024;
|
|
102
102
|
}>;
|
|
103
|
-
content:
|
|
103
|
+
content: drizzle_orm_pg_core701.PgColumn<{
|
|
104
104
|
name: "content";
|
|
105
105
|
tableName: "skill_files";
|
|
106
106
|
dataType: "string";
|
|
@@ -117,7 +117,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
117
117
|
identity: undefined;
|
|
118
118
|
generated: undefined;
|
|
119
119
|
}, {}, {}>;
|
|
120
|
-
projectId:
|
|
120
|
+
projectId: drizzle_orm_pg_core701.PgColumn<{
|
|
121
121
|
name: "project_id";
|
|
122
122
|
tableName: "skill_files";
|
|
123
123
|
dataType: "string";
|
|
@@ -136,7 +136,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
136
136
|
}, {}, {
|
|
137
137
|
length: 256;
|
|
138
138
|
}>;
|
|
139
|
-
tenantId:
|
|
139
|
+
tenantId: drizzle_orm_pg_core701.PgColumn<{
|
|
140
140
|
name: "tenant_id";
|
|
141
141
|
tableName: "skill_files";
|
|
142
142
|
dataType: "string";
|
|
@@ -155,7 +155,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
155
155
|
}, {}, {
|
|
156
156
|
length: 256;
|
|
157
157
|
}>;
|
|
158
|
-
id:
|
|
158
|
+
id: drizzle_orm_pg_core701.PgColumn<{
|
|
159
159
|
name: "id";
|
|
160
160
|
tableName: "skill_files";
|
|
161
161
|
dataType: "string";
|
|
@@ -174,8 +174,8 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
174
174
|
}, {}, {
|
|
175
175
|
length: 256;
|
|
176
176
|
}>;
|
|
177
|
-
},
|
|
178
|
-
createdAt:
|
|
177
|
+
}, drizzle_zod15.BuildRefine<{
|
|
178
|
+
createdAt: drizzle_orm_pg_core701.PgColumn<{
|
|
179
179
|
name: "created_at";
|
|
180
180
|
tableName: "skill_files";
|
|
181
181
|
dataType: "string";
|
|
@@ -192,7 +192,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
192
192
|
identity: undefined;
|
|
193
193
|
generated: undefined;
|
|
194
194
|
}, {}, {}>;
|
|
195
|
-
updatedAt:
|
|
195
|
+
updatedAt: drizzle_orm_pg_core701.PgColumn<{
|
|
196
196
|
name: "updated_at";
|
|
197
197
|
tableName: "skill_files";
|
|
198
198
|
dataType: "string";
|
|
@@ -209,7 +209,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
209
209
|
identity: undefined;
|
|
210
210
|
generated: undefined;
|
|
211
211
|
}, {}, {}>;
|
|
212
|
-
skillId:
|
|
212
|
+
skillId: drizzle_orm_pg_core701.PgColumn<{
|
|
213
213
|
name: "skill_id";
|
|
214
214
|
tableName: "skill_files";
|
|
215
215
|
dataType: "string";
|
|
@@ -228,7 +228,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
228
228
|
}, {}, {
|
|
229
229
|
length: 64;
|
|
230
230
|
}>;
|
|
231
|
-
filePath:
|
|
231
|
+
filePath: drizzle_orm_pg_core701.PgColumn<{
|
|
232
232
|
name: "file_path";
|
|
233
233
|
tableName: "skill_files";
|
|
234
234
|
dataType: "string";
|
|
@@ -247,7 +247,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
247
247
|
}, {}, {
|
|
248
248
|
length: 1024;
|
|
249
249
|
}>;
|
|
250
|
-
content:
|
|
250
|
+
content: drizzle_orm_pg_core701.PgColumn<{
|
|
251
251
|
name: "content";
|
|
252
252
|
tableName: "skill_files";
|
|
253
253
|
dataType: "string";
|
|
@@ -264,7 +264,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
264
264
|
identity: undefined;
|
|
265
265
|
generated: undefined;
|
|
266
266
|
}, {}, {}>;
|
|
267
|
-
projectId:
|
|
267
|
+
projectId: drizzle_orm_pg_core701.PgColumn<{
|
|
268
268
|
name: "project_id";
|
|
269
269
|
tableName: "skill_files";
|
|
270
270
|
dataType: "string";
|
|
@@ -283,7 +283,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
283
283
|
}, {}, {
|
|
284
284
|
length: 256;
|
|
285
285
|
}>;
|
|
286
|
-
tenantId:
|
|
286
|
+
tenantId: drizzle_orm_pg_core701.PgColumn<{
|
|
287
287
|
name: "tenant_id";
|
|
288
288
|
tableName: "skill_files";
|
|
289
289
|
dataType: "string";
|
|
@@ -302,7 +302,7 @@ declare const SkillFileSelectSchema: drizzle_zod389.BuildSchema<"select", {
|
|
|
302
302
|
}, {}, {
|
|
303
303
|
length: 256;
|
|
304
304
|
}>;
|
|
305
|
-
id:
|
|
305
|
+
id: drizzle_orm_pg_core701.PgColumn<{
|
|
306
306
|
name: "id";
|
|
307
307
|
tableName: "skill_files";
|
|
308
308
|
dataType: "string";
|
|
@@ -336,9 +336,9 @@ 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;
|
|
341
340
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
341
|
+
description: z.ZodString;
|
|
342
342
|
content: z.ZodString;
|
|
343
343
|
}, {
|
|
344
344
|
out: {};
|
|
@@ -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
|
-
name: z.ZodString;
|
|
356
354
|
id: z.ZodString;
|
|
355
|
+
name: z.ZodString;
|
|
357
356
|
createdAt: z.ZodString;
|
|
357
|
+
updatedAt: z.ZodString;
|
|
358
358
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
359
|
+
description: 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,8 +411,8 @@ 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;
|
|
415
|
+
content: z.ZodString;
|
|
416
416
|
skillId: z.ZodString;
|
|
417
417
|
filePath: z.ZodString;
|
|
418
418
|
}, z.core.$strip>;
|
|
@@ -424,18 +424,18 @@ 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
|
-
name: z.ZodString;
|
|
429
427
|
id: z.ZodString;
|
|
428
|
+
name: z.ZodString;
|
|
430
429
|
createdAt: z.ZodString;
|
|
430
|
+
updatedAt: z.ZodString;
|
|
431
431
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
432
|
+
description: 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;
|
|
438
|
+
content: z.ZodString;
|
|
439
439
|
skillId: z.ZodString;
|
|
440
440
|
filePath: z.ZodString;
|
|
441
441
|
}, z.core.$strip>>;
|
|
@@ -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;
|
|
490
489
|
id: z.ZodString;
|
|
491
490
|
createdAt: z.ZodString;
|
|
492
491
|
updatedAt: z.ZodString;
|
|
492
|
+
subAgentId: z.ZodString;
|
|
493
|
+
skillId: 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>>;
|
|
509
508
|
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
510
509
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
511
510
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
|
|
511
|
+
subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
512
|
+
skillId: 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
|
-
description: z.ZodString;
|
|
518
|
-
name: z.ZodString;
|
|
519
517
|
id: z.ZodString;
|
|
518
|
+
name: z.ZodString;
|
|
520
519
|
createdAt: z.ZodString;
|
|
520
|
+
updatedAt: z.ZodString;
|
|
521
521
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
522
|
+
description: 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,26 +530,26 @@ 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;
|
|
534
|
+
content: z.ZodString;
|
|
535
535
|
skillId: z.ZodString;
|
|
536
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
|
-
name: z.ZodString;
|
|
543
541
|
id: z.ZodString;
|
|
542
|
+
name: z.ZodString;
|
|
544
543
|
createdAt: z.ZodString;
|
|
544
|
+
updatedAt: z.ZodString;
|
|
545
545
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
546
|
+
description: 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;
|
|
552
|
+
content: z.ZodString;
|
|
553
553
|
skillId: z.ZodString;
|
|
554
554
|
filePath: z.ZodString;
|
|
555
555
|
}, z.core.$strip>>;
|
|
@@ -557,13 +557,13 @@ declare const SkillWithFilesResponse: z.ZodObject<{
|
|
|
557
557
|
}, z.core.$strip>;
|
|
558
558
|
declare const SkillListResponse: z.ZodObject<{
|
|
559
559
|
data: z.ZodArray<z.ZodObject<{
|
|
560
|
-
description: z.ZodString;
|
|
561
|
-
name: z.ZodString;
|
|
562
560
|
id: z.ZodString;
|
|
561
|
+
name: z.ZodString;
|
|
563
562
|
createdAt: z.ZodString;
|
|
563
|
+
updatedAt: z.ZodString;
|
|
564
564
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
565
|
+
description: 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>>;
|
|
@@ -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;
|
|
578
577
|
id: z.ZodString;
|
|
579
578
|
createdAt: z.ZodString;
|
|
580
579
|
updatedAt: z.ZodString;
|
|
580
|
+
subAgentId: z.ZodString;
|
|
581
|
+
skillId: 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
|
-
description: z.ZodString;
|
|
589
|
-
name: z.ZodString;
|
|
590
588
|
id: z.ZodString;
|
|
589
|
+
name: z.ZodString;
|
|
591
590
|
createdAt: z.ZodString;
|
|
591
|
+
updatedAt: z.ZodString;
|
|
592
592
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
593
|
+
description: 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;
|