@agentled/cli 0.1.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/README.md +79 -0
- package/dist/client.d.ts +35 -0
- package/dist/client.js +107 -0
- package/dist/client.js.map +1 -0
- package/dist/commands/ai.d.ts +2 -0
- package/dist/commands/ai.js +34 -0
- package/dist/commands/ai.js.map +1 -0
- package/dist/commands/apps.d.ts +2 -0
- package/dist/commands/apps.js +53 -0
- package/dist/commands/apps.js.map +1 -0
- package/dist/commands/auth.d.ts +2 -0
- package/dist/commands/auth.js +247 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/chat.d.ts +12 -0
- package/dist/commands/chat.js +34 -0
- package/dist/commands/chat.js.map +1 -0
- package/dist/commands/do.d.ts +13 -0
- package/dist/commands/do.js +80 -0
- package/dist/commands/do.js.map +1 -0
- package/dist/commands/executions.d.ts +2 -0
- package/dist/commands/executions.js +143 -0
- package/dist/commands/executions.js.map +1 -0
- package/dist/commands/knowledge.d.ts +2 -0
- package/dist/commands/knowledge.js +97 -0
- package/dist/commands/knowledge.js.map +1 -0
- package/dist/commands/onboarding.d.ts +12 -0
- package/dist/commands/onboarding.js +86 -0
- package/dist/commands/onboarding.js.map +1 -0
- package/dist/commands/workflows.d.ts +2 -0
- package/dist/commands/workflows.js +429 -0
- package/dist/commands/workflows.js.map +1 -0
- package/dist/commands/workspace.d.ts +2 -0
- package/dist/commands/workspace.js +156 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/browser-auth.d.ts +24 -0
- package/dist/utils/browser-auth.js +172 -0
- package/dist/utils/browser-auth.js.map +1 -0
- package/dist/utils/output.d.ts +11 -0
- package/dist/utils/output.js +56 -0
- package/dist/utils/output.js.map +1 -0
- package/llms-full.txt +494 -0
- package/llms.txt +20 -0
- package/package.json +53 -0
package/llms-full.txt
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
# Agentled — Complete CLI & API Reference for LLMs
|
|
2
|
+
|
|
3
|
+
> This file contains everything an AI agent needs to use Agentled.
|
|
4
|
+
> It is designed to be consumed in a single read by LLMs like Claude, GPT, Gemini, etc.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Authentication
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
# Option A: Environment variable
|
|
12
|
+
export AGENTLED_API_KEY=wsk_your_key_here
|
|
13
|
+
export AGENTLED_URL=https://www.agentled.app # optional, defaults to this
|
|
14
|
+
export AGENTLED_WORKSPACE=inovexus # optional saved workspace selector
|
|
15
|
+
|
|
16
|
+
# Option B: CLI login (stores one or more workspace profiles in ~/.agentled/config.json)
|
|
17
|
+
agentled auth login
|
|
18
|
+
|
|
19
|
+
# Direct API key login
|
|
20
|
+
agentled auth login --key wsk_your_key_here
|
|
21
|
+
|
|
22
|
+
# Check status
|
|
23
|
+
agentled auth status
|
|
24
|
+
agentled auth current
|
|
25
|
+
|
|
26
|
+
# List / switch / remove saved workspaces
|
|
27
|
+
agentled auth list
|
|
28
|
+
agentled auth use bestseo4u
|
|
29
|
+
agentled auth remove bestseo4u
|
|
30
|
+
|
|
31
|
+
# Override the active workspace for one command
|
|
32
|
+
agentled --workspace inovexus workflows list
|
|
33
|
+
|
|
34
|
+
# Logout
|
|
35
|
+
agentled auth logout
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Generate an API key in Agentled UI: Workspace Settings > Developer.
|
|
39
|
+
|
|
40
|
+
The CLI keeps multiple saved workspace profiles and uses the active profile by default.
|
|
41
|
+
Use `agentled auth list` and `agentled auth use <workspace>` to switch targets.
|
|
42
|
+
For scripts and one-off commands, prefer `agentled --workspace <workspace> ...`
|
|
43
|
+
or `AGENTLED_WORKSPACE=<workspace> ...`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 2. CLI Commands
|
|
48
|
+
|
|
49
|
+
All commands output JSON by default (optimized for machine parsing).
|
|
50
|
+
Add `--format table` for human-readable output, `--format minimal` for piping.
|
|
51
|
+
|
|
52
|
+
### Workflows
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# List workflows
|
|
56
|
+
agentled workflows list
|
|
57
|
+
agentled workflows list --status live --limit 10
|
|
58
|
+
|
|
59
|
+
# Get workflow details (full pipeline, steps, metadata)
|
|
60
|
+
agentled workflows get <workflow-id>
|
|
61
|
+
|
|
62
|
+
# Create workflow from JSON file
|
|
63
|
+
agentled workflows create --file pipeline.json
|
|
64
|
+
|
|
65
|
+
# Create workflow from inline JSON
|
|
66
|
+
agentled workflows create --pipeline '{"name":"My Workflow","steps":[...]}'
|
|
67
|
+
|
|
68
|
+
# Update workflow (partial update)
|
|
69
|
+
agentled workflows update <id> --updates '{"name":"New Name"}'
|
|
70
|
+
agentled workflows update <id> --file updates.json
|
|
71
|
+
|
|
72
|
+
# Delete workflow (permanent)
|
|
73
|
+
agentled workflows delete <id>
|
|
74
|
+
|
|
75
|
+
# Validate pipeline structure (returns errors per step)
|
|
76
|
+
agentled workflows validate <id>
|
|
77
|
+
|
|
78
|
+
# Publish / pause / archive
|
|
79
|
+
agentled workflows publish <id> --status live
|
|
80
|
+
agentled workflows publish <id> --status paused
|
|
81
|
+
|
|
82
|
+
# Start execution with input
|
|
83
|
+
agentled workflows start <id> --input '{"company_url":"https://linkedin.com/company/acme"}'
|
|
84
|
+
agentled workflows start <id> --input-file input.json
|
|
85
|
+
|
|
86
|
+
# Export / Import (cross-environment transfer)
|
|
87
|
+
agentled workflows export <id> --output workflow-export.json
|
|
88
|
+
agentled workflows import --file workflow-export.json
|
|
89
|
+
|
|
90
|
+
# Snapshots (automatic versioning on every update)
|
|
91
|
+
agentled workflows snapshots <id>
|
|
92
|
+
agentled workflows restore <id> <snapshot-id>
|
|
93
|
+
|
|
94
|
+
# Draft lifecycle (edits to live workflows go to a draft)
|
|
95
|
+
agentled workflows draft get <id>
|
|
96
|
+
agentled workflows draft promote <id> # make draft live
|
|
97
|
+
agentled workflows draft discard <id> # throw away draft
|
|
98
|
+
|
|
99
|
+
# n8n import
|
|
100
|
+
agentled workflows import-n8n --file n8n-export.json --preview # dry-run
|
|
101
|
+
agentled workflows import-n8n --file n8n-export.json --name "My Workflow"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Executions
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# List executions for a workflow
|
|
108
|
+
agentled executions list <workflow-id>
|
|
109
|
+
agentled executions list <workflow-id> --status completed --limit 5
|
|
110
|
+
|
|
111
|
+
# Get execution details with step results
|
|
112
|
+
agentled executions get <workflow-id> <execution-id>
|
|
113
|
+
|
|
114
|
+
# Stop a running execution
|
|
115
|
+
agentled executions stop <workflow-id> <execution-id>
|
|
116
|
+
|
|
117
|
+
# Pause / Resume an execution
|
|
118
|
+
agentled executions pause <workflow-id> <execution-id>
|
|
119
|
+
agentled executions resume <workflow-id> <execution-id>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Apps & Actions
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# List available apps/integrations
|
|
126
|
+
agentled apps list
|
|
127
|
+
|
|
128
|
+
# Get action schemas for an app (inputs, outputs, credits)
|
|
129
|
+
agentled apps actions <app-id>
|
|
130
|
+
# Example: agentled apps actions agentled
|
|
131
|
+
# Example: agentled apps actions web-scraping
|
|
132
|
+
|
|
133
|
+
# Test an action with sample input (no workflow needed)
|
|
134
|
+
agentled apps test <app-id> <action-id> --input '{"url":"https://example.com"}'
|
|
135
|
+
# Example: agentled apps test web-scraping scrape --input '{"url":"https://example.com"}'
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### AI Testing
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Test an AI prompt
|
|
142
|
+
agentled ai test --template "Analyze this company: {{company}}" \
|
|
143
|
+
--vars '{"company":"Acme Corp"}'
|
|
144
|
+
|
|
145
|
+
# With response structure
|
|
146
|
+
agentled ai test \
|
|
147
|
+
--template "Score this lead: {{data}}" \
|
|
148
|
+
--vars '{"data":"..."}' \
|
|
149
|
+
--response-structure '{"score":"number 0-100","reasoning":"string"}'
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Knowledge Base & Knowledge Graph
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# --- Knowledge Data (DynamoDB lists & text) ---
|
|
156
|
+
|
|
157
|
+
# List knowledge lists
|
|
158
|
+
agentled knowledge lists
|
|
159
|
+
|
|
160
|
+
# Get rows from a list
|
|
161
|
+
agentled knowledge rows <list-key> --limit 50
|
|
162
|
+
|
|
163
|
+
# Get a text entry
|
|
164
|
+
agentled knowledge text <key>
|
|
165
|
+
|
|
166
|
+
# --- Knowledge Graph (Graphiti) ---
|
|
167
|
+
|
|
168
|
+
# Traverse edges by entity and/or relationship type
|
|
169
|
+
agentled knowledge graph edges
|
|
170
|
+
agentled knowledge graph edges --entity "Acme Corp" --relation INVESTED_IN --limit 50
|
|
171
|
+
|
|
172
|
+
# Fetch scoring history (PROCEED_TO_IC, HOLD_FOR_REVIEW, REPOSITION, SCORED)
|
|
173
|
+
agentled knowledge graph scoring
|
|
174
|
+
agentled knowledge graph scoring --entity "Acme Corp"
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Workspace
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# Get workspace info (name, plan, credits remaining)
|
|
181
|
+
agentled workspace info
|
|
182
|
+
|
|
183
|
+
# Show current saved workspace profile
|
|
184
|
+
agentled auth current
|
|
185
|
+
|
|
186
|
+
# List saved workspace profiles
|
|
187
|
+
agentled auth list
|
|
188
|
+
|
|
189
|
+
# Switch the active workspace profile
|
|
190
|
+
agentled auth use <workspace-id|alias|name>
|
|
191
|
+
|
|
192
|
+
# Get whitelabel branding configuration
|
|
193
|
+
agentled workspace branding
|
|
194
|
+
|
|
195
|
+
# Get editable company profile + offerings
|
|
196
|
+
agentled workspace company-profile
|
|
197
|
+
|
|
198
|
+
# Update company profile fields
|
|
199
|
+
agentled workspace update-company-profile --input '{"name":"Acme","urls":["https://acme.com"]}'
|
|
200
|
+
|
|
201
|
+
# Upsert company offerings
|
|
202
|
+
agentled workspace upsert-company-offerings --file offerings.json
|
|
203
|
+
|
|
204
|
+
# Update branding
|
|
205
|
+
agentled workspace update-branding --display-name "Acme" --primary-color "#ff0000"
|
|
206
|
+
agentled workspace update-branding --logo-url "https://..." --favicon-url "https://..." --hide-badge
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 3. Workflow Pipeline Schema
|
|
212
|
+
|
|
213
|
+
A workflow is a JSON object with this structure:
|
|
214
|
+
|
|
215
|
+
```json
|
|
216
|
+
{
|
|
217
|
+
"name": "Company Research",
|
|
218
|
+
"goal": "Research and score companies from LinkedIn URLs",
|
|
219
|
+
"description": "Detailed description",
|
|
220
|
+
"status": "draft",
|
|
221
|
+
"style": {
|
|
222
|
+
"colors": { "accent": "#6366f1" },
|
|
223
|
+
"iconName": "Search"
|
|
224
|
+
},
|
|
225
|
+
"metadata": {
|
|
226
|
+
"templateId": "custom",
|
|
227
|
+
"notifications": { "onComplete": true }
|
|
228
|
+
},
|
|
229
|
+
"context": {
|
|
230
|
+
"executionInputConfig": {
|
|
231
|
+
"inputPages": [{
|
|
232
|
+
"title": "Input",
|
|
233
|
+
"fields": [
|
|
234
|
+
{ "name": "company_url", "label": "Company URL", "type": "text", "required": true }
|
|
235
|
+
]
|
|
236
|
+
}]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"steps": [
|
|
240
|
+
{ "id": "trigger", "type": "trigger", "name": "Start", "triggerType": "manual", "next": { "stepId": "enrich" } },
|
|
241
|
+
{ "id": "enrich", "type": "appAction", "name": "Get Company", "app": { "id": "agentled", "actionId": "get-linkedin-company-from-url", "source": "native" }, "stepInputData": { "profileUrls": "{{input.company_url}}" }, "creditCost": 5, "next": { "stepId": "analyze" } },
|
|
242
|
+
{ "id": "analyze", "type": "aiAction", "name": "Analyze", "pipelineStepPrompt": { "template": "Analyze company: {{steps.enrich.company}}", "responseStructure": { "score": "number", "summary": "string" } }, "creditCost": 10, "next": { "stepId": "done" } },
|
|
243
|
+
{ "id": "done", "type": "milestone", "name": "Complete" }
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Step Types
|
|
249
|
+
|
|
250
|
+
| Type | Purpose | Required Fields |
|
|
251
|
+
|------|---------|----------------|
|
|
252
|
+
| `trigger` | Entry point | `triggerType` (manual/schedule/webhook), `next` |
|
|
253
|
+
| `appAction` | Call an app integration | `app` ({id, actionId, source}), `stepInputData`, `next` |
|
|
254
|
+
| `aiAction` | AI prompt processing | `pipelineStepPrompt` ({template, responseStructure}), `creditCost`, `next` |
|
|
255
|
+
| `code` | Run JavaScript/Python | `codeConfig` ({language, code}), `next` |
|
|
256
|
+
| `milestone` | Terminal step | (no next) |
|
|
257
|
+
| `knowledgeSync` | Sync to knowledge base | `knowledgeSyncConfig`, `next` |
|
|
258
|
+
| `return` | Return data (child workflows) | `returnConfig`, no next needed |
|
|
259
|
+
|
|
260
|
+
### Template Variables
|
|
261
|
+
|
|
262
|
+
| Pattern | Example | Description |
|
|
263
|
+
|---------|---------|-------------|
|
|
264
|
+
| `{{input.fieldName}}` | `{{input.company_url}}` | Execution input field |
|
|
265
|
+
| `{{steps.stepId.field}}` | `{{steps.enrich.company}}` | Previous step output |
|
|
266
|
+
| `{{currentItem}}` | `{{currentItem.url}}` | Current item in a loop |
|
|
267
|
+
| `{{execution.id}}` | | Current execution ID |
|
|
268
|
+
| `{{workspace.id}}` | | Workspace ID |
|
|
269
|
+
|
|
270
|
+
### Loop Config (for batch processing)
|
|
271
|
+
|
|
272
|
+
```json
|
|
273
|
+
{
|
|
274
|
+
"loopConfig": {
|
|
275
|
+
"enabled": true,
|
|
276
|
+
"field": "{{steps.prev.items}}",
|
|
277
|
+
"ItemAlias": "currentItem"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Conditional Entry
|
|
283
|
+
|
|
284
|
+
> **IMPORTANT**: Entry conditions use `criteria` (NOT `conditions`), and individual criteria use `variable` (NOT `field`). Using the wrong field names will cause conditions to be silently ignored.
|
|
285
|
+
|
|
286
|
+
```json
|
|
287
|
+
{
|
|
288
|
+
"entryConditions": {
|
|
289
|
+
"conditionText": "Only proceed if score is above 50",
|
|
290
|
+
"onCriteriaFail": "skip",
|
|
291
|
+
"criteria": [
|
|
292
|
+
{ "variable": "{{steps.prev.score}}", "operator": ">", "value": "50" }
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## 4. Available Apps & Actions
|
|
301
|
+
|
|
302
|
+
### agentled (Native Enrichment)
|
|
303
|
+
| Action | Inputs | Credits |
|
|
304
|
+
|--------|--------|---------|
|
|
305
|
+
| `get-linkedin-company-from-url` | `{ profileUrls: string }` | 5 |
|
|
306
|
+
| `get-linkedin-profile-from-url` | `{ profileUrls: string }` | 2 |
|
|
307
|
+
| `find-email-person-domain` | `{ firstName, lastName, domain }` | 3 |
|
|
308
|
+
| `get-emails-from-company-domain` | `{ domain: string }` | 5 |
|
|
309
|
+
| `call-workflow` | `{ workflowId, input? }` | varies |
|
|
310
|
+
|
|
311
|
+
### web-scraping
|
|
312
|
+
| Action | Inputs | Credits |
|
|
313
|
+
|--------|--------|---------|
|
|
314
|
+
| `scrape` | `{ url, waitForSelector? }` | 0 |
|
|
315
|
+
| `screenshot` | `{ url }` | 0 |
|
|
316
|
+
|
|
317
|
+
### http-request
|
|
318
|
+
| Action | Inputs | Credits |
|
|
319
|
+
|--------|--------|---------|
|
|
320
|
+
| `request` | `{ url, method?, headers?, body? }` | 0 |
|
|
321
|
+
| `get-file` | `{ url }` | 0 |
|
|
322
|
+
|
|
323
|
+
### hunter
|
|
324
|
+
| Action | Inputs | Credits |
|
|
325
|
+
|--------|--------|---------|
|
|
326
|
+
| `find-email-person-domain` | `{ firstName, lastName, domain }` | 3 |
|
|
327
|
+
| `get-emails-from-company-domain` | `{ domain }` | 2 |
|
|
328
|
+
|
|
329
|
+
### gmail
|
|
330
|
+
| Action | Inputs | Credits |
|
|
331
|
+
|--------|--------|---------|
|
|
332
|
+
| `send-email` | `{ to, subject, body, html? }` | 1 |
|
|
333
|
+
| `read-emails` | `{ query?, maxResults? }` | 1 |
|
|
334
|
+
|
|
335
|
+
### notion
|
|
336
|
+
| Action | Inputs | Credits |
|
|
337
|
+
|--------|--------|---------|
|
|
338
|
+
| `get-page-markdown` | `{ pageUrl }` | 1 |
|
|
339
|
+
|
|
340
|
+
### kg (Knowledge Graph & Data)
|
|
341
|
+
| Action | Inputs | Credits |
|
|
342
|
+
|--------|--------|---------|
|
|
343
|
+
| `read-list` | `{ listKey, limit? }` | 1 |
|
|
344
|
+
| `read-text` | `{ key }` | 1 |
|
|
345
|
+
| `add-rows` | `{ listKey, rows: object[] }` | 1 |
|
|
346
|
+
| `update-rows` | `{ listKey, rowIds, fieldUpdates, status? }` | 1 |
|
|
347
|
+
| `get-rows-by-ids` | `{ rowIds: string[] }` (max 200) | 1 |
|
|
348
|
+
| `store-insight` | `{ title, summary, category?, tags?, impactScore?, confidence?, metadata? }` | 1 |
|
|
349
|
+
| `fetch-scoring-history` | `(none)` | 1 |
|
|
350
|
+
| `traverse-edges` | `{ entityName?, relationshipType?, limit? }` | 1 |
|
|
351
|
+
|
|
352
|
+
Run `agentled apps list` and `agentled apps actions <app-id>` for full, up-to-date schemas.
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## 5. Common Patterns
|
|
357
|
+
|
|
358
|
+
### Pattern 1: Company Intelligence
|
|
359
|
+
```bash
|
|
360
|
+
# Create a company research workflow
|
|
361
|
+
agentled workflows create --pipeline '{
|
|
362
|
+
"name": "Company Research",
|
|
363
|
+
"steps": [
|
|
364
|
+
{"id":"t","type":"trigger","name":"Start","triggerType":"manual","next":{"stepId":"get"}},
|
|
365
|
+
{"id":"get","type":"appAction","name":"Get Company","app":{"id":"agentled","actionId":"get-linkedin-company-from-url","source":"native"},"stepInputData":{"profileUrls":"{{input.url}}"},"creditCost":5,"next":{"stepId":"ai"}},
|
|
366
|
+
{"id":"ai","type":"aiAction","name":"Analyze","pipelineStepPrompt":{"template":"Analyze: {{steps.get.company}}","responseStructure":{"score":"number","summary":"string"}},"creditCost":10,"next":{"stepId":"m"}},
|
|
367
|
+
{"id":"m","type":"milestone","name":"Done"}
|
|
368
|
+
],
|
|
369
|
+
"context":{"executionInputConfig":{"inputPages":[{"title":"Input","fields":[{"name":"url","label":"LinkedIn URL","type":"text","required":true}]}]}}
|
|
370
|
+
}'
|
|
371
|
+
|
|
372
|
+
# Validate and publish
|
|
373
|
+
agentled workflows validate <id>
|
|
374
|
+
agentled workflows publish <id> --status live
|
|
375
|
+
|
|
376
|
+
# Run it
|
|
377
|
+
agentled workflows start <id> --input '{"url":"https://linkedin.com/company/acme"}'
|
|
378
|
+
|
|
379
|
+
# Check results
|
|
380
|
+
agentled executions list <id> --limit 1
|
|
381
|
+
agentled executions get <id> <exec-id>
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### Pattern 2: Quick Action Test (No Workflow)
|
|
385
|
+
```bash
|
|
386
|
+
# Scrape a webpage
|
|
387
|
+
agentled apps test web-scraping scrape --input '{"url":"https://example.com"}'
|
|
388
|
+
|
|
389
|
+
# Find an email
|
|
390
|
+
agentled apps test agentled find-email-person-domain --input '{"firstName":"John","lastName":"Doe","domain":"acme.com"}'
|
|
391
|
+
|
|
392
|
+
# AI analysis
|
|
393
|
+
agentled ai test --template "Summarize this content for a sales team: {{content}}" --vars '{"content":"..."}'
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Pattern 3: Reusable Workflow (Agent Procedure)
|
|
397
|
+
```bash
|
|
398
|
+
# Agent creates workflow once
|
|
399
|
+
agentled workflows create --file my-research-flow.json
|
|
400
|
+
agentled workflows validate abc123
|
|
401
|
+
agentled workflows publish abc123 --status live
|
|
402
|
+
|
|
403
|
+
# Agent reuses on every new lead (one command per lead)
|
|
404
|
+
agentled workflows start abc123 --input '{"company_url":"https://..."}'
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
---
|
|
408
|
+
|
|
409
|
+
## 6. Error Handling
|
|
410
|
+
|
|
411
|
+
Common validation errors:
|
|
412
|
+
- `"references non-existent next step"` → check `next.stepId` matches a real step ID
|
|
413
|
+
- `"missing prompt template"` → add `pipelineStepPrompt.template` to AI steps
|
|
414
|
+
- `"Unknown action"` → verify `app.actionId` (use `agentled apps actions <app-id>`)
|
|
415
|
+
- `"is unreachable"` → ensure every step is connected via `next.stepId` from trigger
|
|
416
|
+
|
|
417
|
+
CLI exit codes:
|
|
418
|
+
- `0` — success
|
|
419
|
+
- `1` — error (message printed to stderr)
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## 7. MCP Server (Alternative)
|
|
424
|
+
|
|
425
|
+
If you prefer MCP over CLI:
|
|
426
|
+
|
|
427
|
+
```bash
|
|
428
|
+
# Start Agentled as an MCP server over stdio
|
|
429
|
+
cd agentled-mcp-server && yarn install && yarn build
|
|
430
|
+
claude mcp add agentled -e AGENTLED_API_KEY=wsk_... -- node agentled-mcp-server/dist/index.js
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
The MCP server exposes the same capabilities but loads ~30 tool definitions into your context window.
|
|
434
|
+
The CLI approach has zero context cost — the agent just runs shell commands.
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
## 8. Step Approvals
|
|
439
|
+
|
|
440
|
+
Workflow steps can require human approval before execution via `preExecuteApproval: true` or
|
|
441
|
+
`next.conditions.approvalRequired: true` in the pipeline step config. When an execution hits an
|
|
442
|
+
approval gate, it pauses and waits for a decision.
|
|
443
|
+
|
|
444
|
+
**Current state**: Approve/reject is available via the Agentled web UI and internal API.
|
|
445
|
+
External API endpoints for programmatic approve/reject are planned.
|
|
446
|
+
|
|
447
|
+
In the meantime, agents can:
|
|
448
|
+
- Check execution status: `agentled executions get <wf-id> <exec-id>` — look for `status: "pending"` timelines
|
|
449
|
+
- Pause/resume: `agentled executions pause/resume <wf-id> <exec-id>`
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
## 9. Agent Skills (Open Standard)
|
|
454
|
+
|
|
455
|
+
Agentled workflows can be packaged as **Agent Skills** — Anthropic's open standard for reusable,
|
|
456
|
+
composable AI capabilities. This lets any Agent Skills-compatible tool (Claude Code, Cursor, etc.)
|
|
457
|
+
discover and invoke Agentled workflows.
|
|
458
|
+
|
|
459
|
+
### How It Works
|
|
460
|
+
|
|
461
|
+
A skill is a markdown file in `.claude/skills/` (or equivalent) that describes a capability and
|
|
462
|
+
how to invoke it. Agentled workflows become skills by wrapping the CLI invocation:
|
|
463
|
+
|
|
464
|
+
```markdown
|
|
465
|
+
---
|
|
466
|
+
name: research-company
|
|
467
|
+
description: Research a company using LinkedIn enrichment, AI analysis, and scoring
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
Use the Agentled CLI to run the company research workflow:
|
|
471
|
+
|
|
472
|
+
\`\`\`bash
|
|
473
|
+
agentled workflows start <workflow-id> --input '{"company_url": "$ARGUMENTS"}'
|
|
474
|
+
\`\`\`
|
|
475
|
+
|
|
476
|
+
Check results with:
|
|
477
|
+
\`\`\`bash
|
|
478
|
+
agentled executions list <workflow-id> --limit 1
|
|
479
|
+
agentled executions get <workflow-id> <exec-id>
|
|
480
|
+
\`\`\`
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
### Key Properties
|
|
484
|
+
|
|
485
|
+
- **Composable**: Multiple skills (workflows) can chain together — one skill's output feeds another
|
|
486
|
+
- **Portable**: Same skill file works in Claude Code, Cursor, and any Agent Skills-compatible tool
|
|
487
|
+
- **Zero context cost**: Skills load a short description; the actual logic runs via CLI
|
|
488
|
+
- **Auto-invocable**: Claude can automatically match user intent to skills based on descriptions
|
|
489
|
+
|
|
490
|
+
### Agentled + Skills = Agent Infrastructure
|
|
491
|
+
|
|
492
|
+
Instead of an agent making 15 individual API calls, it invokes one Agentled skill that orchestrates
|
|
493
|
+
the entire multi-step workflow (enrichment, AI analysis, scoring, CRM sync). The workflow handles
|
|
494
|
+
retries, rate limits, credit management, and data persistence — the agent just reads the result.
|
package/llms.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Agentled
|
|
2
|
+
|
|
3
|
+
> Workflow automation platform. Build, run, and manage agentic workflows via CLI or API. 100+ app integrations, AI steps, knowledge base, and credit-based execution.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g @agentled/cli
|
|
9
|
+
agentled auth login
|
|
10
|
+
agentled auth current
|
|
11
|
+
agentled workflows list
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The CLI can store multiple workspace profiles. Use `agentled auth list`,
|
|
15
|
+
`agentled auth use <workspace>`, or `agentled --workspace <workspace> ...`
|
|
16
|
+
to switch targets.
|
|
17
|
+
|
|
18
|
+
## Docs
|
|
19
|
+
|
|
20
|
+
- [Full Reference](llms-full.txt): Complete single-file reference for LLM consumption — all CLI commands, workflow schema, app actions, and examples
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentled/cli",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"agentled": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "npm --prefix ../core run build && tsc && node -e \"const fs=require('fs'); if (fs.existsSync('dist/index.js')) fs.chmodSync('dist/index.js', 0o755);\"",
|
|
13
|
+
"dev": "tsc --watch",
|
|
14
|
+
"start": "node dist/index.js",
|
|
15
|
+
"prepack": "npm run build",
|
|
16
|
+
"prepublishOnly": "npm run build"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@agentled/core": "^0.1.1",
|
|
20
|
+
"commander": "^12.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^20.0.0",
|
|
24
|
+
"typescript": "^5.5.0"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md",
|
|
32
|
+
"llms.txt",
|
|
33
|
+
"llms-full.txt"
|
|
34
|
+
],
|
|
35
|
+
"keywords": [
|
|
36
|
+
"agentled",
|
|
37
|
+
"workflows",
|
|
38
|
+
"cli",
|
|
39
|
+
"ai-agent",
|
|
40
|
+
"automation",
|
|
41
|
+
"mcp"
|
|
42
|
+
],
|
|
43
|
+
"author": "Agentled",
|
|
44
|
+
"homepage": "https://www.agentled.app",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "https://github.com/agentled/agentled"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/agentled/agentled/issues"
|
|
51
|
+
},
|
|
52
|
+
"license": "MIT"
|
|
53
|
+
}
|