@moda-ai/cli 1.22.0 → 1.22.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/dist/skills.js +8 -2
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
package/dist/skills.js
CHANGED
|
@@ -653,7 +653,7 @@ export async function runSkillsCommand(input) {
|
|
|
653
653
|
return 0;
|
|
654
654
|
}
|
|
655
655
|
if (sub !== 'pull') {
|
|
656
|
-
throw new CliInputError(sub ? `Unknown skills subcommand '${sub}'` : 'A skills subcommand is required', 'Usage: moda skills gen [--source=all|sdk
|
|
656
|
+
throw new CliInputError(sub ? `Unknown skills subcommand '${sub}'` : 'A skills subcommand is required', 'Usage: moda skills gen [--source=all|sdk] [--max-sessions=N] [--start-at=ISO] [--end-at=ISO] [--replay] [--replay-set-id=ID] [--reprocess-segments] [--force-reprocess] [--wait] | moda skills status [run-id] | moda skills proposals list [--status=ready_for_pr] | moda skills proposal apply <proposal-id> | moda skills pull [--status=approved|proposed|all] | moda skills sync [--dry-run]');
|
|
657
657
|
}
|
|
658
658
|
const status = (flags.status ?? 'approved').toLowerCase();
|
|
659
659
|
if (!VALID_STATUSES.has(status)) {
|
|
@@ -690,6 +690,11 @@ async function generateSkills(flags) {
|
|
|
690
690
|
: `${resolveIngestUrl().replace(/\/+$/, '')}/v1/skills/generate`;
|
|
691
691
|
const waitForCompletion = flags.wait === 'true' || flags['wait-for-completion'] === 'true';
|
|
692
692
|
const forceReprocess = flags['force-reprocess'] === 'true';
|
|
693
|
+
const source = normalizeSkillSource(flags.source);
|
|
694
|
+
// Soft-deprecate: still accepted so old CLIs don't hard-fail; server returns empty.
|
|
695
|
+
if (source === 'coding_agent') {
|
|
696
|
+
console.error('Note: --source=coding-agent is deprecated for skills gen (SDK-only). The run will find no coding-agent sessions; use --source=all or --source=sdk.');
|
|
697
|
+
}
|
|
693
698
|
const body = compactObject({
|
|
694
699
|
tenant_id: tenantId || undefined,
|
|
695
700
|
max_sessions: parsePositiveInt(flags['max-sessions'], 0),
|
|
@@ -699,7 +704,7 @@ async function generateSkills(flags) {
|
|
|
699
704
|
clustering_run_id: flags['clustering-run-id'] || undefined,
|
|
700
705
|
replay_set_id: flags['replay-set-id'] || flags['eval-set-id'] || undefined,
|
|
701
706
|
run_clustering: flags['no-clustering'] !== 'true',
|
|
702
|
-
source
|
|
707
|
+
source,
|
|
703
708
|
clustering_timeout_seconds: parsePositiveInt(flags['clustering-timeout-seconds'], 7200),
|
|
704
709
|
clustering_poll_seconds: parsePositiveInt(flags['clustering-poll-seconds'], 15),
|
|
705
710
|
max_cluster_pct: parseOptionalFloat(flags['max-cluster-pct']),
|
|
@@ -745,6 +750,7 @@ function compactObject(input) {
|
|
|
745
750
|
}
|
|
746
751
|
function normalizeSkillSource(value) {
|
|
747
752
|
const normalized = (value || 'all').toLowerCase().replace(/-/g, '_');
|
|
753
|
+
// coding_agent kept for soft-deprecation (empty server result + stderr note).
|
|
748
754
|
if (['all', 'sdk', 'coding_agent'].includes(normalized))
|
|
749
755
|
return normalized;
|
|
750
756
|
return 'all';
|
package/package.json
CHANGED