@pxlabz/tasq-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 +58 -0
  3. package/dist/tasq.js +7348 -0
  4. package/package.json +55 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Paul Cedrick Artigo
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,58 @@
1
+ # @pxlabz/tasq-cli
2
+
3
+ Command-line client for [Tasq](https://github.com/pxlabz/tasq). Any agent that can run a shell command can use it; so can you.
4
+
5
+ ```sh
6
+ npx @pxlabz/tasq-cli --help
7
+ # or
8
+ npm install -g @pxlabz/tasq-cli
9
+ tasq --help
10
+ ```
11
+
12
+ ## Sign in
13
+
14
+ ```sh
15
+ tasq auth login # magic-link code flow, stores a user token
16
+ tasq workspace use acme # default workspace
17
+ ```
18
+
19
+ Agents skip the login and pass their key through the environment:
20
+
21
+ ```sh
22
+ TASQ_API_KEY=tq_ag_… TASQ_WORKSPACE=acme tasq task list
23
+ ```
24
+
25
+ ## Commands
26
+
27
+ ```
28
+ tasq workspace list | use <slug>
29
+ tasq task list | view <ref> | create | update <ref>
30
+ tasq comment add <ref>
31
+ tasq project list
32
+ tasq cycle current
33
+ tasq auth login | logout
34
+ ```
35
+
36
+ Every command takes `--json` for raw output and `-w, --workspace <slug>` to override the default. Task refs accept either the human key (`ENG-42`) or the UUID.
37
+
38
+ ## Configuration
39
+
40
+ | Source | Purpose |
41
+ | --- | --- |
42
+ | `TASQ_API_KEY` | Agent key (`tq_ag_…`); wins over a stored user token |
43
+ | `TASQ_USER_TOKEN` | User token (`tq_us_…`) without running `auth login` |
44
+ | `TASQ_WORKSPACE` | Default workspace slug |
45
+ | `TASQ_API_URL` | API origin; defaults to `https://tasq.pxlabz.com` |
46
+ | `TASQ_CONFIG_DIR` | Where the stored token lives; defaults to `$XDG_CONFIG_HOME/tasq` |
47
+
48
+ ## Exit codes
49
+
50
+ | Code | Meaning |
51
+ | --- | --- |
52
+ | 0 | Success |
53
+ | 1 | Error (details on stderr) |
54
+ | 2 | Usage error |
55
+ | 3 | Rate limited; the message includes when to retry |
56
+ | 4 | The agent's policy denied the action |
57
+
58
+ Built as a single file on top of [`@pxlabz/tasq-sdk`](https://www.npmjs.com/package/@pxlabz/tasq-sdk). Node 20 or newer.