bailian-cli 1.0.1 → 1.0.2
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 +17 -0
- package/README_CN.md +145 -0
- package/dist/bailian.mjs +89 -88
- package/package.json +4 -3
- package/skill/SKILL.md +2 -4
- package/skill/reference/auth.md +2 -2
- package/skill/reference/index.md +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bailian-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI for Aliyun Model Studio (DashScope) AI Platform.",
|
|
5
5
|
"homepage": "https://bailian.console.aliyun.com/cli",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
14
|
"skill",
|
|
15
|
-
"scripts/postinstall.js"
|
|
15
|
+
"scripts/postinstall.js",
|
|
16
|
+
"README_CN.md"
|
|
16
17
|
],
|
|
17
18
|
"type": "module",
|
|
18
19
|
"exports": {
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"registry": "https://registry.npmjs.org/"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"bailian-cli-core": "1.0.
|
|
27
|
+
"bailian-cli-core": "1.0.2"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@clack/prompts": "^0.7.0",
|
package/skill/SKILL.md
CHANGED
|
@@ -50,7 +50,7 @@ Do not guess flags — use the reference files or `--help`.
|
|
|
50
50
|
| Find app by name | `bl app list` then `bl app call` | Console auth |
|
|
51
51
|
| Memory CRUD / profile | `bl memory *` | [`reference/memory.md`](reference/memory.md) |
|
|
52
52
|
| Knowledge RAG | `bl knowledge retrieve` | RAM AK/SK + index ID |
|
|
53
|
-
| List foundation models | `bl model list` | Console auth
|
|
53
|
+
| List foundation models | `bl model list` | Console auth |
|
|
54
54
|
| Upload file to temp OSS | `bl file upload` | When you need `oss://` URL explicitly |
|
|
55
55
|
|
|
56
56
|
---
|
|
@@ -102,14 +102,12 @@ Commonly used:
|
|
|
102
102
|
|
|
103
103
|
| Flag | Purpose |
|
|
104
104
|
| ------------------------------------- | --------------------------------------------------------- |
|
|
105
|
-
| `--output text\|json
|
|
105
|
+
| `--output text\|json` | Structured output (default: text in TTY, json when piped) |
|
|
106
106
|
| `--api-key`, `--region`, `--base-url` | Override auth / endpoint |
|
|
107
107
|
| `--quiet`, `--verbose`, `--dry-run` | Output control |
|
|
108
108
|
| `--non-interactive` | CI / agent mode (no prompts) |
|
|
109
109
|
| `--help` | Per-command help |
|
|
110
110
|
|
|
111
|
-
Console list commands (`app list`, `model list`, `usage free`) default to **yaml** unless `--output` is set.
|
|
112
|
-
|
|
113
111
|
---
|
|
114
112
|
|
|
115
113
|
## Quick examples
|
package/skill/reference/auth.md
CHANGED
|
@@ -9,7 +9,7 @@ Index: [index.md](index.md)
|
|
|
9
9
|
|
|
10
10
|
| Command | Description |
|
|
11
11
|
| --- | --- |
|
|
12
|
-
| `bl auth login` | Authenticate with API key |
|
|
12
|
+
| `bl auth login` | Authenticate with API key or console browser login (credentials can coexist) |
|
|
13
13
|
| `bl auth logout` | Clear stored credentials |
|
|
14
14
|
| `bl auth status` | Show current authentication state |
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ Index: [index.md](index.md)
|
|
|
20
20
|
| Field | Value |
|
|
21
21
|
| --- | --- |
|
|
22
22
|
| **Name** | `auth login` |
|
|
23
|
-
| **Description** | Authenticate with API key |
|
|
23
|
+
| **Description** | Authenticate with API key or console browser login (credentials can coexist) |
|
|
24
24
|
| **Usage** | `bl auth login --api-key <key> \| bl auth login --console` |
|
|
25
25
|
|
|
26
26
|
#### Options
|
package/skill/reference/index.md
CHANGED
|
@@ -12,7 +12,7 @@ Use this index for the full quick index and global flags.
|
|
|
12
12
|
| --- | --- | --- |
|
|
13
13
|
| `bl app call` | Call a Bailian application (agent or workflow) | [app.md](app.md) |
|
|
14
14
|
| `bl app list` | List Bailian applications | [app.md](app.md) |
|
|
15
|
-
| `bl auth login` | Authenticate with API key | [auth.md](auth.md) |
|
|
15
|
+
| `bl auth login` | Authenticate with API key or console browser login (credentials can coexist) | [auth.md](auth.md) |
|
|
16
16
|
| `bl auth logout` | Clear stored credentials | [auth.md](auth.md) |
|
|
17
17
|
| `bl auth status` | Show current authentication state | [auth.md](auth.md) |
|
|
18
18
|
| `bl config export-schema` | Export all (or one) CLI command(s) as Anthropic/OpenAI-compatible JSON tool schemas | [config.md](config.md) |
|
|
@@ -76,7 +76,7 @@ Available on every command (in addition to command-specific options):
|
|
|
76
76
|
| `--api-key <key>` | string | no | API key |
|
|
77
77
|
| `--region <region>` | string | no | API region: cn (default), us, intl |
|
|
78
78
|
| `--base-url <url>` | string | no | API base URL |
|
|
79
|
-
| `--output <format>` | string | no | Output format: text, json
|
|
79
|
+
| `--output <format>` | string | no | Output format: text, json |
|
|
80
80
|
| `--timeout <seconds>` | number | no | Request timeout |
|
|
81
81
|
| `--quiet` | boolean | no | Suppress non-essential output |
|
|
82
82
|
| `--verbose` | boolean | no | Print HTTP request/response details |
|
|
@@ -92,4 +92,4 @@ Available on every command (in addition to command-specific options):
|
|
|
92
92
|
|
|
93
93
|
- Console commands (`app list`, `model list`, `usage free`, `console call`) require `bl auth login --console`.
|
|
94
94
|
- Most API commands use `DASHSCOPE_API_KEY` or `bl auth login --api-key`.
|
|
95
|
-
- Default output: **text** in TTY; **json** when piped.
|
|
95
|
+
- Default output: **text** in TTY; **json** when piped.
|