@inkeep/agents-cli 0.22.0 → 0.22.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/index.js +23 -73
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1620,7 +1620,6 @@ var init_schema = __esm({
|
|
|
1620
1620
|
...uiProperties,
|
|
1621
1621
|
models: text("models", { mode: "json" }).$type(),
|
|
1622
1622
|
stopWhen: text("stop_when", { mode: "json" }).$type(),
|
|
1623
|
-
sandboxConfig: text("sandbox_config", { mode: "json" }).$type(),
|
|
1624
1623
|
...timestamps
|
|
1625
1624
|
},
|
|
1626
1625
|
(table) => [primaryKey({ columns: [table.tenantId, table.id] })]
|
|
@@ -2452,7 +2451,7 @@ var init_utility = __esm({
|
|
|
2452
2451
|
});
|
|
2453
2452
|
|
|
2454
2453
|
// ../packages/agents-core/src/validation/schemas.ts
|
|
2455
|
-
var StopWhenSchema, AgentStopWhenSchema, SubAgentStopWhenSchema, MIN_ID_LENGTH, MAX_ID_LENGTH, URL_SAFE_ID_PATTERN, resourceIdSchema, ModelSettingsSchema, ModelSchema, ProjectModelSchema,
|
|
2454
|
+
var StopWhenSchema, AgentStopWhenSchema, SubAgentStopWhenSchema, MIN_ID_LENGTH, MAX_ID_LENGTH, URL_SAFE_ID_PATTERN, resourceIdSchema, ModelSettingsSchema, ModelSchema, ProjectModelSchema, FunctionToolConfigSchema, createApiSchema, createApiInsertSchema, createApiUpdateSchema, createAgentScopedApiSchema, createAgentScopedApiInsertSchema, createAgentScopedApiUpdateSchema, SubAgentSelectSchema, SubAgentInsertSchema, SubAgentUpdateSchema, SubAgentApiSelectSchema, SubAgentApiInsertSchema, SubAgentApiUpdateSchema, SubAgentRelationSelectSchema, SubAgentRelationInsertSchema, SubAgentRelationUpdateSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiInsertSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationQuerySchema, ExternalSubAgentRelationInsertSchema, ExternalSubAgentRelationApiInsertSchema, AgentSelectSchema, AgentInsertSchema, AgentUpdateSchema, AgentApiSelectSchema, AgentApiInsertSchema, AgentApiUpdateSchema, TaskSelectSchema, TaskInsertSchema, TaskUpdateSchema, TaskApiSelectSchema, TaskApiInsertSchema, TaskApiUpdateSchema, TaskRelationSelectSchema, TaskRelationInsertSchema, TaskRelationUpdateSchema, TaskRelationApiSelectSchema, TaskRelationApiInsertSchema, TaskRelationApiUpdateSchema, imageUrlSchema, McpTransportConfigSchema, ToolStatusSchema, McpToolDefinitionSchema, ToolSelectSchema, ToolInsertSchema, ConversationSelectSchema, ConversationInsertSchema, ConversationUpdateSchema, ConversationApiSelectSchema, ConversationApiInsertSchema, ConversationApiUpdateSchema, MessageSelectSchema, MessageInsertSchema, MessageUpdateSchema, MessageApiSelectSchema, MessageApiInsertSchema, MessageApiUpdateSchema, ContextCacheSelectSchema, ContextCacheInsertSchema, ContextCacheUpdateSchema, ContextCacheApiSelectSchema, ContextCacheApiInsertSchema, ContextCacheApiUpdateSchema, DataComponentSelectSchema, DataComponentInsertSchema, DataComponentBaseSchema, DataComponentUpdateSchema, DataComponentApiSelectSchema, DataComponentApiInsertSchema, DataComponentApiUpdateSchema, SubAgentDataComponentSelectSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentUpdateSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiUpdateSchema, ArtifactComponentSelectSchema, ArtifactComponentInsertSchema, ArtifactComponentUpdateSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiUpdateSchema, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentUpdateSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiUpdateSchema, ExternalAgentSelectSchema, ExternalAgentInsertSchema, ExternalAgentUpdateSchema, ExternalAgentApiSelectSchema, ExternalAgentApiInsertSchema, ExternalAgentApiUpdateSchema, AllAgentSchema, ApiKeySelectSchema, ApiKeyInsertSchema, ApiKeyUpdateSchema, ApiKeyApiSelectSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiUpdateSchema, CredentialReferenceSelectSchema, CredentialReferenceInsertSchema, CredentialReferenceUpdateSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiUpdateSchema, McpToolSchema, MCPToolConfigSchema, ToolUpdateSchema, ToolApiSelectSchema, ToolApiInsertSchema, ToolApiUpdateSchema, FunctionToolSelectSchema, FunctionToolInsertSchema, FunctionToolUpdateSchema, FunctionToolApiSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiUpdateSchema, FunctionSelectSchema, FunctionInsertSchema, FunctionUpdateSchema, FunctionApiSelectSchema, FunctionApiInsertSchema, FunctionApiUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, ContextConfigSelectSchema, ContextConfigInsertSchema, ContextConfigUpdateSchema, ContextConfigApiSelectSchema, ContextConfigApiInsertSchema, ContextConfigApiUpdateSchema, SubAgentToolRelationSelectSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationUpdateSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiUpdateSchema, LedgerArtifactSelectSchema, LedgerArtifactInsertSchema, LedgerArtifactUpdateSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiUpdateSchema, StatusComponentSchema, StatusUpdateSchema, CanUseItemSchema, FullAgentAgentInsertSchema, AgentWithinContextOfProjectSchema, PaginationSchema, ErrorResponseSchema, ExistsResponseSchema, RemovedResponseSchema, ProjectSelectSchema, ProjectInsertSchema, ProjectUpdateSchema, ProjectApiSelectSchema, ProjectApiInsertSchema, ProjectApiUpdateSchema, FullProjectDefinitionSchema, ProjectResponse, SubAgentResponse, AgentResponse, ToolResponse, ExternalAgentResponse, ContextConfigResponse, ApiKeyResponse, CredentialReferenceResponse, FunctionResponse, FunctionToolResponse, DataComponentResponse, ArtifactComponentResponse, SubAgentRelationResponse, SubAgentToolRelationResponse, ConversationResponse, MessageResponse, ProjectListResponse, SubAgentListResponse, AgentListResponse, ToolListResponse, ExternalAgentListResponse, ContextConfigListResponse, ApiKeyListResponse, CredentialReferenceListResponse, FunctionListResponse, FunctionToolListResponse, DataComponentListResponse, ArtifactComponentListResponse, SubAgentRelationListResponse, SubAgentToolRelationListResponse, ConversationListResponse, MessageListResponse, SubAgentDataComponentResponse, SubAgentArtifactComponentResponse, SubAgentDataComponentListResponse, SubAgentArtifactComponentListResponse, HeadersScopeSchema, TenantId, ProjectId, AgentId, SubAgentId, TenantParamsSchema, TenantIdParamsSchema, TenantProjectParamsSchema, TenantProjectIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, PaginationQueryParamsSchema;
|
|
2456
2455
|
var init_schemas = __esm({
|
|
2457
2456
|
"../packages/agents-core/src/validation/schemas.ts"() {
|
|
2458
2457
|
"use strict";
|
|
@@ -2494,12 +2493,6 @@ var init_schemas = __esm({
|
|
|
2494
2493
|
structuredOutput: ModelSettingsSchema.optional(),
|
|
2495
2494
|
summarizer: ModelSettingsSchema.optional()
|
|
2496
2495
|
}).openapi("ProjectModel");
|
|
2497
|
-
SandboxConfigSchema = z2.object({
|
|
2498
|
-
provider: z2.enum(["vercel", "local"]),
|
|
2499
|
-
runtime: z2.enum(["node22", "typescript"]),
|
|
2500
|
-
timeout: z2.number().min(1e3).max(3e5).optional(),
|
|
2501
|
-
vcpus: z2.number().min(1).max(8).optional()
|
|
2502
|
-
}).openapi("SandboxConfig");
|
|
2503
2496
|
FunctionToolConfigSchema = z2.object({
|
|
2504
2497
|
name: z2.string(),
|
|
2505
2498
|
description: z2.string(),
|
|
@@ -2519,15 +2512,9 @@ var init_schemas = __esm({
|
|
|
2519
2512
|
models: ModelSchema.optional()
|
|
2520
2513
|
});
|
|
2521
2514
|
SubAgentUpdateSchema = SubAgentInsertSchema.partial();
|
|
2522
|
-
SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema).openapi(
|
|
2523
|
-
|
|
2524
|
-
);
|
|
2525
|
-
SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(
|
|
2526
|
-
SubAgentInsertSchema
|
|
2527
|
-
).openapi("SubAgentCreate");
|
|
2528
|
-
SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(
|
|
2529
|
-
SubAgentUpdateSchema
|
|
2530
|
-
).openapi("SubAgentUpdate");
|
|
2515
|
+
SubAgentApiSelectSchema = createAgentScopedApiSchema(SubAgentSelectSchema).openapi("SubAgent");
|
|
2516
|
+
SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(SubAgentInsertSchema).openapi("SubAgentCreate");
|
|
2517
|
+
SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentUpdateSchema).openapi("SubAgentUpdate");
|
|
2531
2518
|
SubAgentRelationSelectSchema = createSelectSchema(subAgentRelations);
|
|
2532
2519
|
SubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
2533
2520
|
id: resourceIdSchema,
|
|
@@ -2596,9 +2583,7 @@ var init_schemas = __esm({
|
|
|
2596
2583
|
AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({
|
|
2597
2584
|
id: resourceIdSchema
|
|
2598
2585
|
}).openapi("AgentCreate");
|
|
2599
|
-
AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi(
|
|
2600
|
-
"AgentUpdate"
|
|
2601
|
-
);
|
|
2586
|
+
AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
|
|
2602
2587
|
TaskSelectSchema = createSelectSchema(tasks);
|
|
2603
2588
|
TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
2604
2589
|
id: resourceIdSchema,
|
|
@@ -2683,15 +2668,9 @@ var init_schemas = __esm({
|
|
|
2683
2668
|
contextConfigId: resourceIdSchema.optional()
|
|
2684
2669
|
});
|
|
2685
2670
|
ConversationUpdateSchema = ConversationInsertSchema.partial();
|
|
2686
|
-
ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi(
|
|
2687
|
-
|
|
2688
|
-
);
|
|
2689
|
-
ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema).openapi(
|
|
2690
|
-
"ConversationCreate"
|
|
2691
|
-
);
|
|
2692
|
-
ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi(
|
|
2693
|
-
"ConversationUpdate"
|
|
2694
|
-
);
|
|
2671
|
+
ConversationApiSelectSchema = createApiSchema(ConversationSelectSchema).openapi("Conversation");
|
|
2672
|
+
ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSchema).openapi("ConversationCreate");
|
|
2673
|
+
ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi("ConversationUpdate");
|
|
2695
2674
|
MessageSelectSchema = createSelectSchema(messages);
|
|
2696
2675
|
MessageInsertSchema = createInsertSchema(messages).extend({
|
|
2697
2676
|
id: resourceIdSchema,
|
|
@@ -2700,12 +2679,8 @@ var init_schemas = __esm({
|
|
|
2700
2679
|
});
|
|
2701
2680
|
MessageUpdateSchema = MessageInsertSchema.partial();
|
|
2702
2681
|
MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
|
|
2703
|
-
MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi(
|
|
2704
|
-
|
|
2705
|
-
);
|
|
2706
|
-
MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi(
|
|
2707
|
-
"MessageUpdate"
|
|
2708
|
-
);
|
|
2682
|
+
MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi("MessageCreate");
|
|
2683
|
+
MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi("MessageUpdate");
|
|
2709
2684
|
ContextCacheSelectSchema = createSelectSchema(contextCache);
|
|
2710
2685
|
ContextCacheInsertSchema = createInsertSchema(contextCache);
|
|
2711
2686
|
ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
|
|
@@ -2721,15 +2696,9 @@ var init_schemas = __esm({
|
|
|
2721
2696
|
updatedAt: true
|
|
2722
2697
|
});
|
|
2723
2698
|
DataComponentUpdateSchema = DataComponentInsertSchema.partial();
|
|
2724
|
-
DataComponentApiSelectSchema = createApiSchema(
|
|
2725
|
-
|
|
2726
|
-
).openapi("
|
|
2727
|
-
DataComponentApiInsertSchema = createApiInsertSchema(
|
|
2728
|
-
DataComponentInsertSchema
|
|
2729
|
-
).openapi("DataComponentCreate");
|
|
2730
|
-
DataComponentApiUpdateSchema = createApiUpdateSchema(
|
|
2731
|
-
DataComponentUpdateSchema
|
|
2732
|
-
).openapi("DataComponentUpdate");
|
|
2699
|
+
DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema).openapi("DataComponent");
|
|
2700
|
+
DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema).openapi("DataComponentCreate");
|
|
2701
|
+
DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema).openapi("DataComponentUpdate");
|
|
2733
2702
|
SubAgentDataComponentSelectSchema = createSelectSchema(subAgentDataComponents);
|
|
2734
2703
|
SubAgentDataComponentInsertSchema = createInsertSchema(subAgentDataComponents);
|
|
2735
2704
|
SubAgentDataComponentUpdateSchema = SubAgentDataComponentInsertSchema.partial();
|
|
@@ -2791,15 +2760,9 @@ var init_schemas = __esm({
|
|
|
2791
2760
|
id: resourceIdSchema
|
|
2792
2761
|
});
|
|
2793
2762
|
ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
|
|
2794
|
-
ExternalAgentApiSelectSchema = createAgentScopedApiSchema(
|
|
2795
|
-
|
|
2796
|
-
).openapi("
|
|
2797
|
-
ExternalAgentApiInsertSchema = createAgentScopedApiInsertSchema(
|
|
2798
|
-
ExternalAgentInsertSchema
|
|
2799
|
-
).openapi("ExternalAgentCreate");
|
|
2800
|
-
ExternalAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(
|
|
2801
|
-
ExternalAgentUpdateSchema
|
|
2802
|
-
).openapi("ExternalAgentUpdate");
|
|
2763
|
+
ExternalAgentApiSelectSchema = createAgentScopedApiSchema(ExternalAgentSelectSchema).openapi("ExternalAgent");
|
|
2764
|
+
ExternalAgentApiInsertSchema = createAgentScopedApiInsertSchema(ExternalAgentInsertSchema).openapi("ExternalAgentCreate");
|
|
2765
|
+
ExternalAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(ExternalAgentUpdateSchema).openapi("ExternalAgentUpdate");
|
|
2803
2766
|
AllAgentSchema = z2.discriminatedUnion("type", [
|
|
2804
2767
|
SubAgentApiSelectSchema.extend({ type: z2.literal("internal") }),
|
|
2805
2768
|
ExternalAgentApiSelectSchema.extend({ type: z2.literal("external") })
|
|
@@ -2862,9 +2825,7 @@ var init_schemas = __esm({
|
|
|
2862
2825
|
retrievalParams: z2.record(z2.string(), z2.unknown()).nullish()
|
|
2863
2826
|
});
|
|
2864
2827
|
CredentialReferenceUpdateSchema = CredentialReferenceInsertSchema.partial();
|
|
2865
|
-
CredentialReferenceApiSelectSchema = createApiSchema(
|
|
2866
|
-
CredentialReferenceSelectSchema
|
|
2867
|
-
).extend({
|
|
2828
|
+
CredentialReferenceApiSelectSchema = createApiSchema(CredentialReferenceSelectSchema).extend({
|
|
2868
2829
|
type: z2.enum(CredentialStoreType),
|
|
2869
2830
|
tools: z2.array(ToolSelectSchema).optional()
|
|
2870
2831
|
}).openapi("CredentialReference");
|
|
@@ -2914,27 +2875,17 @@ var init_schemas = __esm({
|
|
|
2914
2875
|
id: resourceIdSchema
|
|
2915
2876
|
});
|
|
2916
2877
|
FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
|
|
2917
|
-
FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi(
|
|
2918
|
-
|
|
2919
|
-
);
|
|
2920
|
-
FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(
|
|
2921
|
-
FunctionToolInsertSchema
|
|
2922
|
-
).openapi("FunctionToolCreate");
|
|
2923
|
-
FunctionToolApiUpdateSchema = createApiUpdateSchema(
|
|
2924
|
-
FunctionToolUpdateSchema
|
|
2925
|
-
).openapi("FunctionToolUpdate");
|
|
2878
|
+
FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).openapi("FunctionTool");
|
|
2879
|
+
FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
|
|
2880
|
+
FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
|
|
2926
2881
|
FunctionSelectSchema = createSelectSchema(functions);
|
|
2927
2882
|
FunctionInsertSchema = createInsertSchema(functions).extend({
|
|
2928
2883
|
id: resourceIdSchema
|
|
2929
2884
|
});
|
|
2930
2885
|
FunctionUpdateSchema = FunctionInsertSchema.partial();
|
|
2931
2886
|
FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema).openapi("Function");
|
|
2932
|
-
FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi(
|
|
2933
|
-
|
|
2934
|
-
);
|
|
2935
|
-
FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema).openapi(
|
|
2936
|
-
"FunctionUpdate"
|
|
2937
|
-
);
|
|
2887
|
+
FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi("FunctionCreate");
|
|
2888
|
+
FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema).openapi("FunctionUpdate");
|
|
2938
2889
|
FetchConfigSchema = z2.object({
|
|
2939
2890
|
url: z2.string().min(1, "URL is required"),
|
|
2940
2891
|
method: z2.enum(["GET", "POST", "PUT", "DELETE", "PATCH"]).optional().default("GET"),
|
|
@@ -3082,8 +3033,7 @@ var init_schemas = __esm({
|
|
|
3082
3033
|
ProjectSelectSchema = createSelectSchema(projects);
|
|
3083
3034
|
ProjectInsertSchema = createInsertSchema(projects).extend({
|
|
3084
3035
|
models: ProjectModelSchema,
|
|
3085
|
-
stopWhen: StopWhenSchema.optional()
|
|
3086
|
-
sandboxConfig: SandboxConfigSchema.optional()
|
|
3036
|
+
stopWhen: StopWhenSchema.optional()
|
|
3087
3037
|
}).omit({
|
|
3088
3038
|
createdAt: true,
|
|
3089
3039
|
updatedAt: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-cli",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "Inkeep CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"recast": "^0.23.0",
|
|
47
47
|
"ts-morph": "^26.0.0",
|
|
48
48
|
"tsx": "^4.20.5",
|
|
49
|
-
"@inkeep/agents-core": "^0.22.
|
|
50
|
-
"@inkeep/agents-sdk": "^0.22.
|
|
49
|
+
"@inkeep/agents-core": "^0.22.1",
|
|
50
|
+
"@inkeep/agents-sdk": "^0.22.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/degit": "^2.8.6",
|