@agentled/cli 0.6.0 → 0.6.2
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 +13 -0
- package/dist/commands/agents.d.ts +2 -0
- package/dist/commands/agents.js +124 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/branding.d.ts +2 -0
- package/dist/commands/branding.js +44 -0
- package/dist/commands/branding.js.map +1 -0
- package/dist/commands/executions.js +68 -18
- package/dist/commands/executions.js.map +1 -1
- package/dist/commands/feedback.d.ts +2 -0
- package/dist/commands/feedback.js +33 -0
- package/dist/commands/feedback.js.map +1 -0
- package/dist/commands/intent.d.ts +2 -0
- package/dist/commands/intent.js +25 -0
- package/dist/commands/intent.js.map +1 -0
- package/dist/commands/knowledge.js +177 -12
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/memory.d.ts +2 -0
- package/dist/commands/memory.js +123 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/models.d.ts +2 -0
- package/dist/commands/models.js +20 -0
- package/dist/commands/models.js.map +1 -0
- package/dist/commands/proactive-agents.d.ts +2 -0
- package/dist/commands/proactive-agents.js +103 -0
- package/dist/commands/proactive-agents.js.map +1 -0
- package/dist/commands/workflows.js +14 -0
- package/dist/commands/workflows.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/llms-full.txt +1 -1
- package/package.json +1 -1
- package/patterns/v1/10-person-research-ladder.md +264 -0
- package/patterns/v1/11-company-research-ladder.md +208 -0
- package/skills/agentled/SKILL.md +124 -1
package/README.md
CHANGED
|
@@ -196,6 +196,19 @@ agentled workspace update-company-profile --input '{"name":"Acme","urls":["https
|
|
|
196
196
|
agentled workspace upsert-company-offerings --file ./offerings.json
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
+
## MCP parity command groups (MCP-040)
|
|
200
|
+
|
|
201
|
+
The CLI now includes dedicated command groups matching MCP domains:
|
|
202
|
+
|
|
203
|
+
- `agentled kg create-list|update-list-schema|delete-list|upsert-rows|delete-rows|upsert-text|delete-text`
|
|
204
|
+
- `agentled agents ...`
|
|
205
|
+
- `agentled branding get|update`
|
|
206
|
+
- `agentled memory store|recall|search|list|delete`
|
|
207
|
+
- `agentled feedback submit ...`
|
|
208
|
+
- `agentled intent do ...`
|
|
209
|
+
- `agentled proactive-agents ...`
|
|
210
|
+
- `agentled models list`
|
|
211
|
+
|
|
199
212
|
## Running workflows
|
|
200
213
|
|
|
201
214
|
Start a workflow execution by id:
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { AgentledClient } from '../client.js';
|
|
3
|
+
import { printError, printOutput } from '../utils/output.js';
|
|
4
|
+
function readJson(opts, label) {
|
|
5
|
+
if (!opts.input && !opts.file)
|
|
6
|
+
throw new Error(`Provide ${label} via --input '<json>' or --file <path>`);
|
|
7
|
+
if (opts.input && opts.file)
|
|
8
|
+
throw new Error(`Provide ${label} with either --input or --file, not both`);
|
|
9
|
+
const raw = opts.file ? readFileSync(opts.file, 'utf8') : opts.input;
|
|
10
|
+
return JSON.parse(raw);
|
|
11
|
+
}
|
|
12
|
+
export function registerAgentCommands(program) {
|
|
13
|
+
const agents = program.command('agents').description('Manage agent entities');
|
|
14
|
+
agents
|
|
15
|
+
.command('list')
|
|
16
|
+
.description('List agents')
|
|
17
|
+
.option('--status <status>', 'Filter by status')
|
|
18
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
19
|
+
.action(async (opts) => {
|
|
20
|
+
try {
|
|
21
|
+
const result = await new AgentledClient().listAgents({ status: opts.status });
|
|
22
|
+
printOutput(result, opts.format);
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
26
|
+
printError(message);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
agents
|
|
30
|
+
.command('get <id>')
|
|
31
|
+
.description('Get an agent by id')
|
|
32
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
33
|
+
.action(async (id, opts) => {
|
|
34
|
+
try {
|
|
35
|
+
const result = await new AgentledClient().getAgent(id);
|
|
36
|
+
printOutput(result, opts.format);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
40
|
+
printError(message);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
agents
|
|
44
|
+
.command('create')
|
|
45
|
+
.description('Create an agent')
|
|
46
|
+
.requiredOption('--name <name>', 'Agent name')
|
|
47
|
+
.option('--description <description>', 'Agent description')
|
|
48
|
+
.option('--instructions <instructions>', 'Agent instructions')
|
|
49
|
+
.option('--slug <slug>', 'Agent slug')
|
|
50
|
+
.option('--status <status>', 'Agent status')
|
|
51
|
+
.option('--model-tier <tier>', 'Model tier')
|
|
52
|
+
.option('--max-credits-per-day <n>', 'Daily credit limit', parseFloat)
|
|
53
|
+
.option('--input <json>', 'Full agent JSON payload (overrides CLI flags)')
|
|
54
|
+
.option('--file <path>', 'Path to JSON payload file')
|
|
55
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
56
|
+
.action(async (opts) => {
|
|
57
|
+
try {
|
|
58
|
+
const payload = opts.input || opts.file
|
|
59
|
+
? readJson(opts, 'agent payload')
|
|
60
|
+
: {
|
|
61
|
+
name: opts.name,
|
|
62
|
+
description: opts.description,
|
|
63
|
+
instructions: opts.instructions,
|
|
64
|
+
slug: opts.slug,
|
|
65
|
+
status: opts.status,
|
|
66
|
+
modelTier: opts.modelTier,
|
|
67
|
+
maxCreditsPerDay: opts.maxCreditsPerDay,
|
|
68
|
+
};
|
|
69
|
+
const result = await new AgentledClient().createAgent(payload);
|
|
70
|
+
printOutput(result, opts.format);
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
74
|
+
printError(message);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
agents
|
|
78
|
+
.command('update <id>')
|
|
79
|
+
.description('Update an agent')
|
|
80
|
+
.option('--input <json>', 'JSON updates object')
|
|
81
|
+
.option('--file <path>', 'Path to JSON updates object')
|
|
82
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
83
|
+
.action(async (id, opts) => {
|
|
84
|
+
try {
|
|
85
|
+
const updates = readJson(opts, 'agent updates');
|
|
86
|
+
const result = await new AgentledClient().updateAgent(id, updates);
|
|
87
|
+
printOutput(result, opts.format);
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
91
|
+
printError(message);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
agents
|
|
95
|
+
.command('delete <id>')
|
|
96
|
+
.description('Delete an agent')
|
|
97
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
98
|
+
.action(async (id, opts) => {
|
|
99
|
+
try {
|
|
100
|
+
const result = await new AgentledClient().deleteAgent(id);
|
|
101
|
+
printOutput(result, opts.format);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
105
|
+
printError(message);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
agents
|
|
109
|
+
.command('chat <id> <message>')
|
|
110
|
+
.description('Chat with an agent')
|
|
111
|
+
.option('--session-id <id>', 'Continue an existing session')
|
|
112
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
113
|
+
.action(async (id, message, opts) => {
|
|
114
|
+
try {
|
|
115
|
+
const result = await new AgentledClient().chatWithAgent(id, message, opts.sessionId);
|
|
116
|
+
printOutput(result, opts.format);
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
120
|
+
printError(message);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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AO,CAAC,qBAAqB,CAAC;SAC9B,WAAW,CAAC,oBAAoB,CAAC;SACjC,MAAM,CAAC,mBAAmB,EAAE,8BAA8B,CAAC;SAC3D,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,MAAM,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAChC,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,cAAc,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YACrF,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,MAAsB,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { AgentledClient } from '../client.js';
|
|
3
|
+
import { printError, printOutput } from '../utils/output.js';
|
|
4
|
+
function readBranding(opts) {
|
|
5
|
+
if (!opts.input && !opts.file)
|
|
6
|
+
throw new Error('Provide branding JSON with --input or --file');
|
|
7
|
+
if (opts.input && opts.file)
|
|
8
|
+
throw new Error('Provide branding JSON with either --input or --file, not both');
|
|
9
|
+
return JSON.parse(opts.file ? readFileSync(opts.file, 'utf8') : opts.input);
|
|
10
|
+
}
|
|
11
|
+
export function registerBrandingCommands(program) {
|
|
12
|
+
const branding = program.command('branding').description('Manage workspace branding settings');
|
|
13
|
+
branding
|
|
14
|
+
.command('get')
|
|
15
|
+
.description('Get workspace branding configuration')
|
|
16
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
17
|
+
.action(async (opts) => {
|
|
18
|
+
try {
|
|
19
|
+
const result = await new AgentledClient().getBranding();
|
|
20
|
+
printOutput(result, opts.format);
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
24
|
+
printError(message);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
branding
|
|
28
|
+
.command('update')
|
|
29
|
+
.description('Update workspace branding configuration')
|
|
30
|
+
.option('--input <json>', 'Branding JSON object')
|
|
31
|
+
.option('--file <path>', 'Path to branding JSON file')
|
|
32
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
33
|
+
.action(async (opts) => {
|
|
34
|
+
try {
|
|
35
|
+
const result = await new AgentledClient().updateBranding(readBranding(opts));
|
|
36
|
+
printOutput(result, opts.format);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
40
|
+
printError(message);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=branding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../../src/commands/branding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AAE3E,SAAS,YAAY,CAAC,IAAuC;IACzD,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAC/F,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;IAC9G,OAAO,IAAI,CAAC,KAAK,CAAC,I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AC,CAAC;YAC7E,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,MAAsB,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -24,8 +24,9 @@ export function registerExecutionCommands(program) {
|
|
|
24
24
|
});
|
|
25
25
|
printOutput(result, opts.format);
|
|
26
26
|
}
|
|
27
|
-
catch (
|
|
28
|
-
|
|
27
|
+
catch (error) {
|
|
28
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
29
|
+
printError(message);
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
executions
|
|
@@ -38,8 +39,29 @@ export function registerExecutionCommands(program) {
|
|
|
38
39
|
const result = await client.getExecution(workflowId, executionId);
|
|
39
40
|
printOutput(result, opts.format);
|
|
40
41
|
}
|
|
41
|
-
catch (
|
|
42
|
-
|
|
42
|
+
catch (error) {
|
|
43
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
44
|
+
printError(message);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
executions
|
|
48
|
+
.command('step-output <workflowId> <executionId> <stepId>')
|
|
49
|
+
.description('Read one step output payload from an execution')
|
|
50
|
+
.option('--field <name>', 'Return only one output field')
|
|
51
|
+
.option('--select <fields...>', 'Return only selected top-level fields')
|
|
52
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
53
|
+
.action(async (workflowId, executionId, stepId, opts) => {
|
|
54
|
+
try {
|
|
55
|
+
const client = new AgentledClient();
|
|
56
|
+
const result = await client.getStepOutput(workflowId, executionId, stepId, {
|
|
57
|
+
field: opts.field,
|
|
58
|
+
select: opts.select,
|
|
59
|
+
});
|
|
60
|
+
printOutput(result, opts.format);
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
64
|
+
printError(message);
|
|
43
65
|
}
|
|
44
66
|
});
|
|
45
67
|
executions
|
|
@@ -52,8 +74,9 @@ export function registerExecutionCommands(program) {
|
|
|
52
74
|
const result = await client.stopExecution(workflowId, executionId);
|
|
53
75
|
printOutput(result, opts.format);
|
|
54
76
|
}
|
|
55
|
-
catch (
|
|
56
|
-
|
|
77
|
+
catch (error) {
|
|
78
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
79
|
+
printError(message);
|
|
57
80
|
}
|
|
58
81
|
});
|
|
59
82
|
executions
|
|
@@ -66,8 +89,9 @@ export function registerExecutionCommands(program) {
|
|
|
66
89
|
const result = await client.pauseExecution(workflowId, executionId);
|
|
67
90
|
printOutput(result, opts.format);
|
|
68
91
|
}
|
|
69
|
-
catch (
|
|
70
|
-
|
|
92
|
+
catch (error) {
|
|
93
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
94
|
+
printError(message);
|
|
71
95
|
}
|
|
72
96
|
});
|
|
73
97
|
executions
|
|
@@ -80,8 +104,9 @@ export function registerExecutionCommands(program) {
|
|
|
80
104
|
const result = await client.resumeExecution(workflowId, executionId);
|
|
81
105
|
printOutput(result, opts.format);
|
|
82
106
|
}
|
|
83
|
-
catch (
|
|
84
|
-
|
|
107
|
+
catch (error) {
|
|
108
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
109
|
+
printError(message);
|
|
85
110
|
}
|
|
86
111
|
});
|
|
87
112
|
executions
|
|
@@ -97,8 +122,30 @@ export function registerExecutionCommands(program) {
|
|
|
97
122
|
});
|
|
98
123
|
printOutput(result, opts.format);
|
|
99
124
|
}
|
|
100
|
-
catch (
|
|
101
|
-
|
|
125
|
+
catch (error) {
|
|
126
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
127
|
+
printError(message);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
executions
|
|
131
|
+
.command('rerun-step <workflowId> <executionId> <stepId>')
|
|
132
|
+
.description('Rerun a specific step in an execution')
|
|
133
|
+
.option('--timeline-id <id>', 'Optional timeline id to target')
|
|
134
|
+
.option('--use-cache', 'Use cache when rerunning the step (default bypasses cache)', false)
|
|
135
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
136
|
+
.action(async (workflowId, executionId, stepId, opts) => {
|
|
137
|
+
try {
|
|
138
|
+
const client = new AgentledClient();
|
|
139
|
+
const result = await client.rerunStep(workflowId, executionId, {
|
|
140
|
+
stepId,
|
|
141
|
+
timelineId: opts.timelineId,
|
|
142
|
+
forceWithoutCache: !opts.useCache,
|
|
143
|
+
});
|
|
144
|
+
printOutput(result, opts.format);
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
148
|
+
printError(message);
|
|
102
149
|
}
|
|
103
150
|
});
|
|
104
151
|
executions
|
|
@@ -114,8 +161,9 @@ export function registerExecutionCommands(program) {
|
|
|
114
161
|
});
|
|
115
162
|
printOutput(result, opts.format);
|
|
116
163
|
}
|
|
117
|
-
catch (
|
|
118
|
-
|
|
164
|
+
catch (error) {
|
|
165
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
166
|
+
printError(message);
|
|
119
167
|
}
|
|
120
168
|
});
|
|
121
169
|
// --- Timelines ---
|
|
@@ -136,8 +184,9 @@ export function registerExecutionCommands(program) {
|
|
|
136
184
|
});
|
|
137
185
|
printOutput(result, opts.format);
|
|
138
186
|
}
|
|
139
|
-
catch (
|
|
140
|
-
|
|
187
|
+
catch (error) {
|
|
188
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
189
|
+
printError(message);
|
|
141
190
|
}
|
|
142
191
|
});
|
|
143
192
|
executions
|
|
@@ -150,8 +199,9 @@ export function registerExecutionCommands(program) {
|
|
|
150
199
|
const result = await client.getTimeline(workflowId, executionId, timelineId);
|
|
151
200
|
printOutput(result, opts.format);
|
|
152
201
|
}
|
|
153
|
-
catch (
|
|
154
|
-
|
|
202
|
+
catch (error) {
|
|
203
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
204
|
+
printError(message);
|
|
155
205
|
}
|
|
156
206
|
});
|
|
157
207
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/commands/executions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAgB,MAAM,oBAAoB,CAAC;AAE3E,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACtD,MAAM,UAAU,GAAG,OAAO;SACrB,OAAO,CAAC,YAAY,CAAC;SACrB,KAAK,CAAC,MAAM,CAAC;SACb,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAE/C,UAAU;SACL,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,gCAAgC,CAAC;SAC7C,MAAM,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;SAC/C,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,QAAQ,CAAC;SAC9C,MAAM,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;SACxD,MAAM,CAAC,sBAAsB,EAAE,0CAA0C,CAAC;SAC1E,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,MAAM,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE;QAC/B,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;YACpC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE;gBACnD,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,SAAS,EAAE,IAAI,CAAC,SAAS;aAC5B,C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CAAC;YAC7E,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,MAAsB,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AgentledClient } from '../client.js';
|
|
2
|
+
import { printError, printOutput } from '../utils/output.js';
|
|
3
|
+
export function registerFeedbackCommands(program) {
|
|
4
|
+
const feedback = program.command('feedback').description('Submit feedback to Agentled');
|
|
5
|
+
feedback
|
|
6
|
+
.command('submit')
|
|
7
|
+
.description('Submit workspace feedback')
|
|
8
|
+
.requiredOption('--type <type>', 'bug | feature_request | escalation | ask')
|
|
9
|
+
.requiredOption('--title <title>', 'Feedback title')
|
|
10
|
+
.requiredOption('--description <description>', 'Feedback description')
|
|
11
|
+
.option('--severity <severity>', 'low | medium | high | critical')
|
|
12
|
+
.option('--user-email <email>', 'Contact email')
|
|
13
|
+
.option('--source <source>', 'Feedback source label', 'cli')
|
|
14
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
15
|
+
.action(async (opts) => {
|
|
16
|
+
try {
|
|
17
|
+
const result = await new AgentledClient().submitFeedback({
|
|
18
|
+
type: opts.type,
|
|
19
|
+
title: opts.title,
|
|
20
|
+
description: opts.description,
|
|
21
|
+
severity: opts.severity,
|
|
22
|
+
userEmail: opts.userEmail,
|
|
23
|
+
source: opts.source,
|
|
24
|
+
});
|
|
25
|
+
printOutput(result, opts.format);
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
29
|
+
printError(message);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
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AC,MAAsB,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AgentledClient } from '../client.js';
|
|
2
|
+
import { printError, printOutput } from '../utils/output.js';
|
|
3
|
+
export function registerIntentCommands(program) {
|
|
4
|
+
const intent = program.command('intent').description('Intent router operations');
|
|
5
|
+
intent
|
|
6
|
+
.command('do <query>')
|
|
7
|
+
.description('Resolve and optionally execute user intent')
|
|
8
|
+
.option('--execute', 'Auto-execute the matched workflow', false)
|
|
9
|
+
.option('--no-confirm', 'Skip confirmation prompt when executing')
|
|
10
|
+
.option('--format <fmt>', 'Output format', 'json')
|
|
11
|
+
.action(async (query, opts) => {
|
|
12
|
+
try {
|
|
13
|
+
const result = await new AgentledClient().resolveIntent(query, {
|
|
14
|
+
execute: opts.execute,
|
|
15
|
+
confirm: opts.confirm,
|
|
16
|
+
});
|
|
17
|
+
printOutput(result, opts.format);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
21
|
+
printError(message);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=intent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent.js","sourceRoot":"","sources":["../../src/commands/intent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AAE3E,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACnD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;IAEjF,MAAM;SACD,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,4CAA4C,CAAC;SACzD,MAAM,CAAC,WAAW,EAAE,mCAAmC,EAAE,KAAK,CAAC;SAC/D,MAAM,CAAC,cAAc,EAAE,yCAAyC,CAAC;SACjE,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,MAAM,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAC1B,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,cAAc,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE;gBAC3D,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,OAAO,EAAE,IAAI,CAAC,OAAO;aACxB,CAAC,CAAC;YACH,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,MAAsB,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACL,CAAC,CAAC,CAAC;AACX,CAAC"}
|