@workskills/getskill 1.1.8 → 1.1.9
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/EXAMPLES.md +4 -1
- package/README.md +371 -260
- package/dist/lib/config.d.ts +10 -0
- package/dist/lib/config.js +47 -0
- package/dist/lib/logger.d.ts +7 -0
- package/dist/lib/logger.js +38 -0
- package/dist/lib/network.d.ts +5 -0
- package/dist/lib/network.js +215 -0
- package/dist/lib/publish-registry.d.ts +15 -0
- package/dist/lib/publish-registry.js +333 -0
- package/dist/lib/skill-manager.d.ts +10 -0
- package/dist/lib/skill-manager.js +274 -0
- package/dist/lib/skill-validator.d.ts +4 -0
- package/dist/lib/skill-validator.js +107 -0
- package/dist/lib/state.d.ts +18 -0
- package/dist/lib/state.js +256 -0
- package/dist/lib/system.d.ts +16 -0
- package/dist/lib/system.js +288 -0
- package/dist/lib/types.d.ts +150 -0
- package/dist/lib/types.js +2 -0
- package/dist/main.d.ts +10 -0
- package/dist/main.js +381 -0
- package/dist/test-pdf-flow.d.ts +1 -0
- package/dist/test-pdf-flow.js +92 -0
- package/dist/tests/network.test.d.ts +1 -0
- package/dist/tests/network.test.js +39 -0
- package/dist/tests/publish-registry.test.d.ts +1 -0
- package/dist/tests/publish-registry.test.js +41 -0
- package/dist/tests/skill-validator.test.d.ts +1 -0
- package/dist/tests/skill-validator.test.js +41 -0
- package/dist/tests/state.test.d.ts +1 -0
- package/dist/tests/state.test.js +37 -0
- package/dist/verify.d.ts +1 -0
- package/dist/verify.js +108 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +21 -0
- package/package.json +80 -58
- package/index.js +0 -1057
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ensureDirectoryExists = ensureDirectoryExists;
|
|
7
|
+
exports.executeCommand = executeCommand;
|
|
8
|
+
exports.checkGitInstalled = checkGitInstalled;
|
|
9
|
+
exports.getGitDownloadUrl = getGitDownloadUrl;
|
|
10
|
+
exports.downloadFile = downloadFile;
|
|
11
|
+
exports.installGit = installGit;
|
|
12
|
+
exports.ensureGitInstalled = ensureGitInstalled;
|
|
13
|
+
exports.isInteractiveTerminal = isInteractiveTerminal;
|
|
14
|
+
exports.promptForInput = promptForInput;
|
|
15
|
+
exports.getGitCommitHash = getGitCommitHash;
|
|
16
|
+
const fs_1 = __importDefault(require("fs"));
|
|
17
|
+
const os_1 = __importDefault(require("os"));
|
|
18
|
+
const path_1 = __importDefault(require("path"));
|
|
19
|
+
const readline_1 = __importDefault(require("readline"));
|
|
20
|
+
const child_process_1 = require("child_process");
|
|
21
|
+
const http_1 = __importDefault(require("http"));
|
|
22
|
+
const https_1 = __importDefault(require("https"));
|
|
23
|
+
function ensureDirectoryExists(dirPath) {
|
|
24
|
+
if (!fs_1.default.existsSync(dirPath)) {
|
|
25
|
+
fs_1.default.mkdirSync(dirPath, { recursive: true });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function splitCommand(command) {
|
|
29
|
+
const args = [];
|
|
30
|
+
let current = '';
|
|
31
|
+
let quote = null;
|
|
32
|
+
for (let index = 0; index < command.length; index += 1) {
|
|
33
|
+
const char = command[index];
|
|
34
|
+
if (quote) {
|
|
35
|
+
if (char === quote) {
|
|
36
|
+
quote = null;
|
|
37
|
+
}
|
|
38
|
+
else if (char === '\\' && quote === '"') {
|
|
39
|
+
const nextChar = command[index + 1];
|
|
40
|
+
if (nextChar) {
|
|
41
|
+
current += nextChar;
|
|
42
|
+
index += 1;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
current += char;
|
|
47
|
+
}
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (char === '"' || char === "'") {
|
|
51
|
+
quote = char;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (/\s/.test(char)) {
|
|
55
|
+
if (current) {
|
|
56
|
+
args.push(current);
|
|
57
|
+
current = '';
|
|
58
|
+
}
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
current += char;
|
|
62
|
+
}
|
|
63
|
+
if (quote) {
|
|
64
|
+
throw new Error(`命令引号未正确关闭: ${command}`);
|
|
65
|
+
}
|
|
66
|
+
if (current) {
|
|
67
|
+
args.push(current);
|
|
68
|
+
}
|
|
69
|
+
return args;
|
|
70
|
+
}
|
|
71
|
+
function executeCommand(command, cwd, options = {}) {
|
|
72
|
+
return new Promise((resolve, reject) => {
|
|
73
|
+
const parts = splitCommand(command);
|
|
74
|
+
const [file, ...args] = parts;
|
|
75
|
+
if (!file) {
|
|
76
|
+
reject(new Error('命令不能为空'));
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const child = (0, child_process_1.spawn)(file, args, {
|
|
80
|
+
cwd,
|
|
81
|
+
env: {
|
|
82
|
+
...process.env,
|
|
83
|
+
...options.env
|
|
84
|
+
},
|
|
85
|
+
windowsHide: true,
|
|
86
|
+
stdio: ['ignore', 'pipe', 'pipe']
|
|
87
|
+
});
|
|
88
|
+
let stdout = '';
|
|
89
|
+
let stderr = '';
|
|
90
|
+
child.stdout.on('data', (chunk) => {
|
|
91
|
+
stdout += chunk.toString();
|
|
92
|
+
});
|
|
93
|
+
child.stderr.on('data', (chunk) => {
|
|
94
|
+
stderr += chunk.toString();
|
|
95
|
+
});
|
|
96
|
+
child.on('error', (error) => {
|
|
97
|
+
reject(new Error(`执行命令失败: ${error.message}`));
|
|
98
|
+
});
|
|
99
|
+
child.on('close', (code) => {
|
|
100
|
+
if (code === 0) {
|
|
101
|
+
resolve({ stdout, stderr });
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const message = (stderr || stdout || `exit code ${code}`).trim();
|
|
105
|
+
reject(new Error(`命令执行失败 (${command}): ${message}`));
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
async function checkGitInstalled() {
|
|
110
|
+
try {
|
|
111
|
+
await executeCommand('git --version');
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
catch {
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function getGitDownloadUrl() {
|
|
119
|
+
const platform = os_1.default.platform();
|
|
120
|
+
const arch = os_1.default.arch();
|
|
121
|
+
switch (platform) {
|
|
122
|
+
case 'win32':
|
|
123
|
+
return arch === 'x64'
|
|
124
|
+
? 'https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/Git-2.44.0-64-bit.exe'
|
|
125
|
+
: 'https://github.com/git-for-windows/git/releases/download/v2.44.0.windows.1/Git-2.44.0-32-bit.exe';
|
|
126
|
+
case 'darwin':
|
|
127
|
+
return 'homebrew';
|
|
128
|
+
case 'linux':
|
|
129
|
+
return 'package-manager';
|
|
130
|
+
default:
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
function cleanupFile(filePath) {
|
|
135
|
+
if (fs_1.default.existsSync(filePath)) {
|
|
136
|
+
fs_1.default.unlinkSync(filePath);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function downloadFile(url, destPath) {
|
|
140
|
+
return new Promise((resolve, reject) => {
|
|
141
|
+
const urlObj = new URL(url);
|
|
142
|
+
const protocol = urlObj.protocol === 'https:' ? https_1.default : http_1.default;
|
|
143
|
+
const file = fs_1.default.createWriteStream(destPath);
|
|
144
|
+
protocol
|
|
145
|
+
.get(url, (response) => {
|
|
146
|
+
if (response.statusCode === 301 ||
|
|
147
|
+
response.statusCode === 302) {
|
|
148
|
+
const locationHeader = response.headers.location;
|
|
149
|
+
const redirectLocation = Array.isArray(locationHeader)
|
|
150
|
+
? locationHeader[0]
|
|
151
|
+
: locationHeader;
|
|
152
|
+
file.close();
|
|
153
|
+
cleanupFile(destPath);
|
|
154
|
+
if (!redirectLocation) {
|
|
155
|
+
reject(new Error('下载重定向缺少 location 头'));
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
downloadFile(redirectLocation, destPath)
|
|
159
|
+
.then(resolve)
|
|
160
|
+
.catch(reject);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (response.statusCode !== 200) {
|
|
164
|
+
file.close();
|
|
165
|
+
cleanupFile(destPath);
|
|
166
|
+
reject(new Error(`下载失败,状态码: ${response.statusCode}`));
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
const totalSize = Number.parseInt(response.headers['content-length'] || '0', 10);
|
|
170
|
+
let downloadedSize = 0;
|
|
171
|
+
response.on('data', (chunk) => {
|
|
172
|
+
downloadedSize += chunk.length;
|
|
173
|
+
if (totalSize > 0) {
|
|
174
|
+
const percent = ((downloadedSize / totalSize) *
|
|
175
|
+
100).toFixed(2);
|
|
176
|
+
process.stdout.write(`\r下载进度: ${percent}%`);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
response.pipe(file);
|
|
180
|
+
file.on('finish', () => {
|
|
181
|
+
file.close();
|
|
182
|
+
console.log('\n下载完成!');
|
|
183
|
+
resolve(destPath);
|
|
184
|
+
});
|
|
185
|
+
})
|
|
186
|
+
.on('error', (error) => {
|
|
187
|
+
file.close();
|
|
188
|
+
cleanupFile(destPath);
|
|
189
|
+
reject(error);
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
async function installGit() {
|
|
194
|
+
const platform = os_1.default.platform();
|
|
195
|
+
const downloadUrl = getGitDownloadUrl();
|
|
196
|
+
console.log('检测到系统未安装 Git,正在准备安装...\n');
|
|
197
|
+
if (downloadUrl === 'homebrew') {
|
|
198
|
+
console.log('macOS 系统检测到未安装 Git');
|
|
199
|
+
console.log('请使用以下命令安装 Git:\n');
|
|
200
|
+
console.log(' brew install git');
|
|
201
|
+
console.log('\n如果未安装 Homebrew,请访问: https://brew.sh/');
|
|
202
|
+
throw new Error('请先安装 Git 后再运行此命令');
|
|
203
|
+
}
|
|
204
|
+
if (downloadUrl === 'package-manager') {
|
|
205
|
+
console.log('Linux 系统检测到未安装 Git');
|
|
206
|
+
console.log('请使用系统包管理器安装 Git:\n');
|
|
207
|
+
console.log(' Ubuntu/Debian: sudo apt-get install git');
|
|
208
|
+
console.log(' CentOS/RHEL: sudo yum install git');
|
|
209
|
+
console.log(' Fedora: sudo dnf install git');
|
|
210
|
+
console.log(' Arch: sudo pacman -S git');
|
|
211
|
+
throw new Error('请先安装 Git 后再运行此命令');
|
|
212
|
+
}
|
|
213
|
+
if (platform === 'win32' && downloadUrl) {
|
|
214
|
+
console.log('Windows 系统检测到未安装 Git');
|
|
215
|
+
console.log('正在下载 Git 安装程序...\n');
|
|
216
|
+
const installerPath = path_1.default.join(os_1.default.tmpdir(), 'git-installer.exe');
|
|
217
|
+
try {
|
|
218
|
+
await downloadFile(downloadUrl, installerPath);
|
|
219
|
+
console.log(`\nGit 安装程序已下载到: ${installerPath}`);
|
|
220
|
+
console.log('\n正在启动安装程序,请按照提示完成安装...');
|
|
221
|
+
console.log('安装完成后,请重新运行此命令。\n');
|
|
222
|
+
const child = (0, child_process_1.spawn)(installerPath, [], {
|
|
223
|
+
detached: true,
|
|
224
|
+
stdio: 'ignore',
|
|
225
|
+
windowsHide: false
|
|
226
|
+
});
|
|
227
|
+
child.on('error', (error) => {
|
|
228
|
+
console.error('启动安装程序失败:', error.message);
|
|
229
|
+
});
|
|
230
|
+
child.unref();
|
|
231
|
+
throw new Error('请完成 Git 安装后重新运行此命令');
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
235
|
+
console.error('\n下载 Git 安装程序失败:', message);
|
|
236
|
+
console.log('\n您可以手动访问以下网址下载 Git:');
|
|
237
|
+
console.log('https://git-scm.com/download/win');
|
|
238
|
+
throw new Error('请先安装 Git 后再运行此命令');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
async function ensureGitInstalled() {
|
|
243
|
+
const installed = await checkGitInstalled();
|
|
244
|
+
if (!installed) {
|
|
245
|
+
await installGit();
|
|
246
|
+
}
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
function isInteractiveTerminal() {
|
|
250
|
+
return Boolean(process.stdin.isTTY && process.stdout.isTTY);
|
|
251
|
+
}
|
|
252
|
+
function promptForInput(question, options = {}) {
|
|
253
|
+
return new Promise((resolve, reject) => {
|
|
254
|
+
if (!isInteractiveTerminal()) {
|
|
255
|
+
if (options.defaultValue) {
|
|
256
|
+
resolve(options.defaultValue);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
reject(new Error(`${question}:当前终端不支持交互输入,请通过命令参数或环境变量提供。`));
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const promptText = options.defaultValue
|
|
263
|
+
? `${question} (${options.defaultValue}): `
|
|
264
|
+
: `${question}: `;
|
|
265
|
+
const rl = readline_1.default.createInterface({
|
|
266
|
+
input: process.stdin,
|
|
267
|
+
output: process.stdout
|
|
268
|
+
});
|
|
269
|
+
rl.question(promptText, (answer) => {
|
|
270
|
+
rl.close();
|
|
271
|
+
const finalValue = answer.trim() || options.defaultValue || '';
|
|
272
|
+
if (options.required && !finalValue) {
|
|
273
|
+
reject(new Error(`${question} 不能为空`));
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
resolve(finalValue);
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
async function getGitCommitHash(repoPath) {
|
|
281
|
+
try {
|
|
282
|
+
const { stdout } = await executeCommand('git rev-parse HEAD', repoPath);
|
|
283
|
+
return stdout.trim();
|
|
284
|
+
}
|
|
285
|
+
catch {
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export type LogLevel = 'silent' | 'error' | 'warn' | 'info' | 'debug';
|
|
2
|
+
export interface CommandOutput {
|
|
3
|
+
stdout: string;
|
|
4
|
+
stderr: string;
|
|
5
|
+
}
|
|
6
|
+
export interface RequestOptions {
|
|
7
|
+
method?: string;
|
|
8
|
+
headers?: Record<string, string>;
|
|
9
|
+
timeout?: number;
|
|
10
|
+
body?: string;
|
|
11
|
+
followRedirects?: boolean;
|
|
12
|
+
allowNonSuccessStatus?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface RequestResponse {
|
|
15
|
+
statusCode: number;
|
|
16
|
+
headers: Record<string, string | string[] | undefined>;
|
|
17
|
+
body: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SearchOptions {
|
|
20
|
+
sort?: string;
|
|
21
|
+
order?: string;
|
|
22
|
+
page?: number;
|
|
23
|
+
limit?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface SearchSkill {
|
|
26
|
+
name: string;
|
|
27
|
+
full_name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
html_url: string;
|
|
30
|
+
git_url: string;
|
|
31
|
+
clone_url: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RepositoryCandidate {
|
|
34
|
+
name?: string;
|
|
35
|
+
full_name?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
html_url?: string;
|
|
38
|
+
clone_url?: string;
|
|
39
|
+
private?: boolean;
|
|
40
|
+
empty?: boolean;
|
|
41
|
+
archived?: boolean;
|
|
42
|
+
template?: boolean;
|
|
43
|
+
fork?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface SearchApiItem {
|
|
46
|
+
repository?: RepositoryCandidate;
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
}
|
|
49
|
+
export interface SearchApiPayload {
|
|
50
|
+
ok?: boolean;
|
|
51
|
+
message?: string;
|
|
52
|
+
data?: Array<RepositoryCandidate | SearchApiItem>;
|
|
53
|
+
}
|
|
54
|
+
export interface SkillStateRecord {
|
|
55
|
+
inputSkillName: string;
|
|
56
|
+
localSkillName: string;
|
|
57
|
+
remoteSkillPath: string;
|
|
58
|
+
repoPath: string;
|
|
59
|
+
installDir: string;
|
|
60
|
+
lastAction: 'install' | 'update';
|
|
61
|
+
installedAt: string;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
gitCommitHash: string | null;
|
|
64
|
+
requestedVersion?: string | null;
|
|
65
|
+
}
|
|
66
|
+
export interface InstallState {
|
|
67
|
+
skills: Record<string, SkillStateRecord>;
|
|
68
|
+
}
|
|
69
|
+
export interface DownloadResult {
|
|
70
|
+
skillName: string;
|
|
71
|
+
repoPath: string;
|
|
72
|
+
files: string[];
|
|
73
|
+
requestedVersion?: string | null;
|
|
74
|
+
}
|
|
75
|
+
export interface DownloadOptions {
|
|
76
|
+
version?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface UpdateAllResult {
|
|
79
|
+
skillName: string;
|
|
80
|
+
ok: boolean;
|
|
81
|
+
result?: DownloadResult;
|
|
82
|
+
error?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface InstalledSkillInfo {
|
|
85
|
+
skillName: string;
|
|
86
|
+
localSkillName: string;
|
|
87
|
+
installed: boolean;
|
|
88
|
+
cached: boolean;
|
|
89
|
+
skillDir: string;
|
|
90
|
+
repoPath: string;
|
|
91
|
+
state: SkillStateRecord | null;
|
|
92
|
+
}
|
|
93
|
+
export interface RemoveInstalledSkillResult {
|
|
94
|
+
skillName: string;
|
|
95
|
+
localSkillName: string;
|
|
96
|
+
removedInstall: boolean;
|
|
97
|
+
removedCache: boolean;
|
|
98
|
+
skillDir: string;
|
|
99
|
+
repoPath: string;
|
|
100
|
+
}
|
|
101
|
+
export interface PublishOptions {
|
|
102
|
+
repoUrl?: string;
|
|
103
|
+
repoName?: string;
|
|
104
|
+
branch?: string;
|
|
105
|
+
message?: string;
|
|
106
|
+
username?: string;
|
|
107
|
+
email?: string;
|
|
108
|
+
password?: string;
|
|
109
|
+
visibility?: 'public' | 'private';
|
|
110
|
+
}
|
|
111
|
+
export interface AuthSession {
|
|
112
|
+
username: string;
|
|
113
|
+
email?: string | null;
|
|
114
|
+
token: string;
|
|
115
|
+
}
|
|
116
|
+
export interface EnsureAuthResult extends AuthSession {
|
|
117
|
+
mode: 'stored-token' | 'login' | 'register';
|
|
118
|
+
}
|
|
119
|
+
export interface RegistryUser {
|
|
120
|
+
username: string;
|
|
121
|
+
email?: string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface RepoCreationResult {
|
|
124
|
+
name: string;
|
|
125
|
+
cloneUrl: string;
|
|
126
|
+
htmlUrl?: string;
|
|
127
|
+
existed: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface SkillValidationResult {
|
|
130
|
+
valid: boolean;
|
|
131
|
+
errors: string[];
|
|
132
|
+
metadata: {
|
|
133
|
+
name?: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
license?: string;
|
|
136
|
+
compatibility?: string;
|
|
137
|
+
author?: string;
|
|
138
|
+
version?: string;
|
|
139
|
+
category?: string;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export interface PublishResult {
|
|
143
|
+
skillPath: string;
|
|
144
|
+
remoteUrl: string;
|
|
145
|
+
branch: string;
|
|
146
|
+
committed: boolean;
|
|
147
|
+
repositoryName?: string;
|
|
148
|
+
createdRemoteRepo?: boolean;
|
|
149
|
+
authMode?: 'stored-token' | 'login' | 'register' | 'not-required';
|
|
150
|
+
}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { getBaseUrl, getSkillsCacheDirectory, getSkillsDirectory, setBaseUrl } from './lib/config';
|
|
3
|
+
import { repositoryHasSkillFile, searchSkills } from './lib/network';
|
|
4
|
+
import { copySkillFiles, getInstalledSkillInfo, listLocalSkills } from './lib/state';
|
|
5
|
+
import { checkGitInstalled, ensureGitInstalled } from './lib/system';
|
|
6
|
+
import { cloneOrUpdateRepo, downloadSkill, publishSkill, uninstallSkill, updateAllSkills, updateSkill } from './lib/skill-manager';
|
|
7
|
+
export declare function printHelp(): void;
|
|
8
|
+
export declare function getCliVersion(): string;
|
|
9
|
+
export declare function cli(): Promise<void>;
|
|
10
|
+
export { searchSkills, downloadSkill, updateSkill, updateAllSkills, publishSkill, uninstallSkill, listLocalSkills, getInstalledSkillInfo, getSkillsDirectory, getSkillsCacheDirectory, cloneOrUpdateRepo, copySkillFiles, repositoryHasSkillFile, checkGitInstalled, ensureGitInstalled, setBaseUrl, getBaseUrl };
|