@uluops/cli 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/LICENSE +21 -0
- package/README.md +825 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +93 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/analytics.d.ts +6 -0
- package/dist/commands/analytics.d.ts.map +1 -0
- package/dist/commands/analytics.js +445 -0
- package/dist/commands/analytics.js.map +1 -0
- package/dist/commands/auth.d.ts +6 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/auth.js +496 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/completion.d.ts +7 -0
- package/dist/commands/completion.d.ts.map +1 -0
- package/dist/commands/completion.js +188 -0
- package/dist/commands/completion.js.map +1 -0
- package/dist/commands/config.d.ts +6 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +279 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/definitions.d.ts +6 -0
- package/dist/commands/definitions.d.ts.map +1 -0
- package/dist/commands/definitions.js +229 -0
- package/dist/commands/definitions.js.map +1 -0
- package/dist/commands/deps.d.ts +6 -0
- package/dist/commands/deps.d.ts.map +1 -0
- package/dist/commands/deps.js +87 -0
- package/dist/commands/deps.js.map +1 -0
- package/dist/commands/exec.d.ts +6 -0
- package/dist/commands/exec.d.ts.map +1 -0
- package/dist/commands/exec.js +334 -0
- package/dist/commands/exec.js.map +1 -0
- package/dist/commands/executions.d.ts +6 -0
- package/dist/commands/executions.d.ts.map +1 -0
- package/dist/commands/executions.js +63 -0
- package/dist/commands/executions.js.map +1 -0
- package/dist/commands/forks.d.ts +6 -0
- package/dist/commands/forks.d.ts.map +1 -0
- package/dist/commands/forks.js +145 -0
- package/dist/commands/forks.js.map +1 -0
- package/dist/commands/issues.d.ts +6 -0
- package/dist/commands/issues.d.ts.map +1 -0
- package/dist/commands/issues.js +458 -0
- package/dist/commands/issues.js.map +1 -0
- package/dist/commands/models.d.ts +6 -0
- package/dist/commands/models.d.ts.map +1 -0
- package/dist/commands/models.js +156 -0
- package/dist/commands/models.js.map +1 -0
- package/dist/commands/projects.d.ts +6 -0
- package/dist/commands/projects.d.ts.map +1 -0
- package/dist/commands/projects.js +262 -0
- package/dist/commands/projects.js.map +1 -0
- package/dist/commands/render.d.ts +6 -0
- package/dist/commands/render.d.ts.map +1 -0
- package/dist/commands/render.js +59 -0
- package/dist/commands/render.js.map +1 -0
- package/dist/commands/runs.d.ts +6 -0
- package/dist/commands/runs.d.ts.map +1 -0
- package/dist/commands/runs.js +442 -0
- package/dist/commands/runs.js.map +1 -0
- package/dist/commands/taxonomy.d.ts +6 -0
- package/dist/commands/taxonomy.d.ts.map +1 -0
- package/dist/commands/taxonomy.js +45 -0
- package/dist/commands/taxonomy.js.map +1 -0
- package/dist/commands/translation.d.ts +6 -0
- package/dist/commands/translation.d.ts.map +1 -0
- package/dist/commands/translation.js +85 -0
- package/dist/commands/translation.js.map +1 -0
- package/dist/commands/versions.d.ts +6 -0
- package/dist/commands/versions.d.ts.map +1 -0
- package/dist/commands/versions.js +61 -0
- package/dist/commands/versions.js.map +1 -0
- package/dist/context.d.ts +85 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +386 -0
- package/dist/context.js.map +1 -0
- package/dist/formatters/core.d.ts +31 -0
- package/dist/formatters/core.d.ts.map +1 -0
- package/dist/formatters/core.js +176 -0
- package/dist/formatters/core.js.map +1 -0
- package/dist/formatters/ops.d.ts +43 -0
- package/dist/formatters/ops.d.ts.map +1 -0
- package/dist/formatters/ops.js +112 -0
- package/dist/formatters/ops.js.map +1 -0
- package/dist/formatters/registry.d.ts +41 -0
- package/dist/formatters/registry.d.ts.map +1 -0
- package/dist/formatters/registry.js +167 -0
- package/dist/formatters/registry.js.map +1 -0
- package/dist/formatters/table.d.ts +18 -0
- package/dist/formatters/table.d.ts.map +1 -0
- package/dist/formatters/table.js +76 -0
- package/dist/formatters/table.js.map +1 -0
- package/dist/utils.d.ts +99 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +201 -0
- package/dist/utils.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { writeFile, mkdir } from 'node:fs/promises';
|
|
2
|
+
import { dirname, resolve } from 'node:path';
|
|
3
|
+
import { createCoreContext, handleCoreError } from '../context.js';
|
|
4
|
+
import { withSpinner, parseIntOption, parseFloatOption } from '../utils.js';
|
|
5
|
+
import { formatAgentResult, formatExecutionResult, formatDefinitionList, formatDefinitionDetails, } from '../formatters/core.js';
|
|
6
|
+
/**
|
|
7
|
+
* Get merged options from the exec parent command and the subcommand
|
|
8
|
+
*/
|
|
9
|
+
function getMergedOptions(cmd) {
|
|
10
|
+
// Commander nests parent options — walk up to get them
|
|
11
|
+
const parentOpts = cmd.parent?.opts() ?? {};
|
|
12
|
+
const grandParentOpts = cmd.parent?.parent?.opts() ?? {};
|
|
13
|
+
return { ...grandParentOpts, ...parentOpts, ...cmd.opts() };
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Build ExecutionOptions from CLI flags
|
|
17
|
+
*/
|
|
18
|
+
function buildExecOptions(opts) {
|
|
19
|
+
const execOpts = {};
|
|
20
|
+
let hasOptions = false;
|
|
21
|
+
if (opts.model) {
|
|
22
|
+
execOpts.model = opts.model;
|
|
23
|
+
hasOptions = true;
|
|
24
|
+
}
|
|
25
|
+
if (opts.maxTokens) {
|
|
26
|
+
execOpts.maxTokens = parseIntOption(opts.maxTokens, '--max-tokens');
|
|
27
|
+
hasOptions = true;
|
|
28
|
+
}
|
|
29
|
+
if (opts.thresholdPass !== undefined) {
|
|
30
|
+
execOpts.thresholds = { ...execOpts.thresholds, pass: Number(opts.thresholdPass) };
|
|
31
|
+
hasOptions = true;
|
|
32
|
+
}
|
|
33
|
+
if (opts.thresholdWarn !== undefined) {
|
|
34
|
+
execOpts.thresholds = { ...execOpts.thresholds, warn: Number(opts.thresholdWarn) };
|
|
35
|
+
hasOptions = true;
|
|
36
|
+
}
|
|
37
|
+
if (opts.project) {
|
|
38
|
+
execOpts.project = opts.project;
|
|
39
|
+
hasOptions = true;
|
|
40
|
+
}
|
|
41
|
+
if (opts.tracking === false) {
|
|
42
|
+
execOpts.trackResults = false;
|
|
43
|
+
hasOptions = true;
|
|
44
|
+
}
|
|
45
|
+
if (opts.temperature !== undefined) {
|
|
46
|
+
execOpts.temperature = parseFloatOption(opts.temperature, '--temperature');
|
|
47
|
+
hasOptions = true;
|
|
48
|
+
}
|
|
49
|
+
if (opts.maxSteps) {
|
|
50
|
+
execOpts.maxSteps = parseIntOption(opts.maxSteps, '--max-steps');
|
|
51
|
+
hasOptions = true;
|
|
52
|
+
}
|
|
53
|
+
if (opts.timeout) {
|
|
54
|
+
execOpts.timeoutMs = parseIntOption(opts.timeout, '--timeout');
|
|
55
|
+
hasOptions = true;
|
|
56
|
+
}
|
|
57
|
+
return hasOptions ? execOpts : undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Write agent report and/or features list files if CLI flags are set.
|
|
61
|
+
*/
|
|
62
|
+
async function writeReportFiles(result, opts) {
|
|
63
|
+
if (opts.report && typeof opts.report === 'string') {
|
|
64
|
+
const reportPath = resolve(opts.report);
|
|
65
|
+
if (result.rawOutput) {
|
|
66
|
+
await mkdir(dirname(reportPath), { recursive: true });
|
|
67
|
+
await writeFile(reportPath, result.rawOutput, 'utf-8');
|
|
68
|
+
console.log(`Report written to ${reportPath}`);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
console.log('No raw output available to write (agent may have hit step limit)');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (opts.featuresList && typeof opts.featuresList === 'string') {
|
|
75
|
+
const featuresPath = resolve(opts.featuresList);
|
|
76
|
+
const features = {
|
|
77
|
+
agent: result.name,
|
|
78
|
+
version: result.version,
|
|
79
|
+
decision: result.decision,
|
|
80
|
+
score: result.agentType === 'validator' ? result.score : undefined,
|
|
81
|
+
maxScore: result.agentType === 'validator' ? result.maxScore : undefined,
|
|
82
|
+
recommendations: result.recommendations,
|
|
83
|
+
metrics: {
|
|
84
|
+
durationMs: result.durationMs,
|
|
85
|
+
model: result.metrics.model,
|
|
86
|
+
inputTokens: result.metrics.inputTokens,
|
|
87
|
+
outputTokens: result.metrics.outputTokens,
|
|
88
|
+
totalEffectiveTokens: result.metrics.totalEffectiveTokens,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
await mkdir(dirname(featuresPath), { recursive: true });
|
|
92
|
+
await writeFile(featuresPath, JSON.stringify(features, null, 2), 'utf-8');
|
|
93
|
+
console.log(`Features list written to ${featuresPath}`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Register exec commands for core SDK execution
|
|
98
|
+
*/
|
|
99
|
+
export function registerExecCommands(program) {
|
|
100
|
+
const exec = program
|
|
101
|
+
.command('exec')
|
|
102
|
+
.description('Execute agents, commands, and workflows via @uluops/core SDK')
|
|
103
|
+
.option('--local-definitions <dir>', 'Local YAML definitions directory')
|
|
104
|
+
.option('--registry-url <url>', 'Override registry URL')
|
|
105
|
+
.option('--project <name>', 'Project name for result tracking')
|
|
106
|
+
.option('--no-tracking', 'Disable validation service submission');
|
|
107
|
+
// ── exec run ────────────────────────────────────────────────────────────
|
|
108
|
+
exec
|
|
109
|
+
.command('run <name> <target>')
|
|
110
|
+
.description('Execute a definition (auto-detects type)')
|
|
111
|
+
.option('-m, --model <model>', 'Model override for all agents (alias, tier, or provider:modelId)')
|
|
112
|
+
.option('-p, --prompt <text>', 'Operator directive or context for the agent')
|
|
113
|
+
.action(async (name, target, cmdOpts, cmd) => {
|
|
114
|
+
const options = getMergedOptions(cmd);
|
|
115
|
+
const modelOverride = cmdOpts['model'];
|
|
116
|
+
const prompt = cmdOpts['prompt'];
|
|
117
|
+
const ctx = createCoreContext(options, modelOverride);
|
|
118
|
+
try {
|
|
119
|
+
const result = await withSpinner(ctx, {
|
|
120
|
+
start: `Executing ${name} against ${target}...`,
|
|
121
|
+
success: `Execution complete`,
|
|
122
|
+
failure: `Execution failed`,
|
|
123
|
+
}, () => ctx.client.run(name, { target, prompt }));
|
|
124
|
+
if (ctx.json) {
|
|
125
|
+
console.log(JSON.stringify(result, null, 2));
|
|
126
|
+
}
|
|
127
|
+
else if (result.type === 'agent') {
|
|
128
|
+
console.log(formatAgentResult(result));
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
console.log(formatExecutionResult(result));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
catch (error) {
|
|
135
|
+
handleCoreError(error, ctx);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
// ── exec agent ──────────────────────────────────────────────────────────
|
|
139
|
+
exec
|
|
140
|
+
.command('agent <names...>')
|
|
141
|
+
.description('Execute one or more agent definitions (runs in parallel when multiple)')
|
|
142
|
+
.requiredOption('-t, --target <path>', 'Target directory to analyze')
|
|
143
|
+
.option('-m, --model <model>', 'Model override (alias, tier, or provider:modelId)')
|
|
144
|
+
.option('--max-tokens <n>', 'Maximum response tokens')
|
|
145
|
+
.option('--max-steps <n>', 'Maximum tool loop iterations (default: 50)')
|
|
146
|
+
.option('--temperature <n>', 'Generation temperature 0-1 (default: 0)')
|
|
147
|
+
.option('--timeout <ms>', 'Execution timeout in milliseconds')
|
|
148
|
+
.option('--threshold-pass <n>', 'Pass threshold score (agents)')
|
|
149
|
+
.option('--threshold-warn <n>', 'Warning threshold score (agents)')
|
|
150
|
+
.option('--report <path>', 'Write raw agent output report to file (single agent only)')
|
|
151
|
+
.option('--features-list <path>', 'Write structured features/recommendations to file (single agent only)')
|
|
152
|
+
.option('-p, --prompt <text>', 'Operator directive or context for the agent')
|
|
153
|
+
.action(async (names, cmdOpts, cmd) => {
|
|
154
|
+
const options = getMergedOptions(cmd);
|
|
155
|
+
const ctx = createCoreContext(options);
|
|
156
|
+
const execOpts = buildExecOptions({ ...cmdOpts, ...options });
|
|
157
|
+
const target = cmd.opts()['target'];
|
|
158
|
+
const prompt = cmdOpts['prompt'];
|
|
159
|
+
const agentNames = names.filter(Boolean);
|
|
160
|
+
// Single agent — original behavior
|
|
161
|
+
if (agentNames.length === 1) {
|
|
162
|
+
const agentName = agentNames[0];
|
|
163
|
+
try {
|
|
164
|
+
const result = await withSpinner(ctx, {
|
|
165
|
+
start: `Running agent ${agentName} against ${target}...`,
|
|
166
|
+
success: `Agent execution complete`,
|
|
167
|
+
failure: `Agent execution failed`,
|
|
168
|
+
}, () => ctx.client.runAgent(agentName, { target, prompt }, execOpts));
|
|
169
|
+
if (ctx.json) {
|
|
170
|
+
console.log(JSON.stringify(result, null, 2));
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
console.log(formatAgentResult(result));
|
|
174
|
+
}
|
|
175
|
+
await writeReportFiles(result, cmdOpts);
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
handleCoreError(error, ctx);
|
|
179
|
+
}
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
// Multiple agents — run in parallel
|
|
183
|
+
console.log(`Running ${agentNames.length} agents in parallel against ${target}...\n`);
|
|
184
|
+
const results = await Promise.allSettled(agentNames.map(name => ctx.client.runAgent(name, { target, prompt }, execOpts)
|
|
185
|
+
.then(result => ({ name, result }))));
|
|
186
|
+
const succeeded = [];
|
|
187
|
+
const failed = [];
|
|
188
|
+
for (let i = 0; i < results.length; i++) {
|
|
189
|
+
const outcome = results[i];
|
|
190
|
+
if (outcome.status === 'fulfilled') {
|
|
191
|
+
succeeded.push(outcome.value.result);
|
|
192
|
+
}
|
|
193
|
+
else if (outcome.status === 'rejected') {
|
|
194
|
+
const reason = outcome.reason;
|
|
195
|
+
failed.push({ name: agentNames[i] ?? 'unknown', error: reason instanceof Error ? reason.message : String(reason) });
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (ctx.json) {
|
|
199
|
+
console.log(JSON.stringify({ succeeded, failed }, null, 2));
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
for (const result of succeeded) {
|
|
203
|
+
console.log('─'.repeat(60));
|
|
204
|
+
console.log(formatAgentResult(result));
|
|
205
|
+
console.log('');
|
|
206
|
+
}
|
|
207
|
+
if (failed.length > 0) {
|
|
208
|
+
console.log('─'.repeat(60));
|
|
209
|
+
console.log('Failed:');
|
|
210
|
+
for (const f of failed) {
|
|
211
|
+
console.log(` ${f.name}: ${f.error}`);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
// Summary
|
|
215
|
+
console.log('─'.repeat(60));
|
|
216
|
+
const avgScore = succeeded.length > 0
|
|
217
|
+
? (succeeded.reduce((sum, r) => sum + (r.score ?? 0), 0) / succeeded.length).toFixed(1)
|
|
218
|
+
: '-';
|
|
219
|
+
console.log(`\n${succeeded.length}/${agentNames.length} agents completed | Average score: ${avgScore}`);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
// ── exec command ────────────────────────────────────────────────────────
|
|
223
|
+
exec
|
|
224
|
+
.command('command <name> <target>')
|
|
225
|
+
.description('Execute a saved command configuration')
|
|
226
|
+
.option('-m, --model <model>', 'Model override (overrides command definition default)')
|
|
227
|
+
.option('-p, --prompt <text>', 'Operator directive or context for the agent')
|
|
228
|
+
.action(async (name, target, cmdOpts, cmd) => {
|
|
229
|
+
const options = getMergedOptions(cmd);
|
|
230
|
+
const ctx = createCoreContext(options);
|
|
231
|
+
const modelOverride = cmdOpts['model'];
|
|
232
|
+
const prompt = cmdOpts['prompt'];
|
|
233
|
+
try {
|
|
234
|
+
const result = await withSpinner(ctx, {
|
|
235
|
+
start: `Running command ${name} against ${target}...`,
|
|
236
|
+
success: `Command execution complete`,
|
|
237
|
+
failure: `Command execution failed`,
|
|
238
|
+
}, () => ctx.client.runCommand(name, { target, prompt }, modelOverride ? { model: modelOverride } : undefined));
|
|
239
|
+
if (ctx.json) {
|
|
240
|
+
console.log(JSON.stringify(result, null, 2));
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
console.log(formatExecutionResult(result));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
handleCoreError(error, ctx);
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
// ── exec workflow ───────────────────────────────────────────────────────
|
|
251
|
+
exec
|
|
252
|
+
.command('workflow <name> <target>')
|
|
253
|
+
.description('Execute a multi-phase workflow')
|
|
254
|
+
.option('-m, --model <model>', 'Model override for all phases (alias, tier, or provider:modelId)')
|
|
255
|
+
.option('-p, --prompt <text>', 'Operator directive or context for the agent')
|
|
256
|
+
.action(async (name, target, cmdOpts, cmd) => {
|
|
257
|
+
const options = getMergedOptions(cmd);
|
|
258
|
+
const modelOverride = cmdOpts['model'];
|
|
259
|
+
const prompt = cmdOpts['prompt'];
|
|
260
|
+
const ctx = createCoreContext(options, modelOverride);
|
|
261
|
+
try {
|
|
262
|
+
const result = await withSpinner(ctx, {
|
|
263
|
+
start: `Running workflow ${name} against ${target}...`,
|
|
264
|
+
success: `Workflow execution complete`,
|
|
265
|
+
failure: `Workflow execution failed`,
|
|
266
|
+
}, () => ctx.client.runWorkflow(name, { target, prompt }));
|
|
267
|
+
if (ctx.json) {
|
|
268
|
+
console.log(JSON.stringify(result, null, 2));
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
console.log(formatExecutionResult(result));
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
catch (error) {
|
|
275
|
+
handleCoreError(error, ctx);
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
// ── exec list ───────────────────────────────────────────────────────────
|
|
279
|
+
exec
|
|
280
|
+
.command('list')
|
|
281
|
+
.description('List available definitions')
|
|
282
|
+
.option('-t, --type <type>', 'Filter by type (agent, command, workflow, pipeline)')
|
|
283
|
+
.option('-d, --domain <domain>', 'Filter by domain')
|
|
284
|
+
.action(async (cmdOpts, cmd) => {
|
|
285
|
+
const options = getMergedOptions(cmd);
|
|
286
|
+
const ctx = createCoreContext(options);
|
|
287
|
+
const filter = {};
|
|
288
|
+
if (cmdOpts.type)
|
|
289
|
+
filter.type = cmdOpts.type;
|
|
290
|
+
if (cmdOpts.domain)
|
|
291
|
+
filter.domain = cmdOpts.domain;
|
|
292
|
+
try {
|
|
293
|
+
const items = await withSpinner(ctx, {
|
|
294
|
+
start: 'Fetching definitions...',
|
|
295
|
+
success: 'Definitions loaded',
|
|
296
|
+
failure: 'Failed to fetch definitions',
|
|
297
|
+
}, () => ctx.client.list(Object.keys(filter).length > 0 ? filter : undefined));
|
|
298
|
+
if (ctx.json) {
|
|
299
|
+
console.log(JSON.stringify(items, null, 2));
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
console.log(formatDefinitionList(items));
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
catch (error) {
|
|
306
|
+
handleCoreError(error, ctx);
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
// ── exec describe ───────────────────────────────────────────────────────
|
|
310
|
+
exec
|
|
311
|
+
.command('describe <name>')
|
|
312
|
+
.description('Inspect a definition\'s metadata and interface')
|
|
313
|
+
.action(async (name, _cmdOpts, cmd) => {
|
|
314
|
+
const options = getMergedOptions(cmd);
|
|
315
|
+
const ctx = createCoreContext(options);
|
|
316
|
+
try {
|
|
317
|
+
const details = await withSpinner(ctx, {
|
|
318
|
+
start: `Resolving ${name}...`,
|
|
319
|
+
success: `Definition resolved`,
|
|
320
|
+
failure: `Failed to resolve definition`,
|
|
321
|
+
}, () => ctx.client.describe(name));
|
|
322
|
+
if (ctx.json) {
|
|
323
|
+
console.log(JSON.stringify(details, null, 2));
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
console.log(formatDefinitionDetails(details));
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
catch (error) {
|
|
330
|
+
handleCoreError(error, ctx);
|
|
331
|
+
}
|
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AI,GAAG,CAAC,IAAI,EAAE,CAAC;gBACb,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAChD,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC;YAChD,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/commands/executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAiEhE"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createRegistryContext, handleRegistryError } from '../context.js';
|
|
2
|
+
import { withSpinner, parseIntOption } from '../utils.js';
|
|
3
|
+
/**
|
|
4
|
+
* Register execution commands
|
|
5
|
+
*/
|
|
6
|
+
export function registerExecutionCommands(program) {
|
|
7
|
+
const executions = program
|
|
8
|
+
.command('executions')
|
|
9
|
+
.description('Track definition execution metrics');
|
|
10
|
+
// ulu executions record <type> <name> <version>
|
|
11
|
+
executions
|
|
12
|
+
.command('record <type> <name> <version>')
|
|
13
|
+
.description('Record an execution of a definition')
|
|
14
|
+
.requiredOption('-s, --source <source>', 'Execution source identifier')
|
|
15
|
+
.option('--run-id <id>', 'Run ID for idempotency')
|
|
16
|
+
.action(async (type, name, version, options, cmd) => {
|
|
17
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
18
|
+
const ctx = createRegistryContext(globalOpts);
|
|
19
|
+
try {
|
|
20
|
+
const result = await withSpinner(ctx, { start: 'Recording execution...', success: 'Execution recorded', failure: 'Failed to record execution' }, () => ctx.client.executions.record(type, name, version, {
|
|
21
|
+
source: options.source,
|
|
22
|
+
runId: options.runId,
|
|
23
|
+
}));
|
|
24
|
+
if (ctx.json) {
|
|
25
|
+
console.log(JSON.stringify(result, null, 2));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
console.log(`Execution recorded for ${type}/${name}@${version}`);
|
|
29
|
+
console.log(`Count: ${result.executionCount}`);
|
|
30
|
+
if (result.duplicate)
|
|
31
|
+
console.log('(duplicate execution)');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
handleRegistryError(error, ctx);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
// ulu executions stats <type> <name> <version>
|
|
39
|
+
executions
|
|
40
|
+
.command('stats <type> <name> <version>')
|
|
41
|
+
.description('Get execution statistics')
|
|
42
|
+
.option('-w, --window <minutes>', 'Time window in minutes (1-10080)', '60')
|
|
43
|
+
.action(async (type, name, version, options, cmd) => {
|
|
44
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
45
|
+
const ctx = createRegistryContext(globalOpts);
|
|
46
|
+
try {
|
|
47
|
+
const stats = await withSpinner(ctx, { start: 'Fetching execution stats...', failure: 'Failed to fetch stats' }, () => ctx.client.executions.getStats(type, name, version, parseIntOption(options.window, '--window')));
|
|
48
|
+
if (ctx.json) {
|
|
49
|
+
console.log(JSON.stringify(stats, null, 2));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log(`Execution stats for ${type}/${name}@${version}:\n`);
|
|
53
|
+
console.log(` Total: ${stats.totalCount}`);
|
|
54
|
+
console.log(` Recent: ${stats.recentCount}`);
|
|
55
|
+
console.log(` Window: ${stats.windowMinutes} minutes`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
handleRegistryError(error, ctx);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=executions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/commands/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAsB,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE1D;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACxD,MAAM,UAAU,GAAG,OAAO;SACvB,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,oCAAoC,CAAC,CAAC;IAErD,gDAAgD;IAChD,UAAU;SACP,OAAO,CAAC,gCAAgC,CAAC;SACzC,WAAW,CAAC,qCAAqC,CAAC;SAClD,cAAc,CAAC,uBAAuB,EAAE,6BAA6B,CAAC;SACtE,MAAM,CAAC,eAAe,EAAE,wBAAwB,CAAC;SACjD,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,IAAY,EAAE,OAAe,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;QAC1E,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,EAAmB,CAAC;QAC1D,MAAM,GAAG,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,WAAW,CAC9B,GAAG,EACH,EAAE,KAAK,EAAE,wBAAwB,EAAE,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,4BAA4B,EAAE,EACzG,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,IAAsB,EAAE,IAAI,EAAE,OAAO,EAAE;gBACxE,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB,CAAC,CACH,CAAC;YAEF,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;gBACb,OAAO,CAAC,G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AC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9C,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,IAAI,IAAI,IAAI,OAAO,KAAK,CAAC,CAAC;gBACjE,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;gBAC5C,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;gBAC9C,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,CAAC,aAAa,UAAU,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,mBAAmB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forks.d.ts","sourceRoot":"","sources":["../../src/commands/forks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA2J3D"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { createRegistryContext, handleRegistryError } from '../context.js';
|
|
2
|
+
import { withSpinner, asFlexibleResponse } from '../utils.js';
|
|
3
|
+
/**
|
|
4
|
+
* Register fork commands
|
|
5
|
+
*/
|
|
6
|
+
export function registerForkCommands(program) {
|
|
7
|
+
const forks = program
|
|
8
|
+
.command('forks')
|
|
9
|
+
.description('Manage definition forks');
|
|
10
|
+
// ulu forks list <type> <name> <version>
|
|
11
|
+
forks
|
|
12
|
+
.command('list <type> <name> <version>')
|
|
13
|
+
.description('List forks of a definition')
|
|
14
|
+
.action(async (type, name, version, _, cmd) => {
|
|
15
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
16
|
+
const ctx = createRegistryContext(globalOpts);
|
|
17
|
+
try {
|
|
18
|
+
const result = await withSpinner(ctx, { start: 'Fetching forks...', failure: 'Failed to fetch forks' }, () => ctx.client.forks.list(type, name, version));
|
|
19
|
+
if (ctx.json) {
|
|
20
|
+
console.log(JSON.stringify(result, null, 2));
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
if (result.forks.length === 0) {
|
|
24
|
+
console.log('No forks found');
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
for (const entry of result.forks) {
|
|
28
|
+
const d = entry.definition;
|
|
29
|
+
if (d) {
|
|
30
|
+
console.log(` ${d.type}/${d.name}@${d.version} (${d.authorId.slice(0, 8)})`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
console.log(`\n${result.totalForks} fork(s)`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
handleRegistryError(error, ctx);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
// ulu forks create <type> <name> <version>
|
|
42
|
+
forks
|
|
43
|
+
.command('create <type> <name> <version>')
|
|
44
|
+
.description('Fork a definition')
|
|
45
|
+
.requiredOption('-n, --fork-name <name>', 'Name for the forked definition')
|
|
46
|
+
.option('--visibility <visibility>', 'Visibility (public|private)', 'private')
|
|
47
|
+
.option('--display-name <name>', 'Display name for the fork')
|
|
48
|
+
.option('--description <text>', 'Description for the fork')
|
|
49
|
+
.action(async (type, name, version, options, cmd) => {
|
|
50
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
51
|
+
const ctx = createRegistryContext(globalOpts);
|
|
52
|
+
try {
|
|
53
|
+
const result = await withSpinner(ctx, { start: 'Forking definition...', success: 'Definition forked', failure: 'Failed to fork definition' }, () => ctx.client.forks.create(type, name, version, {
|
|
54
|
+
name: options.forkName,
|
|
55
|
+
visibility: options.visibility,
|
|
56
|
+
displayName: options.displayName,
|
|
57
|
+
description: options.description,
|
|
58
|
+
}));
|
|
59
|
+
if (ctx.json) {
|
|
60
|
+
console.log(JSON.stringify(result, null, 2));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
console.log(`Forked as: ${result.definition.type}/${result.definition.name}@${result.definition.version}`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
handleRegistryError(error, ctx);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
// ulu forks check <type> <name> <version>
|
|
71
|
+
forks
|
|
72
|
+
.command('check <type> <name> <version>')
|
|
73
|
+
.description('Check if a definition can be forked')
|
|
74
|
+
.action(async (type, name, version, _, cmd) => {
|
|
75
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
76
|
+
const ctx = createRegistryContext(globalOpts);
|
|
77
|
+
try {
|
|
78
|
+
const result = await withSpinner(ctx, { start: 'Checking...', failure: 'Failed to check forkability' }, () => ctx.client.forks.isForkable(type, name, version));
|
|
79
|
+
if (ctx.json) {
|
|
80
|
+
console.log(JSON.stringify(result, null, 2));
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
console.log(`Forkable: ${result.canFork ? 'Yes' : 'No'}`);
|
|
84
|
+
if (result.reason) {
|
|
85
|
+
console.log(`Reason: ${result.reason}`);
|
|
86
|
+
}
|
|
87
|
+
if (result.requiresSubscription) {
|
|
88
|
+
console.log('Note: Requires a subscription upgrade');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
handleRegistryError(error, ctx);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
// ulu forks lineage <type> <name> <version>
|
|
97
|
+
forks
|
|
98
|
+
.command('lineage <type> <name> <version>')
|
|
99
|
+
.description('Show fork lineage chain')
|
|
100
|
+
.action(async (type, name, version, _, cmd) => {
|
|
101
|
+
const globalOpts = cmd.optsWithGlobals();
|
|
102
|
+
const ctx = createRegistryContext(globalOpts);
|
|
103
|
+
try {
|
|
104
|
+
const result = await withSpinner(ctx, { start: 'Fetching lineage...', failure: 'Failed to fetch lineage' }, () => ctx.client.forks.getAncestry(type, name, version));
|
|
105
|
+
if (ctx.json) {
|
|
106
|
+
console.log(JSON.stringify(result, null, 2));
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// API may return { isFork, fork, source } or { chain, current, source }
|
|
110
|
+
const lineage = asFlexibleResponse(result);
|
|
111
|
+
if (result.chain) {
|
|
112
|
+
console.log('Fork Lineage:');
|
|
113
|
+
for (const item of result.chain) {
|
|
114
|
+
console.log(` ${item.type}/${item.name}@${item.version} (${item.status})`);
|
|
115
|
+
}
|
|
116
|
+
if (result.current) {
|
|
117
|
+
console.log(` -> ${result.current.type}/${result.current.name}@${result.current.version} (current)`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else if (lineage.isFork) {
|
|
121
|
+
console.log('Fork Lineage:');
|
|
122
|
+
const src = lineage.source;
|
|
123
|
+
if (src) {
|
|
124
|
+
console.log(` Source: ${src.type}/${src.name}@${src.version}`);
|
|
125
|
+
}
|
|
126
|
+
console.log(` -> ${type}/${name}@${version} (current fork)`);
|
|
127
|
+
const fork = lineage.fork;
|
|
128
|
+
if (fork?.forkedAt) {
|
|
129
|
+
console.log(`\n Forked at: ${new Date(fork.forkedAt).toLocaleString()}`);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
console.log('This definition is not a fork');
|
|
134
|
+
}
|
|
135
|
+
if (result.source && !result.chain) {
|
|
136
|
+
console.log(`\nOriginal source: ${result.source.type}/${result.source.name}@${result.source.version}`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
handleRegistryError(error, ctx);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=forks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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