@feastalytics/cli 0.1.1 → 0.1.3
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 +62 -0
- package/dist/cli.js +825 -231
- package/feast/SKILL.md +23 -3
- package/package.json +1 -1
package/feast/SKILL.md
CHANGED
|
@@ -14,17 +14,37 @@ The CLI is the source of truth for *which* tools exist and *what* they accept
|
|
|
14
14
|
The `feast` CLI must be installed and on PATH:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install -g @
|
|
17
|
+
npm install -g @feastalytics/cli # or run ad-hoc with: npx @feastalytics/cli <command>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Authenticate once — tokens are cached in `~/.config/feast-cli/credentials.json` and refreshed automatically:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
feast login
|
|
23
|
+
feast login # opens a browser to authorize (default)
|
|
24
|
+
feast login --password [username] # headless / CI: username + password prompt, no browser
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
If a command reports you're not logged in or the session expired, re-run `feast login`.
|
|
27
28
|
|
|
29
|
+
## Staying current
|
|
30
|
+
|
|
31
|
+
Neither the CLI nor this skill updates itself. When a command prints an update notice on stderr:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Update available: feast 0.1.1 → 0.2.0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
update both, then tell the user in one line that you did:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install -g @feastalytics/cli@latest # only if `feast` is already on PATH from a global install
|
|
41
|
+
npx skills add feastalytics/cli -g -a '*' -y # refresh this skill from the repo
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If you've been invoking the CLI through `npx` rather than a global install, skip the `npm install -g` and use `npx @feastalytics/cli@latest <command>` for the rest of the session instead — `npx` reuses a cached copy otherwise.
|
|
45
|
+
|
|
46
|
+
Update the skill whenever you update the CLI: the two ship from the same repo but on different triggers, so a new CLI version usually means this skill's guidance has moved too. If the global install fails on permissions, don't retry with `sudo` — tell the user and fall back to `npx @feastalytics/cli@latest`.
|
|
47
|
+
|
|
28
48
|
## The core loop: discover → describe → call
|
|
29
49
|
|
|
30
50
|
Don't guess tool names or input shapes. Introspect the live CLI:
|
|
@@ -88,7 +108,7 @@ The pattern generalizes: identify the org, learn the tool, resolve any reference
|
|
|
88
108
|
|
|
89
109
|
## When something fails
|
|
90
110
|
|
|
91
|
-
- "Not logged in / session expired" → `feast login
|
|
111
|
+
- "Not logged in / session expired" → `feast login` (or `feast login --password [username]` in a headless/CI context).
|
|
92
112
|
- "You belong to multiple organizations" → pick one with `--org`, using `feast whoami` to get the id.
|
|
93
113
|
- "Input does not match the tool schema" → re-read `feast describe <tool>` and fix the named fields.
|
|
94
114
|
- A tool you expected isn't listed by `feast tools` → it may not be exposed yet; don't fabricate a call, tell the user.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feastalytics/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Command-line client for the Feastalytics platform — list, create, and update campaigns, automations, offers, and members-program rewards from the terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|