@gabeosx/skx 1.1.2 → 1.1.4
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/gabeosx-skx-1.1.4.tgz +0 -0
- package/dist/ui.js +4 -5
- package/package.json +3 -3
- package/dist/gabeosx-skx-1.1.2.tgz +0 -0
|
Binary file
|
package/dist/ui.js
CHANGED
|
@@ -2,6 +2,7 @@ import { intro, outro, cancel, spinner } from '@clack/prompts';
|
|
|
2
2
|
import { runWizard } from './wizard.js';
|
|
3
3
|
import { SkillInstaller } from './utils/skill-installer.js';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
|
+
import path from 'path';
|
|
5
6
|
export async function startInteractiveMode() {
|
|
6
7
|
intro(chalk.inverse(' skx '));
|
|
7
8
|
try {
|
|
@@ -17,12 +18,10 @@ export async function startInteractiveMode() {
|
|
|
17
18
|
// For now, we simulate the installation using the installer.
|
|
18
19
|
// The installer expects sourceDir and targetDir.
|
|
19
20
|
// We need to resolve the target directory using the adapter.
|
|
20
|
-
const
|
|
21
|
+
const basePath = await agent.getInstallationPath(scope, process.cwd());
|
|
22
|
+
const targetDir = path.join(basePath, skill.packageName);
|
|
21
23
|
const installer = new SkillInstaller();
|
|
22
|
-
|
|
23
|
-
// For now, we assume the skill is already available or simulate it.
|
|
24
|
-
const dummySource = '/tmp/skx-dummy-source'; // Placeholder
|
|
25
|
-
await installer.install(dummySource, targetDir);
|
|
24
|
+
await installer.installFromUrl(skill.githubRepoUrl, targetDir);
|
|
26
25
|
s.stop(`Successfully installed ${skill.name}!`);
|
|
27
26
|
console.log(chalk.bold('\nPost-Installation Instructions:'));
|
|
28
27
|
console.log(agent.getPostInstallInstructions());
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gabeosx/skx",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "The CLI tool for managing Agent Skills",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"skx": "dist/
|
|
8
|
+
"skx": "dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc -p tsconfig.build.json",
|
|
17
|
-
"start": "node dist/
|
|
17
|
+
"start": "node dist/index.js",
|
|
18
18
|
"test": "vitest run",
|
|
19
19
|
"test:watch": "vitest",
|
|
20
20
|
"lint": "eslint .",
|
|
Binary file
|