licell 1.0.6 → 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 +8 -3
- package/dist/licell.js +255 -244
- package/package.json +2 -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,6 +754,8 @@ 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
|
|