@moda-ai/cli 1.20.0 → 1.20.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/sync.js +11 -2
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
package/dist/sync.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CliInputError } from './errors.js';
|
|
2
2
|
import { runHarnessCommand } from './harness.js';
|
|
3
3
|
import { runPromptsCommand } from './prompts.js';
|
|
4
|
+
import { runSkillsCommand } from './skills.js';
|
|
4
5
|
export async function runSyncCommand(context) {
|
|
5
6
|
const resource = context.positionals[0] ?? 'harness';
|
|
6
7
|
const rest = context.positionals.slice(1);
|
|
@@ -20,8 +21,16 @@ export async function runSyncCommand(context) {
|
|
|
20
21
|
return { exitCode: 0 };
|
|
21
22
|
}
|
|
22
23
|
if (resource === 'skills') {
|
|
23
|
-
|
|
24
|
+
// Skills surface is pull-oriented (install approved skills locally), unlike
|
|
25
|
+
// prompts sync which pushes authored config upstream.
|
|
26
|
+
const exitCode = await runSkillsCommand({
|
|
27
|
+
...context,
|
|
28
|
+
command: 'skills',
|
|
29
|
+
positional: 'pull',
|
|
30
|
+
positionals: ['pull', ...rest],
|
|
31
|
+
});
|
|
32
|
+
return { exitCode };
|
|
24
33
|
}
|
|
25
|
-
throw new CliInputError(`Unknown sync resource '${resource}'.`, 'Usage: moda sync [harness|prompts] [--dry-run] [--profile=NAME]');
|
|
34
|
+
throw new CliInputError(`Unknown sync resource '${resource}'.`, 'Usage: moda sync [harness|prompts|skills] [--dry-run] [--profile=NAME]');
|
|
26
35
|
}
|
|
27
36
|
//# sourceMappingURL=sync.js.map
|
package/package.json
CHANGED