@tencentcloudadp/cli 0.1.2 → 0.1.5
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 +3 -3
- package/bin/adp.js +3 -2
- package/dist/cli.js +2839 -764
- package/dist/cli.js.map +1 -1
- package/package.json +2 -1
- package/skills/adp/SKILL.md +13 -9
- package/skills/adp/configuration/SKILL.md +3 -0
- package/skills/adp/create/SKILL.md +46 -10
- package/skills/adp/evals/evals.json +14 -0
- package/skills/adp/gotchas/SKILL.md +11 -7
- package/skills/adp/references/app-modes.md +3 -2
- package/skills/adp/references/auth.md +25 -10
- package/skills/adp/references/credentials.md +46 -8
- package/skills/adp/references/mcp.md +78 -0
- package/skills/adp/references/pitfalls.md +6 -0
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Binary: `adp`
|
|
|
13
13
|
npm install -g @tencentcloudadp/cli
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Requires Node.js 20+.
|
|
16
|
+
Requires Node.js 20+. On Windows the global install exposes `adp.cmd`; see [docs/operations/windows.md](docs/operations/windows.md).
|
|
17
17
|
|
|
18
18
|
### Upgrade
|
|
19
19
|
|
|
@@ -43,7 +43,7 @@ make uninstall-local
|
|
|
43
43
|
|
|
44
44
|
## Quick start
|
|
45
45
|
|
|
46
|
-
Get a **CAM** SecretId / SecretKey (starts with `AKID`) from [API Key Management](https://console.cloud.tencent.com/cam/capi). SecretKey is shown only once.
|
|
46
|
+
Get a public-cloud **CAM** SecretId / SecretKey (starts with `AKID`) from [API Key Management](https://console.cloud.tencent.com/cam/capi), or an independent-site key from [ADP key management](https://adp.tencent.com/adp#/key-manage). SecretKey is shown only once. The same commands run on both sites; `adp login --site cloud` or `--site independent` selects the host.
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
export TENCENTCLOUD_SECRET_ID=...
|
|
@@ -55,7 +55,7 @@ adp deploy --dry-run
|
|
|
55
55
|
adp deploy
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Knowledge-base documents (same
|
|
58
|
+
Knowledge-base documents (same profile keys; default KB id = `app_id`):
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
61
|
adp kb doc import --file ./faq.md
|
package/bin/adp.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { fileURLToPath } from "node:url";
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// Pass a file: URL, not a filesystem path: on Windows fileURLToPath() yields
|
|
4
|
+
// "C:\...", which the ESM loader rejects with ERR_UNSUPPORTED_ESM_URL_SCHEME.
|
|
5
|
+
await import(new URL("../dist/cli.js", import.meta.url).href);
|