@vifeai/cli 0.0.0-stage → 0.1.0

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.
Files changed (4) hide show
  1. package/LICENSE +3 -0
  2. package/README.md +75 -2
  3. package/package.json +27 -4
  4. package/vife.mjs +6004 -0
package/LICENSE ADDED
@@ -0,0 +1,3 @@
1
+ © 2026 VIFE Inc. All rights reserved.
2
+
3
+ Use of this software is subject to the Vife Terms of Service at https://vife.ai/terms.
package/README.md CHANGED
@@ -1,3 +1,76 @@
1
- # Temporary Holding Version
1
+ # vife
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `vife` is the [Vife](https://vife.ai) API from a terminal. Send a task to the
4
+ Vife agent and get finished work back as files: slide decks, documents,
5
+ spreadsheets, images, video and audio. Every operation of the Vife API is a
6
+ command, generated from its OpenAPI document, plus helpers that wait for a
7
+ task, move files and check webhook signatures.
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ npm install -g @vifeai/cli
13
+ ```
14
+
15
+ It needs Node.js 22 or later and installs the `vife` command.
16
+
17
+ ## Sign in
18
+
19
+ Create an API key in Vife › Settings › Developer. Then either save it once:
20
+
21
+ ```sh
22
+ vife auth login # paste the key: it is not echoed and never printed
23
+ vife auth status # which key is in use and where it came from
24
+ ```
25
+
26
+ or set it for each run:
27
+
28
+ ```sh
29
+ export VIFE_API_KEY=vife_sk_...
30
+ ```
31
+
32
+ `VIFE_API_KEY` wins over the saved key. `vife auth login` keeps the key in
33
+ `~/.config/vife/config.json` (or under `$XDG_CONFIG_HOME`) with mode 0600, and
34
+ also reads it from a pipe: `vife auth login < key.txt`.
35
+
36
+ ## Examples
37
+
38
+ ```sh
39
+ # Start a task, then wait until it is done
40
+ vife tasks create --mode slide --input "Turn this spec into a 12-slide deck" \
41
+ --idempotency-key spec-deck-001
42
+ vife tasks wait $TASK_ID --timeout 900
43
+
44
+ # Give a task your files, and download what it made
45
+ vife files upload ./brief.pdf
46
+ vife files download $FILE_ID --output deck.pptx
47
+
48
+ # Check a webhook's Vife-Signature against the raw body
49
+ vife webhooks verify --signature "$SIGNATURE" --body-file event.json \
50
+ --secret "$VIFE_WEBHOOK_SECRET"
51
+
52
+ # Call any operation by its operationId
53
+ vife call listMediaModels --kind image
54
+ ```
55
+
56
+ `vife --help` lists the commands and operation groups, `vife tasks --help` the
57
+ commands of a group, and `vife tasks create --help` the flags of one command.
58
+ `--json` prints only the API's JSON.
59
+
60
+ ## Exit codes
61
+
62
+ | Code | Meaning |
63
+ | --- | --- |
64
+ | 0 | OK |
65
+ | 1 | Refused by the API, or a check failed |
66
+ | 2 | Usage error |
67
+ | 3 | Key missing or refused |
68
+ | 4 | Rate limited |
69
+ | 5 | Unreachable or server error |
70
+ | 6 | `tasks wait`: the task failed or was stopped |
71
+ | 7 | `tasks wait`: timed out |
72
+ | 8 | `tasks wait`: the task needs your input |
73
+
74
+ ## Documentation
75
+
76
+ The API, its webhooks and the CLI: https://vife.ai/developers/docs
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@vifeai/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "The vife command line: run Vife agent tasks, move files and verify webhooks from a terminal.",
5
+ "keywords": [
6
+ "vife",
7
+ "cli",
8
+ "api",
9
+ "ai",
10
+ "agent",
11
+ "automation"
12
+ ],
13
+ "homepage": "https://vife.ai/developers/docs#cli",
14
+ "license": "SEE LICENSE IN LICENSE",
15
+ "author": "Vife",
16
+ "type": "module",
17
+ "bin": {
18
+ "vife": "vife.mjs"
19
+ },
20
+ "files": [
21
+ "vife.mjs"
22
+ ],
23
+ "engines": {
24
+ "node": ">=22"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ }
29
+ }