@inkeep/agents-cli 0.20.1 → 0.21.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 -39
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -78,18 +78,29 @@ var init_models = __esm({
|
|
|
78
78
|
"use strict";
|
|
79
79
|
init_esm_shims();
|
|
80
80
|
ANTHROPIC_MODELS = {
|
|
81
|
+
CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1",
|
|
81
82
|
CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
|
|
83
|
+
CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
|
|
82
84
|
CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
|
|
85
|
+
CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
|
|
83
86
|
CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
|
|
87
|
+
CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
|
|
84
88
|
CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
|
|
89
|
+
CLAUDE_3_5_HAIKU: "anthropic/claude-3-5-haiku",
|
|
85
90
|
CLAUDE_3_5_HAIKU_20241022: "anthropic/claude-3-5-haiku-20241022"
|
|
86
91
|
};
|
|
87
92
|
OPENAI_MODELS = {
|
|
93
|
+
GPT_5: "openai/gpt-5",
|
|
88
94
|
GPT_5_20250807: "openai/gpt-5-2025-08-07",
|
|
95
|
+
GPT_5_MINI: "openai/gpt-5-mini",
|
|
89
96
|
GPT_5_MINI_20250807: "openai/gpt-5-mini-2025-08-07",
|
|
97
|
+
GPT_5_NANO: "openai/gpt-5-nano",
|
|
90
98
|
GPT_5_NANO_20250807: "openai/gpt-5-nano-2025-08-07",
|
|
99
|
+
GPT_4_1: "openai/gpt-4.1",
|
|
91
100
|
GPT_4_1_20250414: "openai/gpt-4.1-2025-04-14",
|
|
101
|
+
GPT_4_1_MINI: "openai/gpt-4.1-mini",
|
|
92
102
|
GPT_4_1_MINI_20250414: "openai/gpt-4.1-mini-2025-04-14",
|
|
103
|
+
GPT_4_1_NANO: "openai/gpt-4.1-nano",
|
|
93
104
|
GPT_4_1_NANO_20250414: "openai/gpt-4.1-nano-2025-04-14"
|
|
94
105
|
};
|
|
95
106
|
GOOGLE_MODELS = {
|
|
@@ -1573,7 +1584,7 @@ import {
|
|
|
1573
1584
|
text,
|
|
1574
1585
|
unique
|
|
1575
1586
|
} from "drizzle-orm/sqlite-core";
|
|
1576
|
-
var tenantScoped, projectScoped, agentScoped, subAgentScoped, uiProperties, timestamps, projects, agents, contextConfigs, contextCache, subAgents, subAgentRelations, externalAgents, tasks, taskRelations, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, tools, functionTools, functions, subAgentToolRelations,
|
|
1587
|
+
var tenantScoped, projectScoped, agentScoped, subAgentScoped, uiProperties, timestamps, projects, agents, contextConfigs, contextCache, subAgents, subAgentRelations, externalAgents, tasks, taskRelations, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, tools, functionTools, functions, subAgentToolRelations, subAgentFunctionToolRelations, conversations, messages, ledgerArtifacts, apiKeys, credentialReferences, tasksRelations, projectsRelations, taskRelationsRelations, contextConfigsRelations, contextCacheRelations, subAgentsRelations, agentRelations, externalAgentsRelations, apiKeysRelations, agentToolRelationsRelations, credentialReferencesRelations, toolsRelations, conversationsRelations, messagesRelations, artifactComponentsRelations, subAgentArtifactComponentsRelations, dataComponentsRelations, subAgentDataComponentsRelations, ledgerArtifactsRelations, functionsRelations, subAgentRelationsRelations, functionToolsRelations, subAgentFunctionToolRelationsRelations;
|
|
1577
1588
|
var init_schema = __esm({
|
|
1578
1589
|
"../packages/agents-core/src/db/schema.ts"() {
|
|
1579
1590
|
"use strict";
|
|
@@ -1607,11 +1618,8 @@ var init_schema = __esm({
|
|
|
1607
1618
|
{
|
|
1608
1619
|
...tenantScoped,
|
|
1609
1620
|
...uiProperties,
|
|
1610
|
-
// Project-level default model settings that can be inherited by agents
|
|
1611
1621
|
models: text("models", { mode: "json" }).$type(),
|
|
1612
|
-
// Project-level stopWhen configuration that can be inherited by agents
|
|
1613
1622
|
stopWhen: text("stop_when", { mode: "json" }).$type(),
|
|
1614
|
-
// Project-level sandbox configuration for function execution
|
|
1615
1623
|
sandboxConfig: text("sandbox_config", { mode: "json" }).$type(),
|
|
1616
1624
|
...timestamps
|
|
1617
1625
|
},
|
|
@@ -1644,9 +1652,7 @@ var init_schema = __esm({
|
|
|
1644
1652
|
"context_configs",
|
|
1645
1653
|
{
|
|
1646
1654
|
...agentScoped,
|
|
1647
|
-
// Developer-defined Zod schema for validating incoming request context
|
|
1648
1655
|
headersSchema: blob("headers_schema", { mode: "json" }).$type(),
|
|
1649
|
-
// Object mapping template keys to fetch definitions that use request context data
|
|
1650
1656
|
contextVariables: blob("context_variables", { mode: "json" }).$type(),
|
|
1651
1657
|
...timestamps
|
|
1652
1658
|
},
|
|
@@ -1663,15 +1669,11 @@ var init_schema = __esm({
|
|
|
1663
1669
|
"context_cache",
|
|
1664
1670
|
{
|
|
1665
1671
|
...projectScoped,
|
|
1666
|
-
// Always scoped to conversation for complete data isolation
|
|
1667
1672
|
conversationId: text("conversation_id").notNull(),
|
|
1668
|
-
// Reference to the context config and specific fetch definition
|
|
1669
1673
|
contextConfigId: text("context_config_id").notNull(),
|
|
1670
1674
|
contextVariableKey: text("context_variable_key").notNull(),
|
|
1671
1675
|
value: blob("value", { mode: "json" }).$type().notNull(),
|
|
1672
|
-
// Request hash for cache invalidation based on context changes
|
|
1673
1676
|
requestHash: text("request_hash"),
|
|
1674
|
-
// Metadata for monitoring and debugging
|
|
1675
1677
|
fetchedAt: text("fetched_at").notNull(),
|
|
1676
1678
|
fetchSource: text("fetch_source"),
|
|
1677
1679
|
fetchDurationMs: integer("fetch_duration_ms"),
|
|
@@ -1718,9 +1720,7 @@ var init_schema = __esm({
|
|
|
1718
1720
|
{
|
|
1719
1721
|
...agentScoped,
|
|
1720
1722
|
sourceSubAgentId: text("source_sub_agent_id").notNull(),
|
|
1721
|
-
// For internal relationships
|
|
1722
1723
|
targetSubAgentId: text("target_sub_agent_id"),
|
|
1723
|
-
// For external relationships
|
|
1724
1724
|
externalSubAgentId: text("external_sub_agent_id"),
|
|
1725
1725
|
relationType: text("relation_type"),
|
|
1726
1726
|
...timestamps
|
|
@@ -1889,9 +1889,7 @@ var init_schema = __esm({
|
|
|
1889
1889
|
config: blob("config", { mode: "json" }).$type().notNull(),
|
|
1890
1890
|
credentialReferenceId: text("credential_reference_id"),
|
|
1891
1891
|
headers: blob("headers", { mode: "json" }).$type(),
|
|
1892
|
-
// Image URL for custom tool icon (supports regular URLs and base64 encoded images)
|
|
1893
1892
|
imageUrl: text("image_url"),
|
|
1894
|
-
// Server capabilities and status (only for MCP tools)
|
|
1895
1893
|
capabilities: blob("capabilities", { mode: "json" }).$type(),
|
|
1896
1894
|
lastError: text("last_error"),
|
|
1897
1895
|
...timestamps
|
|
@@ -1921,7 +1919,6 @@ var init_schema = __esm({
|
|
|
1921
1919
|
foreignColumns: [agents.tenantId, agents.projectId, agents.id],
|
|
1922
1920
|
name: "function_tools_agent_fk"
|
|
1923
1921
|
}).onDelete("cascade"),
|
|
1924
|
-
// Foreign key constraint to functions table
|
|
1925
1922
|
foreignKey({
|
|
1926
1923
|
columns: [table.tenantId, table.projectId, table.functionId],
|
|
1927
1924
|
foreignColumns: [functions.tenantId, functions.projectId, functions.id],
|
|
@@ -1970,8 +1967,8 @@ var init_schema = __esm({
|
|
|
1970
1967
|
}).onDelete("cascade")
|
|
1971
1968
|
]
|
|
1972
1969
|
);
|
|
1973
|
-
|
|
1974
|
-
"
|
|
1970
|
+
subAgentFunctionToolRelations = sqliteTable(
|
|
1971
|
+
"sub_agent_function_tool_relations",
|
|
1975
1972
|
{
|
|
1976
1973
|
...subAgentScoped,
|
|
1977
1974
|
functionToolId: text("function_tool_id").notNull(),
|
|
@@ -1979,13 +1976,11 @@ var init_schema = __esm({
|
|
|
1979
1976
|
},
|
|
1980
1977
|
(table) => [
|
|
1981
1978
|
primaryKey({ columns: [table.tenantId, table.projectId, table.agentId, table.id] }),
|
|
1982
|
-
// Foreign key constraint to agents table
|
|
1983
1979
|
foreignKey({
|
|
1984
1980
|
columns: [table.tenantId, table.projectId, table.agentId, table.subAgentId],
|
|
1985
1981
|
foreignColumns: [subAgents.tenantId, subAgents.projectId, subAgents.agentId, subAgents.id],
|
|
1986
|
-
name: "
|
|
1982
|
+
name: "sub_agent_function_tool_relations_sub_agent_fk"
|
|
1987
1983
|
}).onDelete("cascade"),
|
|
1988
|
-
// Foreign key constraint to functionTools table
|
|
1989
1984
|
foreignKey({
|
|
1990
1985
|
columns: [table.tenantId, table.projectId, table.agentId, table.functionToolId],
|
|
1991
1986
|
foreignColumns: [
|
|
@@ -1994,7 +1989,7 @@ var init_schema = __esm({
|
|
|
1994
1989
|
functionTools.agentId,
|
|
1995
1990
|
functionTools.id
|
|
1996
1991
|
],
|
|
1997
|
-
name: "
|
|
1992
|
+
name: "sub_agent_function_tool_relations_function_tool_fk"
|
|
1998
1993
|
}).onDelete("cascade")
|
|
1999
1994
|
]
|
|
2000
1995
|
);
|
|
@@ -2023,26 +2018,18 @@ var init_schema = __esm({
|
|
|
2023
2018
|
{
|
|
2024
2019
|
...projectScoped,
|
|
2025
2020
|
conversationId: text("conversation_id").notNull(),
|
|
2026
|
-
// Role mapping: user, agent, system (unified for both formats)
|
|
2027
2021
|
role: text("role").notNull(),
|
|
2028
|
-
// Agent sender/recipient tracking (nullable - only populated when relevant)
|
|
2029
2022
|
fromSubAgentId: text("from_sub_agent_id"),
|
|
2030
2023
|
toSubAgentId: text("to_sub_agent_id"),
|
|
2031
|
-
// External agent sender tracking
|
|
2032
2024
|
fromExternalAgentId: text("from_external_sub_agent_id"),
|
|
2033
|
-
// External agent recipient tracking
|
|
2034
2025
|
toExternalAgentId: text("to_external_sub_agent_id"),
|
|
2035
|
-
// Message content stored as JSON to support both formats
|
|
2036
2026
|
content: blob("content", { mode: "json" }).$type().notNull(),
|
|
2037
|
-
// Message classification and filtering
|
|
2038
2027
|
visibility: text("visibility").notNull().default("user-facing"),
|
|
2039
2028
|
messageType: text("message_type").notNull().default("chat"),
|
|
2040
2029
|
taskId: text("task_id"),
|
|
2041
2030
|
parentMessageId: text("parent_message_id"),
|
|
2042
|
-
// A2A specific fields
|
|
2043
2031
|
a2aTaskId: text("a2a_task_id"),
|
|
2044
2032
|
a2aSessionId: text("a2a_session_id"),
|
|
2045
|
-
// Metadata for extensions
|
|
2046
2033
|
metadata: blob("metadata", { mode: "json" }).$type(),
|
|
2047
2034
|
...timestamps
|
|
2048
2035
|
},
|
|
@@ -2059,17 +2046,14 @@ var init_schema = __esm({
|
|
|
2059
2046
|
"ledger_artifacts",
|
|
2060
2047
|
{
|
|
2061
2048
|
...projectScoped,
|
|
2062
|
-
// Links
|
|
2063
2049
|
taskId: text("task_id").notNull(),
|
|
2064
2050
|
toolCallId: text("tool_call_id"),
|
|
2065
2051
|
contextId: text("context_id").notNull(),
|
|
2066
|
-
// Core Artifact fields
|
|
2067
2052
|
type: text("type").notNull().default("source"),
|
|
2068
2053
|
name: text("name"),
|
|
2069
2054
|
description: text("description"),
|
|
2070
2055
|
parts: blob("parts", { mode: "json" }).$type(),
|
|
2071
2056
|
metadata: blob("metadata", { mode: "json" }).$type(),
|
|
2072
|
-
// Extra ledger information (not part of the Artifact spec – kept optional)
|
|
2073
2057
|
summary: text("summary"),
|
|
2074
2058
|
mime: blob("mime", { mode: "json" }).$type(),
|
|
2075
2059
|
visibility: text("visibility").default("context"),
|
|
@@ -2220,7 +2204,7 @@ var init_schema = __esm({
|
|
|
2220
2204
|
relationName: "receivedMessages"
|
|
2221
2205
|
}),
|
|
2222
2206
|
toolRelations: many(subAgentToolRelations),
|
|
2223
|
-
functionToolRelations: many(
|
|
2207
|
+
functionToolRelations: many(subAgentFunctionToolRelations),
|
|
2224
2208
|
dataComponentRelations: many(subAgentDataComponents),
|
|
2225
2209
|
artifactComponentRelations: many(subAgentArtifactComponents)
|
|
2226
2210
|
}));
|
|
@@ -2425,17 +2409,17 @@ var init_schema = __esm({
|
|
|
2425
2409
|
fields: [functionTools.tenantId, functionTools.projectId, functionTools.functionId],
|
|
2426
2410
|
references: [functions.tenantId, functions.projectId, functions.id]
|
|
2427
2411
|
}),
|
|
2428
|
-
|
|
2412
|
+
subAgentRelations: many(subAgentFunctionToolRelations)
|
|
2429
2413
|
}));
|
|
2430
|
-
|
|
2431
|
-
|
|
2414
|
+
subAgentFunctionToolRelationsRelations = relations(
|
|
2415
|
+
subAgentFunctionToolRelations,
|
|
2432
2416
|
({ one }) => ({
|
|
2433
|
-
|
|
2434
|
-
fields: [
|
|
2417
|
+
subAgent: one(subAgents, {
|
|
2418
|
+
fields: [subAgentFunctionToolRelations.subAgentId],
|
|
2435
2419
|
references: [subAgents.id]
|
|
2436
2420
|
}),
|
|
2437
2421
|
functionTool: one(functionTools, {
|
|
2438
|
-
fields: [
|
|
2422
|
+
fields: [subAgentFunctionToolRelations.functionToolId],
|
|
2439
2423
|
references: [functionTools.id]
|
|
2440
2424
|
})
|
|
2441
2425
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.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.
|
|
50
|
-
"@inkeep/agents-sdk": "^0.
|
|
49
|
+
"@inkeep/agents-core": "^0.21.1",
|
|
50
|
+
"@inkeep/agents-sdk": "^0.21.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/degit": "^2.8.6",
|