@inkeep/agents-cli 0.1.9 → 0.2.0
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/README.md +61 -40
- package/dist/index.js +1295 -20945
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -53,13 +53,18 @@ A command-line interface for managing and interacting with Inkeep Agent Framewor
|
|
|
53
53
|
- The command is still `inkeep` even though the package name is `@inkeep/agents-cli`
|
|
54
54
|
- If linking fails, try unlinking first: `npm unlink -g @inkeep/agents-cli`
|
|
55
55
|
|
|
56
|
-
3. **Configure
|
|
56
|
+
3. **Configure your project**
|
|
57
57
|
```bash
|
|
58
|
-
#
|
|
59
|
-
inkeep
|
|
58
|
+
# Create an inkeep.config.ts file with your tenant ID
|
|
59
|
+
inkeep init
|
|
60
60
|
|
|
61
|
-
#
|
|
62
|
-
|
|
61
|
+
# Or manually create inkeep.config.ts:
|
|
62
|
+
# export default defineConfig({
|
|
63
|
+
# tenantId: "your-tenant-id",
|
|
64
|
+
# projectId: "your-project-id",
|
|
65
|
+
# agentsManageApiUrl: "http://localhost:3002",
|
|
66
|
+
# agentsRunApiUrl: "http://localhost:3003"
|
|
67
|
+
# });
|
|
63
68
|
```
|
|
64
69
|
|
|
65
70
|
## Configuration
|
|
@@ -67,28 +72,32 @@ A command-line interface for managing and interacting with Inkeep Agent Framewor
|
|
|
67
72
|
### Configuration Sources (priority order)
|
|
68
73
|
|
|
69
74
|
1. **Command-line flags** - Highest priority (e.g., `--tenant-id`, `--api-url`)
|
|
70
|
-
2. **
|
|
71
|
-
3.
|
|
72
|
-
4. **
|
|
73
|
-
5. **Defaults** - Lowest priority (api-url defaults to `http://localhost:3002`)
|
|
75
|
+
2. **Config file** - `inkeep.config.ts` (required for most commands)
|
|
76
|
+
3. **Environment variables** - `INKEEP_AGENTS_MANAGE_API_URL`, `INKEEP_AGENTS_RUN_API_URL`
|
|
77
|
+
4. **Defaults** - Lowest priority (defaults to `http://localhost:3002` and `http://localhost:3003`)
|
|
74
78
|
|
|
75
79
|
### Environment Variables
|
|
76
80
|
|
|
77
81
|
Create a `.env` file in your project directory:
|
|
78
82
|
|
|
79
83
|
```bash
|
|
80
|
-
|
|
84
|
+
INKEEP_AGENTS_MANAGE_API_URL=http://localhost:3002
|
|
85
|
+
INKEEP_AGENTS_RUN_API_URL=http://localhost:3003
|
|
81
86
|
```
|
|
82
87
|
|
|
83
88
|
Or export them in your shell:
|
|
84
89
|
|
|
85
90
|
```bash
|
|
86
|
-
export
|
|
91
|
+
export INKEEP_AGENTS_MANAGE_API_URL=http://localhost:3002
|
|
92
|
+
export INKEEP_AGENTS_RUN_API_URL=http://localhost:3003
|
|
87
93
|
```
|
|
88
94
|
|
|
89
95
|
## Commands
|
|
90
96
|
|
|
91
|
-
### `inkeep tenant [tenant-id]`
|
|
97
|
+
### `inkeep tenant [tenant-id]` ⚠️ NOT IMPLEMENTED
|
|
98
|
+
|
|
99
|
+
> **⚠️ WARNING: This command is not yet implemented in the current CLI.**
|
|
100
|
+
> Use `inkeep.config.ts` to set your tenant ID instead.
|
|
92
101
|
|
|
93
102
|
Manage tenant configuration.
|
|
94
103
|
|
|
@@ -108,7 +117,7 @@ List all available graphs for the current tenant.
|
|
|
108
117
|
inkeep list-graphs
|
|
109
118
|
|
|
110
119
|
# With custom API URL
|
|
111
|
-
inkeep list-graphs --url http://api.example.com:3002
|
|
120
|
+
inkeep list-graphs --api-url http://api.example.com:3002
|
|
112
121
|
```
|
|
113
122
|
|
|
114
123
|
Output:
|
|
@@ -121,16 +130,13 @@ Output:
|
|
|
121
130
|
└─────────────────────────┴────────────────────┴───────────────┴───────────┘
|
|
122
131
|
```
|
|
123
132
|
|
|
124
|
-
### `inkeep push
|
|
133
|
+
### `inkeep push`
|
|
125
134
|
|
|
126
|
-
Push
|
|
135
|
+
Push your project configuration to the backend.
|
|
127
136
|
|
|
128
137
|
```bash
|
|
129
|
-
# Push
|
|
130
|
-
inkeep push
|
|
131
|
-
|
|
132
|
-
# With custom API URL
|
|
133
|
-
inkeep push ./graph.ts --url http://api.example.com:3002
|
|
138
|
+
# Push the current project (from the directory with inkeep.config.ts)
|
|
139
|
+
inkeep push
|
|
134
140
|
```
|
|
135
141
|
|
|
136
142
|
**Features:**
|
|
@@ -140,7 +146,7 @@ inkeep push ./graph.ts --url http://api.example.com:3002
|
|
|
140
146
|
- Shows graph summary after successful push
|
|
141
147
|
- Handles graph initialization automatically
|
|
142
148
|
|
|
143
|
-
**Graph
|
|
149
|
+
**Graph files:** Define your graphs in your project (e.g., `graphs/*.graph.ts`). The CLI pushes the project containing those graphs.
|
|
144
150
|
|
|
145
151
|
**Example graph configuration:**
|
|
146
152
|
|
|
@@ -183,7 +189,7 @@ inkeep chat my-graph-id
|
|
|
183
189
|
inkeep chat
|
|
184
190
|
|
|
185
191
|
# With custom API URL
|
|
186
|
-
inkeep chat --url http://api.example.com:
|
|
192
|
+
inkeep chat --api-url http://api.example.com:3003
|
|
187
193
|
```
|
|
188
194
|
|
|
189
195
|
**Interactive Features:**
|
|
@@ -195,7 +201,10 @@ inkeep chat --url http://api.example.com:3002
|
|
|
195
201
|
- `reset` - Reset conversation context
|
|
196
202
|
- `exit` - End chat session
|
|
197
203
|
|
|
198
|
-
### `inkeep mcp start <graph-file>`
|
|
204
|
+
### `inkeep mcp start <graph-file>` ⚠️ NOT IMPLEMENTED
|
|
205
|
+
|
|
206
|
+
> **⚠️ WARNING: This command is not yet implemented in the current CLI.**
|
|
207
|
+
> MCP functionality is planned but not available in the current version.
|
|
199
208
|
|
|
200
209
|
Start MCP (Model Context Protocol) servers defined in a graph file.
|
|
201
210
|
|
|
@@ -219,7 +228,9 @@ inkeep mcp start graph.graph.ts --verbose
|
|
|
219
228
|
- Shows server names, ports, and URLs
|
|
220
229
|
- Distinguishes between local (🏠) and remote (☁️) servers
|
|
221
230
|
|
|
222
|
-
### `inkeep mcp stop`
|
|
231
|
+
### `inkeep mcp stop` ⚠️ NOT IMPLEMENTED
|
|
232
|
+
|
|
233
|
+
> **⚠️ WARNING: This command is not yet implemented in the current CLI.**
|
|
223
234
|
|
|
224
235
|
Stop running MCP servers.
|
|
225
236
|
|
|
@@ -231,7 +242,9 @@ inkeep mcp stop --all
|
|
|
231
242
|
inkeep mcp stop --graph customer-support-graph
|
|
232
243
|
```
|
|
233
244
|
|
|
234
|
-
### `inkeep mcp status`
|
|
245
|
+
### `inkeep mcp status` ⚠️ NOT IMPLEMENTED
|
|
246
|
+
|
|
247
|
+
> **⚠️ WARNING: This command is not yet implemented in the current CLI.**
|
|
235
248
|
|
|
236
249
|
Show status of all MCP servers.
|
|
237
250
|
|
|
@@ -247,7 +260,9 @@ Output shows:
|
|
|
247
260
|
- Running status
|
|
248
261
|
- Uptime
|
|
249
262
|
|
|
250
|
-
### `inkeep mcp list`
|
|
263
|
+
### `inkeep mcp list` ⚠️ NOT IMPLEMENTED
|
|
264
|
+
|
|
265
|
+
> **⚠️ WARNING: This command is not yet implemented in the current CLI.**
|
|
251
266
|
|
|
252
267
|
List all MCP servers with detailed information.
|
|
253
268
|
|
|
@@ -274,11 +289,15 @@ pnpm install
|
|
|
274
289
|
pnpm build
|
|
275
290
|
npm link
|
|
276
291
|
|
|
277
|
-
#
|
|
278
|
-
inkeep
|
|
292
|
+
# Initialize configuration
|
|
293
|
+
inkeep init
|
|
294
|
+
# Edit inkeep.config.ts to set your tenantId and projectId
|
|
279
295
|
```
|
|
280
296
|
|
|
281
|
-
### Working with Graphs and MCP Servers
|
|
297
|
+
### Working with Graphs and MCP Servers ⚠️ NOT AVAILABLE
|
|
298
|
+
|
|
299
|
+
> **⚠️ WARNING: MCP commands shown below are not yet implemented.**
|
|
300
|
+
> This section shows planned functionality that is not available in the current version.
|
|
282
301
|
|
|
283
302
|
1. **Create a graph with MCP tools** (`my-graph.graph.ts`)
|
|
284
303
|
```typescript
|
|
@@ -349,27 +368,28 @@ inkeep mcp stop --all
|
|
|
349
368
|
|
|
350
369
|
### Development
|
|
351
370
|
```bash
|
|
352
|
-
# Using environment
|
|
353
|
-
|
|
371
|
+
# Using environment variables
|
|
372
|
+
INKEEP_AGENTS_MANAGE_API_URL=http://localhost:3002 inkeep list-graphs
|
|
354
373
|
|
|
355
374
|
# Using .env file
|
|
356
|
-
echo "
|
|
375
|
+
echo "INKEEP_AGENTS_MANAGE_API_URL=http://localhost:3002" > .env
|
|
376
|
+
echo "INKEEP_AGENTS_RUN_API_URL=http://localhost:3003" >> .env
|
|
357
377
|
inkeep chat my-graph
|
|
358
378
|
```
|
|
359
379
|
|
|
360
380
|
### Staging
|
|
361
381
|
```bash
|
|
362
|
-
# Using command flag
|
|
363
|
-
inkeep push graph.js --url https://staging-api.example.com
|
|
364
|
-
|
|
365
382
|
# Set in config file
|
|
366
|
-
# Edit your inkeep.config.ts
|
|
383
|
+
# Edit your inkeep.config.ts:
|
|
384
|
+
# agentsManageApiUrl: 'https://staging-manage-api.example.com'
|
|
385
|
+
# agentsRunApiUrl: 'https://staging-run-api.example.com'
|
|
367
386
|
```
|
|
368
387
|
|
|
369
388
|
### Production
|
|
370
389
|
```bash
|
|
371
390
|
# Using environment variables
|
|
372
|
-
export
|
|
391
|
+
export INKEEP_AGENTS_MANAGE_API_URL=https://manage-api.example.com
|
|
392
|
+
export INKEEP_AGENTS_RUN_API_URL=https://run-api.example.com
|
|
373
393
|
inkeep list-graphs
|
|
374
394
|
```
|
|
375
395
|
|
|
@@ -438,11 +458,12 @@ agents-cli/
|
|
|
438
458
|
# Check if backend is running
|
|
439
459
|
curl http://localhost:3002/health
|
|
440
460
|
|
|
441
|
-
# Verify API
|
|
442
|
-
echo $
|
|
461
|
+
# Verify API URLs
|
|
462
|
+
echo $INKEEP_AGENTS_MANAGE_API_URL
|
|
463
|
+
echo $INKEEP_AGENTS_RUN_API_URL
|
|
443
464
|
|
|
444
465
|
# Try with explicit URL
|
|
445
|
-
inkeep list-graphs --url http://localhost:3002
|
|
466
|
+
inkeep list-graphs --api-url http://localhost:3002
|
|
446
467
|
```
|
|
447
468
|
|
|
448
469
|
|