reskill 1.6.0 → 1.8.0-beta.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/README.md +47 -47
- package/README.zh-CN.md +47 -47
- package/dist/cli/commands/__integration__/helpers.d.ts +16 -0
- package/dist/cli/commands/__integration__/helpers.d.ts.map +1 -1
- package/dist/cli/commands/find.d.ts +27 -0
- package/dist/cli/commands/find.d.ts.map +1 -0
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/index.js +1137 -438
- package/dist/core/git-resolver.d.ts.map +1 -1
- package/dist/core/http-resolver.d.ts +4 -2
- package/dist/core/http-resolver.d.ts.map +1 -1
- package/dist/core/installer.d.ts +25 -0
- package/dist/core/installer.d.ts.map +1 -1
- package/dist/core/registry-client.d.ts +70 -7
- package/dist/core/registry-client.d.ts.map +1 -1
- package/dist/core/registry-resolver.d.ts +2 -1
- package/dist/core/registry-resolver.d.ts.map +1 -1
- package/dist/core/skill-manager.d.ts +35 -7
- package/dist/core/skill-manager.d.ts.map +1 -1
- package/dist/core/skill-parser.d.ts +32 -0
- package/dist/core/skill-parser.d.ts.map +1 -1
- package/dist/index.js +961 -491
- package/dist/types/index.d.ts +16 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/registry-scope.d.ts +13 -13
- package/dist/utils/registry-scope.d.ts.map +1 -1
- package/dist/utils/registry.d.ts +27 -1
- package/dist/utils/registry.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ English | [简体中文](./README.zh-CN.md)
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
npx reskill@latest init
|
|
22
|
-
npx reskill@latest install github:anthropics/skills/frontend-design@latest
|
|
22
|
+
npx reskill@latest install github:anthropics/skills/skills/frontend-design@latest
|
|
23
23
|
npx reskill@latest list
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -43,36 +43,36 @@ npx reskill@latest <command> # Or use npx directly
|
|
|
43
43
|
|
|
44
44
|
## Commands
|
|
45
45
|
|
|
46
|
-
| Command
|
|
47
|
-
|
|
|
48
|
-
| `init`
|
|
49
|
-
| `install [skills...]` | `i`
|
|
50
|
-
| `list`
|
|
51
|
-
| `info <skill>`
|
|
52
|
-
| `update [skill]`
|
|
53
|
-
| `outdated`
|
|
54
|
-
| `uninstall <skill>`
|
|
55
|
-
| `publish [path]`
|
|
56
|
-
| `login`
|
|
57
|
-
| `logout`
|
|
58
|
-
| `whoami`
|
|
59
|
-
| `doctor`
|
|
46
|
+
| Command | Alias | Description |
|
|
47
|
+
| --------------------- | -------------------- | ----------------------------------------- |
|
|
48
|
+
| `init` | - | Initialize `skills.json` |
|
|
49
|
+
| `install [skills...]` | `i` | Install one or more skills |
|
|
50
|
+
| `list` | `ls` | List installed skills |
|
|
51
|
+
| `info <skill>` | - | Show skill details |
|
|
52
|
+
| `update [skill]` | `up` | Update skills |
|
|
53
|
+
| `outdated` | - | Check for outdated skills |
|
|
54
|
+
| `uninstall <skill>` | `un`, `rm`, `remove` | Remove a skill |
|
|
55
|
+
| `publish [path]` | `pub` | Publish a skill to the registry ¹ |
|
|
56
|
+
| `login` | - | Authenticate with the registry ¹ |
|
|
57
|
+
| `logout` | - | Remove stored authentication ¹ |
|
|
58
|
+
| `whoami` | - | Display current logged in user ¹ |
|
|
59
|
+
| `doctor` | - | Diagnose environment and check for issues |
|
|
60
60
|
|
|
61
61
|
> ¹ Registry commands (`publish`, `login`, `logout`, `whoami`) require a private registry deployment. Not available for public use yet.
|
|
62
62
|
| `completion install` | - | Install shell tab completion |
|
|
63
63
|
|
|
64
64
|
### Common Options
|
|
65
65
|
|
|
66
|
-
| Option
|
|
67
|
-
|
|
|
68
|
-
| `--no-save`
|
|
69
|
-
| `-g, --global`
|
|
70
|
-
| `-a, --agent <agents...>` | `install`
|
|
71
|
-
| `--mode <mode>`
|
|
72
|
-
| `--all`
|
|
73
|
-
| `-y, --yes`
|
|
74
|
-
| `-f, --force`
|
|
75
|
-
| `-j, --json`
|
|
66
|
+
| Option | Commands | Description |
|
|
67
|
+
| ------------------------- | ------------------------------------ | ------------------------------------------------------------- |
|
|
68
|
+
| `--no-save` | `install` | Install without saving to `skills.json` (for personal skills) |
|
|
69
|
+
| `-g, --global` | `install`, `uninstall`, `list` | Install/manage skills globally (user directory) |
|
|
70
|
+
| `-a, --agent <agents...>` | `install` | Specify target agents (e.g., `cursor`, `claude-code`) |
|
|
71
|
+
| `--mode <mode>` | `install` | Installation mode: `symlink` (default) or `copy` |
|
|
72
|
+
| `--all` | `install` | Install to all agents |
|
|
73
|
+
| `-y, --yes` | `install`, `uninstall`, `publish` | Skip confirmation prompts |
|
|
74
|
+
| `-f, --force` | `install` | Force reinstall even if already installed |
|
|
75
|
+
| `-j, --json` | `list`, `info`, `outdated`, `doctor` | Output as JSON |
|
|
76
76
|
|
|
77
77
|
Run `reskill <command> --help` for complete options and detailed usage.
|
|
78
78
|
|
|
@@ -129,26 +129,26 @@ npx reskill@latest install https://github.com/org/monorepo/tree/main/skills/plan
|
|
|
129
129
|
|
|
130
130
|
Skills can be installed directly from HTTP/HTTPS URLs pointing to archive files:
|
|
131
131
|
|
|
132
|
-
| Format
|
|
133
|
-
|
|
|
134
|
-
| HTTPS URL
|
|
135
|
-
| Aliyun OSS
|
|
136
|
-
| AWS S3
|
|
137
|
-
| OSS Protocol | `oss://bucket/path/skill.tar.gz`
|
|
138
|
-
| S3 Protocol
|
|
132
|
+
| Format | Example | Description |
|
|
133
|
+
| ------------ | ---------------------------------------------------------- | ------------------------ |
|
|
134
|
+
| HTTPS URL | `https://example.com/skill.tar.gz` | Direct download URL |
|
|
135
|
+
| Aliyun OSS | `https://bucket.oss-cn-hangzhou.aliyuncs.com/skill.tar.gz` | Aliyun OSS URL |
|
|
136
|
+
| AWS S3 | `https://bucket.s3.amazonaws.com/skill.tar.gz` | AWS S3 URL |
|
|
137
|
+
| OSS Protocol | `oss://bucket/path/skill.tar.gz` | Shorthand for Aliyun OSS |
|
|
138
|
+
| S3 Protocol | `s3://bucket/path/skill.tar.gz` | Shorthand for AWS S3 |
|
|
139
139
|
|
|
140
140
|
**Supported archive formats:** `.tar.gz`, `.tgz`, `.zip`, `.tar`
|
|
141
141
|
|
|
142
142
|
## Version Specification
|
|
143
143
|
|
|
144
|
-
| Format | Example
|
|
145
|
-
| ------ |
|
|
146
|
-
| Exact
|
|
147
|
-
| Latest | `@latest`
|
|
148
|
-
| Range
|
|
149
|
-
| Branch | `@branch:develop` | Specific branch
|
|
150
|
-
| Commit | `@commit:abc1234` | Specific commit hash
|
|
151
|
-
| (none) | -
|
|
144
|
+
| Format | Example | Description |
|
|
145
|
+
| ------ | ----------------- | ---------------------------------- |
|
|
146
|
+
| Exact | `@v1.0.0` | Lock to specific tag |
|
|
147
|
+
| Latest | `@latest` | Get the latest tag |
|
|
148
|
+
| Range | `@^2.0.0` | Semver compatible (>=2.0.0 <3.0.0) |
|
|
149
|
+
| Branch | `@branch:develop` | Specific branch |
|
|
150
|
+
| Commit | `@commit:abc1234` | Specific commit hash |
|
|
151
|
+
| (none) | - | Default branch (main) |
|
|
152
152
|
|
|
153
153
|
## Configuration
|
|
154
154
|
|
|
@@ -213,13 +213,13 @@ For detailed publishing guidelines, see the [CLI Specification](./docs/cli-spec.
|
|
|
213
213
|
|
|
214
214
|
## Environment Variables
|
|
215
215
|
|
|
216
|
-
| Variable
|
|
217
|
-
|
|
|
218
|
-
| `RESKILL_CACHE_DIR` | Global cache directory
|
|
219
|
-
| `RESKILL_TOKEN`
|
|
220
|
-
| `RESKILL_REGISTRY`
|
|
221
|
-
| `DEBUG`
|
|
222
|
-
| `NO_COLOR`
|
|
216
|
+
| Variable | Description | Default |
|
|
217
|
+
| ------------------- | ----------------------------------------------- | ------------------------------ |
|
|
218
|
+
| `RESKILL_CACHE_DIR` | Global cache directory | `~/.reskill-cache` |
|
|
219
|
+
| `RESKILL_TOKEN` | Auth token (takes precedence over ~/.reskillrc) | - |
|
|
220
|
+
| `RESKILL_REGISTRY` | Default registry URL | `https://registry.reskill.dev` |
|
|
221
|
+
| `DEBUG` | Enable debug logging | - |
|
|
222
|
+
| `NO_COLOR` | Disable colored output | - |
|
|
223
223
|
|
|
224
224
|
## Development
|
|
225
225
|
|
package/README.zh-CN.md
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
npx reskill@latest init
|
|
22
|
-
npx reskill@latest install github:anthropics/skills/frontend-design@latest
|
|
22
|
+
npx reskill@latest install github:anthropics/skills/skills/frontend-design@latest
|
|
23
23
|
npx reskill@latest list
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -43,36 +43,36 @@ npx reskill@latest <command> # 或直接使用 npx
|
|
|
43
43
|
|
|
44
44
|
## 命令
|
|
45
45
|
|
|
46
|
-
| 命令
|
|
47
|
-
|
|
|
48
|
-
| `init`
|
|
49
|
-
| `install [skills...]` | `i`
|
|
50
|
-
| `list`
|
|
51
|
-
| `info <skill>`
|
|
52
|
-
| `update [skill]`
|
|
53
|
-
| `outdated`
|
|
54
|
-
| `uninstall <skill>`
|
|
55
|
-
| `publish [path]`
|
|
56
|
-
| `login`
|
|
57
|
-
| `logout`
|
|
58
|
-
| `whoami`
|
|
59
|
-
| `doctor`
|
|
46
|
+
| 命令 | 别名 | 说明 |
|
|
47
|
+
| --------------------- | -------------------- | ------------------------ |
|
|
48
|
+
| `init` | - | 初始化 `skills.json` |
|
|
49
|
+
| `install [skills...]` | `i` | 安装一个或多个 skills |
|
|
50
|
+
| `list` | `ls` | 列出已安装的 skills |
|
|
51
|
+
| `info <skill>` | - | 查看 skill 详情 |
|
|
52
|
+
| `update [skill]` | `up` | 更新 skills |
|
|
53
|
+
| `outdated` | - | 检查过期的 skills |
|
|
54
|
+
| `uninstall <skill>` | `un`, `rm`, `remove` | 卸载 skill |
|
|
55
|
+
| `publish [path]` | `pub` | 发布 skill 到 registry ¹ |
|
|
56
|
+
| `login` | - | 登录 registry ¹ |
|
|
57
|
+
| `logout` | - | 登出 registry ¹ |
|
|
58
|
+
| `whoami` | - | 显示当前登录用户 ¹ |
|
|
59
|
+
| `doctor` | - | 诊断环境并检查问题 |
|
|
60
60
|
|
|
61
61
|
> ¹ Registry 相关命令(`publish`、`login`、`logout`、`whoami`)需要部署私有 registry 后才能使用,暂不对外开放。
|
|
62
62
|
| `completion install` | - | 安装 Shell Tab 补全 |
|
|
63
63
|
|
|
64
64
|
### 常用选项
|
|
65
65
|
|
|
66
|
-
| 选项
|
|
67
|
-
|
|
|
68
|
-
| `--no-save`
|
|
69
|
-
| `-g, --global`
|
|
70
|
-
| `-a, --agent <agents...>` | `install`
|
|
71
|
-
| `--mode <mode>`
|
|
72
|
-
| `--all`
|
|
73
|
-
| `-y, --yes`
|
|
74
|
-
| `-f, --force`
|
|
75
|
-
| `-j, --json`
|
|
66
|
+
| 选项 | 适用命令 | 说明 |
|
|
67
|
+
| ------------------------- | ------------------------------------ | -------------------------------------------- |
|
|
68
|
+
| `--no-save` | `install` | 安装时不保存到 `skills.json`(用于个人技能) |
|
|
69
|
+
| `-g, --global` | `install`, `uninstall`, `list` | 全局安装/管理技能(用户目录) |
|
|
70
|
+
| `-a, --agent <agents...>` | `install` | 指定目标 Agent(如 `cursor`, `claude-code`) |
|
|
71
|
+
| `--mode <mode>` | `install` | 安装模式:`symlink`(默认)或 `copy` |
|
|
72
|
+
| `--all` | `install` | 安装到所有 Agent |
|
|
73
|
+
| `-y, --yes` | `install`, `uninstall`, `publish` | 跳过确认提示 |
|
|
74
|
+
| `-f, --force` | `install` | 强制重新安装 |
|
|
75
|
+
| `-j, --json` | `list`, `info`, `outdated`, `doctor` | JSON 格式输出 |
|
|
76
76
|
|
|
77
77
|
运行 `reskill <command> --help` 查看完整选项和详细用法。
|
|
78
78
|
|
|
@@ -129,26 +129,26 @@ npx reskill@latest install https://github.com/org/monorepo/tree/main/skills/plan
|
|
|
129
129
|
|
|
130
130
|
支持从 HTTP/HTTPS URL 直接安装归档文件:
|
|
131
131
|
|
|
132
|
-
| 格式
|
|
133
|
-
|
|
|
134
|
-
| HTTPS URL
|
|
135
|
-
| 阿里云 OSS | `https://bucket.oss-cn-hangzhou.aliyuncs.com/skill.tar.gz` | 阿里云 OSS URL
|
|
136
|
-
| AWS S3
|
|
137
|
-
| OSS 协议
|
|
138
|
-
| S3 协议
|
|
132
|
+
| 格式 | 示例 | 说明 |
|
|
133
|
+
| ---------- | ---------------------------------------------------------- | --------------- |
|
|
134
|
+
| HTTPS URL | `https://example.com/skill.tar.gz` | 直接下载链接 |
|
|
135
|
+
| 阿里云 OSS | `https://bucket.oss-cn-hangzhou.aliyuncs.com/skill.tar.gz` | 阿里云 OSS URL |
|
|
136
|
+
| AWS S3 | `https://bucket.s3.amazonaws.com/skill.tar.gz` | AWS S3 URL |
|
|
137
|
+
| OSS 协议 | `oss://bucket/path/skill.tar.gz` | 阿里云 OSS 简写 |
|
|
138
|
+
| S3 协议 | `s3://bucket/path/skill.tar.gz` | AWS S3 简写 |
|
|
139
139
|
|
|
140
140
|
**支持的归档格式**:`.tar.gz`、`.tgz`、`.zip`、`.tar`
|
|
141
141
|
|
|
142
142
|
## 版本规范
|
|
143
143
|
|
|
144
|
-
| 格式
|
|
145
|
-
|
|
|
146
|
-
| 精确版本 | `@v1.0.0`
|
|
147
|
-
| 最新版本 | `@latest`
|
|
148
|
-
| 范围版本 | `@^2.0.0`
|
|
149
|
-
| 分支
|
|
150
|
-
| Commit
|
|
151
|
-
| (无)
|
|
144
|
+
| 格式 | 示例 | 说明 |
|
|
145
|
+
| -------- | ----------------- | ---------------------------- |
|
|
146
|
+
| 精确版本 | `@v1.0.0` | 锁定到指定 tag |
|
|
147
|
+
| 最新版本 | `@latest` | 获取最新 tag |
|
|
148
|
+
| 范围版本 | `@^2.0.0` | semver 兼容 (>=2.0.0 <3.0.0) |
|
|
149
|
+
| 分支 | `@branch:develop` | 指定分支 |
|
|
150
|
+
| Commit | `@commit:abc1234` | 指定 commit hash |
|
|
151
|
+
| (无) | - | 默认分支 (main) |
|
|
152
152
|
|
|
153
153
|
## 配置
|
|
154
154
|
|
|
@@ -213,13 +213,13 @@ reskill publish
|
|
|
213
213
|
|
|
214
214
|
## 环境变量
|
|
215
215
|
|
|
216
|
-
| 变量
|
|
217
|
-
|
|
|
218
|
-
| `RESKILL_CACHE_DIR` | 全局缓存目录
|
|
219
|
-
| `RESKILL_TOKEN`
|
|
220
|
-
| `RESKILL_REGISTRY`
|
|
221
|
-
| `DEBUG`
|
|
222
|
-
| `NO_COLOR`
|
|
216
|
+
| 变量 | 说明 | 默认值 |
|
|
217
|
+
| ------------------- | ------------------------------- | ------------------------------ |
|
|
218
|
+
| `RESKILL_CACHE_DIR` | 全局缓存目录 | `~/.reskill-cache` |
|
|
219
|
+
| `RESKILL_TOKEN` | 认证令牌(优先于 ~/.reskillrc) | - |
|
|
220
|
+
| `RESKILL_REGISTRY` | 默认 registry URL | `https://registry.reskill.dev` |
|
|
221
|
+
| `DEBUG` | 启用调试日志 | - |
|
|
222
|
+
| `NO_COLOR` | 禁用彩色输出 | - |
|
|
223
223
|
|
|
224
224
|
## 开发
|
|
225
225
|
|
|
@@ -67,6 +67,22 @@ export declare function createLocalGitRepo(dir: string, name: string, version?:
|
|
|
67
67
|
* @returns Git URL for the repo with subPath (file:// protocol)
|
|
68
68
|
*/
|
|
69
69
|
export declare function createLocalMonorepoWithDifferentName(dir: string, repoName: string, folderName: string, skillMdName: string, version?: string): string;
|
|
70
|
+
/**
|
|
71
|
+
* Create a local git repository containing multiple skills (for --skill integration tests).
|
|
72
|
+
*
|
|
73
|
+
* Structure: repo-root/skills/<name>/SKILL.md
|
|
74
|
+
* Uses file:// protocol; no network required.
|
|
75
|
+
*
|
|
76
|
+
* @param dir - Parent directory to create the repo in
|
|
77
|
+
* @param repoName - Repository directory name
|
|
78
|
+
* @param skills - Array of { name, description } for each skill
|
|
79
|
+
* @param version - Git tag version (default "1.0.0")
|
|
80
|
+
* @returns file:// URL of the repo
|
|
81
|
+
*/
|
|
82
|
+
export declare function createLocalMultiSkillRepo(dir: string, repoName: string, skills: Array<{
|
|
83
|
+
name: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
}>, version?: string): string;
|
|
70
86
|
/**
|
|
71
87
|
* Update a local git repo with a new version
|
|
72
88
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/__integration__/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,eAAO,MAAM,YAAY,QAAyC,CAAC;AACnE,eAAO,MAAM,GAAG,QAAyD,CAAC;AAG1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAM9C,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAuB1F;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAEnD;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAMD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,SAAU,GAAG,MAAM,CAoDvF;AAED;;;;;;;;;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ED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* find command - Search for skills in the registry
|
|
3
|
+
*
|
|
4
|
+
* Supports both public and private registries via --registry option.
|
|
5
|
+
* Resolves registry from CLI option > RESKILL_REGISTRY env > skills.json config.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* reskill find <query> # Search public registry
|
|
9
|
+
* reskill find <query> --registry <url> # Search private registry
|
|
10
|
+
* reskill find <query> --json # Output as JSON
|
|
11
|
+
* reskill find <query> --limit 5 # Limit results
|
|
12
|
+
*/
|
|
13
|
+
import { Command } from 'commander';
|
|
14
|
+
interface FindOptions {
|
|
15
|
+
registry?: string;
|
|
16
|
+
limit?: string;
|
|
17
|
+
json?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Execute the find command
|
|
21
|
+
*
|
|
22
|
+
* @internal Exported for testing
|
|
23
|
+
*/
|
|
24
|
+
export declare function findAction(query: string, options: FindOptions): Promise<void>;
|
|
25
|
+
export declare const findCommand: Command;
|
|
26
|
+
export default findCommand;
|
|
27
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/find.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AA0ED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCnF;AAMD,eAAO,MAAM,WAAW,SAUH,CAAC;AAEtB,eAAe,WAAW,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { completionCommand, maybeHandleCompletion } from './completion.js';
|
|
2
2
|
export { doctorCommand } from './doctor.js';
|
|
3
|
+
export { findCommand } from './find.js';
|
|
3
4
|
export { infoCommand } from './info.js';
|
|
4
5
|
export { initCommand } from './init.js';
|
|
5
6
|
export { installCommand } from './install.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/install.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsyBpC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,SAoGvB,CAAC;AAEL,eAAe,cAAc,CAAC"}
|