@task0/cli 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 +21 -0
  2. package/README.md +85 -0
  3. package/dist/main.js +4385 -0
  4. package/package.json +57 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ying Cai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # @task0/cli
2
+
3
+ Task-centric control layer for an agent workflow. `task0` orchestrates the
4
+ `triage → plan → refine → exec → pr` lifecycle across projects.
5
+
6
+ ## Requirements
7
+
8
+ - Node.js **20** or newer (for the npm-based installs)
9
+ - macOS, Linux (Windows: use the npm install path; no native binary yet)
10
+
11
+ ## Install
12
+
13
+ ### npm (recommended)
14
+
15
+ ```sh
16
+ npm install -g @task0/cli
17
+ # or: pnpm add -g @task0/cli
18
+ # or: bun install -g @task0/cli
19
+ ```
20
+
21
+ ### One-shot installer
22
+
23
+ ```sh
24
+ curl -fsSL https://raw.githubusercontent.com/cy0-labs/task0/main/apps/cli/install.sh | sh
25
+ ```
26
+
27
+ Two-step variant for the security-conscious:
28
+
29
+ ```sh
30
+ curl -fsSL https://raw.githubusercontent.com/cy0-labs/task0/main/apps/cli/install.sh -o install.sh
31
+ less install.sh
32
+ sh install.sh
33
+ ```
34
+
35
+ Pin a version with `TASK0_VERSION=0.2.0 sh install.sh`.
36
+
37
+ ### Single-file binary (optional)
38
+
39
+ Pre-built binaries are attached to GitHub Releases for major versions:
40
+
41
+ | Platform | Asset |
42
+ |-----------------|---------------------------------|
43
+ | macOS arm64 | `task0-darwin-arm64` |
44
+ | macOS x64 | `task0-darwin-x64` |
45
+ | Linux x64 | `task0-linux-x64` |
46
+ | Linux arm64 | `task0-linux-arm64` |
47
+
48
+ ```sh
49
+ curl -fsSL -o task0 \
50
+ https://github.com/cy0-labs/task0/releases/latest/download/task0-darwin-arm64
51
+ chmod +x task0 && ./task0 --version
52
+ ```
53
+
54
+ No Node.js required — Bun runtime is embedded in the binary.
55
+
56
+ ## Quick start
57
+
58
+ ```sh
59
+ task0 --help
60
+ task0 project init # bootstrap task0.yml in the current directory
61
+ task0 task triage <id> # decompose an IDEA into ISSUE files
62
+ task0 run <id> # drive the full triage → plan → refine → exec loop
63
+ ```
64
+
65
+ ## Environment variables
66
+
67
+ | Variable | Purpose |
68
+ |-------------------------------|----------------------------------------------------------------------|
69
+ | `TASK0_API_URL` | Override the task0 server endpoint (default `http://127.0.0.1:4318`) |
70
+ | `TASK0_HOME` | Override the on-disk state dir (default `~/.task0`) |
71
+ | `TASK0_DISABLE_ERROR_CAPTURE` | Set to `1` to disable local crash reports |
72
+ | `EDITOR` | Editor used for interactive prompts |
73
+
74
+ > **Security note** — `TASK0_API_URL` decides which host receives daemon
75
+ > registration calls and the locally-stored Bearer token tied to that identity.
76
+ > Only point it at a server **you control**. The default loopback address is
77
+ > always safe; anything else should be a hostname you own (e.g. a self-hosted
78
+ > central server on your VPN). Never set it to a third-party URL from an
79
+ > untrusted source.
80
+
81
+ ## Links
82
+
83
+ - Repo: https://github.com/cy0-labs/task0
84
+ - Issues: https://github.com/cy0-labs/task0/issues
85
+ - Release manual: [docs/release-cli.md](../../docs/release-cli.md)