@inkeep/agents-cli 0.0.0-dev-20251009223620 → 0.0.0-dev-20251010064032
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 +42 -40
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2397,7 +2397,7 @@ var init_utility = __esm({
|
|
|
2397
2397
|
});
|
|
2398
2398
|
|
|
2399
2399
|
// ../packages/agents-core/src/validation/schemas.ts
|
|
2400
|
-
var StopWhenSchema, GraphStopWhenSchema,
|
|
2400
|
+
var StopWhenSchema, GraphStopWhenSchema, SubAgentStopWhenSchema, MIN_ID_LENGTH, MAX_ID_LENGTH, URL_SAFE_ID_PATTERN, resourceIdSchema, ModelSettingsSchema, ModelSchema, ProjectModelSchema, SandboxConfigSchema, FunctionToolConfigSchema, createApiSchema, createApiInsertSchema, createApiUpdateSchema, createGraphScopedApiSchema, createGraphScopedApiInsertSchema, createGraphScopedApiUpdateSchema, SubAgentSelectSchema, SubAgentInsertSchema, SubAgentUpdateSchema, SubAgentApiSelectSchema, SubAgentApiInsertSchema, SubAgentApiUpdateSchema, SubAgentRelationSelectSchema, SubAgentRelationInsertSchema, SubAgentRelationUpdateSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiInsertSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationQuerySchema, ExternalSubAgentRelationInsertSchema, ExternalSubAgentRelationApiInsertSchema, AgentGraphSelectSchema, AgentGraphInsertSchema, AgentGraphUpdateSchema, AgentGraphApiSelectSchema, AgentGraphApiInsertSchema, AgentGraphApiUpdateSchema, 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, CredentialReferenceSelectSchema, CredentialReferenceInsertSchema, CredentialReferenceUpdateSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiUpdateSchema, McpToolSchema, MCPToolConfigSchema, ToolUpdateSchema, ToolApiSelectSchema, ToolApiInsertSchema, ToolApiUpdateSchema, 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, FullGraphAgentInsertSchema, GraphWithinContextOfProjectSchema, PaginationSchema, ErrorResponseSchema, ExistsResponseSchema, RemovedResponseSchema, ProjectSelectSchema, ProjectInsertSchema, ProjectUpdateSchema, ProjectApiSelectSchema, ProjectApiInsertSchema, ProjectApiUpdateSchema, FullProjectDefinitionSchema, HeadersScopeSchema, TenantId, ProjectId, GraphId, SubAgentId, TenantParamsSchema, TenantIdParamsSchema, TenantProjectParamsSchema, TenantProjectIdParamsSchema, TenantProjectGraphParamsSchema, TenantProjectGraphIdParamsSchema, TenantProjectGraphSubAgentParamsSchema, TenantProjectGraphSubAgentIdParamsSchema, PaginationQueryParamsSchema;
|
|
2401
2401
|
var init_schemas = __esm({
|
|
2402
2402
|
"../packages/agents-core/src/validation/schemas.ts"() {
|
|
2403
2403
|
"use strict";
|
|
@@ -2411,7 +2411,7 @@ var init_schemas = __esm({
|
|
|
2411
2411
|
stepCountIs: z2.number().min(1).max(1e3).optional()
|
|
2412
2412
|
});
|
|
2413
2413
|
GraphStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true });
|
|
2414
|
-
|
|
2414
|
+
SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true });
|
|
2415
2415
|
MIN_ID_LENGTH = 1;
|
|
2416
2416
|
MAX_ID_LENGTH = 255;
|
|
2417
2417
|
URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
@@ -2463,18 +2463,20 @@ var init_schemas = __esm({
|
|
|
2463
2463
|
SubAgentApiSelectSchema = createGraphScopedApiSchema(SubAgentSelectSchema);
|
|
2464
2464
|
SubAgentApiInsertSchema = createGraphScopedApiInsertSchema(SubAgentInsertSchema);
|
|
2465
2465
|
SubAgentApiUpdateSchema = createGraphScopedApiUpdateSchema(SubAgentUpdateSchema);
|
|
2466
|
-
|
|
2467
|
-
|
|
2466
|
+
SubAgentRelationSelectSchema = createSelectSchema(subAgentRelations);
|
|
2467
|
+
SubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
2468
2468
|
id: resourceIdSchema,
|
|
2469
2469
|
graphId: resourceIdSchema,
|
|
2470
2470
|
sourceSubAgentId: resourceIdSchema,
|
|
2471
2471
|
targetSubAgentId: resourceIdSchema.optional(),
|
|
2472
2472
|
externalSubAgentId: resourceIdSchema.optional()
|
|
2473
2473
|
});
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2474
|
+
SubAgentRelationUpdateSchema = SubAgentRelationInsertSchema.partial();
|
|
2475
|
+
SubAgentRelationApiSelectSchema = createGraphScopedApiSchema(
|
|
2476
|
+
SubAgentRelationSelectSchema
|
|
2477
|
+
);
|
|
2478
|
+
SubAgentRelationApiInsertSchema = createGraphScopedApiInsertSchema(
|
|
2479
|
+
SubAgentRelationInsertSchema
|
|
2478
2480
|
).extend({
|
|
2479
2481
|
relationType: z2.enum(VALID_RELATION_TYPES)
|
|
2480
2482
|
}).refine(
|
|
@@ -2488,8 +2490,8 @@ var init_schemas = __esm({
|
|
|
2488
2490
|
path: ["targetSubAgentId", "externalSubAgentId"]
|
|
2489
2491
|
}
|
|
2490
2492
|
);
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
+
SubAgentRelationApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
2494
|
+
SubAgentRelationUpdateSchema
|
|
2493
2495
|
).extend({
|
|
2494
2496
|
relationType: z2.enum(VALID_RELATION_TYPES).optional()
|
|
2495
2497
|
}).refine(
|
|
@@ -2502,23 +2504,23 @@ var init_schemas = __esm({
|
|
|
2502
2504
|
return hasTarget !== hasExternal;
|
|
2503
2505
|
},
|
|
2504
2506
|
{
|
|
2505
|
-
message: "Must specify exactly one of targetSubAgentId or externalSubAgentId when updating agent relationships",
|
|
2507
|
+
message: "Must specify exactly one of targetSubAgentId or externalSubAgentId when updating sub-agent relationships",
|
|
2506
2508
|
path: ["targetSubAgentId", "externalSubAgentId"]
|
|
2507
2509
|
}
|
|
2508
2510
|
);
|
|
2509
|
-
|
|
2511
|
+
SubAgentRelationQuerySchema = z2.object({
|
|
2510
2512
|
sourceSubAgentId: z2.string().optional(),
|
|
2511
2513
|
targetSubAgentId: z2.string().optional(),
|
|
2512
2514
|
externalSubAgentId: z2.string().optional()
|
|
2513
2515
|
});
|
|
2514
|
-
|
|
2516
|
+
ExternalSubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
2515
2517
|
id: resourceIdSchema,
|
|
2516
2518
|
graphId: resourceIdSchema,
|
|
2517
2519
|
sourceSubAgentId: resourceIdSchema,
|
|
2518
2520
|
externalSubAgentId: resourceIdSchema
|
|
2519
2521
|
});
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
+
ExternalSubAgentRelationApiInsertSchema = createApiInsertSchema(
|
|
2523
|
+
ExternalSubAgentRelationInsertSchema
|
|
2522
2524
|
);
|
|
2523
2525
|
AgentGraphSelectSchema = createSelectSchema(agentGraph);
|
|
2524
2526
|
AgentGraphInsertSchema = createInsertSchema(agentGraph).extend({
|
|
@@ -2649,20 +2651,20 @@ var init_schemas = __esm({
|
|
|
2649
2651
|
DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema);
|
|
2650
2652
|
DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema);
|
|
2651
2653
|
DataComponentApiUpdateSchema = createApiUpdateSchema(DataComponentUpdateSchema);
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2654
|
+
SubAgentDataComponentSelectSchema = createSelectSchema(subAgentDataComponents);
|
|
2655
|
+
SubAgentDataComponentInsertSchema = createInsertSchema(subAgentDataComponents);
|
|
2656
|
+
SubAgentDataComponentUpdateSchema = SubAgentDataComponentInsertSchema.partial();
|
|
2657
|
+
SubAgentDataComponentApiSelectSchema = createGraphScopedApiSchema(
|
|
2658
|
+
SubAgentDataComponentSelectSchema
|
|
2657
2659
|
);
|
|
2658
|
-
|
|
2660
|
+
SubAgentDataComponentApiInsertSchema = SubAgentDataComponentInsertSchema.omit({
|
|
2659
2661
|
tenantId: true,
|
|
2660
2662
|
projectId: true,
|
|
2661
2663
|
id: true,
|
|
2662
2664
|
createdAt: true
|
|
2663
2665
|
});
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
+
SubAgentDataComponentApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
2667
|
+
SubAgentDataComponentUpdateSchema
|
|
2666
2668
|
);
|
|
2667
2669
|
ArtifactComponentSelectSchema = createSelectSchema(artifactComponents);
|
|
2668
2670
|
ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({
|
|
@@ -2679,26 +2681,26 @@ var init_schemas = __esm({
|
|
|
2679
2681
|
ArtifactComponentApiUpdateSchema = createApiUpdateSchema(
|
|
2680
2682
|
ArtifactComponentUpdateSchema
|
|
2681
2683
|
);
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
+
SubAgentArtifactComponentSelectSchema = createSelectSchema(subAgentArtifactComponents);
|
|
2685
|
+
SubAgentArtifactComponentInsertSchema = createInsertSchema(
|
|
2684
2686
|
subAgentArtifactComponents
|
|
2685
2687
|
).extend({
|
|
2686
2688
|
id: resourceIdSchema,
|
|
2687
2689
|
subAgentId: resourceIdSchema,
|
|
2688
2690
|
artifactComponentId: resourceIdSchema
|
|
2689
2691
|
});
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2692
|
+
SubAgentArtifactComponentUpdateSchema = SubAgentArtifactComponentInsertSchema.partial();
|
|
2693
|
+
SubAgentArtifactComponentApiSelectSchema = createGraphScopedApiSchema(
|
|
2694
|
+
SubAgentArtifactComponentSelectSchema
|
|
2693
2695
|
);
|
|
2694
|
-
|
|
2696
|
+
SubAgentArtifactComponentApiInsertSchema = SubAgentArtifactComponentInsertSchema.omit({
|
|
2695
2697
|
tenantId: true,
|
|
2696
2698
|
projectId: true,
|
|
2697
2699
|
id: true,
|
|
2698
2700
|
createdAt: true
|
|
2699
2701
|
});
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
+
SubAgentArtifactComponentApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
2703
|
+
SubAgentArtifactComponentUpdateSchema
|
|
2702
2704
|
);
|
|
2703
2705
|
ExternalAgentSelectSchema = createSelectSchema(externalAgents).extend({
|
|
2704
2706
|
credentialReferenceId: z2.string().nullable().optional(),
|
|
@@ -2866,23 +2868,23 @@ var init_schemas = __esm({
|
|
|
2866
2868
|
ContextConfigApiUpdateSchema = createApiUpdateSchema(ContextConfigUpdateSchema).omit({
|
|
2867
2869
|
graphId: true
|
|
2868
2870
|
});
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
+
SubAgentToolRelationSelectSchema = createSelectSchema(subAgentToolRelations);
|
|
2872
|
+
SubAgentToolRelationInsertSchema = createInsertSchema(subAgentToolRelations).extend({
|
|
2871
2873
|
id: resourceIdSchema,
|
|
2872
2874
|
subAgentId: resourceIdSchema,
|
|
2873
2875
|
toolId: resourceIdSchema,
|
|
2874
2876
|
selectedTools: z2.array(z2.string()).nullish(),
|
|
2875
2877
|
headers: z2.record(z2.string(), z2.string()).nullish()
|
|
2876
2878
|
});
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2879
|
+
SubAgentToolRelationUpdateSchema = SubAgentToolRelationInsertSchema.partial();
|
|
2880
|
+
SubAgentToolRelationApiSelectSchema = createGraphScopedApiSchema(
|
|
2881
|
+
SubAgentToolRelationSelectSchema
|
|
2880
2882
|
);
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
+
SubAgentToolRelationApiInsertSchema = createGraphScopedApiInsertSchema(
|
|
2884
|
+
SubAgentToolRelationInsertSchema
|
|
2883
2885
|
);
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
+
SubAgentToolRelationApiUpdateSchema = createGraphScopedApiUpdateSchema(
|
|
2887
|
+
SubAgentToolRelationUpdateSchema
|
|
2886
2888
|
);
|
|
2887
2889
|
LedgerArtifactSelectSchema = createSelectSchema(ledgerArtifacts);
|
|
2888
2890
|
LedgerArtifactInsertSchema = createInsertSchema(ledgerArtifacts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-cli",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251010064032",
|
|
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.0.0-dev-
|
|
50
|
-
"@inkeep/agents-sdk": "^0.0.0-dev-
|
|
49
|
+
"@inkeep/agents-core": "^0.0.0-dev-20251010064032",
|
|
50
|
+
"@inkeep/agents-sdk": "^0.0.0-dev-20251010064032"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/degit": "^2.8.6",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vitest": "^3.2.4"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@inkeep/agents-manage-ui": "0.0.0-dev-
|
|
65
|
+
"@inkeep/agents-manage-ui": "0.0.0-dev-20251010064032",
|
|
66
66
|
"zod": "^4.1.11"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|