@inkeep/agents-cli 0.0.0-dev-20250912012315 → 0.0.0-dev-20250912144623
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/commands/create.js +71 -39
- package/dist/index.js +81 -153
- package/package.json +4 -4
package/dist/commands/create.js
CHANGED
|
@@ -223,16 +223,16 @@ var createAgents = async (args = {}) => {
|
|
|
223
223
|
${color.yellow("Next steps:")}
|
|
224
224
|
cd ${dirName}
|
|
225
225
|
pnpm run dev (for APIs only)
|
|
226
|
-
inkeep dev (for APIs +
|
|
226
|
+
inkeep dev (for APIs + Manage UI)
|
|
227
227
|
|
|
228
228
|
${color.yellow("Available services:")}
|
|
229
|
-
\u2022
|
|
230
|
-
\u2022
|
|
231
|
-
\u2022
|
|
229
|
+
\u2022 Manage API: http://localhost:${manageApiPort || "3002"}
|
|
230
|
+
\u2022 Run API: http://localhost:${runApiPort || "3003"}
|
|
231
|
+
\u2022 Manage UI: Available with 'inkeep dev'
|
|
232
232
|
|
|
233
233
|
${color.yellow("Configuration:")}
|
|
234
234
|
\u2022 Edit .env for environment variables
|
|
235
|
-
\u2022 Edit src/${projectId}/
|
|
235
|
+
\u2022 Edit src/${projectId}/weather.graph.ts for agent definitions
|
|
236
236
|
\u2022 Use 'inkeep push' to deploy agents to the platform
|
|
237
237
|
\u2022 Use 'inkeep chat' to test your agents locally
|
|
238
238
|
`,
|
|
@@ -290,7 +290,7 @@ async function setupPackageConfigurations(dirName) {
|
|
|
290
290
|
const manageApiPackageJson = {
|
|
291
291
|
name: `@${dirName}/manage-api`,
|
|
292
292
|
version: "0.1.0",
|
|
293
|
-
description: "
|
|
293
|
+
description: "Manage API for agents",
|
|
294
294
|
type: "module",
|
|
295
295
|
scripts: {
|
|
296
296
|
build: "tsc",
|
|
@@ -479,26 +479,58 @@ pids/
|
|
|
479
479
|
await fs.writeJson("biome.json", biomeConfig, { spaces: 2 });
|
|
480
480
|
}
|
|
481
481
|
async function createServiceFiles(config) {
|
|
482
|
-
const agentsGraph = `import { agent, agentGraph } from '@inkeep/agents-sdk';
|
|
483
|
-
|
|
484
|
-
//
|
|
485
|
-
const
|
|
486
|
-
id: '
|
|
487
|
-
name: '
|
|
488
|
-
|
|
489
|
-
|
|
482
|
+
const agentsGraph = `import { agent, agentGraph, mcpTool } from '@inkeep/agents-sdk';
|
|
483
|
+
|
|
484
|
+
// MCP Tools
|
|
485
|
+
const forecastWeatherTool = mcpTool({
|
|
486
|
+
id: 'fUI2riwrBVJ6MepT8rjx0',
|
|
487
|
+
name: 'Forecast weather',
|
|
488
|
+
serverUrl: 'https://weather-forecast-mcp.vercel.app/mcp',
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
const geocodeAddressTool = mcpTool({
|
|
492
|
+
id: 'fdxgfv9HL7SXlfynPx8hf',
|
|
493
|
+
name: 'Geocode address',
|
|
494
|
+
serverUrl: 'https://geocoder-mcp.vercel.app/mcp',
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
// Agents
|
|
498
|
+
const weatherAssistant = agent({
|
|
499
|
+
id: 'weather-assistant',
|
|
500
|
+
name: 'Weather assistant',
|
|
501
|
+
description: 'Responsible for routing between the geocoder agent and weather forecast agent',
|
|
502
|
+
prompt:
|
|
503
|
+
'You are a helpful assistant. When the user asks about the weather in a given location, first ask the geocoder agent for the coordinates, and then pass those coordinates to the weather forecast agent to get the weather forecast',
|
|
504
|
+
canDelegateTo: () => [weatherForecaster, geocoderAgent],
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
const weatherForecaster = agent({
|
|
508
|
+
id: 'weather-forecaster',
|
|
509
|
+
name: 'Weather forecaster',
|
|
510
|
+
description:
|
|
511
|
+
'This agent is responsible for taking in coordinates and returning the forecast for the weather at that location',
|
|
512
|
+
prompt:
|
|
513
|
+
'You are a helpful assistant responsible for taking in coordinates and returning the forecast for that location using your forecasting tool',
|
|
514
|
+
canUse: () => [forecastWeatherTool],
|
|
490
515
|
});
|
|
491
516
|
|
|
517
|
+
const geocoderAgent = agent({
|
|
518
|
+
id: 'geocoder-agent',
|
|
519
|
+
name: 'Geocoder agent',
|
|
520
|
+
description: 'Responsible for converting location or address into coordinates',
|
|
521
|
+
prompt:
|
|
522
|
+
'You are a helpful assistant responsible for converting location or address into coordinates using your geocode tool',
|
|
523
|
+
canUse: () => [geocodeAddressTool],
|
|
524
|
+
});
|
|
492
525
|
|
|
493
|
-
//
|
|
494
|
-
export const
|
|
495
|
-
id: '
|
|
496
|
-
name: '
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
agents: () => [helloAgent],
|
|
526
|
+
// Agent Graph
|
|
527
|
+
export const weatherGraph = agentGraph({
|
|
528
|
+
id: 'weather-graph',
|
|
529
|
+
name: 'Weather graph',
|
|
530
|
+
defaultAgent: weatherAssistant,
|
|
531
|
+
agents: () => [weatherAssistant, weatherForecaster, geocoderAgent],
|
|
500
532
|
});`;
|
|
501
|
-
await fs.writeFile(`src/${config.projectId}/
|
|
533
|
+
await fs.writeFile(`src/${config.projectId}/weather.graph.ts`, agentsGraph);
|
|
502
534
|
const inkeepConfig = `import { defineConfig } from '@inkeep/agents-cli/config';
|
|
503
535
|
|
|
504
536
|
const config = defineConfig({
|
|
@@ -608,7 +640,7 @@ serve(
|
|
|
608
640
|
port,
|
|
609
641
|
},
|
|
610
642
|
(info) => {
|
|
611
|
-
logger.info({}, \`\u{1F4DD}
|
|
643
|
+
logger.info({}, \`\u{1F4DD} Run API running on http://localhost:\${info.port}\`);
|
|
612
644
|
logger.info({}, \`\u{1F4DD} OpenAPI documentation available at http://localhost:\${info.port}/openapi.json\`);
|
|
613
645
|
}
|
|
614
646
|
);`;
|
|
@@ -672,11 +704,11 @@ An Inkeep Agent Framework project with multi-service architecture.
|
|
|
672
704
|
|
|
673
705
|
This project follows a workspace structure with the following services:
|
|
674
706
|
|
|
675
|
-
- **Agents
|
|
707
|
+
- **Agents Manage API** (Port 3002): Agent configuration and managemen
|
|
676
708
|
- Handles entity management and configuration endpoints.
|
|
677
709
|
- **Agents Run API** (Port 3003): Agent execution and chat processing
|
|
678
710
|
- Handles agent communication. You can interact with your agents either over MCP from an MCP client or through our React UI components library
|
|
679
|
-
- **
|
|
711
|
+
- **Agents Manage UI** (Port 3000): Web interface available via \`inkeep dev\`
|
|
680
712
|
- The agent framework visual builder. From the builder you can create, manage and visualize all your graphs.
|
|
681
713
|
|
|
682
714
|
## Quick Start
|
|
@@ -687,7 +719,7 @@ This project follows a workspace structure with the following services:
|
|
|
687
719
|
|
|
688
720
|
1. **Start services:**
|
|
689
721
|
\`\`\`bash
|
|
690
|
-
# Start Agents
|
|
722
|
+
# Start Agents Manage API and Agents Run API
|
|
691
723
|
pnpm run dev
|
|
692
724
|
|
|
693
725
|
# Start Dashboard
|
|
@@ -699,8 +731,8 @@ This project follows a workspace structure with the following services:
|
|
|
699
731
|
# Navigate to your project's graph directory
|
|
700
732
|
cd src/${config.projectId}/
|
|
701
733
|
|
|
702
|
-
# Push the
|
|
703
|
-
inkeep push
|
|
734
|
+
# Push the weather graph to create it
|
|
735
|
+
inkeep push weather.graph.ts
|
|
704
736
|
\`\`\`
|
|
705
737
|
- Follow the prompts to create the project and graph
|
|
706
738
|
- Click on the "View graph in UI:" link to see the graph in the management dashboard
|
|
@@ -712,7 +744,7 @@ ${config.dirName}/
|
|
|
712
744
|
\u251C\u2500\u2500 src/
|
|
713
745
|
\u2502 \u251C\u2500\u2500 /${config.projectId} # Agent configurations
|
|
714
746
|
\u251C\u2500\u2500 apps/
|
|
715
|
-
\u2502 \u251C\u2500\u2500 manage-api/ # Agents
|
|
747
|
+
\u2502 \u251C\u2500\u2500 manage-api/ # Agents Manage API service
|
|
716
748
|
\u2502 \u251C\u2500\u2500 run-api/ # Agents Run API service
|
|
717
749
|
\u2502 \u2514\u2500\u2500 shared/ # Shared code between API services
|
|
718
750
|
\u2502 \u2514\u2500\u2500 credential-stores.ts # Shared credential store configuration
|
|
@@ -727,7 +759,7 @@ ${config.dirName}/
|
|
|
727
759
|
|
|
728
760
|
Environment variables are defined in the following places:
|
|
729
761
|
|
|
730
|
-
- \`apps/manage-api/.env\`: Agents
|
|
762
|
+
- \`apps/manage-api/.env\`: Agents Manage API environment variables
|
|
731
763
|
- \`apps/run-api/.env\`: Agents Run API environment variables
|
|
732
764
|
- \`src/${config.projectId}/.env\`: Inkeep CLI environment variables
|
|
733
765
|
- \`.env\`: Root environment variables
|
|
@@ -747,7 +779,7 @@ To change the ports used by your services modify \`apps/manage-api/.env\` and \`
|
|
|
747
779
|
RUN_API_PORT=3003
|
|
748
780
|
|
|
749
781
|
# Service port for apps/manage-api
|
|
750
|
-
MANAGE_API_PORT
|
|
782
|
+
MANAGE_API_PORT=3002
|
|
751
783
|
\`\`\`
|
|
752
784
|
|
|
753
785
|
After changing the API Service ports make sure that you modify the dashboard API urls from whichever directory you are running \`inkeep dev\`:
|
|
@@ -760,31 +792,31 @@ NEXT_PUBLIC_INKEEP_AGENTS_RUN_API_URL=http://localhost:${config.runApiPort}
|
|
|
760
792
|
|
|
761
793
|
### Agent Configuration
|
|
762
794
|
|
|
763
|
-
Your
|
|
795
|
+
Your graphs are defined in \`src/${config.projectId}/weather.graph.ts\`. The default setup includes:
|
|
764
796
|
|
|
765
|
-
- **
|
|
797
|
+
- **Weather Graph**: A graph that can forecast the weather in a given location.
|
|
766
798
|
|
|
767
799
|
Your inkeep configuration is defined in \`src/${config.projectId}/inkeep.config.ts\`. The inkeep configuration is used to configure defaults for the inkeep CLI. The configuration includes:
|
|
768
800
|
|
|
769
801
|
- \`tenantId\`: The tenant ID
|
|
770
802
|
- \`projectId\`: The project ID
|
|
771
|
-
- \`agentsManageApiUrl\`: The
|
|
772
|
-
- \`agentsRunApiUrl\`: The
|
|
803
|
+
- \`agentsManageApiUrl\`: The Manage API URL
|
|
804
|
+
- \`agentsRunApiUrl\`: The Run API URL
|
|
773
805
|
|
|
774
806
|
|
|
775
807
|
## Development
|
|
776
808
|
|
|
777
809
|
### Updating Your Agents
|
|
778
810
|
|
|
779
|
-
1. Edit \`src/${config.projectId}/
|
|
780
|
-
2. Push the graph to the platform to update: \`inkeep
|
|
811
|
+
1. Edit \`src/${config.projectId}/weather.graph.ts\`
|
|
812
|
+
2. Push the graph to the platform to update: \`inkeep pus weather.graph.ts\`
|
|
781
813
|
|
|
782
814
|
### API Documentation
|
|
783
815
|
|
|
784
816
|
Once services are running, view the OpenAPI documentation:
|
|
785
817
|
|
|
786
|
-
-
|
|
787
|
-
-
|
|
818
|
+
- Manage API: http://localhost:${config.manageApiPort}/docs
|
|
819
|
+
- Run API: http://localhost:${config.runApiPort}/docs
|
|
788
820
|
|
|
789
821
|
## Learn More
|
|
790
822
|
|
package/dist/index.js
CHANGED
|
@@ -15445,16 +15445,16 @@ var createAgents = async (args = {}) => {
|
|
|
15445
15445
|
${color.yellow("Next steps:")}
|
|
15446
15446
|
cd ${dirName}
|
|
15447
15447
|
pnpm run dev (for APIs only)
|
|
15448
|
-
inkeep dev (for APIs +
|
|
15448
|
+
inkeep dev (for APIs + Manage UI)
|
|
15449
15449
|
|
|
15450
15450
|
${color.yellow("Available services:")}
|
|
15451
|
-
\u2022
|
|
15452
|
-
\u2022
|
|
15453
|
-
\u2022
|
|
15451
|
+
\u2022 Manage API: http://localhost:${manageApiPort || "3002"}
|
|
15452
|
+
\u2022 Run API: http://localhost:${runApiPort || "3003"}
|
|
15453
|
+
\u2022 Manage UI: Available with 'inkeep dev'
|
|
15454
15454
|
|
|
15455
15455
|
${color.yellow("Configuration:")}
|
|
15456
15456
|
\u2022 Edit .env for environment variables
|
|
15457
|
-
\u2022 Edit src/${projectId}/
|
|
15457
|
+
\u2022 Edit src/${projectId}/weather.graph.ts for agent definitions
|
|
15458
15458
|
\u2022 Use 'inkeep push' to deploy agents to the platform
|
|
15459
15459
|
\u2022 Use 'inkeep chat' to test your agents locally
|
|
15460
15460
|
`,
|
|
@@ -15512,7 +15512,7 @@ async function setupPackageConfigurations(dirName) {
|
|
|
15512
15512
|
const manageApiPackageJson = {
|
|
15513
15513
|
name: `@${dirName}/manage-api`,
|
|
15514
15514
|
version: "0.1.0",
|
|
15515
|
-
description: "
|
|
15515
|
+
description: "Manage API for agents",
|
|
15516
15516
|
type: "module",
|
|
15517
15517
|
scripts: {
|
|
15518
15518
|
build: "tsc",
|
|
@@ -15701,26 +15701,58 @@ pids/
|
|
|
15701
15701
|
await fs.writeJson("biome.json", biomeConfig, { spaces: 2 });
|
|
15702
15702
|
}
|
|
15703
15703
|
async function createServiceFiles(config) {
|
|
15704
|
-
const agentsGraph = `import { agent, agentGraph } from '@inkeep/agents-sdk';
|
|
15705
|
-
|
|
15706
|
-
//
|
|
15707
|
-
const
|
|
15708
|
-
id: '
|
|
15709
|
-
name: '
|
|
15710
|
-
|
|
15711
|
-
|
|
15704
|
+
const agentsGraph = `import { agent, agentGraph, mcpTool } from '@inkeep/agents-sdk';
|
|
15705
|
+
|
|
15706
|
+
// MCP Tools
|
|
15707
|
+
const forecastWeatherTool = mcpTool({
|
|
15708
|
+
id: 'fUI2riwrBVJ6MepT8rjx0',
|
|
15709
|
+
name: 'Forecast weather',
|
|
15710
|
+
serverUrl: 'https://weather-forecast-mcp.vercel.app/mcp',
|
|
15711
|
+
});
|
|
15712
|
+
|
|
15713
|
+
const geocodeAddressTool = mcpTool({
|
|
15714
|
+
id: 'fdxgfv9HL7SXlfynPx8hf',
|
|
15715
|
+
name: 'Geocode address',
|
|
15716
|
+
serverUrl: 'https://geocoder-mcp.vercel.app/mcp',
|
|
15712
15717
|
});
|
|
15713
15718
|
|
|
15719
|
+
// Agents
|
|
15720
|
+
const weatherAssistant = agent({
|
|
15721
|
+
id: 'weather-assistant',
|
|
15722
|
+
name: 'Weather assistant',
|
|
15723
|
+
description: 'Responsible for routing between the geocoder agent and weather forecast agent',
|
|
15724
|
+
prompt:
|
|
15725
|
+
'You are a helpful assistant. When the user asks about the weather in a given location, first ask the geocoder agent for the coordinates, and then pass those coordinates to the weather forecast agent to get the weather forecast',
|
|
15726
|
+
canDelegateTo: () => [weatherForecaster, geocoderAgent],
|
|
15727
|
+
});
|
|
15714
15728
|
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
|
|
15719
|
-
|
|
15720
|
-
|
|
15721
|
-
|
|
15729
|
+
const weatherForecaster = agent({
|
|
15730
|
+
id: 'weather-forecaster',
|
|
15731
|
+
name: 'Weather forecaster',
|
|
15732
|
+
description:
|
|
15733
|
+
'This agent is responsible for taking in coordinates and returning the forecast for the weather at that location',
|
|
15734
|
+
prompt:
|
|
15735
|
+
'You are a helpful assistant responsible for taking in coordinates and returning the forecast for that location using your forecasting tool',
|
|
15736
|
+
canUse: () => [forecastWeatherTool],
|
|
15737
|
+
});
|
|
15738
|
+
|
|
15739
|
+
const geocoderAgent = agent({
|
|
15740
|
+
id: 'geocoder-agent',
|
|
15741
|
+
name: 'Geocoder agent',
|
|
15742
|
+
description: 'Responsible for converting location or address into coordinates',
|
|
15743
|
+
prompt:
|
|
15744
|
+
'You are a helpful assistant responsible for converting location or address into coordinates using your geocode tool',
|
|
15745
|
+
canUse: () => [geocodeAddressTool],
|
|
15746
|
+
});
|
|
15747
|
+
|
|
15748
|
+
// Agent Graph
|
|
15749
|
+
export const weatherGraph = agentGraph({
|
|
15750
|
+
id: 'weather-graph',
|
|
15751
|
+
name: 'Weather graph',
|
|
15752
|
+
defaultAgent: weatherAssistant,
|
|
15753
|
+
agents: () => [weatherAssistant, weatherForecaster, geocoderAgent],
|
|
15722
15754
|
});`;
|
|
15723
|
-
await fs.writeFile(`src/${config.projectId}/
|
|
15755
|
+
await fs.writeFile(`src/${config.projectId}/weather.graph.ts`, agentsGraph);
|
|
15724
15756
|
const inkeepConfig = `import { defineConfig } from '@inkeep/agents-cli/config';
|
|
15725
15757
|
|
|
15726
15758
|
const config = defineConfig({
|
|
@@ -15830,7 +15862,7 @@ serve(
|
|
|
15830
15862
|
port,
|
|
15831
15863
|
},
|
|
15832
15864
|
(info) => {
|
|
15833
|
-
logger.info({}, \`\u{1F4DD}
|
|
15865
|
+
logger.info({}, \`\u{1F4DD} Run API running on http://localhost:\${info.port}\`);
|
|
15834
15866
|
logger.info({}, \`\u{1F4DD} OpenAPI documentation available at http://localhost:\${info.port}/openapi.json\`);
|
|
15835
15867
|
}
|
|
15836
15868
|
);`;
|
|
@@ -15894,11 +15926,11 @@ An Inkeep Agent Framework project with multi-service architecture.
|
|
|
15894
15926
|
|
|
15895
15927
|
This project follows a workspace structure with the following services:
|
|
15896
15928
|
|
|
15897
|
-
- **Agents
|
|
15929
|
+
- **Agents Manage API** (Port 3002): Agent configuration and managemen
|
|
15898
15930
|
- Handles entity management and configuration endpoints.
|
|
15899
15931
|
- **Agents Run API** (Port 3003): Agent execution and chat processing
|
|
15900
15932
|
- Handles agent communication. You can interact with your agents either over MCP from an MCP client or through our React UI components library
|
|
15901
|
-
- **
|
|
15933
|
+
- **Agents Manage UI** (Port 3000): Web interface available via \`inkeep dev\`
|
|
15902
15934
|
- The agent framework visual builder. From the builder you can create, manage and visualize all your graphs.
|
|
15903
15935
|
|
|
15904
15936
|
## Quick Start
|
|
@@ -15909,7 +15941,7 @@ This project follows a workspace structure with the following services:
|
|
|
15909
15941
|
|
|
15910
15942
|
1. **Start services:**
|
|
15911
15943
|
\`\`\`bash
|
|
15912
|
-
# Start Agents
|
|
15944
|
+
# Start Agents Manage API and Agents Run API
|
|
15913
15945
|
pnpm run dev
|
|
15914
15946
|
|
|
15915
15947
|
# Start Dashboard
|
|
@@ -15921,8 +15953,8 @@ This project follows a workspace structure with the following services:
|
|
|
15921
15953
|
# Navigate to your project's graph directory
|
|
15922
15954
|
cd src/${config.projectId}/
|
|
15923
15955
|
|
|
15924
|
-
# Push the
|
|
15925
|
-
inkeep push
|
|
15956
|
+
# Push the weather graph to create it
|
|
15957
|
+
inkeep push weather.graph.ts
|
|
15926
15958
|
\`\`\`
|
|
15927
15959
|
- Follow the prompts to create the project and graph
|
|
15928
15960
|
- Click on the "View graph in UI:" link to see the graph in the management dashboard
|
|
@@ -15934,7 +15966,7 @@ ${config.dirName}/
|
|
|
15934
15966
|
\u251C\u2500\u2500 src/
|
|
15935
15967
|
\u2502 \u251C\u2500\u2500 /${config.projectId} # Agent configurations
|
|
15936
15968
|
\u251C\u2500\u2500 apps/
|
|
15937
|
-
\u2502 \u251C\u2500\u2500 manage-api/ # Agents
|
|
15969
|
+
\u2502 \u251C\u2500\u2500 manage-api/ # Agents Manage API service
|
|
15938
15970
|
\u2502 \u251C\u2500\u2500 run-api/ # Agents Run API service
|
|
15939
15971
|
\u2502 \u2514\u2500\u2500 shared/ # Shared code between API services
|
|
15940
15972
|
\u2502 \u2514\u2500\u2500 credential-stores.ts # Shared credential store configuration
|
|
@@ -15949,7 +15981,7 @@ ${config.dirName}/
|
|
|
15949
15981
|
|
|
15950
15982
|
Environment variables are defined in the following places:
|
|
15951
15983
|
|
|
15952
|
-
- \`apps/manage-api/.env\`: Agents
|
|
15984
|
+
- \`apps/manage-api/.env\`: Agents Manage API environment variables
|
|
15953
15985
|
- \`apps/run-api/.env\`: Agents Run API environment variables
|
|
15954
15986
|
- \`src/${config.projectId}/.env\`: Inkeep CLI environment variables
|
|
15955
15987
|
- \`.env\`: Root environment variables
|
|
@@ -15969,7 +16001,7 @@ To change the ports used by your services modify \`apps/manage-api/.env\` and \`
|
|
|
15969
16001
|
RUN_API_PORT=3003
|
|
15970
16002
|
|
|
15971
16003
|
# Service port for apps/manage-api
|
|
15972
|
-
MANAGE_API_PORT
|
|
16004
|
+
MANAGE_API_PORT=3002
|
|
15973
16005
|
\`\`\`
|
|
15974
16006
|
|
|
15975
16007
|
After changing the API Service ports make sure that you modify the dashboard API urls from whichever directory you are running \`inkeep dev\`:
|
|
@@ -15982,31 +16014,31 @@ NEXT_PUBLIC_INKEEP_AGENTS_RUN_API_URL=http://localhost:${config.runApiPort}
|
|
|
15982
16014
|
|
|
15983
16015
|
### Agent Configuration
|
|
15984
16016
|
|
|
15985
|
-
Your
|
|
16017
|
+
Your graphs are defined in \`src/${config.projectId}/weather.graph.ts\`. The default setup includes:
|
|
15986
16018
|
|
|
15987
|
-
- **
|
|
16019
|
+
- **Weather Graph**: A graph that can forecast the weather in a given location.
|
|
15988
16020
|
|
|
15989
16021
|
Your inkeep configuration is defined in \`src/${config.projectId}/inkeep.config.ts\`. The inkeep configuration is used to configure defaults for the inkeep CLI. The configuration includes:
|
|
15990
16022
|
|
|
15991
16023
|
- \`tenantId\`: The tenant ID
|
|
15992
16024
|
- \`projectId\`: The project ID
|
|
15993
|
-
- \`agentsManageApiUrl\`: The
|
|
15994
|
-
- \`agentsRunApiUrl\`: The
|
|
16025
|
+
- \`agentsManageApiUrl\`: The Manage API URL
|
|
16026
|
+
- \`agentsRunApiUrl\`: The Run API URL
|
|
15995
16027
|
|
|
15996
16028
|
|
|
15997
16029
|
## Development
|
|
15998
16030
|
|
|
15999
16031
|
### Updating Your Agents
|
|
16000
16032
|
|
|
16001
|
-
1. Edit \`src/${config.projectId}/
|
|
16002
|
-
2. Push the graph to the platform to update: \`inkeep
|
|
16033
|
+
1. Edit \`src/${config.projectId}/weather.graph.ts\`
|
|
16034
|
+
2. Push the graph to the platform to update: \`inkeep pus weather.graph.ts\`
|
|
16003
16035
|
|
|
16004
16036
|
### API Documentation
|
|
16005
16037
|
|
|
16006
16038
|
Once services are running, view the OpenAPI documentation:
|
|
16007
16039
|
|
|
16008
|
-
-
|
|
16009
|
-
-
|
|
16040
|
+
- Manage API: http://localhost:${config.manageApiPort}/docs
|
|
16041
|
+
- Run API: http://localhost:${config.runApiPort}/docs
|
|
16010
16042
|
|
|
16011
16043
|
## Learn More
|
|
16012
16044
|
|
|
@@ -16822,18 +16854,14 @@ async function pullCommand(graphId, options) {
|
|
|
16822
16854
|
} else {
|
|
16823
16855
|
spinner2.text = isExistingFile ? "Merging into existing TypeScript file with LLM..." : "Generating TypeScript file with LLM...";
|
|
16824
16856
|
}
|
|
16825
|
-
const pullModel = config.modelSettings?.base || {
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
16830
|
-
|
|
16831
|
-
|
|
16832
|
-
|
|
16833
|
-
maxRetries,
|
|
16834
|
-
previousDifferences: attempt > 1 ? previousDifferences : void 0
|
|
16835
|
-
}
|
|
16836
|
-
);
|
|
16857
|
+
const pullModel = config.modelSettings?.base || {
|
|
16858
|
+
model: "anthropic/claude-sonnet-4-20250514"
|
|
16859
|
+
};
|
|
16860
|
+
await generateTypeScriptFileWithLLM(graphData, graphId, outputFilePath, pullModel, {
|
|
16861
|
+
attempt,
|
|
16862
|
+
maxRetries,
|
|
16863
|
+
previousDifferences: attempt > 1 ? previousDifferences : void 0
|
|
16864
|
+
});
|
|
16837
16865
|
if (shouldValidate) {
|
|
16838
16866
|
spinner2.text = "Validating generated TypeScript file...";
|
|
16839
16867
|
try {
|
|
@@ -21894,107 +21922,7 @@ function getTracer(serviceName, serviceVersion) {
|
|
|
21894
21922
|
|
|
21895
21923
|
// ../packages/agents-core/src/utils/tracer.ts
|
|
21896
21924
|
init_esm_shims();
|
|
21897
|
-
|
|
21898
|
-
// ../packages/agents-core/package.json
|
|
21899
|
-
var package_default = {
|
|
21900
|
-
name: "@inkeep/agents-core",
|
|
21901
|
-
version: "0.1.4",
|
|
21902
|
-
description: "Core database schema, types, and validation schemas for Inkeep Agent Framework",
|
|
21903
|
-
type: "module",
|
|
21904
|
-
license: "SEE LICENSE IN LICENSE.md",
|
|
21905
|
-
main: "./src/index.ts",
|
|
21906
|
-
exports: {
|
|
21907
|
-
".": "./src/index.ts",
|
|
21908
|
-
"./schema": "./src/db/schema.ts",
|
|
21909
|
-
"./types": "./src/types/index.ts",
|
|
21910
|
-
"./validation": "./src/validation/index.ts",
|
|
21911
|
-
"./client-exports": "./src/client-exports.ts"
|
|
21912
|
-
},
|
|
21913
|
-
scripts: {
|
|
21914
|
-
build: "tsup",
|
|
21915
|
-
prepare: "pnpm build",
|
|
21916
|
-
test: "vitest --run",
|
|
21917
|
-
"test:unit": "vitest --run src/__tests__ --exclude src/__tests__/integration/**",
|
|
21918
|
-
"test:integration": "vitest --run src/__tests__/integration/",
|
|
21919
|
-
"test:coverage": "vitest --run --coverage",
|
|
21920
|
-
"test:watch": "vitest --watch",
|
|
21921
|
-
lint: "biome lint src",
|
|
21922
|
-
"lint:fix": "biome check --write src",
|
|
21923
|
-
format: "biome format --write src",
|
|
21924
|
-
"format:check": "biome format src",
|
|
21925
|
-
typecheck: "tsc --noEmit",
|
|
21926
|
-
"db:generate": "drizzle-kit generate",
|
|
21927
|
-
"db:push": "drizzle-kit push",
|
|
21928
|
-
"db:migrate": "drizzle-kit migrate",
|
|
21929
|
-
"db:clean": "tsx src/db/clean.ts",
|
|
21930
|
-
"db:studio": "drizzle-kit studio",
|
|
21931
|
-
"db:check": "drizzle-kit check",
|
|
21932
|
-
"db:reset-schema": "rm -rf drizzle/* && echo 'All migration files removed, generating new schema' && drizzle-kit generate",
|
|
21933
|
-
prepack: "clean-package",
|
|
21934
|
-
postpack: "clean-package restore"
|
|
21935
|
-
},
|
|
21936
|
-
"clean-package": "./clean-package.config.json",
|
|
21937
|
-
dependencies: {
|
|
21938
|
-
"@hono/node-server": "^1.14.3",
|
|
21939
|
-
"@hono/zod-openapi": "^1.0.2",
|
|
21940
|
-
"@libsql/client": "^0.15.7",
|
|
21941
|
-
"@modelcontextprotocol/sdk": "^1.17.2",
|
|
21942
|
-
"@nangohq/node": "^0.66.0",
|
|
21943
|
-
"@nangohq/types": "^0.66.0",
|
|
21944
|
-
"@opentelemetry/api": "^1.9.0",
|
|
21945
|
-
"@opentelemetry/auto-instrumentations-node": "^0.62.0",
|
|
21946
|
-
"@opentelemetry/baggage-span-processor": "^0.4.0",
|
|
21947
|
-
"@opentelemetry/exporter-jaeger": "^2.0.1",
|
|
21948
|
-
"@opentelemetry/exporter-trace-otlp-proto": "^0.203.0",
|
|
21949
|
-
"@opentelemetry/sdk-metrics": "^2.0.1",
|
|
21950
|
-
"@opentelemetry/sdk-node": "^0.203.0",
|
|
21951
|
-
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
21952
|
-
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
21953
|
-
ai: "5.0.11",
|
|
21954
|
-
ajv: "^8.17.1",
|
|
21955
|
-
"ajv-formats": "^3.0.1",
|
|
21956
|
-
dotenv: "^17.2.1",
|
|
21957
|
-
"drizzle-orm": "^0.44.4",
|
|
21958
|
-
"drizzle-zod": "^0.8.2",
|
|
21959
|
-
"exit-hook": "^4.0.0",
|
|
21960
|
-
hono: "^4.8.10",
|
|
21961
|
-
jmespath: "^0.16.0",
|
|
21962
|
-
keytar: "^7.9.0",
|
|
21963
|
-
nanoid: "^5.0.9",
|
|
21964
|
-
"ts-pattern": "^5.7.1",
|
|
21965
|
-
zod: "^4.1.5"
|
|
21966
|
-
},
|
|
21967
|
-
devDependencies: {
|
|
21968
|
-
"@types/jmespath": "^0.15.2",
|
|
21969
|
-
"@types/node": "^20.11.24",
|
|
21970
|
-
"@vitest/coverage-v8": "^2.0.0",
|
|
21971
|
-
"clean-package": "^2.2.0",
|
|
21972
|
-
"drizzle-kit": "^0.31.4",
|
|
21973
|
-
typescript: "^5.9.2",
|
|
21974
|
-
vitest: "^3.1.4"
|
|
21975
|
-
},
|
|
21976
|
-
engines: {
|
|
21977
|
-
node: ">=22.0.0"
|
|
21978
|
-
},
|
|
21979
|
-
publishConfig: {
|
|
21980
|
-
access: "restricted",
|
|
21981
|
-
registry: "https://registry.npmjs.org/"
|
|
21982
|
-
},
|
|
21983
|
-
files: [
|
|
21984
|
-
"dist",
|
|
21985
|
-
"README.md",
|
|
21986
|
-
"LICENSE.md",
|
|
21987
|
-
"SUPPLEMENTAL_TERMS.md"
|
|
21988
|
-
],
|
|
21989
|
-
repository: {
|
|
21990
|
-
type: "git",
|
|
21991
|
-
url: "git+https://github.com/inkeep/agents.git",
|
|
21992
|
-
directory: "packages/agents-core"
|
|
21993
|
-
}
|
|
21994
|
-
};
|
|
21995
|
-
|
|
21996
|
-
// ../packages/agents-core/src/utils/tracer.ts
|
|
21997
|
-
var tracer = getTracer("agents-core", package_default.version);
|
|
21925
|
+
var tracer = getTracer("agents-core");
|
|
21998
21926
|
|
|
21999
21927
|
// ../packages/agents-core/src/context/contextCache.ts
|
|
22000
21928
|
init_esm_shims();
|
|
@@ -22319,7 +22247,7 @@ var packageJsonPath = join6(__dirname2, "..", "package.json");
|
|
|
22319
22247
|
var packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8"));
|
|
22320
22248
|
var program = new Command();
|
|
22321
22249
|
program.name("inkeep").description("CLI tool for Inkeep Agent Framework").version(packageJson.version);
|
|
22322
|
-
program.command("create [directory]").description("Create a new Inkeep Agent Framework Starter Directory").option("--tenant-id <tenant-id>", "Tenant ID").option("--project-id <project-id>", "Project ID").option("--openai-key <openai-key>", "OpenAI API key").option("--anthropic-key <anthropic-key>", "Anthropic API key").option("--manage-api-port <port>", "
|
|
22250
|
+
program.command("create [directory]").description("Create a new Inkeep Agent Framework Starter Directory").option("--tenant-id <tenant-id>", "Tenant ID").option("--project-id <project-id>", "Project ID").option("--openai-key <openai-key>", "OpenAI API key").option("--anthropic-key <anthropic-key>", "Anthropic API key").option("--manage-api-port <port>", "Manage API port", "3002").option("--run-api-port <port>", "Run API port", "3003").action(async (directory, options) => {
|
|
22323
22251
|
await createCommand(directory, options);
|
|
22324
22252
|
});
|
|
22325
22253
|
program.command("init [path]").description("Initialize a new Inkeep configuration file").option("--no-interactive", "Skip interactive path selection").action(async (path3, options) => {
|
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-20250912144623",
|
|
4
4
|
"description": "Inkeep CLI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"recast": "^0.23.0",
|
|
43
43
|
"ts-morph": "^26.0.0",
|
|
44
44
|
"tsx": "^4.20.5",
|
|
45
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
46
|
-
"@inkeep/agents-manage-ui": "^0.0.0-dev-
|
|
45
|
+
"@inkeep/agents-core": "^0.0.0-dev-20250912144623",
|
|
46
|
+
"@inkeep/agents-manage-ui": "^0.0.0-dev-20250912144623"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"node": ">=22.0.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
|
-
"access": "
|
|
64
|
+
"access": "public",
|
|
65
65
|
"registry": "https://registry.npmjs.org/"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|