@inkeep/agents-core 0.75.4 → 0.77.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/auth/auth.js +3 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/sso-issuer-discovery.d.ts +50 -0
- package/dist/auth/sso-issuer-discovery.js +85 -0
- package/dist/constants/allowed-file-formats.d.ts +3 -1
- package/dist/constants/allowed-file-formats.js +3 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/schema-validation/defaults.d.ts +1 -1
- package/dist/constants/schema-validation/defaults.js +1 -1
- package/dist/constants/schema-validation/index.d.ts +1 -1
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +41 -41
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- 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 +16 -16
- package/dist/data-access/manage/skills.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/manage/webhookDestinations.d.ts +6 -4
- package/dist/data-access/manage/webhookDestinations.js +13 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/auth.d.ts +4 -1
- package/dist/data-access/runtime/auth.js +5 -1
- package/dist/data-access/runtime/conversations.d.ts +33 -32
- package/dist/data-access/runtime/conversations.js +8 -1
- package/dist/data-access/runtime/events.d.ts +6 -6
- 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 +5 -5
- package/dist/db/manage/manage-schema.d.ts +383 -383
- package/dist/db/runtime/runtime-schema.d.ts +409 -409
- package/dist/external-fetch/external-file-downloader.d.ts +14 -0
- package/dist/external-fetch/external-file-downloader.js +146 -0
- package/dist/external-fetch/file-content-security.d.ts +18 -0
- package/dist/external-fetch/file-content-security.js +81 -0
- package/dist/external-fetch/file-security-constants.d.ts +12 -0
- package/dist/external-fetch/file-security-constants.js +16 -0
- package/dist/external-fetch/file-security-errors.d.ts +96 -0
- package/dist/external-fetch/file-security-errors.js +154 -0
- package/dist/external-fetch/file-url-security.d.ts +7 -0
- package/dist/external-fetch/file-url-security.js +75 -0
- package/dist/external-fetch/index.d.ts +6 -0
- package/dist/external-fetch/index.js +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/text-attachments/index.d.ts +2 -0
- package/dist/text-attachments/index.js +3 -0
- package/dist/text-attachments/text-document-attachments.d.ts +40 -0
- package/dist/text-attachments/text-document-attachments.js +86 -0
- package/dist/validation/schemas/skills.d.ts +46 -46
- package/dist/validation/schemas.d.ts +650 -650
- package/dist/validation/schemas.js +5 -3
- package/package.json +12 -1
|
@@ -97,7 +97,8 @@ const SubAgentInsertSchema = createInsertSchema(subAgents).extend({
|
|
|
97
97
|
name: NameSchema,
|
|
98
98
|
description: DescriptionSchema,
|
|
99
99
|
models: ModelSchema.optional(),
|
|
100
|
-
outputContract: OutputContractSchema.nullable().optional()
|
|
100
|
+
outputContract: OutputContractSchema.nullable().optional(),
|
|
101
|
+
prompt: z.string().trim().max(VALIDATION_AGENT_PROMPT_MAX_CHARS, `Sub-agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`).nullable().optional()
|
|
101
102
|
});
|
|
102
103
|
const SubAgentUpdateSchema = SubAgentInsertSchema.partial();
|
|
103
104
|
const SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema).openapi("SubAgent");
|
|
@@ -166,7 +167,8 @@ const AgentInsertSchema = createInsertSchema(agents, {
|
|
|
166
167
|
description: "ID of the default sub-agent that handles initial user messages. Required at runtime but nullable on creation to avoid circular FK dependency. Workflow: 1) POST Agent (without defaultSubAgentId), 2) POST SubAgent, 3) PATCH Agent with defaultSubAgentId.",
|
|
167
168
|
example: "my-default-subagent"
|
|
168
169
|
}),
|
|
169
|
-
executionMode: () => z.enum(["classic", "durable"]).optional()
|
|
170
|
+
executionMode: () => z.enum(["classic", "durable"]).optional(),
|
|
171
|
+
prompt: () => z.string().trim().max(VALIDATION_AGENT_PROMPT_MAX_CHARS, `Agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`).optional()
|
|
170
172
|
});
|
|
171
173
|
const AgentUpdateSchema = AgentInsertSchema.partial();
|
|
172
174
|
const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
|
|
@@ -1482,7 +1484,7 @@ const FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
|
|
|
1482
1484
|
alwaysLoaded: z.boolean().optional()
|
|
1483
1485
|
})).optional(),
|
|
1484
1486
|
canTransferTo: z.array(z.string()).optional(),
|
|
1485
|
-
prompt: z.string().trim().optional(),
|
|
1487
|
+
prompt: z.string().trim().max(VALIDATION_AGENT_PROMPT_MAX_CHARS, `Sub-agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`).nullable().optional(),
|
|
1486
1488
|
canDelegateTo: z.array(z.union([
|
|
1487
1489
|
z.string(),
|
|
1488
1490
|
canDelegateToExternalAgentInsertSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.1",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -66,6 +66,14 @@
|
|
|
66
66
|
"types": "./dist/constants/allowed-file-formats.d.ts",
|
|
67
67
|
"import": "./dist/constants/allowed-file-formats.js"
|
|
68
68
|
},
|
|
69
|
+
"./external-fetch": {
|
|
70
|
+
"types": "./dist/external-fetch/index.d.ts",
|
|
71
|
+
"import": "./dist/external-fetch/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./text-attachments": {
|
|
74
|
+
"types": "./dist/text-attachments/index.d.ts",
|
|
75
|
+
"import": "./dist/text-attachments/index.js"
|
|
76
|
+
},
|
|
69
77
|
"./credential-stores": {
|
|
70
78
|
"types": "./dist/credential-stores/index.d.ts",
|
|
71
79
|
"import": "./dist/credential-stores/index.js"
|
|
@@ -174,8 +182,10 @@
|
|
|
174
182
|
"drizzle-orm": "^0.44.4",
|
|
175
183
|
"drizzle-zod": "^0.8.2",
|
|
176
184
|
"exit-hook": "^4.0.0",
|
|
185
|
+
"file-type": "^21.3.1",
|
|
177
186
|
"find-up": "^7.0.0",
|
|
178
187
|
"hono": "^4.12.7",
|
|
188
|
+
"ipaddr.js": "^2.3.0",
|
|
179
189
|
"iwanthue": "^2.0.0",
|
|
180
190
|
"jmespath": "^0.16.0",
|
|
181
191
|
"jose": "^6.1.0",
|
|
@@ -186,6 +196,7 @@
|
|
|
186
196
|
"postgres": "^3.4.8",
|
|
187
197
|
"traverse": "^0.6.10",
|
|
188
198
|
"ts-pattern": "^5.7.1",
|
|
199
|
+
"undici": "^7.25.0",
|
|
189
200
|
"yaml": "^2.8.2"
|
|
190
201
|
},
|
|
191
202
|
"peerDependencies": {
|