licell 1.0.5 → 1.0.7
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.en.md +11 -1
- package/README.md +15 -4
- package/dist/licell.js +251 -227
- package/package.json +6 -2
package/README.en.md
CHANGED
|
@@ -9,7 +9,7 @@ It is not just a bag of cloud commands. It is organized around one primary deliv
|
|
|
9
9
|
- one main entry: `deploy`
|
|
10
10
|
- one project state file: `.licell/project.json`
|
|
11
11
|
- one set of atomic resource commands: `fn` / `oss` / `dns` / `domain`
|
|
12
|
-
- one agent-facing surface: `--help` / `--output json` / `
|
|
12
|
+
- one agent-facing surface: `catalog` / `--help` / `--output json` / `capability` / `skills`
|
|
13
13
|
|
|
14
14
|
Default region is `cn-hangzhou`. For agent automation, use a dedicated test account or isolated region instead of sharing a production environment directly. For team sharing, use the team auth distribution workflow described below.
|
|
15
15
|
|
|
@@ -30,6 +30,8 @@ Licell currently covers:
|
|
|
30
30
|
- custom domains, HTTPS, CDN, DNS
|
|
31
31
|
- ACR / Docker image deployment
|
|
32
32
|
- serverless database and cache helpers
|
|
33
|
+
- ACK / ACS cluster and workload inventory
|
|
34
|
+
- protocol-driven discovery and controlled raw API fallback across 16,242 Alibaba Cloud APIs
|
|
33
35
|
- MCP / skills / JSON output / shared-doc generation for agent automation
|
|
34
36
|
|
|
35
37
|
---
|
|
@@ -247,6 +249,14 @@ Usage and security guidance:
|
|
|
247
249
|
|
|
248
250
|
## Agent Interfaces
|
|
249
251
|
|
|
252
|
+
Start every natural-language Alibaba Cloud task with the curated command catalog:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
licell catalog --output json
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
If no curated command covers the outcome, continue with `capability products/search/describe`, then follow `execution.preferred`. Raw writes require `--dry-run`, explicit `--yes`, and read-back verification through `nextActions[]`.
|
|
259
|
+
|
|
250
260
|
### 1. Structured help
|
|
251
261
|
|
|
252
262
|
Licell help is designed for both humans and agents.
|
package/README.md
CHANGED
|
@@ -521,9 +521,11 @@ licell e2e cleanup <runId>
|
|
|
521
521
|
|
|
522
522
|
### Agent Contract
|
|
523
523
|
|
|
524
|
-
-
|
|
525
|
-
-
|
|
526
|
-
-
|
|
524
|
+
- 始终先发现领域命令:`licell catalog --output json`。
|
|
525
|
+
- 命中领域命令:读取 `licell <command> --help --output json`,再执行该命令。
|
|
526
|
+
- 未命中领域命令:依次执行 `capability products/search/describe --output json`,并读取 `execution.preferred`。
|
|
527
|
+
- raw 写操作必须先 `--dry-run`,再显式 `--yes`,最后按 `nextActions[]` 回读验证。
|
|
528
|
+
- 解析执行结果时,只消费带 `@@LICELL_JSON@@` 前缀的逐行 JSON record。
|
|
527
529
|
- 对 `type=event` 的 record,优先读取稳定字段 `stage` / `action` / `status` / `source` / `terminal`。
|
|
528
530
|
- 对 `type=error` 的 record,优先读取 `nextActions[]` 获取首选补救步骤。
|
|
529
531
|
|
|
@@ -533,6 +535,7 @@ licell e2e cleanup <runId>
|
|
|
533
535
|
- `licell <command> --help --output json`:读取 `help.kind` / `help.schemaVersion`;当前为 `licell-help@1.0`。
|
|
534
536
|
- `licell catalog --output json`:读取 `kind` / `schemaVersion`;当前为 `licell-agent-command-catalog@1.0`。
|
|
535
537
|
- `licell catalog --output json` 还会显式声明 help schema 与 CLI record schema:`licell-help@1.0` / `licell-cli-record@1.0`。
|
|
538
|
+
- 读取 `catalog.agentWorkflow` 获取“领域命令优先、raw capability 兜底”的自然语言路由契约;只有两层发现都失败,才可判定不支持。
|
|
536
539
|
- Agent 优先读取 `nextActions[]` 作为稳定下一步入口;`recommendedFlow` / `decisionGuide` / `remediation[]` 作为补充语义层。
|
|
537
540
|
- 命令自己的业务结果字段继续读取对应命令 help / catalog 里的 `result`;下面三组 contract 只描述公共 CLI record 包络。
|
|
538
541
|
|
|
@@ -751,20 +754,28 @@ licell e2e cleanup <runId>
|
|
|
751
754
|
| `licell ecs rm <instanceId>` | 删除(释放)ECS 实例(delete 的别名) | `--region`, `--dry-run`, `--yes` |
|
|
752
755
|
| `licell ecs start <instanceId>` | 启动 ECS 实例 | `--region`, `--dry-run` |
|
|
753
756
|
| `licell ecs stop <instanceId>` | 停止 ECS 实例 | `--region`, `--dry-run`, `--yes` |
|
|
757
|
+
| `licell k8s clusters` | 列出当前地域的 ACK / ACS Kubernetes 集群 | `--region`, `--name` |
|
|
758
|
+
| `licell k8s workloads <cluster>` | 只读查询 ACK / ACS 集群内已部署的工作负载和 Service | `--region`, `--private`, `--request-timeout` |
|
|
754
759
|
|
|
755
760
|
#### Automation & Tooling
|
|
756
761
|
|
|
757
762
|
面向 Agent、开发体验与 CLI 生命周期的自动化命令。
|
|
758
763
|
|
|
759
|
-
- `licell skills init`、`licell onboard`、`licell catalog`、`licell completion`
|
|
764
|
+
- `licell skills init`、`licell onboard`、`licell catalog`、`licell capability`、`licell completion` 都基于版本化的本地注册表或 protocol 快照生成外部表面。
|
|
760
765
|
- `licell skills init` / `setup` / `onboard` 写入的是 agent-facing 的 licell skill contract;命令参考与字段细节应继续通过 `catalog` / `--help --output json` 获取。
|
|
761
766
|
- `licell onboard` 默认会同时安装 Codex + Claude 的全局 licell skill contract;当安装目标包含 Codex 时,还会额外安装 `licell-glab` subagent。
|
|
767
|
+
- `licell api invoke` 优先使用 PATH 中的 aliyun;缺失时按固定版本下载并校验后缓存到 `~/.licell/bin`。
|
|
762
768
|
- `licell completion` 的候选命令同样来自共享命令目录。
|
|
763
769
|
|
|
764
770
|
| 命令 | 说明 | 关键选项 |
|
|
765
771
|
|------|------|----------|
|
|
766
772
|
| `licell doctor` | 诊断本机 licell 登录态、云端权限/目标资源/域名入口、项目配置与部署前置条件 | `--region`, `--component`, `--all-components` |
|
|
767
773
|
| `licell catalog` | 输出共享 CLI 命令目录,供 Agent / 自动化发现命令、选项和结构化契约 | `--root-command`, `--command-key` |
|
|
774
|
+
| `licell api invoke <ref>` | 通过固定版本 aliyun-cli runner 调用 raw API | `--region`, `--params-file`, `--param` |
|
|
775
|
+
| `licell api scaffold <ref>` | 从 raw capability 生成 API 请求模板 | — |
|
|
776
|
+
| `licell capability describe <ref>` | 查看一个 raw capability 的完整 OpenAPI 输入和来源 | — |
|
|
777
|
+
| `licell capability products [query]` | 列出 protocol 快照覆盖的阿里云产品和 capability 数量 | `--limit`, `--offset` |
|
|
778
|
+
| `licell capability search [query]` | 从仓库内阿里云 OpenAPI 快照搜索原始 capability | `--intent`, `--product`, `--action` |
|
|
768
779
|
| `licell ci init github` | 生成 GitHub Actions 的 deploy-only workflow(只调用 licell,不负责编译) | `--apply`, `--force`, `--workflow` |
|
|
769
780
|
| `licell ci init gitlab` | 生成 GitLab CI 的 deploy-only pipeline(只调用 licell,不负责编译) | `--apply`, `--force`, `--pipeline` |
|
|
770
781
|
| `licell onboard` | 全局安装 licell 的 agent-facing skill contract;默认同时安装 Codex 与 Claude | `--agent`, `--force` |
|