@agentearth.ai/cli 0.1.0-beta.4 → 0.1.0-beta.6
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/package.json +1 -1
- package/skills/agentearth/SKILL.md +11 -0
package/package.json
CHANGED
|
@@ -27,6 +27,14 @@ Use AgentEarth as an external tool marketplace. Treat the user's request as the
|
|
|
27
27
|
|
|
28
28
|
Prefer `ae` on Unix-like shells and `ae.cmd` in Windows PowerShell when the PowerShell shim is blocked by execution policy.
|
|
29
29
|
|
|
30
|
+
The npm package is `@agentearth.ai/cli`. If `ae` is unavailable or not on `PATH`, use the npm fallback with the same subcommand:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
npx --yes --package @agentearth.ai/cli@latest ae recommend "<task>"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Apply the same fallback to `list`, `detail`, and `execute` by replacing the leading `ae` command with `npx --yes --package @agentearth.ai/cli@latest ae`.
|
|
37
|
+
|
|
30
38
|
Use these commands:
|
|
31
39
|
|
|
32
40
|
- `ae recommend "<task>"` to discover tools for ambiguous or natural-language tasks.
|
|
@@ -42,6 +50,9 @@ All agent-facing commands return JSON by default. Select tools by `tool_name`; n
|
|
|
42
50
|
Use credentials only through the active host environment.
|
|
43
51
|
|
|
44
52
|
- Read the API key from `AGENTEARTH_API_KEY` when the host provides it.
|
|
53
|
+
- If `AGENTEARTH_API_KEY` is absent, still run the CLI normally; the CLI can read its own saved credentials.
|
|
54
|
+
- Do not pass placeholder env values such as `$AGENTEARTH_API_KEY` or `${AGENTEARTH_API_KEY}`.
|
|
55
|
+
- Treat authentication as missing or invalid only when the CLI returns `auth_missing` or `auth_invalid`.
|
|
45
56
|
- If login is required, pipe the caller-provided key to `ae login --api-key-stdin`.
|
|
46
57
|
- Never ask the user to paste a key unless the host explicitly requires manual credential setup.
|
|
47
58
|
- Never search the filesystem, shell history, logs, or config files for API keys.
|